"use strict";this.default_kevlar_base=this.default_kevlar_base||{};(function(_){var window=this;
try{
_._F_toggles_initialize=function(a){(typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:this)._F_toggles=a||[]};
(0,_._F_toggles_initialize)([]);
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
/*

 Copyright Google LLC
 SPDX-License-Identifier: Apache-2.0
*/
/*


 Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
     http://www.apache.org/licenses/LICENSE-2.0
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
*/
/*

 Copyright Google LLC All Rights Reserved.

 Use of this source code is governed by an MIT-style license that can be
 found in the LICENSE file at https://angular.dev/license
*/
/*

 Copyright 2017 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
/*
 SPDX-License-Identifier: Apache-2.0
*/
/*

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.

 -----------------------------------------------------------------------------
 Ported from zlib, which is under the following license
 https://github.com/madler/zlib/blob/master/zlib.h

 zlib.h -- interface of the 'zlib' general purpose compression library
   version 1.2.8, April 28th, 2013
   Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
   This software is provided 'as-is', without any express or implied
   warranty.  In no event will the authors be held liable for any damages
   arising from the use of this software.
   Permission is granted to anyone to use this software for any purpose,
   including commercial applications, and to alter it and redistribute it
   freely, subject to the following restrictions:
   1. The origin of this software must not be misrepresented; you must not
      claim that you wrote the original software. If you use this software
      in a product, an acknowledgment in the product documentation would be
      appreciated but is not required.
   2. Altered source versions must be plainly marked as such, and must not be
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
   Jean-loup Gailly        Mark Adler
   jloup@gzip.org          madler@alumni.caltech.edu
   The data format used by the zlib library is described by RFCs (Request for
   Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950
   (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
*/
/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
/*
 Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 This code may only be used under the BSD style license found at
 http://polymer.github.io/LICENSE.txt The complete set of authors may be found
 at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
 be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
 Google as part of the polymer project is also subject to an additional IP
 rights grant found at http://polymer.github.io/PATENTS.txt
*/
/*

Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
/*

 Copyright (c) Felix Böhm
 All rights reserved.

 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:

 Redistributions of source code must retain the above copyright notice, this
 list of conditions and the following disclaimer.

 Redistributions in binary form must reproduce the above copyright notice,
 this list of conditions and the following disclaimer in the documentation
 and/or other materials provided with the distribution.

 THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 OUT OF THE USE OF THIS, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*

 The bulk of this code derives from https://github.com/dmoscrop/fold-case
 But in addition to case-folding, we also normalize whitespace.

 fold-case is Copyright Mathias Bynens <https://mathiasbynens.be/>

 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.
*/
/*

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:

     * Redistributions of source code must retain the above copyright
       notice, this list of conditions and the following disclaimer.

     * Redistributions in binary form must reproduce the above
       copyright notice, this list of conditions and the following
       disclaimer in the documentation and/or other materials provided
       with the distribution.

 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
/*


 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.
*/
/*

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

 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.
*/
/*

 Copyright 2020 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
/*

 Copyright 2018 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
/*

 Copyright Google Inc. 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
*/
/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
/*

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var ea,ha,aaa,eaa,ka,oa,faa,xa,Aa,gaa,haa,iaa,Da,laa,maa,Ga,paa,uaa,xaa,zaa,Caa,Daa,Faa,Iaa,Jaa,Laa,hb,ob,pb,tb,Oaa,vb,Paa,xb,Saa,Taa,Hb,Ib,Kb,Vaa,$aa,aba,Pb,cba,dba,eba,gba,bba,Ub,hba,jba,kba,mba,rba,jc,sba,tba,uba,vba,wba,ic,oba,fc,pba,qba,Cba,Dba,Eba,qc,Gba,Hba,Iba,Jba,Lba,Mba,Pba,Rba,Tba,xc,Yba,Xba,Ec,Zba,dca,Fc,eca,fca,Ic,hca,Kba,Jc,Kc,Lc,kca,ica,jca,Qc,lca,mca,oca,qca,pca,rca,sca,tca,Oc,vca,xca,zca,Dca,Zc,Ica,Aca,Jca,Lca,Mca,Tca,Pca,Wca,Yca,Zca,ada,bda,fda,kda,qda,uda,Ada,ud,Cda,Eda,Fda,Cd,
Dd,Fd,Gd,Jd,Nd,Qd,Rd,Mda,Pda,Qda,Tda,Wda,ee,Xda,ge,he,ie,je,Zda,$da,aea,bea,cea,eea,fea,gea,hea,jea,oe,me,kea,lea,mea,oea,nea,pea,rea,sea,ve,we,xe,ye,Be,uea,Ce,wea,Bea,Ee,Cea,Dea,Eea,Ge,Fea,Gea,Hea,He,Kea,Je,Nea,Oea,Ke,Qea,Pea,Rea,Sea,Tea,Uea,Ne,Vea,Wea,Oe,Xea,Yea,Pe,Qe,Re,Se,Zea,afa,$ea,Te,cfa,dfa,efa,We,Ye,Ze,$e,af,bf,ffa,gfa,hfa,ifa,jfa,kfa,lfa,mfa,nfa,ofa,pfa,qfa,df,rfa,sfa,tfa,kf,lf,ufa,xfa,yfa,zfa,Cfa,Dfa,Efa,Ifa,Jfa,Kfa,Lfa,Mfa,Nfa,Ofa,Sfa,of,Tfa,Ufa,qf,Vfa,Wfa,Xfa,Yfa,$fa,lga,mga,nga,qga,
rga,xf,sga,vga,yga,zga,Aga,Bga,Cga,Dga,Ega,Fga,Hga,Iga,wga,Jga,Kga,Lga,Mga,Nga,Oga,Pga,Qga,Rga,Wga,Uga,Zga,Xga,Yga,bha,cha,dha,$ga,fha,aha,hha,Pf,Qf,Sf,iha,kha,lha,oha,yha,qha,pha,sha,uha,rha,Eha,Bha,Fha,Gha,Hha,Iha,Jha,Lha,Kha,Nha,Oha,Pha,Qha,Sha,Uha,Vha,Wha,Yha,Xha,jia,kia,Wf,lia,oia,pia,qia,ria,sia,uia,via,wia,eg,xia,Dia,hg,ig,Hia,Jia,Tia,bja,mg,eja,ija,gja,hja,sg,jja,kja,mja,nja,oja,pja,qja,rja,sja,uja,vja,xja,wja,Aja,Bg,Eg,Cja,Dja,Eja,Fja,Gja,Hja,Jja,Lja,Kja,Qg,Sg,Vja,Vg,Zja,Wg,Xg,aka,Zg,cka,
bka,kka,mka,pka,qka,ska,tka,uka,wka,zka,Aka,ch,Eka,Hka,Ika,Jka,Kka,Lka,Gka,Dka,Cka,eh,Bka,Mka,Oka,Qka,Tka,hh,Vka,Xka,Yka,Zka,qla,lh,rla,tla,sla,ula,wla,qh,zla,Bla,Dla,Ila,Jla,th,uh,vh,Kla,Ola,xh,Ah,Sla,Ch,Vla,Yla,$la,ama,bma,Dh,cma,dma,ema,gma,hma,ima,jma,lma,Fh,mma,nma,Ih,Lh,qma,rma,sma,Nh,vma,wma,yma,Th,Ema,Fma,Gma,Hma,Ima,Xh,Oma,Yh,Zh,ai,Pma,ci,Qma,Rma,Sma,Tma,Vma,Wma,Uma,Yma,Xma,Zma,cna,ei,bna,dna,$ma,ena,ii,hna,fna,ina,jna,kna,mna,lna,nna,qna,ona,sna,yna,Ana,Cna,Gna,Jna,Mna,Lna,Kna,Nna,Qna,Sna,
Rna,Tna,Vna,Wna,ui,vi,Yna,Xna,Zna,xi,yi,$na,Ai,aoa,coa,eoa,hoa,joa,ioa,Ui,koa,doa,roa,soa,toa,Zi,uoa,woa,xoa,cj,zoa,Coa,Boa,Goa,Hoa,Ioa,Joa,Loa,Qoa,Moa,Ooa,Poa,Roa,Toa,Soa,Voa,Uoa,kj,Woa,Yoa,Zoa,cpa,sj,tj,dpa,epa,uj,ipa,yj,zj,Aj,mpa,Bj,ppa,Ej,qpa,rpa,spa,tpa,Hj,upa,wpa,xpa,zpa,Bpa,Epa,Gpa,Qj,Hpa,Ipa,Jpa,Kpa,Lpa,Mpa,Npa,Opa,Tj,Rpa,Spa,Tpa,Upa,Vpa,Wpa,Xpa,Ypa,Zpa,$pa,aqa,bqa,cqa,bk,oqa,pqa,ck,dk,ek,qqa,rqa,sqa,tqa,uqa,vqa,wqa,Bqa,Cqa,Dqa,Eqa,Fqa,ik,kk,lk,nk,qk,sk,tk,Hqa,vk,Jqa,wk,Kqa,Lqa,xk,Mqa,Nqa,
Oqa,Xqa,Zqa,dra,hra,gra,Yqa,ira,lra,zra,rra,Era,tra,Dra,Fra,Dk,Hra,Fk,Jra,Kra,Mra,Nra,Ora,Qra,Ik,Sra,Tra,Ura,Vra,Wra,Xra,Yra,Rra,asa,bsa,csa,Kk,isa,jsa,hsa,lsa,msa,osa,psa,nsa,wsa,ysa,Asa,Csa,Wk,Isa,Hsa,Nsa,Psa,Qsa,Rsa,Ssa,Tsa,Usa,fl,cta,eta,ata,$sa,dta,Wsa,gta,rta,jta,kta,lta,Bta,Dta,Ata,Jta,zta,Vsa,Ita,ita,qta,Cta,fta,Ysa,Xsa,Zsa,bta,yta,vl,Yta,aua,$ta,bua,cua,dua,mua,sua,tua,Hl,vua,yua,Cua,Bua,Eua,Fua,Iua,Hua,Jua,Lua,Sl,Mua,Nua,Pua,Oua,Ul,Uua,Tua,Sua,Yua,Vua,Zua,Xua,$ua,Wl,ava,eva,cva,dva,gva,
hva,kva,iva,lva,pva,qva,tva,vva,cm,dm,zva,Ava,em,fm,Bva,gm,im,Cva,jm,Dva,km,Eva,Fva,mm,Gva,Hva,Iva,Jva,Kva,Mva,Lva,Ova,Rva,Qva,Sva,Tva,Nva,Uva,Xva,Wva,Pva,Yva,Zva,rm,$va,bwa,awa,cwa,dwa,fwa,ewa,gwa,tm,iwa,jwa,hwa,lwa,mwa,nwa,rwa,uwa,zwa,Dwa,um,Gwa,Hwa,vm,Iwa,zm,Am,Owa,xm,Dm,Pwa,Qwa,Swa,Twa,Vwa,Xwa,Ywa,Zwa,$wa,cxa,hxa,fxa,bxa,ixa,jxa,Hm,gxa,kxa,Km,lxa,mxa,nxa,oxa,sxa,pxa,rxa,wxa,xxa,Cxa,Bxa,Fxa,Lxa,Mxa,Oxa,Qxa,Rxa,Txa,Uxa,Vxa,Xxa,Yxa,Zxa,bya,fya,gya,cya,iya,kya,jya,hya,lya,nya,oya,pya,qya,rya,Ym,Zm,
bn,en,uya,vya,xya,Aya,fn,gn,Bya,hn,Eya,Fya,Gya,kn,Lya,Pya,Rya,Sya,Tya,Uya,Vya,Yya,mn,Zya,bza,nn,cza,fza,gza,hza,eza,nza,qza,oza,rza,uza,wza,yza,Cza,Bza,Gza,sn,Hza,Iza,tn,Jza,un,Kza,Lza,Mza,Oza,Nza,Pza,Qza,Rza,Sza,Zza,aAa,cAa,bAa,Wza,Uza,eAa,gAa,lAa,mAa,sAa,uAa,yn,vAa,xAa,yAa,AAa,EAa,GAa,IAa,JAa,KAa,LAa,QAa,MAa,UAa,VAa,XAa,Bn,ZAa,$Aa,aBa,bBa,cBa,dBa,eBa,gBa,hBa,Fn,jBa,kBa,mBa,Gn,lBa,oBa,sBa,Jn,tBa,uBa,vBa,yBa,zBa,wBa,BBa,FBa,JBa,KBa,Sn,LBa,PBa,TBa,Zn,WBa,UBa,VBa,YBa,$Ba,aCa,eCa,hCa,gCa,fCa,iCa,kCa,
lCa,qCa,mCa,rCa,tCa,sCa,zCa,CCa,ECa,GCa,KCa,RCa,TCa,UCa,XCa,ZCa,aDa,Io,Ro,lDa,kDa,nDa,oDa,qDa,pDa,rDa,sDa,So,era,iDa,mDa,jDa,Po,vDa,wDa,xDa,yDa,bp,zDa,cp,ADa,BDa,CDa,DDa,fp,EDa,HDa,JDa,KDa,RDa,TDa,UDa,VDa,XDa,YDa,op,$Da,aEa,bEa,cEa,dEa,eEa,gEa,iEa,kEa,lEa,rEa,pEa,sEa,vEa,wEa,wp,xEa,zEa,AEa,DEa,FEa,EEa,HEa,JEa,zp,Ap,LEa,KEa,MEa,NEa,PEa,REa,QEa,SEa,OEa,TEa,UEa,VEa,WEa,XEa,YEa,ZEa,$Ea,aFa,dFa,cFa,eFa,gFa,fFa,Bp,hFa,kFa,pFa,iFa,qFa,sFa,tFa,uFa,Jp,DFa,EFa,GFa,HFa,Mp,LFa,QFa,Np,UFa,TFa,VFa,Qp,WFa,XFa,YFa,
$Fa,aGa,bGa,cGa,eGa,fGa,pGa,lGa,nGa,rGa,qGa,sGa,tGa,vGa,xGa,zGa,BGa,LGa,OGa,QGa,RGa,SGa,TGa,UGa,WGa,XGa,$Ga,aHa,bHa,cHa,dHa,eHa,fHa,gHa,jHa,kHa,cq,dq,eq,fq,lHa,gq,mHa,pHa,sHa,vHa,yHa,BHa,zHa,RHa,SHa,JHa,OHa,CHa,MHa,AHa,KHa,oHa,GHa,FHa,uHa,rHa,UHa,VHa,WHa,xHa,DHa,IHa,YHa,$Ha,bIa,fIa,gIa,sq,oIa,nIa,sIa,vIa,xIa,zIa,AIa,DIa,FIa,EIa,IIa,KIa,RIa,PIa,MIa,QIa,NIa,SIa,WIa,Eq,eJa,bJa,gJa,hJa,jJa,kJa,Gq,lJa,oJa,pJa,qJa,rJa,zJa,yJa,Oq,Uq,GJa,HJa,Wq,IJa,JJa,KJa,LJa,MJa,NJa,OJa,PJa,QJa,RJa,SJa,TJa,UJa,VJa,WJa,
Xq,XJa,YJa,ZJa,$Ja,aKa,bKa,cKa,dKa,eKa,fKa,gKa,hKa,Zq,jKa,lKa,nKa,qKa,tKa,uKa,vKa,xKa,zKa,AKa,BKa,DKa,HKa,FKa,IKa,JKa,KKa,NKa,SKa,TKa,VKa,pr,XKa,nr,ZKa,$Ka,qr,aLa,cLa,dLa,eLa,rr,iLa,kLa,qLa,pLa,sLa,tLa,xr,yr,uLa,wLa,yLa,zLa,BLa,CLa,xLa,DLa,ILa,MLa,NLa,zr,OLa,PLa,xMa,QLa,SLa,wMa,DMa,zMa,EMa,FMa,HMa,JMa,KMa,LMa,MMa,NMa,OMa,QMa,RMa,SMa,TMa,UMa,WMa,YMa,aNa,eNa,hNa,jNa,mNa,Gr,nNa,oNa,pNa,qNa,rNa,tNa,uNa,vNa,wNa,xNa,yNa,zNa,ANa,BNa,CNa,DNa,FNa,ENa,INa,KNa,LNa,Jr,MNa,NNa,QNa,PNa,Lr,TNa,UNa,XNa,ZNa,YNa,WNa,
bOa,aOa,gOa,cOa,Sr,eOa,nOa,jOa,kOa,lOa,mOa,oOa,qOa,pOa,Tr,Ur,xOa,sOa,wOa,vOa,tOa,uOa,AOa,BOa,DOa,COa,HOa,GOa,KOa,LOa,NOa,OOa,MOa,POa,ROa,QOa,TOa,WOa,bs,XOa,YOa,aPa,fPa,lPa,ds,nPa,rPa,vPa,uPa,sPa,tPa,is,APa,xPa,yPa,BPa,DPa,CPa,GPa,HPa,JPa,KPa,LPa,MPa,NPa,PPa,QPa,ts,SPa,vs,ws,TPa,XPa,YPa,Bs,ZPa,aQa,jQa,kQa,eQa,iQa,fQa,gQa,oQa,pQa,nQa,qQa,rQa,vQa,sQa,wQa,xQa,Hs,zQa,AQa,BQa,yQa,DQa,CQa,Is,HQa,OQa,PQa,QQa,RQa,SQa,TQa,XQa,VQa,WQa,UQa,ZQa,aRa,bRa,eRa,fRa,hRa,Ns,iRa,jRa,kRa,mRa,nRa,oRa,pRa,qRa,sRa,uRa,vRa,
yRa,xRa,ARa,zRa,BRa,CRa,DRa,Rs,FRa,RRa,PRa,URa,VRa,aSa,bSa,cSa,dSa,eSa,fSa,iSa,jSa,kSa,lSa,oSa,pSa,qSa,rSa,sSa,tSa,vSa,wSa,xSa,ySa,zSa,BSa,CSa,DSa,FSa,HSa,JSa,NSa,MSa,LSa,KSa,mt,PSa,QSa,RSa,SSa,VSa,TSa,WSa,pt,XSa,USa,YSa,ZSa,$Sa,aTa,bTa,cTa,st,eTa,dTa,gTa,iTa,wt,jTa,nTa,zt,At,oTa,pTa,qTa,rTa,sTa,tTa,vTa,wTa,xTa,yTa,BTa,ATa,GTa,zTa,Bt,HTa,CTa,FTa,KTa,MTa,RTa,PTa,QTa,OTa,NTa,It,STa,UTa,VTa,WTa,XTa,YTa,Kt,Lt,cUa,$Ta,ZTa,aUa,nUa,lUa,bUa,kUa,uUa,vUa,wUa,Yt,xUa,yUa,zUa,CUa,EUa,GUa,IUa,JUa,KUa,OUa,NUa,PUa,
RUa,eu,UUa,VUa,WUa,XUa,gu,hu,$Ua,cVa,iVa,mVa,nVa,oVa,pVa,qVa,sVa,uVa,tVa,vVa,wVa,xVa,yVa,zVa,AVa,ou,EVa,BVa,pu,FVa,NVa,OVa,KVa,JVa,MVa,LVa,TVa,UVa,VVa,WVa,XVa,YVa,ZVa,$Va,cWa,aWa,bWa,eWa,gWa,iWa,kWa,mWa,qWa,rWa,sWa,tWa,uWa,uu,wWa,vWa,vu,xWa,zWa,AWa,BWa,CWa,FWa,GWa,HWa,IWa,JWa,KWa,LWa,Cu,NWa,OWa,PWa,RWa,QWa,SWa,UWa,YWa,ZWa,$Wa,bXa,cXa,aXa,fXa,iXa,jXa,kXa,lXa,nXa,mXa,qXa,rXa,sXa,tXa,vXa,uXa,xXa,DXa,CXa,FXa,GXa,HXa,MXa,NXa,OXa,PXa,SXa,RXa,QXa,VXa,XXa,WXa,Tu,YXa,ZXa,cYa,bYa,dYa,eYa,fYa,gYa,jYa,lYa,mYa,
nYa,oYa,pYa,qYa,rYa,tYa,sYa,uYa,wYa,vYa,xYa,yYa,zYa,AYa,CYa,DYa,EYa,FYa,GYa,HYa,IYa,KYa,LYa,JYa,dv,NYa,OYa,RYa,QYa,SYa,VYa,WYa,TYa,aZa,cZa,eZa,fZa,gZa,hZa,jZa,kZa,pZa,qZa,vZa,xZa,yZa,BZa,CZa,DZa,EZa,FZa,GZa,IZa,JZa,LZa,NZa,PZa,TZa,RZa,QZa,SZa,UZa,XZa,VZa,WZa,ZZa,b_a,c_a,d_a,f_a,g_a,h_a,j_a,l_a,i_a,m_a,n_a,o_a,p_a,q_a,r_a,s_a,t_a,u_a,w_a,v_a,x_a,y_a,z_a,A_a,B_a,C_a,D_a,E_a,H_a,I_a,J_a,F_a,G_a,M_a,O_a,P_a,Q_a,R_a,S_a,U_a,V_a,W_a,X_a,Y_a,Z_a,$_a,mv,a0a,b0a,ov,c0a,d0a,e0a,f0a,g0a,h0a,k0a,l0a,w0a,s0a,
v0a,x0a,u0a,wv,y0a,z0a,B0a,E0a,D0a,F0a,G0a,xv,zv,I0a,J0a,Cv,Dv,K0a,L0a,P0a,S0a,Gv,Hv,T0a,U0a,Iv,V0a,W0a,X0a,Y0a,$0a,a1a,c1a,h1a,g1a,f1a,i1a,j1a,l1a,m1a,o1a,p1a,q1a,r1a,s1a,v1a,w1a,y1a,z1a,A1a,B1a,D1a,E1a,F1a,H1a,I1a,J1a,L1a,M1a,O1a,P1a,S1a,U1a,W1a,V1a,Y1a,Z1a,$1a,a2a,b2a,d2a,e2a,f2a,k2a,l2a,m2a,n2a,Rv,Tv,Sv,q2a,r2a,s2a,t2a,w2a,v2a,y2a,z2a,A2a,C2a,G2a,I2a,J2a,K2a,Vv,L2a,Yv,O2a,P2a,Q2a,R2a,S2a,T2a,V2a,X2a,Z2a,b3a,c3a,Zv,$v,g3a,e3a,aw,j3a,h3a,k3a,cw,m3a,n3a,q3a,s3a,dw,u3a,v3a,w3a,x3a,y3a,z3a,A3a,E3a,
F3a,I3a,G3a,H3a,J3a,K3a,O3a,L3a,N3a,P3a,Q3a,R3a,U3a,V3a,W3a,X3a,Y3a,d4a,c4a,j4a,m4a,lw,n4a,nia,o4a,p4a,r4a,t4a,u4a,B4a,C4a,rw,D4a,E4a,F4a,G4a,H4a,J4a,L4a,I4a,K4a,O4a,N4a,Q4a,R4a,S4a,T4a,U4a,V4a,W4a,X4a,a5a,d5a,b5a,e5a,f5a,h5a,k5a,g5a,uw,m5a,vw,n5a,o5a,xw,q5a,p5a,r5a,s5a,u5a,v5a,x5a,y5a,z5a,A5a,B5a,D5a,G5a,J5a,M5a,L5a,N5a,O5a,R5a,a6a,V5a,c6a,d6a,f6a,g6a,i6a,j6a,k6a,l6a,m6a,n6a,o6a,q6a,t6a,u6a,v6a,w6a,z6a,y6a,D6a,E6a,F6a,G6a,H6a,I6a,Ow,K6a,Sw,M6a,O6a,P6a,U6a,W6a,$6a,b7a,c7a,e7a,f7a,g7a,i7a,k7a,l7a,
o7a,q7a,t7a,s7a,r7a,Yw,v7a,u7a,w7a,x7a,y7a,z7a,A7a,B7a,C7a,E7a,F7a,G7a,I7a,L7a,H7a,J7a,M7a,N7a,O7a,P7a,R7a,S7a,$7a,a8a,b8a,c8a,d8a,g8a,ex,m8a,n8a,o8a,p8a,q8a,fx,Rg,y8a,ix,z8a,F8a,E8a,jx,H8a,qea;_.ca=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,_.ca);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b)};
ea=function(a){return(a&192)!==128};
ha=function(){throw Error("B");};
aaa=function(a,b){b=String.fromCharCode.apply(null,b);return a==null?b:a+b};
eaa=function(a){var b=!1;b=b===void 0?!1:b;if(baa){if(b&&(caa?!a.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a)))throw Error("C");a=(daa||(daa=new TextEncoder)).encode(a)}else{for(var c=0,d=new Uint8Array(3*a.length),e=0;e<a.length;e++){var g=a.charCodeAt(e);if(g<128)d[c++]=g;else{if(g<2048)d[c++]=g>>6|192;else{if(g>=55296&&g<=57343){if(g<=56319&&e<a.length){var k=a.charCodeAt(++e);if(k>=56320&&k<=57343){g=(g-55296)*1024+k-56320+65536;d[c++]=g>>18|
240;d[c++]=g>>12&63|128;d[c++]=g>>6&63|128;d[c++]=g&63|128;continue}else e--}if(b)throw Error("C");g=65533}d[c++]=g>>12|224;d[c++]=g>>6&63|128}d[c++]=g&63|128}}a=c===d.length?d:d.subarray(0,c)}return a};
ka=function(a){_.ja.setTimeout(function(){throw a;},0)};
_.na=function(a,b){return a.lastIndexOf(b,0)==0};
oa=function(a,b){var c=a.length-b.length;return c>=0&&a.indexOf(b,c)==c};
_.pa=function(a){return/^[\s\xa0]*$/.test(a)};
_.ra=function(a,b){return a.indexOf(b)!=-1};
_.ta=function(a,b){return _.ra(a.toLowerCase(),b.toLowerCase())};
_.ua=function(){var a=_.ja.navigator;return a&&(a=a.userAgent)?a:""};
faa=function(a){if(!va||!wa)return!1;for(var b=0;b<wa.brands.length;b++){var c=wa.brands[b].brand;if(c&&_.ra(c,a))return!0}return!1};
xa=function(a){return _.ra(_.ua(),a)};
Aa=function(){return va?!!wa&&wa.brands.length>0:!1};
gaa=function(){return Aa()?!1:xa("Opera")};
haa=function(){return Aa()?!1:xa("Trident")||xa("MSIE")};
iaa=function(){return Aa()?faa("Microsoft Edge"):xa("Edg/")};
Da=function(){return xa("Firefox")||xa("FxiOS")};
_.jaa=function(){return xa("Safari")&&!(_.Ea()||(Aa()?0:xa("Coast"))||gaa()||(Aa()?0:xa("Edge"))||iaa()||(Aa()?faa("Opera"):xa("OPR"))||Da()||xa("Silk")||xa("Android"))};
_.Ea=function(){return Aa()?faa("Chromium"):(xa("Chrome")||xa("CriOS"))&&!(Aa()?0:xa("Edge"))||xa("Silk")};
_.kaa=function(){return xa("Android")&&!(_.Ea()||Da()||gaa()||xa("Silk"))};
laa=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})]||""}};
maa=function(a){var b=_.ua();if(a==="Internet Explorer"){if(haa())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=laa(c);switch(a){case "Opera":if(gaa())return b(["Version","Opera"]);if(Aa()?faa("Opera"):xa("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(Aa()?0:xa("Edge"))return b(["Edge"]);if(iaa())return b(["Edg"]);break;case "Chromium":if(_.Ea())return b(["Chrome","CriOS","HeadlessChrome"])}return a==="Firefox"&&Da()||a==="Safari"&&_.jaa()||a==="Android Browser"&&_.kaa()||a==="Silk"&&xa("Silk")?(b=c[2])&&b[1]||"":""};
_.naa=function(a){if(Aa()&&a!=="Silk"){var b=wa.brands.find(function(c){return c.brand===a});
if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=maa(a);if(b==="")return NaN;b=b.split(".")}return b.length===0?NaN:Number(b[0])};
Ga=function(){return va?!!wa&&!!wa.platform:!1};
_.oaa=function(){return Ga()?wa.platform==="Android":xa("Android")};
paa=function(){return xa("iPhone")&&!xa("iPod")&&!xa("iPad")};
_.Ha=function(){return paa()||xa("iPad")||xa("iPod")};
_.qaa=function(){return Ga()?wa.platform==="macOS":xa("Macintosh")};
_.raa=function(){return Ga()?wa.platform==="Windows":xa("Windows")};
_.saa=function(){return Ga()?wa.platform==="Chrome OS":xa("CrOS")};
_.Ja=function(a){return a[a.length-1]};
_.Ka=function(a,b,c){b=_.taa(a,b,c);return b<0?null:typeof a==="string"?a.charAt(b):a[b]};
_.taa=function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return g;return-1};
uaa=function(a){for(var b=_.Ma,c=typeof a==="string"?a.split(""):a,d=a.length-1;d>=0;d--)if(d in c&&b.call(void 0,c[d],d,a))return d;return-1};
_.Oa=function(a,b){return _.Na(a,b)>=0};
_.vaa=function(a,b){_.Oa(a,b)||a.push(b)};
_.Qa=function(a,b){b=_.Na(a,b);var c;(c=b>=0)&&_.waa(a,b);return c};
_.waa=function(a,b){Array.prototype.splice.call(a,b,1)};
_.Ra=function(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};
_.Xa=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(_.Sa(d)){var e=a.length||0,g=d.length||0;a.length=e+g;for(var k=0;k<g;k++)a[e+k]=d[k]}else a.push(d)}};
_.yaa=function(a,b,c,d){Array.prototype.splice.apply(a,xaa(arguments,1))};
xaa=function(a,b,c){return arguments.length<=2?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
zaa=function(a,b){b=b||a;for(var c=0,d=0,e={};d<a.length;){var g=a[d++],k=_.Za(g)?"o"+_.$a(g):(typeof g).charAt(0)+g;Object.prototype.hasOwnProperty.call(e,k)||(e[k]=!0,b[c++]=g)}b.length=c};
_.Baa=function(a,b,c){c=c||_.Aaa;for(var d=0,e=a.length,g;d<e;){var k=d+(e-d>>>1);var m=c(b,a[k]);m>0?d=k+1:(e=k,g=!m)}return g?d:-d-1};
_.bb=function(a,b,c){if(!_.Sa(a)||!_.Sa(b)||a.length!=b.length)return!1;var d=a.length;c=c||Caa;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0};
_.Aaa=function(a,b){return a>b?1:a<b?-1:0};
Caa=function(a,b){return a===b};
Daa=function(a,b,c){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,c,0,b[0])};
Faa=function(a){return Eaa[a]||""};
Iaa=function(a){if(!Gaa)return _.cb(a);a=Haa.test(a)?a.replace(Haa,Faa):a;a=atob(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
Jaa=function(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};
_.eb=function(a){a=Error(a);Jaa(a,"warning");return a};
Laa=function(a,b){if(a!=null){var c;var d=(c=Kaa)!=null?c:Kaa={};c=d[a]||0;c>=b||(d[a]=c+1,a=Error(),Jaa(a,"incident"),ka(a))}};
hb=function(a,b,c){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(c===void 0?0:c)&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol():b};
ob=function(a,b){jb||_.kb in a||Maa(a,Naa);a[_.kb]|=b};
pb=function(a,b){jb||_.kb in a||Maa(a,Naa);a[_.kb]=b};
tb=function(a,b){a[_.kb]&=~b};
Oaa=function(a){if(4&a)return 512&a?512:1024&a?1024:0};
vb=function(a){ob(a,34);return a};
Paa=function(a){ob(a,32);return a};
xb=function(a,b){return b===void 0?a.copyOnWrite!==Qaa&&!!(2&(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.kb]|0)):!!(2&b)&&a.copyOnWrite!==Qaa};
_.Eb=function(a,b){if(a!=null)if(typeof a==="string")a=a?new yb(a,zb):_.Ab();else if(a.constructor!==yb)if(Raa&&a!=null&&a instanceof Uint8Array)a=a.length?new yb(new Uint8Array(a),zb):_.Ab();else{if(!b)throw Error();a=void 0}return a};
Saa=function(a,b){if(typeof b!=="number"||b<0||b>=a.length)throw Error();};
Taa=function(a,b,c){b=b&128?0:-1;var d=a.length,e;if(e=!!d)e=a[d-1],e=e!=null&&typeof e==="object"&&e.constructor===Object;for(var g=d+(e?-1:0),k=0;k<g;k++)c(k-b,a[k]);if(e){a=a[d-1];for(var m in a)!isNaN(m)&&c(+m,a[m])}};
Hb=function(a){return a&128?Fb:void 0};
Ib=function(){return typeof BigInt==="function"};
_.Jb=function(a){return a};
Kb=function(a){a.isGuard_doNotManuallySetPrettyPlease=!0;return a};
Vaa=function(){var a=Uaa;return Kb(function(b){for(var c in a)if(b===a[c]&&!/^[0-9]+$/.test(c))return!0;return!1})};
_.Lb=function(a){var b=a;if(Waa(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(Xaa(b)&&!Number.isSafeInteger(b))throw Error(String(b));return Yaa?BigInt(a):a=Zaa(a)?a?"1":"0":Waa(a)?a.trim()||"0":String(a)};
$aa=function(a,b){if(a.length>b.length)return!1;if(a.length<b.length||a===b)return!0;for(var c=0;c<a.length;c++){var d=a[c],e=b[c];if(d>e)return!1;if(d<e)return!0}};
aba=function(a){var b=a>>>0;Nb=b;Ob=(a-b)/4294967296>>>0};
Pb=function(a){if(a<0){aba(-a);var b=_.h(bba(Nb,Ob));a=b.next().value;b=b.next().value;Nb=a>>>0;Ob=b>>>0}else aba(a)};
cba=function(a,b){var c=b*4294967296+(a>>>0);return Number.isSafeInteger(c)?c:_.Tb(a,b)};
dba=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,a==0&&(b=b+1>>>0));a=cba(a,b);return typeof a==="number"?c?-a:a:c?"-"+a:a};
_.Tb=function(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else Ib()?c=""+(BigInt(b)<<BigInt(32)|BigInt(a)):(c=(a>>>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+eba(c)+eba(a));return c};
eba=function(a){a=String(a);return"0000000".slice(a.length)+a};
_.fba=function(a,b){b&2147483648?Ib()?a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0)):(b=_.h(bba(a,b)),a=b.next().value,b=b.next().value,a="-"+_.Tb(a,b)):a=_.Tb(a,b);return a};
gba=function(a){if(a.length<16)Pb(Number(a));else if(Ib())a=BigInt(a),Nb=Number(a&BigInt(4294967295))>>>0,Ob=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+(a[0]==="-");Ob=Nb=0;for(var c=a.length,d=b,e=(c-b)%6+b;e<=c;d=e,e+=6)d=Number(a.slice(d,e)),Ob*=1E6,Nb=Nb*1E6+d,Nb>=4294967296&&(Ob+=Math.trunc(Nb/4294967296),Ob>>>=0,Nb>>>=0);b&&(b=_.h(bba(Nb,Ob)),a=b.next().value,b=b.next().value,Nb=a,Ob=b)}};
bba=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};
Ub=function(a){return Array.prototype.slice.call(a)};
_.Wb=function(a,b){throw Error(b===void 0?"unexpected value "+a+"!":b);};
_.Xb=function(a){if(a!=null&&typeof a!=="number")throw Error("I`"+typeof a+"`"+a);return a};
hba=function(a){if(a==null||typeof a==="number")return a;if(a==="NaN"||a==="Infinity"||a==="-Infinity")return Number(a)};
jba=function(a){if(a!=null&&typeof a!=="boolean")throw Error("J`"+_.iba(a)+"`"+a);return a};
kba=function(a){if(a==null||typeof a==="boolean")return a;if(typeof a==="number")return!!a};
_.$b=function(a){switch(typeof a){case "bigint":return!0;case "number":return Zb(a);case "string":return lba.test(a);default:return!1}};
_.bc=function(a){if(!Zb(a))throw _.eb("enum");return a|0};
_.cc=function(a){return a==null?a:Zb(a)?a|0:void 0};
mba=function(a){if(typeof a!=="number")throw _.eb("int32");if(!Zb(a))throw _.eb("int32");return a|0};
_.dc=function(a){return a==null?a:mba(a)};
_.ec=function(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return Zb(a)?a|0:void 0};
_.nba=function(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return Zb(a)?a>>>0:void 0};
rba=function(a){var b=0;b=b===void 0?0:b;if(!_.$b(a))throw _.eb("int64");var c=typeof a;switch(b){case 512:switch(c){case "string":return fc(a);case "bigint":return String(gc(64,a));default:return oba(a)}case 1024:switch(c){case "string":return pba(a);case "bigint":return _.Lb(gc(64,a));default:return qba(a)}case 0:switch(c){case "string":return fc(a);case "bigint":return _.Lb(gc(64,a));default:return ic(a)}default:return _.Wb(b,"Unknown format requested type for int64")}};
jc=function(a){return a==null?a:rba(a)};
sba=function(a){if(a[0]==="-")return!1;var b=a.length;return b<20?!0:b===20&&Number(a.substring(0,6))<184467};
tba=function(a){var b=a.length;return a[0]==="-"?b<20?!0:b===20&&Number(a.substring(0,7))>-922337:b<19?!0:b===19&&Number(a.substring(0,6))<922337};
uba=function(a){if(a<0){Pb(a);var b=_.Tb(Nb,Ob);a=Number(b);return kc(a)?a:b}b=String(a);if(sba(b))return b;Pb(a);return cba(Nb,Ob)};
vba=function(a){if(tba(a))return a;gba(a);return _.fba(Nb,Ob)};
wba=function(a){if(sba(a))return a;gba(a);return _.Tb(Nb,Ob)};
ic=function(a){a=lc(a);kc(a)||(Pb(a),a=dba(Nb,Ob));return a};
_.xba=function(a){a=lc(a);return a>=0&&kc(a)?a:uba(a)};
oba=function(a){a=lc(a);if(kc(a))a=String(a);else{var b=String(a);tba(b)?a=b:(Pb(a),a=_.fba(Nb,Ob))}return a};
_.yba=function(a){a=lc(a);if(a>=0&&kc(a))a=String(a);else{var b=String(a);sba(b)?a=b:(Pb(a),a=_.Tb(Nb,Ob))}return a};
fc=function(a){var b=lc(Number(a));if(kc(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return vba(a)};
pba=function(a){var b=lc(Number(a));if(kc(b))return _.Lb(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Ib()?_.Lb(gc(64,BigInt(a))):_.Lb(vba(a))};
qba=function(a){return kc(a)?_.Lb(ic(a)):_.Lb(oba(a))};
_.zba=function(a){return kc(a)?_.Lb(_.xba(a)):_.Lb(_.yba(a))};
_.Aba=function(a){var b=lc(Number(a));if(kc(b)&&b>=0)return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return wba(a)};
_.Bba=function(a){var b=lc(Number(a));if(kc(b)&&b>=0)return _.Lb(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Ib()?_.Lb((0,_.nc)(64,BigInt(a))):_.Lb(wba(a))};
Cba=function(a,b){b=b===void 0?!1:b;var c=typeof a;if(a==null)return a;if(c==="bigint")return String(gc(64,a));if(_.$b(a))return c==="string"?fc(a):b?oba(a):ic(a)};
Dba=function(a){if(a==null)return a;var b=typeof a;if(b==="bigint")return String(gc(64,a));if(_.$b(a)){if(b==="string")return fc(a);if(b==="number")return ic(a)}};
Eba=function(a){if(a==null)return a;var b=typeof a;if(b==="bigint")return String((0,_.nc)(64,a));if(_.$b(a)){if(b==="string")return _.Aba(a);if(b==="number")return _.xba(a)}};
_.oc=function(a){if(typeof a!=="string")throw Error();return a};
qc=function(a){if(a!=null&&typeof a!=="string")throw Error();return a};
_.sc=function(a){return a==null||typeof a==="string"?a:void 0};
Gba=function(a,b,c,d){if(a!=null&&typeof a==="object"&&a[tc]===uc)return a;if(!Array.isArray(a))return c?d&2?((a=b[Fba])||(a=new b,vb(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),a=b[Fba]=a),b=a):b=new b:b=void 0,b;c=a[_.kb]|0;d=c|d&32|d&2;d!==c&&pb(a,d);return new b(a)};
Hba=function(a,b,c){a=b?mba(a):_.ec(a);return a==null?c?0:void 0:a|0};
Iba=function(a){return a};
Jba=function(a){return a};
Lba=function(a,b,c,d,e,g){a=Gba(a,d,c,g);e&&(a=Kba(a));return a};
Mba=function(a){return[a,this.get(a)]};
Pba=function(){return Nba||(Nba=new vc(vb([]),void 0,void 0,void 0,Oba))};
Rba=function(a){var b=Qba(wc);return b?a[b]:void 0};
Tba=function(a){var b=Qba(wc),c;jb&&b&&((c=a[b])==null?void 0:c[175237375])!=null&&Laa(Sba,3)};
xc=function(a,b,c,d,e){var g=d?!!(b&32):void 0;d=[];var k=a.length,m=4294967295,n=!1,r=!!(b&64),t=r?b&128?0:-1:void 0;if(!(b&1)){var u=k&&a[k-1];u!=null&&typeof u==="object"&&u.constructor===Object?(k--,m=k):u=void 0;if(r&&!(b&128)&&!e){n=!0;var x;m=((x=Uba)!=null?x:Iba)(m-t,t,a,u)+t}}x=void 0;for(var A=0;A<k;A++){var C=a[A];if(C!=null&&(C=c(C,g))!=null)if(r&&A>=m){var F=A-t,J=void 0;((J=x)!=null?J:x={})[F]=C}else d[A]=C}if(u)for(var I in u)k=u[I],k!=null&&(k=c(k,g))!=null&&(A=+I,C=void 0,r&&!Number.isNaN(A)&&
(C=A+t)<m?d[C]=k:(A=void 0,((A=x)!=null?A:x={})[I]=k));x&&(n?d.push(x):d[m]=x);e&&(pb(d,b&16761025|34),Qba(wc)&&(a=Rba(a))&&a instanceof Vba&&(d[wc]=Wba(a)));return d};
Yba=function(a){a[0]=Xba(a[0]);a[1]=Xba(a[1]);return a};
Xba=function(a){switch(typeof a){case "number":return Number.isFinite(a)?a:""+a;case "bigint":return(0,_.zc)(a)?Number(a):""+a;case "boolean":return a?1:0;case "object":if(Array.isArray(a)){var b=a[_.kb]|0;return a.length===0&&b&1?void 0:xc(a,b,Xba,!1,!1)}if(a[tc]===uc)return Zba(a);if(a instanceof yb){b=a.JSC$6663_value_;if(b==null)a="";else if(typeof b==="string")a=b;else{if(Gaa){for(var c="",d=0,e=b.length-10240;d<e;)c+=String.fromCharCode.apply(null,b.subarray(d,d+=10240));c+=String.fromCharCode.apply(null,
d?b.subarray(d):b);b=btoa(c)}else b=_.Bc(b);a=a.JSC$6663_value_=b}return a}if(a instanceof vc)return a=a.size!==0?Array.from(Dc.prototype.entries.call(a),Yba):void 0,a;return}return a};
Ec=function(a,b){if(b){Uba=b==null||b===Iba||b[$ba]!==aca?Iba:b;try{return Zba(a)}finally{Uba=void 0}}return Zba(a)};
Zba=function(a){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return xc(a,a[_.kb]|0,Xba,void 0,!1)};
dca=function(a){switch(typeof a){case "boolean":return bca||(bca=[0,void 0,!0]);case "number":return a>0?void 0:a===0?cca||(cca=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}};
Fc=function(a,b,c){a=eca(a,b[0],b[1],c?1:2);b!==bca&&c&&ob(a,2048);return a};
_.Gc=function(a,b,c){return eca(a,b,c,3)};
eca=function(a,b,c,d){if(a==null){var e=32;c?(a=[c],e|=128):a=[];b&&(e=e&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error("N");e=a[_.kb]|0;4096&e&&!(2&e)&&fca();if(e&256)throw Error("P");if(e&64)return d!==3||e&4096||pb(a,e|4096),a;if(c&&(e|=128,c!==a[0]))throw Error("Q");a:{c=a;e|=64;var g=c.length;if(g){var k=g-1,m=c[k];if(m!=null&&typeof m==="object"&&m.constructor===Object){b=e&128?0:-1;k-=b;if(k>=1024)throw Error("S");for(var n in m)g=+n,g<k&&(c[g+b]=m[n],delete m[n]);e=e&-16760833|
(k&1023)<<14;break a}}if(b){n=Math.max(b,g-(e&128?0:-1));if(n>1024)throw Error("T");e=e&-16760833|(n&1023)<<14}}}e|=64;d===3&&(e|=4096);pb(a,e);return a};
fca=function(){Laa(gca,5)};
Ic=function(a,b){if(typeof a!=="object")return a;if(Array.isArray(a)){var c=a[_.kb]|0;return a.length===0&&c&1?void 0:c&2?a:!b||8192&c||16&c?xc(a,c,Ic,b!==void 0,!0):(ob(a,34),c&4&&Object.freeze(a),a)}if(a[tc]===uc)return hca(a);if(a instanceof vc){b=a.arrayState;if(b&2)return a;if(!a.size)return;c=vb(Array.from(Dc.prototype.entries.call(a)));if(a.valueCtor)for(a=0;a<c.length;a++){var d=c[a],e=d[1];if(e==null||typeof e!=="object")e=void 0;else if(e[tc]===uc)e=hca(e);else if(Array.isArray(e)){var g=
e[_.kb]|0;g&2||(b&32&&!(8192&g||16&g)?ob(e,34):e=xc(e,g,Ic,!0,!0))}else e=void 0;d[1]=e}return c}if(a instanceof yb)return a};
hca=function(a){var b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=b[_.kb]|0;return xb(a,c)?a:xc(b,c,Ic,!0,!0)};
Kba=function(a){var b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=b[_.kb]|0;if(!xb(a,c))return a;a=new a.constructor(xc(b,c,Ic,!0,!0));tb(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,2);return a};
Jc=function(a){if(a.copyOnWrite!==Qaa)return!1;var b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;b=xc(b,b[_.kb]|0,Ic,!0,!0);tb(b,2);a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=b;a.copyOnWrite=void 0;return!0};
Kc=function(a){if(!Jc(a)&&xb(a,a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.kb]|0))throw Error();};
Lc=function(a,b,c,d,e){var g=c+(e?0:-1),k=a.length-1;if(k>=1+(e?0:-1)&&g>=k){var m=a[k];if(m!=null&&typeof m==="object"&&m.constructor===Object)return m[c]=d,b}if(g<=k)return a[g]=d,b;if(d!==void 0){var n;k=((n=b)!=null?n:b=a[_.kb]|0)>>14&1023||536870912;c>=k?d!=null&&(g={},a[k+(e?0:-1)]=(g[c]=d,g)):a[g]=d}return b};
_.Pc=function(a,b,c,d,e){var g=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k=g[_.kb]|0;d=xb(a,k)?1:d;e=!!e||d===3;d===2&&Jc(a)&&(g=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k=g[_.kb]|0);a=ica(g,b);var m=a===Nc?7:a[_.kb]|0,n=jca(m,k);var r=4&n?!1:!0;if(r){4&n&&(a=Ub(a),m=0,n=Oc(n,k),k=Lc(g,k,b,a));for(var t=0,u=0;t<a.length;t++){var x=c(a[t]);x!=null&&(a[u++]=x)}u<t&&(a.length=u);c=(n|4)&-513;n=c&=-1025}n!==m&&(pb(a,n),2&n&&Object.freeze(a));return a=kca(a,n,g,k,b,d,r,e)};
kca=function(a,b,c,d,e,g,k,m){var n=b;g===1||(g!==4?0:2&b||!(16&b)&&32&d)?Qc(b)||(b|=a.length&&(8192&b||!k&&(!(32&d)||16&b))?256:2,b!==n&&pb(a,b),Object.freeze(a)):(g===2&&Qc(b)&&(a=Ub(a),n=0,b=Oc(b,d),Lc(c,d,e,a)),Qc(b)||(m||(b|=16),b!==n&&pb(a,b)));return a};
ica=function(a,b,c){a=Rc(a,b,c);return Array.isArray(a)?a:Nc};
jca=function(a,b){2&b&&(a|=2);return a|1};
Qc=function(a){return!!(2&a)&&!!(4&a)||!!(256&a)};
lca=function(a){return _.Eb(a,!0)};
mca=function(a,b){var c=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=c[_.kb]|0;a:{var e=d;d=xb(a,d);!d&&Jc(a)&&(c=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=c[_.kb]|0);var g=Rc(c,b);a=!1;if(g==null){if(d){b=Pba();break a}g=[]}else if(g.constructor===vc)if(g.arrayState&2&&!d)g=Array.from(Dc.prototype.entries.call(g));else{b=g;break a}else Array.isArray(g)?a=!!((g[_.kb]|0)&2):g=[];if(d){if(!g.length){b=Pba();break a}a||(a=!0,vb(g))}else if(a){a=!1;d=g;d=Ub(d);for(g=0;g<
d.length;g++){var k=d[g]=Ub(d[g]);Array.isArray(k[1])&&(k[1]=vb(k[1]))}g=d}!a&&e&32&&Paa(g);a=new vc(g,void 0,Hba,Hba);Lc(c,e,b,a);b=a}return b};
_.Sc=function(a,b,c,d){Kc(a);var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=e[_.kb]|0;if(c==null)return Lc(e,g,b),a;var k=c===Nc?7:c[_.kb]|0,m=k,n=Qc(k),r=n||Object.isFrozen(c);n||(k=0);r||(c=Ub(c),m=0,k=Oc(k,g),r=!1);k|=5;var t;n=(t=Oaa(k))!=null?t:0;for(t=0;t<c.length;t++){var u=c[t],x=d(u,n);Object.is(u,x)||(r&&(c=Ub(c),m=0,k=Oc(k,g),r=!1),c[t]=x)}k!==m&&(r&&(c=Ub(c),k=Oc(k,g)),pb(c,k));Lc(e,g,b,c);return a};
_.Uc=function(a,b,c,d,e){Kc(a);var g=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Lc(g,g[_.kb]|0,b,(d==="0"?Number(c)===0:c===d)?void 0:c,e);return a};
_.nca=function(a,b,c){if(b&2)throw Error();var d=Hb(b),e=ica(a,c,d),g=e===Nc?7:e[_.kb]|0,k=jca(g,b);if(2&k||Qc(k)||16&k)e=Ub(e),g=0,k=Oc(k,b),Lc(a,b,c,e,d);k&=-13;k!==g&&pb(e,k);return e};
oca=function(a){if(jb){var b;return(b=a[Vc])!=null?b:a[Vc]=new Map}if(Vc in a)return a[Vc];b=new Map;Object.defineProperty(a,Vc,{value:b});return b};
qca=function(a,b,c,d,e){var g=oca(a),k=pca(g,a,b,c,e);k!==d&&(k&&(b=Lc(a,b,k,void 0,e)),g.set(c,d));return b};
pca=function(a,b,c,d,e){var g=a.get(d);if(g!=null)return g;for(var k=g=0;k<d.length;k++){var m=d[k];Rc(b,m,e)!=null&&(g!==0&&(c=Lc(b,c,g,void 0,e)),g=m)}a.set(d,g);return g};
rca=function(a,b,c,d,e){a=Rc(a,d,e,function(g){return Gba(g,c,!1,b)});
if(a!=null)return a};
sca=function(a,b,c,d,e,g,k,m){var n=xb(a,c);g=n?1:g;k=!!k||g===3;n=m&&!n;(g===2||n)&&Jc(a)&&(b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=b[_.kb]|0);a=ica(b,e);var r=a===Nc?7:a[_.kb]|0,t=jca(r,c);if(m=!(4&t)){var u=a,x=c,A=!!(2&t);A&&(x|=2);for(var C=!A,F=!0,J=0,I=0;J<u.length;J++){var R=Gba(u[J],d,!1,x);if(R instanceof d){if(!A){var da=xb(R);C&&(C=!da);F&&(F=da)}u[I++]=R}}I<J&&(u.length=I);t|=4;t=F?t&-8193:t|8192;t=C?t|8:t&-9}t!==r&&(pb(a,t),2&t&&Object.freeze(a));if(n&&!(8&t||!a.length&&
(g===1||(g!==4?0:2&t||!(16&t)&&32&c)))){Qc(t)&&(a=Ub(a),t=Oc(t,c),c=Lc(b,c,e,a));d=a;n=t;for(r=0;r<d.length;r++)u=d[r],t=Kba(u),u!==t&&(d[r]=t);n|=8;t=n=d.length?n|8192:n&-8193;pb(a,t)}return a=kca(a,t,b,c,e,g,m,k)};
tca=function(a){a==null&&(a=void 0);return a};
Oc=function(a,b){return a=(2&b?a|2:a&-3)&-273};
_.uca=function(a,b,c,d,e){Kc(a);b=_.Pc(a,b,e,2,!0);var g;e=(g=Oaa(b===Nc?7:b[_.kb]|0))!=null?g:0;b.push(c(d,e));return a};
vca=function(a,b,c,d,e,g,k){Kc(a);var m=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;a=sca(a,m,m[_.kb]|0,c,b,2,!0);if(g&&k)e!=null||(e=a.length-1),Saa(a,e),a.splice(e,g),a.length||tb(a,8192);else{if(g){if(typeof e!=="number"||e<0||e>a.length)throw Error();}else d=d!=null?d:new c;e!=void 0?a.splice(e,g,d):a.push(d);e=c=a===Nc?7:a[_.kb]|0;xb(d)?(c&=-9,a.length===1&&(c&=-8193)):c|=8192;c!==e&&pb(a,c)}};
xca=function(a,b){if(typeof a==="string")return{buffer:Iaa(a),isImmutable:b};if(Array.isArray(a))return{buffer:new Uint8Array(a),isImmutable:b};if(a.constructor===Uint8Array)return{buffer:a,isImmutable:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),isImmutable:!1};if(a.constructor===yb)return{buffer:wca(a)||new Uint8Array(0),isImmutable:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),isImmutable:!1};throw Error("ba");};
_.Xc=function(){var a=function(){throw Error();};
Object.setPrototypeOf(a,a.prototype);return a};
zca=function(a,b){var c=c===void 0?yca:c;return new Yc(a,b,c)};
Dca=function(a,b,c,d,e){b=Aca(b,d);b!=null&&(c=_.Bca(a,c),e(b,a),_.Cca(a,c))};
Zc=function(a,b,c,d){var e=d[a];if(e)return e;e={};e.binaryFields=d;e.messageMetadata=dca(d[0]);var g=d[1],k=1;g&&g.constructor===Object&&(e.extensions=g,g=d[++k],typeof g==="function"&&(e.isMessageSet=!0,Eca!=null||(Eca=g),Fca!=null||(Fca=d[k+1]),g=d[k+=2]));for(var m={};g&&Array.isArray(g)&&g.length&&typeof g[0]==="number"&&g[0]>0;){for(var n=0;n<g.length;n++)m[g[n]]=g;g=d[++k]}for(n=1;g!==void 0;){typeof g==="number"&&(n+=g,g=d[++k]);var r=void 0;if(g instanceof Yc)var t=g;else t=Gca,k--;g=void 0;
if((g=t)==null?0:g.$$isMsg){g=d[++k];r=d;var u=k;typeof g==="function"&&(g=g(),r[u]=g);r=g}g=d[++k];u=n+1;typeof g==="number"&&g<0&&(u-=g,g=d[++k]);for(;n<u;n++){var x=m[n];r?c(e,n,t,r,x):b(e,n,t,x)}}return d[a]=e};
Ica=function(a){return Array.isArray(a)?a[0]instanceof Yc?a:[Hca,a]:[a,void 0]};
Aca=function(a,b){if(a instanceof _.bd)return a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(a))return Fc(a,b,!1)};
Jca=function(a,b,c,d){var e=c.$$binaryReaderFn;a[b]=d?function(g,k,m){return e(g,k,m,d)}:e};
Lca=function(a,b,c,d,e){var g=c.$$binaryReaderFn,k,m;a[b]=function(n,r,t){return g(n,r,t,m||(m=Zc(Kca,Jca,Lca,d).messageMetadata),k||(k=Mca(d)),e)}};
Mca=function(a){var b=a[Nca];if(b!=null)return b;var c=Zc(Kca,Jca,Lca,a);b=c.isMessageSet?function(d,e){return Eca(d,e,c)}:function(d,e){for(var g=d[_.kb]|0;Oca(e)&&e.nextWireType_!=4;){var k=e.nextField_,m=c[k];
if(m==null){var n=c.extensions;n&&(n=n[k])&&(n=Pca(n),n!=null&&(m=c[k]=n))}if(m==null||!m(e,d,k)){n=e;m=n.fieldCursor_;Qca(n);if(n.discardUnknownFields)var r=void 0;else{var t=n.decoder_.cursor_-m;n.decoder_.cursor_=m;r=Rca(n.decoder_,t)}t=n=m=void 0;var u=d;r&&((m=(n=(t=u[wc])!=null?t:u[wc]=new Vba)[k])!=null?m:n[k]=[]).push(r)}}if(e=Rba(d))e.reviveUnknownFields=c.binaryFields[Sca];g&2048&&vb(d);return!0};
a[Nca]=b;a[Sca]=Tca.bind(a);return b};
Tca=function(a,b,c){var d=this[Kca],e=this[Nca],g=Fc(void 0,d.messageMetadata,!1),k=Rba(a);if(k){var m=!1,n=d.extensions;if(n&&(k==null||Uca(k,function(u,x,A){if(A.length!==0)if(n[x])for(u=_.h(A),x=u.next();!x.done;x=u.next()){x=Vca(x.value);try{m=!0,e(g,x)}finally{x.free()}}else c==null||c(a,x,A)}),m)){var r=a[_.kb]|0;
if(r&2&&r&4096)throw Error();var t=Hb(r);Taa(g,g[_.kb]|0,function(u,x){if(Rc(a,u,t)!=null)switch(b==null?void 0:b.resolutionBehavior){case 1:return;default:throw Error();}r=Lc(a,r,u,x,t);delete k[u]})}}};
Pca=function(a){a=Ica(a);var b=a[0].$$binaryReaderFn;if(a=a[1]){var c=Mca(a),d=Zc(Kca,Jca,Lca,a).messageMetadata;return function(e,g,k){return b(e,g,k,d,c)}}return b};
Wca=function(a,b,c){a[b]=c.$$binaryWriterFn};
Yca=function(a,b,c,d){var e,g,k=c.$$binaryWriterFn;a[b]=function(m,n,r){return k(m,n,r,g||(g=Zc(Xca,Wca,Yca,d).messageMetadata),e||(e=Zca(d)))}};
Zca=function(a){var b=a[$ca];if(!b){var c=Zc(Xca,Wca,Yca,a);b=function(d,e){return ada(d,e,c)};
a[$ca]=b}return b};
ada=function(a,b,c){Taa(a,a[_.kb]|0,function(d,e){if(e!=null){var g=bda(c,d);g&&g(b,e,d)}});
(a=Rba(a))&&Uca(a,function(d,e,g){cd(b,b.encoder_.end());for(d=0;d<g.length;d++)cd(b,wca(g[d])||new Uint8Array(0))})};
bda=function(a,b){var c=a[b];if(c)return c;if(c=a.extensions)if(c=c[b]){c=Ica(c);var d=c[0].$$binaryWriterFn;if(c=c[1]){var e=Zca(c),g=Zc(Xca,Wca,Yca,c).messageMetadata;c=a.isMessageSet?Fca(g,e):function(k,m,n){return d(k,m,n,g,e)}}else c=d;
return a[b]=c}};
_.cda=function(a,b,c){if(Array.isArray(b)){var d=b[_.kb]|0;if(d&4)return b;for(var e=0,g=0;e<b.length;e++){var k=a(b[e]);k!=null&&(b[g++]=k)}g<e&&(b.length=g);c&&(pb(b,(d|5)&-1537),d&2&&Object.freeze(b));return b}};
_.dd=function(a,b,c){return new Yc(a,b,c)};
_.dda=function(a,b,c){return new Yc(a,b,c)};
_.ed=function(a,b,c){Lc(a,a[_.kb]|0,b,c,Hb(a[_.kb]|0))};
fda=function(a,b,c){b=hba(b);b!=null&&(_.fd(a,c,1),a=a.encoder_,c=eda||(eda=new DataView(new ArrayBuffer(8))),c.setFloat64(0,+b,!0),Nb=c.getUint32(0,!0),Ob=c.getUint32(4,!0),_.gd(a,Nb),_.gd(a,Ob))};
_.id=function(a,b,c){b=Dba(b);if(b!=null){switch(typeof b){case "string":gda(b)}if(b!=null)switch(_.fd(a,c,0),typeof b){case "number":a=a.encoder_;Pb(b);hda(a,Nb,Ob);break;case "bigint":c=BigInt.asUintN(64,b);c=new ida(Number(c&BigInt(4294967295)),Number(c>>BigInt(32)));hda(a.encoder_,c.JSC$6721_lo,c.JSC$6721_hi);break;default:c=gda(b),hda(a.encoder_,c.JSC$6721_lo,c.JSC$6721_hi)}}};
kda=function(a,b,c){b=_.ec(b);b!=null&&b!=null&&(_.fd(a,c,0),_.jda(a.encoder_,b))};
_.mda=function(a,b,c){lda(a,c,Eba(b))};
_.nda=function(a,b,c){b=kba(b);b!=null&&(_.fd(a,c,0),a.encoder_.JSC$6723_buffer_.push(b?1:0))};
_.pda=function(a,b,c){b=_.sc(b);b!=null&&oda(a,c,eaa(b))};
qda=function(a,b,c,d,e){b=Aca(b,d);b!=null&&(c=_.Bca(a,c),e(b,a),_.Cca(a,c))};
_.rda=function(a,b,c){b=b==null||typeof b=="string"||b instanceof yb?b:void 0;b!=null&&oda(a,c,xca(b,!0).buffer)};
_.sda=function(a,b,c){b=_.ec(b);b!=null&&(b=parseInt(b,10),_.fd(a,c,0),_.jda(a.encoder_,b))};
_.kd=function(a,b){return function(c,d){var e={treatNewDataAsImmutable:!0};d&&Object.assign(e,d);c=Vca(c,void 0,void 0,e);try{var g=new a,k=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Mca(b)(k,c);var m=g}finally{c.free()}return m}};
_.md=function(a){return function(b){return tda(b,a)}};
uda=function(a){return function(){return tda(this,a)}};
_.vda=function(a){return Kb(function(b){return b instanceof a&&!xb(b)})};
_.od=function(a){return function(b){return wda(a,b)}};
Ada=function(a,b){return xda({child:a,origin:b||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:yda,getPayloadCase:function(c){return c.getPayloadCase()},
createInitMessage:function(c){var d=new pd,e=new zda;c=_.qd(e,1,c);return _.rd(d,5,sd,c)}})};
ud=function(a){return{valueOf:a}.valueOf()};
Cda=function(){var a=null;if(!Bda)return a;try{var b=function(c){return c};
a=Bda.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){}return a};
Eda=function(){Dda===void 0&&(Dda=Cda());return Dda};
_.xd=function(a){var b=Eda();a=b?b.createScriptURL(a):a;return new wd(a)};
_.zd=function(a){if(a instanceof wd)return a.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("ga");};
Fda=function(a){return a.toString().indexOf("`")===-1};
Cd=function(a){return new _.Ad(Gda,a)};
Dd=function(a){return a instanceof _.Ad};
_.Ed=function(a){if(Dd(a))return a.privateDoNotAccessOrElseWrappedUrl;throw Error("ga");};
Fd=function(a){return new Hda(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
Gd=function(a,b){b=b===void 0?Ida:b;if(Dd(a))return a;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof Hda&&d.isValid(a))return Cd(a)}};
_.Id=function(a,b){b=b===void 0?Ida:b;return Gd(a,b)||Hd};
Jd=function(a){var b=window;if(typeof MediaSource!=="undefined"&&a instanceof MediaSource||typeof b.ManagedMediaSource!=="undefined"&&a instanceof b.ManagedMediaSource)return Cd(URL.createObjectURL(a));b=a.type;b.toLowerCase()==="application/octet-stream"?b=!0:(b=b.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),b=(b==null?void 0:b.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(b[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(b[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(b[1])||/^font\/[\w-]+$/i.test(b[1])));if(!b)throw Error("ga");return Cd(URL.createObjectURL(a))};
_.Ld=function(a){for(var b=_.Kd.apply(1,arguments),c=[a[0]],d=0;d<b.length;d++)c.push(String(b[d])),c.push(a[d+1]);return Cd(c.join(""))};
_.Kda=function(a){if(!Jda){a:{var b=document.createElement("a");try{b.href=a}catch(c){a=void 0;break a}a=b.protocol;a=a===":"||a===""?"https:":a}return a}try{b=new URL(a)}catch(c){return"https:"}return b.protocol};
_.Md=function(a){a instanceof _.Ad?a=_.Ed(a):a=Lda.test(a)?a:void 0;return a};
Nd=function(a,b){b=_.Md(b);b!==void 0&&(a.href=b)};
Qd=function(a){var b=Eda();a=b?b.createHTML(a):a;return new Od(a)};
Rd=function(a){if(a instanceof Od)return a.privateDoNotAccessOrElseWrappedHtml;throw Error("ga");};
_.Sd=function(a,b){a.src=_.zd(b).toString()};
Mda=function(a,b){a.setAttribute("sandbox","");for(var c=0;c<b.length;c++)a.sandbox.supports&&!a.sandbox.supports(b[c])||a.sandbox.add(b[c])};
_.Oda=function(a,b,c){a.removeAttribute("srcdoc");switch(b){case 0:if(c instanceof wd)throw new Nda("TrustedResourceUrl",0);Mda(a,[]);b=_.Md(c);b!==void 0&&(a.src=b);break;case 1:if(!(c instanceof wd))throw new Nda(typeof c,1);Mda(a,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.Sd(a,c);break;case 2:if(c instanceof wd)throw new Nda("TrustedResourceUrl",2);Mda(a,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
b=_.Md(c);b!==void 0&&(a.src=b);break;default:_.Wb(b)}};
_.Td=function(a,b,c,d){b=_.Md(b);return b!==void 0?a.open(b,c,d):null};
_.Ud=function(a){a=a===void 0?document:a;var b,c;a=(c=(b=a).querySelector)==null?void 0:c.call(b,"script[nonce]");return a==null?"":a.nonce||a.getAttribute("nonce")||""};
_.Wd=function(a){var b=Eda();a=b?b.createScript(a):a;return new _.Vd(a)};
Pda=function(a){if(a instanceof _.Vd)return a.privateDoNotAccessOrElseWrappedScript;throw Error("ga");};
Qda=function(a){var b=_.Ud(a.ownerDocument);b&&a.setAttribute("nonce",b)};
_.Yd=function(a,b){a.textContent=Pda(b);Qda(a)};
_.Zd=function(a,b){a.src=_.zd(b);Qda(a)};
_.$d=function(a,b){if(a.nodeType===1&&/^(script|style)$/i.test(a.tagName))throw Error("ga");a.innerHTML=Rd(b)};
_.ae=function(a,b,c,d){if(a.length===0)throw Error("ga");a=a.map(function(g){if(g instanceof Rda)g=g.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("ga");return g});
var e=c.toLowerCase();if(a.every(function(g){return e.indexOf(g)!==0}))throw Error("ha`"+c);
b.setAttribute(c,d)};
_.ce=function(a,b,c){if(b instanceof wd)a.href=_.zd(b).toString(),a.rel=c;else{if(Sda.indexOf(c)===-1)throw Error("ia`"+c);b=_.Md(b);b!==void 0&&(a.href=b,a.rel=c)}};
Tda=function(a){return"function"==typeof _.de&&a instanceof _.de};
_.Uda=function(a){if(Tda(a))return a.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("ga");};
_.Vda=function(a,b){b=_.Md(b);b!==void 0&&(a.href=b)};
Wda=function(a,b){a&&(b=a.indexOf(b),0<=b&&a.splice(b,1))};
ee=function(a){return typeof a==="function"};
Xda=function(a){return a instanceof fe||a&&"closed"in a&&ee(a.remove)&&ee(a.add)&&ee(a.unsubscribe)};
ge=function(){};
he=function(a){Yda(function(){throw a;})};
ie=function(a){return a};
je=function(){return Zda(_.Kd.apply(0,arguments))};
Zda=function(a){return a.length===0?ie:a.length===1?a[0]:function(b){return a.reduce(function(c,d){return d(c)},b)}};
$da=function(a){var b;return(b=a!=null?a:void 0)!=null?b:Promise};
aea=function(a,b){return new ke(function(c){var d=0;return b.schedule(function(){d===a.length?c.complete():(c.next(a[d++]),c.closed||this.schedule())})})};
bea=function(a,b){if(!a)throw Error("ja");return new ke(function(c){var d=new fe;d.add(b.schedule(function(){var e=a[Symbol.asyncIterator]();d.add(b.schedule(function(){var g=this;e.next().then(function(k){k.done?c.complete():(c.next(k.value),g.schedule())})}))}));
return d})};
cea=function(a,b,c){b=b.schedule(function(){try{c.call(this)}catch(d){a.error(d)}},0);
a.add(b)};
eea=function(a,b){return new ke(function(c){var d;c.add(b.schedule(function(){d=a[dea]();cea(c,b,function(){var e=d.next(),g=e.value;e.done?c.complete():(c.next(g),this.schedule())})}));
return function(){var e;return ee((e=d)==null?void 0:e.return)&&d.return()}})};
fea=function(a,b){return new ke(function(c){var d=new fe;d.add(b.schedule(function(){var e=a[le]();d.add(e.subscribe({next:function(g){d.add(b.schedule(function(){return c.next(g)}))},
error:function(g){d.add(b.schedule(function(){return c.error(g)}))},
complete:function(){d.add(b.schedule(function(){return c.complete()}))}}))}));
return d})};
gea=function(a,b){return new ke(function(c){return b.schedule(function(){return a.then(function(d){c.add(b.schedule(function(){c.next(d);c.add(b.schedule(function(){return c.complete()}))}))},function(d){c.add(b.schedule(function(){return c.error(d)}))})})})};
hea=function(a){return new TypeError("ka`"+(a!==null&&typeof a==="object"?"an invalid object":"'"+a+"'"))};
jea=function(a,b){if(a!=null){if(ee(a[le]))return fea(a,b);if(iea(a))return aea(a,b);if(ee(a==null?void 0:a.then))return gea(a,b);if(Symbol.asyncIterator&&ee(a==null?void 0:a[Symbol.asyncIterator]))return bea(a,b);if(ee(a==null?void 0:a[dea]))return eea(a,b)}throw hea(a);};
oe=function(a,b){return b?jea(a,b):me(a)};
me=function(a){if(a instanceof ke)return a;if(a!=null){if(ee(a[le]))return kea(a);if(iea(a))return lea(a);if(ee(a==null?void 0:a.then))return mea(a);if(Symbol.asyncIterator&&ee(a==null?void 0:a[Symbol.asyncIterator]))return nea(a);if(ee(a==null?void 0:a[dea]))return oea(a)}throw hea(a);};
kea=function(a){return new ke(function(b){var c=a[le]();if(ee(c.subscribe))return c.subscribe(b);throw new TypeError("la");})};
lea=function(a){return new ke(function(b){for(var c=0;c<a.length&&!b.closed;c++)b.next(a[c]);b.complete()})};
mea=function(a){return new ke(function(b){a.then(function(c){b.closed||(b.next(c),b.complete())},function(c){return b.error(c)}).then(null,he)})};
oea=function(a){return new ke(function(b){for(var c=a[dea]();!b.closed;){var d=c.next(),e=d.value;d.done?b.complete():b.next(e)}return function(){return ee(c==null?void 0:c.return)&&c.return()}})};
nea=function(a){return new ke(function(b){pea(a,b).catch(function(c){return b.error(c)})})};
pea=function(a,b){var c,d,e,g,k,m;return _.l(function(n){switch(n.nextAddress){case 1:_.pe(n,2,3);var r=a[Symbol.asyncIterator];g=r!==void 0?r.call(a):new qea(_.h(a));case 5:return _.p(n,g.next(),8);case 8:d=n.yieldResult;if(d.done){n.jumpTo(3);break}k=d.value;b.next(k);n.jumpTo(5);break;case 3:_.qe(n);_.re(n,9);if(!d||d.done||!(e=g.return)){n.jumpTo(9);break}return _.p(n,e.call(g),9);case 9:_.qe(n,0,0,1);if(c)throw c.error;_.se(n,10,1);break;case 10:_.se(n,4);break;case 2:m=_.te(n);c={error:m};n.jumpTo(3);
break;case 4:b.complete(),_.ue(n)}})};
rea=function(a,b){return b?aea(a,b):lea(a)};
sea=function(a){return ee(a[a.length-1])?a.pop():void 0};
ve=function(a){var b=a[a.length-1];return b&&ee(b.schedule)?a.pop():void 0};
we=function(){var a=_.Kd.apply(0,arguments),b=ve(a);return b?aea(a,b):rea(a)};
xe=function(a){var b=ee(a)?a:function(){return a};
return new ke(function(c){return c.error(b())})};
ye=function(a){return function(b){if(ee(b==null?void 0:b.lift))return b.lift(function(c){try{return a(c,this)}catch(d){this.error(d)}});
throw new TypeError("ma");}};
Be=function(){return ye(function(a,b){var c=null;a._refCount++;var d=new Ae(b,void 0,void 0,void 0,function(){if(!a||a._refCount<=0||0<--a._refCount)c=null;else{var e=a._connection,g=c;c=null;!e||g&&e!==g||e.unsubscribe();b.unsubscribe()}});
a.subscribe(d);d.closed||(c=a.connect())})};
uea=function(){var a=tea;var b=b===void 0?0:b;return ye(function(c,d){d.add(a.schedule(function(){return c.subscribe(d)},b))})};
Ce=function(a){return ye(function(b,c){var d=0;b.subscribe(new Ae(c,function(e){c.next(a.call(void 0,e,d++))}))})};
wea=function(a){return Ce(function(b){return vea(b)?a.apply(null,_.De(b)):a(b)})};
Bea=function(a){if(a.length===1){var b=a[0];if(xea(b))return{args:b,keys:null};if(b&&typeof b==="object"&&yea(b)===zea)return a=Aea(b),{args:a.map(function(c){return b[c]}),
keys:a}}return{args:a,keys:null}};
Ee=function(){var a=_.Kd.apply(0,arguments),b=ve(a),c=sea(a);a=Bea(a);var d=a.args,e=a.keys;if(d.length===0)return oe([],b);b=new ke(Cea(d,b,e?function(g){for(var k={},m=0;m<g.length;m++)k[e[m]]=g[m];return k}:ie));
return c?b.pipe(wea(c)):b};
Cea=function(a,b,c){c=c===void 0?ie:c;return function(d){Dea(b,function(){for(var e=a.length,g=Array(e),k=e,m=a.map(function(){return!1}),n=!0,r={i$jscomp$259:0};r.i$jscomp$259<e;r={i$jscomp$259:r.i$jscomp$259},r.i$jscomp$259++)Dea(b,function(t){return function(){oe(a[t.i$jscomp$259],b).subscribe(new Fe(d,function(u){g[t.i$jscomp$259]=u;
n&&(m[t.i$jscomp$259]=!0,n=!m.every(ie));n||d.next(c(g.slice()))},function(){return--k===0}))}}(r),d)},d)}};
Dea=function(a,b,c){a?c.add(a.schedule(b)):b()};
Eea=function(a,b,c,d){var e=[],g=0,k=0,m=!1,n=function(r){g++;me(c(r,k++)).subscribe(new Ae(b,function(t){b.next(t)},void 0,function(){g--;
for(var t={};e.length&&g<d;t={bufferedValue:void 0})t.bufferedValue=e.shift(),n(t.bufferedValue);!m||e.length||g||b.complete()}))};
a.subscribe(new Ae(b,function(r){return g<d?n(r):e.push(r)},void 0,function(){m=!0;
!m||e.length||g||b.complete()}));
return function(){e=null}};
Ge=function(a,b){var c=c===void 0?Infinity:c;if(ee(b))return Ge(function(d,e){return Ce(function(g,k){return b(d,g,e,k)})(me(a(d,e)))},c);
typeof b==="number"&&(c=b);return ye(function(d,e){return Eea(d,e,a,c)})};
Fea=function(a){a=a===void 0?Infinity:a;return Ge(ie,a)};
Gea=function(){var a=_.Kd.apply(0,arguments);return Fea(1)(rea(a,ve(a)))};
Hea=function(a){return new ke(function(b){me(a()).subscribe(b)})};
He=function(a,b,c){if(ee(c)){var d=c;c=void 0}if(d)return He(a,b,c).pipe(wea(d));d=_.h(ee(a.addEventListener)&&ee(a.removeEventListener)?Iea.map(function(k){return function(m){return a[k](b,m,c)}}):ee(a.addListener)&&ee(a.removeListener)?Jea.map(Kea(a,b)):ee(a.on)&&ee(a.off)?Lea.map(Kea(a,b)):[]);
var e=d.next().value,g=d.next().value;return!e&&iea(a)?Ge(function(k){return He(k,b,c)})(rea(a)):new ke(function(k){if(!e)throw new TypeError("na");
var m=function(){var n=_.Kd.apply(0,arguments);return k.next(1<n.length?n:n[0])};
e(m);return function(){return g(m)}})};
Kea=function(a,b){return function(c){return function(d){return a[c](b,d)}}};
Je=function(){var a=_.Kd.apply(0,arguments),b=ve(a);var c=typeof a[a.length-1]==="number"?a.pop():Infinity;return a.length?a.length===1?me(a[0]):Fea(c)(rea(a,b)):Ie};
Nea=function(a){return a.length===1&&Mea(a[0])?a[0]:a};
Oea=function(){var a=Nea(_.Kd.apply(0,arguments));return ye(function(b,c){var d=[b].concat(_.De(a)),e=function(){if(!c.closed)if(d.length>0){try{var g=me(d.shift())}catch(m){e();return}var k=new Ae(c,void 0,ge,ge);c.add(g.subscribe(k));k.add(e)}else c.complete()};
e()})};
Ke=function(a){return ye(function(b,c){var d=0;b.subscribe(new Ae(c,function(e){return a.call(void 0,e,d++)&&c.next(e)}))})};
Qea=function(){var a=_.Kd.apply(0,arguments);a=Nea(a);return a.length===1?me(a[0]):new ke(Pea(a))};
Pea=function(a){return function(b){for(var c=[],d={i$jscomp$262:0};c&&!b.closed&&d.i$jscomp$262<a.length;d={i$jscomp$262:d.i$jscomp$262},d.i$jscomp$262++)c.push(me(a[d.i$jscomp$262]).subscribe(new Ae(b,function(e){return function(g){if(c){for(var k=0;k<c.length;k++)k!==e.i$jscomp$262&&c[k].unsubscribe();c=null}b.next(g)}}(d))))}};
Rea=function(){var a=_.Kd.apply(0,arguments),b=sea(a),c=Nea(a);return c.length?new ke(function(d){var e=c.map(function(){return[]}),g=c.map(function(){return!1});
d.add(function(){e=g=null});
for(var k={sourceIndex$jscomp$1:0};!d.closed&&k.sourceIndex$jscomp$1<c.length;k={sourceIndex$jscomp$1:k.sourceIndex$jscomp$1},k.sourceIndex$jscomp$1++)me(c[k.sourceIndex$jscomp$1]).subscribe(new Ae(d,function(m){return function(n){e[m.sourceIndex$jscomp$1].push(n);e.every(function(r){return r.length})&&(n=e.map(function(r){return r.shift()}),d.next(b?b.apply(null,_.De(n)):n),e.some(function(r,t){return!r.length&&g[t]})&&d.complete())}}(k),void 0,function(m){return function(){g[m.sourceIndex$jscomp$1]=
!0;
!e[m.sourceIndex$jscomp$1].length&&d.complete()}}(k)));
return function(){e=g=null}}):Ie};
Sea=function(a){var b,c,d;return!!a&&typeof a.active==="boolean"&&typeof((b=a.clock)==null?void 0:b.now)==="function"&&((c=a.clock)==null?void 0:c.timeline)!==void 0&&!((d=a.lastMeasurement)==null||!d.timestamp)&&typeof a.equivalentTo==="function"&&typeof a.extrapolateToNow==="function"&&typeof a.extrapolateToTime==="function"&&typeof a.map==="function"&&typeof a.joinWith==="function"};
Tea=function(a){function b(c){return typeof c==="boolean"||typeof c==="string"||typeof c==="number"||c===void 0||c===null}
return b(a)?!0:Array.isArray(a)?a.every(b):typeof a==="object"?Object.keys(a).every(function(c){return typeof c==="string"})&&Object.values(a).every(function(c){return Array.isArray(c)?c.every(b):b(c)}):!1};
Uea=function(a){if(Tea(a))return a;if(Sea(a))return{lastMeasurement:{value:Uea(a.lastMeasurement.value),timestamp:Le(a.lastMeasurement.timestamp,new Me(0,a.lastMeasurement.timestamp.timeline))},active:a.active};try{return JSON.parse(JSON.stringify(a))}catch(b){}return String(a)};
Ne=function(a,b){return function(c){return new ke(function(d){return c.subscribe(function(e){a.timeExecution(b,function(){d.next(e)})()},function(e){a.timeExecution(b,function(){d.error(e)})()},function(){a.timeExecution(b,function(){d.complete()})()})})}};
Vea=function(a,b){var c=!1;return new ke(function(d){var e=a.setTimeout(function(){c=!0;d.next(!0);d.complete()},b);
return function(){c||a.clearTimeout(e)}})};
Wea=function(a){a=a.global;if(a.fetchLater)return a.fetchLater.bind(a)};
Oe=function(a){return ye(function(b,c){var d=null,e=!1,g;d=b.subscribe(new Ae(c,void 0,function(k){g=me(a(k,Oe(a)(b)));d?(d.unsubscribe(),d=null,g.subscribe(c)):e=!0}));
e&&(d.unsubscribe(),d=null,g.subscribe(c))})};
Xea=function(a,b,c){return function(d,e){var g=c,k=b,m=0;d.subscribe(new Ae(e,function(n){var r=m++;k=g?a(k,n,r):(g=!0,n);e.next(k)},void 0,void 0))}};
Yea=function(a){a=a===void 0?null:a;return ye(function(b,c){var d=!1;b.subscribe(new Ae(c,function(e){d=!0;c.next(e)},void 0,function(){d||c.next(a);
c.complete()}))})};
Pe=function(){return ye(function(a,b){a.subscribe(new Ae(b,ge))})};
Qe=function(a){return ye(function(b,c){b.subscribe(new Ae(c,function(){return c.next(a)}))})};
Re=function(a){return a<=0?function(){return Ie}:ye(function(b,c){var d=0;
b.subscribe(new Ae(c,function(e){++d<=a&&(c.next(e),a<=d&&c.complete())}))})};
Se=function(a){var b=b===void 0?ie:b;var c;a=(c=a)!=null?c:Zea;return ye(function(d,e){var g,k=!0;d.subscribe(new Ae(e,function(m){var n=b(m);if(k||!a(g,n))k=!1,g=n,e.next(m)}))})};
Zea=function(a,b){return a===b};
afa=function(a){a=a===void 0?$ea:a;return ye(function(b,c){var d=!1;b.subscribe(new Ae(c,function(e){d=!0;c.next(e)},void 0,function(){return d?c.complete():c.error(a())}))})};
$ea=function(){return new bfa};
Te=function(){var a=_.Kd.apply(0,arguments);return function(b){return Gea(b,we.apply(null,_.De(a)))}};
cfa=function(a){return ye(function(b,c){var d=0;b.subscribe(new Ae(c,function(e){a.call(void 0,e,d++,b)||(c.next(!1),c.complete())},void 0,function(){c.next(!0);
c.complete()}))})};
dfa=function(){return ye(function(a,b){var c=[];a.subscribe(new Ae(b,function(d){c.push(d);1<c.length&&c.shift()},void 0,function(){for(var d=_.h(c),e=d.next();!e.done;e=d.next())b.next(e.value);
b.complete()},function(){c=null}))})};
efa=function(a,b){var c=arguments.length>=2;return function(d){return d.pipe(a?Ke(function(e,g){return a(e,g,d)}):ie,dfa(),c?Yea(b):afa(function(){return new bfa}))}};
We=function(a){var b=ee(a)?a:function(){return a};
return ee()?ye(function(c,d){var e=b();(void 0)(e).subscribe(d).add(c.subscribe(e))}):function(c){var d=new Ue(c,b);
ee(c==null?void 0:c.lift)&&(d.lift=c.lift);d.source=c;d.subjectFactory=b;return d}};
Ye=function(a){var b=new Xe(a,void 0,void 0);return function(c){return We(function(){return b})(c)}};
Ze=function(a,b){return ye(Xea(a,b,arguments.length>=2))};
$e=function(){var a=_.Kd.apply(0,arguments),b=ve(a);return ye(function(c,d){(b?Gea(a,c,b):Gea(a,c)).subscribe(d)})};
af=function(a){return ye(function(b,c){var d=null,e=0,g=!1;b.subscribe(new Ae(c,function(k){var m;(m=d)==null||m.unsubscribe();m=e++;me(a(k,m)).subscribe(d=new Ae(c,function(n){return c.next(n)},void 0,function(){d=null;
g&&!d&&c.complete()}))},void 0,function(){(g=!0,!d)&&c.complete()}))})};
bf=function(a,b){b=b===void 0?!1:b;return ye(function(c,d){var e=0;c.subscribe(new Ae(d,function(g){var k=a(g,e++);(k||b)&&d.next(g);!k&&d.complete()}))})};
ffa=function(a,b,c){var d=ee(a)||b||c?{next:a,error:b,complete:c}:a;return d?ye(function(e,g){e.subscribe(new Ae(g,function(k){var m;(m=d.next)==null||m.call(d,k);g.next(k)},function(k){var m;
(m=d.error)==null||m.call(d,k);g.error(k)},function(){var k;
(k=d.complete)==null||k.call(d);g.complete()}))}):ie};
gfa=function(){var a=_.Kd.apply(0,arguments),b=sea(a);return ye(function(c,d){for(var e=a.length,g=Array(e),k=a.map(function(){return!1}),m=!1,n={i$jscomp$272:0};n.i$jscomp$272<e;n={i$jscomp$272:n.i$jscomp$272},n.i$jscomp$272++)me(a[n.i$jscomp$272]).subscribe(new Ae(d,function(r){return function(t){g[r.i$jscomp$272]=t;
m||k[r.i$jscomp$272]||(k[r.i$jscomp$272]=!0,(m=k.every(ie))&&(k=null))}}(n),void 0,ge));
c.subscribe(new Ae(d,function(r){m&&(r=[r].concat(_.De(g)),d.next(b?b.apply(null,_.De(r)):r))}))})};
hfa=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
ifa=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
jfa=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
kfa=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]=kfa(a[c]);return b};
lfa=function(a){var b=arguments.length;if(b==1&&Array.isArray(arguments[0]))return lfa.apply(null,arguments[0]);if(b%2)throw Error("ra");for(var c={},d=0;d<b;d+=2)c[arguments[d]]=arguments[d+1];return c};
mfa=function(a){var b=arguments.length;if(b==1&&Array.isArray(arguments[0]))return mfa.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};
_.cf=function(a){return new Rda(a[0].toLowerCase())};
nfa=function(a){try{return new URL(a,window.document.baseURI)}catch(b){return new URL("about:invalid")}};
ofa=function(a,b){var c=b.createRange();c.selectNode(b.body);a=Qd(a);return c.createContextualFragment(Rd(a))};
pfa=function(a){a=a.nodeName;return typeof a==="string"?a:"FORM"};
qfa=function(a){a=a.nodeType;return a===1||typeof a!=="number"};
df=function(a,b,c){a.setAttribute(b,c)};
rfa=function(a){return a.parts.map(function(b){var c=b.descriptor;return""+b.url+(c?" "+c:"")}).join(" , ")};
_.ef=function(a){var b=_.Kd.apply(1,arguments);if(b.length===0)return _.xd(a[0]);for(var c=a[0],d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return _.xd(c)};
_.hf=function(a,b){a=_.zd(a).toString();var c=a.split(/[?#]/),d=/[?]/.test(a)?"?"+c[1]:"";return sfa(c[0],d,/[#]/.test(a)?"#"+(d?c[2]:c[1]):"",b)};
sfa=function(a,b,c,d){function e(k,m){k!=null&&(Array.isArray(k)?k.forEach(function(n){return e(n,m)}):(b+=g+encodeURIComponent(m)+"="+encodeURIComponent(k),g="&"))}
var g=b.length?"&":"?";d.constructor===Object&&(d=Object.entries(d));Array.isArray(d)?d.forEach(function(k){return e(k[1],k[0])}):d.forEach(e);
return _.xd(a+b+c)};
tfa=function(a){a=a.global;if(a.PendingGetBeacon)return a.PendingGetBeacon};
kf=function(a){return function(b){return b.pipe(ufa(a,We(new jf)))}};
lf=function(a){return function(b){return b.pipe(ufa(a,Ye(1)))}};
ufa=function(a,b){function c(d){return new ke(function(e){return d.subscribe(function(g){mf(a,function(){return void e.next(g)},3)},function(g){mf(a,function(){return void e.error(g)},3)},function(){mf(a,function(){return void e.complete()},3)})})}
return je(c,uea(),b,Be(),c)};
xfa=function(a){var b=vfa(a);return b===null?new nf(null):b.pipe(Ce(function(c){c=c.serialize();if(wfa)c=_.ja.btoa(c);else{for(var d=[],e=0,g=0;g<c.length;g++){var k=c.charCodeAt(g);k>255&&(d[e++]=k&255,k>>=8);d[e++]=k}c=_.Bc(d)}return c}),Re(1),lf(a.queue))};
yfa=function(a){var b=b===void 0?{}:b;if(typeof Event==="function")return new Event(a,b);if(typeof document!=="undefined"){var c=document.createEvent("CustomEvent");c.initCustomEvent(a,b.bubbles||!1,b.cancelable||!1,b.detail);return c}throw Error();};
zfa=function(a){return typeof a==="string"?document.getElementById(a):a};
Cfa=function(a){var b=!1;b=b===void 0?!1:b;if(a.tagName==="IMG"){if(a.complete&&(!a.naturalWidth||!a.naturalHeight))return!0;var c;if(b&&((c=a.style)==null?void 0:c.display)==="none")return!0}var d,e;return Bfa.test((d=a.getAttribute("width"))!=null?d:"")&&Bfa.test((e=a.getAttribute("height"))!=null?e:"")};
Dfa=function(a,b){if(a.tagName==="IMG")return a.naturalWidth&&a.naturalHeight?!0:!1;try{if(a.readyState)var c=a.readyState;else{var d,e;c=(d=a.contentWindow)==null?void 0:(e=d.document)==null?void 0:e.readyState}return c==="complete"}catch(g){return b===void 0?!1:b}};
Efa=function(a){a||(a=function(b,c,d){b.addEventListener(c,d)});
return a};
Ifa=function(a,b){var c=Ffa();c=c===void 0?new Gfa:c;if(a=zfa(a)){var d=Efa(d);for(var e=!1,g=function(J){e||(e=!0,b(J))},k,m=2,n=0;n<Hfa.length;++n)if(Hfa[n]===a.tagName){m=3;
k=[a];break}k||(k=a.querySelectorAll(Hfa.join(",")));var r=0,t=0,u=!0,x=a=!1;n={};for(var A=0;A<k.length;n={isImg:void 0},A++){var C=k[A];if(!Cfa(C))if(n.isImg=C.tagName==="IMG",Dfa(C,c.crossDomainLoadedDefault))a=!0,n.isImg&&(u=!0);else{r++;var F=function(J){return function(I){r--;!r&&u&&g(m);J.isImg&&(I=I&&I.type==="error",t--,I||(u=!0),!t&&x&&u&&g(m))}}(n);
d(C,"load",F);n.isImg&&(t++,d(C,"error",F))}}t===0&&(u=!0);k=null;k=_.ja.document.readyState==="complete";if(r===0&&!a&&k)m=5;else if(r||!a){d(_.ja,"load",function(){!c.pendingImagesBlockLoad||!t&&u?g(4):x=!0});
return}g(m)}};
Jfa=function(a,b,c){if(a)for(var d=0;a!=null&&d<500&&!c(a);++d)a=b(a)};
Kfa=function(a,b){Jfa(a,function(c){try{return c===c.parent?null:c.parent}catch(d){}return null},b)};
Lfa=function(a,b){if(a.tagName=="IFRAME")b(a);else{a=a.querySelectorAll("IFRAME");for(var c=0;c<a.length&&!b(a[c]);++c);}};
Mfa=function(a){return(a=a.ownerDocument)&&(a.parentWindow||a.defaultView)||null};
Nfa=function(a,b,c){try{var d=JSON.parse(c.data)}catch(k){}if(typeof d==="object"&&d&&d.type==="creativeLoad"){var e=Mfa(a);if(c.source&&e){var g;Kfa(c.source,function(k){try{if(k.parent===e)return g=k,!0}catch(m){}});
g&&Lfa(a,function(k){if(k.contentWindow===g)return b(d),!0})}}};
Ofa=function(a){return typeof a==="string"?document.getElementById(a):a};
Sfa=function(){var a={};return a[0]=_.ef(Pfa,"current"),a[1]=_.ef(Qfa),a[2]=_.ef(Rfa),a};
of=function(a,b){return a.left===b.left&&a.top===b.top&&a.width===b.width&&a.height===b.height};
Tfa=function(a,b){return{left:Math.max(a.left,b.left),top:Math.max(a.top,b.top),width:Math.max(0,Math.min(a.left+a.width,b.left+b.width)-Math.max(a.left,b.left)),height:Math.max(0,Math.min(a.top+a.height,b.top+b.height)-Math.max(a.top,b.top))}};
Ufa=function(a,b){return{left:Math.round(a.left+b.x),top:Math.round(a.top+b.y),width:a.width,height:a.height}};
qf=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
Vfa=function(a,b,c){if(a&&b!==null&&b!=b.top){if(!b.top)return new _.rf(-12245933,-12245933);b=b.top}try{return(c===void 0?0:c)?(new _.rf(b.innerWidth,b.innerHeight)).round():_.sf(b).round()}catch(d){return new _.rf(-12245933,-12245933)}};
Wfa=function(a,b,c){try{if(a){if(!b.top)return new qf(-12245933,-12245933,-12245933,-12245933);b=b.top}var d=Vfa(a,b,c),e=d.height,g=d.width;if(g===-12245933)return new qf(g,g,g,g);var k=tf(uf(b.document)),m=k.x,n=k.y;return new qf(n,m+g,n+e,m)}catch(r){return new qf(-12245933,-12245933,-12245933,-12245933)}};
Xfa=function(a){var b;return(b=a.google_tag_data)!=null?b:a.google_tag_data={}};
Yfa=function(a){var b,c;return typeof((b=a.navigator)==null?void 0:(c=b.userAgentData)==null?void 0:c.getHighEntropyValues)==="function"};
$fa=function(a){if(!Yfa(a))return null;var b=Xfa(a);if(b.uach_promise)return b.uach_promise;a=a.navigator.userAgentData.getHighEntropyValues(Zfa).then(function(c){b.uach!=null||(b.uach=c);return c});
return b.uach_promise=a};
lga=function(a){var b;return aga(bga(cga(dga(ega(fga(gga(hga(iga(new jga,a.architecture||""),a.bitness||""),a.mobile||!1),a.model||""),a.platform||""),a.platformVersion||""),a.uaFullVersion||""),((b=a.fullVersionList)==null?void 0:b.map(function(c){var d=new kga;d=_.vf(d,1,c.brand);return _.vf(d,2,c.version)}))||[]),a.wow64||!1)};
mga=function(a){var b,c;return(c=(b=$fa(a))==null?void 0:b.then(function(d){return lga(d)}))!=null?c:null};
nga=function(a,b){return new ke(function(c){var d=!1,e=Array(b.length);e.fill(void 0);var g=new Set,k=new Set,m=function(u,x){a.running?(e[x]=u,g.add(x),d||(d=!0,mf(a,function(){d=!1;c.next(_.Ra(e))},1))):c.error(new wf(x))},n=function(u,x){k.add(x);
g.add(x);mf(a,function(){c.error(u)},1)},r=function(u){k.add(u);
mf(a,function(){k.size===b.length&&c.complete()},1)},t=b.map(function(u,x){return u.subscribe(function(A){return void m(A,x)},function(A){return void n(A,x)},function(){return void r(x)})});
return function(){t.forEach(function(u){return void u.unsubscribe()})}})};
qga=function(a,b,c){function d(){if(b.debugChannel){var J=b.debugChannel,I=J.next;var R={creativeId:b.debugNames.getName(c),requiredSignals:e,signals:Object.assign({},g),hasPrematurelyCompleted:k,errorMessage:m,erroredSignalKey:n};R={specMajor:2,specMinor:0,specPatch:0,timestamp:Le(b.timeProvider.now(),new Me(0,b.timeProvider.timeline)),instanceId:b.debugNames.getName(b.symbol),creativeState:R};I.call(J,R)}}
for(var e=Object.keys(a),g={},k=!1,m=null,n=null,r={},t=new Set,u=[],x=[],A=_.h(e),C=A.next(),F={};!C.done;F={key$jscomp$372:void 0},C=A.next())F.key$jscomp$372=C.value,C=a[F.key$jscomp$372],C instanceof nf?(r[F.key$jscomp$372]=C.value,t.add(F.key$jscomp$372),b.debugChannel&&(g[String(F.key$jscomp$372)]=Uea(C.value))):(C=C.pipe(Se(function(J,I){return Sea(J)||Sea(I)?!1:J===I}),Ce(function(J){return function(I){b.debugChannel&&(g[String(J.key$jscomp$372)]=Uea(I),d());
var R={};return R[J.key$jscomp$372]=I,R}}(F)),Oe(function(J){return function(I){if(I instanceof wf)throw new oga(String(J.key$jscomp$372));
throw I;}}(F)),ffa(function(J){return function(){t.add(J.key$jscomp$372)}}(F),function(J){return function(I){n=String(J.key$jscomp$372);
m=String(I);d()}}(F),function(J){return function(){t.has(J.key$jscomp$372)||(k=!0,d())}}(F))),x.push(F.key$jscomp$372),u.push(C));
(a=Object.keys(g).length>0)&&d();A=nga(b.queue,u).pipe(Oe(function(J){if(J instanceof wf)throw new pga(String(x[J.inputObservableIndex]));throw J;}),Ce(function(J){return Object.freeze(Object.assign.apply(Object,[{},
r].concat(_.De(J))))}));
return(u=u.length>0)&&a?Je(we(Object.freeze(r)),A):u?A:we(Object.freeze(r))};
rga=function(a,b,c,d,e){return a.performanceMonitor.timeExecution.bind(a.performanceMonitor)(733,function(){var g={};try{return b.pipe(Oe(function(k){d(Object.assign({},g,{error:k}));return Ie}),Ge(function(k){try{var m=c(a,k)}catch(r){return d(Object.assign({},g,{error:r instanceof Error?r:String(r)})),Ie}var n={};
return qga(m,a,k.symbol).pipe(ffa(function(r){n=r}),Ye(1),Be()).pipe(e,Oe(function(r){d(Object.assign({},n,{error:r}));
return Ie}),Te(void 0),Ce(function(){return!0}))})).pipe(Ze(function(k){return k+1},0),Oe(function(k){d(Object.assign({},g,{error:k}));
return Ie}))}catch(k){return d(Object.assign({},g,{error:k})),Ie}})()};
xf=function(a){var b=new Map;if(typeof a!=="object"||a===null)return b;Object.values(a).forEach(function(c){c&&typeof c.extrapolateToNow==="function"&&(b.has(c.clock.timeline)||b.set(c.clock.timeline,c.clock.now()))});
return b};
sga=function(a,b){return typeof a==="string"?encodeURIComponent(a):typeof a==="number"?String(a):Array.isArray(a)?a.map(function(c){return sga(c,b)}).join(","):a instanceof Me?a.toString():a&&typeof a.extrapolateToNow==="function"?sga(a.extrapolateUsingTimestampMap(b).value,b):a===!0?"1":a===!1?"0":a===void 0||a===null?null:a instanceof tga?uga(a):[a.top,
a.left,a.top+a.height,a.left+a.width].join()};
vga=function(a,b){a=Object.entries(a).map(function(c){var d=_.h(c);c=d.next().value;d=d.next().value;d=sga(d,b);return d===null?"":c+"="+d}).filter(function(c){return c!==""});
return a.length?a.join("&"):""};
yga=function(a,b){var c=wga,d=xga;b=b===void 0?.01:b;return function(e){b>0&&Math.random()<=b&&(a.global.HTMLFencedFrameElement&&a.global.fence&&typeof a.global.fence.reportEvent==="function"&&a.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),e=Object.assign({},e,{errorMessage:e.error instanceof Error&&e.error.message?e.error.message:String(e.error),errorStack:e.error instanceof Error&&e.error.stack?String(e.error.stack):null,errorName:e.error instanceof
Error&&e.error.name?String(e.error.name):null,errorContext:String(a.performanceMonitor.timedFunctionContext),errorEscapedQueryId:e.escapedQueryId}),c(Object.assign({},e,{payloadMapper:function(){return function(g){try{return d(Object.assign({},g))}catch(k){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),xf(e)).forEach(function(g){a.beaconFactory.makeBeacon(g).sendNow()}))}};
zga=function(){var a=_.Kd.apply(0,arguments);return function(b){var c=b.pipe(Ye(1),Be());b=a.map(function(d){return c.pipe(d,Te(!0))});
return Ee(b).pipe(Re(1),Pe())}};
Aga=function(){var a=_.Kd.apply(0,arguments);return function(b){var c=b.pipe(Ye(1),Be());b=a.map(function(d){return c.pipe(d,Te(!0))});
return Je.apply(null,_.De(b)).pipe(Re(1),Pe())}};
Bga=function(a,b){return function(c){var d=c.pipe(Ye(1),Be());c=d.pipe(a,Te(!0));d=d.pipe(je(b,Ye(),Be()),Te(!0));c=Ee([c,d]);return Qea(c,d).pipe(Re(1),Pe())}};
Cga=function(a,b,c){c(!0)};
Dga=function(a,b){return je(af(function(c){var d=a(c),e=b(c),g={};return d&&e&&g?new ke(function(k){e(d,g,function(m){k.next(Object.assign({},c,{canEmit:m}));k.complete()});
return function(){}}):yf}),Ke(function(c){return c.canEmit}))};
Ega=function(a){var b={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(c){return c.pipe(af(function(d){return new ke(function(e){function g(){m.disconnect();n.unsubscribe()}
var k=a.MutationObserver;if(k&&d.ref!==void 0){var m=new k(function(r){e.next(r)});
m.observe(d.ref,b);var n=d.JSC$7189_released.subscribe(g);return g}})}))}};
Fga=function(a){if(a.measurementDeferralState===3)return null;if(a.timeOnScreenReason!==void 0){var b=a.creativeFound===!1?"n":null;if(b!==null)return b}return a.geometricMeasurementErrors instanceof zf?"msf":a.contextValidationErrors instanceof Bf?"c":a.contextVisibilityKnown===!1?"pv":a.geometricMeasurementErrors||a.contextValidationErrors?"x":null};
Hga=function(a,b){return a.replace(Gga,function(c,d){try{var e=_.Cf.get(b,d);if(e==null||e.toString()==null)return c;e=e.toString();if(e==""||!_.pa(e==null?"":String(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(g){}return c})};
Iga=function(a,b){var c=Object.assign({},a),d=a.userAgentClientHints;c=(delete c.userAgentClientHints,c);c=a.payloadMapper(c);var e=vga(c,b);return _.Df(a.urlPrefixes,function(g){var k="";typeof d==="string"&&(k="&"+vga({uach:d},b));var m={};return Hga(g,(m.VIEWABILITY=e,m))+k})};
wga=function(a,b){var c=a.payloadMapper(a),d=vga(c,b);return d?_.Df(a.urlPrefixes,function(e){e=e.indexOf("?")>=0?e:e+"?";e="?&".indexOf(e.slice(-1))>=0?e:e+"&";return e+d}):a.urlPrefixes};
Jga=function(){return je(Ke(function(a){return a!==void 0}),Ce(function(a){return a}))};
Kga=function(a){return je(Ce(function(){return!0}),$e(!1),lf(a))};
Lga=function(a){return a.length<=0?Ie:Ee(a.map(function(b){var c=0;return b.pipe(Ce(function(d){return{index:c++,value:d}}))})).pipe(Ke(function(b){return b.every(function(c){return c.index===b[0].index})}),Ce(function(b){return b.map(function(c){return c.value})}))};
Mga=function(a,b){a.currentState&&(a.previousState=a.currentState);a.currentState=b;a.previousState&&a.previousState.value?(b=Math.max(0,Le(b.timestamp,a.previousState.timestamp)),a.totalTime+=b,a.consecutiveTime+=b):a.consecutiveTime=0;return a};
Nga=function(){return je(Ze(Mga,{totalTime:0,consecutiveTime:0}),Ce(function(a){return a.totalTime}))};
Oga=function(){return je(Ze(Mga,{totalTime:0,consecutiveTime:0}),Ce(function(a){return a.consecutiveTime}))};
Pga=function(a,b){return function(c){return Lga(b.map(function(d){return c.pipe(a(d))}))}};
Qga=function(){var a;return je(ffa(function(b){return void(a=b.timestamp)}),Oga(),Ce(function(b){return{timestamp:a,
value:Math.round(b)}}))};
Rga=function(a,b){return of(a.topWindowViewportExternalGeometry,b.topWindowViewportExternalGeometry)&&of(a.elementGeometry,b.elementGeometry)&&of(a.exposedViewportLocalGeometry,b.exposedViewportLocalGeometry)&&of(a.intersectionGeometry,b.intersectionGeometry)&&a.elementGeometrySourceName===b.elementGeometrySourceName&&a.measurementRequests===b.measurementRequests&&a.viewportGeometrySourceName===b.viewportGeometrySourceName&&a.viewportLocalAppOffset.x===b.viewportLocalAppOffset.x&&a.viewportLocalAppOffset.y===
b.viewportLocalAppOffset.y};
Wga=function(a,b){return function(c){return function(d){var e=d.pipe(We(new jf),Be());d=c.element.pipe(Se());e=e.pipe(Ce(function(g){return g.value}));
return Ee([d,e,b]).pipe(Ce(function(g){var k=_.h(g);g=k.next().value;var m=k.next().value;k=k.next().value;if(g.ref===void 0)var n={top:0,left:0,width:0,height:0};else{n=g.ref.getBoundingClientRect();var r=g.ref,t=a.global,u=new _.Ef(0,0),x=Ff(_.Hf(r));if(Sga(x,"parent")){do{if(x==t)var A=_.If(r);else A=Tga(r),A=new _.Ef(A.left,A.top);u.x+=A.x;u.y+=A.y}while(x&&x!=t&&x!=x.parent&&(r=x.frameElement)&&(x=x.parent))}n={top:u.y,left:u.x,width:n.width,height:n.height}}n=Ufa(n,m.viewportLocalAppOffset);
t=Tfa(n,m.exposedViewportLocalGeometry);u=a.timeProvider.now();x=Object;r=x.assign;if(k!==2||a.inCrossDomainIframe||t.width<=0||t.height<=0)var C=!1;else try{var F=a.document.elementFromPoint(t.left+t.width/2,t.top+t.height/2);C=F?!Uga(F,g):!1}catch(J){C=!1}return{timestamp:u,value:r.call(x,{},m,{elementGeometrySourceName:"geo",intersectionGeometry:C?Vga.intersectionGeometry:t,elementGeometry:n})}}),kf(a.queue))}}};
Uga=function(a,b,c){c=c===void 0?0:c;return a.ref===void 0||b.ref===void 0?!1:a.ref===b.ref||_.Jf(b.ref,function(d){return d===a.ref})?!0:b.ref.ownerDocument&&b.ref.ownerDocument.defaultView&&b.ref.ownerDocument.defaultView===b.ref.ownerDocument.defaultView.top?!1:c<10&&b.ref.ownerDocument&&b.ref.ownerDocument.defaultView&&b.ref.ownerDocument.defaultView.frameElement?Uga(a,new Kf(b.ref.ownerDocument.defaultView.frameElement),c+1):!0};
Zga=function(a){return function(b){return b.pipe(a.ResizeObserver?Xga(a):Yga(a),Ye(1),Be())}};
Xga=function(a){return function(b){return b.pipe(af(function(c){var d=a.ResizeObserver;if(!d||c.ref===void 0)return we(Vga.elementGeometry);var e=(new ke(function(g){function k(){c.ref!==void 0&&m.unobserve(c.ref);m.disconnect();n.unsubscribe()}
if(c.ref===void 0)return g.complete(),function(){};
var m=new d(function(r){r.forEach(function(t){g.next(t)})});
m.observe(c.ref);var n=c.JSC$7189_released.subscribe(k);return k})).pipe(Ne(a.performanceMonitor,736),Ce(function(g){return g.contentRect}));
return Je(we(c.ref.getBoundingClientRect()),e)}),Se(of))}};
Yga=function(a){return function(b){var c=b.pipe(Ega(a)),d=a.onResize;c=Je(b.pipe(Ce(function(){return yfa("resize")})),c,d);
return Ee(b,c).pipe(Ne(a.performanceMonitor,737),Ce(function(e){e=_.h(e).next().value;return e.ref===void 0?void 0:e.ref.getBoundingClientRect()}),Jga(),Se(of))}};
bha=function(a,b){var c=$ga(a,b).pipe(Ye(1),Be());return function(d){return function(e){e=e.pipe(af(function(g){return g.element}),Se());
return Ee([c,e]).pipe(af(function(g){var k=_.h(g);g=k.next().value;k=k.next().value;return aha(a,g.intersectionObserver,Zga(a),g.observations,d,g.flushRecords,k)}),kf(a.queue))}}};
cha=function(a){return Ce(function(b){return b.value.viewportGeometrySourceName!=="nio"?b:Object.assign({},b,{value:Object.assign({},b.value,{exposedViewportLocalGeometry:Lf(a,!0),topWindowViewportExternalGeometry:Lf(a,!0)})})})};
dha=function(a,b){return we(b).pipe(a,Ce(function(){return b}))};
$ga=function(a,b){return a.timeProvider.timeline!==eha?xe(new zf(2)):a.MutationObserver?typeof IntersectionObserver==="undefined"?xe(new zf(0)):(new ke(function(c){var d=new jf,e=new Mf(d.next.bind(d),{threshold:[].concat(_.De(b))});c.next({observations:d.pipe(Ne(a.performanceMonitor,735)),intersectionObserver:e,flushRecords:function(g){g=e.takeRecords(g);g.length>0&&d.next(g)}})})).pipe(Re(1),Ye(1),Be()):xe(new zf(1))};
fha=function(a){return jea(a.sort(function(b,c){return b.time-c.time}),tea)};
aha=function(a,b,c,d,e,g,k){return new ke(function(m){function n(){C||(C=!0,k.ref!==void 0&&b.unobserve(e,k.ref),t.unsubscribe(),A.unsubscribe(),x.unsubscribe(),F.unsubscribe())}
if(k.ref!==void 0){gha(b,e);b.observe(e,k.ref);var r=new Nf({timestamp:a.timeProvider.now(),value:Object.assign({},Vga,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),t=d.pipe(Ge(function(J){return fha(J)}),Ke(function(J){return J.target===k.ref}),Ce(function(J){return{timestamp:new Me(J.time,eha),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:J.rootBounds||Of,topWindowViewportExternalGeometry:J.rootBounds||Lf(a,!0),measurementRequests:u,elementGeometrySourceName:"nio",intersectionGeometry:J.intersectionRect,elementGeometry:J.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:J.isIntersecting,isV2Visible:J.isVisible}}}),We(r),Be()).subscribe(m),u=new jf,x=u.subscribe(function(){g(e);
m.next({timestamp:a.timeProvider.now(),value:r.value.value});k.ref!==void 0&&(b.unobserve(e,k.ref),b.observe(e,k.ref))}),A=dha(c,k).subscribe(function(){u.next()}),C=!1,F=k.JSC$7189_released.subscribe(function(){return n()});
return n}})};
hha=function(a,b){var c=a.getOnBackgrounded().pipe(Ce(function(){return"b"}));
return Qea(b,c).pipe(Re(1),lf(a.queue))};
Pf=function(a){return function(b){var c;return b.pipe(ffa(function(d){return void(c=d.timestamp)}),Ce(function(d){return d.value}),a,Ce(function(d){return{timestamp:c,
value:d}}))}};
Qf=function(a,b,c){c=c===void 0?function(d,e){return d===e}:c;
return a.timestamp.equals(b.timestamp)&&c(a.value,b.value)};
Sf=function(a,b){return b.pipe(Ce(function(c){return new Rf(a.timeProvider,{timestamp:a.timeProvider.now(),value:c})}))};
iha=function(a){return function(b){return b.pipe(gfa(a),Ce(function(c){var d=_.h(c);c=d.next().value;d=d.next().value;var e=c.value;return{timestamp:c.timestamp,value:e>=1?!0:e<=0?!1:e>=d}}))}};
kha=function(){return je(Ke(function(a,b){return b>0}),jha,$e(-1),Se())};
lha=function(a,b,c){return a?Ee([b,c]).pipe(Ke(function(d){var e=_.h(d);d=e.next().value;e=e.next().value;return d.timestamp.equals(e.timestamp)}),Ce(function(d){var e=_.h(d);
d=e.next().value;e=e.next().value;return d.value>e.value?d:e})):b};
oha=function(a){return function(b){var c=b.pipe(mha),d=b.pipe(nha);return a instanceof ke?a.pipe(af(function(e){return lha(e,c,d)})):lha(a.value,c,d)}};
yha=function(a,b,c,d){var e=d.geometryIsOccluded,g=d.exposureThreshold,k=d.wasLargeAdAtRender,m=d.allowLargeAdThreshold,n=d.largeAdExposureThreshold,r=d.mayUseViewportShareExposure,t=d.hasMeasurementStarted;d=d.useIntersectionObserverV2;b=pha(a,c,b);c=qha(a,c);d=rha(b,d);var u=sha(a,e,r,b),x=u.pipe(Ce(function(fa){return fa.value}),Se(),lf(a),Ze(function(fa,aa){return Math.max(fa,aa)},0)),A=u.pipe(Ce(function(fa){return fa.value}),kha(),lf(a)),C=b.pipe(tha,Ce(function(fa){return fa.value}),Re(2),
Se(),lf(a));
k=uha(a,b,k,m);var F=k.pipe($e(!1),Se(),Ce(function(fa){return fa?n:g}));
m=u.pipe(iha(F),Se(),lf(a));var J=Ee([m,b]).pipe(Ke(function(fa){var aa=_.h(fa);fa=aa.next().value;aa=aa.next().value;return fa.timestamp.equals(aa.timestamp)}),Ce(function(fa){var aa=_.h(fa);
fa=aa.next().value;aa=aa.next().value;return{visible:fa.value,geometry:aa.value.elementGeometry}}),Ze(function(fa,aa){return!aa.visible&&fa.visible?fa:aa},{visible:!1,
geometry:Of}),Ce(function(fa){return fa.geometry}),$e(Of),lf(a),Se(of));
r=r instanceof ke?r.pipe(Se(),Qe()):yf;F=Ee([r,F]).pipe(Qe());var I=b.pipe(Ke(function(fa){return fa.value.viewportGeometrySourceName!=="ns"&&fa.value.elementGeometrySourceName!=="ns"}),Ze(function(fa){return fa+1},0),$e(0),lf(a)),R=c.pipe(Qe(!0),$e(!1),lf(a));
R=Ee([t,R]).pipe(Ce(function(fa){var aa=_.h(fa);fa=aa.next().value;aa=aa.next().value;return fa&&!aa}),lf(a));
var da=b.pipe(vha,Se()),V=da.pipe(Ce(function(fa){return fa.value}),Ze(function(fa,aa){return Math.max(fa,aa)},0),Se(),lf(a));
a=da.pipe(Ce(function(fa){return fa.value}),kha(),lf(a));
return{shouldResetExposureSignals:r,shouldResetViewabilitySignals:F,geometrySignals:{readyGeometryWithDefault:b,measurementStrategy:b.pipe(wha),creativePosition:J.pipe(Se(of)),visible:m.pipe(Se(Qf)),timestampedExposure:u.pipe(Se(Qf)),maximumExposure:x,minimumExposure:A,browserSize:b.pipe(xha,Se(_.bb)),timestampedScreenShare:da,maxScreenShare:V,minScreenShare:a,geometricMeasurementErrors:c,measurementRequests:b.pipe(Ce(function(fa){return fa.value.measurementRequests})),
isLargeAd:k,geometryIsOccluded:e,hasMeasurementStarted:t,geometryMeasurable:R,validMeasurementCount:I,loadTimeExposure:C,v2VisibilityBitVector:d}}};
qha=function(a,b){return b.pipe(Ke(function(){return!1}),Ce(function(c){return c}),Oe(function(c){return Tf(new nf(c),a)}))};
pha=function(a,b,c){return b.pipe(Oea(yf),lf(a)).pipe(Se(function(d,e){return Qf(d,e,Rga)}),$e({timestamp:c.now(),
value:Vga}),lf(a))};
sha=function(a,b,c,d){c=d.pipe(oha(c),Pf(Ce(function(e){return Math.round(e*100)/100})),lf(a));
return b instanceof nf?c:Ee([c,b]).pipe(Ce(function(e){var g=_.h(e);e=g.next().value;g=g.next().value;return{timestamp:g.timestamp.maximum(e.timestamp),value:g.value?0:e.value}}),Se(Qf),lf(a))};
uha=function(a,b,c,d){b=[b.pipe(Ce(function(e){return e.value.elementGeometry.width*e.value.elementGeometry.height>=242500}))];
c instanceof ke&&b.push(c.pipe(Ce(function(e){return!!e})));
c=Ee(b);return d?c.pipe(Ce(function(e){return e.some(function(g){return g})}),$e(!1),Se(),lf(a)):Tf(new nf(!1),a)};
rha=function(a,b){a=Ee([a,b]).pipe(Ce(function(e){var g=_.h(e);e=g.next().value;if(g.next().value&&e.value.isIntersecting)return e.value.isV2Visible}),Se());
var c=a.pipe(Ce(function(e){return e===void 0?!0:e}),Ze(function(e,g){return e||!g},!1)),d=a.pipe(Ze(function(e,g){return g===void 0?e:g?!1:e!=null?e:!0},void 0),Ce(function(e){return!!e}));
return Ee([b,Rea(a,c,d)]).pipe(Ce(function(e){var g=_.h(e);e=g.next().value;var k=_.h(g.next().value);g=k.next().value;var m=k.next().value;k=k.next().value;var n=0;if(!e)return 0;if(g===void 0)return 16;g&&(n|=1);g||(n|=2);m&&(n|=4);k&&(n|=8);return n}))};
Eha=function(a,b,c,d,e){var g=zha.timeThresholdMs;var k=k===void 0?new Aha(b,d):k;return(new ke(function(m){var n=c.pipe($e(void 0),af(function(){return Bha(e)})).pipe(Ce(function(r){var t=r.value;
r=r.timestamp;var u=t.visible;t=t.consecutiveViewTime;var x=t>=g;x||!u?Cha(k):(r=Math.max(0,Le(b.now(),r)),Dha(k,Math.max(0,g-t-r)));return x}),Ze(function(r,t){return t||r},!1),Se()).subscribe(m);
return function(){k.dispose();n.unsubscribe()}})).pipe(bf(function(m){return!m},!0),lf(a))};
Bha=function(a){return Lga([a,a.pipe(Qga())]).pipe(Ce(function(b){var c=_.h(b);b=c.next().value;c=c.next().value;return{timestamp:b.timestamp,value:{visible:b.value,consecutiveViewTime:c.value}}}),Se(function(b,c){return Qf(b,c,function(d,e){return d.consecutiveViewTime===e.consecutiveViewTime&&d.visible===e.visible})}))};
Fha=function(){return je(Oga(),Ze(function(a,b){return Math.max(a,b)},0),Ce(function(a){return Math.round(a)}))};
Gha=function(a){return je(iha(we(a)),Fha())};
Hha=function(a,b){return b instanceof ke?b.pipe(af(function(c){return(c=c?15:null)?xe(new zf(c)):a})):(b=b.value?15:null)?xe(new zf(b)):a};
Iha=function(a){var b=new zf(13);if(a.length<1)return{chain:Ie,capturedErrors:Ie};var c=new jf,d=a[0];return{chain:a.slice(1).reduce(function(e,g){return e.pipe(Oe(function(k){c.next(k);return g}))},d).pipe(Oe(function(e){c.next(e);
return xe(b)}),We(new jf),Be()),
capturedErrors:c}};
Jha=function(a,b){var c=a.pipe(We(new jf),Be());return af(function(d){return c.pipe(b(d))})};
Lha=function(a,b){if(a.inCrossDomainIframe)return xe(new zf(6));var c=new jf;return Je(we({}),b,c).pipe(Ce(function(){return{timestamp:a.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:Kha(a),topWindowViewportExternalGeometry:Lf(a,!0),measurementRequests:c,viewportLocalAppOffset:{x:0,y:0}}}}),kf(a.queue))};
Kha=function(a){var b=Lf(a,!1);if(!a.inIframe||!Mha(a.global.parent)||a.global.parent===a.global)return b;var c=new Uf(a.global.parent,a.debugChannel);c.beaconFactory=a.beaconFactory;c=Kha(c);a=a.global.frameElement.getBoundingClientRect();return Tfa(Ufa(Tfa(c,a),{x:b.left-a.left,y:b.top-a.top}),b)};
Nha=function(a){if(a.prerendering)return 3;var b;return(b={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""])!=null?b:0};
Oha=function(a){return a.document.JSC$7200_onVisibilityChange.pipe(Ce(function(b){return b==="visible"}),Se(),lf(a.queue))};
Pha=function(a,b,c){var d;return b.pipe(Se(),af(function(e){return c.pipe(Ce(function(){if(!d){d=!0;try{e.next()}finally{d=!1}}return!0}))}),$e(!1),lf(a.queue))};
Qha=function(a){return je(Pf(Ce(function(b){return b>=1?!0:b<=0?!1:b>=a})),Nga(),Ce(function(b){return Math.round(b)}))};
Sha=function(a,b,c,d,e){var g=Rha;if(g.length>1)for(var k=0;k<g.length-1;k++)if(g[k]<g[k+1])throw Error();k=e.pipe($e(void 0),af(function(){return c.pipe(Qga())}),Se(),lf(a));
e=e.pipe($e(void 0),af(function(){return c.pipe(Fha())}),Se(),lf(a));
return{totalMeasurementTime:d.pipe($e(void 0),af(function(){return b.pipe(Ce(function(m){return{timestamp:m.timestamp,value:!0}}),Nga())}),Se(),lf(a)),
totalUnviewedTime:d.pipe($e(void 0),af(function(){return b.pipe(Ce(function(m){return{timestamp:m.timestamp,value:m.value===0}}),Nga())}),Se(),lf(a)),
maxTimeOnScreen:d.pipe($e(void 0),af(function(){return b.pipe(Pga(Gha,g))}),Se(_.bb),lf(a)),
timeOnScreen:d.pipe($e(void 0),af(function(){return b.pipe(Pga(Qha,g),Ce(function(m){return m.map(function(n,r){return r>0?n-m[r-1]:n})}))}),Se(_.bb),lf(a)),
maxConsecutiveViewTime:e,consecutiveViewTime:k.pipe(Se(Qf),lf(a))}};
Uha=function(a){var b=!0;b=b===void 0?!1:b;return je(af(function(c){return Tha(a.document,c,b)}),lf(a.queue))};
Vha=function(a,b,c){var d=c.pipe(Ce(function(e){return{value:e,timestamp:a.timeProvider.now()}}),Se(Qf));
return b instanceof ke?b.pipe(Se(),af(function(e){return e?Tf(new nf({value:!1,timestamp:a.timeProvider.now()}),a.queue):d})):b.value===!1?d:new nf(!1)};
Wha=function(a,b,c,d,e,g,k){var m=zha;b=b instanceof ke?b.pipe($e(!1),Se()):b;var n=!a.isMobile();c=Vha(a,c,d);a=k.measurableCreative.pipe(Kga(a.queue));return Object.assign({},m,{geometryIsOccluded:c,wasLargeAdAtRender:e,allowLargeAdThreshold:n,mayUseViewportShareExposure:b,hasMeasurementStarted:a,useIntersectionObserverV2:g})};
Yha=function(a,b,c,d,e,g){var k=1;g=g===void 0?!0:g;k=k===void 0?.01:k;var m=m===void 0?a.timeProvider.intervalObservable(100).pipe(lf(a.queue)):m;return a.performanceMonitor.timeExecution(916,function(){return Xha(a,b.pipe(kf(a.queue)),c.pipe(kf(a.queue)),d,e,g,k,m)})()};
Xha=function(a,b,c,d,e,g,k,m){var n=Oha(a).pipe(Ce(function(t){return!t})),r=new Zha(a,[new $ha(a,Rha),
new aia(a,m)]);m=zga(bia,cia);return rga(a,b,function(t,u){var x=Tf(new nf(u.element),t.queue).pipe(Uha(t),lf(t.queue)),A={loadedElement:x,shouldMeasure:x.pipe(Qe(!0)),measurableCreative:x.pipe(Ce(function(fa){var aa=aa===void 0?Symbol():aa;return Object.freeze({symbol:aa,element:Tf(new nf(fa),t.queue)})})),
creativeSearchResult:Tf(new nf("mue"),t.queue)},C=new nf(!1),F=new nf(!1),J=new nf(17),I=new nf(!1),R=new nf(!1),da=Tf(Vf,t.queue);C=r.buildGeometrySource(A,{inApp:C,useV2:!1,requestSource:Tf(J,t.queue)}).geometrySource;A=Wha(t,I,F,n,R,da,A);F=yha(t.queue,t.timeProvider,C,A);A=F.geometrySignals;I=F.shouldResetViewabilitySignals;F=Sha(t.queue,A.timestampedExposure,A.visible,F.shouldResetExposureSignals,I);I=Eha(t.queue,t.timeProvider,I,A.measurementRequests,A.visible);R=c.pipe(Ke(function(fa){return fa===
u.element.ref}),Ce(function(){return"ur"}));
da=Vea(t.timeProvider,e).pipe(Qe("t"));R=hha(t,Je(R,da));da=Pha(t,A.measurementRequests,R.pipe(Ke(function(fa){return fa!==null})));
C=R.pipe(Ke(function(fa){return fa!==null}),Ce(function(){return Nha(t.global.document)===1}));
var V=dia(t.document);return Object.assign({},{beaconFactory:new nf(t.beaconFactory),context:new nf(t),inferredPingId:new nf("lidar2"),timeOnScreenPingId:new nf("lidartos"),binaryContext:new nf(17),binaryVersion:new nf(d),requestSource:J,contextValidationErrors:new nf(t.validate()?null:new Bf),contextVisibilityKnown:new nf(V),payloadMapper:new nf(xga),endOfSessionReason:R,timeOnScreenReason:R,requestMeasurementOnEndOfSession:da,hasImpressionFired:eia,crossDomainIframeState:new nf(t.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:Vf,inFetchLaterBeaconExperiment:Vf,isTurtlex:Vf,turtlexReportEventData:new nf(""),reportFencedFrameEvent:yf,isViewableAttributionEnabled:Vf,inViewableAttributionExperiment:new nf(0),fetchBeaconFactory:yf,supportsPendingBeacon:Vf,supportsFetchLater:Vf,emit:new nf(Cga),beginToRenderEvent:new nf(Symbol()),activeViewUnmeasurableEvent:new nf(Symbol()),activeViewViewableEvent:new nf(Symbol()),creativeFound:eia,immediateUrlPrefixes:new nf(u.immediateUrls),timeOnScreenUrlPrefixes:new nf(u.timeOnScreenUrls),
cpmavUrls:yf,viewableRelayUrls:yf,measurementDeferralState:new nf(2),urlSerializer:new nf(Iga),viewUrlSerializer:new nf(fia),isCreativeLoaded:x.pipe(Kga(t.queue)),pageVisible:n.pipe(Ce(function(fa){return!fa})),
eosPageVisible:C,timestampedExposureHistory:A.timestampedExposure.pipe(Ze(function(fa,aa){fa.push(aa);return fa},[]))},A,{viewable:Sf(t,I),
maxTimeOnScreen:Sf(t,F.maxTimeOnScreen),timeOnScreen:Sf(t,F.timeOnScreen),maxConsecutiveViewTime:Sf(t,F.maxConsecutiveViewTime),consecutiveViewTime:F.consecutiveViewTime.pipe(Ce(function(fa){return new Rf(t.timeProvider,fa)})),
totalMeasurementTime:Sf(t,F.totalMeasurementTime),totalUnviewedTime:Sf(t,F.totalUnviewedTime),userAgentClientHints:xfa(t),clientOrderPingCounter:new nf(new tga)})},yga(a,k),Aga(g?Bga(m,gia):Bga(m,hia),iia))};
jia=function(a,b){return(a=(new RegExp("[^#]*[?&]"+b+"=([^&#]*)")).exec(a))?a[1]:null};
kia=function(a){var b=_.Kd.apply(1,arguments).filter(Boolean).join("&");if(!b)return a;var c=a.match(/[?&]adurl=/);return c?a.slice(0,c.index+1)+b+"&"+a.slice(c.index+1):a+(a.indexOf("?")<0?"?":"&")+b};
Wf=function(a,b){return b?"&"+a+"="+encodeURIComponent(b):""};
lia=function(){try{var a,b;return!!((a=window)==null?0:(b=a.top)==null?0:b.location.href)&&!1}catch(c){return!0}};
_.Xf=function(a){a&&typeof a.dispose=="function"&&a.dispose()};
_.mia=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];_.Sa(d)?_.mia.apply(null,d):_.Xf(d)}};
oia=function(){var a=nia();a=a===void 0?"bevasrsg":a;return new Promise(function(b){var c=window===window.top?window:lia()?window:window.top,d=c[a],e;((e=d)==null?0:e.bevasrs)?b(new Yf(d.bevasrs)):(d||(d={},d=(d.nqfbel=[],d),c[a]=d),d.nqfbel.push(function(g){b(new Yf(g))}))})};
pia=function(a){var b={c:a.ew,e:a.iEa,mc:a.tfb,me:a.ufb};a.wN&&(b.co={c:a.wN.l2a,a:a.wN.iJb,s:a.wN.kcc});return b};
qia=function(a){var b,c,d={ew:a.c,iEa:a.e,tfb:(b=a.mc)!=null?b:!1,ufb:(c=a.me)!=null?c:!1};a.co&&(d.wN={l2a:a.co.c,iJb:a.co.a,kcc:a.co.s});return d};
ria=function(a){return function(){var b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,a(),2);b=c.yieldResult;return c.return({f:function(){return b.j7a()},
c:function(d){return b.qNb(d)},
m:function(d){return b.lK(qia(d))},
mws:function(d){return b.v8(qia(d))}})})}};
sia=function(a,b){var c=nia();c=c===void 0?"bevasrsg":c;b={s:function(g){var k;return a.snapshot(Object.assign({},g.c&&{ew:g.c},g.s&&{wPa:g.s},{oFe:(k=g.p)!=null?k:!0}))},
e:function(g){var k;return void((k=a.tpa)==null?void 0:k.call(a,g))},
c:function(g,k){return a.oBa(g,k)},
p:a.gba,l:function(){return a.isa()},
wpc:b?ria(b):void 0};var d=window===window.top?window:lia()?window:window.top,e=d[c];if(e){e.bevasrs=b;if(e.nqfbel!==void 0)for(c=_.h(e.nqfbel),d=c.next();!d.done;d=c.next())d=d.value,d(b);e.nqfbel=void 0}else e={},e=(e.bevasrs=b,e.nqfbel=void 0,e),d[c]=e};
uia=function(a){var b=b===void 0?49:b;var c=[];_.Zf(a,tia,6,_.$f()).forEach(function(d){_.bg(d,2)<=b&&c.push(_.bg(d,1))});
return c};
via=function(a){var b=b===void 0?49:b;var c=[];_.Zf(a,tia,6,_.$f()).forEach(function(d){_.bg(d,2)>b&&c.push(_.bg(d,1))});
return c};
wia=function(a){a.then(function(){},function(){})};
_.dg=function(a){return{fieldType:1,fieldName:a}};
eg=function(a){return{fieldType:2,fieldName:a}};
_.fg=function(a){return{fieldType:3,fieldName:a}};
xia=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;t=r=0}
function b(u){for(var x=k,A=0;A<64;A+=4)x[A/4]=u[A]<<24|u[A+1]<<16|u[A+2]<<8|u[A+3];for(A=16;A<80;A++)u=x[A-3]^x[A-8]^x[A-14]^x[A-16],x[A]=(u<<1|u>>>31)&4294967295;u=e[0];var C=e[1],F=e[2],J=e[3],I=e[4];for(A=0;A<80;A++){if(A<40)if(A<20){var R=J^C&(F^J);var da=1518500249}else R=C^F^J,da=1859775393;else A<60?(R=C&F|J&(C|F),da=2400959708):(R=C^F^J,da=3395469782);R=((u<<5|u>>>27)&4294967295)+R+I+da+x[A]&4294967295;I=J;J=F;F=(C<<30|C>>>2)&4294967295;C=u;u=R}e[0]=e[0]+u&4294967295;e[1]=e[1]+C&4294967295;
e[2]=e[2]+F&4294967295;e[3]=e[3]+J&4294967295;e[4]=e[4]+I&4294967295}
function c(u,x){if(typeof u==="string"){u=unescape(encodeURIComponent(u));for(var A=[],C=0,F=u.length;C<F;++C)A.push(u.charCodeAt(C));u=A}x||(x=u.length);A=0;if(r==0)for(;A+64<x;)b(u.slice(A,A+64)),A+=64,t+=64;for(;A<x;)if(g[r++]=u[A++],t++,r==64)for(r=0,b(g);A+64<x;)b(u.slice(A,A+64)),A+=64,t+=64}
function d(){var u=[],x=t*8;r<56?c(m,56-r):c(m,64-(r-56));for(var A=63;A>=56;A--)g[A]=x&255,x>>>=8;b(g);for(A=x=0;A<5;A++)for(var C=24;C>=0;C-=8)u[x++]=e[A]>>C&255;return u}
for(var e=[],g=[],k=[],m=[128],n=1;n<64;++n)m[n]=0;var r,t;a();return{reset:a,update:c,digest:d,digestString:function(){for(var u=d(),x="",A=0;A<u.length;A++)x+="0123456789ABCDEF".charAt(Math.floor(u[A]/16))+"0123456789ABCDEF".charAt(u[A]%16);return x}}};
Dia=function(a,b){b=b===void 0?yia:b;if(!zia){var c;a=(c=a.navigator)==null?void 0:c.userAgentData;if(!a||typeof a.getHighEntropyValues!=="function"||a.brands&&typeof a.brands.map!=="function")return Promise.reject(Error("Ba"));c=(a.brands||[]).map(function(e){var g=new Aia;g=_.vf(g,1,e.brand);return _.vf(g,2,e.version)});
Bia(_.gg(Cia,2,a.mobile),c);zia=a.getHighEntropyValues(b)}var d=new Set(b);return zia.then(function(e){var g=Cia.clone();d.has("platform")&&_.vf(g,3,e.platform);d.has("platformVersion")&&_.vf(g,4,e.platformVersion);d.has("architecture")&&_.vf(g,5,e.architecture);d.has("model")&&_.vf(g,6,e.model);d.has("uaFullVersion")&&_.vf(g,7,e.uaFullVersion);return g.serialize()}).catch(function(){return Cia.serialize()})};
hg=function(a,b,c,d){this.initialValue_=a;this.maxValue_=b;this.currBaseValue_=this.currValue_=a;this.randomFactor_=c||0;this.backoffFactor_=d||2};
ig=function(a){this.src=a;this.listeners={};this.typeCount_=0};
Hia=function(){for(var a;a=Eia.remove();){try{a.fn.call(a.scope)}catch(b){ka(b)}Fia.put(a)}Gia=!1};
_.Iia=function(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
Jia=function(a){switch(a){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";
default:return""}};
_.Kia=function(){};
Tia=function(a){return{ded:new Lia(a),errorCount:new Mia(a),eventCount:new Nia(a),nJc:new Oia(a),aIe:new Pia(a),cld:new Qia(a),dBc:new Ria(a),bld:new Sia(a)}};
bja=function(a,b,c,d){a=Uia(Via(Wia(new _.jg(1828,"0"),a),new Xia));b.length&&Yia(a,Zia(new $ia,b));d!==void 0&&(a.destinationUrl=d);var e=new aja(1828,"","",!1,"",a.build());_.kg(e,a);var g=new lg({flush:function(k){try{e.flush(k)}catch(m){c(m)}}});
g.addOnDisposeCallback(function(){setTimeout(function(){try{g.snapshotAndFlush()}finally{e.dispose()}})});
g.invocationLimit=1E5;g.flushInterval=3E4;g.JSC$7636_flushTimer.setInterval(3E4);return g};
mg=function(){var a,b,c;return(c=(a=globalThis.performance)==null?void 0:(b=a.now)==null?void 0:b.call(a))!=null?c:Date.now()};
eja=function(a,b,c){if(a.disable)return new cja;b=b?uia(b):[];if(c)return c.nRa(b),c.share();a={ru:a.ru,pka:a.aKc,vIa:a.hYc,destinationUrl:a.destinationUrl,zKa:a.zKa,sba:a.sba};c=b;c=c===void 0?[]:c;return new dja(a,c)};
_.fja=function(a){if(!a)return null;a=_.og(a,4);return a===null||a===void 0?null:_.xd(a)};
ija=function(a,b){return b?gja(b):a?hja(a):Promise.resolve()};
gja=function(a){return new Promise(function(b,c){var d=_.pg("SCRIPT"),e=_.fja(a);_.Zd(d,e);d.onload=function(){_.qg(d);b()};
d.onerror=function(){_.qg(d);c(Error("Ma"))};
(rg("HEAD")[0]||document.documentElement).appendChild(d)})};
hja=function(a){return new Promise(function(b){var c=_.pg("SCRIPT");if(a){var d=_.og(a,6);d=d===null||d===void 0?null:_.Wd(d)}else d=null;_.Yd(c,d);(rg("HEAD")[0]||document.documentElement).appendChild(c);_.qg(c);b()})};
sg=function(a,b,c){var d,e=new Promise(function(g){d=setTimeout(g,b)});
return Promise.race([a.finally(function(){return void clearTimeout(d)}),
e.then(c)])};
jja=function(a,b){try{return globalThis.sessionStorage.setItem(a,b),!0}catch(c){return!1}};
kja=function(a,b,c,d){b=b===void 0?0:b;c=c===void 0?a.length:c;var e=0;for(d&&(e=kja(d));b<c;b++)d=typeof a==="string"?a.charCodeAt(b):a[b],e=lja(31,e)+d|0;return e};
mja=function(a,b){return[kja(a,0,a.length>>1,b),kja(a,a.length>>1)]};
nja=function(a){var b=_.h(mja(a,tg));a=b.next().value;b=b.next().value;return a.toString(16)+b.toString(16)};
oja=function(a,b){var c=mja(b);a=new Uint32Array(a.buffer);b=a[0];var d=_.h(c);c=d.next().value;d=d.next().value;for(var e=1;e<a.length;e+=2){for(var g=b,k=e,m=c,n=d,r=0;r<22;r++)k=k>>>8|k<<24,k+=g|0,k^=m+38293,g=g<<3|g>>>29,g^=k,n=n>>>8|n<<24,n+=m|0,n^=r+38293,m=m<<3|m>>>29,m^=n;g=[g,k];a[e]^=g[0];e+1<a.length&&(a[e+1]^=g[1])}};
pja=function(a,b,c,d,e){var g=(4-(tg.length+c.length)%4)%4,k=new Uint8Array(4+g+tg.length+4+c.length),m=new DataView(k.buffer),n=0;m.setUint32(n,Math.random()*4294967295);n=n+4+g;k.set(tg,n);n+=tg.length;m.setUint32(n,e);k.set(c,n+4);oja(k,d);return a.insert(b,function(r){return void globalThis.sessionStorage.removeItem(r)})?jja(b,_.Bc(k))?"s":"t":"i"};
qja=function(a,b){var c=globalThis.sessionStorage.getItem(a);if(!c)return["m"];try{var d=_.cb(c);oja(d,b)}catch(e){return globalThis.sessionStorage.removeItem(a),["c"]}for(b=4;b<7&&d[b]===0;)b++;for(c=0;c<tg.length;c++)if(d[b++]!==tg[c])return globalThis.sessionStorage.removeItem(a),["d"];c=(new DataView(d.buffer)).getUint32(b);return Math.floor(Date.now()/1E3)>=c?(globalThis.sessionStorage.removeItem(a),["e"]):["a",new Uint8Array(d.buffer,b+4)]};
rja=function(a){return globalThis.TextEncoder?(new TextEncoder).encode(a):_.ug(a)};
sja=function(a){var b=a,c;return function(){if(b){var d=b;b=void 0;c=d.apply(this,arguments)}return c}};
uja=function(a){return Kb(function(b){if(b instanceof a)return!0;var c,d,e=b==null?void 0:(c=b.ownerDocument)==null?void 0:(d=c.defaultView)==null?void 0:d[a.name];return tja(e)&&b instanceof e})};
_.xg=function(a,b,c){_.vg.call(this);this.JSC$7845_listener_=a;this.JSC$7845_interval_=b||0;this.handler_=c;this.callback_=(0,_.wg)(this.JSC$7847_doAction_,this)};
_.yg=function(a){a=vja(a);return _.xd(a)};
vja=function(a){return a===null?"null":a===void 0?"undefined":a};
xja=function(a){if(a&&a.focus)if(a!==document.activeElement)a.focus();else return wja(function(){return _.l(function(b){document.activeElement&&document.activeElement.blur();return b.return(wja(function(){a.focus()}))})})};
_.yja=function(a){var b=b===void 0?5:b;setTimeout(function(){var c;return _.l(function(d){d.nextAddress==1&&(c=document.activeElement);if(d.nextAddress!=5)return(document.activeElement===c||document.activeElement===document.body)&&b>=0&&a?_.p(d,xja(a),5):d.jumpTo(0);if(document.activeElement===a)return d.return();a=a.parentElement;--b;return d.jumpTo(2)})},15)};
wja=function(a){return new Promise(function(b){requestAnimationFrame(function(){b(a())})})};
Aja=function(a){if(_.zg)a(_.zg);else{var b;((b=zja)!=null?b:zja=[]).push(a)}};
Bg=function(){!_.zg&&_.Ag&&_.Bja(_.Ag());return _.zg};
_.Bja=function(a){_.zg=a;var b;(b=zja)==null||b.forEach(Aja);zja=void 0};
_.Cg=function(a){_.zg&&_.zg.beforeLoadModuleCode(a)};
_.Dg=function(){_.zg&&_.zg.JSC$8780_setLoaded()};
Eg=function(a){return(0,_.zc)(a)?Number(a):String(a)};
Cja=function(a){this.action=a;this.wfv=!1};
Dja=function(a,b){Cja.call(this,"set-drive-options");this.appId=a;this.appOrigin=b};
Eja=function(a){Cja.call(this,"visibility");this.visible=a};
Fja=function(a,b,c){Fg.call(this,a,b,c)};
Gja=function(a){Gg.call(this,a)};
Hja=function(a){a=a&&a.getWindow()||window;return a.gadgets&&a.gadgets.rpc};
Jja=function(a,b){var c=b&&b.getWindow()||window;if(Hja(b))a();else if(Ija)Ija.push(a);else var d=Ija=[a],e=c.setInterval(function(){if(Hja(b)){c.clearInterval(e);for(var g=0;g<d.length;g++)d[g]();Ija=null}},100)};
Lja=function(a,b){var c=new Hg(a);_.kg(b,c);var d={passive:!1};b.listen(c,"mousewheel",function(e){return void Kja(a,e)},d).listen(a,"scroll",function(e){return void Kja(a,e)},d)};
Kja=function(a,b){var c;a:{for(c=b.target;c;){if(c.nodeType==1){var d=_.Ig(c,"overflowY");if(d=="auto"||d=="scroll")break a}c=c.parentNode}c=null}if(!c||!_.Jg(a,c)||c.scrollHeight==c.clientHeight||b.deltaY>0&&Math.abs(c.scrollTop-(c.scrollHeight-c.clientHeight))<=1||b.deltaY<0&&c.scrollTop==0)b.preventDefault(),b.stopPropagation()};
Qg=function(a,b,c,d,e,g,k,m,n){m=m===void 0?!1:m;n=n===void 0?!1:n;Fg.call(this,void 0,void 0,void 0);Fg.call(this,g?g+" picker modal-dialog":"picker modal-dialog",!0,c);_.Kg(a,"protocol");this.iframeManager_=new Mja;this.targetId_=Lg();this.rpcToken_=Lg();a=_.Mg(a);_.Ng(a,"hostId");c=_.Ng(a,"parent");this.useGapi_=!n&&!0||(c==null?void 0:c.includes("onepick.corp.google.com"));m&&_.Og(a,"fv2","true");this.setUrl(a.toString());this.preferredDialogWidth_=d;this.preferredDialogHeight_=e;d!==void 0||
e!==void 0?d=!0:(d=_.Ng(_.Mg(a.toString()),"hostId"),Nja||(Nja=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),d=!Nja.has(d));this.autoSizeDialog_=d;this.JSC$8038_gadgetsDomHelper_=k||this.JSC$7989_dom_;b&&(k=this.JSC$8038_gadgetsDomHelper_,b=_.Ng(_.Mg(this.JSC$8040_url_),"grugl")=="true"?Oja:Pja,Hja(k)||(k=k||uf(document),d=k.createElement("SCRIPT"),_.Zd(d,b),d.type="text/javascript",k.JSC$7218_document_.body.appendChild(d)));
a=a.toString();b=null;k=a.indexOf("/picker?");k>-1?b=a.substring(0,k+8-1):oa(a,"/picker")&&(b=a);b&&this.setRelayUrl(b+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(a=this.buttons_,a.JSC$8023_element_=this.buttonEl_,a.render()):_.$d(this.buttonEl_,Qja),_.Pg(this.buttonEl_,!!this.buttons_))};
_.Uja=function(a){var b=b===void 0?Rja:b;var c=_.$a(a),d=function(g){g=_.h(g);g.next();g=Rg(g);return b(c,g)},e=function(g){var k=_.h(g);
g=k.next().value;k=Rg(k);return a.apply(g,k)};
return function(){var g=_.Kd.apply(0,arguments),k=this||_.ja,m=Sja.get(k);m||(m={},Sja.set(k,m));return _.Tja(m,[this].concat(_.De(g)),e,d)}};
Sg=function(a){var b={};a=a.replace(/\r/g,"").split("\n");for(var c=0;c<a.length;c++){var d=a[c],e=d.indexOf(":");e<0||(b[d.substring(0,e)]=d.substring(e+2,d.length))}return b};
Vja=function(a,b,c){c=c===void 0?function(){}:c;
b=_.h(b);for(var d=b.next();!d.done;d=b.next()){var e=_.h(d.value);d=e.next().value;e=e.next().value;if(d instanceof Array&&d.includes(a)||d===a)return e()}return c()};
_.Tg=function(a,b,c){c=c===void 0?function(){}:c;
return a?b():c()};
_.Xja=function(a){var b;return((b=Wja.documentOverride)!=null?b:a).__wizdispatcher};
Vg=function(a){var b=_.Ug;_.Ug=a;return b};
Zja=function(a,b){var c;if((c=a)==null?0:c.isDisposed)throw Error("qb`"+String(a.debugName));for(;a!==void 0;){c=a;if(c.retrieve)return c.retrieve(b,{optional:!0});a=a.parent}return Yja};
Wg=function(a){return{"\u0275prov":{providedIn:"root",token:Symbol(a),factory:void 0,value:void 0}}};
Xg=function(a){a!==$ja&&Vg(a)};
_.Yg=function(a){var b=Vg(a);a={};return a[Symbol.dispose]=function(){Xg(b)},a};
aka=function(a,b){a.disposables||(a.disposables=[]);a.disposables.push(b)};
Zg=function(a){var b=_.Ug;b&&!b.isDisposed&&(aka(b,function(){return void bka(a)}),a.parent=b)};
cka=function(a){if(a.disposables){for(var b=_.h(a.disposables),c=b.next();!c.done;c=b.next())c=c.value,c();a.disposables.length=0}};
bka=function(a){if(!a.isDisposed){a.isDisposed=!0;var b;(b=a[Symbol.dispose])==null||b.call(a);delete a.parent;cka(a)}};
kka=function(a){var b={};a.appContext&&(b[dka.\u0275prov.token]=a.appContext);a.dispatcher&&(b[eka.\u0275prov.token]=a.dispatcher);a.rootElement&&(b[fka.\u0275prov.token]=a.rootElement);a.modelRootElement&&(b[gka.\u0275prov.token]=a.modelRootElement);a.rendererData&&(b[hka.\u0275prov.token]=a.rendererData);a.injectingConstructor&&(b[ika.\u0275prov.token]=a.injectingConstructor);var c={retrieve:function(d){var e=b[d.\u0275prov.token];if(e!==void 0)return e;for(e=c.parent;e;){var g=e;if(g.retrieve)return g.retrieve(d);
e=e.parent}e=d.\u0275prov.token;g=jka[e];g!==void 0?d=g:(g=d.\u0275prov.providedIn,d.\u0275prov.factory?(d=d.\u0275prov.factory(),e&&g==="root"&&(jka[e]=d)):d=Yja);return d}};
Zg(c);return c};
mka=function(a){var b="";var c=_.ja._F_jsUrl;if(typeof document!=="undefined"&&document&&document.getElementById&&(a=document.getElementById(a))){var d=a.tagName.toUpperCase();if(d=="SCRIPT"||d=="LINK")b=a.src?a.src:a.getAttribute("href")}if(c&&b){if(c!=b)throw Error("wb`"+c+"`"+b);b=c}else b=c||b;if(!lka(b))throw Error("xb");return b};
pka=function(){if(!nka){nka=!0;try{var a=mka(_.ja._F_jsUrl?"":"base-js")}catch(d){return}var b=oka($g(a)),c=Object.keys(b);c.length!==0&&Aja(function(d){for(var e=_.h(c),g=e.next();!g.done;g=e.next()){g=g.value;for(var k=_.h(Object.keys(b[g])),m=k.next();!m.done;m=k.next())d.addExtraEdge(g,m.value)}})}};
qka=function(a,b,c){var d;return a&&b?a+"__"+b:(d=a!=null?a:b)!=null?d:c};
ska=function(){var a=Object.assign({},rka);Object.getOwnPropertyNames(rka).forEach(function(b){ah[b]!==void 0&&(a[b]=ah[b])});
return a};
tka=function(a,b){if(ah.enablePerformanceTiming){var c,d;(d=(c=performance).mark)==null||d.call(c,a+"Start__"+b)}};
uka=function(a,b){if(ah.enablePerformanceTiming){var c,d;(d=(c=performance).measure)==null||d.call(c,a+"__"+b,a+"Start__"+b)}};
wka=function(a,b){var c=Object.create(vka);c.debugName=b;!_.Ug||Zg(c);b=Vg(c);try{a(c)}finally{Xg(b)}return function(){return void bka(c)}};
zka=function(a){return xka(a)&&yka in a};
Aka=function(a,b){return Object.is(a,b)};
ch=function(a){var b=bh;bh=a;return b};
Eka=function(a){if(dh)throw Error("ga");if(bh!==null){var b=bh.nextProducerIndex++;Bka(bh);b<bh.producerNode.length&&bh.producerNode[b]!==a&&eh(bh)&&Cka(bh.producerNode[b],bh.producerIndexOfThis[b]);bh.producerNode[b]!==a&&(bh.producerNode[b]=a,bh.producerIndexOfThis[b]=eh(bh)?Dka(a,bh,b):0);bh.producerLastReadVersion[b]=a.version}};
Hka=function(a){if(!eh(a)||a.dirty)if(a.dirty||a.lastCleanEpoch!==Fka)(a.producerMustRecompute(a)||Gka(a))&&a.producerRecomputeValue(a),a.dirty=!1,a.lastCleanEpoch=Fka};
Ika=function(a){if(a.liveConsumerNode!==void 0){var b=dh;dh=!0;try{for(var c=_.h(a.liveConsumerNode),d=c.next();!d.done;d=c.next()){var e=d.value;e.dirty||(a=void 0,e.dirty=!0,Ika(e),(a=e.consumerMarkedDirty)==null||a.call(e,e))}}finally{dh=b}}};
Jka=function(){var a;return((a=bh)==null?void 0:a.consumerAllowSignalWrites)!==!1};
Kka=function(a){a&&(a.nextProducerIndex=0);return ch(a)};
Lka=function(a,b){ch(b);if(a&&a.producerNode!==void 0&&a.producerIndexOfThis!==void 0&&a.producerLastReadVersion!==void 0){if(eh(a))for(b=a.nextProducerIndex;b<a.producerNode.length;b++)Cka(a.producerNode[b],a.producerIndexOfThis[b]);for(;a.producerNode.length>a.nextProducerIndex;)a.producerNode.pop(),a.producerLastReadVersion.pop(),a.producerIndexOfThis.pop()}};
Gka=function(a){Bka(a);for(var b=0;b<a.producerNode.length;b++){var c=a.producerNode[b],d=a.producerLastReadVersion[b];if(d!==c.version)return!0;Hka(c);if(d!==c.version)return!0}return!1};
Dka=function(a,b,c){Mka(a);if(a.liveConsumerNode.length===0&&a.producerNode!==void 0)for(var d=0;d<a.producerNode.length;d++)a.producerIndexOfThis[d]=Dka(a.producerNode[d],a,d);a.liveConsumerIndexOfThis.push(c);return a.liveConsumerNode.push(b)-1};
Cka=function(a,b){Mka(a);if(a.liveConsumerNode.length===1&&a.producerNode!==void 0)for(var c=0;c<a.producerNode.length;c++)Cka(a.producerNode[c],a.producerIndexOfThis[c]);c=a.liveConsumerNode.length-1;a.liveConsumerNode[b]=a.liveConsumerNode[c];a.liveConsumerIndexOfThis[b]=a.liveConsumerIndexOfThis[c];a.liveConsumerNode.length--;a.liveConsumerIndexOfThis.length--;b<a.liveConsumerNode.length&&(c=a.liveConsumerIndexOfThis[b],a=a.liveConsumerNode[b],Bka(a),a.producerIndexOfThis[c]=b)};
eh=function(a){var b,c;return a.consumerIsAlwaysLive||((c=a==null?void 0:(b=a.liveConsumerNode)==null?void 0:b.length)!=null?c:0)>0};
Bka=function(a){a.producerNode!=null||(a.producerNode=[]);a.producerIndexOfThis!=null||(a.producerIndexOfThis=[]);a.producerLastReadVersion!=null||(a.producerLastReadVersion=[])};
Mka=function(a){a.liveConsumerNode!=null||(a.liveConsumerNode=[]);a.liveConsumerIndexOfThis!=null||(a.liveConsumerIndexOfThis=[])};
Oka=function(a){var b=Object.create(Nka);b.computation=a;a=function(){Hka(b);Eka(b);if(b.value===fh)throw b.error;return b.value};
a[gh]=b;return a};
Qka=function(a){var b=Object.create(Pka);b.value=a;a=function(){Eka(b);return b.value};
a[gh]=b;return a};
Tka=function(a,b){Jka()||Rka(a);if(!a.equal(a.value,b)){a.value=b;a.version++;Fka++;Ika(a);var c;(c=Ska)==null||c(a)}};
hh=function(a){var b=ch(null);try{return a()}finally{ch(b)}};
Vka=function(a){var b={};return b[Uka]=a,b};
_.ih=function(a,b,c){c=c===void 0?"":c;a=Qka(a);var d=a[gh];d.debugName=qka(b==null?void 0:b.debugName,c,"[signal]");(b==null?void 0:b.equals)!=null&&(d.equal=b.equals);return[a,function(e){tka("signalSet",d.debugName);try{if(e&&e[Uka]){var g=e[Uka];Jka()||Rka(d);Tka(d,g(d.value))}else Tka(d,e)}finally{uka("signalSet",d.debugName)}}]};
Xka=function(a,b){var c=_.h(_.ih(a,void 0,"cPpJzc"));a=c.next().value;c=c.next().value;a[Wka]=c;a[jh]=b;return a};
Yka=function(a){return!!a&&typeof a==="object"&&Object.getPrototypeOf(a)===Object.prototype};
Zka=function(a){return typeof a==="function"&&Wka in a&&typeof a[Wka]==="function"};
qla=function(a,b){Object.defineProperty(a,jh,{get:function(){return b}})};
lh=function(a,b){if(kh(a)){var c=a.map(function(g){return lh(g,b)});
qla(c,b);return c}if(Yka(a)){c={};a=_.h(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=_.h(d.value);d=e.next().value;e=e.next().value;c[d]=lh(e,b)}qla(c,b);return c}return Xka(a,b)};
rla=function(a){if(kh(a))return a.map(function(e){return rla(e)});
if(Yka(a)){var b={};a=_.h(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.h(c.value);c=d.next().value;d=d.next().value;b[c]=rla(d)}return b}return Zka(a)?a():a};
tla=function(){var a={height:0,width:0};if(!Yka(a))throw Error("Kb");var b=Symbol("Lb");return[lh(a,b),function(c,d){if(c[jh]===b)if(typeof d==="function"){var e=[].concat(_.De(rla(c)));d=d(e)||e;sla(c,[].concat(_.De(d)))}else sla(c,d);else throw Error("Mb");}]};
sla=function(a,b){if(Zka(a))a[Wka](b);else if(kh(a)&&kh(b))b=lh(b,a[jh]),a.length=0,a.push.apply(a,_.De(b));else if((Yka(a)||kh(a))&&(kh(b)||typeof b==="object"&&b!==null)){b=_.h(Object.entries(b));for(var c=b.next();!c.done;c=b.next()){var d=_.h(c.value);c=d.next().value;d=d.next().value;var e=a,g=e[c];Object.hasOwn(a,c)?sla(g,d):e[c]=lh(d,a[jh])}}else throw Error("Nb");};
ula=function(a){return Object.create(Object.assign({},mh,a))};
wla=function(){var a;return(a=vla)!=null?a:vla=ula({consumerAllowSignalWrites:!0})};
_.ph=function(a,b,c){c=c===void 0?"":c;a=Oka(a);var d=a[gh];d.debugName=qka(b==null?void 0:b.debugName,c,"[computed]");(b==null?void 0:b.equals)!=null&&(d.equal=b.equals);return a};
qh=function(a){var b=ch(xla);try{a()}finally{ch(b)}};
zla=function(a){yla.push(a);return function(){var b=yla.indexOf(a);b!==-1&&yla.splice(b,1)}};
Bla=function(){for(var a=_.h(Ala),b=a.next();!b.done;b=a.next())b.value.flush()};
Dla=function(a){for(var b=_.h(a),c=b.next();!c.done;c=b.next()){var d=c.value;for(c=[d];d.parent!==void 0;)d=d.parent,Cla(d)&&a.has(d)&&c.push(d);for(;c.length>0;){d=_.Jb(c.pop());try{d.run()}finally{a.delete(d)}}}};
Ila=function(a){if(!a.isDisposed){switch(a.effectType){case Ela:Fla.schedule(a);break;case Gla:Hla.schedule(a);break;default:_.Wb(a.effectType)}a.hasRun||Bla()}};
Jla=function(a){var b=a.component;var c=a.debugInstance;a=a.fn;var d,e=(d=b.debugName)!=null?d:b.name;rh.push({name:c?e+" ("+c+")":e,isReactive:b.componentType!==sh});b=a();rh.pop();return b};
th=function(){return rh[rh.length-1]};
uh=function(){var a=rh[rh.length-1];return a?a.isReactive:!1};
vh=function(a,b){b=b===void 0?{}:b;var c=rh.length;b.stack&&(rh=[].concat(_.De(b.stack)));try{return a()}catch(g){a=g;Kla(a);if(a!==Lla){Mla=rh.slice();b=[];for(var d=_.Ug;d;){var e=void 0;b.push((e=d.debugName)!=null?e:"[context]");e=void 0;d=(e=d.parent)!=null?e:null}Nla=b.reverse()}Lla=a;throw a;}finally{c=rh.length-c,c>0&&rh.splice(-c)}};
Kla=function(a){var b=rh;if(b.length!==0&&!a.componentStack){var c=b.slice(-20).reverse().map(function(d){return d.name}).join(" > ");
c=a.message+"\n\nComponent stack: "+c;try{a.componentStack=b.slice(),ah.enableComponentStacksInErrorMessages&&(a.stack&&(a.stack=a.stack.replace(a.message,c)),a.message=c)}catch(d){}}};
Ola=function(a,b,c){b=Object.create(b);b.componentStack=rh.slice();b.reactionFn=a;c&&(b.debugName=c);Zg(b);return b};
_.wh=function(a,b){a=Ola(a,Pla,b);Ila(a)};
xh=function(a,b,c){c=c===void 0?3:c;var d,e;var g=(e=(d=Mla)==null?void 0:d.slice())!=null?e:[];var k,m;d=(m=(k=Nla)==null?void 0:k.slice())!=null?m:[];b={componentStack:g,contextTrace:d,errorSeverity:c,featureFlags:ska(),tagName:b};return[a,b]};
_.yh=function(a,b){a=Ola(a,Qla,b);b=bh;if(Cla(b)&&b.effectType===Gla){var c;(c=ah.handleError)==null||c.call.apply(c,[ah].concat(_.De(xh(Error("tb")))))}Ila(a)};
_.zh=function(a){var b=_.Ug;if(b){var c=rh.slice();aka(b,function(){var d=ch(wla());try{vh(function(){return void a()},{stack:c})}finally{ch(d)}})}};
Ah=function(a,b){var c={};(b===void 0||b)&&Zg(c);b=Vg(c);try{a(c)}finally{Xg(b)}return function(){return void bka(c)}};
_.Bh=function(a){return typeof a==="function"?a():(a==null?0:a[Rla])?a.get():a};
Sla=function(a){if(_.Ug)throw Error("rb");Ah(a,!1)};
Ch=function(a,b){a=Vg(a);try{return hh(b)}finally{Xg(a)}};
Vla=function(a,b,c){if(Object.hasOwnProperty.call(Tla,a)&&(a=Tla[a],Object.hasOwnProperty.call(a,b)&&(a=a[b],a instanceof Array))){for(var d=null,e=!1,g=0,k=a.length;g<k;++g){var m=a[g],n=m.contingentAttribute;if(!n)return m.contract;d===null&&(d={});n=Object.hasOwnProperty.call(d,n)?d[n]:d[n]=c(n);if(n===m.requiredValue)return m.contract;n==null&&(e=!0)}if(e)return null}b=Ula[b];return typeof b==="number"?b:null};
Yla=function(a,b,c){var d=null;(a=Wla[a])&&(d=a[b]);return typeof d!=="number"&&((a=Wla["*"])&&(d=a[b]),typeof d!=="number")?!1:!0===Xla[d][String(c).toLowerCase()]};
$la=function(a,b){b=Vla(a.toLowerCase(),b,function(){var d;(d=ah.handleError)==null||d.call.apply(d,[ah].concat(_.De(xh(Error("Sb"),a.toLowerCase()))))});
if(b===null)return null;var c;return(c=Zla[b])!=null?c:null};
ama=function(a,b,c){if(c===null||c===void 0)return c;a=$la(a,b);return a===null?c:a(b,c)};
bma=function(){};
Dh=function(a,b){for(;a.length>b;)a.pop()};
cma=function(a){a=Array(a);Dh(a,0);return a};
dma=function(a,b,c){if(c==null)a.removeAttribute(b);else{var d;(d=b.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":b.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?a.setAttributeNS(d,b,c):a.setAttribute(b,c)}};
ema=function(a,b,c){a[b]=c};
gma=function(a,b,c){a=a.style;if(typeof c==="string")a.cssText=c;else{a.cssText="";for(var d in c)if(fma.call(c,d)){b=a;var e=d,g=c[d];e.indexOf("-")>=0?b.setProperty(e,g):b[e]=g}}};
hma=function(a,b,c){var d=typeof c;d==="object"||d==="function"?a[b]=c:dma(a,b,c)};
ima=function(){var a=new bma;a[Eh.default]=hma;a.style=gma;return a};
jma=function(a,b,c,d){(d[b]||d[Eh.default])(a,b,c)};
lma=function(a,b,c){b=new kma(b,c);return a.__incrementalDOMData=b};
Fh=function(a,b){if(a.__incrementalDOMData)return a.__incrementalDOMData;var c=a.nodeType===1?a.localName:a.nodeName,d=a.nodeType===1?a.getAttribute("key"):null;b=lma(a,c,a.nodeType===1?d||b:null);if(a.nodeType===1&&(a=a.attributes,c=a.length)){d=b._attrsArr||(b._attrsArr=cma(c*2));for(var e=0,g=0;e<c;e+=1,g+=2){var k=a[e],m=k.value;d[g]=k.name;d[g+1]=m}}return b};
mma=function(a,b,c,d,e){return b==c&&d==e};
nma=function(a){for(var b=Gh,c=Ih();c!==a;){var d=c.nextSibling;b.removeChild(c);Jh.deleted.push(c);c=d}};
Ih=function(){return Kh?Kh.nextSibling:Gh.firstChild};
Lh=function(){Kh=Ih()};
qma=function(a,b,c){Lh();var d;a:{if(d=Kh){do{var e=d,g=a,k=b,m=Fh(e,k);if(oma(e,g,m.nameOrCtor,k,m.key))break a}while(b&&(d=d.nextSibling))}d=null}d||(a==="#text"?(c=Mh.createTextNode(""),lma(c,"#text",null),a=c):(d=Mh,e=Gh,typeof a==="function"?d=new a:d=(e=a==="svg"?"http://www.w3.org/2000/svg":a==="math"?"http://www.w3.org/1998/Math/MathML":e==null||Fh(e).nameOrCtor==="foreignObject"?null:e.namespaceURI)?d.createElementNS(e,a):d.createElement(a),lma(d,a,b),a=d,c&&a.setAttribute("nonce",c)),Jh.created.push(a),
d=a);c=d;if(c!==Kh){if(pma.indexOf(c)>=0)for(a=Gh,b=c.nextSibling,d=Kh;d!==null&&d!==c;)e=d.nextSibling,a.insertBefore(d,b),d=e;else Gh.insertBefore(c,Kh);Kh=c}};
rma=function(a,b,c){qma(a,b,c);Gh=Kh;Kh=null;return Gh};
sma=function(){nma(null);Kh=Gh;Gh=Gh.parentNode};
Nh=function(){Kh=Gh.lastChild};
vma=function(a,b){b=b===void 0?{}:b;var c=b.matches===void 0?mma:b.matches;return function(d,e,g){var k=Jh,m=Mh,n=pma,r=Oh,t=Ph,u=Kh,x=Gh,A=oma;Mh=d.ownerDocument;Jh=new tma(d);oma=c;Oh=[];Ph=[];Kh=null;var C=Gh=d.parentNode,F,J=uma.call(d);if((F=J.nodeType===11||J.nodeType===9?J.activeElement:null)&&d.contains(F)){for(J=[];F!==C;)J.push(F),F=F.parentNode||(C?F.host:null);C=J}else C=[];pma=C;try{return a(d,e,g)}finally{d=Jh,Qh&&d.deleted.length>0&&Qh(d.deleted),Mh=m,Jh=k,oma=A,Oh=r,Ph=t,Kh=u,Gh=x,
pma=n}}};
wma=function(a,b,c,d){Rh.push(jma);Rh.push(a);Rh.push(b);Rh.push(c);Rh.push(d)};
yma=function(a,b,c){var d=Ph;b=b._attrsArr||(b._attrsArr=cma(d.length));for(var e=!b.length||!1,g=0;g<d.length;g+=2){var k=d[g];if(e)b[g]=k;else if(b[g]!==k)break;var m=d[g+1];if(e||b[g+1]!==m)b[g+1]=m,wma(a,k,m,c)}if(g<d.length||g<b.length){for(g=e=g;g<b.length;g+=2)Sh[b[g]]=b[g+1];for(g=e;g<d.length;g+=2)e=d[g],k=d[g+1],Sh[e]!==k&&wma(a,e,k,c),b[g]=e,b[g+1]=k,delete Sh[e];Dh(b,d.length);for(var n in Sh)wma(a,n,void 0,c),delete Sh[n]}a=xma;xma=c=Rh.length;for(n=a;n<c;n+=5)(0,Rh[n])(Rh[n+1],Rh[n+
2],Rh[n+3],Rh[n+4]);xma=a;Dh(Rh,a);Dh(d,0)};
Th=function(a){qma("#text",null);var b=Kh;var c=Fh(b);if(c.text!==a){c=c.text=a;for(var d=1;d<arguments.length;d+=1)c=(0,arguments[d])(c);b.data!==c&&(b.data=c)}return b};
Ema=function(a,b,c){if(c===!1&&zma.has(b))dma(a,b,null);else if(b!=="idomKey"&&b!=="skip"&&b!=="skipchildren"&&b!=="children"&&b!=="el"){if(b.startsWith("on"))if(b[2]===":"){if(c===void 0||c===null){var d;(d=ah.handleError)==null||d.call.apply(d,[ah].concat(_.De(xh(Error("Yb`"+b),a.tagName))));a[b]=void 0;return}if(typeof c!=="object"||c===null)throw Error("Zb`"+b+"`"+typeof c);if(typeof c.getFn!=="function")throw Error("$b`"+b+"`"+Object.keys(c));var e=c.getFn(0),g=b.slice(3);if((d=uh())&&a["on"+
g]===void 0)a.addEventListener(g,e),_.zh(function(){return void a.removeEventListener(g,e)});
else if(d||!Ama.includes(g))a["on"+g]=e}else{Bma(a,b,c);return}else if(b.startsWith("data-")&&typeof c==="string")try{c=Cma(c)}catch(k){c="zSoyz"}typeof c!=="function"||a._disposeEffects!=null?(ah.enableAttributeSanitization&&(c=ama(a.tagName,b,c)),b==="style"?Dma(a,b,c):b.startsWith("prop:")?(b=b.slice(5),a[b]=c):Bma(a,b,c)):(a._signalProps||(a._signalProps=[]),a._signalValues||(a._signalValues=[]),a._signalProps.push(b))}};
Fma=function(a,b,c){c=(c===void 0?{}:c).isReactive;if(b==null?0:b.el){var d=b.el;if(typeof d==="function")d(a);else{var e;(e=d.onRender)==null||e.call(d,a);a._disposeRef||(a._disposeRef=function(){var g;(g=d.onUnmount)==null||g.call(d);delete a._disposeRef},c&&_.zh(function(){var g;
return void((g=a._disposeRef)==null?void 0:g.call(a))}))}}};
Gma=function(a){return xka(a)&&Uh in a};
Hma=function(a){return Gma(a)?a[Uh].flattened:a};
Ima=function(a,b){var c=_.Kd.apply(2,arguments),d;b=(d=b)!=null?d:{};d={};return d.type=a,d.props=b,d.children=c,d[Vh]=!0,d};
_.Wh=function(a){return a.children};
Xh=function(a){var b=Jma!==Ima;Jma=a?Kma:Ima;return b};
Oma=function(a){Lma--;if(a)Mma.length=0;else if(!(Lma>0))for(;Mma.length>0;){a=Mma.shift();if(!a)throw Error("cc");try{a()}catch(b){Nma(b)}}};
Yh=function(a){return _.Za(a)?"nodeType"in a:!1};
Zh=function(){return document.createTextNode("")};
ai=function(a){a=document.createTextNode(String(a));a._isSignalTextNode=!0;return a};
Pma=function(a){var b=document.createElement("div");if(!(a instanceof Od)){if(a.contentKind!==bi)throw Error("Wb");a=Qd(a.toString())}_.$d(b,a);a=_.h(b.childNodes);for(var c=a.next();!c.done;c=a.next())c.value._isSafeOrSanitizedHtmlNode=!0;return b};
ci=function(a){a=typeof a;return a==="string"||a==="number"||a==="boolean"};
Qma=function(a){return a instanceof wd||Dd(a)||"function"==typeof _.de&&a instanceof _.de||!1};
Rma=function(a,b){var c=a.parentElement;if(!c)return b;c.replaceChild(b,a);return b};
Sma=function(a,b){var c=a[0].parentElement;if(c)if(a[0].previousSibling||a[a.length-1].nextSibling){c.insertBefore(b,a[0]);for(var d=a.length-1;d>=0;d--)c.removeChild(a[d])}else c.textContent="",c.appendChild(b);return b};
Tma=function(a,b){if(a[0].parentElement)for(var c=a[0].parentElement,d=b.length,e=a.length,g=d,k=0,m=0,n=a[e-1].nextSibling,r=null;k<e||m<g;)if(a[k]===b[m])k++,m++;else{for(;a[e-1]===b[g-1];)e--,g--;if(e===k)for(var t=g<d?m?b[m-1].nextSibling:b[g-m]:n;m<g;){var u=b[m++];c.insertBefore(u,t)}else if(g===m)for(;k<e;)t=a[k],r&&r.has(t)||c.removeChild(t),k++;else if(a[k]===b[g-1]&&b[m]===a[e-1])t=a[--e].nextSibling,c.insertBefore(b[m++],a[k++].nextSibling),c.insertBefore(b[--g],t),a[e]=b[g];else{if(!r)for(r=
new Map,t=m;t<g;)r.set(b[t],t++);t=r.get(a[k]);if(t==null)c.removeChild(a[k]),k++;else if(m<t&&t<g){u=k;for(var x=1,A=void 0;++u<e&&u<g&&(A=r.get(a[u]))!=null&&A===t+x;)x++;if(x>t-m)for(u=a[k];m<t;)c.insertBefore(b[m++],u);else c.replaceChild(b[m++],a[k++])}else k++}}return b};
Vma=function(a){if(Array.isArray(a)){if(a.length>1)throw Error("jc`"+a.length+"`"+a.map(Uma).join(", "));a=a[0]}if(a==null)return null;if(!(a instanceof _.Vd)){var b,c;if((b=window)==null?0:(c=b.trustedTypes)==null?0:c.isScript(a))throw Error("ic");if(String(a).trim().length===0)return null;throw Error("kc`"+Uma(a));}return a};
Wma=function(a){if(Array.isArray(a)){if(a.length>1)throw Error("lc`"+a.length+"`"+a.map(Uma).join(", "));a=a[0]}if(a==null)return null;if(!Tda(a)){if(String(a).trim().length===0)return null;throw Error("mc`"+Uma(a));}return a};
Uma=function(a){return"("+typeof a+") "+(a!=null&&typeof a==="object"?a.constructor.name:typeof a)+" "+a};
Yma=function(a,b){return Xma(a,b)};
Xma=function(a,b){function c(){e=!1;Lma++;var g=d[0],k=d[Uh].flattened,m=Xh(!0);try{var n=a(),r=Zma(g,n,d);Array.isArray(r)||(d[Uh].flattened=[r]);var t=d[Uh].flattened;if(k&&(!Array.isArray(k)||k.length!==0)){var u=Array.isArray(k)?k[0]:k,x=u[di],A=u._disposeEffects;u._disposeEffects=void 0;u=Array.isArray(t)?t[0]:t;u[di]=x;u[di]&&(u[di].numNodes=u===t?1:t.length);u._disposeEffects=A}d[0]=r;Oma(!1)}catch(C){throw Oma(!0),C;}finally{Xh(m)}}
var d=$ma(),e=!0;_.yh(function(){(ana==null?0:ana.logger)&&!e?ana.logger.logGraft(d[0],c):c()},b);
return d};
Zma=function(a,b,c){for(;typeof b==="function";)b=b();if(b!=null&&b[Vh]){var d,e,g;(g=ah.handleError)==null||g.call.apply(g,[ah].concat(_.De(xh(Error("nc`"+((d=b.type)==null?void 0:d.TAG_NAME)),(e=b.type)==null?void 0:e.TAG_NAME))))}if(a==null)return b==null?Zh():ci(b)?ai(b):Qma(b)?ai(b.toString()):Yh(b)?b:b.length===0?Zh():bna(b,c);if(Yh(a)){if(b==null)return Rma(a,Zh());if(ci(b))return cna(a,b);if(Qma(b))return cna(a,b.toString());if(Yh(b))return Rma(a,b);if(b.length===0)return Rma(a,Zh());b=bna(b,
c);Tma([a],c[Uh].flattened);return b}a=ei(a);if(b==null)return Sma(a,Zh());if(ci(b))return Sma(a,ai(b));if(Qma(b))return Sma(a,ai(b.toString()));if(Yh(b))return Tma(a,[b])[0];if(b.length===0)return Sma(a,Zh());b=bna(b,c);Tma(a,c[Uh].flattened);return b};
cna=function(a,b){a.nodeType===Node.TEXT_NODE?a.textContent!==String(b)&&(a.textContent=String(b)):a=Rma(a,ai(b));return a};
ei=function(a,b,c){return dna(a,b!=null?b:[],c===void 0?!1:c)};
bna=function(a,b){var c=ei(a,void 0,!0);if(c.length===0)return Zh();b[Uh].flattened=c;return a};
dna=function(a,b,c,d,e){b=b===void 0?[]:b;c=c===void 0?!1:c;e=e===void 0?-1:e;if(a==null)return b;if(a instanceof fi)return a=a.render(),dna(a,b,c,d,e);if(Yh(b)&&b.nodeType===Node.ELEMENT_NODE)switch(b.tagName){case "SCRIPT":c=Vma(a);c!==null&&_.Yd(b,c);return;case "STYLE":c=Wma(a);c!==null&&(b.textContent=_.Uda(c));return}ci(a)&&(a=ai(a),d&&c&&(d[e]=a));if(a!=null&&a.contentKind===bi||a instanceof Od){c=Pma(a);c=Array.from(c.childNodes);c=_.h(c);for(a=c.next();!a.done;a=c.next())ena(b,a.value);return b}Qma(a)&&
(a=ai(a.toString()),d&&c&&(d[e]=a));if(Yh(a))return ena(b,a);if(Array.isArray(a)){for(var g=0;g<a.length;g++)dna(a[g],b,c,a,g);return b}if(typeof a==="function"){a=Xma(a,"qmF2ne")[0];if(Array.isArray(a)){c=_.h(a);for(a=c.next();!a.done;a=c.next())ena(b,a.value);return b}d&&c&&(d[e]=a);return ena(b,a)}if(a!=null&&a[Vh]){d=Xh(!0);e=Jma;try{g=e.apply(null,[a.type,a.props].concat(_.De(a.children)))}finally{Xh(d)}return dna(g,b,c)}var k;(k=ah.handleError)==null||k.call.apply(k,[ah].concat(_.De(xh(Error("oc")))));
return b};
$ma=function(a){var b={};b=Object.assign([],(b[Uh]={flattened:[]},b));if(!a)return b;b[0]=bna(a,b);return b};
ena=function(a,b){Array.isArray(a)?a.push(b):a.appendChild(b);return a};
ii=function(a){if(!ah.enableSinkLazyTsx)return a;if(Array.isArray(a)){for(var b=0;b<a.length;b++)a[b]=ii(a[b]);return a}return a instanceof fi?(a=a.render(),ii(a)):a};
hna=function(a,b){var c,d,e=fna(a),g=function(A){d=A;A=Xh(!0);var C=ch(ji);tka("render",e);try{c=ii(a(b))}finally{uka("render",e),ch(C),Xh(A)}};
g=ah.enableContextPerComponent?wka(g,e):Ah(g,ah.alwaysTrackContexts||!!_.Ug);zka(d);if(!b.renderedFromIdom){var k=Vg(d);try{return gna(a,b,c),c}finally{Xg(k)}}!Gma(c)&&Array.isArray(c)&&(c=$ma(c));var m=Hma(c);k=Array.isArray(m)?m[0]:m;var n=!1;if(k){var r,t=(r=b==null?void 0:b.idomKey)!=null?r:a;r=m!==k;k._disposeEffects=g;var u=k[di]||{},x=Gma(c)?c:u.sourceDynamicRange;Object.assign(u,{key:t,numNodes:r?m.length:1,context:d,higherOrder:!!k[di],sourceDynamicRange:x});k[di]=u}else n=!0;(function(){var A=
Vg(d);try{gna(a,b,m)}finally{Xg(A)}})();
n&&g();return c};
fna=function(a){var b,c;return(c=(b=a.debugName)!=null?b:a.name)!=null?c:"[component]"};
ina=function(a){var b={},c;for(c in a)b={prev$jscomp$24:void 0,next$jscomp$25:void 0},b.prev$jscomp$24=ki[c],b.next$jscomp$25=a[c],ki[c]=function(d){return function(){var e=_.Kd.apply(0,arguments);d.prev$jscomp$24.apply(null,_.De(e));d.next$jscomp$25.apply(null,_.De(e))}}(b)};
jna=function(){if(uh())throw Error("pc");return li};
kna=function(a,b){if(!a.__unmounted&&b){a.__unmounted=!0;try{a.didUnmount()}catch(e){var c,d;(d=ah.handleError)==null||d.call.apply(d,[ah].concat(_.De(xh(e,(c=a.JSC$8107___type)==null?void 0:c.TAG_NAME))))}ki.didUnmount(a);a.el=null;b.__instance&&delete b.__instance}};
mna=function(a,b,c){a._signalProps!=null&&a._disposeEffects==null&&((c===void 0?0:c)?a._disposeEffects=Ah(function(){return void lna(a,b)},ah.alwaysTrackContexts||!!_.Ug):lna(a,b))};
lna=function(a,b){_.yh(function(){for(var c=a._signalProps,d=a._signalValues,e=0;e<c.length;e++){var g=c[e],k=b[g]();d[e]!==k&&(d[e]=k,Ema(a,g,k))}},"e3YVbb")};
nna=function(a,b,c){var d,e=[];a._disposeEffects=Ah(function(){_.yh(function(){var g=c();if(g===null||g===void 0)g="";if(ci(g)||g===null)d!=null||(d=document.createTextNode("")),d.parentNode!==a&&(d._isSignalTextNode=!0,a.insertBefore(d,b)),d.textContent=String(g);else if(g!=null&&g.contentKind===bi||g instanceof Od){for(var k=e.length>0?e[e.length-1].nextSibling:b,m=_.h(e),n=m.next();!n.done;n=m.next())a.removeChild(n.value);g=Pma(g);e=Array.from(g.childNodes);g=_.h(e);for(m=g.next();!m.done;m=g.next())a.insertBefore(m.value,
k)}else throw n=(m=(k=th())==null?void 0:k.name)!=null?m:"unknown",Error("ec`"+n+"`"+typeof g);},"VvDgC")},ah.alwaysTrackContexts||!!_.Ug)};
qna=function(a,b){var c=_.Kd.apply(2,arguments);b!=null||(b={});return!ah.enableSinkLazyTsx||th()!=null&&!uh()?ona(a,b,c):new pna(a,b,c)};
ona=function(a,b,c){if(a===_.Wh)return c;if(typeof a==="function")return th()&&!uh()&&(b.renderedFromIdom=!0),Jla({component:a,debugInstance:b.debugInstance,fn:function(){var g=rna(a,b,c);if(g)return g;c.length>0&&(b.children=c.length===1?c[0]:c);g=b;if(a.componentType!==sh)var k=!1;else{g||(g={});var m=new mi(g,a),n=ch(ji);try{k=m.render(g)}finally{ch(n)}k instanceof HTMLElement&&(k.__instance=m,m.el=k,m.JSC$8107___type=a,a.TAG_NAME=k.tagName.toLowerCase(),ki.didPatch(m))}return k===!1?hna(a,b):
k}});
var d=sna(a,b),e;for(e in b)Ema(d,e,b[e]);mna(d,b);ei(c,d);Fma(d,b,{isReactive:!0});tna(d,b);return d};
sna=function(a,b){a=(una.has(a.toLowerCase())?0:vna.has(a.startsWith("svg:")?a.replace("svg:",""):a))?document.createElementNS("http://www.w3.org/2000/svg",a.startsWith("svg:")?a.replace("svg:",""):a):wna(a,b)||document.createElement(a);a[xna]=!0;return a};
yna=function(a){if(a){var b;(b=a._disposeRef)==null||b.call(a);var c;(c=a._disposeEffects)==null||c.call(a);a.__instance&&a.__instance instanceof ni&&(b=a.__instance,kna(b,a),b instanceof mi&&b.disposeEffects());for(b=0;b<a.childNodes.length;b++)yna(a.childNodes[b])}};
Ana=function(a){zna.push(a)===1&&requestAnimationFrame(function(){setTimeout(function(){var b=[].concat(_.De(zna));zna=[];b=_.h(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;try{for(var d=0;d<c.length;d++)yna(c[d])}catch(e){d=c=void 0,(d=(c=ah).handleError)==null||d.call.apply(d,[c].concat(_.De(xh(e))))}}})})};
_.q=function(a,b){return Jma.apply(null,[a,b].concat(_.De(_.Kd.apply(2,arguments))))};
Cna=function(){var a=document.body.firstElementChild;a.__ngContext__={};a.setAttribute("ng-version","0.0.0-PLACEHOLDER");window.ng=Bna};
Gna=function(a,b){var c;b!=null?c=b:c=_.Xja(document).getAppContext();c.get(Dna).JSC$25169_getEventTarget().dispatchEvent(new Ena(Fna,a,bi))};
_.oi=function(a,b){var c=c===void 0?{enableDevtools:!1}:c;var d=vh(function(){var e=ch(ji);try{return Ah(function(){var g=_.Xja(_.Hf(a)),k;var m=kka({appContext:c.appContext||(g==null?void 0:(k=g.getOptionalAppContext)==null?void 0:k.call(g)),dispatcher:g});g=Vg(m);m=Xh(!0);Lma++;try{ei(b(),a),Oma(!1)}catch(n){throw Oma(!0),n;}finally{Xh(m),Xg(g)}},!1)}finally{ch(e)}});
a[Hna]=!0;c.legacyTriggerSoyRendererEvents&&Gna(a,c.appContext);return function(){a.textContent="";d();a[Hna]=!1}};
_.pi=function(a){if(Cla(bh)){var b;(b=ah.handleError)==null||b.call.apply(b,[ah].concat(_.De(xh(Error("dc")))))}var c=_.Ug,d=rh.slice();Promise.resolve().then(function(){c&&!c.isDisposed&&vh(function(){var e=Vg(c);try{a()}finally{Xg(e)}},{stack:d})})};
_.qi=function(a){var b=a.cond;if(b===void 0)return a.else&&a.else();var c=_.ph(function(){return!!b()},void 0,"y0Xknf"),d=function(){var e=b();
if(!e){var g;(g=ah.handleError)==null||g.call.apply(g,[ah].concat(_.De(xh(Ina.nonNullableCondIsNull()))))}return e};
return Yma(function(){var e=c(),g;Ah(function(){var k=ch(ji);try{g=ii(e?a.then(d):a.else&&a.else())}finally{ch(k)}},!0);
return g},a.debugInstance)};
Jna=function(a){return _.qi(a)};
_.ri=function(a){return a.keyBy==="INDEX"?Kna(a):Lna(a)};
Mna=function(a){a=_.h(a);for(var b=a.next();!b.done;b=a.next()){var c=void 0;(c=b.value)==null||c()}};
Lna=function(a){var b=a.keyBy===void 0||a.keyBy==="REFERENCE",c=b?function(t){return t}:a.keyBy,d=[],e=[],g=[],k=[],m=[],n=[],r=!0;
_.zh(function(){Mna(k)});
return Yma(function(){var t=a.each(),u=t.length;if(u===0){if(d.length===0&&!r)return g;Mna(k);d=t;e=[];for(t=0;t<d.length;t++)e.push(c(d[t]));g=[];k=[];m=[];n=[];a.fallback&&(k[0]=Nna(function(){g[0]=ii(a.fallback())}));
r=!1;return g}for(var x=new Ona,A=d.length-1;A>=0;A--)x.push(e[A],A);A=Array(u);for(var C=Array(u),F=Array(u),J=Array(u),I=Array(b?0:u),R={i$jscomp$484:0};R.i$jscomp$484<u;R={i$jscomp$484:R.i$jscomp$484,item$jscomp$103:void 0,key$jscomp$517:void 0},R.i$jscomp$484++){R.item$jscomp$103=t[R.i$jscomp$484];R.key$jscomp$517=c(R.item$jscomp$103);var da=x.pop(R.key$jscomp$517);da!=null?(F[R.i$jscomp$484]=g[da],C[R.i$jscomp$484]=e[da],A[R.i$jscomp$484]=k[da],J[R.i$jscomp$484]=m[da],b||(I[R.i$jscomp$484]=n[da]),
qh(function(V){return function(){J[V.i$jscomp$484](V.i$jscomp$484);if(!b)I[V.i$jscomp$484](V.item$jscomp$103)}}(R)),delete k[da]):A[R.i$jscomp$484]=Nna(function(V){return function(){var fa=_.h(_.ih(V.i$jscomp$484,void 0,"g4fKif")),aa=fa.next().value;
fa=fa.next().value;J[V.i$jscomp$484]=fa;C[V.i$jscomp$484]=V.key$jscomp$517;if(b)F[V.i$jscomp$484]=ii(a.children(V.item$jscomp$103,aa));else{var ma=_.h(_.ih(V.item$jscomp$103,void 0,"Ile0Kc"));fa=ma.next().value;ma=ma.next().value;I[V.i$jscomp$484]=ma;F[V.i$jscomp$484]=ii(a.children(fa,aa))}}}(R))}Mna(k);
d=t;e=C;g=F;k=A;m=J;n=I;r=!1;return F},a.debugInstance)};
Kna=function(a){var b=[],c=[],d=[],e=[],g=!1;_.zh(function(){for(var k=_.h(e),m=k.next();!m.done;m=k.next())m=m.value,m()});
return Yma(function(){var k=a.each();g&&k.length>0&&(e.pop()(),b.pop(),g=!1);for(var m=Array(k.length),n={i$jscomp$485:0};n.i$jscomp$485<k.length;n={i$jscomp$485:n.i$jscomp$485},n.i$jscomp$485++)if(n.i$jscomp$485<b.length)b[n.i$jscomp$485]!==k[n.i$jscomp$485]&&(qh(function(t){return function(){return void c[t.i$jscomp$485](k[t.i$jscomp$485])}}(n)),b[n.i$jscomp$485]=k[n.i$jscomp$485]),m[n.i$jscomp$485]=d[n.i$jscomp$485];
else{var r=Nna(function(t){return function(){b[t.i$jscomp$485]=k[t.i$jscomp$485];var u=_.h(_.ih(k[t.i$jscomp$485],void 0,"C53T8b")),x=u.next().value;u=u.next().value;c[t.i$jscomp$485]=u;m[t.i$jscomp$485]=ii(a.children(x,t.i$jscomp$485))}}(n));
e[n.i$jscomp$485]=r}for(;b.length>k.length;)b.pop(),e.pop()(),c.pop();k.length===0&&!g&&a.fallback&&(n=Nna(function(){m[0]=ii(a.fallback())}),e[0]=n,g=!0);
return d=m},a.debugInstance)};
Nna=function(a){var b=_.Ug;return Ah(function(c){var d=ch(ji);try{c.parent=b,a(c)}finally{ch(d)}},!1)};
_.si=function(a){return a};
_.Pna=function(a){return{isDefault:!0,children:a.children}};
_.ti=function(a){var b=Qna(a),c=_.ph(function(){return Rna(b)},void 0,"BHmkEe");
return Yma(function(){var d=c(),e;Ah(function(){var g=ch(ji);try{e=ii(d())}finally{ch(g)}});
return e},a.debugInstance)};
Qna=function(a){a=a.children;return Array.isArray(a)?a:[a]};
Sna=function(a){var b=a.props;a=a.getChildren()[0];return b.when?{when:b.when,children:a}:{isDefault:!0,children:a}};
Rna=function(a){var b=function(){return null};
a=_.h(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c!=null&&c[Vh]&&(c=c.type===_.Pna?{isDefault:!0,children:c.children[0]}:{when:c.props.when,children:c.children[0]}),c instanceof fi&&(c=Sna(c)),c.isDefault)b=c.children;else if(c.when())return c.children;return b};
Tna=function(a){var b=null,c;return{value:null,onRender:function(d){if(c&&d!==c){var e;(e=b)==null||e();c._disposeRef=void 0}c=d;b=a(d)||null},
onUnmount:function(){var d;(d=b)==null||d();b=null}}};
Vna=function(a){var b=jna();if(b==null)throw Una.PRIMITIVE_INVALID_HOOK_CALL();var c=b.hookCounter++;b.hooks||(b.hooks=[]);var d=b.hooks;d[c]||(d[c]={key:a,host:b});if(a!==d[c].key){var e,g;a=((e=b.JSC$8107___type)==null?void 0:e.name)||((g=b.functionComponent)==null?void 0:g.name);throw Una.OUT_OF_ORDER_HOOK_CALL(a);}return d[c]};
Wna=function(a,b){return!a||a.length!==(b==null?void 0:b.length)||a.some(function(c,d){return c!==b[d]})};
ui=function(a,b){var c=Vna("onChange"),d=jna();Wna(c.deps,b)&&(c.deps=b,c.pendingEffect=a,d.__syncEffects||(d.__syncEffects=[]),d.__syncEffects.push(c))};
vi=function(a,b){ui(function(){return hh(a)},b)};
_.wi=function(a){uh()?_.pi(function(){hh(a)}):ui(function(){return hh(a)},[])};
Yna=function(a){var b=[].concat(_.De(a));a.length=0;a=_.h(b);for(b=a.next();!b.done;b=a.next()){b=b.value;Xna(b);var c=b.pendingEffect;b.pendingEffect=null;if(c=c==null?void 0:c())b.pendingCleanup=c}};
Xna=function(a){var b=a.pendingCleanup;a.pendingCleanup=null;b==null||b()};
Zna=function(a,b){if(uh())return a();var c=Vna("useMemoInternal");Wna(c.deps,b)&&(c.deps=b,c.value=a());return c.value};
xi=function(a,b){return Zna(a,b)};
yi=function(a){return Zna(a,[])};
$na=function(){var a=_.Kd.apply(0,arguments),b=yi(function(){return a.map(function(c){return _.ih(c,void 0,"iAOe9b")})});
vi(function(){for(var c=0;c<a.length;c++)(0,b[c][1])(a[c])},a);
return b.map(function(c){return _.h(c).next().value})};
Ai=function(a){return yi(function(){return{value:a}})};
_.Ci=function(a,b){if(!a)return null;a=Object.keys(a);a=_.h(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.toLowerCase();if(d.indexOf(b,d.length-b.length)>-1)return c}return null};
_.Ei=function(){var a=arguments,b=_.Di;a.length>1?b[a[0]]=a[1]:a.length===1&&Object.assign(b,a[0])};
_.Fi=function(a,b){return a in _.Di?_.Di[a]:b};
_.Gi=function(a,b){return!!_.Fi(a,b)};
aoa=function(a){var b=_.Di.EXPERIMENT_FLAGS;return b?b[a]:void 0};
coa=function(a){boa.forEach(function(b){return b(a)})};
_.Ii=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){_.Hi(b)}}:a};
_.Hi=function(a){var b=_.Ji("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=_.Fi("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.Ei("ERRORS",b));coa(a)};
_.Ki=function(a,b,c,d,e){var g=_.Ji("yt.logging.errors.log");g?g(a,"WARNING",b,c,d,void 0,e):(g=_.Fi("ERRORS",[]),g.push([a,"WARNING",b,c,d,void 0,e]),_.Ei("ERRORS",g))};
eoa=function(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d<e;d++){var g=b[d].split("=");if(g.length===1&&g[0]||g.length===2)try{var k=doa(g[0]||""),m=doa(g[1]||"");if(k in c){var n=c[k];Array.isArray(n)?_.Xa(n,m):c[k]=[n,m]}else c[k]=m}catch(x){var r=x,t=g[0],u=String(eoa);r.args=[{key:t,value:g[1],query:a,method:foa===u?"unchanged":u}];goa.hasOwnProperty(t)||_.Ki(r)}}return c};
hoa=function(a){var b=[];_.Cf.forEach(a,function(c,d){var e=_.Li(d);_.Mi(Array.isArray(c)?c:[c],function(g){g==""?b.push(e):b.push(e+"="+_.Li(g))})});
return b.join("&")};
_.Ni=function(a){a.charAt(0)==="?"&&(a=a.substring(1));return eoa(a,"&")};
_.Oi=function(a){return a.indexOf("?")!==-1?(a=(a||"").split("#")[0],a=a.split("?",2),_.Ni(a.length>1?a[1]:a[0])):{}};
_.Pi=function(a,b){return ioa(a,b||{},!0)};
joa=function(a,b){return ioa(a,b||{},!1)};
ioa=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=_.Ni(e[1]||"");for(var g in b)if(c||!_.Cf.containsKey(e,g))e[g]=b[g];return _.Qi(a,e)+d};
Ui=function(a){if(!b)var b=window.location.href;var c=_.Ri(a)[1]||null,d=_.Si(a);return c&&d?Ti(a,b):d?_.Si(b)===d&&(Number(_.Ri(b)[4]||null)||null)===(Number(_.Ri(a)[4]||null)||null):!0};
_.loa=function(a){a=koa(a);return a===null?!1:a[0]==="com"&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
koa=function(a){a=_.Si(a);return a!==null?a.split(".").reverse():null};
doa=function(a){return a&&a.match(moa)?a:Wi(a)};
_.Xi=function(a){return new noa(a)};
_.v=function(){ooa||(ooa=new poa);return ooa};
roa=function(a){var b=_.Yi,c,d;_.l(function(e){c=_.v();return(d=c.resolve(_.Xi(b)))?(a(d),e.return(Promise.resolve(d))):e.return(c.resolve(new qoa(b)).then(function(g){a(g);return g}))})};
_.w=function(a){a=Zi(a);return typeof a==="string"&&a==="false"?!1:!!a};
_.$i=function(a,b){a=Zi(a);return a===void 0&&b!==void 0?b:Number(a||0)};
soa=function(a){a=Zi(a);return Array.isArray(a)?_.Df(a,function(b){return Number(b||0)}):[Number(a||0)]};
_.aj=function(a){a=Zi(a);return a!==void 0?String(a):""};
_.bj=function(a){a=Zi(a);return Array.isArray(a)?_.Df(a,function(b){return String(b||"")}):[String(a||"")]};
toa=function(){return _.Fi("EXPERIMENTS_TOKEN","")};
Zi=function(a){return _.Fi("EXPERIMENT_FLAGS",{})[a]};
uoa=function(){for(var a=[],b=_.Fi("EXPERIMENTS_FORCED_FLAGS",{}),c=_.h(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.push({key:d,value:String(b[d])});c=_.Fi("EXPERIMENT_FLAGS",{});d=_.h(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};
woa=function(){if(!voa)return null;var a=voa();return"open"in a?a:null};
xoa=function(a){switch(cj(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
cj=function(a){return a&&"status"in a?a.status:-1};
_.dj=function(a,b){typeof a==="function"&&(a=_.Ii(a));return window.setTimeout(a,b)};
_.ej=function(a,b){typeof a==="function"&&(a=_.Ii(a));return window.setInterval(a,b)};
_.fj=function(a){window.clearTimeout(a)};
zoa=function(a){a=_.Oi(a);for(var b=_.h(yoa),c=b.next();!c.done;c=b.next())if(a[c.value]!==void 0)return!0;return!1};
Coa=function(a,b,c,d,e,g,k,m){c=c===void 0?"GET":c;d=d===void 0?"":d;m=m===void 0?!1:m;var n=woa();if(!n)return null;var r=function(){(n&&"readyState"in n?n.readyState:0)===4&&b&&_.Ii(b)(n)};
"onloadend"in n?n.addEventListener("loadend",r,!1):n.onreadystatechange=r;_.w("debug_forward_web_query_parameters")&&(a=Aoa(a,window.location.search));n.open(c,a,!0);g&&(n.responseType=g);k&&(n.withCredentials=!0);c=c==="POST"&&(window.FormData===void 0||!(d instanceof FormData));if(e=Boa(a,e))for(var t in e)n.setRequestHeader(t,e[t]),"content-type"===t.toLowerCase()&&(c=!1);c&&n.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(m&&"setAttributionReporting"in XMLHttpRequest.prototype){a=
{eventSourceEligible:!0,triggerEligible:!1};try{n.setAttributionReporting(a)}catch(u){_.Ki(u)}}n.send(d);return n};
Boa=function(a,b){b=b===void 0?{}:b;var c=Ui(a),d=_.Fi("INNERTUBE_CLIENT_NAME"),e=_.w("web_ajax_ignore_global_headers_if_set"),g;for(g in Doa){var k=_.Fi(Doa[g]),m=g==="X-Goog-AuthUser"||g==="X-Goog-PageId";g!=="X-Goog-Visitor-Id"||k||(k=_.Fi("VISITOR_DATA"));var n;if(!(n=!k)){if(!(n=c||(_.Si(a)?!1:!0))){n=a;var r;if(r=_.w("add_auth_headers_to_remarketing_google_dot_com_ping")&&g==="Authorization"&&(d==="TVHTML5"||d==="TVHTML5_UNPLUGGED"||d==="TVHTML5_SIMPLY"))r=koa(n),r=r===null?!1:r[1]==="google"?
!0:r[2]==="google"?r[0]==="au"&&r[1]==="com"?!0:r[0]==="uk"&&r[1]==="co"?!0:!1:!1;r&&(n=_.gj(n)||"",n=n.split("/"),n="/"+(n.length>1?n[1]:""),r=n==="/pagead");n=r?!0:!1}n=!n}n||e&&b[g]!==void 0||d==="TVHTML5_UNPLUGGED"&&m||(b[g]=k)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||!_.Si(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!_.Si(a)){try{var t=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(u){}t&&(b["X-YouTube-Time-Zone"]=
t)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&_.Si(a)||(b["X-YouTube-Ad-Signals"]=hoa(Eoa()));return b};
_.Foa=function(a,b){var c=_.Si(a);_.w("debug_handle_relative_url_for_query_forward_killswitch")||!c&&Ui(a)&&(c=document.location.hostname);var d=_.gj(a);d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=_.Ni(b),g={};_.Mi(yoa,function(k){e[k]&&(g[k]=e[k])});
return joa(a,g)};
Goa=function(a,b){b.method="POST";b.postParams||(b.postParams={});return _.hj(a,b)};
Hoa=function(a,b){var c=_.Fi("XSRF_FIELD_NAME"),d;b.headers&&(d=b.headers["Content-Type"]);return!b.excludeXsrf&&(!_.Si(a)||b.withCredentials||_.Si(a)===document.location.hostname)&&b.method==="POST"&&(!d||d==="application/x-www-form-urlencoded")&&!(b.postParams&&b.postParams[c])};
_.hj=function(a,b){var c=b.format||"JSON";a=Ioa(a,b);var d=Joa(a,b),e=!1,g=Koa(a,function(n){if(!e){e=!0;m&&_.fj(m);var r=xoa(n),t=null,u=400<=n.status&&n.status<500,x=500<=n.status&&n.status<600;if(r||u||x)t=Loa(a,c,n,b.convertToSafeHtml);r&&(r=Moa(c,n,t));t=t||{};u=b.context||_.ja;r?b.onSuccess&&b.onSuccess.call(u,n,t):b.onError&&b.onError.call(u,n,t);b.onFinish&&b.onFinish.call(u,n,t)}},b.method,d,b.headers,b.responseType,b.withCredentials);
d=b.timeout||0;if(b.onTimeout&&d>0){var k=b.onTimeout;var m=_.dj(function(){e||(e=!0,g.abort(),_.fj(m),k.call(b.context||_.ja,g))},d)}return g};
Ioa=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=_.Fi("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=_.Pi(a,b);return a};
Joa=function(a,b){var c=_.Fi("XSRF_FIELD_NAME"),d=_.Fi("XSRF_TOKEN"),e=b.postBody||"",g=b.postParams;Hoa(a,b)&&(g||(g={}),g[c]=d);(_.w("ajax_parse_query_data_only_when_filled")&&g&&Object.keys(g).length>0||g)&&typeof e==="string"&&(e=_.Ni(e),_.Cf.extend(e,g),e=b.postBodyFormat&&b.postBodyFormat==="JSON"?JSON.stringify(e):_.ij(e));g=e||g&&!_.Cf.isEmpty(g);!Noa&&g&&b.method!=="POST"&&(Noa=!0,_.Hi(Error("Jc")));return e};
Loa=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var g=c.responseText}catch(k){throw d=Error("Kc"),d.params=a,_.Ki(d),k;}a=c.getResponseHeader("Content-Type")||"";g&&a.indexOf("json")>=0&&(g.substring(0,5)===")]}'\n"&&(g=g.substring(5)),e=JSON.parse(g));break;case "XML":if(a=(a=c.responseXML)?Ooa(a):null)e={},_.Mi(a.getElementsByTagName("*"),function(k){e[k.tagName]=Poa(k)})}d&&Qoa(e);
return e};
Qoa=function(a){if(_.Za(a))for(var b in a)b==="html_content"||oa(b,"_html")?a[b]=Qd(a[b]):Qoa(a[b])};
Moa=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}};
Ooa=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&a.length>0?a[0]:null:null};
Poa=function(a){var b="";_.Mi(a.childNodes,function(c){b+=c.nodeValue});
return b};
Roa=function(a){if(a.name==="JavaException")return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
_.jj=function(a){_.vg.call(this);this.JSC$8275_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!a};
Toa=function(a,b){var c=a.length,d=0,e=function(){return a.charCodeAt(d++)};
do{var g=Soa(e);if(g===Infinity)break;var k=g>>3;switch(g&7){case 0:g=Soa(e);if(k===b)return g;break;case 1:if(k===b)return;d+=8;break;case 2:g=Soa(e);if(k===b)return a.substr(d,g);d+=g;break;case 5:if(k===b)return;d+=4;break;default:return}}while(d<c)};
Soa=function(a){var b=a(),c=b&127;if(b<128)return c;b=a();c|=(b&127)<<7;if(b<128)return c;b=a();c|=(b&127)<<14;if(b<128)return c;b=a();return b<128?c|(b&127)<<21:Infinity};
Voa=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=Uoa(d,a[d],b,c),e>500));d++);d=e}else if(typeof a==="object")for(e in a){if(a[e]){var g=e;var k=a[e],m=b,n=c;g=typeof k!=="string"||g!=="clickTrackingParams"&&g!=="trackingParams"?0:(k=Toa(atob(k.replace(/-/g,"+").replace(/_/g,"/")),2))?Uoa(g+".ve",k,m,n):0;d+=g;d+=Uoa(e,a[e],b,c);if(d>500)break}}else c[b]=kj(a),d+=c[b].length;else c[b]=kj(a),d+=c[b].length;return d};
Uoa=function(a,b,c,d){c+="."+a;a=kj(b);d[c]=a;return c.length+a.length};
kj=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+")"}};
Woa=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}};
_.mj=function(a,b,c,d,e){_.lj.set(a,b,{maxAge:c,path:"/",domain:d===void 0?"youtube.com":d,secure:e===void 0?!1:e})};
_.Xoa=function(a,b,c){_.lj.remove(a,b===void 0?"/":b,c===void 0?"youtube.com":c)};
_.nj=function(){if(_.w("embeds_web_enable_cookie_detection_fix")){if(!_.ja.navigator.cookieEnabled)return!1}else if(!_.lj.isEnabled())return!1;if(!_.lj.isEmpty())return!0;_.w("embeds_web_enable_cookie_detection_fix")?_.lj.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.lj.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.lj.get("TESTCOOKIESENABLED")!=="1")return!1;_.lj.remove("TESTCOOKIESENABLED");return!0};
Yoa=function(){var a=_.ja.navigator;return a?a.connection:void 0};
Zoa=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(a){}};
_.apa=function(){var a=Yoa();if(a){var b=$oa[a.type||"unknown"]||"CONN_UNKNOWN";a=$oa[a.effectiveType||"unknown"]||"CONN_UNKNOWN";b==="CONN_CELLULAR_UNKNOWN"&&a!=="CONN_UNKNOWN"&&(b=a);if(b!=="CONN_UNKNOWN")return b;if(a!=="CONN_UNKNOWN")return a}};
cpa=function(){var a=Yoa();if(a!=null&&a.effectiveType)return bpa.hasOwnProperty(a.effectiveType)?bpa[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.pj=function(){try{return _.oj(),!0}catch(a){return!1}};
_.oj=function(a){if(_.Fi("DATASYNC_ID")!==void 0)return _.Fi("DATASYNC_ID");throw new _.qj("Datasync ID not set",a===void 0?"unknown":a);};
_.rj=function(a){this.mechanism=a};
sj=function(a){this.mechanism=a};
tj=function(a){this.storage_=a;this.cachedIsStorageAvailable_=null};
dpa=function(){var a=null;try{a=_.ja.localStorage||null}catch(b){}tj.call(this,a)};
epa=function(){var a=null;try{a=_.ja.sessionStorage||null}catch(b){}tj.call(this,a)};
uj=function(a,b){this.mechanism_=a;this.JSC$8377_prefix_=b+"::"};
_.fpa=function(a){var b=new dpa;return b.isAvailable()?a?new uj(b,a):b:null};
_.gpa=function(a){var b=new epa;return b.isAvailable()?a?new uj(b,a):b:null};
ipa=function(){var a;return(a=hpa())==null?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
_.xj=function(a){jpa||(_.vj?_.vj.logError(a):(_.wj.push({type:"ERROR",payload:a}),_.wj.length>10&&_.wj.shift()))};
yj=function(a,b){jpa||(_.vj?_.vj.logEvent(a,b):(_.wj.push({type:"EVENT",eventType:a,payload:b}),_.wj.length>10&&_.wj.shift()))};
zj=function(a){if(a.indexOf(":")>=0)throw Error("Rc");};
Aj=function(a){return a.substr(0,a.indexOf(":"))||a};
mpa=function(){return(kpa||lpa)&&Bj("applewebkit")&&!Bj("version")&&(!Bj("safari")||Bj("gsa/"))};
Bj=function(a){var b=_.ua();return b?b.toLowerCase().indexOf(a)>=0:!1};
ppa=function(a,b,c,d){b=Aj(b);var e=a instanceof Error?a:Error("Sc`"+a);if(e instanceof Cj)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if(e.name==="QuotaExceededError")return new Cj("QUOTA_EXCEEDED",a);if(_.Dj&&e.name==="UnknownError")return new Cj("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof npa)return new Cj("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if(e.name==="InvalidStateError"&&opa.some(function(g){return e.message.includes(g)}))return new Cj("EXECUTE_TRANSACTION_ON_CLOSED_DB",
a);
if(e.name==="AbortError")return new Cj("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",originalName:e.name})];e.level="WARNING";return e};
Ej=function(a,b,c){var d=ipa();return new Cj("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:d==null?void 0:d.hasSucceededOnce}})};
qpa=function(a){if(!a)throw Error();throw a;};
rpa=function(a){return a};
spa=function(a,b,c){var d=function(){try{a.removeEventListener("success",e),a.removeEventListener("error",g)}catch(k){}},e=function(){b(a.result);
d()},g=function(){c(a.error);
d()};
a.addEventListener("success",e);a.addEventListener("error",g)};
tpa=function(a){return new Promise(function(b,c){spa(a,b,c)})};
Hj=function(a){return new Fj(new Gj(function(b,c){spa(a,b,c)}))};
upa=function(a,b){return new Fj(new Gj(function(c,d){var e=function(){var g=a?b(a):null;g?g.then(function(k){a=k;e()},d):c()};
e()}))};
wpa=function(a,b,c){return new Promise(function(d,e){var g=b!==void 0?self.indexedDB.open(a,b):self.indexedDB.open(a);var k=c.blocked,m=c.blocking,n=c.terminated,r=c.upgrade,t=c.closed,u,x=function(){u||(u=new Ij(g.result,{closed:t}));return u};
g.addEventListener("upgradeneeded",function(A){try{if(A.newVersion===null)throw Error("Xc");if(g.transaction===null)throw Error("Yc");A.dataLoss&&A.dataLoss!=="none"&&yj("IDB_DATA_CORRUPTED",{reason:A.dataLossMessage||"unknown reason",dbName:Aj(a)});var C=x(),F=new vpa(g.transaction);r&&r(C,function(J){return A.oldVersion<J&&A.newVersion>=J},F);
F.done.catch(function(J){e(J)})}catch(J){e(J)}});
g.addEventListener("success",function(){var A=g.result;m&&A.addEventListener("versionchange",function(){m(x())});
A.addEventListener("close",function(){yj("IDB_UNEXPECTEDLY_CLOSED",{dbName:Aj(a),dbVersion:A.version});n&&n()});
d(x())});
g.addEventListener("error",function(){e(g.error)});
k&&g.addEventListener("blocked",function(){k()})})};
xpa=function(a,b,c){c=c===void 0?{}:c;return wpa(a,b,c)};
_.Kj=function(a,b){b=b===void 0?{}:b;var c,d,e,g;return _.l(function(k){if(k.nextAddress==1)return _.pe(k,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),_.p(k,tpa(c),4);
if(k.nextAddress!=2)return _.Jj(k,0);g=_.te(k);throw ppa(g,a,"",-1);})};
zpa=function(a,b){var c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,_.Lj(ypa,b),2);c=d.yieldResult;return d.return(_.Mj(c,["databases"],{enableRetries:!0,mode:"readwrite"},function(e){var g=e.objectStore("databases");return g.get(a.actualName).then(function(k){if(k?a.actualName!==k.actualName||a.publicName!==k.publicName||a.userIdentifier!==k.userIdentifier:1)return g.put(a).then(function(){})})}))})};
_.Nj=function(a,b){var c;return _.l(function(d){if(d.nextAddress==1)return a?_.p(d,_.Lj(ypa,b),2):d.return();c=d.yieldResult;return d.return(c.delete("databases",a))})};
_.Apa=function(a,b){var c,d;return _.l(function(e){return e.nextAddress==1?(c=[],_.p(e,_.Lj(ypa,b),2)):e.nextAddress!=3?(d=e.yieldResult,_.p(e,_.Mj(d,["databases"],{enableRetries:!0,mode:"readonly"},function(g){c.length=0;return Oj(g.objectStore("databases"),{},function(k){a(k.getValue())&&c.push(k.getValue());return k.continue()})}),3)):e.return(c)})};
Bpa=function(a,b){return _.Apa(function(c){return c.publicName===a&&c.userIdentifier!==void 0},b)};
Epa=function(){var a,b,c,d;return _.l(function(e){switch(e.nextAddress){case 1:a=ipa();if((b=a)==null?0:b.hasSucceededOnce)return e.return(!0);var g;if(g=Cpa)g=/WebKit\/([0-9]+)/.exec(_.ua()),g=!!(g&&parseInt(g[1],10)>=600);g&&(g=/WebKit\/([0-9]+)/.exec(_.ua()),g=!(g&&parseInt(g[1],10)>=602));if(g||_.Pj)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(k){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1);
_.pe(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.p(e,zpa(d,Dpa),4);case 4:return _.p(e,_.Nj("yt-idb-test-do-not-use",Dpa),5);case 5:return e.return(!0);case 2:return _.te(e),e.return(!1)}})};
Gpa=function(){if(Fpa!==void 0)return Fpa;jpa=!0;return Fpa=Epa().then(function(a){jpa=!1;var b;if((b=hpa())!=null&&b.expiringStorage_){var c;b={hasSucceededOnce:((c=ipa())==null?void 0:c.hasSucceededOnce)||a};var d;(d=hpa())==null||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})};
Qj=function(){return _.Ji("ytglobal.idbToken_")||void 0};
_.Sj=function(){var a=Qj();return a?Promise.resolve(a):Gpa().then(function(b){(b=b?Dpa:void 0)&&_.Rj("ytglobal.idbToken_",b);return b})};
Hpa=function(a){if(!_.pj())throw a=new Cj("AUTH_INVALID",{dbName:a}),_.xj(a),a;var b=_.oj();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
Ipa=function(a,b,c,d){var e,g,k,m,n,r;return _.l(function(t){switch(t.nextAddress){case 1:return g=(e=Error().stack)!=null?e:"",_.p(t,_.Sj(),2);case 2:k=t.yieldResult;if(!k)throw m=Ej("openDbImpl",a,b),_.w("ytidb_async_stack_killswitch")||(m.stack=m.stack+"\n"+g.substring(g.indexOf("\n")+1)),_.xj(m),m;zj(a);n=c?{actualName:a,publicName:a,userIdentifier:void 0}:Hpa(a);_.pe(t,3);return _.p(t,zpa(n,k),5);case 5:return _.p(t,xpa(n.actualName,b,d),6);case 6:return t.return(t.yieldResult);case 3:return r=
_.te(t),_.pe(t,7),_.p(t,_.Nj(n.actualName,k),9);case 9:_.Jj(t,8);break;case 7:_.te(t);case 8:throw r;}})};
Jpa=function(a,b,c){c=c===void 0?{}:c;return Ipa(a,b,!1,c)};
Kpa=function(a,b,c){c=c===void 0?{}:c;return Ipa(a,b,!0,c)};
Lpa=function(a,b){b=b===void 0?{}:b;var c,d;return _.l(function(e){if(e.nextAddress==1)return _.p(e,_.Sj(),2);if(e.nextAddress!=3){c=e.yieldResult;if(!c)return e.return();zj(a);d=Hpa(a);return _.p(e,_.Kj(d.actualName,b),3)}return _.p(e,_.Nj(d.actualName,c),0)})};
Mpa=function(a,b,c){a=a.map(function(d){return _.l(function(e){return e.nextAddress==1?_.p(e,_.Kj(d.actualName,b),2):_.p(e,_.Nj(d.actualName,c),0)})});
return Promise.all(a).then(function(){})};
Npa=function(a){var b=b===void 0?{}:b;var c,d;return _.l(function(e){if(e.nextAddress==1)return _.p(e,_.Sj(),2);if(e.nextAddress!=3){c=e.yieldResult;if(!c)return e.return();zj(a);return _.p(e,Bpa(a,c),3)}d=e.yieldResult;return _.p(e,Mpa(d,b,c),0)})};
Opa=function(a,b){b=b===void 0?{}:b;var c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,_.Sj(),2);if(d.nextAddress!=3){c=d.yieldResult;if(!c)return d.return();zj(a);return _.p(d,_.Kj(a,b),3)}return _.p(d,_.Nj(a,c),0)})};
Tj=function(a,b){return Ppa(a,b)};
Rpa=function(a){return _.Lj(Qpa(),a)};
Spa=function(a,b,c,d){var e,g,k;return _.l(function(m){switch(m.nextAddress){case 1:return e={config:a,hashData:b,timestamp:d!==void 0?d:(0,_.Uj)()},_.p(m,Rpa(c),2);case 2:return g=m.yieldResult,_.p(m,g.clear("hotConfigStore"),3);case 3:return _.p(m,g.put("hotConfigStore",e),4);case 4:return k=m.yieldResult,m.return(k)}})};
Tpa=function(a,b,c,d,e){var g,k,m;return _.l(function(n){switch(n.nextAddress){case 1:return g={config:a,hashData:b,configData:c,timestamp:e!==void 0?e:(0,_.Uj)()},_.p(n,Rpa(d),2);case 2:return k=n.yieldResult,_.p(n,k.clear("coldConfigStore"),3);case 3:return _.p(n,k.put("coldConfigStore",g),4);case 4:return m=n.yieldResult,n.return(m)}})};
Upa=function(a){var b,c;return _.l(function(d){return d.nextAddress==1?_.p(d,Rpa(a),2):d.nextAddress!=3?(b=d.yieldResult,c=void 0,_.p(d,_.Mj(b,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(e){return _.Vj(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(g){c=g.getValue()})}),3)):d.return(c)})};
Vpa=function(a){var b,c;return _.l(function(d){return d.nextAddress==1?_.p(d,Rpa(a),2):d.nextAddress!=3?(b=d.yieldResult,c=void 0,_.p(d,_.Mj(b,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(e){return _.Vj(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(g){c=g.getValue()})}),3)):d.return(c)})};
Wpa=function(){return _.l(function(a){return _.p(a,Npa("ytGcfConfig"),0)})};
Xpa=function(){return"INNERTUBE_API_KEY"in _.Di&&"INNERTUBE_API_VERSION"in _.Di};
_.Wj=function(){return{innertubeApiKey:_.Fi("INNERTUBE_API_KEY"),innertubeApiVersion:_.Fi("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.Fi("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.Fi("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.Fi("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.Fi("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.Fi("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.Fi("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.Fi("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.Gi("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.Gi("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.Fi("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.dqa=function(a){var b={client:{hl:a.innertubeContextHostLanguage,gl:a.innertubeContextGeoLocation,clientName:a.innertubeContextClientName,clientVersion:a.innertubeContextClientVersion,configInfo:a.innertubeContextClientConfigInfo}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=_.ja.devicePixelRatio;c&&c!=1&&(b.client.screenDensityFloat=String(c));c=toa();c!==""&&(b.client.experimentsToken=c);c=uoa();c.length>0&&(b.request={internalExperimentFlags:c});Ypa(a,void 0,b);
Zpa(void 0,b);$pa(void 0,b);aqa(a,void 0,b);bqa(void 0,b);_.w("start_client_gcf")&&cqa(void 0,b);_.Fi("DELEGATED_SESSION_ID")&&!_.w("pageid_as_header_web")&&(b.user={onBehalfOfUser:_.Fi("DELEGATED_SESSION_ID")});!_.w("fill_delegate_context_in_gel_killswitch")&&(a=_.Fi("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(b.user=Object.assign({},b.user,{serializedDelegationContext:a}));a=_.Fi("INNERTUBE_CONTEXT");var d;if(_.w("enable_persistent_device_token")&&(a==null?0:(d=a.client)==null?0:d.rolloutToken)){var e;
b.client.rolloutToken=a==null?void 0:(e=a.client)==null?void 0:e.rolloutToken}d=Object;e=d.assign;a=b.client;c={};for(var g=_.h(Object.entries(_.Ni(_.Fi("DEVICE","")))),k=g.next();!k.done;k=g.next()){var m=_.h(k.value);k=m.next().value;m=m.next().value;k==="cbrand"?c.deviceMake=m:k==="cmodel"?c.deviceModel=m:k==="cbr"?c.browserName=m:k==="cbrver"?c.browserVersion=m:k==="cos"?c.osName=m:k==="cosver"?c.osVersion=m:k==="cplatform"&&(c.platform=m)}b.client=e.call(d,a,c);return b};
Ypa=function(a,b,c){a=a.innertubeContextClientName;if(a==="WEB"||a==="MWEB"||a===1||a===2)if(b){c=_.Xj(b,eqa,96)||new eqa;var d=fqa();d=Object.keys(gqa).indexOf(d);d=d===-1?null:d;d!==null&&_.Yj(c,3,d);_.qd(b,96,c)}else c&&(c.client.mainAppWebInfo=(d=c.client.mainAppWebInfo)!=null?d:{},c.client.mainAppWebInfo.webDisplayMode=fqa())};
Zpa=function(a,b){var c=_.Ji("yt.embedded_player.embed_url");c&&(a?(b=_.Xj(a,hqa,7)||new hqa,_.vf(b,4,c),_.qd(a,7,b)):b&&(b.thirdParty={embedUrl:c}))};
$pa=function(a,b){var c;if(_.w("web_log_memory_total_kbytes")&&((c=_.ja.navigator)==null?0:c.deviceMemory)){var d;c=(d=_.ja.navigator)==null?void 0:d.deviceMemory;a?_.Zj(a,95,jc(c*1E6)):b&&(b.client.memoryTotalKbytes=""+c*1E6)}};
aqa=function(a,b,c){if(a.appInstallData)if(b){var d;c=(d=_.Xj(b,ak,62))!=null?d:new ak;_.vf(c,6,a.appInstallData);_.qd(b,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)};
bqa=function(a,b){var c=_.apa();c&&(a?_.Yj(a,61,iqa[c]):b&&(b.client.connectionType=c));_.w("web_log_effective_connection_type")&&(c=cpa())&&(a?_.Yj(a,94,jqa[c]):b&&(b.client.effectiveConnectionType=c))};
_.mqa=function(a,b,c){c=c===void 0?{}:c;var d={};_.Fi("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":_.Fi("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||_.Fi("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;b=c.authorization||_.Fi("AUTHORIZATION");b||(a?b="Bearer "+_.Ji("gapi.auth.getToken")().access_token:(kqa.instance||(kqa.instance=new kqa),a=lqa(),_.w("pageid_as_header_web")||delete a["X-Goog-PageId"],d=Object.assign({},d,a)));b&&(d.Authorization=b);return d};
cqa=function(a,b){var c=nqa();if(c){var d=c.coldConfigData,e=c.coldHashData;c=c.hotHashData;if(a){var g;b=(g=_.Xj(a,ak,62))!=null?g:new ak;d=_.vf(b,1,d);_.vf(d,3,e).setHotHashData(c);_.qd(a,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))}};
bk=function(a){for(var b=a.length;--b>=0;)a[b]=0};
oqa=function(a,b,c,d,e){this.static_tree=a;this.extra_bits=b;this.extra_base=c;this.elems=d;this.max_length=e;this.has_stree=a&&a.length};
pqa=function(a,b){this.dyn_tree=a;this.max_code=0;this.stat_desc=b};
ck=function(a,b){a.pending_buf[a.pending++]=b&255;a.pending_buf[a.pending++]=b>>>8&255};
dk=function(a,b,c){a.bi_valid>16-c?(a.bi_buf|=b<<a.bi_valid&65535,ck(a,a.bi_buf),a.bi_buf=b>>16-a.bi_valid,a.bi_valid+=c-16):(a.bi_buf|=b<<a.bi_valid&65535,a.bi_valid+=c)};
ek=function(a,b,c){dk(a,c[b*2],c[b*2+1])};
qqa=function(a,b){var c=0;do c|=a&1,a>>>=1,c<<=1;while(--b>0);return c>>>1};
rqa=function(a,b,c){var d=Array(16),e=0,g;for(g=1;g<=15;g++)d[g]=e=e+c[g-1]<<1;for(c=0;c<=b;c++)e=a[c*2+1],e!==0&&(a[c*2]=qqa(d[e]++,e))};
sqa=function(a){var b;for(b=0;b<286;b++)a.dyn_ltree[b*2]=0;for(b=0;b<30;b++)a.dyn_dtree[b*2]=0;for(b=0;b<19;b++)a.bl_tree[b*2]=0;a.dyn_ltree[512]=1;a.opt_len=a.static_len=0;a.last_lit=a.matches=0};
tqa=function(a){a.bi_valid>8?ck(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a.pending++]=a.bi_buf);a.bi_buf=0;a.bi_valid=0};
uqa=function(a,b,c){tqa(a);ck(a,c);ck(a,~c);fk.arraySet(a.pending_buf,a.window,b,c,a.pending);a.pending+=c};
vqa=function(a,b,c,d){var e=b*2,g=c*2;return a[e]<a[g]||a[e]===a[g]&&d[b]<=d[c]};
wqa=function(a,b,c){for(var d=a.heap[c],e=c<<1;e<=a.heap_len;){e<a.heap_len&&vqa(b,a.heap[e+1],a.heap[e],a.depth)&&e++;if(vqa(b,d,a.heap[e],a.depth))break;a.heap[c]=a.heap[e];c=e;e<<=1}a.heap[c]=d};
Bqa=function(a,b,c){var d=0;if(a.last_lit!==0){do{var e=a.pending_buf[a.d_buf+d*2]<<8|a.pending_buf[a.d_buf+d*2+1];var g=a.pending_buf[a.l_buf+d];d++;if(e===0)ek(a,g,b);else{var k=gk[g];ek(a,k+256+1,b);var m=xqa[k];m!==0&&(g-=yqa[k],dk(a,g,m));e--;k=e<256?hk[e]:hk[256+(e>>>7)];ek(a,k,c);m=zqa[k];m!==0&&(e-=Aqa[k],dk(a,e,m))}}while(d<a.last_lit)}ek(a,256,b)};
Cqa=function(a,b){var c=b.dyn_tree,d=b.stat_desc.static_tree,e=b.stat_desc.has_stree,g=b.stat_desc.elems,k,m=-1;a.heap_len=0;a.heap_max=573;for(k=0;k<g;k++)c[k*2]!==0?(a.heap[++a.heap_len]=m=k,a.depth[k]=0):c[k*2+1]=0;for(;a.heap_len<2;){var n=a.heap[++a.heap_len]=m<2?++m:0;c[n*2]=1;a.depth[n]=0;a.opt_len--;e&&(a.static_len-=d[n*2+1])}b.max_code=m;for(k=a.heap_len>>1;k>=1;k--)wqa(a,c,k);n=g;do k=a.heap[1],a.heap[1]=a.heap[a.heap_len--],wqa(a,c,1),d=a.heap[1],a.heap[--a.heap_max]=k,a.heap[--a.heap_max]=
d,c[n*2]=c[k*2]+c[d*2],a.depth[n]=(a.depth[k]>=a.depth[d]?a.depth[k]:a.depth[d])+1,c[k*2+1]=c[d*2+1]=n,a.heap[1]=n++,wqa(a,c,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1];k=b.dyn_tree;n=b.max_code;d=b.stat_desc.static_tree;e=b.stat_desc.has_stree;g=b.stat_desc.extra_bits;var r=b.stat_desc.extra_base,t=b.stat_desc.max_length,u,x=0;for(u=0;u<=15;u++)a.bl_count[u]=0;k[a.heap[a.heap_max]*2+1]=0;for(b=a.heap_max+1;b<573;b++){var A=a.heap[b];u=k[k[A*2+1]*2+1]+1;u>t&&(u=t,x++);k[A*2+1]=u;if(!(A>
n)){a.bl_count[u]++;var C=0;A>=r&&(C=g[A-r]);var F=k[A*2];a.opt_len+=F*(u+C);e&&(a.static_len+=F*(d[A*2+1]+C))}}if(x!==0){do{for(u=t-1;a.bl_count[u]===0;)u--;a.bl_count[u]--;a.bl_count[u+1]+=2;a.bl_count[t]--;x-=2}while(x>0);for(u=t;u!==0;u--)for(A=a.bl_count[u];A!==0;)d=a.heap[--b],d>n||(k[d*2+1]!==u&&(a.opt_len+=(u-k[d*2+1])*k[d*2],k[d*2+1]=u),A--)}rqa(c,m,a.bl_count)};
Dqa=function(a,b,c){var d,e=-1,g=b[1],k=0,m=7,n=4;g===0&&(m=138,n=3);b[(c+1)*2+1]=65535;for(d=0;d<=c;d++){var r=g;g=b[(d+1)*2+1];++k<m&&r===g||(k<n?a.bl_tree[r*2]+=k:r!==0?(r!==e&&a.bl_tree[r*2]++,a.bl_tree[32]++):k<=10?a.bl_tree[34]++:a.bl_tree[36]++,k=0,e=r,g===0?(m=138,n=3):r===g?(m=6,n=3):(m=7,n=4))}};
Eqa=function(a,b,c){var d,e=-1,g=b[1],k=0,m=7,n=4;g===0&&(m=138,n=3);for(d=0;d<=c;d++){var r=g;g=b[(d+1)*2+1];if(!(++k<m&&r===g)){if(k<n){do ek(a,r,a.bl_tree);while(--k!==0)}else r!==0?(r!==e&&(ek(a,r,a.bl_tree),k--),ek(a,16,a.bl_tree),dk(a,k-3,2)):k<=10?(ek(a,17,a.bl_tree),dk(a,k-3,3)):(ek(a,18,a.bl_tree),dk(a,k-11,7));k=0;e=r;g===0?(m=138,n=3):r===g?(m=6,n=3):(m=7,n=4)}}};
Fqa=function(a){var b=4093624447,c;for(c=0;c<=31;c++,b>>>=1)if(b&1&&a.dyn_ltree[c*2]!==0)return 0;if(a.dyn_ltree[18]!==0||a.dyn_ltree[20]!==0||a.dyn_ltree[26]!==0)return 1;for(c=32;c<256;c++)if(a.dyn_ltree[c*2]!==0)return 1;return 0};
ik=function(a,b,c){a.pending_buf[a.d_buf+a.last_lit*2]=b>>>8&255;a.pending_buf[a.d_buf+a.last_lit*2+1]=b&255;a.pending_buf[a.l_buf+a.last_lit]=c&255;a.last_lit++;b===0?a.dyn_ltree[c*2]++:(a.matches++,b--,a.dyn_ltree[(gk[c]+256+1)*2]++,a.dyn_dtree[(b<256?hk[b]:hk[256+(b>>>7)])*2]++);return a.last_lit===a.lit_bufsize-1};
kk=function(a,b){a.msg=jk[b];return b};
lk=function(a){for(var b=a.length;--b>=0;)a[b]=0};
nk=function(a){var b=a.state,c=b.pending;c>a.avail_out&&(c=a.avail_out);c!==0&&(fk.arraySet(a.output,b.pending_buf,b.pending_out,c,a.next_out),a.next_out+=c,b.pending_out+=c,a.total_out+=c,a.avail_out-=c,b.pending-=c,b.pending===0&&(b.pending_out=0))};
qk=function(a,b){var c=a.block_start>=0?a.block_start:-1,d=a.strstart-a.block_start,e=0;if(a.level>0){a.strm.data_type===2&&(a.strm.data_type=Fqa(a));Cqa(a,a.l_desc);Cqa(a,a.d_desc);Dqa(a,a.dyn_ltree,a.l_desc.max_code);Dqa(a,a.dyn_dtree,a.d_desc.max_code);Cqa(a,a.bl_desc);for(e=18;e>=3&&a.bl_tree[Gqa[e]*2+1]===0;e--);a.opt_len+=3*(e+1)+5+5+4;var g=a.opt_len+3+7>>>3;var k=a.static_len+3+7>>>3;k<=g&&(g=k)}else g=k=d+5;if(d+4<=g&&c!==-1)dk(a,b?1:0,3),uqa(a,c,d);else if(a.strategy===4||k===g)dk(a,2+(b?
1:0),3),Bqa(a,ok,pk);else{dk(a,4+(b?1:0),3);c=a.l_desc.max_code+1;d=a.d_desc.max_code+1;e+=1;dk(a,c-257,5);dk(a,d-1,5);dk(a,e-4,4);for(g=0;g<e;g++)dk(a,a.bl_tree[Gqa[g]*2+1],3);Eqa(a,a.dyn_ltree,c-1);Eqa(a,a.dyn_dtree,d-1);Bqa(a,a.dyn_ltree,a.dyn_dtree)}sqa(a);b&&tqa(a);a.block_start=a.strstart;nk(a.strm)};
sk=function(a,b){a.pending_buf[a.pending++]=b};
tk=function(a,b){a.pending_buf[a.pending++]=b>>>8&255;a.pending_buf[a.pending++]=b&255};
Hqa=function(a,b){var c=a.max_chain_length,d=a.strstart,e=a.prev_length,g=a.nice_match,k=a.strstart>a.w_size-262?a.strstart-(a.w_size-262):0,m=a.window,n=a.w_mask,r=a.prev,t=a.strstart+258,u=m[d+e-1],x=m[d+e];a.prev_length>=a.good_match&&(c>>=2);g>a.lookahead&&(g=a.lookahead);do{var A=b;if(m[A+e]===x&&m[A+e-1]===u&&m[A]===m[d]&&m[++A]===m[d+1]){d+=2;for(A++;m[++d]===m[++A]&&m[++d]===m[++A]&&m[++d]===m[++A]&&m[++d]===m[++A]&&m[++d]===m[++A]&&m[++d]===m[++A]&&m[++d]===m[++A]&&m[++d]===m[++A]&&d<t;);
A=258-(t-d);d=t-258;if(A>e){a.match_start=b;e=A;if(A>=g)break;u=m[d+e-1];x=m[d+e]}}}while((b=r[b&n])>k&&--c!==0);return e<=a.lookahead?e:a.lookahead};
vk=function(a){var b=a.w_size,c;do{var d=a.window_size-a.lookahead-a.strstart;if(a.strstart>=b+(b-262)){fk.arraySet(a.window,a.window,b,b,0);a.match_start-=b;a.strstart-=b;a.block_start-=b;var e=c=a.hash_size;do{var g=a.head[--e];a.head[e]=g>=b?g-b:0}while(--c);e=c=b;do g=a.prev[--e],a.prev[e]=g>=b?g-b:0;while(--c);d+=b}if(a.strm.avail_in===0)break;e=a.strm;c=a.window;g=a.strstart+a.lookahead;var k=e.avail_in;k>d&&(k=d);k===0?c=0:(e.avail_in-=k,fk.arraySet(c,e.input,e.next_in,k,g),e.state.wrap===
1?e.adler=Iqa(e.adler,c,k,g):e.state.wrap===2&&(e.adler=uk(e.adler,c,k,g)),e.next_in+=k,e.total_in+=k,c=k);a.lookahead+=c;if(a.lookahead+a.insert>=3)for(d=a.strstart-a.insert,a.ins_h=a.window[d],a.ins_h=(a.ins_h<<a.hash_shift^a.window[d+1])&a.hash_mask;a.insert&&!(a.ins_h=(a.ins_h<<a.hash_shift^a.window[d+3-1])&a.hash_mask,a.prev[d&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=d,d++,a.insert--,a.lookahead+a.insert<3););}while(a.lookahead<262&&a.strm.avail_in!==0)};
Jqa=function(a,b){for(var c;;){if(a.lookahead<262){vk(a);if(a.lookahead<262&&b===0)return 1;if(a.lookahead===0)break}c=0;a.lookahead>=3&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);c!==0&&a.strstart-c<=a.w_size-262&&(a.match_length=Hqa(a,c));if(a.match_length>=3)if(c=ik(a,a.strstart-a.match_start,a.match_length-3),a.lookahead-=a.match_length,a.match_length<=a.max_lazy_match&&a.lookahead>=3){a.match_length--;
do a.strstart++,a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart;while(--a.match_length!==0);a.strstart++}else a.strstart+=a.match_length,a.match_length=0,a.ins_h=a.window[a.strstart],a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+1])&a.hash_mask;else c=ik(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++;if(c&&(qk(a,!1),a.strm.avail_out===0))return 1}a.insert=a.strstart<2?a.strstart:2;return b===4?(qk(a,
!0),a.strm.avail_out===0?3:4):a.last_lit&&(qk(a,!1),a.strm.avail_out===0)?1:2};
wk=function(a,b){for(var c,d;;){if(a.lookahead<262){vk(a);if(a.lookahead<262&&b===0)return 1;if(a.lookahead===0)break}c=0;a.lookahead>=3&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);a.prev_length=a.match_length;a.prev_match=a.match_start;a.match_length=2;c!==0&&a.prev_length<a.max_lazy_match&&a.strstart-c<=a.w_size-262&&(a.match_length=Hqa(a,c),a.match_length<=5&&(a.strategy===1||a.match_length===3&&
a.strstart-a.match_start>4096)&&(a.match_length=2));if(a.prev_length>=3&&a.match_length<=a.prev_length){d=a.strstart+a.lookahead-3;c=ik(a,a.strstart-1-a.prev_match,a.prev_length-3);a.lookahead-=a.prev_length-1;a.prev_length-=2;do++a.strstart<=d&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);while(--a.prev_length!==0);a.match_available=0;a.match_length=2;a.strstart++;if(c&&(qk(a,!1),a.strm.avail_out===0))return 1}else if(a.match_available){if((c=
ik(a,0,a.window[a.strstart-1]))&&qk(a,!1),a.strstart++,a.lookahead--,a.strm.avail_out===0)return 1}else a.match_available=1,a.strstart++,a.lookahead--}a.match_available&&(ik(a,0,a.window[a.strstart-1]),a.match_available=0);a.insert=a.strstart<2?a.strstart:2;return b===4?(qk(a,!0),a.strm.avail_out===0?3:4):a.last_lit&&(qk(a,!1),a.strm.avail_out===0)?1:2};
Kqa=function(a,b){for(var c,d,e,g=a.window;;){if(a.lookahead<=258){vk(a);if(a.lookahead<=258&&b===0)return 1;if(a.lookahead===0)break}a.match_length=0;if(a.lookahead>=3&&a.strstart>0&&(d=a.strstart-1,c=g[d],c===g[++d]&&c===g[++d]&&c===g[++d])){for(e=a.strstart+258;c===g[++d]&&c===g[++d]&&c===g[++d]&&c===g[++d]&&c===g[++d]&&c===g[++d]&&c===g[++d]&&c===g[++d]&&d<e;);a.match_length=258-(e-d);a.match_length>a.lookahead&&(a.match_length=a.lookahead)}a.match_length>=3?(c=ik(a,1,a.match_length-3),a.lookahead-=
a.match_length,a.strstart+=a.match_length,a.match_length=0):(c=ik(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++);if(c&&(qk(a,!1),a.strm.avail_out===0))return 1}a.insert=0;return b===4?(qk(a,!0),a.strm.avail_out===0?3:4):a.last_lit&&(qk(a,!1),a.strm.avail_out===0)?1:2};
Lqa=function(a,b){for(var c;;){if(a.lookahead===0&&(vk(a),a.lookahead===0)){if(b===0)return 1;break}a.match_length=0;c=ik(a,0,a.window[a.strstart]);a.lookahead--;a.strstart++;if(c&&(qk(a,!1),a.strm.avail_out===0))return 1}a.insert=0;return b===4?(qk(a,!0),a.strm.avail_out===0?3:4):a.last_lit&&(qk(a,!1),a.strm.avail_out===0)?1:2};
xk=function(a,b,c,d,e){this.good_length=a;this.max_lazy=b;this.nice_length=c;this.max_chain=d;this.func=e};
Mqa=function(){this.strm=null;this.status=0;this.pending_buf=null;this.wrap=this.pending=this.pending_out=this.pending_buf_size=0;this.gzhead=null;this.gzindex=0;this.method=8;this.last_flush=-1;this.w_mask=this.w_bits=this.w_size=0;this.window=null;this.window_size=0;this.head=this.prev=null;this.nice_match=this.good_match=this.strategy=this.level=this.max_lazy_match=this.max_chain_length=this.prev_length=this.lookahead=this.match_start=this.strstart=this.match_available=this.prev_match=this.match_length=
this.block_start=this.hash_shift=this.hash_mask=this.hash_bits=this.hash_size=this.ins_h=0;this.dyn_ltree=new fk.Buf16(1146);this.dyn_dtree=new fk.Buf16(122);this.bl_tree=new fk.Buf16(78);lk(this.dyn_ltree);lk(this.dyn_dtree);lk(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new fk.Buf16(16);this.heap=new fk.Buf16(573);lk(this.heap);this.heap_max=this.heap_len=0;this.depth=new fk.Buf16(573);lk(this.depth);this.bi_valid=this.bi_buf=this.insert=this.matches=this.static_len=this.opt_len=
this.d_buf=this.last_lit=this.lit_bufsize=this.l_buf=0};
Nqa=function(a,b){if(!a||!a.state||b>5||b<0)return a?kk(a,-2):-2;var c=a.state;if(!a.output||!a.input&&a.avail_in!==0||c.status===666&&b!==4)return kk(a,a.avail_out===0?-5:-2);c.strm=a;var d=c.last_flush;c.last_flush=b;if(c.status===42)if(c.wrap===2)a.adler=0,sk(c,31),sk(c,139),sk(c,8),c.gzhead?(sk(c,(c.gzhead.text?1:0)+(c.gzhead.hcrc?2:0)+(c.gzhead.extra?4:0)+(c.gzhead.name?8:0)+(c.gzhead.comment?16:0)),sk(c,c.gzhead.time&255),sk(c,c.gzhead.time>>8&255),sk(c,c.gzhead.time>>16&255),sk(c,c.gzhead.time>>
24&255),sk(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),sk(c,c.gzhead.os&255),c.gzhead.extra&&c.gzhead.extra.length&&(sk(c,c.gzhead.extra.length&255),sk(c,c.gzhead.extra.length>>8&255)),c.gzhead.hcrc&&(a.adler=uk(a.adler,c.pending_buf,c.pending,0)),c.gzindex=0,c.status=69):(sk(c,0),sk(c,0),sk(c,0),sk(c,0),sk(c,0),sk(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),sk(c,3),c.status=113);else{var e=8+(c.w_bits-8<<4)<<8;e|=(c.strategy>=2||c.level<2?0:c.level<6?1:c.level===6?2:3)<<6;c.strstart!==0&&(e|=
32);c.status=113;tk(c,e+(31-e%31));c.strstart!==0&&(tk(c,a.adler>>>16),tk(c,a.adler&65535));a.adler=1}if(c.status===69)if(c.gzhead.extra){for(e=c.pending;c.gzindex<(c.gzhead.extra.length&65535)&&(c.pending!==c.pending_buf_size||(c.gzhead.hcrc&&c.pending>e&&(a.adler=uk(a.adler,c.pending_buf,c.pending-e,e)),nk(a),e=c.pending,c.pending!==c.pending_buf_size));)sk(c,c.gzhead.extra[c.gzindex]&255),c.gzindex++;c.gzhead.hcrc&&c.pending>e&&(a.adler=uk(a.adler,c.pending_buf,c.pending-e,e));c.gzindex===c.gzhead.extra.length&&
(c.gzindex=0,c.status=73)}else c.status=73;if(c.status===73)if(c.gzhead.name){e=c.pending;do{if(c.pending===c.pending_buf_size&&(c.gzhead.hcrc&&c.pending>e&&(a.adler=uk(a.adler,c.pending_buf,c.pending-e,e)),nk(a),e=c.pending,c.pending===c.pending_buf_size)){var g=1;break}g=c.gzindex<c.gzhead.name.length?c.gzhead.name.charCodeAt(c.gzindex++)&255:0;sk(c,g)}while(g!==0);c.gzhead.hcrc&&c.pending>e&&(a.adler=uk(a.adler,c.pending_buf,c.pending-e,e));g===0&&(c.gzindex=0,c.status=91)}else c.status=91;if(c.status===
91)if(c.gzhead.comment){e=c.pending;do{if(c.pending===c.pending_buf_size&&(c.gzhead.hcrc&&c.pending>e&&(a.adler=uk(a.adler,c.pending_buf,c.pending-e,e)),nk(a),e=c.pending,c.pending===c.pending_buf_size)){g=1;break}g=c.gzindex<c.gzhead.comment.length?c.gzhead.comment.charCodeAt(c.gzindex++)&255:0;sk(c,g)}while(g!==0);c.gzhead.hcrc&&c.pending>e&&(a.adler=uk(a.adler,c.pending_buf,c.pending-e,e));g===0&&(c.status=103)}else c.status=103;c.status===103&&(c.gzhead.hcrc?(c.pending+2>c.pending_buf_size&&nk(a),
c.pending+2<=c.pending_buf_size&&(sk(c,a.adler&255),sk(c,a.adler>>8&255),a.adler=0,c.status=113)):c.status=113);if(c.pending!==0){if(nk(a),a.avail_out===0)return c.last_flush=-1,0}else if(a.avail_in===0&&(b<<1)-(b>4?9:0)<=(d<<1)-(d>4?9:0)&&b!==4)return kk(a,-5);if(c.status===666&&a.avail_in!==0)return kk(a,-5);if(a.avail_in!==0||c.lookahead!==0||b!==0&&c.status!==666){d=c.strategy===2?Lqa(c,b):c.strategy===3?Kqa(c,b):yk[c.level].func(c,b);if(d===3||d===4)c.status=666;if(d===1||d===3)return a.avail_out===
0&&(c.last_flush=-1),0;if(d===2&&(b===1?(dk(c,2,3),ek(c,256,ok),c.bi_valid===16?(ck(c,c.bi_buf),c.bi_buf=0,c.bi_valid=0):c.bi_valid>=8&&(c.pending_buf[c.pending++]=c.bi_buf&255,c.bi_buf>>=8,c.bi_valid-=8)):b!==5&&(dk(c,0,3),uqa(c,0,0),b===3&&(lk(c.head),c.lookahead===0&&(c.strstart=0,c.block_start=0,c.insert=0))),nk(a),a.avail_out===0))return c.last_flush=-1,0}if(b!==4)return 0;if(c.wrap<=0)return 1;c.wrap===2?(sk(c,a.adler&255),sk(c,a.adler>>8&255),sk(c,a.adler>>16&255),sk(c,a.adler>>24&255),sk(c,
a.total_in&255),sk(c,a.total_in>>8&255),sk(c,a.total_in>>16&255),sk(c,a.total_in>>24&255)):(tk(c,a.adler>>>16),tk(c,a.adler&65535));nk(a);c.wrap>0&&(c.wrap=-c.wrap);return c.pending!==0?0:1};
Oqa=function(a){if(!(this instanceof Oqa))return new Oqa(a);a=this.options=fk.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},a||{});a.raw&&a.windowBits>0?a.windowBits=-a.windowBits:a.gzip&&a.windowBits>0&&a.windowBits<16&&(a.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new Pqa;this.strm.avail_out=0;var b=this.strm;var c=a.level,d=a.method,e=a.windowBits,g=a.memLevel,k=a.strategy;if(b){var m=1;c===-1&&(c=6);e<0?(m=0,e=-e):e>15&&
(m=2,e-=16);if(g<1||g>9||d!==8||e<8||e>15||c<0||c>9||k<0||k>4)b=kk(b,-2);else{e===8&&(e=9);var n=new Mqa;b.state=n;n.strm=b;n.wrap=m;n.gzhead=null;n.w_bits=e;n.w_size=1<<n.w_bits;n.w_mask=n.w_size-1;n.hash_bits=g+7;n.hash_size=1<<n.hash_bits;n.hash_mask=n.hash_size-1;n.hash_shift=~~((n.hash_bits+3-1)/3);n.window=new fk.Buf8(n.w_size*2);n.head=new fk.Buf16(n.hash_size);n.prev=new fk.Buf16(n.w_size);n.lit_bufsize=1<<g+6;n.pending_buf_size=n.lit_bufsize*4;n.pending_buf=new fk.Buf8(n.pending_buf_size);
n.d_buf=n.lit_bufsize;n.l_buf=3*n.lit_bufsize;n.level=c;n.strategy=k;n.method=d;if(b&&b.state){b.total_in=b.total_out=0;b.data_type=2;c=b.state;c.pending=0;c.pending_out=0;c.wrap<0&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;b.adler=c.wrap===2?0:1;c.last_flush=0;if(!Qqa){d=Array(16);for(g=k=0;g<28;g++)for(yqa[g]=k,e=0;e<1<<xqa[g];e++)gk[k++]=g;gk[k-1]=g;for(g=k=0;g<16;g++)for(Aqa[g]=k,e=0;e<1<<zqa[g];e++)hk[k++]=g;for(k>>=7;g<30;g++)for(Aqa[g]=k<<7,e=0;e<1<<zqa[g]-7;e++)hk[256+k++]=g;for(e=0;e<=15;e++)d[e]=
0;for(e=0;e<=143;)ok[e*2+1]=8,e++,d[8]++;for(;e<=255;)ok[e*2+1]=9,e++,d[9]++;for(;e<=279;)ok[e*2+1]=7,e++,d[7]++;for(;e<=287;)ok[e*2+1]=8,e++,d[8]++;rqa(ok,287,d);for(e=0;e<30;e++)pk[e*2+1]=5,pk[e*2]=qqa(e,5);Rqa=new oqa(ok,xqa,257,286,15);Sqa=new oqa(pk,zqa,0,30,15);Tqa=new oqa([],Uqa,0,19,7);Qqa=!0}c.l_desc=new pqa(c.dyn_ltree,Rqa);c.d_desc=new pqa(c.dyn_dtree,Sqa);c.bl_desc=new pqa(c.bl_tree,Tqa);c.bi_buf=0;c.bi_valid=0;sqa(c);c=0}else c=kk(b,-2);c===0&&(b=b.state,b.window_size=2*b.w_size,lk(b.head),
b.max_lazy_match=yk[b.level].max_lazy,b.good_match=yk[b.level].good_length,b.nice_match=yk[b.level].nice_length,b.max_chain_length=yk[b.level].max_chain,b.strstart=0,b.block_start=0,b.lookahead=0,b.insert=0,b.match_length=b.prev_length=2,b.match_available=0,b.ins_h=0);b=c}}else b=-2;if(b!==0)throw Error(jk[b]);a.header&&(b=this.strm)&&b.state&&b.state.wrap===2&&(b.state.gzhead=a.header);if(a.dictionary){var r;typeof a.dictionary==="string"?r=Vqa(a.dictionary):Wqa.call(a.dictionary)==="[object ArrayBuffer]"?
r=new Uint8Array(a.dictionary):r=a.dictionary;a=this.strm;g=r;k=g.length;if(a&&a.state)if(r=a.state,b=r.wrap,b===2||b===1&&r.status!==42||r.lookahead)b=-2;else{b===1&&(a.adler=Iqa(a.adler,g,k,0));r.wrap=0;k>=r.w_size&&(b===0&&(lk(r.head),r.strstart=0,r.block_start=0,r.insert=0),c=new fk.Buf8(r.w_size),fk.arraySet(c,g,k-r.w_size,r.w_size,0),g=c,k=r.w_size);c=a.avail_in;d=a.next_in;e=a.input;a.avail_in=k;a.next_in=0;a.input=g;for(vk(r);r.lookahead>=3;){g=r.strstart;k=r.lookahead-2;do r.ins_h=(r.ins_h<<
r.hash_shift^r.window[g+3-1])&r.hash_mask,r.prev[g&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=g,g++;while(--k);r.strstart=g;r.lookahead=2;vk(r)}r.strstart+=r.lookahead;r.block_start=r.strstart;r.insert=r.lookahead;r.lookahead=0;r.match_length=r.prev_length=2;r.match_available=0;a.next_in=d;a.input=e;a.avail_in=c;r.wrap=b;b=0}else b=-2;if(b!==0)throw Error(jk[b]);this._dict_set=!0}};
Xqa=function(a,b){b=b||{};b.gzip=!0;b=new Oqa(b);b.push(a,!0);if(b.err)throw b.msg||jk[b.err];return b.result};
Zqa=function(a,b){var c=Yqa();c&&c.publish.call(c,a.toString(),a,b)};
dra=function(a,b,c){var d=Yqa();if(!d)return 0;var e=d.subscribe(a.toString(),function(g,k){var m=_.Ji("ytPubsub2Pubsub2SkipSubKey");m&&m==e||(m=function(){if($qa[e])try{if(k&&a instanceof ara&&a!=g)try{var n=a.dataClass,r=k;if(!r.args||!r.version)throw Error("$c");try{if(!n.version_){var t=new n;n.version_=t.version}var u=n.version_}catch(x){}if(!u||r.version!=u)throw Error("ad");try{k=Reflect.construct(n,_.Ra(r.args))}catch(x){throw x.message="yt.pubsub2.Data.deserialize(): "+x.message,x;}}catch(x){throw x.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+x.message,x;}b.call(c||window,k)}catch(x){_.Hi(x)}},bra[a.toString()]?_.Ji("yt.scheduler.instance")?_.zk.addLowPriorityJob(m):_.dj(m,0):m())});
$qa[e]=!0;cra[a.toString()]||(cra[a.toString()]=[]);cra[a.toString()].push(e);return e};
hra=function(){var a=era,b=dra(fra,function(c){a.apply(void 0,arguments);gra(b)});
return b};
gra=function(a){var b=Yqa();b&&(typeof a==="number"&&(a=[a]),_.Mi(a,function(c){b.unsubscribeByKey(c);delete $qa[c]}))};
Yqa=function(){return _.Ji("ytPubsub2Pubsub2Instance")};
ira=function(a,b,c){c=c===void 0?{sampleRate:.1}:c;Math.random()<Math.min(.02,c.sampleRate/100)&&Zqa("meta_logging_csi_event",{timerName:a,timelineData:b})};
_.jra=function(a){return a?(a=a.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.Wd(a):null:null};
_.Ak=function(a){return a?(a=a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.xd(a):null:null};
lra=function(){kra||(kra=_.Ak(_.Fi("WORKER_SERIALIZATION_URL")));return kra||void 0};
_.nra=function(){var a=lra();mra||a===void 0||(mra=new Worker(_.zd(a),void 0));return mra};
_.ora=function(){return typeof Worker==="function"&&lra()?!0:!1};
_.sra=function(){if(_.ora()&&!pra){var a=function(c){c=c.data;if(c.op==="gzippedGelBatch"){var d=qra.get(c.key);d&&(rra(c.gzippedBatch,d.latencyPayload,d.url,d.options,d.sendFn),qra.delete(c.key))}},b=_.nra();
b&&(b.addEventListener("message",a),b.onerror=function(){qra.clear()},pra=!0)}};
zra=function(a,b,c,d,e){e=e===void 0?!1:e;var g={startTime:(0,_.Uj)(),ticks:{},infos:{}};if(Bk)try{var k=tra(b);if(k!=null&&(k>ura||k<vra))d(a,c);else{if(_.w("gzip_gel_with_worker")&&(_.w("initial_gzip_use_main_thread")&&!wra||!_.w("initial_gzip_use_main_thread"))){pra||_.sra();var m=_.nra();if(m&&!e){qra.set(xra,{latencyPayload:g,url:a,options:c,sendFn:d});m.postMessage({op:"gelBatchToGzip",serializedBatch:b,key:xra});xra++;return}}var n=Xqa(yra(b));rra(n,g,a,c,d)}}catch(r){_.Ki(r),d(a,c)}else d(a,
c)};
rra=function(a,b,c,d,e){wra=!1;var g=(0,_.Uj)();b.ticks.gelc=g;Ck++;_.w("disable_compression_due_to_performance_degredation")&&g-b.startTime>=Ara&&(Bra++,_.w("abandon_compression_after_N_slow_zips")?Ck===_.$i("compression_disable_point")&&Bra>Cra&&(Bk=!1):Bk=!1);Dra(b);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=a;d.postParams=void 0;e(c,d)};
Era=function(a){var b=b===void 0?!1:b;var c=c===void 0?!1:c;var d=(0,_.Uj)(),e={startTime:d,ticks:{},infos:{}},g=b?_.Ji("yt.logging.gzipForFetch",!1):!0;if(Bk&&g){if(!a.body)return a;try{var k=c?a.body:typeof a.body==="string"?a.body:JSON.stringify(a.body);g=k;if(!c&&typeof k==="string"){var m=tra(k);if(m!=null&&(m>ura||m<vra))return a;c=b?{level:1}:void 0;g=Xqa(yra(k),c);var n=(0,_.Uj)();e.ticks.gelc=n;if(b){Ck++;if((_.w("disable_compression_due_to_performance_degredation")||_.w("disable_compression_due_to_performance_degradation_lr"))&&
n-d>=Ara)if(Bra++,_.w("abandon_compression_after_N_slow_zips")||_.w("abandon_compression_after_N_slow_zips_lr")){b=Bra/Ck;var r=Cra/_.$i("compression_disable_point");Ck>0&&Ck%_.$i("compression_disable_point")===0&&b>=r&&(Bk=!1)}else Bk=!1;Dra(e)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=g;return a}catch(t){return _.Ki(t),a}}else return a};
tra=function(a){try{return(new Blob(a.split(""))).size}catch(b){return _.Ki(b),null}};
Dra=function(a){_.w("gel_compression_csi_killswitch")||!_.w("log_gel_compression_latency")&&!_.w("log_gel_compression_latency_lr")||ira("gel_compression",a,{sampleRate:.1})};
Fra=function(){this.blockSize=-1};
Dk=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var a=1;a<this.blockSize;++a)this.pad_[a]=0;this.total_=this.inbuf_=0;this.reset()};
Hra=function(a){a=Object.assign({},a);delete a.Authorization;var b=Gra();if(b){var c=new Dk;c.update(_.Fi("INNERTUBE_API_KEY"));c.update(b);a.hash=_.Bc(c.digest(),3)}return a};
Fk=function(){Ira||(Ira=new _.Ek("yt.innertube"));return Ira};
Jra=function(a,b,c,d){if(d)return null;d=Fk().get("nextId",!0)||1;var e=Fk().get("requests",!0)||{};e[d]={method:a,request:b,authState:Hra(c),requestTime:Math.round((0,_.Uj)())};Fk().set("nextId",d+1,86400,!0);Fk().set("requests",e,86400,!0);return d};
Kra=function(a){var b=Fk().get("requests",!0)||{};delete b[a];Fk().set("requests",b,86400,!0)};
Mra=function(a){var b=Fk().get("requests",!0);if(b){for(var c in b){var d=b[c];if(!(Math.round((0,_.Uj)())-d.requestTime<6E4)){var e=d.authState,g=Hra(_.mqa(!1));_.Cf.equals(e,g)&&(e=d.request,"requestTimeMs"in e&&(e.requestTimeMs=Math.round((0,_.Uj)())),Lra(a,d.method,e,{}));delete b[c]}}Fk().set("requests",b,86400,!0)}};
Nra=function(a){var b;return(a=a==null?void 0:(b=a.error)==null?void 0:b.code)&&a>=400&&a<=599?!1:!0};
Ora=function(a){var b;a=a==null?void 0:(b=a.error)==null?void 0:b.code;return!(a!==400&&a!==415)};
Qra=function(){if(Pra)return Pra();var a={};Pra=Tj("LogsDatabaseV2",{objectStores:(a.LogsRequestsStore={addedAtVersion:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&Gk(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.JSC$8436_wrapped.indexNames.contains("newRequest")&&d.JSC$8436_wrapped.deleteIndex("newRequest"),Hk(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&b.JSC$8421_wrapped.objectStoreNames.contains("sapisid")&&b.JSC$8421_wrapped.deleteObjectStore("sapisid");
c(9)&&b.JSC$8421_wrapped.objectStoreNames.contains("SWHealthLog")&&b.JSC$8421_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return Pra()};
Ik=function(a){return _.Lj(Qra(),a)};
Sra=function(a,b){var c,d,e,g;return _.l(function(k){if(k.nextAddress==1)return c={startTime:(0,_.Uj)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.p(k,Ik(b),2);if(k.nextAddress!=3)return d=k.yieldResult,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:_.Fi("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.p(k,d.put("LogsRequestsStore",e),3);g=k.yieldResult;c.ticks.tc=(0,_.Uj)();Rra(c);return k.return(g)})};
Tra=function(a,b){var c,d,e,g,k,m,n,r;return _.l(function(t){if(t.nextAddress==1)return c={startTime:(0,_.Uj)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.p(t,Ik(b),2);if(t.nextAddress!=3)return d=t.yieldResult,e=_.Fi("INNERTUBE_CONTEXT_CLIENT_NAME",0),g=[a,e,0],k=[a,e,(0,_.Uj)()],m=IDBKeyRange.bound(g,k),n="prev",_.w("use_fifo_for_networkless")&&(n="next"),r=void 0,_.p(t,_.Mj(d,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(u){return _.Vj(u.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:m,direction:n},function(x){x.getValue()&&(r=x.getValue(),a==="NEW"&&(r.status="QUEUED",x.update(r)))})}),3);
c.ticks.tc=(0,_.Uj)();Rra(c);return t.return(r)})};
Ura=function(a,b){var c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,Ik(b),2);c=d.yieldResult;return d.return(_.Mj(c,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(e){var g=e.objectStore("LogsRequestsStore");return g.get(a).then(function(k){if(k)return k.status="QUEUED",g.put(k).then(function(){return k})})}))})};
Vra=function(a,b,c,d){c=c===void 0?!0:c;var e;return _.l(function(g){if(g.nextAddress==1)return _.p(g,Ik(b),2);e=g.yieldResult;return g.return(_.Mj(e,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(k){var m=k.objectStore("LogsRequestsStore");return m.get(a).then(function(n){return n?(n.status="NEW",c&&(n.sendCount+=1),d!==void 0&&(n.options.compress=d),m.put(n).then(function(){return n})):Fj.resolve(void 0)})}))})};
Wra=function(a,b){var c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,Ik(b),2);c=d.yieldResult;return d.return(c.delete("LogsRequestsStore",a))})};
Xra=function(a){var b,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,Ik(a),2);b=d.yieldResult;c=(0,_.Uj)()-2592E6;return _.p(d,_.Mj(b,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(e){return Oj(e.objectStore("LogsRequestsStore"),{},function(g){if(g.getValue().timestamp<=c)return g.delete().then(function(){return g.continue()})})}),0)})};
Yra=function(){_.l(function(a){return _.p(a,Npa("LogsDatabaseV2"),0)})};
Rra=function(a){_.w("nwl_csi_killswitch")||ira("networkless_performance",a,{sampleRate:1})};
_.$ra=function(a){return _.Lj(Zra(),a)};
asa=function(a){var b,c;_.l(function(d){if(d.nextAddress==1)return _.p(d,_.$ra(a),2);b=d.yieldResult;c=(0,_.Uj)()-2592E6;return _.p(d,_.Mj(b,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(e){return Oj(e.objectStore("SWHealthLog"),{},function(g){if(g.getValue().timestamp<=c)return g.delete().then(function(){return g.continue()})})}),0)})};
bsa=function(a){var b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,_.$ra(a),2);b=c.yieldResult;return _.p(c,b.clear("SWHealthLog"),0)})};
_.Jk=function(a,b,c,d,e,g,k){e=e===void 0?"":e;g=g===void 0?!1:g;k=k===void 0?!1:k;if(a)if(c&&!Bj("cobalt"))_.Ki(new _.qj("Legacy referrer-scrubbed ping detected")),a&&csa(a,void 0,{scrubReferrer:!0});else if(e)Coa(a,b,"POST",e,d);else if(_.Fi("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d||k)Coa(a,b,"GET","",d,void 0,g,k);else{b:{try{c:{var m=new dsa({url:a});if(jia(m.JSC$7329_url_,"dsh")==="1")var n=null;else{var r=jia(m.JSC$7329_url_,"ae");if(r==="1"){var t=jia(m.JSC$7329_url_,"adurl");if(t)try{n={version:3,
directUrl:decodeURIComponent(t),asyncUrl:kia(m.JSC$7329_url_,"act=1","ri=1",esa(m))};break c}catch(C){}}n=r==="2"?{version:4,directUrl:kia(m.JSC$7329_url_,"dct=1","suid="+m.suid_,""),asyncUrl:kia(m.JSC$7329_url_,"act=1","ri=1","suid="+m.suid_)}:null}}if(n){var u=_.gj(a);var x=!(!u||!u.endsWith("/aclk")||_.Kg(a,"ri")!=="1");break b}}catch(C){}x=!1}if(x){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")){var A=!0;break b}}catch(C){}A=!1}A?(b&&b(),c=!0):c=!1}else c=
!1;c||csa(a,b)}};
csa=function(a,b,c){c=c===void 0?{}:c;var d=new Image,e=""+fsa++;gsa[e]=d;d.onload=d.onerror=function(){b&&gsa[e]&&b();delete gsa[e]};
c.scrubReferrer&&(d.referrerPolicy="no-referrer");d.src=a};
Kk=function(a,b){hsa(a,b==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
isa=function(a){var b;return((b=document.featurePolicy)==null?0:b.allowedFeatures().includes("attribution-reporting"))?a+"&nis=6":a+"&nis=5"};
jsa=function(a){if(!a)return!1;try{var b;if(((b=_.Ni(a))==null?void 0:b.asm)==="4")return!0}catch(c){_.Hi(c)}return!1};
hsa=function(a,b){b?(a=isa(a),_.Jk(a,void 0,void 0,void 0,"",!0,!0)):_.Jk(a)};
lsa=function(){ksa||(ksa=new _.Ek("yt.offline"));return ksa};
msa=function(a){if(_.w("offline_error_handling")){var b=lsa().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);lsa().set("errors",b,2592E3,!0)}};
osa=function(a,b,c,d){d=d===void 0?!1:d;b=_.w("web_fp_via_jspb")?Object.assign({},b):b;_.w("use_cfr_monitor")&&nsa(a,b);if(_.w("use_request_time_ms_header"))b.headers&&Ui(a)&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Uj)())));else{var e;if((e=b.postParams)==null?0:e.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,_.Uj)())}c&&Object.keys(b).length===0?_.Jk(a):b.compress?b.postBody?(typeof b.postBody!=="string"&&(b.postBody=JSON.stringify(b.postBody)),zra(a,b.postBody,
b,_.hj,d)):zra(a,JSON.stringify(b.postParams),b,Goa,d):_.hj(a,b)};
psa=function(a,b){_.w("use_event_time_ms_header")&&Ui(a)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.Uj)())));return b};
_.rsa=function(){qsa||(qsa=new _.Lk({logOfflineErrors:!0,enablePolling:!0}));return qsa};
nsa=function(a,b){var c=b.onError?b.onError:function(){};
b.onError=function(e,g){Mk().requestComplete(a,!1);c(e,g)};
var d=b.onSuccess?b.onSuccess:function(){};
b.onSuccess=function(e,g){Mk().requestComplete(a,!0);d(e,g)}};
_.ssa=function(){return _.Si(document.location.toString())!=="www.youtube-nocookie.com"};
_.vsa=function(){return _.Ji("ytNetworklessLoggingInitializationOptions")?_.tsa.isNwlInitialized:_.usa};
wsa=function(a,b){if(_.w("polymer_on_demand_shady_dom")){var c;var d=(c=a.__shady_native_firstElementChild)!=null?c:a.firstElementChild}else d=a.firstElementChild;for(;d;){if(a=b(d)?d:wsa(d,b))return a;d=d.nextElementSibling}return null};
ysa=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=xsa+"VisibilityState";if(b in a)return a[b]};
_.zsa=function(a,b){var c;Nk(a,function(d){c=b[d];return!!c});
return c};
_.Pk=function(a){var b=Asa(a);b?b.focus():_.Ok(a)};
Asa=function(a){return(a=wsa(a,function(b){return _.Sk(b)?Bsa(b)&&!!b.offsetParent:!1}))?a:null};
_.Ok=function(a,b){a.hasAttribute("tabindex")||a.setAttribute("tabindex","-1");a.focus(b)};
Csa=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 _.Cf.findKey(Tk,function(e){var g=typeof e[4]==="boolean"&&e[4]==!!d,k=_.Za(e[4])&&_.Za(d)&&_.Cf.equals(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(g||k)})};
_.Vk=function(a,b,c,d){d=d===void 0?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Csa(a,b,c,d);if(e)return e;e=++Dsa.count+"";var g=!(b!="mouseenter"&&b!="mouseleave"||!a.addEventListener||"onmouseenter"in document);var k=g?function(m){m=new Uk(m);if(!_.Jf(m.relatedTarget,function(n){return n==a},!0))return m.currentTarget=a,m.type=b,c.call(a,m)}:function(m){m=new Uk(m);
m.currentTarget=a;return c.call(a,m)};
k=_.Ii(k);a.addEventListener?(b=="mouseenter"&&g?b="mouseover":b=="mouseleave"&&g?b="mouseout":b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Esa()||typeof d==="boolean"?a.addEventListener(b,k,d):a.addEventListener(b,k,!!d.capture)):a.attachEvent("on"+b,k);Tk[e]=[a,b,c,k,d];return e};
_.Gsa=function(a,b,c){var d=d===void 0?{}:d;var e=_.Vk(a,b,function(){_.Fsa(e);c.apply(a,arguments)},d)};
_.Fsa=function(a){a&&(typeof a=="string"&&(a=[a]),_.Mi(a,function(b){if(b in Tk){var c=Tk[b],d=c[0],e=c[1],g=c[3];c=c[4];d.removeEventListener?Esa()||typeof c==="boolean"?d.removeEventListener(e,g,c):d.removeEventListener(e,g,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,g);delete Tk[b]}}))};
Wk=function(a){this.callback_=a;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(a=0;a<4;a++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.Vk(window,"mousemove",(0,_.wg)(this.onMouseMove_,this));this.timerId_=_.ej((0,_.wg)(this.checkPosition_,this),25)};
Isa=function(){var a={};var b=a.preferMobileEvents===void 0?!1:a.preferMobileEvents;a=a.enableScrollEventListener===void 0?!0:a.enableScrollEventListener;if(_.Ji("_lact",window)==null){var c=parseInt(_.Fi("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;_.Rj("_lact",c,window);_.Rj("_fact",c,window);c==-1&&_.Xk();_.Vk(document,"keydown",_.Xk);_.Vk(document,"keyup",_.Xk);_.Vk(document,"mousedown",_.Xk);_.Vk(document,"mouseup",_.Xk);b?_.Vk(window,"touchmove",function(){Hsa("touchmove",200)},{passive:!0}):
(_.Vk(window,"resize",function(){Hsa("resize",200)}),a&&_.Vk(window,"scroll",function(){Hsa("scroll",200)}));
new Wk(function(){Hsa("mouse",100)});
_.Vk(document,"touchstart",_.Xk,{passive:!0});_.Vk(document,"touchend",_.Xk,{passive:!0})}};
Hsa=function(a,b){Jsa[a]||(Jsa[a]=!0,_.zk.addLowPriorityJob(function(){_.Xk();Jsa[a]=!1},b))};
_.Xk=function(){_.Ji("_lact",window)==null&&Isa();var a=Date.now();_.Rj("_lact",a,window);_.Ji("_fact",window)==-1&&_.Rj("_fact",a,window);(a=_.Ji("ytglobal.ytUtilActivityCallback_"))&&a()};
_.Yk=function(){var a=_.Ji("_lact",window);return a==null?-1:Math.max(Date.now()-a,0)};
_.bl=function(a,b,c){var d=_.Zk();if(d&&b){var e=d.subscribe(a,function(){var g=arguments,k=function(){$k[e]&&b.apply&&typeof b.apply=="function"&&b.apply(c||window,g)};
try{_.Ksa[a]?k():_.dj(k,0)}catch(m){_.Hi(m)}},c);
$k[e]=!0;al[a]||(al[a]=[]);al[a].push(e);return e}return 0};
_.Lsa=function(a){var b=_.Zk();b&&(typeof a==="number"?a=[a]:typeof a==="string"&&(a=[parseInt(a,10)]),_.Mi(a,function(c){b.unsubscribeByKey(c);delete $k[c]}))};
_.Msa=function(a,b){var c=_.Zk();c&&c.publish.apply(c,arguments)};
_.Osa=function(a){var b=_.Zk();if(b)if(b.clear(a),a)Nsa(a);else for(var c in al)Nsa(c)};
_.Zk=function(){return _.ja.ytPubsubPubsubInstance};
Nsa=function(a){al[a]&&(a=al[a],_.Mi(a,function(b){$k[b]&&delete $k[b]}),a.length=0)};
Psa=function(){var a,b;return"h5vcc"in cl&&((a=cl.h5vcc.traceEvent)==null?0:a.traceBegin)&&((b=cl.h5vcc.traceEvent)==null?0:b.traceEnd)?1:"performance"in cl&&cl.performance.mark&&cl.performance.measure?2:0};
Qsa=function(a){var b=Psa();switch(b){case 1:cl.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:cl.performance.mark(a+"-start");break;case 0:break;default:_.Wb(b,"unknown trace type")}};
Rsa=function(a){var b=Psa();switch(b){case 1:cl.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:b=a+"-start";var c=a+"-end";cl.performance.mark(c);cl.performance.measure(a,b,c);break;case 0:break;default:_.Wb(b,"unknown trace type")}};
Ssa=function(a){var b,c;(c=(b=window).onerror)==null||c.call(b,a.message,"",0,0,a)};
Tsa=function(a){if(_.w("web_lifecycle_error_handling_killswitch"))return a();try{return a()}catch(b){Ssa(b)}};
Usa=function(a){return[a.auth===void 0?"undefined":a.auth,a.isJspb===void 0?"undefined":a.isJspb,a.cttAuthInfo===void 0?"undefined":a.cttAuthInfo,a.tier===void 0?"undefined":a.tier].join("/")};
_.y=function(a,b){if(a)return a[b.name]};
_.dl=function(a){return a};
fl=function(){var a=_.Ji("yt.logging.ims");a||(a=new el,_.Rj("yt.logging.ims",a));return a};
cta=function(a,b){if(a.endpoint==="log_event"){Vsa(a);var c=Wsa(a),d=Xsa(a.payload)||"",e=Ysa(d),g=200;if(e){if(e.enabled===!1&&!_.w("web_payload_policy_disabled_killswitch"))return;g=Zsa(e.tier);if(g===400){$sa(a,b);return}}gl[c]=!0;c={cttAuthInfo:c,isJspb:!1,tier:g};fl().storePayload(c,a.payload);ata(b,!1,c,bta(d))}};
eta=function(a,b,c){if(b.endpoint==="log_event"){Vsa(void 0,b);var d=Wsa(b,!0),e=Ysa(a),g=200;if(e){if(e.enabled===!1&&!_.w("web_payload_policy_disabled_killswitch"))return;g=Zsa(e.tier);if(g===400){dta(a,b,c);return}}gl[d]=!0;d={cttAuthInfo:d,isJspb:!0,tier:g};fl().storePayload(d,Ec(b.payload));ata(c,!0,d,bta(a))}};
ata=function(a,b,c,d){b=b===void 0?!1:b;d=d===void 0?!1:d;a&&(hl=new a);a=_.$i("tvhtml5_logging_max_batch_ads_fork")||_.$i("tvhtml5_logging_max_batch")||_.$i("web_logging_max_batch")||100;var e=(0,_.Uj)(),g=fta(b,c.tier),k=g.lastDebounceQueueFromLogTimeMs;d&&(g.useVideoStatsEndPoint=!0);d=0;c&&(d=fl().getSequenceCount(c));var m=function(){gta({writeThenSend:!0},b,c.tier)};
d>=1E3?m():d>=a?hta||(hta=ita(function(){m();hta=void 0},0)):e-k>=10&&(jta(b,c.tier),g.lastDebounceQueueFromLogTimeMs=e)};
$sa=function(a,b){if(a.endpoint==="log_event"){_.w("more_accurate_gel_parser")&&fl().storePayload({isJspb:!1},a.payload);Vsa(a);var c=Wsa(a),d=new Map;d.set(c,[a.payload]);var e=Xsa(a.payload)||"";b&&(hl=new b);return new _.il(function(g,k){hl&&hl.isReady()?kta(d,hl,g,k,{bypassNetworkless:!0},!0,bta(e)):g()})}};
dta=function(a,b,c){if(b.endpoint==="log_event"){Vsa(void 0,b);var d=Wsa(b,!0),e=new Map;e.set(d,[Ec(b.payload)]);c&&(hl=new c);return new _.il(function(g){hl&&hl.isReady()?lta(e,hl,g,{bypassNetworkless:!0},!0,bta(a)):g()})}};
Wsa=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 mta;c.videoId?d.setVideoId(c.videoId):c.playlistId&&jl(d,2,nta,qc(c.playlistId));ota[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),pta[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c};
gta=function(a,b,c){a=a===void 0?{}:a;b=b===void 0?!1:b;new _.il(function(d,e){var g=fta(b,c),k=g.useVideoStatsEndPoint;g.useVideoStatsEndPoint=!1;qta(g.queueTimer);qta(g.queueMaxTimer);g.queueMaxTimer=0;hl&&hl.isReady()?c===void 0&&_.w("enable_web_tiered_gel")?rta(d,e,a,b,300,k):rta(d,e,a,b,c,k):(jta(b,c),d())})};
rta=function(a,b,c,d,e,g){var k=hl;c=c===void 0?{}:c;d=d===void 0?!1:d;e=e===void 0?200:e;g=g===void 0?!1:g;var m=new Map,n=new Map,r={isJspb:d,cttAuthInfo:void 0,tier:e},t={isJspb:d,cttAuthInfo:void 0};if(d){b=_.h(Object.keys(gl));for(e=b.next();!e.done;e=b.next())e=e.value,n=_.w("enable_web_tiered_gel")?fl().smartExtractMatchingEntries({keys:[r,t],sizeLimit:1E3}):fl().extractMatchingEntries({isJspb:!0,cttAuthInfo:e}),n.length>0&&m.set(e,n),(_.w("web_fp_via_jspb_and_json")&&c.writeThenSend||!_.w("web_fp_via_jspb_and_json"))&&
delete gl[e];lta(m,k,a,c,!1,g)}else{m=_.h(Object.keys(gl));for(r=m.next();!r.done;r=m.next())r=r.value,t=_.w("enable_web_tiered_gel")?fl().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:r,tier:e},{isJspb:!1,cttAuthInfo:r}],sizeLimit:1E3}):fl().extractMatchingEntries({isJspb:!1,cttAuthInfo:r}),t.length>0&&n.set(r,t),(_.w("web_fp_via_jspb_and_json")&&c.writeThenSend||!_.w("web_fp_via_jspb_and_json"))&&delete gl[r];kta(n,k,a,b,c,!1,g)}};
jta=function(a,b){a=a===void 0?!1:a;b=b===void 0?200:b;var c=function(){gta({writeThenSend:!0},a,b)},d=fta(a,b),e=d===sta||d===tta?5E3:uta;
_.w("web_gel_timeout_cap")&&!d.queueMaxTimer&&(e=ita(function(){c()},e),d.queueMaxTimer=e);
qta(d.queueTimer);e=_.Fi("LOGGING_BATCH_TIMEOUT",_.$i("web_gel_debounce_ms",1E4));_.w("shorten_initial_gel_batch_timeout")&&vta&&(e=wta);e=ita(function(){_.$i("gel_min_batch_size")>0?fl().getSequenceCount({cttAuthInfo:void 0,isJspb:a,tier:b})>=xta&&c():c()},e);
d.queueTimer=e};
kta=function(a,b,c,d,e,g,k){e=e===void 0?{}:e;var m=Math.round((0,_.Uj)()),n=a.size,r=yta(k);a=_.h(a);var t=a.next();for(k={};!t.done;k={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},t=a.next()){var u=_.h(t.value);t=u.next().value;u=u.next().value;k.batchRequest=_.Cf.unsafeClone({context:_.dqa(b.config_||_.Wj())});if(!_.Sa(u)&&!_.w("throw_err_when_logevent_malformed_killswitch")){d();break}k.batchRequest.events=u;
(u=pta[t])&&zta(k.batchRequest,t,u);delete pta[t];k.dangerousLogToVisitorSession=t==="visitorOnlyApprovedKey";Ata(k.batchRequest,m,k.dangerousLogToVisitorSession);Bta(e);k.onSuccess$jscomp$3=function(x){_.w("start_client_gcf")&&_.zk.addLowPriorityJob(function(){return _.l(function(A){return _.p(A,Cta(x),0)})});
n--;n||c()};
k.networkFailures=0;k.onError$jscomp$5=function(x){return function(){x.networkFailures++;if(e.bypassNetworkless&&x.networkFailures===1)try{Lra(b,r,x.batchRequest,Dta({writeThenSend:!0},x.dangerousLogToVisitorSession,x.onSuccess$jscomp$3,x.onError$jscomp$5,g)),vta=!1}catch(A){_.Hi(A),d()}n--;n||c()}}(k);
try{Lra(b,r,k.batchRequest,Dta(e,k.dangerousLogToVisitorSession,k.onSuccess$jscomp$3,k.onError$jscomp$5,g)),vta=!1}catch(x){_.Hi(x),d()}}};
lta=function(a,b,c,d,e,g){d=d===void 0?{}:d;var k=Math.round((0,_.Uj)()),m={value:a.size},n=new Map([].concat(_.De(a)));n=_.h(n);for(var r=n.next();!r.done;r=n.next()){var t=_.h(r.value).next().value,u=a.get(t);r=new Eta;var x=b.config_||_.Wj(),A=new kl,C=new Fta;_.vf(C,1,x.innertubeContextHostLanguage);_.vf(C,2,x.innertubeContextGeoLocation);_.Yj(C,16,x.innertubeContextClientNameFieldNumber);_.vf(C,17,x.innertubeContextClientVersion);if(x.innertubeContextClientConfigInfo){var F=x.innertubeContextClientConfigInfo,
J=new ak;F.coldConfigData&&_.vf(J,1,F.coldConfigData);F.appInstallData&&_.vf(J,6,F.appInstallData);F.coldHashData&&_.vf(J,3,F.coldHashData);F.hotHashData&&J.setHotHashData(F.hotHashData);_.qd(C,62,J)}(F=_.ja.devicePixelRatio)&&F!=1&&_.Zj(C,65,_.Xb(F));F=toa();F!==""&&_.vf(C,54,F);F=uoa();if(F.length>0){J=new Gta;for(var I=0;I<F.length;I++){var R=new ll;R.setKey(F[I].key);jl(R,2,Hta,qc(F[I].value));ml(J,15,ll,R)}_.qd(A,5,J)}Ypa(x,C);Zpa(A);$pa(C);aqa(x,C);bqa(C);_.w("start_client_gcf")&&cqa(C);_.Fi("DELEGATED_SESSION_ID")&&
!_.w("pageid_as_header_web")&&(x=new nl,_.vf(x,3,_.Fi("DELEGATED_SESSION_ID")));!_.w("fill_delegate_context_in_gel_killswitch")&&(F=_.Fi("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(J=_.Xj(A,nl,3)||new nl,x=A,F=_.vf(J,18,F),_.qd(x,3,F));x=C;F=_.h(Object.entries(_.Ni(_.Fi("DEVICE",""))));for(J=F.next();!J.done;J=F.next())I=_.h(J.value),J=I.next().value,I=I.next().value,J==="cbrand"?_.vf(x,12,I):J==="cmodel"?_.vf(x,13,I):J==="cbr"?_.vf(x,87,I):J==="cbrver"?_.vf(x,88,I):J==="cos"?_.vf(x,18,
I):J==="cosver"?_.vf(x,19,I):J==="cplatform"&&_.Yj(x,42,Woa(I));A.setClient(C);_.qd(r,1,A);if(C=ota[t])a:{if(_.og(C,ol(C,nta,1)))A=1;else if(C.getPlaylistId())A=2;else break a;_.qd(r,4,C);C=r.getContext()||new kl;x=_.Xj(C,nl,3)||new nl;F=new pl;F.setToken(t);_.Yj(F,1,A);ml(x,12,pl,F);_.qd(C,3,x)}delete ota[t];t=t==="visitorOnlyApprovedKey";Ita()||_.ql(r,2,k);!t&&(A=_.Fi("EVENT_ID"))&&(C=Jta(),x=new Kta,_.vf(x,1,A),_.ql(x,2,C),_.qd(r,5,x));Bta(d);if(_.w("jspb_serialize_with_worker")&&(A=_.nra())&&
d.writeThenSend){_.Lta.set(Mta,{client:b,resolve:c,networklessOptions:d,isIsolated:e,useVSSEndpoint:g,dangerousLogToVisitorSession:t,requestsOutstanding:m});A.postMessage({op:"gelBatchToSerialize",batchRequest:Ec(r),clientEvents:u,key:Mta});Mta++;break}if(u){A=[];for(C=0;C<u.length;C++)try{A.push(new rl(u[C]))}catch(da){_.Hi(new _.qj("Transport failed to deserialize "+String(u[C])))}u=A}else u=[];u=_.h(u);for(A=u.next();!A.done;A=u.next())ml(r,3,rl,A.value);u={startTime:(0,_.Uj)(),ticks:{},infos:{}};
r=r.serialize();u.ticks.geljspc=(0,_.Uj)();_.w("log_jspb_serialize_latency")&&ira("gel_jspb_serialize",u,{sampleRate:.1});_.Nta(r,b,c,d,e,g,t,m)}};
_.Nta=function(a,b,c,d,e,g,k,m){d=d===void 0?{}:d;m=m===void 0?{value:0}:m;g=yta(g);d=Dta(d,k,function(n){_.w("start_client_gcf")&&_.zk.addLowPriorityJob(function(){return _.l(function(r){return _.p(r,Cta(n),0)})});
m.value--;m.value||c()},function(){m.value--;
m.value||c()},e);
d.headers["Content-Type"]="application/json+protobuf";d.postBodyFormat="JSPB";d.postBody=a;Lra(b,g,"",d);vta=!1};
Bta=function(a){_.w("always_send_and_write")&&(a.writeThenSend=!1)};
Dta=function(a,b,c,d,e){a={retry:!0,onSuccess:c,onError:d,networklessOptions:a,dangerousLogToVisitorSession:b,bypassMonitoring:!!e,headers:{},postBodyFormat:"",postBody:"",compress:_.w("compress_gel")||_.w("compress_gel_lr")};Ita()&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Uj)())));return a};
Ata=function(a,b,c){Ita()||(a.requestTimeMs=String(b));_.w("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=_.Fi("EVENT_ID"))&&(c=Jta(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
Jta=function(){var a=_.Fi("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*65535/2));a++;a>65535&&(a=1);_.Ei("BATCH_CLIENT_COUNTER",a);return a};
zta=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}]};
Vsa=function(a,b){var c=_.aj("il_payload_scraping")==="enable_il_payload_scraping";if(!_.Ji("yt.logging.transport.enableScrapingForTest"))if(c)Ota=[],_.Rj("yt.logging.transport.enableScrapingForTest",!0),_.Rj("yt.logging.transport.scrapedPayloadsForTesting",Ota),_.Rj("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.Rj("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.Rj("yt.logging.transport.scrapeClientEvent",!0);else return;c=_.Ji("yt.logging.transport.scrapedPayloadsForTesting");var d=_.Ji("yt.logging.transport.payloadToScrape");b&&(b=_.Ji("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b.payload)())&&c.push(b);b=_.Ji("yt.logging.transport.scrapeClientEvent");if(d&&d.length>=1)for(var e=0;e<d.length;e++)if(a&&a.payload[d[e]])if(b)c.push(a.payload);else{var g=void 0;c.push(((g=a)==null?void 0:g.payload)[d[e]])}_.Rj("yt.logging.transport.scrapedPayloadsForTesting",
c)};
Ita=function(){return _.w("use_request_time_ms_header")||_.w("lr_use_request_time_ms_header")};
ita=function(a,b){return _.w("transport_use_scheduler")===!1?_.dj(a,b):_.w("logging_avoid_blocking_during_navigation")||_.w("lr_logging_avoid_blocking_during_navigation")?_.sl(_.zk,function(){if(_.Pta().currentState==="none")a();else{var c={};_.Pta().install((c.none={callback:a},c))}},b):_.sl(_.zk,a,b)};
qta=function(a){_.w("transport_use_scheduler")?_.zk.cancelJob(a):_.fj(a)};
Cta=function(a){var b,c,d,e,g,k,m,n,r,t;return _.l(function(u){return u.nextAddress==1?(d=(b=a)==null?void 0:(c=b.responseContext)==null?void 0:c.globalConfigGroup,e=_.y(d,Qta),k=(g=d)==null?void 0:g.hotHashData,m=_.y(d,Rta),r=(n=d)==null?void 0:n.coldHashData,(t=_.v().resolve(_.Xi(tl)))?k?e?_.p(u,Sta(t,k,e),2):_.p(u,Sta(t,k),2):u.jumpTo(2):u.return()):r?m?_.p(u,Tta(t,r,m),0):_.p(u,Tta(t,r),0):u.jumpTo(0)})};
fta=function(a,b){b=b===void 0?200:b;return a?b===300?sta:Uta:b===300?tta:Vta};
Ysa=function(a){if(_.w("enable_web_tiered_gel")){a=Wta[a||""];var b,c,d,e=_.v().resolve(_.Xi(tl))==null?void 0:(b=Xta())==null?void 0:(c=b.loggingHotConfig)==null?void 0:(d=c.eventLoggingConfig)==null?void 0:d.payloadPolicies;if(e)for(b=0;b<e.length;b++)if(e[b].payloadNumber===a)return e[b]}};
Xsa=function(a){a=Object.keys(a);a=_.h(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,Wta[b])return b};
Zsa=function(a){switch(a){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}};
bta=function(a){return a==="gelDebuggingEvent"};
yta=function(a){return(a===void 0?0:a)&&_.w("vss_through_gel_video_stats")?"video_stats":"log_event"};
vl=function(a,b,c,d){d=d===void 0?{}:d;var e={},g=Math.round(d.timestamp||(0,_.Uj)());e.eventTimeMs=g<Number.MAX_SAFE_INTEGER?g:0;e[a]=b;a=_.Yk();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};d.sequenceGroup&&!_.w("web_gel_sequence_info_killswitch")&&(a=e.context,b=d.sequenceGroup,b={index:Yta(b),groupKey:b},a.sequence=b,d.endOfSequence&&delete ul[d.sequenceGroup]);(d.sendIsolatedPayload?$sa:cta)({endpoint:"log_event",payload:e,cttAuthInfo:d.cttAuthInfo,dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},
c)};
Yta=function(a){ul[a]=a in ul?ul[a]+1:0;return ul[a]};
_.xl=function(a,b,c){c=c===void 0?{}:c;var d=wl;_.Gi("ytLoggingEventsDefaultDisabled",!1)&&wl===wl&&(d=null);vl(a,b,d,c)};
_.Al=function(){if(_.w("web_fp_via_jspb")){var a=!0;a=a===void 0?!1:a;var b=Zta;Zta=[];if(b){b=_.h(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a?vl(c.payloadName,c.payload,wl,c.options):_.xl(c.payloadName,c.payload,c.options)}gta(void 0,!0);if(!_.w("web_fp_via_jspb_and_json"))return}gta(void 0,!1)};
aua=function(a,b){var c;if((c=b)==null?0:c.componentStack)return b;if(a=a.componentStack)b||(b={}),b.componentStack=$ta(a);return b};
$ta=function(a){return a.slice(0,void 0).map(function(b){return b.name}).join(" > ")};
bua=function(){_.Mi(_.Fi("ERRORS")||[],function(a){_.Bl.apply(null,a)});
_.Ei("ERRORS",[])};
_.Cl=function(a){_.Bl(a)};
_.Dl=function(a){_.Bl(a,"WARNING")};
cua=function(a){a instanceof Error?_.Bl(a):(a=_.Za(a)?JSON.stringify(a):String(a),a=new _.qj(a),a.name="RejectedPromiseError",_.Dl(a))};
dua=function(a,b,c,d,e,g){b=b===void 0?"Unknown file":b;c=c===void 0?0:c;var k=!1,m=aoa("log_window_onerror_fraction");if(m&&Math.random()<m)k=!0;else{m=document.getElementsByTagName("script");for(var n=0,r=m.length;n<r;n++)if(m[n].src.indexOf("/debug-")>0){k=!0;break}}k&&(k=!1,e?k=!0:(typeof a==="string"?m=a:ErrorEvent&&a instanceof ErrorEvent?(k=!0,m=a.message,b=a.filename,c=a.lineno,d=a.colno):(m="Unknown error",b="Unknown file",c=0),e=new _.qj(m),e.name="UnhandledWindowError",e.message=m,e.fileName=
b,e.lineNumber=c,isNaN(d)?delete e.columnNumber:e.columnNumber=d),_.w("wiz_enable_component_stack_propagation_killswitch")||(g=aua(e,g)),g&&_.El(e,g),k?_.Bl(e):_.Dl(e))};
_.Bl=function(a,b,c,d,e,g,k,m){g=g===void 0?{}:g;g.name=c||_.Fi("INNERTUBE_CONTEXT_CLIENT_NAME",1);g.version=d||_.Fi("INNERTUBE_CONTEXT_CLIENT_VERSION");c=g;b=b===void 0?"ERROR":b;k=k===void 0?!1:k;b=b===void 0?"ERROR":b;k=k===void 0?!1:k;if(a&&(a.hasOwnProperty("level")&&a.level&&(b=a.level),_.w("console_log_js_exceptions")&&(d=[],d.push("Name: "+a.name),d.push("Message: "+a.message),a.hasOwnProperty("params")&&d.push("Error Params: "+JSON.stringify(a.params)),a.hasOwnProperty("args")&&d.push("Error args: "+
JSON.stringify(a.args)),d.push("File name: "+a.fileName),d.push("Stacktrace: "+a.stack),d=d.join("\n"),window.console.log(d,a)),!(eua>=5))){d=[];e=_.h(fua);for(g=e.next();!g.done;g=e.next()){g=g.value;try{g()&&d.push(g())}catch(J){}}d=[].concat(_.De(gua),_.De(d));var n=hua(a);e=n.message||"Unknown Error";g=n.name||"UnknownError";var r=n.stack||a.stacktrace||"Not available";if(r.startsWith(g+": "+e)){var t=r.split("\n");t.shift();r=t.join("\n")}t=n.lineNumber||"Not available";n=n.fileName||"Not available";
var u=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var x=0;x<a.args.length&&!(u=Voa(a.args[x],"params."+x,c,u),u>=500);x++);else if(a.hasOwnProperty("params")&&a.params){var A=a.params;if(typeof a.params==="object")for(x in A){if(A[x]){var C="params."+x,F=kj(A[x]);c[C]=F;u+=C.length+F.length;if(u>500)break}}else c.params=kj(A)}if(d.length)for(x=0;x<d.length&&!(u=Voa(d[x],"params.context."+x,c,u),u>=500);x++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);
x={message:e,name:g,lineNumber:t,fileName:n,stack:r,params:c,sampleWeight:1};c=Number(a.columnNumber);isNaN(c)||(x.lineNumber=x.lineNumber+":"+c);if(a.level==="IGNORED")a=0;else a:{a=iua();c=_.h(a.messageWeights);for(d=c.next();!d.done;d=c.next())if(d=d.value,x.message&&x.message.match(d.messageRegExp)){a=d.weight;break a}a=_.h(a.callbackWeights);for(c=a.next();!c.done;c=a.next())if(c=c.value,c.callback(x)){a=c.weight;break a}a=1}x.sampleWeight=a;a=_.h(jua);for(c=a.next();!c.done;c=a.next())if(c=
c.value,c.patternsForType[x.name])for(e=_.h(c.patternsForType[x.name]),d=e.next();!d.done;d=e.next())if(g=d.value,d=x.message.match(g.regexp)){x.params["params.error.original"]=d[0];e=g.groups;g={};for(t=0;t<e.length;t++)g[e[t]]=d[t+1],x.params["params.error."+e[t]]=d[t+1];x.message=c.messageFn(g);break}x.params||(x.params={});a=iua();x.params["params.errorServiceSignature"]="msg="+a.messageWeights.length+"&cb="+a.callbackWeights.length;x.params["params.serviceWorker"]="false";_.ja.document&&_.ja.document.querySelectorAll&&
(x.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new Fl(kua,"sample")).constructor!==Fl&&(x.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(x);if(x.sampleWeight!==0&&!lua.has(x.message)){if(k&&_.w("web_enable_error_204"))mua(b===void 0?"ERROR":b,x);else{b=b===void 0?"ERROR":b;b==="ERROR"?(nua.publish("handleError",x),_.w("record_app_crashed_web")&&oua===0&&x.sampleWeight===1&&(oua++,k={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.w("report_client_error_with_app_crash_ks")||(k.systemHealth={crashData:{clientError:{logMessage:{message:x.message}}}}),_.xl("appCrashed",k)),pua++):b==="WARNING"&&nua.publish("handleWarning",x);if(_.w("kevlar_gel_error_routing")){k=b;m=m===void 0?{}:m;b:{a=_.h(qua);for(c=a.next();!c.done;c=a.next())if(Bj(c.value.toLowerCase())){a=!0;break b}a=!1}if(a)m=void 0;else{c={stackTrace:x.stack};x.fileName&&(c.filename=x.fileName);a=x.lineNumber&&x.lineNumber.split?x.lineNumber.split(":"):[];a.length!==
0&&(a.length!==1||isNaN(Number(a[0]))?a.length!==2||isNaN(Number(a[0]))||isNaN(Number(a[1]))||(c.lineNumber=Number(a[0]),c.columnNumber=Number(a[1])):c.lineNumber=Number(a[0]));a={level:"ERROR_LEVEL_UNKNOWN",message:x.message,errorClassName:x.name,sampleWeight:x.sampleWeight};k==="ERROR"?a.level="ERROR_LEVEL_ERROR":k==="WARNING"&&(a.level="ERROR_LEVEL_WARNNING");c={isObfuscated:!0,browserStackInfo:c};m.pageUrl=window.location.href;m.kvPairs=[];_.Fi("FEXP_EXPERIMENTS")&&(m.experimentIds=_.Fi("FEXP_EXPERIMENTS"));
d=_.Fi("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!aoa("web_disable_gel_stp_ecatcher_killswitch")&&d)for(e=_.h(Object.keys(d)),g=e.next();!g.done;g=e.next())g=g.value,m.kvPairs.push({key:g,value:String(d[g])});if(d=x.params)for(e=_.h(Object.keys(d)),g=e.next();!g.done;g=e.next())g=g.value,m.kvPairs.push({key:"client."+g,value:String(d[g])});d=_.Fi("SERVER_NAME");e=_.Fi("SERVER_VERSION");d&&e&&(m.kvPairs.push({key:"server.name",value:d}),m.kvPairs.push({key:"server.version",value:e}));m={errorMetadata:m,
stackTrace:c,logMessage:a}}m&&(_.xl("clientError",m),(k==="ERROR"||_.w("errors_flush_gel_always_killswitch"))&&_.Al())}_.w("suppress_error_204_logging")||mua(b,x)}try{lua.add(x.message)}catch(J){}eua++}}};
mua=function(a,b){var c=b.params||{};a={urlParams:{a:"logerror",t:"jserror",type:b.name,msg:b.message.substr(0,250),line:b.lineNumber,level:a,"client.name":c.name},postParams:{url:_.Fi("PAGE_NAME",window.location.href),file:b.fileName},method:"POST"};c.version&&(a["client.version"]=c.version);if(a.postParams){b.stack&&(a.postParams.stack=b.stack);b=_.h(Object.keys(c));for(var d=b.next();!d.done;d=b.next())d=d.value,a.postParams["client."+d]=c[d];if(c=_.Fi("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(b=
_.h(Object.keys(c)),d=b.next();!d.done;d=b.next())d=d.value,a.postParams[d]=c[d];(c=_.Fi("LAVA_VERSION"))&&(a.postParams["lava.version"]=c);c=_.Fi("SERVER_NAME");b=_.Fi("SERVER_VERSION");c&&b&&(a.postParams["server.name"]=c,a.postParams["server.version"]=b)}_.hj(_.Fi("ECATCHER_REPORT_HOST","")+"/error_204",a)};
_.rua=function(a,b){b=b===void 0?"ERROR":b;var c=c===void 0?{}:c;var d=_.Ji("ytbin.polymer.shared.lib.tampering.info");d&&(d=d())&&(c["params.tamperingInfo"]=d.sort().join(","));_.Bl(a,b,void 0,void 0,!0,c)};
_.El=function(a){var b=_.Kd.apply(1,arguments);a.args||(a.args=[]);Array.isArray(a.args)&&a.args.push.apply(a.args,_.De(b))};
sua=function(a){a.level="IGNORED"};
tua=function(a,b){gua.push(a);b();gua.pop()};
Hl=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a=_.Gl(a,c,b[c]));return a};
_.uua=function(a,b,c){c=c===void 0?!1:c;if(!a)return null;if(a.adInfoDialogEndpoint||a.backstageImageUploadEndpoint||a.confirmDialogEndpoint||a.clientActionEndpoint||a.createBackstagePostDialogEndpoint||a.createCommentReplyDialogEndpoint||a.flowEndpoint||a.guideBuilderEndpoint||a.liveChatDialogEndpoint||a.modalEndpoint||a.openPopupAction||a.shareEndpoint||a.shareEntityEndpoint||a.showLiveChatItemEndpoint||a.subscriptionManagerEndpoint||a.unlimitedCreateFamilyEndpoint||a.unlimitedFamilyFlowEndpoint||
a.updateCommentDialogEndpoint||a.updateCommentReplyDialogEndpoint||a.userFeedbackEndpoint||a.videoEditorEndpoint||a.ypcCancelSurveyEndpoint)return b=_.$i("polymer_report_client_url_requested_rate"),!c&&Math.random()<b&&_.Dl(new _.qj("urlForEndpoint used on client endpoint",a)),null;var d=_.$i("polymer_report_missing_web_navigation_endpoint_rate");if(a.liveChatEndpoint||a.liveChatReplayEndpoint)d=0;if(!a.commandMetadata&&!a.clickTrackingParams&&Math.random()<d){var e={},g;for(g in a)e[g]="1";_.Dl(new _.qj("Missing navigation data",
e))}e="";if(a.commandMetadata&&a.commandMetadata.webCommandMetadata&&a.commandMetadata.webCommandMetadata.url)e=a.commandMetadata.webCommandMetadata.url;else if(a.searchEndpoint)Math.random()<d&&_.Dl(new _.qj("Should not manually handle search",a)),e="/results?search_query="+encodeURIComponent(a.searchEndpoint.query).replace(/%20/g,"+"),a.searchEndpoint.params&&(e+="&sp="+a.searchEndpoint.params);else if(a.watchEndpoint)Math.random()<d&&_.Dl(new _.qj("Should not manually handle watch",a)),e="/watch?v="+
a.watchEndpoint.videoId,a.watchEndpoint.playlistId&&(e+="&list="+a.watchEndpoint.playlistId),a.watchEndpoint.index&&(e+="&index="+a.watchEndpoint.index),a.watchEndpoint.startTimeSeconds&&(e+="&t="+a.watchEndpoint.startTimeSeconds);else if(a.browseEndpoint)d=a.browseEndpoint.browseId,(g=a.browseEndpoint.canonicalBaseUrl)?e=g:d&&(e=d.substr(0,2),e=e==="FE"?d==="FEwhat_to_watch"?"/":d==="FEmy_videos"?"/my_videos":"/feed/"+d.substr(2):e==="VL"?"/playlist?list="+d.substr(2):"/channel/"+d),e&&a.browseEndpoint.query&&
(e=Hl(e+"/search",{query:a.browseEndpoint.query})),e&&a.browseEndpoint.params&&(e=Hl(e,{params:a.browseEndpoint.params}));else{if(a.urlEndpoint)return a.urlEndpoint.url;a.signInEndpoint?(e="https://accounts.google.com/ServiceLogin",d={},_.Cf.extend(d,b||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),b=d):a.uploadEndpoint?e="//www.youtube.com/upload":a.liveChatEndpoint?(e=a.liveChatEndpoint,d=_.Cf.clone(e),_.Za(e.continuation)&&(g=Object.keys(e.continuation)[0],
d.continuation=e.continuation[g].continuation),e=Hl("/youtubei/v1/live_chat/get_live_chat",d)):a.liveChatReplayEndpoint?(e=_.Cf.clone(a.liveChatReplayEndpoint),e.currentPlayerState&&(_.Cf.extend(e,e.currentPlayerState),delete e.currentPlayerState),e=Hl("/youtubei/v1/live_chat/get_live_chat_replay",e)):a.liveChatItemContextMenuEndpoint?e=Hl("/youtubei/v1/live_chat/get_item_context_menu",a.liveChatItemContextMenuEndpoint):a.liveChatPurchaseMessageEndpoint?e=Hl("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
a.liveChatPurchaseMessageEndpoint):a.openSuperStickerBuyFlowCommand?e=Hl("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",a.openSuperStickerBuyFlowCommand):a.videoEditEndpoint?e=Hl("/edit",{video_id:a.videoEditEndpoint.videoId}):a.liveDashboardEndpoint?e=a.liveDashboardEndpoint.videoId?Hl("/live_dashboard",{v:a.liveDashboardEndpoint.videoId}):"/live_dashboard":a.signalNavigationEndpoint&&a.signalNavigationEndpoint.signal&&a.signalNavigationEndpoint.signal==="WEBCAM"?e="/webcam":a.getPdgBuyFlowCommand&&
(e=Hl(a.getPdgBuyFlowCommand.buyflowApiPath,{params:a.getPdgBuyFlowCommand.params}))}return e||c?Hl(e,b||{}):(_.Dl(new _.qj("Error: Can't construct url for endpoint","keys:"+Object.keys(a).sort().join(","),a)),null)};
vua=function(a){if(a){if(a.browseEndpoint)return!!a.browseEndpoint.nofollow;if(a.watchEndpoint)return!!a.watchEndpoint.nofollow;if(a.urlEndpoint)return!!a.urlEndpoint.nofollow}return!1};
_.xua=function(a,b){var c=b+a,d=wua.get(c);if(d)return d;a=b+"-"+a.replace(/([A-Z])/g,"-$1").toLowerCase();wua.set(c,a);return a};
yua=function(a){var b=_.Ci(a,"action")||_.Ci(a,"command")||_.Ci(a,"endpoint");if(!b)return null;b=_.xua(b,"yt");_.y(a,_.Il)&&(b+="-"+_.y(a,_.Il).signal.toLowerCase().replace(/_/g,"-"));return b};
Cua=function(a){try{var b=Object.keys(a)}catch(e){return[]}for(var c=0;c<b.length;c++){var d=b[c];if(zua.test(d)||Aua.test(d))return Bua(a[d])}return[]};
Bua=function(a){return a.command?[a.command]:a.onExecutionAction?[a.onExecutionAction]:a.onResponseReceivedCommand?[a.onResponseReceivedCommand]:a.updateFlowCommand?[a.updateFlowCommand]:a.clientActions?a.clientActions:a.action?[a.action]:a.actions||a.commands||a.onResponseReceivedActions||a.onResponseReceivedCommands||a.onResponseReceivedEndpoints||[]};
Eua=function(a,b){b=b===void 0?!1:b;var c=_.v().resolve(_.Xi(Jl));c||(c=new Dua,_.v().addProvider({provide:Jl,useValue:c}));return c&&a&&!_.Cf.isEmpty(a)?c.getUrl(a,b):""};
Fua=function(a,b,c){c=c===void 0?"":c;if(b){a.data=b;var d=Eua(b);d?(Nd(a,d),vua(b)||!Ui(d)?a.rel="nofollow":a.removeAttribute("rel"),_.y(b,_.Kl)&&_.y(b,_.Kl).target==="TARGET_NEW_WINDOW"?a.target="_blank":c?a.target=c:a.removeAttribute("target")):(a.removeAttribute("href"),a.removeAttribute("rel"),a.removeAttribute("target"))}};
_.Ol=function(a,b){var c=_.Ug;if(uh())Gua(a,function(){var g=_.Kd.apply(0,arguments);Ch(c,function(){b.apply(null,_.De(g))})});
else{var d=_.Ll.getInstance(),e=Ai(b);ui(function(){e.value=b});
_.wi(function(){var g={},k=_.Ml(d,(g[a]=function(){var m=_.Kd.apply(0,arguments);Ch(c,function(){e.value.apply(e,_.De(m))})},g));
return function(){var m={};_.Nl(d,(m[a]="",m),k)}})}};
_.Pl=function(a){return uh()?Hua(a):Iua(a)};
_.Ql=function(a){return uh()?Hua(a):Iua(a)};
Iua=function(a){return yi(function(){return Hua(a)})};
Hua=function(a){var b=Tna(function(c){b.value&&b.value===c||(b.__count=b.__count?b.__count+1:1);b.value=c;var d=function(){var e=ch(null);try{return a==null?void 0:a(c)}finally{ch(e)}}();
return function(){d==null||d();b.value=null}});
return b};
Jua=function(a){var b=_.Ug,c=rh.slice();return{getFn:function(){return function(d){b.isDisposed||vh(function(){return hh(function(){return a(d)})},{stack:c})!==!0&&d.stopPropagation()}}}};
_.Rl=function(a,b,c){if(uh())Kua(a,b,function(e){var g=ch(null);try{c(e)}finally{ch(g)}});
else{var d=Ai(c);ui(function(){d.value=c});
_.wi(function(){var e=a.value;if(e){var g=function(k){d.value(k)};
e.addEventListener(b,g,void 0);return function(){e?e.removeEventListener(b,g,void 0):Lua(a)}}Lua(a)})}};
Lua=function(a){var b;(b=ah.handleError)==null||b.call.apply(b,[ah].concat(_.De(xh(Una.LOG_NULL_EL_REF_VALUE(),a.__expectedTagName,2))))};
Sl=function(a){if(typeof a.children==="function")return a.children(),null;a=_.h(a.children);for(var b=a.next();!b.done;b=a.next())b=b.value,b();return null};
Mua=function(a){var b;return((b=a.prototype)==null?void 0:b.render)===void 0};
Nua=function(a){a=a.items.map(a.children);return a.length>0&&typeof a[0]==="string"?a.join(""):a};
Pua=function(a,b,c){c=c===void 0?!1:c;vh(function(){return Oua(a,b,c)})};
Oua=function(a,b,c){c=((c===void 0?0:c)?Qua:Tl)(a,function(){Ul(b)});
return c===null?a:c};
Ul=function(a){if(a!==void 0&&a!==null)if(a instanceof fi)for(var b=Gh;Ih()!=null&&xna in Ih()&&b.contains(Ih());)Lh();else if(Array.isArray(a))for(b=_.h(a),a=b.next();!a.done;a=b.next())Ul(a.value);else if(a instanceof wd||"function"==typeof _.de&&a instanceof _.de)Th(a.toString());else if(Yh(a)){if(Ih()!==a){var c,d;b=(d=(c=th())==null?void 0:c.name)!=null?d:"unknown";throw Error("hc`"+a.tagName+"`"+b);}Lh()}else if(a!=null&&a.contentKind===bi||a instanceof Od)for(b=Pma(a),b=Array.from(b.childNodes),
b=_.h(b),a=b.next();!a.done;a=b.next())Gh.appendChild(a.value),Lh();else if(Dd(a)&&(a=a.toString()),c=typeof a,c==="boolean"||c==="number"||c==="string")Th(a);else if(typeof a==="function"){b=Gh;var e=Ih();e&&(e._isSignalTextNode||e._isSafeOrSanitizedHtmlNode)||nna(b,e,a);Lh()}else if(a.type===Nua)Ul(a.type(Object.assign({},a.props,{children:a.children[0]})));else{ki.beforeVisit(a);if(typeof a.type==="string"){a:{a.__open||rma(a.type,a.props.idomKey);e=Gh;for(b in a.props)if(a.props[b]!==Rua){var g=
a.props[b];c=Ph;c.push(b);c.push(g)}b=ah.attributes;b=b===void 0?Vl:b;g=Gh;c=Fh(g);yma(g,c,b);mna(e,a.props,!0);if((a.props.skip||a.props.skipchildren)&&Gh.hasChildNodes())Nh();else{if(a.type==="style"&&Wma(a.children)===null){Nh();b=void 0;break a}Ul(a.children)}sma();a.__open&&(a.__open=!1);Fma(e,a.props);b=e}return b}if(a.type===_.Wh)Ul(a.children);else if(!Sua(a)){b=a;try{Tua(b)}catch(k){a=k,(g=ah.handleError)==null||g.call.apply(g,[ah].concat(_.De(xh(a,(e=b.type)==null?void 0:e.TAG_NAME))))}b.__open&&
(sma(),b.__open=!1)}}};
Uua=function(a,b){var c;Mua(a)?c=new mi(b,a):c=new a(b);c.JSC$8107___type=a;c.__updateContext={nextState:c.state,isForced:!1};return c};
Tua=function(a){var b=a.type,c=b.TAG_NAME;if(b===Sl)a.props.children=a.children,b(a.props);else{a.children.length>0&&(a.props.children=a.children);var d;(d=a.props).idomKey||(d.idomKey=b);if(c){var e=rma(c,a.props.idomKey);a.__open=!0;var g=e.__instance}g||(g=Uua(b,a.props),g.props=null,e&&(e.__instance=g,g.el=e));var k;c=((k=g.__updateContext)!=null?k:{nextState:g.state,isForced:!1}).nextState;g.__updateContext=void 0;b.getDerivedStateFromProps&&(c=b.getDerivedStateFromProps(a.props,c));g.props=
a.props;g.state=c;k=function(){var m=g;ki.beforeRender(m);var n=m.render(m.props);ki.afterRender(m,n);n?(m.props.idomKey&&(n.props.idomKey=m.props.idomKey),m=n):m=void 0;if(n=m)if(n.__open=a.__open,m=Ul(n),a.__open=n.__open,!b.TAG_NAME)if(m)b.TAG_NAME=m.tagName.toLowerCase(),m.__instance=g,g.el=m;else{var r;if((r=g.hooks)==null?0:r.length){var t;(t=ah.handleError)==null||t.call.apply(t,[ah].concat(_.De(xh(Error("nd")))))}}g.didPatch();ki.didPatch(g)};
(c=g.functionComponent)?Jla({component:c,debugInstance:g.props.debugInstance,fn:k}):k()}};
Sua=function(a){var b=a.type;if(!Mua(b)||b===Sl||b.componentType===sh)return!1;a.props.children=a.children.length>1?a.children:a.children[0];var c,d=(c=a.props.idomKey)!=null?c:a.type,e;if(Ih()&&((e=Ih()[di])==null?void 0:e.key)===d){var g=Ih(),k=g[di];if(!k)throw Error("gc`"+g.tagName);var m;(m=k.updateSignalsFromIdomProps)==null||m.call(k,a.props);Vua(k);return!0}if(Wua.has(b.name))throw m=b.name,b=(k=(g=th())==null?void 0:g.name)!=null?k:"unknown",Error("fc`"+m+"`"+b);rna(a.type,a.props,a.children);
a.props.renderedFromIdom=!0;(m=Jla({component:a.type,debugInstance:a.props.debugInstance,fn:function(){return hna(a.type,a.props)}}))&&Xua(m);
return!0};
Yua=function(a){for(var b=0;b<ei(a).length;b++)Lh()};
Vua=function(a){var b=Zua();if(b)Yua(b);else for(var c=0;c<a.numNodes;c++)(b=Zua())?Yua(b):Lh()};
Zua=function(){var a;return(a=Ih()[di])==null?void 0:a.sourceDynamicRange};
Xua=function(a){a=Hma(a);a=Array.isArray(a)?a:[a];a=_.h(a);for(var b=a.next();!b.done;b=a.next())Gh.insertBefore(b.value,Ih()),Lh()};
$ua=function(a){var b=jna(),c=yi(function(){return{value:typeof a==="function"?a():a}});
return[c.value,function(d){if(li!==null){var e;(e=ah.handleError)==null||e.call.apply(e,[ah].concat(_.De(xh(Error("od")))))}c.value=typeof d==="function"?d(c.value):d;b.__updateContext={nextState:b.state,isForced:!0};d=Vg(b.effectContext);e=Xh(!1);try{if(b.el){var g,k={},m=(k.props=b.props,k.type=b.JSC$8107___type,k.children=(g=b.props.children)!=null?g:[],k[Vh]=!0,k);try{Pua(b.el,m,!0)}catch(t){var n,r;(r=ah.handleError)==null||r.call.apply(r,[ah].concat(_.De(xh(t,(n=b.JSC$8107___type)==null?void 0:
n.TAG_NAME))))}}}finally{Xh(e),Xg(d)}}]};
Wl=function(a,b){var c=_.Ug,d=function(e){Ch(c,function(){b(e)})};
window.addEventListener(a,d,void 0);_.zh(function(){window.removeEventListener(a,d,void 0)})};
_.Yl=function(a,b){var c=_.Ug;_.wi(function(){var d,e=(d=b.observer)!=null?d:_.v().resolve(Xl);if(d=a.value){var g=ava(d),k=[];b.showOption&&k.push(e.observe(d,function(){Ch(c,function(){b.visibilityCallback(!0)})},b.showOption));
b.hideOption&&k.push(e.observe(d,function(){Ch(c,function(){b.visibilityCallback(!1)})},b.hideOption));
b.prescanOption&&b.prescanCallback&&k.push(e.observe(d,function(){Ch(c,function(){b.prescanCallback()})},b.prescanOption));
var m;g.visibilityMonitorKeys=((m=g.visibilityMonitorKeys)!=null?m:[]).concat(k)}})};
ava=function(a){var b;return(b=a.polymerController)!=null?b:a};
_.Zl=function(a){a.componentType=sh};
eva=function(a,b){var c=bva;return _.q(_.Wh,null,_.Tg(ah.enableSinkLazyTsx,function(){return _.q(cva,{id:c,value:a,children:b})},function(){var d=dva(c,a);
Zg(d);d=Vg(d);try{return b()}finally{Xg(d)}}))};
cva=function(a){var b=a.children;a=dva(a.id,a.value);Zg(a);a=Vg(a);try{return _.q(_.Wh,null,ii(b()))}finally{Xg(a)}};
dva=function(a,b){return Object.assign(Object.create(fva),{id:a,contextValue:b})};
gva=function(a){var b,c=_.Ug;_.yh(function(){var d=Vg(c),e=Xh(!b);try{if(b)Pua(b,a.children(),!0);else if(b=ii(a.children()),!(b instanceof Element))throw Error("pd");}finally{Xh(e),Xg(d)}});
return b};
hva=function(a){var b,c=Ah(function(){var d=Xh(!0);try{b=ei(a())}finally{Xh(d)}},!1);
return[b,c]};
kva=function(a,b,c){iva(a,b);a[b][jva].unshift(c)};
iva=function(a,b){if(!a[b]||!a[b][jva]){var c=a[b],d=c?[c]:[];a[b]=function(){for(var e=_.h(d),g=e.next();!g.done;g=e.next())g.value.apply(this,arguments)};
a[b][jva]=d}};
lva=function(a){if(!a)return[];var b=[];a=_.h(a);for(var c=a.next();!c.done;c=a.next())c=c.value,Array.isArray(c)?b.push.apply(b,_.De(lva(c))):b.push(c);return b};
_.am=function(a,b){if(a&&mva.test(a)||a==="//")return a;if(nva===void 0){nva=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";nva=c.href==="http://a/c%20d"}catch(d){}}b||(b=document.baseURI||window.location.href);if(nva)try{return(new URL(a,b)).href}catch(d){return a}$l||($l=document.implementation.createHTMLDocument("temp"),$l.base=$l.createElement("base"),$l.head.appendChild($l.base),$l.anchor=$l.createElement("a"),$l.body.appendChild($l.anchor));$l.base.href=b;$l.anchor.href=a;return $l.anchor.href||
a};
pva=function(a,b){return a.replace(ova,function(c,d,e,g){return d+"'"+_.am(e.replace(/["']/g,""),b)+"'"+g})};
qva=function(a){return a.substring(0,a.lastIndexOf("/")+1)};
tva=function(){rva=!1;for(var a=bm.length,b=0;b<a;b++){var c=bm[b];if(c)try{c()}catch(d){setTimeout(function(){throw d;})}}bm.splice(0,a);
sva+=a};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(a){console.log("["+a.is+"]: registered")};
vva=function(a){uva.push(a)};
cm=function(a){return wva[a]||(wva[a]=a.indexOf("-")<0?a:a.replace(xva,function(b){return b[1].toUpperCase()}))};
dm=function(a){return wva[a]||(wva[a]=a.replace(yva,"-$1").toLowerCase())};
zva=function(a,b){var c=b.parentInfo&&zva(a,b.parentInfo);if(c)for(a=c.firstChild,c=0;a;a=a.nextSibling){if(b.parentIndex===c++)return a}else return a};
Ava=function(a,b){a=a._methodHost||a;return function(c){if(a[b])a[b](c,c.detail);else console.warn("listener method `"+b+"` not defined")}};
em=function(a){return a.indexOf(".")>=0};
fm=function(a){var b=a.indexOf(".");return b===-1?a:a.slice(0,b)};
Bva=function(a,b){return a.indexOf(b+".")===0};
gm=function(a,b){return b.indexOf(a+".")===0};
im=function(a,b,c){return b+c.slice(a.length)};
Cva=function(a,b){return a===b||Bva(a,b)||gm(a,b)};
jm=function(a){if(Array.isArray(a)){for(var b=[],c=0;c<a.length;c++)for(var d=a[c].toString().split("."),e=0;e<d.length;e++)b.push(d[e]);return b.join(".")}return a};
Dva=function(a){return Array.isArray(a)?jm(a).split("."):a.toString().split(".")};
km=function(a,b,c){b=Dva(b);for(var d=0;d<b.length;d++){if(!a)return;a=a[b[d]]}c&&(c.path=b.join("."));return a};
Eva=function(a,b,c){var d=Dva(b),e=d[d.length-1];if(d.length>1){for(b=0;b<d.length-1;b++)if(a=a[d[b]],!a)return;a[e]=c}else a[b]=c;return d.join(".")};
Fva=function(a,b,c){var d=a[b];if(!d)d=a[b]={};else if(!a.hasOwnProperty(b)&&(d=a[b]=Object.create(a[b]),c))for(var e in d)for(a=d[e],b=d[e]=Array(a.length),c=0;c<a.length;c++)b[c]=a[c];return d};
mm=function(a,b,c,d,e,g){if(b){var k=!1,m=lm++,n;for(n in c){var r=e?fm(n):n;if(r=b[r])for(var t=0,u=r.length,x=void 0;t<u&&(x=r[t]);t++)x.info&&x.info.lastRun===m||e&&!Gva(n,x.trigger)||(x.info&&(x.info.lastRun=m),x.fn(a,n,c,d,x.info,e,g),k=!0)}return k}return!1};
Gva=function(a,b){if(b){var c=b.name;return c==a||!(!b.structured||!Bva(c,a))||!(!b.wildcard||!gm(c,a))}return!0};
Hva=function(a,b,c,d,e){b=typeof e.method==="string"?a[e.method]:e.method;c=e.property;b?b.call(a,a.__data[c],d[c]):e.dynamicFn||console.warn("observer method `"+e.method+"` not defined")};
Iva=function(a,b,c,d){c={value:c,queueProperty:!0};d&&(c.path=d);(0,_.nm)(a).dispatchEvent(new CustomEvent(b,{detail:c}))};
Jva=function(a,b,c,d,e,g){g=(d=(g?fm(b):b)!=b?b:null)?km(a,d):a.__data[b];d&&g===void 0&&(g=c[b]);Iva(a,e.eventName,g,d)};
Kva=function(a,b,c,d,e){c=a.__data[b];om&&(c=om(c,e.attrName,"attribute",a));a._propertyToAttribute(b,e.attrName,c)};
Mva=function(a){var b=a.constructor.__orderedComputedDeps;if(!b){b=new Map;for(var c=a.__computeEffects,d=Lva(a),e=d.counts,g=d.ready,k=d.total;d=g.shift();)b.set(d,b.size),(d=c[d])&&d.forEach(function(m){m=m.info.methodInfo;--k;--e[m]===0&&g.push(m)});
k!==0&&console.warn("Computed graph for "+a.localName+" incomplete; circular?");a.constructor.__orderedComputedDeps=b}return b};
Lva=function(a){var b=a.__computeInfo,c={};a=a.__computeEffects;var d=[],e=0,g;for(g in b){var k=b[g];e+=c[g]=k.args.filter(function(n){return!n.literal}).length+(k.dynamicFn?1:0)}for(var m in a)b[m]||d.push(m);
return{counts:c,ready:d,total:e}};
Ova=function(a,b,c,d,e){b=Nva(a,b,c,d,e);if(b===pm)return!1;e=e.methodInfo;if(a.__dataHasAccessor&&a.__dataHasAccessor[e])return a._setPendingProperty(e,b,!0);a[e]=b;return!1};
Rva=function(a,b,c,d,e,g,k){c.bindings=c.bindings||[];d={kind:d,target:e,parts:g,literal:k,isCompound:g.length!==1};c.bindings.push(d);d.target&&d.kind!="attribute"&&d.kind!="text"&&!d.isCompound&&d.parts[0].mode==="{"&&(c=d.parts[0],g=c.negate,d.listenerEvent=c.event||dm(e)+"-changed",d.listenerNegate=g);e=b.nodeInfoList.length;for(c=0;c<d.parts.length;c++){var m=d.parts[c];m.compoundIndex=c;g=a;k=b;var n=d,r=m,t=e;if(!r.literal)if(n.kind==="attribute"&&n.target[0]==="-")console.warn("Cannot set attribute "+
n.target+' because "-" is not a valid attribute starting character');else for(m=r.dependencies,n={index:t,binding:n,part:r,evaluator:g},r=0;r<m.length;r++)t=m[r],typeof t=="string"&&(t=Pva(t),t.wildcard=!0),g._addTemplatePropertyEffect(k,t.rootProperty,{fn:Qva,info:n,trigger:t})}};
Qva=function(a,b,c,d,e,g,k){k=k[e.index];var m=e.binding,n=e.part;g&&n.source&&b.length>n.source.length&&m.kind=="property"&&!m.isCompound&&k.__isPropertyEffectsClient&&k.__dataHasAccessor&&k.__dataHasAccessor[m.target]?(c=c[b],b=im(n.source,m.target,b),k._setPendingPropertyOrPath(b,c,!1,!0)&&a._enqueueClient(k)):(b=e.evaluator._evaluateBinding(a,n,b,c,d,g),b!==pm&&(m.isCompound&&(c=k.__dataCompoundStorage[m.target],c[n.compoundIndex]=b,b=c.join("")),m.kind==="attribute"||m.target!=="textContent"&&
(m.target!=="value"||k.localName!=="input"&&k.localName!=="textarea")||(b=b==void 0?"":b),n=b,om&&(n=om(n,m.target,m.kind,k)),m.kind=="attribute"?a._valueToNodeAttribute(k,n,m.target):(m=m.target,k.__isPropertyEffectsClient&&k.__dataHasAccessor&&k.__dataHasAccessor[m]?k.__readOnly&&k.__readOnly[m]||k._setPendingProperty(m,n)&&a._enqueueClient(k):a._setUnmanagedPropertyToNode(k,m,n))))};
Sva=function(a,b,c){if(c.listenerEvent){var d=c.parts[0];a.addEventListener(c.listenerEvent,function(e){var g=c.target,k=d.source,m=d.negate,n=e.detail,r=n&&n.path;r?(k=im(g,k,r),e=n&&n.value):e=e.currentTarget[g];b.__readOnly&&b.__readOnly[k]||!b._setPendingPropertyOrPath(k,m?!e:e,!0,!!r)||n&&n.queueProperty||b._invalidateProperties()})}};
Tva=function(a,b,c,d,e,g){g=b.static||g&&(typeof g!=="object"||g[b.methodName]);e={methodName:b.methodName,args:b.args,methodInfo:e,dynamicFn:g};for(var k=0,m=void 0;k<b.args.length&&(m=b.args[k]);k++)m.literal||a._addPropertyEffect(m.rootProperty,c,{fn:d,info:e,trigger:m});g&&a._addPropertyEffect(b.methodName,c,{fn:d,info:e});return e};
Nva=function(a,b,c,d,e){d=a._methodHost||a;var g=d[e.methodName];if(g)return a=a._marshalArgs(e.args,b,c),a===pm?pm:g.apply(d,a);e.dynamicFn||console.warn("method `"+e.methodName+"` not defined")};
Uva=function(a){for(var b="",c=0;c<a.length;c++)b+=a[c].literal||"";return b};
Xva=function(a){if(a=a.match(/([^\s]+?)\(([\s\S]*)\)/)){var b={methodName:a[1],static:!0,args:Vva};return a[2].trim()?Wva(a[2].replace(/\\,/g,"&comma;").split(","),b):b}return null};
Wva=function(a,b){b.args=a.map(function(c){c=Pva(c);c.literal||(b.static=!1);return c},this);
return b};
Pva=function(a){a=a.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var b={name:a,value:"",literal:!1},c=a[0];c==="-"&&(c=a[1]);c>="0"&&c<="9"&&(c="#");switch(c){case "'":case '"':b.value=a.slice(1,-1);b.literal=!0;break;case "#":b.value=Number(a),b.literal=!0}b.literal||(b.rootProperty=fm(a),b.structured=em(a),b.structured&&(b.wildcard=a.slice(-2)==".*",b.wildcard&&(b.name=a.slice(0,-2))));return b};
Yva=function(a,b,c){a=km(a,c);a===void 0&&(a=b[c]);return a};
Zva=function(a,b,c,d){d={indexSplices:d};qm&&!a._overrideLegacyUndefined&&(b.splices=d);a.notifyPath(c+".splices",d);a.notifyPath(c+".length",b.length);qm&&!a._overrideLegacyUndefined&&(d.indexSplices=[])};
rm=function(a,b,c,d,e,g){Zva(a,b,c,[{index:d,addedCount:e,removed:g,object:b,type:"splice"}])};
$va=function(a){a=pva((a.body?a.body:a).textContent,a.baseURI);var b=document.createElement("style");b.textContent=a;return b};
bwa=function(a){a=a.trim().split(/\s+/);for(var b=[],c=0;c<a.length;c++)b.push.apply(b,_.De(awa(a[c])));return b};
awa=function(a){var b=sm.import(a);if(!b)return console.warn("Could not find style data in module named",a),[];if(b._styles===void 0){a=[];a.push.apply(a,_.De(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(b)));var c=b.querySelector("template");c&&a.push.apply(a,_.De(cwa(c,b.assetpath)));b._styles=a}return b._styles};
cwa=function(a,b){if(!a._styles){for(var c=[],d=a.content.querySelectorAll("style"),e=0;e<d.length;e++){var g=d[e],k=g.getAttribute("include");k&&c.push.apply(c,_.De(bwa(k).filter(function(m,n,r){return r.indexOf(m)===n})));
b&&(g.textContent=pva(g.textContent,b));c.push(g)}a._styles=c}return a._styles};
dwa=function(a){return(a=sm.import(a))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(a):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(a){var b=[];a=a.querySelectorAll("link[rel=import][type~=css]");for(var c=0;c<a.length;c++){var d=a[c];if(d.import){var e=d.import;if((d=d.hasAttribute("shady-unscoped"))&&!e._unscopedStyle){var g=$va(e);g.setAttribute("shady-unscoped","");e._unscopedStyle=g}else e._style||(e._style=$va(e));b.push(d?e._unscopedStyle:e._style)}}return b};
fwa=function(a){a=a.trim().split(/\s+/);for(var b="",c=0;c<a.length;c++)b+=ewa(a[c]);return b};
ewa=function(a){var b=sm.import(a);if(b&&b._cssText===void 0){var c=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(b),d=b.querySelector("template");d&&(c+=gwa(d,b.assetpath));b._cssText=c||null}b||console.warn("Could not find style data in module named",a);return b&&b._cssText||""};
gwa=function(a,b){var c="";a=cwa(a,b);for(b=0;b<a.length;b++){var d=a[b];d.parentNode&&d.parentNode.removeChild(d);c+=d.textContent}return c};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(a){var b="";a=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(a);for(var c=0;c<a.length;c++)b+=a[c].textContent;return b};
tm=function(a,b){return{index:a,removed:[],addedCount:b}};
iwa=function(a,b,c,d){var e=0,g=0,k=0,m=0,n=Math.min(b-e,d-g);if(e==0&&g==0)a:{for(k=0;k<n;k++)if(a[k]!==c[k])break a;k=n}if(b==a.length&&d==c.length){m=a.length;for(var r=c.length,t=0;t<n-k&&hwa(a[--m],c[--r]);)t++;m=t}e+=k;g+=k;b-=m;d-=m;if(b-e==0&&d-g==0)return[];if(e==b){for(b=tm(e,0);g<d;)b.removed.push(c[g++]);return[b]}if(g==d)return[tm(e,b-e)];n=e;k=g;d=d-k+1;m=b-n+1;b=Array(d);for(r=0;r<d;r++)b[r]=Array(m),b[r][0]=r;for(r=0;r<m;r++)b[0][r]=r;for(r=1;r<d;r++)for(t=1;t<m;t++)if(a[n+t-1]===
c[k+r-1])b[r][t]=b[r-1][t-1];else{var u=b[r-1][t]+1,x=b[r][t-1]+1;b[r][t]=u<x?u:x}n=b.length-1;k=b[0].length-1;d=b[n][k];for(a=[];n>0||k>0;)n==0?(a.push(2),k--):k==0?(a.push(3),n--):(m=b[n-1][k-1],r=b[n-1][k],t=b[n][k-1],u=r<t?r<m?r:m:t<m?t:m,u==m?(m==d?a.push(0):(a.push(1),d=m),n--,k--):u==r?(a.push(3),n--,d=r):(a.push(2),k--,d=t));a.reverse();b=void 0;n=[];for(k=0;k<a.length;k++)switch(a[k]){case 0:b&&(n.push(b),b=void 0);e++;g++;break;case 1:b||(b=tm(e,0));b.addedCount++;e++;b.removed.push(c[g]);
g++;break;case 2:b||(b=tm(e,0));b.addedCount++;e++;break;case 3:b||(b=tm(e,0)),b.removed.push(c[g]),g++}b&&n.push(b);return n};
jwa=function(a,b){return iwa(a,a.length,b,b.length)};
hwa=function(a,b){return a===b};
lwa=function(a){if(a instanceof kwa)return a.value;throw Error("Gd`"+a);};
mwa=function(a,b){for(var c in b)c===null?a.style.removeProperty(c):a.style.setProperty(c,b[c])};
nwa=function(a,b){return(a=window.getComputedStyle(a).getPropertyValue(b))?a.trim():""};
rwa=function(a){requestAnimationFrame(function(){owa?owa(a):(pwa||(pwa=new Promise(function(b){qwa=b}),document.readyState==="complete"?qwa():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&qwa()})),pwa.then(function(){a&&a()}))})};
uwa=function(a){swa=a&&a.shimcssproperties?!1:twa||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
zwa=function(a){if(!(vwa.indexOf(a)>-1)&&a!=="touchend"&&wwa&&xwa&&ywa)return{passive:!0}};
Dwa=function(a){for(var b=Awa?["click"]:vwa,c=0,d;c<b.length;c++)d=b[c],a?(Bwa.length=0,document.addEventListener(d,Cwa,!0)):document.removeEventListener(d,Cwa,!0)};
um=function(a){var b=a.type;return vwa.indexOf(b)>-1?b==="mousemove"?(b=a.buttons===void 0?1:a.buttons,a instanceof window.MouseEvent&&!Ewa&&(b=Fwa[a.which]||0),!!(b&1)):(a.button===void 0?0:a.button)===0:!1};
Gwa=function(a){if(a.type==="click"){if(a.detail===0)return!0;var b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a);if(!b.nodeType||b.nodeType!==Node.ELEMENT_NODE)return!0;b=b.getBoundingClientRect();var c=a.pageX;a=a.pageY;return!(c>=b.left&&c<=b.right&&a>=b.top&&a<=b.bottom)}return!1};
Hwa=function(a,b,c){a.movefn=b;a.upfn=c;document.addEventListener("mousemove",b);document.addEventListener("mouseup",c)};
vm=function(a){document.removeEventListener("mousemove",a.movefn);document.removeEventListener("mouseup",a.upfn);a.movefn=null;a.upfn=null};
Iwa=function(a,b){for(var c=document.elementFromPoint(a,b),d=c;d&&d.shadowRoot&&!window.ShadyDOM;){var e=d;d=d.shadowRoot.elementFromPoint(a,b);if(e===d)break;d&&(c=d)}return c};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a){var b=Jwa(a);return b.length>0?b[0]:a.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a){var b=a.type,c=a.currentTarget.__polymerGestures;if(c&&(c=c[b])){if(!a.__polymerGesturesHandled&&(a.__polymerGesturesHandled={},b.slice(0,5)==="touch")){var d=a.changedTouches[0];b==="touchstart"&&a.touches.length===1&&(Kwa=d.identifier);if(Kwa!==d.identifier)return;wwa||(b==="touchstart"||b==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a)}d=
a.__polymerGesturesHandled;if(!d.skip){for(var e=0,g;e<wm.length;e++)g=wm[e],c[g.name]&&!d[g.name]&&g.flow&&g.flow.start.indexOf(a.type)>-1&&g.reset&&g.reset();for(e=0;e<wm.length;e++)g=wm[e],c[g.name]&&!d[g.name]&&(d[g.name]=!0,g[b](a))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a){var b=a.changedTouches[0],c=a.type;if(c==="touchstart")Lwa=b.clientX,Mwa=b.clientY,Nwa=!1;else if(c==="touchmove"&&!Nwa){Nwa=!0;c="auto";for(var d=Jwa(a),e=0,g;e<d.length;e++)if(g=d[e],g.__polymerGesturesTouchAction){c=g.__polymerGesturesTouchAction;break}d=!1;e=Math.abs(Lwa-b.clientX);b=Math.abs(Mwa-b.clientY);a.cancelable&&(c==="none"?d=!0:c==="pan-x"?d=b>e:c==="pan-y"&&(d=e>b));d?a.preventDefault():
xm("track")}};
zm=function(a,b,c){return ym[b]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a,b,c),!0):!1};
Am=function(a,b,c){return ym[b]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a,b,c),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a,b,c){var d=ym[b],e=d.deps,g=d.name,k=a.__polymerGestures;k||(a.__polymerGestures=k={});for(var m=0,n,r;m<e.length;m++)n=e[m],Awa&&vwa.indexOf(n)>-1&&n!=="click"||((r=k[n])||(k[n]=r={_count:0}),r._count===0&&a.addEventListener(n,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,zwa(n)),r[g]=(r[g]||0)+1,r._count=(r._count||0)+1);a.addEventListener(b,c);d.touchAction&&_.Bm(a,d.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a,b,c){var d=ym[b],e=d.deps;d=d.name;var g=a.__polymerGestures;if(g)for(var k=0,m,n;k<e.length;k++)m=e[k],(n=g[m])&&n[d]&&(n[d]=(n[d]||1)-1,n._count=(n._count||1)-1,n._count===0&&a.removeEventListener(m,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,zwa(m)));a.removeEventListener(b,c)};
Owa=function(a){wm.push(a);for(var b=0;b<a.emits.length;b++)ym[a.emits[b]]=a};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a){for(var b=0,c;b<wm.length;b++){c=wm[b];for(var d=0,e;d<c.emits.length;d++)if(e=c.emits[d],e===a)return c}return null};
_.Bm=function(a,b){wwa&&a instanceof HTMLElement&&Cm.run(function(){a.style.touchAction=b});
a.__polymerGesturesTouchAction=b};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a,b,c){b=new Event(b,{bubbles:!0,cancelable:!0,composed:!0});b.detail=c;(0,_.nm)(a).dispatchEvent(b);b.defaultPrevented&&(a=c.preventer||c.sourceEvent)&&a.preventDefault&&a.preventDefault()};
xm=function(a){a=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a);a.info&&(a.info.prevent=!0)};
Dm=function(a,b,c,d){b&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b,a,{x:c.clientX,y:c.clientY,sourceEvent:c,preventer:d,prevent:function(e){return xm(e)}})};
Pwa=function(a,b,c){if(a.prevent)return!1;if(a.started)return!0;c=Math.abs(a.y-c);return Math.abs(a.x-b)>=5||c>=5};
Qwa=function(a,b,c){if(b){var d=a.moves[a.moves.length-2],e=a.moves[a.moves.length-1],g=e.x-a.x,k=e.y-a.y,m=0;if(d){var n=e.x-d.x;m=e.y-d.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b,"track",{state:a.state,x:c.clientX,y:c.clientY,dx:g,dy:k,ddx:n,ddy:m,sourceEvent:c,hover:function(){return Iwa(c.clientX,c.clientY)}})}};
Swa=function(a,b,c){var d=Math.abs(b.clientX-a.x),e=Math.abs(b.clientY-a.y),g=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c||b);!g||Rwa[g.localName]&&g.hasAttribute("disabled")||!(isNaN(d)||isNaN(e)||d<=25&&e<=25||Gwa(b))||a.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g,"tap",{x:b.clientX,y:b.clientY,sourceEvent:b,preventer:c})};
Twa=function(a,b,c,d,e){var g;e&&(g=typeof c==="object"&&c!==null)&&(d=a.__dataTemp[b]);d=d!==c&&(d===d||c===c);g&&d&&(a.__dataTemp[b]=c);return d};
Vwa=function(){if(Em&&!Fm){if(!Uwa){Uwa=!0;var a=document.createElement("style");a.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(a)}return!0}return!1};
Xwa=function(){return Wwa};
Ywa=function(a,b){Wwa=a;Object.setPrototypeOf(a,b.prototype);new b;Wwa=null};
Zwa=function(a,b){for(var c=0;c<b.length;c++){var d=b[c];if(!!a!=!!d.__hideTemplateChildren__)if(d.nodeType===Node.TEXT_NODE)a?(d.__polymerTextContent__=d.textContent,d.textContent=""):d.textContent=d.__polymerTextContent__;else if(d.localName==="slot")if(a)d.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.nm)((0,_.nm)(d).parentNode).replaceChild(d.__polymerReplaced__,d);else{var e=d.__polymerReplaced__;e&&(0,_.nm)((0,_.nm)(e).parentNode).replaceChild(d,e)}else d.style&&(a?(d.__polymerDisplay__=
d.style.display,d.style.display="none"):d.style.display=d.__polymerDisplay__);d.__hideTemplateChildren__=a;d._showHideChildren&&d._showHideChildren(a)}};
$wa=function(a){return(a=a.__dataHost)&&a._methodHost||a};
cxa=function(a,b,c){var d=c.mutableData?axa:Gm;Hm.mixin&&(d=Hm.mixin(d));var e=function(){return d.apply(this,arguments)||this};
_.z(e,d);e.prototype.__templatizeOptions=c;e.prototype._bindTemplate(a);bxa(e,a,b,c);return e};
hxa=function(a,b,c,d){var e=c.forwardHostProp;if(e&&b.hasHostProps){var g=a.localName=="template",k=b.templatizeTemplateClass;if(!k){if(g){var m=c.mutableData?dxa:exa;k=function(){return m.apply(this,arguments)||this};
_.z(k,m);k=b.templatizeTemplateClass=k}else{var n=a.constructor;k=function(){return n.apply(this,arguments)||this};
_.z(k,n);k=b.templatizeTemplateClass=k}var r=b.hostProps,t;for(t in r)k.prototype._addPropertyEffect("_host_"+t,k.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:fxa(e)}),k.prototype._createNotifyingProperty("_host_"+t);Im&&d&&gxa(b,c,d)}a.__dataProto&&Object.assign(a.__data,a.__dataProto);if(g)Ywa(a,k),a.__dataTemp={},a.__dataPending=null,a.__dataOld=null,a._enableProperties();else{Object.setPrototypeOf(a,k.prototype);b=b.hostProps;for(var u in b)u="_host_"+u,u in a&&(b=a[u],delete a[u],a.__data[u]=
b)}}};
fxa=function(a){return function(b,c,d){a.call(b.__templatizeOwner,c.substring(6),d[c])}};
bxa=function(a,b,c,d){var e=c.hostProps||{},g;for(g in d.instanceProps){delete e[g];var k=d.notifyInstanceProp;k&&a.prototype._addPropertyEffect(g,a.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:ixa(k)})}if(d.forwardHostProp&&b.__dataHost)for(var m in e)c.hasHostProps||(c.hasHostProps=!0),a.prototype._addPropertyEffect(m,a.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:jxa()})};
ixa=function(a){return function(b,c,d){a.call(b.__templatizeOwner,b,c,d[c])}};
jxa=function(){return function(a,b,c){a.__dataHost._setPendingPropertyOrPath("_host_"+b,c[b],!0,!0)}};
Hm=function(a,b,c){if(Jm&&!$wa(a))throw Error("Md");c=c||{};if(a.__templatizeOwner)throw Error("Nd");a.__templatizeOwner=b;var d=(b?b.constructor:Gm)._parseTemplate(a),e=d.templatizeInstanceClass;e||(e=cxa(a,d,c),d.templatizeInstanceClass=e);var g=$wa(a);hxa(a,d,c,g);c=function(){return e.apply(this,arguments)||this};
_.z(c,e);c.prototype._methodHost=g;c.prototype.__dataHost=a;c.prototype.__templatizeOwner=b;c.prototype.__hostProps=d.hostProps;return c};
gxa=function(a,b,c){c=c.constructor._properties;a=a.propertyEffects;b=b.instanceProps;for(var d in a)if(!(c[d]||b&&b[d]))for(var e=a[d],g=0;g<e.length;g++){var k=e[g].info.part;if(!k.signature||!k.signature.static){console.warn("Property '"+d+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
kxa=function(a,b){for(var c;b;)if(c=b.__dataHost?b:b.__templatizeInstance)if(c.__dataHost!=a)b=c.__dataHost;else return c;else b=(0,_.nm)(b).parentNode;return null};
Km=function(a){return a.localName==="slot"};
lxa=function(){for(var a=Lm.prototype,b="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),c={},d=0;d<b.length;c={method$jscomp$32:void 0},d++)c.method$jscomp$32=b[d],a[c.method$jscomp$32]=function(e){return function(){return this.node[e.method$jscomp$32].apply(this.node,arguments)}}(c)};
mxa=function(a,b){for(var c={},d=0;d<b.length;c={name$jscomp$377:void 0},d++)c.name$jscomp$377=b[d],Object.defineProperty(a,c.name$jscomp$377,{get:function(e){return function(){return this.node[e.name$jscomp$377]}}(c),
configurable:!0})};
nxa=function(){for(var a=Lm.prototype,b=["textContent","innerHTML","className"],c={},d=0;d<b.length;c={name$jscomp$378:void 0},d++)c.name$jscomp$378=b[d],Object.defineProperty(a,c.name$jscomp$378,{get:function(e){return function(){return this.node[e.name$jscomp$378]}}(c),
set:function(e){return function(g){this.node[e.name$jscomp$378]=g}}(c),
configurable:!0})};
oxa=function(){Mm=document.documentElement.getAttribute("dir");Mm=document.documentElement.getAttribute("dir");for(var a=0;a<Nm.length;a++){var b=Nm[a];b.__autoDirOptOut||b.setAttribute("dir",Mm)}};
sxa=function(){Om=!0;requestAnimationFrame(function(){Om=!1;pxa(qxa);setTimeout(function(){for(var a=0,b=Pm.length;a<b;a++)rxa(Pm.shift())})})};
pxa=function(a){for(;a.length;)rxa(a.shift())};
rxa=function(a){var b=a[0],c=a[1];a=a[2];try{c.apply(b,a)}catch(d){setTimeout(function(){throw d;})}};
_.txa=function(a,b,c){Om||sxa();qxa.push([a,b,c])};
_.Qm=function(a,b,c){Om||sxa();Pm.push([a,b,c])};
wxa=function(a,b){b=b===void 0?!1:b;if(!uxa||!vxa||!uxa.handlesDynamicScoping)return null;var c=vxa.ScopingShim;if(!c)return null;var d=c.scopeForNode(a),e=(0,_.nm)(a).getRootNode(),g=function(k){if((0,_.nm)(k).getRootNode()===e){var m=Array.from(uxa.nativeMethods.querySelectorAll.call(k,"*"));m.push(k);for(k=0;k<m.length;k++){var n=m[k];if((0,_.nm)(n).getRootNode()===e){var r=c.currentScopeForNode(n);r!==d&&(r!==""&&c.unscopeNode(n,r),c.scopeNode(n,d))}}}};
g(a);return b?(b=new MutationObserver(function(k){for(var m=0;m<k.length;m++)for(var n=k[m],r=0;r<n.addedNodes.length;r++){var t=n.addedNodes[r];t.nodeType===Node.ELEMENT_NODE&&g(t)}}),b.observe(a,{childList:!0,
subtree:!0}),b):null};
xxa=function(){document.body.removeAttribute("unresolved")};
Cxa=function(a){var b=a=a.replace(yxa,"").replace(zxa,""),c=new Axa;c.start=0;c.end=b.length;for(var d=c,e=0,g=b.length;e<g;e++)if(b[e]==="{"){d.rules||(d.rules=[]);var k=d,m=k.rules[k.rules.length-1]||null;d=new Axa;d.start=e+1;d.parent=k;d.previous=m;k.rules.push(d)}else b[e]==="}"&&(d.end=e+1,d=d.parent||c);return Bxa(c,a)};
Bxa=function(a,b){var c=b.substring(a.start,a.end-1);a.parsedCssText=a.cssText=c.trim();a.parent&&(c=b.substring(a.previous?a.previous.end:a.parent.start,a.start-1),c=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(c),c=c.replace(Dxa," "),c=c.substring(c.lastIndexOf(";")+1),c=a.parsedSelector=a.selector=c.trim(),a.atRule=c.indexOf("@")===0,a.atRule?c.indexOf("@media")===0?a.type=4:c.match(Exa)&&(a.type=7,a.keyframesName=a.selector.split(Dxa).pop()):c.indexOf("--")===
0?a.type=1E3:a.type=1);if(c=a.rules)for(var d=0,e=c.length,g=void 0;d<e&&(g=c[d]);d++)Bxa(g,b);return a};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(a){return a.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var b=arguments[1],c=6-b.length;c--;)b="0"+b;return"\\"+b})};
Fxa=function(a,b,c){c=c===void 0?"":c;var d="";if(a.cssText||a.rules){var e=a.rules;if(e&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(e))for(var g=0,k=e.length,m=void 0;g<k&&(m=e[g]);g++)d=Fxa(m,b,d);else b?b=a.cssText:(b=a.cssText,b=b.replace(Gxa,"").replace(Hxa,""),b=b.replace(Ixa,"").replace(Jxa,"")),(d=b.trim())&&(d="  "+d+"\n")}d&&(a.selector&&(c+=a.selector+" {\n"),c+=d,a.selector&&(c+="}\n\n"));return c};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(a){a=a[0];return!!a&&!!a.selector&&a.selector.indexOf("--")===0};
Lxa=function(a){if(a=Kxa[a])a._applyShimCurrentVersion=a._applyShimCurrentVersion||0,a._applyShimValidatingVersion=a._applyShimValidatingVersion||0,a._applyShimNextVersion=(a._applyShimNextVersion||0)+1};
Mxa=function(a){return a._applyShimCurrentVersion===a._applyShimNextVersion};
Oxa=function(a){a._applyShimValidatingVersion=a._applyShimNextVersion;a._validating||(a._validating=!0,Nxa.then(function(){a._applyShimCurrentVersion=a._applyShimNextVersion;a._validating=!1}))};
Qxa=function(a){if(!a)return"";typeof a==="string"&&(a=Cxa(a));return Fxa(a,Pxa)};
Rxa=function(a){!a.__cssRules&&a.textContent&&(a.__cssRules=Cxa(a.textContent));return a.__cssRules||null};
Txa=function(a,b,c,d){if(a){var e=!1,g=a.type;if(d&&g===4){var k=a.selector.match(Sxa);k&&(window.matchMedia(k[1]).matches||(e=!0))}g===1?b(a):c&&g===7?c(a):g===1E3&&(e=!0);if((a=a.rules)&&!e)for(e=0,g=a.length,k=void 0;e<g&&(k=a[e]);e++)Txa(k,b,c,d)}};
Uxa=function(a,b){var c=a.indexOf("var(");if(c===-1)return b(a,"","","");a:{var d=0;var e=c+3;for(var g=a.length;e<g;e++)if(a[e]==="(")d++;else if(a[e]===")"&&--d===0)break a;e=-1}d=a.substring(c+4,e);c=a.substring(0,c);a=Uxa(a.substring(e+1),b);g=d.indexOf(",");if(g===-1)return b(c,d.trim(),"",a);e=d.substring(0,g).trim();d=d.substring(g+1).trim();return b(c,e,d,a)};
Vxa=function(a){if(Tm!==void 0)return Tm;if(a.__cssBuild===void 0){var b=a.getAttribute("css-build");if(b)a.__cssBuild=b;else{a:{b=a.localName==="template"?a.content.firstChild:a.firstChild;if(b instanceof Comment&&(b=b.textContent.trim().split(":"),b[0]==="css-build")){b=b[1];break a}b=""}if(b!==""){var c=a.localName==="template"?a.content.firstChild:a.firstChild;c.parentNode.removeChild(c)}a.__cssBuild=b}}return a.__cssBuild||""};
Xxa=function(a,b,c,d){for(var e=b._noAccessors,g=Object.getOwnPropertyNames(b),k=0;k<g.length;k++){var m=g[k];if(!(m in d))if(e)a[m]=b[m];else{var n=Object.getOwnPropertyDescriptor(b,m);n&&(n.configurable=!0,Object.defineProperty(a,m,n))}}for(var r in Wxa)b[r]&&(c[r]=c[r]||[],c[r].push(b[r]))};
Yxa=function(a,b,c){b=b||[];for(var d=a.length-1;d>=0;d--){var e=a[d];e?Array.isArray(e)?Yxa(e,b):b.indexOf(e)<0&&(!c||c.indexOf(e)<0)&&b.unshift(e):console.warn("behavior is null, check for missing or 404 import")}return b};
Zxa=function(a,b){for(var c in b){var d=a[c],e=b[c];a[c]=!("value"in e)&&d&&"value"in d?Object.assign({value:d.value},e):e}};
bya=function(a,b,c){var d={},e=function(){return b.apply(this,arguments)||this};
_.z(e,b);e._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(k)for(var n=0,r;n<k.length;n++)r=k[n],r.properties&&this.createProperties(r.properties),r.observers&&this.createObservers(r.observers,r.properties);a.properties&&this.createProperties(a.properties);a.observers&&this.createObservers(a.observers,a.properties);this._prepareTemplate()}else b._finalizeClass.call(this)};
e.prototype.created=function(){b.prototype.created.call(this);var n=d.created;if(n)for(var r=0;r<n.length;r++)n[r].call(this)};
e.prototype._registered=function(){var n=e.prototype;if(!n.hasOwnProperty("__hasRegisterFinished")){n.__hasRegisterFinished=!0;b.prototype._registered.call(this);Em&&m(n);n=Object.getPrototypeOf(this);var r=d.beforeRegister;if(r)for(var t=0;t<r.length;t++)r[t].call(n);if(r=d.registered)for(t=0;t<r.length;t++)r[t].call(n)}};
e.prototype._applyListeners=function(){b.prototype._applyListeners.call(this);var n=d.listeners;if(n)for(var r=0;r<n.length;r++){var t=n[r];if(t)for(var u in t)this._addMethodEventListenerToNode(this,u,t[u])}};
e.prototype._ensureAttributes=function(){var n=d.hostAttributes;if(n)for(var r=n.length-1;r>=0;r--){var t=n[r],u;for(u in t)this._ensureAttribute(u,t[u])}b.prototype._ensureAttributes.call(this)};
e.prototype.ready=function(){b.prototype.ready.call(this);var n=d.ready;if(n)for(var r=0;r<n.length;r++)n[r].call(this)};
e.prototype.attached=function(){b.prototype.attached.call(this);var n=d.attached;if(n)for(var r=0;r<n.length;r++)n[r].call(this)};
e.prototype.detached=function(){b.prototype.detached.call(this);var n=d.detached;if(n)for(var r=0;r<n.length;r++)n[r].call(this)};
e.prototype.attributeChanged=function(n,r,t){b.prototype.attributeChanged.call(this);var u=d.attributeChanged;if(u)for(var x=0;x<u.length;x++)u[x].call(this,n,r,t)};
_.Um.Object.defineProperties(e,{properties:{configurable:!0,enumerable:!0,get:function(){var n={};if(k)for(var r=0;r<k.length;r++)Zxa(n,k[r].properties);Zxa(n,a.properties);return n}},
observers:{configurable:!0,enumerable:!0,get:function(){var n=[];if(k)for(var r=0,t;r<k.length;r++)t=k[r],t.observers&&(n=n.concat(t.observers));a.observers&&(n=n.concat(a.observers));return n}}});
if(c){Array.isArray(c)||(c=[c]);var g=b.prototype.behaviors;var k=Yxa(c,null,g);e.prototype.behaviors=g?g.concat(c):k}var m=function(n){if(k)for(var r=k,t=0;t<r.length;t++)Xxa(n,r[t],d,$xa);Xxa(n,a,d,aya)};
Em||m(e.prototype);e.generatedFrom=a;return e};
fya=function(a){var b=typeof a!=="string"?a:{is:a,notifyObserversOnUndefined:!0};b.fastInit===void 0&&(b.fastInit=!0);return function(c){if(!b.disableInheritanceCheck&&Object.getPrototypeOf(c.prototype).constructor!==_.Vm)throw Error("Rd");var d=c.prototype;d.is=b.is;kva(d,"created",function(){this.hostElement=this;this.polymerController=this});
cya(d,c,b.fastInit);b.notifyObserversOnUndefined&&(d._overrideLegacyUndefined=!0);if(dya)for(var e=_.h(Object.getOwnPropertyNames(d)),g=e.next();!g.done;g=e.next()){g=g.value;var k=Object.getOwnPropertyDescriptor(d,g);k.enumerable===!1&&(k.enumerable=!0,Object.defineProperty(d,g,k))}if("template"in c)var m=function(){return c.template};
else b.template!==void 0&&(m=b.template);if(m!==void 0){var n;Object.defineProperty(d,"_template",{get:function(){n===void 0&&(n=m());return n},
set:function(r){n=r},
configurable:!0,enumerable:!0})}Polymer(d);c[eya]=d}};
gya=function(a){a=a===void 0?{}:a;a.fastInit===void 0&&(a.fastInit=!0);return function(b){if(!a.disableInheritanceCheck&&Object.getPrototypeOf(b.prototype).constructor!==Wm)throw Error("Sd");cya(b.prototype,b,a.fastInit)}};
cya=function(a,b,c){c=c===void 0?!1:c;hya(b);c?kva(a,"created",function(){this.disableEnforceFastDefaultValuesCheck||iya(b,this)}):kva(a,"ready",function(){for(var d={},e=_.h(lva(this.behaviors)),g=e.next();!g.done;g=e.next())g=g.value,g.properties&&Object.assign(d,jya(this,g.properties));
Object.assign(d,jya(this,this.properties));iya(b,this);e=_.h(Object.keys(d));for(g=e.next();!g.done;g=e.next())g=g.value,this[g]=d[g]})};
iya=function(a,b){if(dya){a=new a;for(var c=_.h(Object.getOwnPropertyNames(a)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a[d];for(c=b;c&&c!==Object.prototype;c=Object.getPrototypeOf(c)){d=_.h(Object.getOwnPropertyNames(c));for(var e=d.next();!e.done;e=d.next())e=e.value,a.hasOwnProperty(e)||Object.defineProperty(a,e,kya(b,e))}}else a.apply(b)};
kya=function(a,b){return{get:function(){var c=a[b];return c instanceof Function?c.bind(a):c},
set:function(c){a[b]=c}}};
jya=function(a,b){if(!b)return{};for(var c={},d=_.h(Object.keys(b)),e=d.next();!e.done;e=d.next())if(e=e.value,!b[e].readOnly){var g=a[e];g!==void 0&&(c[e]=g)}return c};
hya=function(a){var b=new a;a=a.prototype.properties||{};for(var c=_.h(Object.keys(a)),d=c.next();!d.done;d=c.next())if(d=d.value,b.hasOwnProperty(d)){var e=a[d];typeof e==="function"&&(a[d]=e={type:e});b[d]!=null&&e.type===Object&&(e.type=lya(b[d].constructor))}};
lya=function(a){for(var b=_.h(mya),c=b.next();!c.done;c=b.next())if(c=c.value,a===c)return c;return Object};
nya=function(a){return function(b,c){b.behaviors=b.behaviors||[];b.behaviors.push(a||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",b,c).prototype:void 0));Object.defineProperty(b,c,{get:function(){return this},
enumerable:!0,configurable:!0})}};
oya=function(a){a=a===void 0?{}:a;return function(b,c){b.properties=b.properties||{};a.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?a.type=lya(Reflect.getMetadata("design:type",b,c)):a.type=String);var d=a,e=b.properties[c];b.properties[c]=e?Object.assign({},e,d):d}};
pya=function(a){return function(b,c){b.listeners=b.listeners||{};b.listeners[a]=c}};
qya=function(){var a=_.Kd.apply(0,arguments);if(a.length===0)throw Error("Td");return function(b,c){b.observers=b.observers||[];b.observers.push(c+"("+a.join(",")+")")}};
rya=function(){var a=_.Kd.apply(0,arguments);return function(b,c,d){var e=Object.getOwnPropertyDescriptor(b,c).get,g="__compute__"+c;Object.defineProperty(b,g,{value:e,enumerable:!0});b.properties=b.properties||{};e=b.properties[c];e||(e={},b.properties[c]=e);e.computed=g+"("+a.join(",")+")";d.get=void 0}};
_.Xm=function(a,b,c){_.vg.call(this);this.JSC$9045_id_=null;this.usingListeners_=!1;this.JSC$9045_listener_=a;this.handler_=c;this.JSC$9045_win_=b||window;this.callback_=(0,_.wg)(this.JSC$9047_doAction_,this)};
Ym=function(a){this.range_=a};
Zm=function(a){this.range_=a};
bn=function(a,b,c){_.vg.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=a;this.scrollTimer_=new _.$m(50);this.JSC$9124_eventHandler_=new _.an(this);this.scrollDelta_=new _.Ef;this.containerIsActuallyContent_=a.tagName==="BODY"||a.tagName==="HTML";this.containerBounds_=sya(a);this.containerIsActuallyContent_&&(a=_.sf(),this.containerBounds_.height=a.height,this.containerBounds_.width=a.width);this.margin_=b||0;if(b){if(b=this.containerBounds_.clone(),a=this.margin_){var d=
Math.min(a,b.height*.25);b.top+=d;b.height-=2*d;a=Math.min(a,b.width*.25);b.left+=a;b.width-=2*a}}else b=this.containerBounds_;this.scrollBounds_=b;c||this.JSC$9124_eventHandler_.listen(_.Hf(this.containerNode_),"mousemove",this.JSC$9126_onMouseMove);this.JSC$9124_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9126_onTick_)};
_.dn=function(a){this.mechanism=a};
en=function(a,b){this.JSC$9222_key_=a;this.JSC$9222_value_=b};
uya=function(a){if(a>=55296&&a<=57343||a>1114111)return"\ufffd";a in tya&&(a=tya[a]);var b="";a>65535&&(a-=65536,b+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023);return b+=String.fromCharCode(a)};
vya=function(a,b){return a<b?1:-1};
xya=function(){return function(a){return a.charAt(1)==="#"?a.charAt(2)==="X"||a.charAt(2)==="x"?uya(parseInt(a.substr(3),16)):uya(parseInt(a.substr(2),10)):wya[a.slice(1,-1)]}};
Aya=function(a){return a.slice(1,a.length-1).trim().replace(yya,function(b){return zya[b]||" "})};
fn=function(a){return a===32||a===9};
gn=function(a,b){return b<a.length?a.charCodeAt(b):-1};
Bya=function(a){for(;a;){if(a._lastLineBlank)return!0;var b=a.type;if(b==="list"||b==="item")a=a._lastChild;else break}return!1};
hn=function(a){if(Cya.test(a)){var b=1,c=0,d=0;for(a[c]=="|"&&c++;c<a.length;){switch(a[c]){case "|":d=1;break;case " ":break;case "\t":break;default:d&&(d=0,b++)}c++}return Dya.test(a)?-b:b}return 0};
Eya=function(a){return a=="table"||a=="row"||a=="cell"};
Fya=function(){return new jn("document",[[1,1],[0,0]])};
Gya=function(){};
kn=function(){var a={safe:!1};a=a||{};a.softbreak=a.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=a};
Lya=function(a,b){var c="";if(a)if(a=a.toLowerCase(),a===" "||Hya.test(a))c="space";else if(Iya.test(a))c="esc";else if(a.length==1){if(!b||Jya.test(a))c=a}else c=Kya.test(a)?a.replace("arrow",""):a=="multiply"?"*":a;return c};
Pya=function(a,b){var c=a.hasModifiers;if(b.key)c=Lya(b.key,c);else if(b.detail&&b.detail.key)c=Lya(b.detail.key,c);else{c=b.keyIdentifier;var d="";c&&(c in Mya?d=Mya[c]:Nya.test(c)?(c=parseInt(c.replace("U+","0x"),16),d=String.fromCharCode(c).toLowerCase()):d=c.toLowerCase());(c=d)||(c=b.keyCode,d="",Number(c)&&(c>=65&&c<=90?d=String.fromCharCode(32+c):c>=112&&c<=123?d="f"+(c-112+1):c>=48&&c<=57?d=String(c-48):c>=96&&c<=105?d=String(c-96):d=Oya[c]),c=d);c=c||""}return c===a.key&&(!a.hasModifiers||
!!b.shiftKey===!!a.shiftKey&&!!b.ctrlKey===!!a.ctrlKey&&!!b.altKey===!!a.altKey&&!!b.metaKey===!!a.metaKey)};
Rya=function(a){return a.length===1?{combo:a,key:a,event:"keydown"}:a.split("+").reduce(function(b,c){var d=c.split(":");c=d[0];d=d[1];c in Qya?(b[Qya[c]]=!0,b.hasModifiers=!0):(b.key=c,b.event=d||"keydown");return b},{combo:a.split(":").shift()})};
Sya=function(a){return a.trim().split(" ").map(function(b){return Rya(b)})};
Tya=function(a,b){if(a&&a.fn){var c=a.fn;a.fn=function(){try{c.apply(this,arguments)}catch(d){if(d instanceof ln)console.warn("Argument '"+d.arg+"'"+(b?" for method '"+b+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw d;}}}return a};
Uya=function(){var a=_.Kd.apply(0,arguments);return a.length===0?function(b){return b}:a.length===1?a[0]:a.reduce(function(b,c){return function(){return b(c.apply(null,_.De(_.Kd.apply(0,arguments))))}})};
Vya=function(){var a=_.Kd.apply(0,arguments);return function(b){return function(c,d){c=b(c,d);var e=function(){throw Error("De");},g={getState:c.getState,
dispatch:function(k){return e.apply(null,[k].concat(_.De(_.Kd.apply(1,arguments))))}};
d=a.map(function(k){return k(g)});
e=Uya.apply(null,_.De(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}};
Yya=function(a){Object.keys(a).forEach(function(b){var c=a[b];if(typeof c(void 0,{type:Wya})==="undefined")throw Error("Ee`"+b);if(typeof c(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+Xya()})==="undefined")throw Error("Fe`"+b+"`"+Wya);})};
mn=function(a){for(var b=Object.keys(a),c={},d=0;d<b.length;d++){var e=b[d];typeof a[e]==="function"&&(c[e]=a[e])}var g=Object.keys(c);try{Yya(c)}catch(m){var k=m}return function(m,n){m=m===void 0?{}:m;if(k)throw k;for(var r=!1,t={},u=0;u<g.length;u++){var x=g[u],A=m[x],C=(0,c[x])(A,n);if(typeof C==="undefined")throw m=n&&n.type,Error("Ge`"+(m?'"'+String(m)+'"':"(unknown type)")+"`"+x);t[x]=C;r=r||C!==A}return(r=r||g.length!==Object.keys(m).length)?t:m}};
Zya=function(a,b,c){function d(){if(t)throw Error("He");return m}
function e(A){if(typeof A!=="function")throw Error("Ie`"+typeof A);if(t)throw Error("Je");var C=!0;r===n&&(r=n.slice());r.push(A);return function(){if(C){if(t)throw Error("Ke");C=!1;r===n&&(r=n.slice());var F=r.indexOf(A);r.splice(F,1);n=null}}}
function g(A){if(typeof A!=="object"||A===null)var C=!1;else{for(C=A;Object.getPrototypeOf(C)!==null;)C=Object.getPrototypeOf(C);C=Object.getPrototypeOf(A)===C}if(!C)throw Error("Le`"+typeof A);if(typeof A.type==="undefined")throw Error("Me");if(t)throw Error("Ne");try{t=!0,m=k(m,A)}finally{t=!1}C=n=r;for(var F=0;F<C.length;F++)(0,C[F])();return A}
if(typeof b==="function"&&typeof c==="function"||typeof c==="function"&&typeof arguments[3]==="function")throw Error("Oe");typeof b==="function"&&typeof c==="undefined"&&(c=b,b=void 0);if(typeof c!=="undefined"){if(typeof c!=="function")throw Error("Pe`"+typeof c);return c(Zya)(a,b)}if(typeof a!=="function")throw Error("Qe`"+typeof a);var k=a,m=b,n=[],r=n,t=!1;g({type:Wya});var u={},x=(u.dispatch=g,u.subscribe=e,u.getState=d,u.replaceReducer=function(A){if(typeof A!=="function")throw Error("Re`"+
typeof A);k=A;g({type:$ya});return x},u[aza]=function(){var A={};
return A.subscribe=function(C){function F(){C.next&&C.next(d())}
if(typeof C!=="object"||C===null)throw new TypeError("Se`"+typeof C);F();return{unsubscribe:e(F)}},A[aza]=function(){return this},A},u);
return x};
bza=function(a){function b(){e&&(e=!1,a());g&&d()}
function c(){requestAnimationFrame(b)}
function d(){var m=Date.now();if(e){if(m-k<2)return;g=!0}else e=!0,g=!1,setTimeout(c,20);k=m}
var e=!1,g=!1,k=0;return d};
nn=function(a){return typeof a==="number"?a:parseFloat(a)||0};
cza=function(a){return _.Kd.apply(1,arguments).reduce(function(b,c){return b+nn(a["border-"+c+"-width"])},0)};
_.B=function(a,b){b=Rd(Qd(b));a.innerHTML=b};
fza=function(a){var b=dza;b||(b=eza(),b=dza=_.Cf.transpose(b));b=b[a];return typeof b==="string"?b:_.on(a)};
gza=function(a){a=String(a).toLowerCase();var b=eza()[a];return typeof b==="string"?b:_.pn(a)};
hza=function(a){a=a.toLowerCase();a=eza()[a];return typeof a==="string"?a:null};
eza=function(){if(!iza){for(var a=Object.assign({},jza),b=_.h(kza),c=b.next();!c.done;c=b.next())c=c.value,a[c.toLowerCase()]=c;iza=a}return iza};
nza=function(a,b){var c=window.customElements;return c&&c.get(a)||lza[a]===!0?2:b.name==="HTMLUnknownElement"?1:b.name==="HTMLElement"&&mza.test(a)?3:0};
qza=function(a,b){switch(b){case "innerHTML":return oza(a)===1?2:null;case "textContent":return a=oza(a),a===1||a===6?1:null;default:var c,d;return(d=(c=pza[a.localName])==null?void 0:c[b])!=null?d:null}};
oza=function(a){var b=a.localName,c=nza(b,a.constructor);switch(c){case 0:case 1:return rza(b,a);case 3:case 2:return 1;default:_.Wb(c,"got an unknown element classification")}};
rza=function(a,b){var c=Object.hasOwnProperty.call(sza,a)?sza[a]:null;return c!==null?c:Object.hasOwnProperty.call(tza,a)&&b instanceof SVGElement?tza[a]:null};
uza=function(a,b){return b};
wza=function(a){return(a=a.split(vza,2))?{url:a[0],metadata:a[1]}:null};
yza=function(a){var b=String(a.url).replace(xza,encodeURIComponent);if(a=a.metadata){xza.lastIndex=0;if(xza.test(a))return null;b+=" "+a}return b};
Cza=function(a){function b(r){var t=r.localName;if(!r.getAttribute("is")&&nza(t,r.constructor)===2){var u;return(u=n)!=null?u:n=document.createElement("polyresinuncustomized")}(r=m[t])||(r=m[t]=document.createElement(t));return r}
var c=a.reportHandler||void 0,d=a.safeTypesBridge||zza,e=/^$/;if(a=a.allowedIdentifierPrefixes){a=_.h(a);for(var g=a.next();!g.done;g=a.next())e=new RegExp(e.source+"|^"+_.Aza(g.value))}c&&c(!1,"initResin",null);var k=Bza(e,d,c),m={},n=null;return function(r,t,u){var x=r.nodeType;if(x!==Node.ELEMENT_NODE){if(x===Node.TEXT_NODE){t=r.parentElement;u=!t;if(t&&t.nodeType===Node.ELEMENT_NODE){x=t.localName;var A=nza(x,t.constructor);switch(A){case 0:case 1:t=rza(x,t);u=t===1||t===6;break;case 3:case 2:u=
!0;break;default:_.Wb(A,"got an unknown element classification")}}if(u)return function(I){return""+d(I,"STRING",I)}}return function(I){if(!I&&I!==document.all)return I;
c&&c(!0,"Failed to sanitize "+(r.parentElement&&r.parentElement.nodeName)+" #text node to value "+I,r.parentElement);return qn}}var C=r.localName;
x=b(r);var F=null;switch(u){case "attribute":if(gza(t)in x)break;return function(I){return I};
case "property":if(t in x){F=qza(x,t);break}if((A=hza(t))&&A in x)break;return function(I){return I};
default:_.Wb(u,"got an unknown resin type, expected either 'property' or 'attribute'")}var J=u==="attribute"?t.toLowerCase():fza(t);F||(F=Vla(C,J,function(I){var R=r.getAttribute(I);return!R||/[\[\{]/.test(I)?null:R}));
return function(I){var R=rn,da=null;if(!I&&I!==document.all)return I;if(F!=null){var V=k[F],fa=V.safeType;da=V.safeReplacement;fa&&(R=d(I,fa,rn));R===rn&&(V.filterString?(R=String(d(I,"STRING",I)),R=V.filterString(C,J,R)):V.filterRaw&&(R=V.filterRaw(C,J,I,r)),R===da&&(R=rn))}R===rn&&(R=da||qn,c&&c(!0,"Failed to sanitize attribute of <"+C+">: <"+C+" "+J+'="'+I+'">',r));return R}}};
Bza=function(a,b,c){return[,{filterRaw:function(d,e,g){return g},
filterString:void 0,safeReplacement:void 0,safeType:void 0},{filterRaw:void 0,filterString:void 0,safeReplacement:void 0,safeType:"HTML"},{filterRaw:void 0,filterString:void 0,safeReplacement:Dza,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Dza,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:qn,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:Eza,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(d,e,g){g=
String(g).toLowerCase();return Yla(d,e,g)?g:qn},
safeReplacement:qn,safeType:void 0},,{filterRaw:void 0,filterString:function(d,e,g){return a.test(g)?g:qn},
safeReplacement:qn,safeType:"CONSTANT"},{filterRaw:function(d,e,g,k){if(typeof g==="string")var m=(m=g.match(Fza))?m.map(wza).filter(Boolean):[];else if(Array.isArray(g))m=g;else return Dza;var n=m;m=[];var r=[],t={};if(Array.isArray(n))for(var u=0,x=n.length;u<x;++u){var A=n[u],C=A&&A.url;if(C){var F=b(C,"URL",t);if(F){var J=F!==t;(J?m:r).push({url:J?F:C,metadata:A.metadata})}}}else r.push(n);n=r.length?JSON.stringify(r):null;r=rn;if(m.length){if(!Array.isArray(m))throw Error();r=m.map(yza).filter(Boolean).join(" , ")||
rn}n&&c&&c(!0,"Failed to sanitize attribute value of <"+d+">: <"+d+" "+e+'="'+g+'">: '+n,k);return r===rn?Dza:r},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
Gza=function(a){var b=Cza(a);return function(c,d,e,g){return g||g===document.all?b(c,d,e)(g):g}};
sn=function(a,b){function c(){function e(m,n,r){for(n=Reflect.getMetadata("parameters",m)||[];n.length<=r;)n.push(null);n[r]=n[r]||[];n[r].push(k);Reflect.defineMetadata(n,m);return m}
var g=_.Kd.apply(0,arguments);if(this instanceof c)return d.apply(this,g),this;var k=new (Function.prototype.bind.apply(c,[null].concat(_.De(g))));e.annotation=k;return e}
var d=Hza(b);c.prototype.toString=function(){return"@"+a};
return c.annotationCls=c};
Hza=function(a){return function(){var b=_.Kd.apply(0,arguments),c=this;a.forEach(function(d,e){e=b[e];if(Array.isArray(d))c[d[0]]=e&&e!==void 0?e:d[1];else for(var g in d)c[g]=e&&e[g]!==void 0?e[g]:d[g]})}};
Iza=function(a){return a!==void 0&&a!==null};
tn=function(a){if(typeof a==="string")return a;if(a===void 0||a===null)return""+a;if(a.overriddenName)return a.overriddenName;if(a.name)return a.name;a=a.toString();var b=a.indexOf("\n");return b===-1?a:a.substring(0,b)};
Jza=function(a){a.__forward_ref__=Jza;a.toString=function(){return tn(this())};
return a};
un=function(a){return typeof a==="function"&&a.hasOwnProperty("__forward_ref__")&&a.__forward_ref__===Jza?a():a};
Kza=function(a){return a?a.map(function(b){return new (Function.prototype.bind.apply(b.type.annotationCls,[null].concat(_.De(b.args?b.args:[]))))}):[]};
Lza=function(a){for(var b=[],c=0;c<a.length;++c){if(b.indexOf(a[c])>-1){b.push(a[c]);break}b.push(a[c])}return b};
Mza=function(a){return a.length>1?" ("+Lza(a.slice().reverse()).map(function(b){return tn(b.token)}).join(" -> ")+")":""};
Oza=function(a,b,c,d){if(d){var e=Error("Ze``"+(d instanceof Error?d.message:d));e.ngOriginalError=d}else e=Error();e.addKey=Nza;e.keys=[b];e.injectors=[a];e.constructResolvingMessage=c;e.message=e.constructResolvingMessage();e.ngOriginalError=d;return e};
Nza=function(a,b){this.injectors.push(a);this.keys.push(b);this.message=this.constructResolvingMessage()};
Pza=function(a,b){return Oza(a,b,function(){return"No provider for "+tn(this.keys[0].token)+"!"+Mza(this.keys)})};
Qza=function(a,b){return Oza(a,b,function(){return"Cannot instantiate cyclic dependency!"+Mza(this.keys)})};
Rza=function(a,b,c){return Oza(a,c,function(){var d=tn(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+d+"!"+Mza(this.keys)+"."},b)};
Sza=function(a,b){for(var c=[],d=0,e=b.length;d<e;d++){var g=b[d];g&&g.length!=0?c.push(g.map(tn).join(" ")):c.push("?")}return Error("cf`"+tn(a)+"`"+c.join(", ")+"`"+tn(a))};
Zza=function(a){var b=void 0,c=void 0;if(a&&a.useClass!==void 0){b=a.useClass;var d=un(a.useClass);var e=Tza.factory(d);d=Uza(d)}else a&&a.useExisting!==void 0?(e=function(g){return g},d=[Vza(vn.get(un(a.useExisting)))]):a&&a.useFactory!==void 0?(e=a.useFactory,d=Wza(a.useFactory,a.deps)):(c=a.useValue,e=function(){return a.useValue},d=Xza);
return new Yza(e,d,b,c)};
aAa=function(a){return new $za(vn.get(un(a.provide)),[Zza(a)],a.multi)};
cAa=function(a){a=bAa(a,[]).map(aAa);for(var b=new Map,c=0;c<a.length;c++){var d=a[c],e=b.get(d.key.id);if(e){if(d.multiProvider!==e.multiProvider)throw Error("ef`"+e+"`"+d);if(d.multiProvider)for(var g=0;g<d.resolvedFactories.length;g++)e.resolvedFactories.push(d.resolvedFactories[g]);else b.set(d.key.id,d)}else e=void 0,d.multiProvider?e=new $za(d.key,d.resolvedFactories.slice(),d.multiProvider):e=d,b.set(d.key.id,e)}return Array.from(b.values())};
bAa=function(a,b){a.forEach(function(c){if(c instanceof dAa)b.push({provide:c,useClass:c});else if(c&&typeof c=="object"&&c.provide!==void 0)b.push(c);else if(c instanceof Array)bAa(c,b);else throw Error("bf`"+c);});
return b};
Wza=function(a,b){if(b){var c=b.map(function(d){return[d]});
return b.map(function(d){return eAa(a,d,c)})}return Uza(a)};
Uza=function(a){var b=Tza.parameters(a);if(!b)return[];if(b.some(function(c){return c==null}))throw Sza(a,b);
return b.map(function(c){return eAa(a,c,b)})};
eAa=function(a,b,c){var d=null,e=!1;if(!Array.isArray(b))return b instanceof fAa?gAa(b.token,e,null):gAa(b,e,null);for(var g=null,k=0;k<b.length;++k){var m=b[k];if(m instanceof dAa)d=m;else if(m instanceof fAa)d=m.token;else if(m instanceof hAa)e=!0;else if(m instanceof iAa||m instanceof jAa)g=m}d=un(d);if(d!=null)return gAa(d,e,g);throw Sza(a,c);};
gAa=function(a,b,c){return new kAa(vn.get(un(a)),b,c)};
lAa=function(a,b){for(var c=Array(a.providers.length),d=0;d<a.providers.length;++d){var e=d;if(d<0||d>=a.providers.length)throw Error("df`"+d);c[e]=b(a.providers[d])}return c};
mAa=function(a){return typeof a==="function"&&Tza.parameters(a).every(function(b){return!!b})};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(a){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(a)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(a){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(a)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(a,b){var c,d;if(a.contains(b))return!0;a=_.wn(a).querySelectorAll("content,slot");for(c=0;c<a.length;++c){var e=_.wn(a[c]).getDistributedNodes();for(d=0;d<e.length;++d)if(e[d].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(e[d],b))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(a){a.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(a)&&a.preventDefault();a.targetTouches&&(a=a.targetTouches[0],nAa=a.pageX,oAa=a.pageY)};
_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager||_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.bind(void 0);
for(var a=0,b=xn.length;a<b;a++)document.addEventListener(xn[a],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._unlockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){for(var a=0,b=xn.length;a<b;a++)document.removeEventListener(xn[a],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(a){var b=_.wn(a).rootTarget;a.type!=="touchmove"&&pAa!==b&&(pAa=b,qAa=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.wn(a).path));if(!qAa.length)return!0;if(a.type==="touchstart")return!1;a=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(a);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(qAa,a.deltaX,a.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(a){for(var b=[],c=a.indexOf(rAa),d=0;d<=c;d++)if(a[d].nodeType===Node.ELEMENT_NODE){var e=a[d],g=e.style;g.overflow!=="scroll"&&g.overflow!=="auto"&&(g=window.getComputedStyle(e));g.overflow!=="scroll"&&g.overflow!=="auto"||b.push(e)}return b};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(a,b,c){if(b||c)for(var d=Math.abs(c)>=Math.abs(b),e=0;e<a.length;e++){var g=a[e];if(d?c<0?g.scrollTop>0:g.scrollTop<g.scrollHeight-g.clientHeight:b<0?g.scrollLeft>0:g.scrollLeft<g.scrollWidth-g.clientWidth)return g}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(a){var b={deltaX:a.deltaX,deltaY:a.deltaY};"deltaX"in a||("wheelDeltaX"in a&&"wheelDeltaY"in a?(b.deltaX=-a.wheelDeltaX,b.deltaY=-a.wheelDeltaY):"wheelDelta"in a?(b.deltaX=0,b.deltaY=-a.wheelDelta):"axis"in a?(b.deltaX=a.axis===1?a.detail:0,b.deltaY=a.axis===2?a.detail:0):a.targetTouches&&(a=a.targetTouches[0],b.deltaX=nAa-a.pageX,b.deltaY=oAa-a.pageY));return b};
sAa=function(a){this.element=a;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
uAa=function(a){this.element=a;this.color=window.getComputedStyle(a).color;this.wave=document.createElement("div");this.waveContainer=document.createElement("div");this.wave.style.backgroundColor=this.color;this.wave.classList.add("wave");this.waveContainer.classList.add("wave-container");_.wn(this.waveContainer).appendChild(this.wave);tAa(this)};
yn=function(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase())return a[c]};
vAa=function(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase()){delete a[c];break}};
xAa=function(a){a=_.Cf.clone(a);for(var b=0;b<wAa.length;++b){var c=wAa[b],d=yn(a,c);d&&(a["X-Goog-Upload-Header-"+c]=d,vAa(a,c))}return a};
yAa=function(a){a=_.Cf.clone(a);vAa(a,"X-Goog-Upload-Status")};
AAa=function(a){return zAa.some(function(b){return b.test(a)})};
EAa=function(a,b){var c;var d=(c=a.formContent)==null?void 0:c.locale;c=d==null?void 0:d.split("-")[0];d=d&&BAa.includes(d)?d:c&&BAa.includes(c)?c:void 0;d=(d!=null?d:"en").replaceAll("-","_").toLowerCase();var e;a=((e=a.initializationData)==null?0:e.useNightlyRelease)?"nightly":"live";var g;return(b==null?0:(g=b.getEnableAlohaBinarySplit)==null?0:g.call(b))?_.ef(CAa,a):_.ef(DAa,a,d)};
GAa=function(a,b,c,d){if(FAa)return FAa;var e=EAa(a,d);return FAa=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(g,k){var m=_.pg("SCRIPT");_.Zd(m,e);m.onload=function(){b.feedbackV2GlobalObject?g(b.feedbackV2GlobalObject):k(Error("hf"))};
m.onerror=function(){k(Error("jf`"+e.toString()))};
c.body.appendChild(m)})};
IAa=function(a,b,c,d){if(HAa)return HAa;var e=EAa(a,d);return HAa=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(g,k){var m=_.pg("SCRIPT");_.Zd(m,e);m.onload=function(){b.feedbackV2GlobalObject?g(b.feedbackV2GlobalObject):k(Error("hf"))};
m.onerror=function(){k(Error("jf`"+e.toString()))};
c.body.appendChild(m)})};
JAa=function(a,b,c,d,e){e=e===void 0?!0:e;var g,k,m,n,r;return _.l(function(t){switch(t.nextAddress){case 1:return g=Date.now(),_.p(t,GAa(a,c,d,b),2);case 2:k=t.yieldResult;if(!(e||((n=a.initializationData)==null?0:n.useNightlyRelease)||((r=a.initializationData)==null?0:r.isLocalServer))){m=k.initializeFeedbackClient(a,g,b);t.jumpTo(3);break}return _.p(t,k.initializeFeedbackClientAsync(a,g,b),4);case 4:m=t.yieldResult;case 3:return m.initiateAloha(),t.return(m)}})};
KAa=function(a,b,c,d){var e,g,k;return _.l(function(m){if(m.nextAddress==1)return e=Date.now(),_.p(m,IAa(a,c,d.document,b),2);if(m.nextAddress!=3)return g=m.yieldResult,_.p(m,g.initializeFeedbackClientAsync(a,e,b,d),3);k=m.yieldResult;k.initiateAloha();return m.return(k)})};
LAa=function(a,b,c){var d=!0;d=d===void 0?!0:d;var e,g,k,m,n,r,t,u,x,A;return _.l(function(C){e=c||_.ja;if((g=b)==null?0:(m=(k=g).getEnableAlohaBinarySplit)==null?0:m.call(k)){n=e;if(n.isFormOpened)throw r=Error("kf"),r.name="DuplicateFormError",r;n.isFormOpened=!0;a.callbacks=a.callbacks||{};t=a.callbacks.onClose||function(){};
a.callbacks.onClose=function(F){n.isFormOpened=!1;t(F)};
try{return C.return(KAa(a,b,n,e))}catch(F){throw n.isFormOpened=!1,F;}}else{u=e;if(u.isFormOpened)throw x=Error("kf"),x.name="DuplicateFormError",x;u.isFormOpened=!0;a.callbacks=a.callbacks||{};A=a.callbacks.onClose||function(){};
a.callbacks.onClose=function(F){u.isFormOpened=!1;A(F)};
try{return C.return(JAa(a,b,u,e.document,d))}catch(F){throw u.isFormOpened=!1,F;}}_.ue(C)})};
QAa=function(a,b){return _.l(function(c){return c.return(new Promise(function(d){var e=MAa(b!=null?b:"")+"/aloha_form_properties?productId="+a;NAa(e,function(g){g=g.target;var k=null;try{var m=JSON,n=m.stringify;if(g.JSC$7645_xhr_){var r=g.JSC$7645_xhr_.responseText;r.indexOf(")]}'\n")==0&&(r=r.substring(5));var t=(0,_.zn)(r)}else t=void 0;k=wda(OAa,n.call(m,t))}catch(u){n=new OAa,t=PAa(),t=_.An(t,13,!1),t=_.An(t,14,!0),t=_.An(t,15,!0),t=_.An(t,20,!1),k=_.qd(n,1,t)}d(k)},"GET","",{},2E3,!0)}))})};
MAa=function(a){return AAa(a)?a:"https://www.google.com/tools/feedback"};
UAa=function(a){a=a.match(new RegExp(RAa,"gi"))||[];a=_.h(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;a:{var c=_.h(SAa);for(var d=c.next();!d.done;d=c.next())if(d.value.test(b)){c=!1;break a}c=!0}if(!c)a:{c=_.h(TAa);for(d=c.next();!d.done;d=c.next())if(d.value.test(b)){c=!0;break a}c=!1}if(c)return!0}return!1};
VAa=function(a){switch(a){case "canary":return"CLIENT_CANARY_STATE_CANARY";case "control":return"CLIENT_CANARY_STATE_CONTROL";case "none":return"CLIENT_CANARY_STATE_NONE";default:return"CLIENT_CANARY_STATE_UNKNOWN"}};
XAa=function(a){if(window.crypto&&window.crypto.getRandomValues)try{var b=Array(a),c=new Uint8Array(a);window.crypto.getRandomValues(c);for(var d=0;d<b.length;d++)b[d]=c[d];return b}catch(g){}b=Array(a);for(c=0;c<a;c++){d=Date.now();for(var e=0;e<d%23;e++)b[c]=Math.random();b[c]=Math.floor(Math.random()*256)}if(WAa)for(c=1,d=0;d<WAa.length;d++)b[c%a]^=b[(c-1)%a]/4^WAa.charCodeAt(d),c++;return b};
Bn=function(a){a=XAa(a);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
ZAa=function(a){a&&_.xl("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:YAa,clientScreenNonce:a})};
$Aa=function(a){return _.Fi("client-screen-nonce-store",{})[a===void 0?0:a]};
aBa=function(a,b){b=b===void 0?0:b;var c=_.Fi("client-screen-nonce-store");c||(c={},_.Ei("client-screen-nonce-store",c));c[b]=a};
bBa=function(a){a=a===void 0?0:a;return a===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
cBa=function(a){return _.Fi(bBa(a===void 0?0:a))};
_.Dn=function(a){return(a=cBa(a===void 0?0:a))?new _.Cn({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
dBa=function(){var a=_.Fi("csn-to-ctt-auth-info");a||(a={},_.Ei("csn-to-ctt-auth-info",a));return a};
eBa=function(){return Object.values(_.Fi("client-screen-nonce-store",{})).filter(function(a){return a!==void 0})};
_.En=function(a){a=$Aa(a===void 0?0:a);if(!a&&!_.Gi("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null};
gBa=function(a){for(var b=_.h(Object.values(fBa)),c=b.next();!c.done;c=b.next())if(_.En(c.value)===a)return!0;return!1};
hBa=function(a,b,c){var d=dBa();(c=_.En(c))&&delete d[c];b&&(d[a]=b)};
Fn=function(a){return dBa()[a]};
_.iBa=function(a,b,c,d){c=c===void 0?0:c;if(a!==$Aa(c)||b!==_.Fi(bBa(c)))if(hBa(a,d,c),aBa(a,c),_.Ei(bBa(c),b),b=function(){setTimeout(function(){ZAa(a)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(b)}catch(e){b()}else b()};
jBa=function(a,b){b=b===void 0?"":b;var c=[],d;for(d in a)if(a.hasOwnProperty(d)){var e=b!==""?b+"."+d:d;typeof a[d]==="object"?c.push.apply(c,_.De(jBa(a[d],e))):c.push([e,a[d]])}c.sort();return c};
_.Hn=function(a){var b=_.Kd.apply(1,arguments);if(!Gn(a)||b.some(function(d){return!Gn(d)}))throw Error("lf");
b=_.h(b);for(var c=b.next();!c.done;c=b.next())kBa(a,c.value)};
kBa=function(a,b){for(var c in b)if(Gn(b[c])){if(c in a&&!Gn(a[c]))throw Error("mf");c in a||(a[c]={});kBa(a[c],b[c])}else if(lBa(b[c])){if(c in a&&!lBa(a[c]))throw Error("nf");c in a||(a[c]=[]);mBa(a[c],b[c])}else a[c]=b[c];return a};
mBa=function(a,b){b=_.h(b);for(var c=b.next();!c.done;c=b.next())c=c.value,Gn(c)?a.push(kBa({},c)):lBa(c)?a.push(mBa([],c)):a.push(c);return a};
Gn=function(a){return typeof a==="object"&&!Array.isArray(a)};
lBa=function(a){return typeof a==="object"&&Array.isArray(a)};
oBa=function(a){for(var b=_.h(Object.entries(nBa)),c=b.next();!c.done;c=b.next())if(c=_.h(c.value),c.next(),c=c.next().value,c==="SLI_STATUS_"+a)return c;return"SLI_STATUS_UNKNOWN"};
_.In=function(a,b,c,d){return pBa(a,b,function(){return new _.qBa(a,b,c,d)})};
_.rBa=function(){return _.In("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
sBa=function(){return _.In("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
Jn=function(){return _.In("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
tBa=function(){return _.In("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
uBa=function(){return _.In("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
vBa=function(){return _.In("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
yBa=function(a){a&&(a.dataset?a.dataset[wBa()]="true":_.ae([_.cf(xBa)],a,"data-loaded","true".toString()))};
zBa=function(a){return a?a.dataset?a.dataset[wBa()]:a.getAttribute("data-loaded"):null};
wBa=function(){return ABa.loaded||(ABa.loaded="loaded".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()}))};
_.Kn=function(a,b,c){BBa(a,b,c===void 0?null:c)};
_.DBa=function(a,b){a&&b&&(a=""+_.$a(b),(a=CBa[a])&&_.Lsa(a))};
BBa=function(a,b,c){c=c===void 0?null:c;var d=_.EBa(a),e=document.getElementById(d),g=e&&zBa(e),k=e&&!g;g?b&&b():(b&&(g=_.bl(d,b),b=""+_.$a(b),CBa[b]=g),k||(e=FBa(a,d,function(){zBa(e)||(yBa(e),_.Msa(d),_.dj(function(){_.Osa(d)},0))},c)))};
FBa=function(a,b,c,d){d=d===void 0?null:d;var e=_.pg("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);_.Zd(e,_.yg(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
_.EBa=function(a){var b=document.createElement("a");Nd(b,a);return"js-"+Ln(b.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.IBa=function(){var a=_.Cf.clone(GBa),b;return(new _.il(function(c,d){a.onSuccess=function(e){xoa(e)?c(new HBa(e)):d(new _.Mn("Request failed, status="+cj(e),"net.badstatus",e))};
a.onError=function(e){d(new _.Mn("Unknown request error","net.unknown",e))};
a.onTimeout=function(e){d(new _.Mn("Request timed out","net.timeout",e))};
b=_.hj("//googleads.g.doubleclick.net/pagead/id",a)})).thenCatch(function(c){if(c instanceof _.Nn){var d;
(d=b)==null||d.abort()}return _.On(c)})};
JBa=function(a){var b=_.Fi("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(_.Pn(a)));return a};
KBa=function(a){var b={};_.w("json_condensed_response")&&(b.prettyPrint="false");return a=joa(a,b)};
_.Qn=function(a){return Ui(a)?"same-origin":"include"};
_.Rn=function(a){return Ui(a)?"same-origin":"cors"};
Sn=function(a,b,c){c=c===void 0?{}:c;a={method:b===void 0?"POST":b,mode:_.Rn(a),credentials:_.Qn(a)};b={};for(var d=_.h(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};
_.Tn=function(a,b){b=b===void 0?{}:b;return"service:"+a+"/"+Object.keys(b).sort().map(function(c){return c+":"+b[c]}).join("/")};
LBa=function(a){var b,c,d,e;a=(b=_.y(a,_.Un))==null?void 0:(c=b.watchEndpointSupportedOnesieConfig)==null?void 0:(d=c.html5PlaybackOnesieConfig)==null?void 0:(e=d.commonConfig)==null?void 0:e.url;if(!a)return[];b=new _.Yn(a);return b.JSC$7876_domain_?["https://"+b.JSC$7876_domain_+"/generate_204"]:[]};
_.OBa=function(){return MBa()||mpa()||NBa&&Bj("version/")?!0:_.Fi("EOM_VISITOR_DATA")?!1:!0};
PBa=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};
_.RBa=function(a){a:{var b="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(e){break a}if(c)b:for(var d in QBa)if(QBa[d]==c.embeddedPlayerMode){b=QBa[d];break b}}return b==="EMBEDDED_PLAYER_MODE_PFL"};
_.SBa=function(){if(_.w("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("rf");if(!_.OBa())return Error("sf");var a=_.Fi("PLAYER_VARS",{});if(_.Cf.get(a,"privembed",!1)=="1")return Error("tf");if(_.RBa(a))return Error("uf")};
TBa=function(a){return a.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
Zn=function(a){return!isNaN(Number(a))&&!_.pa(a)};
_.ao=function(a,b,c,d){d=d===void 0?!0:d;var e=_.Fi("VALID_SESSION_TEMPDATA_DOMAINS",[]),g=_.Si(window.location.href);g&&e.push(g);g=_.Si(a);if(_.Oa(e,g)||!g&&_.na(a,"/"))if(e=document.createElement("a"),Nd(e,a),a=e.href)if(a=_.Pn(a),a=_.$n(a))d&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:_.En()},b)),c?(c=parseInt(c,10),isFinite(c)&&c>0&&UBa(a,b,c)):UBa(a,b)};
WBa=function(a){var b=_.Fi("VALID_SESSION_TEMPDATA_DOMAINS",[]),c=_.Si(window.location.href);c&&b.push(c);c=_.Si(a);if(!(_.Oa(b,c)||!c&&_.na(a,"/")))return null;a=_.Pn(a);(a=_.$n(a))?(a=VBa(a),a=(a=_.lj.get(a,void 0)||null)?_.Ni(a):{}):a=null;return a};
UBa=function(a,b,c){a=VBa(a);b=b?_.ij(b):"";c=c||5;_.OBa()&&_.mj(a,b,c)};
VBa=function(a){for(var b=_.h(XBa),c=b.next();!c.done;c=b.next())a=_.bo(a,c.value);return"ST-"+Ln(a).toString(36)};
YBa=function(a,b){a.commandMetadata&&_.y(a.commandMetadata,_.co)&&_.y(a.commandMetadata,_.co).url&&(a=_.Oi(_.y(a.commandMetadata,_.co).url).adurl)&&_.loa(a)&&_.ao(_.Pn(a),{encoded_ad_playback_context:b})};
_.ZBa=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("wf"));return a instanceof Promise?a:Promise.resolve()};
_.fo=function(a){var b;_.zsa(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.eo()==a&&(b=document):b=a;if(b&&(a=_.zsa(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))){a.call(b)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.eo=function(){var a=a===void 0?!1:a;var b=_.zsa(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
_.go=function(a,b){b=b===void 0?!0:b;a.addEventListener("wheel",$Ba);a.overscrollConfig={cooldown:b}};
_.ho=function(a){a.overscrollConfig=void 0;a.removeEventListener("wheel",$Ba)};
$Ba=function(a){var b=a.deltaY,c=a.target,d=null;if(window.Polymer&&window.Polymer.Element){if(c=a.path||a.composedPath&&a.composedPath()){c=_.h(c);for(var e=c.next();!e.done&&(e=e.value,!aCa(e,b));e=c.next())if(e.overscrollConfig){d=e;break}}}else for(;c&&!aCa(c,b);){if(c.overscrollConfig){d=c;break}c=c.parentElement}d&&(b=d.overscrollConfig,b.cooldown?(d=a.deltaY,c=b.lastDeltaY||0,b.lastDeltaY=d,e=b.lastStopped||0,c&&e&&c>0==d>0?Math.abs(c)>=Math.abs(d)?(d=e+1200,c=!1):(d=e+600,c=!0):(d=Date.now()+
600,c=!0),d>Date.now()&&(a.preventDefault(),c&&(b.lastStopped=Date.now()))):a.preventDefault())};
aCa=function(a,b){return b<0&&a.scrollTop>0||b>0&&a.scrollTop<a.scrollHeight-a.clientHeight-1?(a=getComputedStyle(a).overflowY,a=="auto"||a=="scroll"):!1};
_.io=function(a,b,c,d){d||(d={bubbles:!0,cancelable:!1,composed:!0});c!==null&&c!==void 0&&(d.detail=c);b=new CustomEvent(b,d);a.dispatchEvent(b);return b};
_.lo=function(a,b,c,d){b=new bCa(b,!(d===void 0||!d),c);_.io(a,"yt-action",b);return b.returnValue};
_.mo=function(a,b,c){return _.lo(a,b,c,!0)};
_.no=function(a,b,c){return _.lo(a,b,c)[0]};
_.po=function(a,b,c,d){b&&b.length&&b.forEach(function(e){var g=yua(e);g&&(_.w("handle_service_request_actions")&&e.commandMetadata&&e.commandMetadata.webCommandMetadata&&e.commandMetadata.webCommandMetadata.sendPost?_.oo(c?c:a,[e]):_.mo(a,g,[e,c,d]))})};
_.oo=function(a,b){var c=[a];b&&c.push.apply(c,b);b=_.lo(a,"yt-service-request",c);return b.length>0&&(b=b[0],_.io(a,"yt-service-request-sent",b),b&&b.ajaxPromise)?(b.ajaxPromise.then(function(d){_.io(a,"yt-service-request-completed",d)},function(d){_.io(a,"yt-service-request-error",{error:d,
params:c})},a),b.ajaxPromise):_.qo()};
_.so=function(a,b){if(_.w("handle_service_request_actions"))_.po(b,a,b);else{a=_.h(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=void 0;((d=_.y(c,_.ro))==null?0:d.commands)?_.so(_.y(c,_.ro).commands,b):(d=void 0,((d=_.y(c,_.to))==null?0:d.actions)?_.so(_.y(c,_.to).actions,b):(d=void 0,((d=_.y(c.commandMetadata,_.co))==null?0:d.sendPost)?_.oo(b,[c]):_.po(b,[c],b)))}}};
_.dCa=function(a,b,c){b=b===void 0?{}:b;typeof b==="function"&&(b={callback:b});c||b._c&&b._c.jsl&&b._c.jsl.h||_.Cf.extend(b,{_c:{jsl:{h:_.Fi("GAPI_HINT_PARAMS")}}});(b.gapiHintOverride||_.Fi("GAPI_HINT_OVERRIDE"))&&(c=_.Oi(document.location.href).gapi_jsh)&&_.Cf.extend(b,{_c:{jsl:{h:c}}});cCa(a,b)};
_.vo=function(a,b,c){b=b===void 0?{}:b;a=(a=a in uo?uo[a]:c)||"";c={};for(var d in b){c={key$jscomp$782:c.key$jscomp$782};c.key$jscomp$782=d;var e=function(g){return function(){return String(b[g.key$jscomp$782])}}(c);
a=a.replace(new RegExp("\\$\\{"+c.key$jscomp$782+"\\}","gi"),e);a=a.replace(new RegExp("\\$"+c.key$jscomp$782,"gi"),e)}return a};
_.wo=function(a,b){return eCa(a in uo?uo[a]:{},b)};
eCa=function(a,b){var c=_.Fi("I18N_PLURAL_RULES");c||(c=function(d){return d==1?"one":"other"});
return(a=a["case"+b]||a[c(b)])?a.replace("#",b.toString()):b+""};
hCa=function(a){var b=fCa(a),c=document.getElementById(b),d=c&&zBa(c);d||c&&!d||(c=gCa(a,b,function(){if(!zBa(c)){yBa(c);_.Msa(b);var e=_.xo(_.Osa,b);_.dj(e,0)}}))};
gCa=function(a,b,c){var d=document.createElement("link");d.id=b;d.onload=function(){c&&setTimeout(c,0)};
a=_.yg(a);_.ce(d,a,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(d);return d};
fCa=function(a){var b=_.pg("A");Nd(b,Cd(a));return"css-"+Ln(b.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.jCa=function(a){var b=iCa();a!==b&&(b=_.yo(),!_.w("web_autonav_allow_off_by_default")&&a||_.zo(0,141,!0),_.zo(0,140,!a),b.save())};
iCa=function(){var a=_.yo();return _.w("web_autonav_allow_off_by_default")&&!a.getFlag(141)&&_.Fi("AUTONAV_OFF_BY_DEFAULT")?!1:!a.getFlag(140)};
kCa=function(a,b){var c,d;a=((c=a.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(d=c.videoAuthorizationToken)==null?void 0:d.credentialTransferTokens)||[];for(c=0;c<a.length;++c)if(a[c].scope===b)return a[c].token||void 0};
lCa=function(a){for(var b=0,c=0;c<a.length;c++)b=b*31+a.charCodeAt(c),c<a.length-1&&(b%=0x800000000000);return b%1E5};
_.Ao=function(a){return _.Ji("ytcsi."+(a||"")+"data_")||mCa(a)};
_.nCa=function(a){a=_.Ao(a);a.metadata||(a.metadata={});return a.metadata};
_.oCa=function(a){a=_.Ao(a);a.tick||(a.tick={});return a.tick};
_.Bo=function(a){a=_.Ao(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
_.pCa=function(a){a=_.Bo(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
qCa=function(a){var b=_.Ao(a).nonce;b||(b=Bn(16),_.Ao(a).nonce=b);return b};
mCa=function(a){var b={tick:{},info:{}};_.Rj("ytcsi."+(a||"")+"data_",b);return b};
rCa=function(){var a=_.Ji("ytcsi.debug");a||(a=[],_.Rj("ytcsi.debug",a),_.Rj("ytcsi.reference",{}));return a};
_.Co=function(a){a=a||"";var b=sCa();if(b[a])return b[a];var c=rCa(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d};
tCa=function(a){a=a||"";var b=sCa();b[a]&&delete b[a];var c=rCa(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d};
sCa=function(){var a=_.Ji("ytcsi.reference");if(a)return a;rCa();return _.Ji("ytcsi.reference")};
_.vCa=function(a){return uCa[a]||"LATENCY_ACTION_UNKNOWN"};
zCa=function(a,b,c){c=c===void 0?{}:c;var d=!1;_.Gi("ytLoggingEventsDefaultDisabled",!1)&&(d=!0);d=d?null:wl;c=c===void 0?{}:c;var e=Math.round(c.timestamp||(0,_.Uj)());_.ql(b,1,e<Number.MAX_SAFE_INTEGER?e:0);e=new wCa;if(c.lact)_.ql(e,1,isFinite(c.lact)?c.lact:-1);else if(c.timestamp)_.ql(e,1,-1);else{var g=_.Yk();_.ql(e,1,isFinite(g)?g:-1)}if(c.sequenceGroup&&!_.w("web_gel_sequence_info_killswitch")){g=c.sequenceGroup;var k=Yta(g),m=new xCa;m.setIndex(k);_.vf(m,1,g);_.qd(e,3,m);c.endOfSequence&&
delete yCa[c.sequenceGroup]}_.qd(b,33,e);(c.sendIsolatedPayload?dta:eta)(a,{endpoint:"log_event",payload:b,cttAuthInfo:c.cttAuthInfo,dangerousLogToVisitorSession:c.dangerousLogToVisitorSession},d)};
_.Eo=function(){return(_.w("csi_use_time_origin")||_.w("csi_use_time_origin_tvhtml5"))&&_.Do.timeOrigin?Math.floor(_.Do.timeOrigin):_.Do.timing.navigationStart};
_.ACa=function(a,b){_.Fo("_start",a,b)};
_.Go=function(a,b){if(!_.w("web_csi_action_sampling_enabled")||!_.Ao(b).actionDisabled){var c=_.Co(b||"");_.Hn(c.info,a);a.loadType&&(c=a.loadType,_.nCa(b).loadType=c);_.Hn(_.pCa(b),a);c=qCa(b);b=_.Ao(b).cttAuthInfo;BCa().info(a,c,b)}};
CCa=function(){var a,b,c,d;return((d=_.v().resolve(_.Xi(tl))==null?void 0:(a=Xta())==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]})};
_.Fo=function(a,b,c){if(!_.w("web_csi_action_sampling_enabled")||!_.Ao(c).actionDisabled){var d=qCa(c),e;if(e=_.w("web_csi_debug_sample_enabled")&&d){(_.v().resolve(_.Xi(tl))==null?0:Xta())&&!DCa&&(DCa=!0,_.Fo("gcfl",(0,_.Uj)(),c));var g,k,m;e=(_.v().resolve(_.Xi(tl))==null?void 0:(g=Xta())==null?void 0:(k=g.loggingHotConfig)==null?void 0:(m=k.csiConfig)==null?void 0:m.debugSampleWeight)||0;if(g=e!==0)b:{g=CCa();if(g.length>0)for(k=0;k<g.length;k++)if(a===g[k]){g=!0;break b}g=!1}g?(e=lCa(d)%e!==0,
_.Ao(c).debugTicksExcludedLogged||(g={},g.debugTicksExcluded=e,_.Go(g,c)),_.Ao(c).debugTicksExcludedLogged=!0):e=!1}if(!e){a[0]!=="_"&&ECa(a,c,b);e=_.Co(c||"");e.tick[a]=b||(0,_.Uj)();if(e.callback&&e.callback[a])for(e=_.h(e.callback[a]),g=e.next();!g.done;g=e.next())g=g.value,g();e=_.Bo(c);e.gelTicks&&(e.gelTicks[a]=!0);g=_.oCa(c);e=b||(0,_.Uj)();_.w("log_repeated_ytcsi_ticks")?a in g||(g[a]=e):g[a]=e;g=_.Ao(c).cttAuthInfo;a==="_start"?BCa().baseline(d,b,g):BCa().tick(a,d,b,g);_.FCa(c);return e}}};
ECa=function(a,b,c){if(_.Do.mark)if(a.startsWith("mark_")||(a="mark_"+a),b&&(a+=" ("+b+")"),c===void 0||_.w("web_csi_disable_alt_time_performance_mark"))_.Do.mark(a);else{c=_.w("csi_use_performance_navigation_timing")||_.w("csi_use_performance_navigation_timing_tvhtml5")?c-_.Do.timeOrigin:c-(_.Do.timeOrigin||_.Do.timing.navigationStart);try{_.Do.mark(a,{startTime:c})}catch(d){}}};
GCa=function(){var a,b=(a=_.Do.getEntriesByType)==null?void 0:a.call(_.Do,"mark");b&&b.forEach(function(c){if(c.name.startsWith("mark_")){var d;(d=_.Do.clearMarks)==null||d.call(_.Do,c.name)}})};
_.HCa=function(){switch(ysa()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.ICa=function(a){var b={},c=function(g,k,m){k=k.match("_rid")?k.split("_rid")[0]:k;typeof m==="number"&&(m=JSON.stringify(m));g.requestIds?g.requestIds.push({endpoint:k,id:m}):g.requestIds=[{endpoint:k,id:m}]};
a=_.h(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=_.h(d.value);d=e.next().value;e=e.next().value;switch(d){case "GetBrowse_rid":c(b,d,e);break;case "GetGuide_rid":c(b,d,e);break;case "GetHome_rid":c(b,d,e);break;case "GetPlayer_rid":c(b,d,e);break;case "GetSearch_rid":c(b,d,e);break;case "GetSettings_rid":c(b,d,e);break;case "GetTrending_rid":c(b,d,e);break;case "GetWatchNext_rid":c(b,d,e);break;case "yt_red":b.isRedSubscriber=!!e;break;case "yt_ad":b.isMonetized=!!e}}return b};
KCa=function(a,b,c,d,e,g){if(!_.w("web_csi_action_sampling_enabled")||!_.Ao(g).actionDisabled){var k=_.Bo(g);if(k.gelSpans)k.gelSpans[a]=!0;else{var m={};k.gelSpans=(m[a]=!0,m)}JCa++;a={spanName:a,spanLengthUsec:String(Math.round(b*1E3)),spanNonce:JCa};d&&(a.spanInfo=d);e&&(a.parentSpanNonce=e);c&&(a.spanStartTimeUsec=String(Math.round(c*1E3)));_.Co(g||"").span[String(a.spanName)]=a;c=_.Bo(g);c.gelSpans||(c.gelSpans={});_.Hn(c.gelSpans,a);c=qCa(g);g=_.Ao(g).cttAuthInfo;BCa().span(a,c,g);return a.spanNonce}};
_.LCa=function(a){var b=_.Ho("aft",a);if(b)return b;b=_.Fi((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d<c;d++){var e=_.Ho(b[d],a);if(e)return e}return NaN};
_.MCa=function(a,b){_.Rj("ytglobal.timing"+(b||"")+"ready_",a)};
_.Ho=function(a,b){if(a=_.oCa(b)[a])return typeof a==="number"?a:a[a.length-1]};
_.FCa=function(a){var b=_.Ho("_start",a),c=_.LCa(a),d=!NCa;b&&c&&d&&(Zqa(OCa,new PCa(Math.round(c-b),a)),NCa=!0)};
RCa=function(a){mCa(a);QCa();GCa();a||(_.Fi("TIMING_ACTION")&&_.Ei("PREVIOUS_ACTION",_.Fi("TIMING_ACTION")),_.Ei("TIMING_ACTION",""))};
_.SCa=function(a){a=a===void 0?{}:a;_.Ii(function(){Io();tCa();RCa();_.MCa(!1);a.cttAuthInfo&&(_.Ao().cttAuthInfo=a.cttAuthInfo);_.Ei("TIMING_AFT_KEYS",[]);a.isHot?_.Jo({loadType:"hot"}):_.Jo({loadType:"warm"});_.Ei("TIMING_ACTION","");delete _.Fi("TIMING_INFO",{}).yt_lt;_.Ii(_.ACa)(a.startTime,void 0)})()};
_.Ko=function(a,b,c,d){b=b===void 0?{}:b;_.Ii(function(){var e=c?c:a;TCa(e);var g=b.sampleRate;if(!_.w("web_csi_action_sampling_enabled")||g===void 0||g<=1)g=!1;else{var k=qCa(e);g=lCa(k)%g!==0}g&&(_.Ao(e).actionDisabled=!0);_.Co(e||"").info.actionType=a;b.cttAuthInfo&&(_.Ao(e).cttAuthInfo=b.cttAuthInfo);_.Ei(e+"TIMING_ACTION",a);_.Ii(_.ACa)(b.startTime,e);g={actionType:d||_.vCa(a)};b.logPreviousAction&&(g.previousAction=_.vCa(_.Fi("TIMING_ACTION")));(k=_.En())&&k!=="UNDEFINED_CSN"&&(g.clientScreenNonce=
k);_.Jo(g,e);_.MCa(!0,e)})()};
TCa=function(a){_.Ii(function(){Io(a);tCa(a);RCa(a)})()};
UCa=function(){_.Ii(function(){var a=[],b;for(b in _.Ji("ytcsi.".slice(0,-1)))b.endsWith("data_")&&a.push(b.slice(0,-5));a=_.h(a);for(b=a.next();!b.done;b=a.next())TCa(b.value);Io()})()};
_.WCa=function(a){return _.Ii(function(){return _.VCa("_start",a)})()};
_.Jo=function(a,b,c){_.Ii(_.Go)(a,b,c===void 0?!1:c)};
_.Lo=function(a,b,c){return _.Ii(_.Fo)(a,b,c)};
XCa=function(a,b,c,d){var e=(0,_.Uj)();return function(g,k){var m=void 0;b&&g?m=Object.assign({},b,g):b?m=b:g&&(m=g);g=(0,_.Uj)()-e;_.Ii(KCa)(a,g,e,m,k||c,d)}};
_.VCa=function(a,b){return _.Ii(function(){var c=_.oCa(b);return a in c})()};
ZCa=function(a){if(!_.w("universal_csi_network_ticks"))return"";a=_.gj(a)||"";for(var b=Object.keys(YCa),c=0;c<b.length;c++){var d=b[c];if(a.includes(d))return d}return""};
aDa=function(a){if(!_.w("universal_csi_network_ticks"))return function(){};
var b=YCa[a];return b?(_.Mo(b),function(){var c=_.w("universal_csi_network_ticks")?(c=$Ca[a])?_.Mo(c):!1:!1;return c}):function(){}};
_.Mo=function(a,b,c){return _.Ii(function(){if(_.VCa(a,c))return!1;_.Lo(a,b,c);return!0})()};
_.No=function(a,b,c){_.Ii(function(){if(!_.WCa(c)||_.VCa(a,c))return!1;_.Lo(a,b,c);return!0})()};
_.Oo=function(a){return _.Ii(_.Ho)(a,void 0)};
Io=function(a){_.WCa(a)&&_.Lo("aa",void 0,a)};
_.fDa=function(a,b,c,d,e,g,k,m,n){var r=bDa();m=new _.Cn({veType:b,youtubeData:g,jspbYoutubeData:m});g=Po({},r);e&&(g.cttAuthInfo=e);e={csn:r,pageVe:m.getAsJson()};_.w("expectation_logging")&&n&&n.screenCreatedLoggingExpectations&&(e.screenCreatedLoggingExpectations=n.screenCreatedLoggingExpectations);c&&c.visualElement?(e.implicitGesture={parentCsn:c.clientScreenNonce,gesturedVe:c.visualElement.getAsJson()},k&&(e.implicitGesture.gestureType=k)):c&&_.Dl(new _.qj("newScreen() parent element does not have a VE - rootVe",
b));d&&(e.cloneCsn=d);a?vl("screenCreated",e,a,g):_.xl("screenCreated",e,g);Zqa(fra,new cDa(r));Qo.clear();dDa.clear();eDa.clear();return r};
Ro=function(a,b,c,d,e){_.gDa(a,b,c,[d],e===void 0?!1:e)};
_.gDa=function(a,b,c,d,e){e=e===void 0?!1:e;for(var g=Po({cttAuthInfo:Fn(b)||void 0},b),k=_.h(d),m=k.next();!m.done;m=k.next()){m=m.value;var n=m.getAsJson();(_.Cf.isEmpty(n)||!n.trackingParams&&!n.veType)&&_.Dl(Error("xf"));if(_.w("no_client_ve_attach_unless_shown")){var r=iDa(m,b);if(n.veType&&!dDa.has(r)&&!eDa.has(r)&&!e){if(!_.w("il_attach_cache_limit")||Qo.size<1E3){Qo.set(r,[a,b,c,m]);return}_.w("il_attach_cache_limit")&&Qo.size>1E3&&_.Dl(new _.qj("IL Attach cache exceeded limit"))}m=iDa(c,
b);Qo.has(m)?jDa(c,b):eDa.set(m,!0)}}d=d.filter(function(t){t.csn!==b?(t.csn=b,t=!0):t=!1;return t});
c={csn:b,parentVe:c.getAsJson(),childVes:_.Df(d,function(t){return t.getAsJson()})};
b==="UNDEFINED_CSN"?So("visualElementAttached",g,c):a?vl("visualElementAttached",c,a,g):_.xl("visualElementAttached",c,g)};
lDa=function(a,b,c,d,e){kDa(a,b,c,e)};
kDa=function(a,b,c,d){mDa(c,b);var e=Po({cttAuthInfo:Fn(b)||void 0},b);c={csn:b,ve:c.getAsJson(),eventType:1};d&&(c.clientData=d);b==="UNDEFINED_CSN"?So("visualElementShown",e,c):a?vl("visualElementShown",c,a,e):_.xl("visualElementShown",c,e)};
nDa=function(a,b,c,d){mDa(c,b);var e=Po({cttAuthInfo:Fn(b)||void 0},b);c={csn:b,ve:c.getAsJson(),eventType:4};d&&(c.clientData=d);b==="UNDEFINED_CSN"?So("visualElementShown",e,c):a?vl("visualElementShown",c,a,e):_.xl("visualElementShown",c,e)};
oDa=function(a,b,c,d,e){var g=(d=d===void 0?!1:d)?16:8;d=Po({cttAuthInfo:Fn(b)||void 0,endOfSequence:d},b);c={csn:b,ve:c.getAsJson(),eventType:g};e&&(c.clientData=e);b==="UNDEFINED_CSN"?So("visualElementHidden",d,c):a?vl("visualElementHidden",c,a,d):_.xl("visualElementHidden",c,d)};
qDa=function(a,b,c,d,e){pDa(a,b,c,void 0,d,e)};
pDa=function(a,b,c,d,e){mDa(c,b);d=d||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var g=Po({cttAuthInfo:Fn(b)||void 0},b);c={csn:b,ve:c.getAsJson(),gestureType:d};e&&(c.clientData=e);b==="UNDEFINED_CSN"?So("visualElementGestured",g,c):a?vl("visualElementGestured",c,a,g):_.xl("visualElementGestured",c,g)};
rDa=function(a,b,c,d){var e=Po({cttAuthInfo:Fn(b)||void 0},b);c={csn:b,ve:c.getAsJson(),clientData:d};b==="UNDEFINED_CSN"?So("visualElementStateChanged",e,c):a?vl("visualElementStateChanged",c,a,e):_.xl("visualElementStateChanged",c,e)};
sDa=function(){var a=XAa(16);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
So=function(a,b,c){tDa.push({payloadName:a,payload:c,jspbPayload:void 0,options:b});uDa||(uDa=hra())};
era=function(a){if(tDa){for(var b=_.h(tDa),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,_.xl(c.payloadName,c.payload,c.options));tDa.length=0}uDa=0};
iDa=function(a,b){return""+a.getAsJson().veType+a.getAsJson().veCounter+b};
mDa=function(a,b){if(_.w("no_client_ve_attach_unless_shown")){var c=iDa(a,b);dDa.set(c,!0);jDa(a,b)}};
jDa=function(a,b){a=iDa(a,b);Qo.has(a)&&(b=Qo.get(a)||[],Ro(b[0],b[1],b[2],b[3],!0),Qo.delete(a))};
Po=function(a,b){_.w("log_sequence_info_on_gel_web")&&(a.sequenceGroup=b);return a};
_.To=function(a,b,c){_.Ii(Ro)(void 0,a,b,c)};
_.Uo=function(a,b){_.Ii(lDa)(void 0,a,b,void 0,void 0,void 0)};
_.Vo=function(a,b,c){_.Ii(function(){_.Mi(b,function(d){nDa(void 0,a,d,c)})})()};
_.Wo=function(a,b,c,d){_.Ii(function(){_.Mi(b,function(e){oDa(void 0,a,e,c,d)})})()};
_.Xo=function(a,b,c){_.Ii(qDa)(void 0,a,b,c,void 0)};
_.Yo=function(a,b,c,d){_.Ii(pDa)(void 0,a,b,c,d,void 0)};
_.Zo=function(a,b,c){_.Ii(rDa)(void 0,a,b,c,void 0)};
vDa=function(a,b){$o.set(a,b)};
wDa=function(a,b){var c=Object.keys(a);a=new _.qj("[Command Handler] "+b,{filteredCommandNames:c,originalCommand:a});_.Bl(a)};
xDa=function(a,b){wDa(a,b+" was called but not set")};
yDa=function(a){return function(){return new a}};
bp=function(a){return function(){return _.v().resolve(a)}};
zDa=function(a,b){var c=_.y(a,_.Il);if(c&&(c=b[c.signal]))return c();a=_.h(Object.keys(a));for(c=a.next();!c.done;c=a.next())if(c=c.value,b[c]&&(c=b[c]))return c()};
cp=function(a,b,c,d){return{browseEndpoint:{browseId:a},commandMetadata:{webCommandMetadata:{url:b,rootVe:c,webPageType:d===void 0?"WEB_PAGE_TYPE_BROWSE":d}}}};
ADa=function(a,b,c){var d=b=b===void 0?0:b;c=c===void 0?0:c;var e=c-d;return _.dp(a,"PPSV",void 0,void 0,(e>600?0:e<60||c<=0||d/c>.9)?0:b)};
_.dp=function(a,b,c,d,e){var g="/watch?v="+a;a={videoId:a};b&&(a.playlistId=b,g+="&list="+b);d&&(g+="&pp="+d);e&&(a.startTimeSeconds=e,g+="&t="+e+"s");b={watchEndpoint:a,commandMetadata:{webCommandMetadata:{url:g,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};c&&(b.clickTrackingParams=c);d&&(_.y(b,_.Un).playerParams=d);return b};
BDa=function(a){return{browseEndpoint:{browseId:"VL"+a},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+a,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
CDa=function(a){if(a){var b;if(a){var c=(b=_.y(a.commandMetadata,_.co))==null?void 0:b.url;b=!(!c||c==="/service_ajax")}else b=!1;if(b)return a;var d;if(a=(d=_.y(a,_.ro))==null?void 0:d.commands)for(d=_.h(a),a=d.next();!a.done;a=d.next())if(a=CDa(a.value))return a}};
_.ep=function(a){return{runs:[{text:a}]}};
DDa=function(a,b){return a&&b?{runs:[{text:a,navigationEndpoint:b}]}:void 0};
fp=function(a){return a?_.ep(a):void 0};
_.gp=function(a){return a?{simpleText:a}:void 0};
_.hp=function(a){var b=a.type;a=a.payload;b={type:b};a!==void 0&&(b.payload=a);return b};
EDa=function(a,b,c){for(var d=Object.assign({},a),e=_.h(Object.keys(b)),g=e.next();!g.done;g=e.next()){g=g.value;var k=a[g],m=b[g];if(m===void 0)delete d[g];else if(k===void 0)d[g]=m;else if(Array.isArray(m)&&Array.isArray(k))d[g]=c?[].concat(_.De(k),_.De(m)):m;else if(!Array.isArray(m)&&_.Za(m)&&!Array.isArray(k)&&_.Za(k))d[g]=EDa(k,m,c);else if(typeof m===typeof k)d[g]=m;else return b=new _.qj("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:g,originalValue:k,updateValue:m}),
_.Bl(b),a}return d};
HDa=function(a){if(!a.length)return"";try{if(FDa)return FDa.decode(a);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(a)}catch(k){}for(var b=0,c=[],d=a.length;b<d;){for(var e=0;e<1024&&b<d;){var g=a[b++];if(g<128)GDa[e++]=g;else{if(g<224)g=(g&31)<<6|a[b++]&63;else if(g<240)g=(g&15)<<12|(a[b++]&63)<<6|a[b++]&63;else{if(e+1===1024){--b;break}g=(g&7)<<18|(a[b++]&63)<<12|(a[b++]&63)<<6|a[b++]&63;g-=65536;GDa[e++]=55296|g>>10;g=56320|g&1023}GDa[e++]=g}}g=String.fromCharCode.apply(String,
GDa);e<1024&&(g=g.substring(0,e));c.push(g)}return c.join("")};
JDa=function(a,b){var c;if((c=IDa)==null?0:c.encodeInto)return b=IDa.encodeInto(a,b),b.read<a.length?a.length*4:b.written;for(var d=c=0;d<a.length;d++){var e=a.charCodeAt(d);e<128?b[c++]=e:(e<2048?b[c++]=e>>6|192:((e&64512)===55296&&d+1<a.length&&(a.charCodeAt(d+1)&64512)===56320?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>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};
KDa=function(a,b){a=new Uint8Array(a);b&&a.set(b);return a};
_.jp=function(a){a=new LDa(new MDa([_.cb(decodeURIComponent(a))]));if(NDa(a,2)){var b=ip(a);var c=a.pos;c=a.arrayView.getDataView(c===void 0?0:c,b===void 0?-1:b);c=new Uint8Array(c.buffer,c.byteOffset,c.byteLength);a.pos+=b;b=c}else b=void 0;b=b?HDa(b):void 0;a=NDa(a,4)?ip(a):void 0;c=ODa[a];if(typeof c==="undefined")throw a=new _.qj("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:a}),_.Bl(a),a;return{entityTypeFieldNumber:a,entityType:c,entityId:b}};
_.mp=function(a,b,c){c=c===void 0?0:c;var d=new PDa;if(IDa)a=IDa.encode(a);else{var e=new Uint8Array(Math.ceil(a.length*1.2)),g=JDa(a,e);e.length<g&&(e=new Uint8Array(g),g=JDa(a,e));e.length>g&&(e=e.subarray(0,g));a=e}a!==void 0&&(kp(d,18),e=a.length,kp(d,e),lp(d,e),d.buf.set(a,d.pos),d.pos+=e);a=QDa[b];if(typeof a==="undefined")throw c=new _.qj("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),_.Bl(c),c;a!==void 0&&(kp(d,32),kp(d,a));kp(d,40);kp(d,1);b=new Uint8Array(d.buf.buffer,
d.buf.byteOffset,d.pos);return encodeURIComponent(_.Bc(b,c))};
RDa=function(a){a=a.key||a.id;if(!a)throw Error("Af");return a};
TDa=function(a,b){a=a===void 0?{}:a;return SDa(a,b)};
UDa=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={},g={};return Object.assign({},a,(g[b]=Object.assign({},a[b],(e[c]=d,e)),g))};
VDa=function(a,b,c,d,e){var g=a[b];if(g==null||!g[c])return a;d=EDa(g[c],d,e==="REPEATED_FIELDS_MERGE_OPTION_APPEND");e={};g={};return Object.assign({},a,(g[b]=Object.assign({},a[b],(e[c]=d,e)),g))};
_.np=function(a,b,c){return a[b]?a[b][c]||null:null};
XDa=function(){if(WDa)return WDa();var a={};WDa=Tj("PersistentEntityStoreDb",{objectStores:(a.EntityStore={addedAtVersion:1},a.EntityAssociationStore={addedAtVersion:2},a),shared:!1,upgrade:function(b,c){c(1)&&Hk(Gk(b,"EntityStore",{keyPath:"key"}),"entityType","entityType");c(2)&&(b=Gk(b,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),Hk(b,"byParentEntityKey","parentEntityKey"),Hk(b,"byChildEntityKey","childEntityKey"))},
version:3});return WDa()};
YDa=function(a){return _.Lj(XDa(),a)};
op=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
$Da=function(a){return _.Lj(ZDa(),a)};
aEa=function(a){return new qp("WRONG_DATA_TYPE",{encoderVersion:a})};
bEa=function(a){return a instanceof Error?new qp("UNKNOWN_ENCODE_ERROR",{originalMessage:a.message}):new qp("UNKNOWN_ENCODE_ERROR")};
cEa=function(a){return a instanceof Error?new qp("UNKNOWN_DECODE_ERROR",{originalMessage:a.message}):new qp("UNKNOWN_DECODE_ERROR")};
dEa=function(a,b){a=a instanceof qp?a:b(a);_.Bl(a);throw a;};
eEa=function(a){a=(new TextEncoder).encode(a).subarray(0,16);var b=new Uint8Array(16);b.set(a);return b};
gEa=function(a){var b=fEa[a];if(b)return b;_.Dl(new _.qj("Entity model not found.",{entityType:a}))};
_.rp=function(){hEa||(hEa=iEa());return hEa};
iEa=function(){var a,b,c;return _.l(function(d){if(d.nextAddress==1)return _.pe(d,2),_.p(d,_.Sj(),4);if(d.nextAddress!=2){a=d.yieldResult;if(!a||!_.pj()||typeof _.ja.BroadcastChannel==="undefined")return d.return();b=new jEa;return d.return(new sp(a,b))}c=_.te(d);c instanceof Error&&_.Bl(c);return d.return()})};
_.tp=function(a,b){var c;return _.l(function(d){if(d.nextAddress==1){c=a.mutations;if(!c||c.length<=0)return d.return();b&&b.dispatch(_.hp({type:"ENTITY_LOADED",payload:c}));return _.p(d,kEa(c),2)}c.length=0;_.ue(d)})};
kEa=function(a){var b;return _.l(function(c){return c.nextAddress==1?_.p(c,_.rp(),2):(b=c.yieldResult)?_.p(c,_.up(b,"readwrite",function(d){for(var e={},g=_.h(a),k=g.next(),m={};!k.done;m={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},k=g.next())m.mutation$jscomp$4=k.value,m.mutation$jscomp$4.entityKey&&lEa(m.mutation$jscomp$4)&&(m.mutationEntityType$jscomp$3=(0,_.Cf.getAnyKey)(m.mutation$jscomp$4.payload),k=void 0,m.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(k=function(n){return function(){return _.mEa(d,
n.mutation$jscomp$4.payload[n.mutationEntityType$jscomp$3],n.mutationEntityType$jscomp$3)}}(m)),m.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(k=function(n){return function(){return nEa(d,n.mutation$jscomp$4.entityKey)}}(m)),m.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(k=function(n){return function(){return oEa(d,n.mutation$jscomp$4.entityKey,n.mutation$jscomp$4.payload[n.mutationEntityType$jscomp$3],n.mutationEntityType$jscomp$3)}}(m)),k&&(e[m.mutation$jscomp$4.entityKey]=
e[m.mutation$jscomp$4.entityKey]?e[m.mutation$jscomp$4.entityKey].then(k):k()));
return Fj.all(Object.values(e))}),0):c.return()})};
lEa=function(a){var b;a=(b=a.options)==null?void 0:b.persistenceOption;return a==="ENTITY_PERSISTENCE_OPTION_PERSIST"||a==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
rEa=function(a,b){var c,d;_.l(function(e){if(e.nextAddress==1)return _.p(e,_.rp(),2);if(e.nextAddress!=3)return(c=e.yieldResult)?_.p(e,_.up(c,"readonly",function(g){var k={},m=Object.keys(b).map(function(n){var r=b[n]?[].concat(_.De(b[n])):[];return pEa(g,n,r,k)});
return Fj.all(m).then(function(){return k})}),3):e.return();
d=e.yieldResult;Object.keys(d).length>0&&a.dispatch(qEa(d));_.ue(e)})};
pEa=function(a,b,c,d){return vp(a,b,c).then(function(e){d[b]=sEa(c,e)})};
sEa=function(a,b){if(b.length!==a.length)throw Error("Df");return b.reduce(function(c,d,e){c[a[e]]=d;return c},{})};
vEa=function(a){var b=a.filter(function(e){var g;return(e==null?void 0:(g=e.transferEntity)==null?void 0:g.transferState)==="TRANSFER_STATE_COMPLETE"}).length,c=a.filter(function(e){var g;
return(e==null?void 0:(g=e.transferEntity)==null?void 0:g.transferState)==="TRANSFER_STATE_FAILED"}).length,d=a.filter(function(e){var g;
return(e==null?void 0:(g=e.transferEntity)==null?void 0:g.transferState)&&tEa.includes(e.transferEntity.transferState)});
if(!(b||d!=null&&d.length))return 0;b=_.uEa(d)+b;a=a.length-c;return a===0?0:Math.round(b*100/a)/100};
_.uEa=function(a){var b=[];b=b.concat.apply(b,_.De(a.filter(function(g){return g.streamEntity}).map(function(g){var k=Object.assign({},g.streamEntity),m,n=(m=g.transferEntity)==null?void 0:m.transferState;
k.streamsProgress=k.streamsProgress||[];k.streamsProgress=k.streamsProgress.map(function(r){var t=Object.assign({},r);t.numBytesDownloaded=n==="TRANSFER_STATE_COMPLETE"?r.numTotalBytes:r.numBytesDownloaded;return t});
return k}).map(function(g){return g.streamsProgress})));
var c=a=0;b=_.h(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=Number(e.numBytesDownloaded);e=Number(e.numTotalBytes);c+=isNaN(d)?0:d;a+=isNaN(e)?0:e}return a===0?0:Math.round(c*100/a)/100};
wEa=function(a){if(!a||!a.expirationTimestamp||!a.action)return!1;var b=(0,_.Uj)()/1E3;return Number(a.expirationTimestamp)>=b};
wp=function(a){return a&&a.expirationTimestamp&&a.action?wEa(a)&&a.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.xp=function(a){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(a||"TRANSFER_STATE_UNKNOWN")};
xEa=function(a){var b=new PDa;if(a!==void 0){var c=Math.ceil(Math.log2(a.length*4+2)/7);c=c===void 0?2:c;kp(b,10);b.submessagePosStack.push(b.pos);b.submessagePosStack.push(c);b.pos+=c;lp(b,a.length*1.2);c=JDa(a,b.buf.subarray(b.pos));b.pos+c>b.buf.length&&(lp(b,c),c=JDa(a,b.buf.subarray(b.pos)));b.pos+=c;a=b.submessagePosStack.pop();c=b.submessagePosStack.pop();for(var d=b.pos-c-a;a--;){var e=a?128:0;b.view.setUint8(c++,d&127|e);d>>=7}}b=new Uint8Array(b.buf.buffer,b.buf.byteOffset,b.pos);return(new TextDecoder("utf-8")).decode(b)};
_.yEa=function(a){var b=0;a=_.h(a);for(var c=a.next(),d={};!c.done;d={transferState$jscomp$3:void 0},c=a.next()){var e=c.value,g=void 0;c=(g=e.streamEntity)!=null?g:{};g=void 0;d.transferState$jscomp$3=(g=e.transferEntity)==null?void 0:g.transferState;g=e=void 0;((e=c)==null?0:(g=e.streamsProgress)==null?0:g.length)&&c.streamsProgress.forEach(function(k){return function(m){m=Number(k.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?m.numTotalBytes:m.numBytesDownloaded);isFinite(m)&&(b+=m)}}(d))}return b};
zEa=function(a){return a.some(function(b){var c;if(!(b==null?0:(c=b.transferEntity)==null?0:c.transferState)){var d;return!(b==null?0:(d=b.policyEntity)==null?0:d.action)||b.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return tEa.includes(b.transferEntity.transferState)})};
AEa=function(a,b){if(!b)return!1;if(_.w("of_pb_en_po_ks"))return!0;var c;a=(c=_.np(a,"offlineVideoPolicy",_.mp(b,"offlineVideoPolicy")))!=null?c:void 0;return!!a&&wp(a)};
_.CEa=function(a){var b=["TRANSFER_STATE_COMPLETE"];b=b===void 0?BEa:b;return a.filter(function(c){var d,e;return b.includes((e=(d=c.transferEntity)==null?void 0:d.transferState)!=null?e:"TRANSFER_STATE_UNKNOWN")})};
DEa=function(a,b){if(b){var c,d=(c=_.np(a,"playbackData",_.mp(b,"playbackData")))!=null?c:null,e;c=(e=_.np(a,"transfer",_.mp(b,"transfer")))!=null?e:null;var g;e=(g=_.np(a,"offlineVideoStreams",_.mp(b,"offlineVideoStreams")))!=null?g:null;var k;a=(k=_.np(a,"offlineVideoPolicy",_.mp(b,"offlineVideoPolicy")))!=null?k:null;if(d||c||e||a)return{playbackDataEntity:d,transferEntity:c,streamEntity:e,policyEntity:a}}};
_.yp=function(a){var b=a.playbackData;if(!b)return[];var c=[];b=_.h(Object.keys(b));for(var d=b.next();!d.done;d=b.next()){var e=d.value;if(!EEa(a,_.jp(e).entityId)&&(d=DEa(a,_.jp(e).entityId))){var g=void 0,k=void 0;e=(k=Number((g=_.np(a,"playbackData",e))==null?void 0:g.streamDownloadTimestampSeconds))!=null?k:(0,_.Uj)();c.push({entity:d,streamDownloadTimestamp:e})}}return c.sort(function(m,n){var r=m.streamDownloadTimestamp,t=n.streamDownloadTimestamp;return t===r?m.entity.streamEntity&&!n.entity.streamEntity?
1:-1:t-r}).map(function(m){return m.entity})};
FEa=function(a){return _.CEa(_.yp(a))};
_.GEa=function(a){return _.yp(a).filter(function(b){var c;if(((c=b.policyEntity)==null?0:c.action)&&b.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var d;if((d=b.transferEntity)==null?0:d.transferState){var e;return tEa.includes((e=b.transferEntity)==null?void 0:e.transferState)}return!0})};
EEa=function(a,b){var c;return((c=_.np(a,"downloadStatusEntity",_.mp(b,"downloadStatusEntity")))==null?void 0:c.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
HEa=function(a){var b;if(a==null?0:(b=a.playbackDataEntity)==null?0:b.key)return _.jp(a.playbackDataEntity.key).entityId;var c;if(a==null?0:(c=a.transferEntity)==null?0:c.key)return _.jp(a.transferEntity.key).entityId;var d;if(a==null?0:(d=a.streamEntity)==null?0:d.key)return _.jp(a.streamEntity.key).entityId;var e;if(a==null?0:(e=a.policyEntity)==null?0:e.key)return _.jp(a.policyEntity.key).entityId};
JEa=function(a){var b=new Set,c;a=(c=a.mainDownloadsListEntity)==null?void 0:c[IEa];var d;if(!(a==null?0:(d=a.downloads)==null?0:d.length))return b;var e;a==null||(e=a.downloads)==null||e.forEach(function(g){(g==null?0:g.videoItem)&&b.add(g.videoItem)});
return b};
zp=function(a,b){if(b){var c=_.np(a,"mainVideoEntity",_.mp(b,"mainVideoEntity")),d=_.np(a,"downloadStatusEntity",_.mp(b,"downloadStatusEntity")),e=_.np(a,"ytMainChannelEntity",_.mp(b,"ytMainChannelEntity")),g={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};a=DEa(a,b);d=(d==null?void 0:d.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.w("woffle_render_failed_download_state_ks")&&(d==null?void 0:d.downloadState)==="DOWNLOAD_STATE_FAILED";!a&&d&&(a=g);if(a&&c&&
e)return Object.assign({},{videoEntity:c,channelEntity:e},a)}};
Ap=function(a,b){return KEa(a,b)==="TRANSFER_STATE_COMPLETE"&&AEa(a,b)};
LEa=function(a,b){if(!b)return!1;var c;a=(c=_.np(a,"playbackData",_.mp(b,"playbackData")))!=null?c:void 0;return!!a&&!!a.playerResponseJson};
KEa=function(a,b){if(!b)return"TRANSFER_STATE_UNKNOWN";var c=_.np(a,"transfer",_.mp(b,"transfer"));if(c){var d;return(d=c.transferState)!=null?d:"TRANSFER_STATE_UNKNOWN"}c=_.np(a,"offlineOrchestrationActionWrapperEntity",_.mp(b,"offlineOrchestrationActionWrapperEntity"));a=_.np(a,"mainVideoEntity",_.mp(b,"mainVideoEntity"));return c||a?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
MEa=function(a,b){if(!b)return"TRANSFER_STATE_UNKNOWN";if(a=_.np(a,"transfer",_.mp(b,"transfer"))){var c;return(c=a.transferState)!=null?c:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
NEa=function(a,b){return b&&(a=_.np(a,"videoPlaybackPositionEntity",_.mp(b,"videoPlaybackPositionEntity")),a==null?0:a.lastPlaybackPositionSeconds)?Number(a.lastPlaybackPositionSeconds):0};
PEa=function(a,b){return OEa(a).some(function(c){var d;return(c==null?void 0:(d=c.mainPlaylistEntity)==null?void 0:d.playlistId)===b})};
REa=function(a,b,c){var d=QEa(a,b);if(!d.length)return[];b=[];d=_.h(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var g=zp(a,e);c&&KEa(a,e)!=="TRANSFER_STATE_COMPLETE"||g&&b.push(g)}return b};
QEa=function(a,b){if(!b)return[];var c=_.mp(b,"mainPlaylistEntity"),d;b=(d=a.mainPlaylistEntity)==null?void 0:d[c];d=[];if(b==null||!b.videos)return d;b=_.h(b.videos);for(c=b.next();!c.done;c=b.next()){c=c.value;var e=void 0,g=void 0,k=void 0,m=(e=a)==null?void 0:(g=e.mainPlaylistVideoEntity)==null?void 0:(k=g[c])==null?void 0:k.video;m&&(c=_.jp(m).entityId)&&d.push(c)}return d};
SEa=function(a,b){if(b){var c=_.np(a,"mainPlaylistEntity",_.mp(b,"mainPlaylistEntity")),d=_.np(a,"mainPlaylistDownloadStateEntity",_.mp(b,"mainPlaylistDownloadStateEntity"));a=_.np(a,"ytMainChannelEntity",_.mp(b,"ytMainChannelEntity"));if(d&&c)return Object.assign({},{mainPlaylistEntity:c,mainPlaylistDownloadStateEntity:d},!!a&&{channelEntity:a})}};
OEa=function(a){return TEa(a).sort(function(b,c){return c.addedTimestampMillis-b.addedTimestampMillis}).map(function(b){return b.downloadedPlaylistEntities})};
TEa=function(a){var b=a.mainPlaylistDownloadStateEntity,c=[];if(!b)return c;for(var d=_.h(Object.keys(b)),e=d.next();!e.done;e=d.next()){var g=e.value;e=SEa(a,_.jp(g).entityId);var k=void 0;g=Number((k=b[g])==null?void 0:k.addedTimestampMillis);k=isNaN(g)?(0,_.Uj)():g;e!==void 0&&c.push({downloadedPlaylistEntities:e,addedTimestampMillis:k})}return c};
UEa=function(a){var b,c=(b=a.mainPlaylistVideoEntity)!=null?b:{};return new Set(OEa(a).reduce(function(d,e){d=d===void 0?[]:d;var g,k;e==null||(g=e.mainPlaylistEntity)==null||(k=g.videos)==null||k.forEach(function(m){var n;(m=(n=c[m])==null?void 0:n.video)&&d.push(m)});
return d},[]))};
VEa=function(a){return"downloadedMusicPlaylistEntities"in a};
WEa=function(a){return"mainPlaylistEntity"in a&&"mainPlaylistDownloadStateEntity"in a};
XEa=function(a){return"videoEntity"in a&&"channelEntity"in a};
YEa=function(a){var b=a.musicPlaylistDownloadMetadataEntity,c=[];if(!b)return c;for(var d=_.h(Object.keys(b)),e=d.next();!e.done;e=d.next()){e=e.value;a:{var g=a,k=_.jp(e).entityId;if(k){var m=_.np(g,"musicPlaylist",_.mp(k,"musicPlaylist"));g=_.np(g,"musicPlaylistDownloadMetadataEntity",_.mp(k,"musicPlaylistDownloadMetadataEntity"));if(m&&g){m={musicPlaylistEntity:m,musicPlaylistDownloadStateEntity:g};break a}}m=void 0}g=void 0;e=Number((g=b[e])==null?void 0:g.addedTimestampMillis);e=isNaN(e)?(0,_.Uj)():
e;m!==void 0&&c.push({downloadedMusicPlaylistEntities:m,addedTimestampMillis:e})}return c};
ZEa=function(a){var b=new Set;a=_.h(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,"musicPlaylistEntity"in c&&"musicPlaylistDownloadStateEntity"in c){c=_.h(c.musicPlaylistEntity.tracks);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}return b};
$Ea=function(a,b){if(b){var c=_.np(a,"musicTrack",_.mp(b,"musicTrack")),d=_.np(a,"musicArtist",_.mp(b,"musicArtist"))||{};if((a=DEa(a,b))&&c&&d)return Object.assign({},{musicTrackEntity:c,musicArtistEntity:d},a)}};
aFa=function(a){var b=a.musicTrackDownloadMetadataEntity,c=[];if(!b)return[];b=_.h(Object.keys(b));for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=$Ea(a,_.jp(e).entityId);var g=void 0;e=Number((g=_.np(a,"musicTrackDownloadMetadataEntity",e))==null?void 0:g.addedTimestampMillis);g=isNaN(e)?(0,_.Uj)():e;d!==void 0&&c.push({downloadedMusicEntities:d,addedTimestampMillis:g})}return c};
dFa=function(a,b){if(!b)return[];if(Object.values(bFa).includes(b))return cFa(a,b);b=_.mp(b,"musicPlaylist");var c;a=(c=a.musicPlaylist)==null?void 0:c[b];c=[];if(a==null||!a.tracks)return c;a=_.h(a.tracks);for(b=a.next();!b.done;b=a.next())(b=_.jp(b.value).entityId)&&c.push(b);return c};
cFa=function(a,b){var c=new Set,d=YEa(a).map(function(g){return g.downloadedMusicPlaylistEntities});
d=ZEa(d);d=_.h(d);for(var e=d.next();!e.done;e=d.next())(e=_.jp(e.value).entityId)&&c.add(e);return eFa(a).downloadedMusicEntities.filter(function(g){var k;if((k=g.musicTrackEntity)!=null&&k.videoId){g=g.musicTrackEntity;if(k=b==="PPOM"?!0:!c.has(g.videoId))b:switch(g=g.musicVideoType,b){case "PPSE":k=g==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:k=g!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}g=k}else g=!1;return g}).map(function(g){var k;
return(k=g.musicTrackEntity)==null?void 0:k.videoId})};
eFa=function(a){var b=aFa(a).sort(function(c,d){return d.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return"downloadedMusicEntities"in c?c.downloadedMusicEntities:VEa(c)?c.downloadedMusicPlaylistEntities:{}});
a=YEa(a).sort(function(c,d){return d.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return"downloadedMusicEntities"in c?c.downloadedMusicEntities:VEa(c)?c.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:b,downloadedMusicPlaylistEntities:a}};
gFa=function(a,b){b=_.Fi("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?dFa(a,b):QEa(a,b);if(!b.length)return"TRANSFER_STATE_UNKNOWN";b=b.map(function(c){return MEa(a,c)});
return fFa(b)};
fFa=function(a){var b=new Set(a);if(b.has("TRANSFER_STATE_FAILED")&&b.size===1)return"TRANSFER_STATE_FAILED";b.delete("TRANSFER_STATE_FAILED");if(b.has("TRANSFER_STATE_UNKNOWN")&&b.size===1)return"TRANSFER_STATE_PRE_TRANSFER";b.delete("TRANSFER_STATE_UNKNOWN");if(b.has("TRANSFER_STATE_PRE_TRANSFER")&&b.size===1||b.size===0)return"TRANSFER_STATE_PRE_TRANSFER";a=b.has("TRANSFER_STATE_TRANSFERRING");b=b.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return a||b?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
Bp=function(a){var b=a.mainVideoDownloadStateEntity,c=[];if(!b)return[];b=_.h(Object.keys(b));for(var d=b.next();!d.done;d=b.next()){var e=d.value;if(!EEa(a,_.jp(e).entityId)){d=zp(a,_.jp(e).entityId);var g=void 0,k=void 0;e=(k=Number((g=_.np(a,"mainVideoDownloadStateEntity",e))==null?void 0:g.addedTimestampMillis))!=null?k:(0,_.Uj)();d!==void 0&&c.push({downloadedVideoEntities:d,addedTimestampMillis:e})}}return c};
hFa=function(a){return Bp(a).sort(function(b,c){return c.addedTimestampMillis-b.addedTimestampMillis}).map(function(b){return b.downloadedVideoEntities})};
_.jFa=function(a){var b=UEa(a),c=_.Cp(a),d=JEa(a),e=Bp(a).filter(function(k){var m,n;if((k==null?void 0:(m=k.downloadedVideoEntities)==null?void 0:(n=m.transferEntity)==null?void 0:n.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var r,t;k=k==null?void 0:(r=k.downloadedVideoEntities)==null?void 0:(t=r.videoEntity)==null?void 0:t.key;return _.w("kevlar_use_library_entity")?k&&(d.has(k)||c[k]):k&&!b.has(k)}),g=TEa(a).filter(function(k){return gFa(a,k.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.De(e),_.De(g)).sort(function(k,m){return m.addedTimestampMillis-k.addedTimestampMillis}).map(function(k){return iFa(k)})};
kFa=function(a,b){if(b&&AEa(a,b)){var c,d,e=(d=(c=_.np(a,"playbackData",_.mp(b,"playbackData")))!=null?c:void 0)==null?void 0:d.playerResponseJson;if(e){try{var g=JSON.parse(e);var k=_.np(a,"transfer",_.mp(b,"transfer")),m=NEa(a,b);m&&(g=Object.assign({},g,{playerConfig:Object.assign({},g.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+m*1E3}}})}));g.cotn=k==null?void 0:k.cotn}catch(n){}return g}}};
_.nFa=function(a){var b,c,d;a=(d=(c=((b=a.downloadsPageViewConfigurationEntity)!=null?b:{})[lFa])==null?void 0:c.smartDownloadsOptInBannerVisibility)!=null?d:{};var e;return(e=_.y(a,mFa))!=null?e:{}};
_.Cp=function(a){var b,c,d;a=(d=(c=((b=a.mainDownloadsListEntity)!=null?b:{})[_.oFa])==null?void 0:c.downloads)!=null?d:[];b={};c=_.h(a);for(d=c.next();!d.done;d=c.next())a=void 0,b[(a=d.value.videoItem)!=null?a:""]=!0;return b};
pFa=function(a){var b=_.Cp(a);if(Object.keys(b).length===0)return!1;var c=a.mainVideoEntity;if(!c)return!0;c=_.h(Object.keys(c));for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=_.jp(d).entityId;if(b[d]&&!EEa(a,e))return!1}return!0};
_.Dp=function(a){var b=_.Cp(a);return Bp(a).sort(function(c,d){return c.addedTimestampMillis-d.addedTimestampMillis}).map(function(c){return c.downloadedVideoEntities}).filter(function(c){var d;
return(c=c==null?void 0:(d=c.videoEntity)==null?void 0:d.key)&&!!b[c]})};
iFa=function(a){return"downloadedVideoEntities"in a?a.downloadedVideoEntities:"downloadedPlaylistEntities"in a?a.downloadedPlaylistEntities:{}};
qFa=function(a){var b=_.Cp(a),c=UEa(a),d=Bp(a).filter(function(e){var g,k;return(e=e==null?void 0:(g=e.downloadedVideoEntities)==null?void 0:(k=g.videoEntity)==null?void 0:k.key)&&!b[e]&&!c.has(e)});
a=TEa(a);return[].concat(_.De(d),_.De(a)).sort(function(e,g){return g.addedTimestampMillis-e.addedTimestampMillis}).map(function(e){return iFa(e)})};
_.rFa=function(a){if(!_.w("kevlar_use_library_entity"))return qFa(a);var b=Bp(a).filter(function(d){var e,g;if(e=d=d==null?void 0:(e=d.downloadedVideoEntities)==null?void 0:(g=e.videoEntity)==null?void 0:g.key){var k,m,n;e=((m=(k=a.mainDownloadsListEntity)==null?void 0:k[IEa])==null?0:(n=m.downloads)==null?0:n.length)?JEa(a).has(d):!1}return e}),c=TEa(a);
return[].concat(_.De(b),_.De(c)).sort(function(d,e){return e.addedTimestampMillis-d.addedTimestampMillis}).map(function(d){return iFa(d)})};
sFa=function(a){var b=_.Cp(a),c=UEa(a);return hFa(a).filter(function(d){var e;return(d=d==null?void 0:(e=d.videoEntity)==null?void 0:e.key)&&!b[d]&&!c.has(d)})};
tFa=function(a){if(!_.w("kevlar_use_library_entity"))return sFa(a);var b=_.Cp(a),c=JEa(a);return hFa(a).filter(function(d){var e;return(d=d==null?void 0:(e=d.videoEntity)==null?void 0:e.key)&&!b[d]&&c.has(d)})};
uFa=function(a,b){b=_.mp(b,"settingEntity");var c,d,e;return!!((e=(d=((c=a.settingEntity)!=null?c:{})[b])==null?void 0:d.settingOptionValue)!=null?e:{}).boolValue};
_.Ep=function(a){var b=_.Dp(a);if(zEa(b))return 0;var c=[];b=_.h(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=void 0,g=void 0;if((e=d)==null?0:(g=e.videoEntity)==null?0:g.key)e=_.jp(d.videoEntity.key).entityId,d=a,e=_.mp(e,"mainVideoDownloadStateEntity"),d=_.np(d,"mainVideoDownloadStateEntity",e),(d=Number(d==null?void 0:d.addedTimestampMillis))&&c.push(d)}return Math.max.apply(Math,_.De(c))};
_.Fp=function(a){return a.ui.richGridMiniMode};
_.Gp=function(a){return a.ui.richGridItemsPerRow};
_.vFa=function(a){return a.ui.richGridSlimItemsPerRow};
_.wFa=function(a){return a.ui.guideIsExpanded};
_.Hp=function(a){return a.ui.miniplayerIsActive};
_.xFa=function(a){return a.ui.singleOptionSurveyIsActive};
_.Ip=function(a){return a.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.yFa=function(a){return a.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.zFa=function(a){return a.ui.inlinePreviewIsActive};
_.AFa=function(a){return a.ui.inlinePreviewIsEnabled};
_.BFa=function(a){return a.ui.miniplayerPlaybackState};
Jp=function(a){return a.ui.isOnline};
_.CFa=function(a){return a.ui.frostedGlassMode};
_.Kp=function(a,b){return KEa(a.entities,b)};
_.Lp=function(a,b){return gFa(a.entities,b)};
DFa=function(a,b){var c;if(b){var d;a=(d=_.np(a.entities,"offlineVideoPolicy",_.mp(b,"offlineVideoPolicy")))==null?void 0:d.action}else a=void 0;return(c=a)!=null?c:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
EFa=function(a,b){var c;b?(a=_.np(a.entities,"offlineVideoPolicy",_.mp(b,"offlineVideoPolicy")),a=Number(a==null?void 0:a.expirationTimestamp)):a=void 0;return(c=a)!=null?c:0};
_.FFa=function(a){return _.yp(a.entities).length};
GFa=function(a,b){return zp(a.entities,b)};
HFa=function(a,b){return SEa(a.entities,b)};
Mp=function(a,b){return(a=zp(a.entities,b))?_.uEa([a]):0};
_.IFa=function(a,b){var c=_.Fi("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(c){var d=a.entities;var e=dFa(d,b);if(e.length){var g=[];e=_.h(e);for(var k=e.next();!k.done;k=e.next())(k=$Ea(d,k.value))&&g.push(k);d=g}else d=[]}else d=REa(a.entities,b);var m;if(c){var n=a.entities;b?(b=_.mp(b,"musicPlaylist"),n=(m=n.musicPlaylist)==null?void 0:m[b],m=n!=null&&n.tracks?n.tracks.length:0):m=0}else m=a.entities,b?(b=_.mp(b,"mainPlaylistEntity"),m=(n=m.mainPlaylistEntity)==null?void 0:n[b],m=m!=null&&m.videos?
m.videos.length:0):m=0;return d.length!==m?0:d?vEa(d):0};
_.JFa=function(a){return a.download.isLeaderTab};
_.KFa=function(a,b,c){if(!b&&c){var d=a.entities;if(c){var e=xEa(c),g,k;b=(k=(g=_.np(d,"offlineabilityEntity",_.mp(e,"offlineabilityEntity")))==null?void 0:g.addToOfflineButtonState)!=null?k:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else b="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else g=a.entities,b?(k=xEa(b),b=(e=(d=_.np(g,"offlineabilityEntity",_.mp(k,"offlineabilityEntity")))==null?void 0:d.addToOfflineButtonState)!=null?e:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):b="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return b};
LFa=function(a,b){a=a.entities;if(b){b=xEa(b);var c,d;b=(d=(c=_.np(a,"offlineabilityEntity",_.mp(b,"offlineabilityEntity")))==null?void 0:c.addToOfflineButtonState)!=null?d:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else b="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return b};
_.MFa=function(a){var b=a.entities;a=Jp(a);var c=uFa(b,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.w("kevlar_modern_downloads_page")&&c)var d=!1;else{var e,g;b=(g=(e=((d=b.downloadsPageViewConfigurationEntity)!=null?d:{})[lFa])==null?void 0:e.smartDownloadsOptInBannerVisibility)!=null?g:{};d=a?!!b.visibleWithConnection:!!b.visibleWithoutConnection}return d};
_.NFa=function(a){return uFa(a.entities,"SMART_DOWNLOADS_ENABLED")};
_.OFa=function(a){return pFa(a.entities)};
_.PFa=function(a,b){return EEa(a.entities,b)};
QFa=function(a,b){if(b){var c,d;a=(d=(c=_.np(a.entities,"downloadStatusEntity",_.mp(b,"downloadStatusEntity")))==null?void 0:c.downloadState)!=null?d:"DOWNLOAD_STATE_UNKNOWN"}else a="DOWNLOAD_STATE_UNKNOWN";return a};
Np=function(a,b){return NEa(a.entities,b)};
UFa=function(a){a=_.RFa(a);var b=a.hours===void 0?0:a.hours,c=a.minutes===void 0?0:a.minutes,d=a.seconds===void 0?0:a.seconds,e=b>0;a=[];e&&(b=_.SFa(b),a.push(b));b=e;b=b===void 0?!1:b;c=(["af","be","lt"].includes(_.Op)||b)&&c<10?TFa().format(c):(new Intl.NumberFormat("en-u-nu-latn")).format(c);a.push(c);c=TFa().format(d);a.push(c);c=":";"da fi id si sr sr-Latn".split(" ").includes(_.Op)&&(c=".");return a.join(c)};
_.RFa=function(a){var b=a.hours||0,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;if(b<=0)return{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);return{hours:b,minutes:c,seconds:d}};
_.SFa=function(a){a=(new Intl.NumberFormat("en-u-nu-latn")).format(a);var b=["fr"],c="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(" ");return"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(_.Op)?a.replace(",","\u00a0"):b.includes(_.Op)?a.replace(",","\u202f"):c.includes(_.Op)?a.replace(",","."):a};
TFa=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
VFa=function(a){try{return(new _.Pp(5)).format(a)}catch(b){}};
Qp=function(a){return{thumbnailOverlayDownloadingRenderer:{state:a}}};
WFa=function(a){if(a=VFa(a))return{thumbnailOverlaySidePanelRenderer:{text:_.ep(a),icon:{iconType:"PLAYLISTS"}}}};
XFa=function(){var a=_.vo("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.ep(a),icon:{iconType:"PLAY_ALL"}}}};
YFa=function(a){a=_.Rp(a,2);return _.Op!=="ru"&&_.Op!=="es_419"&&_.Op!=="es-419"&&_.Op!=="es"&&_.Op!=="es_US"&&_.Op!=="es-US"&&_.Op!=="fr"&&_.Op!=="pl"&&_.Op!=="it"&&_.Op!=="nl"&&_.Op!=="uk"&&_.Op!=="fr_CA"&&_.Op!=="fr-CA"||a===""?a:a[0].toLocaleUpperCase()+a.substring(1)};
$Fa=function(a){return function(b){var c=a(),d=_.Rp(b,c.dateFormat);b=_.Rp(b,c.timeFormat);var e=ZFa.DATETIMEFORMATS[c.joinerStyle];e=e.replace(/'(?!')/g,"");e=e.replace("{0}",b);e=e.replace("{1}",d);return c.capitalize(e)}};
aGa=function(a){return a?typeof a.seconds==="string"&&(a.nanos===void 0||typeof a.nanos==="number"):!1};
bGa=function(a){return new Date(Number(a.seconds)*1E3+(a.nanos||0)*1E-6)};
_.Rp=function(a,b){if(typeof a.getTime==="function")a={date:a};else if(aGa(a))a={date:bGa(a)};else if(typeof aGa(a.timestamp)&&typeof a.i18nInternalSecondsEastOfUtc==="number")a={date:bGa(a.timestamp),timeZone:Sp(-a.i18nInternalSecondsEastOfUtc/60)};else throw Error("Ef`"+JSON.stringify(a));var c=a;a=c.date;c=c.timeZone;b=cGa(b).format(a,c);_.Op==="zh-TW"&&(a=c?Number(cGa("H").format(a,c)):a.getHours(),b=a<5?b.replace("\u4e0a\u5348","\u51cc\u6668"):a<8?b.replace("\u4e0a\u5348","\u65e9\u4e0a"):a<12?
b.replace("\u4e0a\u5348","\u4e0a\u5348"):a<13?b.replace("\u4e0b\u5348","\u4e2d\u5348"):a<19?b.replace("\u4e0b\u5348","\u4e0b\u5348"):b.replace("\u4e0b\u5348","\u665a\u4e0a"));return b};
cGa=function(a){if(dGa.has(a))return dGa.get(a);var b=eGa(a);b=fGa(b);gGa!==!0&&(gGa=!0);hGa=!0;hGa=!1;b=new Tp(b,ZFa);dGa.set(a,b);return b};
eGa=function(a){return(new Tp(a,ZFa)).patternParts_.map(function(b){return b.type===0?"'"+b.text+"'":b.text}).join("")};
fGa=function(a){return _.Op==="en"||_.Op==="es_US"||_.Op==="es-US"?a:a.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(b,c,d){return"H".repeat(c.length)+d})};
pGa=function(a,b){iGa||(_.Up=_.jGa,iGa=new kGa);var c=iGa;a:if(a=lGa(a),b=lGa(b||new Date),a>b)c=a.getTime()-b.getTime()>6048E5?_.Rp(a,1):mGa(a);else{for(var d=0;nGa(a,12*(d+1))<b;)++d;if(d>0)c=c.format(-d,0);else{for(d=0;nGa(a,d+1)<b;)++d;if(d>0)c=c.format(-d,2);else{a=b.getTime()-a.getTime();b=_.h(oGa);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=d.unit,g=Math.floor(a/d.unitDuration);if(g>=(d.threshold===void 0?1:d.threshold)){c=c.format(-g,e);break a}}c=c.format(-0,7)}}}return c};
lGa=function(a){if(typeof a.getTime==="function")return a;if(aGa(a))return bGa(a);throw Error("Ff`"+JSON.stringify(a));};
nGa=function(a,b){for(var c=0,d;;++c)if(d=new Date(a.getFullYear(),a.getMonth()+b,a.getDate()-c,a.getHours(),a.getMinutes(),a.getSeconds()),d.getMonth()===(a.getMonth()+b)%12)return d};
_.Vp=function(a){return{runs:[{text:a}]}};
_.Wp=function(a){if(a&&a.simpleText)return a.simpleText;var b="";if(a&&a.runs)for(var c=0;c<a.runs.length;c++)a.runs[c].text&&(b+=a.runs[c].text);return b};
rGa=function(a,b,c,d){return a.videoEntity&&!a.policyEntity&&c!=="DOWNLOAD_STATE_FAILED"?[Qp("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:wp(a.policyEntity)&&b!=="TRANSFER_STATE_FAILED"&&b!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?b==="TRANSFER_STATE_PAUSED_BY_USER"?[Qp("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.xp(b)?[Qp("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:a.videoEntity.lengthSeconds?qGa(a.videoEntity.lengthSeconds,d):[]:
[Qp("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
qGa=function(a,b){var c=[{thumbnailOverlayTimeStatusRenderer:{text:_.ep(UFa({seconds:a})),style:"DEFAULT"}}];b&&(a=b<=0||a<=0?0:b>=a?100:Math.ceil(b*100/a),a>0&&c.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:a}}));return c};
sGa=function(a,b,c,d,e){if(b==="TRANSFER_STATE_UNKNOWN"||!a)return{};if(_.xp(b)||b==="TRANSFER_STATE_PRE_TRANSFER")var g=[Qp("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var k,m;if(b==="TRANSFER_STATE_COMPLETE"&&((k=a.mainPlaylistEntity)==null?0:(m=k.videos)==null?0:m.length)){if(_.w("web_modern_collections_v2")){var n;var r=(g=a.mainPlaylistEntity)==null?void 0:(n=g.videos)==null?void 0:n.length;g=(g=VFa(r))?{thumbnailOverlayBottomPanelRenderer:{text:_.ep(g),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var t;g=WFa((r=a.mainPlaylistEntity)==null?void 0:(t=r.videos)==null?void 0:t.length)}var u;g=[XFa(),Object.assign({},(u=g)!=null?u:{})]}else g=[]}u=g;a:if(b==="TRANSFER_STATE_PRE_TRANSFER")c=fp(_.vo("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(b==="TRANSFER_STATE_TRANSFER_IN_QUEUE")c=fp(_.vo("WAITING_TO_DOWNLOAD"));else if(_.xp(b))c=Math.floor(c*100).toString(),c=fp(_.vo("DOWNLOADING_PERCENT",{percent:c},"Downloading... "+c+"%"));else{if(d&&(_.w("playlist_is_offline_selector_killswitch")&&
(e=_.v().resolve(_.Lk).isNetworkAvailable()),e)){c=DDa(_.vo("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),BDa(d));break a}c=void 0}b=b==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.vo("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},u.length?{thumbnailOverlays:u}:{},c?{viewPlaylistText:c}:{viewPlaylistText:_.Vp("")},b.length?{badges:b}:{})};
tGa=function(a,b,c,d,e,g){if(b==="TRANSFER_STATE_UNKNOWN"||!a)return{};if(d==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var k=rGa(a,b,d);if(a.videoEntity&&!a.policyEntity&&d!=="DOWNLOAD_STATE_FAILED"){var m=_.vo("WAITING_TO_DOWNLOAD");if(m)return{shortViewCountText:_.Vp(m),publishedTimeText:void 0,thumbnailOverlays:k}}if(!wp(a.policyEntity)){g=a.policyEntity&&!wEa(a.policyEntity)?_.vo("DOWNLOAD_EXPIRED",{},"Download expired"):
_.vo("TRANSFER_FAILED",{},"Download failed");var n;if((n=a.policyEntity)==null?0:n.shortMessageForDisabledAction)g=a.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:fp(g),publishedTimeText:void 0,thumbnailOverlays:k}}if(b==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.Vp(_.vo("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:k};if(b==="TRANSFER_STATE_FAILED"||b==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.Vp(_.vo("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:k};if(b==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(n=_.vo("WAITING_TO_DOWNLOAD"),d==="DOWNLOAD_STATE_PAUSED"&&(n=_.vo("DOWNLOAD_PAUSED",{},"Download paused")),n))return{shortViewCountText:_.Vp(n),publishedTimeText:void 0,thumbnailOverlays:k};if(_.xp(b))return a=Math.floor(c*100).toString(),{shortViewCountText:_.Vp(_.vo("DOWNLOADING_PERCENT",{percent:a},"Downloading... "+a+"%")),publishedTimeText:void 0,thumbnailOverlays:k};b=void 0;a.videoEntity.publishedTimestampMillis&&
(b=new Date,e&&(b=new Date(e)),b=fp(pGa(new Date(Number(a.videoEntity.publishedTimestampMillis)),b)));e=[];_.w("kevlar_woffle_badge_killswitch")||(e=[{metadataBadgeRenderer:{label:_.vo("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var r;a=fp((r=a.videoEntity.localizedStrings)==null?void 0:r.viewCount);return Object.assign({},g?{shortViewCountText:void 0}:{shortViewCountText:a},g?{}:{publishedTimeText:b},{badges:e,thumbnailOverlays:k})};
vGa=function(a,b){a=a===void 0?uGa:a;switch(b.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:b.payload.playlistId,inviteLinkURL:b.payload.inviteLinkUrl};default:return a}};
xGa=function(a,b){a=a===void 0?wGa:a;switch(b.type){case "SET_CURRENT_FORM_ID":return b=b.payload.formId,a.currentFormId===b?a:{currentFormId:b,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var c=b.payload;b=c.groupId;c=c.command;if(a.currentFormId){var d=Object.assign({},a.commandsMap);d[b]=c;a=Object.assign({},a,{commandsMap:d})}return a;case "RESET_COMMAND_MAP":return Object.assign({},a,{commandsMap:{}});default:return a}};
zGa=function(a,b){a=a===void 0?yGa:a;switch(b.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},a,{guideIsExpanded:b.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},a,{scrollAtTop:b.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},a,{guideIsVisibleButNotPersistent:b.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},a,{miniplayerIsActive:b.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},a,{singleOptionSurveyIsActive:b.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},a,{slimlineSurveyRatingSelectedIndex:b.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},a,{richGridMiniMode:b.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},a,{richGridItemsPerRow:b.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},a,{richGridSlimItemsPerRow:b.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},a,{richGridContainerWidth:b.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},a,{richGridStyle:b.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},a,{currentPageType:b.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},a,{inlinePreviewIsActive:b.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},a,{inlinePreviewIsEnabled:b.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},a,{darkModeIsEnabled:b.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
a,{miniplayerPlaybackState:b.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},a,{tabGesturesIsActive:b.payload});case "SET_ONLINE_STATUS":return Object.assign({},a,{isOnline:b.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},a,{chipBarIsSticky:b.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},a,{frostedGlassMode:b.payload});default:return a}};
BGa=function(a,b){a=a===void 0?AGa:a;switch(b.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},a,{transcription:b.payload});case "SET_OVERLAY_STATE":return Object.assign({},a,{overlay:b.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return a}};
LGa=function(){return mn(Object.assign({},{continuation:CGa,entities:TDa,download:DGa,reportChannelAbuse:EGa,share:FGa,talkToRecs:GGa,ui:zGa,voiceSearch:BGa,watch:HGa,ypc:IGa,shorts:JGa,radioButtonGroup:xGa,collabInviteLink:vGa},KGa))};
OGa=function(){return _.w("web_player_entities_middleware")?new Xp(LGa(),[MGa,NGa]):new Xp(LGa(),[MGa])};
_.Yp=function(){PGa||(PGa=OGa());return PGa};
QGa=function(a,b,c){if(a.length)return{titleText:_.ep(b!=null?b:_.vo("DOWNLOADS",void 0,"Downloads")),contents:a.map(function(d){var e=d.videoEntity;d={videoId:e.videoId,title:fp(e.title),shortBylineText:fp(d.channelEntity.title),thumbnail:e.thumbnail};var g=e.videoId?Np(_.Yp().getState(),e.videoId):0;e.videoId&&c?d.navigationEndpoint=_.dp(e.videoId,c,void 0,void 0,g):e.videoId&&(d.navigationEndpoint=ADa(e.videoId,g,e.lengthSeconds));e.lengthSeconds&&(d.thumbnailOverlays=qGa(e.lengthSeconds,g));return{playlistPanelVideoRenderer:d}}),
totalVideos:a.length}};
RGa=function(a){return(a=(0,_.Cf.getValueByKeys)(a,"playlistId"))?{playlistId:a}:null};
SGa=function(){return{}};
TGa=function(a,b){return new _.il(function(c,d){a.then(function(e){if(e){if(e=b(e))return c(e);d()}},d)})};
UGa=function(a){var b,c,d,e=(b=a.contents)==null?void 0:(c=b.twoColumnWatchNextResults)==null?void 0:(d=c.autoplay)==null?void 0:d.autoplay,g,k,m;b=(g=a.contents)==null?void 0:(k=g.twoColumnWatchNextResults)==null?void 0:(m=k.playlist)==null?void 0:m.playlist;return e&&b&&b.playlistId?{rawResponse:a,autoplayRenderer:e,playlistPanelRenderer:b,playlistId:b.playlistId}:null};
WGa=function(a){var b=b===void 0?"UNKNOWN_INTERFACE":b;if(a.length===1)return a[0];var c=VGa[b];if(c){c=new RegExp(c);for(var d=_.h(a),e=d.next();!e.done;e=d.next())if(e=e.value,c.exec(e))return e}var g=[];Object.entries(VGa).forEach(function(k){var m=_.h(k);k=m.next().value;m=m.next().value;b!==k&&g.push(m)});
c=new RegExp(g.join("|"));a.sort(function(k,m){return k.length-m.length});
d=_.h(a);for(e=d.next();!e.done;e=d.next())if(e=e.value,!c.exec(e))return e;return a[0]};
_.Zp=function(a){return"/youtubei/v1/"+WGa(a)};
_.$p=function(a){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:a}}}}};
_.bq=function(a){return _.$p(_.Vp(a))};
XGa=function(a,b){var c={mode:"NORMAL"};a&&(c.autoplayVideo=a.navigationEndpoint,c.nextButtonVideo=a.navigationEndpoint);b&&(c.previousButtonVideo=b.navigationEndpoint);return c};
$Ga=function(a,b,c){if(!c||!c.sets)return{sets:[XGa(a,b)]};var d=c.sets.find(function(k){return k.mode==="NORMAL"}),e=(0,_.Cf.unsafeClone)(c);
if(!d)return e.sets.push(XGa(a,b)),e;if(!a)return c;d=_.Cf.getValueByKeys.apply(null,[d].concat(_.De(YGa)));var g=_.Cf.getValueByKeys.apply(null,[a].concat(_.De(ZGa)));if(d===g)return c;e.sets=e.sets.filter(function(k){return k.mode!=="NORMAL"});
e.sets.push(XGa(a,b));return e};
aHa=function(a){return!!a.playlistPanelVideoRenderer&&!a.playlistPanelVideoRenderer.unplayableText};
bHa=function(a){return!!a.playlistPanelVideoRenderer&&!!a.playlistPanelVideoRenderer.title};
cHa=function(a,b){if(b.contents&&!(a>=b.contents.length)&&(a=b.contents.slice(a).find(aHa)))return a.playlistPanelVideoRenderer};
dHa=function(a,b){if(b.contents)return(b=b.contents.find(function(c){return!!c.playlistPanelVideoRenderer&&c.playlistPanelVideoRenderer.videoId===a}))?b.playlistPanelVideoRenderer:void 0};
eHa=function(a,b){return b.contents?b.contents.findIndex(function(c){return!!c.playlistPanelVideoRenderer&&c.playlistPanelVideoRenderer.videoId===a}):-1};
fHa=function(a,b){return b.contents?b.contents.findIndex(function(c){return!!c.playlistPanelVideoRenderer&&c.playlistPanelVideoRenderer.playlistSetVideoId===a}):-1};
gHa=function(a,b){a.contents&&b!==-1&&a.contents.splice(b,1).length===1&&a.totalVideos!==void 0&&(--a.totalVideos,delete a.videoCountText)};
_.hHa=function(a){var b=[];if(!a||!a.contents)return b;a=_.h(a.contents);for(var c=a.next();!c.done;c=a.next())c=c.value,c.playlistPanelVideoRenderer&&c.playlistPanelVideoRenderer.videoId&&b.push(c.playlistPanelVideoRenderer.videoId);return b};
_.iHa=function(a){if(a&&a.contents)return(a=a.contents.find(function(b){return!!b.playlistPanelVideoRenderer&&!!b.playlistPanelVideoRenderer.selected})||a.contents[a.currentIndex])?a.playlistPanelVideoRenderer:void 0};
jHa=function(a,b,c,d,e,g,k){e=e===void 0?!1:e;g=g===void 0?!1:g;k=k===void 0?!1:k;if(a.contents&&a.contents.length!==0){d&&(a.contents=a.contents.filter(d));d=a.contents.length;for(var m=0;m<d;m++){var n=a.contents[m].playlistPanelVideoRenderer;n&&(m===b?(g&&delete n.menu,n.indexText=_.Vp("\u25b6")):e||a.isInfinite||n.indexText===void 0?delete n.indexText:n.indexText=_.Vp((m+1+c).toString()))}a.currentIndex=b+c;k&&(delete a.videoCountText,a.totalVideos=d)}};
kHa=function(a,b){for(var c="",d=0;d<b;d++)c+=a.charAt(Math.floor(Math.random()*a.length));return c};
cq=function(a){return kHa("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",a)};
dq=function(a){return kHa("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",a)};
eq=function(a){return kHa("0123456789",a)};
fq=function(){var a=performance.now(),b=new Date;var c="2."+b.getFullYear()+String(b.getMonth()+1).padStart(2,"0")+String(b.getDate()).padStart(2,"0");for(var d,e=Math.floor(Math.random()*11)+15,g=[],k=0;k<e;k++)g.push(Math.floor(Math.random()*26476865)+24547720);d=g.join(",");var m=cq(10),n=cq(100),r=cq(102),t=cq(106),u=cq(108),x=cq(11),A=cq(1140),C=cq(123),F=cq(14),J=cq(16),I=cq(1900),R=cq(23),da=cq(26),V=cq(34),fa=cq(397),aa=cq(44),ma=cq(5),Ba=cq(72),Ca=cq(74),ya=cq(75),Ia=cq(88),db=cq(91),lb=
"rr5---sn-q4fzen7s rr4---sn-5hnednss rr5---sn-hgn7rn7r rr5---sn-q4flrnes rr1---sn-q4flrn7k rr3---sn-q4flrnss rr5---sn-q4fl6nd6 rr4---sn-q4fl6n6d rr3---sn-hgn7rnee rr1---sn-aigl6nzl rr2---sn-q4flrne7 rr5---sn-q4fzen7e rr2---sn-hgn7rnll rr4---sn-5hne6nsd rr3---sn-q4flrn7r rr2---sn-ntqe6n76 rr1---sn-q4fl6n66 rr5---sn-q4fl6ns6 rr4---sn-ntq7yns7 rr5---sn-t0a7ln7d".split(" ");var Ua=lb[Math.floor(Math.random()*lb.length)];var Vb=(new Date("2010-01-01")).getTime();var rb=(new Date(Vb+Math.random()*((new Date).getTime()-
Vb))).toISOString().split("T")[0];for(var sb,yc=[],Mb=0;Mb<4;Mb++)yc.push(Math.floor(Math.random()*100));sb=yc.join(".");var ub=Number(eq(5)),Db=Number(eq(6)),Wc=Number(eq(7)),Mc=Number(eq(9)),ia=eq(1),ac=eq(10),Qb=eq(16),Ac=eq(19),qb=eq(2),Cb=eq(20),ab=eq(21),Pa=eq(3),mb=eq(4),Yb=eq(5),hd=eq(6),Gb=eq(7),Tc=eq(8),Bd=eq(9);var Rm=kHa("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",27352);var ld=[dq(5),dq(5),dq(5)].join("%2C"),Gf=[eq(3),eq(5),eq(5)].join("%2C"),Vn=dq(0),Af=dq(1),
$h=dq(10),zi=dq(108),td=dq(11),aq=dq(12),Wn=dq(13),Sm=dq(14),Vi=dq(15),be=dq(16),ap=dq(17),sa=dq(18),Fa=dq(19),La=dq(2),nb=dq(20),hc=dq(22),fb=dq(23),ib=dq(24),Sb=dq(266),wb=dq(3),vd=dq(30),ag=dq(34),Bb=dq(35),hm=dq(36),Xn=dq(4),Xd=dq(40),ff=dq(43),mk=dq(47),dr=dq(5),Ta=dq(6),mc=dq(7),$c=dq(75),Hc=dq(8),gf=dq(80),pf=dq(9),yd="https://www."+dq(12)+".com",Wv={},Xv={},VI={},Afa={},WI={},I0={},J0={responseContext:{serviceTrackingParams:[{service:"GFEEDBACK",params:[{key:"ipcc",value:"0"},{key:"is_viewed_live",
value:"False"},{key:"is_alc_surface",value:"false"},{key:"premium_membership",value:"non_member"},{key:"has_unlimited_entitlement",value:"False"},{key:"has_alc_entitlement",value:"false"},{key:"logged_in",value:"1"},{key:"e",value:d}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:c},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+dq(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",
value:c},{key:"client.name",value:"WEB"},{key:"client.fexp",value:d}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:ab+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+dq(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:Xd,ypcGetOfflineUpsellEndpoint:{params:gf}},trackingParams:Bb+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},contextParams:"Q0FFU0FnZ0M="},
streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+ac+"&ei="+R+"&ip="+sb+"&id=o-AF"+ff+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+Gf+"&mn="+ld+"&ms="+ld+"&mv="+Af+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Gb+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&cnr="+qb+"&ratebypass=yes&dur="+Tc+"&lmt="+Qb+"&mt="+ac+"&fvip=3&c=WEB&txp="+Gb+"&n="+J+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:Db,width:640,height:360,lastModified:Qb,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Gb,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+ac+"&ei="+R+"&ip="+sb+"&id=o-AF"+ff+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+Gf+"&mn="+
ld+"&ms="+ld+"&mv="+Af+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Gb+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&cnr="+qb+"&ratebypass=yes&dur="+Tc+"&lmt="+Qb+"&mt="+ac+"&fvip=3&c=WEB&txp="+Gb+"&n="+J+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+zi+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:Db,width:1280,
height:720,lastModified:Qb,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Gb,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+ac+"&ei="+R+"&ip="+sb+"&id=o-AF"+ff+"&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+Gf+"&mn="+ld+"&ms="+
ld+"&mv="+Af+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Gb+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&gir="+wb+"&clen="+Bd+"&dur="+Tc+"&lmt="+Qb+"&mt="+ac+"&fvip=3&keepalive="+wb+"&c=WEB&txp="+Gb+"&n="+be+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:Wc,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:Pa,end:mb},lastModified:Qb,contentLength:Bd,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Wc,approxDurationMs:Gb},{itag:248,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+ac+"&ei="+R+"&ip="+sb+"&id=o-AF"+ff+"&itag=248&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+Gf+"&mn="+ld+"&ms="+ld+"&mv="+
Af+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Gb+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fwebm&ns="+ib+"&gir="+wb+"&clen="+Bd+"&dur="+Tc+"&lmt="+Qb+"&mt="+ac+"&fvip=3&keepalive="+wb+"&c=WEB&txp="+Gb+"&n="+be+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/webm; codecs="vp9"',bitrate:Wc,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:Pa,end:mb},lastModified:Qb,contentLength:Bd,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Wc,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Gb},{itag:399,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+ac+"&ei="+R+"&ip="+sb+"&id=o-AF"+ff+"&itag=399&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
Gf+"&mn="+ld+"&ms="+ld+"&mv="+Af+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Gb+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&gir="+wb+"&clen="+Bd+"&dur="+Tc+"&lmt="+Qb+"&mt="+ac+"&fvip=3&keepalive="+wb+"&c=WEB&txp="+Gb+"&n="+be+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:Wc,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:Pa,end:mb},lastModified:Qb,contentLength:Bd,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Wc,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Gb},{itag:136,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+ac+"&ei="+R+"&ip="+sb+"&id=o-AF"+ff+"&itag=136&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
Gf+"&mn="+ld+"&ms="+ld+"&mv="+Af+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Gb+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&gir="+wb+"&clen="+Bd+"&dur="+Tc+"&lmt="+Qb+"&mt="+ac+"&fvip=3&keepalive="+wb+"&c=WEB&txp="+Gb+"&n="+be+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Wc,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:Pa,end:mb},lastModified:Qb,contentLength:Bd,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Db,approxDurationMs:Gb},{itag:247,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+ac+"&ei="+R+"&ip="+sb+"&id=o-AF"+ff+"&itag=247&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+Gf+"&mn="+
ld+"&ms="+ld+"&mv="+Af+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Gb+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fwebm&ns="+ib+"&gir="+wb+"&clen="+Bd+"&dur="+Tc+"&lmt="+Qb+"&mt="+ac+"&fvip=3&keepalive="+wb+"&c=WEB&txp="+Gb+"&n="+be+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/webm; codecs="vp9"',bitrate:Wc,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:Pa,end:mb},lastModified:Qb,contentLength:Bd,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Db,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Gb},{itag:398,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+ac+"&ei="+R+"&ip="+sb+"&id=o-AF"+ff+"&itag=398&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
Gf+"&mn="+ld+"&ms="+ld+"&mv="+Af+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Gb+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&gir="+wb+"&clen="+Bd+"&dur="+Tc+"&lmt="+Qb+"&mt="+ac+"&fvip=3&keepalive="+wb+"&c=WEB&txp="+Gb+"&n="+be+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:Wc,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:Pa,end:mb},lastModified:Qb,contentLength:Bd,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Db,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Gb},{itag:135,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+ac+"&ei="+R+"&ip="+sb+"&id=o-AF"+ff+"&itag=135&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
Gf+"&mn="+ld+"&ms="+ld+"&mv="+Af+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Gb+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&gir="+wb+"&clen="+Tc+"&dur="+Tc+"&lmt="+Qb+"&mt="+ac+"&fvip=3&keepalive="+wb+"&c=WEB&txp="+Gb+"&n="+be+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Db,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:Pa,end:mb},lastModified:Qb,contentLength:Tc,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Db,approxDurationMs:Gb},{itag:244,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+ac+"&ei="+R+"&ip="+sb+"&id=o-AF"+ff+"&itag=244&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+Gf+"&mn="+
ld+"&ms="+ld+"&mv="+Af+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Gb+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fwebm&ns="+ib+"&gir="+wb+"&clen="+Tc+"&dur="+Tc+"&lmt="+Qb+"&mt="+ac+"&fvip=3&keepalive="+wb+"&c=WEB&txp="+Gb+"&n="+be+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+zi+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/webm; codecs="vp9"',bitrate:Db,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:Pa,end:mb},lastModified:Qb,contentLength:Tc,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Db,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Gb},{itag:397,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+ac+"&ei="+R+"&ip="+sb+"&id=o-AF"+ff+"&itag=397&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
Gf+"&mn="+ld+"&ms="+ld+"&mv="+Af+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Gb+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&gir="+wb+"&clen="+Tc+"&dur="+Tc+"&lmt="+Qb+"&mt="+ac+"&fvip=3&keepalive="+wb+"&c=WEB&txp="+Gb+"&n="+be+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:Db,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:Pa,end:mb},lastModified:Qb,contentLength:Tc,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Db,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Gb},{itag:134,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+ac+"&ei="+R+"&ip="+sb+"&id=o-AF"+ff+"&itag=134&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
Gf+"&mn="+ld+"&ms="+ld+"&mv="+Af+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Gb+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&gir="+wb+"&clen="+Tc+"&dur="+Tc+"&lmt="+Qb+"&mt="+ac+"&fvip=3&keepalive="+wb+"&c=WEB&txp="+Gb+"&n="+be+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:Db,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:Pa,end:mb},lastModified:Qb,contentLength:Tc,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Db,highReplication:!0,approxDurationMs:Gb},{itag:243,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+ac+"&ei="+R+"&ip="+sb+"&id=o-AF"+ff+"&itag=243&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
Gf+"&mn="+ld+"&ms="+ld+"&mv="+Af+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Gb+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fwebm&ns="+ib+"&gir="+wb+"&clen="+Tc+"&dur="+Tc+"&lmt="+Qb+"&mt="+ac+"&fvip=3&keepalive="+wb+"&c=WEB&txp="+Gb+"&n="+be+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/webm; codecs="vp9"',bitrate:Db,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:Pa,end:mb},lastModified:Qb,contentLength:Tc,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Db,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Gb},{itag:396,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+ac+"&ei="+R+"&ip="+sb+"&id=o-AF"+ff+"&itag=396&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
Gf+"&mn="+ld+"&ms="+ld+"&mv="+Af+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Gb+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&gir="+wb+"&clen="+Tc+"&dur="+Tc+"&lmt="+Qb+"&mt="+ac+"&fvip=3&keepalive="+wb+"&c=WEB&txp="+Gb+"&n="+be+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:Db,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:Pa,end:mb},lastModified:Qb,contentLength:Tc,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Db,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Gb},{itag:133,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+ac+"&ei="+R+"&ip="+sb+"&id=o-AF"+ff+"&itag=133&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
Gf+"&mn="+ld+"&ms="+ld+"&mv="+Af+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Gb+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&gir="+wb+"&clen="+Tc+"&dur="+Tc+"&lmt="+Qb+"&mt="+ac+"&fvip=3&keepalive="+wb+"&c=WEB&txp="+Gb+"&n="+be+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:Db,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:Pa,end:mb},lastModified:Qb,contentLength:Tc,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Db,approxDurationMs:Gb},{itag:242,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+ac+"&ei="+R+"&ip="+sb+"&id=o-AF"+ff+"&itag=242&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+Gf+"&mn="+
ld+"&ms="+ld+"&mv="+Af+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Gb+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fwebm&ns="+ib+"&gir="+wb+"&clen="+Tc+"&dur="+Tc+"&lmt="+Qb+"&mt="+ac+"&fvip=3&keepalive="+wb+"&c=WEB&txp="+Gb+"&n="+be+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/webm; codecs="vp9"',bitrate:Db,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:Pa,end:mb},lastModified:Qb,contentLength:Tc,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Db,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Gb},{itag:395,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+ac+"&ei="+R+"&ip="+sb+"&id=o-AF"+ff+"&itag=395&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
Gf+"&mn="+ld+"&ms="+ld+"&mv="+Af+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Gb+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&gir="+wb+"&clen="+Tc+"&dur="+Tc+"&lmt="+Qb+"&mt="+ac+"&fvip=3&keepalive="+wb+"&c=WEB&txp="+Gb+"&n="+be+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Db,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:Pa,end:mb},lastModified:Qb,contentLength:Tc,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Db,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Gb},{itag:160,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+ac+"&ei="+R+"&ip="+sb+"&id=o-AF"+ff+"&itag=160&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
Gf+"&mn="+ld+"&ms="+ld+"&mv="+Af+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Gb+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&gir="+wb+"&clen="+Tc+"&dur="+Tc+"&lmt="+Qb+"&mt="+ac+"&fvip=3&keepalive="+wb+"&c=WEB&txp="+Gb+"&n="+be+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:Db,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:Pa,end:mb},lastModified:Qb,contentLength:Tc,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:ub,approxDurationMs:Gb},{itag:278,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+ac+"&ei="+R+"&ip="+sb+"&id=o-AF"+ff+"&itag=278&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+Gf+"&mn="+
ld+"&ms="+ld+"&mv="+Af+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Gb+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fwebm&ns="+ib+"&gir="+wb+"&clen="+Tc+"&dur="+Tc+"&lmt="+Qb+"&mt="+ac+"&fvip=3&keepalive="+wb+"&c=WEB&txp="+Gb+"&n="+be+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/webm; codecs="vp9"',bitrate:Db,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:Pa,end:mb},lastModified:Qb,contentLength:Tc,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:ub,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Gb},{itag:394,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+ac+"&ei="+R+"&ip="+sb+"&id=o-AF"+ff+"&itag=394&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
Gf+"&mn="+ld+"&ms="+ld+"&mv="+Af+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Gb+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&gir="+wb+"&clen="+Tc+"&dur="+Tc+"&lmt="+Qb+"&mt="+ac+"&fvip=3&keepalive="+wb+"&c=WEB&txp="+Gb+"&n="+be+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:ub,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:Pa,end:mb},lastModified:Qb,contentLength:Tc,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:ub,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Gb},{itag:140,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+ac+"&ei="+R+"&ip="+sb+"&id=o-AF"+ff+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
Gf+"&mn="+ld+"&ms="+ld+"&mv="+Af+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Gb+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=audio%2Fmp4&ns="+ib+"&gir="+wb+"&clen="+Tc+"&dur="+Tc+"&lmt="+Qb+"&mt="+ac+"&fvip=3&keepalive="+wb+"&c=WEB&txp="+Gb+"&n="+be+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:Db,
initRange:{start:"0",end:"631"},indexRange:{start:Pa,end:mb},lastModified:Qb,contentLength:Tc,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Db,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Gb,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+ac+"&ei="+R+"&ip="+sb+"&id=o-AF"+ff+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+Gf+"&mn="+ld+"&ms="+ld+"&mv="+Af+"&mvi="+ia+"&pl="+
qb+"&initcwndbps="+Gb+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=audio%2Fwebm&ns="+ib+"&gir="+wb+"&clen="+Gb+"&dur="+Tc+"&lmt="+Qb+"&mt="+ac+"&fvip=3&keepalive="+wb+"&c=WEB&txp="+Gb+"&n="+be+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'audio/webm; codecs="opus"',bitrate:ub,initRange:{start:"0",end:"265"},indexRange:{start:Pa,
end:mb},lastModified:Qb,contentLength:Gb,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:ub,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Gb,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+ac+"&ei="+R+"&ip="+sb+"&id=o-AF"+ff+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+Gf+"&mn="+ld+"&ms="+ld+"&mv="+Af+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Gb+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=audio%2Fwebm&ns="+
ib+"&gir="+wb+"&clen="+Gb+"&dur="+Tc+"&lmt="+Qb+"&mt="+ac+"&fvip=3&keepalive="+wb+"&c=WEB&txp="+Gb+"&n="+be+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'audio/webm; codecs="opus"',bitrate:ub,initRange:{start:"0",end:"265"},indexRange:{start:Pa,end:mb},lastModified:Qb,contentLength:Gb,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:ub,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Gb,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+ac+"&ei="+R+"&ip="+sb+"&id=o-AF"+ff+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+Gf+"&mn="+ld+"&ms="+ld+"&mv="+Af+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Gb+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=audio%2Fwebm&ns="+ib+"&gir="+wb+"&clen="+Tc+"&dur="+Tc+"&lmt="+Qb+"&mt="+ac+"&fvip=3&keepalive="+wb+"&c=WEB&txp="+
Gb+"&n="+be+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'audio/webm; codecs="opus"',bitrate:Db,initRange:{start:"0",end:"265"},indexRange:{start:Pa,end:mb},lastModified:Qb,contentLength:Tc,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Db,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Gb,audioSampleRate:"48000",audioChannels:2,
loudnessDb:-3.7800007}]},playerAds:[{playerLegacyDesktopWatchAdsRenderer:{playerAdParams:{showContentThumbnail:!0,enabledEngageTypes:"3,6,4,5,17,1"},gutParams:{tag:"\\4061\\ytpwmpu"},showCompanion:!0,showInstream:!0,useGut:!0}}],playbackTracking:{videostatsPlaybackUrl:{baseUrl:"https://s.youtube.com/api/stats/playback?cl="+Bd+"&docid="+x+"&ei="+R+"&feature="+m+"&fexp="+Vn+"&ns="+La+"&plid="+J+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Af+"&el="+$h+"&len="+mb+"&of="+hc+
"&uga="+qb+"&vm="+Sb},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+Bd+"&docid="+x+"&ei="+R+"&feature="+m+"&fexp="+Vn+"&ns="+La+"&plid="+J+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Af+"&el="+$h+"&len="+mb+"&of="+hc+"&uga="+qb+"&vm="+Sb},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+Bd+"&docid="+x+"&ei="+R+"&feature="+m+"&fexp="+Vn+"&ns="+La+"&plid="+J+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
Af+"&el="+$h+"&len="+mb+"&of="+hc+"&uga="+qb+"&vm="+Sb},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+R+"&m="+Ia+"&oid="+hc+"&plid="+J+"&pltype="+mc+"&ptchn="+hc+"&ptk="+F+"&video_id="+x},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+Bd+"&docid="+x+"&ei="+R+"&event="+Sm+"&feature="+m+"&fexp="+Vn+"&ns="+La+"&plid="+J+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Af},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+x+"&ei="+R+"&feature="+
m+"&len="+mb+"&ns="+La+"&plid="+J+"&ver="+ia,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+x+"&caps="+wb+"&opi="+Bd+"&xoaf="+ia+"&hl="+La+"&ip="+sb+"&ipbits="+ia+"&expire="+ac+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+sb+"&key="+wb+"&lang="+ma,name:{simpleText:mc},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+x+"&caps="+wb+"&opi="+Bd+"&xoaf="+ia+"&hl="+La+"&ip="+sb+"&ipbits="+ia+"&expire="+ac+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+sb+"&key="+wb+"&kind="+wb+"&lang="+La,name:{simpleText:sa},vssId:"a.it",languageCode:"it",kind:"asr",isTranslatable:!0,trackName:""}],audioTracks:[{captionTrackIndices:[0,1],defaultCaptionTrackIndex:0,visibility:"UNKNOWN",hasDefaultTrack:!0,captionsInitialState:"CAPTIONS_INITIAL_STATE_OFF_RECOMMENDED"}],
translationLanguages:[{languageCode:"af",languageName:{simpleText:"Afrikaans"}},{languageCode:"ak",languageName:{simpleText:"Akan"}},{languageCode:"sq",languageName:{simpleText:"Albanian"}},{languageCode:"am",languageName:{simpleText:"Amharic"}},{languageCode:"ar",languageName:{simpleText:"Arabic"}},{languageCode:"hy",languageName:{simpleText:"Armenian"}},{languageCode:"as",languageName:{simpleText:"Assamese"}},{languageCode:"ay",languageName:{simpleText:"Aymara"}},{languageCode:"az",languageName:{simpleText:"Azerbaijani"}},
{languageCode:"bn",languageName:{simpleText:"Bangla"}},{languageCode:"eu",languageName:{simpleText:"Basque"}},{languageCode:"be",languageName:{simpleText:"Belarusian"}},{languageCode:"bho",languageName:{simpleText:"Bhojpuri"}},{languageCode:"bs",languageName:{simpleText:"Bosnian"}},{languageCode:"bg",languageName:{simpleText:"Bulgarian"}},{languageCode:"my",languageName:{simpleText:"Burmese"}},{languageCode:"ca",languageName:{simpleText:"Catalan"}},{languageCode:"ceb",languageName:{simpleText:"Cebuano"}},
{languageCode:"zh-Hans",languageName:{simpleText:"Chinese (Simplified)"}},{languageCode:"zh-Hant",languageName:{simpleText:"Chinese (Traditional)"}},{languageCode:"co",languageName:{simpleText:"Corsican"}},{languageCode:"hr",languageName:{simpleText:"Croatian"}},{languageCode:"cs",languageName:{simpleText:"Czech"}},{languageCode:"da",languageName:{simpleText:"Danish"}},{languageCode:"dv",languageName:{simpleText:"Divehi"}},{languageCode:"nl",languageName:{simpleText:"Dutch"}},{languageCode:"en",languageName:{simpleText:"English"}},
{languageCode:"eo",languageName:{simpleText:"Esperanto"}},{languageCode:"et",languageName:{simpleText:"Estonian"}},{languageCode:"ee",languageName:{simpleText:"Ewe"}},{languageCode:"fil",languageName:{simpleText:"Filipino"}},{languageCode:"fi",languageName:{simpleText:"Finnish"}},{languageCode:"fr",languageName:{simpleText:"French"}},{languageCode:"gl",languageName:{simpleText:"Galician"}},{languageCode:"lg",languageName:{simpleText:"Ganda"}},{languageCode:"ka",languageName:{simpleText:"Georgian"}},
{languageCode:"de",languageName:{simpleText:"German"}},{languageCode:"el",languageName:{simpleText:"Greek"}},{languageCode:"gn",languageName:{simpleText:"Guarani"}},{languageCode:"gu",languageName:{simpleText:"Gujarati"}},{languageCode:"ht",languageName:{simpleText:"Haitian Creole"}},{languageCode:"ha",languageName:{simpleText:"Hausa"}},{languageCode:"haw",languageName:{simpleText:"Hawaiian"}},{languageCode:"iw",languageName:{simpleText:"Hebrew"}},{languageCode:"hi",languageName:{simpleText:"Hindi"}},
{languageCode:"hmn",languageName:{simpleText:"Hmong"}},{languageCode:"hu",languageName:{simpleText:"Hungarian"}},{languageCode:"is",languageName:{simpleText:"Icelandic"}},{languageCode:"ig",languageName:{simpleText:"Igbo"}},{languageCode:"id",languageName:{simpleText:"Indonesian"}},{languageCode:"ga",languageName:{simpleText:"Irish"}},{languageCode:"it",languageName:{simpleText:"Italian"}},{languageCode:"ja",languageName:{simpleText:"Japanese"}},{languageCode:"jv",languageName:{simpleText:"Javanese"}},
{languageCode:"kn",languageName:{simpleText:"Kannada"}},{languageCode:"kk",languageName:{simpleText:"Kazakh"}},{languageCode:"km",languageName:{simpleText:"Khmer"}},{languageCode:"rw",languageName:{simpleText:"Kinyarwanda"}},{languageCode:"ko",languageName:{simpleText:"Korean"}},{languageCode:"kri",languageName:{simpleText:"Krio"}},{languageCode:"ku",languageName:{simpleText:"Kurdish"}},{languageCode:"ky",languageName:{simpleText:"Kyrgyz"}},{languageCode:"lo",languageName:{simpleText:"Lao"}},{languageCode:"la",
languageName:{simpleText:"Latin"}},{languageCode:"lv",languageName:{simpleText:"Latvian"}},{languageCode:"ln",languageName:{simpleText:"Lingala"}},{languageCode:"lt",languageName:{simpleText:"Lithuanian"}},{languageCode:"lb",languageName:{simpleText:"Luxembourgish"}},{languageCode:"mk",languageName:{simpleText:"Macedonian"}},{languageCode:"mg",languageName:{simpleText:"Malagasy"}},{languageCode:"ms",languageName:{simpleText:"Malay"}},{languageCode:"ml",languageName:{simpleText:"Malayalam"}},{languageCode:"mt",
languageName:{simpleText:"Maltese"}},{languageCode:"mi",languageName:{simpleText:"Maori"}},{languageCode:"mr",languageName:{simpleText:"Marathi"}},{languageCode:"mn",languageName:{simpleText:"Mongolian"}},{languageCode:"ne",languageName:{simpleText:"Nepali"}},{languageCode:"nso",languageName:{simpleText:"Northern Sotho"}},{languageCode:"no",languageName:{simpleText:"Norwegian"}},{languageCode:"ny",languageName:{simpleText:"Nyanja"}},{languageCode:"or",languageName:{simpleText:"Odia"}},{languageCode:"om",
languageName:{simpleText:"Oromo"}},{languageCode:"ps",languageName:{simpleText:"Pashto"}},{languageCode:"fa",languageName:{simpleText:"Persian"}},{languageCode:"pl",languageName:{simpleText:"Polish"}},{languageCode:"pt",languageName:{simpleText:"Portuguese"}},{languageCode:"pa",languageName:{simpleText:"Punjabi"}},{languageCode:"qu",languageName:{simpleText:"Quechua"}},{languageCode:"ro",languageName:{simpleText:"Romanian"}},{languageCode:"ru",languageName:{simpleText:"Russian"}},{languageCode:"sm",
languageName:{simpleText:"Samoan"}},{languageCode:"sa",languageName:{simpleText:"Sanskrit"}},{languageCode:"gd",languageName:{simpleText:"Scottish Gaelic"}},{languageCode:"sr",languageName:{simpleText:"Serbian"}},{languageCode:"sn",languageName:{simpleText:"Shona"}},{languageCode:"sd",languageName:{simpleText:"Sindhi"}},{languageCode:"si",languageName:{simpleText:"Sinhala"}},{languageCode:"sk",languageName:{simpleText:"Slovak"}},{languageCode:"sl",languageName:{simpleText:"Slovenian"}},{languageCode:"so",
languageName:{simpleText:"Somali"}},{languageCode:"st",languageName:{simpleText:"Southern Sotho"}},{languageCode:"es",languageName:{simpleText:"Spanish"}},{languageCode:"su",languageName:{simpleText:"Sundanese"}},{languageCode:"sw",languageName:{simpleText:"Swahili"}},{languageCode:"sv",languageName:{simpleText:"Swedish"}},{languageCode:"tg",languageName:{simpleText:"Tajik"}},{languageCode:"ta",languageName:{simpleText:"Tamil"}},{languageCode:"tt",languageName:{simpleText:"Tatar"}},{languageCode:"te",
languageName:{simpleText:"Telugu"}},{languageCode:"th",languageName:{simpleText:"Thai"}},{languageCode:"ti",languageName:{simpleText:"Tigrinya"}},{languageCode:"ts",languageName:{simpleText:"Tsonga"}},{languageCode:"tr",languageName:{simpleText:"Turkish"}},{languageCode:"tk",languageName:{simpleText:"Turkmen"}},{languageCode:"uk",languageName:{simpleText:"Ukrainian"}},{languageCode:"ur",languageName:{simpleText:"Urdu"}},{languageCode:"ug",languageName:{simpleText:"Uyghur"}},{languageCode:"uz",languageName:{simpleText:"Uzbek"}},
{languageCode:"vi",languageName:{simpleText:"Vietnamese"}},{languageCode:"cy",languageName:{simpleText:"Welsh"}},{languageCode:"fy",languageName:{simpleText:"Western Frisian"}},{languageCode:"xh",languageName:{simpleText:"Xhosa"}},{languageCode:"yi",languageName:{simpleText:"Yiddish"}},{languageCode:"yo",languageName:{simpleText:"Yoruba"}},{languageCode:"zu",languageName:{simpleText:"Zulu"}}],defaultAudioTrackIndex:0}},videoDetails:{videoId:td,title:td,lengthSeconds:"1155",keywords:[dr,Xn,Fa,Vi],
channelId:ib,isOwnerViewing:!1,shortDescription:be,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+x+"/hqdefault.jpg?sqp=-oaymwE"+hm+"G&rs="+ag,width:168,height:94},{url:"https://i.ytimg.com/vi/"+x+"/hqdefault.jpg?sqp=-oaymwE"+hm+"G&rs="+ag,width:196,height:110},{url:"https://i.ytimg.com/vi/"+x+"/hqdefault.jpg?sqp=-oaymwE"+hm+"G&rs="+V,width:246,height:138},{url:"https://i.ytimg.com/vi/"+x+"/hqdefault.jpg?sqp=-oaymwE"+hm+"G&rs="+V,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
x+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:Gb,author:Wn,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:Gb,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+hc+"/featured_channel.jpg?v="+Hc,width:40,height:40}]},trackingParams:Bb+"=",navigationEndpoint:{clickTrackingParams:Xd,commandMetadata:{webCommandMetadata:{url:"/channel/"+ib,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:ib}},channelName:Wn,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:dr}]},subscribed:!1,enabled:!0,type:"FREE",channelId:ib,showPreferences:!1,subscribedButtonText:{runs:[{text:Xn}]},unsubscribedButtonText:{runs:[{text:Wn}]},trackingParams:Bb+"=",unsubscribeButtonText:{runs:[{text:aq}]},serviceEndpoints:[{clickTrackingParams:Xd,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[ib],params:Hc}},{clickTrackingParams:Xd,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Xd,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Bb+"=",dialogMessages:[{runs:[{text:Hc},{text:be},{text:ap}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:$h}]},serviceEndpoint:{clickTrackingParams:Xd,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ib],params:Hc}},accessibility:{label:Vi},trackingParams:Bb+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Hc}]},accessibility:{label:nb},trackingParams:Bb+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:td}},unsubscribeAccessibility:{accessibilityData:{label:Vi}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:Tc},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:Xd,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:Xd,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ib],params:Hc}},unsubscribeCommand:{clickTrackingParams:Xd,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ib],params:Hc}},addToWatchLaterCommand:{clickTrackingParams:Xd,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:td,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:Xd,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:td}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+x+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+hm+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
x+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+td,width:1280,height:720},title:{simpleText:Hc},description:{simpleText:$h},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+Fa,externalChannelId:ib,isFamilySafe:!0,availableCountries:"AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS YE YT ZA ZM ZW".split(" "),
isUnlisted:!1,hasYpcMetadata:!1,viewCount:Gb,category:"Travel & Events",publishDate:rb,ownerChannelName:Wn,uploadDate:rb}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:sa},trackingParams:Bb+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:Xd,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:Bb+"="}}],headerText:{simpleText:aq},icon:{infoCardIconRenderer:{trackingParams:Bb+"="}},closeButton:{infoCardIconRenderer:{trackingParams:Bb+"="}},trackingParams:Bb+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:Bb+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+td+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:Rm,interpreterSafeUrl:(Wv.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+vd+".js",Wv),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:Ta},{text:dr,bold:!0}]},endpoint:{clickTrackingParams:Xd,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/",target:"TARGET_NEW_WINDOW"}},trackingParams:Bb+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:nb}]},actionButton:{buttonRenderer:{text:{runs:[{text:Xn}]},navigationEndpoint:{clickTrackingParams:Xd,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+x,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
x,target:"TARGET_NEW_WINDOW"}},trackingParams:Bb+"="}},trackingParams:Bb+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+Ba+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+Ba+"=s400-c-k-c0x00ffffff-no-rj",width:400,height:400}]},icon:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/annotations/youtube.png"}]},left:.030214407,width:.15438597,top:.37587035,aspectRatio:1,
startMs:Gb,endMs:Gb,title:{accessibility:{accessibilityData:{label:Sm}},simpleText:td},metadata:{simpleText:Fa},callToAction:{simpleText:be},dismiss:{simpleText:$h},endpoint:{clickTrackingParams:Xd,commandMetadata:{webCommandMetadata:{url:"/channel/"+ib,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:ib}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Xn}]},subscribed:!1,enabled:!0,type:"FREE",channelId:ib,showPreferences:!1,
subscribedButtonText:{runs:[{text:nb}]},unsubscribedButtonText:{runs:[{text:Wn}]},trackingParams:Bb+"=",unsubscribeButtonText:{runs:[{text:Xn}]},serviceEndpoints:[{clickTrackingParams:Xd,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ib],params:Hc}},{clickTrackingParams:Xd,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Xd,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Bb+
"=",dialogMessages:[{runs:[{text:Hc},{text:be},{text:be}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:pf}]},serviceEndpoint:{clickTrackingParams:Xd,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ib],params:Hc}},accessibility:{label:ap},trackingParams:Bb+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:dr}]},
accessibility:{label:Vi},trackingParams:Bb+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Ta}},unsubscribeAccessibility:{accessibilityData:{label:td}}}},trackingParams:Bb+"=",isSubscribe:!0,id:Cb}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+x+"/hqdefault.jpg?sqp=-oaymwE"+hm+"G&rs="+V,width:168,height:94},{url:"https://i.ytimg.com/vi/"+x+"/hqdefault.jpg?sqp=-oaymwE"+hm+"G&rs="+ag,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+x+"/hqdefault.jpg?sqp=-oaymwE"+hm+"G&rs="+V,width:246,height:138},{url:"https://i.ytimg.com/vi/"+x+"/hqdefault.jpg?sqp=-oaymwE"+hm+"G&rs="+V,width:336,height:188},{url:"https://i.ytimg.com/vi/"+x+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:Gb,endMs:Gb,title:{accessibility:{accessibilityData:{label:mc}},simpleText:Xn},metadata:{simpleText:aq},endpoint:{clickTrackingParams:Xd,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
td,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:td,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+Ua+".googlevideo.com/videoplayback?source=youtube&oeis="+ia+"&c=WEB&oad="+mb+"&ovd="+mb+"&oaad="+Yb+"&oavd="+Yb+"&ocs="+Pa+"&oewis="+ia+"&oputc="+ia+"&ofpcc="+ia+"&siu="+ia+"&msp="+ia+"&odepv="+ia+
"&id=o-AF"+ff+"&ip="+sb+"&initcwndbps="+Gb+"&mt="+ac+"&oweuc="+Vn}}}}},trackingParams:Bb+"=",id:Cb,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:Hc}},simpleText:dr},style:"DEFAULT"}}]}}],startMs:Gb,trackingParams:Bb+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:ia,offsetEndMilliseconds:Yb},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Bd+";dc_trk_cid="+Bd+";dc_dbm_token="+u+";ord="+ac+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ia+";dc_rui="+ia+";dc_exteid="+Cb+";dc_av="+Pa+";dc_sk="+ia+";dc_ctype="+qb+";dc_ref=http://www.youtube.com/video/"+td+";dc_pubid="+ia+";dc_btype=23?gclid="+db+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
A+"____________"+C+"AxAA&sigh="+td+"&cid="+da+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+ia+"&ns="+ia+"&event="+ia+"&device="+ia+"&content_v="+x+"&el="+$h+"&ei="+R+"&devicever="+c+"&bti="+Gb+"&format="+hd+"&break_type="+ia+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+ia+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+sb+"&slot_pos="+ia+"&slot_len="+ia+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+Gf+"&ad_len="+Yb+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
td+"&aqi="+R+"&ad_rmp="+ia+"&sli="+ia}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+x+"&cid="+da+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+x+"&cid="+da+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+
ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+x+"&cid="+da+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+hd+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
A+"____________"+C+"AxAA&sigh="+x+"&cid="+da+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+x+"&cid="+da+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+x+"&cid="+da+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+x+"&cid="+da+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+Gb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+x+"&cid="+da+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
A+"____________"+C+"AxAA&sigh="+x+"&cid="+da+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&ctype="+Pa+"&ms=[CLICK_MS]&label=video_10s_engaged_view&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=",offsetMilliseconds:1E4,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_engaged_view&ctype="+Pa+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+hd+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Bd+";dc_trk_cid="+Bd+";dc_dbm_token="+u+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ia+";ord="+Bd+";dc_rui="+ia+";dc_exteid="+Ac+";dc_av="+ia+";dc_sk="+ia+";dc_ctype="+qb+";dc_pubid="+ia+";dc_btype=3?gclid="+db+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+x+"&cid="+da+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+r+"&sig="+fb+"&ad_cpn=[AD_CPN]&id="+Ta+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Ta+"&dc_pubid="+ia+"&dc_exteid="+Cb+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+x+"&cid="+da+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+r+"&sig="+fb+"&ad_cpn=[AD_CPN]&id="+Ta+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+ia},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Ta+"&avm="+ia+"&dc_pubid="+ia+"&dc_exteid="+
Cb+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+x+"&cid="+da+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
r+"&sig="+fb+"&ad_cpn=[AD_CPN]&id="+Ta+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+ia},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Ta+"&dc_pubid="+ia+"&dc_exteid="+Cb+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+hd+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+hd+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+x+"&cid="+da+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Xd,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+
Pa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+x+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Bb+"="},trackingParams:Bb+
"=",templatedCountdown:{templatedAdText:{text:sa,isTemplated:!0,trackingParams:Bb+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:be,isTemplated:!1,trackingParams:Bb+"="},trackingParams:Bb+"="}},trackingParams:Bb+"=",skipOffsetMilliseconds:5E3}},trackingParams:Bb+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Fa},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Xd,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Bb+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:nb,isTemplated:!1,trackingParams:Bb+"="},trackingParams:Bb+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:pf,isTemplated:!0,trackingParams:Bb+"="}},trackingParams:Bb+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Xd,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Xv.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+I+"&hl="+La+"&origin=www.youtube.com&ata_theme="+Xn,Xv),trackingParams:Bb+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:Bb+"="}},hoverText:{runs:[{text:be}]},trackingParams:Bb+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+mk+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Bb+"="},headline:{text:$h,isTemplated:!1,trackingParams:Bb+"="},description:{text:ap,
trackingParams:Bb+"="},actionButton:{buttonRenderer:{text:{simpleText:td},navigationEndpoint:{clickTrackingParams:Xd,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Bd+";dc_trk_cid="+Bd+";dc_dbm_token="+u+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ia+";ord="+Bd+";dc_rui="+ia+";dc_exteid="+Cb+";dc_av="+ia+";dc_sk="+ia+";dc_ctype="+qb+";dc_pubid="+ia+";dc_btype=3?gclid="+db+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Bb+"="}},startMs:ia,trackingParams:Bb+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:be},elementId:nb}},elementId:be,trackingParams:Bb+"=",legacyInfoCardVastExtension:Ta,sodarExtensionData:{siub:Xn,bgub:be,scs:be,bgp:nb},externalVideoId:td,adLayoutLoggingData:{serializedAdServingDataEntry:mc},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+mk+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Bb+"="},
headline:{text:Sm,isTemplated:!1,trackingParams:Bb+"="},description:{text:Hc,isTemplated:!1,trackingParams:Bb+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:td},navigationEndpoint:{clickTrackingParams:Xd,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Bd+";dc_trk_cid="+Bd+";dc_dbm_token="+u+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ia+";ord="+Bd+";dc_rui="+ia+";dc_exteid="+
Cb+";dc_av="+ia+";dc_sk="+ia+";dc_ctype="+qb+";dc_pubid="+ia+";dc_btype=3?gclid="+db+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+
ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Bb+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Bb+"="}},navigationEndpoint:{clickTrackingParams:Xd,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Bd+";dc_trk_cid="+
Bd+";dc_dbm_token="+u+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ia+";ord="+Bd+";dc_rui="+ia+";dc_exteid="+Cb+";dc_av="+ia+";dc_sk="+ia+";dc_ctype="+qb+";dc_pubid="+ia+";dc_btype=3?gclid="+db+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+x+"&cid="+da+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+
C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Bb+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Bb+"="},abandonCommands:{commands:[{clickTrackingParams:Xd,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+x+"&cid="+da+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+
ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Xd,commandExecutorCommand:{commands:[{clickTrackingParams:Xd,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+x+"&cid="+da+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:be,isTemplated:!1,trackingParams:Bb+
"="},trackingParams:Bb+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:be},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+x+"&cid="+da+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+Gb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"1ID7Gdwk2vV7OZ1A"}},
{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N1957659.127733GOOGLE-YOUTUBE/B29940965.366940103;dc_trk_aid="+Bd+";dc_trk_cid="+Bd+";ord="+ac+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ia+";dc_rui="+ia+";dc_exteid="+Cb+";dc_av="+Pa+";dc_sk="+ia+";dc_ctype="+qb+";dc_ref=http://www.youtube.com/video/"+td+";dc_pubid="+ia+";dc_btype=23?gclid="+db+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+A+"____________"+C+"AxAA&sigh="+td+"&cid="+da+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+ia+"&ns="+ia+"&event="+ia+"&device="+ia+"&content_v="+x+"&el="+$h+"&ei="+R+"&devicever="+c+"&bti="+Gb+"&format="+hd+"&break_type="+ia+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+ia+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+sb+"&slot_pos="+ia+"&slot_len="+ia+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
Gf+"&ad_len="+Yb+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+td+"&aqi="+R+"&ad_rmp="+ia+"&sli="+ia}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+td+"&cid="+da+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+td+"&cid="+da+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+td+"&cid="+da+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+hd+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+td+"&cid="+da+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+td+"&cid="+
da+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+td+"&cid="+da+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
A+"____________"+C+"AxAA&sigh="+td+"&cid="+da+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+Gb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+td+"&cid="+da+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+td+"&cid="+da+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&ctype="+Pa+"&ms=[CLICK_MS]&label=video_10s_engaged_view&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=",offsetMilliseconds:1E4,
attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_engaged_view&ctype="+Pa+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+hd+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+td+"&cid="+da+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+r+"&sig="+fb+"&ad_cpn=[AD_CPN]&id="+
Ta+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Ta+"&dc_pubid="+ia+"&dc_exteid="+Cb+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+td+"&cid="+da+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+r+
"&sig="+fb+"&ad_cpn=[AD_CPN]&id="+Ta+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+ia},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Ta+"&avm="+ia+"&dc_pubid="+ia+"&dc_exteid="+Cb+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+td+"&cid="+da+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+r+"&sig="+fb+"&ad_cpn=[AD_CPN]&id="+Ta+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+ia},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Ta+"&dc_pubid="+ia+"&dc_exteid="+Cb+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+hd+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+hd+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+td+"&cid="+da+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Xd,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+
Pa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",
playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+x+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Bb+"="},trackingParams:Bb+"=",templatedCountdown:{templatedAdText:{text:mc,isTemplated:!0,trackingParams:Bb+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:nb,isTemplated:!1,trackingParams:Bb+"="},trackingParams:Bb+"="}},
trackingParams:Bb+"=",skipOffsetMilliseconds:5E3}},trackingParams:Bb+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:dr},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Xd,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Bb+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:td,isTemplated:!1,trackingParams:Bb+"="},trackingParams:Bb+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Ta,
isTemplated:!0,trackingParams:Bb+"="}},trackingParams:Bb+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Xd,openPopupAction:{popup:{aboutThisAdRenderer:{url:(VI.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+I+"&hl="+La+"&origin=www.youtube.com&ata_theme="+Xn,VI),trackingParams:Bb+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:Bb+"="}},hoverText:{runs:[{text:pf}]},trackingParams:Bb+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Ca+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Bb+"="},headline:{text:pf,isTemplated:!1,trackingParams:Bb+"="},description:{text:$h,trackingParams:Bb+"="},actionButton:{buttonRenderer:{text:{simpleText:dr},navigationEndpoint:{clickTrackingParams:Xd,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Bb+"="}},startMs:ia,trackingParams:Bb+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Wn},elementId:Fa}},elementId:Sm,trackingParams:Bb+"=",legacyInfoCardVastExtension:nb,sodarExtensionData:{siub:pf,bgub:Hc,scs:aq,bgp:Ta},externalVideoId:td,adLayoutLoggingData:{serializedAdServingDataEntry:ap},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Ca+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Bb+"="},headline:{text:pf,
isTemplated:!1,trackingParams:Bb+"="},description:{text:dr,isTemplated:!1,trackingParams:Bb+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:mc},navigationEndpoint:{clickTrackingParams:Xd,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Bb+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Bb+"="}},navigationEndpoint:{clickTrackingParams:Xd,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
A+"____________"+C+"AxAA&sigh="+td+"&cid="+da+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+
ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Bb+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Bb+"="},abandonCommands:{commands:[{clickTrackingParams:Xd,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+td+"&cid="+da+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Xd,commandExecutorCommand:{commands:[{clickTrackingParams:Xd,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+td+"&cid="+da+"&label=video_card_endcap_impression"}],
pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:td,isTemplated:!1,trackingParams:Bb+"="},trackingParams:Bb+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Fa},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+td+"&cid="+da+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Cb+";met="+ia+";ecn"+
ia+"="+ia+";etm1="+ia+";eid1="+Gb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:ap}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Vi}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Yb,offsetEndMilliseconds:hd},hideCueRangeMarker:!0}},
renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+R+"&m_pos="+qb+"&token=ALHj"+fa+"&index="+ia+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+c+"&m_pos_ms="+Yb}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Xn}}},
{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:hd,offsetEndMilliseconds:hd},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+R+"&m_pos="+Pa+"&token=ALHj"+fa+"&index="+ia+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
c+"&m_pos_ms="+hd}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Hc}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:hd,offsetEndMilliseconds:hd},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+R+"&m_pos="+Pa+"&token=ALHj"+fa+"&index="+ia+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
c+"&m_pos_ms="+hd}},adSlotLoggingData:{serializedSlotAdServingDataEntry:nb}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:hd,offsetEndMilliseconds:hd},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+R+"&m_pos="+Pa+"&token=ALHj"+fa+"&index="+ia+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
c+"&m_pos_ms="+hd}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Vi}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:hd,offsetEndMilliseconds:qb},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+R+"&m_pos="+Pa+"&token=ALHj"+fa+"&index="+ia+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
c+"&m_pos_ms="+hd}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Vi}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:qb,offsetEndMilliseconds:qb},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+R+"&m_pos="+qb+"&token=ALHj"+fa+"&index="+ia+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
c+"&m_pos_ms="+qb}},adSlotLoggingData:{serializedSlotAdServingDataEntry:aq}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:sa,isTemplated:!1,trackingParams:Bb+"="},description:{text:$h,isTemplated:!1,trackingParams:Bb+"="},actionButton:{buttonRenderer:{text:{simpleText:pf},navigationEndpoint:{clickTrackingParams:Xd,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Bd+";dc_trk_cid="+Bd+";dc_dbm_token="+u+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ia+";ord="+Bd+";dc_rui="+ia+";dc_exteid="+Cb+";dc_av="+ia+";dc_sk="+ia+";dc_ctype="+qb+";dc_pubid="+ia+";dc_btype=3?gclid="+db+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Bb+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+mk+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:Bb+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+ya+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Bb+"="},navigationEndpoint:{clickTrackingParams:Xd,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Bd+";dc_trk_cid="+Bd+";dc_dbm_token="+u+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ia+";ord="+Bd+
";dc_rui="+ia+";dc_exteid="+Cb+";dc_av="+ia+";dc_sk="+ia+";dc_ctype="+qb+";dc_pubid="+ia+";dc_btype=3?gclid="+db+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Bb+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Xd,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Afa.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+I+"&hl="+La+"&origin=www.youtube.com&ata_theme="+Xn,Afa),trackingParams:Bb+"="}},popupType:"DIALOG"}},trackingParams:Bb+"="}},hoverText:{runs:[{text:td}]},trackingParams:Bb+"="}},adVideoId:td,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+x+"&cid="+da+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:$h},associatedCompositePlayerBytesLayoutId:be}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:mc}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:aq,isTemplated:!1,trackingParams:Bb+"="},description:{text:Sm,isTemplated:!1,trackingParams:Bb+"="},actionButton:{buttonRenderer:{text:{simpleText:sa},navigationEndpoint:{clickTrackingParams:Xd,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+
C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Bb+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Ca+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Bb+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+$c+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Bb+"="},navigationEndpoint:{clickTrackingParams:Xd,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+
ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Bb+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Xd,openPopupAction:{popup:{aboutThisAdRenderer:{url:(WI.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+I+"&hl="+La+"&origin=www.youtube.com&ata_theme="+Xn,WI),trackingParams:Bb+"="}},popupType:"DIALOG"}},trackingParams:Bb+"="}},
hoverText:{runs:[{text:Hc}]},trackingParams:Bb+"="}},adVideoId:td,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+td+"&cid="+da+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Fa},associatedCompositePlayerBytesLayoutId:be}},adSlotLoggingData:{serializedSlotAdServingDataEntry:pf}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:be,
isTemplated:!1,trackingParams:Bb+"="},description:{text:be,isTemplated:!1,trackingParams:Bb+"="},actionButton:{buttonRenderer:{text:{simpleText:Vi},navigationEndpoint:{clickTrackingParams:Xd,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Bd+";dc_trk_cid="+Bd+";dc_dbm_token="+u+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ia+";ord="+Bd+";dc_rui="+ia+";dc_exteid="+Cb+";dc_av="+ia+";dc_sk="+ia+";dc_ctype="+
qb+";dc_pubid="+ia+";dc_btype=3?gclid="+db+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+
V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Bb+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+mk+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Bb+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+ya+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Bb+
"="},navigationEndpoint:{clickTrackingParams:Xd,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Bd+";dc_trk_cid="+Bd+";dc_dbm_token="+u+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ia+";ord="+Bd+";dc_rui="+ia+";dc_exteid="+Cb+";dc_av="+ia+";dc_sk="+ia+";dc_ctype="+qb+";dc_pubid="+ia+";dc_btype=3?gclid="+db+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+da+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+yd+"&label=video_click_to_advertiser_site&ctype="+Pa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Bb+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Xd,openPopupAction:{popup:{aboutThisAdRenderer:{url:(I0.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+I+"&hl="+La+"&origin=www.youtube.com&ata_theme="+Xn,I0),trackingParams:Bb+"="}},popupType:"DIALOG"}},trackingParams:Bb+
"="}},hoverText:{runs:[{text:be}]},trackingParams:Bb+"="}},adVideoId:td,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+x+"&cid="+da+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:sa},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:be}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Wn}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:vd,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:vd,command:{innertubeCommand:{clickTrackingParams:Xd,ypcGetOfflineUpsellEndpoint:{params:gf}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:Bb+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:ac,nanos:Mc}}}},hDa=JSON.stringify(J0),K0=performance.now()-a;return{objectRepresentation:J0,jsonRepresentation:hDa,generationTime:K0}};
lHa=function(a,b){if(a===b)return!0;if(!a||!b||typeof a!==typeof b)return!1;if(a instanceof Array&&b instanceof Array){if(a.length!==b.length)return!1;for(var c=0;c<a.length;c++)if(!lHa(a[c],b[c]))return!1;return!0}if(typeof a==="object"&&typeof b==="object"&&a&&b){for(c in a)if(!(c in b&&lHa(a[c],b[c])))return!1;for(var d in b)if(!(d in a))return!1;return!0}return!1};
gq=function(a,b,c,d){if(a===b)return!0;if(Array.isArray(a)&&Array.isArray(b)){if(a.length!==b.length)return!1;for(var e=0;e<a.length;e++)if(!gq(a[e],b[e],c,d))return!1;return!0}if(a instanceof Set||b instanceof Set){if(a instanceof Set&&b instanceof Set){if(a.size!==b.size)return!1;d=_.h(a.values());for(e=d.next();!e.done;e=d.next())if(!b.has(e.value))return!1;return!0}return!1}if(a instanceof Function){if(d)return!0;a.name===""&&_.Bl(Error("Jf"),"ERROR");return!1}if(a instanceof Date&&b instanceof
Date)return a.getTime()===b.getTime();if(a instanceof Object&&b instanceof Object){if(mHa(a)&&mHa(b))try{return a.equals(b)}catch(k){_.Bl(Error("Kf`"+k),"ERROR")}e=Object.getOwnPropertyNames(a).filter(function(k){return c?a[k]!==void 0:!0});
var g=Object.getOwnPropertyNames(b).filter(function(k){return c?b[k]!==void 0:!0});
if(e.length!==g.length)return!1;e=_.h(e);for(g=e.next();!g.done;g=e.next())if(g=g.value,!gq(a[g],b[g],c,d))return!1;return!0}return!1};
mHa=function(a){a=Object.getPrototypeOf(a).equals;return a instanceof Function&&a.length===1};
pHa=function(){return _.l(function(a){if(a.nextAddress==1)return nHa!==2?a.jumpTo(2):_.p(a,oHa(),3);a.nextAddress!=2&&(nHa=a.yieldResult);return a.return(nHa)})};
sHa=function(){return _.l(function(a){if(a.nextAddress==1)return _.w("ab_pl_man")?qHa!==2?a.jumpTo(2):_.p(a,rHa(),3):a.return(1);a.nextAddress!=2&&(qHa=a.yieldResult);return a.return(qHa)})};
vHa=function(){return _.l(function(a){if(a.nextAddress==1)return _.w("ab_fk_sk_cl")?tHa!==2?a.jumpTo(2):_.p(a,uHa(),3):a.return(1);a.nextAddress!=2&&(tHa=a.yieldResult);return a.return(tHa)})};
yHa=function(){return _.l(function(a){if(a.nextAddress==1)return _.w("ab_det_apb_b")?wHa!==2?a.jumpTo(2):_.p(a,xHa(),3):a.return(1);a.nextAddress!=2&&(wHa=a.yieldResult);return a.return(wHa)})};
BHa=function(){var a;return _.l(function(b){if(b.nextAddress==1)return _.p(b,Promise.all([pHa(),yHa(),sHa(),vHa()]),2);if(b.nextAddress!=3)return zHa()?b.return(!0):_.p(b,AHa(),3);a=b.yieldResult;return b.return(a===0)})};
zHa=function(){var a=[];a.push(CHa());_.w("disable_enf_isd")||a.push(DHa());a.push(nHa);a.push(wHa);a.push(qHa);a.push(tHa);if(_.w("ab_det_el_h")){var b=a.push;EHa===2&&(EHa=FHa(GHa(HHa)));b.call(a,EHa)}_.w("ks_det_gpbl")||a.push(IHa());_.w("ks_get_o_pp")||a.push(JHa());_.w("ab_deg_unex_thr")||a.push(KHa());a.push(LHa);_.w("ab_det_sc_inj_enf")&&a.push(MHa());a.push(NHa);_.w("ab_det_pp_ov")&&a.push(OHa(PHa));return _.w("debug_sk_em_precheck")?!0:a.includes(0)};
RHa=function(){var a=[].concat(_.De(QHa));try{var b=fq();a.push({jsonRepresentation:b.jsonRepresentation,objectRepresentation:b.objectRepresentation})}catch(c){a=[].concat(_.De(QHa))}return a};
SHa=function(){var a=["adPlacements","adSlots"];try{return a.filter(function(){return!0}).length!==a.length?0:1}catch(b){return 0}};
JHa=function(){if(SHa()===0)return 0;var a=fq(),b=a.objectRepresentation,c=(0,_.Cf.unsafeClone)(b),d=[];if(b&&typeof b==="object")for(var e in b)d.push(e);else return 4;a=a.objectRepresentation.adPlacements;if(!(a&&a.length>0))return 4;try{if(!lHa(d,Object.getOwnPropertyNames(b)))return 0}catch(g){return 0}return lHa(c,b)?1:0};
OHa=function(a){var b=Object.getOwnPropertyNames(Object.prototype);a=_.h(a);for(var c=a.next();!c.done;c=a.next()){c=THa(c.value);for(var d=_.h(b),e=d.next();!e.done;e=d.next())if(c===e.value)return 0}return 1};
CHa=function(){for(var a=_.h(RHa()),b=a.next();!b.done;b=a.next()){var c=b.value;b=c.jsonRepresentation;c=c.objectRepresentation;try{var d=JSON.parse(b);if(!gq(d,c,!1,!1))return 0}catch(e){return 0}}return 1};
MHa=function(){try{var a=_.bj("ab_det_sc_inj_val");a.length===1&&a[0]===""&&(a=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var b=document.querySelectorAll("script"),c=_.h(b),d=c.next();!d.done;d=c.next())for(var e=d.value,g=_.h(a),k=g.next();!k.done;k=g.next()){var m=k.value;b=void 0;if((b=e.textContent)==null?0:b.includes(m))return 0}}catch(n){return 4}return 1};
AHa=function(){var a,b,c,d,e,g,k;return _.l(function(m){switch(m.nextAddress){case 1:_.pe(m,2),a=_.h(QHa),b=a.next();case 4:if(b.done)return m.return(1);d=c=b.value;e=d.jsonRepresentation;g=d.objectRepresentation;return _.p(m,(new Response(e,{status:200})).json(),7);case 7:k=m.yieldResult;if(!gq(k,g,!1,!1))return m.return(0);b=a.next();m.jumpTo(4);break;case 2:return _.te(m),m.return(4)}})};
KHa=function(){try{btoa("abc")}catch(a){return 0}return 1};
oHa=function(){var a,b,c,d,e,g,k,m,n,r,t;return _.l(function(u){switch(u.nextAddress){case 1:_.pe(u,2),a=_.h(RHa()),b=a.next();case 4:if(b.done)return u.return(1);d=c=b.value;e=d.jsonRepresentation;g=d.objectRepresentation;k=btoa(e);m="data:application/json;base64,"+k;n=new Request(m);Object.defineProperty(n,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(n,"method",{get:function(){return"POST"}});
Object.defineProperty(n,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(n,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(n,"body",{get:function(){return new ReadableStream}});
return _.p(u,fetch(n),7);case 7:return r=u.yieldResult,_.p(u,r.json(),8);case 8:t=u.yieldResult;if(!gq(t,g,!1,!1))return u.return(0);b=a.next();u.jumpTo(4);break;case 2:return _.te(u),u.return(4)}})};
GHa=function(a){var b=document.body,c,d=null;a=_.h(a);for(c=a.next();!c.done;c=a.next()){var e=c.value;c=document.createElement("div");d||(d=c);e.id&&(c.id=e.id);if(e.classes){e=_.h(e.classes);for(var g=e.next();!g.done;g=e.next())c.classList.add(g.value)}b.appendChild(c);b=c}return[d,b]};
FHa=function(a){var b=_.h(a);a=b.next().value;b=b.next().value;try{var c=document.createElement("div");document.body.appendChild(c);var d=getComputedStyle(c).display;document.body.removeChild(c);if(d==="none")return 4;var e=getComputedStyle(b).display==="none"?0:1;document.body.removeChild(a);return e}catch(g){return 4}};
uHa=function(){var a,b,c;return _.l(function(d){a=new _.hq;b=document.createElement("button");b.classList.add("ytp-ad-skip-button");b.style.opacity="0";b.style.height="0px";b.style.width="0px";b.style.padding="0px";b.style.border="none";c=function(){b.parentElement&&b.parentElement.removeChild(b)};
b.onclick=function(){a.resolve(0);c()};
document.body.appendChild(b);setTimeout(function(){c();a.resolve(1)},50);
return d.return(a.promise)})};
rHa=function(){var a,b,c,d,e,g,k;return _.l(function(m){a=new _.hq;b=document.createElement("ytd-player");try{document.body.prepend(b)}catch(n){return m.return(4)}c=function(){b.parentElement&&b.parentElement.removeChild(b)};
b.getElementsByTagName("div").length>0?d=b.getElementsByTagName("div")[0]:(d=document.createElement("div"),b.appendChild(d));e=document.createElement("div");d.appendChild(e);g=document.createElement("video");k=new Blob([new Uint8Array([26,69,223,163,159,66,134,129,1,66,247,129,1,66,242,129,4,66,243,129,8,66,130,132,119,101,98,109,66,135,129,4,66,133,129,2,24,83,128,103,1,255,255,255,255,255,255,255,21,73,169,102,153,42,215,177,131,15,66,64,77,128,134,67,104,114,111,109,101,87,65,134,67,104,114,111,
109,101,22,84,174,107,169,174,167,215,129,1,115,197,135,207,96,156,234,24,157,175,131,129,1,85,238,129,1,134,133,86,95,86,80,56,224,138,176,129,1,186,129,1,83,192,129,1,31,67,182,117,1,255,255,255,255,255,255,255,231,129,0,160,204,161,162,129,0,0,0,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,229,106,0,117,161,165,166,163,238,129,1,165,158,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,232,120,0,160,187,161,152,129,3,233,0,177,
1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,129,0,160,188,161,152,129,7,208,0,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,130,3,233])],{type:"video/webm"});g.src=_.Ed(Jd(k));g.ontimeupdate=function(){c();a.resolve(0)};
e.appendChild(g);g.classList.add("html5-main-video");setTimeout(function(){e.classList.add("ad-interrupting")},200);
setTimeout(function(){c();a.resolve(1)},5E3);
return m.return(a.promise)})};
UHa=function(a,b){var c,d;return _.l(function(e){switch(e.nextAddress){case 1:c=[],d=0;case 2:if(!(d<3)){e.jumpTo(4);break}return _.p(e,fetch(a,{cache:"no-store",method:b}).then(function(g){c.push(g.status)}).catch(function(){c.push(-1)}),3);
case 3:d++;e.jumpTo(2);break;case 4:return e.return(c)}})};
VHa=function(a){return a.domainLookupStart===0&&a.domainLookupEnd===0&&a.connectStart===0&&a.connectEnd===0};
WHa=function(a,b,c){c=c===void 0?"GET":c;var d,e,g,k,m,n,r,t,u,x;return _.l(function(A){if(A.nextAddress==1)return _.p(A,Promise.all([UHa(a,c),UHa(b,c)]),2);d=A.yieldResult;e=_.h(d);g=e.next().value;k=e.next().value;m=g;n=k;if(Math.min.apply(Math,_.De(n))!==Math.max.apply(Math,_.De(n))||Math.min.apply(Math,_.De(m))!==Math.max.apply(Math,_.De(m)))return A.return(2);if(Math.min.apply(Math,_.De(n))===Math.min.apply(Math,_.De(m)))return A.return(1);t=(r=performance.getEntriesByName(a))==null?void 0:r[0];
x=(u=performance.getEntriesByName(b))==null?void 0:u[0];return t&&x?VHa(x)?A.return(1):VHa(t)?A.return(0):A.return(1):A.return(2)})};
xHa=function(){var a;return _.l(function(b){var c=[];var d;var e,g,k;(e=d=(e=fq().objectRepresentation.streamingData)==null?void 0:(g=e.formats)==null?void 0:(k=g[0])==null?void 0:k.url)&&e&&!d.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(e=e.replace("initcwndbps","ctier=L&initcwndbps"),d={testUrl:e,baseUrl:d,method:"GET"}):d=void 0;d&&c.push(d);_.w("ab_net_tp_e")&&c.push({testUrl:_.ja.location.origin+"/ad_companion",baseUrl:_.ja.location.origin+"/generate_204",method:"OPTIONS"});if(_.w("ad_net_pb_ab")){var m;
b:{d=/api\/stats\/ads/;var n,r,t,u;e=(m=fq().objectRepresentation.adPlacements)==null?void 0:(n=m[0])==null?void 0:(r=n.adPlacementRenderer)==null?void 0:(t=r.renderer)==null?void 0:(u=t.linearAdSequenceRenderer)==null?void 0:u.linearAds;if(e!=null&&e.length&&(m=_.y(e[0],XHa))&&(m=m.pings,m!=null&&m.impressionPings))for(n=[].concat(_.De(m.impressionPings)),m.progressPings&&(n=[].concat(_.De(n),_.De(m.progressPings))),m=_.h(n),n=m.next();!n.done;n=m.next())if(n=n.value,n.baseUrl&&d.test(n.baseUrl)){m=
n.baseUrl.replace("https://www.youtube.com","");break b}m=void 0}m&&c.push({testUrl:_.ja.location.origin+m,baseUrl:_.ja.location.origin+"/feed/download",method:"GET"})}if(_.w("ad_net_pb_pbp")){var x;b:{m=/api\/stats\/qoe/;if(n=fq().objectRepresentation.playbackTracking){r=[];r.push(n==null?void 0:(x=n.videostatsPlaybackUrl)==null?void 0:x.baseUrl);var A;r.push(n==null?void 0:(A=n.videostatsDelayplayUrl)==null?void 0:A.baseUrl);var C;r.push(n==null?void 0:(C=n.videostatsWatchtimeUrl)==null?void 0:
C.baseUrl);var F;r.push(n==null?void 0:(F=n.ptrackingUrl)==null?void 0:F.baseUrl);var J;r.push(n==null?void 0:(J=n.qoeUrl)==null?void 0:J.baseUrl);var I;r.push(n==null?void 0:(I=n.atrUrl)==null?void 0:I.baseUrl);x=_.h(r);for(A=x.next();!A.done;A=x.next())if((A=A.value)&&m.test(A)){x=A.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}x=void 0}x&&c.push({testUrl:_.ja.location.origin+x,baseUrl:_.ja.location.origin+"/feed/download",method:"GET"})}c=c.length!==0?c[Math.floor(Math.random()*
c.length)]:void 0;return(a=c)?b.return(WHa(a.testUrl,a.baseUrl,a.method)):b.return(4)})};
DHa=function(){return _.Fi("ISDSTAT",2)};
IHa=function(){if(_.ja.ytGetPkBl===void 0||_.ja.ytGetPkBl===null||typeof _.ja.ytGetPkBl!=="function")return 2;try{return _.ja.ytGetPkBl()===!0?0:1}catch(a){return 0}};
YHa=function(a){switch(a){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.Wb(a,"unknown result type")}};
_.ZHa=function(a,b){var c=Number(_.Fi("CATSTAT",0));if(b.attestationOffset===void 0)return c;b=b.attestationOffset;a=YHa(a);return c&~(3<<b)|a<<b};
$Ha=function(a){var b,c;if((a=(b=a.auxiliaryUi)==null?void 0:(c=b.messageRenderers)==null?void 0:c.bkaEnforcementMessageViewModel)&&a.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return a};
bIa=function(){for(var a=_.h(Object.values(_.aIa)),b=a.next();!b.done;b=a.next())b=b.value,b.isAsync&&b.attestationOffset&&_.Ei("CATSTAT",_.ZHa(2,b))};
_.lq=function(a,b){a=_.iq("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",a);(b===void 0?0:b)?_.cIa(a,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.jq(_.kq(),a,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
_.nq=function(){if(!mq){mq=new lg(new dIa);var a=_.$i("client_streamz_web_flush_count",-1);a!==-1&&(mq.invocationLimit=a)}return mq};
fIa=function(){if(!eIa){if(Polymer.Base){var a=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{a.apply(this,arguments)}catch(u){_.Hi(u)}};
var b=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{b.apply(this,arguments)}catch(u){_.Hi(u)}};
var c=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{c.apply(this,arguments)}catch(u){_.Hi(u)}};
var d=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{d.apply(this,arguments)}catch(u){_.Hi(u)}};
var e=Polymer.Base._listen,g=new WeakMap;Polymer.Base._listen=function(u,x,A){var C=function(){try{A.apply(this,arguments)}catch(F){_.Hi(F)}};
g.set(A,C);e.call(this,u,x,C)};
var k=Polymer.Base._unlisten;Polymer.Base._unlisten=function(u,x,A){k.call(this,u,x,g.get(A))}}if(Polymer.Async){var m=Polymer.Async,n=m._atEndOfMicrotask;
m._atEndOfMicrotask=function(){try{n.apply(m,arguments)}catch(u){_.Hi(u)}}}if(Polymer.RenderStatus){var r=Polymer.RenderStatus,t=r.afterNextRender;
r.afterNextRender=function(u,x,A){t.call(r,u,function(){try{x.apply(this,arguments)}catch(C){_.Hi(C)}},A)}}eIa=!0}};
_.hIa=function(a){var b=a?_.gj(a):"";if(b){if(b.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(b.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(b.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(b.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(b.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(b.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";b=b.toLowerCase();if(b==="/")return"home";if(b===
"/channel_memberships")return"channel-memberships-shopfront";if(b.indexOf("/feed/trending")===0)return"trending";if(b.indexOf("/feed/explore")===0)return"explore";if(b.indexOf("/live")===0)return"live";if(b.indexOf("/results")===0)return"search";if(b.indexOf("/sports")===0)return"sports";if(b.indexOf("/fashion")===0||b.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(b))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(b))return"learning";
if(b.indexOf("/channel/")===0||b.indexOf("/user/")===0||b.indexOf("/gaming")===0||b.indexOf("/post/")===0)return"channel";if(gIa(a))return"show";if(b==="/playlist"||b.indexOf("/playlist/")===0||b==="/view_play_list"||b.indexOf("/view_play_list/")===0||b.indexOf("/show/")===0)return"playlist";if(b==="/feed/history"||b.indexOf("/feed/history/")===0)return"history";if(b==="/new")return"labs";if(b==="/feed/subscriptions")return"subscriptions";if(b.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(b==="/history_controls")return"standalone";if(b.indexOf("/account")===0||b==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(b.indexOf("/paid_memberships")===0||b.indexOf("/refund")===0||b.indexOf("/purchases")===0||b.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(b.indexOf("/product")===0)return"yts-products";if(b.indexOf("/premium")===0||b.indexOf("/musicpremium")===0)return b.indexOf("/premium/offers")===0||b.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(b===
"/cart/checkout"||b==="/cart")return"ypc-checkout";if(b.indexOf("/feed/downloads")===0||b.indexOf("/redeem")===0||b.indexOf("/reporthistory")===0)return"browse";if(b.indexOf("/hashtag")===0)return"hashtag-landing-page";if(b.indexOf("/handle")===0)return"handle";if(b.indexOf("/source")===0)return"audio-pivot";if(b.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(b.indexOf("/playables")===0)return"playables";if(b.indexOf("/create/live/join")===0)return"open-in-app";if(b.indexOf("/shorts")===
0)return"shorts";if(b.indexOf("/feed/channels")===0)return"subscriptions-channels";(b=a?_.gj(a):"")&&b.indexOf("/watch")===0&&_.w("web_watch_enable_learning_journey")?(a=_.Oi(a),a=!!a.list&&a.list.indexOf("LJPP")===0):a=!1;if(a)return"learning-journey-watch"}};
gIa=function(a){var b=a?_.gj(a):"";if(!b)return!1;b=b.toLowerCase();return b.indexOf("/show/")===0||b.indexOf("/playlist")===0&&(a=_.Oi(a),a.list&&a.list.indexOf("EL")===0)?!0:!1};
sq=function(a){var b="unknown",c;var d=((c=_.y(a==null?void 0:a.commandMetadata,_.co))==null?void 0:c.webPageType)||"";d?(c=d.toLowerCase(),c.startsWith("web_page_type_")&&(c=c.slice(14))):c=d;c&&iIa[c.toUpperCase()]?b=iIa[c.toUpperCase()]:_.y(a,_.oq)||_.y(a,jIa)?b="browse":_.y(a,_.rq)?b="search":_.y(a,_.Un)&&(b="watch");b==="unknown"&&_.Dl(Error("Mf`"+JSON.stringify({clickTrackingParams:a==null?void 0:a.clickTrackingParams,commandMetadata:a==null?void 0:a.commandMetadata,allEndpointKeys:Object.keys(a||
[])})));return b};
_.tq=function(a){if(!_.kIa||a)_.kIa=_.sf();return _.kIa};
_.lIa=function(a){return!!_.y(a,_.Un)||!!_.y(a,_.uq)&&_.w("kevlar_enable_shorts_prefetch")};
_.mIa=function(a,b){a=_.y(a,_.Un)||_.y(a,_.uq);return"v"+a.videoId+(a.playlistId?"-pl"+a.playlistId:"")+(b?"-an1":"")+(a.params?"-pr"+a.params:"")};
oIa=function(a){var b=_.$i("web_pbj_log_warning_rate",0);b=b>0&&Math.random()<b;if(!_.y(a,_.uq))return b&&_.Dl(Error("Pf")),!1;var c;return _.w("shorts_controller_retrieve_seedless_sequence_v2")&&((c=_.y(a,_.uq))==null?void 0:c.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:nIa(a)?!0:(b&&_.Dl(Error("Qf")),!1)};
nIa=function(a){var b=(_.y(a,_.Un)||_.y(a,_.uq)).videoId;if(!b||!pIa.test(b))return!1;var c;return(a=(c=_.y(a.commandMetadata,_.co))==null?void 0:c.url)&&(a.includes(b)||a.startsWith("/clip"))?!0:!1};
_.rIa=function(){var a=_.yo();return a.getFlag(192)?a.getFlag(190):!(_.w("web_watch_cinematics_disabled_by_default")||_.w("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&qIa())};
_.vq=function(a,b,c){var d={};d.currentUrl=b;d.vis=a.vis!==void 0?a.vis:0;d.splay=!1;b=_.yo();d.autoCaptionsDefaultOn=b.getFlag(66);b.getFlag(141)?b.getFlag(140)?d.autonavState="STATE_OFF":d.autonavState="STATE_ON":d.autonavState="STATE_NONE";d.html5Preference="HTML5_PREF_WANTS";isNaN(_.Fi("STS"))||(d.signatureTimestamp=_.Fi("STS"));a.autonav&&(d.autoplay=!0,d.autonav=!0);a.mutedAutoplay&&(d.autoplay=!0,d.mutedAutoplay=!0);a.inlinePlayback&&(d.autoplay=!0,d.autonav=!1,d.isInlineUnmutedPlayback=!!a.inlineUnmuted);
d.referer=c;d.lactMilliseconds=a.lact!==void 0?a.lact.toString():"-1";_.w("enable_unknown_lact_fix_on_html5")&&d.lactMilliseconds==="-1"&&_.Dl(new _.qj("Unknown LACT is set in playbackContext.",{"lact in tempData":a.lact||"undefined",autonav:a.autonav||"undefined"}));a={};b.getFlag(194)&&(a.hasShownAmbientMode=!0);b.getFlag(192)&&(a.hasToggledOffAmbientMode=!0);_.rIa()&&(a.watchAmbientModeEnabled=!0);d.watchAmbientModeContext=a;return d};
sIa=function(a){var b={},c=a.pbis||0;c&&(b.playbackBeginsInSeconds=c);a.prefetch_reason&&a.prefetch_reason==="hc_pbis"&&(b.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return b};
_.tIa=function(a){var b=new wq(_.Fi("ONE_PICK_URL",""));b.urlParamMap_.set("hostId",a);(a=_.Fi("GAPI_LOCALE"))&&b.urlParamMap_.set("hl",a);(a=_.Fi("SESSION_INDEX"))&&b.urlParamMap_.set("authuser",a);(a=_.Fi("DELEGATED_SESSION_ID"))&&b.urlParamMap_.set("groupId",a);return b};
vIa=function(){var a=_.v(),b=a.resolve(_.xq);a=a.resolve(_.yq);return new uIa(b,a)};
xIa=function(a){if(window.IntersectionObserver)return new wIa(a,400);throw new TypeError("Zf");};
zIa=function(){var a=Hammer.TouchAction,b=a.prototype.preventDefaults;a.prototype.preventDefaults=function(c){var d=this.actions.indexOf("pan-down")>-1;if(!d)return b.call(this,c);if(!yIa){var e=c.srcEvent;c=c.direction;var g;if((g=this.manager)==null?0:g.session.prevented)e.preventDefault();else if(d&&c&Hammer.DIRECTION_DOWN)return this.preventSrc(e)}}};
AIa=function(a){if(!a||a.size===0)return Hammer.DIRECTION_ALL;if(a.size===2){if(a.has("up")&&a.has("down"))return Hammer.DIRECTION_VERTICAL;if(a.has("right")&&a.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(a.size===1){if(a.has("up"))return Hammer.DIRECTION_UP;if(a.has("down"))return Hammer.DIRECTION_DOWN;if(a.has("right"))return Hammer.DIRECTION_RIGHT;if(a.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.CIa=function(){return BIa?Promise.resolve(BIa):new Promise(function(a,b){var c=self.indexedDB.open("swpushnotificationsdb");c.onerror=b;c.onsuccess=function(){var d=c.result;if(d.objectStoreNames.contains("swpushnotificationsstore"))BIa=d,a(BIa);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.CIa()};
c.onupgradeneeded=DIa})};
DIa=function(a){a=a.target.result;a.objectStoreNames.contains("swpushnotificationsstore")&&a.deleteObjectStore("swpushnotificationsstore");a.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
FIa=function(a){var b=EIa(),c;return _.l(function(d){switch(d.nextAddress){case 1:return _.pe(d,2),_.p(d,a.match(b,{cacheName:"yt-appshell-assets"}),4);case 4:c=d.yieldResult;_.Jj(d,3);break;case 2:_.te(d);case 3:return d.return(c)}})};
EIa=function(){var a=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?GIa.registration.scope:HIa;a.endsWith("/")&&(a=a.slice(0,-1));return a+"/app_shell_home"};
IIa=function(a){a.map(function(b){return b.source}).join("|")};
_.JIa=function(a){return _.l(function(b){return b.return(FIa(a))})};
KIa=function(){var a=window.caches,b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,_.JIa(a),2);b=c.yieldResult;return c.return(!!b)})};
RIa=function(){_.l(function(a){if(a.nextAddress==1){if(LIa)return a.jumpTo(0);LIa=!0;if(_.w("enable_system_health_primes_monitoring"))return _.ej(MIa,3E4),NIa(),a.return();if(!(Math.random()<_.$i("web_system_health_fraction")))return a.jumpTo(0);OIa={heightPixels:screen.height,widthPixels:screen.width};zq&&!isNaN(zq.jsHeapSizeLimit)&&(OIa.memoryTotalKbytes=String(Math.round(zq.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(OIa.devicePixelRatio=window.devicePixelRatio);return _.p(a,PIa(),4)}_.ej(MIa,
3E4);return _.p(a,QIa(),0)})};
PIa=function(){return _.l(function(a){if(a.nextAddress==1)return Aq.intersectionObserverPresent="IntersectionObserver"in window,Aq.serviceWorkerPresent="serviceWorker"in navigator,Aq.webSharePresent="share"in navigator,Aq.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,Aq.cacheStoragePresent="caches"in window,Aq.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,Aq.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
Aq.webkitTemporaryStoragePresent="webkitTemporaryStorage"in Bq&&Bq.webkitTemporaryStorage&&"queryUsageAndQuota"in Bq.webkitTemporaryStorage,Aq.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.p(a,Gpa(),2);Aq.indexedDbPresent=a.yieldResult;Aq.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;Aq.broadcastChannelPresent="BroadcastChannel"in window;Aq.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(Aq.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,Aq.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.ue(a)})};
MIa=function(){var a=9E4+Math.random()*2E3;_.Yk()>a||(_.w("enable_system_health_primes_monitoring")?NIa():QIa())};
QIa=function(){var a;return _.l(function(b){if(b.nextAddress==1)return _.p(b,SIa(),2);a=b.yieldResult;_.xl("systemHealthCaptured",a);_.ue(b)})};
NIa=function(){var a={metric:{}},b=TIa();b.networkEvents.length&&(a.metric.networkEvents=UIa(b));_.xl("systemHealthCaptured",a)};
SIa=function(){var a,b,c,d,e,g,k,m,n,r;return _.l(function(t){switch(t.nextAddress){case 1:a={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};b=window.screen;_.w("enable_is_extended_monitoring")&&b&&"isExtended"in b&&(a.isExtended=!!b.isExtended);c={metric:{staticContext:OIa,dynamicContext:a,webMetric:VIa,webApiSupport:Aq}};
if(d=_.En())c.csn=d;zq&&(c.metric.webMetric.currentHeapKbytes=Math.round(zq.usedJSHeapSize/1E3));window.matchMedia&&(c.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,c.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,c.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in Bq&&typeof Bq.getBattery==="function")){t.jumpTo(2);break}return _.p(t,Bq.getBattery(),3);case 3:if(e=
t.yieldResult)c.metric.dynamicContext.chargingStatus=e.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(c.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(Aq.storageEstimatePresent)return _.p(t,navigator.storage.estimate(),8);if(!Aq.webkitTemporaryStoragePresent){t.jumpTo(5);break}return _.p(t,WIa(),7);case 7:g=t.yieldResult;t.jumpTo(5);break;case 8:g=t.yieldResult;case 5:return c.metric.dynamicContext.deviceStorageQuotaMbytes=((k=g)==null?0:k.quota)?String(Math.round(g.quota/
1048576/10)*10):"-1",c.metric.dynamicContext.deviceStorageUsageMbytes=((m=g)==null?0:m.usage)?String(Math.round(g.usage/1048576/10)*10):"-1",n=c.metric.dynamicContext,_.p(t,KIa(),9);case 9:return n.hasAppShell=t.yieldResult,r=TIa(),r.networkEvents.length&&(c.metric.networkEvents=UIa(r)),t.return(c)}})};
WIa=function(){return new Promise(function(a){var b;Aq.webkitTemporaryStoragePresent&&(b=Bq.webkitTemporaryStorage)!=null&&b.queryUsageAndQuota?Bq.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})}):a(void 0)})};
_.Cq=function(a){a&=16777215;a=[(a&16711680)>>16,(a&65280)>>8,a&255];return XIa(a[0],a[1],a[2])};
_.Dq=function(a){a=[(a&16711680)>>>16,(a&65280)>>>8,a&255,(a&4278190080)>>>24];var b=_.YIa(a,function(c){return c==(c&255)});
a[3]=(a[3]/255).toFixed(3);if(!b)throw Error("$f`"+a.join(","));return"rgba("+a.join(",")+")"};
_.ZIa=function(a){return[(a&16711680)>>>16,(a&65280)>>>8,a&255]};
_.$Ia=function(a){a=a.map(function(b){b/=255;return b<=.03928?b/12.92:Math.pow((b+.05)/1.05,2.4)});
return a[0]*.2126+a[1]*.7152+a[2]*.0722};
Eq=function(a,b){a=_.ZIa(a);return"rgba("+a[0]+", "+a[1]+", "+a[2]+", "+b+")"};
_.aJa=function(){try{return!!self.localStorage}catch(a){return!1}};
eJa=function(){if(bJa())_.Dl(Error("ag"));else{var a=document.createElement("iframe");a.style.display="none";var b=b===void 0?window.location.href:b;var c=_.Ak(_.Fi("PERSIST_IDENTITY_IFRAME_URL"));b=c?c:(new URL(b)).host.indexOf("studio")===0?_.ef(cJa,"persist_identity"):_.ef(dJa,"persist_identity");_.Oda(a,1,b);a.id="persist_identity";var d;(d=document.body)==null||d.appendChild(a)}};
bJa=function(){var a=fJa;a||(a=document.querySelector("#persist_identity"));return a};
gJa=function(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(b){a=!0}return(_.Fi("INNERTUBE_CLIENT_NAME")==="WEB"||_.Fi("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&a};
hJa=function(a,b){if(!gJa())return!1;b||(b=_.Fi("LOGIN_INFO"));return b?(a.session_logininfo=b,!0):!1};
jJa=function(a,b){a=a===void 0?!1:a;if((b===void 0||!b)&&iJa!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.Gi("LOG_STICKINESS",!1)){b=_.En();var c=_.Dn(),d={identityStickinessData:{initialState:iJa}};b&&c&&_.Zo(b,c,d)}if(b=bJa())if(c=b.src?(new URL(b.src)).origin:"*",a){var e;(e=b.contentWindow)==null||e.postMessage({action:"clear"},c)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(a=window.sessionStorage.getItem("session_logininfo"))){var g;(g=b.contentWindow)==null||g.postMessage({loginInfo:a},c)}};
_.Fq=function(a){a=a===void 0?!0:a;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.Ei("LOGIN_INFO",""),a&&window.sessionStorage.setItem("from_switch_account","1"),jJa(!0,a)}catch(b){}};
kJa=function(a){a&&(a.startsWith("https://accounts.google.com/AddSession")?_.Fq():a.startsWith("https://accounts.google.com/ServiceLogin")?_.Fq():a.startsWith("https://myaccount.google.com")&&a.endsWith("/youtubeoptions")&&_.Fq())};
Gq=function(a,b){kJa(a);if(_.Gi("LOGGED_IN",!0)&&gJa()){var c=WBa(a);c==null&&(c={});hJa(c,b)&&_.ao(a,c)}};
lJa=function(){function a(b){for(b=b.target;b&&b.nodeName!=="A";)if(b=b.parentNode,!(b&&b instanceof HTMLElement))return;if(b&&!b.hasAttribute("download")&&b.getAttribute("rel")!=="external"&&b.href)return b.href}
document.addEventListener("mousedown",function(b){b.button!==0&&(b=a(b))&&Gq(b)});
document.addEventListener("click",function(b){(b=a(b))&&Gq(b)})};
oJa=function(){var a=new mJa;try{if(_.Gi("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(m){a.increment(5,!1);return}if(_.Fi("LOGIN_INFO")){var b=nJa?nJa:window.location;_.Fi("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&eJa();var c=WBa(b.href);c==null&&(c={});var d=c.session_logininfo,e=Number(window.sessionStorage.getItem("stickiness_reload")),g=d===_.Fi("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
e>=2||g)e>=2?a.increment(2,g):g?a.increment(7,g):window.sessionStorage.getItem("session_logininfo")||(a.increment(3,g),iJa="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.Fi("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.Fi("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))a.increment(4,g),window.sessionStorage.removeItem("stickiness_reload");
else if(e<2){window.sessionStorage.setItem("stickiness_reload",String(e+1));var k=b.href;k=_.bo(k,"sttick");Gq(k,window.sessionStorage.getItem("session_logininfo"));k=_.Pi(k,{sttick:e});a.increment(e,g);_.Vda(b,k)}}else a.increment(6,!1)}else _.Fq(!1)}catch(m){}};
_.Hq=function(a,b,c,d,e){b=b===void 0?{}:b;c=c===void 0?"":c;d=d===void 0?window:d;a=_.Qi(a,b);Gq(a);c=_.Id(a+c,e);_.Vda(d.location,c)};
pJa=function(a){if(a.urlEndpoint){if(a=_.Oi(a.urlEndpoint.url),a.adurl)return Wi(a.adurl)}else if(a.watchEndpoint)return"//www.youtube.com/watch?v="+a.watchEndpoint.videoId;return null};
qJa=function(a){if(!a||!a.reportingPings)return null;var b={};a.reportingPings.forEach(function(c){c.pingType in b?b[c.pingType].push(c.url):b[c.pingType]=[c.url]});
return{adpings:hoa(b)}};
_.Jq=function(a){a=a===void 0?!1:a;var b=_.yo(),c="USER_INTERFACE_THEME_LIGHT";b.getFlag(165)?c="USER_INTERFACE_THEME_DARK":b.getFlag(174)?c="USER_INTERFACE_THEME_LIGHT":_.Iq()&&(c="USER_INTERFACE_THEME_DARK");return a?c:rJa()||c};
_.sJa=function(){return!_.w("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.Iq=function(){return _.sJa()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.Kq=function(){var a=_.yo();return _.sJa()&&!a.getFlag(165)&&!a.getFlag(174)};
rJa=function(){var a=a===void 0?window.location.href:a;if(_.w("kevlar_disable_theme_param"))return null;var b=_.gj(a);if(_.tJa(b))return"USER_INTERFACE_THEME_DARK";try{var c=_.Oi(a).theme;return uJa.get(c)||null}catch(d){}return null};
_.tJa=function(a){return _.w("enable_dark_theme_only_on_shorts")?!(a==null||!a.startsWith("/shorts/")):!1};
_.xJa=function(a,b,c,d,e){b=b===void 0?!1:b;c=c===void 0?!1:c;var g=_.Fi("INNERTUBE_CONTEXT");if(!g)return _.Bl(Error("eg")),{};g=(0,_.Cf.unsafeClone)(g);_.w("web_no_tracking_params_in_shell_killswitch")||delete g.clickTracking;g.client||(g.client={});var k=g.client;k.clientName==="MWEB"&&k.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(k.clientFormFactor=_.Fi("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");k.screenWidthPoints=window.innerWidth;k.screenHeightPoints=window.innerHeight;k.screenPixelDensity=
Math.round(window.devicePixelRatio||1);k.screenDensityFloat=window.devicePixelRatio||1;k.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());k.userInterfaceTheme=_.Jq();if(!b){var m=_.apa();m&&(k.connectionType=m);_.w("web_log_effective_connection_type")&&(m=cpa())&&(g.client.effectiveConnectionType=m)}var n;if(_.w("web_log_memory_total_kbytes")&&((n=_.ja.navigator)==null?0:n.deviceMemory)){var r;n=(r=_.ja.navigator)==null?void 0:r.deviceMemory;g.client.memoryTotalKbytes=""+n*1E6}b&&d&&!_.w("web_it_context_set_original_url_ks")&&
(k.originalUrl=vJa(_.ja.location.href,d).toString());_.w("web_gcf_hashes_innertube")&&(m=nqa())&&(r=m.coldConfigData,n=m.coldHashData,m=m.hotHashData,g.client.configInfo=g.client.configInfo||{},r&&(g.client.configInfo.coldConfigData=r),n&&(g.client.configInfo.coldHashData=n),m&&(g.client.configInfo.hotHashData=m));r=_.Oi(_.ja.location.href);!_.w("web_populate_internal_geo_killswitch")&&r.internalcountrycode&&(k.internalGeo=r.internalcountrycode);!_.w("web_populate_client_screen_killswitch")&&e&&(k.clientScreen=
e);k.clientName==="MWEB"||k.clientName==="WEB"?(k.mainAppWebInfo={graftUrl:d||_.ja.location.href},_.w("kevlar_woffle")&&_.Lq.instance&&(d=_.Lq.instance,k.mainAppWebInfo.pwaInstallabilityStatus=!d.appInstalledEventFired&&d.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),k.mainAppWebInfo.webDisplayMode=fqa(),k.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):k.clientName==="TVHTML5"&&(!_.w("web_lr_app_quality_killswitch")&&
(d=_.Fi("LIVING_ROOM_APP_QUALITY"))&&(k.tvAppInfo=Object.assign(k.tvAppInfo||{},{appQuality:d})),d=_.Fi("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(k.tvAppInfo=Object.assign(k.tvAppInfo||{},{certificationScope:d}));!_.w("web_populate_time_zone_itc_killswitch")&&(d=Zoa())&&(k.timeZone=d);(d=toa())?k.experimentsToken=d:delete k.experimentsToken;k=uoa();d=_.wJa();d=(0,_.Cf.getValues)(d.tokenJars);g.request=Object.assign({},g.request,{internalExperimentFlags:k,consistencyTokenJars:d});!_.w("web_prequest_context_killswitch")&&
(k=_.Fi("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(g.request.externalPrequestContext=k);d=_.yo();k=d.getFlag(58);d=d.get("gsml","");g.user=Object.assign({},g.user);k&&(g.user.enableSafetyMode=k);d&&(g.user.lockedSafetyMode=!0);_.w("warm_op_csn_cleanup")?c&&(b=_.En())&&(g.clientScreenNonce=b):!b&&(b=_.En())&&(g.clientScreenNonce=b);a&&(g.clickTracking={clickTrackingParams:a});if(a=_.Ji("yt.mdx.remote.remoteClient_"))g.remoteClient=a;_.Mq.getInstance().setLocationOnInnerTubeContext(g);try{var t=Eoa(),
u=t.bid;delete t.bid;g.adSignalsInfo={params:[],bid:u};for(var x=_.h(Object.entries(t)),A=x.next();!A.done;A=x.next()){var C=_.h(A.value),F=C.next().value,J=C.next().value;t=F;u=J;a=void 0;(a=g.adSignalsInfo.params)==null||a.push({key:t,value:""+u})}var I,R;if(((I=g.client)==null?void 0:I.clientName)==="TVHTML5"||((R=g.client)==null?void 0:R.clientName)==="TVHTML5_UNPLUGGED"){var da=_.Fi("INNERTUBE_CONTEXT");da.adSignalsInfo&&(g.adSignalsInfo.advertisingId=da.adSignalsInfo.advertisingId,g.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",g.adSignalsInfo.limitAdTracking=da.adSignalsInfo.limitAdTracking)}}catch(V){_.Bl(V)}return g};
_.Nq=function(){return{isShellLoad:_.Gi("IS_SHELL_LOAD",!1)}};
zJa=function(){navigator.serviceWorker.getRegistrations().then(function(a){a.forEach(yJa)})};
yJa=function(a){a&&_.AJa(BJa,a.scope)};
_.AJa=function(a,b){b={scope:b||_.aj("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.zd(a),b)};
Oq=function(a,b,c,d){if(b&&b.serializedYpcCujLoggingParams){if(c){var e={};e.transactionErrorType=c;d&&(e.errorMessage=d);b.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:e}}}c={};c.ypcCujContext=b;a=_.iq("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",a,c);_.jq(_.kq(),a,"FLOW_TYPE_YPC_ACQUISITION")}};
_.CJa=function(a,b,c,d){var e={};e.serializedTransactionFlowLoggingParams=b;c&&(e.errorType=c);d&&(e.errorMessage=d);_.xl(a,e);_.Al()};
_.DJa=function(a){a&&_.CJa("transactionFlowStarted",a)};
_.EJa=function(a){a&&_.CJa("transactionFlowCancelled",a)};
_.Pq=function(a,b,c){b&&_.CJa("transactionFlowFailed",b,a,c)};
_.Qq=function(){this.megabloxUrl_=null};
_.Rq=function(a){try{var b=FJa==null?void 0:FJa.composedPath(a)}catch(c){b=a.composedPath?a.composedPath():[]}return b&&b.length>0?b:a.composedPath?a.composedPath():[]};
_.Sq=function(a){return _.Rq(a)[0]};
_.Tq=function(a){if(!(a instanceof Element))return null;a=a.classList?Array.from(a.classList):void 0;if(!a)return null;var b=a.indexOf("style-scope");return b>-1&&b+1<a.length?a[b+1]:null};
Uq=function(a){if(!(a instanceof HTMLElement))return null;var b=a&&(a.$$||a.polymerController)?a.tagName.toLowerCase():null;return b?b:_.Tq(a)};
GJa=function(a,b){return a.replace(/[^a-z]*[^\s]+/g,function(c){return c+".style-scope."+b})};
HJa=function(a,b){return b?a.split(",").map(function(c){return GJa(c.trim(),b)}).join(", "):a};
_.Vq=function(a){var b,c,d,e;return(e=(d=(c=(b=a.root)!=null?b:a.shadowRoot)!=null?c:a.__shady_native_shadowRoot)!=null?d:a.__shady_shadowRoot)!=null?e:a};
Wq=function(a){return a instanceof ShadowRoot?ShadowRoot:a instanceof DocumentFragment?DocumentFragment:a instanceof Document?Document:HTMLElement};
IJa=function(a){var b,c,d;return(d=(c=(b=a.parentElement)!=null?b:a.__shady_native_parentElement)!=null?c:a.__shady_parentElement)!=null?d:null};
JJa=function(a){var b,c,d;return(d=(c=(b=a.parentNode)!=null?b:a.__shady_native_parentNode)!=null?c:a.__shady_parentNode)!=null?d:null};
KJa=function(a){var b,c,d;return(d=(c=(b=a.__shady_parentNode)!=null?b:a.__shady_native_parentNode)!=null?c:a.parentNode)!=null?d:null};
LJa=function(a){var b,c;return(c=(b=JJa(a))!=null?b:a.host)!=null?c:null};
MJa=function(a){var b,c,d;return(d=(c=(b=a.nextSibling)!=null?b:a.__shady_native_nextSibling)!=null?c:a.__shady_nextSibling)!=null?d:null};
NJa=function(a){var b,c,d;return(d=(c=(b=a.previousSibling)!=null?b:a.__shady_native_previousSibling)!=null?c:a.__shady_previousSibling)!=null?d:null};
OJa=function(a){var b,c,d;return(d=(c=(b=a.nextElementSibling)!=null?b:a.__shady_native_nextElementSibling)!=null?c:a.__shady_nextElementSibling)!=null?d:null};
PJa=function(a){var b,c,d;return(d=(c=(b=a.previousElementSibling)!=null?b:a.__shady_native_previousElementSibling)!=null?c:a.__shady_previousElementSibling)!=null?d:null};
QJa=function(a){var b,c,d;return new Set([].concat(_.De((b=a.children)!=null?b:[]),_.De((c=a.__shady_native_children)!=null?c:[]),_.De((d=a.__shady_children)!=null?d:[])))};
RJa=function(a){var b,c,d;return new Set([].concat(_.De((b=a.childNodes)!=null?b:[]),_.De((c=a.__shady_native_childNodes)!=null?c:[]),_.De((d=a.__shady_childNodes)!=null?d:[])))};
SJa=function(a){if(!a)return null;var b=_.Tq(a);if(!b){var c;return(c=Node.prototype.getRootNode)==null?void 0:c.call(a)}b=b.toUpperCase();for(a=IJa(a);a&&a.tagName!==b;)a=IJa(a);return a?_.Vq(a):null};
TJa=function(a){for(;a&&!(a instanceof HTMLElement);)a=LJa(a);return a};
UJa=function(a){var b=TJa(a);return a===b?_.Tq(a):b?Uq(b):null};
VJa=function(a){return(a=TJa(a))?Uq(a):null};
WJa=function(a){if(a instanceof Comment)return!1;if(a instanceof Text){var b,c;if(((c=(b=a.textContent)==null?void 0:b.trim())!=null?c:"")==="")return!1}return!0};
Xq=function(a,b,c){var d=b(a);for(c=c===void 0?VJa(a):c;d&&(UJa(d)!==c||!WJa(d));)a=d,d=b(a);return d};
XJa=function(a,b,c){if(!b)return null;a=VJa(a);return UJa(b)===a&&WJa(b)?b:Xq(b,c,a)};
YJa=function(a){return Xq(a,KJa,_.Tq(a))};
ZJa=function(a){return Xq(a,OJa)};
$Ja=function(a){return Xq(a,MJa)};
aKa=function(a){return Xq(a,PJa)};
bKa=function(a){return Xq(a,NJa)};
cKa=function(a){return XJa(a,a.firstChild||a.__shady_native_firstChild||a.__shady_firstChild||null,MJa)};
dKa=function(a){var b,c,d;var e=(d=(c=(b=a.firstElementChild)!=null?b:a.__shady_native_firstElementChild)!=null?c:a.__shady_firstElementChild)!=null?d:null;return XJa(a,e,OJa)};
eKa=function(a){var b,c,d;var e=(d=(c=(b=a.lastChild)!=null?b:a.__shady_native_lastChild)!=null?c:a.__shady_lastChild)!=null?d:null;return XJa(a,e,NJa)};
fKa=function(a){var b,c,d;var e=(d=(c=(b=a.lastElementChild)!=null?b:a.__shady_native_lastElementChild)!=null?c:a.__shady_lastElementChild)!=null?d:null;return XJa(a,e,PJa)};
gKa=function(a){var b=VJa(a);return Array.from(RJa(a)).filter(function(c){return UJa(c)===b})};
hKa=function(a){var b=Uq(a);return Array.from(QJa(a)).filter(function(c){return _.Tq(c)===b})};
_.Yq=function(a,b,c){if(a instanceof HTMLElement&&_.Tq(a)===c){var d=Array.from(a.classList).indexOf("style-scope");if(d===-1)a.classList.add("style-scope"),a.classList.add(b);else if(!(d+1>=a.classList.length)){d=a.classList[d+1];var e,g;a==null||(e=a.classList)==null||(g=e.replace)==null||g.call(e,d,b)}}if(a instanceof HTMLElement||a instanceof DocumentFragment)for(e=_.h(QJa(a)),g=e.next();!g.done;g=e.next())_.Yq(g.value,b,c);return a};
Zq=function(a,b){if(a instanceof HTMLElement&&_.Tq(a)===b){var c=Array.from(a.classList).indexOf("style-scope");c===-1||c+1>=a.classList.length||a.classList.remove("style-scope",a.classList[c+1])}if(a instanceof HTMLElement||a instanceof DocumentFragment){c=_.h(a.children);for(var d=c.next();!d.done;d=c.next())Zq(d.value,b)}return a};
_.iKa=function(a,b){return Wq(a).prototype.appendChild.call(a,b)};
jKa=function(a,b){if(a===b)return!0;a=RJa(a);return Array.from(a).some(function(c){return jKa(c,b)})};
_.E=function(a,b){if(a instanceof $q)return a;(b==null?0:b.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(a,"ownerDocument")&&Object.defineProperty(a,"ownerDocument",{get:function(){return window.document}});
return new $q(a)};
lKa=function(){var a=$q.prototype,b=[].concat(_.De(kKa?[]:["getRootNode"]),["setAttribute","removeAttribute"]);b=_.h(b);for(var c=b.next(),d={};!c.done;d={method$jscomp$48:void 0},c=b.next())d.method$jscomp$48=c.value,a[d.method$jscomp$48]=function(e){return function(){return this.host[e.method$jscomp$48].apply(this.host,arguments)}}(d)};
nKa=function(){var a=$q.prototype,b=[].concat(_.De(kKa?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.De(mKa?[]:["querySelector","querySelectorAll"]));b=_.h(b);for(var c=b.next(),d={};!c.done;d={method$jscomp$49:void 0},c=b.next())d.method$jscomp$49=c.value,a[d.method$jscomp$49]=function(e){return function(){return this.root[e.method$jscomp$49].apply(this.root,arguments)}}(d)};
qKa=function(){var a=$q.prototype,b=[].concat(_.De(oKa?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.De(pKa?[]:["parentNode"]));b=_.h(b);for(var c=b.next(),d={};!c.done;d={prop$jscomp$62:void 0},c=b.next())d.prop$jscomp$62=c.value,Object.defineProperty(a,d.prop$jscomp$62,{get:function(e){return function(){return this.host[e.prop$jscomp$62]}}(d),
configurable:!0})};
tKa=function(){var a=$q.prototype,b=["activeElement"].concat(_.De(oKa?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.De(rKa?[]:["children"]),_.De(sKa?[]:["lastChild"]));b=_.h(b);for(var c=b.next(),d={};!c.done;d={prop$jscomp$63:void 0},c=b.next())d.prop$jscomp$63=c.value,Object.defineProperty(a,d.prop$jscomp$63,{get:function(e){return function(){return this.root[e.prop$jscomp$63]}}(d),
configurable:!0})};
uKa=function(){for(var a=$q.prototype,b=_.h(["innerHTML","textContent"]),c=b.next(),d={};!c.done;d={prop$jscomp$64:void 0},c=b.next())d.prop$jscomp$64=c.value,Object.defineProperty(a,d.prop$jscomp$64,{get:function(e){return function(){return this.root[e.prop$jscomp$64]}}(d),
set:function(e){return function(g){this.root[e.prop$jscomp$64]=g}}(d),
configurable:!0})};
vKa=function(a){var b=$q.prototype;a=_.h(Object.entries(a));for(var c=a.next(),d={};!c.done;d={fn$jscomp$359:void 0},c=a.next()){var e=_.h(c.value);c=e.next().value;e=e.next().value;d.fn$jscomp$359=e;b[c]=function(g){return function(){return g.fn$jscomp$359.apply(null,[this.host.node||this.host].concat(_.De(arguments)))}}(d)}};
xKa=function(){for(var a=$q.prototype,b=_.h(Object.entries(wKa)),c=b.next(),d={};!c.done;d={fn$jscomp$360:void 0},c=b.next()){var e=_.h(c.value);c=e.next().value;e=e.next().value;d.fn$jscomp$360=e;Object.defineProperty(a,c,{get:function(g){return function(){return g.fn$jscomp$360.apply(null,[this.host.node||this.host].concat(_.De(arguments)))}}(d),
configurable:!0})}};
_.ar=function(a){return a instanceof yKa||a instanceof Document?a:new yKa(a)};
zKa=function(){for(var a=yKa.prototype,b=_.h("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),c=b.next(),d={};!c.done;d={method$jscomp$50:void 0},c=b.next())d.method$jscomp$50=c.value,a[d.method$jscomp$50]=function(e){return function(){return HTMLElement.prototype[e.method$jscomp$50].call.apply(HTMLElement.prototype[e.method$jscomp$50],[this.node].concat(_.De(arguments)))}}(d)};
AKa=function(){for(var a=yKa.prototype,b=_.h("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),c=b.next(),d={};!c.done;d={prop$jscomp$65:void 0},c=b.next())d.prop$jscomp$65=c.value,Object.defineProperty(a,d.prop$jscomp$65,{get:function(e){return function(){var g;return(g=this.node["__shady_native_"+e.prop$jscomp$65])!=null?g:this.node[e.prop$jscomp$65]}}(d),
configurable:!0})};
_.br=function(a,b,c){c===void 0&&(c=!a.classList.contains(b));c?a.classList.add(b):a.classList.remove(b)};
_.cr=function(a,b,c){c===void 0&&(c=!a.hasAttribute(b));if(b==="class")throw Error("ig");c?_.ar(a).setAttribute(b,""):_.ar(a).removeAttribute(b)};
BKa=function(a){return(a.localName!=="slot"?[]:(0,_.er)(a).assignedNodes({flatten:!0})).filter(function(b){return b.nodeType===Node.ELEMENT_NODE})};
_.CKa=function(a){return(a=_.E(a).querySelector("slot"))&&a.localName==="slot"?BKa(a):[]};
_.fr=function(a,b){window.ShadyCSS&&window.ShadyCSS.styleSubtree(a,b)};
DKa=function(a,b){var c=b.bind(a);return function(d){c(d,d.detail)}};
_.gr=function(a,b){var c=EKa.get(a);c||(c=new WeakMap,EKa.set(a,c));if(c.has(b))return c.get(b);if(_.w("web_fi_listen_disable_bound_fn_helper")){var d=b.bind(a);a=function(e){d(e,e==null?void 0:e.detail)}}else a=DKa(a,b);
c.set(b,a);return a};
HKa=function(a,b){FKa(a);a.created[GKa].push(b)};
FKa=function(a){if(!a.created||!a.created[GKa]){var b=a.created,c=b?[b]:[];a.created=function(){for(var d=_.h(c),e=d.next();!e.done;e=d.next())e.value.apply(this)};
a.created[GKa]=c}};
IKa=function(a){return function(){var b=_.Kd.apply(0,arguments);return function(c,d,e){a.apply(null,_.De(b))(c,d,e)}}};
JKa=function(){return function(){var a=_.Kd.apply(0,arguments);return function(b,c,d){nya.apply(null,_.De(a))(b,c,d)}}};
_.H=function(a){return JKa()(a)};
_.K=function(){return IKa(rya).apply(null,_.De(_.Kd.apply(0,arguments)))};
_.M=function(a){return _.w("pbcm_fi_listen_decorators")?KKa(a):IKa(pya)(a)};
KKa=function(a){return function(b,c){HKa(b,function(){var d=this[c],e=_.w("web_fi_listen_disable_bound_fn_helper")?function(g){d(g,g.detail)}.bind(this):DKa(this,d);
LKa.has(a)?zm(this.hostElement,a,e):this.hostElement.addEventListener(a,e)})}};
_.N=function(){return IKa(qya).apply(null,_.De(_.Kd.apply(0,arguments)))};
_.O=function(a){a=a===void 0?{}:a;return IKa(oya)(a)};
_.hr=function(a){if(a.hostElement&&a!==a.hostElement){var b=_.wn(a.hostElement);b=a.renderIdom?b:b.shadowRoot}b||(a=a.root,b=a instanceof Node?_.wn(a):null);return b};
_.ir=function(a){return MKa?NKa(a):function(b,c){Object.defineProperty(b,c,{get:function(){var d;return(d=_.hr(this))==null?void 0:d.querySelector(a)},
enumerable:!0,configurable:!0})}};
NKa=function(a){return function(b,c){Object.defineProperty(b,c,{get:function(){var d,e=(d=_.E(this.hostElement))==null?void 0:d.querySelector(a);if(e)return e;var g;d=(g=this.is)!=null?g:"yt-undefined-target";OKa!=null||(OKa=Date.now());(Ln(d)+OKa)%100>_.$i("pbcm_fi_query_decorators_fallback_logging_pct")||(PKa!=null||(PKa=new QKa),RKa.has(d)||(RKa.add(d),PKa.increment(d)));var k;return(k=_.hr(this))==null?void 0:k.querySelector(a)},
enumerable:!0,configurable:!0})}};
_.jr=function(a){return MKa?SKa(a):function(b,c){Object.defineProperty(b,c,{get:function(){var d;return(d=_.hr(this))==null?void 0:d.querySelectorAll(a)},
enumerable:!0,configurable:!0})}};
SKa=function(a){return function(b,c){Object.defineProperty(b,c,{get:function(){var d,e=(d=_.E(this.hostElement))==null?void 0:d.querySelectorAll(a);if(e==null?0:e.length)return e;var g;return(g=_.hr(this))==null?void 0:g.querySelectorAll(a)},
enumerable:!0,configurable:!0})}};
TKa=function(a){return function(b){if(![_.Vm,_.P].includes(Object.getPrototypeOf(b.prototype).constructor))throw Error("jg");fya(Object.assign({},typeof a!=="string"?a:{is:a,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(b)}};
_.lr=function(){var a=a===void 0?{}:a;return function(b){if(![Wm,_.kr].includes(Object.getPrototypeOf(b.prototype).constructor))throw Error("kg");gya(Object.assign({},a,{disableInheritanceCheck:!0}))(b)}};
VKa=function(a,b){UKa[a]!=null||(UKa[a]=new Set);UKa[a].add(b)};
_.mr=function(){var a=_.N.apply(null,_.De(_.Kd.apply(0,arguments)));return function(b,c){VKa(b.is,c);a(b,c)}};
pr=function(a,b,c){if(nr(a)&&!WKa.has(b)){b=b.replace(/^JSC\$[\d]+_/,"");b=b.replace(/\.\d+(\.|$)/g,function(g,k){return".#"+k});
or[a]!=null||(or[a]={});var d,e;(d=or[a])[e=b]!=null||(d[e]=new Set);or[a][b].has(c)||(or[a][b].add(c),_.xl("polymerPropertyAccessEvent",{componentName:a,propertyName:b,accessType:c}))}};
XKa=function(){return _.w("polymer_property_access_logging_debug")||_.w("polymer_enable_property_access_logging")};
nr=function(a){if(_.w("polymer_property_access_logging_debug"))return!0;if(!_.w("polymer_enable_property_access_logging"))return!1;YKa||(YKa=Date.now());return(Ln(a)+YKa)%100<_.$i("polymer_property_access_logging_percent")};
ZKa=function(a,b){return nr(b)&&a.hostElement.loggingStatus?new Proxy(a,{get:function(c,d,e){if(c.hostElement.loggingStatus.bypassProxyController)return c[d];c.hostElement.loggingStatus.isExternalGet=!0;var g=c[d];c.hostElement.loggingStatus.isExternalGet=!1;if(g instanceof Function)return function(){var k=_.Kd.apply(0,arguments);try{return c.hostElement.loggingStatus.currentExternalCall=d,pr(b,d,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),g.apply(this===e?c:this,k)}finally{c.hostElement.loggingStatus.currentExternalCall=
void 0}};
pr(b,d,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return g},
set:function(c,d,e){if(c.hostElement.loggingStatus.bypassProxyController)return c[d]=e,!0;c.hostElement.loggingStatus.isRendererStamper?pr(b,d,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):c.hostElement.loggingStatus.isDeclarativeExternal||pr(b,d,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{c.hostElement.loggingStatus.currentExternalSet=d,c[d]=e}finally{c.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):a};
$Ka=function(a,b){a&&a.loggingStatus&&!a.loggingStatus.isDeclarativeExternal&&!a.loggingStatus.isExternalGet&&a.loggingStatus.currentExternalSet!==b&&pr(a.tagName.toLowerCase(),b,"PROPERTY_ACCESS_GET_INTERNAL")};
qr=function(a,b,c){a&&(c||a.loggingStatus&&!a.loggingStatus.isInitializing&&!a.loggingStatus.isDefiningPropertyAccessor&&a.loggingStatus.currentExternalSet!==b)&&pr(a.tagName.toLowerCase(),b,"PROPERTY_ACCESS_SET_INTERNAL")};
aLa=function(){return{_definePropertyAccessor:function(a,b){var c=this,d=c.hostElement.loggingStatus;d&&(d.isDefiningPropertyAccessor=!0);var e=c[a];e!==void 0&&(c.__data?c._setPendingProperty(a,e):(c.__dataProto!=null||(c.__dataProto={}),c.__dataProto[a]=e));d&&(d.isDefiningPropertyAccessor=!1);Object.defineProperty(this,a,{get:function(){$Ka(c.hostElement,a);return this.__data[a]},
set:function(g){b||this._setPendingProperty(a,g,!0)&&this._invalidateProperties()}})},
created:function(){var a=this._setPendingProperty.bind(this);this._setPendingProperty=function(b,c,d){qr(this.hostElement,b);return a.apply(this,[b,c,d])}}}};
cLa=function(a){XKa()&&_.H(bLa.prototype)(a.prototype,"__templateBindingLoggingBehavior")};
dLa=function(a,b){if(b.resolvedFactories.length!==a.resolvedFactories.length)return!0;b=_.h(b.resolvedFactories.entries());for(var c=b.next();!c.done;c=b.next()){var d=_.h(c.value);c=d.next().value;d=d.next().value;if(d.providerClass){if(d.providerClass!==a.resolvedFactories[c].providerClass)return!0}else if(d.providerValue){if(d.providerValue!==a.resolvedFactories[c].providerValue)return!0}else if(d.factory!==a.resolvedFactories[c].factory)return!0}return!1};
eLa=function(a,b){a=_.h(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.constructor===Array)eLa(c,b);else{var d=b;d.has(c)||(c.inject&&d.add(c),c.behaviors&&eLa(c.behaviors,d))}};
rr=function(a,b){var c=a[b];a[b]=function(){var d=_.Kd.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(c)return c.apply(this,d)}};
iLa=function(){_.sr.Class=function(c,d){c=fLa(c,d);rr(c.prototype,"created");return c};
rr(tr.prototype,"_initializeProperties");rr(_.ur.prototype,"_initializeProperties");if(gLa)rr(hLa,"created");else{var a=function(){rr(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))a();else{var b=customElements.define;customElements.define=function(c,d,e){b.call(customElements,c,d,e);c==="tp-yt-iron-list"&&(a(),customElements.define=b)}}}};
kLa=function(a,b){a.prototype.behaviors=a.prototype.behaviors||[];a.prototype.behaviors.unshift(jLa.InjectBehavior);a.prototype.provide=b};
_.wr=function(a){return function(b){if(!a.disableElementRegistration){a.noInjection||kLa(b,a.providers);var c=b.prototype;c.__templateHelpers||nya(vr.prototype)(c,"__templateHelpers");c=a.is;lLa||(lLa=Date.now());(Ln(c)+lLa)%100<_.$i("polymer_log_prop_change_observer_percent")&&nya(mLa.prototype)(b.prototype,"__propertyObserverObserver");b.prototype.behaviors=b.prototype.behaviors||[];b.prototype.behaviors.unshift(_.nLa.YtHostElementBehavior);cLa(b);TKa({is:a.is,notifyObserversOnUndefined:a.notifyObserversOnUndefined!==
!1,fastInit:a.fastInit,template:a.template,disableEnforceFastDefaultValuesCheck:!0})(b)}}};
_.Q=function(a){return _.wr({is:a.is,template:a.template,disableElementRegistration:a.disableElementRegistration,cssBuildOptOut:a.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
qLa=function(a,b){if(oLa){a=new a;for(var c=_.h(Object.getOwnPropertyNames(a)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a[d];for(c=b;c&&c!==Object.prototype;c=Object.getPrototypeOf(c)){d=_.h(Object.getOwnPropertyNames(c));for(var e=d.next();!e.done;e=d.next())e=e.value,a.hasOwnProperty(e)||Object.defineProperty(a,e,pLa(b,e))}}else a.apply(b)};
pLa=function(a,b){return{get:function(){var c=a[b];return c instanceof Function?c.bind(a):c},
set:function(c){a[b]=c}}};
sLa=function(a,b){for(var c=a._noAccessors,d=_.h(Object.getOwnPropertyNames(a)),e=d.next();!e.done;e=d.next())if(e=e.value,!rLa.has(e))if(c)b[e]=a[e];else{var g=Object.getOwnPropertyDescriptor(a,e);g&&(g.configurable=!0,Object.defineProperty(b,e,g))}};
tLa=function(a,b,c){return function(d){if(c){var e=c();d.model=e}if(a[b])a[b](d,d.detail)}};
xr=function(a){var b=[];if(typeof a==="string")a.length>0&&b.push.apply(b,_.De(a.split(".")));else{a=_.h(a);for(var c=a.next();!c.done;c=a.next())c=c.value,typeof c==="string"?b.push.apply(b,_.De(c.split("."))):b.push(c)}return b};
yr=function(a,b){if(b[b.length-1]!=="*"&&b[b.length-1]!=="splices"){for(var c=0;c<b.length;c++){if(!a)return;a=a[b[c]]}return a}};
uLa=function(a,b){if(a.length>b.length)return!1;for(var c=0;c<a.length;c++)if(a[c]!==b[c])return!1;return!0};
wLa=function(a,b,c){if(b.type==="compute"){var d=b.getter.bind(c);var e=b.args}else d=function(){return c[b.method.methodName].apply(c,_.De(_.Kd.apply(0,arguments)))},e=b.method.args;
vLa(a,b.propertyKey,d,e,b.value)};
yLa=function(a,b){if(b.readOnly){var c=Object.getOwnPropertyDescriptor(a.model,b.propertyKey);Object.defineProperty(a.model,b.propertyKey,{get:c.get,set:function(){}});
a.model[xLa(b.propertyKey)]=c.set}};
zLa=function(a,b,c){if(c){var d=b.propertyKey,e=b.selector;b=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.De(b.selectorArgs.map(function(g){return{type:"path",path:g}})));
vLa(a,d,function(g){var k=_.Kd.apply(1,arguments);return e.apply(null,[c.getState()].concat(_.De(k)))},b)}};
BLa=function(a,b,c){var d=_.on(b.propertyKey)+"-changed";ALa(a,function(e){var g={value:e.value,queueProperty:!0};e.path.split(".").length>1&&(g.path=e.path);c.dispatchEvent(new CustomEvent(d,{detail:g}))},[{type:"wildcard",
path:b.propertyKey}])};
CLa=function(a,b,c){ALa(a,function(){c[b.method.methodName].apply(c,_.De(_.Kd.apply(0,arguments)))},b.method.args)};
xLa=function(a){return"_set"+(a.charAt(0).toUpperCase()+a.slice(1))};
DLa=function(){var a,b=Ah(function(c){a=c},!1);
return[a,b]};
ILa=function(a){a=a.trim().replace(ELa,",").replace(FLa,"$1");var b=a[0];b==="-"&&(b=a[1]);if(b>="0"&&b<="9")return{type:"literal",value:Number(a)};if(b==="'"||b==='"')return{type:"literal",value:a.slice(1,-1)};if(b=a.match(GLa)){b=b[1];var c=HLa[b];if(c)return{type:c,path:a.slice(0,-(b.length+1))}}return{type:"path",path:a}};
MLa=function(a){var b=a.match(JLa);if(b)return a={methodName:b[1],args:KLa},b[2].trim()&&(b=b[2].replace(LLa,"&comma;").split(","),a.args=b.map(ILa)),a};
NLa=function(a,b,c){b=_.on(b);var d=om;d&&(c=d(c,b,"attribute",a));zr(a,c,b)};
zr=function(a,b,c){b=OLa(b);b===void 0?a.removeAttribute(c):a.setAttribute(c,b)};
OLa=function(a){switch(typeof a){case "object":if(a instanceof Date)return a.toString();if(a){var b=window.trustedTypes?window.trustedTypes.isHTML(a)||window.trustedTypes.isScript(a)||window.trustedTypes.isScriptURL(a):void 0;if(b)return a;try{return JSON.stringify(a)}catch(c){_.Dl(Error("Gg`"+a))}}break;case "boolean":return a?"":void 0;default:return a!==null&&a!==void 0?a.toString():void 0}};
PLa=function(a){if(a===void 0)throw Error("Hg");return a};
xMa=function(a,b,c,d){var e=QLa(d);if(e.length){d=c;var g="property";RLa.test(c)?g="attribute":c[c.length-1]==="$"&&(c=c.slice(0,-1),g="attribute");var k=SLa(e);k&&g==="attribute"&&(c==="class"&&a.hasAttribute("class")&&(k+=" "+a.getAttribute(c)),zr(a,k,c));g==="attribute"&&d==="disable-upgrade$"&&a.setAttribute("disable-upgrade","");a.localName==="input"&&d==="value"&&a.setAttribute("value","");a.removeAttribute(d);g==="property"&&(c=_.pn(c));b=PLa(b);wMa(b,g,c,e);return!0}return c.slice(0,3)===
"on-"?(a.removeAttribute(c),(g=b).events!=null||(g.events=[]),b.events.push({name:c.slice(3),value:d}),!0):c==="id"?(b.id=d,!0):!1};
QLa=function(a){for(var b=[],c=0,d;(d=yMa.exec(a))!==null;){d.index>c&&b.push({type:"literal",value:a.slice(c,d.index)});var e=d[1][0];c=!!d[2];d=d[3].trim();if(e==="{")throw Error("Ig");(e=MLa(d))?b.push({type:"method",negate:c,signature:e}):b.push({type:"path",negate:c,path:d});c=yMa.lastIndex}c&&c<a.length&&(a=a.substring(c))&&b.push({type:"literal",value:a});return b};
SLa=function(a){for(var b="",c=0;c<a.length;c++){var d=a[c];d.type==="literal"&&(b+=d.value)}return b};
wMa=function(a,b,c,d){a.bindings!=null||(a.bindings=[]);a.bindings.push({kind:b,target:c,parts:d})};
DMa=function(a,b,c){var d=!1;if(a.localName==="template"){d=c;var e=b.stripWhitespace;e=zMa(a,e===void 0?!1:e);var g=a.content.ownerDocument.createDocumentFragment();e.content=g;g.appendChild(a.content);d&&(d.templateInfo=e);d=!0}else a.localName==="slot"&&(b.hasInsertionPoint=!0);if(a.firstChild&&(e=c,a.localName!=="script"&&a.localName!=="style")){g=0;for(var k=a.firstChild;k;){var m=k;if(m.localName==="template"){var n=m.getAttribute("is");if((k=n==="dom-if")||n==="dom-repeat"){m.removeAttribute("is");
n=m.ownerDocument.createElement("ps-"+n);m.parentNode.replaceChild(n,m);n.appendChild(m);var r=Array.from(m.attributes);r=_.h(r);for(var t=r.next();!t.done;t=r.next())t=t.value,k?AMa.has(t.name)&&zr(n,t.value,t.name):BMa.has(t.name)?zr(n,t.value,t.name):CMa.has(t.name),m.removeAttribute(t.name);k=n}else k=m}if(k.nodeType===Node.TEXT_NODE){m=void 0;n=a;for(r=k;((m=r.nextSibling)==null?void 0:m.nodeType)===Node.TEXT_NODE;)t=void 0,(t=r).textContent!=null||(t.textContent=""),r.nextSibling.textContent&&
(r.textContent+=r.nextSibling.textContent),n.removeChild(r.nextSibling);if(b.stripWhitespace&&k.textContent&&!k.textContent.trim()){a.removeChild(k);k=k.nextSibling;continue}}DMa(k,b,{parentIndex:g,parentInfo:e});k.parentNode&&g++;k=k.nextSibling}}var u;if((u=a.hasAttributes)==null?0:u.call(a)){u=c=PLa(c);e=!1;g=Array.from(a.attributes);g=_.h(g);for(m=g.next();!m.done;m=g.next())m=m.value,e=xMa(a,u,m.name,m.value)||e;d=e||d}a.nodeType===Node.TEXT_NODE&&(u=QLa(a.textContent),u.length&&(a.textContent=
SLa(u)||" ",c=PLa(c),wMa(c,"text","textContent",u),d=!0));c&&d&&(c.infoIndex=b.nodeInfoList.push(c)-1)};
zMa=function(a,b){b={nodeInfoList:[],stripWhitespace:(b===void 0?!1:b)||a.hasAttribute("strip-whitespace")};DMa(a.content,b);return b};
EMa=function(a){Object.assign(a,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
FMa=function(a,b){for(;a;){var c=a.signals[b];if(c)return c;a=a.parentScope}};
HMa=function(a,b,c,d){b.signalCache!=null||(b.signalCache={});var e=b.signalCache[c];if(!e){var g=c.split("."),k=FMa(d,g[0]);if((k==null?void 0:k.type)==="signal")e=function(){var x=k.type==="mutable"?k.signal.getWithPath([]):k.getter();return{rootWasDefined:x!==void 0,value:yr(x,g.slice(1))}};
else if((k==null?void 0:k.type)==="mutable"){var m=k.signal,n=k.signal.getPathMutationSignal(g.slice(1));e=function(){var x=Ch(a.owner,function(){return m.getWithPath([])}),A,C=(A=n())==null?void 0:A.value;
return{rootWasDefined:x!==void 0,value:C}}}else{var r,t;
d=_.w("web_polysi_immutable_root_fix_killswitch")?!((r=a.options)==null?0:(t=r.immutableProps)==null?0:t.has(g[0])):!GMa(a,g[0]);if(g.length>1&&d){var u=a.getPathMutationSignal(g);e=function(){var x=Ch(a.owner,function(){return a.getWithPath([g[0]])}),A,C=(A=u())==null?void 0:A.value;
return{rootWasDefined:x!==void 0,value:C}}}else e=function(){var x=a.getWithPath(g);
return{rootWasDefined:x!==void 0,value:x}}}b.signalCache[c]=e}return e()};
JMa=function(a,b,c,d,e,g){b=b.parts.map(function(m,n){if(m.type==="literal"){c.partWasDefined!=null||(c.partWasDefined=[]);var r;(r=c.partWasDefined)[n]||(r[n]=m.value!==void 0);return m.value}var t;if(m.type==="method"){var u,x=(u=(t=c.partWasDefined)==null?void 0:t[n])!=null?u:!1;x||(x=m.signature.args.every(function(F){return F.type==="literal"}));
var A=!1,C=!0;t=m.signature.args.map(function(F){if(F.type==="literal")return F.value;if(F.type!=="path")throw Error("Jg`"+F.type);var J=HMa(a,c,F.path,e);F=J.value;J=J.rootWasDefined;A||(A=J);C&&(C=J);return F});
x||(x=g===1?C:A);c.partWasDefined!=null||(c.partWasDefined={});c.partWasDefined[n]=x;if(!x)return;t=(n=HMa(a,c,m.signature.methodName,e).value)&&typeof n==="function"?n.apply(d,t):void 0}else u=HMa(a,c,m.path,e),t=u.value,c.partWasDefined!=null||(c.partWasDefined={}),(x=c.partWasDefined)[n]||(x[n]=t!==void 0||u.rootWasDefined);m.negate&&(t=!t);return t});
if(b.length===1){var k;return((k=c.partWasDefined)==null?0:k[0])?b[0]:IMa}return b.join("")};
KMa=function(a){return typeof a==="object"&&!!a&&"notifyPath"in a&&"canNotifyPath"in a};
LMa=function(a){return typeof a==="object"&&!!a&&"notifyPath"in a};
MMa=function(a){return"polymerController"in a};
NMa=function(a,b){b=""+xr(b)[0];if(KMa(a))return a.canNotifyPath(b);if(MMa(a)&&KMa(a.polymerController))return a.polymerController.canNotifyPath(b);if(LMa(a)){var c;return!((c=a.properties)==null||!c[b])}if(MMa(a)&&LMa(a.polymerController)){var d;return!((d=a.polymerController.properties)==null||!d[b])}return!1};
OMa=function(a,b,c){KMa(a)||LMa(a)?a.notifyPath(b,c):MMa(a)&&(KMa(a.polymerController)||LMa(a.polymerController))&&a.polymerController.notifyPath(b,c)};
QMa=function(a,b,c){if(c!==IMa){a.kind==="attribute"||a.target!=="textContent"&&(a.target!=="value"||b.localName!=="input"&&b.localName!=="textarea")||(c=c===void 0?"":c);var d,e=(d=PMa.Polymer)==null?void 0:d.sanitizeDOMValue;e&&(c=e(c,a.target,a.kind,b));if(a.kind==="attribute"){a=a.target;if(a==="class"||a==="name"||a==="slot")b=(0,_.er)(b);zr(b,c,a)}else if(a=a.target,c!==b[a]||typeof c==="object")b.loggingStatus&&(b.loggingStatus.isDeclarativeExternal=!0,pr(b.localName,a,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
b[a]=c,b.loggingStatus&&(b.loggingStatus.isDeclarativeExternal=!1)}};
RMa=function(a,b,c,d,e){var g=b.parts[0];if(b.parts.length!==1||g.type!=="path"||!NMa(c,b.target))return!1;var k=_.h(g.path.split(".")),m=k.next().value,n=Rg(k);if(!_.w("web_polysi_immutable_root_fix_killswitch")&&GMa(a,m))return!1;k=FMa(e,m);if((k==null?void 0:k.type)==="signal")return!1;d.signalCache!=null||(d.signalCache={});e=d.signalCache[g.path];var r;e=(r=e)==null?void 0:r().value;if((e==null?void 0:e.path)!==void 0){d=xr(e.path);var t=xr(g.path);d=[b.target].concat(_.De(d.slice(t.length-1)));
OMa(c,d,g.negate?!e.value:e.value);return!0}var u;k?u=k.signal:u=Ar(a,m);var x=u.getChangeRecordSignal(n),A=!1;e=function(){if(!A){var F=Ch(a.owner,function(){return u.getWithPath([])});
A||(A=F!==void 0)}return{value:x(),rootWasDefined:A}};
d.signalCache[g.path]=e;d.partWasDefined!=null||(d.partWasDefined={});m=e();(t=d.partWasDefined)[0]||(t[0]=m.rootWasDefined);var C=Ch(a.owner,function(){return u.getWithPath(n)});
d.partWasDefined[0]&&Ch(a.owner,function(){return void QMa(b,c,g.negate?!C:C)});
return!0};
SMa=function(a,b,c,d,e,g,k){if(!RMa(a,b,c,d,g)){var m=JMa(a,b,d,e,g,k);Ch(a.owner,function(){return void QMa(b,c,m)})}};
TMa=function(a,b,c,d,e,g,k){c=_.h(c);for(var m=c.next(),n={};!m.done;n={infoIndex:void 0},m=c.next()){m=m.value;var r=m.bindings;n.infoIndex=m.infoIndex;m=m.parentInfo;if(r){r=_.h(r);for(var t=r.next(),u={};!t.done;u={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},t=r.next()){u.b$jscomp$254=t.value;if(n.infoIndex===void 0)throw Error("Kg");u.bindingCtx$jscomp$4={};a.effect(function(x,A){return function(){e&&!e()||SMa(a,x.b$jscomp$254,b[A.infoIndex],x.bindingCtx$jscomp$4,d,g,k)}}(u,n))}}m&&TMa(a,
b,[m],d,e,g,k)}};
UMa=function(a,b){a=(b.parentInfo?UMa(a,b.parentInfo):a).firstChild;for(var c=0;a;a=a.nextSibling)if(b.parentIndex===c++)return a;throw Error("Lg");};
WMa=function(a,b,c,d){a=document.importNode(a.content,!0);a.__noInsertionPoint=!(d==null?0:d.hasInsertionPoint);for(var e=Array(b.length),g={},k=0;k<b.length;k++){var m=b[k],n=UMa(a,m);e[k]=n;m.id&&(g[m.id]=n);if(m.templateInfo){var r=n.parentElement;r&&(r.templateInfo=m.templateInfo,r.parentSignalProxy=c,r.eventListenerHost=d.eventListenerHost,r.stampingEnabled=d.enabledSignal,r.parentScope=d.scope)}r=void 0;if((r=m.events)==null?0:r.length)for(r=0;r<m.events.length;r++){var t=m.events[r];VMa(d.eventListenerHost,
n,t.name,t.value,d.getModel)}}TMa(c,e,b,d.thisCtx,d.enabledSignal,d.scope,d.methodInvocationRequirement);return{root:a,nodes:e,nodesById:g}};
YMa=function(a,b){a=a();var c;(c=XMa.ShadyCSS)==null||c.prepareTemplate(a,b);b=zMa(a);return{template:a,nodeInfoList:b.nodeInfoList,hasInsertionPoint:b.hasInsertionPoint}};
aNa=function(){ZMa=!1;for(var a=Br.length,b=0;b<a;b++){var c=Br[b];if(c)try{c()}catch(d){Promise.resolve().then(function(){throw d;})}}Br.splice(0,a);
$Ma+=a};
eNa=function(a){ZMa||(ZMa=!0,bNa.textContent=(cNa++).toString());Br.push(a);return dNa++};
_.Er=function(a,b,c){Cr++;a=b?new fNa(Cr,a,b,c):new gNa(Cr,a);Dr.set(Cr,a);return Cr};
hNa=function(a){(a=Dr.get(a))&&a.cancel()};
jNa=function(a,b){a=iNa.get(a);return a?(b=a.get(b))?b:null:null};
_.Fr=function(a,b,c,d){var e=jNa(a,b);if(!e){e=new kNa;var g=iNa.get(a);g||(g=new Map,iNa.set(a,g));g.set(b,e)}a=c.bind(a);e.run(a,d,void 0)};
_.lNa=function(a,b){var c;(c=jNa(a,b))==null||c.cancel()};
mNa=function(a){var b;(b=jNa(a,"doRender"))==null||b.flush()};
Gr=function(a){var b;return(b=a.hostElement)!=null?b:a};
nNa=function(a){var b=a.indexOf(".");return b===-1?a:a.slice(0,b)};
oNa=function(a,b,c,d,e,g){g=(e=(d=g?nNa(b):b)?b:null)?a.get(e):a.__data[b];e&&g===void 0&&(g=c[b]);_.io(a.hostElement,TBa(d)+"-changed",{value:g,queueProperty:!0,path:e!=null?e:void 0},{bubbles:!1,composed:!1})};
pNa=function(a,b){a.__isReflecting=!0;NLa(a.hostElement,b,a.__data[b]);a.__isReflecting=!1};
qNa=function(a){if(a._onIronRequestResizeNotifications){var b=a._onIronRequestResizeNotifications.bind(a);a._onIronRequestResizeNotifications=function(c){_.Sq(c)!==a.hostElement&&b(c)}}a._ariaActiveAttributeChanged&&(a._ariaActiveAttributeChanged=a._ariaActiveAttributeChanged.bind(a.hostElement));
a._activeChanged&&(a._activeChanged=function(c){a.toggles?zr(a.hostElement,c?"true":"false",a.ariaActiveAttribute):a.hostElement.removeAttribute(a.ariaActiveAttribute);a._changedButtonState()});
a._asyncClick&&(a._asyncClick=function(){_.Er(function(){a.hostElement.click()},1)});
!a.keyEventTarget||a.keyEventTarget instanceof EventTarget||(a.keyEventTarget=Gr(a.keyEventTarget));a._disabledChanged&&(a._disabledChanged=a._disabledChanged.bind(a.hostElement));a._observeItems&&(a._observeItems=function(c){var d=Gr(c);return _.wn(d).observeNodes(function(e){a._updateItems();a._updateSelected();_.io(d,"iron-items-changed",e,{bubbles:!1,cancelable:!1})})});
a._updateItems&&a._updateItems===_.Hr._updateItems&&(a._updateItems=function(){var c=_.wn(a.hostElement).queryDistributedElements(a.selectable||"*");c=Array.prototype.filter.call(c,a._bindFilterItem);a._setItems(c)});
a._computeKeyboardClass&&(a._computeKeyboardClass=function(c){_.br(a.hostElement,"keyboard-focus",c)});
a.ensureRipple&&(a.ensureRipple=function(c){if(a.hasRipple&&!a.hasRipple()){if(!a._createRipple)return;a._ripple=a._createRipple();a._ripple.noink=a.noink;var d=a._rippleContainer||a.hostElement;d&&_.E(d).appendChild(a._ripple)}var e;if(c&&((e=a._ripple)==null?0:e.uiDownAction)){d=_.E(a._rippleContainer||a.hostElement);var g;e=(g=c.composedPath())==null?void 0:g[0];d.contains(e)&&a._ripple.uiDownAction(c)}});
a._updateMultiselectable&&(a._updateMultiselectable=function(c){c?a.hostElement.setAttribute("aria-multiselectable","true"):a.hostElement.removeAttribute("aria-multiselectable")})};
rNa=function(a,b,c){c=_.h(c);for(var d=c.next();!d.done;d=c.next())qLa(d.value.constructor,a);qLa(b.constructor,a)};
tNa=function(a,b){a=_.h(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.type==="signal"){var d=c.propertyKey;if(b.hasOwnProperty(d)&&b[d]!=null&&c.attributeType===Object){a:{d=b[d].constructor;for(var e=_.h(sNa),g=e.next();!g.done;g=e.next())if(g=g.value,d===g){d=g;break a}d=Object}c.attributeType=d}}};
uNa=function(){};
vNa=function(a){var b;return(b=a.hostElement)!=null?b:a};
wNa=function(){throw Error("Pg");};
xNa=function(a,b){a.constructor.prototype.useSignals=!0;var c=new a.constructor;rNa(c,a,b.behaviors);tNa(b.reactiveSchemas,c);c={};for(var d=_.h(b.reactiveSchemas),e=d.next();!e.done;e=d.next())e=e.value,e.type==="signal"&&(c[e.propertyKey]=e.attributeType);var g={copyPropertiesToProto:wNa,didRegister:!1,typesForSignals:c},k=["disable-upgrade"].concat(_.De(b.observedAttributes)),m=function(n){Ir.call(this,a,b,g,n)};
_.z(m,Ir);_.Um.Object.defineProperties(m,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return k}}});
g.copyPropertiesToProto=function(){for(var n=0;n<b.behaviors.length;n++)sLa(b.behaviors[n],m.prototype);sLa(a,m.prototype)};
b.legacyOptimizations||g.copyPropertiesToProto();m.prototype.is=a.is;return m};
yNa=function(a,b){if(Object.getPrototypeOf(b.prototype).constructor!==_.P)throw Error("Qg");b.prototype.is=a.is;return xNa(b.prototype,a)};
zNa=function(a){return a.type==="compute"||a.type==="computeWithMethod"};
ANa=function(a){for(var b=a.reactiveSchemas.filter(zNa),c=new Map,d=new Map,e=new Map,g=_.h(b),k=g.next();!k.done;k=g.next())k=k.value,c.set(k.propertyKey,k),d.set(k.propertyKey,[]),e.set(k.propertyKey,0);g=0;b=_.h(b);for(k=b.next();!k.done;k=b.next()){k=k.value;for(var m=_.h(k.type==="computeWithMethod"?k.method.args:k.args),n=m.next();!n.done;n=m.next())n=n.value,n.type!=="literal"&&(n=n.path.split(".")[0],d.has(n)&&(d.get(n).push(k.propertyKey),e.set(k.propertyKey,e.get(k.propertyKey)+1),g++))}k=
[].concat(_.De(d.keys())).filter(function(r){return e.get(r)===0});
for(b=[];k.length;)for(m=k.shift(),b.push(c.get(m)),m=_.h(d.get(m)),n=m.next();!n.done;n=m.next())n=n.value,e.set(n,e.get(n)-1),g--,e.get(n)===0&&k.push(n);c=a.reactiveSchemas.filter(function(r){return!zNa(r)});
a.reactiveSchemas=[].concat(_.De(c),_.De(b))};
BNa=function(a,b){if(b.properties)for(var c=_.h(Object.entries(b.properties)),d=c.next();!d.done;d=c.next()){var e=_.h(d.value);d=e.next().value;e=e.next().value;a.properties[d]=typeof e==="function"?{type:e}:e}b.observers&&a.observers.push.apply(a.observers,_.De(b.observers));b.disabledPolySiReactions&&a.disabledPolySiReactions.push.apply(a.disabledPolySiReactions,_.De(b.disabledPolySiReactions))};
CNa=function(a,b){for(var c=b.length-1;c>=0;c--){var d=b[c];Array.isArray(d)?CNa(a,d):a.indexOf(d)<0&&a.unshift(d)}};
DNa=function(a,b){a.reactiveSchemas=a.reactiveSchemas.filter(function(c){return c.type==="observe"&&b.includes(c.method.methodName)||zNa(c)&&b.includes(c.propertyKey)?!1:!0})};
FNa=function(a,b){var c=b.prototype,d,e,g={is:a.is,reactiveSchemas:[],observedAttributes:[],behaviors:[jLa.InjectBehavior,vr.prototype],disableElementRegistration:a.disableElementRegistration,provide:(d=a.providers)!=null?d:[],reactivityMode:a.reactivityMode,signalProperties:(e=c.signalProperties)!=null?e:[]};"template"in b?g.templateGetter=function(){return b.template}:a.getTemplate&&(g.templateGetter=a.getTemplate);
c.behaviors&&CNa(g.behaviors,c.behaviors);ENa(g,b);return g};
ENa=function(a,b){for(var c=b.prototype,d={properties:{},observers:[],disabledPolySiReactions:[]},e=_.h(a.behaviors),g=e.next();!g.done;g=e.next())BNa(d,g.value);BNa(d,c);if(a.signalProperties)for(c=_.h(a.signalProperties),e=c.next();!e.done;e=c.next())delete d.properties[e.value];c=_.h(Object.entries(d.properties));for(e=c.next();!e.done;e=c.next()){g=_.h(e.value);e=g.next().value;g=g.next().value;var k=void 0;if((k=a.signalProperties)==null||!k.includes(e)){k=void 0;var m=a,n=g.type;if(!n)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{n=Reflect.getMetadata("design:type",b,e);for(var r=_.h(GNa),t=r.next();!t.done;t=r.next())if(t=t.value,n===t){n=t;break a}n=Object}else n=String;g.computed||g.selector||(m.reactiveSchemas.push({type:"signal",propertyKey:e,value:g.value,attributeType:n,readOnly:g.readOnly}),m.observedAttributes.push(_.on(e)));g.reflectToAttribute&&m.reactiveSchemas.push({type:"reflect",propertyKey:e});if(g.computed){n=MLa(g.computed);if(!n)throw Error("Rg");m.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:e,method:n,value:g.value})}g.observer&&m.reactiveSchemas.push({type:"observe",method:{methodName:g.observer,args:[{type:"path",path:e}]}});g.notify&&m.reactiveSchemas.push({type:"notify",propertyKey:e});g.selector&&m.reactiveSchemas.push({type:"redux",propertyKey:e,selector:g.selector,selectorArgs:(k=g.selectorArgs)!=null?k:[]})}}HNa&&ANa(a);b=_.h(d.observers);for(e=b.next();!e.done;e=b.next())c=a,e=e.value,(g=MLa(e))?c.reactiveSchemas.push({type:"observe",method:g}):console.log('Warning: unable to parse observe declaration: "'+
e+'"');DNa(a,d.disabledPolySiReactions)};
INa=function(a,b){for(var c=0;c<b.length;c++){var d=b[c],e=void 0;(e=d).showHideApi!=null||(e.showHideApi={});e=void 0;!!a!==!((e=d.showHideApi)==null||!e.hideTemplateChildren)&&(d.nodeType===Node.TEXT_NODE?a?(d.showHideApi.polymerTextContent=d.textContent,d.textContent=""):(e=void 0,d.textContent=(e=d.showHideApi.polymerTextContent)!=null?e:null):d instanceof Element&&d.localName==="slot"?a?(d.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.er)((0,_.er)(d).parentNode).replaceChild(d.showHideApi.polymerReplaced,
d)):(e=d.showHideApi.polymerReplaced)&&(0,_.er)((0,_.er)(e).parentNode).replaceChild(d,e):d instanceof HTMLElement&&d.style&&(a?(d.showHideApi.polymerDisplay=d.style.display,d.style.display="none"):d.style.display=d.showHideApi.polymerDisplay));d.showHideApi.hideTemplateChildren=a;d.showHideChildren&&d.showHideChildren(a)}};
KNa=function(){if(!JNa){var a=document.createElement("style");a.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(a);JNa=!0}};
LNa=function(a,b){return Ch(a,function(){for(var c={},d=b,e=new Set;d;){for(var g=_.h(Object.entries(d.signals)),k=g.next();!k.done;k=g.next()){var m=_.h(k.value);k=m.next().value;m=m.next().value;e.has(k)||(e.add(k),c[k]=m.type==="mutable"?m.signal.getWithPath([]):m.getter())}d=d.parentScope}return c})};
Jr=function(){return _.w("disable_hidden_dom_if_using_stamper")||_.w("creator_disable_hidden_dom_if_using_stamper")};
MNa=function(){var a=!1,b=_.h(_.ih(!0,void 0,"UQbJQc")),c=b.next().value,d=b.next().value;return[function(){return a?!1:c()},
function(){a=!0;d(!1)}]};
NNa=function(a,b){var c=_.Kr().getState();return b?a.apply(null,[c].concat(_.De(b))):a(c)};
QNa=function(){if(ONa)return ONa;var a=_.h(_.ih(0,void 0,"lnJfId")),b=a.next().value,c=a.next().value;_.Kr().subscribe(function(){PNa(c)});
return ONa=b};
PNa=function(a){_.w("delay_redux_signal_update_killswitch")?a(Vka(function(b){return b+1})):RNa||(RNa=!0,Promise.resolve().then(function(){a(Vka(function(b){return b+1}));
RNa=!1}))};
_.Kr=function(){return SNa.getAppStore()};
Lr=function(a,b){return SNa.getSelectFn()(a,b)};
_.Mr=function(a){SNa.getDispatchFn()(a)};
TNa=function(a,b){var c={},d;for(d in a)c[d]=b(a[d],d);return c};
_.Nr=function(a,b){return function(){var c;return(c=_.Bh(a))!=null?c:b}};
_.Or=function(a,b){var c=Object.assign({},a),d;for(d in b)b.hasOwnProperty(d)&&(c[d]=_.Nr(a[d],b[d]));return c};
UNa=function(a,b,c){a instanceof Element&&(c.debugName||(c.debugName="<"+a.tagName.toLowerCase()+(a.tagName.includes("-")?">":"."+a.className+">")),_.w("ytwiz_enable_debug_component_props")&&(a.debugProps||(a.debugProps=TNa(b,function(d){return function(){return d()}}))))};
_.Rr=function(a,b){var c=function(d){var e={stack:[],error:void 0,hasError:!1};try{var g=VNa={};var k=_.Pr(e),m;if(((m=c)==null?0:m.idomCompat)&&d.renderedFromIdom){k==null||k.attr("idomCompat",!0);var n,r=typeof c.idomCompat==="object"?(n=c)==null?void 0:n.idomCompat.callbacks:{},t=_.h(WNa(d,r,c.debugName)),u=t.next().value;t.next();var x=t.next().value,A=XNa(a,u);g.privateValue=A;VNa=void 0;UNa(A,u,c);k==null||k.attr("debugName",c.debugName);var C=Hma(A),F=Array.isArray(C)?C[0]:C;F[di]||(F[di]=
{});F[di].updateSignalsFromIdomProps=x;return A}var J=TNa(d,YNa);var I=XNa(a,J);g.privateValue=I;VNa=void 0;UNa(I,J,c);k==null||k.attr("debugName",c.debugName);return I}catch(R){e.error=R,e.hasError=!0}finally{_.Qr(e)}};
c.debugName=b===void 0?"":b;return c};
XNa=function(a,b){a=a(b);return ii(a)};
ZNa=function(a,b){a[b]||(a=new _.qj("IDOM interop setter undefined. Key:",b),_.Bl(a))};
YNa=function(a,b){return b==="children"||typeof a==="function"||a===void 0?a:function(){return _.Bh(a)}};
WNa=function(a,b,c){var d={},e={},g={},k={},m;for(m in a){k={key$jscomp$880:k.key$jscomp$880};k.key$jscomp$880=m;var n=a[k.key$jscomp$880];if(k.key$jscomp$880==="children")d[k.key$jscomp$880]=n;else if(typeof n==="function")k.key$jscomp$880 in b||n.length>0?(g[k.key$jscomp$880]=n,d[k.key$jscomp$880]=function(t){return function(){return g[t.key$jscomp$880].apply(g,_.De(_.Kd.apply(0,arguments)))}}(k)):d[k.key$jscomp$880]=n;
else if(!(a[k.key$jscomp$880]===void 0&&k.key$jscomp$880 in b)){var r=_.h(_.ih(a[k.key$jscomp$880],{debugName:"__cwis:"+c+":"+k.key$jscomp$880},"lEtjrb"));n=r.next().value;r=r.next().value;d[k.key$jscomp$880]=n;e[k.key$jscomp$880]=r}}return[d,e,function(t){var u={},x;for(x in t)u={key$jscomp$881:u.key$jscomp$881,val$jscomp$121:void 0},u.key$jscomp$881=x,u.val$jscomp$121=t[u.key$jscomp$881],u.key$jscomp$881!=="children"&&(typeof u.val$jscomp$121==="function"?u.key$jscomp$881 in b?g[u.key$jscomp$881]=
u.val$jscomp$121:u.val$jscomp$121.length>0&&(g[u.key$jscomp$881]=u.val$jscomp$121,_.Dl(new _.qj("Callback detected that was not set in the idomCompat callbacks map. Key:",u.key$jscomp$881))):u.key$jscomp$881 in b&&u.val$jscomp$121===void 0||(ZNa(e,u.key$jscomp$881),qh(function(A){return function(){e[A.key$jscomp$881](A.val$jscomp$121)}}(u))))}]};
bOa=function(a,b,c){var d=bya(a.prototype,$Na,a.prototype.behaviors);d.prototype.is=b;d.prototype.localName=b;c&&aOa(d,c);return function(e){e&&(d.prototype.hostElement=e);var g=new d;g.root=g;g.hostElement=e;return g}};
aOa=function(a,b){var c;Object.defineProperty(a.prototype,"_template",{get:function(){c===void 0&&(c=b());return c},
set:function(d){c=d},
configurable:!0,enumerable:!0})};
gOa=function(a,b,c,d){function e(){if(!A){for(var C=new Set,F=_.h(t),J=F.next();!J.done;J=F.next()){J=J.value;for(var I=_.h(Object.getOwnPropertyNames(J)),R=I.next();!R.done;R=I.next()){R=R.value;var da=void 0,V=(da=Object.getOwnPropertyDescriptor(J,R))==null?void 0:da.value;V&&V instanceof Function&&!Sr(R)&&C.add(R)}}F=_.h(Object.entries(Object.getOwnPropertyDescriptors(a.prototype)));for(J=F.next();!J.done;J=F.next())I=_.h(J.value),J=I.next().value,I=I.next().value,I.value instanceof Function&&
!Sr(J)&&C.add(J);A=C}return A}
cOa(a,b,d==null?void 0:d.providers);cya(a.prototype,a,!0);var g=bOa(a,b,c),k,m=(k=a.prototype.properties)!=null?k:{},n,r,t=(r=(n=a.prototype.behaviors)==null?void 0:n.flat(Infinity))!=null?r:[];c=_.h(t);for(k=c.next();!k.done;k=c.next())m=Object.assign({},k.value.properties,m);var u=[].concat(_.De(dOa),_.De(Object.keys(m).map(function(C){return _.on(C)}))),x=!1,A;
return{ctor:function(C,F){var J=g(C),I,R;C=[].concat(_.De((I=d==null?void 0:d.allowedProps)!=null?I:[]),_.De((R=d==null?void 0:d.allowedPropsFromBehaviors)!=null?R:[]));J.allowedProps=C.length>0?C:void 0;I={};R=_.h(u);for(C=R.next();!C.done;C=R.next())C=C.value,I[C]=_.pn(C);J.__dataAttributes=I;var da=J.ready.bind(J);J.ready=function(){F.beforeReady();da();if(nr(b)&&!x){var V=J.__templateInfo;if(V==null?0:V.hostProps){V=_.h(Object.keys(V.hostProps));for(var fa=V.next();!fa.done;fa=V.next())pr(b,fa.value,
"PROPERTY_ACCESS_GET_INTERNAL")}x=!0}};
J._overrideLegacyUndefined=!0;return J},
props:m,observedAttributes:u,getInitialMethods:e,getPropsToForwardBeforeRegister:function(){for(var C=[],F=new Set,J=_.h(Object.keys(m)),I=J.next();!I.done;I=J.next())I=I.value,C.push([I,m[I].readOnly]),F.add(I);J=e();I=_.h(Object.keys(Object.getOwnPropertyDescriptors(a.prototype)));for(var R=I.next();!R.done;R=I.next())R=R.value,!eOa(R)||J.has(R)||F.has(R)||(C.push([R,!1]),F.add(R));F=_.h(fOa);for(J=F.next();!J.done;J=F.next())C.push([J.value,!0]);return C},
getPropsToForwardBeforeReady:function(C){for(var F=[],J=_.h(Object.entries(C)),I=J.next();!I.done;I=J.next()){var R=_.h(I.value);I=R.next().value;R=R.next().value;if(eOa(I)&&!(R instanceof Function)&&(F.push([I,!1]),nr(b))){var da=R=void 0;(da=(R=C)._createPropertyAccessor)==null||da.call(R,I)}}return F},
shouldForwardProp:eOa,shouldLog:nr}};
cOa=function(a,b,c){kLa(a,c);a.prototype.behaviors.unshift(hOa);if(XKa()){if(nr(b)){var d;(d=a.prototype).behaviors!=null||(d.behaviors=[]);a.prototype.behaviors.unshift(aLa())}cLa(a)}_.H(vr.prototype)(a.prototype,"__templateHelpers")};
Sr=function(a){return iOa.has(a)||a.startsWith("__compute__")};
eOa=function(a){return!Sr(a)&&!a.startsWith("_")&&!a.endsWith("_")};
nOa=function(a,b){function c(){var x=n();x=_.h(x);for(var A=x.next();!A.done;A=x.next()){var C=_.h(A.value);A=C.next().value;C=C.next().value;jOa(u.prototype,A,C)}d=!0}
var d=!1,e=a.ctor,g=a.getInitialMethods,k=a.observedAttributes,m=a.getPropsToForwardBeforeReady,n=a.getPropsToForwardBeforeRegister,r=a.shouldForwardProp,t=a.shouldLog,u=function(){var x=HTMLElement.call(this)||this;x.didForwardDynamicProps=!1;x.loggingStatus={};d||c();x.inst=e(x,{beforeReady:function(){x.didForwardDynamicProps||(x.forwardDynamicProps(),x.didForwardDynamicProps=!0)}});
x.controllerProxy=ZKa(x.inst,b);x.forwardMethods();return x};
_.z(u,HTMLElement);u.prototype.forwardMethods=function(){for(var x=this,A=_.h(this.inst.getExtraMethodsToForward()),C=A.next(),F={};!C.done;F={method$jscomp$60:void 0},C=A.next()){var J=_.h(C.value);C=J.next().value;J=J.next().value;F.method$jscomp$60=J;this[C]=function(I){return function(){return I.method$jscomp$60.call.apply(I.method$jscomp$60,[x.inst].concat(_.De(_.Kd.apply(0,arguments))))}}(F)}A=_.h(g());
for(F=A.next();!F.done;F=A.next())F=F.value,r(F)&&kOa(this,F),t(b)&&!Sr(F)&&lOa(this.inst,F)};
u.prototype.forwardDynamicProps=function(){var x=m(this.inst);x=_.h(x);for(var A=x.next();!A.done;A=x.next()){var C=_.h(A.value);A=C.next().value;C=C.next().value;jOa(this,A,C);t(b)&&!Sr(A)&&mOa(this.inst,A)}};
u.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
u.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
u.prototype.attributeChangedCallback=function(x,A,C){this.inst.attributeChangedCallbackWrapper(x,A,C)};
_.Um.Object.defineProperties(u.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return b}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.Um.Object.defineProperties(u,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return k}}});
customElements.define(b,u)};
jOa=function(a,b,c){a.hasOwnProperty(b)||Object.defineProperty(a,b,{get:function(){var d,e=((d=a.is)!=null?d:a.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||pr(e,b,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,d=this.polymerController[b],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,d},
set:function(d){if(!c){var e,g=((e=a.is)!=null?e:a.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||pr(g,b,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=b,this.loggingStatus.bypassProxyController=!0,this.polymerController[b]!==d&&(e={},this.polymerController.setProperties((e[b]=d,e)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
kOa=function(a,b,c){var d=a.polymerController;a[b]=function(){var e=_.Kd.apply(0,arguments);a.loggingStatus.currentExternalCall=b;a.loggingStatus.bypassProxyController=!0;var g,k=((g=a.is)!=null?g:a.tagName).toLowerCase();pr(k,b,"PROPERTY_ACCESS_CALL_EXTERNAL");var m;g=(m=c!=null?c:d[b])==null?void 0:m.call.apply(m,[d].concat(_.De(e)));a.loggingStatus.currentExternalCall=void 0;a.loggingStatus.bypassProxyController=!1;return g}};
lOa=function(a,b){var c=a.hostElement,d=a[b];a[b]=function(){var e=_.Kd.apply(0,arguments);if(c.loggingStatus.currentExternalCall!==b){var g,k=((g=c.is)!=null?g:c.tagName).toLowerCase();pr(k,b,"PROPERTY_ACCESS_CALL_INTERNAL")}return d==null?void 0:d.apply(a,e)}};
mOa=function(a,b){var c=Object.getOwnPropertyDescriptor(a,b);c&&!c.get&&Object.defineProperty(a,b,{get:function(){$Ka(a.hostElement,b);return c.value},
set:function(d){qr(a.hostElement,b);c.value=d}})};
oOa=function(a){return _.w("poly_si_dom_repeat_detached_fix_killswitch")||a.tagName!=="PS-DOM-REPEAT"?a.tagName==="DOM-REPEAT":!0};
qOa=function(a,b){var c=pOa(a);a instanceof Element&&c.unshift(a);a=_.h(c.filter(oOa));for(var d=a.next();!d.done;d=a.next()){d=_.h(d.value.__instances);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.root){e=Array.from(e.root.children);e=_.h(e);for(var g=e.next();!g.done;g=e.next())c.push.apply(c,_.De(qOa(g.value,b)))}}return c.filter(function(k){return k.usePatchedLifecycles&&k.lifecycleIsConnected===b})};
pOa=function(a){var b=null;a instanceof Element?b=Element.prototype.querySelectorAll:a instanceof DocumentFragment&&(b=DocumentFragment.prototype.querySelectorAll);return b?Array.from(b.call(a,"*")):[]};
Tr=function(a){hh(function(){for(var b=_.h(qOa(a,!1)),c=b.next();!c.done;c=b.next()){c=c.value;c.lifecycleIsConnected=!0;try{var d=void 0,e=void 0,g=void 0,k=void 0;(d=(k=c.polymerController)!=null?k:c)==null||(g=(e=d).connectedCallback)==null||g.call(e)}catch(m){_.Bl(m)}}})};
Ur=function(a){hh(function(){for(var b=_.h(qOa(a,!0)),c=b.next();!c.done;c=b.next()){c=c.value;c.lifecycleIsConnected=!1;try{var d=void 0,e=void 0,g=void 0,k=void 0;(d=(k=c.polymerController)!=null?k:c)==null||(g=(e=d).disconnectedCallback)==null||g.call(e)}catch(m){_.Bl(m)}}})};
xOa=function(){if(!rOa){rOa=!0;var a=[Node];Vr&&a.push(Vr.Wrapper);var b=Node.prototype.insertBefore,c=Node.prototype.removeChild;a=_.h(a);for(var d=a.next(),e={};!d.done;e={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},d=a.next())d=d.value,e.nativeInsertBefore=d.prototype.insertBefore,d.prototype.insertBefore=function(k){return function(m,n){if(m instanceof DocumentFragment){var r=Array.from(m.children);m=k.nativeInsertBefore.call(this,m,n);
if(this.isConnected&&k.nativeInsertBefore===b)for(n=_.h(r),r=n.next();!r.done;r=n.next())Tr(r.value);return m}r=m instanceof Element&&m.isConnected;n=k.nativeInsertBefore.call(this,m,n);r&&Ur(m);this.isConnected&&Tr(m);return n}}(e),e.nativeAppendChild=d.prototype.appendChild,d.prototype.appendChild=function(k){return function(m){if(m instanceof DocumentFragment){var n=Array.from(m.children);
m=k.nativeAppendChild.call(this,m);if(this.isConnected){n=_.h(n);for(var r=n.next();!r.done;r=n.next())Tr(r.value)}return m}n=m instanceof Element&&m.isConnected;r=k.nativeAppendChild.call(this,m);n&&Ur(m);this.isConnected&&Tr(m);return r}}(e),e.nativeRemoveChild=d.prototype.removeChild,d.prototype.removeChild=function(k){return function(m){var n=m instanceof Element&&m.isConnected,r=k.nativeRemoveChild.call(this,m);
n&&c===k.nativeRemoveChild&&Ur(m);return r}}(e),e.nativeReplaceChild=d.prototype.replaceChild,d.prototype.replaceChild=function(k){return function(m,n){if(m instanceof DocumentFragment){var r=Array.from(m.children);
m=k.nativeReplaceChild.call(this,m,n);if(this.isConnected)for(Ur(n),n=_.h(r),r=n.next();!r.done;r=n.next())Tr(r.value);return m}r=m instanceof Element&&m.isConnected;var t=this.isConnected,u=k.nativeReplaceChild.call(this,m,n);t&&Ur(n);r&&Ur(m);t&&Tr(m);return u}}(e);
a=[Element];Vr&&a.push(Vr.Wrapper);a=_.h(a);d=a.next();for(e={};!d.done;e={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},d=a.next())d=d.value,d.prototype.before=sOa(d.prototype.before),d.prototype.after=sOa(d.prototype.after),e.nativeReplaceWith=d.prototype.replaceWith,d.prototype.replaceWith=function(k){return function(){var m=_.Kd.apply(0,arguments),n=_.h(tOa(m)),r=n.next().value,
t=n.next().value;n=this.isConnected;k.nativeReplaceWith.apply(this,m);m=_.h(t);for(t=m.next();!t.done;t=m.next())Ur(t.value);if(n)for(Ur(this),r=_.h(r),n=r.next();!n.done;n=r.next())n=n.value,n instanceof Element&&Tr(n)}}(e),e.nativeRemove=d.prototype.remove,d.prototype.remove=function(k){return function(){var m=this.isConnected;
k.nativeRemove.call(this);m&&Ur(this)}}(e),e.nativeInsertAdjacentElement=d.prototype.insertAdjacentElement,d.prototype.insertAdjacentElement=function(k){return function(m,n){var r=n.isConnected;
m=k.nativeInsertAdjacentElement.call(this,m,n);r&&Ur(n);m.isConnected&&Tr(m);return m}}(e),e.nativeSetAttribute=d.prototype.setAttribute,d.prototype.setAttribute=function(k){return function(m,n){var r=uOa(this);
if(!r.usePatchedLifecycles)return k.nativeSetAttribute.call(this,m,n);var t=this.getAttribute(m);k.nativeSetAttribute.call(this,m,n);n=this.getAttribute(m);vOa(r,m,t,n)}}(e),e.nativeRemoveAttribute=d.prototype.removeAttribute,d.prototype.removeAttribute=function(k){return function(m){var n=uOa(this);
if(!n.usePatchedLifecycles)return k.nativeRemoveAttribute.call(this,m);var r=this.getAttribute(m);k.nativeRemoveAttribute.call(this,m);r!==null&&vOa(n,m,r,null)}}(e),e.nativeToggleAttribute=d.prototype.toggleAttribute,d.prototype.toggleAttribute=function(k){return function(m,n){var r=uOa(this);
if(!this.usePatchedLifecycles)return k.nativeToggleAttribute.call(this,m,n);var t=this.getAttribute(m),u=t!==null;n=k.nativeToggleAttribute.call(this,m,n);n!==u&&vOa(r,m,t,n?"":null);return n}}(e);
a=[Document,DocumentFragment,Element,ShadowRoot];Vr&&a.push(Vr.Wrapper);a=_.h(a);for(e=a.next();!e.done;e=a.next())e=e.value,e.prototype.prepend=sOa(e.prototype.prepend),e.prototype.append=sOa(e.prototype.append);(Vr==null?void 0:Vr.noPatch)===!0&&wOa();document.readyState==="complete"?Tr(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Tr(document.body)});
var g=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");g&&g.get&&g.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:g.enumerable,configurable:!0,get:g.get,set:function(k){k||Ur(this);g.set.call(this,k);return k}})}};
sOa=function(a){return function(){var b=_.Kd.apply(0,arguments),c=_.h(tOa(b)),d=c.next().value;c=c.next().value;a.apply(this,b);b=_.h(c);for(c=b.next();!c.done;c=b.next())Ur(c.value);if(this.isConnected)for(d=_.h(d),b=d.next();!b.done;b=d.next())b=b.value,b instanceof Element&&Tr(b)}};
wOa=function(){for(var a=_.h(yOa),b=a.next();!b.done;b=a.next()){b=b.value.prototype;for(var c=_.h(zOa),d=c.next();!d.done;d=c.next()){d=d.value;var e=Object.getOwnPropertyDescriptor(b,d);e&&Object.defineProperty(b,"__shady_native_"+d,e)}}};
vOa=function(a,b,c,d){var e,g;if((e=a.polymerController)==null?0:(g=e.observedAttributes)==null?0:g.includes(b))if(a=a.polymerController,a.attributeChangedCallbackWrapper)a.attributeChangedCallbackWrapper.call(a,b,c,d);else{var k;(k=a.attributeChangedCallback)==null||k.call(a,b,c,d)}};
tOa=function(a){var b=[],c=[];a=_.h(a);for(var d=a.next();!d.done;d=a.next())d=d.value,d instanceof Element&&d.isConnected&&c.push(d),d instanceof DocumentFragment?b.push.apply(b,_.De(Array.from(d.children))):b.push(d);return[b,c]};
uOa=function(a){return!(a instanceof Element)&&a.node instanceof Element?a.node:a};
AOa=function(a,b){var c=b?["children"].concat(_.De(b)):["children"];b=[];c=_.h(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;if(a.hasOwnProperty(e)){d=a[e];d=typeof d==="function"?d():d;d=ii(Array.isArray(d)?d:[d]).flat();if(e!=="children"){e=TBa(e);for(var g=_.h(d),k=g.next();!k.done;k=g.next())k=k.value,k instanceof Element&&k.setAttribute("slot",e)}b.push(d)}}b.length===0?a=[]:(a=ii(_.q("div",null,b)),a=Array.from(a.childNodes));return a};
BOa=function(a,b,c){var d={};_.yh(function(){var e={},g;for(g in b)if(b.hasOwnProperty(g)){var k=void 0,m=void 0;if(!(((k=c.slotProps)==null?0:k.includes(g))||g==="children"||((m=c.callbackProps)==null?0:m.includes(g))||g==="ref")&&(k=_.Bh(b[g]),d[g]!==k)){d[g]=k;m=void 0;var n=(m=a.hostElement)!=null?m:a;if(g==="className"||g==="id")n[g]=k;e[g]=k}}qh(function(){if(a.setProperties)a.setProperties(e);else for(var r=_.h(Object.entries(e)),t=r.next();!t.done;t=r.next()){var u=_.h(t.value);t=u.next().value;
u=u.next().value;a[t]=u}})},"GxazDb")};
DOa=function(a,b,c,d){var e=AOa(c,d.slotProps),g=_.w("web_wcw_disable_slot_host_shady_dom_wrap")?a:(0,_.er)(a);e=_.h(e);for(var k=e.next();!k.done;k=e.next())g.appendChild(k.value);BOa(b,c,d);d=_.h(d.callbackProps||[]);for(g=d.next();!g.done;g=d.next())e=g=g.value,String(g).substring(0,2)==="on"&&c[e]?_.Rl({value:a},TBa(String(g).substring(2)),c[e]):b[e]=c[e];if(c.ref){c=_.h(COa(c.ref));var m=c.next().value,n=c.next().value,r=b.attached.bind(b);b.attached=function(){m(a);r()};
_.zh(function(){n()})}};
COa=function(a){if(typeof a==="function"){var b;return[function(c){b=a(c)},
function(){var c;(c=b)==null||c()}]}if(!a.onRender||!a.onUnmount)throw Error("Vg");
return[a.onRender,a.onUnmount]};
HOa=function(a,b,c,d,e){d=d===void 0?{}:d;var g=EOa,k=!1;g?(k=!0,EOa=void 0):(FOa=b,g=document.createElement(b),FOa=void 0);var m=g;m.usePatchedLifecycles=!0;m.lifecycleIsConnected=!1;g.loggingStatus={};var n=GOa(a,b,g,d,e);_.zh(function(){m.lifecycleIsConnected&&(m.lifecycleIsConnected=!1,n.disconnectedCallback())});
k||DOa(g,n,c,d);return g};
GOa=function(a,b,c,d,e){e=e===void 0?gOa:e;IOa[b]!=null||(IOa[b]=e(a,b,d==null?void 0:d.getTemplate,d));var g=IOa[b],k=g.ctor;e=g.getInitialMethods;var m=g.getPropsToForwardBeforeReady;a=g.getPropsToForwardBeforeRegister;d=g.shouldForwardProp;var n=g.observedAttributes,r=g.shouldLog,t=k(c,{beforeReady:function(){var u=t;u._takeAttributes?u._takeAttributes():u.setPropertiesFromInitialAttributeValues&&u.setPropertiesFromInitialAttributeValues();u=_.h(m(c.polymerController));for(var x=u.next();!x.done;x=
u.next()){var A=_.h(x.value);x=A.next().value;A=A.next().value;jOa(c,x,A);r(b)&&!Sr(x)&&mOa(c.polymerController,x)}c.polymerController=ZKa(t,b)}});
c.polymerController=t;c.polymerController.observedAttributes=n;g=_.h(t.getExtraMethodsToForward());for(k=g.next();!k.done;k=g.next())n=_.h(k.value),k=n.next().value,n=n.next().value,kOa(c,k,n);e=_.h(e());for(g=e.next();!g.done;g=e.next())g=g.value,d(g)&&kOa(c,g),r(b)&&!Sr(g)&&lOa(t,g);a=_.h(a());for(d=a.next();!d.done;d=a.next())e=_.h(d.value),d=e.next().value,e=e.next().value,jOa(c,d,e);return t};
KOa=function(a,b){return Wr===b?(a.isInert=!0,Wr="",!0):JOa===b?(a.isInert=!0,JOa="",!0):!1};
LOa=function(a){var b=Xr;Xr=a;return b};
NOa=function(a){if(Yr.has(a))JOa=a;else if(Zr.has(a)&&Xr&&MOa(Xr)===a){var b;(b=Xr)._numRenders!=null||(b._numRenders=0);Xr._numRenders++;if(Xr._numRenders>1)throw Error("Wg");return Xr}};
OOa=function(a){Yr.has(MOa(a))?JOa=MOa(a):Zr.has(MOa(a))&&Xr!==a&&(a._isInert=!0)};
MOa=function(a){var b;return(b=a==null?void 0:a.tagName.toLowerCase())!=null?b:""};
POa=function(a,b){if(a.componentType===sh)throw Error("Xg");Zr.add(b);var c=function(){var d=HTMLElement.call(this)||this;d.is=b;if(FOa===b)return d.isInert=!0,d;d.createElement();return d};
_.z(c,HTMLElement);c.prototype.createElement=function(){if(!this.isInert){EOa=this;var d=_.h(hva(function(){return _.q(a,null)})).next().value;
EOa=void 0;EMa(this);return d}};
customElements.define(b,c)};
ROa=function(a,b,c,d,e){a.prototype.is=b;(d==null?0:d.useSink)?QOa(a,b,c,d,e):(c=gOa(a,b,c,d),nOa(c,b));return a};
QOa=function(a,b,c,d,e){xOa();var g=_.Rr(function(k){return HOa(a,b,k,Object.assign({},d,{getTemplate:c}),e)},"a");
POa(g,b);return g};
TOa=function(a){return!SOa.has(a)};
WOa=function(a,b,c,d){function e(){if(!u){for(var x=new Set(UOa),A=_.h(g.behaviors),C=A.next();!C.done;C=A.next()){C=C.value;for(var F=_.h(Object.getOwnPropertyNames(C)),J=F.next();!J.done;J=F.next()){J=J.value;var I=void 0,R=(I=Object.getOwnPropertyDescriptor(C,J))==null?void 0:I.value;R&&R instanceof Function&&x.add(J)}}A=_.h(Object.entries(Object.getOwnPropertyDescriptors(a.prototype)));for(C=A.next();!C.done;C=A.next())F=_.h(C.value),C=F.next().value,F=F.next().value,F.value instanceof Function&&
x.add(C);u=x}return u}
var g=FNa({is:b,disableElementRegistration:!1,getTemplate:c,providers:d==null?void 0:d.providers,reactivityMode:d==null?void 0:d.reactivityMode},a);if((d==null?0:d.allowedProps)||(d==null?0:d.allowedPropsFromBehaviors)){var k,m;g.allowedProps=[].concat(_.De((k=d.allowedProps)!=null?k:[]),_.De((m=d.allowedPropsFromBehaviors)!=null?m:[]))}var n=yNa(g,a);b=n.observedAttributes;var r={};c=_.h(g.reactiveSchemas);for(d=c.next();!d.done;d=c.next())if(d=d.value,d.type==="signal")r[d.propertyKey]={readOnly:d.readOnly},
d.readOnly&&(r[xLa(d.propertyKey)]={readOnly:!0});else if(d.type==="compute"||d.type==="computeWithMethod"||d.type==="redux")r[d.propertyKey]={readOnly:!0};var t=g.reactiveSchemas.length,u;return{ctor:function(x,A){x=new n(x);x.beforeReady=A.beforeReady;return x},
props:r,observedAttributes:b,getInitialMethods:e,getPropsToForwardBeforeRegister:function(){for(var x=[],A=new Set,C=_.h(VOa),F=C.next();!F.done;F=C.next())F=F.value,x.push([F,F!=="observers"&&F!=="properties"]),A.add(F);C=_.h(Object.keys(r));for(F=C.next();!F.done;F=C.next())F=F.value,x.push([F,r[F].readOnly]),A.add(F);C=e();F=_.h(Object.keys(Object.getOwnPropertyDescriptors(a.prototype)));for(var J=F.next();!J.done;J=F.next())J=J.value,!TOa(J)||C.has(J)||A.has(J)||(x.push([J,!1]),A.add(J));x.push(["allowedProps",
!0]);return x},
getPropsToForwardBeforeReady:function(x){var A=[];x=_.h(Object.keys(x));for(var C=x.next();!C.done;C=x.next()){C=C.value;var F=e();TOa(C)&&!F.has(C)&&A.push([C,!1])}x=_.h(g.reactiveSchemas.slice(t));for(C=x.next();!C.done;C=x.next())C=C.value,C.type!=="compute"&&C.type!=="computeWithMethod"&&C.type!=="redux"&&C.type!=="signal"||A.push([C.propertyKey,C.type==="signal"?C.readOnly:!0]);return A},
shouldForwardProp:TOa,shouldLog:nr}};
_.S=function(a,b,c,d){var e,g,k=(g=(e=d)==null?void 0:e.mode)!=null?g:0;d!=null||(d={});var m;(m=d).reactivityMode!=null||(m.reactivityMode=0);k===1&&_.bj("creator_poly_si_disable_list").includes(b)&&(k=2);return k===1?ROa(a,b,c,Object.assign({},d,{useSink:!0}),WOa):ROa(a,b,c,Object.assign({},d,{useSink:k===2}))};
_.$r=function(){return function(a,b,c,d){var e,g,k=(g=(e=d)==null?void 0:e.mode)!=null?g:2;d!=null||(d={});var m;(m=d).reactivityMode!=null||(m.reactivityMode=0);if(k===0)throw Error("Yg`"+k);return QOa(a,b,c,d,k===1?WOa:void 0)}};
_.as=function(a){return _.w("creator_poly_si_killswitch")?!1:_.w("force_all_poly_si_batches")&&(a==="poly_si_all_on_test_check"||a==="creator_poly_si_batch_050"?0:a)||document.documentElement.hasAttribute("use-signals")?!0:!a||_.w(a+"_holdback_enabled")&&_.w("kevlar_polysi_holdback")?!1:_.w(a)};
bs=function(a){return a?a.icon?a.icon.iconType.toLowerCase():a.customThumbnail?"member":"":""};
XOa=function(a){if(!a)return"";a=_.h(a);for(var b=a.next();!b.done;b=a.next())if((b=b.value)&&b.liveChatAuthorBadgeRenderer&&(b=bs(b.liveChatAuthorBadgeRenderer))&&b!=="verified")return b;return""};
YOa=function(a,b){if(!a)return null;var c;return((c=a.find(function(d){return d&&d.liveChatAuthorBadgeRenderer?bs(d.liveChatAuthorBadgeRenderer)===b:!1}))==null?void 0:c.liveChatAuthorBadgeRenderer)||null};
_.dPa=function(a){var b=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;a=ZOa(a);b=ZOa(b);var c=$Oa(a.hex);b=$Oa(b.hex);var d=b[0]/255;var e=b[1]/255,g=b[2]/255,k=Math.max(d,e,g),m=Math.min(d,e,g),n=0,r=0,t=.5*(k+m);k!=m&&(k==d?n=60*(e-g)/(k-m):k==e?n=60*(g-d)/(k-m)+120:k==g&&(n=60*(d-e)/(k-m)+240),r=0<t&&t<=.5?(k-m)/(2*t):(k-m)/(2-2*t));d=[Math.round(n+360)%360,r,t];c=aPa(c,b);for(a=bPa(a.hex);c<4.5;){a=d[2]>=.5?a.darker((4.5-c)/2):a.brighter((4.5-c)/2);c=a.toString();
e=cPa(c);if(!e.length)throw Error("Vd`"+c);c=e;c=aPa(c,b)}return a.hex()};
aPa=function(a,b){a=_.$Ia(a);b=_.$Ia(b);return(Math.max(a,b)+.05)/(Math.min(a,b)+.05)};
_.cs=function(a){return"#"+("000000"+(a&16777215).toString(16)).slice(-6)};
_.ePa=function(a){for(var b=0,c=0;c<a.length;c++)b=a.charCodeAt(c)+((b<<5)-b);a="#";for(c=0;c<3;c++)a+=("00"+(b>>c*8&255).toString(16)).slice(-2);return a};
fPa=function(a){a=(a||"").split(":");a.length===1&&a.unshift("yt-icons");a[1]=a[1].toLowerCase();return a};
lPa=function(a,b){var c=(b=b===void 0?!1:b)?gPa:hPa,d=b?iPa:jPa;a.getIconNames().forEach(function(e){e=b?e:e.substring(e.indexOf(":")+1);a.name==="yt-icons"?kPa.add(e):e.includes("-filled")?c.add(e):d.add(e)})};
ds=function(a,b,c,d){c=c===void 0?!1:c;d=d===void 0?!1:d;var e,g,k;return _.l(function(m){if(m.nextAddress==1)return _.p(m,mPa,2);if(d)return m.return(kPa.has(a));e=c?gPa:hPa;g=c?iPa:jPa;return b?(k=a.includes("-filled")?a:a.concat("-filled"),m.return(e.has(k))):m.return(g.has(a))})};
_.pPa=function(a){if(nPa(a))return a;var b=a=a.toLowerCase();(a=oPa.get(a))&&(b=a);return b};
_.es=function(a){if(nPa(a))return a.toString();var b=qPa.get(a);if(b)return b;b=a.toLowerCase();var c="yt-icons",d=b.replace(/_/g,"-");switch(a){case "MY_CHANNEL":b="account_circle";break;case "ADD_TO_LIBRARY":b="add";break;case "ALERT_WARN_RED":b="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":b="person_music";break;case "BLOCK_USER":b="block";break;case "CAPTIONS":b="closed_caption";break;case "CLOSED_CAPTION":c="av";b="closed-caption";break;case "COLLECTION":c="maps";b="layers";break;case "CONTACT":c=
"icons";b="business";break;case "CREATOR_STUDIO_ERROR_ON_LOAD":case "CREATOR_STUDIO_ERROR_ON_LOAD_V2":case "CREATOR_STUDIO_NO_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS_V2":case "CREATOR_STUDIO_NO_SEARCH_MATCH":case "CREATOR_STUDIO_NO_SEARCH_MATCH_V2":c="ytcp-icons";b=d.split("creator-studio-")[1];break;case "DISMISSAL":b="close";break;case "DO_NOT_DISTURB":b="block";break;case "DOGFOOD":c="icons";b="pets";break;case "DRAFT":b="paper_corner_folded";break;
case "EMPTY_LIKE":b="like_outline";break;case "EXIT_APP":b="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":b=d;break;case "GAMES":c="ytg";b="my-games";break;case "GO_TO_PAGE":b="arrow-forward";break;case "GROUP":c="social";break;case "HIDE":b="not_interested";break;case "INPUT_COMPONENT":c="icons";b="settings-input-component";break;case "KIDS_BLOCK":b="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":c="ytg";b="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":c=
"ytg";b="membership-post-purchase";break;case "MULTIVIEW":b="screen_multi_view";break;case "MY_LOCATION":c="maps";b=d;break;case "NOTIFICATIONS_INBOX":b="NOTIFICATIONS";break;case "NEXT":b="chevron_right";break;case "OFFLINE":b="power-settings-new";break;case "PAUSE":c="miniplayer";break;case "PAYMENT":c="icons";break;case "PHONE_DOWNLOAD":b="phone_download";break;case "PREMIUM_STANDALONE":c="yt-logos";b="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":c="yt-logos";b="premium_standalone_cairo";
break;case "QUESTION_ANSWER":b="question_answer";break;case "REDEEM":c="icons";b="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":b="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":b="library_add";break;case "SCHOOL":c="yt-sys-icons";b="creator_academy";break;case "SETTINGS_LIGHT":b="settings_applications";break;case "SETTINGS_MATERIAL":b="settings";break;case "SEARCH_HISTORY":b="watch_history";break;case "SHOPPING_BAG":b="bag";break;case "SOCIAL":case "PEOPLE":c=
"yt-icons";b="people";break;case "STAFF_PICK":c="ytg";b="spotlight";break;case "START_DVR":b="add";break;case "STOP_DVR":c="av";b="stop";break;case "TAB_LIKED":b="like";break;case "TAB_INBOX":b="mail";break;case "TERMS_OF_SERVICE":c="icons";b="description";break;case "TRENDING":b="fire";break;case "UNBLOCK_USER":b="remove";break;case "UNPLUGGED_DARK_THEME":c="image";b="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":b="live";break;case "UNPLUGGED_SPORTS":c="ytu";b="visibility-off";break;
case "VIDEOS":c="av";b="play-circle-filled";break;case "YOUTUBE":c="yt-logos";b="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":c="yt-logos-ext";b="yt-logo-red-updated";break;case "YOUTUBE_LOGO":c="yt-logos-ext";b="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":c="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":c="shorts";b=d;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":c="yt-sys-icons";b="youtube_improve_tv";break;case "OUTLINE_BAG":c=
"yt-sys-icons";b="bag";break;case "QUEUE_PLAY_LAST":c="yt-sys-icons";b="list_queue_last";break;case "SLASH_CIRCLE_LEFT":b="slash_circle_left";break;case "SPEED_1_POINT_2X":b="1_point_2x";break;case "SPEED_1_POINT_5X":b="1_point_5x";break;case "SPEED_1_POINT_8X":b="1_point_8x";break;case "SPEED_POINT_2X":b="point_2x";break;case "SPEED_POINT_5X":b="point_5x";break;case "SPEED_POINT_8X":b="point_8x";break;case "SPEED_1X":b="1x";break;case "SPEED_2X":b="2x";break;case "OUTLINE_CLOCK_HALF_CIRCLE":c="yt-sys-icons";
b="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":c="yt-sys-icons";b="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":c="yt-sys-icons",b="tic_tac_toe"}b=c+":"+b;qPa.set(a,b);return b};
nPa=function(a){var b;_.w("kevlar_use_wil_icons")?b=!!_.v().resolve(_.fs).resolveIcon({iconName:a.toString()}):b=!1;return b};
_.hs=function(a,b,c,d){c=c===void 0?{}:c;d=d===void 0?!1:d;c===null&&(c={});var e=_.bj("kevlar_command_handler_command_banlist");e=_.h(e);for(var g=e.next();!g.done;g=e.next())if(g=a?a.hasOwnProperty(g.value):void 0,g)return!1;e=_.y(a.commandMetadata,_.co);return d&&e!=null&&e.url?!1:!b.disableCommandHandlerOverride&&_.gs.instance?(d=_.gs.instance,c.form||(c.form={element:b}),c.form.element||(c.form.element=b),!c.clickedVisualElement&&b.visualElement&&(c.clickedVisualElement=b.visualElement),d.resolveCommand(a,
c),!0):!1};
rPa=function(a,b){a=is(a);for(var c=_.h(a.visibilityMonitorKeys||[]),d=c.next();!d.done;d=c.next())b.unobserveByKey(d.value);a.visibilityMonitorKeys=void 0};
vPa=function(a,b){if(_.En()){if(_.w("kevlar_vimio_use_shared_monitor"))sPa(a,b.data);else if(!sPa(a,b.data))return;var c=b.data,d=tPa(c);if(_.w("enable_client_ve_spec_logging"))rPa(a,b.observer);else{var e=is(a);e.trackedParams&&e.trackedParams!==d&&rPa(a,b.observer)}e=is(a);!c||e.data&&e.data===c||(e.data=c);uPa(a,b);e.trackedParams=d}};
uPa=function(a,b){var c=b.observer;if(!c&&_.w("web_skip_missing_vimio_observer")){var d,e;_.Dl(new _.qj("VisibilityObserver is not defined.",a.tagName,a.trackedParams,(d=b.data)==null?void 0:d.trackingParams,(e=b.data)==null?void 0:e.loggingDirectives))}else{var g=b.layer,k=b.visibilityCallback||function(){},m=b.prescanCallback,n=is(a);
d=[];b.showOption&&d.push(c.observe(a,function(){b.skipLogging&&b.skipLogging()||_.js().reportShown(n,void 0,g);k(!0)},b.showOption));
b.hideOption&&d.push(c.observe(a,function(){_.js().reportHidden(n,void 0,g);k(!1)},b.hideOption));
b.prescanOption&&m&&d.push(c.observe(a,function(){m()},b.prescanOption));
n.visibilityMonitorKeys=d}};
sPa=function(a,b){a=is(a);if(a.visualElement&&!b)return!0;if(!b)return!1;var c=!1;if(_.w("enable_client_ve_spec_logging")){var d,e;c=!!((d=b.loggingDirectives)==null?0:(e=d.clientVeSpec)==null?0:e.uiType)}d=tPa(b);if(!d&&!c)return!1;_.w("mweb_component_visibility_logging")&&(a.veContainer||(a.veContainer={}),a.veContainer.trackingParams=d);if(a.trackedParams&&a.trackedParams===d)return!1;var g;if(_.w("enable_client_ve_spec_logging")&&((g=a.visualElement)==null?0:g.isClientVe())){var k;g=(k=a.visualElement)==
null?void 0:k.getAsJspb();var m,n,r,t;if(_.bg(g,2)===((m=b.loggingDirectives)==null?void 0:(n=m.clientVeSpec)==null?void 0:n.uiType)&&_.bg(g,3,-1)===((r=b.loggingDirectives)==null?void 0:(t=r.clientVeSpec)==null?void 0:t.elementIndex))return!1}if(_.w("enable_client_ve_spec_logging")){var u,x;!a.visualElement&&((u=b.loggingDirectives)==null?0:(x=u.clientVeSpec)==null?0:x.uiType)&&(m=b.loggingDirectives.clientVeSpec,b=m.uiType,k=m.elementIndex,m=m.clientYoutubeData,a.visualElement=_.ks(_.ls(),{veType:b,
elementIndex:k,clientYouTubeData:m}))}return!0};
tPa=function(a){if(a==null?0:a.rendererContext){var b=_.y(a.rendererContext,_.wPa);if(b==null?0:b.loggingDirectives)return b.loggingDirectives.trackingParams}return(a==null?0:a.loggingDirectives)?a.loggingDirectives.trackingParams:a==null?void 0:a.trackingParams};
is=function(a){var b;return(b=a.polymerController)!=null?b:a};
APa=function(a){_.js();if(_.Ii(ms().JSC$10284_elementShouldLogGesture).bind(ms())(a,4)){xPa(a);var b=yPa(a);zPa.set(a,b)}};
xPa=function(a){zPa.has(a)&&(zPa.get(a).cancel("untrack hover element"),zPa.delete(a))};
yPa=function(a){var b,c=[],d=!1,e=new _.il(function(g,k){ns(a,"mouseenter",_.Ii(function(){var m,n,r;return _.l(function(t){if(t.nextAddress==1)return b=(0,_.Uj)(),m=BPa(a),c.push(m),n=CPa(a,function(){d=!0;k(Error("Zg"))}),_.p(t,m,2);
if(t.nextAddress!=3)return n&&os(n),r=DPa(a),c.push(r),_.p(t,r,3);g();_.ue(t)})}))});
e.then(function(){var g=(0,_.Uj)()-b;g=Math.round(g);if(!(500>g||6E5<=g)){var k=a.getScreenLayer?a.getScreenLayer():void 0;k=_.En(k)||"";var m=EPa(_.js(),a);_.Yo(k,a.visualElement?a.visualElement:_.ps(m),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:g}})}APa(a)},function(){qs&&(qs(),qs=null);
d&&(xPa(a),APa(a))});
return e};
BPa=function(a){var b;return(new _.il(function(c,d){qs=function(){d(Error("$g"))};
b=_.zk.debounce(_.Ii(function(){os(e);c()}),1,100);
var e=_.rs(a,"mousemove",b)})).thenCatch(function(){var c=_.zk.cancelDebouncedJobMap.get(b);
c&&_.zk.cancelJob(c)})};
DPa=function(a){var b;return(new _.il(function(c,d){qs=function(){d(Error("ah"))};
b=ns(a,"mouseleave",_.Ii(function(){c()}))})).thenCatch(function(){os(b)})};
CPa=function(a,b){return ns(a,"mouseleave",_.Ii(b))};
GPa=function(a){FPa&&_.ss.cancel(FPa);FPa=_.ss.run(function(){_.io(a,"yt-visibility-refresh");FPa=0})};
HPa=function(a){a=Number(a);return"rgba("+[a>>16&255,a>>8&255,a&255,(a>>24&255)/255].join()+")"};
JPa=function(a){if(!a)return!1;if(_.y(a,_.IPa))return!0;var b;if(a=(b=_.y(a,_.ro))==null?void 0:b.commands)for(b=_.h(a),a=b.next();!a.done;a=b.next())if(_.y(a.value,_.IPa))return!0;return!1};
KPa=function(a){var b=!0;b=b===void 0?!0:b;if(!a.useSignals&&!a.experimentalPropertiesChanged||_.w("experimental_templating_behavior_nopatch_killswitch")){var c=a._propertiesChanged;a._propertiesChanged=function(d,e,g){b?a.debounceRender():a.doRender();c&&c.call(a,d,e,g)}}};
LPa=function(a,b){if(a.useSignals||a.experimentalPropertiesChanged)if(_.w("experimental_templating_behavior_nopatch_killswitch"))a.experimentalPropertiesChanged=function(){};
else return;var c=new Set,d=[a].concat(_.De(a.behaviors));d=_.h(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;for(var g in e.properties)c.has(g)||(a._addPropertyEffect(g,"function",b),c.add(g))}};
MPa=function(){var a=Polymer.Element,b=a._prepareTemplate;a._prepareTemplate=function(){b.call(this);var c=this.prototype;if(c.experimentalTemplatingInUse&&c.experimentalTemplatingInUse()&&c.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.Bl(Error("bh"));else{c=this.template.content.childNodes;for(var d=c.length-1;d>=0;d--){var e=c[d];e.nodeName!=="STYLE"&&e.nodeName!=="LINK"&&e.nodeName!=="SCRIPT"&&e.nodeName!=="#comment"&&e.remove()}}}};
NPa=function(a){var b=!0;b=b===void 0?!0:b;MPa();var c=a.ready;a.ready=function(){this._template=null;c.call(this)};
LPa(a,b?a.debounceRender:a.doRender)};
PPa=function(a,b,c){if(c===null||c===void 0)return c;var d=Vla(a.tagName.toLowerCase(),b,function(){throw Error("Sb");});
if(d===null)return c;d=OPa[d];var e;if((e=d.isUnwrappable)==null?0:e.call(d,c)){if(d.unwrap)return d.unwrap(c);throw Error("eh");}return d.filterString?d.filterString(a.tagName,b,String(c)):c};
QPa=function(a,b,c){var d=b[b.length-1]!=="$",e=PPa(a,b,c);if(d)if(typeof e==="function"&&b.startsWith("reactiveon")&&b===b.toLowerCase()){var g=_.Ug;ema(a,b.slice(8),function(k){Ch(g,function(){e(k)})})}else a[b]=e;
else c=e==null?null:String(e),dma(a,b.slice(0,-1),c)};
ts=function(a){RPa.length===0&&requestAnimationFrame(function(){setTimeout(function(){var b=RPa.slice();RPa.length=0;b=_.h(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;try{c()}catch(d){_.On(d)}}})});
RPa.push(a)};
SPa=function(a){if(a){var b=a.component;if(b){var c;b==null||(c=b.events)==null||c.publish("DISCONNECTED");var d;b==null||(d=b.onDisconnected)==null||d.call(b)}var e,g;(e=a.__spec)==null||(g=e.didUnmount)==null||g.call(e);for(b=0;b<a.childNodes.length;b++)SPa(a.childNodes[b])}};
vs=function(a,b,c){var d=b&&b.key,e=Oh;e[0]=a;e[1]=d;e[2]=void 0;for(var g in b)b.hasOwnProperty(g)&&(a=b[g],d=Ph,d.push(g),d.push(a));b=Oh;a:{if(g=Oh[2])for(a=0;a<g.length;a+=2)if(g[a]==="nonce"){g=g[a+1];break a}g=""}g=rma(b[0],b[1],g);a=Fh(g);d=b[2];if(!a.staticsApplied&&(a.staticsApplied=!0,d&&d.length))if((e=a._attrsArr)&&e.length){for(e=0;e<d.length;e+=2)us[d[e]]=e+1;e=a._attrsArr||(a._attrsArr=cma(0));for(var k=0,m=0;m<e.length;m+=2){var n=e[m],r=e[m+1],t=us[n];t?d[t]===r&&delete us[n]:(e[k]=
n,e[k+1]=r,k+=2)}Dh(e,k);for(var u in us)jma(g,u,d[us[u]],Vl),delete us[u]}else for(u=0;u<d.length;u+=2)jma(g,d[u],d[u+1],Vl);yma(g,a,Vl);Dh(b,0);c&&c(Gh);sma()};
ws=function(a){var b=a.toString().toLowerCase();return function(c,d){vs(b,c,d)}};
TPa=function(a){var b=xs,c,d=(c=a.hostProps)!=null?c:a.config;b.getHostProps&&(d=b.getHostProps(a));vs(b.tagName,d,function(e){var g=!1;a.ref&&(a.ref.value=e);if(!e.component){var k=new b(e,a);g=!0;e.component=k;k.events.publish("CONNECTED")}e.component.willReceiveProps&&a!==e.component.props&&e.component.willReceiveProps(a);e.component.props=a;if(e.data!==a.data||a)e.data=a.data||a;if(g){k=e.component;var m={stack:[],error:void 0,hasError:!1};try{_.Pr(m,_.Yg(k.owner));var n=ch(ji);try{k.render()}finally{ch(n)}}catch(u){m.error=
u,m.hasError=!0}finally{_.Qr(m)}}else e.component.patchInternal();e.component.events.publish("UPDATED");if(g){var r,t;(t=(r=e.component).onMounted)==null||t.call(r)}})};
_.ys=function(a,b,c){c===void 0?delete a[b.name]:a[b.name]=c};
_.zs=function(a){var b={androidIncludeFontPadding:!1},c=0,d=[],e=[],g=[];if(a.simpleText)return b.content=a.simpleText,b;if(a.runs===void 0)return b.content="",b;a=_.h(a.runs);for(var k=a.next();!k.done;k=a.next()){k=k.value;var m=k.text,n=void 0,r=(n=m)==null?void 0:n.length;if(m&&r){d.push(m);if(k.bold||k.italics||k.strikethrough||k.underline||k.textColor!=null&&k.textColor!==0||k.deemphasize){m=e;n=m.push;var t={startIndex:c,length:r};k.bold&&(t.weightLabel="FONT_WEIGHT_MEDIUM");k.italics&&(t.italic=
!0);k.strikethrough&&(t.strikethrough="LINE_STYLE_SINGLE");k.underline&&(t.underline="LINE_STYLE_SINGLE");k.textColor!=null&&k.textColor!==0?document.documentElement.hasAttribute("dark")?t.fontColor=k.darkModeTextColor||k.textColor:t.fontColor=k.textColor:k.deemphasize&&(document.documentElement.hasAttribute("dark")?t.fontColor=parseInt("ff"+UPa("#aaa").substring(1),16):t.fontColor=parseInt("ff"+UPa("#606060").substring(1),16));n.call(m,t)}k.navigationEndpoint&&(m=g,n=m.push,t={startIndex:c,length:r,
onTap:{innertubeCommand:k.navigationEndpoint}},k.loggingDirectives&&_.ys(t,VPa,k.loggingDirectives),n.call(m,t));c+=r}}b.content=d.join("");b.styleRuns=e.length?e:void 0;b.commandRuns=g.length?g:void 0;return b};
XPa=function(a){if(a==null||!a.runs)return!0;a=_.h(a.runs);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.bracket||b.errorUnderline||b.deemphasize||_.y(b,As)||_.y(b,WPa))return!1;return!0};
YPa=function(a,b){return function(c){var d=b.unit;if(d!==c)throw Error("hh`"+a+"`"+d+"`"+c);return b}};
Bs=function(a){if(!((a==null?0:a.value)&&(a==null?0:a.unit)))return"";switch(a.unit){case "DIMENSION_UNIT_FRACTION":var b="%";break;default:b="px"}a=a.value;b==="%"&&(a*=100);return""+a+b};
ZPa=function(a){try{return a()}catch(b){_.Dl(b)}};
_.Ds=function(a){var b=_.y(a,_.Cs);if(b)return b;if((b=_.y(a,$Pa))&&b.commands)return aQa(b.commands);if((b=_.y(a,bQa))&&b.commands)return aQa(b.commands);if((a=_.y(a,cQa))&&a.identifier&&a.command&&(dQa||(dQa=[]),!dQa.includes(a.identifier)))return dQa.push(a.identifier),_.y(a.command,_.Cs)};
aQa=function(a){if(a.length!==0){var b=[];a=_.h(a);for(var c=a.next();!c.done;c=a.next())(c=_.Ds(c.value))&&b.push(c);return{commandExecutorCommand:{commands:b}}}};
_.Fs=function(a){var b=a.defaultTarget,c=a.elementConfig,d=a.elementsCommand,e=a.skipOnClick,g=a.forceNewState,k=a.additionalCommandArgs,m=a.innertubeCommand||_.Ds(d);if(m){a={};var n=eQa(m);d=n.navigatingCommand;n=n.href;d&&n?(a.href$=n,fQa(a,d,n,b),_.w("web_atagconfig_pointerdown")&&gQa(a,d),g&&(a["force-new-state$"]=!0)):(a.role$="button",a.href$="javascript:void(0);");_.y(m,hQa)&&(a["aria-haspopup$"]=!0);e||(a.onclick=function(r){if(iQa(r)){var t=Object.assign({},{form:{element:r.target,event:r}},
k);r.preventDefault();_.Es(m,t)}});
return Object.assign({},c,a)}};
jQa=function(a){if(a.length){if(a.length===1)return a[0];var b={};_.ys(b,_.ro,{commands:a});return b}};
kQa=function(a){return a&&a.href$!=="javascript:void(0);"};
eQa=function(a){var b,c=((b=_.y(a,_.ro))==null?void 0:b.commands)||[a];a=_.h(c);for(b=a.next();!b.done;b=a.next()){b=b.value;var d=void 0,e=void 0;c=(e=_.y((d=b)==null?void 0:d.commandMetadata,_.co))==null?void 0:e.url;_.w("web_remove_web_navigation_endpoint_data")||(d=void 0,c=c||((d=_.y(b,lQa))==null?void 0:d.url));if(c&&c!=="/service_ajax"){if(d=Gd(c,mQa))return a=_.Ed(d),{navigatingCommand:b,href:a};_.Dl(new _.qj("AttributedString URL could not be sanitized",c))}}return{}};
iQa=function(a){return a.button!==void 0?a.button===0&&!(a.shiftKey||a.altKey||a.metaKey||a.ctrlKey):!(a.shiftKey||a.altKey||a.metaKey||a.ctrlKey)};
fQa=function(a,b,c,d){c=!Ui(c);var e,g,k;if((e=_.y(b,_.oq))!=null&&e.nofollow||(g=_.y(b,_.Un))!=null&&g.nofollow||(k=_.y(b,_.Kl))!=null&&k.nofollow||c)a.rel$="nofollow";var m;b=((m=_.y(b,_.Kl))==null?void 0:m.target)==="TARGET_NEW_WINDOW"?"_blank":d===void 0?"":d;a.target$=b};
gQa=function(a,b){b.clickTrackingParams&&(a.params={itct:b.clickTrackingParams});a.onpointerdown=function(c){nQa(c)};
a._data=b};
oQa=function(a){(a.loggingUrls||[]).forEach(function(b){Kk(b.baseUrl,b.attributionSrcMode)})};
pQa=function(a){a.currentTarget._data&&oQa(a.currentTarget._data)};
nQa=function(a){var b=a.currentTarget;a=ZPa(function(){return b.href});
var c=b.params;a&&_.ao(a,c||{},8,!0)};
qQa=function(a,b){if(b=_.y(b,_.Kl))(b==null?void 0:b.target)==="TARGET_NEW_WINDOW"&&(a.target="_blank"),b.nofollow&&(a.rel="nofollow")};
rQa=function(a){a=_.y(a==null?void 0:a.commandMetadata,_.co);return(a==null?0:a.url)?a.url:null};
_.Gs=function(a,b){(a=_.Ds(a))&&_.Es(a,b)};
_.Es=function(a,b){roa(function(c){b?c.resolveCommand(a,b):c.resolveCommand(a)})};
vQa=function(a,b){var c=["yt-core-attributed-string__link"];b!=null&&b.noLinkColor||((b==null?0:b.isOverlay)?c.push("yt-core-attributed-string__link--overlay-call-to-action-color"):c.push("yt-core-attributed-string__link--call-to-action-color"),(b==null?0:b.linkInheritColor)&&c.push("yt-core-attributed-string--link-inherit-color"));c={className:c.join(" "),tabindex$:"0"};var d=a.onTap||a.onLongPress;if(!d)return c;var e=sQa(a);e&&(c["aria-label$"]=e);b=_.Fs({elementsCommand:d,elementConfig:c,skipOnClick:!(b==
null||!b.skipOnClick),forceNewState:!0});a.onLongPress&&(d=new tQa(function(){var g=_.Ds(a.onLongPress);g&&_.v().resolve(_.Yi).resolveCommand(g)}),b&&uQa(d,b));
return b||c};
sQa=function(a){var b,c;return(b=a.onTapOptions)==null?void 0:(c=b.accessibilityInfo)==null?void 0:c.accessibilityLabel};
wQa=function(a){var b=a;a<=16777215&&(b+=parseInt("ff000000",16));return _.Dq(b)};
xQa=function(a){var b=a.isDarkTheme;var c=a.extension;a=a.runColor;var d=void 0;if(c=c==null?void 0:c.colorMap){b=b?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";c=_.h(c);for(var e=c.next();!e.done;e=c.next())if(e=e.value,b===e.key){d=e.value;break}}d==null&&a&&(d=a);if(d)return wQa(d)};
Hs=function(a){var b=a.config;var c=a.image;var d=a.imageConfig;var e=a.imageWrapperConfig;var g=a.run;var k=a.tag;var m=a.textLength;var n=a.startIndex===void 0?0:a.startIndex;a=a.length;n===void 0&&(n=0);g={run:g,startIndex:n,endIndex:a!==void 0?n+a:m,tag:k};c&&(g.image=c);d&&(g.imageConfig=d);e&&(g.imageWrapperConfig=e);b&&(g.config=b);return g};
zQa=function(a,b){var c=[];c.push("yt-core-attributed-string");(b==null?0:b.className)&&c.push(b==null?void 0:b.className);(b==null?0:b.ellipsisTruncate)?c.push("yt-core-attributed-string--ellipsis-truncate"):(b==null?0:b.noWrap)?c.push("yt-core-attributed-string--white-space-no-wrap"):(b==null?0:b.noPreWrap)||c.push("yt-core-attributed-string--white-space-pre-wrap");(b==null?0:b.linkInheritColor)&&c.push("yt-core-attributed-string--link-inherit-color");a.alignment&&c.push(yQa(a.alignment));a.lineBreakMode&&
c.push("yt-core-attributed-string--word-wrapping");return c.join(" ")};
AQa=function(a){if(a.weight)return a.weight;switch(a.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
BQa=function(a){switch(a){case "LINE_STYLE_DOT":return"yt-core-attributed-string--line-style-dot";case "LINE_STYLE_NONE":return"yt-core-attributed-string--line-style-none";default:return"yt-core-attributed-string--line-style-single"}};
yQa=function(a){switch(a){case "TEXT_ALIGNMENT_LEFT":return"yt-core-attributed-string--text-alignment-left";case "TEXT_ALIGNMENT_RIGHT":return"yt-core-attributed-string--text-alignment-right";case "TEXT_ALIGNMENT_CENTER":return"yt-core-attributed-string--text-alignment-center";case "TEXT_ALIGNMENT_JUSTIFIED":return"yt-core-attributed-string--text-alignment-justified";case "TEXT_ALIGNMENT_LAYOUT_START":return"yt-core-attributed-string--text-alignment-layout-start";default:return"yt-core-attributed-string--text-alignment-unknown"}};
DQa=function(a,b,c){var d=b;a.content&&c&&(c=a.content.indexOf("\n"),c!==-1&&(d=Math.min(b,c)));if(!a.content||a.content.length<=d)b=a;else if(a.attachmentRuns||a.commandRuns||a.decorationRuns||a.styleRuns||a.paragraphStyleRuns){b=Is(a.content,d);c=d;var e=a.attachmentRuns;if(e){var g=[];e=_.h(e);for(var k=e.next();!k.done;k=e.next())k=Object.assign({},k.value),k.startIndex===void 0||k.startIndex>=c||(k.length||(k.length=0),k.length+k.startIndex>c&&(k.length=c-k.startIndex),g.push(k));c=g}else c=
void 0;g=CQa(d,a.commandRuns);e=d;var m=a.decorationRuns;if(m){k=[];m=_.h(m);for(var n=m.next();!n.done;n=m.next()){n=n.value;var r=_.y(n.textDecorator,Js);if(r&&r.startIndex!==void 0&&!(r.startIndex>=e)){n=Object.assign({},n,{textDecorator:{highlightTextDecorator:Object.assign({},r)}});r=_.y(n.textDecorator,Js);if(!r.length||r.length+r.startIndex>e)r.length=e-r.startIndex;k.push(n)}}e=k}else e=void 0;k=CQa(d,a.styleRuns);if(m=a.paragraphStyleRuns)for(a=[],m=_.h(m),n=m.next();!n.done;n=m.next()){var t=
n.value;n=Object.assign({},t);if(!(n.startIndex===void 0||n.startIndex>=d)){if(!n.length||n.length+n.startIndex>d)n.length=d-n.startIndex;r=[];var u=void 0,x=void 0;if((u=t)==null?0:(x=u.listGroup)==null?0:x.listItems)for(t=_.h(t.listGroup.listItems),u=t.next();!u.done;u=t.next())if(u=Object.assign({},u.value),!(u.startIndex===void 0||u.startIndex>=d)){if(!u.length||u.length+u.startIndex>d)u.length=d-u.startIndex;r.push(u)}r.length>0&&(n.listGroup||(n.listGroup={}),n.listGroup=Object.assign({},n.listGroup,
{listItems:r}));a.push(n)}}else a=void 0;b={content:b,attachmentRuns:c,commandRuns:g,decorationRuns:e,styleRuns:k,paragraphStyleRuns:a}}else b=Object.assign({},a,{content:Is(a.content,d)});return b};
CQa=function(a,b){if(b){var c=[];b=_.h(b);for(var d=b.next();!d.done;d=b.next())if(d=Object.assign({},d.value),!(d.startIndex===void 0||d.startIndex>=a)){if(!d.length||d.length+d.startIndex>a)d.length=a-d.startIndex;c.push(d)}return c}};
Is=function(a,b){var c=b,d;if(d=c>0)d=a.charCodeAt(c-1),d=d>=55296&&d<=56319;d&&(c=a.charCodeAt(c),d=c>=56320&&c<=57343);d&&--b;return a.substring(0,b)};
HQa=function(a,b,c){c=c===void 0?EQa:c;if(a){var d=_.v().resolve(Xl);d||_.w("mweb_no_observer_killswitch")?vPa(a,{data:b,observer:d,visibilityCallback:c,hideOption:FQa,showOption:GQa,layer:a.layer}):_.Dl(new _.qj("Warning: monitorVisibility called with null observer",a.tagName,b==null?void 0:b.loggingDirectives,b==null?void 0:b.trackingParams))}else _.Dl(new _.qj("Warning: monitorVisibility called with null element",b==null?void 0:b.loggingDirectives,b==null?void 0:b.trackingParams,b==null?void 0:
b.rendererContext))};
OQa=function(a,b){var c=[],d=a.content.length,e,g=(e=_.v().resolve(_.Xi(_.Ks)))==null?void 0:e();if(a.paragraphStyleRuns){e=_.h(a.paragraphStyleRuns);for(var k=e.next();!k.done;k=e.next()){var m=c.push,n=m.apply;var r=void 0;k=k.value;if((r=k.listGroup)!=null&&r.listItems){r=[];b:switch(k.listGroup.listType){case "LIST_TYPE_BULLET":var t="ul";break b;default:t="span"}r.push(Hs({run:k,textLength:d,tag:t,config:{className:"yt-core-attributed-string__list-group"},startIndex:k.startIndex,length:k.length}));
t=_.h(k.listGroup.listItems);for(var u=t.next();!u.done;u=t.next()){u=u.value;b:switch(k.listGroup.listType){case "LIST_TYPE_BULLET":var x="li";break b;default:x="span"}r.push(Hs({run:k,textLength:d,tag:x,startIndex:u.startIndex,length:u.length}))}k=r}else k=[];n.call(m,c,_.De(k))}}if(a.styleRuns&&(b==null||!b.noStyleRuns))for(e=_.h(a.styleRuns),m=e.next();!m.done;m=e.next()){m=m.value;n=xQa({extension:_.y(m.styleRunExtensions,IQa),isDarkTheme:g===void 0?!1:g,runColor:m.fontColor});r=[];n&&r.push("yt-core-attributed-string--link-inherit-color");
m.italic&&r.push("yt-core-attributed-string--italicized");m.underline&&m.strikethrough?r.push("yt-core-attributed-string--underline-strikethrough",BQa(m.underline)):m.underline?r.push("yt-core-attributed-string--underlined",BQa(m.underline)):m.strikethrough&&r.push("yt-core-attributed-string--strikethrough",BQa(m.strikethrough));if(m.baselineOffset){a:switch(m.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":k="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":k=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:k="yt-core-attributed-string--baseline-offset-unknown"}r.push(k)}k=r.join(" ");r=m;t={};if(r.weight||r.weightLabel)t.fontWeight=AQa(r).toString();n&&(t.color=n);c.push(Hs({run:m,textLength:d,tag:"span",config:{className:k,style:t},startIndex:m.startIndex,length:m.length}))}if(a.decorationRuns)for(e=_.h(a.decorationRuns),m=e.next();!m.done;m=e.next())m=m.value,n={},m.textDecorator&&(t=m.textDecorator,k=g===void 0?!1:g,u=[],r=
_.y(t,Js),t=_.y(t,JQa),r?(t=u,u=t.concat,x=[],(k=xQa({extension:_.y(r.highlightTextDecoratorExtensions,KQa),isDarkTheme:k,runColor:r.backgroundColor}))&&x.push("background-color: "+k+";"),r.backgroundCornerRadius!==void 0&&x.push("border-radius: "+r.backgroundCornerRadius+"px;"),r.leftPadding!==void 0&&x.push("padding-left: "+r.leftPadding+"px;"),r.rightPadding!==void 0&&x.push("padding-right: "+r.rightPadding+"px;"),r.topPadding!==void 0&&x.push("padding-top: "+r.topPadding+"px;"),r.bottomPadding!==
void 0&&x.push("padding-bottom: "+r.bottomPadding+"px;"),u=u.call(t,x)):t&&(r=u,u=r.concat,k=k?"#2ba640":"#107516",k=t.color?wQa(t.color):k,k=["padding: 2px;","border-top: solid "+k+" 2px;","border-bottom: solid "+k+" 2px;","background: linear-gradient(135deg, "+k+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+k+" 3px, rgba(0, 0, 0, 0) 3px);"],u=u.call(r,k)),k=u.join(" "),n.style$=k,k=m.textDecorator,r=[],t=_.y(k,JQa),_.y(k,Js)?r.push("yt-core-attributed-string--highlight-text-decorator"):
t&&r.push("yt-core-attributed-string--bracket-text-decorator"),k=r.join(" "),n.className=k,n.dir="auto"),k=_.y(m.textDecorator,Js),r=_.y(m.textDecorator,JQa),t=_.y(m.textDecorator,Js),u=_.y(m.textDecorator,JQa),c.push(Hs({run:m,textLength:d,tag:"span",config:n,startIndex:(k==null?void 0:k.startIndex)||(r==null?void 0:r.startIndex)||0,length:(t==null?void 0:t.length)||(u==null?void 0:u.length)||0}));if(a.commandRuns&&(b==null||!b.noEndpoints))for(g=_.h(a.commandRuns),e=g.next();!e.done;e=g.next())e=
e.value,m=vQa(e,b),c.push(Hs({run:e,textLength:d,tag:"a",config:m,startIndex:e.startIndex,length:e.length}));if(a.attachmentRuns)for(a=_.h(a.attachmentRuns),g=a.next();!g.done;g=a.next()){g=g.value;n=m=void 0;e={className:"yt-core-attributed-string--inline-block-mod"};if((n=g.element)==null?0:n.properties){n=(m=g.element)==null?void 0:m.properties;m=[];n=_.y(n,LQa);if(n==null?0:n.margin)n=n.margin,n.left&&m.push("margin-left: "+Bs(n.left)+";"),n.right&&m.push("margin-right: "+Bs(n.right)+";"),n.top&&
m.push("margin-top: "+Bs(n.top)+";"),n.bottom&&m.push("margin-bottom: "+Bs(n.bottom)+";");m=m.length!==0?m.join(" "):void 0;e.style$=m}k=void 0;m={alt:"",preserveHeight:!0,preserveWidth:!0};n=["yt-core-attributed-string__image-element"];if(g.alignment){a:switch(g.alignment){case "ALIGNMENT_BASELINE":r="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":r="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:r=
"yt-core-attributed-string__image-element--image-alignment-bottom"}n.push(r)}if((k=g.element)==null?0:k.properties)k=[],r=_.y(g.element.properties,LQa),(r==null?0:r.height)&&k.push("height: "+Bs(r.height)+";"),(r==null?0:r.width)&&k.push("width: "+Bs(r.width)+";"),k=k.length!==0?k.join(" "):void 0,m.style$=k,r=void 0,k=((r=_.y(g.element.properties,MQa))==null?void 0:r.label)||"",m.alt=k;m.className=n.join(" ");n=void 0;t=r=void 0;k=((t=g.element)==null?0:t.type)?(r=_.y(g.element.type,NQa))==null?
void 0:r.image:void 0;c.push(Hs({run:g,textLength:d,tag:"img",image:k,imageConfig:m,imageWrapperConfig:e,startIndex:g.startIndex,length:(n=g.length)!=null?n:0}))}if(b==null?0:b.headerRuns)for(b=_.h(b.headerRuns),a=b.next();!a.done;a=b.next())if(a=a.value,a.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(a.headerMapping)){a:{switch(a.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":g=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":g="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":g="yt-core-attributed-string--heading-3";break a}g=void 0}c.push(Hs({run:a,textLength:d,tag:"span",config:g?{className:g}:void 0,startIndex:a.startIndex,length:a.length}))}return c};
_.Ls=function(a){return(a==null?void 0:a.content)!==void 0};
PQa=function(a){return _.Ls(a)?a:_.zs(a)};
QQa=function(a){return a.image!==void 0&&a.imageConfig!==void 0};
RQa=function(a,b){if(b==null?0:b.userInput)for(a=_.h(a),b=a.next();!b.done;b=a.next())if(b=b.value,b.tag!=="a"&&b.tag!=="li"){var c=void 0;(c=b).config||(c.config={});b.config.dir=b.tag==="ul"?_.v().resolve(_.Ms):"auto"}};
SQa=function(a){return function(b){var c=a.run;(c.onTap!==void 0||c.onLongPress!==void 0)&&_.y(c,VPa)&&HQa(b,{loggingDirectives:_.y(c,VPa)})}};
TQa=function(a){return function(b){for(var c in a)(Vl[c]||Vl[Eh["default"]])(b,c,a[c])}};
XQa=function(a,b){UQa(b);var c={data:null,start:0,end:a.length,parts:[]};b=_.h(b);for(var d=b.next();!d.done;d=b.next())d=d.value,VQa(c,d.startIndex,d.endIndex,d);WQa(a,c);return c};
VQa=function(a,b,c,d){for(var e=_.h(a.parts),g=e.next();!g.done;g=e.next()){g=g.value;if(typeof g==="string")throw Error("jh");if(g.start<=b&&c<=g.end){VQa(g,b,c,d);return}}a.parts.push({data:d,parts:[],start:b,end:c})};
WQa=function(a,b){for(var c=b.parts.length;c>=0;c--){var d=b.parts[c],e=b.parts[c-1],g=c===b.parts.length?b.end:d.start;e=c===0?b.start:e.end;g!==e&&b.parts.splice(c,0,a.slice(e,g));d&&WQa(a,d)}};
UQa=function(a){a.sort(function(b,c){if(b.startIndex<c.startIndex)return-1;if(c.startIndex<b.startIndex)return 1;b=b.endIndex-b.startIndex;c=c.endIndex-c.startIndex;return b>c?-1:c>b?1:0})};
_.YQa=function(a){var b=a.thumbnails;if(b){a={sources:[]};b=_.h(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d={};d.url=c.url;d.width=c.width;d.height=c.height;a.sources.push(d)}return a}};
ZQa=function(a,b,c,d){if(!b)return a.length>=1?a[a.length-1]:null;if(d)for(var e=_.h(a),g=e.next();!g.done;g=e.next()){g=g.value;var k=void 0,m=(k=g.url)==null?void 0:k.indexOf(d);if(m!==void 0&&m>=0)return g}d=_.h(a);for(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]};
_.$Qa=function(a){var b;return(a=(b=a.sources)==null?void 0:b[0])?a.width/a.height:0};
aRa=function(a){if(a.sources){a=_.h(a.sources);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;if((c=b.clientResource)==null?0:c.imageName)return b}}};
bRa=function(a){var b;if((b=a.clientResource)!=null&&b.imageColor)return _.Dq(a.clientResource.imageColor)};
_.dRa=function(a,b,c,d,e,g,k){if(!b||b.length===0||b[0].clientResource)return null;if(c&&b[0].url)return b[0].url;d===void 0&&(d=!0);if(d){var m;a=cRa*(e||(a==null?void 0:(m=a.getBoundingClientRect())==null?void 0:m.width)||0)}else{var n;a=cRa*(g||(a==null?void 0:(n=a.getBoundingClientRect())==null?void 0:n.height)||0)}b=ZQa(b,a,d,k);return(b==null?0:b.url)?b.url:(b==null?0:b.imageData)?b.imageData:null};
eRa=function(a,b,c){c=c?[c]:[];a.opacity&&c.push("opacity: "+a.opacity+";");b&&a.placeholderColor?(a=_.Dq(a.placeholderColor),c.push("background-color: "+a+";")):c.push("background-color: transparent;");return c.join(" ")};
fRa=function(a,b,c,d,e){var g=["yt-core-image"];b&&g.push(b);c||g.push("yt-core-image--fill-parent-height");d||g.push("yt-core-image--fill-parent-width");switch(a.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":g.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":g.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":g.push("yt-core-image--content-mode-center");break;default:g.push("yt-core-image--content-mode-scale-to-fill")}a.flipForRtlLayout&&
g.push("yt-core-image--flip-rtl");switch(e){case "TOP_START":var k;g.push(((k=document.body)==null?void 0:k.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return g.join(" ")};
hRa=function(a){var b;if(a==null?0:(b=a.clientResource)==null?0:b.imageName){var c;a=(c=a.clientResource)==null?void 0:c.imageName;a:{switch(a){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":c="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":c="yt-logos-ext:yt-logo-updated";break a}c=void 0}return c||gRa.get(a)||a}};
Ns=function(a){return _.w("mweb_wiz_skip_render")?iRa(a):jRa(a)};
iRa=function(a){return function(b){var c=rma("wink-root");Nh();sma();Pua(c,_.q(a,b))}};
jRa=function(a){var b=b===void 0?!1:b;return function(c){if(!b||!_.w("mweb_skip_keto_to_c3_if_no_data")||c.data!==void 0){var d=Xh(!1);try{var e=c.children;_.w("mweb_render_outside_patch_killswitch")||Gh?e?Ul(_.q(a,c,e)):Ul(_.q(a,c)):_.Dl(new _.qj("ketoToC3 called outside of a patch",{tagName:a.TAG_NAME}))}finally{Xh(d)}}}};
kRa=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
mRa=function(a,b){a.onViewportEntered=b;lRa.observe(a)};
nRa=function(){var a={rootMargin:"10%",threshold:.01};_.w("mweb_enable_set_io_root_to_null_safari")?a.root=null:_.w("mweb_enable_set_io_root_to_body_safari")&&(a.root=document.body);return new IntersectionObserver(function(b,c){b.filter(function(d){return d.intersectionRect.height>0}).forEach(function(d){d=d.target;
if(!_.w("mweb_enable_only_update_image_when_connected")||d.isConnected!==!1){var e;(e=d.onViewportEntered)==null||e.call(d);c.unobserve(d)}})},a)};
oRa=function(a,b,c,d,e){function g(){if(d){var m=d.loadedClass,n=d.notifyOnUnloaded;m&&_.Os(a,m);n&&a.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function k(){var m=c(b,a);m&&a.getAttribute("src")!==m&&(_.w("mweb_enable_only_update_image_when_connected")&&a.isConnected===!1||m===a.src||(a.src=m),g())}
e=e===void 0?!0:e;a.removeAttribute("src");g();b&&(e?mRa(a,k):k())};
pRa=function(a,b){for(var c in b)c==="className"?a.className=b[c]:(Vl[c]||Vl[Eh.default])(a,c,b[c])};
qRa=function(a,b,c,d){Ns(_.Ps)({contentMode:b.contentMode,loadedClass:b.loadedClass,isPreloaded:b.isPreloaded,notifyOnLoaded:b.notifyOnLoaded,notifyOnUnloaded:b.notifyOnUnloaded,preferredThumbnail:b.preferredThumbnail,preserveHeight:b.preserveHeight,preserveWidth:b.preserveWidth,objectPosition:b.objectPosition,targetWidth:b.targetWidth,targetHeight:b.targetHeight,shouldShowPlaceholder:b.shouldShowPlaceholder,useWidth:b.useWidth,alt:b.alt,className:b.className,onerror:b.onerror,onload:b.onload,style$:b.style$,
color:b.color,width:b.width,height:b.height,"aria-hidden$":b["aria-hidden$"],draggable:b.draggable,"data-disabled$":b["data-disabled$"],data:a,callback:c,renderLazy:d===void 0?!0:d,hideOn404:!1})};
sRa=function(a,b,c){c=c===void 0?!1:c;var d=a.sources!==void 0?a:_.YQa(a);if(d){var e=b.onload;b.onload=function(n){var r=n.target;c&&r.naturalWidth===120||_.Qs(r,"yt-core-image--loaded");b.notifyOnLoaded&&r.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));e==null||e(n)};
b.targetWidth&&b.preserveWidth&&(b.width=b.targetWidth);b.targetHeight&&b.preserveHeight&&(b.height=b.targetHeight);var g=aRa(d),k=g&&hRa(g);if(k)return(a=bRa(g))&&(b.color=a),{type:"icon",iconName:k,config:Object.assign({},b,b.alt?{}:{"aria-hidden$":"true"},{"aria-label$":b.alt,role:"img"})};if(a.sources===void 0){b.alt=a.accessibility&&a.accessibility.accessibilityData&&a.accessibility.accessibilityData.label||b.alt;b.style$=eRa(a,b.shouldShowPlaceholder,b.style$);var m;b.isPreloaded=!((m=_.y(a,
rRa))==null||!m.isPreloaded)}b.contentMode&&!d.contentMode&&(d.contentMode=b.contentMode);b.className=fRa(d,b.className,b.preserveHeight,b.preserveWidth,b.objectPosition);b.loadedClass="yt-core-image--loaded";return{type:"image",image:d,config:b}}};
_.tRa=function(){var a=_.Kd.apply(0,arguments);return _.Ql(function(b){var c=a.map(function(d){return d(b)});
return function(){return void c.forEach(function(d){return void(d==null?void 0:d())})}})};
uRa=function(a,b){var c=b==null?void 0:b.initial;return _.ph(function(){_.Bh(!0);return c=a(c)},{equals:b==null?void 0:b.isEqual},"rSlKsc")};
vRa=function(a,b){if(a===b)return!0;if(a===void 0||b===void 0)return!1;var c,d,e,g,k,m,n,r;return a.content===b.content&&((c=a.styleRuns)==null?void 0:c.length)===((d=b.styleRuns)==null?void 0:d.length)&&((e=a.commandRuns)==null?void 0:e.length)===((g=b.commandRuns)==null?void 0:g.length)&&((k=a.attachmentRuns)==null?void 0:k.length)===((m=b.attachmentRuns)==null?void 0:m.length)&&((n=a.decorationRuns)==null?void 0:n.length)===((r=b.decorationRuns)==null?void 0:r.length)};
yRa=function(a,b){if(a){var c=PQa(a);if(c!=null&&c.content)if(_.w("attr_string_reactive"))Ns(wRa)({text:a,config:b});else{var d=!(b==null||!b.ariaLabel)||!(c.commandRuns&&c.commandRuns.length!==0||c.paragraphStyleRuns&&c.paragraphStyleRuns.length!==0);a=d?b==null?void 0:b.ariaLabel:null;d=d?"text":null;vs("span",{className:zQa(c,b),dir$:(b==null?0:b.userInput)?"auto":void 0,"aria-label$":a,role$:d},function(){if(c.styleRuns||c.commandRuns||c.attachmentRuns||c.decorationRuns){var e=OQa(c,b);RQa(e,
b);e=XQa(c.content,e);e=_.h(e.parts);for(var g=e.next();!g.done;g=e.next())xRa(g.value)}else Th(c.content)})}}};
xRa=function(a){typeof a==="string"?Th(a):QQa(a.data)?vs("span",a.data.imageWrapperConfig,function(){qRa(a.data.image,a.data.imageConfig)}):vs(a.data.tag,a.data.config,function(b){SQa(a.data)(b);
b=_.h(a.parts);for(var c=b.next();!c.done;c=b.next())xRa(c.value)})};
ARa=function(a){return a.parts.map(zRa)};
zRa=function(a){if(typeof a==="string")return a;a=QQa(a.data)?_.q("span",{el:_.tRa(TQa(a.data.imageWrapperConfig))},_.q(_.Ps,Object.assign({},{data:a.data.image},a.data.imageConfig))):_.q(a.data.tag,{el:_.tRa(SQa(a.data),TQa(a.data.config))},a.parts.map(zRa));return ii(a)};
BRa=function(a,b){return a===b?!0:a===void 0||b===void 0?!1:a.noStyleRuns===b.noStyleRuns&&a.noLinkColor===b.noLinkColor&&a.noEndpoints===b.noEndpoints&&a.headerRuns===b.headerRuns&&a.isOverlay===b.isOverlay&&a.linkInheritColor===b.linkInheritColor&&a.userInput===b.userInput};
CRa=function(a){return function(){var b,c,d,e,g,k,m,n,r,t,u,x,A,C;return{ariaLabel:(b=a.ariaLabel)==null?void 0:b.call(a),className:(c=a.className)==null?void 0:c.call(a),ellipsisTruncate:(d=a.ellipsisTruncate)==null?void 0:d.call(a),isOverlay:(e=a.isOverlay)==null?void 0:e.call(a),linkInheritColor:(g=a.linkInheritColor)==null?void 0:g.call(a),noEndpoints:(k=a.noEndpoints)==null?void 0:k.call(a),noStyleRuns:(m=a.noStyleRuns)==null?void 0:m.call(a),noLinkColor:(n=a.noLinkColor)==null?void 0:n.call(a),
noPreWrap:(r=a.noPreWrap)==null?void 0:r.call(a),noWrap:(t=a.noWrap)==null?void 0:t.call(a),skipOnClick:(u=a.skipOnClick)==null?void 0:u.call(a),stopPropagation:(x=a.stopPropagation)==null?void 0:x.call(a),userInput:(A=a.userInput)==null?void 0:A.call(a),headerRuns:(C=a.headerRuns)==null?void 0:C.call(a)}}};
DRa=function(a){return a.value===""||a.value==="true"?!0:a.value==="false"?!1:isNaN(Number(a.value))?a.value:Number(a.value)};
Rs=function(a,b){a=new ERa(a,b);_.Bl(a);throw a;};
FRa=function(a,b,c){var d=LOa(a);a._numRenders=0;try{var e=hva(function(){return _.q(b,Object.assign({},c))})}catch(k){var g=function(m){m.args||(m.args=[]);
m.args.push("Error in web component wrapper");m.args.push(a.tagName.toLowerCase());return m};
_.Cl(k instanceof Error?g(k):new ERa("Wiz rendering error",a.tagName.toLowerCase()));throw k;}finally{LOa(d)}return e};
_.Ts=function(a,b,c){function d(r){var t={};r=_.h(r);for(var u=r.next();!u.done;u=r.next()){u=u.value;var x=void 0,A=void 0,C=void 0,F=_.pn((C=(A=(x=u).getAttribute)==null?void 0:A.call(x,"slot"))!=null?C:"children");if(x=t[F])x.push(u);else if(F in g||F==="children")t[F]=[u]}if(GRa)for(r=_.h(Object.keys(t)),F=r.next(),u={};!F.done;u={content$jscomp$55:void 0},F=r.next())F=F.value,F!=="children"&&(u.content$jscomp$55=t[F],t[F]=function(J){return function(){return J.content$jscomp$55}}(u));
return t}
c=c===void 0?{}:c;a.componentType!==sh||Rs("Components must be marked reactive to be used from web component wrapper.",b);Yr.has(b)&&Rs("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",b);var e,g=(e=c.props)!=null?e:{};Zr.add(b);var k=HRa();c=function(){var r=k.apply(this,arguments)||this;r.rawProps={};r.queuingRender=!1;r.dispose=function(){};
r.isWebComponentWrapper=!0;r.isReparenting=!1;r.hasAttached=!1;return r};
_.z(c,k);c.prototype.render=function(){this.hasAttached=!0;for(var r=_.h([].concat(_.De(this.attributes))),t=r.next();!t.done;t=r.next())t=t.value,t.name!=="slot"&&this.removeAttribute(t.name);r=Object.assign({},this.componentProps,this.slotProps);t=_.h(FRa(this,a,r));r=t.next().value;t=t.next().value;!(r[0]instanceof Element)||r.length>1?Rs("Wrapped Wiz components must return a single root element.",b):(r=r[0].tagName.toLowerCase(),r!==b&&Rs("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(r+" !== '"+b),b),this.dispose=t)};
c.prototype.setUpProps=function(){for(var r=this.rawProps,t=this.attributes,u=_.h(Object.keys(g)),x=u.next();!x.done;x=u.next()){x=x.value;var A=void 0;((A=this)==null?0:A[x])&&this[x]!==IRa&&r[x]===void 0&&(r[x]=this[x],(A=Object.getOwnPropertyDescriptor(this.constructor.prototype,x))&&Object.defineProperty(this,x,A))}u=_.h(t);for(x=u.next();!x.done;x=u.next()){A=x.value;x=_.pn(A.name);var C=x==="class"&&!t.getNamedItem("class-name");if(x in g||C)A=DRa(A),x!=="class"||r.className?r[x]=A:r.className=
A}t={};for(var F in g)g[F]===_.Ss||GRa&&g[F]===JRa||(r[F]instanceof Function&&Rs("Function props must be configured as STATIC, not SIGNAL.",b),x=_.h(_.ih(r[F],void 0,"vGbZpc")),u=x.next().value,x=x.next().value,t[F]=x,r[F]=u);r=_.h([r,t]);this.componentProps=r.next().value;this.setters=r.next().value;this.slotProps=d(this.childNodes)};
c.prototype.connectedCallback=function(){Wr===b&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in g&&!this.rawProps.data&&!this.getAttribute("data"),this.hasAttached||this.queuingRender||this.setUpProps(),this.queuingRender&&!this.hasAttached||this.render()))};
c.prototype.disconnectedCallback=function(){if(!this._isInert){var r;a:{if(_.KRa)for(r=this;r;){if(_.LRa.has(r)){r=!0;break a}r=r.parentElement}r=!1}if(r)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){r=_.h([].concat(_.De(this.attributes)));for(var t=r.next();!t.done;t=r.next())t=t.value,t.name!=="slot"&&this.removeAttribute(t.name)}this.innerText="";EMa(this)}}};
c.prototype._setPendingPropertyOrPath=function(){};
c.prototype.notifyPath=function(){};
_.Um.Object.defineProperties(c.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
e=_.h(Object.keys(g));for(var m=e.next(),n={};!m.done;n={prop$jscomp$103:void 0},m=e.next())n.prop$jscomp$103=m.value,Object.defineProperty(c.prototype,n.prop$jscomp$103,{set:function(r){return function(t){var u=this;this._isInert||(this.setters?qh(function(){var x,A;return void((A=(x=u.setters)[r.prop$jscomp$103])==null?void 0:A.call(x,t))}):(this.rawProps[r.prop$jscomp$103]=t,this.queuingRender&&r.prop$jscomp$103==="data"&&t!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(n),
get:MRa.has(n.prop$jscomp$103)?void 0:function(){return IRa}});
customElements.define(b,c)};
_.NRa=function(a,b){return(a=_.Us(a,b))?_.Ed(_.Id(a)):null};
_.Vs=function(a){if(a=_.Us(a,Number.MAX_VALUE,void 0,"width"))return _.Id(a)};
_.Us=function(a,b,c,d){d=d===void 0?"width":d;if(!a||!a.length)return null;if(_.w("kevlar_tuner_should_always_use_device_pixel_ratio")){var e=window.devicePixelRatio;_.w("kevlar_tuner_should_clamp_device_pixel_ratio")?e=Math.min(e,_.$i("kevlar_tuner_clamp_device_pixel_ratio")):_.w("kevlar_tuner_should_use_thumbnail_factor")&&(e=_.$i("kevlar_tuner_thumbnail_factor"));ORa=e}else ORa||(ORa=window.devicePixelRatio);e=ORa;_.w("kevlar_tuner_should_always_use_device_pixel_ratio")?b*=e:e>1&&(b*=e);if(_.w("kevlar_tuner_min_thumbnail_quality"))return a[0].url||
null;e=a.length;if(_.w("kevlar_tuner_max_thumbnail_quality"))return a[e-1].url||null;if(c)for(var g=0;g<e;g++)if(a[g].url.indexOf(c)>=0)return a[g].url||null;for(c=0;c<e;c++)if(a[c][d]>=b)return a[c].url||null;for(b=e-1;b>0;b--)if(a[b][d])return a[b].url||null;return a[0].url||null};
RRa=function(){Ws.size?setTimeout(function(){Xs(PRa)},0):QRa=0};
PRa=function(){var a=(0,_.Uj)(),b=null,c=!1;Ws.forEach(function(e){e.loaded=!0;e.loadTime=a;e.pendingPaint=!1;var g=SRa.get(e);g&&g.resolve(a);b=e;c||!e.ftlEligible&&e.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(c=!0)});
var d;((d=b)==null?0:d.markDirty)&&b.markDirty();Ws.clear();QRa=0;c&&TRa(a)};
URa=function(a){Ws.add(a);a.pendingPaint=!0;QRa||(QRa=_.Ys(_.zk,RRa))};
VRa=function(a){a.loaded=!1;a.loadTime=Infinity;var b=SRa.get(a);b&&(b.reject(Error("ph")),SRa.delete(a));a.pendingPaint&&(Ws.delete(a),a.pendingPaint=!1)};
_.WRa=function(a){var b=a.indexOf(":");return b===-1?{originalName:a}:{originalName:a.substring(0,b),datasyncId:a.substring(b+1)}};
_.YRa=function(){return _.l(function(a){if(XRa!==void 0)return a.return(XRa);XRa=new Promise(function(b){var c;return _.l(function(d){switch(d.nextAddress){case 1:return _.pe(d,2),_.p(d,_.Zs.open("test-only"),4);case 4:return _.p(d,_.Zs.delete("test-only"),5);case 5:_.Jj(d,3);break;case 2:if(c=_.te(d),c instanceof Error&&c.name==="SecurityError")return b(!1),d.return();case 3:b("caches"in window),_.ue(d)}})});
return a.return(XRa)})};
aSa=function(){return _.l(function(a){if(a.nextAddress==1)return _.p(a,_.YRa(),2);if(!a.yieldResult)return a.return(void 0);ZRa||(ZRa=new $Ra);return a.return(ZRa)})};
bSa=function(a){var b,c,d,e;return _.l(function(g){switch(g.nextAddress){case 1:return _.p(g,aSa(),2);case 2:b=g.yieldResult;if(!b)throw Error("rh");return _.p(g,b.open("yt-player-local-img"),3);case 3:return c=g.yieldResult,_.p(g,c.match(a),4);case 4:d=g.yieldResult;if(!d)throw Error("sh");return _.p(g,d.blob(),5);case 5:return e=g.yieldResult,g.return(e)}})};
cSa=function(a,b){for(var c in a)if(a.hasOwnProperty(c)&&b[c])return c;return null};
dSa=function(a){return"stamp"+a.replace("-","_")+"_"};
eSa=function(a){var b=a.match(/\[\[([\w\.]+)\]\]/);if(b&&b.length>1)return b[1];_.Bl(Error("uh`"+a));return null};
fSa=function(a){return a===void 0?_.Gi("REUSE_COMPONENTS",!1):a||!1};
iSa=function(a,b,c){c&&(b.is?(gSa.has(b)&&(a=gSa.get(b),c=a.listener,delete b[a.property],c.type==="element"&&b.removeEventListener(c.eventName,c.handler),gSa.delete(b)),hSa(b)):b.__proto__==HTMLElement.prototype&&(b=new _.qj("Rendererstamper removed a non custom element","Stamper: "+a+" element: "+(b&&b.nodeName)),_.Dl(b)))};
jSa=function(a,b,c,d){var e=b.node?b.node:b;_.E(c).parentNode===e&&(b.removeChild(c),iSa(a,c,d));if(a=$s.get(c))$s.delete(c),_.zk.cancelJob(a);c.hidden=!1};
kSa=function(a,b,c,d){if(b&&b.children&&(c=b.children[c]))if(_.Gi("DEFERRED_DETACH"))for(;c&&!$s.has(c);){var e=a,g=b,k=c,m=d;k.hidden=!0;e=_.sl(_.zk,jSa.bind(null,e,g,k,m),0);$s.set(k,e);c=c.nextElementSibling}else for(;(k=b.lastElementChild)&&(b.removeChild(k),iSa(a,k,d),k!=c););};
lSa=function(a){var b=_.Pl();_.wi(function(){for(var c=_.h(a.slotContent),d=c.next();!d.done;d=c.next())b.value.appendChild(d.value)});
return _.q("__slot-el",{el:b,skip:!0})};
_.at=function(a,b,c){c=c===void 0?mSa:c;Yr.add(b);var d;(d=c).propNames!=null||(d.propNames=[]);var e=new Set(c.propNames),g=HRa();d=function(){var r=g.call(this)||this;r.props={};r.isUpdating=!1;r.hasAttached=!1;r.isInert=!1;r.updateQueued=!1;r.initialClasses=[];KOa(r,b);return r};
_.z(d,g);d.prototype.forwardKebabCaseProp=function(r,t){r=_.pn(r);if(e.has(r)||r==="children")this.props[r]=t};
d.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var r=_.h(this.initialClasses),t=r.next();!t.done;t=r.next())(t=t.value)&&this.classList.add(t);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
d.prototype.handleSlottedContent=function(){for(var r=new Map,t=_.h(this.children),u=t.next();!u.done;u=t.next()){u=u.value;var x=void 0,A=(x=u.getAttribute("slot"))!=null?x:"children";(x=r.get(A))?x.push(u):r.set(A,[u]);if(!u.getAttribute("key")){var C=void 0,F=void 0;u.setAttribute("key",A+"_"+((F=(C=x)==null?void 0:C.length)!=null?F:0))}}r=_.h(r);for(t=r.next();!t.done;t=r.next())u=_.h(t.value),t=u.next().value,u=u.next().value,this.forwardKebabCaseProp(t,_.q(lSa,{slotContent:u}))};
d.prototype.connectedCallback=function(){var r=this;if(!KOa(this,b)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var t=_.h(this.attributes),u=t.next();!u.done;u=t.next())u=u.value,this.forwardKebabCaseProp(u.name,DRa(u));this.handleSlottedContent();c.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){r.afterFirstPatch()});
this.hasAttached=!0}};
d.prototype.attributeChangedCallback=function(r,t,u){this.isInert||this.isUpdating||this.isConnected||r!=="class"||this.initialClasses.push.apply(this.initialClasses,_.De(u.split(" ")))};
d.prototype.disconnectedCallback=function(){yna(this)};
d.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var r,t;Pua(this,_.q(a,Object.assign({},this.props,{idomKey:(t=(r=this.__incrementalDOMData)==null?void 0:r.key)!=null?t:b})),!0)}catch(x){var u=x instanceof Error?x:new _.qj("Wiz rendering error");u.args||(u.args=[]);u.args.push("Error in deprecated web component wrapper");u.args.push(b.toLowerCase());_.Bl(u);throw x;}finally{this.updateQueued=this.isUpdating=!1}}};
d.prototype.enqueueUpdate=function(){var r=this;return _.l(function(t){if(c.synchronous)return r.update(),t.return();if(r.updateQueued)return t.return();r.updateQueued=!0;return t.return(Promise.resolve().then(function(){r.update()}))})};
d.prototype.notifyPath=function(){c.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.Um.Object.defineProperties(d,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var k=_.h(c.propNames),m=k.next(),n={};!m.done;n={prop$jscomp$105:void 0},m=k.next())n.prop$jscomp$105=m.value,Object.defineProperty(d.prototype,n.prop$jscomp$105,{set:function(r){return function(t){this.isInert||t===this.props[r.prop$jscomp$105]||(this.props[r.prop$jscomp$105]=t,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(n)});
customElements.define(b,d)};
_.nSa=function(a,b){return _.np(a.entities,"markersEngagementPanelSyncEntity",b)};
oSa=function(a,b){return _.np(a.entities,"fantasyWinProbabilityEntity",b)};
pSa=function(a,b){return _.np(a.entities,"fantasyTeamEntity",b)};
qSa=function(a,b){return _.np(a.entities,"fantasyPlayerEntity",b)};
rSa=function(a,b){return _.np(a.entities,"booleanEntity",b)};
sSa=function(a,b){return _.np(a.entities,"qrCodeEntity",b)};
tSa=function(a){return _.np(a.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
vSa=function(){if(bt)return bt;if(window.lottie)return bt=Promise.resolve(window.lottie);var a=_.Ak(_.Fi("LOTTIE_URL"));a||(a=uSa,_.Dl(Error("vh")));return bt=new Promise(function(b,c){var d=document.createElement("script");d.addEventListener("load",function(){b(lottie)});
d.addEventListener("error",function(e){var g="Lottie library failed to load.";e?e.message&&(g+=" Original description: "+e.message,_.El(e,g)):e=Error(g);_.Dl(e);c(e)});
d.setAttribute("async","");_.Zd(d,a);document.head.appendChild(d)})};
wSa=function(){return bt?bt:vSa()};
xSa=function(){var a=tSa(_.Yp().getState());if(a&&a.animationStyle)switch(a.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":return ct.get("LIKE_VALENTINES25_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":return ct.get("LIKE_VALENTINES25_BROKEN_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":return ct.get("LIKE_YOUTUBE_20TH_BIRTHDAY")}};
ySa=function(a){if(a)switch(a){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.w("kevlar_use_wil_icons"))return(a=xSa())?a:ct.get("LIKE")}};
zSa=function(a){var b=ySa(a);if(b)return b;switch(a){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return ct.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return ct.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return ct.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return ct.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return ct.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return ct.get("NOTIFICATION_BELL")}};
BSa=function(a,b){if(!a||ASa)b=!1;else{if(a.closest){var c=!!ySa(b);c=_.Fi("ID_TOKEN")&&c?!!a.closest("segmented-like-dislike-button-view-model"):!1}else c=!1;if(!c)if(a.closest)if(c=!_.Fi("ID_TOKEN"),a=a.closest("ytd-subscription-notification-toggle-button-renderer-next"),c||!a)c=!1;else{var d;c=((d=a.data)==null?void 0:d.targetId)==="notification-bell"&&b!=="EXPAND_MORE"}else c=!1;b=c}return b};
CSa=function(a){var b,c;return _.l(function(d){switch(d.nextAddress){case 1:return _.pe(d,2),_.p(d,fetch(a),4);case 4:return b=d.yieldResult,_.p(d,b.json(),5);case 5:return d.return(d.yieldResult);case 2:c=_.te(d),_.Dl(c),_.ue(d)}})};
DSa=function(a,b){var c,d,e;return _.l(function(g){if(g.nextAddress==1)return(c=b?a.pathDarkTheme:a.path)?_.p(g,Promise.all([CSa(c),vSa()]),2):g.return();d=g.yieldResult;e=d[0];dt.set(c,e);_.ue(g)})};
_.et=function(){var a=_.Kd.apply(0,arguments);return function(){for(var b="",c=_.h(a),d=c.next();!d.done;d=c.next())if(d=d.value,typeof d==="function"&&(d=d()),d)if(typeof d==="string")b+=" "+d;else for(var e in d)if(d.hasOwnProperty(e)){var g=d[e];typeof g==="function"&&(g=g());g&&(b+=" "+e)}b=b.trim()||void 0;return _.Bh(b)}};
_.gt=function(a){var b;var c=a.data;var d=a.className;var e=a.animationName;var g=a.animationRef;var k=(b=a.elRefForInterop)||_.Pl(),m;_.zh(function(){var t;return void((t=m)==null?void 0:t.destroy())});
var n;_.wh(function(){if(e()!==n){n=e();var t=Object.assign({},{animationName:e(),animationRef:_.Bh(g)},_.Bh(c));try{_.v().resolve(ESa)().then(function(C){var F;(F=m)==null||F.destroy();F=t.animationRef;var J=t.listeners;C=C.loadAnimation(Object.assign({},{container:k.value},t.animationConfig));F&&(F.lottieEl=C);if(J)for(F=_.h(Object.entries(J)),J=F.next();!J.done;J=F.next()){var I=_.h(J.value);J=I.next().value;(I=I.next().value)&&C.addEventListener(J,I)}m=C})}catch(C){var u=C,x="LottieComponent error.";
u.message&&(x+=" Original description: "+u.message);_.El(u,x);_.Dl(u);var A;((A=t.listeners)==null?0:A.error)&&t.listeners.error(u)}}},"Rahfod");
var r=_.et("ytLottieComponentHost",d);return _.q(Jna,{cond:function(){return!b},
then:function(){return _.q("lottie-component",{class:r,el:k})}})};
FSa=function(a){var b=_.Pl(),c=_.h($na(a.data.animationConfig.name||"",a.className)),d=c.next().value;c=c.next().value;var e=yi(function(){return a.data.animationRef});
vi(function(){a.data.animationRef&&(a.data.animationRef.lottieEl=e==null?void 0:e.lottieEl)},[a.data.animationRef]);
return _.q("lottie-component",{skip:!0,class:_.et(c,"ytLottieComponentHost"),el:b},_.q(_.gt,{data:a.data,animationRef:e,animationName:d,elRefForInterop:b}))};
HSa=function(a,b,c,d,e){function g(n,r){if(b.value===r&&a!=null&&a.value){for(;a.value.firstChild;)a.value.removeChild(a.value.firstChild);a.value.classList.add("yt-spec-icon-shape");n(a.value,d)}}
var k;e=(k=e)!=null?k:_.v().resolve(_.fs);c=_.GSa(e,c);if(typeof c==="function")b.value=null,g(c,null);else{var m=new _.il(c.then,c);b.value=m;m.then(function(n){g(n,m)})}};
JSa=function(a,b){var c=document.createElement("div"),d=_.oi(c,function(){return _.q(_.qi,{cond:a,then:function(e){return _.q(ISa,{data:e,options:b})}})});
return[c,d]};
_.ht=function(){for(var a=[],b=_.h(_.Kd.apply(0,arguments)),c=b.next();!c.done;c=b.next())if(c=c.value)if(typeof c==="string")a.push(c);else{c=_.h(Object.entries(c));for(var d=c.next();!d.done;d=c.next()){var e=_.h(d.value);d=e.next().value;(e=e.next().value)&&a.push(d)}}return a.join(" ")};
NSa=function(a){var b=_.Pl(),c=Ai(),d=Zn(a.character)||Zn(a.previousCharacter);ui(function(){if(a.marginMultiplier){var e;(e=c.value)==null||e.cancel();d?(e=a.previousCharacter?Number(a.previousCharacter)+10:a.rollUp?0:30,a.shouldAnimate||(e-=KSa(a,e))):(e=a.rollUp?0:2,a.shouldAnimate||(e-=a.rollUp?-1:1));b.value.style.marginTop="-"+e*a.marginMultiplier+"px";a.shouldAnimate?c.value=LSa(b.value,a,e,d):b.value.style.display=a.character?"":"none"}});
return _.q("animated-rolling-character",{el:b,class:"animated-rolling-character-wiz"},_.Tg(d,function(){for(var e=[],g=1;g<30;g++)e.push(_.q("div",null,g%10));return _.q(_.Wh,null,_.q("div",null,"\u00a0"),e,_.q("div",null,"\u00a0"))},function(){return MSa(a.character)}))};
MSa=function(a){return _.q(_.Wh,null,_.q("div",null,"\u00a0"),_.q(_.Wh,null,_.Tg(!a||_.pa(a),function(){return _.q("div",null,"\u00a0")},function(){return _.q("div",null,a)})),_.q("div",null,"\u00a0"))};
LSa=function(a,b,c,d){c=new Animation(new KeyframeEffect(a,[{transform:"translateY(0px)"},{transform:"translateY("+(d?KSa(b,c):b.rollUp?-1:1)*b.marginMultiplier+"px)"}],OSa),document.timeline);b.character?(a.style.display="",c.onfinish=null):c.onfinish=function(){a.style.display="none"};
c.play();return c};
KSa=function(a,b){var c=Number(a.character)+10;if(a.previousCharacter)if(a.character){var d=Number(a.character),e=Number(a.previousCharacter);a=a.rollUp?e<d?c:c+10:e<d?c-10:c}else a=a.rollUp?30:0;else a=a.character==="0"?c:a.rollUp?c-10:c+10;return b-a};
_.jt=function(a,b){return function(c){var d={},e;for(e in c){var g=void 0,k=void 0;((g=b)==null?0:(k=g.callbacks)==null?0:k[e])||(d[e]=c[e])}return _.q(gva,null,function(){for(var m in d)c[m]=_.Bh(d[m]);c.disableReactiveLogging=!0;return _.q(a,Object.assign({},c))})}};
_.kt=function(a){var b=Ai(),c=Ai();vi(function(){b.value=a.numberText;c.value=a.numberValue},[a.numberText]);
var d=a.fontSizeMultiplier?a.heightPx*a.fontSizeMultiplier:a.heightPx,e=xi(function(){if(a.numberText){var k=a.numberText;var m=a.forceRollUp||!c.value||!a.numberValue||c.value<a.numberValue;var n=!!a.shouldAnimate,r=b.value,t=[],u=0,x=0,A=(r?r.replace(/\D/g,"").length:0)-(k?k.replace(/\D/g,"").length:0);r=r?r.split(/(\d)/).filter(Boolean):[];for(k=k.split(/(\d)/).filter(Boolean);A<0;){var C=k[x];t.push({character:C,rollUp:m,marginMultiplier:d,shouldAnimate:n});x++;Zn(C)&&A++}for(;u<A;)C=r[u],t.push({previousCharacter:C,
rollUp:m,marginMultiplier:d,shouldAnimate:n}),u++,Zn(C)||A++;for(;x<k.length;)A=k[x],C=r[u],Zn(A)===Zn(C)?(x++,u++):Zn(A)?(u++,A=void 0):Zn(C)&&(x++,C=void 0),t.push({character:A,previousCharacter:C,rollUp:m,marginMultiplier:d,shouldAnimate:n});m=t}else m=[];return m},[a.numberText]),g=a.numberText?["height: "+d+"px;",
"line-height: "+a.heightPx+"px;"].join(" "):"";return _.q("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:g,dir:"ltr","aria-hidden":"true"},e.map(function(k){return _.q(NSa,Object.assign({},k))}))};
_.lt=function(a){return Jua(function(b){b=a==null?void 0:a(b);return typeof b==="boolean"?b:!0})};
mt=function(a){return function(){return a()?a():void 0}};
PSa=function(a){return new KeyframeEffect(a,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
QSa=function(a){return new KeyframeEffect(a,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
RSa=function(a){var b=_.h(_.ih(a,void 0,"Clci1e")),c=b.next().value,d=b.next().value;c.current=a;return[c,function(e){return void d(c.current=e)}]};
_.nt=function(a){var b=uRa(function(){return RSa(a())},{isEqual:function(c,d){return c[0].current===d[0].current}});
return[function(){return b()[0]()},
function(c){return void b()[1](c)}]};
_.ot=function(a){return function(){var b="",c;for(c in a){for(var d=a[c];typeof d==="function";)d=d();d!==void 0&&d!==null&&(b+="; "+c+": "+d)}return b.length>0?_.Bh(b.slice(2)):_.Bh()}};
SSa=function(a){switch(a){case 2:return"yt-spec-touch-feedback-shape--touch-response-inverse";case 3:return"yt-spec-touch-feedback-shape--overlay-touch-response";case 4:return"yt-spec-touch-feedback-shape--overlay-touch-response-inverse";default:return"yt-spec-touch-feedback-shape--touch-response"}};
VSa=function(a,b,c,d,e,g){var k=TSa(a),m=k.disabled,n=k.iconPosition,r=k.style,t=k.focused,u=function(){return!!C()&&n()==="icon-only"},x=function(){return!!C()&&n()==="icon-only-40"},A=function(){return!!C()&&n()==="icon-with-label"},C=function(){return!!b||!(d==null||!d())};
return{type:function(){return r()==="call-to-action-inverse"?"text":r()==="overlay-dark"&&a().type!=="filled"&&a().type!=="tonal"?"tonal":a().type},
shouldFocus:function(){return(t()||(g==null?void 0:g()))&&!m()},
hasIconLeading:function(){return!!C()&&n()==="leading"},
hasIconTrailing:function(){return!!C()&&n()==="trailing"},
hasIconLeadingTrailing:function(){return!!C()&&!!(c||e!=null&&e())&&n()==="leading-trailing"},
hasIconOnly:u,hasIconOnly40:x,hasIconWithLabel:A,iconButton:function(){return u()||x()||A()},
visiblyDisabled:function(){return(m()?"disabled":a().state)==="disabled"||m()},
overrideSmallSizeIcon:function(){return pt(a(),C())},
iconToRender:b?b:function(){return _.q(_.qt,{icon:d,size:function(){return USa(a())},
active:function(){return a().toggled}})},
secondaryIconToRender:c?c:function(){return _.q(_.qt,{icon:e,size:function(){return USa(a())},
active:function(){return a().toggled}})}}};
TSa=function(a){return{size:function(){return a().size},
style:function(){return a().style},
focused:function(){return a().focused},
disabled:function(){return a().disabled},
onTap:function(b){var c,d;return(d=(c=a()).onTap)==null?void 0:d.call(c,b)},
alignByText:function(){return a().alignByText},
aTagConfig:function(){return a().aTagConfig},
customColors:function(){return a().customColors},
segmentedPosition:function(){return a().segmentedPosition},
toggled:function(){return a().toggled},
toggleable:function(){return a().toggleable},
accessibilityLabel:function(){return a().accessibilityLabel},
onToggle:function(b){var c,d;return(d=(c=a()).onToggle)==null?void 0:d.call(c,b)},
iconPosition:function(){return a().iconPosition},
oneOffCustomTextWrap:function(){return a().oneOffCustomTextWrap},
disableTextEllipsis:function(){return a().disableTextEllipsis},
tooltipText:function(){return a().tooltipText},
ariaHidden:function(){return a().ariaHidden},
tabIndex:function(){return a().tabIndex},
buttonText:function(){return a().buttonText},
formattedButtonText:function(){return a().formattedButtonText},
animatedTextProps:function(){return a().animatedTextProps}}};
WSa=function(a){return a.style==="overlay-dark"?4:a.style==="overlay"?a.type==="filled"?4:3:a.type==="filled"||a.style==="call-to-action-inverse"||a.style==="mono-inverse"?2:1};
pt=function(a,b){b=(a.iconPosition==="icon-only"||a.iconPosition==="icon-only-40"||a.iconPosition==="icon-with-label")&&b;return!a.segmentedPosition&&b&&a.size==="S"};
XSa=function(){return!_.w("web_disable_backdrop_filter")};
USa=function(a){switch(a.size){case "XS":return 16;case "S":return pt(a,!0)?24:16;default:return 24}};
YSa=function(a,b){if(!_.Ug){var c;Sla(function(){return c=eva(a,b)});
return c}return eva(a,b)};
ZSa=function(){var a=Zja(_.Ug||void 0,bva);return a===Yja||(a==null?void 0:a.name)==="\u0275NotFound"?void 0:a};
$Sa=function(a){switch(a){case "filled":return"yt-spec-button-shape-next--filled";case "outline":return"yt-spec-button-shape-next--outline";case "tonal":return"yt-spec-button-shape-next--tonal";default:return"yt-spec-button-shape-next--text"}};
aTa=function(a){switch(a){case "call-to-action":return"yt-spec-button-shape-next--call-to-action";case "call-to-action-overlay":return"yt-spec-button-shape-next--call-to-action-overlay";case "mono":return"yt-spec-button-shape-next--mono";case "overlay":return"yt-spec-button-shape-next--overlay";case "overlay-dark":return"yt-spec-button-shape-next--overlay-dark";case "call-to-action-inverse":return"yt-spec-button-shape-next--call-to-action-inverse";case "mono-inverse":return"yt-spec-button-shape-next--mono-inverse";
case "brand-gradient":return"yt-spec-button-shape-next--brand-gradient";case "gen-ai-gradient":return"yt-spec-button-shape-next--gen-ai-gradient";default:return"yt-spec-button-shape-next--mono"}};
bTa=function(a){switch(a){case "XS":return"yt-spec-button-shape-next--size-xs";case "S":return"yt-spec-button-shape-next--size-s";case "L":return"yt-spec-button-shape-next--size-l";case "XL":return"yt-spec-button-shape-next--size-xl";default:return"yt-spec-button-shape-next--size-m"}};
cTa=function(a){if(!a)return{};var b=a.color,c=a.backgroundColor;a=a.borderColor;var d="";b&&(d+="color: "+b+";");c&&(d+="background-color: "+c+";");a&&(d+="border-color: "+a+";");return{style:d}};
st=function(a){var b=a.data;var c=a.icon;var d=a.secondaryIcon;var e=a.iconName;var g=a.secondaryIconName;ZSa();var k=b.size;a=b.style;var m=b.focused,n=b.disabled,r=b.onTap,t=b.alignByText,u=b.aTagConfig,x=b.customColors,A=b.segmentedPosition,C=b.toggled,F=b.toggleable,J=b.accessibilityLabel,I=b.onToggle,R=b.iconPosition,da=b.oneOffCustomTextWrap,V=b.disableTextEllipsis,fa=b.tooltipText,aa=b.ariaHidden,ma=b.tabIndex,Ba=!!c||!!e,Ca=c,ya=d;if(e){var Ia=USa(b);Ca=function(){return _.q(_.qt,{icon:e,
size:Ia,active:b.toggled})}}if(g){var db=USa(b);
ya=function(){return _.q(_.qt,{icon:g,size:db,active:b.toggled})}}var lb=b.state;
c=b.type;a==="call-to-action-inverse"&&(c="text");a==="overlay-dark"&&c!=="filled"&&c!=="tonal"&&(c="tonal");var Ua=Ba&&R==="leading",Vb=Ba&&R==="trailing",rb=Ba&&(!!d||!!g)&&R==="leading-trailing";d=Ba&&R==="icon-only";var sb=Ba&&R==="icon-only-40";R=Ba&&R==="icon-with-label";var yc=d||sb||R;n&&(lb="disabled");var Mb=lb==="disabled"||n;Ba=pt(b,Ba);lb={};var ub=_.ht((lb["yt-spec-button-shape-next"]=!0,lb[$Sa(c)]=!0,lb[aTa(a)]=!Mb,lb["yt-spec-button-shape-next--disabled"]=!!Mb,lb[bTa(k)]=!0,lb["yt-spec-button-shape-next--focused"]=
!!m&&!n,lb["yt-spec-button-shape-next--icon-trailing"]=Vb,lb["yt-spec-button-shape-next--icon-leading"]=Ua,lb["yt-spec-button-shape-next--icon-leading-trailing"]=rb,lb["yt-spec-button-shape-next--icon-button"]=d||R,lb["yt-spec-button-shape-next--icon-only-default"]=sb,lb["yt-spec-button-shape-next--align-by-text"]=!!t,lb["yt-spec-button-shape-next--segmented-start"]=A==="start",lb["yt-spec-button-shape-next--segmented-end"]=A==="end",lb["yt-spec-button-shape-next--override-small-size-icon"]=Ba,lb["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=
!!da,lb["yt-spec-button-shape-next--disable-text-ellipsis"]=!!V,lb["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=XSa(),lb)),Db=_.lt(function(Wc){r==null||r(Wc);F&&(I==null||I(Wc))});
k=function(){return u?_.q(_.rt,{aTagConfig:u,disabled:n,className:ub,style:cTa(x).style,title:fa!=null?fa:"",ariaLabel:J,ariaCurrent:F&&C},_.q(_.Wh,null,dTa(b,Ua,rb,Vb,yc,Ca,ya))):_.q("button",{"on:click":Db,class:ub,title:fa!=null?fa:"",style:n&&u?"pointer-events:none":cTa(x).style,disabled:n,"aria-pressed":F?!!C:void 0,"aria-label":J?J:void 0,"aria-disabled":Mb,"aria-hidden":aa,tabindex:ma},_.q(_.Wh,null,dTa(b,Ua,rb,Vb,yc,Ca,ya)))};
m={};a=(m["yt-spec-button-shape-with-label"]=!0,m["yt-spec-button-shape-with-label--is-overlay"]=a==="overlay"||a==="overlay-dark",m);return _.q("yt-button-shape",{class:"yt-spec-button-shape-next__button-shape-wiz-class"},R?_.q("label",{class:_.ht(a)},k(),_.q("div",{class:"yt-spec-button-shape-with-label__label","aria-hidden":!0},eTa(b))):k())};
eTa=function(a){var b=a.formattedButtonText,c=a.animatedTextProps,d=a.buttonText,e=a.oneOffCustomTextWrap;a=a.iconPosition;return c?_.q(_.kt,{numberText:c.numberText,numberValue:c.numberValue,heightPx:c.heightPx,fontSizeMultiplier:c.fontSizeMultiplier,shouldAnimate:c.shouldAnimate,forceRollUp:c.forceRollUp}):b?(c=a==="icon-with-label"||e,_.q(_.tt,{text:Object.assign({},b,c?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),noLinkColor:!0,noWrap:!c})):d};
dTa=function(a,b,c,d,e,g,k){return _.q(_.Wh,null,_.Tg(g&&(b||c||e),function(){return _.q(_.Wh,null,_.q("div",{class:"yt-spec-button-shape-next__icon","aria-hidden":"true"},g==null?void 0:g()))}),_.Tg((a.buttonText||a.formattedButtonText||a.animatedTextProps)&&!e,function(){return _.q(_.Wh,null,_.q("div",{class:"yt-spec-button-shape-next__button-text-content"},eTa(a)))}),_.Tg(d,function(){return _.q(_.Wh,null,_.q("div",{class:"yt-spec-button-shape-next__icon"},g==null?void 0:g()))}),_.Tg(c,function(){return _.q(_.Wh,
null,_.q("div",{class:"yt-spec-button-shape-next__secondary-icon"},k==null?void 0:k()))}),_.Tg(!a.disabled&&!0,function(){return _.q(_.ut,{model:{color:WSa(a)}})}))};
_.vt=function(a){var b=_.$i("web_generic_client_event_wait_period ",0);b||(b=3E5);var c=fTa.get(a);!_.w("enable_web_client_experiment_event_timeout_killswitch")&&c&&(0,_.Uj)()-c<b||(fTa.set(a,(0,_.Uj)()),_.xl("genericClientExperimentEvent",{eventType:a}))};
gTa=function(a){switch(a){case 2:return"yt-spec-touch-feedback-shape--touch-response-inverse";case 3:return"yt-spec-touch-feedback-shape--overlay-touch-response";case 4:return"yt-spec-touch-feedback-shape--overlay-touch-response-inverse";default:return"yt-spec-touch-feedback-shape--touch-response"}};
iTa=function(a){if(_.w("web_enable_wiz_tfbs"))Ns(_.ut)({model:a});else{a={model:a};var b=xs,c;(b==null?0:(c=b.prototype)==null?0:c.render)?TPa(a):typeof xs==="function"&&xs(a)}c=_.w("web_enable_wiz_tfbs_log");_.w("mweb_wiz_migration_event_killswitch")||_.w("kevlar_wiz_migration_event_killswitch")||!c||hTa||(_.vt("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT"),hTa=!0)};
wt=function(a,b){switch(a.size){case "XS":return 16;case "S":return pt(a,b)?24:16;default:return 24}};
jTa=function(a){if(a.style==="overlay-dark"&&a.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
nTa=function(a,b,c){var d=a.buttonText,e=a.formattedButtonText,g=a.formattedButtonTextLegacy,k=a.animatedTextProps,m=a.style,n=a.size,r=a.focused,t=a.disabled,u=a.onTap,x=a.alignByText,A=a.aTagConfig,C=a.customColors,F=a.segmentedPosition,J=a.toggled,I=a.toggleable,R=a.accessibilityLabel,da=a.onToggle,V=a.iconPosition,fa=a.oneOffCustomTextWrap,aa=a.disableTextEllipsis,ma=a.tooltipText,Ba=a.ariaHidden,Ca=a.tabIndex,ya=a.state,Ia=a.type;m==="call-to-action-inverse"&&(Ia="text");m==="overlay-dark"&&
Ia!=="filled"&&Ia!=="tonal"&&(Ia="tonal");var db=!!b&&V==="leading",lb=!!b&&V==="trailing",Ua=!!b&&!!c&&V==="leading-trailing",Vb=!!b&&V==="icon-only",rb=!!b&&V==="icon-only-40",sb=!!b&&V==="icon-with-label",yc=Vb||rb||sb;t&&(ya="disabled");var Mb=ya==="disabled"||t;ya=pt(a,!!b);var ub={},Db=(ub["yt-spec-button-shape-next"]=!0,ub[$Sa(Ia)]=!0,ub[aTa(m)]=!Mb,ub["yt-spec-button-shape-next--disabled"]=!!Mb,ub[bTa(n)]=!0,ub["yt-spec-button-shape-next--focused"]=!!r&&!t,ub["yt-spec-button-shape-next--icon-trailing"]=
lb,ub["yt-spec-button-shape-next--icon-leading"]=db,ub["yt-spec-button-shape-next--icon-leading-trailing"]=Ua,ub["yt-spec-button-shape-next--icon-button"]=Vb||sb,ub["yt-spec-button-shape-next--icon-only-default"]=rb,ub["yt-spec-button-shape-next--align-by-text"]=!!x,ub["yt-spec-button-shape-next--segmented-start"]=F==="start",ub["yt-spec-button-shape-next--segmented-end"]=F==="end",ub["yt-spec-button-shape-next--override-small-size-icon"]=ya,ub["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=
!!fa,ub["yt-spec-button-shape-next--disable-text-ellipsis"]=!!aa,ub["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=XSa(),ub),Wc=function(){if(k)Ns(_.kt)(k);else if(g)g(V==="icon-with-label"||fa?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(e){var qb=V==="icon-with-label"||fa;yRa(Object.assign({},e,qb?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),{noLinkColor:!0,noWrap:!qb})}else d&&Th(d)},
Mc=function(qb){u==null||u(qb);
I&&(da==null||da(qb))},ia=A?kTa:lTa,ac=A?"aria-current$":"aria-pressed$",Qb=function(){b&&(db||Ua||yc)&&function(){xt({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){b()})}();
(d||e||g||k)&&!yc&&function(){xt({className:"yt-spec-button-shape-next__button-text-content"},function(){Wc()})}();
lb&&function(){xt({className:"yt-spec-button-shape-next__icon"},function(){b()})}();
Ua&&function(){xt({className:"yt-spec-button-shape-next__secondary-icon"},function(){c()})}();
t||iTa({color:WSa(a)})},Ac=function(){var qb={};
ia(Object.assign({},(qb.className=_.ht(Db),qb.onclick=A?void 0:Mc,qb.disabled=t,qb["aria-disabled$"]=Mb,qb.style=t&&A?"pointer-events:none":void 0,qb[ac]=I?!!J:void 0,qb["aria-label$"]=R,qb.title$=ma!=null?ma:"",qb["aria-hidden$"]=Ba,qb.tabindex$=Ca,qb),A,cTa(C)),function(){Qb()})};
sb?(n={},m=(n["yt-spec-button-shape-with-label"]=!0,n["yt-spec-button-shape-with-label--is-overlay"]=m==="overlay"||m==="overlay-dark",n),mTa({className:_.ht(m)},function(){Ac();xt({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},Wc)})):Ac()};
zt=function(a,b,c){_.w("web_wiz_button_shape")?Ns(st)({data:a,icon:b?function(){return _.q(Sl,null,b)}:void 0,
secondaryIcon:c?function(){return _.q(Sl,null,c)}:void 0}):nTa(a,b,c)};
At=function(a,b){_.Es(a,Object.assign({},b,{forceClickLogging:!0}))};
oTa=function(a,b,c,d){var e=void 0;return function(g){var k=_.Ds(c?a==null?void 0:a.onDisabledTap:a==null?void 0:a.onTap);if(k){var m;e=(m=e)!=null?m:b==null?void 0:b.value;k&&At(k,{form:{element:e,event:g}})}d&&d(g)}};
pTa=function(a){switch(a){case "BUTTON_VIEW_MODEL_STYLE_CTA":return"call-to-action";case "BUTTON_VIEW_MODEL_STYLE_MONO":case "BUTTON_VIEW_MODEL_STYLE_BRAND":return"mono";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY":return"overlay";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY_DARK":return"overlay-dark";case "BUTTON_VIEW_MODEL_STYLE_BRAND_GRADIENT":return"brand-gradient";case "BUTTON_VIEW_MODEL_STYLE_BRAND_AI":return"gen-ai-gradient";default:return"mono"}};
qTa=function(a){switch(a){case "BUTTON_VIEW_MODEL_TYPE_FILLED":return"filled";case "BUTTON_VIEW_MODEL_TYPE_OUTLINE":return"outline";case "BUTTON_VIEW_MODEL_TYPE_TEXT":return"text";case "BUTTON_VIEW_MODEL_TYPE_TONAL":return"tonal";default:return"text"}};
rTa=function(a){switch(a){case "BUTTON_VIEW_MODEL_STATE_ACTIVE":return"active";case "BUTTON_VIEW_MODEL_STATE_INACTIVE":return"disabled";case "BUTTON_VIEW_MODEL_STATE_DISABLED":return"disabled";default:return"active"}};
sTa=function(a){switch(a){case "BUTTON_VIEW_MODEL_SIZE_XSMALL":return"XS";case "BUTTON_VIEW_MODEL_SIZE_COMPACT":return"S";case "BUTTON_VIEW_MODEL_SIZE_DEFAULT":return"M";case "BUTTON_VIEW_MODEL_SIZE_LARGE":return"L";case "BUTTON_VIEW_MODEL_SIZE_XLARGE":return"XL";default:return"M"}};
tTa=function(a,b){return _.np(a.entities,"engagementToolbarStateEntityPayload",b)};
vTa=function(a){(a=_.ps(a))&&_.uTa(a)};
_.uTa=function(a){var b=_.En();b&&_.Uo(b,a)};
wTa=function(a,b,c){_.lo(a,"yt-open-popup-action",[b,c||a])};
xTa=function(a,b){var c=_.Ci(a,"endpoint"),d=_.Ci(a,"action");return(c=d?d:c)&&b&&(c=b.navigationEndpointPopupMap[c])&&(a=_.Ji(c,a),(c=_.Ci(a,"renderer"))&&b.supportedPopups.hasOwnProperty(c))?{openPopupAction:{popupType:b.popupTypeMap[c],popup:a}}:null};
yTa=function(a,b,c,d){if(d){var e;c=c==null?void 0:(e=c.data)==null?void 0:e.contents;(e=c instanceof Array&&c.length?c[0]:c)&&(c=_.Ci(e,"renderer"))&&d.supportedPopups.hasOwnProperty(c)&&(b.stopPropagation(),wTa(a,{openPopupAction:{popupType:d.popupTypeMap[c],popup:e}}))}};
BTa=function(a,b,c,d){d=d===void 0?!1:d;var e=zTa(b);if(e){e.href&&Gq(e.href);var g=b.button;g=g!==void 0?g===0&&!Bt(b):!Bt(b);e.data&&g&&ATa(a,e,b,c,d)}};
ATa=function(a,b,c,d,e){e=e===void 0?!1:e;var g=_.$i("pbj_navigate_limit",-1)===0;CTa(b);_.v().resolve(_.Xi(Jl));var k=b.data;if(Object.keys(k).length!==0)if(!_.w("unplugged_web_disable_actions_for_cec_endpoint")&&_.y(k,_.ro))_.w("endpoint_behavior_command_executor_fix_killswitch")||(c.preventDefault(),c.stopPropagation()),_.po(a,[k],a);else if(d=xTa(k,d))k.loggingUrls&&k.loggingUrls.forEach(function(n){n.baseUrl&&_.Jk(n.baseUrl)}),c.preventDefault(),c.stopPropagation(),wTa(a,d,b);
else{var m=DTa(0,b.data,c);if(a=b.getForm)a=a(),m.tempData=m.tempData||{},m.tempData=Object.assign({},m.tempData,a);a=_.Rq(c);if(d=a.find(function(n){return!!n.visualElement}))m.createScreenConfig=m.createScreenConfig||{},m.createScreenConfig.clickedVisualElement=d.visualElement;
if(!g)if(c.preventDefault(),c.stopPropagation(),_.y(k,_.ETa)&&!e&&_.gs.instance)_.gs.instance.resolveCommand(k,m);else if(_.w("kevlar_command_handler_formatted_string")&&!e&&_.gs.instance&&FTa(k))e=a.find(function(n){return!!n.is})||c.target,c={form:Object.assign({},m,{event:c,
element:e,originatingNode:b})},_.gs.instance.resolveCommand(k,c);else{k=_.Rq(c);c=[];for(e=0;e<k.length;e++)(g=k[e].is)&&c.push(g);tua({parents:c.join(","),text:b.innerText},function(){_.io(b,"yt-navigate",m)})}}};
GTa=function(a){if(a=zTa(a))CTa(a),kJa(a.href)};
zTa=function(a){a=_.Rq(a);for(var b,c=0;c<a.length;c++)if(b=a[c],b.tagName==="A"&&b.classList.contains("yt-simple-endpoint")){if(!b.data)break;return b}return null};
Bt=function(a){return a.shiftKey||a.altKey||a.metaKey||a.ctrlKey};
HTa=function(a,b){var c={itct:b.clickTrackingParams};_.w("kevlar_client_side_screens")&&(!_.y(b,_.uq)||_.w("kevlar_exclude_endpoint_killswitch"))&&(c.endpoint=JSON.stringify(b));_.w("enable_unknown_lact_fix_on_html5")&&_.v().resolve(_.Xi(_.Ct))&&(c.lact=_.Yk());hJa(c);_.ao(a,c)};
CTa=function(a){a.href&&Object.keys(a.data).length!==0&&HTa(a.href,a.data)};
FTa=function(a){for(var b=_.h(ITa),c=b.next();!c.done;c=b.next())if(a[c.value])return!1;return!0};
_.Dt=function(a,b){if(b){var c={};JTa.forEach(function(d){d=KTa(b,d,"--yt-lightsource-");Object.assign(c,d)});
LTa.forEach(function(d){d=KTa(b,d,"--yt-basic-");Object.assign(c,d)});
_.fr(a,c)}};
KTa=function(a,b,c){var d={};d[c+_.on(b)]=a&&a[b]?_.Dq(a[b]):"";return d};
_.Ft=function(a,b,c){Et[a]||(Et[a]={});Et[a][b]=c};
_.Gt=function(a){Et[a]||(Et[a]={});return Et[a]};
MTa=function(a){if(!a)return{};var b=a.foregroundTitleColor,c=a.backgroundColor;a=a.borderColor;var d="text";a?d="outline":c&&(d="filled");return{type:d,customColors:{color:b?_.Dq(b):void 0,backgroundColor:c?_.Dq(c):void 0,borderColor:a?_.Dq(a):void 0}}};
RTa=function(a){var b=a.renderer;var c=a.element;var d=a.commandController;var e=a.onTapCallback;var g=a.skipCommandHandling;var k=a.overrides;var m=a.forceIcon;var n=a.forceModernIconButton;var r=a.forceDisabled;var t=a.isSubscribe===void 0?!1:a.isSubscribe;var u=a.isPressed===void 0?!1:a.isPressed;var x=a.useButtonSize===void 0?!1:a.useButtonSize;a=NTa(b);t&&(a.style="mono",a.type="filled");m=!b.icon||!m&&b.text?b.icon?b.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:n?"icon-only":"icon-only-40";m==="icon-only-40"&&(a.type="text");var A;n=Object;t=n.assign;x=OTa(b,x);u=!!b.isSelected||!_.w("web_propagate_is_pressed_killswitch")&&!!u;var C=b.isSelected!==void 0;r=r===void 0?b.isDisabled:r;var F=b.text?_.zs(b.text):void 0;var J,I,R,da=((J=b.accessibilityData)==null?void 0:(I=J.accessibilityData)==null?void 0:I.label)||((R=b.accessibility)==null?void 0:R.label);J=da?da:_.Wp(b.text);c=PTa(b,c,d,e,g);d=QTa(b);d!=null&&d.length?(d=_.Fs({innertubeCommand:jQa(d),
forceNewState:!0}),d=kQa(d)?d:void 0):d=void 0;return t.call(n,{},a,x,{iconPosition:m},k,{focused:!1,toggled:u,toggleable:C,disabled:r,formattedButtonText:F,accessibilityLabel:J,onTap:c,aTagConfig:d},MTa((A=b.colorData)==null?void 0:A.basicColorPaletteData),{oneOffCustomTextWrap:b.oneOffCustomTextWrap})};
PTa=function(a,b,c,d,e){return function(g){var k=QTa(a);d(k,g);if(!e){k=_.h(k);for(var m=k.next();!m.done;m=k.next())At(m.value,{form:{element:b,event:g},commandController:c})}}};
QTa=function(a){var b=[];a.command&&b.push(a.command);a.serviceEndpoint&&b.push(a.serviceEndpoint);a.navigationEndpoint&&b.push(a.navigationEndpoint);return b};
OTa=function(a,b){if(b)switch(a.size){case "SIZE_SMALL":return{size:"S"};case "SIZE_LARGE":return{size:"L"};case "SIZE_XLARGE":return{size:"XL"};case "SIZE_XSMALL":return{size:"XS"};default:return{size:"M"}}switch(a.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
NTa=function(a){switch(a.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",
type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",
type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
_.Ht=function(a){return _.ph(function(){QNa()();return Lr(a)},void 0,"Icv7j")};
It=function(a,b){return _.np(a.entities,"likeStatusEntity",b)};
STa=function(a,b){return _.np(a.entities,"likeCountEntity",b)};
_.TTa=function(a,b){return _.np(a.entities,"stringEntity",b)};
UTa=function(a,b){if(!a)return!1;var c,d=(c=_.y(a,_.to))==null?void 0:c.signal;if(d&&b.signalEndpointMap)return!!b.signalEndpointMap[d];var e;if((c=(e=_.y(a,_.Jt))==null?void 0:e.request)&&b.continuationEndpointMap)return!!b.continuationEndpointMap[c];for(var g in a)if(b.commandEndpointMap[g])return!0;return!1};
VTa=function(a,b){if(b.streamingEndpointMap)for(var c in a)if(b.streamingEndpointMap[c]&&(a=b.streamingEndpointMap[c]))return a()};
WTa=function(a,b){var c,d=(c=_.y(a,_.to))==null?void 0:c.signal;if(d&&b.signalEndpointMap&&(c=b.signalEndpointMap[d]))return c();var e;if((c=(e=_.y(a,_.Jt))==null?void 0:e.request)&&b.continuationEndpointMap&&(e=b.continuationEndpointMap[c]))return e();for(var g in a)if(b.commandEndpointMap[g]&&(a=b.commandEndpointMap[g]))return a()};
XTa=function(a){var b={"Content-Type":"application/json"};_.Fi("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=_.Fi("EOM_VISITOR_DATA"):_.Fi("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=_.Fi("VISITOR_DATA"));b["X-Youtube-Bootstrap-Logged-In"]=_.Fi("LOGGED_IN",!1);_.Fi("DEBUG_SETTINGS_METADATA")&&(b["X-Debug-Settings-Metadata"]=_.Fi("DEBUG_SETTINGS_METADATA"));a!=="cors"&&((a=_.Fi("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=_.Fi("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=
a),(a=_.Fi("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),(a=_.Fi("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a),_.Gi("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(a=_.Fi("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(b["X-YouTube-Lava-Device-Context"]=a));return b};
YTa=function(a,b){b.watchNextResponse||b.reelItemWatchResponse?b.watchNextResponse?a.content=b.watchNextResponse:a.content=b.reelItemWatchResponse:b.playerResponse?a.player=b.playerResponse:b.reelWatchSequenceResponse&&(a.reelSequence=b.reelWatchSequenceResponse)};
Kt=function(a){return function(){return new a}};
Lt=function(a){var b=_.v();return function(){return b.resolve(a)}};
_.Mt=function(a){if(!a)return null;for(var b=[],c=0;c<a.textSegments.length;c++){var d=a.textSegments[c];d.text?b.push(d):d.emojiId&&b.push({emoji_id:d.emojiId})}return{text_segments:b}};
cUa=function(a,b,c,d,e,g,k){g=g===void 0?[]:g;var m=new _.Nt;m.endpoint=c;if(!c)return _.Cl(new _.qj("handle undefined endpoint",b.tagName)),m;var n=Cua(c);n.length&&(_.po(a,n,b,d),m.actions=n);c.loggingUrls&&c.loggingUrls.forEach(function(t){t.baseUrl&&Kk(t.baseUrl,t.attributionSrcMode)});
n=!_.w("web_skip_impression_click_killswitch")&&d&&d.impression;if(c.clickTrackingParams&&!ZTa(c)&&!$Ta(b)&&!n&&(n=_.ls(),!_.Ot(n,b))){var r=b.getScreenLayer&&b.getScreenLayer();r?n.clickCommand(c,null,r):n.clickCommand(c,null)}n=!1;for(r=0;r<g.length;r++)if((0,g[r])(b,c,d)){n=!0;break}!n&&aUa(c)&&(m.ajaxPromise=bUa(a,b,c,d,e,k));return m};
$Ta=function(a){var b;return(a=(b=a.data)==null?void 0:b.navigationEndpoint)&&!!a.clickTrackingParams};
ZTa=function(a){var b=_.y(a,_.to);if(b&&(b=b.signal)&&dUa.indexOf(b)>=0)return!0;for(var c in a)if(eUa.indexOf(c)>=0)return!0;return!1};
aUa=function(a){var b;if(((b=_.y(a,_.to))==null?void 0:b.signal)==="CLIENT_SIGNAL")return!1;for(var c in a)if(fUa.indexOf(c)>=0)return!1;a=Object.keys(a);return a.length===1&&a[0]==="loggingUrls"?!1:!0};
nUa=function(a,b,c,d,e,g,k){var m=_.Pt.instance;if(m&&_.Qt(m,d))var n=_.Rt(m,d,e).then(function(t){return(t==null?0:t.data)?t:{data:t}});
else n=a.requestDataForServiceEndpoint(d,e),_.y(d,gUa)||_.y(d,hUa)||_.y(d,_.iUa)||_.y(d,jUa)||_.Dl(new _.qj("No RequestBuilder for endpoint",d));var r=_.St();r.promise.thenCatch(function(){var t=_.Ci(d,"action")||_.Ci(d,"command")||_.Ci(d,"endpoint");t&&(t=d[t],t.hasOwnProperty("onFailureAction")?_.po(b,[t.onFailureAction],c):t.hasOwnProperty("onFailureCommand")&&_.po(b,t.onFailureCommand,c));n.cancel("Resolver promise rejected")});
n.then(function(t){if(t){var u=t.error;if(u){if(g&&g.onServerError)g.onServerError(d,t);r.reject(new _.qj("Response error",d,u))}else if(t=t.data)if(u=t.error){if(g&&g.onServerError)g.onServerError(d,t);r.reject(new _.qj("Returned error",d,u))}else{kUa(b,c,t,d);lUa(t);if(u=Bua(t))for(var x=_.h(u),A=x.next();!A.done;A=x.next()){A=A.value;var C=_.v().resolve(_.Xi(mUa))||Tt;if(!_.Pt.instance||!C.some(function(J){return!!_.y(d,J)})||_.w("kevlar_response_processor_allowlist_killswitch")){var F=C=void 0;
((F=_.y((C=A)==null?void 0:C.commandMetadata,_.co))==null?0:F.sendPost)?_.oo(b,[A]):_.po(b,[A],c)}}(x=_.y(t==null?void 0:t.frameworkUpdates,Ut))&&k&&k(x);if(g&&g.onSuccess)g.onSuccess(d,t);r.resolve(new _.Vt(t,u))}}else r.reject(new _.qj("Invalid service endpoint provided",d))},function(t){r.reject(t)});
return r.promise};
lUa=function(a){var b;(a=(b=_.y(a==null?void 0:a.onResponseReceivedCommand,_.oUa))==null?void 0:b.continuationItems)&&(a==null?void 0:a.length)===1&&_.y(a[0],pUa)&&_.Lo("so_r",void 0,"search_overview_answer")};
bUa=function(a,b,c,d,e,g){var k;return(k=b.getNetworkManager&&b.getNetworkManager()?b.getNetworkManager():_.v().resolve(_.Xi(_.xq)))?nUa(k,a,b,c,d,e,g):_.On("No network manager.")};
kUa=function(a,b,c,d){if(c=c.trackingParams||c.loggingDirectives&&c.loggingDirectives.trackingParams){var e;(_.y(d,qUa)||_.y(d,rUa)||_.y(d,sUa))&&d.clickTrackingParams?e=_.ps(d.clickTrackingParams):_.w("web_graft_to_parent_command")&&d.clickTrackingParams&&(e=_.ps(d.clickTrackingParams));var g;d=(g=b.getScreenLayer)==null?void 0:g.call(b);b=_.ls().graftServerVe(c,e,d);_.mo(a,"yt-store-grafted-ve-action",[b])}};
_.tUa=function(a){var b=new Image;return new _.il(function(c,d){b.addEventListener("load",function(){c()});
b.addEventListener("error",function(){d()});
b.src=a})};
uUa=function(a){return!!a};
vUa=function(a){return!!a};
wUa=function(a,b,c){var d=a.rowIndex;d!==void 0&&_.mo(a.hostElement,"yt-section-reactive-dismissal",[d,b,c])};
_.Wt=function(a,b,c){a=_.h(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d===b)break;for(var e=_.h(c),g=e.next();!g.done;g=e.next())if(g=g.value,d.tagName===g||!_.w("web_event_button_role_check_killswitch")&&d.role==="button"&&g==="BUTTON")return!0}return!1};
_.Xt=function(a,b,c){a=_.h(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d===b)break;for(var e=_.h(c),g=e.next();!g.done;g=e.next())if(d.id===g.value)return!0}return!1};
Yt=function(a,b){if(!a&&!b)return"medium";a=Math.max(a||0,b||0);return a>=256?"large":a>=96?"medium":"small"};
xUa=function(a){switch(a){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.au=function(){var a=_.v().resolve(_.Xi(_.Zt));return a?(a=a.getCurrentPage())?_.$t(a):null:null};
_.bu=function(){var a=_.au();if(!a){var b=_.v().resolve(_.Xi(_.Zt)),c=b?typeof b:"no page manager";b=b?b.getCurrentPage():null;c=new _.qj("Player is missing when requested.",c,b?b.tagName:"no page");_.Bl(c)}return a};
_.$t=function(a){return a&&a.getPlayer?a.getPlayer():null};
yUa=function(a,b){a={args:{raw_player_response:a}};b&&(a.args=Object.assign({},a.args,b));return a};
zUa=function(a){if(a.args){if(a.args.raw_player_response)return a.args.raw_player_response;if(a.args.player_response)return JSON.parse(a.args.player_response)}};
_.AUa=function(a,b){var c={url:"/watch?v="+a.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};a.playlistId&&(c.url+="&list="+a.playlistId);a.playerParams&&(c.url+="&pp="+a.playerParams);a={watchEndpoint:a,commandMetadata:{webCommandMetadata:c}};b&&(a.clickTrackingParams=b);return a};
CUa=function(){return BUa||!!_.Ji("yt.player.Application")};
EUa=function(){return DUa||!!document.querySelector("link#player-css")};
GUa=function(){function a(){BUa=!0;FUa.resolve()}
var b,c;return _.l(function(d){FUa||(FUa=new _.hq,CUa()?a():(b=document.createElement("script"),b.addEventListener("load",a),c=_.yg(_.Fi("PLAYER_JS_URL")),_.Zd(b,c),document.head.appendChild(b)));return d.return(FUa.promise)})};
IUa=function(){function a(){DUa=!0;HUa.resolve()}
if(!HUa)if(HUa=new _.hq,EUa())a();else{var b=document.createElement("link");b.id="player-css";b.addEventListener("load",a);var c=_.yg(_.Fi("PLAYER_CSS_URL"));_.ce(b,c,"stylesheet");document.head.appendChild(b)}return HUa.promise};
JUa=function(){return CUa()&&EUa()?Promise.resolve([]):Promise.all([GUa(),IUa()])};
KUa=function(a,b,c){var d={args:{}};a&&(d.args.raw_player_response=a);b&&(d.args.raw_watch_next_response=b);c&&(d.args=Object.assign({},d.args,c));return d};
OUa=function(a,b,c){var d=!1;d=d===void 0?!0:d;a=typeof a==="string"?_.cu(document,a):a;var e=LUa+"_"+_.$a(a),g=MUa[e];if(g&&d)return NUa(b,c)?g.api.loadVideoByPlayerVars(b.args||null):g.loadNewVideoConfig(b),g.api;g=new du(a,e,b,c,void 0);MUa[e]=g;g.addOnDisposeCallback(function(){delete MUa[g.getId()]});
return g.api};
NUa=function(a,b){return b&&b.serializedExperimentFlags?b.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):a&&a.args&&a.args.fflags?a.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
PUa=function(){var a=new _.hq;a.resolved=!1;var b=a.resolve;a.resolve=function(c){a.resolved=!0;b(c)};
return a};
RUa=function(a){var b={};QUa().install((b.document_disposed={callback:a},b))};
eu=function(a,b){if(!a&&Math.random()<=_.$i("kevlar_unified_player_logging_threshold")){a=Error("xh`"+(b?b:"Unspecified error"));if(_.w("kevlar_unified_player_throw_errors"))throw a;_.Dl(a)}};
_.SUa=function(){var a=_.Ji("ytDebugData.callbacks");a||(a={},_.Rj("ytDebugData.callbacks",a));return a};
UUa=function(a,b){var c=_.SUa();if(_.w("web_dd_iu")||TUa.includes(a))c[a]=b};
VUa=function(){return _.l(function(a){return a.return({isLeader:_.JFa(_.Yp().getState()),c:_.Fi("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.Fi("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
WUa=function(){var a;_.l(function(b){if(b.nextAddress==1)return UUa("APP_STATE",VUa),_.p(b,_.v().resolve(_.fu),2);a=b.yieldResult;UUa("PI",function(){return _.l(function(c){return c.return(a.getVideoStats())})});
_.ue(b)})};
XUa=function(a){var b=_.$n(_.Pn(_.ja.location.href));a=_.$n(_.Pn(a));return _.w("kevlar_clear_non_displayable_url_params")?b==gu(a):gu(b)==gu(a)};
gu=function(a){var b=_.YUa(a);a=a.slice(0);var c=["frags"];_.w("kevlar_hide_pp_url_param")&&c.push("pp");_.w("kevlar_hide_time_continue_url_param")&&c.push("time_continue");c=_.h(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a=_.bo(_.$n(a),d);return _.$n(a)+(b?"#"+b:"")};
hu=function(a,b){b=Number(b)*1E3;var c=Math.round((0,_.Uj)()),d=c.toString();a={innertubeResponse:a,serverDateTimestampMs:d,lastModifiedTimestampMs:d,expireTimestampMs:(c+b).toString()};if(b=_.Fi("INNERTUBE_CONTEXT_CLIENT_NAME"))a.clientName=b;return a};
$Ua=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++ZUa};
_.aVa=function(){var a=_.Dn(),b=_.En();b&&a&&_.Wo(b,[a],!0)};
cVa=function(a){return a&&bVa.some(function(b){return a.includes(b)})};
iVa=function(a){var b=_.y(a,_.Kl);if(!b)return!1;var c=b.url,d=b.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!c)return _.Bl(Error("Ch")),!1;if(b.target==="TARGET_NEW_WINDOW"){var e={};_.w("resolve_url_parent_tracking_params")&&(!_.Si(c)||Ti(window.location.href,c))&&(e={endpoint:a,itct:a.clickTrackingParams});hJa(e);a=null;try{if(d){a:{var g=c,k=e;d=d===void 0?!1:d;k&&_.ao(g,k);var m=_.Id(g),n=_.Ed(m);g!=n&&_.Ki(Error("bg`"+g));g=n;try{if(d){n=g;n=isa(n);Gq(n);a=_.Td(window,n,"_blank",
"attributionsrc");break a}}catch(x){_.Hi(x)}Gq(g);a=_.Td(window,m,"_blank")}dVa(_.v().resolve(eVa),a,c);return!0}}catch(x){_.Bl(x)}_.ao(c,e);e={target:"_blank",noopener:!b.allowOpener};b=window;m=Dd(c)?c:_.Id(typeof c.href!="undefined"?c.href:String(c));a=self.crossOriginIsolated!==void 0;g="strict-origin-when-cross-origin";window.Request&&(g=(new Request("/")).referrerPolicy);n=e.noreferrer;if(a&&n&&g==="unsafe-url")throw Error("te");g=n&&!a;n=e.target||c.target;d=[];k=[];var r=!1;for(u in e){var t=
e[u];switch(u){case "width":case "height":case "top":case "left":d.push(u+"="+t);break;case "target":break;case "noopener":case "noreferrer":t?k.push(u):(r=!0,k.push(u+"=false"));break;case "attributionsrc":d.push(u+(t?"="+t:""));break;default:d.push(u+"="+(t?1:0))}}var u=n!==void 0&&!["_blank","_self","_top","_parent",""].includes(n);u=Da()&&u;fVa&&a&&d.length===0&&k.length>0&&!u&&!r?(k.length===2&&(k=["noreferrer"]),_.Td(b,m,n,k[0]),a=gVa()):(u=d.join(","),_.Ha()&&b.navigator&&b.navigator.standalone&&
n&&n!="_self"?(u=_.pg("A"),Nd(u,m),u.target=n,g&&(u.rel="noreferrer"),((e=e.attributionsrc)||e==="")&&u.setAttribute("attributionsrc",e),e=document.createEvent("MouseEvent"),e.initMouseEvent("click",!0,!0,b,1),u.dispatchEvent(e),u=gVa()):g?(u=_.Td(b,"",n,u),b=_.Ed(m),u&&(u.opener=null,b===""&&(b="javascript:''"),b='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+iu(b)+'">',b=Qd(b),(e=u.document)&&e.write&&(e.write(Rd(b)),e.close()))):((u=_.Td(b,m,n,u))&&e.noopener&&
(u.opener=null),u&&e.noreferrer&&(u.opener=null)),a=u);dVa(_.v().resolve(eVa),a,c);return!0}u=_.gj(c);u=cVa(u)||c==="https://studio.youtube.com/";b=!(!_.Si(c)||Ti(window.location.href,c));e=c.indexOf("disable_polymer=1")>=0;if(b||e||u)Gq(c),Io(),_.Hq(c,void 0,void 0,window.top,hVa);else return _.Dl(new _.qj("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",a)),!1;return!0};
_.lVa=function(a,b){b=b===void 0?0:b;if(!(_.y(a,jVa)||_.y(a,kVa)||_.y(a,_.Kl)&&_.y(a,_.Kl).url))return!1;var c,d=(c=_.y(a,_.Kl))==null?void 0:c.url;c=d?{externalLinkData:{url:d}}:null;return _.ls().clickCommand(a,c,b)};
_.ju=function(a,b){return _.np(a.entities,"subscriptionStateEntity",b)};
mVa=function(a,b){return _.np(a.entities,"subscriptionNotificationStateEntity",b)};
nVa=function(a,b){return _.np(a.entities,"upcomingEventReminderStateEntity",b)};
oVa=function(a,b){return _.np(a.entities,"engagementToolbarSurfaceEntityPayload",b)};
pVa=function(a,b){return _.np(a.entities,"triStateButtonStateEntityPayload",b)};
qVa=function(a,b){return _.np(a.entities,"commerceCartCheckoutButtonEntity",b)};
_.rVa=function(a,b){return _.np(a.entities,"playlistLoopStateEntity",b)};
sVa=function(a,b){return _.np(a.entities,"commandEntity",b)};
uVa=function(a,b,c,d,e){e=e===void 0?{}:e;return function(g){var k,m;var n=((k=a.loggingDirectives)==null?0:(m=k.clientVeSpec)==null?0:m.uiType)?_.ku(a.loggingDirectives.clientVeSpec.uiType):void 0;e.clickedVisualElement||(e.clickedVisualElement=n);n=tVa(a,b);c(n,g);n=_.h(n);for(k=n.next();!k.done;k=n.next()){k=k.value;m=d;var r=g,t=e;t.form?t.form.event=r:t.form={element:m,event:r};At(k,t)}}};
tVa=function(a,b){var c=[];b?(a.toggledCommand&&c.push(a.toggledCommand),a.toggledServiceEndpoint&&c.push(a.toggledServiceEndpoint)):(a.defaultCommand&&c.push(a.defaultCommand),a.defaultServiceEndpoint&&c.push(a.defaultServiceEndpoint),a.defaultNavigationEndpoint&&c.push(a.defaultNavigationEndpoint));return c};
vVa=function(a,b){var c=a.toggledStyle||a.style,d;switch((d=b?c:a.style)==null?void 0:d.styleType){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_SUGGESTIVE":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":return{style:"mono",type:"outline",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
_.mu=function(){return _.l(function(a){return a.nextAddress==1?_.p(a,_.v().resolve(_.fu),2):a.return(_.v().resolve(_.lu)())})};
_.nu=function(){return yi(function(){return{lottieEl:void 0}})};
wVa=function(a){var b,c;_.l(function(d){if(d.nextAddress==1)return _.p(d,_.mu(),2);b=d.yieldResult;if((c=b)==null||!c.addEventListener)return ou(),d.return();b.addEventListener("onCueRangeEnter",a);_.ue(d)})};
xVa=function(a){var b,c;_.l(function(d){if(d.nextAddress==1)return _.p(d,_.mu(),2);b=d.yieldResult;if((c=b)==null||!c.removeEventListener)return ou(),d.return();b.removeEventListener("onCueRangeEnter",a);_.ue(d)})};
yVa=function(a){var b,c,d,e,g;_.l(function(k){if(k.nextAddress==1)return _.p(k,_.mu(),2);b=k.yieldResult;if((c=b)==null||!c.addCueRange)return ou(),k.return();d=_.h(a.timings);for(e=d.next();!e.done;e=d.next())g=e.value,b.addCueRange(a.uniqueId+"-"+g,g/1E3,(g+100)/1E3);_.ue(k)})};
zVa=function(a){var b,c,d,e,g;_.l(function(k){if(k.nextAddress==1)return _.p(k,_.mu(),2);b=k.yieldResult;if((c=b)==null||!c.removeCueRange)return ou(),k.return();d=_.h(a.timings);for(e=d.next();!e.done;e=d.next())g=e.value,b.removeCueRange(a.uniqueId+"-"+g);_.ue(k)})};
AVa=function(){var a,b,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,_.mu(),2);a=d.yieldResult;if((b=a)==null||!b.getPlayerState)return ou(),d.return();c=a.getPlayerState();return d.return(c===2)})};
ou=function(){_.Dl(new _.qj("Smartimation player does not exist or is corrupted"))};
EVa=function(a){var b=BVa;CVa.push(a);DVa||(b(function(){for(var c=_.h(CVa),d=c.next();!d.done;d=c.next())d=d.value,d();CVa.length=0;DVa=!1}),DVa=!0)};
BVa=function(a){Promise.resolve().then(a)};
pu=function(a){a=_.h($ua(a));var b=a.next().value,c=a.next().value,d=!1;_.wi(function(){return function(){d=!0}});
return[b,function(e){EVa(function(){d&&!_.w("cow_prevent_state_setter_after_cleanup_killswitch")||c(e)})}]};
_.GVa=function(a){function b(n){var r;return _.l(function(t){if(t.nextAddress==1)return(r=!n.startsWith(d.uniqueId)||!d.enabled)?t.jumpTo(2):_.p(t,AVa(),3);t.nextAddress!=2&&(r=t.yieldResult);if(r)return t.return();c();setTimeout(function(){m(!1)},1500);
_.ue(t)})}
function c(){setTimeout(function(){m(!0);var n;(n=e.lottieEl)==null||n.goToAndPlay(0)},150)}
var d=a.settings;a=a.children;var e=_.nu(),g=_.h(pu(!1)),k=g.next().value,m=g.next().value;d||(d={uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]},_.Dl(new _.qj("Smartimation Settings is undefined")));vi(function(){if(d.experimentEnabled)return d.enabled?wVa(b):(m(!1),xVa(b)),function(){xVa(b)}},[d.enabled,
d.experimentEnabled]);vi(function(){if(d.experimentEnabled)return yVa(d),function(){zVa(d)}},[d.timings.join("")]);
return _.q("yt-smartimation",{class:FVa(k,d)},_.Tg(d.experimentEnabled,function(){var n=d.uniqueId+"-border",r,t;var u="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((t=(r=_.v().resolve(_.Xi(_.Ks)))==null?void 0:r())!=null&&t?"dark":"light")+"_v2.json";return _.q("div",{class:"smartimation__border"},_.q(FSa,{className:"smartimation__border-gradient",data:{animationRef:e,animationConfig:{name:n,autoplay:!1,loop:!1,path:u}}}))}),_.q("div",{class:"smartimation__content"},
a))};
FVa=function(a,b){var c=["smartimation"];b.experimentEnabled&&c.push("smartimation--experiment-enabled");a&&c.push("smartimation--active-border");try{var d;var e=(d=window.CSS)!=null&&d.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(g){_.Dl(new _.qj("Smartimation CSS.supports threw an error")),e=!1}e&&c.push("smartimation--enable-masking");
return c.join(" ")};
NVa=function(a,b,c,d,e){var g=a.playlistId?HVa:IVa;b=b();c=c();e=!!a.videoId&&e()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.xp(b))return JVa({data:a,actionType:g,disabled:e},c);if(a.videoId&&d())return KVa({data:a,actionType:g,disabled:e});switch(b){case "TRANSFER_STATE_UNKNOWN":return KVa({data:a,actionType:g,disabled:e});case "TRANSFER_STATE_FAILED":return a.videoId?LVa({data:a,actionType:g,disabled:e}):MVa({data:a,actionType:g,disabled:e});case "TRANSFER_STATE_COMPLETE":return MVa({data:a,
actionType:g,disabled:e});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return JVa({data:a,actionType:g,disabled:e},c);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return a.videoId?LVa({data:a,actionType:g,disabled:e}):KVa({data:a,actionType:g,disabled:e});default:return KVa({data:a,actionType:g,disabled:e})}};
OVa=function(a,b){var c=a.onTapCommand,d=_.Ds(c);if(a.videoId&&_.y(d,_.qu))return _.y(d,_.qu).action=b,c;a.playlistId&&_.y(d,_.ru)&&(_.y(d,_.ru).action=b);return c};
KVa=function(a){var b=a.data;var c=a.actionType;a=a.disabled;return{text:PVa,iconType:"OFFLINE_DOWNLOAD",onTap:OVa(b,c.ACTION_ADD),disabled:a}};
JVa=function(a,b){var c=a.data;var d=a.actionType;a=a.disabled;var e="OFFLINE_DOWNLOAD";b>=0&&b<=.1?e="OFFLINE_DOWNLOADING_ZERO":b>.1&&b<=.3?e="OFFLINE_DOWNLOADING_TWENTY":b>.3&&b<=.5?e="OFFLINE_DOWNLOADING_FORTY":b>.5&&b<=.7?e="OFFLINE_DOWNLOADING_SIXTY":b>.7&&b<1?e="OFFLINE_DOWNLOADING_EIGHTY":b===1&&(e="OFFLINE_PIN");return{text:QVa,iconType:e,onTap:OVa(c,d.ACTION_REMOVE_WITH_PROMPT),disabled:a}};
MVa=function(a){var b=a.data;var c=a.actionType;a=a.disabled;return{text:RVa,iconType:"OFFLINE_PIN",onTap:OVa(b,c.ACTION_REMOVE_WITH_PROMPT),disabled:a}};
LVa=function(a){var b=a.data;var c=a.actionType;a=a.disabled;return{text:SVa,iconType:"OFFLINE_DOWNLOAD",onTap:OVa(b,c.ACTION_RETRY),disabled:a}};
TVa=function(){var a=_.h(pu(!1)),b=a.next().value,c=a.next().value;return function(){c(!b)}};
UVa=function(a){return yi(function(){return{value:a}})};
VVa=function(a,b){var c=UVa(a),d=UVa(b);vi(function(){c.value=a},[a]);
vi(function(){d.value=b},b&&b.length>=1?b:[void 0]);
var e=yi(function(){return{value:void 0}});
if(a!==c.value||d.value!==b||e.value===void 0)e.value=Lr(a,b);var g=TVa();_.wi(function(){function k(){var n=Lr(c.value,b);n!==e.value&&(e.value=n,g())}
var m=_.Kr().subscribe(k);k();return m});
return e.value};
_.su=function(a,b){return VVa(a,[b])};
_.tu=function(a,b){var c=QNa();return _.ph(function(){c();return Lr(a,[_.Bh(b)||""])},void 0,"HaeHEc")};
WVa=function(a){var b=_.tu(_.Kp,function(){return a().videoId}),c=_.tu(_.Lp,function(){return a().playlistId});
return function(){return a().videoId?b:a().playlistId?c:_.h(_.ih("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
XVa=function(a){var b=_.tu(Mp,function(){return a().videoId}),c=_.tu(_.IFa,function(){return a().playlistId});
return function(){return a().videoId?b:a().playlistId?c:_.h(_.ih(0,void 0,"K4tgOc")).next().value}};
YVa=function(a){var b=_.tu(_.PFa,function(){return a().videoId});
return function(){return a().videoId?b:_.h(_.ih(!1,void 0,"Oaxwcf")).next().value}};
ZVa=function(a){var b=_.tu(LFa,function(){return a().videoId});
return function(){return a().videoId?b:_.h(_.ih("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
$Va=function(){return{}};
cWa=function(a){var b=a.backgroundLottieRef;var c=a.foregroundLottieRef;var d=a.children;var e=a.wrapperClass;a=a.disableAnimation;a=(_.w("web_animated_actions")||_.w("web_animated_actions_v2"))&&!a;return _.q("yt-animated-action",{class:_.et("animated-action__container",e)},_.q("div",{class:"animated-action__content-with-background"},_.Tg(a,function(){return _.q(aWa,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:{animationRef:b,animationConfig:{name:"animated-actions-background",
autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+(bWa()?"dark":"light")+"_v5.json"}}})}),d),_.Tg(a,function(){return _.q(aWa,{lottiePlayerProps:{animationRef:c,
animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(bWa()?"dark":"light")+"_v4.json"}}})}))};
aWa=function(a){var b=a.wrapperClass;var c=a.lottieClass;a=a.lottiePlayerProps;return _.q("div",{class:_.ht("animated-action__lottie",b),"aria-hidden":"true"},_.q(FSa,{className:c,data:a}))};
bWa=function(){var a,b;return(b=(a=_.v().resolve(_.Xi(_.Ks)))==null?void 0:a())!=null?b:!1};
eWa=function(a,b){a=a===void 0?dWa:a;switch(b.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},a,{isOpen:b.payload});default:return a}};
gWa=function(a,b){a=a===void 0?fWa:a;switch(b.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},a,{isAllowed:b.payload});default:return a}};
iWa=function(a,b){a=a===void 0?hWa:a;switch(b.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},a,{errorMessage:b.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},a,{title:b.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},a,{privacy:b.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},a,{isDisabled:b.payload});default:return a}};
kWa=function(a,b){a=a===void 0?jWa:a;switch(b.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},a,{isOpen:b.payload});default:return a}};
mWa=function(a,b){a=a===void 0?lWa:a;switch(b.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},a,{isFullscreen:b.payload});case "SET_NAVIGATION_BUTTON":var c=b.payload.targetId,d=Object.assign({},a.navigationButtons);d[c]=b.payload.button;return Object.assign({},a,{navigationButtons:d});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},a,{topPanelId:b.payload});case "SET_SECONDARY_HEADER":return c=b.payload.panelId,d=Object.assign({},a.secondaryHeader),d[c]=b.payload.secondaryHeader,
Object.assign({},a,{secondaryHeader:d});default:return a}};
qWa=function(){return mn(Object.assign({},{entities:TDa,voiceSearch:BGa,engagementPanel:mWa,bottomSheet:eWa,cinematicSetting:gWa,shorts:JGa,drawerLayout:kWa,createPlaylist:iWa,locationCollection:nWa,reportChannel:oWa,reportForm:pWa},KGa))};
rWa=function(a,b){return"https://www.gstatic.com/youtube/img/lottie/"+a+"/"+b+".json"};
sWa=function(a){return{lottiePlayerProps:{animationConfig:{name:a.name,path:rWa("custom_animated_like_icon",a.path),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:a.totalFrames,lazyLoad:!0}};
tWa=function(a,b){_.zk.addLowPriorityJob(function(){var c,d,e;return _.l(function(g){switch(g.nextAddress){case 1:return _.pe(g,2),_.p(g,vSa(),4);case 4:return _.p(g,fetch(a),5);case 5:return c=g.yieldResult,_.p(g,c.json(),6);case 6:d=g.yieldResult;dt.set(a,d);requestAnimationFrame(function(){b(d)});
_.Jj(g,0);break;case 2:e=_.te(g),_.Dl(e),_.ue(g)}})})};
uWa=function(a){var b={animationConfig:{},listeners:{}},c=function(){a(!0)};
b.listeners.data_failed=c;b.listeners.error=c;b.listeners.data_ready=function(){a(!1)};
return b};
uu=function(a){var b=a.model;var c=a.subscribed;var d=a.isOverlay;var e=a.element;var g=a.commandController;var k=a.notificationState;if(c){var m,n;var r=(b==null?void 0:(m=b.buttonStyle)==null?void 0:m.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:b==null?void 0:(n=b.unsubscribeButtonContent)==null?void 0:n.buttonText}else{var t;r=b==null?void 0:(t=b.subscribeButtonContent)==null?void 0:t.buttonText}a:{var u;switch(b==null?void 0:(u=b.buttonStyle)==
null?void 0:u.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":m="S";break a;default:m="M"}}a:if(d)d="overlay";else switch(b.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":d="overlay";break a;default:d="mono"}a:if(c)var x="tonal";else switch((x=b.buttonStyle)==
null?void 0:x.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":x="tonal";break a;default:x="filled"}return{style:d,type:x,state:b.disableSubscribeButton?"disabled":"active",size:m,focused:a.focused,toggled:c,accessibilityLabel:vWa(b,c,k),buttonText:r,iconPosition:b.disableNotificationBell?"none":"leading-trailing",onTap:wWa(b,c,e,g),disableTextEllipsis:!!a.disableTextEllipsis}};
wWa=function(a,b,c,d){return function(e){if(b){var g;var k=a.disableNotificationBell?_.Ds(a==null?void 0:(g=a.unsubscribeButtonContent)==null?void 0:g.onTapCommand):_.Ds(a==null?void 0:a.onShowSubscriptionOptions)}else{var m;k=_.Ds(a==null?void 0:(m=a.subscribeButtonContent)==null?void 0:m.onTapCommand)}k&&At(k,{form:{element:c},commandController:d});e.stopPropagation()}};
vWa=function(a,b,c){if(b){if(a==null?0:a.disableNotificationBell){var d;return a==null?void 0:(d=a.unsubscribeButtonContent)==null?void 0:d.accessibilityText}switch(c){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var e;return a==null?void 0:(e=a.bellAccessibilityData)==null?void 0:e.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var g;return a==null?void 0:(g=a.bellAccessibilityData)==null?void 0:g.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var k;return a==null?void 0:(k=
a.bellAccessibilityData)==null?void 0:k.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var m;return a==null?void 0:(m=a.bellAccessibilityData)==null?void 0:m.disabledLabel;default:var n;return a==null?void 0:(n=a.unsubscribeButtonContent)==null?void 0:n.accessibilityText}}else{var r;return a==null?void 0:(r=a.subscribeButtonContent)==null?void 0:r.accessibilityText}};
vu=function(a){if(!a)return null;switch(a){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":a="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":a="NOTIFICATIONS_OFF";break;default:a="NOTIFICATIONS_NONE"}return a};
xWa=function(a,b,c){c.subscribed!==b&&((c=c.key)&&_.Mr(_.wu("subscriptionStateEntity",c,{key:c,subscribed:b})),a.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:b})),b||_.lo(a,"yt-unsubscribe-action"))};
zWa=function(a){a=_.y(_.Ds(a),_.xu);var b,c,d,e;return(e=_.y(a==null?void 0:(b=a.panelLoadingStrategy)==null?void 0:(c=b.inlineContent)==null?void 0:(d=c.sheetViewModel)==null?void 0:d.content,yWa))==null?void 0:e.listItems};
AWa=function(a,b){if(a.onShowSubscriptionOptions&&b&&(a=zWa(a.onShowSubscriptionOptions),a!=null&&a.length)){var c=vu(b);a.forEach(function(d){d=_.y(d,_.yu);var e,g,k,m,n=d==null?void 0:(e=d.leadingImage)==null?void 0:(g=e.sources)==null?void 0:(k=g[0])==null?void 0:(m=k.clientResource)==null?void 0:m.imageName;d&&n&&(d.isSelected=n===c)})}};
BWa=function(a,b,c,d){b&&c?a.style.width=c+"px":!b&&d&&(a.style.width=d+"px")};
CWa=function(a,b,c){var d;(d=a.lottieEl)==null||d.goToAndPlay(0);var e;(e=b.lottieEl)==null||e.goToAndPlay(0);_.zu(_.zk,function(){var g;(g=c.lottieEl)==null||g.goToAndPlay(0)},300)};
FWa=function(a){var b=_.Pl(),c=_.Pl(),d=_.Pl(),e=_.nu(),g=_.nu(),k=_.nu(),m=_.v().resolve(Au),n,r=(n=_.su(_.ju,a.data.stateEntityStoreKey))!=null?n:void 0,t,u,x,A=(x=_.su(mVa,(u=(t=a.data.notificationStateEntityStoreKeys)==null?void 0:t.subsNotificationStateKey)!=null?u:""))!=null?x:void 0;n=!!a.data.disableNotificationBell;var C=!a.data.enableSubscribeButtonPostClickAnimation;t=_.h(pu(0));var F=t.next().value,J=t.next().value;t=_.h(pu(0));var I=t.next().value,R=t.next().value;t=_.h(pu(!1));var da=
t.next().value,V=t.next().value;t=_.h(pu(!1));var fa=t.next().value,aa=t.next().value,ma=Ai(!1),Ba=Ai("");t=_.h(pu(!1));var Ca=t.next().value,ya=t.next().value,Ia=function(){aa(!0);_.zu(_.zk,function(){aa(!1)},1500)};
vi(function(){fa&&!C&&r&&CWa(e,g,k)},[fa]);
vi(function(){!C&&r&&(a.animateWidth&&BWa(b.value,!!r.subscribed,F,I),r.subscribed&&r.key===Ba.value&&Ia(),r.key&&(Ba.value=r.key))},[r==null?void 0:r.subscribed,
r==null?void 0:r.key]);var db=xi(function(){var ub=a.data,Db=!(r==null||!r.subscribed),Wc=a.isOverlay,Mc=da?b.value:void 0,ia=A==null?void 0:A.state;AWa(ub,ia);return uu({model:ub,subscribed:Db,isOverlay:Wc,element:Mc,notificationState:ia,disableTextEllipsis:!0,focused:Ca})},[a.data,
r,A,Ca,a.isOverlay,da]),lb=function(){var ub=_.v().resolve(_.Xi(_.Bu));ub&&ya(ub.isKeyBoardInUse())},Ua=function(){ya(!1)};
_.Rl(b,"yt-service-request-sent",function(ub){Vb();r&&(ub.detail.endpoint.subscribeEndpoint||ub.detail.endpoint.unsubscribeEndpoint)&&xWa(b.value,!r.subscribed,r)});
_.Ol("yt-player-subscribe",function(ub){r&&ub===a.data.channelId&&xWa(b.value,!0,r)});
_.Ol("yt-player-unsubscribe",function(ub){r&&ub===a.data.channelId&&xWa(b.value,!1,r)});
_.Ol("yt-update-subscribe-button-action",function(ub){ub=_.y(ub,DWa);r&&ub&&ub.channelId===a.data.channelId&&xWa(b.value,!!ub.subscribed,r)});
_.wi(function(){b.value&&(b.value.addEventListener("focusin",lb),b.value.addEventListener("focusout",Ua));_.sl(_.zk,function(){Vb()});
V(!0);return function(){b.value&&(b.value.removeEventListener("focusin",lb),b.value.removeEventListener("focusout",Ua))}});
var Vb=function(){if(!C&&a.animateWidth&&(c==null?0:c.value)&&(d==null?0:d.value)&&!ma.value){var ub=_.h((r==null?0:r.subscribed)?[c,d]:[d,c]),Db=ub.next().value;ub=ub.next().value;Db=Math.ceil(Db.value.getBoundingClientRect().width);ub=Math.ceil(ub.value.getBoundingClientRect().width);J(Db);R(ub);BWa(b.value,!(r==null||!r.subscribed),Db,ub);ma.value=!0}},rb=function(){var ub=vu(A==null?void 0:A.state);
return C||ub!=="NOTIFICATIONS_NONE"?function(){return m(ub)}:function(){Ns(EWa)({animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:k})}};
t=function(){var ub=vu(A==null?void 0:A.state);return C||ub!=="NOTIFICATIONS_NONE"?function(){return _.q(_.qt,{icon:ub!=null?ub:void 0})}:function(){return _.q(EWa,{animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:k})}};
var sb=!(r==null||!r.subscribed)&&!n&&!(A==null||!A.state),yc=!(r==null?0:r.subscribed),Mb=yc&&!n&&!(A==null||!A.state);n={};u={};return _.q("yt-subscribe-button-view-model",{class:_.ht("yt-subscribe-button-view-model-wiz",(n["yt-subscribe-button-view-model-wiz__can-animate-width"]=!(r==null||!r.subscribed)&&a.animateWidth&&fa,n["yt-subscribe-button-view-model-wiz--hidden"]=!(r==null?0:r.subscribed)&&a.data.hideWhenUnsubscribed,n)),el:b},_.q(cWa,{backgroundLottieRef:e,foregroundLottieRef:g,wrapperClass:_.ht("yt-subscribe-button-view-model-wiz__animated-action-wrapper",
(u["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=a.animateWidth&&fa,u["yt-subscribe-button-view-model-wiz__static-width"]=!a.animateWidth,u)),disableAnimation:C},_.q("div",{el:c,class:_.ht("yt-subscribe-button-view-model-wiz__container"),idomKey:a.data.channelId},_.w("web_wiz_button_shape")?_.q(st,{data:db,icon:sb?t():void 0,secondaryIcon:sb?function(){return _.q(_.qt,{icon:"EXPAND"})}:void 0}):_.q(Sl,null,function(){zt(db,sb?rb():void 0,sb?function(){return m("EXPAND")}:
void 0)}))),_.q("div",{el:d,
class:"yt-subscribe-button-view-model-wiz__invisible"},!a.animateWidth||C||ma.value?null:_.w("web_wiz_button_shape")?_.q(st,{data:uu({model:a.data,subscribed:yc,isOverlay:a.isOverlay,element:b.value,disableTextEllipsis:!0}),icon:Mb?function(){var ub;return _.q(_.qt,{icon:(ub=vu(A==null?void 0:A.state))!=null?ub:void 0})}:void 0,
secondaryIcon:Mb?function(){return _.q(_.qt,{icon:"EXPAND"})}:void 0}):_.q(Sl,null,function(){zt(uu({model:a.data,
subscribed:yc,isOverlay:a.isOverlay,element:b.value,disableTextEllipsis:!0}),Mb?function(){return m(vu(A==null?void 0:A.state))}:function(){},Mb?function(){return m("EXPAND")}:void 0)})))};
GWa=function(a){if(a){switch(a){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":a="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":a="NOTIFICATIONS_OFF";break;default:a="NOTIFICATIONS_NONE"}return a}};
HWa=function(a,b,c){c.subscribed!==b&&((c=c.key)&&_.Mr(_.wu("subscriptionStateEntity",c,{key:c,subscribed:b})),a.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:b})),b||_.lo(a,"yt-unsubscribe-action"))};
IWa=function(a){a=_.y(_.Ds(a),_.xu);var b,c,d,e;return(e=_.y(a==null?void 0:(b=a.panelLoadingStrategy)==null?void 0:(c=b.inlineContent)==null?void 0:(d=c.sheetViewModel)==null?void 0:d.content,yWa))==null?void 0:e.listItems};
JWa=function(a,b){if(a.onShowSubscriptionOptions&&b&&(a=IWa(a.onShowSubscriptionOptions),a!=null&&a.length)){var c=GWa(b);a.forEach(function(d){d=_.y(d,_.yu);var e,g,k,m,n=d==null?void 0:(e=d.leadingImage)==null?void 0:(g=e.sources)==null?void 0:(k=g[0])==null?void 0:(m=k.clientResource)==null?void 0:m.imageName;d&&n&&(d.isSelected=n===c)})}};
KWa=function(a,b,c,d){b&&c?a.style.width=c+"px":!b&&d&&(a.style.width=d+"px")};
LWa=function(a,b,c){var d;(d=a.lottieEl)==null||d.goToAndPlay(0);var e;(e=b.lottieEl)==null||e.goToAndPlay(0);_.zu(_.zk,function(){var g;(g=c.lottieEl)==null||g.goToAndPlay(0)},300)};
Cu=function(){return _.v().resolve(_.Xi(MWa))||{}};
NWa=function(a){return typeof a==="function"};
_.Du=function(a){Object.keys(a);var b=function(c,d){var e=b.mapping||a;if(!c)return _.q(_.Wh,null);if(Array.isArray(c)&&(c=OWa(e,b,c),Array.isArray(c))){if(!c.length)return _.q(_.Wh,null);if(c.length>1){for(var g=!1,k=!1,m=[],n={},r=0;r<c.length;n={data$jscomp$1816:void 0},r++)if(n.data$jscomp$1816=c[r],n.data$jscomp$1816){var t=PWa(n.data$jscomp$1816,e),u=t.mappingEntry;t=t.rendererName;u&&t&&(u&&(!NWa(u)&&QWa(u)&&(k=!0),!NWa(u)&&u.asyncId||(g=!0)),m.push(RWa(n.data$jscomp$1816,u,t,b,d)))}return k&&
!g?_.q(_.Wh,null,SWa()):_.q(_.Wh,null,m)}c=c[0]}if(!c)return _.q(_.Wh,null);c=OWa(e,b,[c])[0];if(!c)return _.q(_.Wh,null);g=PWa(c,e);e=g.mappingEntry;g=g.rendererName;return e&&g?_.q(_.Wh,null,RWa(c,e,g,b,d)):_.q(_.Wh,null)};
b.mapping=a;return b};
_.TWa=function(a){var b=void 0,c;for(c in a)if(a.hasOwnProperty(c)){b=c;break}return b};
OWa=function(a,b,c){var d,e=(d=Cu().preProcessOptions)==null?void 0:d.idomOptions;if(!e)return c;Cu();return e.preProcessPropsIdom(a,c,b.triggerRerender)};
PWa=function(a,b){return(a=_.TWa(a))?{mappingEntry:b[a],rendererName:a}:{mappingEntry:void 0,rendererName:void 0}};
RWa=function(a,b,c,d,e){if(!b)return _.q(_.Wh,null);var g={};e&&e[c]&&(g=Object.assign({},e[c]));a[c]!==void 0&&(g.data=a[c]);if(NWa(b))return b.debugName||(b.debugName=c),_.q(b,g);b.asyncId&&(d.pendingIdsMap=d.pendingIdsMap||{},d.pendingIdsMap[c]=b.asyncId);return b.templateFn?b.templateFn(g):QWa(b)?SWa():_.q(_.Wh,null)};
QWa=function(a){var b;return(b=a.showPlaceholder)!=null?b:Cu().defaultShowPlaceholder};
SWa=function(){var a=Cu().placeholder;return a()};
UWa=function(a,b){b=b===void 0?{shouldPersist:!0}:b;return{useUpdatableData:function(c,d){var e=[],g=_.h(_.nt(function(){var r=c();if(d!=null&&d.length&&e){var t=e.length>0;for(var u=!1,x=0;x<d.length;x++){var A=d[x]();t&&A!==e[x]&&(u=!0);e[x]=A}t=u}else t=!1;if(t)_.Eu.remove(n());else if(t=_.Eu.get(n()))return t;return r})),k=g.next().value,m=g.next().value,n=_.ph(function(){return a(c())},void 0,"VFraLb");
_.wh(function(){if(n()!=null){Fu.set(n(),[k,m,!1]);var r=n();_.zh(function(){Fu.delete(r)})}},"PFf2Xb");
return[k,function(r){m(r);b.shouldPersist&&_.Eu.set(n(),r)}]},
getData:function(c){var d;return(d=Fu.get(a(c)))==null?void 0:d[0]()},
updateData:function(c,d){c=a(c);var e=Fu.get(c);if(!e)return!1;var g=_.h(e);e=g.next().value;g=g.next().value;d=d(e());g(d);b.shouldPersist&&_.Eu.set(c,d);return!0},
useUpdatableDataIdom:function(c,d){var e=a(c),g=_.Eu.get(e),k=_.h(pu(g!=null?g:c)),m=k.next().value,n=k.next().value,r=Ai(g!=null?g:c);vi(function(){if(e!=null)return Fu.set(e,[function(){return r.value},
function(t){n(t);r.value=t},
Fu.has(e)]),_.zk.addJob(function(){_.Gu(_.zk,function(){var t=Fu.get(e);t&&(t[2]=!1)},0)},8),function(){var t;
((t=Fu.get(e))==null?0:t[2])||Fu.delete(e)}},[e]);
vi(function(){m!==c&&(n(c),r.value=c)},d?[].concat(_.De(d),[e]):[e]);
return[m,n]}}};
YWa=function(a){return VWa.includes(a)||WWa.includes(a)||XWa.includes(a)};
ZWa=function(a){var b=_.h(_.ih(!0,void 0,"bKtO6d")),c=b.next().value;b.next();return function(){var d=ii(a.children());return _.q(_.qi,{cond:c,then:function(){return d},
else:a.fallback})}()};
_.Hu=function(a){var b=$Wa(a),c=b.data,d=b.mapping,e=b.wrapper;b=b.pendingFallback;var g=function(){return aXa(_.Bh(c))},k=function(){var m=g(),n=[];
m=_.h(m);for(var r=m.next();!r.done;r=m.next()){var t=void 0;r=r.value;var u=void 0;for(t in r)if(!(!r).hasOwnProperty(t)){u=t;break}(t=u)&&n.push(t)}return n};
return a.data?_.q(ZWa,{fallback:b},function(){return _.q(_.ri,{each:k},function(m,n){var r=e?function(u){return e(function(){return d[m](u,n)},t,n)}:function(u){return d[m](u,n)};
r.debugName||(r.debugName=String(m));if(!d[String(m)])return document.createComment("");var t=bXa(g,m,n);return _.q(r,{data:t})})}):_.q(_.Wh,null)};
$Wa=function(a){var b=a.targetId||cXa(a.children);if(!a.data||!b||_.w("mweb_new_replaceables_killswitch"))return Object.assign({},a,{mapping:a.children,wrapper:void 0});var c="stamper-"+dXa++,d=function(){var m;return(m=_.Bh(a.targetId))!=null?m:c};
b=_.h(eXa(function(){var m=aXa(a.data());m.targetId=d;return m})).next().value;
var e=Object.assign({},Cu().replaceableMapping,a.children);if(a.replacementWrapper){var g=e.notificationTextRenderer,k=e.notificationMultiActionRenderer;g&&(e.notificationTextRenderer=function(m,n){return a.replacementWrapper(g({data:m.data},n))});
k&&(e.notificationMultiActionRenderer=function(m,n){return a.replacementWrapper(k({data:m.data},n))})}return Object.assign({},a,{data:b,
mapping:e,wrapper:function(m,n,r){return YSa({targetId:d,stamperIndex:r},m)}})};
bXa=function(a,b,c){var d;return _.ph(function(){var e=a()[c()];if(e)d=e[b];else return _.Dl(new _.qj("Stamper failed to find "+String(b)+" at index "+c()+" of data array of length "+(a().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),d;return e[b]},void 0,"WRX0He")};
cXa=function(a){a=_.h(Object.keys(a));for(var b=a.next();!b.done;b=a.next())if(YWa(b.value))return!0;return!1};
aXa=function(a){return a?Array.isArray(a)?a:[a]:[]};
fXa=function(a){a=_.y(a,_.Iu);return(a==null?void 0:a.iconName)&&!(a==null?0:a.title)};
iXa=function(a,b){var c;return _.q(_.Wh,null,a==null?void 0:(c=a.actions)==null?void 0:c.map(function(d){return _.q("div",{class:function(){var e={"yt-flexible-actions-view-model-wiz__action":!0};e["yt-flexible-actions-view-model-wiz__action--row-action"]=b;e["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(fXa(d))var g=!0;else if(g=_.y(d,_.Ju),(g==null?0:g.isToggled)&&fXa(g==null?void 0:g.toggledButtonViewModel)||(g==null||!g.isToggled)&&fXa(g==null?void 0:g.defaultButtonViewModel))g=
!0;else{var k;g=((k=_.y(d,gXa))==null?0:k.playlistId)?!0:!1}e=(e["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=g,e);return _.ht(e)}},hXa([d],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!b}}))}))};
jXa=function(a){var b=a.layout===1,c,d=((c=a.data)==null?void 0:c.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";c={};d=(c["yt-flexible-actions-view-model-wiz"]=!0,c["yt-flexible-actions-view-model-wiz--inline"]=!b,c["yt-flexible-actions-view-model-wiz--scrollable"]=d,c);var e,g;return _.q("yt-flexible-actions-view-model",{class:_.ht(a.className,d)},(e=a.data)==null?void 0:(g=e.actionsRows)==null?void 0:g.map(function(k){return b?_.q("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},iXa(k,
b)):iXa(k,b)}))};
kXa=function(a){return!(a==null||!a.iconName||(a==null?0:a.title))};
lXa=function(a){var b=_.y(a.data.toggleButtonViewModel,_.Ju),c,d=(c=a.data.dislikeEntityKey)!=null?c:"",e=_.su(It,d);b=Object.assign({},b,{isToggled:e?e.likeStatus==="DISLIKE":b.isToggled});return _.q("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.q(_.Ku,{data:b,buttonShapeOverrides:a.buttonShapeOverrideables,onToggle:function(g){e&&g!==(e.likeStatus==="DISLIKE")&&e.key&&_.Mr(_.Lu("likeStatusEntity",e.key,{likeStatus:g?"DISLIKE":"INDIFFERENT",hadUserInteraction:g}))}}))};
nXa=function(a){var b=_.w("web_supports_animations_api"),c=_.y(a.data.toggleButtonViewModel,_.Ju),d,e,g,k,m=_.h(pu({numberText:(k=(d=a.likeCountEntity)==null?void 0:(e=d.likeCountIfIndifferent)==null?void 0:e.content)!=null?k:"",numberValue:Number((g=a.likeCountEntity)==null?void 0:g.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),n=m.next().value,r=m.next().value,t,u,x,A;d=_.h(pu({numberText:(A=(t=a.likeCountEntity)==null?void 0:(u=t.likeCountIfLiked)==null?void 0:u.content)!=null?
A:"",numberValue:Number((x=a.likeCountEntity)==null?void 0:x.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));t=d.next().value;var C=d.next().value;u=_.h(pu());var F=u.next().value,J=u.next().value,I;u=(I=a.data.likeStatusEntityKey)!=null?I:"";var R,da;I=(da=(R=a.likeCountEntity)==null?void 0:R.key)!=null?da:"";var V=_.su(It,u),fa=_.su(STa,I);R=xi(function(){return(V==null?void 0:V.likeStatus)==="LIKE"},[V]);
vi(function(){var aa,ma=fa&&((aa=fa.likeCountIfIndifferent)==null?void 0:aa.content)!==n.numberText;if(!F&&ma){var Ba,Ca;r({numberText:(Ca=fa==null?void 0:(Ba=fa.likeCountIfIndifferent)==null?void 0:Ba.content)!=null?Ca:"",numberValue:Number(fa==null?void 0:fa.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var ya,Ia;C({numberText:(Ia=fa==null?void 0:(ya=fa.likeCountIfLiked)==null?void 0:ya.content)!=null?Ia:"",numberValue:Number(fa==null?void 0:fa.likeCountIfLikedNumber),heightPx:36,
shouldAnimate:!0})}},[fa]);
c=Object.assign({},c,{isToggled:R});b=b&&a.likeCountEntity;return _.q("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.q(_.Ku,{data:c,buttonShapeOverrides:a.buttonShapeOverrideables,animatedTextPropsDefault:b?n:void 0,animatedTextPropsToggled:b?t:void 0,onToggle:function(aa){mXa(aa,V,F,J)},
style:function(){return a.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
mXa=function(a,b,c,d){c&&_.zk.cancelJob(c);c=_.zk.addLowPriorityJob(function(){d(void 0)},5E3);
d(c);b&&a!==(b.likeStatus==="LIKE")&&b.key&&_.Mr(_.wu("likeStatusEntity",b.key,{key:b.key,likeStatus:a?"LIKE":"INDIFFERENT",hadUserInteraction:a}))};
qXa=function(a){var b,c=_.y((b=a.data)==null?void 0:b.likeButtonViewModel,oXa),d;b=_.y((d=a.data)==null?void 0:d.dislikeButtonViewModel,pXa);var e,g=(e=_.su(It,(c==null?void 0:c.likeStatusEntityKey)||""))!=null?e:c==null?void 0:c.likeStatusEntity;d=xi(function(){var k=a.data,m;k=(k==null?void 0:(m=k.timedAnimationData)==null?void 0:m.animationTiming)||[];return{uniqueId:"like-dislike",timings:k,enabled:(g==null?void 0:g.likeStatus)==="INDIFFERENT"&&k.length>0,experimentEnabled:k.length>0}},[a.data,
g]);return _.q("segmented-like-dislike-button-view-model",{class:_.ht(a.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.q(_.GVa,{settings:d},_.q("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},c?_.q(nXa,{data:c,likeCountEntity:a.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,b?_.q(lXa,{data:b,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
rXa=function(a,b){var c=$o.get(a)||{layerNode:b};c.layerNode=b;vDa(a,c);a.getScreenLayer=function(){return Mu(c.layerNode)}};
sXa=function(a){var b;a=a.parentNode;for(var c;a&&((b=$o.get(a))==null||!b.isRenderer)&&!((c=a.polymerController)!=null?c:a).isRenderer_;)a=a.parentNode||a.host;if(b=a)return $o.get(b)};
tXa=function(a){if(a){$o.delete(a);var b=_.v().resolve(Xl);rPa(a,b)}};
vXa=function(a,b,c){if(c===void 0?0:c){if(c=a.getAttribute("client-ve-type"),b.data&&!b.disableReactiveLogging||c)_.yh(function(){uXa(a,_.Bh(b.data))},"czdkCe"),_.zh(function(){return void tXa(a)})}else typeof b.data!=="function"&&uXa(a,b.data)};
uXa=function(a,b){wXa++;xXa(a,b)&&_.zk.addJob(function(){_.Gu(_.zk,function(){if(xXa(a,b)&&a.ownerDocument.documentElement===document.documentElement&&a){var c;if(a.getAttribute("layer")){var d=c=Number(a.getAttribute("layer")),e=$o.get(a);e?e.layerNode.layer=d:rXa(a,new yXa(d));(d=sXa(a))&&(e=$o.get(a))!=null&&(e.layerNode.parent=d.layerNode)}else if(c=$o.get(a))c=Mu(c.layerNode);else{c=Mu;d=new yXa;if(e=sXa(a))d.parent=e.layerNode;rXa(a,d);c=c(d)}c!=null||(c=0);d=a.getAttribute("client-ve-type");
e=Number(d);var g=!1;d=!1;var k=$o.get(a),m;if((m=k)&&!(m=k[zXa]!==b)&&(m=e)){var n;m=((n=$o.get(a))==null?void 0:n.clientVeType)===void 0}m&&(k[zXa]=b,g=d=k.isRenderer=!0);$o.has(a)&&($o.get(a).clientVeType=e);a.visualElement&&(d=!0);(n=b==null?void 0:b.loggingDirectives)&&n.clientVeSpec&&(k=AXa(_.js(),a),n=_.BXa(_.ls(),n,k||void 0,c))&&(a.visualElement=n);!a.visualElement&&e&&g&&(a.veType=e,n=void 0,_.w("wiz_next_client_ve_parent_fix")&&(n=AXa(_.js(),a)),n=_.ks(_.ls(),a,n,c),a.visualElement=n);
d&&(n=_.v().resolve(Xl),vPa(a,{data:b,observer:n,layer:c,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
xXa=function(a,b){return(b==null?0:b.trackingParams)||(b==null?0:b.loggingDirectives)||_.y(b==null?void 0:b.rendererContext,_.wPa)||a.getAttribute("client-ve-type")?!0:!1};
DXa=function(a){return _.w("cow_logging_in_component_wrapper")?function(b){vXa(b,a,!0)}:CXa};
CXa=function(){};
_.EXa=function(a,b){return _.np(a.entities,"accountLinkStatusEntity",b)};
FXa=function(a,b){return _.np(a.entities,"hatsSurveyEntity",b)};
GXa=function(a,b){return _.np(a.entities,"hatsSurveyStateEntity",b)};
HXa=function(a,b){return _.np(a.entities,"quantityIncrementerEntity",b)};
MXa=function(a){var b=a.data;var c=a.className===void 0?"":a.className;var d=a.setMinWidth;a=a.forceIconOnly;var e=_.Pl(DXa({data:b}));d=d?"ytwAccountLinkButtonViewModelHostMinWidth":"";var g=_.tu(_.EXa,function(){var u;return(u=_.Bh(b).accountLinkStatusEntityKey)!=null?u:""}),k=_.tu(_.EXa,function(){var u;
return(u=_.Bh(b).accountLinkStatusSecondaryEntityKey)!=null?u:""}),m=function(){if(!_.w("web_account_link_secondary_killswitch")){var u,x;
return((u=g())==null?void 0:u.linked)||((x=k())==null?void 0:x.linked)}var A;return(A=g())==null?void 0:A.linked};
_.wh(function(){var u=g();if(u){var x=IXa(new JXa,KXa(new LXa,!!u.linked));_.mu().then(function(A){A&&(A.setAccountLinkState(_.Bc(x.JSC$9891_serializeBinary(),4)),A.updateAccountLinkingConfig(!!u.linked))})}},"SngpRe");
var n=function(){return _.y(_.Bh(b).toggleButtonViewModel,_.Ju)};
_.Ol("yt-signal-action-show-account-link-dialog",function(){if(n()){var u=m()?n().toggledButtonViewModel:n().defaultButtonViewModel;u=_.y(u,_.Iu);var x;if((x=g())==null?0:x.isWarning){x=_.y(_.Bh(b).warningButtonViewModel,_.Iu);if(!x){_.Ki(Error("Dh"));return}u=x}var A;(x=_.Ds((A=u)==null?void 0:A.onTap))&&_.so([x],e.value)}else _.Ki(Error("Eh"))});
var r=function(){var u=n();return Object.assign({},u,{isToggled:m()})},t=a?{iconPosition:"icon-only"}:{};
return _.q("account-link-button-view-model",{class:_.ht("ytwAccountLinkButtonViewModelHost",c,d),el:e,"button-renderer":!0},_.q("div",null,_.q(_.qi,{cond:function(){var u;if((u=g())==null?0:u.isWarning)return(u=_.y(_.Bh(b).warningButtonViewModel,_.Iu))||_.Ki(Error("Dh")),u},
then:function(u){return _.q(_.Qu,{data:u,buttonOverrides:t})},
else:function(){return _.q(_.Ku,{data:r,buttonShapeOverrides:t})}})))};
NXa=function(a){switch(a){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;default:return 0}};
OXa=function(a){switch(a){case "BADGE_STYLE_TYPE_YPC_GREEN":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_RED_SQUARE":return 11;
case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
PXa=function(a){switch(a){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
SXa=function(a){var b=a.data;var c=a.children;var d=QXa(b),e=(b==null?0:b.thumbnailSize)?b.thumbnailSize:"medium";a=!(b==null||!b.doubleStack);var g=!(b==null||!b.experimentEnabled),k={},m=(k["collections-stack-wiz__collection-stack1"]=!0,k[RXa(e)]=!0,k);if(b==null?0:b.customClassName1stStack)m[b.customClassName1stStack]=!0;e={};var n=(e["collections-stack-wiz__collection-stack2"]=a,e["collections-stack-wiz__collection-stack2--responsive-mode"]=b==null?void 0:b.enableResponsiveMode,e);if(b==null?
0:b.customClassName2ndStack)n[b.customClassName2ndStack]=!0;return _.q("yt-collections-stack",{class:"collections-stack-wiz",hidden:!g},_.Tg(b,function(){return _.q("div",null,_.Tg(b.doubleStack,function(){return _.q("div",{class:_.ht(n),style:"background-color:"+d})}),_.q("div",{class:_.ht(m),
style:"background-color:"+d}),c)}))};
RXa=function(a){switch(a){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
QXa=function(a){if(!a)return"";var b,c=(b=_.v().resolve(_.Xi(_.Ks)))==null?void 0:b(),d;if(!c&&((d=a.vibrantColorPalette)==null?0:d.iconInactiveColor))return Eq(a.vibrantColorPalette.iconInactiveColor,"1");var e;return c&&((e=a.darkColorPalette)==null?0:e.iconInactiveColor)?Eq(a.darkColorPalette.iconInactiveColor,"1"):a.color?Eq(a.color,"1"):a.sampledThumbnailColor?(a=a.sampledThumbnailColor,"rgba("+a.red+","+a.green+","+a.blue+");"):""};
_.Ru=function(a,b){if(!a.includes("DATE_PLACEHOLDER"))return a;var c=new Date(0);c.setUTCSeconds(b);return a.replace("DATE_PLACEHOLDER",TXa(c))};
_.Su=function(a){a=_.UXa(a);return _.w("web_watch_enable_single_column_grid_view")?a:!1};
_.UXa=function(a){return a.watch.isWatchNarrowWidth};
VXa=function(a,b,c){return function(d){var e=a.command;e&&(At(e,{form:{element:c}}),b([e],d))}};
XXa=function(a,b,c,d,e){return function(g){var k=WXa(a,c);k&&At(k,{form:{element:d},commandController:e});b&&b.stopPropagation&&g.stopPropagation()}};
WXa=function(a,b){if(a.signInEndpoint&&!_.w("web_subscribe_sign_in_endpoint_killswitch"))return a.signInEndpoint;if(b){if(a.serviceEndpoints)return a.serviceEndpoints[1];if(a.onUnsubscribeEndpoints)return a.onUnsubscribeEndpoints[0]}else{if(a.serviceEndpoints)return a.serviceEndpoints[0];if(a.onSubscribeEndpoints)return a.onSubscribeEndpoints[0]}};
Tu=function(a,b){return b||(a==null?0:a.isChannelDelegate)?"disabled":"active"};
YXa=function(a,b){var c;switch((c=a.style)==null?void 0:c.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:Tu(a)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:Tu(a)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:Tu(a,!0)};case "OVERLAY":return b?{style:"overlay",type:"tonal",state:Tu(a)}:{style:"overlay",type:"filled",state:Tu(a)};default:return b?{style:"mono",type:"tonal",state:Tu(a)}:{style:"mono",type:"filled",state:Tu(a)}}};
ZXa=function(a,b){var c=a.map(function(d){return d.toString()});
return _.lt(function(d){if(c.includes(d.key)){b&&d.preventDefault();var e;(e=d.currentTarget)==null||e.click()}})};
_.Uu=function(){return ZXa(["Enter"])};
_.$Xa=function(){return ZXa(["Enter"," "],!0)};
_.Vu=function(a){if(a.composedPath)return a.composedPath();if(!a.__composedPath){for(var b=[],c=a.target;c;)b.push(c),c=c.parentNode;b.push(window);a.__composedPath=b}return a.__composedPath};
_.aYa=function(a,b,c){a=_.h(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d===b)break;for(var e=_.h(c),g=e.next();!g.done;g=e.next())if(g=g.value,d.tagName===g||d.role==="button"&&g==="BUTTON")return!0}return!1};
cYa=function(a,b){var c,d=(c=b.observer)!=null?c:_.v().resolve(Xl);if(a){c=bYa(a);var e=[];b.showOption&&e.push(d.observe(a,function(){b.visibilityCallback(!0)},b.showOption));
b.hideOption&&e.push(d.observe(a,function(){b.visibilityCallback(!1)},b.hideOption));
b.prescanOption&&b.prescanCallback&&e.push(d.observe(a,function(){b.prescanCallback()},b.prescanOption));
var g;c.visibilityMonitorKeys=((g=c.visibilityMonitorKeys)!=null?g:[]).concat(e)}};
bYa=function(a){var b;return(b=a.polymerController)!=null?b:a};
_.Xu=function(a){return!!_.Wu(a)};
_.Yu=function(a,b){var c=ZSa();vi(function(){var d=a.value;if(d)return dYa(d,b),eYa(d,b,void 0,void 0,void 0,c)},[b])};
_.Zu=function(a,b,c,d,e,g){var k=ZSa();_.wh(function(){var m=a.value;m&&(dYa(m,b(),g),m=eYa(m,b(),c,d,e,k),_.zh(m))},"Ec2swe")};
dYa=function(a,b,c){var d=fYa(b),e=gYa(b);b=d&&hYa;var g=e&&iYa;(d||e)&&cYa(a,{visibilityCallback:function(k){var m=_.v().resolve(_.Yi);k&&d?m.resolveCommand(d,{form:{element:c?a:void 0},disableClickTracking:!0}):!k&&e&&m.resolveCommand(e,{form:{element:c?a:void 0},disableClickTracking:!0})},
showOption:b,hideOption:g})};
eYa=function(a,b,c,d,e,g){var k=new Map;if(b=_.Wu(b)){var m;a=(d==null?void 0:(m=d.onTap)==null?void 0:m.value)||a;c=jYa(b,a,c==null?void 0:c.onTap,e,g);a.addEventListener("click",c);k.set("click",c)}return function(){for(var n=_.h(k),r=n.next();!r.done;r=n.next()){var t=_.h(r.value);r=t.next().value;t=t.next().value;a.removeEventListener(r,t)}}};
_.Wu=function(a){var b;return(a=(b=_.y(a,kYa))==null?void 0:b.onTap)&&_.Ds(a)};
fYa=function(a){var b;return(a=(b=_.y(a,kYa))==null?void 0:b.onVisible)&&_.Ds(a)};
gYa=function(a){var b;return(a=(b=_.y(a,kYa))==null?void 0:b.onHidden)&&_.Ds(a)};
jYa=function(a,b,c,d,e){var g=function(m){_.v().resolve(_.Yi).resolveCommand(a,m)},k=function(m){d&&_.aYa(_.Vu(m),b,d)||g(m.target?{form:{element:m.target,
sourceData:a,mutationContext:e}}:void 0)};
c&&(k=function(m){c(m,g)});
return k};
lYa=function(a){var b=a.data;var c=a.className;a=a.alwaysShow;var d=_.Pl();_.Yu(d,b.rendererContext);a:switch(b.style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var e="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:e="ytThumbnailHoverOverlayViewModelStyleCover"}e=_.ht("ytThumbnailHoverOverlayViewModelScrim",e);var g,k=(g=_.y(b==null?void 0:b.rendererContext,_.$u))==null?void 0:g.label,m=_.Wu(b.rendererContext)!==void 0;g=m?"button":void 0;m=m?0:void 0;var n=_.$Xa(),r={};return _.q("thumbnail-hover-overlay-view-model",
{el:d,class:_.ht("ytThumbnailHoverOverlayViewModelHost",c,(r.ytThumbnailHoverOverlayViewModelHostForceHover=a,r)),"aria-label":k,role:g,tabindex:m,"on:keypress":n},_.q("div",{class:e},b.icon?_.q(_.Ps,{data:b.icon,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"}):null,b.text?_.q(_.tt,{text:b.text,className:"ytThumbnailHoverOverlayViewModelText"}):null))};
mYa=function(a){switch(a){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 72;case "giant":return 72;default:return 0}};
nYa=function(a){switch(a){case "tiny":return"yt-spec-avatar-shape--avatar-size-tiny";case "extra-small":return"yt-spec-avatar-shape--avatar-size-extra-small";case "small":return"yt-spec-avatar-shape--avatar-size-small";case "medium":return"yt-spec-avatar-shape--avatar-size-medium";case "48":return"yt-spec-avatar-shape--avatar-size-48";case "large":return"yt-spec-avatar-shape--avatar-size-large";case "extra-large":return"yt-spec-avatar-shape--avatar-size-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape--avatar-size-extra-extra-large";
case "giant":return"yt-spec-avatar-shape--avatar-size-giant";case "responsive":return"yt-spec-avatar-shape--avatar-size-responsive";default:return""}};
oYa=function(a){switch(a){case "tiny":return"yt-spec-avatar-shape__button--button-tiny";case "extra-small":return"yt-spec-avatar-shape__button--button-extra-small";case "small":return"yt-spec-avatar-shape__button--button-small";case "medium":return"yt-spec-avatar-shape__button--button-medium";case "48":return"yt-spec-avatar-shape__button--button-48";case "large":return"yt-spec-avatar-shape__button--button-large";case "extra-large":return"yt-spec-avatar-shape__button--button-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape__button--button-extra-extra-large";
case "giant":return"yt-spec-avatar-shape__button--button-giant";case "responsive":return"yt-spec-avatar-shape__button--button-responsive";default:return""}};
pYa=function(a){switch(a){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 120;case "giant":return 160;default:return 0}};
qYa=function(a){return a==="medium"||a==="48"||a==="large"||a==="extra-large"||a==="extra-extra-large"||a==="giant"};
rYa=function(a){return!!((a==null?0:a.includes(3))||(a==null?0:a.includes(5)))};
tYa=function(a){return{size:sYa(a.data.avatarImageSize),onTap:a.onTap,decorations:a.decorations||[],badgeText:a.badgeText,accessibilityText:a.accessibilityText,avatarButtonCustomClassName:a.avatarButtonCustomClassName}};
sYa=function(a){switch(a){case "AVATAR_SIZE_XXS":return"tiny";case "AVATAR_SIZE_XS":return"extra-small";case "AVATAR_SIZE_S":return"small";case "AVATAR_SIZE_M":return"medium";case "AVATAR_SIZE_L":return"large";case "AVATAR_SIZE_XL":return"extra-large";case "AVATAR_SIZE_XXL":return"extra-extra-large";case "AVATAR_SIZE_XXXL":return"giant";case "AVATAR_SIZE_RESPONSIVE":return"responsive";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
uYa=function(a){function b(){c.endpoint&&_.Gs(c.endpoint)}
var c=a.data;var d=a.decorations;var e=a.avatarButtonCustomClassName;a=a.isOverlay;return _.q("avatar-view-model",null,c.image?_.q(av,{data:tYa({data:c,onTap:c.endpoint?b:void 0,decorations:d,badgeText:void 0,accessibilityText:c.accessibilityText,avatarButtonCustomClassName:e}),image:c.image,iconType:"RADAR_LIVE",overlays:function(){return _.q(bv,{data:c})},
isOverlay:a}):null)};
wYa=function(a){var b=a.data;var c=a.avatar;var d=a.onTap;var e=a.element;a=a.commandController;d=d?vYa(d,e,a):void 0;e=[];b.liveData&&e.push(0);var g;a=(g=b.liveData)==null?void 0:g.liveBadgeText;var k;g=(k=_.y(b.rendererContext,_.$u))==null?void 0:k.label;return tYa({data:c,onTap:d,decorations:e,badgeText:a,accessibilityText:g?g:b.a11yLabel})};
vYa=function(a,b,c){return function(){At(a,{form:{element:b},commandController:c})}};
xYa=function(a){var b=a.data;a=a.className;var c=_.Pl(),d=_.y(b.avatar,_.cv),e=_.Wu(b.rendererContext),g=d?wYa({data:b,avatar:d,onTap:e,element:c.value}):{size:"medium"};return _.q("yt-decorated-avatar-view-model",{class:_.ht("yt-decorated-avatar-view-model-wiz",a),el:c},_.Tg(d==null?void 0:d.image,function(){var k,m,n;return _.q(av,{data:g,image:d.image,iconType:"RADAR_LIVE",overlays:function(){return _.q(bv,{data:d})},
idomKey:d==null?void 0:(k=d.image)==null?void 0:(m=k.sources)==null?void 0:(n=m.at(0))==null?void 0:n.url})}))};
yYa=function(a){switch(a){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
zYa=function(a){switch(a){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
AYa=function(a){var b=0;a.avatars&&(b+=a.avatars.length);a.decoratedText&&(b+=1);return b};
CYa=function(a){var b=a.data,c=b.avatars,d=b.text,e=b.rendererContext,g=b.decoratedText,k=(b=_.Pl())&&_.Xu(e);_.Yu(b,e);var m=AYa(a.data)>1,n,r=c&&c.length>0?yYa((n=_.y(c[0],_.cv))==null?void 0:n.avatarImageSize):0,t,u=c&&c.length>0?(t=_.y(c[0],_.cv))==null?void 0:t.avatarImageSize:"AVATAR_SIZE_UNKNOWN",x,A;n={};return _.q("yt-avatar-stack-view-model",{el:b,class:_.ht("yt-avatar-stack-view-model-wiz",a.className,(n["yt-avatar-stack-view-model-wiz--tappable"]=k,n["yt-avatar-stack-view-model-wiz--is-overlay"]=
a.isOverlay,n["yt-avatar-stack-view-model-wiz--medium-text"]=a.useMediumText,n)),tabindex:k?0:void 0,role:k?"link":void 0,"aria-label":(A=(x=_.y(e,_.$u))==null?void 0:x.label)!=null?A:""},_.Tg(c&&!a.hideAvatar,function(){return _.q("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.Tg(g,function(){var C={};return _.q("div",{class:_.ht("yt-avatar-stack-view-model-wiz__text-container",(C["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=u==="AVATAR_SIZE_XXS"||u==="AVATAR_SIZE_XS",
C["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=a.isOverlay&&(u==="AVATAR_SIZE_XXS"||u==="AVATAR_SIZE_XS"),C)),style:"width: "+r+"px; height: "+r+"px"},_.q(_.tt,{text:g,className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}),c.slice().reverse().map(function(C){return _.q("div",{class:zYa(u)},BYa(C,{avatarViewModel:{decorations:a.decorations?a.decorations:m?[3]:[],
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:a.isOverlay}}))}))}),_.Tg(d,function(){return _.q(_.tt,{text:d,
className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}))};
DYa=function(a){switch(a){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
EYa=function(a){switch(a){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
FYa=function(a){switch(a){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
GYa=function(a){var b=a.data;return _.q("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:a.hidden===void 0?!1:a.hidden},_.q(_.tt,{text:b.title,className:"yt-thumbnail-overlay-title-view-model__title"}),b.subtitle?_.q(_.tt,{text:b.subtitle,className:"yt-thumbnail-overlay-title-view-model__subtitle"}):null)};
HYa=function(a){switch(a){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
IYa=function(a){var b=a.data;a=a.hidden===void 0?!1:a.hidden;var c={};a={class:_.ht("yt-page-indicator-view-model",(c["yt-page-indicator-view-model__indicator--hidden"]=!b.indicatorCount,c)),hidden:a};if(b.indicatorCount){c=[];for(var d=0;d<b.indicatorCount;d++){var e={};e=_.ht("yt-page-indicator-view-model__indicator",(e["yt-page-indicator-view-model__indicator--selected"]=b.selectedIndex===d,e));c.push(_.q("div",{class:e}))}b=_.q(_.Wh,null,c)}else b=_.q(_.Wh,null);return _.q("yt-page-indicator-view-model",
a,b)};
KYa=function(a){a&&(JYa(a)?delete a.inlinePlayerData:"inlinePlaybackEndpoint"in a&&delete a.inlinePlaybackEndpoint)};
LYa=function(a){if("accessibilityText"in a)return a.accessibilityText||"";if("title"in a){var b,c,d;return((b=a.title)==null?void 0:(c=b.accessibility)==null?void 0:(d=c.accessibilityData)==null?void 0:d.label)||""}if("accessibility"in a){var e,g;return((e=a.accessibility)==null?void 0:(g=e.accessibilityData)==null?void 0:g.label)||""}return""};
JYa=function(a){return"inlinePlayerData"in a};
dv=function(a){return new MYa(a)};
NYa=function(a,b){if(b(a))return[a];if(a===null||typeof a!=="object")return null;for(var c=_.h(_.Cf.getValues(a)),d=c.next();!d.done;d=c.next())if(d=d.value)if(d=NYa(d,b))return[a].concat(_.De(d));return null};
OYa=function(a){return NYa(ev,function(b){return b===a})};
RYa=function(a,b,c,d){a=a[b];b=_.h(Object.keys(a));for(var e=b.next();!e.done;e=b.next())YWa(e.value)&&!d.has(a)&&(PYa.subscribe(a,function(g){if(g.replacement){var k;g=_.h(Object.entries((k=g.replacement)==null?void 0:k.rendererMappingC3));for(k=g.next();!k.done;k=g.next()){var m=_.h(k.value);k=m.next().value;m=m.next().value;c[k]||(c[k]=m)}}window.dispatchEvent(new CustomEvent("updateui",{detail:void 0}))}),d.add(a),QYa(d,a));
return PYa.getData(a)};
QYa=function(a,b){if(a.has(b)){var c=Gh;c&&(SYa(),TYa(c,a,b))}};
SYa=function(){var a=window.MutationObserver;a&&!UYa&&(UYa=new a(function(b){b=_.h(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.type==="childList"&&c.removedNodes.length){for(var d=0;d<c.removedNodes.length;d++)VYa(c.removedNodes[d]);WYa()}}),UYa.observe(document.body,{childList:!0,
subtree:!0}))};
VYa=function(a){if(a.childNodes)for(var b=0;b<a.childNodes.length;b++)VYa(a.childNodes[b]);(b=XYa.get(a))&&!OYa(b[0])&&(fv.push.apply(fv,_.De(b[1])),XYa.delete(a))};
WYa=function(){YYa!==void 0&&(_.zk.cancelJob(YYa),YYa=void 0);YYa=_.sl(_.zk,function(){if(fv.length)for(;fv.length;){var a=fv.pop();a&&a()}},100)};
TYa=function(a,b,c){var d=function(){PYa.unsubscribeByKey(c);b.delete(c)},e=XYa.get(a);
e&&e[1]?e[1].push(d):XYa.set(a,[c,[d]])};
aZa=function(a,b){b=b===void 0?!1:b;var c,d;if(a==null?0:(c=a.responseText)==null?0:(d=c.runs)==null?0:d.length){var e=a.responseText.runs[0].text;c={};b=_.ht((c["yt-mini-game-card-view-model__dismissed-portrait-card"]=!b,c["yt-mini-game-card-view-model--dismissed-square-card"]=b,c["yt-mini-game-card-view-model__dismissed-card"]=!0,c));xt({className:b},function(){xt({className:"yt-mini-game-card-view-model__dismissed-mini-app-content"},function(){e&&ZYa({className:"yt-mini-game-card-view-model__dismissed-text",
title:e},function(){return Th(e)});
var g;((g=a.buttons)==null?0:g.length)&&$Ya(a.buttons[0])})})}};
_.bZa=function(a,b,c,d,e,g){var k=function(r){r.preventDefault()},m=function(){var r=a.value;
if(r)return(r._data=b)?(r.addEventListener("touchstart",nQa,{passive:!0}),r.addEventListener("click",pQa),b.clickTrackingParams&&(r.params={itct:b.clickTrackingParams}),qQa(r,b),Nd(r,rQa(b)||"")):r.addEventListener("click",k),function(){b?(r.removeEventListener("touchstart",nQa,{passive:!0}),r.removeEventListener("click",pQa)):r.removeEventListener("click",k)}},n=function(){var r=a.value;
if(r){var t=_.Fs({innertubeCommand:b,elementsCommand:c,forceNewState:d,stopPropagation:g});if(t)return r._data=t._data,t["aria-haspopup$"]&&r.setAttribute("aria-haspopup",t["aria-haspopup$"].toString()),t["force-new-state$"]&&r.setAttribute("force-new-state",t["force-new-state$"].toString()),t.href$&&Nd(r,t.href$),t.rel$&&(r.rel=t.rel$),t.role$&&r.setAttribute("role",t.role$),t.target$&&(r.target=t.target$),r.params=t.params,t.onclick&&r.addEventListener("click",t.onclick),t.onpointerdown&&r.addEventListener("onpointerdown",
t.onpointerdown),function(){t.onclick&&r.removeEventListener("click",t.onclick);t.onpointerdown&&r.removeEventListener("onpointerdown",t.onpointerdown)}}};
vi(e?n:m,[b,c])};
cZa=function(a){var b=a.children;var c=a.className;var d=a.dir;var e=a.style;var g=a.role;var k=a.ariaSelected;var m=a.ariaLabel;var n=a.ariaHidden;var r=a.ariaLabelledby;var t=a.ariaDescribedby;var u=a.command;var x=a.elementsCommand;var A=a.forceNewState;var C=a.isPlaceholder;var F=a.tabIdentifier;var J=a.target;var I=a.tabIndex;var R=a.useATagConfig;var da=a.stopPropagation;a=_.Pl();_.bZa(a,u,x,A,R,da);x=_.lt(function(){return da===!1});
return _.q("a",{el:a,"on:click":x,class:c,style:e,dir:d,role:g?g:u?void 0:"group","aria-hidden":n?!0:void 0,"aria-label":m,"aria-labelledby":r,"aria-describedby":t,"aria-selected":k,tabindex:I!==void 0?I:void 0,target:J,"tab-identifier":F,"force-new-state":A?!0:void 0,"is-placeholder":C?!0:void 0},b)};
eZa=function(a){var b=a.data;a=_.lt(function(){var e=_.y(b.onTap,_.Cs);e&&_.v().resolve(_.Yi).resolveCommand(e);return!1});
var c={sources:[{url:b.thumbnailUrl,width:120,height:90}]},d=b.rating&&b.ratingA11yLabel&&b.reviewsCount&&b.reviewsCountA11yLabel;return _.q("place-data-view-model",null,b.placeName&&b.placeCategory?_.q("div",{class:"yt-spec-place-data-view-model-shape","on:click":a},_.q(_.Ps,{data:c,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail "+dZa}),_.q(cZa,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.y(b.onTap,_.Cs),forceNewState:!0,
useATagConfig:!0},_.q("h3",{class:"yt-spec-place-data-view-model-shape__name",title:b.placeName},b.placeName)),_.q("div",{class:"yt-spec-place-data-view-model-shape__metadata"},d?_.q("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.q("span",{class:"score",title:b.ratingA11yLabel},b.rating),_.q("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.q(_.qt,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.q("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:b.reviewsCountA11yLabel},b.reviewsCount)):_.q("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.q("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.q("span",{class:"category",title:b.placeCategory},b.placeCategory)))):null)};
fZa=function(a){return function(b){a&&(a.thumbnailElRef=b.thumbnailElRef,a.thumbnail=b.thumbnail,a.thumbnailOverlays=b.thumbnailOverlays,a.thumbnailSize=b.thumbnailSize)}};
gZa=function(a){var b;return(b=a.sharedUi)==null?void 0:b.animatedThumbnailEnabled};
hZa=function(a){var b;return(b=a.sharedUi)==null?void 0:b.inlinePreviewEnabled};
_.iZa=function(a){var b;return(b=a.sharedUi)==null?void 0:b.currentPageSubType};
jZa=function(){return _.q("div",{class:"yt-pinking"},_.q("svg",{class:"yt-pinking__pinking-left"},_.q("defs",null,_.q("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.q("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.q("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.q("svg",{class:"yt-pinking__pinking-right"},_.q("defs",null,_.q("pattern",{id:"right-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.q("polygon",{class:"yt-pinking__pinking",
points:"4,0 0,4 4,8"}))),_.q("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))};
kZa=function(a){switch(a){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
pZa=function(a){var b=[],c=a.data,d=Yt(a.width,a.height),e=_.v().resolve(_.Xi(lZa)),g=_.Pl(function(){b.push("elRef.value set")});
_.wi(function(){b.push("onInit");return function(){b.push("onCleanup")}});
_.wi(function(){var F;(F=a.playbackRef)==null||F.call(a,{thumbnailElRef:g,thumbnail:c.image,thumbnailOverlays:c.overlays,thumbnailSize:d})});
var k=VVa(gZa),m,n=(m=a.aspectRatio)!=null?m:0,r=(m=(c.image?_.$Qa(c.image):n)<=1&&n===0)?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL",t=function(){g.value||_.Dl(new _.qj("Thumbnail elRef.value is null",b.join("\n")));e&&g.value&&e(g.value)},u={};
a:{if(!a.disableRounding&&!a.isClip)switch(d){case "large":var x="yt-thumbnail-view-model--large";break a;case "small":x="yt-thumbnail-view-model--small";break a;default:x="yt-thumbnail-view-model--medium";break a}x=void 0}n=_.ht("yt-thumbnail-view-model",a.className,kZa(n),x,(u["yt-thumbnail-view-model--cinematic"]=m,u));u=void 0;var A,C;(x=m?(A=a.data)==null?void 0:(C=A.backgroundColor)==null?void 0:C.lightTheme:void 0)&&(u="background-color:"+Eq(x,"1")+";");return _.q("yt-thumbnail-view-model",
{class:n,style:u,el:g},_.Tg(m,function(){return _.q("div",{class:"yt-thumbnail-view-model__blurred-image"},_.q(_.Ps,{data:c.image,alt:"",contentMode:r,targetWidth:a.width,onload:t}))}),_.q("div",{class:"yt-thumbnail-view-model__image"},_.q(_.Ps,{data:c.image,
alt:"",contentMode:r,targetWidth:a.width,onload:t}),null),mZa(c.overlays,{thumbnailOverlayBadgeViewModel:{thumbnailSize:d,isClip:a.isClip},thumbnailOverlayButtonViewModel:{lockupExperiments:a.lockupExperiments}}),_.Tg(a.hovered,function(){return nZa(c.overlays,{thumbnailHoverOverlayViewModel:{alwaysShow:!0}})}),_.Tg(a.hovered&&k,function(){return oZa(c.overlays)}),_.Tg(a.isClip,function(){return jZa()}))};
qZa=function(a){switch(a){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
vZa=function(a){var b=_.h(pu(-1)),c=b.next().value,d=b.next().value,e=yi(function(){return new rZa(d)});
_.wi(function(){sZa(e,a.data.thumbnails.length);return function(){tZa(e)}});
var g;return _.q("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},(g=a.data.thumbnails)==null?void 0:g.map(function(k,m){var n=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];!a.data.primaryThumbnail&&m===0&&n.push("yt-collection-thumbnail-slideshow--first-slide");m<=c&&n.push("yt-collection-thumbnail-slideshow--show-slide");m=n.join(" ");return _.q("div",{class:m},uZa(k,{thumbnailViewModel:{disableRounding:a.disableRounding}}))}))};
xZa=function(a){var b=_.h(pu(!1)),c=b.next().value,d=b.next().value;_.wi(function(){if(a){var e=_.v().resolve(_.Xi(wZa));if(e){var g={triggeringElement:a,onDwellTriggeredFn:function(){d(!0)},
onDwellEndFn:function(){d(!1)}};
e.registerElement(g);return function(){e.unregisterElement(g)}}}});
return c};
yZa=function(a){var b=_.h(_.ih(!1,void 0,"RIOonf")),c=b.next().value,d=b.next().value;_.wi(function(){var e=a==null?void 0:a();if(e){var g=_.v().resolve(_.Xi(wZa));if(g){var k={triggeringElement:e,onDwellTriggeredFn:function(){d(!0)},
onDwellEndFn:function(){d(!1)}};
g.registerElement(k);_.zh(function(){g.unregisterElement(k)})}}});
return c};
BZa=function(a){var b,c=(b=_.v().resolve(_.Xi(_.Ks)))==null?void 0:b(),d=xZa(a.triggeringElement),e=!!a.data.primaryThumbnail,g=function(){var m;return _.q("div",null,zZa(a.data.primaryThumbnail,{thumbnailViewModel:{width:a.width,height:a.height,aspectRatio:a.aspectRatio,disableRounding:a.disableRounding,className:e?"yt-collection-thumbnail-view-model--has-stacks":void 0,hovered:a.hovered,playbackRef:a.playbackRef}}),_.Tg(d&&((m=a.data.thumbnails)==null?void 0:m.length),function(){return _.q("div",
{class:"yt-collection-thumbnail-view-model__slideshow"},_.q(AZa,{data:a.data,disableRounding:!e}))}))};
b=a.data.stackColor;var k={experimentEnabled:e,thumbnailSize:Yt(a.width,a.height),doubleStack:a.doubleStack,color:c?b==null?void 0:b.darkTheme:b==null?void 0:b.lightTheme,enableResponsiveMode:!1};return _.q("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.Tg(e,function(){return _.q(SXa,{data:k},g())}),_.Tg(!e,g))};
CZa=function(a,b,c){c?c(b):_.Gs(b,a.target?{form:{element:a.target}}:void 0)};
_.gv=function(a,b,c,d){_.wh(function(){var e=a.value;if(e){var g=new Map,k,m=(k=b())==null?void 0:k.onTap;m&&(k=function(n){a:{var r=n.composedPath();r=_.h(r);for(var t=r.next();!t.done;t=r.next()){t=t.value;if(t===e)break;if(t.className.indexOf("HostIsClickableAdComponent")>=0||t.tagName==="A".toString()||t.tagName==="BUTTON".toString()){r=!0;break a}}r=!1}r||(_.w("enable_square_image_components_ui_web_with_float_button")?_.io(a.value,"yt-navigate",{endpoint:_.Ds(m)}):CZa(n,m,c))},(d==null?0:d())||
_.w("enable_web_home_top_landscape_image_layout_level_click")?(e.addEventListener("tap",k),g.set("tap",k)):(e.addEventListener("click",k),g.set("click",k)));
_.zh(function(){for(var n=_.h(g),r=n.next();!r.done;r=n.next()){var t=_.h(r.value);r=t.next().value;t=t.next().value;e.removeEventListener(r,t)}})}},"gbNRQb")};
DZa=function(a,b){var c,d=(c=a.interaction)==null?void 0:c.onTap;if(a=_.Fs({elementsCommand:d,forceNewState:!0,skipOnClick:!0}))return a.onclick=function(e){iQa(e)&&(e.preventDefault(),d&&CZa(e,d,b))},kQa(a)?a:void 0};
EZa=function(a){switch(a){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
FZa=function(a){switch(a){case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
GZa=function(a){switch(a){case "AD_BUTTON_STYLE_OUTLINE":return"outline";case "AD_BUTTON_STYLE_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TONAL":return"tonal";case "AD_BUTTON_STYLE_OVERLAY_TEXT":case "AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled"}};
_.HZa=function(a){return _.w("rich_grid_enable_dynamic_offset")&&a?Math.max(Math.round((a-_.$i("rich_grid_dynamic_offset_anchor_width",1300))/100*_.$i("rich_grid_dynamic_offset_offset_per_100",10)),_.$i("rich_grid_dynamic_offset_lower_bound",-60)):0};
IZa=function(a,b){switch(b){case 4:return 16;case 1:return a<528?16:a<1024?32:48;case 2:return(a>=528?16:8)/2;case 3:return(a<528?16:a<1024?32:48)+(a>=528?16:8)/2;default:return 0}};
JZa=function(a){var b=a.originalContainerWidth;var c=a.sizing;var d=a.standardUnit;if(a.isCompactList&&b<528)return 1;switch(c){case "STANDARD":return d;case "COMPACT":return d+1;case "EXTRA_COMPACT":return _.w("web_responsive_extra_compact_2x")?d*2:_.w("web_responsive_current")?d===1?2:d%2===0?d/2*3:d+2:d<4?d*2:Math.ceil(d*3/2);case "MINI":return d>1?d*2:3;default:return d}};
LZa=function(a){var b=a.containerWidth;var c=a.peek;var d=a.gutter;var e=a.numItems;a=a.ignoreMaxWidthLimit;b=c?Math.max((b-c-d*e)/e,0):Math.max((b-d*(e-1))/e,0);return a?b:Math.min(b,KZa)};
_.hv=function(a){var b=a.containerWidth;var c=a.hasPeek;var d=a.sizing;var e=a.marginSettings;var g=a.isCompactList;var k=a.enableFullBleedForSingleCol;var m=a.standardUnitMinWidth;d=d||"STANDARD";c=!!c;a=b>=528?16:8;var n=c?b>=528?48:24:0;e=IZa(b,e);var r=Math.max(b-e*2,0);m=_.w("kevlar_disable_min_width_override")?void 0:m;m=Math.min(Math.max(Math.floor((r-n+a)/((m!=null?m:MZa)+_.HZa(b)+a)),1),6);var t=(k=!!k&&m===1)||m===1&&d!=="STANDARD";c=c||t?r:Math.min(r,(KZa+a)*m-a);d=JZa({originalContainerWidth:b,
sizing:d,standardUnit:m,isCompactList:g});return{itemWidth:LZa({containerWidth:c,peek:n,gutter:a,numItems:d,ignoreMaxWidthLimit:t}),gutter:a,maxContainerWidth:c,numItems:d,margin:k?0:e,contentMargin:IZa(b,1),typographyBump:LZa({containerWidth:c,peek:n,gutter:a,numItems:m,ignoreMaxWidthLimit:t})>400&&!(g&&b<528),standardUnit:m}};
NZa=function(a){switch(a){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.OZa=function(a){if(a){var b;if((b=a.responsiveContainerConfiguration)==null?0:b.responsiveSize)return NZa(a.responsiveContainerConfiguration.responsiveSize);if(a.layoutSizing)switch(a.layoutSizing){case "RICH_GRID_LAYOUT_SIZING_COMPACT":return"COMPACT";case "RICH_GRID_LAYOUT_SIZING_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RICH_GRID_LAYOUT_SIZING_TINY":return"MINI";default:return"STANDARD"}}};
PZa=function(a){if(a.fullbleed)return 1;switch(a.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
TZa=function(a,b,c,d,e,g,k,m){a:switch(a){case 4:g=!!(g&&g<100);break a;default:g=!1}a:switch(a){case 3:case 4:var n=d==="LOCKUP_CONTENT_TYPE_CHANNEL"||d==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:n=!1}a:switch(a){case 5:var r=!0;break a;case 4:r=!1;break a;default:r=!1}a:if(a===4&&d==="LOCKUP_CONTENT_TYPE_SOURCE")var t=1;else switch(a){case 3:t=1;break a;default:t=0}return{isOverlay:r,isCard:QZa(d,k),sizing:b!=null?b:"STANDARD",typographyBump:c!=null?c:!1,isTiny:g,isCentered:n,isCollection:RZa(d),
arrangement:t,addMarginForFullbleed:a===1&&d!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:a===1&&d==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:SZa(d,e,m),disableRounding:a===5||QZa(d,k)||a===1&&d==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:RZa(d)?2:0,useLegacyTypography:!(m==null||!m.useLegacyTypography),useRichGridLegacyTypography:!(m==null||!m.useRichGridLegacyTypography)}};
RZa=function(a){switch(a){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return!0;default:return!1}};
QZa=function(a,b){if(b&&a==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(a){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
SZa=function(a,b,c){if(b&&(c==null||!c.alwaysRespectPodcastShowAspectRatio||a!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(a){case "LOCKUP_CONTENT_TYPE_SHORT":return 4;case "LOCKUP_CONTENT_TYPE_GAME":case "LOCKUP_CONTENT_TYPE_MOVIE":return 1;case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PRODUCT":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return 3;default:return 0}};
UZa=function(a){switch(a){case 0:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingGreenCircle";case 1:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingYellowCircle";case 2:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingRedSquare";case 3:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallGreenSquare";case 4:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlueSquare";case 5:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlueSquare";case 6:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallYellowSquare";case 7:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeYellowSquare";
case 8:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallOrangeSquare";case 9:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeOrangeSquare";case 10:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallRedSquare";case 11:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeRedSquare";case 12:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlackSquare";case 13:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlackSquare"}};
XZa=function(a,b,c){a:switch(a.badgeStyle){case "BADGE_OVERLAY":var d=!0;break a;default:d=!1}return{type:b?16:VZa(a.badgeStyle),brNzRatingBadgeType:WZa(a.badgeStyle),text:a.badgeText,icon:a.iconName,isOverlay:d,modern:c||_.w("web_modern_badge_view_model")}};
VZa=function(a){switch(a){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
WZa=function(a){switch(a){case "BADGE_NZ_RATING_GREEN_CIRCLE":return 0;case "BADGE_NZ_RATING_YELLOW_CIRCLE":return 1;case "BADGE_NZ_RATING_RED_SQUARE":return 2;case "BADGE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;
case "BADGE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_BR_RATING_LARGE_RED_SQUARE":return 11;case "BADGE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
ZZa=function(a){var b=a.data?XZa(a.data,!!a.workaroundShortsIsThumbnailBadge,a.modern):void 0;return _.q("yt-badge-view-model",{class:_.ht("yt-badge-view-model-wiz",a.class)},_.Tg(b==null?void 0:b.brNzRatingBadgeType,function(){return _.q(YZa,{data:b})}),_.Tg(b&&!b.brNzRatingBadgeType,function(){return _.q(_.iv,{data:b})}))};
_.jv=function(a){if(a){var b;return((b=_.v().resolve(_.Xi(_.Ks)))==null?0:b())?a.darkThemeImage:a.image}};
b_a=function(a,b,c,d,e,g){if(!c)return e&&g&&b==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING"?"width: "+e+"px; height: "+g+"px;":"";e=c.size;c=c.allowFullWidth;if(b==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&c)return"width: 100%;";if(e===void 0)return"";switch(a){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return"width: "+e+"px; height: "+e+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return"width: "+e+"px; height: "+1/$Za*
e+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return"width: "+e*a_a+"px; height: "+e+"px;";default:return(d==null?0:d.height)&&(d==null?0:d.width)?d.width/d.height>1?"max-width: "+e*a_a+"px;":"max-width: "+e+"px;":"max-width: "+e+"px;"}};
c_a=function(a){var b;return a&&((b=_.jv(a.themedImage))!=null?b:a.image)};
d_a=function(a){var b;return a==null?void 0:(b=a.sources)==null?void 0:b[0]};
f_a=function(a,b){var c,d;return!!((a==null?0:(c=a.byline)==null?0:c.hideAvatar)&&((d=_.y(b,e_a))==null?void 0:d.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
g_a=function(a,b){var c,d;return!!((a==null?0:(c=a.byline)==null?0:c.addPadding)&&((d=_.y(b,e_a))==null?void 0:d.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
h_a=function(a,b,c,d){var e={},g=(e["yt-content-metadata-view-model-wiz__delimiter"]=!0,e["yt-content-metadata-view-model-wiz__delimiter--standalone"]=d,e);return _.Tg(b-1>c,function(){return _.q("span",{class:_.ht(g),"aria-hidden":!0},a)})};
j_a=function(a,b){return _.q(_.tt,{text:a.text,linkInheritColor:!0,className:i_a(b),userInput:!0})};
l_a=function(a){var b=a.metadataPart;var c=a.isOverlay;var d=a.useMediumText;var e=a.hideAvatar;var g=1;b.maxLines!==void 0&&(g=b.maxLines);return _.q(_.Wh,null,_.Tg(b.avatarStack,function(){return k_a(b.avatarStack,{avatarStackViewModel:{isOverlay:c,useMediumText:d,hideAvatar:e}})}),_.Tg(b.text,function(){var k=g;
return _.q(_.Wh,null,b.tooltip?_.q("span",{title:b.tooltip,role:"tooltip"},j_a(b,k)):j_a(b,k))}))};
i_a=function(a){switch(a){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
m_a=function(a){var b=a.metadataRow;var c=a.isInline;var d=a.delimiter;var e=a.isOverlay;var g=a.useMediumText;var k=a.extensions;var m=f_a(k==null?void 0:k.lockupMetadata,b);a=g_a(k==null?void 0:k.lockupMetadata,b);k=!!((k==null?0:k.lockupMetadata)&&b.badges);var n={};a=(n["yt-content-metadata-view-model-wiz__metadata-row"]=!0,n["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=c,n["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=a,n["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
k,n);var r,t;return _.q("div",{class:_.ht(a)},(r=b.badges)==null?void 0:r.map(function(u){return _.q("div",{class:"yt-content-metadata-view-model-wiz__badge"},k_a(u))}),(t=b.metadataParts)==null?void 0:t.map(function(u,x){return _.q(_.Wh,null,l_a({metadataPart:u,
isOverlay:e,useMediumText:g,hideAvatar:m}),h_a(d,b.metadataParts.length,x,!1))}),_.Tg(b.isSpacerRow&&!c,function(){return _.q("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
n_a=function(a){var b=a.className;var c=a.data;var d=a.layout===void 0?0:a.layout;var e=a.isOverlay===void 0?!1:a.isOverlay;var g=a.useMediumText;var k=a.extensions;a=_.Pl();var m=d===0;d={};d=(d["yt-content-metadata-view-model-wiz"]=!0,d["yt-content-metadata-view-model-wiz--inline"]=m,d["yt-content-metadata-view-model-wiz--tappable"]=_.Xu(c.rendererContext),d["yt-content-metadata-view-model-wiz--medium-text"]=g,d);_.Yu(a,c.rendererContext);return _.q("yt-content-metadata-view-model",{class:_.ht(b,
d),el:a},_.Tg(c.metadataRows,function(){return c.metadataRows.map(function(n,r){return _.q(_.Wh,null,m_a({metadataRow:n,isInline:m,delimiter:c.delimiter,isOverlay:e,useMediumText:g,extensions:k}),_.Tg(m&&!n.isSpacerRow,function(){return h_a(c.delimiter,c.metadataRows.length,r,!0)}))})}))};
o_a=function(a){switch(a){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
p_a=function(a){if(a==null?0:a.isOverlay)return"yt-lockup-metadata-view-model-wiz--overlay";switch(a==null?void 0:a.arrangement){case 1:return"yt-lockup-metadata-view-model-wiz--horizontal";default:return"yt-lockup-metadata-view-model-wiz--vertical"}};
q_a=function(a){if(a==null?0:a.isTiny)return"yt-lockup-metadata-view-model-wiz--tiny";switch(a==null?void 0:a.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":return"yt-lockup-metadata-view-model-wiz--compact";default:return"yt-lockup-metadata-view-model-wiz--standard"}};
r_a=function(a){var b,c,d,e,g,k,m={},n=_.ht(p_a(a.lockupStyle),q_a(a.lockupStyle),(m["yt-lockup-metadata-view-model-wiz"]=!0,m["yt-lockup-metadata-view-model-wiz--overlay"]=(b=a.lockupStyle)==null?void 0:b.isOverlay,m["yt-lockup-metadata-view-model-wiz--card"]=(c=a.lockupStyle)==null?void 0:c.isCard,m["yt-lockup-metadata-view-model-wiz--centered"]=(d=a.lockupStyle)==null?void 0:d.isCentered,m["yt-lockup-metadata-view-model-wiz--typography-bump"]=(e=a.lockupStyle)==null?void 0:e.typographyBump,m["yt-lockup-metadata-view-model-wiz--legacy-typography"]=
(g=a.lockupStyle)==null?void 0:g.useLegacyTypography,m["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=(k=a.lockupStyle)==null?void 0:k.useRichGridLegacyTypography,m)),r,t,u,x,A,C;return _.q("yt-lockup-metadata-view-model",{class:n},_.Tg(a.data.image,function(){return _.q("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},kv(a.data.image))}),_.q("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.q("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:(r=a.data.title)==null?void 0:r.content},_.Tg(a.data.title,function(){return _.q(_.rt,{command:a.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:a.lockupAccessibilityLabel},_.q(_.tt,{text:a.data.title}))})),_.q("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},kv(a.data.metadata,{contentMetadataViewModel:{layout:1,
useMediumText:((t=a.lockupStyle)==null?void 0:t.typographyBump)||((u=a.lockupStyle)==null?void 0:u.useRichGridLegacyTypography),extensions:{lockupMetadata:{byline:{hideAvatar:((x=a.lockupStyle)==null?void 0:x.arrangement)===0,addPadding:((A=a.lockupStyle)==null?void 0:A.arrangement)===1}}}}})),_.Tg(a.data.attribution,function(){return _.q("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},kv(a.data.attribution,{attributionViewModel:{useSmallLayout:!0}}))}),_.q("div",null,kv(a.data.attachmentSlot,
{lockupAttachmentsViewModel:{lockupStyle:a.lockupStyle}}))),_.q("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},kv(a.data.menuButton,((C=a.lockupStyle)==null?0:C.isOverlay)?{buttonViewModel:{buttonOverrides:{style:"overlay"}}}:void 0)))};
s_a=function(a){switch(a.style){case "STYLE_VISIBLY_DISABLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_WHITE_WITH_BORDER":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};
case "STYLE_LIGHT_TEXT":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_TONAL_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",
type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DARK_ON_BLACK":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",
type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};default:return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"}}};
t_a=function(a){var b=_.iZa(_.Kr().getState())||"";return a?a+b:""};
u_a=function(a){switch(a){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
w_a=function(a){var b=_.h(_.ih(void 0,void 0,"BIquNb")),c=b.next().value,d=b.next().value,e=_.h(_.ih(void 0,void 0,"eR0GH"));b=e.next().value;var g=e.next().value,k=_.h(_.ih(void 0,void 0,"UmkP0"));e=k.next().value;var m=k.next().value;k=_.lt(function(r){if(v_a(_.Vu(r)))return!1;d(r);g(void 0);m(void 0);return!0});
var n=_.lt(function(r){a==null||a(r);if(v_a(_.Vu(r)))return!1;g(r);d(void 0);m(void 0);return!0});
return{touchFeedbackEvents:{pointerUpEvent:c,pointerDownEvent:b,pointerLeaveEvent:e},touchFeedbackOnPointerUp:k,touchFeedbackOnPointerDown:n,touchFeedbackOnPointerLeave:function(r){v_a(_.Vu(r))||(m(r),g(void 0),d(void 0))}}};
v_a=function(a){var b=["BUTTON".toString()];a=_.h(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=_.h(b),e=d.next();!e.done;e=d.next())if(c.tagName===e.value)return!0}return!1};
x_a=function(a){switch(a){case "AD_AVATAR_SIZE_XXS":return"tiny";case "AD_AVATAR_SIZE_XS":return"extra-small";case "AD_AVATAR_SIZE_S":return"small";case "AD_AVATAR_SIZE_M":return"medium";case "AD_AVATAR_SIZE_L":return"large";case "AD_AVATAR_SIZE_XL":return"extra-large";default:return"medium"}};
y_a=function(a){var b;return DQa(a,((b=a.content)==null?void 0:b.length)||0,!0)};
z_a=function(a){var b=y_a(a),c,d;return(((c=a.content)==null?void 0:c.length)||0)>(((d=b.content)==null?void 0:d.length)||0)};
A_a=function(a){var b=a.isTruncated;var c=a.isAbsoluteButton;var d=a.lineHeight;var e=a.contentRef.value,g=a.placeholderTruncationTextRef.value,k=a.truncationTextRef.value;a=a.appDirection==="rtl";if(e&&g){var m=g.offsetLeft;a&&(m=e.offsetWidth-g.offsetWidth-g.offsetLeft);if(b){b=g.offsetWidth;g=e.offsetWidth;var n=c?g-b-70:m-70;d="linear-gradient(\n      to top, transparent 0%,\n      transparent "+d+"px,\n      #000 "+d+"px,\n      #000 100%), linear-gradient(\n      to "+((a?"left":"right")+",\n      #000 0px,\n      #000 "+
n+"px,\n      transparent "+(c?g-b:n+70)+"px)");e.style.setProperty("-webkit-mask-image",d);e.style.setProperty("mask-image",d)}else e.style.setProperty("-webkit-mask-image",""),e.style.setProperty("mask-image","");c?a?(k.style.setProperty("left","0"),k.style.setProperty("right","unset")):(k.style.setProperty("left",""),k.style.setProperty("right","0")):a?(k.style.setProperty("left","unset"),k.style.setProperty("right",m+"px")):(k.style.setProperty("left",m+"px"),k.style.setProperty("right","unset"))}};
B_a=function(a,b,c,d,e){var g=_.Pl(),k=_.Pl(),m=_.Pl(),n=y_a(a),r=_.v().resolve(_.Ms),t=_.h(pu(z_a(a))),u=t.next().value,x=t.next().value,A=Ai(null);vi(function(){function C(){if(g.value&&k.value&&m.value){var I=g.value;I.scrollHeight-I.offsetHeight>1?(x(!0),d||A_a({isTruncated:!0,isAbsoluteButton:!0,lineHeight:c,contentRef:g,placeholderTruncationTextRef:k,truncationTextRef:m,appDirection:r})):(I=z_a(a),x(I),d||A_a({isTruncated:I,isAbsoluteButton:!1,lineHeight:c,contentRef:g,placeholderTruncationTextRef:k,
truncationTextRef:m,appDirection:r}))}}
var F,J;(F=A.value)==null||(J=F.stop)==null||J.call(F);F=new _.lv(C,17);C();A.value=F},[a.content,
b,c,r,d,e]);_.wi(function(){var C=function(){var J,I;(J=A.value)==null||(I=J.fire)==null||I.call(J)};
if(window.ResizeObserver){var F=new ResizeObserver(C);F.observe(g.value);return function(){var J,I;(J=A.value)==null||(I=J.stop)==null||I.call(J);F.disconnect()}}window.addEventListener("resize",C);
return function(){var J,I;(J=A.value)==null||(I=J.stop)==null||I.call(J);window.removeEventListener("resize",C)}});
return{isTruncated:u,displayText:n,contentRef:g,placeholderTruncationTextRef:k,truncationTextRef:m}};
C_a=function(a){return _.q("button",{"aria-disabled":!0,disabled:!0,class:a.className,el:a.elRef,style:"line-height: "+a.lineHeight+"px;"},_.q(_.tt,{text:a.text}))};
D_a=function(a){var b=a.text;var c=a.alwaysShowTruncationText;var d=a.truncationText;var e=a.onExpandClick;var g=a.lineHeight===void 0?16:a.lineHeight;var k=a.maxLines===void 0?2:a.maxLines;var m=a.disableTextMask===void 0?!1:a.disableTextMask;var n=a.isOverlay===void 0?!1:a.isOverlay;var r=a.accessibilityLabel===void 0?"":a.accessibilityLabel;var t=a.useMediumText===void 0?!1:a.useMediumText;a=_.lt(function(){return void(e==null?void 0:e())});
var u=B_a(b,k,g,m,t),x=u.isTruncated;b=u.displayText;var A=u.contentRef,C=u.placeholderTruncationTextRef;u=u.truncationTextRef;var F={};c=_.ht((F["truncated-text-wiz__absolute-button"]=!m,F["truncated-text-wiz__bottom-button"]=m,F["truncated-text-wiz--hidden"]=!(c||x),F));m={};n=_.ht((m["truncated-text-wiz"]=!0,m["truncated-text-wiz--overlay"]=n,m["truncated-text-wiz--medium-text"]=t,m));return _.q("truncated-text",{class:n,"on:click":a,style:"line-height: "+g+"px;"},_.q("truncated-text-content",
{class:"truncated-text-wiz__truncated-text-content",el:A,style:"max-height: "+k*g+"px;"},_.q(_.tt,{text:b}),_.q(C_a,{text:d,lineHeight:g,elRef:C,className:"truncated-text-wiz__inline-button"})),_.q("button",{"aria-label":r,class:c,el:u,style:"line-height: "+g+"px;"},_.q(_.tt,{text:d})))};
E_a=function(a){return{content:a!=null?a:""}};
H_a=function(a){var b=a.data;var c;a={class:a.className};a:switch(b.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var d="yt-video-attribute-view-model--vertical";break a;default:d="yt-video-attribute-view-model--horizontal"}a:switch(b.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var e="yt-video-attribute-view-model--image-small";break a;default:e="yt-video-attribute-view-model--image-large"}a:switch(b.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var g="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":g="yt-video-attribute-view-model--image-avatar";break a;default:g=""}a:switch(b.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var k="yt-video-attribute-view-model--metadata-header";break a;default:k=""}a:switch(b.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var m="yt-video-attribute-view-model--container-card";break a;default:m=""}var n=_.Ds(b.onTap)||_.Wu(b.rendererContext)?"yt-video-attribute-view-model--clickable":"";
d=["yt-video-attribute-view-model",d,e,g,k,m,n].join(" ");if(b.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var r="";else e=b.lightColorPalette,g=b.darkColorPalette,k=((r=_.v().resolve(_.Xi(_.Ks)))==null?0:r())&&g?g:e,r=(r=k==null?void 0:k.section2Color)?_.Dq(r):"";return _.q("yt-video-attribute-view-model",a,_.q("div",{class:d,style:_.ot({"background-color":r})},_.q(cZa,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(c=_.Ds(b.onTap))!=
null?c:_.Wu(b.rendererContext),role:"group",forceNewState:!0},b.heroText||b.image?_.q(F_a,{data:b}):null,_.q(G_a,{data:b,sizeSmall:b.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
I_a=function(a){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:a.overflowMenuA11yLabel,onTap:function(b){b.preventDefault();b.stopPropagation();if(a.overflowMenuOnTap){var c=_.Fs({elementsCommand:a.overflowMenuOnTap,forceNewState:!0});if(c==null?0:c.onclick)c.onclick(b)}}}};
J_a=function(a){return function(){_.v().resolve(Au)("MORE_VERT",{iconSize:a})}};
F_a=function(a){a=a.data;var b,c=((b=_.v().resolve(_.Xi(_.Ks)))==null?0:b())&&a.darkThemeImage?a.darkThemeImage:a.image,d=I_a(a),e=wt(d,!0);return _.q("div",{class:"yt-video-attribute-view-model__hero-section"},c?_.q(_.Ps,{data:c,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):a.heroText?_.q("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.q("span",{class:"yt-video-attribute-view-model__hero-text"},a.heroText)):null,a.overflowMenuOnTap?
_.q("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.w("web_wiz_button_shape")?_.q(st,{data:d,iconName:"MORE_VERT"}):_.q(Sl,null,function(){zt(d,J_a(e))})):null)};
G_a=function(a){var b=a.data;var c=b.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",d={};a={class:_.ht("yt-video-attribute-view-model__metadata",(d["yt-video-attribute-view-model--small-font"]=a.sizeSmall,d)),role:"link"};d=_.q("h1",{class:"yt-video-attribute-view-model__title"},b.title);c=b.subtitle?_.q("h4",{class:"yt-video-attribute-view-model__subtitle"},c?_.q(D_a,{text:E_a(b.subtitle),truncationText:E_a(b.subtitleTruncationText),maxLines:2}):_.q("span",null,b.subtitle)):null;if(b.secondarySubtitle){var e=
b.secondarySubtitle;if(e!=null&&e.attachmentRuns){for(var g=[],k=_.h(e.attachmentRuns),m=k.next();!m.done;m=k.next())m=m.value,m.element&&g.push(Object.assign({},m,{element:Object.assign({},m.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));e=Object.assign({},e,{attachmentRuns:g})}e=_.q("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.q(_.tt,{text:e}))}else e=null;return _.q("div",a,d,c,e,b.buttonViewModel?
K_a(b.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
M_a=function(a){var b={};b=_.ht("video-summary-content-view-model-wiz",a.className,(b["video-summary-content-view-model-wiz--is-search"]=!!a.isSearch,b));var c=_.y(a.data.likeButtonViewModel,oXa),d=_.y(a.data.dislikeButtonViewModel,pXa),e=xi(function(){var g=[],k,m=(k=a.data)==null?void 0:k.paragraphs;if(m==null||!m.length)return[];for(k=0;k<m.length;k++){var n=_.y(m[k],L_a),r=void 0;k>0&&(r=_.y(m[k-1],L_a));r&&!!r.marker===!!n.marker?g[g.length-1].paragraphs.push(n):g.push({isList:!!n.marker,paragraphs:[n]})}return g},
[a.data]);
return _.q("video-summary-content-view-model",{class:b},e.map(function(g){return g.isList?_.q("ul",{class:"video-summary-content-view-model-wiz__list"},g.paragraphs.map(function(k){return _.q("li",{class:"video-summary-content-view-model-wiz__list-item"},_.q(_.tt,{text:k.text}))})):g.paragraphs.map(function(k){return _.q("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.q(_.tt,{text:k.text}))})}),_.Tg(!!c&&!!d,function(){return _.q("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},
_.q("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.q(nXa,{data:c,
disableIconAnimation:!0})),_.q(lXa,{data:d}))}))};
O_a=function(a,b,c){return _.l(function(d){return d.return(new Promise(function(e){var g=new Image;g.onload=function(){e(new N_a(a,b,c,g.naturalWidth,g.naturalHeight))};
g.src=c.toString()}))})};
P_a=function(a,b){return Math.round(a/1E-5)===Math.round(b/1E-5)};
Q_a=function(a,b){return Math.round(a/1E-5)===Math.round(b/1E-5)};
R_a=function(a,b){return a.year===b.year&&a.month===b.month&&a.day===b.day};
S_a=function(a,b){return a.year!==b.year?a.year<b.year:a.month!==b.month?a.month<b.month:a.day<b.day};
U_a=function(a){return a.day===T_a(a.year,a.month)?a.month===11?{year:a.year+1,month:0,day:1}:{year:a.year,month:a.month+1,day:1}:{year:a.year,month:a.month,day:a.day+1}};
V_a=function(){var a=new Date,b={year:a.getFullYear(),month:a.getMonth(),day:a.getDate()};return{start:b,end:{year:a.getFullYear()+2,month:a.getMonth(),day:a.getDate()},selectedDate:U_a(b)}};
W_a=function(a){return(new Tp(2)).format(new Date(a.year,a.month,a.day))};
X_a=function(a){return{year:a.getFullYear(),month:a.getMonth(),day:a.getDate()}};
Y_a=function(a,b){a=(a+(Number(b.utcOffsetSec)+(new Date(a*1E3)).getTimezoneOffset()*60))*1E3;b=X_a(new Date(a));return{date:b,secondsSinceMidnight:Math.floor((a-(new Date(b.year,b.month,b.day)).getTime())/1E3)}};
Z_a=function(a,b){b=b.months.findIndex(function(c){return c.year===a.year&&c.month===a.month});
return b>=0?b:void 0};
$_a=function(a){if(!a)return!1;try{if(a.host&&a.host.tagName==="YT-FORMATTED-STRING"&&a.host.id==="contenteditable-textarea"||a.nodeType===Node.ELEMENT_NODE&&a.tagName==="YTD-COMMENTBOX")return!0}catch(b){return!1}return $_a(a.parentNode)};
mv=function(a){return a?!(a.tagName!=="A"||!a.href||!a.classList.contains("yt-simple-endpoint")):!1};
a0a=function(a){return a?a.tagName==="IMG"&&a.classList.contains("emoji"):!1};
b0a=function(a,b,c){if(!a)return null;var d=mv(a);if(d&&c)return b=a.pathname.substring(a.pathname.indexOf("/channel/")+9),document.createTextNode("@"+b);if(d&&!c)return document.createTextNode("");if(a0a(a))return c=a.alt,a=a.dataset.emojiId,!a&&b&&(b=_.nv(b,c))&&b.isCustomEmoji&&(a=b.emojiId),a?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+a+">"):document.createTextNode(c);d=a.cloneNode(!1);for(var e=0;e<a.childNodes.length;++e){var g=b0a(a.childNodes[e],b,c);g&&d.appendChild(g)}return d};
ov=function(a){return a?mv(a)?a:ov(a.lastChild):null};
c0a=function(a){return a?mv(a)?a:c0a(a.firstChild):null};
d0a=function(a){if(!a)return null;for(var b=a.previousSibling;b;)if(b.nodeType===Node.ELEMENT_NODE&&b.nodeName==="BR")b=b.previousSibling;else if(b.nodeType===Node.TEXT_NODE&&/\s+/.test(b.textContent))b=b.previousSibling;else break;(b=ov(b))?a=b:a=(a=a.parentNode)?ov(a.previousElementSibling):null;return a};
e0a=function(a){if(!a)return null;for(var b=a.nextSibling;b;)if(b.nodeType===Node.ELEMENT_NODE&&b.nodeName==="BR")b=b.nextSibling;else if(b.nodeType===Node.TEXT_NODE&&/\s+/.test(b.textContent))b=b.nextSibling;else break;return(b=c0a(b))?b:e0a(a.parentNode)};
f0a=function(a){var b=_.pv(),c=b.JSC$9078_getStartNode();if(!$_a(c.parentNode))return null;b=b.JSC$9078_getStartOffset();if(c.nodeType===Node.TEXT_NODE){var d=_.Jf(c,mv);if(d){if(a&&b===0||!a&&b===c.length)return d}else{if(a&&b===c.length)return!c||c.nodeName==="BR"||c.nextElementSibling&&_.qv(c.nextElementSibling,"display")==="block"?null:c0a(c.nextElementSibling);if(!a&&b===0)return c?ov(c.previousElementSibling):null}}if(c.nodeType===Node.ELEMENT_NODE)if(a){if(0<=b&&b<c.childNodes.length)return c0a(c.childNodes[b])}else if(0<
b&&b<=c.childNodes.length)return ov(c.childNodes[b-1]);return null};
g0a=function(a,b,c){if(!a)return null;if(a.nodeType===Node.TEXT_NODE)if(c){var d=d0a(a);if(d&&!/^\s+\S/.test(a.wholeText.substr(0,b)))return d}else if((d=e0a(a))&&!/\S\s+/.test(a.wholeText.substr(b,a.wholeText.length)))return d;return a.nodeType===Node.ELEMENT_NODE?c?d0a(a.childNodes[b]):e0a(a.childNodes[b]):g0a(a.parentNode,b,c)};
h0a=function(a){if(a.hasChildNodes())switch(a.tagName){case "DIV":case "A":case "SPAN":var b="";for(a=a.firstChild;a;a=a.nextSibling)b+=h0a(a);return b;default:return""}else switch(a.nodeType){case 3:return a.textContent;default:return""}};
_.rv=function(a,b,c,d,e){d=d===void 0?{}:d;if(!e||Math.random()<5E-4){b=b||null;c=c||null;a=a instanceof Error?a:new _.qj(a);if(a.args)for(var g=_.h(a.args),k=g.next();!k.done;k=g.next())k=k.value,k instanceof Object&&(d=Object.assign({},k,d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot:  "+b.slotType:"");c&&(d.layout=c?"layout:  "+c.layoutType:"",d.layoutId=c.layoutId);e&&(d.known_error_aggressively_sampled=!0);a.args=[d];_.Dl(a)}};
_.i0a=function(a,b){_.lo(a,"yt-open-popup-action",[_.$p(b),a])};
k0a=function(a){if(!a)return"";if(j0a[a])return j0a[a];sv||(sv=_.pg("A"));sv.href!==a&&Nd(sv,a);var b=sv.pathname;j0a[a]=b.startsWith("/")?b:"/"+b;return j0a[a]};
l0a=function(){var a=k0a(window.location.href);if(a==="/")return"home";if(a.startsWith("/results"))return"search";if(a.startsWith("/watch"))return"watch";if(a.startsWith("/shorts"))return"shorts";if(a.startsWith("/hashtag"))return"hashtag";if(a.startsWith("/create_channel"))return"create_channel";if(a.startsWith("/@")||a.startsWith("/user/")||a.startsWith("/channel/"))return"channel";if(a.startsWith("/experiments"))return"experiments";if(a.startsWith("/sponsor_channel"))return"sponsorship";if(a.startsWith("/select_site"))return"settings";
if(a.startsWith("/locate"))return"locate";if(a.startsWith("/redeem"))return"redeem";if(a.startsWith("/musicpremium")||a.startsWith("/premium")||a.startsWith("/red"))return"premium";if(a.startsWith("/paid_memberships"))return"paid_memberships";if(a.startsWith("/oops"))return"oops";if(a.startsWith("/clip"))return"clip";var b;return(ev==null?void 0:(b=ev.response)==null?void 0:b.page)==="404"?"404":a.startsWith("/feed/history")?"history":a.startsWith("/feed/library")?"library":a.startsWith("/feed/subscriptions")?
"subscriptions":a.startsWith("/feed/trending")?"trending":a.startsWith("/feed/news_destination")?"news":a.startsWith("/playlist")?"playlist":a.startsWith("/minor_moment")?"minor_moment":a.startsWith("/playable/")||a.match("^/playables/(?!saved).")?"mini_app":a.startsWith("/playables")?"playables":a.startsWith("/create/live/join")?"open_in_app":a.startsWith("/feed/explore")?"explore":"browse"};
_.p0a=function(){var a=ev==null?void 0:ev.response,b=a==null?void 0:a.endpoint;if(!b)return(a==null?void 0:a.page)==="watch"?"watch":l0a();var c;a=(c=_.y(b==null?void 0:b.commandMetadata,_.co))==null?void 0:c.webPageType;c=!1;if(a&&!m0a.includes(a))switch(a){case "WEB_PAGE_TYPE_SEARCH":return"search";case "WEB_PAGE_TYPE_SHORTS":return"shorts";case "WEB_PAGE_TYPE_CHANNEL":return"channel";case "WEB_PAGE_TYPE_SETTINGS":return"settings";case "WEB_PAGE_TYPE_PLAYLIST":return"playlist";case "WEB_PAGE_TYPE_OPEN_IN_APP":return"open_in_app";
case "WEB_PAGE_TYPE_MINI_APP":return"mini_app";case "WEB_PAGE_TYPE_WATCH":var d;return((d=_.y(b==null?void 0:b.commandMetadata,_.co))==null?0:d.url)&&k0a(_.y(b.commandMetadata,_.co).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var e;return(b=(e=_.y(b,_.oq))==null?void 0:e.browseId)?n0a[b]||"browse":"browse";default:c=!0}if(_.y(b,_.tv)||_.y(b,o0a))return"sponsorship";e=k0a(window.location.href);if(e.startsWith("/experiments"))return"experiments";if(e.startsWith("/create_channel"))return"create_channel";
if(_.y(b,_.Kl)&&e.startsWith("/shorts"))return"shorts";if(_.y(b,_.Kl)&&e.startsWith("/watch"))return"watch";c&&(b=new _.qj("Unsupported mWeb page type",{pathname:e,webPageType:a}),_.Bl(b));return"browse"};
w0a=function(a){var b=a.data;var c=a.inlineMetadata;var d=a.aspectRatio;var e=a.scrimStyle;var g=a.useDefaultStyle;var k=a.className;var m=Ai(new q0a);a=_.w("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";a=g?a==="SHORTS_LOCKUP_STYLE_SLIM":b.style==="SHORTS_LOCKUP_STYLE_SLIM";c=c||a||!1;e=e!==void 0?e:1;var n=_.Pl(function(J){m.value&&(m.value.hostElement=J,F())});
_.Yl(n,{visibilityCallback:function(J){J&&b.onFirstVisible&&_.Gs(b.onFirstVisible)},
showOption:{calledOnce:!0,state:"visible"}});k=_.ht("shortsLockupViewModelHost",k);var r=_.Fs({elementsCommand:b.onTap}),t=_.Pl();_.bZa(t,_.Ds(b.onTap));var u=_.lt(function(J){if(r==null?0:r.onclick)r.onclick(J);return!1}),x=_.Pl(),A=[];
A.push("shortsLockupViewModelHostThumbnailContainer");d===1?A.push("shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree"):d===2&&A.push("shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour");a||A.push("shortsLockupViewModelHostThumbnailContainerRounded");_.w("web_shorts_2_by_3_lockups_study")||_.w("desktop_search_enable_two_by_three_shorts_aspect_ratio")||A.push("shortsLockupViewModelHostThumbnailContainerCustomDimensions");var C,F=function(){if(m.value){var J;(J=C)==null||
uv(J);J=m.value;var I;J.hostElement&&((I=J.data)==null?0:I.inlinePlayerData)&&(C=dv({mediaRenderer:J,lockupElement:J.hostElement,thumbnailElement:x.value,videoPreviewOpts:r0a}))}};
vi(function(){m.value&&(m.value.data=b,F())},[b]);
return _.q("ytm-shorts-lockup-view-model",{el:n,class:k},_.q("a",{el:t,"on:click":u,class:"shortsLockupViewModelHostEndpoint reel-item-endpoint "},_.q("div",{el:x,class:A.join(" ")},_.Tg(b.thumbnail,function(){return _.q(_.Wh,null,_.q(_.Ps,{data:b.thumbnail,alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),null)})),c?_.q(s0a,{data:b,
scrimStyle:e,useDefaultStyle:g}):null,t0a(b.badge,{badgeViewModel:{class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0}})),c&&b.menuOnTap?_.q(u0a,{data:b,inlineMetadata:c}):null,c?null:_.q(v0a,{useDefaultStyle:g,data:b}))};
s0a=function(a){var b=a.data;var c=a.scrimStyle;var d=a.useDefaultStyle;var e=_.w("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";a=d&&_.w("web_hide_primary_text_for_pivot_panel");var g={};d=_.ht("shortsLockupViewModelHostInlineMetadata",(g.shortsLockupViewModelHostMetadataRounded=!(d?e==="SHORTS_LOCKUP_STYLE_SLIM":b.style==="SHORTS_LOCKUP_STYLE_SLIM"),g.shortsLockupViewModelHostInlineMetadataShortScrim=c===3&&!_.w("enable_shorts_lockup_new_scrim"),
g.shortsLockupViewModelHostInlineMetadataShortScrimNew=c===3&&_.w("enable_shorts_lockup_new_scrim"),g.shortsLockupViewModelHostInlineMetadataMediumScrim=c===2||c===4,g.shortsLockupViewModelHostShowOverPlayer=!0,g));var k,m;e={};return _.q("div",{class:d+" image-overlay-text"},_.q("h3",{class:_.et("shortsLockupViewModelHostMetadataTitle",(e.shortsLockupViewModelHostMetadataTitleTextShadow=c===4,e)),"aria-label":b.accessibilityText},_.Tg(((k=b.overlayMetadata)==null?void 0:k.primaryText)&&!a,function(){return _.q(_.tt,
{text:b.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})})),((m=b.overlayMetadata)==null?0:m.secondaryText)?_.q(x0a,{data:b,
scrimStyle:c}):null)};
v0a=function(a){var b=a.data;var c=_.w("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";a=(a.useDefaultStyle?c==="SHORTS_LOCKUP_STYLE_SLIM":b.style==="SHORTS_LOCKUP_STYLE_SLIM")?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded";var d=_.Fs({elementsCommand:b.onTap});c=_.Pl();_.bZa(c,_.Ds(b.onTap));var e=_.lt(function(u){if(d==null?0:d.onclick)d.onclick(u);return!1}),g,k,
m,n,r,t={};
return _.q("div",{class:a+" image-overlay-text","on:click":e},_.q("h3",{class:_.et("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(t.shortsLockupViewModelHostOutsideMetadataMissingTitle=!((g=b.overlayMetadata)==null?0:(k=g.primaryText)==null?0:k.content),t)),"aria-label":b.accessibilityText},_.q("a",{el:c,"on:click":e,class:"shortsLockupViewModelHostEndpoint shortsLockupViewModelHostOutsideMetadataEndpoint",title:(m=b.overlayMetadata)==null?void 0:(n=m.primaryText)==
null?void 0:n.content},_.Tg(b.overlayMetadata,function(){return _.q(_.tt,{text:b.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})}))),((r=b.overlayMetadata)==null?0:r.secondaryText)?_.q(x0a,{data:b,
className:"shortsLockupViewModelHostOutsideMetadataSubhead"}):null,b.menuOnTap?_.q(u0a,{data:b,inlineMetadata:!1}):null)};
x0a=function(a){var b=a.data;var c=a.scrimStyle;a=a.className;var d,e={};return _.q("div",{class:_.et((e.shortsLockupViewModelHostMetadataSubhead=c!==4,e.shortsLockupViewModelHostMetadataSubheadNew=_.w("enable_shorts_lockup_new_scrim"),e.shortsLockupViewModelHostMetadataSubheadTextShadow=c===4,e),a),"aria-hidden":"true"},_.q(_.tt,{text:(d=b.overlayMetadata)==null?void 0:d.secondaryText,noStyleRuns:!0}))};
u0a=function(a){var b={};b=_.ht((b.shortsLockupViewModelHostInlineMetadataMenu=a.inlineMetadata,b.shortsLockupViewModelHostOutsideMetadataMenu=!a.inlineMetadata,b.shortsLockupViewModelHostShowOverPlayer=!0,b));var c={style:a.inlineMetadata?"overlay":"mono",accessibilityLabel:a.data.menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(g){g.preventDefault();g.stopPropagation();var k=_.Fs({elementsCommand:a.data.menuOnTap,forceNewState:!0});if(k==null?0:k.onclick)k.onclick(g)}},
d=wt(c,!0),e=function(){_.v().resolve(Au)("MORE_VERT",{iconSize:d})};
return _.q("div",{class:b},_.w("web_wiz_button_shape")?_.q(vv,{data:c,iconName:"MORE_VERT"}):_.q(Sl,null,function(){zt(c,e)}))};
wv=function(a,b,c,d){return a&&b?a!==c||b!==d?(_.rv(Error("Kh"),void 0,void 0,{"stored-slot":a,"stored-layout":b,"latest-slot":c,"latest-layout":d}),!1):!0:!1};
y0a=function(a,b,c){return a({targetId:b},function(d){return c.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},d,{header:c.continuationItems?c.continuationItems[0]:void 0}):Object.assign({},d,{contents:c.continuationItems?c.continuationItems:[]})})};
z0a=function(a,b,c,d){if(b=b.trackingParams){var e,g=(e=c.getScreenLayer)==null?void 0:e.call(c);c=_.En(g);e=_.Dn(g);if(c&&e){var k=_.ps(b);_.w("combine_ve_grafts")?a.graftServerVe(b,e,g):_.To(c,e,k);d==null||d(k)}}};
B0a=function(a){var b;return((b=A0a.get(a))==null?void 0:b.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
E0a=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:C0a.get(b.managerLayer)||"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=D0a(a);a=b.slotFulfillmentTriggers;c.debugData.fulfillmentTriggerData=[];a=_.h(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(D0a(d.value));
b=b.slotExpirationTriggers;c.debugData.expirationTriggerData=[];b=_.h(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(D0a(a.value))}return c};
D0a=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};
F0a=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=_.Df(d||[],function(e){return E0a(a,e)}),b.debugData=Object.assign({},c&&c.length>0?{associatedSlotId:c}:{},d.length>0?{slots:d}:{}));
return b};
G0a=function(a){return xv(a.opportunityAdapterMap).concat(xv(a.triggerAdapterMap)).concat(xv(a.fulfillmentAdapterFactoryMap)).concat(xv(a.slotAdapterFactoryMap)).concat(xv(a.layoutRenderingAdapterFactoryMap))};
xv=function(a){var b=[];a=_.h(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.isAdsControlFlowEventListener&&b.push(c);return b};
zv=function(a){var b=a.slotId,c=a.slotType,d=a.slotPhysicalPosition;return b===void 0?new yv("Cannot construct a slot due to the missing id.",{adSlotMetadata:a}):c===void 0?new yv("Cannot construct a slot due to the missing type.",{adSlotMetadata:a}):d===void 0?new yv("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:a}):{slotId:b,slotType:c,slotPhysicalPosition:d,managerLayer:"external",adSlotLoggingData:a.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new H0a}};
I0a=function(a){var b=a.layoutId,c=a.layoutType;return b===void 0?new Av("Cannot construct a layout due to the missing id.",{adLayoutMetadata:a}):c===void 0?new Av("Cannot construct a layout due to the missing type.",{adLayoutMetadata:a}):{layoutId:b,layoutType:c,managerLayer:"external",adLayoutLoggingData:a.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new H0a,interactionLoggingAdsClientData:{}}};
J0a=function(a){if((a=a.value)&&a.querySelector("img")){var b=a.querySelector("img");b.addEventListener("error",function(){bSa(b.src).then(function(c){(c=Jd(c).toString())?b.src=c:b.removeAttribute("src")}).catch(function(){b.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
Cv=function(a,b){if(b&&(K0a(b.viewableCommand)||K0a(b.endOfSessionCommand))){a=a.value;var c=L0a(b==null?void 0:b.viewableCommand);b=L0a(b==null?void 0:b.endOfSessionCommand);if(!Bv){var d=_.Fi("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);Bv=new M0a((d==null?void 0:d.length)===2?d[1]:null)}N0a(Bv,a);O0a(Bv,a,c,b)}};
Dv=function(a){Bv&&N0a(Bv,a.value)};
K0a=function(a){a=_.Ds(a);return!(a==null||!a.loggingUrls)&&a.loggingUrls.length>0};
L0a=function(a){if(!a)return[];var b=[],c,d;((d=(c=_.Ds(a))==null?void 0:c.loggingUrls)!=null?d:[]).forEach(function(e){e.baseUrl&&b.push(e.baseUrl)});
return b};
P0a=function(a){return a.shorts.isDesktopSmallWidth};
_.Q0a=function(a){return a.shorts.isWatchWhileMode};
_.Ev=function(a){return a.shorts.isFullscreen};
_.Fv=function(a){return a.shorts.isShortsPipActive};
S0a=function(a){var b,c;if(a=(b=_.y(a.reelsAdCardButtoned,R0a))==null?void 0:(c=b.animatedRenderingConfig)==null?void 0:c.easeOutSeconds)return a+"s"};
Gv=function(a,b){return a.year===b.year&&a.month===b.month&&a.day===b.day};
Hv=function(a,b){return a.year!==b.year?a.year<b.year:a.month!==b.month?a.month<b.month:a.day<b.day};
T0a=function(a){return{year:a.getFullYear(),month:a.getMonth(),day:a.getDate()}};
U0a=function(a){var b=YFa;b=b===void 0?YFa:b;b(new Date(a.year,a.month,a.day))};
Iv=function(a){return T0a(new Date(Number(a.seconds)*1E3))};
V0a=function(a){return a.year!==void 0&&a.month!==void 0&&a.day!==void 0};
W0a=function(a){return a.start!==void 0&&a.end!==void 0};
X0a=function(a){return W0a(a)?a.start:a};
Y0a=function(a){return W0a(a)?a.end:void 0};
$0a=function(a,b){for(var c=[],d=new Date(a.start.year,a.start.month);d.getFullYear()<a.end.year||d.getFullYear()===a.end.year&&d.getMonth()<=a.end.month;){var e=c,g=e.push,k=d.getFullYear(),m=d.getMonth(),n=a,r=b,t=void 0,u=[],x=Object.freeze({extraCssClass:"invisible"}),A=new Date(k,m),C=T0a(A);A=A.getDay();for(var F=T0a(new Date);C.month===m;){A!==Z0a&&t||(t=Array.from({length:7}).fill(x),u.push(t));var J={date:{year:k,month:m,day:C.day},extraCssClass:"",debugClass:""};J.extraCssClass=r(J.date,
C,F,n).trim();t[(A-Z0a+7)%7]=J;C=C.day===T_a(C.year,C.month)?C.month===11?{year:C.year+1,month:0,day:1}:{year:C.year,month:C.month+1,day:1}:{year:C.year,month:C.month,day:C.day+1};A=(A+1)%7}g.call(e,{weeks:u,monthLabel:Jv.SHORTMONTHS[m]+" "+k,year:k,month:m,monthLabelExtraCssClass:u[0][2]===x?"shift-down-label":""});d.setMonth(d.getMonth()+1)}return c};
a1a=function(a,b){b=b.months.findIndex(function(c){return c.year===a.year&&c.month===a.month});
return b>=0?b:void 0};
c1a=function(a,b){a:{var c=c===void 0?[2,3]:c;c=_.h(c);for(var d=c.next();!d.done;d=c.next()){var e=new Date;if((new b1a(d.value)).parse(b,e,{validate:!0})){e.setHours(0,0,0,0);b=e;break a}}b=null}if(!b)return{isValid:!1,value:void 0};b=T0a(b);c=a.end;return Hv(b,a.start)||Hv(c,b)?{isValid:!1,value:void 0}:{isValid:!0,value:b}};
h1a=function(a){var b=d1a;b=b===void 0?e1a:b;var c=a.columnsToShow||[],d=f1a(a.columnDimensions,a.columnsToShow,a.leftFloatingColumns,b);return c.map(function(e,g){var k=a.columns[e];if(k===void 0)throw Error("Qh");var m=d?d[g]:"";var n=a.getCustomTooltip?a.getCustomTooltip(e,k.headerTooltipParagraphs):k.headerTooltipParagraphs;var r=g1a(a,e);return{type:e,index:g,style:m,classes:r,headerName:k.headerName||"",headerIcon:k.headerIcon,headerTooltipParagraphs:n||[],headerTooltipHelpContext:k.headerTooltipHelpContext,
sortOrders:k.sortOrders||[],selectionState:k.isSelectionCheckbox?a.selectionState:void 0}})};
g1a=function(a,b){var c=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],d=a.columns[b];if(d===void 0)return"";var e=c.includes("DEFAULTS")&&d.cssClass?[d.cssClass]:[];if(c.includes("SORTING")){d.sortOrders&&d.sortOrders.length&&e.push("sortable");if(a.sorting&&a.sorting.columnType===b)a:switch(a.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var g="column-sorted";break a;default:g=""}else g="";g&&e.push(g)}c.includes("FLOATING")&&(b=a.columnsToShow.indexOf(b),a.leftFloatingColumns&&b<a.leftFloatingColumns&&
e.push("floating-column"),a.leftFloatingColumns&&b===a.leftFloatingColumns-1&&e.push("last-floating-column"));c.includes("RIGHT_ALIGN")&&d.rightAlignHeader&&e.push("right-align");return e.filter(function(k){return k}).join(" ")};
f1a=function(a,b,c,d){c=c===void 0?0:c;d=d===void 0?e1a:d;if(a){var e=[],g=0;i1a(a,b,d).forEach(function(k,m){var n="min-width:"+k.minWidth+"px;padding-left:"+k.paddingLeft+"px;padding-right:"+k.paddingRight+"px;flex:"+k.flexGrow+" 0 "+k.minWidth+"px;";k.maxWidth!==Infinity&&(n=[n,"max-width:"+k.maxWidth+"px;"].join(""));g>0&&m<c&&(n=[n,"left:"+g+"px;"].join(""));e.push(n);g+=k.minWidth+k.paddingLeft+k.paddingRight});
return e}};
i1a=function(a,b,c){c=c===void 0?e1a:c;return b.map(function(d,e){d=a&&a[d]||{};var g=e===0?c.paddingLeftFirstColumn:c.padding;d.paddingLeft!==void 0&&(g=d.paddingLeft);e=e===b.length-1?c.paddingRightLastColumn:c.padding;d.paddingRight!==void 0&&(e=d.paddingRight);return{paddingLeft:g,paddingRight:e,minWidth:d.minWidth!==void 0?d.minWidth:c.minWidth,maxWidth:d.maxWidth!==void 0?d.maxWidth:c.maxWidth,flexGrow:d.flexGrow!==void 0?d.flexGrow:c.flexGrow}})};
j1a=function(a){var b=a.reduce(function(d,e){var g=e.columnId,k={};e.headerText&&(k.headerName=_.Wp(e.headerText));e.rightAlignHeader&&(k.rightAlignHeader=e.rightAlignHeader);var m;if((m=e.headerIcon)==null?0:m.iconType)k.headerIcon=_.es(e.headerIcon.iconType);d[g]=k;return d},{}),c=a.filter(function(d){return!d.hideColumn}).map(function(d){return d.columnId});
a=a.filter(function(d){return!!d.dimensions}).reduce(function(d,e){d[e.columnId]=e.dimensions;
return d},{});
return{columns:b,columnsToShow:c,columnDimensions:a}};
_.k1a=function(a){return a?a.simpleText?a.simpleText:a.runs?a.runs.map(function(b){return b.text}).join(""):"":""};
l1a=function(a,b){if(!b)return a.text?_.k1a(a.text):void 0};
m1a=function(a,b){return function(c){b==null||b(c,a)}};
_.n1a=function(a,b){var c=NZa(a.responsiveSize),d;a=!((d=a.responsiveMap)==null||!d.some(function(e){return e.containerSize==="CONTAINER_SIZE_NARROW"&&e.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:b,sizing:c,enableFullBleedForSingleCol:!1,isCompactList:c==="COMPACT"&&a}};
o1a=function(a,b){return _.np(a.entities,"votingEntity",b)};
p1a=function(a){if(a){var b;return((b=_.v().resolve(_.Xi(_.Ks)))==null?0:b())?a.darkTheme:a.lightTheme}};
q1a=function(a,b,c){return _.q(_.Wh,null,Vja(c,[[0,function(){return _.q("h2",{class:b},a)}],
[1,function(){return _.q("h3",{class:b},a)}],
[2,function(){return _.q("h4",{class:b},a)}]],function(){return _.q("h2",{class:b},a)}))};
r1a=function(a){var b=["shelf-header-layout-wiz"];a.disableHorizontalPadding&&b.push("shelf-header-layout-wiz--disable-horizontal-padding");a.disableVerticalPadding&&b.push("shelf-header-layout-wiz--disable-vertical-padding");a.useResponsiveLayout&&(b.push("shelf-header-layout-wiz--responsive"),a.forceSmallLayout&&b.push("shelf-header-layout-wiz--narrow"));a.isOverlay&&b.push("shelf-header-layout-wiz--is-overlay");a.onClick&&b.push("shelf-header-layout-wiz--tappable");var c=["shelf-header-layout-wiz__title"];
a.forceSmallLayout&&c.push("shelf-header-layout-wiz__title--small-title");var d=["shelf-header-layout-wiz__leading-image"];a.circularImage&&d.push("shelf-header-layout-wiz__leading-image--circular-image");var e=_.lt(function(g){var k;(k=a.onClick)==null||k.call(a,g)});
return _.q("yt-shelf-header-layout",{class:b.join(" "),"on:click":e,tabindex:a.onClick?0:void 0},a.leadingIcon?_.q("div",{class:"shelf-header-layout-wiz__leading-icon"},_.q(_.qt,{icon:a.leadingIcon})):a.leadingImage?_.q("div",{class:d.join(" ")},a.leadingImage()):_.q(_.Wh,null),_.q("div",{class:"shelf-header-layout-wiz__label-container"},a.superlabel?_.q("div",{class:"shelf-header-layout-wiz__superlabel"},a.superlabel()):_.q(_.Wh,null),_.q("div",{class:"shelf-header-layout-wiz__title-row"},q1a(a.title(),
c.join(" "),a.tagLevel),_.Tg(a.detail,function(){return _.q("div",{class:"shelf-header-layout-wiz__detail"},a.detail())})),a.sublabel?_.q("div",{class:"shelf-header-layout-wiz__sublabel"},a.sublabel()):_.q(_.Wh,null)),a.trailingActions?_.q("div",{class:"shelf-header-layout-wiz__trailing-actions"},a.trailingActions()):_.q(_.Wh,null))};
s1a=function(a){var b=_.y(a==null?void 0:a.avatar,_.cv),c,d=(c=a==null?void 0:a.image)!=null?c:_.jv(a==null?void 0:a.themedImage);return _.q(_.Wh,null,_.Tg(d,function(){return _.q(_.Ps,{data:d,alt:"",preserveWidth:!0,preserveHeight:!0})}),_.Tg(b,function(){return _.q(_.Kv,{data:b})}))};
v1a=function(a){var b=_.y(a.bottomBadge,t1a),c=b&&a.sublabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.q(_.Wh,null,_.Tg(b,function(){return b&&_.q(u1a,{data:b,class:c})}),_.Tg(a.sublabel,function(){return _.q(_.tt,{text:a.sublabel})}))};
w1a=function(a){var b=_.y(a.topBadge,t1a),c=b&&a.superlabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.q(_.Wh,null,_.Tg(b,function(){return b&&_.q(u1a,{data:b,class:c})}),_.Tg(a.superlabel,function(){return _.q(_.tt,{text:a.superlabel})}))};
y1a=function(a){var b=a.data;var c=a.disableHorizontalPadding;var d=a.disableVerticalPadding;var e=a.forceSmallLayout;var g=a.useResponsiveLayout;a=a.isOverlay;var k=b.sublabel||b.bottomBadge,m=b.superlabel||b.topBadge,n=_.Xu(b.rendererContext);c={title:function(){return _.q(_.tt,{text:b.headline})},
sublabel:k&&function(){return v1a(b)},
superlabel:m&&function(){return w1a(b)},
leadingImage:b.leadingAccessory&&function(){return s1a(b.leadingAccessory)},
trailingActions:b.trailingActions&&function(){return _.q(_.Wh,null,x1a(b.trailingActions))},
disableHorizontalPadding:c,disableVerticalPadding:d,forceSmallLayout:e,useResponsiveLayout:g,isOverlay:a,onClick:n?function(r){var t=_.Wu(b.rendererContext);t&&_.Es(t,{form:{element:r.target,event:r}})}:void 0};
d=(d=p1a(b==null?void 0:b.backgroundColor))?"background-color: "+_.Dq(d)+";":void 0;return _.q("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:d},_.q(r1a,Object.assign({},c)))};
z1a=function(a,b){if(a.simpleText)return Object.assign({},a,{simpleText:Is(a.simpleText,b)});if(!a.runs)return a;for(var c=Object.assign({},a,{runs:[]}),d=0,e=_.h(a.runs),g=e.next();!g.done;g=e.next())if(g=g.value,g.text)if(d+g.text.length<=b)c.runs.push(g),d+=g.text.length;else return c.runs.push(Object.assign({},g,{text:Is(g.text,b-d)})),c;return a};
A1a=function(a,b){return _.np(a.entities,"chipBarStateEntity",b)};
B1a=function(a,b){return _.np(a.entities,"chipEntity",b)};
D1a=function(a,b,c,d){return function(){var e=C1a.has(a.displayType)&&a.selected,g=e&&a.deselectCommand?a.deselectCommand:a.tapCommand;!g||e&&d||_.Gs(g,{form:{element:b==null?void 0:b.value}});c==null||c()}};
E1a=function(a,b){return{triggeringElement:a,onDwellTriggeredFn:function(){var c={triggeringElement:a,loadVideoPreviewEventData:b},d=document.querySelector(".video-preview");d&&d.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:c}))},
onDwellEndFn:function(){var c=document.querySelector(".video-preview");c&&c.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
F1a=function(a,b){var c=_.v().resolve(_.Xi(wZa)),d=function(){var e=b();return c&&e?E1a(a.value,e):null};
_.wh(function(){var e=d();c&&e&&Promise.resolve().then(function(){c.registerElement(e)});
_.zh(function(){c&&e&&Promise.resolve().then(function(){c.unregisterElement(e)})})},"b8bYLd")};
H1a=function(a){var b=a.dataset.resizeObserverId;if(b)return b;b=""+G1a++;return a.dataset.resizeObserverId=b};
I1a=function(a,b){var c=H1a(a);Lv.has(c)||Lv.set(c,new Set);Lv.get(c).add(b);Mv.has(c)&&b(Object.assign({},{target:a},Mv.get(c)))};
J1a=function(a){a=_.h(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=H1a(b.target),d=Object.assign({},{target:b.target},Mv.get(c));if(d!=null&&d.contentRect?d.contentRect.width!==b.contentRect.width||d.contentRect.height!==b.contentRect.height:1)for(Mv.set(c,{borderBoxSize:b.borderBoxSize,contentBoxSize:b.contentBoxSize,contentRect:b.contentRect,devicePixelContentBoxSize:b.devicePixelContentBoxSize}),c=_.h(Lv.get(c)||[]),d=c.next();!d.done;d=c.next())d=d.value,d(b)}};
L1a=function(){return Nv?Nv:Nv=new K1a(J1a)};
M1a=function(a,b){var c=H1a(a);Lv.has(c)&&(Lv.get(c).delete(b),Lv.get(c).size===0&&(Lv.delete(c),Mv.delete(c),Nv.unobserve(a),delete a.dataset.resizeObserverId));Lv.size===0&&Nv&&(Nv.disconnect(),Nv=void 0)};
O1a=function(a,b){var c=_.v().resolve(Xl);return N1a.map(function(d){return c.observe(a,b,d)})};
P1a=function(a){var b=_.v().resolve(Xl);a.forEach(function(c){b.unobserveByKey(c)})};
S1a=function(a){var b=Object.assign({},Q1a,{canHaveZeroSize:!1}),c=_.h(tla()),d=c.next().value,e=c.next().value,g=function(k){var m=k.contentRect.height;if((k=k.contentRect.width)||m||b.canHaveZeroSize)d.width()===k&&d.height()===m||e(d,{height:m,width:k})};
_.wi(function(){var k=a instanceof HTMLElement?a:a.value,m=R1a(g,b.throttleMs),n=[];b.useVisibilityObserver&&(n=O1a(k,function(r,t){requestAnimationFrame(function(){t==="visible"?(I1a(k,m),L1a().observe(k)):M1a(k,m)})}));
n.length||(I1a(k,m),L1a().observe(k));_.zh(function(){n.length&&(P1a(n),n.length=0);M1a(k,m)})});
return d};
U1a=function(a){var b=a.data;var c=a.callback;var d=a.enableSingleChipSelection;a={};a=_.h(pu(b.autoselectedChipIndex!=null?(a[b.autoselectedChipIndex]=!0,a):{}));var e=a.next().value,g=a.next().value,k=b.isHorizontallyScrollable;a={};return _.q("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},(b==null?void 0:b.title)&&_.q("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},b.title),_.q("div",{class:"ytChipsShelfViewModelChipsShelfContent"},T1a(b.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow"}}),
_.q("div",{class:_.et("ytChipsShelfViewModelChipsScrollContainer",(a.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=function(){return!!k},a))},(b.contents||[]).map(function(m,n){return _.q("div",{class:"ytChipsShelfViewModelChipWrapper"},T1a(m,{chipViewModel:{callback:function(r,t){if(d){var u={};
g((u[n]=t,u))}else u={},g(Object.assign({},e,(u[n]=t,u)));c==null||c(r,t,n)},
disableDeselection:d,selected:!!e[n]}}))})),T1a(b.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow"}})))};
W1a=function(a,b,c,d,e){a=b?a.switchOffCommand:a.switchOnCommand;if(d&&e)V1a(a,c,e);else{var g,k;(g=_.Fs({elementsCommand:a}))==null||(k=g.onclick)==null||k.call(g,c)}};
V1a=function(a,b,c){a=_.Fs({elementsCommand:a,additionalCommandArgs:{commandController:{onSuccess:function(){c(!1)},
onServerError:function(){c(!1)}}}});
if(a==null?0:a.onclick)a.onclick(b),c(!0)};
Y1a=function(a){if(a)return _.y(a,X1a)};
Z1a=function(a){a=a.selectElementClass;var b={};a=_.ht("checkbox-shape-wiz__checkbox",a,(b["checkbox-shape-wiz__checkbox--checkbox-default-style"]=!a,b));return _.q("div",{class:a,"aria-hidden":"true"},_.q(_.qt,{icon:"BOX_EMPTY"}),_.q(_.qt,{icon:"BOX_CHECK",active:!0}))};
$1a=function(a){var b=a.name;var c=a.onChange;var d=a.onClick;var e=a.checked===void 0?!1:a.checked;var g=a.labelRenderable;var k=a.hasLeadingLabel;var m=a.labelClass;var n=a.isCompact;var r=a.selectElementClass;var t=a.disableHorizontalPadding;a="checkbox"+_.Ov(_.Pv);var u=_.Pl(),x=_.lt(function(F){d==null||d(F);return!1}),A=_.lt(function(F){u.value.checked=e;
c==null||c(F);return!1}),C={};
m=_.ht("checkbox-shape-wiz",m,(C["checkbox-shape-wiz--compact"]=!!n,C["checkbox-shape-wiz--disable-horizontal-padding"]=!!t,C));return _.q("checkbox-shape",null,_.q("label",{class:m},_.q("input",{el:u,class:"checkbox-shape-wiz__input",id:a,checked:e,name:b,type:"checkbox","on:change":A,"on:click":x}),_.Tg(!k,function(){return Z1a({isLeading:!0,selectElementClass:r})}),_.Tg(g,function(){return _.q("div",{class:"checkbox-shape-wiz__label"},g==null?void 0:g())}),_.Tg(k,function(){return Z1a({isLeading:!1,
selectElementClass:r})})))};
a2a=function(a){var b=a.useCheckIcon===void 0?!1:a.useCheckIcon;var c=a.selectElementClass;a=b?"CHECK":"CIRCLE";var d=b?"CHECK":"CIRCLE_FILLED",e={};c=_.ht("radio-shape-wiz__radio",c,(e["radio-shape-wiz__radio--check-icon"]=!!b,e["radio-shape-wiz__radio--radio-default-style"]=!c,e));return _.q("div",{class:c,"aria-hidden":"true"},_.q(_.qt,{icon:a}),_.q(_.qt,{icon:d,active:!b}))};
b2a=function(a){function b(){var V;((V=_.v().resolve(_.Xi(_.Bu)))==null?0:V.isKeyBoardInUse())&&J.value.classList.add("radio-shape-wiz__label-container--keyboard-focused")}
function c(){J.value.classList.remove("radio-shape-wiz__label-container--keyboard-focused")}
var d=a.name;var e=a.onChange;var g=a.onClick;var k=a.checked===void 0?!1:a.checked;var m=a.labelRenderable;var n=a.useCheckIcon;var r=a.hasLeadingLabel;var t=a.labelClass;var u=a.isCompact;var x=a.selectElementClass;var A=a.ariaLabel;var C=a.className;a=yi(function(){return"radio"+_.Ov(_.Pv)});
var F=_.Pl(),J=_.Pl(),I=_.lt(function(V){F.value.checked=k;e==null||e(V);return!1}),R=_.lt(function(V){g==null||g(V);
return!1}),da=["radio-shape-wiz"];
C&&da.push(C);C={};t=_.ht("radio-shape-wiz__label-container",t,(C["radio-shape-wiz--compact"]=!!u,C));ui(function(){document.activeElement===F.value&&b()});
_.wi(function(){var V=F.value;V.addEventListener("focusin",b);V.addEventListener("focusout",c);return function(){V.removeEventListener("focusin",b);V.removeEventListener("focusout",c)}});
return _.q("radio-shape",{class:da.join(" ")},_.q("input",{el:F,class:"radio-shape-wiz__input",id:a,"prop:checked":k,name:d,type:"radio","on:change":I,"on:click":R,"aria-label":A}),_.q("label",{class:t,for:a,el:J},_.Tg(!r,function(){return a2a({checked:k,useCheckIcon:n,isLeading:!0,selectElementClass:x})}),_.Tg(m,function(){return _.q("div",{class:"radio-shape-wiz__label",
"aria-hidden":A?"true":"false"},m==null?void 0:m())}),_.Tg(r,function(){return a2a({checked:k,
useCheckIcon:n,isLeading:!1,selectElementClass:x})})))};
d2a=function(a){var b=a.data;var c=a.isLeading;var d=a.hideSelectionTextChevron;if(c&&(b.leadingImage||b.leadingAccessory)||!c&&(b.trailingImage||b.trailingButton||b.trailingButtons||b.selectionText)){var e=_.ht("yt-list-item-view-model-wiz__button-container");a={};var g=_.ht("yt-list-item-view-model-wiz__image-container",(a["yt-list-item-view-model-wiz__leading"]=c,a["yt-list-item-view-model-wiz__trailing"]=!c,a)),k=c?b.leadingImage:b.trailingImage,m=_.ht("yt-list-item-view-model-wiz__accessory",
"yt-list-item-view-model-wiz__image");a={};var n=_.ht("yt-list-item-view-model-wiz__accessory",(a["yt-list-item-view-model-wiz__leading"]=c,a["yt-list-item-view-model-wiz__trailing"]=!c,a)),r=!!b.selectionText;a:switch(b.listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":a="expand_more";break a;default:a="chevron_right"}var t=a;return function(){var u;return _.q(_.Wh,null,_.Tg(k,function(){return _.q("div",{class:g,"aria-hidden":"true"},_.q(_.Ps,{data:k,alt:"",
preserveWidth:!0,preserveHeight:!0,className:m}))}),_.Tg(c&&b.leadingAccessory,function(){return _.q("div",{class:g},c2a(b.leadingAccessory,{avatarViewModel:{avatarButtonCustomClassName:m}}))}),_.Tg(!c&&b.trailingButton,function(){return _.q("div",{class:e},c2a(b.trailingButton,{buttonViewModel:{className:n}}))}),_.Tg(!c&&((u=b.trailingButtons)==null?void 0:u.buttons),function(){var x;
return _.q("div",{class:e},c2a((x=b.trailingButtons)==null?void 0:x.buttons,{buttonViewModel:{className:n},accountLinkButtonViewModel:{className:n},switchButtonViewModel:{className:n},subscribeButtonViewModel:{isOverlay:!1,animateWidth:!1}}))}),_.Tg(!c&&r,function(){return _.q(_.Wh,null,_.q(_.tt,{text:b.selectionText,
className:_.ht("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.Tg(!d,function(){return _.q(_.qt,{icon:t,className:"yt-list-item-view-model-wiz__chevron-icon"})}))}))}}};
e2a=function(a){return a.title||a.subtitle?function(){return _.q("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.q("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.Tg(a.title,function(){return _.q(_.tt,{text:a.title,className:"yt-list-item-view-model-wiz__title"})})),_.Tg(a.subtitle,function(){return _.q(_.tt,{text:a.subtitle,
className:"yt-list-item-view-model-wiz__subtitle"})}))}:function(){return _.q(_.Wh,null)}};
f2a=function(a){function b(){var Ia;((Ia=_.v().resolve(_.Xi(_.Bu)))==null?0:Ia.isKeyBoardInUse())&&fa.value.classList.add("yt-list-item-view-model-wiz--keyboard-focused")}
function c(){fa.value.classList.remove("yt-list-item-view-model-wiz--keyboard-focused")}
var d=a.data;var e=a.isMenuItem;var g=a.isCompact;var k=a.onTap;var m=a.trailingAccessory;var n=a.hideSelectionTextChevron;var r=a.disabled;var t=a.inPopup;var u=a.disableHorizontalPadding;var x=a.isOverlay;a=VVa(function(Ia){a:if((d==null?0:d.entitySelectorType)&&(d==null?0:d.entityKey))switch(d.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":Ia=_.TTa(Ia,d.entityKey);Ia=Ia==null?void 0:Ia.value;var db=!1;Ia==="CAPTIONS_UNAVAILABLE"&&(db=!0,Ia=
"");Ia=Object.assign({},!!Ia&&{selectionText:{content:Ia}},{isSelected:!!Ia},!!Ia&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:db});break a;default:Ia={}}else Ia={};return Ia});
var A=_.w("enable_web_shorts_captions_language_command")?Object.assign({},d,a):d;a=!(A.isSelected===void 0||!A.selectionStyle||A.selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED");var C=(_.Xu(A.rendererContext)||k)&&!a,F=_.Xu(A.rendererContext)||a;r=!!A.isDisabled||!!r;var J={};x=_.ht("yt-list-item-view-model-wiz",(J["yt-list-item-view-model-wiz--is-overlay"]=!!x,J));J={};var I=_.ht("yt-list-item-view-model-wiz__label",(J["yt-list-item-view-model-wiz__container"]=!a,J["yt-list-item-view-model-wiz__container--disabled"]=
r,J["yt-list-item-view-model-wiz__container--has-subtitle"]=!!A.subtitle,J["yt-list-item-view-model-wiz__container--compact"]=!!g,J["yt-list-item-view-model-wiz__container--tappable"]=C,J["yt-list-item-view-model-wiz__container--in-popup"]=!!t,J));r={};r=_.ht("yt-list-item-view-model-wiz__container",(r["yt-list-item-view-model-wiz__container--tappable"]=F,r["yt-list-item-view-model-wiz__container--compact"]=!!g,r["yt-list-item-view-model-wiz__container--in-popup"]=!!t,r["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=
!!u,r));J=A.leadingImage||A.leadingAccessory;var R=_.ht("yt-list-item-view-model-wiz__image-container",J?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"),da=_.w("apply_button_role_to_list_item");t=_.Pl();var V=_.Pl(),fa=da?V:t,aa=function(){var Ia,db,lb;return _.q(_.Wh,null,(Ia=d2a({data:A,isLeading:!0,hideSelectionTextChevron:!!n}))==null?void 0:Ia(),(db=e2a(A))==null?void 0:db(),m?_.q("div",{class:"yt-list-item-view-model-wiz__trailing"},m):(lb=d2a({data:A,isLeading:!1,
hideSelectionTextChevron:!!n}))==null?void 0:lb())},ma=function(){return da?_.q("div",{class:I,
el:V,role:F||C?"button":void 0,tabindex:k||C?0:void 0,"on:keydown":ya,"on:click":Ca},aa()):_.q("div",{class:I,el:V},aa())},Ba={labelRenderable:ma,
isCompact:g,checked:A.isSelected,hasLeadingLabel:!!J,labelClass:r,selectElementClass:R,disableHorizontalPadding:!!u};_.Yu(t,A.rendererContext);var Ca=_.lt(function(Ia){return void(k==null?void 0:k(Ia))}),ya=_.Uu();
_.wi(function(){C&&(fa.value.addEventListener("focusin",b),fa.value.addEventListener("focusout",c));return function(){fa.value&&C&&(fa.value.removeEventListener("focusin",b),fa.value.removeEventListener("focusout",c))}});
g=_.lt(function(){return!1});
return _.q("yt-list-item-view-model",{el:t,class:x,role:e?"menuitem":"listitem",tabindex:da?void 0:k||C?0:void 0,"on:keydown":da?g:ya,"on:click":da?g:Ca},_.Tg(a,function(){return Vja(A.selectionStyle,[["LIST_ITEM_SELECTION_STYLE_CHECKBOX",function(){return _.q($1a,Object.assign({},Ba))}],
["LIST_ITEM_SELECTION_STYLE_RADIO",function(){return _.q(b2a,Object.assign({},Ba))}],
["LIST_ITEM_SELECTION_STYLE_DEFAULT",function(){return _.q(b2a,Object.assign({},Ba,{useCheckIcon:!0}))}]],function(){return ma()})},function(){return ma()}))};
k2a=function(a,b,c){if(b)return[g2a];switch(a){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[Qv];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return c?[Qv]:[h2a,Qv];case "TRANSFER_STATE_PAUSED_BY_USER":return[i2a,Qv];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[j2a,Qv];default:return[g2a]}};
l2a=function(a,b,c,d){return k2a(a,b,d).map(function(e){var g=e.text,k=e.iconType,m=e.videoAction;e=e.playlistAction;g=g?{content:g}:void 0;k=k&&{sources:[{clientResource:{imageName:k}}]};var n=(0,_.Cf.unsafeClone)(c);if(n){var r=_.y(n,_.qu),t=_.y(n,_.ru);r&&m?r.action=m:t&&e&&(t.action=e)}return{title:g,leadingImage:k,rendererContext:n&&{commandContext:{onTap:{innertubeCommand:n}}}}})};
m2a=function(a){a=_.Wu(a.rendererContext);var b;return(b=_.y(a,_.ru))==null?void 0:b.playlistId};
n2a=function(a){var b;return(b=a.listItems)==null?void 0:b.some(function(c){var d;return _.Xu((d=_.y(c,_.yu))==null?void 0:d.rendererContext)})};
_.p2a=function(a){var b=a.data;var c=a.isCompact;var d=a.hideSelectionTextChevron;var e=a.inPopup;a=a.isOverlay;var g=n2a(b)&&e;return _.q("yt-list-view-model",{class:"yt-list-view-model-wiz",role:g?"menu":"list"},o2a(b.listItems,{listItemViewModel:{isMenuItem:g,isCompact:c,hideSelectionTextChevron:d,inPopup:e,isOverlay:a},downloadListItemViewModel:{isMenuItem:g,isCompact:c,inPopup:e}}))};
Rv=function(a){var b=_.v().resolve(_.Xi(_.Ks));return b!=null&&b()?a.darkThemeColorPalette:a.lightThemeColorPalette};
Tv=function(a){return{primaryTextColor:Sv(a,0),secondaryTextColor:Sv(a,1),optionColor:Sv(a,2),backgroundColor:Sv(a,3),videoBackgroundColor:Sv(a,4)}};
Sv=function(a,b){if(a){switch(b){case 0:a=a.primaryTitleColor;break;case 1:a=a.secondaryTitleColor;break;case 2:a=a.surgeColor;break;case 3:a=a.section2Color;break;case 4:a=a.section3Color;break;default:return}if(a)return _.Cq(a)}};
q2a=function(a){return a?_.Dq(a):""};
r2a=function(a){return(a==null?void 0:a.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
s2a=function(a,b){var c;return"linear-gradient(to bottom, "+((c=b==null?void 0:b.map(function(d){var e=a?d.darkThemeColor:d.lightThemeColor;return e?_.Dq(e)+" "+((d==null?void 0:d.startLocation)||0)*100+"%":"transparent"}))==null?void 0:c.join(", "))+")"};
t2a=function(a){var b=a.className;var c=a.data;var d=a.isOverlay;var e=a.maxLinesOverride;var g=a.useMediumText;a=_.Pl();var k=c.description,m=c.alwaysShowTruncationText,n=c.truncationText,r=c.maxLines,t,u=!((t=_.y(c.rendererContext,kYa))==null||!t.onTap),x,A,C=(A=(x=_.y(c.rendererContext,_.$u))==null?void 0:x.label)!=null?A:"";t=_.h(pu(!1));var F=t.next().value,J=t.next().value;_.Yu(a,c.rendererContext);t=_.lt(function(){c.expandOnTap&&J(!F);return!1});
x={};return _.q("yt-description-preview-view-model",{el:a,class:_.ht("yt-description-preview-view-model-wiz",b,(x["yt-description-preview-view-model-wiz--clickable"]=u,x["yt-description-preview-view-model-wiz--is-overlay"]=d,x)),"on:click":t},_.Tg(k,function(){var I={};return F?_.q("div",{class:_.ht("yt-description-preview-view-model-wiz__description",(I["yt-description-preview-view-model-wiz__description--medium-text"]=g,I))},_.q(_.tt,{text:k})):_.q(D_a,{text:k,alwaysShowTruncationText:m,truncationText:n,
maxLines:e!=null?e:r,isOverlay:d,accessibilityLabel:C,useMediumText:g})}))};
w2a=function(a,b,c,d,e){var g=!a.metadata;var k=b?_.y(a.heroImage,u2a):_.y(a.animatedImage||a.image,u2a);if(!k)return{size:0};a=k.style;var m=k.layoutMode;k=d_a(c_a(k));if(b)b=v2a(c,a,m,k,e);else a:if(g)b=c===1?{size:48}:{size:72};else switch(c){case 1:b={size:72};break a;case 2:b={size:120};break a;default:b=d<4?{size:120}:{size:160}}return b};
v2a=function(a,b,c,d,e){if(!((d==null?0:d.height)&&(d==null?0:d.width)))return{size:0};var g=d.width;d=d.height;if(e)return b==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||b==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&g>d?{size:312/a_a}:b==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(c!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||a!==1&&a!==2||b!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&b!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&b!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(b==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||b==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||d===g)switch(a){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(b==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||d>g)switch(a){case 1:case 3:return{size:240*$Za};default:return{size:360*$Za}}switch(a){case 1:case 2:return{size:1/a_a*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.x2a=function(a){if(!("matchMedia"in window))return _.Ki(Error("Rh")),function(){return!1};
var b=window.matchMedia(a);a=_.h(_.ih(b.matches,void 0,"jLJc8e"));var c=a.next().value,d=a.next().value,e=function(g){d(g.matches)};
b.addEventListener?(b.addEventListener("change",e),_.zh(function(){b.removeEventListener("change",e)})):b.addListener&&(b.addListener(e),_.zh(function(){b.removeListener(e)}));
return c};
y2a=function(a){return a==="IMAGE_BANNER_STYLE_INSET"||a==="IMAGE_BANNER_STYLE_UNKNOWN"};
z2a=function(){if(!("matchMedia"in window))return _.Ki(Error("Rh")),0;var a=yi(function(){return window.matchMedia("(max-width: 527.9px)")}),b=yi(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),c=yi(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),d=yi(function(){return window.matchMedia("(min-width: 1024px)")}),e=_.h(pu(a.matches)),g=e.next().value,k=e.next().value,m=_.h(pu(b.matches));
e=m.next().value;var n=m.next().value,r=_.h(pu(c.matches));m=r.next().value;var t=r.next().value;r=_.h(pu(d.matches));var u=r.next().value,x=r.next().value,A=yi(function(){return function(I){k(I.matches)}}),C=yi(function(){return function(I){n(I.matches)}}),F=yi(function(){return function(I){t(I.matches)}}),J=yi(function(){return function(I){x(I.matches)}});
_.wi(function(){a.addEventListener?(a.addEventListener("change",A),b.addEventListener("change",C),c.addEventListener("change",F),d.addEventListener("change",J)):a.addListener&&(a.addListener(A),b.addListener(C),c.addListener(F),d.addListener(J));return function(){a.removeEventListener?(a.removeEventListener("change",A),b.removeEventListener("change",C),c.removeEventListener("change",F),d.removeEventListener("change",J)):a.removeListener&&(a.removeListener(A),b.removeListener(C),c.removeListener(F),
d.removeListener(J))}});
return g?1:e?2:m?3:u?4:0};
A2a=function(a){var b=0;a=_.h([a.title,a.metadata,a.actions,a.description,a.attribution]);for(var c=a.next();!c.done;c=a.next())c.value&&b++;return b};
C2a=function(a,b,c){var d;if(a=_.y((d=_.y(a.image,B2a))==null?void 0:d.avatar,_.cv))switch(b){case 1:a.avatarImageSize="AVATAR_SIZE_XL";break;case 2:a.avatarImageSize="AVATAR_SIZE_XXL";break;default:c<4?a.avatarImageSize="AVATAR_SIZE_XXL":a.avatarImageSize="AVATAR_SIZE_XXXL"}};
_.E2a=function(a){var b=a.data;var c=a.noPadding;var d=a.enableBanner;var e=a.cinematicContainerTopbarOffset;var g=a.allowCinematicContainerOverflow;var k=a.displayAsSidebar;var m=a.displayAsPanel;a=A2a(b);var n=!!b.heroImage,r=!!b.image||!!b.animatedImage,t=!!b.background,u=k||m?1:z2a(),x=u===1,A=u===2,C=x||A,F=u===4,J=w2a(b,n,u,a,k),I={};c=_.ht((I["page-header-view-model-wiz"]=!0,I["page-header-view-model-wiz--no-padding"]=!!c,I["page-header-view-model-wiz--small-top-padding"]=x&&!b.actions||A&&
!(r||n),I["page-header-view-model-wiz--small-bottom-padding"]=C&&!b.actions,I["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=!g,I["page-header-view-model-wiz--display-as-sidebar"]=k,I["page-header-view-model-wiz--display-as-panel"]=m,I));g={};g=_.ht((g["page-header-view-model-wiz__page-header-headline"]=!0,g["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=J.allowFullWidth,g));k=C&&!J.allowFullWidth;m=(A=x&&(n||r)&&a>0)&&m;I={};m=(I["page-header-view-model-wiz__page-header-title"]=
!0,I["page-header-view-model-wiz__page-header-title--page-header-title-large"]=!A,I["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=A&&!m,I["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=m,I["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=t,I);A={};A=(A["page-header-view-model-wiz__page-header-headline-image"]=!0,A["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=
n&&C,A);var R;I={};var da=(I["page-header-view-model-wiz__page-header-banner-container"]=d,I["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=d&&((R=_.y(b.banner,_.D2a))==null?void 0:R.style)==="IMAGE_BANNER_STYLE_FULL_BLEED",I);R={};R=(R["page-header-view-model-wiz__page-header-content-metadata"]=!0,R["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=t,R);I={};I=(I["page-header-view-model-wiz__page-header-flexible-actions"]=!0,
I["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=!!b.metadata||C,I["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=!C,I);var V={};V=(V["page-header-view-model-wiz__page-header-attribution"]=!0,V["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=t,V);var fa={descriptionPreviewViewModel:{className:"page-header-view-model-wiz__page-header-description",isOverlay:t,
maxLinesOverride:x?void 0:1,useMediumText:F},dynamicTextViewModel:{className:_.ht(m)},contentPreviewImageViewModel:{className:_.ht(A),imageSizeConfig:J},contentMetadataViewModel:{layout:x?1:0,className:_.ht(R),isOverlay:t,useMediumText:F},flexibleActionsViewModel:{layout:u===1||u===2?1:0,className:_.ht(I)},attributionViewModel:{className:_.ht(V),useMediumText:F},decoratedAvatarViewModel:{className:_.ht(A)},cinematicContainerViewModel:{topbarOffset:e},flexibleContainer:{isOverlay:t}};r&&C2a(b,u,a);
return _.q("yt-page-header-view-model",{class:c},_.Tg(t,function(){return _.q("div",{class:"page-header-view-model-wiz__page-header-background"},Uv(b.background,fa))}),_.q("div",{class:"page-header-view-model-wiz__page-header-content"},_.Tg(d&&(b==null?void 0:b.banner),function(){return _.q("div",{class:_.ht(da)},Uv(b==null?void 0:b.banner,fa))}),_.q("div",{class:g},_.Tg(r,function(){return Uv((b==null?void 0:b.animatedImage)||(b==null?void 0:b.image),fa)}),_.Tg(n&&!k,function(){return Uv(b==null?
void 0:b.heroImage,fa)}),_.q("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.Tg(n&&k,function(){return _.q("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},Uv(b==null?void 0:b.heroImage,fa))}),_.Tg(b==null?void 0:b.title,function(){return Uv(b==null?void 0:b.title,fa)}),_.Tg(b.metadata,function(){return Uv(b.metadata,fa)}),_.Tg(b.description&&!x,function(){return Uv(b.description,fa)}),_.Tg(b.attribution&&!C,function(){return Uv(b.attribution,
fa)}),_.Tg(b.actions&&!C,function(){return Uv(b.actions,fa)}))),_.q("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.Tg(b.description&&x,function(){return Uv(b.description,fa)}),_.Tg(b.attribution&&C,function(){return Uv(b.attribution,fa)}),_.Tg(b.actions&&C,function(){return Uv(b.actions,fa)})),_.q("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.Tg(b.bottomMetadataFlexibleContainer,function(){return Uv(b.bottomMetadataFlexibleContainer,fa)}))))};
G2a=function(a){var b,c=((b=_.v().resolve(_.Xi(_.Ks)))==null?0:b())&&a.data.darkThemeImage?a.data.darkThemeImage:a.data.image;b=_.q("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.q("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},c?_.q(_.Ps,{data:c,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),F2a(a.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));c=_.q(_.tt,{text:a.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var d=a.data;if(d.bodyText){var e=[];d=_.h(d.bodyText);for(var g=d.next();!g.done;g=d.next())e.push(_.q(_.tt,{text:g.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else e=_.q(_.Wh,null);return _.q("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},b,c,e,F2a(a.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.q(_.tt,{text:a.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.q(_.tt,{text:a.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
I2a=function(a){a=(new H2a).parse(a);return(new kn).render(a).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(b){var c=b.split(":").map(Number),d=0,e=0;if(c.length===3)c=_.h(c),d=c.next().value,e=c.next().value,c=c.next().value;else if(c.length===2)c=_.h(c),e=c.next().value,c=c.next().value;else if(c.length===1)c=_.h(c).next().value;else throw Error("Sh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(d*3600+e*60+c)+'" role="button">'+b+"</span>"})};
J2a=function(a){a=_.h(a.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var b=a.next(),c={};!b.done;c={clickHandler$jscomp$4:void 0},b=a.next()){b=b.value;c.clickHandler$jscomp$4=function(e){e=Number(e.target.getAttribute("data-time"));if(isNaN(e))throw Error("Th");var g=document.querySelector("video");g&&(g.currentTime=e)};
var d=function(e){return function(g){g.key!=="Enter"&&g.key!=="Space"||(0,e.clickHandler$jscomp$4)(g)}}(c);
b.setAttribute("tabindex","0");b.removeEventListener("click",c.clickHandler$jscomp$4);b.removeEventListener("keydown",d);b.addEventListener("click",c.clickHandler$jscomp$4);b.addEventListener("keydown",d)}};
K2a=function(){return _.q("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.q(Vv,{percentWidth:100}),_.q(Vv,{animationDelay:200}),_.q(Vv,{animationDelay:400}),_.q(Vv,{animationDelay:600}),_.q(Vv,{animationDelay:800,percentWidth:60}),_.q("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.q(Vv,{percentWidth:100}),_.q(Vv,{animationDelay:200}),_.q(Vv,{animationDelay:400}),_.q(Vv,{animationDelay:600,percentWidth:50}))};
Vv=function(a){return _.q("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(a.percentWidth===void 0?100:a.percentWidth)+"%"},_.q("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(a.animationDelay===void 0?0:a.animationDelay)+"ms"}))};
L2a=function(){var a=_.h(_.ih(function(){return""},void 0,"v2wS5e")),b=a.next().value;
return[function(){return b()()},
a.next().value]};
Yv=function(a){return{signalAction:{signal:a}}};
O2a=function(){return _.Fi("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?M2a:_.N2a};
P2a=function(a,b){a=a===void 0?"SOFT_RELOAD_PAGE":a;b=b===void 0?49504:b;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.ep(_.vo("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:b}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:a}}]}}}};
Q2a=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.ep(_.vo("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:O2a()}};
R2a=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.ep(_.vo("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:O2a()}};
S2a=function(a,b){var c=_.ep(_.vo("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),d=_.ep(_.vo("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),e={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.ep(_.vo("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};e.serviceEndpoint=a?a:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[Yv("SOFT_RELOAD_PAGE")]}};return{title:c,bodyText:d,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:e},
style:{value:b!=null?b:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
T2a=function(){return{title:_.ep(_.vo("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:Q2a()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}}};
V2a=function(a){a=a===void 0?{}:a;return{title:_.ep(a.localizedZeroStateTitleText===void 0?"":a.localizedZeroStateTitleText),bodyText:_.ep(a.localizedZeroStateMessage===void 0?"":a.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.ep(a.localizedZeroStateButtonText===void 0?"":a.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[U2a]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
X2a=function(a){a=a===void 0?{}:a;return{title:_.ep(a.localizedOptInBannerTitleText===void 0?"":a.localizedOptInBannerTitleText),titleLength:19,subtitle:_.ep(a.localizedOptInMessage===void 0?"":a.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.ep(_.vo("DISMISS",void 0,"Dismiss")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED",boolValue:!0}},
loggingDirectives:{clientVeSpec:{uiType:127984}}}},secondaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.ep(_.vo("TURN_ON",void 0,"Turn on")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[W2a]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
Z2a=function(a,b){a=a?Y2a(a):"";b!==void 0&&isFinite(b)?b===0?b=_.vo("UPDATING",void 0,"Updating..."):(b=pGa(new Date(b),new Date),b=_.vo("UPDATED_TIME",{relative_time:b},"Updated "+b)):b="";var c="";a&&b&&(c=" \u2022 ");return _.ep(a+c+b)};
b3a=function(a,b,c,d,e,g){b=b===void 0?0:b;var k=$2a[b],m=k.title,n=k.iconType,r=k.topButtonRenderer,t=k.sectionClientVE;k=k.videoClientVE;var u;if(b!==1||a.length){c=[];a=_.h(a);for(d=a.next();!d.done;d=a.next()){var x=d.value;if(XEa(x))c.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:x.videoEntity.videoId,title:fp(x.videoEntity.title),shortBylineText:fp(x.channelEntity.title),thumbnail:x.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:x.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.vo("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:k}}}}}});else if(WEa(x)){d=c;var A=d.push;var C=void 0,F=void 0,J=void 0,I=void 0,R=void 0,da=void 0,V=void 0,fa=void 0,aa=x.mainPlaylistEntity.playlistId,ma=x==null?void 0:(fa=x.mainPlaylistEntity)==null?void 0:(V=fa.thumbnailStyleData)==null?void 0:(da=V[0])==null?void 0:(R=da.value)==null?void 0:(I=R.collageThumbnail)==null?void 0:I.coverThumbnail;I=BDa(aa);if(!_.w("enable_offline_playlist_page")&&
(x==null?0:(J=x.mainPlaylistEntity)==null?0:J.videos)){b:{J=x==null?void 0:(F=x.mainPlaylistEntity)==null?void 0:F.videos;F=_.Yp().getState().entities;if(J!=null&&J.length&&F)for(J=_.h(J),R=J.next();!R.done;R=J.next())if(R=_.jp(R.value).entityId,(R=JSON.parse(R).videoId)&&MEa(F,R)==="TRANSFER_STATE_COMPLETE"){F=R;break b}F=""}F!==void 0&&(I=Np(_.Yp().getState(),F),I=_.dp(F,aa,void 0,void 0,I))}F=DDa(_.vo("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),BDa(aa));x=aa&&ma&&F?{playlistId:aa,navigationEndpoint:I,
viewPlaylistText:F,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:ma}},title:fp(x.mainPlaylistEntity.title),shortBylineText:fp(x==null?void 0:(C=x.channelEntity)==null?void 0:C.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:a3a,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:aa,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.vo("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:k}}}:
void 0;A.call(d,{gridPlaylistRenderer:x})}}k={gridRenderer:{items:c}};b===1&&(u=Z2a(e,g))}else if(d){var Ba=_.ep((A=c==null?void 0:c.localizedPromptMessage)!=null?A:"");k={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.ep(_.vo("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.oFa}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.ep(_.vo("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};u=Z2a(e,g)}else Ba=_.ep(_.vo("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
k={};return{contents:[{shelfRenderer:{title:m,titleAnnotation:u,icon:{iconType:n},subtitle:Ba,content:k,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:r}]}}}}],loggingDirectives:{clientVeSpec:{uiType:t}}}};
c3a=function(a,b,c,d,e,g,k,m){c=c===void 0?{}:c;d=d===void 0?!1:d;e=e===void 0?!1:e;g=g===void 0?!1:g;k=k===void 0?0:k;m=m===void 0?-Infinity:m;if(!b.length&&!a.length&&!d)return e?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:V2a(c)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.ep(_.vo("DO_NOT_HAVE_DOWNLOADS",void 0,"You do not have any downloads")),icon:{iconType:"OFFLINE_NO_CONTENT"},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:21411}}}}]}}];
var n=[];a.length&&n.push(b3a(a,0));d?n.push(b3a(b,1,c,g,k,m)):e&&n.push({contents:[{statementBannerRenderer:X2a(c)}]});(d&&b.length||a.length)&&n.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.ep(_.vo("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}}}}]});return n.map(function(r){return{itemSectionRenderer:r}})};
_.d3a=function(a){return OEa(a.entities).length};
Zv=function(a,b){if(typeof a!=="object")return null;a=_.h(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.h(c.value);c=d.next().value;d=d.next().value;if(c===b)return c;if(d=Zv(d,b))return c+"."+d}return null};
$v=function(a){var b=a.content;return(a=a.styleRuns)&&b?{runs:a.map(function(c){var d={text:b.slice(c.startIndex,c.startIndex+c.length)};c.fontColor&&(d.textColor=c.fontColor);return d})}:{simpleText:b}};
g3a=function(a,b,c,d){var e=e3a;d&&(a.quantity=d);if(!a.quantity||!a.maxQuantity)return{};d=a.minusButton;var g=a.plusButton,k,m,n,r;return{value:a.quantity,maxValue:a.maxQuantity,onChangeCallback:function(t){e(a,t)},
minusLabel:(k=_.y(d,f3a))==null?void 0:k.label,minimumReachedLabel:(m=_.y(d,f3a))==null?void 0:m.limitReachedLabel,plusLabel:(n=_.y(g,f3a))==null?void 0:n.label,maximumReachedLabel:(r=_.y(g,f3a))==null?void 0:r.limitReachedLabel,disabled:b,onRemoveCommand:c}};
e3a=function(a,b){var c=a.quantityIncrementerEntityKey;if(c){var d={};d.quantity=b;_.Mr(_.Lu("quantityIncrementerEntity",c,d));a.onChangeCommand&&_.Gs(a.onChangeCommand)}};
aw=function(a){return _.w("kevlar_comments_clone_data_killswitch")?a:_.Cf.unsafeClone(a)};
j3a=function(a,b){(a=h3a(a))&&(b?i3a.push({command:a,sourceData:{},commandContext:void 0}):_.v().resolve(_.Yi).resolveCommand(a))};
h3a=function(a){return _.y(a,_.Cs)};
k3a=function(){var a=window.performance.timeOrigin+window.performance.now(),b=(new _.bw).setSeconds(a/1E9);return _.Uc(b,2,_.dc(a%1E9),0)};
cw=function(a,b){var c=_.y(_.y(a,_.Cs),l3a);c&&(b&&(c.serializedAdditionalMetadata=_.Bc(b)),j3a(a,!0))};
m3a=function(a){switch(a){case 2:return"MINI_APP_AD_TRIGGER_TYPE_WITHIN";case 3:return"MINI_APP_AD_TRIGGER_TYPE_REWARD";case 1:return"MINI_APP_AD_TRIGGER_TYPE_BEFORE";default:return"MINI_APP_AD_TRIGGER_TYPE_UNSPECIFIED"}};
n3a=function(){return!!_.Fi("ID_TOKEN")};
q3a=function(a){return a instanceof Error&&a.cause instanceof o3a&&a.cause.rpcErrorCode!==void 0?!p3a.includes(a.cause.rpcErrorCode):!0};
s3a=function(){return _.Qi(r3a,{authuser:""+(_.Fi("SESSION_INDEX")||0)})};
dw=function(a,b,c,d){c=c===void 0?"MINI_APP_SDK_API_UNSPECIFIED":c;d=d===void 0?"":d;var e=new _.qj;c={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:d,sdkApi:c};a instanceof Error&&(e.message=a.message,e.name=a.name,a.cause instanceof o3a&&a.cause.rpcErrorCode!==void 0&&(c.rpcErrorCode=a.cause.rpcErrorCode));var g;(g=b.onError)==null||g.call(b,{loggingError:e,metadata:c})};
u3a=function(a,b,c,d){switch(a){case "MINI_APP_SOURCE_GAMESNACKS":return new ew(b,c,d);default:return new t3a(b,c,d)}};
v3a=function(a){switch(a){case 1:return"MINI_APP_ERROR_SOURCE_CONSOLE";case 2:return"MINI_APP_ERROR_SOURCE_UNCAUGHT";case 3:return"MINI_APP_ERROR_SOURCE_SDK";case 4:return"MINI_APP_ERROR_SOURCE_SDK_INTERNAL";case 5:return"MINI_APP_ERROR_SOURCE_SDK_SERVER";default:return"MINI_APP_ERROR_SOURCE_UNSPECIFIED"}};
w3a=function(a){switch(a){case 1:return"MINI_APP_SDK_ERROR_TYPE_API_UNAVAILABLE";case 2:return"MINI_APP_SDK_ERROR_TYPE_INVALID_PARAMS";case 3:return"MINI_APP_SDK_ERROR_TYPE_SIZE_LIMIT_EXCEEDED";default:return"MINI_APP_SDK_ERROR_TYPE_UNSPECIFIED"}};
x3a=function(a){switch(a){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE";
case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
y3a=function(){return Math.floor(Math.random()*4)+1};
z3a=function(a,b,c,d){a=_.h(Object.entries(a));for(var e=a.next(),g={};!e.done;g={message$jscomp$937:void 0},e=a.next()){var k=_.h(e.value);e=k.next().value;k=k.next().value;g.message$jscomp$937=k;b.push(setTimeout(function(m){return function(){d(!1);c(m.message$jscomp$937.text)}}(g),g.message$jscomp$937.delayMs));
Number(e)>0&&b.push(setTimeout(function(){d(!0)},g.message$jscomp$937.delayMs-400))}};
A3a=function(a,b){var c=c===void 0?EQa:c;_.w("mweb_fix_monitor_visibility_after_render")?a&&ts(function(){HQa(a,b,c)}):ts(function(){HQa(a,b,c)})};
E3a=function(a){B3a||(B3a=C3a(new _.Pp(1,void 0,void 0,D3a),0));var b=B3a.format(Math.floor(a));b=_.Op==="be"||_.Op==="bg"||_.Op==="es"||_.Op==="et"||_.Op==="hu"||_.Op==="ka"||_.Op==="lv"||_.Op==="pl"||_.Op==="pt-PT"||_.Op==="sq"?b.replace(new RegExp("^(\\d)"+D3a.GROUP_SEP.replace(".","\\.")+"(\\d+("+D3a.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):b;return a>=1E3&&a<=9999&&b[1]==="."&&(_.Op==="sl"||_.Op==="it")?b.replace(".",""):b};
F3a=function(a,b){vs("ytd-button-renderer",{data:a,className:b?b.className:"",overrides:b==null?void 0:b.buttonOverrides},Nh)};
I3a=function(a,b,c,d){if(a)return d=d||a.likeStatus,b?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:d==="LIKE",isDisabled:!a.likesAllowed,defaultIcon:{iconType:c},defaultText:d==="LIKE"?a.likeCountWithUnlikeText:a.likeCountText,toggledText:d==="LIKE"?a.likeCountText:a.likeCountWithLikeText,defaultNavigationEndpoint:G3a(a,"LIKE"),defaultServiceEndpoint:H3a(a,"LIKE"),toggledServiceEndpoint:H3a(a,"INDIFFERENT"),defaultTooltip:_.Wp(a.likeCountTooltipText),toggledTooltip:_.Wp(a.likeCountTooltipText),
targetId:a.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:d==="DISLIKE",isDisabled:!a.likesAllowed,defaultIcon:{iconType:c},defaultText:d==="DISLIKE"?a.dislikeCountWithUndislikeText:a.dislikeCountText,toggledText:d==="DISLIKE"?a.dislikeCountText:a.dislikeCountWithDislikeText,defaultNavigationEndpoint:G3a(a,"DISLIKE"),defaultServiceEndpoint:H3a(a,"DISLIKE"),toggledServiceEndpoint:H3a(a,"INDIFFERENT"),defaultTooltip:_.Wp(a.dislikeCountTooltipText),
toggledTooltip:_.Wp(a.dislikeCountTooltipText)}};
G3a=function(a,b){if(b==="LIKE")return a.likeCommand;if(b==="DISLIKE")return a.dislikeNavigationEndpoint};
H3a=function(a,b){var c;return(c=a.serviceEndpoints)==null?void 0:c.find(function(d){var e;return((e=_.y(d,_.fw))==null?void 0:e.status)===b})};
J3a=function(a,b){b=b===void 0?{}:b;if(a){var c=!!b.activeState,d=b.iconSize,e=b.className,g=b["aria-hidden$"],k=b["aria-label$"],m=b.role;b=b.style$+";width: "+((b.width||d)+"px;height: ")+((b.height||d)+"px;color: ")+(b.color+";");a={icon:a};c!==void 0&&(a.active=c);d!==void 0&&(a.size=d);b!==void 0&&(a.style=b);e!==void 0&&(a.className=e);g!==void 0&&(a.ariaHidden=g);k!==void 0&&(a.ariaLabel=k);m!==void 0&&(a.role=m);vs("yt-icon",a,Nh)}};
_.M3a=function(a,b,c){return window.spf&&!_.w("web_disable_spfjs_client")?K3a(a,b,c):L3a(a,b)};
K3a=function(a,b,c){var d=null,e=(new _.il(function(g,k){var m={};if(b){m.method=b.method;var n=b.postParams||{};Hoa(a,b)&&(n[_.Fi("XSRF_FIELD_NAME")]=_.Fi("XSRF_TOKEN"));m.postData=_.ij(n);b.type&&(m.type=b.type);n=b.headers}m.headers=Boa(a,n);_.w("debug_forward_web_query_parameters")&&(a=_.Foa(a,window.location.search));m.experimental_headers=m.headers;m.onError=function(r){r.err&&r.xhr&&(r.err.params={url:r.xhr.responseURL,response:r.xhr.responseText.substr(0,64)});k(r.err)};
m.onPartDone=function(r){c&&c.call(null,r.part)};
m.onDone=function(r){var t=N3a(r.response,"xsrf_token");Ti(window.location.href,a)&&t&&_.Ei("XSRF_TOKEN",t);if(t=N3a(r.response,"service_worker_killswitch"))_.Ei("SERVICE_WORKER_KILLSWITCH",t),zJa();g(r.response)};
d=spf.request(a,m)})).then(O3a);
e.thenCatch(function(g){var k=g instanceof _.Nn,m=g&&g.hasOwnProperty("params")&&g.params.response?g.params.response:"";g instanceof Error&&(m?k?sua(g):m===')]}\'\n{"reload":"now"}'?sua(g):(P3a(g,a,m),Q3a(g,m)?_.Dl(g):_.Bl(g)):sua(g));d&&d.abort()});
return e};
O3a=function(a){if(a.type==="multipart"){var b=a.timing;a=a.parts.reduce(function(c,d){Object.assign(c,d);return c},{});
a.timing=a.timing||{};Object.assign(a.timing,b);a.type="reduced"}return a};
L3a=function(a,b){b=b===void 0?{}:b;var c=null,d=new _.il(function(e,g){b.onFinish=function(k){if(k.readyState===XMLHttpRequest.DONE)if(k.status===200){if(k.responseType!=="json"){var m=k.response;m.substring(0,5)===")]}'\n"&&(m=m.substring(5));try{var n=JSON.parse(m)}catch(r){n=r}}else n=k.response;n instanceof Error?g(n):(m=N3a(n,"xsrf_token"),Ti(window.location.href,a)&&m&&_.Ei("XSRF_TOKEN",m),k=k.responseURL,window.performance&&window.performance.getEntriesByName?(m=window.performance.getEntriesByName(k).pop())?
k={responseStart:(0,_.Uj)()-(m.responseEnd-m.responseStart)}:(Math.random()<.01&&(m=Error("ei"),m.params=k,_.Dl(m)),k={responseStart:-1}):k={responseStart:0},n.timing=n.timing||{},Object.assign(n.timing,k),e(n))}else g(Error("di`"+k.status))};
(c=_.hj(a,b))||g(Error("di`"+c.status))});
d.thenCatch(function(e){e instanceof Error&&(P3a(e,a),Q3a(e)&&(e.level="WARNING"))});
_.w("cancel_pending_navs")&&d.thenCatch(function(){c.abort()});
return d};
N3a=function(a,b){var c=a[b],d=a.parts;a.type==="multipart"&&d&&(c=(a=d.find(function(e){return b in e}))&&a[b]);
return c};
P3a=function(a,b,c){var d=a.message||"";b={original:d,url:b};if(c)if(d=d.match(/position:?\s*(\d+)/)){d=d&&Number(d[1])?Number(d[1]):0;var e=Math.max(d-25,0);b.position=d;b.response=c.substring(e,d+25)}else b.response=c.substring(0,50);_.El(a,b);try{a.message="JSON parse error"}catch(g){}};
Q3a=function(a,b){a=a.message||"";a=!!(a.indexOf("<")>=0||a.indexOf("end of ")>=0||a.indexOf("Unterminated string")>=0||a.indexOf("Unexpected EOF"));if(!a&&b)for(var c=b.length,d=!1,e=0;e<c;e++)if(d&&b[e]==="\\")e++;else if(b[e]==='"')d=!d;else if(b[e]==="<"&&!d){a=!0;break}return a};
R3a=function(){return document.documentElement.hasAttribute("dark")};
_.S3a=function(a,b){if(a!=="GFEEDBACK"&&a!=="GUIDED_HELP")_.Hi(Error("fi`"+a));else{var c=_.v().resolve(_.Xi(_.Zt));if(c&&(c=c.getCurrentPage())&&c.getServiceTrackingParams&&(c=c.getServiceTrackingParams()))for(var d=0,e;e=c[d++];)if(e.service===a){if(a=e.params)for(c=0;d=a[c++];)b[d.key]=d.value;break}}};
_.T3a=function(a){var b=_.au();b&&(b=b.getPlayer())&&(b.pauseVideo(),a.playback_id=b.getVideoData().cpn,a.eid=b.getVideoData().eventId,Object.assign(a,b.getFeedbackProductData()))};
U3a=function(){var a={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.Fi("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(a.enableAnonymousFeedback=!0);_.Fi("SESSION_INDEX")&&(a.authuser=String(_.Fi("SESSION_INDEX")));_.w("enable_pageid_for_feedback")&&_.Fi("DELEGATED_SESSION_ID")&&(a.pageId=String(_.Fi("DELEGATED_SESSION_ID")));return a};
_.gw=function(a){_.w("enable_ypc_spinners")&&_.lo(a,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},a])};
_.hw=function(a){_.w("enable_ypc_spinners")&&_.lo(a,"yt-close-popup-action",["yt-loading-renderer"])};
V3a=function(a){return new Promise(function(b,c){_.Es({verifyCommand:{recaptchaToken:a.recaptchaResponse}},{commandController:{onSuccess:function(d,e){e||c("ChallengeService did not return a response.");var g;b({challengeCompleted:(g=e.verified)!=null?g:!1})},
onServerError:function(d,e){c(e)}}})})};
W3a=function(a,b,c,d){b({recaptchaResponse:d}).then(function(e){e.challengeCompleted?_.nj()?(c(3),_.v().resolve(_.Yi).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:a}})):c(2):c(4)},function(){c(4)})};
X3a=function(a,b,c){_.Kn("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.Fi("HL"),function(){var d;(d=window.grecaptcha)==null||d.ready(function(){var e=window.grecaptcha;e?(c(e.render(a,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:W3a.bind(null,a,V3a,b)})),b(1)):b(4)})})};
Y3a=function(a,b){return function(){switch(b()){case 0:return a().captchaLoadingMessage;case 1:return a().challengeReason;case 3:return a().captchaSuccessfulMessage;case 2:return a().captchaCookieSetFailureMessage;case 4:return a().captchaFailedMessage;default:return a().challengeReason}}()};
_.iw=function(){if(!Z3a){var a=document.querySelector("#player.skeleton");a&&(_.qg(a),Z3a=!0)}};
_.a4a=function(){return $3a=zHa()};
d4a=function(){return _.l(function(a){return b4a!==void 0?a.return():_.p(a,c4a(),0)})};
c4a=function(){return _.l(function(a){if(a.nextAddress==1)return _.p(a,BHa(),2);$3a=a.yieldResult;b4a=_.zk.addLowPriorityJob(c4a,5E3);_.ue(a)})};
j4a=function(a){var b=b===void 0?e4a:b;var c,d,e=(c=a.responseContext)==null?void 0:(d=c.mainAppWebResponseContext)==null?void 0:d.trackingParam;if(!e){b.increment("MISSING");var g,k,m,n,r,t;_.Dl(new _.qj("282054944_a",{uso:!!((g=a.responseContext)==null?0:(k=g.mainAppWebResponseContext)==null?0:k.loggedOut),nmawrp:((m=a.responseContext)==null?void 0:m.mainAppWebResponseContext)===void 0,nrc:a.responseContext===void 0,cp:(n=a.playabilityStatus)==null?void 0:n.contextParams,sdf:(((r=a.streamingData)==
null?void 0:r.formats)||[]).length>0,sdaf:(((t=a.streamingData)==null?void 0:t.adaptiveFormats)||[]).length>0,os:!!a.offlineState,cotn:a.cotn}));return 2}c="";try{c=f4a(e)}catch(A){return b.increment("C_ERROR"),_.Bl(A),2}try{var u=_.g4a(c);var x=h4a(u)}catch(A){return b.increment("P_ERROR"),_.Bl(A),2}x=_.Zf(x,i4a,1,_.$f());e=[];x=_.h(x);for(u=x.next();!u.done;u=x.next())d=u.value,u=d.getPath(),c=(0,_.Cf.getValueByKeys)(a,u.split(".")),c=String(c===void 0||c===null?"":c),d=d.getValue()||"",g=/[+\-\/_]/g,
c.replace(g,"")!==d.replace(g,"")&&(b.increment("MISMATCH"),_.w("ab_mis_log_err")&&(c=new _.qj("282054944_p",{fp:u,g:String(c),e:String(d)}),_.Bl(c)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(u)||(u.match(/enforcementMessageViewModel/i)?e.push(3):e.push(2)));if(e.length>0)return Math.max.apply(Math,_.De(e));b.increment("SUCCESS");return 1};
m4a=function(a){var b=new jw;if(a.interpreterJavascript){var c=_.jra(a.interpreterJavascript);c=Pda(c).toString();var d=new k4a;_.vf(d,6,c);_.qd(b,1,d,Fb)}else a.interpreterUrl&&(c=_.Ak(a.interpreterUrl),c=_.zd(c).toString(),d=new _.l4a,_.vf(d,4,c),_.qd(b,2,d,Fb));a.interpreterHash&&_.kw(b,3,a.interpreterHash,Fb);a.program&&_.kw(b,4,a.program,Fb);a.globalName&&_.kw(b,5,a.globalName,Fb);a.clientExperimentsStateBlob&&_.kw(b,7,a.clientExperimentsStateBlob,Fb);return b};
lw=function(a){var b={};a=_.h(a.split("&"));for(var c=a.next();!c.done;c=a.next())c=c.value.split("="),c.length===2&&(b[c[0]]=c[1]);return b};
n4a=function(a){return Number(a.t)||7200};
nia=function(){if(_.w("bg_st_hr"))return"havuokmhhs-0";var a,b=((a=performance)==null?void 0:a.timeOrigin)||0;return"havuokmhhs-"+Math.floor(b)};
o4a=function(){return new Promise(function(a){var b=window.top;b.ntpevasrs!==void 0?a(new mw(b.ntpevasrs)):(b.ntpqfbel===void 0&&(b.ntpqfbel=[]),b.ntpqfbel.push(function(c){a(new mw(c))}))})};
p4a=function(a){var b=a.q1a.bind(a);_.Rj("yt.aba.att",b);a=a.dTc.bind(a);_.Rj("yt.aba.att2",a)};
r4a=function(a){switch(_.gj(a.input)){case _.Zp(q4a):var b={};return b.encryptedVideoId=a.innerTubeRequest.externalVideoId,b}return{}};
t4a=function(a){switch(_.gj(a.input)){case _.Zp(q4a):if(_.w("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.Zp(nw):if(_.w("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&a.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.Zp(s4a):var b,c;if(_.w("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((c=_.y((b=a.config)==null?void 0:b.command,
qUa))==null?0:c.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.v4a=function(a){var b;if(a.playlistVideoRenderer&&((b=a.playlistVideoRenderer)==null?0:b.engagementBar))return u4a(a.playlistVideoRenderer.engagementBar);if(_.y(a,ow)){var c;if(a=(c=_.y(a,ow))==null?void 0:c.engagementBar)return u4a(a)}return""};
u4a=function(a){if(!a)return"";a=_.y(a,_.w4a);if(a==null||!a.actions)return"";a=_.h(a.actions);for(a=a.next();!a.done;a=a.next()){a=_.y(a.value,_.x4a);var b=void 0;if((b=a)==null||!b.itemId)break;return a.itemId}return""};
_.y4a=function(a){var b;if(a.playlistVideoRenderer&&((b=a.playlistVideoRenderer)==null?0:b.videoId))return a.playlistVideoRenderer.videoId;if(_.y(a,ow)){var c,d;if(a=(c=_.y(a,ow))==null?void 0:(d=c.playlistItemData)==null?void 0:d.videoId)return a}return""};
_.z4a=function(a){var b;if(a.playlistVideoRenderer&&((b=a.playlistVideoRenderer)==null?0:b.voteCount))return a.playlistVideoRenderer.voteCount;if(_.y(a,ow)){var c,d;if(a=(c=_.y(a,ow))==null?void 0:(d=c.playlistItemData)==null?void 0:d.voteCount)return a}return 0};
_.pw=function(a,b){return _.np(a.entities,"flowStateEntity",b)};
B4a=function(a,b,c,d){var e=void 0;a=_.h(a[b.iconName]||[]);for(var g=a.next();!g.done;g=a.next()){g=g.value;var k=b.iconSize;var m=b.iconStyle;k=!k||k===g[2];var n=A4a[g[0]];d&&d!==g[1]||!k||m&&m!==n?m=!1:e?(m=A4a[g[0]],m=!!b.iconStyle||m==="youtube_outline",k=e.version<=g[1],m=(!!b.iconSize||g[2]===24)&&m&&k):m=!0;m&&(e={name:b.iconName,style:A4a[g[0]],size:g[2],version:g[1],allowMirroring:!!g[3],url:c(b.iconName,g)})}return e};
C4a=function(a,b,c,d){return a+(""+A4a[c[0]]+((d===void 0?0:d)?"_experimental":"")+"/"+b+"/v"+c[1]+"/")+(c[2]+"px.svg")};
rw=function(a){return _.w("web_bookmark_playlist_save_icon")?"bookmark":a};
D4a=function(a,b){return C4a("https://fonts.gstatic.com/s/i/",a,b)};
E4a=function(a,b){return C4a("https://fonts.gstatic.com/s/i/",a,b,!0)};
F4a=function(a,b){return C4a("https://www.gstatic.com/youtube/img/icons/web/",a,b)};
G4a=function(a){var b=a.enabled;var c=a.itemPlaybackModel;var d=a.thumbnailElRef;var e=a.containerElRef;var g=a.options;var k;_.wh(function(){var m=e==null?void 0:e.value;var n,r=(n=d())==null?void 0:n.value;n=c();var t=g();if(b&&n&&m&&r&&(t==null?0:t.thumbnail)){var u,x;m={mediaRenderer:{data:n,hostElement:m},lockupElement:m,thumbnailElement:r,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.Ds((u=n.inlinePlayerData)==null?void 0:u.onVisible),navigationEndpoint:_.Ds((x=n.inlinePlayerData)==
null?void 0:x.onSelect),thumbnail:t.thumbnail,thumbnailOverlays:t.thumbnailOverlays||[],accessibilityText:t.accessibilityText||""},thumbnailSize:t.thumbnailSize,enableRounding:t.enableRounding}}}else m=void 0;if(u=m){var A;(A=k)==null||uv(A);k=dv(u)}},"rkAKGe");
_.zh(function(){var m;(m=k)==null||uv(m)})};
H4a=function(a){a=atob(a);for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return new Blob([new Uint8Array(b)],{type:"image/png"})};
J4a=function(a,b,c,d){d=d===void 0?"INSERTION_POSITION_UNSPECIFIED":d;return a({targetId:b},function(e){var g,k=(g=e.contents)!=null?g:[];g=c!=null?c:[];var m=I4a(k);switch(d){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},e,{contents:[].concat(_.De(k.slice(0,m)),_.De(g),_.De(k.slice(m+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},e,{contents:[].concat(_.De(g),_.De(k))});case "INSERTION_POSITION_LAST":return Object.assign({},e,{contents:[].concat(_.De(k),_.De(g))});
default:return e}})};
L4a=function(a,b,c,d,e){e=e===void 0?"RELATIVE_INSERTION_POSITION_AFTER":e;return a({targetId:b},function(g){var k,m=(k=g.contents)!=null?k:[];k=K4a(m,c);if(k<0)return g;k=e==="RELATIVE_INSERTION_POSITION_BEFORE"?k:k+1;return Object.assign({},g,{contents:[].concat(_.De(m.slice(0,k)),_.De(d),_.De(m.slice(k)))})})};
I4a=function(a){var b=a.findIndex(function(c){return _.y(c,_.sw)});
return b>=0?b:a.length};
K4a=function(a,b){return a.map(function(c){return _.y(c,_.M4a)}).findIndex(function(c){return(c==null?void 0:c.targetId)===b})};
O4a=function(a,b,c){return a({targetId:b},function(d){var e,g=(e=d.contents)!=null?e:[];return Object.assign({},d,{contents:N4a(g,c)})})};
N4a=function(a,b){return a.filter(function(c){var d=b.includes;a:{c=_.h(Object.values(c));for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.targetId){c=e.targetId;break a}c=""}return!d.call(b,c||"")})};
_.P4a=function(a,b){return{engagementPanelSectionListRenderer:{panelIdentifier:a,identifier:b,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
Q4a=function(a){return a.getOption("captions","tracklist",{includeAsr:!0})};
R4a=function(a){var b=Q4a(a);if(b==null?0:b.length)return b;a.loadModule("captions");return Q4a(a)};
S4a=function(a,b,c){if(a.getVideoData){var d,e=(d=R4a(a))==null?void 0:d.find(function(g){return g.languageCode===c});
d=_.mp("/youtube/app/player_caption_language_entity_key","stringEntity",2);b.dispatch(_.wu("stringEntity",d,{key:d,value:(e==null?void 0:e.displayName)||""}));e?a.setOption("captions","track",e):(a.setOption("captions","stickyLoading",{}),a.setOption("captions","track",{}))}};
T4a=function(a){return a.getOption("captions","tracklist",{includeAsr:!0})};
U4a=function(a){return a.getOption("captions","tracklist",{includeAsr:!0})};
V4a=function(a){var b=U4a(a);if(b==null?0:b.length)return b;a.loadModule("captions");return U4a(a)};
W4a=function(a){var b=a.getOption("captions","track");if(b)return b;a.loadModule("captions");return a.getOption("captions","track")};
X4a=function(a){var b=V4a(a);if(b!=null&&b.length){var c=W4a(a);return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[_.dl({listItemViewModel:{title:{content:_.vo("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(c==null?0:c.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}})].concat(_.De(b.map(function(d){return{listItemViewModel:{title:{content:d.displayName},
isSelected:d.languageCode===(c==null?void 0:c.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:d.languageCode}}]}}}}}}}})))}}}}}}}}};
a5a=function(a){return new Promise(function(b,c){if(a===void 0)_.Bl(Error("Gi"),"ERROR"),c(Error("Gi"));else{c=new _.Y4a;var d=_.Z4a();c=c.init();var e=_.$4a(_.Fi("YPC_MB_URL"),!0);Promise.all([c,e]).then(function(){var g=payments.business.integration.ClientTokenFactory.createClientToken(a,d);b(g)})}})};
d5a=function(a,b,c,d,e,g,k){var m=_.St();c=c.replace(/-/g,"+").replace(/_/g,"/");var n=_.yo().get("hl"),r=_.tw(_.Qq),t=b==null?void 0:b.element;t&&_.gw(t);b5a(b,!0);_.c5a(r,c,m.resolve,function(){t&&_.hw(t)},function(u){t&&_.hw(t);
m.reject(u)},n,d?function(u){d&&_.Rt(a,d,{backend_analytics:u})}:void 0,m.resolve,e,g,k);
return m.promise};
b5a=function(a,b){!(a=a==null?void 0:a.element)||a.tagName!=="YT-BUTTON-RENDERER"&&a.tagName!=="YTD-BUTTON-RENDERER"||(a.disabled=b)};
e5a=function(){var a=_.vo("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.ep(a),actionButton:{buttonRenderer:R2a()}}},popupType:"TOAST"}};
f5a=function(){var a=_.vo("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.ep(a),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
_.i5a=function(a,b,c,d,e,g,k,m){d=d===void 0?!1:d;e=e===void 0?!1:e;g=g===void 0?0:g;k=k===void 0?-Infinity:k;m=m===void 0?!1:m;var n=[],r=_.ep(_.vo("SMART_DOWNLOADS",void 0,"Smart downloads"));k=_.ep(g5a(g,k,a.length));g=void 0;d?(a.length>0?c=h5a(a,_.w("kevlar_manual_downloads_above"),r,k):m?(g={content:c.localizedOptInBannerTitleText===void 0?"":c.localizedOptInBannerTitleText},c={content:c.localizedPromptMessage===void 0?"":c.localizedPromptMessage},e={buttonViewModel:{title:_.vo("UPDATE_SMART_DOWNLOADS_NOW",
void 0,"Update now"),accessibilityText:_.vo("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:129730}},onTap:{innertubeCommand:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",entityKey:_.oFa}]}}}}},c={alertBannerViewModel:{heading:g,body:c,type:"ALERT_BANNER_TYPE_INFORMATIONAL",
hideIcon:!0,actionButton:e,rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}):c={backgroundPromoRenderer:{bodyText:_.ep(_.vo("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/grey_loading_spinner.gif"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"}}},g=c):e&&(g={content:c.localizedOptInBannerTitleText===void 0?"":c.localizedOptInBannerTitleText},c={content:c.localizedOptInMessage===
void 0?"":c.localizedOptInMessage},e={buttonViewModel:{title:_.vo("TURN_ON",void 0,"Turn on"),accessibilityText:_.vo("TURN_ON",void 0,"Turn on"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:127983}},onTap:{innertubeCommand:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!0}}}}},g={alertBannerViewModel:{heading:g,body:c,
type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:e,rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:127982}}}}}});c=_.ep(_.vo("YOUR_DOWNLOADS",void 0,"Your downloads"));e=void 0;b.length>0?(e=void 0,_.w("kevlar_display_downloads_numbers")&&(e=_.ep(_.wo("VIDEO_COUNT",b.length))),e=h5a(b,!0,c,e)):d||a.length||(e={backgroundPromoRenderer:{bodyText:_.ep(_.vo("VIDEOS_WILL_APPEAR_HERE",void 0,"Videos you download will appear here")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/downloads_empty_state.png"}]},
style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:120848}}}});g&&!_.w("kevlar_manual_downloads_above")&&n.push({richSectionRenderer:{content:g,loggingDirectives:{clientVeSpec:{uiType:139572}}}});e&&n.push({richSectionRenderer:{content:e,loggingDirectives:{clientVeSpec:{uiType:51721}}}});g&&_.w("kevlar_manual_downloads_above")&&n.push({richSectionRenderer:{content:g,loggingDirectives:{clientVeSpec:{uiType:139572}}}});if(b.length>0||d&&a.length>0)a=n.push,
b={richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.ep(_.vo("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}},loggingDirectives:{clientVeSpec:{uiType:133683}}}}}},a.call(n,b);return{contents:n}};
_.j5a=function(a){var b=[];a=h5a(a,!0);b.push({richSectionRenderer:{content:a}});return{contents:b}};
h5a=function(a,b,c,d){b=b===void 0?!1:b;a={isExpanded:b,contents:k5a(a)};c&&(a.title=c);d&&(a.subtitle=d);b||(_.w("kevlar_smart_downloads_show_more_button")?(b={buttonRenderer:{accessibility:{label:_.vo("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.ep(_.vo("SHOW_MORE",void 0,"Show more"))}},a.showMoreButton=b,b={buttonRenderer:{accessibility:{label:_.vo("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},
style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.ep(_.vo("SHOW_LESS",void 0,"Show less"))}},a.showLessButton=b):(b={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.vo("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},a.previousButton=b,b={buttonViewModel:{iconName:"CHEVRON_RIGHT",
accessibilityText:_.vo("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},a.nextButton=b,b={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.vo("VIEW_ALL",void 0,"View all"),accessibilityText:_.vo("VIEW_ALL",void 0,"View all"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:242898}},onTap:{innertubeCommand:cp("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}},a.menu=b));return{richShelfRenderer:a}};
k5a=function(a){var b=[];a=_.h(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,XEa(c)){var d=b,e=d.push;var g=void 0;if(c==null?0:(g=c.videoEntity)==null?0:g.videoId){g=Np(_.Yp().getState(),c.videoEntity.videoId);var k=_.Yp().getState();var m=_.mp(c.videoEntity.videoId,"mainVideoEntity");k=!!_.Cp(k.entities)[m];k={videoId:c.videoEntity.videoId,title:fp(c.videoEntity.title),shortBylineText:fp(c.channelEntity.title),thumbnail:c.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:k&&
_.w("kevlar_modern_downloads_page")?129218:42356}},navigationEndpoint:ADa(c.videoEntity.videoId,g,c.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.vo("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};c.videoEntity.lengthSeconds&&(k.thumbnailOverlays=qGa(c.videoEntity.lengthSeconds,g));k.isWatched=g>0;_.w("kevlar_modern_downloads_page")&&(k.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:c.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.vo("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},k.badges=void 0);c=k}else c={};e.call(d,{richItemRenderer:{content:{videoRenderer:c},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(WEa(c)){d=b;e=d.push;var n=m=g=void 0,r=void 0,t=void 0,u=void 0,x=void 0,A=void 0,C=void 0,F=void 0,J=void 0,I=void 0;k=c.mainPlaylistEntity.playlistId;var R=c==null?void 0:(I=c.mainPlaylistEntity)==null?void 0:(J=I.thumbnailStyleData)==null?void 0:(F=J[0])==
null?void 0:(C=F.value)==null?void 0:(A=C.collageThumbnail)==null?void 0:A.coverThumbnail;if(k&&R){A=BDa(k);!_.w("enable_offline_playlist_page")&&(c==null?0:(x=c.mainPlaylistEntity)==null?0:x.videos)&&(x=c==null?void 0:(u=c.mainPlaylistEntity)==null?void 0:(t=u.videos)==null?void 0:t[0],t=_.jp(x).entityId,t=JSON.parse(t).videoId,t!==void 0&&(u=Np(_.Yp().getState(),t),A=_.dp(t,k,void 0,void 0,u)));t=[];if(c==null?0:(r=c.mainPlaylistEntity)==null?0:(n=r.videos)==null?0:n.length)t=[XFa(),Object.assign({},
(m=WFa(c==null?void 0:c.mainPlaylistEntity.videos.length))!=null?m:{})];c={playlistId:k,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:R}},navigationEndpoint:A,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:t,title:fp(c.mainPlaylistEntity.title),shortBylineText:fp(c==null?void 0:(g=c.channelEntity)==null?void 0:g.title),badges:[{metadataBadgeRenderer:{label:_.vo("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.w("kevlar_modern_downloads_page")&&
(c.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:l5a,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:k,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.vo("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},c.badges=void 0)}else c=void 0;e.call(d,{richItemRenderer:{content:{playlistRenderer:c},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return b};
g5a=function(a,b,c){a=a?Y2a(a):"";b!==void 0&&isFinite(b)?b===0?b=_.vo("UPDATING",void 0,"Updating..."):(b=pGa(new Date(b),new Date),b=_.vo("UPDATED_TIME",{relative_time:b},"Updated "+b)):b="";var d="";a&&b&&(d=" \u2022 ");if(c&&_.w("kevlar_display_downloads_numbers")){c=_.wo("VIDEO_COUNT",c);if(a||b)d=" \u2022 ";return c+d+a+d+b}return a+d+b};
uw=function(a){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:a}]}}};
m5a=function(a){var b=a.videoEntity;var c,d,e={title:fp(b.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.gp((c=b.localizedStrings)==null?void 0:c.viewCount),viewCount:_.gp((d=b.localizedStrings)==null?void 0:d.viewCount)}}};b.publishedTimestampMillis&&(e.dateText=_.gp(YFa(new Date(Number(b.publishedTimestampMillis)))));b={videoPrimaryInfoRenderer:e};c=a.videoEntity;a=a.channelEntity;a={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:fp(_.vo("SHOW_MORE",
void 0,"Show more")),showLessText:fp(_.vo("SHOW_LESS",void 0,"Show less")),description:c.formattedDescription,owner:{videoOwnerRenderer:{title:fp(a.title),thumbnail:a.avatar}}}};return{twoColumnWatchNextResults:{results:{results:{contents:[b,a]}}}}};
vw=function(a,b,c,d){var e;return _.l(function(g){if(g.nextAddress==1)return _.pe(g,2),_.p(g,a,4);if(g.nextAddress!=2)return(e=_.yp(b.getState().entities).length>0)?g.return({title:_.ep(_.vo("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.ep(_.vo("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:Q2a()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
g.return(S2a(c,d));_.te(g);return g.return(S2a(c,d))})};
n5a=function(a,b){return b?b==="PPSV"||PEa(a,b):!1};
o5a=function(a){a.responseContext||(a.responseContext={});a.responseContext.maxAgeSeconds=0;return a};
xw=function(a){var b;return _.l(function(c){return c.nextAddress==1?_.p(c,p5a(a,"service:topbar:fallback"),2):(b=c.yieldResult)&&_.ww(b)?c.return(o5a(_.ww(b))):c.return()})};
q5a=function(a){var b;return _.l(function(c){return c.nextAddress==1?_.p(c,p5a(a,"service:downloads_settings:fallback"),2):(b=c.yieldResult)&&_.ww(b)?c.return(b):c.return()})};
p5a=function(a,b){var c;return _.l(function(d){if(d.nextAddress==1)return a?_.p(d,a.get(b),2):d.return();c=d.yieldResult;return!c||!_.ww(c)||!isNaN(Number(c.data.expireTimestampMs))&&c.isExpired()?d.return():d.return(c)})};
r5a=function(a){var b=_.v().resolve(yw).getState().entities;return a.playlistId?n5a(b,a.playlistId):!1};
s5a=function(a,b){var c;if(b==null?0:(c=b.requestTemplate)==null?0:c.panelId)a.panelId=b.requestTemplate.panelId;var d;if(b==null?0:(d=b.requestTemplate)==null?0:d.params)a.params=b.requestTemplate.params};
u5a=function(){if(t5a)return t5a();var a=!_.w("idb_response_store_auth_killswitch"),b={};t5a=Tj("yt-it-response-store",{objectStores:(b.ResponseStore={addedAtVersion:1},b),shared:!a,upgrade:function(c,d){d(1)&&(c=Gk(c,"ResponseStore",{keyPath:["key","clientName"]}),Hk(c,"byExpiration","expireTimestampMs"),Hk(c,"byInterface","clientName"))},
version:1});return t5a()};
v5a=function(a){return _.Lj(u5a(),a)};
x5a=function(a,b){var c;return _.l(function(d){return d.nextAddress==1?_.p(d,_.Sj(),2):(c=d.yieldResult)?d.return(new w5a(a,b,c)):d.return()})};
y5a=function(a){var b=Object.keys(a)[0];if(b)return a.screenExit&&(b=b+";"+a.screenExit.screen),b};
z5a=function(a){var b=new Map;a=_.h(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c!=null&&(b.has(c.taskType)||b.set(c.taskType,[]),b.get(c.taskType).push(c));return b};
A5a=function(a){return!isNaN(a)&&a>0};
B5a=function(a){a=[].concat(_.De(a)).sort(function(c,d){return c-d});
var b=Math.floor(a.length/2);return a.length%2?a[b]:(a[b-1]+a[b])/2};
D5a=function(){C5a||(Object.assign(ah,{handleError:function(a,b){var c={errorSeverity:b.errorSeverity.toString(),wizFeatureFlags:Object.entries(b.featureFlags).join("\n")};aua(b,c);b=b.errorSeverity;b===3?_.Bl(a,"ERROR",void 0,void 0,void 0,c):b===2&&_.Bl(a,"WARNING",void 0,void 0,void 0,c);_.w("cow_if_errors_in_popup")&&b===3&&a.message.indexOf("<If>")!==-1&&window.alert(a.message)},
enableComponentStacksInErrorMessages:!1}),C5a=!0)};
G5a=function(a,b){_.Rj("yt.logging.errors.log",_.Bl);bua();E5a(iua(),b);window.onerror=a;_.w("wiz_next_error_handler_killswitch")||D5a();F5a=cua;window.addEventListener("unhandledrejection",function(c){if(c.reason instanceof Error){var d=c.reason;_.El(d,{source:"unhandledrejection"});d.name==="AbortError"&&(d.level="WARNING")}cua(c.reason);c.preventDefault()})};
_.H5a=function(a){return a.a11y.ephemeralAction||null};
_.I5a=function(a){var b,c,d,e,g,k,m,n,r,t,u,x,A,C,F,J,I,R,da,V,fa,aa,ma,Ba,Ca,ya,Ia,db,lb,Ua,Vb,rb,sb,yc,Mb,ub,Db,Wc,Mc,ia;return _.l(function(ac){if(ac.nextAddress==1)return _.p(ac,_.up(a,{mode:"readonly",enableRetries:!0},function(Qb){return vp(Qb,"playbackData").then(function(Ac){var qb=Ac.map(function(mb){return mb.transfer}).filter(function(mb){return!!mb}),Cb=Ac.map(function(mb){return mb.offlineVideoPolicy}).filter(function(mb){return!!mb}),ab=Ac.filter(function(mb){return!!mb.key}).map(function(mb){return _.mp(_.jp(mb.key).entityId,
"downloadStatusEntity")});
qb=vp(Qb,"transfer",qb);Cb=vp(Qb,"offlineVideoPolicy",Cb);ab=vp(Qb,"downloadStatusEntity",ab);var Pa=qb.then(function(mb){mb=mb.reduce(function(Yb,hd){(hd==null?0:hd.offlineVideoStreams)&&Yb.push.apply(Yb,_.De(hd.offlineVideoStreams));return Yb},[]).filter(function(Yb){return!!Yb});
return vp(Qb,"offlineVideoStreams",mb)});
return Fj.all([qb,Cb,Pa,ab]).then(function(mb){var Yb=_.h(mb);mb=Yb.next().value;var hd=Yb.next().value;var Gb=Yb.next().value;Yb=Yb.next().value;return[Ac,mb,hd,Gb,Yb]})})}),2);
if(ac.nextAddress!=3)return b=ac.yieldResult,_.p(ac,_.up(a,{mode:"readonly",enableRetries:!0},function(Qb){return vp(Qb,"mainDownloadsListEntity").then(function(Ac){var qb,Cb;return(Cb=(qb=Ac[0])==null?void 0:qb.downloads)!=null?Cb:[]})}),3);
c=ac.yieldResult;d=_.h(b);e=d.next().value;g=d.next().value;k=d.next().value;m=d.next().value;n=d.next().value;r=e;t=g;u=k;x=m;A=n;C={};F={};J={};I={};R={};da=[];V=_.h(t);for(fa=V.next();!fa.done;fa=V.next())(aa=fa.value)&&(C[aa.key]=aa);ma=_.h(u);for(Ba=ma.next();!Ba.done;Ba=ma.next())(Ca=Ba.value)&&(F[Ca.key]=Ca);ya=_.h(A);for(Ia=ya.next();!Ia.done;Ia=ya.next())(db=Ia.value)&&(J[db.key]=db);lb=_.h(x);for(Ua=lb.next();!Ua.done;Ua=lb.next())(Vb=Ua.value)&&(I[Vb.key]=Vb);rb=_.h(c);for(sb=rb.next();!sb.done;sb=
rb.next())yc=sb.value,Mb=void 0,R[(Mb=yc.videoItem)!=null?Mb:""]=!0,yc.videoItem&&(Db=ub=void 0,Wc=(Db=(ub=_.jp(yc.videoItem))==null?void 0:ub.entityId)!=null?Db:"",da.push({externalVideoId:Wc}));Mc=r.filter(function(Qb){if(!Qb||!Qb.key||!Qb.offlineVideoPolicy)return!1;Qb=_.jp(Qb.key).entityId;Qb=_.mp(Qb,"downloadStatusEntity");var Ac;return!(Qb&&((Ac=J[Qb])==null?void 0:Ac.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
ia=Mc.map(function(Qb){var Ac=C[Qb.transfer],qb=[];if(Ac==null?0:Ac.offlineVideoStreams)for(var Cb=_.h(Ac.offlineVideoStreams),ab=Cb.next();!ab.done;ab=Cb.next())(ab=I[ab.value])&&qb.push(ab);Cb=F[Qb.offlineVideoPolicy];ab=R;var Pa=Qb==null?void 0:Qb.playerResponseTimestamp,mb=_.jp(Cb.key).entityId;Qb=_.mp(mb,"mainVideoEntity");if(Cb.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var Yb="OFFLINE_VIDEO_STATE_DISABLED";Cb.expirationTimestamp&&Number(Cb.expirationTimestamp)<Date.now()/1E3&&(Yb="OFFLINE_VIDEO_STATE_EXPIRED")}else if(Cb.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")Yb="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(Ac==null?void 0:Ac.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":Yb="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":Yb="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":Yb="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":Yb="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":Yb="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":Yb="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:Yb="OFFLINE_VIDEO_STATE_UNKNOWN"}if(Yb==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(Ac==null?void 0:Ac.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":Yb="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":Yb="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":Yb=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}mb={id:mb,videoState:Yb};if(Ac==null?0:Ac.cotn)mb.cotn=Ac.cotn;if(Ac==null?0:Ac.maximumDownloadQuality)mb.selectedVideoQuality=Ac==null?void 0:Ac.maximumDownloadQuality;if(Ac==null?0:Ac.lastProgressTimeMs)mb.lastProgressTimeMs=Ac.lastProgressTimeMs;Pa&&(mb.playerResponseSavedTimeMs=String(Number(Pa)*1E3));Ac=String;Pa=0;qb=_.h(qb);for(Yb=qb.next();!Yb.done;Yb=qb.next())if(Yb=Yb.value,Yb.streamsProgress){Yb=_.h(Yb.streamsProgress);for(var hd=Yb.next();!hd.done;hd=
Yb.next()){var Gb=void 0;Pa+=Number((Gb=hd.value.numBytesDownloaded)!=null?Gb:0)}}mb.downloadedBytes=Ac(Pa);mb.selectedOfflineMode=ab[Qb]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";Cb.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(mb.offlinePlaybackDisabledReason=Cb.offlinePlaybackDisabledReason);return mb});
return ac.return({offlineVideos:ia,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:da}}})})};
J5a=function(){var a;return _.l(function(b){return b.nextAddress==1?_.p(b,_.rp(),2):(a=b.yieldResult)?b.return(_.I5a(a)):b.return({state:"PES Unavailable"})})};
M5a=function(){var a,b,c,d;return _.l(function(e){if(e.nextAddress==1)return _.p(e,_.rp(),2);if(e.nextAddress!=3)return(a=e.yieldResult)?_.p(e,K5a(a),3):e.return({state:"PES Unavailable"});b=e.yieldResult;c={};d=b.reduce(function(g,k){g[k.key]=k;return g},c);
return e.return(L5a(d))})};
L5a=function(a){for(var b={},c=[],d=_.h(Object.keys(a)),e=d.next();!e.done;e=d.next()){var g=e.value;e=a[g];var k=void 0;if(((k=e)==null?void 0:k.entityType)==="mainVideoEntity"){delete a[g];var m=e.data;e={};if(m){var n=void 0;k=(n=m.videoId)!=null?n:"vid-"+g;g=a;e.video=m;delete e.video.formattedDescription;delete e.video.thumbnail;m.owner&&(n=g[m.owner],n==null?0:n.data)&&(delete g[n.key],e.video.owner=n.data,delete e.video.owner.avatar);if(m=m.downloadState)if(n=g[m],n==null?0:n.data)if(delete g[m],
m=n.data.playbackData)if(n=g[m],n!=null&&n.data){delete g[m];m=n.data;delete m.playerResponseJson;e.playbackData=m;if(m.transfer&&(n=g[m.transfer],n==null?0:n.data)){delete g[n.key];var r=n.data;e.transfer=r;n=[];r=_.h(r.offlineVideoStreams||[]);for(var t=r.next();!t.done;t=r.next())if(t=g[t.value])delete g[t.key],n.push(t.data);n&&(e.streams=n)}(m=m.offlineVideoPolicy)&&(m=g[m])&&m.data&&(delete g[m.key],e.offlineVideoPolicy=m.data)}b[k]=e}}else e&&e.entityType==="offlineOrchestrationActionWrapperEntity"&&
e.data&&(delete a[e.key],k=e.data,g=void 0,c.push({id:k.rootActionId,type:((g=k.actionProto)==null?void 0:g.actionType)||"",entity:e}))}b.wrapperEntities=c;Object.keys(a).length>0&&(b.unknownKeys=a);return b};
N5a=function(){var a,b,c,d,e,g,k,m,n;return _.l(function(r){if(r.nextAddress==1)return a=!!(new _.Ek("")).expiringStorage_,d=!!((b=_.ja.crypto)==null?0:(c=b.subtle)==null?0:c.importKey),e=!!_.ja.BroadcastChannel,g=!!_.ja.navigator.locks,_.p(r,Gpa(),2);k=r.yieldResult;m=a&&d&&e&&g&&k;n={isSupported:m};if(m)return r.return(n);n.missingBrowserFeatures=[];k||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");a||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
d||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");e||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");g||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return r.return(n)})};
O5a=function(){var a;return!((a=zw?zw:null)==null||!a.window)};
_.Q5a=function(a){if(_.Ea()&&_.naa("Chromium")>=120){var b=_.P5a().mediaSession;try{b.setActionHandler("enterpictureinpicture",function(){a()})}catch(c){}}};
R5a=function(a){for(var b=[],c=_.h(document.styleSheets),d=c.next(),e={};!d.done;e={node$jscomp$719:void 0},d=c.next())e.node$jscomp$719=d.value.ownerNode,e.node$jscomp$719&&(e.node$jscomp$719 instanceof HTMLStyleElement||e.node$jscomp$719 instanceof HTMLLinkElement)&&b.push(new Promise(function(g){return function(k){var m=g.node$jscomp$719.cloneNode(!0);m.onload=function(){k()};
m.onerror=function(){_.Dl(Error("ij"));k()};
a.document.head.appendChild(m)}}(e)));
return Promise.all(b)};
a6a=function(a){var b=[_.cf(S5a),_.cf(T5a),_.cf(U5a)];V5a(window.document.documentElement,a.document.documentElement,[_.cf(W5a),_.cf(X5a),_.cf(Y5a),_.cf(Z5a),_.cf($5a)]);V5a(window.document.body,a.document.body,b)};
V5a=function(a,b,c){a=_.h(a.attributes);for(var d=a.next();!d.done;d=a.next())if(d=d.value)try{_.ae(c,b,d.name,d.value)}catch(e){}};
c6a=function(a,b){a=new _.Aw(a.document.documentElement);a.start(b6a,b);return a};
d6a=function(a){var b=a.document.documentElement;b.addEventListener("click",function(c){BTa(b,c)});
b.addEventListener("touchstart",function(c){GTa(c)});
b.addEventListener("mousedown",function(c){GTa(c)})};
f6a=function(a,b,c,d){d=d===void 0?!1:d;b=new e6a(b||a,c||a);return{x:a.x+((d===void 0?0:d)?b.lengthX*-1:b.lengthX)*.2,y:a.y+((d===void 0?0:d)?b.lengthY*-1:b.lengthY)*.2}};
g6a=function(a){if(!a)return!1;var b=a.status==="OK"||a.status==="LIVE_STREAM_OFFLINE",c,d,e,g=(e=(c=a.errorScreen)==null?void 0:c.playerLegacyDesktopYpcTrailerRenderer)!=null?e:(d=a.errorScreen)==null?void 0:d.ypcTrailerRenderer;return!!b||!!g};
_.h6a=function(a,b){if(!a)return!1;var c,d=(c=a.errorScreen)==null?void 0:c.playerLegacyDesktopYpcOfferRenderer,e;b=!!(b==null?0:(e=b.playerOverlayRenderer)==null?0:e.gatedActionsOverlayRenderer);return!!g6a(a)||!!d||!!b};
i6a=function(a){return a.includes("gclid")||a.includes("gad_source")};
j6a=function(a){return new Promise(function(b){window.setTimeout(b,a)})};
k6a=function(a){var b={bicf:function(g){a.bbb=g},
blc:function(){return a.getLatestChallengeResponse()},
bcr:function(g){a.e3b.push(g)}},c=window.top;
c.ntpevasrs=b;if(c.ntpqfbel!==void 0)for(var d=_.h(c.ntpqfbel),e=d.next();!e.done;e=d.next())e=e.value,e(b);c.ntpqfbel=void 0};
l6a=function(a){return _.l(function(b){if(b.nextAddress==1)return _.pe(b,2),_.p(b,a.j7a(),4);if(b.nextAddress!=2)return _.Jj(b,0);_.te(b);_.ue(b)})};
m6a=function(a){var b,c;(b=a.ytcsi)==null||(c=b.tick)==null||c.call(b,"pot_ist")};
n6a=function(a){if(a instanceof Error){var b=_.Ji("yt.logging.errors.log");b&&b(a,"WARNING")}};
o6a=function(a){try{var b=JSON.parse(a);if(b.bgChallenge)return b}catch(c){}};
q6a=function(){var a=window,b={networkStatusManagerPromise:_.v().resolve(new qoa(_.Lk)),initialChallengeSli:_.w("wpo_att_sli")?new _.qBa("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};a=a===void 0?window:a;var c=a.ytAtR,d;b==null||(d=b.initialChallengeSli)==null||_.Bw(d);if(c){if(c=o6a(c)){var e;b==null||(e=b.initialChallengeSli)==null||_.Cw(e,"SUCCESS");p6a(c,b)}a.ytAtR=void 0}else a.ytAtRC=function(g){if(g=o6a(g)){var k;b==null||(k=b.initialChallengeSli)==null||_.Cw(k,
"SUCCESS");p6a(g,b);a.ytAtRC=void 0}}};
t6a=function(){if(r6a)return r6a;try{var a=_.pg("IFRAME");_.Sd(a,_.ef(s6a));a.sandbox.add("allow-same-origin");a.style.display="none";document.body.appendChild(a);return r6a=a}catch(b){a=new _.qj("Failed to create sandbox iframe"),_.Bl(a)}};
u6a=function(a){var b,c;return(c=a==null?void 0:(b=a.contentWindow)==null?void 0:b.fetch)!=null?c:window.fetch};
v6a=function(a){var b,c;return(c=a==null?void 0:(b=a.contentWindow)==null?void 0:b.JSON.parse)!=null?c:JSON.parse};
w6a=function(a){var b,c;return(c=a==null?void 0:(b=a.contentWindow)==null?void 0:b.Request)!=null?c:window.Request};
z6a=function(){if(ysa()==="hidden")var a="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else ysa()==="visible"&&(a="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",x6a=null);a&&y6a(a)};
y6a=function(a){if(a==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||a==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(A6a===a)return;A6a=a}var b=9E4+Math.random()*2E3;if(a!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.Yk()>b)&&ysa()==="visible"){b=-1;x6a&&(b=Math.round((0,_.Uj)()-x6a));var c=String;var d=_.Ji("_fact",window);d=d==null||d==-1?-1:Math.max(Date.now()-d,0);_.xl("foregroundHeartbeat",{firstActivityMs:c(d),clientDocumentNonce:YAa,index:String(B6a),lastEventDeltaMs:String(b),trigger:a});
_.Rj("_fact",-1,window);B6a++;x6a=(0,_.Uj)()}};
_.C6a=function(){try{return!!self.sessionStorage}catch(a){return!1}};
D6a=function(){var a=navigator;return new Promise(function(b,c){var d;(d=a.webkitTemporaryStorage)!=null&&d.queryUsageAndQuota?a.webkitTemporaryStorage.queryUsageAndQuota(function(e,g){b({usage:e,quota:g})},function(e){c(e)}):c(Error("qj"))})};
E6a=function(a,b,c){a.componentType!==sh&&c instanceof HTMLElement&&b&&!_.w("cow_logging_in_component_wrapper")&&vXa(c,b,!0)};
F6a=function(a,b,c){b=b===void 0?{}:b;var d,e=(d=_.y(a.commandMetadata,_.co))==null?void 0:d.url;d=b.form||{};!c||d.element||d.skipDefaultElement||(b.form=b.form||{},b.form.element=c);if(e&&e!=="/service_ajax")return{type:0,command:a,form:b.form};if(_.w("kevlar_service_command_check")){if(_.Qt(_.v().resolve(_.yq),a))return Object.assign({},{type:1,command:a},b)}else{var g;if((g=_.y(a.commandMetadata,_.co))==null?0:g.apiUrl)return Object.assign({},{type:1,command:a},b)}return{type:2,command:a,form:b.form}};
G6a=function(a){if(a.form){var b=a.form,c=Object.assign({},b);b=b.element;c=(delete c.element,c);if(b)return[_.oo(b,[a.command,c,a.commandController])]}return[]};
H6a=function(a){if(a.form){var b=a.form,c=Object.assign({},b);b=b.element;c=(delete c.element,c);b&&_.po(b,[a.command],b,c)}};
I6a=function(a,b,c){var d=new Dw(a,b),e=new Ew(a,b,c);a={"/youtubei/v1/browse":new Fw(a,b,c),"/youtubei/v1/player":d,"/youtubei/v1/navigation/resolve_url":new Gw,"/youtubei/v1/next":e,"/youtubei/v1/guide":new Hw(c),"/youtubei/v1/search":new Iw(a,b,c),"/youtubei/v1/reel/reel_item_watch":new Jw(a,b,c),"/youtubei/v1/get_watch":new Kw(d,e)};a["/youtubei/v1/account/account_menu"]=new Lw;a["/youtubei/v1/notification/get_notification_menu"]=new Mw;return a};
Ow=function(){var a=_.v().resolve(Nw);return Promise.resolve(J6a(a,_.ja.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
K6a=function(a){return a&&(a=_.Pw(_.YUa(a)))?(new URLSearchParams(a)).get("service"):null};
Sw=function(a,b){_.Ys(_.Qw(),function(){_.Lo("adl")});
_.v().resolve(L6a)(b);a=a.root;a.loadData&&a.loadData(b);(b==null?0:b.response)?_.Cw(tBa(),"SUCCESS"):_.Dl(new _.qj("Lifecycle: No response in data",_.Gi("IS_SHELL_LOAD"),b?b.page:"NO_PAGE",b?b.endpoint:"NO_ENDPOINT"));a.polymerController.$["page-manager"].lazyPrepareCriticalPages((b==null?void 0:b.page)||"",b.endpoint);var c,d;((d=_.y(b==null?void 0:(c=b.endpoint)==null?void 0:c.commandMetadata,_.co))==null?0:d.webPageType)&&_.Yp().dispatch(_.Rw(_.y(b.endpoint.commandMetadata,_.co).webPageType))};
M6a=function(){var a,b;return _.l(function(c){switch(c.nextAddress){case 1:a=window;if(!a.getDataPromise){c.jumpTo(2);break}_.pe(c,3);return _.p(c,a.getDataPromise(),5);case 5:return c.return(c.yieldResult);case 3:return _.te(c),_.p(c,Ow(),6);case 6:return c.return(c.yieldResult);case 2:if(a.getInitialData)return b=a.getInitialData(),a.getInitialData=void 0,c.return(b);throw Error("sj`"+_.ja.location.href);}})};
O6a=function(){_.Ei("CSI_SERVICE_NAME","youtube");_.Jo({loadType:"cold"});_.w("kevlar_log_lcp")&&N6a(function(a){_.Lo("lcp",a.value)})};
P6a=function(){var a=_.Kg(document.location.href,"enable");a&&a.indexOf("scraper")>-1&&_.Ei("ADD_SCRAPER_ATTRIBUTES",!0)};
U6a=function(a){var b=a.root;a=[Q6a,R6a,_.Tw];_.w("web_feedback_endpoint_autolog_allowlist_killswitch")&&a.push(_.Uw,S6a);T6a(function(c,d){return F6a(c,d,b)},function(c){if(!c.command)return[];
var d;((d=c.form)==null?0:d.element)?c.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},c.form,{endpoint:c.command})})):b.handleNavigate(c);return[]},a);
_.v().addProvider({provide:_.Yi,useValue:_.gs.instance})};
W6a=function(){var a={},b={},c;for(c in V6a){var d=_.h(_.ih(V6a[c],void 0,"UAX5pb"));a[c]=d.next().value;b[c]=d.next().value}return[a,function(e){for(var g in e){var k=void 0;(k=b[g])==null||k(e[g])}}]};
_.Z6a=function(a,b){var c=_.Cf.getValueByKeys(a,"contents","twoColumnWatchNextResults","results","results","contents"),d=_.Cf.getValueByKeys(a,"contents","twoColumnWatchNextResults","playlist","playlist")||null,e=null,g=null;if(d)e=_.Cf.getValueByKeys(d,"titleText"),g=_.Cf.unsafeClone(_.Cf.getValueByKeys(d,"longBylineText")),c="",g&&(c=_.Wp(g)),g=_.Vp(c);else if(c){c=_.h(c);for(var k=c.next();!k.done;k=c.next())k=k.value,k.videoPrimaryInfoRenderer&&(e=_.Cf.getValueByKeys.apply(_.Cf,[k].concat(_.De(X6a)))),
k.videoSecondaryInfoRenderer&&(g=_.Cf.getValueByKeys.apply(_.Cf,[k].concat(_.De(Y6a))))}else _.Ki(Error("xj"));var m;a.currentVideoEndpoint?m=a.currentVideoEndpoint:_.Ki(Error("yj"));var n;b&&(n=_.Cf.getValueByKeys(b,"playabilityStatus","miniplayer","miniplayerRenderer"));a={miniplayerTitle:e,miniplayerSubtitle:g,watchEndpoint:m,playlistData:d};n&&(a.miniplayerRenderer=n);return a};
$6a=function(a){if(a)return _.zs(a)};
_.a7a=function(){return{isFullscreen:function(){throw Error("zj");},
toggleFullscreen:function(){throw Error("Aj");},
exitFullscreen:function(){throw Error("Bj");},
isAutonavEnabled:function(){throw Error("Cj");},
setAutonavEnabled:function(){throw Error("Dj");},
isAutoplaySetExplicitly:function(){throw Error("Ej");}}};
b7a=function(a){return a.videoDuration?a.numTaps>1&&a.tapDirection!==0?_.Vw(a.draggedTime/a.videoDuration,0,1):_.Vw((a.playedTime||0)/a.videoDuration,0,1):0};
c7a=function(a){return a.videoDuration?a.isDragging||a.numTaps>1&&a.tapDirection!==0?_.Vw(a.draggedTime/a.videoDuration,0,1):_.Vw((a.playedTime||0)/a.videoDuration,0,1):0};
e7a=function(a){var b,c,d;return _.y(a==null?void 0:(b=a.markersMap)==null?void 0:(c=b.find(function(e){return e.key==="HEATSEEKER"}))==null?void 0:(d=c.value)==null?void 0:d.heatmap,d7a)};
f7a=function(a){var b,c;return(c=(b=e7a(a))==null?void 0:b.heatMarkersDecorations)!=null?c:[]};
g7a=function(a){if(_.w("mweb_supported_chapters_killswitch"))return!0;var b;return!!(a==null?0:(b=a.markersMap)==null?0:b.find(function(c){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(c.key)}))};
_.h7a=function(a){var b=Object,c=b.assign,d;a={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(d=a==null?void 0:a.getPlayerState())!=null?d:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return c.call(b,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},a,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
i7a=function(a){return function(b){var c=a(),d,e=(d=c.playerApi)==null?void 0:d.getPlayerState();b&&b!==c.playerState&&(b===1||b===2)&&c.setState({playerState:e})}};
k7a=function(a){return function(b){var c=a(),d=c.playerApi;d&&(b==null?void 0:b.type)==="newdata"&&(j7a&&(clearTimeout(j7a),j7a=void 0),_.w("web_shorts_use_progress_state_for_gapless")?(b=d==null?void 0:d.getProgressState(b==null?void 0:b.playertype),b=b.seekableEnd-b.seekableStart):b=d==null?void 0:d.getDuration(b==null?void 0:b.playertype),c.setState({playedTime:0,videoDuration:b}))}};
l7a=function(a){return function(b){var c=a(),d=c.playerApi;if(d){var e=d.getPresentingPlayerType();_.w("web_shorts_use_progress_state_for_gapless")?(d=d.getProgressState(e),d=d.seekableEnd-d.seekableStart):d=d.getDuration(e);c.setState({playedTime:b,videoDuration:d})}}};
o7a=function(a){var b=a.element;var c=a.veType;var d=a.storedVisualElement===void 0?null:a.storedVisualElement;var e=a.elementIndex===void 0?0:a.elementIndex;a=a.clientYouTubeData;var g=_.En();g!==m7a&&(n7a.clear(),m7a=g);if(b.visualElement&&n7a.has(b.visualElement))return null;if(d&&n7a.has(d))return b.visualElement=d,null;c=_.ks(_.ls(),{veType:c,elementIndex:e,clientYouTubeData:a});if(!c)return null;b.visualElement=c;n7a.add(c);return c};
_.Ww=function(a,b,c,d){c=c===void 0?null:c;d=d===void 0?EQa:d;var e=e===void 0?null:e;ts(function(){if(b){c instanceof Function&&(c=c());var g=o7a({element:b,veType:a,storedVisualElement:c,clientYouTubeData:void 0});g&&(HQa(b,e),d(g))}})};
q7a=function(a){_.Ww(112394,a,function(){return p7a},function(b){p7a=b})};
t7a=function(a,b){if(!a)return[];var c,d,e;a=((c=a.markersMap)==null?void 0:(d=c.find(function(g){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(g.key)}))==null?void 0:(e=d.value)==null?void 0:e.chapters)||[];
!r7a(a)||(b==null?0:b.ignoreStub)||(a=[s7a()].concat(_.De(a)));return a};
s7a=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
r7a=function(a){if(a.length===0)return!1;var b;return((b=_.y(a[0],Xw))==null?void 0:b.timeRangeStartMillis)!==0};
Yw=function(a){return a?a.timeRangeStartMillis||0:0};
v7a=function(a,b){if(a.isDragging&&b)return a=u7a(a,b),a===-1?s7a():t7a(b)[a]};
u7a=function(a,b){return a.isDragging&&b?t7a(b,{ignoreStub:!0}).findIndex(function(c,d,e){c=w7a(a);return x7a(c,e,d).scrubberHovering}):-1};
w7a=function(a){return Object.assign({},a,{videoDuration:a.videoDuration*1E3,playedTime:a.playedTime*1E3,draggedTime:a.draggedTime*1E3})};
x7a=function(a,b,c){var d=Yw(_.y(b[c],Xw));b=Yw(_.y(b[c+1],Xw))||a.videoDuration;c=a.isDragging;var e;if(e=a.isDragging)e=a.draggedTime,e=e!==null&&e>=d&&e<b;var g=a.playedTime;return g!==null&&g>=d&&g<b?{videoPosition:"active",isScrubbing:c,scrubberHovering:e}:a.playedTime<d?{videoPosition:"pending",isScrubbing:c,scrubberHovering:e}:{videoPosition:"seen",isScrubbing:c,scrubberHovering:e}};
y7a=function(a,b){return a.videoPosition==="seen"||(b===void 0?0:b)>0};
z7a=function(a,b,c){b=a/b.storyboardInterval;var d=t7a(c);if(!d.length)return-b*72;c=0;d=_.h(d);for(var e=d.next();!e.done;e=d.next())if(Yw(_.y(e.value,Xw))/1E3<a)c++;else break;return-(b*72)-c*56};
A7a=function(a){return a?a.width/a.columns:0};
B7a=function(a){return a.isHovering?a.hoveredTime:a.draggedTime};
C7a=function(a,b){a=a.draggedTime*1E3;return a>=b.visibleTimeRangeStartMillis&&a<=b.visibleTimeRangeEndMillis};
_.D7a=function(a){if(a===void 0||Number.isNaN(a))return"--:--";var b=Math.abs(Math.floor(a)),c=Math.floor(b/86400),d=Math.floor(b%86400/3600),e=Math.floor(b%3600/60);b=Math.floor(b%60);var g="";c>0&&(g+=c+":",d<10&&(g+="0"));if(c>0||d>0)g+=d+":",e<10&&(g+="0");g+=e+":";b<10&&(g+="0");g+=b;return a>=0?g:"-"+g};
E7a=function(a,b){return function(){var c=B7a(a());var d=b();var e=a().playerApi;if(e&&e.getNumberOfStoryboardLevels()!==0){var g=e.getStoryboardFrameIndex(c,1);g!==-1?d=e.getStoryboardFrame(g,1):(c=e.getStoryboardFrameIndex(c,0),e=e.getStoryboardFrame(c,0),d&&e&&(e.height*=3,e.width*=3),d=e)}else d=null;if(!d)return null;b()&&(d.width=90*d.columns,d.height=160*d.rows);return d}};
_.Zw=function(a){if(!a||a.getVideoData)return a};
F7a=function(){var a;return{playerApi:(a=_.v().resolve(_.lu)())!=null?a:void 0}};
_.K7a=function(a){function b(I){I!==0||t?I>50&&(t||!x)?(u(!1),A(!0)):I<=50&&(t||x)&&(u(!1),A(!1)):u(!0)}
function c(){var I;return _.l(function(R){if(R.nextAddress==1)return _.p(R,_.mu(),2);(I=R.yieldResult)&&(I.isMuted()?u(!0):u(!1));_.ue(R)})}
var d=a.noSlider;a=_.Pl();var e=_.Pl(),g=_.Ql(),k=_.h(pu(!1)),m=k.next().value,n=k.next().value,r=_.h(pu(!1));k=r.next().value;r=r.next().value;var t=k,u=r;r=_.h(pu(!0));k=r.next().value;r=r.next().value;var x=k,A=r;_.wi(function(){function I(){n(!0)}
function R(){n(!1)}
d?(c(),b(t?0:100)):g&&g.value&&(g.value.addEventListener("focus",I),g.value.addEventListener("focusout",R),G7a(g.value).then(function(){b(Number(H7a(g.value)))}));
e&&e.value&&(e.value.addEventListener("focus",I),e.value.addEventListener("focusout",R));return function(){var da;g==null||(da=g.value)==null||da.removeEventListener("focus",I);var V;g==null||(V=g.value)==null||V.removeEventListener("focusout",R);e.value.removeEventListener("focus",I);e.value.removeEventListener("focusout",R)}});
var C=_.lt(function(){if(g&&g.value){var I=Number(H7a(g.value));I7a(I);g.value.style.setProperty("--gradient-percent",I+"%");b(I)}return!1});
k={};var F=(k.ytdDesktopShortsVolumeControlsSliderContainer=!0,k.ytdDesktopShortsVolumeControlsSliderContainerExpanded=m,k);k={};m=(k.ytdDesktopShortsVolumeControlsBackgroundScrim=!0,k.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=d?!1:m,k);_.Rl(e,"pointerenter",function(){n(!0)});
_.Rl(a,"pointerleave",function(){n(!1)});
k=_.lt(function(){if(g&&g.value||d)J7a(g.value,t,d),u(!t);return!1});
r=_.w("web_shorts_keyboard_enable_mute_shortcut")?t?_.vo("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.vo("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):t?_.vo("UNMUTE_VOLUME",void 0,"Unmute"):_.vo("MUTE_VOLUME",void 0,"Mute");var J={sources:[{clientResource:{imageName:t?"VOLUME_OFF_FILLED":x?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]};return _.q("desktop-shorts-volume-controls",{class:"ytdDesktopShortsVolumeControlsHost",el:a},_.q("div",{class:_.ht(m)}),_.q("button",{"aria-label":r,title:r,el:e,"on:click":k,
class:"ytdDesktopShortsVolumeControlsMuteIconButton"},J?_.q(_.Ps,{data:J,alt:r,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null),_.Tg(!d,function(){return _.q("div",{class:_.ht(F)},_.q("input",{"aria-label":_.vo("VOLUME"),title:_.vo("VOLUME"),el:g,"on:input":C,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input"}))}))};
G7a=function(a){var b,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,_.mu(),2);b=d.yieldResult;c=50;b&&(c=b.getVolume(),b.isMuted()?L7a(a,0):L7a(a,c));_.ue(d)})};
I7a=function(a){var b;_.l(function(c){if(c.nextAddress==1)return _.p(c,_.mu(),2);if(b=c.yieldResult)b.unMute(!0),b.setVolume(a,!0);_.ue(c)})};
L7a=function(a,b){a&&(a.value=""+b,a.style.setProperty("--gradient-percent",b+"%"))};
H7a=function(a){var b;return(b=a==null?void 0:a.value)!=null?b:0};
J7a=function(a,b,c){var d;_.l(function(e){if(e.nextAddress==1)return _.p(e,_.mu(),2);d=e.yieldResult;b&&d?(d.unMute(!0),!c&&a&&L7a(a,d.getVolume())):d&&(d.mute(!0),!c&&a&&L7a(a,0));_.ue(e)})};
M7a=function(){var a;_.l(function(b){if(b.nextAddress==1)return _.p(b,_.mu(),2);a=b.yieldResult;if(!a)return b.return();a.isMuted()?a.unMute(!0):a.mute(!0);_.ue(b)})};
N7a=function(a){var b=_.v().resolve(_.$w).getPlayerElement();b&&a&&(a===1?b.pause():b.play())};
O7a=function(a){_.mo(a,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
P7a=function(a){_.mo(a,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
R7a=function(a){return _.oi(a.document.body,function(){return _.q(Q7a,null)})};
S7a=function(){var a=window.performance.getEntriesByType("navigation");return a?a.map(function(b){return b.type}).includes("reload"):!1};
$7a=function(){ax(ax(ax(ax(ax(ax(ax(_.v().resolve(_.bx),_.T7a),_.U7a),_.V7a),_.W7a),_.X7a),_.Y7a),_.Z7a)};
a8a=function(a,b){b=b===void 0?!1:b;var c,d,e,g;return _.l(function(k){if(k.nextAddress==1)return b||!_.w("kevlar_shorts_seedless_retry_initial_load")||(c=window,d=!(!c.getDataPromise&&!c.getInitialData),d)?_.p(k,M6a(),2):(setTimeout(a8a.bind(window,a,!0),1E3),k.return());if(k.nextAddress!=3)return e=k.yieldResult,_.p(k,b8a(e),3);g=k.yieldResult;Sw(a,g);_.ue(k)})};
b8a=function(a){var b;if((b=a.response)==null||!b.replacementEndpoint)return _.qo(a);b=_.v().resolve(Nw);a=a.response;_.y(a.replacementEndpoint,_.uq)&&a.sequenceContinuation&&(_.y(a.replacementEndpoint,_.uq).sequenceParams=a.sequenceContinuation);return cx(b,a.replacementEndpoint,{},_.ja.location.href,"shorts",function(){},function(){return!1})};
c8a=function(a){var b=_.Yp(),c,d=_.y((c=a.response)==null?void 0:c.frameworkUpdates,Ut),e;c=_.y((e=a.playerResponse)==null?void 0:e.frameworkUpdates,Ut);var g;a=_.y((g=a.reelWatchSequenceResponse)==null?void 0:g.frameworkUpdates,Ut);d&&_.tp(d,b);c&&_.tp(c,b);a&&_.tp(a,b)};
d8a=function(a){var b;_.w("enable_redirect_linking_for_desktop_web_client")&&((b=window.location.hash)==null?0:b.includes("redirect_state"))&&a.url&&(a.url=a.url.toString()+window.location.hash)};
g8a=function(a){var b=_.v(),c=b.resolve(Nw);b=b.resolve(_.e8a);a.endpoint&&(c=f8a(c,a.endpoint),c.content&&a.response&&_.dx(b,a.response,c.content),c.player&&a.playerResponse&&_.dx(b,a.playerResponse,c.player),c.reelSequence&&a.reelWatchSequenceResponse&&_.dx(b,a.reelWatchSequenceResponse,c.reelSequence))};
ex=function(a,b){c8a(b);var c;(b==null?0:b.url)&&((c=window.location.hash)==null?0:c.includes("redirect_state"))&&(d8a(b),(c=K6a(b.url))&&_.lo(a.root,"yt-initialize-third-party",[c,b]));g8a(b);c=_.v();var d=c.resolve(h8a);b.playerResponse&&c.resolve(i8a).handleResponse(b.playerResponse);if(b.playerResponse){c=void 0;if(_.w("ab_v_vid_sig")&&b.endpoint){var e,g=(e=_.y(b.endpoint,_.Un))!=null?e:_.y(b.endpoint,_.uq);g&&(c=g.videoId)}j8a(d,b.playerResponse,c)}b.playerResponse&&$Ha(b.playerResponse)&&_.w("web_enable_ab_rsp_cl")?
d4a().then(function(){k8a(d,b.playerResponse);Sw(a,b)}):Sw(a,b)};
m8a=function(a){if(a=a.root.data){var b=_.v().resolve(l8a);a.endpoint&&(a.response&&b.handleResponse(a.response,void 0,document.querySelector("ytd-app")),a.playerResponse&&b.handleResponse(a.playerResponse),a.reelWatchSequenceResponse&&b.handleResponse(a.reelWatchSequenceResponse))}};
n8a=function(a){var b,c,d,e,g,k;return _.l(function(m){switch(m.nextAddress){case 1:b=window;if(!b.getDataPromise){m.jumpTo(2);break}_.pe(m,3);return _.p(m,b.getDataPromise(),5);case 5:c=m.yieldResult;ex(a,c);_.Jj(m,4);break;case 3:return _.te(m),_.p(m,Ow(),6);case 6:d=m.yieldResult,Sw(a,d);case 4:return m.return();case 2:if(!_.w("sw_nav_preload_pbj")){m.jumpTo(7);break}b.fetchInitialData=function(){var n;return _.l(function(r){if(r.nextAddress==1)return _.p(r,Ow(),2);n=r.yieldResult;Sw(a,n);_.ue(r)})};
if(b.getInitialData){b.loadInitialData=function(n){ex(a,n)};
e=b.getInitialData();b.getInitialData=void 0;ex(a,e);m.jumpTo(8);break}b.fetchInitialData=void 0;return _.p(m,Ow(),9);case 9:g=m.yieldResult,Sw(a,g);case 8:return m.return();case 7:b.getInitialData?(k=b.getInitialData(),b.getInitialData=void 0,ex(a,k)):b.loadInitialData=function(n){ex(a,n)},_.ue(m)}})};
o8a=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
p8a=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
q8a=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("a");};
_.Um=q8a(this);fx=function(a,b){if(b)a:{var c=_.Um;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&b!=null&&p8a(c,a,{configurable:!0,writable:!0,value:b})}};
fx("Symbol",function(a){if(a)return a;var b=function(g,k){this.$jscomp$symbol$id_=g;p8a(this,"description",{configurable:!0,writable:!0,value:k})};
b.prototype.toString=function(){return this.$jscomp$symbol$id_};
var c="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",d=0,e=function(g){if(this instanceof e)throw new TypeError("b");return new b(c+(g||"")+"_"+d++,g)};
return e});
fx("Symbol.iterator",function(a){if(a)return a;a=Symbol("c");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=_.Um[b[c]];typeof d==="function"&&typeof d.prototype[a]!="function"&&p8a(d.prototype,a,{configurable:!0,writable:!0,value:function(){return r8a(o8a(this))}})}return a});
fx("Symbol.asyncIterator",function(a){return a?a:Symbol("d")});
var r8a=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a},s8a=typeof Object.create=="function"?Object.create:function(a){var b=function(){};
b.prototype=a;return new b},t8a=function(){function a(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if(typeof Reflect!="undefined"&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){e===void 0&&(e=c);
e=s8a(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),u8a;
if(typeof Object.setPrototypeOf=="function")u8a=Object.setPrototypeOf;else{var v8a;a:{var w8a={a:!0},x8a={};try{x8a.__proto__=w8a;v8a=x8a.a;break a}catch(a){}v8a=!1}u8a=v8a?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError("e`"+a);return a}:null}_.gx=u8a;
_.z=function(a,b){a.prototype=s8a(b.prototype);a.prototype.constructor=a;if(_.gx)(0,_.gx)(a,b);else for(var c in b)if(c!="prototype")if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.superClass_=b.prototype};
_.h=function(a){var b=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if(typeof a.length=="number")return{next:o8a(a)};throw Error("f`"+String(a));};
Rg=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
_.De=function(a){return a instanceof Array?a:Rg(_.h(a))};
_.hx=function(a){return y8a(a,a)};
y8a=function(a,b){a.raw=b;Object.freeze&&(Object.freeze(a),Object.freeze(b));return a};
ix=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
z8a=typeof Object.assign=="function"?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)ix(d,e)&&(a[e]=d[e])}return a};
fx("Object.assign",function(a){return a||z8a});
var A8a=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},B8a=function(a){if(a.isRunning_)throw new TypeError("h");
a.isRunning_=!0};
A8a.prototype.JSC$6584_next_=function(a){this.yieldResult=a};
var C8a=function(a,b){a.abruptCompletion_={exception:b,isException:!0};a.nextAddress=a.catchAddress_||a.finallyAddress_};
A8a.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};
_.p=function(a,b,c){a.nextAddress=c;return{value:b}};
A8a.prototype.jumpTo=function(a){this.nextAddress=a};
_.ue=function(a){a.nextAddress=0};
_.pe=function(a,b,c){a.catchAddress_=b;c!=void 0&&(a.finallyAddress_=c)};
_.re=function(a,b){a.catchAddress_=0;a.finallyAddress_=b||0};
_.Jj=function(a,b,c){a.nextAddress=b;a.catchAddress_=c||0};
_.te=function(a,b){a.catchAddress_=b||0;b=a.abruptCompletion_.exception;a.abruptCompletion_=null;return b};
_.qe=function(a,b,c,d){d?a.finallyContexts_[d]=a.abruptCompletion_:a.finallyContexts_=[a.abruptCompletion_];a.catchAddress_=b||0;a.finallyAddress_=c||0};
_.se=function(a,b,c){c=a.finallyContexts_.splice(c||0)[0];(c=a.abruptCompletion_=a.abruptCompletion_||c)?c.isException?a.nextAddress=a.catchAddress_||a.finallyAddress_:c.jumpTo!=void 0&&a.finallyAddress_<c.jumpTo?(a.nextAddress=c.jumpTo,a.abruptCompletion_=null):a.nextAddress=a.finallyAddress_:a.nextAddress=b};
_.D8a=function(a){this.JSC$6589_context_=new A8a;this.program_=a};
F8a=function(a,b){B8a(a.JSC$6589_context_);var c=a.JSC$6589_context_.yieldAllIterator_;if(c)return E8a(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.JSC$6589_context_.return);
a.JSC$6589_context_.return(b);return jx(a)};
E8a=function(a,b,c,d){try{var e=b.call(a.JSC$6589_context_.yieldAllIterator_,c);if(!(e instanceof Object))throw new TypeError("g`"+e);if(!e.done)return a.JSC$6589_context_.isRunning_=!1,e;var g=e.value}catch(k){return a.JSC$6589_context_.yieldAllIterator_=null,C8a(a.JSC$6589_context_,k),jx(a)}a.JSC$6589_context_.yieldAllIterator_=null;d.call(a.JSC$6589_context_,g);return jx(a)};
jx=function(a){for(;a.JSC$6589_context_.nextAddress;)try{var b=a.program_(a.JSC$6589_context_);if(b)return a.JSC$6589_context_.isRunning_=!1,{value:b.value,done:!1}}catch(c){a.JSC$6589_context_.yieldResult=void 0,C8a(a.JSC$6589_context_,c)}a.JSC$6589_context_.isRunning_=!1;if(a.JSC$6589_context_.abruptCompletion_){b=a.JSC$6589_context_.abruptCompletion_;a.JSC$6589_context_.abruptCompletion_=null;if(b.isException)throw b.exception;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
_.G8a=function(a){this.next=function(b){B8a(a.JSC$6589_context_);a.JSC$6589_context_.yieldAllIterator_?b=E8a(a,a.JSC$6589_context_.yieldAllIterator_.next,b,a.JSC$6589_context_.JSC$6584_next_):(a.JSC$6589_context_.JSC$6584_next_(b),b=jx(a));return b};
this.throw=function(b){B8a(a.JSC$6589_context_);a.JSC$6589_context_.yieldAllIterator_?b=E8a(a,a.JSC$6589_context_.yieldAllIterator_["throw"],b,a.JSC$6589_context_.JSC$6584_next_):(C8a(a.JSC$6589_context_,b),b=jx(a));return b};
this.return=function(b){return F8a(a,b)};
this[Symbol.iterator]=function(){return this}};
H8a=function(a){function b(d){return a.next(d)}
function c(d){return a.throw(d)}
return new Promise(function(d,e){function g(k){k.done?d(k.value):Promise.resolve(k.value).then(b,c).then(g,e)}
g(a.next())})};
_.l=function(a){return H8a(new _.G8a(new _.D8a(a)))};
qea=function(a){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return a};
this.next=function(b){return Promise.resolve(a.next(b))};
this["throw"]=function(b){return new Promise(function(c,d){var e=a["throw"];e!==void 0?c(e.call(a,b)):(c=a["return"],c!==void 0&&c.call(a),d(new TypeError("i")))})};
a["return"]!==void 0&&(this["return"]=function(b){return Promise.resolve(a["return"](b))})};
_.Kd=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
fx("globalThis",function(a){return a||_.Um});
fx("Reflect",function(a){return a?a:{}});
fx("Reflect.construct",function(){return t8a});
fx("Reflect.setPrototypeOf",function(a){return a?a:_.gx?function(b,c){try{return(0,_.gx)(b,c),!0}catch(d){return!1}}:null});
fx("Promise",function(a){function b(){this.batch_=null}
function c(k){return k instanceof e?k:new e(function(m){m(k)})}
if(a&&(typeof _.Um.PromiseRejectionEvent!=="undefined"||!_.Um.Promise||_.Um.Promise.toString().indexOf("[native code]")===-1))return a;b.prototype.asyncExecute=function(k){if(this.batch_==null){this.batch_=[];var m=this;this.asyncExecuteFunction(function(){m.executeBatch_()})}this.batch_.push(k)};
var d=_.Um.setTimeout;b.prototype.asyncExecuteFunction=function(k){d(k,0)};
b.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var k=this.batch_;this.batch_=[];for(var m=0;m<k.length;++m){var n=k[m];k[m]=null;try{n()}catch(r){this.asyncThrow_(r)}}}this.batch_=null};
b.prototype.asyncThrow_=function(k){this.asyncExecuteFunction(function(){throw k;})};
var e=function(k){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var m=this.createResolveAndReject_();try{k(m.resolve,m.reject)}catch(n){m.reject(n)}};
e.prototype.createResolveAndReject_=function(){function k(r){return function(t){n||(n=!0,r.call(m,t))}}
var m=this,n=!1;return{resolve:k(this.resolveTo_),reject:k(this.JSC$6605_reject_)}};
e.prototype.resolveTo_=function(k){if(k===this)this.JSC$6605_reject_(new TypeError("j"));else if(k instanceof e)this.settleSameAsPromise_(k);else{a:switch(typeof k){case "object":var m=k!=null;break a;case "function":m=!0;break a;default:m=!1}m?this.resolveToNonPromiseObj_(k):this.fulfill_(k)}};
e.prototype.resolveToNonPromiseObj_=function(k){var m=void 0;try{m=k.then}catch(n){this.JSC$6605_reject_(n);return}typeof m=="function"?this.settleSameAsThenable_(m,k):this.fulfill_(k)};
e.prototype.JSC$6605_reject_=function(k){this.settle_(2,k)};
e.prototype.fulfill_=function(k){this.settle_(1,k)};
e.prototype.settle_=function(k,m){if(this.state_!=0)throw Error("k`"+k+"`"+m+"`"+this.state_);this.state_=k;this.result_=m;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
e.prototype.scheduleUnhandledRejectionCheck_=function(){var k=this;d(function(){if(k.notifyUnhandledRejection_()){var m=_.Um.console;typeof m!=="undefined"&&m.error(k.result_)}},1)};
e.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var k=_.Um.CustomEvent,m=_.Um.Event,n=_.Um.dispatchEvent;if(typeof n==="undefined")return!0;typeof k==="function"?k=new k("unhandledrejection",{cancelable:!0}):typeof m==="function"?k=new m("unhandledrejection",{cancelable:!0}):(k=_.Um.document.createEvent("CustomEvent"),k.initCustomEvent("unhandledrejection",!1,!0,k));k.promise=this;k.reason=this.result_;return n(k)};
e.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var k=0;k<this.onSettledCallbacks_.length;++k)g.asyncExecute(this.onSettledCallbacks_[k]);this.onSettledCallbacks_=null}};
var g=new b;e.prototype.settleSameAsPromise_=function(k){var m=this.createResolveAndReject_();k.callWhenSettled_(m.resolve,m.reject)};
e.prototype.settleSameAsThenable_=function(k,m){var n=this.createResolveAndReject_();try{k.call(m,n.resolve,n.reject)}catch(r){n.reject(r)}};
e.prototype.then=function(k,m){function n(x,A){return typeof x=="function"?function(C){try{r(x(C))}catch(F){t(F)}}:A}
var r,t,u=new e(function(x,A){r=x;t=A});
this.callWhenSettled_(n(k,r),n(m,t));return u};
e.prototype.catch=function(k){return this.then(void 0,k)};
e.prototype.callWhenSettled_=function(k,m){function n(){switch(r.state_){case 1:k(r.result_);break;case 2:m(r.result_);break;default:throw Error("l`"+r.state_);}}
var r=this;this.onSettledCallbacks_==null?g.asyncExecute(n):this.onSettledCallbacks_.push(n);this.isRejectionHandled_=!0};
e.resolve=c;e.reject=function(k){return new e(function(m,n){n(k)})};
e.race=function(k){return new e(function(m,n){for(var r=_.h(k),t=r.next();!t.done;t=r.next())c(t.value).callWhenSettled_(m,n)})};
e.all=function(k){var m=_.h(k),n=m.next();return n.done?c([]):new e(function(r,t){function u(C){return function(F){x[C]=F;A--;A==0&&r(x)}}
var x=[],A=0;do x.push(void 0),A++,c(n.value).callWhenSettled_(u(x.length-1),t),n=m.next();while(!n.done)})};
return e});
var kx=function(a,b,c){if(a==null)throw new TypeError("m`"+c);if(b instanceof RegExp)throw new TypeError("n`"+c);return a+""};
fx("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=kx(this,b,"startsWith"),e=d.length,g=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var k=0;k<g&&c<e;)if(d[c++]!=b[k++])return!1;return k>=g}});
fx("Object.setPrototypeOf",function(a){return a||_.gx});
fx("Symbol.dispose",function(a){return a?a:Symbol("o")});
fx("SuppressedError",function(a){function b(c,d,e){if(!(this instanceof b))return new b(c,d,e);e=Error(e);"stack"in e&&(this.stack=e.stack);this.message=e.message;this.error=c;this.suppressed=d}
if(a)return a;_.z(b,Error);b.prototype.name="SuppressedError";return b});
var I8a=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var g=a[e];if(b.call(c,g,e,a))return{i:e,v:g}}return{i:-1,v:void 0}};
fx("Array.prototype.find",function(a){return a?a:function(b,c){return I8a(this,b,c).v}});
fx("WeakMap",function(a){function b(){}
function c(n){var r=typeof n;return r==="object"&&n!==null||r==="function"}
function d(n){if(!ix(n,g)){var r=new b;p8a(n,g,{value:r})}}
function e(n){var r=Object[n];r&&(Object[n]=function(t){if(t instanceof b)return t;Object.isExtensible(t)&&d(t);return r(t)})}
if(function(){if(!a||!Object.seal)return!1;try{var n=Object.seal({}),r=Object.seal({}),t=new a([[n,2],[r,3]]);if(t.get(n)!=2||t.get(r)!=3)return!1;t.delete(n);t.set(r,4);return!t.has(n)&&t.get(r)==4}catch(u){return!1}}())return a;
var g="$jscomp_hidden_"+Math.random();e("freeze");e("preventExtensions");e("seal");var k=0,m=function(n){this.JSC$6612_id_=(k+=Math.random()+1).toString();if(n){n=_.h(n);for(var r;!(r=n.next()).done;)r=r.value,this.set(r[0],r[1])}};
m.prototype.set=function(n,r){if(!c(n))throw Error("p");d(n);if(!ix(n,g))throw Error("q`"+n);n[g][this.JSC$6612_id_]=r;return this};
m.prototype.get=function(n){return c(n)&&ix(n,g)?n[g][this.JSC$6612_id_]:void 0};
m.prototype.has=function(n){return c(n)&&ix(n,g)&&ix(n[g],this.JSC$6612_id_)};
m.prototype.delete=function(n){return c(n)&&ix(n,g)&&ix(n[g],this.JSC$6612_id_)?delete n[g][this.JSC$6612_id_]:!1};
return m});
fx("Map",function(a){if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var m=Object.seal({x:4}),n=new a(_.h([[m,"s"]]));if(n.get(m)!="s"||n.size!=1||n.get({x:4})||n.set({x:4},"t")!=n||n.size!=2)return!1;var r=n.entries(),t=r.next();if(t.done||t.value[0]!=m||t.value[1]!="s")return!1;t=r.next();return t.done||t.value[0].x!=4||t.value[1]!="t"||!r.next().done?!1:!0}catch(u){return!1}}())return a;
var b=new WeakMap,c=function(m){this[0]={};this[1]=g();this.size=0;if(m){m=_.h(m);for(var n;!(n=m.next()).done;)n=n.value,this.set(n[0],n[1])}};
c.prototype.set=function(m,n){m=m===0?0:m;var r=d(this,m);r.list||(r.list=this[0][r.id]=[]);r.entry?r.entry.value=n:(r.entry={next:this[1],previous:this[1].previous,head:this[1],key:m,value:n},r.list.push(r.entry),this[1].previous.next=r.entry,this[1].previous=r.entry,this.size++);return this};
c.prototype.delete=function(m){m=d(this,m);return m.entry&&m.list?(m.list.splice(m.index,1),m.list.length||delete this[0][m.id],m.entry.previous.next=m.entry.next,m.entry.next.previous=m.entry.previous,m.entry.head=null,this.size--,!0):!1};
c.prototype.clear=function(){this[0]={};this[1]=this[1].previous=g();this.size=0};
c.prototype.has=function(m){return!!d(this,m).entry};
c.prototype.get=function(m){return(m=d(this,m).entry)&&m.value};
c.prototype.entries=function(){return e(this,function(m){return[m.key,m.value]})};
c.prototype.keys=function(){return e(this,function(m){return m.key})};
c.prototype.values=function(){return e(this,function(m){return m.value})};
c.prototype.forEach=function(m,n){for(var r=this.entries(),t;!(t=r.next()).done;)t=t.value,m.call(n,t[1],t[0],this)};
c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(m,n){var r=n&&typeof n;r=="object"||r=="function"?b.has(n)?r=b.get(n):(r=""+ ++k,b.set(n,r)):r="p_"+n;var t=m[0][r];if(t&&ix(m[0],r))for(m=0;m<t.length;m++){var u=t[m];if(n!==n&&u.key!==u.key||n===u.key)return{id:r,list:t,index:m,entry:u}}return{id:r,list:t,index:-1,entry:void 0}},e=function(m,n){var r=m[1];
return r8a(function(){if(r){for(;r.head!=m[1];)r=r.previous;for(;r.next!=r.head;)return r=r.next,{done:!1,value:n(r)};r=null}return{done:!0,value:void 0}})},g=function(){var m={};
return m.previous=m.next=m.head=m},k=0;
return c});
fx("Set",function(a){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(_.h([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(),g=e.next();if(g.done||g.value[0]!=c||g.value[1]!=c)return!1;g=e.next();return g.done||g.value[0]==c||g.value[0].x!=4||g.value[1]!=g.value[0]?!1:e.next().done}catch(k){return!1}}())return a;
var b=function(c){this.JSC$6626_map_=new Map;if(c){c=_.h(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.JSC$6626_map_.size};
b.prototype.add=function(c){c=c===0?0:c;this.JSC$6626_map_.set(c,c);this.size=this.JSC$6626_map_.size;return this};
b.prototype.delete=function(c){c=this.JSC$6626_map_.delete(c);this.size=this.JSC$6626_map_.size;return c};
b.prototype.clear=function(){this.JSC$6626_map_.clear();this.size=0};
b.prototype.has=function(c){return this.JSC$6626_map_.has(c)};
b.prototype.entries=function(){return this.JSC$6626_map_.entries()};
b.prototype.values=function(){return this.JSC$6626_map_.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.JSC$6626_map_.forEach(function(g){return c.call(d,g,g,e)})};
return b});
fx("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
fx("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)ix(b,d)&&c.push(b[d]);return c}});
fx("Object.is",function(a){return a?a:function(b,c){return b===c?b!==0||1/b===1/c:b!==b&&c!==c}});
fx("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<e;c++){var g=d[c];if(g===b||Object.is(g,b))return!0}return!1}});
fx("String.prototype.includes",function(a){return a?a:function(b,c){return kx(this,b,"includes").indexOf(b,c||0)!==-1}});
fx("Array.from",function(a){return a?a:function(b,c,d){c=c!=null?c:function(m){return m};
var e=[],g=typeof Symbol!="undefined"&&Symbol.iterator&&b[Symbol.iterator];if(typeof g=="function"){b=g.call(b);for(var k=0;!(g=b.next()).done;)e.push(c.call(d,g.value,k++))}else for(g=b.length,k=0;k<g;k++)e.push(c.call(d,b[k],k));return e}});
fx("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)ix(b,d)&&c.push([d,b[d]]);return c}});
fx("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}});
fx("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
fx("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
fx("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
fx("Number.isSafeInteger",function(a){return a?a:function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER}});
fx("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=kx(this,b,"endsWith");c===void 0&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;e>0&&c>0;)if(d[--c]!=b[--e])return!1;return e<=0}});
var J8a=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var g=c++;return{value:b(g,a[g]),done:!1}}d=!0;return{done:!0,value:void 0}}};
e[Symbol.iterator]=function(){return e};
return e};
fx("Array.prototype.entries",function(a){return a?a:function(){return J8a(this,function(b,c){return[b,c]})}});
fx("Math.imul",function(a){return a?a:function(b,c){b=Number(b);c=Number(c);var d=b&65535,e=c&65535;return d*e+((b>>>16&65535)*e+d*(c>>>16&65535)<<16>>>0)|0}});
fx("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||b===Infinity||b===-Infinity||b===0)return b;var c=Math.floor(Math.abs(b));return b<0?-c:c}});
fx("Number.isNaN",function(a){return a?a:function(b){return typeof b==="number"&&isNaN(b)}});
fx("Array.prototype.keys",function(a){return a?a:function(){return J8a(this,function(b){return b})}});
fx("Array.prototype.values",function(a){return a?a:function(){return J8a(this,function(b,c){return c})}});
fx("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);c<d;c++)this[c]=b;return this}});
var lx=function(a){return a?a:Array.prototype.fill};
fx("Int8Array.prototype.fill",lx);fx("Uint8Array.prototype.fill",lx);fx("Uint8ClampedArray.prototype.fill",lx);fx("Int16Array.prototype.fill",lx);fx("Uint16Array.prototype.fill",lx);fx("Int32Array.prototype.fill",lx);fx("Uint32Array.prototype.fill",lx);fx("Float32Array.prototype.fill",lx);fx("Float64Array.prototype.fill",lx);
fx("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError("r`"+b);b=b[Symbol.iterator].call(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(Object(d)!==d)throw new TypeError("s");c[d[0]]=d[1]}return c}});
fx("String.prototype.replaceAll",function(a){return a?a:function(b,c){if(b instanceof RegExp&&!b.global)throw new TypeError("t");return b instanceof RegExp?this.replace(b,c):this.replace(new RegExp(String(b).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),c)}});
fx("Object.getOwnPropertySymbols",function(a){return a?a:function(){return[]}});
fx("String.prototype.repeat",function(a){return a?a:function(b){var c=kx(this,null,"repeat");if(b<0||b>1342177279)throw new RangeError("u");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
fx("Array.prototype.findIndex",function(a){return a?a:function(b,c){return I8a(this,b,c).i}});
fx("Array.prototype.flatMap",function(a){return a?a:function(b,c){var d=[];Array.prototype.forEach.call(this,function(e,g){e=b.call(c,e,g,this);Array.isArray(e)?d.push.apply(d,e):d.push(e)});
return d}});
fx("String.prototype.codePointAt",function(a){return a?a:function(b){var c=kx(this,null,"codePointAt"),d=c.length;b=Number(b)||0;if(b>=0&&b<d){b|=0;var e=c.charCodeAt(b);if(e<55296||e>56319||b+1===d)return e;b=c.charCodeAt(b+1);return b<56320||b>57343?e:(e-55296)*1024+b+9216}}});
fx("String.fromCodePoint",function(a){return a?a:function(b){for(var c="",d=0;d<arguments.length;d++){var e=Number(arguments[d]);if(e<0||e>1114111||e!==Math.floor(e))throw new RangeError("v`"+e);e<=65535?c+=String.fromCharCode(e):(e-=65536,c+=String.fromCharCode(e>>>10&1023|55296),c+=String.fromCharCode(e&1023|56320))}return c}});
fx("String.prototype.padStart",function(a){return a?a:function(b,c){var d=kx(this,null,"padStart");b-=d.length;c=c!==void 0?String(c):" ";return(b>0&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}});
fx("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;
})})}});
fx("Object.hasOwn",function(a){return a?a:function(b,c){return Object.prototype.hasOwnProperty.call(b,c)}});
var K8a=function(a){a=Math.trunc(a)||0;a<0&&(a+=this.length);if(!(a<0||a>=this.length))return this[a]};
fx("Array.prototype.at",function(a){return a?a:K8a});
var mx=function(a){return a?a:K8a};
fx("Int8Array.prototype.at",mx);fx("Uint8Array.prototype.at",mx);fx("Uint8ClampedArray.prototype.at",mx);fx("Int16Array.prototype.at",mx);fx("Uint16Array.prototype.at",mx);fx("Int32Array.prototype.at",mx);fx("Uint32Array.prototype.at",mx);fx("Float32Array.prototype.at",mx);fx("Float64Array.prototype.at",mx);fx("String.prototype.at",function(a){return a?a:K8a});
fx("Math.sign",function(a){return a?a:function(b){b=Number(b);return b===0||isNaN(b)?b:b>0?1:-1}});
fx("Array.prototype.flat",function(a){return a?a:function(b){b=b===void 0?1:b;var c=[];Array.prototype.forEach.call(this,function(d){Array.isArray(d)&&b>0?(d=Array.prototype.flat.call(d,b-1),c.push.apply(c,d)):c.push(d)});
return c}});
fx("String.raw",function(a){return a?a:function(b,c){if(b==null)throw new TypeError("w");for(var d=b.raw,e=d.length,g="",k=0;k<e;++k)g+=d[k],k+1<e&&k+1<arguments.length&&(g+=String(arguments[k+1]));return g}});
fx("Reflect.ownKeys",function(a){return a?a:function(b){var c=[],d=Object.getOwnPropertyNames(b);b=Object.getOwnPropertySymbols(b);for(var e=0;e<d.length;e++)(d[e].substring(0,14)=="jscomp_symbol_"?b:c).push(d[e]);return c.concat(b)}});
fx("Object.getOwnPropertyDescriptors",function(a){return a?a:function(b){for(var c={},d=Reflect.ownKeys(b),e=0;e<d.length;e++)c[d[e]]=Object.getOwnPropertyDescriptor(b,d[e]);return c}});
fx("WeakSet",function(a){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(g){return!1}}())return a;
var b=function(c){this.JSC$6632_map_=new WeakMap;if(c){c=_.h(c);for(var d;!(d=c.next()).done;)this.add(d.value)}};
b.prototype.add=function(c){this.JSC$6632_map_.set(c,!0);return this};
b.prototype.has=function(c){return this.JSC$6632_map_.has(c)};
b.prototype.delete=function(c){return this.JSC$6632_map_.delete(c)};
return b});
fx("Promise.allSettled",function(a){function b(d){return{status:"fulfilled",value:d}}
function c(d){return{status:"rejected",reason:d}}
return a?a:function(d){var e=this;d=Array.from(d,function(g){return e.resolve(g).then(b,c)});
return e.all(d)}});
fx("Number.parseInt",function(a){return a||parseInt});
_._DumpException=window._DumpException||function(a){throw a;};
window._DumpException=_._DumpException;var L8a,nx,ox,px,M8a,N8a,O8a,P8a,Qba,Q8a;L8a=L8a||{};_.ja=this||self;_.Rj=function(a,b,c){a=a.split(".");c=c||_.ja;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};
nx=function(a){var b=_.Ji("WIZ_global_data.oxN3nb");a=b&&b[a];return a!=null?a:!1};
ox=_.ja._F_toggles||[];px=function(){};
px.get=function(){return null};
_.Ji=function(a,b){a=a.split(".");b=b||_.ja;for(var c=0;c<a.length;c++)if(b=b[a[c]],b==null)return null;return b};
_.qx=function(a){a.instance_=void 0;a.getInstance=function(){return a.instance_?a.instance_:a.instance_=new a}};
_.iba=function(a){var b=typeof a;return b!="object"?b:a?Array.isArray(a)?"array":b:"null"};
_.Sa=function(a){var b=_.iba(a);return b=="array"||b=="object"&&typeof a.length=="number"};
_.Za=function(a){var b=typeof a;return b=="object"&&a!=null||b=="function"};
_.$a=function(a){return Object.prototype.hasOwnProperty.call(a,M8a)&&a[M8a]||(a[M8a]=++N8a)};
M8a="closure_uid_"+(Math.random()*1E9>>>0);N8a=0;O8a=function(a,b,c){return a.call.apply(a.bind,arguments)};
P8a=function(a,b,c){if(!a)throw Error();if(arguments.length>2){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)}};
_.wg=function(a,b,c){_.wg=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?O8a:P8a;return _.wg.apply(null,arguments)};
_.xo=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)}};
_.rx=function(){return Date.now()};
Qba=function(a){return a};
_.sx=function(a,b){function c(){}
c.prototype=b.prototype;a.superClass_=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(d,e,g){for(var k=Array(arguments.length-2),m=2;m<arguments.length;m++)k[m-2]=arguments[m];return b.prototype[e].apply(d,k)}};
Q8a=function(a){return a};_.U=function(a,b,c,d){var e=arguments.length,g=e<3?b:d===null?d=Object.getOwnPropertyDescriptor(b,c):d,k;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")g=Reflect.decorate(a,b,c,d);else for(var m=a.length-1;m>=0;m--)if(k=a[m])g=(e<3?k(g):e>3?k(b,c,g):k(b,c))||g;return e>3&&g&&Object.defineProperty(b,c,g),g};
_.W=function(a,b){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(a,b)};
_.Pr=function(a,b){if(b!==null&&b!==void 0){if(typeof b!=="object"&&typeof b!=="function")throw new TypeError("x");if(c===void 0){if(!Symbol.dispose)throw new TypeError("z");var c=b[Symbol.dispose]}if(typeof c!=="function")throw new TypeError("A");a.stack.push({value:b,dispose:c,async:!1})}return b};
_.Qr=function(a){function b(g){a.error=a.hasError?new SuppressedError(g,a.error,"An error was suppressed during disposal."):g;a.hasError=!0}
function c(){for(;d=a.stack.pop();)try{if(!d.async&&e===1)return e=0,a.stack.push(d),Promise.resolve().then(c);if(d.dispose){var g=d.dispose.call(d.value);if(d.async)return e|=2,Promise.resolve(g).then(c,function(k){b(k);return c()})}else e|=1}catch(k){b(k)}if(e===1)return a.hasError?Promise.reject(a.error):Promise.resolve();
if(a.hasError)throw a.error;}
var d,e=0;c()};_.sx(_.ca,Error);_.ca.prototype.name="CustomError";var R8a;var S8a=void 0,T8a,U8a=typeof TextDecoder!=="undefined",daa,caa=typeof String.prototype.isWellFormed==="function",baa=typeof TextEncoder!=="undefined";var V8a;_.ug=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);e<128?b[c++]=e:(e<2048?b[c++]=e>>6|192:((e&64512)==55296&&d+1<a.length&&(a.charCodeAt(d+1)&64512)==56320?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>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};
V8a=function(a){for(var b=[],c=0,d=0;c<a.length;){var e=a[c++];if(e<128)b[d++]=String.fromCharCode(e);else if(e>191&&e<224){var g=a[c++];b[d++]=String.fromCharCode((e&31)<<6|g&63)}else if(e>239&&e<365){g=a[c++];var k=a[c++],m=a[c++];e=((e&7)<<18|(g&63)<<12|(k&63)<<6|m&63)-65536;b[d++]=String.fromCharCode(55296+(e>>10));b[d++]=String.fromCharCode(56320+(e&1023))}else g=a[c++],k=a[c++],b[d++]=String.fromCharCode((e&15)<<12|(g&63)<<6|k&63)}return b.join("")};var W8a,X8a,Y8a,Z8a,$8a,a9a,b9a;_.tx=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};
W8a=/&/g;X8a=/</g;Y8a=/>/g;Z8a=/"/g;$8a=/'/g;a9a=/\x00/g;b9a=/[\x00&<>"']/;var ux=!!(ox[0]&4096),c9a=!!(ox[0]&8192),d9a=!!(ox[0]&2),e9a=!!(ox[0]&4),f9a=!!(ox[0]&16),g9a=!!(ox[0]>>14&1);var va=ux?c9a:nx(610401301),h9a=ux?d9a:nx(513659523),i9a=ux?e9a:nx(568333945),fVa=ux?f9a:nx(1331761403),j9a=ux?g9a:nx(1981196515);var wa,k9a=_.ja.navigator;wa=k9a?k9a.userAgentData||null:null;var Nk;_.Na=function(a,b){return Array.prototype.indexOf.call(a,b,void 0)};
_.Mi=function(a,b,c){Array.prototype.forEach.call(a,b,c)};
_.vx=function(a,b,c){return Array.prototype.filter.call(a,b,c)};
_.Df=function(a,b,c){return Array.prototype.map.call(a,b,c)};
Nk=function(a,b,c){return Array.prototype.some.call(a,b,c)};
_.YIa=function(a,b,c){return Array.prototype.every.call(a,b,c)};var wx=function(a){wx[" "](a);return a},Sga;
wx[" "]=function(){};
Sga=function(a,b){try{return wx(a[b]),!0}catch(c){}return!1};
_.Tja=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};var l9a,m9a,n9a,p9a,q9a,NBa,r9a,s9a,t9a,v9a,w9a,x9a,C9a;_.P5a=function(){return _.ja.navigator||null};
l9a=gaa();_.xx=haa();_.Pj=xa("Edge");m9a=_.Pj||_.xx;_.yx=xa("Gecko")&&!(_.ta(_.ua(),"WebKit")&&!xa("Edge"))&&!(xa("Trident")||xa("MSIE"))&&!xa("Edge");_.zx=_.ta(_.ua(),"WebKit")&&!xa("Edge");n9a=_.zx&&xa("Mobile");_.o9a=_.qaa();p9a=_.raa();q9a=(Ga()?wa.platform==="Linux":xa("Linux"))||_.saa();NBa=_.oaa();r9a=paa();s9a=xa("iPad");t9a=xa("iPod");_.u9a=_.Ha();v9a=_.ta(_.ua(),"KaiOS");w9a=function(){var a=_.ja.document;return a?a.documentMode:void 0};
a:{var y9a="",z9a=function(){var a=_.ua();if(_.yx)return/rv:([^\);]+)(\)|;)/.exec(a);if(_.Pj)return/Edge\/([\d\.]+)/.exec(a);if(_.xx)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(_.zx)return/WebKit\/(\S+)/.exec(a);if(l9a)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
z9a&&(y9a=z9a?z9a[1]:"");if(_.xx){var A9a=w9a();if(A9a!=null&&A9a>parseFloat(y9a)){x9a=String(A9a);break a}}x9a=y9a}_.B9a=x9a;if(_.ja.document&&_.xx){var D9a=w9a();C9a=D9a?D9a:parseInt(_.B9a,10)||void 0}else C9a=void 0;_.E9a=C9a;var kpa,lpa,F9a;_.Ax=Da();kpa=paa()||xa("iPod");lpa=xa("iPad");F9a=_.kaa();_.Bx=_.Ea();_.Dj=_.jaa()&&!_.Ha();var G9a,Cx,H9a,wfa,I9a,THa,K9a,J9a;G9a={};Cx=null;H9a=_.yx||_.zx;wfa=H9a||typeof _.ja.btoa=="function";I9a=H9a||!_.Dj&&typeof _.ja.atob=="function";_.Bc=function(a,b){b===void 0&&(b=0);J9a();b=G9a[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,g=0;e<a.length-2;e+=3){var k=a[e],m=a[e+1],n=a[e+2],r=b[k>>2];k=b[(k&3)<<4|m>>4];m=b[(m&15)<<2|n>>6];n=b[n&63];c[g++]=r+k+m+n}r=0;n=d;switch(a.length-e){case 2:r=a[e+1],n=b[(r&15)<<2]||d;case 1:a=a[e],c[g]=b[a>>2]+b[(a&3)<<4|r>>4]+n+d}return c.join("")};
THa=function(a){if(I9a)return _.ja.atob(a);var b="";K9a(a,function(c){b+=String.fromCharCode(c)});
return b};
_.g4a=function(a){var b=[];K9a(a,function(c){b.push(c)});
return b};
_.cb=function(a){var b=a.length,c=b*3/4;c%3?c=Math.floor(c):_.ra("=.",a[b-1])&&(c=_.ra("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;K9a(a,function(g){d[e++]=g});
return e!==c?d.subarray(0,e):d};
K9a=function(a,b){function c(n){for(;d<a.length;){var r=a.charAt(d++),t=Cx[r];if(t!=null)return t;if(!_.pa(r))throw Error("E`"+r);}return n}
J9a();for(var d=0;;){var e=c(-1),g=c(0),k=c(64),m=c(64);if(m===64&&e===-1)break;b(e<<2|g>>4);k!=64&&(b(g<<4&240|k>>2),m!=64&&b(k<<6&192|m))}};
J9a=function(){if(!Cx){Cx={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));G9a[c]=d;for(var e=0;e<d.length;e++){var g=d[e];Cx[g]===void 0&&(Cx[g]=e)}}}};var Raa=typeof Uint8Array!=="undefined",Gaa=!_.xx&&typeof btoa==="function",Haa=/[-_.]/g,Eaa={"-":"+",_:"/",".":"="},zb={};var yb,M9a;yb=function(a,b){if(b!==zb)throw Error("G");this.JSC$6663_value_=a;if(a!=null&&a.length===0)throw Error("F");};
_.Ab=function(){return L9a||(L9a=new yb(null,zb))};
M9a=function(a){return new Uint8Array(wca(a)||0)};
yb.prototype.isEmpty=function(){return this.JSC$6663_value_==null};
yb.prototype.sizeBytes=function(){var a=wca(this);return a?a.length:0};
var wca=function(a){if(zb!==zb)throw Error("G");var b=a.JSC$6663_value_;b=b==null||Raa&&b!=null&&b instanceof Uint8Array?b:typeof b==="string"?Iaa(b):null;return b==null?b:a.JSC$6663_value_=b},L9a;var Kaa=void 0;var jb=typeof Symbol==="function"&&typeof Symbol()==="symbol",N9a=hb("jas",void 0,!0),Fba=hb(void 0,"0di"),Vc=hb(void 0,"1oa"),wc=hb(void 0,Symbol()),Sba=hb(void 0,"0ub"),gca=hb(void 0,"0actk"),tc=hb("m_m","messagePrototypeMarker",!0),$ba=hb(void 0,"vps");var Naa,Maa,Nc,O9a;Naa={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};Maa=Object.defineProperties;_.kb=jb?N9a:"internalArrayState";O9a=[];pb(O9a,7);Nc=Object.freeze(O9a);var uc={},Qaa={},P9a=function(a,b,c){this.iterable=a;this.mapper=b;this.thisArg=c};
P9a.prototype.next=function(){var a=this.iterable.next();a.done||(a.value=this.mapper.call(this.thisArg,a.value));return a};
P9a.prototype[Symbol.iterator]=function(){return this};
var Q9a=Object.freeze({}),Fb={};_.R9a=Kb(function(a){return a!==null&&a!==void 0});var Xaa=Kb(function(a){return typeof a==="number"}),Waa=Kb(function(a){return typeof a==="string"}),Zaa=Kb(function(a){return typeof a==="boolean"}),S9a=Kb(function(a){return a!=null&&typeof a==="object"&&typeof a.then==="function"}),tja=Kb(function(a){return typeof a==="function"}),xka=Kb(function(a){return!!a&&(typeof a==="object"||typeof a==="function")});var Yaa=typeof _.ja.BigInt==="function"&&typeof _.ja.BigInt(0)==="bigint";var V9a,T9a,W9a,U9a;_.zc=Kb(function(a){return Yaa?a>=T9a&&a<=U9a:a[0]==="-"?$aa(a,V9a):$aa(a,W9a)});
V9a=Number.MIN_SAFE_INTEGER.toString();T9a=Yaa?BigInt(Number.MIN_SAFE_INTEGER):void 0;W9a=Number.MAX_SAFE_INTEGER.toString();U9a=Yaa?BigInt(Number.MAX_SAFE_INTEGER):void 0;var X9a=typeof Uint8Array.prototype.slice==="function",Nb=0,Ob=0,eda;var gc,kc,Zb,lc,lba;gc=typeof BigInt==="function"?BigInt.asIntN:void 0;_.nc=typeof BigInt==="function"?BigInt.asUintN:void 0;kc=Number.isSafeInteger;Zb=Number.isFinite;lc=Math.trunc;lba=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var aca={};var Oba={},Y9a=function(){try{var a=function(){return t8a(Map,[],this.constructor)};
_.z(a,Map);wx(new a);return!1}catch(b){return!0}}(),Dx=function(){this.JSC$6691_map_=new Map};
_.f=Dx.prototype;_.f.get=function(a){return this.JSC$6691_map_.get(a)};
_.f.set=function(a,b){this.JSC$6691_map_.set(a,b);this.size=this.JSC$6691_map_.size;return this};
_.f.delete=function(a){a=this.JSC$6691_map_.delete(a);this.size=this.JSC$6691_map_.size;return a};
_.f.clear=function(){this.JSC$6691_map_.clear();this.size=this.JSC$6691_map_.size};
_.f.has=function(a){return this.JSC$6691_map_.has(a)};
_.f.entries=function(){return this.JSC$6691_map_.entries()};
_.f.keys=function(){return this.JSC$6691_map_.keys()};
_.f.values=function(){return this.JSC$6691_map_.values()};
_.f.forEach=function(a,b){return this.JSC$6691_map_.forEach(a,b)};
Dx.prototype[Symbol.iterator]=function(){return this.entries()};
var Dc=function(){if(Y9a)return Object.setPrototypeOf(Dx.prototype,Map.prototype),Object.defineProperties(Dx.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Dx;var a=function(){return t8a(Map,[],this.constructor)};
_.z(a,Map);return a}(),vc=function(a,b,c,d){c=c===void 0?Jba:c;
d=d===void 0?Jba:d;var e=Dc.call(this)||this;e.arrayState=a[_.kb]|0;e.valueCtor=b;e.keyToApi=c;e.valueToApi=e.valueCtor?Lba:d;for(var g=0;g<a.length;g++){var k=a[g],m=c(k[0],!1,!0),n=k[1];b?n===void 0&&(n=null):n=d(k[1],!1,!0,void 0,void 0,e.arrayState);Dc.prototype.set.call(e,m,n)}return e};
_.z(vc,Dc);var Z9a=function(a){if(a.arrayState&2)throw Error("K");};
_.f=vc.prototype;_.f.clear=function(){Z9a(this);Dc.prototype.clear.call(this)};
_.f.delete=function(a){Z9a(this);return Dc.prototype.delete.call(this,this.keyToApi(a,!0,!1))};
_.f.entries=function(){if(this.valueCtor){var a=Dc.prototype.keys.call(this);a=new P9a(a,Mba,this)}else a=Dc.prototype.entries.call(this);return a};
_.f.values=function(){if(this.valueCtor){var a=Dc.prototype.keys.call(this);a=new P9a(a,vc.prototype.get,this)}else a=Dc.prototype.values.call(this);return a};
_.f.forEach=function(a,b){this.valueCtor?Dc.prototype.forEach.call(this,function(c,d,e){a.call(b,e.get(d),d,e)}):Dc.prototype.forEach.call(this,a,b)};
_.f.set=function(a,b){Z9a(this);a=this.keyToApi(a,!0,!1);return a==null?this:b==null?(Dc.prototype.delete.call(this,a),this):Dc.prototype.set.call(this,a,this.valueToApi(b,!0,!0,this.valueCtor,!1,this.arrayState))};
_.f.has=function(a){return Dc.prototype.has.call(this,this.keyToApi(a,!1,!1))};
_.f.get=function(a){a=this.keyToApi(a,!1,!1);var b=Dc.prototype.get.call(this,a);if(b!==void 0){var c=this.valueCtor;return c?(c=this.valueToApi(b,!1,!0,c,this.callToMutableOnAccess,this.arrayState),c!==b&&Dc.prototype.set.call(this,a,c),c):b}};
vc.prototype[Symbol.iterator]=function(){return this.entries()};
vc.prototype.toJSON=void 0;var Nba;var Vba=function(){},Uca=function(a,b){for(var c in a)!isNaN(c)&&b(a,+c,a[c])},Wba=function(a){var b=new Vba;
Uca(a,function(c,d,e){b[d]=Ub(e)});
b.reviveUnknownFields=a.reviveUnknownFields;return b};var Uba;var bca,cca;var $9a,Rc,jl,ol,a$a,Lx,ml,b$a,c$a,Rx,d$a,Sx,Vx,Wx;$9a=_.Lb(0);_.Ex=function(a,b,c){return Rc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b,c)};
Rc=function(a,b,c,d){if(b===-1)return null;var e=b+(c?0:-1),g=a.length-1;if(!(g<1+(c?0:-1))){if(e>=g){var k=a[g];if(k!=null&&typeof k==="object"&&k.constructor===Object){c=k[b];var m=!0}else if(e===g)c=k;else return}else c=a[e];if(d&&c!=null){d=d(c);if(d==null)return d;if(!Object.is(d,c))return m?k[b]=d:a[e]=d,d}return c}};
_.Zj=function(a,b,c,d){Kc(a);var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Lc(e,e[_.kb]|0,b,c,d);return a};
_.Fx=function(a,b,c){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return rca(a,a[_.kb]|0,b,c)!==void 0};
_.Gx=function(a,b,c,d){var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return rca(e,e[_.kb]|0,b,ol(a,d,c))!==void 0};
_.Hx=function(a,b){return Rc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b,void 0,hba)};
_.$f=function(a){return a===Q9a?2:4};
_.Ix=function(a,b){a=Rc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b,void 0,lca);return a==null?_.Ab():a};
jl=function(a,b,c,d){Kc(a);var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=e[_.kb]|0;if(d==null){var k=oca(e);if(pca(k,e,g,c)===b)k.set(c,0);else return a}else g=qca(e,g,c,b);Lc(e,g,b,d);return a};
_.Jx=function(a,b,c,d){var e=a[_.kb]|0,g=Hb(e);e=qca(a,e,c,b,g);Lc(a,e,b,d,g)};
ol=function(a,b,c){return _.Kx(a,b)===c?c:-1};
_.Kx=function(a,b,c){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return pca(oca(a),a,void 0,b,c)};
a$a=function(a,b,c){var d=a[_.kb]|0,e=Hb(d),g=Rc(a,c,e);if(g!=null&&g[tc]===uc)return b=Kba(g),b!==g&&Lc(a,d,c,b,e),Jc(b),b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(g)){var k=g[_.kb]|0;if(k&2){var m=Fc(xc(g,k,Ic,!0,!0),b,!0);tb(m,2)}else k&64?m=g:m=Fc(m,b,!0)}else m=Fc(void 0,b,!0);m!==g&&Lc(a,d,c,m,e);return m};
_.Xj=function(a,b,c,d){var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=e[_.kb]|0;b=rca(e,g,b,c,d);if(b==null)return b;g=e[_.kb]|0;if(!xb(a,g)){var k=Kba(b);k!==b&&(Jc(a)&&(e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=e[_.kb]|0),b=k,Lc(e,g,c,b,d))}return b};
_.Zf=function(a,b,c,d){var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return sca(a,e,e[_.kb]|0,b,c,d,!1,!0)};
_.qd=function(a,b,c,d){c=tca(c);_.Zj(a,b,c,d);return a};
_.rd=function(a,b,c,d){d=tca(d);jl(a,b,c,d);return a};
Lx=function(a,b,c){Kc(a);var d=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=d[_.kb]|0;if(c==null)return Lc(d,e,b),a;for(var g=c===Nc?7:c[_.kb]|0,k=g,m=Qc(g),n=m||Object.isFrozen(c),r=!0,t=!0,u=0;u<c.length;u++){var x=c[u];m||(x=xb(x),r&&(r=!x),t&&(t=x))}m||(g=r?13:5,g=t?g&-8193:g|8192);n&&g===k||(c=Ub(c),k=0,g=Oc(g,e));g!==k&&pb(c,g);Lc(d,e,b,c);return a};
ml=function(a,b,c,d){vca(a,b,c,d);return a};
b$a=function(a,b,c){vca(a,b,Mx,void 0,c,1,!0);return a};
_.Nx=function(a,b){a=_.Ex(a,b);a!=null&&(typeof a==="bigint"?(0,_.zc)(a)?a=Number(a):(a=gc(64,a),a=(0,_.zc)(a)?Number(a):String(a)):a=_.$b(a)?typeof a==="number"?ic(a):fc(a):void 0);return a};
_.Ox=function(a,b){return kba(_.Ex(a,b))};
_.Px=function(a,b){return _.ec(_.Ex(a,b))};
_.og=function(a,b,c){return _.sc(_.Ex(a,b,c))};
_.Qx=function(a,b){var c=c===void 0?!1:c;var d;return(d=_.Ox(a,b))!=null?d:c};
_.bg=function(a,b,c){c=c===void 0?0:c;var d;return(d=_.Px(a,b))!=null?d:c};
c$a=function(a,b){var c=c===void 0?0:c;var d;return(d=_.nba(_.Ex(a,b)))!=null?d:c};
Rx=function(a,b,c){c=c===void 0?$9a:c;a=_.Ex(a,b);b=typeof a;a=a==null?a:b==="bigint"?_.Lb(gc(64,a)):_.$b(a)?b==="string"?pba(a):qba(a):void 0;return a!=null?a:c};
d$a=function(a){var b=b===void 0?$9a:b;a=_.Ex(a,23);var c=typeof a;a=a==null?a:c==="bigint"?_.Lb((0,_.nc)(64,a)):_.$b(a)?c==="string"?_.Bba(a):_.zba(a):void 0;return a!=null?a:b};
Sx=function(a,b){var c=c===void 0?0:c;var d;return(d=_.Hx(a,b))!=null?d:c};
_.Tx=function(a,b,c,d){c=c===void 0?"":c;var e;return(e=_.og(a,b,d))!=null?e:c};
_.Ux=function(a,b){var c=c===void 0?0:c;var d;return(d=_.cc(_.Ex(a,b)))!=null?d:c};
Vx=function(a,b){var c=c===void 0?"0":c;var d;return(d=Cba(_.Ex(a,b),!0))!=null?d:c};
Wx=function(a,b,c){return _.Tx(a,ol(a,c,b))};
_.Xx=function(a,b,c,d){return _.Xj(a,b,ol(a,d,c),void 0)};
_.gg=function(a,b,c){return _.Zj(a,b,jba(c))};
_.An=function(a,b,c){return _.Uc(a,b,jba(c),!1)};
_.Yx=function(a,b,c){return _.Zj(a,b,_.dc(c))};
_.ql=function(a,b,c){return _.Zj(a,b,jc(c))};
_.vf=function(a,b,c){return _.Zj(a,b,qc(c))};
_.kw=function(a,b,c,d){return _.Uc(a,b,qc(c),"",d)};
_.Yj=function(a,b,c){return _.Zj(a,b,c==null?c:_.bc(c))};
_.Zx=function(a,b,c){return _.Uc(a,b,c==null?c:_.bc(c),0)};var e$a=function(a,b,c,d){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6706_start_=0;this.init(a,b,c,d)},$x,g$a,h$a,j$a,Rca;
_.f=e$a.prototype;_.f.init=function(a,b,c,d){var e=d===void 0?{}:d;d=e.aliasBytesFields===void 0?!1:e.aliasBytesFields;e=e.treatNewDataAsImmutable===void 0?!1:e.treatNewDataAsImmutable;this.aliasBytesFields=d;this.treatNewDataAsImmutable=e;a&&(a=xca(a,this.treatNewDataAsImmutable),this.bytes_=a.buffer,this.bytesAreImmutable_=a.isImmutable,this.JSC$6706_start_=b||0,this.end_=c!==void 0?this.JSC$6706_start_+c:this.bytes_.length,this.cursor_=this.JSC$6706_start_)};
_.f.free=function(){this.clear();f$a.length<100&&f$a.push(this)};
_.f.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6706_start_=0;this.aliasBytesFields=!1};
_.f.reset=function(){this.cursor_=this.JSC$6706_start_};
_.f.atEnd=function(){return this.cursor_==this.end_};
_.ay=function(a,b){var c=0,d=0,e=0,g=a.bytes_,k=a.cursor_;do{var m=g[k++];c|=(m&127)<<e;e+=7}while(e<32&&m&128);e>32&&(d|=(m&127)>>4);for(e=3;e<32&&m&128;e+=7)m=g[k++],d|=(m&127)<<e;$x(a,k);if(m<128)return b(c>>>0,d>>>0);throw Error("Z");};
$x=function(a,b){a.cursor_=b;if(b>a.end_)throw Error("$`"+b+"`"+a.end_);};
_.by=function(a){var b=a.bytes_,c=a.cursor_,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 Error("Z");$x(a,c);return e};
_.cy=function(a){var b=a.bytes_,c=a.cursor_,d=b[c],e=b[c+1],g=b[c+2];b=b[c+3];$x(a,a.cursor_+4);return(d<<0|e<<8|g<<16|b<<24)>>>0};
g$a=function(a){var b=_.cy(a);a=_.cy(a);return cba(b,a)};
h$a=function(a){var b=_.cy(a),c=_.cy(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*4.9E-324*b:a*Math.pow(2,d-1075)*(b+4503599627370496)};
_.i$a=function(a){for(var b=0,c=a.cursor_,d=c+10,e=a.bytes_;c<d;){var g=e[c++];b|=g;if((g&128)===0)return $x(a,c),!!(b&127)}throw Error("Z");};
j$a=function(a,b){if(b<0)throw Error("aa`"+b);var c=a.cursor_,d=c+b;if(d>a.end_)throw Error("$`"+(a.end_-c)+"`"+b);a.cursor_=d;return c};
Rca=function(a,b){if(b==0)return _.Ab();var c=j$a(a,b);a.aliasBytesFields&&a.bytesAreImmutable_?c=a.bytes_.subarray(c,c+b):(a=a.bytes_,b=c+b,c=c===b?new Uint8Array(0):X9a?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return c.length==0?_.Ab():new yb(c,zb)};
e$a.prototype.getDataView=function(){var a=this.dataView_;a||(a=this.bytes_,a=this.dataView_=new DataView(a.buffer,a.byteOffset,a.byteLength));return a};
var f$a=[];var l$a=function(a,b,c,d){if(f$a.length){var e=f$a.pop();e.init(a,b,c,d);a=e}else a=new e$a(a,b,c,d);this.decoder_=a;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;k$a(this,d)},k$a=function(a,b){b=b===void 0?{}:b;
a.discardUnknownFields=b.discardUnknownFields===void 0?!1:b.discardUnknownFields},Vca=function(a,b,c,d){if(m$a.length){var e=m$a.pop();
k$a(e,d);e.decoder_.init(a,b,c,d);return e}return new l$a(a,b,c,d)},Oca,Qca,n$a,m$a;
l$a.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;m$a.length<100&&m$a.push(this)};
l$a.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
Oca=function(a){if(a.decoder_.atEnd())return!1;a.fieldCursor_=a.decoder_.cursor_;var b=_.by(a.decoder_)>>>0,c=b>>>3;b&=7;if(!(b>=0&&b<=5))throw Error("V`"+b+"`"+a.fieldCursor_);if(c<1)throw Error("W`"+c+"`"+a.fieldCursor_);a.nextField_=c;a.nextWireType_=b;return!0};
Qca=function(a){switch(a.nextWireType_){case 0:a.nextWireType_!=0?Qca(a):_.i$a(a.decoder_);break;case 1:a=a.decoder_;$x(a,a.cursor_+8);break;case 2:if(a.nextWireType_!=2)Qca(a);else{var b=_.by(a.decoder_)>>>0;a=a.decoder_;$x(a,a.cursor_+b)}break;case 5:a=a.decoder_;$x(a,a.cursor_+4);break;case 3:b=a.nextField_;do{if(!Oca(a))throw Error("X");if(a.nextWireType_==4){if(a.nextField_!=b)throw Error("Y");break}Qca(a)}while(1);break;default:throw Error("V`"+a.nextWireType_+"`"+a.fieldCursor_);}};
n$a=function(a,b,c){var d=a.decoder_.end_,e=_.by(a.decoder_)>>>0,g=a.decoder_.cursor_+e,k=g-d;k<=0&&(a.decoder_.end_=g,c(b,a,void 0,void 0,void 0),k=g-a.decoder_.cursor_);if(k)throw Error("U`"+e+"`"+(e-k));a.decoder_.cursor_=g;a.decoder_.end_=d};
_.o$a=function(a){var b=_.by(a.decoder_)>>>0;a=a.decoder_;var c=j$a(a,b);a=a.bytes_;if(U8a){var d=a,e;(e=T8a)||(e=T8a=new TextDecoder("utf-8",{fatal:!0}));b=c+b;d=c===0&&b===d.length?d:d.subarray(c,b);try{var g=e.decode(d)}catch(r){if(S8a===void 0){try{e.decode(new Uint8Array([128]))}catch(t){}try{e.decode(new Uint8Array([97])),S8a=!0}catch(t){S8a=!1}}!S8a&&(T8a=void 0);throw r;}}else{g=c;b=g+b;c=[];for(var k=null,m,n;g<b;)m=a[g++],m<128?c.push(m):m<224?g>=b?ha():(n=a[g++],m<194||ea(n)?(g--,ha()):
c.push((m&31)<<6|n&63)):m<240?g>=b-1?ha():(n=a[g++],ea(n)||m===224&&n<160||m===237&&n>=160||ea(e=a[g++])?(g--,ha()):c.push((m&15)<<12|(n&63)<<6|e&63)):m<=244?g>=b-2?ha():(n=a[g++],ea(n)||(m<<28)+(n-144)>>30!==0||ea(e=a[g++])||ea(d=a[g++])?(g--,ha()):(m=(m&7)<<18|(n&63)<<12|(e&63)<<6|d&63,m-=65536,c.push((m>>10&1023)+55296,(m&1023)+56320))):ha(),c.length>=8192&&(k=aaa(k,c),c.length=0);g=aaa(k,c)}return g};
_.p$a=function(a){var b=_.by(a.decoder_)>>>0;return Rca(a.decoder_,b)};
_.q$a=function(a,b,c){var d=_.by(a.decoder_)>>>0;for(d=a.decoder_.cursor_+d;a.decoder_.cursor_<d;)c.push(b(a.decoder_))};
m$a=[];_.bd=function(a,b,c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a,b,c)};
_.bd.prototype.toJSON=function(){return Ec(this)};
_.bd.prototype.serialize=function(a){return JSON.stringify(Ec(this,a))};
var wda=function(a,b){if(b==null||b=="")return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("ca");return new a(Paa(b))};
_.bd.prototype.getExtension=function(a){Tba(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return a.ctor?a.isRepeated?a.getExtensionFn(this,a.ctor,175237375,_.$f(),a.JSC$6717_hasMessageId):a.getExtensionFn(this,a.ctor,175237375,a.JSC$6717_hasMessageId):a.isRepeated?a.getExtensionFn(this,175237375,_.$f(),a.JSC$6717_hasMessageId):a.getExtensionFn(this,175237375,a.defaultValue,a.JSC$6717_hasMessageId)};
_.bd.prototype.clone=function(){var a=this,b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;a=new a.constructor(xc(b,b[_.kb]|0,Ic,!0,!0));tb(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,2);return a};
_.bd.prototype.isImmutable=function(){return xb(this)};
_.bd.prototype[tc]=uc;_.bd.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var r$a=function(a,b){this.JSC$6719_lo=a>>>0;this.JSC$6719_hi=b>>>0},t$a=function(a){if(!a)return s$a||(s$a=new r$a(0,0));
if(!/^\d+$/.test(a))return null;gba(a);return new r$a(Nb,Ob)},s$a,ida=function(a,b){this.JSC$6721_lo=a>>>0;
this.JSC$6721_hi=b>>>0},gda=function(a){if(!a)return u$a||(u$a=new ida(0,0));
if(!/^-?\d+$/.test(a))return null;gba(a);return new ida(Nb,Ob)},u$a;var v$a=function(){this.JSC$6723_buffer_=[]},hda,w$a;
v$a.prototype.length=function(){return this.JSC$6723_buffer_.length};
v$a.prototype.end=function(){var a=this.JSC$6723_buffer_;this.JSC$6723_buffer_=[];return a};
hda=function(a,b,c){for(;c>0||b>127;)a.JSC$6723_buffer_.push(b&127|128),b=(b>>>7|c<<25)>>>0,c>>>=7;a.JSC$6723_buffer_.push(b)};
w$a=function(a,b){for(;b>127;)a.JSC$6723_buffer_.push(b&127|128),b>>>=7;a.JSC$6723_buffer_.push(b)};
_.jda=function(a,b){if(b>=0)w$a(a,b);else{for(var c=0;c<9;c++)a.JSC$6723_buffer_.push(b&127|128),b>>=7;a.JSC$6723_buffer_.push(1)}};
_.gd=function(a,b){a.JSC$6723_buffer_.push(b>>>0&255);a.JSC$6723_buffer_.push(b>>>8&255);a.JSC$6723_buffer_.push(b>>>16&255);a.JSC$6723_buffer_.push(b>>>24&255)};var x$a,cd,lda,oda;x$a=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new v$a};
cd=function(a,b){b.length!==0&&(a.blocks_.push(b),a.totalLength_+=b.length)};
_.Bca=function(a,b){_.fd(a,b,2);b=a.encoder_.end();cd(a,b);b.push(a.totalLength_);return b};
_.Cca=function(a,b){var c=b.pop();for(c=a.totalLength_+a.encoder_.length()-c;c>127;)b.push(c&127|128),c>>>=7,a.totalLength_++;b.push(c);a.totalLength_++};
_.fd=function(a,b,c){w$a(a.encoder_,b*8+c)};
lda=function(a,b,c){if(c!=null){switch(typeof c){case "string":t$a(c)}_.fd(a,b,1);switch(typeof c){case "number":a=a.encoder_;aba(c);_.gd(a,Nb);_.gd(a,Ob);break;case "bigint":c=BigInt.asUintN(64,c);c=new r$a(Number(c&BigInt(4294967295)),Number(c>>BigInt(32)));a=a.encoder_;b=c.JSC$6719_hi;_.gd(a,c.JSC$6719_lo);_.gd(a,b);break;default:c=t$a(c),a=a.encoder_,b=c.JSC$6719_hi,_.gd(a,c.JSC$6719_lo),_.gd(a,b)}}};
oda=function(a,b,c){_.fd(a,b,2);w$a(a.encoder_,c.length);cd(a,a.encoder_.end());cd(a,c)};var yca,A$a,C$a;yca=_.Xc();_.y$a=_.Xc();_.z$a=_.Xc();A$a=_.Xc();_.dy=_.Xc();_.B$a=_.Xc();C$a=_.Xc();_.D$a=_.Xc();_.E$a=_.Xc();var Yc=function(a,b,c){this.$$binaryReaderFn=a;this.$$binaryWriterFn=b;a=Qba(yca);this.$$isMsg=!!a&&c===a||!1},Gca=zca(function(a,b,c,d,e){if(a.nextWireType_!==2)return!1;
n$a(a,a$a(b,d,c),e);return!0},Dca),Hca=zca(function(a,b,c,d,e){if(a.nextWireType_!==2)return!1;
n$a(a,a$a(b,d,c),e);return!0},Dca),Xca=Symbol(),Kca=Symbol(),Nca=Symbol(),$ca=Symbol(),Sca=Symbol(),Eca,Fca;var tda,F$a,G$a,H$a,I$a,J$a,K$a,L$a,M$a,N$a,O$a,Q$a,R$a,T$a,U$a;tda=function(a,b){var c=new x$a;ada(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c,Zc(Xca,Wca,Yca,b));cd(c,c.encoder_.end());a=new Uint8Array(c.totalLength_);b=c.blocks_;for(var d=b.length,e=0,g=0;g<d;g++){var k=b[g];a.set(k,e);e+=k.length}c.blocks_=[a];return a};
F$a=_.dd(function(a,b,c){if(a.nextWireType_!==1)return!1;_.ed(b,c,h$a(a.decoder_));return!0},fda,C$a);
G$a=_.dd(function(a,b,c,d){if(a.nextWireType_!==1)return!1;_.Jx(b,c,d,h$a(a.decoder_));return!0},fda,C$a);
H$a=_.dd(function(a,b,c,d){if(a.nextWireType_!==5)return!1;var e=_.cy(a.decoder_);a=(e>>31)*2+1;var g=e>>>23&255;e&=8388607;_.Jx(b,c,d,g==255?e?NaN:a*Infinity:g==0?a*1.401298464324817E-45*e:a*Math.pow(2,g-150)*(e+8388608));return!0},function(a,b,c){b=hba(b);
b!=null&&(_.fd(a,c,5),a=a.encoder_,c=eda||(eda=new DataView(new ArrayBuffer(8))),c.setFloat32(0,+b,!0),Ob=0,Nb=c.getUint32(0,!0),_.gd(a,Nb))},_.Xc());
_.ey=_.dd(function(a,b,c){if(a.nextWireType_!==0)return!1;_.ed(b,c,_.ay(a.decoder_,dba));return!0},_.id,_.dy);
I$a=_.dd(function(a,b,c){if(a.nextWireType_!==0)return!1;a=_.ay(a.decoder_,dba);_.ed(b,c,a===0?void 0:a);return!0},_.id,_.dy);
J$a=_.dd(function(a,b,c,d){if(a.nextWireType_!==0)return!1;_.Jx(b,c,d,_.ay(a.decoder_,dba));return!0},_.id,_.dy);
_.fy=_.dd(function(a,b,c){if(a.nextWireType_!==0)return!1;_.ed(b,c,_.by(a.decoder_));return!0},kda,A$a);
K$a=_.dd(function(a,b,c){if(a.nextWireType_!==0)return!1;a=_.by(a.decoder_);_.ed(b,c,a===0?void 0:a);return!0},kda,A$a);
L$a=_.dd(function(a,b,c,d){if(a.nextWireType_!==0)return!1;_.Jx(b,c,d,_.by(a.decoder_));return!0},kda,A$a);
M$a=_.dd(function(a,b,c){if(a.nextWireType_!==1)return!1;_.ed(b,c,g$a(a.decoder_));return!0},_.mda,_.B$a);
N$a=_.dda(function(a,b,c){if(a.nextWireType_!==1&&a.nextWireType_!==2)return!1;b=_.nca(b,b[_.kb]|0,c);a.nextWireType_==2?_.q$a(a,g$a,b):b.push(g$a(a.decoder_));return!0},function(a,b,c){b=_.cda(Eba,b,!1);
if(b!=null)for(var d=0;d<b.length;d++)lda(a,c,b[d])},_.B$a);
_.gy=_.dd(function(a,b,c){if(a.nextWireType_!==0)return!1;_.ed(b,c,_.i$a(a.decoder_));return!0},_.nda,_.y$a);
O$a=_.dd(function(a,b,c,d){if(a.nextWireType_!==0)return!1;_.Jx(b,c,d,_.i$a(a.decoder_));return!0},_.nda,_.y$a);
_.hy=_.dd(function(a,b,c){if(a.nextWireType_!==2)return!1;_.ed(b,c,_.o$a(a));return!0},_.pda,_.z$a);
_.P$a=_.dd(function(a,b,c,d){if(a.nextWireType_!==2)return!1;_.Jx(b,c,d,_.o$a(a));return!0},_.pda,_.z$a);
Q$a=_.dda(function(a,b,c){if(a.nextWireType_!==2)return!1;a=_.o$a(a);_.nca(b,b[_.kb]|0,c).push(a);return!0},function(a,b,c){b=_.cda(_.sc,b,!0);
if(b!=null)for(var d=0;d<b.length;d++){var e=a,g=c,k=b[d];k!=null&&oda(e,g,eaa(k))}},_.z$a);
R$a=void 0;R$a=R$a===void 0?yca:R$a;_.iy=new Yc(function(a,b,c,d,e){if(a.nextWireType_!==2)return!1;d=Fc(void 0,d,!0);_.nca(b,b[_.kb]|0,c).push(d);n$a(a,d,e);return!0},function(a,b,c,d,e){if(Array.isArray(b))for(var g=0;g<b.length;g++)qda(a,b[g],c,d,e)},R$a);
_.jy=zca(function(a,b,c,d,e,g){if(a.nextWireType_!==2)return!1;var k=b[_.kb]|0;qca(b,k,g,c,Hb(k));b=a$a(b,d,c);n$a(a,b,e);return!0},qda);
_.S$a=_.dd(function(a,b,c){if(a.nextWireType_!==2)return!1;_.ed(b,c,_.p$a(a));return!0},_.rda,_.D$a);
T$a=_.dd(function(a,b,c,d){if(a.nextWireType_!==2)return!1;_.Jx(b,c,d,_.p$a(a));return!0},_.rda,_.D$a);
U$a=_.dd(function(a,b,c,d){if(a.nextWireType_!==0)return!1;_.Jx(b,c,d,_.by(a.decoder_)>>>0);return!0},function(a,b,c){b=_.nba(b);
b!=null&&b!=null&&(_.fd(a,c,0),w$a(a.encoder_,b))},_.Xc());
_.ky=_.dd(function(a,b,c){if(a.nextWireType_!==0)return!1;_.ed(b,c,_.by(a.decoder_));return!0},_.sda,_.E$a);var X$a=function(){var a=V$a;this.ctor=W$a;this.isRepeated=0;this.getExtensionFn=_.Xj;this.defaultValue=void 0;this.JSC$6717_hasMessageId=a.messageId!=null?Fb:void 0};
X$a.prototype.register=function(){wx(this)};var Y$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Y$a,_.bd);var Z$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Z$a,_.bd);var zda=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(zda,_.bd);var $$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z($$a,_.bd);var aab=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(aab,_.bd);var bab=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(bab,_.bd);var cab=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(cab,_.bd);cab.prototype.getData=function(){return _.Ix(this,2)};var dab=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(dab,_.bd);var eab=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(eab,_.bd);eab.prototype.getStyle=function(){return _.Xj(this,Y$a,1)};var pd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(pd,_.bd);pd.prototype.getPayloadCase=function(){return _.Kx(this,sd)};
pd.prototype.getStyle=function(){return _.Xx(this,eab,6,sd)};
var fab=function(){var a=new pd,b=new aab;return _.rd(a,7,sd,b)},gab=function(){var a=new pd,b=new bab;
return _.rd(a,8,sd,b)},sd=[1,
2,3,4,5,6,7,8];var hab=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(hab,_.bd);var iab=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(iab,_.bd);var jab=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(jab,_.bd);var kab=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(kab,_.bd);var lab=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(lab,_.bd);var mab=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(mab,_.bd);var nab=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(nab,_.bd);var oab=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(oab,_.bd);oab.prototype.getData=function(){return _.Ix(this,2)};var pab=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(pab,_.bd);var yda=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(yda,_.bd);yda.prototype.getPayloadCase=function(){return _.Kx(this,ly)};
var ly=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var my=function(a,b){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.code=b===void 0?2:b};
_.z(my,Error);var qab=Promise;var rab=function(a){this.channelPromise=a};
rab.prototype.send=function(a,b,c){this.channelPromise.then(function(d){d.send(a,b,c)})};var sab=function(a,b){this.data=a;this.channel=b};
sab.prototype.reply=function(a,b,c){this.channel.send(a,b,c)};var tab=function(a){this.JSC$6795_port_=a};
tab.prototype.send=function(a,b,c){c=c===void 0?[]:c;var d=new MessageChannel;uab(d.port1,b);this.JSC$6795_port_.postMessage(a,[d.port2].concat(c))};
var vab=function(a,b){uab(a,b);return new tab(a)},uab=function(a,b){b&&(a.onmessage=function(c){b(new sab(c.data,vab(c.ports[0])))})};var wab=function(a){this.verifier_=a},xab=function(a){var b=Object.create(null);
(typeof a==="string"?[a]:a).forEach(function(c){if(c==="null")throw Error("ea");b[c]=!0});
return function(c){return b[c]===!0}};_.yab=function(){if(!_.ja.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{var c=function(){};
_.ja.addEventListener("test",c,b);_.ja.removeEventListener("test",c,b)}catch(d){}return a}();var zab;_.ny=function(a){var b=a.destination;var c=a.iframe;var d=a.origin;var e=a.channelName===void 0?"ZNWN1d":a.channelName;var g=a.onMessage===void 0?void 0:a.onMessage;a=a.onEstablished===void 0?void 0:a.onEstablished;return zab({destination:b,getSource:function(){return c.contentWindow},
originVerifier:d instanceof wab?d:typeof d==="function"?new wab(d):new wab(xab(d)),channelName:e,onMessage:g,onEstablished:a})};
zab=function(a){var b=a.destination;var c=a.getSource;var d=a.originVerifier;var e=a.token===void 0?void 0:a.token;var g=a.channelName;var k=a.onMessage===void 0?void 0:a.onMessage;var m=a.onEstablished===void 0?void 0:a.onEstablished;return new rab(new qab(function(n,r){var t=function(u){u.source&&u.source===c()&&d.verifier_(u.origin)&&(u.data.n||u.data)===g&&(b.removeEventListener("message",t,!1),e&&u.data.t!==e?r(Error("fa`"+g+"`"+e+"`"+u.data.t)):(n(vab(u.ports[0],k)),m&&m(u)))};
b.addEventListener("message",t,!1)}))};var Aab=function(a){try{a()}catch(b){ka(b)}};var Cab=function(a){var b=this;var c=a.getMessageType;var d=a.onUnregisteredMessage===void 0?function(){}:a.onUnregisteredMessage;
var e=a.onBeforeRegisteredMessage===void 0?function(){}:a.onBeforeRegisteredMessage;
a=a.onAfterRegisteredMessage===void 0?function(){}:a.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=c;this.onUnregisteredMessage_=d;this.onBeforeRegisteredMessage_=e;this.onAfterRegisteredMessage_=a;this.onMessage=function(g){return Bab(b,g)}};
Cab.prototype.register=function(a,b){this.registry_.set(a,b);return this};
var Bab=function(a,b){var c=a.getMessageType_(b.data),d=a.registry_.get(c);d?(Aab(function(){return a.onBeforeRegisteredMessage_(b,c)}),Aab(function(){return d(b)}),Aab(function(){return a.onAfterRegisteredMessage_(b,c)})):Aab(function(){return a.onUnregisteredMessage_(b,c)})};var Dab=function(a){this.JSC$6812_channel_=a},Fab,Gab;
Dab.prototype.send=function(a,b,c){this.JSC$6812_channel_.send(Ec(a),b,c)};
_.Eab=function(a,b){return function(c){var d=new a(c.data);return b(new sab(d,c.channel))}};
Fab=function(a){return function(b){return a(new sab(b.data,new Dab(b.channel)))}};
Gab=function(a,b){return Fab(_.Eab(a,b))};var Hab=function(a,b,c,d){this.registry=a;this.delegate=b;this.receiveMessageConstructor=c;this.createInitMessage=d;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},xda=function(a){var b=new Cab({getMessageType:a.getPayloadCase});
return new Hab(b,new Dab(_.ny({iframe:a.child,destination:window,origin:a.origin,channelName:a.channelName,onMessage:Gab(a.receiveMessageConstructor,b.onMessage)})),a.receiveMessageConstructor,a.createInitMessage)},Iab=function(a,b){a.createInitMessage=b};
Hab.prototype.send=function(a){if(!this.initialised)throw new my("Attempted to send a message before initialisation.");this.delegate.send(a)};
var Jab=function(a,b){return _.l(function(c){if(!a.initialised)throw new my("Attempted to send a message before initialisation.");return c.return(new Promise(function(d){a.delegate.send(b,Gab(a.receiveMessageConstructor,d))}))})};
Hab.prototype.init=function(){var a=this;return _.l(function(b){if(a.initialised)throw new my("Attempted to initialise twice. The SDK can only be initialised once.");if(a.createInitMessage!==void 0){var c=a.delegate,d=c.send,e=a.createInitMessage;var g=new Z$a;var k=[].concat(_.De(a.features));g=_.Sc(g,1,k,_.bc);d.call(c,e.call(a,g))}a.initialised=!0;_.ue(b)})};
var oy=function(a,b){if(a.initialised)throw new my("Attempted to use a new API after initialisation. All APIs must be set up before initialising the SDK.");a.features.add(b);return a.registry};
_.Um.Object.defineProperties(Hab.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var Kab=function(a){this.channel=a;this.registered=!1};
Kab.prototype.update=function(a){if(this.channel.isInitialised){if(!this.registered)throw new my("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var b=new pd;var c=new $$a;c=_.gg(c,1,a);b=_.rd(b,2,sd,c);this.channel.send(b)}else this.register();this.JSC$6826_audioEnabled=a};
Kab.prototype.register=function(){oy(this.channel,1);this.registered=!0};
Kab.prototype.isAudioEnabled=function(){return this.JSC$6826_audioEnabled};var Lab=function(a){this.channel=a};
_.f=Lab.prototype;_.f.onFirstFrameReady=function(a){oy(this.channel,2).register(11,function(b){b=_.Xx(b.data,hab,11,ly);if(!b)throw new my("Unexpectedly nonexistent GameFirstFrameReadyEvent");a(_.Tx(b,1))})};
_.f.onReady=function(a){oy(this.channel,2).register(4,function(b){b=_.Xx(b.data,jab,4,ly);if(!b)throw new my("Unexpectedly nonexistent GameReadyEvent");a(_.Tx(b,1))})};
_.f.onLevelComplete=function(a){oy(this.channel,2).register(5,function(b){b=_.Xx(b.data,kab,5,ly);if(!b)throw new my("Unexpectedly nonexistent LevelCompleteEvent");a(_.Tx(b,1),_.bg(b,2))})};
_.f.onGameOver=function(a){oy(this.channel,2).register(6,function(b){b=_.Xx(b.data,iab,6,ly);if(!b)throw new my("Unexpectedly nonexistent GameOverEvent");a(_.Tx(b,1))})};
_.f.pause=function(){var a=this;if(!this.channel.isInitialised)return oy(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new my("Using unregistered Game Feature: pause.");var b=fab();return new Promise(function(c){return _.l(function(d){if(d.nextAddress==1)return _.p(d,Jab(a.channel,b),2);c();_.ue(d)})})};
_.f.resume=function(){var a=this;if(!this.channel.isInitialised)return oy(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new my("Using unregistered Game Feature: resume.");var b=gab();return new Promise(function(c){return _.l(function(d){if(d.nextAddress==1)return _.p(d,Jab(a.channel,b),2);c();_.ue(d)})})};var Mab=function(a){this.channel=a};
Mab.prototype.onReady=function(a){oy(this.channel,5).register(8,function(b){if(!_.Xx(b.data,lab,8,ly))throw new my("Unexpectedly nonexistent PageReadyEvent");a()})};var Nab=function(a){this.channel=a};
Nab.prototype.onChange=function(a){oy(this.channel,3).register(7,function(b){b=_.Xx(b.data,mab,7,ly);if(!b)throw new my("Unexpectedly nonexistent ScoreEvent");a(_.Tx(b,1),_.bg(b,2))})};var Oab={load:function(){throw new my("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new my("Storage used, but storage.onSave() listener not set!");}},Pab=function(a){this.channel=a;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},Qab=function(a){oy(a.channel,4).register(2,Oab.load).register(3,Oab.save);
a.initialSetupDone=!0};
Pab.prototype.onLoad=function(a){this.initialSetupDone||Qab(this);this.loadRegistered||(this.loadRegistered=!0,oy(this.channel,4).register(2,function(b){var c,d,e;return _.l(function(g){if(g.nextAddress==1){c=_.Xx(b.data,nab,2,ly);if(!c)throw new my("Unexpectedly nonexistent StorageLoad");d=_.Tx(c,1);return _.p(g,a(d),2)}e=g.yieldResult;var k=b.reply,m=new pd;var n=new cab;n=_.vf(n,1,d);n=_.Zj(n,2,_.Eb(e,!1));m=_.rd(m,3,sd,n);k.call(b,m);_.ue(g)})}))};
Pab.prototype.onSave=function(a){this.initialSetupDone||Qab(this);this.saveRegistered||(this.saveRegistered=!0,oy(this.channel,4).register(3,function(b){var c,d,e;return _.l(function(g){if(g.nextAddress==1){c=_.Xx(b.data,oab,3,ly);if(!c)throw new my("Unexpectedly nonexistent StorageSave");d=_.Tx(c,1);e=M9a(c.getData());return _.p(g,a(d,e),2)}var k=b.reply,m=new pd;var n=new dab;n=_.vf(n,1,d);m=_.rd(m,4,sd,n);k.call(b,m);_.ue(g)})}))};var Rab=function(a){this.channel=a};
Rab.prototype.update=function(a){if(!this.channel.features.has(6))throw new my("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var b=new pd,c=new eab;a=_.qd(c,1,a);b=_.rd(b,6,sd,a);this.channel.send(b)};
Rab.prototype.register=function(){oy(this.channel,6)};var Sab=function(a){this.channel=a;this.userActivityLoggingIntervalMs=0};
Sab.prototype.onUserActivity=function(a,b){this.userActivityLoggingIntervalMs=b;oy(this.channel,7).register(9,function(c){if(!_.Xx(c.data,pab,9,ly))throw new my("Unexpectedly nonexistent ClickEvent");a()})};var Uab=function(a){var b=this;this.channel=a;this.init=this.channel.init.bind(this.channel);this.page=new Mab(this.channel);this.game=new Lab(this.channel);this.audio=new Kab(this.channel);this.score=new Nab(this.channel);this.storage=new Pab(this.channel);this.style=new Rab(this.channel);this.userActivity=new Sab(this.channel);Iab(this.channel,function(c){var d=new zda;c=_.qd(d,1,c);c=_.Yx(c,3,b.userActivity.userActivityLoggingIntervalMs);d=b.audio.isAudioEnabled();d!==void 0&&_.gg(c,2,d);d=new pd;
return _.rd(d,5,sd,c)})};var Vab=function(){this.timedFunctionContext=0};
Vab.prototype.timeExecution=function(a,b){var c=this;return function(){var d=_.Kd.apply(0,arguments);c.timedFunctionContext=a;return b.apply(null,_.De(d))}};var Wab=function(){var a={};this.priorityTasks=(a[3]=[],a[2]=[],a[1]=[],a);this.isFlushing=!1},mf=function(a,b,c){var d=Xab(a,c);
a.priorityTasks[c].push(b);d&&a.priorityTasks[c].length===1&&a.flush()},Xab=function(a,b){return Object.keys(a.priorityTasks).map(function(c){return Number(c)}).filter(function(c){return!isNaN(c)&&c>b}).every(function(c){return a.priorityTasks[c].length===0})};
Wab.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(a){return a.length>0});)Yab(this,3),Yab(this,2),Yab(this,1)}catch(a){throw Object.values(this.priorityTasks).forEach(function(b){return void b.splice(0,b.length)}),a;
}finally{this.isFlushing=!1}}};
var Yab=function(a,b){for(;Xab(a,b)&&a.priorityTasks[b].length>0;)a.priorityTasks[b][0](),a.priorityTasks[b].shift()};
_.Um.Object.defineProperties(Wab.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(a){return a.length>0})}}});var Gda={};var Zab=globalThis.trustedTypes,Bda=Zab,Dda;var wd=function(a){this.privateDoNotAccessOrElseWrappedResourceUrl=a};
wd.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var $ab=_.hx([""]),abb=y8a(["\x00"],["\\0"]),bbb=y8a(["\n"],["\\n"]),cbb=y8a(["\x00"],["\\u0000"]);Fda(function(a){return a($ab)})||Fda(function(a){return a(abb)})||Fda(function(a){return a(bbb)})||Fda(function(a){return a(cbb)});var Hd;_.Ad=function(a,b){this.privateDoNotAccessOrElseWrappedUrl=b};
_.Ad.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.dbb=Cd("about:blank");Hd=Cd("about:invalid#zClosurez");var Hda=function(a){this.isValid=a},ebb=new Hda(function(a){return/^[^:]*([/?#]|$)/.test(a)}),fbb=Fd("data"),gbb=Fd("http"),hbb=Fd("https"),ibb=Fd("ftp"),jbb=Fd("mailto"),kbb=Fd("intent"),lbb=Fd("vnd.youtube"),Ida=[fbb,
gbb,hbb,jbb,ibb,ebb],Jda=ud(function(){return typeof URL==="function"}),mbb=["data:",
"http:","https:","mailto:","ftp:"],Lda=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Od=function(a){this.privateDoNotAccessOrElseWrappedHtml=a};
Od.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var Qja=ud(function(){return new Od(Zab?Zab.emptyHTML:"")});var nbb={FORMATTED_HTML_CONTENT:0,EMBEDDED_INTERNAL_CONTENT:1,EMBEDDED_TRUSTED_EXTERNAL_CONTENT:2,0:"FORMATTED_HTML_CONTENT",1:"EMBEDDED_INTERNAL_CONTENT",2:"EMBEDDED_TRUSTED_EXTERNAL_CONTENT"},Nda=function(a,b){var c=Error.call(this,a+" cannot be used with intent "+nbb[b]);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.type=a;this.intent=b;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.z(Nda,Error);_.Vd=function(a){this.privateDoNotAccessOrElseWrappedScript=a};
_.Vd.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var Rda=function(a){this.privateDoNotAccessOrElseWrappedAttributePrefix=a};
Rda.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var Sda="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var hua=function(a){var b=_.Ji("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(k){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||_.ja.$googDebugFname||b}catch(k){e="Not available",c=!0}b=obb(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,py[c])c=py[c];else{c=String(c);if(!py[c]){var g=/function\s+([^\(]+)/m.exec(c);py[c]=g?g[1]:"[Anonymous]"}c=py[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}},obb=function(a,b){b||(b={});
b[pbb(a)]=!0;var c=a.stack||"",d=a.cause;d&&!b[pbb(d)]&&(c+="\nCaused by: ",d.stack&&d.stack.indexOf(d.toString())==0||(c+=typeof d==="string"?d:d.message+"\n"),c+=obb(d,b));a=a.errors;if(Array.isArray(a)){d=1;var e;for(e=0;e<a.length&&!(d>4);e++)b[pbb(a[e])]||(c+="\nInner error "+d++ +": ",a[e].stack&&a[e].stack.indexOf(a[e].toString())==0||(c+=typeof a[e]==="string"?a[e]:a[e].message+"\n"),c+=obb(a[e],b));e<a.length&&(c+="\n... "+(a.length-e)+" more inner errors")}return c},pbb=function(a){var b=
"";
typeof a.toString==="function"&&(b=""+a);return b+a.stack},py={};var qbb,Wi,iu,sbb,tbb,rbb,Lg,Ln,vbb;qbb=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&c.length>1;)d+=c.shift()+e.shift();return d+c.join("%s")};
_.Li=function(a){return encodeURIComponent(String(a))};
Wi=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
iu=function(a){b9a.test(a)&&(a.indexOf("&")!=-1&&(a=a.replace(W8a,"&amp;")),a.indexOf("<")!=-1&&(a=a.replace(X8a,"&lt;")),a.indexOf(">")!=-1&&(a=a.replace(Y8a,"&gt;")),a.indexOf('"')!=-1&&(a=a.replace(Z8a,"&quot;")),a.indexOf("'")!=-1&&(a=a.replace($8a,"&#39;")),a.indexOf("\x00")!=-1&&(a=a.replace(a9a,"&#0;")));return a};
sbb=function(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var c=_.ja.document.createElement("div");return a.replace(rbb,function(d,e){var g=b[d];if(g)return g;e.charAt(0)=="#"&&(e=Number("0"+e.slice(1)),isNaN(e)||(g=String.fromCharCode(e)));g||(_.$d(c,Qd(d+" ")),g=c.firstChild.nodeValue.slice(0,-1));return b[d]=g})};
tbb=function(a){return a.replace(/&([^;]+);/g,function(b,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return c.charAt(0)!="#"||(c=Number("0"+c.slice(1)),isNaN(c))?b:String.fromCharCode(c)}})};
rbb=/&([^;\s<&]+);?/g;_.Aza=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.ubb=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};
_.qy=function(a,b){if(!Number.isFinite(a))return String(a);a=String(a);var c=a.indexOf(".");c===-1&&(c=a.length);var d=a[0]==="-"?"-":"";d&&(a=a.substring(1));return d+(0,_.ubb)("0",Math.max(0,b-c))+a};
Lg=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.rx()).toString(36)};
Ln=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
_.pn=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
_.on=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()};
vbb=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};var wbb=function(){this.names=new Map};
wbb.prototype.getName=function(a){var b=this.names.get(a);if(b)return b;var c;b=(c=a.description)!=null?c:Lg();this.names.set(a,b);return b};var xbb=function(a){var b=Error.call(this,a?a.length+" errors occurred during unsubscription:\n"+a.map(function(c,d){return d+1+") "+c.toString()}).join("\n  "):"");
this.message=b.message;"stack"in b&&(this.stack=b.stack);this.errors=a;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.z(xbb,Error);var fe=function(a){this.initialTeardown=a;this.closed=!1;this._teardowns=this._parentage=null};
_.f=fe.prototype;
_.f.unsubscribe=function(){if(!this.closed){this.closed=!0;var a=this._parentage;if(Array.isArray(a))for(var b=_.h(a),c=b.next();!c.done;c=b.next())c.value.remove(this);else a==null||a.remove(this);b=this.initialTeardown;if(ee(b))try{b()}catch(g){var d=g instanceof xbb?g.errors:[g]}var e=this._teardowns;if(e)for(this._teardowns=null,b=_.h(e),c=b.next();!c.done;c=b.next()){c=c.value;try{ee(c)?c():c.unsubscribe()}catch(g){c=void 0,d=(c=d)!=null?c:[],g instanceof xbb?d=[].concat(_.De(d),_.De(g.errors)):
d.push(g)}}if(d)throw new xbb(d);}};
_.f.add=function(a){if(a&&a!==this)if(this.closed)ee(a)?a():a.unsubscribe();else{if(a instanceof fe){if(a.closed||a._hasParent(this))return;a._addParent(this)}var b;(this._teardowns=(b=this._teardowns)!=null?b:[]).push(a)}};
_.f._hasParent=function(a){var b=this._parentage;return b===a||Array.isArray(b)&&b.includes(a)};
_.f._addParent=function(a){var b=this._parentage;this._parentage=Array.isArray(b)?(b.push(a),b):b?[b,a]:a};
_.f._removeParent=function(a){var b=this._parentage;b===a?this._parentage=null:Array.isArray(b)&&Wda(b,a)};
_.f.remove=function(a){var b=this._teardowns;b&&Wda(b,a);a instanceof fe&&a._removeParent(this)};
var ybb=new fe;ybb.closed=!0;fe.JSC$6922_EMPTY=ybb;var Yda=function(){setTimeout.apply(null,_.De(_.Kd.apply(0,arguments)))};var ry=function(a){fe.call(this);this.JSC$6927_isStopped=!1;this.destination=a instanceof ry?a:new sy(!a||ee(a)?{next:a!=null?a:void 0}:a);Xda(a)&&a.add(this)};
_.z(ry,fe);ry.JSC$6922_EMPTY=fe.JSC$6922_EMPTY;ry.create=function(a,b,c){return new ty(a,b,c)};
_.f=ry.prototype;_.f.next=function(a){this.JSC$6927_isStopped||this._next(a)};
_.f.error=function(a){this.JSC$6927_isStopped||(this.JSC$6927_isStopped=!0,this._error(a))};
_.f.complete=function(){this.JSC$6927_isStopped||(this.JSC$6927_isStopped=!0,this._complete())};
_.f.unsubscribe=function(){this.closed||(this.JSC$6927_isStopped=!0,fe.prototype.unsubscribe.call(this))};
_.f._next=function(a){this.destination.next(a)};
_.f._error=function(a){this.destination.error(a);this.unsubscribe()};
_.f._complete=function(){this.destination.complete();this.unsubscribe()};
var sy=function(a){this.partialObserver=a};
sy.prototype.next=function(a){var b=this.partialObserver;if(b.next)try{b.next(a)}catch(c){he(c)}};
sy.prototype.error=function(a){var b=this.partialObserver;if(b.error)try{b.error(a)}catch(c){he(c)}else he(a)};
sy.prototype.complete=function(){var a=this.partialObserver;if(a.complete)try{a.complete()}catch(b){he(b)}};
var ty=function(a,b,c){ry.call(this);var d;ee(a)||!a?d={next:a!=null?a:void 0,error:b!=null?b:void 0,complete:c!=null?c:void 0}:d=a;this.destination=new sy(d)};
_.z(ty,ry);ty.JSC$6922_EMPTY=ry.JSC$6922_EMPTY;ty.create=ry.create;var le=typeof Symbol==="function"&&Symbol.observable||"@@observable";var ke=function(a){a&&(this._subscribe=a)};
_.f=ke.prototype;_.f.lift=function(a){var b=new ke;b.source=this;b.operator=a;return b};
_.f.subscribe=function(a,b,c){a=a&&a instanceof ry||a&&ee(a.next)&&ee(a.error)&&ee(a.complete)&&Xda(a)?a:new ty(a,b,c);b=this.operator;c=this.source;a.add(b?b.call(a,c):c?this._subscribe(a):this._trySubscribe(a));return a};
_.f._trySubscribe=function(a){try{return this._subscribe(a)}catch(b){a.error(b)}};
_.f.forEach=function(a,b){var c=this;b=$da(b);return new b(function(d,e){var g=c.subscribe(function(k){try{a(k)}catch(m){e(m),g==null||g.unsubscribe()}},e,d)})};
_.f._subscribe=function(a){var b;return(b=this.source)==null?void 0:b.subscribe(a)};
ke.prototype[le]=function(){return this};
ke.prototype.pipe=function(){var a=_.Kd.apply(0,arguments);return a.length?Zda(a)(this):this};
ke.create=function(a){return new ke(a)};var zbb=function(){var a=Error.call(this,"object unsubscribed");this.message=a.message;"stack"in a&&(this.stack=a.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.z(zbb,Error);var jf=function(){this.observers=[];this.hasError=this.JSC$6943_isStopped=this.closed=!1;this.thrownError=null};
_.z(jf,ke);_.f=jf.prototype;_.f.lift=function(a){var b=new uy(this,this);b.operator=a;return b};
_.f._throwIfClosed=function(){if(this.closed)throw new zbb;};
_.f.next=function(a){this._throwIfClosed();if(!this.JSC$6943_isStopped){var b=this.observers.slice();b=_.h(b);for(var c=b.next();!c.done;c=b.next())c.value.next(a)}};
_.f.error=function(a){this._throwIfClosed();if(!this.JSC$6943_isStopped){this.hasError=this.JSC$6943_isStopped=!0;this.thrownError=a;for(var b=this.observers;b.length;)b.shift().error(a)}};
_.f.complete=function(){this._throwIfClosed();if(!this.JSC$6943_isStopped){this.JSC$6943_isStopped=!0;for(var a=this.observers;a.length;)a.shift().complete()}};
_.f.unsubscribe=function(){this.JSC$6943_isStopped=this.closed=!0;this.observers=null};
_.f._trySubscribe=function(a){this._throwIfClosed();return ke.prototype._trySubscribe.call(this,a)};
_.f._subscribe=function(a){this._throwIfClosed();this._checkFinalizedStatuses(a);return this._innerSubscribe(a)};
_.f._innerSubscribe=function(a){var b=this,c=this.JSC$6943_isStopped,d=this.observers;return this.hasError||c?fe.JSC$6922_EMPTY:(d.push(a),new fe(function(){return Wda(b.observers,a)}))};
_.f._checkFinalizedStatuses=function(a){var b=this.thrownError,c=this.JSC$6943_isStopped;this.hasError?a.error(b):c&&a.complete()};
jf.create=function(a,b){return new uy(a,b)};
var uy=function(a,b){jf.call(this);this.destination=a;this.source=b};
_.z(uy,jf);uy.create=jf.create;uy.prototype.next=function(a){var b,c;(b=this.destination)==null||(c=b.next)==null||c.call(b,a)};
uy.prototype.error=function(a){var b,c;(b=this.destination)==null||(c=b.error)==null||c.call(b,a)};
uy.prototype.complete=function(){var a,b;(a=this.destination)==null||(b=a.complete)==null||b.call(a)};
uy.prototype._subscribe=function(a){var b,c;return(c=(b=this.source)==null?void 0:b.subscribe(a))!=null?c:fe.JSC$6922_EMPTY};var Nf=function(a){jf.call(this);this._value=a};
_.z(Nf,jf);Nf.create=jf.create;Nf.prototype._subscribe=function(a){var b=jf.prototype._subscribe.call(this,a);!b.closed&&a.next(this._value);return b};
Nf.prototype.getValue=function(){var a=this.thrownError,b=this._value;if(this.hasError)throw a;this._throwIfClosed();return b};
Nf.prototype.next=function(a){jf.prototype.next.call(this,this._value=a)};
_.Um.Object.defineProperties(Nf.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var Ie=new ke(function(a){return a.complete()});var dea=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var iea=function(a){return a&&typeof a.length==="number"&&typeof a!=="function"};var Abb={now:function(){return(Abb.delegate||Date).now()},
delegate:void 0};var Xe=function(a,b,c){a=a===void 0?Infinity:a;b=b===void 0?Infinity:b;c=c===void 0?Abb:c;jf.call(this);this.JSC$6965_bufferSize=a;this.windowTime=b;this.timestampProvider=c;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=b===Infinity;this.JSC$6965_bufferSize=Math.max(1,a);this.windowTime=Math.max(1,b)};
_.z(Xe,jf);Xe.create=jf.create;Xe.prototype.next=function(a){var b=this.buffer,c=this.infiniteTimeWindow,d=this.timestampProvider,e=this.windowTime;this.JSC$6943_isStopped||(b.push(a),!c&&b.push(d.now()+e));Bbb(this);jf.prototype.next.call(this,a)};
Xe.prototype._subscribe=function(a){this._throwIfClosed();Bbb(this);for(var b=this._innerSubscribe(a),c=this.infiniteTimeWindow,d=this.buffer.slice(),e=0;e<d.length&&!a.closed;e+=c?1:2)a.next(d[e]);this._checkFinalizedStatuses(a);return b};
var Bbb=function(a){var b=a.JSC$6965_bufferSize,c=a.timestampProvider,d=a.buffer;a=a.infiniteTimeWindow;var e=(a?1:2)*b;b<Infinity&&e<d.length&&d.splice(0,d.length-e);if(!a){b=c.now();c=0;for(a=1;a<d.length&&d[a]<=b;a+=2)c=a;c&&d.splice(0,c+1)}};var Dbb=function(a,b){b=b===void 0?Cbb:b;this.schedulerActionCtor=a;this.now=b};
Dbb.prototype.schedule=function(a,b,c){b=b===void 0?0:b;return(new this.schedulerActionCtor(this,a)).schedule(c,b)};
var Cbb=Abb.now;var bfa=function(){var a=Error.call(this,"no elements in sequence");this.message=a.message;"stack"in a&&(this.stack=a.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.z(bfa,Error);var Ae=function(a,b,c,d,e){ry.call(this,a);this.onUnsubscribe=e;b&&(this._next=function(g){try{b(g)}catch(k){this.destination.error(k)}});
c&&(this._error=function(g){try{c(g)}catch(k){this.destination.error(k)}this.unsubscribe()});
d&&(this._complete=function(){try{d()}catch(g){this.destination.error(g)}this.unsubscribe()})};
_.z(Ae,ry);Ae.JSC$6922_EMPTY=ry.JSC$6922_EMPTY;Ae.create=ry.create;Ae.prototype.unsubscribe=function(){var a;this.closed||(a=this.onUnsubscribe)!=null&&a.call(this);ry.prototype.unsubscribe.call(this)};var Ue=function(a,b){this.source=a;this.subjectFactory=b;this._subject=null;this._refCount=0;this._connection=null};
_.z(Ue,ke);Ue.create=ke.create;Ue.prototype._subscribe=function(a){return Ebb(this).subscribe(a)};
var Ebb=function(a){var b=a._subject;if(!b||b.JSC$6943_isStopped)a._subject=a.subjectFactory();return a._subject};
Ue.prototype._teardown=function(){this._refCount=0;var a=this._connection;this._subject=this._connection=null;a==null||a.unsubscribe()};
Ue.prototype.connect=function(){var a=this,b=this._connection;if(!b){b=this._connection=new fe;var c=Ebb(this);b.add(this.source.subscribe(new Ae(c,void 0,function(d){a._teardown();c.error(d)},function(){a._teardown();
c.complete()},function(){return a._teardown()})));
b.closed&&(this._connection=null,b=fe.JSC$6922_EMPTY)}return b};var vea=Array.isArray;var xea=Array.isArray,Fbb=Object,yea=Fbb.getPrototypeOf,zea=Fbb.prototype,Aea=Fbb.keys;var Fe=function(a,b,c){ry.call(this,a);this._next=b;this.shouldComplete=c};
_.z(Fe,ry);Fe.JSC$6922_EMPTY=ry.JSC$6922_EMPTY;Fe.create=ry.create;Fe.prototype._complete=function(){this.shouldComplete()?ry.prototype._complete.call(this):this.unsubscribe()};var Jea=["addListener","removeListener"],Iea=["addEventListener","removeEventListener"],Lea=["on","off"];var vy=function(){fe.call(this)};
_.z(vy,fe);vy.JSC$6922_EMPTY=fe.JSC$6922_EMPTY;vy.prototype.schedule=function(){return this};var Gbb=function(a,b){return setInterval.apply(null,[a,b].concat(_.De(_.Kd.apply(2,arguments))))};var wy=function(a,b){fe.call(this);this.scheduler=a;this.work=b;this.pending=!1};
_.z(wy,vy);wy.JSC$6922_EMPTY=vy.JSC$6922_EMPTY;wy.prototype.schedule=function(a,b){b=b===void 0?0:b;if(this.closed)return this;this.state=a;a=this.id;var c=this.scheduler;a!=null&&(this.id=Hbb(this,a,b));this.pending=!0;this.delay=b;this.id=this.id||this.requestAsyncId(c,this.id,b);return this};
wy.prototype.requestAsyncId=function(a,b,c){c=c===void 0?0:c;return Gbb(a.flush.bind(a,this),c)};
var Hbb=function(a,b,c){c=c===void 0?0:c;if(c!=null&&a.delay===c&&a.pending===!1)return b;clearInterval(b)};
wy.prototype.execute=function(a,b){if(this.closed)return Error("oa");this.pending=!1;if(a=this._execute(a,b))return a;this.pending===!1&&this.id!=null&&(this.id=Hbb(this,this.id,null))};
wy.prototype._execute=function(a){var b=!1;try{this.work(a)}catch(d){b=!0;var c=!!d&&d||Error(d)}if(b)return this.unsubscribe(),c};
wy.prototype.unsubscribe=function(){if(!this.closed){var a=this.id,b=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;Wda(b,this);a!=null&&(this.id=Hbb(this,a,null));this.delay=null;vy.prototype.unsubscribe.call(this)}};var Ibb=function(a,b){b=b===void 0?Cbb:b;Dbb.call(this,a,b);this.actions=[];this.active=!1;this.scheduled=void 0};
_.z(Ibb,Dbb);Ibb.prototype.flush=function(a){var b=this.actions;if(this.active)b.push(a);else{var c;this.active=!0;do if(c=a.execute(a.state,a.delay))break;while(a=b.shift());this.active=!1;if(c){for(;a=b.shift();)a.unsubscribe();throw c;}}};var yf=new ke(ge);var Mea=Array.isArray;var xy=function(a,b){wy.call(this,a,b);this.scheduler=a;this.work=b};
_.z(xy,wy);xy.JSC$6922_EMPTY=wy.JSC$6922_EMPTY;xy.prototype.schedule=function(a,b){b=b===void 0?0:b;if(b>0)return wy.prototype.schedule.call(this,a,b);this.delay=b;this.state=a;this.scheduler.flush(this);return this};
xy.prototype.execute=function(a,b){return b>0||this.closed?wy.prototype.execute.call(this,a,b):this._execute(a,b)};
xy.prototype.requestAsyncId=function(a,b,c){c=c===void 0?0:c;return c!=null&&c>0||c==null&&this.delay>0?wy.prototype.requestAsyncId.call(this,a,b,c):a.flush(this)};var Jbb=function(){Ibb.apply(this,arguments)};
_.z(Jbb,Ibb);var tea=new Jbb(xy);var Kbb=function(){this.performanceMonitor=new Vab;this.queue=new Wab;this.internalSymbol=Symbol();this.debugNames=new wbb};
Kbb.prototype.getOnBackgrounded=function(){return yf};
_.Um.Object.defineProperties(Kbb.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var yy=function(a,b){b=Error.call(this,b?a+": "+b:String(a));this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.__proto__=yy.prototype;this.name=String(a)};
_.z(yy,Error);var zf=function(a){yy.call(this,1E3,'sfr:"'+a+'"');this.measurementStrategyFailureReason=a;this.__proto__=zf.prototype};
_.z(zf,yy);var Bf=function(){yy.call(this,1003);this.__proto__=Bf.prototype};
_.z(Bf,yy);var zy=function(){yy.call(this,1009);this.__proto__=zy.prototype};
_.z(zy,yy);var Lbb=function(){yy.call(this,1011);this.__proto__=Lbb.prototype};
_.z(Lbb,yy);var Mbb=function(){yy.call(this,1007);this.__proto__=Bf.prototype};
_.z(Mbb,yy);var wf=function(a){yy.call(this,1004,String(a));this.inputObservableIndex=a;this.__proto__=wf.prototype};
_.z(wf,yy);var oga=function(a){yy.call(this,1010,a);this.__proto__=pga.prototype};
_.z(oga,yy);var pga=function(a){yy.call(this,1005,a);this.__proto__=pga.prototype};
_.z(pga,yy);var Nbb=function(a){var b=_.Kd.apply(1,arguments),c=this;this.orderedFactories=[];this.orderedFactories.push(a);b.forEach(function(d){c.orderedFactories.push(d)})};
Nbb.prototype.isSupported=function(a){return this.orderedFactories.some(function(b){return b.isSupported(a)})};
Nbb.prototype.makeBeacon=function(a,b){for(var c=0;c<this.orderedFactories.length;c++)if(this.orderedFactories[c].isSupported(b))return this.orderedFactories[c].makeBeacon(a,b);throw new zy;};var eha=Symbol("pa"),Obb=Symbol("qa"),Me=function(a,b){this.value=a;this.timeline=b},Le=function(a,b){if(b.timeline!==a.timeline)throw new Mbb;
return a.value-b.value};
_.f=Me.prototype;_.f.equals=function(a){return Le(this,a)===0};
_.f.maximum=function(a){if(a.timeline!==this.timeline)throw new Mbb;return this.value>=a.value?this:a};
_.f.round=function(){return new Me(Math.round(this.value),this.timeline)};
_.f.add=function(a){return new Me(this.value+a,this.timeline)};
_.f.toString=function(){return String(this.value)};var Ay=function(a,b){this.context=a;this.JSC$7049_pinger=b};
Ay.prototype.isSupported=function(a){return this.JSC$7049_pinger.isSupported(a)};
Ay.prototype.makeBeacon=function(a,b){if(!this.isSupported(b))throw new zy;return new By(this.context,this.JSC$7049_pinger,b!=null?b:void 0,a)};
var By=function(a,b,c,d){var e=this;this.JSC$7055_pinger=b;this.properties=c;this.url=d;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var g;this.method=(g=c==null?void 0:c.beaconMethod)!=null?g:"GET";this.backgroundedSubscription=a.getOnBackgrounded().subscribe(function(){e.sendNow()})};
By.prototype.deactivate=function(){this.internalIsPending=!1};
By.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7055_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var a,b;this.JSC$7055_pinger.pingWithHeadersAndBody((a=this.properties)!=null?a:{},this.customHeaders,(b=this.body)!=null?b:"",this.url)}else this.JSC$7055_pinger.ping(this.url);this.internalIsPending=!1}catch(c){}else this.internalIsPending=!1};
By.prototype.setHeader=function(a){this.customHeaders.set(a,void 0)};
_.Um.Object.defineProperties(By.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var Qbb=function(){for(var a=_.h(_.Kd.apply(0,arguments)),b=a.next();!b.done;b=a.next())if(b=b.value,b.available()){this.timeProvider=b;return}this.timeProvider=new Pbb};
_.f=Qbb.prototype;_.f.available=function(){return this.timeProvider.available()};
_.f.now=function(){return this.timeProvider.now()};
_.f.setTimeout=function(a,b){return this.timeProvider.setTimeout(a,b)};
_.f.clearTimeout=function(a){this.timeProvider.clearTimeout(a)};
_.f.interval=function(a,b){var c=this.intervalObservable(a).subscribe(b);return function(){return void c.unsubscribe()}};
_.f.intervalObservable=function(a){return this.timeProvider.intervalObservable(a)};
_.Um.Object.defineProperties(Qbb.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var Pbb=function(){this.timeline=Symbol()};
_.f=Pbb.prototype;_.f.available=function(){return!1};
_.f.now=function(){return new Me(0,this.timeline)};
_.f.setTimeout=function(){return 0};
_.f.clearTimeout=function(){};
_.f.interval=function(){return function(){}};
_.f.intervalObservable=function(){return yf};var Cy=function(a,b){this.intrinsicFunctionNamespace=a;this.performanceMonitor=b};
_.f=Cy.prototype;_.f.setTimeout=function(a,b){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,a),b)};
_.f.clearTimeout=function(a){this.intrinsicFunctionNamespace.clearTimeout(a)};
_.f.interval=function(a,b){var c=this.intervalObservable(a).subscribe(b);return function(){return void c.unsubscribe()}};
_.f.intervalObservable=function(a){var b=this;return new ke(function(c){var d=0,e=b.intrinsicFunctionNamespace.setInterval(function(){c.next(d++)},a);
return function(){b.intrinsicFunctionNamespace.clearInterval(e)}})};
_.f.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var Rbb=function(a,b){Cy.call(this,a,b);this.timeline=Obb};
_.z(Rbb,Cy);Rbb.prototype.now=function(){return new Me(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
Rbb.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&Cy.prototype.available.call(this)};var Sbb=function(a,b){Cy.call(this,a,b);this.timeline=eha};
_.z(Sbb,Cy);Sbb.prototype.now=function(){return new Me(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
Sbb.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&Cy.prototype.available.call(this)};var Ubb=function(a){this.context=a;if(Tbb===void 0)a:{var b,c,d=(b=a.global)==null?void 0:(c=b.document)==null?void 0:c.createElement("meta");if(d)try{d.httpEquiv="origin-trial";d.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";a.global.document.head.append(d);Tbb=d;break a}catch(e){}Tbb=void 0}},
Tbb;
Ubb.prototype.isSupported=function(a){return Wea(this.context)!==void 0&&!(a==null||!a.endOfSession)&&!Dy(this.context)&&!(a==null?0:a.attributionEnabled)&&!(a==null?0:a.customHeaders)&&!(a==null?0:a.customBody)};
Ubb.prototype.makeBeacon=function(a,b){if(!this.isSupported(b))throw new zy;return new Ey(this.context,a,b)};
var Ey=function(a,b,c){this.context=a;this.properties=c;this.JSC$7082_urlWithoutToken=b;var d;this.beaconMethod=(d=c==null?void 0:c.beaconMethod)!=null?d:"GET";a=Wea(this.context);if(a===void 0)throw Error();this.fetchLater=a;Vbb(this,Wbb(this))},Vbb=function(a,b){a.beaconResult&&a.beaconResult.activated||(a.beaconAbort=new AbortController,a.beaconResult=a.fetchLater(b,{method:a.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:a.beaconAbort.signal,activateAfter:96E4}))},Wbb=function(a){a=a.JSC$7082_urlWithoutToken;
return(a.slice(-1)[0]==="&"?a:a+"&")+"flapi=1"};
Ey.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
Ey.prototype.sendNow=function(){};
Ey.prototype.setHeader=function(){};
_.Um.Object.defineProperties(Ey.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7082_urlWithoutToken},
set:function(a){this.JSC$7082_urlWithoutToken=a;a=Wbb(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);Vbb(this,a)}},
method:{configurable:!0,enumerable:!0,get:function(){return this.beaconMethod}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.beaconResult?!this.beaconResult.activated:!1}}});var Xbb=function(a){this.context=a};
Xbb.prototype.isSupported=function(){return!Dy(this.context)&&!!this.context.global.fetch};
Xbb.prototype.ping=function(){var a=this;return Je.apply(null,_.De(_.Kd.apply(0,arguments).map(function(b){return oe(a.context.global.fetch(b,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(Ce(function(c){return c.status===200}))}))).pipe(cfa(function(b){return b}),efa())};
Xbb.prototype.pingWithHeadersAndBody=function(a,b,c){for(var d=_.Kd.apply(3,arguments),e=this,g=new Headers,k=_.h(b.entries()),m=k.next();!m.done;m=k.next()){var n=_.h(m.value);m=n.next().value;n=n.next().value;g.set(m,n)}var r,t=(r=a.keepAlive)!=null?r:!1;Je.apply(null,_.De(d.map(function(u){return oe(e.context.global.fetch(u,Object.assign({},{method:String(a.beaconMethod),cache:"no-cache"},t?{keepalive:!0}:{},{mode:"no-cors",headers:g,body:c}))).pipe(Ce(function(x){return x.status===200}))}))).pipe(cfa(function(u){return u}),
efa())};var Ybb,R1a;_.Gy=function(){};
_.Ma=function(a){return a};
Ybb=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
_.Hy=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
_.Iy=function(a,b){var c=0;return function(d){_.ja.clearTimeout(c);var e=arguments;c=_.ja.setTimeout(function(){a.apply(void 0,e)},b)}};
R1a=function(a,b){var c=0,d=!1,e=[],g=function(){c=0;d&&(d=!1,k())},k=function(){c=_.ja.setTimeout(g,b);
var m=e;e=[];a.apply(void 0,m)};
return function(m){e=arguments;c?d=!0:k()}};var $bb=function(){return va&&wa?wa.mobile:!Zbb()&&(xa("iPod")||xa("iPhone")||xa("Android")||xa("IEMobile"))},Zbb=function(){return va&&wa?!wa.mobile&&(xa("iPad")||xa("Android")||xa("Silk")):xa("iPad")||xa("Android")&&!xa("Mobile")||xa("Silk")};var Jy;_.Vw=function(a,b,c){return Math.min(Math.max(a,b),c)};
Jy=function(a,b,c){return a+c*(b-a)};var acb;_.Cf={};acb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.Cf.add=function(a,b,c){if(a!==null&&b in a)throw Error("sa`"+b);a[b]=c};
_.Cf.clear=function(a){for(var b in a)delete a[b]};
_.Cf.clone=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
_.Cf.contains=function(a,b){return ifa(a,b)};
_.Cf.containsKey=function(a,b){return a!==null&&b in a};
_.Cf.containsValue=ifa;_.Cf.create=lfa;_.Cf.createImmutableView=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
_.Cf.createSet=mfa;_.Cf.equals=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};
_.Cf.every=function(a,b,c){for(var d in a)if(!b.call(c,a[d],d,a))return!1;return!0};
_.Cf.extend=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var g=0;g<acb.length;g++)c=acb[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
_.Cf.filter=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
_.Cf.findKey=jfa;_.Cf.findValue=function(a,b,c){return(b=jfa(a,b,c))&&a[b]};
_.Cf.forEach=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
_.Cf.get=function(a,b,c){return a!==null&&b in a?a[b]:c};
_.Cf.getAllPropertyNames=function(a,b,c){if(!a)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return hfa(a);for(var d={};a&&(a!==Object.prototype||b)&&(a!==Function.prototype||c);){for(var e=Object.getOwnPropertyNames(a),g=0;g<e.length;g++)d[e[g]]=!0;a=Object.getPrototypeOf(a)}return hfa(d)};
_.Cf.getAnyKey=function(a){for(var b in a)return b};
_.Cf.getAnyValue=function(a){for(var b in a)return a[b]};
_.Cf.getCount=function(a){var b=0,c;for(c in a)b++;return b};
_.Cf.getKeys=hfa;_.Cf.getSuperClass=function(a){return(a=Object.getPrototypeOf(a.prototype))&&a.constructor};
_.Cf.getValueByKeys=function(a,b){var c=_.Sa(b),d=c?b:arguments;for(c=c?0:1;c<d.length;c++){if(a==null)return;a=a[d[c]]}return a};
_.Cf.getValues=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
_.Cf.isEmpty=function(a){for(var b in a)return!1;return!0};
_.Cf.isImmutableView=function(a){return!!Object.isFrozen&&Object.isFrozen(a)};
_.Cf.map=function(a,b,c){var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d};
_.Cf.remove=function(a,b){var c;(c=b in a)&&delete a[b];return c};
_.Cf.set=function(a,b,c){a[b]=c};
_.Cf.setIfUndefined=function(a,b,c){return b in a?a[b]:a[b]=c};
_.Cf.setWithReturnValueIfNotSet=function(a,b,c){if(b in a)return a[b];c=c();return a[b]=c};
_.Cf.some=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
_.Cf.transpose=function(a){var b={},c;for(c in a)b[a[c]]=c;return b};
_.Cf.unsafeClone=kfa;var bcb,ccb,dcb,ecb,Ti,gcb,lcb,mcb,ncb;bcb=function(a,b,c,d,e,g,k){var m="";a&&(m+=a+":");c&&(m+="//",b&&(m+=b+"@"),m+=c,d&&(m+=":"+d));e&&(m+=e);g&&(m+="?"+g);k&&(m+="#"+k);return m};
ccb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.Ri=function(a){return a.match(ccb)};
_.Pw=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):a};
dcb=function(a){a=_.Ri(a)[1]||null;!a&&_.ja.self&&_.ja.self.location&&(a=_.ja.self.location.protocol.slice(0,-1));return a?a.toLowerCase():""};
_.Si=function(a){return _.Pw(_.Ri(a)[3]||null,!0)};
_.gj=function(a){return _.Pw(_.Ri(a)[5]||null,!0)};
_.YUa=function(a){var b=a.indexOf("#");return b<0?null:a.slice(b+1)};
ecb=function(a){a=_.Ri(a);return bcb(a[1],a[2],a[3],a[4])};
_.fcb=function(a){a=_.Ri(a);return bcb(a[1],null,a[3],a[4])};
_.Pn=function(a){a=_.Ri(a);return bcb(null,null,null,null,a[5],a[6],a[7])};
_.$n=function(a){var b=a.indexOf("#");return b<0?a:a.slice(0,b)};
Ti=function(a,b){a=_.Ri(a);b=_.Ri(b);return a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]};
gcb=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(d>=0){var g=a[c].substring(0,d);e=a[c].substring(d+1)}else g=a[c];b(g,e?Wi(e):"")}}};
_.hcb=function(a){var b=a.indexOf("#");b<0&&(b=a.length);var c=a.indexOf("?");if(c<0||c>b){c=b;var d=""}else d=a.substring(c+1,b);return[a.slice(0,c),d,a.slice(b)]};
_.icb=function(a,b){return b?a?a+"&"+b:b:a};
_.jcb=function(a,b){if(!b)return a;a=_.hcb(a);a[1]=_.icb(a[1],b);return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
_.kcb=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)_.kcb(a,String(b[d]),c);else b!=null&&c.push(a+(b===""?"":"="+_.Li(b)))};
_.ij=function(a){var b=[],c;for(c in a)_.kcb(c,a[c],b);return b.join("&")};
_.Qi=function(a,b){b=_.ij(b);return _.jcb(a,b)};
_.Ky=function(a,b,c){c=c!=null?"="+_.Li(c):"";return _.jcb(a,b+c)};
lcb=function(a,b,c,d){for(var e=c.length;(b=a.indexOf(c,b))>=0&&b<d;){var g=a.charCodeAt(b-1);if(g==38||g==63)if(g=a.charCodeAt(b+e),!g||g==61||g==38||g==35)return b;b+=e+1}return-1};
mcb=/#|$/;_.Kg=function(a,b){var c=a.search(mcb),d=lcb(a,0,b,c);if(d<0)return null;var e=a.indexOf("&",d);if(e<0||e>c)e=c;d+=b.length+1;return Wi(a.slice(d,e!==-1?e:0))};
ncb=/[?&]($|#)/;_.bo=function(a,b){for(var c=a.search(mcb),d=0,e,g=[];(e=lcb(a,d,b,c))>=0;)g.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);g.push(a.slice(d));return g.join("").replace(ncb,"$1")};
_.Gl=function(a,b,c){return _.Ky(_.bo(a,b),b,c)};var Ly=function(a,b,c,d,e){this.allowedElements=a;this.elementPolicies=b;this.allowedGlobalAttributes=c;this.globalAttributePolicies=d;this.globallyAllowedAttributePrefixes=e},ocb=function(a,b,c){c=a.elementPolicies.get(c);
return(c==null?0:c.has(b))?c.get(b):a.allowedGlobalAttributes.has(b)?{policyAction:1}:(c=a.globalAttributePolicies.get(b))?c:a.globallyAllowedAttributePrefixes&&[].concat(_.De(a.globallyAllowedAttributePrefixes)).some(function(d){return b.indexOf(d)===0})?{policyAction:1}:{policyAction:0}};var pcb="ARTICLE SECTION NAV ASIDE H1 H2 H3 H4 H5 H6 HEADER FOOTER ADDRESS P HR PRE BLOCKQUOTE OL UL LH LI DL DT DD FIGURE FIGCAPTION MAIN DIV EM STRONG SMALL S CITE Q DFN ABBR RUBY RB RT RTC RP DATA TIME CODE VAR SAMP KBD SUB SUP I B U MARK BDI BDO SPAN BR WBR NOBR INS DEL PICTURE PARAM TRACK MAP TABLE CAPTION COLGROUP COL TBODY THEAD TFOOT TR TD TH SELECT DATALIST OPTGROUP OPTION OUTPUT PROGRESS METER FIELDSET LEGEND DETAILS SUMMARY MENU DIALOG SLOT CANVAS FONT CENTER ACRONYM BASEFONT BIG DIR HGROUP STRIKE TT".split(" "),
qcb=[["A",new Map([["href",{policyAction:2}]])],["AREA",new Map([["href",{policyAction:2}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],rcb="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
scb=[["dir",{policyAction:3,conditions:ud(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:ud(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:ud(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:ud(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],tcb=new Ly(new Set(pcb),new Map(qcb),new Set(rcb),new Map(scb)),ucb=new Ly(new Set(pcb.concat(["BUTTON",
"INPUT"])),new Map(qcb),new Set(ud(function(){return rcb.concat(["class","id","name"])})),new Map(ud(function(){return scb.concat([["style",
{policyAction:1}]])})));var vcb,wcb,ycb;vcb=function(a,b,c,d){this.JSC$7142_sanitizerTable=a;this.styleElementSanitizer=b;this.styleAttributeSanitizer=c;this.JSC$7142_resourceUrlPolicy=d;this.changes=[]};
_.xcb=function(a,b){var c=document.implementation.createHTMLDocument("");a=wcb(a,b,c);c=c.body;c.appendChild(a);c=(new XMLSerializer).serializeToString(c);c=c.slice(c.indexOf(">")+1,c.lastIndexOf("</"));return Qd(c)};
wcb=function(a,b,c){b=ofa(b,c);b=document.createTreeWalker(b,5,function(m){if(m.nodeType===3)m=1;else if(qfa(m))if(m=pfa(m),m===null)m=2;else{var n=a.JSC$7142_sanitizerTable;m=m!=="FORM"&&(n.allowedElements.has(m)||n.elementPolicies.has(m))?1:2}else m=2;return m});
for(var d=b.nextNode(),e=c.createDocumentFragment(),g=e;d!==null;){var k=void 0;if(d.nodeType===3)a.styleElementSanitizer&&g.nodeName==="STYLE"?(d=a.styleElementSanitizer(d.data),k=a.createTextNode(d)):k=a.createTextNode(d.data);else if(qfa(d))k=ycb(a,d,c);else throw Error("ga");g.appendChild(k);if(d=b.firstChild())g=k;else for(;!(d=b.nextSibling())&&(d=b.parentNode());)g=g.parentNode}return e};
vcb.prototype.createTextNode=function(a){return document.createTextNode(a)};
ycb=function(a,b,c){var d,e=pfa(b);c=c.createElement(e);b=b.attributes;for(var g=_.h(b),k=g.next();!k.done;k=g.next()){var m=k.value;k=m.name;m=m.value;var n=ocb(a.JSC$7142_sanitizerTable,k,e);a:{if(d=n.conditions){d=_.h(d);for(var r=d.next();!r.done;r=d.next()){var t=_.h(r.value);r=t.next().value;t=t.next().value;var u=void 0;if((r=(u=b.getNamedItem(r))==null?void 0:u.value)&&!t.has(r)){d=!1;break a}}}d=!0}if(d)switch(n.policyAction){case 1:df(c,k,m);break;case 2:n=_.Kda(m);m=n!==void 0&&mbb.indexOf(n.toLowerCase())!==
-1?m:"about:invalid#zClosurez";df(c,k,m);break;case 3:df(c,k,m.toLowerCase());break;case 4:a.styleAttributeSanitizer?(m=a.styleAttributeSanitizer(m),df(c,k,m)):df(c,k,m);break;case 5:a.JSC$7142_resourceUrlPolicy?(n={type:2,attributeName:k,elementName:e},m=nfa(m),(m=a.JSC$7142_resourceUrlPolicy(m,n))&&df(c,k,m.toString())):df(c,k,m);break;case 6:if(a.JSC$7142_resourceUrlPolicy){n={type:2,attributeName:k,elementName:e};d=[];m=_.h(m.split(","));for(r=m.next();!r.done;r=m.next())t=_.h(r.value.trim().split(/\s+/,
2)),r=t.next().value,t=t.next().value,d.push({url:r,descriptor:t});m={parts:[]};d=_.h(d);for(r=d.next();!r.done;r=d.next())r=r.value,t=nfa(r.url),(t=a.JSC$7142_resourceUrlPolicy(t,n))&&m.parts.push({url:t.toString(),descriptor:r.descriptor});df(c,k,rfa(m))}else df(c,k,m)}}return c};
_.zcb=ud(function(){return new vcb(tcb)});
_.Acb=ud(function(){return new vcb(ucb)});var Bcb=function(){this.calledBuild=!1;this.JSC$7154_sanitizerTable=tcb},Ccb=function(){Bcb.apply(this,arguments)};
_.z(Ccb,Bcb);Ccb.prototype.build=function(){if(this.calledBuild)throw Error("ua");this.calledBuild=!0;return new vcb(this.JSC$7154_sanitizerTable,void 0,void 0,this.JSC$7154_resourceUrlPolicy)};var Dcb=/[^#]*/;var Mha=function(a){try{return!!a&&a.location.href!=null&&Sga(a,"foo")}catch(b){return!1}},Fcb=function(a){var b=Ecb;
if(b)for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&a(b[c],c,b)},Gcb=function(){var a=[];
Fcb(function(b){a.push(b)});
return a},Ecb={ALLOW_FORMS:"allow-forms",
ALLOW_MODALS:"allow-modals",ALLOW_ORIENTATION_LOCK:"allow-orientation-lock",ALLOW_POINTER_LOCK:"allow-pointer-lock",ALLOW_POPUPS:"allow-popups",ALLOW_POPUPS_TO_ESCAPE_SANDBOX:"allow-popups-to-escape-sandbox",ALLOW_PRESENTATION:"allow-presentation",ALLOW_SAME_ORIGIN:"allow-same-origin",ALLOW_SCRIPTS:"allow-scripts",ALLOW_TOP_NAVIGATION:"allow-top-navigation",ALLOW_TOP_NAVIGATION_BY_USER_ACTIVATION:"allow-top-navigation-by-user-activation"},Hcb=_.Hy(function(){return Gcb()}),Jcb=function(){var a=Icb("IFRAME"),
b={};
_.Mi(Hcb(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b},Icb=function(a,b){b=b===void 0?document:b;
return b.createElement(String(a).toLowerCase())};var My=function(a){this.context=a};
My.prototype.isSupported=function(a){return(a==null?0:a.attributionEnabled)||(a==null?void 0:a.beaconMethod)==="POST"||(a==null?0:a.customHeaders)||(a==null?0:a.customBody)||(a==null?0:a.keepAlive)?!1:!Dy(this.context)};
My.prototype.ping=function(){var a=this;return we(_.Kd.apply(0,arguments).map(function(b){try{var c=a.context.global,d=!1;d=d===void 0?!1:d;c.google_image_requests||(c.google_image_requests=[]);var e=Icb("IMG",c.document);d&&(e.attributionSrc="");e.src=b;c.google_image_requests.push(e);return!0}catch(g){return!1}}).every(function(b){return b}))};
My.prototype.pingWithHeadersAndBody=function(a,b,c){this.ping.apply(this,_.De(_.Kd.apply(3,arguments)))};var Kcb=function(a){this.context=a};
Kcb.prototype.isSupported=function(a){return Lcb&&!Dy(this.context)&&tfa(this.context)!==void 0&&!(a==null?0:a.attributionEnabled)&&(a==null?void 0:a.beaconMethod)!=="POST"&&!(a==null?0:a.customHeaders)&&!(a==null?0:a.customBody)};
Kcb.prototype.makeBeacon=function(a,b){if(!this.isSupported(b))throw new zy;return new Ny(this.context,a)};
var Lcb=!1,Ny=function(a,b){this.context=a;this.JSC$7176_urlWithoutToken=b;a=tfa(this.context);if(a===void 0)throw Error();this.wrappedBeacon=new a(Mcb(this),{})},Mcb=function(a){a=a.JSC$7176_urlWithoutToken;
return(a.slice(-1)[0]==="&"?a:a+"&")+"pbapi=1"};
Ny.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
Ny.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
Ny.prototype.setHeader=function(){};
_.Um.Object.defineProperties(Ny.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7176_urlWithoutToken},
set:function(a){this.JSC$7176_urlWithoutToken=a;this.wrappedBeacon.setURL(Mcb(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(a){if(a!=="GET")throw new zy;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var Ncb=function(a){this.context=a};
Ncb.prototype.isSupported=function(a){if((a==null?0:a.attributionEnabled)||(a==null?void 0:a.beaconMethod)==="GET"||(a==null?0:a.customHeaders)||(a==null?0:a.customBody)||(a==null?0:a.keepAlive))return!1;var b;return!Dy(this.context)&&((b=this.context.global.navigator)==null?void 0:b.sendBeacon)!==void 0};
Ncb.prototype.ping=function(){var a=this;return we(_.Kd.apply(0,arguments).map(function(b){var c;return(c=a.context.global.navigator)==null?void 0:c.sendBeacon(b)}).every(function(b){return b}))};
Ncb.prototype.pingWithHeadersAndBody=function(a,b,c){this.ping.apply(this,_.De(_.Kd.apply(3,arguments)))};var nf=function(a){this.value=a},Tf=function(a,b){return we(a.value).pipe(lf(b))},Vf=new nf(!1),eia=new nf(!0);var Kf=function(a){this.value=a;this.releasedSubject=new jf};
Kf.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.Um.Object.defineProperties(Kf.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7189_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var Hfa=["FRAME","IMG","IFRAME"],Bfa=/^[01](px)?$/,Gfa=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},Ffa=function(){var a=new Gfa;
a.crossDomainLoadedDefault=!0;a.pendingImagesBlockLoad=!0;return a};var Ocb=function(a,b){var c=Ofa(a);if(c)if(c.onCreativeLoad)c.onCreativeLoad(b);else{var d=b?[b]:[],e=function(g){for(var k=0;k<d.length;++k)try{d[k](1,g)}catch(m){}d={push:function(m){m(1,g)}}};
c.onCreativeLoad=function(g){d.push(g)};
c.setAttribute("data-creative-load-listener","");c.addEventListener("creativeLoad",function(g){e(g.detail)});
_.ja.addEventListener("message",function(g){Nfa(c,e,g)})}};var Oy=function(a,b){var c=this;this.global=a;this.parentContext=b;this.JSC$7200_onVisibilityChange=this.document?Je(we(!0),He(this.document,"visibilitychange")).pipe(Ne(this.parentContext.performanceMonitor,748),Ce(function(){return c.getVisibilityState()}),Se()):we("visible");
this.document?He(this.document,"DOMContentLoaded").pipe(Ne(this.parentContext.performanceMonitor,739),Re(1)):we(yfa("DOMContentLoaded"))},dia=function(a){return a.document!==null&&a.document.visibilityState!==void 0};
Oy.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
Oy.prototype.querySelector=function(a){return this.document?this.document.querySelector(a):null};
Oy.prototype.querySelectorAll=function(a){return this.document?_.Ra(this.document.querySelectorAll(a)):[]};
Oy.prototype.elementFromPoint=function(a,b){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;a=this.document.elementFromPoint(a,b);return a===null?null:new Kf(a)};
var Tha=function(a,b,c){c=c===void 0?!1:c;if(b.ref===void 0||!a.document)return we(b).pipe(Ne(a.parentContext.performanceMonitor,749));var d=new Xe(1),e=function(){d.next(b)};
c||Ocb(b.ref,e);Ifa(b.ref,e);return d.pipe(Ne(a.parentContext.performanceMonitor,749),Re(1))};
_.Um.Object.defineProperties(Oy.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return Sga(this.global,"document")?this.global.document||null:null}}});var Pfa=_.hx(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),Qfa=_.hx(["./reach_worklet.js"]),Rfa=_.hx(["./reach_worklet.js"]),Pcb=_.hx(["./reach_worklet.html"]),Qcb=_.hx(["./reach_worklet.js"]),Rcb=_.hx(["./reach_worklet.js"]);_.ef(Pcb);_.ef(Qcb);_.ef(Rcb);var Of={left:0,top:0,width:0,height:0};_.Ef=function(a,b){this.x=a!==void 0?a:0;this.y=b!==void 0?b:0};
_.f=_.Ef.prototype;_.f.clone=function(){return new _.Ef(this.x,this.y)};
_.f.equals=function(a){return a instanceof _.Ef&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)};
_.f.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.f.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.f.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.f.translate=function(a,b){a instanceof _.Ef?(this.x+=a.x,this.y+=a.y):(this.x+=Number(a),typeof b==="number"&&(this.y+=b));return this};
_.f.scale=function(a,b){this.x*=a;this.y*=typeof b==="number"?b:a;return this};_.rf=function(a,b){this.width=a;this.height=b};
_.f=_.rf.prototype;_.f.clone=function(){return new _.rf(this.width,this.height)};
_.f.area=function(){return this.width*this.height};
_.f.aspectRatio=function(){return this.width/this.height};
_.f.isEmpty=function(){return!this.area()};
_.f.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.f.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.f.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.f.scale=function(a,b){this.width*=a;this.height*=typeof b==="number"?b:a;return this};var Fl=function(a,b){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=a===kua&&b||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=Scb};
Fl.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var Tcb=function(a){return a instanceof Fl&&a.constructor===Fl&&a.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===Scb?a.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},Scb={},kua={};
new Fl(kua,"");var uf,rg,Qy,Ucb,Xcb,Wcb,Ff,Zcb,adb,$cb,Uy,bdb,idb,hdb,gdb,jdb,kdb,ldb,mdb,Bsa,ndb,pdb,qdb,odb,Py,sdb;uf=function(a){return a?new Py(_.Hf(a)):R8a||(R8a=new Py)};
_.cu=function(a,b){return typeof b==="string"?a.getElementById(b):b};
rg=function(a,b){return(b||document).getElementsByTagName(String(a))};
_.Vcb=function(a){return Ucb("yt-formatted-string","paper-input-input",a)};
Qy=function(a,b,c,d){a=d||a;return(b=b&&b!="*"?String(b).toUpperCase():"")||c?a.querySelectorAll(b+(c?"."+c:"")):a.getElementsByTagName("*")};
Ucb=function(a,b,c){var d=document,e=a&&a!="*"?String(a).toUpperCase():"";return e||b?(c||d).querySelector(e+(b?"."+b:"")):Qy(d,a,b,c)[0]||null};
Xcb=function(a,b){_.Cf.forEach(b,function(c,d){d=="style"?a.style.cssText=c:d=="class"?a.className=c:d=="for"?a.htmlFor=c:Wcb.hasOwnProperty(d)?a.setAttribute(Wcb[d],c):_.na(d,"aria-")||_.na(d,"data-")?a.setAttribute(d,c):a[d]=c})};
Wcb={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"};_.sf=function(a){a=(a||window).document;a=a.compatMode=="CSS1Compat"?a.documentElement:a.body;return new _.rf(a.clientWidth,a.clientHeight)};
_.Ycb=function(a){var b=_.Ry(a);a=a.defaultView;return new _.Ef(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
_.Ry=function(a){return a.scrollingElement?a.scrollingElement:_.zx||a.compatMode!="CSS1Compat"?a.body||a.documentElement:a.documentElement};
Ff=function(a){return a?a.defaultView:window};
_.Sy=function(a,b,c){return Zcb(document,arguments)};
Zcb=function(a,b){var c=b[1],d=$cb(a,String(b[0]));c&&(typeof c==="string"?d.className=c:Array.isArray(c)?d.className=c.join(" "):Xcb(d,c));b.length>2&&adb(a,d,b,2);return d};
adb=function(a,b,c,d){function e(m){m&&b.appendChild(typeof m==="string"?a.createTextNode(m):m)}
for(;d<c.length;d++){var g=c[d];if(!_.Sa(g)||_.Za(g)&&g.nodeType>0)e(g);else{a:{if(g&&typeof g.length=="number"){if(_.Za(g)){var k=typeof g.item=="function"||typeof g.item=="string";break a}if(typeof g==="function"){k=typeof g.item=="function";break a}}k=!1}_.Mi(k?_.Ra(g):g,e)}}};
_.pg=function(a){return $cb(document,a)};
$cb=function(a,b){b=String(b);a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)};
_.Ty=function(){return document.createTextNode("\n")};
Uy=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};
bdb=function(a,b){adb(_.Hf(a),a,arguments,1)};
_.Vy=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
_.Wy=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b)};
_.Xy=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)};
_.qg=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
_.cdb=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)};
_.ddb=function(a){var b,c=a.parentNode;if(c&&c.nodeType!=11)if(a.removeNode)a.removeNode(!1);else{for(;b=a.firstChild;)c.insertBefore(b,a);_.qg(a)}};
_.Yy=function(a){return a.children!=void 0?a.children:Array.prototype.filter.call(a.childNodes,function(b){return b.nodeType==1})};
_.fdb=function(a){return a.nextElementSibling!==void 0?a.nextElementSibling:_.edb(a.nextSibling,!0)};
_.edb=function(a,b){for(;a&&a.nodeType!=1;)a=b?a.nextSibling:a.previousSibling;return a};
_.Sk=function(a){return _.Za(a)&&a.nodeType==1};
_.Jg=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};
idb=function(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=a.nodeType==1,d=b.nodeType==1;if(c&&d)return a.sourceIndex-b.sourceIndex;var e=a.parentNode,g=b.parentNode;return e==g?gdb(a,b):!c&&_.Jg(e,b)?-1*hdb(a,b):!d&&_.Jg(g,a)?hdb(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:g.sourceIndex)}d=_.Hf(a);c=d.createRange();c.selectNode(a);c.collapse(!0);a=d.createRange();a.selectNode(b);
a.collapse(!0);return c.compareBoundaryPoints(_.ja.Range.START_TO_END,a)};
hdb=function(a,b){var c=a.parentNode;if(c==b)return-1;for(;b.parentNode!=c;)b=b.parentNode;return gdb(b,a)};
gdb=function(a,b){for(;b=b.previousSibling;)if(b==a)return-1;return 1};
jdb=function(a){var b,c=arguments.length;if(!c)return null;if(c==1)return arguments[0];var d=[],e=Infinity;for(b=0;b<c;b++){for(var g=[],k=arguments[b];k;)g.unshift(k),k=k.parentNode;d.push(g);e=Math.min(e,g.length)}g=null;for(b=0;b<e;b++){k=d[0][b];for(var m=1;m<c;m++)if(k!=d[m][b])return g;g=k}return g};
_.Hf=function(a){return a.nodeType==9?a:a.ownerDocument||a.document};
kdb=function(a){return a.contentDocument||a.contentWindow.document};
_.Zy=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 _.Vy(a),a.appendChild(_.Hf(a).createTextNode(String(b)))};
ldb={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};mdb={IMG:" ",BR:"\n"};Bsa=function(a){var b;a.tagName=="A"&&a.hasAttribute("href")||a.tagName=="INPUT"||a.tagName=="TEXTAREA"||a.tagName=="SELECT"||a.tagName=="BUTTON"?b=!a.disabled&&(!a.hasAttribute("tabindex")||ndb(a)):b=a.hasAttribute("tabindex")&&ndb(a);return b};
ndb=function(a){a=a.tabIndex;return typeof a==="number"&&a>=0&&a<32768};
pdb=function(a){var b=[];odb(a,b,!0);a=b.join("");a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");a=a.replace(/ +/g," ");a!=" "&&(a=a.replace(/^\s*/,""));return a};
qdb=function(a){var b=[];odb(a,b,!1);return b.join("")};
odb=function(a,b,c){if(!(a.nodeName in ldb))if(a.nodeType==3)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in mdb)b.push(mdb[a.nodeName]);else for(a=a.firstChild;a;)odb(a,b,c),a=a.nextSibling};
_.rdb=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return _.Jf(a,function(e){return(!d||e.nodeName==d)&&(!c||typeof e.className==="string"&&_.Oa(e.className.split(/\s+/),c))},!0)};
_.Jf=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};
Py=function(a){this.JSC$7218_document_=a||_.ja.document||document};
sdb=function(a){return a.JSC$7218_document_};
_.f=Py.prototype;_.f.getElement=function(a){return _.cu(this.JSC$7218_document_,a)};
_.f.$=Py.prototype.getElement;_.f.getElementsByTagName=function(a,b){return(b||this.JSC$7218_document_).getElementsByTagName(String(a))};
_.f.getElementsByTagNameAndClass=function(a,b,c){return Qy(this.JSC$7218_document_,a,b,c)};
_.f.$$=Py.prototype.getElementsByTagNameAndClass;_.f.setProperties=Xcb;_.f.JSC$7220_createDom=function(a,b,c){return Zcb(this.JSC$7218_document_,arguments)};
_.f.createElement=function(a){return $cb(this.JSC$7218_document_,a)};
_.f.createTextNode=function(a){return this.JSC$7218_document_.createTextNode(String(a))};
_.f.getWindow=function(){return this.JSC$7218_document_.defaultView};
var tf=function(a){return _.Ycb(a.JSC$7218_document_)};
_.f=Py.prototype;_.f.appendChild=function(a,b){a.appendChild(b)};
_.f.append=bdb;_.f.canHaveChildren=Uy;_.f.removeNode=_.qg;_.f.getChildren=_.Yy;_.f.contains=_.Jg;_.f=qf.prototype;_.f.getWidth=function(){return this.right-this.left};
_.f.getHeight=function(){return this.bottom-this.top};
_.f.clone=function(){return new qf(this.top,this.right,this.bottom,this.left)};
_.f.contains=function(a){return this&&a?a instanceof qf?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};
_.f.expand=function(a,b,c,d){_.Za(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=Number(b),this.bottom+=Number(c),this.left-=Number(d));return this};
_.f.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};
_.f.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};
_.f.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};
_.f.translate=function(a,b){a instanceof _.Ef?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(this.left+=a,this.right+=a,typeof b==="number"&&(this.top+=b,this.bottom+=b));return this};
_.f.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};var kga=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(kga,_.bd);kga.prototype.getVersion=function(){return _.Tx(this,2)};var jga=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(jga,_.bd);var dga=function(a,b){return _.vf(a,2,b)},iga=function(a,b){return _.vf(a,3,b)};
jga.prototype.getModel=function(){return _.Tx(this,4)};
var fga=function(a,b){return _.vf(a,4,b)},cga=function(a,b){return _.vf(a,5,b)},hga=function(a,b){return _.vf(a,9,b)},bga=function(a,b){return Lx(a,10,b)},aga=function(a,b){return _.gg(a,11,b)},ega=function(a,b){return _.vf(a,1,b)},gga=function(a,b){return _.gg(a,7,b)};var Zfa="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var Uf=function(a,b,c,d){a=a===void 0?window:a;b=b===void 0?null:b;c=c===void 0?new Vab:c;d=d===void 0?Sfa():d;Kbb.call(this);var e=this;this.global=a;this.debugChannel=b;this.performanceMonitor=c;this.onPageHide=Hea(function(){return He(e.global,"pagehide")}).pipe(Ne(this.performanceMonitor,941));
this.onLoad=Hea(function(){return He(e.global,"load")}).pipe(Ne(this.performanceMonitor,738),Re(1));
this.onResize=Hea(function(){return He(e.global,"resize")}).pipe(Ne(this.performanceMonitor,741));
this.onMessage=Hea(function(){return He(e.global,"message")}).pipe(Ne(this.performanceMonitor,740));
this.document=new Oy(this.global,this);this.timeProvider=new Qbb(new Sbb(this.intrinsicFunctionNamespace,this.performanceMonitor),new Rbb(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new Nbb(new Ubb(this),new Kcb(this),new Ay(this,new Xbb(this)),new Ay(this,new Ncb(this)),new Ay(this,new My(this)))};
_.z(Uf,Kbb);var Dy=function(a){var b=a.global;return!!a.global.HTMLFencedFrameElement&&!!b.fence&&typeof b.fence.reportEvent==="function"};
_.f=Uf.prototype;_.f.reportFencedFrameEvent=function(a){Dy(this)&&this.global.fence.reportEvent(a)};
_.f.getOnBackgrounded=function(){return this.onPageHide.pipe(Ne(this.performanceMonitor,942),lf(this.queue),Ce(function(){}))};
_.f.postMessage=function(a,b,c){c=c===void 0?[]:c;this.global.postMessage(a,b,c)};
_.f.getWidth=function(){return Mha(this.global)?this.global.width:0};
_.f.getHeight=function(){return Mha(this.global)?this.global.height:0};
_.f.isMobile=function(){return Zbb()||$bb()};
var Lf=function(a,b){try{var c=Wfa(b,a.global,a.isMobile());return{left:c.left,top:c.top,width:c.getWidth(),height:c.getHeight()}}catch(d){return Of}};
Uf.prototype.validate=function(){var a=this.beaconFactory.isSupported()||Dy(this);return this.global&&this.timeProvider.available()&&a};
var vfa=function(a){return(a=mga(a.global))?oe(a):null};
_.Um.Object.defineProperties(Uf.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(a){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!Mha(this.global.top)}},
inIframe:{configurable:!0,enumerable:!0,get:function(){return this.inCrossDomainIframe||this.global.top!==this.global}},
scrollY:{configurable:!0,enumerable:!0,get:function(){return this.global.scrollY}},
MutationObserver:{configurable:!0,enumerable:!0,get:function(){return this.intrinsicFunctionNamespace.MutationObserver}},
ResizeObserver:{configurable:!0,enumerable:!0,get:function(){return this.intrinsicFunctionNamespace.ResizeObserver}}});_.tdb=!_.xx&&!_.jaa();var fia=function(a){return a};var hia=function(a){return a.pipe(Ke(function(b){var c=b.endOfSessionReason;var d;return((d=b.viewable)==null?void 0:d.extrapolateToNow().value)||c!=void 0}),Re(1),Pe())};var tga=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},uga=function(a){var b=a.sequenceNumber.toString(10).padStart(2,"0");
b=""+a.startTime+b;a.sequenceNumber<99&&a.sequenceNumber++;return b};var cia=je(bf(function(a){return a.endOfSessionReason===void 0}),Ce(function(a){return Object.assign({},a,{timestamps:xf(a)})}),Ke(function(a){var b=a.viewable;
a=a.timestamps;var c;return(c=b==null?void 0:b.extrapolateUsingTimestampMap(a).value)!=null?c:!1}),Ce(function(a){var b=a.beaconFactory;
var c=a.timestampedExposureHistory;var d=a.timeOnScreen;var e=a.binaryContext;a=a.timestamps;if(b===void 0||c===void 0||d===void 0||e===void 0)return!1;if(d.extrapolateUsingTimestampMap(a).value.every(function(g){return g>=0}))return!0;
c=c.map(function(g){return g.timestamp+":"+g.value}).join(",");
d=vga({bin:e,tos:d},a);b.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+d+("&eh="+c)).sendNow();return!0}),bf(function(a){return!a}),Pe());var xga=function(a){return{id:a.pingId,mcvt:a.maxConsecutiveViewTime,p:a.creativePosition,asp:a.adSpeedPosition,tm:a.totalMeasurementTime,tu:a.totalUnviewedTime,mtos:a.maxTimeOnScreen,tos:a.timeOnScreen,v:a.binaryVersion,bin:a.binaryContext,avms:a.measurementStrategy,bs:a.browserSize,mc:a.maximumExposure,"if":a.crossDomainIframeState,vu:a.delayedImpressionJsState,app:a.inApp,mse:a.mraidError,mtop:a.mraidSituation,itpl:a.injectedTemplateId,adk:a.adKey,exk:a.awbidKey,rs:a.requestSource,la:a.isLargeAd,
cr:a.isContentRecommendationAd,uach:a.userAgentClientHints,vs:a.viewState,r:a.reasonCode,pay:a.hasCpmavUrl,co:a.clientPingOrderCounter,rst:a.adRenderStartTime,rpt:a.adRenderPeriodTime,isd:a.initialScrollDepth,lsd:a.loadedScrollDepth,context:a.errorContext,msg:a.errorMessage,stack:a.errorStack,name:a.errorName,ec:a.hasElementChanged,sfr:a.strategyFailureReasons,met:a.creativeSearchResult,wmsd:a.webMeasurementStartDiagnostic,pv:a.pageVisible,epv:a.eosPageVisible,pbe:a.inStatefulBeaconExperiment,fle:a.inFetchLaterBeaconExperiment,
vae:a.inViewableAttributionExperiment,spb:a.supportsPendingBeacon,sfl:a.supportsFetchLater,ffslot:a.isFencedFrameSlotTurtlex,reach:a.sharedStorageReachMode,io2:a.v2VisibilityBitVector,rxdbg:a.rxDebugger,omida:a.omidAppId,omidp:a.omidPartner,omidpv:a.omidPartnerVersion,omidor:a.omidOcclusionReasons,omidv:a.omidVersion,omids:a.omidSessionType,omidam:a.omidAccessMode,omidct:a.omidCreativeType,omidia:a.omidInApp,omiddc:a.omidDeviceCategory,omidlat:a.omidLastActivity,omiddit:a.omidDeviceIdleTime,qid:a.errorEscapedQueryId}};var gia=function(a){var b=[];return a.pipe(Ce(function(c){var d=c.beaconFactory,e=c.fetchBeaconFactory,g=c.timeOnScreen,k=c.timeOnScreenUrlPrefixes,m=c.payloadMapper,n=c.timeOnScreenPingId,r=c.timeOnScreenReason,t=c.urlSerializer,u=c.viewable,x=c.hasImpressionFired,A=c.inStatefulBeaconExperiment,C=c.supportsPendingBeacon,F=c.supportsFetchLater,J=c.turtlexReportEventData;if(!c.geometryMeasurable||!x||c.maxTimeOnScreen===void 0||g===void 0||k===void 0||m===void 0||n===void 0||t===void 0||d===void 0)return!1;
if(c.isTurtlex){if(r===void 0)return!1;k=c.reportFencedFrameEvent;if(!k)return!1;k({eventType:"active-view-time-on-screen",eventData:J!=null?J:"",destination:["buyer"]});return!0}if(!(A||F||r))return!1;J=xf(c);var I;u=(I=u==null?void 0:u.extrapolateUsingTimestampMap(J).value)!=null?I:!1;I=t(Object.assign({},c,{pingId:n,viewState:u?4:3,reasonCode:r!=null?r:"u",payloadMapper:m,urlPrefixes:k}),J);if(A){for(;b.length>k.length;)c=void 0,(c=b.shift())==null||c.deactivate();I.forEach(function(da,V){V>=b.length?
b.push(d.makeBeacon(da)):b[V].url=da});
return C&&e&&r!==void 0?(I.forEach(function(da){e.makeBeacon(da).sendNow()}),!0):r!==void 0}if(C&&e&&r!==void 0)return I.forEach(function(da){e.makeBeacon(da).sendNow()}),!0;
if(F&&e){for(;b.length>k.length;)C=void 0,(C=b.shift())==null||C.deactivate();var R=t(Object.assign({},c,{pingId:n,viewState:u?4:3,reasonCode:r!=null?r:"u",payloadMapper:m,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),J)[0];I.forEach(function(da,V){V>=b.length?b.push(d.makeBeacon(R,{endOfSession:!0})):b[V].url=R});
return r!==void 0?(I.forEach(function(da){e.makeBeacon(da).sendNow()}),!0):r!==void 0}return r!==void 0?(I.forEach(function(da){d.makeBeacon(da).sendNow()}),!0):!1}),bf(function(c){return!c}),Pe())};var iia=je(Ke(function(a){return a.immediateUrlPrefixes!==void 0&&a.payloadMapper!==void 0&&a.urlSerializer!==void 0&&a.inferredPingId!==void 0&&a.beaconFactory!==void 0}),Ke(function(a){return Fga(a)!==null}),Dga(function(a){return a.activeViewUnmeasurableEvent},function(a){return a.emit}),Ce(function(a){if(a.isTurtlex){var b=a.reportFencedFrameEvent;
if(b){var c;b({eventType:"active-view-unmeasurable",eventData:(c=a.turtlexReportEventData)!=null?c:"",destination:["buyer"]})}}else{c=void 0;var d=Fga(a);if(d==="x"){var e,g=(e=a.geometricMeasurementErrors)!=null?e:a.contextValidationErrors;g&&(b=g.stack,c=g.message)}a.urlSerializer(Object.assign({},a,{urlPrefixes:a.immediateUrlPrefixes,payloadMapper:a.payloadMapper,pingId:a.inferredPingId,viewState:2,reasonCode:d,errorMessage:c,errorStack:b}),xf(a)).forEach(function(k){a.beaconFactory.makeBeacon(k).sendNow()})}}),
Re(1),Pe());var Gga=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var bia=je(Ke(function(a){return a.payloadMapper!==void 0&&a.immediateUrlPrefixes!==void 0&&a.urlSerializer!==void 0&&a.inferredPingId!==void 0&&a.beaconFactory!==void 0}),Ce(function(a){return Object.assign({},a,{timestamps:xf(a)})}),Ke(function(a){var b=a.viewable;
var c=a.hasImpressionFired;a=a.timestamps;var d;return!!c&&((d=b==null?void 0:b.extrapolateUsingTimestampMap(a).value)!=null?d:!1)}),Dga(function(a){return a.activeViewViewableEvent},function(a){return a.emit}),Ce(function(a){var b=a.beaconFactory,c=a.turtlexReportEventData;
if(a.isTurtlex){var d=a.reportFencedFrameEvent;if(!d)return!1;d({eventType:"active-view-viewable",eventData:c!=null?c:"",destination:["buyer"]});return!0}c=a.urlSerializer(Object.assign({},a,{urlPrefixes:a.immediateUrlPrefixes,payloadMapper:a.payloadMapper,pingId:a.inferredPingId,viewState:4,reasonCode:"v"}),a.timestamps);(d=a.cpmavUrls)&&d.length>0&&a.viewUrlSerializer&&a.viewUrlSerializer(d,a).forEach(function(e){b.makeBeacon(e).sendNow()});
(d=a.viewableRelayUrls)&&d.length>0&&a.viewUrlSerializer&&a.viewUrlSerializer(d,a).forEach(function(e){b.makeBeacon(e).sendNow()});
c.forEach(function(e){b.makeBeacon(e,{attributionEnabled:a.isViewableAttributionEnabled}).sendNow()});
return!0}),bf(function(a){return!a}),Pe());var xha=Ce(function(a){return[a.value.topWindowViewportExternalGeometry.width,a.value.topWindowViewportExternalGeometry.height]});var Mf=function(a,b){this.callback=a;this.options=b;this.intersectionObserverV2=this.intersectionObserverV1=null},gha=function(a,b){b?a.intersectionObserverV2||(b=Object.assign({},a.options,{delay:100,
trackVisibility:!0}),a.intersectionObserverV2=new IntersectionObserver(a.callback,b)):a.intersectionObserverV1||(a.intersectionObserverV1=new IntersectionObserver(a.callback,a.options))},udb=function(a,b){a=b?a.intersectionObserverV2:a.intersectionObserverV1;
if(!a)throw new Lbb;return a};
Mf.prototype.observe=function(a,b){udb(this,a).observe(b)};
Mf.prototype.unobserve=function(a,b){udb(this,a).unobserve(b)};
Mf.prototype.disconnect=function(a){udb(this,a).disconnect()};
Mf.prototype.takeRecords=function(a){return udb(this,a).takeRecords()};var Vga={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:Of,topWindowViewportExternalGeometry:Of,measurementRequests:new jf,elementGeometrySourceName:"ns",elementGeometry:Of,intersectionGeometry:Of,viewportLocalAppOffset:{x:0,y:0}};var $y=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
_.f=$y.prototype;_.f.clone=function(){return new $y(this.left,this.top,this.width,this.height)};
_.f.boundingRect=function(a){var b=Math.max(this.left+this.width,a.left+a.width),c=Math.max(this.top+this.height,a.top+a.height);this.left=Math.min(this.left,a.left);this.top=Math.min(this.top,a.top);this.width=b-this.left;this.height=c-this.top};
_.f.contains=function(a){return a instanceof _.Ef?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};
_.f.distance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(b*b+a*a)};
_.f.getSize=function(){return new _.rf(this.width,this.height)};
_.f.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};
_.f.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};
_.f.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};
_.f.translate=function(a,b){a instanceof _.Ef?(this.left+=a.x,this.top+=a.y):(this.left+=a,typeof b==="number"&&(this.top+=b));return this};
_.f.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 wdb,cz,Tga,bz,Adb,zdb,Bdb,sya,Cdb,Edb;_.az=function(a,b,c){if(typeof b==="string")(b=_.vdb(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],g=_.vdb(c,d);g&&(c.style[g]=e)}};
wdb={};_.vdb=function(a,b){var c=wdb[b];if(!c){var d=_.pn(b);c=d;a.style[d]===void 0&&(d=(_.zx?"Webkit":_.yx?"Moz":null)+vbb(d),a.style[d]!==void 0&&(c=d));wdb[b]=c}return c};
_.qv=function(a,b){var c=_.Hf(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
_.Ig=function(a,b){return _.qv(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
_.xdb=function(a){return _.Ig(a,"position")};
cz=function(a,b,c){if(b instanceof _.Ef){var d=b.x;b=b.y}else d=b,b=c;a.style.left=bz(d,!1);a.style.top=bz(b,!1)};
Tga=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
_.If=function(a){var b=_.Hf(a),c=new _.Ef(0,0);if(a==(b?_.Hf(b):document).documentElement)return c;a=Tga(a);b=tf(uf(b));c.x=a.left+b.x;c.y=a.top+b.y;return c};
_.ydb=function(a,b,c){if(b instanceof _.rf)c=b.height,b=b.width;else if(c==void 0)throw Error("va");a.style.width=bz(b,!0);a.style.height=bz(c,!0)};
bz=function(a,b){typeof a=="number"&&(a=(b?Math.round(a):a)+"px");return a};
Adb=function(a){return zdb(a)};
zdb=function(a){var b=Bdb;if(_.Ig(a,"display")!="none")return b(a);var c=a.style,d=c.display,e=c.visibility,g=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=g;c.visibility=e;return a};
Bdb=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=_.zx&&!b&&!c;return(b===void 0||d)&&a.getBoundingClientRect?(a=Tga(a),new _.rf(a.right-a.left,a.bottom-a.top)):new _.rf(b,c)};
sya=function(a){var b=_.If(a);a=zdb(a);return new $y(b.x,b.y,a.width,a.height)};
Cdb=function(a,b){a=a.style;"opacity"in a?a.opacity=b:"MozOpacity"in a?a.MozOpacity=b:"filter"in a&&(a.filter=b===""?"":"alpha(opacity="+Number(b)*100+")")};
_.Pg=function(a,b){a.style.display=b?"":"none"};
_.Ddb=function(a){return"rtl"==_.Ig(a,"direction")};
Edb=function(a){var b=_.qv(a,"marginLeft"),c=_.qv(a,"marginRight"),d=_.qv(a,"marginTop");a=_.qv(a,"marginBottom");return new qf(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};
_.Fdb=function(a){var b=_.qv(a,"borderLeftWidth"),c=_.qv(a,"borderRightWidth"),d=_.qv(a,"borderTopWidth");a=_.qv(a,"borderBottomWidth");return new qf(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};var Gdb=function(a){return a.intersectionGeometry.width*a.intersectionGeometry.height/(a.elementGeometry.width*a.elementGeometry.height)},mha=Pf(je(Ce(function(a){var b;
return(b=a.exposureOverride)!=null?b:Gdb(a)}),Ce(function(a){return isFinite(a)?a:0}))),tha=Pf(je(Ce(function(a){var b;
return(b=a.exposureOverride)!=null?b:Gdb(a)}),Ce(function(a){return isFinite(a)?a:-1})));var dz=function(a,b){this.a=a;this.b=b;if(a.clock.timeline!==b.clock.timeline)throw Error();};
dz.prototype.equivalentTo=function(a){return a instanceof dz?this.a.equivalentTo(a.a)&&this.b.equivalentTo(a.b):!1};
dz.prototype.extrapolateToTime=function(a){var b=this.a.extrapolateToTime(a).value,c=this.b.extrapolateToTime(a).value;return{timestamp:a,value:[b,c]}};
_.Um.Object.defineProperties(dz.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.a.active||this.b.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.a.clock}},
lastMeasurement:{configurable:!0,enumerable:!0,get:function(){var a=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),b=this.a.lastMeasurement.timestamp.equals(a)?this.a.lastMeasurement.value:this.a.extrapolateToTime(a).value,c=this.b.lastMeasurement.timestamp.equals(a)?this.b.lastMeasurement.value:this.b.extrapolateToTime(a).value;return{timestamp:a,value:[b,c]}}}});var ez=function(a,b){this.input=a;this.mapFunction=b;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
ez.prototype.equivalentTo=function(a){return a instanceof ez?this.input.equivalentTo(a.input)&&this.mapFunction===a.mapFunction:!1};
ez.prototype.extrapolateToTime=function(a){a=this.input.extrapolateToTime(a);return{timestamp:a.timestamp,value:this.mapFunction(a.value)}};
_.Um.Object.defineProperties(ez.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var fz=function(){};
fz.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
fz.prototype.extrapolateUsingTimestampMap=function(a){var b=this.clock.timeline,c,d=(c=a.get(b))!=null?c:this.clock.now();a.set(b,d);return this.extrapolateToTime(d)};
fz.prototype.map=function(a){return new Hdb(this,a)};
fz.prototype.joinWith=function(a){return new Idb(this,a)};
var Idb=function(){dz.apply(this,arguments);this.map=fz.prototype.map;this.joinWith=fz.prototype.joinWith;this.extrapolateToNow=fz.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=fz.prototype.extrapolateUsingTimestampMap};
_.z(Idb,dz);var Hdb=function(){ez.apply(this,arguments);this.map=fz.prototype.map;this.joinWith=fz.prototype.joinWith;this.extrapolateToNow=fz.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=fz.prototype.extrapolateUsingTimestampMap};
_.z(Hdb,ez);var Rf=function(a,b){this.lastMeasurement=b;this.extrapolateToNow=fz.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=fz.prototype.extrapolateUsingTimestampMap;this.map=fz.prototype.map;this.joinWith=fz.prototype.joinWith;this.clock=a};
Rf.prototype.equivalentTo=function(a){return a.active};
Rf.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.Um.Object.defineProperties(Rf.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var wha=Ce(function(a){if(a.value.viewportGeometrySourceName==="omid"){if(a.value.elementGeometrySourceName==="nio")return"omio";if(a.value.elementGeometrySourceName==="geo")return"omgeo"}return a.value.elementGeometrySourceName==="geo"||a.value.elementGeometrySourceName==="nio"?a.value.viewportGeometrySourceName:a.value.elementGeometrySourceName});var jha=je(Ke(function(a){return!isNaN(a)}),Ze(function(a,b){return isNaN(a)?b:Math.min(a,b)},NaN),Se());var nha=Pf(je(Ce(function(a){return a.intersectionGeometry.width*a.intersectionGeometry.height/(a.exposedViewportLocalGeometry.width*a.exposedViewportLocalGeometry.height)}),Ce(function(a){return isFinite(a)?Math.min(1,a):0})));var vha=je(Pf(Ce(function(a){a=a.exposureOverride?a.elementGeometry.width*a.elementGeometry.height*a.exposureOverride/(a.topWindowViewportExternalGeometry.width*a.topWindowViewportExternalGeometry.height):a.intersectionGeometry.width*a.intersectionGeometry.height/(a.topWindowViewportExternalGeometry.width*a.topWindowViewportExternalGeometry.height);return isFinite(a)?a:0})));var Aha=function(a,b){var c=this;this.timeProvider=a;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=b.pipe(Se()).subscribe(function(d){Cha(c);c.measurementRequestObserver=d})},Dha=function(a,b){Cha(a);
a.lastMeasurementRequest=a.timeProvider.setTimeout(function(){var c;return void((c=a.measurementRequestObserver)==null?void 0:c.next())},b)},Cha=function(a){a.lastMeasurementRequest!==null&&a.timeProvider.clearTimeout(a.lastMeasurementRequest);
a.lastMeasurementRequest=null};
Aha.prototype.dispose=function(){Cha(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var Jdb=function(){};var Zha=function(a,b){this.context=a;this.strategies=b};
_.z(Zha,Jdb);Zha.prototype.buildGeometrySource=function(a,b){var c=this.strategies.map(function(g){return g.buildGeometrySource(a,b)}),d=Iha(c.map(function(g){return g.geometrySource})),e=d.capturedErrors.pipe(Kdb());
return{geometrySource:d.chain.pipe(lf(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:e,strategyErrors:d.capturedErrors}].concat(_.De(c.map(function(g){return g.additionalOutputs}))))}};
var Kdb=function(){return Ze(function(a,b){b instanceof zf?a.push(b.measurementStrategyFailureReason):a.push(-1);return a},[])};var aia=function(a,b){this.context=a;this.poller=b};
_.z(aia,Jdb);aia.prototype.buildGeometrySource=function(a,b){var c=Jha(Lha(this.context,this.poller),Wga(this.context,b.requestSource));return{geometrySource:Hha(a.measurableCreative.pipe(c),b.inApp),additionalOutputs:{}}};var $ha=function(a,b,c){c=c===void 0?bha(a,b):c;this.context=a;this.intersectionObserverStrategy=c};
_.z($ha,Jdb);$ha.prototype.buildGeometrySource=function(a,b){var c=this.intersectionObserverStrategy(b.useV2);return{geometrySource:Hha(a.measurableCreative.pipe(c,cha(this.context)),b.inApp),additionalOutputs:{}}};var Ldb=function(a,b,c){var d=d===void 0?Symbol():d;this.element=a;this.immediateUrls=b;this.timeOnScreenUrls=c;this.symbol=d};var zha=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),Rha=Object.freeze([1,.75,zha.exposureThreshold,zha.largeAdExposureThreshold,0]);var M0a=function(a){var b=b===void 0?36E5:b;var c=c===void 0?!0:c;this.creatives=new jf;this.elementsToUnregister=new jf;this.elementMap=new Map;var d=new Uf(window,null);d.beaconFactory=new Ay(d,new My(d));Yha(d,this.creatives,this.elementsToUnregister,a,b,c).subscribe()},O0a=function(a,b,c,d){if(!a.elementMap.has(b)){var e=new Kf(b);
a.elementMap.set(b,e);a.creatives.next(new Ldb(e,c,d))}},N0a=function(a,b){a.elementsToUnregister.next(b);
var c=a.elementMap.get(b);c!==void 0&&(c.release(),a.elementMap.delete(b))};var dsa=function(a){var b=a.url;a=a.uaDataValues;this.JSC$7329_url_=b;this.uaDataValues_=a;this.suid_=(new Date).getTime()-17040672E5},esa=function(a){a=a.uaDataValues_;
if(!a)return"";var b=Wf("uap",a.platform)+Wf("uapv",a.platformVersion)+Wf("uafv",a.uaFullVersion)+Wf("uaa",a.architecture)+Wf("uam",a.model)+Wf("uab",a.bitness);a.fullVersionList&&(b+="&uafvl="+encodeURIComponent(a.fullVersionList.map(function(c){return encodeURIComponent(c.brand)+";"+encodeURIComponent(c.version)}).join("|")));
a.wow64!=null&&(b+="&uaw="+Number(a.wow64));return b.slice(1)};var Mdb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Mdb,_.bd);Mdb.prototype.getId=function(){return _.Tx(this,1)};var gz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(gz,_.bd);gz.prototype.getSeconds=function(){return Rx(this,1)};
gz.prototype.setSeconds=function(a){return _.Uc(this,1,jc(a),"0")};_.bw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(_.bw,_.bd);_.bw.prototype.getSeconds=function(){return Rx(this,1)};
_.bw.prototype.setSeconds=function(a){return _.Uc(this,1,jc(a),"0")};
_.Ndb=function(a){var b=Number(Vx(a,1));a=_.bg(a,2);return new Date(b*1E3+a/1E6)};var hz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(hz,_.bd);hz.prototype.getUrl=function(){return _.Tx(this,1)};
hz.prototype.setUrl=function(a){return _.kw(this,1,a)};
hz.prototype.getHeight=function(){return _.bg(this,2)};
hz.prototype.getWidth=function(){return _.bg(this,3)};var iz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(iz,_.bd);iz.prototype.getAspectRatio=function(){return Sx(this,1)};
iz.prototype.setAspectRatio=function(a){return _.Uc(this,1,_.Xb(a),0)};
iz.prototype.getDuration=function(){return _.Xj(this,gz,2)};var Odb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Odb,_.bd);var Pdb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Pdb,_.bd);var Qdb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Qdb,_.bd);var Rdb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Rdb,_.bd);var Sdb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Sdb,_.bd);var Tdb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Tdb,_.bd);var Udb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Udb,_.bd);var Vdb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Vdb,_.bd);var Wdb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Wdb,_.bd);var jz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(jz,_.bd);var kz=[2,4,5,6,7];var Xdb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Xdb,_.bd);var Mx=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Mx,_.bd);_.f=Mx.prototype;_.f.getId=function(){return _.Xj(this,Mdb,1)};
_.f.getName=function(){return _.Tx(this,2)};
_.f.setDescription=function(a){return _.kw(this,3,a)};
_.f.getUrl=function(){return _.Tx(this,8)};
_.f.setUrl=function(a){return _.kw(this,8,a)};
var lz=function(a){return _.Zf(a,hz,10,_.$f())};
Mx.prototype.getOwner=function(a){var b=_.Pc(this,40,_.sc,3,!0);Saa(b,a);return b[a]};
Mx.prototype.getVersion=function(){return Rx(this,45)};
var mz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(mz,_.bd);_.Ydb=[0,I$a,K$a];_.Zdb=[0,I$a,K$a];var $db=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z($db,_.bd);var nz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(nz,_.bd);nz.prototype.getStatus=function(){return _.Ux(this,1)};
nz.prototype.removeItem=function(a){return b$a(this,2,a)};var aeb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(aeb,_.bd);aeb.prototype.getName=function(){return _.Tx(this,8)};var oz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(oz,_.bd);oz.prototype.getCommand=function(){return _.Ux(this,1)};
oz.prototype.getSource=function(){return _.Xj(this,aeb,2)};
oz.prototype.setVisible=function(a){return _.An(this,5,a)};
oz.prototype.removeItem=function(a){return b$a(this,7,a)};var beb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(beb,_.bd);beb.prototype.getCommand=function(){return _.Ux(this,1)};
beb.prototype.removeItem=function(a){return b$a(this,4,a)};
var ceb=_.od(beb);var pz=function(a,b,c){c=c===void 0?Error():c;var d=Error.call(this);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=a;b+=":";c instanceof Error?(this.message=b+c.message,this.stack=c.stack||""):(this.message=b+String(c),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.z(pz,Error);_.vg=function(){this.JSC$7387_disposed_=this.JSC$7387_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.vg.prototype.JSC$7387_disposed_=!1;_.vg.prototype.isDisposed=function(){return this.JSC$7387_disposed_};
_.vg.prototype.dispose=function(){this.JSC$7387_disposed_||(this.JSC$7387_disposed_=!0,this.disposeInternal())};
_.vg.prototype[Symbol.dispose]=function(){this.dispose()};
_.kg=function(a,b){a.addOnDisposeCallback(_.xo(_.Xf,b))};
_.vg.prototype.addOnDisposeCallback=function(a,b){this.JSC$7387_disposed_?b!==void 0?a.call(b):a():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),b&&(a=a.bind(b)),this.onDisposeCallbacks_.push(a))};
_.vg.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var qz=function(a){_.vg.call(this);this.wpc=a};
_.z(qz,_.vg);qz.prototype.j7a=function(){return this.wpc.f()};
qz.prototype.qNb=function(a){return this.wpc.c(a)};
qz.prototype.lK=function(a){return this.wpc.m(pia(a))};
qz.prototype.v8=function(a){return this.wpc.mws(pia(a))};
var Yf=function(a){_.vg.call(this);var b=this;this.qc=a;this.jic="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.fdb=void 0;this.gba=this.qc.p;this.rAc=this.tpa.bind(this);this.addOnDisposeCallback(function(){return void deb(b)})};
_.z(Yf,_.vg);var eeb=function(a){var b;return _.l(function(c){if(c.nextAddress==1){if(!a.qc.wpc)throw new pz(30,"NWA");return a.hXa?c.return(a.hXa):_.p(c,a.qc.wpc(),2)}b=c.yieldResult;a.hXa=new qz(b);return c.return(a.hXa)})};
Yf.prototype.snapshot=function(a){return this.qc.s(Object.assign({},a.ew&&{c:a.ew},a.wPa&&{s:a.wPa},a.fqb!==void 0&&{p:a.fqb}))};
Yf.prototype.tpa=function(a){this.qc.e(a)};
Yf.prototype.oBa=function(a,b){return this.qc.c(a,b,!1)};
var deb=function(a){a.fdb!==void 0&&(a.jic.forEach(function(b){var c;(c=a.fdb)==null||c.removeEventListener(b,a.rAc)}),a.fdb=void 0)};
Yf.prototype.isa=function(){return this.qc.l()};var feb,rz=function(){_.vg.apply(this,arguments);this.y7b=1;this[feb]=this.dispose};
_.z(rz,_.vg);rz.prototype.share=function(){if(this.isDisposed())throw Error("wa");this.y7b++;return this};
rz.prototype.dispose=function(){--this.y7b||_.vg.prototype.dispose.call(this)};
feb=Symbol.dispose;var Lia=function(a){this.zpc=a;a.addNewEventMetric("/client_streamz/bg/frs",_.fg("mk"))};
Lia.prototype.record=function(a,b){this.zpc.record("/client_streamz/bg/frs",a,b)};
var Pia=function(a){this.aqc=a;a.addNewEventMetric("/client_streamz/bg/wrl",_.fg("mn"),eg("ac"),eg("sc"),_.fg("rk"),_.fg("mk"))};
Pia.prototype.record=function(a,b,c,d,e,g){this.aqc.record("/client_streamz/bg/wrl",a,b,c,d,e,g)};
var Nia=function(a){this.bqc=a;a.addNewCounter("/client_streamz/bg/ec",_.fg("en"),_.fg("mk"))};
Nia.prototype.increment=function(a,b){this.bqc.JSC$7636_incrementCounter("/client_streamz/bg/ec",a,b)};
var Oia=function(a){this.cqc=a;a.addNewEventMetric("/client_streamz/bg/el",_.fg("en"),_.fg("mk"))};
Oia.prototype.record=function(a,b,c){this.cqc.record("/client_streamz/bg/el",a,b,c)};
var Mia=function(a){this.dqc=a;a.addNewCounter("/client_streamz/bg/cec",eg("ec"),_.fg("mk"))};
Mia.prototype.increment=function(a,b){this.dqc.JSC$7636_incrementCounter("/client_streamz/bg/cec",a,b)};
var Qia=function(a){this.eqc=a;a.addNewCounter("/client_streamz/bg/po/csc",eg("cs"),_.fg("mk"))};
Qia.prototype.increment=function(a,b){this.eqc.JSC$7636_incrementCounter("/client_streamz/bg/po/csc",a,b)};
var Ria=function(a){this.fqc=a;a.addNewCounter("/client_streamz/bg/po/ctav",_.fg("av"),_.fg("mk"))};
Ria.prototype.increment=function(a,b){this.fqc.JSC$7636_incrementCounter("/client_streamz/bg/po/ctav",a,b)};
var Sia=function(a){this.gqc=a;a.addNewCounter("/client_streamz/bg/po/cwsc",_.fg("su"),_.fg("mk"))};
Sia.prototype.increment=function(a,b){this.gqc.JSC$7636_incrementCounter("/client_streamz/bg/po/cwsc",a,b)};var $ia=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z($ia,_.bd);var Zia=function(a,b){return _.Sc(a,3,b,mba)};var geb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(geb,_.bd);var heb=[1,2,3];var ieb=[0,heb,_.P$a,L$a,O$a];var jeb=[0,_.iy,[0,F$a,_.ey]];var keb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(keb,_.bd);var leb=[1,2,3];var meb=[0,leb,J$a,G$a,_.jy,jeb];var neb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(neb,_.bd);var oeb=[0,_.iy,ieb,meb];var peb=[0,[1,2,3],_.jy,[0,_.hy,-1,_.gy],_.jy,[0,_.hy,-1,_.fy,_.gy],_.jy,[0,_.hy]];var qeb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(qeb,_.bd);qeb.prototype.JSC$7456_serializeBinary=uda([0,_.hy,peb,Q$a,_.iy,oeb,M$a,N$a]);var reb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(reb,_.bd);var ueb=function(a){var b=new qeb;b=_.vf(b,1,a.JSC$7572_metricName);var c=seb(a);b=_.Sc(b,3,c,_.oc);c=[];for(var d=[],e=_.h(a.cellMap.keys()),g=e.next();!g.done;g=e.next())d.push(g.value.split(","));for(e=0;e<d.length;e++){g=d[e];for(var k=a.cellType,m=a.getCells(g)||[],n=[],r=0;r<m.length;r++){var t=m[r],u=t&&t.cellValue;t=new keb;switch(k){case 3:u=Number(u);Number.isFinite(u)&&jl(t,1,leb,jc(u));break;case 2:jl(t,2,leb,_.Xb(Number(u)))}n.push(t)}k=n;for(m=0;m<k.length;m++){n=k[m];r=new neb;n=_.qd(r,
2,n);r=[];t=teb(a);for(u=0;u<t.length;u++){var x=t[u],A=g[u],C=new geb;switch(x){case 3:jl(C,1,heb,qc(String(A)));break;case 2:x=Number(A);Number.isFinite(x)&&jl(C,2,heb,_.dc(x));break;case 1:jl(C,3,heb,jba(A==="true"))}r.push(C)}Lx(n,1,r);c.push(n)}}Lx(b,4,c);return b};var veb=function(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";a.indexOf("blob:")===0&&(a=a.substring(5));a=a.split("#")[0].split("?")[0];a=a.toLowerCase();a.indexOf("//")==0&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");c!=-1&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("xa`"+a);if(c!=="http"&&c!=="https"&&c!=="chrome-extension"&&c!=="moz-extension"&&
c!=="file"&&c!=="android-app"&&c!=="chrome-search"&&c!=="chrome-untrusted"&&c!=="chrome"&&c!=="app"&&c!=="devtools")throw Error("ya`"+c);a="";var d=b.indexOf(":");if(d!=-1){var e=b.substring(d+1);b=b.substring(0,d);if(c==="http"&&e!=="80"||c==="https"&&e!=="443")a=":"+e}return c+"://"+b+a};var xeb=function(a,b,c){var d=String(_.ja.location.href);return d&&a&&b?[b,web(veb(d),a,c||null)].join(" "):null},web=function(a,b,c){var d=[],e=[];
if((Array.isArray(c)?2:1)==1)return e=[b,a],_.Mi(d,function(m){e.push(m)}),yeb(e.join(" "));
var g=[],k=[];_.Mi(c,function(m){k.push(m.key);g.push(m.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.length==0?[c,b,a]:[g.join(":"),c,b,a];_.Mi(d,function(m){e.push(m)});
a=yeb(e.join(" "));a=[c,a];k.length==0||a.push(k.join(""));return a.join("_")},yeb=function(a){var b=xia();
b.update(a);return b.digestString().toLowerCase()};var sz=function(a){this.JSC$7467_document_=a||{cookie:""}},zeb;
_.f=sz.prototype;_.f.isEnabled=function(){if(!_.ja.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
_.f.set=function(a,b,c){var d=!1;if(typeof c==="object"){var e=c.sameSite;d=c.secure||!1;var g=c.domain||void 0;var k=c.path||void 0;var m=c.maxAge}if(/[;=\s]/.test(a))throw Error("za`"+a);if(/[;\r\n]/.test(b))throw Error("Aa`"+b);m===void 0&&(m=-1);c=g?";domain="+g:"";k=k?";path="+k:"";d=d?";secure":"";m=m<0?"":m==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+m*1E3)).toUTCString();this.JSC$7467_document_.cookie=a+"="+b+c+k+m+d+(e!=null?";samesite="+e:"")};
_.f.get=function(a,b){for(var c=a+"=",d=(this.JSC$7467_document_.cookie||"").split(";"),e=0,g;e<d.length;e++){g=_.tx(d[e]);if(g.lastIndexOf(c,0)==0)return g.slice(c.length);if(g==a)return""}return b};
_.f.remove=function(a,b,c){var d=this.containsKey(a);this.set(a,"",{maxAge:0,path:b,domain:c});return d};
_.f.getKeys=function(){return zeb(this).keys};
_.f.getValues=function(){return zeb(this).values};
_.f.isEmpty=function(){return!this.JSC$7467_document_.cookie};
_.f.getCount=function(){return this.JSC$7467_document_.cookie?(this.JSC$7467_document_.cookie||"").split(";").length:0};
_.f.containsKey=function(a){return this.get(a)!==void 0};
_.f.containsValue=function(a){for(var b=zeb(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};
_.f.clear=function(){for(var a=zeb(this).keys,b=a.length-1;b>=0;b--)this.remove(a[b])};
zeb=function(a){a=(a.JSC$7467_document_.cookie||"").split(";");for(var b=[],c=[],d,e,g=0;g<a.length;g++)e=_.tx(a[g]),d=e.indexOf("="),d==-1?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};
_.lj=new sz(typeof document=="undefined"?null:document);var MBa=function(){var a=_.ja.__SAPISID||_.ja.__APISID||_.ja.__3PSAPISID||_.ja.__1PSAPISID||_.ja.__OVERRIDE_SID;if(a)return!0;typeof document!=="undefined"&&(a=new sz(document),a=a.get("SAPISID")||a.get("APISID")||a.get("__Secure-3PAPISID")||a.get("__Secure-1PAPISID"));return!!a},Aeb=function(a,b,c,d){(a=_.ja[a])||typeof document==="undefined"||(a=(new sz(document)).get(b));
return a?xeb(a,c,d):null},Gra=function(a){var b=veb(String(_.ja.location.href)),c=[];
if(MBa()){b=b.indexOf("https:")==0||b.indexOf("chrome-extension:")==0||b.indexOf("chrome-untrusted://new-tab-page")==0||b.indexOf("moz-extension:")==0;var d=b?_.ja.__SAPISID:_.ja.__APISID;d||typeof document==="undefined"||(d=new sz(document),d=d.get(b?"SAPISID":"APISID")||d.get("__Secure-3PAPISID"));(d=d?xeb(d,b?"SAPISIDHASH":"APISIDHASH",a):null)&&c.push(d);b&&((b=Aeb("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&c.push(b),(a=Aeb("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&c.push(a))}return c.length==
0?null:c.join(" ")};var Beb=function(){this.minSize=1024};
Beb.prototype.compress=function(a){var b,c,d,e;return _.l(function(g){switch(g.nextAddress){case 1:return b=new CompressionStream("gzip"),c=(new Response(b.readable)).arrayBuffer(),d=b.writable.getWriter(),_.p(g,d.write((new TextEncoder).encode(a)),2);case 2:return _.p(g,d.close(),3);case 3:return e=Uint8Array,_.p(g,c,4);case 4:return g.return(new e(g.yieldResult))}})};
Beb.prototype.isSupported=function(a){return a<this.minSize?!1:typeof CompressionStream!=="undefined"};var Ceb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Ceb,_.bd);var tz=function(a,b){this.intervalMs=a;this.callback=b;this.enabled=!1;this.nowFn=function(){return _.rx()};
this.lastTimeMs=this.nowFn()};
tz.prototype.setInterval=function(a){this.intervalMs=a;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
tz.prototype.start=function(){var a=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){a.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
tz.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
tz.prototype.tick=function(){var a=this;if(this.enabled){var b=Math.max(this.nowFn()-this.lastTimeMs,0);b<this.intervalMs*.8?this.timer=setTimeout(function(){a.tick()},this.intervalMs-b):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var Deb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Deb,_.bd);var Eeb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Eeb,_.bd);var Feb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Feb,_.bd);Feb.prototype.getTransmissionType=function(){return _.Ux(this,1)};var Aia=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Aia,_.bd);Aia.prototype.getVersion=function(){return _.Tx(this,2)};var uz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(uz,_.bd);var Bia=function(a,b){Lx(a,1,b)};
uz.prototype.getModel=function(){return _.Tx(this,6)};
var Geb=_.od(uz);var Heb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Heb,_.bd);var yia=["platform","platformVersion","architecture","model","uaFullVersion"],Cia=new uz,zia=null;var Ieb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Ieb,_.bd);var Jeb=function(a){return _.Yj(a,1,1)};var Keb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a,4)};
_.z(Keb,_.bd);_.vz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a,36)};
_.z(_.vz,_.bd);_.vz.prototype.getExperimentIds=function(){return _.Xj(this,Ceb,16)};var Leb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a,19)};
_.z(Leb,_.bd);Leb.prototype.setLogSource=function(a){return _.Yj(this,2,a)};
Leb.prototype.setScheduler=function(a){return _.Yj(this,10,a)};var Neb=function(a,b){this.isServiceWorkerScope=b=b===void 0?!1:b;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new Leb;Number.isInteger(a)&&this.logRequest.setLogSource(a);b||(this.locale=document.documentElement.getAttribute("lang"));Meb(this,new Ieb)};
Neb.prototype.setLogSource=function(a){this.logRequest.setLogSource(a);return this};
var Meb=function(a,b){_.qd(a.logRequest,1,b);_.Ux(b,1)||Jeb(b);a.isServiceWorkerScope||(b=wz(a),_.Tx(b,5)||_.vf(b,5,a.locale));a.uach&&(b=wz(a),_.Xj(b,uz,9)||_.qd(b,9,a.uach))},Oeb=function(a,b){a.transmissionType=b},Peb=function(a){var b=b===void 0?yia:b;
var c=a.isServiceWorkerScope?void 0:Ff();c?Dia(c,b).then(function(d){a.uach=Geb(d!=null?d:"[]");d=wz(a);_.qd(d,9,a.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},wz=function(a){a=_.Xj(a.logRequest,Ieb,1);
var b=_.Xj(a,Heb,11);b||(b=new Heb,_.qd(a,11,b));return b};
Neb.prototype.build=function(a,b,c,d,e,g){b=b===void 0?0:b;c=c===void 0?0:c;d=d===void 0?null:d;e=e===void 0?0:e;g=g===void 0?0:g;if(!this.isServiceWorkerScope){var k=wz(this);var m=new Feb;m=_.Yj(m,1,this.transmissionType);m=_.gg(m,2,this.isFinal);c=_.Yx(m,3,c>0?c:void 0);c=_.Yx(c,4,e>0?e:void 0);c=_.Yx(c,5,g>0?g:void 0);e=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;g=e[_.kb]|0;c=xb(c,g)?c:new c.constructor(xc(e,g,Ic,!0,!0));_.qd(k,10,c)}k=this.logRequest.clone();c=Date.now().toString();
k=_.Zj(k,4,jc(c));a=a.slice();a=Lx(k,3,a);d&&(k=new Deb,d=_.Yx(k,13,d),k=new Eeb,d=_.qd(k,2,d),k=new Keb,d=_.qd(k,1,d),d=_.Yj(d,2,9),_.qd(a,18,d));b&&_.ql(a,14,b);return a};hg.prototype.currBackoffCount_=0;hg.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
hg.prototype.getValue=function(){return this.currValue_};
var Qeb=function(a){a.currBaseValue_=Math.min(a.maxValue_,a.currBaseValue_*a.backoffFactor_);a.currValue_=Math.min(a.maxValue_,a.currBaseValue_+(a.randomFactor_?Math.round(a.randomFactor_*(Math.random()-.5)*2*a.currBaseValue_):0));a.currBackoffCount_++};var V$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a,8)};
_.z(V$a,_.bd);var Reb=_.od(V$a);var W$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(W$a,_.bd);var xz=new X$a;var yz=function(a){_.vg.call(this);var b=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7545_compressor=this.experimentIds=null;this.numRetriesSinceLastSuccessfulFlush=this.numLogsDroppedSinceLastFlush=0;this.metalogService=null;this.persistedLogExpiredCount=this.persistedLogRecoveredCount=0;this.sequencePosition=1;this.timeoutMillis=0;this.JSC$7545_sendBeaconApiEnabled=!1;this.logSource=a.logSource;this.getAuthHeaderValue=
a.getAuthHeaderValue||function(){};
this.logRequestBuilder=new Neb(a.logSource,a.isServiceWorkerScope);this.network=a.network||null;this.productID=a.productID||null;this.clearcutUrl=a.urlOverride||null;this.sessionIndex=a.sessionIndex||null;this.disableAutomaticFlush=a.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!a.disableWithCredentials;this.isServiceWorkerScope=a.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!Ff()&&!!Ff().navigator&&Ff().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(Seb())).searchParams&&!!(new URL(Seb())).searchParams.set;var c=Jeb(new Ieb);Meb(this.logRequestBuilder,c);this.flushBackoff=new hg(1E4,3E5,.1);a=Teb(this,a.backgroundJobDeferrer);this.JSC$7545_flushTimer=new tz(this.flushBackoff.getValue(),a);this.backupTimer=new tz(6E5,a);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){Ueb(b);
var d;(d=b.metalogService)==null||d.flush()}}),document.addEventListener("pagehide",function(){Ueb(b);
var d;(d=b.metalogService)==null||d.flush()}))};
_.z(yz,_.vg);var Teb=function(a,b){return a.isBrowserSupported?b?function(){b().then(function(){a.flush()})}:function(){a.flush()}:function(){}};
yz.prototype.disposeInternal=function(){Ueb(this);this.JSC$7545_flushTimer.stop();this.backupTimer.stop();_.vg.prototype.disposeInternal.call(this)};
var Veb=function(a){a.clearcutUrl||(a.clearcutUrl=Seb());try{return(new URL(a.clearcutUrl)).toString()}catch(b){return(new URL(a.clearcutUrl,Ff().location.origin)).toString()}};
yz.prototype.dispatch=function(a){if(a instanceof _.vz)this.log(a);else try{var b=new _.vz,c=a.serialize();var d=_.vf(b,8,c);this.log(d)}catch(e){zz(this,4,1)}};
var zz=function(a,b,c){a.metalogService&&a.metalogService.increment(b,c)};
yz.prototype.log=function(a){zz(this,2,1);if(this.isBrowserSupported){a=a.clone();var b=this.sequencePosition++;a=_.ql(a,21,b);this.componentId&&_.vf(a,26,this.componentId);b=a;if(Cba(_.Ex(b,1))==null){var c=Date.now();c=Number.isFinite(c)?c.toString():"0";_.Zj(b,1,jc(c))}_.Nx(b,15)!=null||_.ql(b,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(c=this.experimentIds.clone(),_.qd(b,16,c));zz(this,1,1);b=this.pendingEvents.length-1E3+1;b>0&&(this.pendingEvents.splice(0,b),this.numLogsDroppedSinceLastFlush+=
b,zz(this,3,b));this.pendingEvents.push(a);this.disableAutomaticFlush||this.JSC$7545_flushTimer.enabled||this.JSC$7545_flushTimer.start()}};
yz.prototype.flush=function(a,b){var c=this;if(this.pendingEvents.length===0)a&&a();else if(this.JSC$7545_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,Web(this);else{var d=Date.now();if(this.noFlushUntilMs>d&&this.startWaitingMs<d)b&&b("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?Oeb(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var e=this.pendingEvents.length,
g=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),k=this.getAuthHeaderValue();if(k&&this.lastFailedAuth===k)b&&b("stale-auth-token");else{this.pendingEvents=[];this.JSC$7545_flushTimer.enabled&&this.JSC$7545_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;d=g.serialize();var m;this.JSC$7545_compressor&&this.JSC$7545_compressor.isSupported(d.length)&&
(m=this.JSC$7545_compressor.compress(d));var n=Xeb(this,d,k),r=function(x){c.flushBackoff.reset();c.JSC$7545_flushTimer.setInterval(c.flushBackoff.getValue());if(x){var A=null;try{var C=JSON.stringify(JSON.parse(x.replace(")]}'\n","")));A=Reb(C)}catch(F){}A&&(x=Number(Rx(A,1,_.Lb("-1"))),x>0&&(c.startWaitingMs=Date.now(),c.noFlushUntilMs=c.startWaitingMs+x),Tba(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),A=xz.ctor?xz.getExtensionFn(A,xz.ctor,175237375,xz.JSC$6717_hasMessageId):xz.getExtensionFn(A,
175237375,null,xz.JSC$6717_hasMessageId),A=A===null?void 0:A)&&(A=_.bg(A,1,-1),A!==-1&&(c.flushBackoff=new hg(A<1?1:A,3E5,.1),c.JSC$7545_flushTimer.setInterval(c.flushBackoff.getValue())))}a&&a();c.numRetriesSinceLastSuccessfulFlush=0},t=function(x,A){var C=_.Zf(g,_.vz,3,_.$f());
var F=Number(Rx(g,14));Qeb(c.flushBackoff);c.JSC$7545_flushTimer.setInterval(c.flushBackoff.getValue());x===401&&k&&(c.lastFailedAuth=k);F&&(c.numLogsDroppedSinceLastFlush+=F);A===void 0&&(A=c.isRetryable(x));A&&(c.pendingEvents=C.concat(c.pendingEvents),c.disableAutomaticFlush||c.JSC$7545_flushTimer.enabled||c.JSC$7545_flushTimer.start());zz(c,7,1);b&&b("net-send-failed",x);++c.numRetriesSinceLastSuccessfulFlush},u=function(){c.network&&c.network.send(n,r,t)};
m?m.then(function(x){zz(c,5,e);n.requestHeaders["Content-Encoding"]="gzip";n.requestHeaders["Content-Type"]="application/binary";n.body=x;n.bodyType=2;u()},function(){zz(c,6,e);
u()}):u()}}}};
var Xeb=function(a,b,c){c=c===void 0?null:c;var d=d===void 0?a.withCredentials:d;var e={},g=new URL(Veb(a));c&&(e.Authorization=c);a.sessionIndex&&(e["X-Goog-AuthUser"]=a.sessionIndex,g.searchParams.set("authuser",a.sessionIndex));a.pageId&&(Object.defineProperty(e,"X-Goog-PageId",{value:a.pageId}),g.searchParams.set("pageId",a.pageId));return{url:g.toString(),body:b,bodyType:1,requestHeaders:e,requestType:"POST",withCredentials:d,timeoutMillis:a.timeoutMillis}},Ueb=function(a){a.logRequestBuilder.isFinal=
!0;
a.flush();a.logRequestBuilder.isFinal=!1},Web=function(a){Yeb(a,function(b,c){b=new URL(b);
b.searchParams.set("format","json");var d=!1;try{d=Ff().navigator.sendBeacon(b.toString(),c.serialize())}catch(e){}d||(a.isSendBeaconSupported=!1);return d})},Yeb=function(a,b){if(a.pendingEvents.length!==0){var c=new URL(Veb(a));
c.searchParams.delete("format");var d=a.getAuthHeaderValue();d&&c.searchParams.set("auth",d);c.searchParams.set("authuser",a.sessionIndex||"0");for(d=0;d<10&&a.pendingEvents.length;++d){var e=a.pendingEvents.slice(0,32),g=a.logRequestBuilder.build(e,a.numLogsDroppedSinceLastFlush,a.numRetriesSinceLastSuccessfulFlush,a.productID,a.persistedLogRecoveredCount,a.persistedLogExpiredCount);if(!b(c.toString(),g)){++a.numRetriesSinceLastSuccessfulFlush;break}a.numLogsDroppedSinceLastFlush=0;a.numRetriesSinceLastSuccessfulFlush=
0;a.persistedLogRecoveredCount=0;a.persistedLogExpiredCount=0;a.pendingEvents=a.pendingEvents.slice(e.length)}a.JSC$7545_flushTimer.enabled&&a.JSC$7545_flushTimer.stop()}};
yz.prototype.isRetryable=function(a){return 500<=a&&a<600||a===401||a===0};
var Seb=function(){return"https://play.google.com/log?format=json&hasfast=true"};var Zeb=function(){this.abortSupported=typeof AbortController!=="undefined"};
Zeb.prototype.send=function(a,b,c){var d=this,e,g,k,m,n,r,t,u,x,A;return _.l(function(C){switch(C.nextAddress){case 1:return g=(e=d.abortSupported?new AbortController:void 0)?setTimeout(function(){e.abort()},a.timeoutMillis):void 0,_.pe(C,2,3),k=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}),_.p(C,fetch(a.url,k),5);case 5:m=C.yieldResult;if(m.status!==200){(n=c)==null||n(m.status);C.jumpTo(3);break}if((r=b)==null){C.jumpTo(7);break}return _.p(C,m.text(),8);case 8:r(C.yieldResult);case 7:case 3:_.qe(C);clearTimeout(g);_.se(C,0);break;case 2:t=_.te(C);switch((u=t)==null?void 0:u.name){case "AbortError":(x=c)==null||x(408);break;default:(A=
c)==null||A(400)}C.jumpTo(3)}})};
Zeb.prototype.getTransmissionType=function(){return 4};_.jg=function(a,b){_.vg.call(this);this.logSource=a;this.sessionIndex=b;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7563_clearExperimentIds=this.productID=null;this.JSC$7563_sendBeaconApiEnabled=!1;this.pageId=null};
_.z(_.jg,_.vg);var Wia=function(a,b){a.buildLabel=b;return a},Via=function(a,b){a.network=b;
return a},Yia=function(a,b){a.JSC$7563_clearExperimentIds=b},Uia=function(a){a.JSC$7563_sendBeaconApiEnabled=!0;
return a};
_.jg.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.jg.prototype.build=function(){this.network||(this.network=new Zeb);var a=new yz({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:Gra,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.kg(this,a);if(this.buildLabel){var b=this.buildLabel,c=wz(a.logRequestBuilder);
_.vf(c,7,b)}a.JSC$7545_compressor=new Beb;this.componentId&&(a.componentId=this.componentId);this.productID&&(a.productID=this.productID);this.pageId&&(a.pageId=this.pageId);this.JSC$7563_clearExperimentIds&&((c=this.JSC$7563_clearExperimentIds)?(a.experimentIds||(a.experimentIds=new Ceb),b=a.experimentIds,c=c.serialize(),_.vf(b,4,c)):a.experimentIds&&_.Zj(a.experimentIds,4));this.JSC$7563_sendBeaconApiEnabled&&(a.JSC$7545_sendBeaconApiEnabled=a.isSendBeaconSupported);Peb(a.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(a);return a};var aja=function(a,b,c,d,e,g,k){a=a===void 0?-1:a;b=b===void 0?"":b;c=c===void 0?"":c;d=d===void 0?!1:d;e=e===void 0?"":e;_.vg.call(this);this.logSource=a;this.componentId=b;g?b=g:(a=new _.jg(a,"0"),a.componentId=b,_.kg(this,a),c!==""&&(a.destinationUrl=c),d&&(a.serviceWorkerScopeEnabled=!0),e&&Wia(a,e),k&&Via(a,k),b=a.build());this.JSC$7567_transport=b};
_.z(aja,_.vg);aja.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new reb,c=[],d=0;d<a.length;d++){var e=a[d],g=ueb(e);c.push(g);e.clear()}Lx(b,1,c);this.JSC$7567_transport.dispatch(b);this.JSC$7567_transport.flush()}};var $eb=function(a){this.cellValue=a};var Az=function(a,b,c){this.JSC$7572_metricName=a;this.cellType=b;this.fields=c||[];this.cellMap=new Map},teb=function(a){return a.fields.map(function(b){return b.fieldType})},seb=function(a){return a.fields.map(function(b){return b.fieldName})};
_.f=Az.prototype;_.f.addCell=function(a){var b=_.Kd.apply(1,arguments),c=this.getCells(b);c?c.push(new $eb(a)):this.JSC$7572_setCell(a,b)};
_.f.JSC$7572_setCell=function(a){var b=this.JSC$7572_getKey(_.Kd.apply(1,arguments));this.cellMap.set(b,[new $eb(a)])};
_.f.getCells=function(){var a=this.JSC$7572_getKey(_.Kd.apply(0,arguments));return this.cellMap.has(a)?this.cellMap.get(a):void 0};
_.f.getCell=function(){var a=this.getCells(_.Kd.apply(0,arguments));return a&&a.length?a[0]:void 0};
_.f.clear=function(){this.cellMap.clear()};
_.f.JSC$7572_getKey=function(){var a=_.Kd.apply(0,arguments);return a?a.join(","):"key"};var afb=function(a,b){Az.call(this,a,3,b)};
_.z(afb,Az);afb.prototype.JSC$7575_incrementCounterBy=function(a){var b=_.Kd.apply(1,arguments),c=0,d=this.getCell(b);d&&(c=d.cellValue);this.JSC$7572_setCell(c+a,b)};var bfb=function(a,b){Az.call(this,a,2,b)};
_.z(bfb,Az);bfb.prototype.record=function(a){this.addCell(a,_.Kd.apply(1,arguments))};_.Bz=function(a){this.id=a};
_.Bz.prototype.toString=function(){return this.id};_.Cz=function(a,b){this.type=a instanceof _.Bz?String(a):a;this.currentTarget=this.target=b;this.defaultPrevented=this.propagationStopped_=!1};
_.Cz.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.Cz.prototype.preventDefault=function(){this.defaultPrevented=!0};_.Dz=function(a,b){_.Cz.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=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.event_=null;a&&this.init(a,b)};
_.sx(_.Dz,_.Cz);
_.Dz.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.offsetX=_.zx||a.offsetX!==void 0?a.offsetX:a.layerX,
this.offsetY=_.zx||a.offsetY!==void 0?a.offsetY:a.layerY,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.event_=a;a.defaultPrevented&&_.Dz.superClass_.preventDefault.call(this)};
_.Dz.prototype.stopPropagation=function(){_.Dz.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.Dz.prototype.preventDefault=function(){_.Dz.superClass_.preventDefault.call(this);var a=this.event_;a.preventDefault?a.preventDefault():a.returnValue=!1};var cfb="closure_listenable_"+(Math.random()*1E6|0),Ez=function(a){return!(!a||!a[cfb])};var dfb=0;var efb=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.handler=e;this.key=++dfb;this.removed=this.callOnce=!1},ffb=function(a){a.removed=!0;
a.listener=null;a.proxy=null;a.src=null;a.handler=null};ig.prototype.add=function(a,b,c,d,e){var g=a.toString();a=this.listeners[g];a||(a=this.listeners[g]=[],this.typeCount_++);var k=gfb(a,b,d,e);k>-1?(b=a[k],c||(b.callOnce=!1)):(b=new efb(b,this.src,g,!!d,e),b.callOnce=c,a.push(b));return b};
ig.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=gfb(e,b,c,d);return b>-1?(ffb(e[b]),_.waa(e,b),e.length==0&&(delete this.listeners[a],this.typeCount_--),!0):!1};
var hfb=function(a,b){var c=b.type;if(!(c in a.listeners))return!1;var d=_.Qa(a.listeners[c],b);d&&(ffb(b),a.listeners[c].length==0&&(delete a.listeners[c],a.typeCount_--));return d};
ig.prototype.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<d.length;e++)++b,ffb(d[e]);delete this.listeners[c];this.typeCount_--}return b};
ig.prototype.getListener=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=gfb(a,b,c,d));return e>-1?a[e]:null};
ig.prototype.hasListener=function(a,b){var c=a!==void 0,d=c?a.toString():"",e=b!==void 0;return _.Cf.some(this.listeners,function(g){for(var k=0;k<g.length;++k)if(!(c&&g[k].type!=d||e&&g[k].capture!=b))return!0;return!1})};
var gfb=function(a,b,c,d){for(var e=0;e<a.length;++e){var g=a[e];if(!g.removed&&g.listener==b&&g.capture==!!c&&g.handler==d)return e}return-1};var ifb,jfb,kfb,mfb,nfb,ns,os,qfb,ofb,pfb,Fz,rfb,lfb;ifb="closure_lm_"+(Math.random()*1E6|0);jfb={};kfb=0;_.rs=function(a,b,c,d,e){if(d&&d.once)return ns(a,b,c,d,e);if(Array.isArray(b)){for(var g=0;g<b.length;g++)_.rs(a,b[g],c,d,e);return null}c=lfb(c);return Ez(a)?a.listen(b,c,_.Za(d)?!!d.capture:!!d,e):mfb(a,b,c,!1,d,e)};
mfb=function(a,b,c,d,e,g){if(!b)throw Error("Ca");var k=_.Za(e)?!!e.capture:!!e,m=Fz(a);m||(a[ifb]=m=new ig(a));c=m.add(b,c,d,k,g);if(c.proxy)return c;d=nfb();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)_.yab||(e=k),e===void 0&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(ofb(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("Da");kfb++;return c};
nfb=function(){var a=pfb,b=function(c){return a.call(b.src,b.listener,c)};
return b};
ns=function(a,b,c,d,e){if(Array.isArray(b)){for(var g=0;g<b.length;g++)ns(a,b[g],c,d,e);return null}c=lfb(c);return Ez(a)?a.listenOnce(b,c,_.Za(d)?!!d.capture:!!d,e):mfb(a,b,c,!0,d,e)};
_.Gz=function(a,b,c,d,e){if(Array.isArray(b))for(var g=0;g<b.length;g++)_.Gz(a,b[g],c,d,e);else d=_.Za(d)?!!d.capture:!!d,c=lfb(c),Ez(a)?a.unlisten(b,c,d,e):a&&(a=Fz(a))&&(b=a.getListener(b,c,d,e))&&os(b)};
os=function(a){if(typeof a==="number"||!a||a.removed)return!1;var b=a.src;if(Ez(b))return hfb(b.eventTargetListeners_,a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(ofb(c),d):b.addListener&&b.removeListener&&b.removeListener(d);kfb--;(c=Fz(b))?(hfb(c,a),c.typeCount_==0&&(c.src=null,b[ifb]=null)):ffb(a);return!0};
qfb=function(a,b,c,d,e){c=lfb(c);d=!!d;return Ez(a)?a.getListener(b,c,d,e):a?(a=Fz(a))?a.getListener(b,c,d,e):null:null};
ofb=function(a){return a in jfb?jfb[a]:jfb[a]="on"+a};
pfb=function(a,b){if(a.removed)a=!0;else{b=new _.Dz(b,this);var c=a.listener,d=a.handler||a.src;a.callOnce&&os(a);a=c.call(d,b)}return a};
Fz=function(a){a=a[ifb];return a instanceof ig?a:null};
rfb="__closure_events_fn_"+(Math.random()*1E9>>>0);lfb=function(a){if(typeof a==="function")return a;a[rfb]||(a[rfb]=function(b){return a.handleEvent(b)});
return a[rfb]};_.Hz=function(){_.vg.call(this);this.eventTargetListeners_=new ig(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.sx(_.Hz,_.vg);_.Hz.prototype[cfb]=!0;_.f=_.Hz.prototype;_.f.setParentEventTarget=function(a){this.parentEventTarget_=a};
_.f.addEventListener=function(a,b,c,d){_.rs(this,a,b,c,d)};
_.f.removeEventListener=function(a,b,c,d){_.Gz(this,a,b,c,d)};
_.f.dispatchEvent=function(a){var b,c=this.parentEventTarget_;if(c)for(b=[];c;c=c.parentEventTarget_)b.push(c);c=this.actualEventTarget_;var d=a.type||a;if(typeof a==="string")a=new _.Cz(a,c);else if(a instanceof _.Cz)a.target=a.target||c;else{var e=a;a=new _.Cz(d,c);_.Cf.extend(a,e)}e=!0;var g;if(b)for(g=b.length-1;!a.propagationStopped_&&g>=0;g--){var k=a.currentTarget=b[g];e=sfb(k,d,!0,a)&&e}a.propagationStopped_||(k=a.currentTarget=c,e=sfb(k,d,!0,a)&&e,a.propagationStopped_||(e=sfb(k,d,!1,a)&&
e));if(b)for(g=0;!a.propagationStopped_&&g<b.length;g++)k=a.currentTarget=b[g],e=sfb(k,d,!1,a)&&e;return e};
_.f.disposeInternal=function(){_.Hz.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.f.listen=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!1,c,d)};
_.f.listenOnce=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!0,c,d)};
_.f.unlisten=function(a,b,c,d){return this.eventTargetListeners_.remove(String(a),b,c,d)};
_.f.removeAllListeners=function(a){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(a):0};
var sfb=function(a,b,c,d){b=a.eventTargetListeners_.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,g=0;g<b.length;++g){var k=b[g];if(k&&!k.removed&&k.capture==c){var m=k.listener,n=k.handler||k.src;k.callOnce&&hfb(a.eventTargetListeners_,k);e=m.call(n,d)!==!1&&e}}return e&&!d.defaultPrevented};
_.Hz.prototype.getListener=function(a,b,c,d){return this.eventTargetListeners_.getListener(String(a),b,c,d)};
_.Hz.prototype.hasListener=function(a,b){return this.eventTargetListeners_.hasListener(a!==void 0?String(a):void 0,b)};var Iz=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(a){return a&&AsyncContext.Snapshot.wrap(a)}:function(a){return a};var tfb=function(a,b){this.create_=a;this.reset_=b;this.occupants_=0;this.JSC$7607_head_=null};
tfb.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var a=this.JSC$7607_head_;this.JSC$7607_head_=a.next;a.next=null}else a=this.create_();return a};
tfb.prototype.put=function(a){this.reset_(a);this.occupants_<100&&(this.occupants_++,a.next=this.JSC$7607_head_,this.JSC$7607_head_=a)};var ufb=function(){this.workTail_=this.workHead_=null};
ufb.prototype.add=function(a,b){var c=Fia.get();c.set(a,b);this.workTail_?this.workTail_.next=c:this.workHead_=c;this.workTail_=c};
ufb.prototype.remove=function(){var a=null;this.workHead_&&(a=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),a.next=null);return a};
var Fia=new tfb(function(){return new vfb},function(a){return a.reset()}),vfb=function(){this.next=this.scope=this.fn=null};
vfb.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null};
vfb.prototype.reset=function(){this.next=this.scope=this.fn=null};var wfb,Gia,Eia,xfb;Gia=!1;Eia=new ufb;_.Jz=function(a,b){wfb||xfb();Gia||(wfb(),Gia=!0);Eia.add(a,b)};
xfb=function(){var a=Promise.resolve(void 0);wfb=function(){a.then(Hia)}};var yfb=function(a){a.prototype.$goog_Thenable=!0},zfb=function(a){if(!a)return!1;
try{return!!a.$goog_Thenable}catch(b){return!1}};var Afb,Bfb,Cfb,Efb,Ffb,Gfb,Kfb,Nfb,Rfb,Pfb,F5a;_.il=function(a,b){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(a!=_.Gy)try{var c=this;a.call(b,function(d){c.resolve_(2,d)},function(d){c.resolve_(3,d)})}catch(d){this.resolve_(3,d)}};
Afb=function(){this.next=this.context=this.JSC$7618_onRejected=this.JSC$7618_onFulfilled=this.child=null;this.always=!1};
Afb.prototype.reset=function(){this.context=this.JSC$7618_onRejected=this.JSC$7618_onFulfilled=this.child=null;this.always=!1};
Bfb=new tfb(function(){return new Afb},function(a){a.reset()});
Cfb=function(a,b,c){var d=Bfb.get();d.JSC$7618_onFulfilled=a;d.JSC$7618_onRejected=b;d.context=c;return d};
_.qo=function(a){if(a instanceof _.il)return a;var b=new _.il(_.Gy);b.resolve_(2,a);return b};
_.On=function(a){return new _.il(function(b,c){c(a)})};
Efb=function(a,b,c){Dfb(a,b,c,null)||_.Jz(_.xo(b,a))};
_.Kz=function(a){return new _.il(function(b,c){var d=a.length,e=[];if(d)for(var g=function(r,t){d--;e[r]=t;d==0&&b(e)},k=function(r){c(r)},m,n=0;n<a.length;n++)m=a[n],Efb(m,_.xo(g,n),k);
else b(e)})};
Ffb=function(a){return new _.il(function(b){var c=a.length,d=[];if(c)for(var e=function(m,n,r){c--;d[m]=n?{fulfilled:!0,value:r}:{fulfilled:!1,reason:r};c==0&&b(d)},g,k=0;k<a.length;k++)g=a[k],Efb(g,_.xo(e,k,!0),_.xo(e,k,!1));
else b(d)})};
Gfb=function(a){return new _.il(function(b,c){var d=a.length,e=[];if(d)for(var g=function(r){b(r)},k=function(r,t){d--;
e[r]=t;d==0&&c(e)},m,n=0;n<a.length;n++)m=a[n],Efb(m,g,_.xo(k,n));
else b(void 0)})};
_.St=function(){var a,b,c=new _.il(function(d,e){a=d;b=e});
return new Hfb(c,a,b)};
_.il.prototype.then=function(a,b,c){return Ifb(this,Iz(typeof a==="function"?a:null),Iz(typeof b==="function"?b:null),c)};
yfb(_.il);Kfb=function(a,b,c,d){Jfb(a,Cfb(b||_.Gy,c||null,d))};
_.Lz=function(a,b){b=Iz(b);b=Cfb(b,b);b.always=!0;Jfb(a,b);return a};
_.il.prototype.finally=function(a){var b=this;a=Iz(a);return new Promise(function(c,d){Kfb(b,function(e){a();c(e)},function(e){a();
d(e)})})};
_.il.prototype.thenCatch=function(a,b){return Ifb(this,null,Iz(a),b)};
_.il.prototype.catch=_.il.prototype.thenCatch;_.il.prototype.cancel=function(a){if(this.state_==0){var b=new _.Nn(a);_.Jz(function(){Lfb(this,b)},this)}};
var Lfb=function(a,b){if(a.state_==0)if(a.parent_){var c=a.parent_;if(c.callbackEntries_){for(var d=0,e=null,g=null,k=c.callbackEntries_;k&&(k.always||(d++,k.child==a&&(e=k),!(e&&d>1)));k=k.next)e||(g=k);e&&(c.state_==0&&d==1?Lfb(c,b):(g?(d=g,d.next==c.callbackEntriesTail_&&(c.callbackEntriesTail_=d),d.next=d.next.next):Mfb(c),Nfb(c,e,3,b)))}a.parent_=null}else a.resolve_(3,b)},Jfb=function(a,b){a.callbackEntries_||a.state_!=2&&a.state_!=3||Ofb(a);
a.callbackEntriesTail_?a.callbackEntriesTail_.next=b:a.callbackEntries_=b;a.callbackEntriesTail_=b},Ifb=function(a,b,c,d){var e=Cfb(null,null,null);
e.child=new _.il(function(g,k){e.JSC$7618_onFulfilled=b?function(m){try{var n=b.call(d,m);g(n)}catch(r){k(r)}}:g;
e.JSC$7618_onRejected=c?function(m){try{var n=c.call(d,m);n===void 0&&m instanceof _.Nn?k(m):g(n)}catch(r){k(r)}}:k});
e.child.parent_=a;Jfb(a,e);return e.child};
_.il.prototype.unblockAndFulfill_=function(a){this.state_=0;this.resolve_(2,a)};
_.il.prototype.unblockAndReject_=function(a){this.state_=0;this.resolve_(3,a)};
_.il.prototype.resolve_=function(a,b){this.state_==0&&(this===b&&(a=3,b=new TypeError("Ea")),this.state_=1,Dfb(b,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=b,this.state_=a,this.parent_=null,Ofb(this),a!=3||b instanceof _.Nn||Pfb(this,b)))};
var Dfb=function(a,b,c,d){if(a instanceof _.il)return Kfb(a,b,c,d),!0;if(zfb(a))return a.then(b,c,d),!0;if(_.Za(a))try{var e=a.then;if(typeof e==="function")return Qfb(a,e,b,c,d),!0}catch(g){return c.call(d,g),!0}return!1},Qfb=function(a,b,c,d,e){var g=!1,k=function(n){g||(g=!0,c.call(e,n))},m=function(n){g||(g=!0,d.call(e,n))};
try{b.call(a,k,m)}catch(n){m(n)}},Ofb=function(a){a.executing_||(a.executing_=!0,_.Jz(a.executeCallbacks_,a))},Mfb=function(a){var b=null;
a.callbackEntries_&&(b=a.callbackEntries_,a.callbackEntries_=b.next,b.next=null);a.callbackEntries_||(a.callbackEntriesTail_=null);return b};
_.il.prototype.executeCallbacks_=function(){for(var a;a=Mfb(this);)Nfb(this,a,this.state_,this.result_);this.executing_=!1};
Nfb=function(a,b,c,d){if(c==3&&b.JSC$7618_onRejected&&!b.always)for(;a&&a.hadUnhandledRejection_;a=a.parent_)a.hadUnhandledRejection_=!1;if(b.child)b.child.parent_=null,Rfb(b,c,d);else try{b.always?b.JSC$7618_onFulfilled.call(b.context):Rfb(b,c,d)}catch(e){F5a.call(null,e)}Bfb.put(b)};
Rfb=function(a,b,c){b==2?a.JSC$7618_onFulfilled.call(a.context,c):a.JSC$7618_onRejected&&a.JSC$7618_onRejected.call(a.context,c)};
Pfb=function(a,b){a.hadUnhandledRejection_=!0;_.Jz(function(){a.hadUnhandledRejection_&&F5a.call(null,b)})};
F5a=ka;_.Nn=function(a){_.ca.call(this,a)};
_.sx(_.Nn,_.ca);_.Nn.prototype.name="cancel";var Hfb=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};var Mz;_.$m=function(a,b){_.Hz.call(this);this.JSC$7630_interval_=a||1;this.timerObject_=b||_.ja;this.boundTick_=(0,_.wg)(this.tick_,this);this.last_=_.rx()};
_.sx(_.$m,_.Hz);_.f=_.$m.prototype;_.f.enabled=!1;_.f.JSC$7632_timer_=null;_.f.setInterval=function(a){this.JSC$7630_interval_=a;this.JSC$7632_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7632_timer_&&this.stop()};
_.f.tick_=function(){if(this.enabled){var a=_.rx()-this.last_;a>0&&a<this.JSC$7630_interval_*.8?this.JSC$7632_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7630_interval_-a):(this.JSC$7632_timer_&&(this.timerObject_.clearTimeout(this.JSC$7632_timer_),this.JSC$7632_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.f.start=function(){this.enabled=!0;this.JSC$7632_timer_||(this.JSC$7632_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7630_interval_),this.last_=_.rx())};
_.f.stop=function(){this.enabled=!1;this.JSC$7632_timer_&&(this.timerObject_.clearTimeout(this.JSC$7632_timer_),this.JSC$7632_timer_=null)};
_.f.disposeInternal=function(){_.$m.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
Mz=function(a,b,c){if(typeof a==="function")c&&(a=(0,_.wg)(a,c));else if(a&&typeof a.handleEvent=="function")a=(0,_.wg)(a.handleEvent,a);else throw Error("Fa");return Number(b)>2147483647?-1:_.ja.setTimeout(a,b||0)};
_.Sfb=function(a){var b=null;return(new _.il(function(c,d){b=Mz(function(){c(void 0)},a);
b==-1&&d(Error("Ga"))})).thenCatch(function(c){_.ja.clearTimeout(b);
throw c;})};var lg=function(a){_.vg.call(this);this.streamzLogger=a;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7636_flushTimer=new _.$m(this.flushInterval);this.JSC$7636_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.kg(this,this.JSC$7636_flushTimer)};
_.z(lg,_.vg);lg.prototype.sendIsolatedPayload=function(a){this.shouldSendIsolatedPayload=a;this.invocationLimit=1};
var Tfb=function(a){a.JSC$7636_flushTimer.enabled||a.JSC$7636_flushTimer.start();a.invocationCount++;a.invocationCount>=a.invocationLimit&&a.snapshotAndFlush()};
lg.prototype.snapshotAndFlush=function(){var a=this.metricMap.values();a=[].concat(_.De(a)).filter(function(b){return b.cellMap.size});
a.length&&this.streamzLogger.flush(a,this.shouldSendIsolatedPayload);Ufb(a);this.invocationCount=0;this.JSC$7636_flushTimer.enabled&&this.JSC$7636_flushTimer.stop()};
lg.prototype.addNewCounter=function(a){var b=_.Kd.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new afb(a,b))};
lg.prototype.addNewEventMetric=function(a){var b=_.Kd.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new bfb(a,b))};
var Vfb=function(a,b){return a.disabledMetrics.has(b)?void 0:a.metricMap.get(b)};
lg.prototype.JSC$7636_incrementCounter=function(a){this.JSC$7636_incrementCounterBy(a,1,_.Kd.apply(1,arguments))};
lg.prototype.JSC$7636_incrementCounterBy=function(a,b){var c=_.Kd.apply(2,arguments),d=Vfb(this,a);d&&d instanceof afb&&(d.JSC$7575_incrementCounterBy(b,c),Tfb(this))};
lg.prototype.record=function(a,b){var c=_.Kd.apply(2,arguments),d=Vfb(this,a);d&&d instanceof bfb&&(d.record(b,c),Tfb(this))};
var Ufb=function(a){for(var b=0;b<a.length;b++)a[b].clear()};_.Nz=function(a,b,c){c=c===void 0?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.z(_.Nz,Error);_.Nz.prototype.toString=function(){var a="RpcError("+(Jia(this.code)||String(this.code))+")";this.message&&(a+=": "+this.message);return a};_.Wfb=_.ja.JSON.parse;_.Oz=_.ja.JSON.stringify;_.zn=_.ja.JSON.parse;_.Xfb=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};var Yfb=function(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Zfb,$fb=function(){};
_.sx($fb,_.Kia);$fb.prototype.createInstance=function(){return new XMLHttpRequest};
Zfb=new $fb;_.Pz=function(a){_.Hz.call(this);this.headers=new Map;this.JSC$7645_xmlHttpFactory_=a||null;this.JSC$7645_active_=!1;this.JSC$7645_xhr_=null;this.JSC$7645_lastUri_="";this.JSC$7645_lastErrorCode_=0;this.JSC$7645_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7645_timeoutId_=null;this.responseType_="";this.JSC$7645_withCredentials_=!1};
_.sx(_.Pz,_.Hz);var agb=/^https?$/i,bgb=["POST","PUT"],cgb=[],NAa=function(a,b,c,d,e,g,k){var m=new _.Pz;cgb.push(m);b&&m.listen("complete",b);m.listenOnce("ready",m.cleanupSend_);g&&(m.timeoutInterval_=Math.max(0,g));k&&(m.JSC$7645_withCredentials_=k);m.send(a,c,d,e)};
_.Pz.prototype.cleanupSend_=function(){this.dispose();_.Qa(cgb,this)};
_.Pz.prototype.send=function(a,b,c,d){if(this.JSC$7645_xhr_)throw Error("Ha`"+this.JSC$7645_lastUri_+"`"+a);b=b?b.toUpperCase():"GET";this.JSC$7645_lastUri_=a;this.JSC$7645_lastError_="";this.JSC$7645_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7645_active_=!0;this.JSC$7645_xhr_=this.createXhr();this.JSC$7645_xhr_.onreadystatechange=Iz((0,_.wg)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7645_xhr_.open(b,String(a),!0),this.inOpen_=!1}catch(k){dgb(this,k);return}a=c||"";c=new Map(this.headers);
if(d)if(Object.getPrototypeOf(d)===Object.prototype)for(var e in d)c.set(e,d[e]);else if(typeof d.keys==="function"&&typeof d.get==="function"){e=_.h(d.keys());for(var g=e.next();!g.done;g=e.next())g=g.value,c.set(g,d.get(g))}else throw Error("Ia`"+String(d));d=Array.from(c.keys()).find(function(k){return"content-type"==k.toLowerCase()});
e=_.ja.FormData&&a instanceof _.ja.FormData;!_.Oa(bgb,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=_.h(c);for(d=b.next();!d.done;d=b.next())c=_.h(d.value),d=c.next().value,c=c.next().value,this.JSC$7645_xhr_.setRequestHeader(d,c);this.responseType_&&(this.JSC$7645_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7645_xhr_&&this.JSC$7645_xhr_.withCredentials!==this.JSC$7645_withCredentials_&&(this.JSC$7645_xhr_.withCredentials=this.JSC$7645_withCredentials_);
try{this.JSC$7645_timeoutId_&&(clearTimeout(this.JSC$7645_timeoutId_),this.JSC$7645_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7645_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7645_xhr_.send(a),this.inSend_=!1}catch(k){dgb(this,k)}};
_.Pz.prototype.createXhr=function(){return this.JSC$7645_xmlHttpFactory_?this.JSC$7645_xmlHttpFactory_.createInstance():Zfb.createInstance()};
_.Pz.prototype.timeout_=function(){typeof L8a!="undefined"&&this.JSC$7645_xhr_&&(this.JSC$7645_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7645_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var dgb=function(a,b){a.JSC$7645_active_=!1;a.JSC$7645_xhr_&&(a.inAbort_=!0,a.JSC$7645_xhr_.abort(),a.inAbort_=!1);a.JSC$7645_lastError_=b;a.JSC$7645_lastErrorCode_=5;egb(a);fgb(a)},egb=function(a){a.errorDispatched_||(a.errorDispatched_=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
_.Pz.prototype.abort=function(a){this.JSC$7645_xhr_&&this.JSC$7645_active_&&(this.JSC$7645_active_=!1,this.inAbort_=!0,this.JSC$7645_xhr_.abort(),this.inAbort_=!1,this.JSC$7645_lastErrorCode_=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),fgb(this))};
_.Pz.prototype.disposeInternal=function(){this.JSC$7645_xhr_&&(this.JSC$7645_active_&&(this.JSC$7645_active_=!1,this.inAbort_=!0,this.JSC$7645_xhr_.abort(),this.inAbort_=!1),fgb(this,!0));_.Pz.superClass_.disposeInternal.call(this)};
_.Pz.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)ggb(this);else this.onReadyStateChangeEntryPoint_()};
_.Pz.prototype.onReadyStateChangeEntryPoint_=function(){ggb(this)};
var ggb=function(a){if(a.JSC$7645_active_&&typeof L8a!="undefined")if(a.inSend_&&_.Qz(a)==4)setTimeout(a.onReadyStateChange_.bind(a),0);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.JSC$7645_active_=!1;try{if(a.isSuccess())a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.JSC$7645_lastErrorCode_=6;try{var b=_.Qz(a)>2?a.JSC$7645_xhr_.statusText:""}catch(c){b=""}a.JSC$7645_lastError_=b+" ["+a.getStatus()+"]";egb(a)}}finally{fgb(a)}}},fgb=function(a,b){if(a.JSC$7645_xhr_){a.JSC$7645_timeoutId_&&
(clearTimeout(a.JSC$7645_timeoutId_),a.JSC$7645_timeoutId_=null);
var c=a.JSC$7645_xhr_;a.JSC$7645_xhr_=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=null}catch(d){}}};
_.Pz.prototype.isActive=function(){return!!this.JSC$7645_xhr_};
_.Pz.prototype.isComplete=function(){return _.Qz(this)==4};
_.Pz.prototype.isSuccess=function(){var a=this.getStatus(),b;if(!(b=Yfb(a))){if(a=a===0)a=dcb(String(this.JSC$7645_lastUri_)),a=!agb.test(a);b=a}return b};
_.Qz=function(a){return a.JSC$7645_xhr_?a.JSC$7645_xhr_.readyState:0};
_.f=_.Pz.prototype;_.f.getStatus=function(){try{return _.Qz(this)>2?this.JSC$7645_xhr_.status:-1}catch(a){return-1}};
_.f.getResponseText=function(){try{return this.JSC$7645_xhr_?this.JSC$7645_xhr_.responseText:""}catch(a){return""}};
_.f.getResponse=function(){try{if(!this.JSC$7645_xhr_)return null;if("response"in this.JSC$7645_xhr_)return this.JSC$7645_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7645_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7645_xhr_)return this.JSC$7645_xhr_.mozResponseArrayBuffer}return null}catch(a){return null}};
_.f.getAllResponseHeaders=function(){return this.JSC$7645_xhr_&&_.Qz(this)>=2?this.JSC$7645_xhr_.getAllResponseHeaders()||"":""};
_.f.getLastError=function(){return typeof this.JSC$7645_lastError_==="string"?this.JSC$7645_lastError_:String(this.JSC$7645_lastError_)};var Xia=function(){};
Xia.prototype.send=function(a,b,c){b=b===void 0?function(){}:b;
c=c===void 0?function(){}:c;
NAa(a.url,function(d){d=d.target;d.isSuccess()?b(d.getResponseText()):c(d.getStatus())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};
Xia.prototype.getTransmissionType=function(){return 1};var igb=function(a,b){this.logger=a;this.event=b;this.startTime=mg()};
igb.prototype.done=function(){this.logger.cX(this.event,mg()-this.startTime)};
var Rz=function(){rz.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.z(Rz,rz);var Sz=function(a,b,c){var d=mg();b=b();a.cX(c,mg()-d);return b},cja=function(){Rz.apply(this,arguments)};
_.z(cja,Rz);_.f=cja.prototype;_.f.wna=function(){};
_.f.iG=function(){};
_.f.cX=function(){};
_.f.logError=function(){};
_.f.xK=function(){};
_.f.xIa=function(){};
_.f.uIa=function(){};
_.f.wIa=function(){};
_.f.nRa=function(){};
var jgb=function(a){Rz.call(this);var b=this;this.logger=a;this.TEST_ONLY={wve:function(){return b.logger},
getExperimentIds:function(){return b.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void b.logger.dispose()})};
_.z(jgb,Rz);_.f=jgb.prototype;_.f.update=function(a){this.logger.dispose();this.logger=a};
_.f.iG=function(a){this.logger.iG(a)};
_.f.cX=function(a,b){this.logger.cX(a,b)};
_.f.logError=function(a){this.logger.logError(a)};
_.f.xK=function(){this.logger.xK()};
_.f.xIa=function(a){this.logger.xIa(a)};
_.f.uIa=function(a){this.logger.uIa(a)};
_.f.wIa=function(a){this.logger.wIa(a)};
_.f.nRa=function(a){this.logger.nRa(a)};
_.f.wna=function(a){this.logger.wna(a)};
var kgb=function(a,b){_.vg.call(this);var c=this;this.callback=a;this.iYc=b;this.jZb=-b;this.addOnDisposeCallback(function(){return void clearTimeout(c.timer)})};
_.z(kgb,_.vg);var lgb=function(a){if(a.timer===void 0){var b=Math.max(0,a.jZb+a.iYc-mg());a.timer=setTimeout(function(){try{a.callback()}finally{a.jZb=mg(),a.timer=void 0}},b)}},mgb=function(a,b){Rz.call(this);
this.metrics=a;this.ru=b};
_.z(mgb,Rz);_.f=mgb.prototype;_.f.wna=function(a){this.metrics.ded.record(a,this.ru)};
_.f.iG=function(a){this.metrics.eventCount.increment(a,this.ru)};
_.f.cX=function(a,b){this.metrics.nJc.record(b,a,this.ru)};
_.f.logError=function(a){this.metrics.errorCount.increment(a,this.ru)};
_.f.xIa=function(a){this.metrics.cld.increment(a,this.ru)};
_.f.uIa=function(a){this.metrics.dBc.increment(a,this.ru)};
_.f.wIa=function(a){this.metrics.bld.increment(a,this.ru)};
var dja=function(a,b){b=b===void 0?[]:b;var c={ru:a.ru||"_",pka:a.pka||[],vIa:a.vIa|0,destinationUrl:a.destinationUrl,zKa:a.zKa||function(){},
sba:a.sba||function(g,k){return bja(g,k,c.zKa,c.destinationUrl)}},d=c.sba("49",c.pka.concat(b));
mgb.call(this,Tia(d),c.ru);var e=this;this.pXb=b;this.TEST_ONLY={getExperimentIds:function(){return e.options.pka.concat(e.pXb).sort(function(g,k){return g-k})}};
this.options=c;this.service=d;this.nPb=!a.sba;this.flushDebouncer=new kgb(function(){return void e.service.snapshotAndFlush()},c.vIa);
this.addOnDisposeCallback(function(){e.flushDebouncer.dispose();e.nPb&&e.service.dispose()})};
_.z(dja,mgb);dja.prototype.nRa=function(a){var b=this;this.flushDebouncer.dispose();this.nPb&&this.service.dispose();this.service=this.options.sba("49",this.options.pka.concat(a));this.flushDebouncer=new kgb(function(){return void b.service.snapshotAndFlush()},this.options.vIa);
this.metrics=Tia(this.service);this.pXb=a};
dja.prototype.xK=function(){lgb(this.flushDebouncer)};var k4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(k4a,_.bd);_.l4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(_.l4a,_.bd);var jw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a,0,jw.messageId)};
_.z(jw,_.bd);var ngb=_.vda(jw);jw.messageId="bfkj";var tia=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(tia,_.bd);var ogb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(ogb,_.bd);var pgb=_.od(ogb);_.hq=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};_.Tz=function(a){_.vg.call(this);var b=this;this.v6a=Math.floor(Math.random()*200);this.oka=new ogb;if("challenge"in a&&ngb(a.challenge)){var c=_.Tx(a.challenge,4,void 0,Fb);var d=_.Tx(a.challenge,5,void 0,Fb);_.Tx(a.challenge,7,void 0,Fb)&&(this.oka=pgb(_.Tx(a.challenge,7,void 0,Fb)))}else c=a.program,d=a.globalName;this.addOnDisposeCallback(function(){var C,F,J;return _.l(function(I){if(I.nextAddress==1)return _.p(I,b.iSa,2);C=I.yieldResult;F=C.udd;(J=F)==null||J();_.ue(I)})});
this.logger=eja(a.u8||{},this.oka,a.gse);_.kg(this,this.logger);var e=new _.hq;this.iSa=e.promise;this.logger.iG("t");var g=this.logger.share(),k=new igb(g,"t"),m=function(C,F,J,I){if(!b.logger.isDisposed()){var R="k";F?R="h":J&&(R="u");R!=="k"?I!==0&&(b.logger.iG(R),b.logger.cX(R,C)):b.v6a<=0?(b.logger.iG(R),b.logger.cX(R,C),b.v6a=Math.floor(Math.random()*200)):b.v6a--}},n=function(C,F,J,I){Promise.resolve().then(function(){k.done();
g.xK();g.dispose();e.resolve({hzc:C,udd:F,n6c:J,vBc:I})})};
if(!_.ja[d])throw this.logger.logError(25),Error("Ja");if(!_.ja[d].a)throw this.logger.logError(26),Error("Ka");try{var r=_.ja[d].a;d=[];for(var t=[],u=uia(this.oka),x=0;x<u.length;x++)d.push(u[x]),t.push(1);var A=via(this.oka);for(u=0;u<A.length;u++)d.push(A[u]),t.push(2);this.rfd=_.h(r(c,n,!0,a.xfc,m,[d,t],_.Tx(this.oka,5))).next().value;this.gba=e.promise.then(function(){})}catch(C){throw this.logger.logError(28),C;
}};
_.z(_.Tz,_.vg);_.Tz.prototype.snapshot=function(a){if(this.isDisposed())throw Error("La");this.logger.iG("n");var b=this.logger.share();return this.iSa.then(function(c){var d=c.hzc;return new Promise(function(e){var g=new igb(b,"n");d(function(k){g.done();b.wna(k.length);b.xK();b.dispose();e(k)},[a.ew,
a.wPa,a.pgc,a.fqb])})})};
_.qgb=function(a,b){if(a.isDisposed())throw Error("La");a.logger.iG("n");var c=Sz(a.logger,function(){return a.rfd([b.ew,b.wPa,b.pgc,b.fqb])},"n");
a.logger.wna(c.length);a.logger.xK();return c};
_.Tz.prototype.tpa=function(a){this.iSa.then(function(b){var c;(c=b.n6c)==null||c(a)})};
_.Tz.prototype.oBa=function(a,b){return this.iSa.then(function(c){var d;return(d=c.vBc)==null?void 0:d(a,b,!1)})};
_.Tz.prototype.isa=function(){return this.logger.share()};var rgb=function(){this.ilb={};this.ndb=null},sgb=function(){rgb.instance||(rgb.instance=new rgb);
return rgb.instance},ugb=function(a,b){return tgb(a,_.Xj(b,k4a,1,Fb),_.Xj(b,_.l4a,2,Fb),_.Tx(b,3,void 0,Fb))},tgb=function(a,b,c,d){if(!b&&!c)return Promise.resolve();
if(!d)return ija(b,c);var e;(e=a.ilb)[d]||(e[d]=new Promise(function(g,k){ija(b,c).then(function(){a.ndb=d;g()},function(m){delete a.ilb[d];
k(m)})}));
return a.ilb[d]};var vgb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(vgb,_.bd);var wgb=function(a,b){return _.kw(a,1,b)},xgb=function(a,b){return _.kw(a,2,b)};var Uz=function(a){_.vg.call(this);var b=this;this.options=a;this.nPa=new _.hq;this.gba=this.nPa.promise;this.wEa=new _.hq;this.tZb=1;this.uoa=new _.hq;this.mqa=[];this.gLa=a.gLa||function(){};
this.logger=new jgb(eja(a.u8||{}));ygb(this,a.rJ,a.xRc,a.oEe,a.iFe,Object.assign({},zgb,a.mta||{}));this.addOnDisposeCallback(function(){return void Agb(b)})};
_.z(Uz,_.vg);Uz.prototype.snapshot=function(a){var b=this;return _.l(function(c){switch(c.nextAddress){case 1:if(b.isDisposed())throw Error("La");if(b.yW||b.mdb){c.jumpTo(2);break}return _.p(c,b.wEa.promise,2);case 2:if(!b.yW){c.jumpTo(4);break}return _.p(c,b.yW.snapshot(a),5);case 5:return c.return(c.yieldResult);case 4:throw b.mdb;}})};
var Bgb=function(a){var b;return _.l(function(c){if(a.isDisposed())throw Error("La");(b=a.dZ)!=null&&(b.endTimeMs=0,b.resolver(1));return _.p(c,a.uoa.promise,0)})},Agb=function(a){a.mdb=Error("Na");
a.wEa.resolve();wia(a.nPa.promise);a.nPa.reject(Error("Na"));a.logger.dispose();Promise.all(a.mqa).then(function(){var c;return _.l(function(d){(c=a.yW)==null||c.dispose();a.yW=void 0;_.ue(d)})});
a.mqa=[];var b;(b=a.dZ)!=null&&(b.endTimeMs=0,b.resolver(1));wia(a.uoa.promise);a.uoa.reject(Error("Na"))};
Uz.prototype.tpa=function(a){var b,c;(b=this.yW)==null||(c=b.tpa)==null||c.call(b,a)};
Uz.prototype.oBa=function(a,b){var c,d,e;return(e=(c=this.yW)==null?void 0:(d=c.oBa)==null?void 0:d.call(c,a,b))!=null?e:Promise.resolve()};
var Cgb=function(a,b){var c=a.gLa;a.gLa=function(){c();b()}},Dgb=function(a,b){a.isDisposed()||(a.yW=b,a.logger.update(b.isa()),a.wEa.resolve(),a.nPa.resolve(void 0),a.gLa())};
Uz.prototype.handleError=function(a){if(!this.isDisposed()){this.mdb=a;this.wEa.resolve();var b,c;(c=(b=this.options).o1c)==null||c.call(b,a)}};
var Egb=function(a,b){b&&(Promise.all(a.mqa).then(function(){return void b.dispose()}),a.mqa=[])},Vz=function(a,b){a.tZb=b;
var c,d;(d=(c=a.options).iCe)==null||d.call(c,b)},Fgb=function(a){a.isDisposed()||(a.uoa.resolve(),a.uoa=new _.hq)},ygb=function(a,b,c,d,e,g){d=d===void 0?sgb():d;
e=e===void 0?Promise.resolve(void 0):e;var k,m,n,r,t,u,x,A,C,F,J,I;_.l(function(R){switch(R.nextAddress){case 1:return _.p(R,0,3);case 3:m=null;if(!k){R.jumpTo(6);break}Vz(a,7);_.pe(R,7);return _.p(R,sg(k.snapshot({}),g.mEc,function(){return Promise.resolve("E:CTO")}),9);
case 9:m=R.yieldResult;_.Jj(R,6);break;case 7:_.te(R),m="E:UCE";case 6:n=void 0,r=k?g.gJc:g.hJc,t=new hg(r,g.iJc,g.jJc,g.fJc),u=1;case 10:if(!(u<=g.maxAttempts)){R.jumpTo(12);break}if(u===1){R.jumpTo(13);break}Vz(a,0);a.dZ=new Ggb(t.getValue(),g.rdc,g.aec);return _.p(R,a.dZ.promise,14);case 14:x=R.yieldResult,a.dZ=void 0,x===1?(u=1,t.reset()):Qeb(t);case 13:_.pe(R,15);A=void 0;if(c){A=c;R.jumpTo(17);break}Vz(a,5);C=d.ndb;return _.p(R,sg(Hgb(b,C,m),g.iKc,function(){return Promise.reject(Error("Oa"))}),
18);
case 18:A=R.yieldResult;case 17:return Vz(a,3),_.p(R,sg(ugb(d,A),g.eWc,function(){return Promise.reject(Error("Pa"))}),19);
case 19:return Vz(a,8),_.p(R,e,20);case 20:return F=new _.Tz({challenge:A,u8:a.options.u8,xfc:a.options.xfc}),_.p(R,sg(F.gba,g.qcd,function(){return Promise.reject(Error("Qa"))}),21);
case 21:n=F;R.jumpTo(12);break;case 15:J=_.te(R),a.handleError(J),Fgb(a);case 11:u++;R.jumpTo(10);break;case 12:if(a.isDisposed()){R.jumpTo(5);break}n&&(c=void 0,Egb(a,k),k=n,Dgb(a,n),Fgb(a));Vz(a,2);a.dZ=new Ggb(g.z7b,g.rdc,g.aec);return _.p(R,a.dZ.promise,22);case 22:a.dZ=void 0;if(a.isDisposed()){R.jumpTo(5);break}R.jumpTo(3);break;case 5:(I=k)==null||I.dispose(),_.ue(R)}})};
Uz.prototype.isa=function(){return this.logger.share()};
var zgb={z7b:432E5,rdc:3E5,aec:10,mEc:1E4,iKc:3E4,eWc:3E4,qcd:6E4,hJc:1E3,gJc:6E4,iJc:6E5,jJc:.25,fJc:2,maxAttempts:10},Ggb=function(a,b,c){var d=this;this.endTimeMs=Date.now()+a;this.promise=new Promise(function(g){d.resolver=g});
var e=function(){var g=d.endTimeMs-Date.now();g<=c?d.resolver(0):setTimeout(e,Math.min(g,b))};
e()};var Igb,lja=(Igb=Math.imul)!=null?Igb:function(a,b){return a*b|0},tg=[196,
200,224,18],Wz=function(a,b,c){c=c===void 0?[]:c;this.maxItems=a;this.dJ=b===void 0?0:b;this.xW=c},Jgb=function(a){var b=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!b)return new Wz(a);var c=b.split(",");if(c.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Wz(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 Wz(a)):new Wz(a,c,b)};
Wz.prototype.serialize=function(){return String(this.dJ)+","+this.xW.join()};
Wz.prototype.insert=function(a,b){var c=void 0;if(this.xW[this.dJ]!==a){var d=this.xW.indexOf(a);d!==-1?(this.xW.splice(d,1),d<this.dJ&&this.dJ--,this.xW.splice(this.dJ,0,a)):(c=this.xW[this.dJ],this.xW[this.dJ]=a)}this.dJ=(this.dJ+1)%this.maxItems;a=jja("iU5q-!O9@$",this.serialize());c&&a&&b(c);return a};
var Kgb=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=Jgb(a))},Lgb=function(a,b,c,d,e){var g=a.index?Sz(a.logger,function(){return pja(a.index,nja(b),c,d,e)},"W"):"u";
a.logger.wIa(g)},Mgb=function(a,b,c){var d=_.h(a.index?Sz(a.logger,function(){return qja(nja(b),c)},"R"):["u"]),e=d.next().value;
d=d.next().value;a.logger.uIa(e);return d};var Ngb={toString:function(a){var b=[],c=0;a-=-2147483648;b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(a%52);for(a=Math.floor(a/52);a>0;)b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return b.join("")}};var Qgb=function(a){a=Ogb(a);for(var b=2654435769,c=2654435769,d=314159265,e=a.length,g=e,k=0,m=function(){b-=c;b-=d;b^=d>>>13;c-=d;c-=b;c^=b<<8;d-=b;d-=c;d^=c>>>13;b-=c;b-=d;b^=d>>>12;c-=d;c-=b;c^=b<<16;d-=b;d-=c;d^=c>>>5;b-=c;b-=d;b^=d>>>3;c-=d;c-=b;c^=b<<10;d-=b;d-=c;d^=c>>>15};g>=12;g-=12,k+=12)b+=Pgb(a,k),c+=Pgb(a,k+4),d+=Pgb(a,k+8),m();
d+=e;switch(g){case 11:d+=a[k+10]<<24;case 10:d+=a[k+9]<<16;case 9:d+=a[k+8]<<8;case 8:c+=a[k+7]<<24;case 7:c+=a[k+6]<<16;case 6:c+=a[k+5]<<8;case 5:c+=a[k+4];case 4:b+=a[k+3]<<24;case 3:b+=a[k+2]<<16;case 2:b+=a[k+1]<<8;case 1:b+=a[k]}m();return Ngb.toString(d)},Ogb=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));
return b},Pgb=function(a,b){return a[b]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};var Rgb,Xz=function(a){_.vg.call(this);this.logger=a;this.lmb=new _.hq;this[Rgb]=this.dispose};
_.z(Xz,_.vg);var Sgb=function(a,b){var c=setTimeout(function(){a.lmb.resolve()},b);
a.addOnDisposeCallback(function(){return void clearTimeout(c)})};
Xz.prototype.v8=function(a,b){var c=this.lK(a);b==null||b(c);return Sz(this.logger,function(){return _.Bc(c,2)},this.gka)};
var Tgb=function(a,b,c,d){return Sz(a.logger,function(){return c?a.v8(b,d):a.lK(b,d)},a.w8)};
Rgb=Symbol.dispose;var Ugb=function(a,b,c,d){Xz.call(this,a);this.lYc=b;this.nYc=c;this.w8="m";this.gka="x";this.mYc=0;Sgb(this,d)};
_.z(Ugb,Xz);Ugb.prototype.lK=function(a,b){var c=this;this.logger.iG(this.w8);++this.mYc>=this.nYc&&this.lmb.resolve();var d=a();a=Sz(this.logger,function(){return c.lYc(d)},"C");
if(a===void 0)throw new pz(17,"YNJ:Undefined");if(!(a instanceof Uint8Array))throw new pz(18,"ODM:Invalid");b==null||b(a);return a};
var Vgb=function(a,b,c){Xz.call(this,a);this.fKc=b;this.w8="f";this.gka="z";Sgb(this,c)};
_.z(Vgb,Xz);Vgb.prototype.lK=function(){return this.fKc};
var Wgb=function(a,b,c){Xz.call(this,a);this.qgc=b;this.w8="w";this.gka="z";Sgb(this,c)};
_.z(Wgb,Xz);Wgb.prototype.lK=function(){var a=this;return Sz(this.logger,function(){return _.cb(a.qgc)},"d")};
Wgb.prototype.v8=function(){return this.qgc};
var Xgb=function(a,b){Xz.call(this,a);this.error=b;this.w8="e";this.gka="y"};
_.z(Xgb,Xz);var Ygb=function(a,b){var c=(b(a.error.message)+":"+b(a.error.stack)).substring(0,2048);b=c.length+1;c=rja(c);var d=new Uint8Array(4+c.length);d.set([42,b&127|128,b>>7,a.error.code]);d.set(c,4);return d};
Xgb.prototype.lK=function(){if(this.lLb)return this.lLb;this.lLb=Ygb(this,function(a){return"_"+Qgb(a)});
return Ygb(this,function(a){return a})};
var Zgb=function(a,b,c){Xz.call(this,a);this.cSc=b;this.clientState=c;this.w8="S";this.gka="q"};
_.z(Zgb,Xz);Zgb.prototype.lK=function(){var a=Math.floor(Date.now()/1E3),b=[Math.random()*255,Math.random()*255],c=b.concat([this.cSc&255,this.clientState],[a>>24&255,a>>16&255,a>>8&255,a&255]);a=new Uint8Array(2+c.length);a[0]=34;a[1]=c.length;a.set(c,2);c=a.subarray(2);for(var d=b=b.length;d<c.length;++d)c[d]^=c[d%b];this.logger.xIa(this.clientState);return a};var $gb={kKc:3E4,eed:2E4},Yz=function(a){_.vg.call(this);var b=this;this.oaa=new _.hq;this.t4a=0;this.sJ=void 0;this.state=2;this.qc=a.qc;this.rJ=a.rJ;this.mta=Object.assign({},$gb,a.mta||{});this.logger=a.qc.isa();var c;this.onError=(c=a.onError)!=null?c:function(){};
this.lub=a.lub||!1;if(ahb(a)){var d=this.qc;this.hsb=function(){return Bgb(d).catch(function(k){k=b.reportError(new pz(b.kw?20:32,"TRG:Disposed",k));b.sJ=k;var m;(m=b.kw)==null||m.dispose();b.kw=void 0;b.oaa.reject(k)})};
Cgb(d,function(){return void bhb(b)});
d.tZb===2&&bhb(this)}else this.hsb=a.eCe,bhb(this);var e=this.logger.share();e.iG("o");var g=new igb(e,"o");this.oaa.promise.then(function(){g.done();e.xK();e.dispose()},function(){return void e.dispose()});
this.addOnDisposeCallback(function(){b.kw?(b.kw.dispose(),b.kw=void 0):b.sJ?b.logger.xK():(b.sJ=b.reportError(new pz(32,"TNP:Disposed")),b.logger.xK(),b.oaa.reject(b.sJ))});
_.kg(this,this.logger)};
_.z(Yz,_.vg);Yz.prototype.j7a=function(){return this.oaa.promise};
var chb=function(a,b){if(!(b instanceof pz))if(b instanceof _.Nz){var c=Error(b.toString());c.stack=b.stack;b=new pz(11,"EBH:Error",c)}else b=new pz(12,"BSO:Unknown",b);return a.reportError(b)},bhb=function(a){var b,c,d,e,g,k,m,n,r,t,u,x,A,C,F;
return _.l(function(J){switch(J.nextAddress){case 1:b=void 0;a.t4a++;c=new _.hq;a.qc instanceof Uz&&a.qc.mqa.push(c.promise);if(!a.lub){J.jumpTo(2);break}d=new _.hq;setTimeout(function(){return void d.resolve()});
return _.p(J,d.promise,2);case 2:return e=a.logger.share(),_.pe(J,4,5),a.state=5,g={},k=[],_.p(J,sg(a.qc.snapshot({ew:g,pgc:k}),a.mta.eed,function(){return Promise.reject(new pz(15,"MDA:Timeout"))}),7);
case 7:m=J.yieldResult;if(a.isDisposed())throw new pz(a.kw?20:32,"MDA:Disposed");n=k[0];a.state=6;return _.p(J,sg(dhb(a.rJ,m),a.mta.kKc,function(){return Promise.reject(new pz(10,"BWB:Timeout"))}),8);
case 8:r=J.yieldResult;if(a.isDisposed())throw new pz(a.kw?20:32,"BWB:Disposed");a.state=7;b=Sz(e,function(){var R=ehb(a,r,c,n);R.lmb.promise.then(function(){return void a.hsb()});
return R},"i");
case 5:_.qe(J);e.dispose();_.se(J,6);break;case 4:t=_.te(J);(u=b)==null||u.dispose();if(!a.sJ){x=chb(a,t);c.resolve();var I;if(I=a.qc instanceof Uz&&a.t4a<2)a:if(t instanceof pz)I=t.code!==32&&t.code!==20&&t.code!==10;else{if(t instanceof _.Nz)switch(t.code){case 2:case 13:case 14:case 4:break;default:I=!1;break a}I=!0}if(I)return A=(1+Math.random()*.25)*(a.kw?6E4:1E3),C=setTimeout(function(){return void a.hsb()},A),a.addOnDisposeCallback(function(){return void clearTimeout(C)}),J.return();
a.sJ=x}e.logError(a.kw?13:14);a.oaa.reject(a.sJ);return J.return();case 6:a.state=8,a.t4a=0,(F=a.kw)==null||F.dispose(),a.kw=b,a.oaa.resolve(),_.ue(J)}})},ehb=function(a,b,c,d){var e=c$a(b,2)*1E3;
if(e<=0)throw new pz(31,"TTM:Invalid");if(_.Tx(b,4))return new Wgb(a.logger,_.Tx(b,4),e);if(!c$a(b,3))return new Vgb(a.logger,M9a(_.Ix(b,1)),e);if(!d)throw new pz(4,"PMD:Undefined");d=d(M9a(_.Ix(b,1)));if(!(d instanceof Function))throw new pz(16,"APF:Failed");a.pSc=Math.floor((Date.now()+e)/1E3);a=new Ugb(a.logger,d,c$a(b,3),e);a.addOnDisposeCallback(function(){return void c.resolve()});
return a};
Yz.prototype.lK=function(a){return fhb(this,Object.assign({},a),!1)};
Yz.prototype.v8=function(a){return fhb(this,Object.assign({},a),!0)};
Yz.prototype.qNb=function(a){if(a>150)return!1;try{return this.cache=new Kgb(a,this.logger),!0}catch(b){return this.reportError(new pz(22,"GBJ:init",b)),!1}};
Yz.prototype.reportError=function(a){this.logger.logError(a.code);this.onError(a);return a};
var ghb=function(a,b){b=b instanceof pz?b:new pz(5,"TVD:error",b);return a.reportError(b)},fhb=function(a,b,c){try{if(a.isDisposed())throw new pz(21,"BNT:disposed");
if(!a.kw&&a.sJ)throw a.sJ;var d,e;return(e=(d=hhb(a,b,c))!=null?d:ihb(a,b,c))!=null?e:jhb(a,b,c)}catch(g){if(!b.ufb)throw ghb(a,g);return khb(a,c,g)}},hhb=function(a,b,c){var d;
return(d=a.kw)==null?void 0:Tgb(d,function(){return lhb(a,b)},c,function(e){var g;
if(a.kw instanceof Ugb&&((g=b.wN)==null?0:g.kcc))try{var k;(k=a.cache)==null||Lgb(k,lhb(a,b),e,b.wN.l2a,a.pSc-120)}catch(m){a.reportError(new pz(24,"ELX:write",m))}})},ihb=function(a,b,c){var d;
if((d=b.wN)!=null&&d.iJb)try{var e,g=(e=a.cache)==null?void 0:Mgb(e,lhb(a,b),b.wN.l2a);return g?c?Sz(a.logger,function(){return _.Bc(g,2)},"a"):g:void 0}catch(k){a.reportError(new pz(23,"RXO:read",k))}},jhb=function(a,b,c){var d={stack:[],
error:void 0,hasError:!1};try{if(!b.tfb)throw new pz(29,"SDF:notready");return Tgb(_.Pr(d,new Zgb(a.logger,0,a.state)),function(){return lhb(a,b)},c)}catch(e){d.error=e,d.hasError=!0}finally{_.Qr(d)}},khb=function(a,b,c){var d={stack:[],
error:void 0,hasError:!1};try{var e=ghb(a,c);return Tgb(_.Pr(d,new Xgb(a.logger,e)),function(){return[]},b)}catch(g){d.error=g,d.hasError=!0}finally{_.Qr(d)}},lhb=function(a,b){return b.iEa?b.iEa:b.ew?Sz(a.logger,function(){return b.iEa=rja(b.ew)},"c"):[]},ahb=function(a){return Kb(function(b){if(!xka(b))return!1;
for(var c=_.h(Object.entries(a)),d=c.next();!d.done;d=c.next()){var e=_.h(d.value);d=e.next().value;e=e.next().value;if(!(d in b)){if(e.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!e(b[d]))return!1}return!0})}({qc:function(a){return Kb(function(b){return b instanceof a})}(Uz)},"");var mJa=function(){var a=_.nq();this.JSC$7784_streamzService=a;a.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",eg("tick"),_.dg("from_st_cookie"))};
mJa.prototype.increment=function(a,b){this.JSC$7784_streamzService.JSC$7636_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",a,b)};
var mhb=function(){var a=_.nq();this.JSC$7790_streamzService=a;a.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.fg("status"))};
mhb.prototype.increment=function(a){this.JSC$7790_streamzService.JSC$7636_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",a)};
var nhb=function(){var a=_.nq();this.JSC$7793_streamzService=a;a.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.fg("stage"),_.dg("is_using_ytd_player"),_.dg("has_expandable_tiles"))};
nhb.prototype.increment=function(a,b,c){this.JSC$7793_streamzService.JSC$7636_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",a,b,c)};
var ohb=function(){var a=_.nq();this.JSC$7796_streamzService=a;a.addNewCounter("/client_streamz/youtube/web/response_signature",_.fg("check_status"))};
ohb.prototype.increment=function(a){this.JSC$7796_streamzService.JSC$7636_incrementCounter("/client_streamz/youtube/web/response_signature",a)};
_.phb=function(){var a=_.nq();this.JSC$7799_streamzService=a;a.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.fg("action"))};
_.phb.prototype.increment=function(a){this.JSC$7799_streamzService.JSC$7636_incrementCounter("/client_streamz/youtube/web/enforcement_intent",a)};var QKa=function(){var a=_.nq();this.JSC$7802_streamzService=a;a.addNewCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",_.fg("tagname"))};
QKa.prototype.increment=function(a){this.JSC$7802_streamzService.JSC$7636_incrementCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",a)};var Zz=window;var qhb=(new Date).getTime();var rhb=function(a){this.servicePromise_=a;a.then((0,_.wg)(function(){},this),function(){},this)},shb=function(a,b,c){a.servicePromise_.then(function(d){var e=d[b];
if(!e)throw Error("Ra`"+b);return e.apply(d,c)})},vhb=function(a,b,c){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];
e=thb(a,b).then(function(g){return g.apply(null,d)},function(g){g=Error("Sa`"+b+"`"+a,{cause:g});
delete uhb[b];return _.On(g)});
return new rhb(e)},uhb={},thb=function(a,b){var c=uhb[b];
if(c)return c;c=(c=_.Ji(b))?_.qo(c):(new _.il(function(d,e){var g=(new Py(document)).createElement("SCRIPT");g.async=!0;_.Zd(g,_.xd(Tcb(a)));g.onload=g.onreadystatechange=function(){g.readyState&&g.readyState!="loaded"&&g.readyState!="complete"||d()};
g.onerror=function(k){e(Error("Ta`"+b+"`"+a,{cause:k}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(g)})).then(function(){var d=_.Ji(b);
if(!d)throw Error("Ua`"+b+"`"+a);return d});
return uhb[b]=c};var whb={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},yhb=function(){var a=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=sja(function(){return _.l(function(b){if(b.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?b.return(Promise.resolve()):_.p(b,xhb(a),2);a.rsaForList.length>
0&&document.addEventListener("click",a.requestAccessForHelpPanel);_.ue(b)})});
this.requestAccessForHelpPanel=function(){if(!(a.rsaForPromises.length>0)){for(var b=_.h(a.rsaForList),c=b.next();!c.done;c=b.next()){c=c.value;try{a.rsaForPromises.push(document.requestStorageAccessFor(c))}catch(d){}}Promise.all(a.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){a.reset()})}}};
yhb.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var xhb=function(a){var b,c,d,e;return _.l(function(g){switch(g.nextAddress){case 1:b=_.h(Object.values(whb)),c=b.next();case 2:if(c.done){g.jumpTo(0);break}d=c.value;_.pe(g,5);return _.p(g,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:d}),7);case 7:e=g.yieldResult;e.state!=="granted"&&a.rsaForList.push(d);_.Jj(g,3);break;case 5:_.te(g);g.jumpTo(0);break;case 3:c=b.next(),g.jumpTo(2)}})};(new yhb).initialize();var zhb=function(a){this.JSC$7816_loader_=a};
zhb.prototype.startHelp=function(a){shb(this.JSC$7816_loader_,"startHelp",arguments)};
zhb.prototype.JSC$7818_loadChatSupport=function(a){shb(this.JSC$7816_loader_,"loadChatSupport",arguments)};
var Bhb=function(a,b){b=b||{};a=vhb(Ahb,"help.service.Lazy.create",a,{apiKey:b.apiKey||b.apiKey,asxUiUri:b.asxUiUri||b.asxUiUri,environment:b.environment||b.environment,flow:b.flow||b.flow,frdProductData:b.frdProductData||b.frdProductData,frdProductDataSerializedJspb:b.frdProductDataSerializedJspb||b.frdProductDataSerializedJspb,helpCenterPath:b.helpCenterPath||b.helpCenterPath,locale:b.locale||b.locale||"en-US".replace(/-/g,"_"),nonce:b.nonce||b.nonce,productData:b.productData||b.productData,receiverUri:b.receiverUri||
b.receiverUri,renderApiUri:b.renderApiUri||b.renderApiUri,theme:b.theme||b.theme,window:b.window||b.window});return new zhb(a)},Ahb=new Fl(kua,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var Chb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Chb,_.bd);var Dhb=_.od(Chb);new Uint8Array([]);_.Ehb=new function(a,b,c,d){this.configType=a;this.flagName=c;this.defaultValue=d;this.flagType="bool"}(2,0,"external_fullscreen",!0);
new Uint8Array([10,2,75,82]);new Uint8Array([10,2,78,76,10,2,69,83]);new Uint8Array([]);new Uint8Array([]);new Uint8Array([]);var Ghb=function(){this.retriever=_.v().resolve(Fhb)};uja(Node);uja(Element);var Hhb=uja(HTMLElement);uja(SVGElement);var Ihb,Jhb,bA,Khb;Ihb=function(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""};
Jhb=function(a){return a.classList?a.classList:Ihb(a).match(/\S+/g)||[]};
_.$z=function(a,b){typeof a.className=="string"?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
_.aA=function(a,b){return a.classList?a.classList.contains(b):_.Oa(Jhb(a),b)};
_.Qs=function(a,b){if(a.classList)a.classList.add(b);else if(!_.aA(a,b)){var c=Ihb(a);_.$z(a,c+(c.length>0?" "+b:b))}};
bA=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){_.Qs(a,e)});
else{var c={};Array.prototype.forEach.call(Jhb(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;_.$z(a,b)}};
_.Os=function(a,b){a.classList?a.classList.remove(b):_.aA(a,b)&&_.$z(a,Array.prototype.filter.call(Jhb(a),function(c){return c!=b}).join(" "))};
Khb=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){_.Os(a,c)}):_.$z(a,Array.prototype.filter.call(Jhb(a),function(c){return!_.Oa(b,c)}).join(" "))};var Lhb=function(a){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=a.document},Ohb=function(a,b){Mhb(a);
var c=document.createElement("div"),d;(d=b.parentNode)==null||d.insertBefore(c,b);c.tabIndex=0;c.id="fc-focus-trap-pre-div";c=document.createElement("div");var e;(e=b.parentNode)==null||e.insertBefore(c,b.nextSibling);c.tabIndex=0;c.id="fc-focus-trap-post-div";var g=Nhb(a,b),k=Nhb(a,b,!0);g&&k&&(a.focusChangeHandler=function(){var m=a.document.activeElement;if(m)if(_.Jg(b,m))a.previouslyFocusedElement=m;else if(m===a.document.activeElement)switch(a.previouslyFocusedElement){case g:k.focus();a.previouslyFocusedElement=
k;break;default:g.focus(),a.previouslyFocusedElement=g}},a.document.addEventListener("focus",a.focusChangeHandler,!0),a.document.addEventListener("focusin",a.focusChangeHandler))},Mhb=function(a){a.focusChangeHandler&&(document.removeEventListener("focus",a.focusChangeHandler,!0),document.removeEventListener("focusin",a.focusChangeHandler),a.focusChangeHandler=null);
var b;(b=document.getElementById("fc-focus-trap-pre-div"))==null||b.remove();var c;(c=document.getElementById("fc-focus-trap-post-div"))==null||c.remove()},Phb=function(a,b,c,d,e){c=c===void 0?!0:c;
var g;e=(g=e===void 0?null:e)!=null?g:Nhb(a,b,d===void 0?!1:d);e!==null&&(e.focus(),c&&Ohb(a,b))};
Lhb.prototype.disableButton=function(a,b){b=b===void 0?null:b;a.disabled=!0;b&&_.Qs(a,b)};
var Nhb=function(a,b,c){c=c===void 0?!1:c;if(Bsa(b)&&!c)return b;var d=c?[].slice.call(b.children,0).reverse():b.children;d=_.h(d);for(var e=d.next();!e.done;e=d.next())if(e=e.value,Hhb(e)&&(e=Nhb(a,e,c)))return e;return Bsa(b)&&c?b:null};var Qhb=function(a){this.originalBodyOverflow="";this.JSC$7844_domHelper=uf(a)};_.sx(_.xg,_.vg);_.f=_.xg.prototype;_.f.JSC$7847_id_=0;_.f.disposeInternal=function(){_.xg.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$7845_listener_;delete this.handler_};
_.f.start=function(a){this.stop();this.JSC$7847_id_=Mz(this.callback_,a!==void 0?a:this.JSC$7845_interval_)};
_.f.stop=function(){this.isActive()&&_.ja.clearTimeout(this.JSC$7847_id_);this.JSC$7847_id_=0};
_.f.fire=function(){this.stop();this.JSC$7847_doAction_()};
_.f.isActive=function(){return this.JSC$7847_id_!=0};
_.f.JSC$7847_doAction_=function(){this.JSC$7847_id_=0;this.JSC$7845_listener_&&this.JSC$7845_listener_.call(this.handler_)};_.an=function(a){_.vg.call(this);this.handler_=a;this.JSC$7848_keys_={}};
_.sx(_.an,_.vg);var Rhb=[];_.an.prototype.listen=function(a,b,c,d){Array.isArray(b)||(b&&(Rhb[0]=b.toString()),b=Rhb);for(var e=0;e<b.length;e++){var g=_.rs(a,b[e],c||this.handleEvent,d||!1,this.handler_||this);if(!g)break;this.JSC$7848_keys_[g.key]=g}return this};
_.an.prototype.listenOnce=function(a,b,c,d){return Shb(this,a,b,c,d)};
var Shb=function(a,b,c,d,e,g){if(Array.isArray(c))for(var k=0;k<c.length;k++)Shb(a,b,c[k],d,e,g);else{b=ns(b,c,d||a.handleEvent,e,g||a.handler_||a);if(!b)return a;a.JSC$7848_keys_[b.key]=b}return a};
_.an.prototype.unlisten=function(a,b,c,d,e){if(Array.isArray(b))for(var g=0;g<b.length;g++)this.unlisten(a,b[g],c,d,e);else if(a=qfb(a,b,c||this.handleEvent,_.Za(d)?!!d.capture:!!d,e||this.handler_||this))os(a),delete this.JSC$7848_keys_[a.key];return this};
_.an.prototype.removeAll=function(){_.Cf.forEach(this.JSC$7848_keys_,function(a,b){this.JSC$7848_keys_.hasOwnProperty(b)&&os(a)},this);
this.JSC$7848_keys_={}};
_.an.prototype.disposeInternal=function(){_.an.superClass_.disposeInternal.call(this);this.removeAll()};
_.an.prototype.handleEvent=function(){throw Error("Va");};var cA=function(){_.vg.call(this);this.services_={}};
_.sx(cA,_.vg);_.f=cA.prototype;_.f.logger=null;_.f.connect=function(a){a&&a()};
_.f.isConnected=function(){return!0};
_.f.registerService=function(a,b,c){this.services_[a]={callback:b,objectPayload:!!c}};
_.f.getService=function(a,b){var c=this.services_[a];return c?c:this.defaultService_?{callback:_.xo(this.defaultService_,a),objectPayload:_.Za(b)}:null};
var Thb=function(a,b){if(b&&typeof a==="string")try{return JSON.parse(a)}catch(c){return null}else if(!b&&typeof a!=="string")return(0,_.Oz)(a);return a};
cA.prototype.disposeInternal=function(){cA.superClass_.disposeInternal.call(this);delete this.services_;delete this.defaultService_};/*

 Copyright 2005, 2007 Bob Ippolito. All Rights Reserved.
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: MIT
*/
var dA=function(a,b){this.sequence_=[];this.onCancelFunction_=a;this.defaultScope_=b||null;this.hadError_=this.fired_=!1;this.result_=void 0;this.silentlyCanceled_=this.blocking_=this.blocked_=!1;this.unhandledErrorId_=0;this.parent_=null;this.branches_=0};
dA.prototype.cancel=function(a){if(this.fired_)this.result_ instanceof dA&&this.result_.cancel();else{if(this.parent_){var b=this.parent_;delete this.parent_;a?b.cancel(a):(b.branches_--,b.branches_<=0&&b.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new eA(this))}};
dA.prototype.continue_=function(a,b){this.blocked_=!1;Uhb(this,a,b)};
var Uhb=function(a,b,c){a.fired_=!0;a.result_=c;a.hadError_=!b;Vhb(a)},Xhb=function(a){if(a.fired_){if(!a.silentlyCanceled_)throw new Whb(a);
a.silentlyCanceled_=!1}};
dA.prototype.callback=function(a){Xhb(this);Uhb(this,!0,a)};
dA.prototype.errback=function(a){Xhb(this);Uhb(this,!1,a)};
var Yhb=function(a,b,c){fA(a,b,null,c)};
dA.prototype.finally=function(a){var b=this;return new Promise(function(c,d){fA(b,function(e){a();c(e)},function(e){a();
d(e)})})};
var fA=function(a,b,c,d){var e=a.fired_;e||(b===c?b=c=Iz(b):(b=Iz(b),c=Iz(c)));a.sequence_.push([b,c,d]);e&&Vhb(a)};
dA.prototype.then=function(a,b,c){var d,e,g=new _.il(function(k,m){e=k;d=m});
fA(this,e,function(k){k instanceof eA?g.cancel():d(k);return Zhb},this);
return g.then(a,b,c)};
yfb(dA);var $hb=function(a,b){b instanceof dA?Yhb(a,(0,_.wg)(b.branch,b)):Yhb(a,function(){return b})};
dA.prototype.branch=function(a){var b=new dA;fA(this,b.callback,b.errback,b);a&&(b.parent_=this,this.branches_++);return b};
dA.prototype.isError=function(a){return a instanceof Error};
var aib=function(a){return Nk(a.sequence_,function(b){return typeof b[1]==="function"})},Zhb={},Vhb=function(a){if(a.unhandledErrorId_&&a.fired_&&aib(a)){var b=a.unhandledErrorId_,c=bib[b];
c&&(_.ja.clearTimeout(c.JSC$7865_id_),delete bib[b]);a.unhandledErrorId_=0}a.parent_&&(a.parent_.branches_--,delete a.parent_);b=a.result_;for(var d=c=!1;a.sequence_.length&&!a.blocked_;){var e=a.sequence_.shift(),g=e[0],k=e[1];e=e[2];if(g=a.hadError_?k:g)try{var m=g.call(e||a.defaultScope_,b);m===Zhb&&(m=void 0);m!==void 0&&(a.hadError_=a.hadError_&&(m==b||a.isError(m)),a.result_=b=m);if(zfb(b)||typeof _.ja.Promise==="function"&&b instanceof _.ja.Promise)d=!0,a.blocked_=!0}catch(n){b=n,a.hadError_=
!0,aib(a)||(c=!0)}}a.result_=b;d&&(m=(0,_.wg)(a.continue_,a,!0),d=(0,_.wg)(a.continue_,a,!1),b instanceof dA?(fA(b,m,d),b.blocking_=!0):b.then(m,d));c&&(b=new cib(b),bib[b.JSC$7865_id_]=b,a.unhandledErrorId_=b.JSC$7865_id_)},Whb=function(){_.ca.call(this)};
_.sx(Whb,_.ca);Whb.prototype.message="Deferred has already fired";Whb.prototype.name="AlreadyCalledError";var eA=function(){_.ca.call(this)};
_.sx(eA,_.ca);eA.prototype.message="Deferred was canceled";eA.prototype.name="CanceledError";var cib=function(a){this.JSC$7865_id_=_.ja.setTimeout((0,_.wg)(this.throwError,this),0);this.JSC$7865_error_=a};
cib.prototype.throwError=function(){delete bib[this.JSC$7865_id_];throw this.JSC$7865_error_;};
var bib={};var dib={1:"NativeMessagingTransport"},eib=["pu","lru","pru","lpu","ppu"],gib=function(){for(var a=10,b=fib,c=b.length,d="";a-- >0;)d+=b.charAt(Math.floor(Math.random()*c));return d},fib="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var gA=function(a){_.vg.call(this);this.JSC$7868_domHelper_=a||uf()};
_.sx(gA,_.vg);gA.prototype.transportType=0;gA.prototype.getWindow=function(){return this.JSC$7868_domHelper_.getWindow()};
gA.prototype.getName=function(){return dib[String(this.transportType)]||""};var hA=function(a,b,c,d,e){gA.call(this,c);this.JSC$7871_channel_=a;this.protocolVersion_=e||2;this.peerHostname_=b||"*";this.JSC$7871_eventHandler_=new _.an(this);this.maybeAttemptToConnectTimer_=new _.$m(100,this.getWindow());this.oneSidedHandshake_=!!d;this.setupAckReceived_=new dA;this.setupAckSent_=new dA;this.JSC$7871_connected_=new dA;this.endpointId_=gib();this.peerEndpointId_=null;this.oneSidedHandshake_?hib(this.JSC$7871_channel_)==1?$hb(this.JSC$7871_connected_,this.setupAckReceived_):
$hb(this.JSC$7871_connected_,this.setupAckSent_):($hb(this.JSC$7871_connected_,this.setupAckReceived_),this.protocolVersion_==2&&$hb(this.JSC$7871_connected_,this.setupAckSent_));Yhb(this.JSC$7871_connected_,this.notifyConnected_,this);this.JSC$7871_connected_.callback(!0);this.JSC$7871_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.sx(hA,gA);hA.prototype.peerProtocolVersion_=null;hA.prototype.initialized_=!1;hA.prototype.transportType=1;var iib={};hA.prototype.sendTimerId_=0;
var lib=function(a){var b=a.event_.data;if(typeof b!=="string")return!1;var c=b.indexOf("|"),d=b.indexOf(":");if(c==-1||d==-1)return!1;var e=b.substring(0,c);c=b.substring(c+1,d);b=b.substring(d+1);if(d=iA[e])return d.xpcDeliver(c,b,a.event_.origin),!0;d=jib(b)[0];for(var g in iA){var k=iA[g];if(hib(k)==1&&!k.isConnected()&&c=="tp"&&(d=="SETUP"||d=="SETUP_NTPV2")&&kib(k,a.event_.origin))return delete iA[k.name],k.name=e,iA[e]=k,k.xpcDeliver(c,b),!0}return!1},mib=function(a){a.protocolVersion_!=2||
a.peerProtocolVersion_!=null&&a.peerProtocolVersion_!=2||a.send("tp","SETUP_NTPV2,"+a.endpointId_);
a.peerProtocolVersion_!=null&&a.peerProtocolVersion_!=1||a.send("tp","SETUP")},nib=function(a,b){if(a.protocolVersion_!=2||a.peerProtocolVersion_!=null&&a.peerProtocolVersion_!=2||b!=2){if(a.peerProtocolVersion_!=null&&a.peerProtocolVersion_!=1||b!=1)return;
a.send("tp","SETUP_ACK")}else a.send("tp","SETUP_ACK_NTPV2");a.setupAckSent_.fired_||a.setupAckSent_.callback(!0)},oib=function(a,b){b>a.peerProtocolVersion_&&(a.peerProtocolVersion_=b);
a.peerProtocolVersion_==1&&(a.setupAckSent_.fired_||a.oneSidedHandshake_||a.setupAckSent_.callback(!0),a.peerEndpointId_=null)};
_.f=hA.prototype;_.f.connect=function(){var a=this.getWindow(),b=_.$a(a),c=iib[b];typeof c!=="number"&&(c=0);c==0&&_.rs(a.postMessage?a:a.document,"message",lib,!1,hA);iib[b]=c+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.f.maybeAttemptToConnect_=function(){var a=hib(this.JSC$7871_channel_)==0;this.oneSidedHandshake_&&a||this.JSC$7871_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),mib(this))};
_.f.send=function(a,b){var c=this.JSC$7871_channel_.peerWindowObject_;c&&(this.send=function(d,e){var g=this,k=this.JSC$7871_channel_.name;this.sendTimerId_=Mz(function(){g.sendTimerId_=0;try{var m=c.postMessage?c:c.document;m.postMessage&&m.postMessage(k+"|"+d+":"+e,g.peerHostname_)}catch(n){}},0)},this.send(a,b))};
_.f.notifyConnected_=function(){var a=this.JSC$7871_channel_,b=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;a.isConnected()||a.connectionDelay_&&a.connectionDelay_.isActive()||(a.state_=2,_.Xf(a.connectionDelay_),b!==void 0?(a.connectionDelay_=new _.xg(a.connectCb_,b),a.connectionDelay_.start()):(a.connectionDelay_=null,a.connectCb_()))};
_.f.disposeInternal=function(){if(this.initialized_){var a=this.getWindow(),b=_.$a(a),c=iib[b];iib[b]=c-1;c==1&&_.Gz(a.postMessage?a:a.document,"message",lib,!1,hA)}this.sendTimerId_&&(_.ja.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.Xf(this.JSC$7871_eventHandler_);delete this.JSC$7871_eventHandler_;_.Xf(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$7871_connected_.cancel();delete this.JSC$7871_connected_;delete this.send;hA.superClass_.disposeInternal.call(this)};
var jib=function(a){a=a.split(",");a[1]=a[1]||null;return a};_.jA=function(a){if(a.getValues&&typeof a.getValues=="function")return a.getValues();if(typeof Map!=="undefined"&&a instanceof Map||typeof Set!=="undefined"&&a instanceof Set)return Array.from(a.values());if(typeof a==="string")return a.split("");if(_.Sa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return _.Cf.getValues(a)};
_.pib=function(a){if(a.getKeys&&typeof a.getKeys=="function")return a.getKeys();if(!a.getValues||typeof a.getValues!="function"){if(typeof Map!=="undefined"&&a instanceof Map)return Array.from(a.keys());if(!(typeof Set!=="undefined"&&a instanceof Set)){if(_.Sa(a)||typeof a==="string"){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return _.Cf.getKeys(a)}}};
_.qib=function(a,b,c){if(a.forEach&&typeof a.forEach=="function")a.forEach(b,c);else if(_.Sa(a)||typeof a==="string")Array.prototype.forEach.call(a,b,c);else for(var d=_.pib(a),e=_.jA(a),g=e.length,k=0;k<g;k++)b.call(c,e[k],d&&d[k],a)};var vJa,qA,sA,yib,sib,rib,uib,tib,xib,vib;
_.Yn=function(a,b){this.JSC$7876_domain_=this.userInfo_=this.scheme_="";this.JSC$7876_port_=null;this.fragment_=this.JSC$7876_path_="";this.JSC$7876_ignoreCase_=!1;var c;a instanceof _.Yn?(this.JSC$7876_ignoreCase_=b!==void 0?b:a.JSC$7876_ignoreCase_,_.kA(this,a.scheme_),this.userInfo_=a.userInfo_,_.lA(this,a.JSC$7876_domain_),_.mA(this,a.JSC$7876_port_),_.nA(this,a.getPath()),_.oA(this,a.JSC$7876_queryData_.clone()),_.pA(this,a.fragment_)):a&&(c=_.Ri(String(a)))?(this.JSC$7876_ignoreCase_=!!b,_.kA(this,
c[1]||"",!0),this.userInfo_=qA(c[2]||""),_.lA(this,c[3]||"",!0),_.mA(this,c[4]),_.nA(this,c[5]||"",!0),_.oA(this,c[6]||"",!0),_.pA(this,c[7]||"",!0)):(this.JSC$7876_ignoreCase_=!!b,this.JSC$7876_queryData_=new _.rA(null,this.JSC$7876_ignoreCase_))};
_.Yn.prototype.toString=function(){var a=[],b=this.scheme_;b&&a.push(sA(b,rib,!0),":");var c=this.JSC$7876_domain_;if(c||b=="file")a.push("//"),(b=this.userInfo_)&&a.push(sA(b,rib,!0),"@"),a.push(sib(_.Li(c))),c=this.JSC$7876_port_,c!=null&&a.push(":",String(c));if(c=this.getPath())this.JSC$7876_domain_&&c.charAt(0)!="/"&&a.push("/"),a.push(sA(c,c.charAt(0)=="/"?tib:uib,!0));(c=this.JSC$7876_queryData_.toString())&&a.push("?",c);(c=this.fragment_)&&a.push("#",sA(c,vib));return a.join("")};
_.Yn.prototype.resolve=function(a){var b=this.clone(),c=!!a.scheme_;c?_.kA(b,a.scheme_):c=!!a.userInfo_;c?b.userInfo_=a.userInfo_:c=!!a.JSC$7876_domain_;c?_.lA(b,a.JSC$7876_domain_):c=a.JSC$7876_port_!=null;var d=a.getPath();if(c)_.mA(b,a.JSC$7876_port_);else if(c=!!a.JSC$7876_path_){if(d.charAt(0)!="/")if(this.JSC$7876_domain_&&!this.JSC$7876_path_)d="/"+d;else{var e=b.getPath().lastIndexOf("/");e!=-1&&(d=b.getPath().slice(0,e+1)+d)}e=d;if(e==".."||e==".")d="";else if(_.ra(e,"./")||_.ra(e,"/.")){d=
_.na(e,"/");e=e.split("/");for(var g=[],k=0;k<e.length;){var m=e[k++];m=="."?d&&k==e.length&&g.push(""):m==".."?((g.length>1||g.length==1&&g[0]!="")&&g.pop(),d&&k==e.length&&g.push("")):(g.push(m),d=!0)}d=g.join("/")}else d=e}c?_.nA(b,d):c=a.JSC$7876_queryData_.toString()!=="";c?_.oA(b,a.JSC$7876_queryData_.clone()):c=!!a.fragment_;c&&_.pA(b,a.fragment_);return b};
_.Yn.prototype.clone=function(){return new _.Yn(this)};
_.kA=function(a,b,c){a.scheme_=c?qA(b,!0):b;a.scheme_&&(a.scheme_=a.scheme_.replace(/:$/,""));return a};
_.lA=function(a,b,c){a.JSC$7876_domain_=c?qA(b,!0):b;return a};
_.mA=function(a,b){if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("Wa`"+b);a.JSC$7876_port_=b}else a.JSC$7876_port_=null;return a};
_.Yn.prototype.getPath=function(){return this.JSC$7876_path_};
_.nA=function(a,b,c){a.JSC$7876_path_=c?qA(b,!0):b;return a};
_.oA=function(a,b,c){b instanceof _.rA?(a.JSC$7876_queryData_=b,wib(a.JSC$7876_queryData_,a.JSC$7876_ignoreCase_)):(c||(b=sA(b,xib)),a.JSC$7876_queryData_=new _.rA(b,a.JSC$7876_ignoreCase_));return a};
_.Og=function(a,b,c){a.JSC$7876_queryData_.set(b,c);return a};
_.Ng=function(a,b){return a.JSC$7876_queryData_.get(b)};
_.pA=function(a,b,c){a.fragment_=c?qA(b):b;return a};
_.tA=function(a){_.Og(a,"zx",Lg());return a};
_.Mg=function(a,b){return a instanceof _.Yn?a.clone():new _.Yn(a,b)};
vJa=function(a,b){a instanceof _.Yn||(a=_.Mg(a));b instanceof _.Yn||(b=_.Mg(b));return a.resolve(b)};
qA=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
sA=function(a,b,c){return typeof a==="string"?(a=encodeURI(a).replace(b,yib),c&&(a=sib(a)),a):null};
yib=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
sib=function(a){return a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")};
rib=/[#\/\?@]/g;uib=/[#\?:]/g;tib=/[#\?]/g;xib=/[#\?@]/g;vib=/#/g;_.rA=function(a,b){this.count_=this.keyMap_=null;this.encodedQuery_=a||null;this.JSC$7877_ignoreCase_=!!b};
_.uA=function(a){a.keyMap_||(a.keyMap_=new Map,a.count_=0,a.encodedQuery_&&gcb(a.encodedQuery_,function(b,c){a.add(Wi(b),c)}))};
_.f=_.rA.prototype;_.f.getCount=function(){_.uA(this);return this.count_};
_.f.add=function(a,b){_.uA(this);this.encodedQuery_=null;a=vA(this,a);var c=this.keyMap_.get(a);c||this.keyMap_.set(a,c=[]);c.push(b);this.count_+=1;return this};
_.f.remove=function(a){_.uA(this);a=vA(this,a);return this.keyMap_.has(a)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(a).length,this.keyMap_.delete(a)):!1};
_.f.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.f.isEmpty=function(){_.uA(this);return this.count_==0};
_.f.containsKey=function(a){_.uA(this);a=vA(this,a);return this.keyMap_.has(a)};
_.f.containsValue=function(a){var b=this.getValues();return _.Oa(b,a)};
_.f.forEach=function(a,b){_.uA(this);this.keyMap_.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
_.f.getKeys=function(){_.uA(this);for(var a=Array.from(this.keyMap_.values()),b=Array.from(this.keyMap_.keys()),c=[],d=0;d<b.length;d++)for(var e=a[d],g=0;g<e.length;g++)c.push(b[d]);return c};
_.f.getValues=function(a){_.uA(this);var b=[];if(typeof a==="string")this.containsKey(a)&&(b=b.concat(this.keyMap_.get(vA(this,a))));else{a=Array.from(this.keyMap_.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};
_.f.set=function(a,b){_.uA(this);this.encodedQuery_=null;a=vA(this,a);this.containsKey(a)&&(this.count_-=this.keyMap_.get(a).length);this.keyMap_.set(a,[b]);this.count_+=1;return this};
_.f.get=function(a,b){if(!a)return b;a=this.getValues(a);return a.length>0?String(a[0]):b};
_.zib=function(a,b,c){a.remove(b);c.length>0&&(a.encodedQuery_=null,a.keyMap_.set(vA(a,b),_.Ra(c)),a.count_+=c.length)};
_.rA.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var a=[],b=Array.from(this.keyMap_.keys()),c=0;c<b.length;c++){var d=b[c],e=_.Li(d);d=this.getValues(d);for(var g=0;g<d.length;g++){var k=e;d[g]!==""&&(k+="="+_.Li(d[g]));a.push(k)}}return this.encodedQuery_=a.join("&")};
_.rA.prototype.clone=function(){var a=new _.rA;a.encodedQuery_=this.encodedQuery_;this.keyMap_&&(a.keyMap_=new Map(this.keyMap_),a.count_=this.count_);return a};
var vA=function(a,b){b=String(b);a.JSC$7877_ignoreCase_&&(b=b.toLowerCase());return b},wib=function(a,b){b&&!a.JSC$7877_ignoreCase_&&(_.uA(a),a.encodedQuery_=null,a.keyMap_.forEach(function(c,d){var e=d.toLowerCase();
d!=e&&(this.remove(d),_.zib(this,e,c))},a));
a.JSC$7877_ignoreCase_=b};
_.rA.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)_.qib(arguments[b],function(c,d){this.add(d,c)},this)};var wA=function(a,b){cA.call(this);for(var c=0,d;d=eib[c];c++)if(d in a&&!/^https?:\/\//.test(a[d]))throw Error("Ya`"+a[d]+"`"+d);this.cfg_=a;this.name=this.cfg_.cn||gib();this.JSC$7872_domHelper_=b||uf();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.an(this);a.lpu=a.lpu||ecb(this.JSC$7872_domHelper_.getWindow().location.href)+"/robots.txt";a.ppu=a.ppu||ecb(a.pu||"")+"/robots.txt";iA[this.name]=this;qfb(window,"unload",Aib)||ns(window,"unload",Aib)};
_.sx(wA,cA);var Bib=RegExp("^%*tp$"),Cib=RegExp("^%+tp$");_.f=wA.prototype;_.f.connectionDelay_=null;_.f.peerWindowDeferred_=null;_.f.transport_=null;_.f.state_=1;_.f.isConnected=function(){return this.state_==2};
_.f.peerWindowObject_=null;_.f.iframeElement_=null;_.f.connect=function(a){this.connectCb_=a||_.Gy;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?Yhb(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.f.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$7872_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var a=this.iframeElement_.contentWindow;a||(a=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=a}if(!this.peerWindowObject_){if(window==window.top)throw Error("$a");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$7872_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new hA(this,this.cfg_.ph,this.JSC$7872_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Za");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.f.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.Xf(this.transport_);this.connectCb_=this.transport_=null;_.Xf(this.connectionDelay_);this.connectionDelay_=null};
_.f.send=function(a,b){if(this.isConnected()){try{var c=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(e){c=!1}if(c){_.Za(b)&&(b=(0,_.Oz)(b));c=this.transport_;var d=c.send;Bib.test(a)&&(a="%"+a);a=a.replace(/[%:|]/g,encodeURIComponent);d.call(c,a,b)}else this.close()}};
_.f.xpcDeliver=function(a,b,c){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.wg)(this.xpcDeliver,this,a,b,c));else if(kib(this,c)&&!this.isDisposed()&&this.state_!=3)if(a&&a!="tp")this.isConnected()&&(a=a.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),a=Cib.test(a)?a.substring(1):a,a=this.getService(a,b))&&(b=Thb(b,a.objectPayload),b!=null&&a.callback(b));else switch(a=this.transport_,c=jib(b),b=c[1],c[0]){case "SETUP_ACK":oib(a,1);a.setupAckReceived_.fired_||a.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":a.protocolVersion_==2&&(oib(a,2),a.setupAckReceived_.fired_||a.setupAckReceived_.callback(!0));break;case "SETUP":oib(a,1);nib(a,1);break;case "SETUP_NTPV2":a.protocolVersion_==2&&(c=a.peerProtocolVersion_,oib(a,2),nib(a,2),c!=1&&a.peerEndpointId_==null||a.peerEndpointId_==b||mib(a),a.peerEndpointId_=b)}};
var hib=function(a){var b=a.cfg_.role;return typeof b==="number"?b:window.parent==a.peerWindowObject_?1:0},kib=function(a,b){var c=a.cfg_.ph;
return _.pa(b==null?"":String(b))||_.pa(c==null?"":String(c))||b==a.cfg_.ph};
wA.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete iA[this.name];_.Xf(this.peerLoadHandler_);delete this.peerLoadHandler_;wA.superClass_.disposeInternal.call(this)};
var Aib=function(){for(var a in iA)_.Xf(iA[a])},iA={};var Eib=function(a,b){this.JSC$7886_win=a;this.allowAdsHttpEndpoint=b;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$7886_domHelper=uf(a);this.scrollManager=new Qhb(a);this.accessibilityManager=new Lhb(a);Dib(this)},Dib=function(a){var b=function(){a.allowAdsPopup&&a.allowAdsPopup.style.setProperty("display","none","important");
a.wallElement.style.setProperty("display","","important");Mhb(a.accessibilityManager);Phb(a.accessibilityManager,a.wallElement.querySelector(".fc-dialog-container"),!1,!1,a.wallElement.querySelector(".fc-button-whitelist"));var e=a.scrollManager;e.JSC$7844_domHelper.JSC$7218_document_.body.style.overflow=e.originalBodyOverflow};
a.allowAdsPopup=a.JSC$7886_domHelper.JSC$7220_createDom("DIV",{"class":"fc-whitelist-root"});a.allowAdsPopup.style.setProperty("display","none","important");a.JSC$7886_domHelper.appendChild(a.JSC$7886_domHelper.JSC$7218_document_.body,a.allowAdsPopup);var c=a.JSC$7886_domHelper.JSC$7220_createDom("DIV",{"class":"fc-dialog-overlay"});a.JSC$7886_domHelper.appendChild(a.allowAdsPopup,c);var d=a.JSC$7886_domHelper.JSC$7220_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:b});a.JSC$7886_domHelper.appendChild(a.allowAdsPopup,
d);c=a.JSC$7886_domHelper.JSC$7220_createDom("IFRAME");c.className="fc-whitelist-dialog";c.frameBorder="0";c.id="fc-whitelist-iframe";c.tabIndex="0";_.Sd(c,a.allowAdsHttpEndpoint);a.JSC$7886_domHelper.appendChild(d,c);d={};d.pu=_.zd(a.allowAdsHttpEndpoint).toString();d.tp=1;d.cn="fc-whitelist-channel";d.ifrid=c.id;d.osh=!0;a.allowAdsCrossPageChannel=new wA(d);a.allowAdsCrossPageChannel.registerService("close",b);a.allowAdsCrossPageChannel.registerService("refresh",function(){a.JSC$7886_win.location.reload()});
a.allowAdsCrossPageChannel.registerService("resize",function(e){if(e){var g=a.allowAdsPopup.querySelector(".fc-whitelist-dialog");e.width&&g.style.setProperty("width",e.width,"important");e.height&&g.style.setProperty("height",e.height,"important")}},!0);
a.allowAdsCrossPageChannel.connect()};
Eib.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$7886_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var xA=window,yA=document,Fib=xA.location,Gib=function(){},Hib=/\[native code\]/,zA=function(a,b,c){return a[b]=a[b]||c},Iib=function(a){a=a.sort();
for(var b=[],c=void 0,d=0;d<a.length;d++){var e=a[d];e!=c&&b.push(e);c=e}return b},AA=function(){var a;
if((a=Object.create)&&Hib.test(a))a=a(null);else{a={};for(var b in a)a[b]=void 0}return a},BA=zA(xA,"gapi",{});var CA={};CA=zA(xA,"___jsl",AA());zA(CA,"I",0);zA(CA,"hel",10);var Jib=function(){var a=Fib.href;if(CA.dpo)var b=CA.h;else{b=CA.h;var c=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),d=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(a=a&&(c.exec(a)||d.exec(a)))try{b=decodeURIComponent(a[2])}catch(e){}}return b},Kib=function(a){var b=zA(CA,"PQ",[]);
CA.PQ=[];var c=b.length;if(c===0)a();else for(var d=0,e=function(){++d===c&&a()},g=0;g<c;g++)b[g](e)},Lib=function(a){return zA(zA(CA,"H",AA()),a,AA())};var DA=function(a){this.JSC$7888_obj_=a};
DA.prototype.value=function(){return this.JSC$7888_obj_};
DA.prototype.getWidth=function(){return this.JSC$7888_obj_.width};
DA.prototype.getHeight=function(){return this.JSC$7888_obj_.height};
DA.prototype.getStyle=function(){return this.JSC$7888_obj_.style};var Mib=function(a){this.JSC$7891_obj_=a||{}};
_.f=Mib.prototype;_.f.value=function(){return this.JSC$7891_obj_};
_.f.setUrl=function(a){this.JSC$7891_obj_.url=a;return this};
_.f.getUrl=function(){return this.JSC$7891_obj_.url};
_.f.getStyle=function(){return this.JSC$7891_obj_.style};
_.f.getId=function(){return this.JSC$7891_obj_.id};
_.f.getContext=function(){return this.JSC$7891_obj_.context};
var Nib=function(a){a.JSC$7891_obj_.attributes=a.JSC$7891_obj_.attributes||{};return new DA(a.JSC$7891_obj_.attributes)};var Oib=function(){Mib.apply(this,arguments)};
_.z(Oib,Mib);var Pib=zA(CA,"perf",AA());zA(Pib,"g",AA());var Qib=zA(Pib,"i",AA());zA(Pib,"r",[]);AA();AA();var Sib=function(a,b,c){b&&b.length>0&&(b=Rib(b),c&&c.length>0&&(b+="___"+Rib(c)),b.length>28&&(b=b.substr(0,28)+(b.length-28)),c=b,b=zA(Qib,"_p",AA()),zA(b,c,AA())[a]=(new Date).getTime(),b=Pib.r,typeof b==="function"?b(a,"_p",c):b.push([a,"_p",c]))},Rib=function(a){return a.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var Tib=AA(),Uib=[],EA=function(a){throw Error("ab`"+a);};
Uib.push(["jsl",function(a){for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b];typeof c=="object"?CA[b]=zA(CA,b,[]).concat(c):zA(CA,b,c)}if(b=a.u)a=zA(CA,"us",[]),a.push(b),(b=/^https:(.*)$/.exec(b))&&a.push("http:"+b[1])}]);
var Vib=/^(\/[a-zA-Z0-9_\-]+)+$/,Wib=[/\/amp\//,/\/amp$/,/^\/amp$/],Xib=/^[a-zA-Z0-9\-_\.,!]+$/,Yib=/^gapi\.loaded_[0-9]+$/,Zib=/^[a-zA-Z0-9,._-]+$/,cjb=function(a,b,c,d,e){var g=a.split(";"),k=g.shift(),m=Tib[k],n=null;m?n=m(g,b,c,d):EA("no hint processor for: "+k);n||EA("failed to generate load url");b=n;c=b.match($ib);(d=b.match(ajb))&&d.length===1&&bjb.test(b)&&c&&c.length===1||EA("failed sanity: "+a);try{a="?";if(e&&e.length>0){zaa(e);var r=e.join(",");n=n+"?le="+r;a="&"}if(CA.rol){var t=CA.ol;
t&&t.length&&(n=""+n+a+"ol="+t.length)}}catch(u){}return n},fjb=function(a,b,c,d){a=djb(a);
Yib.test(c)||EA("invalid_callback");b=ejb(b);d=d&&d.length?ejb(d):null;var e=function(g){return encodeURIComponent(g).replace(/%2C/g,",")};
return[encodeURIComponent(a.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",e(a.version),"/m=",e(b),d?"/exm="+e(d):"","/rt=j/sv=1/d=1/ed=1",a.activeMods?"/am="+e(a.activeMods):"",a.resourceSig?"/rs="+e(a.resourceSig):"",a.zcms?"/t="+e(a.zcms):"","/cb=",e(c)].join("")},djb=function(a){a.charAt(0)!=="/"&&EA("relative path");
for(var b=a.substring(1).split("/"),c=[];b.length;){a=b.shift();if(!a.length||a.indexOf(".")==0)EA("empty/relative directory");else if(a.indexOf("=")>0){b.unshift(a);break}c.push(a)}a={};for(var d=0,e=b.length;d<e;++d){var g=b[d].split("="),k=decodeURIComponent(g[0]),m=decodeURIComponent(g[1]);g.length==2&&k&&m&&(a[k]=a[k]||m)}b="/"+c.join("/");Vib.test(b)||EA("invalid_prefix");c=0;for(d=Wib.length;c<d;++c)Wib[c].test(b)&&EA("invalid_prefix");c=gjb(a,"k",!0);d=gjb(a,"am");e=gjb(a,"rs");a=gjb(a,"t");
return{pathPrefix:b,version:c,activeMods:d,resourceSig:e,zcms:a}},ejb=function(a){for(var b=[],c=0,d=a.length;c<d;++c){var e=a[c].replace(/\./g,"_").replace(/-/g,"_");
Zib.test(e)&&b.push(e)}return b.join(",")},gjb=function(a,b,c){a=a[b];
!a&&c&&EA("missing: "+b);if(a){if(Xib.test(a))return a;EA("invalid: "+b)}return null},bjb=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,ajb=/\/cb=/g,$ib=/\/\//g;
Tib.m=function(a,b,c,d){(a=a[0])||EA("missing_hint");return"https://apis.google.com"+fjb(a,b,c,d)};
var hjb=decodeURI("%73cript"),ijb=/^[-+_0-9\/A-Za-z]+={0,2}$/,jjb=function(a,b){for(var c=[],d=0;d<a.length;++d){var e=a[d],g;if(g=e){a:{for(g=0;g<b.length;g++)if(b[g]===e)break a;g=-1}g=g<0}g&&c.push(e)}return c},kjb=function(){var a=CA.nonce;
return a!==void 0?a&&a===String(a)&&a.match(ijb)?a:CA.nonce=null:yA.querySelector?(a=yA.querySelector("script[nonce]"))?(a=a.nonce||a.getAttribute("nonce")||"",a&&a===String(a)&&a.match(ijb)?CA.nonce=a:CA.nonce=null):null:null},njb=function(a){if(yA.readyState!="loading")ljb(a);
else{var b=kjb(),c="";b!==null&&(c=' nonce="'+b+'"');a="<"+hjb+' src="'+encodeURI(a)+'"'+c+"></"+hjb+">";yA.write(mjb?mjb.createHTML(a):a)}},ljb=function(a){var b=yA.createElement(hjb);
b.setAttribute("src",mjb?mjb.createScriptURL(a):a);a=kjb();a!==null&&b.setAttribute("nonce",a);b.async="true";(a=yA.getElementsByTagName(hjb)[0])?a.parentNode.insertBefore(b,a):(yA.head||yA.body||yA.documentElement).appendChild(b)},pjb=function(a,b,c){ojb(function(){var d=b===Jib()?zA(BA,"_",AA()):AA();
d=zA(Lib(b),"_",d);a(d)},c)},cCa=function(a,b){var c=b||{};
typeof b=="function"&&(c={},c.callback=b);var d=(b=c)&&b._c;if(d)for(var e=0;e<Uib.length;e++){var g=Uib[e][0],k=Uib[e][1];k&&Object.prototype.hasOwnProperty.call(d,g)&&k(d[g],a,b)}b=[];a?b=a.split(":"):c.features&&(b=c.features);if(!(a=c.h)&&(a=Jib(),!a))throw Error("bb");qjb(b||[],c,a)},qjb=function(a,b,c){a=Iib(a)||[];
var d=b.callback,e=b.config,g=b.timeout,k=b.ontimeout,m=b.onerror,n=void 0;typeof m=="function"&&(n=m);var r=null,t=!1;if(g&&!k||!g&&k)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";m=zA(Lib(c),"r",[]).sort();var u=zA(Lib(c),"L",[]).sort(),x=CA.le||[],A=[].concat(m),C=function(da,V){if(t)return 0;xA.clearTimeout(r);u.push.apply(u,F);var fa=((BA||{}).config||{}).update;fa?fa(e):e&&zA(CA,"cu",[]).push(e);if(V){Sib("me0",da,A);try{pjb(V,c,n)}finally{Sib("me1",da,
A)}}return 1};
g>0&&(r=xA.setTimeout(function(){t=!0;k()},g));
var F=jjb(a,u);if(F.length){F=jjb(a,m);var J=zA(CA,"CP",[]),I=J.length;J[I]=function(da){if(!da)return 0;Sib("ml1",F,A);var V=function(aa){J[I]=null;C(F,da)&&Kib(function(){d&&d();aa()})},fa=function(){var aa=J[I+1];
aa&&aa()};
I>0&&J[I-1]?J[I]=function(){V(fa)}:V(fa)};
if(F.length){var R="loaded_"+CA.I++;BA[R]=function(da){J[I](da);BA[R]=null};
a=cjb(c,F,"gapi."+R,m,x);m.push.apply(m,F);Sib("ml0",F,A);b.sync||xA.___gapisync?njb(a):ljb(a)}else J[I](Gib)}else C(F)&&d&&d()},rjb;
var sjb=null,tjb=_.ja.trustedTypes;if(tjb&&tjb.createPolicy){try{sjb=tjb.createPolicy("goog#gapi",{createHTML:Q8a,createScript:Q8a,createScriptURL:Q8a})}catch(a){_.ja.console&&_.ja.console.error(a.message)}rjb=sjb}else rjb=sjb;var mjb=rjb,ojb=function(a,b){if(CA.hee&&CA.hel>0)try{return a()}catch(c){b&&b(c),CA.hel--,cCa("debug_error",function(){try{window.___jsl.hefn(c)}catch(d){throw c;}})}else try{return a()}catch(c){throw b&&b(c),c;
}},ujb=BA.load;
ujb&&zA(CA,"ol",[]).push(ujb);BA.load=function(a,b){return ojb(function(){return cCa(a,b)})};var zja;var vjb=function(a,b){this.serviceId_=a;this.moduleId_=b||null};
vjb.prototype.toString=function(){return this.serviceId_};
vjb.prototype.getModuleId=function(){return this.moduleId_};var Dna=new vjb("MpJwZc","MpJwZc");var Fna=new _.Bz("a"),Ena=function(a,b,c){_.Cz.call(this,a,b);this.node=b;this.kind=c};
_.z(Ena,_.Cz);var wjb=function(a){this.segments=a};
wjb.prototype.toString=function(){return this.segments.join(".")};
wjb.prototype.getVersion=function(){return this.segments[0]};
wjb.prototype.getExtension=function(){return this.segments[1]};var xjb=function(){this.JSC$7907_keys_={};this.urlPrefix_="";this.JSC$7907_queryData_={}};
xjb.prototype.toString=function(){if(this.urlPrefix_.endsWith("_/r/"))var a=this.urlPrefix_+FA(this,"sc");else{a=this.urlPrefix_+yjb(this);var b=_.ij(this.JSC$7907_queryData_),c="";b!=""&&(c="?"+b);a+=c}return a};
var zjb=function(a){a=FA(a,"md");return!!a&&a!=="0"},yjb=function(a){var b=[],c=(0,_.wg)(function(d){this.JSC$7907_keys_[d]!==void 0&&b.push(d+"="+this.JSC$7907_keys_[d])},a);
zjb(a)?(c("md"),c("k"),c("ck"),c("am"),c("rs"),c("gssmodulesetproto"),c("slk"),c("dti")):(c("sdch"),c("k"),c("ck"),c("am"),c("rt"),"d"in a.JSC$7907_keys_||GA(a,"d","0"),c("d"),c("exm"),c("excm"),(a.JSC$7907_keys_.excm||a.JSC$7907_keys_.exm)&&b.push("ed=1"),c("im"),c("dg"),c("sm"),FA(a,"br")!="1"&&FA(a,"br")!="0"||c("br"),c("br-d"),FA(a,"rb")=="1"&&c("rb"),FA(a,"zs")!=="0"&&c("zs"),Ajb(a)!==""&&c("wt"),c("gssmodulesetproto"),c("ujg"),c("sp"),c("rs"),c("cb"),c("ee"),c("slk"),c("dti"),c("m"));return b.join("/")},
FA=function(a,b){return a.JSC$7907_keys_[b]?a.JSC$7907_keys_[b]:null},GA=function(a,b,c){c?a.JSC$7907_keys_[b]=c:delete a.JSC$7907_keys_[b]},Bjb=function(a,b){a.urlPrefix_=b},Cjb=function(a,b){b&&b.length>0?(b.sort(),GA(a,"exm",b.join(","))):GA(a,"exm",null)},Djb=function(a,b){b&&b.length>0?(b.sort(),GA(a,"excm",b.join(","))):GA(a,"excm",null)},Ejb=function(a){return(a=FA(a,"m"))?a.split(","):[]},Ajb=function(a){switch(FA(a,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},Fjb=function(a,b){var c=Object.keys(b).filter(function(d){return!!Object.keys(b[d]).length}).map(function(d){var e=Object.keys(b[d]);
e.length>1&&e.sort();return d+":"+e.join(",")});
c.sort();GA(a,"ee",c.join(";"))},oka=function(a){var b=FA(a,"ee");
if(!b)return{};a={};b=_.h(b.split(";"));for(var c=b.next();!c.done;c=b.next()){var d=_.h(c.value.split(":"));c=d.next().value;d=d.next().value;a[c]={};d=_.h(d.split(","));for(var e=d.next();!e.done;e=d.next())a[c][e.value]=!0}return a},Gjb=function(a){delete a.JSC$7907_keys_.m;
delete a.JSC$7907_keys_.exm;delete a.JSC$7907_keys_.ed};
xjb.prototype.clone=function(){return $g(this.toString())};
var $g=function(a,b){b=b===void 0?!0:b;var c=Hjb(a),d=new xjb,e=_.Ri(c)[5];_.Cf.forEach(Ijb,function(k){var m=e.match("/"+k+"=([^/]+)");m&&GA(d,k,m[1])});
var g="";g=a.indexOf("_/ss/")!=-1?"_/ss/":a.indexOf("_/r/")!=-1?"_/r/":"_/js/";Bjb(d,a.substr(0,a.indexOf(g)+g.length));if(d.urlPrefix_.endsWith("_/r/"))return a=Jjb(a),GA(d,"sc",a.toString()),d;if(!b)return d;(a=_.Ri(c)[6]||null)&&gcb(a,function(k,m){d.JSC$7907_queryData_[k]=m});
return d},lka=function(a){var b=_.gj(Hjb(a)),c;
b===null?c=!1:c=RegExp("/_/r/","g").test(a)&&Jjb(a)?!0:RegExp("(/_/js/)|(/_/ss/)","g").test(b)?/\/k=/.test(b):!1;return c},Jjb=function(a){var b=a.lastIndexOf("_/r/")+4;
a=a.slice(b);if(a===null)return null;try{var c=a.split(".");var d=c.length!==2?null:new wjb(c);if(d===null)throw new TypeError("db`"+a);return d}catch(e){return null}},Hjb=function(a){return a.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?a.substr(65):a},Ijb={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",GSS_MODULE_SET_PROTO:"gssmodulesetproto",
USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",INCLUDE_COMPILE_HINTS_COMMENT:"ichc",STATIC_CONTENT_ROW_KEY:"sc",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},Kjb=RegExp("^loaded_(g|h)?[_\\d]+$");_.HA=function(a){this.JSC$7919_id_=a;this.opts={}};
_.HA.prototype.JSC$7921_setLabel=function(a){this.label_=a||void 0;return this};
_.HA.prototype.addUploadMetadata=function(a,b){var c=this.opts.data||{};c[a]=b;this.opts.data=c;return this};
var Ljb=function(a){var b=_.Cf.filter(a.opts,function(c){return c!==null});
b=_.Cf.isEmpty(b)?null:b;a=[a.JSC$7919_id_,a.label_,b];b=uaa(a);return a=a.slice(0,b+1)};
_.HA.prototype.toString=function(){var a=Ljb(this);return"("+_.Df(a,function(b){return JSON.stringify(b)}).join(",")+")"};
_.HA.prototype.getId=function(){return this.JSC$7919_id_};
_.HA.prototype.getOptions=function(){return _.Cf.clone(this.opts)};var IA=function(){_.HA.call(this,"image-search")};
_.z(IA,_.HA);IA.prototype.setSize=function(a){this.opts.imgsz=a;return this};
IA.prototype.JSC$7921_setLabel=function(a){_.HA.prototype.JSC$7921_setLabel.call(this,a);return this};
IA.prototype.addUploadMetadata=function(a,b){_.HA.prototype.addUploadMetadata.call(this,a,b);return this};var JA=function(){_.HA.call(this,"maps")};
_.z(JA,_.HA);JA.prototype.setZoom=function(a){this.opts.zoom=a;return this};
JA.prototype.JSC$7921_setLabel=function(a){_.HA.prototype.JSC$7921_setLabel.call(this,a);return this};
JA.prototype.addUploadMetadata=function(a,b){_.HA.prototype.addUploadMetadata.call(this,a,b);return this};_.KA=function(){_.HA.call(this,"photos")};
_.z(_.KA,_.HA);_.KA.prototype.JSC$7921_setLabel=function(a){_.HA.prototype.JSC$7921_setLabel.call(this,a);return this};
_.KA.prototype.addUploadMetadata=function(a,b){_.HA.prototype.addUploadMetadata.call(this,a,b);return this};var LA=function(){_.HA.call(this,"url")};
_.z(LA,_.HA);var Mjb=function(){var a=new LA;a.opts.type="video";a.opts.site="youtube.com";return a};
LA.prototype.JSC$7921_setLabel=function(a){_.HA.prototype.JSC$7921_setLabel.call(this,a);return this};
LA.prototype.addUploadMetadata=function(a,b){_.HA.prototype.addUploadMetadata.call(this,a,b);return this};var MA=function(){_.HA.call(this,"video-search")};
_.z(MA,_.HA);var Njb=function(){var a=new MA;a.opts.site="youtube.com";return a};
MA.prototype.JSC$7921_setLabel=function(a){_.HA.prototype.JSC$7921_setLabel.call(this,a);return this};
MA.prototype.addUploadMetadata=function(a,b){_.HA.prototype.addUploadMetadata.call(this,a,b);return this};var Ojb=function(){_.HA.call(this,"web")};
_.z(Ojb,_.HA);Ojb.prototype.JSC$7921_setLabel=function(a){_.HA.prototype.JSC$7921_setLabel.call(this,a);return this};
Ojb.prototype.addUploadMetadata=function(a,b){_.HA.prototype.addUploadMetadata.call(this,a,b);return this};var NA=function(){this.items_=[];this.opts={}},Pjb=function(a){switch(a){case "image-search":return new IA;
case "maps":return new JA;case "photos":return new _.KA;case "url":return new LA;case "video-search":return new MA;case "web":return new Ojb}return new _.HA(a)};
NA.prototype.addView=function(a){this.items_.push(typeof a==="string"?Pjb(a):a);return this};
var Qjb=function(a){return"("+_.Df(a.items_,function(b){return b.toString()}).join(",")+")"};
NA.prototype.toString=function(){return Qjb(this)};
NA.prototype.getViews=function(a,b){b=b===void 0?[]:b;for(var c=this.items_,d=0;d<c.length;d++){var e=c[d];e instanceof NA?e.getViews(a,b):e.getId()==a&&b.push(e)}return b};
NA.prototype.getOptions=function(){return _.Cf.clone(this.opts)};var Gg=function(a){this.basePickerUrl_=a||"https://docs.google.com/picker";this.nav_=new NA};
Gg.prototype.nav_=null;Gg.prototype.addView=function(a){this.nav_.addView(a);return this};
Gg.prototype.getBaseUrl=function(){return this.basePickerUrl_};
Gg.prototype.getViews=function(a){return this.nav_.getViews(a)};
_.Rjb=function(a,b){a.callback_=b;return a};var Sjb=new Map;Sjb.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");Sjb.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");Sjb.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var Tjb=new Set;Tjb.add("application/vnd.google-apps.kix");Tjb.add("application/vnd.google-apps.ritz");Tjb.add("application/vnd.google-apps.punch");var ekb=function(a,b,c){var d=c&&_.Tx(c,1);c=Ujb(c);var e=a[0].getId();switch(_.Ux(e,2)){case 13:return Vjb(a,b,d,c);case 3:return Wjb(a,b,d,c);case 10:return Xjb(a,b,d,c);case 27:return Xjb(a,b,d,c);case 12:return Yjb(a,b);case 2:return Zjb(a,b,d,c);case 5:return $jb(a,b,d,c);case 9:return akb(a,b,d,c);case 6:return bkb(a,b,d,c);case 25:return ckb(a,b,d,c);case 1:return _.Fx(a[0],Odb,26)?dkb(a,b,d,c):Xjb(a,b,d,c);default:return{}}},bkb=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),
serviceId:"youtube",name:e.getName(),description:_.Tx(e,3),type:OA(e),lastEditedUtc:_.Ndb(_.Xj(e,_.bw,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:e.getUrl(),embedUrl:_.Tx(e,13),thumbnails:PA(lz(e))}});
return{action:b,docs:a,viewToken:d,view:c||"youtube",v2Translated:!0}},Zjb=function(a,b,c,d){var e=a.map(function(g){var k=g.getId().getId(),m=_.Tx(g,7),n=g.getName(),r=OA(g),t=_.Ndb(_.Xj(g,_.bw,12)).getTime(),u=g.getUrl(),x=Number(d$a(g)),A=_.Tx(g,3),C=_.Tx(g,11),F=PA(lz(g));
var J=_.Xj(g,mz,21);J=_.Qx(J,1);var I=_.Xj(g,mz,21);I=_.Tx(I,10);var R=_.Tx(g,13);var da=_.Xj(g,mz,21);da=_.Qx(da,9);var V=_.Xj(g,mz,21);V=_.Tx(V,11);k={id:k,serviceId:"docs",mimeType:m,name:n,type:r,lastEditedUtc:t,url:u,sizeBytes:x,description:A,iconUrl:C,thumbnails:F,isShared:J,downloadUrl:I,embedUrl:R,copyable:da,resourceKey:V};m=_.Xj(g,mz,21);_.Qx(m,12)&&(k.uploadState="success",k.isNew=!0);m=_.Xj(g,mz,21);_.Fx(m,iz,3)&&(g=_.Xj(g,mz,21),g=_.Xj(g,iz,3),_.Fx(g,gz,2)&&(m=Eg(g.getDuration().getSeconds()),
n=g.getDuration(),n=_.bg(n,2),k.duration=m+n/1E9),k.aspectRatio=g.getAspectRatio());return k});
return{action:b,docs:e,viewToken:d,view:c||"all",extraUserInputs:fkb(a),v2Translated:!0}},$jb=function(a,b,c,d){a=a.map(function(e){var g=_.Xj(e,Xdb,15);
g=_.Xj(g,hz,1);ml(e,10,hz,g);return{id:e.getId().getId(),serviceId:"web",mimeType:_.Tx(e,7),name:e.getName(),type:OA(e),url:e.getUrl(),description:_.Tx(e,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:PA(lz(e))}});
return{action:b,docs:a,viewToken:d,view:c||"image-search",v2Translated:!0}},akb=function(a,b,c,d){a=a.map(function(e){return{serviceId:"url",
name:lz(e)[0].getUrl().split("/").pop(),type:OA(e),mimeType:_.Tx(e,7),url:e.getUrl(),description:_.Tx(e,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:PA(lz(e))}});
return{action:b,docs:a,viewToken:d,view:c||"url",v2Translated:!0}},dkb=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),
serviceId:"picasa",name:e.getName(),type:OA(e),description:_.Tx(e,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:PA(lz(e))}});
return{action:b,docs:a,viewToken:d,view:c||"webcam",v2Translated:!0}},Xjb=function(a,b,c,d){return{action:b,
docs:a.map(gkb),viewToken:d,view:hkb(c||"upload",a),extraUserInputs:fkb(a),v2Translated:!0}},hkb=function(a,b){return b.some(function(c){var d;
return((d=_.Xj(c,jz,30))==null?void 0:_.Ux(d,3))===9})?a+"/gmailphotos":a},Wjb=function(a,b,c,d){var e=a.map(function(g){var k={id:g.getId().getId(),
serviceId:"picasa",mimeType:_.Tx(g,7),name:g.getName(),type:OA(g),lastEditedUtc:_.Ndb(_.Xj(g,_.bw,12)).getTime(),url:g.getUrl(),sizeBytes:Number(d$a(g)),description:_.Tx(g,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:PA(lz(g)),mediaKey:g.getId().getId(),parentId:_.Tx(g,4)},m,n=(m=_.Xj(g,Rdb,18))==null?void 0:_.Xj(m,Qdb,3);n&&(k.latitude=Sx(n,1),k.longitude=Sx(n,2));var r;g=(r=_.Xj(g,Rdb,18))==null?void 0:Rx(r,6);r=g!=null?Eg(g):void 0;r&&(k.version=
r);return k});
return{action:b,docs:e,viewToken:d,view:c||"photos",extraUserInputs:fkb(a),v2Translated:!0}},Vjb=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),
serviceId:"et",name:lz(e)[0].getUrl().split("/").pop(),description:_.Tx(e,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:PA(lz(e),"etjpg")}});
return{action:b,docs:a,viewToken:d,view:c||"et",v2Translated:!0}},ckb=function(a,b,c,d){a=a.map(function(e){var g=e.getId().getId(),k=d["2"];
return{id:g,serviceId:k.type!=="gmail_themes"&&k.parent==="6226252643674576769"?"picasa":"static_themes",name:e.getName(),mimeType:_.Tx(e,7),type:OA(e),description:_.Tx(e,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:e.getUrl(),embedUrl:e.getUrl(),thumbnails:PA(lz(e))}});
return{action:b,docs:a,viewToken:d,view:c||"photos",v2Translated:!0}},Yjb=function(a,b){a=a.map(function(c){var d=_.Xj(c,Pdb,27);
d=_.Pc(d,1,_.sc,_.$f())[0];return{id:c.getId().getId(),serviceId:"contacts",mimeType:_.Tx(c,7),name:c.getName(),description:_.Tx(c,3),url:"mailto:"+d,thumbnail:[{url:_.Tx(c,11)}],email:d}});
return{action:b,docs:a,view:"contacts",v2Translated:!0}},Ujb=function(a){if(!a)return{};
var b=_.Tx(a,3);b=b&&JSON.parse(b)||{};return{0:_.Tx(a,1),1:_.Tx(a,2),2:b}},PA=function(a,b){b=b===void 0?"":b;
if(!a.length)return null;b=="etjpg"&&(a=a.filter(function(c){return c.getUrl().includes("w1200-h300")}));
return a.map(function(c){return{url:c.getUrl(),height:c.getHeight(),width:c.getWidth(),type:b}})},fkb=function(a){return{isAttachment:a.some(function(b){return _.Qx(b,31)})}},gkb=function(a){var b,c={id:(b=a.getId())==null?void 0:b.getId(),
serviceId:ikb(a),mimeType:_.Tx(a,7),name:a.getName(),type:OA(a),sizeBytes:Number(d$a(a)),description:_.Tx(a,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:PA(lz(a)),isNew:!0};if(b=_.Xj(a,jz,30)){c.dataUrl=_.Tx(b,1)||null;a:{var d=_.Xj(a,jz,30);switch(_.Ux(d,3)){case 9:d=_.Xx(d,Vdb,2,kz);d={remoteRefs:d&&_.Tx(d,1)};break a;case 10:case 15:d=_.Xx(d,Udb,4,kz);var e=lz(a);d={photo_id:d&&_.Tx(d,1),media_key:a.getId().getId(),media_type:_.Ux(a,6)===1?1:2,image_url:e&&
e[0].getUrl(),width:e&&String(e[0].getWidth()),height:e&&String(e[0].getHeight())};break a}d=null}c.uploadMetadata=d;c.uploadId=_.Tx(b,9)||null;c.uploadState=jkb(b)||null}(d=b&&_.Xx(b,Udb,4,kz))&&(c.id=_.Tx(d,1));(d=b&&_.Xx(b,Wdb,5,kz))&&(c.contentId=_.Tx(d,1));(d=b&&_.Xx(b,Sdb,7,kz))&&(c.contentId=_.Tx(d,1));(d=b&&_.Xx(b,Tdb,6,kz))&&(c.contentId=_.Tx(d,1));(b==null?void 0:_.Ux(b,3))===1&&(c.mediaKey=a.getId().getId());return c},ikb=function(a){var b;
switch(((b=_.Xj(a,jz,30))==null?void 0:_.Ux(b,3))||0){case 1:return"picasa";case 2:case 3:case 4:case 8:case 12:return"photo";case 10:case 15:return"dragonflyphotos";case 11:return"mapspro";case 13:return"books";case 14:return"cultural"}return null},OA=function(a){switch(_.Ux(a,6)){case 1:case 21:return"photo";
case 2:return"video";case 6:return"folder";case 13:return"calendar";case 14:return"album";case 19:return"contact";case 3:case 4:case 5:case 7:case 12:return _.Tx(a,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},jkb=function(a){switch(a==null?void 0:_.Ux(a,8)){case 0:return"default";
case 1:return"canceled";case 2:return"error";case 3:return"running";case 4:return"scheduled";case 5:return"success"}return null};var nkb,kkb,lkb,mkb;_.QA=function(a,b){var c=b||{};b=c.document||document;var d=_.zd(a).toString(),e=(new Py(b)).createElement("SCRIPT"),g={script_:e,timeout_:void 0},k=new dA(kkb,g),m=null,n=c.timeout!=null?c.timeout:5E3;n>0&&(m=window.setTimeout(function(){lkb(e,!0);k.errback(new mkb(1,"Timeout reached for loading script "+d))},n),g.timeout_=m);
e.onload=e.onreadystatechange=function(){e.readyState&&e.readyState!="loaded"&&e.readyState!="complete"||(lkb(e,c.cleanupWhenDone||!1,m),k.callback(null))};
e.onerror=function(){lkb(e,!0,m);k.errback(new mkb(0,"Error while loading script "+d))};
g=c.attributes||{};_.Cf.extend(g,{type:"text/javascript",charset:"UTF-8"});Xcb(e,g);_.Zd(e,a);nkb(b).appendChild(e);return k};
nkb=function(a){var b=rg("HEAD",a);return b&&b.length!==0?b[0]:a.documentElement};
kkb=function(){if(this&&this.script_){var a=this.script_;a&&a.tagName=="SCRIPT"&&lkb(a,!0,this.timeout_)}};
lkb=function(a,b,c){c!=null&&_.ja.clearTimeout(c);a.onload=function(){};
a.onerror=function(){};
a.onreadystatechange=function(){};
b&&window.setTimeout(function(){_.qg(a)},0)};
mkb=function(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);_.ca.call(this,c);this.code=a};
_.sx(mkb,_.ca);var okb=_.hx(["https://apis.google.com/js/api.js"]),pkb=_.ef(okb),tkb=function(a,b){var c=!1,d=qkb(a,b).then(function(g){c=!0;return g}),e=_.Sfb(5E3).then(function(){return c?qkb(a,b):rkb(b).then(function(g){return skb(g,a)})});
return Gfb([d,e])},qkb=function(a,b){return ukb(b).then(function(c){return skb(c,a)})},skb=function(a,b){var c=_.na(b,"gapi.")?b.slice(5):b;
return a[c]?_.qo(a[c]):new _.il(function(d,e){var g=Mz(function(){e(Error("fb"))},3E4);
a.load(b,{callback:function(){_.ja.clearTimeout(g);d(a[c])},
onerror:function(k){_.ja.clearTimeout(g);e(k)}})})},ukb=function(a){return a.gapi&&a.gapi.load?_.qo(a.gapi):rkb(a)},rkb=function(a){return _.QA(pkb,{document:a.document}).then(function(){return a.gapi})},vkb=function(){};
vkb.prototype.load=function(a,b){b=b===void 0?window:b;var c=Date.now();return tkb(a,b).then(function(d){var e=Date.now();return{library:d,loadStartMs:c,loadEndMs:e}},function(d){throw d instanceof Error?d:Error(String(d));
})};var Mja=function(){_.vg.call(this);this.gapiLoader_=new vkb;this.origin_=null;this.gapiPickerIframeResolver_=_.St();this.gapiIframesResolver_=_.St();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.z(Mja,_.vg);var wkb=function(a,b){var c=_.Ji("gapi.iframes",b);return c?(a=Date.now(),_.qo({library:c,loadStartMs:a,loadEndMs:a})):a.gapiLoader_.load("gapi.iframes",b)},xkb=function(a,b,c,d,e,g){var k=!0;
k=k===void 0?!1:k;wkb(a,Ff(b.ownerDocument)).then(function(m){var n=m.library;a.gapiIframesResolver_.resolve(n);m=a.gapiPickerIframeResolver_;var r=m.resolve,t=k;t=t===void 0?!1:t;var u={};u["host-message-handler"]=c;a.hostMessageHandlerInternal_=u;var x=_.Mg(d);x=_.Mg(x);x=_.mA(_.lA(_.kA(new _.Yn,x.scheme_),x.JSC$7876_domain_),x.JSC$7876_port_).toString();a.origin_=x;x=(new Oib).setUrl(d);x.JSC$7891_obj_.where=b;x.JSC$7891_obj_.allowPost=t;x.JSC$7891_obj_.messageHandlers=u;t=_.Ji("makeWhiteListIframesFilter",
n)([a.origin_]);x.JSC$7891_obj_.messageHandlersFilter=t;e!=null&&(x.JSC$7891_obj_.id=e);g!=null&&(x.JSC$7891_obj_.rpctoken=g);t=Nib(x);t.JSC$7888_obj_.style={display:"block","min-width":"100%",width:"1px"};t.JSC$7888_obj_.height="100%";Nib(x).value().allow="camera 'src' "+a.origin_;n=n.getContext().openChild(x.value());r.call(m,n)},function(m){a.gapiIframesResolver_.reject(m);
a.gapiPickerIframeResolver_.reject(m)});
return a.gapiPickerIframeResolver_.promise},ykb=function(a,b){return _.Kz([a.gapiIframesResolver_.promise,
a.gapiPickerIframeResolver_.promise]).then(function(c){var d=_.h(c);c=d.next().value;return(d=d.next().value)?d.send("picker-message-handler",b,void 0,_.Ji("makeWhiteListIframesFilter",c)([a.origin_])):_.On(Error("gb"))})};
Mja.prototype.disposeInternal=function(){zkb(this);_.vg.prototype.disposeInternal.call(this)};
var zkb=function(a){a.gapiPickerIframeResolver_.promise.then(function(b){b&&(b.unregister("host-message-handler"),delete a.hostMessageHandlerInternal_["host-message-handler"])})};var Akb=function(){this.nextId=0};var Ckb=function(a,b){switch(a.action){case "select-contacts":a=Bkb(a.contacts);break;case "visibility":a=a.visible;var c=new oz;a=_.Zx(c,1,7).setVisible(a);c={};c["iframe-command"]=a.serialize();a=c;break;default:a=null}return a?ykb(b,a):_.qo()},Bkb=function(a){if(!a||a.length==0)return null;
var b=new oz;_.Zx(b,1,11);var c=new Akb;a.forEach(function(d){if(d.email){var e=new Mx;e=_.kw(e,2,d.name?d.name:d.email);var g=new Pdb;d=_.uca(g,1,_.oc,d.email,_.sc);d=_.qd(e,27,d);e=new Mdb;g=":"+(c.nextId++).toString(36);e=_.kw(e,1,g);e=_.Zx(e,2,12);d=_.qd(d,1,e)}else d=null;d&&ml(b,7,Mx,d)});
a={};a["iframe-command"]=b.serialize();return a};_.Dkb=function(){if(p9a){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(_.ua()))?a[1]:"0"}return _.o9a?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(_.ua()))?a[0].replace(/_/g,"."):"10"):NBa?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(_.ua()))?a[1]:""):r9a||s9a||t9a?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(_.ua()))?a[1].replace(/_/g,"."):""):""}();var RA;RA=function(a){return(a=a.exec(_.ua()))?a[1]:""};
_.Ekb=function(){if(_.Ax)return RA(/Firefox\/([0-9.]+)/);if(_.xx||_.Pj||l9a)return _.B9a;if(_.Bx){if(_.Ha()||_.qaa()){var a=RA(/CriOS\/([0-9.]+)/);if(a)return a}return RA(/Chrome\/([0-9.]+)/)}if(_.Dj&&!_.Ha())return RA(/Version\/([0-9.]+)/);if(kpa||lpa){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.ua()))return a[1]+"."+a[2]}else if(F9a)return(a=RA(/Android\s+([0-9.]+)/))?a:RA(/Version\/([0-9.]+)/);return""}();var Fkb=function(){};
_.qx(Fkb);Fkb.prototype.nextId_=0;_.Ov=function(a){return":"+(a.nextId_++).toString(36)};var SA=function(a){_.Hz.call(this);this.JSC$7989_dom_=a||uf();this.JSC$7989_id_=null;this.inDocument_=!1;this.JSC$7989_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.sx(SA,_.Hz);SA.prototype.idGenerator_=Fkb.getInstance();SA.prototype.getId=function(){return this.JSC$7989_id_||(this.JSC$7989_id_=_.Ov(this.idGenerator_))};
SA.prototype.getElement=function(){return this.JSC$7989_element_};
var TA=function(a){a.googUiComponentHandler_||(a.googUiComponentHandler_=new _.an(a));return a.googUiComponentHandler_},Gkb=function(a,b){if(a==b)throw Error("hb");
var c;if(c=b&&a.parent_&&a.JSC$7989_id_){c=a.parent_;var d=a.JSC$7989_id_;c=c.childIndex_&&d?_.Cf.get(c.childIndex_,d)||null:null}if(c&&a.parent_!=b)throw Error("hb");a.parent_=b;SA.superClass_.setParentEventTarget.call(a,b)};
SA.prototype.setParentEventTarget=function(a){if(this.parent_&&this.parent_!=a)throw Error("ib");SA.superClass_.setParentEventTarget.call(this,a)};
SA.prototype.JSC$7991_createDom=function(){this.JSC$7989_element_=this.JSC$7989_dom_.createElement("DIV")};
SA.prototype.render=function(a){Hkb(this,a)};
var Hkb=function(a,b,c){if(a.inDocument_)throw Error("jb");a.JSC$7989_element_||a.JSC$7991_createDom();b?b.insertBefore(a.JSC$7989_element_,c||null):a.JSC$7989_dom_.JSC$7218_document_.body.appendChild(a.JSC$7989_element_);a.parent_&&!a.parent_.inDocument_||a.enterDocument()};
_.f=SA.prototype;_.f.decorate=function(a){if(this.inDocument_)throw Error("jb");if(a&&this.canDecorate(a)){this.wasDecorated_=!0;var b=_.Hf(a);this.JSC$7989_dom_&&this.JSC$7989_dom_.JSC$7218_document_==b||(this.JSC$7989_dom_=uf(a));this.decorateInternal(a);this.enterDocument()}else throw Error("kb");};
_.f.canDecorate=function(){return!0};
_.f.decorateInternal=function(a){this.JSC$7989_element_=a};
_.f.enterDocument=function(){this.inDocument_=!0;Ikb(this,function(a){!a.inDocument_&&a.getElement()&&a.enterDocument()})};
_.f.exitDocument=function(){Ikb(this,function(a){a.inDocument_&&a.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.f.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);Ikb(this,function(a){a.dispose()});
!this.wasDecorated_&&this.JSC$7989_element_&&_.qg(this.JSC$7989_element_);this.parent_=this.model_=this.JSC$7989_element_=this.childIndex_=this.children_=null;SA.superClass_.disposeInternal.call(this)};
_.f.getModel=function(){return this.model_};
_.f.addChild=function(a,b){var c=this.children_?this.children_.length:0;if(a.inDocument_&&(b||!this.inDocument_))throw Error("jb");if(c<0||c>(this.children_?this.children_.length:0))throw Error("lb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);a.parent_==this?(_.Cf.set(this.childIndex_,a.getId(),a),_.Qa(this.children_,a)):_.Cf.add(this.childIndex_,a.getId(),a);Gkb(a,this);_.yaa(this.children_,c,0,a);a.inDocument_&&this.inDocument_&&a.parent_==this?(b=this.getContentElement(),
(b.childNodes[c]||null)!=a.getElement()&&(a.getElement().parentElement==b&&b.removeChild(a.getElement()),c=b.childNodes[c]||null,b.insertBefore(a.getElement(),c))):b?(this.JSC$7989_element_||this.JSC$7991_createDom(),c=this.children_?this.children_[c+1]||null:null,Hkb(a,this.getContentElement(),c?c.JSC$7989_element_:null)):this.inDocument_&&!a.inDocument_&&a.JSC$7989_element_&&a.JSC$7989_element_.parentNode&&a.JSC$7989_element_.parentNode.nodeType==1&&a.enterDocument()};
_.f.getContentElement=function(){return this.JSC$7989_element_};
var Ikb=function(a,b){a.children_&&a.children_.forEach(b,void 0)};
SA.prototype.removeChild=function(a,b){if(a){var c=typeof a==="string"?a:a.getId();a=this.childIndex_&&c?_.Cf.get(this.childIndex_,c)||null:null;c&&a&&(_.Cf.remove(this.childIndex_,c),_.Qa(this.children_,a),b&&(a.exitDocument(),a.JSC$7989_element_&&_.qg(a.JSC$7989_element_)),Gkb(a,null))}if(!a)throw Error("mb");return a};_.sx(Dja,Cja);_.sx(Eja,Cja);var Jkb;var Kkb=function(a,b){b?a.setAttribute("role",b):a.removeAttribute("role")},UA=function(a,b,c){Array.isArray(c)&&(c=c.join(" "));
var d="aria-"+b;c===""||c==void 0?(Jkb||(c={},Jkb=(c.atomic=!1,c.autocomplete="none",c.dropeffect="none",c.haspopup=!1,c.live="off",c.multiline=!1,c.multiselectable=!1,c.orientation="vertical",c.readonly=!1,c.relevant="additions text",c.required=!1,c.sort="none",c.busy=!1,c.disabled=!1,c.hidden=!1,c.invalid="false",c)),c=Jkb,b in c?a.setAttribute(d,c[b]):a.removeAttribute(d)):a.setAttribute(d,c)};var Lkb;_.VA=function(a,b,c){_.Hz.call(this);this.target=a;this.handle=b||a;this.limits=c||new $y(NaN,NaN,NaN,NaN);this.JSC$7994_document_=_.Hf(a);this.JSC$7994_eventHandler_=new _.an(this);_.kg(this,this.JSC$7994_eventHandler_);this.deltaY=this.deltaX=this.startY=this.startX=this.screenY=this.screenX=this.clientY=this.clientX=0;this.enabled_=!0;this.dragging_=!1;this.hysteresisDistanceSquared_=0;_.rs(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=Lkb};
_.sx(_.VA,_.Hz);Lkb=_.ja.document&&_.ja.document.documentElement&&!!_.ja.document.documentElement.setCapture&&!!_.ja.document.releaseCapture;_.Mkb=function(a,b){a.hysteresisDistanceSquared_=Math.pow(b,2)};
_.f=_.VA.prototype;_.f.getEnabled=function(){return this.enabled_};
_.f.setEnabled=function(a){this.enabled_=a};
_.f.disposeInternal=function(){_.VA.superClass_.disposeInternal.call(this);_.Gz(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$7994_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$7994_document_.releaseCapture();this.handle=this.target=null};
_.f.startDrag=function(a){var b=a.type=="mousedown";if(!this.enabled_||this.dragging_||b&&(a.event_.button!=0||_.o9a&&a.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new WA("start",this,a.clientX,a.clientY,a)))this.dragging_=!0,b&&a.preventDefault();else return;else b&&a.preventDefault();b=this.JSC$7994_document_;var c=b.documentElement,d=!this.useSetCapture_;this.JSC$7994_eventHandler_.listen(b,["touchmove","mousemove"],this.handleMove_,
{capture:d,passive:!1});this.JSC$7994_eventHandler_.listen(b,["touchend","mouseup"],this.endDrag,d);this.useSetCapture_?(c.setCapture(!1),this.JSC$7994_eventHandler_.listen(c,"losecapture",this.endDrag)):this.JSC$7994_eventHandler_.listen(Ff(b),"blur",this.endDrag);this.scrollTarget_&&this.JSC$7994_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,d);this.clientX=this.startX=a.clientX;this.clientY=this.startY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=tf(uf(this.JSC$7994_document_))}};
_.f.endDrag=function(a,b){this.JSC$7994_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$7994_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new WA("end",this,a.clientX,a.clientY,a,Nkb(this,this.deltaX),Okb(this,this.deltaY),b||a.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.f.handleMove_=function(a){if(this.enabled_){var b=a.clientX-this.clientX,c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.dragging_){var d=this.startX-this.clientX,e=this.startY-this.clientY;if(d*d+e*e>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new WA("start",this,a.clientX,a.clientY,a)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(a);return}}c=Pkb(this,b,c);b=c.x;c=c.y;this.dragging_&&this.dispatchEvent(new WA("beforedrag",
this,a.clientX,a.clientY,a,b,c))&&(Qkb(this,a,b,c),a.preventDefault())}};
var Pkb=function(a,b,c){var d=tf(uf(a.JSC$7994_document_));b+=d.x-a.pageScroll.x;c+=d.y-a.pageScroll.y;a.pageScroll=d;a.deltaX+=b;a.deltaY+=c;return new _.Ef(Nkb(a,a.deltaX),Okb(a,a.deltaY))};
_.VA.prototype.onScroll_=function(a){var b=Pkb(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;Qkb(this,a,b.x,b.y)};
var Qkb=function(a,b,c,d){a.target.style.left=c+"px";a.target.style.top=d+"px";a.dispatchEvent(new WA("drag",a,b.clientX,b.clientY,b,c,d))},Nkb=function(a,b){var c=a.limits;
a=isNaN(c.left)?null:c.left;c=isNaN(c.width)?0:c.width;return Math.min(a!=null?a+c:Infinity,Math.max(a!=null?a:-Infinity,b))},Okb=function(a,b){var c=a.limits;
a=isNaN(c.top)?null:c.top;c=isNaN(c.height)?0:c.height;return Math.min(a!=null?a+c:Infinity,Math.max(a!=null?a:-Infinity,b))};
_.VA.prototype.isDragging=function(){return this.dragging_};
var WA=function(a,b,c,d,e,g,k){_.Cz.call(this,a);this.clientX=c;this.clientY=d;this.browserEvent=e;this.left=g!==void 0?g:b.deltaX;this.top=k!==void 0?k:b.deltaY};
_.sx(WA,_.Cz);var XA=function(a){this.JSC$8001_map_=new Map;var b=arguments.length;if(b>1){if(b%2)throw Error("ra");for(var c=0;c<b;c+=2)this.set(arguments[c],arguments[c+1])}else a&&this.addAll(a)};
_.f=XA.prototype;_.f.getCount=function(){return this.JSC$8001_map_.size};
_.f.getValues=function(){return Array.from(this.JSC$8001_map_.values())};
_.f.getKeys=function(){return Array.from(this.JSC$8001_map_.keys())};
_.f.containsKey=function(a){return this.JSC$8001_map_.has(a)};
_.f.containsValue=function(a){return this.getValues().some(function(b){return b==a})};
_.f.equals=function(a,b){var c=this;b=b===void 0?function(d,e){return d===e}:b;
return this===a?!0:this.JSC$8001_map_.size!=a.getCount()?!1:this.getKeys().every(function(d){return b(c.JSC$8001_map_.get(d),a.get(d))})};
_.f.isEmpty=function(){return this.JSC$8001_map_.size==0};
_.f.clear=function(){this.JSC$8001_map_.clear()};
_.f.remove=function(a){return this.JSC$8001_map_.delete(a)};
_.f.get=function(a,b){return this.JSC$8001_map_.has(a)?this.JSC$8001_map_.get(a):b};
_.f.set=function(a,b){this.JSC$8001_map_.set(a,b);return this};
_.f.addAll=function(a){if(a instanceof XA){a=_.h(a.JSC$8001_map_);for(var b=a.next();!b.done;b=a.next()){var c=_.h(b.value);b=c.next().value;c=c.next().value;this.JSC$8001_map_.set(b,c)}}else if(a)for(a=_.h(Object.entries(a)),b=a.next();!b.done;b=a.next())c=_.h(b.value),b=c.next().value,c=c.next().value,this.JSC$8001_map_.set(b,c)};
_.f.forEach=function(a,b){var c=this;b=b===void 0?this:b;this.JSC$8001_map_.forEach(function(d,e){return a.call(b,d,e,c)})};
_.f.clone=function(){return new XA(this)};(function(){for(var a=["ms","moz","webkit","o"],b,c=0;b=a[c]&&!_.ja.requestAnimationFrame;++c)_.ja.requestAnimationFrame=_.ja[b+"RequestAnimationFrame"],_.ja.cancelAnimationFrame=_.ja[b+"CancelAnimationFrame"]||_.ja[b+"CancelRequestAnimationFrame"];if(!_.ja.requestAnimationFrame){var d=0;_.ja.requestAnimationFrame=function(e){var g=(new Date).getTime(),k=Math.max(0,16-(g-d));d=g+k;return _.ja.setTimeout(function(){e(g+k)},k)};
_.ja.cancelAnimationFrame||(_.ja.cancelAnimationFrame=function(e){clearTimeout(e)})}})();
var Rkb=[[],[]],Skb=0,Tkb=!1,Ukb=0,Wkb=function(a,b){var c=Ukb++,d={measureTask:{id:c,fn:a.measure,context:b},mutateTask:{id:c,fn:a.mutate,context:b},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(d.args||(d.args=[]),d.args.length=0,d.args.push.apply(d.args,arguments),d.args.push(d.state)):d.args&&d.args.length!=0?(d.args[0]=d.state,d.args.length=1):d.args=[d.state];d.isScheduled||(d.isScheduled=!0,Rkb[Skb].push(d));Tkb||(Tkb=!0,window.requestAnimationFrame(Vkb))}},Vkb=
function(){Tkb=!1;
var a=Rkb[Skb],b=a.length;Skb=(Skb+1)%2;for(var c,d=0;d<b;++d){c=a[d];var e=c.measureTask;c.isScheduled=!1;e.fn&&e.fn.apply(e.context,c.args)}for(d=0;d<b;++d)c=a[d],e=c.mutateTask,c.isScheduled=!1,e.fn&&e.fn.apply(e.context,c.args),c.state={};a.length=0};var Xkb=_.hx(["about:blank"]),Ykb=_.hx(["javascript:undefined"]),Zkb=_.ef(Xkb);_.zd(Zkb);var $kb=_.ef(Ykb);_.zd($kb);var YA=function(a){_.Hz.call(this);this.JSC$8007_element_=a;this.listenKeyIn_=_.rs(this.JSC$8007_element_,"focus",this,!0);this.listenKeyOut_=_.rs(this.JSC$8007_element_,"blur",this,!0)};
_.sx(YA,_.Hz);YA.prototype.handleEvent=function(a){var b=new _.Dz(a.event_);b.type=a.type=="focusin"||a.type=="focus"?"focusin":"focusout";this.dispatchEvent(b)};
YA.prototype.disposeInternal=function(){YA.superClass_.disposeInternal.call(this);os(this.listenKeyIn_);os(this.listenKeyOut_);delete this.JSC$8007_element_};var alb=function(a,b){this.JSC$8010_element_=a;this.JSC$8010_dom_=b};var ZA=function(a,b){SA.call(this,b);this.useIframeMask_=!!a;this.lastFocus_=null;this.resizeBackgroundTask_=Wkb({mutate:this.resizeBackground_},this);Wkb({mutate:this.updateModalAndBackground_},this)};
_.sx(ZA,SA);_.f=ZA.prototype;_.f.focusHandler_=null;_.f.visible_=!1;_.f.bgEl_=null;_.f.bgIframeEl_=null;_.f.tabCatcherElement_=null;_.f.backwardTabWrapInProgress_=!1;_.f.getCssClass=function(){return"goog-modalpopup"};
_.f.getBackgroundElement=function(){return this.bgEl_};
_.f.JSC$7991_createDom=function(){ZA.superClass_.JSC$7991_createDom.call(this);var a=this.getElement(),b=_.tx(this.getCssClass()).split(" ");bA(a,b);a.tabIndex=0;_.Pg(a,!1);blb(this);clb(this)};
var blb=function(a){if(a.useIframeMask_&&!a.bgIframeEl_){var b=a.JSC$7989_dom_.JSC$7220_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.Sd(b,Zkb);a.bgIframeEl_=b;a.bgIframeEl_.className=a.getCssClass()+"-bg";_.Pg(a.bgIframeEl_,!1);Cdb(a.bgIframeEl_,0)}a.bgEl_||(a.bgEl_=a.JSC$7989_dom_.JSC$7220_createDom("DIV",a.getCssClass()+"-bg"),_.Pg(a.bgEl_,!1))},clb=function(a){a.tabCatcherElement_||(a.tabCatcherElement_=a.JSC$7989_dom_.createElement("SPAN"),_.Pg(a.tabCatcherElement_,
!1),a.tabCatcherElement_.tabIndex=0,a.tabCatcherElement_.style.position="absolute")};
_.f=ZA.prototype;_.f.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.f.canDecorate=function(a){return!!a&&a.tagName=="DIV"};
_.f.decorateInternal=function(a){ZA.superClass_.decorateInternal.call(this,a);a=_.tx(this.getCssClass()).split(" ");bA(this.getElement(),a);blb(this);clb(this);this.getElement().tabIndex=0;_.Pg(this.getElement(),!1)};
_.f.enterDocument=function(){this.bgIframeEl_&&_.Wy(this.bgIframeEl_,this.getElement());_.Wy(this.bgEl_,this.getElement());ZA.superClass_.enterDocument.call(this);_.Xy(this.tabCatcherElement_,this.getElement());this.focusHandler_=new YA(this.JSC$7989_dom_.JSC$7218_document_);TA(this).listen(this.focusHandler_,"focusin",this.onFocus);dlb(this,!1)};
_.f.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.Xf(this.focusHandler_);ZA.superClass_.exitDocument.call(this);_.qg(this.bgIframeEl_);_.qg(this.bgEl_);_.qg(this.tabCatcherElement_)};
_.f.setVisible=function(a){if(a!=this.visible_)if(this.popupShowTransition_&&this.popupShowTransition_.stop(),this.bgShowTransition_&&this.bgShowTransition_.stop(),this.popupHideTransition_&&this.popupHideTransition_.stop(),this.bgHideTransition_&&this.bgHideTransition_.stop(),this.inDocument_&&dlb(this,a),a){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$7989_dom_.JSC$7218_document_.activeElement}catch(e){}this.updateModalAndBackground_();TA(this).listen(this.JSC$7989_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$7989_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);elb(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)ns(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){TA(this).unlisten(this.JSC$7989_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$7989_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)ns(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var b=this.JSC$7989_dom_,c=b.JSC$7218_document_.body,d=b.JSC$7218_document_.activeElement||c;if(!this.lastFocus_||this.lastFocus_==c){this.lastFocus_=null;break a}(d==c||b.contains(this.getElement(),d))&&this.lastFocus_.focus()}catch(e){}this.lastFocus_=
null}}};
var dlb=function(a,b){a.modalAriaVisibilityHelper_||(a.modalAriaVisibilityHelper_=new alb(a.JSC$7989_element_,a.JSC$7989_dom_));a=a.modalAriaVisibilityHelper_;if(b){a.hiddenElements_||(a.hiddenElements_=[]);b=a.JSC$8010_dom_.getChildren(a.JSC$8010_dom_.JSC$7218_document_.body);for(var c=0;c<b.length;c++){var d=b[c],e;if(e=d!=a.JSC$8010_element_)e=d.getAttribute("aria-hidden"),e=!(e==null||e==void 0?0:String(e));e&&(UA(d,"hidden",!0),a.hiddenElements_.push(d))}}else if(a.hiddenElements_){for(b=0;b<
a.hiddenElements_.length;b++)a.hiddenElements_[b].removeAttribute("aria-hidden");a.hiddenElements_=null}};
ZA.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var elb=function(a,b){a.bgIframeEl_&&_.Pg(a.bgIframeEl_,b);a.bgEl_&&_.Pg(a.bgEl_,b);_.Pg(a.getElement(),b);_.Pg(a.tabCatcherElement_,b)};
_.f=ZA.prototype;_.f.onShow=function(){this.dispatchEvent("show")};
_.f.onHide=function(){elb(this,!1);this.dispatchEvent("hide")};
_.f.isVisible=function(){return this.visible_};
_.f.focus=function(){this.focusElement_()};
_.f.resizeBackground_=function(){this.bgIframeEl_&&_.Pg(this.bgIframeEl_,!1);this.bgEl_&&_.Pg(this.bgEl_,!1);var a=this.JSC$7989_dom_.JSC$7218_document_;var b=_.sf(Ff(this.JSC$7989_dom_.JSC$7218_document_)||window);var c=Math.max(b.width,Math.max(a.body.scrollWidth,a.documentElement.scrollWidth));a=Math.max(b.height,Math.max(a.body.scrollHeight,a.documentElement.scrollHeight));this.bgIframeEl_&&(_.Pg(this.bgIframeEl_,!0),_.ydb(this.bgIframeEl_,c,a));this.bgEl_&&(_.Pg(this.bgEl_,!0),_.ydb(this.bgEl_,
c,a))};
_.f.reposition=function(){var a;if(_.xdb(this.getElement())=="fixed")var b=a=0;else b=tf(this.JSC$7989_dom_),a=b.x,b=b.y;var c=Adb(this.getElement());var d=_.sf(Ff(this.JSC$7989_dom_.JSC$7218_document_)||window);a=Math.max(a+d.width/2-c.width/2,0);b=Math.max(b+d.height/2-c.height/2,0);cz(this.getElement(),a,b);cz(this.tabCatcherElement_,a,b)};
_.f.onFocus=function(a){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():a.target==this.tabCatcherElement_&&Mz(this.focusElement_,0,this)};
_.f.focusElement_=function(){try{this.getElement().focus()}catch(a){}};
_.f.disposeInternal=function(){_.Xf(this.popupShowTransition_);this.popupShowTransition_=null;_.Xf(this.popupHideTransition_);this.popupHideTransition_=null;_.Xf(this.bgShowTransition_);this.bgShowTransition_=null;_.Xf(this.bgHideTransition_);this.bgHideTransition_=null;ZA.superClass_.disposeInternal.call(this)};var Fg=function(a,b,c){ZA.call(this,b,c);this.JSC$8020_class_=a||"modal-dialog";this.buttons_=(new $A).addButton(flb,!0).addButton(glb,!1,!0)};
_.sx(Fg,ZA);_.f=Fg.prototype;_.f.escapeToCancel_=!0;_.f.hasTitleCloseButton_=!0;_.f.modal_=!0;_.f.draggable_=!0;_.f.backgroundElementOpacity_=.5;_.f.title_="";_.f.JSC$8022_dragger_=null;_.f.JSC$8022_disposeOnHide_=!1;_.f.titleEl_=null;_.f.titleTextEl_=null;_.f.titleTextId_=null;_.f.titleCloseEl_=null;_.f.contentEl_=null;_.f.buttonEl_=null;_.f.getCssClass=function(){return this.JSC$8020_class_};
_.f.setTitle=function(a){this.title_=a;this.titleTextEl_&&_.Zy(this.titleTextEl_,a)};
_.f.getTitle=function(){return this.title_};
_.f.getContent=function(){return""};
_.f.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var hlb=function(a){a.getElement()||a.render();return a.getElement()};
Fg.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Fg.superClass_.getBackgroundElement.call(this)};
var ilb=function(a,b){a.backgroundElementOpacity_=b;a.getElement()&&(b=a.getBackgroundElement())&&Cdb(b,a.backgroundElementOpacity_)};
Fg.prototype.setDraggable=function(a){this.draggable_=a;jlb(this,a&&this.inDocument_)};
Fg.prototype.JSC$8022_handleDrag=function(){};
var jlb=function(a,b){var c=_.tx(a.JSC$8020_class_+"-title-draggable").split(" ");a.getElement()&&(b?bA(a.titleEl_,c):Khb(a.titleEl_,c));b&&!a.JSC$8022_dragger_?(b=new _.VA(a.getElement(),a.titleEl_),a.JSC$8022_dragger_=b,bA(a.titleEl_,c),_.rs(a.JSC$8022_dragger_,"start",a.setDraggerLimits_,!1,a),_.rs(a.JSC$8022_dragger_,"drag",a.JSC$8022_handleDrag,!1,a)):!b&&a.JSC$8022_dragger_&&(a.JSC$8022_dragger_.dispose(),a.JSC$8022_dragger_=null)};
_.f=Fg.prototype;
_.f.JSC$7991_createDom=function(){Fg.superClass_.JSC$7991_createDom.call(this);var a=this.getElement(),b=this.JSC$7989_dom_;this.titleTextId_=this.getId();var c=this.getId()+".contentEl";this.titleEl_=b.JSC$7220_createDom("DIV",this.JSC$8020_class_+"-title",this.titleTextEl_=b.JSC$7220_createDom("SPAN",{className:this.JSC$8020_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=b.JSC$7220_createDom("SPAN",this.JSC$8020_class_+"-title-close"));bdb(a,this.titleEl_,this.contentEl_=
b.JSC$7220_createDom("DIV",{className:this.JSC$8020_class_+"-content",id:c}),this.buttonEl_=b.JSC$7220_createDom("DIV",this.JSC$8020_class_+"-buttons"));Kkb(this.titleTextEl_,"heading");Kkb(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;UA(this.titleCloseEl_,"label","Close");Kkb(a,"dialog");UA(a,"labelledby",this.titleTextId_||"");_.Pg(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(a=this.buttons_,a.JSC$8023_element_=this.buttonEl_,a.render());_.Pg(this.buttonEl_,!!this.buttons_);
ilb(this,this.backgroundElementOpacity_)};
_.f.decorateInternal=function(a){Fg.superClass_.decorateInternal.call(this,a);a=this.getElement();var b=this.JSC$8020_class_+"-content";this.contentEl_=Qy(document,null,b,a)[0];this.contentEl_||(this.contentEl_=this.JSC$7989_dom_.JSC$7220_createDom("DIV",b),a.appendChild(this.contentEl_));b=this.JSC$8020_class_+"-title";var c=this.JSC$8020_class_+"-title-text",d=this.JSC$8020_class_+"-title-close";(this.titleEl_=Qy(document,null,b,a)[0])?(this.titleTextEl_=Qy(document,null,c,this.titleEl_)[0],this.titleCloseEl_=
Qy(document,null,d,this.titleEl_)[0]):(this.titleEl_=this.JSC$7989_dom_.JSC$7220_createDom("DIV",b),a.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=pdb(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.Sy("SPAN",{className:c,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;UA(a,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$7989_dom_.JSC$7220_createDom("SPAN",
d),this.titleEl_.appendChild(this.titleCloseEl_));_.Pg(this.titleCloseEl_,this.hasTitleCloseButton_);b=this.JSC$8020_class_+"-buttons";(this.buttonEl_=Qy(document,null,b,a)[0])?(this.buttons_=new $A(this.JSC$7989_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$7989_dom_.JSC$7220_createDom("DIV",b),a.appendChild(this.buttonEl_),this.buttons_&&(a=this.buttons_,a.JSC$8023_element_=this.buttonEl_,a.render()),_.Pg(this.buttonEl_,!!this.buttons_));ilb(this,this.backgroundElementOpacity_)};
_.f.enterDocument=function(){Fg.superClass_.enterDocument.call(this);TA(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);TA(this).listen(this.buttonEl_,"click",this.onButtonClick_);jlb(this,this.draggable_);TA(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var a=this.getElement();Kkb(a,"dialog");this.titleTextEl_.id!==""&&UA(a,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){a=this.JSC$7989_dom_;
var b=this.getBackgroundElement();a.removeNode(this.bgIframeEl_);a.removeNode(b)}this.isVisible()&&dlb(this,!1)}};
_.f.exitDocument=function(){this.isVisible()&&this.setVisible(!1);jlb(this,!1);Fg.superClass_.exitDocument.call(this)};
_.f.setVisible=function(a){a!=this.isVisible()&&(this.inDocument_||this.render(),Fg.superClass_.setVisible.call(this,a))};
_.f.onShow=function(){Fg.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.f.onHide=function(){Fg.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8022_disposeOnHide_&&this.dispose()};
_.f.setDraggerLimits_=function(){var a=this.JSC$7989_dom_.JSC$7218_document_,b=_.sf(Ff(a)||window),c=Math.max(a.body.scrollWidth,b.width);a=Math.max(a.body.scrollHeight,b.height);var d=Adb(this.getElement());_.xdb(this.getElement())=="fixed"?this.JSC$8022_dragger_.limits=new $y(0,0,Math.max(0,b.width-d.width),Math.max(0,b.height-d.height)):this.JSC$8022_dragger_.limits=new $y(0,0,c-d.width,a-d.height)};
_.f.onTitleCloseClick_=function(){klb(this)};
var klb=function(a){if(a.hasTitleCloseButton_){var b=a.buttons_,c=b&&b.cancelButton_;c?(b=b.get(c),a.dispatchEvent(new aB(c,b))&&a.setVisible(!1)):a.setVisible(!1)}},llb=function(a){a.hasTitleCloseButton_=!1;
a.titleCloseEl_&&_.Pg(a.titleCloseEl_,a.hasTitleCloseButton_)};
Fg.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Fg.superClass_.disposeInternal.call(this)};
Fg.prototype.onButtonClick_=function(a){a:{for(a=a.target;a!=null&&a!=this.buttonEl_;){if(a.tagName=="BUTTON")break a;a=a.parentNode}a=null}if(a&&!a.disabled){a=a.name;var b=this.buttons_.get(a);this.dispatchEvent(new aB(a,b))&&this.setVisible(!1)}};
Fg.prototype.onKey_=function(a){var b=!1,c=!1,d=this.buttons_,e=a.target;if(a.type=="keydown")if(this.escapeToCancel_&&a.keyCode==27){var g=d&&d.cancelButton_;e=e.tagName=="SELECT"&&!e.disabled;g&&!e?(c=!0,b=d.get(g),b=this.dispatchEvent(new aB(g,b))):e||(b=!0)}else{if(a.keyCode==9&&a.shiftKey&&e==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(t){}Mz(this.resetBackwardTabWrap_,0,this)}}else if(a.keyCode==13){if(e.tagName=="BUTTON"&&!e.disabled)g=e.name;
else if(e==this.titleCloseEl_)klb(this);else if(d){var k=d.defaultButton_,m;if(m=k)a:{m=rg("BUTTON",d.JSC$8023_element_);for(var n,r=0;n=m[r];r++)if(n.name==k||n.id==k){m=n;break a}m=null}e=(e.tagName=="TEXTAREA"||e.tagName=="SELECT"||e.tagName=="A")&&!e.disabled;!m||m.disabled||e||(g=k)}g&&d&&(c=!0,b=this.dispatchEvent(new aB(g,String(d.get(g)))))}else e!=this.titleCloseEl_||a.keyCode!=32&&a.key!=" "||klb(this);if(b||c)a.stopPropagation(),a.preventDefault();b&&this.setVisible(!1)};
var aB=function(a,b){this.type="dialogselect";this.key=a;this.caption=b};
_.sx(aB,_.Cz);var $A=function(a){XA.call(this);a||uf();this.cancelButton_=this.JSC$8023_element_=this.defaultButton_=null};
_.sx($A,XA);_.f=$A.prototype;_.f.clear=function(){XA.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.f.set=function(a,b,c,d){XA.prototype.set.call(this,a,b);c&&(this.defaultButton_=a);d&&(this.cancelButton_=a);return this};
_.f.addButton=function(a,b,c){return this.set(a.key,a.caption,b,c)};
_.f.render=function(){if(this.JSC$8023_element_){_.$d(this.JSC$8023_element_,Qja);var a=uf(this.JSC$8023_element_);this.forEach(function(b,c){b=a.JSC$7220_createDom("BUTTON",{name:c},b);c==this.defaultButton_&&(b.className="goog-buttonset-default");this.JSC$8023_element_.appendChild(b)},this)}};
_.f.decorate=function(a){if(a&&a.nodeType==1){this.JSC$8023_element_=a;a=rg("BUTTON",this.JSC$8023_element_);for(var b,c,d,e=0;b=a[e];e++)if(c=b.name||b.id,d=pdb(b)||b.value,c){var g=e==0;this.set(c,d,g,b.name=="cancel");g&&_.Qs(b,"goog-buttonset-default")}}};
_.f.getElement=function(){return this.JSC$8023_element_};
var flb={key:"ok",caption:"OK"},glb={key:"cancel",caption:"Cancel"},mlb={key:"yes",caption:"Yes"},nlb={key:"no",caption:"No"},olb={key:"save",caption:"Save"},plb={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new $A).addButton(flb,!0,!0),(new $A).addButton(flb,!0).addButton(glb,!1,!0),(new $A).addButton(mlb,!0).addButton(nlb,!1,!0),(new $A).addButton(mlb).addButton(nlb,!0).addButton(glb,!1,!0),(new $A).addButton(plb).addButton(olb).addButton(glb,!0,!0));_.sx(Fja,Fg);_.sx(Gja,Gg);var qlb=_.hx(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),rlb=_.hx(["//apis.google.com/js/rpc.js"]),Pja=_.ef(qlb),Oja=_.ef(rlb),Ija=null;var Hg=function(a,b){_.Hz.call(this);this.JSC$8032_element_=a;a=_.Sk(this.JSC$8032_element_)?this.JSC$8032_element_:this.JSC$8032_element_?this.JSC$8032_element_.body:null;this.isRtl_=!!a&&_.Ddb(a);this.listenKey_=_.rs(this.JSC$8032_element_,_.yx?"DOMMouseScroll":"mousewheel",this,b)};
_.sx(Hg,_.Hz);Hg.prototype.handleEvent=function(a){var b=0,c=0,d=a.event_;d.type=="mousewheel"?(a=slb(-d.wheelDelta),d.wheelDeltaX!==void 0?(b=slb(-d.wheelDeltaX),c=slb(-d.wheelDeltaY)):c=a):(a=d.detail,a>100?a=3:a<-100&&(a=-3),d.axis!==void 0&&d.axis===d.HORIZONTAL_AXIS?b=a:c=a);typeof this.maxDeltaX_==="number"&&(b=_.Vw(b,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(c=_.Vw(c,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(b=-b);b=new tlb(a,d,b,c);this.dispatchEvent(b)};
var slb=function(a){return _.zx&&(_.o9a||q9a)&&a%40!=0?a:a/40};
Hg.prototype.disposeInternal=function(){Hg.superClass_.disposeInternal.call(this);os(this.listenKey_);this.listenKey_=null};
var tlb=function(a,b,c,d){_.Dz.call(this,b);this.type="mousewheel";this.detail=a;this.deltaX=c;this.deltaY=d};
_.sx(tlb,_.Dz);_.tw=function(a){var b="instance_";if(a.instance_&&a.hasOwnProperty(b))return a.instance_;b=new a;return a.instance_=b};var Nja;var ulb=_.hx(["https://about:blank"]),vlb=_.hx(['javascript:""']),wlb=_.hx(["about:blank"]);_.sx(Qg,Fja);_.f=Qg.prototype;_.f.JSC$8040_url_="";_.f.JSC$8040_iframe_=null;_.f.iframeLoaded_=!1;_.f.loadedFired_=!1;_.f.callback_=function(){};
_.f.enterDocument=function(){Qg.superClass_.enterDocument.call(this);Lja(this.getBackgroundElement(),TA(this))};
_.f.render=function(a){var b=this;Qg.superClass_.render.call(this,a);this.useGapi_?wkb(this.iframeManager_,window).then(function(){return xlb(b)}).then(null,function(){b.callback_({action:"error"})}):ylb(this)};
var xlb=function(a){var b=a.JSC$7989_dom_.JSC$7220_createDom("div",["picker-dialog-content","picker-frame"]);_.Pg(b,!1);a.getContentElement().appendChild(b);return xkb(a.iframeManager_,b,function(c){var d=ceb(c["iframe-command"]);switch(d.getCommand()){case 1:c=a.callback_;d=_.Xj(d,nz,2);var e="";switch(d.getStatus()){case 2:e="cancel";break;case 1:e="picked";break;case 3:e="error"}var g=_.Zf(d,Mx,2,_.$f(Q9a));d=g.length===0?{action:e}:ekb(g,e,_.Xj(d,$db,7));c.call(a,d);a.setVisible(!1);break;case 4:llb(a);
a.callback_({action:"loaded"});break;case 7:case 8:c=a.callback_;a:{e=d.getCommand();g=_.Xj(d,nz,2);switch(e){case 7:e="uploadScheduled";break;case 8:e="uploadStateChange";break;default:d={};break a}d=_.Zf(g,Mx,2,_.$f(Q9a));if(d.length===0)d={action:e};else{var k=_.Xj(g,$db,7);g=k&&_.Tx(k,1);k=Ujb(k);d=Xjb(d,e,g,k)}}c.call(a,d)}},a.JSC$8040_url_,a.targetId_,a.rpcToken_).then(function(c){a.JSC$8040_iframe_=c.getIframeEl();
zlb(a);_.Pg(a.JSC$8040_iframe_.parentElement,!0);_.Qs(a.getElement(),"picker-dialog");Alb(a);return c})},ylb=function(a){a.JSC$8040_iframe_=a.JSC$7989_dom_.JSC$7220_createDom("IFRAME",{id:a.targetId_,
name:a.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.Sd(a.JSC$8040_iframe_,Blb(a));_.Qs(a.getElement(),"picker-dialog");a.getContentElement().appendChild(a.JSC$8040_iframe_);TA(a).listen(a.JSC$8040_iframe_,"load",function(){return void zlb(a)});
a.JSC$8040_iframe_.src=a.JSC$8040_url_;Alb(a)},Dlb=function(a){Clb(a,(0,_.wg)(function(b){b.setAuthToken(this.targetId_,this.rpcToken_)},a))},Alb=function(a){var b=_.Ng(_.Mg(a.JSC$8040_url_),"title");
b&&a.setTitle(b)},Blb=function(a){return _.naa("Internet Explorer")>=7&&_.na(a.JSC$8040_url_,"https")?_.ef(ulb):_.xx?_.ef(vlb):_.ef(wlb)},zlb=function(a){Dlb(a);
a.iframeLoaded_=!0;a.JSC$8040_iframe_.tabIndex=0;a.isVisible()&&a.focus()};
Qg.prototype.handleKeydown_=function(a){a.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),a.stopPropagation(),a.preventDefault())};
var Clb=function(a,b){var c=a.JSC$8038_gadgetsDomHelper_;Jja(function(){b(c.getWindow().gadgets.rpc)},c)};
Qg.prototype.setUrl=function(a){a=_.Og(new _.Yn(a),"rpcService",this.targetId_);_.Og(a,"rpctoken",this.rpcToken_);_.pA(a,"rpctoken="+this.rpcToken_);_.kA(a,"https");this.JSC$8040_url_=a.toString();this.JSC$8040_iframe_&&(this.JSC$8040_iframe_.src=this.JSC$8040_url_)};
var Elb=function(a,b){a.callback_=b;Clb(a,(0,_.wg)(function(c){c.register(this.targetId_,(0,_.wg)(this.handlePickerAction_,this))},a))};
Qg.prototype.handlePickerAction_=function(a){var b=a.action;b=="loaded"&&(this.loadedFired_=!0,Flb(this,new Eja(this.isVisible())),Glb(this),llb(this),TA(this).unlisten(this.JSC$7989_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8040_iframe_.tabIndex=0);b!="picked"&&b!="cancel"||this.setVisible(!1);this.callback_(a)};
var Glb=function(a){a.JSC$8040_appId_&&Flb(a,new Dja(a.JSC$8040_appId_,window.location.protocol+"//"+window.location.host))};
Qg.prototype.setRelayUrl=function(a){Clb(this,(0,_.wg)(function(b){b.setRelayUrl(this.targetId_,a)},this))};
var Flb=function(a,b){a.useGapi_&&Ckb(b,a.iframeManager_).then(null,function(){a.callback_({action:"error"})});
Clb(a,(0,_.wg)(function(c){c.call(this.targetId_,"picker",null,b)},a))};
Qg.prototype.resizePicker_=function(){var a=Ff(this.JSC$7989_dom_.JSC$7218_document_)||window;if(_.Ng(_.Mg(this.JSC$8040_url_),"ignoreLimits")=="true")a=new _.rf(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.Ng(_.Mg(this.JSC$8040_url_),"shadeDialog")=="true"){var b=hlb(this);b=Edb(b);var c=_.sf(a);a=c.width-80;c=c.height-40;b&&(a-=b.left?b.left:0,a-=b.right?b.right:0,c-=b.top?b.top:0,c-=b.bottom?b.bottom:0);a=new _.rf(a>0?a:0,c>0?c:0)}else(b=this.preferredDialogWidth_)?(b=Math.max(320,
Math.min(1051,b)),(c=this.preferredDialogHeight_)||(c=_.sf(a).height*.85),c=Math.max(480,Math.min(650,c))):(b=_.sf(a),c=b.width*.618,c=c<b.height?Math.round(Math.max(480,Math.min(650,c*.85))):Math.round(Math.max(480,Math.min(650,b.height*.85))),b=Math.round(c/.618)),a=_.sf(a),b=Math.min(b,Math.max(a.width,320)),c=Math.min(c,Math.max(a.height,480)),a=new _.rf(b,c);_.ydb(this.getContentElement(),a);this.reposition()};
Qg.prototype.reposition=function(){if(_.Ng(_.Mg(this.JSC$8040_url_),"shadeDialog")=="true"){var a=Adb(this.getElement()),b=_.sf(this.JSC$7989_dom_.getWindow());a=Math.floor(b.width/2-a.width/2);b=hlb(this);if(b=Edb(b)){var c=b.left?b.left:0;c+=b.right?b.right:0;a=Math.floor(a-c/2)}a=a>0?a:0;b=tf(this.JSC$7989_dom_).y;cz(this.getElement(),a,b)}else Qg.superClass_.reposition.call(this)};
Qg.prototype.setVisible=function(a){if(a!=this.isVisible()&&this.autoSizeDialog_){var b=this.JSC$7989_dom_.getWindow();a?(this.resizePicker_(),TA(this).listen(b,"resize",this.resizePicker_),this.iframeLoaded_||TA(this).listen(b,"keydown",this.handleKeydown_)):(TA(this).unlisten(b,"resize",this.resizePicker_),this.iframeLoaded_||TA(this).unlisten(b,"keydown",this.handleKeydown_))}Qg.superClass_.setVisible.call(this,a);Flb(this,new Eja(a))};
Qg.prototype.focus=function(){Qg.superClass_.focus.call(this);if(this.JSC$8040_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8040_iframe_.focus()}catch(a){}};var wq=function(a,b){b=b===void 0?Qg:b;Gg.call(this,a);this.pickerConstructor=b;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(a=window.location.origin)||(a=window.location.protocol+"//"+window.location.host);a&&this.urlParamMap_.set("origin",a);this.postProcessors_=[]};
_.z(wq,Gja);wq.prototype.JSC$8045_disposeOnHide_=!1;
wq.prototype.build=function(){this.JSC$7946_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$7946_appId_);this.getRelayUrl()||this.setRelayUrl(_.nA(_.pA(_.oA(_.Mg(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("nb");var a=new this.pickerConstructor(Hlb(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);a.JSC$8022_disposeOnHide_=this.JSC$8045_disposeOnHide_;
a.JSC$8040_appId_=this.JSC$7946_appId_;a.loadedFired_&&Glb(a);Elb(a,this.callback_);return a};
var Ilb=function(a){a.urlParamMap_.set("multiselectEnabled","true");return a};
wq.prototype.getHeight=function(){return this.dialogHeight_};
wq.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
wq.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
wq.prototype.getWidth=function(){return this.dialogWidth_};
var Jlb=function(a){a.JSC$8045_disposeOnHide_=void 0;return a};
wq.prototype.setRelayUrl=function(a){this.urlParamMap_.set("parent",a);return this};
var Klb=function(a,b){a.urlParamMap_.set("selectButtonLabel",b);return a};
wq.prototype.setSize=function(a,b){this.dialogWidth_=a;this.dialogHeight_=b;return this};
wq.prototype.setTitle=function(a){this.urlParamMap_.set("title",a);return this};
var Hlb=function(a){a.postProcessors_.length&&a.urlParamMap_.set("pp",JSON.stringify(a.postProcessors_));a.urlParamMap_.set("nav",Qjb(a.nav_));var b=new _.Yn(a.getBaseUrl());a.urlParamMap_.forEach(function(c,d){_.Og(b,d,c)});
return b};var Nlb=function(a,b){a.name!==void 0?(this.name=a.name,this.code=Llb[a.name]):(this.code=a=a.code,this.name=Mlb(a));_.ca.call(this,qbb("%s %s",this.name,b))};
_.sx(Nlb,_.ca);var Mlb=function(a){var b=_.Cf.findKey(Llb,function(c){return a==c});
if(b===void 0)throw Error("pb`"+a);return b},bB={},Llb=(bB.AbortError=3,bB.EncodingError=5,bB.InvalidModificationError=9,bB.InvalidStateError=7,bB.NotFoundError=1,bB.NotReadableError=4,bB.NoModificationAllowedError=6,bB.PathExistsError=12,bB.QuotaExceededError=10,bB.SecurityError=2,bB.SyntaxError=8,bB.TypeMismatchError=11,bB);var Olb=function(a,b){_.Cz.call(this,a.type,b);this.event_=a};
_.sx(Olb,_.Cz);var Plb=function(a,b,c){c===void 0&&(c=a.size);return a.slice?a.slice(b,c):null};var Sja=new WeakMap,Rja=function(a,b){a=[a];for(var c=b.length-1;c>=0;--c)a.push(typeof b[c],b[c]);return a.join("\v")};_.Uja(function(){if(!_.ja.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return b.size!=100?!1:!0});
var Qlb=_.Uja(function(){if(!_.ja.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return Plb(b,0,1)===null?!1:!0});_.ja.U3bHHf!=null||(_.ja.U3bHHf=0);_.ja.U3bHHf++;var Wja={};_.Ug=void 0;var Yja=Symbol("ub");var $ja=Symbol("vb");var eka=Wg("WizInjectionContext_Dispatcher");var fka=Wg("WizInjectionContext_RootElement");var dka=Wg("WizInjectionContext_AppContext"),gka=Wg("WizInjectionContext_ModelRootElement"),hka=Wg("WizInjectionContext_RendererData"),ika=Wg("WizInjectionContext_InjectingConstructor"),jka={};var nka=!1;var Rlb=Symbol("yb"),Ela=Symbol("zb"),Gla=Symbol("Ab"),Cla=Kb(function(a){return xka(a)&&Rlb in a});var rka={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextPerComponent:h9a,enableSinkLazyTsx:i9a,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1};var ah=Object.assign({},{attributes:{},handleError:function(a){throw a;}},rka);var yka=Symbol("Bb"),cB={},vka=(cB[yka]=!0,cB.debugName="[component]",cB.getComponentStack=function(){for(var a=[],b=this;b;)zka(b)&&a.push(b.debugName),b=b.parent;return a.reverse()},cB.registerSignal=function(){},cB.registerEffect=function(){},cB);var bh=null,dh=!1,Fka=1,gh=Symbol("Cb"),mh={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var dB=Symbol("Db"),eB=Symbol("Eb"),fh=Symbol("Fb"),Nka=Object.assign({},mh,{value:dB,dirty:!0,error:null,equal:Aka,kind:"computed",producerMustRecompute:function(a){return a.value===dB||a.value===eB},
producerRecomputeValue:function(a){if(a.value===eB)throw Error("Gb");var b=a.value;a.value=eB;var c=Kka(a),d=!1;try{var e=a.computation();ch(null);d=b!==dB&&b!==fh&&e!==fh&&a.equal(b,e)}catch(g){e=fh,a.error=g}finally{Lka(a,c)}d?a.value=b:(a.value=e,a.version++)}});var Rka=function(){throw Error();};var Ska=null,Pka=Object.assign({},mh,{equal:Aka,value:void 0,kind:"signal"});Object.assign({},mh,{value:dB,dirty:!0,error:null,equal:Aka,kind:"linkedSignal",producerMustRecompute:function(a){return a.value===dB||a.value===eB},
producerRecomputeValue:function(a){if(a.value===eB)throw Error("Gb");var b=a.value;a.value=eB;var c=Kka(a);try{var d=a.source();var e=a.computation(d,b===dB||b===fh?void 0:{source:a.sourceValue,value:b});a.sourceValue=d}catch(g){e=fh,a.error=g}finally{Lka(a,c)}b!==dB&&e!==fh&&a.equal(b,e)?a.value=b:(a.value=e,a.version++)}});Object.assign({},mh,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(a){a.schedule!==null&&a.schedule(a.ref)},
hasRun:!1,cleanupFn:function(){}});var Uka=Symbol("Hb");var Wka=Symbol("Ib"),jh=Symbol("Jb");var kh=Array.isArray;var vla;var Slb={},xla=ula(Object.assign({},{consumerAllowSignalWrites:!0},Slb)),ji=ula(Object.assign({},{consumerAllowSignalWrites:!0},Slb));var fB=function(){this.queue=new Set};
fB.prototype.remove=function(a){this.queue.delete(a)};
var Tlb=function(){fB.apply(this,arguments)};
_.z(Tlb,fB);Tlb.prototype.schedule=function(a){a.hasRun?this.queue.add(a):a.run()};
Tlb.prototype.flush=function(){if(this.queue.size){var a=this.queue;this.queue=new Set;Dla(a)}};
var Fla=new Tlb,Ulb=function(){fB.apply(this,arguments)};
_.z(Ulb,fB);Ulb.prototype.schedule=function(a){var b=this;return _.l(function(c){if(c.nextAddress==1)return a.hasRun?c.jumpTo(2):_.p(c,Promise.resolve(),3);if(c.nextAddress!=2)return a.run(),c.return();b.queue.add(a);_.ue(c)})};
Ulb.prototype.flush=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1){if(!a.queue.size)return c.return();b=a.queue;a.queue=new Set;return _.p(c,Promise.resolve(),2)}Dla(b);_.ue(c)})};
var Hla=new Ulb,Ala=[Fla,Hla],yla=[];Ska=function(){Bla();for(var a=_.h(yla),b=a.next();!b.done;b=a.next())b=b.value,b()};var sh=Symbol("Ob");var rh=[],Lla,Mla,Nla;var gB={},Vlb=Object.assign({},mh,(gB[Rlb]=!0,gB.effectType=Ela,gB.isResettableContext=!0,gB.producerNode=void 0,gB.hasRun=!1,gB.reactionFn=null,gB.consumerIsAlwaysLive=!0,gB.consumerAllowSignalWrites=!0,gB.consumerMarkedDirty=Ila,gB.run=function(){if(this.reactionFn!==null&&!this.isDisposed){if(dh)throw Error("Pb");this.dirty=!1;if(!this.hasRun||Gka(this)){this.hasRun=!0;cka(this);var a=Vg(this),b=Kka(this);tka("reactionRun",this.debugName);try{vh(this.reactionFn,{stack:this.componentStack})}finally{uka("reactionRun",
this.debugName),Lka(this,b),Xg(a)}}}},gB.componentStack=void 0,gB.debugName="[reaction]",gB[Symbol.dispose]=function(){Bka(this);
if(eh(this))for(var a=0;a<this.producerNode.length;a++)Cka(this.producerNode[a],this.producerIndexOfThis[a]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);a=_.h(Ala);for(var b=a.next();!b.done;b=a.next())b.value.remove(this);bka(this)},gB));var Pla=Object.assign({},Vlb,{effectType:Gla});var Qla=Object.assign({},Vlb,{effectType:Ela});var Rla=Symbol("Qb");var zma=new Set("allowfullscreen async autofocus autoplay checked controls default defer disabled formnovalidate hidden ismap itemscope jsshadow jsslot loop multiple muted novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var Vh=Symbol("Rb");var fi=function(){},ni=function(a){this.props=a;
this.__unmounted=!1};
ni.prototype.didPatch=function(){};
ni.prototype.didMount=function(){};
ni.prototype.didUnmount=function(){};
ni.prototype.didUpdate=function(){};var Ula={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,id:10,
ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,valign:1,value:1,width:1,wrap:1},Tla={a:{href:[{contract:3}]},area:{href:[{contract:3}]},
audio:{src:[{contract:3}]},button:{formaction:[{contract:3}],formmethod:[{contract:1}]},form:{action:[{contract:3}],method:[{contract:1}]},iframe:{srcdoc:[{contract:2}]},img:{src:[{contract:3}],srcset:[{contract:11}]},input:{accept:[{contract:1}],formaction:[{contract:3}],formmethod:[{contract:1}],pattern:[{contract:1}],readonly:[{contract:1}],src:[{contract:3}]},link:{href:[{contract:3,contingentAttribute:"rel",requiredValue:"alternate"},{contract:3,contingentAttribute:"rel",requiredValue:"author"},
{contract:3,contingentAttribute:"rel",requiredValue:"bookmark"},{contract:3,contingentAttribute:"rel",requiredValue:"canonical"},{contract:3,contingentAttribute:"rel",requiredValue:"cite"},{contract:3,contingentAttribute:"rel",requiredValue:"help"},{contract:3,contingentAttribute:"rel",requiredValue:"icon"},{contract:3,contingentAttribute:"rel",requiredValue:"license"},{contract:3,contingentAttribute:"rel",requiredValue:"next"},{contract:3,contingentAttribute:"rel",requiredValue:"prefetch"},{contract:3,
contingentAttribute:"rel",requiredValue:"dns-prefetch"},{contract:3,contingentAttribute:"rel",requiredValue:"prerender"},{contract:3,contingentAttribute:"rel",requiredValue:"preconnect"},{contract:3,contingentAttribute:"rel",requiredValue:"preload"},{contract:3,contingentAttribute:"rel",requiredValue:"prev"},{contract:3,contingentAttribute:"rel",requiredValue:"search"},{contract:3,contingentAttribute:"rel",requiredValue:"subresource"}]},script:{defer:[{contract:1}]},source:{src:[{contract:3}],srcset:[{contract:11}]},
textarea:{readonly:[{contract:1}]},video:{src:[{contract:3}]}},sza={a:1,abbr:1,acronym:1,address:1,applet:4,area:5,article:1,aside:1,audio:1,b:1,base:4,basefont:1,bdi:1,bdo:1,big:1,blockquote:1,body:1,br:5,button:1,canvas:1,caption:1,center:1,cite:1,code:1,col:5,colgroup:1,command:1,data:1,datalist:1,dd:1,del:1,details:1,dfn:1,dialog:1,dir:1,div:1,dl:1,dt:1,em:1,embed:4,fieldset:1,figcaption:1,figure:1,font:1,footer:1,form:1,frame:1,frameset:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,head:1,header:1,hgroup:1,
hr:5,html:1,i:1,iframe:1,img:5,input:5,ins:1,kbd:1,label:1,legend:1,lh:1,li:1,link:5,main:1,map:1,mark:1,math:4,menu:1,meta:4,meter:1,nav:1,nobr:1,noscript:1,object:4,ol:1,optgroup:1,option:1,output:1,p:1,param:5,picture:1,pre:1,progress:1,q:1,rb:1,rp:1,rt:1,rtc:1,ruby:1,s:1,samp:1,script:3,section:1,select:1,slot:1,small:1,source:5,span:1,strike:1,strong:1,style:2,sub:1,summary:1,sup:1,svg:4,table:1,tbody:1,td:1,template:4,textarea:6,tfoot:1,th:1,thead:1,time:1,title:6,tr:1,track:5,tt:1,u:1,ul:1,
"var":1,video:1,wbr:5},Xla=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],Wla={"*":{async:1,dir:0,loading:2,target:3}};var Wlb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,hB={},Zla=(hB[1]=null,hB[2]=function(a,b){return b instanceof Od?Rd(b):Hd.toString()},hB[3]=function(a,b){return Dd(b)?_.Ed(b):Wlb.test(String(b))?String(b):Hd.toString()},hB[4]=function(a,b){return b instanceof wd?_.zd(b):Hd.toString()},hB[5]=function(a,b){return String(b)},hB[7]=null,hB[8]=null,hB[10]=null,hB);var Rua=Symbol("Ub");var Y2a=function(a){var b=Xlb,c=a,d="",e="",g=1;a<0&&(a=-a);if(a===Infinity)a=(Infinity*Math.sign(c)).toString();else{for(var k=0;k<Ylb.length;k++){var m=Ylb[k];g=b[m];if(a>=g||g<=1&&a>.1*g){d=m;break}}d?(d+="B",e=" "):g=1;a=Math.round(c/g*10)/10+e+d}return a},Ylb="Y Z E P T G M K  m u n".split(" "),Xlb={"":1,
n:9.313225746154785E-10,u:9.5367431640625E-7,m:1/1024,k:1024,K:1024,M:1048576,G:1073741824,T:1099511627776,P:0x4000000000000,E:0x1000000000000000,Z:1.1805916207174113E21,Y:1.2089258196146292E24};_.Zlb=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]");var bi={};RegExp.prototype.hasOwnProperty("sticky");var Cma=function(a){a=String(a);for(var b=function(d,e,g){for(var k=Math.min(e.length-g,d.length),m=0;m<k;m++){var n=e[g+m];if(d[m]!==("A"<=n&&n<="Z"?n.toLowerCase():n))return!1}return!0},c=0;(c=a.indexOf("<",c))!=-1;){if(b("\x3c/script",a,c)||b("\x3c!--",a,c))return"zSoyz";
c+=1}return a};var Eh={default:"__default"};var fma=Object.prototype.hasOwnProperty;bma.prototype=Object.create(null);var Vl=ima();var Qh=null;var tma=function(a){this.created=[];this.deleted=[];this.node=a};var uma=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var a=this,b=a;a;)b=a,a=a.parentNode;return b};var kma=function(a,b){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=a;this.key=b;this.text=void 0};var Jh=null,Kh=null,Gh=null,Mh=null,pma=[],oma=mma,Oh=[],Ph=[],Tl=function(a){return vma(function(b,c,d){Gh=Kh=b;Kh=null;c(d);nma(null);Kh=Gh;Gh=Gh.parentNode;return b},a)}(),Qua=function(a){return vma(function(b,c,d){var e={nextSibling:b};
Kh=e;c(d);Gh&&nma(b.nextSibling);return e===Kh?null:Kh},a)}();var Rh=[],xma=0;var Sh=new bma;var us=new bma;var $lb=ima(),Bma=$lb[Eh.default],Dma=$lb.style,Ama=["focusin","focusout"];var rna=function(){},gna=function(){},wna=function(){},tna=function(){};var Uh=Symbol("ac");var Kma,Jma=Ima;var di=Symbol("bc");var Mma=[],Lma=0,Nma=ka;var ana={};var vna=new Set("a altGlyph altGlyphDef altGlyphItem animate animateColor animateMotion animateTransform circle clipPath color-profile cursor defs desc ellipse feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feDropShadow feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence filter font font-face font-face-format font-face-name font-face-src font-face-uri foreignObject g glyph glyphRef hkern image line linearGradient marker mask metadata missing-glyph mpath path pattern polygon polyline radialGradient rect script set stop style svg switch symbol text textPath title tref tspan use view vkern".split(" ")),
una=new Set(["a","font","script","style","title"]);var ki={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var li=null,mi=function(a,b){ni.call(this,a);var c=this;this.functionComponent=b;this.hooks=[];this.hookCounter=0;this.disposeEffects=Ah(function(d){c.effectContext=d;_.zh(function(){kna(c,c.el)})},ah.alwaysTrackContexts||!!_.Ug)};
_.z(mi,ni);mi.prototype.render=function(a){var b=li;li=this;this.hookCounter=0;var c=ch(ji),d=Vg(this.effectContext);try{return tka("render",this.componentName),this.functionComponent(a)}finally{uka("render",this.componentName),Xg(d),ch(c),li=b}};
_.Um.Object.defineProperties(mi.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.functionComponent.debugName)!=null?a:this.functionComponent.name)!=null?b:"[component]"}}});var xna=Symbol("qc"),pna=function(a,b,c){this.kind=a;this.props=b;this.children=c};
_.z(pna,fi);pna.prototype.render=function(){return ona(this.kind,this.props,this.children)};
pna.prototype.getChildren=function(){return this.children};var zna=[];Rka=function(a){throw Error("sb`"+a.debugName);};
(function(){var a=Qh;Qh=function(b){a==null||a(b);Ana(b)}})();var amb=void 0,bmb={},cmb=new WeakMap,Bna={getComponent:function(a){if(a.hasAttribute("ng-version"))return bmb;if(!a.__wizComponent)return null;a=a.__wizComponent;cmb.set(a.propsAndState,a);return a.propsAndState},
getDirectiveMetadata:function(a){if(a===bmb)return{framework:"wiz",name:"<Root>",props:{}};a=cmb.get(a);if(!a)throw Error("rc");return{framework:"wiz",name:a.name,props:Object.fromEntries(Object.keys(a.props).map(function(b){return[b,b]}))}},
"\u0275setProfiler":function(a){var b;(b=amb)==null||b();amb=zla(function(){a(2)})},
isSignal:function(a){return typeof a==="function"&&a[gh]!==void 0}};Kma=qna;var Hna=Symbol("vc");var Ina={nonNullableCondIsNull:function(){return Error("wc")}};_.q.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE!=null||(_.q.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE={});_.q.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE.isGoatEnabled=function(){return!1};var Ona=function(){this.map=new Map};
Ona.prototype.push=function(a,b){var c=this.map;c.has(a)&&(this.multi||(this.multi=new Map),this.multi.set(b,c.get(a)));c.set(a,b)};
Ona.prototype.pop=function(a){var b=this.map,c=b.get(a),d;c!==void 0&&((d=this.multi)==null?0:d.has(c))?(b.set(a,this.multi.get(c)),this.multi.delete(c)):b.delete(a);return c};var Una={LOG_NULL_EL_REF_VALUE:function(){return Error("xc")},
OUT_OF_ORDER_HOOK_CALL:function(a){return Error("yc`"+a)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("zc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("Ac")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("Bc")},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(a,b){return Error("Cc`"+a+"`"+b)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(a){return Error("Dc`"+a)},
USE_ELEMENT_NOT_ASSIGNED:function(a){return Error("Ec`"+String(a))}};ina({beforeRender:function(a){var b=Vg(a.effectContext);try{var c;((c=a.__syncEffects)==null?0:c.length)&&Yna(a.__syncEffects)}finally{Xg(b)}},
didPatch:function(a){var b=Vg(a.effectContext);try{var c;((c=a.__syncEffects)==null?0:c.length)&&Yna(a.__syncEffects)}finally{Xg(b)}},
didUnmount:function(a){var b;((b=a.hooks)==null?0:b.length)&&a.hooks.forEach(Xna)}});var dmb,emb,fmb;dmb=_.ja.window;_.Di=(dmb==null?void 0:(emb=dmb.yt)==null?void 0:emb.config_)||(dmb==null?void 0:(fmb=dmb.ytcfg)==null?void 0:fmb.data_)||{};_.Rj("yt.config_",_.Di);var gmb={},boa=[];_.qj=function(a){var b=_.Kd.apply(1,arguments);var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.args=[].concat(_.De(b));Object.setPrototypeOf(this,this.constructor.prototype)};
_.z(_.qj,Error);var bCa=function(a,b,c){this.actionName=a;this.optionalAction=b===void 0?!1:b;this.args=c===void 0?null:c;this.returnValue=[]};_.X=function(a){this.name=a};_.Il=new _.X("signalAction");var moa=/^[\w.]*$/,goa={q:!0,search_query:!0},foa=String(eoa);var iB;iB=Symbol("Fc");_.jB=function(a){this.name=a};
_.jB.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var noa=function(a){this.key=a},qoa=function(a){this.deferredKey=a},poa=function(){var a=this;
this.providers=new Map;this.JSC$8245_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(a.providers)}}};
poa.prototype.addProvider=function(a){this.providers.set(a.provide,a);var b=this.JSC$8245_deferred.get(a.provide);if(b)try{b.resolver(this.resolve(a.provide))}catch(c){b.rejector(c)}};
poa.prototype.resolve=function(a){return a instanceof qoa?hmb(this,a):a instanceof noa?imb(this,a.key,[],!0):imb(this,a,[])};
var hmb=function(a,b){b=b.deferredKey;if(a.JSC$8245_deferred.has(b))return a.JSC$8245_deferred.get(b).promise;var c={};c.promise=new Promise(function(d,e){c.resolver=d;c.rejector=e});
a.JSC$8245_deferred.set(b,c);return c.promise},imb=function(a,b,c,d){d=d===void 0?!1:d;
if(c.indexOf(b)>-1)throw Error("Gc`"+b);if(a.cachedValues.has(b))return a.cachedValues.get(b);if(!a.providers.has(b)){if(d)return;throw Error("Hc`"+b);}d=a.providers.get(b);c.push(b);if(d.useValue!==void 0)var e=d.useValue;else if(d.useFactory)e=d[iB]?jmb(a,d[iB],c):[],e=d.useFactory.apply(d,_.De(e));else if(d.useClass){e=d.useClass;var g=e[iB]?jmb(a,e[iB],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(_.De(g))))}else throw Error("Ic`"+b);c.pop();d.skipCache||a.cachedValues.set(b,e);return e},
jmb=function(a,b,c){return b?b.map(function(d){return d instanceof noa?imb(a,d.key,c,!0):imb(a,d,c)}):[]};var ooa;var Jl=new _.jB("ENDPOINT_HANDLER_TOKEN");_.Kl=new _.X("urlEndpoint");var kmb=function(){this.data=[];this.cachedPackedInt52=-1};
kmb.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.cachedPackedInt52=-1)};
kmb.prototype.get=function(a){return!!this.data[a]};
var lmb=function(a){a.cachedPackedInt52===-1&&(a.cachedPackedInt52=a.data.reduce(function(b,c,d){return b+(c?Math.pow(2,d):0)},0));
return a.cachedPackedInt52};var Eoa=function(a){var b=mmb;a=a===void 0?_.Ji("yt.ads.biscotti.lastId_")||"":a;var c=Object,d=c.assign,e={};e.dt=qhb;e.flash="0";a:{try{var g=b.JSC$8251_win_.top.location.href}catch(Ba){g=2;break a}g=g?g===b.doc_.location.href?0:1:2}e=(e.frm=g,e);try{e.u_tz=-(new Date).getTimezoneOffset();var k=k===void 0?Zz:k;try{var m=k.history.length}catch(Ba){m=0}e.u_his=m;var n;e.u_h=(n=Zz.screen)==null?void 0:n.height;var r;e.u_w=(r=Zz.screen)==null?void 0:r.width;var t;e.u_ah=(t=Zz.screen)==null?void 0:t.availHeight;
var u;e.u_aw=(u=Zz.screen)==null?void 0:u.availWidth;var x;e.u_cd=(x=Zz.screen)==null?void 0:x.colorDepth}catch(Ba){}m=b.JSC$8251_win_;try{var A=m.screenX;var C=m.screenY}catch(Ba){}try{var F=m.outerWidth;var J=m.outerHeight}catch(Ba){}try{var I=m.innerWidth;var R=m.innerHeight}catch(Ba){}try{var da=m.screenLeft;var V=m.screenTop}catch(Ba){}try{I=m.innerWidth,R=m.innerHeight}catch(Ba){}try{var fa=m.screen.availWidth;var aa=m.screen.availTop}catch(Ba){}A=[da,V,A,C,fa,aa,F,J,I,R];C=Vfa(!1,b.JSC$8251_win_.top);
F={};var ma=ma===void 0?_.ja:ma;J=new kmb;"SVGElement"in ma&&"createElementNS"in ma.document&&J.set(0);I=Jcb();I["allow-top-navigation-by-user-activation"]&&J.set(1);I["allow-popups-to-escape-sandbox"]&&J.set(2);ma.crypto&&ma.crypto.subtle&&J.set(3);"TextDecoder"in ma&&"TextEncoder"in ma&&J.set(4);ma=lmb(J);b=(F.bc=ma,F.bih=C.height,F.biw=C.width,F.brdim=A.join(),F.vis=Nha(b.doc_),F.wgl=!!Zz.WebGLRenderingContext,F);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c},mmb=new function(){var a=
window.document;
this.JSC$8251_win_=window;this.doc_=a};
_.Rj("yt.ads_.signals_.getAdSignalsString",function(a){return hoa(Eoa(a))});_.rx();navigator.userAgent.indexOf(" (CrKey ");var voa="XMLHttpRequest"in _.ja?function(){return new XMLHttpRequest}:null;var nmb="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),omb=[].concat(_.De(nmb),["client_dev_set_cookie"]);var Doa={Authorization:"AUTHORIZATION","X-Goog-EOM-Visitor-Id":"EOM_VISITOR_DATA","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL",
"X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},yoa="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(_.De(nmb)),Noa=!1,Aoa=_.Foa,Koa=Coa;var jua=[{messageFn:function(a){return"Cannot read property '"+a.key+"'"},
patternsForType:{Error:[{regexp:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{regexp:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{regexp:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{regexp:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
groups:["value","key"]},{regexp:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{regexp:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{regexp:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{messageFn:function(a){return"Cannot call '"+a.key+"'"},
patternsForType:{TypeError:[{regexp:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{regexp:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{regexp:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{regexp:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{regexp:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,
groups:["key"]},{regexp:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{messageFn:function(a){return a.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var pmb={messageWeights:[],callbackWeights:[{callback:Roa,weight:500}]};var qmb=function(){this.callbackWeights=[];this.messageWeights=[]},rmb,iua=function(){if(!rmb){var a=rmb=new qmb;
a.messageWeights.length=0;a.callbackWeights.length=0;E5a(a,pmb)}return rmb},E5a=function(a,b){b.messageWeights&&a.messageWeights.push.apply(a.messageWeights,b.messageWeights);
b.callbackWeights&&a.callbackWeights.push.apply(a.callbackWeights,b.callbackWeights)};_.sx(_.jj,_.vg);_.jj.prototype.subscribe=function(a,b,c){var d=this.topics_[a];d||(d=this.topics_[a]=[]);var e=this.JSC$8275_key_;this.subscriptions_[e]=a;this.subscriptions_[e+1]=b;this.subscriptions_[e+2]=c;this.JSC$8275_key_=e+3;d.push(e);return e};
var smb=function(a){var b=nua,c=!1,d=b.subscribe("handleError",function(e){c||(c=!0,this.unsubscribeByKey(d),a.apply(void 0,arguments))},b)};
_.jj.prototype.unsubscribe=function(a,b,c){if(a=this.topics_[a]){var d=this.subscriptions_;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.unsubscribeByKey(a)}return!1};
_.jj.prototype.unsubscribeByKey=function(a){var b=this.subscriptions_[a];if(b){var c=this.topics_[b];this.publishDepth_!=0?(this.pendingKeys_.push(a),this.subscriptions_[a+1]=function(){}):(c&&_.Qa(c,a),delete this.subscriptions_[a],delete this.subscriptions_[a+1],delete this.subscriptions_[a+2])}return!!b};
_.jj.prototype.publish=function(a,b){var c=this.topics_[a];if(c){var d=Array(arguments.length-1),e=arguments.length,g;for(g=1;g<e;g++)d[g-1]=arguments[g];if(this.async_)for(g=0;g<c.length;g++)e=c[g],tmb(this.subscriptions_[e+1],this.subscriptions_[e+2],d);else{this.publishDepth_++;try{for(g=0,e=c.length;g<e&&!this.isDisposed();g++){var k=c[g];this.subscriptions_[k+1].apply(this.subscriptions_[k+2],d)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;c=this.pendingKeys_.pop();)this.unsubscribeByKey(c)}}return g!=
0}return!1};
var tmb=function(a,b,c){_.Jz(function(){a.apply(b,c)})};
_.jj.prototype.clear=function(a){if(a){var b=this.topics_[a];b&&(b.forEach(this.unsubscribeByKey,this),delete this.topics_[a])}else this.subscriptions_.length=0,this.topics_={}};
_.jj.prototype.getCount=function(a){if(a){var b=this.topics_[a];return b?b.length:0}a=0;for(b in this.topics_)a+=this.getCount(b);return a};
_.jj.prototype.disposeInternal=function(){_.jj.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var nua=new _.jj;var ak=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(ak,_.bd);ak.prototype.getColdHashData=function(){return _.Tx(this,3)};
ak.prototype.getHotHashData=function(){return _.Tx(this,5)};
ak.prototype.setHotHashData=function(a){return _.vf(this,5,a)};var eqa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(eqa,_.bd);var Fta=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Fta,_.bd);_.f=Fta.prototype;_.f.getDeviceId=function(){return _.Tx(this,6)};
_.f.getExperimentIds=function(a){var b=_.Pc(this,9,_.ec,3,!0);Saa(b,a);return b[a]};
_.f.getPlayerType=function(){return _.Ux(this,36)};
_.f.setHomeGroupInfo=function(a){return _.qd(this,81,a)};
_.f.clearLocationPlayabilityToken=function(){return _.Zj(this,89)};var ll=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(ll,_.bd);ll.prototype.setKey=function(a){return _.vf(this,1,a)};
ll.prototype.getValue=function(){return Wx(this,2,Hta)};
var Hta=[2,3,4,5,6];var umb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(umb,_.bd);umb.prototype.setTrackingParams=function(a){return _.Zj(this,1,_.Eb(a,!1))};var Gta=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Gta,_.bd);var hqa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(hqa,_.bd);hqa.prototype.getExperimentIds=function(a){var b=_.Pc(this,5,_.nba,3,!0);Saa(b,a);return b[a]};var pl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(pl,_.bd);pl.prototype.getToken=function(){return _.og(this,2)};
pl.prototype.setToken=function(a){return _.vf(this,2,a)};var nl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(nl,_.bd);nl.prototype.setSafetyMode=function(a){return _.Yj(this,5,a)};var kl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(kl,_.bd);kl.prototype.setClient=function(a){return _.qd(this,1,a)};var gqa={WEB_DISPLAY_MODE_UNKNOWN:"WEB_DISPLAY_MODE_UNKNOWN",WEB_DISPLAY_MODE_BROWSER:"WEB_DISPLAY_MODE_BROWSER",WEB_DISPLAY_MODE_MINIMAL_UI:"WEB_DISPLAY_MODE_MINIMAL_UI",WEB_DISPLAY_MODE_STANDALONE:"WEB_DISPLAY_MODE_STANDALONE",WEB_DISPLAY_MODE_FULLSCREEN:"WEB_DISPLAY_MODE_FULLSCREEN"};var fqa;_.Lq=function(){var a=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.ja.addEventListener("beforeinstallprompt",function(b){b.preventDefault();a.deferredInstallPrompt=b});
_.ja.addEventListener("appinstalled",function(){a.appInstalledEventFired=!0},{once:!0})};
fqa=function(){if(!_.ja.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.ja.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.ja.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.ja.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.ja.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};var kqa=function(){this.syncHeaders=!0},lqa=function(a){var b={},c=[];
"USER_SESSION_ID"in _.Di&&c.push({key:"u",value:_.Fi("USER_SESSION_ID")});if(c=Gra(c))b.Authorization=c,c=a=a==null?void 0:a.sessionIndex,c===void 0&&(c=Number(_.Fi("SESSION_INDEX",0)),c=isNaN(c)?0:c),_.w("voice_search_auth_header_removal")||(b["X-Goog-AuthUser"]=c.toString()),"INNERTUBE_HOST_OVERRIDE"in _.Di||(b["X-Origin"]=window.location.origin),a===void 0&&"DELEGATED_SESSION_ID"in _.Di&&(b["X-Goog-PageId"]=_.Fi("DELEGATED_SESSION_ID"));return b};var vmb={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var kB=_.Ji("ytglobal.prefsUserPrefsPrefs_")||{},wmb;_.Rj("ytglobal.prefsUserPrefsPrefs_",kB);_.lB=function(){this.cookieName=_.Fi("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.Fi("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=_.lj.get(this.cookieName,void 0);a&&this.parse(a)};
_.yo=function(){wmb||(wmb=new _.lB);return wmb};
_.lB.prototype.get=function(a,b){xmb(a);ymb(a);a=kB[a]!==void 0?kB[a].toString():null;return a!=null?a:b?b:""};
_.lB.prototype.set=function(a,b){xmb(a);ymb(a);if(b==null)throw Error("Lc");kB[a]=b.toString()};
_.lB.prototype.getFlag=function(a){return!!((zmb("f"+(Math.floor(a/31)+1))||0)&1<<a%31)};
_.zo=function(a,b,c){a="f"+(Math.floor(b/31)+1);b=1<<b%31;var d=zmb(a)||0;d=c?d|b:d&~b;d===0?delete kB[a]:(c=d.toString(16),kB[a]=c.toString())};
_.lB.prototype.remove=function(a){xmb(a);ymb(a);delete kB[a]};
_.lB.prototype.save=function(){var a=!0;_.w("web_secure_pref_cookie_killswitch")&&(a=!1);_.mj(this.cookieName,this.dump(),63072E3,this.cookieDomain,a)};
_.lB.prototype.clear=function(){_.Cf.clear(kB)};
_.lB.prototype.dump=function(){var a=[],b;for(b in kB)kB.hasOwnProperty(b)&&a.push(b+"="+encodeURIComponent(String(kB[b])));return a.join("&")};
var ymb=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("Mc`"+a);},xmb=function(a){if(!/^\w+$/.test(a))throw Error("Nc`"+a);
},zmb=function(a){a=kB[a]!==void 0?kB[a].toString():null;
return a!=null&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
_.lB.prototype.parse=function(a){a=decodeURIComponent(a).split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=c[0];(c=c[1])&&(kB[d]=c.toString())}};var $oa={bluetooth:"CONN_DISCO",cellular:"CONN_CELLULAR_UNKNOWN",ethernet:"CONN_WIFI",none:"CONN_NONE",wifi:"CONN_WIFI",wimax:"CONN_CELLULAR_4G",other:"CONN_UNKNOWN",unknown:"CONN_UNKNOWN","slow-2g":"CONN_CELLULAR_2G","2g":"CONN_CELLULAR_2G","3g":"CONN_CELLULAR_3G","4g":"CONN_CELLULAR_4G"},iqa={CONN_DEFAULT:0,CONN_UNKNOWN:1,CONN_NONE:2,CONN_WIFI:3,CONN_CELLULAR_2G:4,CONN_CELLULAR_3G:5,CONN_CELLULAR_4G:6,CONN_CELLULAR_UNKNOWN:7,CONN_DISCO:8,CONN_CELLULAR_5G:9,CONN_WIFI_METERED:10,CONN_CELLULAR_5G_SA:11,
CONN_CELLULAR_5G_NSA:12,CONN_WIRED:30,CONN_INVALID:31},jqa={EFFECTIVE_CONNECTION_TYPE_UNKNOWN:0,EFFECTIVE_CONNECTION_TYPE_OFFLINE:1,EFFECTIVE_CONNECTION_TYPE_SLOW_2G:2,EFFECTIVE_CONNECTION_TYPE_2G:3,EFFECTIVE_CONNECTION_TYPE_3G:4,EFFECTIVE_CONNECTION_TYPE_4G:5},bpa={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var Xs;_.mB=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.sl=function(a,b,c){return a.addJob(b,0,c)};
_.mB.prototype.addLowPriorityJob=function(a,b){return this.addJob(a,1,b)};
_.zu=function(a,b,c){return a.addJob(b,2,c)};
_.Gu=function(a,b,c){return a.addJob(b,3,c)};
_.Ys=function(a,b,c){return a.addJob(b,4,c)};
Xs=function(a){var b=_.Ji("yt.scheduler.instance.addImmediateJob");b?b(a):a()};
_.mB.prototype.debounce=function(a,b,c){var d=this,e=0,g=function(){e&&d.cancelJob(e);e=d.addJob(a,b,c);d.cancelDebouncedJobMap.set(g,e)};
return g};
_.mB.prototype.cancelThrottle=function(a){(a=this.cancelThrottledJobMap.get(a))&&a()};var nB=function(){_.mB.apply(this,arguments)};
_.z(nB,_.mB);_.Qw=function(){nB.instance||(nB.instance=new nB);return nB.instance};
nB.prototype.addJob=function(a,b,c){c!==void 0&&Number.isNaN(Number(c))&&(c=void 0);var d=_.Ji("yt.scheduler.instance.addJob");return d?d(a,b,c):c===void 0?(a(),NaN):_.dj(a,c||0)};
nB.prototype.cancelJob=function(a){if(a===void 0||!Number.isNaN(Number(a))){var b=_.Ji("yt.scheduler.instance.cancelJob");b?b(a):_.fj(a)}};
nB.prototype.start=function(){var a=_.Ji("yt.scheduler.instance.start");a&&a()};
nB.prototype.pause=function(){var a=_.Ji("yt.scheduler.instance.pause");a&&a()};
_.zk=_.Qw();_.rj.prototype.set=function(a,b){b===void 0?this.mechanism.remove(a):this.mechanism.set(a,(0,_.Oz)(b))};
_.rj.prototype.get=function(a){try{var b=this.mechanism.get(a)}catch(c){return}if(b!==null)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
_.rj.prototype.remove=function(a){this.mechanism.remove(a)};var oB=function(a){this.mechanism=a};
_.sx(oB,_.rj);var Amb=function(a){this.data=a},Bmb=function(a){return a===void 0||a instanceof Amb?a:new Amb(a)};
oB.prototype.set=function(a,b){oB.superClass_.set.call(this,a,Bmb(b))};
oB.prototype.getWrapper=function(a){a=oB.superClass_.get.call(this,a);if(a===void 0||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
oB.prototype.get=function(a){if(a=this.getWrapper(a)){if(a=a.data,a===void 0)throw"Storage: Invalid value was encountered";}else a=void 0;return a};_.sx(sj,oB);_.Cmb=function(a){var b=a.creation;a=a.expiration;return!!a&&a<_.rx()||!!b&&b>_.rx()};
sj.prototype.set=function(a,b,c){if(b=Bmb(b)){if(c){if(c<_.rx()){sj.prototype.remove.call(this,a);return}b.expiration=c}b.creation=_.rx()}sj.superClass_.set.call(this,a,b)};
sj.prototype.getWrapper=function(a,b){var c=sj.superClass_.getWrapper.call(this,a);if(c)if(!b&&_.Cmb(c))sj.prototype.remove.call(this,a);else return c};var pB=function(){};
pB.prototype.next=function(){return qB};
var qB={done:!0,value:void 0},rB=function(a){return{value:a,done:!1}};
pB.prototype.__iterator__=function(){return this};
_.Dmb=function(a){if(a instanceof pB)return a;if(typeof a.__iterator__=="function")return a.__iterator__(!1);if(_.Sa(a)){var b=0,c=new pB;c.next=function(){for(;;){if(b>=a.length)return qB;if(b in a)return rB(a[b++]);b++}};
return c}throw Error("Oc");};var Emb=function(a){if(a instanceof sB||a instanceof tB||a instanceof uB)return a;if(typeof a.next=="function")return new sB(function(){return a});
if(typeof a[Symbol.iterator]=="function")return new sB(function(){return a[Symbol.iterator]()});
if(typeof a.__iterator__=="function")return new sB(function(){return a.__iterator__()});
throw Error("Pc");},sB=function(a){this.func_=a};
sB.prototype.__iterator__=function(){return new tB(this.func_())};
sB.prototype[Symbol.iterator]=function(){return new uB(this.func_())};
sB.prototype.toEs6=function(){return new uB(this.func_())};
var tB=function(a){this.JSC$8359_iter_=a};
_.z(tB,pB);tB.prototype.next=function(){return this.JSC$8359_iter_.next()};
tB.prototype[Symbol.iterator]=function(){return new uB(this.JSC$8359_iter_)};
tB.prototype.toEs6=function(){return new uB(this.JSC$8359_iter_)};
var uB=function(a){sB.call(this,function(){return a});
this.JSC$8362_iter_=a};
_.z(uB,sB);uB.prototype.next=function(){return this.JSC$8362_iter_.next()};var Fmb=function(){};var vB=function(){};
_.sx(vB,Fmb);vB.prototype.getCount=function(){for(var a=0,b=_.h(this),c=b.next();!c.done;c=b.next())a++;return a};
vB.prototype[Symbol.iterator]=function(){return Emb(this.__iterator__(!0)).toEs6()};
vB.prototype.clear=function(){var a=Array.from(this);a=_.h(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};_.sx(tj,vB);_.f=tj.prototype;_.f.isAvailable=function(){if(!j9a||this.cachedIsStorageAvailable_===null){var a=this.storage_;if(a)try{performance.now();a.setItem("__sak","1");a.removeItem("__sak");performance.now();var b=!0}catch(c){b=c instanceof DOMException&&(c.name==="QuotaExceededError"||c.code===22||c.code===1014||c.name==="NS_ERROR_DOM_QUOTA_REACHED")&&a&&a.length!==0}else b=!1;this.cachedIsStorageAvailable_=b}return this.cachedIsStorageAvailable_};
_.f.set=function(a,b){wB(this);try{this.storage_.setItem(a,b)}catch(c){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.f.get=function(a){wB(this);a=this.storage_.getItem(a);if(typeof a!=="string"&&a!==null)throw"Storage mechanism: Invalid value was encountered";return a};
_.f.remove=function(a){wB(this);this.storage_.removeItem(a)};
_.f.getCount=function(){wB(this);return this.storage_.length};
_.f.__iterator__=function(a){wB(this);var b=0,c=this.storage_,d=new pB;d.next=function(){if(b>=c.length)return qB;var e=c.key(b++);if(a)return rB(e);e=c.getItem(e);if(typeof e!=="string")throw"Storage mechanism: Invalid value was encountered";return rB(e)};
return d};
_.f.clear=function(){wB(this);this.storage_.clear()};
_.f.key=function(a){wB(this);return this.storage_.key(a)};
var wB=function(a){if(a.storage_==null)throw Error("Qc");var b;(j9a?a.isAvailable():(b=a.cachedIsStorageAvailable_)!=null?b:a.isAvailable())||ka(Error("Qc"))};_.sx(dpa,tj);_.sx(epa,tj);_.sx(uj,vB);uj.prototype.set=function(a,b){this.mechanism_.set(this.JSC$8377_prefix_+a,b)};
uj.prototype.get=function(a){return this.mechanism_.get(this.JSC$8377_prefix_+a)};
uj.prototype.remove=function(a){this.mechanism_.remove(this.JSC$8377_prefix_+a)};
uj.prototype.__iterator__=function(a){var b=this.mechanism_[Symbol.iterator](),c=this,d=new pB;d.next=function(){var e=b.next();if(e.done)return e;for(e=e.value;e.slice(0,c.JSC$8377_prefix_.length)!=c.JSC$8377_prefix_;){e=b.next();if(e.done)return e;e=e.value}return rB(a?e.slice(c.JSC$8377_prefix_.length):c.mechanism_.get(e))};
return d};_.Ek=function(a){this.expiringStorage_=(a=_.fpa(a))?new sj(a):null;this.JSC$8381_domain_=document.domain||window.location.hostname};
_.Ek.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.expiringStorage_)try{this.expiringStorage_.set(a,b,Date.now()+c*1E3);return}catch(g){}var e="";if(d)try{e=escape((0,_.Oz)(b))}catch(g){return}else e=escape(b);_.mj(a,e,c,this.JSC$8381_domain_)};
_.Ek.prototype.get=function(a,b){var c=void 0,d=!this.expiringStorage_;if(!d)try{c=this.expiringStorage_.get(a)}catch(e){d=!0}if(d&&(c=_.lj.get(a,void 0))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
_.Ek.prototype.remove=function(a){this.expiringStorage_&&this.expiringStorage_.remove(a);_.Xoa(a,"/",this.JSC$8381_domain_)};
_.Ek.prototype.getCreationTime=function(a){return this.expiringStorage_&&(a=(this.expiringStorage_.getWrapper(a)||{}).creation,typeof a==="number")?a:null};var hpa=function(){var a;return function(){a||(a=new _.Ek("ytidb"));return a}}();var jpa;_.wj=[];jpa=!1;var Cpa=kpa||lpa;var xB={},Gmb=(xB.AUTH_INVALID="No user identifier specified.",xB.EXPLICIT_ABORT="Transaction was explicitly aborted.",xB.IDB_NOT_SUPPORTED="IndexedDB is not supported.",xB.MISSING_INDEX="Index not created.",xB.MISSING_OBJECT_STORES="Object stores not created.",xB.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",xB.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",xB.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",xB.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",xB.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",xB.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",xB.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",xB),yB={},Hmb=(yB.AUTH_INVALID="ERROR",yB.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",yB.EXPLICIT_ABORT="IGNORED",
yB.IDB_NOT_SUPPORTED="ERROR",yB.MISSING_INDEX="WARNING",yB.MISSING_OBJECT_STORES="ERROR",yB.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",yB.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",yB.QUOTA_EXCEEDED="WARNING",yB.QUOTA_MAYBE_EXCEEDED="WARNING",yB.UNKNOWN_ABORT="WARNING",yB.INCOMPATIBLE_DB_VERSION="WARNING",yB),zB={},Imb=(zB.AUTH_INVALID=!1,zB.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,zB.EXPLICIT_ABORT=!1,zB.IDB_NOT_SUPPORTED=!1,zB.MISSING_INDEX=!1,zB.MISSING_OBJECT_STORES=!1,zB.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,zB.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,zB.QUOTA_EXCEEDED=!1,zB.QUOTA_MAYBE_EXCEEDED=!0,zB.UNKNOWN_ABORT=!0,zB.INCOMPATIBLE_DB_VERSION=!1,zB),Cj=function(a,b,c,d,e){b=b===void 0?{}:b;c=c===void 0?Gmb[a]:c;d=d===void 0?Hmb[a]:d;e=e===void 0?Imb[a]:e;_.qj.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.retryable=e;Object.setPrototypeOf(this,Cj.prototype)};
_.z(Cj,_.qj);var Jmb=function(a,b){Cj.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},Gmb.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Jmb.prototype)};
_.z(Jmb,Cj);var npa=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,npa.prototype)};
_.z(npa,Error);var opa=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"];var Gj=function(a){this.executor=a},Fj=function(a){var b=this;
this.state={status:"PENDING"};this.JSC$8409_onFulfilled=[];this.JSC$8409_onRejected=[];a=a.executor;var c=function(e){if(b.state.status==="PENDING"){b.state={status:"FULFILLED",value:e};e=_.h(b.JSC$8409_onFulfilled);for(var g=e.next();!g.done;g=e.next())g=g.value,g()}},d=function(e){if(b.state.status==="PENDING"){b.state={status:"REJECTED",
reason:e};e=_.h(b.JSC$8409_onRejected);for(var g=e.next();!g.done;g=e.next())g=g.value,g()}};
try{a(c,d)}catch(e){d(e)}};
Fj.all=function(a){return new Fj(new Gj(function(b,c){var d=[],e=a.length;e===0&&b(d);for(var g={i$jscomp$503:0};g.i$jscomp$503<a.length;g={i$jscomp$503:g.i$jscomp$503},++g.i$jscomp$503)Fj.resolve(a[g.i$jscomp$503]).then(function(k){return function(m){d[k.i$jscomp$503]=m;e--;e===0&&b(d)}}(g)).catch(function(k){c(k)})}))};
Fj.resolve=function(a){return new Fj(new Gj(function(b,c){a instanceof Fj?a.then(b,c):b(a)}))};
Fj.reject=function(a){return new Fj(new Gj(function(b,c){c(a)}))};
Fj.prototype.then=function(a,b){var c=this,d=a!=null?a:rpa,e=b!=null?b:qpa;return new Fj(new Gj(function(g,k){c.state.status==="PENDING"?(c.JSC$8409_onFulfilled.push(function(){Kmb(c,c,d,g,k)}),c.JSC$8409_onRejected.push(function(){Lmb(c,c,e,g,k)})):c.state.status==="FULFILLED"?Kmb(c,c,d,g,k):c.state.status==="REJECTED"&&Lmb(c,c,e,g,k)}))};
Fj.prototype.catch=function(a){return this.then(void 0,a)};
var Kmb=function(a,b,c,d,e){try{if(a.state.status!=="FULFILLED")throw Error("Tc");var g=c(a.state.value);g instanceof Fj?Mmb(a,b,g,d,e):d(g)}catch(k){e(k)}},Lmb=function(a,b,c,d,e){try{if(a.state.status!=="REJECTED")throw Error("Uc");
var g=c(a.state.reason);g instanceof Fj?Mmb(a,b,g,d,e):d(g)}catch(k){e(k)}},Mmb=function(a,b,c,d,e){b===c?e(new TypeError("Vc")):c.then(function(g){g instanceof Fj?Mmb(a,b,g,d,e):d(g)},function(g){e(g)})};var AB;AB=window;_.Uj=AB.ytcsi&&AB.ytcsi.now?AB.ytcsi.now:AB.performance&&AB.performance.timing&&AB.performance.now&&AB.performance.timing.navigationStart?function(){return AB.performance.timing.navigationStart+AB.performance.now()}:function(){return(new Date).getTime()};var Ij=function(a,b){this.JSC$8421_wrapped=a;this.options=b;this.transactionCount=0;this.startedMs=Math.round((0,_.Uj)());this.hasUnknownAbortedTransaction=!1},Pmb,Qmb,DB,Tmb;
Ij.prototype.add=function(a,b,c){return _.Mj(this,[a],{mode:"readwrite",enableRetries:!0},function(d){return d.objectStore(a).add(b,c)})};
Ij.prototype.clear=function(a){return _.Mj(this,[a],{mode:"readwrite",enableRetries:!0},function(b){return b.objectStore(a).clear()})};
Ij.prototype.close=function(){this.JSC$8421_wrapped.close();var a;((a=this.options)==null?0:a.closed)&&this.options.closed()};
Ij.prototype.count=function(a,b){return _.Mj(this,[a],{mode:"readonly",enableRetries:!0},function(c){return c.objectStore(a).count(b)})};
var Gk=function(a,b,c){a=a.JSC$8421_wrapped.createObjectStore(b,c);return new BB(a)};
Ij.prototype.delete=function(a,b){return _.Mj(this,[a],{mode:"readwrite",enableRetries:!0},function(c){return c.objectStore(a).delete(b)})};
var Nmb=function(a,b){return _.Mj(a,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(c){return c.objectStore("ResponseStore").index("byInterface").delete(b)})};
Ij.prototype.get=function(a,b){return _.Mj(this,[a],{mode:"readonly",enableRetries:!0},function(c){return c.objectStore(a).get(b)})};
Ij.prototype.getAll=function(a,b,c){return _.Mj(this,[a],{mode:"readonly",enableRetries:!0},function(d){return d.objectStore(a).getAll(b,c)})};
Ij.prototype.put=function(a,b,c){return _.Mj(this,[a],{mode:"readwrite",enableRetries:!0},function(d){return d.objectStore(a).put(b,c)})};
Ij.prototype.objectStoreNames=function(){return Array.from(this.JSC$8421_wrapped.objectStoreNames)};
_.Mj=function(a,b,c,d){var e,g,k,m,n,r,t,u,x,A,C,F;return _.l(function(J){switch(J.nextAddress){case 1:var I={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof c==="string"?I.mode=c:Object.assign(I,c);e=I;a.transactionCount++;g=e.enableRetries?3:1;k=0;case 2:if(m){J.jumpTo(4);break}k++;n=Math.round((0,_.Uj)());_.pe(J,5);r=a.JSC$8421_wrapped.transaction(b,e.mode);I=new vpa(r);I=Omb(I,d);return _.p(J,I,7);case 7:return t=J.yieldResult,u=Math.round((0,_.Uj)()),Pmb(a,n,u,k,void 0,
b.join(),e),J.return(t);case 5:x=_.te(J);A=Math.round((0,_.Uj)());C=ppa(x,a.JSC$8421_wrapped.name,b.join(),a.JSC$8421_wrapped.version);if((F=C instanceof Cj&&!C.retryable)||k>=g)Pmb(a,n,A,k,C,b.join(),e),m=C;J.jumpTo(2);break;case 4:return J.return(Promise.reject(m))}})};
Pmb=function(a,b,c,d,e,g,k){b=c-b;e?(e instanceof Cj&&(e.type==="QUOTA_EXCEEDED"||e.type==="QUOTA_MAYBE_EXCEEDED")&&yj("QUOTA_EXCEEDED",{dbName:Aj(a.JSC$8421_wrapped.name),objectStoreNames:g,transactionCount:a.transactionCount,transactionMode:k.mode}),e instanceof Cj&&e.type==="UNKNOWN_ABORT"&&(c-=a.startedMs,c<0&&c>=2147483648&&(c=0),yj("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:g,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.hasUnknownAbortedTransaction=!0),
Qmb(a,!1,d,g,b,k.tag),_.xj(e)):Qmb(a,!0,d,g,b,k.tag)};
Qmb=function(a,b,c,d,e,g){yj("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.hasUnknownAbortedTransaction,duration:e,isSuccessful:b,tryCount:c,tag:g===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":g})};
Ij.prototype.getVersion=function(){return this.JSC$8421_wrapped.version};
Ij.prototype.getName=function(){return this.JSC$8421_wrapped.name};
var BB=function(a){this.JSC$8436_wrapped=a};
BB.prototype.add=function(a,b){return Hj(this.JSC$8436_wrapped.add(a,b))};
BB.prototype.autoIncrement=function(){return this.JSC$8436_wrapped.autoIncrement};
BB.prototype.clear=function(){return Hj(this.JSC$8436_wrapped.clear()).then(function(){})};
var Hk=function(a,b,c){a.JSC$8436_wrapped.createIndex(b,c,{unique:!1})};
BB.prototype.count=function(a){return Hj(this.JSC$8436_wrapped.count(a))};
var Rmb=function(a,b){return Oj(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
BB.prototype.delete=function(a){return a instanceof IDBKeyRange?Rmb(this,a):Hj(this.JSC$8436_wrapped.delete(a))};
BB.prototype.get=function(a){return Hj(this.JSC$8436_wrapped.get(a))};
BB.prototype.getAll=function(a,b){return"getAll"in IDBObjectStore.prototype?Hj(this.JSC$8436_wrapped.getAll(a,b)):Smb(this,a,b)};
var Smb=function(a,b,c){var d=[];return Oj(a,{query:b},function(e){if(!(c!==void 0&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
BB.prototype.index=function(a){try{return new CB(this.JSC$8436_wrapped.index(a))}catch(b){if(b instanceof Error&&b.name==="NotFoundError")throw new npa(a,this.JSC$8436_wrapped.name);throw b;}};
BB.prototype.getName=function(){return this.JSC$8436_wrapped.name};
BB.prototype.keyPath=function(){return this.JSC$8436_wrapped.keyPath};
BB.prototype.put=function(a,b){return Hj(this.JSC$8436_wrapped.put(a,b))};
var Oj=function(a,b,c){a=a.JSC$8436_wrapped.openCursor(b.query,b.direction);return Tmb(a).then(function(d){return upa(d,c)})},vpa=function(a){var b=this;
this.JSC$8444_wrapped=a;this.objectStoreCache=new Map;this.JSC$8444_aborted=!1;this.done=new Promise(function(c,d){b.JSC$8444_wrapped.addEventListener("complete",function(){c()});
b.JSC$8444_wrapped.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.JSC$8444_wrapped.error)});
b.JSC$8444_wrapped.addEventListener("abort",function(){var e=b.JSC$8444_wrapped.error;if(e)d(e);else if(!b.JSC$8444_aborted){e=Cj;for(var g=b.JSC$8444_wrapped.objectStoreNames,k=[],m=0;m<g.length;m++){var n=g.item(m);if(n===null)throw Error("Wc");k.push(n)}e=new e("UNKNOWN_ABORT",{objectStoreNames:k.join(),dbName:b.JSC$8444_wrapped.db.name,mode:b.JSC$8444_wrapped.mode});d(e)}})})},Omb=function(a,b){var c=new Promise(function(d,e){try{b(a).then(function(g){d(g)}).catch(e)}catch(g){e(g),a.abort()}});
return Promise.all([c,a.done]).then(function(d){return _.h(d).next().value})};
vpa.prototype.abort=function(){this.JSC$8444_wrapped.abort();this.JSC$8444_aborted=!0;throw new Cj("EXPLICIT_ABORT");};
vpa.prototype.objectStore=function(a){a=this.JSC$8444_wrapped.objectStore(a);var b=this.objectStoreCache.get(a);b||(b=new BB(a),this.objectStoreCache.set(a,b));return b};
var CB=function(a){this.JSC$8446_wrapped=a};
CB.prototype.count=function(a){return Hj(this.JSC$8446_wrapped.count(a))};
CB.prototype.delete=function(a){return _.Vj(this,{query:a},function(b){return b.delete().then(function(){return b.continue()})})};
CB.prototype.get=function(a){return Hj(this.JSC$8446_wrapped.get(a))};
CB.prototype.getAll=function(a,b){return"getAll"in IDBIndex.prototype?Hj(this.JSC$8446_wrapped.getAll(a,b)):Umb(this,a,b)};
var Umb=function(a,b,c){var d=[];return _.Vj(a,{query:b},function(e){if(!(c!==void 0&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
CB.prototype.keyPath=function(){return this.JSC$8446_wrapped.keyPath};
CB.prototype.unique=function(){return this.JSC$8446_wrapped.unique};
_.Vj=function(a,b,c){a=a.JSC$8446_wrapped.openCursor(b.query===void 0?null:b.query,b.direction===void 0?"next":b.direction);return Tmb(a).then(function(d){return upa(d,c)})};
DB=function(a,b){this.request=a;this.cursor=b};
Tmb=function(a){return Hj(a).then(function(b){return b?new DB(a,b):null})};
DB.prototype.continue=function(a){this.cursor.continue(a);return Tmb(this.request)};
DB.prototype.delete=function(){return Hj(this.cursor.delete()).then(function(){})};
DB.prototype.getValue=function(){return this.cursor.value};
DB.prototype.update=function(a){return Hj(this.cursor.update(a))};var EB=function(a,b){this.name=a;this.options=b;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},Vmb;
EB.prototype.openDb=function(a,b,c){c=c===void 0?{}:c;return xpa(a,b,c)};
EB.prototype.delete=function(a){a=a===void 0?{}:a;return _.Kj(this.name,a)};
Vmb=function(a,b){return new Cj("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
_.Lj=function(a,b){if(!b)throw Ej("openWithToken",Aj(a.name));return a.open()};
EB.prototype.open=function(){var a=this;if(!this.isCompatible)throw Vmb(this);if(this.connectionPromise)return this.connectionPromise;var b,c=function(){a.connectionPromise===b&&(a.connectionPromise=void 0)},d={blocking:function(g){g.close()},
closed:c,terminated:c,upgrade:this.options.upgrade},e=function(){var g,k,m,n,r,t,u,x,A,C;return _.l(function(F){switch(F.nextAddress){case 1:return k=(g=Error().stack)!=null?g:"",_.pe(F,2),_.p(F,a.openDb(a.name,a.options.version,d),4);case 4:for(var J=m=F.yieldResult,I=a.options,R=[],da=_.h(Object.keys(I.objectStores)),V=da.next();!V.done;V=da.next()){V=V.value;var fa=I.objectStores[V],aa=fa.removedAtVersion===void 0?Number.MAX_VALUE:fa.removedAtVersion;!(J.JSC$8421_wrapped.version>=fa.addedAtVersion)||
J.JSC$8421_wrapped.version>=aa||J.JSC$8421_wrapped.objectStoreNames.contains(V)||R.push(V)}n=R;if(n.length===0){F.jumpTo(5);break}r=Object.keys(a.options.objectStores);t=m.objectStoreNames();if(a.timesReopenedToFixMissingObjectStore<_.$i("ytidb_reopen_db_retries",0))return a.timesReopenedToFixMissingObjectStore++,m.close(),_.xj(new Cj("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:a.name,expectedObjectStores:r,foundObjectStores:t})),F.return(e());if(!(a.timesDeletedToFixMissingObjectStore<_.$i("ytidb_remake_db_retries",
1))){F.jumpTo(6);break}a.timesDeletedToFixMissingObjectStore++;return _.p(F,a.delete(),7);case 7:return _.xj(new Cj("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:a.name,expectedObjectStores:r,foundObjectStores:t})),F.return(e());case 6:throw new Jmb(t,r);case 5:return F.return(m);case 2:u=_.te(F);if(u instanceof DOMException?u.name!=="VersionError":"DOMError"in self&&u instanceof DOMError?u.name!=="VersionError":!(u instanceof Object&&"message"in u)||u.message!=="An attempt was made to open a database using a lower version than the existing version."){F.jumpTo(8);
break}return _.p(F,a.openDb(a.name,void 0,Object.assign({},d,{upgrade:void 0})),9);case 9:x=F.yieldResult;A=x.getVersion();if(a.options.version!==void 0&&A>a.options.version+1)throw x.close(),a.isCompatible=!1,Vmb(a,A);return F.return(x);case 8:throw c(),u instanceof Error&&!_.w("ytidb_async_stack_killswitch")&&(u.stack=u.stack+"\n"+k.substring(k.indexOf("\n")+1)),ppa(u,a.name,"",(C=a.options.version)!=null?C:-1);}})};
return this.connectionPromise=b=e()};var ypa=new EB("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(a,b){b(1)&&Gk(a,"databases",{keyPath:"actualName"})}});var Fpa,Dpa=new function(){}(new function(){});new _.hq;var Wmb=function(a,b){EB.call(this,a,b);this.options=b;zj(a)};
_.z(Wmb,EB);var Ppa=function(a,b){var c;return function(){c||(c=new Wmb(a,b));return c}};
Wmb.prototype.openDb=function(a,b,c){c=c===void 0?{}:c;return(this.options.shared?Kpa:Jpa)(a,b,Object.assign({},c))};
Wmb.prototype.delete=function(a){a=a===void 0?{}:a;return(this.options.shared?Opa:Lpa)(this.name,a)};var Xmb={},Qpa=Tj("ytGcfConfig",{objectStores:(Xmb.coldConfigStore={addedAtVersion:1},Xmb.hotConfigStore={addedAtVersion:1},Xmb),shared:!1,upgrade:function(a,b){b(1)&&(Hk(Gk(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),Hk(Gk(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var Ymb=function(){_.vg.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var a=_.Ji("yt.gcf.config.hotUpdateCallbacks");a?(this.localHotConfigJobQueue=[].concat(_.De(a)),this.sharedHotConfigJobQueue=a):(this.sharedHotConfigJobQueue=[],_.Rj("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.z(Ymb,_.vg);Ymb.prototype.disposeInternal=function(){for(var a=_.h(this.localHotConfigJobQueue),b=a.next();!b.done;b=a.next()){var c=this.sharedHotConfigJobQueue;b=c.indexOf(b.value);b>=0&&c.splice(b,1)}this.localHotConfigJobQueue.length=0;_.vg.prototype.disposeInternal.call(this)};var tl=function(){var a=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new Ymb;this.TEST_ONLY={initializeConfigDb:function(){a.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return a.coldGlobalConfigGroup},
setHotConfigGroup:function(b){Zmb(a,b)},
setHotHashData:function(b){a.setHotHashData(b)},
setColdConfigGroup:function(b){$mb(a,b)},
getColdHashData:function(){return a.coldHashData},
getHotHashData:function(){return a.hotHashData},
getHotConfigGroup:function(){return a.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return anb()},
getExportedHotConfigGroup:function(){return FB()},
getExportedColdHashData:function(){return _.Ji("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.Ji("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){bnb(a)},
resetInstance:function(){a.setHotHashData(void 0);cnb(a);delete tl.instance},
setDebounceTimer:function(b){a.debounceTimer=b},
getDebounceTimer:function(){return a.debounceTimer}}},dnb=function(){if(!tl.instance){var a=new tl;
tl.instance=a}return tl.instance},gnb=function(a){var b;
_.l(function(c){if(c.nextAddress==1)return _.w("start_client_gcf")||_.w("delete_gcf_config_db")?_.w("start_client_gcf")?_.p(c,_.Sj(),3):c.jumpTo(2):c.return();c.nextAddress!=2&&((b=c.yieldResult)&&_.pj()&&!_.w("delete_gcf_config_db")?(a.isConfigDbInitialized=!0,bnb(a)):(enb(a),fnb(a)));return _.w("delete_gcf_config_db")?_.p(c,Wpa(),0):c.jumpTo(0)})},Xta=function(){var a;
return(a=FB())!=null?a:_.Fi("RAW_HOT_CONFIG_GROUP")},hnb=function(a){var b,c,d,e,g,k;
return _.l(function(m){switch(m.nextAddress){case 1:if(a.hotGlobalConfigGroup)return m.return(FB());if(!a.isConfigDbInitialized)return b=Ej("getHotConfig IDB not initialized"),_.Ki(b),m.return(Promise.reject(b));c=Qj();d=_.Fi("TIME_CREATED_MS");if(!c){e=Ej("getHotConfig token error");_.Ki(e);m.jumpTo(2);break}return _.p(m,Vpa(c),3);case 3:if((g=m.yieldResult)&&g.timestamp>d)return Zmb(a,g.config),a.setHotHashData(g.hashData),m.return(FB());case 2:fnb(a);if(!(c&&a.hotGlobalConfigGroup&&a.hotHashData)){m.jumpTo(4);
break}return _.p(m,Spa(a.hotGlobalConfigGroup,a.hotHashData,c,d),4);case 4:return a.hotGlobalConfigGroup?m.return(FB()):(k=new _.qj("Config not available in ytConfig"),_.Ki(k),m.return(Promise.reject(k)))}})},jnb=function(a){var b,c,d,e,g,k;
return _.l(function(m){switch(m.nextAddress){case 1:if(a.coldGlobalConfigGroup)return m.return(anb());if(!a.isConfigDbInitialized)return b=Ej("getColdConfig IDB not initialized"),_.Ki(b),m.return(Promise.reject(b));c=Qj();d=_.Fi("TIME_CREATED_MS");if(!c){e=Ej("getColdConfig");_.Ki(e);m.jumpTo(2);break}return _.p(m,Upa(c),3);case 3:if((g=m.yieldResult)&&g.timestamp>d)return $mb(a,g.config),inb(a,g.configData),cnb(a,g.hashData),m.return(anb());case 2:enb(a);if(!(c&&a.coldGlobalConfigGroup&&a.coldHashData&&
a.configData)){m.jumpTo(4);break}return _.p(m,Tpa(a.coldGlobalConfigGroup,a.coldHashData,a.configData,c,d),4);case 4:return a.coldGlobalConfigGroup?m.return(anb()):(k=new _.qj("Config not available in ytConfig"),_.Ki(k),m.return(Promise.reject(k)))}})},bnb=function(a){if(!a.hotGlobalConfigGroup||!a.coldGlobalConfigGroup){if(!Qj()){var b=Ej("scheduleGetConfigs");
_.Ki(b)}a.initJob||(a.initJob=_.zk.addLowPriorityJob(function(){return _.l(function(c){switch(c.nextAddress){case 1:return _.pe(c,2),_.p(c,hnb(a),4);case 4:_.Jj(c,3);break;case 2:_.te(c);case 3:return _.pe(c,5),_.p(c,jnb(a),7);case 7:_.Jj(c,6);break;case 5:_.te(c);case 6:a.initJob&&(a.initJob=0),_.ue(c)}})},100))}},Sta=function(a,b,c){var d,e,g;
return _.l(function(k){switch(k.nextAddress){case 1:if(!_.w("start_client_gcf")){k.jumpTo(0);break}c&&Zmb(a,c);a.setHotHashData(b);d=Qj();if(!d){k.jumpTo(3);break}if(c){k.jumpTo(4);break}return _.p(k,Vpa(d),5);case 5:e=k.yieldResult,c=(g=e)==null?void 0:g.config;case 4:return _.p(k,Spa(c,b,d),3);case 3:if(c)for(var m=c,n=_.h(a.configUpdateService.sharedHotConfigJobQueue),r=n.next();!r.done;r=n.next())r=r.value,r(m);_.ue(k)}})},Tta=function(a,b,c){var d,e,g,k;
return _.l(function(m){if(m.nextAddress==1){if(!_.w("start_client_gcf"))return m.jumpTo(0);cnb(a,b);return(d=Qj())?c?m.jumpTo(4):_.p(m,Upa(d),5):m.jumpTo(0)}m.nextAddress!=4&&(e=m.yieldResult,c=(g=e)==null?void 0:g.config);if(!c)return m.jumpTo(0);k=c.configData;return _.p(m,Tpa(c,b,k,d),0)})},nqa=function(){var a=dnb(),b=(0,_.Uj)()-a.debounceTimer;
if(!(a.debounceTimer!==0&&b<_.$i("send_config_hash_timer"))){b=_.Ji("yt.gcf.config.coldConfigData");var c=_.Ji("yt.gcf.config.hotHashData"),d=_.Ji("yt.gcf.config.coldHashData");b&&c&&d&&(a.debounceTimer=(0,_.Uj)());return{coldConfigData:b,hotHashData:c,coldHashData:d}}},enb=function(a){$mb(a,_.Fi("RAW_COLD_CONFIG_GROUP"));
cnb(a,_.Fi("SERIALIZED_COLD_HASH_DATA"));var b;inb(a,(b=a.coldGlobalConfigGroup)==null?void 0:b.configData)},fnb=function(a){Zmb(a,_.Fi("RAW_HOT_CONFIG_GROUP"));
a.setHotHashData(_.Fi("SERIALIZED_HOT_HASH_DATA"))},Zmb=function(a,b){a.hotGlobalConfigGroup=b;
_.Rj("yt.gcf.config.hotConfigGroup",a.hotGlobalConfigGroup||null)},$mb=function(a,b){a.coldGlobalConfigGroup=b;
_.Rj("yt.gcf.config.coldConfigGroup",a.coldGlobalConfigGroup||null)};
tl.prototype.setHotHashData=function(a){this.hotHashData=a;_.Rj("yt.gcf.config.hotHashData",this.hotHashData||null)};
var cnb=function(a,b){a.coldHashData=b;_.Rj("yt.gcf.config.coldHashData",a.coldHashData||null)},inb=function(a,b){a.configData=b;
_.Rj("yt.gcf.config.coldConfigData",a.configData||null)},FB=function(){return _.Ji("yt.gcf.config.hotConfigGroup")},anb=function(){return _.Ji("yt.gcf.config.coldConfigGroup")};var fk={},knb=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";fk.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if(typeof c!=="object")throw new TypeError("Zc`"+c);for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}}return a};
fk.shrinkBuf=function(a,b){if(a.length===b)return a;if(a.subarray)return a.subarray(0,b);a.length=b;return a};
var lnb={arraySet:function(a,b,c,d,e){if(b.subarray&&a.subarray)a.set(b.subarray(c,c+d),e);else for(var g=0;g<d;g++)a[e+g]=b[c+g]},
flattenChunks:function(a){var b,c;var d=c=0;for(b=a.length;d<b;d++)c+=a[d].length;var e=new Uint8Array(c);d=c=0;for(b=a.length;d<b;d++){var g=a[d];e.set(g,c);c+=g.length}return e}},mnb={arraySet:function(a,b,c,d,e){for(var g=0;g<d;g++)a[e+g]=b[c+g]},
flattenChunks:function(a){return[].concat.apply([],a)}};
fk.setTyped=function(){knb?(fk.Buf8=Uint8Array,fk.Buf16=Uint16Array,fk.Buf32=Int32Array,fk.assign(fk,lnb)):(fk.Buf8=Array,fk.Buf16=Array,fk.Buf32=Array,fk.assign(fk,mnb))};
fk.setTyped();var nnb=!0;try{new Uint8Array(1)}catch(a){nnb=!1}
var Vqa=function(a){var b,c,d=a.length,e=0;for(b=0;b<d;b++){var g=a.charCodeAt(b);if((g&64512)===55296&&b+1<d){var k=a.charCodeAt(b+1);(k&64512)===56320&&(g=65536+(g-55296<<10)+(k-56320),b++)}e+=g<128?1:g<2048?2:g<65536?3:4}var m=new fk.Buf8(e);for(b=c=0;c<e;b++)g=a.charCodeAt(b),(g&64512)===55296&&b+1<d&&(k=a.charCodeAt(b+1),(k&64512)===56320&&(g=65536+(g-55296<<10)+(k-56320),b++)),g<128?m[c++]=g:(g<2048?m[c++]=192|g>>>6:(g<65536?m[c++]=224|g>>>12:(m[c++]=240|g>>>18,m[c++]=128|g>>>12&63),m[c++]=
128|g>>>6&63),m[c++]=128|g&63);return m};var Iqa={};Iqa=function(a,b,c,d){var e=a&65535|0;a=a>>>16&65535|0;for(var g;c!==0;){g=c>2E3?2E3:c;c-=g;do e=e+b[d++]|0,a=a+e|0;while(--g);e%=65521;a%=65521}return e|a<<16|0};for(var uk={},GB,onb=[],pnb=0;pnb<256;pnb++){GB=pnb;for(var qnb=0;qnb<8;qnb++)GB=GB&1?3988292384^GB>>>1:GB>>>1;onb[pnb]=GB}uk=function(a,b,c,d){c=d+c;for(a^=-1;d<c;d++)a=a>>>8^onb[(a^b[d])&255];return a^-1};var jk={};jk={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 xqa=[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],zqa=[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],Uqa=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Gqa=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ok=Array(576);bk(ok);var pk=Array(60);bk(pk);var hk=Array(512);bk(hk);var gk=Array(256);bk(gk);var yqa=Array(29);bk(yqa);var Aqa=Array(30);bk(Aqa);var Rqa,Sqa,Tqa,Qqa=!1;var yk;
yk=[new xk(0,0,0,0,function(a,b){var c=65535;for(c>a.pending_buf_size-5&&(c=a.pending_buf_size-5);;){if(a.lookahead<=1){vk(a);if(a.lookahead===0&&b===0)return 1;if(a.lookahead===0)break}a.strstart+=a.lookahead;a.lookahead=0;var d=a.block_start+c;if(a.strstart===0||a.strstart>=d)if(a.lookahead=a.strstart-d,a.strstart=d,qk(a,!1),a.strm.avail_out===0)return 1;if(a.strstart-a.block_start>=a.w_size-262&&(qk(a,!1),a.strm.avail_out===0))return 1}a.insert=0;if(b===4)return qk(a,!0),a.strm.avail_out===0?3:
4;a.strstart>a.block_start&&qk(a,!1);return 1}),
new xk(4,4,8,4,Jqa),new xk(4,5,16,8,Jqa),new xk(4,6,32,32,Jqa),new xk(4,4,16,16,wk),new xk(8,16,32,32,wk),new xk(8,16,128,128,wk),new xk(8,32,128,256,wk),new xk(32,128,258,1024,wk),new xk(32,258,258,4096,wk)];var Pqa={};Pqa=function(){this.input=null;this.total_in=this.avail_in=this.next_in=0;this.output=null;this.total_out=this.avail_out=this.next_out=0;this.msg="";this.state=null;this.data_type=2;this.adler=0};var Wqa=Object.prototype.toString;
Oqa.prototype.push=function(a,b){var c=this.strm,d=this.options.chunkSize;if(this.ended)return!1;var e=b===~~b?b:b===!0?4:0;typeof a==="string"?c.input=Vqa(a):Wqa.call(a)==="[object ArrayBuffer]"?c.input=new Uint8Array(a):c.input=a;c.next_in=0;c.avail_in=c.input.length;do{c.avail_out===0&&(c.output=new fk.Buf8(d),c.next_out=0,c.avail_out=d);a=Nqa(c,e);if(a!==1&&a!==0)return rnb(this,a),this.ended=!0,!1;if(c.avail_out===0||c.avail_in===0&&(e===4||e===2))if(this.options.to==="string"){var g=fk.shrinkBuf(c.output,
c.next_out);b=g;g=g.length;if(g<65537&&(b.subarray&&nnb||!b.subarray))b=String.fromCharCode.apply(null,fk.shrinkBuf(b,g));else{for(var k="",m=0;m<g;m++)k+=String.fromCharCode(b[m]);b=k}this.chunks.push(b)}else b=fk.shrinkBuf(c.output,c.next_out),this.chunks.push(b)}while((c.avail_in>0||c.avail_out===0)&&a!==1);if(e===4)return(c=this.strm)&&c.state?(d=c.state.status,d!==42&&d!==69&&d!==73&&d!==91&&d!==103&&d!==113&&d!==666?a=kk(c,-2):(c.state=null,a=d===113?kk(c,-3):0)):a=-2,rnb(this,a),this.ended=
!0,a===0;e===2&&(rnb(this,0),c.avail_out=0);return!0};
var rnb=function(a,b){b===0&&(a.result=a.options.to==="string"?a.chunks.join(""):fk.flattenChunks(a.chunks));a.chunks=[];a.err=b;a.msg=a.strm.msg};var snb=typeof TextEncoder!=="undefined"?new TextEncoder:null,yra=snb?function(a){return snb.encode(a)}:function(a){a=_.ug(a);
for(var b=new Uint8Array(a.length),c=0;c<b.length;c++)b[c]=a[c];return b};var YCa={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},$Ca={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var HB=function(a,b){this.version=a;this.args=b};
HB.prototype.serialize=function(){return{version:this.version,args:this.args}};var ara=function(a,b){this.topic=a;this.dataClass=b};
ara.prototype.toString=function(){return this.topic};var tnb=_.Ji("ytPubsub2Pubsub2Instance")||new _.jj;_.jj.prototype.subscribe=_.jj.prototype.subscribe;_.jj.prototype.unsubscribeByKey=_.jj.prototype.unsubscribeByKey;_.jj.prototype.publish=_.jj.prototype.publish;_.jj.prototype.clear=_.jj.prototype.clear;_.Rj("ytPubsub2Pubsub2Instance",tnb);var $qa=_.Ji("ytPubsub2Pubsub2SubscribedKeys")||{};_.Rj("ytPubsub2Pubsub2SubscribedKeys",$qa);var cra=_.Ji("ytPubsub2Pubsub2TopicToKeys")||{};_.Rj("ytPubsub2Pubsub2TopicToKeys",cra);
var bra=_.Ji("ytPubsub2Pubsub2IsAsync")||{};_.Rj("ytPubsub2Pubsub2IsAsync",bra);_.Rj("ytPubsub2Pubsub2SkipSubKey",null);var mra=void 0,kra=void 0;var ura=_.$i("max_body_size_to_compress",5E5),vra=_.$i("min_body_size_to_compress",500),Bk=!0,Bra=0,Ck=0,Ara=_.$i("compression_performance_threshold_lr",250),Cra=_.$i("slow_compressions_before_abandon_count",4),pra=!1,qra=new Map,xra=1,wra=!0;_.sx(Dk,Fra);Dk.prototype.reset=function(){this.chain_[0]=1732584193;this.chain_[1]=4023233417;this.chain_[2]=2562383102;this.chain_[3]=271733878;this.chain_[4]=3285377520;this.total_=this.inbuf_=0};
var unb=function(a,b,c){c||(c=0);var d=a.W_;if(typeof b==="string")for(var e=0;e<16;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;e<16;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(b=16;b<80;b++)c=d[b-3]^d[b-8]^d[b-14]^d[b-16],d[b]=(c<<1|c>>>31)&4294967295;b=a.chain_[0];c=a.chain_[1];e=a.chain_[2];for(var g=a.chain_[3],k=a.chain_[4],m,n,r=0;r<80;r++)r<40?r<20?(m=g^c&(e^g),n=1518500249):(m=c^e^g,n=1859775393):r<60?(m=c&e|g&(c|e),
n=2400959708):(m=c^e^g,n=3395469782),m=(b<<5|b>>>27)+m+k+n+d[r]&4294967295,k=g,g=e,e=(c<<30|c>>>2)&4294967295,c=b,b=m;a.chain_[0]=a.chain_[0]+b&4294967295;a.chain_[1]=a.chain_[1]+c&4294967295;a.chain_[2]=a.chain_[2]+e&4294967295;a.chain_[3]=a.chain_[3]+g&4294967295;a.chain_[4]=a.chain_[4]+k&4294967295};
Dk.prototype.update=function(a,b){if(a!=null){b===void 0&&(b=a.length);for(var c=b-this.blockSize,d=0,e=this.buf_,g=this.inbuf_;d<b;){if(g==0)for(;d<=c;)unb(this,a,d),d+=this.blockSize;if(typeof a==="string")for(;d<b;){if(e[g]=a.charCodeAt(d),++g,++d,g==this.blockSize){unb(this,e);g=0;break}}else for(;d<b;)if(e[g]=a[d],++g,++d,g==this.blockSize){unb(this,e);g=0;break}}this.inbuf_=g;this.total_+=b}};
Dk.prototype.digest=function(){var a=[],b=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var c=this.blockSize-1;c>=56;c--)this.buf_[c]=b&255,b/=256;unb(this,this.buf_);for(c=b=0;c<5;c++)for(var d=24;d>=0;d-=8)a[b]=this.chain_[c]>>d&255,++b;return a};var Ira;var JB=function(a){var b=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(t){b.databaseToken=t},
triggerThrottle:function(){b.throttledSend()},
cancelThrottle:function(){b.cancelThrottledSend()},
immediateSend:function(t){return _.l(function(u){return _.p(u,b.immediateSend(t),0)})},
requestWithinAgeLimit:function(t,u){return b.requestWithinAgeLimit(t,u)},
retryQueuedRequests:function(){b.retryQueuedRequests()}};
var c;this.throttleTimeout=(c=a.throttleTimeout)!=null?c:100;var d;this.retryMaxAttempts=(d=a.retryMaxAttempts)!=null?d:1;var e;this.requestAgeLimitMs=(e=a.requestAgeLimitMs)!=null?e:2592E6;var g;this.queuedRequestAgeLimitMs=(g=a.queuedRequestAgeLimitMs)!=null?g:12E4;var k;this.retryDelayMs=(k=a.retryDelayMs)!=null?k:5E3;var m;this.databaseToken=(m=a.databaseToken)!=null?m:void 0;this.enableCleaning=!!a.enableCleaning;var n;this.cleaningRate=(n=a.cleaningRate)!=null?n:.1;var r;this.potentialEsfErrorLimit=
(r=a.potentialEsfErrorLimit)!=null?r:10;a.handleError&&(this.handleError=a.handleError);a.handleWarning&&(this.handleWarning=a.handleWarning);a.disableYtIdbTransactions&&(this.disableYtIdbTransactions=a.disableYtIdbTransactions);a.bypassDbTokenDependency&&(this.bypassDbTokenDependency=a.bypassDbTokenDependency);this.getBooleanFlag=a.getBooleanFlag;this.jobManager=a.jobManager;this.logsStore=a.logsStore;this.networkManager=a.networkManager;this.sendFn=a.sendFn;this.onlineEvent=a.onlineEvent;this.offlineEvent=
a.offlineEvent;IB(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&vnb(this)},vnb=function(a){IB(a)&&!a.disableYtIdbTransactions&&(a.initialized=!0,a.enableCleaning&&Math.random()<=a.cleaningRate&&a.logsStore.cleanLogsStore(a.databaseToken),a.retryQueuedRequests(),a.networkManager.isNetworkAvailable()&&a.throttledSend(),a.networkManager.listen(a.onlineEvent,a.throttledSend.bind(a)),a.networkManager.listen(a.offlineEvent,a.cancelThrottledSend.bind(a)))};
_.f=JB.prototype;_.f.writeThenSend=function(a,b){var c=this;b=b===void 0?{}:b;if(IB(this)&&this.initialized){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(d,this.databaseToken).then(function(e){d.id=e;c.networkManager.isNetworkAvailable()&&c.immediateSend(d)}).catch(function(e){c.immediateSend(d);
wnb(c,e)})}else this.sendFn(a,b)};
_.f.sendThenWrite=function(a,b,c){var d=this;b=b===void 0?{}:b;if(IB(this)&&this.initialized){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(e.skipRetry=c);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var g=b.onError?b.onError:function(){};
b.onError=function(k,m){return _.l(function(n){if(n.nextAddress==1)return _.p(n,d.logsStore.set(e,d.databaseToken).catch(function(r){wnb(d,r)}),2);
g(k,m);_.ue(n)})}}this.sendFn(a,b,e.skipRetry)}else this.logsStore.set(e,this.databaseToken).catch(function(k){d.sendFn(a,b,e.skipRetry);
wnb(d,k)})}else this.sendFn(a,b,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&c)};
_.f.sendAndWrite=function(a,b){var c=this;b=b===void 0?{}:b;if(IB(this)&&this.initialized){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,g=b.onSuccess?b.onSuccess:function(){};
d.options.onSuccess=function(k,m){d.id!==void 0?c.logsStore.deleteRequest(d.id,c.databaseToken):e=!0;c.networkManager.networkStatusHint&&c.getBooleanFlag&&c.getBooleanFlag("vss_network_hint")&&c.networkManager.networkStatusHint(!0);g(k,m)};
this.sendFn(d.url,d.options,void 0,!0);this.logsStore.set(d,this.databaseToken).then(function(k){d.id=k;e&&c.logsStore.deleteRequest(d.id,c.databaseToken)}).catch(function(k){wnb(c,k)})}else this.sendFn(a,b,void 0,!0)};
_.f.throttledSend=function(){var a=this;if(!IB(this))throw Error("bd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,a.logsStore.getMostRecentByStatus("NEW",a.databaseToken),2);if(c.nextAddress!=3)return b=c.yieldResult,b?_.p(c,a.immediateSend(b),3):(a.cancelThrottledSend(),c.return());a.intervalJob&&(a.intervalJob=0,a.throttledSend());_.ue(c)})},this.throttleTimeout))};
_.f.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.f.immediateSend=function(a){var b=this,c;return _.l(function(d){switch(d.nextAddress){case 1:if(!IB(b))throw Error("cd");if(a.id===void 0){d.jumpTo(2);break}return _.p(d,b.logsStore.markAsQueued(a.id,b.databaseToken),3);case 3:(c=d.yieldResult)||b.handleWarning(Error("dd"));case 2:if(b.requestWithinAgeLimit(a,b.requestAgeLimitMs)){d.jumpTo(4);break}b.handleWarning(Error("ed"));if(a.id===void 0){d.jumpTo(5);break}return _.p(d,b.logsStore.deleteRequest(a.id,b.databaseToken),5);case 5:return d.return();
case 4:a.skipRetry||(a=xnb(b,a));if(!a){d.jumpTo(0);break}if(!a.skipRetry||a.id===void 0){d.jumpTo(8);break}return _.p(d,b.logsStore.deleteRequest(a.id,b.databaseToken),8);case 8:b.sendFn(a.url,a.options,!!a.skipRetry),_.ue(d)}})};
var xnb=function(a,b){if(!IB(a))throw Error("fd");var c=b.options.onError?b.options.onError:function(){};
b.options.onError=function(e,g){var k,m,n,r;return _.l(function(t){switch(t.nextAddress){case 1:k=Nra(g);(m=Ora(g))&&a.getBooleanFlag&&a.getBooleanFlag("web_enable_error_204")&&a.handleError(Error("gd"),b.url,g);if(!(a.getBooleanFlag&&a.getBooleanFlag("nwl_consider_error_code")&&k||a.getBooleanFlag&&!a.getBooleanFlag("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.potentialEsfErrorLimit)){t.jumpTo(2);break}if(!a.networkManager.sendNetworkCheckRequest){t.jumpTo(3);break}return _.p(t,a.networkManager.sendNetworkCheckRequest(),
3);case 3:if(a.networkManager.isNetworkAvailable()){t.jumpTo(2);break}c(e,g);if(!a.getBooleanFlag||!a.getBooleanFlag("nwl_consider_error_code")||((n=b)==null?void 0:n.id)===void 0){t.jumpTo(6);break}return _.p(t,a.logsStore.resetRequest(b.id,a.databaseToken,!1),6);case 6:return t.return();case 2:if(a.getBooleanFlag&&a.getBooleanFlag("nwl_consider_error_code")&&!k&&a.potentialEsfErrorCounter>a.potentialEsfErrorLimit)return t.return();a.potentialEsfErrorCounter++;if(((r=b)==null?void 0:r.id)===void 0){t.jumpTo(8);
break}return b.sendCount<a.retryMaxAttempts?_.p(t,a.logsStore.resetRequest(b.id,a.databaseToken,!0,m?!1:void 0),12):_.p(t,a.logsStore.deleteRequest(b.id,a.databaseToken),8);case 12:a.jobManager.addLowPriorityJob(function(){a.networkManager.isNetworkAvailable()&&a.throttledSend()},a.retryDelayMs);
case 8:c(e,g),_.ue(t)}})};
var d=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(e,g){var k;return _.l(function(m){if(m.nextAddress==1)return((k=b)==null?void 0:k.id)===void 0?m.jumpTo(2):_.p(m,a.logsStore.deleteRequest(b.id,a.databaseToken),2);a.networkManager.networkStatusHint&&a.getBooleanFlag&&a.getBooleanFlag("vss_network_hint")&&a.networkManager.networkStatusHint(!0);d(e,g);_.ue(m)})};
return b};
JB.prototype.requestWithinAgeLimit=function(a,b){a=a.timestamp;return this.now()-a>=b?!1:!0};
JB.prototype.retryQueuedRequests=function(){var a=this;if(!IB(this))throw Error("hd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(b){b&&!a.requestWithinAgeLimit(b,a.queuedRequestAgeLimitMs)?a.jobManager.addLowPriorityJob(function(){return _.l(function(c){if(c.nextAddress==1)return b.id===void 0?c.jumpTo(2):_.p(c,a.logsStore.resetRequest(b.id,a.databaseToken),2);a.retryQueuedRequests();_.ue(c)})}):a.networkManager.isNetworkAvailable()&&a.throttledSend()})};
var wnb=function(a,b){a.writeError&&!a.networkManager.isNetworkAvailable()?a.writeError(b):a.handleError(b)},IB=function(a){return!!a.databaseToken||a.bypassDbTokenDependency};var Pra;var Wta={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,
miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,
shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515};var ynb={},Zra=Tj("ServiceWorkerLogsDatabase",{objectStores:(ynb.SWHealthLog={addedAtVersion:1},ynb),shared:!0,upgrade:function(a,b){b(1)&&Hk(Gk(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var gsa={},fsa=0;var ksa;var KB=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},Mk=function(){if(!KB.instance){var a=_.Ji("yt.networkRequestMonitor.instance")||new KB;
_.Rj("yt.networkRequestMonitor.instance",a);KB.instance=a}return KB.instance};
KB.prototype.requestComplete=function(a,b){b&&(this.anyRequestHasSucceeded=!0);a=this.removeParams(a);this.requestMap.get(a)||this.requestMap.set(a,b)};
KB.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.requestMap.get(a))?!1:a===!1&&this.anyRequestHasSucceeded?!0:null};
KB.prototype.removeParams=function(a){return a.split("?")[0]};
KB.prototype.removeParams=KB.prototype.removeParams;KB.prototype.isEndpointCFR=KB.prototype.isEndpointCFR;KB.prototype.requestComplete=KB.prototype.requestComplete;KB.getInstance=Mk;var LB=function(a){_.Hz.call(this);var b=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=a!=null?a:{addLowPriorityJob:function(e,g){return setTimeout(e,g)},
cancelJob:function(e){clearTimeout(e)}};
var c,d;this.isOnline=(d=(c=window.navigator)==null?void 0:c.onLine)!=null?d:!0;this.onNavigatorChange=function(){return _.l(function(e){return _.p(e,znb(b),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||Anb(this)};
_.z(LB,_.Hz);LB.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete LB.instance};
LB.prototype.isNetworkAvailable=function(){return this.isOnline};
var Anb=function(a){a.pollingJob=a.jobManager.addLowPriorityJob(function(){var b;return _.l(function(c){if(c.nextAddress==1)return a.isOnline?((b=window.navigator)==null?0:b.onLine)?c.jumpTo(3):_.p(c,znb(a),3):_.p(c,znb(a),3);Anb(a);_.ue(c)})},3E4)},znb=function(a,b){return a.networkRequestPromise?a.networkRequestPromise:a.networkRequestPromise=new Promise(function(c){var d,e,g,k;
return _.l(function(m){switch(m.nextAddress){case 1:return d=window.AbortController?new window.AbortController:void 0,g=(e=d)==null?void 0:e.signal,k=!1,_.pe(m,2,3),d&&(a.abortTimeoutKey=a.jobManager.addLowPriorityJob(function(){d.abort()},b||2E4)),_.p(m,fetch("/generate_204",{method:"HEAD",
signal:g}),5);case 5:k=!0;case 3:_.qe(m);a.networkRequestPromise=void 0;a.abortTimeoutKey&&(a.jobManager.cancelJob(a.abortTimeoutKey),a.abortTimeoutKey=0);k!==a.isOnline&&(a.isOnline=k,a.isOnline?a.dispatchEvent("networkstatus-online"):a.dispatchEvent("networkstatus-offline"));c(k);_.se(m,0);break;case 2:_.te(m),k=!1,m.jumpTo(3)}})})};var MB=function(){_.Hz.call(this);var a=this;this.shouldFlushErrors=!1;LB.instance||(LB.instance=new LB(_.zk));this.sharedNetworkStatusManager=LB.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(a.shouldFlushErrors&&_.w("offline_error_handling")){var b=lsa().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new _.qj(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;_.Hi(d)}lsa().set("errors",{},2592E3,!0)}}})};
_.z(MB,_.Hz);var Bnb=function(){if(!MB.instance){var a=_.Ji("yt.networkStatusManager.instance")||new MB;_.Rj("yt.networkStatusManager.instance",a);MB.instance=a}return MB.instance};
_.f=MB.prototype;_.f.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.f.networkStatusHint=function(a){this.sharedNetworkStatusManager.isOnline=a};
_.f.getWindowStatus=function(){var a=window.navigator.onLine;return a===void 0?!0:a};
_.f.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.f.listen=function(a,b){return this.sharedNetworkStatusManager.listen(a,b)};
_.f.sendNetworkCheckRequest=function(a){a=znb(this.sharedNetworkStatusManager,a);a.then(function(b){_.w("use_cfr_monitor")&&Mk().requestComplete("generate_204",b)});
return a};
MB.prototype.sendNetworkCheckRequest=MB.prototype.sendNetworkCheckRequest;MB.prototype.listen=MB.prototype.listen;MB.prototype.enableErrorFlushing=MB.prototype.enableErrorFlushing;MB.prototype.getWindowStatus=MB.prototype.getWindowStatus;MB.prototype.networkStatusHint=MB.prototype.networkStatusHint;MB.prototype.isNetworkAvailable=MB.prototype.isNetworkAvailable;MB.getInstance=Bnb;_.Lk=function(a){a=a===void 0?{}:a;_.Hz.call(this);var b=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=Bnb();var c=_.Ji("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);c&&(a.rateLimit?(this.rateLimit=a.rateLimit,c("networkstatus-online",function(){Cnb(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){Cnb(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",
function(){b.dispatchEvent("publicytnetworkstatus-offline")})))};
_.z(_.Lk,_.Hz);_.Lk.prototype.isNetworkAvailable=function(){var a=_.Ji("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.nsmInstance)():!0};
_.Lk.prototype.networkStatusHint=function(a){var b=_.Ji("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);b&&b(a)};
_.Lk.prototype.sendNetworkCheckRequest=function(a){var b=this,c;return _.l(function(d){c=_.Ji("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.nsmInstance);return _.w("skip_network_check_if_cfr")&&Mk().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var g;b.networkStatusHint(((g=window.navigator)==null?void 0:g.onLine)||!0);e(b.isNetworkAvailable())})):c?d.return(c(a)):d.return(!0)})};
var Cnb=function(a,b){a.rateLimit?a.lastJobTime?(_.zk.cancelJob(a.schedulerJob),a.schedulerJob=_.zk.addLowPriorityJob(function(){a.lastPublicSignalSent!==b&&(a.dispatchEvent(b),a.lastPublicSignalSent=b,a.lastJobTime=(0,_.Uj)())},a.rateLimit-((0,_.Uj)()-a.lastJobTime))):(a.dispatchEvent(b),a.lastPublicSignalSent=b,a.lastJobTime=(0,_.Uj)()):a.dispatchEvent(b)};var qsa,NB=function(){JB.call(this,{logsStore:{cleanLogsStore:Xra,deleteRequest:Wra,getMostRecentByStatus:Tra,markAsQueued:Ura,resetRequest:Vra,set:Sra},networkManager:_.rsa(),handleError:function(a,b,c){var d,e=c==null?void 0:(d=c.error)==null?void 0:d.code;if(e===400||e===415){var g;a=new _.qj(a.message,b,c==null?void 0:(g=c.error)==null?void 0:g.code);_.Ki(a,void 0,void 0,void 0,!0)}else _.Hi(a)},
handleWarning:_.Ki,sendFn:osa,now:_.Uj,writeError:msa,jobManager:_.Qw(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.$i("potential_esf_error_limit",10),getBooleanFlag:_.w,disableYtIdbTransactions:!(_.pj()&&_.ssa())});this.initializationPromise=new _.hq;_.w("networkless_immediately_drop_all_requests")&&Yra();Opa("LogsDatabaseV2")};
_.z(NB,JB);_.Enb=function(){var a=_.Ji("yt.networklessRequestController.instance");a||(a=new NB,_.Rj("yt.networklessRequestController.instance",a),_.w("networkless_logging")&&_.Sj().then(function(b){a.databaseToken=b;vnb(a);a.initializationPromise.resolve();a.enableCleaning&&Math.random()<=a.cleaningRate&&a.databaseToken&&asa(a.databaseToken);_.w("networkless_immediately_drop_sw_health_store")&&Dnb(a)}));
return a};
NB.prototype.writeThenSend=function(a,b){b||(b={});b=psa(a,b);_.pj()||(this.initialized=!1);JB.prototype.writeThenSend.call(this,a,b)};
NB.prototype.sendThenWrite=function(a,b,c){b||(b={});b=psa(a,b);_.pj()||(this.initialized=!1);JB.prototype.sendThenWrite.call(this,a,b,c)};
NB.prototype.sendAndWrite=function(a,b){b||(b={});b=psa(a,b);_.pj()||(this.initialized=!1);JB.prototype.sendAndWrite.call(this,a,b)};
NB.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var Dnb=function(a){var b;_.l(function(c){if(!a.databaseToken)throw b=Ej("clearSWHealthLogsDb"),b;return c.return(bsa(a.databaseToken).catch(function(d){a.handleError(d)}))})};_.usa=!1;_.tsa=_.ja.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.usa};_.Rj("ytNetworklessLoggingInitializationOptions",_.tsa);var wl=function(a){var b=this;this.config_=null;a?this.config_=a:Xpa()&&(this.config_=_.Wj());_.sl(_.zk,function(){Mra(b)},5E3)};
wl.prototype.isReady=function(){!this.config_&&Xpa()&&(this.config_=_.Wj());return!!this.config_};
var Lra=function(a,b,c,d){!_.Fi("VISITOR_DATA")&&b!=="visitor_id"&&Math.random()<.01&&_.Ki(new _.qj("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady()){var e=new _.qj("innertube xhrclient not ready",b,c,d);_.Hi(e);throw e;}var g={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()},
onFetchTimeout:d.onTimeout,onSuccess:function(u,x){if(d.onSuccess)d.onSuccess(x)},
onFetchSuccess:function(u){if(d.onSuccess)d.onSuccess(u)},
onError:function(u,x){if(d.onError)d.onError(x)},
onFetchError:function(u){if(d.onError)d.onError(u)},
timeout:d.timeout,withCredentials:!0,compress:d.compress};g.headers["Content-Type"]||(g.headers["Content-Type"]="application/json");var k="";(e=a.config_.innertubeHostOverride)&&(k=e);var m=a.config_.innertubeUseThirdPartyAuth||!1,n=_.mqa(m,k,d);Object.assign(g.headers,n);g.headers.Authorization&&!k&&m&&(g.headers["x-origin"]=window.location.origin);var r=_.Pi(k+("/youtubei/"+a.config_.innertubeApiVersion+"/"+b),{alt:"json"}),t=function(u){u=u===void 0?!1:u;var x;if(d.retry&&k!="www.youtube-nocookie.com"&&
(u||_.w("skip_ls_gel_retry")||g.headers["Content-Type"]!=="application/json"||(x=Jra(b,c,n,m)),x)){var A=g.onSuccess,C=g.onFetchSuccess;g.onSuccess=function(I,R){Kra(x);A(I,R)};
c.onFetchSuccess=function(I,R){Kra(x);C(I,R)}}try{if(u&&d.retry&&!d.networklessOptions.bypassNetworkless)g.method="POST",d.networklessOptions.writeThenSend?_.Enb().writeThenSend(r,g):_.Enb().sendAndWrite(r,g);
else if(d.compress){var F=!d.networklessOptions.writeThenSend;if(g.postBody){var J=g.postBody;typeof J!=="string"&&(J=JSON.stringify(g.postBody));zra(r,J,g,_.hj,F)}else zra(r,JSON.stringify(g.postParams),g,Goa,F)}else _.w("web_all_payloads_via_jspb")?_.hj(r,g):Goa(r,g)}catch(I){if(I.name==="InvalidAccessError")x&&(Kra(x),x=0),_.Ki(Error("id"));else throw I;}x&&_.sl(_.zk,function(){Mra(a)},5E3)};
_.vsa()?Gpa().then(function(u){t(u)}):t(!1)};var xCa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(xCa,_.bd);xCa.prototype.getIndex=function(){return Rx(this,2)};
xCa.prototype.setIndex=function(a){return _.ql(this,2,a)};var Fnb=0,xsa=_.zx?"webkit":_.yx?"moz":_.xx?"ms":l9a?"o":"";_.Rj("ytDomDomGetNextId",_.Ji("ytDomDomGetNextId")||function(){return++Fnb});var Gnb={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},Uk=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 Gnb||(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.pageX_=a.pageX;this.pageY_=a.pageY}}catch(e){}},Hnb=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;
a.pageX_=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.pageY_=a.clientY+b}};
Uk.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Uk.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Uk.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Tk=_.ja.ytEventsEventsListeners||{};_.Rj("ytEventsEventsListeners",Tk);var Dsa=_.ja.ytEventsEventsCounter||{count:0};_.Rj("ytEventsEventsCounter",Dsa);var Esa=_.Hy(function(){var a=!1;try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});_.sx(Wk,_.vg);Wk.prototype.onMouseMove_=function(a){a.pageX_===void 0&&Hnb(a);var b=a.pageX_;a.pageY_===void 0&&Hnb(a);this.position_=new _.Ef(b,a.pageY_)};
Wk.prototype.checkPosition_=function(){if(this.position_){var a=(0,_.Uj)();if(this.previousTime_!=0){var b=this.previousPosition_,c=this.position_,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.previousTime_);this.cycles_[this.index_]=Math.abs((d-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(c=b=0;c<4;c++)b+=this.cycles_[c]||0;b>=3&&this.callback_();this.previousVelocity_=d}this.previousTime_=a;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
Wk.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.Fsa(this.mouseListenerKey_)};var Jsa={};var Rta=new _.X("rawColdConfigGroup");var Qta=new _.X("rawHotConfigGroup");var Inb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Inb,_.bd);var wCa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(wCa,_.bd);var rl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a,500)};
_.z(rl,_.bd);rl.prototype.getPayloadCase=function(){return _.Kx(this,Jnb)};
rl.prototype.getContext=function(){return _.Xj(this,wCa,33)};
var Jnb=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516];var Kta=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Kta,_.bd);var mta=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(mta,_.bd);mta.prototype.setVideoId=function(a){return jl(this,1,nta,qc(a))};
mta.prototype.getPlaylistId=function(){return _.og(this,ol(this,nta,2))};
var nta=[1,2];var Eta=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Eta,_.bd);Eta.prototype.getContext=function(){return _.Xj(this,kl,1)};
Eta.prototype.getTier=function(){return _.Ux(this,7)};var Knb,$k,al;Knb=_.ja.ytPubsubPubsubInstance||new _.jj;$k=_.ja.ytPubsubPubsubSubscribedKeys||{};al=_.ja.ytPubsubPubsubTopicToKeys||{};_.Ksa=_.ja.ytPubsubPubsubIsSynchronous||{};_.jj.prototype.subscribe=_.jj.prototype.subscribe;_.jj.prototype.unsubscribeByKey=_.jj.prototype.unsubscribeByKey;_.jj.prototype.publish=_.jj.prototype.publish;_.jj.prototype.clear=_.jj.prototype.clear;_.Rj("ytPubsubPubsubInstance",Knb);_.Rj("ytPubsubPubsubTopicToKeys",al);_.Rj("ytPubsubPubsubIsSynchronous",_.Ksa);
_.Rj("ytPubsubPubsubSubscribedKeys",$k);var cl=window;var OB=_.w("web_enable_lifecycle_monitoring")&&Psa()!==0,Lnb=_.w("web_enable_lifecycle_monitoring");var Nnb=function(a){var b=this;var c=c===void 0?0:c;var d=d===void 0?_.Qw():d;this.JSC$8643_defaultPriority=c;this.scheduler=d;this.completedResolver=new _.hq;this.scheduledPayloads=a;for(a={i$jscomp$527:0};a.i$jscomp$527<this.scheduledPayloads.length;a={payload$jscomp$18:void 0,i$jscomp$527:a.i$jscomp$527},a.i$jscomp$527++)a.payload$jscomp$18=this.scheduledPayloads[a.i$jscomp$527],c=function(e){return function(){e.payload$jscomp$18.job();b.scheduledPayloads[e.i$jscomp$527].processed=!0;b.scheduledPayloads.every(function(g){return g.processed===
!0})&&b.completedResolver.resolve()}}(a),d=this.scheduler.addJob(c,Mnb(this,a.payload$jscomp$18)),this.scheduledPayloads[a.i$jscomp$527]=Object.assign({},a.payload$jscomp$18,{job:c,
jobId:d})};
Nnb.prototype.flushJobs=function(){var a=this,b=Array.from(this.scheduledPayloads.keys()).sort(function(d,e){return Mnb(a,a.scheduledPayloads[e])-Mnb(a,a.scheduledPayloads[d])});
b=_.h(b);for(var c=b.next();!c.done;c=b.next())c=this.scheduledPayloads[c.value],c.jobId===void 0||c.processed||(this.scheduler.cancelJob(c.jobId),this.scheduler.addJob(c.job,10))};
Nnb.prototype.cancel=function(){for(var a=_.h(this.scheduledPayloads),b=a.next();!b.done;b=a.next())b=b.value,b.jobId===void 0||b.processed||this.scheduler.cancelJob(b.jobId),b.processed=!0;this.completedResolver.resolve()};
var Mnb=function(a,b){var c;return(c=b.priority)!=null?c:a.JSC$8643_defaultPriority};var PB=function(a){this.state=a;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};OB&&Qsa(this.state)};
PB.prototype.install=function(a){this.plugins.push(a);return this};
PB.prototype.uninstall=function(){var a=this;_.Kd.apply(0,arguments).forEach(function(b){b=a.plugins.indexOf(b);b>-1&&a.plugins.splice(b,1)})};
PB.prototype.transition=function(a,b){var c=this;OB&&Rsa(this.state);var d=this.transitions.find(function(g){return Array.isArray(g.from)?g.from.find(function(k){return k===c.state&&g.to===a}):g.from===c.state&&g.to===a});
if(d){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);Onb(this,a,b);this.state=a;OB&&Qsa(this.state);d=d.action.bind(this);var e=this.plugins.filter(function(g){return g[a]}).map(function(g){return g[a]});
d(Pnb(this,e),b)}else throw Error("jd`"+this.state+"`"+a);};
var Pnb=function(a,b){var c=b.filter(function(e){return Qnb(a,e)===10}),d=b.filter(function(e){return Qnb(a,e)!==10});
return a.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var e=_.Kd.apply(0,arguments);return _.l(function(g){if(g.nextAddress==1)return _.p(g,a.runImmediateJobsAsync.apply(a,[c].concat(_.De(e))),2);a.setJobSetWithScheduledJobs.apply(a,[d].concat(_.De(e)));_.ue(g)})}:function(){var e=_.Kd.apply(0,arguments);
a.runImmediateJobsSync.apply(a,[c].concat(_.De(e)));a.setJobSetWithScheduledJobs.apply(a,[d].concat(_.De(e)))}};
PB.prototype.runImmediateJobsSync=function(a){var b=_.Kd.apply(1,arguments);_.Qw();for(var c=_.h(a),d=c.next(),e={};!d.done;e={lifecycle$jscomp$2:void 0},d=c.next())e.lifecycle$jscomp$2=d.value,Xs(function(g){return function(){Rnb(g.lifecycle$jscomp$2.name);Tsa(function(){return g.lifecycle$jscomp$2.callback.apply(g.lifecycle$jscomp$2,_.De(b))});
QB(g.lifecycle$jscomp$2.name)}}(e))};
PB.prototype.runImmediateJobsAsync=function(a){var b=_.Kd.apply(1,arguments),c,d,e,g;return _.l(function(k){k.nextAddress==1&&(_.Qw(),c=_.h(a),d=c.next(),e={});if(k.nextAddress!=3){if(d.done)return k.jumpTo(0);e.lifecycle$jscomp$3=d.value;e.asyncJobCompletion=void 0;g=function(m){return function(){Rnb(m.lifecycle$jscomp$3.name);var n=Tsa(function(){return m.lifecycle$jscomp$3.callback.apply(m.lifecycle$jscomp$3,_.De(b))});
S9a(n)?m.asyncJobCompletion=_.w("web_lifecycle_error_handling_killswitch")?n.then(function(){QB(m.lifecycle$jscomp$3.name)}):n.then(function(){QB(m.lifecycle$jscomp$3.name)},function(r){Ssa(r);
QB(m.lifecycle$jscomp$3.name)}):QB(m.lifecycle$jscomp$3.name)}}(e);
Xs(g);return e.asyncJobCompletion?_.p(k,e.asyncJobCompletion,3):k.jumpTo(3)}e={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};d=c.next();return k.jumpTo(2)})};
PB.prototype.setJobSetWithScheduledJobs=function(a){var b=_.Kd.apply(1,arguments),c=this,d=a.map(function(e){return{job:function(){Rnb(e.name);Tsa(function(){return e.callback.apply(e,_.De(b))});
QB(e.name)},
priority:Qnb(c,e)}});
d.length&&(this.jobSet=new Nnb(d))};
var Qnb=function(a,b){var c,d;return(d=(c=a.overridePriority)!=null?c:b.priority)!=null?d:0},Rnb=function(a){OB&&a&&Qsa(a)},QB=function(a){OB&&a&&Rsa(a)},Onb=function(a,b,c){Lnb&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+a.constructor.name+"] '"+a.state+"' to '"+b+"'"),console.log("with message: ",c),console.groupEnd())};
_.Um.Object.defineProperties(PB.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Snb=function(a){PB.call(this,a===void 0?"none":a);this.navigationTimer=null;this.overridePriority=10;this.transitions=[{from:"none",to:"application_navigating",action:this.runApplicationNavigationBegin},{from:"application_navigating",to:"none",action:this.runApplicationNavigationEnd},{from:"application_navigating",to:"application_navigating",action:function(){}},
{from:"none",to:"none",action:function(){}}]},Tnb;
_.z(Snb,PB);Snb.prototype.runApplicationNavigationBegin=function(a,b){var c=this;this.navigationTimer=_.sl(_.zk,function(){c.currentState==="application_navigating"&&c.transition("none")},5E3);
a(b==null?void 0:b.event)};
Snb.prototype.runApplicationNavigationEnd=function(a,b){this.navigationTimer&&(_.zk.cancelJob(this.navigationTimer),this.navigationTimer=null);a(b==null?void 0:b.event)};
_.Pta=function(){Tnb||(Tnb=new Snb);return Tnb};var Ota=[];_.Rj("yt.logging.transport.getScrapedGelPayloads",function(){return Ota});var el=function(){var a=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return a.totalEntries}}};
el.prototype.storePayload=function(a,b){a=Usa(a);this.store[a]?this.store[a].push(b):(this.memoizedKeySequences={},this.store[a]=[b]);this.totalEntries++;_.w("more_accurate_gel_parser")&&(b=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(b));return a};
el.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=Unb(this,a.keys.splice(0,1)[0]),c=[],d=0;d<b.length;d++)this.store[b[d]]&&a.sizeLimit&&(this.store[b[d]].length<=a.sizeLimit?(c.push.apply(c,_.De(this.store[b[d]])),delete this.store[b[d]]):c.push.apply(c,_.De(this.store[b[d]].splice(0,a.sizeLimit))));this.totalEntries-=c.length;(a==null?0:a.sizeLimit)&&c.length<(a==null?void 0:a.sizeLimit)&&(a.sizeLimit-=c.length,c.push.apply(c,_.De(this.smartExtractMatchingEntries(a))));
return c};
el.prototype.extractMatchingEntries=function(a){a=Unb(this,a);for(var b=[],c=0;c<a.length;c++)this.store[a[c]]&&(b.push.apply(b,_.De(this.store[a[c]])),delete this.store[a[c]]);this.totalEntries-=b.length;return b};
el.prototype.getSequenceCount=function(a){a=Unb(this,a);for(var b=0,c=0;c<a.length;c++){var d=void 0;b+=((d=this.store[a[c]])==null?void 0:d.length)||0}return b};
var Unb=function(a,b){var c=Usa(b);if(a.memoizedKeySequences[c])return a.memoizedKeySequences[c];var d=Object.keys(a.store)||[];if(d.length<=1&&Usa(b)===d[0])return d;for(var e=[],g=0;g<d.length;g++){var k=d[g].split("/");if(Vnb(b.auth,k[0])){var m=b.isJspb;Vnb(m===void 0?"undefined":m?"true":"false",k[1])&&Vnb(b.cttAuthInfo,k[2])&&(m=b.tier,m=m===void 0?"undefined":JSON.stringify(m),Vnb(m,k[3])&&e.push(d[g]))}}return a.memoizedKeySequences[c]=e},Vnb=function(a,b){return a===void 0||a==="undefined"?
!0:a===b};
el.prototype.getSequenceCount=el.prototype.getSequenceCount;el.prototype.extractMatchingEntries=el.prototype.extractMatchingEntries;el.prototype.smartExtractMatchingEntries=el.prototype.smartExtractMatchingEntries;el.prototype.storePayload=el.prototype.storePayload;var wta,uta,xta,hl,Wnb,Vta,Uta,tta,sta,hta,vta,Mta,pta;wta=_.$i("initial_gel_batch_timeout",2E3);uta=_.$i("gel_queue_timeout_max_ms",6E4);xta=_.$i("gel_min_batch_size",5);hl=void 0;Wnb=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
Vta=new Wnb;Uta=new Wnb;tta=new Wnb;sta=new Wnb;vta=!0;Mta=1;_.Lta=new Map;pta=_.ja.ytLoggingTransportTokensToCttTargetIds_||{};_.Rj("ytLoggingTransportTokensToCttTargetIds_",pta);var ota=_.ja.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.Rj("ytLoggingTransportTokensToJspbCttTargetIds_",ota);var gl={};var ul=_.ja.ytLoggingGelSequenceIdObj_||{};_.Rj("ytLoggingGelSequenceIdObj_",ul);var Zta=[];var lua=new Set,eua=0,pua=0,oua=0,gua=[],fua=[],qua=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Dua=function(){};
Dua.prototype.getUrl=function(a,b){b=b===void 0?!1:b;return a.hasOwnProperty("shareEndpoint")?null:_.uua(a,null,b)};
var DTa=function(a,b,c){a={endpoint:b,actions:[]};c=(c.path?c.path[0]:c.target).icon||"";b=c.indexOf(":");b>0&&(c=c.substr(b+1));c&&a.actions.push(c);return a};var Aua=/Command$/,zua=/Endpoint$/,wua=new Map;var Xnb,Ynb;Xnb=1;_.Ll=function(){this.actionRoutingMap=new Map};
_.Ll.prototype.triggerAction=function(a){var b=new bCa(a,!1,_.Kd.apply(1,arguments));this.handleAction(b);return b.returnValue};
_.Ll.prototype.triggerOptionalAction=function(a){var b=new bCa(a,!0,_.Kd.apply(1,arguments));this.handleAction(b);return b.returnValue};
_.RB=function(a,b,c){b.forEach(function(d){var e=yua(d);e&&a.triggerOptionalAction(e,d,c,void 0)})};
_.Ll.prototype.handleAction=function(a){var b=this.actionRoutingMap.get(a.actionName);b&&Ynb(a,b);a.optionalAction||a.returnValue.length!==0||(a=new _.qj("Unhandled action",a.actionName),_.Ki(a))};
Ynb=function(a,b){b.forEach(function(c){var d=null;c?d=c.apply(null,a.args):(c=Error("kd"),c.params=a.actionName,_.Hi(c));a.returnValue.push(d)})};
_.Ml=function(a,b,c){c||(c=Xnb++);for(var d=_.h(Object.keys(b)),e=d.next();!e.done;e=d.next()){e=e.value;var g=a.actionRoutingMap.get(e);g||(g=new Map,a.actionRoutingMap.set(e,g));a.registerActionHandler(c,e,b[e],g)}return c};
_.Ll.prototype.registerActionHandler=function(a,b,c,d){d.set(a,_.Ii(c))};
_.Nl=function(a,b,c){b=_.h(Object.keys(b));for(var d=b.next();!d.done;d=b.next())(d=a.actionRoutingMap.get(d.value))&&d.delete(c)};
_.qx(_.Ll);var Gua=function(a,b){var c=_.Ll.getInstance();_.wi(function(){var d={},e=_.Ml(c,(d[a]=b,d));_.zh(function(){var g={};_.Nl(c,(g[a]="",g),e)})})};var Kua=function(a,b,c){_.wi(function(){var d=a.value;d?(d.addEventListener(b,c,void 0),_.zh(function(){d?d.removeEventListener(b,c,void 0):Lua(a)})):Lua(a)})};Kma=qna;var Wua=new Set(["For","If","Match","Watch"]),Znb={},$nb=(Znb[Eh.default]=function(){return Ema},Znb.style=function(){return Ema},Znb),aob;
for(aob in $nb)ah.attributes[aob]=$nb[aob](ah.attributes[aob]);var Xl=new _.jB("VISIBILITY_OBSERVER");var fva={retrieve:function(a){return this.id.\u0275prov.token===a.\u0275prov.token?this.contextValue:this?Zja(this,this.id):Yja}};var bob=function(a,b,c){if(a!==Sl)return!1;a=Tl(document.createElement("div"),function(){var d=Xh(!1);try{c[0]()}finally{Xh(d)}});
a=Array.from(a.childNodes);a.length===1&&(a=a[0]);return a};var cob=function(a){a=a.clone();Gjb(a);GA(a,"dg",null);GA(a,"d","0");Cjb(a,null);Djb(a,null);GA(a,"ichc","0");return a},dob=!0,eob=function(a,b,c){var d=c===void 0?{}:c;
c=d.cssRowKey===void 0?void 0:d.cssRowKey;var e=d.combinedSignature===void 0?void 0:d.combinedSignature;var g=d.extraEdges===void 0?void 0:d.extraEdges;d=d.callback===void 0?void 0:d.callback;GA(a,"m",b.join(","));g&&Fjb(a,g);c&&(GA(a,"ck",c),e?GA(a,"rs",e):dob&&(dob=!1));if(d){if(d!=null&&!Kjb.test(d))throw Error("eb`"+d);GA(a,"cb",d)}a=a.toString();_.na(a,"/")&&(a=ecb(document.location.href)+a);return _.xd(a)};var gob=function(a){return fob(a).then(function(b){return JSON.parse(b.responseText)})},fob=function(a){var b={},c=b.xmlHttpFactory?b.xmlHttpFactory.createInstance():Zfb.createInstance();
return(new _.il(function(d,e){var g;try{c.open("GET",a,!0)}catch(n){e(new SB("Error opening XHR: "+n.message,a,c))}c.onreadystatechange=function(){if(c.readyState==4){_.ja.clearTimeout(g);var n;!(n=Yfb(c.status))&&(n=c.status===0)&&(n=dcb(a),n=!(n=="http"||n=="https"||n==""));n?d(c):e(new hob(c.status,a,c))}};
c.onerror=function(){e(new SB("Network error",a,c))};
if(b.headers)for(var k in b.headers){var m=b.headers[k];m!=null&&c.setRequestHeader(k,m)}b.withCredentials&&(c.withCredentials=b.withCredentials);b.responseType&&(c.responseType=b.responseType);b.mimeType&&c.overrideMimeType(b.mimeType);b.timeoutMs>0&&(g=_.ja.setTimeout(function(){c.onreadystatechange=function(){};
c.abort();e(new iob(a,c))},b.timeoutMs));
try{c.send(null)}catch(n){c.onreadystatechange=function(){},_.ja.clearTimeout(g),e(new SB("Error sending XHR: "+n.message,a,c))}})).thenCatch(function(d){d instanceof _.Nn&&c.abort();
throw d;})},SB=function(a,b,c){_.ca.call(this,a+", url="+b);
this.url=b;this.xhr=c};
_.sx(SB,_.ca);SB.prototype.name="XhrError";var hob=function(a,b,c){SB.call(this,"Request Failed, status="+a,b,c);this.status=a};
_.sx(hob,SB);hob.prototype.name="XhrHttpError";var iob=function(a,b){SB.call(this,"Request timed out",a,b)};
_.sx(iob,SB);iob.prototype.name="XhrTimeoutError";px=px||{};var TB=function(){_.vg.call(this)};
_.sx(TB,_.vg);TB.prototype.initialize=function(){};var job=function(a,b){this.fn_=a;this.handler_=b};
job.prototype.execute=function(a){this.fn_&&(this.fn_.call(this.handler_||null,a),this.fn_=this.handler_=null)};
job.prototype.abort=function(){this.handler_=this.fn_=null};var UB=function(a,b){_.vg.call(this);this.deps_=a;this.JSC$8770_id_=b;this.onloadCallbacks_=[];this.JSC$8770_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.sx(UB,_.vg);UB.prototype.moduleConstructor_=TB;UB.prototype.module_=null;UB.prototype.getId=function(){return this.JSC$8770_id_};
UB.prototype.registerCallback=function(a,b){return kob(this.onloadCallbacks_,a,b)};
var lob=function(a,b){kob(a.JSC$8770_onErrorCallbacks_,b)},kob=function(a,b,c){b=new job(b,c);
a.push(b);return b};
UB.prototype.isLoaded=function(){return!!this.module_};
UB.prototype.onLoad=function(a){var b=new this.moduleConstructor_;b.initialize(a());this.module_=b;b=(b=!!mob(this.earlyOnloadCallbacks_,a()))||!!mob(this.onloadCallbacks_,a());b||(this.JSC$8770_onErrorCallbacks_.length=0);return b};
UB.prototype.onError=function(a){(a=mob(this.JSC$8770_onErrorCallbacks_,a))&&ka(Error("qd`"+a));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var mob=function(a,b){for(var c=[],d=0;d<a.length;d++)try{a[d].execute(b)}catch(e){ka(e),c.push(e)}a.length=0;return c.length?c:null};
UB.prototype.disposeInternal=function(){UB.superClass_.disposeInternal.call(this);_.Xf(this.module_)};var nob,tob,rob,sob,pob,qob,yob,wob,xob;
_.XB=function(a,b,c,d,e){d=d===void 0?!1:d;e=e===void 0?!1:e;var g=g===void 0?!0:g;this.scsReferenceUrl_=$g(_.zd(a).toString(),g);this.cssRowKey_=b;this.combinedSignature_=c;this.useNegativeLoading_=d;this.requestedModuleMap_={};this.JSC$8773_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(a=FA(this.scsReferenceUrl_,"excm"))?a.split(","):[];this.shouldScanForCss_=e;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;pka();this.logger=null;_.VB(this,Ejb(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
nob=function(a,b){if(b.href||b.getAttribute("data-href"))if(b=b.href||b.getAttribute("data-href"),lka(b)&&!$g(b).urlPrefix_.endsWith("_/js/")){b=Ejb($g(b));b=_.h(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a.loadedCssModuleList_.includes(c)||a.loadedCssModuleList_.push(c)}};
_.XB.prototype.JSC$8775_loadModules=function(a,b,c){var d=c===void 0?{}:c;c=d.extraEdges;var e=d.onError;var g=d.onSuccess;d=d.forceReload;this.JSC$8773_moduleInfoMap_=b;if(!a)throw Error("rd");if(this.shouldScanForCss_){b=_.h(document.getElementsByTagName("style"));for(var k=b.next();!k.done;k=b.next())nob(this,k.value);b=_.h(document.getElementsByTagName("link"));for(k=b.next();!k.done;k=b.next())nob(this,k.value)}oob(this,pob(this,a),c,e,g,d)};
var oob=function(a,b,c,d,e,g){d=d===void 0?function(){}:d;
e=e===void 0?function(){}:e;
g=g===void 0?!1:g;qob(a,b,function(k,m,n){n=n===void 0?m:n;a.enableFallbackFetch&&g?a.loadWithFetch(k,m,d,e,n):a.load(k,m,d,e,n,c)},c)||d(-1)};
_.XB.prototype.loadWithFetch=function(){_.l(function(){throw Error("sd");})};
_.XB.prototype.maybeSetAdditionalFields=function(){};
tob=function(a,b,c){if(a.useNegativeLoading_){var d=a.scsReferenceUrl_;a={cssRowKey:a.cssRowKey_,combinedSignature:a.combinedSignature_,extraEdges:c,requestedModuleIds:rob(a),requestedCssModuleIds:sob(a)};var e=a===void 0?{}:a;a=e.requestedModuleIds===void 0?[]:e.requestedModuleIds;c=e.requestedCssModuleIds===void 0?[]:e.requestedCssModuleIds;var g=e.cssRowKey===void 0?void 0:e.cssRowKey;var k=e.combinedSignature===void 0?void 0:e.combinedSignature;var m=e.extraEdges===void 0?void 0:e.extraEdges;
e=e.callback===void 0?void 0:e.callback;d=cob(d);GA(d,"d","1");Cjb(d,a);Djb(d,c);b=eob(d,b,{cssRowKey:g,combinedSignature:k,extraEdges:m,callback:e})}else d=a.scsReferenceUrl_,a={cssRowKey:a.cssRowKey_,combinedSignature:a.combinedSignature_,requestedModuleIds:rob(a),requestedCssModuleIds:sob(a)},m=a===void 0?{}:a,a=m.requestedCssModuleIds===void 0?[]:m.requestedCssModuleIds,c=m.cssRowKey===void 0?void 0:m.cssRowKey,g=m.combinedSignature===void 0?void 0:m.combinedSignature,k=m.extraEdges===void 0?
void 0:m.extraEdges,m=m.callback===void 0?void 0:m.callback,d=cob(d),Djb(d,a),b=eob(d,b,{cssRowKey:c,combinedSignature:g,extraEdges:k,callback:m});return b};
_.VB=function(a,b){for(var c=!1,d=[],e=0;e<b.length;++e){var g=b[e];a.requestedModuleMap_[g]||(a.requestedModuleMap_[g]=!0,a.requestedModuleList_.push(g),c=!0,d.push(g))}c&&(a.requestedModuleListSorted_=!1)};
_.YB=function(a,b){for(var c=[],d=0;d<b.length;++d){var e=b[d];a.requestedModuleMap_[e]&&(delete a.requestedModuleMap_[e],_.Qa(a.requestedModuleList_,e),c.push(e))}};
_.XB.prototype.load=function(a,b,c,d,e){e=e===void 0?b:e;_.zd(a);var g=this.useCors_,k=this.corsMode_,m=this.fetchPriority,n=_.pg("SCRIPT");_.Zd(n,a);g&&(n.crossOrigin=k);n.async=!1;m&&n.setAttribute("fetchpriority",m);_.VB(this,b);_.uob(this,a,n,b,c,d,e)};
_.uob=function(a,b,c,d,e,g,k){k=k===void 0?d:k;a.lastScript_=c;a.insertPos.insertBefore(c,a.insertPos.firstChild);_.vob(c,d,function(){c.parentElement.removeChild(c);a.lastScript_==c&&(a.lastScript_=null);var m=new Set;d.map(function(r){return m.add(r)});
for(var n in a.JSC$8773_moduleInfoMap_)a.JSC$8773_moduleInfoMap_[n].isLoaded()&&m.add(n);Array.from(m);g()},function(m){c.parentElement.removeChild(c);
a.lastScript_==c&&(a.lastScript_=null);_.YB(a,m);a.pendingModuleGraphUpdate_?a.pendingModuleGraphUpdate_.then(function(){e(-1,b)}):e(-1,b)},k)};
_.vob=function(a,b,c,d,e){e=e===void 0?b:e;var g=b.length,k=function(){g=0;a.onload=null;a.onerror=null;m=function(){}},m=function(){k();
var r=e.filter(function(t){return!Bg().getModuleInfo(t).isLoaded()});
r.length!==0?d(r,"Response was successful but was missing module(s) "+r+"."):c()},n=function(){g--;
g==0&&m()};
b.forEach(function(r){r=Bg().getModuleInfo(r);r.isLoaded()?n():(kob(r.earlyOnloadCallbacks_,n),lob(r,n))});
a.onload=function(){return m()};
a.onerror=function(){k();d(b)}};
rob=function(a){a.requestedModuleListSorted_||(a.requestedModuleListSorted_=!0,a.requestedModuleList_.sort());return a.requestedModuleList_};
sob=function(a){a=a.loadedCssModuleList_;a.sort();return a};
pob=function(a,b){return b.filter(function(c){return!a.requestedModuleMap_[c]})};
qob=function(a,b,c,d){if(a.pendingModuleGraphUpdate_)return a.pendingModuleGraphUpdate_.then(function(){qob(a,b,c,d)}),!0;
if(!a.useNegativeLoading_){var e=[],g=Object.assign({},a.requestedModuleMap_);wob(a,b,function(t){e.push(t.getId())},d,function(t){return!t.isLoaded()},g);
b=e}for(g=0;g<b.length;){for(var k=b.length-g,m=g==0?b:b.slice(g,b.length),n=tob(a,m,d),r=_.zd(n).toString();r.length>a.urlMaxLength;)if(k>1)k-=Math.ceil((r.length-a.urlMaxLength)/6),k=Math.max(k,1),m=b.slice(g,g+k),n=tob(a,m,d),r=_.zd(n).toString();else return a.useNegativeLoading_?(a.useNegativeLoading_=!1,a.pendingModuleGraphUpdate_=xob(a).then(function(t){yob(a,t,d)}),qob(a,b.slice(g),c,d)):!1;
g+=k;a.useNegativeLoading_?c(n,m):c(n,m,g===b.length?b:[])}return!0};
yob=function(a,b,c){Bg().setAllModuleInfoString((b||{}).moduleGraph);wob(a,rob(a),function(d){_.VB(a,[d.getId()])},c);
a.pendingModuleGraphUpdate_=null};
wob=function(a,b,c,d,e,g){g=g===void 0?{}:g;var k=Bg();b=_.h(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;var n=k.getModuleInfo(m);if(!(g[m]||e&&!e(n))){g[m]=!0;var r=n.deps_||[];if(d){var t=[];d[m]&&(t=Object.keys(d[m]));r=r.concat(t)}wob(a,r,c,d,e,g);c(n)}}};
xob=function(a){a=a.scsReferenceUrl_.clone();Gjb(a);GA(a,"dg",null);GA(a,"md","1");return gob(a.toString())};var zob=function(){this.JSC$7898_loader_=null};
_.f=zob.prototype;_.f.setBatchModeEnabled=function(){};
_.f.setAllModuleInfoString=function(){};
_.f.addExtraEdge=function(){throw Error("td");};
_.f.removeExtraEdge=function(){throw Error("ud");};
_.f.getModuleContext=function(){return null};
_.f.isActive=function(){return!1};
_.f.isUserActive=function(){return!1};
_.f.registerCallback=function(){};var ZB=function(a,b,c,d){this.type=a;this.status=b;this.requestedModuleIds=c;this.url=d};
ZB.prototype.toString=function(){return Aob(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var Aob=function(a){switch(a.type){case ZB.JSC$8782_Type.UNAUTHORIZED:return"Unauthorized";case ZB.JSC$8782_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case ZB.JSC$8782_Type.TIMEOUT:return"Timed out";case ZB.JSC$8782_Type.OLD_CODE_GONE:return"Out of date module id";case ZB.JSC$8782_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+a.type}};
px.ModuleLoadFailure=ZB;px.ModuleLoadFailure.JSC$8782_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var $B=function(){this.moduleIds_=this.JSC$7898_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8785_extraEdges_={};this.JSC$8785_callbackMap_={};this.JSC$8785_currentlyLoadingModule_=this.baseModuleInfo_=new UB([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new dA;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.sx($B,zob);var Bob=function(a,b){_.ca.call(this,"Error loading "+a+": "+b)};
_.sx(Bob,_.ca);_.f=$B.prototype;_.f.setBatchModeEnabled=function(a){this.batchModeEnabled_=a};
_.f.setAllModuleInfoString=function(a,b){if(!(this instanceof $B))this.setAllModuleInfoString(a,b);else if(typeof a==="string"){if(a.startsWith("d$")){a=a.substring(2);for(var c=[],d=0,e=a.indexOf("/"),g=0,k=!1,m=0;;){var n=k?a.substring(g):a.substring(g,e);if(n.length===0)d++,g="sy"+d.toString(36),n=[];else{var r=n.indexOf(":");if(r<0)g=n,n=[];else if(r===n.length-1)g=n.substring(0,r),n=Array(c[m-1]);else{g=n.substring(0,r);n=n.substring(r+1).split(",");r=m;for(var t=0;t<n.length;t++)r-=n[t].length===
0?1:Number(n[t]),n[t]=c[r]}r=0;if(g.length===0)r=1;else if(g.charAt(0)==="+"||g.charAt(0)==="-")r=Number(g);r!==0&&(d+=r,g="sy"+d.toString(36))}c.push(g);Cob(this,g,n);if(k)break;g=e+1;e=a.indexOf("/",g);e===-1&&(k=!0);m++}this.moduleIds_=c}else{a=a.split("/");c=[];for(d=0;d<a.length;d++){m=a[d].split(":");e=m[0];k=[];if(m[1])for(k=m[1].split(","),m=0;m<k.length;m++)k[m]=c[parseInt(k[m],36)];c.push(e);Cob(this,e,k)}this.moduleIds_=c}b&&b.length?(_.Xa(this.loadingModuleIds_,b),this.lastInitialModuleId_=
_.Ja(b)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8785_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8785_currentlyLoadingModule_=null,this.baseModuleInfo_.onLoad((0,_.wg)(this.getModuleContext,this))&&Dob(this,new px.ModuleLoadFailure(px.ModuleLoadFailure.JSC$8782_Type.INIT_ERROR)),aC(this))}};
_.f.getModuleInfo=function(a){return this.moduleInfoMap[a]};
_.f.addExtraEdge=function(a,b){var c=this.getModuleInfo(a);c&&c.isLoaded()?this.load(b):(this.JSC$8785_extraEdges_[a]||(this.JSC$8785_extraEdges_[a]={}),this.JSC$8785_extraEdges_[a][b]=!0)};
_.f.removeExtraEdge=function(a,b){if(this.JSC$8785_extraEdges_[a]){delete this.JSC$8785_extraEdges_[a][b];for(var c in this.JSC$8785_extraEdges_[a])return;delete this.JSC$8785_extraEdges_[a]}};
_.f.isActive=function(){return this.loadingModuleIds_.length>0};
_.f.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var aC=function(a){var b=a.lastActive_,c=a.isActive();c!=b&&(a.executeCallbacks_(c?"active":"idle"),a.lastActive_=c);b=a.isUserActive();b!=a.userLastActive_&&(a.executeCallbacks_(b?"userActive":"userIdle"),a.userLastActive_=b)},Cob=function(a,b,c){a.moduleInfoMap[b]?(a=a.moduleInfoMap[b].deps_,a!=c&&a.splice.apply(a,[0,
a.length].concat(_.De(c)))):a.moduleInfoMap[b]=new UB(c,b)},Fob=function(a,b,c){var d=[];
zaa(b,d);b=[];for(var e={},g=0;g<d.length;g++){var k=d[g],m=a.getModuleInfo(k);if(!m)throw Error("vd`"+k);var n=new dA;e[k]=n;m.isLoaded()?n.callback(null):(Eob(a,k,m,!!c,n),a.isModuleLoading(k)||b.push(k))}b.length>0&&(a.loadingModuleIds_.length===0?a.loadModules_(b):(a.requestedModuleIdsQueue_.push(b),aC(a)));return e},Eob=function(a,b,c,d,e){c.registerCallback(e.callback,e);
lob(c,function(g){e.errback(new Bob(b,g))});
a.isModuleLoading(b)?d&&(Gob(a,b),aC(a)):d&&Gob(a,b)};
$B.prototype.loadModules_=function(a,b,c){var d=this;b||(this.consecutiveFailures_=0);var e=Hob(this,a);this.loadingModuleIds_=e;this.requestedLoadingModuleIds_=this.batchModeEnabled_?a:_.Ra(e);aC(this);if(e.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,e);if(Object.keys(this.JSC$8785_extraEdges_).length>0&&!this.JSC$7898_loader_.supportsExtraEdges)throw Error("wd");a=(0,_.wg)(this.JSC$7898_loader_.JSC$8775_loadModules,this.JSC$7898_loader_,_.Ra(e),this.moduleInfoMap,{extraEdges:this.JSC$8785_extraEdges_,
forceReload:!!c,onError:function(g,k){var m=d.requestedLoadingModuleIds_;g=g!=null?g:void 0;d.consecutiveFailures_++;var n=_.Ra(e);d.requestedLoadingModuleIds_=m;e.forEach(_.xo(_.Qa,d.requestedModuleIds_),d);g==401?(Dob(d,new px.ModuleLoadFailure(px.ModuleLoadFailure.JSC$8782_Type.UNAUTHORIZED,g)),d.requestedModuleIdsQueue_.length=0):g==410?(Iob(d,new px.ModuleLoadFailure(px.ModuleLoadFailure.JSC$8782_Type.OLD_CODE_GONE,g)),Job(d)):d.consecutiveFailures_>=3?(Iob(d,new px.ModuleLoadFailure(px.ModuleLoadFailure.JSC$8782_Type.CONSECUTIVE_FAILURES,
g,n,k)),Job(d)):d.loadModules_(d.requestedLoadingModuleIds_,!0,g==8001||!1)},
onTimeout:(0,_.wg)(this.handleLoadTimeout_,this)});(b=Math.pow(this.consecutiveFailures_,2)*5E3)?_.ja.setTimeout(a,b):a()}};
var Hob=function(a,b){b=b.filter(function(e){return a.moduleInfoMap[e].isLoaded()?(_.ja.setTimeout(function(){return Error("xd`"+e)},0),!1):!0});
for(var c=[],d=0;d<b.length;d++)c=c.concat(Kob(a,b[d]));zaa(c);return!a.batchModeEnabled_&&c.length>1?(b=c.shift(),a.requestedModuleIdsQueue_=c.map(function(e){return[e]}).concat(a.requestedModuleIdsQueue_),[b]):c},Kob=function(a,b){var c=_.Cf.createSet(a.requestedModuleIds_),d=[];
c[b]||d.push(b);b=[b];for(var e=0;e<b.length;e++)for(var g=a.getModuleInfo(b[e]).deps_,k=g.length-1;k>=0;k--){var m=g[k];a.getModuleInfo(m).isLoaded()||c[m]||(d.push(m),b.push(m))}d.reverse();zaa(d);return d};
$B.prototype.JSC$8780_setLoaded=function(){if(this.JSC$8785_currentlyLoadingModule_){var a=this.JSC$8785_currentlyLoadingModule_.getId(),b=[];if(this.JSC$8785_extraEdges_[a]){for(var c=_.h(Object.keys(this.JSC$8785_extraEdges_[a])),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.getModuleInfo(d);e&&!e.isLoaded()&&(this.removeExtraEdge(a,d),b.push(d))}this.loadMultiple(b)}this.isDisposed()||(this.moduleInfoMap[a].onLoad((0,_.wg)(this.getModuleContext,this))&&Dob(this,new px.ModuleLoadFailure(px.ModuleLoadFailure.JSC$8782_Type.INIT_ERROR)),
_.Qa(this.userInitiatedLoadingModuleIds_,a),_.Qa(this.loadingModuleIds_,a),this.loadingModuleIds_.length===0&&Job(this),this.lastInitialModuleId_&&a==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),aC(this),this.JSC$8785_currentlyLoadingModule_=null)}};
$B.prototype.isModuleLoading=function(a){if(_.Oa(this.loadingModuleIds_,a))return!0;for(var b=0;b<this.requestedModuleIdsQueue_.length;b++)if(_.Oa(this.requestedModuleIdsQueue_[b],a))return!0;return!1};
$B.prototype.load=function(a,b){return Fob(this,[a],b)[a]};
$B.prototype.loadMultiple=function(a){return Fob(this,a)};
var Gob=function(a,b){_.Oa(a.userInitiatedLoadingModuleIds_,b)||a.userInitiatedLoadingModuleIds_.push(b)};
$B.prototype.beforeLoadModuleCode=function(a){var b=this;this.JSC$8785_currentlyLoadingModule_&&this.JSC$8785_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8780_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[a]&&Lob(this,this.moduleInfoMap[a].deps_||[],function(c){c.module_=new TB;_.Qa(b.loadingModuleIds_,c.getId())},function(c){return!c.isLoaded()});
this.JSC$8785_currentlyLoadingModule_=this.getModuleInfo(a)};
$B.prototype.handleLoadTimeout_=function(){Iob(this,new px.ModuleLoadFailure(px.ModuleLoadFailure.JSC$8782_Type.TIMEOUT));Job(this)};
var Iob=function(a,b){a.requestedLoadingModuleIds_.length>1?a.requestedModuleIdsQueue_=a.requestedLoadingModuleIds_.map(function(c){return[c]}).concat(a.requestedModuleIdsQueue_):Dob(a,b)},Dob=function(a,b){var c=a.requestedLoadingModuleIds_;
a.loadingModuleIds_.length=0;for(var d=[],e=0;e<a.requestedModuleIdsQueue_.length;e++){var g=a.requestedModuleIdsQueue_[e].filter(function(n){var r=Kob(this,n);return Nk(c,function(t){return _.Oa(r,t)})},a);
_.Xa(d,g)}for(e=0;e<c.length;e++)_.vaa(d,c[e]);for(e=0;e<d.length;e++){for(g=0;g<a.requestedModuleIdsQueue_.length;g++)_.Qa(a.requestedModuleIdsQueue_[g],d[e]);_.Qa(a.userInitiatedLoadingModuleIds_,d[e])}if(e=a.JSC$8785_callbackMap_.error)for(g=0;g<e.length;g++)for(var k=e[g],m=0;m<d.length;m++)k("error",d[m],b);for(d=0;d<c.length;d++)if(a.moduleInfoMap[c[d]])a.moduleInfoMap[c[d]].onError(b);a.requestedLoadingModuleIds_.length=0;aC(a)},Job=function(a){for(;a.requestedModuleIdsQueue_.length;){var b=
a.requestedModuleIdsQueue_.shift().filter(function(c){return!this.getModuleInfo(c).isLoaded()},a);
if(b.length>0){a.loadModules_(b);return}}aC(a)};
$B.prototype.registerCallback=function(a,b){Array.isArray(a)||(a=[a]);for(var c=0;c<a.length;c++){var d=a[c],e=b,g=this.JSC$8785_callbackMap_;g[d]||(g[d]=[]);g[d].push(e)}};
$B.prototype.executeCallbacks_=function(a){for(var b=this.JSC$8785_callbackMap_[a],c=0;b&&c<b.length;c++)b[c](a)};
var Lob=function(a,b,c,d,e){d=d===void 0?function(){return!0}:d;
e=e===void 0?{}:e;b=_.h(b);for(var g=b.next();!g.done;g=b.next()){g=g.value;var k=a.getModuleInfo(g);!e[g]&&d(k)&&(e[g]=!0,Lob(a,k.deps_||[],c,d,e),c(k))}};
$B.prototype.dispose=function(){_.mia(_.Cf.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8785_callbackMap_={};this.isDisposed_=!0};
$B.prototype.isDisposed=function(){return this.isDisposed_};
_.Ag=function(){return new $B};var Mob=[5E3,2E4],Nob=function(){this.JSC$7898_loader_=null;this.JSC$8792_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8792_queue_=[];this.JSC$8792_extraEdges_=Object.create(null);this.JSC$8792_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.z(Nob,zob);_.f=Nob.prototype;_.f.setAllModuleInfoString=function(){this.JSC$8792_currentlyLoadingModule_&&this.JSC$8792_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8780_setLoaded()};
_.f.getModuleInfo=function(a){var b=this.JSC$8792_moduleInfoMap_[a];b||(b=new UB([],a),this.JSC$8792_moduleInfoMap_[a]=b);return b};
_.f.addExtraEdge=function(a,b){this.getModuleInfo(a).isLoaded()?this.load(b):(this.JSC$8792_extraEdges_[a]||(this.JSC$8792_extraEdges_[a]={}),this.JSC$8792_extraEdges_[a][b]=!0)};
_.f.removeExtraEdge=function(a,b){if(this.JSC$8792_extraEdges_[a]){delete this.JSC$8792_extraEdges_[a][b];for(var c in this.JSC$8792_extraEdges_[a])return;delete this.JSC$8792_extraEdges_[a]}};
_.f.isModuleLoading=function(a){return!!this.loadingModules_[a]};
_.f.load=function(a){Oob(this,[a]);return Pob(this,a)};
_.f.loadMultiple=function(a){var b=this,c=Object.create(null),d=[];a.forEach(function(e){c[e]||(c[e]=Pob(b,e),d.push(e))});
Oob(this,d);return c};
_.f.beforeLoadModuleCode=function(a){var b;((b=this.JSC$8792_currentlyLoadingModule_)==null?void 0:b.getId())==="synthetic_module_overhead"&&this.JSC$8780_setLoaded();var c,d;Qob(this,(d=(c=this.JSC$8792_moduleInfoMap_[a])==null?void 0:c.deps_)!=null?d:[],function(e){e.module_=new TB},function(e){return!e.isLoaded()});
this.JSC$8792_currentlyLoadingModule_=this.getModuleInfo(a)};
_.f.JSC$8780_setLoaded=function(){if(this.JSC$8792_currentlyLoadingModule_){var a=this.JSC$8792_currentlyLoadingModule_.getId(),b=[];if(this.JSC$8792_extraEdges_[a]){for(var c=_.h(Object.keys(this.JSC$8792_extraEdges_[a])),d=c.next();!d.done;d=c.next())d=d.value,this.getModuleInfo(d).isLoaded()||(this.removeExtraEdge(a,d),b.push(d));this.loadMultiple(b)}this.JSC$8792_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8792_currentlyLoadingModule_=null;(!this.isModuleLoading(a)&&/^sy[0-9a-z]{0,4}$/.test(a)||a==="synthetic_module_overhead")&&delete this.JSC$8792_moduleInfoMap_[a];this.unsetModulesAsLoading(a)}};
_.f.setModulesAsLoading=function(){var a=this;_.Kd.apply(0,arguments).forEach(function(b){a.loadingModules_[b]=!0})};
_.f.unsetModulesAsLoading=function(){var a=this;_.Kd.apply(0,arguments).forEach(function(b){delete a.loadingModules_[b]})};
var Pob=function(a,b){return new _.il(function(c,d){var e=a.getModuleInfo(b);e.isLoaded()?c(null):(e.registerCallback(function(){c(null)}),lob(e,function(g){var k="Error loading "+b+": "+g;
g instanceof px.ModuleLoadFailure&&g.url&&(k=k+", requested url: "+g.url.toString());d(Error(k))}))})},Oob=function(a,b){b=b.filter(function(c){return!a.isModuleLoading(c)&&!a.getModuleInfo(c).isLoaded()});
b.length>0&&(a.setModulesAsLoading.apply(a,_.De(b)),a.JSC$8792_queue_.push(b),Rob(a))},Rob=function(a){for(var b={};a.activeLoads_<Infinity&&a.JSC$8792_queue_.length>0;b={finishLoad:void 0,
ids$jscomp$34:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})b.ids$jscomp$34=a.JSC$8792_queue_.shift().filter(function(c){return!a.getModuleInfo(c).isLoaded()}),b.ids$jscomp$34.length>0&&(a.activeLoads_++,b.finishLoad=function(c){return function(){a.activeLoads_--;
Rob(a);c.finishLoad=function(){}}}(b),_.Kz(b.ids$jscomp$34.map(function(c){return Pob(a,c)})).then(function(c){return function(){(0,c.finishLoad)()}}(b)),b.attempt$jscomp$6=0,b.load$jscomp$1=function(c){return function(){if(Object.keys(a.JSC$8792_extraEdges_).length>0&&!a.JSC$7898_loader_.supportsExtraEdges)throw Error("wd");
a.JSC$7898_loader_.JSC$8775_loadModules(c.ids$jscomp$34,a.JSC$8792_moduleInfoMap_,{extraEdges:a.JSC$8792_extraEdges_,onError:function(d,e){var g=Mob[c.attempt$jscomp$6++];g!==void 0?setTimeout(function(){(0,c.load$jscomp$1)()},g):(a.unsetModulesAsLoading.apply(a,_.De(c.ids$jscomp$34)),(0,c.finishLoad)(),c.ids$jscomp$34.forEach(function(k){k=a.getModuleInfo(k);
if(!k.isLoaded())k.onError(new px.ModuleLoadFailure(px.ModuleLoadFailure.JSC$8782_Type.CONSECUTIVE_FAILURES,d,c.ids$jscomp$34,e))}))}})}}(b),(0,b.load$jscomp$1)())},Qob=function(a,b,c,d,e){d=d===void 0?function(){return!0}:d;
e=e===void 0?{}:e;b=_.h(b);for(var g=b.next();!g.done;g=b.next()){g=g.value;var k=a.getModuleInfo(g);!e[g]&&d(k)&&(e[g]=!0,Qob(a,k.deps_||[],c,d,e),c(k))}};var Sob=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var jva=Symbol("zd");window.JSCompiler_renameProperty=function(a){return a};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var Tob=!Sob||HTMLElement.es5Shimmed||_.ja.Reflect===void 0||_.ja.customElements===void 0||_.ja.customElements.polyfillWrapFlushCallback||!1,Uob,HRa=function(){var a=HTMLElement;if(Tob)return a;if(Uob!==void 0)return Uob;var b=_.ja.Reflect,c=function(){return b.construct(a,[],this.constructor)};
c.prototype=a.prototype;c.prototype.constructor=c;c.es5Shimmed=!0;Object.setPrototypeOf(c,a);return Uob=c},Vob=!1;Tob||Vob||(Vob=!0,_.ja.HTMLElement=HRa());/*

Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
window.COMPILED=window.COMPILED||!1;var ova=/(url\()([^)]*)(\))/g,mva=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,nva,$l;var Fm=!window.ShadyDOM||!window.ShadyDOM.inUse,Wob=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),Xob=!window.customElements.polyfillWrapFlushCallback,Yob;if(Yob=Fm&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var Zob=new CSSStyleSheet;Zob.replaceSync("");var $ob=document.createElement("div");$ob.attachShadow({mode:"open"});$ob.shadowRoot.adoptedStyleSheets=[Zob];Yob=$ob.shadowRoot.adoptedStyleSheets[0]===Zob}catch(a){Yob=!1}
var apb=Yob,bpb=window.Polymer&&window.Polymer.rootPath||qva(document.baseURI||window.location.href),om=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,ywa=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Jm=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,cpb=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Em=window.Polymer&&window.Polymer.legacyOptimizations||!1,Im=window.Polymer&&window.Polymer.legacyWarnings||!1,dpb=window.Polymer&&window.Polymer.syncInitialRender||
!1,qm=window.Polymer&&window.Polymer.legacyUndefined||!1,epb=window.Polymer&&window.Polymer.orderedComputed||!1,bC=window.Polymer&&window.Polymer.removeNestedTemplates||!1,cC=window.Polymer&&window.Polymer.fastDomIf||!1,dC=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,fpb=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,gpb=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var eC={},hpb={},sm=function(){return HTMLElement.apply(this,arguments)||this};
_.z(sm,HTMLElement);sm.import=function(a,b){return a?(a=eC[a]||hpb[a.toLowerCase()])&&b?a.querySelector(b):a:null};
sm.prototype.attributeChangedCallback=function(a,b,c){b!==c&&this.register()};
sm.prototype.register=function(a){if(a=a||this.id){if(Jm&&(eC[a]||hpb[a.toLowerCase()])!==void 0)throw eC[a]=hpb[a.toLowerCase()]=null,Error("Ad`"+a);this.id=a;eC[a]=hpb[a.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.Um.Object.defineProperties(sm.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var a=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;a=_.am(this.getAttribute("assetpath")||"",a.baseURI);this.__assetpath=qva(a)}return this.__assetpath}}});
_.Um.Object.defineProperties(sm,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
sm["import"]=sm.import;sm.prototype.modules=eC;customElements.define("dom-module",sm);var ipb=0,sva=0,bm=[],jpb=0,rva=!1,kpb=document.createTextNode(""),lpb,Cm;(new window.MutationObserver(tva)).observe(kpb,{characterData:!0});_.fC={after:function(a){return{run:function(b){return window.setTimeout(b,a)},
cancel:function(b){window.clearTimeout(b)}}},
run:function(a,b){return window.setTimeout(a,b)},
cancel:function(a){window.clearTimeout(a)}};
_.ss={run:function(a){return window.requestAnimationFrame(a)},
cancel:function(a){window.cancelAnimationFrame(a)}};
lpb={run:function(a){return window.requestIdleCallback?window.requestIdleCallback(a):window.setTimeout(a,16)},
cancel:function(a){window.cancelIdleCallback?window.cancelIdleCallback(a):window.clearTimeout(a)}};
Cm={run:function(a){rva||(rva=!0,kpb.textContent=jpb++);bm.push(a);return ipb++},
cancel:function(a){var b=a-sva;if(b>=0){if(!bm[b])throw Error("Bd`"+a);bm[b]=null}}};var mpb=0,gC=function(a){var b=a.__mixinApplications;b||(b=new WeakMap,a.__mixinApplications=b);var c=mpb++;return function(d){var e=d.__mixinSet;if(e&&e[c])return d;var g=b,k=g.get(d);k||(k=a(d),g.set(d,k),d=Object.create(k.__mixinSet||e||null),d[c]=!0,k.__mixinSet=d);return k}};_.nm=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(a){return ShadyDOM.patch(a)}:function(a){return a};var npb=gC(function(a){var b=function(){var c=a.call(this)||this;c.__dataEnabled=!1;c.__dataReady=!1;c.__dataInvalid=!1;c.__data={};c.__dataPending=null;c.__dataOld=null;c.__dataInstanceProps=null;c.__dataCounter=0;c.__serializing=!1;c._initializeProperties();return c};
_.z(b,a);b.createProperties=function(c){var d=this.prototype,e;for(e in c)e in d||d._createPropertyAccessor(e)};
b.attributeNameForProperty=function(c){return c.toLowerCase()};
b.typeForProperty=function(){};
b.prototype._createPropertyAccessor=function(c,d){this._addPropertyToAttributeMap(c);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[c]||(this.__dataHasAccessor[c]=!0,this._definePropertyAccessor(c,d))};
b.prototype._addPropertyToAttributeMap=function(c){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var d=this.__dataAttributes[c];d||(d=this.constructor.attributeNameForProperty(c),this.__dataAttributes[d]=c);return d};
b.prototype._definePropertyAccessor=function(c,d){Object.defineProperty(this,c,{get:function(){return this.__data[c]},
set:d?function(){}:function(e){this._setPendingProperty(c,e,!0)&&this._invalidateProperties()}})};
b.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
b.prototype._initializeProperties=function(){for(var c in this.__dataHasAccessor)this.hasOwnProperty(c)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[c]=this[c],delete this[c])};
b.prototype._initializeInstanceProperties=function(c){Object.assign(this,c)};
b.prototype._setProperty=function(c,d){this._setPendingProperty(c,d)&&this._invalidateProperties()};
b.prototype._getProperty=function(c){return this.__data[c]};
b.prototype._setPendingProperty=function(c,d){var e=this.__data[c],g=this._shouldPropertyChange(c,d,e);g&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||c in this.__dataOld||(this.__dataOld[c]=e),this.__data[c]=d,this.__dataPending[c]=d);return g};
b.prototype._isPropertyPending=function(c){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(c))};
b.prototype._invalidateProperties=function(){var c=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Cm.run(function(){c.__dataInvalid&&(c.__dataInvalid=!1,c._flushProperties())}))};
b.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
b.prototype._flushProperties=function(){this.__dataCounter++;var c=this.__data,d=this.__dataPending,e=this.__dataOld;this._shouldPropertiesChange(c,d,e)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(c,d,e));this.__dataCounter--};
b.prototype._shouldPropertiesChange=function(c,d){return!!d};
b.prototype._propertiesChanged=function(){};
b.prototype._shouldPropertyChange=function(c,d,e){return e!==d&&(e===e||d===d)};
b.prototype.attributeChangedCallback=function(c,d,e,g){d!==e&&this._attributeToProperty(c,e);a.prototype.attributeChangedCallback&&a.prototype.attributeChangedCallback.call(this,c,d,e,g)};
b.prototype._attributeToProperty=function(c,d,e){if(!this.__serializing){var g=this.__dataAttributes;c=g&&g[c]||c;this[c]=this._deserializeValue(d,e||this.constructor.typeForProperty(c))}};
b.prototype._propertyToAttribute=function(c,d,e){this.__serializing=!0;e=arguments.length<3?this[c]:e;this._valueToNodeAttribute(this,e,d||this.constructor.attributeNameForProperty(c));this.__serializing=!1};
b.prototype._valueToNodeAttribute=function(c,d,e){d=this._serializeValue(d);if(e==="class"||e==="name"||e==="slot")c=(0,_.nm)(c);d===void 0?c.removeAttribute(e):c.setAttribute(e,d===""&&window.trustedTypes?window.trustedTypes.emptyScript:d)};
b.prototype._serializeValue=function(c){switch(typeof c){case "boolean":return c?"":void 0;default:return c!=null?c.toString():void 0}};
b.prototype._deserializeValue=function(c,d){switch(d){case Boolean:return c!==null;case Number:return Number(c);default:return c}};
return b});var opb=0,uva=[];var ppb=gC(function(a){function b(g){g=Object.getPrototypeOf(g);return g.prototype instanceof e?g:null}
function c(g){if(!g.hasOwnProperty("__ownProperties")){var k=null;if(g.hasOwnProperty("properties")){var m=g.properties;if(m){k={};for(var n in m){var r=m[n];k[n]=typeof r==="function"?{type:r}:r}}}g.__ownProperties=k}return g.__ownProperties}
var d=npb(a),e=function(){return d.apply(this,arguments)||this};
_.z(e,d);e.finalize=function(){if(!this.hasOwnProperty("__finalized")){var g=b(this);g&&g.finalize();this.__finalized=!0;this._finalizeClass()}};
e._finalizeClass=function(){var g=c(this);g&&this.createProperties(g)};
e.typeForProperty=function(g){return(g=this._properties[g])&&g.type};
e.prototype._initializeProperties=function(){opb++;this.constructor.finalize();d.prototype._initializeProperties.call(this)};
e.prototype.connectedCallback=function(){d.prototype.connectedCallback&&d.prototype.connectedCallback.call(this);this._enableProperties()};
e.prototype.disconnectedCallback=function(){d.prototype.disconnectedCallback&&d.prototype.disconnectedCallback.call(this)};
_.Um.Object.defineProperties(e,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var g=this;if(!this.hasOwnProperty("__observedAttributes")){vva(this.prototype);var k=this._properties;this.__observedAttributes=k?Object.keys(k).map(function(m){return g.prototype._addPropertyToAttributeMap(m)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var g=b(this);this.__properties=Object.assign({},g&&g._properties,c(this))}return this.__properties}}});
return e});var wva={},xva=/-[a-z]/g,yva=/([A-Z])/g;for(var qpb={},rpb=HTMLElement.prototype;rpb;){for(var spb=Object.getOwnPropertyNames(rpb),tpb=0;tpb<spb.length;tpb++)qpb[spb[tpb]]=!0;rpb=Object.getPrototypeOf(rpb)}var upb=window.trustedTypes?function(a){return trustedTypes.isHTML(a)||trustedTypes.isScript(a)||trustedTypes.isScriptURL(a)}:function(){return!1},vpb=gC(function(a){var b=npb(a);
a=function(){return b.apply(this,arguments)||this};
_.z(a,b);a.createPropertiesForAttributes=function(){for(var c=this.observedAttributes,d=0;d<c.length;d++)this.prototype._createPropertyAccessor(cm(c[d]))};
a.attributeNameForProperty=function(c){return dm(c)};
a.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);b.prototype._initializeProperties.call(this)};
a.prototype._initializeProtoProperties=function(c){for(var d in c)this._setProperty(d,c[d])};
a.prototype._ensureAttribute=function(c,d){this.hasAttribute(c)||this._valueToNodeAttribute(this,d,c)};
a.prototype._serializeValue=function(c){switch(typeof c){case "object":if(c instanceof Date)return c.toString();if(c){if(upb(c))return c;try{return JSON.stringify(c)}catch(d){return""}}default:return b.prototype._serializeValue.call(this,c)}};
a.prototype._deserializeValue=function(c,d){switch(d){case Object:try{var e=JSON.parse(c)}catch(g){e=c}break;case Array:try{e=JSON.parse(c)}catch(g){e=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+c)}break;case Date:e=isNaN(c)?String(c):Number(c);e=new Date(e);break;default:e=b.prototype._deserializeValue.call(this,c,d)}return e};
a.prototype._definePropertyAccessor=function(c,d){if(!qpb[c]){var e=this[c];e!==void 0&&(this.__data?this._setPendingProperty(c,e):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[c]=e))}b.prototype._definePropertyAccessor.call(this,c,d)};
a.prototype._hasAccessor=function(c){return this.__dataHasAccessor&&this.__dataHasAccessor[c]};
a.prototype._isPropertyPending=function(c){return!!(this.__dataPending&&c in this.__dataPending)};
return a});var wpb={"dom-if":!0,"dom-repeat":!0},xpb=!1,ypb=!1,zpb=function(){var a=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(b){return b}});
return function(b,c,d){c=c.getAttribute(d);a&&d.startsWith("on-")?b.setAttribute(d,a.createScript(c,d)):b.setAttribute(d,c)}}(),Apb=gC(function(a){var b=function(){return a.apply(this,arguments)||this};
_.z(b,a);b._parseTemplate=function(c,d){if(!c._templateInfo){var e=c._templateInfo={};e.nodeInfoList=[];e.nestedTemplate=!!d;e.stripWhiteSpace=d&&d.stripWhiteSpace||c.hasAttribute&&c.hasAttribute("strip-whitespace");this._parseTemplateContent(c,e,{parent:null})}return c._templateInfo};
b._parseTemplateContent=function(c,d,e){return this._parseTemplateNode(c.content,d,e)};
b._parseTemplateNode=function(c,d,e){var g=!1;c.localName!="template"||c.hasAttribute("preserve-content")?c.localName==="slot"&&(d.hasInsertionPoint=!0):g=this._parseTemplateNestedTemplate(c,d,e)||g;if(!xpb){xpb=!0;var k=document.createElement("textarea");k.placeholder="a";ypb=k.placeholder===k.textContent}ypb&&c.localName==="textarea"&&c.placeholder&&c.placeholder===c.textContent&&(c.textContent=null);c.firstChild&&this._parseTemplateChildNodes(c,d,e);c.hasAttributes&&c.hasAttributes()&&(g=this._parseTemplateNodeAttributes(c,
d,e)||g);return g||e.noted};
b._parseTemplateChildNodes=function(c,d,e){if(c.localName!=="script"&&c.localName!=="style")for(var g=c.firstChild,k=0,m;g;g=m){if(g.localName=="template"){var n=g.getAttribute("is");if(n&&wpb[n])for(m=g,m.removeAttribute("is"),g=m.ownerDocument.createElement(n),m.parentNode.replaceChild(g,m),g.appendChild(m);m.attributes.length;)n=m.attributes[0].name,zpb(g,m,n),m.removeAttribute(n)}m=g.nextSibling;if(g.nodeType===Node.TEXT_NODE){for(n=m;n&&n.nodeType===Node.TEXT_NODE;)g.textContent+=n.textContent,
m=n.nextSibling,c.removeChild(n),n=m;if(d.stripWhiteSpace&&!g.textContent.trim()){c.removeChild(g);continue}}n={parentIndex:k,parentInfo:e};this._parseTemplateNode(g,d,n)&&(n.infoIndex=d.nodeInfoList.push(n)-1);g.parentNode&&k++}};
b._parseTemplateNestedTemplate=function(c,d,e){d=this._parseTemplate(c,d);(d.content=c.content.ownerDocument.createDocumentFragment()).appendChild(c.content);e.templateInfo=d;return!0};
b._parseTemplateNodeAttributes=function(c,d,e){for(var g=!1,k=Array.from(c.attributes),m=k.length-1,n;n=k[m];m--)g=this._parseTemplateNodeAttribute(c,d,e,n.name,n.value)||g;return g};
b._parseTemplateNodeAttribute=function(c,d,e,g,k){return g.slice(0,3)==="on-"?(c.removeAttribute(g),e.events=e.events||[],e.events.push({name:g.slice(3),value:k}),!0):g==="id"?(e.id=k,!0):!1};
b._contentForTemplate=function(c){var d=c._templateInfo;return d&&d.content||c.content};
b.prototype._stampTemplate=function(c,d){c&&!c.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(c);d=d||this.constructor._parseTemplate(c);var e=d.nodeInfoList;c=document.importNode(d.content||c.content,!0);c.__noInsertionPoint=!d.hasInsertionPoint;var g=c.nodeList=Array(e.length);c.$={};for(var k=0,m=e.length,n=void 0;k<m&&(n=e[k]);k++){var r=g[k]=zva(c,n);n.id&&(c.$[n.id]=r);var t=r,u=n,x=d;u.templateInfo&&(t._templateInfo=u.templateInfo,t._parentTemplateInfo=
x);if(n.events&&n.events.length)for(t=0,u=n.events,x=void 0;t<u.length&&(x=u[t]);t++)this._addMethodEventListenerToNode(r,x.name,x.value,this)}return c};
b.prototype._addMethodEventListenerToNode=function(c,d,e,g){e=Ava(g||c,e);this._addEventListenerToNode(c,d,e);return e};
b.prototype._addEventListenerToNode=function(c,d,e){c.addEventListener(d,e)};
b.prototype._removeEventListenerFromNode=function(c,d,e){c.removeEventListener(d,e)};
return b});var lm=0,pm=[],Bpb={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Cpb=/[A-Z]/,Dpb=function(a,b,c,d,e){var g=e?fm(a):a;if(b=b[g])for(g=0;g<b.length;g++){var k=b[g];if(k.info.lastRun!==lm&&(!e||Gva(a,k.trigger))){k.info.lastRun=lm;k=k.info;for(var m=c,n=d,r=0,t=m.length-1,u=-1;r<=t;){var x=r+t>>1,A=n.get(m[x].methodInfo)-n.get(k.methodInfo);if(A<0)r=x+1;else if(A>0)t=x-1;else{u=x;break}}u<
0&&(u=t+1);m.splice(u,0,k)}}},Vva=[],Epb=RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?((?:[a-zA-Z_$][\\w.:$\\-*]*)\\s*(?:\\(\\s*(?:(?:(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)(?:,\\s*(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*))*)?)\\)\\s*)?)(?:]]|}})","g"),iC=gC(function(a){var b=Apb(vpb(a));
a=function(){var c=b.call(this)||this;c.__isPropertyEffectsClient=!0;return c};
_.z(a,b);a.prototype._initializeProperties=function(){b.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
a.prototype._registerHost=function(){if(hC.length){var c=hC[hC.length-1];c._enqueueClient(this);this.__dataHost=c}};
a.prototype._initializeProtoProperties=function(c){this.__data=Object.create(c);this.__dataPending=Object.create(c);this.__dataOld={}};
a.prototype._initializeInstanceProperties=function(c){var d=this.__readOnly,e;for(e in c)d&&d[e]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[e]=this.__dataPending[e]=c[e])};
a.prototype._addPropertyEffect=function(c,d,e){this._createPropertyAccessor(c,d=="__readOnly");var g=Fva(this,d,!0)[c];g||(g=this[d][c]=[]);g.push(e)};
a.prototype._removePropertyEffect=function(c,d,e){c=Fva(this,d,!0)[c];e=c.indexOf(e);e>=0&&c.splice(e,1)};
a.prototype._hasPropertyEffect=function(c,d){d=this[d];return!(!d||!d[c])};
a.prototype._hasReadOnlyEffect=function(c){return this._hasPropertyEffect(c,"__readOnly")};
a.prototype._hasNotifyEffect=function(c){return this._hasPropertyEffect(c,"__notifyEffects")};
a.prototype._hasReflectEffect=function(c){return this._hasPropertyEffect(c,"__reflectEffects")};
a.prototype._hasComputedEffect=function(c){return this._hasPropertyEffect(c,"__computeEffects")};
a.prototype._setPendingPropertyOrPath=function(c,d,e,g){if(g||fm(Array.isArray(c)?c[0]:c)!==c){if(!g&&(g=km(this,c),c=Eva(this,c,d),!c||!b.prototype._shouldPropertyChange.call(this,c,d,g)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(c,d,e)){if(e=this.__dataLinkedPaths)for(var k in e)g=e[k],gm(k,c)?(g=im(k,g,c),this._setPendingPropertyOrPath(g,d,!0,!0)):gm(g,c)&&(g=im(g,k,c),this._setPendingPropertyOrPath(g,d,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[c])return this._setPendingProperty(c,
d,e);this[c]=d}return!1};
a.prototype._setUnmanagedPropertyToNode=function(c,d,e){if(e!==c[d]||typeof e=="object")d==="className"&&(c=(0,_.nm)(c)),c[d]=e};
a.prototype._setPendingProperty=function(c,d,e){var g=this.__dataHasPaths&&em(c);if(this._shouldPropertyChange(c,d,(g?this.__dataTemp:this.__data)[c])){this.__dataPending||(this.__dataPending={},this.__dataOld={});c in this.__dataOld||(this.__dataOld[c]=this.__data[c]);g?this.__dataTemp[c]=d:this.__data[c]=d;this.__dataPending[c]=d;if(g||this.__notifyEffects&&this.__notifyEffects[c])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[c]=e;return!0}return!1};
a.prototype._setProperty=function(c,d){this._setPendingProperty(c,d,!0)&&this._invalidateProperties()};
a.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
a.prototype._enqueueClient=function(c){this.__dataPendingClients=this.__dataPendingClients||[];c!==this&&this.__dataPendingClients.push(c)};
a.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
a.prototype.__enableOrFlushClients=function(){var c=this.__dataPendingClients;if(c){this.__dataPendingClients=null;for(var d=0;d<c.length;d++){var e=c[d];e.__dataEnabled?e.__dataPending&&e._flushProperties():e._enableProperties()}}};
a.prototype._readyClients=function(){this.__enableOrFlushClients()};
a.prototype.setProperties=function(c,d){for(var e in c)!d&&this.__readOnly&&this.__readOnly[e]||this._setPendingPropertyOrPath(e,c[e],!0);this._invalidateProperties()};
a.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
a.prototype._propertiesChanged=function(c,d,e){c=this.__dataHasPaths;this.__dataHasPaths=!1;var g;if(g=this.__computeEffects)if(epb){lm++;var k=Mva(this),m=[],n;for(n in d)Dpb(n,g,m,k,c);for(;n=m.shift();)Ova(this,"",d,e,n)&&Dpb(n.methodInfo,g,m,k,c);Object.assign(e,this.__dataOld);Object.assign(d,this.__dataPending);this.__dataPending=null}else for(k=d;mm(this,g,k,e,c);)Object.assign(e,this.__dataOld),Object.assign(d,this.__dataPending),k=this.__dataPending,this.__dataPending=null;g=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(d,e,c);this._flushClients();mm(this,this.__reflectEffects,d,e,c);mm(this,this.__observeEffects,d,e,c);if(g){k=this.__notifyEffects;m=lm++;for(var r in g)if(g[r]){if(n=k){var t=k;n=m;var u=r,x=d,A=e,C=c,F=!1,J=C?fm(u):u;if(t=t[J]){J=0;for(var I=t.length,R=void 0;J<I&&(R=t[J]);J++)R.info&&R.info.lastRun===n||C&&!Gva(u,R.trigger)||(R.info&&(R.info.lastRun=n),R.fn(this,u,x,A,R.info,C,void 0),F=!0)}n=F}if(n)var da=!0;else{if(n=c)n=r,u=d,x=fm(n),x!==
n?(x=dm(x)+"-changed",Iva(this,x,u[n],n),n=!0):n=!1;n&&(da=!0)}}var V;da&&(V=this.__dataHost)&&V._invalidateProperties&&V._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
a.prototype._propagatePropertyChanges=function(c,d,e){this.__propagateEffects&&mm(this,this.__propagateEffects,c,d,e);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,c,d,e)};
a.prototype._runEffectsForTemplate=function(c,d,e,g){var k=this,m=function(n,r){mm(k,c.propertyEffects,n,e,r,c.nodeList);for(var t=c.firstChild;t;t=t.nextSibling)k._runEffectsForTemplate(t,n,e,r)};
c.runEffects?c.runEffects(m,d,g):m(d,g)};
a.prototype.linkPaths=function(c,d){c=jm(c);d=jm(d);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[c]=d};
a.prototype.unlinkPaths=function(c){c=jm(c);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[c]};
a.prototype.notifySplices=function(c,d){var e={path:""};c=km(this,c,e);Zva(this,c,e.path,d)};
a.prototype.get=function(c,d){return km(d||this,c)};
a.prototype.set=function(c,d,e){e?Eva(e,c,d):this.__readOnly&&this.__readOnly[c]||this._setPendingPropertyOrPath(c,d,!0)&&this._invalidateProperties()};
a.prototype.push=function(c){var d=_.Kd.apply(1,arguments),e={path:""},g=km(this,c,e),k=g.length,m=g.push.apply(g,_.De(d));d.length&&rm(this,g,e.path,k,d.length,[]);return m};
a.prototype.pop=function(c){var d={path:""};c=km(this,c,d);var e=!!c.length,g=c.pop();e&&rm(this,c,d.path,c.length,0,[g]);return g};
a.prototype.splice=function(c,d,e){var g=_.Kd.apply(3,arguments),k={path:""},m=km(this,c,k);d<0?d=m.length-Math.floor(-d):d&&(d=Math.floor(d));var n=arguments.length===2?m.splice(d):m.splice.apply(m,[d,e].concat(_.De(g)));(g.length||n.length)&&rm(this,m,k.path,d,g.length,n);return n};
a.prototype.shift=function(c){var d={path:""};c=km(this,c,d);var e=!!c.length,g=c.shift();e&&rm(this,c,d.path,0,0,[g]);return g};
a.prototype.unshift=function(c){var d=_.Kd.apply(1,arguments),e={path:""},g=km(this,c,e),k=g.unshift.apply(g,_.De(d));d.length&&rm(this,g,e.path,0,d.length,[]);return k};
a.prototype.notifyPath=function(c,d){if(arguments.length==1){var e={path:""};d=km(this,c,e);e=e.path}else e=Array.isArray(c)?jm(c):c;this._setPendingPropertyOrPath(e,d,!0,!0)&&this._invalidateProperties()};
a.prototype._createReadOnlyProperty=function(c,d){this._addPropertyEffect(c,"__readOnly");d&&(this["_set"+(c[0].toUpperCase()+c.substring(1))]=function(e){this._setProperty(c,e)})};
a.prototype._createPropertyObserver=function(c,d,e){var g={property:c,method:d,dynamicFn:!!e};this._addPropertyEffect(c,"__observeEffects",{fn:Hva,info:g,trigger:{name:c}});e&&this._addPropertyEffect(d,"__observeEffects",{fn:Hva,info:g,trigger:{name:d}})};
a.prototype._createMethodObserver=function(c,d){var e=Xva(c);if(!e)throw Error("Cd`"+c);Tva(this,e,"__observeEffects",Nva,null,d)};
a.prototype._createNotifyingProperty=function(c){this._addPropertyEffect(c,"__notifyEffects",{fn:Jva,info:{eventName:dm(c)+"-changed",property:c}})};
a.prototype._createReflectedProperty=function(c){var d=this.constructor.attributeNameForProperty(c);d[0]==="-"?console.warn("Property "+c+" cannot be reflected to attribute "+d+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(c,"__reflectEffects",{fn:Kva,info:{attrName:d}})};
a.prototype._createComputedProperty=function(c,d,e){var g=Xva(d);if(!g)throw Error("Dd`"+d);d=Tva(this,g,"__computeEffects",Ova,c,e);Fva(this,"__computeInfo")[c]=d};
a.prototype._marshalArgs=function(c,d,e){for(var g=this.__data,k=[],m=0,n=c.length;m<n;m++){var r=c[m],t=r.name,u=r.structured,x=r.wildcard,A=r.value;r.literal||(x?(r=gm(t,d),u=Yva(g,e,r?d:t),A={path:r?d:t,value:u,base:r?km(g,t):u}):A=u?Yva(g,e,t):g[t]);if(qm&&!this._overrideLegacyUndefined&&A===void 0&&c.length>1)return pm;k[m]=A}return k};
a.addPropertyEffect=function(c,d,e){this.prototype._addPropertyEffect(c,d,e)};
a.createPropertyObserver=function(c,d,e){this.prototype._createPropertyObserver(c,d,e)};
a.createMethodObserver=function(c,d){this.prototype._createMethodObserver(c,d)};
a.createNotifyingProperty=function(c){this.prototype._createNotifyingProperty(c)};
a.createReadOnlyProperty=function(c,d){this.prototype._createReadOnlyProperty(c,d)};
a.createReflectedProperty=function(c){this.prototype._createReflectedProperty(c)};
a.createComputedProperty=function(c,d,e){this.prototype._createComputedProperty(c,d,e)};
a.bindTemplate=function(c){return this.prototype._bindTemplate(c)};
a.prototype._bindTemplate=function(c,d){var e=this.constructor._parseTemplate(c),g=this.__preBoundTemplateInfo==e;if(!g)for(var k in e.propertyEffects)this._createPropertyAccessor(k);d?(e=Object.create(e),e.wasPreBound=g,this.__templateInfo?(c=c._parentTemplateInfo||this.__templateInfo,d=c.lastChild,e.parent=c,c.lastChild=e,(e.previousSibling=d)?d.nextSibling=e:c.firstChild=e):this.__templateInfo=e):this.__preBoundTemplateInfo=e;return e};
a._addTemplatePropertyEffect=function(c,d,e){(c.hostProps=c.hostProps||{})[d]=!0;c=c.propertyEffects=c.propertyEffects||{};(c[d]=c[d]||[]).push(e)};
a.prototype._stampTemplate=function(c,d){d=d||this._bindTemplate(c,!0);hC.push(this);c=b.prototype._stampTemplate.call(this,c,d);hC.pop();d.nodeList=c.nodeList;if(!d.wasPreBound)for(var e=d.childNodes=[],g=c.firstChild;g;g=g.nextSibling)e.push(g);c.templateInfo=d;e=d.nodeList;g=d.nodeInfoList;if(g.length)for(var k=0;k<g.length;k++){var m=e[k],n=g[k].bindings;if(n)for(var r=0;r<n.length;r++){var t=n[r],u=m,x=t;if(x.isCompound){for(var A=u.__dataCompoundStorage||(u.__dataCompoundStorage={}),C=x.parts,
F=Array(C.length),J=0;J<C.length;J++)F[J]=C[J].literal;C=x.target;A[C]=F;x.literal&&x.kind=="property"&&(C==="className"&&(u=(0,_.nm)(u)),u[C]=x.literal)}Sva(m,this,t)}m.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(d,this.__data,null,!1),this._flushClients());return c};
a.prototype._removeBoundDom=function(c){c=c.templateInfo;var d=c.previousSibling,e=c.nextSibling,g=c.parent;d?d.nextSibling=e:g&&(g.firstChild=e);e?e.previousSibling=d:g&&(g.lastChild=d);c.nextSibling=c.previousSibling=null;c=c.childNodes;for(d=0;d<c.length;d++)e=c[d],(0,_.nm)((0,_.nm)(e).parentNode).removeChild(e)};
a._parseTemplateNode=function(c,d,e){var g=b._parseTemplateNode.call(this,c,d,e);if(c.nodeType===Node.TEXT_NODE){var k=this._parseBindings(c.textContent,d);k&&(c.textContent=Uva(k)||" ",Rva(this,d,e,"text","textContent",k),g=!0)}return g};
a._parseTemplateNodeAttribute=function(c,d,e,g,k){var m=this._parseBindings(k,d);if(m){k=g;var n="property";Cpb.test(g)?n="attribute":g[g.length-1]=="$"&&(g=g.slice(0,-1),n="attribute");var r=Uva(m);r&&n=="attribute"&&(g=="class"&&c.hasAttribute("class")&&(r+=" "+c.getAttribute(g)),c.setAttribute(g,r));n=="attribute"&&k=="disable-upgrade$"&&c.setAttribute(g,"");c.localName==="input"&&k==="value"&&c.setAttribute(k,"");c.removeAttribute(k);n==="property"&&(g=cm(g));Rva(this,d,e,n,g,m,r);return!0}return b._parseTemplateNodeAttribute.call(this,
c,d,e,g,k)};
a._parseTemplateNestedTemplate=function(c,d,e){var g=b._parseTemplateNestedTemplate.call(this,c,d,e),k=c.parentNode,m=e.templateInfo,n=k.localName==="dom-if",r=k.localName==="dom-repeat";bC&&(n||r)&&(k.removeChild(c),e=e.parentInfo,e.templateInfo=m,e.noted=!0,g=!1);c=m.hostProps;if(cC&&n)c&&(d.hostProps=Object.assign(d.hostProps||{},c),bC||(e.parentInfo.noted=!0));else for(var t in c)Rva(this,d,e,"property","_host_"+t,[{mode:"{",source:t,dependencies:[t],hostProp:!0}]);return g};
a._parseBindings=function(c,d){for(var e=[],g=0,k;(k=Epb.exec(c))!==null;){k.index>g&&e.push({literal:c.slice(g,k.index)});g=k[1][0];var m=!!k[2];k=k[3].trim();var n=!1,r="",t=-1;g=="{"&&(t=k.indexOf("::"))>0&&(r=k.substring(t+2),k=k.substring(0,t),n=!0);t=Xva(k);var u=[];if(t){var x=t,A=x.args;x=x.methodName;for(var C=0;C<A.length;C++){var F=A[C];F.literal||u.push(F)}if((A=d.dynamicFns)&&A[x]||t.static)u.push(x),t.dynamicFn=!0}else u.push(k);e.push({source:k,mode:g,negate:m,customEvent:n,signature:t,
dependencies:u,event:r});g=Epb.lastIndex}g&&g<c.length&&(c=c.substring(g))&&e.push({literal:c});return e.length?e:null};
a._evaluateBinding=function(c,d,e,g,k,m){c=d.signature?Nva(c,e,g,k,d.signature):e!=d.source?km(c,d.source):m&&em(e)?km(c,e):c.__data[e];d.negate&&(c=!c);return c};
_.Um.Object.defineProperties(a.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return Bpb}}});
return a}),hC=[];var Fpb=window.ShadyCSS&&window.ShadyCSS.cssBuild,jC=gC(function(a){function b(d,e,g,k){if(!Fpb){for(var m=e.content.querySelectorAll("style"),n=cwa(e),r=dwa(g),t=e.content.firstElementChild,u=0;u<r.length;u++){var x=r[u];x.textContent=d._processStyleText(x.textContent,k);e.content.insertBefore(x,t)}for(t=r=0;t<n.length;t++)u=n[t],x=m[r],x!==u?(u=u.cloneNode(!0),x.parentNode.insertBefore(u,x)):r++,u.textContent=d._processStyleText(u.textContent,k)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(e,
g);if(gpb&&Fpb&&apb&&(e=e.content.querySelectorAll("style"))){var A="";Array.from(e).forEach(function(C){A+=C.textContent;C.parentNode.removeChild(C)});
d._styleSheet=new CSSStyleSheet;d._styleSheet.replaceSync(A)}}
var c=ppb(iC(a));a=function(){return c.call(this)||this};
_.z(a,c);a._finalizeClass=function(){c._finalizeClass.call(this);var d;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(d=this.__ownObservers)&&this.createObservers(d,this._properties);this._prepareTemplate()};
a._prepareTemplate=function(){var d=this.template;d&&(typeof d==="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):Em||(d=d.cloneNode(!0)));this.prototype._template=d};
a.createProperties=function(d){for(var e in d){var g=this.prototype,k=e,m=d[e],n=d;m.computed&&(m.readOnly=!0);m.computed&&(g._hasReadOnlyEffect(k)?console.warn("Cannot redefine computed property '"+k+"'."):g._createComputedProperty(k,m.computed,n));m.readOnly&&!g._hasReadOnlyEffect(k)?g._createReadOnlyProperty(k,!m.computed):m.readOnly===!1&&g._hasReadOnlyEffect(k)&&console.warn("Cannot make readOnly property '"+k+"' non-readOnly.");m.reflectToAttribute&&!g._hasReflectEffect(k)?g._createReflectedProperty(k):
m.reflectToAttribute===!1&&g._hasReflectEffect(k)&&console.warn("Cannot make reflected property '"+k+"' non-reflected.");m.notify&&!g._hasNotifyEffect(k)?g._createNotifyingProperty(k):m.notify===!1&&g._hasNotifyEffect(k)&&console.warn("Cannot make notify property '"+k+"' non-notify.");m.observer&&g._createPropertyObserver(k,m.observer,n[m.observer]);g._addPropertyToAttributeMap(k)}};
a.createObservers=function(d,e){for(var g=this.prototype,k=0;k<d.length;k++)g._createMethodObserver(d[k],e)};
a.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);c.prototype._initializeProperties.call(this);this.rootPath=bpb;this.importPath=this.constructor.importPath;var d=this.constructor;if(!d.hasOwnProperty("__propertyDefaults")){d.__propertyDefaults=null;var e=d._properties,g;for(g in e){var k=e[g];"value"in k&&(d.__propertyDefaults=d.__propertyDefaults||{},d.__propertyDefaults[g]=k)}}if(d=d.__propertyDefaults)for(var m in d)e=d[m],
this._canApplyPropertyDefault(m)&&(e=typeof e.value=="function"?e.value.call(this):e.value,this._hasAccessor(m)?this._setPendingProperty(m,e,!0):this[m]=e)};
a.prototype._canApplyPropertyDefault=function(d){return!this.hasOwnProperty(d)};
a._processStyleText=function(d,e){return pva(d,e)};
a._finalizeTemplate=function(d){var e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=!0;var g=this.importPath;g=g?_.am(g):"";b(this,e,d,g);this.prototype._bindTemplate(e)}};
a.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);c.prototype.connectedCallback.call(this)};
a.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);c.prototype.ready.call(this)};
a.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));c.prototype._readyClients.call(this)};
a.prototype._attachDom=function(d){var e=(0,_.nm)(this);if(e.attachShadow)return d?(e.shadowRoot||(e.attachShadow({mode:"open",shadyUpgradeFragment:d}),e.shadowRoot.appendChild(d),this.constructor._styleSheet&&(e.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),dpb&&window.ShadyDOM&&window.ShadyDOM.flushInitial(e.shadowRoot),e.shadowRoot):null;throw Error("Fd");};
a.prototype.updateStyles=function(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)};
a.prototype.resolveUrl=function(d,e){!e&&this.importPath&&(e=_.am(this.importPath));return _.am(d,e)};
a._parseTemplateContent=function(d,e,g){e.dynamicFns=e.dynamicFns||this._properties;return c._parseTemplateContent.call(this,d,e,g)};
a._addTemplatePropertyEffect=function(d,e,g){!Im||e in this._properties||g.info.part.signature&&g.info.part.signature.static||g.info.part.hostProp||d.nestedTemplate||console.warn("Property '"+e+"' used in template but not declared in 'properties'; attribute will not be observed.");return c._addTemplatePropertyEffect.call(this,d,e,g)};
_.Um.Object.defineProperties(a,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var d=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof d==="function"&&(d=d());if(d===void 0){if(d=this.hasOwnProperty("is")){d=this.is;var e=null;if(d&&(!Jm||cpb)&&(e=sm.import(d,"template"),Jm&&!e))throw Error("Ed`"+d);d=e}d=d||Object.getPrototypeOf(this.prototype).constructor.template}this._template=d}return this._template},
set:function(d){this._template=d}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var d=this.importMeta;d?this._importPath=qva(d.url):this._importPath=(d=sm.import(this.is))&&d.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return a});var Gpb=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(a){return a}}),kwa=function(a,b){Hpb(a,b);
this.value=b.reduce(function(c,d,e){return c+lwa(d)+a[e+1]},a[0]).toString()},Hpb;
kwa.prototype.toString=function(){return this.value};
_.Ipb=function(a){var b=_.Kd.apply(1,arguments);Hpb(a,b);var c=document.createElement("template");b=b.reduce(function(d,e,g){if(e instanceof HTMLTemplateElement)e=e.innerHTML;else if(e instanceof kwa)e=lwa(e);else throw Error("Hd`"+e);return d+e+a[g+1]},a[0]);
Gpb&&(b=Gpb.createHTML(b));c.innerHTML=b;return c};
Hpb=function(a,b){if(!Array.isArray(a)||!Array.isArray(a.raw)||b.length!==a.length-1)throw new TypeError("Id");};var kC=jC(HTMLElement);var Jpb=gC(function(a){var b=jC(a);a=function(){var c=b.call(this)||this;c.__lastItems=null;c.__lastMulti=null;c.__selectedMap=null;return c};
_.z(a,b);a.prototype.__updateSelection=function(c,d){var e=d.path;e=="items"?(d=d.base||[],e=this.__lastItems,c!==this.__lastMulti&&this.clearSelection(),e&&(e=jwa(d,e),this.__applySplices(e)),this.__lastItems=d,this.__lastMulti=c):d.path=="items.splices"?this.__applySplices(d.value.indexSplices):(c=e.slice(6),d=parseInt(c,10),c.indexOf(".")<0&&c==d&&this.__deselectChangedIdx(d))};
a.prototype.__applySplices=function(c){for(var d=this,e=this.__selectedMap,g={},k=0;k<c.length;g={s$jscomp$108:void 0},k++){g.s$jscomp$108=c[k];e.forEach(function(t){return function(u,x){u<t.s$jscomp$108.index||(u>=t.s$jscomp$108.index+t.s$jscomp$108.removed.length?e.set(x,u+t.s$jscomp$108.addedCount-t.s$jscomp$108.removed.length):e.set(x,-1))}}(g));
for(var m=0;m<g.s$jscomp$108.addedCount;m++){var n=g.s$jscomp$108.index+m;e.has(this.items[n])&&e.set(this.items[n],n)}}this.__updateLinks();var r=0;e.forEach(function(t,u){t<0?(d.multi?d.splice("selected",r,1):d.selected=d.selectedItem=null,e.delete(u)):r++})};
a.prototype.__updateLinks=function(){var c=this;this.__dataLinkedPaths={};if(this.multi){var d=0;this.__selectedMap.forEach(function(e){e>=0&&c.linkPaths("items."+e,"selected."+d++)})}else this.__selectedMap.forEach(function(e){c.linkPaths("selected","items."+e);
c.linkPaths("selectedItem","items."+e)})};
a.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
a.prototype.isSelected=function(c){return this.__selectedMap.has(c)};
a.prototype.isIndexSelected=function(c){return this.isSelected(this.items[c])};
a.prototype.__deselectChangedIdx=function(c){var d=this,e=this.__selectedIndexForItemIndex(c);if(e>=0){var g=0;this.__selectedMap.forEach(function(k,m){e==g++&&d.deselect(m)})}};
a.prototype.__selectedIndexForItemIndex=function(c){if(c=this.__dataLinkedPaths["items."+c])return parseInt(c.slice(9),10)};
a.prototype.deselect=function(c){var d=this.__selectedMap.get(c);if(d>=0){this.__selectedMap.delete(c);var e;this.multi&&(e=this.__selectedIndexForItemIndex(d));this.__updateLinks();this.multi?this.splice("selected",e,1):this.selected=this.selectedItem=null}};
a.prototype.deselectIndex=function(c){this.deselect(this.items[c])};
a.prototype.select=function(c){this.selectIndex(this.items.indexOf(c))};
a.prototype.selectIndex=function(c){var d=this.items[c];this.isSelected(d)?this.toggle&&this.deselectIndex(c):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(d,c),this.__updateLinks(),this.multi?this.push("selected",d):this.selected=this.selectedItem=d)};
_.Um.Object.defineProperties(a,{properties:{configurable:!0,enumerable:!0,get:function(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}},
observers:{configurable:!0,enumerable:!0,get:function(){return["__updateSelection(multi, items.*)"]}}});
return a}),Kpb=Jpb(kC),lC=function(){return Kpb.apply(this,arguments)||this};
_.z(lC,Kpb);_.Um.Object.defineProperties(lC,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(lC.is,lC);var Lpb=window.Polymer;window.Polymer=function(a){return window.Polymer._polymerFn(a)};
Lpb&&Object.assign(Polymer,Lpb);Polymer._polymerFn=function(){throw Error("Jd");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:pva,resolveUrl:_.am,pathFromUrl:qva};Polymer.DomModule=sm;Polymer.Async={timeOut:_.fC,animationFrame:_.ss,idlePeriod:lpb,microTask:Cm};Polymer.dedupingMixin=gC;Polymer.wrap=_.nm;Polymer.PropertiesChanged=npb;Polymer.telemetry={instanceCount:opb,incrementInstanceCount:function(){opb++},
registrations:uva,register:vva,dumpRegistrations:function(){uva.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=ppb;Polymer.CaseMap={dashToCamelCase:cm,camelToDashCase:dm};Polymer.PropertyAccessors=vpb;Polymer.TemplateStamp=Apb;Polymer.Path={isPath:em,root:fm,isAncestor:Bva,isDescendant:gm,translate:im,matches:Cva,normalize:jm,split:Dva,get:km,set:Eva,isDeep:em};Polymer.Settings={useShadow:Fm,useNativeCSSProperties:Wob,useNativeCustomElements:Xob,get rootPath(){return bpb},setRootPath:function(a){bpb=a},
get sanitizeDOMValue(){return om},setSanitizeDOMValue:function(a){om=a},
get passiveTouchGestures(){return ywa},setPassiveTouchGestures:function(a){ywa=a},
get strictTemplatePolicy(){return Jm},setStrictTemplatePolicy:function(a){Jm=a},
get allowTemplateFromDomModule(){return cpb},setAllowTemplateFromDomModule:function(a){cpb=a},
get legacyOptimizations(){return Em},setLegacyOptimizations:function(a){Em=a},
get syncInitialRender(){return dpb},setSyncInitialRender:function(a){dpb=a},
get legacyUndefined(){return qm},setLegacyUndefined:function(a){qm=a},
get legacyWarnings(){return Im},setLegacyWarnings:function(a){Im=a},
get orderedComputed(){return epb},setOrderedComputed:function(a){epb=a},
get fastDomIf(){return cC},setFastDomIf:function(a){cC=a},
get removeNestedTemplates(){return bC},setRemoveNestedTemplates:function(a){bC=a},
get suppressTemplateNotifications(){return dC},setSuppressTemplateNotifications:dC};Polymer.rootPath!==void 0&&(bpb=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(om=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(ywa=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(Jm=Polymer.strictTemplatePolicy);cpb=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(Em=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(dpb=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(qm=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(Im=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(epb=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(cC=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(bC=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(dC=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return om},
set:function(a){om=a}});Polymer.PropertyEffects=iC;Polymer.StyleGather={stylesFromModules:bwa,stylesFromModule:awa,stylesFromTemplate:cwa,stylesFromModuleImports:dwa,cssFromModules:fwa,cssFromModule:ewa,cssFromTemplate:gwa,cssFromModuleImports:function(a){return(a=sm.import(a))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(a):""}};Polymer.ElementMixin=jC;Polymer.updateStyles=function(a){window.ShadyCSS&&window.ShadyCSS.styleDocument(a)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:jwa};Polymer.html=_.Ipb;Polymer.htmlLiteral=function(a){return new kwa(a,_.Kd.apply(1,arguments))};Polymer.Element=kC;Polymer.ArraySelectorMixin=Jpb;Polymer.ArraySelector=lC;var Mpb=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Npb=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Sxa=/@media\s(.*)/;var pwa=null,owa=window.HTMLImports&&window.HTMLImports.whenReady||null,qwa;var Opb=null,mC=null,nC=function(){this.customStyles=[];this.enqueued=!1;rwa(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},Ppb=function(a){!a.enqueued&&mC&&(a.enqueued=!0,rwa(mC))};
nC.prototype.addCustomStyle=function(a){a.__seenByShadyCSS||(a.__seenByShadyCSS=!0,this.customStyles.push(a),Ppb(this))};
nC.prototype.getStyleForCustomStyle=function(a){if(a.__shadyCSSCachedStyle)return a.__shadyCSSCachedStyle;var b;a.getStyle?b=a.getStyle():b=a;return b};
nC.prototype.processStyles=function(){for(var a=this.customStyles,b=0;b<a.length;b++){var c=a[b];if(!c.__shadyCSSCachedStyle){var d=this.getStyleForCustomStyle(c);d&&(d=d.__appliedElement||d,Opb&&Opb(d),c.__shadyCSSCachedStyle=d)}}return a};
nC.prototype.addCustomStyle=nC.prototype.addCustomStyle;nC.prototype.getStyleForCustomStyle=nC.prototype.getStyleForCustomStyle;nC.prototype.processStyles=nC.prototype.processStyles;Object.defineProperties(nC.prototype,{transformCallback:{get:function(){return Opb},
set:function(a){Opb=a}},
validateCallback:{get:function(){return mC},
set:function(a){var b=!1;mC||(b=!0);mC=a;b&&Ppb(this)}}});var twa=!(window.ShadyDOM&&window.ShadyDOM.inUse),swa,Tm;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(Tm=window.ShadyCSS.cssBuild);var Qpb=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?swa=window.ShadyCSS.nativeCss:window.ShadyCSS?(uwa(window.ShadyCSS),window.ShadyCSS=void 0):uwa(window.WebComponents&&window.WebComponents.flags);var Pxa=swa;var Rpb=new nC;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(a,b){Rpb.processStyles();mwa(a,b)},
styleElement:function(){Rpb.processStyles()},
styleDocument:function(a){Rpb.processStyles();mwa(document.body,a)},
getComputedStyleValue:function(a,b){return nwa(a,b)},
flushCustomStyles:function(){},
nativeCss:Pxa,nativeShadow:twa,cssBuild:Tm,disableRuntime:Qpb});window.ShadyCSS.CustomStyleInterface=Rpb;var Spb=window.ShadyCSS.CustomStyleInterface,oC=function(){var a=HTMLElement.call(this)||this;a._style=null;Spb.addCustomStyle(a);return a};
_.z(oC,HTMLElement);oC.prototype.getStyle=function(){if(this._style)return this._style;var a=this.querySelector("style");if(!a)return null;this._style=a;var b=a.getAttribute("include");b&&(a.removeAttribute("include"),a.textContent=fwa(b)+a.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
oC.prototype.getStyle=oC.prototype.getStyle;window.customElements.define("custom-style",oC);Polymer.CustomStyle=oC;var pC=function(){this._timer=this._callback=this._asyncModule=null},qC,Upb;
pC.prototype.setConfig=function(a,b){var c=this;this._asyncModule=a;this._callback=b;this._timer=this._asyncModule.run(function(){c._timer=null;qC.delete(c);c._callback()})};
pC.prototype.cancel=function(){this.isActive()&&(Tpb(this),qC.delete(this))};
var Tpb=function(a){a.isActive()&&(a._asyncModule.cancel(a._timer),a._timer=null)};
pC.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
pC.prototype.isActive=function(){return this._timer!=null};
_.rC=function(a,b,c){a instanceof pC?Tpb(a):a=new pC;a.setConfig(b,c);return a};
qC=new Set;_.sC=function(a){qC.add(a)};
Upb=function(){var a=!!qC.size;qC.forEach(function(b){try{b.flush()}catch(c){setTimeout(function(){throw c;})}});
return a};var wwa=typeof document.head.style.touchAction==="string",vwa=["mousedown","mousemove","mouseup","click"],Fwa=[0,1,4,2],Vpb;try{Vpb=(new MouseEvent("test",{buttons:1})).buttons===1}catch(a){Vpb=!1}var Ewa=Vpb,xwa=!1;(function(){try{var a=Object.defineProperty({},"passive",{get:function(){xwa=!0}});
window.addEventListener("test",null,a);window.removeEventListener("test",null,a)}catch(b){}})();
var Awa=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),Bwa=[],Wpb={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},Rwa={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},Cwa=function(a){var b=a.sourceCapabilities;if(!b||b.firesTouchEvents)if(a.__polymerGesturesHandled={skip:!0},a.type==="click"){b=!1;for(var c=Jwa(a),d=0;d<c.length;d++){if(c[d].nodeType===Node.ELEMENT_NODE)if(c[d].localName==="label")Bwa.push(c[d]);
else if(Wpb[c[d].localName]){var e=c[d];var g=Array.prototype.slice.call(e.labels||[]);if(!g.length){g=[];try{var k=e.getRootNode();if(e.id){var m=k.querySelectorAll("label[for = '"+e.id+"']");for(e=0;e<m.length;e++)g.push(m[e])}}catch(n){}}for(e=0;e<g.length;e++)b=b||Bwa.indexOf(g[e])>-1}if(c[d]===Xpb)return}b||(a.preventDefault(),a.stopPropagation())}},Xpb=null,tC=null,Lwa=0,Mwa=0,Kwa=-1,Nwa=!1;
document.addEventListener("touchend",function(a){tC||Dwa(!0);Xpb=Jwa(a)[0];tC=_.rC(tC,_.fC.after(2500),function(){Dwa();tC=Xpb=null})},xwa?{passive:!0}:!1);
var Jwa=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(a){return a.composedPath&&a.composedPath()||[]},ym={},wm=[];
Owa({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){vm(this.info)},
mousedown:function(a){if(um(a)){var b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a),c=this;Hwa(this.info,function(d){um(d)||(Dm("up",b,d),vm(c.info))},function(d){um(d)&&Dm("up",b,d);
vm(c.info)});
Dm("down",b,a)}},
touchstart:function(a){Dm("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a),a.changedTouches[0],a)},
touchend:function(a){Dm("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a),a.changedTouches[0],a)}});
Owa({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(a){this.moves.length>2&&this.moves.shift();this.moves.push(a)},
movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start";this.info.started=!1;this.info.moves=[];this.info.x=0;this.info.y=0;this.info.prevent=!1;vm(this.info)},
mousedown:function(a){if(um(a)){var b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a),c=this,d=function(e){var g=e.clientX,k=e.clientY;Pwa(c.info,g,k)&&(c.info.state=c.info.started?e.type==="mouseup"?"end":"track":"start",c.info.state==="start"&&xm("tap"),c.info.addMove({x:g,y:k}),um(e)||(c.info.state="end",vm(c.info)),b&&Qwa(c.info,b,e),c.info.started=!0)};
Hwa(this.info,d,function(e){c.info.started&&d(e);vm(c.info)});
this.info.x=a.clientX;this.info.y=a.clientY}},
touchstart:function(a){a=a.changedTouches[0];this.info.x=a.clientX;this.info.y=a.clientY},
touchmove:function(a){var b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a);a=a.changedTouches[0];var c=a.clientX,d=a.clientY;Pwa(this.info,c,d)&&(this.info.state==="start"&&xm("tap"),this.info.addMove({x:c,y:d}),Qwa(this.info,b,a),this.info.state="track",this.info.started=!0)},
touchend:function(a){var b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a);a=a.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:a.clientX,y:a.clientY}),Qwa(this.info,b,a))}});
Owa({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN;this.info.y=NaN;this.info.prevent=!1},
mousedown:function(a){um(a)&&(this.info.x=a.clientX,this.info.y=a.clientY)},
click:function(a){um(a)&&Swa(this.info,a)},
touchstart:function(a){a=a.changedTouches[0];this.info.x=a.clientX;this.info.y=a.clientY},
touchend:function(a){Swa(this.info,a.changedTouches[0],a)}});var Ypb=gC(function(a){var b=function(){return a.apply(this,arguments)||this};
_.z(b,a);b.prototype._addEventListenerToNode=function(c,d,e){zm(c,d,e)||a.prototype._addEventListenerToNode.call(this,c,d,e)};
b.prototype._removeEventListenerFromNode=function(c,d,e){Am(c,d,e)||a.prototype._removeEventListenerFromNode.call(this,c,d,e)};
return b});var uC=gC(function(a){var b=function(){return a.apply(this,arguments)||this};
_.z(b,a);b.prototype._shouldPropertyChange=function(c,d,e){return Twa(this,c,d,e,!0)};
return b}),Zpb=gC(function(a){var b=function(){return a.apply(this,arguments)||this};
_.z(b,a);b.prototype._shouldPropertyChange=function(c,d,e){return Twa(this,c,d,e,this.mutableData)};
_.Um.Object.defineProperties(b,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return b});
uC._mutablePropertyChange=Twa;var Uwa=!1;var $pb=Ypb(Zpb(iC(HTMLElement))),vC=function(){var a=$pb.call(this)||this;if(Jm)throw Error("Kd");a.root=null;a.$=null;a.__children=null;return a};
_.z(vC,$pb);_.f=vC.prototype;_.f.attributeChangedCallback=function(){this.mutableData=!0};
_.f.connectedCallback=function(){Vwa()||(this.style.display="none");this.render()};
_.f.disconnectedCallback=function(){this.__removeChildren()};
_.f.__insertChildren=function(){(0,_.nm)((0,_.nm)(this).parentNode).insertBefore(this.root,this)};
_.f.__removeChildren=function(){if(this.__children)for(var a=0;a<this.__children.length;a++)this.root.appendChild(this.__children[a])};
_.f.render=function(){var a=this;if(!this.__children){var b=b||this.querySelector("template");if(!b){var c=new MutationObserver(function(){if(b=a.querySelector("template"))c.disconnect(),a.render();else throw Error("Ld");});
c.observe(this,{childList:!0});return}this.root=this._stampTemplate(b);this.$=this.root.$;this.__children=[];for(var d=this.root.firstChild;d;d=d.nextSibling)this.__children[this.__children.length]=d;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.Um.Object.defineProperties(vC,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",vC);Polymer.Debouncer=pC;Polymer.Gestures={gestures:ym,recognizers:wm,deepTargetFind:Iwa,addListener:zm,removeListener:Am,register:Owa,setTouchAction:_.Bm,prevent:xm,resetMouseCanceller:function(){tC&&tC.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:zm,remove:Am};Polymer.GestureEventListeners=Ypb;Polymer.MutableData=uC;Polymer.OptionalMutableData=Zpb;Polymer.DomBind=vC;_.wC=function(){do{var a=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var b=Upb()}while(a||b)};var Wwa=null;Xwa.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Xwa,writable:!0}});var exa=iC(Xwa),dxa=uC(exa),aqb=iC(function(){}),Gm=function(a){var b=aqb.call(this)||this;
b._configureProperties(a);b.root=b._stampTemplate(b.__dataHost);var c=[];b.children=c;for(var d=b.root.firstChild;d;d=d.nextSibling)c.push(d),d.__templatizeInstance=b;b.__templatizeOwner&&b.__templatizeOwner.__hideTemplateChildren__&&b._showHideChildren(!0);c=b.__templatizeOptions;(a&&c.instanceProps||!c.instanceProps)&&b._enableProperties();return b};
_.z(Gm,aqb);_.f=Gm.prototype;_.f._configureProperties=function(a){if(this.__templatizeOptions.forwardHostProp)for(var b in this.__hostProps)this._setPendingProperty(b,this.__dataHost["_host_"+b]);for(var c in a)this._setPendingProperty(c,a[c])};
_.f.forwardHostProp=function(a,b){this._setPendingPropertyOrPath(a,b,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.f._addEventListenerToNode=function(a,b,c){var d=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(a,b,function(g){g.model=d;c(g)});
else{var e=this.__dataHost.__dataHost;e&&e._addEventListenerToNode(a,b,c)}};
_.f._showHideChildren=function(a){Zwa(a,this.children)};
_.f._setUnmanagedPropertyToNode=function(a,b,c){a.__hideTemplateChildren__&&a.nodeType==Node.TEXT_NODE&&b=="textContent"?a.__polymerTextContent__=c:aqb.prototype._setUnmanagedPropertyToNode.call(this,a,b,c)};
_.f.dispatchEvent=function(){return!0};
_.Um.Object.defineProperties(Gm.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var a=this.__parentModel;if(!a){var b;a=this;do a=a.__dataHost.__dataHost;while((b=a.__templatizeOptions)&&!b.parentModel);this.__parentModel=a}return a}}});
var axa=uC(Gm);var xC=function(){var a=kC.call(this)||this;a.__renderDebouncer=null;a._lastIf=!1;a.__hideTemplateChildren__=!1;return a};
_.z(xC,kC);_.f=xC.prototype;_.f.__debounceRender=function(){var a=this;this.__renderDebouncer=_.rC(this.__renderDebouncer,Cm,function(){return a.__render()});
_.sC(this.__renderDebouncer)};
_.f.disconnectedCallback=function(){kC.prototype.disconnectedCallback.call(this);var a=(0,_.nm)(this).parentNode;a&&(a.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.nm)(a).host)||this.__teardownInstance()};
_.f.connectedCallback=function(){kC.prototype.connectedCallback.call(this);Vwa()||(this.style.display="none");this.if&&this.__debounceRender()};
_.f.__ensureTemplate=function(){var a=this;if(!this.__template){var b=this._templateInfo?this:(0,_.nm)(this).querySelector("template");if(!b){var c=new MutationObserver(function(){if((0,_.nm)(a).querySelector("template"))c.disconnect(),a.__render();else throw Error("Od");});
c.observe(this,{childList:!0});return!1}this.__template=b}return!0};
_.f.__ensureInstance=function(){var a=(0,_.nm)(this).parentNode;if(this.__hasInstance()){var b=this.__getInstanceNodes();if(b&&b.length&&(0,_.nm)(this).previousSibling!==b[b.length-1])for(var c=0,d=void 0;c<b.length&&(d=b[c]);c++)(0,_.nm)(a).insertBefore(d,this)}else{if(!a||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(a)}return!0};
_.f.render=function(){_.wC()};
_.f.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();dC&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.f.__hasInstance=function(){};
_.f.__getInstanceNodes=function(){};
_.f.__createAndInsertInstance=function(){};
_.f.__teardownInstance=function(){};
_.f._showHideChildren=function(){};
_.Um.Object.defineProperties(xC,{is:{configurable:!0,enumerable:!0,get:function(){return"dom-if"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}},
properties:{configurable:!0,enumerable:!0,get:function(){return{if:{type:Boolean,observer:xC.prototype.__debounceRender},restamp:{type:Boolean,observer:xC.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var bqb=function(){var a=xC.call(this)||this;a.__instance=null;a.__syncInfo=null;return a};
_.z(bqb,xC);_.f=bqb.prototype;_.f.__hasInstance=function(){return!!this.__instance};
_.f.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.f.__createAndInsertInstance=function(a){var b=this,c=this.__dataHost||this;if(Jm&&!this.__dataHost)throw Error("Md");var d=c._bindTemplate(this.__template,!0);d.runEffects=function(e,g,k){var m=b.__syncInfo;if(b.if)m&&(b.__syncInfo=null,b._showHideChildren(),g=Object.assign(m.changedProps,g)),e(g,k);else if(b.__instance)if(m||(m=b.__syncInfo={runEffects:e,changedProps:{}}),k)for(var n in g)e=fm(n),m.changedProps[e]=b.__dataHost[e];else Object.assign(m.changedProps,g)};
this.__instance=c._stampTemplate(this.__template,d);(0,_.nm)(a).insertBefore(this.__instance,this)};
_.f.__syncHostProperties=function(){var a=this.__syncInfo;a&&(this.__syncInfo=null,a.runEffects(a.changedProps,!1))};
_.f.__teardownInstance=function(){var a=this.__dataHost||this;this.__instance&&(a._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.f._showHideChildren=function(){var a=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==a&&(this.__instance.__hidden=a,Zwa(a,this.__instance.templateInfo.childNodes));a||this.__syncHostProperties()};
var cqb=function(){var a=xC.call(this)||this;a.__ctor=null;a.__instance=null;a.__invalidProps=null;return a};
_.z(cqb,xC);_.f=cqb.prototype;_.f.__hasInstance=function(){return!!this.__instance};
_.f.__getInstanceNodes=function(){return this.__instance.children};
_.f.__createAndInsertInstance=function(a){this.__ctor||(this.__ctor=Hm(this.__template,this,{mutableData:!0,forwardHostProp:function(b,c){this.__instance&&(this.if?this.__instance.forwardHostProp(b,c):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[fm(b)]=!0))}}));
this.__instance=new this.__ctor;(0,_.nm)(a).insertBefore(this.__instance.root,this)};
_.f.__teardownInstance=function(){if(this.__instance){var a=this.__instance.children;if(a&&a.length){var b=(0,_.nm)(a[0]).parentNode;if(b){b=(0,_.nm)(b);for(var c=0,d=void 0;c<a.length&&(d=a[c]);c++)b.removeChild(d)}}this.__instance=this.__invalidProps=null}};
_.f.__syncHostProperties=function(){var a=this.__invalidProps;if(a){this.__invalidProps=null;for(var b in a)this.__instance._setPendingProperty(b,this.__dataHost[b]);this.__instance._flushProperties()}};
_.f._showHideChildren=function(){var a=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==a&&(this.__instance.__hidden=a,this.__instance._showHideChildren(a));a||this.__syncHostProperties()};
_.ur=cC?bqb:cqb;customElements.define(_.ur.is,_.ur);Polymer.enqueueDebouncer=_.sC;Polymer.flush=_.wC;Polymer.Templatize={templatize:Hm,modelForElement:kxa};Polymer.TemplateInstanceBase=Gm;Polymer.DomIf=_.ur;var dqb=Zpb(kC),tr=function(){var a=dqb.call(this)||this;a.__instances=[];a.__renderDebouncer=null;a.__itemsIdxToInstIdx={};a.__chunkCount=null;a.__renderStartTime=null;a.__itemsArrayChanged=!1;a.__shouldMeasureChunk=!1;a.__shouldContinueChunking=!1;a.__chunkingId=0;a.__sortFn=null;a.__filterFn=null;a.__observePaths=null;a.__ctor=null;a.__isDetached=!0;a.template=null;return a};
_.z(tr,dqb);_.f=tr.prototype;_.f.disconnectedCallback=function(){dqb.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var a=0;a<this.__instances.length;a++)this.__detachInstance(a);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.f.connectedCallback=function(){dqb.prototype.connectedCallback.call(this);Vwa()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var a=(0,_.nm)((0,_.nm)(this).parentNode),b=0;b<this.__instances.length;b++)this.__attachInstance(b,a);this.__chunkingId&&this.__render()}};
_.f.__ensureTemplatized=function(){var a=this;if(!this.__ctor){var b=this.template=this._templateInfo?this:this.querySelector("template");if(!b){var c=new MutationObserver(function(){if(a.querySelector("template"))c.disconnect(),a.__render();else throw Error("Pd");});
c.observe(this,{childList:!0});return!1}var d={};d[this.as]=!0;d[this.indexAs]=!0;d[this.itemsIndexAs]=!0;this.__ctor=Hm(b,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:d,forwardHostProp:function(e,g){for(var k=this.__instances,m=0,n=void 0;m<k.length&&(n=k[m]);m++)n.forwardHostProp(e,g)},
notifyInstanceProp:function(e,g,k){Cva(this.as,g)&&(e=e[this.itemsIndexAs],g==this.as&&(this.items[e]=k),g=im(this.as,"items."+e,g),this.notifyPath(g,k))}})}return!0};
_.f.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.f.__functionFromPropertyValue=function(a){if(typeof a==="string"){var b=this.__getMethodHost();return function(){return b[a].apply(b,arguments)}}return a};
_.f.__sortChanged=function(a){this.__sortFn=this.__functionFromPropertyValue(a);this.items&&this.__debounceRender(this.__render)};
_.f.__filterChanged=function(a){this.__filterFn=this.__functionFromPropertyValue(a);this.items&&this.__debounceRender(this.__render)};
_.f.__computeFrameTime=function(a){return Math.ceil(1E3/a)};
_.f.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.f.__handleObservedPaths=function(a){if(this.__sortFn||this.__filterFn)if(!a)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var b=this.__observePaths,c=0;c<b.length;c++)a.indexOf(b[c])===0&&this.__debounceRender(this.__render,this.delay)};
_.f.__itemsChanged=function(a){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(a.path,a.value)||(a.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.f.__debounceRender=function(a,b){b=b===void 0?0:b;this.__renderDebouncer=_.rC(this.__renderDebouncer,b>0?_.fC.after(b):Cm,a.bind(this));_.sC(this.__renderDebouncer)};
_.f.render=function(){this.__debounceRender(this.__render);_.wC()};
_.f.__render=function(){var a=this;if(this.__ensureTemplatized()){var b=this.items||[],c=this.__sortAndFilterItems(b),d=this.__calculateLimit(c.length);this.__updateInstances(b,d,c);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){a.__chunkingId=null;a.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);dC&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.f.__sortAndFilterItems=function(a){for(var b=this,c=Array(a.length),d=0;d<a.length;d++)c[d]=d;this.__filterFn&&(c=c.filter(function(e,g,k){return b.__filterFn(a[e],g,k)}));
this.__sortFn&&c.sort(function(e,g){return b.__sortFn(a[e],a[g])});
return c};
_.f.__calculateLimit=function(a){var b=a,c=this.__instances.length;if(this.initialCount){var d;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(b=Math.min(a,this.initialCount),this.__chunkCount=(d=Math.max(b-c,0))||1):(d=Math.min(Math.max(a-c,0),this.__chunkCount),b=Math.min(c+d,a));this.__shouldMeasureChunk=d===this.__chunkCount;this.__shouldContinueChunking=b<a;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return b};
_.f.__continueChunking=function(){if(this.__shouldMeasureChunk){var a=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/a*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.f.__updateInstances=function(a,b,c){var d=this.__itemsIdxToInstIdx={},e;for(e=0;e<b;e++){var g=this.__instances[e],k=c[e],m=a[k];d[k]=e;g?(g._setPendingProperty(this.as,m),g._setPendingProperty(this.indexAs,e),g._setPendingProperty(this.itemsIndexAs,k),g._flushProperties()):this.__insertInstance(m,e,k)}for(a=this.__instances.length-1;a>=e;a--)this.__detachAndRemoveInstance(a)};
_.f.__detachInstance=function(a){a=this.__instances[a];for(var b=(0,_.nm)(a.root),c=0;c<a.children.length;c++)b.appendChild(a.children[c]);return a};
_.f.__attachInstance=function(a,b){b.insertBefore(this.__instances[a].root,this)};
_.f.__detachAndRemoveInstance=function(a){this.__detachInstance(a);this.__instances.splice(a,1)};
_.f.__stampInstance=function(a,b,c){var d={};d[this.as]=a;d[this.indexAs]=b;d[this.itemsIndexAs]=c;return new this.__ctor(d)};
_.f.__insertInstance=function(a,b,c){a=this.__stampInstance(a,b,c);c=(c=this.__instances[b+1])?c.children[0]:this;(0,_.nm)((0,_.nm)(this).parentNode).insertBefore(a.root,c);return this.__instances[b]=a};
_.f._showHideChildren=function(a){for(var b=0;b<this.__instances.length;b++)this.__instances[b]._showHideChildren(a)};
_.f.__handleItemPath=function(a,b){var c=a.slice(6),d=c.indexOf(".");a=d<0?c:c.substring(0,d);if(a==parseInt(a,10)){c=d<0?"":c.substring(d+1);this.__handleObservedPaths(c);if(a=this.__instances[this.__itemsIdxToInstIdx[a]])a._setPendingPropertyOrPath(this.as+(c?"."+c:""),b,!1,!0),a._flushProperties();return!0}};
_.f.itemForElement=function(a){return(a=this.modelForElement(a))&&a[this.as]};
_.f.indexForElement=function(a){return(a=this.modelForElement(a))&&a[this.indexAs]};
_.f.modelForElement=function(a){return kxa(this.template,a)};
_.Um.Object.defineProperties(tr,{is:{configurable:!0,enumerable:!0,get:function(){return"dom-repeat"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}},
properties:{configurable:!0,enumerable:!0,get:function(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:tr.prototype.__sortChanged},filter:{type:Function,observer:tr.prototype.__filterChanged},observe:{type:String,observer:tr.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!dC,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},
_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}},
observers:{configurable:!0,enumerable:!0,get:function(){return["__itemsChanged(items.*)"]}}});
tr.prototype._setRenderedItemCount=function(){};
customElements.define(tr.is,tr);Polymer.DomRepeat=tr;var eqb=function(a,b){var c=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=a;this.callback=b;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){c._schedule()};
this.connect();this._schedule()},fqb=function(a){var b=(0,_.nm)(a);
if(Km(a))return b.assignedNodes({flatten:!0});a=[];for(var c=0;c<b.childNodes.length;c++){var d=b.childNodes[c];Km(d)?a.push.apply(a,_.De((0,_.nm)(d).assignedNodes({flatten:!0}))):a.push(d)}return a};
_.f=eqb.prototype;_.f.connect=function(){var a=this;Km(this._target)?this._listenSlots([this._target]):(0,_.nm)(this._target).children&&(this._listenSlots((0,_.nm)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(b){a._processMutations(b)}):(this._nativeChildrenObserver=new MutationObserver(function(b){a._processMutations(b)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.f.disconnect=function(){Km(this._target)?this._unlistenSlots([this._target]):(0,_.nm)(this._target).children&&(this._unlistenSlots((0,_.nm)(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null));this._connected=!1};
_.f._schedule=function(){var a=this;this._scheduled||(this._scheduled=!0,Cm.run(function(){return a.flush()}))};
_.f._processMutations=function(a){this._processSlotMutations(a);this.flush()};
_.f._processSlotMutations=function(a){if(a)for(var b=0;b<a.length;b++){var c=a[b];c.addedNodes&&this._listenSlots(c.addedNodes);c.removedNodes&&this._unlistenSlots(c.removedNodes)}};
_.f.flush=function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush();this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords());this._scheduled=!1;for(var a={target:this._target,addedNodes:[],removedNodes:[]},b=fqb(this._target),c=jwa(b,this._effectiveNodes),d=0,e=void 0;d<c.length&&(e=c[d]);d++)for(var g=0,k=void 0;g<e.removed.length&&(k=e.removed[g]);g++)a.removedNodes.push(k);
d=0;for(e=void 0;d<c.length&&(e=c[d]);d++)for(g=e.index;g<e.index+e.addedCount;g++)a.addedNodes.push(b[g]);this._effectiveNodes=b;b=!1;if(a.addedNodes.length||a.removedNodes.length)b=!0,this.callback.call(this._target,a);return b};
_.f._listenSlots=function(a){for(var b=0;b<a.length;b++){var c=a[b];Km(c)&&c.addEventListener("slotchange",this._boundSchedule)}};
_.f._unlistenSlots=function(a){for(var b=0;b<a.length;b++){var c=a[b];Km(c)&&c.removeEventListener("slotchange",this._boundSchedule)}};var yC=Element.prototype,gqb=yC.matches||yC.matchesSelector||yC.mozMatchesSelector||yC.msMatchesSelector||yC.oMatchesSelector||yC.webkitMatchesSelector,hqb=function(a,b){return gqb.call(a,b)},Lm=function(a){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(a);
this.node=a},lqb;
_.f=Lm.prototype;_.f.observeNodes=function(a){return new eqb(this.node,a)};
_.f.unobserveNodes=function(a){a.disconnect()};
_.f.notifyObserver=function(){};
_.f.deepContains=function(a){if((0,_.nm)(this.node).contains(a))return!0;var b=a;for(a=a.ownerDocument;b&&b!==a&&b!==this.node;)b=(0,_.nm)(b).parentNode||(0,_.nm)(b).host;return b===this.node};
_.f.getOwnerRoot=function(){return(0,_.nm)(this.node).getRootNode()};
_.f.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.nm)(this.node).assignedNodes({flatten:!0}):[]};
_.f.getDestinationInsertionPoints=function(){for(var a=[],b=(0,_.nm)(this.node).assignedSlot;b;)a.push(b),b=(0,_.nm)(b).assignedSlot;return a};
_.f.importNode=function(a,b){return(0,_.nm)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(a,b)};
_.f.getEffectiveChildNodes=function(){return fqb(this.node)};
_.f.queryDistributedElements=function(a){for(var b=this.getEffectiveChildNodes(),c=[],d=0,e=b.length,g=void 0;d<e&&(g=b[d]);d++)g.nodeType===Node.ELEMENT_NODE&&hqb(g,a)&&c.push(g);return c};
_.Um.Object.defineProperties(Lm.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var a=this.node;return a._activeElement!==void 0?a._activeElement:a.activeElement}}});
var zC=function(a){this.event=a};
_.Um.Object.defineProperties(zC.prototype,{rootTarget:{configurable:!0,enumerable:!0,get:function(){return this.path[0]}},
localTarget:{configurable:!0,enumerable:!0,get:function(){return this.event.target}},
path:{configurable:!0,enumerable:!0,get:function(){return this.event.composedPath()}}});
var iqb=Lm;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var jqb=window.ShadyDOM.Wrapper,kqb=function(){return jqb.apply(this,arguments)||this};
_.z(kqb,jqb);Object.getOwnPropertyNames(Lm.prototype).forEach(function(a){a!="activeElement"&&a!="constructor"&&(kqb.prototype[a]=Lm.prototype[a])});
mxa(kqb.prototype,["classList"]);iqb=kqb;Object.defineProperties(zC.prototype,{localTarget:{get:function(){var a=this.event.currentTarget;a=a&&_.wn(a).getOwnerRoot();for(var b=this.path,c=0;c<b.length;c++){var d=b[c];if(_.wn(d).getOwnerRoot()===a)return d}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else lxa(),mxa(Lm.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),nxa();lqb=iqb;_.wn=function(a){a=a||document;if(a instanceof iqb)return a;if(a instanceof zC)return a;var b=a.__domApi;b||(a instanceof Event?b=new zC(a):b=new iqb(a),a.__domApi=b);return b};var mqb=/:host\(:dir\((ltr|rtl)\)\)/g,nqb=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,oqb=/:dir\((?:ltr|rtl)\)/,pqb=!(!window.ShadyDOM||!window.ShadyDOM.inUse),Nm=[],AC=null,Mm="",qqb=gC(function(a){pqb||AC||(Mm=document.documentElement.getAttribute("dir"),AC=new MutationObserver(oxa),AC.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var b=vpb(a);a=function(){var c=b.call(this)||this;c.__autoDirOptOut=!1;return c};
_.z(a,b);a._processStyleText=function(c,d){c=b._processStyleText.call(this,c,d);!pqb&&oqb.test(c)&&(c=this._replaceDirInCssText(c),this.__activateDir=!0);return c};
a._replaceDirInCssText=function(c){c=c.replace(mqb,':host([dir="$1"])');return c=c.replace(nqb,':host([dir="$2"]) $1')};
a.prototype.ready=function(){b.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
a.prototype.connectedCallback=function(){b.prototype.connectedCallback&&b.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(AC&&AC.takeRecords().length&&oxa(),Nm.push(this),this.__autoDirOptOut||this.setAttribute("dir",Mm))};
a.prototype.disconnectedCallback=function(){b.prototype.disconnectedCallback&&b.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var c=Nm.indexOf(this);c>-1&&Nm.splice(c,1)}};
a.__activateDir=!1;return a});var rqb=function(a){for(;a;){var b=Object.getOwnPropertyDescriptor(a,"observedAttributes");if(b)return b.get;a=Object.getPrototypeOf(a.prototype).constructor}return function(){return[]}};
gC(function(a){var b=jC(a),c=rqb(b);a=function(){return b.call(this)||this};
_.z(a,b);a.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:b.prototype._initializeProperties.call(this)};
a.prototype._enableProperties=function(){this.__isUpgradeDisabled||b.prototype._enableProperties.call(this)};
a.prototype._canApplyPropertyDefault=function(d){return b.prototype._canApplyPropertyDefault.call(this,d)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(d))};
a.prototype.attributeChangedCallback=function(d,e,g,k){d=="disable-upgrade"?this.__isUpgradeDisabled&&g==null&&(b.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.nm)(this).isConnected&&b.prototype.connectedCallback.call(this)):b.prototype.attributeChangedCallback.call(this,d,e,g,k)};
a.prototype.connectedCallback=function(){this.__isUpgradeDisabled||b.prototype.connectedCallback.call(this)};
a.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||b.prototype.disconnectedCallback.call(this)};
_.Um.Object.defineProperties(a,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return c.call(this).concat("disable-upgrade")}}});
return a});var Om=!1,qxa=[],Pm=[];var uxa=window.ShadyDOM,vxa=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",xxa):document.readyState==="interactive"||document.readyState==="complete"?xxa():window.addEventListener("DOMContentLoaded",xxa);var Axa=function(){this.end=this.start=0;this.rules=this.parent=this.previous=null;this.cssText=this.parsedCssText="";this.atRule=!1;this.type=0;this.parsedSelector=this.selector=this.keyframesName=""},yxa=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,zxa=/@import[^;]*;/gim,Gxa=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Hxa=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Ixa=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,Jxa=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Exa=/^@[^\s]*keyframes/,
Dxa=/\s+/g;var Kxa={};var Nxa=Promise.resolve();var sqb=new Set;var tqb=/;\s*/m,uqb=/^\s*(initial)|(inherit)\s*$/,vqb=/\s*!important/,wqb=function(){this._map={}};
wqb.prototype.set=function(a,b){a=a.trim();this._map[a]={properties:b,dependants:{}}};
wqb.prototype.get=function(a){a=a.trim();return this._map[a]||null};
var xqb=null,BC=function(){this._measureElement=this._currentElement=null;this._map=new wqb};
_.f=BC.prototype;_.f.detectMixin=function(a){a=Npb.test(a)||Mpb.test(a);Npb.lastIndex=0;Mpb.lastIndex=0;return a};
_.f.transformTemplate=function(a,b){if(a._gatheredStyle===void 0){var c=[];for(var d=a.content.querySelectorAll("style"),e=0;e<d.length;e++){var g=d[e];if(g.hasAttribute("shady-unscoped")){if(!twa){var k=g.textContent;if(!sqb.has(k)){sqb.add(k);var m=document.createElement("style");m.setAttribute("shady-unscoped","");m.textContent=k;document.head.appendChild(m)}g.parentNode.removeChild(g)}}else c.push(g.textContent),g.parentNode.removeChild(g)}(c=c.join("").trim())?(d=document.createElement("style"),
d.textContent=c,a.content.insertBefore(d,a.content.firstChild),c=d):c=null;a._gatheredStyle=c}return(a=a._gatheredStyle)?this.JSC$9002_transformStyle(a,b):null};
_.f.JSC$9002_transformStyle=function(a,b){b=b===void 0?"":b;var c=Rxa(a);this.transformRules(c,b);a.textContent=Qxa(c);return c};
_.f.transformCustomStyle=function(a){var b=this,c=Rxa(a);Txa(c,function(d){d.selector===":root"&&(d.selector="html");b.transformRule(d)});
a.textContent=Qxa(c);return c};
_.f.transformRules=function(a,b){var c=this;this._currentElement=b;Txa(a,function(d){c.transformRule(d)});
this._currentElement=null};
_.f.transformRule=function(a){a.cssText=yqb(this,a.parsedCssText,a);a.selector===":root"&&(a.selector=":host > *")};
var yqb=function(a,b,c){b=b.replace(Mpb,function(d,e,g,k){return a._produceCssProperties(d,e,g,k,c)});
return a._consumeCssProperties(b,c)};
_.f=BC.prototype;_.f._getInitialValueForProperty=function(a){this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement));return window.getComputedStyle(this._measureElement).getPropertyValue(a)};
_.f._fallbacksFromPreviousRules=function(a){for(var b=this,c=a;c.parent;)c=c.parent;var d={},e=!1;Txa(c,function(g){(e=e||g===a)||g.selector===a.selector&&Object.assign(d,b._cssTextToMap(g.parsedCssText))});
return d};
_.f._consumeCssProperties=function(a,b){for(var c;c=Npb.exec(a);){var d=c[0],e=c[1];c=c.index;var g=c+d.indexOf("@apply"),k=c+d.length;d=a.slice(0,g);a=a.slice(k);g=b?this._fallbacksFromPreviousRules(b):{};Object.assign(g,this._cssTextToMap(d));e=this._atApplyToCssProperties(e,g);a=d+e+a;Npb.lastIndex=c+e.length}return a};
_.f._atApplyToCssProperties=function(a,b){a=a.replace(tqb,"");var c=[],d=this._map.get(a);d||(this._map.set(a,{}),d=this._map.get(a));if(d){this._currentElement&&(d.dependants[this._currentElement]=!0);var e,g=d.properties;for(e in g){var k=b&&b[e];d=[e,": var(",a,"_-_",e];k&&d.push(",",k.replace(vqb,""));d.push(")");vqb.test(g[e])&&d.push(" !important");c.push(d.join(""))}}return c.join("; ")};
_.f._replaceInitialOrInherit=function(a,b){var c=uqb.exec(b);c&&(b=c[1]?this._getInitialValueForProperty(a):"apply-shim-inherit");return b};
_.f._cssTextToMap=function(a,b){b=b===void 0?!1:b;a=a.split(";");for(var c,d,e={},g=0;g<a.length;g++)if(c=a[g])d=c.split(":"),d.length>1&&(c=d[0].trim(),d=d.slice(1).join(":"),b&&(d=this._replaceInitialOrInherit(c,d)),e[c]=d);return e};
_.f._invalidateMixinEntry=function(a){if(xqb)for(var b in a.dependants)b!==this._currentElement&&xqb(b)};
_.f._produceCssProperties=function(a,b,c,d,e){var g=this;c&&Uxa(c,function(C,F){F&&g._map.get(F)&&(d="@apply "+F+";")});
if(!d)return a;var k=this._consumeCssProperties(""+d,e);e=a.slice(0,a.indexOf("--"));var m=k=this._cssTextToMap(k,!0),n=this._map.get(b),r=n&&n.properties;r?m=Object.assign(Object.create(r),k):this._map.set(b,m);var t=[],u,x=!1;for(u in m){var A=k[u];A===void 0&&(A="initial");!r||u in r||(x=!0);t.push(b+"_-_"+u+": "+A)}x&&this._invalidateMixinEntry(n);n&&(n.properties=m);c&&(e=a+";"+e);return e+t.join("; ")+";"};
BC.prototype.detectMixin=BC.prototype.detectMixin;BC.prototype.transformStyle=BC.prototype.JSC$9002_transformStyle;BC.prototype.transformCustomStyle=BC.prototype.transformCustomStyle;BC.prototype.transformRules=BC.prototype.transformRules;BC.prototype.transformRule=BC.prototype.transformRule;BC.prototype.transformTemplate=BC.prototype.transformTemplate;BC.prototype._separator="_-_";Object.defineProperty(BC.prototype,"invalidCallback",{get:function(){return xqb},
set:function(a){xqb=a}});var CC=new BC,zqb=function(){this.customStyleInterface=null;CC.invalidCallback=Lxa},DC=function(a){!a.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(a.customStyleInterface=window.ShadyCSS.CustomStyleInterface,a.customStyleInterface.transformCallback=function(b){CC.transformCustomStyle(b)},a.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){a.customStyleInterface.enqueued&&a.flushCustomStyles()})})};
_.f=zqb.prototype;_.f.prepareTemplate=function(a,b){DC(this);Vxa(a)===""&&(Kxa[b]=a,b=CC.transformTemplate(a,b),a._styleAst=b)};
_.f.flushCustomStyles=function(){DC(this);if(this.customStyleInterface){var a=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var b=0;b<a.length;b++){var c=this.customStyleInterface.getStyleForCustomStyle(a[b]);c&&CC.transformCustomStyle(c)}this.customStyleInterface.enqueued=!1}}};
_.f.styleSubtree=function(a,b){DC(this);b&&mwa(a,b);if(a.shadowRoot)for(this.styleElement(a),a=a.shadowRoot.children||a.shadowRoot.childNodes,b=0;b<a.length;b++)this.styleSubtree(a[b]);else for(a=a.children||a.childNodes,b=0;b<a.length;b++)this.styleSubtree(a[b])};
_.f.styleElement=function(a){DC(this);var b=a.localName,c;b?b.indexOf("-")>-1?c=b:c=a.getAttribute&&a.getAttribute("is")||"":c=a.is;b=Kxa[c];if(!(b&&Vxa(b)!==""||!b||Mxa(b))){if(Mxa(b)||b._applyShimValidatingVersion!==b._applyShimNextVersion)this.prepareTemplate(b,c),Oxa(b);if(a=a.shadowRoot)if(a=a.querySelector("style"))a.__cssRules=b._styleAst,a.textContent=Qxa(b._styleAst)}};
_.f.styleDocument=function(a){DC(this);this.styleSubtree(document.body,a)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var EC=new zqb,Aqb=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(a,b){EC.flushCustomStyles();EC.prepareTemplate(a,b)},
prepareTemplateStyles:function(a,b,c){window.ShadyCSS.prepareTemplate(a,b,c)},
prepareTemplateDom:function(){},
styleSubtree:function(a,b){EC.flushCustomStyles();EC.styleSubtree(a,b)},
styleElement:function(a){EC.flushCustomStyles();EC.styleElement(a)},
styleDocument:function(a){EC.flushCustomStyles();EC.styleDocument(a)},
getComputedStyleValue:function(a,b){return nwa(a,b)},
flushCustomStyles:function(){EC.flushCustomStyles()},
nativeCss:Pxa,nativeShadow:twa,cssBuild:Tm,disableRuntime:Qpb};Aqb&&(window.ShadyCSS.CustomStyleInterface=Aqb)}window.ShadyCSS.ApplyShim=CC;var Bqb;Bqb=window.ShadyCSS;_.FC=gC(function(a){a=Ypb(jC(a));var b=Fpb?a:qqb(a),c=rqb(b),d={x:"pan-x",y:"pan-y",none:"none",all:"auto"};a=function(){return b.call(this)||this};
_.z(a,b);a.prototype.created=function(){};
a.prototype.__attributeReaction=function(e,g,k){(this.__dataAttributes&&this.__dataAttributes[e]||e==="disable-upgrade")&&this.attributeChangedCallback(e,g,k,null)};
a.prototype.setAttribute=function(e,g){if(fpb&&!this._legacyForceObservedAttributes){var k=this.getAttribute(e);b.prototype.setAttribute.call(this,e,g);this.__attributeReaction(e,k,String(g))}else b.prototype.setAttribute.call(this,e,g)};
a.prototype.removeAttribute=function(e){if(fpb&&!this._legacyForceObservedAttributes){var g=this.getAttribute(e);b.prototype.removeAttribute.call(this,e);this.__attributeReaction(e,g,null)}else b.prototype.removeAttribute.call(this,e)};
a.prototype._enableProperties=function(){this.__isUpgradeDisabled||b.prototype._enableProperties.call(this)};
a.prototype._canApplyPropertyDefault=function(e){return b.prototype._canApplyPropertyDefault.call(this,e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))};
a.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(b.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
a.prototype.attached=function(){};
a.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(b.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
a.prototype.detached=function(){};
a.prototype.attributeChangedCallback=function(e,g,k,m){g!==k&&(e=="disable-upgrade"?this.__isUpgradeDisabled&&k==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.nm)(this).isConnected&&this.connectedCallback()):(b.prototype.attributeChangedCallback.call(this,e,g,k,m),this.attributeChanged(e,g,k)))};
a.prototype.attributeChanged=function(){};
a.prototype._initializeProperties=function(){if(Em&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var e=Object.getPrototypeOf(this);e.hasOwnProperty("__hasRegisterFinished")||(this._registered(),e.__hasRegisterFinished=!0);b.prototype._initializeProperties.call(this);this.root=this;this.created();fpb&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
a.prototype._takeAttributes=function(){for(var e=this.attributes,g=0,k=e.length;g<k;g++){var m=e[g];this.__attributeReaction(m.name,null,m.value)}};
a.prototype._registered=function(){};
a.prototype.ready=function(){this._ensureAttributes();b.prototype.ready.call(this)};
a.prototype._ensureAttributes=function(){};
a.prototype._applyListeners=function(){};
a.prototype.serialize=function(e){return this._serializeValue(e)};
a.prototype.deserialize=function(e,g){return this._deserializeValue(e,g)};
a.prototype.reflectPropertyToAttribute=function(e,g,k){this._propertyToAttribute(e,g,k)};
a.prototype.serializeValueToAttribute=function(e,g,k){this._valueToNodeAttribute(k||this,e,g)};
a.prototype.extend=function(e,g){if(!e||!g)return e||g;for(var k=Object.getOwnPropertyNames(g),m=0,n=void 0;m<k.length&&(n=k[m]);m++){var r=Object.getOwnPropertyDescriptor(g,n);r&&Object.defineProperty(e,n,r)}return e};
a.prototype.mixin=function(e,g){for(var k in g)e[k]=g[k];return e};
a.prototype.chainObject=function(e,g){e&&g&&e!==g&&(e.__proto__=g);return e};
a.prototype.instanceTemplate=function(e){e=this.constructor._contentForTemplate(e);return document.importNode(e,!0)};
a.prototype.fire=function(e,g,k){k=k||{};g=g===null||g===void 0?{}:g;e=new Event(e,{bubbles:k.bubbles===void 0?!0:k.bubbles,cancelable:!!k.cancelable,composed:k.composed===void 0?!0:k.composed});e.detail=g;(0,_.nm)(k.node||this).dispatchEvent(e);return e};
a.prototype.listen=function(e,g,k){e=e||this;var m=this.__boundListeners||(this.__boundListeners=new WeakMap),n=m.get(e);n||(n={},m.set(e,n));m=g+k;n[m]||(n[m]=this._addMethodEventListenerToNode(e,g,k,this))};
a.prototype.unlisten=function(e,g,k){e=e||this;var m=this.__boundListeners&&this.__boundListeners.get(e);k=g+k;var n=m&&m[k];n&&(this._removeEventListenerFromNode(e,g,n),m[k]=null)};
a.prototype.setScrollDirection=function(e,g){_.Bm(g||this,d[e]||"auto")};
a.prototype.$$=function(e){return this.root.querySelector(e)};
a.prototype.distributeContent=function(){var e=_.wn(this);window.ShadyDOM&&e.shadowRoot&&ShadyDOM.flush()};
a.prototype.getEffectiveChildNodes=function(){return _.wn(this).getEffectiveChildNodes()};
a.prototype.queryDistributedElements=function(e){return _.wn(this).queryDistributedElements(e)};
a.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(e){return e.nodeType===Node.ELEMENT_NODE})};
a.prototype.getEffectiveTextContent=function(){for(var e=this.getEffectiveChildNodes(),g=[],k=0,m;m=e[k];k++)m.nodeType!==Node.COMMENT_NODE&&g.push(m.textContent);return g.join("")};
a.prototype.queryEffectiveChildren=function(e){return(e=this.queryDistributedElements(e))&&e[0]};
a.prototype.queryAllEffectiveChildren=function(e){return this.queryDistributedElements(e)};
a.prototype.getContentChildNodes=function(e){return(e=this.root.querySelector(e||"slot"))?_.wn(e).getDistributedNodes():[]};
a.prototype.getContentChildren=function(e){return this.getContentChildNodes(e).filter(function(g){return g.nodeType===Node.ELEMENT_NODE})};
a.prototype.isLightDescendant=function(e){return this!==e&&(0,_.nm)(this).contains(e)&&(0,_.nm)(this).getRootNode()===(0,_.nm)(e).getRootNode()};
a.prototype.isLocalDescendant=function(e){return this.root===(0,_.nm)(e).getRootNode()};
a.prototype.scopeSubtree=function(e,g){return wxa(e,g===void 0?!1:g)};
a.prototype.getComputedStyleValue=function(e){return Bqb.getComputedStyleValue(this,e)};
a.prototype.debounce=function(e,g,k){this._debouncers=this._debouncers||{};return this._debouncers[e]=_.rC(this._debouncers[e],k>0?_.fC.after(k):Cm,g.bind(this))};
a.prototype.isDebouncerActive=function(e){this._debouncers=this._debouncers||{};e=this._debouncers[e];return!(!e||!e.isActive())};
a.prototype.flushDebouncer=function(e){this._debouncers=this._debouncers||{};(e=this._debouncers[e])&&e.flush()};
a.prototype.cancelDebouncer=function(e){this._debouncers=this._debouncers||{};(e=this._debouncers[e])&&e.cancel()};
a.prototype.async=function(e,g){return g>0?_.fC.run(e.bind(this),g):~Cm.run(e.bind(this))};
a.prototype.cancelAsync=function(e){e<0?Cm.cancel(~e):_.fC.cancel(e)};
a.prototype.create=function(e,g){e=document.createElement(e);if(g)if(e.setProperties)e.setProperties(g);else for(var k in g)e[k]=g[k];return e};
a.prototype.elementMatches=function(e,g){return hqb(g||this,e)};
a.prototype.toggleAttribute=function(e,g){var k=this;arguments.length===3&&(k=arguments[2]);arguments.length==1&&(g=!k.hasAttribute(e));if(g)return(0,_.nm)(k).setAttribute(e,""),!0;(0,_.nm)(k).removeAttribute(e);return!1};
a.prototype.toggleClass=function(e,g,k){k=k||this;arguments.length==1&&(g=!k.classList.contains(e));g?k.classList.add(e):k.classList.remove(e)};
a.prototype.transform=function(e,g){g=g||this;g.style.webkitTransform=e;g.style.transform=e};
a.prototype.translate3d=function(e,g,k,m){this.transform("translate3d("+e+","+g+","+k+")",m||this)};
a.prototype.arrayDelete=function(e,g){if(Array.isArray(e)){if(g=e.indexOf(g),g>=0)return e.splice(g,1)}else if(g=km(this,e).indexOf(g),g>=0)return this.splice(e,g,1);return null};
a.prototype._logger=function(e,g){Array.isArray(g)&&g.length===1&&Array.isArray(g[0])&&(g=g[0]);switch(e){case "log":case "warn":case "error":console[e].apply(console,_.De(g))}};
a.prototype._log=function(){this._logger("log",_.Kd.apply(0,arguments))};
a.prototype._warn=function(){this._logger("warn",_.Kd.apply(0,arguments))};
a.prototype._error=function(){this._logger("error",_.Kd.apply(0,arguments))};
a.prototype._logf=function(e){return["[%s::%s]",this.is,e].concat(_.De(_.Kd.apply(1,arguments)))};
_.Um.Object.defineProperties(a.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var e=(0,_.nm)(this).getRootNode();return e instanceof DocumentFragment?e.host:e}}});
_.Um.Object.defineProperties(a,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return fpb&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],vva(this.prototype)),this.__observedAttributes):c.call(this).concat("disable-upgrade")}}});
a.prototype.is="";return a});Polymer.FlattenedNodesObserver=eqb;Polymer.DomApi=lqb;Polymer.EventApi=zC;Polymer.dom=_.wn;Polymer.dom.matchesSelector=hqb;Polymer.dom.flush=_.wC;Polymer.dom.addDebouncer=_.sC;Polymer.DirMixin=qqb;Polymer.RenderStatus={beforeNextRender:_.txa,afterNextRender:_.Qm,flush:function(){for(;qxa.length||Pm.length;)pxa(qxa),pxa(Pm);Om=!1}};Polymer.LegacyElementMixin=_.FC;var Cqb;Cqb=uC._mutablePropertyChange;var Dqb={properties:{mutableData:Boolean},_shouldPropertyChange:function(a,b,c){return Cqb(this,a,b,c,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(a,b,c){return Cqb(this,a,b,c,!0)}};
Polymer.OptionalMutableDataBehavior=Dqb;var Wxa={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},aya={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},$xa=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},aya),Eqb=(0,_.FC)(HTMLElement),fLa=function(a,b){a||console.warn("Polymer.Class requires `info` argument");b=b?b(Eqb):Eqb;b=bya(a,b,a.behaviors);b.is=b.prototype.is=
a.is;return b};Polymer.Class=fLa;Polymer.mixinBehaviors=function(a,b){return bya({},(0,_.FC)(b),a)};
Polymer.GenerateClassFromInfo=bya;_.sr=function(a){var b=typeof a==="function"?a:_.sr.Class(a);a._legacyForceObservedAttributes&&(b.prototype._legacyForceObservedAttributes=a._legacyForceObservedAttributes);customElements.define(b.is,b);return b};
_.sr.Class=fLa;Polymer._polymerFn=_.sr;var Fqb=window.onLegacyPolymerFunctionDefinedCallback;Fqb&&Fqb();var hLa={templatize:function(a,b){this._templatizerTemplate=a;this.ctor=Hm(a,this,{mutableData:!!b,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(a){return new this.ctor(a)},
modelForElement:function(a){return kxa(this._templatizerTemplate,a)}};Polymer.Templatizer=hLa;_.GC=(0,_.FC)(HTMLElement).prototype;Polymer.Base=_.GC;var dya=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.Vm=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.z(_.Vm,PolymerFakeBaseClass);var Wm=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.z(Wm,PolymerFakeBaseClass);var eya=Symbol("Qd"),mya=[Array,Boolean,Date,Number,Object,String];/*
 ****************************************************************************
Copyright (C) Microsoft. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and
limitations under the License.
*****************************************************************************/
var Gqb=Gqb||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},Hqb;(function(a){function b(V,fa,aa){var ma=da.get(V);if(!ma){if(!aa)return;ma=new I;da.set(V,ma)}V=ma.get(fa);if(!V){if(!aa)return;V=new I;ma.set(fa,V)}return V}
function c(V,fa,aa){if(d(V,fa,aa))return!0;fa=x(fa);return fa!==null?c(V,fa,aa):!1}
function d(V,fa,aa){fa=b(fa,aa,!1);return fa===void 0?!1:!!fa.has(V)}
function e(V,fa,aa){if(d(V,fa,aa))return g(V,fa,aa);fa=x(fa);if(fa!==null)return e(V,fa,aa)}
function g(V,fa,aa){fa=b(fa,aa,!1);if(fa!==void 0)return fa.get(V)}
function k(V,fa){var aa=m(V,fa);V=x(V);if(V===null)return aa;var ma=k(V,fa);if(ma.length<=0)return aa;if(aa.length<=0)return ma;fa=new R;V=[];aa=_.h(aa);for(var Ba=aa.next();!Ba.done;Ba=aa.next())Ba=Ba.value,fa.has(Ba)||(fa.add(Ba),V.push(Ba));aa=_.h(ma);for(ma=aa.next();!ma.done;ma=aa.next())ma=ma.value,fa.has(ma)||(fa.add(ma),V.push(ma));return V}
function m(V,fa){V=b(V,fa,!1);var aa=[];V&&V.forEach(function(ma,Ba){return aa.push(Ba)});
return aa}
function n(V){return V===void 0}
function r(V){return typeof V==="object"?V!==null:typeof V==="function"}
function t(V){return typeof V==="function"}
function u(V){return typeof V==="symbol"?V:String(V)}
function x(V){var fa=Object.getPrototypeOf(V);if(typeof V!=="function"||V===J||fa!==J)return fa;var aa=Object.getPrototypeOf(V.prototype);if(aa==null||aa===Object.prototype)return fa;aa=aa.constructor;return typeof aa!=="function"||aa===V?fa:aa}
function A(){function V(){this._keys=[];this._values=[];this._cache=fa}
var fa={};V.prototype={get size(){return this._keys.length},has:function(aa){return aa===this._cache?!0:this._find(aa)>=0?(this._cache=aa,!0):!1},
get:function(aa){var ma=this._find(aa);if(ma>=0)return this._cache=aa,this._values[ma]},
set:function(aa,ma){this.delete(aa);this._keys.push(aa);this._values.push(ma);this._cache=aa;return this},
delete:function(aa){aa=this._find(aa);return aa>=0?(this._keys.splice(aa,1),this._values.splice(aa,1),this._cache=fa,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=fa},
forEach:function(aa){for(var ma=this.size,Ba=0;Ba<ma;++Ba){var Ca=this._keys[Ba],ya=this._values[Ba];this._cache=Ca;aa.call(this,ya,Ca,this)}},
_find:function(aa){for(var ma=this._keys,Ba=ma.length,Ca=0;Ca<Ba;++Ca)if(ma[Ca]===aa)return Ca;return-1}};
return V}
function C(){function V(){this._map=new I}
V.prototype={get size(){return this._map.length},has:function(fa){return this._map.has(fa)},
add:function(fa){this._map.set(fa,fa);return this},
delete:function(fa){return this._map.delete(fa)},
clear:function(){this._map.clear()},
forEach:function(fa,aa){this._map.forEach(fa,aa)}};
return V}
function F(){function V(){this._key=aa()}
function fa(db,lb){for(var Ua=0;Ua<lb;++Ua)db[Ua]=Math.random()*255|0}
function aa(){do{if(Ba)var db=Ba.randomBytes(16);else typeof Uint8Array==="function"?(db=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(db):fa(db,16)):(db=Array(16),fa(db,16));db[6]=db[6]&79|64;db[8]=db[8]&191|128;for(var lb="",Ua=0;Ua<16;++Ua){var Vb=db[Ua];if(Ua===4||Ua===6||Ua===8)lb+="-";Vb<16&&(lb+="0");lb+=Vb.toString(16).toLowerCase()}db="@@WeakMap@@"+lb}while(Ca.call(ya,db));ya[db]=!0;return db}
function ma(db,lb){if(!Ca.call(db,Ia)){if(!lb)return;Object.defineProperty(db,Ia,{value:Object.create(null)})}return db[Ia]}
var Ba=typeof global!=="undefined"&&typeof Gqb==="object"&&typeof require==="function"&&require("crypto"),Ca=Object.prototype.hasOwnProperty,ya={},Ia=aa();V.prototype={has:function(db){return(db=ma(db,!1))?this._key in db:!1},
get:function(db){if(db=ma(db,!1))return db[this._key]},
set:function(db,lb){ma(db,!0)[this._key]=lb;return this},
delete:function(db){return(db=ma(db,!1))&&this._key in db?delete db[this._key]:!1},
clear:function(){this._key=aa()}};
return V}
var J=Object.getPrototypeOf(Function),I=typeof Map==="function"?Map:A(),R=typeof Set==="function"?Set:C(),da=new (typeof WeakMap==="function"?WeakMap:F());a.decorate=function(V,fa,aa,ma){if(n(ma)){if(n(aa)){if(!Array.isArray(V))throw new TypeError;if(!t(fa))throw new TypeError;for(aa=V.length-1;aa>=0;--aa)if(ma=(0,V[aa])(fa),!n(ma)){if(!t(ma))throw new TypeError;fa=ma}return fa}if(!Array.isArray(V))throw new TypeError;if(!r(fa))throw new TypeError;aa=u(aa);for(ma=V.length-1;ma>=0;--ma)(0,V[ma])(fa,
aa)}else{if(Array.isArray(V))if(r(fa)){if(n(aa))throw new TypeError;if(!r(ma))throw new TypeError;}else throw new TypeError;else throw new TypeError;aa=u(aa);for(var Ba=V.length-1;Ba>=0;--Ba){var Ca=(0,V[Ba])(fa,aa,ma);if(!n(Ca)){if(!r(Ca))throw new TypeError;ma=Ca}}return ma}};
a.metadata=function(V,fa){return function(aa,ma){if(n(ma)){if(!t(aa))throw new TypeError;b(aa,void 0,!0).set(V,fa)}else{if(!r(aa))throw new TypeError;ma=u(ma);b(aa,ma,!0).set(V,fa)}}};
a.defineMetadata=function(V,fa){var aa;if(r(fa))n(aa)||(aa=u(aa));else throw new TypeError;b(fa,aa,!0).set("parameters",V)};
a.hasMetadata=function(V,fa,aa){if(r(fa))n(aa)||(aa=u(aa));else throw new TypeError;return c(V,fa,aa)};
a.hasOwnMetadata=function(V,fa,aa){if(r(fa))n(aa)||(aa=u(aa));else throw new TypeError;return d(V,fa,aa)};
a.getMetadata=function(V,fa,aa){if(r(fa))n(aa)||(aa=u(aa));else throw new TypeError;return e(V,fa,aa)};
a.getOwnMetadata=function(V,fa,aa){if(r(fa))n(aa)||(aa=u(aa));else throw new TypeError;return g(V,fa,aa)};
a.getMetadataKeys=function(V,fa){if(r(V))n(fa)||(fa=u(fa));else throw new TypeError;return k(V,fa)};
a.getOwnMetadataKeys=function(V,fa){if(r(V))n(fa)||(fa=u(fa));else throw new TypeError;return m(V,fa)};
a.deleteMetadata=function(V,fa,aa){if(r(fa))n(aa)||(aa=u(aa));else throw new TypeError;var ma=b(fa,aa,!1);if(!n(ma)){if(!ma.delete(V))return!1;if(ma.size>0)return!0;V=da.get(fa);V.delete(aa);if(V.size>0)return!0;da.delete(fa);return!0}};
(function(V){if(typeof V.Reflect!=="undefined"){if(V.Reflect!==a)for(var fa in a)V.Reflect[fa]=a[fa]}else V.Reflect=a})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(Hqb||(Hqb={}));var GIa=self;var Iqb=[0,_.fy,_.hy,_.fy];var Jqb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Jqb,_.bd);var Kqb=_.kd(Jqb,[0,_.S$a,_.iy,Iqb,_.hy,_.ky]);_.sx(_.Xm,_.vg);_.f=_.Xm.prototype;_.f.start=function(){this.stop();this.usingListeners_=!1;var a=Lqb(this),b=Mqb(this);a&&!b&&this.JSC$9045_win_.mozRequestAnimationFrame?(this.JSC$9045_id_=_.rs(this.JSC$9045_win_,"MozBeforePaint",this.callback_),this.JSC$9045_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9045_id_=a&&b?a.call(this.JSC$9045_win_,this.callback_):this.JSC$9045_win_.setTimeout(Ybb(this.callback_),20)};
_.f.stop=function(){if(this.isActive()){var a=Lqb(this),b=Mqb(this);a&&!b&&this.JSC$9045_win_.mozRequestAnimationFrame?os(this.JSC$9045_id_):a&&b?b.call(this.JSC$9045_win_,this.JSC$9045_id_):this.JSC$9045_win_.clearTimeout(this.JSC$9045_id_)}this.JSC$9045_id_=null};
_.f.fire=function(){this.stop();this.JSC$9047_doAction_()};
_.f.isActive=function(){return this.JSC$9045_id_!=null};
_.f.JSC$9047_doAction_=function(){this.usingListeners_&&this.JSC$9045_id_&&os(this.JSC$9045_id_);this.JSC$9045_id_=null;this.JSC$9045_listener_.call(this.handler_,_.rx())};
_.f.disposeInternal=function(){this.stop();_.Xm.superClass_.disposeInternal.call(this)};
var Lqb=function(a){a=a.JSC$9045_win_;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null},Mqb=function(a){a=a.JSC$9045_win_;
return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};_.lv=function(a,b,c){_.vg.call(this);this.JSC$9048_listener_=c!=null?a.bind(c):a;this.JSC$9048_interval_=b;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9048_timer_=null};
_.z(_.lv,_.vg);_.f=_.lv.prototype;_.f.fire=function(a){this.args_=arguments;this.JSC$9048_timer_||this.pauseCount_?this.shouldFire_=!0:Nqb(this)};
_.f.stop=function(){this.JSC$9048_timer_&&(_.ja.clearTimeout(this.JSC$9048_timer_),this.JSC$9048_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.f.pause=function(){this.pauseCount_++};
_.f.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9048_timer_||(this.shouldFire_=!1,Nqb(this))};
_.f.disposeInternal=function(){_.vg.prototype.disposeInternal.call(this);this.stop()};
var Nqb=function(a){a.JSC$9048_timer_=Mz(function(){a.JSC$9048_timer_=null;a.shouldFire_&&!a.pauseCount_&&(a.shouldFire_=!1,Nqb(a))},a.JSC$9048_interval_);
var b=a.args_;a.args_=null;a.JSC$9048_listener_.apply(null,b)};var Oqb=function(a,b){this.childIterator_=a[_.ja.Symbol.iterator]();this.mapFn_=b};
Oqb.prototype[Symbol.iterator]=function(){return this};
Oqb.prototype.next=function(){var a=this.childIterator_.next();return{value:a.done?void 0:this.mapFn_.call(void 0,a.value),done:a.done}};
var Pqb=function(a,b){return new Oqb(a,b)};var Qqb={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",
darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",
ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",
lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",
moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",
seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var ZOa=function(a){var b=Rqb(a);if(!b)throw Error("Ud`"+a);return b},Rqb=function(a){var b={};
a=String(a);var c=a.charAt(0)=="#"?a:"#"+a;if(Sqb.test(c))return b.hex=UPa(c),b.type="hex",b;c=cPa(a);return c.length?(b.hex=XIa(c[0],c[1],c[2]),b.type="rgb",b):Qqb&&(a=Qqb[a.toLowerCase()])?(b.hex=a,b.type="named",b):null},Tqb=/#(.)(.)(.)/,UPa=function(a){if(!Sqb.test(a))throw Error("Wd`"+a);
a.length==4&&(a=a.replace(Tqb,"#$1$1$2$2$3$3"));return a.toLowerCase()},$Oa=function(a){a=UPa(a);
a=parseInt(a.slice(1),16);return[a>>16,a>>8&255,a&255]},XIa=function(a,b,c){a=Number(a);
b=Number(b);c=Number(c);if(a!=(a&255)||b!=(b&255)||c!=(c&255))throw Error("Xd`"+a+"`"+b+"`"+c);b=a<<16|b<<8|c;return a<16?"#"+(16777216|b).toString(16).slice(1):"#"+b.toString(16)},Sqb=/^#(?:[0-9a-f]{3}){1,2}$/i,Uqb=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,cPa=function(a){var b=a.match(Uqb);
if(b){a=Number(b[1]);var c=Number(b[2]);b=Number(b[3]);if(a>=0&&a<=255&&c>=0&&c<=255&&b>=0&&b<=255)return[a,c,b]}return[]};var Vqb={ERAS:["BC","AD"],ERANAMES:["Before Christ","Anno Domini"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"January February March April May June July August September October November December".split(" "),STANDALONEMONTHS:"January February March April May June July August September October November December".split(" "),SHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
WEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),STANDALONEWEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),STANDALONESHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),NARROWWEEKDAYS:"SMTWTFS".split(""),STANDALONENARROWWEEKDAYS:"SMTWTFS".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["1st quarter","2nd quarter","3rd quarter","4th quarter"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, MMMM d, y",
"MMMM d, y","MMM d, y","M/d/yy"],TIMEFORMATS:["h:mm:ss\u202fa zzzz","h:mm:ss\u202fa z","h:mm:ss\u202fa","h:mm\u202fa"],DATETIMEFORMATS:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5},Jv=Vqb;Jv=Vqb;var T_a,Wqb,Xqb;T_a=function(a,b){switch(b){case 1:return a%4!=0||a%100==0&&a%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
Wqb=function(a,b,c,d,e){a=new Date(a,b,c);e=e||0;return a.valueOf()+(((d!==void 0?d:3)-e+7)%7-((a.getDay()+6)%7-e+7)%7)*864E5};
_.HC=function(a,b,c){typeof a==="number"?(this.date=Xqb(a,b||0,c||1),Yqb(this,c||1)):_.Za(a)?(this.date=Xqb(a.getFullYear(),a.getMonth(),a.getDate()),Yqb(this,a.getDate())):(this.date=new Date(_.rx()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Yqb(this,a))};
Xqb=function(a,b,c){b=new Date(a,b,c);a>=0&&a<100&&b.setFullYear(b.getFullYear()-1900);return b};
_.f=_.HC.prototype;_.f.firstDayOfWeek_=Jv.FIRSTDAYOFWEEK;_.f.firstWeekCutOffDay_=Jv.FIRSTWEEKCUTOFFDAY;_.f.clone=function(){var a=new _.HC(this.date);a.firstDayOfWeek_=this.firstDayOfWeek_;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};
_.f.getFullYear=function(){return this.date.getFullYear()};
_.f.getYear=function(){return this.getFullYear()};
_.f.getMonth=function(){return this.date.getMonth()};
_.f.getDate=function(){return this.date.getDate()};
_.f.getTime=function(){return this.date.getTime()};
_.f.getDay=function(){return this.date.getDay()};
_.f.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.f.getUTCMonth=function(){return this.date.getUTCMonth()};
_.f.getUTCDate=function(){return this.date.getUTCDate()};
_.f.getUTCDay=function(){return this.date.getDay()};
_.f.getUTCHours=function(){return this.date.getUTCHours()};
_.f.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.f.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.f.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
_.f.setFullYear=function(a){this.date.setFullYear(a)};
_.f.setYear=function(a){this.setFullYear(a)};
_.f.setMonth=function(a){this.date.setMonth(a)};
_.f.setDate=function(a){this.date.setDate(a)};
_.f.setTime=function(a){this.date.setTime(a)};
_.f.setUTCFullYear=function(a){this.date.setUTCFullYear(a)};
_.f.setUTCMonth=function(a){this.date.setUTCMonth(a)};
_.f.setUTCDate=function(a){this.date.setUTCDate(a)};
_.f.add=function(a){if(a.years||a.months){var b=this.getMonth()+a.months+a.years*12,c=this.getYear()+Math.floor(b/12);b%=12;b<0&&(b+=12);var d=Math.min(T_a(c,b),this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(d)}a.days&&(c=this.getYear(),b=c>=0&&c<=99?-1900:0,a=new Date((new Date(c,this.getMonth(),this.getDate(),12)).getTime()+a.days*864E5),this.setDate(1),this.setFullYear(a.getFullYear()+b),this.setMonth(a.getMonth()),this.setDate(a.getDate()),Yqb(this,a.getDate()))};
_.f.JSC$9061_toIsoString=function(a){var b=this.getFullYear(),c=b<0?"-":b>=1E4?"+":"";return[c+_.qy(Math.abs(b),c?6:4),_.qy(this.getMonth()+1,2),_.qy(this.getDate(),2)].join(a?"-":"")};
_.f.equals=function(a){return!(!a||this.getYear()!=a.getYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};
_.f.toString=function(){return this.JSC$9061_toIsoString()};
var Yqb=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};
_.HC.prototype.valueOf=function(){return this.date.valueOf()};var JC=function(a,b,c,d,e){this.reversed=!!b;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!c;a&&IC(this,a,d);this.depth=e!=void 0?e:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.sx(JC,pB);var IC=function(a,b,c,d){if(a.node=b)a.tagType=typeof c==="number"?c:a.node.nodeType!=1?0:a.reversed?-1:1;typeof d==="number"&&(a.depth=d)};
_.f=JC.prototype;_.f.JSC$9076_copyFrom=function(a){this.node=a.node;this.tagType=a.tagType;this.depth=a.depth;this.reversed=a.reversed;this.constrained=a.constrained};
_.f.clone=function(){return new JC(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.f.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return qB;var a=this.node;var b=this.reversed?-1:1;if(this.tagType==b){var c=this.reversed?a.lastChild:a.firstChild;c?IC(this,c):IC(this,a,b*-1)}else(c=this.reversed?a.previousSibling:a.nextSibling)?IC(this,c):IC(this,a.parentNode,b*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(a=this.node)?rB(a):qB};
_.f.equals=function(a){return a.node==this.node&&(!this.node||a.tagType==this.tagType)};
_.f.splice=function(a){var b=this.node,c=this.reversed?1:-1;this.tagType==c&&(this.tagType=c*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;JC.prototype.next.call(this);this.reversed=!this.reversed;c=_.Sa(arguments[0])?arguments[0]:arguments;for(var d=c.length-1;d>=0;d--)_.Xy(c[d],b);_.qg(b)};var Zqb=function(){},KC=function(a){for(var b=[],c=a.getTextRangeCount(),d=0;d<c;d++)b.push(a.getTextRange(d));
return b};
Zqb.prototype.isReversed=function(){return!1};
Zqb.prototype.getWindow=function(){return Ff(_.Hf(this.JSC$9078_getStartNode()))};
var $qb=function(a,b){JC.call(this,a,b,!0)};
_.sx($qb,JC);var LC=function(a,b,c,d,e){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!e;if(a){this.startNode_=a;this.startOffset_=b;this.endNode_=c;this.endOffset_=d;if(a.nodeType==1&&a.tagName!="BR")if(a=a.childNodes,b=a[b])this.startNode_=b,this.startOffset_=0;else{a.length&&(this.startNode_=_.Ja(a));var g=!0}c.nodeType==1&&((this.endNode_=c.childNodes[d])?this.endOffset_=0:this.endNode_=c)}JC.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);g&&this.next()};
_.sx(LC,$qb);_.f=LC.prototype;_.f.JSC$9084_getStartNode=function(){return this.startNode_};
_.f.isLast=function(){return this.started_&&(this.node!=(this.isReversed_?this.startNode_:this.endNode_)?!1:this.isReversed_?this.startOffset_?this.tagType!=-1:this.tagType==1:!this.endOffset_||this.tagType!=1)};
_.f.next=function(){return this.isLast()?qB:LC.superClass_.next.call(this)};
_.f.JSC$9076_copyFrom=function(a){this.startNode_=a.startNode_;this.endNode_=a.endNode_;this.startOffset_=a.startOffset_;this.endOffset_=a.endOffset_;this.isReversed_=a.isReversed_;LC.superClass_.JSC$9076_copyFrom.call(this,a)};
_.f.clone=function(){var a=new LC(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);a.JSC$9076_copyFrom(this);return a};var arb=function(){};
arb.prototype.__iterator__=function(){return new LC(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var MC=function(a){this.range_=a};
_.sx(MC,arb);var brb=function(a){var b=_.Hf(a).createRange();if(a.nodeType==3)b.setStart(a,0),b.setEnd(a,a.length);else if(Uy(a)||a.nodeType==3){for(var c,d=a;(c=d.firstChild)&&(Uy(c)||c.nodeType==3);)d=c;b.setStart(d,0);for(d=a;(c=d.lastChild)&&(Uy(c)||c.nodeType==3);)d=c;b.setEnd(d,d.nodeType==1?d.childNodes.length:d.length)}else c=a.parentNode,a=Array.prototype.indexOf.call(c.childNodes,a),b.setStart(c,a),b.setEnd(c,a+1);return b},crb=function(a,b,c,d){var e=_.Hf(a).createRange();
e.setStart(a,b);e.setEnd(c,d);return e};
_.f=MC.prototype;_.f.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.f.getContainer=function(){return this.range_.commonAncestorContainer};
_.f.compareBrowserRangeEndpoints=function(a,b,c){return this.range_.compareBoundaryPoints(c==1?b==1?_.ja.Range.START_TO_START:_.ja.Range.START_TO_END:b==1?_.ja.Range.END_TO_START:_.ja.Range.END_TO_END,a)};
_.f.isCollapsed=function(){return this.range_.collapsed};
_.f.select=function(a){this.selectInternal(Ff(_.Hf(this.range_.startContainer)).getSelection(),a)};
_.f.selectInternal=function(a){a.removeAllRanges();a.addRange(this.range_)};
_.f.insertNode=function(a,b){var c=this.range_.cloneRange();c.collapse(b);c.insertNode(a);c.detach();return a};
_.f.collapse=function(a){this.range_.collapse(a)};_.sx(Ym,MC);Ym.prototype.selectInternal=function(a,b){!b||this.isCollapsed()?Ym.superClass_.selectInternal.call(this,a,b):(a.collapse(this.range_.endContainer,this.range_.endOffset),a.extend(this.range_.startContainer,this.range_.startOffset))};_.sx(Zm,MC);Zm.prototype.compareBrowserRangeEndpoints=function(a,b,c){return Zm.superClass_.compareBrowserRangeEndpoints.call(this,a,b,c)};
Zm.prototype.selectInternal=function(a,b){b?a.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):a.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var drb=function(a){return _.zx?new Zm(a):_.yx?new Ym(a):new MC(a)};var NC=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},erb;
_.sx(NC,Zqb);erb=function(a,b){var c=new NC;c.browserRangeWrapper_=a;c.isReversed_=!!b;return c};
_.frb=function(a){a=_.zx?new Zm(brb(a)):_.yx?new Ym(brb(a)):new MC(brb(a));return erb(a)};
_.OC=function(a,b,c,d){var e=new NC;e.isReversed_=grb(a,b,c,d);if(_.Sk(a)&&!Uy(a)){var g=a.parentNode;b=Array.prototype.indexOf.call(g.childNodes,a);a=g}_.Sk(c)&&!Uy(c)&&(g=c.parentNode,d=Array.prototype.indexOf.call(g.childNodes,c),c=g);e.isReversed_?(e.startNode_=c,e.startOffset_=d,e.endNode_=a,e.endOffset_=b):(e.startNode_=a,e.startOffset_=b,e.endNode_=c,e.endOffset_=d);return e};
_.f=NC.prototype;_.f.clone=function(){var a=new NC;a.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();a.startNode_=this.startNode_;a.startOffset_=this.startOffset_;a.endNode_=this.endNode_;a.endOffset_=this.endOffset_;a.isReversed_=this.isReversed_;return a};
_.f.JSC$9078_getType=function(){return"text"};
_.f.getBrowserRangeObject=function(){return PC(this).range_};
_.f.getTextRangeCount=function(){return 1};
_.f.getTextRange=function(){return this};
var PC=function(a){var b;if(!(b=a.browserRangeWrapper_)){b=a.JSC$9078_getStartNode();var c=a.JSC$9078_getStartOffset(),d=a.JSC$9078_getEndNode(),e=a.JSC$9078_getEndOffset();b=_.zx?new Zm(crb(b,c,d,e)):_.yx?new Ym(crb(b,c,d,e)):new MC(crb(b,c,d,e));b=a.browserRangeWrapper_=b}return b};
_.f=NC.prototype;_.f.getContainer=function(){return PC(this).getContainer()};
_.f.JSC$9078_getStartNode=function(){var a;(a=this.startNode_)||(a=this.startNode_=PC(this).range_.startContainer);return a};
_.f.JSC$9078_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=PC(this).range_.startOffset};
_.f.JSC$9078_getEndNode=function(){var a;(a=this.endNode_)||(a=this.endNode_=PC(this).range_.endContainer);return a};
_.f.JSC$9078_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=PC(this).range_.endOffset};
_.f.isReversed=function(){return this.isReversed_};
_.f.JSC$9078_containsRange=function(a,b){if(a.JSC$9078_getType()=="text"){var c=PC(this);a=PC(a);b=b&&!a.isCollapsed();a=a.range_;c=b?c.compareBrowserRangeEndpoints(a,0,1)>=0&&c.compareBrowserRangeEndpoints(a,1,0)<=0:c.compareBrowserRangeEndpoints(a,0,0)>=0&&c.compareBrowserRangeEndpoints(a,1,1)<=0}else c=!1;return c};
_.f.isCollapsed=function(){return PC(this).isCollapsed()};
_.f.JSC$9078_getText=function(){return PC(this).range_.toString()};
_.f.__iterator__=function(){return new LC(this.JSC$9078_getStartNode(),this.JSC$9078_getStartOffset(),this.JSC$9078_getEndNode(),this.JSC$9078_getEndOffset())};
_.f.select=function(){PC(this).select(this.isReversed_)};
_.f.JSC$9078_removeContents=function(){var a=PC(this).range_;a.extractContents();if(a.startContainer.hasChildNodes()&&(a=a.startContainer.childNodes[a.startOffset])){var b=a.previousSibling;qdb(a)==""&&_.qg(a);b&&qdb(b)==""&&_.qg(b)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.f.insertNode=function(a,b){a=PC(this).insertNode(a,b);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return a};
_.f.collapse=function(a){a=this.isReversed()?!a:a;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(a);a?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var hrb=function(){};
_.sx(hrb,Zqb);hrb.prototype.JSC$9078_containsRange=function(a,b){var c=KC(this);a=KC(a);return(b?Nk:_.YIa)(a,function(d){return Nk(c,function(e){return e.JSC$9078_containsRange(d,b)})})};
hrb.prototype.insertNode=function(a,b){b?_.Wy(a,this.JSC$9078_getStartNode()):_.Xy(a,this.JSC$9078_getEndNode());return a};var irb,jrb=sdb(uf()).documentElement;irb=jrb.requestFullscreen?"fullscreenchange":jrb.webkitRequestFullscreen?"webkitfullscreenchange":jrb.mozRequestFullScreen?"mozfullscreenchange":jrb.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var krb=function(){var a=sdb(uf());return!!(a.webkitIsFullScreen||a.mozFullScreen||a.msFullscreenElement||a.fullscreenElement)};var QC=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.sx(QC,hrb);_.f=QC.prototype;_.f.clone=function(){var a=new QC;a.browserRanges_=_.Ra(this.browserRanges_);return a};
_.f.JSC$9078_getType=function(){return"mutli"};
_.f.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.f.getTextRangeCount=function(){return this.browserRanges_.length};
_.f.getTextRange=function(a){this.ranges_[a]||(this.ranges_[a]=erb(drb(this.browserRanges_[a])));return this.ranges_[a]};
_.f.getContainer=function(){if(!this.container_){for(var a=[],b=this.getTextRangeCount(),c=0;c<b;c++)a.push(this.getTextRange(c).getContainer());this.container_=jdb.apply(null,a)}return this.container_};
var RC=function(a){a.sortedRanges_||(a.sortedRanges_=KC(a),a.sortedRanges_.sort(function(b,c){var d=b.JSC$9078_getStartNode();b=b.JSC$9078_getStartOffset();var e=c.JSC$9078_getStartNode();c=c.JSC$9078_getStartOffset();return d==e&&b==c?0:grb(d,b,e,c)?1:-1}));
return a.sortedRanges_};
_.f=QC.prototype;_.f.JSC$9078_getStartNode=function(){return RC(this)[0].JSC$9078_getStartNode()};
_.f.JSC$9078_getStartOffset=function(){return RC(this)[0].JSC$9078_getStartOffset()};
_.f.JSC$9078_getEndNode=function(){return _.Ja(RC(this)).JSC$9078_getEndNode()};
_.f.JSC$9078_getEndOffset=function(){return _.Ja(RC(this)).JSC$9078_getEndOffset()};
_.f.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.f.JSC$9078_getText=function(){return KC(this).map(function(a){return a.JSC$9078_getText()}).join("")};
_.f.__iterator__=function(){return new SC(this)};
_.f.select=function(){var a=this.getWindow().getSelection();a.removeAllRanges();for(var b=this.getTextRangeCount(),c=0;c<b;c++)a.addRange(this.getTextRange(c).getBrowserRangeObject())};
_.f.JSC$9078_removeContents=function(){KC(this).forEach(function(a){a.JSC$9078_removeContents()})};
_.f.collapse=function(a){if(!this.isCollapsed()){var b=a?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;b.collapse(a);this.ranges_=[b];this.sortedRanges_=[b];this.browserRanges_=[b.getBrowserRangeObject()]}};
var SC=function(a){this.iterators_=null;this.currentIdx_=0;a&&(this.iterators_=RC(a).map(function(b){return _.Dmb(b)}));
JC.call(this,a?this.JSC$9084_getStartNode():null,!1,!0)};
_.sx(SC,$qb);_.f=SC.prototype;_.f.JSC$9084_getStartNode=function(){return this.iterators_[0].JSC$9084_getStartNode()};
_.f.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.f.next=function(){for(;this.currentIdx_<this.iterators_.length;){var a=this.iterators_[this.currentIdx_],b=a.next();if(b.done)this.currentIdx_++;else return IC(this,a.node,a.tagType,a.depth),b}return qB};
_.f.JSC$9076_copyFrom=function(a){this.iterators_=_.Ra(a.iterators_);SC.superClass_.JSC$9076_copyFrom.call(this,a)};
_.f.clone=function(){var a=new SC(null);a.JSC$9076_copyFrom(this);return a};var lrb,grb;_.pv=function(){var a=window.getSelection();return a&&lrb(a)};
lrb=function(a){var b=!1;if(a.createRange)try{var c=a.createRange()}catch(e){return null}else if(a.rangeCount){if(a.rangeCount>1){c=new QC;b=a.rangeCount;for(var d=0;d<b;d++)c.browserRanges_.push(a.getRangeAt(d));return c}c=a.getRangeAt(0);b=grb(a.anchorNode,a.anchorOffset,a.focusNode,a.focusOffset)}else return null;return erb(drb(c),b)};
_.TC=function(a,b){return _.OC(a,b,a,b)};
_.UC=function(a,b,c,d){return _.OC(a,b,c,d)};
grb=function(a,b,c,d){if(a==c)return d<b;var e;if(a.nodeType==1&&b)if(e=a.childNodes[b])a=e,b=0;else if(_.Jg(a,c))return!0;if(c.nodeType==1&&d)if(e=c.childNodes[d])c=e,d=0;else if(_.Jg(c,a))return!1;return(idb(a,c)||b-d)>0};var VC=function(){_.Hz.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.wg)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.wg)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.wg)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.wg)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.wg)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.wg)(this.dispatchProgressEvent_,this)};
_.sx(VC,_.Hz);VC.prototype.abort=function(){try{this.reader_.abort()}catch(a){throw new Nlb(a,"aborting read");}};
VC.prototype.getError=function(){return this.reader_.error&&new Nlb(this.reader_.error,"reading file")};
VC.prototype.dispatchProgressEvent_=function(a){this.dispatchEvent(new Olb(a,this))};
VC.prototype.disposeInternal=function(){VC.superClass_.disposeInternal.call(this);delete this.reader_};
var nrb=function(a){var b=new VC,c=mrb(b);b.reader_.readAsArrayBuffer(a);return c},orb=function(a){var b=new VC,c=mrb(b);
b.reader_.readAsDataURL(a);return c},mrb=function(a){var b=new dA;
a.listen("loadend",_.xo(function(c,d){var e=d.reader_.result,g=d.getError();e==null||g?c.errback(g):c.callback(e);d.dispose()},b,a));
return b};var WC=function(){_.Hz.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9118_eventHandler_=new _.an(this);this.JSC$9118_isInitialized_=!1};
_.sx(WC,_.Hz);var prb=new _.Bz("d"),qrb=new _.Bz("beforedragstart"),rrb=new _.Bz("dragstart"),srb=new _.Bz("beforedragmove"),trb=new _.Bz("dragmove"),urb=new _.Bz("beforedragend"),vrb=new _.Bz("dragend"),wrb=new _.Bz("e");WC.prototype.isDragging=function(){return!!this.JSC$9118_dragger_};
var xrb=function(a,b){b.dlgGrowthDirection_=0;b.dlgDragHoverClass_=void 0;b.dlgDragPermission=0;a.dragLists_.push(b)},yrb=function(a,b){a.getHandleForDragItem_=b};
WC.prototype.init=function(){if(!this.JSC$9118_isInitialized_){for(var a=this.dragLists_.length,b=0;b<a;b++)for(var c=_.Yy(this.dragLists_[b]),d=c.length,e=0;e<d;++e){var g=c[e],k=this.getHandleForDragItem_(g),m=_.$a(k);this.dragItemForHandle_[m]=g;this.dragItemHoverClasses_&&(this.JSC$9118_eventHandler_.listen(g,"mouseover",this.handleDragItemMouseover_),this.JSC$9118_eventHandler_.listen(g,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9118_eventHandler_.listen(k,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9118_eventHandler_.listen(k,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(g);this.JSC$9118_eventHandler_.listen(k,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9118_isInitialized_=!0}};
WC.prototype.disposeInternal=function(){this.JSC$9118_eventHandler_.dispose();for(var a=this.dragLists_.length,b=0;b<a;b++){var c=this.dragLists_[b];c.dlgGrowthDirection_=void 0;c.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;zrb(this);WC.superClass_.disposeInternal.call(this)};
var Arb=function(a,b){for(var c=a.dragLists_.length,d=0;d<c;d++){var e=a.dragLists_[d];e.dlgBounds_=sya(e)}c=a.dragItems_.length;for(d=0;d<c;d++)e=a.dragItems_[d],e!=b&&(e.dlgBounds_=sya(e))};
_.f=WC.prototype;
_.f.handlePotentialDragStart_=function(a){var b=_.$a(a.currentTarget);b=this.dragItemForHandle_[b];if(b.parentElement.dlgDragPermission!=2){this.currDragItem_=b;a:{b=this.currDragItem_;for(var c=b.cloneNode(!0),d=rg("TEXTAREA",b),e=rg("TEXTAREA",c),g=0;g<d.length;g++)e[g].value=d[g].value;switch(b.tagName){case "TR":b=_.Sy("TABLE",null,_.Sy("TBODY",null,c));break a;case "TD":case "TH":b=_.Sy("TABLE",null,_.Sy("TBODY",null,_.Sy("TR",null,c)));break a;case "TEXTAREA":c.value=b.value;default:b=c;break a}b=
void 0}this.draggerEl_=b;this.draggerElClasses_&&bA(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.Hf(this.currDragItem_).body.appendChild(this.draggerEl_);c=_.If(this.currDragItem_);b=this.draggerEl_;d=_.If(b);if(c instanceof _.Ef){var k=c.y;c=c.x}cz(b,b.offsetLeft+(c-d.x),b.offsetTop+(Number(k)-d.y));this.JSC$9118_dragger_=new _.VA(this.draggerEl_);_.Mkb(this.JSC$9118_dragger_,this.hysteresisDistance_);
_.rs(this.JSC$9118_dragger_,"start",this.handleDragStart_,!1,this);_.rs(this.JSC$9118_dragger_,"end",this.handleDragEnd_,!1,this);_.rs(this.JSC$9118_dragger_,"earlycancel",this.JSC$9120_cleanup_,!1,this);this.dispatchEvent(new XC(prb,this,a,this.currDragItem_,this.draggerEl_,this.JSC$9118_dragger_));this.JSC$9118_dragger_.startDrag(a)}};
_.f.handleDragStart_=function(a){if(this.dispatchEvent(new XC(qrb,this,a.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.fdb(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?bA(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var b=zdb(this.draggerEl_);this.draggerEl_.halfWidth=b.width/2;this.draggerEl_.halfHeight=b.height/2;b=this.draggerEl_.getBoundingClientRect();
var c=a.clientY,d=Nkb(this.JSC$9118_dragger_,a.clientX);if(d>b.right){var e=this.currDragItem_.getBoundingClientRect();this.JSC$9118_dragger_.deltaX=d-(d-e.left)/e.width*b.width}c=Okb(this.JSC$9118_dragger_,c);c>b.bottom&&(this.JSC$9118_dragger_.deltaY+=c-b.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";Arb(this,this.currDragItem_);this.currDragItem_.style.display="";_.rs(this.JSC$9118_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new XC(rrb,
this,a.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9118_dragger_))}else a.preventDefault(),this.JSC$9120_cleanup_()};
_.f.handleDragMove_=function(a){var b=_.If(this.draggerEl_);b=new _.Ef(b.x+this.draggerEl_.halfWidth,b.y+this.draggerEl_.halfHeight);a:{var c=null;if(this.currDragItem_.style.display!="none"){c=this.currDragItem_.parentNode;var d=sya(c);if(Brb(b,d))break a}d=this.dragLists_.length;for(var e=0;e<d;e++){var g=this.dragLists_[e];if(g!=c&&Brb(b,g.dlgBounds_)){c=g;break a}}c=null}if(c){if(c==null)throw Error("Yd");d=0;e=!1;g=void 0;switch(c.dlgGrowthDirection_){case 0:d=b.y;var k=Crb;var m=Drb;break;case 4:e=
!0;case 2:d=b.x;k=Erb;m=Drb;break;case 5:e=!0;case 3:d=b.x,k=Frb,m=Grb}for(var n=null,r,t=_.Yy(c),u=t.length,x=0;x<u;x++){var A=t[x];if(A!=this.currDragItem_){var C=k(A.dlgBounds_);if(e){var F=Hrb(A,b);g===void 0&&(g=F);m(d,C)&&(r==void 0||F<g||F==g&&(m(C,r)||C==r))&&(n=A,r=C);F<g&&(g=F)}else m(d,C)&&(r==void 0||m(C,r))&&(n=A,r=C)}}k=n!==null&&Hrb(n,b)>g?null:n}else k=null;if(!this.dispatchEvent(new XC(srb,this,a,this.currDragItem_,this.draggerEl_,this.JSC$9118_dragger_,b,c,k)))return!1;if(c&&c.dlgDragPermission!=
1)this.currDragItem_.parentNode==c&&_.fdb(this.currDragItem_)==k||c.insertBefore(this.currDragItem_,k),this.currDragItem_.style.display="",c.dlgDragHoverClass_&&_.Qs(c,c.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",m=this.dragLists_.length,r=0;r<m;r++)d=this.dragLists_[r],d.dlgDragHoverClass_&&_.Os(d,d.dlgDragHoverClass_);c!=this.currHoverList_&&(this.currHoverList_=c,Arb(this,this.currDragItem_));this.dispatchEvent(new XC(trb,this,a,this.currDragItem_,this.draggerEl_,this.JSC$9118_dragger_,
b,c,k));return!1};
_.f.JSC$9120_cleanup_=function(){zrb(this);this.JSC$9118_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var a=this.dragLists_.length,b=0;b<a;b++)this.dragLists_[b].dlgBounds_=null;a=this.dragItems_.length;for(b=0;b<a;b++)this.dragItems_[b].dlgBounds_=null};
_.f.handleDragEnd_=function(a){if(!this.dispatchEvent(new XC(urb,this,a,this.currDragItem_,this.draggerEl_,this.JSC$9118_dragger_)))return!1;zrb(this);this.dispatchEvent(new XC(vrb,this,a,this.currDragItem_,this.draggerEl_,this.JSC$9118_dragger_));this.JSC$9120_cleanup_();return!0};
var zrb=function(a){_.Xf(a.JSC$9118_dragger_);var b=a.draggerEl_&&a.draggerEl_.parentElement;a.draggerEl_&&_.qg(a.draggerEl_);a.currDragItem_&&a.currDragItem_.style.display=="none"&&(a.origList_.insertBefore(a.currDragItem_,a.origNextItem_),a.currDragItem_.style.display="");a.currDragItemClasses_&&a.currDragItem_?Khb(a.currDragItem_,a.currDragItemClasses_||[]):a.currDragItem_&&(a.currDragItem_.style.visibility="");for(var c=a.dragLists_.length,d=0;d<c;d++){var e=a.dragLists_[d];e.dlgDragHoverClass_&&
_.Os(e,e.dlgDragHoverClass_)}b&&a.dispatchEvent(new XC(wrb,a,null,a.currDragItem_,a.draggerEl_,a.JSC$9118_dragger_))};
_.f=WC.prototype;_.f.getHandleForDragItem_=function(a){return a};
_.f.handleDragItemMouseover_=function(a){bA(a.currentTarget,this.dragItemHoverClasses_||[])};
_.f.handleDragItemMouseout_=function(a){Khb(a.currentTarget,this.dragItemHoverClasses_||[])};
_.f.handleDragItemHandleMouseover_=function(a){bA(a.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.f.handleDragItemHandleMouseout_=function(a){Khb(a.currentTarget,this.dragItemHandleHoverClasses_||[])};
var Brb=function(a,b){return a.x>b.left&&a.x<b.left+b.width&&a.y>b.top&&a.y<b.top+b.height},Hrb=function(a,b){a=a.dlgBounds_;
return Math.abs(b.y-(a.top+(a.height-1)/2))},Crb=function(a){return a.top+a.height-1},Erb=function(a){return a.left+a.width-1},Frb=function(a){return a.left||0},Drb=function(a,b){return a<b},Grb=function(a,b){return a>b},XC=function(a,b,c,d,e,g){_.Cz.call(this,a);
this.event=c;this.currDragItem=d;this.draggerEl=e;this.JSC$9122_dragger=g};
_.sx(XC,_.Cz);_.sx(bn,_.vg);var Irb=new _.Ef(0,0);bn.prototype.JSC$9126_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
bn.prototype.JSC$9126_onMouseMove=function(a){var b=this.containerIsActuallyContent_?Irb:tf(uf(this.containerNode_)),c=this.horizontalScrolling_?this.calculateScrollDelta(a.clientX+b.x,this.scrollBounds_.left,this.scrollBounds_.width):0,d=this.calculateScrollDelta(a.clientY+b.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=c;this.scrollDelta_.y=d;!(c=!c&&!d)&&(c=this.constrainScroll_)&&(c=a.clientX+b.x,a=a.clientY+b.y,b=this.containerBounds_,c=!(b.left<=c&&b.left+b.width>=
c&&b.top<=a&&b.top+b.height>=a));c?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
bn.prototype.calculateScrollDelta=function(a,b,c){var d=0;a<b?d=-8:a>b+c&&(d=8);return d};
bn.prototype.disposeInternal=function(){bn.superClass_.disposeInternal.call(this);this.JSC$9124_eventHandler_.dispose();this.scrollTimer_.dispose()};var Jrb={COMPACT_DECIMAL_SHORT_PATTERN:{1E3:{other:"0K"},1E4:{other:"00K"},1E5:{other:"000K"},1E6:{other:"0M"},1E7:{other:"00M"},1E8:{other:"000M"},1E9:{other:"0B"},1E10:{other:"00B"},1E11:{other:"000B"},1E12:{other:"0T"},1E13:{other:"00T"},1E14:{other:"000T"}},COMPACT_DECIMAL_LONG_PATTERN:{1E3:{other:"0 thousand"},1E4:{other:"00 thousand"},1E5:{other:"000 thousand"},1E6:{other:"0 million"},1E7:{other:"00 million"},1E8:{other:"000 million"},1E9:{other:"0 billion"},1E10:{other:"00 billion"},1E11:{other:"000 billion"},
1E12:{other:"0 trillion"},1E13:{other:"00 trillion"},1E14:{other:"000 trillion"}}},YC=Jrb;YC=Jrb;var ZC={AED:[2,"dh","\u062f.\u0625."],ALL:[0,"Lek","Lek"],AUD:[2,"$","AU$"],BDT:[2,"\u09f3","Tk"],BGN:[2,"lev","lev"],BRL:[2,"R$","R$"],CAD:[2,"$","C$"],CDF:[2,"FrCD","CDF"],CHF:[2,"CHF","CHF"],CLP:[0,"$","CL$"],CNY:[2,"\u00a5","RMB\u00a5"],COP:[32,"$","COL$"],CRC:[0,"\u20a1","CR\u20a1"],CZK:[50,"K\u010d","K\u010d"],DKK:[50,"kr.","kr."],DOP:[2,"RD$","RD$"],EGP:[2,"\u00a3","LE"],ETB:[2,"Birr","Birr"],EUR:[2,"\u20ac","\u20ac"],GBP:[2,"\u00a3","GB\u00a3"],HKD:[2,"$","HK$"],HRK:[2,"kn","kn"],HUF:[34,
"Ft","Ft"],IDR:[0,"Rp","Rp"],ILS:[34,"\u20aa","IL\u20aa"],INR:[2,"\u20b9","Rs"],IRR:[0,"Rial","IRR"],ISK:[0,"kr","kr"],JMD:[2,"$","JA$"],JPY:[0,"\u00a5","JP\u00a5"],KRW:[0,"\u20a9","KR\u20a9"],LKR:[2,"Rs","SLRs"],LTL:[2,"Lt","Lt"],MNT:[0,"\u20ae","MN\u20ae"],MVR:[2,"Rf","MVR"],MXN:[2,"$","Mex$"],MYR:[2,"RM","RM"],NOK:[50,"kr","NOkr"],PAB:[2,"B/.","B/."],PEN:[2,"S/.","S/."],PHP:[2,"\u20b1","PHP"],PKR:[0,"Rs","PKRs."],PLN:[50,"z\u0142","z\u0142"],RON:[2,"RON","RON"],RSD:[0,"din","RSD"],RUB:[50,"\u20bd",
"RUB"],SAR:[2,"SAR","SAR"],SEK:[50,"kr","kr"],SGD:[2,"$","S$"],THB:[2,"\u0e3f","THB"],TRY:[2,"\u20ba","TRY"],TWD:[2,"$","NT$"],TZS:[0,"TSh","TSh"],UAH:[2,"\u0433\u0440\u043d.","UAH"],USD:[2,"$","US$"],UYU:[2,"$","$U"],VND:[48,"\u20ab","VN\u20ab"],YER:[0,"Rial","Rial"],ZAR:[2,"R","ZAR"]};var Krb=function(){},Sp=function(a){if(typeof a=="number"){var b=new Krb;
b.standardOffset_=a;var c=a;if(c==0)c="Etc/GMT";else{var d=["Etc/GMT",c<0?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;c!=0&&d.push(":",_.qy(c,2));c=d.join("")}b.timeZoneId_=c;c=a;c==0?c="UTC":(d=["UTC",c<0?"+":"-"],c=Math.abs(c),d.push(Math.floor(c/60)%100),c%=60,c!=0&&d.push(":",c),c=d.join(""));a=Lrb(a);b.tzNames_=[c,c];b.tzNamesExt_={STD_LONG_NAME_GMT:a,STD_GENERIC_LOCATION:a};b.transitions_=[];return b}b=new Krb;b.timeZoneId_=a.id;b.standardOffset_=-a.std_offset;b.tzNames_=a.names;
b.tzNamesExt_=a.names_ext;b.transitions_=a.transitions;return b},Lrb=function(a){var b=["GMT"];
b.push(a<=0?"+":"-");a=Math.abs(a);b.push(_.qy(Math.floor(a/60)%100,2),":",_.qy(a%60,2));return b.join("")},Mrb=function(a,b){b=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5;
for(var c=0;c<a.transitions_.length&&b>=a.transitions_[c];)c+=2;return c==0?0:a.transitions_[c-1]},Nrb=function(a,b){a=a.standardOffset_-Mrb(a,b);
return a===-1440?0:a};var Tp=function(a,b){this.patternParts_=[];this.JSC$9137_dateTimeSymbols_=b||Jv;typeof a=="number"?Orb(this,a):Prb(this,a)},Qrb=[/^'(?:[^']|'')*('|$)/,
/^(?:G+|y+|Y+|u+|M+|k+|S+|E+|a+|b+|B+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^'GyYuMkSEabBhKHcLQdmsvVwzZ]+/],$C=function(a){return a.getHours?a.getHours():0},Prb=function(a,b){for(hGa&&(b=b.replace(/\u200f/g,""));b;){for(var c=b,d=0;d<Qrb.length;++d){var e=b.match(Qrb[d]);
if(e){var g=e[0];b=b.substring(g.length);d==0&&(g=="''"?g="'":(g=g.substring(1,e[1]=="'"?g.length-1:g.length),g=g.replace(/''/g,"'")));a.patternParts_.push({text:g,type:d});break}}if(c===b)throw Error("Zd`"+b);}};
Tp.prototype.format=function(a,b){if(!a)throw Error("$d");var c=b?(a.getTimezoneOffset()-Nrb(b,a))*6E4:0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(d=new Date(d.getTime()+(d.getTimezoneOffset()-a.getTimezoneOffset())*6E4),e=new Date(a.getTime()+(c+(c>0?-864E5:864E5))));c=[];for(var g=0;g<this.patternParts_.length;++g){var k=this.patternParts_[g].text;1==this.patternParts_[g].type?c.push(Rrb(this,k,a,d,e,b)):c.push(k)}return c.join("")};
var Orb=function(a,b){if(b<4)var c=a.JSC$9137_dateTimeSymbols_.DATEFORMATS[b];else if(b<8)c=a.JSC$9137_dateTimeSymbols_.TIMEFORMATS[b-4];else if(b<12)c=a.JSC$9137_dateTimeSymbols_.DATETIMEFORMATS[b-8],c=c.replace("{1}",a.JSC$9137_dateTimeSymbols_.DATEFORMATS[b-8]),c=c.replace("{0}",a.JSC$9137_dateTimeSymbols_.TIMEFORMATS[b-8]);else if(b===12)c=a.JSC$9137_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(b===13)c=a.JSC$9137_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{Orb(a,10);return}Prb(a,c)},aD=function(a,b){b=String(b);
a=a.JSC$9137_dateTimeSymbols_||Jv;if(a.ZERODIGIT!==void 0&&!gGa){for(var c=[],d=0;d<b.length;d++){var e=b.charCodeAt(d);c.push(48<=e&&e<=57?String.fromCharCode(a.ZERODIGIT+e-48):b.charAt(d))}b=c.join("")}return b},gGa=!1,hGa=!1,Trb=function(a,b,c,d){c=c.getFullYear();
c<=0&&d&&(c=1-c);return aD(a,Srb(c,b))},Srb=function(a,b){b==2&&(a%=100);
a<0&&b++;return _.qy(a,b)},bD=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("ae");
},Urb=function(a,b){bD(b);
b=$C(b);return a.JSC$9137_dateTimeSymbols_.AMPMS[b>=12&&b<24?1:0]},Rrb=function(a,b,c,d,e,g){var k=b.length;
switch(b.charAt(0)){case "G":return c=d.getFullYear()>0?1:0,k>=4?a.JSC$9137_dateTimeSymbols_.ERANAMES[c]:a.JSC$9137_dateTimeSymbols_.ERAS[c];case "y":return Trb(a,k,d,!0);case "Y":return c=(new Date(Wqb(d.getFullYear(),d.getMonth(),d.getDate(),a.JSC$9137_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.JSC$9137_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),k==2&&(c%=100),aD(a,Srb(c,k));case "u":return Trb(a,k,d,!1);case "M":a:switch(c=d.getMonth(),k){case 5:k=a.JSC$9137_dateTimeSymbols_.NARROWMONTHS[c];break a;
case 4:k=a.JSC$9137_dateTimeSymbols_.MONTHS[c];break a;case 3:k=a.JSC$9137_dateTimeSymbols_.SHORTMONTHS[c];break a;default:k=aD(a,_.qy(c+1,k))}return k;case "k":return bD(e),aD(a,_.qy($C(e)||24,k));case "S":return aD(a,(e.getMilliseconds()/1E3).toFixed(Math.min(3,k)).slice(2)+(k>3?_.qy(0,k-3):""));case "E":return c=d.getDay(),k>=4?a.JSC$9137_dateTimeSymbols_.WEEKDAYS[c]:a.JSC$9137_dateTimeSymbols_.SHORTWEEKDAYS[c];case "a":return Urb(a,e);case "b":return Urb(a,e);case "B":return Urb(a,e);case "h":return bD(e),
aD(a,_.qy($C(e)%12||12,k));case "K":return bD(e),aD(a,_.qy($C(e)%12,k));case "H":return bD(e),aD(a,_.qy($C(e),k));case "c":a:switch(c=d.getDay(),k){case 5:k=a.JSC$9137_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[c];break a;case 4:k=a.JSC$9137_dateTimeSymbols_.STANDALONEWEEKDAYS[c];break a;case 3:k=a.JSC$9137_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[c];break a;default:k=aD(a,_.qy(c,1))}return k;case "L":a:switch(c=d.getMonth(),k){case 5:k=a.JSC$9137_dateTimeSymbols_.STANDALONENARROWMONTHS[c];break a;
case 4:k=a.JSC$9137_dateTimeSymbols_.STANDALONEMONTHS[c];break a;case 3:k=a.JSC$9137_dateTimeSymbols_.STANDALONESHORTMONTHS[c];break a;default:k=aD(a,_.qy(c+1,k))}return k;case "Q":return c=Math.floor(d.getMonth()/3),k<4?a.JSC$9137_dateTimeSymbols_.SHORTQUARTERS[c]:a.JSC$9137_dateTimeSymbols_.QUARTERS[c];case "d":return aD(a,_.qy(d.getDate(),k));case "m":return bD(e),aD(a,_.qy(e.getMinutes?e.getMinutes():0,k));case "s":return bD(e),aD(a,_.qy(e.getSeconds(),k));case "v":return(g||Sp(c.getTimezoneOffset())).timeZoneId_;
case "V":return a=g||Sp(c.getTimezoneOffset()),k<=2?a.timeZoneId_:Mrb(a,c)>0?a.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?a.tzNamesExt_.DST_GENERIC_LOCATION:a.tzNamesExt_.DST_GENERIC_LOCATION:a.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?a.tzNamesExt_.STD_GENERIC_LOCATION:a.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return c=Wqb(e.getFullYear(),e.getMonth(),e.getDate(),a.JSC$9137_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.JSC$9137_dateTimeSymbols_.FIRSTDAYOFWEEK),aD(a,_.qy(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,k));case "z":return a=g||Sp(c.getTimezoneOffset()),k<4?a.tzNames_[Mrb(a,c)>0?2:0]:a.tzNames_[Mrb(a,c)>0?3:1];case "Z":return b=g||Sp(c.getTimezoneOffset()),k<4?(k=-Nrb(b,c),a=[k<0?"-":"+"],k=Math.abs(k),a.push(_.qy(Math.floor(k/60)%100,2),_.qy(k%60,2)),k=a.join("")):k=aD(a,Lrb(Nrb(b,c))),k;default:return""}};var Vrb=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,Wrb=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,b1a=function(a){this.patternParts_=[];this.JSC$9146_dateTimeSymbols_=Jv;if(typeof a=="number"){a>11&&(a=10);if(a<4)var b=this.JSC$9146_dateTimeSymbols_.DATEFORMATS[a];else a<8?b=this.JSC$9146_dateTimeSymbols_.TIMEFORMATS[a-4]:(b=this.JSC$9146_dateTimeSymbols_.DATETIMEFORMATS[a-8],b=b.replace("{1}",this.JSC$9146_dateTimeSymbols_.DATEFORMATS[a-8]),b=b.replace("{0}",this.JSC$9146_dateTimeSymbols_.TIMEFORMATS[a-
8]));Xrb(this,b)}else Xrb(this,a)},Xrb=function(a,b){for(var c=!1,d="",e=0;e<b.length;e++){var g=b.charAt(e);
if(Vrb.test(g))for(d.length>0&&(a.patternParts_.push({text:d,count:0,abutStart:!1,numeric:!1}),d=""),a.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});e<b.length-1&&b.charAt(e+1)==" ";)e++;else if(c)g=="'"?e+1<b.length&&b.charAt(e+1)=="'"?(d+="'",e++):c=!1:d+=g;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(g)>=0){d.length>0&&(a.patternParts_.push({text:d,count:0,abutStart:!1,numeric:!1}),d="");for(var k=b.charAt(e),m=e+1;m<b.length&&b.charAt(m)==k;)m++;k=m-e;k<=0?m=!1:(m="MydhHmsSDkK".indexOf(g),
m=m>0||m==0&&k<3);a.patternParts_.push({text:g,count:k,abutStart:!1,numeric:m});e+=k-1}else g=="'"?e+1<b.length&&b.charAt(e+1)=="'"?(d+="'",e++):c=!0:d+=g}d.length>0&&a.patternParts_.push({text:d,count:0,abutStart:!1,numeric:!1});b=!1;for(c=0;c<a.patternParts_.length;c++)a.patternParts_[c].numeric?!b&&c+1<a.patternParts_.length&&a.patternParts_[c+1].numeric&&(b=!0,a.patternParts_[c].abutStart=!0):b=!1};
b1a.prototype.parse=function(a,b,c){var d=!1,e=!1;c&&(d=c.predictive||!1,e=c.validate||!1);if(d)for(c=0;c<this.patternParts_.length;c++){var g=this.patternParts_[c];if(g.count>0&&("abBhHkKm".indexOf(g.text.charAt(0))<0||g.count>2||g.abutStart))throw Error("be`"+g.text.charAt(0));}g=new Yrb;c=[0];g.dayPeriodIndex=-1;for(var k=0;k<this.patternParts_.length&&!(d&&c[0]>=a.length);k++){if(this.patternParts_[k].count==0){a:{var m=a;var n=c,r=this.patternParts_[k],t=d;if(r.text.match(Vrb)!=null){if(r=n[0],
Zrb(m,n),n[0]>r){m=!0;break a}}else{if(m.indexOf(r.text,n[0])==n[0]){n[0]+=r.text.length;m=!0;break a}if(t&&r.text.indexOf(m.substring(n[0]))==0){n[0]+=m.length-n[0];m=!0;break a}}m=!1}if(m)continue;return 0}if(this.patternParts_[k].abutStart){a:{n=a;r=c;t=k;var u=r[0],x=0;for(m=t;m<this.patternParts_.length;m++){var A=this.patternParts_[m],C=A.count;if(C===0)break;if(m==t&&(C-=x,x++,C==0)){m=0;break a}var F=m>t&&A.numeric,J=r[0];if(!$rb(this,n,r,A,C,g,!1)||F&&r[0]-J<C)m=t-1,r[0]=u}m-=t}if(m<=0)return 0;
k+=m-1}else if(!$rb(this,a,c,this.patternParts_[k],0,g,d))return 0}a:{a=e;if(b==null)throw Error("ce");g.era!=void 0&&g.year!=void 0&&g.era==0&&g.year>0&&(g.year=-(g.year-1));g.year!=void 0&&b.setFullYear(g.year);d=b.getDate();b.setDate(1);g.month!=void 0&&b.setMonth(g.month);g.day!=void 0?b.setDate(g.day):(e=T_a(b.getFullYear(),b.getMonth()),b.setDate(d>e?e:d));typeof b.setHours==="function"&&(g.hours==void 0&&(g.hours=b.getHours()),g.hours<12&&(g.ampm!=void 0&&g.ampm>0?g.hours+=12:g.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(g.dayPeriodName)||["night1","night2"].includes(g.dayPeriodName)&&g.hours>=6)&&(g.hours+=12)),b.setHours(g.hours));typeof b.setMinutes==="function"&&g.minutes!=void 0&&b.setMinutes(g.minutes);typeof b.setSeconds==="function"&&g.seconds!=void 0&&b.setSeconds(g.seconds);typeof b.setMilliseconds==="function"&&g.milliseconds!=void 0&&b.setMilliseconds(g.milliseconds);if(a&&(g.year&&g.year!=b.getFullYear()||g.month&&g.month!=
b.getMonth()||g.day&&g.day!=b.getDate()||g.hours&&g.hours>=24||g.minutes&&g.minutes>=60||g.seconds&&g.seconds>=60||g.milliseconds&&g.milliseconds>=1E3))b=!1;else{g.tzOffset!=void 0&&b.setTime(b.getTime()+(g.tzOffset-b.getTimezoneOffset())*60*1E3);g.ambiguousYear&&(a=new Date,a.setFullYear(a.getFullYear()-80),b.getTime()<a.getTime()&&b.setFullYear(a.getFullYear()+100));if(g.dayOfWeek!=void 0)if(g.day==void 0)g=(7+g.dayOfWeek-b.getDay())%7,g>3&&(g-=7),a=b.getMonth(),b.setDate(b.getDate()+g),b.getMonth()!=
a&&b.setDate(b.getDate()+(g>0?-7:7));else if(g.dayOfWeek!=b.getDay()){b=!1;break a}b=!0}}return b?c[0]:0};
var $rb=function(a,b,c,d,e,g,k){Zrb(b,c);if(d.numeric&&e>0&&c[0]+e>b.length)return!1;switch(d.text.charAt(0)){case "G":return cD(b,c,[a.JSC$9146_dateTimeSymbols_.ERAS],function(m){return g.era=m}),!0;
case "M":case "L":return asb(a,b,c,e,d,g);case "E":return cD(b,c,[a.JSC$9146_dateTimeSymbols_.WEEKDAYS,a.JSC$9146_dateTimeSymbols_.SHORTWEEKDAYS],function(m){return g.dayOfWeek=m});
case "B":case "b":return e=[],a=[[].concat(a.JSC$9146_dateTimeSymbols_.AMPMS)],e.push("isAm"),e.push("isPm"),b=cD(b,c,a,function(m){return g.dayPeriodIndex=m},k),g.dayPeriodName=e[g.dayPeriodIndex],k?b:!0;
case "a":return b=cD(b,c,[a.JSC$9146_dateTimeSymbols_.AMPMS],function(m){return g.ampm=m},k),k?b:!0;
case "y":return bsb(a,b,c,d,e,g);case "Q":return cD(b,c,[a.JSC$9146_dateTimeSymbols_.QUARTERS,a.JSC$9146_dateTimeSymbols_.SHORTQUARTERS],function(m){g.month=m*3;g.day=1});
case "d":return dD(a,b,c,d,e,function(m){g.day=m}),!0;
case "S":return csb(a,b,c,e,g);case "h":case "K":case "H":case "k":return b=dD(a,b,c,d,e,function(m){g.hours=d.text.charAt(0)==="h"&&m===12?0:m},k),k?b:!0;
case "m":return b=dD(a,b,c,d,e,function(m){g.minutes=m},k),k?b:!0;
case "s":return dD(a,b,c,d,e,function(m){g.seconds=m}),!0;
case "z":case "Z":case "v":return dsb(a,b,c,g);default:return!1}},bsb=function(a,b,c,d,e,g){var k=c[0];
e=eD(a,b,c,e);e===null&&(e=eD(a,b,c,0,!0));if(e===null)return!1;e>=0&&c[0]-k==2&&d.count==2?(a=e,b=(new Date).getFullYear()-80,c=b%100,g.ambiguousYear=a==c,a+=Math.floor(b/100)*100+(a<c?100:0),g.year=a):g.year=e;return!0},asb=function(a,b,c,d,e,g){return e.numeric&&dD(a,b,c,e,d,function(k){g.month=k-1})?!0:cD(b,c,[a.JSC$9146_dateTimeSymbols_.MONTHS,
a.JSC$9146_dateTimeSymbols_.STANDALONEMONTHS,a.JSC$9146_dateTimeSymbols_.SHORTMONTHS,a.JSC$9146_dateTimeSymbols_.STANDALONESHORTMONTHS],function(k){g.month=k})},csb=function(a,b,c,d,e){var g=c[0];
a=eD(a,b,c,d);if(a===null)return!1;c=c[0]-g;e.milliseconds=c<3?a*Math.pow(10,3-c):Math.round(a/Math.pow(10,c-3));return!0},dsb=function(a,b,c,d){b.indexOf("GMT",c[0])==c[0]&&(c[0]+=3);
if(c[0]>=b.length)return d.tzOffset=0,!0;var e=c[0],g=eD(a,b,c,0,!0);if(g===null)return!1;if(c[0]<b.length&&b.charAt(c[0])==":"){var k=g*60;c[0]++;g=eD(a,b,c,0);if(g===null)return!1;k+=g}else k=g,k=k<24&&c[0]-e<=3?k*60:k%100+k/100*60;d.tzOffset=-k;return!0},dD=function(a,b,c,d,e,g,k){k=k||!1;
var m=c[0];a=eD(a,b,c,e);if(a===null)return!1;if(k&&c[0]-m<d.count){if(c[0]<b.length)return!1;a*=Math.pow(10,d.count-(c[0]-m))}g(a);return!0},cD=function(a,b,c,d,e){e=e||!1;
for(var g,k=0;k<c.length;k++){g=b;for(var m=c[k],n=e,r=0,t=null,u=a.substring(g[0]).toLowerCase(),x=0;x<m.length;x++){var A=m[x].toLowerCase();if(n&&A.indexOf(u)==0){r=u.length;t=x;break}m[x].length>r&&u.indexOf(A)==0&&(r=m[x].length,t=x)}t!==null&&(g[0]+=r);g=t;if(g!==null)return d(g),!0}return!1},Zrb=function(a,b){(a=a.substring(b[0]).match(Wrb))&&(b[0]+=a[0].length)},eD=function(a,b,c,d,e){b=d>0?b.substring(0,c[0]+d):b;
e=e||!1;if(a.JSC$9146_dateTimeSymbols_.ZERODIGIT){d=[];for(var g=c[0];g<b.length;g++){var k=b.charCodeAt(g)-a.JSC$9146_dateTimeSymbols_.ZERODIGIT;d.push(0<=k&&k<=9?String.fromCharCode(k+48):b.charAt(g))}b=d.join("")}else b=b.substring(c[0]);a=b.match(new RegExp("^"+(e?"[+-]?":"")+"\\d+"));if(!a)return null;c[0]+=a[0].length;return parseInt(a[0],10)},Yrb=function(){};
Yrb.prototype.ambiguousYear=!1;_.esb={DAY:{LONG:"one{# day}other{# days}",SHORT:"one{# day}other{# days}",NARROW:"one{#d}other{#d}"},HOUR:{LONG:"one{# hour}other{# hours}",SHORT:"one{# hr}other{# hr}",NARROW:"one{#h}other{#h}"},MINUTE:{LONG:"one{# minute}other{# minutes}",SHORT:"one{# min}other{# min}",NARROW:"one{#m}other{#m}"},MONTH:{LONG:"one{# month}other{# months}",SHORT:"one{# mth}other{# mths}",NARROW:"one{#m}other{#m}"},SECOND:{LONG:"one{# second}other{# seconds}",SHORT:"one{# sec}other{# sec}",NARROW:"one{#s}other{#s}"},
WEEK:{LONG:"one{# week}other{# weeks}",SHORT:"one{# wk}other{# wks}",NARROW:"one{#w}other{#w}"},YEAR:{LONG:"one{# year}other{# years}",SHORT:"one{# yr}other{# yrs}",NARROW:"one{#y}other{#y}"}};var fsb={DECIMAL_SEP:".",GROUP_SEP:",",PERCENT:"%",ZERO_DIGIT:"0",PLUS_SIGN:"+",MINUS_SIGN:"-",EXP_SYMBOL:"E",PERMILL:"\u2030",INFINITY:"\u221e",NAN:"NaN",DECIMAL_PATTERN:"#,##0.###",SCIENTIFIC_PATTERN:"#E0",PERCENT_PATTERN:"#,##0%",CURRENCY_PATTERN:"\u00a4#,##0.00",DEF_CURRENCY_CODE:"USD"},gsb=fsb,hsb=fsb;hsb=gsb=fsb;var jsb,fD,hD,C3a,gD,isb;
_.Pp=function(a,b,c,d){var e;if(e=b){a:if(b&&b.length===3){for(e=0;e<3;e++){var g=b[e];if(g<"A"||g>"Z"&&g<"a"||g>"z"){e=!1;break a}}e=!0}else e=!1;e=!e}if(e)throw new TypeError("de");this.intlCurrencyCode_=b?b.toUpperCase():null;this.currencyStyle_=c||0;this.overrideNumberFormatSymbols_=d||null;this.maximumIntegerDigits_=40;this.minimumIntegerDigits_=1;this.significantDigits_=0;this.maximumFractionDigits_=3;this.minExponentDigits_=this.minimumFractionDigits_=0;this.useSignForPositiveExponent_=!1;
this.positiveSuffix_=this.positivePrefix_="";this.negativePrefix_=fD(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof a==="number")switch(a){case 1:gD(this,fD(this).DECIMAL_PATTERN);break;case 2:gD(this,fD(this).SCIENTIFIC_PATTERN);break;case 3:gD(this,fD(this).PERCENT_PATTERN);break;case 4:a=fD(this).CURRENCY_PATTERN;b=["0"];if(c=
ZC[hD(this)]){c=c[0]&7;if(c>0)for(b.push("."),d=0;d<c;d++)b.push("0");a=a.replace(/0.00/g,b.join(""))}gD(this,a);break;case 5:isb(this,1);break;case 6:isb(this,2);break;default:throw Error("ge");}else gD(this,a)};
jsb=!1;fD=function(a){return a.overrideNumberFormatSymbols_||(jsb?hsb:gsb)};
hD=function(a){return a.intlCurrencyCode_||fD(a).DEF_CURRENCY_CODE};
C3a=function(a,b){if(b>308)throw Error("fe`"+b);a.maximumFractionDigits_=b;return a};
gD=function(a,b){var c=[0];a.positivePrefix_=ksb(a,b,c);for(var d=c[0],e=-1,g=0,k=0,m=0,n=-1,r=b.length,t=!0;c[0]<r&&t;c[0]++)switch(b.charAt(c[0])){case "#":k>0?m++:g++;n>=0&&e<0&&n++;break;case "0":if(m>0)throw Error("me`"+b);k++;n>=0&&e<0&&n++;break;case ",":n>0&&a.groupingArray_.push(n);n=0;break;case ".":if(e>=0)throw Error("ne`"+b);e=g+k+m;break;case "E":if(a.useExponentialNotation_)throw Error("oe`"+b);a.useExponentialNotation_=!0;a.minExponentDigits_=0;c[0]+1<r&&b.charAt(c[0]+1)=="+"&&(c[0]++,
a.useSignForPositiveExponent_=!0);for(;c[0]+1<r&&b.charAt(c[0]+1)=="0";)c[0]++,a.minExponentDigits_++;if(g+k<1||a.minExponentDigits_<1)throw Error("pe`"+b);t=!1;break;default:c[0]--,t=!1}k==0&&g>0&&e>=0&&(k=e,k==0&&k++,m=g-k,g=k-1,k=1);if(e<0&&m>0||e>=0&&(e<g||e>g+k)||n==0)throw Error("qe`"+b);m=g+k+m;a.maximumFractionDigits_=e>=0?m-e:0;e>=0&&(a.minimumFractionDigits_=g+k-e,a.minimumFractionDigits_<0&&(a.minimumFractionDigits_=0));a.minimumIntegerDigits_=(e>=0?e:m)-g;a.useExponentialNotation_&&(a.maximumIntegerDigits_=
g+a.minimumIntegerDigits_,a.maximumFractionDigits_==0&&a.minimumIntegerDigits_==0&&(a.minimumIntegerDigits_=1));a.groupingArray_.push(Math.max(0,n));a.decimalSeparatorAlwaysShown_=e==0||e==m;d=c[0]-d;a.positiveSuffix_=ksb(a,b,c);c[0]<b.length&&b.charAt(c[0])==";"?(c[0]++,a.multiplier_!=1&&(a.negativePercentSignExpected_=!0),a.negativePrefix_=ksb(a,b,c),c[0]+=d,a.negativeSuffix_=ksb(a,b,c)):(a.negativePrefix_+=a.positivePrefix_,a.negativeSuffix_+=a.positiveSuffix_)};
isb=function(a,b){a.compactStyle_=b;gD(a,fD(a).DECIMAL_PATTERN);a.minimumFractionDigits_=0;C3a(a,2);if(a.minimumFractionDigits_>0)throw Error("ee");a.significantDigits_=2};
_.Pp.prototype.parse=function(a,b){b=b||[0];if(this.compactStyle_!==0)throw Error("he");a=a.replace(/ |\u202f/g,"\u00a0");var c=a.indexOf(this.positivePrefix_,b[0])==b[0],d=a.indexOf(this.negativePrefix_,b[0])==b[0];c&&d&&(this.positivePrefix_.length>this.negativePrefix_.length?d=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(c=!1));c?b[0]+=this.positivePrefix_.length:d&&(b[0]+=this.negativePrefix_.length);if(a.indexOf(fD(this).INFINITY,b[0])==b[0]){b[0]+=fD(this).INFINITY.length;var e=
Infinity}else{e=a;var g=!1,k=!1,m=!1,n=-1,r=1,t=fD(this).DECIMAL_SEP,u=fD(this).GROUP_SEP,x=fD(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ie");u=u.replace(/\u202f/g,"\u00a0");for(var A="";b[0]<e.length;b[0]++){var C=e.charAt(b[0]),F=lsb(this,C);if(F>=0&&F<=9)A+=F,m=!0;else if(C==t.charAt(0)){if(g||k)break;A+=".";g=!0}else if(C==u.charAt(0)&&("\u00a0"!=u.charAt(0)||b[0]+1<e.length&&lsb(this,e.charAt(b[0]+1))>=0)){if(g||k)break}else if(C==x.charAt(0)){if(k)break;A+="E";k=!0;n=b[0]}else if(C==
"+"||C=="-"){if(m&&n!=b[0]-1)break;A+=C}else if(this.multiplier_==1&&C==fD(this).PERCENT.charAt(0)){if(r!=1)break;r=100;if(m){b[0]++;break}}else if(this.multiplier_==1&&C==fD(this).PERMILL.charAt(0)){if(r!=1)break;r=1E3;if(m){b[0]++;break}}else break}this.multiplier_!=1&&(r=this.multiplier_);e=parseFloat(A)/r}if(c){if(a.indexOf(this.positiveSuffix_,b[0])!=b[0])return NaN;b[0]+=this.positiveSuffix_.length}else if(d){if(a.indexOf(this.negativeSuffix_,b[0])!=b[0])return NaN;b[0]+=this.negativeSuffix_.length}return d?
-e:e};
_.Pp.prototype.format=function(a){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("je");if(isNaN(a))return fD(this).NAN;var b=[];var c=a;if(this.compactStyle_==0)c=iD;else{c=Math.abs(c);var d=msb(this,c<=1?0:nsb(c)).divisorBase;c=msb(this,d+nsb(osb(this,jD(c,-d)).intValue))}a=jD(a,-c.divisorBase);(d=a<0||a==0&&1/a<0)?c.negative_prefix?b.push(c.negative_prefix):(b.push(c.prefix),b.push(this.negativePrefix_)):(b.push(c.prefix),b.push(this.positivePrefix_));if(isFinite(a))if(a*=
d?-1:1,a*=this.multiplier_,this.useExponentialNotation_){var e=a;if(e==0)psb(this,e,this.minimumIntegerDigits_,b),qsb(this,0,b);else{var g=Math.floor(Math.log(e)/Math.log(10)+2E-15);e=jD(e,-g);var k=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(k=g%this.maximumIntegerDigits_,k<0&&(k=this.maximumIntegerDigits_+k),e=jD(e,k),g-=k,k=1):this.minimumIntegerDigits_<1?(g++,e=jD(e,-1)):(g-=this.minimumIntegerDigits_-1,e=jD(e,this.minimumIntegerDigits_-
1));psb(this,e,k,b);qsb(this,g,b)}}else psb(this,a,this.minimumIntegerDigits_,b);else b.push(fD(this).INFINITY);d?c.negative_suffix?b.push(c.negative_suffix):(isFinite(a)&&b.push(c.suffix),b.push(this.negativeSuffix_)):(isFinite(a)&&b.push(c.suffix),b.push(this.positiveSuffix_));return b.join("")};
var osb=function(a,b){var c=jD(b,a.maximumFractionDigits_);a.significantDigits_>0&&(c=rsb(c,a.significantDigits_,a.maximumFractionDigits_));c=Math.round(c);if(isFinite(c)){var d=Math.floor(jD(c,-a.maximumFractionDigits_));c=Math.floor(c-jD(d,a.maximumFractionDigits_));if(c<0||c>=jD(1,a.maximumFractionDigits_))d=Math.round(b),c=0}else d=b,c=0;return{intValue:d,fracValue:c}},psb=function(a,b,c,d){if(a.minimumFractionDigits_>a.maximumFractionDigits_)throw Error("je");
d||(d=[]);b=osb(a,b);var e=b.intValue,g=b.fracValue,k=a.minimumFractionDigits_>0||g>0||!1;b=a.minimumFractionDigits_;k&&(b=a.minimumFractionDigits_);for(var m="",n=e;n>1E20;)m="0"+m,n=Math.round(jD(n,-1));m=n+m;var r=fD(a).DECIMAL_SEP;n=fD(a).ZERO_DIGIT.codePointAt(0);var t=m.length,u=0;if(e>0||c>0){for(e=t;e<c;e++)d.push(String.fromCodePoint(n));if(a.groupingArray_.length>=2)for(c=1;c<a.groupingArray_.length;c++)u+=a.groupingArray_[c];c=t-u;if(c>0){e=a.groupingArray_;u=t=0;for(var x,A=fD(a).GROUP_SEP,
C=m.length,F=0;F<C;F++)if(d.push(String.fromCodePoint(n+Number(m.charAt(F)))),C-F>1)if(x=e[u],F<c){var J=c-F;(x===1||x>0&&J%x===1)&&d.push(A)}else u<e.length&&(F===c?u+=1:x===F-c-t+1&&(d.push(A),t+=x,u+=1))}else{c=m;m=a.groupingArray_;e=fD(a).GROUP_SEP;x=c.length;A=[];for(t=m.length-1;t>=0&&x>0;t--){u=m[t];for(C=0;C<u&&x-C-1>=0;C++)A.push(String.fromCodePoint(n+Number(c.charAt(x-C-1))));x-=u;x>0&&A.push(e)}d.push.apply(d,A.reverse())}}else k||d.push(String.fromCodePoint(n));(a.decimalSeparatorAlwaysShown_||
k)&&d.push(r);g=String(g);k=g.split("e+");k.length==2&&(g=String(rsb(parseFloat(k[0]),a.significantDigits_,1)),g=g.replace(".",""),g+=(0,_.ubb)("0",parseInt(k[1],10)-g.length+1));a.maximumFractionDigits_+1>g.length&&(g="1"+(0,_.ubb)("0",a.maximumFractionDigits_-g.length)+g);for(a=g.length;g.charAt(a-1)=="0"&&a>b+1;)a--;for(b=1;b<a;b++)d.push(String.fromCodePoint(n+Number(g.charAt(b))))},qsb=function(a,b,c){c.push(fD(a).EXP_SYMBOL);
b<0?(b=-b,c.push(fD(a).MINUS_SIGN)):a.useSignForPositiveExponent_&&c.push(fD(a).PLUS_SIGN);b=""+b;for(var d=fD(a).ZERO_DIGIT,e=b.length;e<a.minExponentDigits_;e++)c.push(d);a=d.codePointAt(0)-ssb;for(d=0;d<b.length;d++)c.push(String.fromCodePoint(a+b.codePointAt(d)))},lsb=function(a,b){b=b.codePointAt(0);
if(48<=b&&b<58)return b-48;a=fD(a).ZERO_DIGIT.codePointAt(0);return a<=b&&b<a+10?b-a:-1},ssb="0".codePointAt(0),ksb=function(a,b,c){for(var d="",e=!1,g=b.length;c[0]<g;c[0]++){var k=b.charAt(c[0]);
if(k=="'")c[0]+1<g&&b.charAt(c[0]+1)=="'"?(c[0]++,d+="'"):e=!e;else if(e)d+=k;else switch(k){case "#":case "0":case ",":case ".":case ";":return d;case "\u00a4":if(c[0]+1<g&&b.charAt(c[0]+1)=="\u00a4")c[0]++,d+=hD(a);else switch(a.currencyStyle_){case 0:k=hD(a);d+=k in ZC?ZC[k][1]:k;break;case 2:k=hD(a);var m=ZC[k];d+=m?k==m[1]?k:k+" "+m[1]:k;break;case 1:k=hD(a),d+=k in ZC?ZC[k][2]:k}break;case "%":if(!a.negativePercentSignExpected_&&a.multiplier_!=1)throw Error("ke");if(a.negativePercentSignExpected_&&
a.multiplier_!=100)throw Error("le");a.multiplier_=100;a.negativePercentSignExpected_=!1;d+=fD(a).PERCENT;break;case "\u2030":if(!a.negativePercentSignExpected_&&a.multiplier_!=1)throw Error("ke");if(a.negativePercentSignExpected_&&a.multiplier_!=1E3)throw Error("le");a.multiplier_=1E3;a.negativePercentSignExpected_=!1;d+=fD(a).PERMILL;break;default:d+=k}}return d},iD={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},msb=function(a,b){a=a.compactStyle_==1?YC.COMPACT_DECIMAL_SHORT_PATTERN:YC.COMPACT_DECIMAL_LONG_PATTERN;a==null&&(a=YC.COMPACT_DECIMAL_SHORT_PATTERN);if(b<3)return iD;b=Math.min(14,b);var c=a[jD(1,b)];for(--b;!c&&b>=3;)c=a[jD(1,b)],b--;if(!c)return iD;c=c.other;var d=a="",e=c.indexOf(";");e>=0&&(c=c.substring(0,e),e=c.substring(e+1))&&(d=/([^0]*)(0+)(.*)/.exec(e),a=d[1],d=d[3]);return c&&c!="0"?(c=/([^0]*)(0+)(.*)/.exec(c))?{divisorBase:b+
1-(c[2].length-1),negative_prefix:a,negative_suffix:d,prefix:c[1],suffix:c[3]}:iD:iD},nsb=function(a){if(!isFinite(a))return a>0?a:0;
for(var b=0;(a/=10)>=1;)b++;return b},jD=function(a,b){if(!a||!isFinite(a)||b==0)return a;
a=String(a).split("e");return parseFloat(a[0]+"e"+(parseInt(a[1]||0,10)+b))},tsb=function(a,b){return a&&isFinite(a)?jD(Math.round(jD(a,b)),-b):a},rsb=function(a,b,c){if(!a)return a;
b=b-nsb(a)-1;return b<-c?tsb(a,-c):tsb(a,b)};var usb=function(a){return a%10==1&&a%100!=11?"one":a%10==2&&a%100!=12?"two":a%10==3&&a%100!=13?"few":"other"},vsb=usb;
vsb=usb;var wsb;wsb=function(a,b){var c=a|0;if(void 0===b){b=Math;var d=b.min,e=a+"",g=e.indexOf(".");b=d.call(b,g===-1?0:e.length-g-1,3)}d=Math.pow(10,b);a={v:b,f:(a*d|0)%d};return c==1&&a.v==0?"one":"other"};
_.Up=wsb;_.Up=wsb;var xsb,ysb,zsb,Bsb,Csb;_.Asb=function(a){this.JSC$9189_pattern_=a;this.parsedPattern_=this.literals_=this.initialLiterals_=null;a=gsb;var b=YC;if(xsb!==a||ysb!==b)xsb=a,ysb=b,zsb=new _.Pp(1);this.numberFormatter_=zsb};
xsb=null;ysb=null;zsb=null;Bsb=RegExp("'([{}#].*?)'","g");Csb=RegExp("''","g");
_.Asb.prototype.format=function(a){if(this.JSC$9189_pattern_){this.initialLiterals_=[];var b=Dsb(this,this.JSC$9189_pattern_);this.parsedPattern_=Esb(this,b);this.JSC$9189_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Ra(this.initialLiterals_),b=[],Fsb(this,this.parsedPattern_,a,!1,b),a=b.join("");this.literals_.length>0;)a=a.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else a="";return a};
var Fsb=function(a,b,c,d,e){for(var g=0;g<b.length;g++)switch(b[g].type){case 4:e.push(b[g].value);break;case 3:var k=b[g].value;var m=a,n=e,r=c[k];r===void 0?n.push("Undefined parameter - "+k):(m.literals_.push(r),n.push(m.buildPlaceholder_(m.literals_)));break;case 2:k=b[g].value;m=a;n=c;r=d;var t=e,u=k.argumentIndex;n[u]===void 0?t.push("Undefined parameter - "+u):(u=k[n[u]],u===void 0&&(u=k.other),Fsb(m,u,n,r,t));break;case 0:k=b[g].value;Gsb(a,k,c,_.Up,d,e);break;case 1:k=b[g].value,Gsb(a,k,
c,vsb,d,e)}},Gsb=function(a,b,c,d,e,g){var k=b.argumentIndex,m=b.argumentOffset,n=+c[k];
isNaN(n)?g.push("Undefined or invalid parameter - "+k):(m=n-m,k=b[c[k]],k===void 0&&(d=d(Math.abs(m)),k=b[d],k===void 0&&(k=b.other)),b=[],Fsb(a,k,c,e,b),c=b.join(""),e?g.push(c):(a=a.numberFormatter_.format(m),g.push(c.replace(/#/g,a))))},Dsb=function(a,b){var c=a.initialLiterals_,d=a.buildPlaceholder_.bind(a);
b=b.replace(Csb,function(){c.push("'");return d(c)});
return b=b.replace(Bsb,function(e,g){c.push(g);return d(c)})},Hsb=function(a){var b=0,c=[],d=[],e=/[{}]/g;
e.lastIndex=0;for(var g;g=e.exec(a);){var k=g.index;g[0]=="}"?(c.pop(),c.length==0&&(g={type:1},g.value=a.substring(b,k),d.push(g),b=k+1)):(c.length==0&&(b=a.substring(b,k),b!=""&&d.push({type:0,value:b}),b=k+1),c.push("{"))}a=a.substring(b);a!=""&&d.push({type:0,value:a});return d},Isb=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,Jsb=/^\s*(\w+)\s*,\s*selectordinal\s*,/,Ksb=/^\s*(\w+)\s*,\s*select\s*,/,Esb=function(a,b){var c=[];
b=Hsb(b);for(var d=0;d<b.length;d++){var e={};if(0==b[d].type)e.type=4,e.value=b[d].value;else if(1==b[d].type){var g=b[d].value;switch(Isb.test(g)?0:Jsb.test(g)?1:Ksb.test(g)?2:/^\s*\w+\s*/.test(g)?3:5){case 2:e.type=2;e.value=Lsb(a,b[d].value);break;case 0:e.type=0;e.value=Msb(a,b[d].value);break;case 1:e.type=1;e.value=Nsb(a,b[d].value);break;case 3:e.type=3,e.value=b[d].value}}c.push(e)}return c},Lsb=function(a,b){var c="";
b=b.replace(Ksb,function(m,n){c=n;return""});
var d={};d.argumentIndex=c;b=Hsb(b);for(var e=0;e<b.length;){var g=b[e].value;e++;var k=void 0;1==b[e].type&&(k=Esb(a,b[e].value));d[g.replace(/\s/g,"")]=k;e++}return d},Msb=function(a,b){var c="",d=0;
b=b.replace(Isb,function(n,r,t){c=r;t&&(d=parseInt(t,10));return""});
var e={};e.argumentIndex=c;e.argumentOffset=d;b=Hsb(b);for(var g=0;g<b.length;){var k=b[g].value;g++;var m=void 0;1==b[g].type&&(m=Esb(a,b[g].value));e[k.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=m;g++}return e},Nsb=function(a,b){var c="";
b=b.replace(Jsb,function(m,n){c=n;return""});
var d={};d.argumentIndex=c;d.argumentOffset=0;b=Hsb(b);for(var e=0;e<b.length;){var g=b[e].value;e++;var k=void 0;1==b[e].type&&(k=Esb(a,b[e].value));d[g.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=k;e++}return d};
_.Asb.prototype.buildPlaceholder_=function(a){return"\ufddf_"+(a.length-1).toString(10)+"_"};var Osb;
Osb={DAY:{LONG:{R:{"-1":"yesterday",0:"today",1:"tomorrow"},P:"one{# day ago}other{# days ago}",F:"one{in # day}other{in # days}"},NARROW:{R:{"-1":"yesterday",0:"today",1:"tomorrow"},P:"one{#d ago}other{#d ago}",F:"one{in #d}other{in #d}"}},HOUR:{LONG:{R:{0:"this hour"},P:"one{# hour ago}other{# hours ago}",F:"one{in # hour}other{in # hours}"},SHORT:{R:{0:"this hour"},P:"one{# hr. ago}other{# hr. ago}",F:"one{in # hr.}other{in # hr.}"},NARROW:{R:{0:"this hour"},P:"one{#h ago}other{#h ago}",F:"one{in #h}other{in #h}"}},
MINUTE:{LONG:{R:{0:"this minute"},P:"one{# minute ago}other{# minutes ago}",F:"one{in # minute}other{in # minutes}"},SHORT:{R:{0:"this minute"},P:"one{# min. ago}other{# min. ago}",F:"one{in # min.}other{in # min.}"},NARROW:{R:{0:"this minute"},P:"one{#m ago}other{#m ago}",F:"one{in #m}other{in #m}"}},MONTH:{LONG:{R:{"-1":"last month",0:"this month",1:"next month"},P:"one{# month ago}other{# months ago}",F:"one{in # month}other{in # months}"},SHORT:{R:{"-1":"last mo.",0:"this mo.",1:"next mo."},P:"one{# mo. ago}other{# mo. ago}",
F:"one{in # mo.}other{in # mo.}"},NARROW:{R:{"-1":"last mo.",0:"this mo.",1:"next mo."},P:"one{#mo ago}other{#mo ago}",F:"one{in #mo}other{in #mo}"}},QUARTER:{LONG:{R:{"-1":"last quarter",0:"this quarter",1:"next quarter"},P:"one{# quarter ago}other{# quarters ago}",F:"one{in # quarter}other{in # quarters}"},SHORT:{R:{"-1":"last qtr.",0:"this qtr.",1:"next qtr."},P:"one{# qtr. ago}other{# qtrs. ago}",F:"one{in # qtr.}other{in # qtrs.}"},NARROW:{R:{"-1":"last qtr.",0:"this qtr.",1:"next qtr."},P:"one{#q ago}other{#q ago}",
F:"one{in #q}other{in #q}"}},SECOND:{LONG:{R:{0:"now"},P:"one{# second ago}other{# seconds ago}",F:"one{in # second}other{in # seconds}"},SHORT:{R:{0:"now"},P:"one{# sec. ago}other{# sec. ago}",F:"one{in # sec.}other{in # sec.}"},NARROW:{R:{0:"now"},P:"one{#s ago}other{#s ago}",F:"one{in #s}other{in #s}"}},WEEK:{LONG:{R:{"-1":"last week",0:"this week",1:"next week"},P:"one{# week ago}other{# weeks ago}",F:"one{in # week}other{in # weeks}"},SHORT:{R:{"-1":"last wk.",0:"this wk.",1:"next wk."},P:"one{# wk. ago}other{# wk. ago}",
F:"one{in # wk.}other{in # wk.}"},NARROW:{R:{"-1":"last wk.",0:"this wk.",1:"next wk."},P:"one{#w ago}other{#w ago}",F:"one{in #w}other{in #w}"}},YEAR:{LONG:{R:{"-1":"last year",0:"this year",1:"next year"},P:"one{# year ago}other{# years ago}",F:"one{in # year}other{in # years}"},SHORT:{R:{"-1":"last yr.",0:"this yr.",1:"next yr."},P:"one{# yr. ago}other{# yr. ago}",F:"one{in # yr.}other{in # yr.}"},NARROW:{R:{"-1":"last yr.",0:"this yr.",1:"next yr."},P:"one{#y ago}other{#y ago}",F:"one{in #y}other{in #y}"}}};var kGa=function(){this.rdtfSymbols_=Psb||Osb;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
kGa.prototype.format=function(a,b){a:{b=Qsb(this,b);switch(this.style_){case 2:if(b.NARROW!=void 0){b=b.NARROW;break a}case 1:if(b.SHORT!=void 0){b=b.SHORT;break a}default:b=b.LONG;break a}b=void 0}if(!this.alwaysNumeric_&&b&&b.R&&b.R[""+a])a=b.R[""+a];else if(b){var c=Math.abs(a);a=(new _.Asb("{N,plural,"+(a>0||a==0&&1/a==Infinity?b.F:b.P)+"}")).format({N:c})}else a="";return a};
var Qsb=function(a,b){switch(b){default:case 0:return a.rdtfSymbols_.YEAR;case 1:return a.rdtfSymbols_.QUARTER;case 2:return a.rdtfSymbols_.MONTH;case 3:return a.rdtfSymbols_.WEEK;case 4:return a.rdtfSymbols_.DAY;case 5:return a.rdtfSymbols_.HOUR;case 6:return a.rdtfSymbols_.MINUTE;case 7:return a.rdtfSymbols_.SECOND}};var Rsb=function(a,b,c,d,e,g,k,m){this.x0=a;this.y0=b;this.x1=c;this.y1=d;this.x2=e;this.y2=g;this.x3=k;this.y3=m};
Rsb.prototype.clone=function(){return new Rsb(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
Rsb.prototype.equals=function(a){return this.x0==a.x0&&this.y0==a.y0&&this.x1==a.x1&&this.y1==a.y1&&this.x2==a.x2&&this.y2==a.y2&&this.x3==a.x3&&this.y3==a.y3};
var Ssb=function(a,b){if(b==0)return a.x0;if(b==1)return a.x3;var c=Jy(a.x0,a.x1,b),d=Jy(a.x1,a.x2,b);a=Jy(a.x2,a.x3,b);c=Jy(c,d,b);d=Jy(d,a,b);return Jy(c,d,b)},Tsb=function(a,b){var c=(b-a.x0)/(a.x3-a.x0);
if(c<=0)return 0;if(c>=1)return 1;for(var d=0,e=1,g=0,k=0;k<8;k++){g=Ssb(a,c);var m=(Ssb(a,c+1E-6)-g)/1E-6;if(Math.abs(g-b)<1E-6)return c;if(Math.abs(m)<1E-6)break;else g<b?d=c:e=c,c-=(g-b)/m}for(k=0;Math.abs(g-b)>1E-6&&k<8;k++)g<b?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),g=Ssb(a,c);return c};var kD=function(){_.Hz.call(this);this.JSC$9210_name_="closure_frame"+Usb++;this.iframesForDisposal_=[];Vsb[this.JSC$9210_name_]=this},lD;
_.sx(kD,_.Hz);var Vsb={},Usb=0,Wsb=function(a,b){var c=uf(a);_.qib(b,function(d,e){Array.isArray(d)||(d=[d]);_.Mi(d,function(g){g=c.JSC$7220_createDom("INPUT",{type:"hidden",name:e,value:g});a.appendChild(g)})})};
_.f=kD.prototype;_.f.JSC$9212_form_=null;_.f.JSC$9212_iframe_=null;_.f.iframeName_=null;_.f.nextIframeId_=0;_.f.JSC$9212_active_=!1;_.f.complete_=!1;_.f.success_=!1;_.f.lastContent_=null;_.f.JSC$9212_lastErrorCode_=0;_.f.iframeDisposalTimer_=null;
_.f.send=function(a,b,c,d){if(this.JSC$9212_active_)throw Error("re");a=new _.Yn(a);b=b?b.toUpperCase():"GET";c&&_.tA(a);lD||(lD=_.Sy("FORM"),lD.acceptCharset="utf-8",c=lD.style,c.position="absolute",c.visibility="hidden",c.top=c.left="-10px",c.width=c.height="10px",c.overflow="hidden",document.body.appendChild(lD));this.JSC$9212_form_=lD;b=="GET"&&Wsb(this.JSC$9212_form_,a.JSC$7876_queryData_);d&&Wsb(this.JSC$9212_form_,d);c=a.toString();c=vja(c);d=this.JSC$9212_form_;c=_.Md(Cd(c));c!==void 0&&(d.action=
c);this.JSC$9212_form_.method=b;Xsb(this);Ysb(this)};
_.f.abort=function(a){if(this.JSC$9212_active_){var b=mD(this);if(b)if(Ez(b))b.removeAllListeners(void 0);else if(b=Fz(b)){var c=0,d;for(d in b.listeners)for(var e=b.listeners[d].concat(),g=0;g<e.length;++g)os(e[g])&&++c}this.success_=this.JSC$9212_active_=this.complete_=!1;this.JSC$9212_lastErrorCode_=a||7;this.dispatchEvent("abort");Zsb(this)}};
_.f.disposeInternal=function(){this.JSC$9212_active_&&this.abort();kD.superClass_.disposeInternal.call(this);this.JSC$9212_iframe_&&$sb(this);Ysb(this);this.JSC$9212_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9212_form_=null;this.JSC$9212_lastErrorCode_=0;delete Vsb[this.JSC$9210_name_]};
_.f.isComplete=function(){return this.complete_};
_.f.isSuccess=function(){return this.success_};
_.f.isActive=function(){return this.JSC$9212_active_};
_.f.getResponseText=function(){return this.lastContent_};
_.f.getLastError=function(){return _.Xfb(this.JSC$9212_lastErrorCode_)};
var Xsb=function(a){a.JSC$9212_active_=!0;a.complete_=!1;a.JSC$9212_lastErrorCode_=0;a.iframeName_=a.JSC$9210_name_+"_"+(a.nextIframeId_++).toString(36);a.JSC$9212_iframe_=uf(a.JSC$9212_form_).JSC$7220_createDom("IFRAME",{name:a.iframeName_,id:a.iframeName_});var b=a.JSC$9212_iframe_.style;b.visibility="hidden";b.width=b.height="10px";b.display="none";_.zx?b.marginTop=b.marginLeft="-10px":(b.position="absolute",b.top=b.left="-10px");sdb(uf(a.JSC$9212_form_)).body.appendChild(a.JSC$9212_iframe_);b=
a.iframeName_+"_inner";var c=kdb(a.JSC$9212_iframe_);if(document.baseURI){var d=iu(b);d='<head><base href="'+iu(document.baseURI)+'"></head><body><iframe id="'+d+'" name="'+d+'"></iframe>';d=Qd(d)}else d=iu(b),d=Qd('<body><iframe id="'+d+'" name="'+d+'"></iframe>');c.write(Rd(d));_.rs(c.getElementById(b),"load",a.onIframeLoaded_,!1,a);d=rg("TEXTAREA",a.JSC$9212_form_);for(var e=0,g=d.length;e<g;e++){var k=d[e].value;qdb(d[e])!=k&&(_.Zy(d[e],k),d[e].value=k)}d=c.importNode(a.JSC$9212_form_,!0);d.target=
b;d.action=a.JSC$9212_form_.action;c.body.appendChild(d);e=rg("SELECT",a.JSC$9212_form_);g=rg("SELECT",d);k=0;for(var m=e.length;k<m;k++)for(var n=rg("OPTION",e[k]),r=rg("OPTION",g[k]),t=0,u=n.length;t<u;t++)r[t].selected=n[t].selected;e=rg("INPUT",a.JSC$9212_form_);g=rg("INPUT",d);k=0;for(m=e.length;k<m;k++)if(e[k].type=="file"&&e[k].value!=g[k].value){a.JSC$9212_form_.target=b;d=a.JSC$9212_form_;break}try{a.errorHandled_=!1,d.submit(),c.close(),_.yx&&setTimeout(a.testForFirefoxSilentError_.bind(a),
250)}catch(x){_.Gz(c.getElementById(b),"load",a.onIframeLoaded_,!1,a),c.close(),nD(a,2)}};
kD.prototype.onIframeLoaded_=function(){_.Gz(mD(this),"load",this.onIframeLoaded_,!1,this);try{var a=this.JSC$9212_iframe_?kdb(mD(this)):null;this.complete_=!0;this.JSC$9212_active_=!1;try{var b=a.body;this.lastContent_=b.textContent||b.innerText}catch(e){var c=1}var d;c||typeof this.errorChecker_!="function"||(d=this.errorChecker_(a))&&(c=4);c?nD(this,c):(this.success_=!0,this.JSC$9212_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),Zsb(this))}catch(e){nD(this,1)}};
var nD=function(a,b){a.errorHandled_||(a.success_=!1,a.JSC$9212_active_=!1,a.complete_=!0,a.JSC$9212_lastErrorCode_=b,a.dispatchEvent("complete"),a.dispatchEvent("error"),Zsb(a),a.errorHandled_=!0)},Zsb=function(a){$sb(a);
Ysb(a);a.JSC$9212_form_=null;a.dispatchEvent("ready")},$sb=function(a){var b=a.JSC$9212_iframe_;
b&&(b.onreadystatechange=null,b.onload=null,b.onerror=null,a.iframesForDisposal_.push(b));a.iframeDisposalTimer_&&(clearTimeout(a.iframeDisposalTimer_),a.iframeDisposalTimer_=null);_.yx?a.iframeDisposalTimer_=setTimeout(a.disposeIframes_.bind(a),2E3):a.disposeIframes_();a.JSC$9212_iframe_=null;a.iframeName_=null};
kD.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var a=this.iframesForDisposal_.pop();_.qg(a)}};
var Ysb=function(a){a.JSC$9212_form_&&a.JSC$9212_form_==lD&&_.Vy(a.JSC$9212_form_)},mD=function(a){return a.JSC$9212_iframe_?kdb(a.JSC$9212_iframe_).getElementById(a.iframeName_+"_inner"):null};
kD.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9212_active_){var a=this.JSC$9212_iframe_?kdb(mD(this)):null;a&&!Sga(a,"documentUri")?(_.Gz(mD(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?nD(this,3):nD(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.oD=function(a){return a=="\r"||a=="\n"||a==" "||a=="\t"};var atb;_.pD=function(a){this.errorMessage_=null;this.result_=[];this.JSC$9214_buffer_="";this.stack_=[];this.JSC$9214_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!a||!a.deliverMessageAsRawString)};
atb={INIT:0,VALUE:1,OBJECT_OPEN:2,OBJECT_END:3,ARRAY_OPEN:4,ARRAY_END:5,STRING:6,KEY_START:7,KEY_END:8,TRUE1:9,TRUE2:10,TRUE3:11,FALSE1:12,FALSE2:13,FALSE3:14,FALSE4:15,NULL1:16,NULL2:17,NULL3:18,NUM_DECIMAL_POINT:19,NUM_DIGIT:20};_.pD.prototype.isInputValid=function(){return this.streamState_!=3};
_.pD.prototype.done=function(){return this.streamState_===2};
var qD=function(a,b,c){a.streamState_=3;a.errorMessage_="The stream is broken @"+a.JSC$9214_pos_+"/"+c+". With input:\n"+b;throw Error(a.errorMessage_);};
_.pD.prototype.acceptsBinaryInput=function(){return!1};
_.pD.prototype.parse=function(a){function b(){for(;x<a.length;)if(_.oD(a[x]))x++,g.JSC$9214_pos_++;else break;return x<r}
function c(){for(var C;;){C=a[x++];if(!C)break;g.JSC$9214_pos_++;switch(g.state_){case n.INIT:C==="{"?g.state_=n.OBJECT_OPEN:C==="["?g.state_=n.ARRAY_OPEN:_.oD(C)||qD(g,a,x);continue;case n.KEY_START:case n.OBJECT_OPEN:if(_.oD(C))continue;if(g.state_===n.KEY_START)k.push(n.KEY_END);else if(C==="}"){e("{}");g.state_=d();continue}else k.push(n.OBJECT_END);C==='"'?g.state_=n.STRING:qD(g,a,x);continue;case n.KEY_END:case n.OBJECT_END:if(_.oD(C))continue;C===":"?(g.state_===n.OBJECT_END&&(k.push(n.OBJECT_END),
g.depth_++),g.state_=n.VALUE):C==="}"?(g.depth_--,e(),g.state_=d()):C===","?(g.state_===n.OBJECT_END&&k.push(n.OBJECT_END),g.state_=n.KEY_START):qD(g,a,x);continue;case n.ARRAY_OPEN:case n.VALUE:if(_.oD(C))continue;if(g.state_===n.ARRAY_OPEN)if(g.depth_++,g.state_=n.VALUE,C==="]"){g.depth_--;if(g.depth_===0){g.state_=n.ARRAY_END;return}e("[]");g.state_=d();continue}else k.push(n.ARRAY_END);C==='"'?g.state_=n.STRING:C==="{"?g.state_=n.OBJECT_OPEN:C==="["?g.state_=n.ARRAY_OPEN:C==="t"?g.state_=n.TRUE1:
C==="f"?g.state_=n.FALSE1:C==="n"?g.state_=n.NULL1:C!=="-"&&("0123456789".indexOf(C)!==-1?g.state_=n.NUM_DIGIT:qD(g,a,x));continue;case n.ARRAY_END:if(C===",")k.push(n.ARRAY_END),g.state_=n.VALUE,g.depth_===1&&(u=x);else if(C==="]"){g.depth_--;if(g.depth_===0)return;e();g.state_=d()}else if(_.oD(C))continue;else qD(g,a,x);continue;case n.STRING:var F=x;a:for(;;){for(;g.unicodeCount_>0;)if(C=a[x++],g.unicodeCount_===4?g.unicodeCount_=0:g.unicodeCount_++,!C)break a;if(C==='"'&&!g.slashed_){g.state_=
d();break}if(C==="\\"&&!g.slashed_&&(g.slashed_=!0,C=a[x++],!C))break;if(g.slashed_)if(g.slashed_=!1,C==="u"&&(g.unicodeCount_=1),C=a[x++])continue;else break;m.lastIndex=x;C=m.exec(a);if(!C){x=a.length+1;break}x=C.index+1;C=a[C.index];if(!C)break}g.JSC$9214_pos_+=x-F;continue;case n.TRUE1:if(!C)continue;C==="r"?g.state_=n.TRUE2:qD(g,a,x);continue;case n.TRUE2:if(!C)continue;C==="u"?g.state_=n.TRUE3:qD(g,a,x);continue;case n.TRUE3:if(!C)continue;C==="e"?g.state_=d():qD(g,a,x);continue;case n.FALSE1:if(!C)continue;
C==="a"?g.state_=n.FALSE2:qD(g,a,x);continue;case n.FALSE2:if(!C)continue;C==="l"?g.state_=n.FALSE3:qD(g,a,x);continue;case n.FALSE3:if(!C)continue;C==="s"?g.state_=n.FALSE4:qD(g,a,x);continue;case n.FALSE4:if(!C)continue;C==="e"?g.state_=d():qD(g,a,x);continue;case n.NULL1:if(!C)continue;C==="u"?g.state_=n.NULL2:qD(g,a,x);continue;case n.NULL2:if(!C)continue;C==="l"?g.state_=n.NULL3:qD(g,a,x);continue;case n.NULL3:if(!C)continue;C==="l"?g.state_=d():qD(g,a,x);continue;case n.NUM_DECIMAL_POINT:C===
"."?g.state_=n.NUM_DIGIT:qD(g,a,x);continue;case n.NUM_DIGIT:if("0123456789.eE+-".indexOf(C)!==-1)continue;else x--,g.JSC$9214_pos_--,g.state_=d();continue;default:qD(g,a,x)}}}
function d(){var C=k.pop();return C!=null?C:n.VALUE}
function e(C){g.depth_>1||(C||(C=u===-1?g.JSC$9214_buffer_+a.substring(t,x):a.substring(u,x)),g.deliverMessageAsRawString_?g.result_.push(C):g.result_.push(JSON.parse(C)),u=x)}
for(var g=this,k=g.stack_,m=g.stringInputPattern_,n=atb,r=a.length,t=0,u=-1,x=0;x<r;)switch(g.streamState_){case 3:return qD(g,a,x),null;case 2:return b()&&qD(g,a,x),null;case 0:if(b()){var A=a[x++];g.JSC$9214_pos_++;if(A==="["){g.streamState_=1;t=x;g.state_=n.ARRAY_OPEN;continue}else qD(g,a,x)}return null;case 1:return c(),g.depth_===0&&g.state_==n.ARRAY_END?(g.streamState_=2,g.JSC$9214_buffer_=a.substring(x)):g.JSC$9214_buffer_=u===-1?g.JSC$9214_buffer_+a.substring(t):a.substring(u),g.result_.length>
0?(A=g.result_,g.result_=[],A):null}return null};_.sx(_.dn,sj);en.prototype.getValue=function(){return this.JSC$9222_value_};
en.prototype.clone=function(){return new en(this.JSC$9222_key_,this.JSC$9222_value_)};var rD=function(a){this.nodes_=[];if(a)a:{if(a instanceof rD){var b=a.getKeys();a=a.getValues();if(this.getCount()<=0){for(var c=this.nodes_,d=0;d<b.length;d++)c.push(new en(b[d],a[d]));break a}}else b=_.Cf.getKeys(a),a=_.Cf.getValues(a);for(c=0;c<b.length;c++)this.insert(b[c],a[c])}};
_.f=rD.prototype;_.f.insert=function(a,b){var c=this.nodes_;c.push(new en(a,b));a=c.length-1;b=this.nodes_;for(c=b[a];a>0;){var d=a-1>>1;if(b[d].JSC$9222_key_>c.JSC$9222_key_)b[a]=b[d],a=d;else break}b[a]=c};
_.f.remove=function(){var a=this.nodes_,b=a.length,c=a[0];if(!(b<=0)){if(b==1)a.length=0;else{a[0]=a.pop();a=0;b=this.nodes_;for(var d=b.length,e=b[a];a<d>>1;){var g=a*2+1,k=a*2+2;g=k<d&&b[k].JSC$9222_key_<b[g].JSC$9222_key_?k:g;if(b[g].JSC$9222_key_>e.JSC$9222_key_)break;b[a]=b[g];a=g}b[a]=e}return c.getValue()}};
_.f.peek=function(){var a=this.nodes_;if(a.length!=0)return a[0].getValue()};
_.f.getValues=function(){for(var a=this.nodes_,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
_.f.getKeys=function(){for(var a=this.nodes_,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].JSC$9222_key_);return b};
_.f.containsValue=function(a){return this.nodes_.some(function(b){return b.getValue()==a})};
_.f.containsKey=function(a){return this.nodes_.some(function(b){return b.JSC$9222_key_==a})};
_.f.clone=function(){return new rD(this)};
_.f.getCount=function(){return this.nodes_.length};
_.f.isEmpty=function(){return this.nodes_.length===0};
_.f.clear=function(){this.nodes_.length=0};_.sD=function(a,b){this.JSC$9228_map_={};this.JSC$9228_keys_=[];this.version_=this.size=0;var c=arguments.length;if(c>1){if(c%2)throw Error("ra");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.addAll(a)};
_.f=_.sD.prototype;_.f.getCount=function(){return this.size};
_.f.getValues=function(){tD(this);for(var a=[],b=0;b<this.JSC$9228_keys_.length;b++)a.push(this.JSC$9228_map_[this.JSC$9228_keys_[b]]);return a};
_.f.getKeys=function(){tD(this);return this.JSC$9228_keys_.concat()};
_.f.containsKey=function(a){return this.has(a)};
_.f.has=function(a){return uD(this.JSC$9228_map_,a)};
_.f.containsValue=function(a){for(var b=0;b<this.JSC$9228_keys_.length;b++){var c=this.JSC$9228_keys_[b];if(uD(this.JSC$9228_map_,c)&&this.JSC$9228_map_[c]==a)return!0}return!1};
_.f.equals=function(a,b){if(this===a)return!0;if(this.size!=a.getCount())return!1;b=b||btb;tD(this);for(var c,d=0;c=this.JSC$9228_keys_[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};
var btb=function(a,b){return a===b};
_.sD.prototype.isEmpty=function(){return this.size==0};
_.sD.prototype.clear=function(){this.JSC$9228_map_={};this.version_=this.size=this.JSC$9228_keys_.length=0};
_.sD.prototype.remove=function(a){return this.delete(a)};
_.sD.prototype.delete=function(a){return uD(this.JSC$9228_map_,a)?(delete this.JSC$9228_map_[a],--this.size,this.version_++,this.JSC$9228_keys_.length>2*this.size&&tD(this),!0):!1};
var tD=function(a){if(a.size!=a.JSC$9228_keys_.length){for(var b=0,c=0;b<a.JSC$9228_keys_.length;){var d=a.JSC$9228_keys_[b];uD(a.JSC$9228_map_,d)&&(a.JSC$9228_keys_[c++]=d);b++}a.JSC$9228_keys_.length=c}if(a.size!=a.JSC$9228_keys_.length){b={};for(d=c=0;c<a.JSC$9228_keys_.length;){var e=a.JSC$9228_keys_[c];uD(b,e)||(a.JSC$9228_keys_[d++]=e,b[e]=1);c++}a.JSC$9228_keys_.length=d}};
_.f=_.sD.prototype;_.f.get=function(a,b){return uD(this.JSC$9228_map_,a)?this.JSC$9228_map_[a]:b};
_.f.set=function(a,b){uD(this.JSC$9228_map_,a)||(this.size+=1,this.JSC$9228_keys_.push(a),this.version_++);this.JSC$9228_map_[a]=b};
_.f.addAll=function(a){if(a instanceof _.sD)for(var b=a.getKeys(),c=0;c<b.length;c++)this.set(b[c],a.get(b[c]));else for(b in a)this.set(b,a[b])};
_.f.forEach=function(a,b){for(var c=this.getKeys(),d=0;d<c.length;d++){var e=c[d],g=this.get(e);a.call(b,g,e,this)}};
_.f.clone=function(){return new _.sD(this)};
_.f.transpose=function(){for(var a=new _.sD,b=0;b<this.JSC$9228_keys_.length;b++){var c=this.JSC$9228_keys_[b];a.set(this.JSC$9228_map_[c],c)}return a};
_.f.keys=function(){return Emb(this.__iterator__(!0)).toEs6()};
_.f.values=function(){return Emb(this.__iterator__(!1)).toEs6()};
_.f.entries=function(){var a=this;return Pqb(this.keys(),function(b){return[b,a.get(b)]})};
_.f.__iterator__=function(a){tD(this);var b=0,c=this.version_,d=this,e=new pB;e.next=function(){if(c!=d.version_)throw Error("se");if(b>=d.JSC$9228_keys_.length)return qB;var g=d.JSC$9228_keys_[b++];return rB(a?g:d.JSC$9228_map_[g])};
return e};
var uD=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var dtb=function(){this.JSC$9231_map_=new _.sD;this.JSC$9231_head_=new ctb("");this.JSC$9231_head_.next=this.JSC$9231_head_.prev=this.JSC$9231_head_},etb=function(a,b){if(b=a.JSC$9231_map_.get(b))b.remove(),a.insert_(b);
return b};
_.f=dtb.prototype;_.f.get=function(a,b){return(a=etb(this,a))?a.value:b};
_.f.set=function(a,b){var c=etb(this,a);c?c.value=b:(c=new ctb(a,b),this.JSC$9231_map_.set(a,c),this.insert_(c))};
_.f.peek=function(){return this.JSC$9231_head_.next.value};
_.f.shift=function(){return ftb(this,this.JSC$9231_head_.next)};
_.f.pop=function(){return ftb(this,this.JSC$9231_head_.prev)};
_.f.remove=function(a){return(a=this.JSC$9231_map_.get(a))?(this.removeNode(a),!0):!1};
_.f.removeNode=function(a){a.remove();this.JSC$9231_map_.remove(a.key)};
_.f.getCount=function(){return this.JSC$9231_map_.getCount()};
_.f.isEmpty=function(){return this.JSC$9231_map_.isEmpty()};
_.f.getKeys=function(){return this.map(function(a,b){return b})};
_.f.getValues=function(){return this.map(function(a){return a})};
_.f.contains=function(a){return this.some(function(b){return b==a})};
_.f.containsKey=function(a){return this.JSC$9231_map_.containsKey(a)};
_.f.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9231_head_.prev)};
_.f.forEach=function(a,b){for(var c=this.JSC$9231_head_.next;c!=this.JSC$9231_head_;c=c.next)a.call(b,c.value,c.key,this)};
_.f.map=function(a,b){for(var c=[],d=this.JSC$9231_head_.next;d!=this.JSC$9231_head_;d=d.next)c.push(a.call(b,d.value,d.key,this));return c};
_.f.some=function(a,b){for(var c=this.JSC$9231_head_.next;c!=this.JSC$9231_head_;c=c.next)if(a.call(b,c.value,c.key,this))return!0;return!1};
_.f.every=function(a,b){for(var c=this.JSC$9231_head_.next;c!=this.JSC$9231_head_;c=c.next)if(!a.call(b,c.value,c.key,this))return!1;return!0};
_.f.insert_=function(a){a.next=this.JSC$9231_head_.next;a.prev=this.JSC$9231_head_;this.JSC$9231_head_.next=a;for(a.next.prev=a;this.getCount()>40;)this.removeNode(this.JSC$9231_head_.prev)};
var ftb=function(a,b){a.JSC$9231_head_!=b&&a.removeNode(b);return b.value},ctb=function(a,b){this.key=a;
this.value=b};
ctb.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var gtb=function(){rD.apply(this,arguments)};
_.z(gtb,rD);gtb.prototype.enqueue=function(a,b){this.insert(a,b)};var htb=function(){var a=Error();a.name="SecurityError";throw a;},gVa=function(){return{get opener(){return null},
get closed(){return!0},get location(){htb()},get document(){htb()},postMessage:function(){},
close:function(){},
focus:function(){}}};var tya={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var wya={Aacute:"\u00c1",aacute:"\u00e1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223e",acd:"\u223f",acE:"\u223e\u0333",Acirc:"\u00c2",acirc:"\u00e2",acute:"\u00b4",Acy:"\u0410",acy:"\u0430",AElig:"\u00c6",aelig:"\u00e6",af:"\u2061",Afr:"\ud835\udd04",afr:"\ud835\udd1e",Agrave:"\u00c0",agrave:"\u00e0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03b1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2a3f",amp:"&",AMP:"&",andand:"\u2a55",And:"\u2a53",and:"\u2227",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",
ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angmsd:"\u2221",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\u00c5",angzarr:"\u237c",Aogon:"\u0104",aogon:"\u0105",Aopf:"\ud835\udd38",aopf:"\ud835\udd52",apacir:"\u2a6f",ap:"\u2248",apE:"\u2a70",ape:"\u224a",apid:"\u224b",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224a",
Aring:"\u00c5",aring:"\u00e5",Ascr:"\ud835\udc9c",ascr:"\ud835\udcb6",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224d",Atilde:"\u00c3",atilde:"\u00e3",Auml:"\u00c4",auml:"\u00e4",awconint:"\u2233",awint:"\u2a11",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",Backslash:"\u2216",Barv:"\u2ae7",barvee:"\u22bd",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201e",becaus:"\u2235",
because:"\u2235",Because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",Bernoullis:"\u212c",Beta:"\u0392",beta:"\u03b2",beth:"\u2136",between:"\u226c",Bfr:"\ud835\udd05",bfr:"\ud835\udd1f",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",
blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bNot:"\u2aed",bnot:"\u2310",Bopf:"\ud835\udd39",bopf:"\ud835\udd53",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxbox:"\u29c9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250c",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252c",boxHd:"\u2564",
boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxul:"\u2518",boxuL:"\u255b",boxUl:"\u255c",boxUL:"\u255d",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255a",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253c",boxvH:"\u256a",boxVh:"\u256b",boxVH:"\u256c",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251c",boxvR:"\u255e",boxVr:"\u255f",boxVR:"\u2560",bprime:"\u2035",breve:"\u02d8",
Breve:"\u02d8",brvbar:"\u00a6",bscr:"\ud835\udcb7",Bscr:"\u212c",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsolb:"\u29c5",bsol:"\\",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpE:"\u2aae",bumpe:"\u224f",Bumpeq:"\u224e",bumpeq:"\u224f",Cacute:"\u0106",cacute:"\u0107",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",cap:"\u2229",Cap:"\u22d2",capcup:"\u2a47",capdot:"\u2a40",CapitalDifferentialD:"\u2145",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",Cayleys:"\u212d",ccaps:"\u2a4d",
Ccaron:"\u010c",ccaron:"\u010d",Ccedil:"\u00c7",ccedil:"\u00e7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2a4c",ccupssm:"\u2a50",Cdot:"\u010a",cdot:"\u010b",cedil:"\u00b8",Cedilla:"\u00b8",cemptyv:"\u29b2",cent:"\u00a2",centerdot:"\u00b7",CenterDot:"\u00b7",cfr:"\ud835\udd20",Cfr:"\u212d",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03a7",chi:"\u03c7",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledast:"\u229b",circledcirc:"\u229a",
circleddash:"\u229d",CircleDot:"\u2299",circledR:"\u00ae",circledS:"\u24c8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25cb",cirE:"\u29c3",cire:"\u2257",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2a74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",
cong:"\u2245",congdot:"\u2a6d",Congruent:"\u2261",conint:"\u222e",Conint:"\u222f",ContourIntegral:"\u222e",copf:"\ud835\udd54",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\u00a9",COPY:"\u00a9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21b5",cross:"\u2717",Cross:"\u2a2f",Cscr:"\ud835\udc9e",cscr:"\ud835\udcb8",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",
cupbrcap:"\u2a48",cupcap:"\u2a46",CupCap:"\u224d",cup:"\u222a",Cup:"\u22d3",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curren:"\u00a4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21a1",dArr:"\u21d3",dash:"\u2010",
Dashv:"\u2ae4",dashv:"\u22a3",dbkarow:"\u290f",dblac:"\u02dd",Dcaron:"\u010e",dcaron:"\u010f",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21ca",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2a77",deg:"\u00b0",Del:"\u2207",Delta:"\u0394",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",Dfr:"\ud835\udd07",dfr:"\ud835\udd21",dHar:"\u2965",dharl:"\u21c3",dharr:"\u21c2",DiacriticalAcute:"\u00b4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",
diam:"\u22c4",diamond:"\u22c4",Diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\u00a8",DifferentialD:"\u2146",digamma:"\u03dd",disin:"\u22f2",div:"\u00f7",divide:"\u00f7",divideontimes:"\u22c7",divonx:"\u22c7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",Dopf:"\ud835\udd3b",dopf:"\ud835\udd55",Dot:"\u00a8",dot:"\u02d9",DotDot:"\u20dc",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",
DoubleContourIntegral:"\u222f",DoubleDot:"\u00a8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21d3",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",downdownarrows:"\u21ca",
downharpoonleft:"\u21c3",downharpoonright:"\u21c2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21bd",DownRightTeeVector:"\u295f",DownRightVectorBar:"\u2957",DownRightVector:"\u21c1",DownTeeArrow:"\u21a7",DownTee:"\u22a4",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",Dscr:"\ud835\udc9f",dscr:"\ud835\udcb9",DScy:"\u0405",dscy:"\u0455",dsol:"\u29f6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",
duhar:"\u296f",dwangle:"\u29a6",DZcy:"\u040f",dzcy:"\u045f",dzigrarr:"\u27ff",Eacute:"\u00c9",eacute:"\u00e9",easter:"\u2a6e",Ecaron:"\u011a",ecaron:"\u011b",Ecirc:"\u00ca",ecirc:"\u00ea",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042d",ecy:"\u044d",eDDot:"\u2a77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\ud835\udd08",efr:"\ud835\udd22",eg:"\u2a9a",Egrave:"\u00c8",egrave:"\u00e8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",Element:"\u2208",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",
elsdot:"\u2a97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25fb",emptyv:"\u2205",EmptyVerySmallSquare:"\u25ab",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014a",eng:"\u014b",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\ud835\udd3c",eopf:"\ud835\udd56",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",Epsilon:"\u0395",epsilon:"\u03b5",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",
Equal:"\u2a75",equals:"=",EqualTilde:"\u2242",equest:"\u225f",Equilibrium:"\u21cc",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erarr:"\u2971",erDot:"\u2253",escr:"\u212f",Escr:"\u2130",esdot:"\u2250",Esim:"\u2a73",esim:"\u2242",Eta:"\u0397",eta:"\u03b7",ETH:"\u00d0",eth:"\u00f0",Euml:"\u00cb",euml:"\u00eb",euro:"\u20ac",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",
fflig:"\ufb00",ffllig:"\ufb04",Ffr:"\ud835\udd09",ffr:"\ud835\udd23",filig:"\ufb01",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",Fopf:"\ud835\udd3d",fopf:"\ud835\udd57",forall:"\u2200",ForAll:"\u2200",fork:"\u22d4",forkv:"\u2ad9",Fouriertrf:"\u2131",fpartint:"\u2a0d",frac12:"\u00bd",frac13:"\u2153",frac14:"\u00bc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\u00be",frac35:"\u2157",
frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",fscr:"\ud835\udcbb",Fscr:"\u2131",gacute:"\u01f5",Gamma:"\u0393",gamma:"\u03b3",Gammad:"\u03dc",gammad:"\u03dd",gap:"\u2a86",Gbreve:"\u011e",gbreve:"\u011f",Gcedil:"\u0122",Gcirc:"\u011c",gcirc:"\u011d",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2a8c",gel:"\u22db",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",gescc:"\u2aa9",ges:"\u2a7e",gesdot:"\u2a80",
gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",Gfr:"\ud835\udd0a",gfr:"\ud835\udd24",gg:"\u226b",Gg:"\u22d9",ggg:"\u22d9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2aa5",gl:"\u2277",glE:"\u2a92",glj:"\u2aa4",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gnE:"\u2269",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",Gopf:"\ud835\udd3e",gopf:"\ud835\udd58",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",
GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Gscr:"\ud835\udca2",gscr:"\u210a",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",gtcc:"\u2aa7",gtcir:"\u2a7a",gt:">",GT:">",Gt:"\u226b",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",Hacek:"\u02c7",hairsp:"\u200a",half:"\u00bd",hamilt:"\u210b",HARDcy:"\u042a",hardcy:"\u044a",harrcir:"\u2948",
harr:"\u2194",hArr:"\u21d4",harrw:"\u21ad",Hat:"^",hbar:"\u210f",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",hfr:"\ud835\udd25",Hfr:"\u210c",HilbertSpace:"\u210b",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",hopf:"\ud835\udd59",Hopf:"\u210d",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\ud835\udcbd",Hscr:"\u210b",hslash:"\u210f",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224e",
HumpEqual:"\u224f",hybull:"\u2043",hyphen:"\u2010",Iacute:"\u00cd",iacute:"\u00ed",ic:"\u2063",Icirc:"\u00ce",icirc:"\u00ee",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\u00a1",iff:"\u21d4",ifr:"\ud835\udd26",Ifr:"\u2111",Igrave:"\u00cc",igrave:"\u00ec",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012a",imacr:"\u012b",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",
Im:"\u2111",imof:"\u22b7",imped:"\u01b5",Implies:"\u21d2",incare:"\u2105","in":"\u2208",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",intcal:"\u22ba","int":"\u222b",Int:"\u222c",integers:"\u2124",Integral:"\u222b",intercal:"\u22ba",Intersection:"\u22c2",intlarhk:"\u2a17",intprod:"\u2a3c",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012e",iogon:"\u012f",Iopf:"\ud835\udd40",iopf:"\ud835\udd5a",Iota:"\u0399",iota:"\u03b9",iprod:"\u2a3c",iquest:"\u00bf",iscr:"\ud835\udcbe",
Iscr:"\u2110",isin:"\u2208",isindot:"\u22f5",isinE:"\u22f9",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\u00cf",iuml:"\u00ef",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\ud835\udd0d",jfr:"\ud835\udd27",jmath:"\u0237",Jopf:"\ud835\udd41",jopf:"\ud835\udd5b",Jscr:"\ud835\udca5",jscr:"\ud835\udcbf",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039a",kappa:"\u03ba",kappav:"\u03f0",
Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041a",kcy:"\u043a",Kfr:"\ud835\udd0e",kfr:"\ud835\udd28",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040c",kjcy:"\u045c",Kopf:"\ud835\udd42",kopf:"\ud835\udd5c",Kscr:"\ud835\udca6",kscr:"\ud835\udcc0",lAarr:"\u21da",Lacute:"\u0139",lacute:"\u013a",laemptyv:"\u29b4",lagran:"\u2112",Lambda:"\u039b",lambda:"\u03bb",lang:"\u27e8",Lang:"\u27ea",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",Laplacetrf:"\u2112",laquo:"\u00ab",larrb:"\u21e4",larrbfs:"\u291f",larr:"\u2190",
Larr:"\u219e",lArr:"\u21d0",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",latail:"\u2919",lAtail:"\u291b",lat:"\u2aab",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lBarr:"\u290e",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",Lcaron:"\u013d",lcaron:"\u013e",Lcedil:"\u013b",lcedil:"\u013c",lceil:"\u2308",lcub:"{",Lcy:"\u041b",lcy:"\u043b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",
ldsh:"\u21b2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27e8",LeftArrowBar:"\u21e4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21d0",LeftArrowRightArrow:"\u21c6",leftarrowtail:"\u21a2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21c3",LeftFloor:"\u230a",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21d4",leftrightarrows:"\u21c6",
leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",LeftRightVector:"\u294e",LeftTeeArrow:"\u21a4",LeftTee:"\u22a3",LeftTeeVector:"\u295a",leftthreetimes:"\u22cb",LeftTriangleBar:"\u29cf",LeftTriangle:"\u22b2",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21bf",LeftVectorBar:"\u2952",LeftVector:"\u21bc",lEg:"\u2a8b",leg:"\u22da",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",lescc:"\u2aa8",les:"\u2a7d",lesdot:"\u2a7f",lesdoto:"\u2a81",
lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2aa1",lesssim:"\u2272",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",lfisht:"\u297c",lfloor:"\u230a",Lfr:"\ud835\udd0f",lfr:"\ud835\udd29",lg:"\u2276",lgE:"\u2a91",lHar:"\u2962",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21c7",
ll:"\u226a",Ll:"\u22d8",llcorner:"\u231e",Lleftarrow:"\u21da",llhard:"\u296b",lltri:"\u25fa",Lmidot:"\u013f",lmidot:"\u0140",lmoustache:"\u23b0",lmoust:"\u23b0",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lnE:"\u2268",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",longleftarrow:"\u27f5",LongLeftArrow:"\u27f5",Longleftarrow:"\u27f8",longleftrightarrow:"\u27f7",LongLeftRightArrow:"\u27f7",Longleftrightarrow:"\u27fa",longmapsto:"\u27fc",longrightarrow:"\u27f6",
LongRightArrow:"\u27f6",Longrightarrow:"\u27f9",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",Lopf:"\ud835\udd43",lopf:"\ud835\udd5d",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\ud835\udcc1",Lscr:"\u2112",lsh:"\u21b0",Lsh:"\u21b0",lsim:"\u2272",
lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2aa6",ltcir:"\u2a79",lt:"<",LT:"<",Lt:"\u226a",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",ltrPar:"\u2996",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",macr:"\u00af",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21a6",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",
mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",Mcy:"\u041c",mcy:"\u043c",mdash:"\u2014",mDDot:"\u223a",measuredangle:"\u2221",MediumSpace:"\u205f",Mellintrf:"\u2133",Mfr:"\ud835\udd10",mfr:"\ud835\udd2a",mho:"\u2127",micro:"\u00b5",midast:"*",midcir:"\u2af0",mid:"\u2223",middot:"\u00b7",minusb:"\u229f",minus:"\u2212",minusd:"\u2238",minusdu:"\u2a2a",MinusPlus:"\u2213",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",Mopf:"\ud835\udd44",mopf:"\ud835\udd5e",mp:"\u2213",mscr:"\ud835\udcc2",
Mscr:"\u2133",mstpos:"\u223e",Mu:"\u039c",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266e",naturals:"\u2115",natur:"\u266e",nbsp:"\u00a0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",Ncy:"\u041d",ncy:"\u043d",
ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21d7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",nexist:"\u2204",nexists:"\u2204",Nfr:"\ud835\udd11",nfr:"\ud835\udd2b",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",
nges:"\u2a7e\u0338",nGg:"\u22d9\u0338",ngsim:"\u2275",nGt:"\u226b\u20d2",ngt:"\u226f",ngtr:"\u226f",nGtv:"\u226b\u0338",nharr:"\u21ae",nhArr:"\u21ce",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",NJcy:"\u040a",njcy:"\u045a",nlarr:"\u219a",nlArr:"\u21cd",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219a",nLeftarrow:"\u21cd",nleftrightarrow:"\u21ae",nLeftrightarrow:"\u21ce",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",
nLl:"\u22d8\u0338",nlsim:"\u2274",nLt:"\u226a\u20d2",nlt:"\u226e",nltri:"\u22ea",nltrie:"\u22ec",nLtv:"\u226a\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\u00a0",nopf:"\ud835\udd5f",Nopf:"\u2115",Not:"\u2aec",not:"\u00ac",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",
NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",notin:"\u2209",notindot:"\u22f5\u0338",notinE:"\u22f9\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangle:"\u22ea",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",
NotNestedLessLess:"\u2aa1\u0338",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangle:"\u22eb",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",
NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",nprec:"\u2280",npreceq:"\u2aaf\u0338",npre:"\u2aaf\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219b",nrArr:"\u21cf",nrarrw:"\u219d\u0338",nrightarrow:"\u219b",
nRightarrow:"\u21cf",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",Nscr:"\ud835\udca9",nscr:"\ud835\udcc3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsube:"\u2288",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20d2",
nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",Ntilde:"\u00d1",ntilde:"\u00f1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",Nu:"\u039d",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvDash:"\u22ad",nVdash:"\u22ae",nVDash:"\u22af",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvHarr:"\u2904",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",
nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21d6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\u00d3",oacute:"\u00f3",oast:"\u229b",Ocirc:"\u00d4",ocirc:"\u00f4",ocir:"\u229a",Ocy:"\u041e",ocy:"\u043e",odash:"\u229d",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29bf",Ofr:"\ud835\udd12",ofr:"\ud835\udd2c",ogon:"\u02db",Ograve:"\u00d2",ograve:"\u00f2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",
olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",Omacr:"\u014c",omacr:"\u014d",Omega:"\u03a9",omega:"\u03c9",Omicron:"\u039f",omicron:"\u03bf",omid:"\u29b6",ominus:"\u2296",Oopf:"\ud835\udd46",oopf:"\ud835\udd60",opar:"\u29b7",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",operp:"\u29b9",oplus:"\u2295",orarr:"\u21bb",Or:"\u2a54",or:"\u2228",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",ordf:"\u00aa",ordm:"\u00ba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",
oS:"\u24c8",Oscr:"\ud835\udcaa",oscr:"\u2134",Oslash:"\u00d8",oslash:"\u00f8",osol:"\u2298",Otilde:"\u00d5",otilde:"\u00f5",otimesas:"\u2a36",Otimes:"\u2a37",otimes:"\u2297",Ouml:"\u00d6",ouml:"\u00f6",ovbar:"\u233d",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",para:"\u00b6",parallel:"\u2225",par:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",PartialD:"\u2202",Pcy:"\u041f",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",
Pfr:"\ud835\udd13",pfr:"\ud835\udd2d",Phi:"\u03a6",phi:"\u03c6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",Pi:"\u03a0",pi:"\u03c0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plus:"+",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",PlusMinus:"\u00b1",plusmn:"\u00b1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\u00b1",Poincareplane:"\u210c",pointint:"\u2a15",popf:"\ud835\udd61",Popf:"\u2119",pound:"\u00a3",prap:"\u2ab7",
Pr:"\u2abb",pr:"\u227a",prcue:"\u227c",precapprox:"\u2ab7",prec:"\u227a",preccurlyeq:"\u227c",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",pre:"\u2aaf",prE:"\u2ab3",precsim:"\u227e",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2ab9",prnE:"\u2ab5",prnsim:"\u22e8",prod:"\u220f",Product:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",Proportional:"\u221d",
Proportion:"\u2237",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",Pscr:"\ud835\udcab",pscr:"\ud835\udcc5",Psi:"\u03a8",psi:"\u03c8",puncsp:"\u2008",Qfr:"\ud835\udd14",qfr:"\ud835\udd2e",qint:"\u2a0c",qopf:"\ud835\udd62",Qopf:"\u211a",qprime:"\u2057",Qscr:"\ud835\udcac",qscr:"\ud835\udcc6",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",quot:'"',QUOT:'"',rAarr:"\u21db",race:"\u223d\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221a",raemptyv:"\u29b3",rang:"\u27e9",Rang:"\u27eb",
rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raquo:"\u00bb",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21a0",rArr:"\u21d2",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21a3",rarrw:"\u219d",ratail:"\u291a",rAtail:"\u291c",ratio:"\u2236",rationals:"\u211a",rbarr:"\u290d",rBarr:"\u290f",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",Rcaron:"\u0158",
rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",Re:"\u211c",rect:"\u25ad",reg:"\u00ae",REG:"\u00ae",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",rfisht:"\u297d",rfloor:"\u230b",rfr:"\ud835\udd2f",Rfr:"\u211c",rHar:"\u2964",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",Rho:"\u03a1",
rho:"\u03c1",rhov:"\u03f1",RightAngleBracket:"\u27e9",RightArrowBar:"\u21e5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21d2",RightArrowLeftArrow:"\u21c4",rightarrowtail:"\u21a3",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVectorBar:"\u2955",RightDownVector:"\u21c2",RightFloor:"\u230b",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",RightTeeArrow:"\u21a6",
RightTee:"\u22a2",RightTeeVector:"\u295b",rightthreetimes:"\u22cc",RightTriangleBar:"\u29d0",RightTriangle:"\u22b3",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVectorBar:"\u2954",RightUpVector:"\u21be",RightVectorBar:"\u2953",RightVector:"\u21c0",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoustache:"\u23b1",rmoust:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",ropf:"\ud835\udd63",
Ropf:"\u211d",roplus:"\u2a2e",rotimes:"\u2a35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",Rrightarrow:"\u21db",rsaquo:"\u203a",rscr:"\ud835\udcc7",Rscr:"\u211b",rsh:"\u21b1",Rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",RuleDelayed:"\u29f4",ruluhar:"\u2968",rx:"\u211e",Sacute:"\u015a",sacute:"\u015b",sbquo:"\u201a",scap:"\u2ab8",Scaron:"\u0160",scaron:"\u0161",
Sc:"\u2abc",sc:"\u227b",sccue:"\u227d",sce:"\u2ab0",scE:"\u2ab4",Scedil:"\u015e",scedil:"\u015f",Scirc:"\u015c",scirc:"\u015d",scnap:"\u2aba",scnE:"\u2ab6",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",Scy:"\u0421",scy:"\u0441",sdotb:"\u22a1",sdot:"\u22c5",sdote:"\u2a66",searhk:"\u2925",searr:"\u2198",seArr:"\u21d8",searrow:"\u2198",sect:"\u00a7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\ud835\udd16",sfr:"\ud835\udd30",sfrown:"\u2322",sharp:"\u266f",SHCHcy:"\u0429",
shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\u00ad",Sigma:"\u03a3",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",
smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",SOFTcy:"\u042c",softcy:"\u044c",solbar:"\u233f",solb:"\u29c4",sol:"/",Sopf:"\ud835\udd4a",sopf:"\ud835\udd64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",Sqrt:"\u221a",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25a1",Square:"\u25a1",SquareIntersection:"\u2293",
SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25aa",squ:"\u25a1",squf:"\u25aa",srarr:"\u2192",Sscr:"\ud835\udcae",sscr:"\ud835\udcc8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",Star:"\u22c6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\u00af",sub:"\u2282",Sub:"\u22d0",subdot:"\u2abd",subE:"\u2ac5",sube:"\u2286",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subne:"\u228a",
subplus:"\u2abf",subrarr:"\u2979",subset:"\u2282",Subset:"\u22d0",subseteq:"\u2286",subseteqq:"\u2ac5",SubsetEqual:"\u2286",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succapprox:"\u2ab8",succ:"\u227b",succcurlyeq:"\u227d",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",SuchThat:"\u220b",sum:"\u2211",Sum:"\u2211",sung:"\u266a",
sup1:"\u00b9",sup2:"\u00b2",sup3:"\u00b3",sup:"\u2283",Sup:"\u22d1",supdot:"\u2abe",supdsub:"\u2ad8",supE:"\u2ac6",supe:"\u2287",supedot:"\u2ac4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supne:"\u228b",supplus:"\u2ac0",supset:"\u2283",Supset:"\u22d1",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21d9",
swarrow:"\u2199",swnwar:"\u292a",szlig:"\u00df",Tab:"\t",target:"\u2316",Tau:"\u03a4",tau:"\u03c4",tbrk:"\u23b4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20db",telrec:"\u2315",Tfr:"\ud835\udd17",tfr:"\ud835\udd31",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",ThickSpace:"\u205f\u200a",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",
thksim:"\u223c",THORN:"\u00de",thorn:"\u00fe",tilde:"\u02dc",Tilde:"\u223c",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2a31",timesb:"\u22a0",times:"\u00d7",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",topbot:"\u2336",topcir:"\u2af1",top:"\u22a4",Topf:"\ud835\udd4b",topf:"\ud835\udd65",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",
trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",TripleDot:"\u20db",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",Tscr:"\ud835\udcaf",tscr:"\ud835\udcc9",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040b",tshcy:"\u045b",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",Uacute:"\u00da",uacute:"\u00fa",uarr:"\u2191",Uarr:"\u219f",uArr:"\u21d1",Uarrocir:"\u2949",Ubrcy:"\u040e",ubrcy:"\u045e",Ubreve:"\u016c",ubreve:"\u016d",
Ucirc:"\u00db",ucirc:"\u00fb",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21c5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296e",ufisht:"\u297e",Ufr:"\ud835\udd18",ufr:"\ud835\udd32",Ugrave:"\u00d9",ugrave:"\u00f9",uHar:"\u2963",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",Umacr:"\u016a",umacr:"\u016b",uml:"\u00a8",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",Uogon:"\u0172",
uogon:"\u0173",Uopf:"\ud835\udd4c",uopf:"\ud835\udd66",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21d1",UpArrowDownArrow:"\u21c5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21d5",UpEquilibrium:"\u296e",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03c5",Upsi:"\u03d2",upsih:"\u03d2",Upsilon:"\u03a5",upsilon:"\u03c5",UpTeeArrow:"\u21a5",UpTee:"\u22a5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",
urcrop:"\u230e",Uring:"\u016e",uring:"\u016f",urtri:"\u25f9",Uscr:"\ud835\udcb0",uscr:"\ud835\udcca",utdot:"\u22f0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",Uuml:"\u00dc",uuml:"\u00fc",uwangle:"\u29a7",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",varr:"\u2195",vArr:"\u21d5",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",
varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",vBar:"\u2ae8",Vbar:"\u2aeb",vBarv:"\u2ae9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22a2",vDash:"\u22a8",Vdash:"\u22a9",VDash:"\u22ab",Vdashl:"\u2ae6",veebar:"\u22bb",vee:"\u2228",Vee:"\u22c1",veeeq:"\u225a",vellip:"\u22ee",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",Vfr:"\ud835\udd19",vfr:"\ud835\udd33",
vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",Vopf:"\ud835\udd4d",vopf:"\ud835\udd67",vprop:"\u221d",vrtri:"\u22b3",Vscr:"\ud835\udcb1",vscr:"\ud835\udccb",vsubnE:"\u2acb\ufe00",vsubne:"\u228a\ufe00",vsupnE:"\u2acc\ufe00",vsupne:"\u228b\ufe00",Vvdash:"\u22aa",vzigzag:"\u299a",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2a5f",wedge:"\u2227",Wedge:"\u22c0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\ud835\udd1a",wfr:"\ud835\udd34",Wopf:"\ud835\udd4e",wopf:"\ud835\udd68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",
Wscr:"\ud835\udcb2",wscr:"\ud835\udccc",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",Xfr:"\ud835\udd1b",xfr:"\ud835\udd35",xharr:"\u27f7",xhArr:"\u27fa",Xi:"\u039e",xi:"\u03be",xlarr:"\u27f5",xlArr:"\u27f8",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",Xopf:"\ud835\udd4f",xopf:"\ud835\udd69",xoplus:"\u2a01",xotime:"\u2a02",xrarr:"\u27f6",xrArr:"\u27f9",Xscr:"\ud835\udcb3",xscr:"\ud835\udccd",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",Yacute:"\u00dd",yacute:"\u00fd",
YAcy:"\u042f",yacy:"\u044f",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042b",ycy:"\u044b",yen:"\u00a5",Yfr:"\ud835\udd1c",yfr:"\ud835\udd36",YIcy:"\u0407",yicy:"\u0457",Yopf:"\ud835\udd50",yopf:"\ud835\udd6a",Yscr:"\ud835\udcb4",yscr:"\ud835\udcce",YUcy:"\u042e",yucy:"\u044e",yuml:"\u00ff",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017a",Zcaron:"\u017d",zcaron:"\u017e",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017b",zdot:"\u017c",zeetrf:"\u2128",ZeroWidthSpace:"\u200b",Zeta:"\u0396",zeta:"\u03b6",zfr:"\ud835\udd37",
Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21dd",zopf:"\ud835\udd6b",Zopf:"\u2124",Zscr:"\ud835\udcb5",zscr:"\ud835\udccf",zwj:"\u200d",zwnj:"\u200c"};var itb={Aacute:"\u00c1",aacute:"\u00e1",Acirc:"\u00c2",acirc:"\u00e2",acute:"\u00b4",AElig:"\u00c6",aelig:"\u00e6",Agrave:"\u00c0",agrave:"\u00e0",amp:"&",AMP:"&",Aring:"\u00c5",aring:"\u00e5",Atilde:"\u00c3",atilde:"\u00e3",Auml:"\u00c4",auml:"\u00e4",brvbar:"\u00a6",Ccedil:"\u00c7",ccedil:"\u00e7",cedil:"\u00b8",cent:"\u00a2",copy:"\u00a9",COPY:"\u00a9",curren:"\u00a4",deg:"\u00b0",divide:"\u00f7",Eacute:"\u00c9",eacute:"\u00e9",Ecirc:"\u00ca",ecirc:"\u00ea",Egrave:"\u00c8",egrave:"\u00e8",ETH:"\u00d0",
eth:"\u00f0",Euml:"\u00cb",euml:"\u00eb",frac12:"\u00bd",frac14:"\u00bc",frac34:"\u00be",gt:">",GT:">",Iacute:"\u00cd",iacute:"\u00ed",Icirc:"\u00ce",icirc:"\u00ee",iexcl:"\u00a1",Igrave:"\u00cc",igrave:"\u00ec",iquest:"\u00bf",Iuml:"\u00cf",iuml:"\u00ef",laquo:"\u00ab",lt:"<",LT:"<",macr:"\u00af",micro:"\u00b5",middot:"\u00b7",nbsp:"\u00a0",not:"\u00ac",Ntilde:"\u00d1",ntilde:"\u00f1",Oacute:"\u00d3",oacute:"\u00f3",Ocirc:"\u00d4",ocirc:"\u00f4",Ograve:"\u00d2",ograve:"\u00f2",ordf:"\u00aa",ordm:"\u00ba",
Oslash:"\u00d8",oslash:"\u00f8",Otilde:"\u00d5",otilde:"\u00f5",Ouml:"\u00d6",ouml:"\u00f6",para:"\u00b6",plusmn:"\u00b1",pound:"\u00a3",quot:'"',QUOT:'"',raquo:"\u00bb",reg:"\u00ae",REG:"\u00ae",sect:"\u00a7",shy:"\u00ad",sup1:"\u00b9",sup2:"\u00b2",sup3:"\u00b3",szlig:"\u00df",THORN:"\u00de",thorn:"\u00fe",times:"\u00d7",Uacute:"\u00da",uacute:"\u00fa",Ucirc:"\u00db",ucirc:"\u00fb",Ugrave:"\u00d9",ugrave:"\u00f9",uml:"\u00a8",Uuml:"\u00dc",uuml:"\u00fc",Yacute:"\u00dd",yacute:"\u00fd",yen:"\u00a5",
yuml:"\u00ff"};Object.keys({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}).join("|");Object.keys(wya).join("|");var jtb=function(){function a(m){m.substr(-1)!==";"&&(m+=";");return k(m)}
for(var b=Object.keys(itb).sort(vya),c=Object.keys(wya).sort(vya),d=0,e=0;d<c.length;d++)b[e]===c[d]?(c[d]+=";?",e++):c[d]+=";";var g=new RegExp("&(?:"+c.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),k=xya();return function(m){return String(m).replace(g,a)}}();/*

 Copyright (c) 2015 Vitaly Puzrin, Alex Kocharin.

 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.
*/
var ktb={};var ltb=RegExp("^(?:<[A-Za-z][A-Za-z0-9-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*/?>|</[A-Za-z][A-Za-z0-9-]*\\s*[>]|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|[<][?].*?[?][>]|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)","i"),mtb=/[\\&]/,ntb=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),otb=RegExp('[&<>"]',"g"),ptb=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),qtb=function(a){return a.charCodeAt(0)===92?a.charAt(1):jtb(a)},rtb=function(a){return mtb.test(a)?a.replace(ntb,qtb):a},stb=function(a){try{var b,c="";
if(typeof e!=="string"){var d=e;var e=";/?:@&=+$,-_.!~*'()#"}typeof d==="undefined"&&(d=!0);var g,k=ktb[e];if(k)var m=k;else{k=ktb[e]=[];for(g=0;g<128;g++){var n=String.fromCharCode(g);/^[0-9a-z]$/i.test(n)?k.push(n):k.push("%"+("0"+g.toString(16).toUpperCase()).slice(-2))}for(g=0;g<e.length;g++)k[e.charCodeAt(g)]=e[g];m=k}var r=0;for(b=a.length;r<b;r++){var t=a.charCodeAt(r);if(d&&t===37&&r+2<b&&/^[0-9a-f]{2}$/i.test(a.slice(r+1,r+3)))c+=a.slice(r,r+3),r+=2;else if(t<128)c+=m[t];else if(t>=55296&&
t<=57343){if(t>=55296&&t<=56319&&r+1<b){var u=a.charCodeAt(r+1);if(u>=56320&&u<=57343){c+=encodeURIComponent(a[r]+a[r+1]);r++;continue}}c+="%EF%BF%BD"}else c+=encodeURIComponent(a[r])}return c}catch(x){return a}},ttb=function(a){switch(a){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return a}},vD=function(a,b){return otb.test(a)?b?a.replace(ptb,ttb):a.replace(otb,ttb):a};/*

 lib/from-code-point.js is derived from a polyfill
 Copyright Mathias Bynens <http://mathiasbynens.be/>

 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.
 http://mths.be/fromcodepoint v0.2.1 by @mathias */
var wD;if(String.fromCodePoint)wD=function(a){try{return String.fromCodePoint(a)}catch(b){if(b instanceof RangeError)return String.fromCharCode(65533);throw b;}};
else{var utb=String.fromCharCode,vtb=Math.floor;wD=function(){var a=[],b=-1,c=arguments.length;if(!c)return"";for(var d="";++b<c;){var e=Number(arguments[b]);if(!isFinite(e)||e<0||e>1114111||vtb(e)!==e)return String.fromCharCode(65533);if(e<=65535)a.push(e);else{e-=65536;var g=(e>>10)+55296;e=e%1024+56320;a.push(g,e)}if(b+1===c||a.length>16384)d+=utb.apply(null,a),a.length=0}return d}};var wtb=function(a){this.root=this.current=a;this.entering=!0};
wtb.prototype.next=function(){var a=this.current,b=this.entering;if(a===null)return null;a:switch(a._type){case "document":case "block_quote":case "list":case "item":case "paragraph":case "heading":case "emph":case "strong":case "link":case "image":case "custom_inline":case "custom_block":case "table":case "row":case "th":case "td":var c=!0;break a;default:c=!1}b&&c?a._firstChild?(this.current=a._firstChild,this.entering=!0):this.entering=!1:a===this.root?this.current=null:a._next===null?(this.current=
a._parent,this.entering=!1):(this.current=a._next,this.entering=!0);return{entering:b,node:a}};
var jn=function(a,b){this._type=a;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=b;this._lastLineBlank=!1;this._open=!0;this._literal=this._string_content=null;this._listData={};this._title=this._destination=this._info=null;this._isFenced=!1;this._fenceChar=null;this._fenceLength=0;this._onExit=this._onEnter=this._level=this._fenceOffset=null};
jn.prototype.appendChild=function(a){xD(a);a._parent=this;this._lastChild?(this._lastChild._next=a,a._prev=this._lastChild):this._firstChild=a;this._lastChild=a};
var xD=function(a){a._prev?a._prev._next=a._next:a._parent&&(a._parent._firstChild=a._next);a._next?a._next._prev=a._prev:a._parent&&(a._parent._lastChild=a._prev);a._parent=null;a._next=null;a._prev=null},xtb=function(a,b){xD(b);
b._next=a._next;b._next&&(b._next._prev=b);b._prev=a;a._next=b;b._parent=a._parent;b._next||(b._parent._lastChild=b)};
jn.prototype.insertBefore=function(a){xD(a);a._prev=this._prev;a._prev&&(a._prev._next=a);a._next=this;this._prev=a;a._parent=this._parent;a._prev||(a._parent._firstChild=a)};
_.Um.Object.defineProperties(jn.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this._type}},
firstChild:{configurable:!0,enumerable:!0,get:function(){return this._firstChild}},
lastChild:{configurable:!0,enumerable:!0,get:function(){return this._lastChild}},
next:{configurable:!0,enumerable:!0,get:function(){return this._next}},
prev:{configurable:!0,enumerable:!0,get:function(){return this._prev}},
parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},
sourcepos:{configurable:!0,enumerable:!0,get:function(){return this._sourcepos}},
literal:{configurable:!0,enumerable:!0,get:function(){return this._literal},
set:function(a){this._literal=a}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(a){this._destination=a}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(a){this._title=a}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(a){this._info=a}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(a){this._level=a}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(a){this._listData.type=a}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(a){this._listData.tight=a}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(a){this._listData.start=a}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(a){this._onEnter=a}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(a){this._onExit=a}}});var yya=/[ \t\r\n]+|[A-Z\xB5\xC0-\xD6\xD8-\xDF\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u0149\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u017F\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C5\u01C7\u01C8\u01CA\u01CB\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F0-\u01F2\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0345\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03AB\u03B0\u03C2\u03CF-\u03D1\u03D5\u03D6\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F0\u03F1\u03F4\u03F5\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u0587\u10A0-\u10C5\u10C7\u10CD\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E96-\u1E9B\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F50\u1F52\u1F54\u1F56\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1F80-\u1FAF\u1FB2-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD2\u1FD3\u1FD6-\u1FDB\u1FE2-\u1FE4\u1FE6-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2126\u212A\u212B\u2132\u2160-\u216F\u2183\u24B6-\u24CF\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0\uA7B1\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A]|\uD801[\uDC00-\uDC27]|\uD806[\uDCA0-\uDCBF]/g,
zya={A:"a",B:"b",C:"c",D:"d",E:"e",F:"f",G:"g",H:"h",I:"i",J:"j",K:"k",L:"l",M:"m",N:"n",O:"o",P:"p",Q:"q",R:"r",S:"s",T:"t",U:"u",V:"v",W:"w",X:"x",Y:"y",Z:"z","\u00b5":"\u03bc","\u00c0":"\u00e0","\u00c1":"\u00e1","\u00c2":"\u00e2","\u00c3":"\u00e3","\u00c4":"\u00e4","\u00c5":"\u00e5","\u00c6":"\u00e6","\u00c7":"\u00e7","\u00c8":"\u00e8","\u00c9":"\u00e9","\u00ca":"\u00ea","\u00cb":"\u00eb","\u00cc":"\u00ec","\u00cd":"\u00ed","\u00ce":"\u00ee","\u00cf":"\u00ef","\u00d0":"\u00f0","\u00d1":"\u00f1",
"\u00d2":"\u00f2","\u00d3":"\u00f3","\u00d4":"\u00f4","\u00d5":"\u00f5","\u00d6":"\u00f6","\u00d8":"\u00f8","\u00d9":"\u00f9","\u00da":"\u00fa","\u00db":"\u00fb","\u00dc":"\u00fc","\u00dd":"\u00fd","\u00de":"\u00fe","\u0100":"\u0101","\u0102":"\u0103","\u0104":"\u0105","\u0106":"\u0107","\u0108":"\u0109","\u010a":"\u010b","\u010c":"\u010d","\u010e":"\u010f","\u0110":"\u0111","\u0112":"\u0113","\u0114":"\u0115","\u0116":"\u0117","\u0118":"\u0119","\u011a":"\u011b","\u011c":"\u011d","\u011e":"\u011f",
"\u0120":"\u0121","\u0122":"\u0123","\u0124":"\u0125","\u0126":"\u0127","\u0128":"\u0129","\u012a":"\u012b","\u012c":"\u012d","\u012e":"\u012f","\u0132":"\u0133","\u0134":"\u0135","\u0136":"\u0137","\u0139":"\u013a","\u013b":"\u013c","\u013d":"\u013e","\u013f":"\u0140","\u0141":"\u0142","\u0143":"\u0144","\u0145":"\u0146","\u0147":"\u0148","\u014a":"\u014b","\u014c":"\u014d","\u014e":"\u014f","\u0150":"\u0151","\u0152":"\u0153","\u0154":"\u0155","\u0156":"\u0157","\u0158":"\u0159","\u015a":"\u015b",
"\u015c":"\u015d","\u015e":"\u015f","\u0160":"\u0161","\u0162":"\u0163","\u0164":"\u0165","\u0166":"\u0167","\u0168":"\u0169","\u016a":"\u016b","\u016c":"\u016d","\u016e":"\u016f","\u0170":"\u0171","\u0172":"\u0173","\u0174":"\u0175","\u0176":"\u0177","\u0178":"\u00ff","\u0179":"\u017a","\u017b":"\u017c","\u017d":"\u017e","\u017f":"s","\u0181":"\u0253","\u0182":"\u0183","\u0184":"\u0185","\u0186":"\u0254","\u0187":"\u0188","\u0189":"\u0256","\u018a":"\u0257","\u018b":"\u018c","\u018e":"\u01dd","\u018f":"\u0259",
"\u0190":"\u025b","\u0191":"\u0192","\u0193":"\u0260","\u0194":"\u0263","\u0196":"\u0269","\u0197":"\u0268","\u0198":"\u0199","\u019c":"\u026f","\u019d":"\u0272","\u019f":"\u0275","\u01a0":"\u01a1","\u01a2":"\u01a3","\u01a4":"\u01a5","\u01a6":"\u0280","\u01a7":"\u01a8","\u01a9":"\u0283","\u01ac":"\u01ad","\u01ae":"\u0288","\u01af":"\u01b0","\u01b1":"\u028a","\u01b2":"\u028b","\u01b3":"\u01b4","\u01b5":"\u01b6","\u01b7":"\u0292","\u01b8":"\u01b9","\u01bc":"\u01bd","\u01c4":"\u01c6","\u01c5":"\u01c6",
"\u01c7":"\u01c9","\u01c8":"\u01c9","\u01ca":"\u01cc","\u01cb":"\u01cc","\u01cd":"\u01ce","\u01cf":"\u01d0","\u01d1":"\u01d2","\u01d3":"\u01d4","\u01d5":"\u01d6","\u01d7":"\u01d8","\u01d9":"\u01da","\u01db":"\u01dc","\u01de":"\u01df","\u01e0":"\u01e1","\u01e2":"\u01e3","\u01e4":"\u01e5","\u01e6":"\u01e7","\u01e8":"\u01e9","\u01ea":"\u01eb","\u01ec":"\u01ed","\u01ee":"\u01ef","\u01f1":"\u01f3","\u01f2":"\u01f3","\u01f4":"\u01f5","\u01f6":"\u0195","\u01f7":"\u01bf","\u01f8":"\u01f9","\u01fa":"\u01fb",
"\u01fc":"\u01fd","\u01fe":"\u01ff","\u0200":"\u0201","\u0202":"\u0203","\u0204":"\u0205","\u0206":"\u0207","\u0208":"\u0209","\u020a":"\u020b","\u020c":"\u020d","\u020e":"\u020f","\u0210":"\u0211","\u0212":"\u0213","\u0214":"\u0215","\u0216":"\u0217","\u0218":"\u0219","\u021a":"\u021b","\u021c":"\u021d","\u021e":"\u021f","\u0220":"\u019e","\u0222":"\u0223","\u0224":"\u0225","\u0226":"\u0227","\u0228":"\u0229","\u022a":"\u022b","\u022c":"\u022d","\u022e":"\u022f","\u0230":"\u0231","\u0232":"\u0233",
"\u023a":"\u2c65","\u023b":"\u023c","\u023d":"\u019a","\u023e":"\u2c66","\u0241":"\u0242","\u0243":"\u0180","\u0244":"\u0289","\u0245":"\u028c","\u0246":"\u0247","\u0248":"\u0249","\u024a":"\u024b","\u024c":"\u024d","\u024e":"\u024f","\u0345":"\u03b9","\u0370":"\u0371","\u0372":"\u0373","\u0376":"\u0377","\u037f":"\u03f3","\u0386":"\u03ac","\u0388":"\u03ad","\u0389":"\u03ae","\u038a":"\u03af","\u038c":"\u03cc","\u038e":"\u03cd","\u038f":"\u03ce","\u0391":"\u03b1","\u0392":"\u03b2","\u0393":"\u03b3",
"\u0394":"\u03b4","\u0395":"\u03b5","\u0396":"\u03b6","\u0397":"\u03b7","\u0398":"\u03b8","\u0399":"\u03b9","\u039a":"\u03ba","\u039b":"\u03bb","\u039c":"\u03bc","\u039d":"\u03bd","\u039e":"\u03be","\u039f":"\u03bf","\u03a0":"\u03c0","\u03a1":"\u03c1","\u03a3":"\u03c3","\u03a4":"\u03c4","\u03a5":"\u03c5","\u03a6":"\u03c6","\u03a7":"\u03c7","\u03a8":"\u03c8","\u03a9":"\u03c9","\u03aa":"\u03ca","\u03ab":"\u03cb","\u03c2":"\u03c3","\u03cf":"\u03d7","\u03d0":"\u03b2","\u03d1":"\u03b8","\u03d5":"\u03c6",
"\u03d6":"\u03c0","\u03d8":"\u03d9","\u03da":"\u03db","\u03dc":"\u03dd","\u03de":"\u03df","\u03e0":"\u03e1","\u03e2":"\u03e3","\u03e4":"\u03e5","\u03e6":"\u03e7","\u03e8":"\u03e9","\u03ea":"\u03eb","\u03ec":"\u03ed","\u03ee":"\u03ef","\u03f0":"\u03ba","\u03f1":"\u03c1","\u03f4":"\u03b8","\u03f5":"\u03b5","\u03f7":"\u03f8","\u03f9":"\u03f2","\u03fa":"\u03fb","\u03fd":"\u037b","\u03fe":"\u037c","\u03ff":"\u037d","\u0400":"\u0450","\u0401":"\u0451","\u0402":"\u0452","\u0403":"\u0453","\u0404":"\u0454",
"\u0405":"\u0455","\u0406":"\u0456","\u0407":"\u0457","\u0408":"\u0458","\u0409":"\u0459","\u040a":"\u045a","\u040b":"\u045b","\u040c":"\u045c","\u040d":"\u045d","\u040e":"\u045e","\u040f":"\u045f","\u0410":"\u0430","\u0411":"\u0431","\u0412":"\u0432","\u0413":"\u0433","\u0414":"\u0434","\u0415":"\u0435","\u0416":"\u0436","\u0417":"\u0437","\u0418":"\u0438","\u0419":"\u0439","\u041a":"\u043a","\u041b":"\u043b","\u041c":"\u043c","\u041d":"\u043d","\u041e":"\u043e","\u041f":"\u043f","\u0420":"\u0440",
"\u0421":"\u0441","\u0422":"\u0442","\u0423":"\u0443","\u0424":"\u0444","\u0425":"\u0445","\u0426":"\u0446","\u0427":"\u0447","\u0428":"\u0448","\u0429":"\u0449","\u042a":"\u044a","\u042b":"\u044b","\u042c":"\u044c","\u042d":"\u044d","\u042e":"\u044e","\u042f":"\u044f","\u0460":"\u0461","\u0462":"\u0463","\u0464":"\u0465","\u0466":"\u0467","\u0468":"\u0469","\u046a":"\u046b","\u046c":"\u046d","\u046e":"\u046f","\u0470":"\u0471","\u0472":"\u0473","\u0474":"\u0475","\u0476":"\u0477","\u0478":"\u0479",
"\u047a":"\u047b","\u047c":"\u047d","\u047e":"\u047f","\u0480":"\u0481","\u048a":"\u048b","\u048c":"\u048d","\u048e":"\u048f","\u0490":"\u0491","\u0492":"\u0493","\u0494":"\u0495","\u0496":"\u0497","\u0498":"\u0499","\u049a":"\u049b","\u049c":"\u049d","\u049e":"\u049f","\u04a0":"\u04a1","\u04a2":"\u04a3","\u04a4":"\u04a5","\u04a6":"\u04a7","\u04a8":"\u04a9","\u04aa":"\u04ab","\u04ac":"\u04ad","\u04ae":"\u04af","\u04b0":"\u04b1","\u04b2":"\u04b3","\u04b4":"\u04b5","\u04b6":"\u04b7","\u04b8":"\u04b9",
"\u04ba":"\u04bb","\u04bc":"\u04bd","\u04be":"\u04bf","\u04c0":"\u04cf","\u04c1":"\u04c2","\u04c3":"\u04c4","\u04c5":"\u04c6","\u04c7":"\u04c8","\u04c9":"\u04ca","\u04cb":"\u04cc","\u04cd":"\u04ce","\u04d0":"\u04d1","\u04d2":"\u04d3","\u04d4":"\u04d5","\u04d6":"\u04d7","\u04d8":"\u04d9","\u04da":"\u04db","\u04dc":"\u04dd","\u04de":"\u04df","\u04e0":"\u04e1","\u04e2":"\u04e3","\u04e4":"\u04e5","\u04e6":"\u04e7","\u04e8":"\u04e9","\u04ea":"\u04eb","\u04ec":"\u04ed","\u04ee":"\u04ef","\u04f0":"\u04f1",
"\u04f2":"\u04f3","\u04f4":"\u04f5","\u04f6":"\u04f7","\u04f8":"\u04f9","\u04fa":"\u04fb","\u04fc":"\u04fd","\u04fe":"\u04ff","\u0500":"\u0501","\u0502":"\u0503","\u0504":"\u0505","\u0506":"\u0507","\u0508":"\u0509","\u050a":"\u050b","\u050c":"\u050d","\u050e":"\u050f","\u0510":"\u0511","\u0512":"\u0513","\u0514":"\u0515","\u0516":"\u0517","\u0518":"\u0519","\u051a":"\u051b","\u051c":"\u051d","\u051e":"\u051f","\u0520":"\u0521","\u0522":"\u0523","\u0524":"\u0525","\u0526":"\u0527","\u0528":"\u0529",
"\u052a":"\u052b","\u052c":"\u052d","\u052e":"\u052f","\u0531":"\u0561","\u0532":"\u0562","\u0533":"\u0563","\u0534":"\u0564","\u0535":"\u0565","\u0536":"\u0566","\u0537":"\u0567","\u0538":"\u0568","\u0539":"\u0569","\u053a":"\u056a","\u053b":"\u056b","\u053c":"\u056c","\u053d":"\u056d","\u053e":"\u056e","\u053f":"\u056f","\u0540":"\u0570","\u0541":"\u0571","\u0542":"\u0572","\u0543":"\u0573","\u0544":"\u0574","\u0545":"\u0575","\u0546":"\u0576","\u0547":"\u0577","\u0548":"\u0578","\u0549":"\u0579",
"\u054a":"\u057a","\u054b":"\u057b","\u054c":"\u057c","\u054d":"\u057d","\u054e":"\u057e","\u054f":"\u057f","\u0550":"\u0580","\u0551":"\u0581","\u0552":"\u0582","\u0553":"\u0583","\u0554":"\u0584","\u0555":"\u0585","\u0556":"\u0586","\u10a0":"\u2d00","\u10a1":"\u2d01","\u10a2":"\u2d02","\u10a3":"\u2d03","\u10a4":"\u2d04","\u10a5":"\u2d05","\u10a6":"\u2d06","\u10a7":"\u2d07","\u10a8":"\u2d08","\u10a9":"\u2d09","\u10aa":"\u2d0a","\u10ab":"\u2d0b","\u10ac":"\u2d0c","\u10ad":"\u2d0d","\u10ae":"\u2d0e",
"\u10af":"\u2d0f","\u10b0":"\u2d10","\u10b1":"\u2d11","\u10b2":"\u2d12","\u10b3":"\u2d13","\u10b4":"\u2d14","\u10b5":"\u2d15","\u10b6":"\u2d16","\u10b7":"\u2d17","\u10b8":"\u2d18","\u10b9":"\u2d19","\u10ba":"\u2d1a","\u10bb":"\u2d1b","\u10bc":"\u2d1c","\u10bd":"\u2d1d","\u10be":"\u2d1e","\u10bf":"\u2d1f","\u10c0":"\u2d20","\u10c1":"\u2d21","\u10c2":"\u2d22","\u10c3":"\u2d23","\u10c4":"\u2d24","\u10c5":"\u2d25","\u10c7":"\u2d27","\u10cd":"\u2d2d","\u1e00":"\u1e01","\u1e02":"\u1e03","\u1e04":"\u1e05",
"\u1e06":"\u1e07","\u1e08":"\u1e09","\u1e0a":"\u1e0b","\u1e0c":"\u1e0d","\u1e0e":"\u1e0f","\u1e10":"\u1e11","\u1e12":"\u1e13","\u1e14":"\u1e15","\u1e16":"\u1e17","\u1e18":"\u1e19","\u1e1a":"\u1e1b","\u1e1c":"\u1e1d","\u1e1e":"\u1e1f","\u1e20":"\u1e21","\u1e22":"\u1e23","\u1e24":"\u1e25","\u1e26":"\u1e27","\u1e28":"\u1e29","\u1e2a":"\u1e2b","\u1e2c":"\u1e2d","\u1e2e":"\u1e2f","\u1e30":"\u1e31","\u1e32":"\u1e33","\u1e34":"\u1e35","\u1e36":"\u1e37","\u1e38":"\u1e39","\u1e3a":"\u1e3b","\u1e3c":"\u1e3d",
"\u1e3e":"\u1e3f","\u1e40":"\u1e41","\u1e42":"\u1e43","\u1e44":"\u1e45","\u1e46":"\u1e47","\u1e48":"\u1e49","\u1e4a":"\u1e4b","\u1e4c":"\u1e4d","\u1e4e":"\u1e4f","\u1e50":"\u1e51","\u1e52":"\u1e53","\u1e54":"\u1e55","\u1e56":"\u1e57","\u1e58":"\u1e59","\u1e5a":"\u1e5b","\u1e5c":"\u1e5d","\u1e5e":"\u1e5f","\u1e60":"\u1e61","\u1e62":"\u1e63","\u1e64":"\u1e65","\u1e66":"\u1e67","\u1e68":"\u1e69","\u1e6a":"\u1e6b","\u1e6c":"\u1e6d","\u1e6e":"\u1e6f","\u1e70":"\u1e71","\u1e72":"\u1e73","\u1e74":"\u1e75",
"\u1e76":"\u1e77","\u1e78":"\u1e79","\u1e7a":"\u1e7b","\u1e7c":"\u1e7d","\u1e7e":"\u1e7f","\u1e80":"\u1e81","\u1e82":"\u1e83","\u1e84":"\u1e85","\u1e86":"\u1e87","\u1e88":"\u1e89","\u1e8a":"\u1e8b","\u1e8c":"\u1e8d","\u1e8e":"\u1e8f","\u1e90":"\u1e91","\u1e92":"\u1e93","\u1e94":"\u1e95","\u1e9b":"\u1e61","\u1ea0":"\u1ea1","\u1ea2":"\u1ea3","\u1ea4":"\u1ea5","\u1ea6":"\u1ea7","\u1ea8":"\u1ea9","\u1eaa":"\u1eab","\u1eac":"\u1ead","\u1eae":"\u1eaf","\u1eb0":"\u1eb1","\u1eb2":"\u1eb3","\u1eb4":"\u1eb5",
"\u1eb6":"\u1eb7","\u1eb8":"\u1eb9","\u1eba":"\u1ebb","\u1ebc":"\u1ebd","\u1ebe":"\u1ebf","\u1ec0":"\u1ec1","\u1ec2":"\u1ec3","\u1ec4":"\u1ec5","\u1ec6":"\u1ec7","\u1ec8":"\u1ec9","\u1eca":"\u1ecb","\u1ecc":"\u1ecd","\u1ece":"\u1ecf","\u1ed0":"\u1ed1","\u1ed2":"\u1ed3","\u1ed4":"\u1ed5","\u1ed6":"\u1ed7","\u1ed8":"\u1ed9","\u1eda":"\u1edb","\u1edc":"\u1edd","\u1ede":"\u1edf","\u1ee0":"\u1ee1","\u1ee2":"\u1ee3","\u1ee4":"\u1ee5","\u1ee6":"\u1ee7","\u1ee8":"\u1ee9","\u1eea":"\u1eeb","\u1eec":"\u1eed",
"\u1eee":"\u1eef","\u1ef0":"\u1ef1","\u1ef2":"\u1ef3","\u1ef4":"\u1ef5","\u1ef6":"\u1ef7","\u1ef8":"\u1ef9","\u1efa":"\u1efb","\u1efc":"\u1efd","\u1efe":"\u1eff","\u1f08":"\u1f00","\u1f09":"\u1f01","\u1f0a":"\u1f02","\u1f0b":"\u1f03","\u1f0c":"\u1f04","\u1f0d":"\u1f05","\u1f0e":"\u1f06","\u1f0f":"\u1f07","\u1f18":"\u1f10","\u1f19":"\u1f11","\u1f1a":"\u1f12","\u1f1b":"\u1f13","\u1f1c":"\u1f14","\u1f1d":"\u1f15","\u1f28":"\u1f20","\u1f29":"\u1f21","\u1f2a":"\u1f22","\u1f2b":"\u1f23","\u1f2c":"\u1f24",
"\u1f2d":"\u1f25","\u1f2e":"\u1f26","\u1f2f":"\u1f27","\u1f38":"\u1f30","\u1f39":"\u1f31","\u1f3a":"\u1f32","\u1f3b":"\u1f33","\u1f3c":"\u1f34","\u1f3d":"\u1f35","\u1f3e":"\u1f36","\u1f3f":"\u1f37","\u1f48":"\u1f40","\u1f49":"\u1f41","\u1f4a":"\u1f42","\u1f4b":"\u1f43","\u1f4c":"\u1f44","\u1f4d":"\u1f45","\u1f59":"\u1f51","\u1f5b":"\u1f53","\u1f5d":"\u1f55","\u1f5f":"\u1f57","\u1f68":"\u1f60","\u1f69":"\u1f61","\u1f6a":"\u1f62","\u1f6b":"\u1f63","\u1f6c":"\u1f64","\u1f6d":"\u1f65","\u1f6e":"\u1f66",
"\u1f6f":"\u1f67","\u1fb8":"\u1fb0","\u1fb9":"\u1fb1","\u1fba":"\u1f70","\u1fbb":"\u1f71","\u1fbe":"\u03b9","\u1fc8":"\u1f72","\u1fc9":"\u1f73","\u1fca":"\u1f74","\u1fcb":"\u1f75","\u1fd8":"\u1fd0","\u1fd9":"\u1fd1","\u1fda":"\u1f76","\u1fdb":"\u1f77","\u1fe8":"\u1fe0","\u1fe9":"\u1fe1","\u1fea":"\u1f7a","\u1feb":"\u1f7b","\u1fec":"\u1fe5","\u1ff8":"\u1f78","\u1ff9":"\u1f79","\u1ffa":"\u1f7c","\u1ffb":"\u1f7d","\u2126":"\u03c9","\u212a":"k","\u212b":"\u00e5","\u2132":"\u214e","\u2160":"\u2170","\u2161":"\u2171",
"\u2162":"\u2172","\u2163":"\u2173","\u2164":"\u2174","\u2165":"\u2175","\u2166":"\u2176","\u2167":"\u2177","\u2168":"\u2178","\u2169":"\u2179","\u216a":"\u217a","\u216b":"\u217b","\u216c":"\u217c","\u216d":"\u217d","\u216e":"\u217e","\u216f":"\u217f","\u2183":"\u2184","\u24b6":"\u24d0","\u24b7":"\u24d1","\u24b8":"\u24d2","\u24b9":"\u24d3","\u24ba":"\u24d4","\u24bb":"\u24d5","\u24bc":"\u24d6","\u24bd":"\u24d7","\u24be":"\u24d8","\u24bf":"\u24d9","\u24c0":"\u24da","\u24c1":"\u24db","\u24c2":"\u24dc",
"\u24c3":"\u24dd","\u24c4":"\u24de","\u24c5":"\u24df","\u24c6":"\u24e0","\u24c7":"\u24e1","\u24c8":"\u24e2","\u24c9":"\u24e3","\u24ca":"\u24e4","\u24cb":"\u24e5","\u24cc":"\u24e6","\u24cd":"\u24e7","\u24ce":"\u24e8","\u24cf":"\u24e9","\u2c00":"\u2c30","\u2c01":"\u2c31","\u2c02":"\u2c32","\u2c03":"\u2c33","\u2c04":"\u2c34","\u2c05":"\u2c35","\u2c06":"\u2c36","\u2c07":"\u2c37","\u2c08":"\u2c38","\u2c09":"\u2c39","\u2c0a":"\u2c3a","\u2c0b":"\u2c3b","\u2c0c":"\u2c3c","\u2c0d":"\u2c3d","\u2c0e":"\u2c3e",
"\u2c0f":"\u2c3f","\u2c10":"\u2c40","\u2c11":"\u2c41","\u2c12":"\u2c42","\u2c13":"\u2c43","\u2c14":"\u2c44","\u2c15":"\u2c45","\u2c16":"\u2c46","\u2c17":"\u2c47","\u2c18":"\u2c48","\u2c19":"\u2c49","\u2c1a":"\u2c4a","\u2c1b":"\u2c4b","\u2c1c":"\u2c4c","\u2c1d":"\u2c4d","\u2c1e":"\u2c4e","\u2c1f":"\u2c4f","\u2c20":"\u2c50","\u2c21":"\u2c51","\u2c22":"\u2c52","\u2c23":"\u2c53","\u2c24":"\u2c54","\u2c25":"\u2c55","\u2c26":"\u2c56","\u2c27":"\u2c57","\u2c28":"\u2c58","\u2c29":"\u2c59","\u2c2a":"\u2c5a",
"\u2c2b":"\u2c5b","\u2c2c":"\u2c5c","\u2c2d":"\u2c5d","\u2c2e":"\u2c5e","\u2c60":"\u2c61","\u2c62":"\u026b","\u2c63":"\u1d7d","\u2c64":"\u027d","\u2c67":"\u2c68","\u2c69":"\u2c6a","\u2c6b":"\u2c6c","\u2c6d":"\u0251","\u2c6e":"\u0271","\u2c6f":"\u0250","\u2c70":"\u0252","\u2c72":"\u2c73","\u2c75":"\u2c76","\u2c7e":"\u023f","\u2c7f":"\u0240","\u2c80":"\u2c81","\u2c82":"\u2c83","\u2c84":"\u2c85","\u2c86":"\u2c87","\u2c88":"\u2c89","\u2c8a":"\u2c8b","\u2c8c":"\u2c8d","\u2c8e":"\u2c8f","\u2c90":"\u2c91",
"\u2c92":"\u2c93","\u2c94":"\u2c95","\u2c96":"\u2c97","\u2c98":"\u2c99","\u2c9a":"\u2c9b","\u2c9c":"\u2c9d","\u2c9e":"\u2c9f","\u2ca0":"\u2ca1","\u2ca2":"\u2ca3","\u2ca4":"\u2ca5","\u2ca6":"\u2ca7","\u2ca8":"\u2ca9","\u2caa":"\u2cab","\u2cac":"\u2cad","\u2cae":"\u2caf","\u2cb0":"\u2cb1","\u2cb2":"\u2cb3","\u2cb4":"\u2cb5","\u2cb6":"\u2cb7","\u2cb8":"\u2cb9","\u2cba":"\u2cbb","\u2cbc":"\u2cbd","\u2cbe":"\u2cbf","\u2cc0":"\u2cc1","\u2cc2":"\u2cc3","\u2cc4":"\u2cc5","\u2cc6":"\u2cc7","\u2cc8":"\u2cc9",
"\u2cca":"\u2ccb","\u2ccc":"\u2ccd","\u2cce":"\u2ccf","\u2cd0":"\u2cd1","\u2cd2":"\u2cd3","\u2cd4":"\u2cd5","\u2cd6":"\u2cd7","\u2cd8":"\u2cd9","\u2cda":"\u2cdb","\u2cdc":"\u2cdd","\u2cde":"\u2cdf","\u2ce0":"\u2ce1","\u2ce2":"\u2ce3","\u2ceb":"\u2cec","\u2ced":"\u2cee","\u2cf2":"\u2cf3","\ua640":"\ua641","\ua642":"\ua643","\ua644":"\ua645","\ua646":"\ua647","\ua648":"\ua649","\ua64a":"\ua64b","\ua64c":"\ua64d","\ua64e":"\ua64f","\ua650":"\ua651","\ua652":"\ua653","\ua654":"\ua655","\ua656":"\ua657",
"\ua658":"\ua659","\ua65a":"\ua65b","\ua65c":"\ua65d","\ua65e":"\ua65f","\ua660":"\ua661","\ua662":"\ua663","\ua664":"\ua665","\ua666":"\ua667","\ua668":"\ua669","\ua66a":"\ua66b","\ua66c":"\ua66d","\ua680":"\ua681","\ua682":"\ua683","\ua684":"\ua685","\ua686":"\ua687","\ua688":"\ua689","\ua68a":"\ua68b","\ua68c":"\ua68d","\ua68e":"\ua68f","\ua690":"\ua691","\ua692":"\ua693","\ua694":"\ua695","\ua696":"\ua697","\ua698":"\ua699","\ua69a":"\ua69b","\ua722":"\ua723","\ua724":"\ua725","\ua726":"\ua727",
"\ua728":"\ua729","\ua72a":"\ua72b","\ua72c":"\ua72d","\ua72e":"\ua72f","\ua732":"\ua733","\ua734":"\ua735","\ua736":"\ua737","\ua738":"\ua739","\ua73a":"\ua73b","\ua73c":"\ua73d","\ua73e":"\ua73f","\ua740":"\ua741","\ua742":"\ua743","\ua744":"\ua745","\ua746":"\ua747","\ua748":"\ua749","\ua74a":"\ua74b","\ua74c":"\ua74d","\ua74e":"\ua74f","\ua750":"\ua751","\ua752":"\ua753","\ua754":"\ua755","\ua756":"\ua757","\ua758":"\ua759","\ua75a":"\ua75b","\ua75c":"\ua75d","\ua75e":"\ua75f","\ua760":"\ua761",
"\ua762":"\ua763","\ua764":"\ua765","\ua766":"\ua767","\ua768":"\ua769","\ua76a":"\ua76b","\ua76c":"\ua76d","\ua76e":"\ua76f","\ua779":"\ua77a","\ua77b":"\ua77c","\ua77d":"\u1d79","\ua77e":"\ua77f","\ua780":"\ua781","\ua782":"\ua783","\ua784":"\ua785","\ua786":"\ua787","\ua78b":"\ua78c","\ua78d":"\u0265","\ua790":"\ua791","\ua792":"\ua793","\ua796":"\ua797","\ua798":"\ua799","\ua79a":"\ua79b","\ua79c":"\ua79d","\ua79e":"\ua79f","\ua7a0":"\ua7a1","\ua7a2":"\ua7a3","\ua7a4":"\ua7a5","\ua7a6":"\ua7a7",
"\ua7a8":"\ua7a9","\ua7aa":"\u0266","\ua7ab":"\u025c","\ua7ac":"\u0261","\ua7ad":"\u026c","\ua7b0":"\u029e","\ua7b1":"\u0287","\uff21":"\uff41","\uff22":"\uff42","\uff23":"\uff43","\uff24":"\uff44","\uff25":"\uff45","\uff26":"\uff46","\uff27":"\uff47","\uff28":"\uff48","\uff29":"\uff49","\uff2a":"\uff4a","\uff2b":"\uff4b","\uff2c":"\uff4c","\uff2d":"\uff4d","\uff2e":"\uff4e","\uff2f":"\uff4f","\uff30":"\uff50","\uff31":"\uff51","\uff32":"\uff52","\uff33":"\uff53","\uff34":"\uff54","\uff35":"\uff55",
"\uff36":"\uff56","\uff37":"\uff57","\uff38":"\uff58","\uff39":"\uff59","\uff3a":"\uff5a","\ud801\udc00":"\ud801\udc28","\ud801\udc01":"\ud801\udc29","\ud801\udc02":"\ud801\udc2a","\ud801\udc03":"\ud801\udc2b","\ud801\udc04":"\ud801\udc2c","\ud801\udc05":"\ud801\udc2d","\ud801\udc06":"\ud801\udc2e","\ud801\udc07":"\ud801\udc2f","\ud801\udc08":"\ud801\udc30","\ud801\udc09":"\ud801\udc31","\ud801\udc0a":"\ud801\udc32","\ud801\udc0b":"\ud801\udc33","\ud801\udc0c":"\ud801\udc34","\ud801\udc0d":"\ud801\udc35",
"\ud801\udc0e":"\ud801\udc36","\ud801\udc0f":"\ud801\udc37","\ud801\udc10":"\ud801\udc38","\ud801\udc11":"\ud801\udc39","\ud801\udc12":"\ud801\udc3a","\ud801\udc13":"\ud801\udc3b","\ud801\udc14":"\ud801\udc3c","\ud801\udc15":"\ud801\udc3d","\ud801\udc16":"\ud801\udc3e","\ud801\udc17":"\ud801\udc3f","\ud801\udc18":"\ud801\udc40","\ud801\udc19":"\ud801\udc41","\ud801\udc1a":"\ud801\udc42","\ud801\udc1b":"\ud801\udc43","\ud801\udc1c":"\ud801\udc44","\ud801\udc1d":"\ud801\udc45","\ud801\udc1e":"\ud801\udc46",
"\ud801\udc1f":"\ud801\udc47","\ud801\udc20":"\ud801\udc48","\ud801\udc21":"\ud801\udc49","\ud801\udc22":"\ud801\udc4a","\ud801\udc23":"\ud801\udc4b","\ud801\udc24":"\ud801\udc4c","\ud801\udc25":"\ud801\udc4d","\ud801\udc26":"\ud801\udc4e","\ud801\udc27":"\ud801\udc4f","\ud806\udca0":"\ud806\udcc0","\ud806\udca1":"\ud806\udcc1","\ud806\udca2":"\ud806\udcc2","\ud806\udca3":"\ud806\udcc3","\ud806\udca4":"\ud806\udcc4","\ud806\udca5":"\ud806\udcc5","\ud806\udca6":"\ud806\udcc6","\ud806\udca7":"\ud806\udcc7",
"\ud806\udca8":"\ud806\udcc8","\ud806\udca9":"\ud806\udcc9","\ud806\udcaa":"\ud806\udcca","\ud806\udcab":"\ud806\udccb","\ud806\udcac":"\ud806\udccc","\ud806\udcad":"\ud806\udccd","\ud806\udcae":"\ud806\udcce","\ud806\udcaf":"\ud806\udccf","\ud806\udcb0":"\ud806\udcd0","\ud806\udcb1":"\ud806\udcd1","\ud806\udcb2":"\ud806\udcd2","\ud806\udcb3":"\ud806\udcd3","\ud806\udcb4":"\ud806\udcd4","\ud806\udcb5":"\ud806\udcd5","\ud806\udcb6":"\ud806\udcd6","\ud806\udcb7":"\ud806\udcd7","\ud806\udcb8":"\ud806\udcd8",
"\ud806\udcb9":"\ud806\udcd9","\ud806\udcba":"\ud806\udcda","\ud806\udcbb":"\ud806\udcdb","\ud806\udcbc":"\ud806\udcdc","\ud806\udcbd":"\ud806\udcdd","\ud806\udcbe":"\ud806\udcde","\ud806\udcbf":"\ud806\udcdf","\u00df":"ss","\u0130":"i\u0307","\u0149":"\u02bcn","\u01f0":"j\u030c","\u0390":"\u03b9\u0308\u0301","\u03b0":"\u03c5\u0308\u0301","\u0587":"\u0565\u0582","\u1e96":"h\u0331","\u1e97":"t\u0308","\u1e98":"w\u030a","\u1e99":"y\u030a","\u1e9a":"a\u02be","\u1e9e":"ss","\u1f50":"\u03c5\u0313","\u1f52":"\u03c5\u0313\u0300",
"\u1f54":"\u03c5\u0313\u0301","\u1f56":"\u03c5\u0313\u0342","\u1f80":"\u1f00\u03b9","\u1f81":"\u1f01\u03b9","\u1f82":"\u1f02\u03b9","\u1f83":"\u1f03\u03b9","\u1f84":"\u1f04\u03b9","\u1f85":"\u1f05\u03b9","\u1f86":"\u1f06\u03b9","\u1f87":"\u1f07\u03b9","\u1f88":"\u1f00\u03b9","\u1f89":"\u1f01\u03b9","\u1f8a":"\u1f02\u03b9","\u1f8b":"\u1f03\u03b9","\u1f8c":"\u1f04\u03b9","\u1f8d":"\u1f05\u03b9","\u1f8e":"\u1f06\u03b9","\u1f8f":"\u1f07\u03b9","\u1f90":"\u1f20\u03b9","\u1f91":"\u1f21\u03b9","\u1f92":"\u1f22\u03b9",
"\u1f93":"\u1f23\u03b9","\u1f94":"\u1f24\u03b9","\u1f95":"\u1f25\u03b9","\u1f96":"\u1f26\u03b9","\u1f97":"\u1f27\u03b9","\u1f98":"\u1f20\u03b9","\u1f99":"\u1f21\u03b9","\u1f9a":"\u1f22\u03b9","\u1f9b":"\u1f23\u03b9","\u1f9c":"\u1f24\u03b9","\u1f9d":"\u1f25\u03b9","\u1f9e":"\u1f26\u03b9","\u1f9f":"\u1f27\u03b9","\u1fa0":"\u1f60\u03b9","\u1fa1":"\u1f61\u03b9","\u1fa2":"\u1f62\u03b9","\u1fa3":"\u1f63\u03b9","\u1fa4":"\u1f64\u03b9","\u1fa5":"\u1f65\u03b9","\u1fa6":"\u1f66\u03b9","\u1fa7":"\u1f67\u03b9",
"\u1fa8":"\u1f60\u03b9","\u1fa9":"\u1f61\u03b9","\u1faa":"\u1f62\u03b9","\u1fab":"\u1f63\u03b9","\u1fac":"\u1f64\u03b9","\u1fad":"\u1f65\u03b9","\u1fae":"\u1f66\u03b9","\u1faf":"\u1f67\u03b9","\u1fb2":"\u1f70\u03b9","\u1fb3":"\u03b1\u03b9","\u1fb4":"\u03ac\u03b9","\u1fb6":"\u03b1\u0342","\u1fb7":"\u03b1\u0342\u03b9","\u1fbc":"\u03b1\u03b9","\u1fc2":"\u1f74\u03b9","\u1fc3":"\u03b7\u03b9","\u1fc4":"\u03ae\u03b9","\u1fc6":"\u03b7\u0342","\u1fc7":"\u03b7\u0342\u03b9","\u1fcc":"\u03b7\u03b9","\u1fd2":"\u03b9\u0308\u0300",
"\u1fd3":"\u03b9\u0308\u0301","\u1fd6":"\u03b9\u0342","\u1fd7":"\u03b9\u0308\u0342","\u1fe2":"\u03c5\u0308\u0300","\u1fe3":"\u03c5\u0308\u0301","\u1fe4":"\u03c1\u0313","\u1fe6":"\u03c5\u0342","\u1fe7":"\u03c5\u0308\u0342","\u1ff2":"\u1f7c\u03b9","\u1ff3":"\u03c9\u03b9","\u1ff4":"\u03ce\u03b9","\u1ff6":"\u03c9\u0342","\u1ff7":"\u03c9\u0342\u03b9","\u1ffc":"\u03c9\u03b9","\ufb00":"ff","\ufb01":"fi","\ufb02":"fl","\ufb03":"ffi","\ufb04":"ffl","\ufb05":"st","\ufb06":"st","\ufb13":"\u0574\u0576","\ufb14":"\u0574\u0565",
"\ufb15":"\u0574\u056b","\ufb16":"\u057e\u0576","\ufb17":"\u0574\u056d"};var ytb=new RegExp(/[!-#%-\*,-/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/),
ztb=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),Atb=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),Btb=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),Ctb=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),Dtb=/`+/,Etb=/^`+/,Ftb=/\.\.\./g,Gtb=/--+/g,Htb=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,
Itb=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,Jtb=/^ *(?:\n *)?/,Ktb=/^[ \t\n\x0b\x0c\x0d]/,Ltb=/[ \t\n\x0b\x0c\x0d]+/g,Mtb=/^\s/,Ntb=/ *$/,Otb=/^ */,Ptb=/^ *(?:\n|$)/,Qtb=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),Rtb=/^[^\n`\[\]\\!<&*_'"]+/m,yD=function(a){var b=new jn("text");b._literal=a;return b},zD=function(a){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=a||{}};
zD.prototype.match=function(a){a=a.exec(this.subject.slice(this.pos));if(a===null)return null;this.pos+=a.index+a[0].length;return a[0]};
zD.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var AD=function(a){a.match(Jtb);return!0},Stb=function(a,b,c){var d=0;
var e=a.pos;if(b===39||b===34)d++,a.pos++;else for(;a.peek()===b;)d++,a.pos++;if(d===0)d=null;else{var g=e===0?"\n":a.subject.charAt(e-1);var k=a.peek();k=k===-1?"\n":wD(k);var m=Mtb.test(k);k=ytb.test(k);var n=Mtb.test(g);var r=ytb.test(g);g=!m&&!(k&&!n&&!r);m=!n&&!(r&&!m&&!k);b===95?(n=g&&(!m||r),k=m&&(!g||k)):(n=b===39||b===34?g&&!m:g,k=m);a.pos=e;d={numdelims:d,can_open:n,can_close:k}}if(!d)return!1;e=d.numdelims;k=a.pos;a.pos+=e;k=b===39?"\u2019":b===34?"\u201c":a.subject.slice(k,a.pos);k=yD(k);
c.appendChild(k);a.delimiters={cc:b,numdelims:e,origdelims:e,node:k,previous:a.delimiters,next:null,can_open:d.can_open,can_close:d.can_close};a.delimiters.previous!==null&&(a.delimiters.previous.next=a.delimiters);return!0},Ttb=function(a,b){b.previous!==null&&(b.previous.next=b.next);
b.next===null?a.delimiters=b.previous:b.next.previous=b.previous},Utb=function(a,b){var c,d,e=[],g=!1;
e[95]=b;e[42]=b;e[39]=b;e[34]=b;for(c=a.delimiters;c!==null&&c.previous!==b;)c=c.previous;for(;c!==null;){var k=c.cc;if(c.can_close){var m=c.previous;for(d=!1;m!==null&&m!==b&&m!==e[k];){g=(c.can_open||m.can_close)&&(m.origdelims+c.origdelims)%3===0;if(m.cc===c.cc&&m.can_open&&!g){d=!0;break}m=m.previous}var n=c;if(k===42||k===95)if(d){var r=c.numdelims>=2&&m.numdelims>=2?2:1;var t=m.node;var u=c.node;m.numdelims-=r;c.numdelims-=r;t._literal=t._literal.slice(0,t._literal.length-r);u._literal=u._literal.slice(0,
u._literal.length-r);var x=new jn(r===1?"emph":"strong");for(r=t._next;r&&r!==u;){var A=r._next;xD(r);x.appendChild(r);r=A}xtb(t,x);r=m;A=c;r.next!==A&&(r.next=A,A.previous=r);m.numdelims===0&&(xD(t),Ttb(a,m));c.numdelims===0&&(xD(u),m=c.next,Ttb(a,c),c=m)}else c=c.next;else k===39?(c.node._literal="\u2019",d&&(m.node._literal="\u2018"),c=c.next):k===34&&(c.node._literal="\u201d",d&&(m.node.literal="\u201c"),c=c.next);d||g||(e[k]=n.previous,n.can_open||Ttb(a,n))}else c=c.next}for(;a.delimiters!==
null&&a.delimiters!==b;)Ttb(a,a.delimiters)},Vtb=function(a){a=a.match(ztb);
return a===null?null:rtb(a.substr(1,a.length-2))},Wtb=function(a){var b=a.match(Atb);
if(b===null){b=a.pos;for(var c=0,d;(d=a.peek())!==-1;)if(d===92)a.pos+=1,a.peek()!==-1&&(a.pos+=1);else if(d===40)a.pos+=1,c+=1;else if(d===41)if(c<1)break;else a.pos+=1,--c;else if(Ktb.exec(wD(d))!==null)break;else a.pos+=1;b=a.subject.substr(b,a.pos-b);return stb(rtb(b))}return stb(rtb(b.substr(1,b.length-2)))},Xtb=function(a){a=a.match(Qtb);
return a===null||a.length>1001?0:a.length},Ytb=function(a,b,c,d){a.brackets!==null&&(a.brackets.bracketAfter=!0);
a.brackets={node:b,previous:a.brackets,previousDelimiter:a.delimiters,index:c,image:d,active:!0}},Ztb=function(a,b){var c;
return(c=a.match(Rtb))?(a.options.smart?b.appendChild(yD(c.replace(Ftb,"\u2026").replace(Gtb,function(d){var e=0,g=0;d.length%3===0?g=d.length/3:d.length%2===0?e=d.length/2:d.length%3===2?(e=1,g=(d.length-2)/3):(e=2,g=(d.length-4)/3);d="";var k;for(k=0;k<g;k++)d+="\u2014";for(k=0;k<e;k++)d+="\u2013";return d}))):b.appendChild(yD(c)),!0):!1},$tb=function(a,b,c){a.subject=b;
a.pos=0;b=a.pos;var d=Xtb(a);if(d===0)return 0;var e=a.subject.substr(0,d);if(a.peek()===58)a.pos++;else return a.pos=b,0;AD(a);d=Wtb(a);if(d===null||d.length===0)return a.pos=b,0;var g=a.pos;AD(a);var k=Vtb(a);k===null&&(k="",a.pos=g);var m=!0;a.match(Ptb)===null&&(k===""?m=!1:(k="",a.pos=g,m=a.match(Ptb)!==null));if(!m)return a.pos=b,0;e=Aya(e);if(e==="")return a.pos=b,0;c[e]||(c[e]={destination:d,title:k});return a.pos-b},aub=function(a,b){var c,d=a.peek();
if(d===-1)return!1;switch(d){case 10:a.pos+=1;if((c=b._lastChild)&&c.type==="text"&&c._literal[c._literal.length-1]===" "){var e=c._literal[c._literal.length-2]===" ";c._literal=c._literal.replace(Ntb,"");b.appendChild(new jn(e?"linebreak":"softbreak"))}else b.appendChild(new jn("softbreak"));a.match(Otb);c=!0;break;case 92:c=a.subject;a.pos+=1;a.peek()===10?(a.pos+=1,c=new jn("linebreak"),b.appendChild(c)):Btb.test(c.charAt(a.pos))?(b.appendChild(yD(c.charAt(a.pos))),a.pos+=1):b.appendChild(yD("\\"));
c=!0;break;case 96:a:if(c=a.match(Etb),c===null)c=!1;else{e=a.pos;for(var g;(g=a.match(Dtb))!==null;)if(g===c){g=new jn("code");g._literal=a.subject.slice(e,a.pos-c.length).trim().replace(Ltb," ");b.appendChild(g);c=!0;break a}a.pos=e;b.appendChild(yD(c));c=!0}break;case 42:case 95:c=Stb(a,d,b);break;case 39:case 34:c=a.options.smart&&Stb(a,d,b);break;case 91:c=a.pos;a.pos+=1;e=yD("[");b.appendChild(e);Ytb(a,e,c,!1);c=!0;break;case 33:c=a.pos;a.pos+=1;a.peek()===91?(a.pos+=1,e=yD("!["),b.appendChild(e),
Ytb(a,e,c+1,!0)):b.appendChild(yD("!"));c=!0;break;case 93:var k,m=!1,n;a.pos+=1;var r=a.pos;e=a.brackets;if(e===null)b.appendChild(yD("]"));else if(e.active){c=e.image;var t=a.pos;a.peek()===40&&(a.pos++,AD(a)&&(g=Wtb(a))!==null&&AD(a)&&(Ktb.test(a.subject.charAt(a.pos-1))&&(k=Vtb(a)),1)&&AD(a)&&a.peek()===41?(a.pos+=1,m=!0):a.pos=t);if(!m){var u=a.pos,x=Xtb(a);x>2?n=a.subject.slice(u,u+x):e.bracketAfter||(n=a.subject.slice(e.index,r));x===0&&(a.pos=t);n&&(n=a.refmap[Aya(n)])&&(g=n.destination,k=
n.title,m=!0)}if(m){r=new jn(c?"image":"link");r._destination=g;r._title=k||"";for(g=e.node._next;g;)k=g._next,xD(g),r.appendChild(g),g=k;b.appendChild(r);Utb(a,e.previousDelimiter);a.brackets=a.brackets.previous;xD(e.node);if(!c)for(e=a.brackets;e!==null;)e.image||(e.active=!1),e=e.previous}else a.brackets=a.brackets.previous,a.pos=r,b.appendChild(yD("]"))}else b.appendChild(yD("]")),a.brackets=a.brackets.previous;c=!0;break;case 60:(c=a.match(Htb))?(c=c.slice(1,c.length-1),e=new jn("link"),e._destination=
stb("mailto:"+c),e._title="",e.appendChild(yD(c)),b.appendChild(e),c=!0):(c=a.match(Itb))?(c=c.slice(1,c.length-1),e=new jn("link"),e._destination=stb(c),e._title="",e.appendChild(yD(c)),b.appendChild(e),c=!0):c=!1;c||(c=a.match(ltb),c===null?c=!1:(e=new jn("html_inline"),e._literal=c,b.appendChild(e),c=!0));break;case 38:(c=a.match(Ctb))?(b.appendChild(yD(jtb(c))),c=!0):c=!1;break;default:c=Ztb(a,b)}c||(a.pos+=1,b.appendChild(yD(wD(d))));return!0};
zD.prototype.parseInlines=function(a){this.subject=a._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;aub(this,a););a._string_content=null;Utb(this,null)};
zD.prototype.parse=zD.prototype.parseInlines;var bub=[/./,/^<(?:script|pre|style)(?:\s|>|$)/i,/^\x3c!--/,/^<[?]/,/^<![A-Z]/,/^<!\[CDATA\[/,/^<[/]?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[123456]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|title|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|[/]?[>]|$)/i,RegExp("^(?:<[A-Za-z][A-Za-z0-9-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*/?>|</[A-Za-z][A-Za-z0-9-]*\\s*[>])\\s*$",
"i")],cub=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],dub=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,eub=/^[#`~*+_=<>0-9-\|]|\|/,fub=/[^ \t\f\v\r\n]/,gub=/^[*+-]/,hub=/^(\d{1,9})([.)])/,iub=/^#{1,6}(?:[ \t]+|$)/,jub=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,kub=/^(?:`{3,}|~{3,})(?= *$)/,lub=/^(?:=+|-+)[ \t]*$/,mub=/\r\n|\n|\r/,Cya=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,Dya=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,nub={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(a){return a!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(a,b){for(a=b._firstChild;a;){if(Bya(a)&&a._next){b._listData.tight=!1;break}for(var c=a._firstChild;c;){if(Bya(c)&&(a._next||c._next)){b._listData.tight=!1;break}c=c._next}a=a._next}},
canContain:function(a){return a==="item"},
acceptsLines:!1},block_quote:{continue:function(a){var b=a.currentLine;if(a.indented||gn(b,a.nextNonspace)!==62)return 1;BD(a);CD(a,1,!1);fn(gn(b,a.offset))&&CD(a,1,!0);return 0},
finalize:function(){},
canContain:function(a){return a!=="item"},
acceptsLines:!1},item:{continue:function(a,b){if(a.blank){if(b._firstChild==null)return 1;BD(a)}else if(a.indent>=b._listData.markerOffset+b._listData.padding)CD(a,b._listData.markerOffset+b._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(a){return a!=="item"&&!Eya(a)},
acceptsLines:!1},heading:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},thematic_break:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},code_block:{continue:function(a,b){var c=a.currentLine,d=a.indent;if(b._isFenced){if((d=d<=3&&c.charAt(a.nextNonspace)===b._fenceChar&&c.slice(a.nextNonspace).match(kub))&&d[0].length>=b._fenceLength)return a.finalize(b,a.lineNumber),2;for(b=b._fenceOffset;b>0&&fn(gn(c,a.offset));)CD(a,1,!0),b--}else if(d>=4)CD(a,4,!0);else if(a.blank)BD(a);else return 1;return 0},
finalize:function(a,b){if(b._isFenced){var c=b._string_content,d=c.indexOf("\n");a=c.slice(0,d);c=c.slice(d+1);b.info=rtb(a.trim());b._literal=c}else b._literal=b._string_content.replace(/(\n *)+$/,"\n");b._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(a,b){return!a.blank||b._htmlBlockType!==6&&b._htmlBlockType!==7?0:1},
finalize:function(a,b){b._literal=b._string_content.replace(/(\n *)+$/,"");b._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(a){return a.blank?1:0},
finalize:function(a,b){for(var c,d=!1;gn(b._string_content,0)===91&&(c=$tb(a.inlineParser,b._string_content,a.refmap));)b._string_content=b._string_content.slice(c),d=!0;d&&!fub.test(b._string_content)&&xD(b)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(a){return hn(a.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(a){return a=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(a,b){if(!b._rowIsDelimiter){a=b._isHeader?"th":"td";for(var c=b._parent._tableColumns,d=b._string_content,e=0,g="",k,m=b._sourcepos[0][0];e<d.length;){switch(d[e]){case "|":k&&(k._string_content=g.trim(),g="",k=null,c--,c<=0&&(e=d.length));break;default:if(!k){k=new jn(a,[[m,e],[m,e]]);var n=b._parent._columnAlignment,r=b._parent._tableColumns-c;n&&r<=n.length&&r>=0&&(k._alignment=n[r]);b.appendChild(k)}g+=d[e];k._sourcepos[1][1]=e}e++}k&&(k._string_content=g.trim());b._string_content=
""}},
canContain:function(a){return a!=="row"},
acceptsLines:!1}},oub=[function(a){if(a.indented||gn(a.currentLine,a.nextNonspace)!==62)return 0;BD(a);CD(a,1,!1);fn(gn(a.currentLine,a.offset))&&CD(a,1,!0);DD(a);a.addChild("block_quote",a.nextNonspace);return 1},
function(a){var b;if(!a.indented&&(b=a.currentLine.slice(a.nextNonspace).match(iub))){BD(a);CD(a,b[0].length,!1);DD(a);var c=a.addChild("heading",a.nextNonspace);c.level=b[0].trim().length;c._string_content=a.currentLine.slice(a.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");CD(a,a.currentLine.length-a.offset);return 2}return 0},
function(a){var b;if(!a.indented&&(b=a.currentLine.slice(a.nextNonspace).match(jub))){var c=b[0].length;DD(a);var d=a.addChild("code_block",a.nextNonspace);d._isFenced=!0;d._fenceLength=c;d._fenceChar=b[0][0];d._fenceOffset=a.indent;BD(a);CD(a,c,!1);return 2}return 0},
function(a,b){if(!a.indented&&gn(a.currentLine,a.nextNonspace)===60){var c=a.currentLine.slice(a.nextNonspace),d;for(d=1;d<=7;d++)if(bub[d].test(c)&&(d<7||b.type!=="paragraph"))return DD(a),a.addChild("html_block",a.offset)._htmlBlockType=d,2}return 0},
function(a,b){var c;if(!a.indented&&b.type==="paragraph"&&(c=a.currentLine.slice(a.nextNonspace).match(lub))){DD(a);var d=new jn("heading",b.sourcepos);d.level=c[0][0]==="="?1:2;d._string_content=b._string_content;xtb(b,d);xD(b);a.tip=d;CD(a,a.currentLine.length-a.offset,!1);return 2}return 0},
function(a){return!a.indented&&dub.test(a.currentLine.slice(a.nextNonspace))?(DD(a),a.addChild("thematic_break",a.nextNonspace),CD(a,a.currentLine.length-a.offset,!1),2):0},
function(a,b){var c,d;if(!(d=a.indented&&b.type!=="list")){a:{var e=b,g=a.currentLine.slice(a.nextNonspace);d={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:a.indent};if(c=g.match(gub))d.type="bullet",d.bulletChar=c[0][0];else{if(!(c=g.match(hub))||e.type==="paragraph"&&c[1]!=="1"){c=null;break a}d.type="ordered";d.start=parseInt(c[1],10);d.delimiter=c[2]}var k=gn(a.currentLine,a.nextNonspace+c[0].length);if(k!==-1&&k!==9&&k!==32||e.type==="paragraph"&&!a.currentLine.slice(a.nextNonspace+
c[0].length).match(fub))c=null;else{BD(a);CD(a,c[0].length,!0);e=a.column;g=a.offset;do CD(a,1,!0),k=gn(a.currentLine,a.offset);while(a.column-e<5&&fn(k));k=gn(a.currentLine,a.offset)===-1;var m=a.column-e;m>=5||m<1||k?(d.padding=c[0].length+1,a.column=e,a.offset=g,fn(gn(a.currentLine,a.offset))&&CD(a,1,!0)):d.padding=c[0].length+m;c=d}}d=!c}if(d)return 0;DD(a);(d=a.tip.type!=="list")||(b=b._listData,d=!(b.type===c.type&&b.delimiter===c.delimiter&&b.bulletChar===c.bulletChar));d&&(b=a.addChild("list",
a.nextNonspace),b._listData=c);b=a.addChild("item",a.nextNonspace);b._listData=c;return 1},
function(a){var b;return((b=a.options.shouldParseIndentAsCodeBlock)!=null?b:1)&&a.indented&&a.tip.type!=="paragraph"&&!a.blank?(CD(a,4,!0),DD(a),a.addChild("code_block",a.offset),2):0},
function(a,b){var c=hn(a.currentLine),d=hn(a.lookahead);if(c!==0&&d<0&&Math.abs(c)==Math.abs(d)&&!Eya(b.type)){DD(a);b=a.addChild("table",a.nextNonspace);b._tableRows=1;b._tableColumns=Math.abs(c);c=a.lookahead;if(Dya.test(c)){d=[];for(var e=0,g=!1,k=0,m=void 0;e<c.length;){var n=k>=3;switch(c[e]){case "-":k++;break;case "|":g&&(d.push(m),m=void 0,k=0);g=!0;break;case ":":m||n||(m="left"),!m&&n&&(m="right"),m==="left"&&n&&(m="center")}e++}c=d}else c=void 0;b._columnAlignment=c;b=a.addChild("row",
a.nextNonspace);b._isHeader=!0;CD(a,a.currentLine.length-a.offset,!1);b._string_content=a.currentLine;return 1}return 0},
function(a,b){if(b.type=="table"&&hn(a.currentLine)!==0){DD(a);var c=b;b=a.addChild("row",a.nextNonspace);hn(a.currentLine)<0?b._rowIsDelimiter=!0:c._tableRows+=1;CD(a,a.currentLine.length-a.offset,!1);b._string_content=a.currentLine;return 2}return 0}],H2a=function(){var a={shouldParseIndentAsCodeBlock:!1};
a=a===void 0?{}:a;this.lastMatchedContainer=this.doc=Fya();this.refmap={};this.lastLineLength=0;this.inlineParser=new zD(a);this.options=a;this.oldtip=this.tip=this.doc;this.lookahead=this.currentLine="";this.indent=this.nextNonspaceColumn=this.nextNonspace=this.column=this.offset=this.lineNumber=0;this.partiallyConsumedTab=this.blank=this.indented=!1;this.allClosed=!0;this.blocks=nub;this.blockStarts=oub},pub=function(a){a.partiallyConsumedTab&&(a.offset+=1,a.tip._string_content+=" ".repeat(4-a.column%
4));
a.tip._string_content+=a.currentLine.slice(a.offset)+"\n"};
H2a.prototype.addChild=function(a,b){for(;!this.blocks[this.tip.type].canContain(a);)this.finalize(this.tip,this.lineNumber-1);a=new jn(a,[[this.lineNumber,b+1],[0,0]]);a._string_content="";this.tip.appendChild(a);return this.tip=a};
var DD=function(a){if(!a.allClosed){for(;a.oldtip!==a.lastMatchedContainer;){var b=a.oldtip._parent;a.finalize(a.oldtip,a.lineNumber-1);a.oldtip=b}a.allClosed=!0}},CD=function(a,b,c){for(var d=a.currentLine,e,g;b>0&&(g=d[a.offset]);)g==="\t"?(e=4-a.column%4,c?(a.partiallyConsumedTab=e>b,e=e>b?b:e,a.column+=e,a.offset+=a.partiallyConsumedTab?0:1,b-=e):(a.partiallyConsumedTab=!1,a.column+=e,a.offset+=1,--b)):(a.partiallyConsumedTab=!1,a.offset+=1,a.column+=1,--b)},BD=function(a){a.offset=a.nextNonspace;
a.column=a.nextNonspaceColumn;a.partiallyConsumedTab=!1},qub=function(a){for(var b=a.currentLine,c=a.offset,d=a.column,e;(e=b.charAt(c))!=="";)if(e===" ")c++,d++;
else if(e==="\t")c++,d+=4-d%4;else break;a.blank=e==="\n"||e==="\r"||e==="";a.nextNonspace=c;a.nextNonspaceColumn=d;a.indent=a.nextNonspaceColumn-a.column;a.indented=a.indent>=4};
H2a.prototype.finalize=function(a,b){var c=a._parent;a._open=!1;a.sourcepos[1]=[b,this.lastLineLength];this.blocks[a.type].finalize(this,a);this.tip=c};
H2a.prototype.parse=function(a){this.tip=this.doc=Fya();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!a)return this.doc;this.options.time&&console.time("preparing input");var b=a.split(mub),c=b.length;a.charCodeAt(a.length-1)===10&&--c;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(a=0;a<c;a++)a:{var d=void 0,e=b[a],g=b[a+1],k=!0,m=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;e.indexOf("\x00")!==-1&&(e=e.replace(/\0/g,"\ufffd"));this.currentLine=e;for(this.lookahead=g;(d=m._lastChild)&&d._open;){m=d;qub(this);switch(this.blocks[m.type].continue(this,m)){case 0:break;case 1:k=!1;break;case 2:this.lastLineLength=e.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!k){m=m._parent;break}}this.allClosed=m===this.oldtip;this.lastMatchedContainer=
m;d=m.type!=="paragraph"&&nub[m.type].acceptsLines;g=this.blockStarts;for(k=g.length;!d;){qub(this);if(!this.indented&&!eub.test(e.slice(this.nextNonspace))){BD(this);break}for(var n=0;n<k;){var r=g[n](this,m);if(r===1){m=this.tip;break}else if(r===2){m=this.tip;d=!0;break}else n++}if(n===k){BD(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){DD(this);this.blank&&m.lastChild&&(m.lastChild._lastLineBlank=!0);d=m.type;g=this.blank&&!(d==="block_quote"||d==="code_block"&&m._isFenced||
d==="item"&&!m._firstChild&&m.sourcepos[0][0]===this.lineNumber);for(k=m;k;)k._lastLineBlank=g,k=k._parent;this.blocks[d].acceptsLines?(pub(this),d==="html_block"&&m._htmlBlockType>=1&&m._htmlBlockType<=5&&cub[m._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(m,this.lineNumber)):this.offset<e.length&&!this.blank&&(this.addChild("paragraph",this.offset),BD(this),pub(this))}else pub(this);this.lastLineLength=e.length}for(;this.tip;)this.finalize(this.tip,c);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");e=new wtb(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;c=e.next();)b=c.node,a=b.type,c.entering||a!=="paragraph"&&a!=="heading"&&a!=="th"&&a!="td"||this.inlineParser.parse(b);this.options.time&&console.timeEnd("inline parsing");return this.doc};Gya.prototype.render=function(a){a=new wtb(a);var b;this.buffer="";for(this.lastOut="\n";b=a.next();){var c=b.node.type;if(this[c])this[c](b.node,b.entering)}return this.buffer};
Gya.prototype.out=function(a){ED(this,a)};
var ED=function(a,b){a.buffer+=b;a.lastOut=b};
Gya.prototype.cr=function(){this.lastOut!=="\n"&&ED(this,"\n")};var rub=/^javascript:|vbscript:|file:|data:/i,sub=/^data:image\/(?:png|gif|jpeg|webp)/i,tub=function(a){return rub.test(a)&&!sub.test(a)};
kn.prototype=Object.create(Gya.prototype);_.f=kn.prototype;_.f.text=function(a){this.out(a.literal)};
_.f.html_inline=function(a){this.options.safe?ED(this,"\x3c!-- raw HTML omitted --\x3e"):ED(this,a.literal)};
_.f.html_block=function(a){this.cr();this.options.safe?ED(this,"\x3c!-- raw HTML omitted --\x3e"):ED(this,a.literal);this.cr()};
_.f.softbreak=function(){ED(this,this.options.softbreak)};
_.f.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.f.link=function(a,b){var c=this.attrs(a);b?(this.options.safe&&tub(a.destination)||c.push(["href",vD(a.destination,!0)]),a.title&&c.push(["title",vD(a.title,!0)]),this.tag("a",c)):this.tag("/a")};
_.f.image=function(a,b){b?(this.disableTags===0&&(this.options.safe&&tub(a.destination)?ED(this,'<img src="" alt="'):ED(this,'<img src="'+vD(a.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(a.title&&ED(this,'" title="'+vD(a.title,!0)),ED(this,'" />')))};
_.f.emph=function(a,b){this.tag(b?"em":"/em")};
_.f.strong=function(a,b){this.tag(b?"strong":"/strong")};
_.f.paragraph=function(a,b){var c=a.parent.parent;a=this.attrs(a);c!==null&&c.type==="list"&&c.listTight||(b?(this.cr(),this.tag("p",a)):(this.tag("/p"),this.cr()))};
_.f.heading=function(a,b){var c="h"+a.level;a=this.attrs(a);b?(this.cr(),this.tag(c,a)):(this.tag("/"+c),this.cr())};
_.f.code=function(a){this.tag("code");this.out(a.literal);this.tag("/code")};
_.f.code_block=function(a){var b=a.info?a.info.split(/\s+/):[],c=this.attrs(a);b.length>0&&b[0].length>0&&c.push(["class","language-"+vD(b[0],!0)]);this.cr();this.tag("pre");this.tag("code",c);this.out(a.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.f.thematic_break=function(a){a=this.attrs(a);this.cr();this.tag("hr",a,!0);this.cr()};
_.f.block_quote=function(a,b){a=this.attrs(a);b?(this.cr(),this.tag("blockquote",a)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.f.list=function(a,b){var c=a.listType==="bullet"?"ul":"ol",d=this.attrs(a);b?(a=a.listStart,a!==null&&a!==1&&d.push(["start",a.toString()]),this.cr(),this.tag(c,d)):(this.cr(),this.tag("/"+c));this.cr()};
_.f.item=function(a,b){a=this.attrs(a);b?this.tag("li",a):(this.tag("/li"),this.cr())};
_.f.custom_inline=function(a,b){b&&a.onEnter?ED(this,a.onEnter):!b&&a.onExit&&ED(this,a.onExit)};
_.f.custom_block=function(a,b){this.cr();b&&a.onEnter?ED(this,a.onEnter):!b&&a.onExit&&ED(this,a.onExit);this.cr()};
_.f.table=function(a,b){a=this.attrs(a);b?(this.cr(),this.tag("table",a)):(this.tag("/table"),this.cr())};
_.f.row=function(a,b){a._rowIsDelimiter||(a=this.attrs(a),b?this.tag("tr",a):this.tag("/tr"))};
_.f.td=function(a,b){var c=this.attrs(a);a._alignment&&c.push(["align",a._alignment]);b?this.tag("td",c):this.tag("/td")};
_.f.th=function(a,b){var c=this.attrs(a);a._alignment&&c.push(["align",a._alignment]);b?this.tag("th",c):this.tag("/th")};
_.f.out=function(a){ED(this,vD(a,!1))};
_.f.tag=function(a,b,c){if(!(this.disableTags>0)){this.buffer+="<"+a;if(b&&b.length>0){a=0;for(var d;(d=b[a])!==void 0;)this.buffer+=" "+d[0]+'="'+d[1]+'"',a++}c&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.f.attrs=function(a){var b=[];this.options.sourcepos&&(a=a.sourcepos)&&b.push(["data-sourcepos",String(a[0][0])+":"+String(a[0][1])+"-"+String(a[1][0])+":"+String(a[1][1])]);return b};
kn.prototype.text=kn.prototype.text;kn.prototype.html_inline=kn.prototype.html_inline;kn.prototype.html_block=kn.prototype.html_block;kn.prototype.softbreak=kn.prototype.softbreak;kn.prototype.linebreak=kn.prototype.linebreak;kn.prototype.link=kn.prototype.link;kn.prototype.image=kn.prototype.image;kn.prototype.emph=kn.prototype.emph;kn.prototype.strong=kn.prototype.strong;kn.prototype.paragraph=kn.prototype.paragraph;kn.prototype.heading=kn.prototype.heading;kn.prototype.code=kn.prototype.code;
kn.prototype.code_block=kn.prototype.code_block;kn.prototype.thematic_break=kn.prototype.thematic_break;kn.prototype.block_quote=kn.prototype.block_quote;kn.prototype.list=kn.prototype.list;kn.prototype.item=kn.prototype.item;kn.prototype.custom_inline=kn.prototype.custom_inline;kn.prototype.custom_block=kn.prototype.custom_block;kn.prototype.table=kn.prototype.table;kn.prototype.row=kn.prototype.row;kn.prototype.td=kn.prototype.td;kn.prototype.th=kn.prototype.th;kn.prototype.out=kn.prototype.out;
kn.prototype.tag=kn.prototype.tag;kn.prototype.attrs=kn.prototype.attrs;/*

Copyright 2010-2017 Mike Bostock
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

 Redistributions of source code must retain the above copyright notice, this
  list of conditions and the following disclaimer.

 Redistributions in binary form must reproduce the above copyright notice,
  this list of conditions and the following disclaimer in the documentation
  and/or other materials provided with the distribution.

 Neither the name of the author nor the names of contributors may be used to
  endorse or promote products derived from this software without specific prior
  written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
var uub,vub,bPa;(function(){function a(G,D){return G<D?-1:G>D?1:G>=D?0:NaN}
function b(G){return function(D,L){return a(G(D),L)}}
function c(){for(var G=0,D=arguments.length,L={},T;G<D;++G){if(!(T=arguments[G]+"")||T in L)throw Error("ue`"+T);L[T]=[]}return new d(L)}
function d(G){this._=G}
function e(G,D){return G.trim().split(/^|\s+/).map(function(L){var T="",ba=L.indexOf(".");ba>=0&&(T=L.slice(ba+1),L=L.slice(0,ba));if(L&&!D.hasOwnProperty(L))throw Error("ve`"+L);return{type:L,name:T}})}
function g(G,D,L){for(var T=0,ba=G.length;T<ba;++T)if(G[T].name===D){G[T]=ZOc;G=G.slice(0,T).concat(G.slice(T+1));break}L!=null&&G.push({name:D,value:L});return G}
function k(G){var D=G,L=D.indexOf(":");L>=0&&(D=G.slice(0,L))!=="xmlns"&&(G=G.slice(L+1));return Nu.hasOwnProperty(D)?{space:Nu[D],local:G}:G}
function m(G){return function(){var D=this.ownerDocument,L=this.namespaceURI;return L==="http://www.w3.org/1999/xhtml"&&D.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?D.createElement(G):D.createElementNS(L,G)}}
function n(G){return function(){return this.ownerDocument.createElementNS(G.space,G.local)}}
function r(G){G=k(G);return(G.local?n:m)(G)}
function t(){}
function u(G){return G==null?t:function(){return this.querySelector(G)}}
function x(G){return Array(G.length)}
function A(G,D){this.ownerDocument=G.ownerDocument;this.namespaceURI=G.namespaceURI;this._next=null;this._parent=G;this.__data__=D}
function C(G){return function(){return G}}
function F(G,D,L,T,ba,la){for(var qa=0,za,Wa=D.length,Va=la.length;qa<Va;++qa)(za=D[qa])?(za.__data__=la[qa],T[qa]=za):L[qa]=new A(G,la[qa]);for(;qa<Wa;++qa)if(za=D[qa])ba[qa]=za}
function J(G,D,L,T,ba,la,qa){var za,Wa,Va={},Ya=D.length,gb=la.length,Rb=Array(Ya),pc;for(za=0;za<Ya;++za)if(Wa=D[za])Rb[za]=pc="$"+qa.call(Wa,Wa.__data__,za,D),pc in Va?ba[za]=Wa:Va[pc]=Wa;for(za=0;za<gb;++za)pc="$"+qa.call(G,la[za],za,la),(Wa=Va[pc])?(T[za]=Wa,Wa.__data__=la[za],Va[pc]=null):L[za]=new A(G,la[za]);for(za=0;za<Ya;++za)(Wa=D[za])&&Va[Rb[za]]===Wa&&(ba[za]=Wa)}
function I(G,D){return G<D?-1:G>D?1:G>=D?0:NaN}
function R(G){return function(){this.removeAttribute(G)}}
function da(G){return function(){this.removeAttributeNS(G.space,G.local)}}
function V(G,D){return function(){this.setAttribute(G,D)}}
function fa(G,D){return function(){this.setAttributeNS(G.space,G.local,D)}}
function aa(G,D){return function(){var L=D.apply(this,arguments);L==null?this.removeAttribute(G):this.setAttribute(G,L)}}
function ma(G,D){return function(){var L=D.apply(this,arguments);L==null?this.removeAttributeNS(G.space,G.local):this.setAttributeNS(G.space,G.local,L)}}
function Ba(G){return function(){this.style.removeProperty(G)}}
function Ca(G,D,L){return function(){this.style.setProperty(G,D,L)}}
function ya(G,D,L){return function(){var T=D.apply(this,arguments);T==null?this.style.removeProperty(G):this.style.setProperty(G,T,L)}}
function Ia(G,D){return G.style.getPropertyValue(D)||(G.ownerDocument&&G.ownerDocument.defaultView||G.document&&G||G.defaultView).getComputedStyle(G,null).getPropertyValue(D)}
function db(G){return function(){delete this[G]}}
function lb(G,D){return function(){this[G]=D}}
function Ua(G,D){return function(){var L=D.apply(this,arguments);L==null?delete this[G]:this[G]=L}}
function Vb(){this.textContent=""}
function rb(G){return function(){this.textContent=G}}
function sb(G){return function(){var D=G.apply(this,arguments);this.textContent=D==null?"":D}}
function yc(){this.innerHTML=""}
function Mb(G){return function(){this.innerHTML=G}}
function ub(G){return function(){var D=G.apply(this,arguments);this.innerHTML=D==null?"":D}}
function Db(){return null}
function Wc(){var G=this.parentNode;G&&G.removeChild(this)}
function Mc(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function ia(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function ac(G,D,L){G=Qb(G,D,L);return function(T){var ba=T.relatedTarget;ba&&(ba===this||ba.compareDocumentPosition(this)&8)||G.call(this,T)}}
function Qb(G,D,L){return function(){G.call(this,this.__data__,D,L)}}
function Ac(G){return G.trim().split(/^|\s+/).map(function(D){var L="",T=D.indexOf(".");T>=0&&(L=D.slice(T+1),D=D.slice(0,T));return{type:D,name:L}})}
function qb(G){return function(){var D=this.__on;if(D){for(var L=0,T=-1,ba=D.length,la;L<ba;++L)(la=D[L],G.type&&la.type!==G.type||la.name!==G.name)?D[++T]=la:this.removeEventListener(la.type,la.listener,la.capture);++T?D.length=T:delete this.__on}}}
function Cb(G,D,L){var T=jTb.hasOwnProperty(G.type)?ac:Qb;return function(ba,la,qa){ba=this.__on;var za;la=T(D,la,qa);if(ba){qa=0;for(var Wa=ba.length;qa<Wa;++qa)if((za=ba[qa]).type===G.type&&za.name===G.name){this.removeEventListener(za.type,za.listener,za.capture);this.addEventListener(za.type,za.listener=la,za.capture=L);za.value=D;return}}this.addEventListener(G.type,la,L);za={type:G.type,name:G.name,value:D,listener:la,capture:L};ba?ba.push(za):this.__on=[za]}}
function ab(G,D,L){var T=G.ownerDocument&&G.ownerDocument.defaultView||G.document&&G||G.defaultView,ba=T.CustomEvent;typeof ba==="function"?ba=new ba(D,L):(ba=T.document.createEvent("Event"),L?(ba.initEvent(D,L.bubbles,L.cancelable),ba.detail=L.detail):ba.initEvent(D,!1,!1));G.dispatchEvent(ba)}
function Pa(G,D){return function(){return ab(this,G,D)}}
function mb(G,D){return function(){return ab(this,G,D.apply(this,arguments))}}
function Yb(G,D){this._groups=G;this._parents=D}
function hd(){return new Yb([[document.documentElement]],$Oc)}
function Gb(){this._="@"+(++aPc).toString(36)}
function Tc(G,D,L){G.prototype=D.prototype=L;L.constructor=G}
function Bd(G,D){G=Object.create(G.prototype);for(var L in D)G[L]=D[L];return G}
function Rm(){}
function ld(G){var D;G=(G+"").trim().toLowerCase();return(D=bPc.exec(G))?(D=parseInt(D[1],16),new zi(D>>8&15|D>>4&240,D>>4&15|D&240,(D&15)<<4|D&15,1)):(D=cPc.exec(G))?Gf(parseInt(D[1],16)):(D=dPc.exec(G))?new zi(D[1],D[2],D[3],1):(D=ePc.exec(G))?new zi(D[1]*255/100,D[2]*255/100,D[3]*255/100,1):(D=fPc.exec(G))?Vn(D[1],D[2],D[3],D[4]):(D=gPc.exec(G))?Vn(D[1]*255/100,D[2]*255/100,D[3]*255/100,D[4]):(D=hPc.exec(G))?aq(D[1],D[2]/100,D[3]/100,1):(D=iPc.exec(G))?aq(D[1],D[2]/100,D[3]/100,D[4]):kTb.hasOwnProperty(G)?
Gf(kTb[G]):G==="transparent"?new zi(NaN,NaN,NaN,0):null}
function Gf(G){return new zi(G>>16&255,G>>8&255,G&255,1)}
function Vn(G,D,L,T){T<=0&&(G=D=L=NaN);return new zi(G,D,L,T)}
function Af(G){G instanceof Rm||(G=ld(G));if(!G)return new zi;G=G.rgb();return new zi(G.r,G.g,G.b,G.opacity)}
function $h(G,D,L,T){return arguments.length===1?Af(G):new zi(G,D,L,T==null?1:T)}
function zi(G,D,L,T){this.r=+G;this.g=+D;this.b=+L;this.opacity=+T}
function td(G){G=Math.max(0,Math.min(255,Math.round(G)||0));return(G<16?"0":"")+G.toString(16)}
function aq(G,D,L,T){T<=0?G=D=L=NaN:L<=0||L>=1?G=D=NaN:D<=0&&(G=NaN);return new Vi(G,D,L,T)}
function Wn(G){if(G instanceof Vi)return new Vi(G.h,G.s,G.l,G.opacity);G instanceof Rm||(G=ld(G));if(!G)return new Vi;if(G instanceof Vi)return G;G=G.rgb();var D=G.r/255,L=G.g/255,T=G.b/255,ba=Math.min(D,L,T),la=Math.max(D,L,T),qa=NaN,za=la-ba,Wa=(la+ba)/2;za?(qa=D===la?(L-T)/za+(L<T)*6:L===la?(T-D)/za+2:(D-L)/za+4,za/=Wa<.5?la+ba:2-la-ba,qa*=60):za=Wa>0&&Wa<1?0:qa;return new Vi(qa,za,Wa,G.opacity)}
function Sm(G,D,L,T){return arguments.length===1?Wn(G):new Vi(G,D,L,T==null?1:T)}
function Vi(G,D,L,T){this.h=+G;this.s=+D;this.l=+L;this.opacity=+T}
function be(G,D,L){return(G<60?D+(L-D)*G/60:G<180?L:G<240?D+(L-D)*(240-G)/60:D)*255}
function ap(G){if(G instanceof sa)return new sa(G.l,G.a,G.b,G.opacity);if(G instanceof Sb){if(isNaN(G.h))return new sa(G.l,0,0,G.opacity);var D=G.h*lTb;return new sa(G.l,Math.cos(D)*G.c,Math.sin(D)*G.c,G.opacity)}G instanceof zi||(G=Af(G));var L=hc(G.r),T=hc(G.g),ba=hc(G.b);D=Fa(.2225045*L+.7168786*T+.0606169*ba);if(L===T&&T===ba)var la=L=D;else la=Fa((.4360747*L+.3850649*T+.1430804*ba)/.96422),L=Fa((.0139322*L+.0971045*T+.7141733*ba)/.82521);return new sa(116*D-16,500*(la-D),200*(D-L),G.opacity)}
function sa(G,D,L,T){this.l=+G;this.a=+D;this.b=+L;this.opacity=+T}
function Fa(G){return G>jPc?Math.pow(G,1/3):G/mTb+nTb}
function La(G){return G>zR?G*G*G:mTb*(G-nTb)}
function nb(G){return 255*(G<=.0031308?12.92*G:1.055*Math.pow(G,1/2.4)-.055)}
function hc(G){return(G/=255)<=.04045?G/12.92:Math.pow((G+.055)/1.055,2.4)}
function fb(G){if(G instanceof Sb)return new Sb(G.h,G.c,G.l,G.opacity);G instanceof sa||(G=ap(G));if(G.a===0&&G.b===0)return new Sb(NaN,0,G.l,G.opacity);var D=Math.atan2(G.b,G.a)*oTb;return new Sb(D<0?D+360:D,Math.sqrt(G.a*G.a+G.b*G.b),G.l,G.opacity)}
function ib(G,D,L,T){return arguments.length===1?fb(G):new Sb(G,D,L,T==null?1:T)}
function Sb(G,D,L,T){this.h=+G;this.c=+D;this.l=+L;this.opacity=+T}
function wb(G,D,L,T){if(arguments.length===1){var ba=G;if(ba instanceof vd)ba=new vd(ba.h,ba.s,ba.l,ba.opacity);else{ba instanceof zi||(ba=Af(ba));var la=ba.g/255,qa=ba.b/255,za=(pTb*qa+ba.r/255*-1.7884503806-3.5172982438*la)/(pTb+-1.7884503806-3.5172982438);qa-=za;var Wa=(1.97294*(la-za)- -.29227*qa)/-.90649;qa=(la=Math.sqrt(Wa*Wa+qa*qa)/(1.97294*za*(1-za)))?Math.atan2(Wa,qa)*oTb-120:NaN;ba=new vd(qa<0?qa+360:qa,la,za,ba.opacity)}}else ba=new vd(G,D,L,T==null?1:T);return ba}
function vd(G,D,L,T){this.h=+G;this.s=+D;this.l=+L;this.opacity=+T}
function ag(G,D,L,T,ba){var la=G*G,qa=la*G;return((1-3*G+3*la-qa)*D+(4-6*la+3*qa)*L+(1+3*G+3*la-3*qa)*T+qa*ba)/6}
function Bb(G){return function(){return G}}
function hm(G,D){return function(L){return G+L*D}}
function Xn(G,D,L){return G=Math.pow(G,L),D=Math.pow(D,L)-G,L=1/L,function(T){return Math.pow(G+T*D,L)}}
function Xd(G,D){var L=D-G;return L?hm(G,L>180||L<-180?L-360*Math.round(L/360):L):Bb(isNaN(G)?D:G)}
function ff(G){return(G=+G)===1?mk:function(D,L){return L-D?Xn(D,L,G):Bb(isNaN(D)?L:D)}}
function mk(G,D){var L=D-G;return L?hm(G,L):Bb(isNaN(G)?D:G)}
function dr(G){return function(D){var L=D.length,T=Array(L),ba=Array(L),la=Array(L),qa;for(qa=0;qa<L;++qa){var za=$h(D[qa]);T[qa]=za.r||0;ba[qa]=za.g||0;la[qa]=za.b||0}T=G(T);ba=G(ba);la=G(la);za.opacity=1;return function(Wa){za.r=T(Wa);za.g=ba(Wa);za.b=la(Wa);return za+""}}}
function Ta(G,D){return G=+G,D-=G,function(L){return G+D*L}}
function mc(G){return function(){return G}}
function $c(G){return function(D){return G(D)+""}}
function Hc(G,D){var L=TLa.lastIndex=ULa.lastIndex=0,T,ba,la,qa=-1,za=[],Wa=[];G+="";for(D+="";(T=TLa.exec(G))&&(ba=ULa.exec(D));)(la=ba.index)>L&&(la=D.slice(L,la),za[qa]?za[qa]+=la:za[++qa]=la),(T=T[0])===(ba=ba[0])?za[qa]?za[qa]+=ba:za[++qa]=ba:(za[++qa]=null,Wa.push({i:qa,x:Ta(T,ba)})),L=ULa.lastIndex;L<D.length&&(la=D.slice(L),za[qa]?za[qa]+=la:za[++qa]=la);return za.length<2?Wa[0]?$c(Wa[0].x):mc(D):(D=Wa.length,function(Va){for(var Ya=0,gb;Ya<D;++Ya)za[(gb=Wa[Ya]).i]=gb.x(Va);return za.join("")})}
function gf(G,D,L,T,ba,la){var qa,za,Wa;if(qa=Math.sqrt(G*G+D*D))G/=qa,D/=qa;if(Wa=G*L+D*T)L-=G*Wa,T-=D*Wa;if(za=Math.sqrt(L*L+T*T))L/=za,T/=za,Wa/=za;G*T<D*L&&(G=-G,D=-D,Wa=-Wa,qa=-qa);return{translateX:ba,translateY:la,rotate:Math.atan2(D,G)*qTb,skewX:Math.atan(Wa)*qTb,scaleX:qa,scaleY:za}}
function pf(G,D,L,T){function ba(Va){return Va.length?Va.pop()+" ":""}
function la(Va,Ya,gb,Rb,pc,nd){Va!==gb||Ya!==Rb?(pc=pc.push("translate(",null,D,null,L),nd.push({i:pc-4,x:Ta(Va,gb)},{i:pc-2,x:Ta(Ya,Rb)})):(gb||Rb)&&pc.push("translate("+gb+D+Rb+L)}
function qa(Va,Ya,gb,Rb){Va!==Ya?(Va-Ya>180?Ya+=360:Ya-Va>180&&(Va+=360),Rb.push({i:gb.push(ba(gb)+"rotate(",null,T)-2,x:Ta(Va,Ya)})):Ya&&gb.push(ba(gb)+"rotate("+Ya+T)}
function za(Va,Ya,gb,Rb){Va!==Ya?Rb.push({i:gb.push(ba(gb)+"skewX(",null,T)-2,x:Ta(Va,Ya)}):Ya&&gb.push(ba(gb)+"skewX("+Ya+T)}
function Wa(Va,Ya,gb,Rb,pc,nd){Va!==gb||Ya!==Rb?(pc=pc.push(ba(pc)+"scale(",null,",",null,")"),nd.push({i:pc-4,x:Ta(Va,gb)},{i:pc-2,x:Ta(Ya,Rb)})):gb===1&&Rb===1||pc.push(ba(pc)+"scale("+gb+","+Rb+")")}
return function(Va,Ya){var gb=[],Rb=[];Va=G(Va);Ya=G(Ya);la(Va.translateX,Va.translateY,Ya.translateX,Ya.translateY,gb,Rb);qa(Va.rotate,Ya.rotate,gb,Rb);za(Va.skewX,Ya.skewX,gb,Rb);Wa(Va.scaleX,Va.scaleY,Ya.scaleX,Ya.scaleY,gb,Rb);Va=Ya=null;return function(pc){for(var nd=-1,ze=Rb.length,ne;++nd<ze;)gb[(ne=Rb[nd]).i]=ne.x(pc);return gb.join("")}}}
function yd(G){return function(D,L){var T=G((D=Sm(D)).h,(L=Sm(L)).h),ba=mk(D.s,L.s),la=mk(D.l,L.l),qa=mk(D.opacity,L.opacity);return function(za){D.h=T(za);D.s=ba(za);D.l=la(za);D.opacity=qa(za);return D+""}}}
function Wv(G){return function(D,L){var T=G((D=ib(D)).h,(L=ib(L)).h),ba=mk(D.c,L.c),la=mk(D.l,L.l),qa=mk(D.opacity,L.opacity);return function(za){D.h=T(za);D.c=ba(za);D.l=la(za);D.opacity=qa(za);return D+""}}}
function Xv(G){return function T(L){function ba(la,qa){var za=G((la=wb(la)).h,(qa=wb(qa)).h),Wa=mk(la.s,qa.s),Va=mk(la.l,qa.l),Ya=mk(la.opacity,qa.opacity);return function(gb){la.h=za(gb);la.s=Wa(gb);la.l=Va(Math.pow(gb,L));la.opacity=Ya(gb);return la+""}}
L=+L;ba.gamma=T;return ba}(1)}
function VI(){return kK||(rTb(Afa),kK=Q3.now()+$ka)}
function Afa(){kK=0}
function WI(){this._call=this._time=this._next=null}
function I0(G,D,L){var T=new WI;T.restart(G,D,L);return T}
function J0(){kK=(ala=Q3.now())+$ka;AR=R3=0;try{VI();++AR;for(var G=bla,D;G;)(D=kK-G._time)>=0&&G._call.call(null,D),G=G._next;--AR}finally{AR=0;G=bla;for(var L=Infinity;G;)if(G._call){L>G._time&&(L=G._time);var T=G;G=G._next}else D=G._next,G._next=null,G=T?T._next=D:bla=D;S3=T;K0(L);kK=0}}
function hDa(){var G=Q3.now(),D=G-ala;D>1E3&&($ka-=D,ala=G)}
function K0(G){AR||(R3&&(R3=clearTimeout(R3)),G-kK>24?(G<Infinity&&(R3=setTimeout(J0,G-Q3.now()-$ka)),T3&&(T3=clearInterval(T3))):(T3||(ala=Q3.now(),T3=setInterval(hDa,1E3)),AR=1,rTb(J0)))}
function sTb(G,D,L){var T=new WI;D=D==null?0:+D;T.restart(function(ba){T.stop();G(ba+D)},D,L);
return T}
function VLa(G,D,L,T,ba,la){var qa=G.__transition;if(!qa)G.__transition={};else if(L in qa)return;kPc(G,L,{name:D,index:T,group:ba,on:lPc,tween:mPc,time:la.time,delay:la.delay,duration:la.duration,ease:la.ease,timer:null,state:0})}
function WLa(G,D){G=Fy(G,D);if(G.state>0)throw Error("we");return G}
function lK(G,D){G=Fy(G,D);if(G.state>2)throw Error("xe");return G}
function Fy(G,D){G=G.__transition;if(!G||!(G=G[D]))throw Error("ye");return G}
function kPc(G,D,L){function T(Wa){var Va,Ya;if(L.state!==1)return la();for(Rb in qa){var gb=qa[Rb];if(gb.name===L.name){if(gb.state===3)return sTb(T);gb.state===4?(gb.state=6,gb.timer.stop(),gb.on.call("interrupt",G,G.__data__,gb.index,gb.group),delete qa[Rb]):+Rb<D&&(gb.state=6,gb.timer.stop(),delete qa[Rb])}}sTb(function(){L.state===3&&(L.state=4,L.timer.restart(ba,L.delay,L.time),ba(Wa))});
L.state=2;L.on.call("start",G,G.__data__,L.index,L.group);if(L.state===2){L.state=3;za=Array(Ya=L.tween.length);var Rb=0;for(Va=-1;Rb<Ya;++Rb)if(gb=L.tween[Rb].value.call(G,G.__data__,L.index,L.group))za[++Va]=gb;za.length=Va+1}}
function ba(Wa){Wa=Wa<L.duration?L.ease.call(null,Wa/L.duration):(L.timer.restart(la),L.state=5,1);for(var Va=-1,Ya=za.length;++Va<Ya;)za[Va].call(null,Wa);L.state===5&&(L.on.call("end",G,G.__data__,L.index,L.group),la())}
function la(){L.state=6;L.timer.stop();delete qa[D];for(var Wa in qa)return;delete G.__transition}
var qa=G.__transition,za;qa[D]=L;L.timer=I0(function(Wa){L.state=1;L.timer.restart(T,L.delay,L.time);L.delay<=Wa&&T(Wa-L.delay)},0,L.time)}
function nPc(G,D){var L,T;return function(){var ba=lK(this,G),la=ba.tween;if(la!==L){T=L=la;la=0;for(var qa=T.length;la<qa;++la)if(T[la].name===D){T=T.slice();T.splice(la,1);break}}ba.tween=T}}
function oPc(G,D,L){var T,ba;if(typeof L!=="function")throw Error();return function(){var la=lK(this,G),qa=la.tween;if(qa!==T){ba=(T=qa).slice();qa={name:D,value:L};for(var za=0,Wa=ba.length;za<Wa;++za)if(ba[za].name===D){ba[za]=qa;break}za===Wa&&ba.push(qa)}la.tween=ba}}
function XLa(G,D,L){var T=G._id;G.each(function(){var ba=lK(this,T);(ba.value||(ba.value={}))[D]=L.apply(this,arguments)});
return function(ba){return Fy(ba,T).value[D]}}
function tTb(G,D){var L;return(typeof D==="number"?Ta:D instanceof ld?uTb:(L=ld(D))?(D=L,uTb):Hc)(G,D)}
function pPc(G){return function(){this.removeAttribute(G)}}
function qPc(G){return function(){this.removeAttributeNS(G.space,G.local)}}
function rPc(G,D,L){var T,ba;return function(){var la=this.getAttribute(G);return la===L?null:la===T?ba:ba=D(T=la,L)}}
function sPc(G,D,L){var T,ba;return function(){var la=this.getAttributeNS(G.space,G.local);return la===L?null:la===T?ba:ba=D(T=la,L)}}
function tPc(G,D,L){var T,ba,la;return function(){var qa=L(this);if(qa==null)return void this.removeAttribute(G);var za=this.getAttribute(G);return za===qa?null:za===T&&qa===ba?la:la=D(T=za,ba=qa)}}
function uPc(G,D,L){var T,ba,la;return function(){var qa=L(this);if(qa==null)return void this.removeAttributeNS(G.space,G.local);var za=this.getAttributeNS(G.space,G.local);return za===qa?null:za===T&&qa===ba?la:la=D(T=za,ba=qa)}}
function vPc(G,D){function L(){var T=this,ba=D.apply(T,arguments);return ba&&function(la){T.setAttributeNS(G.space,G.local,ba(la))}}
L._value=D;return L}
function wPc(G,D){function L(){var T=this,ba=D.apply(T,arguments);return ba&&function(la){T.setAttribute(G,ba(la))}}
L._value=D;return L}
function xPc(G,D){return function(){WLa(this,G).delay=+D.apply(this,arguments)}}
function yPc(G,D){return D=+D,function(){WLa(this,G).delay=D}}
function zPc(G,D){return function(){lK(this,G).duration=+D.apply(this,arguments)}}
function APc(G,D){return D=+D,function(){lK(this,G).duration=D}}
function BPc(G,D){if(typeof D!=="function")throw Error();return function(){lK(this,G).ease=D}}
function CPc(G){return(G+"").trim().split(/^|\s+/).every(function(D){var L=D.indexOf(".");L>=0&&(D=D.slice(0,L));return!D||D==="start"})}
function DPc(G,D,L){var T,ba,la=CPc(D)?WLa:lK;return function(){var qa=la(this,G),za=qa.on;if(za!==T)(ba=(T=za).copy()).on(D,L);qa.on=ba}}
function EPc(G){return function(){var D=this.parentNode,L;for(L in this.__transition)if(+L!==G)return;D&&D.removeChild(this)}}
function FPc(G,D){var L,T,ba;return function(){var la=Ia(this,G),qa=(this.style.removeProperty(G),Ia(this,G));return la===qa?null:la===L&&qa===T?ba:ba=D(L=la,T=qa)}}
function GPc(G){return function(){this.style.removeProperty(G)}}
function HPc(G,D,L){var T,ba;return function(){var la=Ia(this,G);return la===L?null:la===T?ba:ba=D(T=la,L)}}
function IPc(G,D,L){var T,ba,la;return function(){var qa=Ia(this,G),za=L(this);za==null&&(za=(this.style.removeProperty(G),Ia(this,G)));return qa===za?null:qa===T&&za===ba?la:la=D(T=qa,ba=za)}}
function JPc(G,D,L){function T(){var ba=this,la=D.apply(ba,arguments);return la&&function(qa){ba.style.setProperty(G,la(qa),L)}}
T._value=D;return T}
function KPc(G){return function(){this.textContent=G}}
function LPc(G){return function(){var D=G(this);this.textContent=D==null?"":D}}
function CF(G,D,L,T){this._groups=G;this._parents=D;this._name=L;this._id=T}
function YLa(G){return{type:G}}
function ZLa(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function cla(){}
function vTb(G,D){var L=new cla;if(G instanceof cla)G.each(function(qa,za){L.set(za,qa)});
else if(Array.isArray(G)){var T=-1,ba=G.length,la;if(D==null)for(;++T<ba;)L.set(T,G[T]);else for(;++T<ba;)L.set(D(la=G[T],T,G),la)}else if(G)for(T in G)L.set(T,G[T]);return L}
function dla(){}
function wTb(G){return function(D){for(var L={},T=0;T<G.length;T++)L[G[T]]=D[T]||"";return L}}
function MPc(G,D){var L=wTb(G);return function(T,ba){return D(L(T),ba,G)}}
function NPc(G){var D=Object.create(null),L=[];G.forEach(function(T){for(var ba in T)ba in D||L.push(D[ba]=ba)});
return L}
function xTb(G){function D(qa,za){function Wa(){if(nd)return $La;if(ze)return ze=!1,yTb;var Qk,nh=gb,jo;if(qa.charCodeAt(nh)===34){for(;gb++<Ya&&qa.charCodeAt(gb)!==34||qa.charCodeAt(++gb)===34;);(Qk=gb)>=Ya?nd=!0:(jo=qa.charCodeAt(gb++))===10?ze=!0:jo===13&&(ze=!0,qa.charCodeAt(gb)===10&&++gb);return qa.slice(nh+1,Qk-1).replace(/""/g,'"')}for(;gb<Ya;){if((jo=qa.charCodeAt(Qk=gb++))===10)ze=!0;else if(jo===13)ze=!0,qa.charCodeAt(gb)===10&&++gb;else if(jo!==la)continue;return qa.slice(nh,Qk)}return nd=
!0,qa.slice(nh,Ya)}
var Va=[],Ya=qa.length,gb=0,Rb=0,pc,nd=Ya<=0,ze=!1;qa.charCodeAt(Ya-1)===10&&--Ya;for(qa.charCodeAt(Ya-1)===13&&--Ya;(pc=Wa())!==$La;){for(var ne=[];pc!==yTb&&pc!==$La;)ne.push(pc),pc=Wa();za&&(ne=za(ne,Rb++))==null||Va.push(ne)}return Va}
function L(qa){return qa.map(T).join(G)}
function T(qa){return qa==null?"":ba.test(qa)?'"'+qa.replace(/"/g,'""')+'"':qa}
var ba=new RegExp('["'+G+"\n\r]"),la=G.charCodeAt(0);return{parse:function(qa,za){var Wa,Va;qa=D(qa,function(Ya,gb){if(Wa)return Wa(Ya,gb-1);Va=Ya;Wa=za?MPc(Ya,za):wTb(Ya)});
qa.columns=Va||[];return qa},
parseRows:D,format:function(qa,za){za==null&&(za=NPc(qa));return[za.map(T).join(G)].concat(qa.map(function(Wa){return za.map(function(Va){return T(Wa[Va])}).join(G)})).join("\n")},
formatRows:function(qa){return qa.map(L).join("\n")}}}
function OPc(G){if(!G.ok)throw Error("ze`"+G.status+"`"+G.statusText);return G.text()}
function zTb(G){return function(D,L,T){arguments.length===2&&typeof L==="function"&&(T=L,L=void 0);return fetch(D,L).then(OPc).then(function(ba){return G(ba,T)})}}
function ATb(G,D,L,T){if(isNaN(D)||isNaN(L))return G;var ba,la=G._root;T={data:T};var qa=G._x0,za=G._y0,Wa=G._x1,Va=G._y1,Ya,gb,Rb,pc,nd;if(!la)return G._root=T,G;for(;la.length;)if((Rb=D>=(Ya=(qa+Wa)/2))?qa=Ya:Wa=Ya,(pc=L>=(gb=(za+Va)/2))?za=gb:Va=gb,ba=la,!(la=la[nd=pc<<1|Rb]))return ba[nd]=T,G;var ze=+G._x.call(null,la.data);var ne=+G._y.call(null,la.data);if(D===ze&&L===ne)return T.next=la,ba?ba[nd]=T:G._root=T,G;do ba=ba?ba[nd]=Array(4):G._root=Array(4),(Rb=D>=(Ya=(qa+Wa)/2))?qa=Ya:Wa=Ya,(pc=
L>=(gb=(za+Va)/2))?za=gb:Va=gb;while((nd=pc<<1|Rb)===(Rb=(ne>=gb)<<1|ze>=Ya));return ba[Rb]=la,ba[nd]=T,G}
function pq(G,D,L,T,ba){this.node=G;this.x0=D;this.y0=L;this.x1=T;this.y1=ba}
function PPc(G){return G[0]}
function QPc(G){return G[1]}
function aMa(G,D,L,T,ba,la){this._x=G;this._y=D;this._x0=L;this._y0=T;this._x1=ba;this._y1=la;this._root=void 0}
function BTb(G){for(var D={data:G.data},L=D;G=G.next;)L=L.next={data:G.data};return D}
function ela(G,D){if((D=(G=D?G.toExponential(D-1):G.toExponential()).indexOf("e"))<0)return null;var L=G.slice(0,D);return[L.length>1?L[0]+L.slice(2):L,+G.slice(D+1)]}
function RPc(G){return G=ela(Math.abs(G)),G?G[1]:NaN}
function SPc(G,D){return function(L,T){for(var ba=L.length,la=[],qa=0,za=G[0],Wa=0;ba>0&&za>0;){Wa+za+1>T&&(za=Math.max(1,T-Wa));la.push(L.substring(ba-=za,ba+za));if((Wa+=za+1)>T)break;za=G[qa=(qa+1)%G.length]}return la.reverse().join(D)}}
function TPc(G){return function(D){return D.replace(/[0-9]/g,function(L){return G[+L]})}}
function bMa(G){return new cMa(G)}
function cMa(G){if(!(D=UPc.exec(G)))throw Error("Ae`"+G);var D;this.fill=D[1]||" ";this.align=D[2]||">";this.sign=D[3]||"-";this.symbol=D[4]||"";this.zero=!!D[5];this.width=D[6]&&+D[6];this.comma=!!D[7];this.precision=D[8]&&+D[8].slice(1);this.trim=!!D[9];this.type=D[10]||""}
function CTb(G,D){D=ela(G,D);if(!D)return G+"";G=D[0];D=D[1];return D<0?"0."+Array(-D).join("0")+G:G.length>D+1?G.slice(0,D+1)+"."+G.slice(D+1):G+Array(D-G.length+2).join("0")}
function DTb(G){return G}
function VPc(G){function D(za){function Wa(Pd){var rk=jo,Cc=ft,jd,ad;if(nh==="c")Cc=oh(Pd)+Cc,Pd="";else{Pd=+Pd;var rc=Pd<0;Pd=oh(Math.abs(Pd),ne);if(Qk){var gi=Pd.length,yl=1,Rk=-1;a:for(;yl<gi;++yl)switch(Pd[yl]){case ".":Rk=jd=yl;break;case "0":Rk===0&&(Rk=yl);jd=yl;break;default:if(!+Pd[yl])break a;Rk>0&&(Rk=0)}Pd=Rk>0?Pd.slice(0,Rk)+Pd.slice(jd+1):Pd}rc&&+Pd===0&&(rc=!1);rk=(rc?gb==="("?gb:"-":gb==="-"||gb==="("?"":gb)+rk;Cc=(nh==="s"?ETb[8+FTb/3]:"")+Cc+(rc&&gb==="("?")":"");if(cg)for(rc=-1,
jd=Pd.length;++rc<jd;)if(ad=Pd.charCodeAt(rc),48>ad||ad>57){Cc=(ad===46?ba+Pd.slice(rc+1):Pd.slice(rc))+Cc;Pd=Pd.slice(0,rc);break}}ze&&!pc&&(Pd=L(Pd,Infinity));ad=rk.length+Pd.length+Cc.length;rc=ad<nd?Array(nd-ad+1).join(Va):"";ze&&pc&&(Pd=L(rc+Pd,rc.length?nd-Cc.length:Infinity),rc="");switch(Ya){case "<":Pd=rk+Pd+Cc+rc;break;case "=":Pd=rk+rc+Pd+Cc;break;case "^":Pd=rc.slice(0,ad=rc.length>>1)+rk+Pd+Cc+rc.slice(ad);break;default:Pd=rc+rk+Pd+Cc}return la(Pd)}
za=bMa(za);var Va=za.fill,Ya=za.align,gb=za.sign,Rb=za.symbol,pc=za.zero,nd=za.width,ze=za.comma,ne=za.precision,Qk=za.trim,nh=za.type;nh==="n"?(ze=!0,nh="g"):GTb[nh]||(ne==null&&(ne=12),Qk=!0,nh="g");if(pc||Va==="0"&&Ya==="=")pc=!0,Va="0",Ya="=";var jo=Rb==="$"?T[0]:Rb==="#"&&/[boxX]/.test(nh)?"0"+nh.toLowerCase():"",ft=Rb==="$"?T[1]:/[%p]/.test(nh)?qa:"",oh=GTb[nh],cg=/[defgprs%]/.test(nh);ne=ne==null?6:/[gprs]/.test(nh)?Math.max(1,Math.min(21,ne)):Math.max(0,Math.min(20,ne));Wa.toString=function(){return za+
""};
return Wa}
var L=G.grouping&&G.thousands?SPc(G.grouping,G.thousands):DTb,T=G.currency,ba=G.decimal,la=G.numerals?TPc(G.numerals):DTb,qa=G.percent||"%";return{format:D,formatPrefix:function(za,Wa){var Va=D((za=bMa(za),za.type="f",za));za=Math.max(-8,Math.min(8,Math.floor(RPc(Wa)/3)))*3;var Ya=Math.pow(10,-za),gb=ETb[8+za/3];return function(Rb){return Va(Ya*Rb)+gb}}}}
function qw(){this.reset()}
function HTb(G,D,L){var T=G.s=D+L,ba=T-D;G.t=D-(T-ba)+(L-ba)}
function fla(G){return G>1?Ou:G<-1?-Ou:Math.asin(G)}
function WPc(){}
function ITb(G){var D=G[0];G=G[1];var L=Pu(G);return[L*Pu(D),L*pp(D),pp(G)]}
function JTb(G,D){return[G[1]*D[2]-G[2]*D[1],G[2]*D[0]-G[0]*D[2],G[0]*D[1]-G[1]*D[0]]}
function KTb(G){var D=gla(G[0]*G[0]+G[1]*G[1]+G[2]*G[2]);G[0]/=D;G[1]/=D;G[2]/=D}
function XPc(){var G=[],D;return{point:function(L,T){D.push([L,T])},
lineStart:function(){G.push(D=[])},
lineEnd:WPc,rejoin:function(){G.length>1&&G.push(G.pop().concat(G.shift()))},
result:function(){var L=G;G=[];D=null;return L}}}
function hla(G,D,L,T){this.x=G;this.z=D;this.o=L;this.e=T;this.v=!1;this.n=this.p=null}
function YPc(G,D,L,T,ba){var la=[],qa=[];G.forEach(function(gb){if(!((Rb=gb.length-1)<=0)){var Rb,pc=gb[0],nd=gb[Rb],ze=pc;if(DF(ze[0]-nd[0])<1E-6&&DF(ze[1]-nd[1])<1E-6){ba.lineStart();for(za=0;za<Rb;++za)ba.point((pc=gb[za])[0],pc[1]);ba.lineEnd()}else la.push(Rb=new hla(pc,gb,null,!0)),qa.push(Rb.o=new hla(pc,null,Rb,!1)),la.push(Rb=new hla(nd,gb,null,!1)),qa.push(Rb.o=new hla(nd,null,Rb,!0))}});
if(la.length){qa.sort(D);LTb(la);LTb(qa);var za=0;for(G=qa.length;za<G;++za)qa[za].e=L=!L;L=la[0];for(var Wa;;){for(var Va=L,Ya=!0;Va.v;)if((Va=Va.n)===L)return;D=Va.z;ba.lineStart();do{Va.v=Va.o.v=!0;if(Va.e){if(Ya)for(za=0,G=D.length;za<G;++za)ba.point((Wa=D[za])[0],Wa[1]);else T(Va.x,Va.n.x,1,ba);Va=Va.n}else{if(Ya)for(D=Va.p.z,za=D.length-1;za>=0;--za)ba.point((Wa=D[za])[0],Wa[1]);else T(Va.x,Va.p.x,-1,ba);Va=Va.p}Va=Va.o;D=Va.z;Ya=!Ya}while(!Va.v);ba.lineEnd()}}}
function LTb(G){if(D=G.length){for(var D,L=0,T=G[0],ba;++L<D;)T.n=ba=G[L],ba.p=T,T=ba;T.n=ba=G[0];ba.p=T}}
function ZPc(G){return G.length>1}
function $Pc(G,D){return((G=G.x)[0]<0?G[1]-Ou-1E-6:Ou-G[1])-((D=D.x)[0]<0?D[1]-Ou-1E-6:Ou-D[1])}
function dMa(){}
function MTb(G){return function(D,L){var T=Pu(D),ba=Pu(L);T=G(T*ba);return[T*ba*pp(D),T*pp(L)]}}
function U3(G){return function(D,L){var T=gla(D*D+L*L),ba=G(T),la=pp(ba);ba=Pu(ba);return[NTb(D*la,T*ba),fla(T&&L*la/T)]}}
function aQc(G){var D=0,L=G.children,T=L&&L.length;if(T)for(;--T>=0;)D+=L[T].value;else D=1;G.value=D}
function OTb(G,D){var L=new V3(G);G=+G.value&&(L.value=G.value);var T,ba=[L],la,qa,za,Wa;for(D==null&&(D=bQc);T=ba.pop();)if(G&&(T.value=+T.data.value),(qa=D(T.data))&&(Wa=qa.length))for(T.children=Array(Wa),za=Wa-1;za>=0;--za)ba.push(la=T.children[za]=new V3(qa[za])),la.parent=T,la.depth=T.depth+1;return L.eachBefore(cQc)}
function bQc(G){return G.children}
function dQc(G){G.data=G.data.data}
function cQc(G){var D=0;do G.height=D;while((G=G.parent)&&G.height<++D)}
function V3(G){this.data=G;this.depth=this.height=0;this.parent=null}
function cn(G,D,L,T){function ba(la){return G(la=new Date(+la)),la}
ba.floor=ba;ba.ceil=function(la){return G(la=new Date(la-1)),D(la,1),G(la),la};
ba.round=function(la){var qa=ba(la),za=ba.ceil(la);return la-qa<za-la?qa:za};
ba.offset=function(la,qa){return D(la=new Date(+la),qa==null?1:Math.floor(qa)),la};
ba.range=function(la,qa,za){var Wa=[],Va;la=ba.ceil(la);za=za==null?1:Math.floor(za);if(!(la<qa&&za>0))return Wa;do Wa.push(Va=new Date(+la)),D(la,za),G(la);while(Va<la&&la<qa);return Wa};
ba.filter=function(la){return cn(function(qa){if(qa>=qa)for(;G(qa),!la(qa);)qa.setTime(qa-1)},function(qa,za){if(qa>=qa)if(za<0)for(;++za<=0;)for(;D(qa,-1),!la(qa););
else for(;--za>=0;)for(;D(qa,1),!la(qa););})};
L&&(ba.count=function(la,qa){eMa.setTime(+la);fMa.setTime(+qa);G(eMa);G(fMa);return Math.floor(L(eMa,fMa))},ba.every=function(la){la=Math.floor(la);
return isFinite(la)&&la>0?la>1?ba.filter(T?function(qa){return T(qa)%la===0}:function(qa){return ba.count(0,qa)%la===0}):ba:null});
return ba}
function mK(G){return cn(function(D){D.setDate(D.getDate()-(D.getDay()+7-G)%7);D.setHours(0,0,0,0)},function(D,L){D.setDate(D.getDate()+L*7)},function(D,L){return(L-D-(L.getTimezoneOffset()-D.getTimezoneOffset())*6E4)/6048E5})}
function nK(G){return cn(function(D){D.setUTCDate(D.getUTCDate()-(D.getUTCDay()+7-G)%7);D.setUTCHours(0,0,0,0)},function(D,L){D.setUTCDate(D.getUTCDate()+L*7)},function(D,L){return(L-D)/6048E5})}
function eQc(G){if(0<=G.y&&G.y<100){var D=new Date(-1,G.m,G.d,G.H,G.M,G.S,G.L);D.setFullYear(G.y);return D}return new Date(G.y,G.m,G.d,G.H,G.M,G.S,G.L)}
function ila(G){if(0<=G.y&&G.y<100){var D=new Date(Date.UTC(-1,G.m,G.d,G.H,G.M,G.S,G.L));D.setUTCFullYear(G.y);return D}return new Date(Date.UTC(G.y,G.m,G.d,G.H,G.M,G.S,G.L))}
function W3(G){return{y:G,m:0,d:1,H:0,M:0,S:0,L:0}}
function fQc(G){function D(Cc,jd){return function(ad){var rc=[],gi=-1,yl=0,Rk=Cc.length,Bi,WB;for(ad instanceof Date||(ad=new Date(+ad));++gi<Rk;)if(Cc.charCodeAt(gi)===37){rc.push(Cc.slice(yl,gi));(yl=PTb[Bi=Cc.charAt(++gi)])!=null?Bi=Cc.charAt(++gi):yl=Bi==="e"?" ":"0";if(WB=jd[Bi])Bi=WB(ad,yl);rc.push(Bi);yl=gi+1}rc.push(Cc.slice(yl,gi));return rc.join("")}}
function L(Cc,jd){return function(ad){var rc=W3(1900);if(T(rc,Cc,ad,0)!=ad.length)return null;if("Q"in rc)return new Date(rc.Q);"p"in rc&&(rc.H=rc.H%12+rc.p*12);if("V"in rc){if(rc.V<1||rc.V>53)return null;"w"in rc||(rc.w=1);if("Z"in rc){ad=ila(W3(rc.y));var gi=ad.getUTCDay();ad=gi>4||gi===0?gMa.ceil(ad):gMa(ad);ad=QTb.offset(ad,(rc.V-1)*7);rc.y=ad.getUTCFullYear();rc.m=ad.getUTCMonth();rc.d=ad.getUTCDate()+(rc.w+6)%7}else ad=jd(W3(rc.y)),gi=ad.getDay(),ad=gi>4||gi===0?hMa.ceil(ad):hMa(ad),ad=RTb.offset(ad,
(rc.V-1)*7),rc.y=ad.getFullYear(),rc.m=ad.getMonth(),rc.d=ad.getDate()+(rc.w+6)%7}else if("W"in rc||"U"in rc)"w"in rc||(rc.w="u"in rc?rc.u%7:"W"in rc?1:0),gi="Z"in rc?ila(W3(rc.y)).getUTCDay():jd(W3(rc.y)).getDay(),rc.m=0,rc.d="W"in rc?(rc.w+6)%7+rc.W*7-(gi+5)%7:rc.w+rc.U*7-(gi+6)%7;return"Z"in rc?(rc.H+=rc.Z/100|0,rc.M+=rc.Z%100,ila(rc)):jd(rc)}}
function T(Cc,jd,ad,rc){for(var gi=0,yl=jd.length,Rk=ad.length,Bi;gi<yl;){if(rc>=Rk)return-1;Bi=jd.charCodeAt(gi++);if(Bi===37){if(Bi=jd.charAt(gi++),Bi=rk[Bi in PTb?jd.charAt(gi++):Bi],!Bi||(rc=Bi(Cc,ad,rc))<0)return-1}else if(Bi!=ad.charCodeAt(rc++))return-1}return rc}
var ba=G.dateTime,la=G.date,qa=G.time,za=G.periods,Wa=G.days,Va=G.shortDays,Ya=G.months,gb=G.shortMonths,Rb=X3(za),pc=Y3(za),nd=X3(Wa),ze=Y3(Wa),ne=X3(Va),Qk=Y3(Va),nh=X3(Ya),jo=Y3(Ya),ft=X3(gb),oh=Y3(gb),cg={a:function(Cc){return Va[Cc.getDay()]},
A:function(Cc){return Wa[Cc.getDay()]},
b:function(Cc){return gb[Cc.getMonth()]},
B:function(Cc){return Ya[Cc.getMonth()]},
c:null,d:STb,e:STb,f:gQc,H:hQc,I:iQc,j:jQc,L:TTb,m:kQc,M:lQc,p:function(Cc){return za[+(Cc.getHours()>=12)]},
Q:UTb,s:VTb,S:mQc,u:nQc,U:oQc,V:pQc,w:qQc,W:rQc,x:null,X:null,y:sQc,Y:tQc,Z:uQc,"%":WTb},Pd={a:function(Cc){return Va[Cc.getUTCDay()]},
A:function(Cc){return Wa[Cc.getUTCDay()]},
b:function(Cc){return gb[Cc.getUTCMonth()]},
B:function(Cc){return Ya[Cc.getUTCMonth()]},
c:null,d:XTb,e:XTb,f:vQc,H:wQc,I:xQc,j:yQc,L:YTb,m:zQc,M:AQc,p:function(Cc){return za[+(Cc.getUTCHours()>=12)]},
Q:UTb,s:VTb,S:BQc,u:CQc,U:DQc,V:EQc,w:FQc,W:GQc,x:null,X:null,y:HQc,Y:IQc,Z:JQc,"%":WTb},rk={a:function(Cc,jd,ad){return(jd=ne.exec(jd.slice(ad)))?(Cc.w=Qk[jd[0].toLowerCase()],ad+jd[0].length):-1},
A:function(Cc,jd,ad){return(jd=nd.exec(jd.slice(ad)))?(Cc.w=ze[jd[0].toLowerCase()],ad+jd[0].length):-1},
b:function(Cc,jd,ad){return(jd=ft.exec(jd.slice(ad)))?(Cc.m=oh[jd[0].toLowerCase()],ad+jd[0].length):-1},
B:function(Cc,jd,ad){return(jd=nh.exec(jd.slice(ad)))?(Cc.m=jo[jd[0].toLowerCase()],ad+jd[0].length):-1},
c:function(Cc,jd,ad){return T(Cc,ba,jd,ad)},
d:ZTb,e:ZTb,f:KQc,H:$Tb,I:$Tb,j:LQc,L:MQc,m:NQc,M:OQc,p:function(Cc,jd,ad){return(jd=Rb.exec(jd.slice(ad)))?(Cc.p=pc[jd[0].toLowerCase()],ad+jd[0].length):-1},
Q:PQc,s:QQc,S:RQc,u:SQc,U:TQc,V:UQc,w:VQc,W:WQc,x:function(Cc,jd,ad){return T(Cc,la,jd,ad)},
X:function(Cc,jd,ad){return T(Cc,qa,jd,ad)},
y:XQc,Y:YQc,Z:ZQc,"%":$Qc};cg.x=D(la,cg);cg.X=D(qa,cg);cg.c=D(ba,cg);Pd.x=D(la,Pd);Pd.X=D(qa,Pd);Pd.c=D(ba,Pd);return{format:function(Cc){var jd=D(Cc,cg);jd.toString=function(){return Cc};
return jd},
parse:function(Cc){var jd=L(Cc,eQc);jd.toString=function(){return Cc};
return jd},
utcFormat:function(Cc){var jd=D(Cc,Pd);jd.toString=function(){return Cc};
return jd},
utcParse:function(Cc){var jd=L(Cc,ila);jd.toString=function(){return Cc};
return jd}}}
function Hh(G,D,L){var T=G<0?"-":"";G=(T?-G:G)+"";var ba=G.length;return T+(ba<L?Array(L-ba+1).join(D)+G:G)}
function aRc(G){return G.replace(bRc,"\\$&")}
function X3(G){return new RegExp("^(?:"+G.map(aRc).join("|")+")","i")}
function Y3(G){for(var D={},L=-1,T=G.length;++L<T;)D[G[L].toLowerCase()]=L;return D}
function VQc(G,D,L){return(D=ko.exec(D.slice(L,L+1)))?(G.w=+D[0],L+D[0].length):-1}
function SQc(G,D,L){return(D=ko.exec(D.slice(L,L+1)))?(G.u=+D[0],L+D[0].length):-1}
function TQc(G,D,L){return(D=ko.exec(D.slice(L,L+2)))?(G.U=+D[0],L+D[0].length):-1}
function UQc(G,D,L){return(D=ko.exec(D.slice(L,L+2)))?(G.V=+D[0],L+D[0].length):-1}
function WQc(G,D,L){return(D=ko.exec(D.slice(L,L+2)))?(G.W=+D[0],L+D[0].length):-1}
function YQc(G,D,L){return(D=ko.exec(D.slice(L,L+4)))?(G.y=+D[0],L+D[0].length):-1}
function XQc(G,D,L){return(D=ko.exec(D.slice(L,L+2)))?(G.y=+D[0]+(+D[0]>68?1900:2E3),L+D[0].length):-1}
function ZQc(G,D,L){return(D=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(D.slice(L,L+6)))?(G.Z=D[1]?0:-(D[2]+(D[3]||"00")),L+D[0].length):-1}
function NQc(G,D,L){return(D=ko.exec(D.slice(L,L+2)))?(G.m=D[0]-1,L+D[0].length):-1}
function ZTb(G,D,L){return(D=ko.exec(D.slice(L,L+2)))?(G.d=+D[0],L+D[0].length):-1}
function LQc(G,D,L){return(D=ko.exec(D.slice(L,L+3)))?(G.m=0,G.d=+D[0],L+D[0].length):-1}
function $Tb(G,D,L){return(D=ko.exec(D.slice(L,L+2)))?(G.H=+D[0],L+D[0].length):-1}
function OQc(G,D,L){return(D=ko.exec(D.slice(L,L+2)))?(G.M=+D[0],L+D[0].length):-1}
function RQc(G,D,L){return(D=ko.exec(D.slice(L,L+2)))?(G.S=+D[0],L+D[0].length):-1}
function MQc(G,D,L){return(D=ko.exec(D.slice(L,L+3)))?(G.L=+D[0],L+D[0].length):-1}
function KQc(G,D,L){return(D=ko.exec(D.slice(L,L+6)))?(G.L=Math.floor(D[0]/1E3),L+D[0].length):-1}
function $Qc(G,D,L){return(G=cRc.exec(D.slice(L,L+1)))?L+G[0].length:-1}
function PQc(G,D,L){return(D=ko.exec(D.slice(L)))?(G.Q=+D[0],L+D[0].length):-1}
function QQc(G,D,L){return(D=ko.exec(D.slice(L)))?(G.Q=+D[0]*1E3,L+D[0].length):-1}
function STb(G,D){return Hh(G.getDate(),D,2)}
function hQc(G,D){return Hh(G.getHours(),D,2)}
function iQc(G,D){return Hh(G.getHours()%12||12,D,2)}
function jQc(G,D){return Hh(1+RTb.count(BR(G),G),D,3)}
function TTb(G,D){return Hh(G.getMilliseconds(),D,3)}
function gQc(G,D){return TTb(G,D)+"000"}
function kQc(G,D){return Hh(G.getMonth()+1,D,2)}
function lQc(G,D){return Hh(G.getMinutes(),D,2)}
function mQc(G,D){return Hh(G.getSeconds(),D,2)}
function nQc(G){G=G.getDay();return G===0?7:G}
function oQc(G,D){return Hh(dRc.count(BR(G),G),D,2)}
function pQc(G,D){var L=G.getDay();G=L>=4||L===0?iMa(G):iMa.ceil(G);return Hh(iMa.count(BR(G),G)+(BR(G).getDay()===4),D,2)}
function qQc(G){return G.getDay()}
function rQc(G,D){return Hh(hMa.count(BR(G),G),D,2)}
function sQc(G,D){return Hh(G.getFullYear()%100,D,2)}
function tQc(G,D){return Hh(G.getFullYear()%1E4,D,4)}
function uQc(G){G=G.getTimezoneOffset();return(G>0?"-":(G*=-1,"+"))+Hh(G/60|0,"0",2)+Hh(G%60,"0",2)}
function XTb(G,D){return Hh(G.getUTCDate(),D,2)}
function wQc(G,D){return Hh(G.getUTCHours(),D,2)}
function xQc(G,D){return Hh(G.getUTCHours()%12||12,D,2)}
function yQc(G,D){return Hh(1+QTb.count(CR(G),G),D,3)}
function YTb(G,D){return Hh(G.getUTCMilliseconds(),D,3)}
function vQc(G,D){return YTb(G,D)+"000"}
function zQc(G,D){return Hh(G.getUTCMonth()+1,D,2)}
function AQc(G,D){return Hh(G.getUTCMinutes(),D,2)}
function BQc(G,D){return Hh(G.getUTCSeconds(),D,2)}
function CQc(G){G=G.getUTCDay();return G===0?7:G}
function DQc(G,D){return Hh(eRc.count(CR(G),G),D,2)}
function EQc(G,D){var L=G.getUTCDay();G=L>=4||L===0?jMa(G):jMa.ceil(G);return Hh(jMa.count(CR(G),G)+(CR(G).getUTCDay()===4),D,2)}
function FQc(G){return G.getUTCDay()}
function GQc(G,D){return Hh(gMa.count(CR(G),G),D,2)}
function HQc(G,D){return Hh(G.getUTCFullYear()%100,D,2)}
function IQc(G,D){return Hh(G.getUTCFullYear()%1E4,D,4)}
function JQc(){return"+0000"}
function WTb(){return"%"}
function UTb(G){return+G}
function VTb(G){return Math.floor(+G/1E3)}
function Ve(G){for(var D=G.length/6|0,L=Array(D),T=0;T<D;)L[T]="#"+G.slice(T*6,++T*6);return L}
function hi(G){return fRc(G[G.length-1])}
function jla(G){var D=G.length;return function(L){return G[Math.max(0,Math.min(D-1,Math.floor(L*D)))]}}
function aUb(G){this._context=G}
function bUb(G){this._curve=G}
function cUb(G,D,L){var T=G._x1-G._x0;D-=G._x1;var ba=(G._y1-G._y0)/(T||D<0&&-0);G=(L-G._y1)/(D||T<0&&-0);return((ba<0?-1:1)+(G<0?-1:1))*Math.min(Math.abs(ba),Math.abs(G),.5*Math.abs((ba*D+G*T)/(T+D)))||0}
function dUb(G,D){var L=G._x1-G._x0;return L?(3*(G._y1-G._y0)/L-D)/2:D}
function kMa(G,D,L){var T=G._x0,ba=G._x1,la=G._y1,qa=(ba-T)/3;G._context.bezierCurveTo(T+qa,G._y0+qa*D,ba-qa,la-qa*L,ba,la)}
function lMa(G){this._context=G}
function eUb(G){this._context=G}
function Z3(G,D,L){this.k=G;this.x=D;this.y=L}
(function(G){G.length===1&&(G=b(G));return{left:function(D,L,T,ba){T==null&&(T=0);ba==null&&(ba=D.length);for(;T<ba;){var la=T+ba>>>1;G(D[la],L)<0?T=la+1:ba=la}return T},
right:function(D,L,T,ba){T==null&&(T=0);ba==null&&(ba=D.length);for(;T<ba;){var la=T+ba>>>1;G(D[la],L)>0?ba=la:T=la+1}return T}}})(a);
var ZOc={value:function(){}};
d.prototype=c.prototype={constructor:d,on:function(G,D){var L=this._,T=e(G+"",L),ba,la=-1,qa=T.length;if(arguments.length<2)for(;++la<qa;){var za;if(za=ba=(G=T[la]).type){a:{za=L[ba];for(var Wa=0,Va=za.length;Wa<Va;++Wa)if((ba=za[Wa]).name===G.name){ba=ba.value;break a}ba=void 0}za=ba}if(za)return ba}else{if(D!=null&&typeof D!=="function")throw Error("Be`"+D);for(;++la<qa;)if(ba=(G=T[la]).type)L[ba]=g(L[ba],G.name,D);else if(D==null)for(ba in L)L[ba]=g(L[ba],G.name,null);return this}},
copy:function(){var G={},D=this._,L;for(L in D)G[L]=D[L].slice();return new d(G)},
call:function(G,D){if((ba=arguments.length-2)>0)for(var L=Array(ba),T=0,ba,la;T<ba;++T)L[T]=arguments[T+2];if(!this._.hasOwnProperty(G))throw Error("ve`"+G);la=this._[G];T=0;for(ba=la.length;T<ba;++T)la[T].value.apply(D,L)},
apply:function(G,D,L){if(!this._.hasOwnProperty(G))throw Error("ve`"+G);G=this._[G];for(var T=0,ba=G.length;T<ba;++T)G[T].value.apply(D,L)}};
var Nu={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},fUb=function(G){return function(){return this.matches(G)}};
if(typeof document!=="undefined"){var $3=document.documentElement;if(!$3.matches){var gRc=$3.webkitMatchesSelector||$3.msMatchesSelector||$3.mozMatchesSelector||$3.oMatchesSelector;fUb=function(G){return function(){return gRc.call(this,G)}}}}var gUb=fUb;
A.prototype={constructor:A,appendChild:function(G){return this._parent.insertBefore(G,this._next)},
insertBefore:function(G,D){return this._parent.insertBefore(G,D)},
querySelector:function(G){return this._parent.querySelector(G)},
querySelectorAll:function(G){return this._parent.querySelectorAll(G)}};
var jTb={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(jTb={mouseenter:"mouseover",mouseleave:"mouseout"}));var $Oc=[null];Yb.prototype=hd.prototype={constructor:Yb,select:function(G){typeof G!=="function"&&(G=u(G));for(var D=this._groups,L=D.length,T=Array(L),ba=0;ba<L;++ba)for(var la=D[ba],qa=la.length,za=T[ba]=Array(qa),Wa,Va,Ya=0;Ya<qa;++Ya)(Wa=la[Ya])&&(Va=G.call(Wa,Wa.__data__,Ya,la))&&("__data__"in Wa&&(Va.__data__=Wa.__data__),za[Ya]=Va);return new Yb(T,this._parents)},
filter:function(G){typeof G!=="function"&&(G=gUb(G));for(var D=this._groups,L=D.length,T=Array(L),ba=0;ba<L;++ba)for(var la=D[ba],qa=la.length,za=T[ba]=[],Wa,Va=0;Va<qa;++Va)(Wa=la[Va])&&G.call(Wa,Wa.__data__,Va,la)&&za.push(Wa);return new Yb(T,this._parents)},
data:function(G,D){if(!G)return pc=Array(this.size()),Va=-1,this.each(function(nh){pc[++Va]=nh}),pc;
var L=D?J:F,T=this._parents,ba=this._groups;typeof G!=="function"&&(G=C(G));for(var la=ba.length,qa=Array(la),za=Array(la),Wa=Array(la),Va=0;Va<la;++Va){var Ya=T[Va],gb=ba[Va],Rb=gb.length,pc=G.call(Ya,Ya&&Ya.__data__,Va,T),nd=pc.length,ze=za[Va]=Array(nd),ne=qa[Va]=Array(nd);Rb=Wa[Va]=Array(Rb);L(Ya,gb,ze,ne,Rb,pc,D);gb=Ya=0;for(var Qk;Ya<nd;++Ya)if(Rb=ze[Ya]){for(Ya>=gb&&(gb=Ya+1);!(Qk=ne[gb])&&++gb<nd;);Rb._next=Qk||null}}qa=new Yb(qa,T);qa._enter=za;qa._exit=Wa;return qa},
exit:function(){return new Yb(this._exit||this._groups.map(x),this._parents)},
merge:function(G){var D=this._groups;G=G._groups;for(var L=D.length,T=Math.min(L,G.length),ba=Array(L),la=0;la<T;++la)for(var qa=D[la],za=G[la],Wa=qa.length,Va=ba[la]=Array(Wa),Ya,gb=0;gb<Wa;++gb)if(Ya=qa[gb]||za[gb])Va[gb]=Ya;for(;la<L;++la)ba[la]=D[la];return new Yb(ba,this._parents)},
order:function(){for(var G=this._groups,D=-1,L=G.length;++D<L;)for(var T=G[D],ba=T.length-1,la=T[ba],qa;--ba>=0;)if(qa=T[ba])la&&la!==qa.nextSibling&&la.parentNode.insertBefore(qa,la),la=qa;return this},
sort:function(G){function D(gb,Rb){return gb&&Rb?G(gb.__data__,Rb.__data__):!gb-!Rb}
G||(G=I);for(var L=this._groups,T=L.length,ba=Array(T),la=0;la<T;++la){for(var qa=L[la],za=qa.length,Wa=ba[la]=Array(za),Va,Ya=0;Ya<za;++Ya)if(Va=qa[Ya])Wa[Ya]=Va;Wa.sort(D)}return(new Yb(ba,this._parents)).order()},
call:function(){var G=arguments[0];arguments[0]=this;G.apply(null,arguments);return this},
nodes:function(){var G=Array(this.size()),D=-1;this.each(function(){G[++D]=this});
return G},
node:function(){for(var G=this._groups,D=0,L=G.length;D<L;++D)for(var T=G[D],ba=0,la=T.length;ba<la;++ba){var qa=T[ba];if(qa)return qa}return null},
size:function(){var G=0;this.each(function(){++G});
return G},
empty:function(){return!this.node()},
each:function(G){for(var D=this._groups,L=0,T=D.length;L<T;++L)for(var ba=D[L],la=0,qa=ba.length,za;la<qa;++la)(za=ba[la])&&G.call(za,za.__data__,la,ba);return this},
attr:function(G,D){var L=k(G);if(arguments.length<2){var T=this.node();return L.local?T.getAttributeNS(L.space,L.local):T.getAttribute(L)}return this.each((D==null?L.local?da:R:typeof D==="function"?L.local?ma:aa:L.local?fa:V)(L,D))},
style:function(G,D,L){return arguments.length>1?this.each((D==null?Ba:typeof D==="function"?ya:Ca)(G,D,L==null?"":L)):Ia(this.node(),G)},
property:function(G,D){return arguments.length>1?this.each((D==null?db:typeof D==="function"?Ua:lb)(G,D)):this.node()[G]},
text:function(G){return arguments.length?this.each(G==null?Vb:(typeof G==="function"?sb:rb)(G)):this.node().textContent},
html:function(G){return arguments.length?this.each(G==null?yc:(typeof G==="function"?ub:Mb)(G)):this.node().innerHTML},
append:function(G){var D=typeof G==="function"?G:r(G);return this.select(function(){return this.appendChild(D.apply(this,arguments))})},
insert:function(G,D){var L=typeof G==="function"?G:r(G),T=D==null?Db:typeof D==="function"?D:u(D);return this.select(function(){return this.insertBefore(L.apply(this,arguments),T.apply(this,arguments)||null)})},
remove:function(){return this.each(Wc)},
clone:function(G){return this.select(G?ia:Mc)},
datum:function(G){return arguments.length?this.property("__data__",G):this.node().__data__},
on:function(G,D,L){var T=Ac(G+""),ba=T.length,la;if(arguments.length<2){var qa=this.node().__on;if(qa)for(var za=0,Wa=qa.length,Va;za<Wa;++za){var Ya=0;for(Va=qa[za];Ya<ba;++Ya)if((la=T[Ya]).type===Va.type&&la.name===Va.name)return Va.value}}else{qa=D?Cb:qb;L==null&&(L=!1);for(Ya=0;Ya<ba;++Ya)this.each(qa(T[Ya],D,L));return this}},
dispatch:function(G,D){return this.each((typeof D==="function"?mb:Pa)(G,D))}};
var aPc=0;Gb.prototype=function(){return new Gb}.prototype={constructor:Gb,
get:function(G){for(var D=this._;!(D in G);)if(!(G=G.parentNode))return;return G[D]},
set:function(G,D){return G[this._]=D},
remove:function(G){return this._ in G&&delete G[this._]},
toString:function(){return this._}};
var DR=1/.7,bPc=/^#([0-9a-f]{3})$/,cPc=/^#([0-9a-f]{6})$/,dPc=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),ePc=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),fPc=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),gPc=RegExp("^rgba\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),
hPc=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),iPc=RegExp("^hsla\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),kTb={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,
blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,
darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,
lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,
mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,
purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};
Tc(Rm,ld,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
Tc(zi,$h,Bd(Rm,{brighter:function(G){G=G==null?DR:Math.pow(DR,G);return new zi(this.r*G,this.g*G,this.b*G,this.opacity)},
darker:function(G){G=G==null?.7:Math.pow(.7,G);return new zi(this.r*G,this.g*G,this.b*G,this.opacity)},
rgb:function(){return this},
displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},
hex:function(){return"#"+td(this.r)+td(this.g)+td(this.b)},
toString:function(){var G=this.opacity;G=isNaN(G)?1:Math.max(0,Math.min(1,G));return(G===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(G===1?")":", "+G+")")}}));
Tc(Vi,Sm,Bd(Rm,{brighter:function(G){G=G==null?DR:Math.pow(DR,G);return new Vi(this.h,this.s,this.l*G,this.opacity)},
darker:function(G){G=G==null?.7:Math.pow(.7,G);return new Vi(this.h,this.s,this.l*G,this.opacity)},
rgb:function(){var G=this.h%360+(this.h<0)*360,D=this.l,L=D+(D<.5?D:1-D)*(isNaN(G)||isNaN(this.s)?0:this.s);D=2*D-L;return new zi(be(G>=240?G-240:G+120,D,L),be(G,D,L),be(G<120?G+240:G-120,D,L),this.opacity)},
displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));
var lTb=Math.PI/180,oTb=180/Math.PI,nTb=4/29,zR=6/29,mTb=3*zR*zR,jPc=zR*zR*zR;Tc(sa,function(G,D,L,T){return arguments.length===1?ap(G):new sa(G,D,L,T==null?1:T)},Bd(Rm,{brighter:function(G){return new sa(this.l+18*(G==null?1:G),this.a,this.b,this.opacity)},
darker:function(G){return new sa(this.l-18*(G==null?1:G),this.a,this.b,this.opacity)},
rgb:function(){var G=(this.l+16)/116,D=isNaN(this.a)?G:G+this.a/500,L=isNaN(this.b)?G:G-this.b/200;D=.96422*La(D);G=1*La(G);L=.82521*La(L);return new zi(nb(3.1338561*D-1.6168667*G-.4906146*L),nb(-.9787684*D+1.9161415*G+.033454*L),nb(.0719453*D-.2289914*G+1.4052427*L),this.opacity)}}));
Tc(Sb,ib,Bd(Rm,{brighter:function(G){return new Sb(this.h,this.c,this.l+18*(G==null?1:G),this.opacity)},
darker:function(G){return new Sb(this.h,this.c,this.l-18*(G==null?1:G),this.opacity)},
rgb:function(){return ap(this).rgb()}}));
var pTb=1.78277*-.29227-.1347134789;Tc(vd,wb,Bd(Rm,{brighter:function(G){G=G==null?DR:Math.pow(DR,G);return new vd(this.h,this.s,this.l*G,this.opacity)},
darker:function(G){G=G==null?.7:Math.pow(.7,G);return new vd(this.h,this.s,this.l*G,this.opacity)},
rgb:function(){var G=isNaN(this.h)?0:(this.h+120)*lTb,D=+this.l,L=isNaN(this.s)?0:this.s*D*(1-D),T=Math.cos(G);G=Math.sin(G);return new zi(255*(D+L*(-.14861*T+1.78277*G)),255*(D+L*(-.29227*T+-.90649*G)),255*(D+1.97294*T*L),this.opacity)}}));
var uTb=function L(D){function T(la,qa){var za=ba((la=$h(la)).r,(qa=$h(qa)).r),Wa=ba(la.g,qa.g),Va=ba(la.b,qa.b),Ya=mk(la.opacity,qa.opacity);return function(gb){la.r=za(gb);la.g=Wa(gb);la.b=Va(gb);la.opacity=Ya(gb);return la+""}}
var ba=ff(D);T.gamma=L;return T}(1),fRc=dr(function(D){var L=D.length-1;
return function(T){var ba=T<=0?T=0:T>=1?(T=1,L-1):Math.floor(T*L),la=D[ba],qa=D[ba+1];return ag((T-ba/L)*L,ba>0?D[ba-1]:2*la-qa,la,qa,ba<L-1?D[ba+2]:2*qa-la)}});
dr(function(D){var L=D.length;return function(T){var ba=Math.floor(((T%=1)<0?++T:T)*L);return ag((T-ba/L)*L,D[(ba+L-1)%L],D[ba%L],D[(ba+1)%L],D[(ba+2)%L])}});
var TLa=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ULa=new RegExp(TLa.source,"g"),qTb=180/Math.PI,mMa={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},a4,nMa,hUb,kla,hRc=pf(function(D){if(D==="none")return mMa;a4||(a4=document.createElement("DIV"),nMa=document.documentElement,hUb=document.defaultView);a4.style.transform=D;D=hUb.getComputedStyle(nMa.appendChild(a4),null).getPropertyValue("transform");nMa.removeChild(a4);D=D.slice(7,-1).split(",");return gf(+D[0],+D[1],+D[2],+D[3],
+D[4],+D[5])},"px, ","px)","deg)"),iRc=pf(function(D){if(D==null)return mMa;
kla||(kla=document.createElementNS("http://www.w3.org/2000/svg","g"));kla.setAttribute("transform",D);if(!(D=kla.transform.baseVal.consolidate()))return mMa;D=D.matrix;return gf(D.a,D.b,D.c,D.d,D.e,D.f)},", ",")",")");
yd(Xd);yd(mk);Wv(Xd);Wv(mk);Xv(Xd);var oMa=Xv(mk),AR=0,R3=0,T3=0,bla,S3,ala=0,kK=0,$ka=0,Q3=typeof performance==="object"&&performance.now?performance:Date,rTb=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(D){setTimeout(D,17)};
WI.prototype=I0.prototype={constructor:WI,restart:function(D,L,T){if(typeof D!=="function")throw new TypeError("Ce");T=(T==null?VI():+T)+(L==null?0:+L);this._next||S3===this||(S3?S3._next=this:bla=this,S3=this);this._call=D;this._time=T;K0()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,K0())}};
var lPc=c("start","end","interrupt"),mPc=[],jRc=hd.prototype.constructor,iUb=0,ER=hd.prototype;CF.prototype=function(D){return hd().transition(D)}.prototype={constructor:CF,
select:function(D){var L=this._name,T=this._id;typeof D!=="function"&&(D=u(D));for(var ba=this._groups,la=ba.length,qa=Array(la),za=0;za<la;++za)for(var Wa=ba[za],Va=Wa.length,Ya=qa[za]=Array(Va),gb,Rb,pc=0;pc<Va;++pc)(gb=Wa[pc])&&(Rb=D.call(gb,gb.__data__,pc,Wa))&&("__data__"in gb&&(Rb.__data__=gb.__data__),Ya[pc]=Rb,VLa(Ya[pc],L,T,pc,Ya,Fy(gb,T)));return new CF(qa,this._parents,L,T)},
filter:function(D){typeof D!=="function"&&(D=gUb(D));for(var L=this._groups,T=L.length,ba=Array(T),la=0;la<T;++la)for(var qa=L[la],za=qa.length,Wa=ba[la]=[],Va,Ya=0;Ya<za;++Ya)(Va=qa[Ya])&&D.call(Va,Va.__data__,Ya,qa)&&Wa.push(Va);return new CF(ba,this._parents,this._name,this._id)},
merge:function(D){if(D._id!==this._id)throw Error();var L=this._groups;D=D._groups;for(var T=L.length,ba=Math.min(T,D.length),la=Array(T),qa=0;qa<ba;++qa)for(var za=L[qa],Wa=D[qa],Va=za.length,Ya=la[qa]=Array(Va),gb,Rb=0;Rb<Va;++Rb)if(gb=za[Rb]||Wa[Rb])Ya[Rb]=gb;for(;qa<T;++qa)la[qa]=L[qa];return new CF(la,this._parents,this._name,this._id)},
selection:function(){return new jRc(this._groups,this._parents)},
transition:function(){for(var D=this._name,L=this._id,T=++iUb,ba=this._groups,la=ba.length,qa=0;qa<la;++qa)for(var za=ba[qa],Wa=za.length,Va,Ya=0;Ya<Wa;++Ya)if(Va=za[Ya]){var gb=Fy(Va,L);VLa(Va,D,T,Ya,za,{time:gb.time+gb.delay+gb.duration,delay:0,duration:gb.duration,ease:gb.ease})}return new CF(ba,this._parents,D,T)},
call:ER.call,nodes:ER.nodes,node:ER.node,size:ER.size,empty:ER.empty,each:ER.each,on:function(D,L){var T=this._id;return arguments.length<2?Fy(this.node(),T).on.on(D):this.each(DPc(T,D,L))},
attr:function(D,L){var T=k(D),ba=T==="transform"?iRc:tTb;return this.attrTween(D,typeof L==="function"?(T.local?uPc:tPc)(T,ba,XLa(this,"attr."+D,L)):L==null?(T.local?qPc:pPc)(T):(T.local?sPc:rPc)(T,ba,L+""))},
attrTween:function(D,L){var T="attr."+D;if(arguments.length<2)return(T=this.tween(T))&&T._value;if(L==null)return this.tween(T,null);if(typeof L!=="function")throw Error();var ba=k(D);return this.tween(T,(ba.local?vPc:wPc)(ba,L))},
style:function(D,L,T){var ba=D==="transform"?hRc:tTb;return L==null?this.styleTween(D,FPc(D,ba)).on("end.style."+D,GPc(D)):this.styleTween(D,typeof L==="function"?IPc(D,ba,XLa(this,"style."+D,L)):HPc(D,ba,L+""),T)},
styleTween:function(D,L,T){var ba="style."+D;if(arguments.length<2)return(ba=this.tween(ba))&&ba._value;if(L==null)return this.tween(ba,null);if(typeof L!=="function")throw Error();return this.tween(ba,JPc(D,L,T==null?"":T))},
text:function(D){return this.tween("text",typeof D==="function"?LPc(XLa(this,"text",D)):KPc(D==null?"":D+""))},
remove:function(){return this.on("end.remove",EPc(this._id))},
tween:function(D,L){var T=this._id;if(arguments.length<2){T=Fy(this.node(),T).tween;for(var ba=0,la=T.length,qa;ba<la;++ba)if((qa=T[ba]).name===D)return qa.value;return null}return this.each((L==null?nPc:oPc)(T,D,L))},
delay:function(D){var L=this._id;return arguments.length?this.each((typeof D==="function"?xPc:yPc)(L,D)):Fy(this.node(),L).delay},
duration:function(D){var L=this._id;return arguments.length?this.each((typeof D==="function"?zPc:APc)(L,D)):Fy(this.node(),L).duration},
ease:function(D){var L=this._id;return arguments.length?this.each(BPc(L,D)):Fy(this.node(),L).ease}};
var pMa={time:null,delay:0,duration:250,ease:function(D){return((D*=2)<=1?D*D*D:(D-=2)*D*D+2)/2}};
hd.prototype.transition=function(D){var L;if(D instanceof CF){var T=D._id;D=D._name}else T=++iUb,(L=pMa).time=VI(),D=D==null?null:D+"";for(var ba=this._groups,la=ba.length,qa=0;qa<la;++qa)for(var za=ba[qa],Wa=za.length,Va,Ya=0;Ya<Wa;++Ya)if(Va=za[Ya]){var gb=Va,Rb=D,pc=T,nd=Ya,ze=za,ne;if(!(ne=L))a:{ne=void 0;for(var Qk=T;!(ne=Va.__transition)||!(ne=ne[Qk]);)if(!(Va=Va.parentNode)){ne=(pMa.time=VI(),pMa);break a}}VLa(gb,Rb,pc,nd,ze,ne)}return new CF(ba,this._parents,D,T)};
["e","w"].map(YLa);["n","s"].map(YLa);"n e s w nw ne se sw".split(" ").map(YLa);ZLa.prototype=function(){return new ZLa}.prototype={constructor:ZLa,
moveTo:function(D,L){this._+="M"+(this._x0=this._x1=+D)+","+(this._y0=this._y1=+L)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(D,L){this._+="L"+(this._x1=+D)+","+(this._y1=+L)},
bezierCurveTo:function(D,L,T,ba,la,qa){this._+="C"+ +D+","+ +L+","+ +T+","+ +ba+","+(this._x1=+la)+","+(this._y1=+qa)},
rect:function(D,L,T,ba){this._+="M"+(this._x0=this._x1=+D)+","+(this._y0=this._y1=+L)+"h"+ +T+"v"+ +ba+"h"+-T+"Z"},
toString:function(){return this._}};
cla.prototype=vTb.prototype={constructor:cla,has:function(D){return" "+D in this},
get:function(D){return this[" "+D]},
set:function(D,L){this[" "+D]=L;return this},
remove:function(D){D=" "+D;return D in this&&delete this[D]},
clear:function(){for(var D in this)D[0]===" "&&delete this[D]},
keys:function(){var D=[],L;for(L in this)L[0]===" "&&D.push(L.slice(1));return D},
values:function(){var D=[],L;for(L in this)L[0]===" "&&D.push(this[L]);return D},
entries:function(){var D=[],L;for(L in this)L[0]===" "&&D.push({key:L.slice(1),value:this[L]});return D},
size:function(){var D=0,L;for(L in this)L[0]===" "&&++D;return D},
empty:function(){for(var D in this)if(D[0]===" ")return!1;return!0},
each:function(D){for(var L in this)L[0]===" "&&D(this[L],L.slice(1),this)}};
var oK=vTb.prototype;dla.prototype=function(D,L){var T=new dla;if(D instanceof dla)D.each(function(qa){T.add(qa)});
else if(D){var ba=-1,la=D.length;if(L==null)for(;++ba<la;)T.add(D[ba]);else for(;++ba<la;)T.add(L(D[ba],ba,D))}return T}.prototype={constructor:dla,
has:oK.has,add:function(D){this[" "+D]=D;return this},
remove:oK.remove,clear:oK.clear,values:oK.keys,size:oK.size,empty:oK.empty,each:oK.each};var yTb={},$La={},kRc=xTb(",").parse,lRc=xTb("\t").parse;zTb(kRc);zTb(lRc);var qq=function(D,L,T){L=new aMa(L==null?PPc:L,T==null?QPc:T,NaN,NaN,NaN,NaN);return D==null?L:L.addAll(D)}.prototype=aMa.prototype;
qq.copy=function(){var D=new aMa(this._x,this._y,this._x0,this._y0,this._x1,this._y1),L=this._root,T,ba;if(!L)return D;if(!L.length)return D._root=BTb(L),D;for(T=[{source:L,target:D._root=Array(4)}];L=T.pop();)for(var la=0;la<4;++la)if(ba=L.source[la])ba.length?T.push({source:ba,target:L.target[la]=Array(4)}):L.target[la]=BTb(ba);return D};
qq.add=function(D){var L=+this._x.call(null,D),T=+this._y.call(null,D);return ATb(this.cover(L,T),L,T,D)};
qq.addAll=function(D){var L,T,ba=D.length,la,qa,za=Array(ba),Wa=Array(ba),Va=Infinity,Ya=Infinity,gb=-Infinity,Rb=-Infinity;for(T=0;T<ba;++T)isNaN(la=+this._x.call(null,L=D[T]))||isNaN(qa=+this._y.call(null,L))||(za[T]=la,Wa[T]=qa,la<Va&&(Va=la),la>gb&&(gb=la),qa<Ya&&(Ya=qa),qa>Rb&&(Rb=qa));gb<Va&&(Va=this._x0,gb=this._x1);Rb<Ya&&(Ya=this._y0,Rb=this._y1);this.cover(Va,Ya).cover(gb,Rb);for(T=0;T<ba;++T)ATb(this,za[T],Wa[T],D[T]);return this};
qq.cover=function(D,L){if(isNaN(D=+D)||isNaN(L=+L))return this;var T=this._x0,ba=this._y0,la=this._x1,qa=this._y1;if(isNaN(T))la=(T=Math.floor(D))+1,qa=(ba=Math.floor(L))+1;else if(T>D||D>la||ba>L||L>qa){var za=la-T,Wa=this._root,Va;switch(Va=(L<(ba+qa)/2)<<1|D<(T+la)/2){case 0:do{var Ya=Array(4);Ya[Va]=Wa;Wa=Ya}while(za*=2,la=T+za,qa=ba+za,D>la||L>qa);break;case 1:do Ya=Array(4),Ya[Va]=Wa,Wa=Ya;while(za*=2,T=la-za,qa=ba+za,T>D||L>qa);break;case 2:do Ya=Array(4),Ya[Va]=Wa,Wa=Ya;while(za*=2,la=T+za,
ba=qa-za,D>la||ba>L);break;case 3:do Ya=Array(4),Ya[Va]=Wa,Wa=Ya;while(za*=2,T=la-za,ba=qa-za,T>D||ba>L)}this._root&&this._root.length&&(this._root=Wa)}else return this;this._x0=T;this._y0=ba;this._x1=la;this._y1=qa;return this};
qq.data=function(){var D=[];this.visit(function(L){if(!L.length){do D.push(L.data);while(L=L.next)}});
return D};
qq.extent=function(D){return arguments.length?this.cover(+D[0][0],+D[0][1]).cover(+D[1][0],+D[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
qq.find=function(D,L,T){var ba=this._x0,la=this._y0,qa,za,Wa,Va,Ya=this._x1,gb=this._y1,Rb=[],pc=this._root,nd;pc&&Rb.push(new pq(pc,ba,la,Ya,gb));T==null?T=Infinity:(ba=D-T,la=L-T,Ya=D+T,gb=L+T,T*=T);for(;nd=Rb.pop();)if(!(!(pc=nd.node)||(qa=nd.x0)>Ya||(za=nd.y0)>gb||(Wa=nd.x1)<ba||(Va=nd.y1)<la))if(pc.length){nd=(qa+Wa)/2;var ze=(za+Va)/2;Rb.push(new pq(pc[3],nd,ze,Wa,Va),new pq(pc[2],qa,ze,nd,Va),new pq(pc[1],nd,za,Wa,ze),new pq(pc[0],qa,za,nd,ze));if(pc=(L>=ze)<<1|D>=nd)nd=Rb[Rb.length-1],Rb[Rb.length-
1]=Rb[Rb.length-1-pc],Rb[Rb.length-1-pc]=nd}else if(nd=D-+this._x.call(null,pc.data),ze=L-+this._y.call(null,pc.data),nd=nd*nd+ze*ze,nd<T){var ne=Math.sqrt(T=nd);ba=D-ne;la=L-ne;Ya=D+ne;gb=L+ne;ne=pc.data}return ne};
qq.remove=function(D){if(isNaN(Va=+this._x.call(null,D))||isNaN(Ya=+this._y.call(null,D)))return this;var L,T=this._root,ba,la=this._x0,qa=this._y0,za=this._x1,Wa=this._y1,Va,Ya,gb,Rb,pc,nd,ze;if(!T)return this;if(T.length)for(;;){(pc=Va>=(gb=(la+za)/2))?la=gb:za=gb;(nd=Ya>=(Rb=(qa+Wa)/2))?qa=Rb:Wa=Rb;if(!(L=T,T=T[ze=nd<<1|pc]))return this;if(!T.length)break;if(L[ze+1&3]||L[ze+2&3]||L[ze+3&3]){var ne=L;var Qk=ze}}for(;T.data!==D;)if(!(ba=T,T=T.next))return this;(D=T.next)&&delete T.next;if(ba)return D?
ba.next=D:delete ba.next,this;if(!L)return this._root=D,this;D?L[ze]=D:delete L[ze];(T=L[0]||L[1]||L[2]||L[3])&&T===(L[3]||L[2]||L[1]||L[0])&&!T.length&&(ne?ne[Qk]=T:this._root=T);return this};
qq.removeAll=function(D){for(var L=0,T=D.length;L<T;++L)this.remove(D[L]);return this};
qq.root=function(){return this._root};
qq.size=function(){var D=0;this.visit(function(L){if(!L.length){do++D;while(L=L.next)}});
return D};
qq.visit=function(D){var L=[],T,ba=this._root,la,qa,za,Wa,Va;for(ba&&L.push(new pq(ba,this._x0,this._y0,this._x1,this._y1));T=L.pop();)if(!D(ba=T.node,qa=T.x0,za=T.y0,Wa=T.x1,Va=T.y1)&&ba.length){T=(qa+Wa)/2;var Ya=(za+Va)/2;(la=ba[3])&&L.push(new pq(la,T,Ya,Wa,Va));(la=ba[2])&&L.push(new pq(la,qa,Ya,T,Va));(la=ba[1])&&L.push(new pq(la,T,za,Wa,Ya));(la=ba[0])&&L.push(new pq(la,qa,za,T,Ya))}};
qq.visitAfter=function(D){var L=[],T=[],ba;for(this._root&&L.push(new pq(this._root,this._x0,this._y0,this._x1,this._y1));ba=L.pop();){var la=ba.node;if(la.length){var qa,za=ba.x0,Wa=ba.y0,Va=ba.x1,Ya=ba.y1,gb=(za+Va)/2,Rb=(Wa+Ya)/2;(qa=la[0])&&L.push(new pq(qa,za,Wa,gb,Rb));(qa=la[1])&&L.push(new pq(qa,gb,Wa,Va,Rb));(qa=la[2])&&L.push(new pq(qa,za,Rb,gb,Ya));(qa=la[3])&&L.push(new pq(qa,gb,Rb,Va,Ya))}T.push(ba)}for(;ba=T.pop();)D(ba.node,ba.x0,ba.y0,ba.x1,ba.y1);return this};
qq.x=function(D){return arguments.length?(this._x=D,this):this._x};
qq.y=function(D){return arguments.length?(this._y=D,this):this._y};
var UPc=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;bMa.prototype=cMa.prototype;cMa.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width==null?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision==null?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};
var FTb,GTb={"%":function(D,L){return(D*100).toFixed(L)},
b:function(D){return Math.round(D).toString(2)},
c:function(D){return D+""},
d:function(D){return Math.round(D).toString(10)},
e:function(D,L){return D.toExponential(L)},
f:function(D,L){return D.toFixed(L)},
g:function(D,L){return D.toPrecision(L)},
o:function(D){return Math.round(D).toString(8)},
p:function(D,L){return CTb(D*100,L)},
r:CTb,s:function(D,L){var T=ela(D,L);if(!T)return D+"";var ba=T[0];T=T[1];T=T-(FTb=Math.max(-8,Math.min(8,Math.floor(T/3)))*3)+1;var la=ba.length;return T===la?ba:T>la?ba+Array(T-la+1).join("0"):T>0?ba.slice(0,T)+"."+ba.slice(T):"0."+Array(1-T).join("0")+ela(D,Math.max(0,L+T-1))[0]},
X:function(D){return Math.round(D).toString(16).toUpperCase()},
x:function(D){return Math.round(D).toString(16)}},ETb="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),mRc;
(function(D){return mRc=VPc(D)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});qw.prototype={constructor:qw,reset:function(){this.s=this.t=0},
add:function(D){HTb(lla,D,this.t);HTb(this,lla.s,this.s);this.s?this.t+=lla.t:this.s=lla.t},
valueOf:function(){return this.s}};
var lla=new qw,zl=Math.PI,Ou=zl/2,jUb=zl/4,nRc=zl*2,qMa=zl/180,DF=Math.abs,rMa=Math.atan,NTb=Math.atan2,Pu=Math.cos,pp=Math.sin,gla=Math.sqrt;new qw;new qw;new qw;var sMa=new qw;(function(D,L,T,ba){return function(la){function qa(oh,cg){D(oh,cg)&&la.point(oh,cg)}
function za(oh,cg){pc.point(oh,cg)}
function Wa(){ft.point=za;pc.lineStart()}
function Va(){ft.point=qa;pc.lineEnd()}
function Ya(oh,cg){jo.push([oh,cg]);ze.point(oh,cg)}
function gb(){ze.lineStart();jo=[]}
function Rb(){Ya(jo[0][0],jo[0][1]);ze.lineEnd();var oh=ze.clean(),cg=nd.result(),Pd=cg.length,rk;jo.pop();Qk.push(jo);jo=null;if(Pd)if(oh&1){if(Pd=cg[0],(cg=Pd.length-1)>0){ne||(la.polygonStart(),ne=!0);la.lineStart();for(oh=0;oh<cg;++oh)la.point((rk=Pd[oh])[0],rk[1]);la.lineEnd()}}else Pd>1&&oh&2&&cg.push(cg.pop().concat(cg.shift())),nh.push(cg.filter(ZPc))}
var pc=L(la),nd=XPc(),ze=L(nd),ne=!1,Qk,nh,jo,ft={point:qa,lineStart:Wa,lineEnd:Va,polygonStart:function(){ft.point=Ya;ft.lineStart=gb;ft.lineEnd=Rb;nh=[];Qk=[]},
polygonEnd:function(){ft.point=qa;ft.lineStart=Wa;ft.lineEnd=Va;var oh=nh,cg=oh.length;var Pd=-1;for(var rk=0,Cc,jd;++Pd<cg;)rk+=oh[Pd].length;for(Cc=Array(rk);--cg>=0;)for(jd=oh[cg],Pd=jd.length;--Pd>=0;)Cc[--rk]=jd[Pd];nh=Cc;oh=Qk;cg=ba[0];rk=ba[1];var ad=pp(rk);Pd=[pp(cg),-Pu(cg),0];jd=Cc=0;sMa.reset();ad===1?rk=Ou+1E-6:ad===-1&&(rk=-Ou-1E-6);ad=0;for(var rc=oh.length;ad<rc;++ad)if(yl=(gi=oh[ad]).length){var gi,yl,Rk=gi[yl-1],Bi=Rk[0],WB=Rk[1]/2+jUb,mla=pp(WB),kUb=Pu(WB);for(WB=0;WB<yl;++WB,Bi=
tMa,mla=lUb,kUb=b4,Rk=nla){var nla=gi[WB],tMa=nla[0];b4=nla[1]/2+jUb;var lUb=pp(b4),b4=Pu(b4),FR=tMa-Bi,uMa=FR>=0?1:-1,vMa=uMa*FR,ola=vMa>zl;mla*=lUb;sMa.add(NTb(mla*uMa*pp(vMa),kUb*b4+mla*Pu(vMa)));Cc+=ola?FR+uMa*nRc:FR;ola^Bi>=cg^tMa>=cg&&(Rk=JTb(ITb(Rk),ITb(nla)),KTb(Rk),Bi=JTb(Pd,Rk),KTb(Bi),Bi=(ola^FR>=0?-1:1)*fla(Bi[2]),rk>Bi||rk===Bi&&(Rk[0]||Rk[1]))&&(jd+=ola^FR>=0?1:-1)}}oh=(Cc<-1E-6||Cc<1E-6&&sMa<-1E-6)^jd&1;nh.length?(ne||(la.polygonStart(),ne=!0),YPc(nh,$Pc,oh,T,la)):oh&&(ne||(la.polygonStart(),
ne=!0),la.lineStart(),T(null,null,1,la),la.lineEnd());ne&&(la.polygonEnd(),ne=!1);nh=Qk=null},
sphere:function(){la.polygonStart();la.lineStart();T(null,null,1,la);la.lineEnd();la.polygonEnd()}};
return ft}})(function(){return!0},function(D){var L=NaN,T=NaN,ba=NaN,la;
return{lineStart:function(){D.lineStart();la=1},
point:function(qa,za){var Wa=qa>0?zl:-zl,Va=DF(qa-L);if(DF(Va-zl)<1E-6)D.point(L,T=(T+za)/2>0?Ou:-Ou),D.point(ba,T),D.lineEnd(),D.lineStart(),D.point(Wa,T),D.point(qa,T),la=0;else if(ba!==Wa&&Va>=zl){DF(L-ba)<1E-6&&(L-=ba*1E-6);DF(qa-Wa)<1E-6&&(qa-=Wa*1E-6);Va=L;var Ya=T,gb=qa,Rb,pc,nd=pp(Va-gb);T=DF(nd)>1E-6?rMa((pp(Ya)*(pc=Pu(za))*pp(gb)-pp(za)*(Rb=Pu(Ya))*pp(Va))/(Rb*pc*nd)):(Ya+za)/2;D.point(ba,T);D.lineEnd();D.lineStart();D.point(Wa,T);la=0}D.point(L=qa,T=za);ba=Wa},
lineEnd:function(){D.lineEnd();L=T=NaN},
clean:function(){return 2-la}}},function(D,L,T,ba){D==null?(T*=Ou,ba.point(-zl,T),ba.point(0,T),ba.point(zl,T),ba.point(zl,0),ba.point(zl,-T),ba.point(0,-T),ba.point(-zl,-T),ba.point(-zl,0),ba.point(-zl,T)):DF(D[0]-L[0])>1E-6?(D=D[0]<L[0]?zl:-zl,T=T*D/2,ba.point(-D,T),ba.point(0,T),ba.point(D,T)):ba.point(L[0],L[1])},[-zl,
-Ou]);new qw;new qw;new qw;new qw;dMa.prototype={constructor:dMa,point:function(D,L){this.stream.point(D,L)},
sphere:function(){this.stream.sphere()},
lineStart:function(){this.stream.lineStart()},
lineEnd:function(){this.stream.lineEnd()},
polygonStart:function(){this.stream.polygonStart()},
polygonEnd:function(){this.stream.polygonEnd()}};
Pu(30*qMa);(function(D){return function(L){var T=new dMa,ba;for(ba in D)T[ba]=D[ba];T.stream=L;return T}})({point:function(D,L){this.stream.point(D*qMa,L*qMa)}});
MTb(function(D){return gla(2/(1+D))}).invert=U3(function(D){return 2*fla(D/2)});
MTb(function(D){return(D=D>1?0:D<-1?zl:Math.acos(D))&&D/pp(D)}).invert=U3(function(D){return D});
gla(3);U3(rMa);U3(fla);U3(function(D){return 2*rMa(D)});
V3.prototype=OTb.prototype={constructor:V3,count:function(){return this.eachAfter(aQc)},
each:function(D){var L,T=[this],ba;do{var la=T.reverse();for(T=[];L=la.pop();)if(D(L),L=L.children){var qa=0;for(ba=L.length;qa<ba;++qa)T.push(L[qa])}}while(T.length);return this},
eachAfter:function(D){for(var L,T=[this],ba=[],la,qa;L=T.pop();)if(ba.push(L),L=L.children)for(la=0,qa=L.length;la<qa;++la)T.push(L[la]);for(;L=ba.pop();)D(L);return this},
eachBefore:function(D){for(var L,T=[this],ba;L=T.pop();)if(D(L),L=L.children)for(ba=L.length-1;ba>=0;--ba)T.push(L[ba]);return this},
sum:function(D){return this.eachAfter(function(L){for(var T=+D(L.data)||0,ba=L.children,la=ba&&ba.length;--la>=0;)T+=ba[la].value;L.value=T})},
sort:function(D){return this.eachBefore(function(L){L.children&&L.children.sort(D)})},
path:function(D){var L=this;var T=L;var ba=D;if(T!==ba){var la=T.ancestors(),qa=ba.ancestors(),za=null;T=la.pop();for(ba=qa.pop();T===ba;)za=T,T=la.pop(),ba=qa.pop();T=za}for(ba=[L];L!==T;)L=L.parent,ba.push(L);for(L=ba.length;D!==T;)ba.splice(L,0,D),D=D.parent;return ba},
ancestors:function(){for(var D=this,L=[D];D=D.parent;)L.push(D);return L},
links:function(){var D=this,L=[];D.each(function(T){T!==D&&L.push({source:T.parent,target:T})});
return L},
copy:function(){return OTb(this).eachBefore(dQc)}};
(function(D,L){this._=D;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=L}).prototype=Object.create(V3.prototype);
var eMa=new Date,fMa=new Date,mUb=cn(function(){},function(D,L){D.setTime(+D+L)},function(D,L){return L-D});
mUb.every=function(D){D=Math.floor(D);return isFinite(D)&&D>0?D>1?cn(function(L){L.setTime(Math.floor(L/D)*D)},function(L,T){L.setTime(+L+T*D)},function(L,T){return(T-L)/D}):mUb:null};
cn(function(D){D.setTime(Math.floor(D/1E3)*1E3)},function(D,L){D.setTime(+D+L*1E3)},function(D,L){return(L-D)/1E3},function(D){return D.getUTCSeconds()});
cn(function(D){D.setTime(Math.floor(D/6E4)*6E4)},function(D,L){D.setTime(+D+L*6E4)},function(D,L){return(L-D)/6E4},function(D){return D.getMinutes()});
cn(function(D){var L=D.getTimezoneOffset()*6E4%36E5;L<0&&(L+=36E5);D.setTime(Math.floor((+D-L)/36E5)*36E5+L)},function(D,L){D.setTime(+D+L*36E5)},function(D,L){return(L-D)/36E5},function(D){return D.getHours()});
var RTb=cn(function(D){D.setHours(0,0,0,0)},function(D,L){D.setDate(D.getDate()+L)},function(D,L){return(L-D-(L.getTimezoneOffset()-D.getTimezoneOffset())*6E4)/864E5},function(D){return D.getDate()-1}),dRc=mK(0),hMa=mK(1);
mK(2);mK(3);var iMa=mK(4);mK(5);mK(6);cn(function(D){D.setDate(1);D.setHours(0,0,0,0)},function(D,L){D.setMonth(D.getMonth()+L)},function(D,L){return L.getMonth()-D.getMonth()+(L.getFullYear()-D.getFullYear())*12},function(D){return D.getMonth()});
var BR=cn(function(D){D.setMonth(0,1);D.setHours(0,0,0,0)},function(D,L){D.setFullYear(D.getFullYear()+L)},function(D,L){return L.getFullYear()-D.getFullYear()},function(D){return D.getFullYear()});
BR.every=function(D){return isFinite(D=Math.floor(D))&&D>0?cn(function(L){L.setFullYear(Math.floor(L.getFullYear()/D)*D);L.setMonth(0,1);L.setHours(0,0,0,0)},function(L,T){L.setFullYear(L.getFullYear()+T*D)}):null};
cn(function(D){D.setUTCSeconds(0,0)},function(D,L){D.setTime(+D+L*6E4)},function(D,L){return(L-D)/6E4},function(D){return D.getUTCMinutes()});
cn(function(D){D.setUTCMinutes(0,0,0)},function(D,L){D.setTime(+D+L*36E5)},function(D,L){return(L-D)/36E5},function(D){return D.getUTCHours()});
var QTb=cn(function(D){D.setUTCHours(0,0,0,0)},function(D,L){D.setUTCDate(D.getUTCDate()+L)},function(D,L){return(L-D)/864E5},function(D){return D.getUTCDate()-1}),eRc=nK(0),gMa=nK(1);
nK(2);nK(3);var jMa=nK(4);nK(5);nK(6);cn(function(D){D.setUTCDate(1);D.setUTCHours(0,0,0,0)},function(D,L){D.setUTCMonth(D.getUTCMonth()+L)},function(D,L){return L.getUTCMonth()-D.getUTCMonth()+(L.getUTCFullYear()-D.getUTCFullYear())*12},function(D){return D.getUTCMonth()});
var CR=cn(function(D){D.setUTCMonth(0,1);D.setUTCHours(0,0,0,0)},function(D,L){D.setUTCFullYear(D.getUTCFullYear()+L)},function(D,L){return L.getUTCFullYear()-D.getUTCFullYear()},function(D){return D.getUTCFullYear()});
CR.every=function(D){return isFinite(D=Math.floor(D))&&D>0?cn(function(L){L.setUTCFullYear(Math.floor(L.getUTCFullYear()/D)*D);L.setUTCMonth(0,1);L.setUTCHours(0,0,0,0)},function(L,T){L.setUTCFullYear(L.getUTCFullYear()+T*D)}):null};
var PTb={"-":"",_:" ",0:"0"},ko=/^\s*\d+/,cRc=/^%/,bRc=/[\\^$*+?|[\]().{}]/g,pla;(function(D){pla=fQc(D);uub=pla.utcFormat;vub=pla.utcParse;return pla})({dateTime:"%x, %X",
date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),shortDays:"Sun Mon Tue Wed Thu Fri Sat".split(" "),months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ")});Date.prototype.toISOString||uub("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||vub("%Y-%m-%dT%H:%M:%S.%LZ");Ve("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
Ve("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");Ve("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");Ve("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");Ve("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");Ve("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");Ve("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
Ve("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");Ve("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");Ve("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");Ve("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");Ve("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var oRc=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Ve);hi(oRc);var pRc=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Ve);hi(pRc);var qRc=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Ve);hi(qRc);var rRc=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Ve);
hi(rRc);var sRc=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Ve);hi(sRc);var tRc=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Ve);hi(tRc);var uRc=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Ve);hi(uRc);var vRc=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Ve);hi(vRc);var wRc=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Ve);hi(wRc);var xRc=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Ve);hi(xRc);var yRc=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Ve);hi(yRc);var zRc=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Ve);hi(zRc);var ARc=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Ve);hi(ARc);var BRc=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Ve);hi(BRc);var CRc=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Ve);hi(CRc);var DRc=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Ve);hi(DRc);var ERc=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Ve);hi(ERc);var FRc=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Ve);hi(FRc);var GRc=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Ve);hi(GRc);var HRc=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Ve);hi(HRc);var IRc=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Ve);hi(IRc);var JRc=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Ve);hi(JRc);var KRc=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Ve);hi(KRc);var LRc=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Ve);hi(LRc);var MRc=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Ve);hi(MRc);var NRc=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Ve);hi(NRc);var ORc=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Ve);hi(ORc);oMa(wb(300,.5,0),wb(-240,.5,1));oMa(wb(-100,.75,.35),wb(80,1.5,.8));oMa(wb(260,.75,.35),wb(80,1.5,.8));wb();$h();jla(Ve("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
jla(Ve("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
jla(Ve("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
jla(Ve("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
aUb.prototype={lineStart:function(){this._point=0},
lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(D,L){D=+D;L=+L;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(D,L):this._context.moveTo(D,L);break;case 1:this._point=2;default:this._context.lineTo(D,L)}}};
(function(D){function L(T){return new bUb(D(T))}
L._curve=D;return L})(function(D){return new aUb(D)});
bUb.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(D,L){this._curve.point(L*Math.sin(D),L*-Math.cos(D))}};
lMa.prototype={lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN;this._point=0},
lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:kMa(this,this._t0,dUb(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(D,L){var T=NaN;D=+D;L=+L;if(D!==this._x1||L!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(D,L):this._context.moveTo(D,L);break;case 1:this._point=2;break;case 2:this._point=3;kMa(this,dUb(this,T=cUb(this,D,L)),T);break;default:kMa(this,this._t0,T=cUb(this,D,L))}this._x0=this._x1;this._x1=D;this._y0=this._y1;this._y1=L;this._t0=T}}};
(function(D){this._context=new eUb(D)}.prototype=Object.create(lMa.prototype)).point=function(D,L){lMa.prototype.point.call(this,L,D)};
eUb.prototype={moveTo:function(D,L){this._context.moveTo(L,D)},
closePath:function(){this._context.closePath()},
lineTo:function(D,L){this._context.lineTo(L,D)},
bezierCurveTo:function(D,L,T,ba,la,qa){this._context.bezierCurveTo(L,D,ba,T,qa,la)}};
Z3.prototype={constructor:Z3,scale:function(D){return D===1?this:new Z3(this.k*D,this.x,this.y)},
translate:function(D,L){return D===0&L===0?this:new Z3(this.k,this.x+this.k*D,this.y+this.k*L)},
apply:function(D){return[D[0]*this.k+this.x,D[1]*this.k+this.y]},
invert:function(D){return[(D[0]-this.x)/this.k,(D[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new Z3(1,0,0);bPa=ld;Nu.svg=Nu.svg;Nu.xhtml=Nu.xhtml;Nu.xlink=Nu.xlink;Nu.xml=Nu.xml;Nu.xmlns=Nu.xmlns})();/*

 Hammer.JS - v2.0.2 - 2014-07-26
 http://hammerjs.github.io/

 Copyright (c) 2014 Jorik Tangelder <j.tangelder@gmail.com>;
 Licensed under the MIT license */
var wub="hammer_"+(Math.random()*1E6|0),xub=function(){var a=document||document;if(!a[wub]){var b=function(){(function(c,d,e,g){function k(sa,Fa,La){return setTimeout(x(sa,La),Fa)}
function m(sa,Fa,La){return Array.isArray(sa)?(n(sa,La[Fa],La),!0):!1}
function n(sa,Fa,La){var nb;if(sa)if(sa.forEach)sa.forEach(Fa,La);else if(sa.length!==g){var hc=0;for(nb=sa.length;hc<nb;hc++)Fa.call(La,sa[hc],hc,sa)}else for(hc in sa)sa.hasOwnProperty(hc)&&Fa.call(La,sa[hc],hc,sa)}
function r(sa,Fa,La){for(var nb=Object.keys(Fa),hc=0,fb=nb.length;hc<fb;hc++)if(!La||La&&sa[nb[hc]]===g)sa[nb[hc]]=Fa[nb[hc]];return sa}
function t(sa,Fa){return r(sa,Fa,!0)}
function u(sa,Fa,La){Fa=Fa.prototype;var nb=sa.prototype=Object.create(Fa);nb.constructor=sa;nb._super=Fa;La&&r(nb,La)}
function x(sa,Fa){return function(){return sa.apply(Fa,arguments)}}
function A(sa,Fa){return typeof sa=="function"?sa.apply(Fa?Fa[0]||g:g,Fa):sa}
function C(sa,Fa,La){n(J(Fa),function(nb){sa.addEventListener(nb,La,!1)})}
function F(sa,Fa,La){n(J(Fa),function(nb){sa.removeEventListener(nb,La,!1)})}
function J(sa){return sa.trim().split(/\s+/g)}
function I(sa,Fa,La){if(sa.indexOf&&!La)return sa.indexOf(Fa);for(var nb=0,hc=sa.length;nb<hc;nb++)if(La&&sa[nb][La]==Fa||!La&&sa[nb]===Fa)return nb;return-1}
function R(sa,Fa,La){for(var nb=[],hc=[],fb=0,ib=sa.length;fb<ib;fb++){var Sb=Fa?sa[fb][Fa]:sa[fb];I(hc,Sb)<0&&nb.push(sa[fb]);hc[fb]=Sb}La&&(nb=Fa?nb.sort(function(wb,vd){return wb[Fa]>vd[Fa]}):nb.sort());
return nb}
function da(sa,Fa){for(var La,nb=Fa[0].toUpperCase()+Fa.slice(1),hc=0,fb=mb.length;hc<fb;hc++)if(La=(La=mb[hc])?La+nb:Fa,La in sa)return La;return g}
function V(sa,Fa){var La=this;this.manager=sa;this.callback=Fa;this.element=sa.element;this.target=sa.options.inputTarget;this.domHandler=function(nb){A(sa.options.enable,[sa])&&La.handler(nb)};
this.evEl&&C(this.element,this.evEl,this.domHandler);this.evTarget&&C(this.target,this.evTarget,this.domHandler);this.evWin&&C(c,this.evWin,this.domHandler)}
function fa(sa){var Fa;Gf?Fa=lb:Vn?Fa=Ua:ld?Fa=Vb:Fa=db;return new Fa(sa,aa)}
function aa(sa,Fa,La){var nb=La.pointers.length,hc=La.changedPointers.length,fb=Fa&1&&nb-hc===0;La.isFirst=!!fb;La.isFinal=!!(Fa&12&&nb-hc===0);fb&&(sa.session={});La.eventType=Fa;Fa=sa.session;nb=La.pointers;hc=nb.length;Fa.firstInput||(Fa.firstInput=ma(La));hc>1&&!Fa.firstMultiple?Fa.firstMultiple=ma(La):hc===1&&(Fa.firstMultiple=!1);fb=Fa.firstInput;var ib=(hc=Fa.firstMultiple)?hc.center:fb.center,Sb=La.center=Ba(nb);La.timeStamp=Tc();La.deltaTime=La.timeStamp-fb.timeStamp;La.angle=Ia(ib,Sb);La.distance=
ya(ib,Sb);fb=La.center;ib=Fa.offsetDelta||{};Sb=Fa.prevDelta||{};var wb=Fa.prevInput||{};if(La.eventType===1||wb.eventType===4)Sb=Fa.prevDelta={x:wb.deltaX||0,y:wb.deltaY||0},ib=Fa.offsetDelta={x:fb.x,y:fb.y};La.deltaX=Sb.x+(fb.x-ib.x);La.deltaY=Sb.y+(fb.y-ib.y);La.offsetDirection=Ca(La.deltaX,La.deltaY);hc?(fb=hc.pointers,fb=ya(nb[0],nb[1],$h)/ya(fb[0],fb[1],$h)):fb=1;La.scale=fb;hc?(hc=hc.pointers,nb=Ia(nb[1],nb[0],$h)-Ia(hc[1],hc[0],$h)):nb=0;La.rotation=nb;ib=Fa.lastInterval||La;nb=La.timeStamp-
ib.timeStamp;La.eventType!=8&&(nb>25||ib.velocity===g)?(fb=ib.deltaX-La.deltaX,ib=ib.deltaY-La.deltaY,Sb=fb/nb||0,wb=ib/nb||0,nb=Sb,hc=wb,Sb=Gb(Sb)>Gb(wb)?Sb:wb,fb=Ca(fb,ib),Fa.lastInterval=La):(Sb=ib.velocity,nb=ib.velocityX,hc=ib.velocityY,fb=ib.direction);La.velocity=Sb;La.velocityX=nb;La.velocityY=hc;La.direction=fb;Fa=sa.element;a:{for(nb=La.srcEvent.target;nb;){if(nb==Fa){nb=!0;break a}nb=nb.parentNode}nb=!1}nb&&(Fa=La.srcEvent.target);La.target=Fa;sa.emit("hammer.input",La);sa.recognize(La);
sa.session.prevInput=La}
function ma(sa){for(var Fa=[],La=0;La<sa.pointers.length;La++)Fa[La]={clientX:hd(sa.pointers[La].clientX),clientY:hd(sa.pointers[La].clientY)};return{timeStamp:Tc(),pointers:Fa,center:Ba(Fa),deltaX:sa.deltaX,deltaY:sa.deltaY}}
function Ba(sa){var Fa=sa.length;if(Fa===1)return{x:hd(sa[0].clientX),y:hd(sa[0].clientY)};for(var La=0,nb=0,hc=0;hc<Fa;hc++)La+=sa[hc].clientX,nb+=sa[hc].clientY;return{x:hd(La/Fa),y:hd(nb/Fa)}}
function Ca(sa,Fa){return sa===Fa?1:Gb(sa)>=Gb(Fa)?sa>0?2:4:Fa>0?8:16}
function ya(sa,Fa,La){La||(La=Af);var nb=Fa[La[0]]-sa[La[0]];sa=Fa[La[1]]-sa[La[1]];return Math.sqrt(nb*nb+sa*sa)}
function Ia(sa,Fa,La){La||(La=Af);return Math.atan2(Fa[La[1]]-sa[La[1]],Fa[La[0]]-sa[La[0]])*180/Math.PI}
function db(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;V.apply(this,arguments)}
function lb(){this.evEl=Wn;this.evWin=Sm;V.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function Ua(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};V.apply(this,arguments)}
function Vb(){V.apply(this,arguments);var sa=x(this.handler,this);this.touch=new Ua(this.manager,sa);this.mouse=new db(this.manager,sa)}
function rb(sa,Fa){this.manager=sa;this.set(Fa)}
function sb(sa){if(sa.indexOf("none")>-1)return"none";var Fa=sa.indexOf("pan-x")>-1,La=sa.indexOf("pan-y")>-1;return Fa&&La?"pan-x pan-y":Fa||La?Fa?"pan-x":"pan-y":sa.indexOf("manipulation")>-1?"manipulation":"auto"}
function yc(sa){this.id=Bd++;this.manager=null;this.options=t(sa||{},this.defaults);sa=this.options.enable;this.options.enable=sa===g?!0:sa;this.state=1;this.simultaneous={};this.requireFail=[]}
function Mb(sa){return sa==16?"down":sa==8?"up":sa==2?"left":sa==4?"right":""}
function ub(sa,Fa){return(Fa=Fa.manager)?Fa.get(sa):sa}
function Db(){yc.apply(this,arguments)}
function Wc(){Db.apply(this,arguments);this.pY=this.pX=null}
function Mc(){Db.apply(this,arguments)}
function ia(){yc.apply(this,arguments);this._input=this._timer=null}
function ac(){Db.apply(this,arguments)}
function Qb(){Db.apply(this,arguments)}
function Ac(){yc.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function qb(sa,Fa){Fa=Fa||{};var La=Fa.recognizers;Fa.recognizers=La===g?qb.defaults.preset:La;return new Cb(sa,Fa)}
function Cb(sa,Fa){Fa=Fa||{};this.options=t(Fa,qb.defaults);this.options.inputTarget=this.options.inputTarget||sa;this.handlers={};this.session={};this.recognizers=[];this.element=sa;this.input=fa(this);this.touchAction=new rb(this,this.options.touchAction);ab(this,!0);n(Fa.recognizers,function(La){var nb=this.add(new La[0](La[1]));La[2]&&nb.recognizeWith(La[2]);La[3]&&nb.requireFailure(La[2])},this)}
function ab(sa,Fa){var La=sa.element;n(sa.options.cssProps,function(nb,hc){La.style[da(La.style,hc)]=Fa?nb:""})}
function Pa(sa,Fa){var La=d.createEvent("Event");La.initEvent(sa,!0,!0);La.gesture=Fa;Fa.target.dispatchEvent(La)}
var mb=" webkit moz MS ms o".split(" "),Yb=d.createElement("div"),hd=Math.round,Gb=Math.abs,Tc=Date.now,Bd=1,Rm=/mobile|tablet|ip(ad|hone|od)|android/i,ld="ontouchstart"in c,Gf=da(c,"PointerEvent")!==g,Vn=ld&&Rm.test(navigator.userAgent),Af=["x","y"],$h=["clientX","clientY"];V.prototype={handler:function(){},
destroy:function(){this.evEl&&F(this.element,this.evEl,this.domHandler);this.evTarget&&F(this.target,this.evTarget,this.domHandler);this.evWin&&F(c,this.evWin,this.domHandler)}};
var zi={mousedown:1,mousemove:2,mouseup:4};u(db,V,{handler:function(sa){var Fa=zi[sa.type];Fa&1&&sa.button===0&&(this.pressed=!0);Fa&2&&sa.which!==1&&(Fa=4);this.pressed&&this.allow&&(Fa&4&&(this.pressed=!1),this.callback(this.manager,Fa,{pointers:[sa],changedPointers:[sa],pointerType:"mouse",srcEvent:sa}))}});
var td={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},aq={2:"touch",3:"pen",4:"mouse",5:"kinect"},Wn="pointerdown",Sm="pointermove pointerup pointercancel";c.MSPointerEvent&&(Wn="MSPointerDown",Sm="MSPointerMove MSPointerUp MSPointerCancel");u(lb,V,{handler:function(sa){var Fa=this.store,La=!1,nb=sa.type.toLowerCase().replace("ms","");nb=td[nb];var hc=aq[sa.pointerType]||sa.pointerType;nb&1&&(sa.button===0||hc=="touch")?Fa.push(sa):nb&12&&(La=!0);var fb=I(Fa,sa.pointerId,"pointerId");
fb<0||(Fa[fb]=sa,this.callback(this.manager,nb,{pointers:Fa,changedPointers:[sa],pointerType:hc,srcEvent:sa}),La&&Fa.splice(fb,1))}});
var Vi={touchstart:1,touchmove:2,touchend:4,touchcancel:8};u(Ua,V,{handler:function(sa){var Fa=Vi[sa.type];var La=Array.prototype.slice.call(sa.touches,0);var nb=this.targetIds;if(Fa&3&&La.length===1)nb[La[0].identifier]=!0,nb=[La,La];else{var hc,fb=Array.prototype.slice.call(sa.targetTouches,0),ib=Array.prototype.slice.call(sa.changedTouches,0),Sb=[];if(Fa===1)for(La=0,hc=fb.length;La<hc;La++)nb[fb[La].identifier]=!0;La=0;for(hc=ib.length;La<hc;La++)nb[ib[La].identifier]&&Sb.push(ib[La]),Fa&12&&
delete nb[ib[La].identifier];nb=Sb.length?[R(fb.concat(Sb),"identifier",!0),Sb]:void 0}nb&&this.callback(this.manager,Fa,{pointers:nb[0],changedPointers:nb[1],pointerType:"touch",srcEvent:sa})}});
u(Vb,V,{handler:function(sa,Fa,La){var nb=La.pointerType=="mouse";if(La.pointerType=="touch")this.mouse.allow=!1;else if(nb&&!this.mouse.allow)return;Fa&12&&(this.mouse.allow=!0);this.callback(sa,Fa,La)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var be=da(Yb.style,"touchAction"),ap=be!==g;rb.prototype={set:function(sa){sa=="compute"&&(sa=this.compute());ap&&(this.manager.element.style[be]=sa);this.actions=sa.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var sa=[];n(this.manager.recognizers,function(Fa){A(Fa.options.enable,[Fa])&&(sa=sa.concat(Fa.getTouchAction()))});
return sb(sa.join(" "))},
preventDefaults:function(sa){if(!ap){var Fa=sa.srcEvent;sa=sa.offsetDirection;if(this.manager.session.prevented)Fa.preventDefault();else{var La=this.actions,nb=La.indexOf("none")>-1,hc=La.indexOf("pan-y")>-1;La=La.indexOf("pan-x")>-1;if(nb||hc&&La||hc&&sa&6||La&&sa&24)return this.preventSrc(Fa)}}},
preventSrc:function(sa){this.manager.session.prevented=!0;sa.preventDefault()}};
yc.prototype={defaults:{},set:function(sa){r(this.options,sa);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(sa){if(m(sa,"recognizeWith",this))return this;var Fa=this.simultaneous;sa=ub(sa,this);Fa[sa.id]||(Fa[sa.id]=sa,sa.recognizeWith(this));return this},
dropRecognizeWith:function(sa){if(m(sa,"dropRecognizeWith",this))return this;sa=ub(sa,this);delete this.simultaneous[sa.id];return this},
requireFailure:function(sa){if(m(sa,"requireFailure",this))return this;var Fa=this.requireFail;sa=ub(sa,this);I(Fa,sa)===-1&&(Fa.push(sa),sa.requireFailure(this));return this},
dropRequireFailure:function(sa){if(m(sa,"dropRequireFailure",this))return this;sa=ub(sa,this);sa=I(this.requireFail,sa);sa>-1&&this.requireFail.splice(sa,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(sa){return!!this.simultaneous[sa.id]},
emit:function(sa){function Fa(hc){La.manager.emit(La.options.event+(hc?nb&16?"cancel":nb&8?"end":nb&4?"move":nb&2?"start":"":""),sa)}
var La=this,nb=this.state;nb<8&&Fa(!0);Fa();nb>=8&&Fa(!0)},
tryEmit:function(sa){if(this.canEmit())return this.emit(sa);this.state=32},
canEmit:function(){for(var sa=0;sa<this.requireFail.length;sa++)if(!(this.requireFail[sa].state&33))return!1;return!0},
recognize:function(sa){sa=r({},sa);A(this.options.enable,[this,sa])?(this.state&56&&(this.state=1),this.state=this.process(sa),this.state&30&&this.tryEmit(sa)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
u(Db,yc,{defaults:{pointers:1},attrTest:function(sa){var Fa=this.options.pointers;return Fa===0||sa.pointers.length===Fa},
process:function(sa){var Fa=this.state,La=sa.eventType,nb=Fa&6;sa=this.attrTest(sa);return nb&&(La&8||!sa)?Fa|16:nb||sa?La&4?Fa|8:Fa&2?Fa|4:2:32}});
u(Wc,Db,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var sa=this.options.direction;if(sa===30)return["none"];var Fa=[];sa&6&&Fa.push("pan-y");sa&24&&Fa.push("pan-x");return Fa},
directionTest:function(sa){var Fa=this.options,La=!0,nb=sa.distance,hc=sa.direction,fb=sa.deltaX,ib=sa.deltaY;hc&Fa.direction||(Fa.direction&6?(hc=fb===0?1:fb<0?2:4,La=fb!=this.pX,nb=Math.abs(sa.deltaX)):(hc=ib===0?1:ib<0?8:16,La=ib!=this.pY,nb=Math.abs(sa.deltaY)));sa.direction=hc;return La&&nb>Fa.threshold&&hc&Fa.direction},
attrTest:function(sa){return Db.prototype.attrTest.call(this,sa)&&(this.state&2||!(this.state&2)&&this.directionTest(sa))},
emit:function(sa){this.pX=sa.deltaX;this.pY=sa.deltaY;var Fa=Mb(sa.direction);Fa&&this.manager.emit(this.options.event+Fa,sa);this._super.emit.call(this,sa)}});
u(Mc,Db,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(sa){return this._super.attrTest.call(this,sa)&&(Math.abs(sa.scale-1)>this.options.threshold||this.state&2)},
emit:function(sa){this._super.emit.call(this,sa);sa.scale!==1&&this.manager.emit(this.options.event+(sa.scale<1?"in":"out"),sa)}});
u(ia,yc,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(sa){var Fa=this.options,La=sa.pointers.length===Fa.pointers,nb=sa.distance<Fa.threshold,hc=sa.deltaTime>Fa.time;this._input=sa;if(!nb||!La||sa.eventType&12&&!hc)this.reset();else if(sa.eventType&1)this.reset(),this._timer=k(function(){this.state=8;this.tryEmit()},Fa.time,this);
else if(sa.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(sa){this.state===8&&(sa&&sa.eventType&4?this.manager.emit(this.options.event+"up",sa):(this._input.timeStamp=Tc(),this.manager.emit(this.options.event,this._input)))}});
u(ac,Db,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(sa){return this._super.attrTest.call(this,sa)&&(Math.abs(sa.rotation)>this.options.threshold||this.state&2)}});
u(Qb,Db,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return Wc.prototype.getTouchAction.call(this)},
attrTest:function(sa){var Fa=this.options.direction;if(Fa&30)var La=sa.velocity;else Fa&6?La=sa.velocityX:Fa&24&&(La=sa.velocityY);return this._super.attrTest.call(this,sa)&&Fa&sa.direction&&Gb(La)>this.options.velocity&&sa.eventType&4},
emit:function(sa){var Fa=Mb(sa.direction);Fa&&this.manager.emit(this.options.event+Fa,sa);this.manager.emit(this.options.event,sa)}});
u(Ac,yc,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(sa){var Fa=this.options,La=sa.pointers.length===Fa.pointers,nb=sa.distance<Fa.threshold,hc=sa.deltaTime<Fa.time;this.reset();if(sa.eventType&1&&this.count===0)return this.failTimeout();if(nb&&hc&&La){if(sa.eventType!=4)return this.failTimeout();La=this.pTime?sa.timeStamp-this.pTime<Fa.interval:!0;nb=!this.pCenter||ya(this.pCenter,sa.center)<Fa.posThreshold;this.pTime=sa.timeStamp;this.pCenter=sa.center;nb&&La?this.count+=1:this.count=1;this._input=sa;if(this.count%Fa.taps===0)return this.hasRequireFailures()?
(this._timer=k(function(){this.state=8;this.tryEmit()},Fa.interval,this),2):8}return 32},
failTimeout:function(){this._timer=k(function(){this.state=32},this.options.interval,this);
return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(){this.state==8&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});
qb.VERSION="2.0.2";qb.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[ac,{enable:!1}],[Mc,{enable:!1},["rotate"]],[Qb,{direction:6}],[Wc,{direction:6},["swipe"]],[Ac],[Ac,{event:"doubletap",taps:2},["tap"]],[ia]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Cb.prototype={set:function(sa){r(this.options,sa);return this},
stop:function(sa){this.session.stopped=sa?2:1},
recognize:function(sa){var Fa=this.session;if(!Fa.stopped){this.touchAction.preventDefaults(sa);var La=this.recognizers,nb=Fa.curRecognizer;if(!nb||nb&&nb.state&8)nb=Fa.curRecognizer=null;for(var hc=0,fb=La.length;hc<fb;hc++){var ib=La[hc];Fa.stopped===2||nb&&ib!=nb&&!ib.canRecognizeWith(nb)?ib.reset():ib.recognize(sa);!nb&&ib.state&14&&(nb=Fa.curRecognizer=ib)}}},
get:function(sa){if(sa instanceof yc)return sa;for(var Fa=this.recognizers,La=0;La<Fa.length;La++)if(Fa[La].options.event==sa)return Fa[La];return null},
add:function(sa){if(m(sa,"add",this))return this;var Fa=this.get(sa.options.event);Fa&&this.remove(Fa);this.recognizers.push(sa);sa.manager=this;this.touchAction.update();return sa},
remove:function(sa){if(m(sa,"remove",this))return this;var Fa=this.recognizers;sa=this.get(sa);Fa.splice(I(Fa,sa),1);this.touchAction.update();return this},
on:function(sa,Fa){var La=this.handlers;n(J(sa),function(nb){La[nb]=La[nb]||[];La[nb].push(Fa)});
return this},
off:function(sa,Fa){var La=this.handlers;n(J(sa),function(nb){Fa?La[nb].splice(I(La[nb],Fa),1):delete La[nb]});
return this},
emit:function(sa,Fa){this.options.domEvents&&Pa(sa,Fa);var La=this.handlers[sa]&&this.handlers[sa].slice();if(La&&La.length){Fa.type=sa;Fa.preventDefault=function(){Fa.srcEvent.preventDefault()};
sa=0;for(var nb=La.length;sa<nb;sa++)La[sa](Fa)}},
destroy:function(){this.element&&ab(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
r(qb,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Cb,Input:V,TouchAction:rb,Recognizer:yc,AttrRecognizer:Db,Tap:Ac,Pan:Wc,Swipe:Qb,Pinch:Mc,Rotate:ac,Press:ia,on:C,off:F,each:n,merge:t,extend:r,inherit:u,bindFn:x,prefixed:da});
c[e]=qb})(window,document,"Hammer");
return window.Hammer}.call({});
b.DOCUMENT=a;a[wub]=b}return a[wub]};/*

 MIT License

 Copyright (c) 2017 Alexander Reardon

 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
*/
var yub=function(a,b){if(a.length!==b.length)return!1;for(var c=0;c<a.length;++c)if(a[c]!==b[c])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var zub=_.h(["https://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic,500,500italic,700,700italic","https://fonts.googleapis.com/css?family=Roboto+Mono:400,700"]),Aub=zub.next();!Aub.done;Aub=zub.next()){var Bub=Aub.value,Cub=document.createElement("link");Cub.rel="stylesheet";Cub.href=Bub;document.head.appendChild(Cub)};var Mya,Oya,Qya,Jya,Nya,Kya,Hya,Iya;Mya={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};Oya={8:"backspace",9:"tab",13:"enter",27:"esc",33:"pageup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"right",40:"down",46:"del",106:"*"};Qya={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};Jya=/[a-z0-9*]/;Nya=/U\+/;Kya=/^arrow/;Hya=/^space(bar)?/;Iya=/^escape$/;_.FD={properties:{keyEventTarget:{type:Object,value:function(){return this}},
stopKeyboardEventPropagation:{type:Boolean,value:!1},_boundKeyHandlers:{type:Array,value:function(){return[]}},
_imperativeKeyBindings:{type:Object,value:function(){return{}}}},
observers:["_resetKeyEventListeners(keyEventTarget, _boundKeyHandlers)"],keyBindings:{},registered:function(){this._prepKeyBindings()},
attached:function(){this._listenKeyEventListeners()},
detached:function(){this._unlistenKeyEventListeners()},
addOwnKeyBinding:function(a,b){this._imperativeKeyBindings[a]=b;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(a,b){b=Sya(b);for(var c=0;c<b.length;++c)if(Pya(b[c],a))return!0;return!1},
_collectKeyBindings:function(){var a=this.behaviors.map(function(b){return b.keyBindings});
a.indexOf(this.keyBindings)===-1&&a.push(this.keyBindings);return a},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(c){for(var d in c)this._addKeyBinding(d,c[d])},this);
for(var a in this._imperativeKeyBindings)this._addKeyBinding(a,this._imperativeKeyBindings[a]);for(var b in this._keyBindings)this._keyBindings[b].sort(function(c,d){c=c[0].hasModifiers;return c===d[0].hasModifiers?0:c?-1:1})},
_addKeyBinding:function(a,b){Sya(a).forEach(function(c){this._keyBindings[c.event]=this._keyBindings[c.event]||[];this._keyBindings[c.event].push([c,b])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(a){var b=this._onKeyBindingEvent.bind(this,this._keyBindings[a]);this._boundKeyHandlers.push([this.keyEventTarget,a,b]);this.keyEventTarget.addEventListener(a,b)},this)},
_unlistenKeyEventListeners:function(){for(var a,b,c;this._boundKeyHandlers.length;)a=this._boundKeyHandlers.pop(),b=a[0],c=a[1],a=a[2],b.removeEventListener(c,a)},
_onKeyBindingEvent:function(a,b){this.stopKeyboardEventPropagation&&b.stopPropagation();if(!b.defaultPrevented)for(var c=0;c<a.length;c++){var d=a[c][0],e=a[c][1];if(Pya(d,b)&&(this._triggerKeyHandler(d,e,b),b.defaultPrevented))break}},
_triggerKeyHandler:function(a,b,c){var d=Object.create(a);d.keyboardEvent=c;a=new CustomEvent(a.event,{detail:d,cancelable:!0});this[b].call(this,a);a.defaultPrevented&&c.preventDefault()}};/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
_.sr({is:"iron-a11y-keys",_template:null,behaviors:[_.FD],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(a){this.keyEventTarget=a},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(a){this.fire("keys-pressed",a.detail,{})}});_.GD={properties:{focused:{type:Boolean,value:!1,notify:!0,readOnly:!0,reflectToAttribute:!0},disabled:{type:Boolean,value:!1,notify:!0,observer:"_disabledChanged",reflectToAttribute:!0},_oldTabIndex:{type:String},_boundFocusBlurHandler:{type:Function,value:function(){return this._focusBlurHandler.bind(this)}}},
observers:["_changedControlState(focused, disabled)"],ready:function(){this.addEventListener("focus",this._boundFocusBlurHandler,!0);this.addEventListener("blur",this._boundFocusBlurHandler,!0)},
_focusBlurHandler:function(a){this._setFocused(a.type==="focus")},
_disabledChanged:function(a){this.setAttribute("aria-disabled",a?"true":"false");this.style.pointerEvents=a?"none":"";a?(this._oldTabIndex=this.getAttribute("tabindex"),this._setFocused(!1),this.tabIndex=-1,this.blur()):this._oldTabIndex!==void 0&&(this._oldTabIndex===null?this.removeAttribute("tabindex"):this.setAttribute("tabindex",this._oldTabIndex))},
_changedControlState:function(){this._controlStateChanged&&this._controlStateChanged()}};var HD={properties:{pressed:{type:Boolean,readOnly:!0,value:!1,reflectToAttribute:!0,observer:"_pressedChanged"},toggles:{type:Boolean,value:!1,reflectToAttribute:!0},active:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},pointerDown:{type:Boolean,readOnly:!0,value:!1},receivedFocusFromKeyboard:{type:Boolean,readOnly:!0},ariaActiveAttribute:{type:String,value:"aria-pressed",observer:"_ariaActiveAttributeChanged"}},listeners:{down:"_downHandler",mouseup:"_upHandler",tap:"_tapHandler"},observers:["_focusChanged(focused)",
"_activeChanged(active, ariaActiveAttribute)"],keyBindings:{"enter:keydown":"_asyncClick","space:keydown":"_spaceKeyDownHandler","space:keyup":"_spaceKeyUpHandler"},_mouseEventRe:/^mouse/,_tapHandler:function(){this.toggles?this._userActivate(!this.active):this.active=!1},
_focusChanged:function(a){this._detectKeyboardFocus(a);a||this._setPressed(!1)},
_detectKeyboardFocus:function(a){this._setReceivedFocusFromKeyboard(!this.pointerDown&&a)},
_userActivate:function(a){this.active!==a&&(this.active=a,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(a){a=a.detail.keyboardEvent;var b=_.wn(a).localTarget;this.isLightDescendant(b)||(a.preventDefault(),a.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(a){a=_.wn(a.detail.keyboardEvent).localTarget;this.isLightDescendant(a)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(a,b){b&&b!=a&&this.hasAttribute(b)&&this.removeAttribute(b)},
_activeChanged:function(a){this.toggles?this.setAttribute(this.ariaActiveAttribute,a?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},Dub=[_.FD,
HD];_.ID={IronButtonState:Dub,IronButtonStateImpl:HD};_.JD={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.KD=function(a){_.KD[" "](a);this.type=a&&a.type||"default";this.key=a&&a.key;a&&"value"in a&&(this.value=a.value)};
_.KD.prototype.byKey=function(a){this.key=a;return this.value};
_.Um.Object.defineProperties(_.KD.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var a=this.type,b=this.key;if(a&&b)return LD[a]&&LD[a][b]},
set:function(a){var b=this.type,c=this.key;b&&c&&(b=LD[b]=LD[b]||{},a==null?delete b[c]:b[c]=a)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var a=LD[this.type];return a?Object.keys(a).map(function(b){return LD[this.type][b]},this):[]}}});
_.KD[" "]=function(){};
var LD={};_.sr({is:"iron-meta",_template:null,properties:{type:{type:String,value:"default"},key:{type:String},value:{type:String,notify:!0},self:{type:Boolean,observer:"_selfChanged"},__meta:{type:Boolean,computed:"__computeMeta(type, key, value)"}},hostAttributes:{hidden:!0},__computeMeta:function(a,b,c){a=new _.KD({type:a,key:b});c!==void 0&&c!==a.value?a.value=c:this.value!==a.value&&(this.value=a.value);return a},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(a){a&&(this.value=this)},
byKey:function(a){return(new _.KD({type:this.type,key:a})).value}});var Eub;Eub=null;_.MD={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){Eub=new _.KD({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return Eub&&Eub.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(a){this.invalid=a===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(a);return!this.invalid},
_getValidity:function(a){return this.hasValidator()?this._validator.validate(a):!0}};var Fub={properties:{checked:{type:Boolean,value:!1,reflectToAttribute:!0,notify:!0,observer:"_checkedChanged"},toggles:{type:Boolean,value:!0,reflectToAttribute:!0},value:{type:String,value:"on",observer:"_valueChanged"}},observers:["_requiredChanged(required)"],created:function(){this._hasIronCheckedElementBehavior=!0},
_getValidity:function(){return this.disabled||!this.required||this.checked},
_requiredChanged:function(){this.required?this.setAttribute("aria-required","true"):this.removeAttribute("aria-required")},
_checkedChanged:function(){this.active=this.checked;this.fire("iron-change")},
_valueChanged:function(){if(this.value===void 0||this.value===null)this.value="on"}},Gub=[_.JD,
_.MD,Fub];_.sr({is:"iron-iconset-svg",_template:null,properties:{name:{type:String,observer:"_nameChanged"},size:{type:Number,value:24},rtlMirroring:{type:Boolean,value:!1},useGlobalRtlAttribute:{type:Boolean,value:!1}},created:function(){this._meta=new _.KD({type:"iconset",key:null,value:null})},
attached:function(){this.style.display="none"},
getIconNames:function(){this._icons=this._createIconMap();return Object.keys(this._icons).map(function(a){return this.name+":"+a},this)},
applyIcon:function(a,b){this.removeIcon(a);if(b=this._cloneIcon(b,this.rtlMirroring&&this._targetIsRTL(a))){var c=_.wn(a.root||a);c.insertBefore(b,c.childNodes[0]);return a._svgIcon=b}return null},
removeIcon:function(a){a._svgIcon&&(_.wn(a.root||a).removeChild(a._svgIcon),a._svgIcon=null)},
_targetIsRTL:function(a){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(a&&a.nodeType!==Node.ELEMENT_NODE&&(a=a.host),this.__targetIsRTL=a&&window.getComputedStyle(a).direction==="rtl"));return this.__targetIsRTL},
_nameChanged:function(){this._meta.value=null;this._meta.key=this.name;this._meta.value=this;this.async(function(){this.fire("iron-iconset-added",this,{node:window})})},
_createIconMap:function(){var a=Object.create(null);_.wn(this).querySelectorAll("[id]").forEach(function(b){a[b.id]=b});
return a},
_cloneIcon:function(a,b){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[a],this.size,b)},
_prepareSvgClone:function(a,b,c){if(a){a=a.cloneNode(!0);var d=document.createElementNS("http://www.w3.org/2000/svg","svg");b=a.getAttribute("viewBox")||"0 0 "+b+" "+b;var e="pointer-events: none; display: block; width: 100%; height: 100%;";c&&a.hasAttribute("mirror-in-rtl")&&(e+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");d.setAttribute("viewBox",b);d.setAttribute("preserveAspectRatio","xMidYMid meet");d.setAttribute("focusable","false");d.style&&(d.style.cssText=
e);d.appendChild(a).removeAttribute("id");return d}return null}});var Hub=function(a){this.multi=!1;this.selection=[];this.selectCallback=a};
_.f=Hub.prototype;_.f.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.f.clear=function(a){this.selection.slice().forEach(function(b){(!a||a.indexOf(b)<0)&&this.setItemSelected(b,!1)},this)};
_.f.isSelected=function(a){return this.selection.indexOf(a)>=0};
_.f.setItemSelected=function(a,b){if(a!=null&&b!==this.isSelected(a)){if(b)this.selection.push(a);else{var c=this.selection.indexOf(a);c>=0&&this.selection.splice(c,1)}this.selectCallback&&this.selectCallback(a,b)}};
_.f.select=function(a){this.multi?this.toggle(a):this.get()!==a&&(this.setItemSelected(this.get(),!1),this.setItemSelected(a,!0))};
_.f.toggle=function(a){this.setItemSelected(a,!this.isSelected(a))};_.Hr={properties:{attrForSelected:{type:String,value:null},selected:{type:String,notify:!0},selectedItem:{type:Object,readOnly:!0,notify:!0},activateEvent:{type:String,value:"tap",observer:"_activateEventChanged"},selectable:String,selectedClass:{type:String,value:"iron-selected"},selectedAttribute:{type:String,value:null},fallbackSelection:{type:String,value:null},items:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}},
_excludedLocalNames:{type:Object,value:function(){return{template:1,"dom-bind":1,"dom-if":1,"dom-repeat":1,"ps-dom-if":1,"ps-dom-repeat":1}}}},
observers:["_updateAttrForSelected(attrForSelected)","_updateSelected(selected)","_checkFallback(fallbackSelection)"],created:function(){this._bindFilterItem=this._filterItem.bind(this);this._selection=new Hub(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.wn(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(a){return this.items?this.items.indexOf(a):-1},
select:function(a){this.selected=a},
selectPrevious:function(){var a=this.items.length,b=a-1;this.selected!==void 0&&(b=(Number(this._valueToIndex(this.selected))-1+a)%a);this.selected=this._indexToValue(b)},
selectNext:function(){var a=0;this.selected!==void 0&&(a=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(a)},
selectIndex:function(a){this.select(this._indexToValue(a))},
forceSynchronousItemUpdate:function(){this._observer&&typeof this._observer.flush==="function"?this._observer.flush():this._updateItems()},
get _shouldUpdateSelection(){return this.selected!=null},_checkFallback:function(){this._updateSelected()},
_addListener:function(a){this.listen(this,a,"_activateHandler")},
_removeListener:function(a){this.unlisten(this,a,"_activateHandler")},
_activateEventChanged:function(a,b){this._removeListener(b);this._addListener(a)},
_updateItems:function(){var a=_.wn(this).queryDistributedElements(this.selectable||"*");a=Array.prototype.filter.call(a,this._bindFilterItem);this._setItems(a)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var a=this._valueToItem(this.selected);a?this._selection.select(a):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(a){return!this._excludedLocalNames[a.localName]},
_valueToItem:function(a){return a==null?null:this.items[this._valueToIndex(a)]},
_valueToIndex:function(a){if(this.attrForSelected)for(var b=0,c;c=this.items[b];b++){if(this._valueForItem(c)==a)return b}else return Number(a)},
_indexToValue:function(a){if(this.attrForSelected){if(a=this.items[a])return this._valueForItem(a)}else return a},
_valueForItem:function(a){if(!a)return null;if(!this.attrForSelected)return a=this.indexOf(a),a===-1?null:a;var b=a[cm(this.attrForSelected)];return b!=void 0?b:a.getAttribute(this.attrForSelected)},
_applySelection:function(a,b){this.selectedClass&&this.toggleClass(this.selectedClass,b,a);this.selectedAttribute&&this.toggleAttribute.call(a,this.selectedAttribute,b);this._selectionChange();this.fire("iron-"+(b?"select":"deselect"),{item:a})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(a){return _.wn(a).observeNodes(function(b){this._updateItems();this._updateSelected();this.fire("iron-items-changed",b,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(a){a=a.target;for(var b=this.items;a&&a!=this;){var c=b.indexOf(a);if(c>=0){b=this._indexToValue(c);this._itemActivate(b,a);break}a=a.parentNode}},
_itemActivate:function(a,b){this.fire("iron-activate",{selected:a,item:b},{cancelable:!0}).defaultPrevented||this.select(a)}};var Iub={properties:{multi:{type:Boolean,value:!1,observer:"multiChanged"},selectedValues:{type:Array,notify:!0,value:function(){return[]}},
selectedItems:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}}},
observers:["_updateSelected(selectedValues.splices)"],select:function(a){this.multi?this._toggleSelected(a):this.selected=a},
multiChanged:function(a){this._selection.multi=a;this._updateSelected()},
get _shouldUpdateSelection(){return this.selected!=null||this.selectedValues!=null&&this.selectedValues.length},_updateAttrForSelected:function(){this.multi?this.selectedItems&&this.selectedItems.length>0&&(this.selectedValues=this.selectedItems.map(function(a){return this._indexToValue(this.indexOf(a))},this).filter(function(a){return a!=null},this)):_.Hr._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(a){a=a||[];a=(this._valuesToItems(a)||[]).filter(function(c){return c!==null&&c!==void 0});
this._selection.clear(a);for(var b=0;b<a.length;b++)this._selection.setItemSelected(a[b],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var a=this._selection.get();this.multi?(this._setSelectedItems(a),this._setSelectedItem(a.length?a[0]:null)):a!==null&&a!==void 0?(this._setSelectedItems([a]),this._setSelectedItem(a)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(a){var b=this.selectedValues.indexOf(a);b<0?this.push("selectedValues",a):this.splice("selectedValues",b,1)},
_valuesToItems:function(a){return a==null?null:a.map(function(b){return this._valueToItem(b)},this)}},Jub=[_.Hr,
Iub];var Kub;
_.ND={properties:{focusedItem:{observer:"_focusedItemChanged",readOnly:!0,type:Object},attrForItemTitle:{type:String},disabled:{type:Boolean,value:!1,observer:"_disabledChanged"}},_MODIFIER_KEYS:"Alt AltGraph CapsLock Control Fn FnLock Hyper Meta NumLock OS ScrollLock Shift Super Symbol SymbolLock".split(" "),_SEARCH_RESET_TIMEOUT_MS:1E3,_previousTabIndex:0,hostAttributes:{role:"menu"},observers:["_updateMultiselectable(multi)"],listeners:{focus:"_onFocus",keydown:"_onKeydown","iron-items-changed":"_onIronItemsChanged"},keyBindings:{up:"_onUpKey",
down:"_onDownKey",esc:"_onEscKey","shift+tab:keydown":"_onShiftTabDown"},attached:function(){this._resetTabindices()},
select:function(a){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var b=this._valueToItem(a);b&&b.hasAttribute("disabled")||(this._setFocusedItem(b),Iub.select.apply(this,arguments))},
_resetTabindices:function(){var a=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(b){b.setAttribute("tabindex",b===a?"0":"-1");b.setAttribute("aria-selected",this._selection.isSelected(b))},this)},
_updateMultiselectable:function(a){a?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(a){if(this._MODIFIER_KEYS.indexOf(a.key)===-1){this.cancelDebouncer("_clearSearchText");var b=this._searchText||"";b+=(a.key&&a.key.length==1?a.key:String.fromCharCode(a.keyCode)).toLocaleLowerCase();a=b.length;for(var c=0,d;d=this.items[c];c++)if(!d.hasAttribute("disabled")){var e=this.attrForItemTitle||"textContent";e=(d[e]||d.getAttribute(e)||"").trim();if(!(e.length<a)&&e.slice(0,a).toLocaleLowerCase()==b){this._setFocusedItem(d);break}}this._searchText=b;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var a=this.items.length,b=Number(this.indexOf(this.focusedItem)),c=1;c<a+1;c++){var d=this.items[(b-c+a)%a];if(!d.hasAttribute("disabled")){var e=_.wn(d).getOwnerRoot()||document;this._setFocusedItem(d);if(_.wn(e).activeElement==d)break}}},
_focusNext:function(){for(var a=this.items.length,b=Number(this.indexOf(this.focusedItem)),c=1;c<a+1;c++){var d=this.items[(b+c)%a];if(!d.hasAttribute("disabled")){var e=_.wn(d).getOwnerRoot()||document;this._setFocusedItem(d);if(_.wn(e).activeElement==d)break}}},
_applySelection:function(a,b){b?a.setAttribute("aria-selected","true"):a.setAttribute("aria-selected","false");_.Hr._applySelection.apply(this,arguments)},
_focusedItemChanged:function(a,b){b&&b.setAttribute("tabindex","-1");!a||a.hasAttribute("disabled")||this.disabled||(a.setAttribute("tabindex","0"),a.focus())},
_onIronItemsChanged:function(a){a.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var a=this.getAttribute("tabindex");_.ND._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",a);_.ND._shiftTabPressed=!1},1)},
_onFocus:function(a){!_.ND._shiftTabPressed&&(a=_.wn(a).rootTarget,a===this||typeof a.tabIndex==="undefined"||this.isLightDescendant(a))&&(this._defaultFocusAsync=this.async(function(){var b=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);b?this._setFocusedItem(b):this.items[0]&&this._focusNext()}))},
_onUpKey:function(a){this._focusPrevious();a.detail.keyboardEvent.preventDefault()},
_onDownKey:function(a){this._focusNext();a.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var a=this.focusedItem;a&&a.blur()},
_onKeydown:function(a){this.keyboardEventMatchesKeys(a,"up down esc")||this._focusWithKeyboardEvent(a);a.stopPropagation()},
_activateHandler:function(a){_.Hr._activateHandler.call(this,a);a.stopPropagation()},
_disabledChanged:function(a){a?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};Kub=[Jub,_.FD,_.ND];_.Lub={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(a){this.focusedItem&&(this.focusedItem.click(),a.detail.keyboardEvent.preventDefault())},
_onDownKey:function(a){this.focusedItem&&(this.focusedItem.click(),a.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(a){return a.ctrlKey||a.shiftKey||a.altKey||a.metaKey},
_onLeftKey:function(a){this._isSpecialKey(a.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),a.detail.keyboardEvent.preventDefault())},
_onRightKey:function(a){this._isSpecialKey(a.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),a.detail.keyboardEvent.preventDefault())},
_onKeydown:function(a){this.keyboardEventMatchesKeys(a,"up down left right esc")||this._focusWithKeyboardEvent(a)}};
_.Mub=[Kub,_.Lub];var Nub;Nub=new Set;_.OD={properties:{_parentResizable:{type:Object,observer:"_parentResizableChanged"},_notifyingDescendant:{type:Boolean,value:!1}},listeners:{"iron-request-resize-notifications":"_onIronRequestResizeNotifications"},created:function(){this._interestedResizables=[];this._boundNotifyResize=this.notifyResize.bind(this);this._boundOnDescendantIronResize=this._onDescendantIronResize.bind(this)},
attached:function(){this._requestResizeNotifications()},
detached:function(){this._parentResizable?this._parentResizable.stopResizeNotificationsFor(this):(Nub.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(a){this.resizerShouldNotify(a)&&this._notifyDescendant(a)},this),this._fireResize())},
assignParentResizable:function(a){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=a)&&a._interestedResizables.indexOf(this)===-1&&(a._interestedResizables.push(this),a._subscribeIronResize(this))},
stopResizeNotificationsFor:function(a){var b=this._interestedResizables.indexOf(a);b>-1&&(this._interestedResizables.splice(b,1),this._unsubscribeIronResize(a))},
_subscribeIronResize:function(a){a.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(a){a.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(a){this._notifyingDescendant?a.stopPropagation():Fm||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(a){var b=_.wn(a).rootTarget;b!==this&&(b.assignParentResizable(this),this._notifyDescendant(b),a.stopPropagation())},
_parentResizableChanged:function(a){a&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(a){this.isAttached&&(this._notifyingDescendant=!0,a.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var a=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function c(){document.removeEventListener("readystatechange",c);a()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(b){b!==this&&b._findParent()},this):(Nub.forEach(function(b){b!==this&&b._findParent()},this),window.addEventListener("resize",this._boundNotifyResize),
this.notifyResize())},
_findParent:function(){this.assignParentResizable(null);this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0});this._parentResizable?Nub.delete(this):Nub.add(this)}};/*

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
_.Oub={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(a,b){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);b&&(a==="document"?this.scrollTarget=this._doc:typeof a==="string"?this.scrollTarget=(b=this.domHost)&&b.$?b.$[a]:_.wn(this.ownerDocument).querySelector("#"+a):this._isValidScrollTarget()&&(this._oldScrollTarget=a,this._toggleScrollListener(this._shouldHaveListener,a)))},
_scrollHandler:function(){},
get _defaultScrollTarget(){return this._doc},get _doc(){return this.ownerDocument.documentElement},get _scrollTop(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageYOffset:this.scrollTarget.scrollTop:0},get _scrollLeft(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageXOffset:this.scrollTarget.scrollLeft:0},set _scrollTop(a){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,a):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
a)},set _scrollLeft(a){this.scrollTarget===this._doc?window.scrollTo(a,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=a)},scroll:function(a,b){if(typeof a==="object"){var c=a.left;b=a.top}else c=a;c=c||0;b=b||0;this.scrollTarget===this._doc?window.scrollTo(c,b):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=c,this.scrollTarget.scrollTop=b)},
get _scrollTargetWidth(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerWidth:this.scrollTarget.offsetWidth:0},get _scrollTargetHeight(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerHeight:this.scrollTarget.offsetHeight:0},_isValidScrollTarget:function(){return this.scrollTarget instanceof HTMLElement},
_toggleScrollListener:function(a,b){b=b===this._doc?window:b;a?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),b.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(b.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(a){this._shouldHaveListener=a;this._toggleScrollListener(a,this.scrollTarget)}};_.sr({is:"iron-selector",_template:null,behaviors:[Jub]});var PD={properties:{animationTiming:{type:Object,value:function(){return{duration:500,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"both"}}}},
isNeonAnimation:!0,created:function(){document.body.animate||console.warn("No web animations detected. This element will not function without a web animations polyfill.")},
timingFromConfig:function(a){if(a.timing)for(var b in a.timing)this.animationTiming[b]=a.timing[b];return this.animationTiming},
setPrefixedProperty:function(a,b,c){for(var d={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[b],e,g=0;e=d[g];g++)a.style[e]=c;a.style[b]=c},
complete:function(){}};_.sr({is:"fade-in-animation",_template:null,behaviors:[PD],configure:function(a){return this._effect=new KeyframeEffect(a.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(a))}});_.sr({is:"fade-out-animation",_template:null,behaviors:[PD],configure:function(a){return this._effect=new KeyframeEffect(a.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(a))}});var Pub=[{properties:{animationConfig:{type:Object},entryAnimation:{observer:"_entryAnimationChanged",type:String},exitAnimation:{observer:"_exitAnimationChanged",type:String}},_entryAnimationChanged:function(){this.animationConfig=this.animationConfig||{};this.animationConfig.entry=[{name:this.entryAnimation,node:this}]},
_exitAnimationChanged:function(){this.animationConfig=this.animationConfig||{};this.animationConfig.exit=[{name:this.exitAnimation,node:this}]},
_copyProperties:function(a,b){for(var c in b)a[c]=b[c]},
_cloneConfig:function(a){var b={isClone:!0};this._copyProperties(b,a);return b},
_getAnimationConfigRecursive:function(a,b,c){if(this.animationConfig)if(this.animationConfig.value&&typeof this.animationConfig.value==="function")this._warn(this._logf("playAnimation","Please put 'animationConfig' inside of your components 'properties' object instead of outside of it."));else{var d=a?this.animationConfig[a]:this.animationConfig;Array.isArray(d)||(d=[d]);if(d)for(var e,g=0;e=d[g];g++)if(e.animatable)e.animatable._getAnimationConfigRecursive(e.type||a,b,c);else if(e.id){var k=b[e.id];
k?(k.isClone||(b[e.id]=this._cloneConfig(k),k=b[e.id]),this._copyProperties(k,e)):b[e.id]=e}else c.push(e)}},
getAnimationConfig:function(a){var b={},c=[];this._getAnimationConfigRecursive(a,b,c);for(var d in b)c.push(b[d]);return c}},
{_configureAnimations:function(a){var b=[],c=[];if(a.length>0)for(var d,e=0;d=a[e];e++){var g=document.createElement(d.name);if(g.isNeonAnimation){var k=null;g.configure||(g.configure=function(){return null});
k=g.configure(d);c.push({result:k,config:d})}else console.warn(this.is+":",d.name,"not found!")}for(a=0;a<c.length;a++){k=c[a].result;d=c[a].config;try{typeof k.cancel!="function"&&(k=document.timeline.play(k))}catch(m){k=null,console.warn("Couldnt play","(",d.name,").",m)}k&&b.push({neonAnimation:g,config:d,animation:k})}return b},
_shouldComplete:function(a){for(var b=!0,c=0;c<a.length;c++)if(a[c].animation.playState!="finished"){b=!1;break}return b},
_complete:function(a){for(var b=0;b<a.length;b++)a[b].neonAnimation.complete(a[b].config);for(b=0;b<a.length;b++)a[b].animation.cancel()},
playAnimation:function(a,b){var c=this.getAnimationConfig(a);if(c){this._active=this._active||{};this._active[a]&&(this._complete(this._active[a]),delete this._active[a]);var d=this._configureAnimations(c);if(d.length==0)this.fire("neon-animation-finish",b,{bubbles:!1});else for(this._active[a]=d,c=0;c<d.length;c++)d[c].animation.onfinish=function(){this._shouldComplete(d)&&(this._complete(d),delete this._active[a],this.fire("neon-animation-finish",b,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var a in this._active){var b=this._active[a],c;for(c in b)b[c].animation&&b[c].animation.cancel&&b[c].animation.cancel()}this._active={}}}];var ln=function(a,b){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.arg=b;this.name=this.constructor.name;this.constructor=ln;this.__proto__=ln.prototype};
_.z(ln,Error);var Qub=gC(function(a){var b=function(){return a.apply(this,arguments)||this};
_.z(b,a);b.prototype._marshalArgs=function(c,d,e){d=a.prototype._marshalArgs.call(this,c,d,e);if(this._legacyUndefinedCheck&&d.length>1)for(e=0;e<d.length;e++)if(d[e]===void 0||c[e].wildcard&&d[e].base===void 0)throw c=c[e].name,new ln("Argument '"+c+"' is undefined.",c);return d};
b.prototype._addPropertyEffect=function(c,d,e){return a.prototype._addPropertyEffect.call(this,c,d,Tya(e,e&&e.info&&e.info.methodName))};
b._addTemplatePropertyEffect=function(c,d,e){return a._addTemplatePropertyEffect.call(this,c,d,Tya(e))};
return b}),Rub=_.sr.Class;
_.sr.Class=function(a,b){return Rub(a,function(c){return b?b(Qub(c)):Qub(c)})};
var Sub=gC(function(a){var b=Qub(a);a=function(){return b.apply(this,arguments)||this};
_.z(a,b);_.Um.Object.defineProperties(a.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return a}),Tub=Hm.mixin;
Hm.mixin=Tub?function(a){return Sub(Tub(a))}:Sub;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.QD=_.ID.IronButtonState;var gLa=Em;/*

Math.uuid.js (v1.4)
http://www.broofa.com
mailto:robert@broofa.com
Copyright (c) 2010 Robert Kieffer
Dual licensed under the MIT and GPL licenses.
*/
var Vub;_.Uub="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");Vub=function(){var a=[],b;var c=c||_.Uub.length;for(b=0;b<8;b++)a[b]=_.Uub[0|Math.random()*c];return a.join("")};var Xya=function(){return Math.random().toString(36).substring(7).split("").join(".")},Wya="@@redux/INIT"+Xya(),$ya="@@redux/REPLACE"+Xya();var aza=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Wub=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var Xub="top right bottom left width height size weight".split(" "),Yub=typeof MutationObserver!=="undefined",Zub=Wub&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,$ub=function(){this.mutationEventsAdded_=this.JSC$9487_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=bza(this.refresh.bind(this))},avb=function(a,
b){var c=a.observers_;
b=c.indexOf(b);~b&&c.splice(b,1);!c.length&&a.JSC$9487_connected_&&Wub&&a.JSC$9487_connected_&&(document.removeEventListener("transitionend",a.onTransitionEnd_),window.removeEventListener("resize",a.refresh),a.mutationsObserver_&&(a.mutationsObserver_.disconnect(),Zub&&(HTMLElement.prototype.attachShadow=Zub)),a.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",a.refresh),a.mutationsObserver_=null,a.mutationEventsAdded_=!1,a.JSC$9487_connected_=!1)};
$ub.prototype.refresh=function(){bvb(this)&&this.refresh()};
var bvb=function(a){a=a.observers_.filter(function(b){return cvb(b),b.activeObservations_.length>0});
a.forEach(function(b){return dvb(b)});
return a.length>0},evb=function(a){if(Wub&&!a.JSC$9487_connected_){document.addEventListener("transitionend",a.onTransitionEnd_);
window.addEventListener("resize",a.refresh);if(Yub){a.mutationsObserver_=new MutationObserver(a.refresh);var b={attributes:!0,childList:!0,characterData:!0,subtree:!0};a.mutationsObserver_.observe(document,b);Zub&&(function e(d){var g=d.shadowRoot;g&&(a.mutationsObserver_.observe(g,b),e(g));for(d=d.firstElementChild;d;)e(d),d=d.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var d=Zub.apply(this,_.Kd.apply(0,arguments));
a.mutationsObserver_.observe(d,b);return d})}else document.addEventListener("DOMSubtreeModified",a.refresh),a.mutationEventsAdded_=!0;
a.JSC$9487_connected_=!0}};
$ub.prototype.onTransitionEnd_=function(a){var b=a.propertyName===void 0?"":a.propertyName;Xub.some(function(c){return!!~b.indexOf(c)})&&this.refresh()};
var fvb=null;var gvb=function(a,b){for(var c=_.h(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(a,d,{value:b[d],enumerable:!1,writable:!1,configurable:!0})};var RD=function(a){var b;return(a==null?void 0:(b=a.ownerDocument)==null?void 0:b.defaultView)||globalThis};var hvb={x:0,y:0,width:0,height:0},ivb=typeof SVGGraphicsElement!=="undefined"?function(a){return a instanceof RD(a).SVGGraphicsElement}:function(a){return a instanceof RD(a).SVGElement&&typeof a.getBBox==="function"};var jvb=function(a){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=a};
jvb.prototype.isActive=function(){var a=this.target;if(Wub)if(ivb(a)){var b=a.getBBox();b={x:0,y:0,width:b.width,height:b.height}}else{var c=a.clientWidth,d=a.clientHeight;if(c||d){var e=RD(a).getComputedStyle(a);b=nn(e["padding-top"]);var g=nn(e["padding-left"]),k=g+nn(e["padding-right"]),m=b+nn(e["padding-bottom"]),n=nn(e.width),r=nn(e.height);e.boxSizing==="border-box"&&(Math.round(n+k)!==c&&(n-=cza(e,"left","right")+k),Math.round(r+m)!==d&&(r-=cza(e,"top","bottom")+m));a!==RD(a).document.documentElement&&
(a=Math.round(n+k)-c,d=Math.round(r+m)-d,Math.abs(a)!==1&&(n-=a),Math.abs(d)!==1&&(r-=d));b={x:g,y:b,width:n,height:r}}else b=hvb}else b=hvb;this.contentRect_=b;return b.width!==this.broadcastWidth||b.height!==this.broadcastHeight};var kvb=function(a,b){var c=b.x;var d=b.y;var e=b.width;b=b.height;var g=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);gvb(g,{x:c,y:d,width:e,height:b,top:d,right:c+e,bottom:b+d,left:c});gvb(this,{target:a,contentRect:g})};var lvb=function(a,b){var c=fvb;this.activeObservations_=[];this.observations_=new Map;if(typeof a!=="function")throw new TypeError("Te");this.callback_=a;this.controller_=c;this.callbackCtx_=b};
lvb.prototype.observe=function(a){if(a===void 0)throw new TypeError("Ue");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(a instanceof RD(a).Element))throw new TypeError("Ve");var b=this.observations_;b.has(a)||(b.set(a,new jvb(a)),a=this.controller_,~a.observers_.indexOf(this)||a.observers_.push(this),a.JSC$9487_connected_||evb(a),this.controller_.refresh())}};
lvb.prototype.unobserve=function(a){if(a===void 0)throw new TypeError("Ue");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(a instanceof RD(a).Element))throw new TypeError("Ve");var b=this.observations_;b.has(a)&&(b.delete(a),b.size||avb(this.controller_,this))}};
lvb.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();avb(this.controller_,this)};
var cvb=function(a){a.activeObservations_.splice(0);a.observations_.forEach(function(b){b.isActive()&&a.activeObservations_.push(b)})},dvb=function(a){if(a.activeObservations_.length>0){var b=a.callbackCtx_,c=a.activeObservations_.map(function(d){var e=d.target,g=d.contentRect_;
d.broadcastWidth=g.width;d.broadcastHeight=g.height;return new kvb(e,g)});
a.callback_.call(b,c,b);a.activeObservations_.splice(0)}};var SD=function(a){if(!(this instanceof SD))throw new TypeError("We");if(!arguments.length)throw new TypeError("Ue");fvb||(fvb=new $ub);this.observer_=new lvb(a,this)};
SD.prototype.observe=function(a){this.observer_.observe(a)};
SD.prototype.unobserve=function(a){this.observer_.unobserve(a)};
SD.prototype.disconnect=function(){this.observer_.disconnect()};var K1a=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:SD;var kza="aLink accessKey allowFullscreen bgColor cellPadding cellSpacing codeBase codeType contentEditable crossOrigin dateTime dirName formAction formEnctype formMethod formNoValidate formTarget frameBorder innerHTML innerText inputMode isMap longDesc marginHeight marginWidth maxLength mediaGroup minLength noHref noResize noShade noValidate noWrap nodeValue outerHTML outerText readOnly tabIndex textContent trueSpeed useMap vAlign vLink valueAsDate valueAsNumber valueType".split(" "),jza={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},iza=null,dza=null;var lza={},mza=RegExp("^(?!(?:annotation-xml|color-profile|font-face|font-face(?:-(?:src|uri|format|name))?|missing-glyph)$)[a-z][a-z.0-9_\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u200c\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\udfff\uf900-\ufdcf\ufdf0-\ufffd]*-[\\-a-z.0-9_\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u200c\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\udfff\uf900-\ufdcf\ufdf0-\ufffd]*$");var tza={text:1},pza={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var mvb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,nvb={CONSTANT:{isUnwrappable:function(a){return a instanceof Fl},
unwrap:Tcb},JAVASCRIPT:{isUnwrappable:function(a){return a instanceof _.Vd},
unwrap:Pda},HTML:{isUnwrappable:function(a){return a instanceof Od},
unwrap:function(a){return Rd(a)}},
RESOURCE_URL:{isUnwrappable:function(a){return a instanceof wd},
unwrap:_.zd},STRING:{isUnwrappable:function(a){return a instanceof Object},
unwrap:function(a){return String(a)}},
STYLE:{isUnwrappable:function(a){return typeof a==="string"},
unwrap:function(a){return a}},
URL:{isUnwrappable:function(a){return Dd(a)},
unwrap:_.Ed}},ovb={CONSTANT:uza,JAVASCRIPT:uza,HTML:function(a){a=a instanceof Od?a:Qd(String(a).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return Rd(a)},
RESOURCE_URL:uza,STRING:String,STYLE:uza,URL:function(a,b){a=mvb.test(a)?a:void 0;return a===void 0?b:a}};var Fza=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,vza=/[\t\n\f\r ]+/,xza=/[\t\n\f\r ,]+/g,zza=function(a,b,c){return c},rn={},pvb=function(){var a=function(){var d={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",d):d}(),b=a.createHTML(""),c=a.createScript("");
a=a.createScriptURL("");return{INNOCUOUS_STRING:b,INNOCUOUS_SCRIPT:c,INNOCUOUS_URL:a}}(),qn=pvb.INNOCUOUS_STRING,Eza=pvb.INNOCUOUS_SCRIPT,Dza=pvb.INNOCUOUS_URL;var qvb=function(a){var b=Gza(a);return function(c,d,e,g){return g?b(g,d,e,c):qn}}({reportHandler:function(a,b){if(a)try{throw Error(b);
}catch(c){_.Bl(c)}},
safeTypesBridge:function(a,b,c){var d=nvb[b];return d.isUnwrappable(a)&&(d=d.unwrap(a,c),d!==c)?d:(0,ovb[b])(String(a),c)},
allowedIdentifierPrefixes:[""]});if(om!==void 0)throw Error("Xe");om=qvb;if(om!==qvb)throw Error("Ye");sn("Injectable",[]);var fAa=sn("Inject",[["token",void 0]]),hAa=sn("Optional",[]);sn("Injectable",[]);var iAa=sn("Self",[]),jAa=sn("SkipSelf",[]);sn("Host",[]);var rvb={},svb=function(){};
svb.prototype.resolve=function(){throw Error("$e");};
svb.prototype.addProvider=function(){throw Error("$e");};var dAa=Function;var tvb=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,uvb=function(){this._reflect=window.Reflect};
_.f=uvb.prototype;_.f.factory=function(a){return function(){return new (Function.prototype.bind.apply(a,[null].concat(_.De(_.Kd.apply(0,arguments)))))}};
_.f._zipTypesAndAnnotations=function(a,b){var c=typeof a==="undefined"?Array(b.length):Array(a.length);for(var d=0;d<c.length;d++)c[d]=typeof a==="undefined"?[]:a[d]!=Object?[a[d]]:[],b&&Iza(b[d])&&(c[d]=c[d].concat(b[d]));return c};
_.f._ownParameters=function(a,b){if(tvb.exec(a.toString()))return null;if(a.parameters&&a.parameters!==b.parameters)return a.parameters;var c=a.ctorParameters;return c&&c!==b.ctorParameters?(b=typeof c==="function"?c():c,a=b.map(function(d){return d&&d.type}),b=b.map(function(d){return d&&Kza(d.decorators)}),this._zipTypesAndAnnotations(a,b)):Iza(this._reflect)&&Iza(this._reflect.getOwnMetadata)&&(b=this._reflect.getOwnMetadata("parameters",a),(c=this._reflect.getOwnMetadata("design:paramtypes",a))||
b)?this._zipTypesAndAnnotations(c,b):Array(a.length).fill(void 0)};
_.f.parameters=function(a){if(!a.prototype)return[];var b=Object.getPrototypeOf(a.prototype).constructor;(a=this._ownParameters(a,b))||b===Object||(a=this.parameters(b));return a||[]};
_.f._ownAnnotations=function(a,b){if(a.annotations&&a.annotations!==b.annotations)return a=a.annotations,typeof a==="function"&&a.annotations&&(a=a.annotations),a;if(a.decorators&&a.decorators!==b.decorators)return Kza(a.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",a)};
_.f.annotations=function(a){var b=Object.getPrototypeOf(a.prototype).constructor;a=this._ownAnnotations(a,b)||[];return(b!==Object?this.annotations(b):[]).concat(a)};
_.f._ownPropMetadata=function(a,b){if(a.propMetadata&&a.propMetadata!==b.propMetadata)return a=a.propMetadata,typeof a==="function"&&a.propMetadata&&(a=a.propMetadata),a;if(a.propDecorators&&a.propDecorators!==b.propDecorators){var c=a.propDecorators,d={};Object.keys(c).forEach(function(e){d[e]=Kza(c[e])});
return d}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",a)};
_.f.propMetadata=function(a){var b=Object.getPrototypeOf(a.prototype).constructor,c={};if(b!==Object){var d=this.propMetadata(b);Object.keys(d).forEach(function(g){c[g]=d[g]})}var e=this._ownPropMetadata(a,b);
e&&Object.keys(e).forEach(function(g){var k=[];c.hasOwnProperty(g)&&k.push.apply(k,_.De(c[g]));k.push.apply(k,_.De(e[g]));c[g]=k});
return c};
_.f.getter=function(a){return function(b){return b[a]}};
_.f.method=function(a){return function(b,c){if(!b[a])throw Error("af`"+a);return b[a].apply(b,c)}};var vvb=function(){};var wvb=function(a){this.reflectionCapabilities=a};
_.z(wvb,vvb);_.f=wvb.prototype;_.f.factory=function(a){return this.reflectionCapabilities.factory(a)};
_.f.parameters=function(a){return this.reflectionCapabilities.parameters(a)};
_.f.annotations=function(a){return this.reflectionCapabilities.annotations(a)};
_.f.propMetadata=function(a){return this.reflectionCapabilities.propMetadata(a)};
_.f.getter=function(a){return this.reflectionCapabilities.getter(a)};
_.f.method=function(a){return this.reflectionCapabilities.method(a)};var Tza=new wvb(new uvb);var TD=function(a,b){this.token=a;this.id=b;if(a===void 0||a===null)throw Error("ff");};
_.Um.Object.defineProperties(TD.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return tn(this.token)}}});
_.Um.Object.defineProperties(TD,{JSC$9529_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return vn.JSC$9533_numberOfKeys}}});
var xvb=function(){this._allKeys=new Map};
xvb.prototype.get=function(a){if(a instanceof TD)return a;if(this._allKeys.has(a))return this._allKeys.get(a);var b=new TD(a,TD.JSC$9529_numberOfKeys);this._allKeys.set(a,b);return b};
_.Um.Object.defineProperties(xvb.prototype,{JSC$9533_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var vn=new xvb;var kAa=function(a,b,c){this.key=a;this.optional=b;this.visibility=c},Vza=function(a){return new kAa(a,!1,null)},Xza=[],$za=function(a,b,c){this.key=a;
this.resolvedFactories=b;this.multiProvider=c},Yza=function(a,b,c,d){this.factory=a;
this.dependencies=b;this.providerClass=c;this.providerValue=d};var UD={},VD=function(a,b){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=b===void 0?null:b;a=_.h(a);for(b=a.next();!b.done;b=a.next())this.addProvider(b.value)};
_.f=VD.prototype;_.f.addProvider=function(a){this.keyIdToIndex.set(a.key.id,this.keyIds.length);this.providers.push(a);this.keyIds.push(a.key.id);this.objs.push(UD)};
_.f.resolve=function(a,b){b=b===void 0?rvb:b;return this._getByKey(vn.get(un(a)),null,b)};
_.f._new=function(a){if(this.constructedKeyIds[a.key.id])throw Qza(this,a.key);this.constructedKeyIds[a.key.id]=!0;return this._instantiateProvider(a)};
_.f._instantiateProvider=function(a){if(a.multiProvider){for(var b=Array(a.resolvedFactories.length),c=0;c<a.resolvedFactories.length;++c)b[c]=this._instantiate(a,a.resolvedFactories[c]);return b}return this._instantiate(a,a.resolvedFactories[0])};
_.f._instantiate=function(a,b){var c=this,d=b.factory;try{var e=b.dependencies.map(function(k){return c._getByReflectiveDependency(k)})}catch(k){throw k.addKey&&k.addKey(this,a.key),k;
}try{var g=d.apply(null,_.De(e))}catch(k){throw Rza(this,k,a.key);}return g};
_.f._getByReflectiveDependency=function(a){return this._getByKey(a.key,a.visibility,a.optional?null:rvb)};
_.f._getByKey=function(a,b,c){return a===yvb?this:b instanceof iAa?this._getByKeySelf(a,c):this._getByKeyDefault(a,c,b)};
_.f._getObjByKeyId=function(a){for(var b=0;b<this.keyIds.length;b++)if(this.keyIds[b]===a)return this.objs[b]===UD&&(this.objs[b]=this._new(this.providers[b])),this.objs[b];return UD};
_.f._throwOrNull=function(a,b){if(b!==rvb)return b;throw Pza(this,a);};
_.f._getByKeySelf=function(a,b){var c=this._getObjByKeyId(a.id);return c!==UD?c:this._throwOrNull(a,b)};
_.f._getByKeyDefault=function(a,b,c){for(var d=c=c instanceof jAa?this.parent:this;c instanceof VD;){var e=c._getObjByKeyId(a.id);if(e!==UD)return e;c=c.parent}e=void 0;if(c!==null)try{var g=c.resolve(a.token,b);if(g!==UD)return g}catch(k){e=k}if(!(d instanceof VD&&mAa(a.token))){if(e)throw e;return this._throwOrNull(a,b)}for(g=d;g.parent instanceof VD;)g=g.parent;g.addProvider(aAa({provide:a.token,useClass:a.token}));return g.resolve(a.token,b)};
_.f.toString=function(){return this.displayName};
_.Um.Object.defineProperties(VD.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+lAa(this,function(a){return' "'+a.key.displayName+'" '}).join(", ")+"])"}}});
var yvb=vn.get(un(svb));(function(){let module=undefined;let exports=undefined;let define=undefined;(function(Y){if(typeof exports==="object"&&typeof module!=="undefined")module.exports=Y();else if(typeof define==="function"&&define.amd)define([],Y);else{var B=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:this;B.XRegExp=Y()}})(function(){return function F(B,D,f){function t(h,m){if(!D[h]){if(!B[h]){var A=typeof require=="function"&&require;
if(!m&&A)return A(h,!0);if(G)return G(h,!0);m=Error("Cannot find module '"+h+"'");throw m.code="MODULE_NOT_FOUND",m;}m=D[h]={exports:{}};B[h][0].call(m.exports,function(p){var l=B[h][1][p];return t(l?l:p)},m,m.exports,F,B,D,f)}return D[h].exports}
for(var G=typeof require=="function"&&require,u=0;u<f.length;u++)t(f[u]);return t}({1:[function(B,D){D.exports=function(f){function F(h){var m=/^(?:\(\?:\))*\^/,A=/\$(?:\(\?:\))*$/;
return m.test(h)&&A.test(h)&&A.test(h.replace(/\\[\s\S]/g,""))?h.replace(m,"").replace(A,""):h}
function t(h,m){m=m?"x":"";return f.isRegExp(h)?h.xregexp&&h.xregexp.captureNames?h:f(h.source,m):f(h,m)}
var G=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,u=f.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,G],"g",{conjunction:"or"});f.build=function(h,m,A){A=A||"";var p=A.indexOf("x")>-1,l=/^\(\?([\w$]+)\)/.exec(h);l&&(A=f._clipDuplicates(A+l[1]));var g={},v;for(v in m)m.hasOwnProperty(v)&&(l=t(m[v],p),g[v]={pattern:F(l.source),names:l.xregexp.captureNames||[]});h=t(h,p);var w=0,x,e=0,H=[0],y=h.xregexp.captureNames||[];h=h.source.replace(u,function(z,I,M,P,Q){var K=I||M;if(K){if(!g.hasOwnProperty(K))throw new ReferenceError("Undefined property "+
z);if(I){var L=y[e];H[++e]=++w;z="(?<"+(L||K)+">"}else z="(?:";x=w;return z+g[K].pattern.replace(G,function(S,T,N){if(T){if(L=g[K].names[w-x],++w,L)return"(?<"+L+">"}else if(N)return O=+N-1,g[K].names[O]?"\\k<"+g[K].names[O]+">":"\\"+(+N+x);return S})+")"}if(P){if(L=y[e],H[++e]=++w,L)return"(?<"+L+">"}else if(Q){var O=+Q-1;
return y[O]?"\\k<"+y[O]+">":"\\"+H[+Q]}return z});
return f(h,A)}}},
{}],2:[function(B,D){D.exports=function(f){function F(t,G,u,h){return{name:t,value:G,start:u,end:h}}
f.matchRecursive=function(t,G,u,h,m){h=h||"";m=m||{};var A=h.indexOf("g")>-1,p=h.indexOf("y")>-1,l=h.replace(/y/g,""),g=m.escapeChar;m=m.valueNames;var v=[],w=0,x=0,e=0,H=0;G=f(G,l);u=f(u,l);if(g){if(g.length>1)throw Error("Cannot use more than one escape character");g=f.escape(g);var y=new RegExp("(?:"+g+"[\\S\\s]|(?:(?!"+f.union([G,u],"",{conjunction:"or"}).source+")[^"+g+"])+)+",h.replace(/[^imu]+/g,""))}for(;;){g&&(e+=(f.exec(t,y,e,"sticky")||[""])[0].length);h=f.exec(t,G,e);l=f.exec(t,u,e);h&&
l&&(h.index<=l.index?l=null:h=null);if(h||l)x=(h||l).index,e=x+(h||l)[0].length;else if(!w)break;if(p&&!w&&x>H)break;if(h){if(!w){var z=x;var I=e}++w}else if(l&&w){if(!--w&&(m?(m[0]&&z>H&&v.push(F(m[0],t.slice(H,z),H,z)),m[1]&&v.push(F(m[1],t.slice(z,I),z,I)),m[2]&&v.push(F(m[2],t.slice(I,x),I,x)),m[3]&&v.push(F(m[3],t.slice(x,e),x,e))):v.push(t.slice(I,x)),H=e,!A))break}else throw Error("Unbalanced delimiter found in string");x===e&&++e}A&&!p&&m&&m[0]&&t.length>H&&v.push(F(m[0],t.slice(H),H,t.length));
return v}}},
{}],3:[function(B,D){D.exports=function(f){function F(p){return p.replace(/[- _]+/g,"").toLowerCase()}
function t(p){var l=/^\\[xu](.+)/.exec(p);return l?h(l[1]):p.charCodeAt(p.charAt(0)==="\\"?1:0)}
function G(p){var l="",g=-1;f.forEach(p,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(v){var w=t(v[1]);w>g+1&&(l+="\\u"+A(m(g+1)),w>g+2&&(l+="-\\u"+A(m(w-1))));g=t(v[2]||v[1])});
g<65535&&(l+="\\u"+A(m(g+1)),g<65534&&(l+="-\\uFFFF"));return l}
var u={},h=f._dec,m=f._hex,A=f._pad4;f.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(p,l,g){var v=p[1]==="P"||!!p[2],w=g.indexOf("A")>-1;g=F(p[4]||p[3]);var x=u[g];if(p[1]==="P"&&p[2])throw new SyntaxError("Invalid double negation "+p[0]);if(!u.hasOwnProperty(g))throw new SyntaxError("Unknown Unicode token "+p[0]);if(x.inverseOf){g=F(x.inverseOf);if(!u.hasOwnProperty(g))throw new ReferenceError("Unicode token missing data "+p[0]+" -> "+x.inverseOf);x=u[g];v=!v}if(!x.bmp&&!w)throw new SyntaxError("Astral mode required for Unicode token "+
p[0]);if(w){if(l==="class")throw new SyntaxError("Astral mode does not support Unicode tokens within character classes");p=v?"a!":"a=";(l=u[g][p])||(l=u[g],g=u[g],w="",g.bmp&&!g.isBmpLast&&(w="["+g.bmp+"]"+(g.astral?"|":"")),g.astral&&(w+=g.astral),g.isBmpLast&&g.bmp&&(w+=(g.astral?"|":"")+"["+g.bmp+"]"),v=v?"(?:(?!"+w+")(?:[\ud800-\udbff][\udc00-\udfff]|[\x00-\uffff]))":"(?:"+w+")",l=l[p]=v);return v=l}return v=l==="class"?v?u[g]["b!"]||(u[g]["b!"]=G(u[g].bmp)):x.bmp:(v?"[^":"[")+x.bmp+"]"},{scope:"all",
optionalFlags:"A",leadChar:"\\"});f.addUnicodeData=function(p){for(var l,g=0;g<p.length;++g){l=p[g];if(!l.name)throw Error("Unicode token requires name");if(!(l.inverseOf||l.bmp||l.astral))throw Error("Unicode token has no character data "+l.name);u[F(l.name)]=l;l.alias&&(u[F(l.alias)]=l)}f.cache.flush("patterns")};
f._getUnicodeProperty=function(p){p=F(p);return u[p]}}},
{}],4:[function(B,D){D.exports=function(f){if(!f.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks");f.addUnicodeData([{name:"InAdlam",astral:"\ud83a[\udd00-\udd5f]"},{name:"InAegean_Numbers",astral:"\ud800[\udd00-\udd3f]"},{name:"InAhom",astral:"\ud805[\udf00-\udf3f]"},{name:"InAlchemical_Symbols",astral:"\ud83d[\udf00-\udf7f]"},{name:"InAlphabetic_Presentation_Forms",bmp:"\ufb00-\ufb4f"},{name:"InAnatolian_Hieroglyphs",astral:"\ud811[\udc00-\ude7f]"},{name:"InAncient_Greek_Musical_Notation",
astral:"\ud834[\ude00-\ude4f]"},{name:"InAncient_Greek_Numbers",astral:"\ud800[\udd40-\udd8f]"},{name:"InAncient_Symbols",astral:"\ud800[\udd90-\uddcf]"},{name:"InArabic",bmp:"\u0600-\u06ff"},{name:"InArabic_Extended_A",bmp:"\u08a0-\u08ff"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"\ud83b[\ude00-\udeff]"},{name:"InArabic_Presentation_Forms_A",bmp:"\ufb50-\ufdff"},{name:"InArabic_Presentation_Forms_B",bmp:"\ufe70-\ufeff"},{name:"InArabic_Supplement",bmp:"\u0750-\u077f"},{name:"InArmenian",
bmp:"\u0530-\u058f"},{name:"InArrows",bmp:"\u2190-\u21ff"},{name:"InAvestan",astral:"\ud802[\udf00-\udf3f]"},{name:"InBalinese",bmp:"\u1b00-\u1b7f"},{name:"InBamum",bmp:"\ua6a0-\ua6ff"},{name:"InBamum_Supplement",astral:"\ud81a[\udc00-\ude3f]"},{name:"InBasic_Latin",bmp:"\x00-\u007f"},{name:"InBassa_Vah",astral:"\ud81a[\uded0-\udeff]"},{name:"InBatak",bmp:"\u1bc0-\u1bff"},{name:"InBengali",bmp:"\u0980-\u09ff"},{name:"InBhaiksuki",astral:"\ud807[\udc00-\udc6f]"},{name:"InBlock_Elements",bmp:"\u2580-\u259f"},
{name:"InBopomofo",bmp:"\u3100-\u312f"},{name:"InBopomofo_Extended",bmp:"\u31a0-\u31bf"},{name:"InBox_Drawing",bmp:"\u2500-\u257f"},{name:"InBrahmi",astral:"\ud804[\udc00-\udc7f]"},{name:"InBraille_Patterns",bmp:"\u2800-\u28ff"},{name:"InBuginese",bmp:"\u1a00-\u1a1f"},{name:"InBuhid",bmp:"\u1740-\u175f"},{name:"InByzantine_Musical_Symbols",astral:"\ud834[\udc00-\udcff]"},{name:"InCJK_Compatibility",bmp:"\u3300-\u33ff"},{name:"InCJK_Compatibility_Forms",bmp:"\ufe30-\ufe4f"},{name:"InCJK_Compatibility_Ideographs",
bmp:"\uf900-\ufaff"},{name:"InCJK_Compatibility_Ideographs_Supplement",astral:"\ud87e[\udc00-\ude1f]"},{name:"InCJK_Radicals_Supplement",bmp:"\u2e80-\u2eff"},{name:"InCJK_Strokes",bmp:"\u31c0-\u31ef"},{name:"InCJK_Symbols_and_Punctuation",bmp:"\u3000-\u303f"},{name:"InCJK_Unified_Ideographs",bmp:"\u4e00-\u9fff"},{name:"InCJK_Unified_Ideographs_Extension_A",bmp:"\u3400-\u4dbf"},{name:"InCJK_Unified_Ideographs_Extension_B",astral:"[\ud840-\ud868][\udc00-\udfff]|\ud869[\udc00-\udedf]"},{name:"InCJK_Unified_Ideographs_Extension_C",
astral:"\ud869[\udf00-\udfff]|[\ud86a-\ud86c][\udc00-\udfff]|\ud86d[\udc00-\udf3f]"},{name:"InCJK_Unified_Ideographs_Extension_D",astral:"\ud86d[\udf40-\udfff]|\ud86e[\udc00-\udc1f]"},{name:"InCJK_Unified_Ideographs_Extension_E",astral:"\ud86e[\udc20-\udfff]|[\ud86f-\ud872][\udc00-\udfff]|\ud873[\udc00-\udeaf]"},{name:"InCarian",astral:"\ud800[\udea0-\udedf]"},{name:"InCaucasian_Albanian",astral:"\ud801[\udd30-\udd6f]"},{name:"InChakma",astral:"\ud804[\udd00-\udd4f]"},{name:"InCham",bmp:"\uaa00-\uaa5f"},
{name:"InCherokee",bmp:"\u13a0-\u13ff"},{name:"InCherokee_Supplement",bmp:"\uab70-\uabbf"},{name:"InCombining_Diacritical_Marks",bmp:"\u0300-\u036f"},{name:"InCombining_Diacritical_Marks_Extended",bmp:"\u1ab0-\u1aff"},{name:"InCombining_Diacritical_Marks_Supplement",bmp:"\u1dc0-\u1dff"},{name:"InCombining_Diacritical_Marks_for_Symbols",bmp:"\u20d0-\u20ff"},{name:"InCombining_Half_Marks",bmp:"\ufe20-\ufe2f"},{name:"InCommon_Indic_Number_Forms",bmp:"\ua830-\ua83f"},{name:"InControl_Pictures",bmp:"\u2400-\u243f"},
{name:"InCoptic",bmp:"\u2c80-\u2cff"},{name:"InCoptic_Epact_Numbers",astral:"\ud800[\udee0-\udeff]"},{name:"InCounting_Rod_Numerals",astral:"\ud834[\udf60-\udf7f]"},{name:"InCuneiform",astral:"\ud808[\udc00-\udfff]"},{name:"InCuneiform_Numbers_and_Punctuation",astral:"\ud809[\udc00-\udc7f]"},{name:"InCurrency_Symbols",bmp:"\u20a0-\u20cf"},{name:"InCypriot_Syllabary",astral:"\ud802[\udc00-\udc3f]"},{name:"InCyrillic",bmp:"\u0400-\u04ff"},{name:"InCyrillic_Extended_A",bmp:"\u2de0-\u2dff"},{name:"InCyrillic_Extended_B",
bmp:"\ua640-\ua69f"},{name:"InCyrillic_Extended_C",bmp:"\u1c80-\u1c8f"},{name:"InCyrillic_Supplement",bmp:"\u0500-\u052f"},{name:"InDeseret",astral:"\ud801[\udc00-\udc4f]"},{name:"InDevanagari",bmp:"\u0900-\u097f"},{name:"InDevanagari_Extended",bmp:"\ua8e0-\ua8ff"},{name:"InDingbats",bmp:"\u2700-\u27bf"},{name:"InDomino_Tiles",astral:"\ud83c[\udc30-\udc9f]"},{name:"InDuployan",astral:"\ud82f[\udc00-\udc9f]"},{name:"InEarly_Dynastic_Cuneiform",astral:"\ud809[\udc80-\udd4f]"},{name:"InEgyptian_Hieroglyphs",
astral:"\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2f]"},{name:"InElbasan",astral:"\ud801[\udd00-\udd2f]"},{name:"InEmoticons",astral:"\ud83d[\ude00-\ude4f]"},{name:"InEnclosed_Alphanumeric_Supplement",astral:"\ud83c[\udd00-\uddff]"},{name:"InEnclosed_Alphanumerics",bmp:"\u2460-\u24ff"},{name:"InEnclosed_CJK_Letters_and_Months",bmp:"\u3200-\u32ff"},{name:"InEnclosed_Ideographic_Supplement",astral:"\ud83c[\ude00-\udeff]"},{name:"InEthiopic",bmp:"\u1200-\u137f"},{name:"InEthiopic_Extended",bmp:"\u2d80-\u2ddf"},
{name:"InEthiopic_Extended_A",bmp:"\uab00-\uab2f"},{name:"InEthiopic_Supplement",bmp:"\u1380-\u139f"},{name:"InGeneral_Punctuation",bmp:"\u2000-\u206f"},{name:"InGeometric_Shapes",bmp:"\u25a0-\u25ff"},{name:"InGeometric_Shapes_Extended",astral:"\ud83d[\udf80-\udfff]"},{name:"InGeorgian",bmp:"\u10a0-\u10ff"},{name:"InGeorgian_Supplement",bmp:"\u2d00-\u2d2f"},{name:"InGlagolitic",bmp:"\u2c00-\u2c5f"},{name:"InGlagolitic_Supplement",astral:"\ud838[\udc00-\udc2f]"},{name:"InGothic",astral:"\ud800[\udf30-\udf4f]"},
{name:"InGrantha",astral:"\ud804[\udf00-\udf7f]"},{name:"InGreek_Extended",bmp:"\u1f00-\u1fff"},{name:"InGreek_and_Coptic",bmp:"\u0370-\u03ff"},{name:"InGujarati",bmp:"\u0a80-\u0aff"},{name:"InGurmukhi",bmp:"\u0a00-\u0a7f"},{name:"InHalfwidth_and_Fullwidth_Forms",bmp:"\uff00-\uffef"},{name:"InHangul_Compatibility_Jamo",bmp:"\u3130-\u318f"},{name:"InHangul_Jamo",bmp:"\u1100-\u11ff"},{name:"InHangul_Jamo_Extended_A",bmp:"\ua960-\ua97f"},{name:"InHangul_Jamo_Extended_B",bmp:"\ud7b0-\ud7ff"},{name:"InHangul_Syllables",
bmp:"\uac00-\ud7af"},{name:"InHanunoo",bmp:"\u1720-\u173f"},{name:"InHatran",astral:"\ud802[\udce0-\udcff]"},{name:"InHebrew",bmp:"\u0590-\u05ff"},{name:"InHigh_Private_Use_Surrogates",bmp:"\udb80-\udbff"},{name:"InHigh_Surrogates",bmp:"\ud800-\udb7f"},{name:"InHiragana",bmp:"\u3040-\u309f"},{name:"InIPA_Extensions",bmp:"\u0250-\u02af"},{name:"InIdeographic_Description_Characters",bmp:"\u2ff0-\u2fff"},{name:"InIdeographic_Symbols_and_Punctuation",astral:"\ud81b[\udfe0-\udfff]"},{name:"InImperial_Aramaic",
astral:"\ud802[\udc40-\udc5f]"},{name:"InInscriptional_Pahlavi",astral:"\ud802[\udf60-\udf7f]"},{name:"InInscriptional_Parthian",astral:"\ud802[\udf40-\udf5f]"},{name:"InJavanese",bmp:"\ua980-\ua9df"},{name:"InKaithi",astral:"\ud804[\udc80-\udccf]"},{name:"InKana_Supplement",astral:"\ud82c[\udc00-\udcff]"},{name:"InKanbun",bmp:"\u3190-\u319f"},{name:"InKangxi_Radicals",bmp:"\u2f00-\u2fdf"},{name:"InKannada",bmp:"\u0c80-\u0cff"},{name:"InKatakana",bmp:"\u30a0-\u30ff"},{name:"InKatakana_Phonetic_Extensions",
bmp:"\u31f0-\u31ff"},{name:"InKayah_Li",bmp:"\ua900-\ua92f"},{name:"InKharoshthi",astral:"\ud802[\ude00-\ude5f]"},{name:"InKhmer",bmp:"\u1780-\u17ff"},{name:"InKhmer_Symbols",bmp:"\u19e0-\u19ff"},{name:"InKhojki",astral:"\ud804[\ude00-\ude4f]"},{name:"InKhudawadi",astral:"\ud804[\udeb0-\udeff]"},{name:"InLao",bmp:"\u0e80-\u0eff"},{name:"InLatin_Extended_Additional",bmp:"\u1e00-\u1eff"},{name:"InLatin_Extended_A",bmp:"\u0100-\u017f"},{name:"InLatin_Extended_B",bmp:"\u0180-\u024f"},{name:"InLatin_Extended_C",
bmp:"\u2c60-\u2c7f"},{name:"InLatin_Extended_D",bmp:"\ua720-\ua7ff"},{name:"InLatin_Extended_E",bmp:"\uab30-\uab6f"},{name:"InLatin_1_Supplement",bmp:"\u0080-\u00ff"},{name:"InLepcha",bmp:"\u1c00-\u1c4f"},{name:"InLetterlike_Symbols",bmp:"\u2100-\u214f"},{name:"InLimbu",bmp:"\u1900-\u194f"},{name:"InLinear_A",astral:"\ud801[\ude00-\udf7f]"},{name:"InLinear_B_Ideograms",astral:"\ud800[\udc80-\udcff]"},{name:"InLinear_B_Syllabary",astral:"\ud800[\udc00-\udc7f]"},{name:"InLisu",bmp:"\ua4d0-\ua4ff"},
{name:"InLow_Surrogates",bmp:"\udc00-\udfff"},{name:"InLycian",astral:"\ud800[\ude80-\ude9f]"},{name:"InLydian",astral:"\ud802[\udd20-\udd3f]"},{name:"InMahajani",astral:"\ud804[\udd50-\udd7f]"},{name:"InMahjong_Tiles",astral:"\ud83c[\udc00-\udc2f]"},{name:"InMalayalam",bmp:"\u0d00-\u0d7f"},{name:"InMandaic",bmp:"\u0840-\u085f"},{name:"InManichaean",astral:"\ud802[\udec0-\udeff]"},{name:"InMarchen",astral:"\ud807[\udc70-\udcbf]"},{name:"InMathematical_Alphanumeric_Symbols",astral:"\ud835[\udc00-\udfff]"},
{name:"InMathematical_Operators",bmp:"\u2200-\u22ff"},{name:"InMeetei_Mayek",bmp:"\uabc0-\uabff"},{name:"InMeetei_Mayek_Extensions",bmp:"\uaae0-\uaaff"},{name:"InMende_Kikakui",astral:"\ud83a[\udc00-\udcdf]"},{name:"InMeroitic_Cursive",astral:"\ud802[\udda0-\uddff]"},{name:"InMeroitic_Hieroglyphs",astral:"\ud802[\udd80-\udd9f]"},{name:"InMiao",astral:"\ud81b[\udf00-\udf9f]"},{name:"InMiscellaneous_Mathematical_Symbols_A",bmp:"\u27c0-\u27ef"},{name:"InMiscellaneous_Mathematical_Symbols_B",bmp:"\u2980-\u29ff"},
{name:"InMiscellaneous_Symbols",bmp:"\u2600-\u26ff"},{name:"InMiscellaneous_Symbols_and_Arrows",bmp:"\u2b00-\u2bff"},{name:"InMiscellaneous_Symbols_and_Pictographs",astral:"\ud83c[\udf00-\udfff]|\ud83d[\udc00-\uddff]"},{name:"InMiscellaneous_Technical",bmp:"\u2300-\u23ff"},{name:"InModi",astral:"\ud805[\ude00-\ude5f]"},{name:"InModifier_Tone_Letters",bmp:"\ua700-\ua71f"},{name:"InMongolian",bmp:"\u1800-\u18af"},{name:"InMongolian_Supplement",astral:"\ud805[\ude60-\ude7f]"},{name:"InMro",astral:"\ud81a[\ude40-\ude6f]"},
{name:"InMultani",astral:"\ud804[\ude80-\udeaf]"},{name:"InMusical_Symbols",astral:"\ud834[\udd00-\uddff]"},{name:"InMyanmar",bmp:"\u1000-\u109f"},{name:"InMyanmar_Extended_A",bmp:"\uaa60-\uaa7f"},{name:"InMyanmar_Extended_B",bmp:"\ua9e0-\ua9ff"},{name:"InNKo",bmp:"\u07c0-\u07ff"},{name:"InNabataean",astral:"\ud802[\udc80-\udcaf]"},{name:"InNew_Tai_Lue",bmp:"\u1980-\u19df"},{name:"InNewa",astral:"\ud805[\udc00-\udc7f]"},{name:"InNumber_Forms",bmp:"\u2150-\u218f"},{name:"InOgham",bmp:"\u1680-\u169f"},
{name:"InOl_Chiki",bmp:"\u1c50-\u1c7f"},{name:"InOld_Hungarian",astral:"\ud803[\udc80-\udcff]"},{name:"InOld_Italic",astral:"\ud800[\udf00-\udf2f]"},{name:"InOld_North_Arabian",astral:"\ud802[\ude80-\ude9f]"},{name:"InOld_Permic",astral:"\ud800[\udf50-\udf7f]"},{name:"InOld_Persian",astral:"\ud800[\udfa0-\udfdf]"},{name:"InOld_South_Arabian",astral:"\ud802[\ude60-\ude7f]"},{name:"InOld_Turkic",astral:"\ud803[\udc00-\udc4f]"},{name:"InOptical_Character_Recognition",bmp:"\u2440-\u245f"},{name:"InOriya",
bmp:"\u0b00-\u0b7f"},{name:"InOrnamental_Dingbats",astral:"\ud83d[\ude50-\ude7f]"},{name:"InOsage",astral:"\ud801[\udcb0-\udcff]"},{name:"InOsmanya",astral:"\ud801[\udc80-\udcaf]"},{name:"InPahawh_Hmong",astral:"\ud81a[\udf00-\udf8f]"},{name:"InPalmyrene",astral:"\ud802[\udc60-\udc7f]"},{name:"InPau_Cin_Hau",astral:"\ud806[\udec0-\udeff]"},{name:"InPhags_pa",bmp:"\ua840-\ua87f"},{name:"InPhaistos_Disc",astral:"\ud800[\uddd0-\uddff]"},{name:"InPhoenician",astral:"\ud802[\udd00-\udd1f]"},{name:"InPhonetic_Extensions",
bmp:"\u1d00-\u1d7f"},{name:"InPhonetic_Extensions_Supplement",bmp:"\u1d80-\u1dbf"},{name:"InPlaying_Cards",astral:"\ud83c[\udca0-\udcff]"},{name:"InPrivate_Use_Area",bmp:"\ue000-\uf8ff"},{name:"InPsalter_Pahlavi",astral:"\ud802[\udf80-\udfaf]"},{name:"InRejang",bmp:"\ua930-\ua95f"},{name:"InRumi_Numeral_Symbols",astral:"\ud803[\ude60-\ude7f]"},{name:"InRunic",bmp:"\u16a0-\u16ff"},{name:"InSamaritan",bmp:"\u0800-\u083f"},{name:"InSaurashtra",bmp:"\ua880-\ua8df"},{name:"InSharada",astral:"\ud804[\udd80-\udddf]"},
{name:"InShavian",astral:"\ud801[\udc50-\udc7f]"},{name:"InShorthand_Format_Controls",astral:"\ud82f[\udca0-\udcaf]"},{name:"InSiddham",astral:"\ud805[\udd80-\uddff]"},{name:"InSinhala",bmp:"\u0d80-\u0dff"},{name:"InSinhala_Archaic_Numbers",astral:"\ud804[\udde0-\uddff]"},{name:"InSmall_Form_Variants",bmp:"\ufe50-\ufe6f"},{name:"InSora_Sompeng",astral:"\ud804[\udcd0-\udcff]"},{name:"InSpacing_Modifier_Letters",bmp:"\u02b0-\u02ff"},{name:"InSpecials",bmp:"\ufff0-\uffff"},{name:"InSundanese",bmp:"\u1b80-\u1bbf"},
{name:"InSundanese_Supplement",bmp:"\u1cc0-\u1ccf"},{name:"InSuperscripts_and_Subscripts",bmp:"\u2070-\u209f"},{name:"InSupplemental_Arrows_A",bmp:"\u27f0-\u27ff"},{name:"InSupplemental_Arrows_B",bmp:"\u2900-\u297f"},{name:"InSupplemental_Arrows_C",astral:"\ud83e[\udc00-\udcff]"},{name:"InSupplemental_Mathematical_Operators",bmp:"\u2a00-\u2aff"},{name:"InSupplemental_Punctuation",bmp:"\u2e00-\u2e7f"},{name:"InSupplemental_Symbols_and_Pictographs",astral:"\ud83e[\udd00-\uddff]"},{name:"InSupplementary_Private_Use_Area_A",
astral:"[\udb80-\udbbf][\udc00-\udfff]"},{name:"InSupplementary_Private_Use_Area_B",astral:"[\udbc0-\udbff][\udc00-\udfff]"},{name:"InSutton_SignWriting",astral:"\ud836[\udc00-\udeaf]"},{name:"InSyloti_Nagri",bmp:"\ua800-\ua82f"},{name:"InSyriac",bmp:"\u0700-\u074f"},{name:"InTagalog",bmp:"\u1700-\u171f"},{name:"InTagbanwa",bmp:"\u1760-\u177f"},{name:"InTags",astral:"\udb40[\udc00-\udc7f]"},{name:"InTai_Le",bmp:"\u1950-\u197f"},{name:"InTai_Tham",bmp:"\u1a20-\u1aaf"},{name:"InTai_Viet",bmp:"\uaa80-\uaadf"},
{name:"InTai_Xuan_Jing_Symbols",astral:"\ud834[\udf00-\udf5f]"},{name:"InTakri",astral:"\ud805[\ude80-\udecf]"},{name:"InTamil",bmp:"\u0b80-\u0bff"},{name:"InTangut",astral:"[\ud81c-\ud821][\udc00-\udfff]"},{name:"InTangut_Components",astral:"\ud822[\udc00-\udeff]"},{name:"InTelugu",bmp:"\u0c00-\u0c7f"},{name:"InThaana",bmp:"\u0780-\u07bf"},{name:"InThai",bmp:"\u0e00-\u0e7f"},{name:"InTibetan",bmp:"\u0f00-\u0fff"},{name:"InTifinagh",bmp:"\u2d30-\u2d7f"},{name:"InTirhuta",astral:"\ud805[\udc80-\udcdf]"},
{name:"InTransport_and_Map_Symbols",astral:"\ud83d[\ude80-\udeff]"},{name:"InUgaritic",astral:"\ud800[\udf80-\udf9f]"},{name:"InUnified_Canadian_Aboriginal_Syllabics",bmp:"\u1400-\u167f"},{name:"InUnified_Canadian_Aboriginal_Syllabics_Extended",bmp:"\u18b0-\u18ff"},{name:"InVai",bmp:"\ua500-\ua63f"},{name:"InVariation_Selectors",bmp:"\ufe00-\ufe0f"},{name:"InVariation_Selectors_Supplement",astral:"\udb40[\udd00-\uddef]"},{name:"InVedic_Extensions",bmp:"\u1cd0-\u1cff"},{name:"InVertical_Forms",bmp:"\ufe10-\ufe1f"},
{name:"InWarang_Citi",astral:"\ud806[\udca0-\udcff]"},{name:"InYi_Radicals",bmp:"\ua490-\ua4cf"},{name:"InYi_Syllables",bmp:"\ua000-\ua48f"},{name:"InYijing_Hexagram_Symbols",bmp:"\u4dc0-\u4dff"}])}},
{}],5:[function(B,D){D.exports=function(f){if(!f.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Categories");f.addUnicodeData([{name:"C",alias:"Other",isBmpLast:!0,bmp:"\x00-\u001f\u007f-\u009f\u00ad\u0378\u0379\u0380-\u0383\u038b\u038d\u03a2\u0530\u0557\u0558\u0560\u0588\u058b\u058c\u0590\u05c8-\u05cf\u05eb-\u05ef\u05f5-\u0605\u061c\u061d\u06dd\u070e\u070f\u074b\u074c\u07b2-\u07bf\u07fb-\u07ff\u082e\u082f\u083f\u085c\u085d\u085f-\u089f\u08b5\u08be-\u08d3\u08e2\u0984\u098d\u098e\u0991\u0992\u09a9\u09b1\u09b3-\u09b5\u09ba\u09bb\u09c5\u09c6\u09c9\u09ca\u09cf-\u09d6\u09d8-\u09db\u09de\u09e4\u09e5\u09fc-\u0a00\u0a04\u0a0b-\u0a0e\u0a11\u0a12\u0a29\u0a31\u0a34\u0a37\u0a3a\u0a3b\u0a3d\u0a43-\u0a46\u0a49\u0a4a\u0a4e-\u0a50\u0a52-\u0a58\u0a5d\u0a5f-\u0a65\u0a76-\u0a80\u0a84\u0a8e\u0a92\u0aa9\u0ab1\u0ab4\u0aba\u0abb\u0ac6\u0aca\u0ace\u0acf\u0ad1-\u0adf\u0ae4\u0ae5\u0af2-\u0af8\u0afa-\u0b00\u0b04\u0b0d\u0b0e\u0b11\u0b12\u0b29\u0b31\u0b34\u0b3a\u0b3b\u0b45\u0b46\u0b49\u0b4a\u0b4e-\u0b55\u0b58-\u0b5b\u0b5e\u0b64\u0b65\u0b78-\u0b81\u0b84\u0b8b-\u0b8d\u0b91\u0b96-\u0b98\u0b9b\u0b9d\u0ba0-\u0ba2\u0ba5-\u0ba7\u0bab-\u0bad\u0bba-\u0bbd\u0bc3-\u0bc5\u0bc9\u0bce\u0bcf\u0bd1-\u0bd6\u0bd8-\u0be5\u0bfb-\u0bff\u0c04\u0c0d\u0c11\u0c29\u0c3a-\u0c3c\u0c45\u0c49\u0c4e-\u0c54\u0c57\u0c5b-\u0c5f\u0c64\u0c65\u0c70-\u0c77\u0c84\u0c8d\u0c91\u0ca9\u0cb4\u0cba\u0cbb\u0cc5\u0cc9\u0cce-\u0cd4\u0cd7-\u0cdd\u0cdf\u0ce4\u0ce5\u0cf0\u0cf3-\u0d00\u0d04\u0d0d\u0d11\u0d3b\u0d3c\u0d45\u0d49\u0d50-\u0d53\u0d64\u0d65\u0d80\u0d81\u0d84\u0d97-\u0d99\u0db2\u0dbc\u0dbe\u0dbf\u0dc7-\u0dc9\u0dcb-\u0dce\u0dd5\u0dd7\u0de0-\u0de5\u0df0\u0df1\u0df5-\u0e00\u0e3b-\u0e3e\u0e5c-\u0e80\u0e83\u0e85\u0e86\u0e89\u0e8b\u0e8c\u0e8e-\u0e93\u0e98\u0ea0\u0ea4\u0ea6\u0ea8\u0ea9\u0eac\u0eba\u0ebe\u0ebf\u0ec5\u0ec7\u0ece\u0ecf\u0eda\u0edb\u0ee0-\u0eff\u0f48\u0f6d-\u0f70\u0f98\u0fbd\u0fcd\u0fdb-\u0fff\u10c6\u10c8-\u10cc\u10ce\u10cf\u1249\u124e\u124f\u1257\u1259\u125e\u125f\u1289\u128e\u128f\u12b1\u12b6\u12b7\u12bf\u12c1\u12c6\u12c7\u12d7\u1311\u1316\u1317\u135b\u135c\u137d-\u137f\u139a-\u139f\u13f6\u13f7\u13fe\u13ff\u169d-\u169f\u16f9-\u16ff\u170d\u1715-\u171f\u1737-\u173f\u1754-\u175f\u176d\u1771\u1774-\u177f\u17de\u17df\u17ea-\u17ef\u17fa-\u17ff\u180e\u180f\u181a-\u181f\u1878-\u187f\u18ab-\u18af\u18f6-\u18ff\u191f\u192c-\u192f\u193c-\u193f\u1941-\u1943\u196e\u196f\u1975-\u197f\u19ac-\u19af\u19ca-\u19cf\u19db-\u19dd\u1a1c\u1a1d\u1a5f\u1a7d\u1a7e\u1a8a-\u1a8f\u1a9a-\u1a9f\u1aae\u1aaf\u1abf-\u1aff\u1b4c-\u1b4f\u1b7d-\u1b7f\u1bf4-\u1bfb\u1c38-\u1c3a\u1c4a-\u1c4c\u1c89-\u1cbf\u1cc8-\u1ccf\u1cf7\u1cfa-\u1cff\u1df6-\u1dfa\u1f16\u1f17\u1f1e\u1f1f\u1f46\u1f47\u1f4e\u1f4f\u1f58\u1f5a\u1f5c\u1f5e\u1f7e\u1f7f\u1fb5\u1fc5\u1fd4\u1fd5\u1fdc\u1ff0\u1ff1\u1ff5\u1fff\u200b-\u200f\u202a-\u202e\u2060-\u206f\u2072\u2073\u208f\u209d-\u209f\u20bf-\u20cf\u20f1-\u20ff\u218c-\u218f\u23ff\u2427-\u243f\u244b-\u245f\u2b74\u2b75\u2b96\u2b97\u2bba-\u2bbc\u2bc9\u2bd2-\u2beb\u2bf0-\u2bff\u2c2f\u2c5f\u2cf4-\u2cf8\u2d26\u2d28-\u2d2c\u2d2e\u2d2f\u2d68-\u2d6e\u2d71-\u2d7e\u2d97-\u2d9f\u2da7\u2daf\u2db7\u2dbf\u2dc7\u2dcf\u2dd7\u2ddf\u2e45-\u2e7f\u2e9a\u2ef4-\u2eff\u2fd6-\u2fef\u2ffc-\u2fff\u3040\u3097\u3098\u3100-\u3104\u312e-\u3130\u318f\u31bb-\u31bf\u31e4-\u31ef\u321f\u32ff\u4db6-\u4dbf\u9fd6-\u9fff\ua48d-\ua48f\ua4c7-\ua4cf\ua62c-\ua63f\ua6f8-\ua6ff\ua7af\ua7b8-\ua7f6\ua82c-\ua82f\ua83a-\ua83f\ua878-\ua87f\ua8c6-\ua8cd\ua8da-\ua8df\ua8fe\ua8ff\ua954-\ua95e\ua97d-\ua97f\ua9ce\ua9da-\ua9dd\ua9ff\uaa37-\uaa3f\uaa4e\uaa4f\uaa5a\uaa5b\uaac3-\uaada\uaaf7-\uab00\uab07\uab08\uab0f\uab10\uab17-\uab1f\uab27\uab2f\uab66-\uab6f\uabee\uabef\uabfa-\uabff\ud7a4-\ud7af\ud7c7-\ud7ca\ud7fc-\uf8ff\ufa6e\ufa6f\ufada-\ufaff\ufb07-\ufb12\ufb18-\ufb1c\ufb37\ufb3d\ufb3f\ufb42\ufb45\ufbc2-\ufbd2\ufd40-\ufd4f\ufd90\ufd91\ufdc8-\ufdef\ufdfe\ufdff\ufe1a-\ufe1f\ufe53\ufe67\ufe6c-\ufe6f\ufe75\ufefd-\uff00\uffbf-\uffc1\uffc8\uffc9\uffd0\uffd1\uffd8\uffd9\uffdd-\uffdf\uffe7\uffef-\ufffb\ufffe\uffff",
astral:"\ud800[\udc0c\udc27\udc3b\udc3e\udc4e\udc4f\udc5e-\udc7f\udcfb-\udcff\udd03-\udd06\udd34-\udd36\udd8f\udd9c-\udd9f\udda1-\uddcf\uddfe-\ude7f\ude9d-\ude9f\uded1-\udedf\udefc-\udeff\udf24-\udf2f\udf4b-\udf4f\udf7b-\udf7f\udf9e\udfc4-\udfc7\udfd6-\udfff]|\ud801[\udc9e\udc9f\udcaa-\udcaf\udcd4-\udcd7\udcfc-\udcff\udd28-\udd2f\udd64-\udd6e\udd70-\uddff\udf37-\udf3f\udf56-\udf5f\udf68-\udfff]|\ud802[\udc06\udc07\udc09\udc36\udc39-\udc3b\udc3d\udc3e\udc56\udc9f-\udca6\udcb0-\udcdf\udcf3\udcf6-\udcfa\udd1c-\udd1e\udd3a-\udd3e\udd40-\udd7f\uddb8-\uddbb\uddd0\uddd1\ude04\ude07-\ude0b\ude14\ude18\ude34-\ude37\ude3b-\ude3e\ude48-\ude4f\ude59-\ude5f\udea0-\udebf\udee7-\udeea\udef7-\udeff\udf36-\udf38\udf56\udf57\udf73-\udf77\udf92-\udf98\udf9d-\udfa8\udfb0-\udfff]|\ud803[\udc49-\udc7f\udcb3-\udcbf\udcf3-\udcf9\udd00-\ude5f\ude7f-\udfff]|\ud804[\udc4e-\udc51\udc70-\udc7e\udcbd\udcc2-\udccf\udce9-\udcef\udcfa-\udcff\udd35\udd44-\udd4f\udd77-\udd7f\uddce\uddcf\udde0\uddf5-\uddff\ude12\ude3f-\ude7f\ude87\ude89\ude8e\ude9e\udeaa-\udeaf\udeeb-\udeef\udefa-\udeff\udf04\udf0d\udf0e\udf11\udf12\udf29\udf31\udf34\udf3a\udf3b\udf45\udf46\udf49\udf4a\udf4e\udf4f\udf51-\udf56\udf58-\udf5c\udf64\udf65\udf6d-\udf6f\udf75-\udfff]|\ud805[\udc5a\udc5c\udc5e-\udc7f\udcc8-\udccf\udcda-\udd7f\uddb6\uddb7\uddde-\uddff\ude45-\ude4f\ude5a-\ude5f\ude6d-\ude7f\udeb8-\udebf\udeca-\udeff\udf1a-\udf1c\udf2c-\udf2f\udf40-\udfff]|\ud806[\udc00-\udc9f\udcf3-\udcfe\udd00-\udebf\udef9-\udfff]|\ud807[\udc09\udc37\udc46-\udc4f\udc6d-\udc6f\udc90\udc91\udca8\udcb7-\udfff]|\ud808[\udf9a-\udfff]|\ud809[\udc6f\udc75-\udc7f\udd44-\udfff]|[\ud80a\ud80b\ud80e-\ud810\ud812-\ud819\ud823-\ud82b\ud82d\ud82e\ud830-\ud833\ud837\ud839\ud83f\ud874-\ud87d\ud87f-\udb3f\udb41-\udbff][\udc00-\udfff]|\ud80d[\udc2f-\udfff]|\ud811[\ude47-\udfff]|\ud81a[\ude39-\ude3f\ude5f\ude6a-\ude6d\ude70-\udecf\udeee\udeef\udef6-\udeff\udf46-\udf4f\udf5a\udf62\udf78-\udf7c\udf90-\udfff]|\ud81b[\udc00-\udeff\udf45-\udf4f\udf7f-\udf8e\udfa0-\udfdf\udfe1-\udfff]|\ud821[\udfed-\udfff]|\ud822[\udef3-\udfff]|\ud82c[\udc02-\udfff]|\ud82f[\udc6b-\udc6f\udc7d-\udc7f\udc89-\udc8f\udc9a\udc9b\udca0-\udfff]|\ud834[\udcf6-\udcff\udd27\udd28\udd73-\udd7a\udde9-\uddff\ude46-\udeff\udf57-\udf5f\udf72-\udfff]|\ud835[\udc55\udc9d\udca0\udca1\udca3\udca4\udca7\udca8\udcad\udcba\udcbc\udcc4\udd06\udd0b\udd0c\udd15\udd1d\udd3a\udd3f\udd45\udd47-\udd49\udd51\udea6\udea7\udfcc\udfcd]|\ud836[\ude8c-\ude9a\udea0\udeb0-\udfff]|\ud838[\udc07\udc19\udc1a\udc22\udc25\udc2b-\udfff]|\ud83a[\udcc5\udcc6\udcd7-\udcff\udd4b-\udd4f\udd5a-\udd5d\udd60-\udfff]|\ud83b[\udc00-\uddff\ude04\ude20\ude23\ude25\ude26\ude28\ude33\ude38\ude3a\ude3c-\ude41\ude43-\ude46\ude48\ude4a\ude4c\ude50\ude53\ude55\ude56\ude58\ude5a\ude5c\ude5e\ude60\ude63\ude65\ude66\ude6b\ude73\ude78\ude7d\ude7f\ude8a\ude9c-\udea0\udea4\udeaa\udebc-\udeef\udef2-\udfff]|\ud83c[\udc2c-\udc2f\udc94-\udc9f\udcaf\udcb0\udcc0\udcd0\udcf6-\udcff\udd0d-\udd0f\udd2f\udd6c-\udd6f\uddad-\udde5\ude03-\ude0f\ude3c-\ude3f\ude49-\ude4f\ude52-\udeff]|\ud83d[\uded3-\udedf\udeed-\udeef\udef7-\udeff\udf74-\udf7f\udfd5-\udfff]|\ud83e[\udc0c-\udc0f\udc48-\udc4f\udc5a-\udc5f\udc88-\udc8f\udcae-\udd0f\udd1f\udd28-\udd2f\udd31\udd32\udd3f\udd4c-\udd4f\udd5f-\udd7f\udd92-\uddbf\uddc1-\udfff]|\ud869[\uded7-\udeff]|\ud86d[\udf35-\udf3f]|\ud86e[\udc1e\udc1f]|\ud873[\udea2-\udfff]|\ud87e[\ude1e-\udfff]|\udb40[\udc00-\udcff\uddf0-\udfff]"},
{name:"Cc",alias:"Control",bmp:"\x00-\u001f\u007f-\u009f"},{name:"Cf",alias:"Format",bmp:"\u00ad\u0600-\u0605\u061c\u06dd\u070f\u08e2\u180e\u200b-\u200f\u202a-\u202e\u2060-\u2064\u2066-\u206f\ufeff\ufff9-\ufffb",astral:"\ud804\udcbd|\ud82f[\udca0-\udca3]|\ud834[\udd73-\udd7a]|\udb40[\udc01\udc20-\udc7f]"},{name:"Cn",alias:"Unassigned",bmp:"\u0378\u0379\u0380-\u0383\u038b\u038d\u03a2\u0530\u0557\u0558\u0560\u0588\u058b\u058c\u0590\u05c8-\u05cf\u05eb-\u05ef\u05f5-\u05ff\u061d\u070e\u074b\u074c\u07b2-\u07bf\u07fb-\u07ff\u082e\u082f\u083f\u085c\u085d\u085f-\u089f\u08b5\u08be-\u08d3\u0984\u098d\u098e\u0991\u0992\u09a9\u09b1\u09b3-\u09b5\u09ba\u09bb\u09c5\u09c6\u09c9\u09ca\u09cf-\u09d6\u09d8-\u09db\u09de\u09e4\u09e5\u09fc-\u0a00\u0a04\u0a0b-\u0a0e\u0a11\u0a12\u0a29\u0a31\u0a34\u0a37\u0a3a\u0a3b\u0a3d\u0a43-\u0a46\u0a49\u0a4a\u0a4e-\u0a50\u0a52-\u0a58\u0a5d\u0a5f-\u0a65\u0a76-\u0a80\u0a84\u0a8e\u0a92\u0aa9\u0ab1\u0ab4\u0aba\u0abb\u0ac6\u0aca\u0ace\u0acf\u0ad1-\u0adf\u0ae4\u0ae5\u0af2-\u0af8\u0afa-\u0b00\u0b04\u0b0d\u0b0e\u0b11\u0b12\u0b29\u0b31\u0b34\u0b3a\u0b3b\u0b45\u0b46\u0b49\u0b4a\u0b4e-\u0b55\u0b58-\u0b5b\u0b5e\u0b64\u0b65\u0b78-\u0b81\u0b84\u0b8b-\u0b8d\u0b91\u0b96-\u0b98\u0b9b\u0b9d\u0ba0-\u0ba2\u0ba5-\u0ba7\u0bab-\u0bad\u0bba-\u0bbd\u0bc3-\u0bc5\u0bc9\u0bce\u0bcf\u0bd1-\u0bd6\u0bd8-\u0be5\u0bfb-\u0bff\u0c04\u0c0d\u0c11\u0c29\u0c3a-\u0c3c\u0c45\u0c49\u0c4e-\u0c54\u0c57\u0c5b-\u0c5f\u0c64\u0c65\u0c70-\u0c77\u0c84\u0c8d\u0c91\u0ca9\u0cb4\u0cba\u0cbb\u0cc5\u0cc9\u0cce-\u0cd4\u0cd7-\u0cdd\u0cdf\u0ce4\u0ce5\u0cf0\u0cf3-\u0d00\u0d04\u0d0d\u0d11\u0d3b\u0d3c\u0d45\u0d49\u0d50-\u0d53\u0d64\u0d65\u0d80\u0d81\u0d84\u0d97-\u0d99\u0db2\u0dbc\u0dbe\u0dbf\u0dc7-\u0dc9\u0dcb-\u0dce\u0dd5\u0dd7\u0de0-\u0de5\u0df0\u0df1\u0df5-\u0e00\u0e3b-\u0e3e\u0e5c-\u0e80\u0e83\u0e85\u0e86\u0e89\u0e8b\u0e8c\u0e8e-\u0e93\u0e98\u0ea0\u0ea4\u0ea6\u0ea8\u0ea9\u0eac\u0eba\u0ebe\u0ebf\u0ec5\u0ec7\u0ece\u0ecf\u0eda\u0edb\u0ee0-\u0eff\u0f48\u0f6d-\u0f70\u0f98\u0fbd\u0fcd\u0fdb-\u0fff\u10c6\u10c8-\u10cc\u10ce\u10cf\u1249\u124e\u124f\u1257\u1259\u125e\u125f\u1289\u128e\u128f\u12b1\u12b6\u12b7\u12bf\u12c1\u12c6\u12c7\u12d7\u1311\u1316\u1317\u135b\u135c\u137d-\u137f\u139a-\u139f\u13f6\u13f7\u13fe\u13ff\u169d-\u169f\u16f9-\u16ff\u170d\u1715-\u171f\u1737-\u173f\u1754-\u175f\u176d\u1771\u1774-\u177f\u17de\u17df\u17ea-\u17ef\u17fa-\u17ff\u180f\u181a-\u181f\u1878-\u187f\u18ab-\u18af\u18f6-\u18ff\u191f\u192c-\u192f\u193c-\u193f\u1941-\u1943\u196e\u196f\u1975-\u197f\u19ac-\u19af\u19ca-\u19cf\u19db-\u19dd\u1a1c\u1a1d\u1a5f\u1a7d\u1a7e\u1a8a-\u1a8f\u1a9a-\u1a9f\u1aae\u1aaf\u1abf-\u1aff\u1b4c-\u1b4f\u1b7d-\u1b7f\u1bf4-\u1bfb\u1c38-\u1c3a\u1c4a-\u1c4c\u1c89-\u1cbf\u1cc8-\u1ccf\u1cf7\u1cfa-\u1cff\u1df6-\u1dfa\u1f16\u1f17\u1f1e\u1f1f\u1f46\u1f47\u1f4e\u1f4f\u1f58\u1f5a\u1f5c\u1f5e\u1f7e\u1f7f\u1fb5\u1fc5\u1fd4\u1fd5\u1fdc\u1ff0\u1ff1\u1ff5\u1fff\u2065\u2072\u2073\u208f\u209d-\u209f\u20bf-\u20cf\u20f1-\u20ff\u218c-\u218f\u23ff\u2427-\u243f\u244b-\u245f\u2b74\u2b75\u2b96\u2b97\u2bba-\u2bbc\u2bc9\u2bd2-\u2beb\u2bf0-\u2bff\u2c2f\u2c5f\u2cf4-\u2cf8\u2d26\u2d28-\u2d2c\u2d2e\u2d2f\u2d68-\u2d6e\u2d71-\u2d7e\u2d97-\u2d9f\u2da7\u2daf\u2db7\u2dbf\u2dc7\u2dcf\u2dd7\u2ddf\u2e45-\u2e7f\u2e9a\u2ef4-\u2eff\u2fd6-\u2fef\u2ffc-\u2fff\u3040\u3097\u3098\u3100-\u3104\u312e-\u3130\u318f\u31bb-\u31bf\u31e4-\u31ef\u321f\u32ff\u4db6-\u4dbf\u9fd6-\u9fff\ua48d-\ua48f\ua4c7-\ua4cf\ua62c-\ua63f\ua6f8-\ua6ff\ua7af\ua7b8-\ua7f6\ua82c-\ua82f\ua83a-\ua83f\ua878-\ua87f\ua8c6-\ua8cd\ua8da-\ua8df\ua8fe\ua8ff\ua954-\ua95e\ua97d-\ua97f\ua9ce\ua9da-\ua9dd\ua9ff\uaa37-\uaa3f\uaa4e\uaa4f\uaa5a\uaa5b\uaac3-\uaada\uaaf7-\uab00\uab07\uab08\uab0f\uab10\uab17-\uab1f\uab27\uab2f\uab66-\uab6f\uabee\uabef\uabfa-\uabff\ud7a4-\ud7af\ud7c7-\ud7ca\ud7fc-\ud7ff\ufa6e\ufa6f\ufada-\ufaff\ufb07-\ufb12\ufb18-\ufb1c\ufb37\ufb3d\ufb3f\ufb42\ufb45\ufbc2-\ufbd2\ufd40-\ufd4f\ufd90\ufd91\ufdc8-\ufdef\ufdfe\ufdff\ufe1a-\ufe1f\ufe53\ufe67\ufe6c-\ufe6f\ufe75\ufefd\ufefe\uff00\uffbf-\uffc1\uffc8\uffc9\uffd0\uffd1\uffd8\uffd9\uffdd-\uffdf\uffe7\uffef-\ufff8\ufffe\uffff",
astral:"\ud800[\udc0c\udc27\udc3b\udc3e\udc4e\udc4f\udc5e-\udc7f\udcfb-\udcff\udd03-\udd06\udd34-\udd36\udd8f\udd9c-\udd9f\udda1-\uddcf\uddfe-\ude7f\ude9d-\ude9f\uded1-\udedf\udefc-\udeff\udf24-\udf2f\udf4b-\udf4f\udf7b-\udf7f\udf9e\udfc4-\udfc7\udfd6-\udfff]|\ud801[\udc9e\udc9f\udcaa-\udcaf\udcd4-\udcd7\udcfc-\udcff\udd28-\udd2f\udd64-\udd6e\udd70-\uddff\udf37-\udf3f\udf56-\udf5f\udf68-\udfff]|\ud802[\udc06\udc07\udc09\udc36\udc39-\udc3b\udc3d\udc3e\udc56\udc9f-\udca6\udcb0-\udcdf\udcf3\udcf6-\udcfa\udd1c-\udd1e\udd3a-\udd3e\udd40-\udd7f\uddb8-\uddbb\uddd0\uddd1\ude04\ude07-\ude0b\ude14\ude18\ude34-\ude37\ude3b-\ude3e\ude48-\ude4f\ude59-\ude5f\udea0-\udebf\udee7-\udeea\udef7-\udeff\udf36-\udf38\udf56\udf57\udf73-\udf77\udf92-\udf98\udf9d-\udfa8\udfb0-\udfff]|\ud803[\udc49-\udc7f\udcb3-\udcbf\udcf3-\udcf9\udd00-\ude5f\ude7f-\udfff]|\ud804[\udc4e-\udc51\udc70-\udc7e\udcc2-\udccf\udce9-\udcef\udcfa-\udcff\udd35\udd44-\udd4f\udd77-\udd7f\uddce\uddcf\udde0\uddf5-\uddff\ude12\ude3f-\ude7f\ude87\ude89\ude8e\ude9e\udeaa-\udeaf\udeeb-\udeef\udefa-\udeff\udf04\udf0d\udf0e\udf11\udf12\udf29\udf31\udf34\udf3a\udf3b\udf45\udf46\udf49\udf4a\udf4e\udf4f\udf51-\udf56\udf58-\udf5c\udf64\udf65\udf6d-\udf6f\udf75-\udfff]|\ud805[\udc5a\udc5c\udc5e-\udc7f\udcc8-\udccf\udcda-\udd7f\uddb6\uddb7\uddde-\uddff\ude45-\ude4f\ude5a-\ude5f\ude6d-\ude7f\udeb8-\udebf\udeca-\udeff\udf1a-\udf1c\udf2c-\udf2f\udf40-\udfff]|\ud806[\udc00-\udc9f\udcf3-\udcfe\udd00-\udebf\udef9-\udfff]|\ud807[\udc09\udc37\udc46-\udc4f\udc6d-\udc6f\udc90\udc91\udca8\udcb7-\udfff]|\ud808[\udf9a-\udfff]|\ud809[\udc6f\udc75-\udc7f\udd44-\udfff]|[\ud80a\ud80b\ud80e-\ud810\ud812-\ud819\ud823-\ud82b\ud82d\ud82e\ud830-\ud833\ud837\ud839\ud83f\ud874-\ud87d\ud87f-\udb3f\udb41-\udb7f][\udc00-\udfff]|\ud80d[\udc2f-\udfff]|\ud811[\ude47-\udfff]|\ud81a[\ude39-\ude3f\ude5f\ude6a-\ude6d\ude70-\udecf\udeee\udeef\udef6-\udeff\udf46-\udf4f\udf5a\udf62\udf78-\udf7c\udf90-\udfff]|\ud81b[\udc00-\udeff\udf45-\udf4f\udf7f-\udf8e\udfa0-\udfdf\udfe1-\udfff]|\ud821[\udfed-\udfff]|\ud822[\udef3-\udfff]|\ud82c[\udc02-\udfff]|\ud82f[\udc6b-\udc6f\udc7d-\udc7f\udc89-\udc8f\udc9a\udc9b\udca4-\udfff]|\ud834[\udcf6-\udcff\udd27\udd28\udde9-\uddff\ude46-\udeff\udf57-\udf5f\udf72-\udfff]|\ud835[\udc55\udc9d\udca0\udca1\udca3\udca4\udca7\udca8\udcad\udcba\udcbc\udcc4\udd06\udd0b\udd0c\udd15\udd1d\udd3a\udd3f\udd45\udd47-\udd49\udd51\udea6\udea7\udfcc\udfcd]|\ud836[\ude8c-\ude9a\udea0\udeb0-\udfff]|\ud838[\udc07\udc19\udc1a\udc22\udc25\udc2b-\udfff]|\ud83a[\udcc5\udcc6\udcd7-\udcff\udd4b-\udd4f\udd5a-\udd5d\udd60-\udfff]|\ud83b[\udc00-\uddff\ude04\ude20\ude23\ude25\ude26\ude28\ude33\ude38\ude3a\ude3c-\ude41\ude43-\ude46\ude48\ude4a\ude4c\ude50\ude53\ude55\ude56\ude58\ude5a\ude5c\ude5e\ude60\ude63\ude65\ude66\ude6b\ude73\ude78\ude7d\ude7f\ude8a\ude9c-\udea0\udea4\udeaa\udebc-\udeef\udef2-\udfff]|\ud83c[\udc2c-\udc2f\udc94-\udc9f\udcaf\udcb0\udcc0\udcd0\udcf6-\udcff\udd0d-\udd0f\udd2f\udd6c-\udd6f\uddad-\udde5\ude03-\ude0f\ude3c-\ude3f\ude49-\ude4f\ude52-\udeff]|\ud83d[\uded3-\udedf\udeed-\udeef\udef7-\udeff\udf74-\udf7f\udfd5-\udfff]|\ud83e[\udc0c-\udc0f\udc48-\udc4f\udc5a-\udc5f\udc88-\udc8f\udcae-\udd0f\udd1f\udd28-\udd2f\udd31\udd32\udd3f\udd4c-\udd4f\udd5f-\udd7f\udd92-\uddbf\uddc1-\udfff]|\ud869[\uded7-\udeff]|\ud86d[\udf35-\udf3f]|\ud86e[\udc1e\udc1f]|\ud873[\udea2-\udfff]|\ud87e[\ude1e-\udfff]|\udb40[\udc00\udc02-\udc1f\udc80-\udcff\uddf0-\udfff]|[\udbbf\udbff][\udffe\udfff]"},
{name:"Co",alias:"Private_Use",bmp:"\ue000-\uf8ff",astral:"[\udb80-\udbbe\udbc0-\udbfe][\udc00-\udfff]|[\udbbf\udbff][\udc00-\udffd]"},{name:"Cs",alias:"Surrogate",bmp:"\ud800-\udfff"},{name:"L",alias:"Letter",bmp:"A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u1884\u1887-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ae\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",
astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf30-\udf40\udf42-\udf49\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude33\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc80-\udcaf\udcc4\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udf00-\udf19]|\ud806[\udca0-\udcdf\udcff\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f]|\ud808[\udc00-\udf99]|\ud809[\udc80-\udd43]|[\ud80c\ud81c-\ud820\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\udf00-\udf44\udf50\udf93-\udf9f\udfe0]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]|\ud82c[\udc00\udc01]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud83a[\udc00-\udcc4\udd00-\udd43]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},
{name:"Ll",alias:"Lowercase_Letter",bmp:"a-z\u00b5\u00df-\u00f6\u00f8-\u00ff\u0101\u0103\u0105\u0107\u0109\u010b\u010d\u010f\u0111\u0113\u0115\u0117\u0119\u011b\u011d\u011f\u0121\u0123\u0125\u0127\u0129\u012b\u012d\u012f\u0131\u0133\u0135\u0137\u0138\u013a\u013c\u013e\u0140\u0142\u0144\u0146\u0148\u0149\u014b\u014d\u014f\u0151\u0153\u0155\u0157\u0159\u015b\u015d\u015f\u0161\u0163\u0165\u0167\u0169\u016b\u016d\u016f\u0171\u0173\u0175\u0177\u017a\u017c\u017e-\u0180\u0183\u0185\u0188\u018c\u018d\u0192\u0195\u0199-\u019b\u019e\u01a1\u01a3\u01a5\u01a8\u01aa\u01ab\u01ad\u01b0\u01b4\u01b6\u01b9\u01ba\u01bd-\u01bf\u01c6\u01c9\u01cc\u01ce\u01d0\u01d2\u01d4\u01d6\u01d8\u01da\u01dc\u01dd\u01df\u01e1\u01e3\u01e5\u01e7\u01e9\u01eb\u01ed\u01ef\u01f0\u01f3\u01f5\u01f9\u01fb\u01fd\u01ff\u0201\u0203\u0205\u0207\u0209\u020b\u020d\u020f\u0211\u0213\u0215\u0217\u0219\u021b\u021d\u021f\u0221\u0223\u0225\u0227\u0229\u022b\u022d\u022f\u0231\u0233-\u0239\u023c\u023f\u0240\u0242\u0247\u0249\u024b\u024d\u024f-\u0293\u0295-\u02af\u0371\u0373\u0377\u037b-\u037d\u0390\u03ac-\u03ce\u03d0\u03d1\u03d5-\u03d7\u03d9\u03db\u03dd\u03df\u03e1\u03e3\u03e5\u03e7\u03e9\u03eb\u03ed\u03ef-\u03f3\u03f5\u03f8\u03fb\u03fc\u0430-\u045f\u0461\u0463\u0465\u0467\u0469\u046b\u046d\u046f\u0471\u0473\u0475\u0477\u0479\u047b\u047d\u047f\u0481\u048b\u048d\u048f\u0491\u0493\u0495\u0497\u0499\u049b\u049d\u049f\u04a1\u04a3\u04a5\u04a7\u04a9\u04ab\u04ad\u04af\u04b1\u04b3\u04b5\u04b7\u04b9\u04bb\u04bd\u04bf\u04c2\u04c4\u04c6\u04c8\u04ca\u04cc\u04ce\u04cf\u04d1\u04d3\u04d5\u04d7\u04d9\u04db\u04dd\u04df\u04e1\u04e3\u04e5\u04e7\u04e9\u04eb\u04ed\u04ef\u04f1\u04f3\u04f5\u04f7\u04f9\u04fb\u04fd\u04ff\u0501\u0503\u0505\u0507\u0509\u050b\u050d\u050f\u0511\u0513\u0515\u0517\u0519\u051b\u051d\u051f\u0521\u0523\u0525\u0527\u0529\u052b\u052d\u052f\u0561-\u0587\u13f8-\u13fd\u1c80-\u1c88\u1d00-\u1d2b\u1d6b-\u1d77\u1d79-\u1d9a\u1e01\u1e03\u1e05\u1e07\u1e09\u1e0b\u1e0d\u1e0f\u1e11\u1e13\u1e15\u1e17\u1e19\u1e1b\u1e1d\u1e1f\u1e21\u1e23\u1e25\u1e27\u1e29\u1e2b\u1e2d\u1e2f\u1e31\u1e33\u1e35\u1e37\u1e39\u1e3b\u1e3d\u1e3f\u1e41\u1e43\u1e45\u1e47\u1e49\u1e4b\u1e4d\u1e4f\u1e51\u1e53\u1e55\u1e57\u1e59\u1e5b\u1e5d\u1e5f\u1e61\u1e63\u1e65\u1e67\u1e69\u1e6b\u1e6d\u1e6f\u1e71\u1e73\u1e75\u1e77\u1e79\u1e7b\u1e7d\u1e7f\u1e81\u1e83\u1e85\u1e87\u1e89\u1e8b\u1e8d\u1e8f\u1e91\u1e93\u1e95-\u1e9d\u1e9f\u1ea1\u1ea3\u1ea5\u1ea7\u1ea9\u1eab\u1ead\u1eaf\u1eb1\u1eb3\u1eb5\u1eb7\u1eb9\u1ebb\u1ebd\u1ebf\u1ec1\u1ec3\u1ec5\u1ec7\u1ec9\u1ecb\u1ecd\u1ecf\u1ed1\u1ed3\u1ed5\u1ed7\u1ed9\u1edb\u1edd\u1edf\u1ee1\u1ee3\u1ee5\u1ee7\u1ee9\u1eeb\u1eed\u1eef\u1ef1\u1ef3\u1ef5\u1ef7\u1ef9\u1efb\u1efd\u1eff-\u1f07\u1f10-\u1f15\u1f20-\u1f27\u1f30-\u1f37\u1f40-\u1f45\u1f50-\u1f57\u1f60-\u1f67\u1f70-\u1f7d\u1f80-\u1f87\u1f90-\u1f97\u1fa0-\u1fa7\u1fb0-\u1fb4\u1fb6\u1fb7\u1fbe\u1fc2-\u1fc4\u1fc6\u1fc7\u1fd0-\u1fd3\u1fd6\u1fd7\u1fe0-\u1fe7\u1ff2-\u1ff4\u1ff6\u1ff7\u210a\u210e\u210f\u2113\u212f\u2134\u2139\u213c\u213d\u2146-\u2149\u214e\u2184\u2c30-\u2c5e\u2c61\u2c65\u2c66\u2c68\u2c6a\u2c6c\u2c71\u2c73\u2c74\u2c76-\u2c7b\u2c81\u2c83\u2c85\u2c87\u2c89\u2c8b\u2c8d\u2c8f\u2c91\u2c93\u2c95\u2c97\u2c99\u2c9b\u2c9d\u2c9f\u2ca1\u2ca3\u2ca5\u2ca7\u2ca9\u2cab\u2cad\u2caf\u2cb1\u2cb3\u2cb5\u2cb7\u2cb9\u2cbb\u2cbd\u2cbf\u2cc1\u2cc3\u2cc5\u2cc7\u2cc9\u2ccb\u2ccd\u2ccf\u2cd1\u2cd3\u2cd5\u2cd7\u2cd9\u2cdb\u2cdd\u2cdf\u2ce1\u2ce3\u2ce4\u2cec\u2cee\u2cf3\u2d00-\u2d25\u2d27\u2d2d\ua641\ua643\ua645\ua647\ua649\ua64b\ua64d\ua64f\ua651\ua653\ua655\ua657\ua659\ua65b\ua65d\ua65f\ua661\ua663\ua665\ua667\ua669\ua66b\ua66d\ua681\ua683\ua685\ua687\ua689\ua68b\ua68d\ua68f\ua691\ua693\ua695\ua697\ua699\ua69b\ua723\ua725\ua727\ua729\ua72b\ua72d\ua72f-\ua731\ua733\ua735\ua737\ua739\ua73b\ua73d\ua73f\ua741\ua743\ua745\ua747\ua749\ua74b\ua74d\ua74f\ua751\ua753\ua755\ua757\ua759\ua75b\ua75d\ua75f\ua761\ua763\ua765\ua767\ua769\ua76b\ua76d\ua76f\ua771-\ua778\ua77a\ua77c\ua77f\ua781\ua783\ua785\ua787\ua78c\ua78e\ua791\ua793-\ua795\ua797\ua799\ua79b\ua79d\ua79f\ua7a1\ua7a3\ua7a5\ua7a7\ua7a9\ua7b5\ua7b7\ua7fa\uab30-\uab5a\uab60-\uab65\uab70-\uabbf\ufb00-\ufb06\ufb13-\ufb17\uff41-\uff5a",
astral:"\ud801[\udc28-\udc4f\udcd8-\udcfb]|\ud803[\udcc0-\udcf2]|\ud806[\udcc0-\udcdf]|\ud835[\udc1a-\udc33\udc4e-\udc54\udc56-\udc67\udc82-\udc9b\udcb6-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udccf\udcea-\udd03\udd1e-\udd37\udd52-\udd6b\udd86-\udd9f\uddba-\uddd3\uddee-\ude07\ude22-\ude3b\ude56-\ude6f\ude8a-\udea5\udec2-\udeda\udedc-\udee1\udefc-\udf14\udf16-\udf1b\udf36-\udf4e\udf50-\udf55\udf70-\udf88\udf8a-\udf8f\udfaa-\udfc2\udfc4-\udfc9\udfcb]|\ud83a[\udd22-\udd43]"},{name:"Lm",alias:"Modifier_Letter",
bmp:"\u02b0-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0374\u037a\u0559\u0640\u06e5\u06e6\u07f4\u07f5\u07fa\u081a\u0824\u0828\u0971\u0e46\u0ec6\u10fc\u17d7\u1843\u1aa7\u1c78-\u1c7d\u1d2c-\u1d6a\u1d78\u1d9b-\u1dbf\u2071\u207f\u2090-\u209c\u2c7c\u2c7d\u2d6f\u2e2f\u3005\u3031-\u3035\u303b\u309d\u309e\u30fc-\u30fe\ua015\ua4f8-\ua4fd\ua60c\ua67f\ua69c\ua69d\ua717-\ua71f\ua770\ua788\ua7f8\ua7f9\ua9cf\ua9e6\uaa70\uaadd\uaaf3\uaaf4\uab5c-\uab5f\uff70\uff9e\uff9f",astral:"\ud81a[\udf40-\udf43]|\ud81b[\udf93-\udf9f\udfe0]"},
{name:"Lo",alias:"Other_Letter",bmp:"\u00aa\u00ba\u01bb\u01c0-\u01c3\u0294\u05d0-\u05ea\u05f0-\u05f2\u0620-\u063f\u0641-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u0800-\u0815\u0840-\u0858\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0972-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e45\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10d0-\u10fa\u10fd-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17dc\u1820-\u1842\u1844-\u1877\u1880-\u1884\u1887-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c77\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u2135-\u2138\u2d30-\u2d67\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3006\u303c\u3041-\u3096\u309f\u30a1-\u30fa\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua014\ua016-\ua48c\ua4d0-\ua4f7\ua500-\ua60b\ua610-\ua61f\ua62a\ua62b\ua66e\ua6a0-\ua6e5\ua78f\ua7f7\ua7fb-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9e0-\ua9e4\ua9e7-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa6f\uaa71-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb\uaadc\uaae0-\uaaea\uaaf2\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff66-\uff6f\uff71-\uff9d\uffa0-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",
astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf30-\udf40\udf42-\udf49\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf]|\ud801[\udc50-\udc9d\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude33\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc80-\udcaf\udcc4\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udf00-\udf19]|\ud806[\udcff\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f]|\ud808[\udc00-\udf99]|\ud809[\udc80-\udd43]|[\ud80c\ud81c-\ud820\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf63-\udf77\udf7d-\udf8f]|\ud81b[\udf00-\udf44\udf50]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]|\ud82c[\udc00\udc01]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud83a[\udc00-\udcc4]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},
{name:"Lt",alias:"Titlecase_Letter",bmp:"\u01c5\u01c8\u01cb\u01f2\u1f88-\u1f8f\u1f98-\u1f9f\u1fa8-\u1faf\u1fbc\u1fcc\u1ffc"},{name:"Lu",alias:"Uppercase_Letter",bmp:"A-Z\u00c0-\u00d6\u00d8-\u00de\u0100\u0102\u0104\u0106\u0108\u010a\u010c\u010e\u0110\u0112\u0114\u0116\u0118\u011a\u011c\u011e\u0120\u0122\u0124\u0126\u0128\u012a\u012c\u012e\u0130\u0132\u0134\u0136\u0139\u013b\u013d\u013f\u0141\u0143\u0145\u0147\u014a\u014c\u014e\u0150\u0152\u0154\u0156\u0158\u015a\u015c\u015e\u0160\u0162\u0164\u0166\u0168\u016a\u016c\u016e\u0170\u0172\u0174\u0176\u0178\u0179\u017b\u017d\u0181\u0182\u0184\u0186\u0187\u0189-\u018b\u018e-\u0191\u0193\u0194\u0196-\u0198\u019c\u019d\u019f\u01a0\u01a2\u01a4\u01a6\u01a7\u01a9\u01ac\u01ae\u01af\u01b1-\u01b3\u01b5\u01b7\u01b8\u01bc\u01c4\u01c7\u01ca\u01cd\u01cf\u01d1\u01d3\u01d5\u01d7\u01d9\u01db\u01de\u01e0\u01e2\u01e4\u01e6\u01e8\u01ea\u01ec\u01ee\u01f1\u01f4\u01f6-\u01f8\u01fa\u01fc\u01fe\u0200\u0202\u0204\u0206\u0208\u020a\u020c\u020e\u0210\u0212\u0214\u0216\u0218\u021a\u021c\u021e\u0220\u0222\u0224\u0226\u0228\u022a\u022c\u022e\u0230\u0232\u023a\u023b\u023d\u023e\u0241\u0243-\u0246\u0248\u024a\u024c\u024e\u0370\u0372\u0376\u037f\u0386\u0388-\u038a\u038c\u038e\u038f\u0391-\u03a1\u03a3-\u03ab\u03cf\u03d2-\u03d4\u03d8\u03da\u03dc\u03de\u03e0\u03e2\u03e4\u03e6\u03e8\u03ea\u03ec\u03ee\u03f4\u03f7\u03f9\u03fa\u03fd-\u042f\u0460\u0462\u0464\u0466\u0468\u046a\u046c\u046e\u0470\u0472\u0474\u0476\u0478\u047a\u047c\u047e\u0480\u048a\u048c\u048e\u0490\u0492\u0494\u0496\u0498\u049a\u049c\u049e\u04a0\u04a2\u04a4\u04a6\u04a8\u04aa\u04ac\u04ae\u04b0\u04b2\u04b4\u04b6\u04b8\u04ba\u04bc\u04be\u04c0\u04c1\u04c3\u04c5\u04c7\u04c9\u04cb\u04cd\u04d0\u04d2\u04d4\u04d6\u04d8\u04da\u04dc\u04de\u04e0\u04e2\u04e4\u04e6\u04e8\u04ea\u04ec\u04ee\u04f0\u04f2\u04f4\u04f6\u04f8\u04fa\u04fc\u04fe\u0500\u0502\u0504\u0506\u0508\u050a\u050c\u050e\u0510\u0512\u0514\u0516\u0518\u051a\u051c\u051e\u0520\u0522\u0524\u0526\u0528\u052a\u052c\u052e\u0531-\u0556\u10a0-\u10c5\u10c7\u10cd\u13a0-\u13f5\u1e00\u1e02\u1e04\u1e06\u1e08\u1e0a\u1e0c\u1e0e\u1e10\u1e12\u1e14\u1e16\u1e18\u1e1a\u1e1c\u1e1e\u1e20\u1e22\u1e24\u1e26\u1e28\u1e2a\u1e2c\u1e2e\u1e30\u1e32\u1e34\u1e36\u1e38\u1e3a\u1e3c\u1e3e\u1e40\u1e42\u1e44\u1e46\u1e48\u1e4a\u1e4c\u1e4e\u1e50\u1e52\u1e54\u1e56\u1e58\u1e5a\u1e5c\u1e5e\u1e60\u1e62\u1e64\u1e66\u1e68\u1e6a\u1e6c\u1e6e\u1e70\u1e72\u1e74\u1e76\u1e78\u1e7a\u1e7c\u1e7e\u1e80\u1e82\u1e84\u1e86\u1e88\u1e8a\u1e8c\u1e8e\u1e90\u1e92\u1e94\u1e9e\u1ea0\u1ea2\u1ea4\u1ea6\u1ea8\u1eaa\u1eac\u1eae\u1eb0\u1eb2\u1eb4\u1eb6\u1eb8\u1eba\u1ebc\u1ebe\u1ec0\u1ec2\u1ec4\u1ec6\u1ec8\u1eca\u1ecc\u1ece\u1ed0\u1ed2\u1ed4\u1ed6\u1ed8\u1eda\u1edc\u1ede\u1ee0\u1ee2\u1ee4\u1ee6\u1ee8\u1eea\u1eec\u1eee\u1ef0\u1ef2\u1ef4\u1ef6\u1ef8\u1efa\u1efc\u1efe\u1f08-\u1f0f\u1f18-\u1f1d\u1f28-\u1f2f\u1f38-\u1f3f\u1f48-\u1f4d\u1f59\u1f5b\u1f5d\u1f5f\u1f68-\u1f6f\u1fb8-\u1fbb\u1fc8-\u1fcb\u1fd8-\u1fdb\u1fe8-\u1fec\u1ff8-\u1ffb\u2102\u2107\u210b-\u210d\u2110-\u2112\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u2130-\u2133\u213e\u213f\u2145\u2183\u2c00-\u2c2e\u2c60\u2c62-\u2c64\u2c67\u2c69\u2c6b\u2c6d-\u2c70\u2c72\u2c75\u2c7e-\u2c80\u2c82\u2c84\u2c86\u2c88\u2c8a\u2c8c\u2c8e\u2c90\u2c92\u2c94\u2c96\u2c98\u2c9a\u2c9c\u2c9e\u2ca0\u2ca2\u2ca4\u2ca6\u2ca8\u2caa\u2cac\u2cae\u2cb0\u2cb2\u2cb4\u2cb6\u2cb8\u2cba\u2cbc\u2cbe\u2cc0\u2cc2\u2cc4\u2cc6\u2cc8\u2cca\u2ccc\u2cce\u2cd0\u2cd2\u2cd4\u2cd6\u2cd8\u2cda\u2cdc\u2cde\u2ce0\u2ce2\u2ceb\u2ced\u2cf2\ua640\ua642\ua644\ua646\ua648\ua64a\ua64c\ua64e\ua650\ua652\ua654\ua656\ua658\ua65a\ua65c\ua65e\ua660\ua662\ua664\ua666\ua668\ua66a\ua66c\ua680\ua682\ua684\ua686\ua688\ua68a\ua68c\ua68e\ua690\ua692\ua694\ua696\ua698\ua69a\ua722\ua724\ua726\ua728\ua72a\ua72c\ua72e\ua732\ua734\ua736\ua738\ua73a\ua73c\ua73e\ua740\ua742\ua744\ua746\ua748\ua74a\ua74c\ua74e\ua750\ua752\ua754\ua756\ua758\ua75a\ua75c\ua75e\ua760\ua762\ua764\ua766\ua768\ua76a\ua76c\ua76e\ua779\ua77b\ua77d\ua77e\ua780\ua782\ua784\ua786\ua78b\ua78d\ua790\ua792\ua796\ua798\ua79a\ua79c\ua79e\ua7a0\ua7a2\ua7a4\ua7a6\ua7a8\ua7aa-\ua7ae\ua7b0-\ua7b4\ua7b6\uff21-\uff3a",
astral:"\ud801[\udc00-\udc27\udcb0-\udcd3]|\ud803[\udc80-\udcb2]|\ud806[\udca0-\udcbf]|\ud835[\udc00-\udc19\udc34-\udc4d\udc68-\udc81\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb5\udcd0-\udce9\udd04\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd38\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd6c-\udd85\udda0-\uddb9\uddd4-\udded\ude08-\ude21\ude3c-\ude55\ude70-\ude89\udea8-\udec0\udee2-\udefa\udf1c-\udf34\udf56-\udf6e\udf90-\udfa8\udfca]|\ud83a[\udd00-\udd21]"},{name:"M",
alias:"Mark",bmp:"\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08d4-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u1885\u1886\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfb-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c5\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f",
astral:"\ud800[\uddfd\udee0\udf76-\udf7a]|\ud802[\ude01-\ude03\ude05\ude06\ude0c-\ude0f\ude38-\ude3a\ude3f\udee5\udee6]|\ud804[\udc00-\udc02\udc38-\udc46\udc7f-\udc82\udcb0-\udcba\udd00-\udd02\udd27-\udd34\udd73\udd80-\udd82\uddb3-\uddc0\uddca-\uddcc\ude2c-\ude37\ude3e\udedf-\udeea\udf00-\udf03\udf3c\udf3e-\udf44\udf47\udf48\udf4b-\udf4d\udf57\udf62\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc35-\udc46\udcb0-\udcc3\uddaf-\uddb5\uddb8-\uddc0\udddc\udddd\ude30-\ude40\udeab-\udeb7\udf1d-\udf2b]|\ud807[\udc2f-\udc36\udc38-\udc3f\udc92-\udca7\udca9-\udcb6]|\ud81a[\udef0-\udef4\udf30-\udf36]|\ud81b[\udf51-\udf7e\udf8f-\udf92]|\ud82f[\udc9d\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]|\ud83a[\udcd0-\udcd6\udd44-\udd4a]|\udb40[\udd00-\uddef]"},
{name:"Mc",alias:"Spacing_Mark",bmp:"\u0903\u093b\u093e-\u0940\u0949-\u094c\u094e\u094f\u0982\u0983\u09be-\u09c0\u09c7\u09c8\u09cb\u09cc\u09d7\u0a03\u0a3e-\u0a40\u0a83\u0abe-\u0ac0\u0ac9\u0acb\u0acc\u0b02\u0b03\u0b3e\u0b40\u0b47\u0b48\u0b4b\u0b4c\u0b57\u0bbe\u0bbf\u0bc1\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd7\u0c01-\u0c03\u0c41-\u0c44\u0c82\u0c83\u0cbe\u0cc0-\u0cc4\u0cc7\u0cc8\u0cca\u0ccb\u0cd5\u0cd6\u0d02\u0d03\u0d3e-\u0d40\u0d46-\u0d48\u0d4a-\u0d4c\u0d57\u0d82\u0d83\u0dcf-\u0dd1\u0dd8-\u0ddf\u0df2\u0df3\u0f3e\u0f3f\u0f7f\u102b\u102c\u1031\u1038\u103b\u103c\u1056\u1057\u1062-\u1064\u1067-\u106d\u1083\u1084\u1087-\u108c\u108f\u109a-\u109c\u17b6\u17be-\u17c5\u17c7\u17c8\u1923-\u1926\u1929-\u192b\u1930\u1931\u1933-\u1938\u1a19\u1a1a\u1a55\u1a57\u1a61\u1a63\u1a64\u1a6d-\u1a72\u1b04\u1b35\u1b3b\u1b3d-\u1b41\u1b43\u1b44\u1b82\u1ba1\u1ba6\u1ba7\u1baa\u1be7\u1bea-\u1bec\u1bee\u1bf2\u1bf3\u1c24-\u1c2b\u1c34\u1c35\u1ce1\u1cf2\u1cf3\u302e\u302f\ua823\ua824\ua827\ua880\ua881\ua8b4-\ua8c3\ua952\ua953\ua983\ua9b4\ua9b5\ua9ba\ua9bb\ua9bd-\ua9c0\uaa2f\uaa30\uaa33\uaa34\uaa4d\uaa7b\uaa7d\uaaeb\uaaee\uaaef\uaaf5\uabe3\uabe4\uabe6\uabe7\uabe9\uabea\uabec",
astral:"\ud804[\udc00\udc02\udc82\udcb0-\udcb2\udcb7\udcb8\udd2c\udd82\uddb3-\uddb5\uddbf\uddc0\ude2c-\ude2e\ude32\ude33\ude35\udee0-\udee2\udf02\udf03\udf3e\udf3f\udf41-\udf44\udf47\udf48\udf4b-\udf4d\udf57\udf62\udf63]|\ud805[\udc35-\udc37\udc40\udc41\udc45\udcb0-\udcb2\udcb9\udcbb-\udcbe\udcc1\uddaf-\uddb1\uddb8-\uddbb\uddbe\ude30-\ude32\ude3b\ude3c\ude3e\udeac\udeae\udeaf\udeb6\udf20\udf21\udf26]|\ud807[\udc2f\udc3e\udca9\udcb1\udcb4]|\ud81b[\udf51-\udf7e]|\ud834[\udd65\udd66\udd6d-\udd72]"},
{name:"Me",alias:"Enclosing_Mark",bmp:"\u0488\u0489\u1abe\u20dd-\u20e0\u20e2-\u20e4\ua670-\ua672"},{name:"Mn",alias:"Nonspacing_Mark",bmp:"\u0300-\u036f\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08d4-\u08e1\u08e3-\u0902\u093a\u093c\u0941-\u0948\u094d\u0951-\u0957\u0962\u0963\u0981\u09bc\u09c1-\u09c4\u09cd\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b62\u0b63\u0b82\u0bc0\u0bcd\u0c00\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81\u0cbc\u0cbf\u0cc6\u0ccc\u0ccd\u0ce2\u0ce3\u0d01\u0d41-\u0d44\u0d4d\u0d62\u0d63\u0dca\u0dd2-\u0dd4\u0dd6\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4\u17b5\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u1885\u1886\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a1b\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1ab0-\u1abd\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1bab-\u1bad\u1be6\u1be8\u1be9\u1bed\u1bef-\u1bf1\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfb-\u1dff\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302d\u3099\u309a\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8c5\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\ua9e5\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaa7c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaec\uaaed\uaaf6\uabe5\uabe8\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f",
astral:"\ud800[\uddfd\udee0\udf76-\udf7a]|\ud802[\ude01-\ude03\ude05\ude06\ude0c-\ude0f\ude38-\ude3a\ude3f\udee5\udee6]|\ud804[\udc01\udc38-\udc46\udc7f-\udc81\udcb3-\udcb6\udcb9\udcba\udd00-\udd02\udd27-\udd2b\udd2d-\udd34\udd73\udd80\udd81\uddb6-\uddbe\uddca-\uddcc\ude2f-\ude31\ude34\ude36\ude37\ude3e\udedf\udee3-\udeea\udf00\udf01\udf3c\udf40\udf66-\udf6c\udf70-\udf74]|\ud805[\udc38-\udc3f\udc42-\udc44\udc46\udcb3-\udcb8\udcba\udcbf\udcc0\udcc2\udcc3\uddb2-\uddb5\uddbc\uddbd\uddbf\uddc0\udddc\udddd\ude33-\ude3a\ude3d\ude3f\ude40\udeab\udead\udeb0-\udeb5\udeb7\udf1d-\udf1f\udf22-\udf25\udf27-\udf2b]|\ud807[\udc30-\udc36\udc38-\udc3d\udc3f\udc92-\udca7\udcaa-\udcb0\udcb2\udcb3\udcb5\udcb6]|\ud81a[\udef0-\udef4\udf30-\udf36]|\ud81b[\udf8f-\udf92]|\ud82f[\udc9d\udc9e]|\ud834[\udd67-\udd69\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]|\ud83a[\udcd0-\udcd6\udd44-\udd4a]|\udb40[\udd00-\uddef]"},
{name:"N",alias:"Number",bmp:"0-9\u00b2\u00b3\u00b9\u00bc-\u00be\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u09f4-\u09f9\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0b72-\u0b77\u0be6-\u0bf2\u0c66-\u0c6f\u0c78-\u0c7e\u0ce6-\u0cef\u0d58-\u0d5e\u0d66-\u0d78\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f33\u1040-\u1049\u1090-\u1099\u1369-\u137c\u16ee-\u16f0\u17e0-\u17e9\u17f0-\u17f9\u1810-\u1819\u1946-\u194f\u19d0-\u19da\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249b\u24ea-\u24ff\u2776-\u2793\u2cfd\u3007\u3021-\u3029\u3038-\u303a\u3192-\u3195\u3220-\u3229\u3248-\u324f\u3251-\u325f\u3280-\u3289\u32b1-\u32bf\ua620-\ua629\ua6e6-\ua6ef\ua830-\ua835\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19",
astral:"\ud800[\udd07-\udd33\udd40-\udd78\udd8a\udd8b\udee1-\udefb\udf20-\udf23\udf41\udf4a\udfd1-\udfd5]|\ud801[\udca0-\udca9]|\ud802[\udc58-\udc5f\udc79-\udc7f\udca7-\udcaf\udcfb-\udcff\udd16-\udd1b\uddbc\uddbd\uddc0-\uddcf\uddd2-\uddff\ude40-\ude47\ude7d\ude7e\ude9d-\ude9f\udeeb-\udeef\udf58-\udf5f\udf78-\udf7f\udfa9-\udfaf]|\ud803[\udcfa-\udcff\ude60-\ude7e]|\ud804[\udc52-\udc6f\udcf0-\udcf9\udd36-\udd3f\uddd0-\uddd9\udde1-\uddf4\udef0-\udef9]|\ud805[\udc50-\udc59\udcd0-\udcd9\ude50-\ude59\udec0-\udec9\udf30-\udf3b]|\ud806[\udce0-\udcf2]|\ud807[\udc50-\udc6c]|\ud809[\udc00-\udc6e]|\ud81a[\ude60-\ude69\udf50-\udf59\udf5b-\udf61]|\ud834[\udf60-\udf71]|\ud835[\udfce-\udfff]|\ud83a[\udcc7-\udccf\udd50-\udd59]|\ud83c[\udd00-\udd0c]"},
{name:"Nd",alias:"Decimal_Number",bmp:"0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19",
astral:"\ud801[\udca0-\udca9]|\ud804[\udc66-\udc6f\udcf0-\udcf9\udd36-\udd3f\uddd0-\uddd9\udef0-\udef9]|\ud805[\udc50-\udc59\udcd0-\udcd9\ude50-\ude59\udec0-\udec9\udf30-\udf39]|\ud806[\udce0-\udce9]|\ud807[\udc50-\udc59]|\ud81a[\ude60-\ude69\udf50-\udf59]|\ud835[\udfce-\udfff]|\ud83a[\udd50-\udd59]"},{name:"Nl",alias:"Letter_Number",bmp:"\u16ee-\u16f0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303a\ua6e6-\ua6ef",astral:"\ud800[\udd40-\udd74\udf41\udf4a\udfd1-\udfd5]|\ud809[\udc00-\udc6e]"},
{name:"No",alias:"Other_Number",bmp:"\u00b2\u00b3\u00b9\u00bc-\u00be\u09f4-\u09f9\u0b72-\u0b77\u0bf0-\u0bf2\u0c78-\u0c7e\u0d58-\u0d5e\u0d70-\u0d78\u0f2a-\u0f33\u1369-\u137c\u17f0-\u17f9\u19da\u2070\u2074-\u2079\u2080-\u2089\u2150-\u215f\u2189\u2460-\u249b\u24ea-\u24ff\u2776-\u2793\u2cfd\u3192-\u3195\u3220-\u3229\u3248-\u324f\u3251-\u325f\u3280-\u3289\u32b1-\u32bf\ua830-\ua835",astral:"\ud800[\udd07-\udd33\udd75-\udd78\udd8a\udd8b\udee1-\udefb\udf20-\udf23]|\ud802[\udc58-\udc5f\udc79-\udc7f\udca7-\udcaf\udcfb-\udcff\udd16-\udd1b\uddbc\uddbd\uddc0-\uddcf\uddd2-\uddff\ude40-\ude47\ude7d\ude7e\ude9d-\ude9f\udeeb-\udeef\udf58-\udf5f\udf78-\udf7f\udfa9-\udfaf]|\ud803[\udcfa-\udcff\ude60-\ude7e]|\ud804[\udc52-\udc65\udde1-\uddf4]|\ud805[\udf3a\udf3b]|\ud806[\udcea-\udcf2]|\ud807[\udc5a-\udc6c]|\ud81a[\udf5b-\udf61]|\ud834[\udf60-\udf71]|\ud83a[\udcc7-\udccf]|\ud83c[\udd00-\udd0c]"},
{name:"P",alias:"Punctuation",bmp:"!-#%-\\x2A,-/:;\\x3F@\\x5B-\\x5D_\\x7B}\u00a1\u00a7\u00ab\u00b6\u00b7\u00bb\u00bf\u037e\u0387\u055a-\u055f\u0589\u058a\u05be\u05c0\u05c3\u05c6\u05f3\u05f4\u0609\u060a\u060c\u060d\u061b\u061e\u061f\u066a-\u066d\u06d4\u0700-\u070d\u07f7-\u07f9\u0830-\u083e\u085e\u0964\u0965\u0970\u0af0\u0df4\u0e4f\u0e5a\u0e5b\u0f04-\u0f12\u0f14\u0f3a-\u0f3d\u0f85\u0fd0-\u0fd4\u0fd9\u0fda\u104a-\u104f\u10fb\u1360-\u1368\u1400\u166d\u166e\u169b\u169c\u16eb-\u16ed\u1735\u1736\u17d4-\u17d6\u17d8-\u17da\u1800-\u180a\u1944\u1945\u1a1e\u1a1f\u1aa0-\u1aa6\u1aa8-\u1aad\u1b5a-\u1b60\u1bfc-\u1bff\u1c3b-\u1c3f\u1c7e\u1c7f\u1cc0-\u1cc7\u1cd3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205e\u207d\u207e\u208d\u208e\u2308-\u230b\u2329\u232a\u2768-\u2775\u27c5\u27c6\u27e6-\u27ef\u2983-\u2998\u29d8-\u29db\u29fc\u29fd\u2cf9-\u2cfc\u2cfe\u2cff\u2d70\u2e00-\u2e2e\u2e30-\u2e44\u3001-\u3003\u3008-\u3011\u3014-\u301f\u3030\u303d\u30a0\u30fb\ua4fe\ua4ff\ua60d-\ua60f\ua673\ua67e\ua6f2-\ua6f7\ua874-\ua877\ua8ce\ua8cf\ua8f8-\ua8fa\ua8fc\ua92e\ua92f\ua95f\ua9c1-\ua9cd\ua9de\ua9df\uaa5c-\uaa5f\uaade\uaadf\uaaf0\uaaf1\uabeb\ufd3e\ufd3f\ufe10-\ufe19\ufe30-\ufe52\ufe54-\ufe61\ufe63\ufe68\ufe6a\ufe6b\uff01-\uff03\uff05-\uff0a\uff0c-\uff0f\uff1a\uff1b\uff1f\uff20\uff3b-\uff3d\uff3f\uff5b\uff5d\uff5f-\uff65",
astral:"\ud800[\udd00-\udd02\udf9f\udfd0]|\ud801\udd6f|\ud802[\udc57\udd1f\udd3f\ude50-\ude58\ude7f\udef0-\udef6\udf39-\udf3f\udf99-\udf9c]|\ud804[\udc47-\udc4d\udcbb\udcbc\udcbe-\udcc1\udd40-\udd43\udd74\udd75\uddc5-\uddc9\uddcd\udddb\udddd-\udddf\ude38-\ude3d\udea9]|\ud805[\udc4b-\udc4f\udc5b\udc5d\udcc6\uddc1-\uddd7\ude41-\ude43\ude60-\ude6c\udf3c-\udf3e]|\ud807[\udc41-\udc45\udc70\udc71]|\ud809[\udc70-\udc74]|\ud81a[\ude6e\ude6f\udef5\udf37-\udf3b\udf44]|\ud82f\udc9f|\ud836[\ude87-\ude8b]|\ud83a[\udd5e\udd5f]"},
{name:"Pc",alias:"Connector_Punctuation",bmp:"_\u203f\u2040\u2054\ufe33\ufe34\ufe4d-\ufe4f\uff3f"},{name:"Pd",alias:"Dash_Punctuation",bmp:"\\x2D\u058a\u05be\u1400\u1806\u2010-\u2015\u2e17\u2e1a\u2e3a\u2e3b\u2e40\u301c\u3030\u30a0\ufe31\ufe32\ufe58\ufe63\uff0d"},{name:"Pe",alias:"Close_Punctuation",bmp:"\\x29\\x5D}\u0f3b\u0f3d\u169c\u2046\u207e\u208e\u2309\u230b\u232a\u2769\u276b\u276d\u276f\u2771\u2773\u2775\u27c6\u27e7\u27e9\u27eb\u27ed\u27ef\u2984\u2986\u2988\u298a\u298c\u298e\u2990\u2992\u2994\u2996\u2998\u29d9\u29db\u29fd\u2e23\u2e25\u2e27\u2e29\u3009\u300b\u300d\u300f\u3011\u3015\u3017\u3019\u301b\u301e\u301f\ufd3e\ufe18\ufe36\ufe38\ufe3a\ufe3c\ufe3e\ufe40\ufe42\ufe44\ufe48\ufe5a\ufe5c\ufe5e\uff09\uff3d\uff5d\uff60\uff63"},
{name:"Pf",alias:"Final_Punctuation",bmp:"\u00bb\u2019\u201d\u203a\u2e03\u2e05\u2e0a\u2e0d\u2e1d\u2e21"},{name:"Pi",alias:"Initial_Punctuation",bmp:"\u00ab\u2018\u201b\u201c\u201f\u2039\u2e02\u2e04\u2e09\u2e0c\u2e1c\u2e20"},{name:"Po",alias:"Other_Punctuation",bmp:"!-#%-'\\x2A,\\x2E/:;\\x3F@\\x5C\u00a1\u00a7\u00b6\u00b7\u00bf\u037e\u0387\u055a-\u055f\u0589\u05c0\u05c3\u05c6\u05f3\u05f4\u0609\u060a\u060c\u060d\u061b\u061e\u061f\u066a-\u066d\u06d4\u0700-\u070d\u07f7-\u07f9\u0830-\u083e\u085e\u0964\u0965\u0970\u0af0\u0df4\u0e4f\u0e5a\u0e5b\u0f04-\u0f12\u0f14\u0f85\u0fd0-\u0fd4\u0fd9\u0fda\u104a-\u104f\u10fb\u1360-\u1368\u166d\u166e\u16eb-\u16ed\u1735\u1736\u17d4-\u17d6\u17d8-\u17da\u1800-\u1805\u1807-\u180a\u1944\u1945\u1a1e\u1a1f\u1aa0-\u1aa6\u1aa8-\u1aad\u1b5a-\u1b60\u1bfc-\u1bff\u1c3b-\u1c3f\u1c7e\u1c7f\u1cc0-\u1cc7\u1cd3\u2016\u2017\u2020-\u2027\u2030-\u2038\u203b-\u203e\u2041-\u2043\u2047-\u2051\u2053\u2055-\u205e\u2cf9-\u2cfc\u2cfe\u2cff\u2d70\u2e00\u2e01\u2e06-\u2e08\u2e0b\u2e0e-\u2e16\u2e18\u2e19\u2e1b\u2e1e\u2e1f\u2e2a-\u2e2e\u2e30-\u2e39\u2e3c-\u2e3f\u2e41\u2e43\u2e44\u3001-\u3003\u303d\u30fb\ua4fe\ua4ff\ua60d-\ua60f\ua673\ua67e\ua6f2-\ua6f7\ua874-\ua877\ua8ce\ua8cf\ua8f8-\ua8fa\ua8fc\ua92e\ua92f\ua95f\ua9c1-\ua9cd\ua9de\ua9df\uaa5c-\uaa5f\uaade\uaadf\uaaf0\uaaf1\uabeb\ufe10-\ufe16\ufe19\ufe30\ufe45\ufe46\ufe49-\ufe4c\ufe50-\ufe52\ufe54-\ufe57\ufe5f-\ufe61\ufe68\ufe6a\ufe6b\uff01-\uff03\uff05-\uff07\uff0a\uff0c\uff0e\uff0f\uff1a\uff1b\uff1f\uff20\uff3c\uff61\uff64\uff65",
astral:"\ud800[\udd00-\udd02\udf9f\udfd0]|\ud801\udd6f|\ud802[\udc57\udd1f\udd3f\ude50-\ude58\ude7f\udef0-\udef6\udf39-\udf3f\udf99-\udf9c]|\ud804[\udc47-\udc4d\udcbb\udcbc\udcbe-\udcc1\udd40-\udd43\udd74\udd75\uddc5-\uddc9\uddcd\udddb\udddd-\udddf\ude38-\ude3d\udea9]|\ud805[\udc4b-\udc4f\udc5b\udc5d\udcc6\uddc1-\uddd7\ude41-\ude43\ude60-\ude6c\udf3c-\udf3e]|\ud807[\udc41-\udc45\udc70\udc71]|\ud809[\udc70-\udc74]|\ud81a[\ude6e\ude6f\udef5\udf37-\udf3b\udf44]|\ud82f\udc9f|\ud836[\ude87-\ude8b]|\ud83a[\udd5e\udd5f]"},
{name:"Ps",alias:"Open_Punctuation",bmp:"\\x28\\x5B\\x7B\u0f3a\u0f3c\u169b\u201a\u201e\u2045\u207d\u208d\u2308\u230a\u2329\u2768\u276a\u276c\u276e\u2770\u2772\u2774\u27c5\u27e6\u27e8\u27ea\u27ec\u27ee\u2983\u2985\u2987\u2989\u298b\u298d\u298f\u2991\u2993\u2995\u2997\u29d8\u29da\u29fc\u2e22\u2e24\u2e26\u2e28\u2e42\u3008\u300a\u300c\u300e\u3010\u3014\u3016\u3018\u301a\u301d\ufd3f\ufe17\ufe35\ufe37\ufe39\ufe3b\ufe3d\ufe3f\ufe41\ufe43\ufe47\ufe59\ufe5b\ufe5d\uff08\uff3b\uff5b\uff5f\uff62"},{name:"S",
alias:"Symbol",bmp:"\\x24\\x2B<->\\x5E`\\x7C~\u00a2-\u00a6\u00a8\u00a9\u00ac\u00ae-\u00b1\u00b4\u00b8\u00d7\u00f7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20be\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u23fe\u2400-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b98-\u2bb9\u2bbd-\u2bc8\u2bca-\u2bd1\u2bec-\u2bef\u2ce5-\u2cea\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u32fe\u3300-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd",
astral:"\ud800[\udd37-\udd3f\udd79-\udd89\udd8c-\udd8e\udd90-\udd9b\udda0\uddd0-\uddfc]|\ud802[\udc77\udc78\udec8]|\ud805\udf3f|\ud81a[\udf3c-\udf3f\udf45]|\ud82f\udc9c|\ud834[\udc00-\udcf5\udd00-\udd26\udd29-\udd64\udd6a-\udd6c\udd83\udd84\udd8c-\udda9\uddae-\udde8\ude00-\ude41\ude45\udf00-\udf56]|\ud835[\udec1\udedb\udefb\udf15\udf35\udf4f\udf6f\udf89\udfa9\udfc3]|\ud836[\udc00-\uddff\ude37-\ude3a\ude6d-\ude74\ude76-\ude83\ude85\ude86]|\ud83b[\udef0\udef1]|\ud83c[\udc00-\udc2b\udc30-\udc93\udca0-\udcae\udcb1-\udcbf\udcc1-\udccf\udcd1-\udcf5\udd10-\udd2e\udd30-\udd6b\udd70-\uddac\udde6-\ude02\ude10-\ude3b\ude40-\ude48\ude50\ude51\udf00-\udfff]|\ud83d[\udc00-\uded2\udee0-\udeec\udef0-\udef6\udf00-\udf73\udf80-\udfd4]|\ud83e[\udc00-\udc0b\udc10-\udc47\udc50-\udc59\udc60-\udc87\udc90-\udcad\udd10-\udd1e\udd20-\udd27\udd30\udd33-\udd3e\udd40-\udd4b\udd50-\udd5e\udd80-\udd91\uddc0]"},
{name:"Sc",alias:"Currency_Symbol",bmp:"\\x24\u00a2-\u00a5\u058f\u060b\u09f2\u09f3\u09fb\u0af1\u0bf9\u0e3f\u17db\u20a0-\u20be\ua838\ufdfc\ufe69\uff04\uffe0\uffe1\uffe5\uffe6"},{name:"Sk",alias:"Modifier_Symbol",bmp:"\\x5E`\u00a8\u00af\u00b4\u00b8\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u309b\u309c\ua700-\ua716\ua720\ua721\ua789\ua78a\uab5b\ufbb2-\ufbc1\uff3e\uff40\uffe3",astral:"\ud83c[\udffb-\udfff]"},
{name:"Sm",alias:"Math_Symbol",bmp:"\\x2B<->\\x7C~\u00ac\u00b1\u00d7\u00f7\u03f6\u0606-\u0608\u2044\u2052\u207a-\u207c\u208a-\u208c\u2118\u2140-\u2144\u214b\u2190-\u2194\u219a\u219b\u21a0\u21a3\u21a6\u21ae\u21ce\u21cf\u21d2\u21d4\u21f4-\u22ff\u2320\u2321\u237c\u239b-\u23b3\u23dc-\u23e1\u25b7\u25c1\u25f8-\u25ff\u266f\u27c0-\u27c4\u27c7-\u27e5\u27f0-\u27ff\u2900-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2aff\u2b30-\u2b44\u2b47-\u2b4c\ufb29\ufe62\ufe64-\ufe66\uff0b\uff1c-\uff1e\uff5c\uff5e\uffe2\uffe9-\uffec",
astral:"\ud835[\udec1\udedb\udefb\udf15\udf35\udf4f\udf6f\udf89\udfa9\udfc3]|\ud83b[\udef0\udef1]"},{name:"So",alias:"Other_Symbol",bmp:"\u00a6\u00a9\u00ae\u00b0\u0482\u058d\u058e\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u09fa\u0b70\u0bf3-\u0bf8\u0bfa\u0c7f\u0d4f\u0d79\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116\u2117\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u214a\u214c\u214d\u214f\u218a\u218b\u2195-\u2199\u219c-\u219f\u21a1\u21a2\u21a4\u21a5\u21a7-\u21ad\u21af-\u21cd\u21d0\u21d1\u21d3\u21d5-\u21f3\u2300-\u2307\u230c-\u231f\u2322-\u2328\u232b-\u237b\u237d-\u239a\u23b4-\u23db\u23e2-\u23fe\u2400-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u25b6\u25b8-\u25c0\u25c2-\u25f7\u2600-\u266e\u2670-\u2767\u2794-\u27bf\u2800-\u28ff\u2b00-\u2b2f\u2b45\u2b46\u2b4d-\u2b73\u2b76-\u2b95\u2b98-\u2bb9\u2bbd-\u2bc8\u2bca-\u2bd1\u2bec-\u2bef\u2ce5-\u2cea\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u32fe\u3300-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua828-\ua82b\ua836\ua837\ua839\uaa77-\uaa79\ufdfd\uffe4\uffe8\uffed\uffee\ufffc\ufffd",
astral:"\ud800[\udd37-\udd3f\udd79-\udd89\udd8c-\udd8e\udd90-\udd9b\udda0\uddd0-\uddfc]|\ud802[\udc77\udc78\udec8]|\ud805\udf3f|\ud81a[\udf3c-\udf3f\udf45]|\ud82f\udc9c|\ud834[\udc00-\udcf5\udd00-\udd26\udd29-\udd64\udd6a-\udd6c\udd83\udd84\udd8c-\udda9\uddae-\udde8\ude00-\ude41\ude45\udf00-\udf56]|\ud836[\udc00-\uddff\ude37-\ude3a\ude6d-\ude74\ude76-\ude83\ude85\ude86]|\ud83c[\udc00-\udc2b\udc30-\udc93\udca0-\udcae\udcb1-\udcbf\udcc1-\udccf\udcd1-\udcf5\udd10-\udd2e\udd30-\udd6b\udd70-\uddac\udde6-\ude02\ude10-\ude3b\ude40-\ude48\ude50\ude51\udf00-\udffa]|\ud83d[\udc00-\uded2\udee0-\udeec\udef0-\udef6\udf00-\udf73\udf80-\udfd4]|\ud83e[\udc00-\udc0b\udc10-\udc47\udc50-\udc59\udc60-\udc87\udc90-\udcad\udd10-\udd1e\udd20-\udd27\udd30\udd33-\udd3e\udd40-\udd4b\udd50-\udd5e\udd80-\udd91\uddc0]"},
{name:"Z",alias:"Separator",bmp:" \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000"},{name:"Zl",alias:"Line_Separator",bmp:"\u2028"},{name:"Zp",alias:"Paragraph_Separator",bmp:"\u2029"},{name:"Zs",alias:"Space_Separator",bmp:" \u00a0\u1680\u2000-\u200a\u202f\u205f\u3000"}])}},
{}],6:[function(B,D){D.exports=function(f){if(!f.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Properties");var F=[{name:"ASCII",bmp:"\x00-\u007f"},{name:"Alphabetic",bmp:"A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0345\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05b0-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u05d0-\u05ea\u05f0-\u05f2\u0610-\u061a\u0620-\u0657\u0659-\u065f\u066e-\u06d3\u06d5-\u06dc\u06e1-\u06e8\u06ed-\u06ef\u06fa-\u06fc\u06ff\u0710-\u073f\u074d-\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0817\u081a-\u082c\u0840-\u0858\u08a0-\u08b4\u08b6-\u08bd\u08d4-\u08df\u08e3-\u08e9\u08f0-\u093b\u093d-\u094c\u094e-\u0950\u0955-\u0963\u0971-\u0983\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd-\u09c4\u09c7\u09c8\u09cb\u09cc\u09ce\u09d7\u09dc\u09dd\u09df-\u09e3\u09f0\u09f1\u0a01-\u0a03\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a3e-\u0a42\u0a47\u0a48\u0a4b\u0a4c\u0a51\u0a59-\u0a5c\u0a5e\u0a70-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd-\u0ac5\u0ac7-\u0ac9\u0acb\u0acc\u0ad0\u0ae0-\u0ae3\u0af9\u0b01-\u0b03\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d-\u0b44\u0b47\u0b48\u0b4b\u0b4c\u0b56\u0b57\u0b5c\u0b5d\u0b5f-\u0b63\u0b71\u0b82\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd0\u0bd7\u0c00-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4c\u0c55\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccc\u0cd5\u0cd6\u0cde\u0ce0-\u0ce3\u0cf1\u0cf2\u0d01-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d-\u0d44\u0d46-\u0d48\u0d4a-\u0d4c\u0d4e\u0d54-\u0d57\u0d5f-\u0d63\u0d7a-\u0d7f\u0d82\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e01-\u0e3a\u0e40-\u0e46\u0e4d\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb9\u0ebb-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ecd\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f71-\u0f81\u0f88-\u0f97\u0f99-\u0fbc\u1000-\u1036\u1038\u103b-\u103f\u1050-\u1062\u1065-\u1068\u106e-\u1086\u108e\u109c\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135f\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1713\u1720-\u1733\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772\u1773\u1780-\u17b3\u17b6-\u17c8\u17d7\u17dc\u1820-\u1877\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u1938\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a1b\u1a20-\u1a5e\u1a61-\u1a74\u1aa7\u1b00-\u1b33\u1b35-\u1b43\u1b45-\u1b4b\u1b80-\u1ba9\u1bac-\u1baf\u1bba-\u1be5\u1be7-\u1bf1\u1c00-\u1c35\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1d00-\u1dbf\u1de7-\u1df4\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u24b6-\u24e9\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u2e2f\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua674-\ua67b\ua67f-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ae\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua827\ua840-\ua873\ua880-\ua8c3\ua8c5\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua92a\ua930-\ua952\ua960-\ua97c\ua980-\ua9b2\ua9b4-\ua9bf\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa36\uaa40-\uaa4d\uaa60-\uaa76\uaa7a\uaa7e-\uaabe\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf5\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabea\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",
astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf30-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe\uddbf\ude00-\ude03\ude05\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude33\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2]|\ud804[\udc00-\udc45\udc82-\udcb8\udcd0-\udce8\udd00-\udd32\udd50-\udd72\udd76\udd80-\uddbf\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude34\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udee8\udf00-\udf03\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3d-\udf44\udf47\udf48\udf4b\udf4c\udf50\udf57\udf5d-\udf63]|\ud805[\udc00-\udc41\udc43-\udc45\udc47-\udc4a\udc80-\udcc1\udcc4\udcc5\udcc7\udd80-\uddb5\uddb8-\uddbe\uddd8-\udddd\ude00-\ude3e\ude40\ude44\ude80-\udeb5\udf00-\udf19\udf1d-\udf2a]|\ud806[\udca0-\udcdf\udcff\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc3e\udc40\udc72-\udc8f\udc92-\udca7\udca9-\udcb6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|[\ud80c\ud81c-\ud820\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf36\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\udf00-\udf44\udf50-\udf7e\udf93-\udf9f\udfe0]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]|\ud82c[\udc00\udc01]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9e]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd47]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud83c[\udd30-\udd49\udd50-\udd69\udd70-\udd89]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},
{name:"Any",isBmpLast:!0,bmp:"\x00-\uffff",astral:"[\ud800-\udbff][\udc00-\udfff]"},{name:"Default_Ignorable_Code_Point",bmp:"\u00ad\u034f\u061c\u115f\u1160\u17b4\u17b5\u180b-\u180e\u200b-\u200f\u202a-\u202e\u2060-\u206f\u3164\ufe00-\ufe0f\ufeff\uffa0\ufff0-\ufff8",astral:"\ud82f[\udca0-\udca3]|\ud834[\udd73-\udd7a]|[\udb40-\udb43][\udc00-\udfff]"},{name:"Lowercase",bmp:"a-z\u00aa\u00b5\u00ba\u00df-\u00f6\u00f8-\u00ff\u0101\u0103\u0105\u0107\u0109\u010b\u010d\u010f\u0111\u0113\u0115\u0117\u0119\u011b\u011d\u011f\u0121\u0123\u0125\u0127\u0129\u012b\u012d\u012f\u0131\u0133\u0135\u0137\u0138\u013a\u013c\u013e\u0140\u0142\u0144\u0146\u0148\u0149\u014b\u014d\u014f\u0151\u0153\u0155\u0157\u0159\u015b\u015d\u015f\u0161\u0163\u0165\u0167\u0169\u016b\u016d\u016f\u0171\u0173\u0175\u0177\u017a\u017c\u017e-\u0180\u0183\u0185\u0188\u018c\u018d\u0192\u0195\u0199-\u019b\u019e\u01a1\u01a3\u01a5\u01a8\u01aa\u01ab\u01ad\u01b0\u01b4\u01b6\u01b9\u01ba\u01bd-\u01bf\u01c6\u01c9\u01cc\u01ce\u01d0\u01d2\u01d4\u01d6\u01d8\u01da\u01dc\u01dd\u01df\u01e1\u01e3\u01e5\u01e7\u01e9\u01eb\u01ed\u01ef\u01f0\u01f3\u01f5\u01f9\u01fb\u01fd\u01ff\u0201\u0203\u0205\u0207\u0209\u020b\u020d\u020f\u0211\u0213\u0215\u0217\u0219\u021b\u021d\u021f\u0221\u0223\u0225\u0227\u0229\u022b\u022d\u022f\u0231\u0233-\u0239\u023c\u023f\u0240\u0242\u0247\u0249\u024b\u024d\u024f-\u0293\u0295-\u02b8\u02c0\u02c1\u02e0-\u02e4\u0345\u0371\u0373\u0377\u037a-\u037d\u0390\u03ac-\u03ce\u03d0\u03d1\u03d5-\u03d7\u03d9\u03db\u03dd\u03df\u03e1\u03e3\u03e5\u03e7\u03e9\u03eb\u03ed\u03ef-\u03f3\u03f5\u03f8\u03fb\u03fc\u0430-\u045f\u0461\u0463\u0465\u0467\u0469\u046b\u046d\u046f\u0471\u0473\u0475\u0477\u0479\u047b\u047d\u047f\u0481\u048b\u048d\u048f\u0491\u0493\u0495\u0497\u0499\u049b\u049d\u049f\u04a1\u04a3\u04a5\u04a7\u04a9\u04ab\u04ad\u04af\u04b1\u04b3\u04b5\u04b7\u04b9\u04bb\u04bd\u04bf\u04c2\u04c4\u04c6\u04c8\u04ca\u04cc\u04ce\u04cf\u04d1\u04d3\u04d5\u04d7\u04d9\u04db\u04dd\u04df\u04e1\u04e3\u04e5\u04e7\u04e9\u04eb\u04ed\u04ef\u04f1\u04f3\u04f5\u04f7\u04f9\u04fb\u04fd\u04ff\u0501\u0503\u0505\u0507\u0509\u050b\u050d\u050f\u0511\u0513\u0515\u0517\u0519\u051b\u051d\u051f\u0521\u0523\u0525\u0527\u0529\u052b\u052d\u052f\u0561-\u0587\u13f8-\u13fd\u1c80-\u1c88\u1d00-\u1dbf\u1e01\u1e03\u1e05\u1e07\u1e09\u1e0b\u1e0d\u1e0f\u1e11\u1e13\u1e15\u1e17\u1e19\u1e1b\u1e1d\u1e1f\u1e21\u1e23\u1e25\u1e27\u1e29\u1e2b\u1e2d\u1e2f\u1e31\u1e33\u1e35\u1e37\u1e39\u1e3b\u1e3d\u1e3f\u1e41\u1e43\u1e45\u1e47\u1e49\u1e4b\u1e4d\u1e4f\u1e51\u1e53\u1e55\u1e57\u1e59\u1e5b\u1e5d\u1e5f\u1e61\u1e63\u1e65\u1e67\u1e69\u1e6b\u1e6d\u1e6f\u1e71\u1e73\u1e75\u1e77\u1e79\u1e7b\u1e7d\u1e7f\u1e81\u1e83\u1e85\u1e87\u1e89\u1e8b\u1e8d\u1e8f\u1e91\u1e93\u1e95-\u1e9d\u1e9f\u1ea1\u1ea3\u1ea5\u1ea7\u1ea9\u1eab\u1ead\u1eaf\u1eb1\u1eb3\u1eb5\u1eb7\u1eb9\u1ebb\u1ebd\u1ebf\u1ec1\u1ec3\u1ec5\u1ec7\u1ec9\u1ecb\u1ecd\u1ecf\u1ed1\u1ed3\u1ed5\u1ed7\u1ed9\u1edb\u1edd\u1edf\u1ee1\u1ee3\u1ee5\u1ee7\u1ee9\u1eeb\u1eed\u1eef\u1ef1\u1ef3\u1ef5\u1ef7\u1ef9\u1efb\u1efd\u1eff-\u1f07\u1f10-\u1f15\u1f20-\u1f27\u1f30-\u1f37\u1f40-\u1f45\u1f50-\u1f57\u1f60-\u1f67\u1f70-\u1f7d\u1f80-\u1f87\u1f90-\u1f97\u1fa0-\u1fa7\u1fb0-\u1fb4\u1fb6\u1fb7\u1fbe\u1fc2-\u1fc4\u1fc6\u1fc7\u1fd0-\u1fd3\u1fd6\u1fd7\u1fe0-\u1fe7\u1ff2-\u1ff4\u1ff6\u1ff7\u2071\u207f\u2090-\u209c\u210a\u210e\u210f\u2113\u212f\u2134\u2139\u213c\u213d\u2146-\u2149\u214e\u2170-\u217f\u2184\u24d0-\u24e9\u2c30-\u2c5e\u2c61\u2c65\u2c66\u2c68\u2c6a\u2c6c\u2c71\u2c73\u2c74\u2c76-\u2c7d\u2c81\u2c83\u2c85\u2c87\u2c89\u2c8b\u2c8d\u2c8f\u2c91\u2c93\u2c95\u2c97\u2c99\u2c9b\u2c9d\u2c9f\u2ca1\u2ca3\u2ca5\u2ca7\u2ca9\u2cab\u2cad\u2caf\u2cb1\u2cb3\u2cb5\u2cb7\u2cb9\u2cbb\u2cbd\u2cbf\u2cc1\u2cc3\u2cc5\u2cc7\u2cc9\u2ccb\u2ccd\u2ccf\u2cd1\u2cd3\u2cd5\u2cd7\u2cd9\u2cdb\u2cdd\u2cdf\u2ce1\u2ce3\u2ce4\u2cec\u2cee\u2cf3\u2d00-\u2d25\u2d27\u2d2d\ua641\ua643\ua645\ua647\ua649\ua64b\ua64d\ua64f\ua651\ua653\ua655\ua657\ua659\ua65b\ua65d\ua65f\ua661\ua663\ua665\ua667\ua669\ua66b\ua66d\ua681\ua683\ua685\ua687\ua689\ua68b\ua68d\ua68f\ua691\ua693\ua695\ua697\ua699\ua69b-\ua69d\ua723\ua725\ua727\ua729\ua72b\ua72d\ua72f-\ua731\ua733\ua735\ua737\ua739\ua73b\ua73d\ua73f\ua741\ua743\ua745\ua747\ua749\ua74b\ua74d\ua74f\ua751\ua753\ua755\ua757\ua759\ua75b\ua75d\ua75f\ua761\ua763\ua765\ua767\ua769\ua76b\ua76d\ua76f-\ua778\ua77a\ua77c\ua77f\ua781\ua783\ua785\ua787\ua78c\ua78e\ua791\ua793-\ua795\ua797\ua799\ua79b\ua79d\ua79f\ua7a1\ua7a3\ua7a5\ua7a7\ua7a9\ua7b5\ua7b7\ua7f8-\ua7fa\uab30-\uab5a\uab5c-\uab65\uab70-\uabbf\ufb00-\ufb06\ufb13-\ufb17\uff41-\uff5a",
astral:"\ud801[\udc28-\udc4f\udcd8-\udcfb]|\ud803[\udcc0-\udcf2]|\ud806[\udcc0-\udcdf]|\ud835[\udc1a-\udc33\udc4e-\udc54\udc56-\udc67\udc82-\udc9b\udcb6-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udccf\udcea-\udd03\udd1e-\udd37\udd52-\udd6b\udd86-\udd9f\uddba-\uddd3\uddee-\ude07\ude22-\ude3b\ude56-\ude6f\ude8a-\udea5\udec2-\udeda\udedc-\udee1\udefc-\udf14\udf16-\udf1b\udf36-\udf4e\udf50-\udf55\udf70-\udf88\udf8a-\udf8f\udfaa-\udfc2\udfc4-\udfc9\udfcb]|\ud83a[\udd22-\udd43]"},{name:"Noncharacter_Code_Point",
bmp:"\ufdd0-\ufdef\ufffe\uffff",astral:"[\ud83f\ud87f\ud8bf\ud8ff\ud93f\ud97f\ud9bf\ud9ff\uda3f\uda7f\udabf\udaff\udb3f\udb7f\udbbf\udbff][\udffe\udfff]"},{name:"Uppercase",bmp:"A-Z\u00c0-\u00d6\u00d8-\u00de\u0100\u0102\u0104\u0106\u0108\u010a\u010c\u010e\u0110\u0112\u0114\u0116\u0118\u011a\u011c\u011e\u0120\u0122\u0124\u0126\u0128\u012a\u012c\u012e\u0130\u0132\u0134\u0136\u0139\u013b\u013d\u013f\u0141\u0143\u0145\u0147\u014a\u014c\u014e\u0150\u0152\u0154\u0156\u0158\u015a\u015c\u015e\u0160\u0162\u0164\u0166\u0168\u016a\u016c\u016e\u0170\u0172\u0174\u0176\u0178\u0179\u017b\u017d\u0181\u0182\u0184\u0186\u0187\u0189-\u018b\u018e-\u0191\u0193\u0194\u0196-\u0198\u019c\u019d\u019f\u01a0\u01a2\u01a4\u01a6\u01a7\u01a9\u01ac\u01ae\u01af\u01b1-\u01b3\u01b5\u01b7\u01b8\u01bc\u01c4\u01c7\u01ca\u01cd\u01cf\u01d1\u01d3\u01d5\u01d7\u01d9\u01db\u01de\u01e0\u01e2\u01e4\u01e6\u01e8\u01ea\u01ec\u01ee\u01f1\u01f4\u01f6-\u01f8\u01fa\u01fc\u01fe\u0200\u0202\u0204\u0206\u0208\u020a\u020c\u020e\u0210\u0212\u0214\u0216\u0218\u021a\u021c\u021e\u0220\u0222\u0224\u0226\u0228\u022a\u022c\u022e\u0230\u0232\u023a\u023b\u023d\u023e\u0241\u0243-\u0246\u0248\u024a\u024c\u024e\u0370\u0372\u0376\u037f\u0386\u0388-\u038a\u038c\u038e\u038f\u0391-\u03a1\u03a3-\u03ab\u03cf\u03d2-\u03d4\u03d8\u03da\u03dc\u03de\u03e0\u03e2\u03e4\u03e6\u03e8\u03ea\u03ec\u03ee\u03f4\u03f7\u03f9\u03fa\u03fd-\u042f\u0460\u0462\u0464\u0466\u0468\u046a\u046c\u046e\u0470\u0472\u0474\u0476\u0478\u047a\u047c\u047e\u0480\u048a\u048c\u048e\u0490\u0492\u0494\u0496\u0498\u049a\u049c\u049e\u04a0\u04a2\u04a4\u04a6\u04a8\u04aa\u04ac\u04ae\u04b0\u04b2\u04b4\u04b6\u04b8\u04ba\u04bc\u04be\u04c0\u04c1\u04c3\u04c5\u04c7\u04c9\u04cb\u04cd\u04d0\u04d2\u04d4\u04d6\u04d8\u04da\u04dc\u04de\u04e0\u04e2\u04e4\u04e6\u04e8\u04ea\u04ec\u04ee\u04f0\u04f2\u04f4\u04f6\u04f8\u04fa\u04fc\u04fe\u0500\u0502\u0504\u0506\u0508\u050a\u050c\u050e\u0510\u0512\u0514\u0516\u0518\u051a\u051c\u051e\u0520\u0522\u0524\u0526\u0528\u052a\u052c\u052e\u0531-\u0556\u10a0-\u10c5\u10c7\u10cd\u13a0-\u13f5\u1e00\u1e02\u1e04\u1e06\u1e08\u1e0a\u1e0c\u1e0e\u1e10\u1e12\u1e14\u1e16\u1e18\u1e1a\u1e1c\u1e1e\u1e20\u1e22\u1e24\u1e26\u1e28\u1e2a\u1e2c\u1e2e\u1e30\u1e32\u1e34\u1e36\u1e38\u1e3a\u1e3c\u1e3e\u1e40\u1e42\u1e44\u1e46\u1e48\u1e4a\u1e4c\u1e4e\u1e50\u1e52\u1e54\u1e56\u1e58\u1e5a\u1e5c\u1e5e\u1e60\u1e62\u1e64\u1e66\u1e68\u1e6a\u1e6c\u1e6e\u1e70\u1e72\u1e74\u1e76\u1e78\u1e7a\u1e7c\u1e7e\u1e80\u1e82\u1e84\u1e86\u1e88\u1e8a\u1e8c\u1e8e\u1e90\u1e92\u1e94\u1e9e\u1ea0\u1ea2\u1ea4\u1ea6\u1ea8\u1eaa\u1eac\u1eae\u1eb0\u1eb2\u1eb4\u1eb6\u1eb8\u1eba\u1ebc\u1ebe\u1ec0\u1ec2\u1ec4\u1ec6\u1ec8\u1eca\u1ecc\u1ece\u1ed0\u1ed2\u1ed4\u1ed6\u1ed8\u1eda\u1edc\u1ede\u1ee0\u1ee2\u1ee4\u1ee6\u1ee8\u1eea\u1eec\u1eee\u1ef0\u1ef2\u1ef4\u1ef6\u1ef8\u1efa\u1efc\u1efe\u1f08-\u1f0f\u1f18-\u1f1d\u1f28-\u1f2f\u1f38-\u1f3f\u1f48-\u1f4d\u1f59\u1f5b\u1f5d\u1f5f\u1f68-\u1f6f\u1fb8-\u1fbb\u1fc8-\u1fcb\u1fd8-\u1fdb\u1fe8-\u1fec\u1ff8-\u1ffb\u2102\u2107\u210b-\u210d\u2110-\u2112\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u2130-\u2133\u213e\u213f\u2145\u2160-\u216f\u2183\u24b6-\u24cf\u2c00-\u2c2e\u2c60\u2c62-\u2c64\u2c67\u2c69\u2c6b\u2c6d-\u2c70\u2c72\u2c75\u2c7e-\u2c80\u2c82\u2c84\u2c86\u2c88\u2c8a\u2c8c\u2c8e\u2c90\u2c92\u2c94\u2c96\u2c98\u2c9a\u2c9c\u2c9e\u2ca0\u2ca2\u2ca4\u2ca6\u2ca8\u2caa\u2cac\u2cae\u2cb0\u2cb2\u2cb4\u2cb6\u2cb8\u2cba\u2cbc\u2cbe\u2cc0\u2cc2\u2cc4\u2cc6\u2cc8\u2cca\u2ccc\u2cce\u2cd0\u2cd2\u2cd4\u2cd6\u2cd8\u2cda\u2cdc\u2cde\u2ce0\u2ce2\u2ceb\u2ced\u2cf2\ua640\ua642\ua644\ua646\ua648\ua64a\ua64c\ua64e\ua650\ua652\ua654\ua656\ua658\ua65a\ua65c\ua65e\ua660\ua662\ua664\ua666\ua668\ua66a\ua66c\ua680\ua682\ua684\ua686\ua688\ua68a\ua68c\ua68e\ua690\ua692\ua694\ua696\ua698\ua69a\ua722\ua724\ua726\ua728\ua72a\ua72c\ua72e\ua732\ua734\ua736\ua738\ua73a\ua73c\ua73e\ua740\ua742\ua744\ua746\ua748\ua74a\ua74c\ua74e\ua750\ua752\ua754\ua756\ua758\ua75a\ua75c\ua75e\ua760\ua762\ua764\ua766\ua768\ua76a\ua76c\ua76e\ua779\ua77b\ua77d\ua77e\ua780\ua782\ua784\ua786\ua78b\ua78d\ua790\ua792\ua796\ua798\ua79a\ua79c\ua79e\ua7a0\ua7a2\ua7a4\ua7a6\ua7a8\ua7aa-\ua7ae\ua7b0-\ua7b4\ua7b6\uff21-\uff3a",
astral:"\ud801[\udc00-\udc27\udcb0-\udcd3]|\ud803[\udc80-\udcb2]|\ud806[\udca0-\udcbf]|\ud835[\udc00-\udc19\udc34-\udc4d\udc68-\udc81\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb5\udcd0-\udce9\udd04\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd38\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd6c-\udd85\udda0-\uddb9\uddd4-\udded\ude08-\ude21\ude3c-\ude55\ude70-\ude89\udea8-\udec0\udee2-\udefa\udf1c-\udf34\udf56-\udf6e\udf90-\udfa8\udfca]|\ud83a[\udd00-\udd21]|\ud83c[\udd30-\udd49\udd50-\udd69\udd70-\udd89]"},
{name:"White_Space",bmp:"\t-\r \u0085\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000"}];F.push({name:"Assigned",inverseOf:"Cn"});f.addUnicodeData(F)}},
{}],7:[function(B,D){D.exports=function(f){if(!f.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts");f.addUnicodeData([{name:"Adlam",astral:"\ud83a[\udd00-\udd4a\udd50-\udd59\udd5e\udd5f]"},{name:"Ahom",astral:"\ud805[\udf00-\udf19\udf1d-\udf2b\udf30-\udf3f]"},{name:"Anatolian_Hieroglyphs",astral:"\ud811[\udc00-\ude46]"},{name:"Arabic",bmp:"\u0600-\u0604\u0606-\u060b\u060d-\u061a\u061e\u0620-\u063f\u0641-\u064a\u0656-\u066f\u0671-\u06dc\u06de-\u06ff\u0750-\u077f\u08a0-\u08b4\u08b6-\u08bd\u08d4-\u08e1\u08e3-\u08ff\ufb50-\ufbc1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfd\ufe70-\ufe74\ufe76-\ufefc",
astral:"\ud803[\ude60-\ude7e]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb\udef0\udef1]"},{name:"Armenian",bmp:"\u0531-\u0556\u0559-\u055f\u0561-\u0587\u058a\u058d-\u058f\ufb13-\ufb17"},{name:"Avestan",astral:"\ud802[\udf00-\udf35\udf39-\udf3f]"},
{name:"Balinese",bmp:"\u1b00-\u1b4b\u1b50-\u1b7c"},{name:"Bamum",bmp:"\ua6a0-\ua6f7",astral:"\ud81a[\udc00-\ude38]"},{name:"Bassa_Vah",astral:"\ud81a[\uded0-\udeed\udef0-\udef5]"},{name:"Batak",bmp:"\u1bc0-\u1bf3\u1bfc-\u1bff"},{name:"Bengali",bmp:"\u0980-\u0983\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7\u09c8\u09cb-\u09ce\u09d7\u09dc\u09dd\u09df-\u09e3\u09e6-\u09fb"},{name:"Bhaiksuki",astral:"\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc45\udc50-\udc6c]"},
{name:"Bopomofo",bmp:"\u02ea\u02eb\u3105-\u312d\u31a0-\u31ba"},{name:"Brahmi",astral:"\ud804[\udc00-\udc4d\udc52-\udc6f\udc7f]"},{name:"Braille",bmp:"\u2800-\u28ff"},{name:"Buginese",bmp:"\u1a00-\u1a1b\u1a1e\u1a1f"},{name:"Buhid",bmp:"\u1740-\u1753"},{name:"Canadian_Aboriginal",bmp:"\u1400-\u167f\u18b0-\u18f5"},{name:"Carian",astral:"\ud800[\udea0-\uded0]"},{name:"Caucasian_Albanian",astral:"\ud801[\udd30-\udd63\udd6f]"},{name:"Chakma",astral:"\ud804[\udd00-\udd34\udd36-\udd43]"},{name:"Cham",bmp:"\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa5c-\uaa5f"},
{name:"Cherokee",bmp:"\u13a0-\u13f5\u13f8-\u13fd\uab70-\uabbf"},{name:"Common",bmp:"\x00-@\\x5B-`\\x7B-\u00a9\u00ab-\u00b9\u00bb-\u00bf\u00d7\u00f7\u02b9-\u02df\u02e5-\u02e9\u02ec-\u02ff\u0374\u037e\u0385\u0387\u0589\u0605\u060c\u061b\u061c\u061f\u0640\u06dd\u08e2\u0964\u0965\u0e3f\u0fd5-\u0fd8\u10fb\u16eb-\u16ed\u1735\u1736\u1802\u1803\u1805\u1cd3\u1ce1\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u2000-\u200b\u200e-\u2064\u2066-\u2070\u2074-\u207e\u2080-\u208e\u20a0-\u20be\u2100-\u2125\u2127-\u2129\u212c-\u2131\u2133-\u214d\u214f-\u215f\u2189-\u218b\u2190-\u23fe\u2400-\u2426\u2440-\u244a\u2460-\u27ff\u2900-\u2b73\u2b76-\u2b95\u2b98-\u2bb9\u2bbd-\u2bc8\u2bca-\u2bd1\u2bec-\u2bef\u2e00-\u2e44\u2ff0-\u2ffb\u3000-\u3004\u3006\u3008-\u3020\u3030-\u3037\u303c-\u303f\u309b\u309c\u30a0\u30fb\u30fc\u3190-\u319f\u31c0-\u31e3\u3220-\u325f\u327f-\u32cf\u3358-\u33ff\u4dc0-\u4dff\ua700-\ua721\ua788-\ua78a\ua830-\ua839\ua92e\ua9cf\uab5b\ufd3e\ufd3f\ufe10-\ufe19\ufe30-\ufe52\ufe54-\ufe66\ufe68-\ufe6b\ufeff\uff01-\uff20\uff3b-\uff40\uff5b-\uff65\uff70\uff9e\uff9f\uffe0-\uffe6\uffe8-\uffee\ufff9-\ufffd",
astral:"\ud800[\udd00-\udd02\udd07-\udd33\udd37-\udd3f\udd90-\udd9b\uddd0-\uddfc\udee1-\udefb]|\ud82f[\udca0-\udca3]|\ud834[\udc00-\udcf5\udd00-\udd26\udd29-\udd66\udd6a-\udd7a\udd83\udd84\udd8c-\udda9\uddae-\udde8\udf00-\udf56\udf60-\udf71]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udfcb\udfce-\udfff]|\ud83c[\udc00-\udc2b\udc30-\udc93\udca0-\udcae\udcb1-\udcbf\udcc1-\udccf\udcd1-\udcf5\udd00-\udd0c\udd10-\udd2e\udd30-\udd6b\udd70-\uddac\udde6-\uddff\ude01\ude02\ude10-\ude3b\ude40-\ude48\ude50\ude51\udf00-\udfff]|\ud83d[\udc00-\uded2\udee0-\udeec\udef0-\udef6\udf00-\udf73\udf80-\udfd4]|\ud83e[\udc00-\udc0b\udc10-\udc47\udc50-\udc59\udc60-\udc87\udc90-\udcad\udd10-\udd1e\udd20-\udd27\udd30\udd33-\udd3e\udd40-\udd4b\udd50-\udd5e\udd80-\udd91\uddc0]|\udb40[\udc01\udc20-\udc7f]"},
{name:"Coptic",bmp:"\u03e2-\u03ef\u2c80-\u2cf3\u2cf9-\u2cff"},{name:"Cuneiform",astral:"\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc70-\udc74\udc80-\udd43]"},{name:"Cypriot",astral:"\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f]"},{name:"Cyrillic",bmp:"\u0400-\u0484\u0487-\u052f\u1c80-\u1c88\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f"},{name:"Deseret",astral:"\ud801[\udc00-\udc4f]"},{name:"Devanagari",bmp:"\u0900-\u0950\u0953-\u0963\u0966-\u097f\ua8e0-\ua8fd"},{name:"Duployan",
astral:"\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9c-\udc9f]"},{name:"Egyptian_Hieroglyphs",astral:"\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]"},{name:"Elbasan",astral:"\ud801[\udd00-\udd27]"},{name:"Ethiopic",bmp:"\u1200-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u137c\u1380-\u1399\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e"},
{name:"Georgian",bmp:"\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u10ff\u2d00-\u2d25\u2d27\u2d2d"},{name:"Glagolitic",bmp:"\u2c00-\u2c2e\u2c30-\u2c5e",astral:"\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]"},{name:"Gothic",astral:"\ud800[\udf30-\udf4a]"},{name:"Grantha",astral:"\ud804[\udf00-\udf03\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3c-\udf44\udf47\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]"},{name:"Greek",
bmp:"\u0370-\u0373\u0375-\u0377\u037a-\u037d\u037f\u0384\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03e1\u03f0-\u03ff\u1d26-\u1d2a\u1d5d-\u1d61\u1d66-\u1d6a\u1dbf\u1f00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fc4\u1fc6-\u1fd3\u1fd6-\u1fdb\u1fdd-\u1fef\u1ff2-\u1ff4\u1ff6-\u1ffe\u2126\uab65",astral:"\ud800[\udd40-\udd8e\udda0]|\ud834[\ude00-\ude45]"},{name:"Gujarati",bmp:"\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0af1\u0af9"},
{name:"Gurmukhi",bmp:"\u0a01-\u0a03\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75"},{name:"Han",bmp:"\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u3005\u3007\u3021-\u3029\u3038-\u303b\u3400-\u4db5\u4e00-\u9fd5\uf900-\ufa6d\ufa70-\ufad9",astral:"[\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},
{name:"Hangul",bmp:"\u1100-\u11ff\u302e\u302f\u3131-\u318e\u3200-\u321e\u3260-\u327e\ua960-\ua97c\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uffa0-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc"},{name:"Hanunoo",bmp:"\u1720-\u1734"},{name:"Hatran",astral:"\ud802[\udce0-\udcf2\udcf4\udcf5\udcfb-\udcff]"},{name:"Hebrew",bmp:"\u0591-\u05c7\u05d0-\u05ea\u05f0-\u05f4\ufb1d-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufb4f"},{name:"Hiragana",bmp:"\u3041-\u3096\u309d-\u309f",astral:"\ud82c\udc01|\ud83c\ude00"},
{name:"Imperial_Aramaic",astral:"\ud802[\udc40-\udc55\udc57-\udc5f]"},{name:"Inherited",bmp:"\u0300-\u036f\u0485\u0486\u064b-\u0655\u0670\u0951\u0952\u1ab0-\u1abe\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfb-\u1dff\u200c\u200d\u20d0-\u20f0\u302a-\u302d\u3099\u309a\ufe00-\ufe0f\ufe20-\ufe2d",astral:"\ud800[\uddfd\udee0]|\ud834[\udd67-\udd69\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad]|\udb40[\udd00-\uddef]"},{name:"Inscriptional_Pahlavi",astral:"\ud802[\udf60-\udf72\udf78-\udf7f]"},
{name:"Inscriptional_Parthian",astral:"\ud802[\udf40-\udf55\udf58-\udf5f]"},{name:"Javanese",bmp:"\ua980-\ua9cd\ua9d0-\ua9d9\ua9de\ua9df"},{name:"Kaithi",astral:"\ud804[\udc80-\udcc1]"},{name:"Kannada",bmp:"\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1\u0cf2"},{name:"Katakana",bmp:"\u30a1-\u30fa\u30fd-\u30ff\u31f0-\u31ff\u32d0-\u32fe\u3300-\u3357\uff66-\uff6f\uff71-\uff9d",astral:"\ud82c\udc00"},
{name:"Kayah_Li",bmp:"\ua900-\ua92d\ua92f"},{name:"Kharoshthi",astral:"\ud802[\ude00-\ude03\ude05\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude33\ude38-\ude3a\ude3f-\ude47\ude50-\ude58]"},{name:"Khmer",bmp:"\u1780-\u17dd\u17e0-\u17e9\u17f0-\u17f9\u19e0-\u19ff"},{name:"Khojki",astral:"\ud804[\ude00-\ude11\ude13-\ude3e]"},{name:"Khudawadi",astral:"\ud804[\udeb0-\udeea\udef0-\udef9]"},{name:"Lao",bmp:"\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb9\u0ebb-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf"},
{name:"Latin",bmp:"A-Za-z\u00aa\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u02e0-\u02e4\u1d00-\u1d25\u1d2c-\u1d5c\u1d62-\u1d65\u1d6b-\u1d77\u1d79-\u1dbe\u1e00-\u1eff\u2071\u207f\u2090-\u209c\u212a\u212b\u2132\u214e\u2160-\u2188\u2c60-\u2c7f\ua722-\ua787\ua78b-\ua7ae\ua7b0-\ua7b7\ua7f7-\ua7ff\uab30-\uab5a\uab5c-\uab64\ufb00-\ufb06\uff21-\uff3a\uff41-\uff5a"},{name:"Lepcha",bmp:"\u1c00-\u1c37\u1c3b-\u1c49\u1c4d-\u1c4f"},{name:"Limbu",bmp:"\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1940\u1944-\u194f"},
{name:"Linear_A",astral:"\ud801[\ude00-\udf36\udf40-\udf55\udf60-\udf67]"},{name:"Linear_B",astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa]"},{name:"Lisu",bmp:"\ua4d0-\ua4ff"},{name:"Lycian",astral:"\ud800[\ude80-\ude9c]"},{name:"Lydian",astral:"\ud802[\udd20-\udd39\udd3f]"},{name:"Mahajani",astral:"\ud804[\udd50-\udd76]"},{name:"Malayalam",bmp:"\u0d01-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d-\u0d44\u0d46-\u0d48\u0d4a-\u0d4f\u0d54-\u0d63\u0d66-\u0d7f"},
{name:"Mandaic",bmp:"\u0840-\u085b\u085e"},{name:"Manichaean",astral:"\ud802[\udec0-\udee6\udeeb-\udef6]"},{name:"Marchen",astral:"\ud807[\udc70-\udc8f\udc92-\udca7\udca9-\udcb6]"},{name:"Meetei_Mayek",bmp:"\uaae0-\uaaf6\uabc0-\uabed\uabf0-\uabf9"},{name:"Mende_Kikakui",astral:"\ud83a[\udc00-\udcc4\udcc7-\udcd6]"},{name:"Meroitic_Cursive",astral:"\ud802[\udda0-\uddb7\uddbc-\uddcf\uddd2-\uddff]"},{name:"Meroitic_Hieroglyphs",astral:"\ud802[\udd80-\udd9f]"},{name:"Miao",astral:"\ud81b[\udf00-\udf44\udf50-\udf7e\udf8f-\udf9f]"},
{name:"Modi",astral:"\ud805[\ude00-\ude44\ude50-\ude59]"},{name:"Mongolian",bmp:"\u1800\u1801\u1804\u1806-\u180e\u1810-\u1819\u1820-\u1877\u1880-\u18aa",astral:"\ud805[\ude60-\ude6c]"},{name:"Mro",astral:"\ud81a[\ude40-\ude5e\ude60-\ude69\ude6e\ude6f]"},{name:"Multani",astral:"\ud804[\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea9]"},{name:"Myanmar",bmp:"\u1000-\u109f\ua9e0-\ua9fe\uaa60-\uaa7f"},{name:"Nabataean",astral:"\ud802[\udc80-\udc9e\udca7-\udcaf]"},{name:"New_Tai_Lue",bmp:"\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u19de\u19df"},
{name:"Newa",astral:"\ud805[\udc00-\udc59\udc5b\udc5d]"},{name:"Nko",bmp:"\u07c0-\u07fa"},{name:"Ogham",bmp:"\u1680-\u169c"},{name:"Ol_Chiki",bmp:"\u1c50-\u1c7f"},{name:"Old_Hungarian",astral:"\ud803[\udc80-\udcb2\udcc0-\udcf2\udcfa-\udcff]"},{name:"Old_Italic",astral:"\ud800[\udf00-\udf23]"},{name:"Old_North_Arabian",astral:"\ud802[\ude80-\ude9f]"},{name:"Old_Permic",astral:"\ud800[\udf50-\udf7a]"},{name:"Old_Persian",astral:"\ud800[\udfa0-\udfc3\udfc8-\udfd5]"},{name:"Old_South_Arabian",astral:"\ud802[\ude60-\ude7f]"},
{name:"Old_Turkic",astral:"\ud803[\udc00-\udc48]"},{name:"Oriya",bmp:"\u0b01-\u0b03\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b5c\u0b5d\u0b5f-\u0b63\u0b66-\u0b77"},{name:"Osage",astral:"\ud801[\udcb0-\udcd3\udcd8-\udcfb]"},{name:"Osmanya",astral:"\ud801[\udc80-\udc9d\udca0-\udca9]"},{name:"Pahawh_Hmong",astral:"\ud81a[\udf00-\udf45\udf50-\udf59\udf5b-\udf61\udf63-\udf77\udf7d-\udf8f]"},{name:"Palmyrene",astral:"\ud802[\udc60-\udc7f]"},
{name:"Pau_Cin_Hau",astral:"\ud806[\udec0-\udef8]"},{name:"Phags_Pa",bmp:"\ua840-\ua877"},{name:"Phoenician",astral:"\ud802[\udd00-\udd1b\udd1f]"},{name:"Psalter_Pahlavi",astral:"\ud802[\udf80-\udf91\udf99-\udf9c\udfa9-\udfaf]"},{name:"Rejang",bmp:"\ua930-\ua953\ua95f"},{name:"Runic",bmp:"\u16a0-\u16ea\u16ee-\u16f8"},{name:"Samaritan",bmp:"\u0800-\u082d\u0830-\u083e"},{name:"Saurashtra",bmp:"\ua880-\ua8c5\ua8ce-\ua8d9"},{name:"Sharada",astral:"\ud804[\udd80-\uddcd\uddd0-\udddf]"},{name:"Shavian",
astral:"\ud801[\udc50-\udc7f]"},{name:"Siddham",astral:"\ud805[\udd80-\uddb5\uddb8-\udddd]"},{name:"SignWriting",astral:"\ud836[\udc00-\ude8b\ude9b-\ude9f\udea1-\udeaf]"},{name:"Sinhala",bmp:"\u0d82\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df4",astral:"\ud804[\udde1-\uddf4]"},{name:"Sora_Sompeng",astral:"\ud804[\udcd0-\udce8\udcf0-\udcf9]"},{name:"Sundanese",bmp:"\u1b80-\u1bbf\u1cc0-\u1cc7"},{name:"Syloti_Nagri",bmp:"\ua800-\ua82b"},
{name:"Syriac",bmp:"\u0700-\u070d\u070f-\u074a\u074d-\u074f"},{name:"Tagalog",bmp:"\u1700-\u170c\u170e-\u1714"},{name:"Tagbanwa",bmp:"\u1760-\u176c\u176e-\u1770\u1772\u1773"},{name:"Tai_Le",bmp:"\u1950-\u196d\u1970-\u1974"},{name:"Tai_Tham",bmp:"\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa0-\u1aad"},{name:"Tai_Viet",bmp:"\uaa80-\uaac2\uaadb-\uaadf"},{name:"Takri",astral:"\ud805[\ude80-\udeb7\udec0-\udec9]"},{name:"Tamil",bmp:"\u0b82\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bfa"},
{name:"Tangut",astral:"\ud81b\udfe0|[\ud81c-\ud820][\udc00-\udfff]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]"},{name:"Telugu",bmp:"\u0c00-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c66-\u0c6f\u0c78-\u0c7f"},{name:"Thaana",bmp:"\u0780-\u07b1"},{name:"Thai",bmp:"\u0e01-\u0e3a\u0e40-\u0e5b"},{name:"Tibetan",bmp:"\u0f00-\u0f47\u0f49-\u0f6c\u0f71-\u0f97\u0f99-\u0fbc\u0fbe-\u0fcc\u0fce-\u0fd4\u0fd9\u0fda"},
{name:"Tifinagh",bmp:"\u2d30-\u2d67\u2d6f\u2d70\u2d7f"},{name:"Tirhuta",astral:"\ud805[\udc80-\udcc7\udcd0-\udcd9]"},{name:"Ugaritic",astral:"\ud800[\udf80-\udf9d\udf9f]"},{name:"Vai",bmp:"\ua500-\ua62b"},{name:"Warang_Citi",astral:"\ud806[\udca0-\udcf2\udcff]"},{name:"Yi",bmp:"\ua000-\ua48c\ua490-\ua4c6"}])}},
{}],8:[function(B,D){var f=B("./xregexp");B("./addons/build")(f);B("./addons/matchrecursive")(f);B("./addons/unicode-base")(f);B("./addons/unicode-blocks")(f);B("./addons/unicode-categories")(f);B("./addons/unicode-properties")(f);B("./addons/unicode-scripts")(f);D.exports=f},
{"./addons/build":1,"./addons/matchrecursive":2,"./addons/unicode-base":3,"./addons/unicode-blocks":4,"./addons/unicode-categories":5,"./addons/unicode-properties":6,"./addons/unicode-scripts":7,"./xregexp":9}],9:[function(B,D){function f(a){var b=!0;try{b=!!RegExp("",a)}catch(c){b=!1}return b}
function F(a,b,c,d,n){var r;a.xregexp={captureNames:b};if(n)return a;if(a.__proto__)a.__proto__=e.prototype;else for(r in e.prototype)a[r]=e.prototype[r];a.xregexp.source=c;a.xregexp.flags=d?d.split("").sort().join(""):d;return a}
function t(a){return y.replace.call(a,/([\s\S])(?=[\s\S]*\1)/g,"")}
function G(a,b){if(!e.isRegExp(a))throw new TypeError("Type RegExp expected");var c=a.xregexp||{},d=O?a.flags:y.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(a))[1],n="",r="",k=null,q=null;b=b||{};b.removeG&&(r+="g");b.removeY&&(r+="y");r&&(d=y.replace.call(d,new RegExp("["+r+"]+","g"),""));b.addG&&(n+="g");b.addY&&(n+="y");n&&(d=t(d+n));b.isInternalOnly||(c.source!==void 0&&(k=c.source),c.flags!=null&&(q=n?t(c.flags+n):c.flags));return a=F(new RegExp(b.source||a.source,d),a.xregexp&&a.xregexp.captureNames?
c.captureNames.slice(0):null,k,q,b.isInternalOnly)}
function u(a){return parseInt(a,16)}
function h(a,b,c){(b=a.input.charAt(a.index-1)==="("||a.input.charAt(a.index+a[0].length)===")")||(c=c.indexOf("x")>-1?["\\s","#[^#\\n]*","\\(\\?#[^)]*\\)"]:["\\(\\?#[^)]*\\)"],b=y.test.call(new RegExp("^(?:"+c.join("|")+")*(?:[?*+]|{\\d+(?:,\\d*)?})"),a.input.slice(a.index+a[0].length)));return b?"":"(?:)"}
function m(a){return parseInt(a,10).toString(16)}
function A(a,b){var c=a.length,d;for(d=0;d<c;++d)if(a[d]===b)return d;return-1}
function p(a,b){return S.call(a)==="[object "+b+"]"}
function l(a){for(;a.length<4;)a="0"+a;return a}
function g(a,b){var c;if(t(b)!==b)throw new SyntaxError("Invalid duplicate regex flag "+b);a=y.replace.call(a,/^\(\?([\w$]+)\)/,function(d,n){if(y.test.call(/[gy]/,n))throw new SyntaxError("Cannot use flag g or y in mode modifier "+d);b=t(b+n);return""});
for(c=0;c<b.length;++c)if(!Z[b.charAt(c)])throw new SyntaxError("Unknown regex flag "+b.charAt(c));return{pattern:a,flags:b}}
function v(a){var b={};return p(a,"String")?(e.forEach(a,/[^\s,]+/,function(c){b[c]=!0}),b):a}
function w(a){if(!/^[\w$]$/.test(a))throw Error("Flag must be a single character A-Za-z0-9_$");Z[a]=!0}
function x(a){if(a==null)throw new TypeError("Cannot convert null or undefined to object");return a}
function e(a,b){if(e.isRegExp(a)){if(b!==void 0)throw new TypeError("Cannot supply flags when copying a RegExp");return G(a)}a=a===void 0?"":String(a);b=b===void 0?"":String(b);e.isInstalled("astral")&&b.indexOf("A")===-1&&(b+="A");M[a]||(M[a]={});if(!M[a][b]){var c={hasNamedCapture:!1,captureNames:[]},d="default",n="",r=0,k=g(a,b),q=k.pattern;for(k=k.flags;r<q.length;){do{for(var J,E=q,U=k,V=r,W=d,X=c,R=P.length,ba=E.charAt(V),aa=null;R--;){var C=P[R];if(!(C.leadChar&&C.leadChar!==ba||C.scope!==
W&&C.scope!=="all"||C.flag&&U.indexOf(C.flag)===-1)&&(J=e.exec(E,C.regex,V,"sticky"))){aa={matchLength:J[0].length,output:C.handler.call(X,J,W,U),reparse:C.reparse};break}}(C=aa)&&C.reparse&&(q=q.slice(0,r)+C.output+q.slice(r+C.matchLength))}while(C&&C.reparse);C?(n+=C.output,r+=C.matchLength||1):(C=e.exec(q,Q[d],r,"sticky")[0],n+=C,r+=C.length,C==="["&&d==="default"?d="class":C==="]"&&d==="class"&&(d="default"))}M[a][b]={pattern:y.replace.call(n,/(?:\(\?:\))+/g,"(?:)"),flags:y.replace.call(k,/[^gimuy]+/g,
""),captures:c.hasNamedCapture?c.captureNames:null}}c=M[a][b];return F(new RegExp(c.pattern,c.flags),c.captures,a,b)}
var H={astral:!1,natives:!1},y={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},z={},I={},M={},P=[],Q={"default":/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,"class":/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},K=/\$(?:{([\w$]+)}|(\d\d?|[\s\S]))/g,
L=y.exec.call(/()??/,"")[1]===void 0,O=/x/.flags!==void 0,S={}.toString,T=f("u"),N=f("y"),Z={g:!0,i:!0,m:!0,u:T,y:N};e.prototype=RegExp();e.version="3.2.0";e._clipDuplicates=t;e._hasNativeFlag=f;e._dec=u;e._hex=m;e._pad4=l;e.addToken=function(a,b,c){c=c||{};var d=c.optionalFlags,n;c.flag&&w(c.flag);if(d)for(d=y.split.call(d,""),n=0;n<d.length;++n)w(d[n]);P.push({regex:G(a,{addG:!0,addY:N,isInternalOnly:!0}),handler:b,scope:c.scope||"default",flag:c.flag,reparse:c.reparse,leadChar:c.leadChar});e.cache.flush("patterns")};
e.cache=function(a,b){I[a]||(I[a]={});return I[a][b]||(I[a][b]=e(a,b))};
e.cache.flush=function(a){a==="patterns"?M={}:I={}};
e.escape=function(a){return y.replace.call(x(a),/[-\[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};
e.exec=function(a,b,c,d){var n="g",r,k=!1;(r=N&&!!(d||b.sticky&&d!==!1))?n+="y":d&&(k=!0,n+="FakeY");b.xregexp=b.xregexp||{};d=b.xregexp[n]||(b.xregexp[n]=G(b,{addG:!0,addY:r,source:k?b.source+"|()":void 0,removeY:d===!1,isInternalOnly:!0}));c=c||0;d.lastIndex=c;a=z.exec.call(d,a);k&&a&&a.pop()===""&&(a=null);b.global&&(b.lastIndex=a?d.lastIndex:0);return a};
e.forEach=function(a,b,c){for(var d=0,n=-1;d=e.exec(a,b,d);)c(d,++n,a,b),d=d.index+(d[0].length||1)};
e.install=function(a){a=v(a);!H.astral&&a.astral&&(H.astral=!0);!H.natives&&a.natives&&(RegExp.prototype.exec=z.exec,RegExp.prototype.test=z.test,String.prototype.match=z.match,String.prototype.replace=z.replace,String.prototype.split=z.split,H.natives=!0)};
e.isInstalled=function(a){return!!H[a]};
e.isRegExp=function(a){return S.call(a)==="[object RegExp]"};
e.match=function(a,b,c){var d=b.global&&c!=="one"||c==="all",n=(d?"g":"")+(b.sticky?"y":"")||"noGY";b.xregexp=b.xregexp||{};n=b.xregexp[n]||(b.xregexp[n]=G(b,{addG:!!d,removeG:c==="one",isInternalOnly:!0}));a=y.match.call(x(a),n);b.global&&(b.lastIndex=c==="one"&&a?a.index+a[0].length:0);return d?a||[]:a&&a[0]};
e.replace=function(a,b,c,d){var n=e.isRegExp(b),r=b.global&&d!=="one"||d==="all",k=(r?"g":"")+(b.sticky?"y":"")||"noGY",q=b;n?(b.xregexp=b.xregexp||{},q=b.xregexp[k]||(b.xregexp[k]=G(b,{addG:!!r,removeG:d==="one",isInternalOnly:!0}))):r&&(q=new RegExp(e.escape(String(b)),"g"));a=z.replace.call(x(a),q,c);n&&b.global&&(b.lastIndex=0);return a};
e.split=function(a,b,c){return z.split.call(x(a),b,c)};
e.test=function(a,b,c,d){return!!e.exec(a,b,c,d)};
e.union=function(a,b,c){function d(V,W,X){var R=U[r-E];if(W){if(++r,R)return"(?<"+R+">"}else if(X)return"\\"+(+X+E);return V}
c=c||{};var n=c.conjunction||"or",r=0;if(!p(a,"Array")||!a.length)throw new TypeError("Must provide a nonempty array of patterns to merge");var k=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g;c=[];for(var q,J=0;J<a.length;++J)if(q=a[J],e.isRegExp(q)){var E=r;var U=q.xregexp&&q.xregexp.captureNames||[];c.push(y.replace.call(e(q.source).source,k,d))}else c.push(e.escape(q));a=n==="none"?"":"|";return e(c.join(a),b)};
z.exec=function(a){var b=this.lastIndex,c=y.exec.apply(this,arguments),d;if(c){if(!L&&c.length>1&&A(c,"")>-1){var n=G(this,{removeG:!0,isInternalOnly:!0});y.replace.call(String(a).slice(c.index),n,function(){var r=arguments.length,k;for(k=1;k<r-2;++k)arguments[k]===void 0&&(c[k]=void 0)})}if(this.xregexp&&this.xregexp.captureNames)for(d=1;d<c.length;++d)(n=this.xregexp.captureNames[d-1])&&(c[n]=c[d]);
this.global&&!c[0].length&&this.lastIndex>c.index&&(this.lastIndex=c.index)}this.global||(this.lastIndex=b);return c};
z.test=function(a){return!!z.exec.call(this,a)};
z.match=function(a){if(!e.isRegExp(a))a=new RegExp(a);else if(a.global){var b=y.match.apply(this,arguments);a.lastIndex=0;return b}return z.exec.call(a,x(this))};
z.replace=function(a,b){var c=e.isRegExp(a);if(c){if(a.xregexp)var d=a.xregexp.captureNames;var n=a.lastIndex}else a+="";var r=p(b,"Function")?y.replace.call(String(this),a,function(){var k=arguments,q;if(d)for(k[0]=new String(k[0]),q=0;q<d.length;++q)d[q]&&(k[0][d[q]]=k[q+1]);c&&a.global&&(a.lastIndex=k[k.length-2]+k[0].length);return b.apply(void 0,k)}):y.replace.call(this==null?this:String(this),a,function(){var k=arguments;
return y.replace.call(String(b),K,function(q,J,E){if(J){E=+J;if(E<=k.length-3)return k[E]||"";E=d?A(d,J):-1;if(E<0)throw new SyntaxError("Backreference to undefined group "+q);return k[E+1]||""}if(E==="$")return"$";if(E==="&"||+E===0)return k[0];if(E==="`")return k[k.length-1].slice(0,k[k.length-2]);if(E==="'")return k[k.length-1].slice(k[k.length-2]+k[0].length);E=+E;if(!isNaN(E)){if(E>k.length-3)throw new SyntaxError("Backreference to undefined group "+q);return k[E]||""}throw new SyntaxError("Invalid token "+
q);})});
c&&(a.lastIndex=a.global?0:n);return r};
z.split=function(a,b){if(!e.isRegExp(a))return y.split.apply(this,arguments);var c=String(this),d=[],n=a.lastIndex,r=0,k;b=(b===void 0?-1:b)>>>0;e.forEach(c,a,function(q){q.index+q[0].length>r&&(d.push(c.slice(r,q.index)),q.length>1&&q.index<c.length&&Array.prototype.push.apply(d,q.slice(1)),k=q[0].length,r=q.index+k)});
r===c.length?(!y.test.call(a,"")||k)&&d.push(""):d.push(c.slice(r));a.lastIndex=n;return d.length>b?d.slice(0,b):d};
e.addToken(/\\([ABCE-RTUVXYZaeg-mopqyz]|c(?![A-Za-z])|u(?![\dA-Fa-f]{4}|{[\dA-Fa-f]+})|x(?![\dA-Fa-f]{2}))/,function(a,b){if(a[1]==="B"&&b==="default")return a[0];throw new SyntaxError("Invalid escape "+a[0]);},{scope:"all",
leadChar:"\\"});e.addToken(/\\u{([\dA-Fa-f]+)}/,function(a,b,c){b=u(a[1]);if(b>1114111)throw new SyntaxError("Invalid Unicode code point "+a[0]);if(b<=65535)return"\\u"+l(m(b));if(T&&c.indexOf("u")>-1)return a[0];throw new SyntaxError("Cannot use Unicode code point above \\u{FFFF} without flag u");},{scope:"all",
leadChar:"\\"});e.addToken(/\[(\^?)\]/,function(a){return a[1]?"[\\s\\S]":"\\b\\B"},{leadChar:"["});
e.addToken(/\(\?#[^)]*\)/,h,{leadChar:"("});e.addToken(/\s+|#[^\n]*\n?/,h,{flag:"x"});e.addToken(/\./,function(){return"[\\s\\S]"},{flag:"s",
leadChar:"."});e.addToken(/\\k<([\w$]+)>/,function(a){var b=isNaN(a[1])?A(this.captureNames,a[1])+1:+a[1],c=a.index+a[0].length;if(!b||b>this.captureNames.length)throw new SyntaxError("Backreference to undefined group "+a[0]);return"\\"+b+(c===a.input.length||isNaN(a.input.charAt(c))?"":"(?:)")},{leadChar:"\\"});
e.addToken(/\\(\d+)/,function(a,b){if(!(b==="default"&&/^[1-9]/.test(a[1])&&+a[1]<=this.captureNames.length)&&a[1]!=="0")throw new SyntaxError("Cannot use octal escape or backreference to undefined group "+a[0]);return a[0]},{scope:"all",
leadChar:"\\"});e.addToken(/\(\?P?<([\w$]+)>/,function(a){if(!isNaN(a[1]))throw new SyntaxError("Cannot use integer as capture name "+a[0]);if(a[1]==="length"||a[1]==="__proto__")throw new SyntaxError("Cannot use reserved word as capture name "+a[0]);if(A(this.captureNames,a[1])>-1)throw new SyntaxError("Cannot use same name for multiple groups "+a[0]);this.captureNames.push(a[1]);this.hasNamedCapture=!0;return"("},{leadChar:"("});
e.addToken(/\((?!\?)/,function(a,b,c){if(c.indexOf("n")>-1)return"(?:";this.captureNames.push(null);return"("},{optionalFlags:"n",
leadChar:"("});D.exports=e},
{}]},{},[8])(8)})}).call(globalThis);var zvb=window.XRegExp;var Avb=-1,Bvb=function(a){addEventListener("pageshow",function(b){b.persisted&&(Avb=b.timeStamp,a(b))},!0)};var Dvb=function(a,b,c){var d=Cvb,e,g;return function(k){b.value>=0&&(k||c)&&((g=b.value-(e||0))||e===void 0)&&(e=b.value,b.delta=g,k=b.value,b.rating=k>d[1]?"poor":k>d[0]?"needs-improvement":"good",a(b))}};var WD=-1,Evb=function(a){document.visibilityState==="hidden"&&WD>-1&&(WD=a.type==="visibilitychange"?a.timeStamp:0,removeEventListener("visibilitychange",Evb,!0),removeEventListener("prerenderingchange",Evb,!0))},Fvb=function(){addEventListener("visibilitychange",Evb,!0);
addEventListener("prerenderingchange",Evb,!0)},Gvb=function(){WD<0&&(WD=document.visibilityState!=="hidden"||document.prerendering?Infinity:0,Fvb(),Bvb(function(){setTimeout(function(){WD=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
Fvb()},0)}));
return{get firstHiddenTime(){return WD}}};var Hvb=function(){var a=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(a&&a.responseStart>0&&a.responseStart<performance.now())return a};var Ivb=function(){var a=Hvb();return a&&a.activationStart||0};var Jvb=function(){var a=Hvb(),b="navigate";Avb>=0?b="back-forward-cache":a&&(document.prerendering||Ivb()>0?b="prerender":document.wasDiscarded?b="restore":a.type&&(b=a.type.replace(/_/g,"-")));return{name:"LCP",value:-1,rating:"good",delta:0,entries:[],id:"v4-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:b}};var Kvb=function(a){try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var b=new PerformanceObserver(function(c){Promise.resolve().then(function(){a(c.getEntries())})});
b.observe(Object.assign({type:"largest-contentful-paint",buffered:!0},{}));return b}}catch(c){}};var Lvb=function(a){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a()})};var Mvb=function(a){var b=!1;return function(){b||(a(),b=!0)}};var Nvb=function(a){document.prerendering?addEventListener("prerenderingchange",function(){return a()},!0):a()};var Ovb=function(a){requestAnimationFrame(function(){return requestAnimationFrame(function(){return a()})})};var Cvb=[2500,4E3],Pvb={},N6a=function(a){var b=b||{};Nvb(function(){var c=Gvb(),d=Jvb(),e=function(n){b.reportAllChanges||(n=n.slice(-1));n.forEach(function(r){r.startTime<c.firstHiddenTime&&(d.value=Math.max(r.startTime-Ivb(),0),d.entries=[r],k())})},g=Kvb(e);
if(g){var k=Dvb(a,d,b.reportAllChanges);var m=Mvb(function(){Pvb[d.id]||(e(g.takeRecords()),g.disconnect(),Pvb[d.id]=!0,k(!0))});
["keydown","click"].forEach(function(n){addEventListener(n,function(){var r=m,t=self.requestIdleCallback||self.setTimeout,u=-1;r=Mvb(r);document.visibilityState==="hidden"?r():(u=t(r),Lvb(r));return u},!0)});
Lvb(m);Bvb(function(n){d=Jvb();k=Dvb(a,d,b.reportAllChanges);Ovb(function(){d.value=performance.now()-n.timeStamp;Pvb[d.id]=!0;k(!0)})})}})};var Qvb;var Rvb;_.Y=function(){return Rvb!==void 0?Rvb:Rvb=document.createElement("template")};
document.head.appendChild(_.Y().content);var Svb;_.sr({_template:function(){if(Svb!==void 0)return Svb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-toolbar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_toolbar.tp.yt.app.toolbar.css.js--\x3e<slot class="style-scope tp-yt-app-toolbar"></slot>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
var b=a.content,c=b.insertBefore;Qvb===void 0&&(Qvb=document.createElement("template"));var d=Qvb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Svb=a},
is:"tp-yt-app-toolbar"});var Tvb;var Uvb;_.XD=function(){};
_.XD=_.sr({_template:function(){if(Uvb!==void 0)return Uvb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-a11y-announcer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_a11y_announcer.tp.yt.iron.a11y.announcer.css.js--\x3e<div aria-live$="[[mode]]" class="style-scope tp-yt-iron-a11y-announcer">[[_text]]</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Tvb===void 0&&(Tvb=document.createElement("template"));var d=Tvb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Uvb=a},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.XD.instance||(_.XD.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(a){this._text===a&&(a+="\u00a0");this._text="";this.async(function(){this._text=a},this.timeout)},
_onIronAnnounce:function(a){a.detail&&a.detail.text&&this.announce(a.detail.text)}});
_.XD.instance=null;_.XD.requestAvailability=function(){_.XD.instance||(_.XD.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.XD.instance):document.addEventListener("load",function(){document.body.appendChild(_.XD.instance)})};var Vvb;var Wvb;/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
_.sr({_template:function(){if(Wvb!==void 0)return Wvb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-autogrow-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_autogrow_textarea.tp.yt.iron.autogrow.textarea.css.js--\x3e\n\n<div id="mirror" class="mirror-text style-scope tp-yt-iron-autogrow-textarea" aria-hidden="true" style-target="textarea">\u00a0</div>\n\n\n<div class="textarea-container fit style-scope tp-yt-iron-autogrow-textarea">\n  <textarea id="textarea" name$="[[name]]" aria-label$="[[label]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" autocapitalize$="[[autocapitalize]]" inputmode$="[[inputmode]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" disabled$="[[disabled]]" rows$="[[rows]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" style-target="textarea" class="style-scope tp-yt-iron-autogrow-textarea"></textarea>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Vvb===void 0&&(Vvb=document.createElement("template"));var d=Vvb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Wvb=a},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.MD,_.GD],properties:{value:{observer:"_valueChanged",type:String,notify:!0},bindValue:{observer:"_bindValueChanged",type:String,notify:!0},rows:{type:Number,value:1,observer:"_updateCached"},maxRows:{type:Number,value:0,observer:"_updateCached"},autocomplete:{type:String,value:"off"},autofocus:{type:Boolean,value:!1},autocapitalize:{type:String,value:"none"},inputmode:{type:String},placeholder:{type:String},readonly:{type:String},required:{type:Boolean},
minlength:{type:Number},maxlength:{type:Number},label:{type:String}},listeners:{input:"_onInput"},get textarea(){return this.$.textarea},get selectionStart(){return this.$.textarea.selectionStart},get selectionEnd(){return this.$.textarea.selectionEnd},set selectionStart(a){this.$.textarea.selectionStart=a},set selectionEnd(a){this.$.textarea.selectionEnd=a},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var a=this.$.textarea.validity.valid;a&&(this.required&&this.value===""?a=!1:this.hasValidator()&&(a=_.MD.validate.call(this,this.value)));this.invalid=!a;this.fire("iron-input-validate");return a},
_bindValueChanged:function(a){this.value=a},
_valueChanged:function(a){var b=this.textarea;b&&(b.value!==a&&(b.value=a||a===0?a:""),this.bindValue=a,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(a){var b=_.wn(a).path;this.value=b?b[0].value:a.target.value},
_constrain:function(a){var b;a=a||[""];for(b=this.maxRows>0&&a.length>this.maxRows?a.slice(0,this.maxRows):a.slice(0);this.rows>0&&b.length<this.rows;)b.push("");return b.join("\n")+"\u00a0"},
_valueForMirror:function(){var a=this.textarea;if(a)return this.tokens=a&&a.value?a.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var Xvb;var Yvb;_.sr({_template:function(){if(Yvb!==void 0)return Yvb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-collapse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_collapse.tp.yt.iron.collapse.css.js--\x3e<slot class="style-scope tp-yt-iron-collapse"></slot>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
var b=a.content,c=b.insertBefore;Xvb===void 0&&(Xvb=document.createElement("template"));var d=Xvb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Yvb=a},
is:"tp-yt-iron-collapse",behaviors:[_.OD],properties:{horizontal:{type:Boolean,value:!1,observer:"_horizontalChanged"},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},transitioning:{type:Boolean,notify:!0,readOnly:!0},noAnimation:{type:Boolean},_desiredSize:{type:String,value:""}},get dimension(){return this.horizontal?"width":"height"},get _dimensionMax(){return this.horizontal?"maxWidth":"maxHeight"},get _dimensionMaxCss(){return this.horizontal?"max-width":"max-height"},hostAttributes:{role:"group",
"aria-hidden":"true"},listeners:{transitionend:"_onTransitionEnd"},toggle:function(){this.opened=!this.opened},
show:function(){this.opened=!0},
hide:function(){this.opened=!1},
updateSize:function(a,b){a=a==="auto"?"":a;b=b&&!this.noAnimation&&this.isAttached&&this._desiredSize!==a;this._desiredSize=a;this._updateTransition(!1);b&&(b=this._calcSize(),a===""&&(this.style[this._dimensionMax]="",a=this._calcSize()),this.style[this._dimensionMax]=b,this.scrollTop=this.scrollTop,this._updateTransition(!0),b=a!==b);this.style[this._dimensionMax]=a;b||this._transitionEnd()},
enableTransition:function(a){_.GC._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!a},
_updateTransition:function(a){this.style.transitionDuration=a&&!this.noAnimation?"":"0s"},
_horizontalChanged:function(){this.style.transitionProperty=this._dimensionMaxCss;this.style[this._dimensionMax==="maxWidth"?"maxHeight":"maxWidth"]="";this.updateSize(this.opened?"auto":"0px",!1)},
_openedChanged:function(){this.setAttribute("aria-hidden",!this.opened);this._setTransitioning(!0);this.toggleClass("iron-collapse-closed",!1);this.toggleClass("iron-collapse-opened",!1);this.updateSize(this.opened?"auto":"0px",!0);this.opened&&this.focus()},
_transitionEnd:function(){this.style[this._dimensionMax]=this._desiredSize;this.toggleClass("iron-collapse-closed",!this.opened);this.toggleClass("iron-collapse-opened",this.opened);this._updateTransition(!1);this.notifyResize();this._setTransitioning(!1)},
_onTransitionEnd:function(a){_.wn(a).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var Zvb;var $vb;var awb=void 0,bwb={properties:{sizingTarget:{type:Object,value:function(){var a;return(a=this.hostElement)!=null?a:this}},
fitInto:{type:Object,value:window},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{type:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},autoFitOnAttach:{type:Boolean,value:!1},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_fitInfo:{type:Object},avoidOuterEdge:{type:Boolean,value:!1}},get _defaultPositionTarget(){var a,b=_.wn((a=this.hostElement)!=null?a:
this).parentNode;b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(b=b.host);return b},get _localeHorizontalAlign(){if(this._isRTL){if(this.horizontalAlign==="right")return"left";if(this.horizontalAlign==="left")return"right"}return this.horizontalAlign},get __shouldPosition(){return(this.horizontalAlign||this.verticalAlign)&&this.positionTarget},get _isRTL(){if(typeof this._memoizedIsRTL==="undefined"){var a;this._memoizedIsRTL=window.getComputedStyle((a=this.hostElement)!=null?a:this).direction=="rtl"}return this._memoizedIsRTL},
attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var a;window.getComputedStyle((a=this.hostElement)!=null?a:this).display==="none"?setTimeout(function(){this.fit()}.bind(this)):(window.ShadyDOM&&ShadyDOM.flush(),this.fit())}},
detached:function(){},
fit:function(){this.position();this.constrain();this.center()},
_discoverInfo:function(){if(!this._fitInfo){var a,b=window.getComputedStyle((a=this.hostElement)!=null?a:this);a=window.getComputedStyle(this.sizingTarget);var c,d,e;this._fitInfo={inlineStyle:{top:((c=this.hostElement)!=null?c:this).style.top||"",left:((d=this.hostElement)!=null?d:this).style.left||"",position:((e=this.hostElement)!=null?e:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:b.top!=="auto"?"top":b.bottom!=="auto"?"bottom":null,horizontally:b.left!=="auto"?"left":b.right!=="auto"?"right":null},sizedBy:{height:a.maxHeight!=="none",width:a.maxWidth!=="none",minWidth:parseInt(a.minWidth,10)||0,minHeight:parseInt(a.minHeight,10)||0},margin:{top:parseInt(b.marginTop,10)||0,right:parseInt(b.marginRight,10)||0,bottom:parseInt(b.marginBottom,10)||0,left:parseInt(b.marginLeft,10)||0}}}},
resetFit:function(){var a=this._fitInfo||{},b;for(b in a.sizerInlineStyle)this.sizingTarget.style[b]=a.sizerInlineStyle[b];for(b in a.inlineStyle){var c=void 0;((c=this.hostElement)!=null?c:this).style[b]=a.inlineStyle[b]}this._fitInfo=null},
refit:function(){var a=this.sizingTarget.scrollLeft,b=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=a;this.sizingTarget.scrollTop=b},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var a;((a=this.hostElement)!=null?a:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var b;((b=this.hostElement)!=null?b:this).style.left="0px";var c;((c=this.hostElement)!=null?c:this).style.top="0px";var d,e=((d=this.hostElement)!=null?d:this).getBoundingClientRect();b=this.__getNormalizedRect(this.positionTarget);d=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(d={left:d.left+24,right:d.right-24,top:d.top+24,bottom:d.bottom-24});if(this.expandSizingTargetForScrollbars){var g=this.sizingTarget.offsetWidth;var k=this.sizingTarget.offsetHeight;var m=this.sizingTarget.clientWidth;var n=this.sizingTarget.clientHeight}a=this._fitInfo.margin;b=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,{width:e.width+a.left+a.right,height:e.height+a.top+a.bottom},e,b,d);var r=b.left+a.left,t=b.top+a.top;c=Math.min(d.right-a.right,r+e.width);var u=Math.min(d.bottom-
a.bottom,t+e.height);r=Math.max(d.left+a.left,Math.min(r,c-this._fitInfo.sizedBy.minWidth));t=Math.max(d.top+a.top,Math.min(t,u-this._fitInfo.sizedBy.minHeight));c=Math.max(c-r,this._fitInfo.sizedBy.minWidth);u=Math.max(u-t,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=c+"px";this.sizingTarget.style.maxHeight=u+"px";r-=e.left;e=t-e.top;var x;((x=this.hostElement)!=null?x:this).style.left=r+"px";var A;((A=this.hostElement)!=null?A:this).style.top=e+"px";if(this.expandSizingTargetForScrollbars){x=
this.sizingTarget.offsetHeight;k=x-this.sizingTarget.clientHeight-(k-n);if(k>0){this.sizingTarget.style.maxHeight=Math.min(d.height-a.top-a.bottom,u+k)+"px";k=this.sizingTarget.offsetHeight;n=k-x;var C;b.verticalAlign==="top"?C=e:b.verticalAlign==="middle"?C=e-n/2:b.verticalAlign==="bottom"&&(C=e-n);C=Math.max(d.top+a.top,Math.min(C,d.bottom-a.bottom-k));var F;((F=this.hostElement)!=null?F:this).style.top=C+"px"}C=this.sizingTarget.offsetWidth;g=C-this.sizingTarget.clientWidth-(g-m);if(g>0){awb!==
void 0?m=awb:(m=document.createElement("div"),Object.assign(m.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),F=document.createElement("div"),F.style.width="200px",F.style.height="200px",m.appendChild(F),document.body.appendChild(m),awb=Math.abs(m.offsetWidth-100)>1?m.offsetWidth-m.clientWidth:0,document.body.removeChild(m),m=awb);this.sizingTarget.style.maxWidth=Math.min(d.width-a.left-a.right,c+g-m)+"px";g=this.sizingTarget.offsetWidth+m;m=g-C;var J;
b.horizontalAlign==="left"?J=r:b.horizontalAlign==="center"?J=r-m/2:b.horizontalAlign==="right"&&(J=r-m);J=Math.max(d.left+a.left,Math.min(J,d.right-a.right-g));var I;((I=this.hostElement)!=null?I:this).style.left=J+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var a=this._fitInfo;if(!a.positionedBy.vertically){var b;((b=this.hostElement)!=null?b:this).style.position="fixed";var c;((c=this.hostElement)!=null?c:this).style.top="0px"}if(!a.positionedBy.horizontally){var d;((d=this.hostElement)!=null?d:this).style.position="fixed";var e;((e=this.hostElement)!=null?e:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var g;b=((g=this.hostElement)!=null?g:this).getBoundingClientRect();
a.sizedBy.height||this.__sizeDimension(b,a.positionedBy.vertically,"top","bottom","Height");a.sizedBy.width||this.__sizeDimension(b,a.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(a,b,c,d,e){this.__sizeDimension(a,b,c,d,e)},
__sizeDimension:function(a,b,c,d,e){var g=this._fitInfo,k=this.__getNormalizedRect(this.fitInto);k=e==="Width"?k.width:k.height;a=(b=b===d)?k-a[d]:a[c];c=g.margin[b?c:d];d="offset"+e;var m;g=((m=this.hostElement)!=null?m:this)[d]-this.sizingTarget[d];this.sizingTarget.style["max"+e]=k-c-a-g+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var a=this._fitInfo.positionedBy;if(!a.vertically||!a.horizontally){var b;((b=this.hostElement)!=null?b:this).style.position="fixed";if(!a.vertically){var c;((c=this.hostElement)!=null?c:this).style.top="0px"}if(!a.horizontally){var d;((d=this.hostElement)!=null?d:this).style.left="0px"}var e;b=((e=this.hostElement)!=null?e:this).getBoundingClientRect();e=this.__getNormalizedRect(this.fitInto);if(!a.vertically){c=e.top-b.top+(e.height-
b.height)/2;var g;((g=this.hostElement)!=null?g:this).style.top=c+"px"}if(!a.horizontally){a=e.left-b.left+(e.width-b.width)/2;var k;((k=this.hostElement)!=null?k:this).style.left=a+"px"}}}},
__getNormalizedRect:function(a){return a===document.documentElement||a===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:a.getBoundingClientRect()},
__getOffscreenArea:function(a,b,c){return Math.abs(Math.min(0,a.top)+Math.min(0,c.bottom-(a.top+b.height)))*b.width+Math.abs(Math.min(0,a.left)+Math.min(0,c.right-(a.left+b.width)))*b.height},
__getPosition:function(a,b,c,d,e,g){var k=[{verticalAlign:"top",horizontalAlign:"left",top:e.top+this.verticalOffset,left:e.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:e.top+this.verticalOffset,left:e.right-c.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:e.bottom-c.height-this.verticalOffset,left:e.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:e.bottom-c.height-this.verticalOffset,left:e.right-c.width-
this.horizontalOffset}];if(this.noOverlap){for(var m=0,n=k.length;m<n;m++){var r={},t;for(t in k[m])r[t]=k[m][t];k.push(r)}k[0].top=k[1].top+=e.height;k[2].top=k[3].top-=e.height;k[4].left=k[6].left+=e.width;k[5].left=k[7].left-=e.width}b=b==="auto"?null:b;a=a==="auto"?null:a;a&&a!=="center"||(k.push({verticalAlign:"top",horizontalAlign:"center",top:e.top+this.verticalOffset+(this.noOverlap?e.height:0),left:e.left-d.width/2+e.width/2+this.horizontalOffset}),k.push({verticalAlign:"bottom",horizontalAlign:"center",
top:e.bottom-c.height-this.verticalOffset-(this.noOverlap?e.height:0),left:e.left-d.width/2+e.width/2+this.horizontalOffset}));b&&b!=="middle"||(k.push({verticalAlign:"middle",horizontalAlign:"left",top:e.top-d.height/2+e.height/2+this.verticalOffset,left:e.left+this.horizontalOffset+(this.noOverlap?e.width:0)}),k.push({verticalAlign:"middle",horizontalAlign:"right",top:e.top-d.height/2+e.height/2+this.verticalOffset,left:e.right-c.width-this.horizontalOffset-(this.noOverlap?e.width:0)}));b==="middle"&&
a==="center"&&k.push({verticalAlign:"middle",horizontalAlign:"center",top:e.top-d.height/2+e.height/2+this.verticalOffset,left:e.left-d.width/2+e.width/2+this.horizontalOffset});for(m=0;m<k.length;m++){d=k[m];e=d.verticalAlign===b;n=d.horizontalAlign===a;if(!this.dynamicAlign&&!this.noOverlap&&e&&n){var u=d;break}r=(!b||e)&&(!a||n);if(this.dynamicAlign||r){d.offscreenArea=this.__getOffscreenArea(d,c,g);if(d.offscreenArea===0&&r){u=d;break}u=u||d;r=d.offscreenArea-u.offscreenArea;if(r<0||r===0&&(e||
n))u=d}}return u}};/*

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
var YD,cwb,dwb;YD=Element.prototype;cwb=YD.matches||YD.matchesSelector||YD.mozMatchesSelector||YD.msMatchesSelector||YD.oMatchesSelector||YD.webkitMatchesSelector;dwb=function(){};
_.fwb=function(a){var b=ewb,c=[];return b._collectTabbableNodes(a,c)?b._sortByTabIndex(c):c};
_.f=dwb.prototype;_.f._normalizedTabIndex=function(a){return(cwb.call(a,"input, select, textarea, button, object")?cwb.call(a,":not([disabled])"):cwb.call(a,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(a=a.getAttribute("tabindex")||0,Number(a)):-1};
_.f._collectTabbableNodes=function(a,b){if(a.nodeType!==Node.ELEMENT_NODE||!this._isVisible(a))return!1;var c=this._normalizedTabIndex(a),d=c>0;c>=0&&b.push(a);if(a.localName==="content"||a.localName==="slot")c=_.wn(a).getDistributedNodes();else{var e;c=((e=_.wn(a).shadowRoot)!=null?e:_.wn(a.root||a)).children}for(a=0;a<c.length;a++)d=this._collectTabbableNodes(c[a],b)||d;return d};
_.f._isVisible=function(a){var b=a.style;return b.visibility!=="hidden"&&b.display!=="none"?(b=window.getComputedStyle(a),b.visibility!=="hidden"&&b.display!=="none"):!1};
_.f._sortByTabIndex=function(a){var b=a.length;if(b<2)return a;var c=Math.ceil(b/2);b=this._sortByTabIndex(a.slice(0,c));a=this._sortByTabIndex(a.slice(c));return this._mergeSortByTabIndex(b,a)};
_.f._mergeSortByTabIndex=function(a,b){for(var c=[];a.length>0&&b.length>0;)this._hasLowerTabOrder(a[0],b[0])?c.push(b.shift()):c.push(a.shift());return c.concat(a,b)};
_.f._hasLowerTabOrder=function(a,b){a=Math.max(a.tabIndex,0);b=Math.max(b.tabIndex,0);return a===0||b===0?b>a:a>b};
var ewb=new dwb;var gwb;var hwb;_.sr({_template:function(){if(hwb!==void 0)return hwb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-overlay-backdrop--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_overlay_backdrop.tp.yt.iron.overlay.backdrop.css.js--\x3e<slot class="style-scope tp-yt-iron-overlay-backdrop"></slot>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;gwb===void 0&&(gwb=document.createElement("template"));var d=gwb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return hwb=a},
is:"tp-yt-iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null},
attached:function(){this.opened&&this._openedChanged(this.opened)},
prepare:function(){this.opened&&!this.parentNode&&_.wn(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.wn(this.parentNode).removeChild(this)},
_onTransitionend:function(a){a&&a.target===this&&this.complete()},
_openedChanged:function(a){a?this.prepare():(a=window.getComputedStyle(this),a.transitionDuration!=="0s"&&a.opacity!=0||this.complete());this.isAttached&&(this.__openedRaf&&(window.cancelAnimationFrame(this.__openedRaf),this.__openedRaf=null),this.scrollTop=this.scrollTop,this.__openedRaf=window.requestAnimationFrame(function(){this.__openedRaf=null;this.toggleClass("opened",this.opened)}.bind(this)))}});var ZD=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;zm(document.documentElement,"tap",function(){});
document.addEventListener("tap",this._onCaptureClick.bind(this),!0);document.addEventListener("focus",this._onCaptureFocus.bind(this),!0);document.addEventListener("keydown",this._onCaptureKeyDown.bind(this),!0)};
ZD.prototype._bringOverlayAtIndexToFront=function(a){var b=this._overlays[a];if(b){var c=this._overlays.length-1,d=this._overlays[c];d&&this._shouldBeBehindOverlay(b,d)&&c--;if(!(a>=c)){d=Math.max(this._getZ(_.iwb(this)),this._minimumZ);for(this._getZ(b)<=d&&this._applyOverlayZ(b,d);a<c;)this._overlays[a]=this._overlays[a+1],a++;this._overlays[c]=b}}};
ZD.prototype.addOverlay=function(a){var b=this._overlays.indexOf(a);if(b>=0)this._bringOverlayAtIndexToFront(b);else{b=this._overlays.length;var c=this._overlays[b-1],d=Math.max(this._getZ(c),this._minimumZ),e=this._getZ(a);c&&this._shouldBeBehindOverlay(a,c)&&(this._applyOverlayZ(c,d),b--,d=Math.max(this._getZ(this._overlays[b-1]),this._minimumZ));e<=d&&this._applyOverlayZ(a,d);this._overlays.splice(b,0,a)}this.trackBackdrop()};
ZD.prototype.removeOverlay=function(a){a=this._overlays.indexOf(a);a!==-1&&(this._overlays.splice(a,1),this.trackBackdrop())};
_.iwb=function(a){return a._overlays[a._overlays.length-1]};
_.f=ZD.prototype;_.f.trackBackdrop=function(){var a=this._overlayWithBackdrop();if(a||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(a)-1,this.backdropElement.opened=!!a,this.backdropElement.prepare()};
_.f._overlayWithBackdrop=function(){for(var a=this._overlays.length-1;a>=0;a--)if(this._overlays[a].withBackdrop)return this._overlays[a]};
_.f._getZ=function(a){var b=this._minimumZ;if(a){var c,d,e=Number(((c=a.hostElement)!=null?c:a).style.zIndex||window.getComputedStyle((d=a.hostElement)!=null?d:a).zIndex);e===e&&(b=e)}return b};
_.f._setZ=function(a,b){var c;((c=a.hostElement)!=null?c:a).style.zIndex=b};
_.f._applyOverlayZ=function(a,b){this._setZ(a,b+2)};
_.f._overlayInPath=function(a){a=a||[];for(var b=0;b<a.length;b++){var c=void 0;if(((c=a[b].polymerController)!=null?c:a[b])._manager===this)return a[b]}};
_.f._onCaptureClick=function(a){var b=this._overlays.length-1;if(b!==-1)for(var c=_.wn(a).path,d,e;(d=this._overlays[b])&&this._overlayInPath(c)!==((e=d.hostElement)!=null?e:d);)if(d._onCaptureClick(a),d.allowClickThrough)b--;else break};
_.f._onCaptureFocus=function(a){var b=_.iwb(this);b&&b._onCaptureFocus(a)};
_.f._onCaptureKeyDown=function(a){var b=_.iwb(this);b&&(_.FD.keyboardEventMatchesKeys(a,"esc")?b._onCaptureEsc(a):_.FD.keyboardEventMatchesKeys(a,"tab")&&b._onCaptureTab(a))};
_.f._shouldBeBehindOverlay=function(a,b){return!a.alwaysOnTop&&b.alwaysOnTop&&!b.contains(a)};
_.Um.Object.defineProperties(ZD.prototype,{backdropElement:{configurable:!0,enumerable:!0,get:function(){this._backdropElement||(this._backdropElement=document.createElement("tp-yt-iron-overlay-backdrop"));return this._backdropElement}},
deepActiveElement:{configurable:!0,enumerable:!0,get:function(){var a=document.activeElement;a&&a instanceof Element!==!1||(a=document.body);for(;a.root&&_.wn(a.root).activeElement;)a=_.wn(a.root).activeElement;return a}}});
_.$D=new ZD;var nAa=0,oAa=0,pAa=null,qAa=[],xn=["wheel","mousewheel","DOMMouseScroll"],rAa;_.w("web_no_lock_on_touchstart_killswitch")&&(xn.push("touchstart"),xn.push("touchmove"));_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[];_._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=null;
_._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=null;_.aE={properties:{opened:{observer:"_openedChanged",type:Boolean,value:!1,notify:!0},canceled:{observer:"_canceledChanged",readOnly:!0,type:Boolean,value:!1},withBackdrop:{observer:"_withBackdropChanged",type:Boolean},noAutoFocus:{type:Boolean,value:!1},noCancelOnEscKey:{type:Boolean,value:!1},noCancelOnOutsideClick:{type:Boolean,value:!1},closingReason:{type:Object},restoreFocusOnClose:{type:Boolean,value:!1},allowClickThrough:{type:Boolean},alwaysOnTop:{type:Boolean},scrollAction:{type:String},
_manager:{type:Object,value:_.$D},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var a;return this._focusedChild||_.wn((a=this.hostElement)!=null?a:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var a;return _.fwb((a=this.hostElement)!=null?a:this)},ready:function(){this.__shouldRemoveTabIndex=
this.__isAnimating=!1;this.__firstFocusableNode=this.__lastFocusableNode=null;this.__rafs={};this.__scrollTop=this.__scrollLeft=this.__restoreFocusNode=null;this.__onCaptureScroll=this.__onCaptureScroll.bind(this);this.__rootNodes=null;this._ensureSetup()},
attached:function(){this.opened&&this._openedChanged(this.opened);var a;this._observer=_.wn((a=this.hostElement)!=null?a:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var a;_.wn((a=this.hostElement)!=null?a:this).unobserveNodes(this._observer)}this._observer=null;for(var b in this.__rafs)this.__rafs[b]!==null&&cancelAnimationFrame(this.__rafs[b]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(a){this.fire("iron-overlay-canceled",a,{cancelable:!0}).defaultPrevented||(this._setCanceled(!0),this.opened=!1)},
invalidateTabbables:function(){this.__firstFocusableNode=this.__lastFocusableNode=null},
_ensureSetup:function(){if(!this._overlaySetup){this._overlaySetup=!0;var a;((a=this.hostElement)!=null?a:this).style.outline="none";var b;((b=this.hostElement)!=null?b:this).style.display="none"}},
_openedChanged:function(a){if(a){var b;((b=this.hostElement)!=null?b:this).removeAttribute("aria-hidden")}else{var c;((c=this.hostElement)!=null?c:this).setAttribute("aria-hidden","true")}this.isAttached&&(this.__isAnimating=!0,this.__deraf("__openedChanged",this.__openedChanged))},
_canceledChanged:function(){this.closingReason=this.closingReason||{};this.closingReason.canceled=this.canceled},
_withBackdropChanged:function(){var a;if(this.withBackdrop&&!((a=this.hostElement)!=null?a:this).hasAttribute("tabindex")){var b;((b=this.hostElement)!=null?b:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var c;((c=this.hostElement)!=null?c:this).removeAttribute("tabindex");this.__shouldRemoveTabIndex=!1}this.opened&&this.isAttached&&this._manager.trackBackdrop()},
_prepareRenderOpened:function(){this.__restoreFocusNode=this._manager.deepActiveElement;this._preparePositioning();this.refit();this._finishPositioning();this.noAutoFocus&&document.activeElement===this._focusNode&&(this._focusNode.blur(),this.__restoreFocusNode.focus())},
_renderOpened:function(){this._finishRenderOpened()},
_renderClosed:function(){this._finishRenderClosed()},
_finishRenderOpened:function(){this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-opened")},
_finishRenderClosed:function(){var a;((a=this.hostElement)!=null?a:this).style.display="none";var b;((b=this.hostElement)!=null?b:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var a,b;((a=this.hostElement)!=null?a:this).style.transition=((b=this.hostElement)!=null?b:this).style.webkitTransition="none";var c,d;((c=this.hostElement)!=null?c:this).style.transform=((d=this.hostElement)!=null?d:this).style.webkitTransform="none";var e;((e=this.hostElement)!=null?e:this).style.display=""},
_finishPositioning:function(){var a;((a=this.hostElement)!=null?a:this).style.display="none";this.scrollTop=this.scrollTop;var b,c;((b=this.hostElement)!=null?b:this).style.transition=((c=this.hostElement)!=null?c:this).style.webkitTransition="";var d,e;((d=this.hostElement)!=null?d:this).style.transform=((e=this.hostElement)!=null?e:this).style.webkitTransform="";var g;((g=this.hostElement)!=null?g:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var a=this._manager.deepActiveElement,b;if(!(b=a===document.body))a:{for(;a;a=a.assignedSlot||a.parentNode||a.host)if(a===this){b=!0;break a}b=!1}b&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(a){this.noCancelOnOutsideClick||this.cancel(a)},
_onCaptureFocus:function(a){if(this.withBackdrop){var b=_.wn(a).path;b.indexOf(this)===-1?(a.stopPropagation(),this._applyFocus()):this._focusedChild=b[0]}},
_onCaptureEsc:function(a){this.noCancelOnEscKey||this.cancel(a)},
_onCaptureTab:function(a){if(this.withBackdrop){this.__ensureFirstLastFocusables();var b=a.shiftKey,c=b?this.__firstFocusableNode:this.__lastFocusableNode;b=b?this.__lastFocusableNode:this.__firstFocusableNode;if(c===b)c=!0;else{var d=this._manager.deepActiveElement;c=d===c||d===this}c&&(a.preventDefault(),this._focusedChild=b,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var a=this._focusableNodes;this.__firstFocusableNode=a[0];this.__lastFocusableNode=a[a.length-1]},
__openedChanged:function(){this.opened?(this._prepareRenderOpened(),this._manager.addOverlay(this),this._applyFocus(),this._renderOpened()):(this._manager.removeOverlay(this),this._applyFocus(),this._renderClosed())},
__deraf:function(a,b){var c=this.__rafs;c[a]!==null&&cancelAnimationFrame(c[a]);c[a]=requestAnimationFrame(function(){c[a]=null;b.call(this)}.bind(this))},
__updateScrollObservers:function(a,b,c){a&&b&&this.__isValidScrollAction(c)?(c==="lock"&&(this.__saveScrollPosition(),_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this)>=0||(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length===0&&_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(),
_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.push(this),rAa=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager[_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length-1],_._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=
[],_._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[])),this.__addScrollListeners()):(a=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),a!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(a,1),rAa=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager[_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length-
1],_._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[],_._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[],_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length===0&&_._unlockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager()),
this.__removeScrollListeners())},
__addScrollListeners:function(){if(!this.__rootNodes){this.__rootNodes=[];if(Fm)for(var a=this;a;)a.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&a.host&&this.__rootNodes.push(a),a=a.host||a.assignedSlot||a.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(b){b.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(a){a.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(a){return a==="lock"||a==="refit"||a==="cancel"},
__onCaptureScroll:function(a){if(!(this.__isAnimating||_.wn(a).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(a)}},
__saveScrollPosition:function(){document.scrollingElement?(this.__scrollTop=document.scrollingElement.scrollTop,this.__scrollLeft=document.scrollingElement.scrollLeft):(this.__scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),this.__scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft))},
__restoreScrollPosition:function(){document.scrollingElement?(document.scrollingElement.scrollTop=this.__scrollTop,document.scrollingElement.scrollLeft=this.__scrollLeft):(document.documentElement.scrollTop=document.body.scrollTop=this.__scrollTop,document.documentElement.scrollLeft=document.body.scrollLeft=this.__scrollLeft)}};
_.bE=[bwb,_.OD,_.aE];_.sr({_template:function(){if($vb!==void 0)return $vb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_dropdown.tp.yt.iron.dropdown.css.js--\x3e<div id="contentWrapper" class="style-scope tp-yt-iron-dropdown">\n  <slot id="content" name="dropdown-content" class="style-scope tp-yt-iron-dropdown"></slot>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Zvb===void 0&&(Zvb=document.createElement("template"));var d=Zvb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return $vb=a},
is:"tp-yt-iron-dropdown",behaviors:[_.GD,_.FD,_.bE,Pub],properties:{horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},openAnimationConfig:{type:Object},closeAnimationConfig:{type:Object},focusTarget:{type:Object},noAnimations:{type:Boolean,value:!1},allowOutsideScroll:{type:Boolean,value:!1,observer:"_allowOutsideScrollChanged"}},listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},observers:["_updateOverlayPosition(positionTarget, verticalAlign, horizontalAlign, verticalOffset, horizontalOffset)"],
get containedElement(){for(var a=_.wn(this.$.content).getDistributedNodes(),b=0,c=a.length;b<c;b++)if(a[b].nodeType===Node.ELEMENT_NODE)return a[b]},ready:function(){this.scrollAction||(this.scrollAction=this.allowOutsideScroll?"refit":"lock");this._readied=!0},
attached:function(){this.sizingTarget&&this.sizingTarget!==this||(this.sizingTarget=this.containedElement||this)},
detached:function(){this.cancelAnimation()},
_openedChanged:function(){this.opened&&this.disabled?this.cancel():(this.cancelAnimation(),this._updateAnimationConfig(),_.aE._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.aE._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.aE._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var a=this.containedElement,b=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),c=0;c<b.length;c++)b[c].node=a;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(a){this._readied&&(a?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var a=this.focusTarget||this.containedElement;a&&this.opened&&!this.noAutoFocus?a.focus():_.aE._applyFocus.apply(this,arguments)}});var jwb;var kwb;/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
var lwb=new _.KD({type:"iconset"});
_.sr({_template:function(){if(kwb!==void 0)return kwb;var a=document.createElement("template");_.B(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_icon.tp.yt.iron.icon.css.js--\x3e\n");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;jwb===void 0&&(jwb=document.createElement("template"));
var d=jwb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return kwb=a},
is:"tp-yt-iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String}},observers:["_updateIcon(isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],_DEFAULT_ICONSET:"icons",_iconChanged:function(a){a=(a||"").split(":");this._iconName=a.pop();this._iconsetName=a.pop()||this._DEFAULT_ICONSET;this._updateIcon()},
_srcChanged:function(){this._updateIcon()},
_usesIconset:function(){return this.icon||!this.src},
_updateIcon:function(){if(this._usesIconset())if(this._img&&this._img.parentNode&&_.wn(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=lwb.byKey(this._iconsetName)){var a=this._iconset.applyIcon(this,this._iconName,this.theme);a&&a.setAttribute("aria-hidden","true");this.unlisten(window,"iron-iconset-added","_updateIcon")}else this.listen(window,"iron-iconset-added","_updateIcon")}else this._iconset&&this._iconset.removeIcon(this),
this._img||(this._img=document.createElement("img"),this._img.style.width="100%",this._img.style.height="100%",this._img.draggable=!1),this._img.src=this.src,_.wn(this.root).appendChild(this._img)}});var mwb;var nwb;_.sr({_template:function(){if(nwb!==void 0)return nwb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_input.tp.yt.iron.input.css.js--\x3e<slot id="content" class="style-scope tp-yt-iron-input"></slot>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
var b=a.content,c=b.insertBefore;mwb===void 0&&(mwb=document.createElement("template"));var d=mwb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return nwb=a},
is:"tp-yt-iron-input",behaviors:[_.MD],properties:{bindValue:{type:String,value:""},value:{type:String,computed:"_computeValue(bindValue)"},allowedPattern:{type:String},autoValidate:{type:Boolean,value:!1},_inputElement:Object},observers:["_bindValueChanged(bindValue, _inputElement)"],listeners:{input:"_onInput",keypress:"_onKeypress"},created:function(){_.XD.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.wn(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.wn(this).unobserveNodes(this._observer),this._observer=null)},
get inputElement(){return this._inputElement},_initSlottedInput:function(){this._inputElement=this.getEffectiveChildren()[0];this.inputElement&&this.inputElement.value&&(this.bindValue=this.inputElement.value);this.fire("iron-input-ready")},
get _patternRegExp(){if(this.allowedPattern)var a=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":a=/[0-9.,e-]/}return a},_bindValueChanged:function(a,b){b&&(a===void 0?b.value=null:a!==b.value&&(this.inputElement.value=a),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:a}))},
_onInput:function(){!this.allowedPattern||this._patternAlreadyChecked||this._checkPatternValidity()||(this._announceInvalidCharacter("Invalid string of characters not entered."),this.inputElement.value=this._previousValidInput);this.bindValue=this._previousValidInput=this.inputElement.value;this._patternAlreadyChecked=!1},
_isPrintable:function(a){var b=a.keyCode==19||a.keyCode==20||a.keyCode==45||a.keyCode==46||a.keyCode==144||a.keyCode==145||a.keyCode>32&&a.keyCode<41||a.keyCode>111&&a.keyCode<124;return!(a.keyCode==8||a.keyCode==9||a.keyCode==13||a.keyCode==27)&&!(a.charCode==0&&b)},
_onKeypress:function(a){if(this.allowedPattern||this.inputElement.type==="number"){var b=this._patternRegExp;if(b&&!(a.metaKey||a.ctrlKey||a.altKey)){this._patternAlreadyChecked=!0;var c=String.fromCharCode(a.charCode);this._isPrintable(a)&&!b.test(c)&&(a.preventDefault(),this._announceInvalidCharacter("Invalid character "+c+" not entered."))}}},
_checkPatternValidity:function(){var a=this._patternRegExp;if(!a)return!0;for(var b=0;b<this.inputElement.value.length;b++)if(!a.test(this.inputElement.value[b]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var a=this.inputElement.checkValidity();a&&(this.required&&this.bindValue===""?a=!1:this.hasValidator()&&(a=_.MD.validate.call(this,this.bindValue)));this.invalid=!a;this.fire("iron-input-validate");return a},
_announceInvalidCharacter:function(a){this.fire("iron-announce",{text:a})},
_computeValue:function(a){return a}});var owb;var pwb;var qwb=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),rwb=qwb&&qwb[1]>=8;
_.sr({_template:function(){if(pwb!==void 0)return pwb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div id="items" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;owb===void 0&&(owb=document.createElement("template"));var d=owb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return pwb=a},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[hLa,_.OD,_.Oub,Dqb],_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_focusedItem:null,_focusedVirtualIndex:-1,_focusedPhysicalIndex:-1,_offscreenFocusedItem:null,
_focusBackfillItem:null,_itemsPerRow:1,_itemWidth:0,_rowHeight:0,_templateCost:0,_parentModel:!0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return(this.grid?this._physicalRows*this._rowHeight:this._physicalSize)-this._viewportHeight},get _itemsParent(){return _.wn(_.wn(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var a=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,a-this._physicalCount)},set _virtualStart(a){a=this._clamp(a,0,this._maxVirtualStart);this.grid&&(a-=a%this._itemsPerRow);this._virtualStartVal=a},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(a){a%=this._physicalCount;a<0&&(a=this._physicalCount+a);this.grid&&(a-=a%this._itemsPerRow);this._physicalStartVal=a},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(a){this._physicalCountVal=a},get _physicalCount(){return this._physicalCountVal||0},get _optPhysicalSize(){return this._viewportHeight===0?Infinity:this._viewportHeight*this._maxPages},get _isVisible(){return!(!this.offsetWidth&&!this.offsetHeight)},get firstVisibleIndex(){var a=this._firstVisibleIndexVal;if(a==null){var b=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
a=this._iterateItems(function(c,d){b+=this._getPhysicalSizeIncrement(c);if(b>this._scrollPosition)return this.grid?d-d%this._itemsPerRow:d;if(this.grid&&this._virtualCount-1===d)return d-d%this._itemsPerRow})||0}return a},
get lastVisibleIndex(){var a=this._lastVisibleIndexVal;if(a==null){if(this.grid)a=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var b=this._physicalTop+this._scrollOffset;this._iterateItems(function(c,d){b<this._scrollBottom&&(a=d);b+=this._getPhysicalSizeIncrement(c)})}this._lastVisibleIndexVal=a}return a},
get _defaultScrollTarget(){return this},get _virtualRowCount(){return Math.ceil(this._virtualCount/this._itemsPerRow)},get _estRowsInView(){return Math.ceil(this._viewportHeight/this._rowHeight)},get _physicalRows(){return Math.ceil(this._physicalCount/this._itemsPerRow)},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},ready:function(){this.addEventListener("focus",this._didFocus.bind(this),!0)},
attached:function(){this._debounce("_render",this._render,_.ss);this.listen(this,"iron-resize","_resizeHandler");this.listen(this,"keydown","_keydownHandler")},
detached:function(){this.unlisten(this,"iron-resize","_resizeHandler");this.unlisten(this,"keydown","_keydownHandler")},
_setOverflow:function(a){this.style.webkitOverflowScrolling=a===this?"touch":"";this.style.overflowY=a===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.ss)},
updateViewportBoundaries:function(){var a=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(a["padding-top"],10);this._isRTL=a.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var a=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),b=a-this._scrollPosition,c=b>=0;this._scrollPosition=a;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(b)>this._physicalSize&&this._physicalSize>0?(b-=this._scrollOffset,c=Math.round(b/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=c,this._physicalStart+=c,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(a=this._getReusables(c),c?(this._physicalTop=a.physicalTop,this._virtualStart+=a.indexes.length,this._physicalStart+=a.indexes.length):(this._virtualStart=this._virtualStart-a.indexes.length,this._physicalStart=this._physicalStart-a.indexes.length),this._update(a.indexes,c?null:a.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Cm))},
_getReusables:function(a){var b=[],c=this._hiddenContentSize*this._ratio,d=this._virtualStart,e=this._virtualEnd,g=this._physicalCount,k=this._physicalTop+this._scrollOffset;var m=this._physicalBottom+this._scrollOffset;var n=this._scrollPosition,r=this._scrollBottom;if(a){var t=this._physicalStart;m=n-k}else t=this._physicalEnd,m-=r;for(;;){var u=this._getPhysicalSizeIncrement(t);m-=u;if(b.length>=g||m<=c)break;if(a){if(e+b.length+1>=this._virtualCount)break;if(k+u>=n-this._scrollOffset)break;b.push(t);
k+=u;t=(t+1)%g}else{if(d-b.length<=0)break;if(k+this._physicalSize-u<=r)break;b.push(t);k-=u;t=t===0?g-1:t-1}}return{indexes:b,physicalTop:k-this._scrollOffset}},
_update:function(a,b){if(!(a&&a.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(a);this._updateMetrics(a);if(b)for(;b.length;)a=b.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(a);this._positionItems();this._updateScrollerSize()}},
_createPool:function(a){this._ensureTemplatized();var b,c=Array(a);for(b=0;b<a;b++){var d=this.stamp(null);c[b]=d.root.querySelector("*");this._itemsParent.appendChild(d.root)}return c},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(a){a=this._clamp(this._physicalCount+a,3,this._virtualCount-this._virtualStart);a=this._convertIndexToCompleteRow(a);if(this.grid){var b=a%this._itemsPerRow;b&&a-b<=this._physicalCount&&(a+=this._itemsPerRow);a-=b}a-=this._physicalCount;b=Math.round(this._physicalCount*.5);if(!(a<0)){if(a>0){b=window.performance.now();[].push.apply(this._physicalItems,this._createPool(a));for(var c=0;c<a;c++)this._physicalSizes.push(0);this._physicalCount+=a;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=a);this._update();this._templateCost=(window.performance.now()-b)/a;b=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||b===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,b)),lpb):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,b),Cm))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var a=this._getReusables(!0);this._physicalTop=a.physicalTop;this._virtualStart+=a.indexes.length;this._physicalStart+=a.indexes.length;this._update(a.indexes);this._update();this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},
_ensureTemplatized:function(){if(!this.ctor){(this._userTemplate=this.queryEffectiveChildren("template"))||console.warn("iron-list requires a template to be provided in light-dom");var a={__key__:!0};a[this.as]=!0;a[this.indexAs]=!0;a[this.selectedAs]=!0;a.tabIndex=!0;this._instanceProps=a;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(a,b){typeof b!=="undefined"&&(this.notifyResize(),_.wC(),a&&this._updateGridMetrics())},
_itemsChanged:function(a){if(a.path==="items")this._physicalTop=this._virtualStart=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._lastVisibleIndexVal=this._firstVisibleIndexVal=null,this._physicalCount=this._physicalCount||0,this._physicalItems=this._physicalItems||[],this._physicalSizes=this._physicalSizes||[],this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._removeFocusedItem(),this._debounce("_render",this._render,
_.ss);else if(a.path==="items.splices"){this._adjustVirtualIndex(a.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(a.value.indexSplices.some(function(c){return c.addedCount>0||c.removed.length>0})){var b=this._getActiveElement();
this.contains(b)&&b.blur()}a=a.value.indexSplices.some(function(c){return c.index+c.addedCount>=this._virtualStart&&c.index<=this._virtualEnd},this);
this._isClientFull()&&!a||this._debounce("_render",this._render,_.ss)}else a.path!=="items.length"&&this._forwardItemPath(a.path,a.value)},
_forwardItemPath:function(a,b){a=a.slice(6);var c=a.indexOf(".");c===-1&&(c=a.length);var d,e=this.modelForElement(this._offscreenFocusedItem),g=parseInt(a.substring(0,c),10);if(d=this._isIndexRendered(g)){var k=this._getPhysicalIndex(g);var m=this.modelForElement(this._physicalItems[k])}else e&&(m=e);m&&m[this.indexAs]===g&&(a=a.substring(c+1),a=this.as+(a?"."+a:""),m._setPendingPropertyOrPath(a,b,!1,!0),m._flushProperties&&m._flushProperties(),d&&(this._updateMetrics([k]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(a){a.forEach(function(b){b.removed.forEach(this._removeItem,this);b.index<this._virtualStart&&(b=Math.max(b.addedCount-b.removed.length,b.index-this._virtualStart),this._virtualStart+=b,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=b))},this)},
_removeItem:function(a){this.$.selector.deselect(a);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===a&&this._removeFocusedItem()},
_iterateItems:function(a,b){var c,d;if(arguments.length===2&&b)for(d=0;d<b.length;d++){var e=b[d];var g=this._computeVidx(e);if((c=a.call(this,e,g))!=null)return c}else{e=this._physicalStart;for(g=this._virtualStart;e<this._physicalCount;e++,g++)if((c=a.call(this,e,g))!=null)return c;for(e=0;e<this._physicalStart;e++,g++)if((c=a.call(this,e,g))!=null)return c}},
_computeVidx:function(a){return a>=this._physicalStart?this._virtualStart+(a-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+a},
_assignModels:function(a){this._iterateItems(function(b,c){var d=this._physicalItems[b],e=this.items&&this.items[c];if(e!=null){var g=this.modelForElement(d);g.__key__=null;this._forwardProperty(g,this.as,e);this._forwardProperty(g,this.selectedAs,this.$.selector.isSelected(e));this._forwardProperty(g,this.indexAs,c);this._forwardProperty(g,"tabIndex",this._focusedVirtualIndex===c?0:-1);this._physicalIndexForKey[g.__key__]=b;g._flushProperties&&g._flushProperties(!0);d.removeAttribute("hidden")}else d.setAttribute("hidden",
"")},a)},
_updateMetrics:function(a){_.wC();var b=0,c=0,d=this._physicalAverageCount,e=this._physicalAverage;this._iterateItems(function(g){c+=this._physicalSizes[g];this._physicalSizes[g]=this._physicalItems[g].offsetHeight;b+=this._physicalSizes[g];this._physicalAverageCount+=this._physicalSizes[g]?1:0},a);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(c=this._itemsPerRow===1?c:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+b-c,this._itemsPerRow=1);this._physicalAverageCount!==d&&(this._physicalAverage=Math.round((e*d+b)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var a=this._physicalTop;if(this.grid){var b=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(c,d){var e=Math.floor(d%this._itemsPerRow*this._itemWidth+b);this._isRTL&&(e*=-1);this.translate3d(e+"px",a+"px",0,this._physicalItems[c]);this._shouldRenderNextRow(d)&&(a+=this._rowHeight)})}else this._iterateItems(function(c){this.translate3d(0,a+"px",0,this._physicalItems[c]);
a+=this._physicalSizes[c]})},
_getPhysicalSizeIncrement:function(a){return this.grid?this._computeVidx(a)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[a]},
_shouldRenderNextRow:function(a){return a%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var a=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(a!==0){this._physicalTop=this._physicalTop-a;var b=this._scrollPosition;!rwb&&b>0&&this._resetScrollPosition(b-a)}},
_resetScrollPosition:function(a){this.scrollTarget&&a>=0&&(this._scrollPosition=this._scrollTop=a)},
_updateScrollerSize:function(a){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((a=(a=(a=a||this._scrollHeight===0)||this._scrollPosition>=this._estScrollHeight-this._physicalSize)||this.grid&&this.$.items.style.height<this._estScrollHeight)||Math.abs(this._estScrollHeight-this._scrollHeight)>=this._viewportHeight)this.$.items.style.height=
this._estScrollHeight+"px",this._scrollHeight=this._estScrollHeight},
scrollToItem:function(a){return this.scrollToIndex(this.items.indexOf(a))},
scrollToIndex:function(a){if(!(typeof a!=="number"||a<0||a>this.items.length-1)&&(_.wC(),this._physicalCount!==0)){a=this._clamp(a,0,this._virtualCount-1);if(!this._isIndexRendered(a)||a>=this._maxVirtualStart)this._virtualStart=this.grid?a-this._itemsPerRow*2:a-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var b=this._physicalStart,c=this._virtualStart,d=0,e=this._hiddenContentSize;c<a&&
d<=e;)d+=this._getPhysicalSizeIncrement(b),b=(b+1)%this._physicalCount,c++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+d);this._increasePoolIfNeeded(0);this._lastVisibleIndexVal=this._firstVisibleIndexVal=null}},
_resetAverage:function(){this._physicalAverageCount=this._physicalAverage=0},
_resizeHandler:function(){this._debounce("_render",function(){this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},_.ss)},
selectItem:function(a){return this.selectIndex(this.items.indexOf(a))},
selectIndex:function(a){if(!(a<0||a>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(a)){var b=this.modelForElement(this._physicalItems[this._getPhysicalIndex(a)]);b&&(b[this.selectedAs]=!0);this.updateSizeForIndex(a)}this.$.selector.selectIndex(a)}},
deselectItem:function(a){return this.deselectIndex(this.items.indexOf(a))},
deselectIndex:function(a){a<0||a>=this._virtualCount||(this._isIndexRendered(a)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(a)])[this.selectedAs]=!1,this.updateSizeForIndex(a)),this.$.selector.deselectIndex(a))},
toggleSelectionForItem:function(a){return this.toggleSelectionForIndex(this.items.indexOf(a))},
toggleSelectionForIndex:function(a){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(a):this.$.selector.isSelected(this.items[a]))?this.deselectIndex(a):this.selectIndex(a)},
clearSelection:function(){this._iterateItems(function(a){this.modelForElement(this._physicalItems[a])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(a){(a?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(a){var b=this.modelForElement(a.target);if(b){var c=_.wn(a).path[0];a=this._getActiveElement();var d=this._physicalItems[this._getPhysicalIndex(b[this.indexAs])];if(c.localName!=="input"&&c.localName!=="button"&&c.localName!=="select"){c=b.tabIndex;b.tabIndex=-100;var e=a?a.tabIndex:-1;b.tabIndex=c;a&&d!==a&&d.contains(a)&&e!==-100||this.toggleSelectionForItem(b[this.as])}}},
_multiSelectionChanged:function(a){this.clearSelection();this.$.selector.multi=a},
updateSizeForItem:function(a){return this.updateSizeForIndex(this.items.indexOf(a))},
updateSizeForIndex:function(a){if(!this._isIndexRendered(a))return null;this._updateMetrics([this._getPhysicalIndex(a)]);this._positionItems();return null},
_manageFocus:function(){var a=this._focusedVirtualIndex;a>=0&&a<this._virtualCount?this._isIndexRendered(a)?this._restoreFocusedItem():this._createFocusBackfillItem():this._virtualCount>0&&this._physicalCount>0&&(this._focusedPhysicalIndex=this._physicalStart,this._focusedVirtualIndex=this._virtualStart,this._focusedItem=this._physicalItems[this._physicalStart])},
_convertIndexToCompleteRow:function(a){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(a/this._itemsPerRow)*this._itemsPerRow:a},
_isIndexRendered:function(a){return a>=this._virtualStart&&a<=this._virtualEnd},
_isIndexVisible:function(a){return a>=this.firstVisibleIndex&&a<=this.lastVisibleIndex},
_getPhysicalIndex:function(a){return(this._physicalStart+(a-this._virtualStart))%this._physicalCount},
focusItem:function(a){this._focusPhysicalItem(a)},
_focusPhysicalItem:function(a){if(!(a<0||a>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(a)||this.scrollToIndex(a);var b=this._physicalItems[this._getPhysicalIndex(a)],c=this.modelForElement(b),d;c.tabIndex=-100;b.tabIndex===-100&&(d=b);d||(d=_.wn(b).querySelector('[tabindex="-100"]'));c.tabIndex=0;this._focusedVirtualIndex=a;d&&d.focus()}},
_removeFocusedItem:function(){this._offscreenFocusedItem&&this._itemsParent.removeChild(this._offscreenFocusedItem);this._focusedItem=this._focusBackfillItem=this._offscreenFocusedItem=null;this._focusedPhysicalIndex=this._focusedVirtualIndex=-1},
_createFocusBackfillItem:function(){var a=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var b=this.stamp(null);this._focusBackfillItem=b.root.querySelector("*");this._itemsParent.appendChild(b.root)}this._offscreenFocusedItem=this._physicalItems[a];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[a]=this._focusBackfillItem;this._focusedPhysicalIndex=a;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var a=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),b=this._physicalItems[a];if(b){var c=this.modelForElement(b),d=this.modelForElement(this._offscreenFocusedItem);c[this.as]===d[this.as]?(this._focusBackfillItem=b,c.tabIndex=-1,this._physicalItems[a]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(a){a=this.modelForElement(a.target);var b=this.modelForElement(this._focusedItem),c=this._offscreenFocusedItem!==null,d=this._focusedVirtualIndex;a&&(b===a?this._isIndexVisible(d)||this.scrollToIndex(d):(this._restoreFocusedItem(),b&&(b.tabIndex=-1),a.tabIndex=0,this._focusedVirtualIndex=d=a[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(d),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],c&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(a){switch(a.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&a.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex+(this.grid?this._itemsPerRow:1));break;case 39:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+(this._isRTL?-1:1));break;case 38:this._focusedVirtualIndex>0&&a.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex-(this.grid?this._itemsPerRow:1));break;case 37:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+
(this._isRTL?1:-1));break;case 13:this._focusPhysicalItem(this._focusedVirtualIndex),this.selectionEnabled&&this._selectionHandler(a)}},
_clamp:function(a,b,c){return Math.min(c,Math.max(b,a))},
_debounce:function(a,b,c){this._debouncers=this._debouncers||{};this._debouncers[a]=_.rC(this._debouncers[a],c,b.bind(this));_.sC(this._debouncers[a])},
_forwardProperty:function(a,b,c){a._setPendingProperty(b,c)},
_forwardHostPropV2:function(a,b){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(c){c&&this.modelForElement(c).forwardHostProp(a,b)},this)},
_notifyInstancePropV2:function(a,b,c){Cva(this.as,b)&&(a=a[this.indexAs],b==this.as&&(this.items[a]=c),this.notifyPath(im(this.as,"items."+a,b),c))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(a,b,c){b.indexOf(this.as+".")===0&&this.notifyPath("items."+a.__key__+"."+b.slice(this.as.length+1),c)},
_forwardParentPath:function(a,b){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(c){c&&this.modelForElement(c).notifyPath(a,b)},this)},
_forwardParentProp:function(a,b){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(c){c&&(this.modelForElement(c)[a]=b)},this)},
_getActiveElement:function(){var a=this._itemsParent.node.domHost;return _.wn(a?a.root:document).activeElement},
_scrollTargetChanged:function(a,b){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(b)if(a==="document")this.scrollTarget=this._doc;else if(typeof a==="string"){var c,d;this.scrollTarget=(b=(d=(c=this.domHost)==null?void 0:c.polymerController)!=null?d:this.domHost)&&b.$?b.$[a]:_.wn(this.ownerDocument).querySelector("#"+a)}else this._isValidScrollTarget()&&(this._oldScrollTarget=a,this._toggleScrollListener(this._shouldHaveListener,a))}});var swb;var twb;var uwb=function(a,b,c,d){a-=c;b-=d;return Math.sqrt(a*a+b*b)},vwb=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
sAa.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var tAa=function(a){a.maxRadius=0;a.mouseDownStart=0;a.mouseUpStart=0;a.xStart=0;a.yStart=0;a.xEnd=0;a.yEnd=0;a.containerMetrics=new sAa(a.element)};
uAa.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var a=vwb()-this.mouseDownStart;this.mouseUpStart&&(a-=this.mouseUpElapsed);return a},get mouseUpElapsed(){return this.mouseUpStart?vwb()-this.mouseUpStart:0},get mouseDownElapsedSeconds(){return this.mouseDownElapsed/1E3},get mouseUpElapsedSeconds(){return this.mouseUpElapsed/1E3},get mouseInteractionSeconds(){return this.mouseDownElapsedSeconds+
this.mouseUpElapsedSeconds},get initialOpacity(){return this.element.initialOpacity},get opacityDecayVelocity(){return this.element.opacityDecayVelocity},get radius(){var a=Math.min(Math.sqrt(this.containerMetrics.width*this.containerMetrics.width+this.containerMetrics.height*this.containerMetrics.height),300)*1.1+5;return Math.min(Math.abs(a*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-a/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var a=this.radius/(this.containerMetrics.size/2);var b=this.xNow-this.containerMetrics.width/2;var c=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+b+"px, "+c+"px)";this.waveContainer.style.transform="translate3d("+b+"px, "+c+"px, 0)";this.wave.style.webkitTransform="scale("+a+","+a+")";this.wave.style.transform="scale3d("+a+","+a+",1)"},
downAction:function(a){var b=this.containerMetrics.width/2,c=this.containerMetrics.height/2;tAa(this);this.mouseDownStart=vwb();this.center?(this.xStart=b,this.yStart=c):(this.xStart=a?a.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=a?a.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=b,this.yEnd=c);a=this.containerMetrics;b=this.xStart;c=this.yStart;this.maxRadius=Math.max(uwb(b,c,0,0),uwb(b,c,
a.width,0),uwb(b,c,0,a.height),uwb(b,c,a.width,a.height));this.waveContainer.style.top=(this.containerMetrics.height-this.containerMetrics.size)/2+"px";this.waveContainer.style.left=(this.containerMetrics.width-this.containerMetrics.size)/2+"px";this.waveContainer.style.width=this.containerMetrics.size+"px";this.waveContainer.style.height=this.containerMetrics.size+"px"},
upAction:function(){this.isMouseDown&&(this.mouseUpStart=vwb())},
remove:function(){_.wn(_.wn(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.sr({_template:function(){if(twb!==void 0)return twb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-ripple--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_ripple.tp.yt.paper.ripple.css.js--\x3e<div id="background" class="style-scope tp-yt-paper-ripple"></div>\n<div id="waves" class="style-scope tp-yt-paper-ripple"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;swb===void 0&&(swb=document.createElement("template"));var d=swb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return twb=a},
is:"tp-yt-paper-ripple",behaviors:[_.FD],properties:{initialOpacity:{type:Number,value:.25},opacityDecayVelocity:{type:Number,value:.8},recenters:{type:Boolean,value:!1},center:{type:Boolean,value:!1},ripples:{type:Array,value:function(){return[]}},
animating:{type:Boolean,readOnly:!0,reflectToAttribute:!0,value:!1},holdDown:{type:Boolean,value:!1,observer:"_holdDownChanged"},noink:{type:Boolean,value:!1},_animating:{type:Boolean},_boundAnimate:{type:Function,value:function(){return this.animate.bind(this)}}},
get target(){return this.keyEventTarget},keyBindings:{"enter:keydown":"_onEnterKeydown","space:keydown":"_onSpaceKeydown","space:keyup":"_onSpaceKeyup"},attached:function(){_.wn(this).parentNode.nodeType==11?this.keyEventTarget=_.wn(this).getOwnerRoot().host:this.keyEventTarget=_.wn(this).parentNode;var a=this.keyEventTarget;this.listen(a,"up","uiUpAction");this.listen(a,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(a){a.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var a=0;a<this.ripples.length;++a)if(!this.ripples[a].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(a){this.noink||this.downAction(a)},
downAction:function(a){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(a),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(a){this.noink||this.upAction(a)},
upAction:function(a){this.holdDown||(this.ripples.forEach(function(b){b.upAction(a)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var a=0;a<this.ripples.length;++a){var b=this.ripples[a];b.isOpacityFullyDecayed&&!b.isRestingAtMaxRadius&&this.removeRipple(b)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var a=new uAa(this);_.wn(this.$.waves).appendChild(a.waveContainer);this.$.background.style.backgroundColor=a.color;this.ripples.push(a);this._setAnimating(!0);return a},
removeRipple:function(a){var b=this.ripples.indexOf(a);b<0||(this.ripples.splice(b,1),a.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var a;for(a=0;a<this.ripples.length;++a){var b=this.ripples[a];b.draw();this.$.background.style.opacity=b.outerOpacity;b.isOpacityFullyDecayed&&!b.isRestingAtMaxRadius&&this.removeRipple(b)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(a,b){b!==void 0&&(a?this.downAction():this.upAction())}});var cE={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(a){HD._downHandler.call(this,a);this.pressed&&this.ensureRipple(a)},
ensureRipple:function(a){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var b=this._rippleContainer||this.root;b&&_.wn(b).appendChild(this._ripple);if(a){b=_.wn(this._rippleContainer||this);var c=_.wn(a).rootTarget;b.deepContains(c)&&this._ripple.uiDownAction(a)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(a){this.hasRipple()&&(this._ripple.noink=a)}};var wwb={properties:{elevation:{type:Number,reflectToAttribute:!0,readOnly:!0}},observers:["_calculateElevation(focused, disabled, active, pressed, receivedFocusFromKeyboard)","_computeKeyboardClass(receivedFocusFromKeyboard)"],hostAttributes:{role:"button",tabindex:"0",animated:!0},_calculateElevation:function(){var a=1;this.disabled?a=0:this.active||this.pressed?a=4:this.receivedFocusFromKeyboard&&(a=3);this._setElevation(a)},
_computeKeyboardClass:function(a){this.toggleClass("keyboard-focus",a)},
_spaceKeyDownHandler:function(a){HD._spaceKeyDownHandler.call(this,a);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(a){HD._spaceKeyUpHandler.call(this,a);this.hasRipple()&&this._ripple.uiUpAction()}},xwb=[Dub,
_.GD,cE,wwb];_.ywb={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(a){a&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=a)},
_createRipple:function(){var a=cE._createRipple();a.id="ink";a.setAttribute("center","");a.classList.add("circle");return a}};
_.zwb=[Dub,_.GD,cE,_.ywb];_.Awb=[_.zwb,Gub,{_checkedChanged:function(){Fub._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){cE._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var Bwb;var Cwb;var Dwb=function(){};
_.f=Dwb.prototype;_.f.registered=function(){};
_.f.addOwnKeyBinding=function(){};
_.f.removeOwnKeyBindings=function(){};
_.f.keyboardEventMatchesKeys=function(){};
_.f._collectKeyBindings=function(){};
_.f._prepKeyBindings=function(){};
_.f._addKeyBinding=function(){};
_.f._resetKeyEventListeners=function(){};
_.f._listenKeyEventListeners=function(){};
_.f._unlistenKeyEventListeners=function(){};
_.f._onKeyBindingEvent=function(){};
_.f._triggerKeyHandler=function(){};
_.f._tapHandler=function(){};
_.f._focusChanged=function(){};
_.f._detectKeyboardFocus=function(){};
_.f._userActivate=function(){};
_.f._upHandler=function(){};
_.f._asyncClick=function(){};
_.f._pressedChanged=function(){};
_.f._ariaActiveAttributeChanged=function(){};
_.f._activeChanged=function(){};
_.f._controlStateChanged=function(){};
_.f._changedButtonState=function(){};
_.f._focusBlurHandler=function(){};
_.f._disabledChanged=function(){};
_.f._changedControlState=function(){};
_.f._buttonStateChanged=function(){};
_.f._downHandler=function(){};
_.f.ensureRipple=function(){};
_.f.getRipple=function(){};
_.f.hasRipple=function(){};
_.f._createRipple=function(){};
_.f._noinkChanged=function(){};
_.f._computeKeyboardClass=function(){};
_.f._spaceKeyDownHandler=function(){};
_.f._spaceKeyUpHandler=function(){};
_.f._setPressed=function(){};
_.f._setPointerDown=function(){};
_.f._setReceivedFocusFromKeyboard=function(){};
_.f._setFocused=function(){};
_.f._setElevation=function(){};
Dwb=_.sr({_template:function(){if(Cwb!==void 0)return Cwb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_button.tp.yt.paper.button.css.js--\x3e<slot class="style-scope tp-yt-paper-button"></slot>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
var b=a.content,c=b.insertBefore;Bwb===void 0&&(Bwb=document.createElement("template"));var d=Bwb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Cwb=a},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[xwb],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?wwb._calculateElevation.apply(this):this._setElevation(0)}});var Ewb;var Fwb;var Gwb={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(a){_.w("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(a)},
_onDialogClickWrapped:function(a){_.w("dialog_behavior_no_tap_killswitch")||this._onDialogClick(a)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(a,b){b&&(a?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
_updateClosingReasonConfirmed:function(a){this.closingReason=this.closingReason||{};this.closingReason.confirmed=a},
_onDialogClick:function(a){for(var b=_.wn(a).path,c=0,d,e=b.indexOf((d=this.hostElement)!=null?d:this);c<e;c++)if(d=b[c],d.hasAttribute&&(d.hasAttribute("dialog-dismiss")||d.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(d.hasAttribute("dialog-confirm"));this.close();a.stopPropagation();break}}},Hwb=[_.bE,
Gwb];var Iwb=document.createElement("template");_.B(Iwb,'<custom-style><style is="custom-style">/* autoprefixer: off */\n/**\n@license\nCopyright (c) 2015 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\nSPDX-License-Identifier: BSD-3-Clause\n*/\nhtml {\n  --primary-text-color: var(--light-theme-text-color);\n  --primary-background-color: var(--light-theme-background-color);\n  --secondary-text-color: var(--light-theme-secondary-color);\n  --disabled-text-color: var(--light-theme-disabled-color);\n  --divider-color: var(--light-theme-divider-color);\n  --error-color: #dd2c00;\n  --primary-color: #3f51b5;\n  --light-primary-color: #c5cae9;\n  --dark-primary-color: #303f9f;\n  --accent-color: #ff4081;\n  --light-accent-color: #ff80ab;\n  --dark-accent-color: #f50057;\n  --light-theme-background-color: #fff;\n  --light-theme-base-color: #000;\n  --light-theme-text-color: #212121;\n  --light-theme-secondary-color: #737373;\n  --light-theme-disabled-color: #9b9b9b;\n  --light-theme-divider-color: #dbdbdb;\n  --dark-theme-background-color: #212121;\n  --dark-theme-base-color: #fff;\n  --dark-theme-text-color: #fff;\n  --dark-theme-secondary-color: #bcbcbc;\n  --dark-theme-disabled-color: #646464;\n  --dark-theme-divider-color: #3c3c3c;\n  --text-primary-color: var(--dark-theme-text-color);\n  --default-primary-color: var(--primary-color);\n}</style></custom-style>');
document.head.appendChild(Iwb.content);var Jwb=document.createElement("template");_.B(Jwb,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(Jwb.content);_.sr({_template:function(){if(Fwb!==void 0)return Fwb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog.tp.yt.paper.dialog.css.js--\x3e<slot class="style-scope tp-yt-paper-dialog"></slot>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
var b=a.content,c=b.insertBefore;Ewb===void 0&&(Ewb=document.createElement("template"));var d=Ewb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Fwb=a},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[Hwb,Pub],listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},_renderOpened:function(){this.cancelAnimation();this.playAnimation("entry")},
_renderClosed:function(){this.cancelAnimation();this.playAnimation("exit")},
_onNeonAnimationFinish:function(){this.opened?this._finishRenderOpened():this._finishRenderClosed()}});var Kwb;var Lwb;_.sr({_template:function(){if(Lwb!==void 0)return Lwb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog-scrollable--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog_scrollable.tp.yt.paper.dialog.scrollable.css.js--\x3e<div id="scrollable" class="scrollable style-scope tp-yt-paper-dialog-scrollable" on-scroll="updateScrollState">\n  <slot class="style-scope tp-yt-paper-dialog-scrollable"></slot>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Kwb===void 0&&(Kwb=document.createElement("template"));var d=Kwb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Lwb=a},
is:"tp-yt-paper-dialog-scrollable",properties:{dialogElement:{type:Object}},get scrollTarget(){return this.$.scrollable},ready:function(){this._ensureTarget();this.classList.add("no-padding")},
attached:function(){this._ensureTarget();requestAnimationFrame(this.updateScrollState.bind(this))},
updateScrollState:function(){this.toggleClass("is-scrolled",this.scrollTarget.scrollTop>0);this.toggleClass("can-scroll",this.scrollTarget.offsetHeight<this.scrollTarget.scrollHeight);this.toggleClass("scrolled-to-bottom",this.scrollTarget.scrollTop+this.scrollTarget.offsetHeight>=this.scrollTarget.scrollHeight)},
_ensureTarget:function(){var a,b,c;if(((a=window.ShadyDOM)==null?void 0:a.noPatch)!==!0&&((b=window.ShadyDOM)==null?void 0:b.noPatch)!=="on-demand"||((c=this.__shady_parentNode)==null?void 0:c.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(Gwb)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var Mwb=_.hx(['<iron-iconset-svg name="paper-dropdown-menu" size="24">\n<svg><defs>\n<g id="arrow-drop-down"><path d="M12,15.7L5.6,9.4l0.7-0.7l5.6,5.6l5.6-5.6l0.7,0.7L12,15.7z"/></g>\n</defs></svg>\n</iron-iconset-svg>']),Nwb=_.Ipb(Mwb);Nwb.setAttribute("style","display: none;");document.head.appendChild(Nwb.content);var Owb;var Pwb;var Qwb;var Rwb;_.sr({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[PD],configure:function(a){var b=a.node,c=b.getBoundingClientRect().height;return this._effect=new KeyframeEffect(b,[{height:c/2+"px"},{height:c+"px"}],this.timingFromConfig(a))}});
_.sr({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[PD],configure:function(a){var b=a.node,c=b.getBoundingClientRect().width;return this._effect=new KeyframeEffect(b,[{width:c/2+"px"},{width:c+"px"}],this.timingFromConfig(a))}});
_.sr({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[PD],configure:function(a){var b=a.node,c=b.getBoundingClientRect().width;return this._effect=new KeyframeEffect(b,[{width:c+"px"},{width:c-c/20+"px"}],this.timingFromConfig(a))}});
_.sr({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[PD],configure:function(a){var b=a.node,c=b.getBoundingClientRect().height;this.setPrefixedProperty(b,"transformOrigin","0 0");return this._effect=new KeyframeEffect(b,[{height:c+"px",transform:"translateY(0)"},{height:c/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(a))}});var dE={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},Swb=function(){};
_.f=Swb.prototype;_.f.registered=function(){};
_.f.addOwnKeyBinding=function(){};
_.f.removeOwnKeyBindings=function(){};
_.f.keyboardEventMatchesKeys=function(){};
_.f._collectKeyBindings=function(){};
_.f._prepKeyBindings=function(){};
_.f._addKeyBinding=function(){};
_.f._resetKeyEventListeners=function(){};
_.f._listenKeyEventListeners=function(){};
_.f._unlistenKeyEventListeners=function(){};
_.f._onKeyBindingEvent=function(){};
_.f._triggerKeyHandler=function(){};
_.f._focusBlurHandler=function(){};
_.f._changedControlState=function(){};
_.f._setFocused=function(){};
Swb=_.sr({_template:function(){if(Rwb!==void 0)return Rwb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-menu-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_menu_button.tp.yt.paper.menu.button.css.js--\x3e<div id="trigger" on-tap="toggle" class="style-scope tp-yt-paper-menu-button">\n  <slot name="dropdown-trigger" class="style-scope tp-yt-paper-menu-button"></slot>\n</div>\n\n<tp-yt-iron-dropdown id="dropdown" opened="{{opened}}" horizontal-align="[[horizontalAlign]]" vertical-align="[[verticalAlign]]" dynamic-align="[[dynamicAlign]]" horizontal-offset="[[horizontalOffset]]" vertical-offset="[[verticalOffset]]" no-overlap="[[noOverlap]]" open-animation-config="[[openAnimationConfig]]" close-animation-config="[[closeAnimationConfig]]" no-animations="[[noAnimations]]" focus-target="[[_dropdownContent]]" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-overlay-canceled="__onIronOverlayCanceled" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" class="style-scope tp-yt-paper-menu-button">\n  <div slot="dropdown-content" class="dropdown-content style-scope tp-yt-paper-menu-button">\n    <slot id="content" name="dropdown-content" class="style-scope tp-yt-paper-menu-button"></slot>\n  </div>\n</tp-yt-iron-dropdown>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Qwb===void 0&&(Qwb=document.createElement("template"));var d=Qwb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Rwb=a},
is:"tp-yt-paper-menu-button",behaviors:[_.FD,_.GD],properties:{opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},noOverlap:{type:Boolean},noAnimations:{type:Boolean,value:!1},ignoreSelect:{type:Boolean,value:!1},closeOnActivate:{type:Boolean,
value:!1},openAnimationConfig:{type:Object,value:function(){return[{name:"fade-in-animation",timing:{delay:100,duration:200}},{name:"tp-yt-paper-menu-grow-width-animation",timing:{delay:100,duration:150,easing:dE.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:dE.ANIMATION_CUBIC_BEZIER}}]}},
closeAnimationConfig:{type:Object,value:function(){return[{name:"fade-out-animation",timing:{duration:150}},{name:"tp-yt-paper-menu-shrink-width-animation",timing:{delay:100,duration:50,easing:dE.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-shrink-height-animation",timing:{duration:200,easing:"ease-in"}}]}},
allowOutsideScroll:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_dropdownContent:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var a=_.wn(this.$.content).getDistributedNodes(),b=0,c=a.length;b<c;b++)if(a[b].nodeType===Node.ELEMENT_NODE)return a[b]},toggle:function(){this.opened?this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(a,b){a?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):b!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(a){_.GD._disabledChanged.apply(this,arguments);a&&this.opened&&this.close()},
__onIronOverlayCanceled:function(a){var b=this.$.trigger;_.wn(a.detail).path.indexOf(b)>-1&&a.preventDefault()}});
Object.keys(dE).forEach(function(a){Swb[a]=dE[a]});var Twb=_.ID.IronButtonState,Uwb=(0,_.FC)(HTMLElement);
_.sr({_template:function(){if(Pwb!==void 0)return Pwb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu-light--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu_light.tp.yt.paper.dropdown.menu.light.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" class="style-scope tp-yt-paper-dropdown-menu-light">\n  \n  <div id="dropdown-trigger" class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu-light" slot="dropdown-trigger" role="button" tabindex="0" aria-haspopup="listbox">\n    <label class$="[[_computeLabelClass(noLabelFloat,alwaysFloatLabel,hasContent)]] style-scope tp-yt-paper-dropdown-menu-light" style-target="label">\n      [[label]]\n    </label>\n    <div id="input" tabindex="-1" style-target="input" class="style-scope tp-yt-paper-dropdown-menu-light">\u00a0</div>\n    <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" class="style-scope tp-yt-paper-dropdown-menu-light"></tp-yt-iron-icon>\n    <span class="error style-scope tp-yt-paper-dropdown-menu-light">[[errorMessage]]</span>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu-light"></slot>\n</tp-yt-paper-menu-button>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Owb===void 0&&(Owb=document.createElement("template"));var d=Owb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Pwb=a},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[Twb,_.GD,cE,_.JD,_.MD],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0,observer:"_valueChanged"},label:{type:String},placeholder:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,hasContent:{type:Boolean,readOnly:!0}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(a){var b=(0,_.nm)(this);b.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:a});b.shadowRoot.appendChild(a);return Uwb.prototype._attachDom.call(this,a)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var a=this.contentElement;a&&a.selectedItem&&this._setSelectedItem(a.selectedItem)},
get contentElement(){for(var a=_.wn(this.$.content).getDistributedNodes(),b=0,c=a.length;b<c;b++)if(a[b].nodeType===Node.ELEMENT_NODE)return a[b]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(a){this._setSelectedItem(a.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(a){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a)===this&&this.open()},
_selectedItemChanged:function(a){var b="";a?b=a.label||a.getAttribute("label")||a.textContent.trim():b="";this.value=b;this._setSelectedItemLabel(b)},
_computeMenuVerticalOffset:function(a,b){return b?b:a?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var a=this.opened?"true":"false",b=this.contentElement;b&&b.setAttribute("aria-expanded",a)},
_computeLabelClass:function(a,b,c){var d="label";if(a)c&&(d+=" label-is-hidden");else if(c||b)d+=" label-is-floating";return d},
_valueChanged:function(){this.$.input&&this.$.input.textContent!==this.value&&(this.$.input.textContent=this.value);this._setHasContent(!!this.value);this.hasContent||(this.$.input.textContent="\u00a0")}});var Vwb;var Wwb;_.sr({is:"tp-yt-paper-icon-button",_template:function(){if(Wwb!==void 0)return Wwb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_button.tp.yt.paper.icon.button.css.js--\x3e<tp-yt-iron-icon id="icon" src="[[src]]" icon="[[icon]]" alt$="[[alt]]" class="style-scope tp-yt-paper-icon-button"></tp-yt-iron-icon>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Vwb===void 0&&(Vwb=document.createElement("template"));var d=Vwb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Wwb=a},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.zwb],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(a,b){var c=this.getAttribute("aria-label");c&&b!=c||this.setAttribute("aria-label",a)}});var Xwb;var Ywb;_.eE=[Dub,_.GD,{hostAttributes:{role:"option",tabindex:"0"}}];_.sr({_template:function(){if(Ywb!==void 0)return Ywb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_item.tp.yt.paper.icon.item.css.js--\x3e<div id="contentIcon" class="content-icon style-scope tp-yt-paper-icon-item">\n  <slot name="item-icon" class="style-scope tp-yt-paper-icon-item"></slot>\n</div>\n<slot class="style-scope tp-yt-paper-icon-item"></slot>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Xwb===void 0&&(Xwb=document.createElement("template"));var d=Xwb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Ywb=a},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.eE]});var Zwb;var $wb;var axb={attached:function(){this.fire("addon-attached")},
update:function(){}};var bxb=1,cxb=1,dxb=1,exb=[_.GD,_.FD,{properties:{label:{type:String},value:{notify:!0,type:String},disabled:{type:Boolean,value:!1},invalid:{type:Boolean,value:!1,notify:!0},allowedPattern:{type:String},type:{type:String},list:{type:String},pattern:{type:String},required:{type:Boolean,value:!1},errorMessage:{type:String},charCounter:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},autoValidate:{type:Boolean,value:!1},validator:{type:String},autocomplete:{type:String,
value:"off"},autofocus:{type:Boolean,observer:"_autofocusChanged"},inputmode:{type:String},minlength:{type:Number},maxlength:{type:Number},min:{type:String},max:{type:String},step:{type:String},name:{type:String},placeholder:{type:String,value:""},readonly:{type:Boolean,value:!1},size:{type:Number},autocapitalize:{type:String,value:"none"},autocorrect:{type:String,value:"off"},autosave:{type:String},results:{type:Number},accept:{type:String},multiple:{type:Boolean},inputDir:{type:String},_typesThatHaveText:{type:Array},
_ariaDescribedBy:{type:String,value:""},_ariaLabelledBy:{type:String,value:""},_inputId:{type:String,value:""}},listeners:{"addon-attached":"_onAddonAttached"},keyBindings:{"shift+tab:keydown":"_onShiftTabDown"},hostAttributes:{tabindex:0},get inputElement(){this.$||(this.$={});this.$.input||(this._generateInputId(),this.$.input=this.$$("#"+this._inputId));return this.$.input},get _focusableElement(){return this.inputElement},created:function(){this._typesThatHaveText="date datetime datetime-local month time week file".split(" ")},
attached:function(){this._updateAriaLabelledBy();!kC&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(a,b){a?a=a+" "+b:a=b;return a},
_onAddonAttached:function(a){a=_.wn(a).rootTarget;if(a.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,a.id);else{var b="paper-input-add-on-"+cxb++;a.id=b;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,b)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(a){_.GD._focusBlurHandler.call(this,a);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var a=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",a);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(a){try{var b=this.inputElement.selectionStart;this.value=a;this.inputElement.selectionStart=b;this.inputElement.selectionEnd=b}catch(c){this.value=a}},
_computeAlwaysFloatLabel:function(a,b){return b||a},
_updateAriaLabelledBy:function(){var a=_.wn(this.root).querySelector("label");if(a){if(a.id)var b=a.id;else b="paper-input-label-"+bxb++,a.id=b;this._ariaLabelledBy=b}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+dxb++)},
_onChange:function(a){this.shadowRoot&&this.fire(a.type,{sourceEvent:a},{node:this,bubbles:a.bubbles,cancelable:a.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var a=document.activeElement;a instanceof HTMLElement&&a!==document.body&&a!==document.documentElement||this._focusableElement.focus()}}}];var fxb;var gxb;_.sr({_template:function(){if(gxb!==void 0)return gxb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-char-counter--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_char_counter.tp.yt.paper.input.char.counter.css.js--\x3e<span class="style-scope tp-yt-paper-input-char-counter">[[_charCounterStr]]</span>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;fxb===void 0&&(fxb=document.createElement("template"));var d=fxb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return gxb=a},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[axb],properties:{_charCounterStr:{type:String,value:"0"}},update:function(a){if(a.inputElement){a.value=a.value||"";var b=a.value.toString().length.toString();a.inputElement.hasAttribute("maxlength")&&(b+="/"+a.inputElement.getAttribute("maxlength"));this._charCounterStr=b}}});var hxb;var ixb;_.sr({_template:function(){if(ixb!==void 0)return ixb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_container.tp.yt.paper.input.container.css.js--\x3e<div class="floated-label-placeholder style-scope tp-yt-paper-input-container" aria-hidden="true" hidden="[[noLabelFloat]]">\n  \u00a0\n</div>\n\n<div class="input-wrapper style-scope tp-yt-paper-input-container">\n  <span class="prefix style-scope tp-yt-paper-input-container"><slot name="prefix" class="style-scope tp-yt-paper-input-container"></slot></span>\n\n  <div class$="[[_computeInputContentClass(noLabelFloat,alwaysFloatLabel,focused,invalid,_inputHasContent)]] style-scope tp-yt-paper-input-container" id="labelAndInputContainer">\n    <slot name="label" class="style-scope tp-yt-paper-input-container"></slot>\n    <slot name="input" on-slotchange="onInputSlotChanged" class="style-scope tp-yt-paper-input-container"></slot><slot name="after-input" class="style-scope tp-yt-paper-input-container"></slot>\n  </div>\n\n  <span class="suffix style-scope tp-yt-paper-input-container"><slot name="suffix" class="style-scope tp-yt-paper-input-container"></slot></span>\n</div>\n\n<div class$="[[_computeUnderlineClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <div class="unfocused-line style-scope tp-yt-paper-input-container"></div>\n  <div class="focused-line style-scope tp-yt-paper-input-container"></div>\n</div>\n\n<div class$="[[_computeAddOnContentClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <slot name="add-on" class="style-scope tp-yt-paper-input-container"></slot>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;hxb===void 0&&(hxb=document.createElement("template"));var d=hxb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return ixb=a},
is:"tp-yt-paper-input-container",hostAttributes:{"style-target":"host"},properties:{noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},attrForValue:{type:String,value:"bind-value"},autoValidate:{type:Boolean,value:!1},invalid:{observer:"_invalidChanged",type:Boolean,value:!1},focused:{readOnly:!0,type:Boolean,value:!1,notify:!0},noUnfloatedLabelError:{type:Boolean,value:!1},_addons:{type:Array},_inputHasContent:{type:Boolean,value:!1},_inputSelector:{type:String,value:"input,tp-yt-iron-input,textarea,.paper-input-input"},
_boundOnFocus:{type:Function,value:function(){return this._onFocus.bind(this)}},
_boundOnBlur:{type:Function,value:function(){return this._onBlur.bind(this)}},
_boundOnInput:{type:Function,value:function(){return this._onInput.bind(this)}},
_boundValueChanged:{type:Function,value:function(){return this._onValueChanged.bind(this)}}},
listeners:{"addon-attached":"_onAddonAttached","iron-input-validate":"_onIronInputValidate"},get _valueChangedEvent(){return this.attrForValue+"-changed"},get _propertyForValue(){return cm(this.attrForValue)},get _inputElement(){return _.wn(this).querySelector(this._inputSelector)},get _inputElementValue(){return this._inputElement[this._propertyForValue]||this._inputElement.value},ready:function(){this.__isFirstValueUpdate=!0;this._addons||(this._addons=[]);this.addEventListener("focus",this._boundOnFocus,
!0);this.addEventListener("blur",this._boundOnBlur,!0)},
attached:function(){this.attrForValue||this.addEventListener("input",this._onInput);this.initializeInput()},
onInputSlotChanged:function(){this._addons||(this._addons=[]);this.attrForValue&&this._inputElement.addEventListener(this._valueChangedEvent,this._boundValueChanged);this.initializeInput()},
initializeInput:function(){this._inputElement&&(this._inputElementValue&&this._inputElementValue!=""?this._handleValueAndAutoValidate(this._inputElement):this._handleValue(this._inputElement))},
_onAddonAttached:function(a){this._addons||(this._addons=[]);a=a.target;this._addons.indexOf(a)===-1&&(this._addons.push(a),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(a){this._handleValueAndAutoValidate(a.target)},
_onValueChanged:function(a){var b=a.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,b.value===void 0||b.value===""))return;this._handleValueAndAutoValidate(a.target)},
_handleValue:function(a){var b=this._inputElementValue;b||b===0||a.type==="number"&&!a.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:a,value:b,invalid:this.invalid})},
_handleValueAndAutoValidate:function(a){this.autoValidate&&a&&(this.invalid=!(a.validate?a.validate(this._inputElementValue):a.checkValidity()));this._handleValue(a)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(a){if(this._addons)for(var b,c=0;b=this._addons[c];c++)b.update(a)},
_computeInputContentClass:function(a,b,c,d,e){var g="input-content";a?(e&&(g+=" label-is-hidden"),d&&!this.noUnfloatedLabelError&&(g+=" is-invalid")):(a=this.querySelector("label"),b||e?(g+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",d?g+=" is-invalid":c&&(g+=" label-is-highlighted")):(a&&(this.$.labelAndInputContainer.style.position="relative"),d&&!this.noUnfloatedLabelError&&(g+=" is-invalid")));c&&(g+=" focused");return g},
_computeUnderlineClass:function(a,b){var c="underline";b?c+=" is-invalid":a&&(c+=" is-highlighted");return c},
_computeAddOnContentClass:function(a,b){var c="add-on-content";b?c+=" is-invalid":a&&(c+=" is-highlighted");return c}});var jxb;var kxb;_.sr({_template:function(){if(kxb!==void 0)return kxb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-error--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_error.tp.yt.paper.input.error.css.js--\x3e\n<div id="a11yWrapper" class="style-scope tp-yt-paper-input-error">\n  <slot class="style-scope tp-yt-paper-input-error"></slot>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;jxb===void 0&&(jxb=document.createElement("template"));var d=jxb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return kxb=a},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[axb],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(a){this._setInvalid(a.invalid)}});_.sr({is:"tp-yt-paper-input",_template:function(){if($wb!==void 0)return $wb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input.tp.yt.paper.input.css.js--\x3e<tp-yt-paper-input-container id="container" no-label-float="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-input">\n  <slot name="prefix" slot="prefix" class="style-scope tp-yt-paper-input"></slot>\n\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-input">[[label]]</label>\n\n  \n  <tp-yt-iron-input bind-value="{{value}}" slot="input" class="input-element style-scope tp-yt-paper-input" id$="[[_inputId]]" maxlength$="[[maxlength]]" allowed-pattern="[[allowedPattern]]" invalid="{{invalid}}" validator="[[validator]]">\n    <input aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" disabled$="[[disabled]]" title$="[[title]]" type$="[[type]]" pattern$="[[pattern]]" required$="[[required]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" min$="[[min]]" max$="[[max]]" step$="[[step]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" list$="[[list]]" size$="[[size]]" autocapitalize$="[[autocapitalize]]" autocorrect$="[[autocorrect]]" on-change="_onChange" tabindex$="[[tabIndex]]" autosave$="[[autosave]]" results$="[[results]]" accept$="[[accept]]" multiple$="[[multiple]]" role$="[[inputRole]]" aria-haspopup$="[[inputAriaHaspopup]]" dir$="[[inputDir]]" class="style-scope tp-yt-paper-input">\n  </tp-yt-iron-input>\n\n  <slot name="suffix" slot="suffix" class="style-scope tp-yt-paper-input"></slot>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-input">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-input"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Zwb===void 0&&(Zwb=document.createElement("template"));var d=Zwb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return $wb=a},
behaviors:[exb,_.JD],properties:{value:{type:String},noUnfloatedLabelError:{type:Boolean,value:!1},inputRole:{type:String,value:void 0},inputAriaHaspopup:{type:String,value:void 0}},get _focusableElement(){return this.inputElement._inputElement},listeners:{"iron-input-ready":"_onIronInputReady"},_onIronInputReady:function(){this.$.nativeInput||(this.$.nativeInput=this.$$("input"));this.inputElement&&this._typesThatHaveText.indexOf(this.$.nativeInput.type)!==-1&&(this.alwaysFloatLabel=!0);this.inputElement.bindValue&&
this.$.container._handleValueAndAutoValidate(this.inputElement)}});var lxb;var mxb;_.sr({_template:function(){if(mxb!==void 0)return mxb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item.tp.yt.paper.item.css.js--\x3e<slot class="style-scope tp-yt-paper-item"></slot>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=
a.content,c=b.insertBefore;lxb===void 0&&(lxb=document.createElement("template"));var d=lxb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return mxb=a},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.eE]});var nxb;var oxb;_.sr({_template:function(){if(oxb!==void 0)return oxb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item-body--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item_body.tp.yt.paper.item.body.css.js--\x3e<slot class="style-scope tp-yt-paper-item-body"></slot>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
var b=a.content,c=b.insertBefore;nxb===void 0&&(nxb=document.createElement("template"));var d=nxb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return oxb=a},
is:"tp-yt-paper-item-body"});var pxb;var qxb;var rxb=function(){};
_.f=rxb.prototype;_.f.indexOf=function(){};
_.f.selectPrevious=function(){};
_.f.selectNext=function(){};
_.f.selectIndex=function(){};
_.f.forceSynchronousItemUpdate=function(){};
_.f._checkFallback=function(){};
_.f._addListener=function(){};
_.f._removeListener=function(){};
_.f._activateEventChanged=function(){};
_.f._updateItems=function(){};
_.f._selectSelected=function(){};
_.f._filterItem=function(){};
_.f._valueToItem=function(){};
_.f._valueToIndex=function(){};
_.f._indexToValue=function(){};
_.f._valueForItem=function(){};
_.f._observeItems=function(){};
_.f._itemActivate=function(){};
_.f.multiChanged=function(){};
_.f._updateAttrForSelected=function(){};
_.f._updateSelected=function(){};
_.f._selectMulti=function(){};
_.f._selectionChange=function(){};
_.f._toggleSelected=function(){};
_.f._valuesToItems=function(){};
_.f.registered=function(){};
_.f.addOwnKeyBinding=function(){};
_.f.removeOwnKeyBindings=function(){};
_.f.keyboardEventMatchesKeys=function(){};
_.f._collectKeyBindings=function(){};
_.f._prepKeyBindings=function(){};
_.f._addKeyBinding=function(){};
_.f._resetKeyEventListeners=function(){};
_.f._listenKeyEventListeners=function(){};
_.f._unlistenKeyEventListeners=function(){};
_.f._onKeyBindingEvent=function(){};
_.f._triggerKeyHandler=function(){};
_.f.select=function(){};
_.f._resetTabindices=function(){};
_.f._updateMultiselectable=function(){};
_.f._focusWithKeyboardEvent=function(){};
_.f._clearSearchText=function(){};
_.f._focusPrevious=function(){};
_.f._focusNext=function(){};
_.f._applySelection=function(){};
_.f._focusedItemChanged=function(){};
_.f._onIronItemsChanged=function(){};
_.f._onShiftTabDown=function(){};
_.f._onFocus=function(){};
_.f._onUpKey=function(){};
_.f._onDownKey=function(){};
_.f._onEscKey=function(){};
_.f._onKeydown=function(){};
_.f._activateHandler=function(){};
_.f._disabledChanged=function(){};
_.f._setSelectedItem=function(){};
_.f._setItems=function(){};
_.f._setSelectedItems=function(){};
_.f._setFocusedItem=function(){};
rxb=_.sr({_template:function(){if(qxb!==void 0)return qxb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-listbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_listbox.tp.yt.paper.listbox.css.js--\x3e<slot class="style-scope tp-yt-paper-listbox"></slot>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
var b=a.content,c=b.insertBefore;pxb===void 0&&(pxb=document.createElement("template"));var d=pxb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return qxb=a},
is:"tp-yt-paper-listbox",behaviors:[Kub],hostAttributes:{role:"listbox"}});var sxb;var txb;var uxb={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(a,b){return[a||b?"active":"",b?"cooldown":""].join(" ")},
__activeChanged:function(a,b){this.__setAriaHidden(!a);this.__coolingDown=!a&&b},
__altChanged:function(a){this.setAttribute("aria-label",a||"loading")},
__setAriaHidden:function(a){a?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.sr({_template:function(){if(txb!==void 0)return txb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner.tp.yt.paper.spinner.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner">\n  <div class="spinner-layer layer-1 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-2 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-3 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-4 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;sxb===void 0&&(sxb=document.createElement("template"));var d=sxb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return txb=a},
is:"tp-yt-paper-spinner",behaviors:[uxb]});var vxb;var wxb;_.sr({_template:function(){if(wxb!==void 0)return wxb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner-lite--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner_lite.tp.yt.paper.spinner.lite.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner-lite">\n  <div class="spinner-layer style-scope tp-yt-paper-spinner-lite">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;vxb===void 0&&(vxb=document.createElement("template"));var d=vxb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return wxb=a},
is:"tp-yt-paper-spinner-lite",behaviors:[uxb]});var xxb;var yxb;_.sr({_template:function(){if(yxb!==void 0)return yxb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tab--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tab.tp.yt.paper.tab.css.js--\x3e<div class="tab-content style-scope tp-yt-paper-tab" style-target="tab-content">\n  <slot class="style-scope tp-yt-paper-tab"></slot>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;xxb===void 0&&(xxb=document.createElement("template"));var d=xxb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return yxb=a},
is:"tp-yt-paper-tab",behaviors:[_.GD,_.ID.IronButtonState,cE],properties:{link:{type:Boolean,value:!1,reflectToAttribute:!0},noBoldOnFocus:{type:Boolean,value:!1,reflectToAttribute:!0}},hostAttributes:{role:"tab","style-target":"host"},listeners:{down:"_updateNoink",tap:"_onTap"},attached:function(){this._updateNoink()},
get _parentNoink(){var a=_.wn(this).parentNode;return!!a&&!!a.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(a){if(this.link){var b=this.queryEffectiveChildren("a");b&&a.target!==b&&b.click()}}});var zxb;var Axb;var Bxb=_.hx(['<iron-iconset-svg name="paper-tabs" size="24">\n<svg><defs>\n<g id="chevron-left"><path d="M14.6,18.4L8.3,12l6.4-6.4l0.7,0.7L9.7,12l5.6,5.6L14.6,18.4z"/></g>\n<g id="chevron-right"><path d="M9.4,18.4l-0.7-0.7l5.6-5.6L8.6,6.4l0.7-0.7l6.4,6.4L9.4,18.4z"/></g>\n</defs></svg>\n</iron-iconset-svg>']),Cxb=_.Ipb(Bxb);document.head.appendChild(Cxb.content);_.sr({_template:function(){if(Axb!==void 0)return Axb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tabs--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tabs.tp.yt.paper.tabs.css.js--\x3e<tp-yt-paper-icon-button id="left" icon="paper-tabs:chevron-left" alt="[[altPrevious]]" class$="[[_computeScrollButtonClass(_leftHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onLeftScrollButtonDown" tabindex="-1" disabled="[[_leftHidden]]"></tp-yt-paper-icon-button>\n\n<div id="tabsContainer" on-track="_scroll" on-down="_down" class="style-scope tp-yt-paper-tabs">\n  <div id="tabsContent" style-target="content" class$="[[_computeTabsContentClass(scrollable, fitContainer)]] style-scope tp-yt-paper-tabs">\n    <div id="selectionBar" style-target="selection-bar" class$="[[_computeSelectionBarClass(noBar, alignBottom)]] style-scope tp-yt-paper-tabs" on-transitionend="_onBarTransitionEnd"></div>\n    <slot class="style-scope tp-yt-paper-tabs"></slot>\n  </div>\n</div>\n\n<tp-yt-paper-icon-button id="right" icon="paper-tabs:chevron-right" alt="[[altNext]]" class$="[[_computeScrollButtonClass(_rightHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onRightScrollButtonDown" tabindex="-1" disabled="[[_rightHidden]]"></tp-yt-paper-icon-button>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;zxb===void 0&&(zxb=document.createElement("template"));var d=zxb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Axb=a},
is:"tp-yt-paper-tabs",behaviors:[_.OD,_.Mub],properties:{noink:{type:Boolean,value:!1,observer:"_noinkChanged"},noBar:{type:Boolean,value:!1},noSlide:{type:Boolean,value:!1},scrollable:{type:Boolean,value:!1},fitContainer:{type:Boolean,value:!1},disableDrag:{type:Boolean,value:!1},hideScrollButtons:{type:Boolean,value:!1},removeIdleScrollButtons:{type:Boolean,value:!1},alignBottom:{type:Boolean,value:!1},selectable:{type:String,value:"tp-yt-paper-tab"},autoselect:{type:Boolean,value:!1},autoselectDelay:{type:Number,
value:0},altNext:{type:String,value:""},altPrevious:{type:String,value:""},_step:{type:Number,value:10},_holdDelay:{type:Number,value:1},_leftHidden:{type:Boolean,value:!1},_rightHidden:{type:Boolean,value:!1},_previousTab:{type:Object}},hostAttributes:{role:"tablist"},listeners:{"iron-resize":"_onTabSizingChanged","iron-items-changed":"_onTabSizingChanged","iron-select":"_onIronSelect","iron-deselect":"_onIronDeselect"},keyBindings:{"left:keyup right:keyup":"_onArrowKeyup"},created:function(){this._holdJob=
null;this._pendingActivationTimeout=this._pendingActivationItem=void 0;this._bindDelayedActivationHandler=this._delayedActivationHandler.bind(this);this.addEventListener("blur",this._onBlurCapture.bind(this),!0);this._rightHidden=this._leftHidden=this.hideScrollButtons},
ready:function(){this.setScrollDirection("y",this.$.tabsContainer)},
detached:function(){this._cancelPendingActivation()},
_noinkChanged:function(a){_.wn(this).querySelectorAll("tp-yt-paper-tab").forEach(a?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(a){a.setAttribute("noink","")},
_removeNoinkAttribute:function(a){a.removeAttribute("noink")},
_computeScrollButtonClass:function(a,b,c,d){return!b||c?"hidden":a?d?"hidden":"not-visible":""},
_computeTabsContentClass:function(a,b){var c="tabs-content";a&&(c+=" scrollable");if(!a||b)c+=" fit-container";return c},
_computeSelectionBarClass:function(a,b){var c="selection-bar";a?c+=" hidden":b&&(c+=" align-bottom");return c},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(a){return""+a},
_onIronSelect:function(a){this._tabChanged(a.detail.item,this._previousTab);this._previousTab=a.detail.item;this.cancelDebouncer("tab-changed")},
_onIronDeselect:function(){this.debounce("tab-changed",function(){this._tabChanged(null,this._previousTab);this._previousTab=null},1)},
_activateHandler:function(){this._cancelPendingActivation();_.ND._activateHandler.apply(this,arguments)},
_scheduleActivation:function(a,b){this._pendingActivationItem=a;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,b)},
_delayedActivationHandler:function(){var a=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;a.fire(this.activateEvent,null,{bubbles:!0,cancelable:!0})},
_cancelPendingActivation:function(){this._pendingActivationTimeout!==void 0&&(this.cancelAsync(this._pendingActivationTimeout),this._pendingActivationTimeout=this._pendingActivationItem=void 0)},
_onArrowKeyup:function(){this.autoselect&&this._scheduleActivation(this.focusedItem,this.autoselectDelay)},
_onBlurCapture:function(a){a.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(a,b){this.scrollable&&this._affectScroll(b&&-b.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(a){this.$.tabsContainer.scrollLeft+=a;a=this.$.tabsContainer.scrollLeft;this._leftHidden=a===0||this.hideScrollButtons;this._rightHidden=a===this._tabContainerScrollSize||this.hideScrollButtons},
_onLeftScrollButtonDown:function(){this._scrollToLeft();this._holdJob=setInterval(this._scrollToLeft.bind(this),this._holdDelay)},
_onRightScrollButtonDown:function(){this._scrollToRight();this._holdJob=setInterval(this._scrollToRight.bind(this),this._holdDelay)},
_onScrollButtonUp:function(){clearInterval(this._holdJob);this._holdJob=null},
_scrollToLeft:function(){this._affectScroll(-this._step)},
_scrollToRight:function(){this._affectScroll(this._step)},
_tabChanged:function(a,b){if(a){var c=this.$.tabsContent.getBoundingClientRect(),d=c.width,e=a.getBoundingClientRect();c=e.left-c.left;this._pos={width:this._calcPercent(e.width,d),left:this._calcPercent(c,d)};if(this.noSlide||b==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var g=b.getBoundingClientRect();b=this.items.indexOf(b);a=this.items.indexOf(a);this.$.selectionBar.classList.add("expand");
a=b<a;this._isRTL&&(a=!a);a?this._positionBar(this._calcPercent(e.left+e.width-g.left,d)-5,this._left):this._positionBar(this._calcPercent(g.left+g.width-e.left,d)-5,this._calcPercent(c,d)+5);this.scrollable&&this._scrollToSelectedIfNeeded(e.width,c)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(a,b){b-=this.$.tabsContainer.scrollLeft;b<0?this.$.tabsContainer.scrollLeft+=b:(b+=a-this.$.tabsContainer.offsetWidth,b>0&&(this.$.tabsContainer.scrollLeft+=b))},
_calcPercent:function(a,b){return 100*a/b},
_positionBar:function(a,b){a=a||0;b=b||0;this._width=a;this._left=b;this.transform("translateX("+b+"%) scaleX("+a/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var a=this.$.selectionBar.classList;a.contains("expand")?(a.remove("expand"),a.add("contract"),this._positionBar(this._pos.width,this._pos.left)):a.contains("contract")&&a.remove("contract")}});var Dxb;var Exb;_.sr({_template:function(){if(Exb!==void 0)return Exb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_textarea.tp.yt.paper.textarea.css.js--\x3e<tp-yt-paper-input-container no-label-float$="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-textarea">\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-textarea">[[label]]</label>\n\n  <tp-yt-iron-autogrow-textarea class="paper-input-input style-scope tp-yt-paper-textarea" slot="input" id$="[[_inputId]]" aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" bind-value="{{value}}" invalid="{{invalid}}" validator$="[[validator]]" disabled$="[[disabled]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" autocapitalize$="[[autocapitalize]]" rows$="[[rows]]" max-rows$="[[maxRows]]" on-change="_onChange"></tp-yt-iron-autogrow-textarea>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-textarea">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-textarea"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Dxb===void 0&&(Dxb=document.createElement("template"));var d=Dxb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Exb=a},
is:"tp-yt-paper-textarea",behaviors:[exb,_.JD],properties:{_ariaLabelledBy:{observer:"_ariaLabelledByChanged",type:String},_ariaDescribedBy:{observer:"_ariaDescribedByChanged",type:String},value:{type:String},rows:{type:Number,value:1},maxRows:{type:Number,value:0},noUnfloatedLabelError:{type:Boolean,value:!1}},get selectionStart(){return this.$.input.textarea.selectionStart},set selectionStart(a){this.$.input.textarea.selectionStart=a},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(a){this.$.input.textarea.selectionEnd=a},_ariaLabelledByChanged:function(a){this._focusableElement.setAttribute("aria-labelledby",a)},
_ariaDescribedByChanged:function(a){this._focusableElement.setAttribute("aria-describedby",a)},
get _focusableElement(){return this.inputElement.textarea}});var Fxb;var Gxb;/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt SPDX-License-Identifier:
BSD-3-Clause
*/
var Hxb=function(){};
_.f=Hxb.prototype;_.f.addOwnKeyBinding=function(){};
_.f.removeOwnKeyBindings=function(){};
_.f.keyboardEventMatchesKeys=function(){};
_.f._collectKeyBindings=function(){};
_.f._prepKeyBindings=function(){};
_.f._addKeyBinding=function(){};
_.f._resetKeyEventListeners=function(){};
_.f._listenKeyEventListeners=function(){};
_.f._unlistenKeyEventListeners=function(){};
_.f._onKeyBindingEvent=function(){};
_.f._triggerKeyHandler=function(){};
_.f._tapHandler=function(){};
_.f._focusChanged=function(){};
_.f._detectKeyboardFocus=function(){};
_.f._userActivate=function(){};
_.f._upHandler=function(){};
_.f._spaceKeyDownHandler=function(){};
_.f._spaceKeyUpHandler=function(){};
_.f._asyncClick=function(){};
_.f._pressedChanged=function(){};
_.f._ariaActiveAttributeChanged=function(){};
_.f._activeChanged=function(){};
_.f._controlStateChanged=function(){};
_.f._changedButtonState=function(){};
_.f._focusBlurHandler=function(){};
_.f._disabledChanged=function(){};
_.f._changedControlState=function(){};
_.f._downHandler=function(){};
_.f.ensureRipple=function(){};
_.f.getRipple=function(){};
_.f.hasRipple=function(){};
_.f._noinkChanged=function(){};
_.f._focusedChanged=function(){};
_.f.registered=function(){};
_.f._invalidChanged=function(){};
_.f.hasValidator=function(){};
_.f.validate=function(){};
_.f._getValidity=function(){};
_.f._requiredChanged=function(){};
_.f._valueChanged=function(){};
_.f._checkedChanged=function(){};
_.f._buttonStateChanged=function(){};
_.f._setPressed=function(){};
_.f._setPointerDown=function(){};
_.f._setReceivedFocusFromKeyboard=function(){};
_.f._setFocused=function(){};
Hxb=_.sr({is:"tp-yt-paper-toggle-button",_template:function(){if(Gxb!==void 0)return Gxb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toggle-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toggle_button.tp.yt.paper.toggle.button.css.js--\x3e<div class="toggle-container style-scope tp-yt-paper-toggle-button">\n  <div id="toggleBar" class="toggle-bar style-scope tp-yt-paper-toggle-button"></div>\n  <div id="toggleButton" class="toggle-button style-scope tp-yt-paper-toggle-button"></div>\n</div>\n\n<div class="toggle-label style-scope tp-yt-paper-toggle-button"><slot class="style-scope tp-yt-paper-toggle-button"></slot></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Fxb===void 0&&(Fxb=document.createElement("template"));var d=Fxb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Gxb=a},
behaviors:[_.Awb],hostAttributes:{role:"button","aria-pressed":"false",tabindex:0},properties:{},listeners:{track:"_ontrack"},__calculateIsRtl:function(){return window.getComputedStyle(this).direction==="rtl"},
attached:function(){this.__calculateIsRtl()&&this.setAttribute("dir","rtl");_.Qm(this,function(){_.Bm(this,"pan-y")})},
_ontrack:function(a){a=a.detail;a.state==="start"?this._trackStart(a):a.state==="track"?this._trackMove(a):a.state==="end"&&this._trackEnd(a)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(a){a=a.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+a:a)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+a:a));this.translate3d(this._x+"px",0,0,this.$.toggleButton);this._isRtl?this._userActivate(this._x<-this._width/2):this._userActivate(this._x>this._width/2)},
_trackEnd:function(){this.$.toggleButton.classList.remove("dragging");this.transform("",this.$.toggleButton)},
_createRipple:function(){this._rippleContainer=this.$.toggleButton;var a=cE._createRipple();a.id="ink";a.setAttribute("recenters","");a.classList.add("circle","toggle-ink");return a}});var Ixb;var Jxb;_.sr({_template:function(){if(Jxb!==void 0)return Jxb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tooltip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tooltip.tp.yt.paper.tooltip.css.js--\x3e<div id="tooltip" class="hidden style-scope tp-yt-paper-tooltip" style-target="tooltip">\n  <slot class="style-scope tp-yt-paper-tooltip"></slot>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Ixb===void 0&&(Ixb=document.createElement("template"));var d=Ixb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Jxb=a},
is:"tp-yt-paper-tooltip",hostAttributes:{role:"tooltip",tabindex:-1,"aria-label":"tooltip"},properties:{for:{type:String,observer:"_findTarget"},manualMode:{type:Boolean,value:!1,observer:"_manualModeChanged"},position:{type:String,value:"bottom"},fitToVisibleBounds:{type:Boolean,value:!1},offset:{type:Number,value:14},marginTop:{type:Number,value:14},alwaysDisplay:{type:Boolean,value:!1},animationDelay:{type:Number,value:500,observer:"_delayChange"},animationEntry:{type:String,value:""},animationExit:{type:String,
value:""},animationConfig:{type:Object,value:function(){return{entry:[{name:"fade-in-animation",node:this,timing:{delay:0}}],exit:[{name:"fade-out-animation",node:this}]}}},
_showing:{type:Boolean,value:!1}},listeners:{webkitAnimationEnd:"_onAnimationEnd"},get target(){var a=_.wn(this).parentNode,b=_.wn(this).getOwnerRoot(),c;this.for?c=_.wn(b).querySelector("#"+this.for):c=a.nodeType==Node.DOCUMENT_FRAGMENT_NODE?b.host:a;return c},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(a){a==="entry"?this.show():a==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.wn(this).textContent.trim()===""){for(var a=!0,b=_.wn(this).getEffectiveChildNodes(),c=0;c<b.length;c++)if(b[c].textContent.trim()!==""){a=!1;break}if(a)return}this._showing=!0;this.$.tooltip.classList.remove("hidden");this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.updatePosition();this._animationPlaying=!0;this.$.tooltip.classList.add(this._getAnimationType("entry"))}},
hide:function(){this._showing&&(this._animationPlaying?(this._showing=!1,this._cancelAnimation()):(this._onAnimationFinish(),this._showing=!1,this._animationPlaying=!0))},
updatePosition:function(){if(this._target&&this.offsetParent){var a=this.offset;this.marginTop!=14&&this.offset==14&&(a=this.marginTop);var b=this.offsetParent.getBoundingClientRect(),c=this._target.getBoundingClientRect(),d=this.getBoundingClientRect(),e=(c.width-d.width)/2,g=(c.height-d.height)/2,k=c.left-b.left,m=c.top-b.top;switch(this.position){case "top":var n=k+e;var r=m-d.height-a;break;case "bottom":n=k+e;r=m+c.height+a;break;case "left":n=k-d.width-a;r=m+g;break;case "right":n=k+c.width+
a,r=m+g}this.fitToVisibleBounds?(b.left+n+d.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,n)+"px",this.style.right="auto"),b.top+r+d.height>window.innerHeight?(this.style.bottom=b.height+"px",this.style.top="auto"):(this.style.top=Math.max(-b.top,r)+"px",this.style.bottom="auto")):(this.style.left=n+"px",this.style.top=r+"px")}},
_addListeners:function(){this._target&&(this.listen(this._target,"mouseenter","show"),this.listen(this._target,"focus","show"),this.listen(this._target,"mouseleave","hide"),this.listen(this._target,"blur","hide"),this.listen(this._target,"tap","hide"));this.listen(this.$.tooltip,"animationend","_onAnimationEnd");this.listen(this,"mouseenter","hide")},
_findTarget:function(){this.manualMode||this._removeListeners();this._target=this.target;this.manualMode||this._addListeners()},
_delayChange:function(a){a!==500&&this.updateStyles({"--paper-tooltip-delay-in":a+"ms"})},
_manualModeChanged:function(){this.manualMode?this._removeListeners():this._addListeners()},
_cancelAnimation:function(){this.$.tooltip.classList.remove(this._getAnimationType("entry"));this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.add("hidden")},
_onAnimationFinish:function(){this._showing&&(this.$.tooltip.classList.remove(this._getAnimationType("entry")),this.$.tooltip.classList.remove("cancel-animation"),this.$.tooltip.classList.add(this._getAnimationType("exit")))},
_onAnimationEnd:function(){this._animationPlaying=!1;this._showing||(this.$.tooltip.classList.remove(this._getAnimationType("exit")),this.$.tooltip.classList.add("hidden"))},
_getAnimationType:function(a){if(a==="entry"&&this.animationEntry!=="")return this.animationEntry;if(a==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[a]&&typeof this.animationConfig[a][0].name==="string"){if(this.animationConfig[a][0].timing&&this.animationConfig[a][0].timing.delay&&this.animationConfig[a][0].timing.delay!==0){var b=this.animationConfig[a][0].timing.delay;a==="entry"?this.updateStyles({"--paper-tooltip-delay-in":b+"ms"}):a==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":b+
"ms"})}return this.animationConfig[a][0].name}},
_removeListeners:function(){this._target&&(this.unlisten(this._target,"mouseenter","show"),this.unlisten(this._target,"focus","show"),this.unlisten(this._target,"mouseleave","hide"),this.unlisten(this._target,"blur","hide"),this.unlisten(this._target,"tap","hide"));this.unlisten(this.$.tooltip,"animationend","_onAnimationEnd");this.unlisten(this,"mouseenter","hide")}});var Kxb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Kxb,_.bd);var Lxb=_.kd(Kxb,[0,_.ky]);var fE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(fE,_.bd);var Mxb=[3,4],Nxb=[5,6];var Oxb=[0,Mxb,Nxb,_.Ydb,-1,_.jy,_.Zdb,-1,T$a,U$a];var Pxb=_.kd(fE,Oxb),Qxb=_.md(Oxb);var Rxb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Rxb,_.bd);var Sxb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Sxb,_.bd);var Txb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Txb,_.bd);var Uxb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Uxb,_.bd);var Vxb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Vxb,_.bd);var gE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(gE,_.bd);gE.prototype.getSource=function(){return _.Ux(this,1)};
gE.prototype.getMessage=function(){return _.Tx(this,4)};
gE.prototype.getData=function(){return _.Xj(this,Vxb,8)};var Wxb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Wxb,_.bd);var hE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(hE,_.bd);var iE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(iE,_.bd);var jE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(jE,_.bd);jE.prototype.getUrl=function(){return _.Tx(this,1)};
jE.prototype.setUrl=function(a){return _.vf(this,1,a)};
jE.prototype.hasUrl=function(){return _.og(this,1)!=null};var Xxb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Xxb,_.bd);var Yxb=[3];var Zxb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Zxb,_.bd);var kE=function(a){var b=new Zxb;return _.Yj(b,2,a)};
Zxb.prototype.getLanguage=function(){return Wx(this,4,lE)};
var $xb=function(a){var b=kE(1);return _.rd(b,6,lE,a)},lE=[3,
4,5,6];var ayb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(ayb,_.bd);var mE=function(a){var b=new ayb;return _.Yj(b,1,a)},nE=function(a,b){return _.rd(a,2,byb,b)},byb=[2,
3,4,5];var cyb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(cyb,_.bd);var oE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(oE,_.bd);var dyb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(dyb,_.bd);var eyb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(eyb,_.bd);var fyb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(fyb,_.bd);var gyb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(gyb,_.bd);var pE=function(a){return _.Xj(a,iE,5)};var hyb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(hyb,_.bd);hyb.prototype.getValue=function(){return Rx(this,1)};var iyb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(iyb,_.bd);var qE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(qE,_.bd);qE.prototype.getMetadata=function(){return _.Xx(this,eyb,7,rE)};
qE.prototype.hasMetadata=function(){return _.Gx(this,eyb,7,rE)};
var jyb=_.vda(qE),rE=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var sE=function(a){this.JSC$9747_name_=a;this.files_=[];this.directories_=[];this.directoryMap_={}};
sE.prototype.getName=function(){return this.JSC$9747_name_};var uE=function(a,b){this.callback_=b;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new sE("");kyb(this,a,this.rootDirectory_);tE(this)},kyb=function(a,b,c){for(var d=0;d<b.length;d++){var e=b[d];
e.isFile?(a.fileOps_++,e.file((0,_.wg)(a.handleFileSuccess_,a,c),(0,_.wg)(a.handleFileError_,a))):a.unscannedDirectories_.push(new lyb(e,c))}},tE=function(a){if(a.unscannedDirectories_.length>0&&a.directoryOps_<5&&!a.hasError_){a.directoryOps_++;
var b=a.unscannedDirectories_.shift(),c=b.entry,d=new sE(c.name);b=b.parent;b.directoryMap_[d.getName()]=d;b.directories_.push(d);c=c.createReader();c.readEntries((0,_.wg)(a.handleDirectorySuccess_,a,c,d),(0,_.wg)(a.handleDirectoryError_,a))}a.directoryOps_!=0||a.fileOps_!=0||a.unscannedDirectories_.length!=0&&!a.hasError_||a.callback_(a.rootDirectory_.files_,a.rootDirectory_.directories_,a.hasError_)};
uE.prototype.handleDirectorySuccess_=function(a,b,c){kyb(this,c,b);c.length==0?(this.directoryOps_--,tE(this)):a.readEntries((0,_.wg)(this.handleDirectorySuccess_,this,a,b),(0,_.wg)(this.handleDirectoryError_,this))};
uE.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;tE(this)};
uE.prototype.handleFileSuccess_=function(a,b){a.files_.push(b);this.fileOps_--;tE(this)};
uE.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;tE(this)};
var lyb=function(a,b){this.entry=a;this.parent=b};var vE=function(a){_.Hz.call(this);_.rs(a,"drop",this.onObjectsDropped_,!1,this);_.rs(a,"dragenter",this.onFilesDragged_,!1,this);_.rs(a,"dragover",this.onFilesDragged_,!1,this);_.rs(a,"dragleave",this.onDragLeave_,!1,this);_.rs(a,"dragend",this.onDragLeave_,!1,this)};
_.sx(vE,_.Hz);var myb=function(a,b){_.Cz.call(this,"f");this.files=a;this.directories=b};
_.sx(myb,_.Cz);var nyb=function(){_.Cz.call(this,"h")};
_.sx(nyb,_.Cz);var oyb=function(){_.Cz.call(this,"i")};
_.sx(oyb,_.Cz);var pyb=function(){_.Cz.call(this,"g")};
_.sx(pyb,_.Cz);vE.prototype.onObjectsDropped_=function(a){var b=this;a.preventDefault();var c=a.event_.dataTransfer;if((a=c&&c.items)&&a.length>0&&a[0].webkitGetAsEntry){c=[];for(var d=[],e=0;e<a.length;e++){var g=a[e].webkitGetAsEntry();g?c.push(g):d.push(a[e])}new uE(c,function(k,m,n){n?b.dispatchEvent(new pyb("Error occurred while reading from the file system.")):b.dispatchEvent(new myb(k,m,d))})}else(a=c&&c.files)&&this.dispatchEvent(new myb(Array.from(a),[]))};
vE.prototype.onFilesDragged_=function(a){a.type==="dragenter"&&this.dispatchEvent(new nyb);a.preventDefault()};
vE.prototype.onDragLeave_=function(){this.dispatchEvent(new oyb)};var qyb=function(a,b){this.JSC$9770_name_=a;this.inputElement_=b};
qyb.prototype.getName=function(){return this.JSC$9770_name_};
qyb.prototype.getInputElement=function(){return this.inputElement_};var wE=function(a,b,c){b=b===void 0?"single_file":b;c=c===void 0?[]:c;_.Hz.call(this);this.overlayTarget_=a;this.parentOverlay_=a!=null?a.parentNode:_.pg("scotty-overlay-parent");this.selectorType_=b;this.acceptTypes_=c;this.overlay_=ryb(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.z(wE,_.Hz);
var ryb=function(a,b,c,d){var e=document.createElement("input");e.setAttribute("type","file");e.setAttribute("name","Filedata");_.rs(e,"change",a.onFilesSelected_,!1,a);c==="multiple_file"&&(e.multiple="true");c==="single_directory"&&(e.webkitdirectory="true");d.length>0&&e.setAttribute("accept",d.join(","));e.style.position="absolute";e.style.overflow="hidden";e.style.height="0px";e.style.width="0px";e.style.opacity="0";e.setAttribute("aria-hidden","true");e.setAttribute("tabIndex",-1);if(a.overlayTarget_!=
null)return e.style.height=b.offsetHeight+"px",e.style.width=b.offsetWidth+"px",a.parentOverlay_&&(a.parentOverlay_.style.position="relative"),_.Xy(e,b),cz(e,new _.Ef(b.offsetLeft,b.offsetTop)),e;a.parentOverlay_.appendChild(e);return e};
wE.prototype.click=function(){this.overlay_.click()};
wE.prototype.onFilesSelected_=function(a){a:{try{var b=(new XMLHttpRequest).upload!==void 0;break a}catch(r){}b=!1}if(b){var c;a=Array.from((c=a.target.files)!=null?c:[]);c=[];if(this.selectorType_==="single_directory"&&(_.zx||_.Pj||_.yx)){c=new sE("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(b=0;b<a.length;b++)for(var d=a[b],e=d.webkitRelativePath.split("/"),g=c,k=0;k<e.length;k++){var m=e[k];if(k==e.length-1){m!="."&&g.files_.push(d);break}var n=g.directoryMap_[m];n==void 0&&(m=
n=new sE(m),g.directoryMap_[m.getName()]=m,g.directories_.push(m));g=n}c=c.directories_}this.dispatchEvent(new syb(a,c,null))}else a=a.target.value,a.match(/^c:\\fakepath\\/i)&&(a=a.substring(12)),this.dispatchEvent(new syb([],[],new qyb(a,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=ryb(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var syb=function(a,b){_.Cz.call(this,"j");this.files=a;this.directories=b};
_.z(syb,_.Cz);var tyb=function(a){this.uploadUrl_=a};var uyb=function(){_.Hz.call(this)};
_.sx(uyb,_.Hz);var xE=function(a){_.Cz.call(this,a)};
_.sx(xE,_.Cz);var yE=function(a){_.Cz.call(this,a)};
_.sx(yE,_.Cz);var vyb=function(a,b,c,d,e){_.Hz.call(this);c=document.createElement("form");c.setAttribute("method",b);c.setAttribute("enctype","multipart/form-data");c.setAttribute("encoding","multipart/form-data");b=document.createElement("input");b.setAttribute("type","hidden");b.setAttribute("name","metadata");b.setAttribute("value",e);c.appendChild(b);c.appendChild(d);this.JSC$9787_form_=c;a=new _.Yn(a);_.Og(a,"upload_protocol","multipart");this.JSC$9787_url_=a.toString();this.JSC$9787_request_=new kD;this.state_=
"Ready";this.JSC$9787_errorDescription_=null;this.JSC$9787_eventHandler_=new _.an(this);_.kg(this,this.JSC$9787_eventHandler_);this.JSC$9787_eventHandler_.listen(this.JSC$9787_request_,"success",this.onTransferSuccess_);this.JSC$9787_eventHandler_.listen(this.JSC$9787_request_,"error",this.onTransferError_)};
_.z(vyb,uyb);_.f=vyb.prototype;_.f.run=function(){this.state_="Transferring";var a=this.JSC$9787_request_,b=this.JSC$9787_form_;if(a.JSC$9212_active_)throw Error("re");var c=new _.Yn(this.JSC$9787_url_||b.action);a.JSC$9212_form_=b;b=a.JSC$9212_form_;c=_.Md(c.toString());c!==void 0&&(b.action=c);Xsb(a)};
_.f.getResponseCode=function(){return null};
_.f.getResponseText=function(){return this.JSC$9787_request_&&this.JSC$9787_request_.getResponseText()||null};
_.f.JSC$25548_getErrorDescription=function(){return this.JSC$9787_errorDescription_};
_.f.cancel=function(){this.JSC$9787_request_&&this.JSC$9787_request_.abort();this.state_="Cancelled";this.dispatchEvent(new xE("o"))};
_.f.pause=function(){};
_.f.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new xE("l"))};
_.f.onTransferError_=function(){this.JSC$9787_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new xE("n"))};var zE=function(){_.Pz.call(this)};
_.z(zE,_.Pz);zE.prototype.createXhr=function(){var a=_.Pz.prototype.createXhr.call(this);a.upload&&(a.upload.onprogress=(0,_.wg)(this.onProgress_,this));return a};
zE.prototype.onProgress_=function(a){this.dispatchEvent(a)};var wyb=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},yyb=function(a,b){var c=a.attempt_+1;
if(a.maxAttempts_>0&&c>a.maxAttempts_)return!1;c==0?b():a.delayCallId_=Mz(function(){a.delayCallId_=null;b()},xyb(a),a);
a.attempt_=c;return!0};
wyb.prototype.reset=function(){this.delayCallId_&&_.ja.clearTimeout(this.delayCallId_);this.attempt_=-1};
var xyb=function(a){var b=250*Math.pow(2,a.attempt_);a.maxDelayMs_>=0&&(b=Math.min(b,a.maxDelayMs_));return b};var wAa=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var AE=function(){_.Hz.call(this);this.JSC$9797_request_=this.state_=null;this.JSC$9797_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9797_bytesTransferred_=0;this.retryIterator_=new wyb;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9797_errorDescription_=null;this.JSC$9797_eventHandler_=new _.an(this);_.kg(this,this.JSC$9797_eventHandler_);this.JSC$9797_url_=this.blob_=null;this.JSC$9797_method_=void 0;this.chunkSize_=this.JSC$9797_metadata_=
this.JSC$9797_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9797_responseText_=this.JSC$9797_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.sx(AE,uyb);_.f=AE.prototype;_.f.run=function(){BE(this)};
_.f.getResponseCode=function(){return this.JSC$9797_responseCode_};
_.f.getResponseText=function(){return this.JSC$9797_responseText_};
_.f.JSC$25548_getErrorDescription=function(){return this.JSC$9797_errorDescription_};
_.f.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9797_eventHandler_.removeAll();this.JSC$9797_request_&&this.JSC$9797_request_.abort();this.retryIterator_.reset();var a=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(a==="Upload"||a==="Query")a=new zE,a.JSC$7645_withCredentials_=this.JSC$9797_withCredentials_,a.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9797_bytesTransferred_=
0;this.dispatchEvent(new xE("o"))}};
_.f.pause=function(){this.pauseRequested_=!0};
var BE=function(a){var b=a.state_;a.pauseRequested_?(a.pauseRequested_=!1,a.stateAfterUnpausing_=b,a.state_="Paused"):yyb(a.retryIterator_,function(){switch(a.state_){case "Start":a.JSC$9797_request_=new zE;var c=_.Cf.clone(a.JSC$9797_headers_);a.blob_.size!=null&&(c["Content-Length"]=a.blob_.size);c=xAa(c);c["X-Goog-Upload-Protocol"]="resumable";c["X-Goog-Upload-Command"]="start";a.JSC$9797_eventHandler_.removeAll();a.JSC$9797_eventHandler_.listen(a.JSC$9797_request_,"complete",a.onStartComplete_);
a.JSC$9797_request_.JSC$7645_withCredentials_=a.JSC$9797_withCredentials_;a.JSC$9797_request_.send(a.JSC$9797_url_,a.JSC$9797_method_,a.JSC$9797_metadata_,c);a.lastCommandResponseCode_=null;a.dispatchEvent(new yE("q"));break;case "Upload":c=a.transferHandle_.uploadUrl_;var d=a.blob_.size;if(Qlb()){var e=a.chunkSize_;var g=a.offset_+e>=d;d=Plb(a.blob_,a.offset_,g?d:a.offset_+e)}else a.offset_=0,d=a.blob_,g=!0;a.JSC$9797_request_=new zE;a.JSC$9797_request_.JSC$7645_withCredentials_=a.JSC$9797_withCredentials_;
a.JSC$9797_eventHandler_.removeAll();a.JSC$9797_eventHandler_.listen(a.JSC$9797_request_,"progress",a.onUploadProgress_);e=(0,_.wg)(a.JSC$9799_onUploadComplete_,a,a.offset_+d.size,g);a.JSC$9797_eventHandler_.listen(a.JSC$9797_request_,"complete",e);a.lastCommandResponseCode_=null;a.dispatchEvent(new yE("q"));g=Object.assign({},a.JSC$9797_headers_||{},{"X-Goog-Upload-Command":"upload"+(g?", finalize":""),"X-Goog-Upload-Offset":a.offset_});a.JSC$9797_request_.send(c,"POST",d,g);break;case "Query":a.JSC$9797_request_=
new zE;a.JSC$9797_eventHandler_.removeAll();a.JSC$9797_eventHandler_.listen(a.JSC$9797_request_,"complete",a.onQueryComplete_);c=Object.assign({},a.JSC$9797_headers_||{},{"X-Goog-Upload-Command":"query"});a.JSC$9797_request_.send(a.transferHandle_.uploadUrl_,"POST","",c);a.lastCommandResponseCode_=null;a.dispatchEvent(new yE("q"));break;default:throw Error("gf");}})||CE(a,"Transfer encountered too many consecutive failures.")},CE=function(a,b){a.state_="Error";
a.JSC$9797_errorDescription_=b;a.dispatchEvent(new xE("n"))};
AE.prototype.onStartComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new yE("r"));if(zyb(b))Ayb(this,b);else if(Byb(b)){a=Sg(a.target.getAllResponseHeaders());for(var c in a)_.na(c.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new xE("m"));c=yn(a,"X-Goog-Upload-URL");a=(a=yn(a,"X-Goog-Upload-Chunk-Granularity"))?parseInt(a,10):1;c===void 0||isNaN(a)||a<=0?CE(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
a)*a,this.transferHandle_=new tyb(c),this.dispatchEvent(new xE("p")),this.state_="Upload",this.retryIterator_.reset(),BE(this))}else BE(this)};
AE.prototype.onUploadProgress_=function(a){this.JSC$9797_bytesTransferred_=this.offset_+a.loaded;this.dispatchEvent(new xE("k"))};
AE.prototype.JSC$9799_onUploadComplete_=function(a,b,c){var d=this,e,g;return _.l(function(k){switch(k.nextAddress){case 1:e=c.target;d.lastCommandResponseCode_=e.getStatus();d.dispatchEvent(new yE("r"));if(Cyb(e)||e.getStatus()==404)return d.JSC$9797_bytesTransferred_=a,Ayb(d,e),k.return();if(Byb(e)){k.jumpTo(2);break}if(!(g=d.detectCorruptedBlobEnabled_)){k.jumpTo(3);break}return _.p(k,Dyb(d),4);case 4:g=k.yieldResult;case 3:if(g)return CE(d,"Blob has been modified or corrupted."),k.return();d.requireUploadRequestModification_=
e.getStatus()==400;d.state_="Query";BE(d);return k.return();case 2:if(b)return CE(d,"Got a non-final success response after issuing a finalize command."),k.return();d.JSC$9797_bytesTransferred_=a;d.offset_=a;d.retryIterator_.reset();BE(d);return k.return()}})};
AE.prototype.onQueryComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new yE("r"));zyb(b)?(b.getStatus()===200&&(this.JSC$9797_bytesTransferred_=this.blob_.size),Ayb(this,b)):Byb(b)?(a=Sg(a.target.getAllResponseHeaders()),a=parseInt(yn(a,"X-Goog-Upload-Size-Received"),10),isNaN(a)?CE(this,"Server did not respond with current offset."):a<this.offset_?CE(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
a+"."):this.requireUploadRequestModification_&&this.offset_===a?CE(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<a&&this.retryIterator_.reset(),this.offset_=this.JSC$9797_bytesTransferred_=a,this.state_="Upload",BE(this))):BE(this)};
var Ayb=function(a,b){a.JSC$9797_responseCode_=b.getStatus();var c=Sg(b.getAllResponseHeaders());yAa(c);a.JSC$9797_responseText_=b.getResponseText();a.state_="Response received";a.dispatchEvent(new xE("l"))},Byb=function(a){var b=a.getStatus();
a=Sg(a.getAllResponseHeaders());a=yn(a,"X-Goog-Upload-Status");return b===200&&a==="active"},Cyb=function(a){a=Sg(a.getAllResponseHeaders());
return yn(a,"X-Goog-Upload-Status")==="final"},zyb=function(a){if(Cyb(a))return!0;
a=a.getStatus();return a>=400&&a<500},Dyb=function(a){var b;
return _.l(function(c){if(c.nextAddress==1){if(!a.blob_||a.originalBlobSize_<=0)return c.return(!1);if(a.blob_.size!==a.originalBlobSize_)return c.return(!0);_.pe(c,2);if(b=Plb(a.blob_,0,1)){var d=new VC,e=mrb(d);d.reader_.readAsBinaryString(b);c=_.p(c,e,4)}else c=c.return(!0);return c}if(c.nextAddress!=2)return c.return(a.blob_.size!==a.originalBlobSize_);_.te(c);return c.return(!0)})};var Eyb=function(a,b,c,d,e,g){_.Hz.call(this);this.payload_=d;this.JSC$9800_url_=a;this.JSC$9800_method_=b;this.JSC$9800_headers_=c;this.JSC$9800_metadata_=e;this.encoding_=g||"binary";a=new _.HC;this.boundary_="uploader-"+Lg()+"-"+a.JSC$9061_toIsoString();this.JSC$9800_responseText_=this.JSC$9800_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9800_errorDescription_=null;this.JSC$9800_eventHandler_=new _.an(this);_.kg(this,this.JSC$9800_eventHandler_)};
_.z(Eyb,uyb);_.f=Eyb.prototype;
_.f.run=function(){var a=_.Cf.clone(this.JSC$9800_headers_);this.payload_.length!=null&&(a["Content-Length"]=this.payload_.length);a=xAa(a);a["X-Goog-Upload-Protocol"]="multipart";a["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new zE;this.JSC$9800_eventHandler_.removeAll();this.JSC$9800_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9800_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9800_url_,this.JSC$9800_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9800_metadata_+"\r\n--")+this.boundary_+'\r\nContent-Disposition: form-data; name="Filedata"\r\nContent-Transfer-Encoding: '+(this.encoding_+"\r\n\r\n")+this.payload_+"\r\n--"+this.boundary_+"--\r\n",a)};
_.f.getResponseCode=function(){return this.JSC$9800_responseCode_};
_.f.getResponseText=function(){return this.JSC$9800_responseText_};
_.f.JSC$25548_getErrorDescription=function(){return this.JSC$9800_errorDescription_};
_.f.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9800_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new xE("o")))};
_.f.pause=function(){};
_.f.onTransferProgress_=function(){this.dispatchEvent(new xE("k"))};
_.f.onTransferComplete_=function(a){var b=a.target.getStatus();b===void 0||b===-1?(this.JSC$9800_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new xE("n"))):(this.JSC$9800_responseCode_=b,a=a.target,b=Sg(a.getAllResponseHeaders()),yAa(b),this.JSC$9800_responseText_=a.getResponseText(),this.state_="Complete",this.dispatchEvent(new xE("l")))};_.Fyb=function(a,b,c,d){d=d===void 0?!1:d;if(c instanceof qyb)return new vyb(a,"POST",b,c.getInputElement(),"");if(typeof c==="string"||c instanceof String)return new Eyb(a,"POST",b,c,"");var e=new AE(void 0);e.JSC$9797_url_=a;e.JSC$9797_method_="POST";e.JSC$9797_headers_=b;e.blob_=c;e.originalBlobSize_=c.size;e.JSC$9797_metadata_="";d&&(e.JSC$9797_withCredentials_=d);e.state_="Start";return e};var DE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(DE,_.bd);_.f=DE.prototype;_.f.getEnableSsEngine=function(){return _.Qx(this,2)};
_.f.getEnableAwr=function(){return _.Qx(this,3)};
_.f.getAlohaAutoGaRollout=function(){return _.Qx(this,5)};
_.f.getEnableConfigurator=function(){return _.Qx(this,6)};
_.f.getEnableMweb=function(){return _.Qx(this,7)};
var Hyb=function(){var a=Gyb();return _.An(a,7,!0)};
DE.prototype.getEnableCtlConsentCheckbox=function(){return _.Qx(this,8)};
DE.prototype.getEnableIframe=function(){return _.Qx(this,9)};
var Gyb=function(){var a=new DE;a=_.An(a,5,!0);a=_.An(a,2,!0);a=_.An(a,4,!1);a=_.An(a,8,!0);return _.An(a,9,!0)};
DE.prototype.getEnableScreenshotNudge=function(){return _.Qx(this,10)};
var Iyb=function(){var a=Hyb();return _.An(a,10,!0)};
DE.prototype.getEnableWebStartupConfigEndpoint=function(){return _.Qx(this,11)};
DE.prototype.getEnableJunkNudge=function(){return _.Qx(this,12)};
var PAa=function(){var a=Iyb();return _.An(a,12,!0)};
_.f=DE.prototype;_.f.getEnableConfiguratorLocale=function(){return _.Qx(this,13)};
_.f.getEnableTinyNoPointer=function(){return _.Qx(this,14)};
_.f.getEnableSupportSessionLogging=function(){return _.Qx(this,15)};
_.f.getEnableFileUploadForScreenshot=function(){return _.Qx(this,16)};
_.f.getEnableDirectDeflectionForSingleCategory=function(){return _.Qx(this,17)};
_.f.getEnableImageSanitization=function(){return _.Qx(this,18)};
_.f.getEnableAlohaBinarySplit=function(){return _.Qx(this,19)};
_.f.getEnableDbFeedbackIntents=function(){return _.Qx(this,20)};
_.f.getEnableMarkMandatoryFieldsWithRequired=function(){return _.Qx(this,21)};
_.f.getEnableFeedbackCategoryCustomUi=function(){return _.Qx(this,22)};
_.f.getEnableRealtimeCtl=function(){return _.Qx(this,23)};var OAa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(OAa,_.bd);var zAa=[/https:\/\/sandbox\.google\.com\/tools\/feedback/,/https:\/\/feedback-frontend-qual[a-z0-9.]*\.google\.com\/inapp/,/https:\/\/feedback-frontend-qual[a-z0-9.]*\.google\.com\/tools\/feedback/,/https:\/\/.*\.googleusercontent\.com\/inapp/];var BAa="af am ar-EG ar-JO ar-MA ar-SA ar-XB ar az be bg bn bs ca cs cy da de-AT de-CH de el en en-GB en-AU en-CA en-IE en-IN en-NZ en-SG en-XA en-XC en-ZA es es-419 es-AR es-BO es-CL es-CO es-CR es-DO es-EC es-GT es-HN es-MX es-NI es-PA es-PE es-PR es-PY es-SV es-US es-UY es-VE et eu fa fi fil fr-CA fr-CH fr gl gsw gu he hi hr hu hy id in is it iw ja ka kk km kn ko ky ln lo lt lv mk ml mn mo mr ms my nb ne nl no pa pl pt pt-BR pt-PT ro ru si sk sl sq sr-Latn sr sv sw ta te th tl tr uk ur uz vi zh zh-CN zh-HK zh-TW zu".split(" ");var CAa=_.hx(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),DAa=_.hx(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var FAa,HAa;var Jyb,Kyb;
Jyb=function(a,b,c){a.timeOfStartCall=(new Date).getTime();var d=c||_.ja,e=d.document,g=a.nonce||_.Ud(d.document);g&&!a.nonce&&(a.nonce=g);if(a.flow=="help"){var k=_.Ji("document.location.href",d);!a.helpCenterContext&&k&&(a.helpCenterContext=k.substring(0,1200));k=!0;if(b&&JSON&&JSON.stringify){var m=JSON.stringify(b);(k=m.length<=1200)&&(a.psdJson=m)}k||(b={invalidPsd:!0})}b=[a,b,c];d.GOOGLE_FEEDBACK_START_ARGUMENTS=b;c=a.feedbackServerUri||"//www.google.com/tools/feedback";if(k=d.GOOGLE_FEEDBACK_START)k.apply(d,b);
else{d=c+"/load.js?";for(var n in a)b=a[n],b==null||_.Za(b)||(d+=encodeURIComponent(n)+"="+encodeURIComponent(b)+"&");a=uf(e).createElement("SCRIPT");g&&a.setAttribute("nonce",g);_.Zd(a,_.xd(d));e.body.appendChild(a)}};
Kyb=function(a,b,c,d){var e,g;_.l(function(k){e=c||_.ja;var m=a.serverEnvironment==="DEV",n=c||_.ja;n=a.nonce||_.Ud(n.document);m={integrationKeys:{productId:a.productId,feedbackBucket:a.bucket,triggerId:a.triggerId},callbacks:{onClose:a.callback,onLoad:a.onLoadCallback},formContent:{locale:a.locale,disableScreenshot:a.disableScreenshotting,productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0,thankYouMessage:void 0,userEmail:void 0,
defaultFormInputValues:void 0,defaultFormInputValuesString:void 0,abuseLink:a.abuseLink,additionalDataConsent:a.additionalDataConsent},initializationData:{isLocalServer:m,nonce:n,useNightlyRelease:m,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:a.feedbackServerUri,colorScheme:a.colorScheme},extraData:{productVersion:a.productVersion,authUser:a.authuser,configuratorId:a.configuratorId,customZIndex:a.customZIndex,tinyNoPointer:a.tinyNoPointer,
allowNonLoggedInFeedback:a.allowNonLoggedInFeedback,enableAnonymousFeedback:a.enableAnonymousFeedback}};b&&(n=new Map(Object.entries(b)),m.extraData.productSpecificData=n);g=m;return _.p(k,LAa(g,d,e),0)})};
_.Lyb=function(a,b,c){try{if(a.flow==="help"){var d=a.helpCenterPath.replace(/^\//,"");_.Td(c||window,"https://support.google.com/"+d)}else a.flow==="submit"?Jyb(a,b,c):QAa(a.productId,a.feedbackServerUri).then(function(e){e=_.Xj(e,DE,1);var g=!n9a||(e==null?void 0:e.getEnableMweb()),k=!a.tinyNoPointer||(e==null?void 0:e.getEnableTinyNoPointer());!e||e.getAlohaAutoGaRollout()&&g&&k?Kyb(a,b,c,e):Jyb(a,b,c)},function(e){e&&e.name!=="DuplicateFormError"&&Jyb(a,b,c)})}catch(e){Kyb(a,b,c,null)}};
_.Rj("userfeedback.api.startFeedback",_.Lyb);var RAa=/https?:\/\/\S+\.\S+/,SAa=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],TAa=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var f4a=function(a){var b=a.split(""),c=[-263237435,15,b,function(d,e,g){var k=e.length;g.forEach(function(m,n,r){this.push(r[n]=e[(e.indexOf(m)-e.indexOf(this[n])+n+k--)%e.length])},d.split(""))},
function(d,e){d=(d%e.length+e.length)%e.length;e.splice(-d).reverse().forEach(function(g){e.unshift(g)})},
"response",function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 58:d-=14;case 91:case 92:case 93:continue;case 123:d=47;case 94:case 95:case 96:continue;case 46:d=95}e.push(String.fromCharCode(d))}return e},
null,12,1540023973,65941107,null,b,function(d,e){for(d=(d%e.length+e.length)%e.length;d--;)e.unshift(e.pop())},
695603893,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
"'[;'[(",function(d,e){d.push(e)},
null,function(d,e,g,k,m){return e(g,k,m)},
"continuation",b,function(d,e){if(d.length!=0){e=(e%d.length+d.length)%d.length;var g=d[0];d[0]=d[e];d[e]=g}},
function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 91:d=44;continue;case 123:d=65;break;case 65:d-=18;continue;case 58:d=96;continue;case 46:d=95}e.push(String.fromCharCode(d))}return e},
'"),/]];'];c[7]=c;c[11]=c;c[18]=c;try{(((0,c[15])(c[21]),c[22])(c[11],c[9]),c[22])(c[new Date("1970-01-01T04:30:12.000+04:30")/1E3],c[1]),((0,c[22])(c[11],c[23]),c[4])(c[10],c[18]),(0,c[20])(c[21],c[14])<<(0,c[17])(c[18],c[1]),(0,c[4])(c[8],c[21]),(0,c[19])((0,c[19])((0,c[17])(c[7],c[9]),c[3],c[20],(0,c[6])(),c[2]),c[3],c[5],(0,c[15])(),c[2])}catch(d){return"aTlOUOubTO4AP____8P_"+a}return b.join("")};_.Myb=new _.X("runAttestationCommand");var Nyb=new _.X("verifyCommand");_.$u=new _.X("accessibilityContext");var Oyb=new _.X("accessibilityData");var Pyb=new _.X("profileCardCommand");var kVa=new _.X("signInEndpoint");var jVa=new _.X("signOutEndpoint");var Ryb;_.Qyb=new _.X("accountItemSectionRenderer");Ryb=new _.X("accountItemRenderer");_.Syb=new _.X("saveCommandToSessionStorageAction");var Tyb=new _.X("crossAccountChannelTransferEndpoint");var hUa=new _.X("getAccountMenuEndpoint");_.iUa=new _.X("getAccountSwitcherEndpoint");var gUa=new _.X("getAccountsListEndpoint");var Uyb=new _.X("getAccountsListInnertubeEndpoint");_.Vyb=new _.X("addToToastAction");var Wyb=new _.X("hideEnclosingAction");_.EE=new _.X("replaceEnclosingAction");_.Xyb=new _.X("buttonRefreshAction");var Yyb=new _.X("adsControlFlowOpportunityReceivedCommand");var Zyb=new _.X("openAdAllowlistInstructionCommand");var $yb=new _.X("videoMastheadAdPrimaryVideoRenderer");var azb=new _.X("displayAdRenderer");var XHa=new _.X("instreamVideoAdRenderer");_.bzb=new _.X("inFeedAdLayoutRenderer");var czb=new _.X("sequenceItemInPlayerAdLayoutRenderer");_.dzb=new _.X("adSlotRenderer");var ezb=new _.X("adAvatarViewModel");var fzb=new _.X("adBadgeViewModel");var gzb=new _.X("adButtonViewModel");var FE=new _.X("adImageViewModel");var R0a=new _.X("reelsAdCardButtonedViewModel");var hzb=new _.X("reelsPlayerOverlayLayoutViewModel");var izb=new _.X("showSchedulingPanelCommand");var jzb=new _.X("backstageCommentsRenderer");var kzb=new _.X("backstageImageRenderer");var lzb=new _.X("backstagePostRenderer");var mzb=new _.X("postRenderer");var nzb=new _.X("sharedPostRenderer");var ozb=new _.X("createBackstagePostEndpoint");var pzb=new _.X("getPostVideoPreviewEndpoint");var qzb=new _.X("updateBackstagePostEndpoint");var rzb=new _.X("filterChipTransformCommand");var szb=new _.X("insertRichSectionCommand");var R6a=new _.X("talkToRecsDeselectCommand");var tzb=new _.X("talkToRecsNextCommand");var Q6a=new _.X("talkToRecsSelectCommand");var uzb=new _.X("talkToRecsUpdateTextCommand");_.oq=new _.X("browseEndpoint");_.vzb=new _.X("confirmDialogEndpoint");var wzb=new _.X("expandOnHoverCardRenderer");var xzb=new _.X("lumiereShelfDetailsRenderer");var yzb=new _.X("revealBusinessEmailCommand");var zzb=new _.X("validateChannelHandleCommand");var Azb=new _.X("channelCreationFormEndpoint");var Bzb=new _.X("aboutChannelViewModel");var Czb=new _.X("channelThumbnailWithLinkRenderer");var Dzb=new _.X("channelCreationServiceEndpoint");var Ezb=new _.X("updateChannelPageSettingsEndpoint");var GE=function(a){this.delegate=a},HE=function(){GE.apply(this,arguments)};
_.z(HE,GE);_.Um.Object.defineProperties(HE.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(a){this.delegate.entityMetadata=a}}});var Fzb=function(){HE.apply(this,arguments)};
_.z(Fzb,HE);Fzb.prototype.getAssociations=function(){return[]};var rRa=new _.X("webThumbnailDetailsExtensionData");var kYa=new _.X("commandContext");var Gzb=new _.X("addVideoLinkAction");var Hzb=new _.X("createPollAction");var Izb=new _.X("hideIdentityChipAction");var Jzb=new _.X("openUpdateCommentDialogAction");var IE=new _.X("updateBackstagePollAction");var Kzb=new _.X("updateCommentVoteAction");var Lzb=new _.X("commentThreadRenderer");var Mzb=function(){HE.apply(this,arguments)};
_.z(Mzb,HE);Mzb.prototype.getAssociations=function(){return[]};_.Nzb=new _.X("commentDialogRenderer");var Ozb=new _.X("updateCommentsSettingsEndpoint");var Pzb=new _.X("commentViewModel");var Qzb=new _.X("triStateButtonViewModel");var Rzb=new _.X("voiceReplyContainerViewModel");_.ro=new _.X("commandExecutorCommand");var As=new _.X("emoji");var Szb=new _.X("updateCreatorChannelInnertubeCommand");_.Tzb=new _.X("appendContinuationItemsAction");_.Uzb=new _.X("changeEngagementPanelVisibilityAction");_.Jt=new _.X("continuationCommand");var Vzb=new _.X("hideReportedCommentAction");var Wzb=new _.X("listMutationCommand");_.JE=new _.X("openPopupAction");var dAb;_.Xzb=new _.X("playlistRemoveVideosAction");_.Yzb=new _.X("updatePlaylistAction");_.Zzb=new _.X("addToPlaylistCommand");_.$zb=new _.X("endPlaylistCommand");_.aAb=new _.X("recoverPlaylistCommand");_.bAb=new _.X("refreshPlaylistCommand");_.cAb=new _.X("refreshFormCommand");dAb=new _.X("openOnePickAddVideoModalCommand");_.oUa=new _.X("reloadContinuationItemsCommand");_.eAb=new _.X("scrollToEngagementPanelCommand");var fAb=new _.X("showReloadUiCommand");var gAb=new _.X("undoFeedbackAction");var hAb=new _.X("updateButtonAction");var DWa=new _.X("updateSubscribeButtonAction");var iAb=new _.X("updateToggleAction");_.co=new _.X("webCommandMetadata");_.KE=new _.X("webHandleServiceEndpointExtension");var lQa=new _.X("webNavigationEndpointData");var jAb=new _.X("copyLinkCommand");var kAb=new _.X("playlistVotingRefreshPopupCommand");var lAb=new _.X("selectChipCommand");var mAb=new _.X("setCookieCommand");var nAb=new _.X("setLocalStorageCommand");var oAb=new _.X("setPrefStorageEntryCommand");var sAb;_.pAb=new _.X("settingsUpdateCheckboxCommand");_.qAb=new _.X("settingsUpdateTextCommand");_.rAb=new _.X("settingsUpdateOptionsCommand");sAb=new _.X("settingsUpdateSwitchCommand");_.tAb=new _.X("settingsUpdateConnectedAppRendererCommand");var uAb=new _.X("updateTextInputFormFieldRendererCommand");var vAb=new _.X("updateToggleButtonStateCommand");var wAb=new _.X("updateUrlParamCommand");var xAb=new _.X("webSubmitFormCommand");var yAb=new _.X("channelSwitcherPageRenderer"),zAb=new _.X("updateChannelSwitcherPageAction");_.sw=new _.X("continuationItemRenderer");_.LE=new _.X("richItemRenderer");var AAb=new _.X("richSectionRenderer");_.BAb=new _.X("richShelfRenderer");_.CAb=new _.X("metadataBadgeRenderer");_.DAb=new _.X("multiPageMenuNotificationSectionRenderer");_.EAb=new _.X("playlistLoopButtonStateRenderer");var FAb=new _.X("claimLegacyYoutubeChannelEndpoint");var GAb=new _.X("getNotificationMenuEndpoint");var HAb=new _.X("getSearchInVideoCommand");_.IAb=new _.X("getTranscriptEndpoint");_.to=new _.X("signalServiceEndpoint");var JAb=new _.X("verifyAgeEndpoint");var i4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(i4a,_.bd);i4a.prototype.getPath=function(){return _.Tx(this,1)};
i4a.prototype.getValue=function(){return _.Tx(this,2)};var KAb=[0,_.hy,-1];var LAb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(LAb,_.bd);var h4a=_.kd(LAb,[0,_.iy,KAb]);var MAb=new _.X("dismissalEndpoint");var NAb=new _.X("elementsCommand");_.Cs=new _.X("innertubeCommand");var OAb=new _.X("multipleInlinePlaybackCommand");var VPa=new _.X("loggingDirectives");var QBa={EMBEDDED_PLAYER_MODE_UNKNOWN:"EMBEDDED_PLAYER_MODE_UNKNOWN",EMBEDDED_PLAYER_MODE_DEFAULT:"EMBEDDED_PLAYER_MODE_DEFAULT",EMBEDDED_PLAYER_MODE_PFP:"EMBEDDED_PLAYER_MODE_PFP",EMBEDDED_PLAYER_MODE_PFL:"EMBEDDED_PLAYER_MODE_PFL"};var PAb=new _.X("acknowledgeChannelTouStrikeCommand");var QAb=function(){HE.apply(this,arguments)};
_.z(QAb,HE);QAb.prototype.getAssociations=function(){return[]};var RAb=function(){HE.apply(this,arguments)};
_.z(RAb,HE);RAb.prototype.getAssociations=function(){return[]};var Ut=new _.X("entityBatchUpdate");_.SAb=new _.X("entityUpdateCommand");var TAb=function(){HE.apply(this,arguments)};
_.z(TAb,HE);TAb.prototype.getAssociations=function(){var a=[];this.delegate.alternateChannel&&a.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&a.push.apply(a,_.De(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&a.push(this.delegate.oneofChannelEntity);return[].concat(_.De(new Set(a)))};var UAb=function(){HE.apply(this,arguments)};
_.z(UAb,HE);UAb.prototype.getAssociations=function(){var a=[];this.delegate.entryCollection&&a.push(this.delegate.entryCollection);return[].concat(_.De(new Set(a)))};
var VAb=function(){HE.apply(this,arguments)};
_.z(VAb,HE);VAb.prototype.getAssociations=function(){var a=[];this.delegate.parentPlaylist&&a.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var b=_.h(this.delegate.entries),c=b.next();!c.done;c=b.next())a.push.apply(a,_.De((new WAb(c.value)).getAssociations()));return[].concat(_.De(new Set(a)))};
var WAb=function(){GE.apply(this,arguments)};
_.z(WAb,GE);WAb.prototype.getAssociations=function(){var a=[];this.delegate.video&&a.push(this.delegate.video);return[].concat(_.De(new Set(a)))};var XAb=function(){HE.apply(this,arguments)};
_.z(XAb,HE);XAb.prototype.getAssociations=function(){var a=[];this.delegate.descriptionEntity&&a.push(this.delegate.descriptionEntity);this.delegate.creators&&a.push.apply(a,_.De(this.delegate.creators));this.delegate.theBiggestFan&&a.push(this.delegate.theBiggestFan);return[].concat(_.De(new Set(a)))};
var YAb=function(){HE.apply(this,arguments)};
_.z(YAb,HE);YAb.prototype.getAssociations=function(){return[]};var ZAb=new _.X("fantasyRosterViewModel");var $Ab=new _.X("addFollowUpSurveyCommand");var aBb=new _.X("getSurveyCommand");var bBb=new _.X("ratingSurveyOptionRenderer");_.Uw=new _.X("feedbackEndpoint");var cBb=new _.X("reportHistoryTableCellRenderer"),dBb=new _.X("reportHistoryTableTextCellRenderer"),eBb=new _.X("reportHistoryTableReasonCellRenderer");_.fBb=new _.X("flagEndpoint");var gBb=new _.X("getFlowCommand");var hBb=new _.X("submitFormWithValidationFlowCommand");var iBb=function(){HE.apply(this,arguments)};
_.z(iBb,HE);iBb.prototype.getAssociations=function(){return[]};var jBb=new _.X("flowFormState");var kBb=new _.X("gameCardRenderer");var lBb=new _.X("accountLinkingStateChangedCommand");var mBb=function(){HE.apply(this,arguments)};
_.z(mBb,HE);mBb.prototype.getAssociations=function(){return[]};var nBb=new _.X("changeMiniAppPlayStateCommand");var oBb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(oBb,_.bd);var ME=[1,2,3];var pBb=[0,ME,O$a,_.P$a,H$a];var qBb=_.kd(oBb,pBb),rBb=_.md(pBb);var sBb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(sBb,_.bd);var tBb=[0,_.ey,_.hy];var uBb=[0,_.hy];var vBb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(vBb,_.bd);var wBb=function(a,b){return _.Yj(a,3,b)};var xBb=_.md([0,_.ky,tBb,_.ky,uBb]);var yBb=new _.X("miniAppScoreChallengeViewModel");var zBb=new _.X("miniGameCardViewModel");var ABb=new _.X("teaserCardViewModel");var BBb=function(){HE.apply(this,arguments)};
_.z(BBb,HE);BBb.prototype.getAssociations=function(){return[]};_.CBb=new _.X("feedbackItemRenderer");var DBb={UNKNOWN:"UNKNOWN",MY_CHANNEL:"MY_CHANNEL",WATCH_HISTORY:"WATCH_HISTORY",WATCH_HISTORY_CAIRO:"WATCH_HISTORY_CAIRO",WATCH_LATER:"WATCH_LATER",WATCH_LATER_CAIRO:"WATCH_LATER_CAIRO",WATCH_LATER_FILLED:"WATCH_LATER_FILLED",PURCHASES:"PURCHASES",WHAT_TO_WATCH:"WHAT_TO_WATCH",SUBSCRIPTIONS:"SUBSCRIPTIONS",PLAYLISTS:"PLAYLISTS",PLAYLISTS_CAIRO:"PLAYLISTS_CAIRO",OFFLINE:"OFFLINE",OFFLINE_CLOUD:"OFFLINE_CLOUD",OFFLINE_DOWNLOAD:"OFFLINE_DOWNLOAD",OFFLINE_DOWNLOAD_CAIRO:"OFFLINE_DOWNLOAD_CAIRO",OFFLINE_DOWNLOAD_COMPLETE_FILL:"OFFLINE_DOWNLOAD_COMPLETE_FILL",
OFFLINE_DOWNLOADING_ZERO:"OFFLINE_DOWNLOADING_ZERO",OFFLINE_DOWNLOADING_TWENTY:"OFFLINE_DOWNLOADING_TWENTY",OFFLINE_DOWNLOADING_FORTY:"OFFLINE_DOWNLOADING_FORTY",OFFLINE_DOWNLOADING_SIXTY:"OFFLINE_DOWNLOADING_SIXTY",OFFLINE_DOWNLOADING_EIGHTY:"OFFLINE_DOWNLOADING_EIGHTY",OFFLINE_DOWNLOADING_SPINNER:"OFFLINE_DOWNLOADING_SPINNER",OFFLINE_MUSIC_KEY:"OFFLINE_MUSIC_KEY",OFFLINE_REMOVE:"OFFLINE_REMOVE",OFFLINE_RESUME:"OFFLINE_RESUME",OFFLINE_PAUSE:"OFFLINE_PAUSE",OFFLINE_NO_CONTENT:"OFFLINE_NO_CONTENT",
OFFLINE_NO_CONTENT_UPSIDE_DOWN:"OFFLINE_NO_CONTENT_UPSIDE_DOWN",OFFLINE_PIN:"OFFLINE_PIN",OFFLINE_COMMUTE:"OFFLINE_COMMUTE",CAPTURE:"CAPTURE",UPLOADS:"UPLOADS",SOCIAL:"SOCIAL",BROWSE_CHANNELS:"BROWSE_CHANNELS",SUBSCRIPTION_MANAGER:"SUBSCRIPTION_MANAGER",FAVORITES:"FAVORITES",INBOX:"INBOX",LIKES_PLAYLIST:"LIKES_PLAYLIST",LIKES_PLAYLIST_CAIRO:"LIKES_PLAYLIST_CAIRO",MIX:"MIX",COLLECTION:"COLLECTION",EXPAND:"EXPAND",EXPAND_CAIRO:"EXPAND_CAIRO",COLLAPSE:"COLLAPSE",COLLAPSE_CAIRO:"COLLAPSE_CAIRO",MUSIC:"MUSIC",
MUSIC_CAIRO:"MUSIC_CAIRO",NO_OFFLINE_VIDEOS:"NO_OFFLINE_VIDEOS",NO_OFFLINE_PLAYLISTS:"NO_OFFLINE_PLAYLISTS",MUSIC_PASS_BADGE:"MUSIC_PASS_BADGE",PLAYLIST_ORDER:"PLAYLIST_ORDER",SHOWS:"SHOWS",EDUCATION:"EDUCATION",TIP_JAR:"TIP_JAR",TIP_JAR_LOVE:"TIP_JAR_LOVE",NOTIFICATIONS_INBOX:"NOTIFICATIONS_INBOX",BACK:"BACK",PAID:"PAID",POPULAR:"POPULAR",EXPLORE:"EXPLORE",CREATOR_STUDIO:"CREATOR_STUDIO",EDIT:"EDIT",CANCEL:"CANCEL",CREATOR_ANALYTICS:"CREATOR_ANALYTICS",CREATOR_COMMENTS:"CREATOR_COMMENTS",CREATOR_DASHBOARD:"CREATOR_DASHBOARD",
CREATOR_VIDEO_MANAGER:"CREATOR_VIDEO_MANAGER",CREATOR_VIEWER_LINK:"CREATOR_VIEWER_LINK",CREATOR_EXTERNAL_SHORTCUT:"CREATOR_EXTERNAL_SHORTCUT",CREATOR_SETTINGS:"CREATOR_SETTINGS",CREATOR_PLAYLISTS:"CREATOR_PLAYLISTS",CREATOR_METADATA_BASIC:"CREATOR_METADATA_BASIC",CREATOR_METADATA_MONETIZATION:"CREATOR_METADATA_MONETIZATION",CREATOR_METADATA_MONETIZATION_OFF:"CREATOR_METADATA_MONETIZATION_OFF",CREATOR_METADATA_ADVANCED:"CREATOR_METADATA_ADVANCED",SETTINGS:"SETTINGS",SETTINGS_CAIRO:"SETTINGS_CAIRO",
SETTINGS_LIGHT:"SETTINGS_LIGHT",SETTINGS_MATERIAL:"SETTINGS_MATERIAL",EXPERIMENT:"EXPERIMENT",REMOVE_FROM_HISTORY:"REMOVE_FROM_HISTORY",ADD_TO_PLAYLIST:"ADD_TO_PLAYLIST",REMOVE_FROM_PLAYLIST:"REMOVE_FROM_PLAYLIST",SHARE:"SHARE",INFO:"INFO",INFO_OUTLINE:"INFO_OUTLINE",CAPTIONS:"CAPTIONS",LIKE:"LIKE",DISLIKE:"DISLIKE",LIKE_SELECTED:"LIKE_SELECTED",DISLIKE_SELECTED:"DISLIKE_SELECTED",FLAG:"FLAG",FLAG_CAIRO:"FLAG_CAIRO",FLAG_OUTLINE:"FLAG_OUTLINE",HIDE:"HIDE",UNSUBSCRIBE:"UNSUBSCRIBE",DELETE:"DELETE",
DELETE_LIGHT:"DELETE_LIGHT",DELETE_SWEEP:"DELETE_SWEEP",REMOVE:"REMOVE",OFFLINE_ADD:"OFFLINE_ADD",QUESTION_CIRCLE:"QUESTION_CIRCLE",SAVE_PLAYLIST:"SAVE_PLAYLIST",ADD_TO_WATCH_LATER:"ADD_TO_WATCH_LATER",SEARCH:"SEARCH",SEARCH_CAIRO:"SEARCH_CAIRO",SEARCH_WITH_CIRCLE:"SEARCH_WITH_CIRCLE",SEARCH_FILLED:"SEARCH_FILLED",SEARCH_BOLD:"SEARCH_BOLD",SEARCH_TAB_LARGE:"SEARCH_TAB_LARGE",VOICE_SEARCH:"VOICE_SEARCH",VOICE_SEARCH_WHITE:"VOICE_SEARCH_WHITE",VOICE_SEARCH_WITH_CIRCLE:"VOICE_SEARCH_WITH_CIRCLE",SEARCH_HISTORY:"SEARCH_HISTORY",
SIGN_IN:"SIGN_IN",VIEW_ALL:"VIEW_ALL",ADD_TO_REMOTE_QUEUE:"ADD_TO_REMOTE_QUEUE",TRASH:"TRASH",EXPLORE_DESTINATION:"EXPLORE_DESTINATION",SHORTS_DESTINATION:"SHORTS_DESTINATION",TAB_EXPLORE:"TAB_EXPLORE",TAB_HOME:"TAB_HOME",TAB_HOME_CAIRO:"TAB_HOME_CAIRO",TAB_SUBSCRIPTIONS:"TAB_SUBSCRIPTIONS",TAB_SUBSCRIPTIONS_CAIRO:"TAB_SUBSCRIPTIONS_CAIRO",TAB_TRENDING:"TAB_TRENDING",TAB_LIBRARY:"TAB_LIBRARY",TAB_MORE:"TAB_MORE",TAB_ACCOUNT:"TAB_ACCOUNT",TAB_SHARES:"TAB_SHARES",TAB_ACTIVITY:"TAB_ACTIVITY",TAB_ACTIVITY_CAIRO:"TAB_ACTIVITY_CAIRO",
TAB_INBOX:"TAB_INBOX",TAB_HISTORY:"TAB_HISTORY",TAB_LIKED:"TAB_LIKED",TAB_COLLECT:"TAB_COLLECT",TAB_LIVE:"TAB_LIVE",TAB_MUSIC_PREMIUM:"TAB_MUSIC_PREMIUM",TAB_SHORTS:"TAB_SHORTS",TAB_SHORTS_CAIRO:"TAB_SHORTS_CAIRO",TAB_SAMPLES:"TAB_SAMPLES",EMPTY_LIKE:"EMPTY_LIKE",CLOCK:"CLOCK",CLOCK_FILLED:"CLOCK_FILLED",CONVERSATION_JOIN:"CONVERSATION_JOIN",CONVERSATION_LEAVE:"CONVERSATION_LEAVE",CONVERSATION_RENAME:"CONVERSATION_RENAME",MONETIZATION_MONETIZABLE:"MONETIZATION_MONETIZABLE",MONETIZATION_MONETIZED:"MONETIZATION_MONETIZED",
MONETIZATION_NOT_MONETIZABLE:"MONETIZATION_NOT_MONETIZABLE",MONETIZATION_PENDING:"MONETIZATION_PENDING",MONETIZATION_REQUIRES_ACTION:"MONETIZATION_REQUIRES_ACTION",MONETIZATION_REVSHARED:"MONETIZATION_REVSHARED",WATCH_RELATED_MIX:"WATCH_RELATED_MIX",WATCH_RELATED_PLAYLIST:"WATCH_RELATED_PLAYLIST",HELP:"HELP",HELP_CAIRO:"HELP_CAIRO",PRIVACY_PRIVATE:"PRIVACY_PRIVATE",PRIVACY_PUBLIC:"PRIVACY_PUBLIC",PRIVACY_UNLISTED:"PRIVACY_UNLISTED",PRIVACY_SCHEDULED:"PRIVACY_SCHEDULED",PLAY_ALL:"PLAY_ALL",CREATOR_CAPTURE_LINK:"CREATOR_CAPTURE_LINK",
DISMISSAL:"DISMISSAL",CHANNELS_HOME_TAB:"CHANNELS_HOME_TAB",CHANNELS_FEED_TAB:"CHANNELS_FEED_TAB",VERY_HAPPY:"VERY_HAPPY",HAPPY:"HAPPY",MEH:"MEH",SAD:"SAD",VERY_SAD:"VERY_SAD",YOUTUBE:"YOUTUBE",YOUTUBE_LOGO:"YOUTUBE_LOGO",YOUTUBE_LOGO_LIGHT:"YOUTUBE_LOGO_LIGHT",YOUTUBE_RED_LOGO:"YOUTUBE_RED_LOGO",YOUTUBE_RED_LOGO_SHORT:"YOUTUBE_RED_LOGO_SHORT",YOUTUBE_RED_LOGO_LIGHT:"YOUTUBE_RED_LOGO_LIGHT",YOUTUBE_RED_LOGO_WHITE_TEXT:"YOUTUBE_RED_LOGO_WHITE_TEXT",YOUTUBE_PLUS_LOGO:"YOUTUBE_PLUS_LOGO",YOUTUBE_PLUS_LOGO_SHORT:"YOUTUBE_PLUS_LOGO_SHORT",
YOUTUBE_PLUS_LOGO_LIGHT:"YOUTUBE_PLUS_LOGO_LIGHT",YOUTUBE_MUSIC_LOGO_SHORT:"YOUTUBE_MUSIC_LOGO_SHORT",YOUTUBE_MUSIC_LOGO_WHITE_TEXT:"YOUTUBE_MUSIC_LOGO_WHITE_TEXT",YOUTUBE_PREMIERE_LOGO_SHORT:"YOUTUBE_PREMIERE_LOGO_SHORT",YOUTUBE_PREMIUM_LOGO:"YOUTUBE_PREMIUM_LOGO",YOUTUBE_PREMIUM_LOGO_SHORT:"YOUTUBE_PREMIUM_LOGO_SHORT",YOUTUBE_SHORTS_ARROW_UP:"YOUTUBE_SHORTS_ARROW_UP",YOUTUBE_SHORTS_ARROW_DOWN:"YOUTUBE_SHORTS_ARROW_DOWN",YOUTUBE_SHORTS_OUTLINE_16:"YOUTUBE_SHORTS_OUTLINE_16",YOUTUBE_SHORTS_OUTLINE_20:"YOUTUBE_SHORTS_OUTLINE_20",
YOUTUBE_SHORTS_OUTLINE_24:"YOUTUBE_SHORTS_OUTLINE_24",YOUTUBE_SHORTS_FILL_16:"YOUTUBE_SHORTS_FILL_16",YOUTUBE_SHORTS_FILL_20:"YOUTUBE_SHORTS_FILL_20",YOUTUBE_SHORTS_FILL_24:"YOUTUBE_SHORTS_FILL_24",YOUTUBE_SHORTS_BRAND_24:"YOUTUBE_SHORTS_BRAND_24",YOUTUBE_SHORTS_BRAND_32:"YOUTUBE_SHORTS_BRAND_32",YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21:"YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16",
YOUTUBE_TV:"YOUTUBE_TV",YOUTUBE_WHITE:"YOUTUBE_WHITE",YOUTUBE_KIDS:"YOUTUBE_KIDS",YOUTUBE_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK",MONETIZATION_ON:"MONETIZATION_ON",SORT_NEWEST:"SORT_NEWEST",SORT_MOST_VIEWED:"SORT_MOST_VIEWED",VIDEO_QUALITY:"VIDEO_QUALITY",
VIDEO_QUALITY_4K:"VIDEO_QUALITY_4K",VIDEO_QUALITY_4K_FILLED:"VIDEO_QUALITY_4K_FILLED",VIDEO_QUALITY_8K:"VIDEO_QUALITY_8K",VIDEO_QUALITY_SD:"VIDEO_QUALITY_SD",FEEDBACK:"FEEDBACK",FEEDBACK_CAIRO:"FEEDBACK_CAIRO",PRIVACY_INFO:"PRIVACY_INFO",SHARE_LIGHT:"SHARE_LIGHT",SHARE_ARROW:"SHARE_ARROW",SHARE_ARROW_LIGHT:"SHARE_ARROW_LIGHT",SHARE_CAIRO:"SHARE_CAIRO",IOS_SHARE:"IOS_SHARE",CREATE_PLAYLIST:"CREATE_PLAYLIST",UNLIMITED:"UNLIMITED",EMPTY_HEART:"EMPTY_HEART",FULL_HEART:"FULL_HEART",UNLIMITED_LOGO:"UNLIMITED_LOGO",
RELATED:"RELATED",PLAYING:"PLAYING",REPORT_PROBLEM:"REPORT_PROBLEM",BUG_REPORT:"BUG_REPORT",INLINE_PLAYBACK_SETTINGS:"INLINE_PLAYBACK_SETTINGS",REPLAY:"REPLAY",REFRESH:"REFRESH",REDEEM:"REDEEM",SWITCH_ACCOUNTS:"SWITCH_ACCOUNTS",SHUFFLE:"SHUFFLE",MUSIC_SHUFFLE:"MUSIC_SHUFFLE",LOOP:"LOOP",LOOP_ACTIVE:"LOOP_ACTIVE",LOOP_ONE:"LOOP_ONE",LOOP_ONE_ACTIVE:"LOOP_ONE_ACTIVE",ACCOUNT_CIRCLE:"ACCOUNT_CIRCLE",ACCOUNT_CIRCLE_CAIRO:"ACCOUNT_CIRCLE_CAIRO",ACCOUNT_BOX:"ACCOUNT_BOX",ACCOUNT_BOX_CAIRO:"ACCOUNT_BOX_CAIRO",
OPEN_IN_NEW:"OPEN_IN_NEW",OPEN_WITH:"OPEN_WITH",CAST_ICON:"CAST_ICON",CAST_OUTLINE:"CAST_OUTLINE",CAST_MOBILE:"CAST_MOBILE",DISCONNECTED_CAST_CIRCLE:"DISCONNECTED_CAST_CIRCLE",SHORTS_COMMENT:"SHORTS_COMMENT",SHORTS_DISLIKE:"SHORTS_DISLIKE",SHORTS_LIKE:"SHORTS_LIKE",SHORTS_SHARE:"SHORTS_SHARE",SHORTS_HEADER_CAMERA:"SHORTS_HEADER_CAMERA",SHORTS_HEADER_CAMERA_BOLD:"SHORTS_HEADER_CAMERA_BOLD",SHORTS_LIKE_SELECTED:"SHORTS_LIKE_SELECTED",SHORTS_DISLIKE_SELECTED:"SHORTS_DISLIKE_SELECTED",SHORTS_SAVE_OFF:"SHORTS_SAVE_OFF",
SHORTS_SAVE_ON:"SHORTS_SAVE_ON",SHORTS_SEARCH:"SHORTS_SEARCH",ADD_FRIEND:"ADD_FRIEND",ADD_MORE_FRIENDS:"ADD_MORE_FRIENDS",ACCEPT_FRIEND_INVITE:"ACCEPT_FRIEND_INVITE",DECLINE_FRIEND_INVITE:"DECLINE_FRIEND_INVITE",CANCEL_FRIEND_INVITE:"CANCEL_FRIEND_INVITE",BLOCK_USER:"BLOCK_USER",UNBLOCK_USER:"UNBLOCK_USER",VIEW_PARTICIPANTS:"VIEW_PARTICIPANTS",INVITE_TO_CONVERSATION:"INVITE_TO_CONVERSATION",LIVE:"LIVE",LIVE_CAIRO:"LIVE_CAIRO",SPECIAL:"SPECIAL",HOME:"HOME",HOME_FILLED:"HOME_FILLED",STAFF_PICK:"STAFF_PICK",
REVIEW:"REVIEW",LETS_PLAY:"LETS_PLAY",MORE_FROM_PUBLISHER:"MORE_FROM_PUBLISHER",NEWS:"NEWS",NEWS_CAIRO:"NEWS_CAIRO",TRAILER:"TRAILER",NEW_RELEASE:"NEW_RELEASE",TOURNAMENTS:"TOURNAMENTS",SPEED_RUN:"SPEED_RUN",EVENT:"EVENT",EVENT_LIGHT:"EVENT_LIGHT",TUTORIAL:"TUTORIAL",GAMES:"GAMES",RECOMMENDED:"RECOMMENDED",TRENDING_UP:"TRENDING_UP",VIDEOS:"VIDEOS",FASHION_LOGO:"FASHION_LOGO",FASHION_LOGO_CAIRO:"FASHION_LOGO_CAIRO",TERMS_OF_SERVICE:"TERMS_OF_SERVICE",CONTACT:"CONTACT",COLORED_GAMING_LOGO:"COLORED_GAMING_LOGO",
GAMING_LOGO:"GAMING_LOGO",GAMING_LOGO_CAIRO:"GAMING_LOGO_CAIRO",CHANNEL_NOTIFICATION_PREFERENCE_OFF:"CHANNEL_NOTIFICATION_PREFERENCE_OFF",CHANNEL_NOTIFICATION_PREFERENCE_ON:"CHANNEL_NOTIFICATION_PREFERENCE_ON",PLAYLIST_NOTIFICATION_PREFERENCE_OFF:"PLAYLIST_NOTIFICATION_PREFERENCE_OFF",PLAYLIST_NOTIFICATION_PREFERENCE_ON:"PLAYLIST_NOTIFICATION_PREFERENCE_ON",NOTIFICATIONS:"NOTIFICATIONS",NOTIFICATIONS_CAIRO:"NOTIFICATIONS_CAIRO",NOTIFICATIONS_OFF:"NOTIFICATIONS_OFF",NOTIFICATIONS_OFF_OUTLINE:"NOTIFICATIONS_OFF_OUTLINE",
NOTIFICATIONS_DONE_CHECKMARK:"NOTIFICATIONS_DONE_CHECKMARK",MUSIC_AUTO_OFFLINE_BADGE:"MUSIC_AUTO_OFFLINE_BADGE",MUSIC_EXPLICIT_BADGE:"MUSIC_EXPLICIT_BADGE",MUSIC_NOTIFICATIONS_SETTING:"MUSIC_NOTIFICATIONS_SETTING",NOTIFICATIONS_NONE:"NOTIFICATIONS_NONE",NOTIFICATIONS_ACTIVE:"NOTIFICATIONS_ACTIVE",NOTIFICATIONS_OCCASIONAL:"NOTIFICATIONS_OCCASIONAL",SEND:"SEND",SEND_OUTLINE:"SEND_OUTLINE",SLOW_MODE:"SLOW_MODE",SLOW_MODE_OFF:"SLOW_MODE_OFF",STORIES_ADD_BADGE:"STORIES_ADD_BADGE",SUPER_CHAT_FOR_GOOD:"SUPER_CHAT_FOR_GOOD",
MEMBERS_ONLY_MODE:"MEMBERS_ONLY_MODE",MEMBERS_ONLY_MODE_OFF:"MEMBERS_ONLY_MODE_OFF",INVITE_ONLY_MODE:"INVITE_ONLY_MODE",INVITE_ONLY_MODE_OFF:"INVITE_ONLY_MODE_OFF",EMOJI:"EMOJI",EMOJI_ACTIVITIES:"EMOJI_ACTIVITIES",EMOJI_CUSTOM:"EMOJI_CUSTOM",EMOJI_FLAGS:"EMOJI_FLAGS",EMOJI_FOOD:"EMOJI_FOOD",EMOJI_NATURE:"EMOJI_NATURE",EMOJI_OBJECTS:"EMOJI_OBJECTS",EMOJI_PEOPLE:"EMOJI_PEOPLE",EMOJI_RECENT:"EMOJI_RECENT",EMOJI_SYMBOLS:"EMOJI_SYMBOLS",EMOJI_TRAVEL:"EMOJI_TRAVEL",EMOJI_SPONSORSHIPS:"EMOJI_SPONSORSHIPS",
HEART_BOX:"HEART_BOX",MEDAL_STAR:"MEDAL_STAR",SUPERSTAR:"SUPERSTAR",TROPHY_STAR:"TROPHY_STAR",MESSAGE_BUBBLE_GEAR:"MESSAGE_BUBBLE_GEAR",MESSAGE_BUBBLE_LEFT:"MESSAGE_BUBBLE_LEFT",MESSAGE_BUBBLE_LEFT_BOOST:"MESSAGE_BUBBLE_LEFT_BOOST",MONEY_FILL:"MONEY_FILL",MONEY_FILL_JPY:"MONEY_FILL_JPY",MONEY_FILL_STORE:"MONEY_FILL_STORE",MONEY_FILL_SHOPPING_BAG:"MONEY_FILL_SHOPPING_BAG",MONEY_FILL_MORE_ARROW:"MONEY_FILL_MORE_ARROW",MONEY_HEART:"MONEY_HEART",FILL_DOLLAR_SIGN_HEART_12:"FILL_DOLLAR_SIGN_HEART_12",PURCHASE_SPONSORSHIP:"PURCHASE_SPONSORSHIP",
PURCHASE_SUPER_CHAT:"PURCHASE_SUPER_CHAT",PURCHASE_SUPER_STICKER:"PURCHASE_SUPER_STICKER",SUPER_STICKER:"SUPER_STICKER",REDEEM_SUPER_CHAT_FREEBIE:"REDEEM_SUPER_CHAT_FREEBIE",STICKER_GHOST_CARD:"STICKER_GHOST_CARD",DOLLAR_SIGN_CIRCLE:"DOLLAR_SIGN_CIRCLE",OWNER:"OWNER",MODERATOR:"MODERATOR",YOUTUBE_TEAM:"YOUTUBE_TEAM",VERIFIED:"VERIFIED",MEMBER:"MEMBER",FAB_UPLOAD:"FAB_UPLOAD",FAB_CAMERA:"FAB_CAMERA",BACKGROUND_SIGNED_OUT:"BACKGROUND_SIGNED_OUT",BACKGROUND_SUBSCRIBE:"BACKGROUND_SUBSCRIBE",BACKGROUND_SUBSCRIBE_TRANSPARENT:"BACKGROUND_SUBSCRIBE_TRANSPARENT",
ARTIST:"ARTIST",ARTIST_ANALYTICS:"ARTIST_ANALYTICS",ASSESSMENT:"ASSESSMENT",CREDIT_CARD:"CREDIT_CARD",GET_APP:"GET_APP",LIVE_CHECKLIST:"LIVE_CHECKLIST",MEMBERSHIP_PRE_PURCHASE:"MEMBERSHIP_PRE_PURCHASE",MEMBERSHIP_LIMITED_PRE_PURCHASE:"MEMBERSHIP_LIMITED_PRE_PURCHASE",MEMBERSHIP_POST_PURCHASE:"MEMBERSHIP_POST_PURCHASE",MEMBERSHIP_LIMITED_POST_PURCHASE:"MEMBERSHIP_LIMITED_POST_PURCHASE",MEMBERSHIP_OFFER:"MEMBERSHIP_OFFER",MEMBERSHIP_MANAGE:"MEMBERSHIP_MANAGE",MEMBERSHIP_CANCELED:"MEMBERSHIP_CANCELED",
MEMBERSHIP_PURCHASED:"MEMBERSHIP_PURCHASED",PHONE:"PHONE",SMS:"SMS",FAVORITE:"FAVORITE",UNFAVORITE:"UNFAVORITE",NEXT:"NEXT",REPOST:"REPOST",EXTERNAL_LINK:"EXTERNAL_LINK",LANGUAGE:"LANGUAGE",CLOSED_CAPTION:"CLOSED_CAPTION",CLOSED_CAPTION_SELECTED:"CLOSED_CAPTION_SELECTED",VIEW_LIST:"VIEW_LIST",VIEW_LIST_CAIRO:"VIEW_LIST_CAIRO",VIEW_LIST_DARK:"VIEW_LIST_DARK",VIEW_MODULE:"VIEW_MODULE",VIEW_MODULE_DARK:"VIEW_MODULE_DARK",VERTICAL_ALIGN_BOTTOM:"VERTICAL_ALIGN_BOTTOM",VERTICAL_ALIGN_TOP:"VERTICAL_ALIGN_TOP",
MUSIC_UNAVAILABLE:"MUSIC_UNAVAILABLE",NO_CONVERSATIONS:"NO_CONVERSATIONS",ALERT_WARN_RED:"ALERT_WARN_RED",ALERT_WARN_YELLOW:"ALERT_WARN_YELLOW",WARNING:"WARNING",SORT:"SORT",FILTER:"FILTER",KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE",KIDS_SCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_SCHOOL_CONTENT_AGE_PREFERENCE",KIDS_NO_CONTENT_AGE_PREFERENCE:"KIDS_NO_CONTENT_AGE_PREFERENCE",SPACECAST:"SPACECAST",SCHOOL:"SCHOOL",ACCELERATOR:"ACCELERATOR",TRENDING:"TRENDING",TRENDING_CAIRO:"TRENDING_CAIRO",
PAUSE_FILLED:"PAUSE_FILLED",PAUSE_OUTLINED:"PAUSE_OUTLINED",PHOTO_CAMERA:"PHOTO_CAMERA",PHOTO_CAMERA_LIGHT:"PHOTO_CAMERA_LIGHT",PHOTO_CAMERA_OUTLINE:"PHOTO_CAMERA_OUTLINE",PHOTO_CAMERA_OUTLINE_LARGE:"PHOTO_CAMERA_OUTLINE_LARGE",PHOTO_LIBRARY:"PHOTO_LIBRARY",COPYRIGHT_NOTIFICATION_RED:"COPYRIGHT_NOTIFICATION_RED",COPYRIGHT_NOTIFICATION_BLUE:"COPYRIGHT_NOTIFICATION_BLUE",PLAYLIST_ADD:"PLAYLIST_ADD",PLAYLIST_ADD_CHECK:"PLAYLIST_ADD_CHECK",CHANNEL_BACK:"CHANNEL_BACK",STAR:"STAR",STAR_FILLED:"STAR_FILLED",
STAR_BORDER:"STAR_BORDER",STAR_HALF:"STAR_HALF",CLOSE:"CLOSE",CLOSE_LIGHT:"CLOSE_LIGHT",COUNTDOWN_TO_CLOSE:"COUNTDOWN_TO_CLOSE",COUNTDOWN_TO_CLOSE_DIGIT:"COUNTDOWN_TO_CLOSE_DIGIT",CHECK:"CHECK",TOPIC_EXPLORER_EXPAND_FACET:"TOPIC_EXPLORER_EXPAND_FACET",TOPIC_EXPLORER_COLLAPSE_FACET:"TOPIC_EXPLORER_COLLAPSE_FACET",CLEAR_COOKIES:"CLEAR_COOKIES",CLEAR_WATCH_HISTORY:"CLEAR_WATCH_HISTORY",CLEAR_SEARCH_HISTORY:"CLEAR_SEARCH_HISTORY",CHEVRON_RIGHT:"CHEVRON_RIGHT",CHEVRON_RIGHT_CAIRO:"CHEVRON_RIGHT_CAIRO",
CHEVRON_RIGHT_GREY:"CHEVRON_RIGHT_GREY",CHEVRON_LEFT:"CHEVRON_LEFT",SUBSCRIBE:"SUBSCRIBE",SUBSCRIBE_PLUS:"SUBSCRIBE_PLUS",GO_TO_PAGE:"GO_TO_PAGE",DO_NOT_DISTURB:"DO_NOT_DISTURB",ADD_TO_LIBRARY:"ADD_TO_LIBRARY",REMOVE_FROM_LIBRARY:"REMOVE_FROM_LIBRARY",UP_ARROW:"UP_ARROW",DOWN_ARROW:"DOWN_ARROW",DOWN_ARROW_OUTLINE:"DOWN_ARROW_OUTLINE",EMPTY_STATE_CREATE_VIDEO:"EMPTY_STATE_CREATE_VIDEO",EMPTY_STATE_ORGANIZE_CHANNEL:"EMPTY_STATE_ORGANIZE_CHANNEL",EMPTY_STATE_NO_CONTENT:"EMPTY_STATE_NO_CONTENT",EMPTY_STATE_PRIVATE_CONTENT:"EMPTY_STATE_PRIVATE_CONTENT",
BUY_DATA:"BUY_DATA",SHOPPING_CART:"SHOPPING_CART",ARROW_FLIP:"ARROW_FLIP",RESTORE:"RESTORE",ARROW_DIAGONAL:"ARROW_DIAGONAL",CONSENT_SHIELD:"CONSENT_SHIELD",COMMENT:"COMMENT",START_DVR:"START_DVR",STOP_DVR:"STOP_DVR",CHAT:"CHAT",CHAT_OFF:"CHAT_OFF",CHAT_BUBBLE:"CHAT_BUBBLE",CHAT_BUBBLE_LIGHT:"CHAT_BUBBLE_LIGHT",CHAT_BUBBLE_OFF:"CHAT_BUBBLE_OFF",CHAT_SPARK:"CHAT_SPARK",CHAT_SPONSORED:"CHAT_SPONSORED",VOICE_CHAT:"VOICE_CHAT",SPONSORSHIP_STAR:"SPONSORSHIP_STAR",SPONSORSHIPS:"SPONSORSHIPS",SPONSORSHIPS_NO_BG:"SPONSORSHIPS_NO_BG",
PLAY_ARROW:"PLAY_ARROW",PLAY_ARROW_OUTLINED:"PLAY_ARROW_OUTLINED",PLAY_ARROW_CIRCLE:"PLAY_ARROW_CIRCLE",PLAY_CIRCLE:"PLAY_CIRCLE",PLAY_ARROW_OVERLAY:"PLAY_ARROW_OVERLAY",PLAY_OUTLINED:"PLAY_OUTLINED",CHECK_CIRCLE:"CHECK_CIRCLE",CHECK_CIRCLE_BLUE:"CHECK_CIRCLE_BLUE",CHECK_CIRCLE_OUTLINE:"CHECK_CIRCLE_OUTLINE",CHECK_CIRCLE_THICK:"CHECK_CIRCLE_THICK",CHECK_CIRCLE_FILLED:"CHECK_CIRCLE_FILLED",COPY:"COPY",QUEUE_PLAY_NEXT:"QUEUE_PLAY_NEXT",QUEUE_PLAY_LAST:"QUEUE_PLAY_LAST",QUEUE_MUSIC:"QUEUE_MUSIC",CARDBOARD:"CARDBOARD",
PLANNER_REVIEW:"PLANNER_REVIEW",MORE_VERT:"MORE_VERT",MORE_VERT_BOLD:"MORE_VERT_BOLD",MORE_HORIZ_LIGHT:"MORE_HORIZ_LIGHT",MORE_HORIZ:"MORE_HORIZ",ANDROID_PHONE:"ANDROID_PHONE",ADD:"ADD",ADD_BOLD:"ADD_BOLD",ADD_SMALL:"ADD_SMALL",EXIT_APP:"EXIT_APP",IM_FEELING_LUCKY:"IM_FEELING_LUCKY",PUBLIC:"PUBLIC",MESSAGE:"MESSAGE",MOBILE_LANDSCAPE:"MOBILE_LANDSCAPE",MOBILE_PORTRAIT:"MOBILE_PORTRAIT",STAY_CURRENT_LANDSCAPE:"STAY_CURRENT_LANDSCAPE",STAY_CURRENT_PORTRAIT:"STAY_CURRENT_PORTRAIT",BUILD:"BUILD",INPUT_COMPONENT:"INPUT_COMPONENT",
DOGFOOD:"DOGFOOD",KEEP:"KEEP",KEEP_OFF:"KEEP_OFF",DASHBOARD:"DASHBOARD",SPORTS:"SPORTS",SUBTITLES:"SUBTITLES",QUESTION_ANSWER:"QUESTION_ANSWER",IMPORT_CONTACTS:"IMPORT_CONTACTS",VIDEO_CALL:"VIDEO_CALL",VIDEO_CAMERA:"VIDEO_CAMERA",VIDEO_CAMERA_DISABLED:"VIDEO_CAMERA_DISABLED",VIDEO_CAMERA_SWITCH_LIGHT:"VIDEO_CAMERA_SWITCH_LIGHT",BACK_LIGHT:"BACK_LIGHT",FILTER_EFFECT_LIGHT:"FILTER_EFFECT_LIGHT",MICROPHONE_ON:"MICROPHONE_ON",MICROPHONE_OFF:"MICROPHONE_OFF",FLASH_ON:"FLASH_ON",FLASH_OFF:"FLASH_OFF",LINK:"LINK",
LIVE_UNLISTED:"LIVE_UNLISTED",PAYMENT:"PAYMENT",ADD_CIRCLE:"ADD_CIRCLE",SMARTPHONE:"SMARTPHONE",SCREEN_LOCK_PORTRAIT:"SCREEN_LOCK_PORTRAIT",SCREEN_LOCK_LANDSCAPE:"SCREEN_LOCK_LANDSCAPE",KIDS_REPORT_AUDIO:"KIDS_REPORT_AUDIO",KIDS_REPORT_VISUALS:"KIDS_REPORT_VISUALS",KIDS_REPORT_OTHER:"KIDS_REPORT_OTHER",KIDS_BLOCK:"KIDS_BLOCK",KIDS_BLOCK_LIGHT:"KIDS_BLOCK_LIGHT",AVATAR_ANONYMOUS:"AVATAR_ANONYMOUS",AVATAR_LOGGED_OUT:"AVATAR_LOGGED_OUT",HALLOWEEN:"HALLOWEEN",UPLOAD:"UPLOAD",MY_LOCATION:"MY_LOCATION",
MUSIC_VIDEO:"MUSIC_VIDEO",PLAYLIST_PLAY:"PLAYLIST_PLAY",ALBUM:"ALBUM",LOGGED_OUT_SUBS:"LOGGED_OUT_SUBS",LOGGED_OUT_LIBRARY:"LOGGED_OUT_LIBRARY",LOGGED_OUT_ACCOUNT:"LOGGED_OUT_ACCOUNT",FUSION_V2_FSI:"FUSION_V2_FSI",PERSON:"PERSON",PERSON_ADD:"PERSON_ADD",PERSON_ACCOUNT:"PERSON_ACCOUNT",PERSON_CIRCLE:"PERSON_CIRCLE",PERSON_MINUS:"PERSON_MINUS",PERSON_RADAR:"PERSON_RADAR",PERSON_RADAR_FILLED:"PERSON_RADAR_FILLED",PERSON_SETTING:"PERSON_SETTING",MOVIES:"MOVIES",CLAPPERBOARD:"CLAPPERBOARD",CLAPPERBOARD_CAIRO:"CLAPPERBOARD_CAIRO",
MOVIES_BLUE:"MOVIES_BLUE",ROTTEN_TOMATOES_FRESH:"ROTTEN_TOMATOES_FRESH",ROTTEN_TOMATOES_SPLAT:"ROTTEN_TOMATOES_SPLAT",ROTTEN_TOMATOES_CERTIFIED:"ROTTEN_TOMATOES_CERTIFIED",WINTER:"WINTER",HOURGLASS:"HOURGLASS",REMOVE_CIRCLE:"REMOVE_CIRCLE",YOUTUBE_RED_ORIGINALS:"YOUTUBE_RED_ORIGINALS",VIDEO_YOUTUBE_RED:"VIDEO_YOUTUBE_RED",ACCESS_TIME:"ACCESS_TIME",ERROR_OUTLINE:"ERROR_OUTLINE",ERROR_WHITE:"ERROR_WHITE",ERROR_BLACK:"ERROR_BLACK",IMAGE:"IMAGE",NO_CONNECTION:"NO_CONNECTION",UNPLUGGED_LOGO:"UNPLUGGED_LOGO",
CREATE_VIDEO:"CREATE_VIDEO",CREATE_REEL_ITEM:"CREATE_REEL_ITEM",CREATE_LIVE_STREAM:"CREATE_LIVE_STREAM",CREATE_POST:"CREATE_POST",CREATION_ENTRY:"CREATION_ENTRY",CREATION_ENTRY_V2:"CREATION_ENTRY_V2",KIDS_GAMING:"KIDS_GAMING",YOUTUBE_MUSIC_BUTTON:"YOUTUBE_MUSIC_BUTTON",YOUTUBE_MUSIC_BUTTON_RED:"YOUTUBE_MUSIC_BUTTON_RED",YOUTUBE_MUSIC_BUTTON_RINGO:"YOUTUBE_MUSIC_BUTTON_RINGO",YOUTUBE_RED_ORIGINALS_BUTTON:"YOUTUBE_RED_ORIGINALS_BUTTON",YOUTUBE_RED_ORIGINALS_BUTTON_RED:"YOUTUBE_RED_ORIGINALS_BUTTON_RED",
EXIT_TO_APP:"EXIT_TO_APP",FIRST_PAGE:"FIRST_PAGE",LAST_PAGE:"LAST_PAGE",TIMER:"TIMER",TRANSFER_FINISHED:"TRANSFER_FINISHED",TRANSFER_SYNC:"TRANSFER_SYNC",TRANSLATE:"TRANSLATE",AV_TIMER:"AV_TIMER",SUBS_ZERO_STATE:"SUBS_ZERO_STATE",KEYBOARD:"KEYBOARD",KEYBOARD_OUTLINE:"KEYBOARD_OUTLINE",APP_INSTALL:"APP_INSTALL",POLL:"POLL",REDO:"REDO",BLOCK:"BLOCK",ADD_VIDEO_LINK:"ADD_VIDEO_LINK",RADIO_BUTTON_UNCHECKED:"RADIO_BUTTON_UNCHECKED",PLACE:"PLACE",PIVOT_HOME:"PIVOT_HOME",PIVOT_HOME_GREY:"PIVOT_HOME_GREY",
PIVOT_TRENDING:"PIVOT_TRENDING",PIVOT_REWIND:"PIVOT_REWIND",PIVOT_SUBSCRIPTIONS:"PIVOT_SUBSCRIPTIONS",PIVOT_SHARED:"PIVOT_SHARED",PIVOT_LIBRARY:"PIVOT_LIBRARY",PIVOT_ACCOUNT:"PIVOT_ACCOUNT",KIDS_READING:"KIDS_READING",PIVOT_PREMIER:"PIVOT_PREMIER",AUDIOTRACK:"AUDIOTRACK",STICKER_LIGHT:"STICKER_LIGHT",STICKER_EMOTICON:"STICKER_EMOTICON",STARS:"STARS",SCISSORS:"SCISSORS",MUSIC_SCISSORS:"MUSIC_SCISSORS",TAG_FACES:"TAG_FACES",GROUP:"GROUP",EMPTY_STATE_WATCH_LATER:"EMPTY_STATE_WATCH_LATER",SLOW_MOTION_VIDEO:"SLOW_MOTION_VIDEO",
ARROW_FORWARD:"ARROW_FORWARD",ARROW_BACK:"ARROW_BACK",DARK_THEME:"DARK_THEME",DARK_THEME_LARGE:"DARK_THEME_LARGE",VISIBILITY:"VISIBILITY",VISIBILITY_OFF:"VISIBILITY_OFF",MORE_LIKE_THIS:"MORE_LIKE_THIS",CAMERA_ALT:"CAMERA_ALT",ADD_PHOTO_ALTERNATE:"ADD_PHOTO_ALTERNATE",NOT_INTERESTED:"NOT_INTERESTED",APPS:"APPS",YOUTUBE_ROUND:"YOUTUBE_ROUND",OUTLINE_YOUTUBE_ROUND:"OUTLINE_YOUTUBE_ROUND",YOUTUBE_KIDS_ROUND:"YOUTUBE_KIDS_ROUND",YOUTUBE_MUSIC:"YOUTUBE_MUSIC",YOUTUBE_MUSIC_FILLED:"YOUTUBE_MUSIC_FILLED",
YOUTUBE_MUSIC_MONOCHROME:"YOUTUBE_MUSIC_MONOCHROME",YOUTUBE_MUSIC_MONOCHROME_CAIRO:"YOUTUBE_MUSIC_MONOCHROME_CAIRO",UNPLUGGED_BELL_FOLLOW_ENABLED:"UNPLUGGED_BELL_FOLLOW_ENABLED",UNPLUGGED_BELL_FOLLOW_DISABLED:"UNPLUGGED_BELL_FOLLOW_DISABLED",UNPLUGGED_SPORTS:"UNPLUGGED_SPORTS",UNPLUGGED_LIVE_GUIDE:"UNPLUGGED_LIVE_GUIDE",UNPLUGGED_LIVE_GUIDE_FILLED:"UNPLUGGED_LIVE_GUIDE_FILLED",SUBSCRIPTIONS_FILLED:"SUBSCRIPTIONS_FILLED",VISIBILITY_FILLED:"VISIBILITY_FILLED",LOCATION_FILLED:"LOCATION_FILLED",UNPLUGGED_DARK_THEME:"UNPLUGGED_DARK_THEME",
BRIGHTNESS_FIVE:"BRIGHTNESS_FIVE",BRIGHTNESS_FOUR:"BRIGHTNESS_FOUR",UNPLUGGED_NETWORKS:"UNPLUGGED_NETWORKS",UNPLUGGED_EPISODES:"UNPLUGGED_EPISODES",UNPLUGGED_MORE_TO_WATCH:"UNPLUGGED_MORE_TO_WATCH",UNPLUGGED_STORE:"UNPLUGGED_STORE",CONVERSATIONS:"CONVERSATIONS",EMPTY_SEARCH:"EMPTY_SEARCH",CHECK_BOX:"CHECK_BOX",CHECK_BOX_OUTLINE_BLANK:"CHECK_BOX_OUTLINE_BLANK",CHECK_BOX_BAR:"CHECK_BOX_BAR",SKIP_NEXT:"SKIP_NEXT",SKIP_NEXT_NEW:"SKIP_NEXT_NEW",SKIP_PREVIOUS:"SKIP_PREVIOUS",PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE",
SOUND:"SOUND",AUTOPLAY:"AUTOPLAY",CONTRAST:"CONTRAST",VOLUME_MUTE:"VOLUME_MUTE",VOLUME_OFF:"VOLUME_OFF",VOLUME_UP:"VOLUME_UP",VOLUME_DOWN:"VOLUME_DOWN",MY_VIDEOS_ZERO_STATE:"MY_VIDEOS_ZERO_STATE",BACKSTAGE_ARTWORK:"BACKSTAGE_ARTWORK",LIBRARY_MUSIC:"LIBRARY_MUSIC",LIBRARY_ADD:"LIBRARY_ADD",LIBRARY_IMAGE:"LIBRARY_IMAGE",LIBRARY_REMOVE:"LIBRARY_REMOVE",LIBRARY_OUTLINE:"LIBRARY_OUTLINE",LIBRARY_SAVED:"LIBRARY_SAVED",WATCH_HISTORY_PAUSED:"WATCH_HISTORY_PAUSED",IMPROVE_YOUTUBE:"IMPROVE_YOUTUBE",TV:"TV",
TV_OFF:"TV_OFF",SAVE_ALT:"SAVE_ALT",DOWNLOADS_PAGE_EMPTY:"DOWNLOADS_PAGE_EMPTY",ACCOUNT_LINKED:"ACCOUNT_LINKED",ACCOUNT_UNLINKED:"ACCOUNT_UNLINKED",ACCOUNT_SOME_LINKED:"ACCOUNT_SOME_LINKED",CREATOR_STUDIO_NO_COMMENTS:"CREATOR_STUDIO_NO_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS:"CREATOR_STUDIO_NO_HELD_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS_V2:"CREATOR_STUDIO_NO_HELD_COMMENTS_V2",CREATOR_STUDIO_NO_SEARCH_MATCH:"CREATOR_STUDIO_NO_SEARCH_MATCH",CREATOR_STUDIO_NO_SEARCH_MATCH_V2:"CREATOR_STUDIO_NO_SEARCH_MATCH_V2",
CREATOR_STUDIO_ERROR_ON_LOAD:"CREATOR_STUDIO_ERROR_ON_LOAD",CREATOR_STUDIO_ERROR_ON_LOAD_V2:"CREATOR_STUDIO_ERROR_ON_LOAD_V2",VIDEO_LIBRARY_WHITE:"VIDEO_LIBRARY_WHITE",PRODUCT_SHOP:"PRODUCT_SHOP",PRODUCT_HOTEL:"PRODUCT_HOTEL",PRODUCT_FLIGHT:"PRODUCT_FLIGHT",PLAY_ARROW_BLACK:"PLAY_ARROW_BLACK",HIGHLIGHT_OFF:"HIGHLIGHT_OFF",CREATION_UPLOAD:"CREATION_UPLOAD",CREATION_UPLOAD_RED:"CREATION_UPLOAD_RED",CREATION_LIVE:"CREATION_LIVE",CREATION_POST:"CREATION_POST",GOOGLE:"GOOGLE",PAUSE:"PAUSE",PLAY_DISABLED:"PLAY_DISABLED",
INCOGNITO_CIRCLE:"INCOGNITO_CIRCLE",INCOGNITO_CAIRO:"INCOGNITO_CAIRO",CREATE:"CREATE",CREST:"CREST",EQUALIZER:"EQUALIZER",NOW_PLAYING_EQUALIZER:"NOW_PLAYING_EQUALIZER",WHATS_HOT:"WHATS_HOT",ADD_MODERATOR:"ADD_MODERATOR",REMOVE_MODERATOR:"REMOVE_MODERATOR",HELP_OUTLINE:"HELP_OUTLINE",HELP_FILLED:"HELP_FILLED",OFFICIAL_ARTIST_BADGE:"OFFICIAL_ARTIST_BADGE",DONE_ALL:"DONE_ALL",REMOVE_DONE:"REMOVE_DONE",SUPERVISOR_ACCOUNT:"SUPERVISOR_ACCOUNT",REELS_ZERO_STATE:"REELS_ZERO_STATE",SPOTLIGHT:"SPOTLIGHT",FOLDER:"FOLDER",
TUNE:"TUNE",LOCATION_PIN:"LOCATION_PIN",MAKING:"MAKING",SOCCER:"SOCCER",CURATING_MODE_COLLECTIONS:"CURATING_MODE_COLLECTIONS",APPROVED_FOR_YOU:"APPROVED_FOR_YOU",SHARED_BY_PARENTS:"SHARED_BY_PARENTS",KIDS_WATCH_IT_AGAIN:"KIDS_WATCH_IT_AGAIN",KIDS_SPORTS:"KIDS_SPORTS",PLAY_NEXT:"PLAY_NEXT",BREAKING_NEWS:"BREAKING_NEWS",BREAKING_NEWS_ALT_1:"BREAKING_NEWS_ALT_1",DRAG_HANDLE:"DRAG_HANDLE",LOCK_OPEN:"LOCK_OPEN",ACCOUNT_ADVANCED:"ACCOUNT_ADVANCED",ACCOUNT_PLAYBACK:"ACCOUNT_PLAYBACK",ACCOUNT_PRIVACY:"ACCOUNT_PRIVACY",
ACCOUNT_NOTIFICATIONS:"ACCOUNT_NOTIFICATIONS",ACCOUNT_SETTINGS:"ACCOUNT_SETTINGS",ACCOUNT_SHARING:"ACCOUNT_SHARING",CHROME_ICON:"CHROME_ICON",WATCH_PARTY:"WATCH_PARTY",ARROW_DROP_UP:"ARROW_DROP_UP",ARROW_DROP_DOWN:"ARROW_DROP_DOWN",ARROW_CHART_NEUTRAL:"ARROW_CHART_NEUTRAL",BOOKMARK:"BOOKMARK",BOOKMARK_CAIRO:"BOOKMARK_CAIRO",BOOKMARK_BORDER:"BOOKMARK_BORDER",ROTATE_LEFT:"ROTATE_LEFT",PHONE_DOWNLOAD:"PHONE_DOWNLOAD",FORUM:"FORUM",VPN_KEY:"VPN_KEY",LOCK:"LOCK",LOCK_FILLED:"LOCK_FILLED",INSERT_CHART:"INSERT_CHART",
INSERT_CHART_OUTLINED:"INSERT_CHART_OUTLINED",SHOW_MORE:"SHOW_MORE",CONTENT_CUT:"CONTENT_CUT",CONTENT_CUT_CAIRO:"CONTENT_CUT_CAIRO",CONTENT_CUT_WHITE:"CONTENT_CUT_WHITE",HEADSET:"HEADSET",YOUTUBE_AD:"YOUTUBE_AD",VOICE_REMOTE:"VOICE_REMOTE",WIFI_STATUS_BAR_ZERO:"WIFI_STATUS_BAR_ZERO",WIFI_STATUS_BAR_ONE:"WIFI_STATUS_BAR_ONE",WIFI_STATUS_BAR_THREE:"WIFI_STATUS_BAR_THREE",WIFI_STATUS_BAR_FOUR:"WIFI_STATUS_BAR_FOUR",COURSE:"COURSE",COURSE_CAIRO:"COURSE_CAIRO",COURSE_OUTLINE:"COURSE_OUTLINE",MOBILE_SCREEN_SHARE:"MOBILE_SCREEN_SHARE",
SPEAKER_NOTES:"SPEAKER_NOTES",AUTO_AWESOME:"AUTO_AWESOME",FEATURE_HIGHLIGHT:"FEATURE_HIGHLIGHT",SPONSORS_ONLY_LIVE_CHAT_MODE_ON:"SPONSORS_ONLY_LIVE_CHAT_MODE_ON",SPONSORS_ONLY_LIVE_CHAT_MODE_OFF:"SPONSORS_ONLY_LIVE_CHAT_MODE_OFF",VIDEO_YOUTUBE:"VIDEO_YOUTUBE",SYSTEM_HEADER_FOREGROUND:"SYSTEM_HEADER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND:"SYSTEM_FOOTER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND_RTL:"SYSTEM_FOOTER_FOREGROUND_RTL",SYSTEM_FOOTER_BACKGROUND:"SYSTEM_FOOTER_BACKGROUND",LABS_HEADER:"LABS_HEADER",
SEARCH_LARGE:"SEARCH_LARGE",GOOGLE_LOGO:"GOOGLE_LOGO",ZOOM_IN:"ZOOM_IN",ZOOM_OUT:"ZOOM_OUT",REELS_ADD:"REELS_ADD",SHIELD:"SHIELD",SHIELD_WITH_AVATAR:"SHIELD_WITH_AVATAR",KEYBOARD_ARROW_LEFT:"KEYBOARD_ARROW_LEFT",KEYBOARD_ARROW_RIGHT:"KEYBOARD_ARROW_RIGHT",CHECK_BOX_BLUE:"CHECK_BOX_BLUE",CHECK_BOX_OUTLINE_GREY:"CHECK_BOX_OUTLINE_GREY",WORK_OFF:"WORK_OFF",BRIGHTNESS_THREE:"BRIGHTNESS_THREE",LOCATION_ON:"LOCATION_ON",LOCATION_OFF:"LOCATION_OFF",UNDO:"UNDO",LOCAL_SHIPPING:"LOCAL_SHIPPING",RESHARE:"RESHARE",
MOBILE_FRIENDLY:"MOBILE_FRIENDLY",ENTERTAINMENT:"ENTERTAINMENT",GAMING:"GAMING",HAPPENING_NOW:"HAPPENING_NOW",KIDS_HERO:"KIDS_HERO",POWER_SETTINGS_NEW:"POWER_SETTINGS_NEW",RADIO_BUTTON_CHECKED:"RADIO_BUTTON_CHECKED",CHECK_BOX_V2:"CHECK_BOX_V2",CHECK_BOX_OUTLINE_BLANK_V2:"CHECK_BOX_OUTLINE_BLANK_V2",REELS_COMMENT:"REELS_COMMENT",REELS_COMMENT_FILL:"REELS_COMMENT_FILL",KEYBOARD_ARROW_UP:"KEYBOARD_ARROW_UP",KEYBOARD_ARROW_DOWN:"KEYBOARD_ARROW_DOWN",SUBSCRIBED:"SUBSCRIBED",SUBSCRIBED_DARK_MODE:"SUBSCRIBED_DARK_MODE",
ADD_TO_QUEUE_TAIL:"ADD_TO_QUEUE_TAIL",ADD_TO_QUEUE:"ADD_TO_QUEUE",YOUTUBE_LINKED_TV:"YOUTUBE_LINKED_TV",ARROW_DOWNWARD_ALT:"ARROW_DOWNWARD_ALT",ARROW_UPWARD_ALT:"ARROW_UPWARD_ALT",TROPHY:"TROPHY",TROPHY_CAIRO:"TROPHY_CAIRO",CLOUD_UPLOAD:"CLOUD_UPLOAD",SUBDIRECTORY_ARROW_RIGHT:"SUBDIRECTORY_ARROW_RIGHT",MY_VIDEOS:"MY_VIDEOS",MY_VIDEOS_CAIRO:"MY_VIDEOS_CAIRO",LAUNCH:"LAUNCH",PERSON_OUTLINE:"PERSON_OUTLINE",VIEWS_OUTLINE:"VIEWS_OUTLINE",EXPAND_ALL:"EXPAND_ALL",FACT_CHECK:"FACT_CHECK",RED_CARD:"RED_CARD",
YELLOW_CARD:"YELLOW_CARD",CREATION_ENTRY_UPLOAD_ICON:"CREATION_ENTRY_UPLOAD_ICON",APPLAUSE:"APPLAUSE",LENS_WHITE:"LENS_WHITE",LENS_YELLOW:"LENS_YELLOW",LENS_GREEN:"LENS_GREEN",LENS_CYAN:"LENS_CYAN",LENS_MAGENTA:"LENS_MAGENTA",LENS_RED:"LENS_RED",LENS_BLACK:"LENS_BLACK",LENS_BLUE:"LENS_BLUE",PREMIUM:"PREMIUM",PREMIUM_STANDALONE:"PREMIUM_STANDALONE",PREMIUM_STANDALONE_CAIRO:"PREMIUM_STANDALONE_CAIRO",CLARIFY:"CLARIFY",SCHEDULE:"SCHEDULE",TRAVEL:"TRAVEL",SCREEN_ROTATION:"SCREEN_ROTATION",DRAFT:"DRAFT",
BACKSPACE:"BACKSPACE",LICENSE:"LICENSE",LABEL:"LABEL",SPORTS_BASEBALL:"SPORTS_BASEBALL",SPORTS_BASKETBALL:"SPORTS_BASKETBALL",SPORTS_FOOTBALL:"SPORTS_FOOTBALL",SYNC:"SYNC",SYNC_PROBLEM:"SYNC_PROBLEM",PHONELINK:"PHONELINK",PROGRESS_ACTIVITY:"PROGRESS_ACTIVITY",REELS_VIEW_STORY:"REELS_VIEW_STORY",EARTH:"EARTH",SHOW_CHART:"SHOW_CHART",PEOPLE:"PEOPLE",PEOPLE_ALT:"PEOPLE_ALT",PEOPLE_OUTLINE:"PEOPLE_OUTLINE",PEOPLE_2:"PEOPLE_2",PEOPLE_GROUP:"PEOPLE_GROUP",PEOPLE_FILLED:"PEOPLE_FILLED",DONE:"DONE",GOOGLE_PLAY_GAMES:"GOOGLE_PLAY_GAMES",
AUTOPLAY_ON:"AUTOPLAY_ON",AUTOPLAY_OFF:"AUTOPLAY_OFF",KIDS_AUTOPLAY_ON:"KIDS_AUTOPLAY_ON",KIDS_AUTOPLAY_OFF:"KIDS_AUTOPLAY_OFF",KIDS_AUTOPLAY_LOCKED_OFF:"KIDS_AUTOPLAY_LOCKED_OFF",CALENDAR:"CALENDAR",KIDS_MOVE:"KIDS_MOVE",PROGRESS_SPINNER_GREY:"PROGRESS_SPINNER_GREY",KIDS_CAMP:"KIDS_CAMP",BAR_CHART:"BAR_CHART",POLICY:"POLICY",CREATION_TAB:"CREATION_TAB",CREATION_TAB_LARGE:"CREATION_TAB_LARGE",CREATION_TAB_LARGE_CAIRO:"CREATION_TAB_LARGE_CAIRO",ADD_CIRCLE_OUTLINE:"ADD_CIRCLE_OUTLINE",REMOVE_CIRCLE_OUTLINE:"REMOVE_CIRCLE_OUTLINE",
COLLECTIONS:"COLLECTIONS",FORWARD_10:"FORWARD_10",REPLAY_10:"REPLAY_10",MUSIC_NEW_RELEASE:"MUSIC_NEW_RELEASE",PROMPTED_SIGN_IN:"PROMPTED_SIGN_IN",CAMERA_REMIX:"CAMERA_REMIX",SUBJECT:"SUBJECT",FIND_IN_PAGE:"FIND_IN_PAGE",CREATE_VIDEO_NEW:"CREATE_VIDEO_NEW",GO_LIVE:"GO_LIVE",ADD_STORY:"ADD_STORY",CREATE_POST_NEW:"CREATE_POST_NEW",FACE_VERY_UPSET:"FACE_VERY_UPSET",FACE_VERY_SAD:"FACE_VERY_SAD",FACE_SAD:"FACE_SAD",FACE_MEH:"FACE_MEH",FACE_HAPPY:"FACE_HAPPY",FACE_HAPPY_OUTLINE:"FACE_HAPPY_OUTLINE",FACE_VERY_HAPPY:"FACE_VERY_HAPPY",
FACE_FILLED_HAPPY:"FACE_FILLED_HAPPY",FACE_FILLED_UNHAPPY:"FACE_FILLED_UNHAPPY",FACE_FILLED_VERY_HAPPY:"FACE_FILLED_VERY_HAPPY",FACE_FILLED_MEH:"FACE_FILLED_MEH",FACE_FILLED_SAD:"FACE_FILLED_SAD",FACE_OUTLINED_HAPPY:"FACE_OUTLINED_HAPPY",FACE_OUTLINED_UNHAPPY:"FACE_OUTLINED_UNHAPPY",FACE_OUTLINED_VERY_HAPPY:"FACE_OUTLINED_VERY_HAPPY",FACE_OUTLINED_MEH:"FACE_OUTLINED_MEH",FACE_OUTLINED_SAD:"FACE_OUTLINED_SAD",FACE_OUTLINED_ACTIVE_HAPPY:"FACE_OUTLINED_ACTIVE_HAPPY",FACE_OUTLINED_ACTIVE_UNHAPPY:"FACE_OUTLINED_ACTIVE_UNHAPPY",
FACE_OUTLINED_ACTIVE_VERY_HAPPY:"FACE_OUTLINED_ACTIVE_VERY_HAPPY",FACE_OUTLINED_ACTIVE_MEH:"FACE_OUTLINED_ACTIVE_MEH",FACE_OUTLINED_ACTIVE_SAD:"FACE_OUTLINED_ACTIVE_SAD",OUTLINE_MUSIC_VIDEO:"OUTLINE_MUSIC_VIDEO",OUTLINE_HEADSET:"OUTLINE_HEADSET",OUTLINE_YOUTUBE_MUSIC:"OUTLINE_YOUTUBE_MUSIC",OUTLINE_YOUTUBE_IMPROVE_TV:"OUTLINE_YOUTUBE_IMPROVE_TV",OUTLINE_BAG:"OUTLINE_BAG",OUTLINE_MOBILE_DOWNLOAD:"OUTLINE_MOBILE_DOWNLOAD",HASHTAG_LANDING_PAGE_EMPTY:"HASHTAG_LANDING_PAGE_EMPTY",HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE:"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE",
HASHTAG_LANDING_PAGE_ERROR:"HASHTAG_LANDING_PAGE_ERROR",HASHTAG_LANDING_PAGE_ERROR_DARK_MODE:"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE",TRENDING_DOWN:"TRENDING_DOWN",EXPAND_MORE:"EXPAND_MORE",OUTLINE_CAMERA_20:"OUTLINE_CAMERA_20",OUTLINE_CAMERA_24:"OUTLINE_CAMERA_24",G_TRANSLATE:"G_TRANSLATE",SHOPPING_BAG:"SHOPPING_BAG",SHOPPING_BAG_CAIRO:"SHOPPING_BAG_CAIRO",CAKE:"CAKE",CAMPAIGN:"CAMPAIGN",VIDEOGAME_ASSET:"VIDEOGAME_ASSET",GIF:"GIF",INSERT_PHOTO:"INSERT_PHOTO",LOCAL_MALL:"LOCAL_MALL",COLOR_LENS:"COLOR_LENS",
LOCK_CLOCK:"LOCK_CLOCK",SYSTEM_UPDATE:"SYSTEM_UPDATE",ALL_INCLUSIVE:"ALL_INCLUSIVE",VIDEO_SETTINGS:"VIDEO_SETTINGS",WALLPAPER:"WALLPAPER",GROUPS:"GROUPS",MONEY_OFF:"MONEY_OFF",GAMEPAD:"GAMEPAD",PLAYLISTS_KIDS_RESTRICT_ACCESS:"PLAYLISTS_KIDS_RESTRICT_ACCESS",LIVE_CREATION_RESTRICT_ACCESS:"LIVE_CREATION_RESTRICT_ACCESS",LIVE_SAFEGUARD_EDUCATION:"LIVE_SAFEGUARD_EDUCATION",LIVE_COSTREAM_CREATOR_EDUCATION:"LIVE_COSTREAM_CREATOR_EDUCATION",ARTICLE:"ARTICLE",ARTICLE_ALERT:"ARTICLE_ALERT",ARTICLE_CHECK:"ARTICLE_CHECK",
ARTICLE_CLARIFY:"ARTICLE_CLARIFY",FAST_REWIND:"FAST_REWIND",ALIGN_LEFT:"ALIGN_LEFT",BLACK_JOY:"BLACK_JOY",CATEGORY:"CATEGORY",DESKTOP:"DESKTOP",GOOGLE_LENS:"GOOGLE_LENS",GOOGLE_LENS_CAMERA:"GOOGLE_LENS_CAMERA",INSIGHTS:"INSIGHTS",LIVE_BADGE:"LIVE_BADGE",OUTLINE_ADJUST:"OUTLINE_ADJUST",OUTLINE_LESS_THAN_4:"OUTLINE_LESS_THAN_4",OUTLINE_GREATER_THAN_20:"OUTLINE_GREATER_THAN_20",OUTLINE_CLOCK_HALF_CIRCLE:"OUTLINE_CLOCK_HALF_CIRCLE",OUTLINE_DASHBOARD_PLUS:"OUTLINE_DASHBOARD_PLUS",OUTLINE_RADAR_LIVE:"OUTLINE_RADAR_LIVE",
WAVEFORM:"WAVEFORM",GLOBE:"GLOBE",SUPER_STORE:"SUPER_STORE",MEMBERSHIPS:"MEMBERSHIPS",MEMBERSHIPS_FILLED:"MEMBERSHIPS_FILLED",MONEY_HAND:"MONEY_HAND",YT_FILL_DOWNLOAD_24:"YT_FILL_DOWNLOAD_24",YT_FILL_OPEN_NEW_24:"YT_FILL_OPEN_NEW_24",YT_OUTLINE_CHEVRON_EXPAND_24:"YT_OUTLINE_CHEVRON_EXPAND_24",YT_OUTLINE_CHEVRON_DOWN_24:"YT_OUTLINE_CHEVRON_DOWN_24",YT_OUTLINE_ARROW_REPEAT_1_24:"YT_OUTLINE_ARROW_REPEAT_1_24",YT_FILL_ARROW_REPEAT_1_24:"YT_FILL_ARROW_REPEAT_1_24",HEALTH_AND_SAFETY:"HEALTH_AND_SAFETY",
YT_FILL_YOUTUBE_MUSIC_24:"YT_FILL_YOUTUBE_MUSIC_24",YT_FILL_YOUTUBE_MUSIC_36:"YT_FILL_YOUTUBE_MUSIC_36",OUTLINE_TRASH_CAN:"OUTLINE_TRASH_CAN",OUTLINE_PENCIL:"OUTLINE_PENCIL",OUTLINE_ALERT_CIRCLE:"OUTLINE_ALERT_CIRCLE",OUTLINE_ALERT_TRIANGLE:"OUTLINE_ALERT_TRIANGLE",OUTLINE_OPEN_NEW:"OUTLINE_OPEN_NEW",LIST:"LIST",ARROW_CIRCLE:"ARROW_CIRCLE",EXPAND_LESS:"EXPAND_LESS",YT_OUTLINE_SUBSCRIPTIONS_24PT:"YT_OUTLINE_SUBSCRIPTIONS_24PT",OUTLINE_ADD:"OUTLINE_ADD",MEDAL:"MEDAL",MULTIVIEW:"MULTIVIEW",GIFT:"GIFT",
OUTLINE_GIFT:"OUTLINE_GIFT",OUTLINE_YOUTUBE_SHORTS_PLUS:"OUTLINE_YOUTUBE_SHORTS_PLUS",OUTLINE_YOUTUBE_LINKED_TV:"OUTLINE_YOUTUBE_LINKED_TV",NERD_STATS:"NERD_STATS",YT_OUTLINE_YOUTUBE_MUSIC_24:"YT_OUTLINE_YOUTUBE_MUSIC_24",YT_OUTLINE_MUSIC_24:"YT_OUTLINE_MUSIC_24",YT_OUTLINE_RATING_UP_24:"YT_OUTLINE_RATING_UP_24",YT_OUTLINE_FIRE_24:"YT_OUTLINE_FIRE_24",CREATOR_STUDIO_RED_LOGO:"CREATOR_STUDIO_RED_LOGO",UNPLUGGED_RED_LOGO:"UNPLUGGED_RED_LOGO",MUSIC_RED_LOGO:"MUSIC_RED_LOGO",KIDS_RED_LOGO:"KIDS_RED_LOGO",
LAPTOP_MOBILE:"LAPTOP_MOBILE",AUDIO_SURROUND:"AUDIO_SURROUND",FEATURED_SEASONAL_AND_GIFTS:"FEATURED_SEASONAL_AND_GIFTS",AUDIO:"AUDIO",SKIP_FORWARD_30:"SKIP_FORWARD_30",PLAY_ARROW_HALF_CIRCLE:"PLAY_ARROW_HALF_CIRCLE",VIDEO_LINK:"VIDEO_LINK",TEXT:"TEXT",SELL:"SELL",SELL_FILLED:"SELL_FILLED",YOUTUBE_STUDIO_ARROW_DOWN:"YOUTUBE_STUDIO_ARROW_DOWN",YOUTUBE_STUDIO_ARROW_UP:"YOUTUBE_STUDIO_ARROW_UP",ADMIN_PANEL_SETTINGS:"ADMIN_PANEL_SETTINGS",EXPIRE:"EXPIRE",BAR_HORIZONTAL:"BAR_HORIZONTAL",SCREEN_THEATRE:"SCREEN_THEATRE",
SCREEN_MINIPLAYER:"SCREEN_MINIPLAYER",SCREEN_DEFAULT:"SCREEN_DEFAULT",SCREEN_FULLSCREEN:"SCREEN_FULLSCREEN",LIST_QUEUE:"LIST_QUEUE",MOON_Z:"MOON_Z",MOON_Z_FILLED:"MOON_Z_FILLED",MESSAGE_BUBBLE_QUESTION:"MESSAGE_BUBBLE_QUESTION",TV_CIRCLE:"TV_CIRCLE",PANELS:"PANELS",BOX_PLACEHOLDER_LEFT_OUTLINE:"BOX_PLACEHOLDER_LEFT_OUTLINE",OUTLINE_OVERFLOW_HORIZONTAL_32:"OUTLINE_OVERFLOW_HORIZONTAL_32",OUTLINE_OVERFLOW_VERTICAL:"OUTLINE_OVERFLOW_VERTICAL",SPEAKER:"SPEAKER",SPEAKER_OFF:"SPEAKER_OFF",SPEAKER_GROUP:"SPEAKER_GROUP",
BAG:"BAG",VR:"VR",MUSIC_MUTED:"MUSIC_MUTED",GREEN_SCREEN_OFF:"GREEN_SCREEN_OFF",GREEN_SCREEN_ON:"GREEN_SCREEN_ON",LIST_PLAY_ARROW:"LIST_PLAY_ARROW",BAR_CIRCLE:"BAR_CIRCLE",QUOTATION_MARK:"QUOTATION_MARK",SPARKLE:"SPARKLE",SPARKLE_FILLED:"SPARKLE_FILLED",SPARK:"SPARK",SPARK_RADAR:"SPARK_RADAR",SPARK_SEARCH:"SPARK_SEARCH",OUTLINE_BAG_BOOKMARK:"OUTLINE_BAG_BOOKMARK",RADAR_LIVE:"RADAR_LIVE",PENCIL:"PENCIL",PRICE_TAG:"PRICE_TAG",CHEVRON_DOWN:"CHEVRON_DOWN",CHEVRON_UP:"CHEVRON_UP",SPEED_1_POINT_2X:"SPEED_1_POINT_2X",
SPEED_1_POINT_5X:"SPEED_1_POINT_5X",SPEED_1_POINT_8X:"SPEED_1_POINT_8X",SPEED_POINT_2X:"SPEED_POINT_2X",SPEED_POINT_5X:"SPEED_POINT_5X",SPEED_POINT_8X:"SPEED_POINT_8X",SPEED_1X:"SPEED_1X",SPEED_2X:"SPEED_2X",BROADCAST:"BROADCAST",BROADCAST_CAIRO:"BROADCAST_CAIRO",PODCAST_16:"PODCAST_16",PODCAST_ADD:"PODCAST_ADD",PODCAST_CHECK:"PODCAST_CHECK",DOLLAR_SIGN:"DOLLAR_SIGN",DOLLAR_SIGN_CONTAINER:"DOLLAR_SIGN_CONTAINER",MEET:"MEET",BRIEFCASE:"BRIEFCASE",CHECK_DOUBLE:"CHECK_DOUBLE",CHECK_DOUBLE_OFF:"CHECK_DOUBLE_OFF",
SHIELD_ADD:"SHIELD_ADD",SHIELD_OFF:"SHIELD_OFF",REMIX_FILLED:"REMIX_FILLED",EYE:"EYE",OPEN_IN_PHONE:"OPEN_IN_PHONE",OPEN_IN_PANEL:"OPEN_IN_PANEL",REPLAY_ARROW:"REPLAY_ARROW",ARROW_UNDO:"ARROW_UNDO",PERSON_CIRCLE_SLASH:"PERSON_CIRCLE_SLASH",EARTH_OUTLINE:"EARTH_OUTLINE",SLASH_CIRCLE_LEFT:"SLASH_CIRCLE_LEFT",SLASH_CIRCLE_RIGHT:"SLASH_CIRCLE_RIGHT",ARROW_PAUSE:"ARROW_PAUSE",MENU_FILTER:"MENU_FILTER",SPACE_BAR:"SPACE_BAR",CIRCLES_6:"CIRCLES_6",CELEBRATION:"CELEBRATION",CROWN:"CROWN",CROWN_FILLED:"CROWN_FILLED",
GRID:"GRID",GRID_3X3:"GRID_3X3",GRID_ASYMMETRICAL:"GRID_ASYMMETRICAL",KEEP_FILLED:"KEEP_FILLED",X_CIRCLE:"X_CIRCLE",KIDS_DOWNLOADS:"KIDS_DOWNLOADS",KIDS_MOVE_DOWNLOAD:"KIDS_MOVE_DOWNLOAD",BRIGHTNESS:"BRIGHTNESS",BRIGHTNESS_FILLED:"BRIGHTNESS_FILLED",MAGIC_WAND:"MAGIC_WAND",MAGIC_WAND_FILLED:"MAGIC_WAND_FILLED",BOX_PENCIL:"BOX_PENCIL",MY_VIDEOS_SUPEX_ZERO_STATE:"MY_VIDEOS_SUPEX_ZERO_STATE",CREATOR_ACADEMY:"CREATOR_ACADEMY",CREATOR_ACADEMY_FILLED:"CREATOR_ACADEMY_FILLED",CREATOR_ACADEMY_FILLED_16:"CREATOR_ACADEMY_FILLED_16",
SCREEN_SWITCH:"SCREEN_SWITCH",PDF:"PDF",SHIELD_OVERFLOW:"SHIELD_OVERFLOW",ANIMALS:"ANIMALS",BOX_OPEN_CHECK:"BOX_OPEN_CHECK",PLAYABLES_LOGO:"PLAYABLES_LOGO",PLAYABLES_LOGO_CAIRO:"PLAYABLES_LOGO_CAIRO",PERSON_2:"PERSON_2",X_OCTAGON:"X_OCTAGON",PLAY_PRISM:"PLAY_PRISM",FILTER_PHOTO:"FILTER_PHOTO",MUSIC_FILLED:"MUSIC_FILLED",COURSE_FILLED:"COURSE_FILLED",TRANSCRIPT:"TRANSCRIPT",TRANSCRIPT_SEARCH:"TRANSCRIPT_SEARCH",STEM:"STEM",ARROW_CIRCLE_RIGHT:"ARROW_CIRCLE_RIGHT",HEART_CIRCLE:"HEART_CIRCLE",RSS:"RSS",
RSS_OFF:"RSS_OFF",PLAYABLES:"PLAYABLES",PERSON_MUSIC:"PERSON_MUSIC",ARROWS_ALERT:"ARROWS_ALERT",CLOCK_ARROWS_ALERT:"CLOCK_ARROWS_ALERT",CLOCK_ARROWS:"CLOCK_ARROWS",SWAP_HORIZ:"SWAP_HORIZ",MUSIC_NOTE_SYMBOL:"MUSIC_NOTE_SYMBOL",BOOK:"BOOK",DISMISS_QUEUE:"DISMISS_QUEUE",RANDOM:"RANDOM",SCREEN_LIGHT:"SCREEN_LIGHT",SINGLE_SPARKLE:"SINGLE_SPARKLE",PROMOTE:"PROMOTE",BUSINESS:"BUSINESS",TOOLBOX:"TOOLBOX",SHORTS_CREATION_COMMENT:"SHORTS_CREATION_COMMENT",SPARK_IMAGE:"SPARK_IMAGE",SPARK_VIDEO:"SPARK_VIDEO",
ALL_CHIP:"ALL_CHIP",TROPHY_CELEBRATIONS:"TROPHY_CELEBRATIONS",SPARK_EDIT:"SPARK_EDIT",MAP_OUTLINE:"MAP_OUTLINE",VOLUME_STABLE:"VOLUME_STABLE",SEARCH_PROMINENT:"SEARCH_PROMINENT",INFINITY_ICON:"INFINITY_ICON",DIRECTIONS_OUTLINE:"DIRECTIONS_OUTLINE",SHORTS_STICKER_PICKER:"SHORTS_STICKER_PICKER",SETTINGS_REMOTE:"SETTINGS_REMOTE",NEWS_STORY:"NEWS_STORY",FOOTBALL_FILLED:"FOOTBALL_FILLED",DOLLARSIGN_COLOR:"DOLLARSIGN_COLOR",YENSIGN_COLOR:"YENSIGN_COLOR",CIRCLES_OVERLAP:"CIRCLES_OVERLAP",ACCESSIBILITY:"ACCESSIBILITY",
CODE:"CODE",HAND_SWIPE_LEFT:"HAND_SWIPE_LEFT",SETTING_UPLOAD:"SETTING_UPLOAD",SETTING_HD:"SETTING_HD",STICKER:"STICKER",SUN:"SUN",MOON:"MOON",EYE_OFF:"EYE_OFF",TARGET:"TARGET",TARGET_ADD:"TARGET_ADD",STAR_SHOOTING:"STAR_SHOOTING",TEXT_BOX:"TEXT_BOX",OUTLINE_ARROW_SOLID_UP:"OUTLINE_ARROW_SOLID_UP",ARROW_SOLID_UP:"ARROW_SOLID_UP",OUTLINE_ARROW_SOLID_DOWN:"OUTLINE_ARROW_SOLID_DOWN",ARROW_SOLID_DOWN:"ARROW_SOLID_DOWN",OUTLINE_ARROW_SOLID_UP_16:"OUTLINE_ARROW_SOLID_UP_16",FILL_ARROW_SOLID_UP_16:"FILL_ARROW_SOLID_UP_16",
OUTLINE_ARROW_SOLID_DOWN_16:"OUTLINE_ARROW_SOLID_DOWN_16",FILL_ARROW_SOLID_DOWN_16:"FILL_ARROW_SOLID_DOWN_16",DIE_3:"DIE_3",POUND:"POUND",CIRCLE:"CIRCLE",CIRCLE_FILLED:"CIRCLE_FILLED",YOUTUBE_SPORTS:"YOUTUBE_SPORTS",STAR_SHOOTING_OUTLINE:"STAR_SHOOTING_OUTLINE",AUDIO_BADGE:"AUDIO_BADGE",FANTASY:"FANTASY",ENGAGEMENT:"ENGAGEMENT",HASHTAG:"HASHTAG",TEMPLATE_ADD:"TEMPLATE_ADD",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP",RUBY:"RUBY",GAME_CONSOLE_DPAD:"GAME_CONSOLE_DPAD",GAME_CONSOLE_FACE_BUTTONS:"GAME_CONSOLE_FACE_BUTTONS",
SKIP_BACK_15:"SKIP_BACK_15",SKIP_FORWARD_15:"SKIP_FORWARD_15",ARROW_CIRCLE_PLAY:"ARROW_CIRCLE_PLAY",NOTE_ADD:"NOTE_ADD",MY_AD_CENTER:"MY_AD_CENTER",MY_AD_CENTER_LOGO:"MY_AD_CENTER_LOGO",PEOPLE_NOTE:"PEOPLE_NOTE",LEARNING:"LEARNING",LEARNING_CAIRO:"LEARNING_CAIRO",IMAGE_ADD:"IMAGE_ADD",LOCATION_POINT:"LOCATION_POINT",OUTLINE_MIX_24:"OUTLINE_MIX_24",FILL_AUDIO_16:"FILL_AUDIO_16",HAND_SWIPE_RIGHT:"HAND_SWIPE_RIGHT",SCHEDULE_FANZONE:"SCHEDULE_FANZONE",PLAY_PAUSE:"PLAY_PAUSE",ARROW_DIAGONAL_UP_RIGHT:"ARROW_DIAGONAL_UP_RIGHT",
ARROW_DIAGONAL_UP_RIGHT_FILLED:"ARROW_DIAGONAL_UP_RIGHT_FILLED",LOCAL_ACTIVITY:"LOCAL_ACTIVITY",STAR_CIRCLE_RIBBON:"STAR_CIRCLE_RIBBON",STAR_CIRCLE_RIBBON_OUTLINE:"STAR_CIRCLE_RIBBON_OUTLINE",LIGHTBULB_SPARK_OUTLINE:"LIGHTBULB_SPARK_OUTLINE",SPARK_LIGHTBULB_OUTLINE:"SPARK_LIGHTBULB_OUTLINE",SPARK_LIGHTBULB_FILLED:"SPARK_LIGHTBULB_FILLED"};var EBb=function(){HE.apply(this,arguments)};
_.z(EBb,HE);EBb.prototype.getAssociations=function(){return[]};_.FBb=new _.X("playerInterstitialRenderer");var GBb=new _.X("getKidsBlocklistPickerCommand");_.HBb=new _.X("updateKidsBlacklistEndpoint");_.fw=new _.X("likeEndpoint");var IBb,JBb,KBb;IBb=new _.X("addChatItemAction");JBb=new _.X("removeChatItemAction");KBb=new _.X("markChatItemAsDeletedAction");_.LBb=new _.X("setLiveChatCollapsedStateAction");var MBb=function(){HE.apply(this,arguments)};
_.z(MBb,HE);MBb.prototype.getAssociations=function(){return[]};var NBb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(NBb,_.bd);var OBb=_.kd(NBb,[0,1,_.ey]);var PBb=new _.X("liveChatEndpoint");var QBb=new _.X("liveChatItemContextMenuEndpoint");var RBb=new _.X("liveChatReplayEndpoint");_.SBb=new _.X("emojiPickerRenderer");var TBb=new _.X("liveChatAuthorBadgeViewModel");var UBb=new _.X("deleteLiveChatMessageCommand");var VBb=new _.X("liveChatActionEndpoint");var WBb=new _.X("createLiveChatPollEndpoint");var XBb=new _.X("manageLiveChatUserEndpoint");var YBb=new _.X("moderateLiveChatEndpoint");_.ZBb=new _.X("sendLiveChatMessageEndpoint");var $Bb=new _.X("sendLiveChatVoteEndpoint");var aCb=new _.X("clearLocationCommand");var bCb=new _.X("resolveLocationCommand");var cCb=new _.X("interactionLoggingCommandMetadata");var LXa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(LXa,_.bd);var KXa=function(a,b){return _.gg(a,1,b)};var dCb=[0,_.gy];var JXa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(JXa,_.bd);var IXa=function(a,b){return ml(a,1,LXa,b)};JXa.prototype.JSC$9891_serializeBinary=uda([0,_.iy,dCb]);var nBa={SLI_STATUS_UNKNOWN:"SLI_STATUS_UNKNOWN",SLI_STATUS_SUCCESS:"SLI_STATUS_SUCCESS",SLI_STATUS_FAILURE:"SLI_STATUS_FAILURE",SLI_STATUS_TIMEOUT:"SLI_STATUS_TIMEOUT",SLI_STATUS_ABORTED:"SLI_STATUS_ABORTED",SLI_STATUS_CANCELLED:"SLI_STATUS_CANCELLED",SLI_STATUS_REJECTED:"SLI_STATUS_REJECTED"};var eCb={MAIN_APP_WEB_PAGE_TYPE_UNKNOWN:"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN",MAIN_APP_WEB_PAGE_TYPE_BROWSE:"MAIN_APP_WEB_PAGE_TYPE_BROWSE",MAIN_APP_WEB_PAGE_TYPE_SEARCH:"MAIN_APP_WEB_PAGE_TYPE_SEARCH",MAIN_APP_WEB_PAGE_TYPE_WATCH:"MAIN_APP_WEB_PAGE_TYPE_WATCH",MAIN_APP_WEB_PAGE_TYPE_CHANNEL:"MAIN_APP_WEB_PAGE_TYPE_CHANNEL",MAIN_APP_WEB_PAGE_TYPE_PLAYLIST:"MAIN_APP_WEB_PAGE_TYPE_PLAYLIST",MAIN_APP_WEB_PAGE_TYPE_SETTING:"MAIN_APP_WEB_PAGE_TYPE_SETTING",MAIN_APP_WEB_PAGE_TYPE_SHORTS:"MAIN_APP_WEB_PAGE_TYPE_SHORTS"},
fCb={MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN:"MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN",MAIN_APP_WEB_REQUEST_TYPE_NAVIGATE:"MAIN_APP_WEB_REQUEST_TYPE_NAVIGATE",MAIN_APP_WEB_REQUEST_TYPE_LOAD:"MAIN_APP_WEB_REQUEST_TYPE_LOAD"};var Uaa={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO"};_.IPa=new _.X("logFlowLoggingEventCommand");_.wPa=new _.X("loggingContext");var gCb=new _.X("captionLanguageSelectActionCommand");var hCb=new _.X("showCaptionLanguageSelectActionCommand");var iCb=new _.X("dismissDialogEndpoint");var jCb=new _.X("hideItemSectionVideosByIdCommand");var kCb=new _.X("showMiniplayerCommand");var lCb=function(){HE.apply(this,arguments)};
_.z(lCb,HE);lCb.prototype.getAssociations=function(){return[]};var mCb=function(){HE.apply(this,arguments)};
_.z(mCb,HE);mCb.prototype.getAssociations=function(){return[]};var nCb=function(){HE.apply(this,arguments)};
_.z(nCb,HE);nCb.prototype.getAssociations=function(){return[]};var oCb=function(){HE.apply(this,arguments)};
_.z(oCb,HE);oCb.prototype.getAssociations=function(){var a=[];this.delegate.downloadsList&&a.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&a.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&a.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&a.push(this.delegate.refresh);return[].concat(_.De(new Set(a)))};var pCb=function(){HE.apply(this,arguments)};
_.z(pCb,HE);pCb.prototype.getAssociations=function(){var a=[];this.delegate.refresh&&a.push(this.delegate.refresh);if(this.delegate.downloads)for(var b=_.h(this.delegate.downloads),c=b.next();!c.done;c=b.next())a.push.apply(a,_.De((new qCb(c.value)).getAssociations()));return[].concat(_.De(new Set(a)))};
var qCb=function(){GE.apply(this,arguments)};
_.z(qCb,GE);qCb.prototype.getAssociations=function(){var a=[];this.delegate.video&&a.push(this.delegate.video);this.delegate.playlist&&a.push(this.delegate.playlist);this.delegate.videoItem&&a.push(this.delegate.videoItem);this.delegate.playlistItem&&a.push(this.delegate.playlistItem);return[].concat(_.De(new Set(a)))};var rCb=function(){HE.apply(this,arguments)};
_.z(rCb,HE);rCb.prototype.getAssociations=function(){var a=[];this.delegate.localImageEntities&&a.push.apply(a,_.De(this.delegate.localImageEntities));return[].concat(_.De(new Set(a)))};var sCb=function(){HE.apply(this,arguments)};
_.z(sCb,HE);sCb.prototype.getAssociations=function(){var a=[];this.delegate.playbackData&&a.push(this.delegate.playbackData);this.delegate.localImageEntities&&a.push.apply(a,_.De(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&a.push(this.delegate.videoDownloadContextEntity);return[].concat(_.De(new Set(a)))};var tCb=function(){HE.apply(this,arguments)};
_.z(tCb,HE);tCb.prototype.getAssociations=function(){return[]};var uCb=function(){HE.apply(this,arguments)};
_.z(uCb,HE);uCb.prototype.getAssociations=function(){var a=[];this.delegate.fakeChildren&&a.push.apply(a,_.De(this.delegate.fakeChildren));return[].concat(_.De(new Set(a)))};var vCb=function(){HE.apply(this,arguments)};
_.z(vCb,HE);vCb.prototype.getAssociations=function(){var a=[];this.delegate.video&&a.push(this.delegate.video);this.delegate.playbackData&&a.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&a.push(this.delegate.offlineVideoPolicy);return[].concat(_.De(new Set(a)))};var wCb=function(){HE.apply(this,arguments)};
_.z(wCb,HE);wCb.prototype.getAssociations=function(){return[]};var xCb=function(){HE.apply(this,arguments)};
_.z(xCb,HE);xCb.prototype.getAssociations=function(){var a=[];this.delegate.channelOwner&&a.push(this.delegate.channelOwner);this.delegate.videos&&a.push.apply(a,_.De(this.delegate.videos));this.delegate.collaboratorChannels&&a.push.apply(a,_.De(this.delegate.collaboratorChannels));this.delegate.downloadState&&a.push(this.delegate.downloadState);this.delegate.refresh&&a.push(this.delegate.refresh);return[].concat(_.De(new Set(a)))};var yCb=function(){HE.apply(this,arguments)};
_.z(yCb,HE);yCb.prototype.getAssociations=function(){var a=[];this.delegate.video&&a.push(this.delegate.video);this.delegate.channelContributor&&a.push(this.delegate.channelContributor);return[].concat(_.De(new Set(a)))};var zCb=function(){GE.apply(this,arguments)};
_.z(zCb,GE);zCb.prototype.getAssociations=function(){var a=[];this.delegate.recommendedVideoMetadata&&a.push.apply(a,_.De((new ACb(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.De(new Set(a)))};
var ACb=function(){GE.apply(this,arguments)};
_.z(ACb,GE);ACb.prototype.getAssociations=function(){var a=[];this.delegate.localImageEntities&&a.push.apply(a,_.De(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&a.push(this.delegate.videoDownloadContextEntity);return[].concat(_.De(new Set(a)))};var BCb=function(){GE.apply(this,arguments)};
_.z(BCb,GE);BCb.prototype.getAssociations=function(){var a=[];this.delegate.playbackPosition&&a.push(this.delegate.playbackPosition);return[].concat(_.De(new Set(a)))};var CCb=function(){HE.apply(this,arguments)};
_.z(CCb,HE);CCb.prototype.getAssociations=function(){var a=[];this.delegate.owner&&a.push(this.delegate.owner);this.delegate.downloadState&&a.push(this.delegate.downloadState);this.delegate.userState&&a.push.apply(a,_.De((new BCb(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&a.push.apply(a,_.De((new zCb(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.De(new Set(a)))};var DCb=function(){HE.apply(this,arguments)};
_.z(DCb,HE);DCb.prototype.getAssociations=function(){var a=[];this.delegate.userChannelDetails&&a.push(this.delegate.userChannelDetails);return[].concat(_.De(new Set(a)))};var ECb=function(){HE.apply(this,arguments)};
_.z(ECb,HE);ECb.prototype.getAssociations=function(){var a=[];this.delegate.channelOwner&&a.push(this.delegate.channelOwner);this.delegate.playbackPosition&&a.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&a.push.apply(a,_.De(this.delegate.localImageEntities));this.delegate.downloadStatus&&a.push(this.delegate.downloadStatus);return[].concat(_.De(new Set(a)))};var mFa=new _.X("downloadsPageSmartDownloadsOptInBannerParams");var FCb=function(){HE.apply(this,arguments)};
_.z(FCb,HE);FCb.prototype.getAssociations=function(){return[]};var GCb=function(){HE.apply(this,arguments)};
_.z(GCb,HE);GCb.prototype.getAssociations=function(){return[]};var HCb=function(){HE.apply(this,arguments)};
_.z(HCb,HE);HCb.prototype.getAssociations=function(){return[]};var ICb=function(){HE.apply(this,arguments)};
_.z(ICb,HE);ICb.prototype.getAssociations=function(){return[]};var JCb=function(){HE.apply(this,arguments)};
_.z(JCb,HE);JCb.prototype.getAssociations=function(){return[]};var KCb=function(){HE.apply(this,arguments)};
_.z(KCb,HE);KCb.prototype.getAssociations=function(){return[]};var LCb=function(){HE.apply(this,arguments)};
_.z(LCb,HE);LCb.prototype.getAssociations=function(){return[]};var MCb=function(){HE.apply(this,arguments)};
_.z(MCb,HE);MCb.prototype.getAssociations=function(){return[]};var pXa=new _.X("dislikeButtonViewModel");var oXa=new _.X("likeButtonViewModel");var NCb=new _.X("videoSummaryContentViewModel");var L_a=new _.X("videoSummaryParagraphViewModel");var OCb=new _.X("changeTimelyActionVisibilityCommand");var PCb=new _.X("hideEngagementPanelEndpoint");var QCb=new _.X("refreshPanelEndpoint");var RCb=new _.X("scrollToSectionEndpoint");var SCb=new _.X("seekToVideoTimestampCommand");_.Tw=new _.X("showEngagementPanelEndpoint");var TCb=new _.X("showTransientPlayerScrimOverlayCommand");var UCb=new _.X("toggleEngagementPanelCommand");_.VCb=new _.X("createBroadcastCommand");var WCb=new _.X("metadataUpdateCommand");var XCb=function(){HE.apply(this,arguments)};
_.z(XCb,HE);XCb.prototype.getAssociations=function(){return[]};var YCb=function(){HE.apply(this,arguments)};
_.z(YCb,HE);YCb.prototype.getAssociations=function(){return[]};var ZCb=function(){HE.apply(this,arguments)};
_.z(ZCb,HE);ZCb.prototype.getAssociations=function(){return[]};_.$Cb=new _.X("merchandiseShelfRenderer");var aDb=new _.X("gridMovieRenderer");_.bDb=new _.X("movieRenderer");var cDb=function(){HE.apply(this,arguments)};
_.z(cDb,HE);cDb.prototype.getAssociations=function(){var a=[];this.delegate.trackDownloadMetadatas&&a.push.apply(a,_.De(this.delegate.trackDownloadMetadatas));return[].concat(_.De(new Set(a)))};var dDb=function(){HE.apply(this,arguments)};
_.z(dDb,HE);
dDb.prototype.getAssociations=function(){var a=[];this.delegate.downloadedTracks&&a.push.apply(a,_.De(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&a.push.apply(a,_.De(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&a.push.apply(a,_.De(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&a.push.apply(a,_.De(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&a.push.apply(a,_.De(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
a.push.apply(a,_.De(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&a.push.apply(a,_.De(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&a.push.apply(a,_.De(this.delegate.metadataOnlyTracks));return[].concat(_.De(new Set(a)))};var eDb=function(){HE.apply(this,arguments)};
_.z(eDb,HE);eDb.prototype.getAssociations=function(){var a=[];this.delegate.trackDownloadMetadatas&&a.push.apply(a,_.De(this.delegate.trackDownloadMetadatas));return[].concat(_.De(new Set(a)))};var fDb=function(){HE.apply(this,arguments)};
_.z(fDb,HE);fDb.prototype.getAssociations=function(){var a=[];this.delegate.playbackData&&a.push(this.delegate.playbackData);this.delegate.localImageEntities&&a.push.apply(a,_.De(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&a.push(this.delegate.videoDownloadContextEntity);return[].concat(_.De(new Set(a)))};var gDb=function(){HE.apply(this,arguments)};
_.z(gDb,HE);
gDb.prototype.getAssociations=function(){var a=[];this.delegate.musicLibraryStatusEntity&&a.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&a.push.apply(a,_.De(this.delegate.primaryArtists));this.delegate.details&&a.push(this.delegate.details);this.delegate.userDetails&&a.push(this.delegate.userDetails);this.delegate.tracks&&a.push.apply(a,_.De(this.delegate.tracks));this.delegate.share&&a.push(this.delegate.share);this.delegate.downloadMetadata&&a.push(this.delegate.downloadMetadata);this.delegate.refresh&&
a.push(this.delegate.refresh);return[].concat(_.De(new Set(a)))};
var hDb=function(){HE.apply(this,arguments)};
_.z(hDb,HE);hDb.prototype.getAssociations=function(){var a=[];this.delegate.albumRelease&&a.push(this.delegate.albumRelease);this.delegate.tracks&&a.push.apply(a,_.De(this.delegate.tracks));return[].concat(_.De(new Set(a)))};
var iDb=function(){HE.apply(this,arguments)};
_.z(iDb,HE);iDb.prototype.getAssociations=function(){var a=[];this.delegate.albumRelease&&a.push(this.delegate.albumRelease);return[].concat(_.De(new Set(a)))};var jDb=function(){HE.apply(this,arguments)};
_.z(jDb,HE);jDb.prototype.getAssociations=function(){var a=[];this.delegate.details&&a.push(this.delegate.details);this.delegate.userDetails&&a.push(this.delegate.userDetails);return[].concat(_.De(new Set(a)))};
var kDb=function(){HE.apply(this,arguments)};
_.z(kDb,HE);kDb.prototype.getAssociations=function(){var a=[];this.delegate.parentArtist&&a.push(this.delegate.parentArtist);return[].concat(_.De(new Set(a)))};
var lDb=function(){HE.apply(this,arguments)};
_.z(lDb,HE);lDb.prototype.getAssociations=function(){var a=[];this.delegate.parentArtist&&a.push(this.delegate.parentArtist);return[].concat(_.De(new Set(a)))};var mDb=function(){HE.apply(this,arguments)};
_.z(mDb,HE);mDb.prototype.getAssociations=function(){return[]};var nDb=function(){HE.apply(this,arguments)};
_.z(nDb,HE);nDb.prototype.getAssociations=function(){return[]};var oDb=function(){HE.apply(this,arguments)};
_.z(oDb,HE);
oDb.prototype.getAssociations=function(){var a=[];this.delegate.tracks&&a.push.apply(a,_.De(this.delegate.tracks));this.delegate.refresh&&a.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&a.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&a.push(this.delegate.details);this.delegate.downloadMetadata&&a.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&a.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&a.push(this.delegate.userDetails);this.delegate.entryCollection&&
a.push(this.delegate.entryCollection);this.delegate.share&&a.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&a.push.apply(a,_.De((new pDb(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.De(new Set(a)))};
var pDb=function(){GE.apply(this,arguments)};
_.z(pDb,GE);pDb.prototype.getAssociations=function(){var a=[];this.delegate.creatorEntity&&a.push(this.delegate.creatorEntity);return[].concat(_.De(new Set(a)))};var qDb=function(){HE.apply(this,arguments)};
_.z(qDb,HE);qDb.prototype.getAssociations=function(){return[]};var rDb=function(){HE.apply(this,arguments)};
_.z(rDb,HE);
rDb.prototype.getAssociations=function(){var a=[];this.delegate.musicLibraryStatusEntity&&a.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&a.push.apply(a,_.De(this.delegate.artists));this.delegate.audioModeVersion&&a.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&a.push(this.delegate.videoModeVersion);this.delegate.userDetails&&a.push(this.delegate.userDetails);this.delegate.details&&a.push(this.delegate.details);this.delegate.albumRelease&&a.push(this.delegate.albumRelease);this.delegate.share&&
a.push(this.delegate.share);this.delegate.libraryEdit&&a.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&a.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&a.push(this.delegate.playbackPosition);this.delegate.lyrics&&a.push(this.delegate.lyrics);return[].concat(_.De(new Set(a)))};
var sDb=function(){HE.apply(this,arguments)};
_.z(sDb,HE);sDb.prototype.getAssociations=function(){var a=[];this.delegate.parentTrack&&a.push(this.delegate.parentTrack);return[].concat(_.De(new Set(a)))};
var tDb=function(){HE.apply(this,arguments)};
_.z(tDb,HE);tDb.prototype.getAssociations=function(){var a=[];this.delegate.parentTrack&&a.push(this.delegate.parentTrack);return[].concat(_.De(new Set(a)))};var ow=new _.X("musicResponsiveListItemRenderer");var sUa=new _.X("addToPlaylistEndpoint");var uDb=new _.X("captionPickerEndpoint");var vDb=new _.X("suggestStats");var wDb=new _.X("backstageImageUploadEndpoint");var xDb=new _.X("createBackstagePostDialogEndpoint");_.yDb=new _.X("createCommentReplyDialogEndpoint");_.zDb=new _.X("updateCommentDialogEndpoint");_.ADb=new _.X("updateCommentReplyDialogEndpoint");var BDb=new _.X("menuEndpoint");var hQa=new _.X("modalEndpoint");var CDb=new _.X("playlistEditorEndpoint");var DDb=new _.X("copyTextEndpoint");var EDb,FDb;EDb=new _.X("shareEndpoint");FDb=new _.X("shareEntityEndpoint");_.GDb=new _.X("shareEntityServiceEndpoint");_.ETa=new _.X("userFeedbackEndpoint");_.Un=new _.X("watchEndpoint");var jIa=new _.X("watchPlaylistEndpoint");var HDb=new _.X("addUpcomingEventReminderEndpoint");_.NE=new _.X("getCommentsFromInboxCommand");var IDb=new _.X("notificationOptOutEndpoint");var JDb=new _.X("recordNotificationInteractionsEndpoint");var KDb=new _.X("removeUpcomingEventReminderEndpoint");var qUa=new _.X("getDownloadActionCommand");_.LDb=new _.X("offlineOrchestrationActionCommand");var MDb=function(){HE.apply(this,arguments)};
_.z(MDb,HE);MDb.prototype.getAssociations=function(){return[]};var NDb=function(){HE.apply(this,arguments)};
_.z(NDb,HE);NDb.prototype.getAssociations=function(){return[]};var ODb=function(){HE.apply(this,arguments)};
_.z(ODb,HE);ODb.prototype.getAssociations=function(){return[]};var PDb=function(){HE.apply(this,arguments)};
_.z(PDb,HE);PDb.prototype.getAssociations=function(){return[]};var QDb=function(){HE.apply(this,arguments)};
_.z(QDb,HE);QDb.prototype.getAssociations=function(){var a=[];this.delegate.transfer&&a.push(this.delegate.transfer);this.delegate.adsPlaybackData&&a.push.apply(a,_.De(this.delegate.adsPlaybackData));this.delegate.drmLicense&&a.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&a.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&a.push(this.delegate.videoDownloadContextEntity);return[].concat(_.De(new Set(a)))};var RDb=function(){HE.apply(this,arguments)};
_.z(RDb,HE);RDb.prototype.getAssociations=function(){return[]};var SDb=function(){HE.apply(this,arguments)};
_.z(SDb,HE);SDb.prototype.getAssociations=function(){var a=[];this.delegate.offlineVideoStreams&&a.push.apply(a,_.De(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&a.push.apply(a,_.De(this.delegate.captionTrack));return[].concat(_.De(new Set(a)))};var TDb=function(){HE.apply(this,arguments)};
_.z(TDb,HE);TDb.prototype.getAssociations=function(){return[]};var UDb=new _.X("showMoreDrawerCommand");var VDb=new _.X("updateEngagementPanelContentCommand");var WDb=new _.X("getPdgBuyFlowCommand");var XDb=new _.X("liveChatPurchaseMessageEndpoint");var YDb=new _.X("openSuperStickerBuyFlowCommand");var ZDb=new _.X("updatePdgFeatureEnablementCommand");var $Db=function(){HE.apply(this,arguments)};
_.z($Db,HE);$Db.prototype.getAssociations=function(){return[]};var aEb=function(){HE.apply(this,arguments)};
_.z(aEb,HE);aEb.prototype.getAssociations=function(){return[]};_.bEb=new _.X("pdgCommentChipRenderer");_.cEb=new _.X("permissionRoleBottomBarRenderer");_.dEb=new _.X("updatePermissionRoleCommand");var eEb=new _.X("prefetchWatchCommand");var fEb=new _.X("updatePlayerErrorMessageCommand");var jUa=new _.X("toggleCaptionsVisibilityCommand");_.gEb=new _.X("quickActionsViewModel");var hEb=new _.X("playerResponse");var iEb=new _.X("playlistRenderer");_.jEb=new _.X("playlistVideoListRenderer");_.OE=new _.X("playlistEditEndpoint");var kEb=new _.X("createImagePollCommand");var lEb=new _.X("createQuizCommand");var mEb=new _.X("quizRenderer");var nEb=new _.X("uploadedVideoRenderer");var oEb=new _.X("decorateMessageEndpoint");var pEb=new _.X("lpOfferCardOptionViewModel");var qEb=new _.X("sfvAudioItemPlaybackCommand");var rEb=function(){HE.apply(this,arguments)};
_.z(rEb,HE);rEb.prototype.getAssociations=function(){return[]};_.PE=new _.X("reelNonVideoContentEndpoint");_.uq=new _.X("reelWatchEndpoint");_.QE=new _.X("reelItemRenderer");var sEb=new _.X("reelMetapanelViewModel");_.tEb=new _.X("reelNonVideoContentRenderer");_.uEb=new _.X("reelPlayerOverlayRenderer");var vEb=new _.X("shortsLockupViewModel");var wEb=new _.X("sponsorButtonViewModel");var xEb=new _.X("reelItemWatchResponse");var yEb=new _.X("textBadgeRenderer");_.RE=new _.X("buttonRenderer");_.SE=new _.X("toggleButtonRenderer");var X1a=new _.X("switchButtonViewModel");_.zEb=new _.X("confirmDialogRenderer");var AEb;AEb=new _.X("menuRenderer");_.BEb=new _.X("menuFlexibleItemRenderer");var CEb=new _.X("pollRenderer");_.DEb=new _.X("backgroundPromoRenderer");var FEb;_.EEb=new _.X("chipCloudRenderer");FEb=new _.X("chipCloudChipRenderer");var GEb=new _.X("dropdownRenderer");var HEb=new _.X("gridVideoRenderer");_.M4a=new _.X("itemSectionRenderer");_.IEb=new _.X("messageRenderer");var JEb=new _.X("sortFilterHeaderRenderer");_.KEb=new _.X("videoRenderer");var LEb=new _.X("resolveUrlCommandMetadata");var MEb=function(){HE.apply(this,arguments)};
_.z(MEb,HE);MEb.prototype.getAssociations=function(){return[]};_.NEb=new _.X("getAnswerCommand");_.rq=new _.X("searchEndpoint");var OEb=new _.X("genAiRichTextViewModel");var pUa=new _.X("overviewAnswerViewModel");var PEb=new _.X("addToPlaylistServiceEndpoint");var QEb=new _.X("clearSearchHistoryEndpoint");var REb=new _.X("clearWatchHistoryEndpoint");var SEb=new _.X("webSerializedServiceEndpointExtension");_.TEb=new _.X("createCommentEndpoint");var UEb=new _.X("createCommentReplyEndpoint");var TE=new _.X("performCommentActionEndpoint");var VEb=new _.X("updateCommentEndpoint");var WEb=new _.X("updateCommentReplyEndpoint");_.UE=new _.X("createPlaylistServiceEndpoint");var XEb=new _.X("deletePlaylistEndpoint");var YEb=new _.X("deleteVideoEndpoint");var rUa=new _.X("getReportFormEndpoint");var ZEb=new _.X("modifyChannelNotificationPreferenceEndpoint");var HVa;_.ru=new _.X("offlinePlaylistEndpoint");HVa={ACTION_UNKNOWN:"ACTION_UNKNOWN",ACTION_ADD:"ACTION_ADD",ACTION_REMOVE:"ACTION_REMOVE",ACTION_REMOVE_WITH_PROMPT:"ACTION_REMOVE_WITH_PROMPT",ACTION_PAUSE:"ACTION_PAUSE",ACTION_RETRY:"ACTION_RETRY",ACTION_RESUME:"ACTION_RESUME",ACTION_SYNC:"ACTION_SYNC",ACTION_APPROVE:"ACTION_APPROVE",ACTION_INFER_AUTOMATICALLY:"ACTION_INFER_AUTOMATICALLY",ACTION_TOGGLE_AUTO_DOWNLOAD:"ACTION_TOGGLE_AUTO_DOWNLOAD"};var IVa;_.qu=new _.X("offlineVideoEndpoint");IVa={ACTION_UNKNOWN:"ACTION_UNKNOWN",ACTION_ADD:"ACTION_ADD",ACTION_REMOVE:"ACTION_REMOVE",ACTION_REMOVE_WITH_PROMPT:"ACTION_REMOVE_WITH_PROMPT",ACTION_PAUSE:"ACTION_PAUSE",ACTION_RETRY:"ACTION_RETRY",ACTION_RESUME:"ACTION_RESUME",ACTION_DOWNLOAD_IMMEDIATELY:"ACTION_DOWNLOAD_IMMEDIATELY",ACTION_REDOWNLOAD:"ACTION_REDOWNLOAD",ACTION_RENEW:"ACTION_RENEW",ACTION_RENEW_WITH_PROMPT:"ACTION_RENEW_WITH_PROMPT",ACTION_INFER_AUTOMATICALLY:"ACTION_INFER_AUTOMATICALLY"};var $Eb=new _.X("pingingEndpoint");_.aFb=new _.X("selectActiveIdentityEndpoint");var bFb=new _.X("setSettingEndpoint");var S6a=new _.X("undoFeedbackEndpoint");var cFb=new _.X("unsubscribeEndpoint");_.dFb=new _.X("updatedMetadataEndpoint");var eFb=function(){HE.apply(this,arguments)};
_.z(eFb,HE);eFb.prototype.getAssociations=function(){return[]};_.fFb=new _.X("updateLocalAppSettingCommand");var gFb=new _.X("saveImageToDeviceEndpoint");var hFb=new _.X("shareImageCommand");var iFb=new _.X("sharingProviderDataCommand");var jFb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(jFb,_.bd);var kFb=[0,_.hy,-1];jFb.prototype.JSC$10090_serializeBinary=uda(kFb);var lFb=_.md(kFb);var mFb=new _.X("userMentionSuggestionRenderer");var nFb=new _.X("liveChatTunnelCommand");var oFb=new _.X("showSponsorshipsGiftOfferDialogCommand");var pFb=new _.X("sponsorshipsScrollableShelfViewModel");var qFb=new _.X("updateUpcomingEventReminderButtonStateCommand");var rFb=new _.X("upcomingEventReminderButtonStateRenderer");var sFb=new _.X("subscribeEndpoint");var tFb=new _.X("registerTasksCommand");var uFb=new _.X("showDialogCommand");_.xu=new _.X("showSheetCommand");var vFb=function(){HE.apply(this,arguments)};
_.z(vFb,HE);vFb.prototype.getAssociations=function(){return[]};_.cv=new _.X("avatarViewModel");var t1a=new _.X("badgeViewModel");_.Iu=new _.X("buttonViewModel");_.VE=new _.X("chipViewModel");var u2a=new _.X("contentPreviewImageViewModel");var B2a=new _.X("decoratedAvatarViewModel");var gXa=new _.X("downloadButtonViewModel");_.w4a=new _.X("engagementBarViewModel");_.D2a=new _.X("imageBannerViewModel");var e_a=new _.X("lockupContentMetadataRowExtension");var wFb=new _.X("lockupMetadataViewModel");var xFb=new _.X("lockupViewModel");var yFb=function(){HE.apply(this,arguments)};
_.z(yFb,HE);yFb.prototype.getAssociations=function(){return[]};_.zFb=new _.X("pageHeaderViewModel");_.Ju=new _.X("toggleButtonViewModel");var AFb=function(){HE.apply(this,arguments)};
_.z(AFb,HE);AFb.prototype.getAssociations=function(){return[]};_.x4a=new _.X("votingViewModel");var BFb=new _.X("sectionHeaderViewModel");var CFb=new _.X("notifyDropdownOptionSelectedCommand");var yWa=new _.X("listViewModel");_.yu=new _.X("listItemViewModel");var DFb=new _.X("dialogHeaderViewModel");var EFb=function(){HE.apply(this,arguments)};
_.z(EFb,HE);EFb.prototype.getAssociations=function(){return[]};var FFb=function(){HE.apply(this,arguments)};
_.z(FFb,HE);FFb.prototype.getAssociations=function(){return[]};var GFb=function(){HE.apply(this,arguments)};
_.z(GFb,HE);GFb.prototype.getAssociations=function(){return[]};_.HFb=new _.X("transcriptSubmitCaptionCorrectionCommand");var IFb=function(){HE.apply(this,arguments)};
_.z(IFb,HE);IFb.prototype.getAssociations=function(){return[]};var WPa=new _.X("unpluggedStringRunImage");var JFb=new _.X("tabViewModel");var KFb=new _.X("tabbedViewModel");var LFb=function(){HE.apply(this,arguments)};
_.z(LFb,HE);LFb.prototype.getAssociations=function(){return[]};_.MFb=new _.X("updateDescriptionAction");var NFb=new _.X("updateToggleButtonTextAction");_.OFb=new _.X("autoplaySwitchButtonRenderer");var Xw;_.PFb=new _.X("multiMarkersPlayerBarRenderer");Xw=new _.X("chapterRenderer");var QFb=new _.X("heatMarkerRenderer");var d7a=new _.X("heatmapRenderer");var RFb=new _.X("smartSkipPlayerScrimOverlayRenderer");var SFb=new _.X("timedMarkerDecorationRenderer");var l3a=new _.X("postWebToNativeMessageCommand");var TFb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(TFb,_.bd);var UFb=_.kd(TFb,[0,_.hy,-2]);var VFb=new _.X("whitelistEditEndpoint");var WFb=new _.X("commerceActionCommand");_.XFb=new _.X("getPaymentInstrumentsParamsCommand");var YFb=new _.X("getPaymentsClientTokenCommand");var ZFb=new _.X("googlePaymentBillingCommand");var $Fb=new _.X("googlePaymentPurchaseManagerCommand");_.aGb=new _.X("logGtmCommand");var bGb=new _.X("updateCardItemOnClickCommand");_.cGb=new _.X("ypcPauseSubscriptionCommand");_.dGb=new _.X("ypcResumeSubscriptionCommand");var eGb=function(){HE.apply(this,arguments)};
_.z(eGb,HE);eGb.prototype.getAssociations=function(){return[]};var fGb=function(){HE.apply(this,arguments)};
_.z(fGb,HE);fGb.prototype.getAssociations=function(){return[]};var gGb=function(){HE.apply(this,arguments)};
_.z(gGb,HE);gGb.prototype.getAssociations=function(){return[]};var hGb=function(){HE.apply(this,arguments)};
_.z(hGb,HE);hGb.prototype.getAssociations=function(){return[]};var iGb=function(){HE.apply(this,arguments)};
_.z(iGb,HE);iGb.prototype.getAssociations=function(){return[]};var o0a=new _.X("ypcOffersEndpoint");var jGb=new _.X("cardItemRenderer"),kGb=new _.X("cardItemTextRenderer");var lGb=new _.X("commerceCartItemQuantityPickerRenderer");var mGb=new _.X("linkCardRenderer");var f3a=new _.X("quantityIncrementerButtonViewModel");var nGb=new _.X("quantityIncrementerViewModel");var oGb=new _.X("themedImageViewModel");_.pGb=new _.X("ypcCancelRecurrenceEndpoint");var qGb=new _.X("ypcCompleteTransactionEndpoint");_.rGb=new _.X("ypcGetCartEndpoint");_.tv=new _.X("ypcGetOffersEndpoint");_.WE=new _.X("ypcHandleTransactionEndpoint");var sGb=new _.X("ypcLogWalletAnalyticDataEndpoint");_.tGb=new _.X("ypcRedeemCodeEndpoint");var uGb=new _.X("ypcUpdateFopEndpoint");nE(mE(1),kE(4));vab((new MessageChannel).port2);var vGb=function(){this.register=new Map},pBa=function(a,b,c){a=a+"_"+b;
XE.register.has(a)?c=XE.register.get(a):(c=c(),XE.register.set(a,c));return c},wGb=function(a){a=_.h(a.register.values());
for(var b=a.next();!b.done;b=a.next())_.Cw(b.value,"ABORTED")};
vGb.prototype.clear=function(){wGb(this);this.register.clear()};
var XE=new vGb;var WAa=Date.now().toString();var YAa,xGb=_.ja.ytLoggingDocDocumentNonce_;xGb||(xGb=Bn(16),_.Rj("ytLoggingDocDocumentNonce_",xGb));YAa=xGb;var fBa={DEFAULT:0,CHAT:1,CONVERSATIONS:2,MINIPLAYER:3,DIALOG:4,VOZ:5,MUSIC_WATCH_TABS:6,SHARE:7,PUSH_NOTIFICATIONS:8,RICH_GRID_WATCH:9,UNPLUGGED_BROWSE:10,PICTURE_IN_PICTURE:11,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS",9:"RICH_GRID_WATCH",10:"UNPLUGGED_BROWSE",11:"PICTURE_IN_PICTURE"};var yGb;yGb=1;_.Cn=function(a){this.veData=a};
_.ps=function(a){return new _.Cn({trackingParams:a})};
_.ku=function(a,b,c,d,e,g){var k=yGb++;return new _.Cn({veType:a,veCounter:k,elementIndex:c,dataElement:b,youtubeData:d,jspbYoutubeData:e,loggingDirectives:g})};
_.f=_.Cn.prototype;
_.f.getAsJson=function(){var a={};this.veData.trackingParams!==void 0?a.trackingParams=this.veData.trackingParams:(a.veType=this.veData.veType,this.veData.veCounter!==void 0&&(a.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(a.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(a.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(a.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(a.isCounterfactual=!0);
return a};
_.f.getAsJspb=function(){var a=new umb;this.veData.trackingParams!==void 0?a.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.Yx(a,2,this.veData.veType),this.veData.veCounter!==void 0&&_.Yx(a,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.Yx(a,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.gg(a,5,!0));if(this.veData.dataElement!==void 0){var b=this.veData.dataElement.getAsJspb();_.qd(a,7,b)}this.veData.youtubeData!==void 0&&_.qd(a,8,this.veData.jspbYoutubeData);
return a};
_.f.toString=function(){return JSON.stringify(this.getAsJson())};
_.f.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.f.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.Rj("yt_logging_screen.getRootVeType",cBa);_.Rj("yt_logging_screen.getCurrentCsn",_.En);_.Rj("yt_logging_screen.getCttAuthInfo",Fn);_.Rj("yt_logging_screen.setCurrentScreen",_.iBa);var zGb=function(){this.events=new Map},AGb=function(a){var b=[];
a=_.h(a.events.values());for(var c=a.next();!c.done;c=a.next())b.push(c.value);return b};
zGb.prototype.clear=function(){this.events.clear()};var CGb=function(){this.logTransport=new BGb;this.loggedEventRegister=new zGb;this.unloggedEventRegister=new zGb;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10145_flushTimer=new _.$m(this.flushInterval);this.JSC$10145_flushTimer.listen("tick",this.flush,!1,this)};
CGb.prototype.flush=function(){if(this.eventsCount){var a={loggedEvents:AGb(this.loggedEventRegister),unloggedEvents:AGb(this.unloggedEventRegister)};if(_.w("export_player_version_to_ytconfig")){var b;(b=_.Fi("PLAYER_CLIENT_VERSION"))?(b=b.split("-")[0].replace(/\./g,""),b=isNaN(Number(b))?"0":b):b="";var c=_.Fi("PLAYER_CLIENT_VERSION");if(c){c=c.split("-");var d="";c.length>1&&(d=c[c.length-1]);c=VAa(d.startsWith("canary_experiment")?"canary":d.startsWith("canary_control")?"control":"none")}else c=
"CLIENT_CANARY_STATE_UNKNOWN";a.dimensions={playerClientVersion:b,playerCanaryState:c}}this.logTransport.flush(a);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10145_flushTimer.enabled&&this.JSC$10145_flushTimer.stop()}};
var DGb=function(a){YE==null&&(YE=new CGb);var b=YE;var c=b.loggedEventRegister;a.dimensions=a.dimensions||{};a.dimensions.csn=_.En()||"";var d=jBa(a.dimensions).join(";");if(a.records!=null)if(c.events.has(d)){var e;(e=c.events.get(d).records)==null||e.push.apply(e,_.De(a.records))}else c.events.set(d,a);b.JSC$10145_flushTimer.enabled||b.JSC$10145_flushTimer.start();b.eventsCount++;b.eventsCount>=100&&b.flush()};var BGb=function(){};
BGb.prototype.flush=function(a,b){_.w("enable_client_sli_logging")&&_.xl("sliEventBatch",a,{sendIsolatedPayload:!!b})};var YE;var FGb;FGb=function(a){var b=EGb;a=a===void 0?{}:a;b=b.name;var c=oBa("SUCCESS");DGb({dimensions:a,records:[{name:b,state:"SLI_STATE_END",status:c}]})};
_.qBa=function(a,b,c,d){this.name=a;this.sliId=b;this.timeoutMs=c;this.statusOnTimeout=d;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.qBa.prototype.getId=function(){return this.sliId};
_.Bw=function(a,b){b=b===void 0?{}:b;a.ongoing||(a.ongoing=!0,a.dimensions=b,a.logSliId=Vub(),DGb({dimensions:a.dimensions,records:[{name:a.name,state:"SLI_STATE_START",sliId:a.logSliId}]}),a.timeoutMs>0&&(a.timeoutHandle=setTimeout(function(){_.Cw(a,a.statusOnTimeout)},a.timeoutMs)))};
_.Cw=function(a,b){a.ongoing&&(a.timeoutMs>0&&clearTimeout(a.timeoutHandle),a.ongoing=!1,b={dimensions:a.dimensions,records:[{name:a.name,status:oBa(b),state:"SLI_STATE_END",sliId:a.logSliId}]},XE.register.delete(a.name+"_"+a.sliId),DGb(b))};var EGb=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var GGb=function(){HE.apply(this,arguments)};
_.z(GGb,HE);GGb.prototype.getAssociations=function(){return[]};var KQa=new _.X("highlightTextDecoratorColorMapExtension");var IQa=new _.X("styleRunColorMapExtension");var xBa=_.hx(["data-"]),ABa={};var CBa={};_.Mn=function(a,b,c){_.ca.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
_.z(_.Mn,_.ca);var HBa=function(a){this.xhr=a};var ZE=function(a){this.wrappedPromise_=a===void 0?null:a;this.state_=0;this.JSC$10177_value_=null};
ZE.prototype.then=function(a,b,c){return this.wrappedPromise_?this.wrappedPromise_.then(a,b,c):this.state_===1&&a?(a=a.call(c,this.JSC$10177_value_))&&typeof a.then==="function"?a:_.$E(a):this.state_===2&&b?(a=b.call(c,this.JSC$10177_value_))&&typeof a.then==="function"?a:_.HGb(a):this};
ZE.prototype.getValue=function(){return this.JSC$10177_value_};
ZE.prototype.isRejected=function(){return this.state_==2};
yfb(ZE);_.HGb=function(a){var b=new ZE;a=a===void 0?null:a;b.state_=2;b.JSC$10177_value_=a===void 0?null:a;return b};
_.$E=function(a){var b=new ZE;a=a===void 0?null:a;b.state_=1;b.JSC$10177_value_=a===void 0?null:a;return b};var GBa={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var XBa="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var IGb=["load","abort","error"],aF=function(a,b,c){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10197_maxAspectRatio_=a;this.disableAnimation_=b===void 0?!1:b;this.disableExifRotation_=c===void 0?!1:c;this.JSC$10197_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10197_reject_=this.resolve_=null};
aF.prototype.transform=function(a){var b=this;this.mime_=a.type;fA(orb(a),this.dataUrlRead_,this.readError_,this);fA(nrb(a.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(c,d){b.resolve_=c;b.JSC$10197_reject_=d})};
aF.prototype.dataUrlRead_=function(a){this.dataUrl_=a;this.angle_!=null&&JGb(this)};
aF.prototype.exifRead_=function(a){if(this.disableExifRotation_)this.angle_=0;else{a:if(a=new DataView(a),a.byteLength<2||a.getUint16(0)!==65496)a=-2;else{for(var b=2,c=a.byteLength;b<c;){var d=a.getUint16(b),e=a.getUint16(b+2);if(d===65505){b+=4;d=a.getUint32(b);e=a.getUint16(b+4);if(d!==1165519206||e!==0)break;b+=6;d=a.getUint16(b)===18761;b+=a.getUint32(b+4,d);e=a.getUint16(b,d);b+=2;for(var g=0;g<e;g++){if(a.getUint16(b,d)===274){b+=8;a=a.getUint16(b,d);break a}b+=12}}else if(d>>8!==255)break;
else b+=e+2}a=-1}switch(a){case 8:this.angle_=270;break;case 3:this.angle_=180;break;case 6:this.angle_=90;break;default:this.angle_=0}}this.dataUrl_!=null&&JGb(this)};
aF.prototype.readError_=function(){this.JSC$10197_reject_()};
var JGb=function(a){ns(a.JSC$10197_image_,IGb,a.completeTransform_,!1,a);a.JSC$10197_image_.src=_.Id(a.dataUrl_).toString();a.JSC$10197_image_.src!=Hd.toString()&&a.JSC$10197_image_.src.substr(0,11)==="data:image/"||a.JSC$10197_reject_()};
aF.prototype.completeTransform_=function(){if(this.JSC$10197_image_.src!=Hd.toString()){var a=_.Id(this.dataUrl_),b=this.JSC$10197_image_.naturalHeight?this.JSC$10197_image_.naturalWidth/this.JSC$10197_image_.naturalHeight:null;this.invalidAspectRatio=b>this.JSC$10197_maxAspectRatio_||b<1/this.JSC$10197_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var c=this.JSC$10197_image_.naturalWidth,d=this.JSC$10197_image_.naturalHeight,e=b=0,g=this.JSC$10197_image_.naturalHeight?this.JSC$10197_image_.naturalWidth/
this.JSC$10197_image_.naturalHeight:null;g>this.JSC$10197_maxAspectRatio_?(c=this.JSC$10197_maxAspectRatio_*d,b=(c-this.JSC$10197_image_.naturalWidth)/2,this.cropped=!0):g<1/this.JSC$10197_maxAspectRatio_?(d=this.JSC$10197_maxAspectRatio_*c,e=(d-this.JSC$10197_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)g=c,c=d,d=g,g=b,b=e,e=g;switch(this.angle_){case 90:e-=c;break;case 180:b-=c;e-=d;break;case 270:b-=
d}this.cropped||this.angle_%360!==0?(a=document.createElement("canvas"),a.width=c||1,a.height=d||1,this.JSC$10197_image_.naturalWidth&&this.JSC$10197_image_.naturalHeight&&(c=a.getContext("2d"),c.rotate(Math.PI/180*this.angle_),c.drawImage(this.JSC$10197_image_,b,e,this.JSC$10197_image_.naturalWidth,this.JSC$10197_image_.naturalHeight)),this.transformedData=_.Id(a.toDataURL(this.mime_))):this.transformedData=a}else this.transformedData=a;this.resolve_(this)}};var bF=function(a,b){_.Cz.call(this,a);this.value=b};
_.z(bF,_.Cz);
var cF=function(a,b,c,d,e,g,k){k=k===void 0?!1:k;_.Hz.call(this);var m=this;this.JSC$10202_url_=a;this.channelId_=b;this.maxFileSizeMb_=c;this.JSC$10202_maxAspectRatio_=d;this.dropZoneEl_=e;this.rejectInvalidAspectRatio_=k;this.selectButtonEl_=g;this.JSC$10202_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new vE(this.dropZoneEl_);this.selectOverlay_=new wE(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10202_image_=this.transfer_=null;this.handler_=new _.an(this);_.kg(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(g,"click",function(){m.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.z(cF,_.Hz);cF.prototype.disposeInternal=function(){for(var a=this.selectButtonEl_.nextSibling;a&&a.parentNode&&a.tagName=="INPUT";)a.parentNode.removeChild(a),a=this.selectButtonEl_.nextSibling;this.cancel();_.Hz.prototype.disposeInternal.call(this)};
cF.prototype.uploadPromise=function(){if(this.JSC$10202_image_==null)return null;this.uploadPromise_||KGb(this);return this.uploadPromise_};
cF.prototype.cancel=function(){LGb(this);this.JSC$10202_image_=null};
var LGb=function(a){a.transfer_&&a.transfer_.cancel();a.transfer_=null;a.uploadPromise_=null;a.resolve_=null;a.JSC$10202_reject_=null},KGb=function(a){LGb(a);
a.transfer_=_.Fyb(a.JSC$10202_url_,{"X-YouTube-ChannelId":a.channelId_},a.JSC$10202_image_);a.handler_.listenOnce(a.transfer_,"l",a.JSC$10204_onUploadComplete_);a.handler_.listenOnce(a.transfer_,"n",a.onUploadError_);a.transfer_.run();a.uploadPromise_=new Promise(function(b,c){a.resolve_=b;a.JSC$10202_reject_=c})};
_.f=cF.prototype;_.f.onChange_=function(a){a.files.length&&(this.JSC$10202_image_=a.files[0],this.JSC$10202_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10202_image_=null,this.dispatchEvent(new bF("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(KGb(this),(new aF(this.JSC$10202_maxAspectRatio_)).transform(this.JSC$10202_image_).then((0,_.wg)(this.onPreview_,this),(0,_.wg)(this.onPreviewError_,this))))};
_.f.onPreview_=function(a){if(a.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10202_image_=null),this.dispatchEvent(new bF("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;a.cropped&&this.dispatchEvent(new bF("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new bF("yt.comments.ImageUploadOverlay.CHANGE_EVENT",a.transformedData))};
_.f.onPreviewError_=function(){this.JSC$10202_image_=null;this.dispatchEvent(new bF("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.f.onHover_=function(a){a.stopPropagation();a.preventDefault();if(a.type==="dragover")a=!0;else if(a.type==="dragleave")a=!1;else return;this.dispatchEvent(new bF("yt.comments.ImageUploadOverlay.HOVER_EVENT",a))};
_.f.JSC$10204_onUploadComplete_=function(){var a=(0,_.Wfb)(this.transfer_.getResponseText());this.resolve_(a.encryptedBlobId)};
_.f.onUploadError_=function(){this.JSC$10202_reject_();LGb(this)};var MGb=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||_.Cf.clone(b);this.assets=a.assets||{};this.attrs=a.attrs||_.Cf.clone(c);this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}};
MGb.prototype.clone=function(){var a=new MGb,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]=_.iba(c)=="object"?_.Cf.clone(c):c}return a};var NGb,OGb,PGb,nw,RGb,SGb,TGb,UGb,VGb,WGb,XGb,YGb,ZGb,$Gb,aHb,bHb,cHb,dHb,eHb,fHb,gHb,hHb,iHb,jHb,kHb,lHb,mHb,nHb,oHb,s4a,pHb,qHb,rHb,sHb,tHb,uHb,vHb,wHb,xHb,yHb,zHb,AHb,BHb,CHb,DHb,EHb,FHb,GHb,HHb,IHb,JHb,KHb,LHb,MHb,NHb,OHb,dF,PHb,QHb,RHb,SHb,THb,UHb,VHb,WHb,XHb,YHb,ZHb,$Hb,aIb,bIb,cIb,dIb,eIb,fIb,q4a,gIb,hIb,iIb,jIb,kIb,lIb,mIb,nIb,oIb,pIb,qIb,rIb,sIb,tIb,uIb,vIb,wIb,xIb,yIb,zIb,AIb,BIb,CIb,DIb,EIb;NGb=["account/accounts_list"];OGb=["acknowledge_channel_tou_strike"];PGb=["notification/add_upcoming_event_reminder"];
_.QGb=["att/get"];nw=["browse","music/browse","unplugged/browse"];RGb=["channel/claim_legacy_youtube_channel"];SGb=["history/clear_search_history"];TGb=["history/clear_watch_history"];UGb=["comment/perform_comment_action"];VGb=["comment/get_comment_replies"];WGb=["ypc/commerce_action"];XGb=["backstage/create_post"];YGb=["live/create_broadcast"];ZGb=["channel/create_channel"];$Gb=["comment/create_comment_reply"];aHb=["comment/create_comment"];bHb=["live_chat/create_poll"];cHb=["playlist/create"];
dHb=["decorate_message"];eHb=["live_chat/delete_message"];fHb=["playlist/delete"];gHb=["video/delete"];hHb=["like/dislike"];iHb=["dismissal/dismiss"];jHb=["flag/flag"];kHb=["flow"];lHb=["account/account_menu"];mHb=["playlist/get_add_to_playlist"];nHb=["get_answer"];oHb=["channel/get_channel_creation_form"];s4a=["offline/get_download_action"];pHb=["kids/get_kids_blocklist_picker"];qHb=["live_chat/get_item_context_menu"];rHb=["live_chat/get_live_chat_message_buy_flow"];sHb=["live_chat/get_live_chat_replay"];
tHb=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];uHb=["live_chat/get_live_chat_super_sticker_buy_flow"];vHb=["notification/get_notification_menu"];wHb=["playlist/get_settings_editor"];xHb=["backstage/get_post_video_preview"];yHb=["account/get_profile_card"];zHb=["share/get_share_panel"];AHb=["share/get_sharing_provider_data"];BHb=["get_survey"];CHb=["notification/get_unseen_count"];DHb=["get_user_mention_suggestions"];EHb=["get_watch"];FHb=["guide"];
GHb=["feedback"];HHb=["kids/update_blacklist"];IHb=["like/like"];JHb=["live_chat/live_chat_action"];KHb=["live_chat/manage_user"];LHb=["video_manager/metadata_update"];MHb=["live_chat/moderate"];NHb=["notification/modify_channel_preference"];OHb=["notification/opt_out"];dF=["get_panel","get_posts_by_host_panel"];PHb=["player"];QHb=["browse/edit_playlist"];RHb=["notification/record_interactions"];SHb=["reel/reel_item_watch"];THb=["reel/reel_watch_sequence"];UHb=["like/removelike"];VHb=["notification/remove_upcoming_event_reminder"];
WHb=["flag/get_form"];XHb=["miniapp/report_value"];YHb=["navigation/resolve_url"];ZHb=["channel/reveal_business_email"];$Hb=["in_video/search"];aIb=["search","sfv/search","unplugged/search"];bIb=["live_chat/send_message"];cIb=["live_chat/send_live_chat_vote"];dIb=["account/set_setting"];eIb=["submit_caption_correction"];fIb=["subscription/subscribe"];q4a=["get_transcript"];gIb=["resolve_location","unplugged/resolve_location"];hIb=["subscription/unsubscribe"];iIb=["backstage/update_post"];jIb=["channel_edit/update_channel_page_settings"];
kIb=["comment/update_comment_reply"];lIb=["comment/update_comment"];mIb=["comment/update_comments_settings"];nIb=["creator/update_creator_channel"];oIb=["pdg/update_enablement"];pIb=["updated_metadata"];qIb=["channel_edit/validate_channel_handle"];rIb=["verify_age"];sIb=["next","unplugged/watch_next"];tIb=["whitelist/edit"];uIb=["ypc/cancel_recurrence"];vIb=["ypc/complete_transaction"];wIb=["ypc/get_cart"];xIb=["ypc/get_fix_instrument_params"];yIb=["ypc/get_offers"];zIb=["ypc/get_payment_instruments_params"];
AIb=["ypc/handle_transaction"];BIb=["ypc/log_payment_server_analytics"];CIb=["ypc/pause_subscription"];DIb=["ypc/redeem_code"];EIb=["ypc/resume_subscription"];var FIb=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,
74616,122224,74617,77820,74618,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,218674,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,
181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,
135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,196075,194768,252201,194769,191885,233634,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,253833,253834,204574,187917,191390,179556,191402,
238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,
138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,211189,111059,211188,5754,20445,233471,151308,151152,228067,130975,130976,247244,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,
68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,96658,116646,159428,168611,168612,121122,
219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,
25602,100339,170873,143516,178921,254884,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,82039];var uo=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.Rj("yt.msgs_",uo);var eF=new _.jB("ACTION_ROUTER_TOKEN");_.fF=function(){this.autonavState_=_.w("kevlar_is_pupi_enabled")?2:iCa()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.fF.prototype.getState=function(){return this.autonavState_};
_.fF.prototype.pause=function(a){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=a):this.autonavState_==1&&(this.disabledAutonavPauseReason_=a)};
_.fF.prototype.setState=function(a,b,c){b&&(this.autoplayChangedByUser=!0);b=this.autonavState_===3||a===3;this.autonavState_!=a&&(this.autonavState_=a,a!=3&&_.jCa(a==2),a=_.w("kevlar_is_pupi_enabled")?c||b:!0,_.Ll.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,a,c))};
_.fF.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.qx(_.fF);var gF=function(){this.hasRun=!1};var hF={},uCa=(hF.auto_search="LATENCY_ACTION_AUTO_SEARCH",hF.ad_to_ad="LATENCY_ACTION_AD_TO_AD",hF.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",hF.app_startup="LATENCY_ACTION_APP_STARTUP",hF.browse="LATENCY_ACTION_BROWSE",hF.cast_splash="LATENCY_ACTION_CAST_SPLASH",hF.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",hF.channels="LATENCY_ACTION_CHANNELS",hF.chips="LATENCY_ACTION_CHIPS",hF.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",hF.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
hF.editor="LATENCY_ACTION_EDITOR",hF.embed="LATENCY_ACTION_EMBED",hF.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",hF.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",hF.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",hF.explore="LATENCY_ACTION_EXPLORE",hF.favorites="LATENCY_ACTION_FAVORITES",hF.home="LATENCY_ACTION_HOME",hF.inboarding="LATENCY_ACTION_INBOARDING",hF.landing="LATENCY_ACTION_LANDING",hF.library="LATENCY_ACTION_LIBRARY",hF.live=
"LATENCY_ACTION_LIVE",hF.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",hF.management="LATENCY_ACTION_MANAGEMENT",hF.mini_app="LATENCY_ACTION_MINI_APP_PLAY",hF.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",hF.onboarding="LATENCY_ACTION_ONBOARDING",hF.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",hF.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",hF.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",hF.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
hF.prebuffer="LATENCY_ACTION_PREBUFFER",hF.prefetch="LATENCY_ACTION_PREFETCH",hF.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",hF.profile_switcher="LATENCY_ACTION_LOGIN",hF.projects="LATENCY_ACTION_PROJECTS",hF.reel_watch="LATENCY_ACTION_REEL_WATCH",hF.results="LATENCY_ACTION_RESULTS",hF.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",hF.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",hF.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",hF.review="LATENCY_ACTION_REVIEW",hF.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",hF.search_ui="LATENCY_ACTION_SEARCH_UI",hF.search_suggest="LATENCY_ACTION_SUGGEST",hF.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",hF.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",hF.seek="LATENCY_ACTION_PLAYER_SEEK",hF.settings="LATENCY_ACTION_SETTINGS",hF.store="LATENCY_ACTION_STORE",hF.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",hF.tenx="LATENCY_ACTION_TENX",hF.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",hF.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
hF.watch="LATENCY_ACTION_WATCH",hF.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",hF["watch,watch7"]="LATENCY_ACTION_WATCH",hF["watch,watch7_html5"]="LATENCY_ACTION_WATCH",hF["watch,watch7ad"]="LATENCY_ACTION_WATCH",hF["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",hF.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",hF.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",hF.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",hF.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",hF.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",hF.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",hF.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",hF.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",hF),JCa=0;var PCa=function(a,b){HB.call(this,1,arguments);this.timer=b};
_.z(PCa,HB);var OCa=new ara("aft-recorded",PCa);var yCa=_.ja.ytLoggingGelSequenceIdObj_||{};_.Rj("ytLoggingGelSequenceIdObj_",yCa);var iF=_.ja.ytLoggingLatencyUsageStats_||{};_.Rj("ytLoggingLatencyUsageStats_",iF);var jF=function(){this.cleanupJob=0},BCa=function(){jF.instance||(jF.instance=new jF);
return jF.instance};
_.f=jF.prototype;_.f.baseline=function(a,b,c){kF(this,"baseline_"+a)||_.xl("latencyActionBaselined",{clientActionNonce:a},{timestamp:b,cttAuthInfo:c})};
_.f.tick=function(a,b,c,d){kF(this,"tick_"+a+"_"+b)||_.xl("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c,cttAuthInfo:d})};
_.f.info=function(a,b,c){var d=Object.keys(a).join("");kF(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,_.xl("latencyActionInfo",a,{cttAuthInfo:c}))};
_.f.jspbInfo=function(a,b,c){for(var d="",e=0;e<Ec(a).length;e++)Ec(a)[e]!==void 0&&(d=e===0?d.concat(""+e):d.concat("_"+e));kF(this,"info_"+d+"_"+b)||(_.vf(a,2,b),b={cttAuthInfo:c},c=_.w("jspb_sparse_encoded_pivot")?new rl([{}]):new rl,_.rd(c,7,Jnb,a),zCa("latencyActionInfo",c,b))};
_.f.span=function(a,b,c){var d=Object.keys(a).join("");kF(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,_.xl("latencyActionSpan",a,{cttAuthInfo:c}))};
var kF=function(a,b){iF[b]=iF[b]||{count:0};var c=iF[b];c.count++;c.time=(0,_.Uj)();a.cleanupJob||(a.cleanupJob=_.sl(_.zk,function(){var d=(0,_.Uj)(),e;for(e in iF)iF[e]&&d-iF[e].time>6E4&&delete iF[e];a&&(a.cleanupJob=0)},5E3));
return c.count>5?(c.count===6&&Math.random()*1E5<1&&(c=new _.qj("CSI data exceeded logging limit with key",b.split("_")),b.indexOf("plev")>=0||_.Dl(c)),!0):!1};var GIb,HIb;GIb=window;HIb=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.Do=GIb.performance||GIb.mozPerformance||GIb.msPerformance||GIb.webkitPerformance||new HIb;var NCa=!1,DCa=!1,QCa=(0,_.wg)(_.Do.clearResourceTimings||_.Do.webkitClearResourceTimings||_.Do.mozClearResourceTimings||_.Do.msClearResourceTimings||_.Do.oClearResourceTimings||_.Gy,_.Do);var IIb=window;IIb.ytcsi&&(IIb.ytcsi.infoGel=_.Jo,IIb.ytcsi.tick=_.Lo);var cDa=function(a){HB.call(this,1,arguments);this.csn=a};
_.z(cDa,HB);var fra=new ara("screen-created",cDa),tDa=[],bDa=sDa,uDa=0,Qo=new Map,dDa=new Map,eDa=new Map;var zXa=Symbol("yf"),$o=new WeakMap;var lF=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},ms=function(){lF.instance||(lF.instance=new lF);
return lF.instance};
_.f=lF.prototype;_.f.setClient=function(a){this.client=a};
_.f.JSC$10284_newScreen=function(){this.clear();this.csn=_.En()};
_.f.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.f.reportShown=function(a,b,c){var d=this.JSC$10284_getTrackingParams(a),e=a.visualElement?a.visualElement:d;b=this.shownElements.has(e);var g=this.visibleState.get(e);this.shownElements.add(e);this.visibleState.set(e,!0);a.impressionLog&&!b&&a.impressionLog();if(d||a.visualElement)if(c=JIb(this,a,c))if(e=KIb(this,a),mF(this,a)||e){d=a.visualElement?a.visualElement:_.ps(d);var k=a.interactionLoggingClientData;e||b?mF(this,a)&4?g||nDa(this.client,c,d,k):mF(this,a)&1&&!b&&kDa(this.client,c,d,k):kDa(this.client,
c,d,k)}};
_.f.reportHidden=function(a,b,c){var d=this.JSC$10284_getTrackingParams(a),e=a.visualElement?a.visualElement:d;b=this.hiddenElements.has(e);var g=this.visibleState.get(e);this.hiddenElements.add(e);this.visibleState.set(e,!1);if(g===!1)return!0;if(!d&&!a.visualElement)return!1;c=JIb(this,a,c);if(!c||!mF(this,a)&&KIb(this,a))return!1;d=a.visualElement?a.visualElement:_.ps(d);mF(this,a)&8?oDa(this.client,c,d):mF(this,a)&2&&!b&&(a=this.client,b=Po({cttAuthInfo:Fn(c)||void 0},c),d={csn:c,ve:d.getAsJson(),
eventType:2},c==="UNDEFINED_CSN"?So("visualElementHidden",b,d):a?vl("visualElementHidden",d,a,b):_.xl("visualElementHidden",d,b));return!0};
_.f.JSC$10284_getTrackingParams=function(a){var b=this.getData(a),c,d;if(_.w("il_use_view_model_logging_context")&&(b==null?0:(c=b.context)==null?0:(d=c.loggingContext)==null?0:d.loggingDirectives))return b.context.loggingContext.loggingDirectives.trackingParams||"";var e,g;if(b==null?0:(e=b.rendererContext)==null?0:(g=e.loggingContext)==null?0:g.loggingDirectives)return b.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(b==null?0:b.loggingDirectives)return b.loggingDirectives.trackingParams||
"";var k;return((k=a.veContainer)==null?0:k.trackingParams)?a.veContainer.trackingParams:(b==null?void 0:b.trackingParams)||""};
_.f.JSC$10284_elementShouldLogGesture=function(a,b){a=this.getData(a);return!!((Math.floor(Number(a&&a.loggingDirectives&&a.loggingDirectives.gestures&&a.loggingDirectives.gestures.types||""))||0)&b)};
_.f.JSC$10284_getNearestParentVe=function(a){var b=this.JSC$10284_getTrackingParams(a);return a.visualElement?a.visualElement:b?_.ps(b):a.parentElement?this.JSC$10284_getNearestParentVe(a.parentElement):null};
var JIb=function(a,b,c){var d=_.En(c);return a.csn===null||d===a.csn||c?d:(a=new _.qj("VisibilityLogger called before newScreen",{caller:b.tagName,previous_csn:a.csn,current_csn:d}),_.Dl(a),null)};
lF.prototype.getData=function(a){var b,c=a.data||((b=a.props)==null?void 0:b.data);if(a.isWebComponentWrapper){var d;c=(d=$o.get(a))==null?void 0:d[zXa]}return c};
var KIb=function(a,b){var c;return!((c=a.getData(b))==null||!c.loggingDirectives)},mF=function(a,b){a=a.getData(b);
return Math.floor(Number(a&&a.loggingDirectives&&a.loggingDirectives.visibility&&a.loggingDirectives.visibility.types||""))||1};var nF;nF=function(){};
_.js=function(){nF.instance||(nF.instance=new nF);return nF.instance};
nF.prototype.setClient=function(a){_.Ii(ms().setClient).bind(ms())(a)};
_.LIb=function(){_.js();_.Ii(ms().JSC$10284_newScreen).bind(ms())()};
nF.prototype.clear=function(){_.Ii(ms().clear).bind(ms())()};
nF.prototype.reportShown=function(a,b,c){_.Ii(ms().reportShown).bind(ms())(a,b,c)};
nF.prototype.reportHidden=function(a,b,c){return _.Ii(ms().reportHidden).bind(ms())(a,b,c)};
var EPa=function(a,b){return _.Ii(ms().JSC$10284_getTrackingParams).bind(ms())(b)},AXa=function(a,b){return _.Ii(ms().JSC$10284_getNearestParentVe).bind(ms())(b)};var oF,MIb;oF=function(){this.graftQueue=[];this.stateChangedQueue=[];this.backHistoryStack=[];this.forwardHistoryStack=[];this.afterNewScreenOneOffJobs=[];this.afterNewScreenRecurringJobs=[];this.cachedVisualElements=new Map;this.cachedRootVisualElements=new Map;this.pendingScreenCreation=new Set;this.recurringGrafts=new Map};
_.ls=function(){oF.instance||(oF.instance=new oF);return oF.instance};
oF.prototype.setClient=function(a){this.client=a};
MIb=function(a,b,c){c=c===void 0?{}:c;_.Ii(function(){var d,e,g,k=((d=_.y(b==null?void 0:b.commandMetadata,_.co))==null?void 0:d.rootVe)||((e=_.y(b==null?void 0:b.commandMetadata,cCb))==null?void 0:(g=e.screenVisualElement)==null?void 0:g.uiType);if(k){d=_.y(b==null?void 0:b.commandMetadata,LEb);if(d==null?0:d.parentTrackingParams){var m=_.ps(d.parentTrackingParams);if(d.parentCsn)var n=d.parentCsn}else c.clickedVisualElement?m=c.clickedVisualElement:b.clickTrackingParams&&(m=_.ps(b.clickTrackingParams));
a:{d=_.y(b,_.Un);e=_.y(b,jIa);if(d){if(e=kCa(d,"VIDEO")){d={token:e,videoId:d.videoId};break a}}else if(e&&(d=kCa(e,"PLAYLIST"))){d={token:d,playlistId:e.playlistId};break a}d=void 0}c=Object.assign({},{cttAuthInfo:d,parentCsn:n},c);if(_.w("expectation_logging")){var r;c.loggingExpectations=((r=_.y(b==null?void 0:b.commandMetadata,cCb))==null?void 0:r.loggingExpectations)||void 0}_.pF(a,k,m,c)}else _.Dl(new _.qj("Error: Trying to create a new screen without a rootVeType",b))})()};
_.pF=function(a,b,c,d){d=d===void 0?{}:d;_.Ii(function(){FIb.includes(b)||(_.Dl(new _.qj("createClientScreen() called with a non-page VE",b)),b=83769);d.isHistoryNavigation||(a.forwardHistoryStack=[],a.backHistoryStack.push({rootVe:b,key:d.key||""}));a.graftQueue=[];a.stateChangedQueue=[];d.dataPromises?NIb(a,b,c,d):OIb(a,b,c,d)})()};
_.PIb=function(a,b,c){c=c===void 0?0:c;_.Ii(function(){b.then(function(d){a.pendingScreenCreation.has(c)&&a.pendingScreenFn&&a.pendingScreenFn();var e=_.En(c),g=_.Dn(c);if(e&&g){var k;(d==null?0:(k=d.response)==null?0:k.trackingParams)&&Ro(a.client,e,g,_.ps(d.response.trackingParams));var m;(d==null?0:(m=d.playerResponse)==null?0:m.trackingParams)&&Ro(a.client,e,g,_.ps(d.playerResponse.trackingParams))}})})()};
oF.prototype.graftServerVe=function(a,b,c){var d=this;return _.Ii(function(){var e=_.ps(a);_.qF(d,e,b,c);return e})()};
_.BXa=function(a,b,c,d){return _.w("enable_client_ve_spec")&&b.clientVeSpec?(b=_.ku(b.clientVeSpec.uiType,void 0,b.clientVeSpec.elementIndex,b.clientVeSpec.clientYoutubeData,void 0,b),_.qF(a,b,c,d)?b:null):b.trackingParams?a.graftServerVe(b.trackingParams,c,d):null};
_.ks=function(a,b,c,d){return _.Ii(function(){if(!b.veType)return _.Cl(new _.qj("Error: Trying to graft a client VE without a veType.")),null;if(b.visibilityTypes){var e=b.visibilityTypes.reduce(function(g,k){return g|k});
e={visibility:{types:String(e)}}}e=_.ku(b.veType,b.visualElement,b.elementIndex,b.clientYouTubeData,void 0,e);return _.qF(a,e,c,d)?e:null})()};
_.qF=function(a,b,c,d){d=d===void 0?0:d;return _.Ii(function(){if(a.pendingScreenCreation.has(d))return a.graftQueue.push([b,c]),!0;var e=_.En(d),g=c||_.Dn(d);if(e&&g){if(_.w("combine_ve_grafts")){var k=a.cachedVisualElements.get(g.toString());k?k.push(b):(a.cachedRootVisualElements.set(g.toString(),g),a.cachedVisualElements.set(g.toString(),[b]));a.attachTimeout||(a.attachTimeout=_.sl(_.zk,function(){QIb(a,e)},1200))}else Ro(a.client,e,g,b);
return!0}return!1})()};
_.rF=function(a,b,c){c=c===void 0?0:c;var d=a.recurringGrafts.get(c)||new Map;if(_.w("smarter_ve_dedupping"))for(var e=Array.from(d.keys()),g=0;g<e.length;g++){var k=void 0,m=void 0;var n=b;var r=e[g];r.isClientVe()&&n.isClientVe()?(k=n.getAsJson(),m=r.getAsJson(),n=k.veType!==m.veType||k.elementIndex!==m.elementIndex||k.dataElement!==m.dataElement||n.getLoggingDirectives()!==r.getLoggingDirectives()?!1:!0):n=r.veData.trackingParams!==void 0&&n.veData.trackingParams!==void 0?((m=n.veData)==null?void 0:
m.trackingParams)===((k=r.veData)==null?void 0:k.trackingParams):!1;if(n)return}else if(d.has(b))return;d.set(b,void 0);a.recurringGrafts.set(c,d);_.En(c)==="UNDEFINED_CSN"||a.pendingScreenCreation.has(c)||_.qF(a,b,void 0,c)};
_.sF=function(a,b,c,d){d=_.En(d===void 0?0:d);if(!d)return!1;qDa(a.client,d,b,c);return!0};
_.tF=function(a,b,c,d){if(!b)return!1;d=_.En(d===void 0?0:d);if(!d)return!1;qDa(a.client,d,_.ps(b),c);return!0};
_.Ot=function(a,b){var c=b.getScreenLayer&&b.getScreenLayer();if(b.visualElement)return _.sF(a,b.visualElement,void 0,c);b=EPa(_.js(),b);return _.tF(a,b,void 0,c)};
oF.prototype.clickCommand=function(a,b,c){return _.tF(this,a.clickTrackingParams,b,c===void 0?0:c)};
oF.prototype.stateChanged=function(a,b,c){this.visualElementStateChanged(_.ps(a),b,c===void 0?0:c)};
oF.prototype.visualElementStateChanged=function(a,b,c){c=c===void 0?0:c;c===0&&this.pendingScreenCreation.has(c)?this.stateChangedQueue.push([a,b]):this.logStateChanged(a,b,c)};
oF.prototype.logStateChanged=function(a,b,c){c=c===void 0?0:c;var d=_.En(c);a=a||_.Dn(c);return d&&a?(rDa(this.client,d,a,b),!0):!1};
var NIb=function(a,b,c,d){d=d===void 0?{}:d;a.pendingScreenCreation.add(d.layer||0);a.pendingScreenFn=function(){OIb(a,b,c,d);var k=_.Dn(d.layer);if(k){for(var m=_.h(a.graftQueue),n=m.next();!n.done;n=m.next())n=n.value,_.qF(a,n[0],n[1]||k,d.layer);k=_.h(a.stateChangedQueue);for(m=k.next();!m.done;m=k.next())m=m.value,a.logStateChanged(m[0],m[1])}};
c||_.En(d.layer)||a.pendingScreenFn();if(d.dataPromises)for(var e=_.h(d.dataPromises),g=e.next();!g.done;g=e.next())_.PIb(a,g.value,d.layer);else _.Bl(Error("zf"))},OIb=function(a,b,c,d){d=d===void 0?{}:d;
var e=void 0;d.layer||(d.layer=0);e=d.parentLayer!==void 0?d.parentLayer:d.layer;var g=_.En(e);e=_.Dn(e);var k=c||e,m;k&&(d.parentCsn!==void 0?m={clientScreenNonce:d.parentCsn,visualElement:k}:g&&g!=="UNDEFINED_CSN"&&(m={clientScreenNonce:g,visualElement:k}));var n,r=_.Fi("EVENT_ID");g==="UNDEFINED_CSN"&&r&&(n={servletData:{serializedServletEventId:r}});_.w("combine_ve_grafts")&&g&&QIb(a,g);_.w("no_client_ve_attach_unless_shown")&&k&&g&&jDa(k,g);try{var t=_.fDa(a.client,b,m,d.csnToClone,d.cttAuthInfo,
n,d.implicitGestureType,void 0,d.loggingExpectations)}catch(A){_.El(A,{rootVeType:b,rootVe:e,parentVisualElement:c,currentCsn:g,parentEl:m,csnToClone:d.csnToClone});_.Bl(A);return}_.iBa(t,b,d.layer,d.cttAuthInfo);g&&g!=="UNDEFINED_CSN"&&e&&!gBa(g)&&oDa(a.client,g,e,!0);a.backHistoryStack[a.backHistoryStack.length-1]&&!a.backHistoryStack[a.backHistoryStack.length-1].csn&&(a.backHistoryStack[a.backHistoryStack.length-1].csn=t||"");_.Jo({clientScreenNonce:t});_.LIb();var u=_.Dn(d.layer);g&&g!=="UNDEFINED_CSN"&&
u&&(_.w("web_mark_root_visible")||_.w("music_web_mark_root_visible"))&&_.Uo(t,u);a.pendingScreenCreation.delete(d.layer||0);a.pendingScreenFn=void 0;var x;(x=a.recurringGrafts.get(d.layer))==null||x.forEach(function(A,C){A?_.qF(a,C,A,d.layer):u&&_.qF(a,C,u,d.layer)});
RIb(a)},RIb=function(a){for(var b=0;b<a.afterNewScreenOneOffJobs.length;b++){var c=a.afterNewScreenOneOffJobs[b];
try{c()}catch(d){_.Bl(d)}}for(b=a.afterNewScreenOneOffJobs.length=0;b<a.afterNewScreenRecurringJobs.length;b++){c=a.afterNewScreenRecurringJobs[b];try{c()}catch(d){_.Bl(d)}}},QIb=function(a,b){if(b===void 0)for(var c=eBa(),d=0;d<c.length;d++)c[d]!==void 0&&QIb(a,c[d]);
else a.cachedVisualElements.forEach(function(e,g){(g=a.cachedRootVisualElements.get(g))&&_.gDa(a.client,b,g,e)}),a.cachedVisualElements.clear(),a.cachedRootVisualElements.clear(),a.attachTimeout=void 0};var uF=function(a){a=a===void 0?{layer:0}:a;this.hasRun=!1;this.createScreenConfig=a;a={};this.processedResponseMap=(a.response=!1,a.playerResponse=!1,a)};
_.z(uF,gF);uF.prototype.validate=function(a){return!(!a.data||!a.data.response&&!a.data.playerResponse)};
uF.prototype.handle=function(a){var b=_.ls(),c=this.createScreenConfig.layer;a.data.response&&a.data.response.trackingParams&&!this.processedResponseMap.response&&(b.graftServerVe(a.data.response.trackingParams,void 0,c),this.processedResponseMap.response=!0);a.data.playerResponse&&a.data.playerResponse.trackingParams&&!this.processedResponseMap.playerResponse&&(b.graftServerVe(a.data.playerResponse.trackingParams,void 0,c),this.processedResponseMap.playerResponse=!0)};var vF=function(){this.JSC$10316_playerPromiseResolver=_.St();this.chunkProcessors=[];this.chunksProcessed=0};
vF.prototype.processChunk=function(a){if(a){for(var b=_.h(this.chunkProcessors),c=b.next();!c.done;c=b.next())c=c.value,c.validate(a)&&(c.handle(a),c.hasRun=!0);_.Lo("np"+this.chunksProcessed);this.chunksProcessed++}};var T6a,UIb;_.gs=function(a,b,c,d,e,g,k){k=k===void 0?[]:k;this.buildCommandPayload=a;this.navigate=b;this.handleServiceRequest=c;this.sendAction=d;this.JSC$10325_screenManager=e;this.commandResolverMap=g;this.autoLogResolverAllowlist=k;this.pendingCommands=new Set};
T6a=function(a,b,c){var d=G6a,e=H6a,g=_.ls(),k=SIb;c=c===void 0?[]:c;_.gs.instance=new _.gs(a,b,d,e,g,k,c)};
UIb=function(a,b,c){if(!a.commandResolverMap)return!1;var d=zDa(b,a.commandResolverMap);return d?((a.autoLogResolverAllowlist.some(function(e){return!!_.y(b,e)})||(c==null?0:c.forceClickLogging))&&TIb(a,b,c),d instanceof Promise?d.then(function(e){e.resolve(b,c)}):d.resolve(b,c),!0):!1};
_.gs.prototype.resolveCommand=function(a,b){var c=this,d=VIb(a);if(UIb(this,a,b))return!0;if(d)return WIb(this,a,b);if(!this.buildCommandPayload)return wDa(a,"Unhandled command by buildCommandPayload"),!1;var e=this.buildCommandPayload(a,b);if(b==null?0:b.commandController)e.commandController=b.commandController;if(e.type===0){if(!this.navigate)return xDa(a,"navigate"),!1;if(!XIb(e.command))return wDa(a,"Page requests need to specify a url"),!1;_.w("logging_avoid_blocking_during_navigation")&&_.Pta().transition("application_navigating");
a=this.navigate(e)||[];Ffb(a).then(function(){c.pendingCommands.delete(e.command)});
return!0}if(e.type===1){if(!this.handleServiceRequest)return xDa(a,"handleServiceRequest"),!1;(b==null?0:b.forceClickLogging)&&TIb(this,e.command,b);a=this.handleServiceRequest(e);Ffb(a).then(function(){c.pendingCommands.delete(e.command)});
return!0}if(e.type===2){if(!this.sendAction)return xDa(a,"sendAction"),!1;TIb(this,e.command,b);this.sendAction(e);return!0}return!1};
var TIb=function(a,b,c){if((c==null||!c.disableClickTracking)&&a.JSC$10325_screenManager)if(b.clickTrackingParams&&_.w("log_click_with_layer_from_element_in_command_handler")){var d;c=c==null?void 0:(d=c.form)==null?void 0:d.element;a.JSC$10325_screenManager.clickCommand(b,null,c&&c.getScreenLayer&&c.getScreenLayer())}else b.clickTrackingParams?a.JSC$10325_screenManager.clickCommand(b):!_.w("disable_clicked_visual_element_in_command_handler")&&(c==null?0:c.clickedVisualElement)&&_.sF(a.JSC$10325_screenManager,
c.clickedVisualElement)},VIb=function(a){var b=!!_.y(a,_.ro),c;
a=((c=_.y(a,_.to))==null?void 0:c.signal)==="CLIENT_SIGNAL";return b||a},WIb=function(a,b,c){var d=_.y(b,_.ro);
if(d)var e=(d==null?void 0:d.commands)||[];else{var g;if(((g=_.y(b,_.to))==null?void 0:g.signal)==="CLIENT_SIGNAL"){var k;e=((k=_.y(b,_.to))==null?void 0:k.actions)||[]}}if(e){b=_.h(e);for(e=b.next();!e.done;e=b.next()){e=e.value;try{a.resolveCommand(e,c)}catch(m){m instanceof Error&&_.Bl(m)}}return!0}wDa(b,"Could not handle the meta command");return!1},XIb=function(a){var b;
return!((b=_.y(a==null?void 0:a.commandMetadata,_.co))==null||!b.url)};var wF=function(){gF.apply(this,arguments)};
_.z(wF,gF);wF.prototype.validate=function(a){var b,c;return!this.hasRun&&!!((b=a.data.response)==null?0:(c=b.onResponseReceivedEndpoints)==null?0:c.length)};
wF.prototype.handle=function(a){var b=_.gs.instance;a=_.h(a.data.response.onResponseReceivedEndpoints);for(var c=a.next();!c.done;c=a.next())b.resolveCommand(c.value)};var YIb,ZIb,$Ib;
YIb=function(){this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.qo();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.xF=function(){ZIb||(ZIb=new YIb);return ZIb};
$Ib=function(){var a=_.xF();a.miniplayerButtonActivation=!1;a.userActivation=!1;a.playlistWatchPageActivation=!1;a.productDetailsPageActivation=!1;a.miniAppPageActivation=!1;a.playablesDestPageActivation=!1;a.lockupActivation=!1;a.showMiniplayerCommandActivation=!1;a.playlistSuggestionsShelfActivation=!1;a.mediaSessionPipActivation=!1;a.watchPipActivation=!1;a.watchWhileActivation=!1;a.shortsPipActivation=!1};
_.aJb=function(){var a=_.xF(),b=a.mediaSessionPipActivation,c=a.watchPipActivation,d=a.watchWhileActivation,e=a.playlistWatchPageActivation,g=a.lockupActivation,k=a.showMiniplayerCommandActivation,m=a.navigatingAwayFromWatchDeletedVideo,n=a.shortsPipActivation,r=a.playlistSuggestionsShelfActivation,t=a.productDetailsPageActivation,u=a.miniAppPageActivation,x=a.playablesDestPageActivation;return!a.miniplayerButtonActivation&&!e&&!r&&!t&&!u&&!x&&!g&&!k&&!b&&!c&&!d&&!n||m};var M2a;_.yF=cp("FEwhat_to_watch","/",3854);_.N2a=cp("FEdownloads","/feed/downloads",42352);M2a=cp("FEmusic_offline","browse/FEmusic_offline",42352);var Xp=function(a,b){b=b===void 0?[]:b;var c=c===void 0?[]:c;b=Uya.apply(null,[Vya.apply(null,_.De(b))].concat(_.De(c)));this.store=Zya(a,void 0,b)};
Xp.prototype.getState=function(){return this.store.getState()};
Xp.prototype.dispatch=function(a){return this.store.dispatch(a)};
Xp.prototype.subscribe=function(a){return this.store.subscribe(a)};
Xp.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
Xp.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.zF=function(a,b,c){var d=b(a.getState());return a.subscribe(function(){var e=b(a.getState());if(e!==d){var g=d;d=e;c(e,g)}})};var qEa;_.wu=function(a,b,c){return _.hp({type:"REPLACE_ENTITY",payload:{entityPayload:c,entityType:a,key:b}})};
qEa=function(a){return _.hp({type:"REPLACE_ENTITIES",payload:a})};
_.Lu=function(a,b,c,d){return _.hp({type:"UPDATE_ENTITY",payload:{entityPayload:c,entityType:a,key:b,mergeOption:d}})};var MDa=function(a){var b=this;a=a===void 0?[]:a;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;a.forEach(function(c){b.append(c)})};
_.f=MDa.prototype;_.f.getLength=function(){return this.totalLength};
_.f.append=function(a){var b=this.arrays.length===0?!1:(b=this.arrays[this.arrays.length-1])&&b.buffer===a.buffer&&b.byteOffset+b.length===a.byteOffset;b?(b=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(a);this.totalLength+=a.length};
_.f.split=function(a){for(var b=new MDa,c=new MDa,d=_.h(this.arrays),e=d.next();!e.done;e=d.next())e=e.value,a>=e.length?(b.append(e),a-=e.length):a?(b.append(new Uint8Array(e.buffer,e.byteOffset,a)),c.append(new Uint8Array(e.buffer,e.byteOffset+a,e.length-a)),a=0):c.append(e);return{headView:b,tailView:c}};
_.f.isFocused=function(a){return a>=this.arrayPos&&a<this.arrayPos+this.arrays[this.arrayIdx].length};
_.f.focus=function(a){if(!this.isFocused(a))for(a<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=a&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
_.f.getDataView=function(a,b){a=a===void 0?0:a;b=b===void 0?-1:b;if(!this.totalLength||!b)return new DataView(new ArrayBuffer(0));b<0&&(b=this.totalLength-a);this.focus(a);if(!(a-this.arrayPos+b<=this.arrays[this.arrayIdx].length)){var c=this.arrayIdx,d=this.arrayPos;this.focus(a+b-1);d=new Uint8Array(this.arrayPos+this.arrays[this.arrayIdx].length-d);for(var e=0,g=c;g<=this.arrayIdx;g++)d.set(this.arrays[g],e),e+=this.arrays[g].length;this.arrays.splice(c,this.arrayIdx-c+1,d);this.arrayPos=this.arrayIdx=
0;this.focus(a)}c=this.arrays[this.arrayIdx];return new DataView(c.buffer,c.byteOffset+a-this.arrayPos,b)};
_.f.getUint8=function(a){this.focus(a);return this.arrays[this.arrayIdx][a-this.arrayPos]};(function(){var a=function(d){return new Uint8Array(d)},b=function(d){for(var e=new Uint8Array(d.length),g=0;g<d.length;g++)e[g]=d[g];
return e},c=new Uint8Array([1]);
return c.length===1&&c[0]===1?a:b})();
var GDa=Array(1024),FDa=window.TextDecoder?new TextDecoder:void 0,IDa=window.TextEncoder?new TextEncoder:void 0;var LDa=function(a){this.arrayView=a;this.pos=0;this.pendingTagAndType=-1},ip=function(a){var b=a.arrayView.getUint8(a.pos);
++a.pos;if(b<128)return b;for(var c=b&127,d=1;b>=128;)b=a.arrayView.getUint8(a.pos),++a.pos,d*=128,c+=(b&127)*d;return c},NDa=function(a,b){var c=a.pendingTagAndType;
for(a.pendingTagAndType=-1;a.pos+1<=a.arrayView.totalLength;){c<0&&(c=ip(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.pendingTagAndType=c;break}c=-1;switch(e){case 0:ip(a);break;case 1:a.pos+=8;break;case 2:d=ip(a);a.pos+=d;break;case 5:a.pos+=4}}return!1};var PDa=function(){this.pos=0;this.submessagePosStack=[];this.buf=KDa(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},lp=function(a,b){b=a.pos+b;
if(!(a.buf.length>=b)){for(var c=a.buf.length*2;c<b;)c*=2;a.buf=KDa(c,a.buf.subarray(0,a.pos));a.view=new DataView(a.buf.buffer,a.buf.byteOffset,a.buf.byteLength)}},kp=function(a,b){if(b>268435455){lp(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(lp(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};for(var QDa={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,fakeChannel:2,
fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,
mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,
musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,settingEntity:297,stringEntity:382,suggestedFeedbackChipStateEntity:485,transfer:120,
trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},ODa={},bJb=_.h(Object.entries(QDa)),cJb=bJb.next();!cJb.done;cJb=bJb.next()){var dJb=_.h(cJb.value),eJb=dJb.next().value,fJb=dJb.next().value,gJb=eJb,hJb=fJb;hJb&&(ODa[hJb]=gJb)};var SDa=function(a,b){a=a===void 0?{}:a;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var g,k=(g=e.options)==null?void 0:g.persistenceOption;if(k&&k!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&k!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return d;if(!e.entityKey)return _.Bl(Error("Bf")),d;if(e.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!e.payload)return e=new _.qj("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey}),_.Bl(e),d;var m=(0,_.Cf.getAnyKey)(e.payload);
return UDa(d,m,e.entityKey,e.payload[m])}if(e.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{e=e.entityKey;try{var n=_.jp(e).entityType;m=UDa(d,n,e);break a}catch(u){if(u instanceof Error){e=new _.qj("Failed to deserialize entity key",{entityKey:e,originalMessage:u.message});_.Bl(e);m=d;break a}throw u;}m=void 0}return m}if(e.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!e.payload)return e=new _.qj("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey}),_.Bl(e),d;m=(0,_.Cf.getAnyKey)(e.payload);
var r,t;return VDa(d,m,e.entityKey,e.payload[m],(r=e.fieldMask)==null?void 0:(t=r.mergeOptions)==null?void 0:t.repeatedFieldsMergeOption)}return d},a);
case "REPLACE_ENTITY":var c=b.payload;return UDa(a,c.entityType,c.key,c.entityPayload);case "REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(d,e){var g=b.payload[e];return Object.keys(g).reduce(function(k,m){return UDa(k,e,m,g[m])},d)},a);
case "UPDATE_ENTITY":return c=b.payload,VDa(a,c.entityType,c.key,c.entityPayload,c.mergeOption);default:return a}};var WDa;var iJb=!1,AF,BF,EF,FF,GF,jJb=function(a){_.vg.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!iJb){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);AF=new Uint8Array(256);BF=op(256);EF=op(256);FF=op(256);GF=op(256);for(var g=0;g<256;g++){e=g?d[255^c[g]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;AF[g]=e;b=e<<1^(e>>7&&283);var k=b^e;BF[g]=b<<24|e<<16|e<<8|k;EF[g]=k<<24|BF[g]>>>8;FF[g]=e<<24|EF[g]>>>
8;GF[g]=e<<24|FF[g]>>>8}iJb=!0}e=op(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=(AF[a>>16&255]^d)<<24|AF[a>>8&255]<<16|AF[a&255]<<8|AF[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
_.z(jJb,_.vg);
jJb.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.cipherBlock,d=0;d<b&&this.blockOffset<16;)a[d++]^=c[this.blockOffset++];for(var e=b-(b-d)%16;d<e;)kJb(this),a[d++]^=c[0],a[d++]^=c[1],a[d++]^=c[2],a[d++]^=c[3],a[d++]^=c[4],a[d++]^=c[5],a[d++]^=c[6],a[d++]^=c[7],a[d++]^=c[8],a[d++]^=c[9],a[d++]^=c[10],a[d++]^=c[11],a[d++]^=c[12],a[d++]^=c[13],a[d++]^=c[14],a[d++]^=c[15];if(d<b)for(kJb(this),this.blockOffset=0;d<b;)a[d++]^=
c[this.blockOffset++];return a};
var lJb=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.blockOffset=16},kJb=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],g=a.counter[3]^b[3],k=3;k>=0&&!(a.counter[k]=-~a.counter[k]);k--);
for(var m,n,r=4;r<40;)k=BF[c>>>24]^EF[d>>16&255]^FF[e>>8&255]^GF[g&255]^b[r++],m=BF[d>>>24]^EF[e>>16&255]^FF[g>>8&255]^GF[c&255]^b[r++],n=BF[e>>>24]^EF[g>>16&255]^FF[c>>8&255]^GF[d&255]^b[r++],g=BF[g>>>24]^EF[c>>16&255]^FF[d>>8&255]^GF[e&255]^b[r++],c=k,d=m,e=n;a=a.cipherBlock;k=b[40];a[0]=AF[c>>>24]^k>>>24;a[1]=AF[d>>16&255]^k>>16&255;a[2]=AF[e>>8&255]^k>>8&255;a[3]=AF[g&255]^k&255;k=b[41];a[4]=AF[d>>>24]^k>>>24;a[5]=AF[e>>16&255]^k>>16&255;a[6]=AF[g>>8&255]^k>>8&255;a[7]=AF[c&255]^k&255;k=b[42];
a[8]=AF[e>>>24]^k>>>24;a[9]=AF[g>>16&255]^k>>16&255;a[10]=AF[c>>8&255]^k>>8&255;a[11]=AF[d&255]^k&255;k=b[43];a[12]=AF[g>>>24]^k>>>24;a[13]=AF[c>>16&255]^k>>16&255;a[14]=AF[d>>8&255]^k>>8&255;a[15]=AF[e&255]^k&255};var mJb=!1;(function(){var a=function(d){return new Uint8Array(d)},b=function(d){for(var e=new Uint8Array(d.length),g=0;g<d.length;g++)e[g]=d[g];
return e},c=new Uint8Array([1]);
return c.length===1&&c[0]===1?a:b})();
var HF;var nJb=function(a){this.JSC$10392_aesKey=a};
nJb.prototype.encrypt=function(a,b){var c=this,d,e;return _.l(function(g){if(g.nextAddress==1){a:{if(!mJb&&!_.Pj){if(HF){var k=HF;break a}HF=(k=window.crypto)==null?void 0:k.subtle;var m,n,r;if(((m=HF)==null?0:m.importKey)&&((n=HF)==null?0:n.sign)&&((r=HF)==null?0:r.encrypt)){k=HF;break a}HF=void 0}k=void 0}d=k;if(!d)return g.return(oJb(c,a,b));_.pe(g,3);return _.p(g,pJb(c,a,b,d),5)}if(g.nextAddress!=3)return g.return(g.yieldResult);e=_.te(g);_.Dl(e);mJb=!0;return g.return(oJb(c,a,b))})};
var pJb=function(a,b,c,d){var e,g;return _.l(function(k){switch(k.nextAddress){case 1:if(a.cryptoKey){k.jumpTo(2);break}return _.p(k,d.importKey("raw",a.JSC$10392_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:a.cryptoKey=k.yieldResult;case 2:return e={name:"AES-CTR",counter:c,length:128},_.p(k,d.encrypt(e,a.cryptoKey,b),4);case 4:return g=k.yieldResult,k.return(new Uint8Array(g))}})},oJb=function(a,b,c){a.encryptorPolyfill||(a.encryptorPolyfill=new jJb(a.JSC$10392_aesKey));
lJb(a.encryptorPolyfill,c);return a.encryptorPolyfill.encrypt(b)},qJb=function(a){this.JSC$10396_aesKey=a};
qJb.prototype.encrypt=function(a,b){this.encryptor||(this.encryptor=new jJb(this.JSC$10396_aesKey));lJb(this.encryptor,b);return this.encryptor.encrypt(a)};var rJb={},ZDa=Tj("yt-idb-pref-storage",{objectStores:(rJb.prefs={addedAtVersion:1},rJb),shared:!1,upgrade:function(a,b){b(1)&&Hk(Gk(a,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.IF=function(a){this.token=a};
_.IF.getInstance=function(){return _.l(function(a){return a.return(new Promise(function(b){_.Sj().then(function(c){c?(_.IF.instance||(_.IF.instance=new _.IF(c)),b(_.IF.instance)):b(void 0)})}))})};
_.IF.prototype.get=function(a){var b=this,c,d,e;return _.l(function(g){if(g.nextAddress==1)return _.p(g,$Da(b.token),2);if(g.nextAddress!=3)return c=g.yieldResult,_.p(g,c.get("prefs",a),3);d=g.yieldResult;if(!d)return g.return();e=(0,_.Uj)();return d.expirationTimestampMs<=e?g.return():g.return(d.value)})};
_.IF.prototype.set=function(a,b,c){c=c===void 0?31536E3:c;var d=this,e,g,k;return _.l(function(m){if(m.nextAddress==1)return e=(0,_.Uj)(),g={key:a,value:b,expirationTimestampMs:e+c*1E3},_.p(m,$Da(d.token),2);k=m.yieldResult;return _.p(m,k.put("prefs",g),0)})};
_.IF.prototype.remove=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,$Da(b.token),2);c=d.yieldResult;return _.p(d,c.delete("prefs",a),0)})};var JF={},sJb=(JF.INVALID_ENCODER_VERSION="Invalid encoder version",JF.KEY_CREATION_FAILED="Failed to create encoder key",JF.UNKNOWN_DECODE_ERROR="Failed to decode PES data",JF.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",JF.WRONG_DATA_TYPE="Encoder cannot process the data type",JF),qp=function(a,b){b=b===void 0?{}:b;_.qj.call(this,sJb[a],Object.assign({},{name:"PESEncoderError",type:a},b));this.type=a;this.level="WARNING";Object.setPrototypeOf(this,qp.prototype)};
_.z(qp,_.qj);var tJb=function(){},uJb=function(a,b,c){try{return a.encodeImpl(b,c)}catch(d){dEa(d,bEa)}},vJb=function(a,b,c){var d;
return _.l(function(e){if(e.nextAddress==1)return _.pe(e,2),_.p(e,a.decodeAsyncImpl(b,c),4);if(e.nextAddress!=2)return e.return(e.yieldResult);d=_.te(e);dEa(d,cEa);_.ue(e)})};
tJb.prototype.decodeAsyncImpl=function(a,b){return Promise.resolve(this.decodeImpl(a,b))};var KF=function(a,b){this.aesEncryptor=a;this.aesEncryptorAsync=b};
_.z(KF,tJb);KF.prototype.encodeImpl=function(a,b){b=eEa(b);a=(new TextEncoder).encode(JSON.stringify(a));return this.aesEncryptor.encrypt(a,b)};
KF.prototype.decodeImpl=function(a,b){if(!(a instanceof Uint8Array))throw aEa(1);var c=new TextDecoder;b=eEa(b);a=this.aesEncryptor.encrypt(a,b);return JSON.parse(c.decode(a))};
KF.prototype.decodeAsyncImpl=function(a,b){var c=this,d,e,g;return _.l(function(k){if(k.nextAddress==1){if(!(a instanceof Uint8Array))throw aEa(1);d=new TextDecoder;e=eEa(b);return _.p(k,c.aesEncryptorAsync.encrypt(a,e),2)}g=k.yieldResult;return k.return(JSON.parse(d.decode(g)))})};var fEa={accountLinkStatusEntity:mBb,booleanEntity:QAb,buttonEntity:IFb,captionTrack:MDb,channelHandle:Fzb,commerceAcquisitionClientPayloadEntity:eGb,commerceCartListEntity:fGb,contextNoteFeedEntityPayload:Mzb,continuationTokenEntity:wCb,downloadQualityPickerEntity:lCb,downloadsPageRefreshTokenEntity:nCb,downloadsPageViewConfigurationEntity:FCb,downloadStatusEntity:mCb,dismissState:vFb,sfvAudioItemCurrentlyPlayingEntity:rEb,emojiFountainDataEntity:FFb,emojiCustomizationSetEntity:EFb,fakeChannel:TAb,
fakePlaylist:UAb,fakePlaylistEntryCollection:VAb,fakeVideo:XAb,fakeVideoDescription:YAb,featuredProductsEntity:XCb,flowStateEntity:iBb,iconBadgeEntity:gGb,interstitialInteractionStateEntity:EBb,likeButtonAnimationEntity:GCb,liveChatPollStateEntity:MBb,liveViewerLeaderboardChatEntryPointStateEntity:$Db,liveViewerLeaderboardPointsEntity:aEb,liveReactionsDataEntity:GFb,logoEntity:BBb,macroMarkerEntity:HCb,mainDownloadsLibraryEntity:oCb,mainDownloadsListEntity:pCb,mainPlaylistDownloadStateEntity:rCb,
mainPlaylistEntity:xCb,mainPlaylistVideoEntity:yCb,mainVideoDownloadStateEntity:sCb,mainVideoEntity:CCb,markersEngagementPanelSyncEntity:ICb,markersVisibilityOverrideEntity:JCb,musicAlbumReleaseDetail:hDb,musicAlbumReleaseDownloadMetadataEntity:cDb,musicAlbumRelease:gDb,musicAlbumReleaseUserDetail:iDb,musicArtistDetail:kDb,musicArtist:jDb,musicArtistUserDetail:lDb,musicDownloadsLibraryEntity:dDb,musicLibraryEdit:mDb,musicLibraryStatusEntity:nDb,musicPlaylist:oDb,musicPlaylistDownloadMetadataEntity:eDb,
musicShare:qDb,musicTrackDetail:sDb,musicTrackDownloadMetadataEntity:fDb,musicTrack:rDb,musicTrackUserDetail:tDb,offlineOrchestrationActionWrapperEntity:NDb,offlineVideoPolicy:ODb,offlineVideoStreams:PDb,offlineabilityEntity:tCb,orchestrationWebSamplingEntity:uCb,pageHeaderEntity:yFb,pdpStateEntity:hGb,pinnedProductEntity:YCb,playbackData:QDb,playerStateEntity:KCb,quantityIncrementerEntity:iGb,refresh:RDb,saveToPlaylistListEntity:MEb,settingEntity:eFb,stringEntity:RAb,suggestedFeedbackChipStateEntity:LCb,
transfer:SDb,trendingOfferEntity:ZCb,videoDownloadContextEntity:TDb,videoOverviewAsyncDataEntity:GGb,videoPlaybackPositionEntity:LFb,votingEntity:AFb,ytMainChannelEntity:DCb,youchatPendingResponseEntity:MCb,ytMainDownloadedVideoEntity:vCb,ytMainVideoEntity:ECb};var wJb,yJb,vp,nEa,oEa,BJb,DJb,CJb,AJb;wJb=function(a,b){this.JSC$10415_wrapped=a;this.JSC$10415_encoderRegistry=b;this.changedKeys={}};
yJb=function(a,b){a:{a=xJb(a.JSC$10415_encoderRegistry,b.version);try{var c=a.decodeImpl(b.data,b.key);break a}catch(d){dEa(d,cEa)}c=void 0}return c};
_.zJb=function(a,b,c){return a.JSC$10415_wrapped.objectStore("EntityStore").get(b).then(function(d){if(d){if(c&&d.entityType!==c)throw Error("Cf");return yJb(a,d)}})};
vp=function(a,b,c){return c?(c=c.map(function(d){return _.zJb(a,d,b)}),Fj.all(c)):a.JSC$10415_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(b)).then(function(d){return d.map(function(e){return yJb(a,e)})})};
_.mEa=function(a,b,c){var d=RDa(b),e=xJb(a.JSC$10415_encoderRegistry,1),g=Object.assign({},b);return a.JSC$10415_wrapped.objectStore("EntityStore").get(d).then(function(k){if(k){if(k.entityType!==c)throw Error("Cf");g.entityMetadata||(k=yJb(a,k),g.entityMetadata=k.entityMetadata)}}).then(function(){var k={key:d,
entityType:c,data:uJb(e,g,d),version:1};return Fj.all([a.JSC$10415_wrapped.objectStore("EntityStore").put(k),AJb(a,g,c)])}).then(function(){BJb(a,d,c);
return d})};
nEa=function(a,b){var c=_.jp(b).entityType;return Fj.all([a.JSC$10415_wrapped.objectStore("EntityStore").delete(b),CJb(a,b)]).then(function(){BJb(a,b,c)})};
oEa=function(a,b,c,d){var e=xJb(a.JSC$10415_encoderRegistry,1);return _.zJb(a,b,d).then(function(g){if(g){g=EDa(g,c);var k={key:b,entityType:d,data:uJb(e,g,b),version:1};return Fj.all([a.JSC$10415_wrapped.objectStore("EntityStore").put(k),AJb(a,g,d)])}}).then(function(){BJb(a,b,d);
return b})};
BJb=function(a,b,c){var d=a.changedKeys[c];d||(d=new Set,a.changedKeys[c]=d);d.add(b)};
DJb=function(a,b,c){var d=RDa(b);c=gEa(c);if(!c)return Fj.resolve([]);c=new c(b);a=a.JSC$10415_wrapped.objectStore("EntityAssociationStore");b=[];c=_.h(c.getAssociations());for(var e=c.next();!e.done;e=c.next())b.push(a.put({parentEntityKey:d,childEntityKey:e.value}));return Fj.all(b).then(function(g){return g.map(function(k){return k[1]})})};
CJb=function(a,b){return a.JSC$10415_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(b))};
AJb=function(a,b,c){var d=RDa(b);return CJb(a,d).then(function(){return DJb(a,b,c)})};var EJb=function(){};
_.z(EJb,tJb);EJb.prototype.encodeImpl=function(a){return a};
EJb.prototype.decodeImpl=function(a){if(a instanceof Uint8Array)throw aEa(0);return a};var jEa=function(){this.cacheMap={};this.cacheMap[0]=new EJb;if(!_.w("aes_pes_encoder_killswitch")){var a=this.cacheMap;try{var b=_.oj();var c=eEa(b);var d=new KF(new qJb(c),new nJb(c))}catch(e){throw a=e instanceof Error?new qp("KEY_CREATION_FAILED",{originalMessage:e.message}):new qp("KEY_CREATION_FAILED"),_.Bl(a),a;}a[1]=d}},xJb=function(a,b){b=b===void 0?0:b;
a=a.cacheMap[b];if(!a)throw b=new qp("INVALID_ENCODER_VERSION",{encoderVersion:b}),_.Bl(b),b;return a};var sp=function(a,b){_.vg.call(this);this.token=a;this.JSC$10429_encoderRegistry=b;this.observers=[];a=new _.ja.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.oj());a.onmessage=this.handleMessage.bind(this);this.channel=a};
_.z(sp,_.vg);_.up=function(a,b,c){var d,e,g,k;return _.l(function(m){if(m.nextAddress==1)return _.p(m,YDa(a.token),2);if(m.nextAddress!=3)return d=m.yieldResult,_.p(m,_.Mj(d,["EntityStore","EntityAssociationStore"],b,function(n){e=new wJb(n,a.JSC$10429_encoderRegistry);return c(e)}),3);
g=m.yieldResult;e&&(k=e.changedKeys,Object.keys(k).length>0&&(a.channel.postMessage(k),FJb(a,k)));return m.return(g)})};
sp.prototype.observe=function(a){var b=this;this.observers.push(a);return function(){var c=b.observers.indexOf(a);c>=0&&b.observers.splice(c,1)}};
var K5a=function(a){var b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,_.up(a,{mode:"readonly",enableRetries:!0},function(d){return d.JSC$10415_wrapped.objectStore("EntityStore").getAll()}),2);
b=c.yieldResult;return c.return(Promise.all(b.filter(function(d){return!!d}).map(function(d){var e,g;
return _.l(function(k){if(k.nextAddress==1){e=d.key;g=d.entityType;var m=vJb(xJb(a.JSC$10429_encoderRegistry,d.version),d.data,d.key);return _.p(k,m,2)}return k.return({key:e,entityType:g,data:k.yieldResult})})})))})};
sp.prototype.handleMessage=function(a){FJb(this,a.data)};
var FJb=function(a,b){a=_.h(a.observers);for(var c=a.next();!c.done;c=a.next())c=c.value,c(b)};
sp.prototype.disposeInternal=function(){this.channel.close()};
var hEa;var LF,HJb,lFa,IEa;LF={};_.GJb=(LF.mainVideoEntity="mainVideoEntityActionMetadata",LF.mainPlaylistEntity="mainPlaylistEntityActionMetadata",LF.musicTrack="musicTrackEntityActionMetadata",LF.musicPlaylist="musicPlaylistEntityActionMetadata",LF);HJb=new _.jB("DOWNLOADS_ENTITY_TYPE_MAP");lFa=_.mp("","downloadsPageViewConfigurationEntity");IEa=_.mp("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.oFa=_.mp("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.mp("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.mp("SMART_DOWNLOADS_ENABLED","settingEntity");_.mp("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var tEa=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var BEa=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var bFa={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var MF,ZFa,Psb,D3a;MF=window;_.Op=MF.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.jGa=MF.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.Up;ZFa=MF.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||Jv;Psb=MF.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||Osb;_.IJb=MF.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.esb;D3a=MF.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||hsb;Sp({id:"America/Los_Angeles",names:["PST","PST","PDT","PDT"],std_offset:-480,transitions:[2770,60,7137,0,11506,60,16041,0,20410,60,24777,0,29146,60,33513,0,35194,60,42249,0,45106,60,50985,0,55354,60,59889,0,64090,60,68625,0,72994,60,77361,0,81730,60,86097,0,90466,60,94833,0,99202,60,103569,0,107938,60,112473,0,116674,60,121209,0,125578,60,129945,0,134314,60,138681,0,143050,60,147417,0,151282,60,156153,0,160018,60,165057,0,168754,60,173793,0,177490,60,182529,0,186394,60,191265,0,195130,60,200001,0,
203866,60,208905,0,212602,60,217641,0,221338,60,226377,0,230242,60,235113,0,238978,60,243849,0,247714,60,252585,0,256450,60,261489,0,265186,60,270225,0,273922,60,278961,0,282826,60,287697,0,291562,60,296433,0,300298,60,305337,0,309034,60,314073,0,317770,60,322809,0,326002,60,331713,0,334738,60,340449,0,343474,60,349185,0,352378,60,358089,0,361114,60,366825,0,369850,60,375561,0,378586,60,384297,0,387322,60,393033,0,396058,60,401769,0,404962,60,410673,0,413698,60,419409,0,422434,60,428145,0,431170,
60,436881,0,439906,60,445617,0,448810,60,454521,0,457546,60,463257,0,466282,60,471993,0,475018,60,480729,0,483754,60,489465,0,492490,60,498201,0,501394,60,507105,0,510130,60,515841,0,518866,60,524577,0,527602,60,533313,0,536338,60,542049,0,545242,60,550953,0,553978,60,559689,0,562714,60,568425,0,571450,60,577161,0,580186,60,585897,0,588922,60,594633,0]});var mGa=$Fa(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(a){return a}}}),TXa=$Fa(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(a){return a}}}),dGa=new Map;var oGa=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],iGa;var JJb=function(a){return _.hp({type:"SET_EPHEMERAL_ACTION",payload:a})};var KJb={ephemeralAction:null};var LJb={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var KGa={sharedUi:function(a,b){a=a===void 0?LJb:a;switch(b.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},a,{animatedThumbnailEnabled:b.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},a,{inlinePreviewEnabled:b.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},a,{currentPageType:b.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},a,{currentPageSubType:b.payload});default:return a}},
a11y:mn({ephemeralAction:function(a,b){a=a===void 0?KJb.ephemeralAction:a;switch(b.type){case "SET_EPHEMERAL_ACTION":return b.payload;default:return a}}})};var DGa=mn({isLeaderTab:function(a,b){a=a===void 0?!0:a;switch(b.type){case "SET_IS_LEADER_TAB":var c,d;return(d=b==null?void 0:(c=b.payload)==null?void 0:c.isLeaderTab)!=null?d:a;default:return a}}});var MJb=function(a){return _.hp({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:a}})};var JGa=mn({isDesktopSmallWidth:function(a,b){switch(b.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return b.payload.isDesktopSmallWidth;default:return a===void 0?!1:a}},
isShortsActive:function(a,b){switch(b.type){case "SET_IS_SHORTS_ACTIVE":return b.payload.isShortsActive;default:return a===void 0?!1:a}},
isWatchWhileMode:function(a,b){switch(b.type){case "SET_IS_WATCH_WHILE_MODE":return b.payload.isWatchWhileMode;default:return a===void 0?!1:a}},
playerState:function(a,b){switch(b.type){case "SET_PLAYER_STATE":return b.payload.playerState;default:return a===void 0?-1:a}},
isFullscreen:function(a,b){switch(b.type){case "SET_IS_FULLSCREEN":return b.payload.isFullscreen;default:return a===void 0?!1:a}},
isSmallScreenSqueezeback:function(a,b){switch(b.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return b.payload.isSmallScreenSqueezeback;default:return a===void 0?!1:a}},
isShortsPipActive:function(a,b){switch(b.type){case "SET_IS_SHORTS_PIP_ACTIVE":return b.payload.isShortsPipActive;default:return a===void 0?!1:a}},
isPlaybackStarted:function(a,b){switch(b.type){case "SET_IS_PLAYBACK_STARTED":return b.payload.isPlaybackStarted;default:return a===void 0?!1:a}}});var uGa={playlistId:"",inviteLinkURL:""};var NJb={};var CGa=mn({continuationCommand:function(a,b){a=a===void 0?NJb:a;switch(b.type){case "SET_CONTINUATION_COMMAND":return b.payload.continuationCommand;default:return a}}});var MGa=function(){return function(a){return function(b){var c=a(b);_.lo(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[b],!0);return c}}};var OJb;OJb=new _.hq;_.fu=new _.jB("WATCH_PLAYER_PROMISE_TOKEN");_.PJb=new _.hq;_.QJb=new _.jB("SHORTS_PLAYER_PROMISE_TOKEN");_.lu=new _.jB("");var NGa=function(){return function(a){return function(b){b.type==="ENTITY_LOADED"&&_.v().resolve(_.fu).then(function(c){var d;(d=c.dispatchReduxAction)==null||d.call(c,b)});
return a(b)}}};var wGa={currentFormId:"",commandsMap:{}};var RJb={};var EGa=mn({additionalContext:function(a,b){switch(b.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var c;return(c=b.payload)!=null?c:"";default:return a===void 0?"":a}},
impersonatedChannelUrl:function(a,b){switch(b.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var c;return(c=b.payload)!=null?c:"";default:return a===void 0?"":a}},
selectedVideoIds:function(a,b){a=a===void 0?RJb:a;switch(b.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var c={};return Object.assign({},a,(c[b.payload]=!0,c));case "VIDEO_UNSELECTED":return b=b.payload,a=Object.assign({},a),delete a[b],a;default:return a}}});var FGa=mn({parentClickTrackingParams:function(a,b){switch(b.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return b.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return a===void 0?"":a}}});var SJb=function(a){return _.hp({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:a})};var TJb={};var GGa=mn({stepStates:function(a,b){a=a===void 0?TJb:a;switch(b.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var c=a,d=b.payload,e,g,k;a={};b={selectionStates:Object.assign({},(k=(e=c[d.stepId])==null?void 0:e.selectionStates)!=null?k:{},(a[d.token]={isSelected:d.isSelected},a)),userQuery:(g=c[d.stepId])==null?void 0:g.userQuery};e={};return Object.assign({},c,(e[d.stepId]=b,e));case "TALK_TO_RECS_UPDATE_USER_QUERY":return e=a,g=b.payload,k={selectionStates:Object.assign({},
(d=(c=e[g.stepId])==null?void 0:c.selectionStates)!=null?d:{}),userQuery:{userQuery:g.userQuery,token:g.userQueryToken}},c={},Object.assign({},e,(c[g.stepId]=k,c));default:return a}}});var UJb,VJb;UJb=function(a){return _.hp({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:a})};
VJb=function(a){return _.hp({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:a})};
_.Rw=function(a){return _.hp({type:"SET_CURRENT_PAGE_TYPE",payload:a})};
_.WJb=function(a){return _.hp({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:a})};var yGa={scrollAtTop:!0,guideIsExpanded:!1,guideIsVisibleButNotPersistent:!1,miniplayerIsActive:!1,singleOptionSurveyIsActive:!1,slimlineSurveyRatingSelectedIndex:-1,miniplayerPlaybackState:-1,richGridMiniMode:!1,richGridItemsPerRow:4,richGridSlimItemsPerRow:8,richGridContainerWidth:void 0,richGridStyle:"RICH_GRID_STYLE_UNKNOWN",currentPageType:"WEB_PAGE_TYPE_UNKNOWN",inlinePreviewIsActive:!1,inlinePreviewIsEnabled:!0,darkModeIsEnabled:!1,tabGesturesIsActive:!1,isOnline:!0,chipBarIsSticky:!1,frostedGlassMode:"none"};_.XJb=function(a){return _.hp({type:"SET_PLAYER_STATE",payload:{playerState:a}})};var YJb=[],ZJb={width:0,height:0};var HGa=mn({isTheaterMode:function(a,b){a=a===void 0?_.Gi("START_IN_THEATER_MODE"):a;switch(b.type){case "SET_IS_THEATER_MODE":return b.payload.isTheaterMode;default:return a}},
isWatchActive:function(a,b){switch(b.type){case "SET_IS_WATCH_ACTIVE":return b.payload.isWatchActive;default:return a===void 0?!1:a}},
isWatchFullscreen:function(a,b){switch(b.type){case "SET_IS_WATCH_FULLSCREEN":return b.payload.isWatchFullscreen;default:return a===void 0?!1:a}},
isWatchNarrowWidth:function(a,b){switch(b.type){case "SET_IS_WATCH_NARROW_WIDTH":return b.payload.isWatchNarrowWidth;default:return a===void 0?!1:a}},
isWatchRetroMode:function(a,b){switch(b.type){case "SET_IS_WATCH_RETRO_MODE":return b.payload.isWatchRetroMode;default:return a===void 0?!1:a}},
isLiveChatCollapsed:function(a,b){switch(b.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return b.payload.isLiveChatCollapsed;default:return a===void 0?!1:a}},
openEngagementPanels:function(a,b){a=a===void 0?YJb:a;var c=[].concat(_.De(a));switch(b.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return c.push(b.payload.panelToAdd),c;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return c.splice(c.indexOf(b.payload.panelToRemove),1),c;default:return a}},
playerState:function(a,b){switch(b.type){case "SET_PLAYER_STATE":return b.payload.playerState;default:return a===void 0?-1:a}},
watchScrollTop:function(a,b){switch(b.type){case "SET_WATCH_SCROLL_TOP":return b.payload.watchScrollTop;default:return a===void 0?0:a}},
watchWindowSize:function(a,b){a=a===void 0?ZJb:a;switch(b.type){case "SET_WATCH_WINDOW_SIZE":return b.payload.watchWindowSize;default:return a}}});var $Jb={feedbackTokens:[]};var IGa=mn({surveyFeedbackData:function(a,b){a=a===void 0?$Jb:a;switch(b.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return b.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},a,b.payload);default:return a}}});var AGa={};var PGa=void 0;_.w("web_enable_redux_store_on_demand")||(PGa=OGa());var aKb=function(a,b,c){var d=this;this.listId=a;this.JSC$10562_updateCallback=b;this.isOfflineVideoCallback=c;_.Yp().subscribe(function(){d.handleUpdate()})};
aKb.prototype.getPlaylistData=function(){var a=_.Yp().getState().entities;if(this.listId&&this.listId!=="PPSV"){var b=REa(a,this.listId,!0),c=_.mp(this.listId,"mainPlaylistEntity"),d,e;a=a==null?void 0:(d=a.mainPlaylistEntity)==null?void 0:(e=d[c])==null?void 0:e.title;return QGa(b,a,this.listId)}b=_.CEa(tFa(a));a=_.CEa(_.Dp(a));return QGa(b.concat(a))};
aKb.prototype.getPlaylistId=function(){return this.listId};
aKb.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10562_updateCallback(this.listId,this.getPlaylistData(),{})};var NF=function(a,b,c,d){d=d===void 0?[]:d;this.JSC$10565_playlistNetworkManager=a;this.listId=b;this.JSC$10565_updateCallback=c;this.videoIds=d;this.pendingUpdates=[];this.currentIndex=0};
NF.prototype.JSC$10565_setCurrentIndex=function(a){this.currentIndex=a};
NF.prototype.setListId=function(a){this.listId=a};
var bKb=function(a,b){a.currentCreateRequest&&a.currentCreateRequest.cancel(b);a.currentUpdateRequest&&a.currentUpdateRequest.cancel(b);a.currentRefreshRequest&&a.currentRefreshRequest.cancel(b)};
NF.prototype.delete=function(){bKb(this,"PROXY DELETED")};
NF.prototype.addVideos=function(a,b,c){var d=this;c!==void 0?this.videoIds.splice.apply(this.videoIds,[c,0].concat(_.De(a))):this.videoIds.push.apply(this.videoIds,_.De(a));this.listId||this.currentCreateRequest?(a.forEach(function(e,g){e={addedVideoId:e,action:"ACTION_ADD_VIDEO"};c&&(e.addedVideoPosition=c+g);d.pendingUpdates.push(e)}),OF(this)):cKb(this,b.onCreateListCommand)};
var dKb=function(a,b,c,d,e){Daa(a.videoIds,b,c);b>a.currentIndex&&c<=a.currentIndex?a.JSC$10565_setCurrentIndex(a.currentIndex+1):b===a.currentIndex?a.JSC$10565_setCurrentIndex(c):b<a.currentIndex&&c>=a.currentIndex&&a.JSC$10565_setCurrentIndex(a.currentIndex-1);a.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:d,movedSetVideoIdPredecessor:e});OF(a)},cKb=function(a,b){bKb(a,"OBSOLETE");
a.currentCreateRequest=eKb(a.JSC$10565_playlistNetworkManager,b,a.videoIds);_.Lz(a.currentCreateRequest,function(){a.currentCreateRequest=void 0}).then(function(c){a.setListId(c.playlistId);
a.pendingUpdates.length>0?OF(a):fKb(a)})},OF=function(a){if(a.pendingUpdates.length!==0&&(a.currentRefreshRequest&&a.currentRefreshRequest.cancel("OBSOLETE"),!a.currentUpdateRequest&&!a.currentCreateRequest)){var b=a.pendingUpdates.splice(0,a.pendingUpdates.length);
a.currentUpdateRequest=a.JSC$10565_playlistNetworkManager.updatePlaylist(a.listId,b);_.Lz(a.currentUpdateRequest,function(){a.currentUpdateRequest=void 0}).then(function(){a.pendingUpdates.length>0?OF(a):fKb(a)}).thenCatch(function(){a.pendingUpdates.unshift.apply(a.pendingUpdates,_.De(b))})}},fKb=function(a){a.currentRefreshRequest=_.gKb(a.JSC$10565_playlistNetworkManager,a.listId,a.currentIndex,a.videoIds[a.currentIndex]);
_.Lz(a.currentRefreshRequest,function(){a.currentRefreshRequest=void 0}).then(function(b){a.JSC$10565_updateCallback(b.playlistId,b.playlistPanelRenderer,b.autoplayRenderer)})};
NF.prototype.size=function(){return this.videoIds.length};var hKb=function(a,b,c,d){d=d===void 0?[]:d;NF.call(this,a,b,c,d);this.JSC$10565_playlistNetworkManager=a;this.listId=b;this.JSC$10565_updateCallback=c;this.videoIds=d};
_.z(hKb,NF);_.PF=function(a,b,c,d,e,g,k){e=e===void 0?[]:e;k=k===void 0?sz:k;NF.call(this,a,b,c,e);this.JSC$10565_playlistNetworkManager=a;this.listId=b;this.JSC$10565_updateCallback=c;this.onAuthChange=d;this.videoIds=e;this.storage=g;this.cookieReader=k;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.Ys(_.zk,this.checkLoggedInStatusChange.bind(this),1E3)};
_.z(_.PF,NF);_.f=_.PF.prototype;_.f.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.Ys(_.zk,this.checkLoggedInStatusChange.bind(this),1E3)};
_.f.JSC$10565_setCurrentIndex=function(a){NF.prototype.JSC$10565_setCurrentIndex.call(this,a);this.store()};
_.f.delete=function(){_.zk.cancelJob(this.queueSapisIdJob);NF.prototype.delete.call(this)};
_.f.setListId=function(a){NF.prototype.setListId.call(this,a);this.store()};
_.f.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var iKb=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],jKb=["playerResponse","videoDetails"],kKb=["response","currentVideoEndpoint","watchEndpoint","videoId"],lKb=["response","currentVideoEndpoint","watchEndpoint","playlistId"],mKb=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],nKb=["response","contents","twoColumnWatchNextResults","playlist","playlist"],oKb=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
pKb=["response","contents","twoColumnWatchNextResults"];var QF={},VGa=(QF.WEB_UNPLUGGED="^unplugged/",QF.WEB_UNPLUGGED_ONBOARDING="^unplugged/",QF.WEB_UNPLUGGED_OPS="^unplugged/",QF.WEB_UNPLUGGED_PUBLIC="^unplugged/",QF.WEB_CREATOR="^creator/",QF.WEB_KIDS="^kids/",QF.WEB_EXPERIMENTS="^experiments/",QF.WEB_MUSIC="^music/",QF.WEB_REMIX="^music/",QF.WEB_MUSIC_EMBEDDED_PLAYER="^music/",QF.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",QF);var uIa,eKb;uIa=function(a,b){this.networkManager=a;this.innertubeTransportService=b};
eKb=function(a,b,c){if(!_.y(b,_.UE))return _.On(Error("Gf"));_.y(b,_.UE).videoIds=c;c={create_playlist_title:_.vo("QUEUE",void 0,"Queue")};return TGa(_.Rt(a.innertubeTransportService,b,c),RGa)};
_.gKb=function(a,b,c,d){b={videoId:d,playlistId:b,playlistIndex:c};c=_.Zp(sIb);return TGa(_.RF(a.innertubeTransportService,b,c),UGa)};
uIa.prototype.updatePlaylist=function(a,b){return TGa(_.Rt(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:a,actions:b}}),SGa)};var SF=function(a){this.storage=a},qKb;
SF.prototype.store=function(a,b){b=b===void 0?0:b;if(this.storage&&a.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",a),this.storage.set("TLPQindex",String(b)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(c){}};
SF.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
SF.prototype.getPlaylistId=function(){if(!this.storage)return null;var a=null;try{a=this.storage.get("TLPQplaylist")}catch(b){}return a};
SF.prototype.getIndex=function(){if(this.storage){try{var a=this.storage.get("TLPQindex")}catch(b){}a=Number(a);if(!isNaN(a))return a}};var ZGa=["navigationEndpoint","watchEndpoint","videoId"],YGa=["nextButtonVideo","watchEndpoint","videoId"];_.xq=new _.jB("NETWORK_TOKEN");_.Zt=new _.jB("PAGE_TOKEN");_.TF=new _.jB("PLAYLIST_TOKEN");var rKb;rKb=new _.jB("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.yq=new _.jB("INNERTUBE_TRANSPORT_TOKEN");var sKb,UF,uKb,vKb,xKb,yKb;sKb=new Set(["ci","cr","carml"]);UF=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10612_parkedJobs=new Map;this.parkedProcessors=new Map};
_.VF=function(){UF.instance||(UF.instance=new UF);return UF.instance};
UF.prototype.onAny=function(a){return _.tKb(this,a,2)};
UF.prototype.parkOrScheduleJob=function(a,b,c,d,e){_.WF(this,c)?_.Qw().addJob(a,b,d):(e&&(a=uKb(a),vKb(this,a,b,c,e)),e=this.JSC$10612_parkedJobs.get(c),e||(this.JSC$10612_parkedJobs.set(c,[]),e=this.JSC$10612_parkedJobs.get(c)),e.push({job:a,priority:b,delay:d}))};
UF.prototype.addListener=function(a,b,c){c&&(b=uKb(b),vKb(this,b,0,a,c));c=this.parkedProcessors.get(a);c||(this.parkedProcessors.set(a,[]),c=this.parkedProcessors.get(a));c.push(b)};
UF.prototype.processSignal=function(a){if(!_.WF(this,a)){this.inProgressSignals.add(a);var b=this.JSC$10612_parkedJobs.get(a);if(b){b=_.h(b);for(var c=b.next();!c.done;c=b.next())c=c.value,_.Qw().addJob(c.job,c.priority,c.delay);this.JSC$10612_parkedJobs.delete(a)}if(b=this.parkedProcessors.get(a)){b=_.h(b);for(c=b.next();!c.done;c=b.next())c=c.value,c();this.parkedProcessors.delete(a)}this.signals.push(a);this.inProgressSignals.delete(a)}};
_.WF=function(a,b){return sKb.has(b)||_.Gi("IS_HOMEPAGE_COLD")||_.Gi("IS_RESULTS_PAGE_COLD")||_.Gi("IS_WATCH_PAGE_COLD")?a.signals.indexOf(b)>=0:!0};
uKb=function(a){var b=!1;return function(){b||(b=!0,a())}};
vKb=function(a,b,c,d,e){if(wKb.has(d))_.Qw().addJob(b,c,e);else{var g=a.compoundSignals.get(d);g&&_.Qw().addJob(function(){_.WF(a,d)||(g.isTimeoutConditionSatisfied?_.Qw().addJob(b,c):g.timeoutConditionObservers.push(function(){_.Qw().addJob(b,c)}))},c,e)}};
_.tKb=function(a,b,c){if(b.length>1){var d=[],e=Object.create(null);b=_.h(b);for(var g=b.next();!g.done;g=b.next())g=g.value,e[g]||(d.push(g),e[g]=!0);b=d}if(b.length===1)return b[0];g=b;d="";e=c===2?"|":"&";g.sort();g=_.h(g);for(var k=g.next();!k.done;k=g.next())d+=k.value+e;if(!a.compoundSignals.get(d)){e=0;g=[];k=_.h(b);for(var m=k.next();!m.done;m=k.next())m=m.value,e++,_.WF(a,m)||g.push(m);(c=c===2)&&e>g.length||!c&&!g.length?a.signals.push(d):xKb(a,d,c,b,g)}return d};
xKb=function(a,b,c,d,e){var g=e.length,k=function(){c||--g===0?a.processSignal(b):yKb(a,b)};
e=_.h(e);for(var m=e.next();!m.done;m=e.next())a.addListener(m.value,k);a.compoundSignals.set(b,{signals:d,isOnAny:c,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});yKb(a,b)};
yKb=function(a,b){if(!_.WF(a,b)){var c=a.compoundSignals.get(b);if(c&&!c.isTimeoutConditionSatisfied){for(var d=!1,e=0,g=0,k=_.h(c.signals),m=k.next();!m.done;m=k.next()){var n=m.value;m=!_.WF(a,n);wKb.has(n)?d=!0:(n=a.compoundSignals.get(n))?m&&!n.isTimeoutConditionSatisfied&&(g++,c.isInitialized||n.timeoutConditionObservers.push(function(){yKb(a,b)})):m&&e++}c.isInitialized=!0;
c.isOnAny?d&&(c.isTimeoutConditionSatisfied=!0):e===0&&g===0&&(c.isTimeoutConditionSatisfied=!0);if(c.isTimeoutConditionSatisfied)for(c=_.h(c.timeoutConditionObservers),d=c.next();!d.done;d=c.next())d=d.value,d()}}};
UF.prototype.processSignal=UF.prototype.processSignal;UF.prototype.parkOrScheduleJob=UF.prototype.parkOrScheduleJob;UF.prototype.onAny=UF.prototype.onAny;_.Rj("ytsignals.getInstance",_.VF);UF.prototype.onAny=UF.prototype.onAny;UF.prototype.parkOrScheduleJob=UF.prototype.parkOrScheduleJob;UF.prototype.processSignal=UF.prototype.processSignal;var wKb=new Set(["eop","eocs","dl","pcl"]);_.$w=new _.jB("MINIPLAYER_SERVICE");var XF,zKb,AKb;XF=function(a,b,c){var d=_.Ll.getInstance();if(!qKb){var e=new epa;var g=void 0,k=_.Fi("ID_TOKEN");k&&e.isAvailable()&&(g=new uj(e,"yt-queue"+k));qKb=new SF(g)}e=qKb;g=_.VF();this.JSC$10619_actionRouter=d;this.pageManager=a;this.playlistManager=b;this.JSC$10619_playlistNetworkManager=c;this.storage=e;this.signals=g;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.YF=function(){if(!zKb){var a=_.v(),b=a.resolve(_.Xi(_.Zt)),c=a.resolve(_.Xi(_.xq)),d=a.resolve(_.Xi(_.TF));a=a.resolve(_.yq);zKb=new XF(b,d,new uIa(c,a))}return zKb};
AKb=function(a,b,c){if(c){var d;if(((d=a.responsePlaylistData)==null?void 0:d.playlistId)!==c)return}a.responsePlaylistData&&(c=eHa(b,a.responsePlaylistData),a.responsePlaylistData=(0,_.Cf.unsafeClone)(a.responsePlaylistData),gHa(a.responsePlaylistData,c));c=a.temporaryItems.findIndex(function(e){return e.videoId===b});
c>-1&&a.temporaryItems.splice(c,1);_.ZF(a,_.$F(a,a.response?a.response.autoplayRenderer:void 0))};
_.BKb=function(a,b){if(a.responsePlaylistData){var c=fHa(b,a.responsePlaylistData);gHa(a.responsePlaylistData,c);if(a.queueProxy){var d=a.queueProxy;c<0||(d.videoIds.splice(c,1),c<d.currentIndex&&d.JSC$10565_setCurrentIndex(d.currentIndex-1),d.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:b}),OF(d))}}_.ZF(a,_.$F(a,a.response?a.response.autoplayRenderer:void 0))};
XF.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.ZF(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
XF.prototype.setPlaylistData=function(a,b,c){this.temporaryItems=[];this.listId=a;this.responsePlaylistData=b;_.ZF(this,_.$F(this,c))};
var CKb=function(a){return(a==null?0:a.playlistId)?a.playlistId:"PPSV"},DKb=function(a){return a&&a.playlistId?a.playlistId==="PPSV"?!0:PEa(_.Yp().getState().entities,a.playlistId):!1};
XF.prototype.isPlayingOfflineVideo=function(){return this.response?DKb(this.response):!1};
XF.prototype.closeMiniplayer=function(a){var b=this.queueProxy&&this.queueProxy.size()<=1,c=_.v().resolve(_.$w);if(!this.queueProxy||b)this.queueProxy&&this.clearQueue(),c.close(!0);else{c.pipController.getWindow()&&window.focus();b=this.responsePlaylistData;var d=this.temporaryItems.length+(b&&b.contents?b.contents.length:0);b=_.vo("QUEUE_CLEARED_UNPLURALIZED")||_.wo("QUEUE_CLEARED",d);b=_.bq(b);c=_.vo("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");d=_.vo("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.wo("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",d);var e=_.vo("MINIPLAYER_CLOSE",void 0,"Close"),g=_.vo("CANCEL",void 0,"Cancel");_.RB(this.JSC$10619_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Vp(c),dialogMessages:[_.Vp(d)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Vp(e),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
b]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Vp(g)}}}}}}],a)}};
_.$F=function(a,b){var c={},d=a.response;c.autoplayRenderer=b;if(!a.responsePlaylistData&&!a.temporaryItems.length)return!d||!d.hasRelatedVideoData&&_.w("kevlar_prefetch_data_augments_network_data")||(c.playerData={rvs:d.relatedVideoArgs,endScreenRenderer:d.endScreenRenderer}),c;c.playerData={};if(a.index===void 0)return _.Bl(Error("If")),c;c.panel=a.responsePlaylistData?(0,_.Cf.unsafeClone)(a.responsePlaylistData):{titleText:_.Vp(_.vo("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
b=c.panel;if(b.contents)for(var e=_.h(a.temporaryItems),g=e.next();!g.done;g=e.next())b.contents.push({playlistPanelVideoRenderer:g.value});a.queueProxy&&d&&d.playingVideo&&d.playingVideoId&&!dHa(d.playingVideoId,c.panel)&&(b=d.playingVideo,e=c.panel,g=a.index,e.contents&&e.contents.splice(g===void 0?0:g,0,{playlistPanelVideoRenderer:b}));d&&d.playingVideoId&&(b=a.index,e=c.panel,b=!e.contents||b>=e.contents.length?void 0:e.contents[b].playlistPanelVideoRenderer,b&&b.videoId===d.playingVideoId||(b=
eHa(d.playingVideoId,c.panel),a.index=b!==-1?b:a.index?a.index-1:0));b=cHa(a.index+1,c.panel);e=void 0;a.index>0&&(e=cHa(a.index-1,c.panel));if(e||b)c.autoplayRenderer=$Ga(b,e,c.autoplayRenderer);!b&&(d==null?0:d.relatedVideoArgs)&&(c.playerData.rvs=d.relatedVideoArgs);d=d?d.playlistIndexOffset:0;a.queueProxy?jHa(c.panel,a.index,d,bHa,!0,!0,!0):jHa(c.panel,a.index,d);c.playerData.playlistPanelRenderer=c.panel;return c};
XF.prototype.openToast=function(a){_.v().resolve(_.$w).openToast(a,_.vo("ADDED_TO_QUEUE",void 0,"Added to queue"))};
XF.prototype.isMiniplayerActive=function(){return _.v().resolve(_.$w).isMiniplayerActive()};
_.ZF=function(a,b){a.playlistManager.setAutoplayRenderer(b.autoplayRenderer||null);a.playlistManager.setPlaylistData(b.panel||null);b.playerData&&a.playlistManager.setPlayerPlaybackControlData(b.playerData)};var EKb={},FKb={},GKb={},HKb={},IKb={responseContext:{serviceTrackingParams:[{service:"GFEEDBACK",params:[{key:"kc",value:"66"},{key:"cw",value:"st"},{key:"zb",value:"xz"},{key:"zl",value:"16"},{key:"pf",value:"sy"}]},{service:"bh",params:[{key:"ip",value:"54"},{key:"tb",value:"dv"},{key:"pi",value:"pn"},{key:"fg",value:"35"},{key:"wm",value:"vo"}]},{service:"fp",params:[{key:"hw",value:"91"}]},{service:"rk",params:[{key:"pe",value:"sf"},{key:"rv",value:"jn"},{key:"aw",value:"pw"}]}],maxAgeSeconds:87,
mainAppWebResponseContext:{loggedOut:43,trackingParam:"dd",datasyncId:"xp"},webResponseContextExtensionData:{hasDecorated:75}},playabilityStatus:{status:"by",playableInEmbed:2,miniplayer:{miniplayerRenderer:{playbackMode:"tj"}},offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:"pz",ypcGetOfflineUpsellEndpoint:{params:"xm"}},trackingParams:"pq"}},contextParams:"lu"},streamingData:{expiresInSeconds:"53",formats:[{itag:80,url:"https://rr3---sn-n4v7sns7.googlevideo.com/videoplayback?expire=1697267654&source=youtube&requiressl=yes",
mimeType:'video/webm; codecs="vp9"',bitrate:88,width:96,height:65,lastModified:"1665263132187531",contentLength:"17",quality:"rc",fps:8,qualityLabel:"ab",projectionType:"by",averageBitrate:50,audioQuality:"th",approxDurationMs:"86",audioSampleRate:"88",audioChannels:34},{itag:95,url:"hs",mimeType:"nm",bitrate:56,width:13,height:14,lastModified:"10",quality:"fu",fps:54,qualityLabel:"yj",projectionType:"wu",audioQuality:"tu",approxDurationMs:"51",audioSampleRate:"87",audioChannels:44}],adaptiveFormats:[{itag:50,
url:"fu",mimeType:"uz",bitrate:80,width:80,height:85,initRange:{start:"16",end:"71"},indexRange:{start:"1",end:"26"},lastModified:"70",contentLength:"66",quality:"cx",fps:61,qualityLabel:"xt",projectionType:"pe",averageBitrate:68,approxDurationMs:"1"},{itag:77,url:"rj",mimeType:"lh",bitrate:16,width:17,height:47,initRange:{start:"51",end:"44"},indexRange:{start:"87",end:"61"},lastModified:"13",contentLength:"21",quality:"ie",fps:23,qualityLabel:"ig",projectionType:"bl",averageBitrate:16,colorInfo:{primaries:"et",
transferCharacteristics:"zu",matrixCoefficients:"od"},approxDurationMs:"59"},{itag:7,url:"fc",mimeType:"gr",bitrate:71,width:11,height:3,initRange:{start:"100",end:"7"},indexRange:{start:"36",end:"98"},lastModified:"88",contentLength:"77",quality:"rb",fps:46,qualityLabel:"gq",projectionType:"ld",averageBitrate:99,colorInfo:{primaries:"xd",transferCharacteristics:"uu",matrixCoefficients:"zc"},approxDurationMs:"44"},{itag:10,url:"kl",mimeType:"wb",bitrate:51,width:69,height:3,initRange:{start:"92",
end:"79"},indexRange:{start:"42",end:"72"},lastModified:"99",contentLength:"6",quality:"ee",fps:40,qualityLabel:"em",projectionType:"wz",averageBitrate:48,approxDurationMs:"86"},{itag:44,url:"hp",mimeType:"kq",bitrate:84,width:53,height:22,initRange:{start:"48",end:"51"},indexRange:{start:"54",end:"44"},lastModified:"25",contentLength:"47",quality:"xy",fps:11,qualityLabel:"zl",projectionType:"za",averageBitrate:95,colorInfo:{primaries:"ot",transferCharacteristics:"av",matrixCoefficients:"ow"},approxDurationMs:"85"},
{itag:20,url:"di",mimeType:"nc",bitrate:15,width:19,height:92,initRange:{start:"82",end:"58"},indexRange:{start:"80",end:"37"},lastModified:"46",contentLength:"40",quality:"wo",fps:44,qualityLabel:"pt",projectionType:"bg",averageBitrate:3,colorInfo:{primaries:"wq",transferCharacteristics:"is",matrixCoefficients:"ou"},approxDurationMs:"47"},{itag:44,url:"oe",mimeType:"mh",bitrate:37,width:43,height:24,initRange:{start:"29",end:"91"},indexRange:{start:"97",end:"97"},lastModified:"52",contentLength:"43",
quality:"cr",fps:44,qualityLabel:"hc",projectionType:"cr",averageBitrate:12,approxDurationMs:"97"},{itag:32,url:"gq",mimeType:"sh",bitrate:42,width:32,height:13,initRange:{start:"71",end:"87"},indexRange:{start:"70",end:"4"},lastModified:"67",contentLength:"16",quality:"sb",fps:66,qualityLabel:"mv",projectionType:"kk",averageBitrate:51,colorInfo:{primaries:"pk",transferCharacteristics:"ea",matrixCoefficients:"cq"},approxDurationMs:"70"},{itag:71,url:"zt",mimeType:"bl",bitrate:12,width:68,height:12,
initRange:{start:"63",end:"2"},indexRange:{start:"28",end:"68"},lastModified:"33",contentLength:"0",quality:"dh",fps:6,qualityLabel:"jv",projectionType:"sy",averageBitrate:75,colorInfo:{primaries:"us",transferCharacteristics:"ka",matrixCoefficients:"xw"},approxDurationMs:"16"},{itag:98,url:"vl",mimeType:"lg",bitrate:88,width:23,height:83,initRange:{start:"49",end:"34"},indexRange:{start:"43",end:"90"},lastModified:"84",contentLength:"77",quality:"xu",fps:50,qualityLabel:"jz",projectionType:"om",averageBitrate:16,
highReplication:95,approxDurationMs:"46"},{itag:85,url:"ri",mimeType:"dh",bitrate:77,width:86,height:54,initRange:{start:"40",end:"98"},indexRange:{start:"15",end:"85"},lastModified:"25",contentLength:"53",quality:"rq",fps:62,qualityLabel:"nx",projectionType:"wg",averageBitrate:35,colorInfo:{primaries:"oa",transferCharacteristics:"kb",matrixCoefficients:"kk"},approxDurationMs:"26"},{itag:10,url:"zz",mimeType:"lq",bitrate:55,width:89,height:43,initRange:{start:"94",end:"98"},indexRange:{start:"73",
end:"51"},lastModified:"3",contentLength:"36",quality:"yo",fps:5,qualityLabel:"we",projectionType:"ve",averageBitrate:83,colorInfo:{primaries:"yu",transferCharacteristics:"fu",matrixCoefficients:"ox"},approxDurationMs:"11"},{itag:62,url:"hv",mimeType:"th",bitrate:76,width:28,height:79,initRange:{start:"97",end:"100"},indexRange:{start:"58",end:"63"},lastModified:"53",contentLength:"22",quality:"ou",fps:7,qualityLabel:"cm",projectionType:"xv",averageBitrate:35,approxDurationMs:"98"},{itag:91,url:"vr",
mimeType:"wo",bitrate:41,width:4,height:79,initRange:{start:"80",end:"83"},indexRange:{start:"14",end:"58"},lastModified:"50",contentLength:"38",quality:"ic",fps:64,qualityLabel:"sq",projectionType:"du",averageBitrate:61,colorInfo:{primaries:"ok",transferCharacteristics:"ud",matrixCoefficients:"ob"},approxDurationMs:"73"},{itag:48,url:"lq",mimeType:"zl",bitrate:4,width:16,height:65,initRange:{start:"93",end:"50"},indexRange:{start:"52",end:"44"},lastModified:"74",contentLength:"86",quality:"mi",fps:43,
qualityLabel:"rz",projectionType:"ji",averageBitrate:61,colorInfo:{primaries:"qo",transferCharacteristics:"fk",matrixCoefficients:"jy"},approxDurationMs:"70"},{itag:34,url:"cr",mimeType:"la",bitrate:53,width:29,height:97,initRange:{start:"89",end:"45"},indexRange:{start:"93",end:"45"},lastModified:"52",contentLength:"74",quality:"xn",fps:60,qualityLabel:"xs",projectionType:"lf",averageBitrate:1,approxDurationMs:"18"},{itag:67,url:"mr",mimeType:"cs",bitrate:79,width:9,height:85,initRange:{start:"56",
end:"96"},indexRange:{start:"71",end:"84"},lastModified:"78",contentLength:"80",quality:"ld",fps:2,qualityLabel:"no",projectionType:"uq",averageBitrate:35,colorInfo:{primaries:"mj",transferCharacteristics:"ry",matrixCoefficients:"cc"},approxDurationMs:"43"},{itag:57,url:"fi",mimeType:"to",bitrate:80,width:81,height:29,initRange:{start:"6",end:"96"},indexRange:{start:"73",end:"48"},lastModified:"32",contentLength:"11",quality:"ck",fps:82,qualityLabel:"fo",projectionType:"px",averageBitrate:95,colorInfo:{primaries:"az",
transferCharacteristics:"mq",matrixCoefficients:"oc"},approxDurationMs:"44"},{itag:52,url:"ea",mimeType:"xm",bitrate:18,initRange:{start:"15",end:"16"},indexRange:{start:"4",end:"33"},lastModified:"65",contentLength:"67",quality:"es",projectionType:"mp",averageBitrate:52,highReplication:82,audioQuality:"za",approxDurationMs:"24",audioSampleRate:"1",audioChannels:92,loudnessDb:.9787435365879406},{itag:37,url:"kk",mimeType:"xg",bitrate:78,initRange:{start:"38",end:"94"},indexRange:{start:"27",end:"17"},
lastModified:"61",contentLength:"2",quality:"nh",projectionType:"ar",averageBitrate:69,audioQuality:"la",approxDurationMs:"95",audioSampleRate:"66",audioChannels:50,loudnessDb:.6461265012758731},{itag:45,url:"oc",mimeType:"nm",bitrate:12,initRange:{start:"21",end:"45"},indexRange:{start:"21",end:"13"},lastModified:"45",contentLength:"85",quality:"vs",projectionType:"xp",averageBitrate:32,audioQuality:"tv",approxDurationMs:"1",audioSampleRate:"99",audioChannels:42,loudnessDb:.39295968942278037},{itag:37,
url:"zf",mimeType:"be",bitrate:29,initRange:{start:"27",end:"87"},indexRange:{start:"81",end:"20"},lastModified:"6",contentLength:"33",quality:"pe",projectionType:"pb",averageBitrate:100,audioQuality:"zi",approxDurationMs:"70",audioSampleRate:"32",audioChannels:68,loudnessDb:.2781731101164002}]},playerAds:[{playerLegacyDesktopWatchAdsRenderer:{playerAdParams:{showContentThumbnail:!0,enabledEngageTypes:"3,6,4,5"},gutParams:{tag:"\\4061\\ytpwmpu"},showCompanion:!0,showInstream:!0,useGut:!0}}],playbackTracking:{videostatsPlaybackUrl:{baseUrl:"bj"},
videostatsDelayplayUrl:{baseUrl:"vx"},videostatsWatchtimeUrl:{baseUrl:"px"},ptrackingUrl:{baseUrl:"tg"},qoeUrl:{baseUrl:"wx"},atrUrl:{baseUrl:"xz",elapsedMediaTimeSeconds:45},videostatsScheduledFlushWalltimeSeconds:[99,32,39],videostatsDefaultFlushIntervalSeconds:3,youtubeRemarketingUrl:{baseUrl:"mb",elapsedMediaTimeSeconds:63},googleRemarketingUrl:{baseUrl:"yn",elapsedMediaTimeSeconds:83}},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"ew",name:{simpleText:"ez"},vssId:"fj",languageCode:"wd",
kind:"ez",isTranslatable:21}],audioTracks:[{captionTrackIndices:[87]}],translationLanguages:[{languageCode:"xu",languageName:{simpleText:"fw"}},{languageCode:"zl",languageName:{simpleText:"xc"}},{languageCode:"jr",languageName:{simpleText:"md"}},{languageCode:"sc",languageName:{simpleText:"wf"}},{languageCode:"nj",languageName:{simpleText:"xn"}},{languageCode:"of",languageName:{simpleText:"av"}},{languageCode:"tv",languageName:{simpleText:"ok"}},{languageCode:"nu",languageName:{simpleText:"ry"}},
{languageCode:"zy",languageName:{simpleText:"nb"}},{languageCode:"pt",languageName:{simpleText:"eq"}},{languageCode:"vr",languageName:{simpleText:"cc"}},{languageCode:"wh",languageName:{simpleText:"hd"}},{languageCode:"hp",languageName:{simpleText:"ds"}},{languageCode:"ka",languageName:{simpleText:"up"}},{languageCode:"sw",languageName:{simpleText:"zp"}},{languageCode:"rh",languageName:{simpleText:"eq"}},{languageCode:"bq",languageName:{simpleText:"at"}},{languageCode:"hu",languageName:{simpleText:"fg"}},
{languageCode:"ai",languageName:{simpleText:"iy"}},{languageCode:"rj",languageName:{simpleText:"oz"}},{languageCode:"sq",languageName:{simpleText:"fe"}},{languageCode:"tn",languageName:{simpleText:"vk"}},{languageCode:"jr",languageName:{simpleText:"jg"}},{languageCode:"vc",languageName:{simpleText:"hv"}},{languageCode:"yn",languageName:{simpleText:"ky"}},{languageCode:"pa",languageName:{simpleText:"rw"}},{languageCode:"lr",languageName:{simpleText:"kv"}},{languageCode:"ud",languageName:{simpleText:"fn"}},
{languageCode:"hq",languageName:{simpleText:"io"}},{languageCode:"rp",languageName:{simpleText:"qx"}},{languageCode:"xf",languageName:{simpleText:"sm"}},{languageCode:"fs",languageName:{simpleText:"ty"}},{languageCode:"so",languageName:{simpleText:"xl"}},{languageCode:"fk",languageName:{simpleText:"ff"}},{languageCode:"fw",languageName:{simpleText:"wz"}},{languageCode:"rn",languageName:{simpleText:"zw"}},{languageCode:"wq",languageName:{simpleText:"yt"}},{languageCode:"oh",languageName:{simpleText:"oo"}},
{languageCode:"ts",languageName:{simpleText:"jt"}},{languageCode:"xy",languageName:{simpleText:"ga"}},{languageCode:"jy",languageName:{simpleText:"sx"}},{languageCode:"lw",languageName:{simpleText:"cf"}},{languageCode:"fc",languageName:{simpleText:"qr"}},{languageCode:"ji",languageName:{simpleText:"cc"}},{languageCode:"qs",languageName:{simpleText:"pi"}},{languageCode:"vx",languageName:{simpleText:"hk"}},{languageCode:"jt",languageName:{simpleText:"eh"}},{languageCode:"fb",languageName:{simpleText:"iu"}},
{languageCode:"mf",languageName:{simpleText:"st"}},{languageCode:"en",languageName:{simpleText:"vr"}},{languageCode:"go",languageName:{simpleText:"kp"}},{languageCode:"sc",languageName:{simpleText:"rk"}},{languageCode:"bx",languageName:{simpleText:"ci"}},{languageCode:"pu",languageName:{simpleText:"qj"}},{languageCode:"fa",languageName:{simpleText:"ht"}},{languageCode:"bw",languageName:{simpleText:"af"}},{languageCode:"rr",languageName:{simpleText:"jt"}},{languageCode:"ef",languageName:{simpleText:"yy"}},
{languageCode:"bn",languageName:{simpleText:"wu"}},{languageCode:"ov",languageName:{simpleText:"ae"}},{languageCode:"sm",languageName:{simpleText:"hi"}},{languageCode:"tq",languageName:{simpleText:"ie"}},{languageCode:"fn",languageName:{simpleText:"et"}},{languageCode:"jw",languageName:{simpleText:"bu"}},{languageCode:"iz",languageName:{simpleText:"gc"}},{languageCode:"bk",languageName:{simpleText:"jh"}},{languageCode:"vw",languageName:{simpleText:"fq"}},{languageCode:"xt",languageName:{simpleText:"or"}},
{languageCode:"kq",languageName:{simpleText:"ch"}},{languageCode:"pa",languageName:{simpleText:"cs"}},{languageCode:"ef",languageName:{simpleText:"eq"}},{languageCode:"mk",languageName:{simpleText:"ig"}},{languageCode:"me",languageName:{simpleText:"pv"}},{languageCode:"ll",languageName:{simpleText:"nz"}},{languageCode:"yd",languageName:{simpleText:"pu"}},{languageCode:"dj",languageName:{simpleText:"vx"}},{languageCode:"xc",languageName:{simpleText:"ca"}},{languageCode:"wb",languageName:{simpleText:"il"}},
{languageCode:"ww",languageName:{simpleText:"jf"}},{languageCode:"xi",languageName:{simpleText:"ba"}},{languageCode:"ae",languageName:{simpleText:"hx"}},{languageCode:"uj",languageName:{simpleText:"xu"}},{languageCode:"hq",languageName:{simpleText:"gp"}},{languageCode:"we",languageName:{simpleText:"pk"}},{languageCode:"kt",languageName:{simpleText:"ek"}},{languageCode:"hy",languageName:{simpleText:"ab"}},{languageCode:"hm",languageName:{simpleText:"nu"}},{languageCode:"uw",languageName:{simpleText:"rx"}},
{languageCode:"or",languageName:{simpleText:"nf"}},{languageCode:"dh",languageName:{simpleText:"zn"}},{languageCode:"kb",languageName:{simpleText:"js"}},{languageCode:"vg",languageName:{simpleText:"xe"}},{languageCode:"dl",languageName:{simpleText:"so"}},{languageCode:"lz",languageName:{simpleText:"hb"}},{languageCode:"ny",languageName:{simpleText:"xr"}},{languageCode:"ag",languageName:{simpleText:"us"}},{languageCode:"zr",languageName:{simpleText:"ae"}},{languageCode:"yq",languageName:{simpleText:"yc"}},
{languageCode:"up",languageName:{simpleText:"dc"}},{languageCode:"zn",languageName:{simpleText:"jw"}},{languageCode:"uh",languageName:{simpleText:"ms"}},{languageCode:"mt",languageName:{simpleText:"vf"}},{languageCode:"lt",languageName:{simpleText:"ln"}},{languageCode:"vf",languageName:{simpleText:"rd"}},{languageCode:"my",languageName:{simpleText:"rk"}},{languageCode:"ei",languageName:{simpleText:"ul"}},{languageCode:"dj",languageName:{simpleText:"cz"}},{languageCode:"kb",languageName:{simpleText:"hp"}},
{languageCode:"jj",languageName:{simpleText:"zf"}},{languageCode:"ew",languageName:{simpleText:"ff"}},{languageCode:"jo",languageName:{simpleText:"iz"}},{languageCode:"ja",languageName:{simpleText:"uz"}},{languageCode:"yd",languageName:{simpleText:"or"}},{languageCode:"tl",languageName:{simpleText:"tw"}},{languageCode:"mw",languageName:{simpleText:"th"}},{languageCode:"pq",languageName:{simpleText:"zp"}},{languageCode:"pq",languageName:{simpleText:"pk"}},{languageCode:"ef",languageName:{simpleText:"fj"}},
{languageCode:"qq",languageName:{simpleText:"vu"}},{languageCode:"pj",languageName:{simpleText:"kp"}},{languageCode:"ab",languageName:{simpleText:"xw"}},{languageCode:"re",languageName:{simpleText:"ln"}},{languageCode:"ht",languageName:{simpleText:"wo"}},{languageCode:"ju",languageName:{simpleText:"wb"}},{languageCode:"yq",languageName:{simpleText:"xv"}}],defaultAudioTrackIndex:70}},videoDetails:{videoId:"ux",title:"jb",lengthSeconds:"90",keywords:"th ts yg gy ih iq zj".split(" "),channelId:"pg",
isOwnerViewing:6,shortDescription:"ts",isCrawlable:62,thumbnail:{thumbnails:[{url:"vx",width:8,height:58},{url:"bp",width:44,height:79},{url:"oh",width:47,height:66},{url:"hm",width:34,height:55},{url:"vr",width:0,height:20}]},allowRatings:24,viewCount:"49",author:"xr",isPrivate:70,isUnpluggedCorpus:66,isLiveContent:99},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"96",endTimeMs:"46",watermark:{thumbnails:[{url:"li",width:91,height:28}]},trackingParams:"an",navigationEndpoint:{clickTrackingParams:"mg",
commandMetadata:{webCommandMetadata:{url:"rd",webPageType:"nc",rootVe:69,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:"qg"}},channelName:"ei",subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:"pz"}]},subscribed:44,enabled:33,type:"ue",channelId:"ki",showPreferences:71,subscribedButtonText:{runs:[{text:"lk"}]},unsubscribedButtonText:{runs:[{text:"jn"}]},trackingParams:"oj",unsubscribeButtonText:{runs:[{text:"ad"}]},serviceEndpoints:[{clickTrackingParams:"wm",commandMetadata:{webCommandMetadata:{sendPost:4,
apiUrl:"ky"}},subscribeEndpoint:{channelIds:["zt"],params:"at"}},{clickTrackingParams:"jg",commandMetadata:{webCommandMetadata:{sendPost:28}},signalServiceEndpoint:{signal:"ok",actions:[{clickTrackingParams:"lt",openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:"po",dialogMessages:[{runs:[{text:"ou"},{text:"jt"},{text:"zz"}]}],confirmButton:{buttonRenderer:{style:"mm",size:"oi",isDisabled:43,text:{runs:[{text:"kc"}]},serviceEndpoint:{clickTrackingParams:"gk",commandMetadata:{webCommandMetadata:{sendPost:18,
apiUrl:"kc"}},unsubscribeEndpoint:{channelIds:["cm"],params:"ar"}},accessibility:{label:"iy"},trackingParams:"gs"}},cancelButton:{buttonRenderer:{style:"jb",size:"pe",isDisabled:69,text:{runs:[{text:"uv"}]},accessibility:{label:"qu"},trackingParams:"pe"}},primaryIsCancel:48}},popupType:"ma"}}]}}],subscribeAccessibility:{accessibilityData:{label:"vh"}},unsubscribeAccessibility:{accessibilityData:{label:"lg"}},signInEndpoint:{clickTrackingParams:"eu",commandMetadata:{webCommandMetadata:{url:"na"}}}}}},
allowSwipeDismiss:55,annotationId:"jd"}}],playerConfig:{audioConfig:{loudnessDb:.9620880668073215,perceptualLoudnessDb:.541474004793957,enablePerFormatLoudness:31},streamSelectionConfig:{maxBitrate:"61"},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:100,minReadAheadMediaTimeMs:21,readAheadGrowthRateMs:29}},webPlayerConfig:{useCobaltTvosDash:55,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:"of",commandMetadata:{webCommandMetadata:{sendPost:31,apiUrl:"xl"}},
webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"tr"}},subscribeCommand:{clickTrackingParams:"fs",commandMetadata:{webCommandMetadata:{sendPost:13,apiUrl:"xp"}},subscribeEndpoint:{channelIds:["qs"],params:"oa"}},unsubscribeCommand:{clickTrackingParams:"ls",commandMetadata:{webCommandMetadata:{sendPost:91,apiUrl:"wc"}},unsubscribeEndpoint:{channelIds:["fo"],params:"vt"}},addToWatchLaterCommand:{clickTrackingParams:"ua",commandMetadata:{webCommandMetadata:{sendPost:18,apiUrl:"iu"}},playlistEditEndpoint:{playlistId:"rv",
actions:[{addedVideoId:"iw",action:"rd"}]}},removeFromWatchLaterCommand:{clickTrackingParams:"un",commandMetadata:{webCommandMetadata:{sendPost:20,apiUrl:"bl"}},playlistEditEndpoint:{playlistId:"zg",actions:[{action:"ya",removedVideoId:"dk"}]}}},gatewayExperimentGroup:"vb"}},storyboards:{playerStoryboardSpecRenderer:{spec:"aj",recommendedLevel:87}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"mm",width:57,height:94}]},embed:{iframeUrl:"bd",width:51,height:73},title:{simpleText:"sg"},
description:{simpleText:"yv"},lengthSeconds:"18",ownerProfileUrl:"bg",externalChannelId:"eg",isFamilySafe:88,availableCountries:"hn sd lt tx nw mq iz aj vi xa ec iv rj vb ro po mv mx cn ld tn ay gv bs vf da ss km uo mg wv md lo nc vh li jh lj qq ci ob zy pu bl jm ge tt ov ue vp ka nh uc gb rs gu hm uv nq ga qu hr pj zq rh nn yv or zg ai qj cv vg hr zm al mj fz yx st tt ih vm wq gx wi ys ug vb uh rf ry ba xu ce eq bx he jm ie nb cd qz no yq qe jy wd pm nb hk em im iv ld gz fe ut md gw sf yz yp xr gm uo kg yo wv da wt ry it gz mm ho mf lq tu im lu gm pa ny gu ds yx yh jk qb jv mp bi nr mc bg ym zt sh kd gj dp qw eh no pj nq dy gt cm pg ce jt xv tf ue ke hs xh tc ad yg uh cd zc rj kq sp vv xt bo am kg kx xb fr il qi ap pe tg im cs vy zu cq bu og tf ze zj um vd ot al zl um jv ss md xm nv id es jf as zb ms uv jh xz em uv bk zx wp ay ub pa rf yi zm em pu xs".split(" "),
isUnlisted:24,hasYpcMetadata:38,viewCount:"6",category:"qh",publishDate:"eb",ownerChannelName:"mf",uploadDate:"ax"}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:"ha"},trackingParams:"ra",prominent:9,logVisibilityUpdates:88,onTapCommand:{clickTrackingParams:"dy",changeEngagementPanelVisibilityAction:{targetId:"qc",visibility:"mh"}}}},cueRanges:[{startCardActiveMs:"41",endCardActiveMs:"81",teaserDurationMs:"31",iconAfterTeaserMs:"65"}],
trackingParams:"sn"}}],headerText:{simpleText:"mi"},icon:{infoCardIconRenderer:{trackingParams:"tq"}},closeButton:{infoCardIconRenderer:{trackingParams:"nz"}},trackingParams:"ss",allowTeaserDismiss:55,logIconVisibilityUpdates:49}},trackingParams:"lt",attestation:{playerAttestationRenderer:{challenge:"rg",botguardData:{program:"vk",interpreterSafeUrl:(EKb.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",EKb),serverEnvironment:83}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["vs"],
joinLatencySeconds:85,rebufferTimeSeconds:89,watchTimeWindowSeconds:21,refractorySeconds:41},text:{runs:[{text:"it"},{text:"qt",bold:60}]},endpoint:{clickTrackingParams:"lw",commandMetadata:{webCommandMetadata:{url:"ih",webPageType:"xa",rootVe:73}},urlEndpoint:{url:"ms",target:"tj"}},trackingParams:"vd",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:"pp"}]},actionButton:{buttonRenderer:{text:{runs:[{text:"yw"}]},navigationEndpoint:{clickTrackingParams:"sq",commandMetadata:{webCommandMetadata:{url:"wp",
webPageType:"zn",rootVe:21}},urlEndpoint:{url:"ju",target:"dy"}},trackingParams:"zj"}},trackingParams:"nh"}}}},messages:[{mealbarPromoRenderer:{icon:{thumbnails:[{url:"ek",width:71,height:69}]},messageTexts:[{runs:[{text:"ew"}]}],actionButton:{buttonRenderer:{style:"gz",size:"tz",text:{runs:[{text:"ga"}]},trackingParams:"qr",command:{clickTrackingParams:"wk",commandExecutorCommand:{commands:[{clickTrackingParams:"dw",commandMetadata:{webCommandMetadata:{url:"po",webPageType:"fl",rootVe:70,apiUrl:"ot"}},
browseEndpoint:{browseId:"pl",params:"zo"}},{commandMetadata:{webCommandMetadata:{sendPost:10,apiUrl:"rv"}},feedbackEndpoint:{feedbackToken:"xi",uiActions:{hideEnclosingContainer:25}}}]}}}},dismissButton:{buttonRenderer:{style:"ol",size:"og",text:{runs:[{text:"yv"}]},trackingParams:"ch",command:{clickTrackingParams:"uu",commandExecutorCommand:{commands:[{clickTrackingParams:"ig",commandMetadata:{webCommandMetadata:{sendPost:71,apiUrl:"en"}},feedbackEndpoint:{feedbackToken:"wh",uiActions:{hideEnclosingContainer:45}}}]}}}},
triggerCondition:"pb",style:"uq",trackingParams:"rp",impressionEndpoints:[{clickTrackingParams:"xb",commandMetadata:{webCommandMetadata:{sendPost:73,apiUrl:"wl"}},feedbackEndpoint:{feedbackToken:"wf",uiActions:{hideEnclosingContainer:95}}}],isVisible:17,messageTitle:{runs:[{text:"ir"}]},enableSharedFeatureForImpressionHandling:21}}],adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"7",offsetEndMilliseconds:"39"},
hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/AERLXaPKn_U/mqdefault.jpg",width:46,height:25}]},trackingParams:"ye"},trackingParams:"dq",templatedCountdown:{templatedAdText:{text:"ps",isTemplated:82,trackingParams:"cc"}},durationMilliseconds:44}},skippableRenderer:{skipButtonRenderer:{message:{text:"xz",
isTemplated:30,trackingParams:"um"},trackingParams:"ge"}},trackingParams:"zg",skipOffsetMilliseconds:88}},trackingParams:"qd",visitAdvertiserRenderer:{buttonRenderer:{style:"fv",text:{simpleText:"on"},icon:{iconType:"vw"},navigationEndpoint:{clickTrackingParams:"mk",commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C3OQpfbUyZYWKL_Ken8RMFbClwAyRha6dc6fw7oP7EbaQHxABIABgyfb4hsijoBmCARdjYS1wdWItNjIxOTgxMTc0NzA0OTM3MYgBAaAB59zF2gOoAwSqBLMDT9ATfUTpaHDVXptzXB0Bqtu5dBV_jsP-c6MPkZYSL8_SrzCV3_f4sBsAHAi3Utb4zaJFaF_HvQdtBwss4wAA_skHdbFnpl5-EMNyyzlRw-Cndshj8CGQYwd1ZXhxlU46cvUuzxBe4SvQuo5EZgRv_zIYfKVpOj81ol3soC-FTzrjxhngpg6E1SEy8MZ8S5ykzm_m-YEKix3QCVLlSpEedBunRo295OkIwlFwaIQk8cLxsmnYhxdD_0zLFeTvwe5Q5tNO9mqkUZ7rAyzCTey_m5MZVo67-fDtV0elSQR79C9ErFiOQ5SaPsQgzk7zE3jxPNZYzV0zKOQ245eF3ZWxcGIrFA5NPIvvBwOl60ABjpEgQjQ4y2LpZnygmW_9ikThHx_iC4RujeV7iSAG5Fvv28wptAmCq7jMu5tWztpr-nl-Y0Iz7dA2FeeEOcd4ddn596NriGGT8AjZAXhtD7yJ8tRBEO3P48giFZj81WrpYHUvNhfx24PguTj-IBSpw2uQbemku11WDOxo7SI20n_fPtLcaEXB3YUajshnd5LoR4NlONEqC0f_uYwLaHt5X4Fw1hd8oAZUgAeBo7oliAcBkAcCqAf5sbECqAfnnbECqAfonbECqAfqt7ECqAentbMVqAfvtbECqAfwtbECqAeCqrECqAePOgHqNIbqAe2B6gHpJqxAqgHkZ-xAqgHsJuxAqgH36GxAqgHrrGxAqgHpqqxAqgH_bKxAqgHgcYbqAf8r7ECqAerxRuoB5zcG6gH5p2xAqgHyJ-xAqgHt6GxAqgH66WxAqgHyqmxApIIC242UFJubjBtcFpjqAgB0ggcCIAREAIYWjIDgoAEOgeP0ICAgIAESNmg0jVQFPIIH2NhLXl0LWhvc3QtcHViLTE4MDAxMjAxBZAyMzA2NTWaCRtodHRwczovL2xhdW5pdGVjLm5ldC9lY29tYTKxCS-fhg771OyRyAkYyAmPAcgJkAGYCwGhC8vk5LIcunUAugtXCAEQARgFIAEoATABQAFIAWAAaABwAogBAJgBAaIBLwoYIAPauAQSMhA6DgoMKDBIs5vbluYKmBkBEAEYACAAWABgAHAA0AEBqAIFwAIC2AEBgAIBiAIG0AsS2gw8CgoQ8Pj1wrn_sa1tEgIBAxoqCAESGf6BmeYY2b35qxjevPmrGJO89uoDvoSxpgPO7YnF2kwgmtyo08MEmg0BEqoNAlVTuBP___________8BsBQBwBXJgIBA0BUB2BUBkBYBmBYB4hYCCAGAFwGKFxoIAxgBIAEoATABOAFAAUgBUAFYAWACaAFwAaAXAakXG4oLaa1eRvW6FwQoADAA&ase=2&num=1&cid=CAASD-D4c9DOhTCuXm4CeUayPw&ad_cpn=%5BAD_CPN%5D&sig=AOD64_1U5dvH2jbnEq_3j0LlY381EiWpog&ms=[CLICK_MS]&adurl=https://garlo.com/enapa2%3Fgc_id%3D20599670093&label=video_click_to_advertiser_site&ctype=110",
webPageType:"ry",rootVe:62}},urlEndpoint:{url:"lq",target:"wt"}},trackingParams:"mh"}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:"kw",isTemplated:93,trackingParams:"jg"},trackingParams:"at"}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:"rl",isTemplated:73,trackingParams:"le"}},trackingParams:"tr"}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"le",size:"nb",isDisabled:41,serviceEndpoint:{clickTrackingParams:"jt",
openPopupAction:{popup:{aboutThisAdRenderer:{url:(FKb.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",FKb),trackingParams:"vy"}},popupType:"xn"}},icon:{iconType:"vl"},trackingParams:"lm",accessibilityData:{accessibilityData:{label:"qi"}}}},hoverText:{simpleText:"zk"},trackingParams:"qa"}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"pv"}]},trackingParams:"jo"},headline:{text:"qx",isTemplated:10,trackingParams:"um"},description:{text:"mf",trackingParams:"fe"},
actionButton:{buttonRenderer:{text:{simpleText:"kq"},navigationEndpoint:{clickTrackingParams:"cm",commandMetadata:{webCommandMetadata:{url:"wa",webPageType:"nq",rootVe:69}},urlEndpoint:{url:"ln",target:"nd"}},trackingParams:"no"}},startMs:45,trackingParams:"ge"}},adLayoutLoggingData:{serializedAdServingDataEntry:"xd"},elementId:"tc",inPlayerSlotId:"gg",inPlayerLayoutId:"cm"}},trackingParams:"uy",layoutId:"ff",associatedPlayerBytesLayoutId:"dy"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"gv"}]},
trackingParams:"at"},headline:{text:"ow",isTemplated:66,trackingParams:"za"},description:{text:"ds",isTemplated:95,trackingParams:"fc"},actionButton:{buttonRenderer:{style:"ys",text:{simpleText:"aq"},navigationEndpoint:{clickTrackingParams:"vu",commandMetadata:{webCommandMetadata:{url:"zn",webPageType:"jv",rootVe:38}},urlEndpoint:{url:"df",target:"xe"}},trackingParams:"za"}},durationMilliseconds:44,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:"xg"}},navigationEndpoint:{clickTrackingParams:"vg",
loggingUrls:[{baseUrl:"bc"}],commandMetadata:{webCommandMetadata:{url:"sn",webPageType:"vb",rootVe:34}},urlEndpoint:{url:"ex",target:"nb"}},trackingParams:"iw",backgroundImage:{thumbnail:{thumbnails:[{url:"cm"}]},trackingParams:"br"},adRendererCommands:{impressionCommand:{clickTrackingParams:"dj",commandExecutorCommand:{commands:[{clickTrackingParams:"li",loggingUrls:[{baseUrl:"wa"}],pingingEndpoint:{hack:0}}]}}},skipButton:{skipButtonRenderer:{message:{text:"jg",isTemplated:95,trackingParams:"by"},
trackingParams:"kl"}},adLayoutLoggingData:{serializedAdServingDataEntry:"kt"},layoutId:"cv",inPlayerSlotId:"qt",inPlayerLayoutId:"yy",associatedPlayerBytesLayoutId:"dx"}},{instreamVideoAdRenderer:{playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"pz",width:32,height:43}]},trackingParams:"iz"},trackingParams:"yo",templatedCountdown:{templatedAdText:{text:"we",isTemplated:91,trackingParams:"si"}},
durationMilliseconds:10}},skippableRenderer:{skipButtonRenderer:{message:{text:"bp",isTemplated:93,trackingParams:"mo"},trackingParams:"cp"}},trackingParams:"qr",skipOffsetMilliseconds:60}},trackingParams:"zf",visitAdvertiserRenderer:{buttonRenderer:{style:"ya",text:{simpleText:"fv"},icon:{iconType:"bx"},navigationEndpoint:{clickTrackingParams:"bw",commandMetadata:{webCommandMetadata:{url:"ht",webPageType:"gv",rootVe:14}},urlEndpoint:{url:"wi",target:"te"}},trackingParams:"gr"}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:"ox",
isTemplated:66,trackingParams:"td"},trackingParams:"ng"}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:"zu",isTemplated:15,trackingParams:"py"}},trackingParams:"hb"}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"vn",size:"cw",isDisabled:56,serviceEndpoint:{clickTrackingParams:"jh",openPopupAction:{popup:{aboutThisAdRenderer:{url:(GKb.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",GKb),trackingParams:"yl"}},popupType:"tw"}},
icon:{iconType:"ar"},trackingParams:"vi",accessibilityData:{accessibilityData:{label:"hy"}}}},hoverText:{simpleText:"ap"},trackingParams:"pp"}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"ol"}]},trackingParams:"kz"},headline:{text:"wa",isTemplated:43,trackingParams:"yb"},description:{text:"cl",trackingParams:"aq"},actionButton:{buttonRenderer:{text:{simpleText:"xg"},navigationEndpoint:{clickTrackingParams:"wp",commandMetadata:{webCommandMetadata:{url:"uh",webPageType:"bs",
rootVe:44}},urlEndpoint:{url:"xq",target:"fi"}},trackingParams:"fo"}},startMs:5,trackingParams:"kh"}},adLayoutLoggingData:{serializedAdServingDataEntry:"ir"},elementId:"mp",inPlayerSlotId:"fh",inPlayerLayoutId:"bh"}},trackingParams:"ao",layoutId:"gc",associatedPlayerBytesLayoutId:"up"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"wj"}]},trackingParams:"zr"},headline:{text:"rq",isTemplated:82,trackingParams:"gr"},description:{text:"fj",isTemplated:57,trackingParams:"li"},actionButton:{buttonRenderer:{style:"mu",
text:{simpleText:"cg"},navigationEndpoint:{clickTrackingParams:"eb",commandMetadata:{webCommandMetadata:{url:"vn",webPageType:"nw",rootVe:96}},urlEndpoint:{url:"bs",target:"dr"}},trackingParams:"iq"}},durationMilliseconds:39,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:"mt"}},navigationEndpoint:{clickTrackingParams:"uz",loggingUrls:[{baseUrl:"rn"}],commandMetadata:{webCommandMetadata:{url:"cu",webPageType:"qs",rootVe:26}},urlEndpoint:{url:"ty",target:"he"}},trackingParams:"bw",backgroundImage:{thumbnail:{thumbnails:[{url:"pd"}]},
trackingParams:"wm"},adRendererCommands:{impressionCommand:{clickTrackingParams:"io",commandExecutorCommand:{commands:[{clickTrackingParams:"hd",loggingUrls:[{baseUrl:"hz"}],pingingEndpoint:{hack:81}}]}}},skipButton:{skipButtonRenderer:{message:{text:"db",isTemplated:42,trackingParams:"ga"},trackingParams:"pa"}},adLayoutLoggingData:{serializedAdServingDataEntry:"bt"},layoutId:"ec",inPlayerSlotId:"nl",inPlayerLayoutId:"qh",associatedPlayerBytesLayoutId:"qe"}}]}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"rj"}}},
{adPlacementRenderer:{config:{adPlacementConfig:{kind:"zf",adTimeOffset:{offsetStartMilliseconds:"63",offsetEndMilliseconds:"83"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"59",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:"330100",offsetEndMilliseconds:"594666"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"0",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"65",offsetEndMilliseconds:"30"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"51",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"wg"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"56",offsetEndMilliseconds:"86"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"25",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"nh"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:"25",offsetEndMilliseconds:"13"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"32",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"ti"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"47",offsetEndMilliseconds:"84"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"go"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"14",offsetEndMilliseconds:"87"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"79",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"wi"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"34",offsetEndMilliseconds:"12"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"27",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"fp"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"66",offsetEndMilliseconds:"35"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"98",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"cn"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"59",offsetEndMilliseconds:"8"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"26",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"wz"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"84",offsetEndMilliseconds:"90"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"92",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"nl"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"50",offsetEndMilliseconds:"67"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"96",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"ov"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"13",offsetEndMilliseconds:"2"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"52",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"by"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"73",offsetEndMilliseconds:"64"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"67",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"uc"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"10",offsetEndMilliseconds:"zo"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"22",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"en"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:"eg",isTemplated:93,trackingParams:"it"},description:{text:"ux",isTemplated:43,trackingParams:"sj"},actionButton:{buttonRenderer:{text:{simpleText:"de"},navigationEndpoint:{clickTrackingParams:"ex",commandMetadata:{webCommandMetadata:{url:"ue",webPageType:"ow",rootVe:77}},urlEndpoint:{url:"yh",target:"pg"}},
trackingParams:"xf"}},iconImage:{thumbnail:{thumbnails:[{url:"te",width:19,height:23}]},trackingParams:"lv"},bannerImage:{thumbnail:{thumbnails:[{url:"gj",width:38,height:67}]},trackingParams:"ow"},navigationEndpoint:{clickTrackingParams:"um",commandMetadata:{webCommandMetadata:{url:"fq",webPageType:"fd",rootVe:61}},urlEndpoint:{url:"gi",target:"tq"}},trackingParams:"ie",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"ng",size:"xv",isDisabled:53,icon:{iconType:"bq"},navigationEndpoint:{clickTrackingParams:"yl",
openPopupAction:{popup:{aboutThisAdRenderer:{url:(HKb.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",HKb),trackingParams:"hi"}},popupType:"sb"}},trackingParams:"ho",accessibilityData:{accessibilityData:{label:"kl"}}}},hoverText:{simpleText:"xd"},trackingParams:"dv"}},adVideoId:"je",impressionPings:[{baseUrl:"xj"}],adLayoutLoggingData:{serializedAdServingDataEntry:"dt"},associatedCompositePlayerBytesLayoutId:"te"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"vs"}}}],adSlots:[{adSlotRenderer:{adSlotMetadata:{slotId:"1234",
slotType:"SLOT_TYPE_PLAYER_BYTES",adSlotLoggingData:{serializedSlotAdServingDataEntry:"ob"},triggerEvent:"SLOT_TRIGGER_EVENT_BEFORE_CONTENT"},fulfillmentContent:{fulfilledLayout:{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"ot",layoutType:"xg",adLayoutLoggingData:{serializedAdServingDataEntry:"yk"}},renderingContent:{playerBytesSequentialLayoutRenderer:{sequentialLayouts:[{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"je",layoutType:"ww",adLayoutLoggingData:{serializedAdServingDataEntry:"ve"}},
renderingContent:{instreamVideoAdRenderer:{skipOffsetMilliseconds:94,pings:{impressionPings:[{baseUrl:"pl"},{baseUrl:"zs"}],errorPings:[{baseUrl:"hh"}],mutePings:[{baseUrl:"qh"}],unmutePings:[{baseUrl:"ey"}],pausePings:[{baseUrl:"pz"}],rewindPings:[{baseUrl:"bh"}],resumePings:[{baseUrl:"mw"}],skipPings:[{baseUrl:"si"}],closePings:[{baseUrl:"oh"}],progressPings:[{baseUrl:"ly",offsetMilliseconds:1},{baseUrl:"ac",offsetMilliseconds:80},{baseUrl:"sy",offsetMilliseconds:72}],fullscreenPings:[{baseUrl:"kw"}],
activeViewViewablePings:[{baseUrl:"oz"}],endFullscreenPings:[{baseUrl:"uc"}],activeViewMeasurablePings:[{baseUrl:"vu"}],abandonPings:[{baseUrl:"sf"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"qg"}],completePings:[{baseUrl:"jv"}],activeViewTracking:{trafficType:"sq"}},clickthroughEndpoint:{clickTrackingParams:"fn",commandMetadata:{webCommandMetadata:{url:"tf",webPageType:"ox",rootVe:73}},urlEndpoint:{url:"ny",target:"uc"}},csiParameters:[{key:"qe",value:"em"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action",
elementId:"bq",trackingParams:"dr",legacyInfoCardVastExtension:"pa",sodarExtensionData:{siub:"mi",bgub:"hc",scs:"cw",bgp:"co"},externalVideoId:"ya",adLayoutLoggingData:{serializedAdServingDataEntry:"jj"},layoutId:"sc"}}}},{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"nr",layoutType:"kn",adLayoutLoggingData:{serializedAdServingDataEntry:"cf"}},renderingContent:{adActionInterstitialRenderer:{durationMilliseconds:52,trackingParams:"yq",abandonCommands:{commands:[{clickTrackingParams:"wi",
loggingUrls:[{baseUrl:"jb"}],pingingEndpoint:{hack:90}}]},skipPings:[{baseUrl:"av"}],layoutId:"nj"}}}},{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"nl",layoutType:"wm",adLayoutLoggingData:{serializedAdServingDataEntry:"zw"}},renderingContent:{instreamVideoAdRenderer:{skipOffsetMilliseconds:80,pings:{impressionPings:[{baseUrl:"ji"},{baseUrl:"ao"},{baseUrl:"cc"}],errorPings:[{baseUrl:"jt"}],mutePings:[{baseUrl:"mn"},{baseUrl:"ce"}],unmutePings:[{baseUrl:"rd"},{baseUrl:"lb"}],pausePings:[{baseUrl:"et"},
{baseUrl:"fv"}],rewindPings:[{baseUrl:"ft"}],resumePings:[{baseUrl:"qj"},{baseUrl:"ot"}],skipPings:[{baseUrl:"ky"},{baseUrl:"jb"}],closePings:[{baseUrl:"hw"}],progressPings:[{baseUrl:"vh",offsetMilliseconds:36},{baseUrl:"um",offsetMilliseconds:77},{baseUrl:"sq",offsetMilliseconds:19},{baseUrl:"ui",offsetMilliseconds:15},{baseUrl:"nl",offsetMilliseconds:86}],fullscreenPings:[{baseUrl:"rp"},{baseUrl:"cn"}],activeViewViewablePings:[{baseUrl:"ml"},{baseUrl:"kq"}],endFullscreenPings:[{baseUrl:"ym"}],activeViewMeasurablePings:[{baseUrl:"di"},
{baseUrl:"ol"}],abandonPings:[{baseUrl:"aj"},{baseUrl:"wo"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"ms"},{baseUrl:"uj"}],startPings:[{baseUrl:"gy"}],firstQuartilePings:[{baseUrl:"ly"}],secondQuartilePings:[{baseUrl:"sw"}],thirdQuartilePings:[{baseUrl:"gt"}],completePings:[{baseUrl:"hu"},{baseUrl:"gs"}],activeViewTracking:{trafficType:"mr"}},clickthroughEndpoint:{clickTrackingParams:"yq",commandMetadata:{webCommandMetadata:{url:"dn",webPageType:"ms",rootVe:54}},urlEndpoint:{url:"hs",
target:"jt"}},csiParameters:[{key:"zn",value:"eq"}],playerVars:"bi",elementId:"gr",trackingParams:"qc",legacyInfoCardVastExtension:"xv",sodarExtensionData:{siub:"ul",bgub:"yr",scs:"ui",bgp:"vy"},externalVideoId:"fp",adLayoutLoggingData:{serializedAdServingDataEntry:"gt"},layoutId:"bh"}}}},{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"xy",layoutType:"bf",adLayoutLoggingData:{serializedAdServingDataEntry:"rj"}},renderingContent:{adActionInterstitialRenderer:{durationMilliseconds:95,trackingParams:"ee",
abandonCommands:{commands:[{clickTrackingParams:"mi",loggingUrls:[{baseUrl:"yi"},{baseUrl:"tm"}],pingingEndpoint:{hack:47}}]},skipPings:[{baseUrl:"uk"},{baseUrl:"yj"}],layoutId:"ft"}}}}]}},layoutExitNormalTriggers:[{id:"hq",onLayoutSelfExitRequestedTrigger:{triggeringLayoutId:"hv"}}],layoutExitSkipTriggers:[{id:"up",skipRequestedTrigger:{triggeringLayoutId:"nm"}},{id:"yl",skipRequestedTrigger:{triggeringLayoutId:"gh"}},{id:"zd",skipRequestedTrigger:{triggeringLayoutId:"mo"}},{id:"bc",skipRequestedTrigger:{triggeringLayoutId:"jj"}}],
layoutExitMuteTriggers:[{id:"ql",skipRequestedTrigger:{triggeringLayoutId:"hr"}},{id:"rc",skipRequestedTrigger:{triggeringLayoutId:"ln"}}]}}},slotEntryTrigger:{id:"lc",beforeContentVideoIdStartedTrigger:{}},slotFulfillmentTriggers:[{id:"xq",slotIdEnteredTrigger:{triggeringSlotId:"da"}}],slotExpirationTriggers:[{id:"vv",slotIdExitedTrigger:{triggeringSlotId:"re"}},{id:"jg",onNewPlaybackAfterContentVideoIdTrigger:{}}]}}],adBreakHeartbeatParams:"mw",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:"pz",
type:"az",payload:{offlineabilityEntity:{key:"ql",command:{innertubeCommand:{clickTrackingParams:"nz",ypcGetOfflineUpsellEndpoint:{params:"pw"}}},addToOfflineButtonState:"os",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:"xp",visibility:{types:"1"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:"19",nanos:12}}}};var QHa=[{jsonRepresentation:'{"adPlacements":true,"playerAds":true,"playerResponse":{"adPlacements":true,"playerAds":true,"playerConfig": {"audioConfig": {}, "streamSelectionConfig": {}, "webPlayerConfig": {"webPlayerActionsPorting": {}}}},"playerConfig": {"audioConfig": {}, "streamSelectionConfig": {}, "webPlayerConfig": {"webPlayerActionsPorting": {}}}}',objectRepresentation:{adPlacements:!0,playerAds:!0,playerResponse:{adPlacements:!0,playerAds:!0,playerConfig:{audioConfig:{},streamSelectionConfig:{},
webPlayerConfig:{webPlayerActionsPorting:{}}}},playerConfig:{audioConfig:{},streamSelectionConfig:{},webPlayerConfig:{webPlayerActionsPorting:{}}}}},{jsonRepresentation:'[{"adPlacements":true,"playerAds":true,"playerResponse":{"adPlacements":true,"playerAds":true}}]',objectRepresentation:[{adPlacements:!0,playerAds:!0,playerResponse:{adPlacements:!0,playerAds:!0}}]},{jsonRepresentation:'{"responseContext":{"serviceTrackingParams":[{"service":"GFEEDBACK","params":[{"key":"kc","value":"66"},{"key":"cw","value":"st"},{"key":"zb","value":"xz"},{"key":"zl","value":"16"},{"key":"pf","value":"sy"}]},{"service":"bh","params":[{"key":"ip","value":"54"},{"key":"tb","value":"dv"},{"key":"pi","value":"pn"},{"key":"fg","value":"35"},{"key":"wm","value":"vo"}]},{"service":"fp","params":[{"key":"hw","value":"91"}]},{"service":"rk","params":[{"key":"pe","value":"sf"},{"key":"rv","value":"jn"},{"key":"aw","value":"pw"}]}],"maxAgeSeconds":87,"mainAppWebResponseContext":{"loggedOut":43,"trackingParam":"dd","datasyncId":"xp"},"webResponseContextExtensionData":{"hasDecorated":75}},"playabilityStatus":{"status":"by","playableInEmbed":2,"miniplayer":{"miniplayerRenderer":{"playbackMode":"tj"}},"offlineability":{"buttonRenderer":{"serviceEndpoint":{"clickTrackingParams":"pz","ypcGetOfflineUpsellEndpoint":{"params":"xm"}},"trackingParams":"pq"}},"contextParams":"lu"},"streamingData":{"expiresInSeconds":"53","formats":[{"itag":80,"url":"https://rr3---sn-n4v7sns7.googlevideo.com/videoplayback?expire=1697267654&source=youtube&requiressl=yes","mimeType":"video/webm; codecs=\\"vp9\\"","bitrate":88,"width":96,"height":65,"lastModified":"1665263132187531","contentLength":"17","quality":"rc","fps":8,"qualityLabel":"ab","projectionType":"by","averageBitrate":50,"audioQuality":"th","approxDurationMs":"86","audioSampleRate":"88","audioChannels":34},{"itag":95,"url":"hs","mimeType":"nm","bitrate":56,"width":13,"height":14,"lastModified":"10","quality":"fu","fps":54,"qualityLabel":"yj","projectionType":"wu","audioQuality":"tu","approxDurationMs":"51","audioSampleRate":"87","audioChannels":44}],"adaptiveFormats":[{"itag":50,"url":"fu","mimeType":"uz","bitrate":80,"width":80,"height":85,"initRange":{"start":"16","end":"71"},"indexRange":{"start":"1","end":"26"},"lastModified":"70","contentLength":"66","quality":"cx","fps":61,"qualityLabel":"xt","projectionType":"pe","averageBitrate":68,"approxDurationMs":"1"},{"itag":77,"url":"rj","mimeType":"lh","bitrate":16,"width":17,"height":47,"initRange":{"start":"51","end":"44"},"indexRange":{"start":"87","end":"61"},"lastModified":"13","contentLength":"21","quality":"ie","fps":23,"qualityLabel":"ig","projectionType":"bl","averageBitrate":16,"colorInfo":{"primaries":"et","transferCharacteristics":"zu","matrixCoefficients":"od"},"approxDurationMs":"59"},{"itag":7,"url":"fc","mimeType":"gr","bitrate":71,"width":11,"height":3,"initRange":{"start":"100","end":"7"},"indexRange":{"start":"36","end":"98"},"lastModified":"88","contentLength":"77","quality":"rb","fps":46,"qualityLabel":"gq","projectionType":"ld","averageBitrate":99,"colorInfo":{"primaries":"xd","transferCharacteristics":"uu","matrixCoefficients":"zc"},"approxDurationMs":"44"},{"itag":10,"url":"kl","mimeType":"wb","bitrate":51,"width":69,"height":3,"initRange":{"start":"92","end":"79"},"indexRange":{"start":"42","end":"72"},"lastModified":"99","contentLength":"6","quality":"ee","fps":40,"qualityLabel":"em","projectionType":"wz","averageBitrate":48,"approxDurationMs":"86"},{"itag":44,"url":"hp","mimeType":"kq","bitrate":84,"width":53,"height":22,"initRange":{"start":"48","end":"51"},"indexRange":{"start":"54","end":"44"},"lastModified":"25","contentLength":"47","quality":"xy","fps":11,"qualityLabel":"zl","projectionType":"za","averageBitrate":95,"colorInfo":{"primaries":"ot","transferCharacteristics":"av","matrixCoefficients":"ow"},"approxDurationMs":"85"},{"itag":20,"url":"di","mimeType":"nc","bitrate":15,"width":19,"height":92,"initRange":{"start":"82","end":"58"},"indexRange":{"start":"80","end":"37"},"lastModified":"46","contentLength":"40","quality":"wo","fps":44,"qualityLabel":"pt","projectionType":"bg","averageBitrate":3,"colorInfo":{"primaries":"wq","transferCharacteristics":"is","matrixCoefficients":"ou"},"approxDurationMs":"47"},{"itag":44,"url":"oe","mimeType":"mh","bitrate":37,"width":43,"height":24,"initRange":{"start":"29","end":"91"},"indexRange":{"start":"97","end":"97"},"lastModified":"52","contentLength":"43","quality":"cr","fps":44,"qualityLabel":"hc","projectionType":"cr","averageBitrate":12,"approxDurationMs":"97"},{"itag":32,"url":"gq","mimeType":"sh","bitrate":42,"width":32,"height":13,"initRange":{"start":"71","end":"87"},"indexRange":{"start":"70","end":"4"},"lastModified":"67","contentLength":"16","quality":"sb","fps":66,"qualityLabel":"mv","projectionType":"kk","averageBitrate":51,"colorInfo":{"primaries":"pk","transferCharacteristics":"ea","matrixCoefficients":"cq"},"approxDurationMs":"70"},{"itag":71,"url":"zt","mimeType":"bl","bitrate":12,"width":68,"height":12,"initRange":{"start":"63","end":"2"},"indexRange":{"start":"28","end":"68"},"lastModified":"33","contentLength":"0","quality":"dh","fps":6,"qualityLabel":"jv","projectionType":"sy","averageBitrate":75,"colorInfo":{"primaries":"us","transferCharacteristics":"ka","matrixCoefficients":"xw"},"approxDurationMs":"16"},{"itag":98,"url":"vl","mimeType":"lg","bitrate":88,"width":23,"height":83,"initRange":{"start":"49","end":"34"},"indexRange":{"start":"43","end":"90"},"lastModified":"84","contentLength":"77","quality":"xu","fps":50,"qualityLabel":"jz","projectionType":"om","averageBitrate":16,"highReplication":95,"approxDurationMs":"46"},{"itag":85,"url":"ri","mimeType":"dh","bitrate":77,"width":86,"height":54,"initRange":{"start":"40","end":"98"},"indexRange":{"start":"15","end":"85"},"lastModified":"25","contentLength":"53","quality":"rq","fps":62,"qualityLabel":"nx","projectionType":"wg","averageBitrate":35,"colorInfo":{"primaries":"oa","transferCharacteristics":"kb","matrixCoefficients":"kk"},"approxDurationMs":"26"},{"itag":10,"url":"zz","mimeType":"lq","bitrate":55,"width":89,"height":43,"initRange":{"start":"94","end":"98"},"indexRange":{"start":"73","end":"51"},"lastModified":"3","contentLength":"36","quality":"yo","fps":5,"qualityLabel":"we","projectionType":"ve","averageBitrate":83,"colorInfo":{"primaries":"yu","transferCharacteristics":"fu","matrixCoefficients":"ox"},"approxDurationMs":"11"},{"itag":62,"url":"hv","mimeType":"th","bitrate":76,"width":28,"height":79,"initRange":{"start":"97","end":"100"},"indexRange":{"start":"58","end":"63"},"lastModified":"53","contentLength":"22","quality":"ou","fps":7,"qualityLabel":"cm","projectionType":"xv","averageBitrate":35,"approxDurationMs":"98"},{"itag":91,"url":"vr","mimeType":"wo","bitrate":41,"width":4,"height":79,"initRange":{"start":"80","end":"83"},"indexRange":{"start":"14","end":"58"},"lastModified":"50","contentLength":"38","quality":"ic","fps":64,"qualityLabel":"sq","projectionType":"du","averageBitrate":61,"colorInfo":{"primaries":"ok","transferCharacteristics":"ud","matrixCoefficients":"ob"},"approxDurationMs":"73"},{"itag":48,"url":"lq","mimeType":"zl","bitrate":4,"width":16,"height":65,"initRange":{"start":"93","end":"50"},"indexRange":{"start":"52","end":"44"},"lastModified":"74","contentLength":"86","quality":"mi","fps":43,"qualityLabel":"rz","projectionType":"ji","averageBitrate":61,"colorInfo":{"primaries":"qo","transferCharacteristics":"fk","matrixCoefficients":"jy"},"approxDurationMs":"70"},{"itag":34,"url":"cr","mimeType":"la","bitrate":53,"width":29,"height":97,"initRange":{"start":"89","end":"45"},"indexRange":{"start":"93","end":"45"},"lastModified":"52","contentLength":"74","quality":"xn","fps":60,"qualityLabel":"xs","projectionType":"lf","averageBitrate":1,"approxDurationMs":"18"},{"itag":67,"url":"mr","mimeType":"cs","bitrate":79,"width":9,"height":85,"initRange":{"start":"56","end":"96"},"indexRange":{"start":"71","end":"84"},"lastModified":"78","contentLength":"80","quality":"ld","fps":2,"qualityLabel":"no","projectionType":"uq","averageBitrate":35,"colorInfo":{"primaries":"mj","transferCharacteristics":"ry","matrixCoefficients":"cc"},"approxDurationMs":"43"},{"itag":57,"url":"fi","mimeType":"to","bitrate":80,"width":81,"height":29,"initRange":{"start":"6","end":"96"},"indexRange":{"start":"73","end":"48"},"lastModified":"32","contentLength":"11","quality":"ck","fps":82,"qualityLabel":"fo","projectionType":"px","averageBitrate":95,"colorInfo":{"primaries":"az","transferCharacteristics":"mq","matrixCoefficients":"oc"},"approxDurationMs":"44"},{"itag":52,"url":"ea","mimeType":"xm","bitrate":18,"initRange":{"start":"15","end":"16"},"indexRange":{"start":"4","end":"33"},"lastModified":"65","contentLength":"67","quality":"es","projectionType":"mp","averageBitrate":52,"highReplication":82,"audioQuality":"za","approxDurationMs":"24","audioSampleRate":"1","audioChannels":92,"loudnessDb":0.9787435365879406},{"itag":37,"url":"kk","mimeType":"xg","bitrate":78,"initRange":{"start":"38","end":"94"},"indexRange":{"start":"27","end":"17"},"lastModified":"61","contentLength":"2","quality":"nh","projectionType":"ar","averageBitrate":69,"audioQuality":"la","approxDurationMs":"95","audioSampleRate":"66","audioChannels":50,"loudnessDb":0.6461265012758731},{"itag":45,"url":"oc","mimeType":"nm","bitrate":12,"initRange":{"start":"21","end":"45"},"indexRange":{"start":"21","end":"13"},"lastModified":"45","contentLength":"85","quality":"vs","projectionType":"xp","averageBitrate":32,"audioQuality":"tv","approxDurationMs":"1","audioSampleRate":"99","audioChannels":42,"loudnessDb":0.39295968942278037},{"itag":37,"url":"zf","mimeType":"be","bitrate":29,"initRange":{"start":"27","end":"87"},"indexRange":{"start":"81","end":"20"},"lastModified":"6","contentLength":"33","quality":"pe","projectionType":"pb","averageBitrate":100,"audioQuality":"zi","approxDurationMs":"70","audioSampleRate":"32","audioChannels":68,"loudnessDb":0.2781731101164002}]},"playerAds":[{"playerLegacyDesktopWatchAdsRenderer":{"playerAdParams":{"showContentThumbnail":true,"enabledEngageTypes":"3,6,4,5"},"gutParams":{"tag":"\\\\4061\\\\ytpwmpu"},"showCompanion":true,"showInstream":true,"useGut":true}}],"playbackTracking":{"videostatsPlaybackUrl":{"baseUrl":"bj"},"videostatsDelayplayUrl":{"baseUrl":"vx"},"videostatsWatchtimeUrl":{"baseUrl":"px"},"ptrackingUrl":{"baseUrl":"tg"},"qoeUrl":{"baseUrl":"wx"},"atrUrl":{"baseUrl":"xz","elapsedMediaTimeSeconds":45},"videostatsScheduledFlushWalltimeSeconds":[99,32,39],"videostatsDefaultFlushIntervalSeconds":3,"youtubeRemarketingUrl":{"baseUrl":"mb","elapsedMediaTimeSeconds":63},"googleRemarketingUrl":{"baseUrl":"yn","elapsedMediaTimeSeconds":83}},"captions":{"playerCaptionsTracklistRenderer":{"captionTracks":[{"baseUrl":"ew","name":{"simpleText":"ez"},"vssId":"fj","languageCode":"wd","kind":"ez","isTranslatable":21}],"audioTracks":[{"captionTrackIndices":[87]}],"translationLanguages":[{"languageCode":"xu","languageName":{"simpleText":"fw"}},{"languageCode":"zl","languageName":{"simpleText":"xc"}},{"languageCode":"jr","languageName":{"simpleText":"md"}},{"languageCode":"sc","languageName":{"simpleText":"wf"}},{"languageCode":"nj","languageName":{"simpleText":"xn"}},{"languageCode":"of","languageName":{"simpleText":"av"}},{"languageCode":"tv","languageName":{"simpleText":"ok"}},{"languageCode":"nu","languageName":{"simpleText":"ry"}},{"languageCode":"zy","languageName":{"simpleText":"nb"}},{"languageCode":"pt","languageName":{"simpleText":"eq"}},{"languageCode":"vr","languageName":{"simpleText":"cc"}},{"languageCode":"wh","languageName":{"simpleText":"hd"}},{"languageCode":"hp","languageName":{"simpleText":"ds"}},{"languageCode":"ka","languageName":{"simpleText":"up"}},{"languageCode":"sw","languageName":{"simpleText":"zp"}},{"languageCode":"rh","languageName":{"simpleText":"eq"}},{"languageCode":"bq","languageName":{"simpleText":"at"}},{"languageCode":"hu","languageName":{"simpleText":"fg"}},{"languageCode":"ai","languageName":{"simpleText":"iy"}},{"languageCode":"rj","languageName":{"simpleText":"oz"}},{"languageCode":"sq","languageName":{"simpleText":"fe"}},{"languageCode":"tn","languageName":{"simpleText":"vk"}},{"languageCode":"jr","languageName":{"simpleText":"jg"}},{"languageCode":"vc","languageName":{"simpleText":"hv"}},{"languageCode":"yn","languageName":{"simpleText":"ky"}},{"languageCode":"pa","languageName":{"simpleText":"rw"}},{"languageCode":"lr","languageName":{"simpleText":"kv"}},{"languageCode":"ud","languageName":{"simpleText":"fn"}},{"languageCode":"hq","languageName":{"simpleText":"io"}},{"languageCode":"rp","languageName":{"simpleText":"qx"}},{"languageCode":"xf","languageName":{"simpleText":"sm"}},{"languageCode":"fs","languageName":{"simpleText":"ty"}},{"languageCode":"so","languageName":{"simpleText":"xl"}},{"languageCode":"fk","languageName":{"simpleText":"ff"}},{"languageCode":"fw","languageName":{"simpleText":"wz"}},{"languageCode":"rn","languageName":{"simpleText":"zw"}},{"languageCode":"wq","languageName":{"simpleText":"yt"}},{"languageCode":"oh","languageName":{"simpleText":"oo"}},{"languageCode":"ts","languageName":{"simpleText":"jt"}},{"languageCode":"xy","languageName":{"simpleText":"ga"}},{"languageCode":"jy","languageName":{"simpleText":"sx"}},{"languageCode":"lw","languageName":{"simpleText":"cf"}},{"languageCode":"fc","languageName":{"simpleText":"qr"}},{"languageCode":"ji","languageName":{"simpleText":"cc"}},{"languageCode":"qs","languageName":{"simpleText":"pi"}},{"languageCode":"vx","languageName":{"simpleText":"hk"}},{"languageCode":"jt","languageName":{"simpleText":"eh"}},{"languageCode":"fb","languageName":{"simpleText":"iu"}},{"languageCode":"mf","languageName":{"simpleText":"st"}},{"languageCode":"en","languageName":{"simpleText":"vr"}},{"languageCode":"go","languageName":{"simpleText":"kp"}},{"languageCode":"sc","languageName":{"simpleText":"rk"}},{"languageCode":"bx","languageName":{"simpleText":"ci"}},{"languageCode":"pu","languageName":{"simpleText":"qj"}},{"languageCode":"fa","languageName":{"simpleText":"ht"}},{"languageCode":"bw","languageName":{"simpleText":"af"}},{"languageCode":"rr","languageName":{"simpleText":"jt"}},{"languageCode":"ef","languageName":{"simpleText":"yy"}},{"languageCode":"bn","languageName":{"simpleText":"wu"}},{"languageCode":"ov","languageName":{"simpleText":"ae"}},{"languageCode":"sm","languageName":{"simpleText":"hi"}},{"languageCode":"tq","languageName":{"simpleText":"ie"}},{"languageCode":"fn","languageName":{"simpleText":"et"}},{"languageCode":"jw","languageName":{"simpleText":"bu"}},{"languageCode":"iz","languageName":{"simpleText":"gc"}},{"languageCode":"bk","languageName":{"simpleText":"jh"}},{"languageCode":"vw","languageName":{"simpleText":"fq"}},{"languageCode":"xt","languageName":{"simpleText":"or"}},{"languageCode":"kq","languageName":{"simpleText":"ch"}},{"languageCode":"pa","languageName":{"simpleText":"cs"}},{"languageCode":"ef","languageName":{"simpleText":"eq"}},{"languageCode":"mk","languageName":{"simpleText":"ig"}},{"languageCode":"me","languageName":{"simpleText":"pv"}},{"languageCode":"ll","languageName":{"simpleText":"nz"}},{"languageCode":"yd","languageName":{"simpleText":"pu"}},{"languageCode":"dj","languageName":{"simpleText":"vx"}},{"languageCode":"xc","languageName":{"simpleText":"ca"}},{"languageCode":"wb","languageName":{"simpleText":"il"}},{"languageCode":"ww","languageName":{"simpleText":"jf"}},{"languageCode":"xi","languageName":{"simpleText":"ba"}},{"languageCode":"ae","languageName":{"simpleText":"hx"}},{"languageCode":"uj","languageName":{"simpleText":"xu"}},{"languageCode":"hq","languageName":{"simpleText":"gp"}},{"languageCode":"we","languageName":{"simpleText":"pk"}},{"languageCode":"kt","languageName":{"simpleText":"ek"}},{"languageCode":"hy","languageName":{"simpleText":"ab"}},{"languageCode":"hm","languageName":{"simpleText":"nu"}},{"languageCode":"uw","languageName":{"simpleText":"rx"}},{"languageCode":"or","languageName":{"simpleText":"nf"}},{"languageCode":"dh","languageName":{"simpleText":"zn"}},{"languageCode":"kb","languageName":{"simpleText":"js"}},{"languageCode":"vg","languageName":{"simpleText":"xe"}},{"languageCode":"dl","languageName":{"simpleText":"so"}},{"languageCode":"lz","languageName":{"simpleText":"hb"}},{"languageCode":"ny","languageName":{"simpleText":"xr"}},{"languageCode":"ag","languageName":{"simpleText":"us"}},{"languageCode":"zr","languageName":{"simpleText":"ae"}},{"languageCode":"yq","languageName":{"simpleText":"yc"}},{"languageCode":"up","languageName":{"simpleText":"dc"}},{"languageCode":"zn","languageName":{"simpleText":"jw"}},{"languageCode":"uh","languageName":{"simpleText":"ms"}},{"languageCode":"mt","languageName":{"simpleText":"vf"}},{"languageCode":"lt","languageName":{"simpleText":"ln"}},{"languageCode":"vf","languageName":{"simpleText":"rd"}},{"languageCode":"my","languageName":{"simpleText":"rk"}},{"languageCode":"ei","languageName":{"simpleText":"ul"}},{"languageCode":"dj","languageName":{"simpleText":"cz"}},{"languageCode":"kb","languageName":{"simpleText":"hp"}},{"languageCode":"jj","languageName":{"simpleText":"zf"}},{"languageCode":"ew","languageName":{"simpleText":"ff"}},{"languageCode":"jo","languageName":{"simpleText":"iz"}},{"languageCode":"ja","languageName":{"simpleText":"uz"}},{"languageCode":"yd","languageName":{"simpleText":"or"}},{"languageCode":"tl","languageName":{"simpleText":"tw"}},{"languageCode":"mw","languageName":{"simpleText":"th"}},{"languageCode":"pq","languageName":{"simpleText":"zp"}},{"languageCode":"pq","languageName":{"simpleText":"pk"}},{"languageCode":"ef","languageName":{"simpleText":"fj"}},{"languageCode":"qq","languageName":{"simpleText":"vu"}},{"languageCode":"pj","languageName":{"simpleText":"kp"}},{"languageCode":"ab","languageName":{"simpleText":"xw"}},{"languageCode":"re","languageName":{"simpleText":"ln"}},{"languageCode":"ht","languageName":{"simpleText":"wo"}},{"languageCode":"ju","languageName":{"simpleText":"wb"}},{"languageCode":"yq","languageName":{"simpleText":"xv"}}],"defaultAudioTrackIndex":70}},"videoDetails":{"videoId":"ux","title":"jb","lengthSeconds":"90","keywords":["th","ts","yg","gy","ih","iq","zj"],"channelId":"pg","isOwnerViewing":6,"shortDescription":"ts","isCrawlable":62,"thumbnail":{"thumbnails":[{"url":"vx","width":8,"height":58},{"url":"bp","width":44,"height":79},{"url":"oh","width":47,"height":66},{"url":"hm","width":34,"height":55},{"url":"vr","width":0,"height":20}]},"allowRatings":24,"viewCount":"49","author":"xr","isPrivate":70,"isUnpluggedCorpus":66,"isLiveContent":99},"annotations":[{"playerAnnotationsExpandedRenderer":{"featuredChannel":{"startTimeMs":"96","endTimeMs":"46","watermark":{"thumbnails":[{"url":"li","width":91,"height":28}]},"trackingParams":"an","navigationEndpoint":{"clickTrackingParams":"mg","commandMetadata":{"webCommandMetadata":{"url":"rd","webPageType":"nc","rootVe":69,"apiUrl":"/youtubei/v1/browse"}},"browseEndpoint":{"browseId":"qg"}},"channelName":"ei","subscribeButton":{"subscribeButtonRenderer":{"buttonText":{"runs":[{"text":"pz"}]},"subscribed":44,"enabled":33,"type":"ue","channelId":"ki","showPreferences":71,"subscribedButtonText":{"runs":[{"text":"lk"}]},"unsubscribedButtonText":{"runs":[{"text":"jn"}]},"trackingParams":"oj","unsubscribeButtonText":{"runs":[{"text":"ad"}]},"serviceEndpoints":[{"clickTrackingParams":"wm","commandMetadata":{"webCommandMetadata":{"sendPost":4,"apiUrl":"ky"}},"subscribeEndpoint":{"channelIds":["zt"],"params":"at"}},{"clickTrackingParams":"jg","commandMetadata":{"webCommandMetadata":{"sendPost":28}},"signalServiceEndpoint":{"signal":"ok","actions":[{"clickTrackingParams":"lt","openPopupAction":{"popup":{"confirmDialogRenderer":{"trackingParams":"po","dialogMessages":[{"runs":[{"text":"ou"},{"text":"jt"},{"text":"zz"}]}],"confirmButton":{"buttonRenderer":{"style":"mm","size":"oi","isDisabled":43,"text":{"runs":[{"text":"kc"}]},"serviceEndpoint":{"clickTrackingParams":"gk","commandMetadata":{"webCommandMetadata":{"sendPost":18,"apiUrl":"kc"}},"unsubscribeEndpoint":{"channelIds":["cm"],"params":"ar"}},"accessibility":{"label":"iy"},"trackingParams":"gs"}},"cancelButton":{"buttonRenderer":{"style":"jb","size":"pe","isDisabled":69,"text":{"runs":[{"text":"uv"}]},"accessibility":{"label":"qu"},"trackingParams":"pe"}},"primaryIsCancel":48}},"popupType":"ma"}}]}}],"subscribeAccessibility":{"accessibilityData":{"label":"vh"}},"unsubscribeAccessibility":{"accessibilityData":{"label":"lg"}},"signInEndpoint":{"clickTrackingParams":"eu","commandMetadata":{"webCommandMetadata":{"url":"na"}}}}}},"allowSwipeDismiss":55,"annotationId":"jd"}}],"playerConfig":{"audioConfig":{"loudnessDb":0.9620880668073215,"perceptualLoudnessDb":0.541474004793957,"enablePerFormatLoudness":31},"streamSelectionConfig":{"maxBitrate":"61"},"mediaCommonConfig":{"dynamicReadaheadConfig":{"maxReadAheadMediaTimeMs":100,"minReadAheadMediaTimeMs":21,"readAheadGrowthRateMs":29}},"webPlayerConfig":{"useCobaltTvosDash":55,"webPlayerActionsPorting":{"getSharePanelCommand":{"clickTrackingParams":"of","commandMetadata":{"webCommandMetadata":{"sendPost":31,"apiUrl":"xl"}},"webPlayerShareEntityServiceEndpoint":{"serializedShareEntity":"tr"}},"subscribeCommand":{"clickTrackingParams":"fs","commandMetadata":{"webCommandMetadata":{"sendPost":13,"apiUrl":"xp"}},"subscribeEndpoint":{"channelIds":["qs"],"params":"oa"}},"unsubscribeCommand":{"clickTrackingParams":"ls","commandMetadata":{"webCommandMetadata":{"sendPost":91,"apiUrl":"wc"}},"unsubscribeEndpoint":{"channelIds":["fo"],"params":"vt"}},"addToWatchLaterCommand":{"clickTrackingParams":"ua","commandMetadata":{"webCommandMetadata":{"sendPost":18,"apiUrl":"iu"}},"playlistEditEndpoint":{"playlistId":"rv","actions":[{"addedVideoId":"iw","action":"rd"}]}},"removeFromWatchLaterCommand":{"clickTrackingParams":"un","commandMetadata":{"webCommandMetadata":{"sendPost":20,"apiUrl":"bl"}},"playlistEditEndpoint":{"playlistId":"zg","actions":[{"action":"ya","removedVideoId":"dk"}]}}},"gatewayExperimentGroup":"vb"}},"storyboards":{"playerStoryboardSpecRenderer":{"spec":"aj","recommendedLevel":87}},"microformat":{"playerMicroformatRenderer":{"thumbnail":{"thumbnails":[{"url":"mm","width":57,"height":94}]},"embed":{"iframeUrl":"bd","width":51,"height":73},"title":{"simpleText":"sg"},"description":{"simpleText":"yv"},"lengthSeconds":"18","ownerProfileUrl":"bg","externalChannelId":"eg","isFamilySafe":88,"availableCountries":["hn","sd","lt","tx","nw","mq","iz","aj","vi","xa","ec","iv","rj","vb","ro","po","mv","mx","cn","ld","tn","ay","gv","bs","vf","da","ss","km","uo","mg","wv","md","lo","nc","vh","li","jh","lj","qq","ci","ob","zy","pu","bl","jm","ge","tt","ov","ue","vp","ka","nh","uc","gb","rs","gu","hm","uv","nq","ga","qu","hr","pj","zq","rh","nn","yv","or","zg","ai","qj","cv","vg","hr","zm","al","mj","fz","yx","st","tt","ih","vm","wq","gx","wi","ys","ug","vb","uh","rf","ry","ba","xu","ce","eq","bx","he","jm","ie","nb","cd","qz","no","yq","qe","jy","wd","pm","nb","hk","em","im","iv","ld","gz","fe","ut","md","gw","sf","yz","yp","xr","gm","uo","kg","yo","wv","da","wt","ry","it","gz","mm","ho","mf","lq","tu","im","lu","gm","pa","ny","gu","ds","yx","yh","jk","qb","jv","mp","bi","nr","mc","bg","ym","zt","sh","kd","gj","dp","qw","eh","no","pj","nq","dy","gt","cm","pg","ce","jt","xv","tf","ue","ke","hs","xh","tc","ad","yg","uh","cd","zc","rj","kq","sp","vv","xt","bo","am","kg","kx","xb","fr","il","qi","ap","pe","tg","im","cs","vy","zu","cq","bu","og","tf","ze","zj","um","vd","ot","al","zl","um","jv","ss","md","xm","nv","id","es","jf","as","zb","ms","uv","jh","xz","em","uv","bk","zx","wp","ay","ub","pa","rf","yi","zm","em","pu","xs"],"isUnlisted":24,"hasYpcMetadata":38,"viewCount":"6","category":"qh","publishDate":"eb","ownerChannelName":"mf","uploadDate":"ax"}},"cards":{"cardCollectionRenderer":{"cards":[{"cardRenderer":{"teaser":{"simpleCardTeaserRenderer":{"message":{"simpleText":"ha"},"trackingParams":"ra","prominent":9,"logVisibilityUpdates":88,"onTapCommand":{"clickTrackingParams":"dy","changeEngagementPanelVisibilityAction":{"targetId":"qc","visibility":"mh"}}}},"cueRanges":[{"startCardActiveMs":"41","endCardActiveMs":"81","teaserDurationMs":"31","iconAfterTeaserMs":"65"}],"trackingParams":"sn"}}],"headerText":{"simpleText":"mi"},"icon":{"infoCardIconRenderer":{"trackingParams":"tq"}},"closeButton":{"infoCardIconRenderer":{"trackingParams":"nz"}},"trackingParams":"ss","allowTeaserDismiss":55,"logIconVisibilityUpdates":49}},"trackingParams":"lt","attestation":{"playerAttestationRenderer":{"challenge":"rg","botguardData":{"program":"vk","interpreterSafeUrl":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"ap"},"serverEnvironment":83}}},"videoQualityPromoSupportedRenderers":{"videoQualityPromoRenderer":{"triggerCriteria":{"connectionWhitelist":["vs"],"joinLatencySeconds":85,"rebufferTimeSeconds":89,"watchTimeWindowSeconds":21,"refractorySeconds":41},"text":{"runs":[{"text":"it"},{"text":"qt","bold":60}]},"endpoint":{"clickTrackingParams":"lw","commandMetadata":{"webCommandMetadata":{"url":"ih","webPageType":"xa","rootVe":73}},"urlEndpoint":{"url":"ms","target":"tj"}},"trackingParams":"vd","snackbar":{"notificationActionRenderer":{"responseText":{"runs":[{"text":"pp"}]},"actionButton":{"buttonRenderer":{"text":{"runs":[{"text":"yw"}]},"navigationEndpoint":{"clickTrackingParams":"sq","commandMetadata":{"webCommandMetadata":{"url":"wp","webPageType":"zn","rootVe":21}},"urlEndpoint":{"url":"ju","target":"dy"}},"trackingParams":"zj"}},"trackingParams":"nh"}}}},"messages":[{"mealbarPromoRenderer":{"icon":{"thumbnails":[{"url":"ek","width":71,"height":69}]},"messageTexts":[{"runs":[{"text":"ew"}]}],"actionButton":{"buttonRenderer":{"style":"gz","size":"tz","text":{"runs":[{"text":"ga"}]},"trackingParams":"qr","command":{"clickTrackingParams":"wk","commandExecutorCommand":{"commands":[{"clickTrackingParams":"dw","commandMetadata":{"webCommandMetadata":{"url":"po","webPageType":"fl","rootVe":70,"apiUrl":"ot"}},"browseEndpoint":{"browseId":"pl","params":"zo"}},{"commandMetadata":{"webCommandMetadata":{"sendPost":10,"apiUrl":"rv"}},"feedbackEndpoint":{"feedbackToken":"xi","uiActions":{"hideEnclosingContainer":25}}}]}}}},"dismissButton":{"buttonRenderer":{"style":"ol","size":"og","text":{"runs":[{"text":"yv"}]},"trackingParams":"ch","command":{"clickTrackingParams":"uu","commandExecutorCommand":{"commands":[{"clickTrackingParams":"ig","commandMetadata":{"webCommandMetadata":{"sendPost":71,"apiUrl":"en"}},"feedbackEndpoint":{"feedbackToken":"wh","uiActions":{"hideEnclosingContainer":45}}}]}}}},"triggerCondition":"pb","style":"uq","trackingParams":"rp","impressionEndpoints":[{"clickTrackingParams":"xb","commandMetadata":{"webCommandMetadata":{"sendPost":73,"apiUrl":"wl"}},"feedbackEndpoint":{"feedbackToken":"wf","uiActions":{"hideEnclosingContainer":95}}}],"isVisible":17,"messageTitle":{"runs":[{"text":"ir"}]},"enableSharedFeatureForImpressionHandling":21}}],"adPlacements":[{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"7","offsetEndMilliseconds":"39"},"hideCueRangeMarker":true}},"renderer":{"linearAdSequenceRenderer":{"linearAds":[{"instreamVideoAdRenderer":{"playerOverlay":{"instreamAdPlayerOverlayRenderer":{"skipOrPreviewRenderer":{"skipAdRenderer":{"preskipRenderer":{"adPreviewRenderer":{"thumbnail":{"thumbnail":{"thumbnails":[{"url":"https://i.ytimg.com/vi/AERLXaPKn_U/mqdefault.jpg","width":46,"height":25}]},"trackingParams":"ye"},"trackingParams":"dq","templatedCountdown":{"templatedAdText":{"text":"ps","isTemplated":82,"trackingParams":"cc"}},"durationMilliseconds":44}},"skippableRenderer":{"skipButtonRenderer":{"message":{"text":"xz","isTemplated":30,"trackingParams":"um"},"trackingParams":"ge"}},"trackingParams":"zg","skipOffsetMilliseconds":88}},"trackingParams":"qd","visitAdvertiserRenderer":{"buttonRenderer":{"style":"fv","text":{"simpleText":"on"},"icon":{"iconType":"vw"},"navigationEndpoint":{"clickTrackingParams":"mk","commandMetadata":{"webCommandMetadata":{"url":"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C3OQpfbUyZYWKL_Ken8RMFbClwAyRha6dc6fw7oP7EbaQHxABIABgyfb4hsijoBmCARdjYS1wdWItNjIxOTgxMTc0NzA0OTM3MYgBAaAB59zF2gOoAwSqBLMDT9ATfUTpaHDVXptzXB0Bqtu5dBV_jsP-c6MPkZYSL8_SrzCV3_f4sBsAHAi3Utb4zaJFaF_HvQdtBwss4wAA_skHdbFnpl5-EMNyyzlRw-Cndshj8CGQYwd1ZXhxlU46cvUuzxBe4SvQuo5EZgRv_zIYfKVpOj81ol3soC-FTzrjxhngpg6E1SEy8MZ8S5ykzm_m-YEKix3QCVLlSpEedBunRo295OkIwlFwaIQk8cLxsmnYhxdD_0zLFeTvwe5Q5tNO9mqkUZ7rAyzCTey_m5MZVo67-fDtV0elSQR79C9ErFiOQ5SaPsQgzk7zE3jxPNZYzV0zKOQ245eF3ZWxcGIrFA5NPIvvBwOl60ABjpEgQjQ4y2LpZnygmW_9ikThHx_iC4RujeV7iSAG5Fvv28wptAmCq7jMu5tWztpr-nl-Y0Iz7dA2FeeEOcd4ddn596NriGGT8AjZAXhtD7yJ8tRBEO3P48giFZj81WrpYHUvNhfx24PguTj-IBSpw2uQbemku11WDOxo7SI20n_fPtLcaEXB3YUajshnd5LoR4NlONEqC0f_uYwLaHt5X4Fw1hd8oAZUgAeBo7oliAcBkAcCqAf5sbECqAfnnbECqAfonbECqAfqt7ECqAentbMVqAfvtbECqAfwtbECqAeCqrECqAePOgHqNIbqAe2B6gHpJqxAqgHkZ-xAqgHsJuxAqgH36GxAqgHrrGxAqgHpqqxAqgH_bKxAqgHgcYbqAf8r7ECqAerxRuoB5zcG6gH5p2xAqgHyJ-xAqgHt6GxAqgH66WxAqgHyqmxApIIC242UFJubjBtcFpjqAgB0ggcCIAREAIYWjIDgoAEOgeP0ICAgIAESNmg0jVQFPIIH2NhLXl0LWhvc3QtcHViLTE4MDAxMjAxBZAyMzA2NTWaCRtodHRwczovL2xhdW5pdGVjLm5ldC9lY29tYTKxCS-fhg771OyRyAkYyAmPAcgJkAGYCwGhC8vk5LIcunUAugtXCAEQARgFIAEoATABQAFIAWAAaABwAogBAJgBAaIBLwoYIAPauAQSMhA6DgoMKDBIs5vbluYKmBkBEAEYACAAWABgAHAA0AEBqAIFwAIC2AEBgAIBiAIG0AsS2gw8CgoQ8Pj1wrn_sa1tEgIBAxoqCAESGf6BmeYY2b35qxjevPmrGJO89uoDvoSxpgPO7YnF2kwgmtyo08MEmg0BEqoNAlVTuBP___________8BsBQBwBXJgIBA0BUB2BUBkBYBmBYB4hYCCAGAFwGKFxoIAxgBIAEoATABOAFAAUgBUAFYAWACaAFwAaAXAakXG4oLaa1eRvW6FwQoADAA&ase=2&num=1&cid=CAASD-D4c9DOhTCuXm4CeUayPw&ad_cpn=%5BAD_CPN%5D&sig=AOD64_1U5dvH2jbnEq_3j0LlY381EiWpog&ms=[CLICK_MS]&adurl=https://garlo.com/enapa2%3Fgc_id%3D20599670093&label=video_click_to_advertiser_site&ctype=110","webPageType":"ry","rootVe":62}},"urlEndpoint":{"url":"lq","target":"wt"}},"trackingParams":"mh"}},"adBadgeRenderer":{"simpleAdBadgeRenderer":{"text":{"text":"kw","isTemplated":93,"trackingParams":"jg"},"trackingParams":"at"}},"adDurationRemaining":{"adDurationRemainingRenderer":{"templatedCountdown":{"templatedAdText":{"text":"rl","isTemplated":73,"trackingParams":"le"}},"trackingParams":"tr"}},"adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"le","size":"nb","isDisabled":41,"serviceEndpoint":{"clickTrackingParams":"jt","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"as"},"trackingParams":"vy"}},"popupType":"xn"}},"icon":{"iconType":"vl"},"trackingParams":"lm","accessibilityData":{"accessibilityData":{"label":"qi"}}}},"hoverText":{"simpleText":"zk"},"trackingParams":"qa"}},"flyoutCtaRenderer":{"flyoutCtaRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"pv"}]},"trackingParams":"jo"},"headline":{"text":"qx","isTemplated":10,"trackingParams":"um"},"description":{"text":"mf","trackingParams":"fe"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"kq"},"navigationEndpoint":{"clickTrackingParams":"cm","commandMetadata":{"webCommandMetadata":{"url":"wa","webPageType":"nq","rootVe":69}},"urlEndpoint":{"url":"ln","target":"nd"}},"trackingParams":"no"}},"startMs":45,"trackingParams":"ge"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"xd"},"elementId":"tc","inPlayerSlotId":"gg","inPlayerLayoutId":"cm"}},"trackingParams":"uy","layoutId":"ff","associatedPlayerBytesLayoutId":"dy"}},{"adActionInterstitialRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"gv"}]},"trackingParams":"at"},"headline":{"text":"ow","isTemplated":66,"trackingParams":"za"},"description":{"text":"ds","isTemplated":95,"trackingParams":"fc"},"actionButton":{"buttonRenderer":{"style":"ys","text":{"simpleText":"aq"},"navigationEndpoint":{"clickTrackingParams":"vu","commandMetadata":{"webCommandMetadata":{"url":"zn","webPageType":"jv","rootVe":38}},"urlEndpoint":{"url":"df","target":"xe"}},"trackingParams":"za"}},"durationMilliseconds":44,"countdownRenderer":{"timedPieCountdownRenderer":{"trackingParams":"xg"}},"navigationEndpoint":{"clickTrackingParams":"vg","loggingUrls":[{"baseUrl":"bc"}],"commandMetadata":{"webCommandMetadata":{"url":"sn","webPageType":"vb","rootVe":34}},"urlEndpoint":{"url":"ex","target":"nb"}},"trackingParams":"iw","backgroundImage":{"thumbnail":{"thumbnails":[{"url":"cm"}]},"trackingParams":"br"},"adRendererCommands":{"impressionCommand":{"clickTrackingParams":"dj","commandExecutorCommand":{"commands":[{"clickTrackingParams":"li","loggingUrls":[{"baseUrl":"wa"}],"pingingEndpoint":{"hack":0}}]}}},"skipButton":{"skipButtonRenderer":{"message":{"text":"jg","isTemplated":95,"trackingParams":"by"},"trackingParams":"kl"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"kt"},"layoutId":"cv","inPlayerSlotId":"qt","inPlayerLayoutId":"yy","associatedPlayerBytesLayoutId":"dx"}},{"instreamVideoAdRenderer":{"playerOverlay":{"instreamAdPlayerOverlayRenderer":{"skipOrPreviewRenderer":{"skipAdRenderer":{"preskipRenderer":{"adPreviewRenderer":{"thumbnail":{"thumbnail":{"thumbnails":[{"url":"pz","width":32,"height":43}]},"trackingParams":"iz"},"trackingParams":"yo","templatedCountdown":{"templatedAdText":{"text":"we","isTemplated":91,"trackingParams":"si"}},"durationMilliseconds":10}},"skippableRenderer":{"skipButtonRenderer":{"message":{"text":"bp","isTemplated":93,"trackingParams":"mo"},"trackingParams":"cp"}},"trackingParams":"qr","skipOffsetMilliseconds":60}},"trackingParams":"zf","visitAdvertiserRenderer":{"buttonRenderer":{"style":"ya","text":{"simpleText":"fv"},"icon":{"iconType":"bx"},"navigationEndpoint":{"clickTrackingParams":"bw","commandMetadata":{"webCommandMetadata":{"url":"ht","webPageType":"gv","rootVe":14}},"urlEndpoint":{"url":"wi","target":"te"}},"trackingParams":"gr"}},"adBadgeRenderer":{"simpleAdBadgeRenderer":{"text":{"text":"ox","isTemplated":66,"trackingParams":"td"},"trackingParams":"ng"}},"adDurationRemaining":{"adDurationRemainingRenderer":{"templatedCountdown":{"templatedAdText":{"text":"zu","isTemplated":15,"trackingParams":"py"}},"trackingParams":"hb"}},"adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"vn","size":"cw","isDisabled":56,"serviceEndpoint":{"clickTrackingParams":"jh","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"zx"},"trackingParams":"yl"}},"popupType":"tw"}},"icon":{"iconType":"ar"},"trackingParams":"vi","accessibilityData":{"accessibilityData":{"label":"hy"}}}},"hoverText":{"simpleText":"ap"},"trackingParams":"pp"}},"flyoutCtaRenderer":{"flyoutCtaRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"ol"}]},"trackingParams":"kz"},"headline":{"text":"wa","isTemplated":43,"trackingParams":"yb"},"description":{"text":"cl","trackingParams":"aq"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"xg"},"navigationEndpoint":{"clickTrackingParams":"wp","commandMetadata":{"webCommandMetadata":{"url":"uh","webPageType":"bs","rootVe":44}},"urlEndpoint":{"url":"xq","target":"fi"}},"trackingParams":"fo"}},"startMs":5,"trackingParams":"kh"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"ir"},"elementId":"mp","inPlayerSlotId":"fh","inPlayerLayoutId":"bh"}},"trackingParams":"ao","layoutId":"gc","associatedPlayerBytesLayoutId":"up"}},{"adActionInterstitialRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"wj"}]},"trackingParams":"zr"},"headline":{"text":"rq","isTemplated":82,"trackingParams":"gr"},"description":{"text":"fj","isTemplated":57,"trackingParams":"li"},"actionButton":{"buttonRenderer":{"style":"mu","text":{"simpleText":"cg"},"navigationEndpoint":{"clickTrackingParams":"eb","commandMetadata":{"webCommandMetadata":{"url":"vn","webPageType":"nw","rootVe":96}},"urlEndpoint":{"url":"bs","target":"dr"}},"trackingParams":"iq"}},"durationMilliseconds":39,"countdownRenderer":{"timedPieCountdownRenderer":{"trackingParams":"mt"}},"navigationEndpoint":{"clickTrackingParams":"uz","loggingUrls":[{"baseUrl":"rn"}],"commandMetadata":{"webCommandMetadata":{"url":"cu","webPageType":"qs","rootVe":26}},"urlEndpoint":{"url":"ty","target":"he"}},"trackingParams":"bw","backgroundImage":{"thumbnail":{"thumbnails":[{"url":"pd"}]},"trackingParams":"wm"},"adRendererCommands":{"impressionCommand":{"clickTrackingParams":"io","commandExecutorCommand":{"commands":[{"clickTrackingParams":"hd","loggingUrls":[{"baseUrl":"hz"}],"pingingEndpoint":{"hack":81}}]}}},"skipButton":{"skipButtonRenderer":{"message":{"text":"db","isTemplated":42,"trackingParams":"ga"},"trackingParams":"pa"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"bt"},"layoutId":"ec","inPlayerSlotId":"nl","inPlayerLayoutId":"qh","associatedPlayerBytesLayoutId":"qe"}}]}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"rj"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"zf","adTimeOffset":{"offsetStartMilliseconds":"63","offsetEndMilliseconds":"83"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"59","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_START","adTimeOffset":{"offsetStartMilliseconds":"330100","offsetEndMilliseconds":"594666"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"0","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"65","offsetEndMilliseconds":"30"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"51","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wg"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"56","offsetEndMilliseconds":"86"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"25","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"nh"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_END","adTimeOffset":{"offsetStartMilliseconds":"25","offsetEndMilliseconds":"13"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"32","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ti"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"47","offsetEndMilliseconds":"84"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"10","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"go"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"14","offsetEndMilliseconds":"87"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"79","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"34","offsetEndMilliseconds":"12"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"27","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"fp"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"66","offsetEndMilliseconds":"35"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"98","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"cn"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"59","offsetEndMilliseconds":"8"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"26","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wz"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"84","offsetEndMilliseconds":"90"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"92","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"nl"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"50","offsetEndMilliseconds":"67"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"96","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ov"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"13","offsetEndMilliseconds":"2"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"52","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"by"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"73","offsetEndMilliseconds":"64"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"67","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"uc"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"10","offsetEndMilliseconds":"zo"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"22","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"en"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_SELF_START"}},"renderer":{"actionCompanionAdRenderer":{"headline":{"text":"eg","isTemplated":93,"trackingParams":"it"},"description":{"text":"ux","isTemplated":43,"trackingParams":"sj"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"de"},"navigationEndpoint":{"clickTrackingParams":"ex","commandMetadata":{"webCommandMetadata":{"url":"ue","webPageType":"ow","rootVe":77}},"urlEndpoint":{"url":"yh","target":"pg"}},"trackingParams":"xf"}},"iconImage":{"thumbnail":{"thumbnails":[{"url":"te","width":19,"height":23}]},"trackingParams":"lv"},"bannerImage":{"thumbnail":{"thumbnails":[{"url":"gj","width":38,"height":67}]},"trackingParams":"ow"},"navigationEndpoint":{"clickTrackingParams":"um","commandMetadata":{"webCommandMetadata":{"url":"fq","webPageType":"fd","rootVe":61}},"urlEndpoint":{"url":"gi","target":"tq"}},"trackingParams":"ie","adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"ng","size":"xv","isDisabled":53,"icon":{"iconType":"bq"},"navigationEndpoint":{"clickTrackingParams":"yl","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"po"},"trackingParams":"hi"}},"popupType":"sb"}},"trackingParams":"ho","accessibilityData":{"accessibilityData":{"label":"kl"}}}},"hoverText":{"simpleText":"xd"},"trackingParams":"dv"}},"adVideoId":"je","impressionPings":[{"baseUrl":"xj"}],"adLayoutLoggingData":{"serializedAdServingDataEntry":"dt"},"associatedCompositePlayerBytesLayoutId":"te"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"vs"}}}],"adSlots":[{"adSlotRenderer":{"adSlotMetadata":{"slotId":"1234","slotType":"SLOT_TYPE_PLAYER_BYTES","adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ob"},"triggerEvent":"SLOT_TRIGGER_EVENT_BEFORE_CONTENT"},"fulfillmentContent":{"fulfilledLayout":{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"ot","layoutType":"xg","adLayoutLoggingData":{"serializedAdServingDataEntry":"yk"}},"renderingContent":{"playerBytesSequentialLayoutRenderer":{"sequentialLayouts":[{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"je","layoutType":"ww","adLayoutLoggingData":{"serializedAdServingDataEntry":"ve"}},"renderingContent":{"instreamVideoAdRenderer":{"skipOffsetMilliseconds":94,"pings":{"impressionPings":[{"baseUrl":"pl"},{"baseUrl":"zs"}],"errorPings":[{"baseUrl":"hh"}],"mutePings":[{"baseUrl":"qh"}],"unmutePings":[{"baseUrl":"ey"}],"pausePings":[{"baseUrl":"pz"}],"rewindPings":[{"baseUrl":"bh"}],"resumePings":[{"baseUrl":"mw"}],"skipPings":[{"baseUrl":"si"}],"closePings":[{"baseUrl":"oh"}],"progressPings":[{"baseUrl":"ly","offsetMilliseconds":1},{"baseUrl":"ac","offsetMilliseconds":80},{"baseUrl":"sy","offsetMilliseconds":72}],"fullscreenPings":[{"baseUrl":"kw"}],"activeViewViewablePings":[{"baseUrl":"oz"}],"endFullscreenPings":[{"baseUrl":"uc"}],"activeViewMeasurablePings":[{"baseUrl":"vu"}],"abandonPings":[{"baseUrl":"sf"}],"activeViewFullyViewableAudibleHalfDurationPings":[{"baseUrl":"qg"}],"completePings":[{"baseUrl":"jv"}],"activeViewTracking":{"trafficType":"sq"}},"clickthroughEndpoint":{"clickTrackingParams":"fn","commandMetadata":{"webCommandMetadata":{"url":"tf","webPageType":"ox","rootVe":73}},"urlEndpoint":{"url":"ny","target":"uc"}},"csiParameters":[{"key":"qe","value":"em"}],"playerVars":"suppress_creator_endscreen=1&is_trueview_action","elementId":"bq","trackingParams":"dr","legacyInfoCardVastExtension":"pa","sodarExtensionData":{"siub":"mi","bgub":"hc","scs":"cw","bgp":"co"},"externalVideoId":"ya","adLayoutLoggingData":{"serializedAdServingDataEntry":"jj"},"layoutId":"sc"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"nr","layoutType":"kn","adLayoutLoggingData":{"serializedAdServingDataEntry":"cf"}},"renderingContent":{"adActionInterstitialRenderer":{"durationMilliseconds":52,"trackingParams":"yq","abandonCommands":{"commands":[{"clickTrackingParams":"wi","loggingUrls":[{"baseUrl":"jb"}],"pingingEndpoint":{"hack":90}}]},"skipPings":[{"baseUrl":"av"}],"layoutId":"nj"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"nl","layoutType":"wm","adLayoutLoggingData":{"serializedAdServingDataEntry":"zw"}},"renderingContent":{"instreamVideoAdRenderer":{"skipOffsetMilliseconds":80,"pings":{"impressionPings":[{"baseUrl":"ji"},{"baseUrl":"ao"},{"baseUrl":"cc"}],"errorPings":[{"baseUrl":"jt"}],"mutePings":[{"baseUrl":"mn"},{"baseUrl":"ce"}],"unmutePings":[{"baseUrl":"rd"},{"baseUrl":"lb"}],"pausePings":[{"baseUrl":"et"},{"baseUrl":"fv"}],"rewindPings":[{"baseUrl":"ft"}],"resumePings":[{"baseUrl":"qj"},{"baseUrl":"ot"}],"skipPings":[{"baseUrl":"ky"},{"baseUrl":"jb"}],"closePings":[{"baseUrl":"hw"}],"progressPings":[{"baseUrl":"vh","offsetMilliseconds":36},{"baseUrl":"um","offsetMilliseconds":77},{"baseUrl":"sq","offsetMilliseconds":19},{"baseUrl":"ui","offsetMilliseconds":15},{"baseUrl":"nl","offsetMilliseconds":86}],"fullscreenPings":[{"baseUrl":"rp"},{"baseUrl":"cn"}],"activeViewViewablePings":[{"baseUrl":"ml"},{"baseUrl":"kq"}],"endFullscreenPings":[{"baseUrl":"ym"}],"activeViewMeasurablePings":[{"baseUrl":"di"},{"baseUrl":"ol"}],"abandonPings":[{"baseUrl":"aj"},{"baseUrl":"wo"}],"activeViewFullyViewableAudibleHalfDurationPings":[{"baseUrl":"ms"},{"baseUrl":"uj"}],"startPings":[{"baseUrl":"gy"}],"firstQuartilePings":[{"baseUrl":"ly"}],"secondQuartilePings":[{"baseUrl":"sw"}],"thirdQuartilePings":[{"baseUrl":"gt"}],"completePings":[{"baseUrl":"hu"},{"baseUrl":"gs"}],"activeViewTracking":{"trafficType":"mr"}},"clickthroughEndpoint":{"clickTrackingParams":"yq","commandMetadata":{"webCommandMetadata":{"url":"dn","webPageType":"ms","rootVe":54}},"urlEndpoint":{"url":"hs","target":"jt"}},"csiParameters":[{"key":"zn","value":"eq"}],"playerVars":"bi","elementId":"gr","trackingParams":"qc","legacyInfoCardVastExtension":"xv","sodarExtensionData":{"siub":"ul","bgub":"yr","scs":"ui","bgp":"vy"},"externalVideoId":"fp","adLayoutLoggingData":{"serializedAdServingDataEntry":"gt"},"layoutId":"bh"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"xy","layoutType":"bf","adLayoutLoggingData":{"serializedAdServingDataEntry":"rj"}},"renderingContent":{"adActionInterstitialRenderer":{"durationMilliseconds":95,"trackingParams":"ee","abandonCommands":{"commands":[{"clickTrackingParams":"mi","loggingUrls":[{"baseUrl":"yi"},{"baseUrl":"tm"}],"pingingEndpoint":{"hack":47}}]},"skipPings":[{"baseUrl":"uk"},{"baseUrl":"yj"}],"layoutId":"ft"}}}}]}},"layoutExitNormalTriggers":[{"id":"hq","onLayoutSelfExitRequestedTrigger":{"triggeringLayoutId":"hv"}}],"layoutExitSkipTriggers":[{"id":"up","skipRequestedTrigger":{"triggeringLayoutId":"nm"}},{"id":"yl","skipRequestedTrigger":{"triggeringLayoutId":"gh"}},{"id":"zd","skipRequestedTrigger":{"triggeringLayoutId":"mo"}},{"id":"bc","skipRequestedTrigger":{"triggeringLayoutId":"jj"}}],"layoutExitMuteTriggers":[{"id":"ql","skipRequestedTrigger":{"triggeringLayoutId":"hr"}},{"id":"rc","skipRequestedTrigger":{"triggeringLayoutId":"ln"}}]}}},"slotEntryTrigger":{"id":"lc","beforeContentVideoIdStartedTrigger":{}},"slotFulfillmentTriggers":[{"id":"xq","slotIdEnteredTrigger":{"triggeringSlotId":"da"}}],"slotExpirationTriggers":[{"id":"vv","slotIdExitedTrigger":{"triggeringSlotId":"re"}},{"id":"jg","onNewPlaybackAfterContentVideoIdTrigger":{}}]}}],"adBreakHeartbeatParams":"mw","frameworkUpdates":{"entityBatchUpdate":{"mutations":[{"entityKey":"pz","type":"az","payload":{"offlineabilityEntity":{"key":"ql","command":{"innertubeCommand":{"clickTrackingParams":"nz","ypcGetOfflineUpsellEndpoint":{"params":"pw"}}},"addToOfflineButtonState":"os","contentCheckOk":false,"racyCheckOk":false,"loggingDirectives":{"trackingParams":"xp","visibility":{"types":"1"},"enableDisplayloggerExperiment":true}}}}],"timestamp":{"seconds":"19","nanos":12}}}}',
objectRepresentation:IKb},{jsonRepresentation:'{"playerResponse":{"responseContext":{"serviceTrackingParams":[{"service":"GFEEDBACK","params":[{"key":"kc","value":"66"},{"key":"cw","value":"st"},{"key":"zb","value":"xz"},{"key":"zl","value":"16"},{"key":"pf","value":"sy"}]},{"service":"bh","params":[{"key":"ip","value":"54"},{"key":"tb","value":"dv"},{"key":"pi","value":"pn"},{"key":"fg","value":"35"},{"key":"wm","value":"vo"}]},{"service":"fp","params":[{"key":"hw","value":"91"}]},{"service":"rk","params":[{"key":"pe","value":"sf"},{"key":"rv","value":"jn"},{"key":"aw","value":"pw"}]}],"maxAgeSeconds":87,"mainAppWebResponseContext":{"loggedOut":43,"trackingParam":"dd","datasyncId":"xp"},"webResponseContextExtensionData":{"hasDecorated":75}},"playabilityStatus":{"status":"by","playableInEmbed":2,"miniplayer":{"miniplayerRenderer":{"playbackMode":"tj"}},"offlineability":{"buttonRenderer":{"serviceEndpoint":{"clickTrackingParams":"pz","ypcGetOfflineUpsellEndpoint":{"params":"xm"}},"trackingParams":"pq"}},"contextParams":"lu"},"streamingData":{"expiresInSeconds":"53","formats":[{"itag":80,"url":"https://rr3---sn-n4v7sns7.googlevideo.com/videoplayback?expire=1697267654&source=youtube&requiressl=yes","mimeType":"video/webm; codecs=\\"vp9\\"","bitrate":88,"width":96,"height":65,"lastModified":"1665263132187531","contentLength":"17","quality":"rc","fps":8,"qualityLabel":"ab","projectionType":"by","averageBitrate":50,"audioQuality":"th","approxDurationMs":"86","audioSampleRate":"88","audioChannels":34},{"itag":95,"url":"hs","mimeType":"nm","bitrate":56,"width":13,"height":14,"lastModified":"10","quality":"fu","fps":54,"qualityLabel":"yj","projectionType":"wu","audioQuality":"tu","approxDurationMs":"51","audioSampleRate":"87","audioChannels":44}],"adaptiveFormats":[{"itag":50,"url":"fu","mimeType":"uz","bitrate":80,"width":80,"height":85,"initRange":{"start":"16","end":"71"},"indexRange":{"start":"1","end":"26"},"lastModified":"70","contentLength":"66","quality":"cx","fps":61,"qualityLabel":"xt","projectionType":"pe","averageBitrate":68,"approxDurationMs":"1"},{"itag":77,"url":"rj","mimeType":"lh","bitrate":16,"width":17,"height":47,"initRange":{"start":"51","end":"44"},"indexRange":{"start":"87","end":"61"},"lastModified":"13","contentLength":"21","quality":"ie","fps":23,"qualityLabel":"ig","projectionType":"bl","averageBitrate":16,"colorInfo":{"primaries":"et","transferCharacteristics":"zu","matrixCoefficients":"od"},"approxDurationMs":"59"},{"itag":7,"url":"fc","mimeType":"gr","bitrate":71,"width":11,"height":3,"initRange":{"start":"100","end":"7"},"indexRange":{"start":"36","end":"98"},"lastModified":"88","contentLength":"77","quality":"rb","fps":46,"qualityLabel":"gq","projectionType":"ld","averageBitrate":99,"colorInfo":{"primaries":"xd","transferCharacteristics":"uu","matrixCoefficients":"zc"},"approxDurationMs":"44"},{"itag":10,"url":"kl","mimeType":"wb","bitrate":51,"width":69,"height":3,"initRange":{"start":"92","end":"79"},"indexRange":{"start":"42","end":"72"},"lastModified":"99","contentLength":"6","quality":"ee","fps":40,"qualityLabel":"em","projectionType":"wz","averageBitrate":48,"approxDurationMs":"86"},{"itag":44,"url":"hp","mimeType":"kq","bitrate":84,"width":53,"height":22,"initRange":{"start":"48","end":"51"},"indexRange":{"start":"54","end":"44"},"lastModified":"25","contentLength":"47","quality":"xy","fps":11,"qualityLabel":"zl","projectionType":"za","averageBitrate":95,"colorInfo":{"primaries":"ot","transferCharacteristics":"av","matrixCoefficients":"ow"},"approxDurationMs":"85"},{"itag":20,"url":"di","mimeType":"nc","bitrate":15,"width":19,"height":92,"initRange":{"start":"82","end":"58"},"indexRange":{"start":"80","end":"37"},"lastModified":"46","contentLength":"40","quality":"wo","fps":44,"qualityLabel":"pt","projectionType":"bg","averageBitrate":3,"colorInfo":{"primaries":"wq","transferCharacteristics":"is","matrixCoefficients":"ou"},"approxDurationMs":"47"},{"itag":44,"url":"oe","mimeType":"mh","bitrate":37,"width":43,"height":24,"initRange":{"start":"29","end":"91"},"indexRange":{"start":"97","end":"97"},"lastModified":"52","contentLength":"43","quality":"cr","fps":44,"qualityLabel":"hc","projectionType":"cr","averageBitrate":12,"approxDurationMs":"97"},{"itag":32,"url":"gq","mimeType":"sh","bitrate":42,"width":32,"height":13,"initRange":{"start":"71","end":"87"},"indexRange":{"start":"70","end":"4"},"lastModified":"67","contentLength":"16","quality":"sb","fps":66,"qualityLabel":"mv","projectionType":"kk","averageBitrate":51,"colorInfo":{"primaries":"pk","transferCharacteristics":"ea","matrixCoefficients":"cq"},"approxDurationMs":"70"},{"itag":71,"url":"zt","mimeType":"bl","bitrate":12,"width":68,"height":12,"initRange":{"start":"63","end":"2"},"indexRange":{"start":"28","end":"68"},"lastModified":"33","contentLength":"0","quality":"dh","fps":6,"qualityLabel":"jv","projectionType":"sy","averageBitrate":75,"colorInfo":{"primaries":"us","transferCharacteristics":"ka","matrixCoefficients":"xw"},"approxDurationMs":"16"},{"itag":98,"url":"vl","mimeType":"lg","bitrate":88,"width":23,"height":83,"initRange":{"start":"49","end":"34"},"indexRange":{"start":"43","end":"90"},"lastModified":"84","contentLength":"77","quality":"xu","fps":50,"qualityLabel":"jz","projectionType":"om","averageBitrate":16,"highReplication":95,"approxDurationMs":"46"},{"itag":85,"url":"ri","mimeType":"dh","bitrate":77,"width":86,"height":54,"initRange":{"start":"40","end":"98"},"indexRange":{"start":"15","end":"85"},"lastModified":"25","contentLength":"53","quality":"rq","fps":62,"qualityLabel":"nx","projectionType":"wg","averageBitrate":35,"colorInfo":{"primaries":"oa","transferCharacteristics":"kb","matrixCoefficients":"kk"},"approxDurationMs":"26"},{"itag":10,"url":"zz","mimeType":"lq","bitrate":55,"width":89,"height":43,"initRange":{"start":"94","end":"98"},"indexRange":{"start":"73","end":"51"},"lastModified":"3","contentLength":"36","quality":"yo","fps":5,"qualityLabel":"we","projectionType":"ve","averageBitrate":83,"colorInfo":{"primaries":"yu","transferCharacteristics":"fu","matrixCoefficients":"ox"},"approxDurationMs":"11"},{"itag":62,"url":"hv","mimeType":"th","bitrate":76,"width":28,"height":79,"initRange":{"start":"97","end":"100"},"indexRange":{"start":"58","end":"63"},"lastModified":"53","contentLength":"22","quality":"ou","fps":7,"qualityLabel":"cm","projectionType":"xv","averageBitrate":35,"approxDurationMs":"98"},{"itag":91,"url":"vr","mimeType":"wo","bitrate":41,"width":4,"height":79,"initRange":{"start":"80","end":"83"},"indexRange":{"start":"14","end":"58"},"lastModified":"50","contentLength":"38","quality":"ic","fps":64,"qualityLabel":"sq","projectionType":"du","averageBitrate":61,"colorInfo":{"primaries":"ok","transferCharacteristics":"ud","matrixCoefficients":"ob"},"approxDurationMs":"73"},{"itag":48,"url":"lq","mimeType":"zl","bitrate":4,"width":16,"height":65,"initRange":{"start":"93","end":"50"},"indexRange":{"start":"52","end":"44"},"lastModified":"74","contentLength":"86","quality":"mi","fps":43,"qualityLabel":"rz","projectionType":"ji","averageBitrate":61,"colorInfo":{"primaries":"qo","transferCharacteristics":"fk","matrixCoefficients":"jy"},"approxDurationMs":"70"},{"itag":34,"url":"cr","mimeType":"la","bitrate":53,"width":29,"height":97,"initRange":{"start":"89","end":"45"},"indexRange":{"start":"93","end":"45"},"lastModified":"52","contentLength":"74","quality":"xn","fps":60,"qualityLabel":"xs","projectionType":"lf","averageBitrate":1,"approxDurationMs":"18"},{"itag":67,"url":"mr","mimeType":"cs","bitrate":79,"width":9,"height":85,"initRange":{"start":"56","end":"96"},"indexRange":{"start":"71","end":"84"},"lastModified":"78","contentLength":"80","quality":"ld","fps":2,"qualityLabel":"no","projectionType":"uq","averageBitrate":35,"colorInfo":{"primaries":"mj","transferCharacteristics":"ry","matrixCoefficients":"cc"},"approxDurationMs":"43"},{"itag":57,"url":"fi","mimeType":"to","bitrate":80,"width":81,"height":29,"initRange":{"start":"6","end":"96"},"indexRange":{"start":"73","end":"48"},"lastModified":"32","contentLength":"11","quality":"ck","fps":82,"qualityLabel":"fo","projectionType":"px","averageBitrate":95,"colorInfo":{"primaries":"az","transferCharacteristics":"mq","matrixCoefficients":"oc"},"approxDurationMs":"44"},{"itag":52,"url":"ea","mimeType":"xm","bitrate":18,"initRange":{"start":"15","end":"16"},"indexRange":{"start":"4","end":"33"},"lastModified":"65","contentLength":"67","quality":"es","projectionType":"mp","averageBitrate":52,"highReplication":82,"audioQuality":"za","approxDurationMs":"24","audioSampleRate":"1","audioChannels":92,"loudnessDb":0.9787435365879406},{"itag":37,"url":"kk","mimeType":"xg","bitrate":78,"initRange":{"start":"38","end":"94"},"indexRange":{"start":"27","end":"17"},"lastModified":"61","contentLength":"2","quality":"nh","projectionType":"ar","averageBitrate":69,"audioQuality":"la","approxDurationMs":"95","audioSampleRate":"66","audioChannels":50,"loudnessDb":0.6461265012758731},{"itag":45,"url":"oc","mimeType":"nm","bitrate":12,"initRange":{"start":"21","end":"45"},"indexRange":{"start":"21","end":"13"},"lastModified":"45","contentLength":"85","quality":"vs","projectionType":"xp","averageBitrate":32,"audioQuality":"tv","approxDurationMs":"1","audioSampleRate":"99","audioChannels":42,"loudnessDb":0.39295968942278037},{"itag":37,"url":"zf","mimeType":"be","bitrate":29,"initRange":{"start":"27","end":"87"},"indexRange":{"start":"81","end":"20"},"lastModified":"6","contentLength":"33","quality":"pe","projectionType":"pb","averageBitrate":100,"audioQuality":"zi","approxDurationMs":"70","audioSampleRate":"32","audioChannels":68,"loudnessDb":0.2781731101164002}]},"playerAds":[{"playerLegacyDesktopWatchAdsRenderer":{"playerAdParams":{"showContentThumbnail":true,"enabledEngageTypes":"3,6,4,5"},"gutParams":{"tag":"\\\\4061\\\\ytpwmpu"},"showCompanion":true,"showInstream":true,"useGut":true}}],"playbackTracking":{"videostatsPlaybackUrl":{"baseUrl":"bj"},"videostatsDelayplayUrl":{"baseUrl":"vx"},"videostatsWatchtimeUrl":{"baseUrl":"px"},"ptrackingUrl":{"baseUrl":"tg"},"qoeUrl":{"baseUrl":"wx"},"atrUrl":{"baseUrl":"xz","elapsedMediaTimeSeconds":45},"videostatsScheduledFlushWalltimeSeconds":[99,32,39],"videostatsDefaultFlushIntervalSeconds":3,"youtubeRemarketingUrl":{"baseUrl":"mb","elapsedMediaTimeSeconds":63},"googleRemarketingUrl":{"baseUrl":"yn","elapsedMediaTimeSeconds":83}},"captions":{"playerCaptionsTracklistRenderer":{"captionTracks":[{"baseUrl":"ew","name":{"simpleText":"ez"},"vssId":"fj","languageCode":"wd","kind":"ez","isTranslatable":21}],"audioTracks":[{"captionTrackIndices":[87]}],"translationLanguages":[{"languageCode":"xu","languageName":{"simpleText":"fw"}},{"languageCode":"zl","languageName":{"simpleText":"xc"}},{"languageCode":"jr","languageName":{"simpleText":"md"}},{"languageCode":"sc","languageName":{"simpleText":"wf"}},{"languageCode":"nj","languageName":{"simpleText":"xn"}},{"languageCode":"of","languageName":{"simpleText":"av"}},{"languageCode":"tv","languageName":{"simpleText":"ok"}},{"languageCode":"nu","languageName":{"simpleText":"ry"}},{"languageCode":"zy","languageName":{"simpleText":"nb"}},{"languageCode":"pt","languageName":{"simpleText":"eq"}},{"languageCode":"vr","languageName":{"simpleText":"cc"}},{"languageCode":"wh","languageName":{"simpleText":"hd"}},{"languageCode":"hp","languageName":{"simpleText":"ds"}},{"languageCode":"ka","languageName":{"simpleText":"up"}},{"languageCode":"sw","languageName":{"simpleText":"zp"}},{"languageCode":"rh","languageName":{"simpleText":"eq"}},{"languageCode":"bq","languageName":{"simpleText":"at"}},{"languageCode":"hu","languageName":{"simpleText":"fg"}},{"languageCode":"ai","languageName":{"simpleText":"iy"}},{"languageCode":"rj","languageName":{"simpleText":"oz"}},{"languageCode":"sq","languageName":{"simpleText":"fe"}},{"languageCode":"tn","languageName":{"simpleText":"vk"}},{"languageCode":"jr","languageName":{"simpleText":"jg"}},{"languageCode":"vc","languageName":{"simpleText":"hv"}},{"languageCode":"yn","languageName":{"simpleText":"ky"}},{"languageCode":"pa","languageName":{"simpleText":"rw"}},{"languageCode":"lr","languageName":{"simpleText":"kv"}},{"languageCode":"ud","languageName":{"simpleText":"fn"}},{"languageCode":"hq","languageName":{"simpleText":"io"}},{"languageCode":"rp","languageName":{"simpleText":"qx"}},{"languageCode":"xf","languageName":{"simpleText":"sm"}},{"languageCode":"fs","languageName":{"simpleText":"ty"}},{"languageCode":"so","languageName":{"simpleText":"xl"}},{"languageCode":"fk","languageName":{"simpleText":"ff"}},{"languageCode":"fw","languageName":{"simpleText":"wz"}},{"languageCode":"rn","languageName":{"simpleText":"zw"}},{"languageCode":"wq","languageName":{"simpleText":"yt"}},{"languageCode":"oh","languageName":{"simpleText":"oo"}},{"languageCode":"ts","languageName":{"simpleText":"jt"}},{"languageCode":"xy","languageName":{"simpleText":"ga"}},{"languageCode":"jy","languageName":{"simpleText":"sx"}},{"languageCode":"lw","languageName":{"simpleText":"cf"}},{"languageCode":"fc","languageName":{"simpleText":"qr"}},{"languageCode":"ji","languageName":{"simpleText":"cc"}},{"languageCode":"qs","languageName":{"simpleText":"pi"}},{"languageCode":"vx","languageName":{"simpleText":"hk"}},{"languageCode":"jt","languageName":{"simpleText":"eh"}},{"languageCode":"fb","languageName":{"simpleText":"iu"}},{"languageCode":"mf","languageName":{"simpleText":"st"}},{"languageCode":"en","languageName":{"simpleText":"vr"}},{"languageCode":"go","languageName":{"simpleText":"kp"}},{"languageCode":"sc","languageName":{"simpleText":"rk"}},{"languageCode":"bx","languageName":{"simpleText":"ci"}},{"languageCode":"pu","languageName":{"simpleText":"qj"}},{"languageCode":"fa","languageName":{"simpleText":"ht"}},{"languageCode":"bw","languageName":{"simpleText":"af"}},{"languageCode":"rr","languageName":{"simpleText":"jt"}},{"languageCode":"ef","languageName":{"simpleText":"yy"}},{"languageCode":"bn","languageName":{"simpleText":"wu"}},{"languageCode":"ov","languageName":{"simpleText":"ae"}},{"languageCode":"sm","languageName":{"simpleText":"hi"}},{"languageCode":"tq","languageName":{"simpleText":"ie"}},{"languageCode":"fn","languageName":{"simpleText":"et"}},{"languageCode":"jw","languageName":{"simpleText":"bu"}},{"languageCode":"iz","languageName":{"simpleText":"gc"}},{"languageCode":"bk","languageName":{"simpleText":"jh"}},{"languageCode":"vw","languageName":{"simpleText":"fq"}},{"languageCode":"xt","languageName":{"simpleText":"or"}},{"languageCode":"kq","languageName":{"simpleText":"ch"}},{"languageCode":"pa","languageName":{"simpleText":"cs"}},{"languageCode":"ef","languageName":{"simpleText":"eq"}},{"languageCode":"mk","languageName":{"simpleText":"ig"}},{"languageCode":"me","languageName":{"simpleText":"pv"}},{"languageCode":"ll","languageName":{"simpleText":"nz"}},{"languageCode":"yd","languageName":{"simpleText":"pu"}},{"languageCode":"dj","languageName":{"simpleText":"vx"}},{"languageCode":"xc","languageName":{"simpleText":"ca"}},{"languageCode":"wb","languageName":{"simpleText":"il"}},{"languageCode":"ww","languageName":{"simpleText":"jf"}},{"languageCode":"xi","languageName":{"simpleText":"ba"}},{"languageCode":"ae","languageName":{"simpleText":"hx"}},{"languageCode":"uj","languageName":{"simpleText":"xu"}},{"languageCode":"hq","languageName":{"simpleText":"gp"}},{"languageCode":"we","languageName":{"simpleText":"pk"}},{"languageCode":"kt","languageName":{"simpleText":"ek"}},{"languageCode":"hy","languageName":{"simpleText":"ab"}},{"languageCode":"hm","languageName":{"simpleText":"nu"}},{"languageCode":"uw","languageName":{"simpleText":"rx"}},{"languageCode":"or","languageName":{"simpleText":"nf"}},{"languageCode":"dh","languageName":{"simpleText":"zn"}},{"languageCode":"kb","languageName":{"simpleText":"js"}},{"languageCode":"vg","languageName":{"simpleText":"xe"}},{"languageCode":"dl","languageName":{"simpleText":"so"}},{"languageCode":"lz","languageName":{"simpleText":"hb"}},{"languageCode":"ny","languageName":{"simpleText":"xr"}},{"languageCode":"ag","languageName":{"simpleText":"us"}},{"languageCode":"zr","languageName":{"simpleText":"ae"}},{"languageCode":"yq","languageName":{"simpleText":"yc"}},{"languageCode":"up","languageName":{"simpleText":"dc"}},{"languageCode":"zn","languageName":{"simpleText":"jw"}},{"languageCode":"uh","languageName":{"simpleText":"ms"}},{"languageCode":"mt","languageName":{"simpleText":"vf"}},{"languageCode":"lt","languageName":{"simpleText":"ln"}},{"languageCode":"vf","languageName":{"simpleText":"rd"}},{"languageCode":"my","languageName":{"simpleText":"rk"}},{"languageCode":"ei","languageName":{"simpleText":"ul"}},{"languageCode":"dj","languageName":{"simpleText":"cz"}},{"languageCode":"kb","languageName":{"simpleText":"hp"}},{"languageCode":"jj","languageName":{"simpleText":"zf"}},{"languageCode":"ew","languageName":{"simpleText":"ff"}},{"languageCode":"jo","languageName":{"simpleText":"iz"}},{"languageCode":"ja","languageName":{"simpleText":"uz"}},{"languageCode":"yd","languageName":{"simpleText":"or"}},{"languageCode":"tl","languageName":{"simpleText":"tw"}},{"languageCode":"mw","languageName":{"simpleText":"th"}},{"languageCode":"pq","languageName":{"simpleText":"zp"}},{"languageCode":"pq","languageName":{"simpleText":"pk"}},{"languageCode":"ef","languageName":{"simpleText":"fj"}},{"languageCode":"qq","languageName":{"simpleText":"vu"}},{"languageCode":"pj","languageName":{"simpleText":"kp"}},{"languageCode":"ab","languageName":{"simpleText":"xw"}},{"languageCode":"re","languageName":{"simpleText":"ln"}},{"languageCode":"ht","languageName":{"simpleText":"wo"}},{"languageCode":"ju","languageName":{"simpleText":"wb"}},{"languageCode":"yq","languageName":{"simpleText":"xv"}}],"defaultAudioTrackIndex":70}},"videoDetails":{"videoId":"ux","title":"jb","lengthSeconds":"90","keywords":["th","ts","yg","gy","ih","iq","zj"],"channelId":"pg","isOwnerViewing":6,"shortDescription":"ts","isCrawlable":62,"thumbnail":{"thumbnails":[{"url":"vx","width":8,"height":58},{"url":"bp","width":44,"height":79},{"url":"oh","width":47,"height":66},{"url":"hm","width":34,"height":55},{"url":"vr","width":0,"height":20}]},"allowRatings":24,"viewCount":"49","author":"xr","isPrivate":70,"isUnpluggedCorpus":66,"isLiveContent":99},"annotations":[{"playerAnnotationsExpandedRenderer":{"featuredChannel":{"startTimeMs":"96","endTimeMs":"46","watermark":{"thumbnails":[{"url":"li","width":91,"height":28}]},"trackingParams":"an","navigationEndpoint":{"clickTrackingParams":"mg","commandMetadata":{"webCommandMetadata":{"url":"rd","webPageType":"nc","rootVe":69,"apiUrl":"/youtubei/v1/browse"}},"browseEndpoint":{"browseId":"qg"}},"channelName":"ei","subscribeButton":{"subscribeButtonRenderer":{"buttonText":{"runs":[{"text":"pz"}]},"subscribed":44,"enabled":33,"type":"ue","channelId":"ki","showPreferences":71,"subscribedButtonText":{"runs":[{"text":"lk"}]},"unsubscribedButtonText":{"runs":[{"text":"jn"}]},"trackingParams":"oj","unsubscribeButtonText":{"runs":[{"text":"ad"}]},"serviceEndpoints":[{"clickTrackingParams":"wm","commandMetadata":{"webCommandMetadata":{"sendPost":4,"apiUrl":"ky"}},"subscribeEndpoint":{"channelIds":["zt"],"params":"at"}},{"clickTrackingParams":"jg","commandMetadata":{"webCommandMetadata":{"sendPost":28}},"signalServiceEndpoint":{"signal":"ok","actions":[{"clickTrackingParams":"lt","openPopupAction":{"popup":{"confirmDialogRenderer":{"trackingParams":"po","dialogMessages":[{"runs":[{"text":"ou"},{"text":"jt"},{"text":"zz"}]}],"confirmButton":{"buttonRenderer":{"style":"mm","size":"oi","isDisabled":43,"text":{"runs":[{"text":"kc"}]},"serviceEndpoint":{"clickTrackingParams":"gk","commandMetadata":{"webCommandMetadata":{"sendPost":18,"apiUrl":"kc"}},"unsubscribeEndpoint":{"channelIds":["cm"],"params":"ar"}},"accessibility":{"label":"iy"},"trackingParams":"gs"}},"cancelButton":{"buttonRenderer":{"style":"jb","size":"pe","isDisabled":69,"text":{"runs":[{"text":"uv"}]},"accessibility":{"label":"qu"},"trackingParams":"pe"}},"primaryIsCancel":48}},"popupType":"ma"}}]}}],"subscribeAccessibility":{"accessibilityData":{"label":"vh"}},"unsubscribeAccessibility":{"accessibilityData":{"label":"lg"}},"signInEndpoint":{"clickTrackingParams":"eu","commandMetadata":{"webCommandMetadata":{"url":"na"}}}}}},"allowSwipeDismiss":55,"annotationId":"jd"}}],"playerConfig":{"audioConfig":{"loudnessDb":0.9620880668073215,"perceptualLoudnessDb":0.541474004793957,"enablePerFormatLoudness":31},"streamSelectionConfig":{"maxBitrate":"61"},"mediaCommonConfig":{"dynamicReadaheadConfig":{"maxReadAheadMediaTimeMs":100,"minReadAheadMediaTimeMs":21,"readAheadGrowthRateMs":29}},"webPlayerConfig":{"useCobaltTvosDash":55,"webPlayerActionsPorting":{"getSharePanelCommand":{"clickTrackingParams":"of","commandMetadata":{"webCommandMetadata":{"sendPost":31,"apiUrl":"xl"}},"webPlayerShareEntityServiceEndpoint":{"serializedShareEntity":"tr"}},"subscribeCommand":{"clickTrackingParams":"fs","commandMetadata":{"webCommandMetadata":{"sendPost":13,"apiUrl":"xp"}},"subscribeEndpoint":{"channelIds":["qs"],"params":"oa"}},"unsubscribeCommand":{"clickTrackingParams":"ls","commandMetadata":{"webCommandMetadata":{"sendPost":91,"apiUrl":"wc"}},"unsubscribeEndpoint":{"channelIds":["fo"],"params":"vt"}},"addToWatchLaterCommand":{"clickTrackingParams":"ua","commandMetadata":{"webCommandMetadata":{"sendPost":18,"apiUrl":"iu"}},"playlistEditEndpoint":{"playlistId":"rv","actions":[{"addedVideoId":"iw","action":"rd"}]}},"removeFromWatchLaterCommand":{"clickTrackingParams":"un","commandMetadata":{"webCommandMetadata":{"sendPost":20,"apiUrl":"bl"}},"playlistEditEndpoint":{"playlistId":"zg","actions":[{"action":"ya","removedVideoId":"dk"}]}}},"gatewayExperimentGroup":"vb"}},"storyboards":{"playerStoryboardSpecRenderer":{"spec":"aj","recommendedLevel":87}},"microformat":{"playerMicroformatRenderer":{"thumbnail":{"thumbnails":[{"url":"mm","width":57,"height":94}]},"embed":{"iframeUrl":"bd","width":51,"height":73},"title":{"simpleText":"sg"},"description":{"simpleText":"yv"},"lengthSeconds":"18","ownerProfileUrl":"bg","externalChannelId":"eg","isFamilySafe":88,"availableCountries":["hn","sd","lt","tx","nw","mq","iz","aj","vi","xa","ec","iv","rj","vb","ro","po","mv","mx","cn","ld","tn","ay","gv","bs","vf","da","ss","km","uo","mg","wv","md","lo","nc","vh","li","jh","lj","qq","ci","ob","zy","pu","bl","jm","ge","tt","ov","ue","vp","ka","nh","uc","gb","rs","gu","hm","uv","nq","ga","qu","hr","pj","zq","rh","nn","yv","or","zg","ai","qj","cv","vg","hr","zm","al","mj","fz","yx","st","tt","ih","vm","wq","gx","wi","ys","ug","vb","uh","rf","ry","ba","xu","ce","eq","bx","he","jm","ie","nb","cd","qz","no","yq","qe","jy","wd","pm","nb","hk","em","im","iv","ld","gz","fe","ut","md","gw","sf","yz","yp","xr","gm","uo","kg","yo","wv","da","wt","ry","it","gz","mm","ho","mf","lq","tu","im","lu","gm","pa","ny","gu","ds","yx","yh","jk","qb","jv","mp","bi","nr","mc","bg","ym","zt","sh","kd","gj","dp","qw","eh","no","pj","nq","dy","gt","cm","pg","ce","jt","xv","tf","ue","ke","hs","xh","tc","ad","yg","uh","cd","zc","rj","kq","sp","vv","xt","bo","am","kg","kx","xb","fr","il","qi","ap","pe","tg","im","cs","vy","zu","cq","bu","og","tf","ze","zj","um","vd","ot","al","zl","um","jv","ss","md","xm","nv","id","es","jf","as","zb","ms","uv","jh","xz","em","uv","bk","zx","wp","ay","ub","pa","rf","yi","zm","em","pu","xs"],"isUnlisted":24,"hasYpcMetadata":38,"viewCount":"6","category":"qh","publishDate":"eb","ownerChannelName":"mf","uploadDate":"ax"}},"cards":{"cardCollectionRenderer":{"cards":[{"cardRenderer":{"teaser":{"simpleCardTeaserRenderer":{"message":{"simpleText":"ha"},"trackingParams":"ra","prominent":9,"logVisibilityUpdates":88,"onTapCommand":{"clickTrackingParams":"dy","changeEngagementPanelVisibilityAction":{"targetId":"qc","visibility":"mh"}}}},"cueRanges":[{"startCardActiveMs":"41","endCardActiveMs":"81","teaserDurationMs":"31","iconAfterTeaserMs":"65"}],"trackingParams":"sn"}}],"headerText":{"simpleText":"mi"},"icon":{"infoCardIconRenderer":{"trackingParams":"tq"}},"closeButton":{"infoCardIconRenderer":{"trackingParams":"nz"}},"trackingParams":"ss","allowTeaserDismiss":55,"logIconVisibilityUpdates":49}},"trackingParams":"lt","attestation":{"playerAttestationRenderer":{"challenge":"rg","botguardData":{"program":"vk","interpreterSafeUrl":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"ap"},"serverEnvironment":83}}},"videoQualityPromoSupportedRenderers":{"videoQualityPromoRenderer":{"triggerCriteria":{"connectionWhitelist":["vs"],"joinLatencySeconds":85,"rebufferTimeSeconds":89,"watchTimeWindowSeconds":21,"refractorySeconds":41},"text":{"runs":[{"text":"it"},{"text":"qt","bold":60}]},"endpoint":{"clickTrackingParams":"lw","commandMetadata":{"webCommandMetadata":{"url":"ih","webPageType":"xa","rootVe":73}},"urlEndpoint":{"url":"ms","target":"tj"}},"trackingParams":"vd","snackbar":{"notificationActionRenderer":{"responseText":{"runs":[{"text":"pp"}]},"actionButton":{"buttonRenderer":{"text":{"runs":[{"text":"yw"}]},"navigationEndpoint":{"clickTrackingParams":"sq","commandMetadata":{"webCommandMetadata":{"url":"wp","webPageType":"zn","rootVe":21}},"urlEndpoint":{"url":"ju","target":"dy"}},"trackingParams":"zj"}},"trackingParams":"nh"}}}},"messages":[{"mealbarPromoRenderer":{"icon":{"thumbnails":[{"url":"ek","width":71,"height":69}]},"messageTexts":[{"runs":[{"text":"ew"}]}],"actionButton":{"buttonRenderer":{"style":"gz","size":"tz","text":{"runs":[{"text":"ga"}]},"trackingParams":"qr","command":{"clickTrackingParams":"wk","commandExecutorCommand":{"commands":[{"clickTrackingParams":"dw","commandMetadata":{"webCommandMetadata":{"url":"po","webPageType":"fl","rootVe":70,"apiUrl":"ot"}},"browseEndpoint":{"browseId":"pl","params":"zo"}},{"commandMetadata":{"webCommandMetadata":{"sendPost":10,"apiUrl":"rv"}},"feedbackEndpoint":{"feedbackToken":"xi","uiActions":{"hideEnclosingContainer":25}}}]}}}},"dismissButton":{"buttonRenderer":{"style":"ol","size":"og","text":{"runs":[{"text":"yv"}]},"trackingParams":"ch","command":{"clickTrackingParams":"uu","commandExecutorCommand":{"commands":[{"clickTrackingParams":"ig","commandMetadata":{"webCommandMetadata":{"sendPost":71,"apiUrl":"en"}},"feedbackEndpoint":{"feedbackToken":"wh","uiActions":{"hideEnclosingContainer":45}}}]}}}},"triggerCondition":"pb","style":"uq","trackingParams":"rp","impressionEndpoints":[{"clickTrackingParams":"xb","commandMetadata":{"webCommandMetadata":{"sendPost":73,"apiUrl":"wl"}},"feedbackEndpoint":{"feedbackToken":"wf","uiActions":{"hideEnclosingContainer":95}}}],"isVisible":17,"messageTitle":{"runs":[{"text":"ir"}]},"enableSharedFeatureForImpressionHandling":21}}],"adPlacements":[{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"7","offsetEndMilliseconds":"39"},"hideCueRangeMarker":true}},"renderer":{"linearAdSequenceRenderer":{"linearAds":[{"instreamVideoAdRenderer":{"playerOverlay":{"instreamAdPlayerOverlayRenderer":{"skipOrPreviewRenderer":{"skipAdRenderer":{"preskipRenderer":{"adPreviewRenderer":{"thumbnail":{"thumbnail":{"thumbnails":[{"url":"https://i.ytimg.com/vi/AERLXaPKn_U/mqdefault.jpg","width":46,"height":25}]},"trackingParams":"ye"},"trackingParams":"dq","templatedCountdown":{"templatedAdText":{"text":"ps","isTemplated":82,"trackingParams":"cc"}},"durationMilliseconds":44}},"skippableRenderer":{"skipButtonRenderer":{"message":{"text":"xz","isTemplated":30,"trackingParams":"um"},"trackingParams":"ge"}},"trackingParams":"zg","skipOffsetMilliseconds":88}},"trackingParams":"qd","visitAdvertiserRenderer":{"buttonRenderer":{"style":"fv","text":{"simpleText":"on"},"icon":{"iconType":"vw"},"navigationEndpoint":{"clickTrackingParams":"mk","commandMetadata":{"webCommandMetadata":{"url":"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C3OQpfbUyZYWKL_Ken8RMFbClwAyRha6dc6fw7oP7EbaQHxABIABgyfb4hsijoBmCARdjYS1wdWItNjIxOTgxMTc0NzA0OTM3MYgBAaAB59zF2gOoAwSqBLMDT9ATfUTpaHDVXptzXB0Bqtu5dBV_jsP-c6MPkZYSL8_SrzCV3_f4sBsAHAi3Utb4zaJFaF_HvQdtBwss4wAA_skHdbFnpl5-EMNyyzlRw-Cndshj8CGQYwd1ZXhxlU46cvUuzxBe4SvQuo5EZgRv_zIYfKVpOj81ol3soC-FTzrjxhngpg6E1SEy8MZ8S5ykzm_m-YEKix3QCVLlSpEedBunRo295OkIwlFwaIQk8cLxsmnYhxdD_0zLFeTvwe5Q5tNO9mqkUZ7rAyzCTey_m5MZVo67-fDtV0elSQR79C9ErFiOQ5SaPsQgzk7zE3jxPNZYzV0zKOQ245eF3ZWxcGIrFA5NPIvvBwOl60ABjpEgQjQ4y2LpZnygmW_9ikThHx_iC4RujeV7iSAG5Fvv28wptAmCq7jMu5tWztpr-nl-Y0Iz7dA2FeeEOcd4ddn596NriGGT8AjZAXhtD7yJ8tRBEO3P48giFZj81WrpYHUvNhfx24PguTj-IBSpw2uQbemku11WDOxo7SI20n_fPtLcaEXB3YUajshnd5LoR4NlONEqC0f_uYwLaHt5X4Fw1hd8oAZUgAeBo7oliAcBkAcCqAf5sbECqAfnnbECqAfonbECqAfqt7ECqAentbMVqAfvtbECqAfwtbECqAeCqrECqAePOgHqNIbqAe2B6gHpJqxAqgHkZ-xAqgHsJuxAqgH36GxAqgHrrGxAqgHpqqxAqgH_bKxAqgHgcYbqAf8r7ECqAerxRuoB5zcG6gH5p2xAqgHyJ-xAqgHt6GxAqgH66WxAqgHyqmxApIIC242UFJubjBtcFpjqAgB0ggcCIAREAIYWjIDgoAEOgeP0ICAgIAESNmg0jVQFPIIH2NhLXl0LWhvc3QtcHViLTE4MDAxMjAxBZAyMzA2NTWaCRtodHRwczovL2xhdW5pdGVjLm5ldC9lY29tYTKxCS-fhg771OyRyAkYyAmPAcgJkAGYCwGhC8vk5LIcunUAugtXCAEQARgFIAEoATABQAFIAWAAaABwAogBAJgBAaIBLwoYIAPauAQSMhA6DgoMKDBIs5vbluYKmBkBEAEYACAAWABgAHAA0AEBqAIFwAIC2AEBgAIBiAIG0AsS2gw8CgoQ8Pj1wrn_sa1tEgIBAxoqCAESGf6BmeYY2b35qxjevPmrGJO89uoDvoSxpgPO7YnF2kwgmtyo08MEmg0BEqoNAlVTuBP___________8BsBQBwBXJgIBA0BUB2BUBkBYBmBYB4hYCCAGAFwGKFxoIAxgBIAEoATABOAFAAUgBUAFYAWACaAFwAaAXAakXG4oLaa1eRvW6FwQoADAA&ase=2&num=1&cid=CAASD-D4c9DOhTCuXm4CeUayPw&ad_cpn=%5BAD_CPN%5D&sig=AOD64_1U5dvH2jbnEq_3j0LlY381EiWpog&ms=[CLICK_MS]&adurl=https://garlo.com/enapa2%3Fgc_id%3D20599670093&label=video_click_to_advertiser_site&ctype=110","webPageType":"ry","rootVe":62}},"urlEndpoint":{"url":"lq","target":"wt"}},"trackingParams":"mh"}},"adBadgeRenderer":{"simpleAdBadgeRenderer":{"text":{"text":"kw","isTemplated":93,"trackingParams":"jg"},"trackingParams":"at"}},"adDurationRemaining":{"adDurationRemainingRenderer":{"templatedCountdown":{"templatedAdText":{"text":"rl","isTemplated":73,"trackingParams":"le"}},"trackingParams":"tr"}},"adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"le","size":"nb","isDisabled":41,"serviceEndpoint":{"clickTrackingParams":"jt","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"as"},"trackingParams":"vy"}},"popupType":"xn"}},"icon":{"iconType":"vl"},"trackingParams":"lm","accessibilityData":{"accessibilityData":{"label":"qi"}}}},"hoverText":{"simpleText":"zk"},"trackingParams":"qa"}},"flyoutCtaRenderer":{"flyoutCtaRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"pv"}]},"trackingParams":"jo"},"headline":{"text":"qx","isTemplated":10,"trackingParams":"um"},"description":{"text":"mf","trackingParams":"fe"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"kq"},"navigationEndpoint":{"clickTrackingParams":"cm","commandMetadata":{"webCommandMetadata":{"url":"wa","webPageType":"nq","rootVe":69}},"urlEndpoint":{"url":"ln","target":"nd"}},"trackingParams":"no"}},"startMs":45,"trackingParams":"ge"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"xd"},"elementId":"tc","inPlayerSlotId":"gg","inPlayerLayoutId":"cm"}},"trackingParams":"uy","layoutId":"ff","associatedPlayerBytesLayoutId":"dy"}},{"adActionInterstitialRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"gv"}]},"trackingParams":"at"},"headline":{"text":"ow","isTemplated":66,"trackingParams":"za"},"description":{"text":"ds","isTemplated":95,"trackingParams":"fc"},"actionButton":{"buttonRenderer":{"style":"ys","text":{"simpleText":"aq"},"navigationEndpoint":{"clickTrackingParams":"vu","commandMetadata":{"webCommandMetadata":{"url":"zn","webPageType":"jv","rootVe":38}},"urlEndpoint":{"url":"df","target":"xe"}},"trackingParams":"za"}},"durationMilliseconds":44,"countdownRenderer":{"timedPieCountdownRenderer":{"trackingParams":"xg"}},"navigationEndpoint":{"clickTrackingParams":"vg","loggingUrls":[{"baseUrl":"bc"}],"commandMetadata":{"webCommandMetadata":{"url":"sn","webPageType":"vb","rootVe":34}},"urlEndpoint":{"url":"ex","target":"nb"}},"trackingParams":"iw","backgroundImage":{"thumbnail":{"thumbnails":[{"url":"cm"}]},"trackingParams":"br"},"adRendererCommands":{"impressionCommand":{"clickTrackingParams":"dj","commandExecutorCommand":{"commands":[{"clickTrackingParams":"li","loggingUrls":[{"baseUrl":"wa"}],"pingingEndpoint":{"hack":0}}]}}},"skipButton":{"skipButtonRenderer":{"message":{"text":"jg","isTemplated":95,"trackingParams":"by"},"trackingParams":"kl"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"kt"},"layoutId":"cv","inPlayerSlotId":"qt","inPlayerLayoutId":"yy","associatedPlayerBytesLayoutId":"dx"}},{"instreamVideoAdRenderer":{"playerOverlay":{"instreamAdPlayerOverlayRenderer":{"skipOrPreviewRenderer":{"skipAdRenderer":{"preskipRenderer":{"adPreviewRenderer":{"thumbnail":{"thumbnail":{"thumbnails":[{"url":"pz","width":32,"height":43}]},"trackingParams":"iz"},"trackingParams":"yo","templatedCountdown":{"templatedAdText":{"text":"we","isTemplated":91,"trackingParams":"si"}},"durationMilliseconds":10}},"skippableRenderer":{"skipButtonRenderer":{"message":{"text":"bp","isTemplated":93,"trackingParams":"mo"},"trackingParams":"cp"}},"trackingParams":"qr","skipOffsetMilliseconds":60}},"trackingParams":"zf","visitAdvertiserRenderer":{"buttonRenderer":{"style":"ya","text":{"simpleText":"fv"},"icon":{"iconType":"bx"},"navigationEndpoint":{"clickTrackingParams":"bw","commandMetadata":{"webCommandMetadata":{"url":"ht","webPageType":"gv","rootVe":14}},"urlEndpoint":{"url":"wi","target":"te"}},"trackingParams":"gr"}},"adBadgeRenderer":{"simpleAdBadgeRenderer":{"text":{"text":"ox","isTemplated":66,"trackingParams":"td"},"trackingParams":"ng"}},"adDurationRemaining":{"adDurationRemainingRenderer":{"templatedCountdown":{"templatedAdText":{"text":"zu","isTemplated":15,"trackingParams":"py"}},"trackingParams":"hb"}},"adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"vn","size":"cw","isDisabled":56,"serviceEndpoint":{"clickTrackingParams":"jh","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"zx"},"trackingParams":"yl"}},"popupType":"tw"}},"icon":{"iconType":"ar"},"trackingParams":"vi","accessibilityData":{"accessibilityData":{"label":"hy"}}}},"hoverText":{"simpleText":"ap"},"trackingParams":"pp"}},"flyoutCtaRenderer":{"flyoutCtaRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"ol"}]},"trackingParams":"kz"},"headline":{"text":"wa","isTemplated":43,"trackingParams":"yb"},"description":{"text":"cl","trackingParams":"aq"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"xg"},"navigationEndpoint":{"clickTrackingParams":"wp","commandMetadata":{"webCommandMetadata":{"url":"uh","webPageType":"bs","rootVe":44}},"urlEndpoint":{"url":"xq","target":"fi"}},"trackingParams":"fo"}},"startMs":5,"trackingParams":"kh"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"ir"},"elementId":"mp","inPlayerSlotId":"fh","inPlayerLayoutId":"bh"}},"trackingParams":"ao","layoutId":"gc","associatedPlayerBytesLayoutId":"up"}},{"adActionInterstitialRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"wj"}]},"trackingParams":"zr"},"headline":{"text":"rq","isTemplated":82,"trackingParams":"gr"},"description":{"text":"fj","isTemplated":57,"trackingParams":"li"},"actionButton":{"buttonRenderer":{"style":"mu","text":{"simpleText":"cg"},"navigationEndpoint":{"clickTrackingParams":"eb","commandMetadata":{"webCommandMetadata":{"url":"vn","webPageType":"nw","rootVe":96}},"urlEndpoint":{"url":"bs","target":"dr"}},"trackingParams":"iq"}},"durationMilliseconds":39,"countdownRenderer":{"timedPieCountdownRenderer":{"trackingParams":"mt"}},"navigationEndpoint":{"clickTrackingParams":"uz","loggingUrls":[{"baseUrl":"rn"}],"commandMetadata":{"webCommandMetadata":{"url":"cu","webPageType":"qs","rootVe":26}},"urlEndpoint":{"url":"ty","target":"he"}},"trackingParams":"bw","backgroundImage":{"thumbnail":{"thumbnails":[{"url":"pd"}]},"trackingParams":"wm"},"adRendererCommands":{"impressionCommand":{"clickTrackingParams":"io","commandExecutorCommand":{"commands":[{"clickTrackingParams":"hd","loggingUrls":[{"baseUrl":"hz"}],"pingingEndpoint":{"hack":81}}]}}},"skipButton":{"skipButtonRenderer":{"message":{"text":"db","isTemplated":42,"trackingParams":"ga"},"trackingParams":"pa"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"bt"},"layoutId":"ec","inPlayerSlotId":"nl","inPlayerLayoutId":"qh","associatedPlayerBytesLayoutId":"qe"}}]}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"rj"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"zf","adTimeOffset":{"offsetStartMilliseconds":"63","offsetEndMilliseconds":"83"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"59","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_START","adTimeOffset":{"offsetStartMilliseconds":"330100","offsetEndMilliseconds":"594666"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"0","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"65","offsetEndMilliseconds":"30"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"51","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wg"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"56","offsetEndMilliseconds":"86"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"25","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"nh"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_END","adTimeOffset":{"offsetStartMilliseconds":"25","offsetEndMilliseconds":"13"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"32","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ti"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"47","offsetEndMilliseconds":"84"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"10","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"go"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"14","offsetEndMilliseconds":"87"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"79","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"34","offsetEndMilliseconds":"12"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"27","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"fp"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"66","offsetEndMilliseconds":"35"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"98","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"cn"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"59","offsetEndMilliseconds":"8"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"26","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wz"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"84","offsetEndMilliseconds":"90"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"92","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"nl"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"50","offsetEndMilliseconds":"67"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"96","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ov"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"13","offsetEndMilliseconds":"2"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"52","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"by"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"73","offsetEndMilliseconds":"64"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"67","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"uc"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"10","offsetEndMilliseconds":"zo"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"22","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"en"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_SELF_START"}},"renderer":{"actionCompanionAdRenderer":{"headline":{"text":"eg","isTemplated":93,"trackingParams":"it"},"description":{"text":"ux","isTemplated":43,"trackingParams":"sj"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"de"},"navigationEndpoint":{"clickTrackingParams":"ex","commandMetadata":{"webCommandMetadata":{"url":"ue","webPageType":"ow","rootVe":77}},"urlEndpoint":{"url":"yh","target":"pg"}},"trackingParams":"xf"}},"iconImage":{"thumbnail":{"thumbnails":[{"url":"te","width":19,"height":23}]},"trackingParams":"lv"},"bannerImage":{"thumbnail":{"thumbnails":[{"url":"gj","width":38,"height":67}]},"trackingParams":"ow"},"navigationEndpoint":{"clickTrackingParams":"um","commandMetadata":{"webCommandMetadata":{"url":"fq","webPageType":"fd","rootVe":61}},"urlEndpoint":{"url":"gi","target":"tq"}},"trackingParams":"ie","adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"ng","size":"xv","isDisabled":53,"icon":{"iconType":"bq"},"navigationEndpoint":{"clickTrackingParams":"yl","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"po"},"trackingParams":"hi"}},"popupType":"sb"}},"trackingParams":"ho","accessibilityData":{"accessibilityData":{"label":"kl"}}}},"hoverText":{"simpleText":"xd"},"trackingParams":"dv"}},"adVideoId":"je","impressionPings":[{"baseUrl":"xj"}],"adLayoutLoggingData":{"serializedAdServingDataEntry":"dt"},"associatedCompositePlayerBytesLayoutId":"te"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"vs"}}}],"adSlots":[{"adSlotRenderer":{"adSlotMetadata":{"slotId":"1234","slotType":"SLOT_TYPE_PLAYER_BYTES","adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ob"},"triggerEvent":"SLOT_TRIGGER_EVENT_BEFORE_CONTENT"},"fulfillmentContent":{"fulfilledLayout":{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"ot","layoutType":"xg","adLayoutLoggingData":{"serializedAdServingDataEntry":"yk"}},"renderingContent":{"playerBytesSequentialLayoutRenderer":{"sequentialLayouts":[{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"je","layoutType":"ww","adLayoutLoggingData":{"serializedAdServingDataEntry":"ve"}},"renderingContent":{"instreamVideoAdRenderer":{"skipOffsetMilliseconds":94,"pings":{"impressionPings":[{"baseUrl":"pl"},{"baseUrl":"zs"}],"errorPings":[{"baseUrl":"hh"}],"mutePings":[{"baseUrl":"qh"}],"unmutePings":[{"baseUrl":"ey"}],"pausePings":[{"baseUrl":"pz"}],"rewindPings":[{"baseUrl":"bh"}],"resumePings":[{"baseUrl":"mw"}],"skipPings":[{"baseUrl":"si"}],"closePings":[{"baseUrl":"oh"}],"progressPings":[{"baseUrl":"ly","offsetMilliseconds":1},{"baseUrl":"ac","offsetMilliseconds":80},{"baseUrl":"sy","offsetMilliseconds":72}],"fullscreenPings":[{"baseUrl":"kw"}],"activeViewViewablePings":[{"baseUrl":"oz"}],"endFullscreenPings":[{"baseUrl":"uc"}],"activeViewMeasurablePings":[{"baseUrl":"vu"}],"abandonPings":[{"baseUrl":"sf"}],"activeViewFullyViewableAudibleHalfDurationPings":[{"baseUrl":"qg"}],"completePings":[{"baseUrl":"jv"}],"activeViewTracking":{"trafficType":"sq"}},"clickthroughEndpoint":{"clickTrackingParams":"fn","commandMetadata":{"webCommandMetadata":{"url":"tf","webPageType":"ox","rootVe":73}},"urlEndpoint":{"url":"ny","target":"uc"}},"csiParameters":[{"key":"qe","value":"em"}],"playerVars":"suppress_creator_endscreen=1&is_trueview_action","elementId":"bq","trackingParams":"dr","legacyInfoCardVastExtension":"pa","sodarExtensionData":{"siub":"mi","bgub":"hc","scs":"cw","bgp":"co"},"externalVideoId":"ya","adLayoutLoggingData":{"serializedAdServingDataEntry":"jj"},"layoutId":"sc"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"nr","layoutType":"kn","adLayoutLoggingData":{"serializedAdServingDataEntry":"cf"}},"renderingContent":{"adActionInterstitialRenderer":{"durationMilliseconds":52,"trackingParams":"yq","abandonCommands":{"commands":[{"clickTrackingParams":"wi","loggingUrls":[{"baseUrl":"jb"}],"pingingEndpoint":{"hack":90}}]},"skipPings":[{"baseUrl":"av"}],"layoutId":"nj"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"nl","layoutType":"wm","adLayoutLoggingData":{"serializedAdServingDataEntry":"zw"}},"renderingContent":{"instreamVideoAdRenderer":{"skipOffsetMilliseconds":80,"pings":{"impressionPings":[{"baseUrl":"ji"},{"baseUrl":"ao"},{"baseUrl":"cc"}],"errorPings":[{"baseUrl":"jt"}],"mutePings":[{"baseUrl":"mn"},{"baseUrl":"ce"}],"unmutePings":[{"baseUrl":"rd"},{"baseUrl":"lb"}],"pausePings":[{"baseUrl":"et"},{"baseUrl":"fv"}],"rewindPings":[{"baseUrl":"ft"}],"resumePings":[{"baseUrl":"qj"},{"baseUrl":"ot"}],"skipPings":[{"baseUrl":"ky"},{"baseUrl":"jb"}],"closePings":[{"baseUrl":"hw"}],"progressPings":[{"baseUrl":"vh","offsetMilliseconds":36},{"baseUrl":"um","offsetMilliseconds":77},{"baseUrl":"sq","offsetMilliseconds":19},{"baseUrl":"ui","offsetMilliseconds":15},{"baseUrl":"nl","offsetMilliseconds":86}],"fullscreenPings":[{"baseUrl":"rp"},{"baseUrl":"cn"}],"activeViewViewablePings":[{"baseUrl":"ml"},{"baseUrl":"kq"}],"endFullscreenPings":[{"baseUrl":"ym"}],"activeViewMeasurablePings":[{"baseUrl":"di"},{"baseUrl":"ol"}],"abandonPings":[{"baseUrl":"aj"},{"baseUrl":"wo"}],"activeViewFullyViewableAudibleHalfDurationPings":[{"baseUrl":"ms"},{"baseUrl":"uj"}],"startPings":[{"baseUrl":"gy"}],"firstQuartilePings":[{"baseUrl":"ly"}],"secondQuartilePings":[{"baseUrl":"sw"}],"thirdQuartilePings":[{"baseUrl":"gt"}],"completePings":[{"baseUrl":"hu"},{"baseUrl":"gs"}],"activeViewTracking":{"trafficType":"mr"}},"clickthroughEndpoint":{"clickTrackingParams":"yq","commandMetadata":{"webCommandMetadata":{"url":"dn","webPageType":"ms","rootVe":54}},"urlEndpoint":{"url":"hs","target":"jt"}},"csiParameters":[{"key":"zn","value":"eq"}],"playerVars":"bi","elementId":"gr","trackingParams":"qc","legacyInfoCardVastExtension":"xv","sodarExtensionData":{"siub":"ul","bgub":"yr","scs":"ui","bgp":"vy"},"externalVideoId":"fp","adLayoutLoggingData":{"serializedAdServingDataEntry":"gt"},"layoutId":"bh"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"xy","layoutType":"bf","adLayoutLoggingData":{"serializedAdServingDataEntry":"rj"}},"renderingContent":{"adActionInterstitialRenderer":{"durationMilliseconds":95,"trackingParams":"ee","abandonCommands":{"commands":[{"clickTrackingParams":"mi","loggingUrls":[{"baseUrl":"yi"},{"baseUrl":"tm"}],"pingingEndpoint":{"hack":47}}]},"skipPings":[{"baseUrl":"uk"},{"baseUrl":"yj"}],"layoutId":"ft"}}}}]}},"layoutExitNormalTriggers":[{"id":"hq","onLayoutSelfExitRequestedTrigger":{"triggeringLayoutId":"hv"}}],"layoutExitSkipTriggers":[{"id":"up","skipRequestedTrigger":{"triggeringLayoutId":"nm"}},{"id":"yl","skipRequestedTrigger":{"triggeringLayoutId":"gh"}},{"id":"zd","skipRequestedTrigger":{"triggeringLayoutId":"mo"}},{"id":"bc","skipRequestedTrigger":{"triggeringLayoutId":"jj"}}],"layoutExitMuteTriggers":[{"id":"ql","skipRequestedTrigger":{"triggeringLayoutId":"hr"}},{"id":"rc","skipRequestedTrigger":{"triggeringLayoutId":"ln"}}]}}},"slotEntryTrigger":{"id":"lc","beforeContentVideoIdStartedTrigger":{}},"slotFulfillmentTriggers":[{"id":"xq","slotIdEnteredTrigger":{"triggeringSlotId":"da"}}],"slotExpirationTriggers":[{"id":"vv","slotIdExitedTrigger":{"triggeringSlotId":"re"}},{"id":"jg","onNewPlaybackAfterContentVideoIdTrigger":{}}]}}],"adBreakHeartbeatParams":"mw","frameworkUpdates":{"entityBatchUpdate":{"mutations":[{"entityKey":"pz","type":"az","payload":{"offlineabilityEntity":{"key":"ql","command":{"innertubeCommand":{"clickTrackingParams":"nz","ypcGetOfflineUpsellEndpoint":{"params":"pw"}}},"addToOfflineButtonState":"os","contentCheckOk":false,"racyCheckOk":false,"loggingDirectives":{"trackingParams":"xp","visibility":{"types":"1"},"enableDisplayloggerExperiment":true}}}}],"timestamp":{"seconds":"19","nanos":12}}}}}',
objectRepresentation:{playerResponse:IKb}}];var aG;aG=function(a,b,c){this.methodCodeName=a;this.isAsync=b;this.attestationOffset=c};
_.aIa=[new aG("b.f_",!1,0),new aG("j.s_",!1,2),new aG("r.s_",!1,4),new aG("e.h_",!1,6),new aG("i.s_",!0,8),new aG("s.t_",!1,10),new aG("p.h_",!1,12),new aG("s.i_",!1,14),new aG("f.i_",!1,16),new aG("a.b_",!1,18),new aG("a.o_",!1),new aG("g.o_",!1,22),new aG("p.i_",!1,24),new aG("p.m_",!1),new aG("n.k_",!0,20),new aG("i.f_",!1),new aG("a.s_",!0),new aG("m.c_",!1),new aG("n.h_",!1,26),new aG("o.p_",!1)].reduce(function(a,b){a[b.methodCodeName]=b;return a},{});var LHa,nHa,wHa,qHa,tHa,EHa,NHa,PHa,HHa,bG;LHa=2;nHa=2;wHa=2;qHa=2;tHa=2;EHa=2;NHa=2;PHa=["Z2xvYmFsQ2FsbGJhY2tz","b25BYm5vcm1hbGl0eURldGVjdGVk","b25BZFNraXA=","cmF3X3BsYXllcl9yZXNwb25zZQ=="];HHa=[{id:"primary"},{classes:["ytd-two-column-browse-results-renderer","style-scope"]},{id:"masthead-ad",classes:["ytd-rich-grid-renderer"]},{classes:["ytd-rich-grid-renderer","style-scope"]},{classes:["ytd-banner-promo-renderer","style-scope"]},{classes:["ytd-ad-slot-renderer"]}];bG={};
_.KKb=(bG["b.f_"]=function(){return _.l(function(a){return a.nextAddress==1?_.p(a,(_.SBa()!==void 0?_.On(Error("vf")):_.IBa()).then(function(){return 1},function(b){if(b.message==="Biscotti id is disabled")return 3;
_.Dl("Failed fetching bid");return 0}),2):a.return(a.yieldResult)})},bG["j.s_"]=CHa,bG["r.s_"]=AHa,bG["e.h_"]=function(){return FHa(GHa(HHa))},bG["n.h_"]=function(){return FHa(GHa([{id:"player-ads",
classes:["ytd-merch-shelf-renderer","ytp-featured-product"]}]))},bG["i.s_"]=DHa,bG["p.h_"]=function(){return 2},bG["s.t_"]=function(){return LHa},bG["s.i_"]=MHa,bG["f.i_"]=pHa,bG["a.b_"]=yHa,bG["a.o_"]=KHa,bG["g.o_"]=JHa,bG["p.i_"]=IHa,bG["p.m_"]=sHa,bG["n.k_"]=function(){return _.Fi("NKDSTAT",2)},bG["i.f_"]=vHa,bG["a.s_"]=function(){return _.Fi("ASDSTAT",2)},bG["m.c_"]=function(){return 2},bG["o.p_"]=function(){for(var a=[],b=0,c=0;c<PHa.length;c++)a[c]=PHa[c],b++;
a[b]="d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tz";return OHa(a)},bG);var LKb,MKb,NKb;LKb=function(){this.ongoingFlowNonces=new Map};
_.kq=function(){MKb||(MKb=new LKb);return MKb};
_.iq=function(a,b,c){return{eventType:{flowEventNamespace:a,flowEventType:b},metadata:c,statusCode:void 0,csn:void 0,can:void 0}};
_.cIa=function(a,b){var c=_.kq(),d=NKb(c,b,!0);_.jq(c,a,b,d)};
_.jq=function(a,b,c,d){a={flowNonce:d||NKb(a,c),flowType:c,flowEventType:b.eventType};b.metadata&&(a.flowMetadata=b.metadata);b.statusCode!==void 0&&(a.flowEventStatus=b.statusCode);b.csn&&(a.csn=b.csn);b.can&&(a.can=b.can);_.xl("flowEvent",a,void 0)};
NKb=function(a,b,c){c=c===void 0?!1:c;var d=a.ongoingFlowNonces.get(b);if(!d||c)d=Bn(16),a.ongoingFlowNonces.set(b,d);return d};var dIa=function(){};
dIa.prototype.flush=function(a,b){a=a===void 0?[]:a;b=b===void 0?!1:b;if(_.w("enable_client_streamz_web")){a=_.h(a);for(var c=a.next();!c.done;c=a.next())c=ueb(c.value),c={serializedIncrementBatch:_.Bc(c.JSC$7456_serializeBinary())},_.xl("streamzIncremented",c,{sendIsolatedPayload:b})}};var mq;var cG=function(a,b,c,d,e,g,k){c=c===void 0?!1:c;d=d===void 0?!1:d;g=g===void 0?_.YF():g;this.hasRun=!1;this.JSC$10676_playerPromiseResolver=a;this.playerProvider=b;this.JSC$10676_miniplayerActive=c;this.fromHistory=d;this.previousVideoId=e;this.JSC$10676_playlistController=g;this.tempData=k;this.JSC$10676_enforcementCounter=new _.phb};
_.z(cG,gF);cG.prototype.validate=function(a){return!(!a.data.playerResponse||a.data.page!=="watch"&&a.data.page!=="shorts"||this.hasRun)};
cG.prototype.handle=function(a){var b=this,c=_.y(a.endpoint,_.Un),d=_.y(a.endpoint,_.uq);if(_.w("kevlar_continue_playback_without_player_response")&&(c==null?0:c.videoId)&&this.previousVideoId&&(c==null?void 0:c.videoId)===this.previousVideoId&&(c==null?0:c.continuePlayback)&&!this.fromHistory)this.JSC$10676_playerPromiseResolver.resolve();else{var e={};c?e.watch_endpoint=c:d&&(e.watch_endpoint=d,d.endTimeSeconds&&(e.end=d.endTimeSeconds));a.data.page==="watch"?(a.data.filler||this.JSC$10676_miniplayerActive||
(_.Mo("cfg"),_.Ll.getInstance().triggerAction("yt-start-loading-watch")),Object.assign(e,OKb(this,a.endpoint)),_.w("enable_masthead_quartile_ping_fix")&&Object.assign(e,PKb(this)),c=!_.w("web_honor_cache_for_back")&&this.fromHistory?{cached_load:!0}:void 0,Object.assign(e,c),a.data.forceExternalPlaylist&&(e.external_list=!0)):a.data.page==="shorts"&&_.Ll.getInstance().triggerAction("yt-start-loading-shorts");if(c=this.playerProvider()){try{c.loadVideoWithPlayerResponse(a.data.playerResponse,e),c.getPlayerPromise().then(this.JSC$10676_playerPromiseResolver.resolve)}catch(g){_.Bl(g),
this.JSC$10676_playerPromiseResolver.resolve()}this.hasRun=!0;c.getPlayerPromise().then(function(g){g.addEventListener("onAbnormalityDetected",function(){var k=a.data.playerResponse,m=g.getVideoData().cpn;NHa=0;_.JKb=m;if(m=$Ha(k))b.JSC$10676_enforcementCounter.increment("IN_PLAYER"),_.lq(5),_.w("ab_st_vid_ks")?g.pauseVideo(!0):g.stopVideo(),k.playabilityStatus=Object.assign({},k.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:m}}),k.videoDetails=void 0,_.Ll.getInstance().triggerOptionalAction("yt-updated-playability-status",
k.playabilityStatus)})})}else _.Dl(Error("Lf"))}};
var OKb=function(a,b){var c=_.y(b,_.Un);if(b&&c&&c.playlistId&&c.videoId&&(a=a.JSC$10676_playlistController,a.queueProxy?(a=a.queueProxy,c=a.listId===c.playlistId?a.attributionData.get(c.videoId):void 0):c=void 0,c))return{queue_info:c}},PKb=function(a){var b;
if((b=a.tempData)==null?0:b.adpings)return{adpings:a.tempData.adpings}};var dG=function(a,b,c){this.hasRun=!1;this.JSC$10689_playerPromiseResolver=a;this.pageRequest=b;this.JSC$10689_playlistController=c};
_.z(dG,gF);dG.prototype.validate=function(a){return!!_.Cf.getValueByKeys.apply(null,[a.data].concat(_.De(pKb)))};
dG.prototype.handle=function(a){var b=this;this.JSC$10689_playerPromiseResolver.promise.then(function(){var c=a.data;var d=_.Cf.getValueByKeys.apply(null,[c].concat(_.De(iKb))),e=_.Cf.getValueByKeys.apply(null,[c].concat(_.De(nKb))),g=_.Cf.getValueByKeys.apply(null,[c].concat(_.De(kKb)));var k=(k=_.Cf.getValueByKeys.apply(null,[c].concat(_.De(jKb))))?{videoId:k.videoId,thumbnail:k.thumbnail,title:k.title?_.Vp(k.title):void 0,shortBylineText:k.author?_.Vp(k.author):void 0}:void 0;var m=void 0;_.w("web_get_playlist_id_from_current_endpoint_ks")||
(m=_.Cf.getValueByKeys.apply(null,[c].concat(_.De(lKb))));var n=_.Cf.getValueByKeys.apply(null,[c].concat(_.De(oKb))),r=_.Cf.getValueByKeys.apply(null,[c].concat(_.De(mKb))),t=!!n||!!r&&!!r.results&&r.results.length>0,u=0;e&&e.currentIndex&&e.localCurrentIndex&&(u=e.currentIndex-e.localCurrentIndex);e&&e.playlistId&&(m=e.playlistId);c={rawResponse:c,autoplayRenderer:d,hasRelatedVideoData:t,playingVideo:k,playingVideoId:g,playlistPanelRenderer:e,playlistId:m,playlistIndex:e&&e.currentIndex,relatedVideoArgs:n,
endScreenRenderer:r,playlistIndexOffset:u};a:{d=b.JSC$10689_playlistController;e=b.pageRequest;d.response=c;if(DKb(c))d.downloadPlaylistProxy&&d.downloadPlaylistProxy.getPlaylistId()===CKb(c)||(d.downloadPlaylistProxy=new aKb(CKb(c),d.setPlaylistData.bind(d),d.isPlayingOfflineVideo.bind(d))),d.responsePlaylistData=d.downloadPlaylistProxy.getPlaylistData(),d.listId=CKb(c),d.index=0;else if(c.playlistPanelRenderer&&c.playlistId&&c.autoplayRenderer)c.playlistId.startsWith("TLPQ")?d.queueProxy?d.listId===
c.playlistId?(d.index=c.playlistIndex,d.responsePlaylistData=c.playlistPanelRenderer,d.queueProxy.JSC$10565_setCurrentIndex(d.index)):c.playingVideoId&&d.index!==void 0&&e.clientParams.autoSaveToQueue&&(d.index+=1,d.queueProxy.JSC$10565_setCurrentIndex(d.index),d.queueProxy.addVideos([c.playingVideoId],{},d.index)):(d.queueProxy=new _.PF(d.JSC$10619_playlistNetworkManager,c.playlistId,d.setPlaylistData.bind(d),d.clearQueue.bind(d),_.hHa(c.playlistPanelRenderer),d.storage),d.responsePlaylistData=c.playlistPanelRenderer,
d.listId=c.playlistId,d.index=c.playlistIndex):(d.index=c.playlistIndex,d.listId!==c.playlistId&&d.clearQueue(),d.responsePlaylistData=c.playlistPanelRenderer,d.listId=c.playlistId,d.playlistProxy=new hKb(d.JSC$10619_playlistNetworkManager,c.playlistId,d.setPlaylistData.bind(d),_.hHa(c.playlistPanelRenderer)));else if(!d.queueProxy)d.responsePlaylistData=void 0;else if(c.playingVideoId&&e.clientParams.autoSaveToQueue){if(d.index===void 0){_.Bl(Error("Hf"));d.clearQueue();break a}d.queueProxy.videoIds.includes(c.playingVideoId)||
(d.index+=1,d.queueProxy.JSC$10565_setCurrentIndex(d.index),d.queueProxy.addVideos([c.playingVideoId],{},d.index))}_.ZF(d,_.$F(d,d.response.autoplayRenderer))}})};var QKb=function(a,b){b=b===void 0?_.YF():b;vF.call(this);this.chunkProcessors.push(new dG(this.JSC$10316_playerPromiseResolver,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},b));this.chunkProcessors.push(new cG(this.JSC$10316_playerPromiseResolver,a,!1,!1));_.w("web_response_commands_chunk_processor")&&this.chunkProcessors.push(new wF)};
_.z(QKb,vF);QKb.prototype.processChunk=function(a){a&&a.data.player===void 0&&this.JSC$10316_playerPromiseResolver.resolve();vF.prototype.processChunk.call(this,a)};var eG=function(a,b){a=a===void 0?{layer:0}:a;this.hasRun=!1;this.createScreenConfig=a;this.parentOverride=b};
_.z(eG,gF);eG.prototype.validate=function(a){return!(this.hasRun||!a.endpoint)};
eG.prototype.handle=function(a){var b=_.ls(),c,d,e=(d=_.y((c=a.endpoint)==null?void 0:c.commandMetadata,_.co))==null?void 0:d.rootVe;this.parentOverride&&e?_.pF(b,e,this.parentOverride,this.createScreenConfig):MIb(b,a.endpoint,this.createScreenConfig);this.hasRun=!0};var fG=function(a,b){this.hasRun=!1;this.JSC$10700_chunkHandler=a;this.previousVideoId=b};
_.z(fG,gF);fG.prototype.validate=function(a){return _.w("kevlar_continue_playback_without_player_response")&&(a=_.y(a.endpoint,_.Un),(a==null?0:a.videoId)&&this.previousVideoId&&(a==null?void 0:a.videoId)===this.previousVideoId&&(a==null?0:a.continuePlayback))?!1:this.JSC$10700_chunkHandler.chunksProcessed===0};
fG.prototype.handle=function(a){_.Ll.getInstance().triggerAction("yt-stop-old-player",a.data,!0)};var RKb=function(a){a=a===void 0?{layer:0}:a;vF.call(this);this.chunkProcessors.push(new fG(this));this.chunkProcessors.push(new eG(a));this.chunkProcessors.push(new uF(a))};
_.z(RKb,vF);var SKb=function(){this.hasRun=this.hasRun=!1};
_.z(SKb,gF);SKb.prototype.validate=function(a){return!this.hasRun&&!(!a.data.csn||!a.data.rootVe)};
SKb.prototype.handle=function(a){this.hasRun=!0;_.iBa(a.data.csn,a.data.rootVe,3)};var TKb=function(){gF.apply(this,arguments)};
_.z(TKb,gF);TKb.prototype.validate=function(a){return!!a.data.preconnect};
TKb.prototype.handle=function(a){_.Lo("bc");a=_.h(a.data.preconnect);for(var b=a.next();!b.done;b=a.next())b=b.value,(new Image).src=b};var UKb=function(a,b,c){c=c===void 0?{layer:0}:c;vF.call(this);this.chunkProcessors.push(new cG(this.JSC$10316_playerPromiseResolver,a));this.chunkProcessors.push(new eG(c));this.chunkProcessors.push(new uF(c))};
_.z(UKb,vF);var VKb=function(a,b,c,d,e){c=c===void 0?{layer:0}:c;d=d===void 0?_.YF():d;vF.call(this);var g=!!b&&!!b.clientParams&&!!b.clientParams.miniplayer;g&&this.chunkProcessors.push(new SKb);this.chunkProcessors.push(new dG(this.JSC$10316_playerPromiseResolver,b,d));this.chunkProcessors.push(new TKb);var k,m;this.chunkProcessors.push(new cG(this.JSC$10316_playerPromiseResolver,a,g,!((k=b.clientParams)==null||!k.fromHistory),(m=b.clientParams)==null?void 0:m.previousVideoId,d,b.tempData));var n;this.chunkProcessors.push(new fG(this,
(n=b.clientParams)==null?void 0:n.previousVideoId));var r;(r=b.clientParams)!=null&&r.fromHistory||(c.layer||(c=Object.assign({},c,{layer:g?3:0})),this.chunkProcessors.push(new eG(c,e)),this.chunkProcessors.push(new uF(c)));_.w("web_response_commands_chunk_processor")&&this.chunkProcessors.push(new wF)};
_.z(VKb,vF);var gG,YKb;gG={};
_.WKb=(gG["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},gG["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},gG["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},gG["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},gG["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},gG["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},gG["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},gG);_.hG=new _.Ek("yt-edu");_.XKb=function(){this.JSC$10716_eduDisplayedThisLoad_={}};
YKb=function(a){var b=_.XKb.getInstance();var c=_.$i("kevlar_tooltip_impression_cap");b=c&&parseInt(_.hG.get(a+"-impression")||0,10)>=c||_.hG.get(a+"-dismissed")?!1:(c=_.WKb[a])&&!b.JSC$10716_eduDisplayedThisLoad_[c.setKey||a]&&(c.titleText&&_.vo(c.titleText)||c.bodyText&&_.vo(c.bodyText))?!0:!1;if(!b)return null;b=_.WKb[a];if(!b)return null;c=b.bodyText?_.vo(b.bodyText):void 0;var d=b.titleText?_.vo(b.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:b.position,popup:{bubbleHintRenderer:{text:d?
_.Vp(d):void 0,detailsText:c?_.Vp(c):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Vp(_.vo("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:a}}]}}}}}}}},{eduImpressionAction:{key:a}}]};
_.qx(_.XKb);var eIa=!1;var iIa={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app"};for(var ZKb="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),$Kb=[],iG=6;iG>=1;iG--)$Kb.push({columnCount:iG,query:iG==1?0:iG*2*107-4+32,className:"grid-"+iG+"-columns",width:iG*2*107+"px"});_.bLb=function(a){this.actionRouter_=a=a===void 0?_.Ll.getInstance():a;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.aLb(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.aLb=function(a){var b=a.miniGuideVisible_?72:0,c=a.documentWidth_-(a.guidePersistentAndVisible_?240:b);return $Kb.find(function(d){return c>d.query})};
_.qx(_.bLb);var cLb=function(){var a=this;this.JSC$10729_keyboardInUse=!1;document.addEventListener("keydown",function(){a.onKeydown()});
document.addEventListener("mousedown",function(){a.JSC$10729_keyboardInUse=!1})},dLb;
cLb.prototype.isKeyBoardInUse=function(){return this.JSC$10729_keyboardInUse};
cLb.prototype.onKeydown=function(){this.JSC$10729_keyboardInUse=!0};var eLb,lG;_.jG=new _.Ek("yt-mentions");_.kG=function(){};
eLb=function(a,b){return lG(b,"drag-to-reorder-edu-displayed")};
lG=function(a,b,c,d,e,g){c=c===void 0?"OPEN_POPUP_POSITION_TOP":c;if(b){if(_.jG.get(b))return;_.jG.set(b,!0,d)}if(e&&g!==void 0){b=Number(_.jG.get(e)||0);if(b>=g)return;_.jG.set(e,b+1)}return[{openPopupAction:{popupType:"HINT",position:c,popup:{bubbleHintRenderer:{detailsText:a,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.qx(_.kG);var fLb,gLb,hLb;fLb=function(a,b,c,d){this.JSC$10739_taskManager_=a;this.onFulfilled_=typeof b==="function"?b:null;this.onRejected_=typeof c==="function"?c:null;this.JSC$10739_context_=d};
gLb=function(a,b){a.onFulfilled_&&_.zu(a.JSC$10739_taskManager_,function(){a.onFulfilled_.call(a.JSC$10739_context_,b)})};
hLb=function(a,b){a.onRejected_&&_.zu(a.JSC$10739_taskManager_,function(){a.onRejected_.call(a.JSC$10739_context_,b)})};
_.mG=function(a){this.JSC$10742_taskManager_=a;this.callbacks_=[]};
_.mG.prototype.then=function(a,b,c){this.callbacks_.push(new fLb(this.JSC$10742_taskManager_,a,b,c));return this};
_.mG.prototype.onSuccess=function(a){this.callbacks_.forEach(function(b){gLb(b,a)})};
_.mG.prototype.onFailure=function(a){this.callbacks_.forEach(function(b){hLb(b,a)})};
_.mG.prototype.cancel=function(){this.callbacks_.length=0};
yfb(_.mG);_.kIa=null;_.Ct=new _.jB("ACTIVITY_TOKEN");var pIa=/^[a-zA-Z0-9_\-]{11}$/;var qIa=_.Hy(function(){var a,b;return(b=(a=window).matchMedia)==null?void 0:b.call(a,"(prefers-reduced-motion: reduce)").matches});var iLb=_.Hy(function(){if(window.MediaSource&&typeof window.MediaSource.isTypeSupported==="function")return window.MediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');if(window.ManagedMediaSource&&typeof window.ManagedMediaSource.isTypeSupported==="function")return window.ManagedMediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');var a=_.Ji("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");a||(a=_.pg("VIDEO"),_.Rj("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
a));return!!(a&&a.canPlayType&&a.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var jLb;_.nG=new _.jB("SHORTS_CONTROLLER_TOKEN");jLb=new _.jB("SHORTS_STATE_STORE_TOKEN");var oG=function(a,b){var c=_.Kd.apply(2,arguments);a=a===void 0?0:a;_.qj.call(this,b,c);this.errorType=a;Object.setPrototypeOf(this,this.constructor.prototype)};
_.z(oG,_.qj);var kLb,lLb,mLb,nLb,pLb,J6a,cx,f8a,tLb,sLb,zLb,wLb,vLb;kLb=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(a){return a+"="}).join("|"));
lLb=RegExp(".*\\?.*ybp=1.*");mLb=["FEcommerce_cart","SPcommerce_checkout"];nLb=RegExp(".*\\?.*playnext=1.*");_.pG=function(a,b,c,d){this.watchEndpointMap=a;this.reelWatchEndpointMap=b;this.innerTubeTransportService=c;this.fetchPbj=d;this.forceWebFEForAdsTesting=!1};
pLb=function(a,b,c){var d=_.v().resolve(_.Xi(oLb));_.pG.instance=new _.pG(a,b,c,d)};
_.qLb=function(a,b){var c=_.$i("web_pbj_log_warning_rate",0);c=c>0&&Math.random()<c;var d;if((d=_.y(b.commandMetadata,_.co))==null||!d.rootVe)return c&&_.Dl(Error("Rf")),!1;var e;d=(e=_.y(b.commandMetadata,_.co))==null?void 0:e.url;if(!d)return c&&_.Dl(Error("Sf")),!1;if(nLb.test(d))return!0;if(kLb.test(d))return c&&_.Dl(Error("Tf`"+d)),!1;var g;e=(g=_.y(b,_.oq))==null?void 0:g.browseId;if(lLb.test(d)&&(!e||!mLb.includes(e)))return c&&_.Dl(Error("Uf`"+d)),!1;if(_.y(b,_.Un)){if(a.forceWebFEForAdsTesting)return c&&
_.Dl(Error("Vf")),!1;if(!(a.watchEndpointMap.watchNext&&a.watchEndpointMap.player||_.w("kevlar_fetch_initial_data_op_watch_client")))return c&&_.Dl(Error("Nf")),!1;a=_.$i("web_pbj_log_warning_rate",0);a=a>0&&Math.random()<a;_.y(b,_.Un)?nIa(b)?b=!0:(a&&_.Dl(Error("Of")),b=!1):(a&&_.Dl(Error("Nf")),b=!1);return b}if(_.y(b,_.uq))return oIa(b);if(_.y(b,_.PE))return!0;b=_.Qt(a.innerTubeTransportService,b);c&&_.Dl(Error("Wf"));return b};
J6a=function(a,b,c,d,e,g){b={url:b};if(c==null?0:c.itct)b.parentTrackingParams=c.itct;var k=_.Zp(YHb);return _.RF(a.innerTubeTransportService,b,k).then(function(m){(m=m.endpoint)||(m=_.yF);(c==null?0:c.itct)&&m&&!m.trackingParams&&(m.trackingParams=c.itct);var n=sq(m);return cx(a,m,c,d,n,e,g)})};
cx=function(a,b,c,d,e,g,k){if(a.fetchPbj&&!_.qLb(a,b)){var m=a.fetchPbj(b),n=_.qo(m.then(function(da){if(!da)throw Error("Xf");k(n)||g(b,da);return da}));
return n}var r,t={rootVe:(m=_.y(b.commandMetadata,_.co))==null?void 0:m.rootVe,url:(r=_.y(b.commandMetadata,_.co))==null?void 0:r.url,endpoint:b,page:e};if(_.y(b,_.Un)){var u,x={contentPlaybackContext:_.vq(c,(u=_.y(b.commandMetadata,_.co))==null?void 0:u.url,d)},A=_.St();_.w("web_streaming_watch")&&window.TextDecoderStream?(m=rLb(a.innerTubeTransportService,b,x,function(da){!t.response&&da.content&&(t.response=da.content);!t.playerResponse&&da.player&&(t.playerResponse=da.player);g(b,t)}),r=LBa(b),
r.length&&(t.preconnect=r,g(b,t)),sLb(m,A,t).catch(function(da){da instanceof oG&&da.errorType===2&&tLb(a,b,x,t,g,k,A)})):tLb(a,b,x,t,g,k,A);
return A.promise}if(_.y(b,_.uq)){var C;if(((C=_.y(b,_.uq))==null?void 0:C.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var F=_.St();_.uLb(_.v().resolve(_.nG),b).then(function(da){vLb(a,c,d,e,g,F,da)});
return F.promise}m=_.qo();var J;r={contentPlaybackContext:_.vq(c,(J=_.y(b.commandMetadata,_.co))==null?void 0:J.url,d)};(J=a.reelWatchEndpointMap.player)&&(J=J().JSC$11742_getRequest(b,r))&&(m=_.RF(a.innerTubeTransportService,J.innerTubeRequest,J.input,b.clickTrackingParams,J.config));J=_.qo();(u=a.reelWatchEndpointMap.reelItemWatch)&&(u=u().JSC$11742_getRequest(b))&&(J=_.RF(a.innerTubeTransportService,u.innerTubeRequest,u.input,b.clickTrackingParams,u.config));u=_.qo();(C=a.reelWatchEndpointMap.reelWatchSequence)&&
_.y(b,_.uq).sequenceParams&&(r=C().JSC$11742_getRequest(b,r))&&(u=_.RF(a.innerTubeTransportService,r.innerTubeRequest,r.input,b.clickTrackingParams,r.config));r=_.qo(t);C=_.St();wLb(b,r,m,J,u,g,k,C);return C.promise}var I;if(_.y(b,jIa)&&((I=_.y(b.commandMetadata,_.co))==null?0:I.url))return m=vJa(_.Mg(Ff().location.href),_.Mg(_.y(b.commandMetadata,_.co).url)).toString(),J6a(a,m,c,d,g,function(){return!1});
if(_.y(b,_.PE))return g(b,t),_.qo(t);if(_.Qt(a.innerTubeTransportService,b)){var R=_.Rt(a.innerTubeTransportService,b,{tempData:c,disableCache:c.disableCache}).then(function(da){t.response=da;k(R)||g(b,t);return t});
return R}return _.qo(t)};
_.yLb=function(a,b,c,d){if(_.y(b,_.Un)||_.y(b,_.uq)&&(_.w("mweb_enable_shorts_innertube_player_prefetch")||_.w("kevlar_enable_shorts_prefetch_in_sequence"))||_.y(b,eEb)&&_.w("web_enable_prefetching_videos_on_home")){var e,g={contentPlaybackContext:_.vq(c,(e=_.y(b.commandMetadata,_.co))==null?void 0:e.url,d),prefetchPlaybackContext:sIa(c)},k,m,n;if(((k=_.y(b,_.Un))==null?void 0:(m=k.watchEndpointSupportedPrefetchConfig)==null?void 0:(n=m.prefetchHintConfig)==null?void 0:n.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(c=
a.watchEndpointMap.watchNext)if(g=c().JSC$11742_getRequest(b,g))return Promise.resolve(_.RF(a.innerTubeTransportService,g.innerTubeRequest,g.input,void 0,g.config).then(function(u){return u}))}else if(_.y(b,_.uq)&&_.w("web_prefetch_riw_for_next_video")){if(c=a.reelWatchEndpointMap.reelItemWatch)if((c=c().JSC$11742_getRequest(b,g))&&_.RF(a.innerTubeTransportService,c.innerTubeRequest,c.input,void 0,c.config).then(function(u){return u}),c=a.reelWatchEndpointMap.player)if(g=c().JSC$11742_getRequest(b,
g))return Promise.resolve(_.RF(a.innerTubeTransportService,g.innerTubeRequest,g.input,void 0,g.config).then(function(u){return u}))}else if(c=a.watchEndpointMap.player)if(g=c().JSC$11742_getRequest(b,g))return Promise.resolve(_.RF(a.innerTubeTransportService,g.innerTubeRequest,g.input,void 0,g.config).then(function(u){return u}))}else if(_.Qt(a.innerTubeTransportService,b)){var r={tempData:c},t=xLb(a.innerTubeTransportService,b);
return t?new Promise(function(u,x){var A,C;return _.l(function(F){if(F.nextAddress==1)return _.p(F,t,2);if(F.nextAddress!=4)return A=F.yieldResult,A.JSC$11749_getStoreKey(b,r)?_.p(F,_.Rt(a.innerTubeTransportService,b,r),4):(x(new _.qj("Prefetching request builder with no store key.",b)),F.jumpTo(0));C=F.yieldResult;u(C);_.ue(F)})}):Promise.reject(new _.qj("Prefetching unregistered request builder.",b))}return Promise.reject(new _.qj("No request builder available to prefetch endpoint.",b))};
f8a=function(a,b){var c,d,e;if(_.y(b,_.Un)){var g=a.watchEndpointMap.watchNext;g&&(c=g());(a=a.watchEndpointMap.player)&&(d=a())}else if(_.y(b,_.uq))(g=a.reelWatchEndpointMap.reelItemWatch)&&(c=g()),(g=a.reelWatchEndpointMap.player)&&(d=g()),(a=a.reelWatchEndpointMap.reelWatchSequence)&&(e=a());else{a:{a=WTa(b,a.innerTubeTransportService.endpointMap);if(a!==void 0)if(typeof a.then==="function")_.Bl(new _.qj("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",b));else break a;
a=void 0}a&&(c=a)}var k,m,n;return{content:(k=c)==null?void 0:k.JSC$11749_getStoreKey(b),player:(m=d)==null?void 0:m.JSC$11749_getStoreKey(b),reelSequence:(n=e)==null?void 0:n.JSC$11749_getStoreKey(b)}};
tLb=function(a,b,c,d,e,g,k){var m=_.qo(),n=a.watchEndpointMap.player;n&&(n=n().JSC$11742_getRequest(b,c))&&(m=_.RF(a.innerTubeTransportService,n.innerTubeRequest,n.input,b.clickTrackingParams,n.config));n=_.qo();var r=a.watchEndpointMap.watchNext;r&&(c=r().JSC$11742_getRequest(b,c))&&(n=_.RF(a.innerTubeTransportService,c.innerTubeRequest,c.input,b.clickTrackingParams,c.config));a=_.qo(d);zLb(b,a,m,n,e,g,k)};
sLb=function(a,b,c){return _.l(function(d){if(d.nextAddress==1)return _.p(d,a,2);b.resolve(c);_.ue(d)})};
zLb=function(a,b,c,d,e,g,k){var m,n,r,t,u;_.l(function(x){switch(x.nextAddress){case 1:return _.p(x,b,2);case 2:m=x.yieldResult;if(g(k.promise))return k.resolve(m),x.return();e(a,m);n=LBa(a);if(!n.length){x.jumpTo(3);break}return _.p(x,b,4);case 4:m.preconnect=n,e(a,m);case 3:return _.pe(x,5),_.p(x,c,7);case 7:r=x.yieldResult;_.Jj(x,6);break;case 5:return t=_.te(x),k.reject(t),x.return();case 6:if(r===void 0)return m.reload=!0,e(a,m),k.resolve(m),x.return();if(g(k.promise))return k.resolve(m),x.return();
m.playerResponse=r;e(a,m);_.pe(x,8);return _.p(x,d,10);case 10:u=x.yieldResult;_.Jj(x,9);break;case 8:_.te(x);case 9:if(u===void 0)return m.response={responseContext:{}},k.resolve(m),x.return();if(g(k.promise))return k.resolve(m),x.return();m.response=u;e(a,m);k.resolve(m);_.ue(x)}})};
wLb=function(a,b,c,d,e,g,k,m){var n,r,t,u,x,A;_.l(function(C){switch(C.nextAddress){case 1:return _.p(C,b,2);case 2:n=C.yieldResult;if(k(m.promise))return m.resolve(n),C.return();g(a,n);r=LBa(a);if(!r.length){C.jumpTo(3);break}return _.p(C,b,4);case 4:n.preconnect=r,g(a,n);case 3:return _.pe(C,5),_.p(C,c,7);case 7:t=C.yieldResult;_.Jj(C,6);break;case 5:return u=_.te(C),m.reject(u),C.return();case 6:if(t===void 0)return n.reload=!0,g(a,n),m.resolve(n),C.return();if(k(m.promise))return m.resolve(n),
C.return();n.playerResponse=t;g(a,n);_.pe(C,8);return _.p(C,d,10);case 10:x=C.yieldResult;_.Jj(C,9);break;case 8:_.te(C);case 9:if(x===void 0)return n.response={responseContext:{}},m.resolve(n),C.return();if(k(m.promise))return m.resolve(n),C.return();n.response=x;g(a,n);_.pe(C,11);return _.p(C,e,13);case 13:A=C.yieldResult;_.Jj(C,12);break;case 11:_.te(C);case 12:if(k(m.promise))return m.resolve(n),C.return();n.reelWatchSequenceResponse=A;g(a,n);m.resolve(n);_.ue(C)}})};
vLb=function(a,b,c,d,e,g,k){var m,n,r,t,u,x;_.l(function(A){if((m=k)==null||!m.replacementEndpoint)return g.reject(),A.return();n=k.replacementEndpoint;(r=_.y(n,_.uq))?(k.sequenceContinuation&&(r.sequenceParams=k.sequenceContinuation),t=_.v().resolve(_.nG),u=r.sequenceParams,ALb(t,n)&&delete r.sequenceParams,x=cx(a,n,b,c,d,e,function(){return!1}),x.then(function(C){return _.l(function(F){if(F.nextAddress==1)return BLb(t,{reelWatchEndpoint:{sequenceParams:u}},C),_.p(F,0,2);
g.resolve(C);_.ue(F)})})):g.reject();
_.ue(A)})};_.CLb=function(a){if(a.validatedFragments_.length==0)return null;if(!a.mergedPrefetchedData_){for(var b=[],c=_.h(a.validatedFragments_),d=c.next();!d.done;d=c.next()){d=_.h(a.fragmentConfiguration_[d.value].graftedKeys);for(var e=d.next();!e.done;e=d.next())(e=a.prefetchedData_[e.value].trackingParams)&&b.push(e)}a.mergedPrefetchedData_={};Object.assign(a.mergedPrefetchedData_,a.prefetchedData_,{clientSideGrafts:b})}return a.mergedPrefetchedData_};var DLb;_.qG=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
DLb=function(a,b,c){if(_.lIa(b))return a.prefetchCache_.get(_.mIa(b,c))};_.rG=new _.jB("NAVIGATION_TOKEN");var ELb=function(a){var b=this;var c=c===void 0?vIa():c;var d=d===void 0?_.v().resolve(_.rG):d;this.onePickCommand=a;this.JSC$10844_playlistNetworkManager=c;this.navigationManager=d;this.videoPickerBuilder=_.tIa("yt-addtoplaylist");_.Rjb(Jlb(Klb(Ilb(this.videoPickerBuilder.setTitle(a.modalTitle).setSize(1E3).addView(Njb()).addView(Mjb())).addView("youtube"),a.selectButtonLabel)),function(e){b.handleAction(e)})};
ELb.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
ELb.prototype.handleAction=function(a){var b=this;if(a&&this.onePickCommand.listId&&a.action==="picked"&&a.docs){var c=[];a.docs.forEach(function(d){c.push({addedVideoId:d.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$10844_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,c).then(function(){_.w("playlist_add_video_hard_reload_killswitch")?b.navigationManager.reload():FLb(b.navigationManager)})}};var GLb=function(){if(this.constructor===GLb)throw new TypeError("Yf");};
_.f=GLb.prototype;_.f.dispose=function(){};
_.f.disconnect=function(){};
_.f.reconnect=function(){};
_.f.observe=function(a,b,c){return{element:a,option:c}};
_.f.unobserveByKey=function(){};var wIa=function(a,b){b=b===void 0?0:b;GLb.call(this);this.viewroot=a;this.defaultPrescanHeight=b;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),a?{root:a,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.z(wIa,GLb);_.f=wIa.prototype;_.f.dispose=function(){this.disconnect();this.handlers.clear()};
_.f.disconnect=function(a){this.isConnected=!1;this.pauseObservingUntilReconnect=a===void 0?!1:a;this.observer.disconnect();a=_.h(this.prescanObservers.values());for(var b=a.next();!b.done;b=a.next())b.value.disconnect()};
_.f.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var a=_.h(this.handlers),b=a.next();!b.done;b=a.next()){var c=_.h(b.value);b=c.next().value;var d=c.next().value;c=!1;d=_.h(d.keys());for(var e=d.next();!e.done;e=d.next())if((e=e.value)&&e.state==="prescan"){c=!0;break}c&&HLb(this,b).observe(b);this.observer.observe(b)}}};
_.f.handleObserveEvent=function(a){a=_.h(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=this.handlers.get(b.target);if(c){var d=b.isIntersecting;c=_.h(c);for(var e=c.next();!e.done;e=c.next()){var g=_.h(e.value);e=g.next().value;g=g.next().value;e&&(e.state==="visible"&&d||e.state==="hidden"&&!d)&&(g(b.target,e.state),e.calledOnce&&this.unobserveByKey({element:b.target,option:e}))}}}};
_.f.handlePrescanEvent=function(a){a=_.h(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=this.handlers.get(b.target);if(c&&b.isIntersecting){c=_.h(c);for(var d=c.next();!d.done;d=c.next()){var e=_.h(d.value);d=e.next().value;e=e.next().value;d&&d.state==="prescan"&&(e(b.target,d.state),d.calledOnce&&this.unobserveByKey({element:b.target,option:d}))}}}};
_.f.observe=function(a,b,c){var d=(d=this.handlers.get(a))&&d.has(c)?{element:a,option:c}:void 0;if(d)return d;d={element:a,option:c};this.handlers.has(a)||this.handlers.set(a,new Map);var e=this.handlers.get(a);e&&!e.has(c)&&e.set(c,b);this.pauseObservingUntilReconnect||(c.state==="prescan"&&HLb(this,a).observe(a),this.observer.observe(a));return d};
_.f.unobserveByKey=function(a){var b=this.handlers.get(a.element);if(b&&b.has(a.option)){b.delete(a.option);if(a&&a.option.state==="prescan")for(var c=_.h(this.prescanObservers.values()),d=c.next();!d.done;d=c.next())d.value.unobserve(a.element);b.size===0&&(this.handlers.delete(a.element),this.observer.unobserve(a.element))}};
var HLb=function(a,b){var c=a.defaultPrescanHeight;b.hasAttribute("prescan-height")&&(b=Number(b.getAttribute("prescan-height")),isNaN(b)||(c=b));if(a.prescanObservers.has(c))return a.prescanObservers.get(c);b="-0.1px -0.1px "+c+"px -0.1px";b=new IntersectionObserver(a.handlePrescanEvent.bind(a),a.viewroot?{root:a.viewroot,rootMargin:b}:{rootMargin:b});a.prescanObservers.set(c,b);return b};var ILb=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],JLb=function(){var a,b=this;this.JSC$10861_actionRouter=a=a===void 0?_.Ll.getInstance():a;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return b.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return b.visibilityObservedElementHandlerKeys}}},KLb,MLb,PLb;
JLb.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.w("kevlar_use_vimio_behavior")&&_.Fi("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=xIa())};
JLb.prototype.dispose=function(){this.visibilityMonitor&&_.Gz(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
JLb.prototype.handleVisibilityRefreshed=function(){for(var a=_.h(this.targetMap.entries()),b=a.next();!b.done;b=a.next()){var c=_.h(b.value);b=c.next().value;c=c.next().value;_.LLb(this,b,c)}};
_.OLb=function(a,b,c){MLb(a,c);var d=_.NLb(a,b);d.element=c;a.targetedElements.set(c,b);_.LLb(a,b,d)};
MLb=function(a,b){var c=a.targetedElements.get(b);if(c){var d=a.targetMap.get(c);d&&(delete d.element,a.targetMap.set(c,d));a.targetedElements.delete(b);a.visibilityObserver&&a.visibilityObservedElementHandlerKeys&&(c=a.visibilityObservedElementHandlerKeys.get(b))&&(a.visibilityObserver.unobserveByKey(c),a.visibilityObservedElementHandlerKeys.delete(b))}};
_.LLb=function(a,b,c){var d=c.action,e=c.element;e&&d&&(ILb.includes(b)||_.Fi("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||a.visibilityMonitor&&a.visibilityMonitor.isNodeVisible(e)?PLb(a,b,c):a.visibilityObserver&&(a.visibilityObservedElementHandlerKeys||(a.visibilityObservedElementHandlerKeys=new WeakMap),d=a.visibilityObserver.observe(e,function(){PLb(a,b,c);a.visibilityObservedElementHandlerKeys.delete(e)},{calledOnce:!0,
state:"visible"}),a.visibilityObservedElementHandlerKeys.set(e,d)))};
PLb=function(a,b,c){var d=c.action;(c=c.element)&&d&&(_.RB(a.JSC$10861_actionRouter,[d],c),a.targetMap.delete(b),a.targetedElements.delete(c),a.triggeredTargets.add(b))};
_.NLb=function(a,b){var c=a.targetMap.get(b);c||(c={},a.targetMap.set(b,c));return c};
_.sG=function(){KLb||(KLb=new JLb);return KLb};var QLb=document.createElement("div");QLb.style.touchAction="pan-down";var yIa=QLb.style.touchAction==="pan-down";var RLb,SLb;RLb=function(){this.hammerFn=xub();this.JSC$10869_screenManager=_.ls();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.ku(83615);_.rF(this.JSC$10869_screenManager,this.ve);zIa()};
_.tG=function(){SLb||(SLb=new RLb);return SLb};
RLb.prototype.registerTouchEvents=function(a,b,c){var d=_.Kd.apply(3,arguments),e=this.hammerFn(a,{cssProps:{},recognizers:[[Hammer.Rotate,{enable:!1}],[Hammer.Pinch,{enable:!1},["rotate"]],[Hammer.Swipe,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL}],[Hammer.Pan,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL},["swipe"]],[Hammer.Tap,{enable:!1}],[Hammer.Tap,{enable:!1,event:"doubletap",taps:2},["tap"]],[Hammer.Press,{enable:!1}]]});c&&e.set({touchAction:c});this.nodeManagerMapping.set(a,e);var g=
AIa(b);d=_.h(d);for(var k=d.next();!k.done;k=d.next()){k=k.value;if(k.includes("swipe")||k.includes("pinch")||k.includes("pan"))k.includes("swipe")?e.get("swipe").set({enable:!0,direction:g,velocity:.2}):k.includes("pinch")?e.get("pinch").set({enable:!0}):k.includes("pan")&&(e.get("pan").set({enable:!0,direction:g}),e.get("swipe").set({enable:!0,direction:g,velocity:.2}),e.get("swipe").recognizeWith("pan"));TLb(this,a,e,k)}};
var TLb=function(a,b,c,d){c.on(d,function(e){if(d.includes("pinch"))a.lastPinchTime=Date.now();else if(d.includes("swipe")&&Date.now()-a.lastPinchTime<400)return;e.pointerType!=="mouse"&&(e=d==="doubletap"?{coordinates:e.center}:d.includes("pan")?e:d.includes("swipe")?{target:e.target}:{},b.dispatchEvent(new CustomEvent(d,{bubbles:!0,composed:!0,detail:e})))})};
RLb.prototype.unregisterTouchEvents=function(a){var b=_.Kd.apply(1,arguments),c=this.nodeManagerMapping.get(a);if(c){b=_.h(b);for(var d=b.next();!d.done;d=b.next())c.off(d.value);this.nodeManagerMapping.delete(a);a.style.touchAction="unset"}};var ULb=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var BIa=null;var WLb;_.uG=function(a,b,c){var d=c&&c>0?c:0;c=d?Date.now()+d*1E3:0;if((d=d?(0,_.VLb)():WLb())&&window.JSON){typeof b!=="string"&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
_.vG=function(a){var b=WLb(),c=(0,_.VLb)();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};
_.wG=function(a){try{var b=WLb(),c=(0,_.VLb)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
_.VLb=_.Hy(function(){try{var a=new dpa;var b=a.isAvailable()?a:null}catch(c){return null}return b?new _.dn(b):null});
WLb=_.Hy(function(){var a=new epa;return a.isAvailable()?new _.dn(a):null});var XLb=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},TIa=function(){XLb.instance||(XLb.instance=new XLb);
return XLb.instance},UIa=function(a){var b=a.networkEvents;
a.networkEvents=[];return _.w("enable_network_monitoring")?b:[]};var YLb;YLb={};_.ZLb=Tj("yt-serviceworker-metadata",{objectStores:(YLb.auth={addedAtVersion:1},YLb["resource-manifest-assets"]={addedAtVersion:2},YLb),shared:!0,upgrade:function(a,b){b(1)&&Gk(a,"resource-manifest-assets");b(2)&&Gk(a,"auth")},
version:2});var HIa=self.location.origin+"/";IIa([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//]);IIa([/purge_shell=1/]);var $Lb=void 0;$Lb=$Lb===void 0?[]:$Lb;for(var aMb=[],bMb=_.h(omb),cMb=bMb.next();!cMb.done;cMb=bMb.next())aMb.push({key:cMb.value});for(var dMb=_.h($Lb),eMb=dMb.next();!eMb.done;eMb=dMb.next())aMb.push(eMb.value);var fMb,zq=_.ja==null?void 0:(fMb=_.ja.performance)==null?void 0:fMb.memory,LIa=!1,VIa={},OIa={},Aq={},Bq=navigator;var xG=function(a){this.JSC$10913_expiringStorage=new sj(a)};
xG.prototype.set=function(a,b,c){c=c!==void 0?Date.now()+c:void 0;this.JSC$10913_expiringStorage.set(a,b,c)};
xG.prototype.get=function(a){return this.JSC$10913_expiringStorage.get(a)};
xG.prototype.remove=function(a){this.JSC$10913_expiringStorage.remove(a)};var cJa=_.hx(["https://www.youtube.com/",""]),dJa=_.hx(["https://studio.youtube.com/",""]),iJa="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",fJa=null,nJa;var gMb=_.hx(["https://www.youtube.com/iframe_api"]),yG=function(){this.playerResolver_=_.St();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.Gy;this.playbackDurationSeconds_=0},hMb=function(a){var b=function(){return window.YT&&typeof window.YT.ready==="function"};
if(b())return _.qo(window.YT);var c=_.St(),d=_.pg("SCRIPT");d.onload=d.onreadystatechange=function(){d.readyState&&d.readyState!="loaded"&&d.readyState!="complete"||(d.onload=_.Gy,d.onreadystatechange=_.Gy,d.onerror=_.Gy,b()?c.resolve(window.YT):c.reject(new _.qj("Failed to load the iframe player library","script.onload",d.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
d.onerror=function(e){d.onload=_.Gy;d.onreadystatechange=_.Gy;d.onerror=_.Gy;c.reject(new _.qj("Failed to load the iframe player library","script.onerror",e&&e.target&&e.target.src))};
_.Zd(d,_.ef(gMb));a.insertBefore(d,a.firstChild);return c.promise},iMb=function(a,b,c){var d,e;
_.l(function(g){switch(g.nextAddress){case 1:return a.playbackEndedCallback_=c,_.pe(g,2),_.p(g,hMb(b.parentElement||null),4);case 4:d=g.yieldResult;_.Jj(g,3);break;case 2:return e=_.te(g),e instanceof _.qj&&e.args&&e.args[0]=="script.onerror"?_.Dl(e):_.Bl(e),g.return();case 3:d.ready(function(){return new d.Player(b,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:a.onPlayerReady_.bind(a),onStateChange:a.onPlayerStateChange_.bind(a),
onCueRangeExit:a.onCueRangeExit_.bind(a)}})}),_.ue(g)}})};
_.f=yG.prototype;_.f.getPlayerPromise=function(){return this.playerPromise_};
_.f.onPlayerReady_=function(a){this.playerResolver_.resolve(a.target)};
_.f.onPlayerStateChange_=function(a){if(a.data==YT.PlayerState.PLAYING){a=a.target;var b=a.getCurrentTime();a.addCueRange("playback",b,b+this.playbackDurationSeconds_)}};
_.f.onCueRangeExit_=function(a){a.data=="playback"&&(a.target.stopVideo(),this.playbackEndedCallback_())};
_.f.stopVideo=function(){this.playerPromise_.then(function(a){a.stopVideo()})};
var jMb=function(a){a.playerVars_&&a.playerPromise_.then(function(b){typeof b.cueVideoByPlayerVars!="function"?_.Dl(new _.qj("vmh: player API not ready","cueVideoByPlayerVars",typeof b.cueVideoByPlayerVars)):b.cueVideoByPlayerVars(a.playerVars_)})};
yG.prototype.playVideo=function(){var a=this;this.playerVars_&&this.playerPromise_.then(function(b){typeof b.loadVideoByPlayerVars!="function"?(b=new _.qj("vmh: player API not ready","loadVideoByPlayerVars",typeof b.loadVideoByPlayerVars),_.Bl(b)):b.loadVideoByPlayerVars(a.playerVars_)})};
var kMb=function(a,b,c,d,e){b&&(c===void 0&&(c=0),d===void 0&&(d=0),a.playbackDurationSeconds_=d/1E3,a.playerVars_={adformat:"17_8",videoId:b,suggestedQuality:"hd720",startSeconds:c/1E3,player_params:e})};
yG.prototype.mute=function(){this.playerPromise_.then(function(a){a.mute()})};
yG.prototype.unMute=function(){this.playerPromise_.then(function(a){a.unMute()})};var uJa=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var zG;zG=function(){this.tokenJars={};if(this.cookiesEnabled=_.nj()){var a=_.lj.get("CONSISTENCY",void 0);a&&lMb(this,{encryptedTokenJarContents:a})}};
_.wJa=function(){zG.instance||(zG.instance=new zG);return zG.instance};
zG.prototype.handleResponse=function(a,b){if(!b)throw Error("cg");var c,d;b=((c=b.innerTubeRequest.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)};
zG.prototype.replace=function(a,b){a=_.h(a);for(var c=a.next();!c.done;c=a.next())delete this.tokenJars[c.value.encryptedTokenJarContents];lMb(this,b)};
var lMb=function(a,b){if(b.encryptedTokenJarContents&&(a.tokenJars[b.encryptedTokenJarContents]=b,typeof b.expirationSeconds==="string")){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.tokenJars[b.encryptedTokenJarContents]},c*1E3);
a.cookiesEnabled&&_.mj("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};var mMb,AG;mMb=window.location.hostname.split(".").slice(-2).join(".");_.Mq=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var a=_.Fi("LOCATION_PLAYABILITY_TOKEN");_.Fi("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=nMb(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.mostRecentPosition=void 0)};
_.Mq.getInstance=function(){AG=_.Ji("yt.clientLocationService.instance");AG||(AG=new _.Mq,_.Rj("yt.clientLocationService.instance",AG));return AG};
_.Mq.prototype.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});if(this.mostRecentPosition)a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),a.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),a.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)a.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.Mq.prototype.handleResponse=function(a){var b;a=(b=a.responseContext)==null?void 0:b.locationPlayabilityToken;a!==void 0&&(this.locationPlayabilityToken=a,this.mostRecentPosition=void 0,_.Fi("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=nMb(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):_.mj("YT_CL",JSON.stringify({loctok:a}),15552E3,mMb,!0))};
var nMb=function(a){return a.localStorage===void 0?new _.Ek("yt-client-location"):a.localStorage};
_.Mq.prototype.clearLocationPlayabilityToken=function(a){a==="TVHTML5"?(this.localStorage=nMb(this))&&this.localStorage.remove("yt-location-playability-token"):_.Xoa("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.Mq.prototype.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("dg"));var b=!1,c=1E4;_.Fi("INNERTUBE_CLIENT_NAME")==="MWEB"&&(b=!0,c=15E3);return new Promise(function(d,e){navigator.geolocation.getCurrentPosition(function(g){a.mostRecentPosition=g;d(g)},function(g){e(g)},{enableHighAccuracy:b,
maximumAge:0,timeout:c})})};
_.Mq.prototype.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};
_.Mq.prototype.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};var oMb=function(a,b){var c=Jn();a||(a="unknown");b||(b="unknown");a="MAIN_APP_WEB_PAGE_TYPE_"+a.toUpperCase();a in eCb||(a="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");b="MAIN_APP_WEB_REQUEST_TYPE_"+b.toUpperCase();b in fCb||(b="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.Bw(c,{mainAppWeb:{pageType:a,requestType:b,isShellLoad:_.Gi("IS_SHELL_LOAD",!1)}})},pMb={start:function(){_.Bw(sBa(),{mainAppWeb:_.Nq()})},
success:function(){_.Cw(sBa(),"SUCCESS")},
failure:function(){_.Cw(sBa(),"FAILURE")},
cancelled:function(){_.Cw(sBa(),"CANCELLED")}};var qMb,rMb,BJa;qMb=_.hx(["/sw.js"]);rMb=_.hx(["/sw.js?0"]);_.sMb=_.ef(qMb);BJa=_.ef(rMb);var tMb=function(){var a=Error.apply(this,arguments);this.message=a.message;"stack"in a&&(this.stack=a.stack)};
_.z(tMb,Error);_.Qq.prototype.load=function(a){this.megabloxUrl_=_.Fi("YPC_MB_URL");_.Kn(this.megabloxUrl_,(0,_.wg)(function(){a&&a()},this))};
_.c5a=function(a,b,c,d,e,g,k,m,n,r,t){_.DJa(n);a.load((0,_.wg)(function(){try{var u=g?g:_.Fi("HL"),x=_.Fi("SESSION_INDEX");_.dCa("client",function(){Bhb("59",{helpCenterPath:"/youtube",locale:u,window:window}).JSC$7818_loadChatSupport({authuser:String(x)})})}catch(A){throw Oq(10,t,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),e&&e(A),_.Bl(A),A;
}uMb(this,b,c,d,e,g,k,m,n,r,t)},a))};
_.Qq.prototype.openFixFlowDialog=function(a,b,c,d){this.load((0,_.wg)(function(){try{vMb(this,_.Ji("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(a).withIntegratorCallback(b).load(c,d)}catch(e){throw _.Bl(e),e;}},this))};
var vMb=function(a,b,c,d){var e=b.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.w("enable_window_constrained_buy_flow_dialog")&&(e=e.usingPopupStyle(_.Ji("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));d&&(e=e.usingCloseCallback(d));b.bootstrap.fromPaymentsUrl(a.megabloxUrl_);a=b.bootstrap.asMashupMode(e);c=c?c:_.Fi("HL");a.usingGaiaIndex(_.Fi("SESSION_INDEX")).usingLocale(c).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.w("enable_google_payments_buyflow_material2_style_web")?
a.usingStyle(":m2;pc=#444;ac=#065fd4"):a.usingStyle(":md;pc=#444;ac=#065fd4");return a},uMb=function(a,b,c,d,e,g,k,m,n,r,t){try{var u=_.Ji("payments.business.integration");
if(!u)throw new tMb("payments.business.integration is undefined");var x=u.standaloneContextAuthId.forUserId(),A=vMb(a,u,g,m);k&&A.usingServerAnalyticsEventHandler(k);var C=A.inStandaloneContext(x).buyFlow(function(F){if(F&&(!F.integratorData||F.integratorData===""||F.error))if(F.error!=null)if(String(F.error)==="-1")_.EJa(n);else{var J=String(F.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";Oq(10,t,J,F.debugCode);
_.Pq(J,n,F.debugCode);J=new _.qj("PAYMENT_ERROR_MESSAGE::"+F.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+F.internalErrorDetails);_.Bl(J)}else Oq(10,t,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.Pq("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",n,"EMPTY_INTEGRATOR_DATA"),_.Bl(Error("fg"));c&&c(F)}).withEncryptedParameters(b);
r&&C.withClientParameters(V8a(_.g4a(r)));C.load(function(){Oq(24,t);_.No("ttc",void 0,"commerce_transaction");TCa("commerce_transaction");d&&d()},function(F){if(F==null?0:F.debugCode)var J=F==null?void 0:F.debugCode;
else if(!F||(F==null?0:F.debugCode))J="EMPTY_LOAD_FAILURE_ERROR",_.Bl(Error(J));else{J="EMPTY_LOAD_FAILURE_DEBUG_CODE";var I=new _.qj("LOAD_FAILURE:"+F.message," DEBUG_CODE:"+J);_.Bl(I)}Oq(10,t,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",J);_.Pq("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",n,J);_.Bl(F);e&&e(F)})}catch(F){throw F instanceof tMb&&(Oq(10,t,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),e&&e(F)),_.Bl(F),F;
}};var wMb;wMb=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.$4a=function(a,b){b=b===void 0?!1:b;a=wMb.test(a)?_.xd(a):null;!b&&window.payments||!a?(a=_.St(),b=a.promise,a.resolve()):b=_.QA(a,{attributes:{"data-payments-main":"",id:"payment-lib"}});return b};var xMb;xMb=_.hx(["//www.googletagmanager.com/gtm.js?id=",""]);_.BG=function(a,b){_.cu(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:b}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.Fi("GL")}),b=_.pg("SCRIPT"),b.async=!0,_.Zd(b,_.ef(xMb,a)),b.id="gtm",a=document.getElementsByTagName("script"),a.length==0?document.head.appendChild(b):(a=a[0],a.parentNode.insertBefore(b,a)))};
_.CG=function(a){if(a=JSON.parse(a))window.dataLayer=window.dataLayer||[],window.dataLayer.push(a)};var yMb,zMb;yMb=_.hx(["https://clients2.google.com/gr/gr_sync.js"]);_.Y4a=function(){};
_.Y4a.prototype.init=function(){if(zMb()){var a=_.St();a.resolve();return a.promise}return _.QA(_.ef(yMb)).then(function(){if(!zMb())throw Error("gg");},function(){throw Error("hg");
})};
_.Z4a=function(){if(!zMb())return"";var a=window.google.gr;a.init({async:{schedule:"sync"},merchantId:"youtube"});a.start();a=a.finish();return a==null?"":a};
zMb=function(){return window.google!=null&&window.google.gr!=null};var OKa,RKa=new Set,PKa;window.PolymerFakeBaseClassWithoutHtml=function(){};
_.P=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.z(_.P,PolymerFakeBaseClassWithoutHtml);_.kr=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.z(_.kr,PolymerFakeBaseClassWithoutHtml);var FJa=window.ShadyDOM;var mKa,kKa,oKa,pKa,rKa,sKa,DG,$q;mKa=_.w("enable_shadydom_free_scoped_query_methods");kKa=_.w("enable_shadydom_free_scoped_node_methods");oKa=_.w("enable_shadydom_free_scoped_readonly_properties_batch_one");pKa=_.w("enable_shadydom_free_parent_node");rKa=_.w("enable_shadydom_free_children");sKa=_.w("enable_shadydom_free_last_child");DG=window.ShadyDOM;_.er=DG&&DG.noPatch&&DG.wrap?DG.wrap:DG?function(a){return DG.patch(a)}:function(a){return a};
$q=function(a){if(a instanceof ShadowRoot)this.host=(0,_.er)(a.host),this.root=a;else if(a.$$){this.host=(0,_.er)(a);var b;this.root=(b=a.root)!=null?b:this.host}else if(a.polymerController){this.host=(0,_.er)(a);var c;this.root=(c=this.host.shadowRoot)!=null?c:this.host}else this.root=this.host=(0,_.er)(a)};
lKa();nKa();tKa();uKa();qKa();var AMb={querySelector:function(a,b){b=HJa(b,Uq(a));a=_.Vq(a);return Wq(a).prototype.querySelector.call(a,b)},
querySelectorAll:function(a,b){b=HJa(b,Uq(a));a=_.Vq(a);return Wq(a).prototype.querySelectorAll.call(a,b)}},BMb={appendChild:function(a,b){var c=Uq(a),d=_.Tq(b);
return _.iKa(_.Vq(a),c?_.Yq(b,c,d):b)},
cloneNode:function(a,b){var c=_.Tq(a);a=_.Vq(a);b=Wq(a).prototype.cloneNode.call(a,b);return c?Zq(b,c):b},
contains:function(a,b){var c=Uq(a),d=_.Tq(b);return c!==d?!1:jKa(a,b)},
insertBefore:function(a,b,c){var d=Uq(a),e=_.Tq(b);a=_.Vq(a);b=d?_.Yq(b,d,e):b;return Wq(a).prototype.insertBefore.call(a,b,c)},
removeChild:function(a,b){var c=Uq(a);a=_.Vq(a);b=c?Zq(b,c):b;return Wq(a).prototype.removeChild.call(a,b)},
replaceChild:function(a,b,c){var d=Uq(a),e=_.Tq(b);b=d?_.Yq(b,d,e):e?Zq(b,e):b;c=d?Zq(c,d):c;a=_.Vq(a);return Wq(a).prototype.replaceChild.call(a,b,c)},
getRootNode:function(a,b){b=b===void 0?{composed:!0}:b;var c;if(((c=b)!=null?c:{}).composed)a=SJa(a);else{b=a;for(a=JJa(a);a;)b=a,a=LJa(a);a=b}return a}},wKa=oKa?{firstChild:cKa,
nextSibling:$Ja,previousSibling:bKa,firstElementChild:dKa,lastElementChild:fKa,nextElementSibling:ZJa,previousElementSibling:aKa,childNodes:gKa}:{};pKa&&(wKa.parentNode=YJa);rKa&&(wKa.children=hKa);sKa&&(wKa.lastChild=eKa);mKa&&vKa(AMb);kKa&&vKa(BMb);xKa();var yKa=function(a){this.node=a instanceof ShadowRoot?a.host:a};
zKa();AKa();var EKa=new WeakMap;var GKa=Symbol("zd");var LKa=new Set(["tap","track","down","up"]),MKa=_.w("pbcm_fi_query_decorators");var CMb=function(){return _.kr.apply(this,arguments)||this};
_.z(CMb,_.kr);_.f=CMb.prototype;_.f.getState=function(){return this.store.getState()};
_.f.dispatch=function(a){this.store.dispatch(a)};
_.f.beforeRegister=function(){if(this&&typeof this==="object"){var a;var b=!!this.useSignals||!((a=this.polymerController)==null||!a.useSignals)}else b=!1;if(!b&&this.properties)for(b=_.h(Object.keys(this.properties)),a=b.next();!a.done;a=b.next()){var c=a.value;a=this.properties[c];if(a.selector){if(a.computed)throw Error("ng");c=["reduxPropertiesRecomputeTrigger",'"'+c+'"'].concat(_.De(a.selectorArgs||[])).join(",");a.computed="recomputeReduxSelector("+c+")"}}};
_.f.attached=function(){var a=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){a.reduxPropertiesRecomputeTrigger++}));
_.w("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.f.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.f.recomputeReduxSelector=function(a,b){var c=_.Kd.apply(2,arguments),d=this.properties[b].selector;if(!d)throw Error("lg`"+b);return d.apply(null,[this.store.getState()].concat(_.De(c)))};
_.f.select=function(a){var b=_.Kd.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return a.apply(null,[this.store.getState()].concat(_.De(b)))};
_.Um.Object.defineProperties(CMb.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("mg");}}});
var EG=CMb;EG.prototype.recomputeReduxSelector=EG.prototype.recomputeReduxSelector;_.U([_.O(),_.W("design:type",Number)],EG.prototype,"reduxPropertiesRecomputeTrigger",void 0);EG=_.U([_.lr()],EG);var FG=[],UKa={},DMb=function(){return Wm.apply(this,arguments)||this};
_.z(DMb,Wm);DMb.prototype._addPropertyEffect=function(a,b,c){if(b==="__observeEffects"&&c){var d,e=(d=c.info.method)!=null?d:c.info.methodName;if(e){var g=this[e];this[e]=function(){FG.push(e);try{g==null||g.apply(this,arguments)}finally{FG.pop()}}}}_.GC._addPropertyEffect.apply(this,[a,
b,c])};
DMb.prototype._setPendingProperty=function(a,b,c){if(FG.length){var d=FG[FG.length-1],e;(e=UKa[this.is])!=null&&e.has(d)||(VKa(this.is,d),_.xl("polymerPropertyChangedInObserver",{componentName:this.is,observerName:d}))}return _.GC._setPendingProperty.apply(this,[a,b,c])};
var mLa=DMb;mLa=_.U([gya()],mLa);var WKa=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),YKa,or={};_.w("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=or);var EMb=function(){return _.kr.apply(this,arguments)||this};
_.z(EMb,_.kr);EMb.prototype._setUnmanagedPropertyToNode=function(a,b,c){a.loggingStatus&&(a.loggingStatus.isDeclarativeExternal=!0);if(c!==a[b]||typeof c==="object")a[b]=c;a.is&&a.polymerController&&a.polymerController!==a&&pr(a.is,b,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");a.loggingStatus&&(a.loggingStatus.isDeclarativeExternal=!1)};
var bLa=EMb;bLa=_.U([_.lr()],bLa);XKa()&&(Gm.prototype._setUnmanagedPropertyToNode=(new bLa)._setUnmanagedPropertyToNode);_.nLa={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(a){},set polymerController(a){}}]};var FMb=function(){var a=Wm.apply(this,arguments)||this;a.json=function(){};
return a};
_.z(FMb,Wm);FMb.prototype.equals=function(a,b){return a===b};
FMb.prototype.isEmpty=function(a){return!a||_.Sa(a)&&a.length===0};
var vr=FMb;vr=_.U([gya()],vr);var GMb=function(a){a=cAa(a);VD.call(this,a)};
_.z(GMb,VD);GMb.prototype.addProvider=function(a){a=a.key?a:cAa([a])[0];var b=this.keyIdToIndex.get(a.key.id);if(b){if(dLa(a,this.providers[b]))throw Error("og`"+a.key.displayName);}else VD.prototype.addProvider.call(this,a)};
var HMb=new GMb([]);var IMb=!1;var jLa={};IMb||(iLa(),IMb=!0);
jLa.InjectBehavior={initializeInjection:function(){var a=this.provide;try{if((a=a!=null?a:[])&&a.length>0)for(var b=cAa(a),c=_.h(b),d=c.next();!d.done;d=c.next())HMb.addProvider(d.value);var e=new Set;eLa(this.behaviors||[],e);b={};for(var g=_.h(e),k=g.next();!k.done;k=g.next()){var m=k.value;m.inject&&Object.assign(b,m.inject)}this.inject&&Object.assign(b,this.inject);for(var n=_.h(Object.keys(b)),r=n.next();!r.done;r=n.next()){var t=r.value,u=b[t];try{this[t]=HMb.resolve(u)}catch(x){throw x;}}}catch(x){throw Error(x.message);
}}};var lLa;var oLa=/\bclass\b/.test(function(){}.toString()),rLa=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var JMb=function(a){this.wasDefined=!0;Array.isArray(a)||a instanceof Array?(this.JSC$11072_getImpl=a[0],this.JSC$11072_setImpl=a[1]):this.JSC$11072_getImpl=a};
_.f=JMb.prototype;_.f.getWithPath=function(a){return yr(this.JSC$11072_getImpl(),a)};
_.f.setWithPath=function(a,b){var c=this;if(a.length)throw Error("pg");if(!this.JSC$11072_setImpl)throw Error("qg");qh(function(){c.JSC$11072_setImpl(b)})};
_.f.notifyPath=function(){throw Error("rg");};
_.f.notifySplices=function(){throw Error("sg");};
_.f.getChangeRecordSignal=function(a,b){var c=this;if(a.length)throw Error("tg");return function(){var d=c.getWithPath(a);return{path:b!=null?b:"",base:d,value:d}}};
_.f.getSplicesSignal=function(){throw Error("ug");};
_.f.getPathMutationSignal=function(){throw Error("vg");};
_.f.pop=function(){throw Error("wg");};
_.f.push=function(){throw Error("xg");};
_.f.splice=function(){throw Error("yg");};
_.f.unshift=function(){throw Error("zg");};var GG=function(a){var b=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(a)||a instanceof Array?(this.JSC$11077_getImpl=a[0],this.JSC$11077_setImpl=a[1]):this.JSC$11077_getImpl=a;this.wasDefined=!1;hh(function(){b.wasDefined=b.JSC$11077_getImpl()!==void 0})};
GG.prototype.getWithPath=function(a){return yr(this.JSC$11077_getImpl(),a)};
GG.prototype.setWithPath=function(a,b){var c=this;if(a[a.length-1]!=="*"&&a[a.length-1]!=="splices"){if(a.length===0){if(!this.JSC$11077_setImpl)throw Error("Ag");this.wasDefined||(this.wasDefined=b!==void 0);qh(function(){c.JSC$11077_setImpl(b)})}else{for(var d=hh(function(){return c.getWithPath([])}),e=0;e<a.length-1;e++){if(!d)return;
d=d[a[e]]}e=a[a.length-1];d&&(d[e]=b);this.wasDefined||(this.wasDefined=a.length>1||b!==void 0)}KMb(this,a,{pathComponents:a,value:b})}};
GG.prototype.notifyPath=function(a,b){a.length===0?b&&this.setWithPath(a,b.value):KMb(this,a,{pathComponents:a,value:b==null?void 0:b.value,fallbackWhenUndefined:b==null?void 0:b.value})};
var KMb=function(a,b,c,d){if(a.setMutationSignal){var e=++a.mutationIndex,g=[a.observedPath],k=a.observedPath,m;b.length===0&&(m=k);for(var n=0;n<b.length;n++){var r=k.subPaths[b[n]];if(!r)break;g.push(r);k=r;n===b.length-1&&(m=r)}for(b=!1;g.length;)k=g.shift(),k.data={index:e,mutation:c,spliceMutationIndex:d},b||(b=k===m),b&&g.push.apply(g,_.De(Object.values(k.subPaths)));qh(function(){a.setMutationSignal(e)})}};
GG.prototype.notifySplices=function(a,b){var c=this,d=hh(function(){return c.getWithPath(a)}),e=[].concat(_.De(a),["splices"]);
KMb(this,e,{pathComponents:e,value:{indexSplices:b}});if(d==null?0:d.length)b=this.mutationIndex,e=[].concat(_.De(a),["length"]),KMb(this,e,{pathComponents:e,value:d.length},b)};
var LMb=function(a,b,c,d,e,g){a.notifySplices(c,[{index:d,addedCount:e,removed:g,object:b,type:"splice"}])},MMb=function(a,b){a=a.observedPath;
for(var c=0;c<b.length;c++){var d=b[c],e=a.subPaths[d];e||(e={pathComponents:b.slice(0,c+1),subPaths:{}},a.subPaths[d]=e);a=e}},OMb=function(a,b,c){MMb(a,b);
if(!a.getMutationSignal){var d=_.h(_.ih(a.mutationIndex,void 0,"QMrAub"));a.getMutationSignal=d.next().value;a.setMutationSignal=d.next().value}var e=a.getMutationSignal;return _.ph(function(){e();return c(NMb(a,b))},void 0,"ce54qf")};
GG.prototype.getChangeRecordSignal=function(a,b){var c=this,d=this.mutationIndex,e;return OMb(this,a,function(g){if(g&&g.index>d){var k=g.mutation;d=g.index;e=void 0}g=hh(function(){return c.getWithPath(a)});
if(k){var m=k.pathComponents[k.pathComponents.length-1],n=[].concat(_.De(k.pathComponents));if(m==="splices"||m==="length")return{base:g,path:(b?[b].concat(_.De(n)):n).join("."),value:k.value};var r=a.length>n.length?a:n,t;return{base:g!=null?g:k.fallbackWhenUndefined,path:(b?[b].concat(_.De(r)):r).join("."),value:(t=hh(function(){return c.getWithPath(r)}))!=null?t:k.fallbackWhenUndefined}}e||(e={base:g,
path:(b?[b].concat(_.De(a)):a).join("."),value:g});return e})};
GG.prototype.getSplicesSignal=function(a){var b=this.mutationIndex,c;return OMb(this,a,function(d){if(d&&d.index>b&&d.spliceMutationIndex!==b){var e=d.mutation;b=d.index;c=void 0}return e&&e.pathComponents[e.pathComponents.length-1]==="splices"?c=d=e.value:c})};
GG.prototype.getPathMutationSignal=function(a){var b=this;MMb(this,a);if(!this.getMutationSignal){var c=_.h(_.ih(this.mutationIndex,void 0,"tBKh7d"));this.getMutationSignal=c.next().value;this.setMutationSignal=c.next().value}var d=this.getMutationSignal,e=this.mutationIndex,g;return _.ph(function(){d();var k=NMb(b,a);if(k&&k.index>e&&k.mutation&&uLa(k.mutation.pathComponents,a)){var m=k.mutation;e=k.index}if(!g||e!==g.index){var n,r;k=(r=hh(function(){return b.getWithPath(a)}))!=null?r:(n=m)==null?
void 0:n.fallbackWhenUndefined;
g={index:e,value:k}}return g},void 0,"XXmDAf")};
var NMb=function(a,b){a=a.observedPath;b=_.h(b);for(var c=b.next();!c.done;c=b.next())a=a.subPaths[c.value];return a.data};
GG.prototype.pop=function(a){var b=this,c=hh(function(){return b.getWithPath(a)});
if(!(c instanceof Array))throw Error("Bg");var d=c.length>0,e=c.pop();d&&LMb(this,c,a,c.length,0,[e]);return e};
GG.prototype.push=function(a){var b=_.Kd.apply(1,arguments),c=this,d=hh(function(){return c.getWithPath(a)});
if(!(d instanceof Array))throw Error("Cg");var e=d.length,g=d.push.apply(d,_.De(b));b.length&&LMb(this,d,a,e,b.length,[]);return g};
GG.prototype.splice=function(a,b,c){var d=_.Kd.apply(3,arguments),e=this,g=hh(function(){return e.getWithPath(a)});
if(!(g instanceof Array))throw Error("Dg");b<0?b=g.length-Math.floor(-b):b&&(b=Math.floor(b));var k=g.splice.apply(g,[b,c].concat(_.De(d)));(d.length||k.length)&&LMb(this,g,a,b,d.length,k);return k};
GG.prototype.unshift=function(a){var b=_.Kd.apply(1,arguments),c=this,d=hh(function(){return c.getWithPath(a)});
if(!(d instanceof Array))throw Error("Eg");var e=d.unshift.apply(d,_.De(b));b.length&&LMb(this,d,a,0,b.length,[]);return e};var PMb=!0,QMb=!1,HNa=!1,RMb=!1,HG=!1,SMb=0;RMb=!1;SMb=0;PMb=!0;HG=QMb=HNa=!1;var IG=function(a,b,c){this.model=a;this.unknownSignalResolver=b;this.options=c;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];b=_.h(DLa());a=b.next().value;b=b.next().value;this.owner=a;this.disposeImpl=b};
IG.prototype.dispose=function(){if(!this.isDisposed){for(var a=_.h(this.childSignalProxies),b=a.next();!b.done;b=a.next())b.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var TMb=function(a,b){a=Vg(a.owner);try{b()}finally{Xg(a)}},UMb=function(a,b){var c={stack:[],
error:void 0,hasError:!1};try{_.Pr(c,_.Yg(a.owner)),b()}catch(d){c.error=d,c.hasError=!0}finally{_.Qr(c)}};
IG.prototype.effect=function(a){_.w("web_poly_si_remove_using")?TMb(this,function(){_.yh(a,"Vi5wCb")}):UMb(this,function(){_.yh(a,"iJbZff")})};
var VMb=function(a,b){a.options!=null||(a.options={});var c;(c=a.options).immutableProps!=null||(c.immutableProps=new Set);a.options.immutableProps.add(b)},GMa=function(a,b){b=""+b;
var c;if((c=a.model.__signalCache)==null?0:c.has(b))c=a.model.__signalCache.get(b),Array.isArray(c)&&VMb(a,b);var d,e,g;return(g=(d=a.options)==null?void 0:(e=d.immutableProps)==null?void 0:e.has(b))!=null?g:!1},WMb=function(a,b){var c;
a.unknownSignalResolver&&(c=a.unknownSignalResolver(b));var d,e;((d=a.options)==null?0:(e=d.immutableProps)==null?0:e.has(b))?c!=null||(c=new JMb(_.ih(a.model[b],void 0,"SYknZd"))):c!=null||(c=new GG(_.ih(a.model[b],void 0,"GCgq1e")));var g=a.model.hostElement;Object.defineProperty(a.model,b,{get:function(){$Ka(g,b);return c.getWithPath([])},
set:function(k){qr(g,b);a.setWithPath([b],k)},
configurable:!0});return c},Ar=function(a,b){b=""+b;
var c=a.signalCache[b];if(c!==void 0)return c;c=!1;var d;if((d=a.model.__signalCache)==null?0:d.has(b))if(c=a.model.__signalCache.get(b),Array.isArray(c))c=!0,VMb(a,b);else return a.signalCache[b]=a.model.__signalCache.get(b).signal,a.signalCache[b];var e,g;d=(g=(e=a.options)==null?void 0:e.reactivityMode)!=null?g:0;var k,m;if(!((k=a.options)==null?0:(m=k.reactiveProps)==null?0:m.has(b))&&!c&&d===1)throw Error("Fg`"+b);e=c?XMb(a,b):WMb(a,b);return a.signalCache[b]=e},XMb=function(a,b){var c=Object.getOwnPropertyDescriptor(a.model.constructor.prototype,
b),d=function(){return a.model[b]};
return new JMb(c&&c.get&&!c.set?d:[d,function(e){a.model[b]=e}])};
IG.prototype.getWithPath=function(a){var b=_.h(a);a=b.next().value;b=Rg(b);$Ka(this.model.hostElement,""+a);return Ar(this,a).getWithPath(b)};
IG.prototype.setWithPath=function(a,b){if(a.length){qr(this.model.hostElement,a.join("."));var c=_.h(a);a=c.next().value;c=Rg(c);Ar(this,a).setWithPath(c,b)}};
IG.prototype.getPathMutationSignal=function(a){var b=_.h(a);a=b.next().value;b=Rg(b);return Ar(this,a).getPathMutationSignal(b)};
IG.prototype.notifyPath=function(a,b){var c=_.h(a);a=c.next().value;c=Rg(c);Ar(this,a).notifyPath(c,b)};
var YMb=function(a,b){if(b.type==="literal")return function(){return{rootWasDefined:!0,value:b.value}};
var c=xr(b.path),d=_.h(c),e=d.next().value;d=Rg(d);var g,k;if(b.type==="path"&&(c.length===1||((g=a.options)==null?0:(k=g.immutableProps)==null?0:k.has(e))))return function(){var u=a.getWithPath(c.slice(0,1)),x=yr(u,c.slice(1));u=u!==void 0;HG&&(u=Ar(a,c[0]).wasDefined);return{rootWasDefined:u,value:x}};
var m=Ar(a,e);if(b.type==="path"){var n=m.getPathMutationSignal(d);return function(){var u=HG?m.wasDefined:Ch(a.owner,function(){return m.getWithPath([])})!==void 0;
var x,A=(x=n())==null?void 0:x.value;return{rootWasDefined:u,value:A}}}if(b.type==="splices"){var r=m.getSplicesSignal(d);
return function(){var u=r();return{rootWasDefined:HG?m.wasDefined:u!==void 0,value:u}}}var t=m.getChangeRecordSignal(d,""+e);
return function(){var u=t();return{rootWasDefined:HG?m.wasDefined:u!==void 0,value:u}}},ALa=function(a,b,c){var d=c.map(function(m){return YMb(a,m)}),e=c.length===0,g=[],k=c.length!==1||c[0].type!=="path"?!1:!0;
a.effect(function(){for(var m=d.length,n=[],r=!!g.length,t=0;t<m;t++){var u=d[t](),x=u.rootWasDefined;u=u.value;e||(e=x);n[t]=u;k&&(n[t+m]=r?g[t]:n[t],g[t]=u)}e&&Ch(a.owner,function(){return void b.apply(null,_.De(n))})})},vLa=function(a,b,c,d,e){var g=Ar(a,b);
e!==void 0&&g.setWithPath([],e);ALa(a,function(){var k=_.Kd.apply(0,arguments);qr(a.model.hostElement,b,!0);g.setWithPath([],c.apply(null,_.De(k)))},d)};
IG.prototype.arrayPush=function(a){var b=_.Kd.apply(1,arguments),c=_.h(a),d=c.next().value;c=Rg(c);d=Ar(this,d);return d.push.apply(d,[c].concat(_.De(b)))};
IG.prototype.arraySplice=function(a,b,c){var d=_.Kd.apply(3,arguments),e=_.h(a),g=e.next().value;e=Rg(e);g=Ar(this,g);return g.splice.apply(g,[e,b,c].concat(_.De(d)))};
IG.prototype.arrayUnshift=function(a){var b=_.Kd.apply(1,arguments),c=_.h(a),d=c.next().value;c=Rg(c);d=Ar(this,d);return d.unshift.apply(d,[c].concat(_.De(b)))};
IG.prototype.notifySplices=function(a,b){var c=_.h(a);a=c.next().value;c=Rg(c);Ar(this,a).notifySplices(c,b)};var JLa=/([^\s]+?)\(([\s\S]*)\)/,GLa=/\.([^.]+)$/,LLa=/\\,/g,ELa=/&comma;/g,FLa=/\\(.)/g,KLa=[],HLa={"*":"wildcard",splices:"splices"};var yMa=RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?((?:[a-zA-Z_$][\\w.:$\\-*]*)\\s*(?:\\(\\s*(?:(?:(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)(?:,\\s*(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*))*)?)\\)\\s*)?)(?:]]|}})","g"),RLa=/[A-Z]/,ZMb=["class","hidden","id","on-dom-change"],AMa=new Set([].concat(_.De(ZMb),
["if","notify-dom-change","restamp"])),BMa=new Set([].concat(_.De(ZMb),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),CMa=new Set(["restamp"]);var IMa=Symbol(),PMa=window;var XMa=window;var dNa=0,$Ma=0,Br=[],cNa=0,ZMa=!1,bNa=document.createTextNode("");(new window.MutationObserver(aNa)).observe(bNa,{characterData:!0});var Dr=new Map,Cr=0,$Mb=function(a){this.mappedHandleId=a},fNa=function(a,b,c,d){this.mappedHandleId=a;
var e=this;this.mappedHandleId=a;this.callback=b;this.waitTime=c;this.schedulerPriority=d;this.handleId=_.zk.addJob(function(){e.callback();Dr.delete(e.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.z(fNa,$Mb);fNa.prototype.cancel=function(){_.zk.cancelJob(this.handleId);Dr.delete(this.mappedHandleId)};
var gNa=function(a,b){this.mappedHandleId=a;var c=this;this.mappedHandleId=a;this.callback=b;this.handleId=eNa(function(){c.callback();Dr.delete(c.mappedHandleId)})};
_.z(gNa,$Mb);gNa.prototype.cancel=function(){var a=this.handleId-$Ma;a<0||Br.length<=a||(Br[a]=null);Dr.delete(this.mappedHandleId)};var kNa=function(){};
kNa.prototype.cancel=function(){this.jobHandle!==void 0&&(hNa(this.jobHandle),this.jobHandle=void 0)};
kNa.prototype.run=function(a,b,c){var d=this;this.cancel();this.callback=a;this.jobHandle=_.Er(function(){a();d.callback=void 0},b,c)};
kNa.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var iNa=new WeakMap;var aNb=gC(function(a){for(var b=a,c=0;c<3;c++)b=Object.getPrototypeOf(b);delete b.prototype.connectedCallback;var d=function(){return a.apply(this,arguments)||this};
_.z(d,a);d.prototype._attachDom=function(e){if(!e)return null;var g=(0,_.er)(this.hostElement);g.attachShadow({mode:"open",shadyUpgradeFragment:e});g.shadowRoot.appendChild(e);return g.shadowRoot};
d.prototype._takeAttributes=function(){for(var e=this.hostElement.attributes,g=0;g<e.length;g++){var k=e[g],m=void 0,n=void 0;(n=(m=this).__attributeReaction)==null||n.call(m,k.name,null,k.value)}};
d.prototype._readyClients=function(){a.prototype._readyClients.call(this);this.root=this};
d.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);a.prototype.connectedCallback.call(this)};
_.Um.Object.defineProperties(d,{template:{configurable:!0,enumerable:!0,get:function(){return d.prototype._template}}});
return d}),bNb=gC(function(a){var b=function(){return a.apply(this,arguments)||this};
_.z(b,a);b.prototype.created=function(){if(this.__notifyEffects)for(var c=_.h(Object.values(this.__notifyEffects)),d=c.next();!d.done;d=c.next()){d=_.h(d.value);for(var e=d.next();!e.done;e=d.next())e.value.fn=oNa}if(this.__reflectEffects)for(c=_.h(Object.values(this.__reflectEffects)),d=c.next();!d.done;d=c.next())for(d=_.h(d.value),e=d.next();!e.done;e=d.next())e.value.fn=pNa};
b.prototype._addEventListenerToNode=function(c,d,e){c=Gr(c);zm(c,d,e)||a.prototype._addEventListenerToNode.call(this,c,d,e)};
b.prototype._removeEventListenerFromNode=function(c,d,e){c=Gr(c);Am(c,d,e)||a.prototype._removeEventListenerFromNode.call(this,c,d,e)};
b.prototype._propertiesChanged=function(c,d,e){if(this.__dataToNotify&&this.__notifyEffects)for(var g=_.h(Object.keys(this.__dataToNotify)),k=g.next();!k.done;k=g.next()){k=k.value;var m=nNa(k);this.__notifyEffects[m]||delete this.__dataToNotify[k]}else this.__dataToNotify=null;a.prototype._propertiesChanged.call(this,c,d,e)};
b.prototype.fire=function(c,d,e){d=d===void 0?{}:d;var g;return _.io(Gr((g=e==null?void 0:e.node)!=null?g:this),c,d,e)};
b.prototype._ensureAttribute=function(c,d){var e=Gr(this);e.hasAttribute(c)||zr(e,d,c)};
b.prototype.isLightDescendant=function(c){var d=Gr(this);return Gr(d)!==c&&_.E(d).contains(c)&&_.E(d).getRootNode()===_.E(c).getRootNode()};
return b});
_.GD.ready=function(){var a;((a=this.hostElement)!=null?a:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var b;((b=this.hostElement)!=null?b:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.OD._subscribeIronResize=function(a){var b;((b=a.hostElement)!=null?b:a).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.OD._unsubscribeIronResize=function(a){var b;((b=a.hostElement)!=null?b:a).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var sNa=[Array,Boolean,Date,Number,Object,String],Ir=function(a,b,c,d){this.polySiInfo=a;this.polySiParams=b;this.polySiContext=c;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;d||this instanceof HTMLElement&&(d=this);if(!d)throw Error("Mg");this.allowedProps=b.allowedProps;this.hostElement=d;this.is=a.is;this.upgradeDisabled=!!b.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");a=new Set(b.reactiveSchemas.filter(function(e){return e.type!==
"observe"}).map(function(e){return e.propertyKey}));
this.signalProxy=new IG(this,void 0,{reactiveProps:a,reactivityMode:b.reactivityMode});this.__dataHasAccessor={};b=_.h(b.reactiveSchemas);for(a=b.next();!a.done;a=b.next())a=a.value,a.type==="signal"&&(this.__dataHasAccessor[a.propertyKey]=!0);this.upgradeDisabled||cNb(this)};
Ir.prototype.getExtraMethodsToForward=function(){return[]};
var cNb=function(a){a.polySiContext.didRegister||(a.registered(),a.polySiContext.didRegister=!0);a.polySiContext.finalizedTemplate||(a.polySiContext.finalizedTemplate={},a.polySiParams.templateGetter&&(a.polySiContext.finalizedTemplate.processedTemplate=YMa(a.polySiParams.templateGetter,a.polySiParams.is)));dNb(a);var b=a.hostElement;b.loggingStatus!=null||(b.loggingStatus={});b.loggingStatus.isInitializing=!0;hh(function(){return void a.created()});
b.loggingStatus.isInitializing=!1;a.isPolySiElementConnected&&eNb(a)},eNb=function(a){a.didCallReady||(hh(function(){return void a.ready()}),a.didCallReady=!0);
a.isAttached=!0;a.attached()};
_.f=Ir.prototype;_.f.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||eNb(this)};
_.f.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.f.attributeChangedCallback=function(a,b,c){if(this.upgradeDisabled)a==="disable-upgrade"&&c===null&&(this.upgradeDisabled=!1,cNb(this));else if(b!==c){var d=_.pn(a),e=this.polySiContext.typesForSignals[d];if(e){switch(e){case Object:try{var g=JSON.parse(c)}catch(m){g=c}break;case Array:try{g=JSON.parse(c)}catch(m){g=null}break;case Date:g=isNaN(c)?String(c):Number(c);g=new Date(g);break;case Boolean:g=c!==null;break;case Number:g=Number(c);break;default:g=c}this[d]=g}d=_.h(this.polySiParams.behaviors);
for(e=d.next();!e.done;e=d.next())g=void 0,(g=e.value.attributeChanged)==null||g.call(this,a,b,c);var k;(k=this.attributeChanged)==null||k.call(this,a,b,c)}};
_.f.attributeChangedCallbackWrapper=function(a,b,c){this.attributeChangedCallback(a,b,c)};
_.f.setPropertiesFromInitialAttributeValues=function(){for(var a=0;a<this.hostElement.attributes.length;a++){var b=this.hostElement.attributes[a];(b.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(b.name))&&this.attributeChangedCallback(b.name,null,b.value)}};
_.f.created=function(){this.provide=this.polySiParams.provide;var a;(a=this.initializeInjection)==null||a.call(this);a=_.h(this.polySiParams.reactiveSchemas);for(var b=a.next();!b.done;b=a.next())b=b.value,b.type==="signal"&&(this.mutablePropNames.add(b.propertyKey),Ar(this.signalProxy,b.propertyKey));rNa(this,this.polySiInfo,this.polySiParams.behaviors);a=_.h(this.polySiParams.reactiveSchemas);for(b=a.next();!b.done;b=a.next())b=b.value,b.type==="signal"&&b.value!==void 0&&(this.signalProxy.model[b.propertyKey]=
typeof b.value==="function"?b.value.call(this):b.value);if(this.polySiParams.signalProperties)for(a=_.h(this.polySiParams.signalProperties),b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;((c=this.__signalCache)==null?0:c.has(b))||(this.signalProxy.model[b]=void 0)}RMb||fNb(this);qNa(this);a=_.h(this.polySiParams.behaviors);for(b=a.next();!b.done;b=a.next())c=void 0,(c=b.value.created)==null||c.call(this);var d;(d=this.polySiInfo.created)==null||d.call(this)};
_.f.registered=function(){var a=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var b=Object.getPrototypeOf(this);b.addReactiveSchema=function(m){a.polySiParams.reactiveSchemas.push(m)};
for(var c=_.h(this.polySiParams.behaviors),d=c.next();!d.done;d=c.next()){var e=void 0;(e=d.value.beforeRegister)==null||e.call(b)}var g;(g=this.polySiInfo.beforeRegister)==null||g.call(b);b.addReactiveSchema=uNa;c=_.h(this.polySiParams.behaviors);for(d=c.next();!d.done;d=c.next())e=void 0,(e=d.value.registered)==null||e.call(b);var k;(k=this.polySiInfo.registered)==null||k.call(b)};
_.f.ready=function(){var a;(a=this.beforeReady)==null||a.call(this);RMb&&fNb(this);var b;if(a=(b=this.polySiContext.finalizedTemplate)==null?void 0:b.processedTemplate){a=WMa(a.template,a.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:a.hasInsertionPoint,thisCtx:this});b=a.nodesById;a=a.root;var c=(0,_.er)(this.hostElement);if(!c.attachShadow)throw Error("Fd");c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:a}),c.shadowRoot.appendChild(a));this.root=c.shadowRoot;
this.$=b}gNb(this);b=_.h(this.polySiParams.behaviors);for(a=b.next();!a.done;a=b.next())c=void 0,(c=a.value.ready)==null||c.call(this);var d;(d=this.polySiInfo.ready)==null||d.call(this)};
_.f.attached=function(){for(var a=_.h(this.polySiParams.behaviors),b=a.next();!b.done;b=a.next()){var c=void 0;(c=b.value.attached)==null||c.call(this)}var d;(d=this.polySiInfo.attached)==null||d.call(this)};
_.f.detached=function(){for(var a=_.h(this.polySiParams.behaviors),b=a.next();!b.done;b=a.next()){var c=void 0;(c=b.value.detached)==null||c.call(this)}var d;(d=this.polySiInfo.detached)==null||d.call(this)};
var dNb=function(a){for(var b=_.h(a.polySiParams.behaviors),c=b.next();!c.done;c=b.next())if(c=c.value,c.listeners)for(var d in c.listeners)VMa(a,a.hostElement,d,c.listeners[d]);if(a.polySiInfo.listeners)for(var e in a.polySiInfo.listeners)VMa(a,a.hostElement,e,a.polySiInfo.listeners[e])},VMa=function(a,b,c,d,e){a=tLa(a,d,e);
zm(b,c,a)||b.addEventListener(c,a);return a},fNb=function(a){for(var b=_.h(a.polySiParams.reactiveSchemas),c=b.next();!c.done;c=b.next())c=c.value,c.type==="compute"||c.type==="computeWithMethod"?wLa(a.signalProxy,c,a):c.type==="redux"?zLa(a.signalProxy,c,a.store):c.type==="signal"&&c.readOnly&&yLa(a.signalProxy,c)},gNb=function(a){for(var b=_.h(a.polySiParams.reactiveSchemas),c=b.next(),d={};!c.done;d={schema$jscomp$12:void 0},c=b.next())d.schema$jscomp$12=c.value,d.schema$jscomp$12.type==="notify"?
BLa(a.signalProxy,d.schema$jscomp$12,a.hostElement):d.schema$jscomp$12.type==="observe"?CLa(a.signalProxy,d.schema$jscomp$12,a):d.schema$jscomp$12.type==="reflect"&&a.signalProxy.effect(function(g){return function(){var k=a.signalProxy.getWithPath([g.schema$jscomp$12.propertyKey]);
NLa(a.hostElement,g.schema$jscomp$12.propertyKey,k)}}(d));
if(a.reflectedAttributes)for(b=_.h(Object.entries(a.reflectedAttributes)),d=b.next(),c={};!d.done;c={key$jscomp$867:void 0,value$jscomp$8519:void 0},d=b.next()){var e=_.h(d.value);d=e.next().value;e=e.next().value;c.key$jscomp$867=d;c.value$jscomp$8519=e;a.signalProxy.effect(function(g){return function(){NLa(a.hostElement,g.key$jscomp$867,(0,g.value$jscomp$8519)())}}(c))}};
_.f=Ir.prototype;_.f._setPendingProperty=function(a,b){this.set(a,b);return!1};
_.f._enableProperties=function(){};
_.f._setPendingPropertyOrPath=function(a,b){this.notifyPath(a,b);return!1};
_.f._addPropertyEffect=function(){};
_.f._stampTemplate=function(){throw Error("Ng");};
_.f.fire=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?{}:c;var d,e,g={bubbles:(d=c.bubbles)!=null?d:!0,cancelable:!!c.cancelable,composed:(e=c.composed)!=null?e:!0},k;return _.io(vNa((k=c.node)!=null?k:this.hostElement),a,b,g)};
_.f.get=function(a,b){var c=xr(a);return b?yr(b,c):a==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(c)};
_.f.linkPaths=function(){};
_.f.listen=function(a,b,c){a=vNa(a);this.boundListeners!=null||(this.boundListeners=new WeakMap);var d=this.boundListeners.get(a);d||(d={},this.boundListeners.set(a,d));var e=b+c;d[e]||(d[e]=VMa(this,a,b,c))};
_.f.notifyPath=function(a,b){this.signalProxy.notifyPath(xr(a),arguments.length===2?{value:b}:void 0)};
_.f.canNotifyPath=function(a){var b,c;return this.mutablePropNames.has(a)&&!((b=this.signalProxy.options)==null?0:(c=b.immutableProps)==null?0:c.has(a))};
_.f.notifySplices=function(a,b){this.signalProxy.notifySplices(xr(a),b)};
_.f.pop=function(a){var b=this.signalProxy;a=xr(a);var c=_.h(a);a=c.next().value;c=Rg(c);return Ar(b,a).pop(c)};
_.f.push=function(a){var b=_.Kd.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[xr(a)].concat(_.De(b)))};
_.f.set=function(a,b,c){if(c)throw Error("Og");a==="hidden"?this.hostElement.hidden=!!b:this.signalProxy.setWithPath(xr(a),b)};
_.f.setProperties=function(a){a=_.h(Object.entries(a));for(var b=a.next();!b.done;b=a.next()){var c=_.h(b.value);b=c.next().value;c=c.next().value;this[b]=c}};
_.f.splice=function(a,b,c){var d=_.Kd.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[xr(a),b,c].concat(_.De(d)))};
_.f.unlinkPaths=function(){};
_.f.unlisten=function(a,b,c){a=vNa(a);if(this.boundListeners){var d=this.boundListeners.get(a);if(d){c=b+c;var e=d[c];e&&(Am(a,b,e)||a.removeEventListener(b,e),delete d[c])}}};
_.f.unshift=function(a){var b=_.Kd.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[xr(a)].concat(_.De(b)))};
_.Um.Object.defineProperties(Ir.prototype,{useSignals:{configurable:!0,enumerable:!0,get:function(){return!0}},
disableEnforceFastDefaultValuesCheck:{configurable:!0,enumerable:!0,get:function(){return!0}},
__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!0}},
observers:{configurable:!0,enumerable:!0,get:function(){return[]},
set:function(){}},
properties:{configurable:!0,enumerable:!0,get:function(){return{}},
set:function(){}}});var GNa=[Array,Boolean,Date,Number,Object,String];var JNa=!1;var JG=function(){var a=HTMLElement.apply(this,arguments)||this;a.restamp=!1;a.notifyDomChange=!1;a.JSC$11189_didCallConnected=!1;a.JSC$11189_renderDebouncer=null;a.disableTemplateUpdateSignalImpl=Jr()?void 0:_.ih(!1,void 0,"bmozBd");var b;a.getDisableTemplateUpdate=(b=a.disableTemplateUpdateSignalImpl)==null?void 0:b[0];var c;a.setDisableTemplateUpdate=(c=a.disableTemplateUpdateSignalImpl)==null?void 0:c[1];return a};
_.z(JG,HTMLElement);var hNb=function(a){a.conditionSignalImpl!=null||(a.conditionSignalImpl=new GG(_.ih(!1,void 0,"NYV5Rb")));return a.conditionSignalImpl};
_.f=JG.prototype;_.f.showHideChildren=function(a){iNb(this,a,this.if)};
_.f.attributeChangedCallback=function(a,b,c){if(this.JSC$11189_didCallConnected)throw Error("Sg`"+a);a==="notify-dom-change"?this.notifyDomChange=c!==null:a==="restamp"&&(this.restamp=c!==null)};
_.f.debounceRender=function(){this.JSC$11189_renderDebouncer=_.rC(this.JSC$11189_renderDebouncer,Cm,this.JSC$11189_renderImpl.bind(this));_.sC(this.JSC$11189_renderDebouncer)};
_.f.disconnectedCallback=function(){var a=(0,_.er)(this).parentNode;(!a||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in a&&!a.host)&&jNb(this)};
_.f.connectedCallback=function(){var a=this;this.JSC$11189_didCallConnected=!0;PMb?KNa():this.style.display="none";this.parentSignalProxy.effect(function(){hNb(a).getWithPath([]);a.debounceRender()})};
_.f.render=function(){_.wC()};
_.f.JSC$11189_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var a=this.if;if(a){a:{var b=(0,_.er)(this).parentNode;if(this.hasInstance()){var c=this.instance.children;if((c==null?0:c.length)&&(0,_.er)(this).previousSibling!==c[c.length-1])for(var d=0;d<c.length;d++)(0,_.er)(b).insertBefore(c[d],this)}else{if(!b){b=!1;break a}kNb(this,b)}b=!0}if(!b)return}else this.restamp&&jNb(this);iNb(this,!1,a);a&&lNb(this);QMb&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.f.hasInstance=function(){return!!this.instance};
var kNb=function(a,b){var c=a.parentSignalProxy;if(Jr()){var d=_.h(_.ih(!0,void 0,"tGD1cf"));var e=d.next().value;d=d.next().value;c=a.parentSignalProxy}else{var g;var k=new IG((g=mNb(a))!=null?g:{},function(n){var r=Ar(a.parentSignalProxy,n).getChangeRecordSignal([]);n=_.ih(void 0,void 0,"dOaz1b");var t=new GG(n);k.effect(function(){if(a.getDisableTemplateUpdate&&!a.getDisableTemplateUpdate()){var u=r();t.notifyPath(xr(u.path),{value:u.value})}});
return t});
a.parentSignalProxy.childSignalProxies.push(k);var m=c=k}g=WMa(a.templateInfo,a.templateInfo.nodeInfoList,c,{eventListenerHost:a.eventListenerHost,hasInsertionPoint:a.templateInfo.hasInsertionPoint,thisCtx:a.eventListenerHost,enabledSignal:Jr()?e:void 0,scope:a.parentScope,getModel:function(){return a.parentScope?LNa(c.owner,a.parentScope):mNb(a)}}).root;
a.instance={root:g,children:[],hidden:!1,signalProxy:m,getTemplateUpdatesEnabled:e,setTemplateUpdatesEnabled:d};m=_.h(g.childNodes);for(e=m.next();!e.done;e=m.next())a.instance.children.push(e.value);(0,_.er)(b).insertBefore(a.instance.root,a)},mNb=function(a){if((a=a.parentSignalProxy.model)&&!a.hostElement){var b={},c;
for(c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b}},jNb=function(a){if(a.instance){var b=a.instance.children;
if(b.length){var c=(0,_.er)(b[0]).parentNode;if(c){c=(0,_.er)(c);for(var d=0;d<b.length;d++)c.removeChild(b[d])}}Jr()?a.instance.setTemplateUpdatesEnabled(!1):a.instance.signalProxy.dispose();a.instance=void 0}},iNb=function(a,b,c){b=b||!c;
a.instance&&a.instance.hidden!==b&&(a.instance.hidden=b,INa(b,a.instance.children))},lNb=function(a){if(Jr()){var b=a.instance;
b&&Ch(a.parentSignalProxy.owner,function(){return!b.getTemplateUpdatesEnabled()})&&b.setTemplateUpdatesEnabled(!0)}else a.setDisableTemplateUpdate(!1)};
_.Um.Object.defineProperties(JG.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var a=this;return Ch(this.parentSignalProxy.owner,function(){return hNb(a).getWithPath([])})},
set:function(a){a||(Jr()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));hNb(this).setWithPath([],!!a)}}});
_.Um.Object.defineProperties(JG,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",JG);var nNb=[],KG=function(){var a=HTMLElement.apply(this,arguments)||this;a.as="item";a.indexAs="index";a.itemsIndexAs="itemsIndex";a.targetFramerate=20;a.notifyDomChange=!1;a.isDetached=!1;a.JSC$11196_renderDebouncer=null;a.instances=[];a.chunkingId=null;a.chunkCount=null;a.shouldMeasureChunk=!1;a.shouldContinueChunking=!1;a.renderStartTime=null;a.JSC$11196_didCallConnected=!1;return a};
_.z(KG,HTMLElement);var oNb=function(a){a.itemSignalImpl!=null||(a.itemSignalImpl=new GG(_.ih(nNb,void 0,"uvlPIb")));return a.itemSignalImpl},pNb=function(a,b){Array.isArray(b)||(b=nNb);
oNb(a).setWithPath([],b)};
_.f=KG.prototype;_.f.showHideChildren=function(a){for(var b=_.h(this.instances),c=b.next();!c.done;c=b.next())INa(a,c.value.children)};
_.f.notifyPath=function(a,b){a=xr(a);a[0]==="items"&&(a.length===1?pNb(this,b):oNb(this).setWithPath(a.slice(1),b))};
_.f.canNotifyPath=function(a){return a==="items"};
_.f.attributeChangedCallback=function(a,b,c){if(this.JSC$11196_didCallConnected)throw Error("Tg`"+a);a==="as"?this.as=c:a==="index-as"?this.indexAs=c:a==="items-index-as"?this.itemsIndexAs=c:a==="initial-count"?this.initialCount=Number(c):a==="notify-dom-change"?this.notifyDomChange=c!==null:a==="target-framerate"&&(this.targetFramerate=Number(c))};
_.f.disconnectedCallback=function(){this.isDetached=!0;for(var a=0;a<this.instances.length;a++)qNb(this,a);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.f.connectedCallback=function(){var a=this,b=oNb(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var e=b(),g=xr(e.path);if(g[0]===void 0||g[0]==="splices"||g[0]==="length")a.debounceRender();else{var k=g[0];if(k=a.instances[typeof k==="string"?Math.floor(Number(k)):k])k.type==="legacy"?(g=[a.as].concat(_.De(g.slice(1))),k.signalProxy.notifyPath(g,e)):(g=g.slice(1),k.itemSignal.notifyPath(g,e))}});
this.JSC$11196_didCallConnected=!0;PMb?KNa():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var c=(0,_.er)((0,_.er)(this).parentNode),d=0;d<this.instances.length;d++)c.insertBefore(this.instances[d].root,this);this.chunkingId&&this.render()}};
_.f.debounceRender=function(){this.JSC$11196_renderDebouncer=_.rC(this.JSC$11196_renderDebouncer,Cm,this.JSC$11196_renderImpl.bind(this));_.sC(this.JSC$11196_renderDebouncer)};
_.f.render=function(){this.debounceRender();_.wC()};
_.f.JSC$11196_renderImpl=function(){var a=this,b=this.items,c=rNb(this,b.length);sNb(this,b,c);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){a.chunkingId=null;if(a.shouldMeasureChunk){var d=performance.now()-a.renderStartTime;a.chunkCount=Math.round(Math.ceil(1E3/a.targetFramerate)/d*a.chunkCount)||1}a.shouldContinueChunking&&a.debounceRender()}));
QMb&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var rNb=function(a,b){var c=b,d=a.instances.length;if(a.initialCount){if(a.chunkCount){var e=Math.min(Math.max(b-d,0),a.chunkCount);c=Math.min(d+e,b)}else c=Math.min(b,a.initialCount),e=Math.max(c-d,0),a.chunkCount=e||1;a.shouldMeasureChunk=e===a.chunkCount;a.shouldContinueChunking=c<b;a.renderStartTime=performance.now()}return c},sNb=function(a,b,c){for(var d=0;d<c;d++){var e=a.instances[d],g=b[d];
e?e.type==="legacy"?(e.signalProxy.setWithPath([a.as],g),e.signalProxy.setWithPath([a.indexAs],d)):(e.itemSignal.setWithPath([],g),e.setIndex(d)):tNb(a,g,d)}for(b=a.instances.length-1;b>=d;b--)c=a,e=b,qNb(c,e),c=_.h(c.instances.splice(e,1)).next().value,c.type==="legacy"?c.signalProxy.dispose():c.setDisabled()},qNb=function(a,b){a=a.instances[b];
b=(0,_.er)(a.root);for(var c=0;c<a.children.length;c++)b.appendChild(a.children[c])},tNb=function(a,b,c){var d={};
d=Object.assign({},uNb(a),(d[a.as]=b,d[a.indexAs]=c,d[a.itemsIndexAs]=c,d));if(_.w("dom_repeat_use_ambient_signals")||_.w("creator_dom_repeat_use_ambient_signals")){b=new GG(_.ih(b,void 0,"g83Pb"));var e=_.h(_.ih(c,void 0,"tQRdod"));d=e.next().value;e=e.next().value;var g=_.h(MNa());var k=g.next().value,m=g.next().value;g={};var n={parentScope:a.parentScope,signals:(g[a.as]={type:"mutable",signal:b},g[a.indexAs]={type:"signal",getter:d},g[a.itemsIndexAs]={type:"signal",getter:d},g)};g=WMa(a.templateInfo,
a.templateInfo.nodeInfoList,a.parentSignalProxy,{eventListenerHost:a.eventListenerHost,getModel:function(){return LNa(a.parentSignalProxy.owner,n)},
hasInsertionPoint:a.templateInfo.hasInsertionPoint,thisCtx:a.eventListenerHost,methodInvocationRequirement:SMb,enabledSignal:function(){return(a.stampingEnabled===void 0||a.stampingEnabled())&&k()},
scope:n}).root;b={type:"ambientSignal",root:g,children:[],itemSignal:b,getIndex:d,setIndex:e,getEnabled:k,setDisabled:m}}else{var r=new IG(d,function(t){if(t!==a.as&&t!==a.indexAs){if(t===a.itemsIndexAs)return Ar(r,a.indexAs);var u=Ar(a.parentSignalProxy,t).getChangeRecordSignal([]);t=_.ih(void 0,void 0,"UobVm");var x=new GG(t);r.effect(function(){var A=u();x.notifyPath(xr(A.path),{value:A.value})});
return x}});
a.parentSignalProxy.childSignalProxies.push(r);g=WMa(a.templateInfo,a.templateInfo.nodeInfoList,r,{eventListenerHost:a.eventListenerHost,getModel:function(){var t={};return Object.assign({},uNb(a),(t[a.as]=r.model[a.as],t[a.indexAs]=r.model[a.indexAs],t[a.itemsIndexAs]=r.model[a.indexAs],t))},
hasInsertionPoint:a.templateInfo.hasInsertionPoint,thisCtx:a.eventListenerHost,methodInvocationRequirement:SMb,enabledSignal:a.stampingEnabled}).root;b={type:"legacy",root:g,children:[],signalProxy:r}}d=_.h(g.childNodes);for(e=d.next();!e.done;e=d.next())b.children.push(e.value);d=(d=a.instances[c+1])?d.children[0]:a;(0,_.er)((0,_.er)(a).parentNode).insertBefore(b.root,d);a.instances[c]=b},uNb=function(a){if((a=a.parentSignalProxy.model)&&!a.hostElement){var b={},c;
for(c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b}};
KG.prototype.itemForElement=function(a){var b=this,c=this.instances.find(function(d){return d.children.includes(a)});
if(c)return Ch(this.parentSignalProxy.owner,function(){return c.type==="legacy"?c.signalProxy.getWithPath([b.as]):c.itemSignal.getWithPath([])})};
KG.prototype.indexForElement=function(a){var b=this.instances.findIndex(function(c){return c.children.includes(a)});
return b>=0?b:void 0};
_.Um.Object.defineProperties(KG.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var a=this;return Ch(this.parentSignalProxy.owner,function(){return oNb(a).getWithPath([])})},
set:function(a){pNb(this,a)}},
delay:{configurable:!0,enumerable:!0,set:function(){}},
filter:{configurable:!0,enumerable:!0,set:function(){}},
observe:{configurable:!0,enumerable:!0,set:function(){}},
sort:{configurable:!0,enumerable:!0,set:function(){}},
__instances:{configurable:!0,enumerable:!0,get:function(){return this.instances}}});
_.Um.Object.defineProperties(KG,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return"as index-as initial-count items-index-as notify-dom-change target-framerate".split(" ")}}});
customElements.define("ps-dom-repeat",KG);var vNb,wNb;_.LG=new _.jB("STATE_STORE_TOKEN");vNb=new _.jB("SELECT_TOKEN");wNb=new _.jB("DISPATCH_TOKEN");var SNa={getSelectFn:function(){var a;return(a=_.v().resolve(_.Xi(vNb)))!=null?a:NNa},
getDispatchFn:function(){var a;return(a=_.v().resolve(_.Xi(wNb)))!=null?a:_.Kr().dispatch.bind(_.Kr())},
getAppStore:function(){return _.v().resolve(_.LG)}},ONa,RNa=!1;var VNa=void 0;var xNb=function(){};
xNb.prototype.hasAttribute=function(a){if(a==="dir")return!1;if(a==="disable-upgrade"){var b,c;return(c=(b=this.hostElement)==null?void 0:b.hasAttribute("disable-upgrade"))!=null?c:!1}throw Error("Ug`"+a);};
xNb.prototype.attributeChangedCallbackWrapper=function(a,b,c){if(a==="disable-upgrade"&&this.__isUpgradeDisabled&&c===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var d;((d=this.hostElement)!=null?d:this).isConnected&&this.connectedCallback()}else b===c||this.__isReflecting||this.attributeChangedCallback(a,b,c)};
xNb.prototype.getExtraMethodsToForward=function(){for(var a=this,b=[],c=_.h(yNb),d=c.next(),e={};!d.done;e={tagName$jscomp$52:void 0,name$jscomp$533:void 0},d=c.next())e.name$jscomp$533=d.value,d=void 0,e.name$jscomp$533==="_setPendingProperty"?(e.tagName$jscomp$52=this.hostElement.tagName.toLowerCase(),d=function(g){return function(k,m,n){pr(g.tagName$jscomp$52,k,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return a._setPendingProperty(k,m,n)}}(e)):d=function(g){return function(){return a[g.name$jscomp$533].apply(a,
_.De(_.Kd.apply(0,arguments)))}}(e),b.push([e.name$jscomp$533,
d]);return b};
for(var $Na=bNb(aNb((0,_.FC)(xNb))),dOa=["disabled","disable-upgrade"],zNb=(0,_.FC)(function(){}),ANb=new Set(Object.getOwnPropertyNames(zNb.prototype)),iOa=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.De(ANb))),fOa=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),yNb=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),BNb=new Set([].concat(_.De(fOa),_.De(yNb),_.De(ANb))),CNb=_.h(BNb),DNb=CNb.next();!DNb.done;DNb=CNb.next())WKa.add(DNb.value);var hOa={created:function(){qNa(this);this.initializeInjection()}};var rOa=!1,Vr=window.ShadyDOM,zOa=["appendChild","insertBefore","removeChild","replaceChild"],yOa=[Node];Vr&&yOa.push(Vr.Wrapper);var EOa,FOa,IOa={};var Yr=new Set,Wr="",JOa="";var Xr,Zr=new Set;var SOa=new Set("context didCallReady is info params signalProxy".split(" ")),UOa="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),VOa="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var ENb=mn({entities:TDa}),FNb=new Xp(ENb);var GNb=function(){return _.kr.apply(this,arguments)||this};
_.z(GNb,_.kr);_.Um.Object.defineProperties(GNb.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return FNb}}});
var HNb=GNb;HNb=_.U([_.lr()],HNb);_.MG=[EG.prototype,HNb.prototype];_.NG={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var a=this,b={};setTimeout(function(){var c;return _.io((c=a.hostElement)!=null?c:a,"yt-live-chat-add-tooltip-target",b)},0);
this.handler_=b.handler},
detached:function(){if(this.handler_){var a;this.handler_.removeElementFromSupportingTooltips((a=this.hostElement)!=null?a:this)}this.handler_=null}}};_.fs=new _.jB("ICON_MANAGER_TOKEN");var INb=[48,20,18,16,15,13,12],qPa=new Map,kPa=new Set,hPa=new Set,jPa=new Set,gPa=new Set,iPa=new Set,mPa=new Promise(function(a){var b=!1,c=!1,d=!1,e=[],g=function(k){if("detail"in k)if(k=k.detail,k.name==="yt-icons")lPa(k),b=!0;else if(k.name==="yt-sys-icons")lPa(k),c=!0;else{var m;((m=k.name)==null?0:m.includes("yt-sys-icons"))&&k.size!==24&&(lPa(k,!0),e.push(k.size),e.length===INb.length&&(d=!0))}b&&c&&d&&(window.removeEventListener("iron-iconset-added",g),a())};
window.addEventListener("iron-iconset-added",g)}),oPa=new Map([["access_time",
"watch_later"],["add_friend","people"],["add_to_playlist","add"],["add_to_remote_queue","add_to_queue"],["answer_neither_satisfied_nor_dissatisfied","meh"],["answer_somewhat_dissatisfied","sad"],["answer_somewhat_satisfied","happy"],["answer_very_dissatisfied","very_sad"],["answer_very_satisfied","very_happy"],["arrow-back","arrow_back"],["arrow-drop-down","arrow_drop_down"],["arrow-forward","arrow_forward"],["arrow_solid_down","arrow_solid_down-filled"],["arrow_solid_up","arrow_solid_up-filled"],
["audiotrack","music"],["auto-awesome","auto_awesome"],["avatar_anonymous","account_circle"],["avatar_logged_out","account_circle"],["back","arrow_back"],["bar_horizontal","bar_horizontal"],["block","slash_circle_left"],["bookmark_border","bookmark"],["channel_notification_preference_off","notifications"],["channel_notification_preference_on","notifications_active"],["check_circle","check_circle_thick"],["check_circle_filled","check_circle_thick-filled"],["cloud_upload","cloud_arrow_up"],["contact_support",
"help"],["content_cut","scissors"],["creation_live","live"],["creation_upload","my_videos"],["creation_upload_red","upload"],["delete_sweep","delete"],["dismissal","close"],["draft","paper_corner_folded"],["email","mail"],["emoji","very_happy"],["emoji_flags","flag"],["emoji_objects","course"],["emoji_people","very_happy"],["emoji_recent","watch_later"],["exit_app","exit_to_app"],["expand-less","collapse"],["expand-more","expand"],["expand_less","collapse"],["expand_more","expand"],["external_link",
"open_in_new"],["face_filled_happy","face_happy_v2-filled"],["face_filled_meh","face_meh_v2-filled"],["face_filled_sad","face_sad_v2-filled"],["face_filled_unhappy","face_unhappy_v2-filled"],["face_filled_very_happy","face_very_happy_v2-filled"],["face_outlined_happy","face_happy_v2"],["face_outlined_meh","face_meh_v2"],["face_outlined_sad","face_sad_v2"],["face_outlined_unhappy","face_unhappy_v2"],["face_outlined_very_happy","face_very_happy_v2"],["guide_close","chevron_left"],["help_outline","help"],
["home","tab_home"],["info_outline","info"],["insert_chart","poll"],["insert_photo","image"],["launch","open_in_new"],["likes_playlist","like"],["live","radar_live"],["live_unlisted","link"],["local_offer","purchases"],["members_only_mode_off","message"],["money_fill_jpy","yen_sign_container"],["more_chevron","expand"],["more_horiz","more"],["music_note","music"],["music_repeat_all","loop"],["music_repeat_one","loop_one"],["music_shuffle","shuffle"],["my_channel","account_circle"],["notifications_done_checkmark",
"check"],["notifications_none","notifications"],["official_artist_badge","music"],["outline_arrow_solid_down","arrow_solid_down"],["paid","creator_metadata_monetization"],["play_all","play_arrow"],["privacy_private","lock"],["privacy_unlisted","link"],["question_answer","forum"],["remove-circle-outline","remove_circle"],["report","error"],["report_problem","warning"],["schedule","watch_later"],["settings_application","settings"],["settings_material","settings"],["share_arrow","share"],["slow_mode_off",
"message"],["sticker_emoticon","happy"],["subscription_manager","settings"],["supervisor_account","people"],["tab_account","person"],["tab_explore","explore"],["tab_subscriptions","subscriptions"],["tab_trending","fire"],["timer","stopwatch"],["trending","fire"],["unlimited","subscribe"],["vertical_align_bottom","offline_download"],["video_library_white","uploads"],["video_youtube","subscribe"],["wallpaper","image"],["watch_related_mix","mix"],["what_to_watch","tab_home"]]);_.OG={};_.OG.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.Wp,computeHref_:function(a,b){b=b===void 0?!1:b;if(!a||a.commandExecutorCommand)return null;var c=Eua(a,b);return b||c!==null?c?_.w("enable_polymer_resin")?_.Id(c).toString():c:null:(_.Dl(new _.qj("computeHref was null",this.is,a)),null)},
computeOptionalHref_:function(a){return this.computeHref_(a,!0)},
computeNofollow_:function(a){return a?vua(a)?"nofollow":null:null},
computeIcon_:function(a){return a&&a.iconType?_.es(a.iconType):""},
resolveCommand:function(a,b,c){b=b===void 0?{}:b;return _.hs(a,this.hostElement,b,c===void 0?!1:c)}};var KNb,PG;_.JNb={};KNb=null;
PG={isVisibilityRoot:!1,properties:{observeVisibleOption:{type:String,value:null},observeHiddenOption:{type:String,value:null},observePrescanOption:{type:String,value:null},viewroot:Object,visibilityMonitorKeys:{type:Array,value:void 0},visibilityObserver:Object},created:function(){this.visibilityObserverForChild_=this.localVisibilityObserver_=null;this.visibilityOptionVisible_=this.observeVisibleOption?{calledOnce:this.observeVisibleOption=="observe_once",state:"visible"}:null;this.visibilityOptionHidden_=
this.observeHiddenOption?{calledOnce:this.observeHiddenOption=="observe_once",state:"hidden"}:null;this.visibilityOptionPrescan_=this.observePrescanOption?{calledOnce:this.observePrescanOption=="observe_once",state:"prescan"}:null},
attached:function(){this.isVisibilityRoot&&(this.visibilityObserverForChild_=xIa(this.viewroot));_.Er(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var a=this;this.unobserve_();if(_.w("kevlar_vimio_use_shared_monitor"))vPa(this.hostElement,{data:this.data||null,observer:this.visibilityObserver,visibilityCallback:this.visibilityCallback.bind(this),prescanCallback:this.onPrescanVisible.bind(this),layer:this.getScreenLayer&&this.getScreenLayer(),showOption:this.visibilityOptionVisible_,hideOption:this.visibilityOptionHidden_,prescanOption:this.visibilityOptionPrescan_,skipLogging:this.shouldSkipLogging.bind(this)});
else{var b=[];this.visibilityOptionVisible_&&b.push(this.visibilityObserver.observe(this.hostElement,function(){return a.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&b.push(this.visibilityObserver.observe(this.hostElement,function(){return a.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&b.push(this.visibilityObserver.observe(this.hostElement,function(){return a.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=b}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){rPa(this,this.visibilityObserver)},
markDirtyVisibilityObserver:function(){this.localVisibilityObserver_&&this.configureVisibilityObserver_()},
getVisibilityObserverForChild:function(){return this.visibilityObserverForChild_?this.visibilityObserverForChild_:this.localVisibilityObserver_},
get visibilityObserver(){if(this.localVisibilityObserver_)return this.localVisibilityObserver_;var a=_.Jf(this.parentNode,function(c){var d,e=(d=c.polymerController)!=null?d:c;return!!e.getVisibilityObserverForChild&&e.getVisibilityObserverForChild()},!0);
if(a){var b;this.localVisibilityObserver_=((b=a.polymerController)!=null?b:a).getVisibilityObserverForChild()}else KNb||(KNb=xIa()),this.localVisibilityObserver_=KNb;return this.localVisibilityObserver_},visibilityCallback:function(a){a?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.w("kevlar_use_vimio_behavior")||_.w("gaming_vimio_behavior_onshow")||(PG={});PG&&!_.w("kevlar_use_vimio_behavior")&&(delete PG.attached,delete PG.detached);_.JNb.YtVisibilityObserverBehavior=[PG];var LNb={};LNb.YtVisualElementBehavior=[_.JNb.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.w("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.w("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var a=this.getScreenLayer&&this.getScreenLayer(),b=this.getVisibilityLogger();b&&b.reportShown(this,void 0,a)}},
onHidden:function(){if(_.w("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.w("kevlar_vimio_use_shared_monitor")){var a=this.getScreenLayer&&this.getScreenLayer(),b=this.getVisibilityLogger();b&&b.reportHidden(this,void 0,a)}},
getVisibilityLogger:function(){return _.w("kevlar_use_vimio_behavior")?_.js():null},
shouldSkipLogging:function(){if(_.Fi("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var a=this.getParentRenderer&&this.getParentRenderer();if(!a)return!1;var b,c=(b=a.polymerController)!=null?b:a;if(!c.data)return!1;a=this.data.trackingParams;a=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:a;var d;b=(d=c.data)==null?void 0:d.trackingParams;var e,g;b=((e=c.data)==null?0:e.loggingDirectives)?(g=c.data)==null?void 0:g.loggingDirectives.trackingParams:b;return a&&b&&a===
b}}];var zPa=new Map,qs;var yXa=function(a){this.layer=a},Mu=function(a){return a.layer!==void 0?a.layer:a.parent?Mu(a.parent):a.layer=0};var FPa;_.Z={};FPa=0;_.Z.YtRendererBehavior=[_.OG.YtComponentBehavior,LNb.YtVisualElementBehavior,{_noAccessors:!0,properties:{data:Object},observers:["ytRendererBehaviorDataObserver_(data)","ytRendererBehaviorTargetIdObserver_(data.targetId)"],childCache_:null,parentComponent:null,wasVisible:!1,wasPrescan:!1,lastHandledScroll_:0,isRenderer_:!0,screenLayer:null,veFromLoggingDirective_:!1,useVimio_:_.w("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var a,b;(b=(a=this.monitorScrollElement)!=null?a:this.hostElement)==null||b.removeEventListener("scroll",_.gr(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();xPa(this.hostElement);MLb(_.sG(),this.hostElement);$o.delete(this.hostElement)},
registerRenderer:function(a){var b;((b=a.polymerController)!=null?b:a).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(a),this.markDirty())},
unregisterRenderer_:function(a){this.useVimio_||(this.childCache_.delete(a),this.markDirty())},
attached:function(){var a=this,b=this.getParentRenderer();if(b){var c,d,e;(d=(c=(e=b.polymerController)!=null?e:b).registerRenderer)==null||d.call(c,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var g,k;(k=(g=this.monitorScrollElement)!=null?g:this.hostElement)==null||k.addEventListener("scroll",_.gr(this,this.onScroll))}_.zk.addJob(function(){APa(a.hostElement)},8);
c=new yXa(this.screenLayer||void 0);(b=$o.get(b))&&b.layerNode&&(c.parent=b.layerNode);b={};vDa(this.hostElement,(b.isRenderer=!0,b.layerNode=c,b[zXa]=this.data,b))},
getParentRenderer:function(){for(var a=this.hostElement.parentNode,b,c;a&&((b=$o.get(a))==null||!b.isRenderer)&&!((c=a.polymerController)!=null?c:a).isRenderer_;)a=a.parentNode||a.host;return a},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.w("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.Gi("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.w("debug_web_ve_data")&&this.data.trackingParams){var a="";try{a=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(c){_.Bl(c)}if(a){var b=Toa(a,1);b!==void 0&&(this.hostElement.dataset.veIndex=String(b));a=Toa(a,2);
a!==void 0&&(this.hostElement.dataset.ve=String(a))}}this.veFromLoggingDirective_&&(this.dataElement=this.clientYouTubeData=this.veType=this.visualElement=void 0,this.veFromLoggingDirective_=!1);!this.visualElement&&this.data.loggingDirectives&&this.data.loggingDirectives.clientVeSpec&&this.data.loggingDirectives.clientVeSpec.uiType&&(this.veType=this.data.loggingDirectives.clientVeSpec.uiType,this.clientYouTubeData=this.data.loggingDirectives.clientVeSpec.clientYoutubeData,_.w("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.ps(this.data.loggingDirectives.trackingParams)),this.visualElement=_.ks(_.ls(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var a=this.data.targetId;_.OLb(_.sG(),a,this.hostElement)}else MLb(_.sG(),this.hostElement)},
onScroll:function(){var a=Date.now();a-this.lastHandledScroll_<50||(this.lastHandledScroll_=a,this.markDirty())},
markDirty:function(){_.w("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():GPa(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var a=this.getParentRenderer();if(a&&(a=$o.get(a))&&a.layerNode)return Mu(a.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.De(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var a=0;a<this.data.impressionEndpoints.length;a++)this.sendImpression(this.data.impressionEndpoints[a]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(a){a.clickTrackingParams&&delete a.clickTrackingParams;var b,c;(a==null?0:(b=a.commandMetadata)==null?0:(c=b.webCommandMetadata)==null?0:c.sendPost)?_.oo(this.hostElement,[a,{impression:!0}]):_.po(this.hostElement,[a],this.hostElement)},
logExplicitClick:function(a){var b=_.En(this.getScreenLayer());if(b){var c,d=(c=a.polymerController)!=null?c:a;a=d.visualElement;d=d.trackingParams||d.clickTrackingParams;!a&&d&&(a=_.ps(d));a&&_.Xo(b,a)}}}];var MNb={},NNb=function(){return _.kr.apply(this,arguments)||this};
_.z(NNb,_.kr);NNb.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
var QG=NNb;QG.prototype.onPdgItemBehaviorClick=QG.prototype.onPdgItemBehaviorClick;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],QG.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],QG.prototype,"data",void 0);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],QG.prototype,"onPdgItemBehaviorClick",null);QG=_.U([_.lr()],QG);MNb.YtPdgLiveChatItemBehavior=[QG.prototype,_.Z.YtRendererBehavior];var ONb;var PNb;_.RG={};_.RG.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var SG=function(){var a=Wm.apply(this,arguments)||this;a.switchTemplateAtRegistration=!1;return a};
_.z(SG,Wm);SG.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||KPa(this),_.lNa(this,"doRender"),this.doRender())};
SG.prototype.debounceRender=function(){this.templatingFn&&_.Fr(this,"doRender",this.doRender)};
SG.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.Bl(Error("dh"))};
SG.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
var QNb=SG;QNb=_.U([gya()],QNb);var RNb=QNb;var SNb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,TG={},OPa=(TG[1]={filterString:null,isUnwrappable:null,unwrap:null},TG[2]={filterString:function(a,b,c){return iu(c)},
isUnwrappable:function(a){return a instanceof Od},
unwrap:function(a){return Rd(a)}},TG[3]={filterString:function(a,b,c){return SNb.test(c)?c:Hd.toString()},
isUnwrappable:function(a){return Dd(a)},
unwrap:function(a){return _.Ed(a)}},TG[4]={filterString:function(){return Hd.toString()},
isUnwrappable:function(a){return a instanceof wd},
unwrap:function(a){return _.zd(a).toString()}},TG[5]={filterString:function(a,b,c){return c},
isUnwrappable:function(a){return typeof a==="string"},
unwrap:function(a){return a.toString()}},TG[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(a){return a instanceof _.Vd},
unwrap:function(a){return Pda(a)}},TG[8]={filterString:function(a,b,c){c=String(c).toLowerCase();
return Yla(a,b,c)?c:"zClosurez"},
isUnwrappable:null,unwrap:null},TG[10]={filterString:null,isUnwrappable:null,unwrap:null},TG);Vl[Eh["default"]]=QPa;var TNb=function(a,b,c,d,e){return function(){var g=_.Kd.apply(0,arguments),k=XCa(b,c,d,e);try{return a.apply(null,_.De(g))}finally{k()}}}(Tl,"fr_c3"),UNb=_.w("measure_framework_render")?TNb:Tl;var WNb=function(a,b){var c=this;this.hostElement=a;this.events=new _.jj;this.props=b;this.events.subscribe("UPDATE",function(){UNb(c.hostElement,c.patchInternal.bind(c));var d;c.hostElement.data=(d=c.props)==null?void 0:d.data});
this.events.subscribe("CONNECTED",function(){VNb(c);var d;c.hostElement.data=(d=c.props)==null?void 0:d.data});
this.events.subscribe("DISCONNECTED",function(){var d;(d=c.onDisconnected)==null||d.call(c);var e;(e=c.signalContextDispose)==null||e.call(c)});
this.events.subscribe("UPDATED",function(){var d;(d=c.onUpdated)==null||d.call(c)})};
WNb.prototype.setState=function(a){this.state||(this.state=a);Object.assign(this.state,a);UNb(this.hostElement,this.patchInternal.bind(this))};
var VNb=function(a){a.signalContextDispose=Ah(function(b){a.owner=b;var c;(c=a.onConnected)==null||c.call(a)},!!_.Ug)};
WNb.prototype.patchInternal=function(){var a=this;if(this.owner.isDisposed)this.signalContextDispose=Ah(function(c){a.owner=c;hh(function(){a.render()})},!!_.Ug);
else{var b={stack:[],error:void 0,hasError:!1};try{_.Pr(b,_.Yg(this.owner)),hh(function(){a.render()})}catch(c){b.error=c,b.hasError=!0}finally{_.Qr(b)}}};var RPa=[];var kTa=ws("A"),lTa=ws("BUTTON"),xt=ws("DIV"),mTa=ws("LABEL"),ZYa=ws("SPAN");(function(){var a=Qh;Qh=function(b){a==null||a(b);ts(function(){for(var c=0;c<b.length;c++)SPa(b[c])})}})();var XNb=function(){var a=_.kr.apply(this,arguments)||this;a.hasUnmounted=!1;return a};
_.z(XNb,_.kr);_.f=XNb.prototype;_.f.beforeRegister=function(){var a=this.doIdomRender;this.templatingFn?_.Bl(Error("ch")):(this.templatingFn=a,this.switchTemplateAtRegistration=!0,NPa(this))};
_.f.attached=function(){};
_.f.detached=function(){SPa(this.hostElement)};
_.f.renderIdom=function(){throw Error("fh");};
_.f.doIdomRender=function(){var a=this;Tl(this.hostElement,function(){a.renderIdom()})};
var YNb=XNb;YNb=_.U([_.lr()],YNb);var ZNb=[RNb.prototype,YNb.prototype];var $Nb,aOb=function(){return $Nb!==void 0?$Nb:$Nb=document.createElement("template")};
document.head.appendChild(aOb().content);var bOb;var cOb,dOb=function(){return cOb!==void 0?cOb:cOb=document.createElement("template")};
document.head.appendChild(dOb().content);var eOb;var fOb=document.head,gOb=fOb.appendChild,hOb;if(eOb===void 0){var iOb=document.createElement("template");_.B(iOb,"\x3c!--css-build:shady--\x3e");iOb.content.insertBefore(dOb().content.cloneNode(!0),iOb.content.firstChild);eOb=iOb}hOb=eOb;gOb.call(fOb,hOb.content);var jOb,kOb=function(){return jOb!==void 0?jOb:jOb=document.createElement("template")};
document.head.appendChild(kOb().content);var lOb;var mOb=document.head,nOb=mOb.appendChild,oOb;if(lOb===void 0){var pOb=document.createElement("template");_.B(pOb,"\x3c!--css-build:shady--\x3e");pOb.content.insertBefore(kOb().content.cloneNode(!0),pOb.content.firstChild);lOb=pOb}oOb=lOb;nOb.call(mOb,oOb.content);var qOb=document.head,rOb=qOb.appendChild,sOb;if(bOb===void 0){var tOb=document.createElement("template");_.B(tOb,"\x3c!--css-build:shady--\x3e");tOb.content.insertBefore(aOb().content.cloneNode(!0),tOb.content.firstChild);bOb=tOb}sOb=bOb;rOb.call(qOb,sOb.content);var uOb,vOb=function(){return uOb!==void 0?uOb:uOb=document.createElement("template")};
document.head.appendChild(vOb().content);var wOb;_.Ks=new _.jB("DARK_THEME_TOKEN");var MQa=new _.X("accessibilityProperties");var LQa=new _.X("layoutProperties");var NQa=new _.X("imageType");var xOb={};if("ytAttributedStringLinkHoverColor"in xOb)throw Error("ih`ytAttributedStringLinkHoverColor");(function(a,b){xOb[a]="value"in b&&"unit"in b?YPa(a,b):function(c){try{return b(c)}catch(d){throw Error("gh`"+a+"`"+d.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var yOb=function(a){var b=this;this.holdTime=a===void 0?500:a;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(c){var d=new CustomEvent("LONG_PRESS"),e;(e=c.changedTouches[0].target)==null||e.dispatchEvent(d)};
this.ontouchstart=function(c){b.longPressTimeout=_.Gu(_.zk,function(){b.onlongpress(c);b.longPressOccurred=!0},b.holdTime)};
this.ontouchmove=function(){_.zk.cancelJob(b.longPressTimeout);b.longPressTimeout=NaN;b.longPressOccurred=!1;b.moveOccurred=!0};
this.ontouchend=function(c){if(b.longPressTimeout&&!b.longPressOccurred&&!b.moveOccurred){var d;(d=c.changedTouches[0].target)==null||d.dispatchEvent(new Event("click"))}_.zk.cancelJob(b.longPressTimeout);b.longPressTimeout=NaN;b.longPressOccurred=!1;b.moveOccurred=!1}};var tQa=function(a,b){yOb.call(this,b);var c=this;this.callback=a;this.onlongpress=function(d){var e;(e=c.callback)==null||e.call(c,d)}};
_.z(tQa,yOb);var uQa=function(a,b){var c=Object.assign({},b);a=_.h(new Map([["ontouchstart",a.ontouchstart],["ontouchend",a.ontouchend],["ontouchmove",a.ontouchmove]]));for(var d=a.next(),e={};!d.done;e={eventName$jscomp$88:void 0,eventHandler$jscomp$3:void 0},d=a.next()){var g=_.h(d.value);d=g.next().value;g=g.next().value;e.eventName$jscomp$88=d;e.eventHandler$jscomp$3=g;b[e.eventName$jscomp$88]=function(k){return function(m){var n;(n=c[k.eventName$jscomp$88])==null||n.call(c,m);(0,k.eventHandler$jscomp$3)(m)}}(e)}};_.Yi=new _.jB("COMMAND_HANDLER_TOKEN");var $Pa=new _.X("parallelCommand");var cQa=new _.X("performOnceCommand");var bQa=new _.X("serialCommand");var dQa=void 0;var zOb=function(){this.data=[]};
zOb.prototype.push=function(a){this.data.push(a)};var ev={};_.ih(ev,void 0,"sgPmTd");_.ih(null,void 0,"jypsq");var i3a=new zOb;var mQa=[fbb,gbb,hbb,jbb,ibb,ebb,kbb,lbb];var JQa=new _.X("bracketTextDecorator");var Js=new _.X("highlightTextDecorator");_.Ms=new _.jB("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var EQa=function(){},AOb;
(AOb=window.requestIdleCallback)==null||AOb.bind(window);var GQa={calledOnce:!1,state:"visible"},FQa={calledOnce:!1,state:"hidden"};var Au=new _.jB("ICON_RENDERER_TOKEN"),BOb=new _.jB("ICON_WIZ_COMPONENT_TOKEN");_.qt=_.Rr(function(a){var b=a.icon;var c=a.active;var d=a.className;var e=a.style;var g=a.dataSelected;var k=a.dataDisabled;var m=a.role;var n=a.animateIcon;var r=a.themeOverride;var t=a.ariaHidden;var u=a.ariaExpanded;var x=a.ariaLabel;var A=a.id;var C=a.size;var F=a.iconFilter;return _.q(_.qi,{cond:b,then:function(){var J=_.v().resolve(BOb);return _.q(J,{icon:b,dataSelected:g,dataDisabled:k,animateIcon:n,themeOverride:r,ariaExpanded:u,id:A,active:c,size:C,role:m,className:d,ariaHidden:t,ariaLabel:x,
style:function(){return e!=null&&e()||C==null||!C()?e==null?void 0:e():"width: "+(C==null?void 0:C())+"px;height: "+((C==null?void 0:C())+"px;")},
iconFilter:F})}})},"b");
_.qt.idomCompat=!0;var cRa=window.devicePixelRatio||1;var gRa=new Map([["yt_outline_bag_black_24","bag"]]);var UG=function(a){var b=this;this.margin=.1;this.whenInViewportWithMargin=a;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){b.requestScan()});
window.addEventListener("touchend",function(){b.requestScan()});
window.addEventListener("updateui",function(){b.requestScan()});
var c=new _.lv((0,_.wg)(this.requestScan,this),100);window.addEventListener("scroll",function(){c.fire()},!0);
window.addEventListener("resize",(0,_.wg)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){b.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.wg)(this.requestScan,this))};
UG.prototype.observe=function(a){this.observationTargets.includes(a)||this.observationTargets.push(a)};
UG.prototype.unobserve=function(a){this.observationTargets=this.observationTargets.filter(function(b){return b!==a})};
UG.prototype.requestScan=function(){var a=this;this.scanRequested||(ts(function(){COb(a)}),this.scanRequested=!0)};
var COb=function(a){var b=(1+a.margin)*(document.documentElement.clientHeight||window.innerHeight);a.observationTargets=a.observationTargets.filter(function(c){var d=c.getBoundingClientRect();(d=b>d.top&&!!d.height)&&a.whenInViewportWithMargin(c);return!d&&c.parentNode});
a.scanRequested=!1};
UG.prototype.disconnect=function(){this.observationTargets=[]};var DOb,FOb;DOb=_.h(_.ih(kRa(),void 0,"O3X2wd"));_.EOb=DOb.next().value;FOb=DOb.next().value;window.addEventListener("resize",function(){FOb(kRa())});var GOb={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},HOb=void 0,IOb=window.innerWidth,JOb=window.innerHeight;window.addEventListener("resize",function(){HOb=void 0});var KOb;if("IntersectionObserver"in window)KOb=nRa();else{if(HOb===void 0){var LOb;LOb="matchMedia"in window?window.matchMedia(GOb.landscape+","+GOb.portrait).matches:void 0;HOb=LOb!==void 0?LOb:IOb>=930&&JOb>=550||IOb>=550&&JOb>=930}KOb=HOb?{observe:function(a){ts(function(){var b;(b=a.onViewportEntered)==null||b.call(a)})},
unobserve:function(){}}:new UG(function(a){ts(function(){var b;
(b=a.onViewportEntered)==null||b.call(a)})})}var lRa=KOb;var MOb=_.Rr(function(a){var b=_.Pl(),c=!1;_.wh(function(){var d,e=(d=a.data)==null?void 0:d.call(a),g,k=(g=a.getSrc)==null?void 0:g.call(a).cb,m;d=(m=a.config)==null?void 0:m.call(a);if(m=b.value){pRa(m,d);var n;oRa(m,e||null,function(r,t){if(!c)return k?k(r,t):r},d,(n=a.lazy)==null?void 0:n.call(a))}},"mRFhSe");
_.zh(function(){c=!0});
return _.q("img",{el:b})},"c");
MOb.idomCompat=!0;_.Ps=_.Rr(function(a){var b=function(){var c,d=a.data(),e,g,k,m,n,r,t,u,x,A,C,F,J,I,R,da,V,fa,aa,ma,Ba,Ca,ya,Ia,db,lb,Ua;var Vb={contentMode:(e=a.contentMode)==null?void 0:e.call(a),loadedClass:(g=a.loadedClass)==null?void 0:g.call(a),isPreloaded:(k=a.isPreloaded)==null?void 0:k.call(a),notifyOnLoaded:(m=a.notifyOnLoaded)==null?void 0:m.call(a),notifyOnUnloaded:(n=a.notifyOnUnloaded)==null?void 0:n.call(a),preferredThumbnail:(r=a.preferredThumbnail)==null?void 0:r.call(a),preserveHeight:(t=a.preserveHeight)==
null?void 0:t.call(a),preserveWidth:(u=a.preserveWidth)==null?void 0:u.call(a),objectPosition:(x=a.objectPosition)==null?void 0:x.call(a),targetWidth:(A=a.targetWidth)==null?void 0:A.call(a),targetHeight:(C=a.targetHeight)==null?void 0:C.call(a),shouldShowPlaceholder:(F=a.shouldShowPlaceholder)==null?void 0:F.call(a),useWidth:(J=a.useWidth)==null?void 0:J.call(a),alt:(I=a.alt)==null?void 0:I.call(a),className:(R=a.className)==null?void 0:R.call(a),onerror:a.onerror,onload:a.onload,style$:((da=a.style$)==
null?void 0:da.call(a))||((V=a.style)==null?void 0:V.call(a)),color:(fa=a.color)==null?void 0:fa.call(a),width:(aa=a.width)==null?void 0:aa.call(a),height:(ma=a.height)==null?void 0:ma.call(a),"aria-hidden$":(lb=(Ba=a["aria-hidden$"])==null?void 0:Ba.call(a))!=null?lb:(Ca=a.ariaHidden)==null?void 0:Ca.call(a),draggable:(ya=a.draggable)==null?void 0:ya.call(a),"data-disabled$":(Ua=(Ia=a["data-disabled$"])==null?void 0:Ia.call(a))!=null?Ua:(db=a.dataDisabled)==null?void 0:db.call(a)};return sRa(d,Vb,
(c=a.hideOn404)==null?void 0:c.call(a))};
return _.q(_.ti,null,_.q(_.si,{when:function(){var c;return((c=b())==null?void 0:c.type)==="image"}},function(){return _.q(MOb,{data:function(){return b().image},
getSrc:{cb:function(c,d){var e=b().image.sources,g=b().config.isPreloaded,k=b().config.useWidth,m=b().config.targetWidth,n=b().config.targetHeight,r=b().config.preferredThumbnail;return _.dRa(d,e,g,k,m,n,r)||""}},
config:function(){var c=b().config,d;for(d in c)c[d]===void 0&&delete c[d];return c},
lazy:a.renderLazy})}),_.q(_.si,{when:function(){var c;
return((c=b())==null?void 0:c.type)==="icon"}},function(){return _.q(_.qt,{icon:function(){return b().iconName},
role:function(){return b().config.role},
className:function(){return b().config.className},
style:function(){return b().config.style$+";width: "+(b().config.width+"px;height: ")+(b().config.height+"px;color: ")+(b().config.color+";")},
ariaLabel:function(){return b().config["aria-label$"]},
ariaHidden:function(){return b().config["aria-hidden$"]},
dataDisabled:function(){return b().config["data-disabled$"]}})}))},"d");
_.Ps.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var NOb=function(a){return function(b){return _.q(gva,null,function(){var c=b.data(),d=_.Bh(b.config);return _.q(Sl,null,function(){return void a(c,d)})})}}(yRa),wRa=_.Rr(function(a){var b=function(d){var e,g=_.tRa(function(x){e=Ah(function(){for(var A=_.h(t()),C=A.next();!C.done;C=A.next()){C=zRa(C.value);
C=typeof C==="string"?document.createTextNode(C):C;if(!(C instanceof Node)){A=new _.qj("Part is not a node",C,typeof C);_.Bl(A);break}x.appendChild(C)}})}),k=uRa(function(){return PQa(d())},{isEqual:vRa}),m=_.Nr(a.config),n=function(){var x,A=k();
return!((x=m())==null||!x.ariaLabel)||!(A.commandRuns&&A.commandRuns.length!==0||A.paragraphStyleRuns&&A.paragraphStyleRuns.length!==0)},r=uRa(m,{isEqual:BRa}),t=function(){var x=OQa(k(),r());
RQa(x,r());return k().content?XQa(k().content,x).parts:[]},u=!0;
_.wh(function(){k();r();if(u)u=!1;else{var x=t();Promise.resolve().then(function(){var A=g.value;if(A){A.innerText="";var C;(C=e)==null||C();e=_.oi(A,function(){return _.q(ARa,{parts:x})})}})}},"vOsC0c");
return _.q("span",{el:g,class:function(){return k()&&zQa(k(),m())},
dir:function(){var x;return((x=m())==null?0:x.userInput)?"auto":void 0},
"aria-label":function(){var x;return n()?(x=m())==null?void 0:x.ariaLabel:void 0},
role:function(){return n()?"text":void 0}})},c;
return((c=a.config)==null?0:c.renderedFromFormattedString)?b(a.text):_.q(_.qi,{cond:a.text,then:b})},"e");
wRa.idomCompat=!0;_.tt=_.Rr(function(a){var b=_.Nr(a.text),c=CRa(a);a.renderedFromFormattedString!==void 0&&(c.renderedFromFormattedString=!0);return _.w("attr_string_reactive")?_.q(wRa,{text:b,config:c}):_.q(_.qi,{cond:function(){var d;return b()&&((d=PQa(b()))==null?void 0:d.content)},
then:function(){return _.q(NOb,{data:a.text,config:c})},
debugInstance:"Apcuac"})},"f");
_.tt.idomCompat=!0;var ERa=function(a,b,c){b=b===void 0?"unknown":b;c=c===void 0?{}:c;_.qj.call(this,a+" ("+b+")",Object.assign({},{name:"YtWcwError",tagName:b},c));Object.setPrototypeOf(this,this.constructor.prototype)};
_.z(ERa,_.qj);_.LRa=new WeakMap;_.KRa=!1;var JRa,MRa,GRa,IRa;_.VG=Symbol("kh");_.Ss=Symbol("lh");JRa=Symbol("mh");MRa=new Set(Object.getOwnPropertyNames(Element.prototype));GRa=!_.w("web_wcw_disable_component_function_named_child_props");IRa=Symbol("nh");var OOb=_.Rr(function(a){return _.q("yt-attributed-string",{"aria-label":a.ariaLabel,hidden:a.hidden,id:a.id,class:a.className,"force-default-style":a.forceDefaultStyle},_.q(_.tt,{text:a.data,ariaLabel:a.ariaLabel,ellipsisTruncate:a.ellipsisTruncate,isOverlay:a.isOverlay,linkInheritColor:a.linkInheritColor,noPreWrap:a.noPreWrap,noWrap:a.noWrap,userInput:a.userInput,noEndpoints:a.noEndpoints,headerRuns:a.headerRuns}))},"g");
_.w("web_wiz_attributed_string")&&_.Ts(OOb,"yt-attributed-string",{props:{ariaHidden:_.VG,ariaLabel:_.VG,className:_.VG,ellipsisTruncate:_.VG,isOverlay:_.VG,linkInheritColor:_.VG,noEndpoints:_.VG,noStyleRuns:_.VG,noLinkColor:_.VG,noPreWrap:_.VG,noWrap:_.VG,skipOnClick:_.VG,userInput:_.VG,headerRuns:_.VG,id:_.VG,data:_.VG,hidden:_.VG,forceDefaultStyle:_.VG,text:_.Ss,stopPropagation:_.Ss,disableUpgrade:_.Ss,disable:_.Ss,slot:_.Ss}});var POb=function(){return _.P.apply(this,arguments)||this};
_.z(POb,_.P);POb.prototype.renderIdom=function(){this.data&&!this.disable&&(this.config={ariaLabel:this.hostElement.ariaLabel,ellipsisTruncate:this.ellipsisTruncate,isOverlay:this.isOverlay,linkInheritColor:this.linkInheritColor,noPreWrap:this.noPreWrap,noWrap:this.noWrap,userInput:this.userInput,noEndpoints:this.noEndpoints,headerRuns:this.headerRuns},yRa(this.data,this.config))};
var WG=POb;_.U([_.H(ZNb),_.W("design:type",Object)],WG.prototype,"ytIdomTemplatingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],WG.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],WG.prototype,"ariaLabel",void 0);_.U([_.O(),_.W("design:type",Boolean)],WG.prototype,"disable",void 0);_.U([_.O(),_.W("design:type",Boolean)],WG.prototype,"ellipsisTruncate",void 0);_.U([_.O(),_.W("design:type",Boolean)],WG.prototype,"isOverlay",void 0);
_.U([_.O(),_.W("design:type",Boolean)],WG.prototype,"linkInheritColor",void 0);_.U([_.O(),_.W("design:type",Boolean)],WG.prototype,"noPreWrap",void 0);_.U([_.O(),_.W("design:type",Boolean)],WG.prototype,"noWrap",void 0);_.U([_.O(),_.W("design:type",Boolean)],WG.prototype,"userInput",void 0);_.U([_.O(),_.W("design:type",Boolean)],WG.prototype,"noEndpoints",void 0);_.U([_.O(),_.W("design:type",Array)],WG.prototype,"headerRuns",void 0);
WG=_.U([_.wr({is:"yt-attributed-string",disableElementRegistration:!0})],WG);
_.w("web_wiz_attributed_string")||_.S(WG,"yt-attributed-string",function(){if(wOb===void 0){var a=document.createElement("template");_.B(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-attributed-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_attributed_string.yt.attributed.string.css.js--\x3e");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
a.content.insertBefore(vOb().content.cloneNode(!0),a.content.firstChild);wOb=a}a=wOb;return a},{mode:2});var QOb,ROb,TRa;QOb=function(){this.firstThumbnailLoaded=!1};
_.SOb=function(){ROb||(ROb=new QOb);return ROb};
TRa=function(a){var b=_.SOb();b.firstThumbnailLoaded||(b.firstThumbnailLoaded=!0,_.Lo("ftl",a))};
QOb.prototype.reset=function(){this.firstThumbnailLoaded=!1};var ORa=0,SRa=new WeakMap,QRa=0,Ws=new Set;var TOb,UOb=function(){return TOb!==void 0?TOb:TOb=document.createElement("template")};
document.head.appendChild(UOb().content);var VOb;var XRa,ZRa,XG;_.Zs=_.ja.caches;XG=function(){};
XG.prototype.open=function(a){return _.Zs.open(WOb(a))};
XG.prototype.has=function(a){return _.Zs.has(WOb(a))};
XG.prototype.delete=function(a){return _.Zs.delete(WOb(a))};
XG.prototype.match=function(a,b){var c=this,d,e,g,k,m,n;return _.l(function(r){switch(r.nextAddress){case 1:return _.p(r,c.keys(),2);case 2:d=r.yieldResult,e=_.h(d),g=e.next();case 3:if(g.done){r.jumpTo(5);break}k=g.value;return _.p(r,c.open(k),6);case 6:return m=r.yieldResult,_.p(r,m.match(a,b),7);case 7:if(n=r.yieldResult)return r.return(n);g=e.next();r.jumpTo(3);break;case 5:return r.return()}})};
var $Ra=function(){};
_.z($Ra,XG);var WOb=function(a){if(a.includes(":"))throw Error("qh`"+a);return a+":"+_.oj("CacheStorage get")};
$Ra.prototype.keys=function(){var a,b,c,d,e,g,k,m,n;return _.l(function(r){if(r.nextAddress==1)return a=[],b=_.oj("CacheStorage keys"),_.p(r,_.Zs.keys(),2);c=r.yieldResult;d=_.h(c);for(e=d.next();!e.done;e=d.next())g=e.value,k=_.WRa(g),m=k.originalName,n=k.datasyncId,n===b&&a.push(m);return r.return(a)})};var XOb=function(){var a=_.P.apply(this,arguments)||this;a.objectURL=null;a.loadTime=Infinity;return a};
_.z(XOb,_.P);_.f=XOb.prototype;_.f.renderIdom=function(){VRa(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("th");this.setConfig();this.config&&qRa(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.f.objectFitToContentMode=function(a){switch(a){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.f.logThumbnailFailureVe=function(){var a=_.ku(197497);_.qF(_.ls(),a);var b=_.En();b&&a&&b&&_.Vo(b,[a])};
_.f.loadImageFromCacheIfExists=function(a){var b=this,c=a.target;_.w("kevlar_default_load_cached_thumbnail")&&(c==null?0:c.src)&&bSa(c.src).then(function(d){b.objectURL=Jd(d).toString();b.setSrc(c,b.objectURL)}).catch(function(){})};
_.f.onError=function(a){var b=this;if(_.w("web_use_cache_for_image_fallback")){var c=a.target;c&&bSa(c.src).then(function(d){b.objectURL=Jd(d).toString();b.setSrc(c,b.objectURL)}).catch(function(){_.w("kevlar_woffle_log_thumbnail_failure_ve")&&b.logThumbnailFailureVe();
_.w("kevlar_woffle_fallback_image")&&b.setSrc(c,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.f.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.f.setConfig=function(){var a=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(b){a.loadImageFromCacheIfExists(b);a.revokeObjectURL();URa(a.hostElement)},
onerror:function(b){a.onError(b)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.w("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.f.setSrc=function(a,b){b&&(a.src=b)};
var YG=XOb;_.U([_.H(ZNb),_.W("design:type",Object)],YG.prototype,"ytIdomTemplatingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],YG.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],YG.prototype,"alt",void 0);_.U([_.O(),_.W("design:type",Boolean)],YG.prototype,"ftlEligible",void 0);_.U([_.O(),_.W("design:type",Number)],YG.prototype,"height",void 0);_.U([_.O(),_.W("design:type",Boolean)],YG.prototype,"notifyOnLoaded",void 0);
_.U([_.O(),_.W("design:type",Boolean)],YG.prototype,"notifyOnUnloaded",void 0);_.U([_.O(),_.W("design:type",String)],YG.prototype,"objectFit",void 0);_.U([_.O(),_.W("design:type",String)],YG.prototype,"objectPosition",void 0);_.U([_.O(),_.W("design:type",String)],YG.prototype,"preferredThumbnail",void 0);_.U([_.O(),_.W("design:type",Boolean)],YG.prototype,"preserveHeight",void 0);_.U([_.O(),_.W("design:type",Boolean)],YG.prototype,"preserveWidth",void 0);
_.U([_.O({value:!0}),_.W("design:type",Boolean)],YG.prototype,"useWidth",void 0);_.U([_.O({value:function(){return!_.Gi("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.W("design:type",Boolean)],YG.prototype,"shouldRenderLazy",void 0);_.U([_.O(),_.W("design:type",Number)],YG.prototype,"width",void 0);YG=_.U([_.wr({is:"yt-image",disableElementRegistration:!0})],YG);
_.S(YG,"yt-image",function(){if(VOb===void 0){var a=document.createElement("template");_.B(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_image.yt.image.css.js--\x3e");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);a.content.insertBefore(UOb().content.cloneNode(!0),a.content.firstChild);
VOb=a}a=VOb;return a},{mode:2});var YOb=function(){return _.P.apply(this,arguments)||this};
_.z(YOb,_.P);YOb.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var a=_.Ds(this.data.onVisibleCommand);a&&this.ytComponentBehavior.resolveCommand(a)}};
var ZG=YOb;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],ZG.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],ZG.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.RG.YtVisibilityBehavior),_.W("design:type",Object)],ZG.prototype,"ytVisibilityBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],ZG.prototype,"data",void 0);ZG=_.U([_.wr({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],ZG);
_.S(ZG,"yt-bumper-user-edu-content-view-model",function(){if(PNb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bumper-user-edu-content-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_bumper_user_edu_content_view_model.yt.bumper.user.edu.content.view.model.css.js--\x3e<div id="bumper-content" class="style-scope yt-bumper-user-edu-content-view-model">\n  <yt-image id="icon" data="[[data.image]]" height="16" class="style-scope yt-bumper-user-edu-content-view-model"></yt-image>\n  <div id="message-block" class="style-scope yt-bumper-user-edu-content-view-model">\n    <yt-attributed-string id="message" data="[[data.text]]" class="style-scope yt-bumper-user-edu-content-view-model"></yt-attributed-string>\n  </div>\n</div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;ONb===void 0&&(ONb=document.createElement("template"));var d=ONb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);PNb=a}a=PNb;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var ZOb;var $Ob,aPb=function(){if($Ob!==void 0)return $Ob;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-progress-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_progress_flow_view_model.yt.creator.goal.progress.flow.view.model.css.js--\x3e<div id="header" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="avatar-images" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="creator-thumbnail" data="[[creatorGoalState.authorPhoto]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <yt-image id="goal-icon" data="[[targetIconThemedImage]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n  </div>\n  <div id="countdown-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-attributed-string id="goal-timer-description" data="[[creatorGoalState.goalHeadlineText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n    <template is="dom-if" if="[[shouldShowCountdown]]" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <yt-countdown class-name="[[is]] countdown" target-timestamp="[[endTimestamp]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-countdown>\n    </template>\n  </div>\n  <yt-attributed-string id="goal-subheader-info" data="[[creatorGoalState.goalSubheaderText]]" hidden="[[isGoalActive]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-image id="background-image" data="[[creatorGoalState.goalHeaderBackgroundImage]]" height="100" width="100" class="style-scope yt-creator-goal-progress-flow-view-model">\n  </yt-image>\n</div>\n<div id="content" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <yt-attributed-string id="goal-target" data="[[creatorGoalState.goalTargetText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-attributed-string id="goal-description" data="[[creatorGoalState.goalDescription]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <div id="goal-progress-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="sc-tier-image" data="[[creatorGoalState.superChatTierImage]]" height="32" preserve-height="" preserve-width="" width="32" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <div id="goal-numbers" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="current-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model">[[creatorGoalState.currentGoalCount]] </div>\n      <div id="goal-number-separator" class="style-scope yt-creator-goal-progress-flow-view-model">/ </div>\n      <div id="target-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model"> [[creatorGoalState.totalGoalCount]]</div>\n    </div>\n    <div id="progress-bar-container" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="progress-bar-progress" class="style-scope yt-creator-goal-progress-flow-view-model">\n      </div>\n    </div>\n  </div>\n</div>\n<div id="footer" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="progress-button" class="style-scope yt-creator-goal-progress-flow-view-model"></div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;ZOb===void 0&&(ZOb=document.createElement("template"));var d=ZOb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return $Ob=a};var bPb;_.$G={};bPb=new Set(["ytd-section-list-renderer","yt-horizontal-list-renderer","ytd-item-section-renderer","ytd-watch-next-secondary-results-renderer","ytd-video-primary-info-renderer"]);_.$G.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var a=this.getContext_();return a?a.getTaskManager():_.zk},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var a=_.io(this.hostElement,"yt-get-context-provider",{});a.detail&&a.detail.contextProvider?this.cachedProviderNode_=a.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return bPb.has(this.hostElement.localName)},
getNetworkManager:function(){var a=this.getContext_();if(a)return a.getNetworkManager()}};var hSa,cPb,ePb,dPb;_.aH=function(a){var b=cPb.get(a);if(b&&(b=b.pop()))return dPb++,b;ePb++;try{var c=document.createElement(a)}catch(d){throw new _.qj("ElementPool failed to create element",a,d.message);}return c};
hSa=function(a){var b=a.is;if(b){var c=cPb.get(b);c||(c=[],cPb.set(b,c));var d=_.Fi("ELEMENT_POOL_CONFIG")||{};c.length>=(d[b]!==void 0?d[b]:_.Fi("ELEMENT_POOL_DEFAULT_CAP",0))||c.push(a)}else _.Dl(new _.qj("Element pool should only handle custom elements:",a.nodeName))};
cPb=new Map;ePb=0;dPb=0;var $s=new WeakMap,gSa=new WeakMap;var gPb;_.bH=function(a,b,c){c=c===void 0?_.Qw():c;this.JSC$11468_defaultPriority=a;this.signal=b;this.scheduler=c;this.nextJobDescriptor=0;this.JSC$11468_parkedJobs=[];this.scheduledJobs=new Map};
_.cH=function(a,b){if(b){var c=_.VF();a.signal&&!_.WF(c,a.signal)?(c.addListener(a.signal,function(){a.processSignal()}),a.JSC$11468_parkedJobs.push({job:b,
priority:void 0})):fPb(a,b)}};
gPb=function(a,b){if(b!==a.JSC$11468_defaultPriority){a.JSC$11468_defaultPriority=b;for(var c=_.h(a.scheduledJobs.values()),d=c.next();!d.done;d=c.next())d=d.value,a.scheduler.cancelJob(d.jobId),d.jobId=a.scheduler.addJob(d.jobWrapper,b)}};
_.bH.prototype.flushJobs=function(){gPb(this,10);this.processSignal()};
_.bH.prototype.cancel=function(){for(var a=_.h(this.scheduledJobs),b=a.next();!b.done;b=a.next()){var c=_.h(b.value);b=c.next().value;c=c.next().value;this.scheduler.cancelJob(c.jobId);this.scheduledJobs.delete(b)}this.JSC$11468_parkedJobs=[]};
_.bH.prototype.processSignal=function(){for(var a=_.h(this.JSC$11468_parkedJobs),b=a.next();!b.done;b=a.next())b=b.value,fPb(this,b.job,b.priority);this.JSC$11468_parkedJobs=[]};
var fPb=function(a,b,c){c=c||a.JSC$11468_defaultPriority;if(c===10)Xs(b);else{var d=a.nextJobDescriptor++,e=function(){b();a.scheduledJobs.delete(d)},g=a.scheduler.addJob(e,c);
a.scheduledJobs.set(d,{jobWrapper:e,jobId:g,priority:c})}};_.Zl(lSa);var mSa={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};ina({beforeVisit:function(a){if(Yr.has(a.type)){var b;(b=a.props).idomKey!=null||(b.idomKey=a.type)}else a.type.TAG_NAME&&(Wr=a.type.TAG_NAME)},
afterRender:function(a,b){var c;Wr=(c=b==null?void 0:b.type)!=null?c:""},
didPatch:function(){Wr=""}});var hPb;_.dH={};hPb={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.dH.YtRendererstamperBehavior=[_.$G.YtTaskEmitterBehavior,{mappings:null,stampDom:null,rendererStamperLogger_:null,beforeRegister:function(){this.configureRendererStamper&&typeof this.configureRendererStamper==="function"&&(this.stampDom?this.stampDom=Object.assign({},this.stampDom,this.configureRendererStamper()):this.stampDom=this.configureRendererStamper());this.stampDom&&this.addStampDomObservers_()},
created:function(){this.deferredBindingTasks_=[];this.renderJobsMap_=Object.create(null);this.hasDataPath_=Object.create(null);this.stampDom&&this.addStampDomObserverFns_();this.telemetry_={};this.resetTelemetry_()},
resetTelemetry_:function(){this.telemetry_.create=0;this.telemetry_.reuse=0},
addStampDomObservers_:function(){if(this.useSignals)for(var a in this.stampDom){var b=this.stampDom[a];b&&b.id&&this.addReactiveSchema({type:"observe",method:{methodName:dSa(b.id),args:[{type:"wildcard",path:a}]}})}else{(a=(this.constructor.generatedFrom||this).observers)||(a=[]);for(b in this.stampDom){var c=this.stampDom[b];c&&c.id&&a.push(dSa(c.id)+"("+b+".*)")}this.constructor.generatedFrom.observers=a}},
addStampDomObserverFns_:function(){for(var a in this.stampDom){var b=this.stampDom[a];b.id?(this[dSa(b.id)]=this.rendererStamperObserver_.bind(this,a,b.id),this.hasDataPath_[a]=!1):(b=new _.qj("Bad rendererstamper config",this.is+":"+a),_.Bl(b))}},
rendererStamperObserver_:function(a,b,c){if(c.path==a){if(c.value===void 0&&!this.hasDataPath_[a])return;this.hasDataPath_[a]=c.value!==void 0}this.rendererStamperApplyChangeRecord_(a,b,c)},
rendererStamperApplyChangeRecord_:function(a,b,c){var d=this.renderJobsMap_[b],e=null;a==c.path?(c=c.value,_.Sa(c)||(c=c===void 0||c===null?[]:[c]),a=this.stampDom[a],a.mapping&&(e=this.stampDomArray_.bind(this,c,b,a.mapping,a.reuseComponents,a.events,a.stamperStableList)),d&&d.cancel(),c=a.usePageScheduler?this.getTaskManager():void 0,d||a.initialRenderPriority==void 0)?a.renderPriority==void 0||d||(d=new _.bH(a.renderPriority,a.waitForSignal,c),this.renderJobsMap_[b]=d):(d=new _.bH(a.initialRenderPriority,
a.waitForSignal,c),this.renderJobsMap_[b]=d,e=function(g,k){g();gPb(k,10)}.bind(this,e,d)):e=a+".splices"==c.path?this.stampDomArraySplices_.bind(this,a,b,c.value):this.forwardRendererStamperChanges_.bind(this,a,b,c);
d?_.cH(d,e):e()},
forwardRendererStamperChanges_:function(a,b,c){var d=c.path.slice(a.length+1),e=this.getStampContainer_(b),g=d.indexOf("."),k=d.substring(0,g),m=!1,n=0,r=parseInt(k,0);if(k[0]=="#"){m=parseInt(k.substring(1),0);r=this.get(a);var t=this.get([a,k]);r[m]==t?n=m:n=r.indexOf(t);m=!0}else isNaN(r)||(n=r,m=!0);m&&(d=d.substring(k.length+1),g=d.indexOf("."));k=_.wn(e).children[n];var u;if(e=(u=k==null?void 0:k.polymerController)!=null?u:k)d="data"+d.slice(g),typeof e.notifyPath!=="function"?_.Dl(new _.qj("notifyPath missing",
this.is+": "+a+", "+b)):c.value?e.notifyPath(d,c.value):e.notifyPath(d)},
stampDomArraySplices_:function(a,b,c){if(c&&c.indexSplices){var d=this.getStampContainer_(b);if(d){for(var e=_.wn(d),g=fSa(this.stampDom[a].reuseComponents),k=c.indexSplices.length,m=0;m<k;m++){for(var n=c.indexSplices[m],r=e.children[n.index],t=n.removed.length;t>0;t--)r&&r.parentElement&&(_.wn(r.parentElement).removeChild(r),g&&hSa(r),r=e.children[n.index]);t=this.stampDom[a].mapping;for(var u=n.index+n.addedCount,x=document.createDocumentFragment(),A=g,C=n.index;C<u;C++){var F=n.object[C],J=cSa(t,
F);if(J){var I=t[J];F=F[J];J=this.getComponentName_(I,F);var R=r?$s.has(r):!1;A&&r&&r.is==J&&R?(J=r,this.telemetry_.reuse++,r=r.nextElementSibling):A&&r&&R?(J=this.createComponent_(I,F,g),R=_.wn(r).nextElementSibling,e.insertBefore(J,R),jSa(this.is,e,r,g),r=R):(A=!1,J=this.createComponent_(I,F,g),x.appendChild(J));this.deferRenderStamperBinding_(J,I,F)}else I=new _.qj("Unimplemented type",a,b,d.tagName,Object.keys(F)[0]),_.Bl(I)}e.insertBefore(x,r)}this.flushRenderStamperComponentBindings_();this.stampDom[a].events&&
_.io(this.hostElement,"yt-rendererstamper-finished",{container:d})}else a=new _.qj("Container object not found",b,this.hostElement?this.hostElement.is:""),_.Bl(a)}},
stampDomArray_:function(a,b,c,d,e,g){var k=this.getStampContainer_(b);if(k)if(b=_.wn(k),d=fSa(d),a){var m=0,n=0,r;if(g=g===void 0?_.Gi("STAMPER_STABLE_LIST",!1):g||!1)for(r=b.firstElementChild;r&&!$s.has(r)&&a.length>n;){g=a[n];var t=cSa(c,g);if(t){if(this.getComponentName_(c[t],g[t])!=r.is){var u=this.createComponent_(c[t],g[t],d),x=_.wn(r).nextElementSibling;x?b.insertBefore(u,x):b.appendChild(u);jSa(this.is,b,r,d);r=u}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(r,c[t],g[t]);m++;
n++;r=_.wn(r).nextElementSibling}else n++}kSa(this.is,b,m,d);m=r;if(a.length>n){g=document.createDocumentFragment();for(t=a.length;n<t;n++)if(u=a[n],x=cSa(c,u))r=this.createComponent_(c[x],u[x],d),this.deferRenderStamperBinding_(r,c[x],u[x]),g.appendChild(r);m&&_.wn(m).parentNode&&r&&!$s.has(r)?b.insertBefore(g,m):b.appendChild(g)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();e&&_.io(this.hostElement,"yt-rendererstamper-finished",{container:k})}else kSa(this.is,b,0,
d);else a=new _.qj("Container object not found",b,this.hostElement?this.hostElement.is:""),_.Bl(a)},
getStampContainer_:function(a){return this.$&&this.$[a]||_.E(this.hostElement).querySelector("#"+a)},
getComponentName_:function(a,b){return typeof a==="string"?a:a.matcher?a.matcher.call(this,b):a.component},
createComponent_:function(a,b,c){a=this.getComponentName_(a,b);try{var d=Zr.has(a)||Yr.has(a);if(c&&!d){var e=_.aH(a);try{_.fr(e)}catch(g){c="Failed to clear styles for "+a+".",g.message&&(c+=" Original error: "+g.message),_.Dl(new _.qj(c))}}else e=document.createElement(a)}catch(g){return e="YtRendererStamperBehavior failed to create "+a+".",g.message&&(e+=" Original description: "+g.message),g.message="YtRendererStamperBehavior failed to create element",_.El(g,e),hPb.hasOwnProperty(a)?_.Dl(g):_.Bl(g),
document.createElement("SPAN")}this.telemetry_.create++;return e},
deferRenderStamperBinding_:function(a,b,c){this.deferredBindingTasks_.push({component:a,typeOrConfig:b,data:c})},
flushRenderStamperComponentBindings_:function(){for(var a=0,b=this.deferredBindingTasks_.length;a<b;a++){var c=this.deferredBindingTasks_[a];if(!c)break;var d=void 0,e=void 0,g=void 0,k=void 0,m=c.component,n=c.typeOrConfig;c=c.data;var r=(k=m.polymerController)!=null?k:m;k=m.loggingStatus;try{k&&(k.isRendererStamper=!0);if(typeof n!=="string"){for(g in n.attributes)n.attributes[g]===!0?m.setAttribute(g,""):n.attributes[g]===!1?m.removeAttribute(g):m.setAttribute(g,n.attributes[g]);for(e in n.params)r[e]=
n.params[e],m!==r&&pr(m.localName,e,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(d in n.properties){var t=n.properties[d];if(t){var u=eSa(t);r[d]=this.get(u);m!==r&&pr(m.localName,d,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(d==="on-tap"||d==="on-click"){var x=this.get(u);m.addEventListener("click",x);gSa.set(m,{property:d,listener:{type:"element",eventName:"click",handler:x}})}}else{var A=new _.qj("Undefined property binding",d);_.Bl(A)}}}if(n.classListBinding){var C=eSa(n.classListBinding),
F=C?this[C]:null;if(F)for(d=0;d<F.length;d++)_.br(m,F[d],!0)}r.data=c}finally{k&&(k.isRendererStamper=!1)}if(d=$s.get(m))m.hidden=!1,$s.delete(m),_.zk.cancelJob(d)}this.deferredBindingTasks_.length=0}}];_.eH={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(a){for(var b=_.Ll.getInstance(),c=_.h(Object.keys(a)),d=c.next();!d.done;d=c.next()){var e=d.value;d=a[e];if(this&&this[d]){var g=b.actionRoutingMap.get(e);g||(g=new Map,b.actionRoutingMap.set(e,g));b.registerActionHandler(this,e,this[d].bind(this),g)}else e=Error("ld"),e.params=d,_.Hi(e)}},
unregisterActionMap:function(a){_.Nl(_.Ll.getInstance(),a,this)}}]};var ct=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:79,lazyLoad:!1}],["LIKE_VALENTINES25_HEART",{name:"animated_like_valentines25_heart_light",nameDarkTheme:"animated_like_valentines25_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_VALENTINES25_BROKEN_HEART",{name:"animated_like_valentines25_broken_heart_light",nameDarkTheme:"animated_like_valentines25_broken_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_BROKEN_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_YOUTUBE_20TH_BIRTHDAY",{name:"animated_like_youtube_20th_birthday_light",nameDarkTheme:"animated_like_youtube_20th_birthday_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_light.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_dark.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}]]);var iPb=_.hx(["https://www.gstatic.com/external_hosted/lottie/lottie_light.js"]),uSa=_.ef(iPb),bt;var dt=new Map;var ASa=window.matchMedia("(forced-colors: active)").matches;var jPb;var kPb;var ESa=new _.jB("LOTTIE_LOADER_TOKEN");_.Zl(FSa);_.Ts(_.Rr(function(a){return _.q("ytd-lottie-player",{id:a.id,hidden:a.hidden,class:a.className,"aria-label":a.ariaLabel,style:"display: block;"},_.q(_.gt,{data:a.data,animationName:function(){var b;return((b=a.data().animationConfig)==null?void 0:b.name)||""},
animationRef:function(){return a.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.VG,
id:_.VG,hidden:_.VG,className:_.VG,ariaLabel:_.VG}});var lPb=function(){var a=_.P.apply(this,arguments)||this;a.animationRef={};return a};
_.z(lPb,_.P);_.f=lPb.prototype;
_.f.handlePropertyChange=function(){var a=this.animatedIcon,b=this.active,c=this.isDarkTheme;if(a){var d=this.previousActive!==b;this.previousActive=b;this.animationRef.lottieEl?d&&this.toggleAnimation(b,a.totalFrames):b?this.initializeAnimationAsToggled(a.lottiePlayerProps,a.totalFrames):this.initializeAnimationAsUntoggled(a.lottiePlayerProps);a.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=a.type;this.lottiePlayerProps=this.computeLottiePlayerProps(a,c)}};
_.f.computeLottiePlayerProps=function(a,b){var c=this.deepCloneLottiePlayerProps(a);b?(b=a.nameDarkTheme,a=a.pathDarkTheme):(b=a.name,a=a.path);c.animationConfig.name=b;(b=dt.get(a))?c.animationConfig.animationData=b:c.animationConfig.path=a;return c};
_.f.initializeAnimationAsToggled=function(a,b){a.animationConfig.initialSegment=[b-1,b]};
_.f.initializeAnimationAsUntoggled=function(a){a.animationConfig.initialSegment=void 0};
_.f.toggleAnimation=function(a,b){if(a){var c;(c=this.animationRef.lottieEl)==null||c.playSegments([0,b],!0)}else{var d;(d=this.animationRef.lottieEl)==null||d.playSegments([0,1],!0)}};
_.f.deepCloneLottiePlayerProps=function(a){var b=Object.assign({},a.lottiePlayerProps.animationConfig);a=Object.assign({},a.lottiePlayerProps);a.animationConfig=b;return a};
var fH=lPb;fH.prototype.handlePropertyChange=fH.prototype.handlePropertyChange;_.U([_.O(),_.W("design:type",Object)],fH.prototype,"animatedIcon",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],fH.prototype,"active",void 0);_.U([_.O(),_.W("design:type",Boolean)],fH.prototype,"isDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],fH.prototype,"animatedIconType",void 0);_.U([_.O(),_.W("design:type",Boolean)],fH.prototype,"previousActive",void 0);
_.U([_.O(),_.W("design:type",Object)],fH.prototype,"lottiePlayerProps",void 0);_.U([_.O(),_.W("design:type",Object)],fH.prototype,"animationRef",void 0);_.U([_.N("animatedIcon","active","isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fH.prototype,"handlePropertyChange",null);fH=_.U([_.wr({is:"yt-animated-icon",disableElementRegistration:!0})],fH);
_.S(fH,"yt-animated-icon",function(){if(kPb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope yt-animated-icon"></ytd-lottie-player>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;jPb===void 0&&(jPb=document.createElement("template"));var d=jPb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);kPb=a}a=kPb;return a},{mode:2});var mPb;var nPb;var ISa=_.Rr(function(a){var b=_.Pl(),c=yi(function(){return{value:null}});
_.zh(function(){var n;(n=c.value)==null||n.cancel()});
var d=_.ph(function(){return a.data().iconName},void 0,"dGBPh"),e=_.ph(function(){return a.data().iconStyle},void 0,"ipXHMb"),g=_.ph(function(){return a.data().iconSize},void 0,"oPwZue"),k=_.ph(function(){return a.data().iconSelected},void 0,"fKE56d"),m=_.ph(function(){return a.data().iconSetName},void 0,"yCb9md");
_.wh(function(){var n={iconName:d(),iconStyle:e(),iconSize:g(),iconSelected:k(),iconSetName:m()},r,t=(r=a.options)==null?void 0:r.call(a),u;r=(u=a.iconManager)==null?void 0:u.call(a);HSa(b,c,n,t,r)},"Efqnje");
return _.q("span",{class:"yt-icon-shape",el:b})},"i");
ISa.idomCompat=!0;var A4a=["youtube_fill","youtube_outline"];var oPb=new _.KD({type:"iconset",value:void 0}),pPb=function(){var a=_.P.apply(this,arguments)||this;a.isDarkTheme=document.documentElement.hasAttribute("dark");a.iconName="";a.iconsetName="yt-icons";a.iconset=null;a.missingIconSet=!1;a.iconType=null;a.iconShapeDataSignal=_.ih(void 0,void 0,"RQ9kUb");a.renderingOptionsSignal=_.ih({iconWidth:"100%",iconHeight:"100%",iconFilter:a.iconFilter},void 0,"qtx8Ef");a.wizHasRendered=!1;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(pPb,_.P);_.f=pPb.prototype;_.f.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.isDarkTheme=a)};
_.f.handlePropertyChange=function(){var a=this,b,c,d,e,g,k,m,n,r,t,u;return _.l(function(x){switch(x.nextAddress){case 1:if(b=!a.icon&&!a.iconName||!a.isAttached)return x.return();c=a;d=c.icon;e=c.size;g=c.defaultToFilled;k=c.active;m=c.targetContainer;a.toggleContainerClass(m);_.w("kevlar_use_wil_icons")&&d&&(n=fPa(d),n.length?_.w("kevlar_icon_type_fix_killswitch")?(r=n[1].toUpperCase(),a.iconType=DBb[r],a.iconType||(a.iconType=n[1])):a.iconType=n[1]:a.iconType=null);if(d){x.jumpTo(2);break}a.iconsetName=
"";a.iconName="";return _.p(x,a.renderIcon(m,d),3);case 3:return x.return();case 2:t=a.computeIcon(d);u=fPa(t);u.length&&(a.iconsetName=u[0],a.iconName=u[1]);if(!_.w("kevlar_use_wil_icons")){x.jumpTo(4);break}return _.p(x,a.getIconShapeData(),5);case 5:a.iconShapeData=x.yieldResult;case 4:if(a.shouldRenderIconShape(m)){x.jumpTo(6);break}return _.p(x,a.determineIconSet(t,k,g,e,m),6);case 6:return _.p(x,a.renderIcon(m,d),0)}})};
_.f.toggleContainerClass=function(a){a?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
_.f.computeIcon=function(a){return!_.w("default_to_innertube_icon")||a.indexOf(":")>0?a:_.es(a)};
_.f.determineIconSet=function(a,b,c,d){var e=this;return _.l(function(g){return g.nextAddress==1?_.w("kevlar_system_icons")||_.Fi("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.Fi("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.p(g,e.switchToYtSysIconset(a,b,c,d),3):g.jumpTo(2):g.nextAddress!=2?g.return():_.p(g,e.useYtSysIconsetForMissingIcons(a,b,c,d),0)})};
_.f.switchToYtSysIconset=function(a,b,c,d){var e=this,g,k,m,n,r,t,u;return _.l(function(x){switch(x.nextAddress){case 1:if(!a||e.iconsetName!=="yt-icons"&&e.iconsetName!=="yt-sys-icons"){x.jumpTo(0);break}g=fPa(a);k=g[1];k=_.pPa(k);_.w("enable_polymer_icons_replace_underscores_dash")&&k.includes("_filled")&&(k=k.replace(/_filled/g,"-filled"));return _.p(x,ds(k,!0),3);case 3:return m=x.yieldResult,_.p(x,ds(k,!1),4);case 4:if((n=x.yieldResult)||b&&m)e.iconsetName="yt-sys-icons";e.iconName=e.getIconName(k,
b,c,n,m);if(d===24){x.jumpTo(0);break}r="yt-sys-icons"+d+":"+e.iconName;return _.p(x,ds(r,!1,!0),6);case 6:return t=x.yieldResult,_.p(x,ds(r,!0,!0),7);case 7:u=x.yieldResult;e.iconName=e.getIconName(k,b,c,t,u);if(!b&&t||b&&u)e.iconsetName="yt-sys-icons"+d;_.ue(x)}})};
_.f.getIconName=function(a,b,c,d,e){a.includes("-filled")&&(a=a.replace("-filled",""));return e&&(b||c)?a+"-filled":a};
_.f.useYtSysIconsetForMissingIcons=function(a,b,c,d){var e=this,g,k;return _.l(function(m){if(m.nextAddress==1)return e.iconsetName!=="yt-icons"?m.jumpTo(0):_.p(m,ds(e.iconName,!1,!1,!0),3);if(m.nextAddress!=4)return g=m.yieldResult,_.p(m,ds(e.iconName,!1),4);k=m.yieldResult;if(g||!k)return m.jumpTo(0);e.iconsetName="yt-sys-icons";return _.p(m,e.switchToYtSysIconset(a,b,c,d),0)})};
_.f.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
_.f.getIconManager=function(){return _.l(function(a){try{return a.return(_.v().resolve(_.fs))}catch(b){return a.return(new Promise(function(c){_.VF().parkOrScheduleJob(function(){c(_.v().resolve(_.fs))},2,"ci")}))}})};
_.f.getIconShapeData=function(){var a=this,b,c,d,e,g,k;return _.l(function(m){if(m.nextAddress==1){if(!a.iconType)return m.return(void 0);b=a.iconType.toLowerCase();c=b.endsWith("_filled")||b.endsWith("-filled");return _.p(m,a.getIconManager(),2)}d=m.yieldResult;e=a.active||a.defaultToFilled||c?"youtube_fill":"youtube_outline";g={iconName:b,iconStyle:e,iconSize:a.size,iconSetName:a.iconsetName};k=!!d.resolveIcon(g);k||(g.iconSize=void 0,k=!!d.resolveIcon(g));!k&&c&&(g.iconName=b.substring(0,b.length-
7),g.iconSize=a.size,k=!!d.resolveIcon(g),k||(g.iconSize=void 0,k=!!d.resolveIcon(g)));k||(g.iconStyle=void 0,k=!!d.resolveIcon(g));k||_.Dl(new _.qj("Icon not supported",{iconName:g.iconName,iconStyle:g.iconStyle,iconSize:g.iconSize,iconType:b}));return m.return(k?g:void 0)})};
_.f.shouldRenderIconShape=function(a){if(!_.w("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;a=this.getContainer(a);return!BSa(a,this.icon)};
_.f.renderIcon=function(a,b){var c=this,d,e,g,k,m,n,r,t;return _.l(function(u){switch(u.nextAddress){case 1:if(b&&c.icon!==b)return u.return();d=c.getContainer(a);e=BSa(d,c.icon);if(c.shouldRenderIconShape(a)&&c.iconType)return c.applyIconShape(e,d),u.return();c.removeIconShape();if(!d)return u.return();c.iconName===""&&c.iconset&&d&&(c.removeStaticIcon(c.iconset,d),e&&c.removeAnimatedIcon(d));if(c.iconName===""&&c.iconset||!c.iconsetName||!oPb)return u.return();c.iconset=oPb.byKey(c.iconsetName);
if(!c.iconset)return c.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.gr(c,c.onIconsetAdded)),u.return();c.missingIconSet&&(c.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.gr(c,c.onIconsetAdded)));k=(g=e||c.isAnimatedIcon?zSa(c.icon):void 0)&&!g.lazyLoad;n=g&&((m=g)==null?void 0:m.lazyLoad)&&(g.lottiePlayerProps.animationConfig.animationData?!0:dt.get(c.isDarkTheme?g.pathDarkTheme:g.path)?!0:!1);if(k||n)return c.applyAnimatedIcon(d,g,c.iconset),u.return();if(n||
(r=g)==null||!r.lazyLoad){u.jumpTo(2);break}t=DSa(g,c.isDarkTheme);c.applyStaticIcon(c.iconset,d,c.iconName,a,e);return _.p(u,t,3);case 3:return _.p(u,c.renderIcon(c.targetContainer,c.icon),4);case 4:return u.return();case 2:c.applyStaticIcon(c.iconset,d,c.iconName,a,e),_.ue(u)}})};
_.f.getContainer=function(a){var b,c=(b=SJa(this.hostElement))==null?void 0:b.host;b=!!c&&!!c.polymerController;if(!a||b)return a?this.getTargetContainer(a,c):this.hostElement};
_.f.getTargetContainer=function(a,b){var c=_.E(b).querySelector("#"+a);c||(a=new _.qj("yt-icon container missing",b.is,a),_.Bl(a));return c};
_.f.applyStaticIcon=function(a,b,c,d,e){e&&this.removeAnimatedIcon(b);this.removeIconShape();e=e&&!!this.iconType&&!!this.iconShapeData&&_.w("kevlar_use_wil_icons");try{e?this.applyIconShape(!1,b):a.applyIcon(b,c)}catch(g){this.handleError(g,d,b)}};
_.f.applyIconShape=function(a,b){this.iconset&&b&&(this.removeStaticIcon(this.iconset,b),a&&this.removeAnimatedIcon(b));a={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var c=_.h(this.iconShapeDataSignal);b=c.next().value;c=c.next().value;var d=_.h(this.renderingOptionsSignal),e=d.next().value;d=d.next().value;c(this.iconShapeData);d(a);if(!this.wizHasRendered)for(this.wizHasRendered=!0,a=_.h(JSa(b,e)).next().value;a.firstChild;)_.E(this.hostElement).appendChild(a.firstChild)};
_.f.removeIconShape=function(){if(_.w("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.f.removeStaticIcon=function(a,b){a.removeIcon(b)};
_.f.applyAnimatedIcon=function(a,b,c){this.removeStaticIcon(c,a);this.removeIconShape();var d;c=this.animatedIconElement&&((d=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:d.type)===b.type;if(this.animatedIconElement&&c){this.animatedIconElement.polymerController.animatedIcon=b;var e;((e=this.animatedIconElement)==null?void 0:e.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(a),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=b,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.w("kevlar_use_wil_icons")?a.insertBefore(this.animatedIconElement,a.childNodes[0]):(a=_.E(a),a.insertBefore(this.animatedIconElement,a.childNodes[0]))};
_.f.removeAnimatedIcon=function(a){_.w("kevlar_use_wil_icons")?this.animatedIconElement&&a.contains(this.animatedIconElement)&&a.removeChild(this.animatedIconElement):(a=_.E(a),this.animatedIconElement&&a.contains(this.animatedIconElement)&&a.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.f.handleError=function(a,b,c){_.El(a,this.iconName,b,c);b=BSa(c,this.icon);var d=!1;window.location.href.includes("JpymaW6Lh2w")?d=!0:c._svgIcon&&(c=(c=c._svgIcon.parentNode)?c.tagName:"unknown",_.El(a,c),c==="YT-ICON"&&a.name==="NotFoundError"?d=!0:a.name==="NotFoundError"&&b&&(d=!0));d?_.Dl(a):_.Bl(a)};
_.Um.Object.defineProperties(pPb,{template:{configurable:!0,enumerable:!0,get:function(){if(nPb===void 0){var a=document.createElement("template");_.B(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_icon.yt.icon.css.js--\x3e");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;
mPb===void 0&&(mPb=document.createElement("template"));var d=mPb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);nPb=a}a=nPb;return a}}});
var gH=pPb;gH.prototype.handlePropertyChange=gH.prototype.handlePropertyChange;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],gH.prototype,"actionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",String)],gH.prototype,"icon",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],gH.prototype,"active",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],gH.prototype,"defaultToFilled",void 0);
_.U([_.O({value:!1}),_.W("design:type",Boolean)],gH.prototype,"isAnimatedIcon",void 0);_.U([_.O({value:24}),_.W("design:type",Number)],gH.prototype,"size",void 0);_.U([_.O({value:""}),_.W("design:type",String)],gH.prototype,"targetContainer",void 0);_.U([_.O(),_.W("design:type",Object)],gH.prototype,"animatedIconElement",void 0);_.U([_.O(),_.W("design:type",Object)],gH.prototype,"isDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],gH.prototype,"ariaHidden",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],gH.prototype,"ariaLabel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],gH.prototype,"role",void 0);_.U([_.O(),_.W("design:type",String)],gH.prototype,"style",void 0);_.U([_.O(),_.W("design:type",String)],gH.prototype,"iconFilter",void 0);
_.U([_.N("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],gH.prototype,"handlePropertyChange",null);gH=_.U([_.wr({is:"yt-icon",noInjection:!0})],gH);var qPb;var rPb=function(){var a=document.body,b=a.appendChild;if(qPb===void 0){var c=document.createElement("template");_.B(c,'\x3c!--css-build:shady--\x3e<svg style="position: absolute; height: 0; width: 0;" aria-hidden="true"><defs><mask id="artwork__b" fill="#fff"><path d="M.24.24v70.2h10.43c0 33 26.76 59.77 59.77 59.77 33 0 59.77-26.7 59.77-59.7h9.7V.3H.3z"></path></mask><mask id="artwork__d" fill="#fff"><path d="M17.3.23C-2.2-.13.26 14.73.26 14.73s-.1 25.85 14.83 28.3c3.9.06 5.2-5.33 5.2-5.33l-2.2 13.24-4.6 31.26s17.9 5.3 33.4 1.02c.1-12.1 4-43.73 3.9-49.96 3.2 3.7 9 24.97 11 51.1 5.8 1.27 9.3 0 9.3 0S70.9 43.12 54.9 21c-4.7-6.87-16.7-6.87-16.7-6.87-7-.98-8.9-.8-16 .18-7.1 1-6.6 9.5-6.6 9.5s1 5.5-1.4 10.2c-8.1-5-7.1-20.5-7.1-20.5s.5-5.6 8.1-6.8c2.3-1.3 3.9-4.7 2-6.3z"></path></mask><mask id="artwork__f" fill="#fff"><path d="M15.65 12.32L2.2 10.67C1.06 10.54.26 9.5.4 8.4L1.18 2C1.32.88 2.35.07 3.48.2l13.45 1.66c1.12.13 1.92 1.16 1.8 2.28l-.8 6.4c-.13 1.1-1.16 1.92-2.28 1.78z"></path></mask><mask id="artwork__h" fill="#fff"><path id="artwork__g" d="M2.97.2l12.6 1.55-.3 11.72-15.03-2.1z"></path></mask><mask id="artwork__j" fill="#fff"><path d="M.2.24c10.98 3.92 12.35 11.63 12.35 11.63l-.44.8S3.3 10.34.2.25z"></path></mask><mask id="artwork__l" fill="#fff"><path d="M.17.27S7.42.9 5.7 4.77l-.7.98C1 8.05.16.27.16.27z"></path></mask><mask id="artwork__n" fill="#fff"><path d="M.24.24H6.4S7.14 4.8 3.32 4.8C-.5 4.8.24.24.24.24z" id="artwork__m"></path></mask><mask id="artwork__p" fill="#fff"><circle cx="6.46" cy="6.64" r="6.46"></circle></mask><mask id="artwork__r" fill="#fff"><circle cx="6.46" cy="6.64" r="6.46"></circle></mask><mask id="artwork__t" fill="#fff"><path d="M28 14.83c0 8.06-6.22 14.6-13.9 14.6-7.7 0-13.9-4-13.9-14.6C.2 6.77 6.4.25 14.1.25 21.77.25 28 6.78 28 14.83z"></path></mask><mask id="artwork__v" fill="#fff"><path d="M28 14.83c0 8.06-6.22 14.6-13.9 14.6-7.7 0-13.9-4-13.9-14.6C.2 6.77 6.4.25 14.1.25 21.77.25 28 6.78 28 14.83z"></path></mask><mask id="artwork__x" fill="#fff"><path d="M.55.4l9.95.24s1.64 9.34-2.4 9.6C-1.47 10.54.54.4.54.4z"></path></mask><mask id="artwork__z" fill="#fff"><circle cx="59.77" cy="59.77" r="59.77"></circle></mask><clipPath id="hashtag_landing_page_empty__a"><path class="hashtag_landing_page_empty__cls-1" d="M0 0h200v200H0z"></path></clipPath><clipPath id="hashtag_landing_page_empty_dark_mode__a"><path class="hashtag_landing_page_empty_dark_mode__cls-1" d="M0 0h200v200H0z"></path></clipPath><clipPath id="hashtag_landing_page_error__a"><path class="hashtag_landing_page_error__cls-1" d="M-79.58-79.58h459.2v459.2h-459.2z"></path></clipPath><clipPath id="hashtag_landing_page_error__c"><path class="hashtag_landing_page_error__cls-1" d="M189.2 50.73c-44.7 0-83.94 30.59-90.33 67.34-7.88 45.31 26.77 92.29 78 101.2s101.3-23.34 109.2-68.65-28.76-89.53-80.04-98.45a97.63 97.63 0 00-16.75-1.45"></path></clipPath><clipPath id="hashtag_landing_page_error__b"><path class="hashtag_landing_page_error__cls-1" d="M1.49 219.9L124.8 212l-60.67-41.9z"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__a"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M-78.75-78.75h457.5v457.5h-457.5z"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__c"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M99.07 118.2c-7.85 45.15 26.68 92 77.76 100.8s100.9-23.25 108.8-68.39-28.69-89.21-79.78-98.1a98.36 98.36 0 00-16.72-1.44c-44.54 0-83.64 30.48-90 67.09"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__b"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M2.03 219.7l122.87-7.9L64.45 170z"></path></clipPath><mask id="offline_no_content__b" fill="#fff"><use xlink:href="#offline_no_content__a"></use></mask><mask id="offline_no_content__d" fill="#fff"><use xlink:href="#offline_no_content__c"></use></mask><path id="offline_no_content__a" d="M0 194.555V.675h191.961v193.88z"></path><path d="M.668 18.586C8.545 12.047 15.125 3.19 25.082.49v20.673H.668v-2.577z" id="offline_no_content__c"></path><clipPath id="empty_search__clip-path"><path d="M3.43 126.34H227a29.17 29.17 0 0 0-5.06-24c-4.42-6.11-10-12.51-9.71-28.73s-.4-59.23-20.9-67.3c-28.87-11.37-53.18 18.05-71.57 19s-32.31-9.34-45.87-4.5-11.63 16.68-18.17 19.83-20.58.73-25.18 13.8S34.06 77.8 25 83.73c-8.82 5.75-27.62 9.32-21.57 42.61z" fill="none"></path></clipPath><clipPath id="chrome_icon__b"><use overflow="visible" xlink:href="#chrome_icon__a"></use></clipPath><clipPath id="chrome_icon__f"><use overflow="visible" xlink:href="#chrome_icon__e"></use></clipPath><clipPath id="chrome_icon__j"><use overflow="visible" xlink:href="#chrome_icon__i"></use></clipPath><clipPath id="chrome_icon__n"><use overflow="visible" xlink:href="#chrome_icon__m"></use></clipPath><linearGradient id="chrome_icon__c" x1="29.337" x2="81.837" y1="75.021" y2="44.354" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a52714" stop-opacity=".6"></stop><stop offset=".66" stop-color="#a52714" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__d" x1="110.872" x2="52.538" y1="164.495" y2="130.329" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#055524" stop-opacity=".4"></stop><stop offset=".33" stop-color="#055524" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__g" x1="121.858" x2="136.547" y1="49.804" y2="114.13" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ea6100" stop-opacity=".3"></stop><stop offset=".66" stop-color="#ea6100" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__h" x1="121.858" x2="136.547" y1="49.804" y2="114.13" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ea6100" stop-opacity=".3"></stop><stop offset=".66" stop-color="#ea6100" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__k" x1="29.337" x2="81.837" y1="75.021" y2="44.354" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a52714" stop-opacity=".6"></stop><stop offset=".66" stop-color="#a52714" stop-opacity="0"></stop></linearGradient><radialGradient id="chrome_icon__l" cx="668.176" cy="55.948" r="84.078" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#3e2723" stop-opacity=".2"></stop><stop offset="1" stop-color="#3e2723" stop-opacity="0"></stop></radialGradient><linearGradient id="chrome_icon__o" x1="110.872" x2="52.538" y1="164.495" y2="130.329" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#055524" stop-opacity=".4"></stop><stop offset=".33" stop-color="#055524" stop-opacity="0"></stop></linearGradient><radialGradient id="chrome_icon__p" cx="597.875" cy="48.52" r="78.044" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#3e2723" stop-opacity=".2"></stop><stop offset="1" stop-color="#3e2723" stop-opacity="0"></stop></radialGradient><radialGradient id="chrome_icon__q" cx="671.844" cy="96.138" r="87.87" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#263238" stop-opacity=".2"></stop><stop offset="1" stop-color="#263238" stop-opacity="0"></stop></radialGradient><radialGradient id="chrome_icon__r" cx="34.286" cy="32.014" r="176.746" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff" stop-opacity=".1"></stop><stop offset="1" stop-color="#fff" stop-opacity="0"></stop></radialGradient><circle id="chrome_icon__a" cx="96" cy="96" r="88"></circle><path id="chrome_icon__e" d="M8 184h83.77l38.88-38.88V116H61.36L8 24.48z"></path><path id="chrome_icon__i" d="M96 56l34.65 60-38.88 68H184V56z"></path><path id="chrome_icon__m" d="M21.97 8v40.34L61.36 116 96 56h88V8z"></path><circle id="ring__dot" cx="4" cy="4" r="2"></circle><linearGradient id="premium_standalone_cairo__paint0_linear_6125_21625" x1="2" y1="22" x2="22" y2="2" gradientUnits="userSpaceOnUse"><stop offset="0.3" stop-color="#E1002D"></stop><stop offset="0.9" stop-color="#E01378"></stop></linearGradient></defs></svg><iron-iconset-svg name="backstage"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="hashtag-landing-page"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="live-chat-badges" size="16"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="miniplayer" size="24"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="offline-no-content"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="promo-full-height"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="rotten-tomatoes" size="13"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="settings"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="shorts" size="32"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="spinners" size="22"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-icons" rtl-mirroring="" size="24" use-global-rtl-attribute=""><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-logos"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons" rtl-mirroring="" size="24" use-global-rtl-attribute=""><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons12" rtl-mirroring="" size="12"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons13" rtl-mirroring="" size="13"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons15" rtl-mirroring="" size="15"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons16" rtl-mirroring="" size="16"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons18" rtl-mirroring="" size="18"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons20" rtl-mirroring="" size="20"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons36" rtl-mirroring="" size="36"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons48" rtl-mirroring="" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="ytcp-icons" size="24"><svg><defs></defs></svg></iron-iconset-svg>');
qPb=c}c=qPb;b.call(a,c.content)};
document.body?rPb():window.addEventListener("DOMContentLoaded",rPb);var sPb,tPb=function(){return sPb!==void 0?sPb:sPb=document.createElement("template")};
document.head.appendChild(tPb().content);var uPb,vPb=function(){return uPb!==void 0?uPb:uPb=document.createElement("template")};
document.head.appendChild(vPb().content);var wPb;_.Bu=new _.jB("KEY_MANAGER_TOKEN");var OSa={duration:1E3,easing:"ease",fill:"forwards"};_.Zl(NSa);var xPb=_.jt(_.kt);_.Zl(_.kt);_.rt=_.Rr(function(a){var b=_.Pl(a.ref),c=a.aTagConfig?a.aTagConfig:_.ph(function(){var g,k,m,n,r,t;var u=(t=_.Ds((n=a.command)==null?void 0:n.call(a)))!=null?t:(r=a.command)==null?void 0:r.call(a);return _.Fs({innertubeCommand:u,skipOnClick:(g=a.skipOnClick)==null?void 0:g.call(a),stopPropagation:(k=a.dangerousStopPropagation)==null?void 0:k.call(a),defaultTarget:(m=a.target)==null?void 0:m.call(a)})||{}},void 0,"O4xuPc");
_.wh(function(){b.value._data=c()._data;b.value.params=c().params},"zaBRFf");
var d=_.lt(function(g){var k,m;return void((m=(k=c()).onpointerdown)==null?void 0:m.call(k,g))}),e=_.lt(function(g){var k,m;
return void((m=(k=c()).onclick)==null?void 0:m.call(k,g))});
return _.q("a",{el:b,href:function(){return c().href$},
rel:function(){return c().rel$},
class:function(){var g,k;return(k=c().className)!=null?k:(g=a.className)==null?void 0:g.call(a)},
style:function(){var g;if((g=a.style)==null?0:g.call(a))return a.style();var k;return((k=a.disabled)==null?0:k.call(a))?"pointer-events:none":""},
"aria-haspopup":function(){return!!c()["aria-haspopup$"]},
"force-new-state":mt(function(){return c()["force-new-state$"]}),
title:mt(function(){var g,k;return(k=c().title$)!=null?k:(g=a.title)==null?void 0:g.call(a)}),
role:mt(function(){return c().role$}),
target:mt(function(){return c().target$}),
dir:mt(function(){return c().dir}),
tabindex:function(){var g;return c().tabindex$?Number(c().tabindex$):(g=a.tabIndex)==null?void 0:g.call(a)},
"aria-hidden":function(){var g,k;return(k=c()["aria-hidden$"])!=null?k:(g=a.ariaHidden)==null?void 0:g.call(a)},
"aria-label":function(){var g,k;return(k=c()["aria-label$"])!=null?k:(g=a.ariaLabel)==null?void 0:g.call(a)},
"aria-current":a.ariaCurrent,"aria-labelledby":a.ariaLabelledby,"aria-describedby":a.ariaDescribedby,"aria-selected":a.ariaSelected,"tab-identifier":a.tabIdentifier,"on:pointerdown":d,"on:click":e},a.children)},"j");var hH=function(a,b){this.fillAnimation=new Animation(PSa(a),document.timeline);this.strokeAnimation=new Animation(QSa(b),document.timeline)};
hH.prototype.play=function(){var a,b;(b=(a=this.fillAnimation).play)==null||b.call(a);var c,d;(d=(c=this.strokeAnimation).play)==null||d.call(c)};
hH.prototype.cancel=function(){var a,b;(b=(a=this.fillAnimation).cancel)==null||b.call(a);var c,d;(d=(c=this.strokeAnimation).cancel)==null||d.call(c)};_.ut=_.Rr(function(a){var b=a.model;var c=a.pointerDownEvent;var d=a.pointerUpEvent;var e=a.pointerLeaveEvent;a=_.Pl();var g=_.ot({"border-radius":function(){return b().borderRadius}}),k=_.Pl(),m=_.Pl(),n=_.h(_.nt(function(){return(d==null?0:d())||(e==null?0:e())?!1:!(c==null||!c())||!1})),r=n.next().value,t=n.next().value,u=void 0,x=function(){!u&&m.value&&k.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(u=new hH(m.value,k.value));
var I;(I=u)==null||I.play()},A=function(){var I;
(I=u)==null||I.cancel()},C=function(){var I;
(I=u)==null||I.cancel()};
_.wh(function(){(d==null?0:d())&&x()},"qauSme");
_.wh(function(){(c==null?0:c())&&A()},"ukbctd");
_.wh(function(){(e==null?0:e())&&C()},"iVUZwc");
n=_.lt(function(){x();t(!1)});
var F=_.lt(function(){A();t(!0)});
_.Rl(a,"pointerleave",function(){C();t(!1)});
_.zh(function(){if(u){var I;(I=u)==null||I.cancel();u=void 0}});
var J={};r=_.et("yt-spec-touch-feedback-shape",function(){return SSa(b().color)},(J["yt-spec-touch-feedback-shape--focused"]=function(){return!!b().focused&&!b().disabled},J["yt-spec-touch-feedback-shape--circular"]=function(){return!!b().circular},J["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!b().isExtended},J["yt-spec-touch-feedback-shape--down"]=r,J["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!b().triggerEvents},J));
return _.q("yt-touch-feedback-shape",{style:_.ot({"border-radius":"inherit"})},_.q("div",{el:a,class:r,style:_.ot({"margin-top":function(){return b().customTopExtend?"-"+b().customTopExtend+"px":void 0}}),
"on:mousedown":F,"on:mouseup":n,"on:touchstart":F,"on:touchend":n,"aria-hidden":!0},_.q("div",{class:"yt-spec-touch-feedback-shape__stroke",style:g,el:k}),_.q("div",{class:"yt-spec-touch-feedback-shape__fill",style:g,el:m})))},"k");
_.ut.idomCompat=!0;var yPb={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1};var iH=_.ua();iH=iH.toLowerCase();if(_.ra(iH,"android")){var zPb=iH.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);zPb&&parseFloat(zPb[1])<100||iH.match("("+Object.keys(yPb).join("|")+")")};var APb=_.Rr(function(a){return _.q(_.qi,{cond:a.aTagConfig,then:function(b){return _.q(_.rt,{aTagConfig:b,disabled:a.disabled,className:a.className,style:a.style,title:a.title,ariaLabel:a.ariaLabel,ariaCurrent:function(){var c,d;return((c=a.toggleable)==null?void 0:c.call(a))&&((d=a.toggled)==null?void 0:d.call(a))}},a.children)},
else:function(){return _.q("button",{"on:click":_.lt(function(b){var c;return(c=a.onClick)==null?void 0:c.call(a,b)}),
class:a.className,title:a.title,style:a.style,disabled:a.disabled,"aria-pressed":function(){var b,c;return((b=a.toggleable)==null?0:b.call(a))?!((c=a.toggled)==null||!c.call(a)):void 0},
"aria-label":a.ariaLabel,"aria-disabled":a.visiblyDisabled,"aria-hidden":a.ariaHidden,tabindex:a.tabIndex},a.children)}})},"l"),CPb=_.Rr(function(a){var b=a.data;
var c=a.hasIconLeading;var d=a.hasIconLeadingTrailing;var e=a.hasIconTrailing;var g=a.iconButton;var k=a.iconClassName;var m=a.secondaryIconClassName;var n=a.icon;var r=a.secondaryIcon;var t=a.textContentClassName;return _.q(jH,{className:"",style:"display: inherit; justify-content: center"},_.q(_.qi,{cond:function(){return(_.w("web_sink_bsh_icon_read_ks")?n==null?void 0:n():n)&&(c()||d()||(g==null?void 0:g()))},
then:function(){return _.q(jH,null,_.q("div",{class:k,"aria-hidden":"true"},n==null?void 0:n()))}}),_.q(_.qi,{cond:function(){return(b().buttonText||b().animatedTextProps||b().formattedButtonText)&&!(g==null?0:g())},
then:function(){return _.q(jH,null,_.q(BPb,{className:t,iconPosition:function(){return b().iconPosition},
text:function(){return b().buttonText},
oneOffCustomTextWrap:function(){return b().oneOffCustomTextWrap},
formattedButtonText:function(){return b().formattedButtonText},
animatedTextProps:function(){return b().animatedTextProps}}))}}),_.q(_.qi,{cond:e,
then:function(){return _.q(jH,null,_.q("div",{class:k},n==null?void 0:n()))}}),_.q(_.qi,{cond:d,
then:function(){return _.q(jH,null,_.q("div",{class:m},r==null?void 0:r()))}}),_.q(_.qi,{cond:function(){return!b().disabled&&!0},
then:function(){return _.q(_.ut,{model:function(){return{color:WSa(b())}}})}}))},"m"),BPb=_.Rr(function(a){var b=function(){var c,d;
return((c=a.iconPosition)==null?void 0:c.call(a))==="icon-with-label"||((d=a.oneOffCustomTextWrap)==null?void 0:d.call(a))};
return _.q("div",{class:a.className,"aria-hidden":function(){var c,d,e;return((c=a.ariaHidden)==null?void 0:c.call(a))&&(!((d=a.animatedTextProps)==null||!d.call(a))||!((e=a.formattedButtonText)==null||!e.call(a)))}},_.q(_.ti,null,_.q(_.si,{when:function(){var c;
return(c=a.animatedTextProps)==null?void 0:c.call(a)}},function(){return _.q(xPb,{numberText:function(){return a.animatedTextProps().numberText},
numberValue:function(){return a.animatedTextProps().numberValue},
heightPx:function(){return a.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return a.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return a.animatedTextProps().shouldAnimate},
forceRollUp:function(){return a.animatedTextProps().forceRollUp}})}),_.q(_.si,{when:function(){var c;
return(c=a.formattedButtonText)==null?void 0:c.call(a)}},function(){return _.q(_.tt,{text:function(){return Object.assign({},a.formattedButtonText(),{lineBreakMode:b()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":a.formattedButtonText().lineBreakMode,
alignment:b()?"TEXT_ALIGNMENT_CENTER":a.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!b()}})}),_.q(_.Pna,null,function(){return a.text})))},"n"),DPb=_.Rr(function(a){return _.q(_.qi,{cond:a.hasLabel,
then:function(){var b;return _.q("label",{class:a.className},a.children,(b=a.textContent)==null?void 0:b.call(a))},
else:function(){return a.children}})},"o"),jH=_.Rr(function(a){return a.children},"p");var bva=Wg("stamper-context");_.Zl(st);var fTa=new Map;var hTa=!1,EPb=!1;var xs=function(){WNb.apply(this,arguments);var a=this;this.state={down:!1};this.JSC$11567_onPointerUp=function(){!a.JSC$11567_currentAnimation&&a.JSC$11567_fillElement&&a.JSC$11567_strokeElement&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(a.JSC$11567_currentAnimation=new hH(a.JSC$11567_fillElement,a.JSC$11567_strokeElement));a.setState({down:!1});var b;(b=a.JSC$11567_currentAnimation)==null||b.play()};
this.JSC$11567_onPointerDown=function(){var b;(b=a.JSC$11567_currentAnimation)==null||b.cancel();a.setState({down:!0})};
this.onPointerLeave=function(){var b;(b=a.JSC$11567_currentAnimation)==null||b.cancel();a.setState({down:!1})}};
_.z(xs,WNb);xs.prototype.onConnected=function(){this.hostElement.style.borderRadius="inherit"};
xs.prototype.render=function(){var a=this,b=this.props.model,c=b.disabled,d=b.focused,e=b.borderRadius,g=b.circular,k=b.isExtended;b=b.color;var m={};c=(m["yt-spec-touch-feedback-shape"]=!0,m["yt-spec-touch-feedback-shape--focused"]=!!d&&!c,m["yt-spec-touch-feedback-shape--circular"]=!!g,m["yt-spec-touch-feedback-shape--is-extended"]=!!k,m["yt-spec-touch-feedback-shape--down"]=!!this.state.down,m[gTa(b)]=!0,m);xt({className:_.ht(c),onmousedown:this.JSC$11567_onPointerDown,onmouseup:this.JSC$11567_onPointerUp,
ontouchstart:this.JSC$11567_onPointerDown,ontouchend:this.JSC$11567_onPointerUp,onpointerleave:this.onPointerLeave,"aria-hidden$":!0},function(){var n=e?{borderRadius:e}:void 0;xt({className:"yt-spec-touch-feedback-shape__stroke",style:n},function(r){a.JSC$11567_strokeElement=r});
xt({className:"yt-spec-touch-feedback-shape__fill",style:n},function(r){a.JSC$11567_fillElement=r})})};
xs.tagName="yt-touch-feedback-shape";var vv=_.Rr(function(a){var b=a.data;var c=a.icon;var d=a.iconName;var e=a.secondaryIcon;var g=a.secondaryIconName;var k=a.focusedOverride;ZSa();var m=TSa(b),n=m.size,r=m.style;a=m.disabled;var t=m.onTap,u=m.alignByText,x=m.aTagConfig,A=m.customColors,C=m.segmentedPosition,F=m.toggled,J=m.toggleable,I=m.accessibilityLabel,R=m.onToggle,da=m.iconPosition,V=m.oneOffCustomTextWrap,fa=m.disableTextEllipsis,aa=m.tooltipText,ma=m.ariaHidden,Ba=m.tabIndex,Ca=m.buttonText,ya=m.formattedButtonText,Ia=m.animatedTextProps,
db=VSa(b,c,e,d,g,k),lb=db.type;c=db.shouldFocus;d=db.hasIconLeading;e=db.hasIconTrailing;g=db.hasIconLeadingTrailing;var Ua=db.hasIconOnly;k=db.hasIconOnly40;var Vb=db.hasIconWithLabel;m=db.iconButton;var rb=db.visiblyDisabled,sb=db.overrideSmallSizeIcon,yc=db.iconToRender;db=db.secondaryIconToRender;var Mb={},ub={};return _.q(DPb,{className:_.et("yt-spec-button-shape-with-label",(Mb["yt-spec-button-shape-with-label--is-overlay"]=function(){return r()==="overlay"||r()==="overlay-dark"},Mb)),
hasLabel:Vb,textContent:function(){return _.q(BPb,{text:Ca,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:V,iconPosition:da,formattedButtonText:ya,animatedTextProps:Ia})}},_.q(APb,{aTagConfig:x,
className:_.et("yt-spec-button-shape-next",function(){return $Sa(lb())},function(){return rb()?void 0:aTa(r())},function(){return bTa(n())},(ub["yt-spec-button-shape-next--disabled"]=rb,ub["yt-spec-button-shape-next--focused"]=c,ub["yt-spec-button-shape-next--icon-trailing"]=e,ub["yt-spec-button-shape-next--icon-leading"]=d,ub["yt-spec-button-shape-next--icon-leading-trailing"]=g,ub["yt-spec-button-shape-next--icon-button"]=function(){return Ua()||Vb()},ub["yt-spec-button-shape-next--icon-only-default"]=
k,ub["yt-spec-button-shape-next--align-by-text"]=u,ub["yt-spec-button-shape-next--segmented-start"]=function(){return C()==="start"},ub["yt-spec-button-shape-next--segmented-end"]=function(){return C()==="end"},ub["yt-spec-button-shape-next--override-small-size-icon"]=sb,ub["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=V,ub["yt-spec-button-shape-next--disable-text-ellipsis"]=fa,ub["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=XSa(),ub)),
style:function(){return cTa(A()).style},
onClick:function(Db){t==null||t(Db);J()&&(R==null||R(Db))},
disabled:a,ariaLabel:I,toggleable:J,toggled:F,title:function(){var Db;return(Db=aa())!=null?Db:""},
visiblyDisabled:rb,ariaHidden:ma,tabIndex:Ba},_.q(CPb,{data:b,hasIconLeading:d,hasIconLeadingTrailing:g,hasIconTrailing:e,iconButton:m,icon:yc,textContentClassName:"yt-spec-button-shape-next__button-text-content",iconClassName:"yt-spec-button-shape-next__icon",secondaryIconClassName:"yt-spec-button-shape-next__secondary-icon",secondaryIcon:db})))},"q");
vv.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var FPb=_.Rr(function(a){var b=a.data;var c=a.id;var d=a.hidden;var e=a.disableUpgrade;var g=a.className;var k=a.icon;var m=a.secondaryIcon;var n=a.iconName;var r=a.secondaryIconName;a=_.h(_.ih(!1,void 0,"O7k8w"));var t=a.next().value,u=a.next().value,x=function(){var C=_.v().resolve(_.Xi(_.Bu));C&&u(C.isKeyBoardInUse())},A=function(){u(!1)};
a=_.Pl(function(C){if((e==null||!e())&&_.v().resolve(_.Xi(_.Bu)))return C.addEventListener("focusin",x),C.addEventListener("focusout",A),function(){C.removeEventListener("focusin",x);C.removeEventListener("focusout",A)}});
return _.q("yt-button-shape",{el:a,id:c,class:g,hidden:function(){return(d==null?void 0:d())||(e==null?void 0:e())}},_.q(_.qi,{cond:function(){return!(e==null?0:e())},
then:function(){return _.q(vv,{data:b,icon:k,secondaryIcon:m,iconName:n,secondaryIconName:r,focusedOverride:t})}}))},"r");
_.w("web_wiz_button_shape")&&_.Ts(FPb,"yt-button-shape",{props:{data:_.VG,id:_.VG,hidden:_.VG,disableUpgrade:_.VG,className:_.VG,icon:_.Ss,secondaryIcon:_.Ss,iconName:_.VG,secondaryIconName:_.VG},unsafeExternallySettableAttributes:new Set(["key"])});var kH=function(){var a=_.P.apply(this,arguments)||this;a.keyboardFocused=!1;return a};
_.z(kH,_.P);kH.prototype.onFocus=function(){var a=_.v().resolve(_.Xi(_.Bu));a&&(this.keyboardFocused=a.isKeyBoardInUse())};
kH.prototype.onBlur=function(){this.keyboardFocused=!1};
kH.prototype.renderIdom=function(){var a=this;if(this.data){var b=wt(this.data,!!this.iconName),c=jTa(this.data);this.data.focused=this.keyboardFocused;zt(this.data,function(){var d;vs("yt-icon",{icon:a.iconName,active:(d=a.data)==null?void 0:d.toggled,size:b,style:"width: "+b+"px; height: "+b+"px;",iconFilter:c},Nh)},function(){var d;
vs("yt-icon",{icon:a.secondaryIconName,active:(d=a.data)==null?void 0:d.toggled,size:b,style:"width: "+b+"px; height: "+b+"px;",iconFilter:c},Nh)});
_.io(this.hostElement,"yt-renderidom-finished")}};
_.Um.Object.defineProperties(kH,{template:{configurable:!0,enumerable:!0,get:function(){if(wPb===void 0){var a=document.createElement("template");_.B(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);a.content.insertBefore(vPb().content.cloneNode(!0),a.content.firstChild);a.content.insertBefore(tPb().content.cloneNode(!0),a.content.firstChild);wPb=a}a=wPb;return a}}});
var lH=kH;lH.prototype.onBlur=lH.prototype.onBlur;lH.prototype.onFocus=lH.prototype.onFocus;_.U([_.H(ZNb),_.W("design:type",Object)],lH.prototype,"ytIdomTemplatingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],lH.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],lH.prototype,"iconName",void 0);_.U([_.O(),_.W("design:type",String)],lH.prototype,"secondaryIconName",void 0);_.U([_.O(),_.W("design:type",Object)],lH.prototype,"keyboardFocused",void 0);
_.U([_.M("focusin"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lH.prototype,"onFocus",null);_.U([_.M("focusout"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lH.prototype,"onBlur",null);lH=_.U([_.wr({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.w("web_wiz_button_shape")})],lH);_.Ts(_.Rr(function(a){function b(){c().seconds&&g(UFa({seconds:Number(c().seconds)-Date.now()/1E3}))}
var c=a.targetTimestamp;a=a.className;var d=_.h(_.ih("",void 0,"U1Q8Ae")),e=d.next().value,g=d.next().value;_.pi(function(){b();var k=setInterval(function(){b()},1E3);
_.zh(function(){clearInterval(k)})});
return _.q("yt-countdown",{class:_.et("ytCountDownHost",a)},_.q("div",null,e))},"s"),"yt-countdown",{props:{targetTimestamp:_.VG,
className:_.Ss}});_.Qu=_.Rr(function(a){var b=a.data;var c=a.className;var d=a.style;var e=a.useOutlinedIcon;var g=a.buttonOverrides;var k=a.animatedTextProps;var m=a.onClick;var n=_.Pl(function(I){return function(){MLb(_.sG(),I)}}),r=function(){return b().iconName},t=function(){var I=b();
var R=g==null?void 0:g(),da=k==null?void 0:k();if(I){var V=qTa(I.type);var fa=!!I.title||!!I.titleFormatted;var aa=!(!I.iconName&&!I.iconImage);fa=aa&&!fa?"icon-only":aa?I.iconTrailing||I.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;fa==="icon-only-40"&&(V="text");var ma,Ba=(ma=R==null?void 0:R.disabled)!=null?ma:I.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||I.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";ma=Object;aa=ma.assign;var Ca=I.title,ya=I.titleFormatted;
da=da&&da.numberText&&!isNaN(Number(da.numberValue))?da:void 0;var Ia=I.accessibilityText,db=pTa(I.style),lb=rTa(I.state),Ua=sTa(I.buttonSize),Vb=oTa(I,n,Ba,m);Ba=Ba&&!I.onDisabledTap;var rb=_.Fs({elementsCommand:I.onTap,forceNewState:!0});rb=kQa(rb)?rb:void 0;var sb=I.customFontColor;var yc=I.customBackgroundColor,Mb=I.customBorderColor;sb={color:sb?_.Dq(sb):void 0,backgroundColor:yc?_.Dq(yc):void 0,borderColor:Mb?_.Dq(Mb):void 0};I=aa.call(ma,{},{buttonText:Ca,formattedButtonText:ya,animatedTextProps:da,
accessibilityLabel:Ia,style:db,type:V,state:lb,size:Ua,iconPosition:fa,onTap:Vb,disabled:Ba,aTagConfig:rb,customColors:sb,tooltipText:I.tooltip},R)}else I={style:"mono",type:"text",state:"active",size:"M"};I.focused=C();return I},u=function(){return wt(t(),!!b().iconName)};
a=_.h(_.ih(!1,void 0,"vozwtc"));var x=a.next().value,A=a.next().value,C=x;a=_.lt(function(){var I=_.v().resolve(_.Xi(_.Bu));I&&A(I.isKeyBoardInUse());return!1});
x=_.lt(function(){A(!1);return!1});
_.wh(function(){var I,R=_.y(b==null?void 0:(I=b())==null?void 0:I.onVisible,_.Cs);R&&_.Es(R,{disableClickTracking:!0})},"mZ2LMc");
var F=function(){if(r()){var I,R={activeState:(e==null?0:e())?!1:t().toggled,animateIcon:d==null?void 0:(I=d())==null?void 0:I.animateIcon};R.iconSize=u();_.v().resolve(Au)(r()||null,R)}else(I=b().iconImage)&&qRa({sources:[I]},{alt:"",targetWidth:u(),targetHeight:u(),preserveWidth:!0,preserveHeight:!0})},J=function(){return b().iconImage?{sources:[b().iconImage]}:void 0};
_.wi(function(){n.value.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var I=b().targetId;I&&_.OLb(_.sG(),I,n.value)});
return _.q("button-view-model",{el:n,class:_.et("yt-spec-button-view-model",c),"on:focusin":a,"on:focusout":x},_.w("web_wiz_button_shape_bvm")?_.q(_.qi,{cond:J,then:function(I){return _.q(vv,{data:t,icon:function(){return _.q(_.Ps,{data:I,alt:"",targetWidth:u,targetHeight:u,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.q(vv,{data:t,icon:function(){return _.q(_.qt,{icon:r,active:function(){return(e==null?0:e())?!1:t().toggled},
animateIcon:function(){var I;return!!(d==null?0:(I=d())==null?0:I.animateIcon)},
size:u})}})}}):_.q(gva,null,function(){var I=t();
return _.q(Sl,null,function(){zt(I,F)})}))},"t");
_.Qu.idomCompat={callbacks:{onClick:!0}};_.Ts(_.Rr(function(a){return _.q("yt-button-view-model",{id:a.id,class:_.et(a.scopingClassName,a.classes),icon:function(){var b;return(b=a.icon)==null?void 0:b.call(a)},
"dialog-dismiss":function(){var b;return((b=a.dialogDismiss)==null?0:b.call(a))?"":void 0}},_.q(_.Qu,{data:function(){var b;
return(b=a.data)==null?void 0:b.call(a)},
className:function(){var b;return(b=a.className)==null?void 0:b.call(a)},
style:function(){var b;return(b=a.style)==null?void 0:b.call(a)},
useOutlinedIcon:function(){var b;return(b=a.useOutlinedIcon)==null?void 0:b.call(a)},
buttonOverrides:function(){var b;return(b=a.buttonOverrides)==null?void 0:b.call(a)},
animatedTextProps:function(){var b;return(b=a.animatedTextProps)==null?void 0:b.call(a)},
onClick:function(b){var c;return(c=a.onClick)==null?void 0:c.call(a,b)}}))},"u"),"yt-button-view-model",{props:{data:_.VG,
className:_.VG,style:_.VG,useOutlinedIcon:_.VG,buttonOverrides:_.VG,animatedTextProps:_.VG,onClick:_.Ss,scopingClassName:_.VG,id:_.VG,icon:_.VG,dialogDismiss:_.VG,classes:_.VG}});var mH=function(){var a=_.P.apply(this,arguments)||this;a.isGoalActive=!0;return a};
_.z(mH,_.P);mH.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
mH.prototype.progressBarChanged=function(){var a=_.E(this.hostElement).querySelector("#progress-bar-progress"),b,c,d,e=(d=Number((b=this.creatorGoalState)==null?void 0:b.currentGoalCount)/Number((c=this.creatorGoalState)==null?void 0:c.totalGoalCount)*100)!=null?d:0,g;a.style.width=((g=Math.min(e,100))!=null?g:0)+"%"};
mH.prototype.goalStateChanged=function(){var a;this.isGoalActive=((a=this.creatorGoalState)==null?void 0:a.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var b;a={"--yt-progress-bar-color":HPa((b=this.creatorGoalState)==null?void 0:b.progressBarColor)};_.fr(this.hostElement,a)};
mH.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.Um.Object.defineProperties(mH.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var a;return this.isGoalActive&&!((a=this.creatorGoalState)==null||!a.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.creatorGoalState)==null?0:a.endTimestampMs){var b;a=Number((b=this.creatorGoalState)==null?void 0:b.endTimestampMs)/1E3;return{seconds:String(a)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.creatorGoalState)==null?0:a.themedTargetImage){var b;a=_.y((b=this.creatorGoalState)==null?void 0:b.themedTargetImage,oGb);return this.isAppDarkTheme()?a==null?void 0:a.imageDark:a==null?void 0:a.imageLight}}}});
_.Um.Object.defineProperties(mH,{template:{configurable:!0,enumerable:!0,get:function(){return aPb()}}});
var nH=mH;nH.prototype.goalStateChanged=nH.prototype.goalStateChanged;nH.prototype.progressBarChanged=nH.prototype.progressBarChanged;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],nH.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.MG),_.W("design:type",Object)],nH.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],nH.prototype,"ytRendererBehavior",void 0);
_.U([_.O({selectorArgs:["data.creatorGoalEntityKey"],selector:function(a,b){return _.np(a.entities,"creatorGoalEntity",b)}}),
_.W("design:type",Object)],nH.prototype,"creatorGoalState",void 0);_.U([_.O(),_.W("design:type",Object)],nH.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],nH.prototype,"isGoalActive",void 0);_.U([_.K("creatorGoalState"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],nH.prototype,"shouldShowCountdown",null);_.U([_.K("creatorGoalState"),_.W("design:type",Object),_.W("design:paramtypes",[])],nH.prototype,"endTimestamp",null);
_.U([_.K("creatorGoalState"),_.W("design:type",Object),_.W("design:paramtypes",[])],nH.prototype,"targetIconThemedImage",null);_.U([_.N("creatorGoalState.currentGoalCount"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nH.prototype,"progressBarChanged",null);_.U([_.N("creatorGoalState.creatorGoalState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nH.prototype,"goalStateChanged",null);
nH=_.U([_.wr({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],nH);_.S(nH,"yt-creator-goal-progress-flow-view-model",function(){return aPb()},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var GPb;var HPb;var IPb=function(){return _.P.apply(this,arguments)||this};
_.z(IPb,_.P);IPb.prototype.attached=function(){var a,b,c;if(this==null?0:(a=this.data)==null?0:(b=a.pdgPurchasedBumperLoggingDirectives)==null?0:(c=b.loggingDirectives)==null?0:c.trackingParams){var d,e,g;vTa(this==null?void 0:(d=this.data)==null?void 0:(e=d.pdgPurchasedBumperLoggingDirectives)==null?void 0:(g=e.loggingDirectives)==null?void 0:g.trackingParams)}};
IPb.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
var oH=IPb;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],oH.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],oH.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],oH.prototype,"data",void 0);oH=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],oH);
_.S(oH,"yt-live-chat-item-bumper-view-model",function(){if(HPb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-bumper-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_item_bumper_view_model.yt.live.chat.item.bumper.view.model.css.js--\x3e<div id="bumper" class="style-scope yt-live-chat-item-bumper-view-model">\n  <div id="content" class="style-scope yt-live-chat-item-bumper-view-model"></div>\n</div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;GPb===void 0&&(GPb=document.createElement("template"));var d=GPb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);HPb=a}a=HPb;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var JPb;var KPb;_.Vt=function(a,b){this.data=a;this.actions=b;this.data=a;this.actions=b};
_.Nt=function(){};_.pH={};_.pH.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(a,b){wTa(this.hostElement,a,b)},
getNavigationEndpointPopupAction:function(a){return xTa(a,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(a,b){yTa(this.hostElement,a,b,this.openPopupConfig)}};var ITa=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.qH={};
_.qH.YtEndpointBehavior=[_.pH.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.Fi("openPopupConfig");(this.useClickHandler=_.Gi("useClickHandler",!1))?this.listen(this.hostElement,"click","onEndpointClick_"):(this.listen(this.hostElement,"tap","onEndpointTap_"),this.listen(this.hostElement,"touchend","onEndpointTouchEnd_"));this.listen(this.hostElement,"touchstart","onEndpointTapStart_");this.listen(this.hostElement,"mousedown",
"onEndpointTapStart_")},
onEndpointClick_:function(a){BTa(this.hostElement,a,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(a){var b=this.hostElement,c=this.openPopupConfig,d=this.disableCommandHandlerOverride;d=d===void 0?!1:d;var e=zTa(a);if(e){e.href&&Gq(e.href);var g=a.detail;var k=g.sourceEvent;g=g.preventer;k=k.button!==void 0?k.button===0&&!Bt(k):g?!Bt(g):!0;e.data&&k&&ATa(b,e,a,c,d)}},
onEndpointTouchEnd_:function(a){Bt(a)||zTa(a)&&a.preventDefault()},
onEndpointTapStart_:function(a){GTa(a)}}];var JTa="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),LTa=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var LPb={};LPb.YtPlaintextBehavior=[_.FD,{properties:{plaintextOnly:{type:Boolean,value:!1}},detached:function(){this.plaintextOnly&&(this.hostElement.removeEventListener("paste",this.onPaste_),this.removeOwnKeyBindings())},
attached:function(){this.plaintextOnly&&(this.hostElement.addEventListener("paste",this.onPaste_),this.addOwnKeyBinding("ctrl+b meta+b ctrl+i meta+i","preventRichTextFormatting_"))},
onPaste_:function(a){a.preventDefault();a=a.clipboardData.getData("text/plain");document.execCommand("insertText",!1,a)},
preventRichTextFormatting_:function(a){_.Bx&&(a=a.detail.keyboardEvent,a.stopImmediatePropagation(),a.preventDefault())}}];var MPb;var NPb;var OPb=function(){var a=_.P.apply(this,arguments)||this;a.ignoreShadyDom=!1;a.hasChange_=!1;a.hasSetTitle_=!1;a.useIOObserverForVisibilityLogging_=_.w("kevlar_use_vimio_behavior")&&_.Fi("INNERTUBE_CLIENT_NAME")==="WEB";a.ytFormattedStringObserverHandlerKeys_=void 0;return a};
_.z(OPb,_.P);_.f=OPb.prototype;_.f.created=function(){this.useIOObserverForVisibilityLogging_=_.w("kevlar_use_vimio_behavior")&&_.Fi("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.f.ready=function(){_.Fi("HTML_DIR")==="rtl"?this.useMixedDirectionFormattedStrings?this.hostElement.dir="rtl":this.respectHtmlDir||(this.hostElement.dir="auto"):this.respectLangDir&&(this.hostElement.dir="auto",this.hostElement.style.textAlign="left");this.enableContentEditableChanged_()};
_.f.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.f.detached=function(){this.unobserveIOObservers_()};
_.f.clearContents_=function(){for(var a=this.getRoot(),b=a.lastChild;b&&b.tagName!=="STYLE";){try{a.removeChild(b)}catch(c){break}b=a.lastChild}};
_.f.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var a=_.h(this.ytFormattedStringObserverHandlerKeys_),b=a.next();!b.done;b=a.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(b.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.f.resetForAttributedString=function(){var a=this.getRoot();!a.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),a.appendChild(this.ytAttributedStringElementRef))};
_.f.resetForFormattedString=function(){var a=this.getRoot(),b=a.querySelector("yt-attributed-string");b&&(this.ytAttributedStringElementRef=a.removeChild(b))};
_.f.textChanged=function(){this.textChanged_(this.text)};
_.f.textChanged_=function(a){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!a||!a.runs&&!a.simpleText;if(_.w("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var b=this.hostElement.firstChild;b&&b.nodeName==="FONT";){var c=b;b=b.nextSibling;this.hostElement.removeChild(c)}b=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
c=a.simpleText;var d;!c&&((d=a.runs)==null?void 0:d.length)===1&&this.isSimpleString_(a.runs[0])&&(c=a.runs[0].text);c!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.Fi("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(c!==void 0){try{b.textContent=c}catch(e){}b.textContent||(this.isEmpty=!0)}else a=a.runs,c!==void 0&&(a=[{text:c}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),a&&this.updateText_(a),
b.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.f.ellipsisTruncateChanged_=function(){!this.ellipsisTruncate||this.hostElement.title&&!this.hasSetTitle_?this.hasSetTitle_&&(this.hostElement.removeAttribute("title"),this.hasSetTitle_=!1):(this.hostElement.title=this.getRawText(),this.hasSetTitle_=!0)};
_.f.computeAriaLabel_=function(a){return a};
_.f.computeEllipsisTruncateStyling=function(a,b){return a&&!b};
_.f.computeUseAttributedString=function(a){return _.w("web_replace_formatted_with_attributed_string")&&XPa(a)&&!this.disableAttributedString&&!this.enableContentEditable};
_.f.setNodeStyle_=function(a,b){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.w("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?b.removeAttribute("dir"):b.setAttribute("dir","auto");b.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");b.style.color="";var c=null;this.noStyles||(a.bold&&(b.classList.add("bold"),c="bold"),a.deemphasize&&(b.classList.add("deemphasize"),c="deemphasize"),a.italics&&b.classList.add("italic"),
a.strikethrough&&b.classList.add("strikethrough"),a.errorUnderline&&(b.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),a.bracket&&b.classList.add("bracket"),a.textColor&&(b.style.color=_.Cq(a.textColor)));c!==b.getAttribute("style-target")&&(c?b.setAttribute("style-target",c):b.removeAttribute("style-target"))};
_.f.setUpVisibilityLogging_=function(a,b){var c=this;this.setNodeTrackingParams_(a,b);var d;((d=b.data)==null?0:d.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(a=this.ytRendererBehavior.visibilityObserver.observe(b,function(e){var g=c.ytRendererBehavior.getVisibilityLogger();g&&g.reportShown(e)},this.ytRendererBehavior.visibilityOptionVisible_),b=this.ytRendererBehavior.visibilityObserver.observe(b,function(e){var g=c.ytRendererBehavior.getVisibilityLogger();
g&&g.reportHidden(e)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(a),this.ytFormattedStringObserverHandlerKeys_.push(b))};
_.f.setNodeTrackingParams_=function(a,b){b.data||(b.data={});if((a=a.loggingDirectives?a.loggingDirectives.trackingParams:null)||b.data.trackingParams)b.data.trackingParams=a};
_.f.computeHasLinkOnly_=function(a){return!(!a||a.length!==1||this.noEndpoints||!a[0].navigationEndpoint)};
_.f.getRoot=function(){var a=this.buildScopeDomOptions();return this.enableContentEditable?_.E(_.E(this.hostElement,a).querySelector("[contenteditable]")):_.E(this.hostElement,a)};
_.f.fixContenteditableScope=function(){var a=function(b){b&&(b.nodeType===1&&b.classList&&(b.classList.add("style-scope"),b.classList.add("yt-formatted-string")),b.childNodes&&b.childNodes.forEach(function(c){a(c)}))};
a(this.getRoot())};
_.f.updateText_=function(a){for(var b=a.length,c=this.getRoot(),d=c.firstChild;d&&d.nodeName==="STYLE";)d=d.nextSibling;for(var e=0;e<b&&d;){var g=a[e],k=_.w("remove_cr_char")&&g.text?g.text.replace("\r",""):g.text;if(this.isSimpleString_(g)&&!this.useMixedDirectionFormattedStrings)if(d.nodeName==="#text"){d.textContent!=k&&(d.textContent=k);e++;d=d.nextSibling;continue}else break;if(_.y(g,As))break;else if(!this.noEndpoints&&g.navigationEndpoint){if(d.nodeName!=="A")break;this.setDataOnAnchor_(d,
g.navigationEndpoint)}else if(d.nodeName!=="SPAN")break;this.setNodeStyle_(g,d);this.setUpVisibilityLogging_(g,d);d.textContent!=k&&(d.textContent=k);e++;d=d.nextSibling}if(d)for(g=c.lastChild,d=e?d.previousSibling:null;g&&g!=d;){try{c.removeChild(g)}catch(m){break}g=c.lastChild}e!==b&&this.addTextNodes_(a,e)};
_.f.addTextNodes_=function(a,b){for(var c=document.createDocumentFragment(),d=a.length;b<d;b++){var e=a[b],g=_.w("remove_cr_char")&&e.text?e.text.replace("\r",""):e.text;if(this.isSimpleString_(e)&&!this.useMixedDirectionFormattedStrings)c.appendChild(document.createTextNode(g));else{var k=_.y(e,As);if(k){if(k.image){var m=document.createElement("img");k.isCustomEmoji||m.classList.add("small-emoji");m.classList.add("emoji");k.isCustomEmoji&&(m.dataset.emojiId=k.emojiId);m.src=_.Us(k.image.thumbnails,
this.emojiSize);(e=this.get("image.accessibility.accessibilityData.label",k))?m.alt=e:k.shortcuts&&k.shortcuts.length>0?m.alt=k.shortcuts[0]:k.emojiId&&(m.alt=k.emojiId);c.appendChild(m);this.hasEmoji=!0}}else!this.noEndpoints&&e.navigationEndpoint?(m=document.createElement("a"),m.classList.add("yt-simple-endpoint"),m.setAttribute("spellcheck","false"),this.setDataOnAnchor_(m,e.navigationEndpoint)):m=document.createElement("span"),this.setNodeStyle_(e,m),this.setUpVisibilityLogging_(e,m),m.appendChild(document.createTextNode(g)),
c.appendChild(m)}}this.getRoot().appendChild(c)};
_.f.isSimpleString_=function(a){return(this.noEndpoints||!a.navigationEndpoint)&&!_.y(a,As)&&(this.noStyles||!(a.bold||a.deemphasize||a.italics||a.strikethrough||a.errorUnderline||a.bracket||a.textColor))&&!a.loggingDirectives};
_.f.getRawText=function(){return _.Wp(this.text)};
_.f.getFirstRunText=function(){var a;if(((a=this.text)==null?0:a.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.f.setFirstRunText=function(a){var b;((b=this.text)==null?0:b.runs)&&this.text.runs[0]&&(this.text.runs[0].text=a,this.textChanged_(this.text))};
_.f.setDataOnAnchor_=function(a,b){var c=this;!_.w("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(b)||this.isSignalServiceEndpoint_(b)?(a.onclick=this.serviceEndpointHandler_(b),Nd(a,"#")):tua({text:this.text,command:b},function(){Fua(a,b,c.target)})};
_.f.isServiceEndpoint_=function(a){var b;return!((b=_.y(a==null?void 0:a.commandMetadata,_.co))==null||!b.sendPost)};
_.f.isSignalServiceEndpoint_=function(a){return!!_.y(a,_.to)};
_.f.serviceEndpointHandler_=function(a){var b=this;return function(c){_.oo(b.hostElement,[a]);c.preventDefault()}};
_.f.overrideAriaLabelChanged_=function(){var a=this.getRoot();this.enableContentEditable&&a&&a.setAttribute("aria-label",this.overrideAriaLabel)};
_.f.enableContentEditableChanged_=function(){var a=this,b=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),b=_.E(this.hostElement,b),!b.lastChild||b.lastChild instanceof HTMLElement&&b.lastChild.id!=="contenteditable-root"){var c=document.createElement("div");c.id="contenteditable-root";c.setAttribute("contenteditable","true");c.setAttribute("dir","auto");c.onfocus=function(){a.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
b.appendChild(c);this.overrideAriaLabel&&c.setAttribute("aria-label",this.overrideAriaLabel)}}else c=_.ar(this.hostElement).firstChild,c instanceof HTMLElement&&c.id==="contenteditable-root"&&_.E(this.hostElement,b).removeChild(c)};
_.f.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.f.getNodesForVisibilityLogging_=function(){return _.vx(this.getRoot().childNodes,function(a){var b;return!((b=a.data)==null||!b.trackingParams)})};
_.f.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.f.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var a=this.ytRendererBehavior.getVisibilityLogger();a&&this.getNodesForVisibilityLogging_().forEach(function(b){a.reportShown(b)})}};
_.f.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var a=this.ytRendererBehavior.getVisibilityLogger();a&&this.getNodesForVisibilityLogging_().forEach(function(b){a.reportHidden(b)})}};
_.Um.Object.defineProperties(OPb.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.w("enable_mixed_direction_formatted_strings")}}});
var rH=OPb;rH.prototype.enableContentEditableChanged_=rH.prototype.enableContentEditableChanged_;rH.prototype.overrideAriaLabelChanged_=rH.prototype.overrideAriaLabelChanged_;rH.prototype.ellipsisTruncateChanged_=rH.prototype.ellipsisTruncateChanged_;rH.prototype.textChanged=rH.prototype.textChanged;_.U([_.H(LPb.YtPlaintextBehavior),_.W("design:type",Object)],rH.prototype,"ytPlaintextBehavior",void 0);
_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],rH.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],rH.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],rH.prototype,"text",void 0);_.U([_.O(),_.W("design:type",Boolean)],rH.prototype,"noEndpoints",void 0);_.U([_.O(),_.W("design:type",Boolean)],rH.prototype,"noStyles",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],rH.prototype,"isDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],rH.prototype,"splitLines",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],rH.prototype,"forceDefaultStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],rH.prototype,"ellipsisTruncate",void 0);_.U([_.O(),_.W("design:type",Object)],rH.prototype,"ignoreShadyDom",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.W("design:type",Boolean)],rH.prototype,"ellipsisTruncateStyling",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.W("design:type",String)],rH.prototype,"ariaLabel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],rH.prototype,"isEmpty",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.W("design:type",Boolean)],rH.prototype,"hasLinkOnly_",void 0);_.U([_.O(),_.W("design:type",Boolean)],rH.prototype,"hasEmoji",void 0);_.U([_.O(),_.W("design:type",Boolean)],rH.prototype,"disableAttributedString",void 0);_.U([_.O(),_.W("design:type",Boolean)],rH.prototype,"isOverlay",void 0);_.U([_.O(),_.W("design:type",Boolean)],rH.prototype,"linkInheritColor",void 0);
_.U([_.O(),_.W("design:type",Boolean)],rH.prototype,"noPreWrap",void 0);_.U([_.O(),_.W("design:type",Boolean)],rH.prototype,"userInput",void 0);_.U([_.O({value:16}),_.W("design:type",Number)],rH.prototype,"emojiSize",void 0);_.U([_.O(),_.W("design:type",String)],rH.prototype,"target",void 0);_.U([_.O(),_.W("design:type",Boolean)],rH.prototype,"enableContentEditable",void 0);_.U([_.O(),_.W("design:type",String)],rH.prototype,"overrideAriaLabel",void 0);
_.U([_.O(),_.W("design:type",Boolean)],rH.prototype,"respectHtmlDir",void 0);_.U([_.O(),_.W("design:type",Boolean)],rH.prototype,"respectLangDir",void 0);_.U([_.K("plaintextOnly"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],rH.prototype,"useMixedDirectionFormattedStrings",null);_.U([_.O({computed:"computeUseAttributedString(text)"}),_.W("design:type",Boolean)],rH.prototype,"useYtAttributedString",void 0);
_.U([_.N("text"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rH.prototype,"textChanged",null);_.U([_.N("ellipsisTruncate"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rH.prototype,"ellipsisTruncateChanged_",null);_.U([_.N("overrideAriaLabel"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rH.prototype,"overrideAriaLabelChanged_",null);
_.U([_.N("enableContentEditable"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rH.prototype,"enableContentEditableChanged_",null);rH=_.U([_.wr({is:"yt-formatted-string",disableElementRegistration:!0})],rH);
_.S(rH,"yt-formatted-string",function(){if(NPb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_formatted_string.yt.formatted.string.css.js--\x3e<yt-attributed-string data="[[text]]" disable="[[!useYtAttributedString]]" disable-upgrade="[[!useYtAttributedString]]" ellipsis-truncate="[[ellipsisTruncate]]" hidden="[[!useYtAttributedString]]" is-overlay="[[isOverlay]]" link-inherit-color="[[linkInheritColor]]" no-pre-wrap="[[!splitLines]]" user-input="[[userInput]]" class="style-scope yt-formatted-string"></yt-attributed-string>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;MPb===void 0&&(MPb=document.createElement("template"));var d=MPb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);NPb=a}a=NPb;return a});var PPb;var QPb;var RPb;var SPb;var TPb=function(){var a=_.P.apply(this,arguments)||this;a.focused=!1;a.disabled=!1;a.isOverlay=!1;return a};
_.z(TPb,_.P);TPb.prototype.triggerDown=function(){if(!this.disabled){_.br(this.hostElement,"down",!0);var a;(a=this.JSC$11653_currentAnimation)==null||a.cancel()}};
TPb.prototype.triggerUp=function(){if(!this.disabled){_.br(this.hostElement,"down",!1);var a=this.JSC$11653_fillElement;var b=this.JSC$11653_strokeElement;typeof GroupEffect==="function"?(a=new GroupEffect([PSa(a),QSa(b)]),a=new Animation(a,document.timeline)):a=new hH(a,b);this.JSC$11653_currentAnimation=a;var c;(c=this.JSC$11653_currentAnimation)==null||c.play()}};
var sH=TPb;_.U([_.ir(".stroke"),_.W("design:type",HTMLElement)],sH.prototype,"JSC$11653_strokeElement",void 0);_.U([_.ir(".fill"),_.W("design:type",HTMLElement)],sH.prototype,"JSC$11653_fillElement",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],sH.prototype,"focused",void 0);_.U([_.O(),_.W("design:type",Object)],sH.prototype,"disabled",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],sH.prototype,"isOverlay",void 0);
sH=_.U([_.wr({is:"yt-interaction",disableElementRegistration:!0})],sH);
_.S(sH,"yt-interaction",function(){if(SPb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-interaction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_interaction.yt.interaction.css.js--\x3e<div class="stroke style-scope yt-interaction"></div><div class="fill style-scope yt-interaction"></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;RPb===void 0&&(RPb=document.createElement("template"));var d=RPb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);SPb=a}a=SPb;return a},{mode:2});var UPb=function(){return _.P.apply(this,arguments)||this};
_.z(UPb,_.P);_.f=UPb.prototype;_.f.ready=function(){var a=this,b=_.E(this.hostElement).querySelector("#button");b.addEventListener("focus",function(){dLb||(dLb=new cLb);a.keyboardFocused=dLb.isKeyBoardInUse()});
b.addEventListener("blur",function(){a.keyboardFocused=!1;a.rippleUp_()})};
_.f.computeTabIndex_=function(a){return a?-1:0};
_.f.computeButtonAriaPressed_=function(a){if(this.toggleable)return a?"true":"false"};
_.f.rippleDown_=function(){_.E(this.hostElement).querySelector("#interaction").triggerDown()};
_.f.rippleUp_=function(){_.E(this.hostElement).querySelector("#interaction").triggerUp()};
_.f.onPressedChanged_=function(){var a=_.ar(_.E(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.ar(_.E(this.hostElement).querySelector("#button")).children[0];a&&(a.active=this.pressed)};
var tH=UPb;tH.prototype.onPressedChanged_=tH.prototype.onPressedChanged_;tH.prototype.rippleUp_=tH.prototype.rippleUp_;tH.prototype.rippleDown_=tH.prototype.rippleDown_;_.U([_.O(),_.W("design:type",String)],tH.prototype,"label",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],tH.prototype,"disabled",void 0);_.U([_.O(),_.W("design:type",Boolean)],tH.prototype,"pressed",void 0);_.U([_.O(),_.W("design:type",Object)],tH.prototype,"toggleable",void 0);
_.U([_.O(),_.W("design:type",Boolean)],tH.prototype,"untabbable",void 0);_.U([_.O(),_.W("design:type",Boolean)],tH.prototype,"keyboardFocused",void 0);_.U([_.M("down"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tH.prototype,"rippleDown_",null);_.U([_.M("up"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tH.prototype,"rippleUp_",null);
_.U([_.N("pressed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tH.prototype,"onPressedChanged_",null);tH=_.U([_.wr({is:"yt-icon-button",disableElementRegistration:!0})],tH);
_.S(tH,"yt-icon-button",function(){if(QPb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_icon_button.yt.icon.button.css.js--\x3e<button id="button" aria-label$="[[label]]" aria-pressed$="[[computeButtonAriaPressed_(pressed)]]" disabled$="[[disabled]]" tabindex$="[[computeTabIndex_(untabbable)]]" class="style-scope yt-icon-button"><slot class="style-scope yt-icon-button"></slot></button><yt-interaction id="interaction" class="circular style-scope yt-icon-button" focused="[[keyboardFocused]]"></yt-interaction>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;PPb===void 0&&(PPb=document.createElement("template"));var d=PPb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);QPb=a}a=QPb;return a},{mode:2});var VPb=_.hx(["aria-"]),uH={};uH.YtRenderButtonBehavior=[_.Z.YtRendererBehavior,_.qH.YtEndpointBehavior,{properties:{alignByText:{type:Boolean,value:!1,reflectToAttribute:!0},iconAlignByText:{type:Boolean,value:!1,reflectToAttribute:!0},disableTextTransform:{type:Boolean,reflectToAttribute:!0},useKeyboardFocused:{type:Boolean,value:function(){return!!_.v().resolve(_.Xi(_.Bu))&&_.w("kevlar_keyboard_button_focus")},
reflectToAttribute:!0},keyboardFocused:{type:Boolean,value:!1,reflectToAttribute:!0},startJustified:{type:Boolean,value:!1,reflectToAttribute:!0},forceIconButton:{type:Boolean,value:!1},forceIconOnly:{type:Boolean,value:!1},styleActionButton:{type:Boolean,reflectToAttribute:!0},verticallyAligned:{type:Boolean,value:!1,reflectToAttribute:!0},noink:{type:Boolean,value:!1},showTooltips:{type:Boolean,value:!1},buttonRaised:{type:Boolean,value:!1},disabled:{type:Boolean,observer:"disabledChanged_",reflectToAttribute:!0},
sendServiceEndpointWhenDisabled:{type:Boolean,value:!1},sendCommandWhenDisabled:{type:Boolean,value:!1},ellipsisTruncate:Boolean,buttonTooltipPosition:{type:String,value:"bottom"},buttonSize:{type:String,reflectToAttribute:!0},endpoint:{type:Object,readOnly:!0},serviceEndpoint:{type:Object,readOnly:!0},command:{type:Object,readOnly:!0},buttonIcon:{type:String,readOnly:!0,observer:"buttonIconChanged_"},buttonText:{type:Object,readOnly:!0},buttonAccessibility:{type:Object,readOnly:!0},buttonTooltip:{type:String,
readOnly:!0},buttonClass:{type:String,readOnly:!0,observer:"buttonClassChanged_"},iconPositionType:{type:String,readOnly:!0,observer:"iconPositionTypeChanged_"},iconSize:{type:Number},stampType_:{type:String,computed:"computeStampType_(forceIconButton, buttonText, buttonIcon, endpoint)",observer:"stampTypeChanged_"},componentReady_:Boolean},listeners:{focusin:"onFocus_",focusout:"onBlur_",mouseenter:"addTooltips_",tap:"onYtButtonTap_"},observers:["isDisabledChanged_(data.isDisabled)","observeBasicPalette_(data.colorData.basicColorPaletteData)",
"dataChanged_(data, componentReady_)","isSelectedChanged_(data)"],created:function(){this.elements_={};this.hasChange_=!1},
attached:function(){this.hasChange_&&this.stampTypeChanged_(this.stampType_);this.keyboardFocused=!1},
get container(){return this.root},onYtButtonTapHandler:function(){},
ytButtonServiceEndpointHandler:function(){},
updateRenderedElements:function(){if(this.elements_.endpoint){this.elements_.endpoint.data=this.endpoint;var a=this.computeHref_(this.endpoint,!0);a?Nd(this.elements_.endpoint,a):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){a=this.buttonClass.split(" ");a=_.h(a);for(var b=a.next();!b.done;b=a.next())b=b.value,_.br(this.hostElement,b,!0),this.elements_.button&&_.br(this.elements_.button,b,!0),this.elements_.text&&_.br(this.elements_.text,b,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(a=null,this.buttonAccessibility&&(a=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=a:a?_.ae([_.cf(VPb)],this.elements_.button,"aria-label",a):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var a=_.v().resolve(_.Xi(_.Bu));a&&(this.keyboardFocused=a.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.aH("tp-yt-paper-tooltip"):document.createElement("tp-yt-paper-tooltip"),this.elements_.tooltip.position=this.buttonTooltipPosition,this.elements_.tooltip.offset=8,this.elements_.tooltip.fitToVisibleBounds=!0,_.wn(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.wn(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(a,b){if(b)for(a=b.split(" "),a=_.h(a),b=a.next();!b.done;b=a.next())b=b.value,_.br(this.hostElement,b,!1),this.elements_.button&&_.br(this.elements_.button,b,!1),this.elements_.text&&_.br(this.elements_.text,b,!1)},
buttonIconChanged_:function(a){this.elements_.icon?a?(this.elements_.icon.icon=a,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.wn(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.cr(this.hostElement,"is-paper-button-with-icon",!1)):a&&this.stampType_&&this.stampType_=="paper_button"&&this.addIconElementToPaperButton_()},
addIconElementToPaperButton_:function(){this.elements_.icon=this.getIcon_();this.setIconActive_(this.elements_.icon);this.elements_.button&&(this.iconPositionType&&this.iconPositionType!="BUTTON_ICON_POSITION_TYPE_LEFT_OF_TEXT"?this.iconPositionType=="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"&&_.wn(this.elements_.button).appendChild(this.elements_.icon):_.wn(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.cr(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(a){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,a){var b=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(a){case "yt_icon_button_with_label":b=!0;_.br(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();a=_.wn(this.elements_.button).firstElementChild;
this.elements_.icon=a;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.wn(this.elements_.endpoint).appendChild(this.elements_.button);_.wn(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.aH("tp-yt-paper-button"):document.createElement("tp-yt-paper-button");this.elements_.text=this.getFormattedString_();
this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;this.elements_.button.raised=this.buttonRaised;_.wn(this.elements_.button).appendChild(this.elements_.text);_.wn(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":b=!0,this.elements_.button=this.getYtIconButton_(),a=_.wn(this.elements_.button).firstElementChild,this.elements_.icon=a,this.setIconActive_(this.elements_.icon),
_.wn(this.elements_.endpoint).appendChild(this.elements_.button)}_.cr(this.hostElement,"is-icon-button",b);_.cr(this.hostElement,"is-paper-button",!b);_.cr(this.hostElement,"has-no-text",!this.elements_.text);this.elements_.button.id="button";this.elements_.button.noink=this.noink;this.elements_.button.disabled=this.disabled;var c;_.E((c=this.container.hostElement)!=null?c:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.wn(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(a){if(a!=void 0||this.disabled)this.disabled=a,this.elements_.button&&(this.elements_.button.disabled=a)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(a){_.w("kevlar_system_icons")&&a&&this.data&&(this.data.isSelected!==void 0?a.active=this.data.isSelected:this.data.isToggled!==void 0&&(a.active=this.data.isToggled))},
observeBasicPalette_:function(a){_.Dt(this.hostElement,a)},
disabledChanged_:function(a){this.data&&this.set("data.isDisabled",a)},
onYtButtonTap_:function(a){if(this.disabled)a.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.oo(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(a=this.disableCommandHandlerOverride,!this.data||!this.data.command||a||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.w("handle_service_request_actions")||_.oo(this.hostElement,[this.serviceEndpoint]),
_.io(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.w("handle_service_request_actions")?(a=[],this.serviceEndpoint&&a.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&a.push(this.data.command),a.length&&_.po(this.hostElement,a,this.hostElement)):this.data&&this.data.command&&(a=this.data.command,a.accountUnlinkCommand||a.accountLinkCommand||a.insertAdCommand||a.insertHighlightMarkerCommand||
a.createLivestreamHighlightClipCommand||a.getVideoUploadFeedbackCommand||a.musicDeletePrivatelyOwnedEntityCommand||a.ypcCancelRecurrenceEndpoint||a.getMultiSelectCommandEndpoint?_.oo(this.hostElement,[a]):_.po(this.hostElement,[a],this.hostElement))}},
computeStampType_:function(){return this.forceIconButton&&this.buttonText&&this.buttonIcon?"yt_icon_button_with_label":this.buttonText?"paper_button":this.buttonIcon?"yt-icon-button":null},
emptyContainer_:function(){for(var a,b=_.E((a=this.container.hostElement)!=null?a:this.container);b.lastChild&&b.lastChild.tagName!="STYLE";)try{b.removeChild(b.lastChild)}catch(c){break}},
getYtIconButton_:function(){var a=this.reuseEnabled_()?_.aH("yt-icon-button"):document.createElement("yt-icon-button"),b=_.wn(a).firstElementChild;if(b&&b.is!="yt-icon"){for(b=_.wn(a);b.lastChild;)b.removeChild(b.lastChild);b=null}b||(b=this.getIcon_(),this.setIconActive_(b),_.wn(a).appendChild(b));return a},
reuseEnabled_:function(){return _.w("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.aH("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.aH("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.WPb={};
_.WPb.YtButtonBehavior=[uH.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var a=this.data;a&&(this._setEndpoint(this.computeEndpoint_(a)),this._setServiceEndpoint(this.computeServiceEndpoint_(a)),this._setCommand(this.computeCommand_(a)),this._setButtonIcon(this.computeButtonIcon_(a)),this._setButtonText(this.computeButtonText_(a,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(a)),this._setButtonTooltip(this.computeTooltip_(a)),this._setButtonClass(this.computeButtonClass_(a)),this._setIconPositionType(this.computeIconPositionType_(a)),this.updateRenderedElements())},
setPressedState:function(a){var b;if((b=this.elements_)==null?0:b.button)this.elements_.button.pressed=!!a},
computeIconPositionType_:function(a){return a&&a.iconPosition||null},
computeEndpoint_:function(a){var b=a&&a.navigationEndpoint,c=this.get("data.command.commandMetadata.webCommandMetadata.url"),d=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return b?b:a&&a.command&&a.command.modalEndpoint?a.command:c&&!d&&a.command?a.command:null},
computeServiceEndpoint_:function(a){var b=a&&a.serviceEndpoint,c=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return b?b:c&&a.command?a.command:null},
computeCommand_:function(a){return a&&a.command||null},
computeButtonIcon_:function(a){return a&&a.icon&&a.icon.iconType?_.es(a.icon.iconType):null},
computeButtonText_:function(a,b){return!b&&a&&a.text||null},
computeAccessibility_:function(a){return this.get("accessibilityData.accessibilityData",a)||a&&a.accessibility||(a&&a.text?{label:this.getSimpleString(a.text)}:null)},
computeTooltip_:function(a){return a?a.isDisabled&&a.disabledTooltip||a.tooltip||null:null},
computeButtonClass_:function(a){var b=a&&a.style?a.style.toLowerCase().replace(/_/g,"-")+" ":"";b+=a&&a.size?a.size.toLowerCase().replace(/_/g,"-")+" ":"";a.colorData&&a.colorData.basicColorPaletteData&&a.colorData.basicColorPaletteData.borderColor&&(b+="palette-with-border");return b.trim()}}];var Et={};var XPb;var YPb;var ZPb,$Pb=function(){return ZPb!==void 0?ZPb:ZPb=document.createElement("template")};
document.head.appendChild($Pb().content);var aQb;var bQb,cQb=function(){return bQb!==void 0?bQb:bQb=document.createElement("template")};
document.head.appendChild(cQb().content);var dQb;var eQb,fQb=function(){return eQb!==void 0?eQb:eQb=document.createElement("template")};
document.head.appendChild(fQb().content);var gQb;var hQb=document.head,iQb=hQb.appendChild,jQb;if(gQb===void 0){var kQb=document.createElement("template");_.B(kQb,"\x3c!--css-build:shady--\x3e");kQb.content.insertBefore(fQb().content.cloneNode(!0),kQb.content.firstChild);gQb=kQb}jQb=gQb;iQb.call(hQb,jQb.content);var lQb=document.head,mQb=lQb.appendChild,nQb;if(dQb===void 0){var oQb=document.createElement("template");_.B(oQb,"\x3c!--css-build:shady--\x3e");oQb.content.insertBefore(cQb().content.cloneNode(!0),oQb.content.firstChild);dQb=oQb}nQb=dQb;mQb.call(lQb,nQb.content);var pQb=document.head,qQb=pQb.appendChild,rQb;if(aQb===void 0){var sQb=document.createElement("template");_.B(sQb,"\x3c!--css-build:shady--\x3e");sQb.content.insertBefore($Pb().content.cloneNode(!0),sQb.content.firstChild);aQb=sQb}rQb=aQb;qQb.call(pQb,rQb.content);_.Ft("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");var tQb=_.w("web_button_rework")&&_.Gi("BUTTON_REWORK")||_.w("web_button_rework_with_live"),vH=function(){return _.P.apply(this,arguments)||this};
_.z(vH,_.P);vH.prototype.created=function(){this.openPopupConfig=_.Fi("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
vH.prototype.onYtNavigate_=function(a){var b=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(a.detail.endpoint);b&&(this.ytOpenPopupBehavior.openPopup(b),a.stopPropagation(),a.preventDefault())};
_.Um.Object.defineProperties(vH,{template:{configurable:!0,enumerable:!0,get:function(){if(YPb===void 0){var a=document.createElement("template");_.B(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_button_renderer.yt.button.renderer.css.js--\x3e");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
var b=a.content,c=b.insertBefore;XPb===void 0&&(XPb=document.createElement("template"));var d=XPb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);YPb=a}a=YPb;return a}}});
_.wH=vH;_.wH.prototype.onYtNavigate_=_.wH.prototype.onYtNavigate_;_.U([_.H(_.pH.YtOpenPopupBehavior),_.W("design:type",Object)],_.wH.prototype,"ytOpenPopupBehavior",void 0);_.U([_.H(_.WPb.YtButtonBehavior),_.W("design:type",Object)],_.wH.prototype,"ytButtonBehavior",void 0);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],_.wH.prototype,"onYtNavigate_",null);
_.wH=_.U([_.wr({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:tQb})],_.wH);var uQb;var vQb=_.w("web_button_rework")&&_.Gi("BUTTON_REWORK")||_.w("web_button_rework_with_live"),xH=function(){var a=_.P.apply(this,arguments)||this;a.isPressed=!1;a.forceIconButton=!1;a.forceIconOnly=!1;a.forceModernIconButton=!1;a.skipCommandHandling=!1;a.alignByText=!1;a.fitToVisibleBounds=!0;a.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};a.onTap=function(b){_.io(a.hostElement,"yt-service-request-sent-button-renderer",b)};
return a};
_.z(xH,_.P);_.f=xH.prototype;_.f.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.f.onClick=function(a){var b,c=this.disabled||((b=this.data)==null?void 0:b.isDisabled);b=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");c&&b&&a.stopPropagation()};
_.f.computeIcon=function(){var a,b,c=(a=this.data)==null?void 0:(b=a.icon)==null?void 0:b.iconType;if(c)return _.es(c)};
_.f.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.f.handleUpdateButtonAction=function(a){a=_.y(a,hAb);var b=_.y(a==null?void 0:a.updatedButton,_.RE);if(this.data&&a&&b){var c=this.data;c.targetId&&a.targetId&&c.targetId===a.targetId&&(this.data=b)}};
_.Um.Object.defineProperties(xH.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var a=this;if(this.data){var b=RTa({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.io(a.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.io(a.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});b.alignByText=this.alignByText;return b}}}});
_.Um.Object.defineProperties(xH,{template:{configurable:!0,enumerable:!0,get:function(){if(uQb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computeIcon(data)]]"></yt-button-shape><tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>');uQb=a}a=uQb;return a}}});
var yH=xH;yH.prototype.onClick=yH.prototype.onClick;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],yH.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],yH.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],yH.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],yH.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],yH.prototype,"isPressed",void 0);_.U([_.O(),_.W("design:type",Object)],yH.prototype,"forceIconButton",void 0);_.U([_.O(),_.W("design:type",Object)],yH.prototype,"forceIconOnly",void 0);_.U([_.O(),_.W("design:type",Object)],yH.prototype,"forceModernIconButton",void 0);_.U([_.O(),_.W("design:type",Object)],yH.prototype,"skipCommandHandling",void 0);_.U([_.O(),_.W("design:type",Object)],yH.prototype,"alignByText",void 0);
_.U([_.O(),_.W("design:type",Object)],yH.prototype,"buttonTooltipPosition",void 0);_.U([_.O(),_.W("design:type",Object)],yH.prototype,"fitToVisibleBounds",void 0);_.U([_.O({computed:"computeTooltip(data)"}),_.W("design:type",Object)],yH.prototype,"tooltip",void 0);_.U([_.O(),_.W("design:type",Object)],yH.prototype,"overrides",void 0);_.U([_.O(),_.W("design:type",Boolean)],yH.prototype,"disabled",void 0);
_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],yH.prototype,"onClick",null);_.U([_.K("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.W("design:type",Object),_.W("design:paramtypes",[])],yH.prototype,"computedButtonShape",null);
yH=_.U([_.wr({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!vQb,cssBuildOptOut:!0}),_.wr({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!vQb,cssBuildOptOut:!0})],yH);var wQb;var xQb;var yQb=function(){var a=_.P.apply(this,arguments)||this;a.empty_=!0;a.loadTime=Infinity;a.pendingPaint=!1;a.hasChange_=!1;a.oldThumbnail_=null;a.oldDelayedSrc_="";a.objectURL_=null;return a};
_.z(yQb,_.P);_.f=yQb.prototype;_.f.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.f.ready=function(){var a=this.shouldShowPlaceholder_();_.br(this.hostElement,"no-transition",!0);a&&this.hostElement.classList.add("with-placeholder")};
_.f.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.f.isThumbPreloaded_=function(a){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",a)};
_.f.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||zQb};
_.f.computeThumbnailSrc_=function(a){return a&&a.thumbnails?_.Us(a.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.f.computeAlt_=function(){var a=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&a||""};
_.f.thumbnailChanged_=function(){var a=_.h([this.thumbnail,this.oldThumbnail_]),b=a.next().value;a=a.next().value;this.oldThumbnail_=b;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(a=this.computeThumbnailSrc_(a),this.computeThumbnailSrc_(b)===a))return;_.w("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(b)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):b&&_.Gi("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.Qm(this,this.onReload_):_.Qm(this,this.onShow_):this.resetImage_();b&&(this.hostElement.style.opacity=""+b.opacity)}};
_.f.delayedSrcChanged_=function(){var a=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===a||this.resetImage_()};
_.f.setSrc_=function(a){a?(_.E(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.E(this.hostElement).querySelector("#img").src=a):(_.E(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.f.resetImage_=function(){VRa(this.hostElement);this.empty_=!0;this.setSrc_(zQb);this.ytRendererBehavior.invalidate(!1)};
_.f.observePlaceholderColor_=function(){var a=this.thumbnail&&this.thumbnail.placeholderColor;a?this.hostElement.style.backgroundColor=_.Cq(a):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.f.onLoad_=function(){_.E(this.hostElement).querySelector("#img").src&&_.E(this.hostElement).querySelector("#img").src!==zQb&&(URa(this.hostElement),this.notifyOnLoaded&&_.io(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.f.onError_=function(){var a=this;if(_.w("web_use_cache_for_image_fallback"))bSa(_.E(this.hostElement).querySelector("#img").src).then(function(b){a.objectURL_=Jd(b).toString();a.setSrc_(a.objectURL_)}).catch(function(){_.w("kevlar_woffle_fallback_image")&&a.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.f.onPrescanVisible=function(){this.onShow_()};
_.f.onVisible=function(){if(_.w("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.f.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var a=this.computeSrc_();a!==_.E(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(a))}};
_.f.onReload_=function(){this.empty_=!1;var a=this.computeSrc_();a!==_.E(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(a))};
_.f.shouldShowPlaceholder_=function(){return _.w("kevlar_thumbnail_bg")};
var zH=yQb;zH.prototype.observePlaceholderColor_=zH.prototype.observePlaceholderColor_;zH.prototype.delayedSrcChanged_=zH.prototype.delayedSrcChanged_;zH.prototype.thumbnailChanged_=zH.prototype.thumbnailChanged_;_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],zH.prototype,"alt",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],zH.prototype,"ariaHidden",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],zH.prototype,"ariaLabel",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],zH.prototype,"hidden",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],zH.prototype,"id",void 0);_.U([_.H(_.RG.YtVisibilityBehavior),_.W("design:type",Object)],zH.prototype,"ytVisibilityBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],zH.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",String)],zH.prototype,"delayedSrc",void 0);
_.U([_.O(),_.W("design:type",Object)],zH.prototype,"thumbnail",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],zH.prototype,"loaded",void 0);_.U([_.O(),_.W("design:type",Boolean)],zH.prototype,"notifyOnLoaded",void 0);_.U([_.O(),_.W("design:type",Number)],zH.prototype,"height",void 0);_.U([_.O(),_.W("design:type",Number)],zH.prototype,"width",void 0);_.U([_.O({value:function(){return"width"}}),
_.W("design:type",String)],zH.prototype,"dimension",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],zH.prototype,"fit",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],zH.prototype,"fitHeight",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],zH.prototype,"fitWidth",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],zH.prototype,"objectFit",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],zH.prototype,"objectPosition",void 0);_.U([_.O(),_.W("design:type",String)],zH.prototype,"preferredThumbnail",void 0);_.U([_.O({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.W("design:type",String)],zH.prototype,"alt_",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],zH.prototype,"sharedTooltipText",void 0);
_.U([_.O(),_.W("design:type",Boolean)],zH.prototype,"ftlEligible",void 0);_.U([_.O({value:void 0}),_.W("design:type",String)],zH.prototype,"observeHiddenOption",void 0);_.U([_.O({value:"observe_once"}),_.W("design:type",String)],zH.prototype,"observePrescanOption",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],zH.prototype,"roundedContainer",void 0);
_.U([_.mr("thumbnail"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zH.prototype,"thumbnailChanged_",null);_.U([_.mr("delayedSrc"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zH.prototype,"delayedSrcChanged_",null);_.U([_.N("thumbnail.placeholderColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zH.prototype,"observePlaceholderColor_",null);
zH=_.U([_.wr({is:"yt-img-shadow",disableElementRegistration:!0})],zH);var zQb=_.Gi("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.$r()(zH,"yt-img-shadow",function(){if(xQb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-shadow--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_shadow.yt.img.shadow.css.js--\x3e<img id="img" rounded-container="[[roundedContainer]]" alt$="[[alt_]]" height="[[height]]" width="[[width]]" on-load="onLoad_" on-error="onError_" draggable="false" class="style-scope yt-img-shadow">');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;wQb===void 0&&(wQb=document.createElement("template"));var d=wQb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);xQb=a}a=xQb;return a},{callbackProps:["onTap"],
allowedProps:"alt ariaHidden ariaLabel delayedSrc dimension fit fitHeight fitWidth height hidden id loaded notifyOnLoaded objectFit objectPosition preferredThumbnail roundedContainer sharedTooltipText thumbnail width".split(" "),mode:2});var L6a;_.AH=new _.jB("SCREEN_MANAGER_TOKEN");L6a=new _.jB("LOG_INITIAL_SCREEN_TOKEN");_.Ku=_.Rr(function(a){function b(ma){return _.y(ma,_.Iu)}
function c(){var ma=d().isTogglingDisabled||x()?F():!F();J(ma);R(!1);if(!d().isTogglingDisabled){var Ba;(Ba=k)==null||Ba(!!ma)}var Ca;((Ca=g)==null?0:Ca())||_.tF(_.v().resolve(_.AH),d().trackingParams);var ya;if(!ma||!b(d().defaultButtonViewModel)||(ya=g)!=null&&ya()){var Ia;!b(d().toggledButtonViewModel)||((Ia=g)==null?0:Ia())||_.tF(_.v().resolve(_.AH),b(d().toggledButtonViewModel).trackingParams)}else _.tF(_.v().resolve(_.AH),b(d().defaultButtonViewModel).trackingParams)}
var d=a.data,e=a.buttonShapeOverrides,g=a.disableExplicitClickLogging,k=a.onToggle,m=a.style,n=a.useOutlinedIcon,r=a.className,t=function(){var ma,Ba;return F()?(ma=a.animatedTextPropsToggled)==null?void 0:ma.call(a):(Ba=a.animatedTextPropsDefault)==null?void 0:Ba.call(a)},u=_.ph(function(){return t()?Object.assign({},t(),{shouldAnimate:I()}):void 0},void 0,"ZKEa0b"),x=function(){var ma;
return((ma=fa())==null?void 0:ma.isToggled)!==void 0},A=_.h(_.nt(function(){var ma,Ba,Ca;
return x()?(ma=fa())==null?void 0:ma.isToggled:(Ca=e==null?void 0:(Ba=e())==null?void 0:Ba.toggled)!=null?Ca:d().isToggled})),C=A.next().value;
A=A.next().value;var F=C,J=A;A=_.h(_.nt(function(){var ma,Ba;return(ma=a.animatedTextPropsToggled)==null?void 0:(Ba=ma.call(a))==null?void 0:Ba.shouldAnimate}));
C=A.next().value;A=A.next().value;var I=C,R=A;C=_.h(_.ih(!1,void 0,"S11hid"));var da=C.next().value,V=C.next().value,fa=_.Ht(function(ma){var Ba;a:{var Ca=d().entityKey,ya=d().toggledStateEntitySelectorType;if(ya&&Ca)switch(ya){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var Ia;ma=(Ia=_.np(ma.entities,"sfvAudioItemCurrentlyPlayingEntity",Ca))!=null?Ia:void 0;Ia=(Ba=ma==null?void 0:ma.sfvAudioItemPlaybackState)!=null?Ba:void 0;if(Ia==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){Ba={isToggled:!0};
break a}if(Ia){Ba={isToggled:!1};break a}break;default:_.Dl(new _.qj("Error: entitySelectorType defined but not matched in selector.",ma,ya))}Ba=void 0}return Ba});
C=_.lt(function(){var ma=_.v().resolve(_.Xi(_.Bu));ma&&V(ma.isKeyBoardInUse());return!1});
A=_.lt(function(){V(!1);return!1});
var aa=function(){return Object.assign({},e==null?void 0:e(),{onToggle:c,toggleable:!0,toggled:F(),focused:da()})};
return _.q("toggle-button-view-model",{"on:focusin":C,"on:focusout":A,class:r},_.q(_.qi,{cond:function(){return F()?b(d().toggledButtonViewModel):b(d().defaultButtonViewModel)},
then:function(ma){return _.q(_.Qu,{data:ma,className:r,style:m,useOutlinedIcon:n,buttonOverrides:aa,animatedTextProps:u})}}))},"v");
_.Ku.idomCompat={callbacks:{onToggle:!0}};_.Ts(_.Rr(function(a){return _.q("yt-toggle-button-view-model",{class:function(){var b;return(b=a.scopingClassName)==null?void 0:b.call(a)}},_.q(_.Ku,{data:function(){var b;
return(b=a.data)==null?void 0:b.call(a)},
buttonShapeOverrides:function(){var b;return(b=a.overrides)==null?void 0:b.call(a)},
animatedTextPropsDefault:function(){var b;return(b=a.animatedTextPropsDefault)==null?void 0:b.call(a)},
animatedTextPropsToggled:function(){var b;return(b=a.animatedTextPropsToggled)==null?void 0:b.call(a)},
disableExplicitClickLogging:function(){var b;return(b=a.disableExplicitClickLogging)==null?void 0:b.call(a)},
onToggle:function(b){var c;return(c=a.onToggle)==null?void 0:c.call(a,b)},
style:function(){var b;return(b=a.style)==null?void 0:b.call(a)},
useOutlinedIcon:function(){var b;return(b=a.useOutlinedIcon)==null?void 0:b.call(a)},
className:function(){var b;return(b=a.className)==null?void 0:b.call(a)}}))},"w"),"yt-toggle-button-view-model",{props:{data:_.VG,
buttonShapeOverrides:_.VG,overrides:_.VG,animatedTextPropsDefault:_.VG,animatedTextPropsToggled:_.VG,disableExplicitClickLogging:_.VG,onToggle:_.Ss,style:_.VG,useOutlinedIcon:_.VG,className:_.VG,scopingClassName:_.VG}});var AQb=function(){return _.P.apply(this,arguments)||this};
_.z(AQb,_.P);AQb.prototype.onTap=function(a){a.stopPropagation();a=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.Lu("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:a})):this.ytLiveChatReduxBehavior.dispatch(_.wu("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:a}))};
_.Um.Object.defineProperties(AQb.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.engagementState)==null?void 0:a.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a=_.y(this.data.toggleButton,_.Ju),b;if(Number(((b=this.likeCountState)==null?void 0:b.likeCountIfIndifferentNumber)||"0")===0){var c;b=((c=this.data.likeCountPlaceholder)==null?void 0:c.content)||""}else{var d,e,g;b=((d=this.likeCountState)==null?void 0:(e=d.likeCountIfIndifferent)==null?void 0:e.content)||((g=this.data.likeCountPlaceholder)==null?void 0:g.content)||""}var k,m;c=((k=this.likeCountState)==null?void 0:(m=
k.likeCountIfLiked)==null?void 0:m.content)||"1";k=_.y(a.toggledButtonViewModel,_.Iu);return Object.assign({},a,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.y(a.defaultButtonViewModel,_.Iu),{title:b})},toggledButtonViewModel:{buttonViewModel:Object.assign({},k,{title:c})}})}}}});
var BH=AQb;BH.prototype.onTap=BH.prototype.onTap;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],BH.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],BH.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.MG),_.W("design:type",Object)],BH.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],BH.prototype,"data",void 0);
_.U([_.O({selectorArgs:["data.likeCountEntityKey"],selector:STa}),_.W("design:type",Object)],BH.prototype,"likeCountState",void 0);_.U([_.O({selectorArgs:["data.engagementStateKey"],selector:tTa}),_.W("design:type",Object)],BH.prototype,"engagementState",void 0);_.U([_.K("data","engagementState"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],BH.prototype,"isLiked",null);
_.U([_.K("data","likeCountState","isLiked"),_.W("design:type",Object),_.W("design:paramtypes",[])],BH.prototype,"toggleButton",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],BH.prototype,"onTap",null);BH=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],BH);
_.S(BH,"yt-live-chat-like-button-view-model",function(){if(KPb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-like-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_like_button_view_model.yt.live.chat.like.button.view.model.css.js--\x3e<yt-toggle-button-view-model data="[[toggleButton]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-like-button-view-model">\n</yt-toggle-button-view-model>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;JPb===void 0&&(JPb=document.createElement("template"));var d=JPb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);KPb=a}a=KPb;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var BQb;var CQb;var DQb=function(){return _.P.apply(this,arguments)||this};
_.z(DQb,_.P);var CH=DQb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],CH.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],CH.prototype,"data",void 0);CH=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],CH);
_.S(CH,"yt-live-chat-paid-message-footer-renderer",function(){if(CQb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_footer_renderer.yt.live.chat.paid.message.footer.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-paid-message-footer-renderer">\n  <div id="icon" hidden$="[[!data.icon]]" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-icon>\n  </div>\n  <div id="text" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-formatted-string>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;BQb===void 0&&(BQb=document.createElement("template"));var d=BQb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);CQb=a}a=CQb;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var EQb;var FQb;var GQb;var HQb,IQb=function(){if(HQb!==void 0)return HQb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-reply-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_reply_button_view_model.yt.live.chat.reply.button.view.model.css.js--\x3e<yt-button-view-model data="[[buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-reply-button-view-model">\n</yt-button-view-model>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;GQb===void 0&&(GQb=document.createElement("template"));var d=GQb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return HQb=a};var DH=function(){return _.P.apply(this,arguments)||this};
_.z(DH,_.P);DH.prototype.onTap=function(a){a.stopPropagation()};
_.Um.Object.defineProperties(DH.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a=_.y(this.data.replyButton,_.Iu),b,c,d,e,g,k,m,n=Number(((b=this.replyCountState)==null?void 0:b.replyCountNumber)||"0")===0?(c=this.data)==null?void 0:(d=c.replyCountPlaceholder)==null?void 0:d.content:((e=this.replyCountState)==null?void 0:(g=e.replyCount)==null?void 0:g.content)||((k=this.data)==null?void 0:(m=k.replyCountPlaceholder)==null?void 0:m.content)||"",r;return Object.assign({},
a,{title:n,accessibilityText:(r=this.replyCountState)==null?void 0:r.replyButtonAccessibilityText})}}}});
_.Um.Object.defineProperties(DH,{template:{configurable:!0,enumerable:!0,get:function(){return IQb()}}});
var EH=DH;EH.prototype.onTap=EH.prototype.onTap;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],EH.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],EH.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.MG),_.W("design:type",Object)],EH.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],EH.prototype,"data",void 0);
_.U([_.O({selectorArgs:["data.replyCountEntityKey"],selector:function(a,b){return _.np(a.entities,"replyCountEntity",b)}}),
_.W("design:type",Object)],EH.prototype,"replyCountState",void 0);_.U([_.K("data","replyCountState"),_.W("design:type",Object),_.W("design:paramtypes",[])],EH.prototype,"buttonViewModel",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],EH.prototype,"onTap",null);EH=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],EH);
_.S(EH,"yt-live-chat-reply-button-view-model",function(){return IQb()},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var JQb;var KQb;var FH=function(){var a=_.P.apply(this,arguments)||this;a.ariaLabel="";return a};
_.z(FH,_.P);
FH.prototype.dataChanged=function(){for(var a=(0,_.er)(_.E(this.hostElement).querySelector("#image"));a.firstChild;)a.removeChild(a.firstChild);if(this.data)if(this.data.icon){var b=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(b.polymerController.icon="yt-sys-icons:shield-filled",b.polymerController.defaultToFilled=!0):b.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();a.appendChild(b)}else if(this.data.customThumbnail){b=document.createElement("img");
var c=_.NRa(this.data.customThumbnail.thumbnails,16);c?(b.src=c,a.appendChild(b),b.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Dl(new _.qj("Could not compute URL for thumbnail",this.data.customThumbnail))}};
FH.prototype.identity=function(a){return a};
FH.prototype.computeType=function(a){return bs(a||void 0)};
var GH=FH;GH.prototype.dataChanged=GH.prototype.dataChanged;_.U([_.O(),_.W("design:type",Object)],GH.prototype,"data",void 0);_.U([_.O({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.W("design:type",Object)],GH.prototype,"ariaLabel",void 0);_.U([_.O({computed:"computeType(data)",reflectToAttribute:!0}),_.W("design:type",String)],GH.prototype,"type",void 0);
_.U([_.O({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.W("design:type",String)],GH.prototype,"sharedTooltipText",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.w("live_chat_enable_new_moderator_badge")}}),
_.W("design:type",Boolean)],GH.prototype,"enableNewModeratorBadge",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GH.prototype,"dataChanged",null);GH=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],GH);
_.S(GH,"yt-live-chat-author-badge-renderer",function(){if(KQb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_badge_renderer.yt.live.chat.author.badge.renderer.css.js--\x3e<div id="image" class="style-scope yt-live-chat-author-badge-renderer"></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;JQb===void 0&&(JQb=document.createElement("template"));var d=JQb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);KQb=a}a=KQb;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var LQb;var MQb;var NQb=function(){return _.P.apply(this,arguments)||this};
_.z(NQb,_.P);_.f=NQb.prototype;_.f.configureRendererStamper=function(){return{badgesBeforeChip:{id:"prepend-chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesOutsideChip:{id:"chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesInsideChip:{id:"chip-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}}}};
_.f.computeBadgesInsideChip=function(a){return a?a.filter(function(b){return bs(b.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.f.computeBadgesOutsideChip=function(a){return this.prependChatBadges||!a?[]:a.filter(function(b){b=bs(b.liveChatAuthorBadgeRenderer);return b!=="verified"&&b!=="owner"})};
_.f.computeBadgesBeforeChip=function(a){return this.prependChatBadges&&a?a.filter(function(b){b=bs(b.liveChatAuthorBadgeRenderer);return b!=="verified"&&b!=="owner"}):[]};
_.f.computeIsHighlighted=function(a,b){var c=!!YOa(a,"owner"),d=!!YOa(a,"verified");a=!!YOa(a,"moderator");return(c||d&&!a)&&!b};
_.f.computeAuthorType=function(a){return XOa(a)};
_.f.computeAuthorClass=function(a,b){return b?(a?a+" ":"")+"single-line":a};
_.f.onSeedColorChanged=function(){_.w("live_chat_author_name_color_usernames")||_.w("live_chat_seed_color_usernames")||_.w("live_chat_colored_usernames")?!this.authorNameColor||this.authorType||this.isHighlighted||this.hostElement.classList.contains("yt-live-chat-paid-message-renderer")||this.hostElement.classList.contains("yt-live-chat-paid-sticker-renderer")||(this.username.style.color=this.authorNameColor):_.w("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
var HH=NQb;HH.prototype.onSeedColorChanged=HH.prototype.onSeedColorChanged;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],HH.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],HH.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],HH.prototype,"authorName",void 0);_.U([_.O(),_.W("design:type",Array)],HH.prototype,"authorBadges",void 0);
_.U([_.O({computed:"computeAuthorType(authorBadges)"}),_.W("design:type",String)],HH.prototype,"authorType",void 0);_.U([_.O({computed:"computeAuthorClass(authorType, singleLine)"}),_.W("design:type",String)],HH.prototype,"authorClass",void 0);_.U([_.O({computed:"computeBadgesInsideChip(authorBadges)"}),_.W("design:type",Array)],HH.prototype,"badgesInsideChip",void 0);_.U([_.O({computed:"computeBadgesOutsideChip(authorBadges)"}),_.W("design:type",Array)],HH.prototype,"badgesOutsideChip",void 0);
_.U([_.O({computed:"computeBadgesBeforeChip(authorBadges)"}),_.W("design:type",Array)],HH.prototype,"badgesBeforeChip",void 0);_.U([_.O({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.W("design:type",Boolean)],HH.prototype,"isHighlighted",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],HH.prototype,"singleLine",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],HH.prototype,"disableHighlighting",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],HH.prototype,"dashboardMoneyFeed",void 0);_.U([_.O({value:_.w("live_chat_prepend_badges"),reflectToAttribute:!0}),_.W("design:type",Boolean)],HH.prototype,"prependChatBadges",void 0);_.U([_.O(),_.W("design:type",String)],HH.prototype,"authorNameColor",void 0);_.U([_.ir("#author-name"),_.W("design:type",HTMLDivElement)],HH.prototype,"username",void 0);
_.U([_.N("authorNameColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],HH.prototype,"onSeedColorChanged",null);HH=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],HH);
_.S(HH,"yt-live-chat-author-chip",function(){if(MQb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-chip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_chip.yt.live.chat.author.chip.css.js--\x3e<span id="prepend-chat-badges" class="style-scope yt-live-chat-author-chip"></span><span id="author-name" dir="auto" class$="[[authorClass]] style-scope yt-live-chat-author-chip">[[getSimpleString(authorName)]]<span id="chip-badges" class="style-scope yt-live-chat-author-chip"></span></span><span id="chat-badges" class="style-scope yt-live-chat-author-chip"></span>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;LQb===void 0&&(LQb=document.createElement("template"));var d=LQb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);MQb=a}a=MQb;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var OQb;var PQb;var QQb=function(){var a=_.P.apply(this,arguments)||this;a.debounceCommand=_.Iy(function(b){a.ytComponentBehavior.resolveCommand(b)},1500);
return a};
_.z(QQb,_.P);QQb.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var a=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",b,c,d=this.isHearted?(b=this.data)==null?void 0:b.unheartCommand:(c=this.data)==null?void 0:c.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.Lu("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:a}));(a=_.Ds(d))&&this.debounceCommand(a)}};
_.Um.Object.defineProperties(QQb.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var a,b;if(!((a=this.data)==null?0:(b=a.creatorThumbnail)==null?0:b.sources))return{};a={thumbnails:[]};b={};b.url=this.data.creatorThumbnail.sources[0].url;a.thumbnails.push(b);return a}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.engagementState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((b=this.engagementState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.engagementState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((b=this.engagementState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.engagementState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.engagementState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((b=this.engagementState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((c=this.engagementState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_HEARTED"}},
label:{configurable:!0,enumerable:!0,get:function(){return this.data?(this.isHearted?this.data.heartedAccessibilityLabel:this.data.unheartedAccessibilityLabel)||"":""}},
heartHoverText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.isHearted?this.data.heartedHoverText:this.data.unheartedHoverText}}});
var IH=QQb;IH.prototype.onTap=IH.prototype.onTap;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],IH.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],IH.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.MG),_.W("design:type",Object)],IH.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],IH.prototype,"data",void 0);
_.U([_.O({selectorArgs:["data.engagementStateKey"],selector:tTa}),_.W("design:type",Object)],IH.prototype,"engagementState",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],IH.prototype,"thumbnailDetails",null);_.U([_.K("data","engagementState"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],IH.prototype,"isHearted",null);_.U([_.K("data","engagementState"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],IH.prototype,"isEditable",null);
_.U([_.K("data","engagementState"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],IH.prototype,"showCreatorView",null);_.U([_.K("data","engagementState"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],IH.prototype,"showButton",null);_.U([_.K("data","isHearted"),_.W("design:type",String),_.W("design:paramtypes",[])],IH.prototype,"label",null);_.U([_.K("data","isHearted"),_.W("design:type",Object),_.W("design:paramtypes",[])],IH.prototype,"heartHoverText",null);
_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IH.prototype,"onTap",null);IH=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],IH);
_.S(IH,"yt-live-chat-creator-heart-view-model",function(){if(PQb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-creator-heart-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_creator_heart_view_model.yt.live.chat.creator.heart.view.model.css.js--\x3e<yt-icon-button id="creator-heart-button" hidden="[[!showButton]]" label="[[label]]" title="[[heartHoverText]]" class="style-scope yt-live-chat-creator-heart-view-model">\n  <template is="dom-if" if="[[showCreatorView]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-image id="unhearted" data="[[data.unheartedIcon]]" height="24" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n  <template is="dom-if" if="[[isHearted]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-img-shadow id="creator-thumbnail" thumbnail="[[thumbnailDetails]]" class="style-scope yt-live-chat-creator-heart-view-model"></yt-img-shadow>\n    <yt-image id="hearted-border" data="[[data.heartedIcon]]" height="16" preserve-height="true" width="16" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n    <yt-image id="hearted" data="[[data.heartedIcon]]" height="14" preserve-height="true" width="14" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n</yt-icon-button>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;OQb===void 0&&(OQb=document.createElement("template"));var d=OQb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);PQb=a}a=PQb;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var JH=function(a,b){this.serviceId=new vjb(a,b)};
JH.prototype.toString=function(){return this.serviceId.toString()};var RQb=function(){this.internalMap={}};
_.f=RQb.prototype;_.f.contains=function(a){return Object.prototype.hasOwnProperty.call(this.internalMap,a)};
_.f.get=function(a){if(this.contains(a))return this.internalMap[a]};
_.f.set=function(a,b){this.internalMap[a]=b};
_.f.getKeys=function(){return Object.keys(this.internalMap)};
_.f.remove=function(a){delete this.internalMap[a]};var KH=function(){this.mappings=new RQb;this.errorCallbacks=new Set};
KH.prototype.getModuleId=function(a){return a.serviceId.getModuleId()};
KH.prototype.get=function(a){var b=this.mappings.get(a.toString());return SQb(this,b,a)};
KH.prototype.getMultipleAsync=function(){var a=_.Kd.apply(0,arguments),b=this,c=a.map(function(n){return b.getModuleId(n)}),d=a.map(function(n){return b.mappings.get(n.toString())}).filter(function(n){return n});
if(d.length===a.length)return _.qo(d.map(function(n,r){return SQb(b,n,a[r])}));
var e=Bg().loadMultiple(c);d=_.Kz(c.map(function(n){return e[n]}));
var g=document.hidden,k=-1,m=_.$i("get_async_timeout_ms",-1);m>-1&&(k=setTimeout(function(){_.Dl(new _.qj("Module timeout.",c,g,document.hidden))},m));
return _.Lz(d.then(function(){return a.map(function(n){return SQb(b,b.mappings.get(n.toString()),n)})}).thenCatch(function(n){for(var r=_.h(b.errorCallbacks),t=r.next();!t.done;t=r.next())t=t.value,t(n);
throw n;}),function(){clearTimeout(k)})};
KH.prototype.registerService=function(a,b){this.mappings.set(a.toString(),{type:"mapping",value:b});return a};
var SQb=function(a,b,c){switch(b.type){case "mapping":return b.value;case "factory":return b=b.value(),a.mappings.set(c.toString(),{type:"mapping",value:b}),b;default:return _.Wb(b)}};
KH.prototype.onLoadError=function(a){var b=this;this.errorCallbacks.add(a);return function(){b.errorCallbacks.delete(a)}};
_.LH=new KH;var TQb=function(){};
_.f=TQb.prototype;
_.f.JSC$11742_getRequest=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?vmb:c;var d=b;if(this.isNavigationCommand()){var e,g=(e=_.y(a==null?void 0:a.commandMetadata,_.co))==null?void 0:e.url;d=_.xJa(a.clickTrackingParams,!0,!1,g,this.JSC$11742_getClientScreen(d))}else d=_.xJa(a.clickTrackingParams,!1,this.includeCsn);d={context:d};if(e=this.getExtension(a))return this.JSC$11742_buildRequest(d,e,b),e=this.getApiUrl(a),g=Object.assign({},{command:a},this.getRequestConfig(a,b)),d={input:e,requestShell:Sn(e),
innerTubeRequest:d,config:g},d.config.authStrategy?d.config.authStrategy.identity=c:d.config.authStrategy={identity:c},(a=this.JSC$11742_getRequestKey(a,b))&&!d.config.requestKey&&(d.config.requestKey=a),d;a=new _.qj("Error: Failed to create Request from Command.",a);_.Bl(a)};
_.f.getApiUrl=function(a){var b=_.Zp(this.getApiPaths(a)),c;(a=(c=_.y(a.commandMetadata,_.co))==null?void 0:c.apiUrl)&&(b=a);return KBa(JBa(b))};
_.f.isNavigationCommand=function(){return!1};
_.f.JSC$11742_getClientScreen=function(){};
_.f.JSC$11742_getRequestKey=function(){};
_.f.getRequestConfig=function(){};
_.Um.Object.defineProperties(TQb.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var MH=function(){};
_.z(MH,TQb);MH.prototype.JSC$11749_getStoreKey=function(){};
MH.prototype.JSC$11742_getRequestKey=function(a,b){b=b===void 0?{}:b;return this.JSC$11749_getStoreKey(a,b)};var NH=function(){};
_.z(NH,MH);NH.prototype.JSC$11742_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:Sn("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
NH.prototype.getApiPaths=function(){return[]};
NH.prototype.getExtension=function(){};
NH.prototype.JSC$11742_buildRequest=function(){};var UQb={},VQb=(UQb.GET_DATASYNC_IDS=Kt(NH),UQb);var WQb,XQb,YQb,rLb,OH,aRb,xLb,$Qb,ZQb;WQb="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");XQb=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.Pt=function(a,b,c,d,e,g,k,m,n){this.endpointMap=a;this.networkManager=b;this.authService=c;this.responseProcessorMap=d;this.innertubeResponseStore=e;this.contextProcessors=g;this.asyncContextProcessors=k;this.localInnertubeRouter=m;this.requestSequencer=n;this.inflightRequests=new Map;a.signalEndpointMap||(a.signalEndpointMap={});a.signalEndpointMap=Object.assign({},VQb,a.signalEndpointMap)};
YQb=function(a,b,c,d,e,g,k,m,n){if(_.Pt.instance!==void 0){if(d=_.Pt.instance,a=[a!==d.endpointMap,b!==d.networkManager,c!==d.authService,e!==d.innertubeResponseStore,g!==d.contextProcessors,k!==d.asyncContextProcessors,m!==d.localInnertubeRouter],a.some(function(r){return r}))throw new _.qj("InnerTubeTransportService is already initialized",a);
}else _.Pt.instance=new _.Pt(a,b,c,d,e,g,k,m,n)};
_.Rt=function(a,b,c){var d=d===void 0?vmb:d;var e=xLb(a,b);return e?new _.il(function(g,k){var m,n,r,t,u;return _.l(function(x){switch(x.nextAddress){case 1:return _.p(x,e,2);case 2:m=x.yieldResult;n=m.JSC$11742_getRequest(b,c,d);if(!n){k(new _.qj("Error: Failed to build request for command.",b));x.jumpTo(0);break}Gq(n.input);t=((r=n.requestShell)==null?void 0:r.mode)==="cors"?"cors":void 0;if(a.authService.syncHeaders){u=ZQb(n.config,t);x.jumpTo(4);break}return _.p(x,$Qb(n.config,t),5);case 5:u=
x.yieldResult;case 4:g(aRb(a,n,u)),_.ue(x)}})}):_.On(new _.qj("Error: No request builder found for command.",b))};
rLb=function(a,b,c,d){var e=e===void 0?vmb:e;var g,k,m,n,r,t,u,x,A,C,F,J,I,R,da,V,fa,aa;return _.l(function(ma){switch(ma.nextAddress){case 1:g=VTa(b,a.endpointMap);if(!g)throw new _.qj("Error: No streaming request builder found for command",b);k=g.JSC$11742_getRequest(b,c,e);if(!k)throw new _.qj("Failed to build YtRequest for streaming Command",b);if((m=a.localInnertubeRouter)==null||!m.shouldPreferLocalResponse(k.input,k.innerTubeRequest)){ma.jumpTo(2);break}return _.p(ma,a.localInnertubeRouter.localInnertubeResponse(k.input,
k.innerTubeRequest),3);case 3:return n=ma.yieldResult,r={},n.playerResponse&&(OH(a,n.playerResponse,k),r.player=n.playerResponse,(t=d)==null||t(r,n)),n.watchNextResponse&&(OH(a,n.watchNextResponse,k),r.content=n.watchNextResponse,(u=d)==null||u(r,n)),ma.return(r);case 2:A=((x=k.requestShell)==null?void 0:x.mode)==="cors"?"cors":void 0;if(a.authService.syncHeaders){C=ZQb(k.config,A);ma.jumpTo(4);break}return _.p(ma,$Qb(k.config,A),5);case 5:C=ma.yieldResult;case 4:return I=(J=(F=k.requestShell)==null?
void 0:F.headers)!=null?J:{},k.requestShell=Object.assign({},k.requestShell,{headers:Object.assign({},I,C)}),R=Object.assign({},k.requestShell),da=JSON.stringify(k.innerTubeRequest),k.requestShell.method==="POST"&&(R=Object.assign({},R,{body:da})),V=function(Ba,Ca){OH(a,Ca.playerResponse||Ca.watchNextResponse||Ca.reelItemWatchResponse||Ca.reelWatchSequenceResponse,k);d==null||d(Ba,Ca)},fa={},_.p(ma,bRb(a.networkManager,k.input,R,V),6);
case 6:return fa=ma.yieldResult,((aa=k.config)==null?0:aa.responseTick)&&_.Lo(k.config.responseTick),ma.return(fa)}})};
_.RF=function(a,b,c,d,e){e=e===void 0?{authStrategy:{identity:vmb}}:e;var g=g===void 0?!0:g;var k=function(){};
k=aDa(ZCa(c));b.context||(b.context=_.xJa(d,g));return new _.il(function(m){var n,r,t,u,x;return _.l(function(A){if(A.nextAddress==1)return n=JBa(c),r=_.Rn(n),a.authService.syncHeaders?(t=ZQb(e,r),A.jumpTo(2)):_.p(A,$Qb(e,r),3);A.nextAddress!=2&&(t=A.yieldResult);u=KBa(JBa(c));x={input:u,requestShell:Sn(u),innerTubeRequest:b,config:e};m(aRb(a,x,t,k));_.ue(A)})})};
OH=function(a,b,c){var d;if(b&&!(b==null?0:(d=b.sequenceMetaData)==null?0:d.skipProcessing)&&a.responseProcessorMap){d=_.h(WQb);for(var e=d.next();!e.done;e=d.next())e=e.value,a.responseProcessorMap[e]&&a.responseProcessorMap[e].handleResponse(b,c)}};
aRb=function(a,b,c,d){d=d===void 0?function(){}:d;
var e,g,k,m,n,r,t,u,x,A,C,F,J,I,R,da,V,fa,aa,ma,Ba,Ca,ya,Ia,db,lb,Ua,Vb,rb,sb,yc,Mb,ub,Db,Wc,Mc,ia,ac,Qb,Ac;return _.l(function(qb){switch(qb.nextAddress){case 1:k=(e=b.config)==null?void 0:(g=e.storeStrategy)==null?void 0:g.storeKey;if(!(k&&a.innertubeResponseStore&&a.innertubeResponseStore.has(k))||((m=b.config)==null?0:(n=m.storeStrategy)==null?0:n.disableCache)){qb.jumpTo(2);break}return _.p(qb,a.innertubeResponseStore.get(k),3);case 3:if((r=qb.yieldResult)&&!r.isExpired())return qb.return(Promise.resolve(_.ww(r)));
case 2:if(!((t=b)==null?0:(u=t.innerTubeRequest)==null?0:u.context)){qb.jumpTo(4);break}x=b.innerTubeRequest.context;if(!(a.asyncContextProcessors&&a.asyncContextProcessors.length>0)){qb.jumpTo(5);break}A=[];C=_.h(a.asyncContextProcessors);for(F=C.next();!F.done;F=C.next())J=F.value,I=J.processContext(b),I.wrappedPromise_&&A.push(I.wrappedPromise_);if(!(A.length>0)){qb.jumpTo(5);break}return _.p(qb,Promise.all(A),5);case 5:R=_.h(a.contextProcessors||[]),da=R.next();case 8:if(da.done){qb.jumpTo(4);
break}V=da.value;return _.p(qb,V.processContext(x),9);case 9:da=R.next();qb.jumpTo(8);break;case 4:if((fa=a.localInnertubeRouter)==null||!fa.shouldPreferLocalResponse(b.input,b.innerTubeRequest)){qb.jumpTo(12);break}return _.p(qb,a.localInnertubeRouter.localInnertubeResponse(b.input,b.innerTubeRequest),13);case 13:return aa=qb.yieldResult,OH(a,aa,b),qb.return(aa);case 12:return(Ca=(Ba=b.config)==null?void 0:Ba.requestKey)&&a.inflightRequests.has(Ca)?ma=a.inflightRequests.get(Ca):(ya=JSON.stringify(b.innerTubeRequest),
lb=(db=(Ia=b.requestShell)==null?void 0:Ia.headers)!=null?db:{},b.requestShell=Object.assign({},b.requestShell,{headers:Object.assign({},lb,c)}),Ua=Object.assign({},b.requestShell),b.requestShell.method==="POST"&&(Ua=Object.assign({},Ua,{body:ya})),((Vb=b.config)==null?0:Vb.requestTick)&&_.Lo(b.config.requestTick),rb=function(){return a.networkManager.fetch(b.input,Ua,b.config)},ma=a.requestSequencer?cRb(a.requestSequencer,b,rb):rb(),Ca&&a.inflightRequests.set(Ca,ma)),_.p(qb,ma,14);
case 14:if((sb=qb.yieldResult)&&"error"in sb&&((yc=sb)==null?0:(Mb=yc.error)==null?0:Mb.details))for(ub=sb.error.details,Db=_.h(ub),Wc=Db.next();!Wc.done;Wc=Db.next())Mc=Wc.value,(ia=Mc["@type"])&&XQb.indexOf(ia)>-1&&(delete Mc["@type"],sb=Mc);Ca&&a.inflightRequests.has(Ca)&&a.inflightRequests.delete(Ca);((ac=b.config)==null?0:ac.responseTick)&&_.Lo(b.config.responseTick);if(sb||(Qb=a.localInnertubeRouter)==null||!Qb.canProvideFallbackResponse(b.input,b.innerTubeRequest)){qb.jumpTo(15);break}return _.p(qb,
a.localInnertubeRouter.localFallbackInnertubeResponse(b.input,b.innerTubeRequest),16);case 16:sb=qb.yieldResult;case 15:return OH(a,sb,b),((Ac=b.config)==null?0:Ac.processorTick)&&_.Lo(b.config.processorTick),d(),qb.return(sb||void 0)}})};
_.Qt=function(a,b){return UTa(b,a.endpointMap)};
xLb=function(a,b){a=WTa(b,a.endpointMap);if(a!==void 0)return Promise.resolve(a)};
$Qb=function(a,b){var c,d,e,g;return _.l(function(k){if(k.nextAddress==1){e=(c=a)==null?void 0:(d=c.authStrategy)==null?void 0:d.sessionIndex;var m=_.qo(lqa({sessionIndex:e}));return _.p(k,m,2)}g=k.yieldResult;return k.return(Promise.resolve(Object.assign({},XTa(b),g)))})};
ZQb=function(a,b){var c;a=a==null?void 0:(c=a.authStrategy)==null?void 0:c.sessionIndex;c=lqa({sessionIndex:a});return Object.assign({},XTa(b),c)};var dRb,eRb,fRb,gRb,hRb,iRb,lRb,mRb,RH,nRb,oRb,kRb,pRb;dRb=0;eRb=/tone[1-5]/;fRb=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");gRb="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
hRb=Number.MAX_SAFE_INTEGER;iRb=RegExp("\ufe0f","g");_.PH=function(a){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;a&&_.jRb(this,a)};
_.jRb=function(a,b){try{_.hj(b,{context:a,onSuccess:function(d,e){Array.isArray(e)?a.load(e):(d=new _.qj("Emoji manager JSON response was not an array!",{response:e}),_.Bl(d))},
onError:function(d){d=new _.qj("Failed to retrieve emoji manager initial JSON data!",{url:b,statusCode:cj(d).toString()});_.Dl(d)}})}catch(d){var c=new _.qj("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:b});
_.Dl(c)}};
_.PH.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.PH.prototype.load=function(a,b){if(b)if(a.length)a=a.concat(b.emojis);else{this.emojis=b.emojis;this.emojiMap=b.emojiMap;this.emojiShortcutMap=b.emojiShortcutMap;this.emojiShortcutCharMap=kRb(b);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=b.emojiRegex;return}this.emojis=[].concat(_.De(new Set(this.emojis.concat(a))));this.hasInitializedShortcutCharMap=!1;a=Array(this.emojis.length);for(b=0;b<this.emojis.length;b++){var c=this.emojis[b];if(c.emojiId){this.emojiMap[c.emojiId]=c;this.emojiMap[c.emojiId].index=
b;for(var d=0;c.shortcuts&&d<c.shortcuts.length;d++)this.emojiShortcutMap[c.shortcuts[d].toLocaleLowerCase()]=c;a[b]=c.isCustomEmoji&&c.shortcuts?c.shortcuts[0]:c.emojiId}}a.sort(function(e,g){return g.length-e.length});
if(a.length)try{this.emojiRegex=new RegExp(a.join("|").replace("*","\\*"),"gi")}catch(e){this.emojiRegex=/$./}else this.emojiRegex=/$./};
lRb=function(a,b){b=_.h(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;if(d.emojiId&&a.emojiMap[d.emojiId]){c=Object.assign({},a.emojiMap[d.emojiId],d);a.emojiMap[d.emojiId]=c;var e=void 0;c.index&&((e=a.emojis[c.index])==null?void 0:e.emojiId)===d.emojiId&&(a.emojis[c.index]=c);d=void 0;if((d=c.shortcuts)==null?0:d.length)for(a.hasInitializedShortcutCharMap=!1,d=_.h(c.shortcuts),e=d.next();!e.done;e=d.next())a.emojiShortcutMap[e.value.toLocaleLowerCase()]=c}}};
mRb=function(a){var b,c;_.l(function(d){if(d.nextAddress==1)return _.p(d,_.IF.getInstance(),2);if(d.nextAddress!=3)return(b=d.yieldResult)?_.p(d,b.get("ytlc-emoji-pref"),3):d.return();(c=d.yieldResult)&&lRb(a,Object.keys(c).map(function(e){return{emojiId:e,stickyPrefId:c[e]}}).filter(function(e){return!!e.emojiId&&!!e.stickyPrefId}));
_.ue(d)})};
_.QH=function(a,b,c){return(a=a.emojiMap[b])&&(!a.isLocked||c!==void 0&&c)?a:void 0};
RH=function(a,b,c){c=_.QH(a,b,c===void 0?!1:c);var d=b.match("\u200d");c&&a.skinTone!==0&&(a=(d==null?void 0:d.length)===1?_.QH(a,b.replace("\u200d",fRb[a.skinTone]+"\u200d")):_.QH(a,b+fRb[a.skinTone]))&&(c=a);return c};
nRb=function(a,b){var c=a.emojiMap[b];return(c==null?0:c.stickyPrefId)?a.emojiMap[c.stickyPrefId]:RH(a,b)};
_.nv=function(a,b){a=a.emojiShortcutMap[b.toLocaleLowerCase()];return!a||a.isLocked?null:a};
oRb=function(a,b,c){return kRb(a,c===void 0?!1:c)[b]||{}};
kRb=function(a,b){b=b===void 0?!1:b;if(!a.hasInitializedShortcutCharMap){a.hasInitializedShortcutCharMap=!0;for(var c=0;c<a.emojis.length;c++){var d=a.emojis[c];if(!(d.isLocked||b&&d.isCustomEmoji&&d.emojiId&&!a.pickerCustomEmojiIds.includes(d.emojiId)))for(var e=0;d.shortcuts&&e<d.shortcuts.length;e++){var g=d.shortcuts[e];g.startsWith(":_")&&d.isCustomEmoji&&(a.emojiShortcutCharMap[":_"]==null&&(a.emojiShortcutCharMap[":_"]=Object.create(null)),a.emojiShortcutCharMap[":_"][g]=d);if(!(g.length<3||
!d.isCustomEmoji&&eRb.test(g))){var k=g.substr(0,3).toLocaleLowerCase();a.emojiShortcutCharMap[k]==null&&(a.emojiShortcutCharMap[k]=Object.create(null));a.emojiShortcutCharMap[k][g]=d}}}}return a.emojiShortcutCharMap};
_.PH.prototype.createEmoji=function(a,b){b=b===void 0?!0:b;var c=document.createElement("img");a.isCustomEmoji||c.classList.add("small-emoji");c.classList.add("emoji");c.classList.add("yt-formatted-string");c.src=a.image?_.Us(a.image.thumbnails,this.emojiSize)||"":"";var d=void 0;a.image&&a.image.accessibility&&a.image.accessibility.accessibilityData&&(d=a.image.accessibility.accessibilityData.label);c.alt=d?d:(a.isCustomEmoji&&a.shortcuts?a.shortcuts[0]:a.emojiId)||"";a.isCustomEmoji&&(c.dataset.emojiId=
a.emojiId);_.xx&&(c.setAttribute("contenteditable","false"),c.setAttribute("unselectable","on"));b&&(a.shortcuts&&a.shortcuts.length&&c.setAttribute("shared-tooltip-text",a.shortcuts[0]),c.id="emoji-"+dRb++);return c};
_.PH.prototype.createDocumentFragment=function(a,b,c,d){b=b===void 0?!1:b;c=c===void 0?!0:c;d=d===void 0?!1:d;a=a.replace(iRb,"");for(var e=document.createDocumentFragment(),g=0,k,m=0;(k=this.emojiRegex.exec(a))!=null;){var n=_.QH(this,k[0])||_.nv(this,k[0]);!n||n.isCustomEmoji&&!b||(n=this.createEmoji(n,c),g!==k.index&&e.appendChild(document.createTextNode(a.substring(g,k.index))),e.appendChild(n),g=k.index+k[0].length,m++)}if(!d||m)return e.appendChild(document.createTextNode(a.substr(g))),e};
pRb=function(a,b,c){var d,e,g,k,m,n,r,t,u;return _.l(function(x){if(x.nextAddress==1){if(!b.emojiId||!a.emojiMap[b.emojiId])return x.return();d=Object.assign({},a.emojiMap[b.emojiId],{stickyPrefId:c});a.emojiMap[b.emojiId]=d;b.index&&((e=a.emojis[b.index])==null?void 0:e.emojiId)===b.emojiId&&(a.emojis[b.index]=d);if((g=b.shortcuts)==null?0:g.length)for(a.hasInitializedShortcutCharMap=!1,k=_.h(b.shortcuts),m=k.next();!m.done;m=k.next())n=m.value,a.emojiShortcutMap[n.toLocaleLowerCase()]=d;return _.p(x,
_.IF.getInstance(),2)}if(x.nextAddress!=4)return(r=x.yieldResult)?_.p(x,r.get("ytlc-emoji-pref"),4):x.jumpTo(0);u=(t=x.yieldResult)!=null?t:{};u[b.emojiId]=c;return _.p(x,r.set("ytlc-emoji-pref",u,hRb),0)})};
_.SH=new _.PH;var sRb;_.TH={};
sRb={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.w("web_context_menu_a11y_opacity_visibility"),reflectToAttribute:!0},timestampString:{type:String,computed:"computeTimestampString(data)"},popupPositionTarget:{type:Object,computed:"identity(menuButton)"},menuButton:Object,menuVisible:{type:Boolean,
computed:"computeMenuVisible_(menuOpen, menuFocused)",reflectToAttribute:!0},menuOpen:{type:Boolean,value:!1},menuFocused:{type:Boolean,value:!1},emojiManager:Object,participantsManager:Object,isDeleted:{type:Boolean,value:!1,computed:"truthy(data.deletedStateMessage)",reflectToAttribute:!0},hasOriginalContent:{type:Boolean,value:!1,computed:"truthy(data.showOriginalContentMessage)"},hasInlineActionButtons:{type:Boolean,computed:"computeHasInlineActionButtons(data)",reflectToAttribute:!0},modern:{type:Boolean,
reflectToAttribute:!0,value:_.w("web_button_rework_with_live")},filledButtonOverrides:{type:Object,value:{type:"filled",style:"overlay"}}},supportsInlineActionButtons:!1,listeners:{"yt-popup-opened":"onYtPopupOpened_","yt-popup-closed":"onYtPopupClosedOrCanceled_","yt-popup-canceled":"onYtPopupClosedOrCanceled_",tap:"onItemTap"},TIME_FORMATTER:new Tp(7),shouldSupportInlineActionButtons:function(){return!1},
shouldSupportWholeItemClick:function(){return!1},
beforeRegister:function(){if(this.supportsInlineActionButtons||this.shouldSupportInlineActionButtons())this.stampDom||(this.stampDom={}),this.stampDom["data.inlineActionButtons"]={id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}}},
ready:function(){var a=_.E(this.hostElement||this).querySelector("#inline-action-button-container");a&&a.setAttribute("aria-hidden","true");this.menuButton=_.E(this.hostElement).querySelector("#menu-button")},
attached:function(){var a=this.menuButton;a&&(a.addEventListener("focusin",_.gr(this,this.onMenuButtonFocus_)),a.addEventListener("focusout",_.gr(this,this.onMenuButtonBlur_)))},
detached:function(){var a=this.menuButton;a&&(a.removeEventListener("focusin",_.gr(this,this.onMenuButtonFocus_)),a.removeEventListener("focusout",_.gr(this,this.onMenuButtonBlur_)))},
identity:_.Ma,truthy:function(a){return!!a},
computeTimestampString:function(a){return a?a.timestampText?this.getSimpleString(a.timestampText):this.TIME_FORMATTER.format(new Date(a.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(a){return _.w("live_chat_whole_message_clickable")&&a},
computeMenuVisible_:function(a,b){return a||b},
computeHasInlineActionButtons:function(a){if(!a)return!1;var b,c;return!((b=a.inlineActionButtons)==null||!b.length)||!((c=a.additionalInlineActionButtons)==null||!c.length)},
createDocumentFragmentFromString:function(a){var b=_.SH.createDocumentFragment.bind(_.SH),c;if((c=this.participantsManager)==null||!c.viewerRegex)return b(a);c=document.createDocumentFragment();for(var d=0,e;(e=this.participantsManager.viewerRegex.exec(a))!=null;){if(e.index>0){var g=":"+e[0]+":";if((_.QH(_.SH,g)||_.nv(_.SH,g))&&a.indexOf(g)===e.index-1)continue}c.appendChild(b(a.substring(d,e.index)));d=document.createElement("span");d.appendChild(b(e[0]));d.classList.add("mention");c.appendChild(d);
d=e.index+e[0].length}c.appendChild(b(a.substring(d)));return c},
createDocumentFragment:function(a){var b=document.createDocumentFragment();if(a.simpleText)return b.appendChild(this.createDocumentFragmentFromString(a.simpleText)),b;if(!a.runs)return b;for(var c=0;c<a.runs.length;c++){var d=a.runs[c];if(d.emoji)b.appendChild(_.SH.createEmoji(d.emoji));else if(d.text)if(d.navigationEndpoint){var e=document.createElement("a");e.classList.add("yt-simple-endpoint");Fua(e,d.navigationEndpoint);_.E(e).appendChild(this.createDocumentFragmentFromString(d.text));b.appendChild(e)}else b.appendChild(this.createDocumentFragmentFromString(d.text))}return b},
hasModerationOverlayVisible:function(){var a;return((a=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:a.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(a){a.composedPath().some(function(b){return(b=b instanceof Element?b:null)?b.tagName&&(b.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||b.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.w("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(a)},
colorFromDecimal:function(a){return HPa(a)},
markAsDeleted:function(a,b){this.set("data.deletedStateMessage",a);this.set("data.showOriginalContentMessage",b)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(a){if(this.data.contextMenuEndpoint){var b=_.v().resolve(_.xq),c=this.data.contextMenuEndpoint,d;(d=_.Pt.instance)&&_.Qt(d,c)?(b=qRb(b,c),d=_.RF(d,{},b)):d=_.rRb(b,c);d.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);a&&a.stopPropagation()}},
handleGetContextMenuResponse_:function(a){var b=_.Pt.instance;b&&_.Qt(b,{liveChatEndpoint:{}})||(a=a.response);a.liveChatItemContextMenuSupportedRenderers&&a.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(a.liveChatItemContextMenuSupportedRenderers.menuRenderer);a.actions&&_.lo(this.hostElement,"yt-live-chat-actions",[a.actions])},
handleGetContextMenuError:function(a){if(a instanceof Error||a instanceof Object||a instanceof String)var b=a;_.Bl(new _.qj("Error encountered calling GetLiveChatItemContextMenu",b))},
showContextMenu_:function(a){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:a}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.io(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.io(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.TH.YtLiveChatItemBehavior=[sRb,_.OG.YtComponentBehavior,_.pH.YtOpenPopupBehavior];_.UH=function(){};var tRb;var uRb;var vRb;var wRb;var xRb=function(){var a=_.P.apply(this,arguments)||this;a.active=!1;a.identity=_.Ma;return a};
_.z(xRb,_.P);xRb.prototype.dataChanged=function(){this.active=!1};
xRb.prototype.onClick=function(){_.io(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
var VH=xRb;VH.prototype.dataChanged=VH.prototype.dataChanged;_.U([_.O(),_.W("design:type",Object)],VH.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],VH.prototype,"active",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VH.prototype,"dataChanged",null);VH=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],VH);
_.S(VH,"yt-live-chat-text-input-field-suggestion",function(){if(wRb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_suggestion.yt.live.chat.text.input.field.suggestion.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-click="onClick" class="style-scope yt-live-chat-text-input-field-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[data.image.thumbnails.0.url]]" author$="[[data.author]]" class="style-scope yt-live-chat-text-input-field-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;vRb===void 0&&(vRb=document.createElement("template"));var d=vRb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);wRb=a}a=wRb;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});_.WH=function(a,b,c){return CustomEvent.call(this,a,{detail:{value:b,path:c}})||this};
_.z(_.WH,CustomEvent);var yRb=function(){var a=_.P.apply(this,arguments)||this;a.viewerName=null;a.actionMap={"yt-live-chat-actions":"onChatMessage_"};a.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];a.PARTICIPANT_TIME_USEC_=3E8;return a};
_.z(yRb,_.P);_.f=yRb.prototype;_.f.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.f.addParticipant=function(a){var b=_.Baa(this.participants,a,function(d,e){d=d[Object.keys(d)[0]];e=e[Object.keys(e)[0]];d=String(_.Wp(d.authorName)).toLowerCase();e=String(_.Wp(e.authorName)).toLowerCase();return d<e?-1:d==e?0:1}.bind(this));
if(b>=0){var c=this.participants[b];c[Object.keys(c)[0]].timestampUsec&&this.splice("participants",b,1,a)}else this.splice("participants",-b-1,0,a);a=a[Object.keys(a)[0]];b=_.Wp(a.authorName).toLocaleLowerCase();c=b.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(c)||(this.allParticipantsCharMap_[c]={});this.allParticipantsCharMap_[c][b]=a};
_.f.getAuthorsFromPrefix=function(a){return this.allParticipantsCharMap_.hasOwnProperty(a)?this.allParticipantsCharMap_[a]:null};
_.f.computeViewerRegex_=function(a){if(!a)return null;a=a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp("([@#]"+a.replace(/ /g,"\\s*")+"|^"+a.replace(/ /g,"\\s*")+"$|^"+a.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+a.replace(/ /g,"\\s*")+"$|(?<=\\s)"+a.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.f.checkForStaleParticipants_=function(){var a=this;this.trimOldParticipants_();this.asyncHandle_&&hNa(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.Er(function(){a.checkForStaleParticipants_()},3E4))};
_.f.onChatMessage_=function(a){var b=this,c=Date.now()*1E3;a.forEach(function(d){if(d=_.y(d,IBb)){d=d.item;var e=Object.keys(d)[0];b.SUPPORTED_ITEM_TYPES_.indexOf(e)!=-1&&d[e].timestampUsec>=c-b.PARTICIPANT_TIME_USEC_&&b.addParticipant(d)}},this);
this.checkForStaleParticipants_()};
_.f.trimOldParticipants_=function(){for(var a=Date.now()*1E3,b=this.participants.length-1;b>=0;b--){var c=this.participants[b];c=c[Object.keys(c)[0]];c.timestampUsec&&c.timestampUsec<a-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",b,1)}};
_.XH=yRb;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],_.XH.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],_.XH.prototype,"viewerName",void 0);_.U([_.O({computed:"computeViewerRegex_(viewerName)"}),_.W("design:type",Object)],_.XH.prototype,"viewerRegex",void 0);_.U([_.O({value:function(){return[]},
notify:!0}),_.W("design:type",Array)],_.XH.prototype,"participants",void 0);_.XH=_.U([_.wr({is:"yt-live-chat-participants-manager",noInjection:!0})],_.XH);var zRb=/.*([:@#].*?)$/,YH=/\u00a0/g,ARb=String.fromCharCode(160),BRb={placeholderTextColor:"--yt-live-chat-text-input-field-placeholder-color",activeUnderlineColor:"--yt-live-chat-text-input-field-active-underline-color",inactiveUnderlineColor:"--yt-live-chat-text-input-field-inactive-underline-color"},CRb=function(){var a=_.P.apply(this,arguments)||this;a.disabled=!1;a.liveChatRichMessageInput=null;a.messageInput=null;a.isValidWithNoInputText=!1;a.suggestions=[];a.emojiManager=_.SH;a.inputMethodEditorActive=
!1;a.suggestionIndex=-1;a.JSC$11797_lastSuggestionRange=null;return a};
_.z(CRb,_.P);_.f=CRb.prototype;_.f.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.f.attached=function(){_.yx&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.f.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.f.dataChanged=function(){if(!this.ignoreColorMapping){var a=!1,b={},c;for(c in BRb)this.data&&this.data.hasOwnProperty(c)&&(b[BRb[c]]=this.colorFromDecimal(this.data[c]),a=!0);a&&_.fr(this.hostElement,b)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.f.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.f.colorFromDecimal=function(a){a=Math.floor(Number(a));return"rgba("+[a>>16&255,a>>8&255,a&255,(a>>24&255)/255].join()+")"};
_.f.preventDrag=function(a){a.dataTransfer&&(a.dataTransfer.dropEffect="none");a.preventDefault()};
_.f.preventResize=function(a){a.returnValue=!1};
_.f.onInputChange=function(){var a=this.characterCount,b=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&b&&b.remove();if(!b&&this.characterCount>this.maxCharacterLimit){var c=window.getSelection();if(c){var d=c.getRangeAt(0);c.removeAllRanges();c.addRange(d)}}if(c=this.getCurrentRange())d=this.calculateTextBeforeRange(c),this.completeEmojisInRange(c,d,!0)||this.updateSuggestions(c,d);d=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(d);
_.io(this.hostElement,"yt-live-chat-message-input-change",d);b&&this.characterCount===0&&b.remove();c&&c.commonAncestorContainer.parentElement.id==="input"&&c.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>a):c&&!c.collapsed&&c.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(a=this.input.childNodes.length-1;a>=0;a--)this.input.childNodes[a].nodeName==="BR"&&this.input.childNodes[a].remove()};
_.f.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.f.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var a=this.getCurrentRange();a&&a.commonAncestorContainer.parentElement.id==="input"&&a.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.f.mergeOverflowText=function(a){if(a){var b=document.createRange();b.selectNodeContents(a);b=b.extractContents();this.input.insertBefore(b,a)}};
_.f.checkRangeAtEndOfInput=function(){var a=this.getCurrentRange();if(a){var b=_.E(this.hostElement).querySelector("#overflow-text"),c=document.createRange();b&&b.previousSibling?b.previousSibling instanceof HTMLImageElement?c.selectNode(b.previousSibling):c.selectNodeContents(b.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?c.selectNode(this.input.lastChild):c.selectNodeContents(this.input.lastChild));c.collapse(!1);return c.isPointInRange(a.startContainer,
a.startOffset)}return!1};
_.f.handleOverflowText=function(a){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var b=_.E(this.hostElement).querySelector("#overflow-text"),c=this.getCurrentRange();this.input.normalize();a=this.checkRangeAtEndOfInput()&&a;this.mergeOverflowText(b);for(var d,e=0,g=0,k,m=this.input.childNodes,n=0;n<m.length;n++){var r=m[n];r instanceof Text?(g+=r.textContent.length,g>this.maxCharacterLimit&&(d=r,e=this.maxCharacterLimit+r.textContent.length-g)):r instanceof HTMLImageElement&&
(d=void 0,g=r.dataset.emojiId&&((d=this.data)==null?0:d.emojiCharacterCount)?g+this.data.emojiCharacterCount:g+r.alt.length,d=this.input,e=n);if(g>this.maxCharacterLimit&&d){k=document.createRange();k.collapse(!1);b?(g=this.input.lastChild.previousSibling,g instanceof Text?k.setEnd(this.input.lastChild.previousSibling,g.textContent.length):g instanceof HTMLImageElement&&k.setEnd(this.input,this.input.childNodes.length-1)):k.selectNodeContents(this.input);k.setStart(d,e);break}}k&&(d=!1,c&&(a=k.isPointInRange(c.startContainer,
c.startOffset-1)),b||(b=document.createElement("span"),b.id="overflow-text",b.textContent="",b.setAttribute("contenteditable","true"),_.E(_.E(this.hostElement).querySelector("#input")).appendChild(b),d=!0),b&&(c=k.extractContents(),b.insertBefore(c,b.firstChild),a&&b.firstChild&&(c=document.createRange(),d?c.setStartAfter(b.lastChild):c.setStartAfter(b.firstChild),c.collapse(!0),b=window.getSelection(),b.removeAllRanges(),b.addRange(c))))}};
_.f.checkForDuplicateSpans=function(){for(var a=0;a<this.input.childNodes.length;a++){var b=this.input.childNodes[a];if(b.nodeName==="SPAN"){var c=document.createRange();c.selectNodeContents(b);c=c.extractContents();this.input.insertBefore(c,b);b.remove()}}this.handleOverflowText(!0)};
_.f.getCurrentRange=function(){var a=window.getSelection();return a&&a.rangeCount?a.getRangeAt(0).cloneRange():null};
_.f.getInputRange=function(){var a=this.getCurrentRange();if(a){for(var b=a.commonAncestorContainer,c=!1,d=_.E(this.hostElement).querySelector("#input");b;){if(b===d){c=!0;break}b=b.parentNode}c||(a=null)}a||(a=this.getRangeAtEnd());return a};
_.f.getRangeAtEnd=function(){var a=document.createRange(),b=_.E(this.hostElement).querySelector("#input").lastChild;!b||b.nodeName!=="#text"&&b.nodeName!=="SPAN"?(a.selectNodeContents(_.E(this.hostElement).querySelector("#input")),a.collapse(!1)):b.nodeName==="#text"?a.setStart(b,b.textContent.length):a.setStart(b,b.childNodes.length);return a};
_.f.getSuggestions=function(a){var b=[],c=a.substring(0,3),d=oRb(_.SH,c,!0);if(d)for(var e in d)if(e.toLocaleLowerCase().indexOf(a)===0){var g=d[e];if(g&&g.emojiId){if(g=nRb(_.SH,g.emojiId)){var k=void 0,m=void 0,n=void 0,r=void 0,t=((k=g.image)==null?0:(m=k.accessibility)==null?0:(n=m.accessibilityData)==null?0:n.label)||g.isCustomEmoji?(r=g.shortcuts)==null?void 0:r[0]:g.emojiId;b.push({suggestion:{emoji:!0,image:g.image,alt:t,text:e,textToInsertWhenSelected:g.isCustomEmoji?e:t}})}if(b.length>=
64)break}}if(!this.participantsManager)return null;e=_.w("enable_web_yt_handles");if(c.indexOf("@")===0||c.indexOf("#")===0)if(d=c.charAt(0),e&&c.indexOf("@")===0?c=c.substring(0,2):(a=a.substring(1),c=c.substring(1)),c=this.participantsManager.getAuthorsFromPrefix(c))for(var u in c)if(u.indexOf(a)===0&&(e=c[u],g=_.Wp(e.authorName),b.push({suggestion:{author:!0,authorType:d,image:e.authorPhoto,alt:g,text:g}}),b.length>=64))break;return b?b.sort(function(x,A){return A.suggestion.text<x.suggestion.text?
-1:A.suggestion.text===x.suggestion.text?0:1}):null};
_.f.insertSuggestion=function(a){a.emoji?this.insertTextAtRange(this.JSC$11797_lastSuggestionRange,a.textToInsertWhenSelected||""):a.author&&this.insertTextAtRange(this.JSC$11797_lastSuggestionRange,a.authorType+a.text+ARb)};
_.f.updateSuggestionsAtCaret=function(){var a=this.getCurrentRange();a&&this.updateSuggestions(a,this.calculateTextBeforeRange(a))};
_.f.offsetStartOfRangeBy=function(a,b){for(;b>0;)if(a.startOffset-b>=0){a.setStart(a.startContainer,a.startOffset-b);break}else{b=a.startContainer instanceof HTMLImageElement?b-a.startContainer.alt.length:b-a.startOffset;var c=a.startContainer.previousSibling;if(!c){a.setStart(a.startContainer,0);break}if(_.w("live_chat_require_space_for_autocomplete_emoji")){var d=void 0,e=void 0;a.setStart(c,((d=c)==null?void 0:(e=d.textContent)==null?void 0:e.length)||0)}else a.setStart(c,c.childNodes.length||
0)}};
_.f.updateSuggestions=function(a,b){var c=this;this.JSC$11797_lastSuggestionRange&&(this.JSC$11797_lastSuggestionRange.detach(),this.JSC$11797_lastSuggestionRange=null);if((b=zRb.exec(b))&&b.length&&(b=b[b.length-1].toLocaleLowerCase(),b.length>2&&(this.offsetStartOfRangeBy(a,b.length),this.JSC$11797_lastSuggestionRange=a,(a=this.getSuggestions(b))&&a.length))){this.suggestions=a;_.Qm(this,function(){_.E(c.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(a.length-1);return}this.dropdown.opened=!1};
_.f.completeEmojisInRange=function(a,b,c){var d=b.replace(/[\s\xa0]+$/,"");b=b.length-d.length;d=d.split(" ");d=d[d.length-1].trim().toLocaleLowerCase();var e=d.lastIndexOf(":");if(c&&!b&&e!==d.length-1)return!1;e!==-1&&(c=d.lastIndexOf(":",e-1),c!==-1&&(d=d.substring(c)));if((c=_.nv(_.SH,d))&&c.emojiId){c=nRb(_.SH,c.emojiId)||null;this.offsetStartOfRangeBy(a,d.length+b);var g,k,m,n;d=(((g=c)==null?0:g.isCustomEmoji)?(k=c)==null?void 0:(m=k.shortcuts)==null?void 0:m[0]:(n=c)==null?void 0:n.emojiId)||
"";b&&(d+=ARb);this.insertTextAtRange(a,d);this.dropdown.opened=!1;return!0}return!1};
_.f.onSuggestion=function(a){this.insertSuggestion(a.detail);this.dropdown.opened=!1};
_.f.onKeyPress=function(a){a.keyCode===13&&(a.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.io(this.hostElement,"yt-live-chat-send-message"))};
_.f.completeEmojis=function(){var a=document.createRange(),b=_.E(this.hostElement).querySelector("#input").lastChild;b?a.setStart(b,b.childNodes.length):(a.selectNodeContents(_.E(this.hostElement).querySelector("#input")),a.collapse(!1));this.completeEmojisInRange(a,this.calculateTextBeforeRange(a),_.w("live_chat_require_space_for_autocomplete_emoji"))};
_.f.maybePreventTextFormatting=function(a){!_.Bx||!a.ctrlKey&&!a.metaKey||a.keyCode!==66&&a.keyCode!==73||(a.stopImmediatePropagation(),a.preventDefault())};
_.f.onKeyDown=function(a){this.maybePreventTextFormatting(a);if(this.dropdown.opened)switch(a.keyCode){case 27:this.dropdown.opened=!1;a.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;a.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);a.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),a.preventDefault()}};
_.f.onKeyUp=function(a){switch(a.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.xx)this.onInputChange()};
_.f.changeSuggestionIndex=function(a){if(this.dropdown.opened){var b=_.E(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<b.children.length&&(b.children[this.suggestionIndex].active=!1);var c=this.suggestions.length;this.suggestionIndex=(a+c)%c;a=b.children[this.suggestionIndex];a.active=!0;b.scrollTop=a.offsetTop}};
_.f.onInputPaste=function(a){a.preventDefault();(a=a.clipboardData)&&a.types&&(a=a.getData("text/plain")||"",a=a.replace(/\n/g,""),this.insertText(a));(a=this.getCurrentRange())&&a.commonAncestorContainer.parentElement.id==="input"&&a.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.f.onFocus=function(){this._setFocused(!0)};
_.f.onBlur=function(){this._setFocused(!1)};
_.f.insertText=function(a){this.insertTextAtRange(this.getInputRange(),a)};
_.f.insertTextAtRange=function(a,b){if(a&&(a.collapsed||a.deleteContents(),b=_.SH.createDocumentFragment(b,!0,!1))){for(var c=_.h((b==null?void 0:b.childNodes)||[]),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,g=void 0,k=void 0,m=void 0,n=void 0;(k=(e=window)==null?void 0:(g=e.ShadyCSS)==null?void 0:g.ScopingShim)==null||(n=(m=k).scopeNode)==null||n.call(m,d,this.hostElement.localName)}c=b.lastChild;a.insertNode(b);this.focused||this.input.focus();if(this.focused){a=a.cloneRange();a.selectNodeContents(c);
a.collapse(!1);if(b=window.getSelection())b.removeAllRanges(),b.addRange(a);a.commonAncestorContainer.parentElement.id==="input"&&a.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}a=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(a);_.io(this.hostElement,"yt-live-chat-message-input-change",a)}};
_.f.setLiveChatRichMessageInput=function(a){_.E(_.E(this.hostElement).querySelector("#input")).textContent="";if(a&&a.textSegments){for(var b=0;b<a.textSegments.length;b++){var c=a.textSegments[b];c.text?_.E(_.E(this.hostElement).querySelector("#input")).appendChild(_.SH.createDocumentFragment(c.text,!0,!1)):c.emojiId&&(c=_.QH(_.SH,c.emojiId))&&_.E(_.E(this.hostElement).querySelector("#input")).appendChild(_.SH.createEmoji(c,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.f.setText=function(a){this.setLiveChatRichMessageInput(a?{textSegments:[{text:a}]}:null)};
_.f.calculateTextBeforeRange=function(a){var b="",c=a.startContainer;if(c&&c instanceof Text){var d;b=((d=c.textContent)==null?void 0:d.substring(0,a.startOffset))||"";c=c.previousSibling}for(;c&&c instanceof Text;)b=c.textContent+b,c=c.previousSibling;return b.replace(YH," ")};
_.f.calculateLiveChatRichMessageInput=function(){for(var a=[],b="",c=_.E(_.E(this.hostElement).querySelector("#input")).childNodes,d=0;d<c.length;d++){var e=c[d];e instanceof Text?b+=e.textContent:e instanceof HTMLImageElement&&(e.dataset.emojiId?(b&&(a.push({text:b.replace(YH," ")}),b=""),a.push({emojiId:e.dataset.emojiId})):b+=e.alt)}b&&a.push({text:b.replace(YH," ")});if(c=_.E(this.hostElement).querySelector("#overflow-text")){b="";c=c.childNodes;for(d=0;d<c.length;d++)e=c[d],e instanceof Text?
b+=e.textContent:e instanceof HTMLImageElement&&(e.dataset.emojiId?(b&&(a.push({text:b.replace(YH," ")}),b=""),a.push({emojiId:e.dataset.emojiId})):b+=e.alt);b&&a.push({text:b.replace(YH," ")})}return{textSegments:a}};
_.f.computeCharacterCount=function(a){if(!a||!a.textSegments)return 0;for(var b=0,c=0;c<a.textSegments.length;c++){var d=a.textSegments[c];if(d.text)b+=d.text.length;else if(d.emojiId){var e=void 0;if((e=this.data)==null?0:e.emojiCharacterCount)b+=this.data.emojiCharacterCount;else{var g=e=void 0,k=void 0;b+=((g=_.QH(_.SH,(e=d)==null?void 0:e.emojiId))==null?void 0:(k=g.shortcuts)==null?void 0:k[0].length)||0}}}return b};
_.f.characterCountChanged=function(){_.io(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.f.focusedChanged=function(){this.hostElement.dispatchEvent(new _.WH("focused-changed",this.focused))};
_.f.focus=function(){this.setFocus(!1)};
_.f.focusAtEnd=function(){this.setFocus(!0)};
_.f.setFocus=function(a){a=a?this.getRangeAtEnd():this.getInputRange();_.E(this.hostElement).querySelector("#input").focus();var b=window.getSelection();b&&(b.removeAllRanges(),b.addRange(a))};
_.f.insertEmoji=function(a){var b,c=((a==null?0:a.isCustomEmoji)?(b=a.shortcuts)==null?void 0:b[0]:a==null?void 0:a.emojiId)||"";this.insertText(c)};
_.f.computeText=function(a){if(!a||!a.textSegments)return"";for(var b="",c=0;c<a.textSegments.length;c++){var d=a.textSegments[c];if(d.text)b+=d.text;else if(d.emojiId){var e=void 0,g=void 0,k=void 0;b+=((g=_.QH(_.SH,(e=d)==null?void 0:e.emojiId))==null?void 0:(k=g.shortcuts)==null?void 0:k[0])||""}}return b};
_.f.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.Um.Object.defineProperties(CRb.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.maxCharacterLimit)||0}},
characterCount:{configurable:!0,enumerable:!0,get:function(){return this.computeCharacterCount(this.liveChatRichMessageInput)}},
remainingCharacterCount:{configurable:!0,enumerable:!0,get:function(){return this.maxCharacterLimit-this.characterCount}},
hasText:{configurable:!0,enumerable:!0,get:function(){return this.characterCount>0}},
isInputValid:{configurable:!0,enumerable:!0,get:function(){return this.characterCount===0?this.isValidWithNoInputText:this.characterCount<=this.maxCharacterLimit}}});
var ZH=CRb;ZH.prototype.focusedChanged=ZH.prototype.focusedChanged;ZH.prototype.characterCountChanged=ZH.prototype.characterCountChanged;ZH.prototype.onSuggestion=ZH.prototype.onSuggestion;ZH.prototype.onMessageSet=ZH.prototype.onMessageSet;ZH.prototype.dataChanged=ZH.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],ZH.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],ZH.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],ZH.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],ZH.prototype,"disabled",void 0);_.U([_.K("disabled"),_.W("design:type",Number),_.W("design:paramtypes",[])],ZH.prototype,"inputTabIndex",null);
_.U([_.K("data.maxCharacterLimit"),_.O({readOnly:!0,notify:!0}),_.W("design:type",Number),_.W("design:paramtypes",[])],ZH.prototype,"maxCharacterLimit",null);_.U([_.K("liveChatRichMessageInput"),_.O({readOnly:!0,notify:!0}),_.W("design:type",Number),_.W("design:paramtypes",[])],ZH.prototype,"characterCount",null);_.U([_.K("maxCharacterLimit, characterCount"),_.O({readOnly:!0,notify:!0}),_.W("design:type",Number),_.W("design:paramtypes",[])],ZH.prototype,"remainingCharacterCount",null);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],ZH.prototype,"isChatMessageInput",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],ZH.prototype,"inputExpanded",void 0);_.U([_.O({readOnly:!0,notify:!0}),_.W("design:type",Object)],ZH.prototype,"liveChatRichMessageInput",void 0);_.U([_.O(),_.W("design:type",Object)],ZH.prototype,"messageInput",void 0);_.U([_.O(),_.W("design:type",Boolean)],ZH.prototype,"ignoreColorMapping",void 0);
_.U([_.K("characterCount"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ZH.prototype,"hasText",null);_.U([_.O(),_.W("design:type",Object)],ZH.prototype,"isValidWithNoInputText",void 0);_.U([_.K("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.O(),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ZH.prototype,"isInputValid",null);_.U([_.O({readOnly:!0,value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],ZH.prototype,"focused",void 0);
_.U([_.O(),_.W("design:type",Array)],ZH.prototype,"suggestions",void 0);_.U([_.O(),_.W("design:type",_.PH)],ZH.prototype,"emojiManager",void 0);_.U([_.O(),_.W("design:type",_.XH)],ZH.prototype,"participantsManager",void 0);_.U([_.O(),_.W("design:type",Boolean)],ZH.prototype,"noUnderline",void 0);_.U([_.O(),_.W("design:type",Object)],ZH.prototype,"inputMethodEditorActive",void 0);_.U([_.ir("#dropdown"),_.W("design:type",Object)],ZH.prototype,"dropdown",void 0);
_.U([_.ir("#input"),_.W("design:type",HTMLElement)],ZH.prototype,"input",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZH.prototype,"dataChanged",null);_.U([_.N("messageInput"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZH.prototype,"onMessageSet",null);
_.U([_.M("yt-live-chat-select-suggestion"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ZH.prototype,"onSuggestion",null);_.U([_.N("characterCount"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZH.prototype,"characterCountChanged",null);_.U([_.N("focused"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZH.prototype,"focusedChanged",null);
ZH=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],ZH);
_.DRb=_.S(ZH,"yt-live-chat-text-input-field-renderer",function(){if(uRb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_renderer.yt.live.chat.text.input.field.renderer.css.js--\x3e<label id="label" class="style-scope yt-live-chat-text-input-field-renderer">[[getSimpleString(data.placeholder)]]</label>\n<div id="input" aria-label$="[[getSimpleString(data.placeholder)]]" aria-invalid$="[[!isInputValid]]" contenteditable="" tabindex$="[[inputTabIndex]]" on-blur="onBlur" on-dragenter="preventDrag" on-dragleave="preventDrag" on-dragover="preventDrag" on-drop="preventDrag" on-focus="onFocus" on-input="onInputChange" on-keydown="onKeyDown" on-keypress="onKeyPress" on-keyup="onKeyUp" on-paste="onInputPaste" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n<div id="underline" hidden$="[[noUnderline]]" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="unfocused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n  <div id="focused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n</div>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="24" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="dropdown-content" class="dropdown-content style-scope yt-live-chat-text-input-field-renderer" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;tRb===void 0&&(tRb=document.createElement("template"));var d=tRb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);uRb=a}a=uRb;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var ERb=function(){var a=_.P.apply(this,arguments)||this;a.buttonOverrides={style:"overlay",type:"filled"};a.allowAnimations=!1;a.modern=_.w("web_button_rework_with_live");a.noPadding=!1;return a};
_.z(ERb,_.P);_.f=ERb.prototype;_.f.shouldSupportInlineActionButtons=function(){return!0};
_.f.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{liveChatPaidMessageFooterRenderer:"yt-live-chat-paid-message-footer-renderer"}},"data.buyButton":{id:"lower-buy-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.buyFlowButton":{id:"buy-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}},
"data.pdgLikeButton":{id:"like-button",mapping:{pdgLikeViewModel:{component:"yt-live-chat-like-button-view-model"}}},"data.replyButton":{id:"reply-button",mapping:{pdgReplyButtonViewModel:{component:"yt-live-chat-reply-button-view-model"}}},"data.leaderboardBadge":{id:"leaderboard-badge",mapping:{buttonViewModel:{component:"yt-button-view-model"}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}}}};
_.f.ready=function(){var a=document.querySelector("yt-live-chat-app");a&&a.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.f.attached=function(){this.allowAnimations=!1};
_.f.dataChanged=function(){if(this.data){var a={"--yt-live-chat-paid-message-primary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyBackgroundColor),"--yt-live-chat-paid-message-secondary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerBackgroundColor),"--yt-live-chat-paid-message-header-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerTextColor),"--yt-live-chat-paid-message-timestamp-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.timestampColor),
"--yt-live-chat-paid-message-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyTextColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.authorNameTextColor),"--yt-live-chat-text-input-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.textInputBackgroundColor)};_.fr(this.hostElement,a);this.allowAnimations=!0}};
_.f.messageChanged=function(){var a,b=(a=this.data)==null?void 0:a.message;a=_.E(_.E(this.hostElement).querySelector("#message"));a.textContent="";b&&a.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(b))};
_.f.computeShowOnlyHeader=function(a,b){return!a||a.pdgLikeButton||a.replyButton||a.buyFlowButton?!1:this.isEmpty(a,b)&&!a.footer};
_.f.computeShowFooterDivider=function(a,b,c){return a?!!a.footer&&!this.isEmpty(a,b)&&!c:!1};
_.f.computeIsUserEditable=function(a){return!!a.inputField};
_.f.computeHasHeartButton=function(a){return(a==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(a==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(a==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.f.computeNoveltyImage=function(a){if(a.headerOverlayImage&&a.headerOverlayImage.thumbnails.length){var b=a.headerOverlayImage.thumbnails[0],c,d;if((c=a.pdgPurchasedNoveltyLoggingDirectives)==null?0:(d=c.loggingDirectives)==null?0:d.trackingParams){var e,g;vTa((e=a.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(g=e.loggingDirectives)==null?void 0:g.trackingParams)}return b.width||0}return 0};
_.f.computeAuthorPhotoSize=function(a){return(a==null?0:a.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.f.inputFocus=function(){var a=_.E(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");a&&a.focus()};
_.f.inputInsertEmoji=function(a){var b=_.E(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");b&&b.insertEmoji(a)};
_.f.inputMessage=function(){var a=_.E(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),b;return a&&((b=this.data)==null?0:b.inputField)?(a.completeEmojis(),_.Mt(a.liveChatRichMessageInput)):null};
_.f.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.f.isEmpty=function(a,b){return a?a.empty||!(a.message||a.inputField||b):!0};
_.f.onLowerBuyButtonClick=function(){var a,b=_.y((a=this.data)==null?void 0:a.buyButton,_.RE);b&&b.trackingParams&&!JPa(b.command)&&(a=_.ps(b.trackingParams))&&(b=_.En())&&_.Xo(b,a)};
_.f.shouldSupportWholeItemClick=function(){return!0};
_.Um.Object.defineProperties(ERb.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
var $H=ERb;$H.prototype.isDeletedChanged=$H.prototype.isDeletedChanged;$H.prototype.messageChanged=$H.prototype.messageChanged;$H.prototype.dataChanged=$H.prototype.dataChanged;_.U([_.H(MNb.YtPdgLiveChatItemBehavior),_.W("design:type",Object)],$H.prototype,"ytPdgLiveChatItemBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$H.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.MG),_.W("design:type",Object)],$H.prototype,"ytLiveChatReduxBehavior",void 0);
_.U([_.H(_.TH.YtLiveChatItemBehavior),_.W("design:type",_.UH)],$H.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],$H.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],$H.prototype,"data",void 0);_.U([_.O({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:tTa}),_.W("design:type",Object)],$H.prototype,"engagementState",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.W("design:type",Boolean)],$H.prototype,"isUserEditable",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.W("design:type",Boolean)],$H.prototype,"hasHeartButton",void 0);_.U([_.O({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.W("design:type",Boolean)],$H.prototype,"showOnlyHeader",void 0);
_.U([_.O({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.W("design:type",Boolean)],$H.prototype,"showFooterDivider",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Object)],$H.prototype,"allowAnimations",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],$H.prototype,"dashboardMoneyFeed",void 0);_.U([_.O({computed:"computeNoveltyImage(data)"}),_.W("design:type",Number)],$H.prototype,"noveltyWidth",void 0);
_.U([_.O({computed:"computeAuthorPhotoSize(data)"}),_.W("design:type",Number)],$H.prototype,"authorPhotoSize",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$H.prototype,"modern",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$H.prototype,"noPadding",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$H.prototype,"dataChanged",null);
_.U([_.N("data.message"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$H.prototype,"messageChanged",null);_.U([_.K("data","dashboardMoneyFeed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$H.prototype,"hideLowerBumper",null);_.U([_.N("isDeleted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$H.prototype,"isDeletedChanged",null);
$H=_.U([_.Q({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],$H);
_.S($H,"yt-live-chat-paid-message-renderer",function(){if(FQb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_renderer.yt.live.chat.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="header" class="style-scope yt-live-chat-paid-message-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="author-photo" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n    </template>\n    <template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-message-renderer">\n      </yt-img-shadow>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="single-line" class="style-scope yt-live-chat-paid-message-renderer">\n          <div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-live-chat-author-chip>\n          </div>\n          <div id="leaderboard-badge" class="leaderboard-badge style-scope yt-live-chat-paid-message-renderer"></div>\n          <div id="purchase-amount-column" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-img-shadow id="currency-img" height="16" hidden$="[[!data.currencyImage.thumbnailDetails]]" thumbnail="[[data.currencyImage.thumbnailDetails]]" width="16" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-img-shadow>\n            <div id="purchase-amount" class="style-scope yt-live-chat-paid-message-renderer">\n              <yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n            </div>\n          </div>\n        </div>\n      </div>\n      <span id="timestamp" class="style-scope yt-live-chat-paid-message-renderer">[[timestampString]]</span>\n      <div id="gradient-container" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="gradient" class="style-scope yt-live-chat-paid-message-renderer"></div>\n      </div>\n      <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-message-renderer">\n          <yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="creator-heart-button" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-paid-message-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-paid-message-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" message-input="[[messageInput]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-paid-message-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n    <div id="footer" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="action-buttons" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="like-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="reply-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="buy-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="lower-buy-button" hidden$="[[!data.buyButton]]" on-click="onLowerBuyButtonClick" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-paid-message-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;EQb===void 0&&(EQb=document.createElement("template"));var d=EQb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);FQb=a}a=FQb;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var FRb;var GRb;var HRb=function(){var a=_.kr.apply(this,arguments)||this;a._noAccessors=!0;return a};
_.z(HRb,_.kr);HRb.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.Fi("openPopupConfig")};
var IRb=HRb;_.U([_.H(_.pH.YtOpenPopupBehavior),_.W("design:type",Object)],IRb.prototype,"ytOpenPopupBehavior",void 0);IRb=_.U([_.lr()],IRb);_.aI=[_.pH.YtOpenPopupBehavior,IRb.prototype];var JRb;var Tt=[_.oq,Azb,_.OE,_.rq,_.Un,_.IAb,_.uq,_.NEb,_.Uw,qUa];_.w("web_watch_get_updated_metadata_response_processing")&&Tt.push(_.dFb);_.w("web_continuation_response_processing")&&Tt.push(_.Jt);var l8a=new _.jB("RESPONSE_RECEIVED_COMMANDS"),mUa=new _.jB("RESPONSE_RECEIVED_COMMANDS");var fUa="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),eUa=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],dUa=["GET_UNSEEN_NOTIFICATION_COUNT"];var bI=function(){var a=_.kr.apply(this,arguments)||this;a._noAccessors=!0;a.serviceEndpointHandlers=[];return a};
_.z(bI,_.kr);bI.prototype.created=function(){var a=this;this.endpointHandlerActionMap={"yt-service-request":function(b,c,d,e){var g;return cUa(a.hostElement,b,c,d,e,a.serviceEndpointHandlers,(g=a.onEntitiesUpdated)==null?void 0:g.bind(a))}}};
bI.prototype.attached=function(){_.Ml(_.Ll.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
bI.prototype.detached=function(){_.Nl(_.Ll.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
var KRb=bI;KRb=_.U([_.lr()],KRb);_.LRb=[KRb.prototype];var MRb,NRb=function(){return MRb!==void 0?MRb:MRb=document.createElement("template")};
document.head.appendChild(NRb().content);var ORb;var PRb=document.head,QRb=PRb.appendChild,RRb;if(ORb===void 0){var SRb=document.createElement("template");_.B(SRb,"\x3c!--css-build:shady--\x3e");SRb.content.insertBefore(NRb().content.cloneNode(!0),SRb.content.firstChild);ORb=SRb}RRb=ORb;QRb.call(PRb,RRb.content);var TRb,URb=function(){return TRb!==void 0?TRb:TRb=document.createElement("template")};
document.head.appendChild(URb().content);var VRb;var WRb=document.head,XRb=WRb.appendChild,YRb;if(VRb===void 0){var ZRb=document.createElement("template");_.B(ZRb,"\x3c!--css-build:shady--\x3e");ZRb.content.insertBefore(URb().content.cloneNode(!0),ZRb.content.firstChild);VRb=ZRb}YRb=VRb;XRb.call(WRb,YRb.content);_.Ft("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.Ft("sharingRendererButtons","buttonRenderer","ytd-button-renderer");var $Rb=_.w("web_button_rework")&&_.Gi("BUTTON_REWORK")||_.w("web_button_rework_with_live"),aSb=function(){var a=_.P.apply(this,arguments)||this;a.isPressed=!1;a.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return a};
_.z(aSb,_.P);_.f=aSb.prototype;_.f.created=function(){this.showTooltips=!0};
_.f.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.f.onHintIdChanged=function(){var a=this,b,c,d=(b=this.ytButtonBehavior.data)==null?void 0:(c=b.hint)==null?void 0:c.hintRenderer;if(d&&d.hintId){b=_.mo(this.hostElement,"yt-get-opened-popups-action");b=(b&&b.length===1?b[0]:[]).length>0;var e=null;d.hintId!=="sponsor-pre-purchase"||b?d.hintId.startsWith("sponsor-post-purchase")&&!b?e=YKb("membership-manage"):d.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!b&&(e=YKb("membership-freebie-join")):e=YKb("membership-join");e&&_.zk.addLowPriorityJob(function(){for(var g=
_.h(e),k=g.next();!k.done;k=g.next())a.ytComponentBehavior.resolveCommand(k.value)})}};
_.f.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.f.onYtNavigate=function(a){var b=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(a.detail.endpoint);b&&(a.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(b))};
_.f.onYtServiceRequestSent=function(a,b){this.handleServiceRequestActions(b);_.io(this.hostElement,"yt-service-request-sent-button-renderer")};
_.f.onServiceRequestCompleted=function(a,b){this.handleServiceRequestActions(b);_.io(this.hostElement,"yt-service-request-completed-button-renderer")};
_.f.updateButton=function(a){var b;if(a=(b=_.y(a,hAb))==null?void 0:b.updatedButton)this.ytButtonBehavior.data=_.y(a,_.RE)};
_.f.handleUpdateButtonAction=function(a){var b=this.ytButtonBehavior.data;b.targetId&&a.updateButtonAction.targetId&&b.targetId===a.updateButtonAction.targetId&&this.updateButton(a)};
_.f.handleServiceRequestActions=function(a){if(a=a.actions)for(var b=0;b<a.length;b++)this.updateButton(a[b])};
_.Um.Object.defineProperties(aSb,{template:{configurable:!0,enumerable:!0,get:function(){if(JRb===void 0){var a=document.createElement("template");_.B(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);JRb=a}a=JRb;return a}}});
_.cI=aSb;_.cI.prototype.onServiceRequestCompleted=_.cI.prototype.onServiceRequestCompleted;_.cI.prototype.onYtServiceRequestSent=_.cI.prototype.onYtServiceRequestSent;_.cI.prototype.onYtNavigate=_.cI.prototype.onYtNavigate;_.cI.prototype.onPressedStateChanged=_.cI.prototype.onPressedStateChanged;_.cI.prototype.onHintIdChanged=_.cI.prototype.onHintIdChanged;_.U([_.O(),_.W("design:type",Object)],_.cI.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],_.cI.prototype,"isPressed",void 0);
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],_.cI.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.WPb.YtButtonBehavior),_.W("design:type",Object)],_.cI.prototype,"ytButtonBehavior",void 0);_.U([_.H(_.aI),_.W("design:type",Object)],_.cI.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],_.cI.prototype,"ytComponentBehavior",void 0);
_.U([_.H(uH.YtRenderButtonBehavior),_.W("design:type",Object)],_.cI.prototype,"ytRenderButtonBehavior",void 0);_.U([_.N("data.hint.hintRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],_.cI.prototype,"onHintIdChanged",null);_.U([_.N("isPressed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],_.cI.prototype,"onPressedStateChanged",null);
_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],_.cI.prototype,"onYtNavigate",null);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Nt]),_.W("design:returntype")],_.cI.prototype,"onYtServiceRequestSent",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Vt]),_.W("design:returntype")],_.cI.prototype,"onServiceRequestCompleted",null);_.cI=_.U([_.Q({is:"ytd-button-renderer",disableElementRegistration:$Rb})],_.cI);var bSb=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.w("web_button_rework_with_live");a.buttonOverrides={style:"overlay",type:"filled"};return a};
_.z(bSb,_.P);_.f=bSb.prototype;_.f.configureRendererStamper=function(){return{"data.buyButton":{id:"buy-flow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}}}};
_.f.ready=function(){var a=document.querySelector("yt-live-chat-app");a&&a.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.f.dataChanged=function(){if(this.data&&this.data.sticker){var a=_.Us(this.data.sticker.thumbnails,this.stickerWidth);a||_.tUa(a).thenCatch(function(){_.Dl(new _.qj("Failed to load Super Sticker with url",a))})}};
_.f.computeAuthorPhotoSize=function(a){return(a==null?0:a.isV2Style)?32:40};
_.f.computeIsV2Style=function(a){return(a==null?0:a.isV2Style)?!0:!1};
_.f.onStickerLoaded=function(a){var b,c,d;(b=_.Sq(a))==null||(c=b.parentNode)==null||(d=c.classList)==null||d.add("sticker-loaded")};
_.f.computeNoveltyImageWidth=function(a){var b,c;if(a==null?0:(b=a.headerOverlayImage)==null?0:(c=b.thumbnails)==null?0:c.length){b=a.headerOverlayImage.thumbnails[0];var d,e;if((d=a.pdgPurchasedNoveltyLoggingDirectives)==null?0:(e=d.loggingDirectives)==null?0:e.trackingParams){var g,k;vTa((g=a.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(k=g.loggingDirectives)==null?void 0:k.trackingParams)}return b.width||0}return 0};
_.f.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.f.updateStickerStyles=function(){var a=this.data;a&&(a={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(a.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(a.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(a.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(a.authorNameTextColor)},
_.fr(this.hostElement,a))};
_.f.onBuyButtonClick=function(){var a,b=_.y((a=this.data)==null?void 0:a.buyButton,_.RE);b&&!JPa(b.command)&&this.ytRendererBehavior.logExplicitClick(b)};
_.f.shouldSupportWholeItemClick=function(){return!0};
_.Um.Object.defineProperties(bSb.prototype,{stickerWidth:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
stickerHeight:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
hasHeartButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.creatorHeartButton}},
hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
var dI=bSb;dI.prototype.updateStickerStyles=dI.prototype.updateStickerStyles;dI.prototype.isDeletedChanged=dI.prototype.isDeletedChanged;dI.prototype.onStickerLoaded=dI.prototype.onStickerLoaded;dI.prototype.dataChanged=dI.prototype.dataChanged;_.U([_.H(MNb.YtPdgLiveChatItemBehavior),_.W("design:type",Object)],dI.prototype,"ytPdgLiveChatItemBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],dI.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],dI.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.TH.YtLiveChatItemBehavior),_.W("design:type",_.UH)],dI.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],dI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],dI.prototype,"data",void 0);
_.U([_.O({computed:"computeAuthorPhotoSize(data)"}),_.W("design:type",Number)],dI.prototype,"authorPhotoSize",void 0);_.U([_.O(),_.W("design:type",Boolean)],dI.prototype,"isDeleted",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],dI.prototype,"dashboardMoneyFeed",void 0);_.U([_.O({computed:"computeNoveltyImageWidth(data)"}),_.W("design:type",Number)],dI.prototype,"noveltyWidth",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],dI.prototype,"modern",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.W("design:type",Boolean)],dI.prototype,"isV2Style",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dI.prototype,"dataChanged",null);_.U([_.M("yt-img-shadow-loaded"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],dI.prototype,"onStickerLoaded",null);
_.U([_.K("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],dI.prototype,"stickerWidth",null);_.U([_.K("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],dI.prototype,"stickerHeight",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],dI.prototype,"hasHeartButton",null);_.U([_.K("data","dashboardMoneyFeed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],dI.prototype,"hideLowerBumper",null);
_.U([_.N("isDeleted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dI.prototype,"isDeletedChanged",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dI.prototype,"updateStickerStyles",null);dI=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],dI);
_.S(dI,"yt-live-chat-paid-sticker-renderer",function(){if(GRb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-sticker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_sticker_renderer.yt.live.chat.paid.sticker.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-info" tabindex="0" class="style-scope yt-live-chat-paid-sticker-renderer"><template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-paid-sticker-renderer" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]"></yt-img-shadow></template><template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></template><template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></template><div id="content" class="style-scope yt-live-chat-paid-sticker-renderer"><span id="timestamp" hidden$="[[!data.timestampUsec]]" class="style-scope yt-live-chat-paid-sticker-renderer">[[timestampString]]</span><div id="content-primary-column" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-live-chat-author-chip></div><span id="price-column" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-formatted-string id="purchase-amount-chip" text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string></span></div></div></div><div id="sticker-container" hidden$="[[!data.sticker]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="sticker" height="[[stickerHeight]]" hidden$="[[!data.sticker]]" notify-on-loaded="" tabindex="0" thumbnail="[[data.sticker]]" width="[[stickerWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></div><yt-formatted-string id="dashboard-deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></yt-icon-button></div><div id="gradient-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="gradient" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="creator-heart-button" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="buy-flow-button" hidden$="[[!data.buyButton]]" on-click="onBuyButtonClick" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="inline-action-button-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;FRb===void 0&&(FRb=document.createElement("template"));var d=FRb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);GRb=a}a=GRb;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var cSb;var dSb;var eSb,fSb=function(){return eSb!==void 0?eSb:eSb=document.createElement("template")};
document.head.appendChild(fSb().content);var gSb,hSb=function(){return gSb!==void 0?gSb:gSb=document.createElement("template")};
document.head.appendChild(hSb().content);var iSb;var jSb,kSb=function(){return jSb!==void 0?jSb:jSb=document.createElement("template")};
document.head.appendChild(kSb().content);var lSb;var mSb=document.head,nSb=mSb.appendChild,oSb;if(lSb===void 0){var pSb=document.createElement("template");_.B(pSb,"\x3c!--css-build:shady--\x3e");pSb.content.insertBefore(kSb().content.cloneNode(!0),pSb.content.firstChild);lSb=pSb}oSb=lSb;nSb.call(mSb,oSb.content);var qSb=document.head,rSb=qSb.appendChild,sSb;if(iSb===void 0){var eI=document.createElement("template");_.B(eI,"\x3c!--css-build:shady--\x3e");eI.content.insertBefore(hSb().content.cloneNode(!0),eI.content.firstChild);eI.content.insertBefore(fSb().content.cloneNode(!0),eI.content.firstChild);iSb=eI}sSb=iSb;rSb.call(qSb,sSb.content);var fI=function(){var a=_.kr.apply(this,arguments)||this;a.focusedIndex=0;a.verticalOffset=0;a.verticalAlign="top";a.dynamicAlign=!0;return a};
_.z(fI,_.kr);fI.prototype.emojiUrl=function(a){a=_.QH(this.emojiManager,a);if(!a)return"";var b;a=(b=a.image)==null?void 0:b.thumbnails;return _.Us(a,24)||""};
var tSb=function(a){var b;a.emojiVariants&&(b=a.data)!=null&&b.target&&_.Qm(a,function(){a.set("verticalOffset",-1*a.hostElement.clientHeight);var c=_.E(a.hostElement).querySelector("img");c&&c.focus()})};
_.f=fI.prototype;_.f.onKeyboardEnter=function(){};
_.f.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.f.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.f.onKeyDown=function(a){switch(a.keyCode){case 13:this.onKeyboardEnter();a.preventDefault();break;case 40:this.changeFocus(1);a.preventDefault();break;case 38:this.changeFocus(-1);a.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.f.onYtEmojiSelect=function(a){var b=this,c,d,e,g,k,m,n,r;return _.l(function(t){if(t.nextAddress==1)return d=(c=b.data)==null?void 0:c.emoji,k=((e=d)==null?void 0:e.stickyPrefId)||((g=d)==null?void 0:g.emojiId),n=(m=a.detail)==null?void 0:m.emojiId,k&&n&&k!==n?_.p(t,(r=b.emojiManager)==null?void 0:pRb(r,d,n),2):t.return();_.lo(b.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[d,n]);_.ue(t)})};
_.f.changeFocus=function(a){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+a+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(a=_.E(this.hostElement).querySelector("#variants"))&&a.children[this.focusedIndex].focus())};
_.Um.Object.defineProperties(fI.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
var gI=fI;gI.prototype.onYtEmojiSelect=gI.prototype.onYtEmojiSelect;gI.prototype.onKeyDown=gI.prototype.onKeyDown;gI.prototype.onEmojiVariantsChanged=gI.prototype.onEmojiVariantsChanged;gI.prototype.onVerticalOffsetOrPositionTargetChanged=gI.prototype.onVerticalOffsetOrPositionTargetChanged;_.U([_.H(_.bE),_.W("design:type",Object)],gI.prototype,"ironOverlayBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],gI.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",_.PH)],gI.prototype,"emojiManager",void 0);_.U([_.O(),_.W("design:type",Object)],gI.prototype,"emojiVariants",void 0);_.U([_.O(),_.W("design:type",Object)],gI.prototype,"focusedIndex",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],gI.prototype,"positionTarget",null);_.U([_.O({reflectToAttribute:!0}),_.K("verticalOffset","data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],gI.prototype,"isPositioned",null);
_.U([_.O(),_.W("design:type",Object)],gI.prototype,"verticalOffset",void 0);_.U([_.O(),_.W("design:type",Object)],gI.prototype,"verticalAlign",void 0);_.U([_.O(),_.W("design:type",Object)],gI.prototype,"dynamicAlign",void 0);_.U([_.N("verticalOffset","positionTarget"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gI.prototype,"onVerticalOffsetOrPositionTargetChanged",null);
_.U([_.N("emojiVariants"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gI.prototype,"onEmojiVariantsChanged",null);_.U([_.M("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],gI.prototype,"onKeyDown",null);_.U([_.M("yt-emoji-select"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype",Promise)],gI.prototype,"onYtEmojiSelect",null);gI=_.U([_.lr()],gI);var uSb=[gI.prototype];var vSb;var wSb;var xSb=/medium-light|medium-dark|light|medium|dark/,ySb=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,zSb=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),ASb=function(){var a=_.P.apply(this,arguments)||this;a.userSelection={left:null,right:null};a.scrollAction="lock";a.isEmojiDraftInProgress=!1;return a};
_.z(ASb,_.P);_.f=ASb.prototype;_.f.onClick=function(a){a=_.Sq(a);a instanceof HTMLImageElement&&this.selectOrUpdateEmoji(a)};
_.f.selectOrUpdateEmoji=function(a){var b=a.getAttribute("selection");b&&(b==="default"?_.io(this.hostElement,"yt-emoji-select",_.QH(this.emojiManager,a.id)):b==="left"?this.userSelection=Object.assign({},this.userSelection,{left:a.src}):b==="right"?this.userSelection=Object.assign({},this.userSelection,{right:a.src}):b==="user"&&this.userSelection.left&&this.userSelection.right&&_.io(this.hostElement,"yt-emoji-select",_.QH(this.emojiManager,a.id)))};
_.f.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.f.onMultiSelectorThumbnailRowChanged=function(){var a,b,c;((a=this.data)==null?0:(b=a.emoji)==null?0:(c=b.multiSelectorThumbnailRow)==null?0:c.length)&&this.openSelector()};
_.f.getThumbnailFromEmojiRow=function(a){var b,c;return(a==null?void 0:(b=a.thumbnails)==null?void 0:(c=b[0])==null?void 0:c.url)||""};
_.f.getEmojiAltTextForPartialSelector=function(a){var b;return((b=this.getThumbnailFromEmojiRow(a).match(ySb))==null?void 0:b[0])||""};
_.f.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.f.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.f.getRowSelection=function(a){return["left","right"][a]};
_.f.getIdFromComposedEmoji=function(a){return(a==null?void 0:a.emojiId)||""};
_.f.getEmojiFromPartialSelections=function(a,b){if(!a&&!b)return null;var c,d,e=(c=this.data)==null?void 0:(d=c.emoji)==null?void 0:d.variantIds;if(!e||!e.length)return null;var g;a=(g=a.match(xSb))==null?void 0:g[0];var k;b=(k=b.match(xSb))==null?void 0:k[0];if(!a||!b)return null;var m=zSb.get(a);k=zSb.get(b);if(m===k){k=Array.from(zSb.values()).filter(function(r){return r!==m}).join("|");
var n=new RegExp("^((?!("+k+")).)*"+m+"$")}else n=new RegExp(m+".*"+k);return(e=e.find(function(r){return n.test(r)}))&&_.QH(this.emojiManager,e)||null};
_.f.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var a,b=this.ytEmojiSelectorBehavior.emojiUrl(((a=this.data.emoji)==null?void 0:a.emojiId)||"");_.E(this.hostElement).querySelector('[selection="user"]').src.includes(b)||(this.isEmojiDraftInProgress=!0)}};
_.f.onDomChange=function(){tSb(this.ytEmojiSelectorBehavior)};
_.f.getFocusableElements=function(){return _.E(this.hostElement).querySelectorAll("img").filter(function(a){return a.getAttribute("role")==="option"})};
_.f.changeFocus=function(a){var b=this.getFocusableElements();b!=null&&b.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+a+b.length)%b.length,this.ytEmojiSelectorBehavior.focusedIndex<b.length&&(a=b[this.ytEmojiSelectorBehavior.focusedIndex])&&a.focus())};
_.f.onKeyboardEnter=function(){var a=this.getFocusableElements();a!=null&&a.length&&(a=a[this.ytEmojiSelectorBehavior.focusedIndex])&&a instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(a),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.Um.Object.defineProperties(ASb.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var a=this,b,c,d;return this.emojiManager&&((b=this.data)==null?0:(c=b.emoji)==null?0:(d=c.variantIds)==null?0:d.length)?this.data.emoji.variantIds.map(function(e){return!!e&&_.QH(a.emojiManager,e)}).filter(function(e){return!!e}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var a,b=(a=this.userSelection)==null?void 0:a.left,c;a=(c=this.userSelection)==null?void 0:c.right;return b&&a?this.getEmojiFromPartialSelections(b,a):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.composedEmojiSelection)==null?0:a.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var b;a=(b=this.userSelection)==null?void 0:b.left;var c;b=(c=this.userSelection)==null?void 0:c.right;if(!a&&!b){var d;return this.ytEmojiSelectorBehavior.emojiUrl(((d=this.data.emoji)==null?void 0:d.emojiId)||"")}return a&&!b?a:!a&&b?b:""}}});
var hI=ASb;hI.prototype.onMultiSelectorThumbnailRowChanged=hI.prototype.onMultiSelectorThumbnailRowChanged;hI.prototype.onClick=hI.prototype.onClick;_.U([_.H(_.bE),_.W("design:type",Object)],hI.prototype,"ironOverlayBehavior",void 0);_.U([_.H(uSb),_.W("design:type",Object)],hI.prototype,"ytEmojiSelectorBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],hI.prototype,"data",void 0);_.U([_.O(),_.W("design:type",_.PH)],hI.prototype,"emojiManager",void 0);
_.U([_.O(),_.W("design:type",Object)],hI.prototype,"userSelection",void 0);_.U([_.O(),_.W("design:type",Object)],hI.prototype,"scrollAction",void 0);_.U([_.O(),_.W("design:type",Object)],hI.prototype,"isEmojiDraftInProgress",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],hI.prototype,"emojiVariants",null);_.U([_.K("data","userSelection"),_.W("design:type",Object),_.W("design:paramtypes",[])],hI.prototype,"composedEmojiSelection",null);
_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[MouseEvent]),_.W("design:returntype")],hI.prototype,"onClick",null);_.U([_.N("data.emoji.multiSelectorThumbnailRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hI.prototype,"onMultiSelectorThumbnailRowChanged",null);_.U([_.K("data","userSelection","composedEmojiSelection"),_.W("design:type",String),_.W("design:paramtypes",[])],hI.prototype,"draftEmojiUrl",null);
hI=_.U([_.wr({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],hI);
_.S(hI,"yt-emoji-multi-person-selector",function(){if(wSb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-multi-person-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_multi_person_selector.yt.emoji.multi.person.selector.css.js--\x3e<div id="options" class="style-scope yt-emoji-multi-person-selector">\n  <template is="dom-repeat" id="repeat" items="[[data.emoji.multiSelectorThumbnailRow]]" notify-dom-change="" as="row" index-as="rowIndex" on-dom-change="onDomChange" class="style-scope yt-emoji-multi-person-selector">\n    <div class="variant-thumbnail-row style-scope yt-emoji-multi-person-selector">\n      <template is="dom-repeat" id="thumbnail-row-repeat" items="[[row.thumbnails]]" as="thumbnail" class="style-scope yt-emoji-multi-person-selector">\n        \n        <img height="24" role="option" alt="[[getEmojiAltTextForPartialSelector(thumbnail)]]" src$="[[getThumbnailFromEmojiRow(thumbnail)]]" tabindex="-1" width="24" selection$="[[getRowSelection(rowIndex)]]" class="style-scope yt-emoji-multi-person-selector">\n      </template>\n    </div>\n  </template>\n</div>\n<div id="selections" class="style-scope yt-emoji-multi-person-selector">\n\n  <img id="[[data.emoji.emojiId]]" class="default-selection style-scope yt-emoji-multi-person-selector" alt="[[data.emoji.emojiId]]" height="36" role="option" src$="[[emojiUrl(data.emoji.emojiId)]]" tabindex="-1" width="36" selection="default">\n  <img id$="[[getIdFromComposedEmoji(composedEmojiSelection)]]" class="user-selection style-scope yt-emoji-multi-person-selector" is-draft$="[[isEmojiDraftInProgress]]" alt="[[getEmojiAltTextForDraftEmoji(composedEmojiSelection)]]" height="36" role$="[[getDraftEmojiAriaRole(composedEmojiSelection)]]" src$="[[draftEmojiUrl]]" selection="user" tabindex="-1" width="36" on-load="onUserSelectionSrcLoad">\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;vSb===void 0&&(vSb=document.createElement("template"));var d=vSb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);wSb=a}a=wSb;return a},{mode:2});var BSb;var CSb;var DSb=function(){var a=_.P.apply(this,arguments)||this;a.tooltip_=null;return a};
_.z(DSb,_.P);_.f=DSb.prototype;_.f.dataChanged_=function(){var a;if((a=this.data)==null?0:a.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.E(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.er)(this.tooltip_).textContent=this.data.tooltip};
_.f.computeTargetId=function(){var a;return((a=this.data)==null?void 0:a.targetId)||""};
_.f.computeId_=function(a){return a};
_.f.computeIcon_=function(a){return _.es(a)};
_.f.onTap_=function(){this.active=!this.active;_.io(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.f.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.WH("active-changed",this.active))};
_.Um.Object.defineProperties(DSb.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var a,b;if((a=this.data)==null?0:(b=a.icon)==null?0:b.iconType)return this.data.icon.iconType==="SUPER_STICKER";var c,d;return((c=this.data)==null?void 0:(d=c.icon)==null?void 0:d.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
var iI=DSb;iI.prototype.activeChangedForBinding=iI.prototype.activeChangedForBinding;iI.prototype.dataChanged_=iI.prototype.dataChanged_;_.U([_.H(_.NG.YtLiveChatTooltipTargetingBehavior),_.W("design:type",Object)],iI.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],iI.prototype,"data",void 0);_.U([_.O({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.W("design:type",String)],iI.prototype,"id",void 0);
_.U([_.O({computed:"computeTargetId(data.targetId)"}),_.W("design:type",String)],iI.prototype,"targetId",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],iI.prototype,"active",void 0);_.U([_.O({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.W("design:type",String)],iI.prototype,"icon",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iI.prototype,"dataChanged_",null);
_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iI.prototype,"iconFilled",null);_.U([_.N("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iI.prototype,"activeChangedForBinding",null);iI=_.U([_.wr({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],iI);
_.S(iI,"yt-emoji-picker-category-button-renderer",function(){if(CSb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_button_renderer.yt.emoji.picker.category.button.renderer.css.js--\x3e<yt-icon-button id="button" label="[[data.accessibility.accessibilityData.label]]" on-tap="onTap_" class="style-scope yt-emoji-picker-category-button-renderer">\n  <yt-icon default-to-filled="[[iconFilled]]" icon="[[icon]]" class="style-scope yt-emoji-picker-category-button-renderer"></yt-icon>\n</yt-icon-button>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;BSb===void 0&&(BSb=document.createElement("template"));var d=BSb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);CSb=a}a=CSb;return a},{mode:2});var ESb;var FSb;var GSb=function(){var a=_.P.apply(this,arguments)||this;a.ariaLabel=null;a.ariaActivedescendant=null;a.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};a.JSC$11862_ignoreNextFocus_=!1;a.longPressTimeoutId=-1;return a};
_.z(GSb,_.P);_.f=GSb.prototype;_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.f.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.f.emojiChanged_=function(){this.changeFocus_(0,!1);for(var a=_.ls(),b=0;b<this.emoji.length;b++){var c={veType:88013,elementIndex:b},d=this.emoji[b];d.isCustomEmoji&&(d=document.querySelector(("#"+d.emojiId).replace("/","\\/")))&&(c=_.ks(a,c))&&(d.visualElement=c)}};
_.f.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.f.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.f.emojiSkinToneChanged_=function(a){this.skinTone=a};
_.f.dataChanged=function(){this.data&&this.data.emojiData&&lRb(this.emojiManager,this.data.emojiData)};
_.f.emojiUrl=function(a){a=this.getEmoji(a);if(!a)return"";var b;a=(b=a.image)==null?void 0:b.thumbnails;return _.Us(a,24)||""};
_.f.emojiAlt=function(a){var b=this.get("image.accessibility.accessibilityData.label",a);return b?b:a.isCustomEmoji?a.shortcuts[0]:a.emojiId};
_.f.emojiAriaLabel=function(a){return a.shortcuts?a.shortcuts[0]:""};
_.f.emojiAriaSelected=function(a,b,c){return a&&c==b?"true":"false"};
_.f.getEmoji=function(a){if(this.emojiManager)return this.shouldUseStickyPreferences?nRb(this.emojiManager,a):RH(this.emojiManager,a)};
_.f.computeId_=function(a){return a.categoryId||""};
_.f.computeEmoji=function(a){var b=this;return this.emojiManager?a.emojiIds?a.emojiIds.map(function(c){return c?_.QH(b.emojiManager,c):null}).filter(uUa):a.emojiData?a.emojiData.map(function(c){var d=!!c.emojiId&&_.QH(b.emojiManager,c.emojiId);
return d?Object.assign({},d,c):null}).filter(uUa):[]:[]};
_.f.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.f.computeAriaLabel_=function(a){return _.Wp(a)};
_.f.computeAriaActivedescendant_=function(a,b){return a&&a[b]?a[b].emojiId||"":""};
_.f.handleLongPressEmojiWithVariants=function(a,b){this.changeFocusToEmoji(a.emojiId,!1);this.openVariantSelector(a,b)};
_.f.onMouseDown=function(a){var b=this;this.hostElement!==document.activeElement&&(this.JSC$11862_ignoreNextFocus_=!0);if(a.button===0){var c=_.Sq(a);if(c instanceof HTMLImageElement){var d=_.E(this.hostElement).querySelector("#repeat").itemForElement(c);this.emojiContainsVariants(d)&&(this.longPressTimeoutId=setTimeout(function(){b.handleLongPressEmojiWithVariants(d,c)},500))}}};
_.f.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.f.onFocus=function(){this.JSC$11862_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11862_ignoreNextFocus_=!1};
_.f.onBlur_=function(){this.showFocus=!1};
_.f.emojiContainsVariants=function(a){return!!(a&&a.variantIds&&a.variantIds.length)};
_.f.onClick=function(a){clearTimeout(this.longPressTimeoutId);a=_.Sq(a);if(a instanceof HTMLImageElement){var b=a.id;this.changeFocusToEmoji(b,!1);var c=this.getEmoji(b),d;if(d=this.shouldUseStickyPreferences&&this.emojiContainsVariants(c)){var e;d=!((e=this.emojiManager.emojiMap[b])!=null&&e.stickyPrefId)}d?(e=_.E(this.hostElement).querySelector("#repeat").itemForElement(a),this.openVariantSelector(e,a)):_.io(this.hostElement,"yt-emoji-select",c)}};
_.f.isActiveEmojiWithVariants=function(a,b){return a&&b?b.stickyPrefId?a===b.stickyPrefId:a===b.emojiId:!1};
_.f.onCloseEmojiVariantSelector=function(a){this.activeEmojiWithVariantsId===a&&(this.activeEmojiWithVariantsId="")};
_.f.onMouseOver_=function(a){a=_.Sq(a);a instanceof HTMLImageElement&&_.io(this.hostElement,"yt-emoji-hover",_.QH(this.emojiManager,a.id))};
_.f.changeFocus_=function(a,b){this.focusedIndex=(this.focusedIndex+a+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(a=this.emoji[this.focusedIndex],b&&(this.showFocus=!0,_.E(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.io(this.hostElement,"yt-emoji-hover",a)))};
_.f.changeFocusToEmoji=function(a,b){if(a){var c=this.emoji.findIndex(function(d){return d.emojiId===a});
c!==-1&&this.changeFocus_(c-this.focusedIndex,b)}};
_.f.onKeyDown_=function(a){switch(a.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var b=this.emoji[this.focusedIndex];if(b&&b.emojiId){if(this.emojiContainsVariants(b)){var c=_.E(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(b,c)}else _.io(this.hostElement,"yt-emoji-select",RH(this.emojiManager,b.emojiId)),this.hostElement.focus();a.preventDefault()}}break;case 40:this.changeFocus_(1,!0);a.preventDefault();break;case 38:this.changeFocus_(-1,!0),a.preventDefault()}};
_.f.onEmojiStickyPreferenceChanged=function(a,b){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&a.emojiId&&a.variantIds&&a.variantIds.includes(b)&&this.activeEmojiWithVariantsId!==b&&this.setStickyEmojiPreference(a.emojiId,b)};
_.f.openVariantSelector=function(a,b){this.activeEmojiWithVariantsId=a.stickyPrefId||a.emojiId||"";_.io(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:a,target:b})};
_.f.setStickyEmojiPreference=function(a,b){if(this.data){var c=this.emoji.findIndex(function(e){return e.emojiId===a});
if(c!==-1){var d=this.emoji[c];d.stickyPrefId=b;this.set("emoji."+c,Object.assign({},d));this.activeEmojiWithVariantsId=b}}};
var jI=GSb;jI.prototype.onKeyDown_=jI.prototype.onKeyDown_;jI.prototype.onMouseOver_=jI.prototype.onMouseOver_;jI.prototype.onClick=jI.prototype.onClick;jI.prototype.onBlur_=jI.prototype.onBlur_;jI.prototype.onFocus=jI.prototype.onFocus;jI.prototype.onMouseUp=jI.prototype.onMouseUp;jI.prototype.onMouseDown=jI.prototype.onMouseDown;jI.prototype.dataChanged=jI.prototype.dataChanged;jI.prototype.disableIncrementalLoadingChanged_=jI.prototype.disableIncrementalLoadingChanged_;
jI.prototype.emojiManagerChanged_=jI.prototype.emojiManagerChanged_;jI.prototype.emojiChanged_=jI.prototype.emojiChanged_;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],jI.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],jI.prototype,"data",void 0);_.U([_.O({computed:"computeId_(data)"}),_.W("design:type",String)],jI.prototype,"id",void 0);_.U([_.O({computed:"computeEmoji(data)"}),_.W("design:type",Array)],jI.prototype,"emoji",void 0);
_.U([_.O(),_.W("design:type",Number)],jI.prototype,"skinTone",void 0);_.U([_.O(),_.W("design:type",_.PH)],jI.prototype,"emojiManager",void 0);_.U([_.O(),_.W("design:type",Boolean)],jI.prototype,"disableIncrementalLoading",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],jI.prototype,"focusedIndex",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],jI.prototype,"showFocus",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.W("design:type",Object)],jI.prototype,"ariaLabel",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.W("design:type",Object)],jI.prototype,"ariaActivedescendant",void 0);_.U([_.O({value:60}),_.W("design:type",Number)],jI.prototype,"domRepeatTargetFramerate",void 0);_.U([_.O({value:1}),_.W("design:type",Number)],jI.prototype,"domRepeatInitialCount",void 0);
_.U([_.O({value:""}),_.W("design:type",String)],jI.prototype,"activeEmojiWithVariantsId",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],jI.prototype,"shouldUseStickyPreferences",void 0);_.U([_.N("emoji"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jI.prototype,"emojiChanged_",null);_.U([_.N("emojiManager"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jI.prototype,"emojiManagerChanged_",null);
_.U([_.N("disableIncrementalLoading"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jI.prototype,"disableIncrementalLoadingChanged_",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jI.prototype,"dataChanged",null);_.U([_.M("mousedown"),_.W("design:type",Function),_.W("design:paramtypes",[Object]),_.W("design:returntype")],jI.prototype,"onMouseDown",null);
_.U([_.M("mouseup"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jI.prototype,"onMouseUp",null);_.U([_.M("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jI.prototype,"onFocus",null);_.U([_.M("blur"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jI.prototype,"onBlur_",null);
_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],jI.prototype,"onClick",null);_.U([_.M("mouseover"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],jI.prototype,"onMouseOver_",null);_.U([_.M("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],jI.prototype,"onKeyDown_",null);
jI=_.U([_.wr({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],jI);
_.S(jI,"yt-emoji-picker-category-renderer",function(){if(FSb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_renderer.yt.emoji.picker.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-category-renderer"></yt-formatted-string><div class$="[[data.categoryType]] style-scope yt-emoji-picker-category-renderer" id="emoji" role="listbox" aria-label="[[computeAriaLabel_(data.title)]]"><template is="dom-repeat" id="repeat" items="[[emoji]]" initial-count="[[domRepeatInitialCount]]" target-framerate="[[domRepeatTargetFramerate]]" class="style-scope yt-emoji-picker-category-renderer"><img id="[[item.emojiId]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" contains-variants$="[[emojiContainsVariants(item)]]" height="24" is-active-emoji-with-variants$="[[isActiveEmojiWithVariants(activeEmojiWithVariantsId, item)]]" loading$="[[emojiLoading()]]" role="option" src$="[[emojiUrl(item.emojiId, skinTone)]]" width="24" class="style-scope yt-emoji-picker-category-renderer"></template></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;ESb===void 0&&(ESb=document.createElement("template"));var d=ESb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);FSb=a}a=FSb;return a},{mode:2});var HSb;var ISb;var JSb;var KSb;var LSb=function(){var a=_.P.apply(this,arguments)||this;a.ariaLabel=null;a.ariaActivedescendant=null;a.getFormattedStringRawText=_.Wp;a.JSC$11868_ignoreNextFocus_=!1;return a};
_.z(LSb,_.P);_.f=LSb.prototype;_.f.attached=function(){this.hostElement.hasAttribute("aria-live")||this.hostElement.setAttribute("aria-live","polite");this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.f.emojiUrl=function(a){var b,c;a=(b=RH(this.emojiManager,a,!0))==null?void 0:(c=b.image)==null?void 0:c.thumbnails;return _.Us(a,24)||""};
_.f.emojiAlt=function(a){var b=this.get("image.accessibility.accessibilityData.label",a);return b?b:a.isCustomEmoji?a.shortcuts[0]:a.emojiId};
_.f.emojiId=function(a){return"emoji"+a};
_.f.computeId_=function(a){return a.categoryId||""};
_.f.computeAriaActivedescendant_=function(a){return this.emoji&&a<this.emoji.length?this.emojiId(a):""};
_.f.emojiChanged_=function(){this.changeFocus_(0,!1);for(var a=_.ls(),b=0;b<this.emoji.length;b++){var c={veType:88013,elementIndex:b},d=this.emoji[b];d.isCustomEmoji&&(d=document.querySelector(("#"+d.emojiId).replace("/","\\/")))&&(c=_.ks(a,c))&&(d.visualElement=c)}};
_.f.computeEmoji_=function(a){var b=this;return this.emojiManager?a.emojiIds.map(function(c){return _.QH(b.emojiManager,c,!0)}).filter(vUa):[]};
_.f.titleOffsetChanged_=function(){var a=this.hostElement.getBoundingClientRect(),b=_.E(this.hostElement).querySelector("#title").getBoundingClientRect();a=Math.max(0,Math.min(this.titleOffset,a.height-b.height));_.E(this.hostElement).querySelector("#title").style.top=a+"px"};
_.f.onEmojiMouseOver_=function(a){_.io(this.hostElement,"yt-emoji-hover",a.model.item)};
_.f.onEmojiTap_=function(a){this.data.command&&(a=DTa(_.v().resolve(_.Xi(Jl)),this.data.command,a),_.io(this.hostElement,"yt-navigate",a))};
_.f.emojiAriaLabel=function(a){return a.shortcuts[0]};
_.f.emojiAriaSelected=function(a,b,c){return a&&c==b?"true":"false"};
_.f.changeFocus_=function(a,b){var c=this.emoji.length;this.focusedIndex=(this.focusedIndex+a+c)%c;a=this.emoji[this.focusedIndex];if(b){var d;(d=_.E(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||d.scrollIntoView(!1);_.io(this.hostElement,"yt-emoji-hover",a)}};
_.f.onMouseDown_=function(){this.JSC$11868_ignoreNextFocus_=!0};
_.f.onFocus_=function(){this.JSC$11868_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11868_ignoreNextFocus_=!1};
_.f.onBlur_=function(){this.showFocus=!1};
_.f.onKeyDown_=function(a){switch(a.keyCode){case 13:this.onEmojiTap_(a);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);a.preventDefault();break;case 38:this.changeFocus_(-1,!0),a.preventDefault()}};
var kI=LSb;kI.prototype.onKeyDown_=kI.prototype.onKeyDown_;kI.prototype.onBlur_=kI.prototype.onBlur_;kI.prototype.onFocus_=kI.prototype.onFocus_;kI.prototype.onMouseDown_=kI.prototype.onMouseDown_;kI.prototype.onEmojiTap_=kI.prototype.onEmojiTap_;kI.prototype.titleOffsetChanged_=kI.prototype.titleOffsetChanged_;kI.prototype.emojiChanged_=kI.prototype.emojiChanged_;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],kI.prototype,"ytComponentBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],kI.prototype,"data",void 0);_.U([_.O({computed:"computeId_(data)"}),_.W("design:type",String)],kI.prototype,"id",void 0);_.U([_.O({computed:"computeEmoji_(data)"}),_.W("design:type",Array)],kI.prototype,"emoji",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],kI.prototype,"titleOffset",void 0);_.U([_.O({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.W("design:type",Object)],kI.prototype,"ariaLabel",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.W("design:type",Object)],kI.prototype,"ariaActivedescendant",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],kI.prototype,"showFocus",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],kI.prototype,"focusedIndex",void 0);_.U([_.O(),_.W("design:type",_.PH)],kI.prototype,"emojiManager",void 0);
_.U([_.N("emoji"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kI.prototype,"emojiChanged_",null);_.U([_.N("titleOffset"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kI.prototype,"titleOffsetChanged_",null);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],kI.prototype,"onEmojiTap_",null);
_.U([_.M("mousedown"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kI.prototype,"onMouseDown_",null);_.U([_.M("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kI.prototype,"onFocus_",null);_.U([_.M("blur"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kI.prototype,"onBlur_",null);
_.U([_.M("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],kI.prototype,"onKeyDown_",null);kI=_.U([_.wr({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],kI);
_.S(kI,"yt-emoji-picker-upsell-category-renderer",function(){if(KSb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-upsell-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_upsell_category_renderer.yt.emoji.picker.upsell.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-upsell-category-renderer"></yt-formatted-string><div id="emoji" class="style-scope yt-emoji-picker-upsell-category-renderer"><template is="dom-repeat" id="repeat" items="[[emoji]]" class="style-scope yt-emoji-picker-upsell-category-renderer"><div class="style-scope yt-emoji-picker-upsell-category-renderer"><img id="[[emojiId(index)]]" on-mouseover="onEmojiMouseOver_" shared-tooltip-text$="[[data.emojiTooltip]]" src$="[[emojiUrl(item.emojiId)]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" role="option" class="style-scope yt-emoji-picker-upsell-category-renderer"><svg viewBox="0 0 24 24" class="style-scope yt-emoji-picker-upsell-category-renderer"><path id="lock-border" d="M18.3809524 6.80952784c1.6455246.45922361 2.8571428 1.97242785 2.8571428 3.76190076v9.5238095C21.2380952 22.2474266 19.4855219 24 17.3333333 24H5.9047619C3.75257336 24 2 22.2474266 2 20.0952381v-9.5238095c0-1.78947291 1.21161828-3.30267715 2.85714286-3.76190076v-.04762308C4.85714286 3.02876383 7.88590669 0 11.6190476 0c3.7331409 0 6.7619048 3.02876383 6.7619048 6.76190476v.04762308z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path><path d="M17.3333333 8.66666667c1.0476191 0 1.9047619.85714285 1.9047619 1.90476193v9.5238095c0 1.047619-.8571428 1.9047619-1.9047619 1.9047619H5.9047619C4.85714286 22 4 21.1428571 4 20.0952381v-9.5238095c0-1.04761908.85714286-1.90476193 1.9047619-1.90476193h.95238096V6.76190476C6.85714286 4.13333333 8.99047619 2 11.6190476 2c2.6285714 0 4.7619048 2.13333333 4.7619048 4.76190476v1.90476191h.9523809zm-5.7142857 8.57142853c1.0476191 0 1.9047619-.8571428 1.9047619-1.9047619 0-1.047619-.8571428-1.9047619-1.9047619-1.9047619-1.047619 0-1.90476189.8571429-1.90476189 1.9047619 0 1.0476191.85714289 1.9047619 1.90476189 1.9047619zm2.952381-8.57142853V6.76190476c0-1.62857143-1.3238096-2.95238095-2.952381-2.95238095-1.62857141 0-2.95238093 1.32380952-2.95238093 2.95238095v1.90476191h5.90476193z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path></svg></div></template></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;JSb===void 0&&(JSb=document.createElement("template"));var d=JSb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);KSb=a}a=KSb;return a},{mode:2});var MSb;var NSb;var OSb=function(){var a=_.P.apply(this,arguments)||this;a.scrollAction="lock";a.verticalAlign="top";return a};
_.z(OSb,_.P);_.f=OSb.prototype;_.f.onClick=function(a){a=_.Sq(a);a instanceof HTMLImageElement&&_.io(this.hostElement,"yt-emoji-select",_.QH(this.emojiManager,a.id))};
_.f.openSelector=function(){this.ironOverlayBehavior.open()};
_.f.onDomChange=function(){tSb(this.ytEmojiSelectorBehavior)};
_.f.computeIsFamilySelector=function(a){var b;return(a==null?void 0:(b=a.emoji)==null?void 0:b.emojiId)==="\ud83d\udc6a"};
_.f.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var a=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];a&&a.emojiId&&(_.io(this.hostElement,"yt-emoji-select",_.QH(this.emojiManager,a.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.Um.Object.defineProperties(OSb.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var a=this,b,c,d;return this.emojiManager&&((b=this.data)==null?0:(c=b.emoji)==null?0:(d=c.variantIds)==null?0:d.length)?this.data.emoji.variantIds.map(function(e){return!!e&&_.QH(a.emojiManager,e)}).filter(function(e){return!!e}):[]}}});
var lI=OSb;lI.prototype.onClick=lI.prototype.onClick;_.U([_.H(_.bE),_.W("design:type",Object)],lI.prototype,"ironOverlayBehavior",void 0);_.U([_.H(uSb),_.W("design:type",Object)],lI.prototype,"ytEmojiSelectorBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],lI.prototype,"data",void 0);_.U([_.O(),_.W("design:type",_.PH)],lI.prototype,"emojiManager",void 0);_.U([_.O(),_.W("design:type",Object)],lI.prototype,"scrollAction",void 0);
_.U([_.O(),_.W("design:type",Object)],lI.prototype,"verticalAlign",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.W("design:type",Boolean)],lI.prototype,"isFamilySelector",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],lI.prototype,"emojiVariants",null);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[MouseEvent]),_.W("design:returntype")],lI.prototype,"onClick",null);
lI=_.U([_.wr({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],lI);
_.S(lI,"yt-emoji-variant-selector",function(){if(NSb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-variant-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_variant_selector.yt.emoji.variant.selector.css.js--\x3e<div role="listbox" id="variants" class="style-scope yt-emoji-variant-selector">\n    <template is="dom-repeat" id="repeat" items="[[emojiVariants]]" notify-dom-change="" on-dom-change="onDomChange" class="style-scope yt-emoji-variant-selector">\n      \n      <img id="[[item.emojiId]]" alt="[[item.emojiId]]" height="24" role="option" tabindex="-1" src$="[[emojiUrl(item.emojiId)]]" width="24" class="style-scope yt-emoji-variant-selector">\n    </template>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;MSb===void 0&&(MSb=document.createElement("template"));var d=MSb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);NSb=a}a=NSb;return a},{mode:2});var PSb=/:/g,QSb=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],RSb=function(){var a=_.P.apply(this,arguments)||this;a.emojiVariantSelector=null;a.emojiMultiPersonSelector=null;a.identity=_.Ma;a.lastAnimationTime_=0;a.animationStart_=null;a.animationEnd_=null;return a};
_.z(RSb,_.P);_.f=RSb.prototype;
_.f.configureRendererStamper=function(){return{categories:{id:"categories",mapping:{emojiPickerCategoryRenderer:{component:"yt-emoji-picker-category-renderer",properties:{disableIncrementalLoading:"[[disableIncrementalLoading]]",emojiManager:"[[emojiManager]]",shouldUseStickyPreferences:"[[shouldUseStickyPreferences]]"}},emojiPickerUpsellCategoryRenderer:{component:"yt-emoji-picker-upsell-category-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},categoryButtons:{id:"category-buttons",mapping:{emojiPickerCategoryButtonRenderer:"yt-emoji-picker-category-button-renderer"}},
emojiVariantSelector:{id:"emoji-variant-selector",mapping:{ytEmojiVariantSelector:{component:"yt-emoji-variant-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1},emojiMultiPersonSelector:{id:"emoji-multi-person-selector",mapping:{ytEmojiMultiPersonSelector:{component:"yt-emoji-multi-person-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1}}};
_.f.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.SH)};
_.f.attached=function(){_.xx&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&mRb(this.emojiManager)};
_.f.dataChanged=function(){var a;if((a=this.data)==null?0:a.categories){a=this.emojiManager;var b=this.getCustomEmojiIds();a.pickerCustomEmojiIds=[].concat(_.De(gRb),_.De(b))}};
_.f.getCustomEmojiIds=function(){var a,b=(a=this.data.categories)==null?void 0:a.find(function(g){var k;return((k=g.emojiPickerCategoryRenderer)==null?void 0:k.categoryId)&&QSb.includes(g.emojiPickerCategoryRenderer.categoryId)}),c;
a=(c=this.data.categories)==null?void 0:c.find(function(g){return g.emojiPickerUpsellCategoryRenderer});
var d,e;return[b==null?void 0:(d=b.emojiPickerCategoryRenderer)==null?void 0:d.emojiIds,a==null?void 0:(e=a.emojiPickerUpsellCategoryRenderer)==null?void 0:e.emojiIds].flat().filter(function(g){return!!g})};
_.f.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.f.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.f.updateCategoriesAndPlaceholderInternal=function(a,b){var c=this;a&&b&&(this.categories=a.categories||[],this.categoryButtons=a.categoryButtons||[],this.resetPlaceholder(),this.search="",_.Er(function(){c.updateButtons_()}))};
_.f.computeId_=function(a){return a.id||""};
_.f.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(a){return a.emojiPickerCategoryRenderer&&a.emojiPickerCategoryRenderer.emojiData}):!1};
_.f.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.f.onShowEmojiVariantSelector=function(a){var b=a.detail.emojiData;b.variantIds&&b.variantIds.length&&(b.multiSelectorThumbnailRow&&b.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:b,target:a.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:b,target:a.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.f.onIronOverlayClosed=function(a){var b=nRb(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");b&&a.composedPath&&(a.composedPath().includes(_.E(this.hostElement).querySelector("#emoji-variant-selector"))||a.composedPath().includes(_.E(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.lo(this.hostElement,"yt-close-emoji-variant-selector",[b.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.f.onEmojiVariantSelectorMouseup=function(a){var b=a.target.firstChild;this.variantSelectorOpened&&b&&_.Er(function(){b.noCancelOnOutsideClick=!1},100)};
_.f.onEmojiVariantSelectorMousedown=function(a){a=a.target.firstChild;this.variantSelectorOpened&&a&&(a.noCancelOnOutsideClick=!1)};
_.f.onSelectCategory_=function(a){var b=this.search!="";this.search="";for(var c=_.E(this.hostElement).querySelector("#categories").children,d=0;d<c.length;d++){var e=c[d];if(e.id==a.detail.categoryId){b?(_.E(this.hostElement).querySelector("#categories").scrollTop=e.offsetTop,this.updateButtons_()):(this.animationStart_=_.E(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=e.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.f.onEmojiHover_=function(a){this.placeholder=a.detail.shortcuts?a.detail.shortcuts[0]:""};
_.f.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.f.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.f.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.f.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.f.computeSearchCategory_=function(a){a=a.replace(PSb,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();a=a.split(" ");for(var b=[],c=this.emojiManager.emojis,d=0;d<c.length;d++){var e=c[d];if(e.searchTerms)for(var g=0;g<e.searchTerms.length;g++){for(var k=e.searchTerms[g].toLocaleLowerCase(),m=!1,n=0;n<a.length;n++)if(k.indexOf(a[n])!=-1){m=!0;break}if(m&&(!e.isCustomEmoji||!e.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(e.emojiId))){b.push(e.emojiId);
break}}}return{categoryId:-1,emojiIds:b}};
_.f.computeSearchEmptyMessage_=function(a,b){return a&&b&&b.emojiIds&&b.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.f.computeSearching_=function(a){return this.emojiManager&&a.replace(PSb,"").length>1};
_.f.computeSkinToneHidden=function(){var a;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((a=this.data)==null||!a.hideSkinTonePicker)};
_.f.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.f.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.f.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.f.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.f.selectSkinTone_=function(a){a=Number(a.target.getAttribute("tone"));this.set("emojiManager.skinTone",a);_.lo(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[a]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.f.skinToneChanged_=function(){_.E(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var a=_.E(this.hostElement).querySelector("#dropdown-content").children,b=0;b<a.length;b++)b===this.skinTone?a[b].setAttribute("selected",""):a[b].removeAttribute("selected")};
_.f.animateScroll_=function(a){this.lastAnimationTime_||(this.lastAnimationTime_=a);a-=this.lastAnimationTime_;a<200?(_.E(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*a/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.E(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.f.searchChanged_=function(){this.updateButtons_()};
_.f.updateButtons_=function(){var a=null;if(!this.search)for(var b=_.E(this.hostElement).querySelector("#categories").scrollTop,c=_.E(this.hostElement).querySelector("#categories").children,d=0;d<c.length;d++){var e=c[d];e.offsetTop<=b&&(a=e.id)}b=_.E(this.hostElement).querySelector("#category-buttons").children;for(c=0;c<b.length;c++)d=b[c],d.active=d.id===a};
var mI=RSb;mI.prototype.searchChanged_=mI.prototype.searchChanged_;mI.prototype.skinToneChanged_=mI.prototype.skinToneChanged_;mI.prototype.onEmojiHover_=mI.prototype.onEmojiHover_;mI.prototype.onSelectCategory_=mI.prototype.onSelectCategory_;mI.prototype.onShowEmojiVariantSelector=mI.prototype.onShowEmojiVariantSelector;mI.prototype.updateCategoriesAndPlaceholder_=mI.prototype.updateCategoriesAndPlaceholder_;mI.prototype.dataChanged=mI.prototype.dataChanged;
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],mI.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],mI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],mI.prototype,"data",void 0);_.U([_.O({value:function(){return[]}}),
_.W("design:type",Array)],mI.prototype,"categories",void 0);_.U([_.O({value:function(){return[]}}),
_.W("design:type",Array)],mI.prototype,"categoryButtons",void 0);_.U([_.O({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.W("design:type",Boolean)],mI.prototype,"disableScroll",void 0);_.U([_.O({computed:"computeId_(data)",reflectToAttribute:!0}),_.W("design:type",String)],mI.prototype,"id",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],mI.prototype,"selected",void 0);
_.U([_.O({value:!1}),_.W("design:type",Boolean)],mI.prototype,"disableIncrementalLoading",void 0);_.U([_.O(),_.W("design:type",String)],mI.prototype,"placeholder",void 0);_.U([_.O({value:""}),_.W("design:type",String)],mI.prototype,"search",void 0);_.U([_.O({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.W("design:type",Boolean)],mI.prototype,"searching",void 0);_.U([_.O({computed:"computeSearchCategory_(search)"}),_.W("design:type",Object)],mI.prototype,"searchCategory",void 0);
_.U([_.O({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.W("design:type",Object)],mI.prototype,"searchEmptyMessage",void 0);_.U([_.O({computed:"identity(emojiManager.skinTone)"}),_.W("design:type",Number)],mI.prototype,"skinTone",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],mI.prototype,"skinToneOpened",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],mI.prototype,"variantSelectorOpened",void 0);
_.U([_.O({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.W("design:type",Boolean)],mI.prototype,"skinToneHidden",void 0);_.U([_.O(),_.W("design:type",_.PH)],mI.prototype,"emojiManager",void 0);_.U([_.O(),_.W("design:type",Object)],mI.prototype,"emojiVariantSelector",void 0);_.U([_.O(),_.W("design:type",Object)],mI.prototype,"emojiMultiPersonSelector",void 0);
_.U([_.O({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.W("design:type",Boolean)],mI.prototype,"shouldUseStickyPreferences",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mI.prototype,"dataChanged",null);_.U([_.N("data","selected"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mI.prototype,"updateCategoriesAndPlaceholder_",null);
_.U([_.M("yt-show-emoji-variant-selector"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],mI.prototype,"onShowEmojiVariantSelector",null);_.U([_.M("yt-emoji-picker-select-category"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],mI.prototype,"onSelectCategory_",null);_.U([_.M("yt-emoji-hover"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],mI.prototype,"onEmojiHover_",null);
_.U([_.N("skinTone"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mI.prototype,"skinToneChanged_",null);_.U([_.N("search"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mI.prototype,"searchChanged_",null);mI=_.U([_.wr({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],mI);
_.S(mI,"yt-emoji-picker-renderer",function(){if(ISb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_renderer.yt.emoji.picker.renderer.css.js--\x3e<div id="search-panel" class="style-scope yt-emoji-picker-renderer"><tp-yt-paper-input id="search" no-label-float="" placeholder="[[placeholder]]" use-v2-underline="" value="{{search}}" on-blur="onSearchBoxBlur_" on-focus="onSearchBoxFocused_" class="style-scope yt-emoji-picker-renderer"></tp-yt-paper-input><yt-icon-button id="clear-search" hidden="[[!search]]" label="[[data.clearSearchLabel]]" on-tap="clearSearch" class="style-scope yt-emoji-picker-renderer"><yt-icon icon="close" class="style-scope yt-emoji-picker-renderer"></yt-icon></yt-icon-button><button id="skin-tone" aria-label$="[[getSimpleString(data.pickSkinToneText)]]" hidden="[[skinToneHidden]]" on-mouseout="resetPlaceholder" on-mouseover="showSkinTonePlaceholder" on-tap="openSkinToneSelector" selected="" class="style-scope yt-emoji-picker-renderer"></button><tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" horizontal-align="right" horizontal-offset="8" no-auto-focus="" opened="{{skinToneOpened}}" vertical-align="top" vertical-offset="8" class="style-scope yt-emoji-picker-renderer"><div id="dropdown-content" class="dropdown-content style-scope yt-emoji-picker-renderer" slot="dropdown-content"><button aria-label$="[[data.skinToneGenericLabel]]" on-tap="selectSkinTone_" tone="0" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneLightLabel]]" on-tap="selectSkinTone_" tone="1" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLightLabel]]" on-tap="selectSkinTone_" tone="2" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLabel]]" on-tap="selectSkinTone_" tone="3" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumDarkLabel]]" on-tap="selectSkinTone_" tone="4" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneDarkLabel]]" on-tap="selectSkinTone_" tone="5" class="style-scope yt-emoji-picker-renderer"></button></div></tp-yt-iron-dropdown></div><div id="category-buttons" class="style-scope yt-emoji-picker-renderer"></div><yt-emoji-picker-category-renderer id="search-category" data="[[searchCategory]]" emoji-manager="[[emojiManager]]" should-use-sticky-preferences="[[shouldUseStickyPreferences]]" skin-tone="[[skinTone]]" class="style-scope yt-emoji-picker-renderer"></yt-emoji-picker-category-renderer><yt-formatted-string id="search-empty" hidden="[[!searchEmptyMessage]]" text="[[searchEmptyMessage]]" class="style-scope yt-emoji-picker-renderer"></yt-formatted-string><div id="categories-wrapper" class="style-scope yt-emoji-picker-renderer"><div id="categories" on-mouseout="onMouseoutCategories" on-scroll="onScroll_" class="style-scope yt-emoji-picker-renderer"></div></div><div id="emoji-variant-selector" hidden="[[!emojiVariantSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div><div id="emoji-multi-person-selector" hidden="[[!emojiMultiPersonSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;HSb===void 0&&(HSb=document.createElement("template"));var d=HSb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);ISb=a}a=ISb;return a},{mode:2});var SSb=function(){var a=_.P.apply(this,arguments)||this;a.emojiManager=_.SH;a.isDarkTheme=document.documentElement.hasAttribute("dark");a.selectedIndex=1;a.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return a};
_.z(SSb,_.P);_.f=SSb.prototype;_.f.handleEmojiCustomizationVisible=function(a){this.emojiPickerRenderer.selected=a;this.selectedIndex=1;a?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.f.emojiCustomizationSetChanged=function(){var a;(a=this.data)!=null&&a.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.bb(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.f.updateSaveButtonState=function(a){var b;(b=this.data)!=null&&b.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.wu("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:a}))};
_.f.emojiUrl=function(a){a=_.QH(this.emojiManager,a);if(!a)return"";var b;a=(b=a.image)==null?void 0:b.thumbnails;return _.Us(a,24)||""};
_.f.emojiAlt=function(a){var b=_.QH(this.emojiManager,a);if(!b)return a;var c,d,e,g=(b==null?void 0:(c=b.image)==null?void 0:(d=c.accessibility)==null?void 0:(e=d.accessibilityData)==null?void 0:e.label)||"";return g?g:b.isCustomEmoji?b.shortcuts[0]:b.emojiId||a};
_.f.emojiAriaLabel=function(a){var b,c;return((b=_.QH(this.emojiManager,a))==null?void 0:(c=b.shortcuts)==null?void 0:c[0])||a};
_.f.onEmojiClick=function(a){a.model.index!==0&&(this.selectedIndex=a.model.index)};
_.f.onEmojiSelect=function(a){a=a.detail;var b,c;((b=this.data)==null?0:b.emojiCustomizationSetEntityKey)&&((c=this.emojiCustomizationSet)==null?0:c.emojiId)&&a.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,a.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.wu("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,a.emojiId,this.selectedIndex)}))};
_.f.canEditEmoji=function(a,b,c){a=a.indexOf(b);return a===c||a===0||c===0?!1:!0};
_.f.getUpdatedEmojiIdList=function(a,b,c){var d=a.indexOf(b);a=[].concat(_.De(a));d>=0&&(a[d]=a[c]);a[c]=b;return a};
_.Um.Object.defineProperties(SSb,{template:{configurable:!0,enumerable:!0,get:function(){if(dSb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-customization-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_customization_panel_view_model.yt.emoji.customization.panel.view.model.css.js--\x3e<yt-attributed-string id="description-text" data="[[data.descriptionText]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-attributed-string>\n<div id="fab-container" class="style-scope yt-emoji-customization-panel-view-model">\n  <div id="expanded-buttons" class="style-scope yt-emoji-customization-panel-view-model">\n    <template is="dom-repeat" id="repeat" items="[[emojiCustomizationSet.emojiId]]" class="style-scope yt-emoji-customization-panel-view-model">\n      <button class="reaction-button style-scope yt-emoji-customization-panel-view-model" emoji-selected$="[[equals(selectedIndex, index)]]" on-click="onEmojiClick" disabled$="[[equals(index, 0)]]">\n        <img id="[[index]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" height="24" role="option" src$="[[emojiUrl(item)]]" width="24" class="style-scope yt-emoji-customization-panel-view-model">\n      </button>\n    </template>\n  </div>\n</div>\n<yt-button-view-model data="[[data.resetButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-emoji-customization-panel-view-model">\n</yt-button-view-model>\n<yt-emoji-picker-renderer data="[[data.emojiPicker.emojiPickerRenderer]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-emoji-picker-renderer>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;cSb===void 0&&(cSb=document.createElement("template"));var d=cSb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);dSb=a}a=dSb;return a}}});
var nI=SSb;nI.prototype.onEmojiSelect=nI.prototype.onEmojiSelect;_.U([_.H(_.MG),_.W("design:type",Object)],nI.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],nI.prototype,"ytActionHandlerBehavior",void 0);_.U([_.ir("yt-emoji-picker-renderer"),_.W("design:type",Object)],nI.prototype,"emojiPickerRenderer",void 0);
_.U([_.O({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(a,b){return _.np(a.entities,"emojiCustomizationSetEntity",b)},
observer:"emojiCustomizationSetChanged"}),_.W("design:type",Object)],nI.prototype,"emojiCustomizationSet",void 0);_.U([_.O(),_.W("design:type",Object)],nI.prototype,"originalEmojiSet",void 0);_.U([_.O(),_.W("design:type",_.PH)],nI.prototype,"emojiManager",void 0);_.U([_.O(),_.W("design:type",Object)],nI.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],nI.prototype,"isDarkTheme",void 0);_.U([_.O(),_.W("design:type",Object)],nI.prototype,"selectedIndex",void 0);
_.U([_.M("yt-emoji-select"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],nI.prototype,"onEmojiSelect",null);nI=_.U([_.wr({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],nI);var TSb;var USb;var VSb;var WSb;var XSb=function(){var a=_.P.apply(this,arguments)||this;a.authorBadges=[];return a};
_.z(XSb,_.P);_.f=XSb.prototype;_.f.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.f.configureRendererStamper=function(){return{"data.inlineActionButtons":{id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}},"data.beforeContentButtons":{id:"before-content-buttons",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.f.dataChanged=function(){var a=XOa(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",a)};
_.f.updateMessage=function(){var a=this.data.message,b=_.E(_.E(this.hostElement).querySelector("#message"));b.textContent="";a&&b.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(a))};
_.f.shouldSupportWholeItemClick=function(){return!0};
_.f.onShowOriginalClick=function(a){a.preventDefault();this.showOriginal=!0};
_.f.computeShowBar=function(a,b,c){return a&&b||c};
_.f.computeAuthorBadges=function(a){return a.authorBadges||[]};
_.f.computeAuthorIsOwner=function(a){return!!YOa(a.authorBadges,"owner")};
_.f.computeAuthorNameColor=function(a){var b;if(_.w("live_chat_author_name_color_usernames")&&(a==null?0:(b=a.authorName)==null?0:b.simpleText))return _.dPa(_.ePa(a.authorName.simpleText));if(_.w("live_chat_seed_color_usernames")&&(a==null?0:a.authorSeedColorArgb))return _.dPa(_.cs(a.authorSeedColorArgb));if(_.w("live_chat_colored_usernames"))return"#cc0000";var c;return _.w("live_chat_simple_color_usernames")&&(a==null?0:(c=a.authorName)==null?0:c.simpleText)&&(a==null?0:a.authorUsernameColorLight)&&
(a==null?0:a.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.cs(a.authorUsernameColorDark):_.cs(a.authorUsernameColorLight):""};
var oI=XSb;oI.prototype.updateMessage=oI.prototype.updateMessage;oI.prototype.dataChanged=oI.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],oI.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.TH.YtLiveChatItemBehavior),_.W("design:type",_.UH)],oI.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],oI.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],oI.prototype,"data",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],oI.prototype,"showOriginal",void 0);_.U([_.O({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.W("design:type",Boolean)],oI.prototype,"isDimmed",void 0);_.U([_.O({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.W("design:type",Boolean)],oI.prototype,"showBar",void 0);
_.U([_.O({computed:"computeAuthorBadges(data)"}),_.W("design:type",Array)],oI.prototype,"authorBadges",void 0);_.U([_.O({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],oI.prototype,"authorIsOwner",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],oI.prototype,"inCollapsedBanner",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],oI.prototype,"inBanner",void 0);
_.U([_.O({value:_.w("live_chat_hide_avatars"),reflectToAttribute:!0}),_.W("design:type",Boolean)],oI.prototype,"avatarHidden",void 0);_.U([_.O({computed:"computeAuthorNameColor(data)"}),_.W("design:type",String)],oI.prototype,"authorNameColor",void 0);_.U([_.O(),_.W("design:type",_.XH)],oI.prototype,"participantsManager",void 0);_.U([_.O({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.W("design:type",Object)],oI.prototype,"filledButtonOverrides",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oI.prototype,"dataChanged",null);_.U([_.N("data.message"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oI.prototype,"updateMessage",null);oI=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],oI);
_.S(oI,"yt-live-chat-text-message-renderer",function(){if(WSb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_message_renderer.yt.live.chat.text.message.renderer.css.js--\x3e<yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-text-message-renderer" height="24" thumbnail="[[data.authorPhoto]]" width="24"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-text-message-renderer"><span id="timestamp" class="style-scope yt-live-chat-text-message-renderer">[[timestampString]]</span><yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" class="style-scope yt-live-chat-text-message-renderer"></yt-live-chat-author-chip>\u200b<div id="before-content-buttons" class="style-scope yt-live-chat-text-message-renderer"></div>\u200b<span id="message" dir="auto" class="style-scope yt-live-chat-text-message-renderer"></span><span id="deleted-state" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.deletedStateMessage)]]</span><a id="show-original" href="#" on-click="onShowOriginalClick" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.showOriginalContentMessage)]]</a></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-text-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-text-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-text-message-renderer"></yt-icon></yt-icon-button></div><div id="inline-action-button-container" class="style-scope yt-live-chat-text-message-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-text-message-renderer"></div></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;VSb===void 0&&(VSb=document.createElement("template"));var d=VSb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);WSb=a}a=WSb;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var pI=function(){var a=_.P.apply(this,arguments)||this;a.tonalButtonOverrides={type:"tonal",style:"overlay"};return a};
_.z(pI,_.P);
pI.prototype.configureRendererStamper=function(){return{"data.infoDialogButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.autoModeratedItem":{id:"auto-moderated-item",mapping:{liveChatTextMessageRenderer:{component:"yt-live-chat-text-message-renderer",properties:{participantsManager:"[[participantsManager]]"},attributes:{"hide-inline-action-buttons":!0,"no-hover-effect":!0}}}},"data.moderationButtons":{id:"moderation-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.additionalInlineActionButtons":{id:"additional-inline-action-buttons",
mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[tonalButtonOverrides]]"}}}}}};
pI.prototype.shouldSupportInlineActionButtons=function(){return!0};
pI.prototype.shouldSupportWholeItemClick=function(){return!0};
_.Um.Object.defineProperties(pI.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
var qI=pI;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],qI.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.TH.YtLiveChatItemBehavior),_.W("design:type",_.UH)],qI.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],qI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],qI.prototype,"data",void 0);_.U([_.O(),_.W("design:type",_.XH)],qI.prototype,"participantsManager",void 0);
_.U([_.O(),_.W("design:type",Object)],qI.prototype,"tonalButtonOverrides",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data.infoDialogButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],qI.prototype,"hasInfoDialogButton",null);qI=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],qI);
_.S(qI,"yt-live-chat-auto-mod-message-renderer",function(){if(USb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-auto-mod-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_auto_mod_message_renderer.yt.live.chat.auto.mod.message.renderer.css.js--\x3e<div id="explanation" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <yt-icon id="warning-icon" hidden$="[[hasInfoDialogButton]]" icon="warning" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-icon>\n  <div id="button" hidden$="[[!hasInfoDialogButton]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <yt-formatted-string text="[[data.headerText]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-formatted-string>\n</div>\n<div id="auto-moderated-item" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="moderation-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <div id="additional-inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;TSb===void 0&&(TSb=document.createElement("template"));var d=TSb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);USb=a}a=USb;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var YSb;var ZSb;var $Sb;var aTb=function(){return _.P.apply(this,arguments)||this};
_.z(aTb,_.P);var bTb=aTb;_.U([_.O(),_.W("design:type",Object)],bTb.prototype,"data",void 0);bTb=_.U([_.Q({is:"ytd-factoid-renderer",disableElementRegistration:!0})],bTb);
_.S(bTb,"ytd-factoid-renderer",function(){if($Sb!==void 0)return $Sb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-factoid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="factoid style-scope ytd-factoid-renderer" role="text" aria-label="[[data.accessibilityText]]">\n  <yt-formatted-string class="factoid-value style-scope ytd-factoid-renderer" text="[[data.value]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="factoid-label style-scope ytd-factoid-renderer" text="[[data.label]]">\n  </yt-formatted-string>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return $Sb=a},{mode:1});var cTb=function(){return _.P.apply(this,arguments)||this};
_.z(cTb,_.P);cTb.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
var rI=cTb;_.U([_.O(),_.W("design:type",Object)],rI.prototype,"data",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],rI.prototype,"ytRendererstamperBehavior",void 0);rI=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],rI);
_.S(rI,"yt-live-chat-channel-activity-reputation-renderer",function(){if(ZSb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-channel-activity-reputation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_channel_activity_reputation_renderer.yt.live.chat.channel.activity.reputation.renderer.css.js--\x3e<div id="factoids" class="style-scope yt-live-chat-channel-activity-reputation-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;YSb===void 0&&(YSb=document.createElement("template"));var d=YSb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);ZSb=a}a=ZSb;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var dTb;var eTb;var fTb=function(){return _.P.apply(this,arguments)||this};
_.z(fTb,_.P);fTb.prototype.ready=function(){var a=document.querySelector("yt-live-chat-app");a&&a.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
var sI=fTb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],sI.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Boolean)],sI.prototype,"menuFocused",void 0);_.U([_.O(),_.W("design:type",Object)],sI.prototype,"data",void 0);_.U([_.H(_.TH.YtLiveChatItemBehavior),_.W("design:type",_.UH)],sI.prototype,"ytLiveChatItemBehavior",void 0);sI=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],sI);
_.S(sI,"yt-live-chat-donation-announcement-renderer",function(){if(eTb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-donation-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_donation_announcement_renderer.yt.live.chat.donation.announcement.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="content-header" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="author-name" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.authorName)]]</div><div id="text" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.text)]]</div></div><div id="timestamp" class="style-scope yt-live-chat-donation-announcement-renderer">[[timestampString]]</div><yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-formatted-string></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-icon></yt-icon-button></div></div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;dTb===void 0&&(dTb=document.createElement("template"));var d=dTb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);eTb=a}a=eTb;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var gTb;var hTb,iTb=function(){if(hTb!==void 0)return hTb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-empty-feed-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_empty_feed_view_model.yt.live.chat.empty.feed.view.model.css.js--\x3e<yt-image id="image" alt="empty_feed_image" data="[[data.emptyFeedImage]]" height="100" preserve-height="" preserve-width="" width="178" class="style-scope yt-live-chat-empty-feed-view-model">\n</yt-image>\n<yt-attributed-string id="message" data="[[data.message]]" class="style-scope yt-live-chat-empty-feed-view-model"></yt-attributed-string>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;gTb===void 0&&(gTb=document.createElement("template"));var d=gTb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return hTb=a};var nUb=function(){return _.P.apply(this,arguments)||this};
_.z(nUb,_.P);_.Um.Object.defineProperties(nUb,{template:{configurable:!0,enumerable:!0,get:function(){return iTb()}}});
var tI=nUb;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],tI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],tI.prototype,"data",void 0);tI=_.U([_.wr({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],tI);_.S(tI,"yt-live-chat-empty-feed-view-model",function(){return iTb()},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var oUb;var pUb;var qUb=function(){return _.P.apply(this,arguments)||this};
_.z(qUb,_.P);qUb.prototype.configureRendererStamper=function(){return{"data.channelAvatar.avatarViewModel":{id:"avatar",mapping:{image:{component:"yt-image",attributes:{height:"36",width:"36","preserve-height":"true","preserve-width":"true"}}}}}};
_.Um.Object.defineProperties(qUb.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var a,b;return{runs:[{text:(a=this.data)==null?void 0:(b=a.channelName)==null?void 0:b.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var a=[],b;if((b=this.data)==null||!b.channelBadges)return a;var c;b=_.h((c=this.data)==null?void 0:c.channelBadges);for(c=b.next();!c.done;c=b.next()){c=_.y(c.value,TBb);var d=void 0,e=void 0;if((d=c)==null?0:(e=d.badgeImage)==null?0:e.sources)d=void 0,e={liveChatAuthorBadgeRenderer:{tooltip:c.tooltip,accessibility:{accessibilityData:{label:(d=_.y(c.rendererContext,_.$u))==null?void 0:d.label}}}},c.badgeImage.sources[0].clientResource?e.liveChatAuthorBadgeRenderer.icon=
{iconType:c.badgeImage.sources[0].clientResource.imageName}:e.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:c.badgeImage.sources},a.push(e)}return a}}});
var uI=qUb;_.U([_.O(),_.W("design:type",Object)],uI.prototype,"data",void 0);_.U([_.K("data.channelName"),_.W("design:type",Object),_.W("design:paramtypes",[])],uI.prototype,"channelName",null);_.U([_.K("data.channelBadges"),_.W("design:type",Array),_.W("design:paramtypes",[])],uI.prototype,"channelBadges",null);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],uI.prototype,"ytRendererstamperBehavior",void 0);
uI=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],uI);
_.S(uI,"yt-live-chat-identity-view-model",function(){if(pUb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-identity-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_identity_view_model.yt.live.chat.identity.view.model.css.js--\x3e<div id="avatar" class="style-scope yt-live-chat-identity-view-model"></div>\n<div id="channel_info" class="style-scope yt-live-chat-identity-view-model">\n  <yt-live-chat-author-chip id="channel_name" author-badges="[[channelBadges]]" author-name="[[channelName]]" class="style-scope yt-live-chat-identity-view-model">\n  </yt-live-chat-author-chip>\n  <div id="channel_metadata" class="style-scope yt-live-chat-identity-view-model">\n    <yt-attributed-string id="create_time" data="[[data.channelCreateTime]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n    <yt-attributed-string id="subscriber_count" data="[[data.channelSubscriberCount]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n  </div>\n</div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;oUb===void 0&&(oUb=document.createElement("template"));var d=oUb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);pUb=a}a=pUb;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var rUb;var sUb;var tUb;var uUb;var vUb=function(){var a=_.P.apply(this,arguments)||this;a.hidden=!1;a.supportsInlineActionButtons=!0;return a};
_.z(vUb,_.P);vUb.prototype.ready=function(){var a;((a=document.querySelector("yt-live-chat-app"))==null?0:a.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
vUb.prototype.dataChanged=function(a){var b=(0,_.er)(_.E(this.hostElement).querySelector("#detail-text"));b.textContent="";(a==null?0:a.detailText)&&b.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(a.detailText))};
var vI=vUb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.TH.YtLiveChatItemBehavior),_.W("design:type",_.UH)],vI.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],vI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O({observer:"dataChanged"}),_.W("design:type",Object)],vI.prototype,"data",void 0);
_.U([_.O({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.W("design:type",Object)],vI.prototype,"hidden",void 0);vI=_.U([_.Q({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],vI);
_.S(vI,"yt-live-chat-legacy-paid-message-renderer",function(){if(uUb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-legacy-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_legacy_paid_message_renderer.yt.live.chat.legacy.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-img-shadow>\n  <div id="content" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <div id="content-primary-column" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <div id="author-name" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.authorName)]]</div>\n      <div id="event-text" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.eventText)]]</div>\n      <div id="detail-text" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n    </div>\n    <div id="timestamp" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[timestampString]]</div>\n  </div>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <yt-icon icon="more_vert" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;tUb===void 0&&(tUb=document.createElement("template"));var d=tUb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);uUb=a}a=uUb;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var wUb;var xUb;var yUb={},zUb=function(){return _.kr.apply(this,arguments)||this};
_.z(zUb,_.kr);zUb.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
var wI=zUb;wI.prototype.onLiveChatMembershipItemBehaviorClick=wI.prototype.onLiveChatMembershipItemBehaviorClick;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],wI.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],wI.prototype,"data",void 0);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],wI.prototype,"onLiveChatMembershipItemBehaviorClick",null);wI=_.U([_.lr()],wI);
yUb.YtLiveChatMembershipItemBehavior=[wI.prototype,_.Z.YtRendererBehavior];var AUb=function(){var a=_.P.apply(this,arguments)||this;a.supportsInlineActionButtons=!0;a.hasPrimaryHeaderText=!1;a.showOnlyHeader=!1;a.authorBadges=[];a.modern=_.w("web_button_rework_with_live");a.buttonOverrides={style:"overlay",type:"filled"};return a};
_.z(AUb,_.P);_.f=AUb.prototype;_.f.shouldSupportInlineActionButtons=function(){return!0};
_.f.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.f.ready=function(){var a=document.querySelector("yt-live-chat-app");a&&a.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.f.messageChanged=function(){var a=this.data.message,b=(0,_.er)(_.E(this.hostElement).querySelector("#message"));b.textContent="";a&&b.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(a))};
_.f.computeHasPrimaryHeaderText=function(a){return!(!a||!a.headerPrimaryText)};
_.f.computeShowOnlyHeader=function(a,b){return this.isMessageEmpty(a,b)};
_.f.computeAuthorBadges=function(a){return a.authorBadges||[]};
_.f.isMessageEmpty=function(a,b){return!a||a.empty?!0:!a.message&&!a.inputField&&!b};
_.f.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.f.getInputElement=function(){return _.E(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.f.inputFocus=function(){var a=this.getInputElement();a&&a.focus()};
_.f.inputInsertEmoji=function(a){var b=this.getInputElement();b&&b.insertEmoji(a)};
_.f.inputMessage=function(){var a=this.getInputElement();return a&&this.data.inputField?(a.completeEmojis(),_.Mt(a.liveChatRichMessageInput)):null};
_.f.onFooterButtonClick=function(){this.data.footerButton&&_.io(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.f.shouldSupportWholeItemClick=function(){return!0};
var xI=AUb;xI.prototype.isDeletedChanged=xI.prototype.isDeletedChanged;xI.prototype.messageChanged=xI.prototype.messageChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],xI.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.TH.YtLiveChatItemBehavior),_.W("design:type",_.UH)],xI.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.H(yUb.YtLiveChatMembershipItemBehavior),_.W("design:type",Object)],xI.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],xI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],xI.prototype,"data",void 0);_.U([_.O({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.W("design:type",Object)],xI.prototype,"hasPrimaryHeaderText",void 0);_.U([_.O({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.W("design:type",Object)],xI.prototype,"showOnlyHeader",void 0);
_.U([_.O({computed:"computeAuthorBadges(data)"}),_.W("design:type",Array)],xI.prototype,"authorBadges",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],xI.prototype,"modern",void 0);_.U([_.N("data.message"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],xI.prototype,"messageChanged",null);_.U([_.N("isDeleted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],xI.prototype,"isDeletedChanged",null);
xI=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],xI);
_.S(xI,"yt-live-chat-membership-item-renderer",function(){if(xUb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-membership-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_membership_item_renderer.yt.live.chat.membership.item.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="header" class="style-scope yt-live-chat-membership-item-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-membership-item-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-membership-item-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-membership-item-renderer">\n        <div id="header-content-inner-column" class="style-scope yt-live-chat-membership-item-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n            <yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" class="style-scope yt-live-chat-membership-item-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="header-primary-text" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerPrimaryText)]]</div>\n        </div>\n        <div id="header-subtext" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerSubtext)]]</div>\n      </div>\n      <div id="timestamp" class="style-scope yt-live-chat-membership-item-renderer">[[timestampString]]</div>\n    </div>\n    <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-icon icon="more_vert" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-membership-item-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-membership-item-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-membership-item-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-membership-item-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-membership-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div id="footer-button" hidden$="[[!data.footerButton]]" on-click="onFooterButtonClick" class="style-scope yt-live-chat-membership-item-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-membership-item-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;wUb===void 0&&(wUb=document.createElement("template"));var d=wUb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);xUb=a}a=xUb;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var BUb;var CUb;var DUb=function(){return _.P.apply(this,arguments)||this};
_.z(DUb,_.P);DUb.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
var yI=DUb;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],yI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],yI.prototype,"data",void 0);yI=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],yI);
_.S(yI,"yt-live-chat-mode-change-message-renderer",function(){if(CUb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-mode-change-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_mode_change_message_renderer.yt.live.chat.mode.change.message.renderer.css.js--\x3e<div id="contents" class="style-scope yt-live-chat-mode-change-message-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-icon>\n  <div id="text-container" class="style-scope yt-live-chat-mode-change-message-renderer">\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-mode-change-message-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;BUb===void 0&&(BUb=document.createElement("template"));var d=BUb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);CUb=a}a=CUb;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var EUb;var FUb;var GUb=function(){return _.P.apply(this,arguments)||this};
_.z(GUb,_.P);var zI=GUb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],zI.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.TH.YtLiveChatItemBehavior),_.W("design:type",_.UH)],zI.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],zI.prototype,"data",void 0);zI=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],zI);
_.S(zI,"yt-live-chat-moderation-message-renderer",function(){if(FUb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-moderation-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_moderation_message_renderer.yt.live.chat.moderation.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-moderation-message-renderer">\n  <span id="timestamp" class="style-scope yt-live-chat-moderation-message-renderer">[[timestampString]]</span>\n  <yt-formatted-string id="message" text="[[data.message]]" class="style-scope yt-live-chat-moderation-message-renderer"></yt-formatted-string>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;EUb===void 0&&(EUb=document.createElement("template"));var d=EUb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);FUb=a}a=FUb;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var HUb;var IUb;var JUb=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.w("web_button_rework");return a};
_.z(JUb,_.P);JUb.prototype.onClick=function(){var a;if((a=this.data)!=null&&a.onClickCommand){var b;_.gs.instance.resolveCommand((b=this.data)==null?void 0:b.onClickCommand)}};
var AI=JUb;_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],AI.prototype,"modern",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],AI.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.MG),_.W("design:type",Object)],AI.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.H(_.TH.YtLiveChatItemBehavior),_.W("design:type",_.UH)],AI.prototype,"ytLiveChatItemBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],AI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],AI.prototype,"data",void 0);AI=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],AI);
_.S(AI,"yt-live-chat-offer-click-count-message-renderer",function(){if(IUb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-offer-click-count-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_offer_click_count_message_renderer.yt.live.chat.offer.click.count.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n  <div id="icon-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="icon" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-icon icon="yt-icons:trending_up" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="metadata-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="message-title" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-formatted-string>\n    </div>\n    <div id="product-title-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">[[data.productTitle]]</div>\n    <div id="cta-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <a id="cta-endpoint" href$="[[computeHref_(data.onClickCommand)]]" on-click="onClick" data="[[data.onClickCommand]]" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n        [[data.ctaTitle]]\n        <yt-icon class="hover-icon style-scope yt-live-chat-offer-click-count-message-renderer" icon="open_in_new"></yt-icon>\n      </a>\n    </div>\n  </div>\n</div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;HUb===void 0&&(HUb=document.createElement("template"));var d=HUb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);IUb=a}a=IUb;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var KUb;var LUb=function(){return _.P.apply(this,arguments)||this};
_.z(LUb,_.P);var MUb=LUb;_.U([_.O(),_.W("design:type",Object)],MUb.prototype,"data",void 0);MUb=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],MUb);
_.S(MUb,"yt-live-chat-placeholder-item-renderer",function(){if(KUb===void 0){var a=document.createElement("template");_.B(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-placeholder-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);KUb=a}a=KUb;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var NUb;var OUb;var PUb=new Tp(7),QUb=function(){var a=_.P.apply(this,arguments)||this;a.data={};return a};
_.z(QUb,_.P);QUb.prototype.dataChanged=function(){var a;((a=this.data)==null?0:a.class)&&_.br(this.hostElement,this.data.class,!0);var b;((b=this.oldData)==null?0:b.class)&&_.br(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
QUb.prototype.computeTimestampString=function(a){return PUb.format(new Date(a/1E3))};
var BI=QUb;BI.prototype.dataChanged=BI.prototype.dataChanged;_.U([_.O(),_.W("design:type",Object)],BI.prototype,"data",void 0);_.U([_.O({computed:"computeTimestampString(data.timestampUsec)"}),_.W("design:type",String)],BI.prototype,"timestampString",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BI.prototype,"dataChanged",null);BI=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],BI);
_.S(BI,"yt-live-chat-server-error-message",function(){if(OUb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-server-error-message--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_server_error_message.yt.live.chat.server.error.message.css.js--\x3e<span id="timestamp" class="style-scope yt-live-chat-server-error-message">[[timestampString]]</span>\n<span id="message" class="style-scope yt-live-chat-server-error-message">[[data.message]]</span>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;NUb===void 0&&(NUb=document.createElement("template"));var d=NUb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);OUb=a}a=OUb;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var RUb;var SUb;var TUb=function(){var a=_.P.apply(this,arguments)||this;a.defaultToFilledIcon=!1;return a};
_.z(TUb,_.P);TUb.prototype.computeHasPrimaryColorIcon=function(a){return a==="SPARK"||a==="SPONSORSHIP_STAR"};
TUb.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
var CI=TUb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],CI.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.TH.YtLiveChatItemBehavior),_.W("design:type",_.UH)],CI.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],CI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],CI.prototype,"defaultToFilledIcon",void 0);_.U([_.O(),_.W("design:type",Object)],CI.prototype,"data",void 0);
_.U([_.O({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.W("design:type",Boolean)],CI.prototype,"hasPrimaryColorIcon",void 0);CI=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],CI);
_.S(CI,"yt-live-chat-viewer-engagement-message-renderer",function(){if(SUb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-viewer-engagement-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_viewer_engagement_message_renderer.yt.live.chat.viewer.engagement.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon id="icon" default-to-filled="[[defaultToFilledIcon]]" icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon><div id="content" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><div id="message-container" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-formatted-string id="message" split-lines="" text="[[data.message]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-formatted-string></div><div id="action-button" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></div></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon></yt-icon-button></div></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;RUb===void 0&&(RUb=document.createElement("template"));var d=RUb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);SUb=a}a=SUb;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var UUb;var VUb=function(){var a=_.P.apply(this,arguments)||this;a.modernUpdate=!1;a.buttonStyle="overlay";a.buttonType="filled";return a};
_.z(VUb,_.P);VUb.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
VUb.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
var DI=VUb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],DI.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],DI.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],DI.prototype,"modernUpdate",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],DI.prototype,"buttonStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],DI.prototype,"buttonType",void 0);
DI=_.U([_.Q({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],DI);
_.S(DI,"ytd-ad-hover-text-button-renderer",function(){if(UUb!==void 0)return UUb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-hover-text-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="info-button" data="[[data.button.buttonRenderer]]" hidden="[[!data.button]]" overrides="[[computeButtonOverride(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n</ytd-button-renderer>\n<tp-yt-paper-tooltip id="ad-info-tooltip" for="info-button" hidden="[[!data.hoverText]]" position="[[computeTooltipPosition(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n  [[getSimpleString(data.hoverText)]]\n</tp-yt-paper-tooltip>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return UUb=a},{mode:1});var WUb;var XUb=function(){var a=_.P.apply(this,arguments)||this;a.buttonOverrides={size:"XS"};a.modern=_.w("web_button_rework");return a};
_.z(XUb,_.P);XUb.prototype.onHelpTap=function(a){this.data&&this.data.informationDialog&&(_.io(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),a.preventDefault(),a.stopPropagation())};
var EI=XUb;_.U([_.O(),_.W("design:type",Object)],EI.prototype,"buttonOverrides",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],EI.prototype,"modern",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],EI.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],EI.prototype,"data",void 0);EI=_.U([_.Q({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],EI);
_.S(EI,"ytd-live-chat-purchased-product-message-renderer",function(){if(WUb!==void 0)return WUb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-purchased-product-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div id="container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n  <a id="product-container" class="yt-simple-endpoint style-scope ytd-live-chat-purchased-product-message-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" data-offer-version-id$="[[data.debugOfferVersionId]]">\n    <div id="product-image" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <yt-img-shadow class="no-transition style-scope ytd-live-chat-purchased-product-message-renderer" thumbnail="[[data.thumbnail]]"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <div id="purchased-message" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <yt-formatted-string text="[[data.purchasedMessage]]" class="style-scope ytd-live-chat-purchased-product-message-renderer"></yt-formatted-string>\n      </div>\n      <div id="product-title-container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <div id="product-title" show-icon$="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">[[data.productTitle]]\n          <template is="dom-if" if="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n            <yt-icon class="hover-icon style-scope ytd-live-chat-purchased-product-message-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </div>\n    </div>\n  </a>\n  <div id="information-icon" on-tap="onHelpTap" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    <ytd-button-renderer id="info-button" data="[[data.informationButton.buttonRenderer]]" hidden="[[!data.informationButton]]" overrides="[[buttonOverrides]]" role="tooltip" tab-index="1" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return WUb=a},{mode:1});var YUb;var ZUb;var $Ub=function(){var a=_.P.apply(this,arguments)||this;a.isContainerDeleted=!1;return a};
_.z($Ub,_.P);$Ub.prototype.onContextMenuClick=function(a){this.ytLiveChatItemBehavior.showContextMenu(a)};
$Ub.prototype.isContainerDeletedChanged=function(){this.isContainerDeleted&&(this.set("data.authorName",null),this.set("data.authorBadges",null),this.set("data.authorPhoto",null),this.set("data.primaryText",null),this.set("data.secondaryText",null),this.set("data.image",null))};
var FI=$Ub;FI.prototype.isContainerDeletedChanged=FI.prototype.isContainerDeletedChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],FI.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.TH.YtLiveChatItemBehavior),_.W("design:type",_.UH)],FI.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],FI.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],FI.prototype,"isContainerDeleted",void 0);
_.U([_.O(),_.W("design:type",String)],FI.prototype,"deletedStateMessage",void 0);_.U([_.N("isContainerDeleted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],FI.prototype,"isContainerDeletedChanged",null);FI=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],FI);
_.S(FI,"ytd-sponsorships-live-chat-header-renderer",function(){if(ZUb!==void 0)return ZUb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <div id="header-content-primary-column" hidden$="[[isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="header-content-inner-column" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" single-line="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.primaryText)]]</div>\n        </div>\n        <div id="secondary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.secondaryText)]]</div>\n      </div>\n      <div id="header-content-deleted-state" hidden$="[[!isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="deleted-primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[deletedStateMessage]]</div>\n      </div>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.image]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-img-shadow class="rhs-image style-scope ytd-sponsorships-live-chat-header-renderer" height="104" thumbnail="[[data.image]]" width="104">\n    </yt-img-shadow>\n  </template>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return ZUb=a},{mode:1});var GI=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.w("web_button_rework_with_live");a.buttonOverrides={style:"overlay",type:"filled"};return a};
_.z(GI,_.P);GI.prototype.configureRendererStamper=function(){return{"data.optInPrompt":{id:"opt-in-prompt",mapping:{liveChatViewerEngagementMessageRenderer:{component:"yt-live-chat-viewer-engagement-message-renderer",params:{defaultToFilledIcon:!0}},buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
GI.prototype.onCtaButtonClick=function(){var a,b=_.y((a=this.data)==null?void 0:a.optInPrompt,_.RE);if(a=this.maybeGetButtonCommand(b)){var c;(c=_.ls())==null||c.clickCommand(a)}};
GI.prototype.maybeGetButtonCommand=function(a){return!a||!a.command||_.y(a.command,oFb)===void 0&&_.y(a.command,nFb)===void 0?null:a.command};
GI.prototype.shouldHideOptinPrompt=function(a,b){return!a||b};
var HI=GI;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],HI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.TH.YtLiveChatItemBehavior),_.W("design:type",_.UH)],HI.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],HI.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],HI.prototype,"modern",void 0);
HI=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],HI);
_.S(HI,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(YUb!==void 0)return YUb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-purchase-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-sponsorships-live-chat-header-renderer id="header" data="[[data.header.liveChatSponsorshipsHeaderRenderer]]" deleted-state-message="[[getSimpleString(data.deletedStateMessage)]]" is-container-deleted="[[isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer">\n</ytd-sponsorships-live-chat-header-renderer>\n<div id="opt-in-prompt" on-click="onCtaButtonClick" hidden="[[shouldHideOptinPrompt(data.optInPrompt, isDeleted)]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return YUb=a},{mode:1});var aVb;var bVb=function(){return _.P.apply(this,arguments)||this};
_.z(bVb,_.P);bVb.prototype.onContextMenuClick=function(a){this.ytLiveChatItemBehavior.showContextMenu(a)};
bVb.prototype.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorBadges",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
var II=bVb;II.prototype.isDeletedChanged=II.prototype.isDeletedChanged;_.U([_.H(_.TH.YtLiveChatItemBehavior),_.W("design:type",_.UH)],II.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],II.prototype,"data",void 0);_.U([_.N("isDeleted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],II.prototype,"isDeletedChanged",null);
II=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],II);
_.S(II,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(aVb!==void 0)return aVb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="gift" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return aVb=a},{mode:1});var cVb=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return a};
_.z(cVb,_.P);_.f=cVb.prototype;
_.f.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatAutoModMessageRenderer:"yt-live-chat-auto-mod-message-renderer",liveChatPaidMessageRenderer:"yt-live-chat-paid-message-renderer",liveChatLegacyPaidMessageRenderer:"yt-live-chat-legacy-paid-message-renderer",liveChatMembershipItemRenderer:"yt-live-chat-membership-item-renderer",liveChatTextMessageRenderer:"yt-live-chat-text-message-renderer",liveChatPaidStickerRenderer:"yt-live-chat-paid-sticker-renderer",liveChatDonationAnnouncementRenderer:"yt-live-chat-donation-announcement-renderer",
liveChatModeChangeMessageRenderer:"yt-live-chat-mode-change-message-renderer",liveChatModerationMessageRenderer:"yt-live-chat-moderation-message-renderer",liveChatOfferClickCountMessageRenderer:"yt-live-chat-offer-click-count-message-renderer",liveChatPlaceholderItemRenderer:"yt-live-chat-placeholder-item-renderer",liveChatPurchasedProductMessageRenderer:"ytd-live-chat-purchased-product-message-renderer",liveChatSponsorshipsGiftPurchaseAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",
liveChatSponsorshipsGiftRedemptionAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",liveChatViewerEngagementMessageRenderer:"yt-live-chat-viewer-engagement-message-renderer",serverErrorMessage:"yt-live-chat-server-error-message"}}}};
_.f.handleLiveChatAction=function(a){_.y(a,KBb)?this.handleMarkChatItemAsDeletedAction(_.y(a,KBb)):_.y(a,JBb)&&this.handleRemoveChatItemAction(_.y(a,JBb))};
_.f.handleLiveChatActions=function(a){a.forEach(this.handleLiveChatAction,this)};
_.f.handleMarkChatItemAsDeletedAction=function(a){var b=this,c;((c=this.data)==null?0:c.items)&&this.data.items.forEach(function(d,e){var g=Object.keys(d)[0];Object.values(d)[0].id===a.targetItemId&&b.markAsDeleted("data.items",e,g,a.deletedStateMessage,a.showOriginalContentMessage)})};
_.f.handleRemoveChatItemAction=function(a){var b=this,c;((c=this.data)==null?0:c.items)&&this.data.items.forEach(function(d,e){Object.values(d)[0].id===a.targetItemId&&b.splice("data.items",e,1)})};
_.f.markAsDeleted=function(a,b,c,d,e){a=[a,b,c].join(".");this.set(a+".deletedStateMessage",d);this.set(a+".showOriginalContentMessage",e)};
var JI=cVb;_.U([_.O(),_.W("design:type",Object)],JI.prototype,"data",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],JI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],JI.prototype,"ytActionHandlerBehavior",void 0);JI=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],JI);
_.S(JI,"yt-live-chat-item-display-list-renderer",function(){if(sUb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_list_renderer.yt.live.chat.item.display.list.renderer.css.js--\x3e<div id="items" class="style-scope yt-live-chat-item-display-list-renderer"></div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;rUb===void 0&&(rUb=document.createElement("template"));var d=rUb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);sUb=a}a=sUb;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var dVb;var eVb,fVb=function(){if(eVb!==void 0)return eVb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_renderer.yt.live.chat.item.display.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-item-display-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;dVb===void 0&&(dVb=document.createElement("template"));var d=dVb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return eVb=a};var gVb=function(){var a=_.P.apply(this,arguments)||this;a.isHeader=!1;return a};
_.z(gVb,_.P);gVb.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.Um.Object.defineProperties(gVb,{template:{configurable:!0,enumerable:!0,get:function(){return fVb()}}});
var KI=gVb;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],KI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],KI.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],KI.prototype,"isHeader",void 0);KI=_.U([_.wr({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],KI);
_.S(KI,"yt-live-chat-item-display-renderer",function(){return fVb()},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var hVb,iVb,nVb,mVb;
hVb={home:{"ytd-thumbnail":1,"ytd-topbar-menu-button-renderer":1,"ytd-item-section-renderer":5,"ytd-shelf-renderer":5,"yt-horizontal-list-renderer":5,"ytd-grid-video-renderer":30,"ytd-button-renderer":11,"tp-yt-paper-icon-button":7,"tp-yt-paper-button":5,"yt-formatted-string":5,"tp-yt-paper-tooltip":2,"yt-next-continuation":1,"~ytd-guide-entry-renderer":17,"~ytd-guide-signin-promo-renderer":1,"~ytd-browse":{count:1,signals:["yt-app-context","aa"]}},search:{"yt-next-continuation":1,"ytd-button-renderer":2,
"ytd-channel-renderer":2,"ytd-item-section-renderer":1,"ytd-video-renderer":20,"ytd-promoted-video-renderer":1,"ytd-search-pyv-renderer":1,"ytd-thumbnail":1,"ytd-thumbnail-overlay-time-status-renderer":20,"ytd-thumbnail-overlay-toggle-button-renderer":0,"ytd-shelf-renderer":1,"ytd-vertical-list-renderer":1,"ytd-thumbnail-overlay-hover-text-renderer":2,"ytd-thumbnail-overlay-side-panel-renderer":2,"yt-formatted-string":3,"iron-icon":1,"tp-yt-iron-icon":1,"tp-yt-paper-button":3,"tp-yt-paper-tooltip":33,
"yt-icon":1,"ytd-playlist-renderer":1,"ytd-playlist-video-thumbnail-renderer":1,"ytd-subscribe-button-renderer":1,"~ytd-search":{count:1,signals:["yt-app-context","aa"]}},watch:{"yt-next-continuation":2,"ytd-video-view-count-renderer":1,"ytd-button-renderer":3,"ytd-toggle-button-renderer":2,"ytd-menu-renderer":1,"ytd-compact-video-renderer":19,"ytd-compact-promoted-video-renderer":1,"ytd-compact-playlist-renderer":1,"ytd-compact-radio-renderer":1,"ytd-thumbnail":1,"ytd-thumbnail-overlay-time-status-renderer":20,
"ytd-thumbnail-overlay-toggle-button-renderer":0,"ytd-player-legacy-desktop-watch-ads-renderer":1,"tp-yt-paper-button":20,"tp-yt-paper-icon-button":20,"tp-yt-paper-tooltip":30,"yt-formatted-string":5}};iVb={home:"eohps",search:"eosps",watch:"eowps"};_.jVb=["watch","search","home"];
_.LI=function(){this.JSC$11979_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$11979_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.Fi("PRECONSTRUCTION_DELAY",0);this.signals_=_.VF();this.targetPage_=""};
_.LI.prototype.init=function(a,b){a=a===void 0?"":a;b=b===void 0?null:b;if(this.JSC$11979_isInitialized_)this.abort();else if(this.JSC$11979_isInitialized_=!0,a&&_.kVb(this,a),b){var c=_.WF(this.signals_,"pcl")?0:10,d=function(){for(var e=0,g;g=_.jVb[e++];)g!=a&&g!=b&&this.pendingPages_.push(g);_.lVb(this)}.bind(this);
this.signals_.parkOrScheduleJob(d,c,"pcl")}};
_.LI.prototype.abort=function(){this.fragmentJobId_&&(_.zk.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);mVb(this)};
_.kVb=function(a,b){a.JSC$11979_isInitialized_&&!a.targetPage_&&(a.targetPage_=b,nVb(a,b),a.isInitialPass_=!1,nVb(a,b),a.signals_.processSignal(iVb[a.targetPage_]),mVb(a),_.lVb(a))};
_.lVb=function(a){a.pendingPages_.length&&!a.pagePreparerJobId_&&(a.pagePreparerJobId_=_.sl(_.zk,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.kVb(this,this.pendingPages_.shift())}.bind(a),a.DEFAULT_DELAY_))};
nVb=function(a,b){if(b=hVb[b])for(var c in b){var d=!1,e=c;c.charAt(0)=="~"&&(d=!0,e=c.substring(1));var g=b[c];g=typeof g=="object"?g:{count:g};b[c]=g;g.componentName=e;g.count>0&&(a.isInitialPass_?d||a.isSeenDuringInitialPass_[e]||(a.JSC$11979_queue_.push({componentName:e,count:1,signals:g.signals}),a.isSeenDuringInitialPass_[e]=!0,g.count--):a.JSC$11979_queue_.push(g))}};
mVb=function(a){a.JSC$11979_queue_.length=0;a.targetPage_="";a.isInitialPass_=!0;a.signals_.processSignal("eop")};
_.LI.getInstance=function(){return _.tw(_.LI)};var oVb=function(){this.signals=_.VF();this.init()};
oVb.prototype.startPreconstruction=function(){_.LI.getInstance().init(_.Gi("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
oVb.prototype.init=function(){pVb(this);window.Polymer&&gmb&&fIa();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var a=_.ja.ytcsi;if(a&&a.gt&&(a=a.gt())&&a.tick&&(a.tick.aft>0||a.tick.pbs>0)&&(_.Gi("IS_HOMEPAGE_COLD")||_.Gi("IS_RESULTS_PAGE_COLD")||_.Gi("IS_WATCH_PAGE_COLD"))){qVb(this);break a}dra(OCa,this.onNotifications,this)}};
var pVb=function(a){var b=function(){a.signals.processSignal("dl")};
document.readyState==="complete"?(_.Ki(Error("wh"),"WARNING"),b()):_.Gsa(window,"load",b)};
oVb.prototype.onNotifications=function(a){a.timer||(_.Gi("IS_HOMEPAGE_COLD")||_.Gi("IS_RESULTS_PAGE_COLD")||_.Gi("IS_WATCH_PAGE_COLD"))&&qVb(this)};
var qVb=function(a){a.signals.parkOrScheduleJob(function(){a.signals.processSignal("eocs")},10,"eor")};
new oVb;var MI,rVb=function(){return _.kr.apply(this,arguments)||this};
_.z(rVb,_.kr);_.f=rVb.prototype;_.f.enableActiveViewMeasurement=function(a){if(this.isActiveViewEnabled(a)){var b=this.getUrlPrefixesFromCommand(a.viewableCommands);a=this.getUrlPrefixesFromCommand(a.endOfSessionCommands);MI||(MI=new M0a(this.getVersion()));N0a(MI,this.hostElement);O0a(MI,this.hostElement,b,a)}};
_.f.stopActiveViewMeasurement=function(){MI&&N0a(MI,this.hostElement)};
_.f.isActiveViewEnabled=function(a){return!!a&&(this.hasAtLeastOneUrl(a.viewableCommands)||this.hasAtLeastOneUrl(a.endOfSessionCommands))};
_.f.hasAtLeastOneUrl=function(a){return!!a&&a.length>0&&a[0].loggingUrls!=null&&a[0].loggingUrls.length>0};
_.f.getVersion=function(){var a=_.Fi("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(a==null?void 0:a.length)===2?a[1]:null};
_.f.getUrlPrefixesFromCommand=function(a){if(!a)return[];var b=[];a=_.h(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.loggingUrls){c=_.h(c.loggingUrls);for(var d=c.next();!d.done;d=c.next())d=d.value,d.baseUrl&&b.push(d.baseUrl)}return b};
var sVb=rVb;sVb=_.U([_.lr()],sVb);var NI=[sVb.prototype];var tVb=function(){return _.kr.apply(this,arguments)||this};
_.z(tVb,_.kr);_.Um.Object.defineProperties(tVb.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.w("enable_entity_store_from_dependency_injection")?_.Kr():_.Yp()}}});
var uVb=tVb;uVb=_.U([_.lr()],uVb);_.OI=[EG.prototype,uVb.prototype];var vVb=["ytd-rich-shelf-renderer"],wVb=function(){var a=_.kr.apply(this,arguments)||this;a._noAccessors=!0;a.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";a.followUpDialogPromise=null;a.followUpDialogPromiseResolve=null;a.followUpDialogPromiseReject=null;return a};
_.z(wVb,_.kr);_.f=wVb.prototype;_.f.dismissibleItemIsDismissedChanged_=function(a){_.w("kevlar_fluid_dismiss")&&(a?_.io(this.hostElement,"yt-dismissible-item-dismissed"):_.io(this.hostElement,"yt-dismissible-item-undismissed"))};
_.f.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.f.dismissibleItemReset_=function(){var a=this;this.isDismissed&&(this.isHideEnclosingAction=this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0);this.followUpDialogPromiseReject&&(this.followUpDialogPromise.thenCatch(function(){}),this.followUpDialogPromiseReject());
this.followUpDialogPromise=new _.il(function(b,c){a.followUpDialogPromiseResolve=b;a.followUpDialogPromiseReject=c});
_.io(this.hostElement,"yt-enable-lockup-interaction")};
_.f.dismissibleItemOnYtServiceRequestSent_=function(a,b){b.actions&&this.dismissibleItemProcessActions(b.actions,a)};
_.f.dismissibleItemOnRequestSent=function(a){if(_.w("web_button_rework"))for(var b=_.h(a.detail),c=b.next();!c.done;c=b.next()){var d=void 0;(c=(d=_.y(c.value,_.to))==null?void 0:d.actions)&&this.dismissibleItemProcessActions(c,a)}};
_.f.dismissibleItemOnCommandSent=function(a,b){b&&this.dismissibleItemProcessActions(b,a)};
_.f.setAndGetDismissedContentId=function(a){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+a};
_.f.replayDismissAction=function(a){this.dismissibleItemProcessActions([a])};
_.f.dismissibleItemProcessActions=function(a,b){for(var c=0;c<a.length;c++){var d=a[c],e=void 0;((e=_.y(d,_.ro))==null?0:e.commands)&&this.dismissibleItemProcessActions(_.y(d,_.ro).commands,b);if(_.y(d,_.EE)){if(e=_.y(d,_.EE),!e.replaceParentSection||vVb.includes(this.hostElement.nodeName.toLowerCase()))_.w("web_see_fewer_shorts_reactive_dismissal")&&e.groupDismissal&&wUa(this,e.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(e),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.wu("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:d})),d=void 0,(d=b)==null||d.stopPropagation()}else if(_.y(d,Wyb))this.dismissibleItemHandleHideEnclosingAction_(),d=void 0,(d=b)==null||d.stopPropagation();else if(_.y(d,gAb))_.w("web_see_fewer_shorts_reactive_dismissal")&&(d=_.y(d,gAb),e=void 0,((e=d)==null?0:e.targetGroupId)&&wUa(this,{targetGroupId:d.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.wu("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),d=void 0,(d=b)==null||d.stopPropagation();else if(_.y(d,_.to))(d=_.y(d,_.to).actions)&&_.po(this.hostElement,d,this.hostElement),d=void 0,(d=b)==null||d.stopPropagation();else{var g=e=void 0;((e=_.y(d,_.Il))==null?void 0:e.signal)!=="TELL_US_WHY"||((g=_.y(d,_.Il))==null?0:g.targetId)&&_.w("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),d=void 0,(d=b)==null||d.stopPropagation())}}};
_.f.dismissibleItemOnYtServiceRequestCompleted_=function(a,b){var c=this.get("feedbackResponses.0.followUpDialog",b.data);c?this.followUpDialogPromiseResolve(c):b.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(b.actions,a)};
_.f.dismissibleItemHandleReplaceEnclosingAction_=function(a){this.dismissedRenderer=a.item;this.isDismissed=!0;var b=null;(b=_.E(this.hostElement).querySelector("#dismissed"))&&_.Qm(this,function(){_.Pk(b)});
_.io(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.f.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.f.dismissibleItemHandleUndoFeedbackAction_=function(){_.io(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.f.dismissibleItemHandleTellUsWhySignalAction_=function(){var a=this;this.followUpDialogPromise.then(function(b){a.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:b}})})};
var PI=wVb;PI.prototype.dismissibleItemOnYtServiceRequestCompleted_=PI.prototype.dismissibleItemOnYtServiceRequestCompleted_;PI.prototype.dismissibleItemOnCommandSent=PI.prototype.dismissibleItemOnCommandSent;PI.prototype.dismissibleItemOnRequestSent=PI.prototype.dismissibleItemOnRequestSent;PI.prototype.dismissibleItemOnYtServiceRequestSent_=PI.prototype.dismissibleItemOnYtServiceRequestSent_;PI.prototype.dismissibleItemDataChanged_=PI.prototype.dismissibleItemDataChanged_;
PI.prototype.dismissibleItemIsDismissedChanged_=PI.prototype.dismissibleItemIsDismissedChanged_;_.U([_.H(_.aI),_.W("design:type",Object)],PI.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],PI.prototype,"ytdReduxBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],PI.prototype,"isDismissed",void 0);_.U([_.O(),_.W("design:type",Object)],PI.prototype,"dismissedRenderer",void 0);
_.U([_.N("isDismissed"),_.W("design:type",Function),_.W("design:paramtypes",[Boolean]),_.W("design:returntype")],PI.prototype,"dismissibleItemIsDismissedChanged_",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],PI.prototype,"dismissibleItemDataChanged_",null);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Nt]),_.W("design:returntype")],PI.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.U([_.M("yt-service-request-sent-button-renderer"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],PI.prototype,"dismissibleItemOnRequestSent",null);
_.U([_.M("yt-dismissible-item-action"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Array]),_.W("design:returntype")],PI.prototype,"dismissibleItemOnCommandSent",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Vt]),_.W("design:returntype")],PI.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);PI=_.U([_.lr()],PI);_.QI=[_.aI,_.OI,PI.prototype];var RI=function(){var a=_.kr.apply(this,arguments)||this;a.disableGridStateAware=!1;a.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};a.currentGridClass="";return a};
_.z(RI,_.kr);RI.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.Qm(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var a=this.gridStateAwareGetElement();_.br(a,"grid",!0)}};
RI.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
RI.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.E(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
RI.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var a="grid-disabled";else{a=_.bLb.getInstance();var b=this.get("pageSubtype");a=b&&ZKb.includes(b)?"grid-disabled":a.currentSnapState_?a.currentSnapState_.className:null}(b=this.gridStateAwareGetElement())&&a!==this.currentGridClass&&(a&&_.br(b,a,!0),this.currentGridClass&&_.br(b,this.currentGridClass,!1),this.currentGridClass=a)};
var SI=RI;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],SI.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",String)],SI.prototype,"gridStateAwareSizingElementSelector",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],SI.prototype,"disableGridStateAware",void 0);SI=_.U([_.lr()],SI);_.TI=[SI.prototype,_.eH.YtActionHandlerBehavior];_.UI=new _.jB("GUIDE_TOKEN");var xVb;_.XI={};xVb=function(){var a=_.kr.apply(this,arguments)||this;a.guideStateActionMap={"ytd-update-guide-state-action":"handleGuideStateAction","ytd-update-mini-guide-state-action":"handleMiniGuideStateAction","ytd-update-guide-opened-action":"handleGuideOpenedAction","ytd-update-active-endpoint-action":"handleActiveEndpointAction"};return a};
_.z(xVb,_.kr);_.f=xVb.prototype;_.f.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.f.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var a=_.v().resolve(_.Xi(_.UI));a&&(this.guidePersistentAndVisible=a.getGuidePersistentAndVisible(),this.activeEndpoint=a.getActiveEndpoint(),this.guideOpened=a.getGuideOpened(),this.miniGuideVisible=a.getMiniGuideVisible())};
_.f.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.f.handleGuideStateAction=function(a){this.guidePersistentAndVisible=a};
_.f.handleMiniGuideStateAction=function(a){this.miniGuideVisible=a};
_.f.handleGuideOpenedAction=function(a){this.guideOpened=a};
_.f.handleActiveEndpointAction=function(a){this.activeEndpoint=a};
var YI=xVb;YI.prototype.onActiveEndpointChange=YI.prototype.onActiveEndpointChange;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],YI.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],YI.prototype,"guidePersistentAndVisible",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],YI.prototype,"miniGuideVisible",void 0);_.U([_.O(),_.W("design:type",Object)],YI.prototype,"activeEndpoint",void 0);
_.U([_.N("activeEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YI.prototype,"onActiveEndpointChange",null);_.U([_.O(),_.W("design:type",Boolean)],YI.prototype,"guideOpened",void 0);YI=_.U([_.lr()],YI);_.XI.YtdGuideStateAwareBehavior=[];_.XI.YtdGuideStateAwareBehavior.push(YI.prototype,_.eH.YtActionHandlerBehavior);var yVb=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],zVb=function(){var a=_.kr.apply(this,arguments)||this;a.hoverJobId=0;a.JSC$12010_touched=!1;return a};
_.z(zVb,_.kr);_.f=zVb.prototype;_.f.created=function(){this.useExpandableTooltip=!yVb.includes(this.is)};
_.f.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.f.detached=function(){this.useExpandableTooltip=!1};
_.f.lockupOnDown=function(a){this.interactionElement&&!_.Wt(_.Rq(a),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.f.lockupOnUp=function(a){this.interactionElement&&!_.Wt(_.Rq(a),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.f.onTouchStart=function(){this.JSC$12010_touched=!0};
_.f.lockupOnMouseEnter=function(){var a=this,b=_.$i("kevlar_lockup_hover_delay",-1);this.JSC$12010_touched&&b>=0?(_.zk.cancelJob(this.hoverJobId),this.hoverJobId=_.zk.addJob(function(){a.lockupIsHovered=!0},8,b),this.JSC$12010_touched=!1):this.lockupIsHovered=!0};
_.f.lockupOnMouseLeave=function(){this.hoverJobId&&(_.zk.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.f.lockupOnPopupClosed=function(a,b){var c;((c=b.popupRenderer)==null?void 0:c.is)==="ytd-menu-popup-renderer"&&(a=b.popupRenderer.veData,b=_.En(),a&&b&&_.Wo(b,[a]))};
_.f.lockupOnLockupRequested=function(a){var b=a.detail.videoIds[0],c;a.detail&&b===((c=this.data)==null?void 0:c.videoId)&&(a.detail.returnValue=[this.data])};
_.f.lockupOnYtServiceRequestSent=function(a,b){if(a=b.actions)for(var c=0;c<a.length;c++){var d=a[c];if(d.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&b.ajaxPromise){var e=void 0,g=(e=_.y(b.endpoint,_.OE))==null?void 0:e.playlistId;e=void 0;d=(e=d.removedVideoId)!=null?e:"";AKb(_.YF(),d,g)}else d.action==="ACTION_REMOVE_VIDEO"&&b.ajaxPromise&&(g=void 0,d=(g=d.setVideoId)!=null?g:"",_.BKb(_.YF(),d))}};
_.f.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.f.lockupOnLockupEnabled=function(){if(!this.$){var a=_.v().resolve(_.Zt).getCurrentPage(),b=this.getParentRenderer?this.getParentRenderer():void 0;_.Dl(new _.qj("component not ready",this.is,this.isAttached,a==null?void 0:a.is,b==null?void 0:b.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
var ZI=zVb;ZI.prototype.lockupOnLockupEnabled=ZI.prototype.lockupOnLockupEnabled;ZI.prototype.lockupOnLockupDisabled=ZI.prototype.lockupOnLockupDisabled;ZI.prototype.lockupOnYtServiceRequestSent=ZI.prototype.lockupOnYtServiceRequestSent;ZI.prototype.lockupOnLockupRequested=ZI.prototype.lockupOnLockupRequested;ZI.prototype.lockupOnPopupClosed=ZI.prototype.lockupOnPopupClosed;ZI.prototype.lockupOnMouseLeave=ZI.prototype.lockupOnMouseLeave;ZI.prototype.lockupOnMouseEnter=ZI.prototype.lockupOnMouseEnter;
ZI.prototype.onTouchStart=ZI.prototype.onTouchStart;ZI.prototype.lockupOnUp=ZI.prototype.lockupOnUp;ZI.prototype.lockupOnDown=ZI.prototype.lockupOnDown;_.U([_.O(),_.W("design:type",Object)],ZI.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],ZI.prototype,"lockupIsHovered",void 0);_.U([_.O(),_.W("design:type",Boolean)],ZI.prototype,"lockupTouchTriggered",void 0);_.U([_.O(),_.W("design:type",Boolean)],ZI.prototype,"useExpandableTooltip",void 0);
_.U([_.ir("#interaction"),_.W("design:type",Object)],ZI.prototype,"interactionElement",void 0);_.U([_.M("down"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ZI.prototype,"lockupOnDown",null);_.U([_.M("up"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ZI.prototype,"lockupOnUp",null);
_.U([_.M("touchstart"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZI.prototype,"onTouchStart",null);_.U([_.M("mouseenter"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZI.prototype,"lockupOnMouseEnter",null);_.U([_.M("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZI.prototype,"lockupOnMouseLeave",null);
_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],ZI.prototype,"lockupOnPopupClosed",null);_.U([_.M("yt-lockup-requested"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ZI.prototype,"lockupOnLockupRequested",null);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Nt]),_.W("design:returntype")],ZI.prototype,"lockupOnYtServiceRequestSent",null);_.U([_.M("yt-disable-lockup-interaction"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZI.prototype,"lockupOnLockupDisabled",null);
_.U([_.M("yt-enable-lockup-interaction"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZI.prototype,"lockupOnLockupEnabled",null);ZI=_.U([_.lr()],ZI);_.$I=[ZI.prototype];_.AVb={YtdReduxBehavior:[]};_.AVb.YtdReduxBehavior.push.apply(_.AVb.YtdReduxBehavior,_.OI);var BVb=function(){var a=_.kr.apply(this,arguments)||this;a._noAccessors=!0;a.disableNowPlaying=!1;a.disableTooltips=!1;a.useHoveredProperty=!1;a.hovered=!1;a.isThumbnailHovered_=!1;a.addBackground=_.w("kevlar_thumbnail_bg");a.nowPlaying=!1;a.disableRounding=!1;a.size="small";return a};
_.z(BVb,_.kr);_.f=BVb.prototype;_.f.computeThumbnailOverlaySidePanelWidth_=function(a,b){return a-b};
_.f.computeSize=function(a,b){if(!this.disableRounding){if(!a&&!b)return"small";a=Math.max(a||0,b||0);return a>=256?"large":a>=96?"medium":"small"}};
_.f.computeFinalHoveredState_=function(a,b,c){return this.nowPlaying?!1:_.w("kevlar_thumbnail_fluid")&&a?b:c};
_.f.computeHoverOverlays_=function(a,b){return a&&b?b:void 0};
_.f.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.f.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.f.checkMiniplayer_=function(){var a;if(((a=this.data)==null?0:a.playlistSetVideoId)&&_.w("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{a=_.xF();var b=a.currentEndpoint;!this.disableNowPlaying&&b&&_.y(b,_.Un)&&this.data?(b=_.y(b,_.Un),this.nowPlaying=this.data.playlistId?b.playlistId===this.data.playlistId:b.videoId===this.data.videoId,this.isVideoPlaying=a==null?void 0:a.isVideoPlaying):this.nowPlaying=!1}};
var aJ=BVb;aJ.prototype.checkMiniplayer_=aJ.prototype.checkMiniplayer_;aJ.prototype.onMouseLeave_=aJ.prototype.onMouseLeave_;aJ.prototype.onMouseEnter_=aJ.prototype.onMouseEnter_;aJ.prototype.computeHoverOverlays_=aJ.prototype.computeHoverOverlays_;aJ.prototype.computeFinalHoveredState_=aJ.prototype.computeFinalHoveredState_;aJ.prototype.computeSize=aJ.prototype.computeSize;aJ.prototype.computeThumbnailOverlaySidePanelWidth_=aJ.prototype.computeThumbnailOverlaySidePanelWidth_;
_.U([_.H(_.OI),_.W("design:type",Object)],aJ.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],aJ.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Number)],aJ.prototype,"height",void 0);_.U([_.O(),_.W("design:type",Boolean)],aJ.prototype,"bottomSidePanel",void 0);_.U([_.O(),_.W("design:type",Number)],aJ.prototype,"width",void 0);_.U([_.O(),_.W("design:type",Object)],aJ.prototype,"disableNowPlaying",void 0);
_.U([_.O({selector:_.Hp}),_.W("design:type",Boolean)],aJ.prototype,"miniplayerIsActive",void 0);_.U([_.O(),_.W("design:type",Object)],aJ.prototype,"disableTooltips",void 0);_.U([_.O(),_.W("design:type",Object)],aJ.prototype,"useHoveredProperty",void 0);_.U([_.O(),_.W("design:type",Object)],aJ.prototype,"hovered",void 0);_.U([_.O(),_.W("design:type",Object)],aJ.prototype,"isThumbnailHovered_",void 0);
_.U([_.O({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.W("design:type",Boolean)],aJ.prototype,"finalHoveredState_",void 0);_.U([_.O({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.W("design:type",Number)],aJ.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],aJ.prototype,"addBackground",void 0);
_.U([_.O({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.W("design:type",Object)],aJ.prototype,"hoverOverlays_",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],aJ.prototype,"nowPlaying",void 0);_.U([_.O(),_.W("design:type",Boolean)],aJ.prototype,"isVideoPlaying",void 0);_.U([_.O(),_.W("design:type",Object)],aJ.prototype,"disableRounding",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.W("design:type",Object)],aJ.prototype,"size",void 0);_.U([_.M("mouseenter"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aJ.prototype,"onMouseEnter_",null);_.U([_.M("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aJ.prototype,"onMouseLeave_",null);
_.U([_.N("data","disableNowPlaying","miniplayerIsActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aJ.prototype,"checkMiniplayer_",null);aJ=_.U([_.lr()],aJ);var CVb=[aJ.prototype];_.bJ={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(a,b){return a+":"+_.$a(b)},
getPlayerListener_:function(a,b,c){a=this.getPlayerListenerKey_(a,b);b=this.playerListeners_.get(a);c&&this.playerListeners_.delete(a);return b},
savePlayerListener_:function(a,b){var c=b.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(a,b),c);return c},
listenToPlayerEvent:function(a,b,c){c=this.savePlayerListener_(b,c);a.addEventListener(b,c)},
listenToPlayerEvents:function(a,b){b.forEach(function(c,d){this.listenToPlayerEvent(a,d,c)}.bind(this))},
unlistenFromPlayerEvent:function(a,b,c){c=this.getPlayerListener_(b,c,!0);a.removeEventListener(b,c)},
unlistenFromPlayerEvents:function(a,b){b.forEach(function(c,d){this.unlistenFromPlayerEvent(a,d,c)}.bind(this))}}};
_.cJ=function(){};_.DVb=new _.jB("PLAYER_API_TOKEN");var BUa=!1,FUa,DUa=!1,HUa;var du=function(a,b,c,d,e){_.vg.call(this);var g=this;this.playerId=b;this.webPlayerContextConfig=d;this.dMc=e;this.nbb=!1;this.api={};this.uMa=this.v9=null;this.nda=new _.jj;this.nC={};this.uCa=this.uNa=this.elementId=this.msb=this.config=null;this.lCa=!1;this.yT=this.eja=null;this.oSa={};this.tSc=["onReady"];this.lastError=null;this.s7b=NaN;this.ola={};this.sGa=0;this.vH=this.targetElement=a;_.kg(this,this.nda);EVb(this);c?this.sGa=setTimeout(function(){g.loadNewVideoConfig(c)},0):d&&(FVb(this),
GVb(this))};
_.z(du,_.vg);du.prototype.getId=function(){return this.playerId};
du.prototype.loadNewVideoConfig=function(a){if(!this.isDisposed()){this.sGa&&(clearTimeout(this.sGa),this.sGa=0);var b=a||{};b instanceof MGb||(b=new MGb(b));this.config=b;this.setConfig(a);GVb(this);this.isReady()&&HVb(this)}};
var FVb=function(a){var b;a.webPlayerContextConfig?b=a.webPlayerContextConfig.rootElementId:b=a.config.attrs.id;a.elementId=b||a.elementId;a.elementId==="video-player"&&(a.elementId=a.playerId,a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId=a.playerId:a.config.attrs.id=a.playerId);var c;((c=a.vH)==null?void 0:c.id)===a.elementId&&(a.elementId+="-player",a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId=a.elementId:a.config.attrs.id=a.elementId)};
du.prototype.setConfig=function(a){this.msb=a;this.config=IVb(a);FVb(this);if(!this.uNa){var b;this.uNa=JVb(this,((b=this.config.args)==null?void 0:b.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var c;if((c=this.config)==null?0:c.attrs)a=this.config.attrs,(b=a.width)&&this.vH&&(this.vH.style.width=bz(Number(b)||b,!0)),(a=a.height)&&this.vH&&(this.vH.style.height=bz(Number(a)||a,!0))};
var HVb=function(a){if(a.config&&a.config.loaded!==!0)if(a.config.loaded=!0,!a.config.args||a.config.args.autoplay!=="0"&&a.config.args.autoplay!==0&&a.config.args.autoplay!==!1){var b;a.api.loadVideoByPlayerVars((b=a.config.args)!=null?b:null)}else a.api.cueVideoByPlayerVars(a.config.args)},LVb=function(a){var b=!0,c=a.getPlayerElement();
c&&a.config&&(b=c.dataset.version===KVb(a));return b&&!!_.Ji("yt.player.Application.create")},GVb=function(a){if(!a.isDisposed()&&!a.lCa){var b=LVb(a);
if(b&&(a.getPlayerElement()?"html5":null)==="html5")a.uCa="html5",a.isReady()||MVb(a);else if(NVb(a),a.uCa="html5",b&&a.yT&&a.targetElement)a.targetElement.appendChild(a.yT),MVb(a);else{a.config&&(a.config.loaded=!0);var c=!1;a.eja=function(){c=!0;var d=OVb(a,"player_bootstrap_method")?_.Ji("yt.player.Application.createAlternate")||_.Ji("yt.player.Application.create"):_.Ji("yt.player.Application.create");var e=a.config?IVb(a.config):void 0;d&&d(a.targetElement,e,a.webPlayerContextConfig,a.dMc);MVb(a)};
a.lCa=!0;b?a.eja():(_.Kn(KVb(a),a.eja),(b=PVb(a))&&hCa(b||""),QVb(a)&&!c&&_.Rj("yt.player.Application.create",null))}}};
du.prototype.getPlayerElement=function(){var a=_.cu(document,this.elementId);!a&&this.vH&&this.vH.querySelector&&(a=this.vH.querySelector("#"+this.elementId));return a};
var MVb=function(a){if(!a.isDisposed()){var b=a.getPlayerElement(),c=!1;b&&b.getApiInterface&&b.getApiInterface()&&(c=!0);if(c){a.lCa=!1;if(!OVb(a,"html5_remove_not_servable_check_killswitch")){var d;if((b==null?0:b.isNotServable)&&a.config&&(b==null?0:b.isNotServable((d=a.config.args)==null?void 0:d.video_id)))return}RVb(a)}else a.s7b=setTimeout(function(){MVb(a)},50)}},RVb=function(a){EVb(a);
a.nbb=!0;var b=a.getPlayerElement();if(b){a.v9=SVb(a,b,"addEventListener");a.uMa=SVb(a,b,"removeEventListener");var c=b.getApiInterface();c=c.concat(b.getInternalApiInterface());for(var d=a.api,e=0;e<c.length;e++){var g=c[e];d[g]||(d[g]=SVb(a,b,g))}}for(var k in a.nC)a.nC.hasOwnProperty(k)&&a.v9&&a.v9(k,a.nC[k]);HVb(a);a.uNa&&a.uNa(a.api);a.nda.publish("onReady",a.api)},SVb=function(a,b,c){var d=b[c];
return function(){var e=_.Kd.apply(0,arguments);try{return a.lastError=null,d.apply(b,e)}catch(g){if(c!=="sendAbandonmentPing")throw g.params=c,a.lastError=g,e=new _.qj("PlayerProxy error in method call",{error:g,method:c,playerId:a.playerId}),e.level="WARNING",e;}}},EVb=function(a){a.nbb=!1;
if(a.uMa)for(var b in a.nC)a.nC.hasOwnProperty(b)&&a.uMa(b,a.nC[b]);for(var c in a.ola)a.ola.hasOwnProperty(c)&&clearTimeout(Number(c));a.ola={};a.v9=null;a.uMa=null;b=a.api;for(var d in b)b.hasOwnProperty(d)&&(b[d]=null);b.addEventListener=function(e,g){a.addEventListener(e,g)};
b.removeEventListener=function(e,g){a.removeEventListener(e,g)};
b.destroy=function(){a.dispose()};
b.getLastError=function(){return a.getLastError()};
b.getPlayerType=function(){return a.getPlayerType()};
b.getCurrentVideoConfig=function(){return a.msb};
b.loadNewVideoConfig=function(e){a.loadNewVideoConfig(e)};
b.isReady=function(){return a.isReady()}};
du.prototype.isReady=function(){return this.nbb};
du.prototype.addEventListener=function(a,b){var c=this;this.isDisposed();var d=JVb(this,b);d&&(_.Oa(this.tSc,a)||this.nC[a]||(b=TVb(this,a),this.v9&&this.v9(a,b)),this.nda.subscribe(a,d),a==="onReady"&&this.isReady()&&setTimeout(function(){d(c.api)},0))};
du.prototype.removeEventListener=function(a,b){this.isDisposed()||(b=JVb(this,b))&&this.nda.unsubscribe(a,b)};
var JVb=function(a,b){var c=b;if(typeof b==="string"){if(a.oSa[b])return a.oSa[b];c=function(){var d=_.Kd.apply(0,arguments),e=_.Ji(b);if(e)try{e.apply(_.ja,d)}catch(g){throw d=new _.qj("PlayerProxy error when executing callback",{error:g}),d.level="ERROR",d;}};
a.oSa[b]=c}return c?c:null},TVb=function(a,b){var c=function(d){var e=function(){a.isDisposed();
if(!a.isDisposed())try{a.nda.publish(b,d!=null?d:void 0)}catch(m){var k=new _.qj("PlayerProxy error when creating global callback",{error:m.message,event:b,playerId:a.playerId,data:d,originalStack:m.stack,componentStack:m.componentStack});k.level="WARNING";throw k;}};
if(OVb(a,"web_player_publish_events_immediately"))e();else{var g=setTimeout(function(){e();_.Cf.remove(a.ola,String(g))},0);
_.Cf.add(a.ola,String(g),!0)}};
return a.nC[b]=c};
du.prototype.getPlayerType=function(){return this.uCa||(this.getPlayerElement()?"html5":null)};
du.prototype.getLastError=function(){return this.lastError};
var NVb=function(a){a.cancel();EVb(a);a.uCa=null;a.config&&(a.config.loaded=!1);var b=a.getPlayerElement();b&&(LVb(a)||!QVb(a)?a.yT=b:(b&&b.destroy&&b.destroy(),a.yT=null));a.targetElement&&_.Vy(a.targetElement)};
du.prototype.cancel=function(){this.eja&&_.DBa(KVb(this),this.eja);clearTimeout(this.s7b);this.lCa=!1};
du.prototype.disposeInternal=function(){NVb(this);if(this.yT&&this.config&&this.yT.destroy)try{this.yT.destroy()}catch(b){var a=new _.qj("PlayerProxy error during disposal",{error:b});a.level="ERROR";throw a;}this.oSa=null;for(a in this.nC)this.nC.hasOwnProperty(a)&&delete this.nC[a];this.msb=this.config=this.api=null;delete this.targetElement;delete this.vH;_.vg.prototype.disposeInternal.call(this)};
var QVb=function(a){var b,c;a=(b=a.config)==null?void 0:(c=b.args)==null?void 0:c.fflags;return!!a&&a.indexOf("player_destroy_old_version=true")!==-1},KVb=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:(a=a.config.assets)?a.js:""},PVb=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.cssUrl:(a=a.config.assets)?a.css:""},OVb=function(a,b){if(a.webPlayerContextConfig)var c=a.webPlayerContextConfig.serializedExperimentFlags;
else{var d;if((d=a.config)==null?0:d.args)c=a.config.args.fflags}return(c||"").split("&").includes(b+"=true")},IVb=function(a){for(var b={},c=_.h(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;
var e=a[d];b[d]=typeof e==="object"?_.Cf.clone(e):e}return b};var MUa={},LUa="player_uid_"+(Math.random()*1E9>>>0);var dJ=function(a,b,c,d,e,g){b=b===void 0?document.createElement("div"):b;this.webPlayerContextConfig=a;this.container=b;this.commandResolver=c;this.apiResolver=PUa();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.hq;d||g?UVb(this):VVb(this);this.pendingPlayerResponse=d;this.pendingWatchNextResponse=e;this.pendingPlayerVars=g;WVb(this)};
dJ.prototype.loadVideoWithPlayerResponse=function(a,b,c){this.loadVideo(a,b,c)};
dJ.prototype.loadVideoWithPlayerVars=function(a){return this.loadVideo(void 0,void 0,a)};
dJ.prototype.destroy=function(a){if(a=_.cu(document,a))a=LUa+"_"+_.$a(a),(a=MUa[a])&&a.dispose()};
var YVb=function(a,b){var c;_.l(function(d){if(d.nextAddress==1)return a.pendingWatchNextResponse=b,a.synchronousApi?(c=a.synchronousApi,d.jumpTo(2)):_.p(d,a.api,3);d.nextAddress!=2&&(c=d.yieldResult);XVb(a,c);a.pendingWatchNextResponse&&(c.updateVideoData({raw_watch_next_response:a.pendingWatchNextResponse}),a.pendingWatchNextResponse=void 0);_.ue(d)})},XVb=function(a,b){var c;
if(!(b==null?0:(c=b.isReady)==null?0:c.call(b))){var d;a=new _.qj("playerApi is falsey",{synchronousApi:a.synchronousApi,apiResolved:a.apiResolver.resolved,playerApiUndefined:b===void 0,playerApiNull:b===null,playerApiReady:(b==null?void 0:(d=b.isReady)==null?void 0:d.call(b))===!0,playerApiMethods:b?Object.keys(b):[]});_.Bl(a)}},ZVb=function(a,b){if(typeof a[b]==="function")return a[b]()},$Vb=function(a){var b=window,c,d=(c=b.ytplayer)==null?void 0:c.bootstrapPlayerContainer;
if((c=d==null?void 0:d.firstElementChild)&&_.aA(c,"html5-video-player")){var e,g,k=(e=b.ytplayer)==null?void 0:(g=e.bootstrapWebPlayerContextConfig)==null?void 0:g.contextId;e=a.webPlayerContextConfig.contextId;if(k&&k===e){d!==a.container&&(d=!1,ZVb(c,"getPlayerState")===2&&(d=!0),a.container.appendChild(c),d||ZVb(c,"playVideo"));var m;if((m=b.ytplayer)==null?0:m.bootstrapPlayerResponse)a.bootstrapPlayerResponse=b.ytplayer.bootstrapPlayerResponse}}},WVb=function(a){var b,c,d,e,g;
_.l(function(k){if(k.nextAddress==1)return a.pageReadyOrDataAvailable?k.jumpTo(2):_.p(k,a.pageReadyOrDataAvailableResolver.promise,2);if(k.nextAddress!=4)return!_.w("kevlar_player_unified_player_loading")||CUa()&&EUa()?k.jumpTo(4):_.p(k,JUa(),4);$Vb(a);if(a.pendingPlayerResponse||a.pendingPlayerVars)b=KUa(a.pendingPlayerResponse,a.pendingWatchNextResponse,a.pendingPlayerVars),a.pendingPlayerResponse&&a.pendingPlayerResponse===a.bootstrapPlayerResponse&&(b.loaded=!0),a.bootstrapPlayerResponse=void 0;
c=OUa(a.container,b,a.webPlayerContextConfig);((d=b)==null?0:d.loaded)&&a.pendingWatchNextResponse?(YVb(a,a.pendingWatchNextResponse),a.pendingPlayerResponse=void 0,a.pendingPlayerVars=void 0):aWb(a);e=function(m){c.removeEventListener("onReady",e);a.synchronousApi=m;a.apiResolver.resolve(m)};
c.addEventListener("onReady",e);a.commandResolver!==void 0&&(g=a.commandResolver,c.addEventListener("innertubeCommand",function(m){g(m)}));
_.ue(k)})};
dJ.prototype.loadVideo=function(a,b,c){var d=this,e,g,k,m,n,r,t,u,x;return _.l(function(A){if(A.nextAddress==1)return d.pendingPlayerResponse=a,d.pendingWatchNextResponse=b,d.pendingPlayerVars=c,UVb(d),d.synchronousApi?(e=d.synchronousApi,A.jumpTo(2)):_.p(A,d.api,3);A.nextAddress!=2&&(e=A.yieldResult);XVb(d,e);k=new Promise(function(C){g=C});
m=function(){var C=e.getPlayerResponse();C&&(e.removeEventListener("onVideoDataChange",m),g(C))};
e.addEventListener("onVideoDataChange",m);if(d.pendingPlayerResponse||d.pendingPlayerVars)d.pendingPlayerResponse&&d.pendingPlayerResponse===d.bootstrapPlayerResponse?(g(d.pendingPlayerResponse),d.pendingWatchNextResponse&&YVb(d,d.pendingWatchNextResponse)):(n=KUa(d.pendingPlayerResponse,d.pendingWatchNextResponse,d.pendingPlayerVars),(x=(r=d.pendingPlayerResponse)==null?void 0:(t=r.playerConfig)==null?void 0:(u=t.playbackStartConfig)==null?void 0:u.startPaused)?e.cueVideoByPlayerVars(n.args):e.loadVideoByPlayerVars(n.args)),
aWb(d),d.bootstrapPlayerResponse=void 0;return A.return(k)})};
var VVb=function(a){if(document.readyState==="complete"||document.readyState==="interactive")UVb(a);else{var b=function(){document.removeEventListener("DOMContentLoaded",b);UVb(a)};
document.addEventListener("DOMContentLoaded",b)}},UVb=function(a){a.pageReadyOrDataAvailable=!0;
a.pageReadyOrDataAvailableResolver.resolve()},aWb=function(a){a.pendingPlayerResponse=void 0;
a.pendingWatchNextResponse=void 0;a.pendingPlayerVars=void 0};
_.Um.Object.defineProperties(dJ.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var eJ=function(a){PB.call(this,a===void 0?"document_active":a);var b=this;this.overridePriority=10;this.hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(c){b.transition("document_disposed",{event:c})});
window.addEventListener("beforeunload",function(c){b.transition("document_disposed_preventable",{event:c})});
window.addEventListener("unload",function(c){b.transition("document_disposed",{event:c});b.hasRun=new Map})};
_.z(eJ,PB);
eJ.prototype.runPreventableDispose=function(a,b){if(!this.hasRun.get("document_disposed_preventable")){a(b==null?void 0:b.event);var c,d;if((b==null?0:(c=b.event)==null?0:c.defaultPrevented)||(b==null?0:(d=b.event)==null?0:d.returnValue)){b.event.returnValue||(b.event.returnValue=!0);b.event.defaultPrevented||b.event.preventDefault();this.hasRun=new Map;this.transition("document_active");return}}this.hasRun.set("document_disposed_preventable",!0);this.hasRun.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")};
eJ.prototype.runDispose=function(a,b){this.hasRun.get("document_disposed")?this.transition("document_active"):(a(b==null?void 0:b.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
eJ.prototype.runFlush=function(a,b){a(b==null?void 0:b.event);this.transition("document_active")};
eJ.prototype.runActive=function(){};var fJ=function(a){PB.call(this,a===void 0?"document_visibility_unknown":a);var b=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.runVisible},{from:"document_visibility_unknown",to:"document_hidden",action:this.runHidden},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_visible",to:"document_hidden",action:this.runHidden},
{from:"document_visible",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visible",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_hidden",action:this.runHidden},{from:"document_foregrounded",to:"document_foregrounded",action:this.runForegrounded},{from:"document_hidden",to:"document_visible",action:this.runVisible},{from:"document_hidden",to:"document_backgrounded",
action:this.runBackgrounded},{from:"document_hidden",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_backgrounded",to:"document_visible",action:this.runVisible}];document.addEventListener("visibilitychange",function(c){document.visibilityState==="visible"?b.transition("document_visible",{event:c}):b.transition("document_hidden",
{event:c})});
_.w("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(c){b.transition("document_backgrounded",{event:c})}),window.addEventListener("focus",function(c){b.transition("document_foregrounded",{event:c})}))};
_.z(fJ,PB);fJ.prototype.runVisible=function(a,b){a(b==null?void 0:b.event);_.w("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
fJ.prototype.runHidden=function(a,b){a(b==null?void 0:b.event);_.w("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
fJ.prototype.runBackgrounded=function(a,b){a(b==null?void 0:b.event)};
fJ.prototype.runForegrounded=function(a,b){a(b==null?void 0:b.event)};var gJ=function(){this.teardownLifecycle=new eJ;this.visibilityLifecycle=new fJ};
gJ.prototype.install=function(){var a=_.Kd.apply(0,arguments),b=this;a.forEach(function(c){b.teardownLifecycle.install(c)});
a.forEach(function(c){b.visibilityLifecycle.install(c)})};var hJ=function(){gJ.call(this);var a={};this.install((a.document_disposed={callback:this.abortSlisAndFlush},a));_.w("combine_ve_grafts")&&(a={},this.install((a.document_disposed={callback:this.flushInteractionLoggingAttachVes},a)));a={};this.install((a.flush_logs={callback:this.logFinalPayload},a));_.w("web_log_cfg_cee_ks")||_.sl(_.zk,bWb)};
_.z(hJ,gJ);var QUa=function(){hJ.loggingInstance||(hJ.loggingInstance=new hJ);return hJ.loggingInstance};
hJ.prototype.logFinalPayload=function(){if(_.w("web_fp_via_jspb")){var a=new Inb,b=_.En();b&&_.vf(a,1,b);b=_.w("jspb_sparse_encoded_pivot")?new rl([{}]):new rl;_.rd(b,380,Jnb,a);zCa("finalPayload",b);_.w("web_fp_via_jspb_and_json")&&_.xl("finalPayload",{csn:_.En()})}else _.xl("finalPayload",{csn:_.En()})};
hJ.prototype.abortSlisAndFlush=function(){wGb(XE);YE!=null&&YE.flush()};
hJ.prototype.flushInteractionLoggingAttachVes=function(){QIb(_.ls())};
var bWb=function(){var a=_.Fi("CLIENT_EXPERIMENT_EVENTS");if(a){var b=Vaa();a=_.h(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b(c)&&_.xl("genericClientExperimentEvent",{eventType:c});delete _.Di.CLIENT_EXPERIMENT_EVENTS}};var cWb={};
cWb.YtPlayerBehavior=[_.bJ.YtPlayerListenerBehavior,{properties:{watchNextData:{type:Object,observer:"watchNextDataChanged_"},context:{type:String},playerId:{type:String},disableTouchGestures:{type:Boolean}},listeners:{pinchout:"onPinchOut_",pinchin:"onPinchIn_",touchstart:"onTouchStart_"},created:function(){var a=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.hq;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;RUa(function(){a.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.Bm(this,"pan-down"),_.w("kevlar_pinch_fullscreen")&&_.tG().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.w("kevlar_pinch_fullscreen")&&_.tG().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(a,b,c){var d=this;eu(this.useUnifiedPlayer_());if(this.mainAppPlayer_)eu(!1,"MainAppPlayer already created.");else{var e=_.w("kevlar_player_container_query_killswitch")?this.$.container:_.E(this.hostElement).querySelector("#container");this.mainAppPlayer_=new dJ(this.getWebPlayerContextConfig_(),e,function(g){return _.hs(g,d.hostElement)},a,b,c);
this.mainAppPlayer_.api.then(function(g){d.player_=g;d.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&OJb.resolve(g)})}},
loadVideoWithPlayerResponse:function(a,b){var c=this;if(this.useUnifiedPlayer_()){var d=this.watchNextData,e,g=(e=a.videoDetails)==null?void 0:e.videoId,k,m,n;(e=(k=this.watchNextData)==null?void 0:(m=k.currentVideoEndpoint)==null?void 0:(n=m.watchEndpoint)==null?void 0:n.videoId)&&g!=e&&(d=void 0,_.w("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(a,d,b):this.createMainAppPlayer_(a,d,b);this.mainAppPlayer_.api.then(function(){_.io(c.hostElement,
"yt-player-updated")})}else this.update(yUa(a,b))},
loadVideoWithPlayerVars:function(a){var b=this;this.useUnifiedPlayer_()?(_.w("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(a):this.createMainAppPlayer_(void 0,void 0,a),this.mainAppPlayer_.api.then(function(){_.io(b.hostElement,"yt-player-updated")})):this.update({args:a})},
update:function(a){var b=this;if(this.useUnifiedPlayer_())eu(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(a);var c=PBa(a.args);c&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==c&&Object.assign(a.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(a).then(function(d){_.io(b.hostElement,"yt-player-updated",_.w("kevlar_player_updated_obsolete_player_killswitch")?
d:void 0)})}_.Cl(new _.qj("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,b.getPlayerPromise(),2);c=d.yieldResult;if(!c)throw Error("yh");a&&b.updatePlayerPlaylist_(a);_.ue(d)})},
acquireApi_:function(a){var b=this;if(this.useUnifiedPlayer_())eu(!1,"Invalid method call in kevlar_unified_player.");else return _.zk.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(eu(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(c){b.shouldAutoplay_(a)?c.loadVideoByPlayerVars(a.args):c.cueVideoByPlayerVars(a.args)})):this.initPlayerPromise_=this.initPlayerContainer_(a),this.initPlayerPromise_},
initPlayerContainer_:function(a){var b=this;if(this.useUnifiedPlayer_())eu(!1,"Invalid method call in kevlar_unified_player.");else return eu(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Dl(Error("zh")),eu(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.w("kevlar_player_container_query_killswitch")?this.$.container:_.E(this.hostElement).querySelector("#container"),JUa().then(function(){var c=b.initPlayer_(a);b.playerResolver_.resolve(c);
return c})},
onPlayerReady_:function(a,b){this.useUnifiedPlayer_()?eu(!1,"Invalid method call in kevlar_unified_player."):(a.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&OJb.resolve(a),b(a))},
maybeCallApiMethodOnElement_:function(a,b){if(typeof a[b]==="function")return a[b]()},
maybeAdoptBootstrapPlayer_:function(){var a=window,b,c=(b=a.ytplayer)==null?void 0:b.bootstrapPlayerContainer;if((b=c==null?void 0:c.firstElementChild)&&b.classList.contains("html5-video-player")){var d,e,g=(d=a.ytplayer)==null?void 0:(e=d.bootstrapWebPlayerContextConfig)==null?void 0:e.contextId;d=this.getWebPlayerContextConfig_().contextId;if(g&&g===d){c!==this.playerContainer_&&(c=!1,this.maybeCallApiMethodOnElement_(b,"getPlayerState")===2&&(c=!0),this.playerContainer_.appendChild(b),c||this.maybeCallApiMethodOnElement_(b,
"playVideo"));var k;if((k=a.ytplayer)==null?0:k.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=a.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(a){var b=this;if(this.useUnifiedPlayer_())eu(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(c){b.maybeAdoptBootstrapPlayer_();var d=a?zUa(a):void 0;d&&d==b.bootstrapPlayerResponse_&&(a.loaded=!0);d=b.playerContainer_;var e=b.getWebPlayerContextConfig_();d=OUa(d,a,e);b.player_=d;b.onPlayerReadyEvent_=b.onPlayerReady_.bind(b,b.player_,c);b.player_.addEventListener("onReady",b.onPlayerReadyEvent_);b.player_.addEventListener("innertubeCommand",
b.onPlayerInnerTubeCommand_.bind(b))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(a){a.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(a){a.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var a=_.v().resolve(_.Zt).getCurrentPage();a&&a.getScrollTop()<=0?_.Bm(this,"pan-down"):_.Bm(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(a){a.isFullscreen()||a.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(a){a.isFullscreen()&&a.toggleFullscreen()})},
updatePlayerPlaylist_:function(a){var b=this,c,d,e;return _.l(function(g){if(g.nextAddress==1)return c=_.v().resolve(_.Xi(_.TF)),d=!!(c&&c.playlistComponent&&c.playlistComponent.loopOn),_.p(g,b.getPlayerPromise(),2);var k=e=g.yieldResult,m=k.updatePlaylist,n=[];if(_.w("kevlar_player_playlist_use_local_index")){var r,t;var u=(t=(r=a.localCurrentIndex)!=null?r:a.currentIndex)!=null?t:0}else{var x;u=(x=a.currentIndex)!=null?x:0}if(a.contents)for(r=0;r<a.contents.length;r++)if((t=a.contents[r])&&t.playlistPanelVideoRenderer)if(aHa(t)){t=
t.playlistPanelVideoRenderer;x="";t.shortBylineText&&(x=_.Wp(t.shortBylineText));var A="";t.title?A=_.Wp(t.title):t.unplayableText&&(A=_.Wp(t.unplayableText));n.push({author:x,title:A,encrypted_id:t.videoId})}else r<u&&--u;m.call(k,{index:u,list:a.playlistId?a.playlistId:"",loop:d,playlist_title:a.title,playlist_length:n.length,video:n,fetch:0,external_list:"1",title:a.title?a.title:"",playlist_author:a.ownerName?_.Wp(a.ownerName):void 0});_.ue(g)})},
focusOnPlayer:function(){_.Qm(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var a=this.playerContainer_.querySelector(".html5-video-player");a&&(_.dWb(_.v().resolve(_.Ct)),a.focus())}})},
preparePlayer:function(){var a=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(b){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")b();else{var c=function(){document.removeEventListener("DOMContentLoaded",c);b()};
document.addEventListener("DOMContentLoaded",c)}})).then(function(){return JUa()}).then(function(){a.initPlayerPromise_||a.preparePlayerJobId_||(a.preparePlayerJobId_=_.sl(_.zk,function(){a.initPlayerPromise_||(a.initPlayerPromise_=a.initPlayerContainer_())}))}):_.Cl(new _.qj("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(a){this.useUnifiedPlayer_()?eu(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(a)||(a.args.autoplay="0")},
shouldAutoplay_:function(a){if(this.useUnifiedPlayer_())eu(!1,"Invalid method call in kevlar_unified_player.");else{var b=this.get("args.el",a);return b&&b!="detailpage"&&this.isMiniplayerActive_()||b&&(b=="sponsorshipsoffer"||b=="handlesclaiming")&&this.get("args.autoplay",a)=="0"?!1:(a=zUa(a))&&this.get("playerConfig.playbackStartConfig.startPaused",a)?!1:!0}},
isMiniplayerActive_:function(){return _.v().resolve(_.$w).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var a=this.getPlayer();if(a){var b=a.getPlayerState();_.w("kevlar_player_check_ad_state_on_stop")&&(b=a.getPlayerState(a.getPresentingPlayerType()));b!=5&&a.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(a,b,c){c=c===void 0?!1:c;var d=this,e,g,k,m;return _.l(function(n){if(n.nextAddress==1)return b||(b=d.hostElement),e=d.useUnifiedPlayer_()?!!d.mainAppPlayer_:!!d.initPlayerPromise_,e?_.p(n,d.getPlayerPromise(),2):(c?a.insertBefore(b,a.firstChild):a.appendChild(b),n.return());g=n.yieldResult;k=g.getPlayerState(g.getPresentingPlayerType());m=!1;if(k==-1||k==1||k==3)m=!0;c?a.insertBefore(b,a.firstChild):a.appendChild(b);m&&g.playVideo();g.setSize(NaN,NaN);_.ue(n)})},
watchNextDataChanged_:function(a){var b=this;a&&(this.useUnifiedPlayer_()&&_.w("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&YVb(this.mainAppPlayer_,a):this.getPlayerPromise().then(function(c){c.updateVideoData(b.computeWatchNextPlayerVars_(a))}))},
computeWatchNextPlayerVars_:function(a){if(this.useUnifiedPlayer_()&&_.w("kevlar_unified_player_update_watch_next_killswitch"))eu(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:a}},
maybeSendAbandonmentPing_:function(){var a=this.getPlayer();a&&a.getPlayerState()!=5&&a.getPlayerState()!=0&&a.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var a=_.Fi("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(a=Object.assign({},a),a.rootElementId=this.playerId);a.serializedExperimentIds&&a.serializedExperimentFlags||_.Dl(Error("Ah"));return a},
hasWebPlayerContextConfig_:function(){return!!_.Fi("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(a){this.useUnifiedPlayer_()?eu(!1,"Invalid method call in kevlar_unified_player."):_.hs(a,this.hostElement)},
useUnifiedPlayer_:function(){var a=_.w("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.w("kevlar_unified_player")||a}}];var eWb={};eWb.YtPlaylistPanelBehavior=[_.Z.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(a){a=a.detail;if(a.actions.loop!=void 0||a.actions["yt-icons:loop"]!=void 0)this.loopOn=a.actions.loop||a.actions["yt-icons:loop"];if(a.actions.shuffle!=void 0||a.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=a.actions.shuffle||a.actions["yt-icons:shuffle"]},
setMenuData_:function(a){if(!a||!a.playlistButtons||a.isInfinite)return null;for(var b=a.playlistButtons.menuRenderer.topLevelButtons,c=b.length,d=0;d<c;d++)if(b[d].toggleButtonRenderer){var e=b[d].toggleButtonRenderer;e.defaultIcon.iconType=="LOOP"&&this.loopOn?e.isToggled=this.loopOn:e.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(e.isToggled=this.shuffleOn)}return a.playlistButtons}}];var fWb=function(a){bn.call(this,a,132);this.isDocument=a===document.documentElement};
_.z(fWb,bn);fWb.prototype.calculateScrollDelta=function(a,b,c){var d=0;a<b?d=a<b-100?-48:-8:a>b+c&&(d=a>b+c+100?48:8);return d};
fWb.prototype.JSC$9126_onMouseMove=function(a){this.isDocument||(a.clientX=a.event_.pageX,a.clientY=a.event_.pageY);bn.prototype.JSC$9126_onMouseMove.call(this,a)};var iJ=function(){var a=_.kr.apply(this,arguments)||this;a._noAccessors=!0;a.scrollElement=document.documentElement;a.JSC$12069_dragListGroup=null;a.dragScrollSupport=null;a.onDraggerCreated=function(b){var c=b.JSC$9122_dragger;c.scrollTarget_=a.scrollElement;b=b.draggerEl;c&&b.menuOpened&&c.setEnabled(!1)};
a.onDragStart=function(b){var c=b.draggerEl;b=b.currDragItem;var d=Object.assign({},b==null?void 0:b.data);d.trackingParams=void 0;c.data=d;c.style.position="absolute";c.style.width=(b==null?void 0:b.clientWidth)+"px";c.style.zIndex="2030";c.onDrag&&c.onDrag();_.w("web_owner_document_fallback_killswitch")?(b=document.querySelector("ytd-app"))&&_.E(b).appendChild(c):(b=_.Hf(c),(d=b.querySelector("ytd-app"))?_.E(d).appendChild(c):b.body.appendChild(c));a.dragScrollSupport=new fWb(a.scrollElement);a.dragScrollSupport.horizontalScrolling_=
!1;c=a.dragScrollSupport;c.constrainScroll_=!!c.margin_&&!1};
a.onDrop=function(b){a.handleDrop(b);a.dragScrollSupport&&(_.Xf(a.dragScrollSupport),a.dragScrollSupport=null)};
a.onReorderableScroll=function(){if(a.JSC$12069_dragListGroup){var b=a.JSC$12069_dragListGroup;Arb(b,b.currDragItem_)}};
return a};
_.z(iJ,_.kr);iJ.prototype.detached=function(){_.gWb(this)};
_.gWb=function(a){a.JSC$12069_dragListGroup&&(_.Gz(a.JSC$12069_dragListGroup,rrb,a.onDragStart),_.Gz(a.JSC$12069_dragListGroup,vrb,a.onDragStart),a.JSC$12069_dragListGroup.dispose(),a.JSC$12069_dragListGroup=null);a.dragScrollSupport&&(_.Xf(a.dragScrollSupport),a.dragScrollSupport=null);a.scrollElement.removeEventListener("scroll",a.onReorderableScroll)};
_.hWb=function(a,b,c,d){d=d===void 0?"":d;_.gWb(a);c&&(a.scrollElement=c);a.JSC$12069_dragListGroup=new WC;a.JSC$12069_dragListGroup.hysteresisDistance_=2;xrb(a.JSC$12069_dragListGroup,b);a.JSC$12069_dragListGroup.draggerElClasses_=_.tx("dragging").split(" ");d&&yrb(a.JSC$12069_dragListGroup,function(e){var g=e||document,k=null;g.getElementsByClassName?k=g.getElementsByClassName(d)[0]:k=Ucb("*",d,e);return k||e});
_.rs(a.JSC$12069_dragListGroup,prb,a.onDraggerCreated);_.rs(a.JSC$12069_dragListGroup,rrb,a.onDragStart);_.rs(a.JSC$12069_dragListGroup,vrb,a.onDrop);a.JSC$12069_dragListGroup.init();a.scrollElement.addEventListener("scroll",a.onReorderableScroll,{passive:!0})};
iJ.prototype.handleDrop=function(){};
_.Um.Object.defineProperties(iJ.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
var iWb=iJ;_.U([_.O({value:100}),_.W("design:type",Number)],iWb.prototype,"scrollMargin",void 0);iWb=_.U([_.lr()],iWb);_.jWb=[iWb.prototype];_.jJ={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(a,b,c){var d=this.getClickTarget_(b);if(d&&this.isClickAllowed_(d)){b.preventDefault();a=(0,_.Cf.unsafeClone)(a);var e=this.getContainerBoundingRect();b=this.getRelativeClickXy_(b,e);this.expandEndpointUrlMacros_(a,{NX:b[0],NY:b[1],NB:d.code});c&&this.truncateWebCommendMetadataUrl_(a);_.io(this.hostElement,"yt-navigate",{endpoint:a})}},
getClickTarget_:function(a){if(!this.clickTargetMap)return null;a=_.Rq(a)||[];a=_.h(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;if(b===_.E(this.hostElement).querySelector("#menu"))break;if(b=this.clickTargetMap.get(b.id))return b}return null},
getRelativeClickXy_:function(a,b){var c=a.detail.x,d=a.detail.y;_.w("use_on_click_for_desktop_display_ad")&&a.clientX!=null&&a.clientY!=null&&(c=a.clientX,d=a.clientY);a=Math.round(c-b.left);b=Math.round(d-b.top);return a<0||b<0?[null,null]:[a,b]},
getContainerBoundingRect:function(){return _.E(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(a,b){for(var c=_.h(a.loggingUrls||[]),d=c.next();!d.done;d=c.next())d=d.value,d.baseUrl&&(d.baseUrl=Hga(d.baseUrl,b));a.urlEndpoint&&a.urlEndpoint.url&&(a.urlEndpoint.url=Hga(a.urlEndpoint.url,b));a.commandMetadata&&a.commandMetadata.webCommandMetadata&&a.commandMetadata.webCommandMetadata.url&&(a.commandMetadata.webCommandMetadata.url=Hga(a.commandMetadata.webCommandMetadata.url,b))},
truncateWebCommendMetadataUrl_:function(a){if(a.commandMetadata&&a.commandMetadata.webCommandMetadata&&a.commandMetadata.webCommandMetadata.url){var b=a.commandMetadata.webCommandMetadata.url,c=b.indexOf("&pp=");if(c>0){var d=b.indexOf("&",c+1);a.commandMetadata.webCommandMetadata.url=d>c&&d<b.length?b.slice(0,c)+b.slice(d):b.slice(0,c)}}},
configureClickTargets:function(a,b,c){this.containerId=a;this.clickTargetMap=new Map;a=_.h(b);for(b=a.next();!b.done;b=a.next())if(b=b.value,b.location){var d=c.get(b.location);d&&(_.br(_.E(this.hostElement).querySelector("#"+d),"yt-simple-endpoint",this.isClickAllowed_(b)),this.clickTargetMap.set(d,b))}},
isClickAllowed_:function(a){return a.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||a.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||a.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||a.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.kJ={};
_.kJ.YtLazyListBehavior=[_.$G.YtTaskEmitterBehavior,{_noAccessors:!0,properties:{initialCount:{type:Number,value:4},targetFramerate:{type:Number,value:20},minChunkSize:{type:Number,value:1},autoFill:{type:Boolean,value:!1},disableAutoFill:{type:Boolean,value:!1},shownItems:Array,shownCount:{type:Number,value:0},canShowMore:{type:Boolean,notify:!0,reflectToAttribute:!0,observer:"onCanShowMoreUpdated_"},renderDelay:Number,targetFrameTime_:{type:Number,computed:"computeFrameTime_(targetFramerate)"},canScheduleJobs:{type:Boolean,
value:!0,observer:"canScheduleJobsChanged_"}},itemsPath:"data.items",beforeRegister:function(){if(this.itemsPath)if(this.getItemsPath&&this.getItemsPath instanceof Function&&(this.itemsPath=this.getItemsPath()),this.useSignals)this.addReactiveSchema({type:"observe",method:{methodName:"deepLazyListObserver_",args:[{type:"wildcard",path:this.itemsPath}]}});else{var a=(this.constructor.generatedFrom||this).observers;a||(a=[]);a.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
a}},
created:function(){this.boundRenderChunk_=this.renderChunk_.bind(this);this.items_=null;this.lazyListRenderJobId_=this.chunkCount_=this.lastChunkTime_=this.length_=0;this.nonDeferredItemCount=-1;this.renderElementsOutsideVisibleArea_=null;this.partiallyRenderedItems_=new WeakSet},
fillRemainingListItems:function(){this.fillRange_(this.shownCount,this.length_)},
renderDeferredElements:function(){var a=this.renderElementsOutsideVisibleArea_;a&&(gPb(a,4),a.processSignal())},
deepLazyListObserver_:function(a){var b=this;if(a){var c=a.value||[];if(this.itemsPath==a.path){var d=this.nonDeferredItemCount;a=0;d>-1&&c.length>d&&(a=_.Fi("REMAINING_DOVA_DEFERRED_CHUNKS",-1));a>0?(d>0&&(d=c.slice(0,d),this.setInitialItemsOnDataChanged(d)),(d=this.renderElementsOutsideVisibleArea_)?d.cancel():(d=this.renderElementsOutsideVisibleArea_=new _.bH(2,"eocs"),_.Gsa(window,"scroll",function(){return b.renderDeferredElements()})),_.cH(d,function(){b.setInitialItemsOnDataChanged(c)}),_.Ei("REMAINING_DOVA_DEFERRED_CHUNKS",
a-1)):this.setInitialItemsOnDataChanged(c)}else if(this.itemsPath+".splices"==a.path)this.onItemsUpdated_(c);
else d="shownItems"+a.path.substr(this.itemsPath.length),this.useSignals&&d==="shownItems.length"||this.notifyPath(d,a.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(a){a&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(a),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(a){a=a.indexSplices;for(var b=0,c=a.length;b<c;b++){var d=a[b];if(d.index<this.shownCount&&(d.removed&&this.splice("shownItems",d.index,d.removed.length),d.addedCount)){var e=d.object.slice(d.index,d.index+d.addedCount);d=["shownItems",d.index,0];d.push.apply(d,e);this.splice.apply(this,d)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(a){this.cancelPendingTasks_();a||(a=[]);this.items_=a;this.length_=this.items_.length;this.shownItems=this.items_.slice(0,this.initialCount);this.shownCount=this.shownItems.length;this.canShowMore=this.shownCount<this.length_;this.autoFill&&(_.Gi("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.Qm(this,this.tryRenderChunk_)))},
fillRange_:function(a,b){this.canShowMore&&this.items_&&(a=this.items_.slice(a,b),a.unshift("shownItems"),this.push.apply(this,a),this.shownCount=b,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var a=this;this.canShowMore&&_.Fr(this,"renderChunk",function(){a.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.Gi("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.zu(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var a=this.renderElementsOutsideVisibleArea_;a&&(a.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var a=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(a-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=a;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(a){return Math.ceil(1E3/a)},
onCanShowMoreUpdated_:function(a){this.data&&this.items_!==null&&(a?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(a){!this.shouldUseTaskManager()&&this.data&&(!a&&this.canShowMore?(_.lNa(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):a&&this.partiallyRenderedItems_.has(this.items_)&&(_.w("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var nJ;_.lJ={};
nJ=function(){var a=_.kr.apply(this,arguments)||this;a.atStart=!0;a.atEnd=!0;a.startIndex=0;a.endIndex=0;a.scrollCount=0;a.initialStartIndex=0;a.disableScrollEventListener=!1;a.useFloorScrolling=!1;a.isSearch=!1;a.dragging=!1;a.dragMouseStart=0;a.dragOffsetStart=0;a.disableWheelScroll=!1;a.centerListItems=!1;a.offset=0;a.minComponentWidth=0;a.marginWidthRight=0;a.marginWidthLeft=0;a.setButtonsStateRequested=!1;a.itemsVisibilityObserver=null;a.fullyVisibleItemsIndices=[];a.JSC$12080_onWheelScroll=function(b){if(a.isSearch&&
!a.disableWheelScroll&&_.w("desktop_enable_dmpanel_wheel_scroll")){var c=b.shiftKey?Math.abs(b.deltaY)>Math.abs(b.deltaX)?b.deltaY:b.deltaX:b.deltaX;c!==0&&(b.preventDefault(),a.ytLazyListBehavior.fillRemainingListItems(),a.offset+=c,mJ(a),a.reposition_())}};
a.JSC$12080_onPointerDown=function(b){kWb(a)&&(a.dragMouseStart=b.clientX,a.dragOffsetStart=a.offset,a.dragging=!0)};
a.onPointerMove=function(b){kWb(a)&&a.dragging&&(a.ytLazyListBehavior.fillRemainingListItems(),a.offset=a.dragOffsetStart-(b.clientX-a.dragMouseStart),mJ(a),a.reposition_())};
a.JSC$12080_onPointerUp=function(){kWb(a)&&(a.dragging=!1)};
return a};
_.z(nJ,_.kr);var lWb=function(a){var b=_.E(a.hostElement).querySelector("#items").children;if(!b)return 0;var c=0;a=_.h(a.fullyVisibleItemsIndices);for(var d=a.next();!d.done;d=a.next())c+=b[d.value].clientWidth;return c},kWb=function(a){return a.isSearch&&_.w("desktop_enable_dmpanel_click_drag_scroll")};
nJ.prototype.created=function(){this.cachedViewportWidth=_.Fi("initialInnerWidth")||window.innerWidth;this.JSC$12080_cachedViewportHeight=_.Fi("initialInnerHeight")||window.innerHeight;_.Fi("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.Ei("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
nJ.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.w("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();mWb(this)};
nJ.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.w("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var a;(a=this.itemsVisibilityObserver)==null||a.disconnect();this.itemsVisibilityObserver=null;var b;(b=this.itemsObserver)==null||b.disconnect()};
var mWb=function(a){var b=_.E(a.hostElement).querySelector("#scroll-container");if(b){if(!a.itemsVisibilityObserver){var c=window.getComputedStyle(b).marginRight;a.itemsVisibilityObserver=new IntersectionObserver(function(d){nWb(a,d)},{root:b,
rootMargin:c,threshold:.98})}if(b=_.E(a.hostElement).querySelector("#items"))a.itemsObserver=new eqb(b,function(d){oWb(a,d)})}},oWb=function(a,b){pWb(a)&&(Array.from(b.addedNodes).filter(function(c){return c.nodeType===Node.ELEMENT_NODE}).forEach(function(c){a.itemsVisibilityObserver&&a.itemsVisibilityObserver.observe(c)}),Array.from(b.removedNodes).filter(function(c){return c.nodeType===Node.ELEMENT_NODE}).forEach(function(c){a.itemsVisibilityObserver&&a.itemsVisibilityObserver.unobserve(c)}))},
nWb=function(a,b){var c=new Set(a.fullyVisibleItemsIndices);
b=_.h(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=d.target.parentElement;e?(e=Array.from(e.children).indexOf(d.target),d.isIntersecting?c.add(e):c.has(e)&&c.delete(e)):_.Dl(new _.qj("Parent element not found",d.target.nodeName))}a.fullyVisibleItemsIndices=Array.from(c).sort(function(g,k){return g-k});
c.size===0?_.Dl(new _.qj("No visible entries in horizontal list")):(a.startIndex=a.fullyVisibleItemsIndices[0],a.endIndex=a.fullyVisibleItemsIndices[a.fullyVisibleItemsIndices.length-1])},pWb=function(a){a.data?a=(a=a.data)&&a.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===a.itemSizeConstraint:!1:a=!1;
return a};
_.f=nJ.prototype;_.f.addScrollEventListeners=function(){var a=_.E(this.hostElement).querySelector("#scroll-container");a.style.touchAction="pan-y";a.addEventListener("wheel",this.JSC$12080_onWheelScroll);a.addEventListener("pointerdown",this.JSC$12080_onPointerDown);a.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.JSC$12080_onPointerUp)};
_.f.removeScrollEventListeners=function(){var a=_.E(this.hostElement).querySelector("#scroll-container");a.removeEventListener("wheel",this.JSC$12080_onWheelScroll);a.removeEventListener("pointerdown",this.JSC$12080_onPointerDown);a.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.JSC$12080_onPointerUp)};
_.f.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.Qm(this,this.setStartIndex,[this.initialStartIndex])};
_.f.reposition_=function(){var a=_.Fi("HTML_DIR")=="rtl"?"":"-",b=_.E(this.hostElement).querySelector("#items");b&&(b.style.transform="translateX("+a+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.f.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.Qm(this,this.setButtonsState_))};
_.f.setButtonsState_=function(){this.setButtonsStateRequested=!1;var a=_.E(this.hostElement).querySelector("#items").firstElementChild;if(a){this.minComponentWidth||(this.minComponentWidth=qWb(this,a));a=_.E(this.hostElement).querySelector("#scroll-container").clientWidth;var b=_.E(this.hostElement).querySelector("#items").clientWidth,c=this.get(this.ytLazyListBehavior.itemsPath,this);if(c){var d=Math.round(a/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/
this.minComponentWidth),this.endIndex=Math.min(this.startIndex+d,c.length)-1)}this.ytLazyListBehavior.canShowMore?b+this.minComponentWidth>=this.offset+a&&(this.atEnd=!1):this.atEnd=this.offset+a>=b-20?!0:!1;this.atStart=this.offset<=20}};
_.f.setStartIndex=function(a){if(!this.minComponentWidth){var b=_.E(this.hostElement).querySelector("#items").firstElementChild;if(!b)return;this.minComponentWidth=qWb(this,b)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*a;mJ(this);this.reposition_()};
_.f.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.wC();var a=_.E(this.hostElement).querySelector("#scroll-container").clientWidth;_.w("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=qWb(this,_.E(this.hostElement).querySelector("#items").firstElementChild));a=this.useFloorScrolling?Math.floor(a/this.minComponentWidth)||1:Math.round(a/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&rWb(this);this.offset+=pWb(this)?
lWb(this):a*this.minComponentWidth;mJ(this);this.reposition_();this.scrollCount++};
_.f.prevClick_=function(){var a=_.E(this.hostElement).querySelector("#scroll-container").clientWidth;a=this.useFloorScrolling?Math.floor(a/this.minComponentWidth)||1:Math.round(a/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=pWb(this)?lWb(this):this.minComponentWidth*this.scrollCount-1):this.offset-=pWb(this)?lWb(this):a*this.minComponentWidth;this.centerListItems&&rWb(this);mJ(this);this.reposition_()};
_.f.onIronResize_=function(){this.resizeSupportEnabled&&_.Qm(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.f.onItemsTransitionEnd_=function(a){_.Sq(a)===_.E(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.f.onChildElementFocus_=function(a){a=a.target.closest("#items > *");var b=_.E(this.hostElement).querySelector("#scroll-container");if(b.contains(a)){if(_.w("web_horizontal_list_behavior_focus_killswitch"))if(a.offsetLeft<this.offset)this.offset=Math.abs(a.offsetLeft)<a.clientWidth?0:a.offsetLeft;else if(a.offsetLeft+a.clientWidth>this.offset+b.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.wC(),this.offset=a.offsetLeft+a.clientWidth-b.clientWidth;else return;else{var c=_.E(this.hostElement).querySelector("#items"),
d=_.Fi("HTML_DIR")==="rtl",e=d?c.clientWidth-a.offsetLeft:a.offsetLeft;c=d?c.clientWidth-(a.offsetLeft+a.clientWidth):a.offsetLeft+a.clientWidth;var g=d?e>this.offset+b.clientWidth:e<this.offset,k=d?c<this.offset:c>this.offset+b.clientWidth,m=d?g:k;if(d?k:g)b=d?c:e,this.offset=Math.abs(b)<a.clientWidth?0:b;else if(m)this.ytLazyListBehavior.fillRemainingListItems(),_.wC(),this.offset=(d?e:c)-b.clientWidth;else return}mJ(this);this.reposition_()}};
_.f.observeShownItems_=function(){this.reset()};
_.f.checkComponentWidthResize=function(){var a=_.E(this.hostElement).querySelector("#items").firstElementChild;a&&(a=qWb(this,a),this.centerListItems||a!==this.minComponentWidth)&&(this.minComponentWidth=a,this.offset=a*this.scrollCount,this.centerListItems&&rWb(this),mJ(this),this.reposition_())};
var qWb=function(a,b){var c=window.getComputedStyle(b).marginRight;c=Math.floor(Number(c.replace("px","")));var d=window.getComputedStyle(b).marginLeft;d=Math.floor(Number(d.replace("px","")));a.centerListItems&&!a.marginWidthRight&&(a.marginWidthRight=c,a.marginWidthLeft=d);return a.resizeSupportEnabled?b.getBoundingClientRect().width+c:b.offsetWidth+c},mJ=function(a){var b=_.E(a.hostElement).querySelector("#scroll-container").clientWidth,c=_.E(a.hostElement).querySelector("#items").clientWidth;
a.offset<0?a.offset=0:a.offset+b>=c&&(a.offset=c-b)},rWb=function(a){a.offset-=(_.E(a.hostElement).querySelector("#scroll-container").clientWidth+a.marginWidthRight-a.minComponentWidth)/2-a.marginWidthLeft};
_.Um.Object.defineProperties(nJ.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var a=_.Fi("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(a==-1)a=this.JSC$12080_cachedViewportHeight,a=a>1320?5:a>1020?4:a>730?3:a>430?2:1;else if(a==0)return 0;_.Ei("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",a-1);a=_.Fi("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(a>-1)return a;a=this.cachedViewportWidth;a=a>1600?6:a>1400?5:a>1300?4:a>1090?5:a>870?4:a>660?3:2;_.Ei("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
a);return a},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.w("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
var oJ=nJ;oJ.prototype.observeShownItems_=oJ.prototype.observeShownItems_;oJ.prototype.onChildElementFocus_=oJ.prototype.onChildElementFocus_;oJ.prototype.onItemsTransitionEnd_=oJ.prototype.onItemsTransitionEnd_;oJ.prototype.onIronResize_=oJ.prototype.onIronResize_;oJ.prototype.prevClick_=oJ.prototype.prevClick_;oJ.prototype.nextClick_=oJ.prototype.nextClick_;oJ.prototype.setButtonsState_=oJ.prototype.setButtonsState_;oJ.prototype.requestButtonsStateUpdate_=oJ.prototype.requestButtonsStateUpdate_;
oJ.prototype.reposition_=oJ.prototype.reposition_;oJ.prototype.reset=oJ.prototype.reset;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],oJ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.kJ.YtLazyListBehavior),_.W("design:type",Object)],oJ.prototype,"ytLazyListBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],oJ.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],oJ.prototype,"atStart",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],oJ.prototype,"atEnd",void 0);_.U([_.O(),_.W("design:type",Object)],oJ.prototype,"startIndex",void 0);_.U([_.O(),_.W("design:type",Object)],oJ.prototype,"endIndex",void 0);_.U([_.O({value:6}),_.W("design:type",Number)],oJ.prototype,"initialCount",void 0);_.U([_.O(),_.W("design:type",Object)],oJ.prototype,"scrollCount",void 0);_.U([_.O(),_.W("design:type",Object)],oJ.prototype,"initialStartIndex",void 0);
_.U([_.O(),_.W("design:type",Object)],oJ.prototype,"disableScrollEventListener",void 0);_.U([_.O(),_.W("design:type",Object)],oJ.prototype,"supportComponentResize",void 0);_.U([_.O({value:function(){var a=this;return function(){return a.prevClick_()}}}),
_.W("design:type",Function)],oJ.prototype,"boundPrevClick",void 0);_.U([_.O({value:function(){var a=this;return function(){return a.nextClick_()}}}),
_.W("design:type",Function)],oJ.prototype,"boundNextClick",void 0);_.U([_.O(),_.W("design:type",Object)],oJ.prototype,"useFloorScrolling",void 0);_.U([_.O(),_.W("design:type",Object)],oJ.prototype,"isSearch",void 0);_.U([_.O(),_.W("design:type",Object)],oJ.prototype,"dragging",void 0);_.U([_.O(),_.W("design:type",Object)],oJ.prototype,"dragMouseStart",void 0);_.U([_.O(),_.W("design:type",Object)],oJ.prototype,"dragOffsetStart",void 0);
_.U([_.O(),_.W("design:type",Object)],oJ.prototype,"disableWheelScroll",void 0);_.U([_.O(),_.W("design:type",Object)],oJ.prototype,"centerListItems",void 0);_.U([_.M("iron-resize"),_.N("guideOpened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oJ.prototype,"onIronResize_",null);_.U([_.M("transitionend"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],oJ.prototype,"onItemsTransitionEnd_",null);
_.U([_.M("focusin"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],oJ.prototype,"onChildElementFocus_",null);_.U([_.N("shownItems"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oJ.prototype,"observeShownItems_",null);oJ=_.U([_.lr()],oJ);_.lJ.YtdHorizontalListBehavior=[];_.lJ.YtdHorizontalListBehavior.push(_.OD,_.Z.YtRendererBehavior,_.kJ.YtLazyListBehavior,_.XI.YtdGuideStateAwareBehavior,oJ.prototype);var TUa=["APP_STATE","PI"];var sWb=_.hx(["about:blank"]),tWb={pushState:window.history.pushState,replaceState:window.history.replaceState};var pJ=function(a){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=a;this.internalPushState=a.pushState.bind(a);this.internalReplaceState=a.replaceState.bind(a)};
pJ.prototype.init=function(){this.initialized=!0};
pJ.prototype.pushState=function(a,b){this.initialized||this.init();this.internalPushState&&this.internalPushState(a,"",b)};
pJ.prototype.replaceState=function(a,b){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(a,"",b)};
pJ.prototype.getState=function(){return this.history&&this.history.state};var uWb=function(a){var b=function(){var c=a.apply(this,arguments)||this;c.boundHistoryPushState=!1;c.boundHistoryReplaceState=!1;c.debugInfo={};return c};
_.z(b,a);b.prototype.init=function(){var c=_.pg("IFRAME");_.Sd(c,_.ef(sWb));c.sandbox="allow-same-origin";c.style.display="none";this.iframe=c;document.body.appendChild(c);this.bindHistoryStateFunctions();a.prototype.init.call(this)};
b.prototype.bindHistoryStateFunctions=function(){var c=this,d=[],e;this.iframe&&((e=this.iframe.contentWindow)==null?0:e.history)&&(e=this.iframe.contentWindow.history)&&(d.push(e),Object.getPrototypeOf(e)&&d.push(Object.getPrototypeOf(e)));window.history&&d.push(window.history);e=window.history;Object.getPrototypeOf(e)&&d.push(Object.getPrototypeOf(e));d.push(tWb);e=function(k){for(var m=null,n=0;n<d.length;n++){var r=d[n][k];if(typeof r==="function"){m=r.bind(window.history);c.debugInfo[k]=n;break}}return m};
if(!this.boundHistoryReplaceState){var g=e("replaceState");g&&(this.internalReplaceState=g,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(e=e("pushState"))&&(this.internalPushState=e,this.boundHistoryPushState=!0)};
return b}(pJ),vWb=function(){return uWb.call(this,window.history)||this};
_.z(vWb,uWb);vWb.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var qJ=function(a){this.browserHistory=a;this.initialized=!1};
qJ.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
qJ.prototype.pushState=function(a,b){this.initialized||this.init();this.browserHistory.pushState(a,b)};
qJ.prototype.replaceState=function(a,b){this.initialized||this.init();this.browserHistory.replaceState(a,b)};
qJ.prototype.handlePopstate=function(a){return a.state};_.wWb=function(a,b,c,d,e){this.endpoint=a;this.forward=b;this.historyEntry=c;this.JSC$26233_savedComponentState=d;this.legacyBorder=e===void 0?!1:e};var xWb=function(a,b){this.rootData=a;this.scrollTop=b};var Nw=new _.jB("PAGE_REQUEST_TOKEN"),oLb=new _.jB("FETCH_PBJ_TOKEN");_.rJ=new _.jB("EPHEMERAL_STORE_TOKEN");_.sJ=function(a){this.data=Object.assign({},a);var b;(b=this.data.innertubeResponse)==null||delete b.frameworkUpdates};
_.sJ.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.Uj)()};
_.ww=function(a){return Object.assign({},a.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var yWb=function(){this.maxSize=100;this.timeToDataCache=new Map};
yWb.prototype.get=function(a){var b=this.timeToDataCache.get(a);b&&(this.timeToDataCache.delete(a),this.timeToDataCache.set(a,b));if(b&&b.rootData&&(_.w("web_use_response_store_for_history_cache")||_.w("mweb_use_new_history_manager"))){var c=_.v().resolve(_.rJ),d=zWb(b),e=!!d;if(d){if(d.content){var g=tJ(c,d.content);e&&g?b.rootData.response=_.ww(g):e=!1}d.player&&(g=tJ(c,d.player),e&&g?b.rootData.playerResponse=_.ww(g):e=!1);d.reelSequence&&(c=tJ(c,d.reelSequence),e&&c?b.rootData.reelWatchSequenceResponse=
_.ww(c):e=!1)}e||(this.timeToDataCache.delete(a),b=void 0)}return b};
yWb.prototype.set=function(a,b){if(b.rootData&&(_.w("web_use_response_store_for_history_cache")||_.w("mweb_use_new_history_manager"))){var c=zWb(b),d=Object.assign({},b.rootData);c&&(c.content&&b.rootData.response&&(AWb(this,c.content,b.rootData.response),d.response=null),c.player&&b.rootData.playerResponse&&(AWb(this,c.player,b.rootData.playerResponse),d.playerResponse=null),c.reelSequence&&b.rootData.reelWatchSequenceResponse&&(AWb(this,c.reelSequence,b.rootData.reelWatchSequenceResponse),d.reelWatchSequenceResponse=
null));b=new xWb(d,b.scrollTop)}this.timeToDataCache.has(a)?this.timeToDataCache.delete(a):this.timeToDataCache.size>=this.maxSize&&(c=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(c.value));this.maxSize!==0&&this.timeToDataCache.set(a,b)};
yWb.prototype.clear=function(){this.timeToDataCache.clear()};
var zWb=function(a){var b=_.v().resolve(_.Xi(Nw)),c;if((c=a.rootData)==null?0:c.endpoint)return b==null?void 0:f8a(b,a.rootData.endpoint);var d;_.Dl(new _.qj("History snapshot response data does not contain endpoint",(d=a.rootData)==null?void 0:d.url));return null},AWb=function(a,b,c){if(a.maxSize>0){var d;
(a=(d=c.responseContext)==null?void 0:d.maxAgeSeconds)&&Number(a)>0&&(d=_.v().resolve(_.rJ),c=hu(c,a),d.put(b,new _.sJ(c)))}};var BWb=function(a,b,c){this.endpoint=b;this.JSC$26238_savedComponentState=c===void 0?null:c;this.entryTime=a};var ZUa=1;var uJ=function(a){var b=function(){var c=a.apply(this,[].concat(_.De(_.Kd.apply(0,arguments))))||this;c.historyEntryTime=0;c.historySnapshotCache=c.createHistoryCache();return c};
_.z(b,a);b.prototype.createHistoryCache=function(){return new yWb};
b.prototype.saveAndReplace=function(c,d,e){var g=window.location.href;var k=k===void 0?{}:k;var m=(m=this.browserHistory.getState())&&m.entryTime?m.entryTime:$Ua();c=this.createNewHistoryEntry(c,k,m);this.saveSnapshot(m,d,e);this.replaceState(c,g||window.location.href)};
b.prototype.saveAndPush=function(c,d,e,g,k){k=k===void 0?{}:k;this.saveSnapshot(this.historyEntryTime,e,g);e=this.historySnapshotCache;g=this.historyEntryTime;var m=e.timeToDataCache.keys();m=_.h(m);for(var n=m.next();!n.done;n=m.next())n=n.value,n>g&&e.timeToDataCache.delete(n);d=this.createNewHistoryEntry(d,k);this.pushState(d,c)};
b.prototype.saveSnapshot=function(c,d,e){this.historySnapshotCache.set(c,new xWb(d,e))};
b.prototype.createNewHistoryEntry=function(c,d,e){e=e===void 0?$Ua():e;return new BWb(e,c,d)};
b.prototype.handlePopstate=function(c){var d=a.prototype.handlePopstate.call(this,c),e=null,g=null,k=!1,m=null;d&&d.entryTime&&(m=this.historySnapshotCache.get(d.entryTime)||null,k=d.entryTime>this.historyEntryTime,this.historyEntryTime=d.entryTime,e=d.endpoint,g=d.JSC$26238_savedComponentState);this.handleHistoryCacheLoad(new _.wWb(e,k,m,g),c);return d};
b.prototype.pushState=function(c,d){Number(c==null?void 0:c.entryTime)>=0&&(this.historyEntryTime=c.entryTime);a.prototype.pushState.call(this,c,d)};
b.prototype.replaceState=function(c,d){Number(c==null?void 0:c.entryTime)>=0&&(this.historyEntryTime=c.entryTime);a.prototype.replaceState.call(this,c,d)};
b.prototype.handleHistoryCacheLoad=function(){};
return b}(qJ),CWb=function(){var a=uJ.call(this,new vWb)||this;
a.dispatchElement=null;a.entryIndex=0;return a};
_.z(CWb,uJ);_.f=CWb.prototype;_.f.init=function(a){a=a===void 0?!0:a;uJ.prototype.init.call(this);this.initialized||(a||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.f.handlePopstate=function(a){var b=null;a.state||(b="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return uJ.prototype.handlePopstate.call(this,a);var c=new CustomEvent("yt-history-pop",{cancelable:!0});_.lo(this.dispatchElement,"yt-history-pop",[c,{errorMsg:b}]);_.mo(this.dispatchElement,"yt-close-all-popups-action");if(!c.defaultPrevented){c=_.v().resolve(_.Zt);b=c.getCurrentData();var d=c.getCurrentPage();c=0;d?(d=_.lo(this.dispatchElement,"yt-get-page-offset",
[d]),d.length>0&&(c=d[0])):_.Dl(new _.qj("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:b?b.page:"undefined"}));b&&(b.csn=_.En());this.saveSnapshot(this.historyEntryTime,b,c)}return uJ.prototype.handlePopstate.call(this,a)};
_.f.handleHistoryCacheLoad=function(a,b){b.state&&(a.legacyBorder=!!b.state["spf-timestamp"]||!!b.state.blazer);a.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.h(_.mo(this.dispatchElement,"yt-history-will-navigate",[b])).next().value||_.lo(this.dispatchElement,"yt-history-load",[b,a]))};
_.f.pushState=function(a,b){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var c=new _.qj("history.pushState is not a function",this.getDebugString());_.Bl(c)}uJ.prototype.pushState.call(this,a,b)};
_.f.replaceState=function(a,b){if(!this.browserHistory.boundHistoryReplaceState){var c=new _.qj("history.replaceState is not a function",this.getDebugString());_.Bl(c)}uJ.prototype.replaceState.call(this,a,b)};
_.f.saveAndPush=function(a,b,c,d,e){e=e===void 0?{}:e;c&&(c.csn=_.En());uJ.prototype.saveAndPush.call(this,a,b,c,d,e)};
_.f.getDebugString=function(){var a=[];this.initialized&&a.push("i");this.browserHistory.boundHistoryReplaceState&&a.push("bhr");this.browserHistory.boundHistoryPushState&&a.push("bhs");"replaceState"in this.browserHistory.debugInfo&&a.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&a.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&a.push("ei:"+String(this.entryIndex));return a.join(",")};
_.f.replaceUrl=function(a){this.init(!0);var b=this.browserHistory.getState();this.replaceState(b,gu(a))};
_.f.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.DWb=new _.jB("DESKTOP_HISTORY_MANAGER_TOKEN");var EWb=[10,20,30,40,50,60],vJ=function(){this.currentPartitionIndex=0},FWb=function(a){FGb({mainAppWeb:_.Nq(),
survivalSli:{partitionMinute:a,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},GWb=function(a){FGb({mainAppWeb:_.Nq(),
survivalSli:{partitionMinute:a,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},HWb=function(a){return a.currentPartitionIndex>=0&&a.currentPartitionIndex<EWb.length?EWb[a.currentPartitionIndex]:-1},IWb=function(a){return a.currentPartitionIndex>0&&a.currentPartitionIndex-1<EWb.length?EWb[a.currentPartitionIndex-1]:-1};
vJ.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var a=IWb(this);a>0&&GWb(a);a=HWb(this);a>0&&FWb(a);JWb(this)}};
var JWb=function(a){var b=HWb(a);if(b>0){var c=IWb(a);c<0&&(c=0);a.intervalId=_.zk.addJob(function(){var d=IWb(a);d>0&&GWb(d);d=HWb(a);d>0&&FWb(d);JWb(a)},3,(b-c)*6E4);
a.currentPartitionIndex+=1}else a.currentPartitionIndex=-1};var KWb=function(){this.skipNextNavigation=!1},LWb=function(a,b,c){if(!b)return!1;
if(a.skipNextNavigation)return a.skipNextNavigation=!1;if(_.y(c,_.Kl))return!1;var d,e,g;if((d=_.y(c,_.oq))==null?0:(e=d.browseEndpointContextSupportedConfigs)==null?0:(g=e.browseEndpointContextMainConfig)==null?0:g.skipConfirmation)return!1;var k;return((k=_.y(b.commandMetadata,_.co))==null?void 0:k.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
KWb.prototype.showConfirmationDialog=function(a,b){this.navigateParams=b;this.customConfirmationCommand?_.v().resolve(_.Yi).resolveCommand(this.customConfirmationCommand):(b={openPopupAction:{popup:{confirmDialogRenderer:{title:_.Vp(_.vo("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.Vp(_.vo("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.Vp(_.vo("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.Vp(_.vo("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.Ll.getInstance().triggerAction("yt-open-popup-action",b,a))};
KWb.prototype.cancelPendingNavigation=function(){var a;((a=this.navigateParams)==null?void 0:a.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var MWb=function(){},OWb=function(a,b,c,d,e,g){c=c===void 0?{}:c;
var k=_.pG.instance,m,n=(m=_.y(b,_.Kl))==null?void 0:m.url;return n?J6a(k,n,c,window.location.href,function(r,t){NWb(a,r,t,!1,!0,c,g,d)},function(){return!1}):cx(k,b,c,window.location.href,sq(b),function(r,t){NWb(a,r,t,!1,!0,c,g,d)},e)},NWb=function(a,b,c,d,e,g,k,m){if(!a.JSC$12138_chunkHandler)if(c.page==="watch")if(e||d){if(_.w("kevlar_continue_playback_without_player_response")){var n;
var r=(n=_.y(m,_.Un))==null?void 0:n.videoId}a.JSC$12138_chunkHandler=new VKb(_.au,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:d,previousVideoId:r},tempData:g},k)}else a.JSC$12138_chunkHandler=new QKb(_.au);else c.page==="shorts"&&e&&!d?a.JSC$12138_chunkHandler=new UKb(_.au,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:g},k):a.JSC$12138_chunkHandler=new RKb(k);a.JSC$12138_chunkHandler.processChunk({endpoint:b,data:c});return a.JSC$12138_chunkHandler.JSC$10316_playerPromiseResolver.promise},
PWb=function(a,b,c,d,e){(c=_.CLb(c))&&NWb(a,b,c,!1,!0,d,void 0,e)};var QWb=function(){this.pendingNavigationPromise=null};
_.f=QWb.prototype;_.f.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.f.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.f.addEventListener=function(){throw Error("Bh");};
_.f.dispatchEvent=function(){throw Error("Bh");};
_.f.removeEventListener=function(){throw Error("Bh");};var RWb=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],wJ=function(){_.Hz.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];SWb(this)};
_.z(wJ,_.Hz);wJ.prototype.verifyUser=function(){var a=SWb(this),b=a.logout;if(!a.sessionChange)return!0;this.dispatchEvent("ytsessionchange");b&&this.dispatchEvent("ytuserinvalid");return!1};
var SWb=function(a){var b=RWb.map(function(e){var g;return(g=_.lj.get(e))!=null?g:""}),c=b.some(function(e,g){return a.sessionCookies&&a.sessionCookies[g]!==""&&e===""}),d=b.some(function(e,g){return a.sessionCookies&&a.sessionCookies[g]!==e});
a.sessionCookies=b;return{logout:c,sessionChange:d}};
wJ.prototype.clearTimeout=function(){this.scheduledJobId&&(_.zk.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var eVa=new _.jB("POSTMESSAGE_TUNNEL_TOKEN");var bVa=["/parent_tools","/file_download","/artist_roster"],hVa=[fbb,gbb,hbb,jbb,ibb,ebb,kbb,lbb];var xJ=new _.jB("NAVIGATION_CONFIRMATION_SERVICE");var TWb="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),UWb=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
yJ=function(a){this.pendingNavigationPromise=null;this.JSC$12156_clientRoot=a;this.logger=null;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=new MWb;this.debugString=a.is;a={"yt-signal-action-history-back":this.handleSignalActionHistoryBack,"yt-signal-action-reload-page":this.handleSignalActionReloadPage.bind(this),
"yt-signal-action-soft-reload-page":this.handleSignalActionSoftReloadPage.bind(this),"yt-signal-action-reset-warm-loads":this.handleSignalActionResetWarmLoads.bind(this),"yt-signal-action-close-window":this.handleSignalActionCloseWindow};_.Ml(_.Ll.getInstance(),a,this.JSC$12156_clientRoot)},ZWb,$Wb,aXb,bXb,YWb;
_.z(yJ,QWb);yJ.prototype.reload=function(){_.Hq(window.location.href)};
var FLb=function(a){a.currentEndpoint&&_.y(a.currentEndpoint,_.uq)?a.reload():a.currentEndpoint&&a.navigate(a.currentEndpoint,!0,void 0,{disableCache:!0})};
yJ.prototype.navigate=function(a,b,c,d,e,g,k){b=b===void 0?!1:b;c=c===void 0?{}:c;d=d===void 0?{}:d;var m=_.v().resolve(xJ),n;if(!k&&LWb(m,(n=this.currentEndpoint)!=null?n:void 0,a))return m.showConfirmationDialog(this.JSC$12156_clientRoot.parentElement,{endpoint:a,reload:b,params:c,tempData:d,requestType:e,createScreenConfig:g}),!1;var r=_.VF();_.WF(r,"eocs")||r.parkOrScheduleJob(function(){r.processSignal("eocs")},10,"eor");
k=sq(a);m=d.autonav==="1";n=_.En();wJ.instance||(wJ.instance=new wJ);var t=wJ.instance.verifyUser(),u;if(_.w("enable_dark_theme_only_on_shorts")){var x=document.documentElement.hasAttribute("dark"),A=_.Jq(!0)==="USER_INTERFACE_THEME_DARK";if(k==="shorts"){if(!x)if(_.w("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var C;_.Hq((C=_.y(a==null?void 0:a.commandMetadata,_.co))==null?void 0:C.url,void 0,void 0,window.top)}}else{var F;_.Hq(_.Pi((F=_.y(a==null?
void 0:a.commandMetadata,_.co))==null?void 0:F.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.w("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!x){var J;_.Hq(_.Pi((J=_.y(a==null?void 0:a.commandMetadata,_.co))==null?void 0:J.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(A!==x){var I;_.Hq(_.Pi((I=_.y(a==null?void 0:a.commandMetadata,_.co))==null?void 0:I.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(k==="watch"){if(VWb(_.v().resolve(_.$w),
a)&&(t||_.w("fix_miniplayer_navigation_killswitch")))return!1;_.w("block_all_player_prefetch_requests")||(u=DLb(_.tw(_.qG),a,m))}else{var R,da=(R=_.y(this.currentEndpoint,_.Un))==null?void 0:R.videoId;da&&_.IF.getInstance().then(function(ya){ya&&ya.set("yt-miniplayer-shown-video-id",da)})}u&&(c.frags=u.missingFragments_.join(","));
C=null;var V;F=(V=_.y(a==null?void 0:a.commandMetadata,_.co))==null?void 0:V.ignoreNavigation;if(!F)if(_.w("kevlar_command_url")){var fa;C=(fa=_.y(a==null?void 0:a.commandMetadata,_.co))==null?void 0:fa.url}else C=_.uua(a,c);if(C&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&C==this.lastNavigationUrl)return _.Jo({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.Cw(Jn(),"CANCELLED")}C&&(this.lastNavigationUrl=C);bIa();_.Ei("IS_HOMEPAGE_COLD",
!1);_.Ei("IS_RESULTS_PAGE_COLD",!1);_.Ei("IS_WATCH_PAGE_COLD",!1);a.loggingUrls&&a.loggingUrls.forEach(function(ya){ya.baseUrl&&_.Jk(ya.baseUrl)});
_.lVa(a,g?g.layer:0)&&_.w("kevlar_flush_logs_on_away_navigation")&&_.Al();if(iVa(a))return!1;oMb(k,e);if(!C)return F||_.Dl(new _.qj("Can't construct url for endpoint",a)),_.Cw(Jn(),"FAILURE"),!1;_.aVa();V=a&&_.y(a,_.oq)&&_.y(a,_.oq).browseId.startsWith("UC");c=(fa=_.w("enable_dark_theme_only_on_shorts")&&k==="shorts"?!1:_.Kq()&&document.documentElement.hasAttribute("dark")!==_.Iq())?{themeRefresh:1}:{};fa&&!_.nj()&&_.Jq()==="USER_INTERFACE_THEME_DARK"&&(c.theme="dark");V=fa||WWb(C)&&!V&&!_.w("kevlar_disable_url_allowlist");
t||(V=!0);if(V||_.Fi("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var aa;var ma=(aa=window.top)==null?void 0:aa.location.href}catch(ya){var Ba;ma=(Ba=ya)==null?void 0:Ba.message}_.Dl(new _.qj("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:ma}))}a=_.w("kevlar_redirect_on_window_killswitch")?window.top:window;Gq(C);_.Hq(_.Pi(C,c),void 0,void 0,a);_.Cw(Jn(),"ABORTED");return!1}_.w("kevlar_early_popup_close")&&_.lo(this.JSC$12156_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12138_chunkHandler=void 0;var Ca;ma=sq((Ca=this.currentEndpoint)!=null?Ca:void 0);(Ca=k==="shorts"&&ma==="shorts")||_.SCa();_.Ii(ECa)("nr",void 0);m&&_.Jo({webInfo:{navigationReason:"an"}});a.clickTrackingParams&&(d.itct=a.clickTrackingParams,d.csn=n);hJa(d);d.endpoint=JSON.stringify(a);_.w("enable_unknown_lact_fix_on_html5")&&(_.v().resolve(_.Ct),d.lact=_.Yk());_.Cf.isEmpty(d)||_.ao(C,d);!_.w("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(g=Object.assign({},{layer:0},g,{parentLayer:3}));this.pendingNavigationPromise=g=OWb(this.pageFetcher,a,d,this.currentEndpoint,this.JSC$12156_isNetworkPromiseStale.bind(this),g);g=g.then(this.handleNavigateSuccess.bind(this,g,a,u,d),this.handleNavigateFail.bind(this,g,a));_.xF().navigationFinishPromise=g;b={endpoint:a,pageType:k,url:gu(C),reload:!!b,noProgressBar:_.w("web_disable_page_navigation_progress")||Ca};e&&(b.type=e);this.fireEvent("yt-navigate-start",b);u&&PWb(this.pageFetcher,
a,u,d,this.currentEndpoint);return!0};
yJ.prototype.JSC$12156_isNetworkPromiseStale=function(a){return a!=this.pendingNavigationPromise};
var XWb=function(a,b,c,d,e){var g=sq(b);b={endpoint:b,pageType:g};e&&(b.errorMessage=e);_.Dl(c);b.navigationDoneMs=_.Lo("nd");b.navigationErrorReason=d;a.fireEvent("yt-navigate-error",b)};
yJ.prototype.handleNavigateFail=function(a,b,c){var d=void 0;c instanceof _.Nn&&(d=c,sua(c));if(this.JSC$12156_isNetworkPromiseStale(a))return _.On(d);_.Cw(Jn(),"FAILURE");XWb(this,b,c,"101");return _.On(c)};
yJ.prototype.handleNavigateSuccess=function(a,b,c,d,e){if(this.JSC$12156_isNetworkPromiseStale(a))return _.qo();this.pendingNavigationPromise=null;if(!e)return b=new _.qj("Missing data in response for navigation endpoint",b),_.On(b);if(e.reload)return window.location.reload(!0),_.qo();c&&(a={},_.Cf.extend(a,_.CLb(c),e),e=a);var g,k;c=(g=e)==null?void 0:(k=g.timing)==null?void 0:k.responseStart;c!=null&&_.Lo("srt",c);_.Lo("pdc");var m,n;g=(m=e)==null?void 0:(n=m.timing)==null?void 0:n.info;g!=null&&
(m=_.Ii(_.ICa)(g),_.Jo(m));_.Cw(Jn(),"SUCCESS");YWb(this,b,e,1,d);return _.qo()};
var WWb=function(a){var b=a;_.w("kevlar_no_redirect_to_classic_2_ks")||(b=(new _.Yn(a)).getPath());if(b==="/"||b==="/red")return!1;var c=!0;TWb.forEach(function(d){a.indexOf(d)===0&&(c=!1)});
UWb.forEach(function(d){var e=d.url;_.w(d.expFlag)&&a.indexOf(e)===0&&(c=!1)});
return c};
yJ.prototype.publishPageData=function(a){this.fireEvent("yt-page-data-fetched",{pageData:a})};
ZWb=function(a,b,c,d,e,g){var k=null;b.page!=="watch"||d?b.filler||_.lo(a.JSC$12156_clientRoot,"yt-stop-old-player",[b]):k=NWb(a.pageFetcher,e,b,c,!1,g,void 0,a.currentEndpoint);if(k)return k.then(a.publishPageData.bind(a,b));a.publishPageData(b);return _.qo()};
$Wb=function(a,b,c){var d=null;if(!c)return d=new _.qj("Empty data",a.debugString,b);var e=c.response;if(!e)return d;var g={endpointType:sq(b)||"unknown"};e.responseContext?(e=e.responseContext.errors)&&(d=new _.qj("Errors in response context",a.debugString,b,e,g)):d=e.error||e.errorMetadata?new _.qj("Errors in response",a.debugString,b,e.error,e.errorMetadata,g):new _.qj("responseContext missing",a.debugString,b,Object.keys(e).sort().join(","),g);var k,m,n,r;if(a=c==null?void 0:(k=c.response)==null?
void 0:(m=k.responseContext)==null?void 0:(n=m.webResponseContextExtensionData)==null?void 0:(r=n.webResponseContextDebugData)==null?void 0:r.debugErrorMessages)for(k=0;k<a.length;k++);return d};
aXb=function(a){var b,c,d,e;return a==null?void 0:(b=a.response)==null?void 0:(c=b.responseContext)==null?void 0:(d=c.errors)==null?void 0:(e=d.error)==null?void 0:e["0"]};
bXb=function(a,b){var c;if(c=b.url&&!b.url.startsWith("/clip"))c=b.url,c=!_.w("webfe_parse_debug_param_in_resolveurl_service")&&a.searchDebugUrlMatcher.test(c)||zoa(c)?!0:!1;if(c)zoa(b.url)&&_.Oi(window.location.href).themeRefresh?a.fireEvent("yt-navigate-redirect",{url:_.bo(b.url,"themeRefresh")}):b.url&&!XUa(b.url)&&a.fireEvent("yt-navigate-redirect",{url:b.url});else if(b.endpoint){var d,e,g;(c=(d=b.endpoint)==null?void 0:(e=d.commandMetadata)==null?void 0:(g=e.webCommandMetadata)==null?void 0:
g.url)&&!XUa(c)&&a.fireEvent("yt-navigate-redirect",{url:c});c&&b.url&&c!=b.url&&!b.url.match("playnext=1")&&new _.qj("Response url mismatch in response data",a.debugString,c,b.url)}};
_.cXb=function(a,b,c,d,e,g,k,m){g=g===void 0?!1:g;var n=_.v().resolve(xJ),r;if(!m&&LWb(n,(r=a.currentEndpoint)!=null?r:void 0,b))return n.showConfirmationDialog(a.JSC$12156_clientRoot.parentElement,{endpoint:b,data:c,navigationType:d,tempData:e,isMiniplayer:g,isForwardHistoryNavigation:k==null?void 0:k.forward}),_.qo();a.pageFetcher.JSC$12138_chunkHandler=void 0;return YWb(a,b,c,d,e,g)};
YWb=function(a,b,c,d,e,g){g=g===void 0?!1:g;a.isMiniplayerExpansion=g;var k=d===2;a.currentEndpoint=b;a.numNavigations++;a.numNavigations&&(VIa.navigationCount=a.numNavigations);_.Ei("NUM_NAV",a.numNavigations);var m=$Wb(a,b,c);if(m)return XWb(a,b,m,"102",aXb(c)),_.On(m);var n,r,t,u;m=c.rootVe||(c==null?void 0:(n=c.response)==null?void 0:(r=n.responseContext)==null?void 0:(t=r.webResponseContextExtensionData)==null?void 0:(u=t.ytConfigData)==null?void 0:u.rootVisualElementType);!k&&c&&bXb(a,c);var x,
A;n=c==null?void 0:(x=c.response)==null?void 0:(A=x.responseContext)==null?void 0:A.maxAgeSeconds;if(!k&&!isNaN(n)){var C;_.w("kevlar_use_response_ttl_to_invalidate_cache")?C=(0,_.Uj)()+1E3*n:_.w("kevlar_always_invalidate_cache")&&(C=0);isNaN(C)||(c.expirationTime=C)}_.w("html5_enable_ssap_entity_id")&&k&&c.playerResponse&&(c.playerResponse.cacheMetadata={isCacheHit:!0});_.tw(_.qG).prefetchCache_.clear();k||c.page!=="watch"||c.type!=="reduced"&&d!==1?d=ZWb(a,c,k,!!g,b,e):(a.publishPageData(c),d=_.qo());
e=d.then(function(){var F=sq(b);F={endpoint:b,pageType:F,fromHistory:k,response:c};F.navigationDoneMs=_.Lo("nd");a.fireEvent("yt-navigate-finish",F)});
c.csn&&m&&c.clientSideGrafts&&d.then(a.attachClientSideGrafts.bind(a,c,_.Dn()));return e};
_.f=yJ.prototype;_.f.attachClientSideGrafts=function(a,b){a.clientSideGrafts&&b&&a.clientSideGrafts.forEach(function(c){if(b&&c){var d=_.ps(c);_.w("combine_ve_grafts")?_.ls().graftServerVe(c,b):_.To(a.csn,b,d)}})};
_.f.handleSignalActionHistoryBack=function(){window.history.back()};
_.f.handleSignalActionCloseWindow=function(){window.close()};
_.f.handleSignalActionReloadPage=function(){this.reload()};
_.f.handleSignalActionSoftReloadPage=function(){FLb(this)};
_.f.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.f.fireEvent=function(a,b){a=new CustomEvent(a,{bubbles:!0,cancelable:!1,composed:!0,detail:b});this.dispatchEvent(a)};
_.f.addEventListener=function(a,b){this.JSC$12156_clientRoot.addEventListener(a,b)};
_.f.dispatchEvent=function(a){return this.JSC$12156_clientRoot.dispatchEvent(a)};
_.f.removeEventListener=function(a,b){this.JSC$12156_clientRoot.removeEventListener(a,b)};_.T7a=new JH("browse","h8y2qb");_.U7a=new JH("search","JzFVk");_.V7a=new JH("shorts","xwEKAe");_.W7a=new JH("watchFixie","nmfa2d");_.X7a=new JH("watchFlexy","CF909");_.Y7a=new JH("watchGrid","Tm0L3c");_.Z7a=new JH("watchLearningJourney","L3n37");var dXb;var eXb=function(){return _.P.apply(this,arguments)||this};
_.z(eXb,_.P);_.Um.Object.defineProperties(eXb,{template:{configurable:!0,enumerable:!0,get:function(){if(dXb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-player">\n  \n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);dXb=a}a=dXb;return a}}});
var fXb=eXb;_.U([_.H(cWb.YtPlayerBehavior),_.W("design:type",Object)],fXb.prototype,"ytPlayerBehavior",void 0);fXb=_.U([_.Q({is:"ytd-player"})],fXb);var gXb;var hXb;var iXb;var zJ=function(){var a=_.P.apply(this,arguments)||this;a.forceModernIconButton=!1;a.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return a};
_.z(zJ,_.P);zJ.prototype.configureRendererStamper=function(){return{button:{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{forceIconButton:!0,styleActionButton:!0},properties:{overrides:"[[overrides]]",forceModernIconButton:"[[forceModernIconButton]]",disableTextTransform:"[[disableTextTransform]]",buttonTooltipPosition:"[[buttonTooltipPosition]]",forceIconButton:"[[forceIconButton]]"}}}}}};
zJ.prototype.handleAccountLinkingStateChangedCommand=function(a){if(a=_.y(a,lBb)){var b,c=(b=this.data)==null?void 0:b.providerKey;b=a.providerKey;c&&b&&c.id===b.id&&c.subject===b.subject&&(a=a.linked,a!==void 0&&(this.set("data.linked",a),this.notifyPath("data.linked"),_.w("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(a)))}};
zJ.prototype.setPlayerAccountLinkState=function(a){var b=new JXa;IXa(b,KXa(new LXa,a));var c=_.au();c&&c.getPlayerPromise().then(function(d){d.setAccountLinkState(_.Bc(b.JSC$9891_serializeBinary(),4));d.updateAccountLinkingConfig(a)})};
zJ.prototype.handleShowAccountLinkDialog=function(){var a=this.get("button.buttonRenderer.command");a&&_.so([a],this.hostElement)};
_.Um.Object.defineProperties(zJ.prototype,{button:{configurable:!0,enumerable:!0,get:function(){if(this.data){if(this.data.linked&&this.data.warningButton&&this.data.isWarning)return this.data.warningButton;if(this.data.linked&&this.data.linkedButton)return this.data.linkedButton;if(!this.data.linked&&this.data.unlinkedButton)return this.data.unlinkedButton}}}});
var AJ=zJ;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],AJ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],AJ.prototype,"ytRendererBehavior",void 0);_.U([_.H([_.eH.YtActionHandlerBehavior]),_.W("design:type",Object)],AJ.prototype,"actionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],AJ.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],AJ.prototype,"overrides",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],AJ.prototype,"forceModernIconButton",void 0);_.U([_.O({value:"bottom"}),_.W("design:type",String)],AJ.prototype,"buttonTooltipPosition",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],AJ.prototype,"forceIconButton",void 0);_.U([_.O(),_.W("design:type",Boolean)],AJ.prototype,"disableTextTransform",void 0);
_.U([_.K("data","data.linked","data.isWarning"),_.W("design:type",Object),_.W("design:paramtypes",[])],AJ.prototype,"button",null);AJ=_.U([_.Q({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],AJ);
_.S(AJ,"ytd-account-link-button-renderer",function(){if(iXb!==void 0)return iXb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-link-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-account-link-button-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return iXb=a},{mode:1});var jXb;var kXb=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],BJ=function(){return _.P.apply(this,arguments)||this};
_.z(BJ,_.P);BJ.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
BJ.prototype.updateButtonActiveState=function(){var a=this,b=!!kXb.find(function(c){return a.currentState===c});
this.button&&(this.button.isPressed=b)};
_.Um.Object.defineProperties(BJ.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.playlistLoopStateEntity)==null?void 0:a.state)||((b=this.data)==null?void 0:b.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var a=void 0,b;if(this.currentState&&((b=this.data)==null?0:b.states)){b=_.h(this.data.states);for(var c=b.next();!c.done;c=b.next()){c=_.y(c.value,_.EAb);var d=void 0;if(((d=c)==null?void 0:d.state)===this.currentState){a=c;break}}}return a}}});
var CJ=BJ;CJ.prototype.updateButtonActiveState=CJ.prototype.updateButtonActiveState;_.U([_.H(_.OI),_.W("design:type",Object)],CJ.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],CJ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],CJ.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.O({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.rVa}),_.W("design:type",Object)],CJ.prototype,"playlistLoopStateEntity",void 0);_.U([_.O(),_.W("design:type",Object)],CJ.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],CJ.prototype,"forceIconOnly",void 0);_.U([_.ir("ytd-button-renderer"),_.W("design:type",_.cI)],CJ.prototype,"button",void 0);
_.U([_.K("data","playlistLoopStateEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],CJ.prototype,"currentState",null);_.U([_.N("currentButtonStateRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],CJ.prototype,"updateButtonActiveState",null);_.U([_.K("currentState"),_.W("design:type",Object),_.W("design:paramtypes",[])],CJ.prototype,"currentButtonStateRenderer",null);
CJ=_.U([_.Q({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],CJ);
_.S(CJ,"ytd-playlist-loop-button-renderer",function(){if(jXb!==void 0)return jXb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-loop-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-playlist-loop-button-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return jXb=a},
{mode:1});var lXb;var mXb=_.vo("DOWNLOAD",{},"Download"),nXb=_.vo("DOWNLOADING",{},"Downloading"),oXb=_.vo("DOWNLOADED",{},"Downloaded"),pXb=_.vo("RETRY",{},"Retry"),qXb=function(){var a=_.P.apply(this,arguments)||this;a.forceIconButton=!1;a.forceIconOnly=!1;a.overrides=!1;a.buttonTooltipPosition=!1;a.styleActionButton=!1;a.disableTextTransform=!1;a.downloadProgress=0;a.isDownloadComplete=!1;a.isHidden=!0;a.transferState="TRANSFER_STATE_UNKNOWN";a.isVideoDeletedByUser=!1;a.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return a};
_.z(qXb,_.P);_.f=qXb.prototype;_.f.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.f.dataChanged=function(){var a;(a=this.data)!=null&&a.text||(a=_.Kp(_.Yp().getState(),this.videoId),this.updateButtonState(a))};
_.f.computeVideoId=function(a){return a};
_.f.showHideButton=function(){this.updateButtonVisibility()};
_.f.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.f.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.f.updateButtonState=function(a){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==nXb||!_.xp(a))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(a){case "TRANSFER_STATE_UNKNOWN":a=mXb;var b="OFFLINE_DOWNLOAD";var c="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":a=pXb;b="OFFLINE_DOWNLOAD";c="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":a=oXb;b="OFFLINE_PIN";c="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":a=
nXb;b="OFFLINE_DOWNLOADING_ZERO";c="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":a=pXb;b="OFFLINE_DOWNLOAD";c="ACTION_RETRY";break;default:a=mXb,b="OFFLINE_DOWNLOAD",c="ACTION_ADD"}this.isVideoDeletedByUser&&(a=mXb,b="OFFLINE_DOWNLOAD",c="ACTION_ADD");var d=Object.assign({},this.data);d.text=_.Vp(a);d.tooltip=a;d.icon={iconType:b};d.size="SIZE_DEFAULT";d.style="STYLE_DEFAULT";_.y(d.command,_.qu)&&(_.y(d.command,_.qu).action=c);this.set("data",d)}};
_.f.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var a="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?a="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?a="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?a="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?a="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?a="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(a="OFFLINE_PIN",this.isDownloadComplete=!0);var b;a!==((b=this.data.icon)==null?void 0:b.iconType)&&(b=Object.assign({},this.data),b.text=_.Vp(nXb),b.tooltip=nXb,b.icon={iconType:a},_.y(b.command,_.qu)&&(_.y(b.command,_.qu).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",b))}};
var DJ=qXb;DJ.prototype.updateProgress=DJ.prototype.updateProgress;DJ.prototype.onTransferStateChanged=DJ.prototype.onTransferStateChanged;DJ.prototype.showHideButton=DJ.prototype.showHideButton;DJ.prototype.dataChanged=DJ.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],DJ.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],DJ.prototype,"forceIconButton",void 0);
_.U([_.O(),_.W("design:type",Object)],DJ.prototype,"forceIconOnly",void 0);_.U([_.O(),_.W("design:type",Object)],DJ.prototype,"overrides",void 0);_.U([_.O(),_.W("design:type",Object)],DJ.prototype,"buttonTooltipPosition",void 0);_.U([_.O(),_.W("design:type",Object)],DJ.prototype,"styleActionButton",void 0);_.U([_.O(),_.W("design:type",Object)],DJ.prototype,"disableTextTransform",void 0);
_.U([_.O({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.W("design:type",String)],DJ.prototype,"videoId",void 0);_.U([_.O(),_.W("design:type",Object)],DJ.prototype,"data",void 0);_.U([_.O({selector:Mp,selectorArgs:["videoId"]}),_.W("design:type",Object)],DJ.prototype,"downloadProgress",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],DJ.prototype,"isDownloadComplete",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],DJ.prototype,"isHidden",void 0);_.U([_.O({selector:_.Kp,selectorArgs:["videoId"]}),_.W("design:type",String)],DJ.prototype,"transferState",void 0);_.U([_.O({selector:_.PFa,selectorArgs:["videoId"]}),_.W("design:type",Object)],DJ.prototype,"isVideoDeletedByUser",void 0);_.U([_.O({selector:LFa,selectorArgs:["videoId"]}),_.W("design:type",Object)],DJ.prototype,"offlineabilityState",void 0);
_.U([_.O({value:!0}),_.W("design:type",Boolean)],DJ.prototype,"showTooltips",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],DJ.prototype,"sendCommandWhenDisabled",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],DJ.prototype,"disabled",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DJ.prototype,"dataChanged",null);
_.U([_.mr("offlineabilityState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DJ.prototype,"showHideButton",null);_.U([_.mr("transferState","isVideoDeletedByUser"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DJ.prototype,"onTransferStateChanged",null);_.U([_.mr("downloadProgress"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DJ.prototype,"updateProgress",null);
DJ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],DJ);
_.S(DJ,"ytd-download-button-renderer",function(){if(lXb!==void 0)return lXb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-button-renderer"></ytd-button-renderer>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return lXb=a},{mode:2});var rXb;var sXb,tXb=function(){if(sXb!==void 0)return sXb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]">\n</yt-button-shape>\n<tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>\n');return sXb=a};var uXb=_.w("web_button_rework")&&_.Gi("BUTTON_REWORK")||_.w("web_button_rework_with_live"),vXb=_.$i("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,wXb=function(){var a=_.P.apply(this,arguments)||this;a.isPressed=!1;a.forceIconButton=!1;a.forceIconOnly=!1;a.forceModernIconButton=!1;a.alignByText=!1;a.isShorts=!1;a.animatedText=!1;a.shouldAnimate=!1;a.JSC$12194_browserSupportsAnimation=_.w("web_supports_animations_api");a.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};a.onTap=function(){var b;if((b=a.data)==null||!b.defaultNavigationEndpoint){var c;b=!((c=a.data)==null?0:c.isToggled);var d;if((d=a.data)==null||!d.preventAutoToggle){a.shouldAnimate=!1;a.disableTextUpdateJobId&&_.zk.cancelJob(a.disableTextUpdateJobId);a.disableTextUpdateJobId=_.zk.addLowPriorityJob(function(){a.disableTextUpdateJobId=void 0},vXb);
var e;a.set("data.isToggled",!((e=a.data)==null?0:e.isToggled));c=a.getInnertubeIcon();d={toggled:b,actions:{}};c&&(d.actions[c.toLowerCase()]=b);_.io(a.hostElement,"yt-toggle-button",d)}}};
return a};
_.z(wXb,_.P);_.f=wXb.prototype;_.f.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.zk.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.f.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.f.toggle=function(a){var b;this.set("data.isToggled",a!==void 0?a:!((b=this.data)==null?0:b.isToggled))};
_.f.handleUpdateToggleButtonStateCommand=function(a){if(this.data){a=_.y(a,vAb);var b,c,d,e=(b=this.data)==null?void 0:(c=b.toggleButtonSupportedData)==null?void 0:(d=c.toggleButtonIdData)==null?void 0:d.id;e&&a&&e===(a==null?void 0:a.buttonId)&&this.set("data.isToggled",a.toggled)}};
_.f.handleUpdateToggleButtonTextAction=function(a){if(this.data){a=_.y(a,NFb);var b,c,d,e=(b=this.data)==null?void 0:(c=b.toggleButtonSupportedData)==null?void 0:(d=c.toggleButtonIdData)==null?void 0:d.id;e&&a&&e===(a==null?void 0:a.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=a.defaultNumericalValue,this.set("data.defaultText",a.defaultText),this.set("data.toggledText",a.toggledText),this.shouldAnimate=!1)}};
_.f.getInnertubeIcon=function(){var a=this.data;if(a){var b,c,d=((b=a.defaultIcon)==null?0:b.iconType)?(c=a.defaultIcon)==null?void 0:c.iconType:null,e,g;b=((e=a.toggledIcon)==null?0:e.iconType)?(g=a.toggledIcon)==null?void 0:g.iconType:d;return a.isToggled?b:d}};
_.f.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.Um.Object.defineProperties(wXb.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a={renderer:this.data,element:this.hostElement,toggled:!!this.data.isToggled,onTapCallback:this.onTap,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceModernIconButton:this.forceModernIconButton,forceDisabled:this.disabled,nextVersion:!0,useAnimatedText:this.animatedText&&this.JSC$12194_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var b=a.renderer;var c=a.element;var d=a.toggled;var e=a.onTapCallback;var g=a.commandClientArgs;var k=a.overrides;var m=a.forceIcon;var n=a.forceModernIconButton;var r=a.forceDisabled;var t=a.useAnimatedText;var u=a.animatedTextProps;a=vVa(b,d);m=!b.defaultIcon||!m&&b.defaultText?b.defaultIcon?"leading":void 0:n?"icon-only":"icon-only-40";m==="icon-only-40"&&(a.type="text");var x;n=Object;var A=n.assign,C;a:switch((C=
b.style)==null?void 0:C.styleType){case "STYLE_COMPACT_GRAY":C={size:"S"};break a;default:C={size:"M"}}var F=!!d;var J=(J=d&&b.toggledText||b.defaultText)?_.zs(J):void 0;t?(t=_.Wp(d&&b.toggledText||b.defaultText))&&u&&!isNaN(Number(u.numberValue))?(u.numberText=t,d&&(u.numberValue+=1),t=u):t=void 0:t=void 0;var I,R,da,V;var fa=(u=((R=d?b.toggledAccessibilityData||((fa=b.toggledText)==null?void 0:fa.accessibility):b.accessibilityData||((I=b.defaultText)==null?void 0:I.accessibility))==null?void 0:
(da=R.accessibilityData)==null?void 0:da.label)||((V=b.accessibility)==null?void 0:V.label))?u:_.Wp(d&&b.toggledText||b.defaultText);r=r===void 0?b.isDisabled:r;c=uVa(b,d,e,c,g);d=tVa(b,d);d!=null&&d.length?(d=_.Fs({innertubeCommand:jQa(d),forceNewState:!0}),d=kQa(d)?d:void 0):d=void 0;b=A.call(n,{},a,C,{iconPosition:m},k,{focused:!1,toggled:F,toggleable:!0,formattedButtonText:J,animatedTextProps:t,accessibilityLabel:fa,disabled:r,onTap:c,aTagConfig:d},MTa((x=b.colorData)==null?void 0:x.basicColorPaletteData));
b.alignByText=this.alignByText;this.isShorts&&this.data.isToggled&&(b.type="filled");return b}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var a=this.getInnertubeIcon();if(a)return _.es(a)}}});
var EJ=wXb;EJ.prototype.resetAnimation=EJ.prototype.resetAnimation;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],EJ.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],EJ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],EJ.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],EJ.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],EJ.prototype,"isPressed",void 0);_.U([_.O(),_.W("design:type",Object)],EJ.prototype,"forceIconButton",void 0);_.U([_.O(),_.W("design:type",Object)],EJ.prototype,"forceIconOnly",void 0);_.U([_.O(),_.W("design:type",Object)],EJ.prototype,"forceModernIconButton",void 0);_.U([_.O(),_.W("design:type",Object)],EJ.prototype,"alignByText",void 0);_.U([_.O(),_.W("design:type",Object)],EJ.prototype,"overrides",void 0);
_.U([_.O(),_.W("design:type",Boolean)],EJ.prototype,"disabled",void 0);_.U([_.O(),_.W("design:type",Object)],EJ.prototype,"isShorts",void 0);_.U([_.O(),_.W("design:type",Object)],EJ.prototype,"buttonTooltipPosition",void 0);_.U([_.O(),_.W("design:type",Object)],EJ.prototype,"animatedText",void 0);_.U([_.O(),_.W("design:type",String)],EJ.prototype,"textNumberValue",void 0);_.U([_.O({computed:"computeTooltip(data, data.isToggled)"}),_.W("design:type",Object)],EJ.prototype,"tooltip",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EJ.prototype,"resetAnimation",null);_.U([_.K("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.W("design:type",Object),_.W("design:paramtypes",[])],EJ.prototype,"computedButtonShape",null);_.U([_.K("data.*"),_.W("design:type",Object),_.W("design:paramtypes",[])],EJ.prototype,"computedIcon",null);
EJ=_.U([_.Q({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],EJ);uXb&&_.S(EJ,"ytd-toggle-button-renderer",tXb,{mode:_.as("kevlar_poly_si_batch_j081")?1:2});var CVa=[],DVa=!1;_.Zl(_.GVa);_.w("web_smartimations_killswitch")&&!_.w("register_web_smartimations_component")||_.at(_.GVa,"yt-smartimation",{propNames:["settings"]});var FJ=function(){var a=_.P.apply(this,arguments)||this;a.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};a.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};a.shouldEnableSmartimation=!1;return a};
_.z(FJ,_.P);FJ.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
FJ.prototype.onDataChanged=function(){var a,b;this.shouldEnableSmartimation=(((a=this.data)==null?void 0:(b=a.timedAnimationData)==null?void 0:b.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
FJ.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var a=_.y(this.data.likeButton,_.SE),b=_.y(this.data.dislikeButton,_.SE);return!!((a==null?0:a.isToggled)||(b==null?0:b.isToggled))};
FJ.prototype.configureRendererStamper=function(){return{"data.likeButton":{id:"segmented-like-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[likeButtonOverride]]"}},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[likeButtonOverride]]",animatedText:"[[true]]",textNumberValue:"[[data.likeCount]]"}}}},"data.dislikeButton":{id:"segmented-dislike-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dislikeButtonOverride]]"}},
toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[dislikeButtonOverride]]"}}}}}};
_.Um.Object.defineProperties(FJ.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var a,b,c=((a=this.data)==null?void 0:(b=a.timedAnimationData)==null?void 0:b.animationTiming)||[];return{uniqueId:"like-dislike",timings:c,enabled:this.shouldEnableSmartimation,experimentEnabled:c.length>0}}}});
var GJ=FJ;GJ.prototype.onDataChanged=GJ.prototype.onDataChanged;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],GJ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],GJ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],GJ.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],GJ.prototype,"likeButtonOverride",void 0);
_.U([_.O(),_.W("design:type",Object)],GJ.prototype,"dislikeButtonOverride",void 0);_.U([_.K("shouldEnableSmartimation"),_.W("design:type",Object),_.W("design:paramtypes",[])],GJ.prototype,"smartimationSettings",null);_.U([_.N("data"),_.M("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GJ.prototype,"onDataChanged",null);GJ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],GJ);
_.S(GJ,"ytd-segmented-like-dislike-button-renderer",function(){if(rXb!==void 0)return rXb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-segmented-like-dislike-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-buttons-wrapper" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-like-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div><div id="segmented-dislike-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div></div></yt-smartimation>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return rXb=a},{mode:1});var xXb;var yXb;(yXb=document.body)==null||yXb.setAttribute("rounded-container","");var zXb={};zXb.YtToggleButtonBehavior=[_.eH.YtActionHandlerBehavior,uH.YtRenderButtonBehavior,{_noAccessors:!0,properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.isToggled)","stateChanged_(data.defaultText)","stateChanged_(data.toggledText)","stateChanged_(forceIconOnly)"],created:function(){this.toggleButtonActionMap_={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction_","yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand_"}},
attached:function(){this.registerActionMap(this.toggleButtonActionMap_)},
detached:function(){this.unregisterActionMap(this.toggleButtonActionMap_)},
onYtToggleButtonTapHandler:function(){},
onYtButtonTapHandler:function(){var a=this.data.isToggled;if(!this.isModal_(a)){if(!this.data.preventAutoToggle){this.toggle();var b={toggled:this.data.isToggled,actions:{}};b.actions[this.buttonIcon]=this.data.isToggled;_.io(this.hostElement,"yt-toggle-button",b)}b=this.data.defaultServiceEndpoint||null;var c=this.data.toggledServiceEndpoint||null;if(b&&c||b&&this.data.preventAutoToggle)a=a?c:b,b=this.disableCommandHandlerOverride,_.w("killswitch_toggle_button_behavior_resolve_command")||b?_.oo(this.hostElement,
[a]):_.hs(a,this.hostElement),_.io(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:a})}},
stateChanged_:function(){var a=this.data;if(a){var b=a.isToggled;this._setEndpoint(this.computeEndpoint_(a));this._setServiceEndpoint(this.computeServiceEndpoint_(a));this._setButtonIcon(this.computeButtonIcon_(a,b));this._setButtonText(this.computeButtonText_(a,b));this._setButtonAccessibility(this.computeAccessibility_(a,b));this._setButtonTooltip(this.computeTooltip_(a,b));this._setButtonClass(this.computeButtonClass_(a,b));this._setIconPositionType(this.computeIconPositionType_(a));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=b):this.elements_.button.setAttribute("aria-pressed",b));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=b)}},
shouldSetIconActiveState_:function(){return _.w("kevlar_system_icons")},
toggle:function(a){this.set("data.isToggled",a!==void 0?a:!this.data.isToggled);_.w("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(a){if(a){var b,c;return!!((b=this.data)==null?0:(c=b.toggledServiceEndpoint)==null?0:c.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(a){return a&&a.defaultNavigationEndpoint||null},
computeButtonIcon_:function(a,b){var c=a&&a.defaultIcon?_.es(a.defaultIcon.iconType):null;a=a&&a.toggledIcon?_.es(a.toggledIcon.iconType):c;return b?a:c},
handleUpdateToggleButtonStateCommand_:function(a){a=a.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==a.buttonId&&this.toggle(a.toggled)},
computeButtonText_:function(a,b){return a?b&&a.toggledText||a.defaultText||null:null},
computeAccessibility_:function(a,b){return a?(b?this.get("toggledAccessibilityData.accessibilityData",a):this.get("accessibilityData.accessibilityData",a))||a.accessibility||null:null},
computeTooltip_:function(a,b){return a?b&&a.toggledTooltip||a.defaultTooltip||null:null},
computeButtonClass_:function(a,b){if(!a)return"";var c="",d=a.toggledStyle||a.style;if(b=b?d:a.style){b.styleType&&(b=b.styleType);try{c+=b.toLowerCase().replace(/_/g,"-")+" "}catch(e){_.El(e,b,typeof b),_.Dl(e)}}if(a=a.size){a.sizeType&&(a=a.sizeType);try{c+=a.toLowerCase().replace(/_/g,"-")+" "}catch(e){_.El(e,a,typeof a),_.Dl(e)}}return c.trim()},
computeIconPositionType_:function(a){return a&&a.iconPosition||null},
computeServiceEndpoint_:function(a){var b=a&&a.serviceEndpoint,c=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return b?b:c&&a.command?a.command:null},
handleUpdateToggleButtonTextAction_:function(a){a=a.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==a.buttonId&&(this.set("data.defaultText",a.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",a.toggledText),this.notifyPath("data.toggledText"))}}];_.Ft("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var AXb=_.w("web_button_rework")&&_.Gi("BUTTON_REWORK")||_.w("web_button_rework_with_live"),HJ=function(){var a=_.P.apply(this,arguments)||this;a.systemIcons=_.w("kevlar_system_icons");a.roundedContainer=!0;return a};
_.z(HJ,_.P);HJ.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
HJ.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var a=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var b={toggled:!!this.data.isToggled,actions:{}};b.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var c,d;b.actions.playlistId=(c=this.data.defaultServiceEndpoint)==null?void 0:(d=c.playlistEditEndpoint)==null?void 0:d.playlistId;_.io(this.hostElement,"yt-toggle-button",b)}(a=a?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(a)}};
HJ.prototype.onYtNavigate=function(a){var b=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(a.detail.endpoint);b&&(a.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(b))};
_.Um.Object.defineProperties(HJ,{template:{configurable:!0,enumerable:!0,get:function(){if(xXb===void 0){var a=document.createElement("template");_.B(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);xXb=a}a=xXb;return a}}});
var IJ=HJ;IJ.prototype.onYtNavigate=IJ.prototype.onYtNavigate;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],IJ.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],IJ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aI),_.W("design:type",Object)],IJ.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.H(zXb.YtToggleButtonBehavior),_.W("design:type",Object)],IJ.prototype,"ytToggleButtonBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],IJ.prototype,"data",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],IJ.prototype,"showTooltips",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],IJ.prototype,"systemIcons",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],IJ.prototype,"roundedContainer",void 0);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],IJ.prototype,"onYtNavigate",null);
IJ=_.U([_.Q({is:"ytd-toggle-button-renderer",disableElementRegistration:AXb})],IJ);var BXb;_.JJ=new _.jB("PANEL_CONTROLLER_TOKEN");_.KJ=new _.jB("SHEET_CONTROLLER_TOKEN");_.LJ=new _.jB("DIALOG_CONTROLLER_TOKEN");BXb=new _.jB("DIALOG_CONTAINER_TOKEN");var PVa=_.vo("DOWNLOAD",{},"Download"),QVa=_.vo("DOWNLOADING",{},"Downloading"),RVa=_.vo("DOWNLOADED",{},"Downloaded"),SVa=_.vo("RETRY",{},"Retry");var CXb=_.Rr(function(a){var b=$Va,c=function(){return""},d=WVa(a.data),e=XVa(a.data),g=YVa(a.data),k=ZVa(a.data);
b=function(){var m=a.data(),n=NVa(m,d(),e(),g(),k()),r=!!m.videoId,t=n.text;return{title:r?t:void 0,tooltip:r?void 0:t,accessibilityText:t,onTap:n.onTap,iconName:n.iconType,style:m.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:n.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:m.buttonSize}};
c={};c=_.et("ytDownloadButtonViewModelHost",(c.ytDownloadButtonViewModelIsHidden=function(){var m=a.data(),n=k();return m.playlistId||n()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||n()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},c));
return _.q("download-button-view-model",{class:c},_.q(_.Qu,{data:b}))},"x");
CXb.idomCompat=!0;_.Zl(cWa);_.Zl(aWa);var DXb=_.jt(cWa);var dWa={isOpen:!1};var fWa={isAllowed:!1};var hWa={errorMessage:"",title:"",privacy:"",isDisabled:!0};var jWa={isOpen:!1};var lWa={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var EXb={response:void 0};var nWa=function(a,b){a=a===void 0?EXb:a;switch(b.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},a,{response:b.payload});default:return a}};var FXb={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var oWa=function(a,b){a=a===void 0?FXb:a;switch(b.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},a,{nextDisabled:b.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},a,{nextCommand:b.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},a,{footerSubmissionData:b.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},a,{isImpersonationValid:b.payload});default:return a}};var GXb={reportFormData:void 0,reportDetailsFormData:void 0};var pWa=function(a,b){a=a===void 0?GXb:a;switch(b.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},a,{reportFormData:b.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},a,{reportDetailsFormData:b.payload});default:return a}};var HXb=void 0;_.w("mweb_enable_redux_store_on_demand")||(HXb=new Xp(qWa()));var EWa=_.Rr(function(a){a=_.Or(a,{themeOverride:void 0,animationRef:{}});var b=a.animatedIconType,c=a.active,d=a.themeOverride,e=a.animationRef;a=a.staticIconFn;var g=_.h(_.ih(void 0,void 0,"P5a72b")),k=g.next().value,m=g.next().value,n=function(){a:{var J=b();var I=d==null?void 0:d();var R;I=(I==null?void 0:I.useDarkTheme)||((R=_.v().resolve(_.Xi(_.Ks)))==null?void 0:R());switch(J){case "LIKE":b:{HXb||(HXb=new Xp(qWa()));if((J=tSa(HXb.getState()))&&J.animationStyle)switch(J.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":J=
sWa({name:I?"valentines25_heart_dark":"valentines25_heart_light",path:I?"animated_like_valentines25_heart_dark_v5":"animated_like_valentines25_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":J=sWa({name:I?"valentines25_broken_heart_dark":"valentines25_broken_heart_light",path:I?"animated_like_valentines25_broken_heart_dark_v5":"animated_like_valentines25_broken_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":J=
sWa({name:I?"youtube_20th_birthday_dark":"youtube_20th_birthday_light",path:I?"animated_like_youtube_20th_birthday_dark":"animated_like_youtube_20th_birthday_light",totalFrames:60});break b}J=void 0}if(J){I=J;break a}I="animated_like_icon_"+(I?"dark_v4":"light_v4");I={lottiePlayerProps:{animationConfig:{name:I,path:rWa("animated_like_icon",I),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":I={lottiePlayerProps:{animationConfig:{name:I?
"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(I?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}I=void 0}return I},r=function(){var J,I;
return(I=(J=n())==null?void 0:J.lottiePlayerProps.animationConfig.name)!=null?I:""},t=function(){if(n()){var J=n().lottiePlayerProps.animationConfig.path;
return dt.get(J)||k()}};
g=_.h(_.ih(!1,void 0,"h6xR3c"));var u=g.next().value;g=g.next().value;var x=uWa(g),A=function(){var J=n(),I,R,da;return(da=J==null?void 0:(I=J.lottiePlayerProps.animationConfig)==null?void 0:(R=I.rendererSettings)==null?void 0:R.className)!=null?da:""},C=void 0,F=void 0;
_.wh(function(){var J=n(),I=r(),R=t(),da=u(),V=c();if(J&&(F!==I&&(F=I,C=V,I=e(),x.animationConfig=J.lottiePlayerProps.animationConfig,x.animationRef=I,R&&(x.animationConfig.animationData=R,x.animationConfig.path=void 0),I=J.lottiePlayerProps.animationConfig.path,!dt.get(I)&&J.lazyLoad&&I&&tWa(I,m)),!(da||J.lazyLoad&&!R))){if(R=!e().lottieEl)V?(da=J.totalFrames,x.animationConfig.initialSegment=[da-1,da]):x.animationConfig.initialSegment=void 0;if(C!==V&&!R)if(R=e(),V){var fa;(fa=R.lottieEl)==null||
fa.playSegments([0,J.totalFrames],!0)}else{var aa;(aa=R.lottieEl)==null||aa.playSegments([0,1],!0)}C=V}},"Ijvjk");
return _.q("animated-icon",{class:"ytAnimatedIconHost"},_.q(_.qi,{cond:function(){var J,I;return!((J=n())==null||!J.lottiePlayerProps.animationConfig.path||((I=n())==null?0:I.lazyLoad)&&!t()||u())},
then:function(){return _.q(_.gt,{data:x,animationName:r,className:A,animationRef:e})},
else:a}))},"y");_.Zl(FWa);var IXb,KXb;IXb=_.Rr(function(a){var b=_.Pl(),c=_.Pl(),d=_.Pl(),e=_.nu(),g=_.nu(),k=_.nu(),m=_.tu(_.ju,function(){return a.data().stateEntityStoreKey}),n=_.tu(mVa,function(){var rb,sb;
return(sb=(rb=a.data().notificationStateEntityStoreKeys)==null?void 0:rb.subsNotificationStateKey)!=null?sb:""}),r=function(){return!a.data().enableSubscribeButtonPostClickAnimation},t=_.h(_.ih(0,void 0,"J7x6G")),u=t.next().value,x=t.next().value;
t=_.h(_.ih(0,void 0,"SJqH5"));var A=t.next().value,C=t.next().value;t=_.h(_.ih(!1,void 0,"xLsJbc"));var F=t.next().value,J=t.next().value;t=_.h(_.ih(!1,void 0,"iwIf5d"));var I=t.next().value,R=t.next().value,da=!1,V="";t=_.h(_.ih(!1,void 0,"rRME8e"));var fa=t.next().value,aa=t.next().value,ma=function(){R(!0);_.zu(_.zk,function(){R(!1)},1500)};
_.wh(function(){var rb=I();hh(function(){rb&&!r()&&m()&&LWa(e,g,k)})},"uO3Gcf");
_.wh(function(){var rb=m();hh(function(){if(!r()&&rb){var sb;((sb=a.animateWidth)==null?0:sb.call(a))&&KWa(b.value,!!rb.subscribed,u(),A());rb.subscribed&&rb.key===V&&ma();rb.key&&(V=rb.key)}})},"Uu1Tud");
t=_.ph(function(){var rb,sb,yc=a.data(),Mb=!((rb=m())==null||!rb.subscribed);rb=a.isOverlay();var ub=F()?b.value:void 0,Db=(sb=n())==null?void 0:sb.state;sb=fa();JWa(yc,Db);return uu({model:yc,subscribed:Mb,isOverlay:rb,element:ub,notificationState:Db,disableTextEllipsis:!0,focused:sb})},void 0,"l5B9mf");
var Ba=function(){var rb;if(!r()&&((rb=a.animateWidth)==null?0:rb.call(a))&&(c==null?0:c.value)&&(d==null?0:d.value)&&!da){rb=m();var sb=_.h((rb==null?0:rb.subscribed)?[c,d]:[d,c]),yc=sb.next().value;sb=sb.next().value;yc=Math.ceil(yc.value.getBoundingClientRect().width);sb=Math.ceil(sb.value.getBoundingClientRect().width);x(yc);C(sb);KWa(b.value,!(rb==null||!rb.subscribed),yc,sb);da=!0}},Ca=function(){var rb=_.v().resolve(_.Xi(_.Bu));
rb&&aa(rb.isKeyBoardInUse())},ya=function(){aa(!1)};
_.Rl(b,"yt-service-request-sent",function(rb){Ba();var sb=m();sb&&(rb.detail.endpoint.subscribeEndpoint||rb.detail.endpoint.unsubscribeEndpoint)&&HWa(b.value,!sb.subscribed,sb)});
_.Ol("yt-player-subscribe",function(rb){var sb=m();sb&&rb===a.data().channelId&&HWa(b.value,!0,sb)});
_.Ol("yt-player-unsubscribe",function(rb){var sb=m();sb&&rb===a.data().channelId&&HWa(b.value,!1,sb)});
_.Ol("yt-update-subscribe-button-action",function(rb){rb=_.y(rb,DWa);var sb=m();sb&&rb&&rb.channelId===a.data().channelId&&HWa(b.value,!!rb.subscribed,sb)});
_.wi(function(){b.value&&(b.value.addEventListener("focusin",Ca),b.value.addEventListener("focusout",ya));_.sl(_.zk,function(){Ba()});
J(!0);_.zh(function(){b.value&&(b.value.removeEventListener("focusin",Ca),b.value.removeEventListener("focusout",ya))})});
var Ia=function(){var rb,sb,yc;if(yc=!((rb=m())==null||!rb.subscribed))rb=!!a.data().disableNotificationBell,yc=(sb=n())==null?void 0:sb.state,yc=!rb&&!!yc;return yc},db=function(){var rb;
return!((rb=m())==null?0:rb.subscribed)},lb=function(){var rb,sb;
if(sb=db()){sb=!!a.data().disableNotificationBell;var yc=(rb=n())==null?void 0:rb.state;sb=!sb&&!!yc}return sb},Ua={},Vb={};
return _.q("yt-subscribe-button-view-model",{class:_.et("yt-subscribe-button-view-model-wiz",(Ua["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var rb,sb;return!((rb=m())==null||!rb.subscribed)&&((sb=a.animateWidth)==null?void 0:sb.call(a))&&I()},Ua["yt-subscribe-button-view-model-wiz--hidden"]=function(){var rb;
return!((rb=m())==null?0:rb.subscribed)&&a.data().hideWhenUnsubscribed},Ua)),
el:b},_.q(DXb,{backgroundLottieRef:e,foregroundLottieRef:g,wrapperClass:_.et("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(Vb["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var rb;return((rb=a.animateWidth)==null?void 0:rb.call(a))&&I()},Vb["yt-subscribe-button-view-model-wiz__static-width"]=function(){var rb;
return!((rb=a.animateWidth)==null?0:rb.call(a))},Vb)),
disableAnimation:r},_.q("div",{el:c,class:"yt-subscribe-button-view-model-wiz__container"},_.q(vv,{data:t,icon:function(){return _.q(_.qi,{cond:Ia,then:function(){var rb=function(){var sb;return GWa((sb=n())==null?void 0:sb.state)};
return _.q(_.qi,{cond:function(){return r()||rb()!=="NOTIFICATIONS_NONE"},
then:function(){return _.q(_.qt,{icon:rb})},
else:function(){return _.q(EWa,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:k})}})}})},
secondaryIconName:function(){return Ia()?"EXPAND":void 0}}))),_.q("div",{el:d,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.q(_.qi,{cond:function(){var rb;return((rb=a.animateWidth)==null?void 0:rb.call(a))&&!r()&&!da},
then:function(){return _.q(vv,{data:_.ph(function(){return uu({model:a.data(),subscribed:db(),isOverlay:a.isOverlay(),element:b.value,disableTextEllipsis:!0})},void 0,"nkg9Vc"),
iconName:function(){var rb;return lb()?GWa((rb=n())==null?void 0:rb.state):void 0},
secondaryIconName:function(){return lb()?"EXPAND":void 0}})}})))},"z");
_.JXb=_.w("web_enable_sink_yt_subscribe_button_view_model")?IXb:FWa;KXb=_.w("web_enable_sink_yt_subscribe_button_view_model")?IXb:_.jt(FWa);IXb.idomCompat=!0;var MWa=new _.jB("RENDERER_STAMPER_OPTIONS_TOKEN");var Fu;_.Eu=new dtb;Fu=new Map;var VWa="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),XWa=["notificationTextRenderer","notificationMultiActionRenderer"],WWa="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
eXa=UWa(function(a){return _.Bh(a==null?void 0:a.targetId)}).useUpdatableData;var dXa=0;var LXb=_.Rr(function(a){var b=a.data;var c=_.tu(_.ju,function(){return b().subscriptionStateEntityKey});
return _.q(_.qi,{cond:function(){var d=b(),e=c();return!d.hideWhenUnsubscribed||(e==null?0:e.subscribed)?_.y(b().button,_.Iu):void 0},
then:function(d){return _.q("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.q(_.Qu,{data:d,buttonOverrides:function(){return{toggled:!b().isPurchasable}}}))}})},"A");var hXa=_.Du({buttonViewModel:_.Qu,subscribeButtonViewModel:_.JXb,downloadButtonViewModel:CXb,toggleButtonViewModel:_.Ku,subscribePlusButtonViewModel:LXb});_.Zl(jXa);var MXb=_.Rr(function(a){return _.q(_.Hu,{data:function(){return a.actionRow().actions}},{buttonViewModel:function(b){var c=b.data;
return _.q(MJ,{isRow:a.isRow,isIconOnlyButton:function(){return kXa(c())}},_.q(_.Qu,{data:c}))},
subscribeButtonViewModel:function(b){return _.q(MJ,{isRow:a.isRow},_.q(KXb,{data:b.data,isOverlay:!1,animateWidth:function(){return!a.isRow()}}))},
downloadButtonViewModel:function(b){var c=b.data;return _.q(MJ,{isRow:a.isRow,isIconOnlyButton:function(){return!!c().playlistId}},_.q(CXb,{data:c}))},
toggleButtonViewModel:function(b){var c=b.data;return _.q(MJ,{isRow:a.isRow,isIconOnlyButton:function(){var d=c();return kXa(_.y(d.isToggled?d.toggledButtonViewModel:d.defaultButtonViewModel,_.Iu))}},_.q(_.Ku,{data:c}))},
subscribePlusButtonViewModel:function(b){return _.q(MJ,{isRow:a.isRow},_.q(LXb,{data:b.data}))}})},"B"),MJ=_.Rr(function(a){var b={};
return _.q("div",{class:_.et("yt-flexible-actions-view-model-wiz__action",(b["yt-flexible-actions-view-model-wiz__action--row-action"]=a.isRow,b["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,b["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=a.isIconOnlyButton,b))},a.children)},"C"),NXb=_.Rr(function(a){var b=function(){var d;
return((d=a.layout)==null?void 0:d.call(a))===1},c={};
return _.q("yt-flexible-actions-view-model",{class:_.et("yt-flexible-actions-view-model-wiz",a.className,(c["yt-flexible-actions-view-model-wiz--inline"]=function(){return!b()},c["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return a.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},c))},_.q(_.ri,{each:function(){return a.data().actionsRows||[]}},function(d){return _.q(_.qi,{cond:b,
then:function(){return _.q("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.q(MXb,{actionRow:d,isRow:b}))},
else:function(){return _.q(MXb,{actionRow:d,isRow:b})}})}))},"D"),OXb=_.w("web_enable_sink_lockups_batch")?NXb:jXa,PXb=_.w("web_enable_sink_lockups_batch")?NXb:_.jt(jXa);
NXb.idomCompat=!0;_.Ts(PXb,"yt-flexible-actions-view-model",{props:{data:_.VG,layout:_.VG,justifyContentOverride:_.VG,className:_.VG}});_.QXb=_.jt(lXa);_.Zl(lXa);_.RXb=_.jt(nXa);_.Zl(nXa);_.Zl(qXa);_.at(qXa,"segmented-like-dislike-button-view-model",{propNames:["data"]});var wXa=0;_.Ts(MXa,"account-link-button-view-model",{props:{data:_.VG,className:_.Ss,setMinWidth:_.Ss,forceIconOnly:_.Ss}});_.Ft("menuRenderer","menuRenderer","ytd-menu-renderer");
var SXb={buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]",buttonTooltipPosition:"[[buttonTooltipPosition]]",forceIconButton:"[[forceIconButton]]",forceModernIconButton:"[[tonalOverride]]",styleActionButton:"[[styleActionButton]]",disableTextTransform:"[[disableTextTransformOnButtons]]",forceIconOnly:"[[topLevelIconsOnly]]"}},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[buttonOverride]]",buttonTooltipPosition:"[[buttonTooltipPosition]]",
forceIconButton:"[[forceIconButton]]",forceModernIconButton:"[[tonalOverride]]",styleActionButton:"[[styleActionButton]]",disableTextTransform:"[[disableTextTransformOnButtons]]",forceIconOnly:"[[topLevelIconsOnly]]"}},segmentedLikeDislikeButtonRenderer:{component:"ytd-segmented-like-dislike-button-renderer"},segmentedLikeDislikeButtonViewModel:{component:"segmented-like-dislike-button-view-model"},accountLinkButtonRenderer:{component:"ytd-account-link-button-renderer",properties:{overrides:"[[buttonOverride]]",
forceModernIconButton:"[[tonalOverride]]",disableTextTransform:"[[disableTextTransformOnButtons]]",buttonTooltipPosition:"[[buttonTooltipPosition]]",forceIconButton:"[[forceIconButton]]",forceIconOnly:"[[topLevelIconsOnly]]"}},accountLinkButtonViewModel:{component:"account-link-button-view-model",params:{className:"ytd-menu-renderer"},properties:{forceIconOnly:"[[topLevelIconsOnly]]"}},downloadButtonRenderer:{component:"ytd-download-button-renderer",properties:{overrides:"[[buttonOverride]]",buttonTooltipPosition:"[[buttonTooltipPosition]]",
forceIconButton:"[[forceIconButton]]",styleActionButton:"[[styleActionButton]]",disableTextTransform:"[[disableTextTransformOnButtons]]",forceIconOnly:"[[topLevelIconsOnly]]"}},playlistLoopButtonRenderer:{component:"ytd-playlist-loop-button-renderer",properties:{forceIconOnly:"[[topLevelIconsOnly]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{buttonOverrides:"[[buttonOverrides]]",scopingClassName:"[[is]]"}},flexibleActionsViewModel:{component:"yt-flexible-actions-view-model"}},
TXb=_.w("web_fix_missing_action_buttons")?100:200,NJ=function(){var a=_.P.apply(this,arguments)||this;a.safeArea=!_.w("kevlar_flex_menu_safe_area_killswitch");a.tonalOverride=!1;a.threeDotSize="M";a.isOverlay=!1;a.useOverlayDark=!1;a.topLevelIconsOnly=!1;a.JSC$12340_lastWidth=0;a.maybeUpdateFlexibleMenu=function(){_.w("web_fix_missing_action_buttons")?requestAnimationFrame(a.maybeUpdateFlexibleMenuImpl):a.maybeUpdateFlexibleMenuImpl()};
a.maybeUpdateFlexibleMenuImpl=function(){var b;if((b=a.data)!=null&&b.flexibleItems){a.maybeFlushDebouncer();b=a.hostElement.clientWidth;var c=b>a.JSC$12340_lastWidth,d,e=((d=a.topLevelButtonsContainer)==null?void 0:d.scrollHeight)||0,g;d=((g=a.flexibleItemButtonsContainer)==null?void 0:g.scrollHeight)||0;g=a.hostElement.scrollHeight>Math.max(e,d)+8;c?(a.resetFlexibleItems(),a.JSC$12340_lastWidth=a.hostElement.clientWidth,a.maybeUpdateFlexibleMenu()):g&&(a.shrinkFlexibleMenu(),a.JSC$12340_lastWidth=
b)}};
a.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){a.onOverflowTap()},
iconPosition:"icon-only",style:a.isOverlay?a.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:a.threeDotSize,state:"active",accessibilityLabel:a.computeAccessibilityLabel(a.data)},a.threeDotButtonOverride)};
a.onOverflowTap=function(){if(a.data.fetchMenuCommand)_.w("web_ytd_menu_renderer_command_resolver_ks")?_.oo(a.hostElement,[a.data.fetchMenuCommand]):_.v().resolve(_.Yi).resolveCommand(a.data.fetchMenuCommand,{form:{element:a.hostElement}});else if(a.data.isDisabled&&a.data.disabledCommand)_.hs(a.data.disabledCommand,a.hostElement);else{var b=a.createMenuRendererVe(),c={items:a.items};a.data.menuPopupAccessibility&&(c.menuPopupAccessibility=a.data.menuPopupAccessibility);a.data.footer&&(c.footer=a.data.footer);
b={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:c},veData:b}};_.v().resolve(_.KJ).openSheet({openPopupActionCommand:b},a.hostElement)}};
return a};
_.z(NJ,_.P);_.f=NJ.prototype;_.f.updateButtonOverrides=function(){if(!_.w("menu_renderer_label_update_upkillswitch")){var a=_.E(this.hostElement).querySelector("yt-button-view-model");a&&(a.buttonOverrides=this.buttonOverrides)}};
_.f.computeHasItems=function(){var a;return((a=this.topLevelButtonData)==null?void 0:a.length)||this.hasFlexibleItems};
_.f.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.f.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.fr(this.hostElement,{"--ytd-menu-renderer-button-color":_.Cq(this.data.iconColor)}))};
_.f.onStamperFinished=function(){this.JSC$12340_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.f.setupFlexibleMenu=function(){var a=this,b;(b=this.data)!=null&&b.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.lv(this.maybeUpdateFlexibleMenu,TXb,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){a.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement)),
this.resetFlexibleItems()):(this.flexAsTopLevelButtons=void 0,this.hostElement.removeEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.removeEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0))};
_.f.maybeFlushDebouncer=function(){if(_.w("web_replace_formatted_with_attributed_string")){var a;(a=this.topLevelButtons)==null||a.forEach(function(c){var d;(c=(d=c.getElementsByTagName("yt-attributed-string"))==null?void 0:d[0])&&mNa(c)});
var b;(b=this.flexibleItemButtons)==null||b.forEach(function(c){var d;(c=(d=c.getElementsByTagName("yt-attributed-string"))==null?void 0:d[0])&&mNa(c)})}};
_.f.resetFlexibleItems=function(){var a;if((a=this.data)!=null&&a.flexibleItems){_.w("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var b;this.flexAsTopLevelButtons=(b=this.data.flexibleItems)==null?void 0:b.map(function(c){return _.y(c,_.BEb).topLevelButton});
_.w("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.f.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.f.shrinkFlexibleMenu=function(){var a;(a=this.flexAsTopLevelButtons)!=null&&a.length&&(this.flexAsTopLevelButtons=[].concat(_.De(this.flexAsTopLevelButtons.slice(0,-1))))};
_.f.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:SXb,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:SXb,events:!0}}};
_.f.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.f.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.f.detached=function(){this.icon="yt-icons:more_vert"};
_.f.computeTopLevelButtonData=function(a){if(!a)return[];var b;a=(b=a==null?void 0:a.topLevelButtons)!=null?b:[];return _.Cf.unsafeClone([].concat(_.De(a)))};
_.f.computeItems=function(a,b){if(!a)return[];var c=[];if(b){var d=(a.flexibleItems||[]).map(function(k){return _.y(k,_.BEb)});
d=_.h(d);for(var e=d.next();!e.done;e=d.next())e=e.value,b.includes(e.topLevelButton)||(e=e.menuItem)&&c.push(e)}var g;a=(g=a==null?void 0:a.items)!=null?g:[];return[].concat(_.De(c),_.De(a))};
_.f.computeMenuActive=function(a,b){return a||b};
_.f.onPopupOpened=function(){this.overlayOpen=!0;_.io(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.f.onPopupClosed=function(){this.overlayOpen=!1;_.io(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.f.onPopupCanceled=function(){this.overlayOpen=!1;_.io(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.f.computeAccessibilityLabel=function(a){return this.get("accessibility.accessibilityData.label",a)};
_.f.isHidden=function(a,b){return this.tonalOverride||!a?!0:a.fetchMenuCommand||a.isDisabled&&a.disabledCommand?!1:!(b==null?0:b.length)};
_.f.isModernOverflowHidden=function(a,b){return this.tonalOverride&&a?a.fetchMenuCommand?!1:!(b==null?0:b.length):!0};
_.f.createMenuRendererVe=function(){var a=this.data.trackingParams,b=_.En(),c=_.Dn();return a&&b&&c?(a=_.ps(a),c=_.ku(7591),_.w("combine_ve_grafts")?_.qF(_.ls(),c,a):_.To(b,a,c),c):null};
_.Um.Object.defineProperties(NJ.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.flexAsTopLevelButtons)==null||!a.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
NJ.prototype.onPopupCanceled=NJ.prototype.onPopupCanceled;NJ.prototype.onPopupClosed=NJ.prototype.onPopupClosed;NJ.prototype.onPopupOpened=NJ.prototype.onPopupOpened;NJ.prototype.tonalOverrideChanged=NJ.prototype.tonalOverrideChanged;NJ.prototype.resetFlexibleItems=NJ.prototype.resetFlexibleItems;NJ.prototype.setupFlexibleMenu=NJ.prototype.setupFlexibleMenu;NJ.prototype.iconButtonColorChanged=NJ.prototype.iconButtonColorChanged;NJ.prototype.updateButtonOverrides=NJ.prototype.updateButtonOverrides;
_.U([_.H(_.aI),_.W("design:type",Object)],NJ.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],NJ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],NJ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.ir("#button-shape"),_.W("design:type",lH)],NJ.prototype,"buttonShape",void 0);_.U([_.ir("#button"),_.W("design:type",Object)],NJ.prototype,"button",void 0);
_.U([_.O(),_.W("design:type",Object)],NJ.prototype,"data",void 0);_.U([_.O({computed:"computeTopLevelButtonData(data)"}),_.W("design:type",Array)],NJ.prototype,"topLevelButtonData",void 0);_.U([_.O(),_.W("design:type",Array)],NJ.prototype,"flexAsTopLevelButtons",void 0);_.U([_.O({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.W("design:type",Array)],NJ.prototype,"items",void 0);_.U([_.O({value:"yt-icons:more_vert"}),_.W("design:type",String)],NJ.prototype,"icon",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],NJ.prototype,"safeArea",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.W("design:type",Boolean)],NJ.prototype,"menuActive",void 0);_.U([_.O(),_.W("design:type",Boolean)],NJ.prototype,"menuFocused",void 0);_.U([_.O({value:"bottom"}),_.W("design:type",String)],NJ.prototype,"buttonTooltipPosition",void 0);_.U([_.O(),_.W("design:type",Boolean)],NJ.prototype,"overlayOpen",void 0);
_.U([_.O({value:!0}),_.W("design:type",Boolean)],NJ.prototype,"forceIconButton",void 0);_.U([_.O(),_.W("design:type",Boolean)],NJ.prototype,"styleActionButton",void 0);_.U([_.O(),_.W("design:type",Boolean)],NJ.prototype,"disableTextTransformOnButtons",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],NJ.prototype,"tonalOverride",void 0);_.U([_.O(),_.W("design:type",Object)],NJ.prototype,"threeDotSize",void 0);
_.U([_.O(),_.W("design:type",Object)],NJ.prototype,"threeDotButtonOverride",void 0);_.U([_.O(),_.W("design:type",Object)],NJ.prototype,"isOverlay",void 0);_.U([_.O(),_.W("design:type",Object)],NJ.prototype,"useOverlayDark",void 0);_.U([_.O({computed:"computeButtonOverride(tonalOverride)"}),_.W("design:type",Object)],NJ.prototype,"buttonOverride",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],NJ.prototype,"hasCustomIconColor",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("flexAsTopLevelButtons"),_.W("design:type",Object),_.W("design:paramtypes",[])],NJ.prototype,"hasFlexibleItems",null);_.U([_.O({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.W("design:type",Boolean)],NJ.prototype,"hasItems",void 0);_.U([_.O(),_.W("design:type",Object)],NJ.prototype,"topLevelIconsOnly",void 0);
_.U([_.N("topLevelIconsOnly"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NJ.prototype,"updateButtonOverrides",null);_.U([_.K("topLevelIconsOnly"),_.W("design:type",Object),_.W("design:paramtypes",[])],NJ.prototype,"buttonOverrides",null);_.U([_.ir("#top-level-buttons-computed"),_.W("design:type",HTMLElement)],NJ.prototype,"topLevelButtonsContainer",void 0);_.U([_.jr(".top-level-buttons > *"),_.W("design:type",Array)],NJ.prototype,"topLevelButtons",void 0);
_.U([_.ir("#flexible-item-buttons"),_.W("design:type",HTMLElement)],NJ.prototype,"flexibleItemButtonsContainer",void 0);_.U([_.jr("#flexible-item-buttons > *"),_.W("design:type",Array)],NJ.prototype,"flexibleItemButtons",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NJ.prototype,"iconButtonColorChanged",null);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NJ.prototype,"setupFlexibleMenu",null);_.U([_.mr("topLevelIconsOnly"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NJ.prototype,"resetFlexibleItems",null);_.U([_.N("tonalOverride"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NJ.prototype,"tonalOverrideChanged",null);
_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NJ.prototype,"onPopupOpened",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NJ.prototype,"onPopupClosed",null);_.U([_.M("yt-popup-canceled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NJ.prototype,"onPopupCanceled",null);
_.S(NJ,"ytd-menu-renderer",function(){if(hXb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-level-buttons-computed" class="top-level-buttons style-scope ytd-menu-renderer"></div><div id="flexible-item-buttons" hidden="[[!flexAsTopLevelButtons]]" class="style-scope ytd-menu-renderer"></div><yt-icon-button id="button" class="dropdown-trigger style-scope ytd-menu-renderer" hidden="[[isHidden(data, items)]]" label="[[computeAccessibilityLabel(data)]]" style-target="button" on-click="onOverflowTap"><yt-icon icon="[[icon]]" class="style-scope ytd-menu-renderer"></yt-icon></yt-icon-button><yt-button-shape id="button-shape" data="[[computeThreeDotButtonShape(data, isOverlay, threeDotButtonOverride)]]" disable-upgrade$="[[!tonalOverride]]" hidden="[[isModernOverflowHidden(data, items, tonalOverride)]]" icon-name="[[icon]]" class="style-scope ytd-menu-renderer"></yt-button-shape>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);hXb=a}a=hXb;return a},{mode:_.as("kevlar_poly_si_batch_j030")?1:2});var UXb;var VXb;_.iv=_.Rr(function(a){var b=a.data;var c=function(){if(b().icon)a:{var d={iconName:b().icon};for(var e=_.v().resolve(_.fs),g=_.h([12,24]),k=g.next();!k.done;k=g.next()){var m=k.value;k=Object.assign({},d,{iconStyle:"youtube_fill",iconSize:m});m=Object.assign({},d,{iconStyle:"youtube_outline",iconSize:m});if(e.resolveIcon(k)){d=k;break a}if(e.resolveIcon(m)){d=m;break a}}d=void 0}else d=void 0;return d};
a={};return _.q("badge-shape",{class:_.et("badge-shape-wiz",function(){return PXa(b().type)},(a["badge-shape-wiz--overlay"]=function(){return b().isOverlay},a["badge-shape-wiz--ads-include-dot"]=function(){return b().adsIncludeDot},a["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(b().type){case 16:case 17:case 18:var d=!0;
break a;default:d=!1}return d},a["badge-shape-wiz--status-badge"]=function(){a:switch(b().type){case 11:case 12:case 13:case 14:case 15:var d=!0;
break a;default:d=!1}return d},a["badge-shape-wiz--no-text"]=function(){return!b().text},a["badge-shape-wiz--modern"]=function(){return b().modern},a)),
style:_.ot({"background-color":function(){var d;return(d=b().customColors)==null?void 0:d.backgroundColor}}),
role:function(){return b().accessibilityText?"img":void 0},
"aria-label":function(){return b().accessibilityText}},_.q(_.qi,{cond:function(){return b().animation},
then:function(d){return _.q(_.gt,{className:"badge-shape-wiz__icon",data:d,animationName:function(){return d().animationConfig.name||""}})}}),_.q(_.qi,{cond:function(){var d;
return c()&&!((d=b())==null?0:d.animation)},
then:function(){return _.q("div",{class:"badge-shape-wiz__icon"},_.q(ISa,{data:function(){return c()}}))}}),_.q("div",{class:"badge-shape-wiz__text"},function(){var d;
return(d=b())==null?void 0:d.text}))},"E");
_.iv.idomCompat=!0;_.Ts(_.iv,"badge-shape",{props:{data:_.VG}});var WXb=function(){var a=_.P.apply(this,arguments)||this;a.systemIcons=_.w("kevlar_system_icons");a.animated=_.w("animated_live_badge_icon");a.useBadgeShape=_.w("web_badge_shape_defrag");return a};
_.z(WXb,_.P);_.f=WXb.prototype;_.f.addTooltips=function(){for(var a=_.E(this.hostElement).querySelectorAll(".badge"),b=0,c;c=a[b++];){var d=this.repeatElement.itemForElement(c);c=_.E(c);c.lastChild&&c.lastChild.is==="tp-yt-paper-tooltip"&&c.removeChild(c.lastChild);if(d=d.metadataBadgeRenderer&&d.metadataBadgeRenderer.tooltip){var e=_.aH("tp-yt-paper-tooltip");(0,_.er)(e).textContent=d;e.setAttribute("position","top");c.appendChild(e)}}};
_.f.badgesChanged=function(){var a=this;_.VF().parkOrScheduleJob(function(){a.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.f.standaloneRoundedBadgeChanged=function(){var a=this.useRoundedBadge?this.useRoundedBadge:void 0;a&&(this.useRoundedBadge=a)};
_.f.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.f.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.f.computeStyle=function(a){_.w("enable_html5_teal_ad_badge")&&a==="BADGE_STYLE_TYPE_AD"&&(a="badge-style-type-ad-alternate");_.w("kevlar_ytb_live_badges")&&a==="BADGE_STYLE_TYPE_LIVE_NOW"&&(a="badge-style-type-live-now-alternate");return a?a.toLowerCase().replace(/_/g,"-"):""};
_.f.computeRole=function(a){return this.computeAriaLabel(a)?"img":"status"};
_.f.computeAriaLabel=function(a){var b;return(a==null?void 0:(b=a.accessibilityData)==null?void 0:b.label)||(a==null?void 0:a.label)};
_.f.computeBadgeShape=function(a){var b;if(a){var c,d=NXa(a.style),e=OXa(a.style),g=a.label,k=((c=a.accessibilityData)==null?void 0:c.label)||a.label;a=(b=a.icon)==null?void 0:b.iconType;b={type:d,brNzRatingBadgeType:e,text:g,accessibilityText:k,icon:a!=="PREMIUM"?a:void 0}}else b={};return b};
_.f.updateComputedBadges=function(a,b,c){var d=this;(b=b?[b]:c?[c]:void 0)?this.computedBadges=b:this.computedBadges=a==null?void 0:a.filter(function(e){var g;if((g=e.metadataBadgeRenderer)==null?0:g.groups){g=!1;e=_.h(e.metadataBadgeRenderer.groups);for(var k=e.next();!k.done;k=e.next()){k=k.value;var m=void 0;g=g||((m=d.hiddenBadgeGroups)==null?void 0:m.includes(k))}return!g}return!0})};
_.f.useFilledIcons=function(a){return _.w("kevlar_system_icons")&&(a==="AUDIO_BADGE"||a==="CHECK_CIRCLE_THICK"||a==="OFFICIAL_ARTIST_BADGE"||a==="SPONSORSHIP_STAR"||a==="PERSON_RADAR_FILLED"||a==="PERSON_RADAR")};
_.f.computeIcon=function(a){var b,c;a=a==null?void 0:(b=a.metadataBadgeRenderer)==null?void 0:(c=b.icon)==null?void 0:c.iconType;if(a!=="PREMIUM"&&a)return _.es(a)};
_.f.computeStandaloneBadge=function(a){var b;a=a==null?void 0:(b=a.icon)==null?void 0:b.iconType;return a==="PREMIUM_STANDALONE"||a==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
var OJ=WXb;OJ.prototype.hiddenBadgeGroupsChanged=OJ.prototype.hiddenBadgeGroupsChanged;OJ.prototype.standaloneBadgeChanged=OJ.prototype.standaloneBadgeChanged;OJ.prototype.standaloneRoundedBadgeChanged=OJ.prototype.standaloneRoundedBadgeChanged;OJ.prototype.badgesChanged=OJ.prototype.badgesChanged;_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],OJ.prototype,"hidden",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],OJ.prototype,"componentBehavior",void 0);
_.U([_.O(),_.W("design:type",Array)],OJ.prototype,"badges",void 0);_.U([_.O(),_.W("design:type",Object)],OJ.prototype,"topStandaloneBadge",void 0);_.U([_.O(),_.W("design:type",Object)],OJ.prototype,"bottomStandaloneBadge",void 0);_.U([_.O(),_.W("design:type",Object)],OJ.prototype,"computedBadges",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],OJ.prototype,"mediumFontAdBadge",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],OJ.prototype,"useRoundedBadge",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],OJ.prototype,"largeFontAdBadge",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],OJ.prototype,"overlayAd",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],OJ.prototype,"overlayPremium",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],OJ.prototype,"noDotAdBadge",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],OJ.prototype,"collectionTruncate",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],OJ.prototype,"isThumbnailBadge",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],OJ.prototype,"wrapBadges",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],OJ.prototype,"systemIcons",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],OJ.prototype,"animated",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],OJ.prototype,"useBadgeShape",void 0);_.U([_.O({value:[]}),_.W("design:type",Array)],OJ.prototype,"hiddenBadgeGroups",void 0);_.U([_.ir("#repeat"),_.W("design:type",tr)],OJ.prototype,"repeatElement",void 0);_.U([_.mr("badges"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OJ.prototype,"badgesChanged",null);
_.U([_.mr("useRoundedBadge"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OJ.prototype,"standaloneRoundedBadgeChanged",null);_.U([_.mr("topStandaloneBadge","bottomStandaloneBadge"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OJ.prototype,"standaloneBadgeChanged",null);_.U([_.mr("hiddenBadgeGroups"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OJ.prototype,"hiddenBadgeGroupsChanged",null);
OJ=_.U([_.Q({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],OJ);
var XXb=_.$r()(OJ,"ytd-badge-supported-renderer",function(){if(VXb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);VXb=a}a=VXb;return a},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.as("kevlar_poly_si_batch_j053")?1:2});var PJ,YXb=function(){var a=_.P.apply(this,arguments)||this;a.iconType="STAR";a.standardizeIconSize=_.w("kevlar_system_icons");a.mediaHoverOverlayInitialVisibility=_.w("enable_top_landscape_image_button_command_web");a.noBottomMargin=!1;a.thumbnailObjectFit="CONTAIN";a.thumbnailFitHeight=!0;a.actionMap={"yt-mute-ad-action":"handleMuteAd"};return a};
_.z(YXb,_.P);_.f=YXb.prototype;
_.f.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"},params:{mediumFontAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.image":{id:"media",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.image.thumbnail]]",width:"[[mediaThumbnailWidth]]",fitHeight:"[[thumbnailFitHeight]]",objectFit:"[[thumbnailObjectFit]]"}}}},
"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",
notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.f.dataChanged=function(){this.clickCommand=this.get("data.clickCommand.commandExecutorCommand.commands.0");this.clickCommand||(this.clickCommand=this.get("data.clickCommand"));this.clickCommand&&(this.updateMediaBackgroundImage(),this.ytSparklesClickLocationBehavior.configureClickTargets("root",PJ.JSC$12353_DEFAULT_CLICK_LOCATION_BEHAVIOR,PJ.JSC$12353_CLICK_LOCATION_ID_MAP))};
_.f.onTap=function(a){if(!_.w("use_on_click_for_desktop_display_ad"))this.onTapOrClick(a)};
_.f.onClick=function(a){if(_.w("use_on_click_for_desktop_display_ad"))this.onTapOrClick(a)};
_.f.onTapOrClick=function(a){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,a,!1)};
_.f.updateMediaBackgroundImage=function(){var a=this.get("data.image.thumbnail.thumbnails");a&&(a=_.Us(a,0))&&_.fr(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+a+")"})};
_.f.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var a=0;a<this.data.impressionEndpoints.length;a++){var b=this.data.impressionEndpoints[a];b.clickTrackingParams&&delete b.clickTrackingParams;_.w("web_ytd_display_ad_renderer_command_resolver_ks")?_.oo(this.hostElement,[b]):_.v().resolve(_.Yi).resolveCommand(b,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var c;((c=this.data)==null?0:c.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,
17)}};
_.f.handleMuteAd=function(){};
_.f.attached=function(){var a=this;_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.f.detached=function(){_.w("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Um.Object.defineProperties(YXb.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.titleText)return"";var b;return _.vo("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((b=this.data)==null?void 0:b.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.fifthLine)?this.data.fifthLine:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
computePriceHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getPrice}},
computeThirdLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getThirdLine}},
computeFourthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFourthLine}},
computeFifthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFifthLine}},
hasEnergyIcon:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.energyIcon)}},
computeSecondaryTextHidden:{configurable:!0,enumerable:!0,get:function(){return!(this.computeRatingHidden&&this.computePriceHidden)}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.layout?this.data.layout.toLowerCase().replace(/_/g,"-"):""}},
mediaThumbnailWidth:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.layout&&this.data.layout==="DISPLAY_AD_LAYOUT_VERTICAL_CAROUSEL_ITEM")return 135}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.layout==="display-ad-layout-top-landscape-image"}}});
var QJ=PJ=YXb;PJ.prototype.onClick=PJ.prototype.onClick;PJ.prototype.onTap=PJ.prototype.onTap;PJ.prototype.dataChanged=PJ.prototype.dataChanged;QJ.VERTICAL_CAROUSEL_ITEM_IMAGE_WIDTH=135;
QJ.JSC$12353_CLICK_LOCATION_ID_MAP=_.w("enable_web_home_top_landscape_image_layout_click_location")?new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","body-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER","secondary-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL","media-hover-overlay"],["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",
"media"],["PROMOTED_SPARKLES_CLICK_LOCATION_BORDER","media-background"]]):new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root"]]);
QJ.JSC$12353_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.w("enable_web_home_top_landscape_image_layout_click_location")?[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION",code:7,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",code:31,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",
code:1,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:9,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",code:41,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BORDER",
code:39,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}]:[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}];_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],QJ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],QJ.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.QI),_.W("design:type",Object)],QJ.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],QJ.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.jJ.YtSparklesClickLocationBehavior),_.W("design:type",Object)],QJ.prototype,"ytSparklesClickLocationBehavior",void 0);_.U([_.H(NI),_.W("design:type",Object)],QJ.prototype,"ytdActiveViewBehavior",void 0);_.U([_.H([_.eH.YtActionHandlerBehavior]),_.W("design:type",Object)],QJ.prototype,"actionHandlerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],QJ.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],QJ.prototype,"clickCommand",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Fp}),_.W("design:type",Boolean)],QJ.prototype,"miniMode",void 0);_.U([_.O(),_.W("design:type",String)],QJ.prototype,"iconType",void 0);_.U([_.K("data.titleText"),_.W("design:type",String),_.W("design:paramtypes",[])],QJ.prototype,"titleAriaLabel",null);
_.U([_.K("data.rating"),_.W("design:type",Object),_.W("design:paramtypes",[])],QJ.prototype,"getRating",null);_.U([_.K("data.price"),_.W("design:type",Object),_.W("design:paramtypes",[])],QJ.prototype,"getPrice",null);_.U([_.K("data.thirdLine"),_.W("design:type",Object),_.W("design:paramtypes",[])],QJ.prototype,"getThirdLine",null);_.U([_.K("data.fourthLine"),_.W("design:type",Object),_.W("design:paramtypes",[])],QJ.prototype,"getFourthLine",null);
_.U([_.K("data.fifthLine"),_.W("design:type",Object),_.W("design:paramtypes",[])],QJ.prototype,"getFifthLine",null);_.U([_.K("getRating"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],QJ.prototype,"computeRatingHidden",null);_.U([_.K("getPrice"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],QJ.prototype,"computePriceHidden",null);_.U([_.K("getThirdLine"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],QJ.prototype,"computeThirdLineHidden",null);
_.U([_.K("getFourthLine"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],QJ.prototype,"computeFourthLineHidden",null);_.U([_.K("getFifthLine"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],QJ.prototype,"computeFifthLineHidden",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.energyIcon"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],QJ.prototype,"hasEnergyIcon",null);
_.U([_.K("computePriceHidden","computeRatingHidden"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],QJ.prototype,"computeSecondaryTextHidden",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],QJ.prototype,"standardizeIconSize",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],QJ.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],QJ.prototype,"noBottomMargin",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data.layout"),_.W("design:type",String),_.W("design:paramtypes",[])],QJ.prototype,"layout",null);_.U([_.K("data.layout"),_.W("design:type",Object),_.W("design:paramtypes",[])],QJ.prototype,"mediaThumbnailWidth",null);_.U([_.K("layout"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],QJ.prototype,"useRoundedBadge",null);_.U([_.O(),_.W("design:type",String)],QJ.prototype,"thumbnailObjectFit",void 0);
_.U([_.O(),_.W("design:type",Object)],QJ.prototype,"thumbnailFitHeight",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],QJ.prototype,"dataChanged",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],QJ.prototype,"onTap",null);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],QJ.prototype,"onClick",null);
QJ=PJ=_.U([_.Q({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],QJ);
_.S(QJ,"ytd-display-ad-renderer",function(){if(UXb!==void 0)return UXb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-display-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-display-ad-renderer">\n  <div id="root" class="style-scope ytd-display-ad-renderer">\n    <div id="media-container" aria-hidden="true" class="style-scope ytd-display-ad-renderer">\n      <div id="media-background" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-badge" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-hover-overlay" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div class="title style-scope ytd-display-ad-renderer">\n      <a class="yt-display-ad-renderer-endpoint title-link style-scope ytd-display-ad-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(clickCommand)]]">\n        <yt-formatted-string class="title-text style-scope ytd-display-ad-renderer" text="[[data.titleText]]" title="[[getSimpleString(data.titleText)]]">\n        </yt-formatted-string>\n      </a>\n      <div id="menu" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" title="[[getSimpleString(data.bodyText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <div id="badge" class="badge style-scope ytd-display-ad-renderer"></div>\n      <yt-formatted-string id="secondary-text" hidden="[[computeSecondaryTextHidden]]" text="[[data.secondaryText]]" title="[[getSimpleString(data.secondaryText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-display-ad-renderer">[[getRating]]</span>\n      <yt-icon id="icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-display-ad-renderer"></yt-icon>\n      <yt-formatted-string id="price" hidden="[[computePriceHidden]]" text="[[getPrice]]" class="style-scope ytd-display-ad-renderer"></yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="third-line" hidden="[[computeThirdLineHidden]]" text="[[data.thirdLine]]" title="[[getSimpleString(data.thirdLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fourth-line" hidden="[[computeFourthLineHidden]]" text="[[data.fourthLine]]" title="[[getSimpleString(data.fourthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fifth-line" hidden="[[computeFifthLineHidden]]" text="[[data.fifthLine]]" title="[[getSimpleString(data.fifthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <yt-img-shadow id="energy-icon" height="14" hidden="[[!data.energyIcon]]" thumbnail="[[data.energyIcon]]" class="style-scope ytd-display-ad-renderer"></yt-img-shadow>\n    </div>\n    <div id="call-to-action" class="style-scope ytd-display-ad-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-display-ad-renderer">\n  <div id="dismissed-content" class="style-scope ytd-display-ad-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return UXb=a},{mode:1});var ZXb;var $Xb;var aYb;var bYb=function(){var a=_.P.apply(this,arguments)||this;a.DEFAULT_TOOLTIP_OFFSET="10";a.TOOLTIP_OFFSET_NO_BANNER="-8";a.badges=null;a.noEndpoints=!1;a.wrapText=!1;a.forceVerified=!1;a.tooltipPosition="top";a.compactStyle=!1;a.height=0;a.lineHeight=0;return a};
_.z(bYb,_.P);_.f=bYb.prototype;_.f.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.f.attached=function(){var a=this;this.observer=new MutationObserver(function(b,c){a.handleResized();c.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.f.detached=function(){this.observer&&this.observer.disconnect()};
_.f.logTooltipEvent=function(){_.w("kevlar_wiz_tooltip_event_killswitch")||EPb||(_.vt("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),EPb=!0)};
_.f.handleWindowResized=function(){this.handleResized()};
_.f.onChannelNameChanged=function(){this.verified?this.handleResized():(this.textEl&&this.textEl.style.removeProperty("width"),this.textContainerEl&&(this.textContainerEl.style.removeProperty("padding"),this.textContainerEl.style.removeProperty("margin-right"),this.textContainerEl.style.removeProperty("margin-left")))};
_.f.onHeightChanged=function(){if(this.verified){var a=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.Fi("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=a:this.textContainerEl.style.marginRight=a}};
_.f.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.Fi("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.f.handleResized=function(){var a=this;this.verified&&_.zk.addLowPriorityJob(function(){a.fitBackgroundToText();var b=getComputedStyle(a.hostElement).lineHeight;b&&(b=b.match(/\d+/))&&b.length&&(a.lineHeight=Number(b[0]));a.height=a.lineHeight&&!a.wrapText?a.lineHeight:a.textEl.offsetHeight})};
_.f.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var a=document.createRange(),b=_.E(this.textEl).children;b.length>0?a.selectNodeContents(b[0]):a.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(a.getBoundingClientRect().width)+"px"}};
_.f.computeChannelBadgeStyle=function(a){var b;if((a==null?0:(b=a.runs)==null?0:b.length)&&a.runs[0].textColor)return"--ytd-badge-icon-color:"+_.Cq(a.runs[0].textColor)+";"};
_.Um.Object.defineProperties(bYb.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!(!this.forceVerified&&this.get("badges.0.metadataBadgeRenderer.style")!=="BADGE_STYLE_TYPE_UNIFIED_VERIFIED")}},
hideBadges:{configurable:!0,enumerable:!0,get:function(){return this.verified||!this.badges||this.badges.length===0}},
formattedName:{configurable:!0,enumerable:!0,get:function(){return typeof this.channelName==="string"?_.Vp(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var a=this.get("badges.0.metadataBadgeRenderer.tooltip");if(a)return a}return _.Wp(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
var RJ=bYb;RJ.prototype.onLineHeightChanged=RJ.prototype.onLineHeightChanged;RJ.prototype.onHeightChanged=RJ.prototype.onHeightChanged;RJ.prototype.onChannelNameChanged=RJ.prototype.onChannelNameChanged;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],RJ.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],RJ.prototype,"badges",void 0);_.U([_.O(),_.W("design:type",Object)],RJ.prototype,"channelName",void 0);
_.U([_.O(),_.W("design:type",Object)],RJ.prototype,"noEndpoints",void 0);_.U([_.O(),_.W("design:type",Object)],RJ.prototype,"wrapText",void 0);_.U([_.O(),_.W("design:type",Object)],RJ.prototype,"forceVerified",void 0);_.U([_.O(),_.W("design:type",Object)],RJ.prototype,"tooltipPosition",void 0);_.U([_.O(),_.W("design:type",String)],RJ.prototype,"tooltip",void 0);_.U([_.O(),_.W("design:type",Boolean)],RJ.prototype,"hasChannelArt",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],RJ.prototype,"compactStyle",void 0);_.U([_.ir("#text-container"),_.W("design:type",HTMLElement)],RJ.prototype,"textContainerEl",void 0);_.U([_.ir("#text"),_.W("design:type",Object)],RJ.prototype,"textEl",void 0);_.U([_.ir("#verified-tooltip"),_.W("design:type",HTMLElement)],RJ.prototype,"verifiedTooltip",void 0);_.U([_.O(),_.W("design:type",Object)],RJ.prototype,"height",void 0);
_.U([_.O(),_.W("design:type",Object)],RJ.prototype,"lineHeight",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("badges","forceVerified"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],RJ.prototype,"verified",null);_.U([_.K("badges","verified"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],RJ.prototype,"hideBadges",null);_.U([_.K("channelName"),_.W("design:type",Object),_.W("design:paramtypes",[])],RJ.prototype,"formattedName",null);
_.U([_.K("badges","verified","formattedName"),_.W("design:type",String),_.W("design:paramtypes",[])],RJ.prototype,"tooltipText",null);_.U([_.K("hasChannelArt"),_.W("design:type",String),_.W("design:paramtypes",[])],RJ.prototype,"tooltipOffset",null);_.U([_.N("channelName"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RJ.prototype,"onChannelNameChanged",null);
_.U([_.N("height"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RJ.prototype,"onHeightChanged",null);_.U([_.N("lineHeight","height"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RJ.prototype,"onLineHeightChanged",null);RJ=_.U([_.Q({is:"ytd-channel-name",disableElementRegistration:!0})],RJ);
_.S(RJ,"ytd-channel-name",function(){if(aYb!==void 0)return aYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return aYb=a},{mode:_.as("kevlar_poly_si_batch_j036")?1:2});var SJ=function(){var a=_.P.apply(this,arguments)||this;a.standardizeIconSize=_.w("kevlar_system_icons");a.enableModernCommentBadges=_.w("enable_modern_comment_badges");return a};
_.z(SJ,_.P);SJ.prototype.basicPaletteChanged=function(){var a;(a=this.data.color)!=null&&a.basicColorPaletteData&&_.Dt(this.hostElement,this.data.color.basicColorPaletteData)};
SJ.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var a,b=this.get("basicColorPaletteData.backgroundColor",(a=this.data)==null?void 0:a.color),c;a=this.get("basicColorPaletteData.foregroundTitleColor",(c=this.data)==null?void 0:c.color);c={};b?(b=_.Cq(b),c["--ytd-author-comment-badge-background-color"]=b):(c["--ytd-author-comment-badge-icon-background-color"]="transparent",c["--ytd-author-comment-badge-background-color"]="transparent");a?(b=_.Cq(a),c["--ytd-author-comment-badge-name-color"]=
b,c["--ytd-author-comment-badge-icon-color"]=b):c["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(c).length>0&&_.fr(this.hostElement,c)}};
SJ.prototype.useFilledIcons=function(a){return _.w("kevlar_system_icons")&&(a==="CHECK_CIRCLE_THICK"||a==="OFFICIAL_ARTIST_BADGE")};
_.Um.Object.defineProperties(SJ.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
var TJ=SJ;TJ.prototype.colorChanged=TJ.prototype.colorChanged;TJ.prototype.basicPaletteChanged=TJ.prototype.basicPaletteChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],TJ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],TJ.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],TJ.prototype,"standardizeIconSize",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],TJ.prototype,"enableModernCommentBadges",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data.authorUnifiedVerified"),_.W("design:type",Object),_.W("design:paramtypes",[])],TJ.prototype,"verified",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],TJ.prototype,"creator",null);
_.U([_.N("data.color.basicColorPaletteData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],TJ.prototype,"basicPaletteChanged",null);_.U([_.N("data.color"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],TJ.prototype,"colorChanged",null);TJ=_.U([_.Q({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],TJ);
_.S(TJ,"ytd-author-comment-badge-renderer",function(){if($Xb!==void 0)return $Xb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-author-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="name" class="yt-simple-endpoint style-scope ytd-author-comment-badge-renderer" href$="[[computeOptionalHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n  <ytd-channel-name id="channel-name" channel-name="[[data.authorText]]" force-verified="[[verified]]" tooltip="[[data.iconTooltip]]" class="style-scope ytd-author-comment-badge-renderer">\n  </ytd-channel-name>\n</a>\n<yt-icon id="icon" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" size="12" class="style-scope ytd-author-comment-badge-renderer">\n</yt-icon>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return $Xb=a},{mode:1});var cYb;var dYb=function(){return _.P.apply(this,arguments)||this};
_.z(dYb,_.P);dYb.prototype.computeThumbnailWidth=function(a){if(a==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
var UJ=dYb;UJ.communityTabWidth=638;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],UJ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],UJ.prototype,"data",void 0);_.U([_.O({computed:"computeIcon_(data.icon)"}),_.W("design:type",String)],UJ.prototype,"icon",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],UJ.prototype,"surface",void 0);
_.U([_.O({reflectToAttribute:!0,value:_.w("enable_shrink_image_size_on_web_posts_singleton")}),_.W("design:type",Boolean)],UJ.prototype,"searchSxsUx",void 0);UJ=_.U([_.Q({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],UJ);
_.S(UJ,"ytd-backstage-image-renderer",function(){if(cYb!==void 0)return cYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[data.command]]" class="style-scope ytd-backstage-image-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-backstage-image-renderer" href$="[[computeHref_(data.command)]]" data="[[data.commmand]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.command]]" class="style-scope ytd-backstage-image-renderer">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="generated-image-identifier" class="generated-image-identifier style-scope ytd-backstage-image-renderer" hidden="[[!data.generatedImageMetadata]]">\n        <yt-icon class="generated-image-icon style-scope ytd-backstage-image-renderer" icon="[[computeIcon_(data.generatedImageMetadata.icon)]]"></yt-icon>\n        <span class="generated-image-label style-scope ytd-backstage-image-renderer">[[data.generatedImageMetadata.label]]</span>\n      </div>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return cYb=a},{mode:1});var eYb;var fYb=function(){var a=_.P.apply(this,arguments)||this;a.isLoading=!1;a.selectedItemIndex=-1;return a};
_.z(fYb,_.P);_.f=fYb.prototype;_.f.computeIsChannelOwner=function(a){if(!a)return!0;a=a[0];return!(a&&(a.signinEndpoint||a.selectServiceEndpoint))};
_.f.computeIsImagePoll=function(a){return(a==null?void 0:a.type)==="POLL_TYPE_IMAGE"};
_.f.computeIsTotalVotesDisabled=function(a){return!(a==null?0:a.totalVotes)};
_.f.thumbnailSrc=function(a){var b,c,d,e;return(a==null?0:(b=a.thumbnails)==null?0:(c=b[0])==null?0:c.url)?_.Id((d=a.thumbnails)==null?void 0:(e=d[0])==null?void 0:e.url):void 0};
_.f.progressWidth=function(a){return"width:"+(a?a*100:0)+"%;"};
_.f.textAreaWidth=function(a){return this.isImagePoll?null:"width:"+(a?a*100:0)+"%;"};
_.f.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.f.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var a=this.data.choices,b=0;b<a.length;b++)if(a[b].selected){this.selectedItemIndex=b;break}};
_.f.onPopupClosed=function(a,b){a=Number(this.pollVotes.selected);b.confirmed&&(this.selectChoice(a,!1),_.lo(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.f.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.f.onYtCommentPollRevert=function(a,b){b&&(this.selectChoice(b.selectedChoiceIndex,!0),this.set("data.totalVotes",b.totalVotes))};
_.f.onYtServiceRequestSent=function(a,b){if(b.actions)for(a=0;a<b.actions.length;a++){var c=b.actions[a];_.y(c,IE)&&this.set("data.totalVotes",_.y(c,IE).totalVotes)}};
_.f.onYtServiceRequestCompleted=function(a){var b=this.get("detail.data.actionResults.0.feedback",a);a=this.get("detail.data.actionResults.0.status",a);if(b==="FEEDBACK_DESELECT"||b==="FEEDBACK_SELECT")this.isLoading=!1,a==="STATUS_FAILED"?_.io(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.f.getEndpoint=function(a,b){return b===a?this.data.choices[b].deselectServiceEndpoint||null:this.data.choices[a].selectServiceEndpoint||null};
_.f.selectChoice=function(a,b){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var c=0;c<this.data.choices.length;c++){var d;if(a===this.selectedItemIndex){var e=!1;var g=d=null}else d=(e=c===a)?this.data.choices[c].voteRatioIfSelected:this.data.choices[c].voteRatioIfNotSelected,g=e?this.data.choices[c].votePercentageIfSelected:this.data.choices[c].votePercentageIfNotSelected;this.set("data.choices."+c+".voteRatio",d);
this.set("data.choices."+c+".votePercentage",g);this.set("data.choices."+c+".selected",e)}b||(this.isLoading=!0,(b=this.getEndpoint(a,this.selectedItemIndex))&&_.oo(this.hostElement,[b]));this.selectedItemIndex=this.selectedItemIndex===a?-1:a};
_.Um.Object.defineProperties(fYb.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
var VJ=fYb;VJ.prototype.onYtServiceRequestCompleted=VJ.prototype.onYtServiceRequestCompleted;VJ.prototype.onYtServiceRequestSent=VJ.prototype.onYtServiceRequestSent;VJ.prototype.onYtCommentPollRevert=VJ.prototype.onYtCommentPollRevert;VJ.prototype.onPopupClosed=VJ.prototype.onPopupClosed;VJ.prototype.dataChanged=VJ.prototype.dataChanged;_.U([_.H(_.eE),_.W("design:type",Object)],VJ.prototype,"paperItemBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],VJ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aI),_.W("design:type",Object)],VJ.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],VJ.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],VJ.prototype,"isLoading",void 0);_.U([_.O({computed:"computeIsChannelOwner(data.choices)"}),_.W("design:type",Boolean)],VJ.prototype,"isChannelOwner",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.W("design:type",Boolean)],VJ.prototype,"isImagePoll",void 0);_.U([_.O({computed:"computeIsTotalVotesDisabled(data)"}),_.W("design:type",Boolean)],VJ.prototype,"isTotalVotesDisabled",void 0);_.U([_.O(),_.W("design:type",Object)],VJ.prototype,"previousPollInfo",void 0);_.U([_.O(),_.W("design:type",Object)],VJ.prototype,"selectedItemIndex",void 0);_.U([_.ir("#poll-votes"),_.W("design:type",Object)],VJ.prototype,"pollVotes",void 0);
_.U([_.K("isChannelOwner"),_.W("design:type",Object),_.W("design:paramtypes",[])],VJ.prototype,"endpointStyle",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VJ.prototype,"dataChanged",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],VJ.prototype,"onPopupClosed",null);
_.U([_.M("yt-comment-poll-revert"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],VJ.prototype,"onYtCommentPollRevert",null);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Nt]),_.W("design:returntype")],VJ.prototype,"onYtServiceRequestSent",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],VJ.prototype,"onYtServiceRequestCompleted",null);VJ=_.U([_.Q({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],VJ);
_.S(VJ,"ytd-backstage-poll-renderer",function(){if(eYb!==void 0)return eYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return eYb=a},{mode:2});var gYb;var hYb={autoplay:!1,loop:!1},iYb={simpleText:""},jYb=function(){var a=_.P.apply(this,arguments)||this;a.isLoading=!1;a.usesPanelLockup=!1;a.selectedItemIndex=-1;a.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},hYb,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});a.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},hYb,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});a.correctnessAnimationProps=[];a.correctnessAnimationRefs=[];return a};
_.z(jYb,_.P);_.f=jYb.prototype;_.f.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.f.computeIsChannelOwner=function(a){if(!a)return!0;a=a[0];return!(a&&(a.signinEndpoint||a.selectServiceEndpoint))};
_.f.computeIsTotalVotesDisabled=function(a){return!(a==null?0:a.totalVotes)};
_.f.computeIsImageQuiz=function(a){return(a==null?void 0:a.type)==="POLL_TYPE_IMAGE"};
_.f.onExplanationChanged=function(){this.expander.reset()};
_.f.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var a=this.data.choices;if(a){this.maybeInitializeQuizLotties(a);for(var b=0;b<a.length;b++)if(a[b].isSelected||this.isChannelOwner&&a[b].isCorrect){this.selectedItemIndex=b;return}this.selectedItemIndex=-1}}};
_.f.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var a=this.selectedItemIndex,b=Number(this.quizVotes.selected);this.selectChoice(b);this.sendVoteAction(b,a);this.quizVotes.selected=-1;var c;a=!((c=this.data)==null?0:c.enableAnimation);this.maybePlayAnswerAnimations(a)}};
_.f.onYtCommentPollRevert=function(a,b){b&&(this.selectChoice(b.selectedChoiceIndex),this.set("data.totalVotes",b.totalVotes))};
_.f.onYtServiceRequestSent=function(a,b){if(b.actions)for(a=_.h(b.actions),b=a.next();!b.done;b=a.next())(b=_.y(b.value,IE))&&this.set("data.totalVotes",b.totalVotes)};
_.f.onYtServiceRequestCompleted=function(a){var b=this.get("detail.data.actionResults.0.feedback",a);a=this.get("detail.data.actionResults.0.status",a);if(b==="FEEDBACK_DESELECT"||b==="FEEDBACK_SELECT")this.isLoading=!1,a==="STATUS_FAILED"?_.io(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.f.getAnimationPropsForChoiceIndex=function(a,b){return b[a]};
_.f.maybePlayAnswerAnimations=function(a){a=a===void 0?!1:a;var b;if((b=this.data)!=null&&b.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){b=_.h(this.correctnessAnimationRefs);for(var c=b.next();!c.done;c=b.next()){var d=void 0,e=void 0;(d=c.value)==null||(e=d.lottieEl)==null||e.stop()}if(!(this.selectedItemIndex<0)){b=0;a&&(b=this.isCorrect?37:25);var g,k;(g=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(k=g.lottieEl)==null||k.goToAndPlay(a?b:0,!0);if(!(this.isCorrect||
(g=this.data.choices.findIndex(function(t){return t.isCorrect}),g<0))){var m,n;
(n=(m=this.correctnessAnimationRefs[g])==null?void 0:m.lottieEl)==null||n.goToAndPlay(37,!0);var r;m=(r=this.fadeContainers)==null?void 0:r.item(g);!a&&m&&this.fadeIn(m)}}}};
_.f.thumbnailSrc=function(a){var b,c,d,e;return(a==null?0:(b=a.thumbnails)==null?0:(c=b[0])==null?0:c.url)?_.Id((d=a.thumbnails)==null?void 0:(e=d[0])==null?void 0:e.url):void 0};
_.f.a11yVotedText=function(a,b){var c,d,e=((c=this.data)==null?void 0:(d=c.correctVotedText)==null?void 0:d.simpleText)||"",g,k;c=((g=this.data)==null?void 0:(k=g.votedText)==null?void 0:k.simpleText)||"";if(!b)return"";var m,n;if((m=this.data)==null?0:(n=m.choices)==null?0:n[a].isCorrect)return e;var r,t;return((r=this.data)==null?0:(t=r.choices)==null?0:t[a].isSelected)?c:""};
_.f.getEndpoint=function(a,b){return b===a?this.data.choices[a].deselectServiceEndpoint||null:this.data.choices[a].selectServiceEndpoint||null};
_.f.sendVoteAction=function(a,b){if(a=this.getEndpoint(a,b))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(a)};
_.f.selectChoice=function(a){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var b=0;b<this.data.choices.length;b++)this.set("data.choices."+b+".isSelected",a===this.selectedItemIndex?!1:b===a);this.selectedItemIndex=this.selectedItemIndex===a?-1:a};
_.f.maybeInitializeQuizLotties=function(a){var b=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=a.map(function(c){return{animationConfig:c.isCorrect?b.baseCorrectLottiePlayerAnimationConfig:b.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){b.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(c){return c.animationRef||{}})};
_.f.fadeIn=function(a){a.classList.add("fade-in");_.Ys(_.zk,function(){a.classList.remove("fade-in")},900)};
_.Um.Object.defineProperties(jYb.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.w("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.Wp(this.explanation).length>0&&this.showCorrectAnswer}},
showCorrectAnswer:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
isQuizAnsweringDisabled:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isQuizAnsweringDisabled?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}},
isAttempted:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:(b=a.choices)==null?void 0:b.some(function(c){return c.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null||!a.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?iYb:this.data.choices[this.selectedItemIndex].explanation||iYb}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null||!a.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
var WJ=jYb;WJ.prototype.onYtServiceRequestCompleted=WJ.prototype.onYtServiceRequestCompleted;WJ.prototype.onYtServiceRequestSent=WJ.prototype.onYtServiceRequestSent;WJ.prototype.onYtCommentPollRevert=WJ.prototype.onYtCommentPollRevert;WJ.prototype.dataChanged=WJ.prototype.dataChanged;WJ.prototype.onExplanationChanged=WJ.prototype.onExplanationChanged;_.U([_.H(_.eE),_.W("design:type",Object)],WJ.prototype,"paperItemBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],WJ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],WJ.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.$G.YtTaskEmitterBehavior),_.W("design:type",Object)],WJ.prototype,"ytTaskEmitterBehavior",void 0);_.U([_.H(_.aI),_.W("design:type",Object)],WJ.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],WJ.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],WJ.prototype,"isLoading",void 0);_.U([_.O(),_.W("design:type",Object)],WJ.prototype,"usesPanelLockup",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.W("design:type",Boolean)],WJ.prototype,"isChannelOwner",void 0);_.U([_.O({computed:"computeIsTotalVotesDisabled(data)"}),_.W("design:type",Boolean)],WJ.prototype,"isTotalVotesDisabled",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.W("design:type",Boolean)],WJ.prototype,"isImageQuiz",void 0);_.U([_.O(),_.W("design:type",Object)],WJ.prototype,"previousQuizInfo",void 0);_.U([_.O(),_.W("design:type",Object)],WJ.prototype,"selectedItemIndex",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data","usesPanelLockup"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],WJ.prototype,"shouldUseModernUi",null);
_.U([_.jr(".fade-container"),_.W("design:type",Object)],WJ.prototype,"fadeContainers",void 0);_.U([_.O(),_.W("design:type",Array)],WJ.prototype,"correctnessAnimationProps",void 0);_.U([_.K("explanation","showCorrectAnswer"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],WJ.prototype,"showExplanation",null);_.U([_.K("isChannelOwner","isAttempted"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],WJ.prototype,"showCorrectAnswer",null);
_.U([_.K("isChannelOwner","isAttempted","data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],WJ.prototype,"isQuizAnsweringDisabled",null);_.U([_.K("isQuizAnsweringDisabled"),_.W("design:type",Object),_.W("design:paramtypes",[])],WJ.prototype,"endpointStyle",null);_.U([_.K("data","selectedItemIndex"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],WJ.prototype,"isAttempted",null);
_.U([_.K("data","selectedItemIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],WJ.prototype,"explanation",null);_.U([_.K("data","selectedItemIndex"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],WJ.prototype,"isCorrect",null);_.U([_.ir("ytd-expander"),_.W("design:type",Object)],WJ.prototype,"expander",void 0);_.U([_.ir("#quiz-votes"),_.W("design:type",Object)],WJ.prototype,"quizVotes",void 0);
_.U([_.N("explanation"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WJ.prototype,"onExplanationChanged",null);_.U([_.N("data","isChannelOwner"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WJ.prototype,"dataChanged",null);_.U([_.M("yt-comment-quiz-revert"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],WJ.prototype,"onYtCommentPollRevert",null);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Nt]),_.W("design:returntype")],WJ.prototype,"onYtServiceRequestSent",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],WJ.prototype,"onYtServiceRequestCompleted",null);WJ=_.U([_.Q({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],WJ);
_.S(WJ,"ytd-backstage-quiz-renderer",function(){if(gYb!==void 0)return gYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class-name="[[is]] correctness-lottie" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]" class="style-scope ytd-backstage-quiz-renderer">\n                </ytd-lottie-player>\n              </div>\n            </div>\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n<div class="explanation-box style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" hidden="[[!showExplanation]]">\n  <yt-formatted-string class="explanation-header style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" text="[[data.explanationHeaderText]]">\n  </yt-formatted-string>\n  <ytd-expander id="expander" max-number-of-lines="3" class="style-scope ytd-backstage-quiz-renderer">\n    <yt-formatted-string class="choice-explanation style-scope ytd-backstage-quiz-renderer" slot="content" force-default-style="" text="[[explanation]]">\n    </yt-formatted-string>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="more-button">[[getSimpleString(data.explanationExpandText)]]</span>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="less-button">[[getSimpleString(data.explanationCollapseText)]]</span>\n  </ytd-expander>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return gYb=a},{mode:1});var kYb;var lYb=function(){return _.P.apply(this,arguments)||this};
_.z(lYb,_.P);var XJ=lYb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],XJ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],XJ.prototype,"data",void 0);XJ=_.U([_.Q({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],XJ);
_.S(XJ,"ytd-post-uploaded-video-renderer",function(){if(kYb!==void 0)return kYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-uploaded-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-post-uploaded-video-renderer">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-post-uploaded-video-renderer">\n  </yt-img-shadow>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return kYb=a},{mode:1});var mYb;var nYb=function(){return _.P.apply(this,arguments)||this};
_.z(nYb,_.P);nYb.prototype.useFilledIcons=function(a){return a==="SPONSORSHIP_STAR"};
var YJ=nYb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],YJ.prototype,"data",void 0);YJ=_.U([_.Q({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],YJ);
_.S(YJ,"ytd-sponsors-only-badge-renderer",function(){if(mYb!==void 0)return mYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsors-only-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" class="style-scope ytd-sponsors-only-badge-renderer">\n</yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer">\n  <tp-yt-paper-tooltip for="label" class="style-scope ytd-sponsors-only-badge-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n  </tp-yt-paper-tooltip>\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return mYb=a},{mode:1});var oYb;var pYb=function(){return _.P.apply(this,arguments)||this};
_.z(pYb,_.P);var ZJ=pYb;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],ZJ.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],ZJ.prototype,"data",void 0);ZJ=_.U([_.Q({is:"ytd-child-video-renderer",disableElementRegistration:!0})],ZJ);
_.S(ZJ,"ytd-child-video-renderer",function(){if(oYb!==void 0)return oYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-child-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-child-video-renderer" id="title" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"><yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-child-video-renderer"></yt-formatted-string><div id="length" class="style-scope ytd-child-video-renderer">[[getSimpleString(data.lengthText)]]</div></a>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return oYb=a},{mode:1});var qYb;var rYb;var sYb=function(){var a=_.P.apply(this,arguments)||this;a.size=0;a.enableWebModernCollectionsV2=_.w("web_modern_collections_v2");a.fallbackImageSize={height:void 0,width:9999};a.webModernCollections=!1;return a};
_.z(sYb,_.P);_.f=sYb.prototype;_.f.computeBlurredImageSize=function(a){return a?{height:a*2,width:a*2}:this.fallbackImageSize};
_.f.computeImageSize=function(a){return a?{height:a,width:a}:this.fallbackImageSize};
_.f.computeObjectFit=function(a){return a?"FILL":"CONTAIN"};
_.f.computePreserve=function(a){return a?!0:!1};
_.f.setBackground=function(){var a,b;_.w("web_modern_collections_v2")&&((a=this.data)==null?0:(b=a.thumbnail)==null?0:b.sampledThumbnailColor)&&(a=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+a.red+","+a.green+","+a.blue+",1)")};
var $J=sYb;$J.prototype.setBackground=$J.prototype.setBackground;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],$J.prototype,"watchFeedThumbnail",void 0);_.U([_.O(),_.W("design:type",Object)],$J.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],$J.prototype,"size",void 0);
_.U([_.O({computed:"computeBlurredImageSize(size)"}),_.W("design:type",Object)],$J.prototype,"blurredImageSize",void 0);_.U([_.O({computed:"computeImageSize(size)"}),_.W("design:type",Object)],$J.prototype,"imageSize",void 0);_.U([_.O({computed:"computePreserve(size)"}),_.W("design:type",String)],$J.prototype,"preserve",void 0);_.U([_.O({computed:"computeObjectFit(size)"}),_.W("design:type",String)],$J.prototype,"objectFit",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],$J.prototype,"enableWebModernCollectionsV2",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$J.prototype,"webModernCollections",void 0);_.U([_.N("data.thumbnail.sampledThumbnailColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$J.prototype,"setBackground",null);$J=_.U([_.Q({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],$J);
_.S($J,"ytd-playlist-custom-thumbnail-renderer",function(){if(rYb!==void 0)return rYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[webModernCollections]]" class="style-scope ytd-playlist-custom-thumbnail-renderer">\n    <div class="blurred-image-wrapper style-scope ytd-playlist-custom-thumbnail-renderer" style$="[[backgroundStyle]]">\n        <yt-image class="blurred-image style-scope ytd-playlist-custom-thumbnail-renderer" alt="hidden" aria-hidden="true" data="[[data.thumbnail]]" ftl-eligible="" height="[[blurredImageSize.height]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[blurredImageSize.width]]">\n        </yt-image>\n    </div>\n</template>\n<yt-image class="custom-thumbnail style-scope ytd-playlist-custom-thumbnail-renderer" alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[imageSize.height]]" object-fit="[[objectFit]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[imageSize.width]]">\n</yt-image>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return rYb=a},{mode:1});var tYb;var uYb=function(){return _.P.apply(this,arguments)||this};
_.z(uYb,_.P);var aK=uYb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],aK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],aK.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Number)],aK.prototype,"width",void 0);aK=_.U([_.Q({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],aK);
_.S(aK,"ytd-playlist-video-thumbnail-renderer",function(){if(tYb!==void 0)return tYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" width="[[width]]" class="style-scope ytd-playlist-video-thumbnail-renderer">\n</yt-image>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return tYb=a},{mode:1});var vYb;var wYb=function(){return _.P.apply(this,arguments)||this};
_.z(wYb,_.P);var bK=wYb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],bK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],bK.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Number)],bK.prototype,"width",void 0);bK=_.U([_.Q({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],bK);
_.S(bK,"ytd-show-custom-thumbnail-renderer",function(){if(vYb!==void 0)return vYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" width="[[width]]" class="style-scope ytd-show-custom-thumbnail-renderer">\n</yt-image>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return vYb=a},{mode:1});var xYb;var cK=function(){return _.P.apply(this,arguments)||this};
_.z(cK,_.P);cK.prototype.useFilledIcons=function(a){return a==="MUSIC"||a==="COURSE"};
cK.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=Eq(this.overlayColor,"0.8");else if(this.overlayColor){var a=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+a.red+","+a.green+","+a.blue+",0.8)"}};
_.Um.Object.defineProperties(cK.prototype,{overlayStyle:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.text||!this.data.icon)}},
overlayTextStyle:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.text||this.data.icon)}}});
var dK=cK;dK.prototype.overlayColorChanged=dK.prototype.overlayColorChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],dK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],dK.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],dK.prototype,"overlayColor",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data.icon","data.text"),_.W("design:type",Object),_.W("design:paramtypes",[])],dK.prototype,"overlayStyle",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data.icon","data.text"),_.W("design:type",Object),_.W("design:paramtypes",[])],dK.prototype,"overlayTextStyle",null);_.U([_.N("overlayColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dK.prototype,"overlayColorChanged",null);dK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],dK);
_.S(dK,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(xYb!==void 0)return xYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-bottom-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-icon>\n<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-formatted-string>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return xYb=a},{mode:1});var yYb;var zYb=function(){var a=_.P.apply(this,arguments)||this;a.active=!1;return a};
_.z(zYb,_.P);zYb.prototype.computeIsSpinnerHidden=function(a){return(a==null?void 0:a.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
zYb.prototype.computeOverlayIcon=function(a){return(a==null?void 0:a.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(a==null?void 0:a.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
var eK=zYb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],eK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],eK.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],eK.prototype,"active",void 0);eK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],eK);
_.S(eK,"ytd-thumbnail-overlay-downloading-renderer",function(){if(yYb!==void 0)return yYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-downloading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[computeOverlayIcon(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[active]]" hidden="[[computeIsSpinnerHidden(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></tp-yt-paper-spinner-lite>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return yYb=a},{mode:1});var AYb;var BYb=function(){return _.P.apply(this,arguments)||this};
_.z(BYb,_.P);_.Um.Object.defineProperties(BYb.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
var fK=BYb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],fK.prototype,"data",void 0);_.U([_.K("data.text"),_.W("design:type",Object),_.W("design:paramtypes",[])],fK.prototype,"text",null);fK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],fK);
_.S(fK,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(AYb!==void 0)return AYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-hover-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-hover-text-renderer"></yt-icon>\n<span class="style-scope ytd-thumbnail-overlay-hover-text-renderer">[[text]]</span>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return AYb=a},{mode:1});var CYb,DYb=function(){if(CYb!==void 0)return CYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-equalizer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg xmlns="http://www.w3.org/2000/svg" id="equalizer" viewBox="0 0 55 95" class="style-scope ytd-thumbnail-overlay-equalizer">\n  <g class="style-scope ytd-thumbnail-overlay-equalizer">\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="0"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="20"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="40"></rect>\n  </g>\n</svg>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return CYb=a};var EYb=function(){return _.P.apply(this,arguments)||this};
_.z(EYb,_.P);_.Um.Object.defineProperties(EYb,{template:{configurable:!0,enumerable:!0,get:function(){return DYb()}}});
var FYb=EYb;_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],FYb.prototype,"animateEqualizer",void 0);FYb=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],FYb);_.$r()(FYb,"ytd-thumbnail-overlay-equalizer",function(){return DYb()},{allowedProps:["animateEqualizer"],
mode:1});var GYb;var HYb=function(){var a=_.P.apply(this,arguments)||this;a.nowPlayingBadge=_.w("web_now_playing_badge");a.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return a};
_.z(HYb,_.P);HYb.prototype.activeChanged=function(){var a=this;_.w("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.Qm(this,function(){_.io(a.hostElement,"yt-playlist-lockup-now-playing-active",a)})};
HYb.prototype.onMiniplayerPlayStateChanged=function(a){var b,c=(b=_.y(_.xF().currentEndpoint,_.Un))==null?void 0:b.videoId;this.isVideoPlaying=a&&(_.w("web_limit_now_playing_animation_killswitch")||this.videoId===c)};
var gK=HYb;gK.prototype.activeChanged=gK.prototype.activeChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],gK.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],gK.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],gK.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],gK.prototype,"isVideoPlaying",void 0);_.U([_.O(),_.W("design:type",String)],gK.prototype,"videoId",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],gK.prototype,"equalizerOnly",void 0);_.U([_.O(),_.W("design:type",Boolean)],gK.prototype,"isActive",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],gK.prototype,"nowPlayingBadge",void 0);_.U([_.N("isActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gK.prototype,"activeChanged",null);
gK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],gK);
_.S(gK,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(GYb!==void 0)return GYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-now-playing-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="overlay-text" hidden="[[equalizerOnly]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">[[getSimpleString(data.text)]]</span>\n<ytd-thumbnail-overlay-equalizer animate-equalizer="[[isVideoPlaying]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">\n</ytd-thumbnail-overlay-equalizer>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return GYb=a},{mode:1});var IYb;var JYb=function(){return _.P.apply(this,arguments)||this};
_.z(JYb,_.P);var hK=JYb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],hK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],hK.prototype,"data",void 0);hK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],hK);
_.S(hK,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(IYb!==void 0)return IYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-playback-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.texts]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"></yt-formatted-string></template>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return IYb=a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var KYb;var LYb=function(){return _.P.apply(this,arguments)||this};
_.z(LYb,_.P);LYb.prototype.onDurationChanged=function(){var a,b;_.E(this.hostElement).querySelector("#progress").style.width=((b=(a=this.data)==null?void 0:a.percentDurationWatched)!=null?b:0)+"%"};
var iK=LYb;iK.prototype.onDurationChanged=iK.prototype.onDurationChanged;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],iK.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],iK.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],iK.prototype,"isLive",void 0);_.U([_.N("data.percentDurationWatched"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iK.prototype,"onDurationChanged",null);
iK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],iK);
_.S(iK,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(KYb!==void 0)return KYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-resume-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress" class="style-scope ytd-thumbnail-overlay-resume-playback-renderer"></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return KYb=a},{mode:1});var MYb;var NYb=function(){var a=_.P.apply(this,arguments)||this;a.bottomPanel=!1;a.richGridOverlay=!1;a.watchFeedOverlay=!1;a.isCompact=!1;return a};
_.z(NYb,_.P);NYb.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.Um.Object.defineProperties(NYb.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:(b=a.icon)==null?void 0:b.iconType)==="PLAY_ALL"&&_.w("kevlar_system_icons")}}});
var jK=NYb;jK.prototype.widthChanged=jK.prototype.widthChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],jK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],jK.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Number)],jK.prototype,"width",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],jK.prototype,"bottomPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],jK.prototype,"richGridOverlay",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],jK.prototype,"watchFeedOverlay",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],jK.prototype,"isCompact",void 0);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],jK.prototype,"isIconFilled",null);_.U([_.N("width","watchFeedOverlay"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jK.prototype,"widthChanged",null);
jK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],jK);
_.S(jK,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(MYb!==void 0)return MYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-side-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-formatted-string>\n<yt-icon default-to-filled="[[isIconFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-icon>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return MYb=a},{mode:1});var OYb;var PYb=["CLIP","SHORTS"],QYb=function(){var a=_.P.apply(this,arguments)||this;a.animated=_.w("animated_live_badge_icon");a.hasIcon=!1;a.updateTimerIntervalId=0;a.timeSinceLive=0;return a};
_.z(QYb,_.P);_.f=QYb.prototype;_.f.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.f.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.f.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.f.hasIconOrText=function(){var a,b;return!!(((a=this.data)==null?0:a.icon)||((b=this.data)==null?0:b.text))};
_.f.initializeLiveBadgeTimer=function(){var a=this,b,c=(b=this.liveBadgeData)==null?void 0:b.startTimestampSec;if(c&&this.canShowLiveBadgeTimer()){var d;b=Number((d=this.liveBadgeData)==null?void 0:d.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(c);this.updateTimerIntervalId=_.ej(function(){a.canShowLiveBadgeTimer()?a.timeSinceLive++:(a.timeSinceLive=0,window.clearInterval(a.updateTimerIntervalId))},b)}else this.timeSinceLive=0};
_.f.canShowLiveBadgeTimer=function(){var a=Date.now(),b,c;return a<(Number((b=this.liveBadgeData)==null?void 0:b.endTimestampSec)-1)*1E3&&a>Number((c=this.liveBadgeData)==null?void 0:c.startTimestampSec)*1E3};
_.Um.Object.defineProperties(QYb.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a=this.data;var b=this.timeSinceLive;var c,d,e,g;a:{var k=a.style;if(k===void 0)k=16;else switch(k){case "LIVE":k=17;break a;default:k=16}}b={type:k,text:b?UFa({seconds:b}):_.Wp(a.text),accessibilityText:(c=a.text)==null?void 0:(d=c.accessibility)==null?void 0:(e=d.accessibilityData)==null?void 0:e.label,icon:(g=a.icon)==null?void 0:g.iconType}}else b={};return b}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.liveBadgeData}},
overlayType:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.type)return this.data.type.replace("THUMBNAIL_OVERLAY_TIME_STATUS_TYPE_","")}},
useFilledIcon:{configurable:!0,enumerable:!0,get:function(){return PYb.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
var pK=QYb;pK.prototype.initializeLiveBadgeTimer=pK.prototype.initializeLiveBadgeTimer;pK.prototype.dataChanged=pK.prototype.dataChanged;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],pK.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],pK.prototype,"data",void 0);_.U([_.O({computed:"computeIcon_(data.icon)"}),_.W("design:type",String)],pK.prototype,"icon",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],pK.prototype,"animated",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.W("design:type",Boolean)],pK.prototype,"hideTimeStatus",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],pK.prototype,"hasIcon",void 0);_.U([_.O(),_.W("design:type",Object)],pK.prototype,"timeSinceLive",void 0);_.U([_.K("data","timeSinceLive"),_.W("design:type",Object),_.W("design:paramtypes",[])],pK.prototype,"badgeShapeData",null);
_.U([_.K("data","overlayType"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],pK.prototype,"hideBadgeShape",null);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pK.prototype,"dataChanged",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.style"),_.W("design:type",Object),_.W("design:paramtypes",[])],pK.prototype,"overlayStyle",null);
_.U([_.K("data.liveBadgeData"),_.W("design:type",Object),_.W("design:paramtypes",[])],pK.prototype,"liveBadgeData",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.type"),_.W("design:type",Object),_.W("design:paramtypes",[])],pK.prototype,"overlayType",null);_.U([_.K("overlayType","overlayStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],pK.prototype,"useFilledIcon",null);
_.U([_.mr("liveBadgeData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pK.prototype,"initializeLiveBadgeTimer",null);pK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],pK);
_.S(pK,"ytd-thumbnail-overlay-time-status-renderer",function(){if(OYb!==void 0)return OYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-time-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer badges="[[data.badges]]" is-thumbnail-badge="" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></ytd-badge-supported-renderer><div class="thumbnail-overlay-badge-shape style-scope ytd-thumbnail-overlay-time-status-renderer" hidden="[[hideBadgeShape]]"><badge-shape data="[[badgeShapeData]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></badge-shape></div><div id="time-status" hidden="[[hideTimeStatus]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"><yt-icon active="[[useFilledIcon]]" disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" size="16" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></yt-icon><span id="text" aria-label$="[[data.text.accessibility.accessibilityData.label]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer">\n    [[getSimpleString(data.text)]]\n  </span></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return OYb=a},{mode:_.as("kevlar_poly_si_batch_j035")?1:2});var RYb;var qK=function(){return _.P.apply(this,arguments)||this};
_.z(qK,_.P);qK.prototype.configureRendererStamper=function(){return{"data.primaryActionButton":{id:"primary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.secondaryActionButton":{id:"secondary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
qK.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(a){if(this.hasPlaybackProgressBar)return{percentDurationWatched:a.percentDurationWatched}};
qK.prototype.computeHasPlaybackProgressBar=function(a){return!!a.percentDurationWatched&&a.percentDurationWatched>0};
var rK=qK;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],rK.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],rK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],rK.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.W("design:type",Boolean)],rK.prototype,"hasPlaybackProgressBar",void 0);
rK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],rK);
_.S(rK,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(RYb!==void 0)return RYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-show-watch-forward-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n  <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <div id="button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n    <div id="primary-action-button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      <div id="primary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n      <ytd-thumbnail-overlay-resume-playback-renderer id="playback-progress" data="[[computeThumbnailOverlayResumePlaybackRenderer(data)]]" hidden$="[[!hasPlaybackProgressBar]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      </ytd-thumbnail-overlay-resume-playback-renderer>\n    </div>\n    <div id="secondary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return RYb=a},{mode:1});var SYb;_.Zl(SXa);var TYb=_.Rr(function(a){var b=a.data;var c=a.children;var d=function(){return!!b().doubleStack};
return _.q("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!b().experimentEnabled}},_.q(_.qi,{cond:b,
then:function(){return _.q("div",null,_.q(_.qi,{cond:d,then:function(){var e={};return _.q("div",{class:_.et("collections-stack-wiz__collection-stack2",function(){return b().customClassName2ndStack},(e["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return b().enableResponsiveMode},e)),
style:_.ot({"background-color":function(){return QXa(b())}})})}}),_.q("div",{class:_.et("collections-stack-wiz__collection-stack1",function(){return b().customClassName1stStack},function(){return RXa(b().thumbnailSize?b().thumbnailSize:"medium")}),
style:_.ot({"background-color":function(){return QXa(b())}})}),c)}}))},"F");_.Ts(TYb,"yt-collections-stack",{props:{data:_.VG}});var UYb=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};a.webModernCollections=!1;a.isSearch=!1;a.isDoubleStack=!1;a.thumbnailSize="medium";a.enableWebModernCollectionsV2=_.w("web_modern_collections_v2");return a};
_.z(UYb,_.P);_.f=UYb.prototype;
_.f.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:"ytd-thumbnail-overlay-now-playing-renderer",tvfilmShowWatchForwardOverlayRenderer:"ytd-tvfilm-show-watch-forward-overlay-renderer"}},hoverOverlays_:{id:"hover-overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer"}},
"data.thumbnailRenderer":{id:"playlist-thumbnails",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",properties:{width:"[[width]]"}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",properties:{size:"[[customThumbnailSize]]",watchFeedThumbnail:"[[watchFeedThumbnail]]",webModernCollections:"[[webModernCollections]]"}},showCustomThumbnailRenderer:{component:"ytd-show-custom-thumbnail-renderer",properties:{width:"[[width]]"}}}}}};
_.f.getThumbnailDetails=function(a){if(a!=null&&a.thumbnailRenderer){var b=a.thumbnailRenderer,c;if((c=b.playlistVideoThumbnailRenderer)==null?0:c.thumbnail)return b.playlistVideoThumbnailRenderer.thumbnail;var d;if((d=b.playlistCustomThumbnailRenderer)==null?0:d.thumbnail)return b.playlistCustomThumbnailRenderer.thumbnail;a=a.thumbnailRenderer;var e;if((e=a.showCustomThumbnailRenderer)==null?0:e.thumbnail)return a.showCustomThumbnailRenderer.thumbnail}};
_.f.computeOverlayColor=function(a){var b,c;if((b=this.getThumbnailDetails(a))==null?0:(c=b.darkColorPalette)==null?0:c.section2Color)return this.getThumbnailDetails(a).darkColorPalette.section2Color;var d;return(d=this.getThumbnailDetails(a))==null?void 0:d.sampledThumbnailColor};
_.f.computeWebModernCollections=function(a){if(a==null||!a.thumbnailOverlays)return!1;a=_.h(a.thumbnailOverlays);for(var b=a.next();!b.done;b=a.next()){var c=void 0;if((c=b.value)==null?0:c.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.f.computeNavigationEndpoint=function(a){return CDa(a==null?void 0:a.navigationEndpoint)};
_.Um.Object.defineProperties(UYb.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var a=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:a==null?void 0:a.sampledThumbnailColor,vibrantColorPalette:a==null?void 0:a.vibrantColorPalette,darkColorPalette:a==null?void 0:a.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
var sK=UYb;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],sK.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],sK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(CVb),_.W("design:type",Object)],sK.prototype,"ytdThumbnailBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],sK.prototype,"componentBehavior",void 0);
_.U([_.O({value:!1}),_.W("design:type",Boolean)],sK.prototype,"watchFeedThumbnail",void 0);_.U([_.O(),_.W("design:type",Number)],sK.prototype,"customThumbnailSize",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],sK.prototype,"hideAria",void 0);_.U([_.O(),_.W("design:type",Object)],sK.prototype,"data",void 0);_.U([_.O({computed:"computeOverlayColor(data)"}),_.W("design:type",Object)],sK.prototype,"overlayColor",void 0);
_.U([_.O({computed:"computeWebModernCollections(data)"}),_.W("design:type",Object)],sK.prototype,"webModernCollections",void 0);_.U([_.O({computed:"computeNavigationEndpoint(data)"}),_.W("design:type",Object)],sK.prototype,"computedNavigationEndpoint",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],sK.prototype,"isSearch",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],sK.prototype,"isDoubleStack",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],sK.prototype,"thumbnailSize",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],sK.prototype,"enableWebModernCollectionsV2",void 0);_.U([_.K("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.W("design:type",Object),_.W("design:paramtypes",[])],sK.prototype,"collectionStack",null);sK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],sK);
_.S(sK,"ytd-playlist-thumbnail",function(){if(SYb!==void 0)return SYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-playlist-thumbnail"></yt-collections-stack>\n<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-playlist-thumbnail" aria-hidden="[[hideAria]]" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" tabindex="-1">\n  <div id="playlist-thumbnails" class="style-scope ytd-playlist-thumbnail"></div>\n  <yt-formatted-string id="length" hidden="[[!data.lengthText]]" text="[[data.lengthText]]" class="style-scope ytd-playlist-thumbnail">\n  </yt-formatted-string>\n  <div id="overlays" class="style-scope ytd-playlist-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-playlist-thumbnail"></div>\n</a>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return SYb=a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var VYb;var WYb=function(){var a=_.P.apply(this,arguments)||this;a.noEndpoints=!1;a.amsterdamPostMvp=_.w("web_amsterdam_post_mvp_playlists");a.badges=[];a.transferState="TRANSFER_STATE_UNKNOWN";return a};
_.z(WYb,_.P);_.f=WYb.prototype;_.f.getMetadata=function(a){if(!a)return[];var b=[],c=a.shortViewCountText||a.viewCountText;c&&b.push(_.Wp(c));a.publishedTimeText&&b.push(_.Wp(a.publishedTimeText));a.upcomingEventData&&a.upcomingEventData.upcomingEventText&&b.push(_.Ru(_.Wp(a.upcomingEventData.upcomingEventText),Number(a.upcomingEventData.startTime)));return b};
_.f.observeDataForBylineSeparator=function(){this.data&&_.br(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.f.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.Cq(this.metadataColor)};
_.f.getSimpleString=function(a){return _.Wp(a)};
_.f.isBylineHidden=function(a){return this.noByline||!((a==null?0:a.longBylineText)||(a==null?0:a.shortBylineText))};
_.f.isMetadataHidden=function(a){var b;return((b=this.getMetadata(a))==null?void 0:b.length)===0};
_.f.isBylineMetadataSeparatorHidden=function(a){return this.isMetadataHidden(a)||!this.shouldShowVideoInfo};
_.f.isLongByline=function(a,b){return b&&!(a==null||!a.longBylineText)};
_.Um.Object.defineProperties(WYb.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var a;return this.amsterdamPostMvp&&!((a=this.data)==null||!a.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.w("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
var tK=WYb;tK.prototype.metadataColorChanged=tK.prototype.metadataColorChanged;tK.prototype.observeDataForBylineSeparator=tK.prototype.observeDataForBylineSeparator;_.U([_.H(_.OI),_.W("design:type",Object)],tK.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],tK.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],tK.prototype,"noEndpoints",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],tK.prototype,"isSlimShort",void 0);
_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],tK.prototype,"radioMeta",void 0);_.U([_.O({selector:_.Su}),_.W("design:type",Object)],tK.prototype,"isGridViewEnabled",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],tK.prototype,"richMeta",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],tK.prototype,"amsterdamPostMvp",void 0);_.U([_.O(),_.W("design:type",Boolean)],tK.prototype,"noByline",void 0);
_.U([_.O({computed:"isLongByline(data, radioMeta)"}),_.W("design:type",Boolean)],tK.prototype,"longByline",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],tK.prototype,"truncateMetadataLine",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],tK.prototype,"miniMode",void 0);_.U([_.O(),_.W("design:type",Number)],tK.prototype,"metadataColor",void 0);_.U([_.O(),_.W("design:type",Array)],tK.prototype,"badges",void 0);
_.U([_.O({selector:_.Kp,selectorArgs:["data.videoId"]}),_.W("design:type",String)],tK.prototype,"transferState",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],tK.prototype,"isDownloading",void 0);_.U([_.ir("#metadata-line"),_.W("design:type",HTMLElement)],tK.prototype,"metadataLine",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tK.prototype,"observeDataForBylineSeparator",null);
_.U([_.N("metadataColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tK.prototype,"metadataColorChanged",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],tK.prototype,"shouldShowVideoInfo",null);_.U([_.K("badges"),_.W("design:type",String),_.W("design:paramtypes",[])],tK.prototype,"inlineBadgeClass",null);_.U([_.K("longByline"),_.W("design:type",String),_.W("design:paramtypes",[])],tK.prototype,"longBylineClass",null);
_.U([_.K("data","longByline"),_.W("design:type",Object),_.W("design:paramtypes",[])],tK.prototype,"bylineText",null);_.U([_.K("isGridViewEnabled","data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],tK.prototype,"watchFeedBigThumbs",null);tK=_.U([_.Q({is:"ytd-video-meta-block",disableElementRegistration:!0})],tK);
_.S(tK,"ytd-video-meta-block",function(){if(VYb!==void 0)return VYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return VYb=a},{mode:_.as("kevlar_poly_si_batch_j080")?1:2});_.Ft("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var XYb=function(){var a=_.P.apply(this,arguments)||this;a.displayItemCount=2;a.isBackstagePlaylist=!1;a.isPostCompactPlaylist=!1;a.shouldShowChannelThumbnail=!1;a.useModernCollectionsV2=_.w("web_modern_collections_v2");return a};
_.z(XYb,_.P);_.f=XYb.prototype;_.f.computeFirstVideos=function(a,b){return a===void 0||b===void 0?[]:a.slice(0,b)};
_.f.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var a=this.data.thumbnailRenderer;a.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",a.playlistVideoThumbnailRenderer.thumbnail);a.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",a.playlistCustomThumbnailRenderer.thumbnail)}};
_.f.computeThumbnailHeight=function(a,b,c,d,e){return d?e==="BIG"?280:e==="MASSIVE"?337:234:c?240:b?72:a?118:138};
_.f.computeThumbnailWidth=function(a,b,c,d,e){return d?e==="MEDIUM"?450:e==="BIG"?500:e==="MASSIVE"?600:420:c?360:b?128:a?210:246};
_.f.computeUseBiggerThumbs=function(a){return a&&_.w("enable_desktop_search_bigger_thumbs")};
_.f.computeShouldShowChannelThumbnail=function(a,b){return a&&!(b==null||!b.channelThumbnail)};
_.Um.Object.defineProperties(XYb.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
var uK=XYb;uK.prototype.dataChanged=uK.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],uK.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.$I),_.W("design:type",Object)],uK.prototype,"ytdLockupBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],uK.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],uK.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],uK.prototype,"displayItemCount",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],uK.prototype,"isBackstagePlaylist",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],uK.prototype,"isPostCompactPlaylist",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],uK.prototype,"isSearch",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.W("design:type",Boolean)],uK.prototype,"useBiggerThumbs",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.aj("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],uK.prototype,"biggerThumbsStyle",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],uK.prototype,"isDownloads",void 0);_.U([_.O({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.W("design:type",Object)],uK.prototype,"shouldShowChannelThumbnail",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],uK.prototype,"useModernCollectionsV2",void 0);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uK.prototype,"dataChanged",null);_.U([_.K("isSearch"),_.W("design:type",String),_.W("design:paramtypes",[])],uK.prototype,"stackThumbnailSize",null);uK=_.U([_.Q({is:"ytd-playlist-renderer",disableElementRegistration:!0})],uK);
_.S(uK,"ytd-playlist-renderer",function(){if(qYb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch)]]" data="[[data]]" height="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" hovered="[[lockupIsHovered]]" is-double-stack="[[isSearch]]" thumbnail-size="[[stackThumbnailSize]]" use-hovered-property="" width="[[computeThumbnailWidth(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-playlist-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-playlist-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <template is="dom-if" if="[[shouldShowChannelThumbnail]]" restamp="" class="style-scope ytd-playlist-renderer">\n      <div id="channel-info" class="style-scope ytd-playlist-renderer">\n        <a id="channel-thumbnail" hidden="[[!data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" aria-label$="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnail.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-playlist-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-playlist-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-playlist-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </template>\n    <ytd-video-meta-block id="meta" data="[[data]]" hidden="[[shouldShowChannelThumbnail]]" class="style-scope ytd-playlist-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="allowlisted-metadata-badges style-scope ytd-playlist-renderer" badges="[[data.allowlistedMetadataBadges]]" hidden="[[!data.allowlistedMetadataBadges]]">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="description-text" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ul id="list" hidden="[[isPostCompactPlaylist]]" class="style-scope ytd-playlist-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-playlist-renderer">\n      <li class="style-scope ytd-playlist-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-playlist-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n  <yt-formatted-string id="view-more" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-playlist-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-playlist-renderer"></yt-interaction>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);qYb=a}a=qYb;return a},{mode:1});var YYb;var ZYb;var vK=function(){var a=_.P.apply(this,arguments)||this;a.collections=!!_.w("web_modern_collections_v2");a.startX=0;return a};
_.z(vK,_.P);vK.prototype.onEndpointMouseDown=function(a){this.startX=a.clientX};
vK.prototype.onEndpointClick=function(a){this.startX!==a.clientX&&(a.preventDefault(),a.stopPropagation())};
vK.prototype.computeObjectFit=function(a){return a==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||a==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||a==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
vK.prototype.computeCardStyle=function(a){return a?a.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.Um.Object.defineProperties(vK.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var a,b;return this.collections&&((a=this.data)==null?void 0:(b=a.searchRefinementCardRendererStyle)==null?void 0:b.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
var wK=vK;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],wK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],wK.prototype,"data",void 0);_.U([_.O({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.W("design:type",Number)],wK.prototype,"objectFit",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.W("design:type",String)],wK.prototype,"cardStyle",void 0);
_.U([_.O({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],wK.prototype,"roundContainer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],wK.prototype,"collections",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],wK.prototype,"isAlbumCard",null);_.U([_.K("data","collections","isAlbumCard"),_.W("design:type",Object),_.W("design:paramtypes",[])],wK.prototype,"collectionStack",null);
wK=_.U([_.Q({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],wK);
_.S(wK,"ytd-search-refinement-card-renderer",function(){if(ZYb!==void 0)return ZYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-refinement-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-search-refinement-card-renderer" data="[[data.searchEndpoint]]" href$="[[computeHref_(data.searchEndpoint)]]" on-mousedown="onEndpointMouseDown" on-click="onEndpointClick" draggable="false">\n  <div id="card-thumbnail" class="style-scope ytd-search-refinement-card-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-search-refinement-card-renderer"></yt-collections-stack>\n    <yt-img-shadow object-fit="[[objectFit]]" rounded-container="[[isAlbumCard]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-search-refinement-card-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="card-title" class="style-scope ytd-search-refinement-card-renderer">\n    <div class="style-scope ytd-search-refinement-card-renderer">[[getSimpleString(data.query)]]</div>\n  </div>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return ZYb=a},{mode:1});var $Yb;var aZb=function(){var a=_.P.apply(this,arguments)||this;a.isRichGrid=!1;return a};
_.z(aZb,_.P);var xK=aZb;_.U([_.O(),_.W("design:type",Object)],xK.prototype,"data",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],xK.prototype,"componentBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],xK.prototype,"ytdReduxBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],xK.prototype,"isRichGrid",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Fp}),_.W("design:type",Boolean)],xK.prototype,"miniMode",void 0);
xK=_.U([_.Q({is:"ytd-game-details-renderer",disableElementRegistration:!0})],xK);
_.S(xK,"ytd-game-details-renderer",function(){if($Yb!==void 0)return $Yb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint focus-on-expand style-scope ytd-game-details-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n  <yt-img-shadow height="290" object-fit="COVER" thumbnail="[[data.boxArt]]" width="210" class="style-scope ytd-game-details-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="auto-generated" hidden="[[!data.autoGenerated]]" text="[[data.autoGenerated]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="live-viewers-count" hidden="[[!data.liveViewersText]]" text="[[data.liveViewersText]]" class="style-scope ytd-game-details-renderer">\n  </yt-formatted-string>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return $Yb=a},{mode:1});var bZb;var cZb;var dZb=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return a};
_.z(dZb,_.P);_.f=dZb.prototype;_.f.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.f.currentStateData=function(a){var b=a||this.data;return b&&b.states&&b.currentStateId!=null?b.states.find(function(c){return c.stateId===b.currentStateId})||null:null};
_.f.currentStateRendererData=function(a){return(a=this.currentStateData(a))&&a.state&&a.state.buttonRenderer?a.state.buttonRenderer:null};
_.f.stateChanged=function(){this&&this.data&&(this.ytRenderButtonBehavior._setEndpoint(null),this.ytRenderButtonBehavior._setServiceEndpoint(this.computeServiceEndpoint(this.data)),this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data)),this.ytRenderButtonBehavior._setButtonText(null),this.ytRenderButtonBehavior._setButtonAccessibility(this.computeAccessibility(this.data)),this.ytRenderButtonBehavior._setButtonClass(this.computeButtonClass(this.data)),this.ytRenderButtonBehavior.updateRenderedElements())};
_.f.computeButtonIcon=function(a){a=this.currentStateRendererData(a);var b;return(a==null?0:(b=a.icon)==null?0:b.iconType)?a.icon.iconType.toLowerCase():null};
_.f.computeAccessibility=function(a){return(a=this.currentStateRendererData(a))&&a.accessibilityData?a.accessibilityData.accessibilityData||null:null};
_.f.computeButtonClass=function(a){var b=this.currentStateRendererData(a);if(!b)return"";a="";var c=b.style;c&&(a+=c.toLowerCase().replace(/_/g,"-")+" ");(b=b.size)&&(a+=b.toLowerCase().replace(/_/g,"-")+" ");return a.trim()};
_.f.computeServiceEndpoint=function(a){if(!a)return null;var b=a&&a.serviceEndpoint,c=this.get("command.commandMetadata.webCommandMetadata.sendPost",a);return b?b:c&&a.command?a.command:null};
_.f.computeBellMenuItemParams=function(a){var b;a=(b=_.y(a==null?void 0:a.command,_.ro))==null?void 0:b.commands;if(!a||a.length===0)return null;b=_.y(a[0],_.JE);var c,d;return(b==null?0:(c=b.popup)==null?0:(d=c.menuPopupRenderer)==null?0:d.items)?b.popup.menuPopupRenderer.items.map(function(e){return e.menuServiceItemRenderer.trackingParams}):null};
_.f.handleBellMenuOpenSelectedAction=function(a){var b=a.trackingParams,c=this.computeBellMenuItemParams(this.data);this.data&&b&&c&&c.includes(b)&&this.ytRenderButtonBehavior._setButtonIcon(a.icon.iconType.toLowerCase())};
_.f.onYtServiceRequestCompleted=function(a,b){(a=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",b))&&this.set("data",a)};
_.f.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.f.resetState=function(){this.set("data.currentStateId",3)};
_.f.onYtButtonTapHandler=function(){if(this.data){var a=this.currentStateRendererData(this.data);a&&this.ytRendererBehavior.logExplicitClick(a)}};
var yK=dZb;yK.prototype.onYtServiceRequestError=yK.prototype.onYtServiceRequestError;yK.prototype.onYtServiceRequestCompleted=yK.prototype.onYtServiceRequestCompleted;yK.prototype.stateChanged=yK.prototype.stateChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],yK.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],yK.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(uH.YtRenderButtonBehavior),_.W("design:type",Object)],yK.prototype,"ytRenderButtonBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],yK.prototype,"data",void 0);_.U([_.mr("data","data.currentStateId"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yK.prototype,"stateChanged",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Vt]),_.W("design:returntype")],yK.prototype,"onYtServiceRequestCompleted",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],yK.prototype,"onYtServiceRequestError",null);yK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],yK);
_.S(yK,"ytd-subscription-notification-toggle-button-renderer",function(){if(cZb!==void 0)return cZb;var a=document.createElement("template");_.B(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return cZb=a},{mode:1});var eZb;var fZb=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};a.tapHandler=function(){if(a.data){var b=a.currentStateRendererData();b&&a.ytRendererBehavior.logExplicitClick(b)}};
return a};
_.z(fZb,_.P);_.f=fZb.prototype;_.f.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.f.currentStateData=function(){var a=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(b){return b.stateId===a.data.currentStateId})||null:null};
_.f.currentStateRendererData=function(){var a=this.currentStateData();return a&&a.state&&a.state.buttonRenderer?a.state.buttonRenderer:null};
_.f.computeAccessibilityLabel=function(){var a,b,c;return(a=this.currentStateRendererData())==null?void 0:(b=a.accessibilityData)==null?void 0:(c=b.accessibilityData)==null?void 0:c.label};
_.f.computeBellMenuItemParams=function(){var a,b,c=(b=_.y((a=this.data)==null?void 0:a.command,_.ro))==null?void 0:b.commands;if(!c||c.length===0)return null;a=_.y(c[0],_.JE);var d,e;return(a==null?0:(d=a.popup)==null?0:(e=d.menuPopupRenderer)==null?0:e.items)?a.popup.menuPopupRenderer.items.map(function(g){return g.menuServiceItemRenderer.trackingParams}):null};
_.f.handleBellMenuOpenSelectedAction=function(a){var b=a.trackingParams,c=this.computeBellMenuItemParams();if(this.data&&b&&c&&c.includes(b)&&(a==null||!a.isDisabled)){var d;((d=_.y(a.serviceEndpoint,_.to))==null?void 0:d.signal)!=="CLIENT_SIGNAL"&&(this.icon=a.icon.iconType)}};
_.f.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.f.onYtServiceRequestCompleted=function(a,b){if(a=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",b))this.icon=void 0,this.set("data",a)};
_.f.onYtServiceRequestError=function(){this.icon=void 0};
_.Um.Object.defineProperties(fZb.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a=this.data,b=this.textLabel,c=this.hostElement,d=this.computeAccessibilityLabel(),e=this.tapHandler,g=this.isOverlay?"overlay":"mono",k=(a==null?0:a.disableButton)?"disabled":"active";b=b?_.zs(b):void 0;return{style:g,type:"tonal",state:k,size:"M",focused:!1,formattedButtonText:b,iconPosition:"leading-trailing",onTap:VXa(a,e,c),accessibilityLabel:d}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var a=this.currentStateRendererData(),b,c,d=(c=this.icon)!=null?c:a==null?void 0:(b=a.icon)==null?void 0:b.iconType;if(d)return _.es(d)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.data)==null?void 0:(b=a.secondaryIcon)==null?void 0:b.iconType;if(c)return _.es(c)}}});
var zK=fZb;zK.prototype.onYtServiceRequestError=zK.prototype.onYtServiceRequestError;zK.prototype.onYtServiceRequestCompleted=zK.prototype.onYtServiceRequestCompleted;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],zK.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],zK.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],zK.prototype,"textLabel",void 0);_.U([_.O(),_.W("design:type",String)],zK.prototype,"icon",void 0);_.U([_.O(),_.W("design:type",Boolean)],zK.prototype,"isOverlay",void 0);_.U([_.K("data.*"),_.W("design:type",Object),_.W("design:paramtypes",[])],zK.prototype,"computedButtonShape",null);_.U([_.K("data.*","icon"),_.W("design:type",Object),_.W("design:paramtypes",[])],zK.prototype,"computedIcon",null);
_.U([_.K("data.*"),_.W("design:type",Object),_.W("design:paramtypes",[])],zK.prototype,"computedSecondaryIcon",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Vt]),_.W("design:returntype")],zK.prototype,"onYtServiceRequestCompleted",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],zK.prototype,"onYtServiceRequestError",null);
zK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],zK);_.S(zK,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(eZb!==void 0)return eZb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return eZb=a},{mode:_.as("kevlar_poly_si_batch_j081")?1:2});var gZb;_.at(cWa,"yt-animated-action",{propNames:["backgroundLottieRef","foregroundLottieRef"]});var hZb=function(){var a=_.P.apply(this,arguments)||this;a.animatedActionEnabled=_.w("web_animated_actions");a.foregroundLottieRef={};a.backgroundLottieRef={};a.forceIconOnly=!1;a.keyboardFocused=!1;a.isAnimating=!1;a.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return a};
_.z(hZb,_.P);_.f=hZb.prototype;
_.f.configureRendererStamper=function(){return{"data.notificationPreferenceToggleButton":{id:"notification-preference-toggle-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{forceIconOnly:"[[forceIconOnly]]"}}}},"data.notificationPreferenceButton":{id:"notification-preference-button",mapping:{subscriptionNotificationToggleButtonRenderer:{component:"ytd-subscription-notification-toggle-button-renderer-next",properties:{textLabel:"[[subscribedButtonText]]",
forceIconOnly:"[[forceIconOnly]]",isOverlay:"[[overlayButton]]"}}}}}};
_.f.attached=function(){this.keyboardFocused=!1};
_.f.onYtServiceRequestSent=function(a,b){(this.get("endpoint.subscribeEndpoint",b)||this.get("endpoint.unsubscribeEndpoint",b))&&this.updateSubscriptionState(!this.subscribed)};
_.f.onYtServiceRequestCompleted=function(a,b){(a=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",b.data))&&this.bellButton&&(this.bellButton.data=a)};
_.f.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.fr(this.hostElement)};
_.f.onPlayerSubscribe=function(a){this.isCompactRed()||a!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.f.onPlayerUnsubscribe=function(a){this.isCompactRed()||a!==this.data.channelId||this.updateSubscriptionState(!1)};
_.f.handleUpdateSubscribeButtonAction=function(a){a=_.y(a,DWa);var b;a&&a.channelId===((b=this.data)==null?void 0:b.channelId)&&this.updateSubscriptionState(!!a.subscribed)};
_.f.computeButtonStyle=function(a){return this.get("style.styleType",a)||null};
_.f.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.f.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.f.updateSubscriptionState=function(a){if(a!==this.subscribed){this.set("data.subscribed",a);var b,c=(b=this.data)==null?void 0:b.subscribedEntityKey;c&&this.ytdReduxBehavior.dispatch(_.wu("subscriptionStateEntity",c,{key:c,subscribed:a}));this.isCompactRed()||_.io(this.hostElement,"yt-subscription-changed",a);a||(_.lo(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!a),a&&this.hasBellButton&&this.startAnimation())}};
_.f.startAnimation=function(){var a=this;if(!this.isAnimating){this.isAnimating=!0;var b;(b=this.backgroundLottieRef.lottieEl)==null||b.goToAndPlay(0);var c;(c=this.foregroundLottieRef.lottieEl)==null||c.goToAndPlay(0);_.zk.addJob(function(){a.maybeAnimateBellIcon()},2,300);
_.zk.addJob(function(){a.isAnimating=!1},2,1500)}};
_.f.maybeAnimateBellIcon=function(){var a=_.ar(this.hostElement).querySelector("yt-animated-icon");if(a){var b;(b=a.animationRef.lottieEl)==null||b.goToAndPlay(0)}};
_.f.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.f.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.f.tryToSaveButtonWidths=function(){if(!(!this.animatedActionEnabled||this.unsubscribedWidth&&this.unsubscribedWidth)){if(!this.subscribed){var a;this.unsubscribedWidth=(a=this.subscribeButtonShape)==null?void 0:a.getBoundingClientRect().width}var b;this.subscribedWidth=(b=this.bellButton)==null?void 0:b.getBoundingClientRect().width}};
_.f.updateContainerToFitContent=function(a){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(this.hostElement.style.width=a?this.subscribedWidth+"px":this.unsubscribedWidth+"px")};
_.f.clearContainerSize=function(){this.hostElement.style.width=""};
_.f.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.Um.Object.defineProperties(hZb.prototype,{hasBellButton:{configurable:!0,enumerable:!0,get:function(){return!!this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)}},
subscribedButtonText:{configurable:!0,enumerable:!0,get:function(){var a;return this.forceIconOnly?void 0:(a=this.data)==null?void 0:a.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var a,b,c=((a=this.data)==null?void 0:(b=a.timedAnimationData)==null?void 0:b.animationTiming)||[];return{uniqueId:"subscribe",timings:c,enabled:c.length>0&&!this.subscribed,experimentEnabled:c.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var a;return!this.subscribed&&((a=this.data)==null?void 0:a.hideWhenUnsubscribed)||!this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
subscribeButtonInvisible:{configurable:!0,enumerable:!0,get:function(){return this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
unsubscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){return!this.animatedActionEnabled&&!this.subscribed}},
buttonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var b=a.renderer;var c=a.element;var d=a.subscribed;var e=a.commandController;var g=a.isOverlay;a=a.config;var k=YXa(b,d);g&&(k.style="overlay");g=Object;var m=g.assign,n;a:switch((n=b.style)==null?void 0:n.styleType){case "COMPACT_GRAY":case "COMPACT_RED":n={size:"S"};break a;default:n={size:"M"}}var r,t,u,x,A=d&&((r=
b.unsubscribeAccessibility)==null?void 0:(t=r.accessibilityData)==null?void 0:t.label)||((u=b.subscribeAccessibility)==null?void 0:(x=u.accessibilityData)==null?void 0:x.label);r=b.longSubscriberCountText?A+" "+_.Wp(b.longSubscriberCountText):A;t=(t=d?b.subscribedButtonText:b.unsubscribedButtonText)?_.zs(t):void 0;return m.call(g,{},k,n,{focused:!1,toggled:d,accessibilityLabel:r,formattedButtonText:t,onTap:XXa(b,a,d,c,e)})}}}});
var AK=hZb;AK.prototype.onMouseDown=AK.prototype.onMouseDown;AK.prototype.onDataChanged=AK.prototype.onDataChanged;AK.prototype.observedSubscribed=AK.prototype.observedSubscribed;AK.prototype.onYtServiceRequestCompleted=AK.prototype.onYtServiceRequestCompleted;AK.prototype.onYtServiceRequestSent=AK.prototype.onYtServiceRequestSent;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],AK.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],AK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],AK.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],AK.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],AK.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],AK.prototype,"data",void 0);
_.U([_.O({selectorArgs:["data.subscribedEntityKey"],selector:_.ju}),_.W("design:type",Object)],AK.prototype,"subscriptionStateEntity",void 0);_.U([_.O({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.W("design:type",Boolean)],AK.prototype,"subscribed",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],AK.prototype,"branded",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],AK.prototype,"animatedActionEnabled",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],AK.prototype,"foregroundLottieRef",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],AK.prototype,"backgroundLottieRef",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],AK.prototype,"overlayButton",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.W("design:type",Object)],AK.prototype,"buttonStyle",void 0);
_.U([_.O(),_.W("design:type",Object)],AK.prototype,"forceIconOnly",void 0);_.U([_.O({value:function(){return!!_.v().resolve(_.Xi(_.Bu))&&_.w("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.W("design:type",Boolean)],AK.prototype,"useKeyboardFocused",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],AK.prototype,"keyboardFocused",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],AK.prototype,"isAnimating",void 0);_.U([_.K("data.notificationPreferenceButton.*"),_.W("design:type",Object),_.W("design:paramtypes",[])],AK.prototype,"hasBellButton",null);
_.U([_.K("data.subscribedButtonText","forceIconOnly"),_.W("design:type",Object),_.W("design:paramtypes",[])],AK.prototype,"subscribedButtonText",null);_.U([_.K("data.timedAnimationData.animationTiming","subscribed"),_.W("design:type",Object),_.W("design:paramtypes",[])],AK.prototype,"smartimationSettings",null);
_.U([_.O({reflectToAttribute:!0}),_.K("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.W("design:type",Object),_.W("design:paramtypes",[])],AK.prototype,"subscribeButtonHidden",null);_.U([_.O({reflectToAttribute:!0}),_.K("subscribed","hasBellButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],AK.prototype,"subscribeButtonInvisible",null);
_.U([_.O({reflectToAttribute:!0}),_.K("subscribed"),_.W("design:type",Object),_.W("design:paramtypes",[])],AK.prototype,"unsubscribeButtonHidden",null);_.U([_.ir("ytd-subscription-notification-toggle-button-renderer-next"),_.W("design:type",Object)],AK.prototype,"bellButton",void 0);_.U([_.ir("#subscribe-button-shape"),_.W("design:type",HTMLElement)],AK.prototype,"subscribeButtonShape",void 0);
_.U([_.K("overlayButton","subscribed","data"),_.W("design:type",Object),_.W("design:paramtypes",[])],AK.prototype,"buttonShape",null);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Nt]),_.W("design:returntype")],AK.prototype,"onYtServiceRequestSent",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Vt]),_.W("design:returntype")],AK.prototype,"onYtServiceRequestCompleted",null);
_.U([_.N("subscribed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],AK.prototype,"observedSubscribed",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],AK.prototype,"onDataChanged",null);_.U([_.M("mousedown"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],AK.prototype,"onMouseDown",null);
AK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],AK);
_.S(AK,"ytd-subscribe-button-renderer",function(){if(gZb!==void 0)return gZb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscribe-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-subscribe-button-renderer">\n  <yt-button-shape id="subscribe-button-shape" data="[[buttonShape]]" hidden="[[subscribeButtonHidden]]" invisible$="[[subscribeButtonInvisible]]" class="style-scope ytd-subscribe-button-renderer">\n  </yt-button-shape>\n  <div id="notification-preference-toggle-button" hidden="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  <yt-animated-action background-lottie-ref="[[backgroundLottieRef]]" foreground-lottie-ref="[[foregroundLottieRef]]" key="yt-animated-action" class="style-scope ytd-subscribe-button-renderer">\n    <div id="notification-preference-button" hidden="[[unsubscribeButtonHidden]]" invisible$="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  </yt-animated-action>\n</yt-smartimation>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return gZb=a},{mode:1});var iZb=function(){var a=_.P.apply(this,arguments)||this;a.isRichGrid=!1;return a};
_.z(iZb,_.P);iZb.prototype.configureRendererStamper=function(){return{"data.game":{id:"game",mapping:{gameDetailsRenderer:{component:"ytd-game-details-renderer",properties:{isRichGrid:"[[isRichGrid]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
var BK=iZb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],BK.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],BK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],BK.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],BK.prototype,"isRichGrid",void 0);BK=_.U([_.Q({is:"ytd-game-card-renderer",disableElementRegistration:!0})],BK);
_.S(BK,"ytd-game-card-renderer",function(){if(bZb!==void 0)return bZb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="game" class="style-scope ytd-game-card-renderer"></div>\n<div id="subscribe-button" class="style-scope ytd-game-card-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return bZb=a},{mode:1});var CK={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.w("defer_menus")&&!ULb?0:void 0,waitForSignal:"eocs"};var jZb;var kZb;var lZb=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return a};
_.z(lZb,_.P);_.f=lZb.prototype;_.f.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.f.onSeriesReminderStateEntityChange=function(){var a,b,c;((a=this.eventReminderStateEntity)==null?0:a.key)&&((b=this.seriesReminderStateEntity)==null?void 0:b.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((c=this.eventReminderStateEntity)==null?void 0:c.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.wu("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.f.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.f.onYtServiceRequestError=function(){var a;this.updateReminderStateEntitiesFromButtonState((a=this.data)==null?void 0:a.currentState)};
_.f.handleUpdateUpcomingEventReminderButtonStateCommand=function(a){if(a=_.y(a,qFb)){var b,c=(b=this.data)==null?void 0:b.targetId;c&&a.targetId===c&&_.Er(this.updateReminderStateEntitiesFromButtonState.bind(this,a.state))}};
_.f.getButtonStateFromReminderState=function(){var a;if(((a=this.seriesReminderStateEntity)==null?void 0:a.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var b;if(((b=this.eventReminderStateEntity)==null?void 0:b.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var c,d;if(((c=this.seriesReminderStateEntity)==null?void 0:c.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((d=this.eventReminderStateEntity)==
null?void 0:d.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var e;return(e=this.data)==null?void 0:e.currentState};
_.f.updateReminderStateEntitiesFromButtonState=function(a){if(a){switch(a){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":a="UPCOMING_EVENT_REMINDER_STATE_NONE";var b="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":a="UPCOMING_EVENT_REMINDER_STATE_SINGLE";b="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":a="UPCOMING_EVENT_REMINDER_STATE_NONE";b="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var c;
((c=this.eventReminderStateEntity)==null?0:c.key)&&this.ytdReduxBehavior.dispatch(_.wu("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:a})));var d;((d=this.seriesReminderStateEntity)==null?0:d.key)&&this.ytdReduxBehavior.dispatch(_.wu("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:b})))}};
_.Um.Object.defineProperties(lZb.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var a=this.getButtonStateFromReminderState(),b,c;if(a&&((b=this.data)==null?0:(c=b.states)==null?0:c.length))for(b=_.h(this.data.states),c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;if(((d=_.y(c,rFb))==null?void 0:d.state)===a)return _.y(c,rFb)}}}});
var DK=lZb;DK.prototype.onYtServiceRequestError=DK.prototype.onYtServiceRequestError;DK.prototype.onYtServiceRequestCompleted=DK.prototype.onYtServiceRequestCompleted;DK.prototype.onSeriesReminderStateEntityChange=DK.prototype.onSeriesReminderStateEntityChange;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],DK.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],DK.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],DK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],DK.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],DK.prototype,"data",void 0);_.U([_.O({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:nVa}),_.W("design:type",Object)],DK.prototype,"eventReminderStateEntity",void 0);
_.U([_.O({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(a,b){return _.np(a.entities,"sportsSeriesReminderStateEntity",b)}}),
_.W("design:type",Object)],DK.prototype,"seriesReminderStateEntity",void 0);_.U([_.K("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],DK.prototype,"currentButtonStateRenderer",null);_.U([_.N("seriesReminderStateEntity"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DK.prototype,"onSeriesReminderStateEntityChange",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DK.prototype,"onYtServiceRequestCompleted",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DK.prototype,"onYtServiceRequestError",null);DK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],DK);
_.S(DK,"ytd-upcoming-event-reminder-button-renderer",function(){if(kZb!==void 0)return kZb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-upcoming-event-reminder-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-upcoming-event-reminder-button-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
return kZb=a},{mode:1});var mZb;var nZb=function(){return _.P.apply(this,arguments)||this};
_.z(nZb,_.P);nZb.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.Um.Object.defineProperties(nZb.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}},
textAriaLabel:{configurable:!0,enumerable:!0,get:function(){if(_.w("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
var EK=nZb;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],EK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],EK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],EK.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],EK.prototype,"shelfDismissal",void 0);
_.U([_.K("data.responseText"),_.W("design:type",Object),_.W("design:paramtypes",[])],EK.prototype,"text",null);_.U([_.K("data.responseText"),_.W("design:type",Object),_.W("design:paramtypes",[])],EK.prototype,"textAriaLabel",null);EK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],EK);
_.S(EK,"ytd-notification-multi-action-renderer",function(){if(mZb!==void 0)return mZb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-multi-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="text" aria-label$="[[textAriaLabel]]" class="style-scope ytd-notification-multi-action-renderer">[[text]]</span>\n<div id="buttons" class="style-scope ytd-notification-multi-action-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return mZb=a},{mode:1});var oZb;var pZb=function(){return _.P.apply(this,arguments)||this};
_.z(pZb,_.P);pZb.prototype.ready=function(){var a=this;_.E(this.hostElement).querySelector("#undo").addEventListener("tap",function(){a.onUndoTap()})};
pZb.prototype.onUndoTap=function(){this.data.undoEndpoint&&(_.w("web_ytd_notification_text_renderer_command_resolver_ks")?_.oo(this.hostElement,[this.data.undoEndpoint]):_.v().resolve(_.Yi).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}}))};
var FK=pZb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],FK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],FK.prototype,"data",void 0);FK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],FK);
_.S(FK,"ytd-notification-text-renderer",function(){if(oZb!==void 0)return oZb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.successResponseText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n<yt-formatted-string id="undo" text="[[data.undoText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return oZb=a},{mode:1});var qZb;var rZb=function(){var a=_.P.apply(this,arguments)||this;a.mouseOverDelayJobId=0;a.fadeInImageDelayJobId=0;a.startTimeMs=-1;a.loadingStartTimeMs=-1;a.loadingEndTimeMs=-1;a.hasVideoPreview=!1;return a};
_.z(rZb,_.P);_.f=rZb.prototype;_.f.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.f.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.f.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.f.showThumbnail=function(){var a=this;this.csn=_.En();_.Mo("fmth");_.zk.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.Ys(_.zk,function(){a.loadingStartTimeMs=(0,_.Uj)();var b=_.E(a.hostElement).querySelector("#thumbnail");b.complete?a.displayMouseOverImage():b.addEventListener("load",_.gr(a,a.displayMouseOverImage))},150):_.br(_.E(this.hostElement).querySelector("#play"),"show",!0)};
_.f.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.f.onTap=function(){this.removeVideoPreview()};
_.f.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var a=this.videoId,b=this.csn,c=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,d=this.startTimeMs,e=this.hasVideoPreview,g=_.ps(this.trackingParams),k={isMovingThumbnail:e};e&&d>0&&(c>0&&(k.movingThumbnailLoadingDurationMs=Math.round(c)),k.durationHoveredMs=Math.round((0,_.Uj)()-d));a&&(k.videoId=a);_.Yo(b,g,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:k});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.f.removeVideoPreview=function(){_.zk.cancelJob(this.mouseOverDelayJobId);_.zk.cancelJob(this.fadeInImageDelayJobId);var a=_.E(this.hostElement).querySelector("#thumbnail");_.br(a,"fade-in",!1);a.removeEventListener("load",_.gr(this,this.displayMouseOverImage));a=_.E(this.hostElement).querySelector("#play");_.br(a,"fade-in",!1);_.br(a,"show",!1)};
_.f.displayMouseOverImage=function(){var a=_.E(this.hostElement).querySelector("#thumbnail"),b=_.E(this.hostElement).querySelector("#play");this.isImageAvailable(a)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.Uj)(),this.startTimeMs=(0,_.Uj)(),this.fadeInImageDelayJobId=_.Ys(_.zk,function(){_.br(a,"fade-in",!0)},50)):_.br(b,"fade-in",!0)};
_.f.computeThumbnail=function(a,b){var c;a&&a.movingThumbnailDetails&&a.movingThumbnailDetails.thumbnails&&b?c=_.Us(a.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):c=b?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(c)return _.Id(c)};
_.f.isImageAvailable=function(a){return!(!a.src||a.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||a.naturalWidth===120)};
var GK=rZb;GK.prototype.onTap=GK.prototype.onTap;GK.prototype.dataChanged=GK.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],GK.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],GK.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],GK.prototype,"csn",void 0);
_.U([_.O(),_.W("design:type",Object)],GK.prototype,"trackingParams",void 0);_.U([_.O(),_.W("design:type",String)],GK.prototype,"videoId",void 0);_.U([_.O(),_.W("design:type",Boolean)],GK.prototype,"isAttachedAndDataSet",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GK.prototype,"dataChanged",null);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GK.prototype,"onTap",null);
GK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],GK);
_.S(GK,"ytd-moving-thumbnail-renderer",function(){if(qZb!==void 0)return qZb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-moving-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img id="thumbnail" alt="" src$="[[computeThumbnail(data, isAttachedAndDataSet)]]" class="style-scope ytd-moving-thumbnail-renderer">\n<yt-icon id="play" icon="play_all" class="style-scope ytd-moving-thumbnail-renderer"></yt-icon>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return qZb=a},{mode:1});var sZb;_.Aw=function(a){this.hostElement=a;this.eventSink=null;this.eventList=[]};
_.Aw.prototype.shouldForward=function(){var a,b;return(b=(a=this.eventSink)==null?void 0:a.isConnected)!=null?b:document.body.contains(this.eventSink)};
_.Aw.prototype.start=function(a,b){this.eventSink&&this.stop();for(var c=0;c<a.length;c++)this.hostElement.addEventListener(a[c],_.gr(this,this.forwardEvent));var d;this.eventSink=(d=b.hostElement)!=null?d:b;this.eventList=a};
_.Aw.prototype.stop=function(){for(var a=0;a<this.eventList.length;a++)this.hostElement.removeEventListener(this.eventList[a],_.gr(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.Aw.prototype.forwardEvent=function(a,b){this.shouldForward()&&(a.stopPropagation(),this.eventSink instanceof Element?_.io(this.eventSink,a.type,b):_.Dl(new _.qj("eventSink is not an element")))};_.HK={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.Aw(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(a,b){this.forwarder_.start(a,b)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var tZb=function(){return _.P.apply(this,arguments)||this};
_.z(tZb,_.P);_.f=tZb.prototype;_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");this.tooltip.position=_.Fi("HTML_DIR")==="rtl"?"right":"left"};
_.f.dataChanged=function(){this.popupOpen=!1};
_.f.computeAriaLabel=function(a){return _.y(a,Oyb).label};
_.f.onTap=function(a){a.stopPropagation();a.preventDefault();this.data.command&&(_.w("web_ytd_thumbnail_overlay_button_renderer_command_resolver_ks")?_.oo(this.hostElement,[this.data.command]):_.v().resolve(_.Yi).resolveCommand(this.data.command,{form:{element:this.hostElement}}))};
_.f.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.f.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
var IK=tZb;IK.prototype.onPopupClosed=IK.prototype.onPopupClosed;IK.prototype.onPopupOpened=IK.prototype.onPopupOpened;IK.prototype.onTap=IK.prototype.onTap;IK.prototype.dataChanged=IK.prototype.dataChanged;_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],IK.prototype,"eventForwardingBehavior",void 0);_.U([_.H(_.QD),_.W("design:type",Object)],IK.prototype,"ironButtonState",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],IK.prototype,"componentBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],IK.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,value:-1}),_.W("design:type",Number)],IK.prototype,"tabindex",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.W("design:type",Object)],IK.prototype,"ariaLabel",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],IK.prototype,"disableTooltips",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],IK.prototype,"popupOpen",void 0);
_.U([_.O(),_.W("design:type",Element)],IK.prototype,"eventSink",void 0);_.U([_.ir("#tooltip"),_.W("design:type",Object)],IK.prototype,"tooltip",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IK.prototype,"dataChanged",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],IK.prototype,"onTap",null);
_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IK.prototype,"onPopupOpened",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IK.prototype,"onPopupClosed",null);IK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],IK);
_.S(IK,"ytd-thumbnail-overlay-button-renderer",function(){if(sZb!==void 0)return sZb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-button-renderer">\n  [[data.tooltip]]\n</tp-yt-paper-tooltip>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return sZb=a},{mode:1});var uZb;var vZb=function(){return _.P.apply(this,arguments)||this};
_.z(vZb,_.P);var JK=vZb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],JK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],JK.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],JK.prototype,"disableAnimation",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],JK.prototype,"rounded",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],JK.prototype,"transparentBackground",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],JK.prototype,"noPadding",void 0);JK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],JK);
_.S(JK,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(uZb!==void 0)return uZb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-endorsement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="inner-background" class="style-scope ytd-thumbnail-overlay-endorsement-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></yt-formatted-string>\n  <span id="bottom-right-corner" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></span>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return uZb=a},{mode:1});var wZb;var KK=function(){return _.P.apply(this,arguments)||this};
_.z(KK,_.P);KK.prototype.computeIconPosition=function(a){return this.get("iconPosition",a)||null};
KK.prototype.computeIconStyle=function(a){return this.get("iconStyle",a)||null};
KK.prototype.computeIsIconStyleFilled=function(a){if(!a)return!1;var b;return a.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((b=a.icon)==null?void 0:b.iconType)==="ERROR_BLACK"};
var LK=KK;_.U([_.O(),_.W("design:type",Object)],LK.prototype,"data",void 0);_.U([_.O({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.W("design:type",Object)],LK.prototype,"iconPosition",void 0);_.U([_.O({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.W("design:type",Object)],LK.prototype,"iconStyle",void 0);_.U([_.O({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],LK.prototype,"iconStyleFilled",void 0);
LK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],LK);
_.S(LK,"ytd-thumbnail-overlay-icon-renderer",function(){if(wZb!==void 0)return wZb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-icon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[iconStyleFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-icon-renderer"></yt-icon>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return wZb=a},{mode:1});var xZb;var yZb=function(){return _.P.apply(this,arguments)||this};
_.z(yZb,_.P);var MK=yZb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],MK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],MK.prototype,"data",void 0);MK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],MK);
_.S(MK,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(xZb!==void 0)return xZb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-inline-unplayable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-inline-unplayable-renderer"></yt-icon>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return xZb=a},{mode:1});var zZb;var AZb=function(){var a=_.P.apply(this,arguments)||this;a.isPreviewLoading=!1;return a};
_.z(AZb,_.P);var NK=AZb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],NK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],NK.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],NK.prototype,"isPreviewLoading",void 0);NK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],NK);
_.S(NK,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(zZb!==void 0)return zZb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-loading-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="style-scope ytd-thumbnail-overlay-loading-preview-renderer">[[getSimpleString(data.text)]]</span>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return zZb=a},{mode:1});var BZb;var CZb=function(){return _.P.apply(this,arguments)||this};
_.z(CZb,_.P);var OK=CZb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],OK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],OK.prototype,"data",void 0);OK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],OK);
_.S(OK,"ytd-thumbnail-overlay-pinking-renderer",function(){if(BZb!==void 0)return BZb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-pinking-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg class="pinking-left style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="left-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="0,0 1,0 5,4 1,8 0,8"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#left-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n<svg class="pinking-right style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="right-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="4,0 0,4 4,8 5,8 5,0"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#right-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return BZb=a},{mode:1});var DZb;var EZb=function(){var a=_.P.apply(this,arguments)||this;a.disableTooltips=!1;a.isLoading=!1;a.useExpandableTooltip=!1;a.toggled=!1;a.hovered=!1;a.mouseoverDelayJobId=0;a.toggleDelayJobId=0;a.expandAnimationDelayJobId=0;return a};
_.z(EZb,_.P);_.f=EZb.prototype;_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");_.E(this.hostElement).querySelector("#tooltip").position=_.Fi("HTML_DIR")==="rtl"?"right":"left"};
_.f.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.zk.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.zk.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.zk.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.f.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.zk.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.zk.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.zk.cancelJob(this.expandAnimationDelayJobId)};
_.f.computeIcon=function(a,b,c){return(a=c?b:a)&&a.iconType?_.es(a.iconType):void 0};
_.f.computeAriaLabel=function(a,b,c){return _.y(c?b:a,Oyb).label};
_.f.computeTooltip=function(a,b,c){return c?b:a};
_.f.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.f.computeIconOnHover=function(a,b){if((a==null?0:a.iconType)&&!b)return _.es(a.iconType)};
_.f.onTap=function(a){var b=this;a.stopPropagation();a.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(a=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(a),this.useExpandableTooltip&&(this.toggleDelayJobId=_.Ys(_.zk,function(){b.hovered=!1;b.data&&!b.data.toggledServiceEndpoint&&(b.expandAnimationDelayJobId=_.Ys(_.zk,function(){b.set("data.isToggled",
!1)},200))},2E3))};
_.f.onMouseenter=function(){var a=this;this.mouseoverDelayJobId=_.Ys(_.zk,function(){a.hovered=!0},300)};
_.f.onMouseleave=function(){_.zk.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.f.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.f.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.f.onServiceRequestCompleted=function(a,b){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(b)||this.set("data.isToggled",!this.data.isToggled)};
_.f.serviceRequestWasSuccessful=function(a){return _.y(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.OE)?a.data.status==="STATUS_SUCCEEDED":!0};
var PK=EZb;PK.prototype.onServiceRequestCompleted=PK.prototype.onServiceRequestCompleted;PK.prototype.onPopupClosed=PK.prototype.onPopupClosed;PK.prototype.onPopupOpened=PK.prototype.onPopupOpened;PK.prototype.onMouseleave=PK.prototype.onMouseleave;PK.prototype.dataChanged=PK.prototype.dataChanged;_.U([_.H(_.QD),_.W("design:type",Object)],PK.prototype,"ironButtonState",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],PK.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],PK.prototype,"ytEventForwardingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],PK.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.W("design:type",Object)],PK.prototype,"ariaLabel",void 0);_.U([_.O(),_.W("design:type",Object)],PK.prototype,"disableTooltips",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],PK.prototype,"popupOpen",void 0);_.U([_.O(),_.W("design:type",Object)],PK.prototype,"isLoading",void 0);_.U([_.O(),_.W("design:type",Element)],PK.prototype,"eventSink",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],PK.prototype,"useExpandableTooltip",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.W("design:type",Object)],PK.prototype,"toggled",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],PK.prototype,"hovered",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.W("design:type",Object)],PK.prototype,"iconOnHover",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],PK.prototype,"dataChanged",null);
_.U([_.M("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],PK.prototype,"onMouseleave",null);_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],PK.prototype,"onPopupOpened",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],PK.prototype,"onPopupClosed",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Vt]),_.W("design:returntype")],PK.prototype,"onServiceRequestCompleted",null);PK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],PK);
_.S(PK,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(DZb!==void 0)return DZb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"><div id="label" on-click="onTap" hidden="[[disableTooltips]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n    [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n  </div></div><yt-icon id="icon-on-hover-element" icon="[[iconOnHover]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><yt-icon id="icon" icon="[[computeIcon(data.untoggledIcon, data.toggledIcon, data.isToggled)]]" on-click="onTap" on-mouseenter="onMouseenter" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n  [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n</tp-yt-paper-tooltip>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return DZb=a},{mode:_.as("kevlar_poly_si_batch_j053")?1:2});var FZb;var GZb=_.Rr(function(a){var b=a.data;var c=function(){return b().enableSegmentView};
return _.q("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.q(_.qi,{cond:c,then:function(){return _.q("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.q("div",{class:_.ht("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+b().startPercent+"%"}}),_.q("div",{class:_.ht("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+b().segmentDurationPercent+"%"}},_.q("div",{class:_.ht("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.q("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.q("div",null," ",function(){return b().segmentLabel})),_.q("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.q("div",{class:_.ht("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.q(_.qi,{cond:function(){return!c()&&b().startPercent},
then:function(){var d={};return _.q("div",{class:_.ht("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(d.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.w("web_enable_modern_progress_bar_overlay"),d))},_.q("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+b().startPercent+"%"}}))}}))},"G");
GZb.idomCompat=!0;var HZb=_.Rr(function(a){var b=_.nu(),c=_.Ht(function(e){var g,k,m;a:{var n=(g=a.data())==null?void 0:g.animationActivationTargetId;g=((k=a.data())==null?void 0:k.animationActivationEntityKey)||"";k=(m=a.data())==null?void 0:m.animationActivationEntitySelectorType;if(g&&n)switch(k){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":e=_.np(e.entities,"playerStateEntity",g);m=_.v().resolve(_.Xi(_.$w));n=!!(e&&e.videoId===n&&(m==null?0:m.isMiniplayerActive()));n={activated:n,playAnimation:n&&
e.playerState==="PLAYER_STATE_PLAYING"};break a}n=void 0}return n});
_.wh(function(){var e;if((e=c())==null?0:e.activated){var g;if((g=c())==null?0:g.playAnimation){var k;(k=b.lottieEl)==null||k.goToAndPlay(0)}else{var m;(m=b.lottieEl)==null||m.goToAndStop(0)}}},"seFTsd");
var d=function(){var e,g=!((e=c())==null||!e.activated);if(a.data()){e=a.data();var k=void 0;e.icon&&(k=aRa(e.icon),k=hRa(k));var m=void 0,n;if((n=e.backgroundColor)==null?0:n.lightTheme){var r;m={backgroundColor:Eq((r=e.backgroundColor)==null?void 0:r.lightTheme,"0.8")}}if(e.text||k||g){if(g&&e.lottieData&&b){r=e.lottieData;var t,u,x;n={animationConfig:{name:r.url,path:r.url,autoplay:(t=r.settings)==null?void 0:t.autoplay,loop:(x=(u=r.settings)==null?void 0:u.loop)!=null?x:!0},animationRef:b}}else n=
void 0;if(g)t=16;else b:switch(e.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":t=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":t=18;break b;default:t=16}g={type:t,text:g&&e.animatedText?e.animatedText:e.text,icon:k,customColors:m,animation:n}}else g=void 0}else g=void 0;return g};
return _.q("yt-thumbnail-badge-view-model",{class:_.et("yt-thumbnail-badge-view-model-wiz",a.class)},_.q(_.qi,{cond:d,then:function(){return _.q(_.iv,{data:function(){return d()}})}}))},"H");var IZb=_.Rr(function(a){var b={};return _.q("yt-thumbnail-bottom-overlay-view-model",{class:_.et("ytThumbnailBottomOverlayViewModelHost",(b.ytThumbnailBottomOverlayViewModelHostBackground=function(){return a.data().enableGradientBackground},b))},_.q("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.q(_.Hu,{data:function(){return a.data().progressBar}},{thumbnailOverlayProgressBarViewModel:GZb}),_.q(_.Hu,{data:function(){return a.data().badge}},{thumbnailBadgeViewModel:function(c){return _.q(HZb,
{data:c.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.q(_.Hu,{data:function(){return a.data().badges}},{thumbnailBadgeViewModel:function(c){return _.q(HZb,{data:c.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))},"I");
IZb.idomCompat=!0;_.Ts(IZb,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.Ss}});var hYa={calledOnce:!1,state:"visible"},iYa={calledOnce:!1,state:"hidden"};_.Zl(lYa);var JZb=_.Rr(function(a){var b=a.data;var c=a.className;a=a.alwaysShow;var d=_.Pl();_.Zu(d,function(){return b().rendererContext});
var e=_.$Xa(),g={};return _.q("thumbnail-hover-overlay-view-model",{el:d,class:_.et("ytThumbnailHoverOverlayViewModelHost",c,(g.ytThumbnailHoverOverlayViewModelHostForceHover=a,g)),"aria-label":function(){var k;return(k=_.y(b().rendererContext,_.$u))==null?void 0:k.label},
role:function(){return _.Wu(b().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.Wu(b().rendererContext)!==void 0?0:void 0},
"on:keypress":e},_.q("div",{class:_.et("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(b().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var k="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:k="ytThumbnailHoverOverlayViewModelStyleCover"}return k})},_.q(_.qi,{cond:function(){return b().icon},
then:function(k){return _.q(_.Ps,{data:k,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.q(_.qi,{cond:function(){return b().text},
then:function(k){return _.q(_.tt,{text:k,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"J"),KZb=_.w("web_enable_sink_lockups_batch")?JZb:lYa,LZb=_.w("web_enable_sink_lockups_batch")?JZb:_.jt(lYa);
JZb.idomCompat=!0;var bv=_.Rr(function(a){var b=a.data;return _.q(_.Hu,{data:function(){return b==null?void 0:b().overlays}},{thumbnailHoverOverlayViewModel:LZb})},"K");
bv.idomCompat=!0;var MZb={};var av=_.Rr(function(a){var b=a.data;var c=a.image;var d=a.state;var e=a.iconType;var g=a.overlays;var k=a.isOverlay;var m=_.Ql();a=_.h(_.ih(!0,void 0,"xOB8yb"));var n=a.next().value,r=a.next().value,t=_.Nr(e,"LIVE");_.wi(function(){requestAnimationFrame(function(){var x=b().size;var A=b().badgeText;if(m.value===null)A=!0;else{var C=mYa(x);A in MZb?x=MZb[A]:(x=m.value.clientWidth,MZb[A]=x);(A=x>C)?m.value.style.display="none":m.value.style.visibility="visible"}r(A)})});
var u=function(){var x={};return x["yt-spec-avatar-shape__image"]=!0,x["yt-spec-avatar-shape__image--ads-app"]=b().type===1,x};
e=_.lt(function(x){var A,C;return void((C=(A=b()).onTap)==null?void 0:C.call(A,x))});
return _.q("yt-avatar-shape",null,_.q("div",{class:function(){var x={};x=(x["yt-spec-avatar-shape"]=!0,x["yt-spec-avatar-shape__button"]=!0,x[oYa(b().size)]=!0,x["yt-spec-avatar-shape__button--tappable"]=!!b().onTap,x);var A=b().avatarButtonCustomClassName;A&&(x[A]=!0);return _.ht(x)},
"on:click":e,"on:keydown":_.Uu(),"aria-label":function(){return b().onTap?b().accessibilityText:""},
role:function(){return b().onTap?"button":void 0},
tabindex:function(){return b().onTap?0:void 0}},_.q("div",{class:function(){var x,A=b(),C=d==null?void 0:d(),F=k==null?void 0:k(),J=!((x=A.decorations)==null||!x.includes(2)||A.size!=="medium"&&A.size!=="large"),I=A.size==="tiny"||A.size==="extra-small",R,da,V,fa,aa={};
x=(aa["yt-spec-avatar-shape--live-ring"]=!!(((R=A.decorations)==null?0:R.includes(0))&&qYa(A.size)),aa["yt-spec-avatar-shape--stories-watched"]=J&&!(C==null||!C.storiesWatched),aa["yt-spec-avatar-shape--stories-unwatched"]=J&&!(C==null?0:C.storiesWatched),aa["yt-spec-avatar-shape--background-border"]=rYa(A.decorations)&&!I,aa["yt-spec-avatar-shape--background-border-thin"]=rYa(A.decorations)&&I,aa["yt-spec-avatar-shape__on-select-border"]=!((da=A.decorations)==null||!da.includes(4)),aa["yt-spec-avatar-shape__white-border"]=
!((V=A.decorations)==null||!V.includes(5)),aa["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((fa=A.decorations)==null?0:fa.includes(5))&&I),aa["yt-spec-avatar-shape--is-overlay"]=!!F,aa);return _.ht(x)}},_.q("div",{class:function(){var x={};
x=(x[nYa(b().size)]=!0,x["yt-spec-avatar-shape--no-margin"]=rYa(b().decorations),x);return _.ht(x)}},_.q(_.Ps,{data:c,
alt:function(){return!b().onTap&&b().accessibilityText?b().accessibilityText:""},
targetWidth:function(){return pYa(b().size)},
targetHeight:function(){return pYa(b().size)},
className:function(){return _.ht(u())}}),_.q(_.qi,{cond:function(){var x;
return((x=b().decorations)==null?void 0:x.includes(0))&&qYa(b().size)},
then:function(){return _.q("div",{class:function(){var x={};x=(x["yt-spec-avatar-shape__live-badge"]=!0,x["yt-spec-avatar-shape__live-badge--badge-small"]=b().size==="small",x["yt-spec-avatar-shape__live-badge--badge-medium"]=b().size==="medium"||b().size==="48",x["yt-spec-avatar-shape__live-badge--badge-large"]=b().size==="large",x["yt-spec-avatar-shape__live-badge--badge-extra-large"]=b().size==="extra-large"||b().size==="extra-extra-large"||b().size==="giant",x);return _.ht(x)}},_.q(_.qi,{cond:function(){return b().badgeText},
then:function(x){return _.q("div",{class:"yt-spec-avatar-shape__badge-text",el:m},x)}}),_.q(_.qi,{cond:n,
then:function(){return _.q("div",{class:"yt-spec-avatar-shape__badge-icon"},_.q(_.qt,{icon:t,size:function(){a:switch(b().size){case "extra-large":var x=16;break a;default:x=13}return x}}))}}))}}),_.q(_.qi,{cond:function(){var x,A;
return((x=b().decorations)==null?void 0:x.includes(1))||((A=b().decorations)==null?void 0:A.includes(0))&&!qYa(b().size)},
then:function(){return _.q("div",{class:function(){var x=b(),A,C,F={};var J=(F["yt-spec-avatar-shape__live-dot"]=!((A=x.decorations)==null||!A.includes(0)||qYa(x.size)),F["yt-spec-avatar-shape__new-content"]=!((C=x.decorations)==null||!C.includes(1)),F);return _.ht(J)}})}}),_.Tg(g,function(){return _.q("div",{class:function(){var x={};
x=Object.assign((x["yt-spec-avatar-shape__image-overlays"]=!0,x),u());return _.ht(x)}},g==null?void 0:g())})))))},"L");
av.idomCompat={callbacks:{overlays:!0}};var NZb=_.Rr(function(a){function b(){c().endpoint&&_.Gs(c().endpoint)}
var c=a.data;var d=a.decorations;var e=a.avatarButtonCustomClassName;var g=a.isOverlay;return _.q("avatar-view-model",null,_.q(_.qi,{cond:function(){return c().image},
then:function(k){return _.q(av,{data:function(){return tYa({data:c(),onTap:c().endpoint?b:void 0,decorations:d==null?void 0:d(),badgeText:void 0,accessibilityText:c().accessibilityText,avatarButtonCustomClassName:e==null?void 0:e()})},
image:k,iconType:"RADAR_LIVE",overlays:function(){return _.q(bv,{data:c})},
isOverlay:g})}}))},"M");
NZb.idomCompat=!0;_.Kv=_.w("mweb_enable_sink_avatar_view_model")||_.w("web_enable_sink_lockups_batch")?NZb:uYa;_.QK=_.w("mweb_enable_sink_avatar_view_model")||_.w("web_enable_sink_lockups_batch")?NZb:_.jt(_.Kv);_.Zl(uYa);_.Zl(xYa);var OZb,PZb;OZb=_.Rr(function(a){var b=a.data;a=a.className;var c=_.Pl(),d=function(){return _.y(b().avatar,_.cv)},e=_.ph(function(){var g=b(),k=d(),m=_.Wu(b().rendererContext);
return k?wYa({data:g,avatar:k,onTap:m,element:c.value}):{size:"medium"}},void 0,"v09a6");
return _.q("yt-decorated-avatar-view-model",{class:_.et("yt-decorated-avatar-view-model-wiz",a),el:c},_.q(_.qi,{cond:function(){var g;return(g=d())==null?void 0:g.image},
then:function(g){return _.q(av,{data:e,image:g,iconType:"RADAR_LIVE",overlays:function(){return _.q(bv,{data:d})}})}}))},"N");
PZb=_.w("web_enable_sink_lockups_batch")?OZb:xYa;_.RK=_.w("web_enable_sink_lockups_batch")?OZb:_.jt(xYa);OZb.idomCompat=!0;var BYa=_.Du({avatarViewModel:_.Kv,decoratedAvatarViewModel:PZb});_.Zl(CYa);var QZb,SZb;QZb=_.Rr(function(a){var b=_.Pl(),c=function(){return b&&_.Xu(a.data().rendererContext)};
_.Zu(b,function(){return a.data().rendererContext});
var d=function(){var g=a.data().avatars,k,m;return(m=(k=(g==null?0:g[0])?_.y(g[0],_.cv):void 0)==null?void 0:k.avatarImageSize)!=null?m:"AVATAR_SIZE_UNKNOWN"},e={};
return _.q("yt-avatar-stack-view-model",{el:b,class:_.et("yt-avatar-stack-view-model-wiz",a.className,(e["yt-avatar-stack-view-model-wiz--tappable"]=c,e["yt-avatar-stack-view-model-wiz--is-overlay"]=a.isOverlay,e["yt-avatar-stack-view-model-wiz--medium-text"]=a.useMediumText,e)),tabindex:function(){return c()?0:void 0},
role:function(){return c()?"link":void 0},
"aria-label":function(){var g,k;return(k=(g=_.y(a.data().rendererContext,_.$u))==null?void 0:g.label)!=null?k:""}},_.q(_.qi,{cond:function(){var g;
return a.data().avatars&&!((g=a.hideAvatar)==null?0:g.call(a))},
then:function(){return _.q("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.q(_.qi,{cond:function(){return a.data().decoratedText},
then:function(g){var k={};return _.q("div",{class:_.et("yt-avatar-stack-view-model-wiz__text-container",(k["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return d()==="AVATAR_SIZE_XXS"||d()==="AVATAR_SIZE_XS"},k["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var m;
return((m=a.isOverlay)==null?void 0:m.call(a))&&(d()==="AVATAR_SIZE_XXS"||d()==="AVATAR_SIZE_XS")},k)),
style:_.ot({width:function(){return DYa(d())+"px"},
height:function(){return DYa(d())+"px"}})},_.q(_.tt,{text:g,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.q(_.Hu,{data:function(){return a.data().avatars.slice().reverse()}},{avatarViewModel:function(g){return _.q("div",{class:function(){return EYa(d())}},_.q(_.QK,{data:g.data,
decorations:function(){var k;if((k=a.decorations)==null?0:k.call(a))k=a.decorations();else{k=a.data();var m=0;k.avatars&&(m+=k.avatars.length);k.decoratedText&&(m+=1);k=m>1?[3]:[]}return k},
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:a.isOverlay}))},
decoratedAvatarViewModel:function(g){return _.q("div",{class:function(){return EYa(d())}},_.q(_.RK,{data:g.data}))}}))}}),_.q(_.qi,{cond:function(){return a.data().text},
then:function(g){return _.q(_.tt,{text:g,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"O");
_.RZb=_.w("web_enable_sink_lockups_batch")?QZb:CYa;SZb=_.w("web_enable_sink_lockups_batch")?QZb:_.jt(CYa);QZb.idomCompat=!0;_.Ts(_.Rr(function(a){var b=a.data;var c=a.thumbnailSize;return _.q("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.q("div",{class:_.et("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return FYa(c==null?void 0:c())})},_.q(_.Hu,{data:function(){return b().avatarStack}},{avatarStackViewModel:function(d){return _.q(SZb,{data:d.data,
decorations:[5]})}})))},"P"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.VG,
thumbnailSize:_.VG}});_.Zl(GYa);var TZb=_.Rr(function(a){a=_.Or(a,{hidden:!1});var b=a.data;return _.q("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:a.hidden},_.q(_.tt,{text:function(){return b().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.q(_.qi,{cond:function(){return b().subtitle},
then:function(){return _.q(_.tt,{text:function(){return b().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"Q"),UZb=_.w("web_enable_sink_lockups_batch")?TZb:GYa,VZb=_.w("web_enable_sink_lockups_batch")?TZb:_.jt(GYa);
TZb.idomCompat=!0;_.w("web_enable_sink_lockups_batch")?_.Ts(VZb,"yt-thumbnail-overlay-title-view-model",{props:{data:_.VG,hidden:_.VG}}):_.at(UZb,"yt-thumbnail-overlay-title-view-model",{propNames:["data"]});var WZb=_.Rr(function(a){a=_.Or(a,{isClip:!1});var b=a.data,c=a.thumbnailSize,d={};return _.q("yt-thumbnail-overlay-badge-view-model",{class:_.et("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(b().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var e="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:e="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return e},function(){return HYa(c==null?void 0:c())},(d["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
a.isClip,d))},_.q(_.Hu,{data:function(){return b().thumbnailBadges}},{thumbnailBadgeViewModel:function(e){return _.q(HZb,{data:e.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"R");
WZb.idomCompat=!0;_.Ts(WZb,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.VG,thumbnailSize:_.VG,isClip:_.VG}});_.Zl(IYa);_.at(IYa,"yt-page-indicator-view-model",{propNames:["data"]});var XZb=function(){var a=_.P.apply(this,arguments)||this;a.eventSink=function(){return a};
a.disableInteraction=!1;a.noRoundedCorners=!1;a.isPreviewLoading=!1;a.isOriginalAspectRatio=!1;a.computedObjectFit=!1;a.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return a};
_.z(XZb,_.P);_.f=XZb.prototype;
_.f.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:{component:"ytd-thumbnail-overlay-resume-playback-renderer",properties:{isLive:"[[isLiveVideo]]"}},thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",richGridOverlay:"[[richGridThumbnail]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",properties:{isVideoPlaying:"[[isVideoPlaying]]",equalizerOnly:"[[nowPlayingEqualizerOnly]]",isActive:"[[data.selected]]",videoId:"[[data.videoId]]"}},thumbnailOverlayPinkingRenderer:"ytd-thumbnail-overlay-pinking-renderer",
thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayIconRenderer:"ytd-thumbnail-overlay-icon-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailBottomOverlayViewModel:"yt-thumbnail-bottom-overlay-view-model",thumbnailOverlayAvatarStackViewModel:"thumbnail-overlay-avatar-stack-view-model",thumbnailOverlayBadgeViewModel:{component:"yt-thumbnail-overlay-badge-view-model",
properties:{thumbnailSize:"[[thumbnailSize]]"}}},initialRenderPriority:_.w("defer_overlays")?1:void 0,waitForSignal:void 0},hoverOverlays_:{id:"hover-overlays",reuseComponents:!1,mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayInlineUnplayableRenderer:"ytd-thumbnail-overlay-inline-unplayable-renderer",thumbnailOverlayToggleButtonRenderer:{component:"ytd-thumbnail-overlay-toggle-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",
eventSink:"[[eventSink]]",useExpandableTooltip:"[[useExpandableTooltip]]"}},thumbnailOverlayButtonRenderer:{component:"ytd-thumbnail-overlay-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",eventSink:"[[eventSink]]"}},thumbnailOverlayEndorsementRenderer:"ytd-thumbnail-overlay-endorsement-renderer",thumbnailOverlayLoadingPreviewRenderer:{component:"ytd-thumbnail-overlay-loading-preview-renderer",properties:{isPreviewLoading:"[[isPreviewLoading]]"}}}},richThumbnail:{id:"mouseover-overlay",
mapping:{movingThumbnailRenderer:{component:"ytd-moving-thumbnail-renderer",properties:{trackingParams:"[[data.trackingParams]]",videoId:"[[data.videoId]]"}}},renderPriority:2,waitForSignal:"eocs"}}};
_.f.onImageLoaded=function(){this.loaded=!0};
_.f.onImageUnloaded=function(){this.loaded=!1};
_.f.computeRichThumbnail=function(a,b,c,d){if(a&&b&&!d&&!_.w("disable_moving_thumbs_handling")&&!c)return b};
_.f.computeImageWidth=function(a,b){return b||9999};
_.f.computeIsOriginalAspectRatio=function(a){return a};
_.f.computeIsLive=function(a){if(a==null?0:a.badges)for(var b=0;b<a.badges.length;b++){var c=a.badges[b];if(c.metadataBadgeRenderer&&c.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(a==null?0:a.thumbnailOverlays)for(b=0;b<a.thumbnailOverlays.length;b++)if(c=a.thumbnailOverlays[b],c.thumbnailOverlayTimeStatusRenderer&&c.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.f.computeObjectFit=function(a,b){return b||(a?"CONTAIN":"")};
_.f.computeNavigationEndpoint=function(a,b,c){return a?b:c};
_.f.computeHasClip=function(a){a=_.h(a||[]);for(var b=a.next();!b.done;b=a.next())if(b.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.f.computeOverlayColor=function(a){var b;return(a==null?0:(b=a.darkColorPalette)==null?0:b.section2Color)?a.darkColorPalette.section2Color:a==null?void 0:a.sampledThumbnailColor};
_.Um.Object.defineProperties(XZb.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return Yt(this.width)}}});
var SK=XZb;SK.prototype.onImageUnloaded=SK.prototype.onImageUnloaded;SK.prototype.onImageLoaded=SK.prototype.onImageLoaded;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],SK.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],SK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(CVb),_.W("design:type",Object)],SK.prototype,"ytdThumbnailBehavior",void 0);
_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],SK.prototype,"componentBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],SK.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],SK.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],SK.prototype,"circular",void 0);
_.U([_.O({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.W("design:type",Object)],SK.prototype,"richThumbnail",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.W("design:type",Boolean)],SK.prototype,"hasClip",void 0);_.U([_.O(),_.W("design:type",Object)],SK.prototype,"eventSink",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],SK.prototype,"queued",void 0);
_.U([_.O({value:!1}),_.W("design:type",Boolean)],SK.prototype,"richGridThumbnail",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],SK.prototype,"useExpandableTooltip",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],SK.prototype,"useUntranslatedNavigationEndpoint",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],SK.prototype,"disableInteraction",void 0);
_.U([_.O({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.W("design:type",Object)],SK.prototype,"computedNavigationEndpoint",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],SK.prototype,"nowPlayingEqualizerOnly",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],SK.prototype,"hidePlaybackStatus",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],SK.prototype,"objectFit",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],SK.prototype,"noRoundedCorners",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],SK.prototype,"watchFeedThumbnail",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],SK.prototype,"isPreviewLoading",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.W("design:type",Object)],SK.prototype,"isOriginalAspectRatio",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.W("design:type",Object)],SK.prototype,"computedObjectFit",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.W("design:type",Boolean)],SK.prototype,"isLiveVideo",void 0);
_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],SK.prototype,"loaded",void 0);_.U([_.O({computed:"computeOverlayColor(data.thumbnail)"}),_.W("design:type",Object)],SK.prototype,"overlayColor",void 0);_.U([_.O({selector:_.AFa}),_.W("design:type",Boolean)],SK.prototype,"inlinePreviewIsEnabled",void 0);_.U([_.O(),_.W("design:type",Number)],SK.prototype,"width",void 0);
_.U([_.K("inlinePreviewIsEnabled"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],SK.prototype,"isPreviewDisabled",null);_.U([_.K("width"),_.W("design:type",String),_.W("design:paramtypes",[])],SK.prototype,"thumbnailSize",null);_.U([_.M("image-loaded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SK.prototype,"onImageLoaded",null);
_.U([_.M("image-unloaded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SK.prototype,"onImageUnloaded",null);SK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail"})],SK);
var YZb=_.$r()(SK,"ytd-thumbnail",function(){if(FZb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint inline-block style-scope ytd-thumbnail" aria-hidden="true" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" rel="[[computeNofollow_(computedNavigationEndpoint)]]" tabindex="-1">\n  <yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[height]]" notify-on-loaded="" notify-on-unloaded="" object-fit="[[computedObjectFit]]" width="[[computeImageWidth(data, width)]]" class="style-scope ytd-thumbnail">\n  </yt-image>\n  \n  <div id="overlays" class="style-scope ytd-thumbnail"></div>\n  <div id="mouseover-overlay" class="style-scope ytd-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-thumbnail"></div>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);FZb=a}a=FZb;return a},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying".split(" "),mode:2});var MYa=function(a){var b=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12623_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12623_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(c){ZZb(b,c)};
this.onLockupMouseLeaveFn=function(c){c=c.relatedTarget;var d,e;((d=document.getElementsByTagName("ytd-video-preview"))==null?0:(e=d.item(0))==null?0:e.contains(c))||(b.terminateVideoPreview(),TK(b))};
this.onThumbnailMouseDownFn=function(){b.terminateVideoPreview();TK(b)};
this.onTouchStart=function(){b.JSC$12623_touched=!0};
this.mediaRenderer=a.mediaRenderer;this.thumbnailElement=a.thumbnailElement;this.lockupElement=a.lockupElement;this.videoPreviewOptsInput=a.videoPreviewOpts;$Zb(this);UK(this)?this.thumbnailElement?this.lockupElement?(this.lockupElement.addEventListener("mouseenter",this.onMouseMoveFn),this.lockupElement.addEventListener("mouseleave",this.onLockupMouseLeaveFn),this.lockupElement.addEventListener("touchstart",this.onTouchStart),this.thumbnailElement.addEventListener("mousedown",this.onThumbnailMouseDownFn)):
_.Dl(Error("Fh")):_.Dl(Error("Gh")):a_b(this)},uv=function(a){a_b(a);
var b;(b=a.lockupElement)==null||b.removeEventListener("mouseenter",a.onMouseMoveFn);var c;(c=a.lockupElement)==null||c.removeEventListener("mouseleave",a.onLockupMouseLeaveFn);var d;(d=a.lockupElement)==null||d.removeEventListener("touchstart",a.onTouchStart);var e;(e=a.thumbnailElement)==null||e.removeEventListener("mousedown",a.onThumbnailMouseDownFn);TK(a)},$Zb=function(a){a.inlinePreviewIsEnabledForUser=_.Yp().getState().ui.inlinePreviewIsEnabled;
a.unsubscribeFromInlinePreviewIsEnabled=_.zF(_.Yp(),_.AFa,function(b){(a.inlinePreviewIsEnabledForUser=b)||TK(a)});
a.JSC$12623_unsubscribeFromInlinePreviewIsActive=_.zF(_.Yp(),_.zFa,function(b){(a.inlinePreviewIsActive=b)||TK(a)})},a_b=function(a){a.unsubscribeFromInlinePreviewIsEnabled();
a.unsubscribeFromInlinePreviewIsEnabled=function(){};
a.JSC$12623_unsubscribeFromInlinePreviewIsActive();a.JSC$12623_unsubscribeFromInlinePreviewIsActive=function(){}},ZZb=function(a,b){b.buttons>0||(b=_.$i("kevlar_lockup_hover_delay",-1),a.JSC$12623_touched&&b>=0?(_.zk.cancelJob(a.videoPreviewJobId),a.videoPreviewJobId=_.Ys(_.zk,function(){b_b(a)},b),a.JSC$12623_touched=!1):b_b(a))},c_b=function(a){a.videoPreviewJobId=_.Ys(_.zk,function(){var b,c,d,e;
return _.l(function(g){if(g.nextAddress==1){if(!UK(a))return g.return();b=a.getVideoPreviewOpts();return b?(d=(c=_.mo(a.mediaRenderer.hostElement,"yt-open-video-preview-action",[b]))&&c[0])?_.p(g,c[0],3):g.jumpTo(2):g.return()}g.nextAddress!=2&&(d=g.yieldResult===1);d&&KYa((e=a.mediaRenderer)==null?void 0:e.data);_.ue(g)})},2E3)},b_b=function(a){!a.previewTriggered&&UK(a)&&(a.inlinePreviewIsActive&&a.terminateVideoPreview(),a.previewTriggered=!0,a.mediaRenderer.isInlinePreviewTriggered=!0,_.zk.cancelJob(a.videoPreviewJobId),
a.videoPreviewJobId=_.Ys(_.zk,function(){var b,c,d,e;
return _.l(function(g){if(g.nextAddress==1){if(!UK(a))return g.return();b=a.getVideoPreviewOpts();return b?(d=(c=_.mo(a.mediaRenderer.hostElement,"yt-open-video-preview-action",[b]))&&c[0])?_.p(g,c[0],3):g.jumpTo(2):g.return()}g.nextAddress!=2&&(d=g.yieldResult===1);d&&KYa((e=a.mediaRenderer)==null?void 0:e.data);_.ue(g)})}))};
MYa.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var a,b;if((b=(a=this.videoPreviewOptsInput)==null?void 0:a.videoPreviewData)!=null)a=b;else if(a=this.mediaRenderer.data)if(JYa(a))a={inlinePlaybackEndpoint:_.Ds(a.inlinePlayerData.onVisible),navigationEndpoint:_.Ds(a.onTap),thumbnail:"image"in a?a.image:a.thumbnail,thumbnailOverlays:void 0,accessibilityText:LYa(a)};else if("multipleInlinePlaybackEndpoint"in a){var c=_.y(_.y(a.multipleInlinePlaybackEndpoint,NAb),OAb);if(c!=
null&&c.playerDescriptors){b=[];c=_.h(c.playerDescriptors);for(var d=c.next();!d.done;d=c.next())d=d.value,b.push({inlinePlaybackEndpoint:d.inlinePlaybackEndpoint,navigationEndpoint:d.navigationEndpoint,thumbnail:d.thumbnail,thumbnailOverlays:d.thumbnailOverlays,accessibilityText:LYa(a)});a=b}else a=void 0}else a={inlinePlaybackEndpoint:a.inlinePlaybackEndpoint,navigationEndpoint:a.navigationEndpoint,thumbnail:a.thumbnail,thumbnailOverlays:a.thumbnailOverlays,accessibilityText:LYa(a)};else a=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:a,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var UK=function(a){var b;if(b=a.inlinePreviewIsEnabledForUser)b=(a=a.mediaRenderer.data)?"inlinePlaybackEndpoint"in a&&a.inlinePlaybackEndpoint||JYa(a)&&a.inlinePlayerData||"multipleInlinePlaybackEndpoint"in a&&a.multipleInlinePlaybackEndpoint?!0:!1:!1;return b};
MYa.prototype.terminateVideoPreview=function(){_.lo(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var TK=function(a){_.zk.cancelJob(a.videoPreviewJobId);a.inlinePreviewIsActive=!1;a.previewTriggered=!1;a.mediaRenderer.isInlinePreviewTriggered=!1};var d_b=_.hx(["#"]),e_b=function(){var a=_.P.apply(this,arguments)||this;a.isDisabled=!1;return a};
_.z(e_b,_.P);_.f=e_b.prototype;_.f.configureRendererStamper=function(){return{"data.menu":CK,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.f.attached=function(){this.updateInlinePreviewHoverListeners()};
_.f.detached=function(){this.clearInlinePreviewHoverListeners()};
_.f.getMetadata=function(a){var b=[];if(a.metadataText&&Object.keys(a.metadataText).length>0){var c=this.ytRendererBehavior.getSimpleString(a.metadataText);a.upcomingEventData&&a.upcomingEventData.upcomingEventText&&(c=_.Ru(c,Number(a.upcomingEventData.startTime)));b.push(c)}else a.shortViewCountText&&b.push(this.ytRendererBehavior.getSimpleString(a.shortViewCountText)),a.publishedTimeText&&b.push(this.ytRendererBehavior.getSimpleString(a.publishedTimeText)),a.upcomingEventData&&a.upcomingEventData.upcomingEventText&&
(c=this.ytRendererBehavior.getSimpleString(a.upcomingEventData.upcomingEventText),b.push(_.Ru(c,Number(a.upcomingEventData.startTime))));return b};
_.f.calculateBylineText=function(a){return a.shortBylineText?a.shortBylineText:a.bylineText?a.bylineText:null};
_.f.calculateIsDisabled=function(a){return!!a.isDisabled};
_.f.computeHrefWithDefault=function(a){return this.ytComponentBehavior.computeHref_(a)||_.Ld(d_b)};
_.f.onDetailsTap=function(a){var b=this.data&&this.data.navigationEndpoint;b&&!_.Wt(_.Rq(a)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.w("kevlar_grid_video_renderer_killswitch")?_.io(this.hostElement,"yt-navigate",{endpoint:b}):this.ytComponentBehavior.resolveCommand(b))};
_.f.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.f.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12627_inlinePreviewHoverListener=dv({mediaRenderer:this,lockupElement:_.E(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.E(this.hostElement).querySelector("ytd-thumbnail")})};
_.f.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$12627_inlinePreviewHoverListener)==null||uv(a)};
_.f.computeThumbnailWidth=function(a,b){return b&&b>0?b:a?360:210};
_.f.computeShowChannelThumbnail=function(a,b){var c;return b&&!!(a==null?0:(c=a.channelThumbnailSupportedRenderers)==null?0:c.channelThumbnailWithLinkRenderer)};
_.Um.Object.defineProperties(e_b.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$12627_inlinePreviewHoverListener)==null?0:UK(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var VK=e_b;VK.prototype.dataChanged=VK.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],VK.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],VK.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],VK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],VK.prototype,"ytdDismissibleItemBehavior",void 0);
_.U([_.H(_.$I),_.W("design:type",Object)],VK.prototype,"ytdLockupBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],VK.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],VK.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],VK.prototype,"noEndpoints",void 0);_.U([_.O({computed:"calculateBylineText(data)"}),_.W("design:type",Object)],VK.prototype,"bylineText",void 0);
_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],VK.prototype,"isSearch",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],VK.prototype,"isDownloading",void 0);_.U([_.O({reflectToAttribute:!0,value:0}),_.W("design:type",Number)],VK.prototype,"width",void 0);_.U([_.O({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.W("design:type",Object)],VK.prototype,"isDisabled",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VK.prototype,"dataChanged",null);_.U([_.K("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],VK.prototype,"isHovered",null);VK=_.U([_.Q({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],VK);
_.S(VK,"ytd-grid-video-renderer",function(){if(jZb!==void 0)return jZb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return jZb=a},{mode:_.as("kevlar_poly_si_batch_j047")?1:2});var f_b;var WK=function(){var a=_.P.apply(this,arguments)||this;a.roundedContainer=!0;a.skipRoundingTop=!1;a.disableTopPadding=!1;a.amsterdamEnabled=_.w("enable_desktop_amsterdam_info_panels");return a};
_.z(WK,_.P);WK.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
WK.prototype.onClick=function(a){var b,c=(b=this.data)==null?void 0:b.sourceEndpoint;!_.Wt(_.Rq(a),this.hostElement,["A".toString()])&&c&&_.io(this.hostElement,"yt-navigate",{endpoint:c})};
_.Um.Object.defineProperties(WK.prototype,{showMetadataAtTop:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!!this.data.sourceAtTop}},
showMetadataBelowTitle:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!this.data.sourceAtTop}},
hasMenu:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.data)==null?void 0:a.paragraphMaxLines)!=null?b:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
var XK=WK;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],XK.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],XK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],XK.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],XK.prototype,"showVerticalDividers",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],XK.prototype,"roundedContainer",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],XK.prototype,"skipRoundingTop",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],XK.prototype,"disableTopPadding",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],XK.prototype,"amsterdamEnabled",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],XK.prototype,"showMetadataAtTop",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],XK.prototype,"showMetadataBelowTitle",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.menu"),_.W("design:type",Object),_.W("design:paramtypes",[])],XK.prototype,"hasMenu",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.truncateParagraphs"),_.W("design:type",Object),_.W("design:paramtypes",[])],XK.prototype,"truncateParagraphs",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data.paragraphMaxLines"),_.W("design:type",Number),_.W("design:paramtypes",[])],XK.prototype,"paragraphMaxLines",null);_.U([_.O({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.K("data.background"),_.W("design:type",Object),_.W("design:paramtypes",[])],XK.prototype,"background",null);XK=_.U([_.Q({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],XK);
_.S(XK,"ytd-info-panel-content-renderer",function(){if(f_b!==void 0)return f_b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-info-panel-content-renderer" on-click="onClick">\n  <yt-icon class="inline-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <div class="text-content style-scope ytd-info-panel-content-renderer">\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataAtTop]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <a class="yt-simple-endpoint title-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.title]]" href$="[[computeHref_(data.sourceEndpoint)]]" data="[[data.sourceEndpoint]]">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-info-panel-content-renderer"></yt-formatted-string>\n      <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n      </yt-icon>\n    </a>\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataBelowTitle]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div class="paragraphs style-scope ytd-info-panel-content-renderer">\n      <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.runs]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-formatted-string class="paragraph style-scope ytd-info-panel-content-renderer" text="[[item]]">\n          </yt-formatted-string>\n          <div class="inline-source style-scope ytd-info-panel-content-renderer" hidden="[[!data.inlineSource]]">\n            <yt-formatted-string force-default-style="" text="[[data.inlineSource]]" class="style-scope ytd-info-panel-content-renderer">\n            </yt-formatted-string>\n            <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n            </yt-icon>\n          </div>\n        </div>\n      </template>\n      <template is="dom-repeat" items="[[data.attributedParagraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.content]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-attributed-string id="paragraph" class="attributed-paragraph style-scope ytd-info-panel-content-renderer" data="[[item]]">\n          </yt-attributed-string>\n        </div>\n      </template>\n      <div class="disclaimer-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.disclaimer]]">\n        <a class="yt-simple-endpoint style-scope ytd-info-panel-content-renderer" href$="[[computeHref_(data.sourceEndpoint)]]" target="_blank" data="[[data.sourceEndpoint]]">\n          <yt-formatted-string class="disclaimer style-scope ytd-info-panel-content-renderer" text="[[data.disclaimer]]">\n          </yt-formatted-string>\n          <yt-icon class="inline-link-icon inline-disclaimer-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineDisclaimerIcon.iconType]]" hidden="[[!data.inlineDisclaimerIcon]]" icon="[[data.inlineDisclaimerIcon.iconType]]">\n          </yt-icon>\n        </a>\n      </div>\n    </div>\n  </div>\n  <yt-img-shadow class="thumbnail style-scope ytd-info-panel-content-renderer" hidden="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n</div>\n<div id="menu" class="style-scope ytd-info-panel-content-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return f_b=a},{mode:_.as("kevlar_poly_si_batch_j076")?1:2});var g_b;var h_b;var i_b;var j_b;var k_b=function(){return _.P.apply(this,arguments)||this};
_.z(k_b,_.P);k_b.prototype.computeStyle=function(a){return a};
var YK=k_b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],YK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],YK.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],YK.prototype,"style_",void 0);YK=_.U([_.wr({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],YK);
_.S(YK,"yt-channel-thumbnail-with-link-renderer",function(){if(j_b===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-channel-thumbnail-with-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_channel_thumbnail_with_link_renderer.yt.channel.thumbnail.with.link.renderer.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" title="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  </yt-img-shadow>\n</a>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;i_b===void 0&&(i_b=document.createElement("template"));var d=i_b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);j_b=a}a=j_b;return a},{mode:2});var ZK=function(){var a=_.P.apply(this,arguments)||this;a.modernTypography=_.w("web_modern_typography");return a};
_.z(ZK,_.P);ZK.prototype.configureRendererStamper=function(){return{"data.channelThumbnail":{id:"avatar",mapping:{channelThumbnailWithLinkRenderer:"yt-channel-thumbnail-with-link-renderer"}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.navigationButton":{id:"navigation-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ZK.prototype.computeTitleStyle=function(a){return a||null};
ZK.prototype.computeAvatarStyle=function(a){return a||null};
ZK.prototype.computeShowNavigationButton=function(a,b){return!(a==null||!a.navigationButton||b)};
var $K=ZK;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$K.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],$K.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],$K.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.W("design:type",String)],$K.prototype,"titleStyle",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.W("design:type",String)],$K.prototype,"avatarStyle",void 0);_.U([_.O(),_.W("design:type",Boolean)],$K.prototype,"hideNavigationButton",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],$K.prototype,"isModernSd",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$K.prototype,"modernTypography",void 0);
$K=_.U([_.Q({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],$K);
_.S($K,"ytd-rich-list-header-renderer",function(){if(h_b!==void 0)return h_b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="title-row style-scope ytd-rich-list-header-renderer">\n  <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n  <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-rich-list-header-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n      </yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-rich-list-header-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <div id="image-container" class="style-scope ytd-rich-list-header-renderer">\n        <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n        <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n          <span id="title" class="style-scope ytd-rich-list-header-renderer">[[getSimpleString(data.title)]]</span>\n          <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </a>\n  </template>\n  <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-list-header-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="title-annotation" hidden="[[!data.titleAnnotation]]" text="[[data.titleAnnotation]]" class="style-scope ytd-rich-list-header-renderer">\n  </yt-formatted-string>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-list-header-renderer"></div>\n  <div id="navigation-button" hidden="[[!computeShowNavigationButton(data, hideNavigationButton)]]" class="style-scope ytd-rich-list-header-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return h_b=a},{mode:_.as("kevlar_poly_si_batch_j058")?1:2});var l_b=function(){return _.P.apply(this,arguments)||this};
_.z(l_b,_.P);l_b.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{richListHeaderRenderer:"ytd-rich-list-header-renderer"}},"data.contents":{id:"contents",mapping:{gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
var aL=l_b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],aL.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],aL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],aL.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],aL.prototype,"isSearch",void 0);aL=_.U([_.Q({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],aL);
_.S(aL,"ytd-preview-card-renderer",function(){if(g_b!==void 0)return g_b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-preview-card-renderer"></div>\n<div id="contents" class="style-scope ytd-preview-card-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return g_b=a},{mode:1});var m_b;var bL=function(){return _.P.apply(this,arguments)||this};
_.z(bL,_.P);bL.prototype.configureRendererStamper=function(){return{"data.menu":CK}};
bL.prototype.dataChanged=function(){var a=this.get("colorExtractionPalette.section1Color",this.data);a=_.Cq(a);_.fr(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":a})};
bL.prototype.computeCardStyle=function(a){return this.get("style.value",a)||null};
var cL=bL;cL.prototype.dataChanged=cL.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],cL.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],cL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],cL.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],cL.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.W("design:type",String)],cL.prototype,"cardStyle",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cL.prototype,"dataChanged",null);cL=_.U([_.Q({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],cL);
_.S(cL,"ytd-compact-channel-recommendation-card-renderer",function(){if(m_b!==void 0)return m_b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-channel-recommendation-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="card-body" class="yt-simple-endpoint style-scope ytd-compact-channel-recommendation-card-renderer" href$="[[computeHref_(data.channelEndpoint)]]" title$="[[getSimpleString(data.channelTitle)]]" aria-label$="[[getSimpleString(data.channelTitle)]]" data="[[data.channelEndpoint]]">\n  <div id="banner" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <yt-img-shadow id="channel-art" object-fit="COVER" thumbnail="[[data.backgroundImage]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n    <svg id="avatar-protection" viewBox="0 0 210 56" preserveAspectRatio="none" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n      <path id="lower-overlay" d="M 0 -12 L 126 56 L 0 56 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n      <path id="upper-overlay" d="M 0 -12 L 74 28 L 0 68 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n    </svg>\n    <yt-img-shadow id="avatar" thumbnail="[[data.channelAvatar]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n  </div>\n  <div id="channel-info" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <span id="title" class="style-scope ytd-compact-channel-recommendation-card-renderer">[[getSimpleString(data.channelTitle)]]</span>\n  </div>\n</a>\n<div id="subscribe-container" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  <ytd-subscribe-button-renderer id="subscribe" data="[[data.subscribeButton.subscribeButtonRenderer]]" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  </ytd-subscribe-button-renderer>\n</div>\n<div id="menu" class="style-scope ytd-compact-channel-recommendation-card-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return m_b=a},{mode:1});var n_b;var o_b;var p_b=function(){var a=_.P.apply(this,arguments)||this;a.alignAuto=!1;a.collapsed=!0;a.isToggled=!1;a.alwaysCollapsed=!1;a.canToggle=!0;a.collapsedHeight=80;a.disableToggle=!1;a.alwaysToggleable=!1;a.reversed=!1;a.shouldUseNumberOfLines=!1;a.recomputeOnResize=!1;a.canToggleJobId=0;a.lastReversed=!1;return a};
_.z(p_b,_.P);_.f=p_b.prototype;_.f.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.f.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.f.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var a=_.E(this.hostElement),b=a.childNodes,c=document.createDocumentFragment(),d=a.childNodes.length-1;d>=0;d--)_.E(c).appendChild(b[d]);_.w("enable_shadydom_free_scoped_node_methods")?_.ar(this.hostElement).appendChild(c):a.appendChild(c)}};
_.f.ready=function(){var a=this;_.Er(function(){a.initChildrenObserver()},1)};
_.f.detached=function(){this.detachObserver()};
_.f.toggle=function(a,b){this.canToggle&&(this.isToggled=b,_.io(this.hostElement,"yt-refit"),a&&a.stopPropagation())};
_.f.reset=function(){this.childrenChanged()};
_.f.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.f.computeIsMoreVisible=function(a,b){return a&&!b};
_.f.computeShouldUseNumberOfLines=function(a){try{return!!a&&window.CSS.supports("-webkit-line-clamp","1")}catch(b){}return!1};
_.f.computeIsLessVisible=function(a,b){return a&&b};
_.f.observeCollapsedHeightAndMaxLines=function(){var a=this.collapsedHeight,b=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.fr(this.hostElement,{"--ytd-expander-max-lines":""+b,"--ytd-expander-collapsed-height":""}):_.fr(this.hostElement,{"--ytd-expander-collapsed-height":a+"px","--ytd-expander-max-lines":""})};
_.f.handleMoreTap=function(a){this.disableToggle||(_.io(this.hostElement,"yt-expander-more-tapped"),this.toggle(a,!0))};
_.f.handleLessTap=function(a){_.io(this.hostElement,"yt-expander-less-tapped");this.toggle(a,!1)};
_.f.initChildrenObserver=function(){var a=this;this.observer=new MutationObserver(function(){a.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.f.childrenChanged=function(){var a=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){Xs(function(){a.canToggleJobId=0;a.calculateCanCollapse()})}))};
_.f.calculateCanCollapse=function(){this.canToggle=this.shouldUseNumberOfLines?this.alwaysToggleable||this.isToggled||this.content&&this.content.offsetHeight<this.content.scrollHeight:this.alwaysToggleable||this.isToggled||this.content&&this.content.scrollHeight>this.collapsedHeight};
_.f.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.f.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.WH("collapsed-changed",this.collapsed))};
_.f.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.WH("is-toggled-changed",this.isToggled))};
_.f.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.WH("can-toggle-changed",this.canToggle))};
_.Um.Object.defineProperties(p_b.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
var dL=p_b;dL.prototype.canToggleChangedForBinding=dL.prototype.canToggleChangedForBinding;dL.prototype.isToggledChangedForBinding=dL.prototype.isToggledChangedForBinding;dL.prototype.collapsedChangedForBinding=dL.prototype.collapsedChangedForBinding;dL.prototype.observeCollapsedHeightAndMaxLines=dL.prototype.observeCollapsedHeightAndMaxLines;dL.prototype.onIronResize=dL.prototype.onIronResize;dL.prototype.reversedChanged=dL.prototype.reversedChanged;dL.prototype.toggledChanged=dL.prototype.toggledChanged;
dL.prototype.alwaysToggleableChanged=dL.prototype.alwaysToggleableChanged;_.U([_.H(_.OD),_.W("design:type",Object)],dL.prototype,"ironResizableBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],dL.prototype,"alignAuto",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],dL.prototype,"collapsed",void 0);_.U([_.O(),_.W("design:type",Object)],dL.prototype,"isToggled",void 0);_.U([_.O(),_.W("design:type",Object)],dL.prototype,"alwaysCollapsed",void 0);
_.U([_.O(),_.W("design:type",Object)],dL.prototype,"canToggle",void 0);_.U([_.O(),_.W("design:type",Object)],dL.prototype,"collapsedHeight",void 0);_.U([_.O(),_.W("design:type",Object)],dL.prototype,"disableToggle",void 0);_.U([_.O(),_.W("design:type",Object)],dL.prototype,"alwaysToggleable",void 0);_.U([_.O(),_.W("design:type",Object)],dL.prototype,"reversed",void 0);_.U([_.O(),_.W("design:type",Number)],dL.prototype,"maxNumberOfLines",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.W("design:type",Object)],dL.prototype,"shouldUseNumberOfLines",void 0);_.U([_.O(),_.W("design:type",Object)],dL.prototype,"recomputeOnResize",void 0);_.U([_.ir("#content"),_.W("design:type",HTMLDivElement)],dL.prototype,"content",void 0);_.U([_.mr("alwaysToggleable"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dL.prototype,"alwaysToggleableChanged",null);
_.U([_.mr("isToggled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dL.prototype,"toggledChanged",null);_.U([_.K("canToggleJobId"),_.W("design:type",Object),_.W("design:paramtypes",[])],dL.prototype,"isResetting",null);_.U([_.N("reversed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dL.prototype,"reversedChanged",null);
_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dL.prototype,"onIronResize",null);_.U([_.N("maxNumberOfLines","collapsedHeight"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dL.prototype,"observeCollapsedHeightAndMaxLines",null);_.U([_.N("collapsed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dL.prototype,"collapsedChangedForBinding",null);
_.U([_.N("isToggled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dL.prototype,"isToggledChangedForBinding",null);_.U([_.N("canToggle"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dL.prototype,"canToggleChangedForBinding",null);dL=_.U([_.Q({disableElementRegistration:!0,is:"ytd-expander"})],dL);
_.S(dL,"ytd-expander",function(){if(o_b!==void 0)return o_b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-expander">\n  \n  <slot id="container" name="content" class="style-scope ytd-expander"></slot>\n</div>\n<slot name="sticky" class="style-scope ytd-expander"></slot>\n<tp-yt-paper-button id="less" aria-expanded="true" hidden="[[!computeIsLessVisible(canToggle, isToggled)]]" noink="" on-tap="handleLessTap" class="style-scope ytd-expander">\n  <slot name="less-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<tp-yt-paper-button id="more" aria-expanded="false" hidden="[[!computeIsMoreVisible(canToggle, isToggled)]]" noink="" on-tap="handleMoreTap" class="style-scope ytd-expander">\n  <slot name="more-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<slot name="sticky-secondary" class="style-scope ytd-expander"></slot>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return o_b=a},{mode:1});var eL=function(){return _.P.apply(this,arguments)||this};
_.z(eL,_.P);eL.prototype.computeIsCarousel=function(a){return!!a.isCarousel};
eL.prototype.observeLightsourcePalette=function(){var a,b=(a=this.data)==null?void 0:a.vibrantsourceColorPaletteData;b&&_.Dt(this.hostElement,b)};
eL.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
var fL=eL;fL.prototype.observeLightsourcePalette=fL.prototype.observeLightsourcePalette;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],fL.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],fL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],fL.prototype,"data",void 0);_.U([_.O({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],fL.prototype,"isCarousel",void 0);
_.U([_.N("data.vibrantsourceColorPaletteData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fL.prototype,"observeLightsourcePalette",null);fL=_.U([_.Q({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],fL);
_.S(fL,"ytd-media-upsell-renderer",function(){if(n_b!==void 0)return n_b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="arrow_drop_down" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="arrow_drop_up" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return n_b=a},{mode:2});var q_b;var r_b=function(){var a=_.P.apply(this,arguments)||this;a.JSC$12655_playerEvents=new Map;a.listeningToPlayer=!1;a.startX=0;a.active=!1;a.shouldShowButtons=_.w("web_buttons_hidden_killswitch");a.isHighlighted=!1;a.useHighlightStyling=_.w("web_enable_deeper_metadata_highlight_styling");a.modern=_.w("kevlar_modern_sd");a.enableProblemWalkthrough=_.w("problem_walkthrough_sd");return a};
_.z(r_b,_.P);_.f=r_b.prototype;
_.f.configureRendererStamper=function(){return{"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.repeatButton":{id:"repeat-button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.thumbnailOverlay":{id:"overlay",mapping:{thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",params:{isVideoPlaying:!0}}}}}};
_.f.created=function(){this.JSC$12655_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.f.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.gr(this,this.onRepeatButtonToggle));_.w("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.gr(this,this.onActiveUpdate))};
_.f.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.gr(this,this.onRepeatButtonToggle));_.w("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.gr(this,this.onActiveUpdate))};
_.f.onDataChanged=function(){this.removePlayerListeners()};
_.f.onColorPaletteChange=function(){var a={},b;if(_.Jq()==="USER_INTERFACE_THEME_DARK"&&((b=this.data)==null?0:b.darkColorPalette)){var c=this.data.darkColorPalette;a["--ytd-macro-markers-list-item-background-color"]=_.Dq(this.get("section2Color",c))}else{var d;_.Jq()==="USER_INTERFACE_THEME_LIGHT"&&((d=this.data)==null?0:d.lightColorPalette)&&(c=this.data.lightColorPalette,a["--ytd-macro-markers-list-item-background-color"]=_.Dq(this.get("section3Color",c)))}c?(a["--ytd-macro-markers-list-item-title-color"]=
_.Dq(this.get("primaryTitleColor",c)),a["--ytd-macro-markers-list-item-secondary-color"]=_.Dq(this.get("secondaryTitleColor",c)),a["--ytd-macro-markers-list-item-timestamp-background-color"]=_.Dq(this.get("section1Color",c)),this.customButtonProperties={customColors:{color:_.Dq(this.get("primaryTitleColor",c))}},this.useColorSampling=!0):(a["--ytd-macro-markers-list-item-background-color"]="initial",a["--ytd-macro-markers-list-item-title-color"]="initial",a["--ytd-macro-markers-list-item-secondary-color"]=
"initial",a["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.fr(this.hostElement,a)};
_.f.onEndpointMouseDown=function(a){this.startX=a.clientX};
_.f.onEndpointClick=function(a){var b=this,c,d,e;return _.l(function(g){if(g.nextAddress==1){if(b.startX!==a.clientX)return a.preventDefault(),g.return();b.data&&b.ytRendererBehavior.logExplicitClick(b.data);if(!b.seekWithAnimationOnClick)return g.jumpTo(0);if(a.button!==0||a.shiftKey||a.altKey||a.metaKey||a.ctrlKey||_.Wt(_.Rq(a),b.hostElement,["BUTTON".toString()]))return g.return();a.stopPropagation();a.preventDefault();return b.data?_.p(g,_.bu().getPlayerPromise(),3):g.return()}c=g.yieldResult;
e=(d=_.y(b.data.onTap,_.Un))==null?void 0:d.startTimeSeconds;e!==void 0&&c.seekToTimeWithAnimation(e*1E3,_.Wp(b.data.title));_.ue(g)})};
_.f.computeLayout=function(a){return a};
_.f.computeIsHighlighted=function(a){return!!a};
_.f.computeCarouselType=function(a){return a};
_.f.hideModernCarousel=function(a){return this.modern&&this.hideThumbnail(a)};
_.f.hideThumbnail=function(a){return this.enableProblemWalkthrough&&a!==null&&a==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.f.onRepeatButtonToggle=function(a){var b=this;a.detail.toggled&&_.bu().getPlayerPromise().then(function(c){b.ytPlayerListenerBehavior.listenToPlayerEvents(c,b.JSC$12655_playerEvents);b.listeningToPlayer=!0})};
_.f.onLoopRangeChange=function(a){var b=_.E(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(b){var c=b.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",b.polymerController.data);if(c){var d=Number(c.endTimeMs);if(Number(c.startTimeMs)!==(a==null?void 0:a.startTimeMs)||d!==(a==null?void 0:a.endTimeMs))b.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.f.removePlayerListeners=function(){var a=this;this.listeningToPlayer&&_.bu().getPlayerPromise().then(function(b){a.ytPlayerListenerBehavior.unlistenFromPlayerEvents(b,a.JSC$12655_playerEvents);a.listeningToPlayer=!1})};
_.f.onActiveUpdate=function(a){this.active=a.detail.active};
var gL=r_b;gL.prototype.onColorPaletteChange=gL.prototype.onColorPaletteChange;gL.prototype.onDataChanged=gL.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],gL.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],gL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bJ.YtPlayerListenerBehavior),_.W("design:type",_.cJ)],gL.prototype,"ytPlayerListenerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],gL.prototype,"data",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],gL.prototype,"useCustomColors",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],gL.prototype,"active",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],gL.prototype,"shouldShowButtons",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.W("design:type",String)],gL.prototype,"layout",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.W("design:type",Object)],gL.prototype,"isHighlighted",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],gL.prototype,"useHighlightStyling",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],gL.prototype,"modern",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],gL.prototype,"enableProblemWalkthrough",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.W("design:type",String)],gL.prototype,"carouselType",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],gL.prototype,"useColorSampling",void 0);_.U([_.O(),_.W("design:type",Boolean)],gL.prototype,"seekWithAnimationOnClick",void 0);_.U([_.O(),_.W("design:type",Object)],gL.prototype,"customButtonProperties",void 0);
_.U([_.ir("#repeat-button"),_.W("design:type",HTMLElement)],gL.prototype,"repeatButton",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gL.prototype,"onDataChanged",null);_.U([_.N("data.lightColorPalette","data.darkColorPalette"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gL.prototype,"onColorPaletteChange",null);
gL=_.U([_.Q({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],gL);
_.S(gL,"ytd-macro-markers-list-item-renderer",function(){if(q_b!==void 0)return q_b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideModernCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideModernCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return q_b=a},{mode:1});var s_b;var t_b;var u_b=function(){var a=_.P.apply(this,arguments)||this;a.modernTypography=_.w("web_modern_typography");return a};
_.z(u_b,_.P);var hL=u_b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],hL.prototype,"ytRendererBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],hL.prototype,"modernTypography",void 0);_.U([_.O(),_.W("design:type",Object)],hL.prototype,"data",void 0);hL=_.U([_.Q({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],hL);
_.S(hL,"ytd-title-and-button-list-header-renderer",function(){if(t_b!==void 0)return t_b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-title-and-button-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-title-and-button-list-header-renderer"></yt-formatted-string>\n\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return t_b=a},{mode:1});var v_b;var w_b=new _.jB("BUTTON_RENDERER_WIZ_TOKEN"),x_b=new _.jB("BUTTON_RENDERER_TOKEN");_.iL=_.Rr(function(a){var b=_.v().resolve(_.Xi(w_b));if(b)return _.q(b,Object.assign({},a));var c=_.v().resolve(x_b);return c?_.q(gva,null,function(){return _.q(Sl,null,function(){var d,e,g,k,m,n,r,t,u,x,A,C;return void c(a.data(),{onButtonClickCallback:a.onButtonClickCallback,shouldShowIcons:(d=a.shouldShowIcons)==null?void 0:d.call(a),icon:(e=a.icon)==null?void 0:e.call(a),processAllEndpoints:(g=a.processAllEndpoints)==null?void 0:g.call(a),preventDefault:(k=a.preventDefault)==null?void 0:k.call(a),
stopPropagation:(m=a.stopPropagation)==null?void 0:m.call(a),disableButtonRendererClickHandling:(n=a.disableButtonRendererClickHandling)==null?void 0:n.call(a),className:(r=a.className)==null?void 0:r.call(a),buttonOverrides:(t=a.buttonOverrides)==null?void 0:t.call(a),forceModernIconButton:(u=a.forceModernIconButton)==null?void 0:u.call(a),isSubscribe:(x=a.isSubscribe)==null?void 0:x.call(a),alignByText:(A=a.alignByText)==null?void 0:A.call(a),forceDisabled:(C=a.forceDisabled)==null?void 0:C.call(a)})})}):
_.q(_.Wh,null)},"S");
_.iL.idomCompat=!0;var jL=function(){this.topicCounter=0;this.JSC$12665_pubsub=new _.jj;this.keyToTopicMap=new Map;this.keyToSubscriptionIdsMap=new Map};
jL.prototype.publish=function(a,b){return(a=this.keyToTopicMap.get(a))?this.JSC$12665_pubsub.publish(a,b):!1};
jL.prototype.subscribe=function(a,b){var c=this.JSC$12665_pubsub,d=c.subscribe,e=this.keyToTopicMap.get(a);e||(this.topicCounter++,e="topic_"+this.topicCounter.toString(),this.keyToTopicMap.set(a,e));b=d.call(c,e,b);c=this.keyToSubscriptionIdsMap.get(a)||[];c.push(b);this.keyToSubscriptionIdsMap.has(a)||this.keyToSubscriptionIdsMap.set(a,c)};
jL.prototype.unsubscribeByKey=function(a){var b=this.keyToSubscriptionIdsMap.get(a);if(b&&b.length>0){for(var c=0,d=0;d<b.length;d++)this.unsubscribe(b[d])&&c++;b=c===b.length;this.keyToTopicMap.delete(a);this.keyToSubscriptionIdsMap.delete(a);return b}return!1};
jL.prototype.unsubscribe=function(a){return this.JSC$12665_pubsub.unsubscribeByKey(a)};var y_b=function(){jL.apply(this,arguments);this.keyToReplaceableData=new Map};
_.z(y_b,jL);y_b.prototype.getData=function(a){var b=this.keyToReplaceableData.get(a);if(!b)return a;if(!b.hide){var c,d;return(d=(c=b.replacement)==null?void 0:c.data)!=null?d:b.originalData}};
var PYa=new y_b;var XYa=new Map,fv=[],YYa=void 0,UYa=null;var z_b=_.Rr(function(a){var b=a.notification,c=_.Nr(a.useSquareAspectRatio,!1);return _.q(_.qi,{cond:function(){var d,e;return(d=b().responseText)==null?void 0:(e=d.runs)==null?void 0:e.length},
then:function(){var d={};return _.q("div",{class:_.et("yt-mini-game-card-view-model__dismissed-card",(d["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!c()},d["yt-mini-game-card-view-model--dismissed-square-card"]=c,d))},_.q("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.q(_.qi,{cond:function(){return b().responseText.runs[0].text},
then:function(e){return _.q("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:e},e)}}),_.q(_.Hu,{data:function(){return b().buttons}},{buttonRenderer:_.iL,
buttonViewModel:_.Qu})))}})},"T"),$Ya=function(a){var b=new Set;
return function(c,d){if(c){c=Array.isArray(c)?c:[c];for(var e=0;e<c.length;e++){var g=c[e];g&&(g=RYa(c,e,a,b));if(g)for(var k=d,m=_.h(Object.keys(g)),n=m.next();!n.done;n=m.next()){var r=n.value;n=a[r]||EQa;(r=g[r])&&n(r,k)}}}}}({buttonRenderer:function(a,b){var c=_.v().resolve(x_b);
c&&c(a,b)},
buttonViewModel:function(a,b){Ns(_.Qu)({data:a,className:b==null?void 0:b.className,style:b==null?void 0:b.style,useOutlinedIcon:b==null?void 0:b.useOutlinedIcon,buttonOverrides:b==null?void 0:b.buttonOverrides,animatedTextProps:b==null?void 0:b.animatedTextProps,onClick:b==null?void 0:b.onclick})}});var F_b=_.Rr(function(a){a=_.Or(a,{data:{},className:"",useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var b=a.data,c=a.useFullWidth,d=a.isDesktopWeb,e=a.addSearchResultTopMargin,g=function(){return b().layout},k=function(){return b().title},m=function(){return b().genre},n=function(){return b().channelName},r=function(){return b().image},t=function(){return b().colorPalette},u=function(){return b().actionButton},x=function(){return b().overflowButton},A=function(){return b().avatar},
C=function(){var R={};
R=_.et("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(R["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return d()},R));
return _.q("div",{class:R},_.q(A_b,{imageData:r,colorPalette:t}),_.q(kL,{onTap:function(){return b().onTap},
imageData:r,accessibilityText:function(){return b().accessibilityText},
overlayBadgeText:function(){return b().overlayBadgeText},
iconName:function(){return b().iconName},
unplayableInlinePlaybackIconName:function(){return b().unplayableInlinePlaybackIconName},
isDesktopWeb:d}),_.q(_.qi,{cond:function(){return!d()},
then:function(){return _.q(_.Wh,null,_.q(B_b,{layout:g,colorPalette:t,isDesktopWeb:d,overflowButton:x,avatar:A,onTap:function(){return b().onTap},
genre:m,title:k,channelName:n,entityRedesignExperiments:function(){return b().entityRedesignExperiments}}),_.q(lL,{actionButton:u}))}}))},F=function(){var R={};
R=_.et((R["yt-mini-game-card-view-model--search-result-desktop"]=function(){return d()},R["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!d()},R["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return e()},R));
return _.q("div",{class:R},C(),_.q(C_b,{description:function(){return b().description},
isDesktopWeb:d,title:k,genre:m,onTap:function(){return b().onTap},
actionButton:u,overflowButton:x,avatar:A,channelName:n}))},J=function(){var R=function(){var Ba;
return(Ba=b().entityRedesignExperiments)==null?void 0:Ba.changePlayablesLayoutWithCta},da=function(){var Ba,Ca;
return(Ca=((Ba=b().entityRedesignExperiments)==null?void 0:Ba.changePlayablesLayoutWithCtaBelowMetadata)&&d())!=null?Ca:!1},V=function(){var Ba,Ca;
return(Ca=((Ba=b().entityRedesignExperiments)==null?void 0:Ba.changePlayablesLayoutWithContentTypeBadge)&&d())!=null?Ca:!1},fa=function(){var Ba,Ca;
return(Ca=((Ba=b().entityRedesignExperiments)==null?void 0:Ba.enableGameConsoleWithCinematicContainer)&&d())!=null?Ca:!1},aa=function(){var Ba,Ca;
return(Ca=((Ba=b().entityRedesignExperiments)==null?void 0:Ba.enableGameConsoleWithSubtleColor)&&d())!=null?Ca:!1},ma={};
ma=_.et("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(ma["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return R()||da()||V()||fa()||aa()},ma["yt-mini-game-card-view-model--change-layout-with-game-console"]=function(){return fa()||aa()},ma["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return d()},ma["yt-mini-game-card-view-model--portrait-card-desktop-aspect-ratio-experiment"]=function(){var Ba;
return d()&&_.w("enable_playables_reduced_card_count")&&((Ba=b().entityRedesignExperiments)==null?void 0:Ba.enable11ThumbnailOnHomeShelves)},ma["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return d()&&b().width===135},ma["yt-mini-game-card-view-model--thumbnail-square-aspect-ratio"]=function(){var Ba;
return(Ba=b().entityRedesignExperiments)==null?void 0:Ba.enable11ThumbnailOnHomeShelves},ma["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return d()},ma["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=function(){return d()&&b().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},ma["yt-mini-game-card-view-model--big-metadata-font"]=function(){return b().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},ma["yt-mini-game-card-view-model--use-full-width"]=function(){return c()},
ma["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!u()},ma));
return _.q("div",{class:ma},_.q(_.qi,{cond:function(){return R()||da()||V()||fa()||aa()},
then:function(){return _.q(_.Wh,null,_.q(_.qi,{cond:function(){return V()===!0},
then:function(){return _.q(D_b,{imageData:r,colorPalette:t,onTap:function(){return b().onTap},
accessibilityText:function(){return b().accessibilityText},
overlayBadgeText:function(){return b().overlayBadgeText},
iconName:function(){return b().iconName},
unplayableInlinePlaybackIconName:function(){return b().unplayableInlinePlaybackIconName},
contentTypeBadgeText:function(){return b().contentTypeBadgeText},
contentTypeBadgeIconName:function(){return b().contentTypeBadgeIconName},
isDesktopWeb:d})},
else:function(){return _.q(E_b,{entityRedesignExperiments:function(){return b().entityRedesignExperiments},
colorPalette:t,isDesktopWeb:d,onTap:function(){return b().onTap},
accessibilityText:function(){return b().accessibilityText},
overlayBadgeText:function(){return b().overlayBadgeText},
iconName:function(){return b().iconName},
unplayableInlinePlaybackIconName:function(){return b().unplayableInlinePlaybackIconName},
actionButton:u,imageData:r})}}),_.q(B_b,{layout:g,
colorPalette:t,isDesktopWeb:d,overflowButton:x,avatar:A,onTap:function(){return b().onTap},
genre:m,title:k,channelName:n,entityRedesignExperiments:function(){return b().entityRedesignExperiments}}),_.q(_.qi,{cond:function(){return!!R()===!1&&u()},
then:function(){return _.q(lL,{actionButton:u})}}))},
else:function(){return _.q(_.Wh,null,_.q(A_b,{imageData:r,colorPalette:t}),_.q(kL,{onTap:function(){return b().onTap},
imageData:r,accessibilityText:function(){return b().accessibilityText},
overlayBadgeText:function(){return b().overlayBadgeText},
iconName:function(){return b().iconName},
unplayableInlinePlaybackIconName:function(){return b().unplayableInlinePlaybackIconName},
isDesktopWeb:d}),_.q(B_b,{layout:g,colorPalette:t,isDesktopWeb:d,overflowButton:x,avatar:A,onTap:function(){return b().onTap},
genre:m,title:k,channelName:n,entityRedesignExperiments:function(){return b().entityRedesignExperiments}}),_.q(lL,{actionButton:u}))}}))},I=function(){var R={};
R=_.et("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(R["yt-mini-game-card-view-model--square-card-desktop"]=function(){return d()},R["yt-mini-game-card-view-model--use-full-width"]=function(){return c()},R));
return _.q("div",{class:R},_.q(kL,{onTap:function(){return b().onTap},
imageData:r,accessibilityText:function(){return b().accessibilityText},
overlayBadgeText:function(){return b().overlayBadgeText},
iconName:function(){return b().iconName},
unplayableInlinePlaybackIconName:function(){return b().unplayableInlinePlaybackIconName},
isDesktopWeb:d}),_.q(B_b,{layout:g,colorPalette:t,isDesktopWeb:d,overflowButton:x,avatar:A,onTap:function(){return b().onTap},
genre:m,title:k,channelName:n,entityRedesignExperiments:function(){return b().entityRedesignExperiments}}))};
return _.q("mini-game-card-view-model",{class:a.className},_.q(_.ti,null,_.q(_.si,{when:function(){return g()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return J()}),_.q(_.si,{when:function(){return g()==="MINI_APP_LAYOUT_SQUARE"}},function(){return I()}),_.q(_.si,{when:function(){return g()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return F()})))},"U");
F_b.idomCompat=!0;var lL=_.Rr(function(a){var b=_.Nr(a.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.q(_.Hu,{data:a.actionButton},{buttonViewModel:function(c){return _.q("div",{class:b},_.q(_.Qu,{data:c.data}))}})},"V"),G_b=_.Rr(function(a){var b=a.contentTypeBadgeText;
return _.q("div",{class:"yt-mini-game-card-view-model__attribute-badge-container"},_.q("div",{class:"yt-mini-game-card-view-model__badge"},_.q("div",{class:"yt-mini-game-card-view-model__badge-content-type"},_.q(_.qt,{icon:a.iconName,className:"yt-mini-game-card-view-model__icon"}),_.q("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},b))))},"W"),kL=_.Rr(function(a){var b=a.onTap;
var c=a.imageData;var d=a.accessibilityText;var e=a.overlayBadgeText;var g=a.iconName;var k=a.unplayableInlinePlaybackIconName;a=a.isDesktopWeb;return _.q(_.rt,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:b},_.q(_.Ps,{data:c,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(d==null?void 0:d())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.q(H_b,{overlayBadgeText:e,iconName:g,unplayableInlinePlaybackIconName:k,isDesktopWeb:a}))},"X"),H_b=_.Rr(function(a){var b=a.overlayBadgeText;
var c=a.iconName;var d=a.unplayableInlinePlaybackIconName;var e=a.isDesktopWeb;return _.q("div",{class:"yt-mini-game-card-view-model__badge-container"},_.q(_.qi,{cond:c,then:function(g){return _.q("div",{class:"yt-mini-game-card-view-model__badge"},_.q("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.q(_.qt,{icon:g,className:"yt-mini-game-card-view-model__icon"}),_.q("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},b)))}}),_.q(_.qi,{cond:function(){return!c()&&
b()},
then:function(){return _.q("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},b)}}),_.q(_.qi,{cond:function(){return d()&&e()},
then:function(){return _.q("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.q(_.qt,{icon:d,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"Y"),I_b=_.Rr(function(a){var b=a.colorPalette;
var c,d=(c=_.v().resolve(_.Xi(_.Ks)))==null?void 0:c();return _.q("div",{class:"yt-mini-game-card-view-model__background-base",style:_.ot({"background-color":function(){var e="";if(d){var g,k=(g=b().darkColorPalette)==null?void 0:g.section1Color;k&&(e=Eq(k,"1"))}else(g=(k=b().lightColorPalette)==null?void 0:k.section4Color)&&(e=Eq(g,"1"));return e}})})},"Z"),J_b=_.Rr(function(a){var b=a.enableGameConsoleWithCinematicContainer;
var c=a.colorPalette;var d,e=(d=_.v().resolve(_.Xi(_.Ks)))==null?void 0:d();return _.q("div",{class:"yt-mini-game-card-view-model__game-console-wrapper",style:_.ot({color:function(){var g="";if(b()){var k,m=(k=c().vibrantColorPalette)==null?void 0:k.secondaryTitleColor;m&&(g=Eq(m,"1"))}else if(e)(k=(m=c().darkColorPalette)==null?void 0:m.secondaryTitleColor)&&(g=Eq(k,".7"));else{var n;(k=(n=c().lightColorPalette)==null?void 0:n.secondaryTitleColor)&&(g=Eq(k,".7"))}return g}})},_.q(_.qt,{icon:"GAME_CONSOLE_DPAD",
className:"yt-mini-game-card-view-model__game-console-icon",size:24}),_.q(_.qt,{icon:"GAME_CONSOLE_FACE_BUTTONS",className:"yt-mini-game-card-view-model__game-console-icon",size:32}))},"$"),A_b=_.Rr(function(a){var b=a.colorPalette;
var c=a.imageData;var d=function(){return b().vibrantColorPalette?b().vibrantColorPalette.section2Color:b().sectionTwoColor};
return _.q(_.Wh,null,_.q("div",{class:"yt-mini-game-card-view-model__background-base",style:_.ot({"background-color":function(){return Eq(d(),"1")}})}),_.q("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.ot({"background-image":function(){return"url("+c().sources[0].url+")"}})}),_.q("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.ot({background:function(){return"linear-gradient(180deg,\n    "+Eq(d(),".8")+" 0%,\n    "+Eq(d(),".4")+" 25%,\n    "+Eq(b().vibrantColorPalette?b().vibrantColorPalette.section4Color:b().sectionFourColor,".8")+" 100%)"}})}))},"aa"),D_b=_.Rr(function(a){var b=a.imageData;
var c=a.colorPalette;var d=a.onTap;var e=a.accessibilityText;var g=a.overlayBadgeText;var k=a.iconName;var m=a.unplayableInlinePlaybackIconName;var n=a.contentTypeBadgeText;var r=a.contentTypeBadgeIconName;a=a.isDesktopWeb;return _.q("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.q(A_b,{imageData:b,colorPalette:c}),_.q(kL,{onTap:d,imageData:b,accessibilityText:e,overlayBadgeText:g,iconName:k,unplayableInlinePlaybackIconName:m,isDesktopWeb:a}),_.q(G_b,{contentTypeBadgeText:n,
iconName:r}))},"ba"),B_b=_.Rr(function(a){var b=a.layout;
var c=a.colorPalette;var d=a.isDesktopWeb;var e=a.overflowButton;var g=a.avatar;var k=a.onTap;var m=a.title;var n=a.channelName;var r=a.entityRedesignExperiments;var t=a.genre;var u=function(){var A;return b()!=="MINI_APP_LAYOUT_SQUARE"&&((A=c())==null?0:A.textPrimaryColor)?"color: "+Eq(c().textPrimaryColor,".7"):""},x=function(){var A,C,F;
return(r==null?void 0:(A=r())==null?void 0:A.changePlayablesLayoutWithCta)||(r==null?void 0:(C=r())==null?void 0:C.changePlayablesLayoutWithCtaBelowMetadata)||(r==null?void 0:(F=r())==null?void 0:F.changePlayablesLayoutWithContentTypeBadge)};
return _.q("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.q(_.qi,{cond:g,then:function(){return _.q("div",{class:"yt-mini-game-card-view-model__avatar"},_.q(_.Hu,{data:g},{avatarViewModel:_.QK}))}}),_.q(_.rt,{command:k,
className:"yt-mini-game-card-view-model__metadata-details"},_.q("h3",{class:"yt-mini-game-card-view-model__title",title:m},m),_.q(_.qi,{cond:g,then:function(){return _.q("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.q("span",{class:"yt-mini-game-card-view-model__genre",title:n,style:u},n),_.q("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:u},t))},
else:function(){return _.q(_.qi,{cond:x,then:function(){return _.q("span",{class:"yt-mini-game-card-view-model__genre",title:t},t)},
else:function(){return _.q("span",{class:"yt-mini-game-card-view-model__genre",title:t,style:u},t)}})}})),_.q("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.q(_.Hu,{data:e},{buttonViewModel:function(A){var C=A.data;
return _.q(_.Qu,{data:function(){return Object.assign({},C(),{customFontColor:x()&&d()?void 0:C().customFontColor})}})}})))},"ca"),E_b=_.Rr(function(a){var b=a.entityRedesignExperiments;
var c=a.colorPalette;var d=a.isDesktopWeb;var e=a.onTap;var g=a.accessibilityText;var k=a.overlayBadgeText;var m=a.iconName;var n=a.unplayableInlinePlaybackIconName;var r=a.actionButton;var t=a.imageData;var u=function(){var C;return b==null?void 0:(C=b())==null?void 0:C.changePlayablesLayoutWithCta},x=function(){var C;
return b==null?void 0:(C=b())==null?void 0:C.enableGameConsoleWithCinematicContainer},A=function(){var C;
return b==null?void 0:(C=b())==null?void 0:C.enableGameConsoleWithSubtleColor};
return _.q("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.q(_.qi,{cond:A,then:function(){return _.q(I_b,{colorPalette:c})},
else:function(){return _.q(A_b,{imageData:t,colorPalette:c})}}),_.q(kL,{onTap:e,
imageData:t,accessibilityText:g,overlayBadgeText:k,iconName:m,unplayableInlinePlaybackIconName:n,isDesktopWeb:d}),_.q(_.qi,{cond:function(){return(u==null?void 0:u())&&(r==null?void 0:r())},
then:function(){return _.q(lL,{actionButton:r})}}),_.q(_.qi,{cond:function(){return x()||A()},
then:function(){return _.q(J_b,{colorPalette:c,enableGameConsoleWithCinematicContainer:function(){return(x==null?void 0:x())||!1}})}}))},"da"),C_b=_.Rr(function(a){var b=a.description;
var c=a.isDesktopWeb;var d=a.title;var e=a.genre;var g=a.onTap;var k=a.actionButton;var m=a.overflowButton;var n=a.avatar;a=a.channelName;var r={};r=_.et("yt-mini-game-card-view-model--search-result-metadata-wrapper",(r["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=c,r["yt-mini-game-card-view-model--show-unplayable-on-hover"]=c,r["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!c()},r));
var t={};t=_.et("yt-mini-game-card-view-model__search-result-info-row",(t["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!c()},t));
return _.q("div",{class:r},_.q("div",{class:t},_.q(_.rt,{command:g,className:"yt-mini-game-card-view-model__metadata-details"},_.q("h3",{class:"yt-mini-game-card-view-model__title",title:d},d),_.q("span",{class:"yt-mini-game-card-view-model__genre",title:e},e)),_.q(lL,{actionButton:k,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.q("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.q(_.Hu,{data:m},{buttonViewModel:_.Qu}))),_.q("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.q("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.q("div",{class:"yt-mini-game-card-view-model__avatar"},_.q(_.Hu,{data:n},{avatarViewModel:function(u){var x=u.data;return _.q(_.QK,{data:function(){return Object.assign({},x(),{avatarImageSize:c()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.q(_.rt,{command:g,
className:"yt-mini-game-card-view-model__description"},_.q("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},a)),_.q(_.rt,{command:g,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.q("div",null)))),_.q(_.qi,{cond:c,then:function(){return _.q(_.rt,{command:g,className:"yt-mini-game-card-view-model__description"},b)}}))},"ea");var K_b={isAdsVideo:!0},L_b={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},M_b={showPlayerControls:!1,videoPreviewDurationMs:15E3},r0a={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.w("web_shorts_imp_fullwidth_killswitch")},N_b={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:1,cropPlayerToFillThumbnailHorizontally:!0};var O_b=function(){var a=_.P.apply(this,arguments)||this;a.isSearch=!1;a.isRichGrid=!1;return a};
_.z(O_b,_.P);_.f=O_b.prototype;_.f.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.f.dismissibleItemOnYtServiceRequestSent=function(a,b){b.actions&&this.dismissibleItemProcessActions(a,b.actions)};
_.f.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.f.attached=function(){this.updateInlinePreviewHoverListeners()};
_.f.detached=function(){this.clearInlinePreviewHoverListeners()};
_.f.dataChanged=function(){this.dismissibleItemReset();this.updateInlinePreviewHoverListeners()};
_.f.dismissibleItemProcessActions=function(a,b){for(var c=0;c<b.length;c++){var d=b[c];_.y(d,_.EE)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.y(d,_.EE)),a.stopPropagation())}};
_.f.dismissibleItemHandleReplaceEnclosingAction=function(a){this.dismissedRenderer=a.item;this.isDismissed=!0};
_.f.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.thumbnailWrapper&&(this.JSC$12701_inlinePreviewHoverListener=dv({mediaRenderer:this,lockupElement:this.miniGameCardViewModel,thumbnailElement:this.thumbnailWrapper,videoPreviewOpts:N_b}))};
_.f.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$12701_inlinePreviewHoverListener)==null||uv(a)};
_.f.experimentalPropertiesChanged=function(){this.ytIdomTemplatingBehavior.debounceRender()};
_.f.renderIdom=function(){if(this.data)if(this.dismissedRenderer&&this.dismissedRenderer.notificationMultiActionRenderer){var a=this.dismissedRenderer.notificationMultiActionRenderer,b=this.data.layout==="MINI_APP_LAYOUT_SQUARE";b=b===void 0?!1:b;_.w("kevlar_enable_cow_dismissed_mini_game_card")?Ns(z_b)({notification:a,useSquareAspectRatio:b}):aZa(a,b)}else Ns(F_b)({data:this.data,addSearchResultTopMargin:this.isSearch,useFullWidth:this.isRichGrid,isDesktopWeb:!0}),this.updateInlinePreviewHoverListeners()};
var mL=O_b;mL.prototype.experimentalPropertiesChanged=mL.prototype.experimentalPropertiesChanged;mL.prototype.dataChanged=mL.prototype.dataChanged;mL.prototype.dismissibleItemOnRequestSent=mL.prototype.dismissibleItemOnRequestSent;mL.prototype.dismissibleItemOnYtServiceRequestSent=mL.prototype.dismissibleItemOnYtServiceRequestSent;_.U([_.H(ZNb),_.W("design:type",Object)],mL.prototype,"ytIdomTemplatingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],mL.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],mL.prototype,"isSearch",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],mL.prototype,"isDismissed",void 0);_.U([_.O(),_.W("design:type",Object)],mL.prototype,"dismissedRenderer",void 0);_.U([_.ir(".yt-mini-game-card-view-model__thumbnail-wrapper"),_.W("design:type",HTMLElement)],mL.prototype,"thumbnailWrapper",void 0);
_.U([_.ir("mini-game-card-view-model"),_.W("design:type",HTMLElement)],mL.prototype,"miniGameCardViewModel",void 0);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Nt]),_.W("design:returntype")],mL.prototype,"dismissibleItemOnYtServiceRequestSent",null);_.U([_.M("yt-service-request-sent-button-renderer"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],mL.prototype,"dismissibleItemOnRequestSent",null);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mL.prototype,"dataChanged",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],mL.prototype,"isRichGrid",void 0);_.U([_.N("data.*","dismissedRenderer.*","isSearch","isRichGrid"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mL.prototype,"experimentalPropertiesChanged",null);
mL=_.U([_.wr({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],mL);
_.S(mL,"ytd-mini-game-card-view-model",function(){if(v_b!==void 0)return v_b;var a=document.createElement("template");_.B(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-game-card-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return v_b=a},{mode:_.as("kevlar_poly_si_batch_j081")?1:2});var P_b;var Q_b;var R_b=function(){return _.Vm.apply(this,arguments)||this};
_.z(R_b,_.Vm);R_b.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
R_b.prototype.getContinuationUrl=function(a){var b={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(b.itct=this.data.clickTrackingParams);return _.Qi(a,b)};
var S_b=R_b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],S_b.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],S_b.prototype,"data",void 0);S_b=_.U([_.wr({is:"yt-reload-continuation",noInjection:!0})],S_b);var T_b;var U_b;var V_b=function(){var a=_.P.apply(this,arguments)||this;a.notificationData={};return a};
_.z(V_b,_.P);_.f=V_b.prototype;_.f.isMenuExpanded=function(a){return a&&a.length<=1?"undefined":"false"};
_.f.dataChanged_=function(){this.selected=void 0;var a=this.computeSelectedIndex_(this.data);a>=0&&(this.selected=a);a=this.data&&this.data.length>1;_.br(this.hostElement,"has-items",a);_.E(this.hostElement).querySelector("#label").tabIndex=a?0:-1};
_.f.onDropdownOpen=function(){var a=_.En();if(this.parentTrackingParams&&this.data){var b=_.ps(this.parentTrackingParams);this.data.forEach(function(c){a&&b&&c.trackingParams&&(c=_.ps(c.trackingParams),_.To(a,b,c),_.Vo(a,[c]))})}else this.parentTrackingParams||_.Dl(new _.qj("No parent tracking params passed in for yt-dropdown-menu."))};
_.f.hasNotification=function(a){var b;if(a.targetId&&((b=this.notificationData)==null?0:b.targetId)){var c;return a.targetId===((c=this.notificationData)==null?void 0:c.targetId)}};
_.f.computeSelectedIndex_=function(a){if(a)for(var b=0,c=a.length;b<c;b++)if(a[b].selected)return b;return-1};
_.f.computeLabel_=function(a){return this.data&&a!=void 0?this.data[a].title:""};
_.f.computeShowIcon_=function(a,b){return!b&&!!a};
_.f.computeVerticalOffset_=function(a){return a?36:0};
_.f.computeEndpoint_=function(a){return a.endpoint||a.navigationEndpoint};
_.f.onLabelClick_=function(a){this.data&&this.data.length<=1?a.stopPropagation():this.menuExpanded="true"};
_.f.onIronActivate_=function(a){a=a.detail.item;var b=_.E(this.hostElement).querySelector("#repeat").itemForElement(a);if(b&&b.trackingParams){var c=_.En(),d=_.ps(b.trackingParams);c&&_.Xo(c,d)}if(b&&b.serviceEndpoint)_.w("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(b.serviceEndpoint):_.oo(this.hostElement,[b.serviceEndpoint]),_.io(this.hostElement,"yt-playlist-reloading");else a:{if((b=a.querySelector("yt-supported-renderers"))&&(b=
b.rendererElement)&&b.is=="yt-reload-continuation"){b.trigger();break a}(a=a.querySelector("yt-reload-continuation"))&&a.trigger()}};
_.f.onTap_=function(a){a.preventDefault()};
_.f.onItemTap_=function(a){this.ytEndpointBehavior.onEndpointTap_(a)};
_.f.onLinkFocus_=function(a){try{var b=a.target}catch(d){}if(b){var c=b.querySelector("tp-yt-paper-item");c&&_.Fr(this,"focus",function(){c.focus()})}};
_.f.onMenuClose_=function(){this.menuExpanded="false"};
_.f.isLabelIconActive_=function(a){return a==="true"};
_.f.computeHasSubtitle_=function(a){return!!a};
_.f.computeHrefForItem_=function(a){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(a))};
_.f.updateSelectedFromBinding=function(a){this.selected=a.detail.value};
var nL=V_b;nL.prototype.onMenuClose_=nL.prototype.onMenuClose_;nL.prototype.onTap_=nL.prototype.onTap_;nL.prototype.onIronActivate_=nL.prototype.onIronActivate_;nL.prototype.onDropdownOpen=nL.prototype.onDropdownOpen;nL.prototype.dataChanged_=nL.prototype.dataChanged_;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],nL.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.qH.YtEndpointBehavior),_.W("design:type",Object)],nL.prototype,"ytEndpointBehavior",void 0);
_.U([_.O(),_.W("design:type",Array)],nL.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],nL.prototype,"parentTrackingParams",void 0);_.U([_.O(),_.W("design:type",Object)],nL.prototype,"selected",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],nL.prototype,"useLabel",void 0);_.U([_.O(),_.W("design:type",String)],nL.prototype,"icon",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],nL.prototype,"iconLabel",void 0);
_.U([_.O(),_.W("design:type",String)],nL.prototype,"ariaLabel",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],nL.prototype,"disabled",void 0);_.U([_.O({computed:"isMenuExpanded(data)"}),_.W("design:type",String)],nL.prototype,"menuExpanded",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],nL.prototype,"closeOnActivate",void 0);_.U([_.O({reflectToAttribute:!0,value:_.w("web_modern_buttons")}),_.W("design:type",Boolean)],nL.prototype,"modernButtons",void 0);
_.U([_.O(),_.W("design:type",Object)],nL.prototype,"notificationData",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nL.prototype,"dataChanged_",null);_.U([_.M("paper-dropdown-open"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],nL.prototype,"onDropdownOpen",null);
_.U([_.M("iron-activate"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],nL.prototype,"onIronActivate_",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],nL.prototype,"onTap_",null);_.U([_.M("iron-overlay-closed"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],nL.prototype,"onMenuClose_",null);
nL=_.U([_.wr({is:"yt-dropdown-menu",disableElementRegistration:!0})],nL);
_.S(nL,"yt-dropdown-menu",function(){if(U_b===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[ariaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;T_b===void 0&&(T_b=document.createElement("template"));var d=T_b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);U_b=a}a=U_b;return a},{mode:2});var oL=function(){var a=_.P.apply(this,arguments)||this;a.hasNotification=!1;return a};
_.z(oL,_.P);oL.prototype.computeId=function(a){return a};
oL.prototype.computeHorizontalAlign=function(a){return a?"right":"left"};
oL.prototype.computeAccessibilityLabel=function(a){var b,c;return((b=a.accessibility)==null?void 0:(c=b.accessibilityData)==null?void 0:c.label)||null};
oL.prototype.notificationDataChanged=function(){var a;this.hasNotification=!!this.notificationData&&!((a=this.data)==null?0:a.icon)};
var pL=oL;pL.prototype.notificationDataChanged=pL.prototype.notificationDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],pL.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.NG.YtLiveChatTooltipTargetingBehavior),_.W("design:type",Object)],pL.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],pL.prototype,"data",void 0);
_.U([_.O({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.W("design:type",String)],pL.prototype,"id",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],pL.prototype,"isRightAligned",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],pL.prototype,"disabled",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],pL.prototype,"closeOnActivate",void 0);_.U([_.O(),_.W("design:type",Object)],pL.prototype,"notificationData",void 0);
_.U([_.O(),_.W("design:type",Object)],pL.prototype,"hasNotification",void 0);_.U([_.N("notificationData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pL.prototype,"notificationDataChanged",null);pL=_.U([_.wr({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],pL);
_.S(pL,"yt-sort-filter-sub-menu-renderer",function(){if(Q_b===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;P_b===void 0&&(P_b=document.createElement("template"));var d=P_b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Q_b=a}a=Q_b;return a},{mode:2});_.Zl(cZa);
var W_b=_.Rr(function(a){var b=a.children;var c=a.className;var d=a.style;var e=a.role;var g=a.ariaSelected;var k=a.ariaLabel;var m=a.ariaHidden;var n=a.ariaLabelledby;var r=a.ariaDescribedby;var t=a.command;var u=a.elementsCommand;var x=a.forceNewState;var A=a.tabIdentifier;var C=a.target;var F=a.tabIndex;var J=a.stopPropagation;a=_.ph(function(){var I=_.Fs({innertubeCommand:t==null?void 0:t(),elementsCommand:u==null?void 0:u(),forceNewState:x==null?void 0:x(),stopPropagation:(J==null?void 0:J())!==
!1});I||(I={});I["aria-hidden$"]=m==null?void 0:m();var R;I.tabindex$=(R=F==null?void 0:F())!=null?R:I.tabindex$;var da;I["force-new-state$"]=(da=x==null?void 0:x())!=null?da:I["force-new-state$"];var V;I.role$=(V=e==null?void 0:e())!=null?V:I.role$;var fa;I["aria-hidden$"]=(fa=m==null?void 0:m())!=null?fa:I["aria-hidden$"];var aa;I.target$=(aa=C==null?void 0:C())!=null?aa:I.target$;return I},void 0,"SU0Mnc");
return _.q(_.rt,{aTagConfig:a,className:c,style:d,ariaLabel:k,ariaLabelledby:n,ariaDescribedby:r,ariaSelected:g,tabIdentifier:A},b)},"fa");var dZa=_.w("kevlar_modern_sd")?"yt-spec-place-data-view-model-shape__thumbnail-round":"",X_b=_.jt(eZa);_.Zl(eZa);_.Ts(X_b,"place-data-view-model",{props:{data:_.VG}});var Y_b=new _.jB("INLINE_PLAYBACK_HOOK_TOKEN");var rZa=function(a){this.setActiveSlideIndex=a;this.jobIds=[];this.isSlideshowPlaying=!1},tZa=function(a){if(a.isSlideshowPlaying){a.isSlideshowPlaying=!1;
for(var b=a.jobIds,c=0,d=b.length;c<d;c++)_.zk.cancelJob(b[c]);a.jobIds.length=0}},sZa=function(a,b){a.isSlideshowPlaying||(a.isSlideshowPlaying=!0,Z_b(a),$_b(a,b,0))},Z_b=function(a){_.Ys(_.zk,function(){a.setActiveSlideIndex(0)},1)},$_b=function(a,b,c){a.jobIds.push(_.Ys(_.zk,function(){var d=c<b-1?c+1:0;
a.setActiveSlideIndex(d);$_b(a,b,d)},1800))};var lZa=new _.jB("IMAGE_ON_LOAD_HANDLER_TOKEN");var a0b=_.Rr(function(a){return _.q("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.q(_.qi,{cond:function(){var b;return(b=a.data())==null?void 0:b.thumbnail},
then:function(b){return _.q(_.Ps,{data:b,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ga");_.qL=_.Rr(function(a){var b=a.data;var c=a.lockupExperiments;a={};return _.q("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.q("div",{class:_.et("ytThumbnailOverlayButtonViewModelButton",(a.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var d;return c&&((d=c())==null?void 0:d.useLegacySizedIconButton)},a))},_.q(_.Hu,{data:function(){return b().overlayButton}},{buttonViewModel:function(d){return _.q(_.Qu,{data:d.data,
buttonOverrides:function(){var e;return c&&((e=c())==null?0:e.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"ha");
_.qL.idomCompat=!0;var b0b=_.Rr(function(a){var b=_.lt(function(c){c.preventDefault();return!1});
return _.q("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":b},_.q(_.Hu,{data:function(){return a.data().buttons}},{toggleButtonViewModel:function(c){return _.q("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.q(_.Ku,{data:c.data}))}}))},"ia");
b0b.idomCompat=!0;var c0b=_.Rr(function(a){var b=function(){var c;return((c=_.y(a.data().rendererContext,_.$u))==null?void 0:c.label)||""};
return _.q("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.q(_.qi,{cond:function(){return a.data().image},
then:function(){return _.q("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.q(_.Ps,{data:function(){return a.data().image},
alt:b}))}}),_.q(_.qi,{cond:function(){return a.data().text},
then:function(){return _.q("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return a.data().text})}}))},"ja");var mZa=_.Du({thumbnailOverlayTitleViewModel:UZb,thumbnailOverlayBadgeViewModel:WZb,thumbnailBottomOverlayViewModel:IZb,thumbnailOverlayFullViewModel:c0b,thumbnailOverlayButtonViewModel:_.qL}),nZa=_.Du({thumbnailHoverOverlayViewModel:KZb,thumbnailHoverOverlayToggleActionsViewModel:b0b}),oZa=_.Du({animatedThumbnailOverlayViewModel:a0b});_.Zl(pZa);var d0b=_.Rr(function(a){var b=[],c=function(){var u,x;return Yt((u=a.width)==null?void 0:u.call(a),(x=a.height)==null?void 0:x.call(a))},d=_.v().resolve(_.Xi(lZa)),e=_.Pl(function(){b.push("elRef.value set");
var u;(u=a.playbackRef)==null||u.call(a,{thumbnailElRef:e,thumbnail:a.data().image,thumbnailOverlays:a.data().overlays,thumbnailSize:c()})});
_.wi(function(){b.push("onInit");_.zh(function(){b.push("onCleanup")})});
var g=_.Ht(gZa),k=function(){var u,x;return(x=(u=a.aspectRatio)==null?void 0:u.call(a))!=null?x:0},m=function(){return(a.data().image?_.$Qa(a.data().image):k())<=1&&k()===0},n=function(){return m()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},r=function(){e.value||_.Dl(new _.qj("Thumbnail elRef.value is null",b.join("\n")));
d&&e.value&&d(e.value)},t={};
return _.q("yt-thumbnail-view-model",{class:_.et("yt-thumbnail-view-model",a.className,function(){return qZa(k())},function(){var u,x;
a:{var A=c(),C=(u=a.disableRounding)==null?void 0:u.call(a);u=(x=a.isClip)==null?void 0:x.call(a);if(!C&&!u)switch(A){case "large":x="yt-thumbnail-view-model--large";break a;case "small":x="yt-thumbnail-view-model--small";break a;default:x="yt-thumbnail-view-model--medium";break a}x=void 0}return x},(t["yt-thumbnail-view-model--cinematic"]=m,t)),
style:_.ot({"background-color":function(){var u,x=m()?(u=a.data().backgroundColor)==null?void 0:u.lightTheme:void 0;return x?Eq(x,"1"):void 0}}),
el:e},_.q(_.qi,{cond:m,then:function(){return _.q("div",{class:"yt-thumbnail-view-model__blurred-image"},_.q(_.Ps,{data:function(){return a.data().image},
alt:"",contentMode:n,targetWidth:a.width,onload:r}))}}),_.q("div",{class:"yt-thumbnail-view-model__image"},_.q(_.Ps,{data:function(){return a.data().image},
alt:"",contentMode:n,targetWidth:a.width,onload:r}),null),_.q(_.Hu,{data:function(){return a.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:VZb,thumbnailOverlayBadgeViewModel:function(u){return _.q(WZb,{data:u.data,thumbnailSize:c,isClip:a.isClip})},
thumbnailBottomOverlayViewModel:IZb,thumbnailOverlayFullViewModel:c0b,thumbnailOverlayButtonViewModel:function(u){return _.q(_.qL,{data:u.data,lockupExperiments:a.lockupExperiments})}}),_.q(_.qi,{cond:a.hovered,
then:function(){return _.q(_.Hu,{data:function(){return a.data().overlays},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(u){return _.q(LZb,{data:u.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:b0b})}}),_.q(_.qi,{cond:function(){var u;
return((u=a.hovered)==null?void 0:u.call(a))&&g()},
then:function(){return _.q(_.Hu,{data:function(){return a.data().overlays},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:a0b})}}),_.q(_.qi,{cond:a.isClip,
then:function(){return jZa()}}))},"ka"),e0b=_.w("web_enable_sink_lockups_batch")?d0b:pZa,rL=_.w("web_enable_sink_lockups_batch")?d0b:_.jt(e0b,{callbacks:{playbackRef:!0}});
d0b.idomCompat={callbacks:{playbackRef:!0}};var uZa=_.Du({thumbnailViewModel:e0b});_.Zl(vZa);var f0b=_.Rr(function(a){var b=_.h(_.ih(-1,void 0,"GEkecf")),c=b.next().value,d=b.next().value;_.wi(function(){var e=new rZa(d);sZa(e,a.data().thumbnails.length);_.zh(function(){tZa(e)})});
return _.q("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.q(_.Hu,{data:function(){return a.data().thumbnails}},{thumbnailViewModel:function(e,g){return _.q("div",{class:function(){var k=!a.data().primaryThumbnail,m=g(),n=c(),r=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
k&&m===0&&r.push("yt-collection-thumbnail-slideshow--first-slide");m<=n&&r.push("yt-collection-thumbnail-slideshow--show-slide");return r.join(" ")}},_.q(rL,{data:e.data,
disableRounding:a.disableRounding}))}}))},"la"),AZa=_.w("web_enable_sink_lockups_batch")?f0b:vZa,g0b=_.w("web_enable_sink_lockups_batch")?f0b:_.jt(vZa);
f0b.idomCompat=!0;var wZa=new _.jB("DWELL_DETECTOR_REGISTRY_TOKEN");var zZa=_.Du({thumbnailViewModel:e0b});_.Zl(BZa);var i0b=_.Rr(function(a){var b=yZa(a.triggeringElement),c=function(){return!!a.data().primaryThumbnail};
return _.q("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.q(h0b,{stackEnabled:c,thumbnailSize:function(){var d,e;return Yt((d=a.width)==null?void 0:d.call(a),(e=a.height)==null?void 0:e.call(a))},
doubleStack:a.doubleStack,stackColor:function(){return a.data().stackColor}},_.q("div",null,_.q(_.Hu,{data:function(){return a.data().primaryThumbnail}},{thumbnailViewModel:function(d){var e={};
return _.q(rL,{data:d.data,width:a.width,height:a.height,aspectRatio:a.aspectRatio,disableRounding:a.disableRounding,className:_.et((e["yt-collection-thumbnail-view-model--has-stacks"]=c,e)),hovered:a.hovered,playbackRef:a.playbackRef})}}),_.q(_.qi,{cond:function(){var d;
return b()&&((d=a.data().thumbnails)==null?void 0:d.length)},
then:function(){return _.q("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.q(g0b,{data:a.data,disableRounding:function(){return!c()}}))}}))))},"ma"),j0b=_.w("web_enable_sink_lockups_batch")?i0b:_.jt(BZa,{callbacks:{playbackRef:!0}});
i0b.idomCompat={callbacks:{playbackRef:!0}};
var h0b=_.Rr(function(a){var b=a.children;var c=a.stackEnabled;var d=a.thumbnailSize;var e=a.doubleStack;var g=a.stackColor;var k,m=(k=_.v().resolve(_.Xi(_.Ks)))==null?void 0:k();return _.q(_.qi,{cond:c,then:function(){return _.q(TYb,{data:function(){var n,r;return{experimentEnabled:!0,thumbnailSize:d(),doubleStack:e==null?void 0:e(),color:m?g==null?void 0:(n=g())==null?void 0:n.darkTheme:g==null?void 0:(r=g())==null?void 0:r.lightTheme,enableResponsiveMode:!1}}},b)},
else:function(){return b}})},"na");var k0b=new _.jB("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var tL;_.sL={calledOnce:!0,state:"visible"};tL={calledOnce:!0,state:"hidden"};_.uL=_.Rr(function(a){var b=a.data;var c=a.customCommandResolver;var d=a.className;var e=a.delayedClassName;a=a.animationEntityKey;var g=_.Pl(),k=_.Nr(a,""),m=_.tu(rSa,k),n=function(){var aa,ma;return(ma=(aa=m())==null?void 0:aa.value)!=null?ma:!1},r=function(){_.Mr(_.wu("booleanEntity",k(),{key:k(),
value:!0}));I=void 0};
a=_.h(_.nt(n));var t=a.next().value,u=a.next().value;a=_.h(_.nt(n));var x=a.next().value,A=a.next().value;a=_.h(_.nt(function(){var aa;return n()?(aa=b().styleTransitionConfig)==null?void 0:aa.destinationStyle:void 0}));
var C=a.next().value,F=a.next().value,J=function(){var aa=Object.assign({},b(),C()&&{style:C()}),ma,Ba,Ca=aa.label,ya=(ma=aa.interaction)==null?void 0:(Ba=ma.accessibility)==null?void 0:Ba.label;ma=aa.iconImage?aa.label&&aa.label.content?aa.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:Ca,accessibilityLabel:ya,style:FZa(aa.style),type:GZa(aa.style),state:"active",size:EZa(aa.size),iconPosition:ma,disabled:!1,aTagConfig:DZa(aa,c)}},I;
_.Yl(g,{visibilityCallback:function(aa){var ma,Ba=(ma=b().interaction)==null?void 0:ma.onFirstVisible;aa&&Ba&&_.Gs(Ba)},
showOption:_.sL});var R=function(){return wt(J(),!!b().iconImage)};
d=_.et(function(){return"ytwAdButtonViewModelHost"},function(){return b().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var aa=!!b().delayedAppearanceConfig,ma=t();
return aa?ma?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var aa=!!b().delayedAppearanceConfig,ma=x();
return aa?ma?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!b().delayedAppearanceConfig||t()?e==null?void 0:e():""},d!=null?d:"");
var da=function(){var aa,ma=(aa=b().delayedAppearanceConfig)==null?void 0:aa.delayedInvisibleSeconds;ma&&(I=_.zu(_.zk,function(){u(!0);V()},ma*1E3))},V=function(){var aa,ma=(aa=b().delayedAppearanceConfig)==null?void 0:aa.delayedVisibleSeconds;
ma&&(I=_.zu(_.zk,function(){A(!0);fa()},ma*1E3))},fa=function(){var aa,ma=(aa=b().styleTransitionConfig)==null?void 0:aa.styleTransitionSeconds,Ba,Ca=(Ba=b().styleTransitionConfig)==null?void 0:Ba.destinationStyle;
ma&&Ca?I=_.zu(_.zk,function(){F(Ca);r()},ma*1E3):r()};
_.wi(function(){var aa;((aa=b().delayedAppearanceConfig)==null?0:aa.transitionDurationSeconds)&&g.value.style.setProperty("transition-duration",b().delayedAppearanceConfig.transitionDurationSeconds+"s");da()});
_.zh(function(){I&&_.zk.cancelJob(I)});
return _.q("ad-button-view-model",{class:d,el:g},_.q(_.qi,{cond:J,then:function(){return _.q(vv,{data:J,icon:function(){return _.q(_.qi,{cond:function(){return b().iconImage},
then:function(aa){return _.q(_.Ps,{data:aa,alt:"",targetWidth:R,targetHeight:R,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"oa");var l0b=_.Rr(function(a){var b=a.data;a=_.Pl();_.Yl(a,{visibilityCallback:function(c){var d,e=(d=b().interaction)==null?void 0:d.onFirstVisible;c&&e&&_.Gs(e)},
showOption:_.sL});return _.q("ad-button-group-view-model",{class:function(){return"ytwAdButtonGroupViewModelHost"},
el:a},_.q("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.q(_.Hu,{data:function(){return b().secondaryAdButton}},{adButtonViewModel:function(c){return _.q(_.uL,{data:c.data})}})),_.q("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.q(_.Hu,{data:function(){return b().primaryAdButton}},{adButtonViewModel:function(c){return _.q(_.uL,{data:c.data})}})))},"pa");var m0b=_.Rr(function(a){var b=function(){var c;return((c=a.data())==null?void 0:c.answers)||[]};
return _.q("yt-survey-icons",{class:"ytSurveyIconsHost"},_.q("div",{class:"ytSurveyIconsHeader"},_.q("div",{class:"ytSurveyIconsTitle"},function(){var c;return(c=a.data())==null?void 0:c.text}),_.q("div",null,_.q(vv,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var c;(c=a.onDismiss)==null||c.call(a)}}},
iconName:"DISMISSAL"}))),_.q("div",null,_.q("div",{class:"ytSurveyIconsAnswers"},_.q(_.ri,{each:function(){return b()},
keyBy:"INDEX"},function(c,d){return _.q("div",null,_.q(vv,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var e;(e=a.onSelect)==null||e.call(a,c(),d)}}},
icon:function(){return _.q(_.qt,{icon:function(){var e,g;return(e=c())==null?void 0:(g=e.icon)==null?void 0:g.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.q("div",{class:"ytSurveyIconsAnswersText"},_.q("div",null,function(){return b().length?b()[0].text:""}),_.q("div",null,function(){return b().length?b()[b().length-1].text:""}))))},"qa");var n0b=_.Rr(function(a){var b=_.h(_.ih(!1,void 0,"s8HkOb")),c=b.next().value,d=b.next().value,e=_.tu(FXa,function(){var m;return(m=a.data().keys)==null?void 0:m.surveyEntityKey}),g=_.tu(GXa,function(){var m;
return(m=a.data().keys)==null?void 0:m.surveyStateEntityKey});
_.Ol("ytd-slimline-survey-show-action",function(){d(!1)});
var k=function(){var m,n;var r=(m=g())==null?void 0:(n=m.questionStack)==null?void 0:n[0];if(r!==void 0){var t,u;return(t=e())==null?void 0:(u=t.questions)==null?void 0:u[r]}};
b={};return _.q("yt-slimline-survey-view-model",{class:_.et("ytSlimlineSurveyViewModelHost",(b.ytSlimlineSurveyViewModelCollapsed=function(){return c()},b))},_.q("div",{class:"ytSlimlineSurveyViewModelContainer"},_.q(_.qi,{cond:function(){var m;
return((m=k())==null?void 0:m.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.q(m0b,{data:function(){return k()},
onSelect:function(m,n){var r,t;return _.l(function(u){d(!0);if(t=(r=a.data())==null?void 0:r.onSelectRating)_.Gs(t),_.Mr(UJb(n));_.ue(u)})},
onDismiss:function(){d(!0)}})}})))},"ra");var o0b=_.Rr(function(a){return _.q("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.q(_.Hu,{data:function(){var b;return(b=a.data())==null?void 0:b.attachments}},{flexibleActionsViewModel:function(b){return _.q("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.q(PXb,{data:b.data,
layout:function(){var c;return((c=a.lockupStyle())==null?void 0:c.arrangement)===1?0:1},
justifyContentOverride:function(){var c;return((c=a.lockupStyle())==null?void 0:c.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(b){return _.q("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.q(n0b,{data:b.data}))},
expandableMetadataViewModel:function(b){b=b.data;var c;return _.q("div",{class:"ytLockupAttachmentsViewModelAttachment"},(c=_.v().resolve(_.Xi(k0b)))==null?void 0:c({data:b}))},
adButtonGroupViewModel:function(b){return _.q("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.q(l0b,{data:b.data}))}}))},"sa");var MZa=_.$i("rich_grid_min_item_width",310),KZa=_.$i("rich_grid_max_item_width",500);var YZa=_.Rr(function(a){var b=a.data;return _.q("br-nz-badge-shape",{class:_.et(function(){return UZa(b().brNzRatingBadgeType)}),
role:function(){return b().accessibilityText?"img":void 0},
"aria-label":function(){return b().accessibilityText}},function(){var c;
return(c=b())==null?void 0:c.text})},"ta");_.Zl(ZZa);var p0b,u1a;p0b=_.Rr(function(a){var b=function(){var c=a.data(),d,e;return c?XZa(c,!((d=a.workaroundShortsIsThumbnailBadge)==null||!d.call(a)),(e=a.modern)==null?void 0:e.call(a)):void 0};
return _.q("yt-badge-view-model",{class:_.et("yt-badge-view-model-wiz",a.class)},_.q(_.ti,null,_.q(_.si,{when:function(){var c;return!((c=b())==null||!c.brNzRatingBadgeType)}},function(){return _.q(YZa,{data:function(){return b()}})}),_.q(_.si,{when:function(){return!!b()&&!b().brNzRatingBadgeType}},function(){return _.q(_.iv,{data:function(){return b()}})})))},"ua");
u1a=_.w("web_enable_sink_lockups_batch")?p0b:ZZa;_.vL=_.w("web_enable_sink_lockups_batch")?p0b:_.jt(ZZa);p0b.idomCompat=!0;var a_a,$Za;a_a=16/9;$Za=2/3;_.wL=_.Rr(function(a){var b=a.data;var c=a.className;var d=a.imageSizeConfig;var e=a.notifyOnLoaded;a=_.Pl();var g=function(){return b().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},k=function(){var t;
return _.Xu((t=b())==null?void 0:t.rendererContext)},m={};
m=(m["yt-content-preview-image-view-model-wiz"]=!0,m["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return g()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},m["yt-content-preview-image-view-model-wiz--tappable"]=function(){return k()},m);
var n=function(){var t,u;return(u=(t=_.y(b().rendererContext,_.$u))==null?void 0:t.label)!=null?u:""},r=function(){return c_a(b())};
_.Zu(a,function(){var t;return(t=b())==null?void 0:t.rendererContext});
return _.q("yt-content-preview-image-view-model",{el:a,role:function(){return k()?"link":void 0},
tabindex:function(){return k()?0:void 0},
class:_.et(c,m,function(){var t=g();var u=d==null?void 0:d();t=t==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||t==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||t==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||t==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(u==null?void 0:u.size)!=null&&u.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(u==null?void 0:u.size)!=null&&u.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return t}),
style:function(){return b_a(g(),b().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",d==null?void 0:d(),d_a(r()),b().layoutWidth,b().layoutHeight)}},_.q(_.qi,{cond:r,
then:function(t){return _.q(_.Ps,{data:t,alt:n,"data-disabled$":function(){return!n()},
notifyOnLoaded:e})}}),_.q(_.Hu,{data:function(){var t;
return(t=b())==null?void 0:t.overlays}},{thumbnailHoverOverlayViewModel:LZb,
thumbnailOverlayButtonViewModel:_.qL}))},"va");
_.wL.idomCompat=!0;var r0b=_.Rr(function(a){var b=a.data;var c=a.className;var d=a.useSmallLayout;var e=a.useMediumText;a=_.Pl();var g={};e=(g["yt-attribution-view-model-wiz"]=!0,g["yt-attribution-view-model-wiz--medium-text"]=e,g);_.Zu(a,function(){var k;return(k=b())==null?void 0:k.rendererContext});
return _.q("yt-attribution-view-model",{el:a,class:_.et(c,e)},_.q(_.qi,{cond:function(){return _.Xu(b().rendererContext)},
then:function(){return _.q("button",{class:"yt-attribution-view-model-wiz--tappable"},_.q(q0b,{data:b,useSmallLayout:d}))},
else:function(){return _.q(q0b,{data:b,useSmallLayout:d})}}))},"wa"),q0b=_.Rr(function(a){var b=a.data;
var c=a.useSmallLayout;var d=function(){return{size:(c==null?0:c())?16:24}};
return _.q(_.Wh,null,_.q(_.Hu,{data:function(){return b().contentPreviewImage}},{contentPreviewImageViewModel:function(e){return _.q(_.wL,{data:e.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:d})}}),_.q(_.Hu,{data:function(){return b().badge}},{badgeViewModel:function(e){return _.q(_.vL,{data:e.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.q(_.qi,{cond:function(){return b().text},
then:function(){return _.q(_.tt,{text:function(){return b().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.q(_.qi,{cond:function(){return b().suffix},
then:function(){return _.q(_.tt,{text:function(){return b().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"xa");
r0b.idomCompat=!0;var k_a=_.Du({avatarStackViewModel:_.RZb,badgeViewModel:u1a});_.Zl(n_a);var s0b,t0b,u0b,v0b,w0b,x0b,y0b;s0b=_.Rr(function(a){var b=a.delimiter;var c=a.max;var d=a.index;var e=a.isStandalone;return _.q(_.qi,{cond:function(){return c()-1>d()},
then:function(){var g={};return _.q("span",{class:_.et("yt-content-metadata-view-model-wiz__delimiter",(g["yt-content-metadata-view-model-wiz__delimiter--standalone"]=e,g)),"aria-hidden":!0},b)}})},"ya");
t0b=_.Rr(function(a){var b=a.metadataPart;var c=a.maxLines;return _.q(_.tt,{text:function(){return b().text},
linkInheritColor:!0,className:function(){return o_a(c())},
userInput:!0})},"za");
u0b=_.Rr(function(a){var b=a.metadataPart;var c=a.maxLines;return _.q(_.Wh,null,_.q(_.qi,{cond:function(){return b().tooltip},
then:function(d){return _.q("span",{title:d,role:"tooltip"},_.q(t0b,{metadataPart:b,maxLines:c}))},
else:function(){return _.q(t0b,{metadataPart:b,maxLines:c})}}))},"Aa");
v0b=_.Rr(function(a){var b=a.metadataPart;var c=a.isOverlay;var d=a.useMediumText;var e=a.hideAvatar;var g=function(){return b().maxLines!==void 0?b().maxLines:1};
return _.q(_.Wh,null,_.q(_.Hu,{data:function(){return b().avatarStack}},{avatarStackViewModel:function(k){return _.q(SZb,{data:k.data,
isOverlay:c,useMediumText:d,hideAvatar:e})},
badgeViewModel:_.vL}),_.q(_.qi,{cond:function(){return b().text},
then:function(){return _.q(u0b,{metadataPart:b,maxLines:g})}}))},"Ba");
w0b=_.Rr(function(a){var b=a.metadataRow;var c=a.isInline;var d=a.delimiter;var e=a.isOverlay;var g=a.useMediumText;var k=a.extensions;var m=function(){var n;return f_a(k==null?void 0:(n=k())==null?void 0:n.lockupMetadata,b())};
a={};return _.q("div",{class:_.et("yt-content-metadata-view-model-wiz__metadata-row",(a["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=c,a["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var n;return g_a(k==null?void 0:(n=k())==null?void 0:n.lockupMetadata,b())},a["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var n;
return!!(k==null?0:(n=k())==null?0:n.lockupMetadata)&&b().badges},a))},_.q(_.Hu,{data:function(){return b().badges}},{badgeViewModel:function(n){return _.q("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.q(_.vL,{data:n.data}))}}),_.q(_.ri,{each:function(){return b().metadataParts||[]}},function(n,r){return _.q(_.Wh,null,_.q(v0b,{metadataPart:n,
isOverlay:e,useMediumText:g,hideAvatar:m}),_.q(s0b,{delimiter:d,max:function(){return b().metadataParts.length},
index:r,isStandalone:!1}))}),_.q(_.qi,{cond:function(){return b().isSpacerRow&&!c()},
then:function(){return _.q("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ca");
x0b=_.Rr(function(a){var b=_.Or(a,{layout:0,isOverlay:!1});a=b.className;var c=b.data,d=b.layout,e=b.isOverlay,g=b.useMediumText,k=b.extensions;b=_.Pl();var m=function(){return d()===0};
_.Zu(b,function(){return c().rendererContext});
var n={};return _.q("yt-content-metadata-view-model",{class:_.et(a,"yt-content-metadata-view-model-wiz",(n["yt-content-metadata-view-model-wiz--inline"]=m,n["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.Xu(c().rendererContext)},n["yt-content-metadata-view-model-wiz--medium-text"]=g,n)),
el:b},_.q(_.ri,{each:function(){return c().metadataRows}},function(r,t){return _.q(_.Wh,null,_.q(w0b,{metadataRow:r,
isInline:m,delimiter:function(){return c().delimiter},
isOverlay:e,useMediumText:g,extensions:k}),_.q(_.qi,{cond:function(){return m()&&!r.isSpacerRow},
then:function(){return _.q(s0b,{delimiter:function(){return c().delimiter},
max:function(){return c().metadataRows.length},
index:t,isStandalone:!0})}}))}))},"Da");
y0b=_.w("web_enable_sink_lockups_batch")?x0b:n_a;_.z0b=_.w("web_enable_sink_lockups_batch")?x0b:_.jt(n_a);x0b.idomCompat=!0;var kv=_.Du({avatarViewModel:_.Kv,decoratedAvatarViewModel:PZb,contentMetadataViewModel:y0b,buttonViewModel:_.Qu,attributionViewModel:r0b,lockupAttachmentsViewModel:o0b});_.Zl(r_a);var A0b=_.Rr(function(a){var b={};return _.q("yt-lockup-metadata-view-model",{class:_.et("yt-lockup-metadata-view-model-wiz",function(){a:{var c=a.lockupStyle();if(c==null?0:c.isOverlay)c="yt-lockup-metadata-view-model-wiz--overlay";else switch(c==null?void 0:c.arrangement){case 1:c="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:c="yt-lockup-metadata-view-model-wiz--vertical"}}return c},function(){a:{var c=a.lockupStyle();
if(c==null?0:c.isTiny)c="yt-lockup-metadata-view-model-wiz--tiny";else switch(c==null?void 0:c.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":c="yt-lockup-metadata-view-model-wiz--compact";break a;default:c="yt-lockup-metadata-view-model-wiz--standard"}}return c},(b["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var c;
return(c=a.lockupStyle())==null?void 0:c.isOverlay},b["yt-lockup-metadata-view-model-wiz--card"]=function(){var c;
return(c=a.lockupStyle())==null?void 0:c.isCard},b["yt-lockup-metadata-view-model-wiz--centered"]=function(){var c;
return(c=a.lockupStyle())==null?void 0:c.isCentered},b["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var c;
return(c=a.lockupStyle())==null?void 0:c.typographyBump},b["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var c;
return(c=a.lockupStyle())==null?void 0:c.useLegacyTypography},b["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var c;
return(c=a.lockupStyle())==null?void 0:c.useRichGridLegacyTypography},b))},_.q(_.Hu,{data:function(){return a.data().image}},{avatarViewModel:function(c){return _.q("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.q(_.QK,{data:c.data}))},
decoratedAvatarViewModel:function(c){return _.q("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.q(_.RK,{data:c.data}))}}),_.q("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.q("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var c;return(c=a.data().title)==null?void 0:c.content}},_.q(_.qi,{cond:function(){return a.data().title},
then:function(c){return _.q(_.rt,{command:a.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:a.lockupAccessibilityLabel},_.q(_.tt,{text:c}))}})),_.q("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.q(_.Hu,{data:function(){return a.data().metadata}},{contentMetadataViewModel:function(c){return _.q(_.z0b,{data:c.data,
layout:1,useMediumText:function(){var d,e;return((d=a.lockupStyle())==null?void 0:d.typographyBump)||((e=a.lockupStyle())==null?void 0:e.useRichGridLegacyTypography)},
extensions:function(){var d,e;return{lockupMetadata:{byline:{hideAvatar:((d=a.lockupStyle())==null?void 0:d.arrangement)===0,addPadding:((e=a.lockupStyle())==null?void 0:e.arrangement)===1}}}}})}})),_.q(_.Hu,{data:function(){return a.data().attribution}},{attributionViewModel:function(c){return _.q("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.q(r0b,{data:c.data,
useSmallLayout:!0}))}}),_.q("div",null,_.q(_.Hu,{data:function(){return a.data().attachmentSlot}},{lockupAttachmentsViewModel:function(c){return _.q(o0b,{data:c.data,
lockupStyle:a.lockupStyle})}}))),_.q("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.q(_.Hu,{data:function(){return a.data().menuButton}},{buttonViewModel:function(c){return _.q(_.Qu,{data:c.data,
buttonOverrides:function(){var d;return((d=a.lockupStyle())==null?0:d.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ea"),B0b=_.w("web_enable_sink_lockups_batch")?A0b:_.jt(r_a);
A0b.idomCompat=!0;var C0b=_.Rr(function(a){var b=_.Pl();_.pi(function(){requestAnimationFrame(function(){_.Pk(b.value)})});
var c={},d={},e={};return _.q("notification-multi-action-renderer",{class:_.et("ytNotificationMultiActionRendererHost",(c.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var g;return(g=a.useLegacyShelfStyle)==null?void 0:g.call(a)},c)),
el:b},_.q("span",{"aria-live":"polite",class:_.et("ytNotificationMultiActionRendererTextContainer",(d.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var g;return(g=a.useLegacyShelfStyle)==null?void 0:g.call(a)},d))},_.q(_.tt,{text:function(){return a.data().responseText}})),_.q("div",{class:_.et("ytNotificationMultiActionRendererButtonContainer",(e.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var g;
return(g=a.useLegacyShelfStyle)==null?void 0:g.call(a)},e))},_.q(_.Hu,{data:function(){var g;
return(g=a.data().buttons)==null?void 0:g.map(function(k){if(k=k.buttonRenderer){var m,n=Object,r=n.assign,t=(m=k.icon)==null?void 0:m.iconType;m=(m=k.command||k.serviceEndpoint||k.navigationEndpoint)?{innertubeCommand:m}:void 0;k={buttonViewModel:r.call(n,{},{iconName:t,onTap:m,trackingParams:k.trackingParams,titleFormatted:k.text?_.zs(k.text):void 0},s_a(k))}}else k=void 0;return k}).filter(function(k){return!!k})}},{buttonViewModel:function(g,k){return _.q("div",null,_.q(_.Qu,{data:g.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var m;return((m=a.useModernStyles)==null?0:m.call(a))?{type:k()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Fa");var D0b=_.Rr(function(a){var b=_.Pl();_.pi(function(){requestAnimationFrame(function(){_.Pk(b.value)})});
return _.q("notification-text-renderer",{el:b,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.q(_.tt,{text:function(){return a.data().successResponseText}}))},"Ga");_.E0b=_.Rr(function(a){var b=_.tu(sVa,function(){var d;return t_a((d=a.contentId)==null?void 0:d.call(a))}),c=function(){var d;
return _.y((d=b())==null?void 0:d.command,_.EE)};
return _.q(_.qi,{cond:function(){var d;if(!(d=c())){var e;d=_.y((e=b())==null?void 0:e.command,Wyb)}return d},
then:function(){return _.q(_.qi,{cond:c,then:function(){var d={};return _.q("div",{class:_.et("ytDismissibleItemReplacedContent",function(){var e;return u_a((e=a.aspectRatio)==null?void 0:e.call(a))})},_.q("div",{class:_.et((d.ytDismissibleItemAspectRatioContainer=function(){var e;
return((e=a.aspectRatio)==null?void 0:e.call(a))!==void 0},d))},_.q(_.Hu,{data:function(){var e;
return(e=c())==null?void 0:e.item}},{notificationMultiActionRenderer:function(e){return _.q(C0b,{data:e.data,
useModernStyles:a.useModernStyle,useLegacyShelfStyle:a.useLegacyShelfStyle})},
notificationTextRenderer:D0b})))}})},
else:a.children})},"Ha");_.F0b=_.Rr(function(a){var b=a.data;var c=a.customCommandResolver;a=_.Pl();var d=function(){var g;return((g=b().interaction)==null?0:g.onTap)?function(k){var m;CZa(k,(m=b().interaction)==null?void 0:m.onTap,c)}:void 0},e=function(){var g,k=b(),m=d(),n=(g=_.y(b().rendererContext,_.$u))==null?void 0:g.label;
a:switch(k.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":g=1;break a;default:g=0}return{size:x_a(k.size),type:g,onTap:m,accessibilityText:n}};
_.Yl(a,{visibilityCallback:function(g){var k,m=(k=b().interaction)==null?void 0:k.onFirstVisible;g&&m&&_.Gs(m)},
showOption:_.sL});return _.q("ad-avatar-view-model",{class:function(){var g;return((g=b().interaction)==null?0:g.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:a},_.q(_.qi,{cond:function(){return b().image},
then:function(g){return _.q(av,{data:e,image:g})}}))},"Ia");_.xL=_.Rr(function(a){a=_.Or(a,{hasDot:!1});var b=Object.assign({},a),c=a.data,d=a.hasDot;a=a.customCommandResolver;var e=(delete b.data,delete b.hasDot,delete b.customCommandResolver,b);b=function(){return c().style};
b!==void 0&&b!==null||_.Ki(Error("Hh"));b=_.Pl();_.gv(b,function(){return c().interaction},a);
return _.q("ad-badge-view-model",{class:_.et(function(){var g;return((g=c().interaction)==null?0:g.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var g=e.adRenderingContextType();
c();return g==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:b},_.q(_.iv,{data:function(){var g;c();var k=(g=c().label)==null?void 0:g.content;g=d();var m=c().style==="AD_BADGE_STYLE_STARK_OVERLAY";return{type:2,text:k,adsIncludeDot:g,isOverlay:m}}}))},"Ja");var G0b;_.yL=_.Rr(function(a){var b=a.data;var c=a.customCommandResolver;var d=a.adRenderingContextType;a=_.Pl();_.gv(a,function(){return b().interaction},c);
_.Yl(a,{visibilityCallback:function(e){var g,k=(g=b().interaction)==null?void 0:g.onFirstVisible;e&&k&&_.Gs(k)},
showOption:_.sL});return _.q("ad-details-line-view-model",{class:function(){var e;return((e=b().interaction)==null?0:e.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:a},_.q(_.qi,{cond:function(){return b().style},
then:function(e){return _.q(_.ri,{each:function(){var g;return((g=b())==null?void 0:g.attributes)||[]},
keyBy:"INDEX"},function(g){return _.q(G0b,{attribute:g,style:e,adRenderingContextType:function(){return d()}})})}}))},"Ka");
G0b=_.Rr(function(a){var b=a.attribute;var c=a.style;var d=a.adRenderingContextType;return _.q(_.qi,{cond:function(){return b().text},
then:function(e){return _.q(_.tt,{text:e,className:function(){var g=d();c();return g==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"La");var H0b=_.Rr(function(a){var b=a.data;var c=function(){return b().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
return _.q(_.Wh,null,_.q("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.q(_.tt,{text:function(){return b().headline},
className:function(){return c()?"ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch":"ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline"},
linkInheritColor:!0}),_.q(_.qi,{cond:function(){return b().description},
then:function(d){return _.q(_.tt,{text:d,className:function(){return c()?"ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch":"ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription"},
linkInheritColor:!0})}}),_.q("div",{class:function(){return c()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.q(_.Hu,{data:function(){return b().adBadge}},{adBadgeViewModel:function(d){return _.q(_.xL,{data:d.data,
hasDot:function(){return!!b().adDetailsLine},
adRenderingContextType:function(){return b().adRenderingContextType}})}}),_.q(_.Hu,{data:function(){return b().adDetailsLine}},{adDetailsLineViewModel:function(d){return _.q(_.yL,{data:d.data,
adRenderingContextType:function(){return b().adRenderingContextType}})}}))),_.q("div",{class:function(){return c()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.q(_.Hu,{data:function(){return b().menu}},{buttonViewModel:function(d){return _.q(_.Qu,{data:d.data,
buttonOverrides:function(){a:switch(b().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var e="S";break a;default:e="M"}return{size:e}}})}})))},"Ma"),I0b=_.Rr(function(a){var b=a.data;
var c=a.noBottomMargin;var d=a.useVideoLockupTopPadding;a={};a=_.et("ytwFeedAdMetadataViewModelHostMetadata",(a.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return c==null?void 0:c()},a.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return d==null?void 0:d()},a));
var e=function(){return b().adBadge};
e!==void 0&&e!==null||_.Ki(Error("Ih"));e={};return _.q(_.Wh,null,_.q(_.qi,{cond:function(){return b().adAvatar},
then:function(){return _.q("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.q(_.Hu,{data:function(){return b().adAvatar}},{adAvatarViewModel:function(g){return _.q(_.F0b,{data:g.data})}}))}}),_.q("div",{class:a},_.q("div",{class:"ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline"},_.q(_.tt,{text:function(){return b().headline},
linkInheritColor:!0})),_.q(_.qi,{cond:function(){return b().description},
then:function(g){return _.q(_.tt,{text:g,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.q("div",{class:function(){return b().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.w("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.q(_.Hu,{data:function(){return b().adBadge}},
{adBadgeViewModel:function(g){return _.q(_.xL,{data:g.data,
hasDot:function(){return!!b().adDetailsLine},
adRenderingContextType:function(){return b().adRenderingContextType}})}}),_.q(_.Hu,{data:function(){return b().adDetailsLine}},{adDetailsLineViewModel:function(g){return _.q(_.yL,{data:g.data,
adRenderingContextType:function(){return b().adRenderingContextType}})}})),_.q(_.qi,{cond:function(){return b().secondaryDescription},
then:function(g){return _.q(_.tt,{text:g,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.q("div",{class:_.et("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(e.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return d==null?void 0:d()},e))},_.q(_.Hu,{data:function(){return b().menu}},{buttonViewModel:_.Qu})))},"Na"),J0b=_.Rr(function(a){var b=a.data;
var c=a.noBottomMargin;var d=a.listenToTapEvent;var e=a.setTouchEndHandler;var g=a.useVideoLockupTopPadding;var k=_.Pl();_.gv(k,function(){return b().interaction},void 0,function(){return d==null?void 0:d()});
a=_.h(_.ih(!1,void 0,"rVW2Qd"));var m=a.next().value,n=a.next().value;a=_.lt(function(){(e==null?0:e())&&!m()&&(k.value.click(),n(!0),setTimeout(function(){n(!1)},100));
return!1});
_.Yl(k,{visibilityCallback:function(r){var t,u=(t=b().interaction)==null?void 0:t.onFirstVisible;r&&u&&_.Gs(u)},
showOption:_.sL});return _.q("feed-ad-metadata-view-model",{class:function(){var r;return((r=b().interaction)==null?0:r.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:k,"on:touchend":a},_.q(_.ti,null,_.q(_.si,{when:function(){return b().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.q(H0b,{data:b})}),_.q(_.si,{when:function(){return b().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.q(I0b,{data:b,
noBottomMargin:c,useVideoLockupTopPadding:g})})))},"Oa");var zL=_.Rr(function(a){return _.q("yt-lockup-view-model",{class:_.et(a.className)},_.q(_.E0b,{contentId:function(){return a.data().contentId},
useModernStyle:!0,aspectRatio:function(){var b,c;return((b=a.containerType)==null?void 0:b.call(a))!==3?SZa(a.data().contentType,(c=a.force16By9ThumbnailAspectRatio)==null?void 0:c.call(a)):void 0}},function(){return _.q(K0b,Object.assign({},a))}))},"Pa"),K0b=_.Rr(function(a){a=_.Or(a,{containerLayoutConfig:void 0,
protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var b=a.data,c=a.containerLayoutConfig,d=a.containerType,e=a.sizing,g=a.protectBackground,k=a.typographyBump,m=a.force16By9ThumbnailAspectRatio,n=a.thumbnailFixedWidth,r=a.thumbnailTargetWidth,t=a.lockupExperiments,u=a.elementsPerRow;a=_.Pl();_.Zu(a,function(){var ya;return(ya=b())==null?
void 0:ya.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-EXPANDABLE-METADATA-VIEW-MODEL"],!0);var x=_.Ht(hZa),A=_.v().resolve(_.Xi(Y_b)),C=A?{}:void 0,F=function(){var ya,Ia,db;return(db=(Ia=_.y((ya=b())==null?void 0:ya.rendererContext,_.$u))==null?void 0:Ia.label)!=null?db:void 0},J=function(){var ya=c==null?void 0:c(),Ia;
if(ya==null?0:ya.containerType){var db=(Ia=b())==null?void 0:Ia.contentType;Ia=t();var lb=k(),Ua=r(),Vb=g();ya=Object.assign({},TZa(PZa(ya),NZa(ya.responsiveSize),lb,db,ya.force16By9ThumbnailAspectRatio,Ua,Vb,Ia),{thumbnailFixedWidth:ya.contentPreviewWidth})}else ya=TZa(d(),e(),k(),(db=b())==null?void 0:db.contentType,m(),r(),g(),t());return ya};
A&&C&&A({enabled:function(){return x()},
itemPlaybackModel:function(){return b().itemPlayback},
thumbnailElRef:function(){return C.thumbnailElRef},
containerElRef:a,options:function(){var ya,Ia=(ya=_.y(b().metadata,wFb))==null?void 0:ya.endorsement;ya=C.thumbnailOverlays||[];Ia&&ya.push(Ia);var db,lb;return{thumbnail:C.thumbnail,thumbnailOverlays:ya,accessibilityText:F(),thumbnailSize:C.thumbnailSize,enableRounding:J().isCollection,trackingParams:(db=_.y(b().rendererContext,_.wPa))==null?void 0:(lb=db.loggingDirectives)==null?void 0:lb.trackingParams}}});
var I=0;A=_.h(_.ih(!1,void 0,"GH4i8d"));var R=A.next().value,da=A.next().value;A=_.h(_.ih(!1,void 0,"hS52Ob"));var V=A.next().value,fa=A.next().value;A=_.lt(function(){var ya=x()&&b().itemPlayback;V()?(_.zk.cancelJob(I),I=_.zk.addJob(function(){da(!ya)},8,32)):da(!ya);
return!1});
_.Rl(a,"mouseleave",function(){I&&(_.zk.cancelJob(I),I=0);da(!1)});
_.zh(function(){I&&(_.zk.cancelJob(I),I=0)});
var aa=w_a(function(){fa(!0)}),ma=aa.touchFeedbackEvents,Ba=aa.touchFeedbackOnPointerUp,Ca=aa.touchFeedbackOnPointerDown;
_.Rl(a,"pointerleave",aa.touchFeedbackOnPointerLeave);aa={};return _.q("div",{el:a,class:_.et("yt-lockup-view-model-wiz",function(){a:{var ya=J();if(ya.isOverlay)ya="yt-lockup-view-model-wiz--overlay";else switch(ya.arrangement){case 1:ya="yt-lockup-view-model-wiz--horizontal";break a;default:ya="yt-lockup-view-model-wiz--vertical"}}return ya},function(){a:{var ya=J();
if(ya.isOverlay)ya="yt-lockup-view-model-wiz--overlay";else{switch(ya.collectionStackNumber){case 1:ya="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:ya="yt-lockup-view-model-wiz--collection-stack-2";break a}ya=void 0}}return ya},(aa["yt-lockup-view-model-wiz--card"]=function(){return J().isCard},aa["yt-lockup-view-model-wiz--compact"]=function(){return J().isTiny||J().sizing!=="STANDARD"},aa["yt-lockup-view-model-wiz--protect-background"]=g,aa["yt-lockup-view-model-wiz--add-margins"]=
function(){return J().addMarginForFullbleed},aa["yt-lockup-view-model-wiz--centered"]=function(){return J().isCentered},aa["yt-lockup-view-model-wiz--fullbleed"]=function(){return J().fullbleed},aa["yt-lockup-view-model-wiz--single-column-grid"]=function(){return u()===1&&d()===2},aa["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var ya;
return(ya=t())==null?void 0:ya.useRichGridLegacyMargin},aa)),
"on:mousedown":Ca,"on:mouseup":Ba,"on:mouseover":A,"on:touchstart":Ca,"on:touchend":Ba},_.q(_.rt,{command:function(){var ya;return _.Wu((ya=b())==null?void 0:ya.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return n()&&J().arrangement===1?"width: "+n():""}},_.q(_.Hu,{data:function(){var ya;
return(ya=b())==null?void 0:ya.contentImage}},{thumbnailViewModel:function(ya){return _.q(rL,{data:ya.data,
aspectRatio:function(){return J().aspectRatio},
disableRounding:function(){return J().disableRounding},
width:r,hovered:R,isClip:function(){var Ia;return((Ia=b())==null?void 0:Ia.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:fZa(C),lockupExperiments:function(){return t()}})},
collectionThumbnailViewModel:function(ya){return _.q(j0b,{data:ya.data,aspectRatio:function(){return J().aspectRatio},
disableRounding:function(){return J().disableRounding},
doubleStack:function(){return J().collectionStackNumber===2},
hovered:R,playbackRef:fZa(C)})},
decoratedAvatarViewModel:_.RK})),_.q("div",{class:"yt-lockup-view-model-wiz__metadata"},_.q(_.Hu,{data:function(){var ya;return(ya=b())==null?void 0:ya.metadata}},{lockupMetadataViewModel:function(ya){return _.q(B0b,{data:ya.data,
lockupStyle:J,lockupCommand:function(){var Ia;return _.Wu((Ia=b())==null?void 0:Ia.rendererContext)},
lockupAccessibilityLabel:function(){return F()}})},
feedAdMetadataViewModel:function(ya){return _.q(J0b,{data:ya.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0}})}}),_.q(_.Hu,{data:function(){var ya;
return(ya=b())==null?void 0:ya.attachmentSlot}},{lockupAttachmentsViewModel:function(ya){return _.q(o0b,{data:ya.data,
lockupStyle:J})}})),_.q(_.ut,{model:function(){a:{switch(J().collectionStackNumber){case 1:var ya=8;
break a;case 2:ya=12;break a}ya=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:ya}},
pointerDownEvent:ma.pointerDownEvent,pointerUpEvent:ma.pointerUpEvent,pointerLeaveEvent:ma.pointerLeaveEvent}))},"Qa");
zL.idomCompat=!0;_.Ts(zL,"yt-lockup-view-model",{props:{data:_.VG,containerLayoutConfig:_.VG,containerType:_.VG,sizing:_.VG,protectBackground:_.VG,typographyBump:_.VG,thumbnailFixedWidth:_.VG,thumbnailTargetWidth:_.VG,force16By9ThumbnailAspectRatio:_.VG,className:_.VG,lockupExperiments:_.VG,elementsPerRow:_.VG}});_.Zl(D_a);var K_a=_.Du({buttonViewModel:_.Qu}),L0b=_.jt(H_a);_.Zl(H_a);_.Zl(F_a);_.Zl(G_a);_.Ts(L0b,"yt-video-attribute-view-model",{props:{data:_.VG,className:_.VG}});var M0b=function(){var a=_.P.apply(this,arguments)||this;a.useHighlightStyling=_.w("web_enable_deeper_metadata_highlight_styling");a.isSearch=!1;a.JSC$12890_lastScrollContainerWidth=NaN;a.pageLoadingFromNavigation=!1;a.currentIndex=0;a.supportComponentResize=!1;return a};
_.z(M0b,_.P);_.f=M0b.prototype;
_.f.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-horizontal-card-list-renderer lockup",containerType:4,sizing:"COMPACT"}},searchRefinementCardRenderer:"ytd-search-refinement-card-renderer",compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",videoCardRenderer:"ytd-grid-video-renderer",gameCardRenderer:"ytd-game-card-renderer",miniGameCardViewModel:"ytd-mini-game-card-view-model",
mediaUpsellRenderer:"ytd-media-upsell-renderer",infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",params:{showVerticalDividers:!0}},previewCardRenderer:{component:"ytd-preview-card-renderer",properties:{isSearch:"[[isSearch]]"}},macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"}},placeDataViewModel:"place-data-view-model",videoAttributeViewModel:{component:"yt-video-attribute-view-model",properties:{className:"[[is]]"}}}},
"data.header":{id:"header",mapping:{titleAndButtonListHeaderRenderer:"ytd-title-and-button-list-header-renderer",richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",properties:{hideNavigationButton:"[[hideNavigationButton]]",isModernSd:"[[modernChapters]]"}}}},"data.sortFilter":{id:"sort-filter",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.button":{id:"header-button",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.previousButton":{id:"left-arrow-button",
mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},attributes:{arrow:!0}}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},attributes:{arrow:!0}}}},"data.footerButton":{id:"footer-section",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},dismissedRenderer:{id:"dismissed",
mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.f.attached=function(){document.addEventListener("yt-page-type-changed",_.gr(this,this.onPageChange))};
_.f.detached=function(){document.removeEventListener("yt-page-type-changed",_.gr(this,this.onPageChange))};
_.f.getItemsPath=function(){return"data.cards"};
_.f.onIronResize=function(){this.updateListStyles()};
_.f.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var a;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(a=this.data)==null?void 0:a.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.w("problem_walkthrough_sd")&&!!this.centerItems};
_.f.computeCardListStyle=function(a){return a||null};
_.f.computeEmpty=function(a){return!this.get("cards.length",a)};
_.f.computeThumbnailStyle=function(a){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",a)||null};
_.f.computeHasSubtitle=function(a){return!!this.get("header.richListHeaderRenderer.subtitle",a)};
_.f.computeInitialCountNumber=function(a){return this.hasSquareMiniApp&&a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.f.computeUseFloorScrolling=function(a){return a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.f.computeHasGameCard=function(a){return(a=this.get("cards",a))?a.some(function(b){return b.gameCardRenderer}):!1};
_.f.computeCenterHeaderTitle=function(a){return!(a==null||!a.centerHeaderTitle)};
_.f.computeHasPortraitMiniApp=function(a){return(a=a==null?void 0:a.cards)?a.some(function(b){return b.miniGameCardViewModel&&b.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.f.computeHasSquareMiniApp=function(a){return(a=a==null?void 0:a.cards)?a.some(function(b){return b.miniGameCardViewModel&&b.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.f.computeIncreasePortraitMiniAppWidth=function(a){return(a=a==null?void 0:a.cards)?a.some(function(b){var c;return b.miniGameCardViewModel&&((c=b.miniGameCardViewModel.entityRedesignExperiments)==null?void 0:c.enable11ThumbnailOnHomeShelves)})&&_.w("enable_playables_reduced_card_count"):!1};
_.f.computeHasSkinnyWidthPortraitMiniApp=function(a){return(a=a==null?void 0:a.cards)?a.some(function(b){return b.miniGameCardViewModel&&b.miniGameCardViewModel.width===135}):!1};
_.f.computeCenterItems=function(a){return!!a};
_.f.computeHasInfoPanel=function(a){var b;return a==null?void 0:(b=a.cards)==null?void 0:b.some(function(c){return c.infoPanelContentRenderer})};
_.f.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.f.getItemByIndex=function(a){var b=this.items.children;return b&&b.length>a?b[a]:void 0};
_.f.onPageChange=function(){var a=this;this.pageLoadingFromNavigation=!0;_.zk.addJob(function(){a.pageLoadingFromNavigation=!1;_.mo(a.hostElement,"yt-terminate-video-preview-action")},8)};
_.f.updateListStyles=function(){if(_.w("problem_walkthrough_sd")&&this.JSC$12890_scrollContainer!==void 0){var a=this.JSC$12890_scrollContainer.clientWidth;a!==this.JSC$12890_lastScrollContainerWidth&&(this.JSC$12890_lastScrollContainerWidth=a,_.fr(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(a*.8,415)+"px"}),_.io(this.hostElement,"iron-resize"))}};
_.Um.Object.defineProperties(M0b.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.w("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return _.w("kevlar_modern_sd")&&!!((a=this.data)==null?0:(b=a.cards)==null?0:(c=b[0])==null?0:c.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return!!((a=this.data)==null?0:(b=a.cards)==null?0:(c=b[0])==null?0:c.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return _.w("enable_desktop_amsterdam_info_panels")&&!!((a=this.data)==null?0:(b=a.cards)==null?0:(c=b[0])==null?0:c.infoPanelContentRenderer)}}});
var AL=M0b;AL.prototype.dataChanged=AL.prototype.dataChanged;AL.prototype.onIronResize=AL.prototype.onIronResize;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],AL.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],AL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.lJ.YtdHorizontalListBehavior),_.W("design:type",Object)],AL.prototype,"ytdHorizontalListBehavior",void 0);
_.U([_.H(_.QI),_.W("design:type",Object)],AL.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],AL.prototype,"data",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],AL.prototype,"useCustomColors",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],AL.prototype,"useHighlightStyling",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.W("design:type",Object)],AL.prototype,"cardListStyle",void 0);_.U([_.O({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.W("design:type",Boolean)],AL.prototype,"empty",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.W("design:type",Boolean)],AL.prototype,"hasSubtitle",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.W("design:type",Boolean)],AL.prototype,"thumbnailStyle",void 0);_.U([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.W("design:type",Boolean)],AL.prototype,"hasGameCard",void 0);_.U([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.W("design:type",Boolean)],AL.prototype,"centerHeaderTitle",void 0);
_.U([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeIncreasePortraitMiniAppWidth(data)"}),_.W("design:type",Boolean)],AL.prototype,"increasePortraitMiniAppWidth",void 0);_.U([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.W("design:type",Boolean)],AL.prototype,"hasPortraitMiniApp",void 0);_.U([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.W("design:type",Boolean)],AL.prototype,"hasSquareMiniApp",void 0);
_.U([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.W("design:type",Boolean)],AL.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);_.U([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.W("design:type",Boolean)],AL.prototype,"hasInfoPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],AL.prototype,"isSearch",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],AL.prototype,"inlineStructuredDescription",void 0);_.U([_.ir("#scroll-container"),_.W("design:type",HTMLDivElement)],AL.prototype,"JSC$12890_scrollContainer",void 0);_.U([_.O({computed:"computeInitialCountNumber(data.style.type)"}),_.W("design:type",Number)],AL.prototype,"initialCount",void 0);_.U([_.O({computed:"computeUseFloorScrolling(data.style.type)"}),_.W("design:type",Boolean)],AL.prototype,"useFloorScrolling",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.W("design:type",Boolean)],AL.prototype,"centerItems",void 0);_.U([_.O(),_.W("design:type",Object)],AL.prototype,"pageLoadingFromNavigation",void 0);_.U([_.O(),_.W("design:type",Object)],AL.prototype,"currentIndex",void 0);_.U([_.O(),_.W("design:type",Number)],AL.prototype,"scrollCount",void 0);_.U([_.O(),_.W("design:type",Object)],AL.prototype,"supportComponentResize",void 0);
_.U([_.ir("#items"),_.W("design:type",HTMLDivElement)],AL.prototype,"items",void 0);_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],AL.prototype,"onIronResize",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],AL.prototype,"dataChanged",null);
_.U([_.O({reflectToAttribute:!0}),_.K("inlineStructuredDescription"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],AL.prototype,"hideNavigationButton",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],AL.prototype,"modernChapters",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],AL.prototype,"hasVideoAttributeViewModels",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],AL.prototype,"modernInfoPanels",null);AL=_.U([_.Q({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],AL);
_.S(AL,"ytd-horizontal-card-list-renderer",function(){if(s_b!==void 0)return s_b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-horizontal-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-horizontal-card-list-renderer">\n<div id="header-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <h2 id="header" hidden$="[[!data.header]]" class="style-scope ytd-horizontal-card-list-renderer"></h2>\n  <div id="sort-filter" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  <div id="header-button" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="shelf-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atStart]]">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="prevClick_" hidden="[[data.previousButton]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="left-arrow-button" hidden="[[!data.previousButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown" class="style-scope ytd-horizontal-card-list-renderer">\n    <div id="items" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atEnd]]">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="nextClick_" hidden="[[data.nextButton]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="right-arrow-button" hidden="[[!data.nextButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n</div>\n<div id="footer-section" hidden="[[!data.footerButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-horizontal-card-list-renderer"></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return s_b=a},{mode:_.as("kevlar_poly_si_batch_j072")?1:2});_.Zl(M_a);var N0b=_.jt(M_a);_.at(M_a,"video-summary-content-view-model",{propNames:["data","isSearch","className"]});var O0b=function(){var a=_.P.apply(this,arguments)||this;var b,c;a.isExpanded=(c=(b=a.data)==null?void 0:b.isExpanded)!=null?c:!1;a.disableExpand=!1;a.showProminentLabel=!1;a.showRightSideLabel=!0;a.toggleExpandableContent=function(d){a.disableExpand||(d.stopPropagation(),_.Xt(_.Rq(d),a.hostElement,["info","expanded-subtitle"])||(a.isExpanded=!a.isExpanded,a.ytRendererBehavior.logExplicitClick(a.data),a.JSC$12903_cardList&&!_.w("expandable_metadata_a11y_fix_ks")&&_.Qm(a,function(){_.Ok(a.hostElement)})))};
a.useSquareThumbnail=!1;a.startX=0;return a};
_.z(O0b,_.P);_.f=O0b.prototype;_.f.computeUseSquareThumbnail=function(){var a;return(a=this.data)==null?void 0:a.useSquareThumbnail};
_.f.configureRendererStamper=function(){return{"data.expandedContent":{id:"content",mapping:{horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]",useCustomColors:"[[useCustomColors]]"}},horizontalListRenderer:{component:"yt-horizontal-list-renderer",properties:{isSearch:"[[isSearch]]"},params:{isExpandableContent:!0}},videoSummaryContentViewModel:{component:"video-summary-content-view-model",params:{isExpandableContent:!0},properties:{isSearch:"[[isSearch]]"}},
lockupViewModel:{component:"yt-lockup-view-model",params:{isExpandableContent:!0,className:"ytd-expandable-metadata-renderer lockup",thumbnailFixedWidth:"168px",containerType:3,sizing:"COMPACT"}}}},"data.expandButton":{id:"expand",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.collapseButton":{id:"collapse",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.infoButton":{id:"info",
mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.expandedMenuFooter":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}}}};
_.f.dataChanged=function(){if(this.data){var a,b;this.isExpanded=(b=(a=this.data)==null?void 0:a.isExpanded)!=null?b:!1;var c,d,e,g;if(a=this.isDarkTheme()?(c=this.data)==null?void 0:(d=c.colorData)==null?void 0:d.darkColorPalette:(e=this.data)==null?void 0:(g=e.colorData)==null?void 0:g.lightColorPalette){var k,m;if((k=this.data)==null?0:(m=k.colorData)==null?0:m.vibrantColorPalette)a.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.Dt(this.hostElement,a)}}};
_.f.isExpandedChanged=function(){this.isExpanded&&this.JSC$12903_cardList&&_.io(this.JSC$12903_cardList,"iron-resize")};
_.f.computeIsExpanded=function(a){return!!a.isExpanded};
_.f.computeShowProminentLabel=function(a,b){var c;return!!(a==null?0:(c=a.header)==null?0:c.showLeadingCollapsedLabel)&&!b};
_.f.computeShowRightSideLabel=function(a,b){var c;return!(a==null?0:(c=a.header)==null?0:c.showLeadingCollapsedLabel)&&!b};
_.f.captureContentClick=function(a){if(!this.disableExpand)if(_.w("expandable_metadata_fix_killswitch")){var b=a.target;_.rdb(b,"ytd-macro-markers-list-item-renderer")||a.stopPropagation();(b==null?void 0:b.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.Xt(_.Rq(a),this.hostElement,["items"])||_.Wt(_.Rq(a),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.f.timestampClick=function(a){a.stopPropagation();var b,c;(a=(b=this.data)==null?void 0:(c=b.header)==null?void 0:c.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(a)};
_.f.onDown=function(a){a.stopPropagation();this.startX=a.detail?a.detail.x:0};
_.f.onUp=function(a){this.skipKeyInteraction(a)&&a.stopPropagation()};
_.f.skipKeyInteraction=function(a){var b=a.target;if((b==null?void 0:b.id)==="scroll-container"||(b==null?void 0:b.id)==="items"||a.detail&&a.detail.x!==this.startX)return!0;a=_.Rq(a);a=_.h(a);for(b=a.next();!b.done;b=a.next()){b=b.value;if(b===this.hostElement)break;if(b.hasAttribute&&b.hasAttribute("skip-key-interaction"))return!0}return!1};
_.f.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Um.Object.defineProperties(O0b.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var a;return!!_.y((a=this.data)==null?void 0:a.expandedContent,NCb)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var a;return!!_.y((a=this.data)==null?void 0:a.expandedContent,xFb)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null||!a.useCustomColors)&&!((b=this.data)==null||!b.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this.data)==null?0:(b=a.header)==null?0:b.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this.data)==null?0:(b=a.header)==null?0:b.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this.data)==null?0:(b=a.header)==null?0:b.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
var BL=O0b;BL.prototype.onUp=BL.prototype.onUp;BL.prototype.onDown=BL.prototype.onDown;BL.prototype.isExpandedChanged=BL.prototype.isExpandedChanged;BL.prototype.dataChanged=BL.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],BL.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],BL.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],BL.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],BL.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],BL.prototype,"isExpanded",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],BL.prototype,"disableExpand",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],BL.prototype,"isSearch",void 0);
_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],BL.prototype,"isWatch",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.W("design:type",Object)],BL.prototype,"showProminentLabel",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.W("design:type",Object)],BL.prototype,"showRightSideLabel",void 0);
_.U([_.O({value:!1,reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],BL.prototype,"hasVideoSummary",null);_.U([_.O({value:!1,reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],BL.prototype,"hasLockupViewModel",null);_.U([_.O({reflectToAttribute:!0}),_.K("data","isWatch"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],BL.prototype,"useCustomColors",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data","isExpanded"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],BL.prototype,"showInfoButton",null);_.U([_.K("data","isExpanded"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],BL.prototype,"showTimestamp",null);_.U([_.K("data","isExpanded"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],BL.prototype,"showExpandedSubtitle",null);
_.U([_.K("data","isExpanded"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],BL.prototype,"showThumbnail",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],BL.prototype,"useVppShoppingDestinationStyle",null);_.U([_.O(),_.W("design:type",Object)],BL.prototype,"toggleExpandableContent",void 0);_.U([_.ir("ytd-horizontal-card-list-renderer"),_.W("design:type",Object)],BL.prototype,"JSC$12903_cardList",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.W("design:type",Object)],BL.prototype,"useSquareThumbnail",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BL.prototype,"dataChanged",null);_.U([_.N("isExpanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BL.prototype,"isExpandedChanged",null);
_.U([_.M("down"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],BL.prototype,"onDown",null);_.U([_.M("up"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],BL.prototype,"onUp",null);BL=_.U([_.Q({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],BL);
_.S(BL,"ytd-expandable-metadata-renderer",function(){if(YYb!==void 0)return YYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return YYb=a},{mode:1});var P0b,Q0b=function(){if(P0b!==void 0)return P0b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return P0b=a};_.Ft("itemSectionRenderer","videoRenderer","ytd-video-renderer");var CL=function(){var a=_.P.apply(this,arguments)||this;a.disableExpand=!1;a.shouldShowChannelInfo=!1;a.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return a};
_.z(CL,_.P);_.f=CL.prototype;_.f.computeUseSearchUi=function(){var a,b;return this.isSearch||((a=this.data)==null?void 0:(b=a.style)==null?void 0:b.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.f.computeUseThreeLineTitle=function(){var a;return((a=this.data)==null?void 0:a.maxTitleLines)===3};
_.f.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.w("polymer_video_renderer_defer_menu")&&!ULb?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}}}};
_.f.attached=function(){_.br(this.hostElement,"blue-links",_.w("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.f.detached=function(){this.clearInlinePreviewHoverListeners()};
_.f.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.cr(_.E(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var a=this.get("data.buttons.buttonRenderer.serviceEndpoint"),b;a&&((b=_.y(a.commandMetadata,_.KE))==null?0:b.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(a);this.updateInlinePreviewHoverListeners()};
_.f.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12908_inlinePreviewHoverListener=dv({mediaRenderer:this,lockupElement:this.JSC$12908_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.f.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$12908_inlinePreviewHoverListener)==null||uv(a)};
_.f.onTextWrapperClick=function(a){var b,c,d=this.hideTranslation?(b=this.data)==null?void 0:b.untranslatedNavigationEndpoint:(c=this.data)==null?void 0:c.navigationEndpoint;b=_.Xt(_.Rq(a),this.hostElement,["expandable-metadata"]);!d||b&&!_.w("expandable_metadata_fix_killswitch")||_.Wt(_.Rq(a),this.hostElement,["A".toString(),"BUTTON".toString()])||_.io(this.hostElement,"yt-navigate",{endpoint:d})};
_.f.computeThumbnailWidth=function(a,b,c,d,e){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:d?e==="MASSIVE"?600:e==="BIG"?500:e==="MEDIUM"?450:420:c?360:b?128:a?210:246};
_.f.computeUseBiggerThumbs=function(a){return a&&_.w("enable_desktop_search_bigger_thumbs")};
_.f.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.f.computeVideoStyle=function(){if(_.w("enable_video_style")){var a,b;return(a=this.data)==null?void 0:(b=a.style)==null?void 0:b.value}};
_.f.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.f.handleHideItemSectionVideosByIdCommand=function(a){var b;a=(b=_.y(a,jCb))==null?void 0:b.videoId;this.data&&this.data.videoId===a&&(this.isHidden=!0)};
_.f.getMetadataSnippetContainerClass=function(a){return a?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.f.computeTitleText=function(a,b,c){return a?c:b};
_.f.computeDescriptionSnippet=function(a,b,c){return a?c:b};
_.f.computeSnippetText=function(a,b,c){return a?c:b};
_.f.computeNavigationEndpoint=function(a,b){return a?b==null?void 0:b.untranslatedNavigationEndpoint:b==null?void 0:b.navigationEndpoint};
_.f.hideInlineTitleIcon=function(a,b){return a||!b};
_.Um.Object.defineProperties(CL.prototype,{hideTranslation:{configurable:!0,enumerable:!0,get:function(){return this.searchVideoResultEntity?!!this.searchVideoResultEntity.hasOptedOutTranslation:!1}},
hiddenBadgeGroups:{configurable:!0,enumerable:!0,get:function(){if(this.searchVideoResultEntity){var a;return(a=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?a:[]}return[]}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$12908_inlinePreviewHoverListener)==null?0:UK(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.Um.Object.defineProperties(CL,{template:{configurable:!0,enumerable:!0,get:function(){return Q0b()}}});
var DL=CL;DL.prototype.dataChanged=DL.prototype.dataChanged;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],DL.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],DL.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],DL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],DL.prototype,"ytdDismissibleItemBehavior",void 0);
_.U([_.H(_.$I),_.W("design:type",Object)],DL.prototype,"ytdLockupBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],DL.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],DL.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],DL.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],DL.prototype,"isBackstageVideo",void 0);
_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],DL.prototype,"isPostCompactVideo",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],DL.prototype,"isHistory",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],DL.prototype,"isRichGridVideoPost",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],DL.prototype,"isHidden",void 0);
_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],DL.prototype,"isSearch",void 0);_.U([_.O({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.W("design:type",Boolean)],DL.prototype,"useSearchUi",void 0);_.U([_.O({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.W("design:type",Boolean)],DL.prototype,"useThreeLineTitle",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.W("design:type",Boolean)],DL.prototype,"useBiggerThumbs",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.W("design:type",Object)],DL.prototype,"videoStyle",void 0);_.U([_.O({computed:"computeDisableExpand(videoStyle)"}),_.W("design:type",Object)],DL.prototype,"disableExpand",void 0);
_.U([_.O({computed:"computeShouldShowChannelInfo(useSearchUi, data)"}),_.W("design:type",Object)],DL.prototype,"shouldShowChannelInfo",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.aj("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],DL.prototype,"biggerThumbsStyle",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.W("design:type",String)],DL.prototype,"inlineTitleIcon",void 0);_.U([_.O({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.W("design:type",Object)],DL.prototype,"computedNavigationEndpoint",void 0);_.U([_.O({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(a,b){return _.np(a.entities,"searchVideoResultEntity",b)}}),
_.W("design:type",Object)],DL.prototype,"searchVideoResultEntity",void 0);_.U([_.ir("ytd-thumbnail"),_.W("design:type",HTMLElement)],DL.prototype,"thumbnail",void 0);_.U([_.ir("#dismissible"),_.W("design:type",HTMLElement)],DL.prototype,"JSC$12908_dismissibleMedia",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DL.prototype,"dataChanged",null);
_.U([_.K("searchVideoResultEntity"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],DL.prototype,"hideTranslation",null);_.U([_.K("searchVideoResultEntity"),_.W("design:type",Array),_.W("design:paramtypes",[])],DL.prototype,"hiddenBadgeGroups",null);_.U([_.K("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],DL.prototype,"isHovered",null);DL=_.U([_.Q({is:"ytd-video-renderer",disableElementRegistration:!0})],DL);
_.S(DL,"ytd-video-renderer",function(){return Q0b()},{mode:_.as("kevlar_poly_si_batch_j047")?1:2});var R0b=function(){var a=_.P.apply(this,arguments)||this;a.editDialog=null;a.roundedContainer=!0;a.isLoading=!1;a.isRichGrid=!1;a.isRichGridRepost=!1;a.reduceSidePaddings=_.w("reduce_side_paddings_in_shelf");a.JSC$12914_spinnerEl=null;return a};
_.z(R0b,_.P);_.f=R0b.prototype;
_.f.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",properties:{isPostCompactVideo:"[[usesCompactLockup]]",
isRichGridVideoPost:"[[isRichGrid]]"}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isPostCompactPlaylist:"[[usesCompactLockup]]"}},uploadedVideoRenderer:{component:"ytd-post-uploaded-video-renderer"}}},"data.voteButton":{id:"vote-button",mapping:{buttonRenderer:"ytd-button-renderer"}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},
dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.f.contentTextChanged=function(){this.expander.reset()};
_.f.dataChanged=function(){var a=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var b=0,c=this.data.actions&&this.data.actions.length;b<c;b++)this.openEditDialog(_.y(this.data.actions[b],Jzb));if((b=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(b=this.get("buttonRenderer.hint.hintRenderer.hintId",b))&&b.startsWith("share-post-hint")){var d=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(d){_.kG.getInstance();var e=lG(_.Vp(_.vo("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.zk.addLowPriorityJob(function(){_.po(a.hostElement,e,d)})}}}};
_.f.updatePoll=function(a){a>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.f.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12914_spinnerEl||(this.JSC$12914_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.E(this.hostElement).appendChild(this.JSC$12914_spinnerEl));this.JSC$12914_spinnerEl&&(this.JSC$12914_spinnerEl.active=this.isLoading)};
_.f.onYtNavigate=function(a){var b=this.get("updateCommentDialogEndpoint",a.detail.endpoint);b&&(this.openEditDialog(b),a.stopPropagation())};
_.f.onYtCommentboxDismiss=function(){this.editDialog=null};
_.f.onYtCommentPollRevert=function(a,b){b&&this.updatePoll(b.selectedChoiceIndex)};
_.f.onYtServiceRequestSent=function(a,b){var c;b.endpoint&&(_.y(b.endpoint,VEb)||_.y(b.endpoint,TE)&&((c=_.y(b.endpoint,TE))==null||!c.clientActions))&&(this.isLoading=!0);if(b.actions)for(a=0;a<b.actions.length;a++)c=b.actions[a],_.y(c,IE)&&(c=this.get("updateBackstagePollAction.selectedChoiceIndex",c),c==void 0&&(c=-1),this.updatePoll(c))};
_.f.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.f.openEditDialog=function(a){a&&a.dialog&&(this.editDialog=a.dialog,a=this.editDialogEl.firstElementChild)&&(a.focus(),a.openDialog&&a.openDialog())};
_.f.computeIsPostHidden=function(a,b){return!!a||b};
_.f.computeSurfaceType=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.f.computeUsesCompactLockup=function(a){return a==="BACKSTAGE_SURFACE_TYPE_HOME"||a==="BACKSTAGE_SURFACE_TYPE_SEARCH"||a==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||a==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||a==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||a==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.f.computeShowWithoutToolbar=function(a){return!a.actionButtons&&!a.actionMenu};
_.f.computePostAttachment=function(a){if(a.backstageAttachment){if(_.y(a.backstageAttachment,CEb))return"poll";if(_.y(a.backstageAttachment,mEb))return"quiz";if(_.y(a.backstageAttachment,_.KEb))return"video";if(_.y(a.backstageAttachment,nEb))return"uploaded-videos";if(_.y(a.backstageAttachment,kzb))return a.contentText?"image":"image-only";if(_.y(a.backstageAttachment,iEb))return"playlist"}return"none"};
_.f.computePostTabIndex=function(a){return a?0:-1};
_.f.computeButtonTooltipPosition=function(a){return this.computeUsesCompactLockup(a)?"top":"bottom"};
_.f.computeHasText=function(a){return!(a==null||!a.contentText)};
_.f.onTap=function(a){var b,c;if(((b=this.data)==null?0:b.navigationEndpoint)&&((c=this.data)==null?void 0:c.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var d;((d=this.data)==null?0:d.navigationEndpoint)&&!_.Wt(_.Rq(a)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.io(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.Um.Object.defineProperties(R0b.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.voteCount)||_.Vp("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.y(this.data.backstageAttachment,CEb))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.y(this.data.backstageAttachment,nEb))}}});
var EL=R0b;EL.prototype.onYtServiceRequestCompleted=EL.prototype.onYtServiceRequestCompleted;EL.prototype.onYtServiceRequestSent=EL.prototype.onYtServiceRequestSent;EL.prototype.onYtCommentPollRevert=EL.prototype.onYtCommentPollRevert;EL.prototype.onYtCommentboxDismiss=EL.prototype.onYtCommentboxDismiss;EL.prototype.onYtNavigate=EL.prototype.onYtNavigate;EL.prototype.isLoadingChanged=EL.prototype.isLoadingChanged;EL.prototype.dataChanged=EL.prototype.dataChanged;EL.prototype.contentTextChanged=EL.prototype.contentTextChanged;
_.U([_.H(_.QI),_.W("design:type",Object)],EL.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],EL.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],EL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],EL.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],EL.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],EL.prototype,"editDialog",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],EL.prototype,"roundedContainer",void 0);_.U([_.O(),_.W("design:type",Object)],EL.prototype,"isLoading",void 0);_.U([_.O({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.W("design:type",String)],EL.prototype,"surface",void 0);
_.U([_.O({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.W("design:type",Boolean)],EL.prototype,"usesCompactLockup",void 0);_.U([_.O({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],EL.prototype,"showWithoutToolbar",void 0);_.U([_.O({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.W("design:type",String)],EL.prototype,"attachment",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],EL.prototype,"isRichGrid",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],EL.prototype,"isRichGridRepost",void 0);_.U([_.O({reflectToAttribute:!0,value:_.w("use_better_post_dismissals")}),_.W("design:type",Boolean)],EL.prototype,"useBetterPostDismissals",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],EL.prototype,"reduceSidePaddings",void 0);
_.U([_.O({computed:"computeHasText(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],EL.prototype,"hasText",void 0);_.U([_.ir("#expander"),_.W("design:type",Object)],EL.prototype,"expander",void 0);_.U([_.ir("#action-buttons"),_.W("design:type",Object)],EL.prototype,"actionButtons",void 0);_.U([_.ir("#edit-dialog"),_.W("design:type",HTMLElement)],EL.prototype,"editDialogEl",void 0);
_.U([_.N("data.contentText"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EL.prototype,"contentTextChanged",null);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EL.prototype,"dataChanged",null);_.U([_.N("isLoading"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EL.prototype,"isLoadingChanged",null);
_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],EL.prototype,"onYtNavigate",null);_.U([_.M("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EL.prototype,"onYtCommentboxDismiss",null);_.U([_.M("yt-comment-poll-revert"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],EL.prototype,"onYtCommentPollRevert",null);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Nt]),_.W("design:returntype")],EL.prototype,"onYtServiceRequestSent",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Vt]),_.W("design:returntype")],EL.prototype,"onYtServiceRequestCompleted",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],EL.prototype,"voteCount",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],EL.prototype,"commentCount",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],EL.prototype,"hasPoll",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],EL.prototype,"hasUploadedVideo",null);EL=_.U([_.Q({is:"ytd-post-renderer",disableElementRegistration:!0})],EL);
_.S(EL,"ytd-post-renderer",function(){if(ZXb!==void 0)return ZXb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" role="link" hidden="[[computeIsPostHidden(editDialog, isLoading)]]" tabindex="[[computePostTabIndex(data.navigationEndpoint)]]" on-tap="onTap" class="style-scope ytd-post-renderer">\n  <div id="header" class="style-scope ytd-post-renderer">\n    <div id="author-thumbnail" class="style-scope ytd-post-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" tabindex="-1">\n        <yt-img-shadow fit="" height="32" thumbnail="[[data.authorThumbnail]]" width="32" class="style-scope ytd-post-renderer">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="author" class="style-scope ytd-post-renderer">\n      <a id="author-text" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n        <span class="style-scope ytd-post-renderer">[[getSimpleString(data.authorText)]]</span>\n      </a>\n      <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-post-renderer"></span>\n    </div>\n    <span id="author-divider" class="style-scope ytd-post-renderer">\u2022</span>\n    <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-post-renderer">\n    </yt-formatted-string>\n    <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-post-renderer"></span>\n  </div>\n  <div id="body" class="style-scope ytd-post-renderer">\n    <div id="post-text" class="style-scope ytd-post-renderer">\n\n      \n      <ytd-expander id="expander" hidden="[[usesCompactLockup]]" class="style-scope ytd-post-renderer">\n        <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n        <span class="more-button style-scope ytd-post-renderer" slot="more-button">\n          [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n        </span>\n        <span class="less-button style-scope ytd-post-renderer" slot="less-button">\n          [[getSimpleString(data.collapseButton.buttonRenderer.text)]]\n        </span>\n      </ytd-expander>\n      <yt-formatted-string id="home-content-text" slot="content" hidden="[[!usesCompactLockup]]" split-lines="[[!usesCompactLockup]]" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n    </div>\n    <div id="attachments" class="style-scope ytd-post-renderer">\n      <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-post-renderer"></div>\n      \n      <div id="answer-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.quizRenderer.totalVotes)]]\n      </div>\n      <div id="vote-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.pollRenderer.totalVotes)]]\n      </div>\n      <div id="vote-button" class="style-scope ytd-post-renderer"></div>\n      <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" role="group" class="style-scope ytd-post-renderer">\n      </ytd-backstage-poll-renderer>\n    </div>\n  </div>\n  <div id="toolbar" hidden="[[showWithoutToolbar]]" class="style-scope ytd-post-renderer">\n    <ytd-comment-action-buttons-renderer id="action-buttons" button-tooltip-position="[[computeButtonTooltipPosition(data.surface)]]" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-creator-reply="[[hasCreatorReply_]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" use-comment-icon="" vote-count="[[voteCount]]" class="style-scope ytd-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n    <div id="action-menu" class="style-scope ytd-post-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-post-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return ZXb=a},{mode:1});var S0b;var T0b;var U0b=function(){return _.P.apply(this,arguments)||this};
_.z(U0b,_.P);U0b.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
var FL=U0b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],FL.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],FL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.lJ.YtdHorizontalListBehavior),_.W("design:type",Object)],FL.prototype,"ytdHorizontalListBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],FL.prototype,"componentBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],FL.prototype,"data",void 0);_.U([_.O({value:"$.items.children"}),_.W("design:type",String)],FL.prototype,"itemsPath",void 0);_.U([_.O({value:1}),_.W("design:type",Number)],FL.prototype,"initialCount",void 0);_.U([_.O(),_.W("design:type",String)],FL.prototype,"surface",void 0);FL=_.U([_.Q({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],FL);
_.S(FL,"ytd-post-multi-image-renderer",function(){if(T0b!==void 0)return T0b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-multi-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shelf-container" class="style-scope ytd-post-multi-image-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="prevClick_" hidden="[[atStart]]">\n         <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n      </div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown_" class="style-scope ytd-post-multi-image-renderer">\n    <div id="items" class="style-scope ytd-post-multi-image-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return T0b=a},{mode:_.as("kevlar_poly_si_batch_j079")?1:2});var V0b={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}},W0b=function(){var a=_.P.apply(this,arguments)||this;a.hasInlineCommentSection=!1;a.editDialog=null;a.isLoading=!1;a.shouldHideAuthor=!1;a.shouldShowVideoTime=!1;
a.isInEngagementPanel=!1;a.hideBorder=!1;a.usesFullLockup=!1;a.shouldShowMenuInCompactView=!1;a.JSC$12930_spinnerEl=null;a.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return a};
_.z(W0b,_.P);_.f=W0b.prototype;_.f.configureRendererStamper=function(){return V0b};
_.f.computeIsPollHeaderEnabled=function(a){return(a==null?void 0:a.pollMetadataIcon)!=null};
_.f.getPublishTimeStampString=function(a,b){b=new Date((Number(b)-60*((new Date).getTimezoneOffset()-(new Date(Number(b)*1E3)).getTimezoneOffset()))*1E3);b=(new Tp(10)).format(b);if(a&&a.runs&&a.runs.length)for(var c=0;c<a.runs.length;c++)a.runs[c].text&&(a.runs[c].text=a.runs[c].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",b));return a};
_.f.created=function(){this.JSC$12930_spinnerEl=null};
_.f.contentTextChanged=function(){this.expander.reset()};
_.f.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var a;if((a=this.data)==null?0:a.actions){a=_.h(this.data.actions);for(var b=a.next();!b.done;b=a.next())this.openEditDialog(_.y(b.value,Jzb))}};
_.f.handleSignalActionOpenPostCommentDialogAction=function(){_.E(this.hostElement).querySelector("#action-buttons").reply()};
_.f.updatePoll=function(a,b){b&&this.set("data.pollMetadataVoteCountText",b);this.hasInlineCommentSection&&(a=a>=0,b=_.E(this.hostElement).querySelector("#action-buttons"),a?b.reply():b.hideReplyDialog())};
_.f.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12930_spinnerEl||(this.JSC$12930_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.E(this.hostElement).appendChild(this.JSC$12930_spinnerEl));this.JSC$12930_spinnerEl&&(this.JSC$12930_spinnerEl.active=this.isLoading)};
_.f.onYtNavigate=function(a){var b=this.get("updateCommentDialogEndpoint",a.detail.endpoint);b&&(this.openEditDialog(b),a.stopPropagation())};
_.f.onYtCommentboxDismiss=function(){this.editDialog=null};
_.f.onYtCommentPollRevert=function(a,b){b&&this.updatePoll(b.selectedChoiceIndex,b.totalVotes)};
_.f.onYtServiceRequestSent=function(a,b){a.stopPropagation();a=_.y(b.endpoint,TE);if(_.y(b.endpoint,VEb)||a&&!a.clientActions)this.isLoading=!0;if(b.actions)for(a=0;a<b.actions.length;a++){var c=b.actions[a],d=_.y(c,IE);d&&(c=this.get("updateBackstagePollAction.selectedChoiceIndex",c),c===void 0&&(c=-1),this.updatePoll(c,d.totalVotes))}};
_.f.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.f.openEditDialog=function(a){a&&a.dialog&&(this.editDialog=a.dialog,a=this.editDialogElement.firstElementChild)&&(a.focus(),a.openDialog&&a.openDialog())};
_.f.computeIsBodyHidden=function(a,b){return!!a||b};
_.Um.Object.defineProperties(W0b.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var a,b;if((a=this.data)==null?0:(b=a.pollMetadataIcon)==null?0:b.iconType)return _.es(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.voteCount)||_.Vp("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.y(this.data.backstageAttachment,CEb))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.y(this.data.backstageAttachment,mEb))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.y(this.data.backstageAttachment,nEb))}}});
var GL=W0b;GL.prototype.onYtServiceRequestCompleted=GL.prototype.onYtServiceRequestCompleted;GL.prototype.onYtServiceRequestSent=GL.prototype.onYtServiceRequestSent;GL.prototype.onYtCommentPollRevert=GL.prototype.onYtCommentPollRevert;GL.prototype.onYtCommentboxDismiss=GL.prototype.onYtCommentboxDismiss;GL.prototype.onYtNavigate=GL.prototype.onYtNavigate;GL.prototype.isLoadingChanged=GL.prototype.isLoadingChanged;GL.prototype.dataChanged=GL.prototype.dataChanged;GL.prototype.contentTextChanged=GL.prototype.contentTextChanged;
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],GL.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],GL.prototype,"rendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],GL.prototype,"rendererstamperBehavior",void 0);_.U([_.ir("#contentTextExpander"),_.W("design:type",Object)],GL.prototype,"expander",void 0);
_.U([_.ir("#edit-dialog"),_.W("design:type",Element)],GL.prototype,"editDialogElement",void 0);_.U([_.O(),_.W("design:type",Object)],GL.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],GL.prototype,"hasInlineCommentSection",void 0);_.U([_.O(),_.W("design:type",Object)],GL.prototype,"editDialog",void 0);_.U([_.O(),_.W("design:type",Object)],GL.prototype,"isLoading",void 0);
_.U([_.O({computed:"computeIsPollHeaderEnabled(data)"}),_.W("design:type",Boolean)],GL.prototype,"isPollHeaderEnabled",void 0);_.U([_.O(),_.W("design:type",Object)],GL.prototype,"shouldHideAuthor",void 0);_.U([_.O(),_.W("design:type",Object)],GL.prototype,"shouldShowVideoTime",void 0);_.U([_.O(),_.W("design:type",Object)],GL.prototype,"isInEngagementPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],GL.prototype,"hideBorder",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],GL.prototype,"usesFullLockup",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],GL.prototype,"shouldShowMenuInCompactView",void 0);_.U([_.K("isInEngagementPanel"),_.W("design:type",Number),_.W("design:paramtypes",[])],GL.prototype,"postTextMaxLines",null);_.U([_.K("data.icon.iconType"),_.W("design:type",Object),_.W("design:paramtypes",[])],GL.prototype,"pollIcon",null);
_.U([_.N("data.contentText"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GL.prototype,"contentTextChanged",null);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GL.prototype,"dataChanged",null);_.U([_.N("isLoading"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GL.prototype,"isLoadingChanged",null);
_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],GL.prototype,"onYtNavigate",null);_.U([_.M("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GL.prototype,"onYtCommentboxDismiss",null);_.U([_.M("yt-comment-poll-revert"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],GL.prototype,"onYtCommentPollRevert",null);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Nt]),_.W("design:returntype")],GL.prototype,"onYtServiceRequestSent",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],GL.prototype,"onYtServiceRequestCompleted",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],GL.prototype,"voteCount",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],GL.prototype,"commentCount",null);_.U([_.K("data.backstageAttachment"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],GL.prototype,"hasPoll",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],GL.prototype,"hasQuiz",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],GL.prototype,"hasUploadedVideo",null);
GL=_.U([_.Q({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],GL);
_.S(GL,"ytd-backstage-post-renderer",function(){if(S0b!==void 0)return S0b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return S0b=a},{mode:1});var X0b;var Y0b=function(){var a=_.P.apply(this,arguments)||this;a.editDialog=null;a.showExpandButton=!1;a.isRichGrid=!1;a.usesFullLockup=!1;return a};
_.z(Y0b,_.P);_.f=Y0b.prototype;_.f.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.originalPost":{id:"original-post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}},postRenderer:{component:"ytd-post-renderer",properties:{isRichGridRepost:"[[isRichGrid]]"}}}},editDialog:{id:"repost-edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}}};
_.f.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.f.computeShowExpandButton=function(a){return this.usesCompactLockup||a&&a.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.f.computeUsesCompactLockup=function(a){return!!a.condensedContent};
_.f.computeShowFullContentText=function(a){return!a};
_.f.onYtNavigate=function(a){a=this.get("updateCommentDialogEndpoint",a.detail.endpoint);this.openEditDialog(a)};
_.f.onYtCommentboxDismiss=function(){this.editDialog=null};
_.f.openEditDialog=function(a){a&&a.dialog&&(this.editDialog=a.dialog,a=this.repostEditDialogEl.firstElementChild)&&(a.focus(),a.openDialog&&a.openDialog())};
_.f.onTap=function(a){if(this.data){var b=null;this.usesCompactLockup&&!_.Wt(_.Rq(a)||[],this.hostElement,["YT-IMG-SHADOW"])?b=this.get("navigationEndpoint",this.data):a.target===this.moreButtonEl&&(b=this.get("navigationEndpoint",a.target.data));b&&_.io(this.hostElement,"yt-navigate",{endpoint:b})}};
var HL=Y0b;HL.prototype.onYtCommentboxDismiss=HL.prototype.onYtCommentboxDismiss;HL.prototype.onYtNavigate=HL.prototype.onYtNavigate;HL.prototype.dataChanged=HL.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],HL.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],HL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],HL.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],HL.prototype,"editDialog",void 0);_.U([_.O({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],HL.prototype,"usesCompactLockup",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],HL.prototype,"showExpandButton",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],HL.prototype,"isRichGrid",void 0);
_.U([_.O({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.W("design:type",Boolean)],HL.prototype,"showFullContentText",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],HL.prototype,"usesFullLockup",void 0);_.U([_.ir("#more"),_.W("design:type",Object)],HL.prototype,"moreButtonEl",void 0);_.U([_.ir("#repost-content-text"),_.W("design:type",HTMLElement)],HL.prototype,"repostContentTextEl",void 0);
_.U([_.ir("#repost-edit-dialog"),_.W("design:type",HTMLElement)],HL.prototype,"repostEditDialogEl",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],HL.prototype,"dataChanged",null);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],HL.prototype,"onYtNavigate",null);
_.U([_.M("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],HL.prototype,"onYtCommentboxDismiss",null);HL=_.U([_.Q({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],HL);
_.S(HL,"ytd-shared-post-renderer",function(){if(X0b!==void 0)return X0b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shared-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="repost-context" hidden="[[editDialog]]" on-tap="onTap" class="style-scope ytd-shared-post-renderer">\n  <div id="repost-author-thumbnail" class="style-scope ytd-shared-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-shared-post-renderer"></yt-img-shadow>\n    </a>\n  </div>\n  <div id="repost-main" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <div id="repost-header" class="style-scope ytd-shared-post-renderer">\n      <div id="repost-header-author" class="style-scope ytd-shared-post-renderer">\n        <a id="repost-author-text" class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n          <span class="style-scope ytd-shared-post-renderer">[[getSimpleString(data.displayName)]]</span>\n        </a>\n        <yt-formatted-string id="repost-published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-shared-post-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <yt-formatted-string id="repost-content-text" force-default-style="" split-lines="[[!showFullContentText]]" text="[[data.content]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n    <tp-yt-paper-button id="more" data="[[data.expandButton.buttonRenderer]]" hidden="[[!showExpandButton]]" noink="" class="style-scope ytd-shared-post-renderer">\n      [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n    </tp-yt-paper-button>\n  </div>\n  <div id="repost-main-compact" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <yt-formatted-string id="condensed-repost-content-text" ellipsis-truncate="" force-default-style="" text="[[data.condensedContent]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="divider-line-container" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n  <div id="divider-line" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="repost-edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post" hidden="[[data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post-deleted-message" hidden="[[!data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer">\n  [[data.originalPostDeletedMessage]]\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return X0b=a},{mode:1});var Z0b;var $0b;var a1b;var b1b=function(){var a=_.P.apply(this,arguments)||this;a.boundCaptureFocus=function(b){a.onCaptureFocus(b)};
return a};
_.z(b1b,_.P);_.f=b1b.prototype;_.f.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.f.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.f.onCaptureFocus=function(a){_.Rq(a).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.f.getIconType=function(a){return a?"yt-icons:"+a.toLowerCase():null};
_.f.onSelect=function(){var a;if((a=this.data)==null?0:a.onSelectCommand)if(_.w("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var b;((b=_.y(this.data.onSelectCommand.commandMetadata,_.co))==null?0:b.url)?_.io(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.v().resolve(_.Yi).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.Um.Object.defineProperties(b1b.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.Wp(this.data.label):""}},
value:{configurable:!0,enumerable:!0,get:function(){return this.data?typeof this.data.stringValue==="string"?this.data.stringValue:typeof this.data.int32Value==="number"?this.data.int32Value:null:null}}});
var IL=b1b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],IL.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],IL.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],IL.prototype,"data",void 0);_.U([_.ir("#item"),_.W("design:type",HTMLElement)],IL.prototype,"item",void 0);_.U([_.K("data.label"),_.W("design:type",String),_.W("design:paramtypes",[])],IL.prototype,"label",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],IL.prototype,"value",null);IL=_.U([_.Q({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],IL);
_.S(IL,"ytd-privacy-dropdown-item-renderer",function(){if(a1b!==void 0)return a1b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-privacy-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" on-click="onSelect" class="style-scope ytd-privacy-dropdown-item-renderer">\n  <yt-icon id="dropdown-icon" hidden="[[!data.icon.iconType]]" icon="[[getIconType(data.icon.iconType)]]" class="style-scope ytd-privacy-dropdown-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-privacy-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item-body>\n</tp-yt-paper-item>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return a1b=a},{mode:1});var c1b=function(){var a=_.P.apply(this,arguments)||this;a.value="";a.label="";a.disabled=!1;return a};
_.z(c1b,_.P);_.f=c1b.prototype;_.f.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.f.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.f.dataChanged=function(){this.reset()};
_.f.valueChanged=function(){var a;if(this.value&&(a=this.data)!=null&&a.entries){a=_.h(this.data.entries);for(var b=a.next();!b.done;b=a.next())if((b=this.getRendererForEntry(b.value))&&this.getItemRendererValue(b)===this.value){this.label=this.ytComponentBehavior.getSimpleString(b.label);break}}};
_.f.setInitialLabel=function(){if(this.data&&this.data.entries)for(var a=_.h(this.data.entries),b=a.next();!b.done;b=a.next())if(b=this.getRendererForEntry(b.value)){if(b.isSelected){this.label=this.ytComponentBehavior.getSimpleString(b.label);break}this.data.label&&(this.label=this.data.label)}};
_.f.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var a=_.h(this.data.entries),b=a.next();!b.done;b=a.next()){b=this.getRendererForEntry(b.value);var c=void 0;if((c=b)==null?0:c.isSelected)return this.getItemRendererValue(b)||-1}return-1};
_.f.getItemRendererValue=function(a){return"stringValue"in a||"int32Value"in a?a.stringValue||a.int32Value||null:null};
_.f.getRendererForEntry=function(a){return a.dropdownItemRenderer||a.privacyDropdownItemRenderer||a.navigationDropdownItemRenderer||null};
_.f.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.WH("value-changed",this.value))};
_.f.updateValueFromBinding=function(a){this.value=a.detail.value};
var JL=c1b;JL.prototype.valueChangedForBinding=JL.prototype.valueChangedForBinding;JL.prototype.valueChanged=JL.prototype.valueChanged;JL.prototype.dataChanged=JL.prototype.dataChanged;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],JL.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],JL.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],JL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],JL.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],JL.prototype,"value",void 0);_.U([_.O(),_.W("design:type",Object)],JL.prototype,"label",void 0);_.U([_.ir("#entries"),_.W("design:type",Object)],JL.prototype,"entries",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],JL.prototype,"disabled",void 0);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JL.prototype,"dataChanged",null);_.U([_.mr("value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JL.prototype,"valueChanged",null);_.U([_.N("value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JL.prototype,"valueChangedForBinding",null);JL=_.U([_.Q({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],JL);
_.S(JL,"ytd-flat-dropdown-renderer",function(){if($0b!==void 0)return $0b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return $0b=a},{mode:1});var d1b;var e1b=function(){return _.P.apply(this,arguments)||this};
_.z(e1b,_.P);e1b.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&(_.w("web_ytd_identity_chip_renderer_command_resolver_ks")?_.oo(this.hostElement,[this.data.onTapCommand]):_.v().resolve(_.Yi).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}}))};
var KL=e1b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],KL.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],KL.prototype,"data",void 0);KL=_.U([_.Q({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],KL);
_.S(KL,"ytd-identity-chip-renderer",function(){if(d1b!==void 0)return d1b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-identity-chip-renderer">\n  <h3 id="header-text" class="style-scope ytd-identity-chip-renderer">[[data.headerText]]</h3>\n</div>\n<div id="content-row" class="style-scope ytd-identity-chip-renderer">\n  <div id="info-div" class="style-scope ytd-identity-chip-renderer">\n    <img id="avatar-image" alt="" src$="[[data.avatarUrl]]" class="style-scope ytd-identity-chip-renderer">\n    <div id="name-handle-div" class="style-scope ytd-identity-chip-renderer">\n      <p id="name" class="style-scope ytd-identity-chip-renderer">[[data.name]]</p>\n      <p id="handle" hidden="[[!data.handle]]" dir="auto" class="style-scope ytd-identity-chip-renderer"><span class="style-scope ytd-identity-chip-renderer">@</span>[[data.handle]]</p>\n    </div>\n  </div>\n  <div id="edit-icon" class="style-scope ytd-identity-chip-renderer">\n    <yt-icon-button id="edit-icon-button" aria-label$="[[data.onTapLabel]]" on-click="onClickEditIcon" class="style-scope ytd-identity-chip-renderer">\n      <yt-icon id="edit-icon" icon="yt-icons:edit" class="style-scope ytd-identity-chip-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return d1b=a},{mode:1});var f1b;var g1b;var h1b=function(){var a=_.P.apply(this,arguments)||this;a.images=[];a.selectedImageIndex=0;return a};
_.z(h1b,_.P);_.f=h1b.prototype;
_.f.ready=function(){_.rs(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.rs(this.JSC$12956_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.rs(this.JSC$12956_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.rs(this.JSC$12956_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.f.onThumbnailClick=function(a){if(a=a.event_.detail)this.selectedImageIndex=this.images.indexOf(a)};
_.f.updateImageThumbnails=function(a){a=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:a.event_.detail});this.images.splice(this.selectedImageIndex,1,a);this.images=[].concat(_.De(this.images))};
_.f.cancelImageRepositions=function(){this.selectedImageIndex=0;_.io(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.f.saveImageRepositions=function(){this.selectedImageIndex=0;_.io(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.Um.Object.defineProperties(h1b.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var a=this;return(this.images||[]).map(function(b,c){return{image:b,selected:c===a.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
var LL=h1b;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],LL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.ir("ytd-backstage-image-preview-renderer"),_.W("design:type",Object)],LL.prototype,"JSC$12956_imagePreviewContainer",void 0);_.U([_.ir(".thumbnail-images-container"),_.W("design:type",HTMLElement)],LL.prototype,"thumbnailImagesContainer",void 0);_.U([_.O(),_.W("design:type",Array)],LL.prototype,"images",void 0);
_.U([_.O(),_.W("design:type",Object)],LL.prototype,"repositionInstructions",void 0);_.U([_.O(),_.W("design:type",Object)],LL.prototype,"selectedImageIndex",void 0);_.U([_.K("images","selectedImageIndex"),_.W("design:type",Array),_.W("design:paramtypes",[])],LL.prototype,"thumbnailRendererDatas",null);_.U([_.K("images","selectedImageIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],LL.prototype,"selectedImageData",null);
LL=_.U([_.Q({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],LL);
_.S(LL,"ytd-backstage-multi-image-reposition-renderer",function(){if(g1b!==void 0)return g1b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-reposition-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="image-reposition-container style-scope ytd-backstage-multi-image-reposition-renderer">\n  <div class="thumbnail-images-container style-scope ytd-backstage-multi-image-reposition-renderer">\n    <template is="dom-repeat" items="[[thumbnailRendererDatas]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n      <div class="image-thumbnail style-scope ytd-backstage-multi-image-reposition-renderer">\n        <ytd-backstage-multi-image-thumbnail-renderer id="thumbnail-renderer" data="[[item]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n        </ytd-backstage-multi-image-thumbnail-renderer>\n      </div>\n    </template>\n  </div>\n  <div class="image-reposition style-scope ytd-backstage-multi-image-reposition-renderer">\n    <ytd-backstage-image-preview-renderer edit-only-mode="" image-data="[[selectedImageData]]" instruction="[[repositionInstructions]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return g1b=a},{mode:1});var ML=function(a,b){_.Hz.call(this);this.uploadUrl=a;this.channelId=b;this.imagesUploadData=[]};
_.z(ML,_.Hz);ML.prototype.getAllUploadStatuses=function(){var a=this,b,c,d;return _.l(function(e){if(e.nextAddress==1)return _.p(e,i1b(a),2);b=e.yieldResult;c=b.get("succeed");d=b.get("failed");return e.return(c.concat(d))})};
var k1b=function(a){var b,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,i1b(a),2);b=d.yieldResult;c=b.get("failed");c.length>0&&j1b(a,c);return d.return(a.getAllUploadStatuses())})},i1b=function(a){var b,c,d,e,g,k,m;
return _.l(function(n){if(n.nextAddress==1)return b=new Map,_.p(n,Promise.allSettled(a.imagesUploadData.map(function(r){return r.uploadPromise})),2);
c=n.yieldResult;d=[];e=_.h(c);for(g=e.next();!g.done;g=e.next())k=g.value,k.status==="fulfilled"&&d.push(k.value);m=a.imagesUploadData.map(function(r){return r.image}).filter(function(r){return d.every(function(t){return t.id!==r.id})});
b.set("succeed",d);b.set("failed",m);return n.return(b)})},j1b=function(a,b){b=_.h(b);
for(var c=b.next();!c.done;c=b.next()){var d=a;c=c.value;l1b(d,c.id)>=0&&d.cancel(c.id);var e=new m1b(c),g=_.Fyb(d.uploadUrl,{"X-YouTube-ChannelId":d.channelId},c.imageBlob);e.transfer=g;e.uploadPromise=n1b(g,c);d.imagesUploadData.push(e);g.run()}};
ML.prototype.cancel=function(a){var b=l1b(this,a);b!==-1&&((b=this.imagesUploadData[b].transfer)&&b.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(c){return c.image.id!==a}))};
var l1b=function(a,b){return a.imagesUploadData.findIndex(function(c){return c.image.id===b})},n1b=function(a,b){return new Promise(function(c,d){a.listen("l",function(){var e=a.getResponseText();
e?(e=JSON.parse(e).encryptedBlobId,b.encryptedBlobId=e,c(b)):d("upload failed")});
a.listen("n",function(){d("upload failed")})})},m1b=function(a){this.image=a};var N_a=function(a,b,c,d,e){this.id=a;this.imageBlob=b;this.localImageSrc=c;this.naturalWidth=d;this.naturalHeight=e;this.previewCoordinates=this.naturalHeight>this.naturalWidth?{top:(this.naturalHeight-this.naturalWidth)/2/this.naturalHeight,right:1,bottom:(this.naturalHeight+this.naturalWidth)/2/this.naturalHeight,left:0}:{top:0,right:(this.naturalWidth+this.naturalHeight)/2/this.naturalWidth,bottom:1,left:(this.naturalWidth-this.naturalHeight)/2/this.naturalWidth}};var o1b=[".jpeg",".jpg",".png"],p1b=function(){var a=_.P.apply(this,arguments)||this;a.showImagesPreview=!1;a.pollOptions=[];a.errorMessage="";a.optionPlaceholderText="";a.optionDefaultText="";a.JSC$12967_imageId=0;a.maxFileSizeMb=0;a.maxAspectRatio=0;a.invalidFileSizeError="";a.invalidAspectRatioError="";a.invalidFileTypeError="";a.imageSelector=new wE(null,"single_file",o1b);return a};
_.z(p1b,_.P);_.f=p1b.prototype;_.f.ready=function(){_.rs(this.imageSelector,"j",this.onImageSelect,!1,this);_.rs(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.rs(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.f.dataChanged=function(){var a,b,c=_.y((a=this.data)==null?void 0:(b=a.cellTemplate)==null?void 0:b.onEmptyCellTap,wDb);if(c&&c.uploadUrl&&c.channelId){var d;this.maxFileSizeMb=((d=c.imageValidationInfo)==null?void 0:d.maxFileSizeMb)||0;var e;this.maxAspectRatio=((e=c.imageValidationInfo)==null?void 0:e.allowedMaxAspectRatio)||0;var g;this.invalidFileSizeError=this.getSimpleString((g=this.data)==null?void 0:g.invalidFileSizeError);var k;this.invalidAspectRatioError=this.getSimpleString((k=this.data)==
null?void 0:k.invalidAspectRatioError);var m;this.invalidFileTypeError=this.getSimpleString((m=this.data)==null?void 0:m.invalidFileTypeError);this.uploadManager=new ML(c.uploadUrl,c.channelId)}};
_.f.onEditorInfoChange=function(){this.optionPlaceholderText=_.Wp(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.Wp(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.f.observeAddImageError=function(){this.errorMessage!==""&&_.io(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.f.onPollOptionsChange=function(){for(var a=!1,b=[],c=0;c<this.pollOptions.length;c++){var d=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(c+1);this.pollOptions[c].placeholderText!==d?(a=!0,b.push(Object.assign({},this.pollOptions[c],{placeholderText:d}))):b.push(this.pollOptions[c])}a&&(this.pollOptions=b);this.isValid()?_.io(this.hostElement,"yt-commentbox-post-enable"):_.io(this.hostElement,"yt-commentbox-post-disable")};
_.f.createPollOptions=function(a){var b=[],c;a=(c=a==null?void 0:a.minPollOptions)!=null?c:0;for(c=0;c<a;c++)b.push(this.createPollOption());return b};
_.f.onImageSelect=function(a){var b=this,c,d,e,g,k,m;return _.l(function(n){if(n.nextAddress==1){if(b.selectedImageIndex===void 0)return n.jumpTo(0);c=a.files[0];b.errorMessage="";d=b.validateImage(c);if(d!=="")return b.errorMessage=d,n.return();e=new aF(b.maxAspectRatio,!1,!0);return _.p(n,e.transform(c),3)}if(n.nextAddress!=4)return g=n.yieldResult,g.transformedData?g.invalidAspectRatio?(b.errorMessage=b.invalidAspectRatioError,n.return()):_.p(n,O_a(b.JSC$12967_imageId,a.files[0],g.transformedData),
4):(b.errorMessage=b.invalidFileTypeError,n.return());k=n.yieldResult;b.JSC$12967_imageId++;j1b(b.uploadManager,[k]);m=Object.assign({},b.pollOptions[b.selectedImageIndex],{image:k});b.pollOptions.splice(b.selectedImageIndex,1,m);b.refreshPollOptions();_.io(b.hostElement,"yt-backstage-poll-image-select");_.ue(n)})};
_.f.validateImage=function(a){return a.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.f.refreshPollOptions=function(){this.pollOptions=[].concat(_.De(this.pollOptions))};
_.f.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.De(this.pollOptions),[this.createPollOption()]))};
_.f.onRemovePollOption=function(a){var b=this.pollOptions[a.model.index];b&&b.image&&this.uploadManager.cancel(b.image.id);this.pollOptions.splice(a.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.io(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.f.onTextInput=function(){this.refreshPollOptions()};
_.f.onImageButtonClick=function(a){this.selectedImageIndex=a.model.index;this.imageSelector.click()};
_.f.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.f.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.f.saveImageRepositions=function(a){a=a.event_.detail;for(var b=0,c=[],d=_.h(this.pollOptions),e=d.next();!e.done;e=d.next())e=e.value,e.image!==void 0?(e=Object.assign({},e,{image:a[b]}),c.push(e),b++):c.push(e);this.showImagesPreview=!1;this.pollOptions=[].concat(_.De(c))};
_.f.isValid=function(){if(!this.editorInfo||this.showImagesPreview||this.pollOptions.length<Number(this.editorInfo.minPollOptions)||this.pollOptions.length>Number(this.editorInfo.maxPollOptions))return!1;for(var a=0,b=_.h(this.pollOptions),c=b.next();!c.done;c=b.next())if(c=c.value,c.optionText.trim()!==""||c.image!==void 0){if(!c.image||this.hasCustomOptionText&&c.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;a++}return a>=Number(this.editorInfo.minPollOptions)};
_.f.getAllUploadStatuses=function(){var a=this,b,c,d,e;return _.l(function(g){if(g.nextAddress==1)return _.p(g,a.uploadManager.getAllUploadStatuses(),2);b=g.yieldResult;c=_.h(b);for(d=c.next();!d.done;d=c.next())if(e=d.value,e.encryptedBlobId===void 0)return g.return(k1b(a.uploadManager));return g.return(b)})};
_.f.getPostCreateOptions=function(){for(var a=[],b=_.h(this.pollOptions),c=b.next();!c.done;c=b.next())c=c.value,c.image!==void 0&&a.push({text:this.hasCustomOptionText?c.optionText:c.placeholderText,image:c.image});return a};
_.f.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.f.createButtonRenderer=function(a,b){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:a,accessibilityData:{accessibilityData:{label:this.getSimpleString(a)}},isDisabled:b}};
_.f.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.f.computeThumbnailRendererData=function(a){return a?{image:a,selected:!1}:void 0};
_.f.getSimpleString=function(a){return _.Wp(a)};
_.f.updateOptionTextFromBinding=function(a){if(a.target){var b=Array.from(_.E(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(a.target);if(b>=0){var c;this.pollOptions[b].optionText=(c=a.detail.value)!=null?c:""}}};
_.Um.Object.defineProperties(p1b.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var a,b;return this.pollOptions.length<((b=(a=this.editorInfo)==null?void 0:a.maxPollOptions)!=null?b:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(a){return a.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(a){return a.image}).map(function(a){return a.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(a){return a.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var a,b=(a=this.data)==null?void 0:a.addOptionButtonText;return b?this.createButtonRenderer(b,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var a,b=(a=this.data)==null?void 0:a.repositionImagesButtonLabel;return b?this.createButtonRenderer(b,!this.hasImages):void 0}}});
var NL=p1b;NL.prototype.onPollOptionsChange=NL.prototype.onPollOptionsChange;NL.prototype.observeAddImageError=NL.prototype.observeAddImageError;NL.prototype.onEditorInfoChange=NL.prototype.onEditorInfoChange;NL.prototype.dataChanged=NL.prototype.dataChanged;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],NL.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.ir("ytd-backstage-multi-image-reposition-renderer"),_.W("design:type",Object)],NL.prototype,"imageRepositionContainer",void 0);_.U([_.O(),_.W("design:type",Object)],NL.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],NL.prototype,"editorInfo",void 0);_.U([_.O(),_.W("design:type",ML)],NL.prototype,"uploadManager",void 0);_.U([_.O(),_.W("design:type",Object)],NL.prototype,"showImagesPreview",void 0);_.U([_.O(),_.W("design:type",Array)],NL.prototype,"pollOptions",void 0);
_.U([_.O(),_.W("design:type",Object)],NL.prototype,"errorMessage",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NL.prototype,"dataChanged",null);_.U([_.mr("editorInfo"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NL.prototype,"onEditorInfoChange",null);_.U([_.N("errorMessage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NL.prototype,"observeAddImageError",null);
_.U([_.mr("pollOptions"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NL.prototype,"onPollOptionsChange",null);_.U([_.K("pollOptions","editorInfo"),_.W("design:type",Object),_.W("design:paramtypes",[])],NL.prototype,"isAllowedToAddOption",null);_.U([_.K("pollOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],NL.prototype,"hasImages",null);
_.U([_.K("pollOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],NL.prototype,"imagesToReposition",null);_.U([_.K("pollOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],NL.prototype,"hasCustomOptionText",null);_.U([_.K("data","isAllowedToAddOption"),_.W("design:type",Object),_.W("design:paramtypes",[])],NL.prototype,"addOptionButton",null);_.U([_.K("data","hasImages"),_.W("design:type",Object),_.W("design:paramtypes",[])],NL.prototype,"repositionImagesButton",null);
NL=_.U([_.Q({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],NL);
_.S(NL,"ytd-backstage-image-poll-editor-renderer",function(){if(f1b!==void 0)return f1b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-poll-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[showImagesPreview]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  <template is="dom-repeat" items="[[pollOptions]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n    <div class="poll-option style-scope ytd-backstage-image-poll-editor-renderer">\n      <div class="image-thumbnail-container style-scope ytd-backstage-image-poll-editor-renderer">\n        <div class="image-thumbnail style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!item.image]]">\n          <ytd-backstage-multi-image-thumbnail-renderer data="[[computeThumbnailRendererData(item.image)]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n          </ytd-backstage-multi-image-thumbnail-renderer>\n        </div>\n        <div class="image-select-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[item.image]]">\n          <yt-icon-button class="add-image-icon-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onImageButtonClick">\n            <yt-icon class="add-image-icon style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:image"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <tp-yt-paper-input-container class="poll-option-input style-scope ytd-backstage-image-poll-editor-renderer" no-label-float="">\n        <tp-yt-iron-autogrow-textarea class="paper-input-input poll-option-input-text style-scope ytd-backstage-image-poll-editor-renderer" slot="input" maxlength$="[[editorInfo.maxPollOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onTextInput" on-value-changed="updateOptionTextFromBinding">\n        </tp-yt-iron-autogrow-textarea>\n        <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-backstage-image-poll-editor-renderer"></tp-yt-paper-input-char-counter>\n      </tp-yt-paper-input-container>\n      <yt-icon-button class="remove-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:delete"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </template>\n  <div class="button-container style-scope ytd-backstage-image-poll-editor-renderer">\n    <yt-button-renderer class="add-option style-scope ytd-backstage-image-poll-editor-renderer" data="[[addOptionButton]]" on-click="onAddPollOption">\n    </yt-button-renderer>\n    <yt-button-renderer class="reposition-images style-scope ytd-backstage-image-poll-editor-renderer" data="[[repositionImagesButton]]" on-click="onRepositionImages">\n    </yt-button-renderer>\n  </div>\n</div>\n\n\n<div class="image-reposition-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!showImagesPreview]]">\n  <ytd-backstage-multi-image-reposition-renderer images="[[imagesToReposition]]" reposition-instructions="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  </ytd-backstage-multi-image-reposition-renderer>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return f1b=a},{mode:2});var q1b;var r1b={imageHorizontalPosition:"IMAGE_HORIZONTAL_POSITION_LABEL",imageVerticalPosition:"IMAGE_VERTICAL_POSITION_LABEL",horizontalRepositionInstruction:"REPOSITION_IMAGE_HORIZONTALLY_LABEL",verticalRepositionInstruction:"REPOSITION_IMAGE_VERTICALLY_LABEL",reachTopOfImage:"REACH_TOP_OF_IMAGE_TEXT",reachBottomOfImage:"REACH_BOTTOM_OF_IMAGE_TEXT",reachLeftOfImage:"REACH_LEFT_OF_IMAGE_TEXT",reachRightOfImage:"REACH_RIGHT_OF_IMAGE_TEXT"};var s1b;var t1b;var u1b=function(){var a=_.P.apply(this,arguments)||this;a.a11yConfig=r1b;a.imageDisplayOffsetTop=0;a.imageDisplayOffsetLeft=0;a.pickerDisplayOffsetTop=0;a.pickerDisplayOffsetLeft=0;a.cropCoordinatesSaved=!1;a.previewSize=0;a.startPicker=!1;a.repositionOptional=!1;return a};
_.z(u1b,_.P);_.f=u1b.prototype;_.f.created=function(){_.XD.requestAvailability()};
_.f.ready=function(){};
_.f.onArrowKeysDown=function(a){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){a.detail.keyboardEvent.preventDefault();var b=0,c=0,d="";switch(a.detail.keyboardEvent.key){case "ArrowUp":P_a(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?d=this.a11yConfig.reachBottomOfImage:b=this.imageHeight*.05*-1;break;case "ArrowDown":P_a(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?d=this.a11yConfig.reachTopOfImage:
b=this.imageHeight*.05;break;case "ArrowLeft":P_a(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?d=this.a11yConfig.reachRightOfImage:c=this.imageWidth*.05*-1;break;case "ArrowRight":P_a(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?d=this.a11yConfig.reachLeftOfImage:c=this.imageWidth*.05}d&&_.vo(d)&&_.io(this.hostElement,"iron-announce",{text:_.vo(d)});if(c||b)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+b)),a=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),a=_.vo(this.a11yConfig.imageVerticalPosition,{x_percent:""+a,y_percent:""+(100-a)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+c)),a=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),a=_.vo(this.a11yConfig.imageHorizontalPosition,{x_percent:""+a,y_percent:""+(100-a)})),a&&_.io(this.hostElement,"iron-announce",{text:a})}};
_.f.getPreviewPosition=function(a,b,c,d){return Math.round(100*(a+b*.5-c)/d)};
_.f.displayImage=function(){var a=this.JSC$12980_pickerContainer.getBoundingClientRect().width,b=this.JSC$12980_pickerContainer.getBoundingClientRect().height,c=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),d=this.JSC$12980_imageInBackground.naturalWidth,e=this.JSC$12980_imageInBackground.naturalHeight;this.displayScale=Math.max(c/d,c/e);this.imageWidth=d*this.displayScale;this.imageHeight=e*this.displayScale;this.pickerDisplayOffsetLeft=(a-c)/2;this.pickerDisplayOffsetTop=
(b-c)/2;this.imageDisplayOffsetLeft=e>d?this.pickerDisplayOffsetLeft:(a-this.imageWidth)/2;this.imageDisplayOffsetTop=d>e?this.pickerDisplayOffsetTop:(b-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.f.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$12980_imageInBackground.src=this.imageData.toString(),this.JSC$12980_imageInPicker.src=this.imageData.toString(),this.JSC$12980_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.f.getSignedPosition=function(a,b,c){return b==="X"&&_.Fi("HTML_DIR")==="rtl"?c==="-"?a+"px":a*-1+"px":c==="-"?a*-1+"px":a+"px"};
_.f.pickerMove=function(a){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var b=this.pickerOffsetX-a.clientX,c=this.pickerOffsetY-a.clientY;this.pickerOffsetX=a.clientX;this.pickerOffsetY=a.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
c)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-b))}};
_.f.pickerMoveStart=function(a){this.startPicker=!0;this.pickerOffsetX=a.clientX;this.pickerOffsetY=a.clientY};
_.f.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.f.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.io(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.f.getPreviewOffset=function(a,b,c,d){return b&&a&&c?(d==="X"&&_.Fi("HTML_DIR")==="rtl"?c/b*a:c/b*a*-1)+"px":"0px"};
_.f.getSimpleText=function(a){return a?_.Wp(a):""};
_.f.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var a=this.cropOffsetTop/this.imageHeight,b=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,c=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,d=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.E(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.io(this.hostElement,"yt-img-crop-coordinates-update",{top:a,right:b,bottom:c,left:d})}};
_.Um.Object.defineProperties(u1b.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var a=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.vo(this.a11yConfig.imageVerticalPosition,{x_percent:""+a,y_percent:""+(100-a)})+"\n"+_.vo(this.a11yConfig.verticalRepositionInstruction)}a=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.vo(this.a11yConfig.imageHorizontalPosition,{x_percent:""+a,y_percent:""+(100-a)})+"\n"+_.vo(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.previewInstruction&&this.instruction.previewInstruction.editButtonLabel)return{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:this.instruction.previewInstruction.editButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.previewInstruction.editButtonLabel)}}}}},
saveButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction&&this.instruction.editInstruction.saveButtonLabel)return{style:"STYLE_PRIMARY",size:"SIZE_SMALL",text:this.instruction.editInstruction.saveButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.editInstruction.saveButtonLabel)}}}}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,this.previewSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,this.previewSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.cropCoordinatesSaved?"preview":"edit"}},
learnMore:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction)return this.instruction.editInstruction.learnMore}},
learnMoreUrl:{configurable:!0,enumerable:!0,get:function(){if(this.learnMore&&this.learnMore.runs&&this.learnMore.runs[0]){var a,b=(a=this.learnMore.runs[0])==null?void 0:a.navigationEndpoint,c;return((c=_.y(b,_.Kl))==null?void 0:c.url)||void 0}}}});
var OL=u1b;OL.prototype.onImageDataChange=OL.prototype.onImageDataChange;_.U([_.O(),_.W("design:type",Object)],OL.prototype,"imageData",void 0);_.U([_.O(),_.W("design:type",Object)],OL.prototype,"instruction",void 0);_.U([_.O(),_.W("design:type",Object)],OL.prototype,"a11yConfig",void 0);_.U([_.O(),_.W("design:type",Number)],OL.prototype,"imageWidth",void 0);_.U([_.O(),_.W("design:type",Number)],OL.prototype,"imageHeight",void 0);_.U([_.O(),_.W("design:type",Number)],OL.prototype,"displayScale",void 0);
_.U([_.O(),_.W("design:type",Object)],OL.prototype,"imageDisplayOffsetTop",void 0);_.U([_.O(),_.W("design:type",Object)],OL.prototype,"imageDisplayOffsetLeft",void 0);_.U([_.O(),_.W("design:type",Object)],OL.prototype,"pickerDisplayOffsetTop",void 0);_.U([_.O(),_.W("design:type",Object)],OL.prototype,"pickerDisplayOffsetLeft",void 0);_.U([_.O(),_.W("design:type",Object)],OL.prototype,"cropCoordinatesSaved",void 0);_.U([_.O(),_.W("design:type",Object)],OL.prototype,"previewSize",void 0);
_.U([_.O(),_.W("design:type",Object)],OL.prototype,"startPicker",void 0);_.U([_.O(),_.W("design:type",Number)],OL.prototype,"pickerOffsetX",void 0);_.U([_.O(),_.W("design:type",Number)],OL.prototype,"pickerOffsetY",void 0);_.U([_.O(),_.W("design:type",Object)],OL.prototype,"repositionOptional",void 0);_.U([_.ir("#picker-container"),_.W("design:type",HTMLElement)],OL.prototype,"JSC$12980_pickerContainer",void 0);_.U([_.ir("#picker"),_.W("design:type",HTMLElement)],OL.prototype,"picker",void 0);
_.U([_.ir("#image-in-picker-background"),_.W("design:type",HTMLImageElement)],OL.prototype,"JSC$12980_imageInBackground",void 0);_.U([_.ir("#image-in-picker"),_.W("design:type",HTMLImageElement)],OL.prototype,"JSC$12980_imageInPicker",void 0);_.U([_.ir("#image-in-preview-clipper"),_.W("design:type",HTMLImageElement)],OL.prototype,"JSC$12980_imageInPreviewClipper",void 0);_.U([_.ir("#full-image-as-preview"),_.W("design:type",HTMLImageElement)],OL.prototype,"imageAsPreview",void 0);
_.U([_.K("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],OL.prototype,"altLabelForImage",null);_.U([_.K("imageHeight","imageWidth"),_.W("design:type",Number),_.W("design:paramtypes",[])],OL.prototype,"pickerSize",null);_.U([_.K("imageHeight","imageWidth"),_.W("design:type",Object),_.W("design:paramtypes",[])],OL.prototype,"imageOrientationStyle",null);
_.U([_.K("instruction.previewInstruction.editButtonLabel"),_.W("design:type",Object),_.W("design:paramtypes",[])],OL.prototype,"editButton",null);_.U([_.K("instruction.editInstruction.saveButtonLabel"),_.W("design:type",Object),_.W("design:paramtypes",[])],OL.prototype,"saveButton",null);_.U([_.K("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.W("design:type",Number),_.W("design:paramtypes",[])],OL.prototype,"cropOffsetTop",null);
_.U([_.K("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.W("design:type",Number),_.W("design:paramtypes",[])],OL.prototype,"cropOffsetLeft",null);_.U([_.K("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],OL.prototype,"pickerBackgroundStyle",null);_.U([_.K("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],OL.prototype,"pickerDisplayStyle",null);
_.U([_.K("cropOffsetLeft","cropOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],OL.prototype,"imageInPickerStyle",null);_.U([_.K("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.W("design:type",String),_.W("design:paramtypes",[])],OL.prototype,"previewClipperStyle",null);_.U([_.N("imageData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OL.prototype,"onImageDataChange",null);
_.U([_.K("cropCoordinatesSaved"),_.W("design:type",String),_.W("design:paramtypes",[])],OL.prototype,"pickerModeStyle",null);_.U([_.K("instruction.editInstruction.learnMore"),_.W("design:type",Object),_.W("design:paramtypes",[])],OL.prototype,"learnMore",null);_.U([_.K("learnMore"),_.W("design:type",Object),_.W("design:paramtypes",[])],OL.prototype,"learnMoreUrl",null);OL=_.U([_.wr({is:"yt-img-crop-picker",disableElementRegistration:!0})],OL);
_.S(OL,"yt-img-crop-picker",function(){if(t1b===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-crop-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_crop_picker.yt.img.crop.picker.css.js--\x3e<div id="left-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="picker-container" class="style-scope yt-img-crop-picker"><img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" on-load="displayImage" tabindex="0" alt="[[altLabelForImage]]"><div id="overlay" hidden="[[cropCoordinatesSaved]]" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope yt-img-crop-picker"></div><div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope yt-img-crop-picker"><img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt=""></div></div><div id="preview-container" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewDetails]]"></yt-formatted-string><div id="preview-clipper" class="style-scope yt-img-crop-picker"><img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" style$="[[previewClipperStyle]]" alt="[[getSimpleText(instruction.previewInstruction.previewHeader)]]"></div><yt-button-renderer id="edit-button" data="[[editButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div></div><div id="right-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="edit-instruction" hidden="[[cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.editInstruction.header]]"></yt-formatted-string><div class="details style-scope yt-img-crop-picker"><yt-formatted-string text="[[instruction.editInstruction.details]]" class="style-scope yt-img-crop-picker"></yt-formatted-string></div><div class="details style-scope yt-img-crop-picker" id="learnmore-text"><a class="yt-simple-endpoint style-scope yt-img-crop-picker" target="_blank" href$="[[learnMoreUrl]]"><span class="style-scope yt-img-crop-picker">[[getSimpleText(learnMore)]]</span><yt-icon id="open-in-new" icon="yt-icons:open_in_new" class="style-scope yt-img-crop-picker"></yt-icon></a></div></div><yt-button-renderer id="save-button" data="[[saveButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div><div id="preview-instruction" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageDetails]]"></yt-formatted-string></div><div id="full-image-container" class="style-scope yt-img-crop-picker"><img id="full-image-as-preview" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" alt="[[getSimpleText(instruction.previewInstruction.fullImageHeader)]]"></div></div></div><iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope yt-img-crop-picker"></iron-a11y-keys>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;s1b===void 0&&(s1b=document.createElement("template"));var d=s1b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);t1b=a}a=t1b;return a},{mode:2});var v1b=function(){var a=_.P.apply(this,arguments)||this;a.errorMessage="";a.hasPreview=!1;a.isBackstagePost=!1;a.dismissButtonOverrides={size:"XS"};return a};
_.z(v1b,_.P);_.f=v1b.prototype;_.f.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},"data.selectButton":{id:"select",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.detached=function(){this.removeOverlay()};
_.f.setPreview=function(a){_.E(this.hostElement).querySelector("#preview-picker").imageData=a;this.hasPreview=!0;_.io(this.hostElement,"yt-backstage-image-select-preview")};
_.f.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var a=_.E(this.hostElement).querySelector("#dropzone");a.classList.remove("dragover");a.classList.remove("error");_.io(this.hostElement,"yt-backstage-image-select-cancel")};
_.f.setupOverlay=function(){var a=this.imageUploadEndpoint;this.removeOverlay();if(a&&a.imageValidationInfo){var b=_.E(this.hostElement).querySelector("#dropzone"),c=_.E(this.hostElement).querySelector("#select");this.overlay=new cF(a.uploadUrl,a.channelId,a.imageValidationInfo.maxFileSizeMb,a.imageValidationInfo.allowedMaxAspectRatio,b,c,!0);_.rs(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.rs(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.rs(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.rs(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.rs(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.f.removeOverlay=function(){this.overlay&&(_.Gz(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.Gz(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.Gz(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.Gz(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.Gz(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.f.onDragOver=function(a){var b=_.E(this.hostElement).querySelector("#dropzone");_.br(b,"dragover",a.value)};
_.f.onPreview=function(a){this.setPreview(a.value)};
_.f.onImageError=function(a){if(a.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var b;a=(b=this.data)==null?void 0:b.fileSizeError}else if(a.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var c;a=(c=this.data)==null?void 0:c.invalidError}else if(a.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var d;a=(d=this.data)==null?void 0:d.invalidAspectRatioError}else return;this.errorMessage=_.Wp(a);_.E(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.f.onImageAlert=function(a){this.onImageError(a)};
_.f.uploadPromise=function(){var a=this,b=this.overlay&&this.overlay.uploadPromise();if(b)return b.catch(function(){throw Error(a.data?_.Wp(a.data.uploadFailureError):"");})};
_.Um.Object.defineProperties(v1b.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var a,b;if((a=this.data)==null?0:(b=a.icon)==null?0:b.iconType)return _.es(this.data.icon.iconType)}}});
var PL=v1b;PL.prototype.setupOverlay=PL.prototype.setupOverlay;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],PL.prototype,"rendererStamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],PL.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],PL.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],PL.prototype,"imageUploadEndpoint",void 0);_.U([_.O(),_.W("design:type",Object)],PL.prototype,"errorMessage",void 0);
_.U([_.O(),_.W("design:type",cF)],PL.prototype,"overlay",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],PL.prototype,"hasPreview",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],PL.prototype,"isBackstagePost",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],PL.prototype,"selectionCancel",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],PL.prototype,"previewCancel",null);
_.U([_.K("data.icon.iconType"),_.W("design:type",Object),_.W("design:paramtypes",[])],PL.prototype,"icon",null);_.U([_.O(),_.W("design:type",Object)],PL.prototype,"dismissButtonOverrides",void 0);_.U([_.N("imageUploadEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],PL.prototype,"setupOverlay",null);PL=_.U([_.Q({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],PL);
_.S(PL,"ytd-backstage-image-select-renderer",function(){if(q1b!==void 0)return q1b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dropzone" hidden="[[hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-icon id="drop-icon" icon="[[icon]]" class="style-scope ytd-backstage-image-select-renderer"></yt-icon>\n  <span id="prompt" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <div id="select" class="style-scope ytd-backstage-image-select-renderer"></div>\n  <div class="messages style-scope ytd-backstage-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-image-select-renderer">\n      [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n<div id="image-preview" hidden="[[!hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-img-crop-picker id="preview-picker" instruction="[[data.imagePreviewSelectMetadata]]" reposition-optional="true" class="style-scope ytd-backstage-image-select-renderer">\n  </yt-img-crop-picker>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return q1b=a},{mode:1});var w1b={imageHorizontalPosition:"IMAGE_HORIZONTAL_POSITION_LABEL",imageVerticalPosition:"IMAGE_VERTICAL_POSITION_LABEL",horizontalRepositionInstruction:"REPOSITION_IMAGE_HORIZONTALLY_LABEL",verticalRepositionInstruction:"REPOSITION_IMAGE_VERTICALLY_LABEL",reachTopOfImage:"REACH_TOP_OF_IMAGE_TEXT",reachBottomOfImage:"REACH_BOTTOM_OF_IMAGE_TEXT",reachLeftOfImage:"REACH_LEFT_OF_IMAGE_TEXT",reachRightOfImage:"REACH_RIGHT_OF_IMAGE_TEXT"};var x1b;var y1b=function(){var a=_.P.apply(this,arguments)||this;a.a11yConfig=w1b;a.imageDisplayOffsetTop=0;a.imageDisplayOffsetLeft=0;a.pickerDisplayOffsetTop=0;a.pickerDisplayOffsetLeft=0;a.showPreviewContainer=!0;a.startPicker=!1;a.repositionOptional=!1;a.editOnlyMode=!1;a.savedImageDisplayOffsetTop=0;a.savedImageDisplayOffsetLeft=0;return a};
_.z(y1b,_.P);_.f=y1b.prototype;_.f.created=function(){_.XD.requestAvailability()};
_.f.ready=function(){};
_.f.onArrowKeysDown=function(a){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){a.detail.keyboardEvent.preventDefault();var b=0,c=0,d="";switch(a.detail.keyboardEvent.key){case "ArrowUp":Q_a(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?d=this.a11yConfig.reachBottomOfImage:b=this.imageHeight*.05*-1;break;case "ArrowDown":Q_a(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?d=this.a11yConfig.reachTopOfImage:
b=this.imageHeight*.05;break;case "ArrowLeft":Q_a(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?d=this.a11yConfig.reachRightOfImage:c=this.imageWidth*.05*-1;break;case "ArrowRight":Q_a(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?d=this.a11yConfig.reachLeftOfImage:c=this.imageWidth*.05}d&&_.vo(d)&&_.io(this.hostElement,"iron-announce",{text:_.vo(d)});if(c||b)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+b)),a=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),a=_.vo(this.a11yConfig.imageVerticalPosition,{x_percent:""+a,y_percent:""+(100-a)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+c)),a=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),a=_.vo(this.a11yConfig.imageHorizontalPosition,{x_percent:""+a,y_percent:""+(100-a)})),a&&_.io(this.hostElement,"iron-announce",{text:a})}};
_.f.getPreviewPosition=function(a,b,c,d){return Math.round(100*(a+b*.5-c)/d)};
_.f.calculateDisplayPosition=function(){var a=this.imageData.naturalWidth,b=this.imageData.naturalHeight;this.displayScale=Math.max(200/a,200/b);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var c=a*this.displayScale*this.imageData.previewCoordinates.left,d=b*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=b>a?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-c;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=a>b?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-d;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=a*this.displayScale;this.imageHeight=b*this.displayScale};
_.f.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.f.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.f.getSignedPosition=function(a,b,c){return b==="X"&&_.Fi("HTML_DIR")==="rtl"?c==="-"?a+"px":a*-1+"px":c==="-"?a*-1+"px":a+"px"};
_.f.pickerMove=function(a){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var b=this.pickerOffsetX-a.clientX,c=this.pickerOffsetY-a.clientY;this.pickerOffsetX=a.clientX;this.pickerOffsetY=a.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
c)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-b))}};
_.f.pickerMoveStart=function(a){this.startPicker=!0;this.pickerOffsetX=a.clientX;this.pickerOffsetY=a.clientY};
_.f.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var a=this.generateCropPreview();a&&_.io(this.hostElement,"ytd-backstage-image-preview-coordinates-update",a)};
_.f.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.io(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.f.deleteImage=function(){_.io(this.hostElement,"ytd-backstage-image-preview-delete")};
_.f.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.f.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var a=this.generateCropPreview();a&&_.io(this.hostElement,"ytd-backstage-image-preview-coordinates-save",a)};
_.f.getPreviewOffset=function(a,b,c){return b&&a?(c==="X"&&_.Fi("HTML_DIR")==="rtl"?300/b*a:300/b*a*-1)+"px":"0px"};
_.f.getSimpleText=function(a){return a?_.Wp(a):""};
_.f.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize)return{top:this.cropOffsetTop/this.imageHeight,right:(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,bottom:(this.cropOffsetTop+this.pickerSize)/this.imageHeight,left:this.cropOffsetLeft/this.imageWidth}};
_.Um.Object.defineProperties(y1b.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var a=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.vo(this.a11yConfig.imageVerticalPosition,{x_percent:""+a,y_percent:""+(100-a)})+"\n"+_.vo(this.a11yConfig.verticalRepositionInstruction)}a=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.vo(this.a11yConfig.imageHorizontalPosition,{x_percent:""+a,y_percent:""+(100-a)})+"\n"+_.vo(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.instruction)==null?void 0:(b=a.previewInstruction)==null?void 0:b.editButtonLabel;return c?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:c,accessibilityData:{accessibilityData:{label:this.getSimpleText(c)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d,e=this.editOnlyMode?(a=this.instruction)==null?void 0:(b=a.editInstruction)==null?void 0:b.saveImagesButtonLabel:(c=this.instruction)==null?void 0:(d=c.editInstruction)==null?void 0:d.saveButtonLabel;return e?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:e,accessibilityData:{accessibilityData:{label:this.getSimpleText(e)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.instruction)==null?void 0:(b=a.previewInstruction)==null?void 0:b.deleteButtonLabel;return c?{size:"SIZE_SMALL",text:c,accessibilityData:{accessibilityData:{label:this.getSimpleText(c)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.instruction)==null?void 0:(b=a.editInstruction)==null?void 0:b.cancelButtonLabel;a=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return c?{style:a,size:"SIZE_SMALL",text:c,accessibilityData:{accessibilityData:{label:this.getSimpleText(c)}}}:void 0}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.showPreviewContainer?"preview":"edit"}}});
var QL=y1b;QL.prototype.onEditOnlyModeUpdate=QL.prototype.onEditOnlyModeUpdate;QL.prototype.onImageChange=QL.prototype.onImageChange;_.U([_.O(),_.W("design:type",N_a)],QL.prototype,"imageData",void 0);_.U([_.O(),_.W("design:type",Object)],QL.prototype,"instruction",void 0);_.U([_.O(),_.W("design:type",Object)],QL.prototype,"a11yConfig",void 0);_.U([_.O(),_.W("design:type",Number)],QL.prototype,"imageWidth",void 0);_.U([_.O(),_.W("design:type",Number)],QL.prototype,"imageHeight",void 0);
_.U([_.O(),_.W("design:type",Number)],QL.prototype,"displayScale",void 0);_.U([_.O(),_.W("design:type",Object)],QL.prototype,"imageDisplayOffsetTop",void 0);_.U([_.O(),_.W("design:type",Object)],QL.prototype,"imageDisplayOffsetLeft",void 0);_.U([_.O(),_.W("design:type",Object)],QL.prototype,"pickerDisplayOffsetTop",void 0);_.U([_.O(),_.W("design:type",Object)],QL.prototype,"pickerDisplayOffsetLeft",void 0);_.U([_.O(),_.W("design:type",Object)],QL.prototype,"showPreviewContainer",void 0);
_.U([_.O(),_.W("design:type",Object)],QL.prototype,"startPicker",void 0);_.U([_.O(),_.W("design:type",Number)],QL.prototype,"pickerOffsetX",void 0);_.U([_.O(),_.W("design:type",Number)],QL.prototype,"pickerOffsetY",void 0);_.U([_.O(),_.W("design:type",Object)],QL.prototype,"repositionOptional",void 0);_.U([_.O(),_.W("design:type",Object)],QL.prototype,"editOnlyMode",void 0);_.U([_.ir("#picker-container"),_.W("design:type",HTMLElement)],QL.prototype,"JSC$12993_pickerContainer",void 0);
_.U([_.ir("#picker"),_.W("design:type",HTMLElement)],QL.prototype,"picker",void 0);_.U([_.ir("#preview-clipper"),_.W("design:type",HTMLElement)],QL.prototype,"previewClipper",void 0);_.U([_.ir("#image-in-picker-background"),_.W("design:type",HTMLImageElement)],QL.prototype,"JSC$12993_imageInBackground",void 0);_.U([_.ir("#image-in-picker"),_.W("design:type",HTMLImageElement)],QL.prototype,"JSC$12993_imageInPicker",void 0);
_.U([_.ir("#image-in-preview-clipper"),_.W("design:type",HTMLImageElement)],QL.prototype,"JSC$12993_imageInPreviewClipper",void 0);_.U([_.K("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],QL.prototype,"altLabelForImage",null);_.U([_.K("imageHeight","imageWidth"),_.W("design:type",Number),_.W("design:paramtypes",[])],QL.prototype,"pickerSize",null);
_.U([_.K("imageHeight","imageWidth"),_.W("design:type",Object),_.W("design:paramtypes",[])],QL.prototype,"imageOrientationStyle",null);_.U([_.K("instruction"),_.W("design:type",Object),_.W("design:paramtypes",[])],QL.prototype,"editButton",null);_.U([_.K("instruction","editOnlyMode"),_.W("design:type",Object),_.W("design:paramtypes",[])],QL.prototype,"saveButton",null);_.U([_.K("instruction"),_.W("design:type",Object),_.W("design:paramtypes",[])],QL.prototype,"deleteButton",null);
_.U([_.K("instruction","editOnlyMode"),_.W("design:type",Object),_.W("design:paramtypes",[])],QL.prototype,"cancelButton",null);_.U([_.K("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.W("design:type",Number),_.W("design:paramtypes",[])],QL.prototype,"cropOffsetTop",null);_.U([_.K("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.W("design:type",Number),_.W("design:paramtypes",[])],QL.prototype,"cropOffsetLeft",null);
_.U([_.K("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],QL.prototype,"pickerBackgroundStyle",null);_.U([_.K("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],QL.prototype,"pickerDisplayStyle",null);_.U([_.K("cropOffsetLeft","cropOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],QL.prototype,"imageInPickerStyle",null);
_.U([_.K("cropOffsetLeft","cropOffsetTop","pickerSize"),_.W("design:type",String),_.W("design:paramtypes",[])],QL.prototype,"previewClipperStyle",null);_.U([_.mr("imageData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],QL.prototype,"onImageChange",null);_.U([_.mr("editOnlyMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],QL.prototype,"onEditOnlyModeUpdate",null);
_.U([_.K("showPreviewContainer"),_.W("design:type",String),_.W("design:paramtypes",[])],QL.prototype,"pickerModeStyle",null);QL=_.U([_.Q({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],QL);
_.S(QL,"ytd-backstage-image-preview-renderer",function(){if(x1b!==void 0)return x1b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[pickerModeStyle]] style-scope ytd-backstage-image-preview-renderer">\n  <div id="preview-container" hidden="[[!showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="preview-clipper" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" style$="[[previewClipperStyle]]">\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="delete-button" data="[[deleteButton]]" on-click="deleteImage" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="edit-button" data="[[editButton]]" on-click="editCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n  <div id="edit-container" hidden="[[showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="picker-container" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" alt="[[altLabelForImage]]">\n      <div id="overlay" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope ytd-backstage-image-preview-renderer">\n      </div>\n      <div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope ytd-backstage-image-preview-renderer">\n        <img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt="">\n      </div>\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="cancel-button" data="[[cancelButton]]" on-click="cancelReposition" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="save-button" data="[[saveButton]]" on-click="saveCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope ytd-backstage-image-preview-renderer">\n</iron-a11y-keys>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return x1b=a},{mode:1});var z1b;var A1b;var B1b=function(){var a=_.P.apply(this,arguments)||this;a.selected=!1;return a};
_.z(B1b,_.P);_.f=B1b.prototype;_.f.computeSelected=function(a){return a==null?void 0:a.selected};
_.f.computeTransform=function(a,b,c){var d,e,g=(e=(d=this.imageContainer)==null?void 0:d.getBoundingClientRect())!=null?e:{width:0,height:0};d=Math.max(g.width/b,g.height/c);c=c*d*a.top;return"translateX("+this.getSignedPosition(b*d*a.left,"X","-")+") translateY("+this.getSignedPosition(c,"Y","-")+")"};
_.f.getSignedPosition=function(a,b,c){return b==="X"&&_.Fi("HTML_DIR")==="rtl"?c==="-"?a+"px":a*-1+"px":c==="-"?a*-1+"px":a+"px"};
_.f.onClick=function(){var a;_.io(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(a=this.data)==null?void 0:a.image)};
_.f.onKeyPress=function(a){if(a.keyCode===13)this.onClick()};
_.Um.Object.defineProperties(B1b.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:(b=a.image)==null?void 0:b.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)!=null&&a.image){var b;a=(b=this.data)==null?void 0:b.image;return a.previewCoordinates.top!==0||a.previewCoordinates.left!==0?(b=this.computeTransform(a.previewCoordinates,a.naturalWidth,a.naturalHeight),a.naturalHeight>=a.naturalWidth?"width:inherit;transform:"+b+";":"height:inherit;transform:"+b+";"):a.naturalHeight>=a.naturalWidth?"width:inherit;":"height:inherit;"}}}});
var RL=B1b;RL.prototype.onKeyPress=RL.prototype.onKeyPress;_.U([_.ir(".image-container"),_.W("design:type",HTMLElement)],RL.prototype,"imageContainer",void 0);_.U([_.O(),_.W("design:type",Object)],RL.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.W("design:type",Object)],RL.prototype,"selected",void 0);_.U([_.K("data.image"),_.W("design:type",Object),_.W("design:paramtypes",[])],RL.prototype,"thumbnailUrl",null);
_.U([_.K("data.image","data.image.previewCoordinates"),_.W("design:type",Object),_.W("design:paramtypes",[])],RL.prototype,"thumbnailStyle",null);_.U([_.M("keypress"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],RL.prototype,"onKeyPress",null);RL=_.U([_.Q({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],RL);
_.S(RL,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(A1b!==void 0)return A1b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-backstage-multi-image-thumbnail-renderer">\n  <div class="image-container style-scope ytd-backstage-multi-image-thumbnail-renderer" role="button" tabindex="0" on-click="onClick">\n    <img class="thumbnail-image style-scope ytd-backstage-multi-image-thumbnail-renderer" style$="[[thumbnailStyle]]" src$="[[thumbnailUrl]]" alt="">\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return A1b=a},{mode:2});var SL=function(a,b,c){c=c===void 0?!1:c;_.Hz.call(this);var d=this;this.dropZoneOverlay=new vE(a);this.selectOverlay=c?new wE(b,"multiple_file",["image/*"]):new wE(b,"single_file",["image/*"]);this.handler=new _.an(this);_.kg(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(b,"click",function(){d.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.z(SL,_.Hz);SL.prototype.onChange=function(a){var b;(b=a.files)!=null&&b.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:a.files}))};var C1b=function(){var a=_.P.apply(this,arguments)||this;a.addImageErrorMessage="";a.errorMessage="";a.images=[];a.selectedImageIndex=0;a.modern=_.w("web_modern_buttons");a.JSC$13006_imageId=0;return a};
_.z(C1b,_.P);_.f=C1b.prototype;_.f.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.io(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.f.observeDragToReorder=function(){var a=this;if(this.showImagesPreview){var b,c=eLb(_.kG.getInstance(),(b=this.data)==null?void 0:b.dragToReorderTooltip);_.zk.addLowPriorityJob(function(){_.po(a.hostElement,c,a.thumbnailDragDropArea)})}};
_.f.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dataForAddImageButton:{id:"add-image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},thumbnailRenderers:{id:"thumbnail-drag-drop-area",mapping:{renderer:"ytd-backstage-multi-image-thumbnail-renderer"},events:!0,reuseComponents:!0,stamperStableList:!0}}};
_.f.computeThumbnail=function(a){return(a==null?void 0:a.localImageSrc)||void 0};
_.f.onRendererstamperFinished=function(){_.hWb(this.ytReorderableBehavior,_.E(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.E(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.f.handleDrop=function(a){var b=a.currDragItem;if(b!=null&&b.data){a=this.images[this.selectedImageIndex];var c=b.data.image,d=this.images.indexOf(c)||0;b=_.Na(b.parentNode.children,b);this.images.splice(d,1);this.images.splice(b,0,c);this.images=[].concat(_.De(this.images));this.selectedImageIndex=this.images.indexOf(a)}};
_.f.setUpImagePicker=function(){var a=this.imageUploadEndpoint;a&&a.imageValidationInfo&&(this.uploadManager=new ML(a.uploadUrl,a.channelId),this.initialPicker||(this.initialPicker=new SL(this.dropzone,this.selectLink,!0),_.rs(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new SL(this.addImageButtonContainer,this.addImageSelectButton),_.rs(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.rs(this.JSC$13006_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.rs(this.JSC$13006_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.rs(_.E(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.f.detached=function(){this.initialPicker&&(_.Gz(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.Gz(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.f.onInitialSelectImages=function(a){var b=this;return _.l(function(c){return _.p(c,b.onSelectImages(a,!1),0)})};
_.f.onAddImage=function(a){var b=this;return _.l(function(c){return _.p(c,b.onSelectImages(a,!0),0)})};
_.f.onSelectImages=function(a,b){var c=this,d,e,g,k,m,n,r,t,u,x,A,C,F,J,I,R,da,V,fa,aa;return _.l(function(ma){switch(ma.nextAddress){case 1:b?c.addImageErrorMessage="":(c.images=[],c.errorMessage="");d=a.detail;e=c.validateImages([].concat(_.De(d)));if(e!=="")return b?c.addImageErrorMessage=e:c.errorMessage=e,ma.return();g=[].concat(_.De(d)).map(function(Ba){return(new aF(c.maxAspectRatio,!1,!0)).transform(Ba)});
return _.p(ma,Promise.allSettled(g),2);case 2:k=ma.yieldResult,m=_.h(k.entries()),n=m.next();case 3:if(n.done){ma.jumpTo(5);break}r=n.value;t=_.h(r);u=t.next().value;x=t.next().value;A=u;C=x;if(C.status!=="fulfilled"){I=J=F=void 0;b?c.addImageErrorMessage=_.Wp((F=c.data)==null?void 0:F.invalidError):c.errorMessage=c.errorMessage===""?_.Wp((J=c.data)==null?void 0:J.invalidError):_.Wp((I=c.data)==null?void 0:I.multiFileError);ma.jumpTo(4);break}R=C.value;R.cropped&&_.io(c.hostElement,"yt-backstage-multi-image-cropped");
if(R.invalidAspectRatio){fa=V=da=void 0;b?c.addImageErrorMessage=_.Wp((da=c.data)==null?void 0:da.invalidAspectRatioError):c.errorMessage=c.errorMessage===""?_.Wp((V=c.data)==null?void 0:V.invalidAspectRatioError):_.Wp((fa=c.data)==null?void 0:fa.multiFileError);ma.jumpTo(4);break}return _.p(ma,O_a(c.JSC$13006_imageId,a.detail[A],R.transformedData),8);case 8:aa=ma.yieldResult,c.images.push(aa),c.JSC$13006_imageId++;case 4:n=m.next();ma.jumpTo(3);break;case 5:if(c.errorMessage!==""||c.addImageErrorMessage!==
"")return ma.return();b?j1b(c.uploadManager,[c.images[c.images.length-1]]):j1b(c.uploadManager,c.images);c.images=[].concat(_.De(c.images));c.selectedImageIndex=b?Math.max(c.images.length-1,0):0;_.io(c.hostElement,"yt-backstage-multi-image-select");_.ue(ma)}})};
_.f.onThumbnailClick=function(a){if(a=a.event_.detail)this.selectedImageIndex=this.images.indexOf(a)};
_.f.validateImages=function(a){if(a.length>5){var b;return _.Wp((b=this.data)==null?void 0:b.multiImageExceedMaxImageCountError)}var c=1048576*this.maxFileSizeMb;a=a.filter(function(g){return g.size>c}).length;
if(a===0)return"";var d,e;a=a>1?(d=this.data)==null?void 0:d.multiFileError:(e=this.data)==null?void 0:e.fileSizeError;return _.Wp(a)};
_.f.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.De(this.images));this.selectedImageIndex=0};
_.f.repositionImage=function(a){this.images[this.selectedImageIndex].previewCoordinates=a.event_.detail;this.images=[].concat(_.De(this.images))};
_.f.getAllUploadStatuses=function(){var a=this,b,c,d,e;return _.l(function(g){if(g.nextAddress==1)return _.p(g,a.uploadManager.getAllUploadStatuses(),2);b=g.yieldResult;c=_.h(b);for(d=c.next();!d.done;d=c.next())if(e=d.value,e.encryptedBlobId===void 0)return g.return(k1b(a.uploadManager));return g.return(b)})};
_.f.hasImages=function(){return this.images.length>0};
_.f.cancel=function(){for(var a=this.uploadManager,b=_.h(a.imagesUploadData),c=b.next();!c.done;c=b.next())a.cancel(c.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.io(this.hostElement,"yt-backstage-multi-image-cancel")};
_.Um.Object.defineProperties(C1b.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.imageUploadEndpoint)==null?void 0:(b=a.imageValidationInfo)==null?void 0:b.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.imageUploadEndpoint)==null?void 0:(b=a.imageValidationInfo)==null?void 0:b.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var a,b;if((a=this.data)==null?0:(b=a.icon)==null?0:b.iconType)return _.es(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.addImageButton}},
dropzoneClass:{configurable:!0,enumerable:!0,get:function(){return this.errorMessage===""?"":"error"}},
showImagesPreview:{configurable:!0,enumerable:!0,get:function(){return this.images.length>0&&this.errorMessage===""}},
containMaxImages:{configurable:!0,enumerable:!0,get:function(){return this.images.length>=5}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]||void 0}},
thumbnailRenderers:{configurable:!0,enumerable:!0,get:function(){var a=this;return(this.images||[]).map(function(b,c){return{renderer:{image:b,selected:c===a.selectedImageIndex}}})}}});
var TL=C1b;TL.prototype.setUpImagePicker=TL.prototype.setUpImagePicker;TL.prototype.onRendererstamperFinished=TL.prototype.onRendererstamperFinished;TL.prototype.observeDragToReorder=TL.prototype.observeDragToReorder;TL.prototype.observeAddImageError=TL.prototype.observeAddImageError;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],TL.prototype,"rendererStamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],TL.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.jWb),_.W("design:type",Object)],TL.prototype,"ytReorderableBehavior",void 0);_.U([_.ir("#dropzone"),_.W("design:type",HTMLElement)],TL.prototype,"dropzone",void 0);_.U([_.ir("#select-link"),_.W("design:type",HTMLElement)],TL.prototype,"selectLink",void 0);_.U([_.ir("#thumbnail-drag-drop-area"),_.W("design:type",HTMLElement)],TL.prototype,"thumbnailDragDropArea",void 0);_.U([_.ir("#add-image-button-container"),_.W("design:type",HTMLElement)],TL.prototype,"addImageButtonContainer",void 0);
_.U([_.ir("#add-image-button"),_.W("design:type",HTMLElement)],TL.prototype,"addImageSelectButton",void 0);_.U([_.ir("#image-preview-container"),_.W("design:type",Object)],TL.prototype,"JSC$13006_imagePreviewContainer",void 0);_.U([_.O(),_.W("design:type",Object)],TL.prototype,"addImageErrorMessage",void 0);_.U([_.O(),_.W("design:type",Object)],TL.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],TL.prototype,"errorMessage",void 0);
_.U([_.O(),_.W("design:type",Object)],TL.prototype,"imageUploadEndpoint",void 0);_.U([_.O(),_.W("design:type",Array)],TL.prototype,"images",void 0);_.U([_.O(),_.W("design:type",SL)],TL.prototype,"initialPicker",void 0);_.U([_.O(),_.W("design:type",SL)],TL.prototype,"addImagePicker",void 0);_.U([_.O(),_.W("design:type",ML)],TL.prototype,"uploadManager",void 0);_.U([_.O(),_.W("design:type",Object)],TL.prototype,"selectedImageIndex",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],TL.prototype,"modern",void 0);_.U([_.K("imageUploadEndpoint"),_.W("design:type",Number),_.W("design:paramtypes",[])],TL.prototype,"maxAspectRatio",null);_.U([_.K("imageUploadEndpoint"),_.W("design:type",Number),_.W("design:paramtypes",[])],TL.prototype,"maxFileSizeMb",null);_.U([_.K("data.icon.iconType"),_.W("design:type",Object),_.W("design:paramtypes",[])],TL.prototype,"dropIcon",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],TL.prototype,"selectionCancel",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],TL.prototype,"previewCancel",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],TL.prototype,"dataForAddImageButton",null);_.U([_.K("errorMessage"),_.W("design:type",String),_.W("design:paramtypes",[])],TL.prototype,"dropzoneClass",null);
_.U([_.K("images"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],TL.prototype,"showImagesPreview",null);_.U([_.K("images"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],TL.prototype,"containMaxImages",null);_.U([_.N("addImageErrorMessage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],TL.prototype,"observeAddImageError",null);
_.U([_.N("showImagesPreview"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],TL.prototype,"observeDragToReorder",null);_.U([_.K("images","selectedImageIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],TL.prototype,"selectedImageData",null);_.U([_.K("images","selectedImageIndex"),_.W("design:type",Array),_.W("design:paramtypes",[])],TL.prototype,"thumbnailRenderers",null);
_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],TL.prototype,"onRendererstamperFinished",null);_.U([_.N("imageUploadEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],TL.prototype,"setUpImagePicker",null);TL=_.U([_.Q({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],TL);
_.S(TL,"ytd-backstage-multi-image-select-renderer",function(){if(z1b!==void 0)return z1b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="dropzone" class$="[[dropzoneClass]] style-scope ytd-backstage-multi-image-select-renderer" hidden="[[showImagesPreview]]">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="drop-icon-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <yt-icon id="drop-icon" icon="[[dropIcon]]" class="style-scope ytd-backstage-multi-image-select-renderer"></yt-icon>\n  </div>\n  <span id="prompt" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <a id="select-link" class="style-scope ytd-backstage-multi-image-select-renderer">\n     [[getSimpleString(data.selectButton)]]\n  </a>\n  <div class="messages style-scope ytd-backstage-multi-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-multi-image-select-renderer">\n       [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-multi-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n\n\n<div id="multi-image-container" hidden="[[!showImagesPreview]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="thumbnail-images-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <div id="thumbnail-drag-drop-area" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    <div id="add-image-button-container" hidden="[[containMaxImages]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n       <div id="add-image-button" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    </div>\n  </div>\n  <div id="preview" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <ytd-backstage-image-preview-renderer id="image-preview-container" image-data="[[selectedImageData]]" instruction="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return z1b=a},{mode:1});var D1b;var E1b=function(){var a=_.P.apply(this,arguments)||this;a.quizOptions=[];a.explanationPlaceholderText="";a.optionPlaceholderText="";a.correctAnswerIndex=-1;a.isMarkAnswerTooltipShown=!1;a.timer=0;return a};
_.z(E1b,_.P);_.f=E1b.prototype;_.f.dataChanged=function(){this.optionPlaceholderText=_.Wp(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.Wp(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.f.onMarkCorrectAnswer=function(a){var b,c=((b=this.quizOptions[this.correctAnswerIndex])==null?void 0:b.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[a.model.index]=Object.assign({},this.quizOptions[a.model.index],{explanationText:c,isCorrect:!0});this.correctAnswerIndex=a.model.index;this.quizOptions=[].concat(_.De(this.quizOptions))};
_.f.updatePlaceholderTexts=function(){for(var a=!1,b=[],c=0;c<this.quizOptions.length;c++){var d=this.optionPlaceholderText+" "+(c+1),e=void 0;((e=this.quizOptions[c])==null?void 0:e.placeholderText)!==d?(a=!0,b.push(Object.assign({},this.quizOptions[c],{placeholderText:d}))):b.push(this.quizOptions[c])}a&&(this.quizOptions=b);this.isValid()?_.io(this.hostElement,"yt-commentbox-post-enable"):_.io(this.hostElement,"yt-commentbox-post-disable")};
_.f.getSimpleString=function(a){return _.Wp(a)};
_.f.createQuizOptions=function(a){var b=[],c;a=(c=a==null?void 0:a.minQuizOptions)!=null?c:0;for(c=0;c<a;c++)b.push(this.createQuizOption());return b};
_.f.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.De(this.quizOptions),[this.createQuizOption()]))};
_.f.onInput=function(){this.quizOptions=[].concat(_.De(this.quizOptions))};
_.f.onExplanationInput=function(){_.io(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.f.onRemoveQuizOption=function(a){this.quizOptions.splice(a.model.index,1);a.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:a.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.De(this.quizOptions));this.quizOptions.length===0&&_.io(this.hostElement,"yt-quiz-attachment-dismiss")};
_.f.updateHintRenderer=function(){var a=this;clearTimeout(this.timer);this.timer=setTimeout(function(){a.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.f.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var a=0,b=0,c=_.h(this.quizOptions),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0;if(((e=d.optionText)==null?void 0:e.trim())!==""||d.isCorrect){d.isCorrect&&b++;e=void 0;if(this.hasCustomOptionText&&((e=d.optionText)==null?void 0:e.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;a++}}return a>=
Number(this.editorInfo.minQuizOptions)&&b===1};
_.f.getPostCreateOptions=function(){for(var a=[],b=_.h(this.quizOptions),c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;((d=c.optionText)==null?void 0:d.trim())!==""&&a.push({pollOption:{text:c.optionText,explanation:c.explanationText},isCorrect:c.isCorrect})}return a};
_.f.getExplanationText=function(){var a;return((a=this.quizOptions[this.correctAnswerIndex])==null?void 0:a.explanationText)||""};
_.f.maybeDisplayMarkAnswerEduToolTip=function(){var a,b,c,d,e,g,k;this.shouldShowMarkAnswerTooltip()&&((a=this.editorInfo)==null?0:(b=a.markAnswerButton)==null?0:(c=b.buttonRenderer)==null?0:(d=c.hint)==null?0:(e=d.hintRenderer)==null?0:(g=e.content)==null?0:(k=g.bubbleHintRenderer)==null?0:k.text)&&(_.kG.getInstance(),a=lG(this.editorInfo.markAnswerButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,void 0,"OPEN_POPUP_POSITION_TOP",void 0,"mark-answer-button-edu-displayed-impression"),
this.isMarkAnswerTooltipShown=!0,(a==null?void 0:a.length)>0&&this.optionSelectors&&_.hs(a[0],this.optionSelectors[0]))};
_.f.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var a=0,b=_.h(this.quizOptions),c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;((d=c.optionText)==null?void 0:d.trim())!==""&&a++;if(c.isCorrect)return!1}return a<2?!1:!0};
_.f.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.f.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.f.updateOptionTextFromBinding=function(a){if(a.target){var b=Array.from(_.E(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(a.target);if(b>=0){var c;this.quizOptions[b].optionText=(c=a.detail.value)!=null?c:""}}};
_.Um.Object.defineProperties(E1b.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.editorInfo)==null?void 0:(b=a.addOptionButton)==null?void 0:b.buttonRenderer;c&&(c.style="STYLE_SUGGESTIVE",c.size="SIZE_SMALL",c.isDisabled=!this.isAllowedToAddOption);return(c==null?0:c.text)?c:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var a,b;return this.quizOptions.length<((b=(a=this.editorInfo)==null?void 0:a.maxQuizOptions)!=null?b:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(a){var b;return(b=a.optionText)==null?void 0:b.trim()})}}});
var UL=E1b;UL.prototype.updatePlaceholderTexts=UL.prototype.updatePlaceholderTexts;UL.prototype.dataChanged=UL.prototype.dataChanged;_.U([_.O(),_.W("design:type",Object)],UL.prototype,"editorInfo",void 0);_.U([_.O(),_.W("design:type",Array)],UL.prototype,"quizOptions",void 0);_.U([_.O(),_.W("design:type",Object)],UL.prototype,"explanationPlaceholderText",void 0);_.U([_.jr(".option-selector-button"),_.W("design:type",Array)],UL.prototype,"optionSelectors",void 0);
_.U([_.mr("editorInfo"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],UL.prototype,"dataChanged",null);_.U([_.K("editorInfo","isAllowedToAddOption","quizOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],UL.prototype,"addAnswerButton",null);_.U([_.K("editorInfo","quizOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],UL.prototype,"isAllowedToAddOption",null);
_.U([_.mr("quizOptions"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],UL.prototype,"updatePlaceholderTexts",null);_.U([_.K("quizOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],UL.prototype,"hasCustomOptionText",null);UL=_.U([_.Q({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],UL);
_.S(UL,"ytd-backstage-quiz-editor-renderer",function(){if(D1b!==void 0)return D1b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return D1b=a},{mode:2});var F1b;var G1b=(Jv.FIRSTDAYOFWEEK+1)%7;var H1b;var I1b=[],J1b=0,K1b=0;J1b=0;K1b=24;if(.25*(K1b-J1b)<0)H1b=[];else{for(var L1b=J1b;L1b<K1b;L1b+=.25)I1b.push(L1b);H1b=I1b}var M1b=H1b.map(function(a){a=a*60*60;return{secondsSinceMidnight:a,text:(new Tp(7)).format(new Date(0,0,0,0,0,a))}});var N1b;var O1b=function(){var a=_.P.apply(this,arguments)||this;a.skipNextOpenDialog=!1;a.errorMessage="";return a};
_.z(O1b,_.P);_.f=O1b.prototype;_.f.attached=function(){var a=this,b=new MutationObserver(function(){a.JSC$13038_calendarMain.scrollHeight>0&&(b.disconnect(),a.calendarConfig&&a.calendarConfig.selectedDate&&a.scrollToDate())});
b.observe(this.JSC$13038_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){b.disconnect()},1E3)};
_.f.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.f.onDateTextChange=function(){if(this.calendarConfig){var a=this.validateDateText();a.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(a.details)):this.textbox.setAttribute("invalid","")}};
_.f.handleDayClick=function(a){a.model.day.date&&(this.commitDate(a.model.day.date),this.dialog.close())};
_.f.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var a=Z_a(this.calendarConfig.selectedDate,this.renderData);a!==void 0&&this.JSC$13038_calendarMain.scrollToIndex(a)}};
_.f.scrollToNextMonth=function(){this.JSC$13038_calendarMain.scrollToIndex(this.JSC$13038_calendarMain.firstVisibleIndex+1)};
_.f.scrollToPrevMonth=function(){this.JSC$13038_calendarMain.firstVisibleIndex===0&&this.JSC$13038_calendarMain.scrollTo(0,0);this.JSC$13038_calendarMain.scrollToIndex(this.JSC$13038_calendarMain.firstVisibleIndex-1)};
_.f.onFormSubmit=function(a){a.preventDefault();this.calendarConfig&&(a=this.validateDateText(),a.isValid&&(this.commitDate(a.details),this.dialog.close()))};
_.f.onEscOrClickingOutside=function(a){a=a.detail.path&&!!a.detail.path.length&&a.detail.path[0];if(a.classList.contains("ytd-calendar-date-picker")){a===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var b=0;b<this.dropdownButton.children.length;b++)this.dropdownButton.children[b]===a&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}a=this.textbox.value!==this.dateText;b=this.validateDateText();a&&b.isValid&&this.commitDate(b.details);this.dialog.close();this.textbox.value=
this.dateText};
_.f.commitDate=function(a){this.calendarConfig&&(this.set("calendarConfig.selectedDate",a),_.io(this.hostElement,"ytd-calendar-date-selected",a))};
_.f.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var a=this.textbox.value;var b=new Date;a=(new b1a(2)).parse(a,b,{validate:!0})===a.length?X_a(b):void 0;if(!a)return this.errorMessage=_.vo("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};b=this.calendarConfig.start;var c=this.calendarConfig.end;if(S_a(a,b))return this.errorMessage=_.vo("ENTER_DATE_OR_LATER",{allowed_date:W_a(b)}),{isValid:!1,details:void 0};if(S_a(c,a))return this.errorMessage=
_.vo("ENTER_DATE_OR_EARLIER",{allowed_date:W_a(c)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:a}};
_.Um.Object.defineProperties(O1b.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?W_a(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var a=this.calendarConfig,b=[],c=0;c<7;c++)b.push(Jv.NARROWWEEKDAYS[(c+G1b)%7]);c=[];for(var d=new Date(a.start.year,a.start.month);d.getFullYear()<a.end.year||d.getFullYear()===a.end.year&&d.getMonth()<=a.end.month;){var e=c,g=e.push,k=d.getFullYear(),m=d.getMonth(),n=a,r=void 0,t=[],u=Object.freeze({extraCssClass:"invisible",debugClass:""}),x=new Date(k,m),A=X_a(x);x=x.getDay();for(var C=X_a(new Date);A.month===
m;){x!==G1b&&r||(r=Array.from({length:7}).fill(u),t.push(r));var F={date:{year:k,month:m,day:A.day},extraCssClass:"",debugClass:""};n.selectedDate&&F.date&&R_a(F.date,n.selectedDate)&&(F.extraCssClass+=" selected");if(S_a(A,n.start)||S_a(n.end,A))F.extraCssClass+=" disabled";R_a(A,C)&&(F.extraCssClass+=" today");F.extraCssClass=F.extraCssClass.trim();r[(x-G1b+7)%7]=F;A=U_a(A);x=(x+1)%7}g.call(e,{weeks:t,monthLabel:Jv.SHORTMONTHS[m]+" "+k,year:k,month:m,monthLabelExtraCssClass:t[0][2]===u?"shift-down-label":
""});d.setMonth(d.getMonth()+1)}return{months:c,daysOfWeekLabel:b}}}}});
var VL=O1b;VL.prototype.onEscOrClickingOutside=VL.prototype.onEscOrClickingOutside;VL.prototype.scrollToDate=VL.prototype.scrollToDate;_.U([_.O(),_.W("design:type",Object)],VL.prototype,"calendarConfig",void 0);_.U([_.O(),_.W("design:type",Object)],VL.prototype,"skipNextOpenDialog",void 0);_.U([_.O(),_.W("design:type",Object)],VL.prototype,"errorMessage",void 0);_.U([_.ir("#textbox"),_.W("design:type",HTMLInputElement)],VL.prototype,"textbox",void 0);
_.U([_.ir("#calendar-dialog"),_.W("design:type",Object)],VL.prototype,"dialog",void 0);_.U([_.ir("#calendar-main"),_.W("design:type",Object)],VL.prototype,"JSC$13038_calendarMain",void 0);_.U([_.ir("#date-picker"),_.W("design:type",HTMLElement)],VL.prototype,"dropdownButton",void 0);_.U([_.K("calendarConfig.selectedDate"),_.W("design:type",String),_.W("design:paramtypes",[])],VL.prototype,"dateText",null);
_.U([_.K("calendarConfig","calendarConfig.selectedDate"),_.W("design:type",Object),_.W("design:paramtypes",[])],VL.prototype,"renderData",null);_.U([_.N("renderData","calendarConfig.selectedDate"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VL.prototype,"scrollToDate",null);_.U([_.M("iron-overlay-canceled"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],VL.prototype,"onEscOrClickingOutside",null);
VL=_.U([_.wr({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],VL);
_.S(VL,"ytd-calendar-date-picker",function(){if(N1b!==void 0)return N1b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return N1b=a},{mode:2});var P1b=_.vo("UTC_OFFSET_FORMAT",{utc_offset:(new Tp("Z")).format(new Date)}),Q1b=(new Date).getTimezoneOffset()*-60,R1b=new Date,S1b,T1b=Sp(R1b.getTimezoneOffset());S1b=Lrb(Nrb(T1b,R1b));var U1b=_.vo("LOCAL_TIME_GMT_LABEL",{gmt_text:S1b.replace("+0","+").replace("-0","-").replace(":00","")}),V1b=function(){var a=_.P.apply(this,arguments)||this;a.selectedTimeIndex=0;a.selectedTimezoneIndex=0;a.timeOfDayOptions=M1b;return a};
_.z(V1b,_.P);_.f=V1b.prototype;_.f.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var a=V_a();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=a,this.selectedTimeIndex=0;else{var b=Y_a(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},a,{selectedDate:b.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(c){return c.secondsSinceMidnight===b.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.f.onDatePicked=function(a){this.selectedDate=a.detail};
_.f.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.io(this.hostElement,"ytd-date-time-selection-cancelled")};
_.f.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var a=this.selectedDate;a=new Date(a.year,a.month,a.day);_.io(this.hostElement,"ytd-date-time-selection-update",Math.floor(a.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+a.getTimezoneOffset()*60))}};
_.f.getTimezoneFormat=function(a){return a.localizedDisplayText?a.localizedDisplayText:_.vo("TIMEZONE_FORMAT",{utc_offset_text:""+a.localizedUtcOffset,city_name:""+a.localizedName})};
_.f.updateSelectedTimeIndexFromBinding=function(a){this.selectedTimeIndex=a.detail.value};
_.f.updateSelectedTimezoneIndexFromBinding=function(a){this.selectedTimezoneIndex=a.detail.value};
_.Um.Object.defineProperties(V1b.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a=this.data.timezoneOptions;var b={name:"Etc/Unknown",localizedName:_.vo("LOCAL_TIME_LABEL"),localizedUtcOffset:P1b,utcOffsetSec:""+Q1b,localizedDisplayText:U1b};a?a.length&&a[0].name!==b.name&&(a[0].localizedDisplayText||(b.localizedDisplayText=""),a.unshift(b)):a=[b];return a}}},
selectedTimezone:{configurable:!0,enumerable:!0,get:function(){if(this.timeZones&&!(this.selectedTimezoneIndex>=this.timeZones.length))return this.timeZones[this.selectedTimezoneIndex]}},
selectedTime:{configurable:!0,enumerable:!0,get:function(){return this.timeOfDayOptions[this.selectedTimeIndex]}}});
var WL=V1b;WL.prototype.onDateTimeTimezoneChange=WL.prototype.onDateTimeTimezoneChange;WL.prototype.onDatePicked=WL.prototype.onDatePicked;WL.prototype.updateDefaultSelectedValue=WL.prototype.updateDefaultSelectedValue;_.U([_.O(),_.W("design:type",Object)],WL.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],WL.prototype,"calendarConfig",void 0);_.U([_.O(),_.W("design:type",Object)],WL.prototype,"selectedDate",void 0);
_.U([_.O(),_.W("design:type",Object)],WL.prototype,"selectedTimeIndex",void 0);_.U([_.O(),_.W("design:type",Object)],WL.prototype,"selectedTimezoneIndex",void 0);_.U([_.ir("#time-listbox"),_.W("design:type",Object)],WL.prototype,"timeListBox",void 0);_.U([_.ir("#timezone-listbox"),_.W("design:type",Object)],WL.prototype,"timezoneListBox",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],WL.prototype,"rendererStamperBehavior",void 0);
_.U([_.K("data.timezoneOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],WL.prototype,"timeZones",null);_.U([_.mr("data","timeZones"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WL.prototype,"updateDefaultSelectedValue",null);_.U([_.K("selectedTimezoneIndex","timeZones"),_.W("design:type",Object),_.W("design:paramtypes",[])],WL.prototype,"selectedTimezone",null);
_.U([_.K("selectedTimeIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],WL.prototype,"selectedTime",null);_.U([_.M("ytd-calendar-date-selected"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],WL.prototype,"onDatePicked",null);_.U([_.N("selectedTimezone","selectedTime","selectedDate"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WL.prototype,"onDateTimeTimezoneChange",null);
WL=_.U([_.Q({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],WL);
_.S(WL,"ytd-date-time-picker-renderer",function(){if(F1b!==void 0)return F1b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return F1b=a},{mode:1});var W1b;var XL=function(){var a=_.P.apply(this,arguments)||this;a.boundOnTapDismissButton=function(){a.dismissTapHandler()};
a.dismissButtonOverrides={size:"XS"};return a};
_.z(XL,_.P);XL.prototype.configureRendererStamper=function(){return{attachmentPreview:{id:"attachment-preview",mapping:{backstageImageRenderer:"ytd-backstage-image-renderer",videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}}}},dismissButton:{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]","on-tap":"[[boundOnTapDismissButton]]"},params:{forceModernIconButton:!0}}}}}};
XL.prototype.dismissTapHandler=function(){_.io(this.hostElement,"yt-backstage-attachment-dismissed")};
XL.prototype.computeAttachmentType=function(a){return a?a.backstageImageRenderer?"image":a.videoRenderer?"video":"none":"none"};
var YL=XL;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],YL.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],YL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],YL.prototype,"attachmentPreview",void 0);_.U([_.O(),_.W("design:type",Object)],YL.prototype,"dismissButton",void 0);_.U([_.O(),_.W("design:type",Object)],YL.prototype,"boundOnTapDismissButton",void 0);
_.U([_.O(),_.W("design:type",Object)],YL.prototype,"dismissButtonOverrides",void 0);_.U([_.O({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.W("design:type",String)],YL.prototype,"attachmentType",void 0);YL=_.U([_.Q({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],YL);
_.S(YL,"ytd-backstage-dismissable-attachment",function(){if(W1b!==void 0)return W1b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-dismissable-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="attachment-preview-container" class="style-scope ytd-backstage-dismissable-attachment">\n  <div id="attachment-preview" class="style-scope ytd-backstage-dismissable-attachment"></div>\n  <div id="dismiss-button" class="style-scope ytd-backstage-dismissable-attachment"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return W1b=a},{mode:1});var X1b;var Y1b=function(){var a=_.P.apply(this,arguments)||this;a.selectedVideoId=void 0;a.picker=void 0;a.dismissButtonOverrides={size:"XS"};a.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return a};
_.z(Y1b,_.P);_.f=Y1b.prototype;_.f.onServiceRequestCompleted=function(a){a.stopPropagation()};
_.f.handleAddVideoPreviewAction=function(a){a=this.get("addVideoPreviewAction",a);this.onGetVideoPreviewSuccess(a)};
_.f.configureRendererStamper=function(){return{videoPreview:{id:"video-preview",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}}}},cancelButton:{id:"cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}}}};
_.f.onLaunchVideoPicker=function(a){var b=this,c=_.Wp(this.get("addVideoLinkAction.title",a)),d=this.get("addVideoLinkAction.onePickHostId",a);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",a);d&&(this.picker||(c=_.Rjb(_.tIa(d).setTitle(c).addView(Njb()).addView(Mjb()),function(e){b.onPickVideo(e)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",a)||c.addView("youtube"),this.picker=c.build()),this.picker.setVisible(!0))};
_.f.onPickVideo=function(a){if(a)if(a.action==="cancel")_.io(this.hostElement,"yt-video-link-button-cancel");else if(a.action==="picked"){a=a.docs;if(!a||a.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(a=(a==null?0:a.length)?a[0]:void 0)?a.id:void 0;this.setVideoPreview()}};
_.f.setVideoPreview=function(){var a=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){a.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.f.onGetVideoPreviewSuccess=function(a){if(a&&a.videoPreview&&a.cancelButton)this.videoPreview=a.videoPreview,this.cancelButton=a.cancelButton,_.io(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.f.onGetVideoPreviewError=function(){this.cancel()};
_.f.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.io(this.hostElement,"yt-video-link-cancel")};
_.f.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
var ZL=Y1b;ZL.prototype.onServiceRequestCompleted=ZL.prototype.onServiceRequestCompleted;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],ZL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],ZL.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],ZL.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],ZL.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],ZL.prototype,"videoPreview",void 0);_.U([_.O(),_.W("design:type",Object)],ZL.prototype,"cancelButton",void 0);_.U([_.O(),_.W("design:type",Object)],ZL.prototype,"getVideoPreviewCommand",void 0);_.U([_.O(),_.W("design:type",Object)],ZL.prototype,"dismissButtonOverrides",void 0);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ZL.prototype,"onServiceRequestCompleted",null);ZL=_.U([_.Q({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],ZL);
_.S(ZL,"ytd-backstage-video-link-attachment",function(){if(X1b!==void 0)return X1b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-video-link-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview" class="style-scope ytd-backstage-video-link-attachment"></div>\n<div id="cancel-button" on-tap="cancel" class="style-scope ytd-backstage-video-link-attachment"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return X1b=a},{mode:1});var Z1b;var $1b;var a2b;var $L=function(){return _.P.apply(this,arguments)||this};
_.z($L,_.P);$L.prototype.dataChanged=function(){this.active=!1};
$L.prototype.onTap=function(){_.io(this.hostElement,"yt-select-emoji-suggestion",this.data)};
$L.prototype.identity=function(a){return a};
_.Um.Object.defineProperties($L.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;if((a=this.data)==null?0:(b=a.image)==null?0:(c=b.thumbnails)==null?0:(d=c[0])==null?0:d.url)return a=this.data.image.thumbnails[0].url,a.startsWith("data:image/svg+xml")?Cd(a):_.Id(a)}}});
var aM=$L;aM.prototype.dataChanged=aM.prototype.dataChanged;_.U([_.O(),_.W("design:type",Object)],aM.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],aM.prototype,"active",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aM.prototype,"dataChanged",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],aM.prototype,"imageSrc",null);
aM=_.U([_.Q({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],aM);
_.S(aM,"ytd-emoji-suggestion",function(){if(a2b!==void 0)return a2b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-tap="onTap" class="style-scope ytd-emoji-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[imageSrc]]" author$="[[data.author]]" class="style-scope ytd-emoji-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return a2b=a},{mode:1});var b2b=/.*([:@#].*?)$/,c2b=function(){var a=_.P.apply(this,arguments)||this;a.suggestions=[];a.suggestionIndex=-1;a.JSC$13066_lastSuggestionRange=null;return a};
_.z(c2b,_.P);_.f=c2b.prototype;_.f.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.f.getSuggestions=function(a){var b=[],c=oRb(this.emojiManager,a.substr(0,3));if(c)for(var d in c)if(d.toLocaleLowerCase().indexOf(a)===0){var e=c[d];if(e&&e.emojiId){e=RH(this.emojiManager,e.emojiId);var g=void 0,k=void 0,m=void 0,n=void 0,r=((g=e)==null?0:g.isCustomEmoji)?(k=e)==null?void 0:(m=k.shortcuts)==null?void 0:m[0]:(n=e)==null?void 0:n.emojiId;g=void 0;b.push({suggestion:{image:(g=e)==null?void 0:g.image,alt:r,text:d}});if(b.length>=64)break}}return b?b.sort(function(t,u){return u.suggestion.text<
t.suggestion.text?-1:u.suggestion.text===t.suggestion.text?0:1}):null};
_.f.insertSuggestion=function(a){_.io(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13066_lastSuggestionRange,text:a.alt});this.dropdown.opened=!1};
_.f.updateSuggestionsAtCaret=function(a){this.updateSuggestions(a,this.retrieveTextBeforeRange(a))};
_.f.offsetStartOfRangeBy=function(a,b){a.startOffset>=b&&a.setStart(a.startContainer,a.startOffset-b)};
_.f.updateSuggestions=function(a,b){var c=this;this.JSC$13066_lastSuggestionRange&&(this.JSC$13066_lastSuggestionRange.detach(),this.JSC$13066_lastSuggestionRange=null);if((b=b2b.exec(b))&&b.length&&(b=b[b.length-1].toLocaleLowerCase(),b.length>2||b===":_")&&(this.offsetStartOfRangeBy(a,b.length),this.JSC$13066_lastSuggestionRange=a,(a=this.getSuggestions(b))&&a.length)){this.suggestions=a;_.Qm(this,function(){c.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(a.length-1);return}this.dropdown.opened=!1};
_.f.onKeyDown=function(a){if(this.dropdown.opened)switch(a.key){case "Escape":this.dropdown.opened=!1;a.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);a.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);a.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),a.preventDefault()}};
_.f.onKeyUp=function(a,b){switch(a.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(b);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(b)}};
_.f.onKeyPress=function(a){a.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),a.preventDefault())};
_.f.changeSuggestionIndex=function(a){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(a+this.suggestions.length)%this.suggestions.length,a=this.dropdownContent.children[this.suggestionIndex],a.active=!0,this.dropdownContent.scrollTop=a.offsetTop)};
_.f.retrieveTextBeforeRange=function(a){var b=a.startContainer;return b&&b.nodeType===Node.TEXT_NODE?b.textContent.substr(0,a.startOffset):""};
var bM=c2b;bM.prototype.onKeyPress=bM.prototype.onKeyPress;bM.prototype.onKeyUp=bM.prototype.onKeyUp;bM.prototype.onKeyDown=bM.prototype.onKeyDown;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],bM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Array)],bM.prototype,"suggestions",void 0);_.U([_.O(),_.W("design:type",_.PH)],bM.prototype,"emojiManager",void 0);_.U([_.O(),_.W("design:type",Number)],bM.prototype,"verticalSuggestionsOffset",void 0);
_.U([_.ir("#dropdown"),_.W("design:type",Object)],bM.prototype,"dropdown",void 0);_.U([_.ir("#dropdown-content"),_.W("design:type",HTMLDivElement)],bM.prototype,"dropdownContent",void 0);_.U([_.M("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],bM.prototype,"onKeyDown",null);_.U([_.M("keyup"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent,Range]),_.W("design:returntype")],bM.prototype,"onKeyUp",null);
_.U([_.M("keypress"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],bM.prototype,"onKeyPress",null);bM=_.U([_.Q({disableElementRegistration:!0,is:"ytd-emoji-input"})],bM);
_.S(bM,"ytd-emoji-input",function(){if($1b!==void 0)return $1b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<slot name="input" class="style-scope ytd-emoji-input"></slot>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-emoji-input">\n  <div id="dropdown-content" class="dropdown-content style-scope ytd-emoji-input" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return $1b=a},{mode:2});var d2b;var e2b=function(){var a=_.P.apply(this,arguments)||this;a.hasMaxOptions=!1;return a};
_.z(e2b,_.P);_.f=e2b.prototype;_.f.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.f.setPrefilledChoices=function(a){var b=this;this.set("pollOptions",[]);var c;for(c=0;c<Math.min(a.length,this.data.maxPollOptions);c++)this.push("pollOptions",a[c].substring(0,this.data.maxPollOptionChars));for(;c<this.data.minPollOptions;c++)this.push("pollOptions","");this.hasMaxOptions=c>=this.data.maxPollOptions;_.Qm(this,function(){for(var d=b.pollOptions,e=_.E(b.hostElement).querySelectorAll(".poll-option-input"),g=0;g<e.length;g++)e[g].value=d[g]})};
_.f.focusChanged=function(){_.fr(this.hostElement)};
_.f.onInput=function(){var a=this;_.Fr(this,"onInput",function(){a.isValid()?_.io(a.hostElement,"yt-commentbox-post-enable"):_.io(a.hostElement,"yt-commentbox-post-disable")},300)};
_.f.setPollOptions=function(){var a=[],b,c=((b=this.data)==null?0:b.minPollOptions)?this.data.minPollOptions:0;for(b=0;b<c;b++)a.push("");return a};
_.f.addPollOption=function(){var a=this;_.io(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.zk.addLowPriorityJob(function(){var b;(b=_.E(a.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||b.focus()})};
_.f.onRemovePollOption=function(a){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.io(this.hostElement,"yt-poll-attachment-dismiss")):(a=this.repeat.indexForElement(a.target.parentNode),a!==null&&(this.splice("pollOptions",a,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.io(this.hostElement,"yt-commentbox-post-enable"))))};
_.f.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.f.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var a=0,b=this.pollOptions.length;a<b;a++)if(this.pollOptions[a].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.f.getPollOptions=function(){return this.pollOptions};
_.f.setPollOptionsFromInputs=function(){for(var a=_.E(this.hostElement).querySelectorAll(".poll-option-input"),b=0;b<a.length;b++)this.pollOptions[b]=a[b].value.trim()};
_.f.clearPollOptions=function(){var a=_.E(this.hostElement).querySelectorAll(".poll-option-input");a=_.h(a);for(var b=a.next();!b.done;b=a.next())b.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.f.getSimpleString=function(a){return _.Wp(a)};
_.f.updateValueFromBinding=function(a){if(a.target&&this.pollOptions){var b=Array.from(_.E(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(a.target);if(b>=0){var c;this.pollOptions[b]=(c=a.detail.value)!=null?c:"";this.notifyPath("pollOptions."+b)}}};
var cM=e2b;cM.prototype.dataChanged=cM.prototype.dataChanged;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],cM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],cM.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Array)],cM.prototype,"pollOptions",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],cM.prototype,"hasMaxOptions",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],cM.prototype,"enableCreationBox",void 0);_.U([_.ir("#repeat"),_.W("design:type",tr)],cM.prototype,"repeat",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cM.prototype,"dataChanged",null);cM=_.U([_.Q({disableElementRegistration:!0,is:"ytd-poll-attachment"})],cM);
_.S(cM,"ytd-poll-attachment",function(){if(d2b!==void 0)return d2b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-poll-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="poll-options" class="style-scope ytd-poll-attachment">\n  <template is="dom-repeat" id="repeat" items="[[pollOptions]]" class="style-scope ytd-poll-attachment">\n    <div class="poll-option style-scope ytd-poll-attachment">\n      <yt-icon-button class="remove-button style-scope ytd-poll-attachment" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-poll-attachment" icon="yt-icons:close"></yt-icon>\n      </yt-icon-button>\n      <tp-yt-paper-input class="poll-option-input style-scope ytd-poll-attachment" char-counter="" maxlength$="[[data.maxPollOptionChars]]" no-label-float="" placeholder="[[getSimpleString(data.optionPlaceholderText)]]" use-v2-underline="" value="[[item]]" on-focused-changed="focusChanged" on-input="onInput" on-value-changed="updateValueFromBinding">\n      </tp-yt-paper-input>\n    </div>\n  </template>\n</div>\n<div id="add-option" hidden="[[hasMaxOptions]]" on-click="addPollOption" class="style-scope ytd-poll-attachment"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return d2b=a},{mode:2});var f2b;var g2b;var h2b;var i2b;var j2b=function(){return _.P.apply(this,arguments)||this};
_.z(j2b,_.P);_.Um.Object.defineProperties(j2b.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
var dM=j2b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],dM.prototype,"rendererBehaviors",void 0);_.U([_.O(),_.W("design:type",Object)],dM.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],dM.prototype,"focused",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("focused"),_.W("design:type",Object),_.W("design:paramtypes",[])],dM.prototype,"ariaSelected",null);dM=_.U([_.wr({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],dM);
_.S(dM,"yt-user-mention-suggestion-renderer",function(){if(i2b===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestion_renderer.yt.user.mention.suggestion.renderer.css.js--\x3e<yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-user-mention-suggestion-renderer">\n</yt-img-shadow>\n<div id="info" class="style-scope yt-user-mention-suggestion-renderer">\n  <div id="display-name" aria-label="[[data.displayName]]" class="style-scope yt-user-mention-suggestion-renderer">[[data.displayName]]</div>\n  <yt-formatted-string id="channel-info" text="[[data.details]]" class="style-scope yt-user-mention-suggestion-renderer">\n  </yt-formatted-string>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;h2b===void 0&&(h2b=document.createElement("template"));var d=h2b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);i2b=a}a=i2b;return a},{mode:2});var k2b;var l2b;var m2b=function(){var a=_.P.apply(this,arguments)||this;a.focusedSuggestionIndex=-1;return a};
_.z(m2b,_.P);_.f=m2b.prototype;_.f.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.f.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.f.setFocusedSuggestionIndex=function(a){!this.data||!this.data.suggestions||a<0||a>=this.data.suggestions.length||(this.focusedSuggestionIndex=a,a=this.getSuggestionId(a),this._setFocusedSuggestionId(a))};
_.f.advanceSuggestion=function(a){this.focusedSuggestionIndex===-1||a!==-1&&a!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+a),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.f.ensureSuggestionVisible=function(a){a=this.getSuggestionId(a);a=_.E(this.hostElement).querySelector("[id="+a+"]");a!=null&&(a.offsetTop<this.hostElement.scrollTop?a.scrollIntoView(!0):a.offsetTop+a.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&a.scrollIntoView(!1))};
_.f.getSuggestionId=function(a){return"user-mention-suggestion-"+a};
_.f.onSuggestionTap=function(a){var b=_.y(a.model.item,mFb);this.ytRendererBehavior.logExplicitClick(b);_.io(this.hostElement,"yt-user-mention-suggestion-selected",{data:b,index:a.model.index})};
_.f.onSuggestionMouseMove=function(a){a.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(a.model.index)};
_.f.isSuggestionFocused=function(a,b){return a===b};
_.f.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.f.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.WH("focused-suggestion-id-changed",this.focusedSuggestionId))};
var eM=m2b;eM.prototype.focusedSuggestionIdChangedForBinding=eM.prototype.focusedSuggestionIdChangedForBinding;eM.prototype.onDomChange=eM.prototype.onDomChange;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],eM.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],eM.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],eM.prototype,"focusedSuggestionIndex",void 0);_.U([_.O({readOnly:!0}),_.W("design:type",String)],eM.prototype,"focusedSuggestionId",void 0);
_.U([_.M("dom-change"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],eM.prototype,"onDomChange",null);_.U([_.N("focusedSuggestionId"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eM.prototype,"focusedSuggestionIdChangedForBinding",null);eM=_.U([_.wr({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],eM);
_.S(eM,"yt-user-mention-suggestions-dropdown",function(){if(l2b===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestions-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestions_dropdown.yt.user.mention.suggestions.dropdown.css.js--\x3e\n<template is="dom-repeat" items="[[data.suggestions]]" index-as="index" notify-dom-change="" class="style-scope yt-user-mention-suggestions-dropdown">\n  <yt-user-mention-suggestion-renderer data="[[item.userMentionSuggestionRenderer]]" focused="[[isSuggestionFocused(index, focusedSuggestionIndex)]]" id$="[[getSuggestionId(index)]]" role="option" on-mousemove="onSuggestionMouseMove" on-tap="onSuggestionTap" class="style-scope yt-user-mention-suggestions-dropdown">\n  </yt-user-mention-suggestion-renderer>\n</template>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;k2b===void 0&&(k2b=document.createElement("template"));var d=k2b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);l2b=a}a=l2b;return a},{mode:2});var n2b=function(){var a=_.P.apply(this,arguments)||this;a.suggestionsResponse=null;a.activeMention=null;a.selectionChangeListener=a.onSelectionChange.bind(a);a.handlesEnabled=_.w("enable_handles_in_mention_suggest_posts");a.handlesInMentionSuggestionsEnabled=_.w("handles_in_mention_suggest_posts");a.zeroPrefixMentionSuggestionEnabled=_.w("enable_zero_prefix_mention_suggestion_web");a.pendingQuery=null;a.flowNonce=null;return a};
_.z(n2b,_.P);_.f=n2b.prototype;_.f.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.f.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.f.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.f.hasSuggestions=function(a){return!!(a&&a.suggestions&&a.suggestions.length>0)};
_.f.onInput=function(){var a=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var b=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),c=this.activeMention.JSC$9078_getText().slice(-1)===" ",d=this.activeMention.JSC$9078_getText().slice(-2,-1)===" ",e="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9078_getText().slice(-2,-1))>=
0;e=this.zeroPrefixMentionSuggestionEnabled&&e;if(this.activeMention.isCollapsed()||(b||d||e)&&c)this.cancelActiveMention();else{var g=this.activeMention.JSC$9078_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.Fr(this,"requestSuggestions",function(){a.requestSuggestions(g)},100)}}}};
_.f.onServiceRequestSent=function(a){a.stopPropagation()};
_.f.onServiceRequestCompleted=function(a){a.stopPropagation();a=a.detail.data;a.query&&(!this.pendingQuery||this.pendingQuery!==a.query)||!this.zeroPrefixMentionSuggestionEnabled&&a.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=a,this.hasSuggestions(a)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.f.onServiceRequestError=function(a){a.stopPropagation()};
_.f.onUserMentionSuggestionSelected=function(a){this.selectSuggestion(a.detail.data,a.detail.index)};
_.f.onSelectionChange=function(){if(this.activeMention){var a=_.pv(),b=this.activeMention.JSC$9078_containsRange(a);a=a&&this.containsHelper(this.dropdown,a.getContainer());b||a||this.cancelActiveMention()}};
_.f.containsHelper=function(a,b){var c;if(((c=window.ShadyDOM)==null?void 0:c.noPatch)===!0)return a.contains(b);for(;b;){if(b===a)return!0;b=b instanceof ShadowRoot?b.host:b.parentNode}return!1};
_.f.maybeStartSuggest=function(){var a=_.pv();if(a&&a.isCollapsed()){var b=a.JSC$9078_getStartNode(),c=a.JSC$9078_getStartOffset();if(b instanceof Text&&!(c<1)){var d=b.textContent;!(d=d&&d.charAt(c-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(d)<0||(this.activeMention=_.UC(b,c-1,a.JSC$9078_getEndNode(),a.JSC$9078_getEndOffset()),this.flowNonce=Bn(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.f.updateActiveMention=function(){if(this.activeMention){var a=_.pv();a&&a.isCollapsed()&&(this.activeMention=_.UC(this.activeMention.JSC$9078_getStartNode(),this.activeMention.JSC$9078_getStartOffset(),a.JSC$9078_getEndNode(),a.JSC$9078_getEndOffset()))}};
_.f.requestSuggestions=function(a){if(this.activeMention){var b={suggestions_query:a};this.pendingQuery=a;_.oo(this.hostElement,[this.suggestionsEndpoint,b])}};
_.f.cancelActiveMention=function(){this.activeMention&&this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STOPPED");this.suggestionsResponse=this.pendingQuery=this.activeMention=null;this.dropdown.clearFocusedSuggestion()};
_.f.focusPreviousSuggestion=function(a){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),a.preventDefault())};
_.f.focusNextSuggestion=function(a){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),a.preventDefault())};
_.f.selectFocusedSuggestion=function(a){if(this.hasSuggestions(this.suggestionsResponse)){var b=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.y(b,mFb)&&(this.selectSuggestion(_.y(b,mFb),this.dropdown.focusedSuggestionIndex),a.preventDefault())}};
_.f.selectSuggestion=function(a,b){if(a){var c=this.activeMention;if(c){var d=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&a.handle?_.Zy(d,"\u00a0\u2068@"+a.handle+"\u2069\u00a0"):this.handlesEnabled?_.Zy(d,"\u00a0"+a.displayName+"\u00a0"):_.Zy(d,"\u00a0@"+a.displayName+"\u00a0");Nd(d,"/channel/"+a.channelId);d.classList.add("yt-formatted-string","yt-simple-endpoint");d.setAttribute("spellcheck","false");c.isCollapsed()||c.JSC$9078_removeContents();c.insertNode(d,!0);a=document.createTextNode(" ");
d.parentNode.insertBefore(a,d.nextSibling);window.getSelection().collapse(a,1);b={suggestionSelected:{suggestionIndex:b}};if(this.zeroPrefixMentionSuggestionEnabled){var e;b.suggestionSelected.isZeroPrefix=((e=this.suggestionsResponse)==null?void 0:e.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",b);this.cancelActiveMention();_.io(this.hostElement,"yt-mention-inserted")}}};
_.f.getPositionTarget=function(a){return a&&a.getBrowserRangeObject()};
_.f.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.f.onFocusedSuggestionIdChanged=function(a){var b=_.CKa(this.hostElement)[0];b&&(a.detail.value?b.setAttribute("aria-activedescendant",a.detail.value):b.removeAttribute("aria-activedescendant"))};
_.f.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.f.logGELEvent=function(a,b){a={eventType:a,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};b&&(a=Object.assign(a,b));_.xl("userMentionAutoCompleteBoxEvent",a)};
var fM=n2b;fM.prototype.onDomChange=fM.prototype.onDomChange;fM.prototype.onUserMentionSuggestionSelected=fM.prototype.onUserMentionSuggestionSelected;fM.prototype.onServiceRequestError=fM.prototype.onServiceRequestError;fM.prototype.onServiceRequestCompleted=fM.prototype.onServiceRequestCompleted;fM.prototype.onServiceRequestSent=fM.prototype.onServiceRequestSent;fM.prototype.onInput=fM.prototype.onInput;_.U([_.H(_.FD),_.W("design:type",Object)],fM.prototype,"ironA11yKeysBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],fM.prototype,"suggestionsEndpoint",void 0);_.U([_.O(),_.W("design:type",Object)],fM.prototype,"suggestionsResponse",void 0);_.U([_.O(),_.W("design:type",Object)],fM.prototype,"activeMention",void 0);_.U([_.ir("#dropdown"),_.W("design:type",Object)],fM.prototype,"dropdown",void 0);_.U([_.ir("#iron-dropdown"),_.W("design:type",Object)],fM.prototype,"ironDropdown",void 0);
_.U([_.M("input"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],fM.prototype,"onInput",null);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],fM.prototype,"onServiceRequestSent",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],fM.prototype,"onServiceRequestCompleted",null);
_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],fM.prototype,"onServiceRequestError",null);_.U([_.M("yt-user-mention-suggestion-selected"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],fM.prototype,"onUserMentionSuggestionSelected",null);
_.U([_.M("dom-change"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],fM.prototype,"onDomChange",null);fM=_.U([_.wr({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],fM);
_.S(fM,"yt-user-mention-autosuggest-input",function(){if(g2b===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-autosuggest-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_autosuggest_input.yt.user.mention.autosuggest.input.css.js--\x3e<slot name="input" class="style-scope yt-user-mention-autosuggest-input"></slot>\n<tp-yt-iron-dropdown id="iron-dropdown" horizontal-align="auto" no-auto-focus="" no-overlap="true" opened="[[hasSuggestions(suggestionsResponse)]]" position-target="[[getPositionTarget(activeMention)]]" on-iron-overlay-opened="onDropdownOpened" class="style-scope yt-user-mention-autosuggest-input">\n  <yt-user-mention-suggestions-dropdown id="dropdown" class="dropdown-content style-scope yt-user-mention-autosuggest-input" slot="dropdown-content" data="[[suggestionsResponse]]" role="listbox" on-focused-suggestion-id-changed="onFocusedSuggestionIdChanged">\n  </yt-user-mention-suggestions-dropdown>\n</tp-yt-iron-dropdown>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;f2b===void 0&&(f2b=document.createElement("template"));var d=f2b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);g2b=a}a=g2b;return a},{mode:2});var gM=null;
_.sr({is:"ytd-commentbox",_template:function(){if(Z1b!==void 0)return Z1b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="yt-icons:arrow_drop_down" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Z1b=a},
behaviors:[_.nLa.YtHostElementBehavior,_.FD,_.eH.YtActionHandlerBehavior,_.OG.YtComponentBehavior,_.dH.YtRendererstamperBehavior,_.AVb.YtdReduxBehavior],keyBindings:{left:"leftKeyPressed_",right:"rightKeyPressed_",end:"endKeyPressed_",backspace:"maybeBackspaceChip_","delete":"maybeDeleteChip_","ctrl+enter meta+enter":"submitIfNotBackstagePost_","ctrl+backspace alt+backspace":"maybeBackspaceChipWordMode_","ctrl+delete alt+delete":"maybeDeleteChipWordMode_"},properties:{data:{type:Object,observer:"dataChanged_"},
placeholderFormattedText_:{type:Object,computed:"computePlaceholderText_(data, addedAttachment, prefilledAttachment_)"},aadcGuidelinesState_:{type:Object,selectorArgs:["data.aadcGuidelinesStateEntityKey"],selector:function(a,b){return _.np(a.entities,"aadcGuidelinesStateEntityPayload",b)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(a,b){return _.np(a.entities,"commentboxStateEntity",b)},
observer:"commentboxStateEntityChanged_"},receivedFocusPreviously_:{type:Boolean,value:!1},isReply:{type:Boolean,value:!1},isBackstageComment:{type:Boolean,computed:"computeIsBackstageComment_(data.avatarSize)",reflectToAttribute:!0},attachmentButtonIds:{type:Object,readOnly:!0,computed:"computeAttachmentButtonIds_()"},isBackstagePost:{type:Boolean,value:!1,reflectToAttribute:!0},serviceEndpoint:{type:Object,readOnly:!0,computed:"computeServiceEndpoint_(data)"},submitButtonDisabled:{type:Boolean,
value:!1},attachment:Object,isLoading:{type:Boolean,observer:"isLoadingChanged_"},errorMessage_:{type:Object,value:null},alertMessage_:{type:Object,value:null},imageUploadEndpoint_:{type:Object,computed:"computeImageUploadEndpoint_(data)"},rateLimitErrorCommands:{type:Object,computed:"computeRateLimitErrorCommands_(data)"},addedAttachment:{type:String,value:"none",reflectToAttribute:!0},prefilledAttachment_:{type:String,value:"none",reflectToAttribute:!0},previousText_:String,inlineSchedulePanel_:{type:Object,
computed:"computeInlineSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},dropdownSchedulePanel_:{type:Object,computed:"computeDropdownSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},scheduleButton_:Object,zeroStepChannelCreationRenderer:Object,enableCreationBox:{type:Boolean,reflectToAttribute:!0},isInputFocus_:{type:Boolean,observer:"onIsInputFocusChanged_"},hasImage_:{type:Boolean,computed:"computeHasImage_(addedAttachment)"},hasPollOrQuizRendererInEditDialog_:{type:Boolean,
computed:"computeHasPollOrQuizRendererInEditDialog_(data)"},hasVideo_:{type:Boolean,computed:"computeHasVideo_(addedAttachment)"},hasPoll_:{type:Boolean,computed:"computeHasPoll_(addedAttachment)"},hasImagePoll_:{type:Boolean,computed:"computeHasImagePoll_(addedAttachment)"},hasQuiz_:{type:Boolean,computed:"computeHasQuiz_(addedAttachment)"},prefilledContent_:{type:Object,readOnly:!0,computed:"computePrefilledContent_(data)"},editAttachment_:{type:Object,readOnly:!0,computed:"computeEditAttachment_(data)"},
isCreationBox:{type:Boolean,reflectToAttribute:!0,value:!1},isPopupBox:{type:Boolean,reflectToAttribute:!0,value:!1},emojiManager:{type:Object,readOnly:!0,value:function(){return _.SH}},
isEmojiButtonDisplayed:{type:Boolean,computed:"computeIsEmojiButtonDisplayed_(data)",value:!1},isEmojiPickerDisplayed:{type:Boolean,value:!1,reflectToAttribute:!0},hasExternalLinksAccess_:{type:Boolean,computed:"computeHasExternalLinksAccess_(data)",value:!0},isExternalLinksBannerDisplayed:{type:Boolean,value:!1,reflectToAttribute:!0},emojiInput:Object,verticalSuggestionsOffset:{type:Number,value:30},isPostCreationDialogV2:{type:Boolean,reflectToAttribute:!0,value:!1},accessRestriction:{type:String},
charCount_:{type:Number,value:0},charLimit_:{type:Number,computed:"computeCharLimit_(data)"},aboveCharLimit_:{type:Boolean,reflectToAttribute:!0,value:!1},inputEventSupported_:{type:Boolean,value:!1},textRequiresScrolling:{type:Boolean,reflectToAttribute:!0,value:!1},localStorage:Object,modern:{type:Boolean,reflectToAttribute:!0,value:_.w("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.w("kevlar_watch_grid")}},observers:["observePrefilledImage_(data.purpose, data.prefilledImageData, data.backstageAttachment)",
"observePrefilledVideo_(data.purpose, data.backstageAttachment)","observePrefilledPoll_(data.prefilledAttachment)"],listeners:{"yt-service-request-completed":"onYtServiceRequestCompleted_","yt-service-request-error":"onYtServiceRequestError_","yt-service-request-sent":"onYtServiceRequestSent_","yt-backstage-image-select-cancel":"onAttachmentDismiss_","yt-backstage-multi-image-cancel":"onAttachmentDismiss_","yt-backstage-image-select-alert":"onImageAlert_","yt-backstage-image-select-preview":"onImageSelected_",
"yt-backstage-multi-image-select":"onImagesSelected_","yt-backstage-poll-image-select":"onImagesSelected_","yt-img-crop-coordinates-update":"onImagePreviewCoordinatesUpdated_","yt-img-crop-reposition":"onImagePreviewReposition_","yt-poll-attachment-dismiss":"onAttachmentDismiss_","yt-image-poll-attachment-dismiss":"onAttachmentDismiss_","yt-quiz-attachment-dismiss":"onAttachmentDismiss_","yt-quiz-attachment-explanation-update":"onQuizExplanationUpdated_","yt-navigate":"onYtNavigate_","yt-video-link-selected":"onVideoLinkSelected_",
"yt-backstage-add-image-error":"onAddImageError_","yt-video-link-cancel":"onAttachmentDismiss_","yt-video-link-button-cancel":"onVideoLinkButtonCancel_","yt-commentbox-post-enable":"onSubmitButtonEnable_","yt-commentbox-post-disable":"onSubmitButtonDisable_","yt-backstage-attachment-dismissed":"onPrefilledContentDismissed_","yt-emoji-select":"onEmojiSelect_","yt-insert-suggestion":"onSuggestionInsert_","yt-select-emoji-suggestion":"onEmojiSuggestionClick_","ytd-date-time-selection-update":"onDateTimeSelectionUpdate_",
"ytd-date-time-selection-cancelled":"onDateTimeSelectionCancelled_","yt-mention-inserted":"onInsertMention_"},actionMap:{"yt-signal-action-ack-post-aadc-notice":"onAadcNoticeConfirm_","yt-hide-identity-chip-action":"onHideIdentityChip"},stampDom:{editAttachment_:{id:"attachment-preview",mapping:{backstageImageRenderer:"ytd-backstage-image-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isBackstageVideo:"[[isBackstagePost]]"}},playlistRenderer:{component:"ytd-playlist-renderer",
properties:{isBackstagePlaylist:"[[isBackstagePost]]"}},postMultiImageRenderer:"ytd-post-multi-image-renderer"}},"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:"ytd-flat-dropdown-renderer"}},"data.backstageAttachment":{id:"poll-preview",mapping:{pollRenderer:"ytd-backstage-poll-renderer",quizRenderer:"ytd-backstage-quiz-renderer"}},"imageUploadEndpoint_.imageEditor":{id:"image-select",mapping:{backstageImageSelectRenderer:{component:"ytd-backstage-image-select-renderer",
properties:{imageUploadEndpoint:"[[imageUploadEndpoint_]]",isBackstagePost:"[[isBackstagePost]]"}},backstageMultiImageSelectRenderer:{component:"ytd-backstage-multi-image-select-renderer",properties:{imageUploadEndpoint:"[[imageUploadEndpoint_]]"}}}},"data.emojiButton":{id:"emoji-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.emojiPicker":{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},dropdownSchedulePanel_:{id:"scheduling-panel",
mapping:{dateTimePickerRenderer:"ytd-date-time-picker-renderer"}},inlineSchedulePanel_:{id:"inline-scheduling-panel",mapping:{dateTimePickerRenderer:"ytd-date-time-picker-renderer"}},"zeroStepChannelCreationRenderer.identityChipRenderer":{id:"identity-chip",mapping:{identityChipRenderer:"ytd-identity-chip-renderer"}}},ready:function(){document.addEventListener("tap",_.gr(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(a){this.fire(a?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(a){this.set("submitButtonDisabled",void 0);this.clear();a&&this.computeIsEmojiButtonDisplayed_(a)&&(a=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&a.updateEmojiCategories()},
observePrefilledImage_:function(a,b,c){this.isValidPrefilledImage_(a,b,c)&&(this.prefilledAttachment_="image",this.prefilledImageData_=b,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(a,b){this.isValidPrefilledVideo_(a,b)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(a){a&&a.pollData&&a.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(a.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.wC();this.focus()},
detached:function(){document.removeEventListener("tap",_.gr(this,this.onTap_))},
created:function(){this.scheduledPublishTimeSec_=this.prefilledImageData_=this.imagePreviewCoordinates_=this.taggedVideoId_=this.selectedVideoId_=void 0;document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1;this.TEST_ONLY=void 0},
onEmojiButtonTap_:function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.$$("#emoji-picker > yt-emoji-picker-renderer").selected=!this.$$("#emoji-picker > yt-emoji-picker-renderer").selected},
onEmojiSelect_:function(a){a=a.detail;a=a.isCustomEmoji?a.shortcuts[0]:a.emojiId;var b=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(b,a);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var a=_.pv();if(a){a=a.getBrowserRangeObject();for(var b=a.commonAncestorContainer;b;){if(b===this.getEditableTextArea_())return a;b=b.parentNode}}a=this.getEditableTextArea_();a=_.TC(a,a.childNodes.length);a.select();return a.getBrowserRangeObject()},
insertTextWithEmojis_:function(a,b,c){(b=this.emojiManager.createDocumentFragment(b,!0,!1,c===void 0?!0:c))&&b.childNodes.length!==0&&(a.collapsed||a.deleteContents(),c=b.lastChild,a.insertNode(b),_.frb(c).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var a=_.pv();if(a){var b=a.JSC$9078_getStartNode(),c=a.JSC$9078_getEndNode();if($_a(b)&&$_a(c)){var d=a.JSC$9078_getStartOffset(),e;if(_.Ax&&b.nodeType===Node.ELEMENT_NODE&&(e=_.Vcb(b)))_.TC(e,0).select();else{e=mv(b)?b:_.Jf(b,mv);var g=mv(c)?c:_.Jf(c,mv);if(e||g)if(a.isCollapsed()){if(b.nodeType===Node.TEXT_NODE){a=!0;d===b.length&&(a=!1);if(gM==="end"||gM==="right")a=!1;b=b.parentNode;a=[].concat(_.De(b.parentNode.childNodes)).indexOf(b)+(a?0:1);_.TC(b.parentNode,a).select()}}else e?
e.previousSibling&&e.previousSibling.length>0?_.UC(c,a.JSC$9078_getEndOffset(),e.previousSibling,e.previousSibling.length-1).select():(b=document.createTextNode("\u200b"),e.parentNode.insertBefore(b,e),_.UC(c,a.JSC$9078_getEndOffset(),b,0).select()):g&&(g.nextSibling&&g.nextSibling.length>0?_.UC(b,a.JSC$9078_getStartOffset(),g.nextSibling,1).select():(c=document.createTextNode("\u200b"),g.parentNode.insertBefore(c,g.nextSibling),_.UC(b,a.JSC$9078_getStartOffset(),c,c.length).select()));gM=null}}else gM=
null}else gM=null},
leftKeyPressed_:function(){gM="left"},
rightKeyPressed_:function(){gM="right"},
endKeyPressed_:function(){gM="end"},
maybeDeleteChip_:function(){var a=f0a(!0);if(a){var b=_.pv(),c=b.JSC$9078_getStartNode();b=b.JSC$9078_getStartOffset();_.OC(c,b,a,a.childNodes.length).select()}},
maybeBackspaceChip_:function(){var a=f0a(!1);if(a){var b=_.pv(),c=b.JSC$9078_getStartNode();b=b.JSC$9078_getStartOffset();_.OC(c,b,a,0).select()}},
maybeBackspaceChipWordMode_:function(a){var b=_.pv();if(b.isCollapsed()){var c=b.JSC$9078_getStartNode();b=b.JSC$9078_getStartOffset();var d=g0a(c,b,!0);d&&(_.OC(c,b,d,0).select(),document.execCommand("delete"),a.preventDefault(),a.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(a){var b=_.pv();if(b.isCollapsed()){var c=b.JSC$9078_getStartNode();b=b.JSC$9078_getStartOffset();var d=g0a(c,b,!1);d&&(_.OC(c,b,d,d.childNodes.length).select(),document.execCommand("delete"),a.preventDefault(),a.stopImmediatePropagation())}},
onTap_:function(a){if(!a.defaultPrevented&&(a.currentTarget.tagName==="YTD-COMMENTBOX"&&mv(a.target)&&a.preventDefault(),this.isEmojiPickerDisplayed)){var b=this.$$("#emojis"),c=this.$$("#emoji-button"),d=this.getEditableTextArea_();if((a=a.path?a.path:a.composedPath&&a.composedPath())&&!a.includes(b)&&!a.includes(d)&&!a.includes(c))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(a,b,c){return a==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&b!==void 0&&b.encryptedBlobId!==null&&b.sourceExternalVideoId!==null&&c!==void 0&&c.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(a,b){return a==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!b&&!!b.videoRenderer&&!!b.videoRenderer.videoId},
isValidPrefilledAttachment_:function(a,b,c){return this.isValidPrefilledImage_(a,b,c)||this.isValidPrefilledVideo_(a,c)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.w("enable_multi_image_post_creation")){var a=this.$$("ytd-backstage-multi-image-select-renderer");a&&a.hasImages()&&a.cancel()}else(a=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&a.cancel();(a=this.$["poll-attachment"])&&this.hasPoll_&&a.clearPollOptions();(a=this.$["image-poll-attachment"])&&this.hasImagePoll_&&a.resetPollOptions();(a=this.$["quiz-attachment"])&&this.hasQuiz_&&a.resetQuizOptions();
(a=this.$["video-link-attachment"])&&this.hasVideo_&&a.cancel();(a=this.$["access-restrictions-selector"].firstElementChild)&&a.reset();this.prefilledAttachment_!=="none"&&this.dismissPrefilledContent_();this.addedAttachment="none";this.prefilledImageData_=this.scheduledPublishTimeSec_=this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.submitButtonDisabled=!0;this.setTextAreaValue_(this.data.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.isExternalLinksBannerDisplayed=
this.isEmojiPickerDisplayed=this.receivedFocusPreviously_=!1;if(this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")this.onDateTimeSelectionCancelled_()},
getEditableTextArea_:function(){return _.E(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.E(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(a,b){a=b0a(a,this.emojiManager,b).cloneNode(!0);for(b=a.firstChild;b;)if(b.nodeType!==1)b=b.nextSibling;else switch(b.tagName){case "BR":var c=_.Ty();_.cdb(c,b);b=c.nextSibling;break;case "DIV":(c=b.lastChild)&&b.nextSibling&&_.Xy(_.Ty(),c);b.previousSibling&&(b.previousSibling.nodeType===1||b.previousSibling.nodeType===3&&!b.previousSibling.textContent.endsWith("\n"))&&_.Wy(_.Ty(),b);c&&c.nodeName==="BR"&&_.qg(c);c=b;b.hasChildNodes()?(b=b.firstChild,
_.ddb(c)):(b=b.nextSibling,_.qg(c));break;default:b=b.nextSibling}return h0a(a)},
onAddImageError_:function(a){a.stopPropagation();this.errorMessage_=_.Vp(a.detail)},
setTextAreaValue_:function(a){a||(a="");var b=this.getEditableFormattedString_();b.text="";this.getEditableTextArea_().innerText="";typeof a==="string"&&(a={runs:[{text:a}]});b.text=a},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();gM=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var a=this.getEditableTextArea_();a&&(_.TC(a,a.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Fi("HTML_DIR")==="rtl"){var a=this.getEditableTextArea_(),b=this.getTextAreaValue()!==""?"auto":"rtl";a.setAttribute("dir",b)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var a;return UAa((a=this.$["quiz-attachment"])==null?void 0:a.getExplanationText())||UAa(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var a=null;if(this.isEmojiButtonDisplayed){var b=this.getInputRange_();b&&(a=this.emojiInput.retrieveTextBeforeRange(b))}this.insertText_(a,!0);this.updateCharCount_();this.setSubmitButton_();a=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=a.scrollHeight>a.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var a=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:a})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount_=this.getTextLength();this.aboveCharLimit_=!!this.charLimit_&&this.charCount_>this.charLimit_},
onPaste_:function(a){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(a)},
onPasteEmoji_:function(a){a.preventDefault();a.stopImmediatePropagation();a=a.clipboardData.getData("text/plain");this.insertText_(a,!1,!1)},
insertText_:function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!0:c;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&a){var d=this.getInputRange_().cloneRange();this.emojiManager&&d&&(b&&this.emojiInput.offsetStartOfRangeBy(d,a.length),this.insertTextWithEmojis_(d,a,c),a0a(this.getEditableTextArea_().lastChild)||(d=this.getInputRange_().cloneRange()),d&&(this.emojiInput.updateSuggestions(d,a),this.updateSuggestionOffset_(d)))}},
setSubmitButton_:function(){if(this.data){var a=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",b=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(a||b){var c=this.getTextAreaValue().trim();b=c===this.previousText_;c=!c||this.aboveCharLimit_;a&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(c=this.aboveCharLimit_);this.submitButtonDisabled=
b||c||!this.getTextLength();a&&_.w("enable_post_scheduling")&&(this.submitButtonDisabled=b&&!this.scheduledPublishTimeSec_||c)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.Wp,computeCreationBoxClass_:function(a){return a?"focused":"not-focused"},
computeFooterMessageClass_:function(a,b){return b?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(a,b){return b?b:a},
computeFooterMessageHidden_:function(a,b){return!b&&!a},
computePlaceholderText_:function(a,b,c){return(c==="video"||c==="image")&&(a==null?0:a.prefilledPlaceholderText)?a==null?void 0:a.prefilledPlaceholderText:b==="poll"||b==="image-poll"?a==null?void 0:a.pollPostPlaceholderText:b==="quiz"?a==null?void 0:a.quizPostPlaceholderText:b==="image"?a==null?void 0:a.imagePostPlaceholderText:a==null?void 0:a.placeholderText},
computeHideAttachmentButtons_:function(a,b,c,d){return a===void 0?!1:d&&this.getSimpleString(d)===this.getSimpleString(a.rateLimitErrorMessage)?!0:b!=="none"||c!=="none"||!a.videoLinkButton&&!a.pollButton&&!a.imagePollButton&&!a.quizButton&&!a.imageButton},
computeHideDismissableAttachment_:function(a){return a!=="image"&&a!=="video"},
computeHasVideo_:function(a){return a==="video"},
computeHasImage_:function(a){return a==="image"},
computeHasPoll_:function(a){return a==="poll"},
computeHasImagePoll_:function(a){return a==="image-poll"},
computeHasQuiz_:function(a){return a==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(a){return a&&a.backstageAttachment?a.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!a.backstageAttachment.quizRenderer&&!a.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(a){if(this.isValidPrefilledAttachment_(a.purpose,a.prefilledImageData,a.backstageAttachment))return a.backstageAttachment},
computeEditAttachment_:function(a){if(this.computePrefilledContent_(a)===void 0)return a.backstageAttachment},
computeAuthorThumbnailDimension_:function(a,b){return a&&!b?24:40},
computeImageUploadEndpoint_:function(a){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",a)},
computeRateLimitErrorCommands_:function(a){var b,c;return a==null?void 0:(b=a.advancedTierFeatures)==null?void 0:(c=b.rateLimit)==null?void 0:c.rateLimitCommands},
computeIsBackstageComment_:function(a){return!(!a||a!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(a){return this.get("submitButton.buttonRenderer.serviceEndpoint",a)||this.get("replyButton.buttonRenderer.serviceEndpoint",a)||this.get("postButton.buttonRenderer.serviceEndpoint",a)},
computeSubmitButtonOverride:function(){if(_.w("web_modern_buttons")){var a,b;return{segmentedPosition:this.dropdownSchedulePanel_||!((a=this.data)==null?0:(b=a.postOptionsMenu)==null?0:b.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.w("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(a,b){a=this.get("submitButton.buttonRenderer",a)||this.get("replyButton.buttonRenderer",a)||this.get("postButton.buttonRenderer",a);b&&(a=b);a&&(a=Object.assign({},a),a.serviceEndpoint=void 0,a.isDisabled=this.submitButtonDisabled);return a},
computeHasExternalLinksAccess_:function(a){if(_.w("enable_rfa_external_links")){var b,c,d;return(d=a==null?void 0:(b=a.advancedTierFeatures)==null?void 0:(c=b.externalLinks)==null?void 0:c.allowExternalLinks)!=null?d:!0}return!0},
computeIsEmojiButtonDisplayed_:function(a){return a.emojiButton&&a.emojiPicker&&a.emojiPicker.emojiPickerRenderer&&a.emojiPicker.emojiPickerRenderer.categories?a.emojiPicker.emojiPickerRenderer.categories.find(function(b){return b.emojiPickerCategoryRenderer?b.emojiPickerCategoryRenderer.emojiIds&&b.emojiPickerCategoryRenderer.emojiIds.length>0:b.emojiPickerUpsellCategoryRenderer?b.emojiPickerUpsellCategoryRenderer.emojis&&b.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(a){return a.charLimit?a.charLimit:null},
computeDropdownSchedulingPanel_:function(a,b){if(a==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&b)return b},
computeInlineSchedulingPanel_:function(a,b){if(a==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&b)return b},
computeHideAuthorThumbnail_:function(a,b){return a||this.computeUseIdentityChip_(b)},
computeHideIdentityChipRenderer_:function(a,b){return a||!this.computeUseIdentityChip_(b)},
computeUseIdentityChip_:function(a){return!!a&&!!a.identityChipRenderer},
getSharedPostId_:function(){return this.data.backstageAttachment&&this.data.backstageAttachment.postRenderer&&this.data.backstageAttachment.postRenderer.postId?this.data.backstageAttachment.postRenderer.postId:void 0},
onYtNavigate_:function(a){var b,c,d,e;(a==null?0:(b=a.detail)==null?0:(c=b.endpoint)==null?0:c.ypcGetOffersEndpoint)||(a==null?0:(d=a.detail)==null?0:(e=d.endpoint)==null?0:e.ypcOffersEndpoint)?(a.stopPropagation(),_.oo(this,[a.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",a)&&(a.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(a){this.addedAttachment="video";this.selectedVideoId_=a.detail.videoId},
commentboxStateEntityChanged_:function(a){var b=this;(a==null?void 0:a.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(a==null?void 0:a.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){b.focus()})},
onYtServiceRequestSent_:function(a,b){if(b.actions)for(a=_.h(b.actions),b=a.next();!b.done;b=a.next())b.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(a){this.isLoading=!1;var b=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",a),c,d,e,g=a==null?void 0:(c=a.detail)==null?void 0:(d=c.data)==null?void 0:(e=d.actionResult)==null?void 0:e.commentboxStateEntityKey;if(b)this.errorMessage_=b;else if(g){var k;this.dismissData_=a==null?void 0:(k=a.detail)==null?void 0:k.data;this.commentboxStateKey_=g}else{this.clear();var m;this.fire("yt-commentbox-dismiss",a==null?void 0:(m=a.detail)==
null?void 0:m.data)}},
onYtServiceRequestError_:function(a){a.stopPropagation();this.isLoading=!1;var b,c;if(((b=this.data)==null?void 0:b.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((c=this.data)==null?void 0:c.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(b=this.get("detail.error.args",a)||[],b.length>1&&b[1].message){this.handlePostsServiceRequestError_(b[1].message);return}(a=this.get("detail.error.message",a))?this.errorMessage_=this.data.errorMessage||_.Vp(a):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(a){if(_.w("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var b=_.h(this.rateLimitErrorCommands),c=b.next();!c.done;c=b.next())if(c=c.value,c.errorLabel===a){_.hs(c.command,this.hostElement);return}this.errorMessage_=_.Vp(a)},
submitIfNotBackstagePost_:function(a){if(!this.isBackstagePost)this.onSubmit_(a)},
onSubmit_:function(a){var b=this,c,d,e,g,k,m,n,r,t,u,x,A,C,F,J;return _.l(function(I){switch(I.nextAddress){case 1:a.stopPropagation();if(!b.serviceEndpoint||!b.isValidInput_())return I.return();if(b.shouldShowPostAadcNotice_())return b.showPostAadcNotice_(),I.return();if(b.shouldShowCommentAadcNotice_())return b.showCommentAadcNotice_(),I.return();if(!(b.$$("ytd-backstage-multi-image-select-renderer")&&b.hasImage_&&_.w("enable_multi_image_post_creation"))){I.jumpTo(2);break}c=b.$$("ytd-backstage-multi-image-select-renderer");
return _.p(I,c.getAllUploadStatuses(),3);case 3:d=I.yieldResult;if(!d)return I.return();e=_.h(d);for(g=e.next();!g.done;g=e.next())if(k=g.value,k.encryptedBlobId===void 0)return b.isLoading=!1,n=m=void 0,b.errorMessage_=(n=(m=b.imageUploadEndpoint_)==null?void 0:m.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?n:null,I.return();return I.return(b.submitForm_(void 0,void 0,void 0,void 0,c.images,b.taggedVideoId_));case 2:if(!b.hasImagePoll_||!b.$["image-poll-attachment"]){I.jumpTo(4);
break}return _.p(I,b.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:r=I.yieldResult;if(!r)return I.return();t=_.h(r);for(u=t.next();!u.done;u=t.next())if(x=u.value,!x.encryptedBlobId)return b.isLoading=!1,A=void 0,b.errorMessage_=(A=b.data.errorMessage)!=null?A:null,I.return();case 4:F=(C=b.$$("ytd-backstage-image-select-renderer"))&&C.uploadPromise(),J=b.getSharedPostId_(),F?F.then(function(){b.submitForm_.apply(b,_.De(_.Kd.apply(0,arguments)))}).catch(function(R){b.isLoading=!1;
b.errorMessage_=_.Vp(R.message)}):b.selectedVideoId_?b.submitForm_(void 0,b.selectedVideoId_):b.prefilledAttachment_==="image"?b.submitForm_(b.prefilledImageData_.encryptedBlobId,void 0,void 0,b.prefilledImageData_.sourceExternalVideoId,void 0,b.taggedVideoId_):b.prefilledAttachment_==="video"?b.submitForm_(void 0,b.data.backstageAttachment.videoRenderer.videoId):J?b.submitForm_(void 0,void 0,J):b.taggedVideoId_!==void 0?b.submitForm_(void 0,void 0,void 0,void 0,void 0,b.taggedVideoId_):b.submitForm_(),
_.ue(I)}})},
openSchedulingPanel:function(a){a&&a.scheduleButton&&a.scheduleButton.buttonRenderer&&(this.scheduleButton_=a.scheduleButton.buttonRenderer);a&&a.dateTimePicker&&this.set("data.schedulingDateTimePicker",a.dateTimePicker)},
openImagePollComponent:function(){this.addedAttachment="image-poll";this.$["image-poll-attachment"]&&this.$["image-poll-attachment"].resetPollOptions()},
openQuizComponent:function(){this.addedAttachment="quiz";this.$["quiz-attachment"]&&this.$["quiz-attachment"].resetQuizOptions()},
onCancel_:function(a){a.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(a){a.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(a){a.stopPropagation();a.detail.alertMessage&&(this.alertMessage_=a.detail.alertMessage)},
onImageSelected_:function(a){a.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(a){a.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(a){a.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(a.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(a){a.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(a){var b=this.$["video-link-attachment"];b&&b.onLaunchVideoPicker(a)},
onAttachmentDismiss_:function(a){a.stopPropagation();this.addedAttachment="none";this.alertMessage_=this.errorMessage_=null;this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.setSubmitButton_();this.getEditableTextArea_().focus()},
isValidInput_:function(){if(this.prefilledAttachment_==="image"&&!this.prefilledImageData_||this.prefilledAttachment_==="video"&&!this.data.backstageAttachment.videoRenderer.videoId||this.addedAttachment==="image"&&_.w("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.w("enable_multi_image_post_creation")||this.$$("ytd-backstage-image-select-renderer")&&
this.$$("ytd-backstage-image-select-renderer").hasPreview&&this.imagePreviewCoordinates_)||this.addedAttachment==="poll"&&this.$["poll-attachment"]&&!this.$["poll-attachment"].isValid())return!1;var a;if(this.addedAttachment==="image-poll"&&((a=this.$["image-poll-attachment"])==null||!a.isValid()))return!1;var b;if(this.addedAttachment==="quiz"&&((b=this.$["quiz-attachment"])==null||!b.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;a=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(a=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")a=!0;return a||!!this.getTextAreaValue().trim()},
submitForm_:function(a,b,c,d,e,g){var k=this.getTextAreaValue().trim(),m={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&k===this.previousText_&&(k=void 0);k!==void 0&&(m.comment_text=k);this.isLoading=!0;g!=void 0&&(m.tagged_video_id=g);a?(m.image_blob_id=a,this.imagePreviewCoordinates_&&(m.image_preview_coordinates=this.imagePreviewCoordinates_)):b?m.attached_video_id=b:c?m.shared_post_id=c:e&&e.length>0&&(m.images_data=e.map(function(n){return{encryptedBlobId:n.encryptedBlobId,
previewCoordinates:n.previewCoordinates}}));
d&&(m.source_video_id=d);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(m.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(m.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(m.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.w("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(m.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.w("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(m.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.oo(this,[this.serviceEndpoint,m])},
onIsInputFocusChanged_:function(a,b){a?this.fire("yt-autonav-pause-focus"):b!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(a){var b=this.getEditableTextArea_();[].concat(_.De(a.dataTransfer.items)).forEach(function(c){c.kind==="string"&&c.type.match("^text/plain")&&c.getAsString(function(d){b.appendChild(document.createTextNode(d))})});
a.preventDefault()},
preventDefault_:function(a){a.preventDefault()},
onSuggestionInsert_:function(a){this.insertTextWithEmojis_(a.detail.range,a.detail.text)},
onEmojiSuggestionClick_:function(a){this.emojiInput.insertSuggestion(a.detail)},
computeSubmitButtonClass_:function(a,b){return!b||a?"":"with-options"},
updateSuggestionOffset_:function(a){if(this.emojiInput&&_.E(this.emojiInput).querySelector("#dropdown")){var b=this.getEditableTextArea_().getBoundingClientRect().bottom,c=a.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(b-c)+5;b=this.getEditableTextArea_().getBoundingClientRect().left;a=a.getBoundingClientRect().left-b;_.E(this.emojiInput).querySelector("#dropdown").style.marginLeft=a+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(a){if(_.w("enable_post_scheduling")&&this.data&&this.data.purpose){a=a.detail;if(Math.floor(Date.now()/1E3)>=a)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var b=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(b)||b!==a?this.scheduledPublishTimeSec_=a:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=a;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var a=["image-button","image-poll-button","poll-button"];_.w("enable_quiz_creation")&&a.push("quiz-button");_.w("auto_convert_posts_video_tag")||a.push("video-link-button");return a},
getButtonRenderer:function(a,b){if(a)switch(b){case "video-link-button":var c;return((c=a.videoLinkButton)==null?void 0:c.buttonRenderer)||void 0;case "image-button":var d;return((d=a.imageButton)==null?void 0:d.buttonRenderer)||void 0;case "poll-button":var e;return((e=a.pollButton)==null?void 0:e.buttonRenderer)||void 0;case "image-poll-button":var g;return((g=a.imagePollButton)==null?void 0:g.buttonRenderer)||void 0;case "quiz-button":var k;return((k=a.quizButton)==null?void 0:k.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var a;return(a=this.data)==null||!a.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var a,b;return!((a=this.data)==null||!a.openAadcDialog)&&!((b=this.aadcGuidelinesState_)==null||!b.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.Fi("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var a;((a=this.data)==null?0:a.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Ek("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(a){a.clickTrackingParams&&_.ls().clickCommand(a);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.lo(this,"yt-close-popup-action")},
onHideIdentityChip:function(a){var b;this.set("data.placeholderText",(b=a.hideIdentityChipAction)==null?void 0:b.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var o2b=function(){var a=_.P.apply(this,arguments)||this;a.isOpen=!1;a.modern=_.w("web_modern_buttons");a.roundedContainer=!0;a.dropdownButtonOverride=_.w("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;a.inPopupContainer=!1;a.isCommentboxLoading=!1;var b=["image-button","image-poll-button","poll-button"];_.w("enable_quiz_creation")&&b.push("quiz-button");_.w("auto_convert_posts_video_tag")||b.push("video-link-button");a.attachmentButtonIds=b;a.actionMap={"yt-create-comment-action":"onCreateCommentAction",
"yt-create-poll-action":"onCreatePollAction","yt-add-video-link-action":"onAddVideoLinkAction","yt-show-scheduling-panel-command":"onShowSchedulingPanelCommand","yt-create-image-poll-command":"onCreateImagePollCommand","yt-create-quiz-command":"onCreateQuizCommand"};return a};
_.z(o2b,_.P);_.f=o2b.prototype;_.f.computeButtonOverride=function(){var a;return((a=this.data)==null?0:a.postOptionsMenu)&&_.w("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.f.configureRendererStamper=function(){var a={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:arrow_drop_down"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.w("auto_convert_posts_video_tag")||(a["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return a};
_.f.ready=function(){var a=this,b=_.E(this.hostElement).querySelector("#placeholder-area"),c=function(d){a.onOpen(d)};
b.addEventListener("tap",c);b.addEventListener("keypress",c)};
_.f.showButtonEduTooltip=function(){var a,b,c,d,e,g,k;if(_.w("enable_quiz_creation")&&((a=this.data)==null?0:(b=a.quizButton)==null?0:(c=b.buttonRenderer)==null?0:(d=c.hint)==null?0:(e=d.hintRenderer)==null?0:(g=e.content)==null?0:(k=g.bubbleHintRenderer)==null?0:k.text)&&(_.kG.getInstance(),a=lG(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(a==null?void 0:
a.length)>0)){this.ytComponentBehavior.resolveCommand(a[0],{form:{element:this.quizButton}});return}var m;if((m=this.data)==null?0:m.imagePollButtonTooltip)if(_.kG.getInstance(),m=lG(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(m==null?void 0:m.length)>0){this.ytComponentBehavior.resolveCommand(m[0],{form:{element:this.imagePollButton}});return}var n;_.w("enable_multi_image_post_creation")&&
((n=this.data)==null?0:n.multiImageButtonTooltip)&&(_.kG.getInstance(),n=lG(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(n==null?void 0:n.length)>0&&this.ytComponentBehavior.resolveCommand(n[0],{form:{element:this.imageButton}}))};
_.f.onCreatePollAction=function(a){_.y(a,Hzb)&&(this.JSC$13123_commentbox.addedAttachment="poll",this.openDialog())};
_.f.onAddVideoLinkAction=function(a){if(_.y(a,Gzb))this.JSC$13123_commentbox.onAddVideoLink(a)};
_.f.onShowSchedulingPanelCommand=function(a){(a=_.y(a,izb))&&this.openSchedulingPanel(a)};
_.f.onCreateImagePollCommand=function(a){_.y(a,kEb)&&(this.JSC$13123_commentbox.openImagePollComponent(),this.openDialog())};
_.f.onCreateQuizCommand=function(a){_.y(a,lEb)&&(this.JSC$13123_commentbox.openQuizComponent(),this.openDialog())};
_.f.openSchedulingPanel=function(a){_.w("enable_post_scheduling")&&(this.openDialog(),this.JSC$13123_commentbox.openSchedulingPanel(a))};
_.f.onCreateCommentAction=function(a){this.get("createCommentAction.contents",a)&&(this.JSC$13123_commentbox.clear(),this.closeDialog())};
_.f.onOpen=function(a){a instanceof KeyboardEvent&&a.type==="keypress"&&a.keyCode!==13&&a.keyCode!==32||(this.data.prepareAccountEndpoint?_.io(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.f.onYtCommentboxDismiss=function(){this.closeDialog()};
_.f.onYtCommentboxLoadingStart=function(a){a.stopPropagation();this.isCommentboxLoading=!0};
_.f.onYtCommentboxLoadingEnd=function(a){a.stopPropagation();this.isCommentboxLoading=!1};
_.f.onYtVideoLinkButtonCancel=function(a){a.stopPropagation();this.onOpen(a)};
_.f.onYtVideoLinkSelected=function(a){a.stopPropagation();this.onOpen(a)};
_.f.onIronSelect=function(a){a.stopPropagation();a.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=a.detail.item.value&&(this.accessRestriction?(this.accessRestriction=a.detail.item.value,this.onOpen(a)):this.accessRestriction=a.detail.item.value)};
_.f.onYtNavigate=function(a){this.get("detail.endpoint.backstageImageUploadEndpoint",a)&&(this.JSC$13123_commentbox.addedAttachment="image",this.JSC$13123_commentbox.submitButtonDisabled=!0,this.onOpen(a))};
_.f.onRequestSent=function(a){if(_.w("web_button_rework"))for(var b=_.h(a.detail),c=b.next();!c.done;c=b.next())_.y(c.value,wDb)&&(this.JSC$13123_commentbox.addedAttachment="image",this.JSC$13123_commentbox.submitButtonDisabled=!0,this.onOpen(a))};
_.f.openDialog=function(){this.JSC$13123_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13123_commentbox.focus()};
_.f.onPopupClosed=function(){_.kG.getInstance()};
_.f.computeCreationDisabled=function(a){return!!a};
_.f.computeIsCreationDialog=function(a){return!!a&&a==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.f.computeDisabledPostButton=function(a){if(!a)return null;a.isDisabled=!0;return a};
_.f.computeIsCreationDialogWithHeader=function(a){return!this.inPopupContainer&&!!a&&!!a.authorText&&a.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.f.computeIsHeaderHidden=function(a,b){return!a||b};
_.f.computeDropdownRendererClasses=function(a){return a?["text-secondary-style"]:[]};
_.f.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var a=_.E(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;a&&a.reset()};
var hM=o2b;hM.prototype.onPopupClosed=hM.prototype.onPopupClosed;hM.prototype.onRequestSent=hM.prototype.onRequestSent;hM.prototype.onYtNavigate=hM.prototype.onYtNavigate;hM.prototype.onIronSelect=hM.prototype.onIronSelect;hM.prototype.onYtVideoLinkSelected=hM.prototype.onYtVideoLinkSelected;hM.prototype.onYtVideoLinkButtonCancel=hM.prototype.onYtVideoLinkButtonCancel;hM.prototype.onYtCommentboxLoadingEnd=hM.prototype.onYtCommentboxLoadingEnd;hM.prototype.onYtCommentboxLoadingStart=hM.prototype.onYtCommentboxLoadingStart;
hM.prototype.onYtCommentboxDismiss=hM.prototype.onYtCommentboxDismiss;hM.prototype.showButtonEduTooltip=hM.prototype.showButtonEduTooltip;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],hM.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],hM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],hM.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],hM.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],hM.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],hM.prototype,"isOpen",void 0);_.U([_.O({computed:"computeButtonOverride(data)"}),_.W("design:type",Object)],hM.prototype,"buttonOverride",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],hM.prototype,"modern",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],hM.prototype,"roundedContainer",void 0);_.U([_.O(),_.W("design:type",Object)],hM.prototype,"dropdownButtonOverride",void 0);_.U([_.O({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.W("design:type",Boolean)],hM.prototype,"creationDisabled",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],hM.prototype,"enableCreationBox",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.W("design:type",Boolean)],hM.prototype,"isCreationDialog",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],hM.prototype,"inPopupContainer",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.W("design:type",Boolean)],hM.prototype,"isCreationDialogWithHeader",void 0);_.U([_.O(),_.W("design:type",Object)],hM.prototype,"accessRestriction",void 0);
_.U([_.O({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.W("design:type",Array)],hM.prototype,"dropdownRendererClasses",void 0);_.U([_.O(),_.W("design:type",Object)],hM.prototype,"isCommentboxLoading",void 0);_.U([_.O(),_.W("design:type",Array)],hM.prototype,"attachmentButtonIds",void 0);_.U([_.ir("#image-button"),_.W("design:type",HTMLElement)],hM.prototype,"imageButton",void 0);
_.U([_.ir("#image-poll-button"),_.W("design:type",HTMLElement)],hM.prototype,"imagePollButton",void 0);_.U([_.ir("#quiz-button"),_.W("design:type",HTMLElement)],hM.prototype,"quizButton",void 0);_.U([_.ir("#commentbox"),_.W("design:type",Object)],hM.prototype,"JSC$13123_commentbox",void 0);_.U([_.N("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hM.prototype,"showButtonEduTooltip",null);
_.U([_.M("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],hM.prototype,"onYtCommentboxDismiss",null);_.U([_.M("yt-commentbox-loading-start"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],hM.prototype,"onYtCommentboxLoadingStart",null);
_.U([_.M("yt-commentbox-loading-end"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],hM.prototype,"onYtCommentboxLoadingEnd",null);_.U([_.M("yt-video-link-button-cancel"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],hM.prototype,"onYtVideoLinkButtonCancel",null);
_.U([_.M("yt-video-link-selected"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],hM.prototype,"onYtVideoLinkSelected",null);_.U([_.M("iron-select"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],hM.prototype,"onIronSelect",null);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],hM.prototype,"onYtNavigate",null);
_.U([_.M("yt-service-request-sent-button-renderer"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],hM.prototype,"onRequestSent",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hM.prototype,"onPopupClosed",null);hM=_.U([_.Q({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],hM);
_.S(hM,"ytd-backstage-post-dialog-renderer",function(){if(Z0b!==void 0)return Z0b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Z0b=a},{mode:1});var p2b;var q2b;var r2b=function(){return _.P.apply(this,arguments)||this};
_.z(r2b,_.P);_.f=r2b.prototype;_.f.computeHeartButtonStyle=function(a){return(a==null?0:a.styleType)?a.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.f.onYtButtonTap=function(){if(this.data.isEnabled){var a=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(a=this.getEndpoint(a))&&_.oo(this.hostElement,[a])}else(a=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(a)};
_.f.toggle=function(a){this.set("data.isHearted",a!==void 0?a:!this.data.isHearted)};
_.f.getEndpoint=function(a){var b,c=(b=this.data)==null?void 0:b.heartEndpoint,d;b=(d=this.data)==null?void 0:d.unheartEndpoint;if(c&&b)return a?b:c};
_.f.computeButtonAccessibility=function(a,b){var c,d,e=a==null?void 0:(c=a.heartedAccessibility)==null?void 0:(d=c.accessibilityData)==null?void 0:d.label,g,k;a=a==null?void 0:(g=a.unheartedAccessibility)==null?void 0:(k=g.accessibilityData)==null?void 0:k.label;return b?e:a};
_.Um.Object.defineProperties(r2b.prototype,{heartTooltip:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.data.isHearted?this.data.heartedTooltip:this.data.unheartedTooltip}},
iconFilled:{configurable:!0,enumerable:!0,get:function(){var a;return _.w("kevlar_system_icons")&&!((a=this.data)==null||!a.isHearted)}}});
var iM=r2b;iM.prototype.onYtButtonTap=iM.prototype.onYtButtonTap;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],iM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aI),_.W("design:type",Object)],iM.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],iM.prototype,"data",void 0);_.U([_.K("data.isHearted"),_.W("design:type",Object),_.W("design:paramtypes",[])],iM.prototype,"heartTooltip",null);
_.U([_.K("data.isHearted"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iM.prototype,"iconFilled",null);_.U([_.O({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.W("design:type",String)],iM.prototype,"buttonAccessibility",void 0);_.U([_.O({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.W("design:type",String)],iM.prototype,"heartButtonStyle",void 0);
_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iM.prototype,"onYtButtonTap",null);iM=_.U([_.Q({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],iM);
_.S(iM,"ytd-creator-heart-renderer",function(){if(q2b!==void 0)return q2b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-creator-heart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="creator-heart-button" disabled="[[!data.isEnabled]]" label="[[buttonAccessibility]]" class="style-scope ytd-creator-heart-renderer">\n  <template is="dom-if" if="[[data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-img-shadow id="hearted-thumbnail" thumbnail="[[data.creatorThumbnail]]" class="style-scope ytd-creator-heart-renderer"></yt-img-shadow>\n    <yt-icon id="hearted-border" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n    <yt-icon id="hearted" default-to-filled="[[iconFilled]]" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n  <template is="dom-if" if="[[!data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-icon id="unhearted" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-creator-heart-renderer">[[heartTooltip]]</tp-yt-paper-tooltip>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return q2b=a},{mode:1});var s2b=function(){var a=_.P.apply(this,arguments)||this;a.hasCreatorReply=!1;a.buttonOverrides={size:"S",iconPosition:"icon-only"};a.replyButtonOverrides={size:"S",type:"text"};a.forceIconButton=!_.w("web_modern_buttons");a.modern=_.w("web_modern_buttons");a.buttonTooltipPosition="bottom";a.systemIcons=_.w("kevlar_system_icons");a.replyDialog=null;return a};
_.z(s2b,_.P);_.f=s2b.prototype;
_.f.configureRendererStamper=function(){return{"data.creatorHeart":{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}},replyButtonBeginning:{id:"reply-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}},replyButtonEnd:{id:"reply-button-end",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{forceIconButton:!0},properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]",overrides:"[[replyButtonOverrides]]",forceIconButton:"[[forceIconButton]]"}}}},
"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]"}}}}}};
_.f.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.f.dataChange=function(){this.replyDialog&&_.E(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var a,b,c;this.isLiked=this.systemIcons&&!!((a=this.data)==null?0:(b=a.likeButton)==null?0:(c=b.toggleButtonRenderer)==null?0:c.isToggled)};
_.f.computeShowVoteCountBeginning=function(a,b){return a===void 0||b===void 0?!0:a.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!b&&this.ytRendererBehavior.getSimpleString(b)!=="0"};
_.f.computeShowVoteCountEnd=function(a,b){return a===void 0||b===void 0?!0:a.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!b&&this.ytRendererBehavior.getSimpleString(b)!=="0"};
_.f.computeShowCommentCount=function(a,b){return a===void 0||b===void 0?!0:a.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!b&&this.ytRendererBehavior.getSimpleString(b)!=="0"};
_.f.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.f.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.f.showReplyDialog=function(a){a&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.E(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=a,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.f.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.f.onRequestSent=function(a){if(_.w("web_button_rework")){a=_.h(a.detail);for(var b=a.next();!b.done;b=a.next())(b=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",b.value))&&this.showReplyDialog(b)}};
_.f.onYtNavigate=function(a){var b,c;(a=(b=_.y(a.detail.endpoint,_.yDb))==null?void 0:(c=b.dialog)==null?void 0:c.commentReplyDialogRenderer)&&this.showReplyDialog(a)};
_.f.onYtServiceRequestSent=function(a,b){a.stopPropagation();if(b.actions)for(a=0;a<b.actions.length;a++){var c=_.y(b.actions[a],Kzb);c&&this.handleUpdateCommentVoteAction(c)}};
_.f.handleUpdateCommentVoteAction=function(a){this.voteCount=a.voteCount||_.Vp("0");a.voteStatus==="LIKE"?this.JSC$13135_ytdDislikeToggleButtonRenderer.toggle(!1):a.voteStatus==="DISLIKE"?this.JSC$13135_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13135_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13135_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.f.computeReplyButtonHidden=function(a){return a};
_.f.computeReplyButtonBeginning=function(a){return(a==null?0:a.replyButton)&&a.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?a.replyButton:void 0};
_.f.computeReplyButtonEnd=function(a){return(a==null?0:a.replyButton)&&a.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?a.replyButton:void 0};
_.f.computeActionButtonStyle=function(a){return(a==null?0:a.style)?a.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.f.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.f.onYtToggleButton=function(a){var b,c;this.isLiked=this.systemIcons&&!!((b=a.detail)==null?0:(c=b.actions)==null?0:c.like)};
var jM=s2b;jM.prototype.onYtToggleButton=jM.prototype.onYtToggleButton;jM.prototype.onButtonTooltipPositionChanged=jM.prototype.onButtonTooltipPositionChanged;jM.prototype.onYtServiceRequestSent=jM.prototype.onYtServiceRequestSent;jM.prototype.onYtNavigate=jM.prototype.onYtNavigate;jM.prototype.onRequestSent=jM.prototype.onRequestSent;jM.prototype.onYtCommentboxDismiss=jM.prototype.onYtCommentboxDismiss;jM.prototype.dataChange=jM.prototype.dataChange;
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],jM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],jM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],jM.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],jM.prototype,"voteCount",void 0);_.U([_.O(),_.W("design:type",Object)],jM.prototype,"commentCount",void 0);_.U([_.O(),_.W("design:type",Object)],jM.prototype,"replyThumbnail",void 0);
_.U([_.O(),_.W("design:type",Object)],jM.prototype,"hasCreatorReply",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],jM.prototype,"enableCreationBox",void 0);_.U([_.O({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.W("design:type",String)],jM.prototype,"actionButtonsStyle",void 0);_.U([_.O({computed:"computeReplyButtonBeginning(data)"}),_.W("design:type",Object)],jM.prototype,"replyButtonBeginning",void 0);
_.U([_.O({computed:"computeReplyButtonEnd(data)"}),_.W("design:type",Object)],jM.prototype,"replyButtonEnd",void 0);_.U([_.O(),_.W("design:type",Object)],jM.prototype,"buttonOverrides",void 0);_.U([_.O(),_.W("design:type",Object)],jM.prototype,"replyButtonOverrides",void 0);_.U([_.O(),_.W("design:type",Object)],jM.prototype,"forceIconButton",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],jM.prototype,"useCommentIcon",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],jM.prototype,"modern",void 0);_.U([_.O(),_.W("design:type",Object)],jM.prototype,"buttonTooltipPosition",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],jM.prototype,"systemIcons",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],jM.prototype,"isLiked",void 0);_.U([_.ir("ytd-button-renderer"),_.W("design:type",Object)],jM.prototype,"ytdReplyButtonRenderer",void 0);
_.U([_.ir("#like-button"),_.W("design:type",Object)],jM.prototype,"JSC$13135_ytdLikeToggleButtonRenderer",void 0);_.U([_.ir("#dislike-button"),_.W("design:type",Object)],jM.prototype,"JSC$13135_ytdDislikeToggleButtonRenderer",void 0);_.U([_.ir("#reply-dialog"),_.W("design:type",HTMLElement)],jM.prototype,"replyDialogElement",void 0);_.U([_.ir("#reply-button"),_.W("design:type",HTMLElement)],jM.prototype,"replyButtonElement",void 0);
_.U([_.ir("#reply-button-end"),_.W("design:type",HTMLElement)],jM.prototype,"replyButtonEndElement",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jM.prototype,"dataChange",null);_.U([_.M("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],jM.prototype,"onYtCommentboxDismiss",null);
_.U([_.M("yt-service-request-sent-button-renderer"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],jM.prototype,"onRequestSent",null);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],jM.prototype,"onYtNavigate",null);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Nt]),_.W("design:returntype")],jM.prototype,"onYtServiceRequestSent",null);_.U([_.N("buttonTooltipPosition"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jM.prototype,"onButtonTooltipPositionChanged",null);_.U([_.M("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],jM.prototype,"onYtToggleButton",null);
jM=_.U([_.Q({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],jM);
_.S(jM,"ytd-comment-action-buttons-renderer",function(){if(p2b!==void 0)return p2b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-action-buttons-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-action-buttons-renderer">\n  <div id="reply-button" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <span id="vote-count-left" hidden="[[!computeShowVoteCountBeginning(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.likeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!computeShowVoteCountEnd(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.dislikeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <div id="creator-heart" class="style-scope ytd-comment-action-buttons-renderer"></div>\n  <div id="share-button" hidden="[[!data.shareButton]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <div id="reply-button-end" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  \n  <span id="comment-count" hidden="[[!computeShowCommentCount(data, commentCount)]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(commentCount)]]\n  </span>\n</div>\n<div id="reply-dialog" class="style-scope ytd-comment-action-buttons-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return p2b=a},{mode:1});var t2b;var u2b=function(){return _.P.apply(this,arguments)||this};
_.z(u2b,_.P);u2b.prototype.focus=function(){_.E(this.hostElement).querySelector("#commentbox").focus()};
var kM=u2b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],kM.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],kM.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],kM.prototype,"zeroStepChannelCreationRenderer",void 0);kM=_.U([_.Q({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],kM);
_.S(kM,"ytd-comment-dialog-renderer",function(){if(t2b!==void 0)return t2b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" zero-step-channel-creation-renderer="[[zeroStepChannelCreationRenderer]]" class="style-scope ytd-comment-dialog-renderer">\n</ytd-commentbox>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return t2b=a},{mode:1});var v2b;var w2b=function(){return _.P.apply(this,arguments)||this};
_.z(w2b,_.P);var lM=w2b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],lM.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],lM.prototype,"data",void 0);lM=_.U([_.Q({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],lM);
_.S(lM,"ytd-comment-inline-thumbnail-renderer",function(){if(v2b!==void 0)return v2b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-inline-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-comment-inline-thumbnail-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumbnail-container style-scope ytd-comment-inline-thumbnail-renderer" hidden="[[!data.thumbnail]]">\n    <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]" class="style-scope ytd-comment-inline-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</a>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return v2b=a},{mode:1});var x2b;var y2b;var z2b=function(){var a=_.P.apply(this,arguments)||this;a.isOpen=!1;return a};
_.z(z2b,_.P);_.f=z2b.prototype;_.f.dataChanged=function(){this.isOpen=!1};
_.f.onTap=function(){this.data&&(this.data.navigationEndpoint?_.io(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.f.focus=function(){this.JSC$13145_commentbox.focus()};
_.f.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.f.openDialog=function(){this.isOpen=!0;this.JSC$13145_commentbox.focus();this.JSC$13145_commentbox.maybeHeightChanged()};
var mM=z2b;mM.prototype.onYtCommentboxDismiss=mM.prototype.onYtCommentboxDismiss;mM.prototype.dataChanged=mM.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],mM.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],mM.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],mM.prototype,"isOpen",void 0);_.U([_.ir("#commentbox"),_.W("design:type",Object)],mM.prototype,"JSC$13145_commentbox",void 0);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mM.prototype,"dataChanged",null);_.U([_.M("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],mM.prototype,"onYtCommentboxDismiss",null);mM=_.U([_.Q({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],mM);
_.S(mM,"ytd-comment-reply-dialog-renderer",function(){if(y2b!==void 0)return y2b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-reply-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-reply="" class="style-scope ytd-comment-reply-dialog-renderer">\n</ytd-commentbox>\n<div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-comment-reply-dialog-renderer">\n  <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-reply-dialog-renderer">\n  </yt-img-shadow>\n  <div id="placeholder-area" on-tap="onTap" on-keydown="onTap" class="style-scope ytd-comment-reply-dialog-renderer">\n    <yt-formatted-string id="placeholder-text" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-reply-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return y2b=a},{mode:1});var A2b;var B2b=function(){return _.P.apply(this,arguments)||this};
_.z(B2b,_.P);_.Um.Object.defineProperties(B2b.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.data)==null?void 0:(b=a.icon)==null?void 0:b.iconType;return c?"yt-icons:"+c.toLowerCase():null}}});
var nM=B2b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],nM.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],nM.prototype,"data",void 0);_.U([_.O(),_.K("data.icon"),_.W("design:type",Object),_.W("design:paramtypes",[])],nM.prototype,"icon",null);nM=_.U([_.Q({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],nM);
_.S(nM,"ytd-pinned-comment-badge-renderer",function(){if(A2b!==void 0)return A2b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pinned-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon hidden="[[!icon]]" icon="[[icon]]" size="12" class="style-scope ytd-pinned-comment-badge-renderer"></yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-pinned-comment-badge-renderer"></yt-formatted-string>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return A2b=a},{mode:1});var C2b;var D2b={},E2b={input:!0,meta:!0,br:!0,link:!0,img:!0},oM=null;D2b.YtSharedTooltipBehavior={properties:{sharedTooltipPosition:{type:String,value:"bottom"},sharedTooltipAnimationDelay:{type:Number,value:500}},attached:function(){this.hostElement.addEventListener("mouseover",this.onMouseOver_,!0)},
detached:function(){this.hostElement.removeEventListener("mouseover",this.onMouseOver_,!0)},
createTooltipIfRequired_:function(){oM==null&&(oM=document.createElement("tp-yt-paper-tooltip"),oM.offset=8,oM.fitToVisibleBounds=!0)},
onMouseOver_:function(a){if(a=_.Jf(a.target,function(e){return e==this||e.getAttribute&&e.getAttribute("shared-tooltip-text")}.bind(this),!0)){var b=a.getAttribute("shared-tooltip-text");
if(b){var c=this,d=null;a!=this&&(a.tagName.toLowerCase()in E2b?c=a.parentElement:c=a,a.id&&(d=a.id));this.polymerController.createTooltipIfRequired_();if(oM.parentElement!=c||oM.for!=d)(0,_.er)(oM).textContent=b,_.E(c).appendChild(oM),oM.for=d,oM.animationDelay=this.polymerController.sharedTooltipAnimationDelay,oM.position=this.polymerController.sharedTooltipPosition}}}};var pM=function(){return _.P.apply(this,arguments)||this};
_.z(pM,_.P);pM.prototype.configureRendererStamper=function(){return{"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]",sharedTooltipText:"[[data.tooltip]]"}}}},data:{id:"custom-badge",mapping:{customBadge:{component:"yt-img-shadow",properties:{thumbnail:"[[data.customBadge]]",sharedTooltipText:"[[data.tooltip]]"}}}}}};
pM.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
pM.prototype.colorChanged=function(){var a,b,c,d=(a=this.data)==null?void 0:(b=a.color)==null?void 0:(c=b.basicColorPaletteData)==null?void 0:c.foregroundBodyColor;d&&(this.rgbBadgeColor=_.Cq(d));_.E(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
pM.prototype.tooltipChanged=function(){var a;((a=this.data)==null?0:a.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
var qM=pM;qM.prototype.tooltipChanged=qM.prototype.tooltipChanged;qM.prototype.colorChanged=qM.prototype.colorChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],qM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],qM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(D2b.YtSharedTooltipBehavior),_.W("design:type",Object)],qM.prototype,"ytSharedTooltipBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],qM.prototype,"data",void 0);_.U([_.O({value:"#4285F4"}),_.W("design:type",String)],qM.prototype,"rgbBadgeColor",void 0);_.U([_.N("data.color"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qM.prototype,"colorChanged",null);_.U([_.N("data.tooltip"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qM.prototype,"tooltipChanged",null);
qM=_.U([_.Q({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],qM);
_.S(qM,"ytd-sponsor-comment-badge-renderer",function(){if(C2b!==void 0)return C2b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsor-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n<div id="custom-badge" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return C2b=a},{mode:1});var F2b;var G2b;var rM=function(){var a=_.P.apply(this,arguments)||this;a.defaultIconToFilled=!_.w("kevlar_fill_comment_chip_icon_killswitch");return a};
_.z(rM,_.P);rM.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
rM.prototype.dataChanged=function(){if(this.data){var a,b;((a=this.data.chipColorPalette)==null?0:a.backgroundColor)&&((b=this.data.chipColorPalette)==null?0:b.foregroundTitleColor)&&_.fr(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.Dq(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.Dq(this.data.chipColorPalette.foregroundTitleColor)});var c;((c=this.data)==null?0:c.command)?(_.fr(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.fr(this.hostElement,{"--yt-pdg-comment-chip-cursor":"initial"}),this.hostElement.removeAttribute("role"),this.hostElement.removeAttribute("tabindex"));this.basePriceText=this.data.chipText;this.chipIcon=this.data.chipIcon}};
rM.prototype.onTap=function(){var a;if(this.data&&(a=this.data)!=null&&a.command){var b;this.ytComponentBehavior.resolveCommand((b=this.data)==null?void 0:b.command)}};
rM.prototype.getIconSize=function(){return _.w("kevlar_fill_comment_chip_icon_killswitch")?24:12};
var sM=rM;sM.prototype.onTap=sM.prototype.onTap;sM.prototype.dataChanged=sM.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],sM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],sM.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.FD),_.W("design:type",Object)],sM.prototype,"ironA11yKeysBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],sM.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],sM.prototype,"basePriceText",void 0);_.U([_.O(),_.W("design:type",Object)],sM.prototype,"chipIcon",void 0);_.U([_.O(),_.W("design:type",Object)],sM.prototype,"defaultIconToFilled",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],sM.prototype,"dataChanged",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],sM.prototype,"onTap",null);
sM=_.U([_.wr({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],sM);
_.S(sM,"yt-pdg-comment-chip-renderer",function(){if(G2b===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-comment-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.pdg.yt_pdg_comment_chip_renderer.yt.pdg.comment.chip.renderer.css.js--\x3e<div id="comment-chip-container" class="style-scope yt-pdg-comment-chip-renderer"><yt-icon default-to-filled="[[defaultIconToFilled]]" icon="[[chipIcon.iconType]]" size="[[getIconSize()]]" class="style-scope yt-pdg-comment-chip-renderer"></yt-icon><span id="comment-chip-price" class="style-scope yt-pdg-comment-chip-renderer"> [[getSimpleString(basePriceText)]] </span></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;F2b===void 0&&(F2b=document.createElement("template"));var d=F2b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);G2b=a}a=G2b;return a},{mode:2});var H2b=function(){var a=_.P.apply(this,arguments)||this;a.isReply=!1;a.isCreatorReply=!1;a.useSmallAvatarsEngagementPanelOnly=_.w("small_avatars_for_comments_ep");a.useSmallAvatars=_.w("small_avatars_for_comments");a.editDialog=null;a.hasPendingRequest=!1;a.linkedBadgeEl=null;a.shouldShowReadMoreInitially=!1;a.JSC$13165_spinnerEl=null;a.attachedResolver=_.St();return a};
_.z(H2b,_.P);_.f=H2b.prototype;
_.f.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.pinnedCommentBadge":{id:"pinned-comment-badge",mapping:{pinnedCommentBadgeRenderer:"ytd-pinned-comment-badge-renderer"}},"data.sponsorCommentBadge":{id:"sponsor-comment-badge",mapping:{sponsorCommentBadgeRenderer:"ytd-sponsor-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",
mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer",commentDialogRenderer:"ytd-comment-dialog-renderer",commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"}}}};
_.f.contentTextChanged=function(){var a;(a=this.expander)==null||a.reset()};
_.f.attached=function(){this.attachedResolver.resolve()};
_.f.detached=function(){this.editDialog=null};
_.f.dataChanged=function(){if(this.data&&(this.hasPendingRequest=!1,this.editDialog=null,this.linkedBadgeEl&&(this.linkedCommentBadge.removeChild(this.linkedBadgeEl),this.linkedBadgeEl=null),this.data.hiddenByDefault&&(this.hostElement.hidden=!0),this.data.actions))for(var a=0,b=this.data.actions.length;a<b;a++)this.openEditDialog(_.y(this.data.actions[a],Jzb))};
_.f.hasPendingRequestChanged=function(){!this.hasPendingRequest||this.editDialog||this.JSC$13165_spinnerEl||(this.JSC$13165_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.E(this.hostElement).appendChild(this.JSC$13165_spinnerEl));this.JSC$13165_spinnerEl&&(this.JSC$13165_spinnerEl.active=this.hasPendingRequest)};
_.f.backgroundExtendedDetailsChanged=function(){var a,b;((a=this.data)==null?0:(b=a.backgroundExtendedDetails)==null?0:b.backgroundColorArgb)?(a={"--ytd-comment-paid-background-color":_.Dq(this.data.backgroundExtendedDetails.backgroundColorArgb),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"},_.fr(this.hostElement,a)):_.fr(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.f.linkedCommentBadgeChanged=function(){var a=this,b;if((b=this.data)!=null&&b.linkedCommentBadge){this.linkedBadgeEl||(this.linkedBadgeEl=document.createElement("ytd-badge-supported-renderer"));this.linkedBadgeEl.topStandaloneBadge=this.data.linkedCommentBadge;this.linkedCommentBadge.appendChild(this.linkedBadgeEl);if(!_.w("disable_pause_on_linked_comment_nav"))try{var c=_.au();c&&c.pause()}catch(d){}this.attachedResolver.promise.then(this.afterNextRender).then(function(){var d,e=(d=_.v().resolve(_.Xi(_.Zt)))==
null?void 0:d.getCurrentPage();e&&e.getScrollTop()===0&&e.setScrollTop(a.hostElement.offsetTop+a.hostElement.offsetHeight-document.documentElement.clientHeight+32)})}};
_.f.onShow=function(){_.Mo("cmv",void 0,"wn_comments")};
_.f.onYtNavigate=function(a){a=a.detail.endpoint;this.openEditDialog(_.y(a,_.zDb)||_.y(a,_.ADb))};
_.f.onYtCommentboxDismiss=function(){this.editDialog=null;_.fr(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.f.onYtCommentboxResize=function(a){var b;(a==null?0:(b=a.detail)==null?0:b.height)&&_.fr(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":a.detail.height+"px"})};
_.f.onYtServiceRequestSent=function(a,b){a.stopPropagation();a=b==null?void 0:b.endpoint;b=_.w("enable_profile_cards_on_comments")&&(_.y(a,cFb)||_.y(a,sFb)||_.y(a,Pyb)||_.y(a,_.NE)||_.y(a,_.Jt));if(_.y(a,WDb)||b)this.hasPendingRequest=!1;else{var c;if(_.y(a,VEb)||_.y(a,WEb)||(c=_.y(a,TE))==null||!c.clientActions||_.y(a,Vzb))this.hasPendingRequest=!0}};
_.f.onAuthorThumbnailClicked=function(){var a=this;if(_.w("enable_profile_cards_on_comments")){var b;(b=this.data)!=null&&b.authorEndpoint&&this.componentBehavior.resolveCommand(this.data.authorEndpoint,{commandController:{onSuccess:function(c,d){a.onAuthorEndpointSuccess(d)},
onServerError:function(c,d){_.Dl(new _.qj("Failed to resolve the command",d))}}})}};
_.f.onAuthorEndpointSuccess=function(a){if(a=a==null?void 0:a.popupCommand){this.componentBehavior.resolveCommand(a,{form:{element:this.authorThumbnail}});this.logScreenVe();a=a==null?void 0:a.clickTrackingParams;var b=_.Dn();a&&b&&_.ls().graftServerVe(a,b)}};
_.f.logScreenVe=function(){_.pF(_.ls(),66557)};
_.f.onYtServiceRequestCompleted=function(){this.hasPendingRequest=!1};
_.f.openEditDialog=function(a){this.data&&a&&a.dialog&&(this.editDialog=a.dialog,this.JSC$13165_editReplyDialogContainer?this.JSC$13165_editReplyDialogContainer.openDialog():this.JSC$13165_editCommentDialogContainer&&this.JSC$13165_editCommentDialogContainer.focus())};
_.f.computeAuthorTextClass=function(a){return a.authorIsChannelOwner?"channel-owner":""};
_.f.computeIsBodyHidden=function(a,b){return!!a||b};
_.f.computeCommentStyle=function(a){return a.style?a.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.f.onYtExpanderMoreTapped=function(){var a,b,c=(a=this.data)==null?void 0:(b=a.expandButton)==null?void 0:b.buttonRenderer;c&&this.ytRendererBehavior.logExplicitClick(c)};
_.f.afterNextRender=function(){var a=this;return new Promise(function(b){_.Qm(a,b)})};
_.Um.Object.defineProperties(H2b.prototype,{optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.w("web_watch_compact_comments")||_.w("optimal_reading_width_comments_ep")&&this.engagementPanel}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.voteCount)||_.Vp("0")}},
replyThumbnail:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.currentUserReplyThumbnail}},
hasCreatorReply:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return!!(((a=this.data)==null?0:(b=a.creatorReply)==null?0:b.commentRenderer)||((c=this.data)==null?0:c.containsCreatorReply))}},
authorTextCommand:{configurable:!0,enumerable:!0,get:function(){var a;if(_.w("enable_profile_cards_on_comments")&&((a=this.data)==null?0:a.channelPageEndpoint)){var b;return(b=this.data)==null?void 0:b.channelPageEndpoint}var c;return(c=this.data)==null?void 0:c.authorEndpoint}},
hidePaidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null?0:a.paidCommentChipRenderer)}}});
var tM=H2b;tM.prototype.onYtExpanderMoreTapped=tM.prototype.onYtExpanderMoreTapped;tM.prototype.onYtServiceRequestCompleted=tM.prototype.onYtServiceRequestCompleted;tM.prototype.onYtServiceRequestSent=tM.prototype.onYtServiceRequestSent;tM.prototype.onYtCommentboxResize=tM.prototype.onYtCommentboxResize;tM.prototype.onYtCommentboxDismiss=tM.prototype.onYtCommentboxDismiss;tM.prototype.onYtNavigate=tM.prototype.onYtNavigate;tM.prototype.linkedCommentBadgeChanged=tM.prototype.linkedCommentBadgeChanged;
tM.prototype.backgroundExtendedDetailsChanged=tM.prototype.backgroundExtendedDetailsChanged;tM.prototype.hasPendingRequestChanged=tM.prototype.hasPendingRequestChanged;tM.prototype.dataChanged=tM.prototype.dataChanged;tM.prototype.contentTextChanged=tM.prototype.contentTextChanged;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],tM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],tM.prototype,"componentBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],tM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.RG.YtVisibilityBehavior),_.W("design:type",Object)],tM.prototype,"ytVisibilityBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],tM.prototype,"data",void 0);_.U([_.O({computed:"computeCommentStyle(data)",reflectToAttribute:!0}),_.W("design:type",String)],tM.prototype,"commentStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],tM.prototype,"isReply",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],tM.prototype,"isCreatorReply",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],tM.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],tM.prototype,"useSmallAvatars",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],tM.prototype,"engagementPanel",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data","engagementPanel"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],tM.prototype,"optimalReadingWidthComments",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],tM.prototype,"voteCount",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],tM.prototype,"replyThumbnail",null);_.U([_.O(),_.W("design:type",Object)],tM.prototype,"editDialog",void 0);
_.U([_.K("data","data.containsCreatorReply"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],tM.prototype,"hasCreatorReply",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],tM.prototype,"authorTextCommand",null);_.U([_.O(),_.W("design:type",Object)],tM.prototype,"hasPendingRequest",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],tM.prototype,"noActions",void 0);_.U([_.O(),_.W("design:type",Object)],tM.prototype,"linkedBadgeEl",void 0);
_.U([_.O(),_.W("design:type",Object)],tM.prototype,"shouldShowReadMoreInitially",void 0);_.U([_.ir("ytd-expander"),_.W("design:type",Object)],tM.prototype,"expander",void 0);_.U([_.ir("#linked-comment-badge"),_.W("design:type",HTMLElement)],tM.prototype,"linkedCommentBadge",void 0);_.U([_.ir("#body"),_.W("design:type",HTMLElement)],tM.prototype,"body",void 0);_.U([_.ir("#author-thumbnail > a"),_.W("design:type",HTMLElement)],tM.prototype,"authorThumbnail",void 0);
_.U([_.ir("ytd-comment-dialog-renderer"),_.W("design:type",Object)],tM.prototype,"JSC$13165_editCommentDialogContainer",void 0);_.U([_.ir("ytd-comment-reply-dialog-renderer"),_.W("design:type",Object)],tM.prototype,"JSC$13165_editReplyDialogContainer",void 0);_.U([_.N("data.contentText"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tM.prototype,"contentTextChanged",null);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tM.prototype,"dataChanged",null);_.U([_.N("hasPendingRequest"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tM.prototype,"hasPendingRequestChanged",null);_.U([_.N("data.backgroundExtendedDetails"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tM.prototype,"backgroundExtendedDetailsChanged",null);
_.U([_.N("data.linkedCommentBadge"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tM.prototype,"linkedCommentBadgeChanged",null);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],tM.prototype,"onYtNavigate",null);_.U([_.M("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],tM.prototype,"onYtCommentboxDismiss",null);
_.U([_.M("yt-commentbox-resize"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],tM.prototype,"onYtCommentboxResize",null);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Nt]),_.W("design:returntype")],tM.prototype,"onYtServiceRequestSent",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],tM.prototype,"hidePaidCommentChipRenderer",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],tM.prototype,"onYtServiceRequestCompleted",null);_.U([_.M("yt-expander-more-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tM.prototype,"onYtExpanderMoreTapped",null);tM=_.U([_.Q({is:"ytd-comment-renderer",disableElementRegistration:!0})],tM);
_.S(tM,"ytd-comment-renderer",function(){if(x2b!==void 0)return x2b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-renderer"></div>\n<div id="linked-comment-badge" hidden="[[!data.linkedCommentBadge]]" class="style-scope ytd-comment-renderer"></div>\n<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-comment-renderer">\n  <div id="author-thumbnail" class="style-scope ytd-comment-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-comment-renderer" href$="[[computeOptionalHref_(data.authorEndpoint)]]" on-click="onAuthorThumbnailClicked" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-comment-renderer">\n    <div id="header" class="style-scope ytd-comment-renderer">\n      <div id="pinned-comment-badge" hidden="[[!data.pinnedCommentBadge]]" class="style-scope ytd-comment-renderer"></div>\n      <div id="header-author" class="style-scope ytd-comment-renderer">\n        <h3 class="style-scope ytd-comment-renderer">\n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-renderer" href$="[[computeOptionalHref_(authorTextCommand)]]" data="[[authorTextCommand]]" hidden="[[data.authorCommentBadge]]">\n            <yt-formatted-string class$="[[computeAuthorTextClass(data)]] style-scope ytd-comment-renderer" respect-lang-dir="" text="[[data.authorText]]">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-comment-renderer"></span>\n        <span id="sponsor-comment-badge" hidden="[[!data.sponsorCommentBadge]]" class="style-scope ytd-comment-renderer"></span>\n        <yt-formatted-string class="published-time-text style-scope ytd-comment-renderer" link-inherit-color="" text="[[data.publishedTimeText]]">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-comment-renderer"></span>\n      </div>\n    </div>\n    <div id="comment-content" class="style-scope ytd-comment-renderer">\n      \n      <ytd-comment-inline-thumbnail-renderer id="inline-thumbnail-renderer" data="[[data.videoThumbnail.commentVideoThumbnailRenderer]]" hidden="[[!data.videoThumbnail]]" class="style-scope ytd-comment-renderer">\n      </ytd-comment-inline-thumbnail-renderer>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-renderer">\n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[data.paidCommentChipRenderer.pdgCommentChipRenderer]]" hidden="[[hidePaidCommentChipRenderer]]" class="style-scope ytd-comment-renderer">\n      </yt-pdg-comment-chip-renderer>\n      <yt-formatted-string id="content-text" slot="content" split-lines="" text="[[data.contentText]]" user-input="" class="style-scope ytd-comment-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-comment-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-comment-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n  </div>\n    <ytd-comment-action-buttons-renderer id="action-buttons" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-creator-reply="[[hasCreatorReply]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" reply-thumbnail="[[replyThumbnail]]" vote-count="[[voteCount]]" class="style-scope ytd-comment-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n  <div id="action-menu" class="style-scope ytd-comment-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-renderer"></div>\n\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return x2b=a},{mode:1});var I2b;var J2b;var uM=function(){return _.P.apply(this,arguments)||this};
_.z(uM,_.P);uM.prototype.attached=function(){var a=this;this.networkStatusManager||(this.networkStatusManager=new _.Lk,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){a.onlineHandler()}))};
uM.prototype.detached=function(){var a=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){a.onlineHandler()}),delete this.networkStatusManager)};
uM.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
var vM=uM;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],vM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],vM.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],vM.prototype,"data",void 0);vM=_.U([_.Q({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],vM);
_.S(vM,"ytd-reload-page-button-renderer",function(){if(J2b!==void 0)return J2b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reload-page-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer data="[[data]]" class="style-scope ytd-reload-page-button-renderer"></ytd-button-renderer>');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
return J2b=a},{mode:1});var K2b={EMPTY_SEARCH:"promo-full-height",HASHTAG_LANDING_PAGE_EMPTY:"hashtag-landing-page",HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE:"hashtag-landing-page",HASHTAG_LANDING_PAGE_ERROR:"hashtag-landing-page",HASHTAG_LANDING_PAGE_ERROR_DARK_MODE:"hashtag-landing-page",OFFLINE_NO_CONTENT:"offline-no-content"},L2b=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(L2b,_.P);_.f=L2b.prototype;_.f.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.f.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.f.computeHasBodyText=function(a){return!!a.bodyText};
_.f.computeButtons=function(a){var b=[];a.ctaButton&&b.push(a.ctaButton);a.secondaryButton&&b.push(a.secondaryButton);return b};
_.f.computeRendererStyle=function(a){return a.style?a.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():a.icon?"":"no-icon"};
_.f.getIconName=function(a,b){b=b===void 0?!1:b;if(a===void 0)return"";a=this.get("icon.iconType",a);var c;_.w("enable_hlp_client_icon_pick")?c=this.getThemedIcon(a,b):c=a;(b=K2b[c])||(b="yt-icons");return[b,c].join(":")};
_.f.getThemedIcon=function(a,b){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(a)?b?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(a)?b?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":a};
_.f.isThumbnail=function(a){return!!a.thumbnail};
_.f.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.f.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
var wM=L2b;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],wM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],wM.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],wM.prototype,"data",void 0);
_.U([_.O({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.W("design:type",String)],wM.prototype,"rendererStyle",void 0);_.U([_.O({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.W("design:type",String)],wM.prototype,"iconName",void 0);_.U([_.O({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],wM.prototype,"thumbnail",void 0);_.U([_.O({computed:"computeButtons(data)"}),_.W("design:type",Array)],wM.prototype,"buttons",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],wM.prototype,"isDarkTheme",void 0);_.U([_.O({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],wM.prototype,"hasBodyText",void 0);wM=_.U([_.Q({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],wM);
_.S(wM,"ytd-background-promo-renderer",function(){if(I2b!==void 0)return I2b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-background-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="image style-scope ytd-background-promo-renderer" hidden="[[!data.icon]]" icon="[[iconName]]"></yt-icon>\n<yt-img-shadow class="image style-scope ytd-background-promo-renderer" height="[[data.thumbnail.thumbnails.height]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnail.thumbnails.width]]">\n</yt-img-shadow>\n<div class="promo-message style-scope ytd-background-promo-renderer">\n  <div class="promo-title style-scope ytd-background-promo-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string class="promo-body-text style-scope ytd-background-promo-renderer" split-lines="" text="[[data.bodyText]]">\n  </yt-formatted-string>\n</div>\n<div id="buttons" hidden="[[!data.ctaButton]]" class="style-scope ytd-background-promo-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return I2b=a},{mode:1});var M2b;var N2b=function(){var a=_.P.apply(this,arguments)||this;a.collections=_.w("web_modern_collections_v2");return a};
_.z(N2b,_.P);_.Um.Object.defineProperties(N2b.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d,e,g;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(a=this.data)==null?void 0:(b=a.thumbnail)==null?void 0:b.sampledThumbnailColor,vibrantColorPalette:(c=this.data)==null?void 0:(d=c.thumbnail)==null?void 0:d.vibrantColorPalette,darkColorPalette:(e=this.data)==null?void 0:(g=e.thumbnail)==null?void 0:g.darkColorPalette,experimentEnabled:this.collections}}}});
var xM=N2b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],xM.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],xM.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],xM.prototype,"collections",void 0);_.U([_.K("data","collections"),_.W("design:type",Object),_.W("design:paramtypes",[])],xM.prototype,"collectionStack",null);xM=_.U([_.Q({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],xM);
_.S(xM,"ytd-compact-station-renderer",function(){if(M2b!==void 0)return M2b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-station-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="flex-container style-scope ytd-compact-station-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-station-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-station-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" width="118" class="style-scope ytd-compact-station-renderer"></ytd-thumbnail>\n  </div>\n  <a class="yt-simple-endpoint style-scope ytd-compact-station-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.title)]]\n    </h3>\n    <div id="flex-item" class="style-scope ytd-compact-station-renderer">\n      <p id="description" title$="[[getSimpleString(data.description)]]" class="style-scope ytd-compact-station-renderer">\n        [[getSimpleString(data.description)]]\n      </p>\n    </div>\n    <p id="video-count-text" class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.videoCountText)]]\n    </p>\n  </a>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return M2b=a},{mode:1});var O2b;var P2b=function(){var a=_.P.apply(this,arguments)||this;a.isRichGrid=!1;return a};
_.z(P2b,_.P);P2b.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
var yM=P2b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],yM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],yM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],yM.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],yM.prototype,"isRichGrid",void 0);yM=_.U([_.Q({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],yM);
_.S(yM,"ytd-grid-channel-renderer",function(){if(O2b!==void 0)return O2b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel" class="style-scope ytd-grid-channel-renderer">\n  <a id="channel-info" class="yt-simple-endpoint style-scope ytd-grid-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow height="103" thumbnail="[[data.thumbnail]]" width="103" class="style-scope ytd-grid-channel-renderer"> </yt-img-shadow>\n    <span id="title" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="thumbnail-attribution" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.subscriberCountText)]]</span>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-channel-renderer">\n    </ytd-badge-supported-renderer>\n  </a>\n  <div id="subscribe" hidden="[[!data.subscribeButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n  <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return O2b=a},{mode:1});var Q2b;var R2b=function(){return _.P.apply(this,arguments)||this};
_.z(R2b,_.P);var zM=R2b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],zM.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],zM.prototype,"data",void 0);zM=_.U([_.Q({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],zM);
_.S(zM,"ytd-grid-movie-playlist-renderer",function(){if(Q2b!==void 0)return Q2b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail width="210" data="[[data]]" bottom-side-panel="" class="style-scope ytd-grid-movie-playlist-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-playlist-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-playlist-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-playlist-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer id="badges" badges="[[data.ownerBadges]]" hidden="[[!data.ownerBadges]]" class="style-scope ytd-grid-movie-playlist-renderer">\n</ytd-badge-supported-renderer>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Q2b=a},{mode:1});var S2b;var AM=function(){var a=_.P.apply(this,arguments)||this;a.downloadProgress=0;a.transferState="TRANSFER_STATE_UNKNOWN";a.modernButtons=_.w("web_modern_buttons");a.useModernCollectionsV2=_.w("web_modern_collections_v2");return a};
_.z(AM,_.P);AM.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
AM.prototype.configureRendererStamper=function(){return{"data.menu":CK}};
AM.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
AM.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.w("woffle_playlist_renderer_killswitch")){var a,b=sGa(this.entityInfo,this.transferState,this.downloadProgress,(a=this.data)==null?void 0:a.playlistId,this.isOnline);a=b.viewPlaylistText;var c=b.badges;b=b.thumbnailOverlays;this.isDownloads=!!a||!!c;this.set("data.viewPlaylistText",a);c&&c.length>0&&this.set("data.badges",c);b&&b.length>0&&this.set("data.thumbnailOverlays",
b)}};
_.Um.Object.defineProperties(AM.prototype,{downloadState:{configurable:!0,enumerable:!0,get:function(){return this.transferState&&this.transferState!=="TRANSFER_STATE_UNKNOWN"?this.transferState==="TRANSFER_STATE_COMPLETE"?"DOWNLOADED":"DOWNLOADING":""}},
menuHidden:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null?0:a.menu)}}});
var BM=AM;BM.prototype.transferStateChanged=BM.prototype.transferStateChanged;BM.prototype.dataChanged=BM.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],BM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.$I),_.W("design:type",Object)],BM.prototype,"ytdLockupBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],BM.prototype,"ytdReduxBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],BM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O({selector:_.IFa,selectorArgs:["data.playlistId"]}),_.W("design:type",Object)],BM.prototype,"downloadProgress",void 0);_.U([_.O({selector:_.Lp,selectorArgs:["data.playlistId"]}),_.W("design:type",Object)],BM.prototype,"transferState",void 0);_.U([_.O({selector:HFa,selectorArgs:["data.playlistId"]}),_.W("design:type",Object)],BM.prototype,"entityInfo",void 0);
_.U([_.O({selector:Jp}),_.W("design:type",Boolean)],BM.prototype,"isOnline",void 0);_.U([_.O(),_.W("design:type",Object)],BM.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],BM.prototype,"downloadRenderData",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],BM.prototype,"modernButtons",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],BM.prototype,"isDownloads",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],BM.prototype,"useModernCollectionsV2",void 0);_.U([_.K("transferState"),_.O({reflectToAttribute:!0}),_.W("design:type",String),_.W("design:paramtypes",[])],BM.prototype,"downloadState",null);_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],BM.prototype,"menuHidden",null);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BM.prototype,"dataChanged",null);_.U([_.mr("transferState","downloadProgress","isOnline"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BM.prototype,"transferStateChanged",null);BM=_.U([_.Q({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],BM);
_.S(BM,"ytd-grid-playlist-renderer",function(){if(S2b!==void 0)return S2b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="118" data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-playlist-renderer">\n  <h3 class="style-scope ytd-grid-playlist-renderer">\n    <a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-playlist-renderer">\n  </ytd-badge-supported-renderer>\n  <div id="menu" class="style-scope ytd-grid-playlist-renderer"></div>\n  <yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-grid-playlist-renderer">\n  </yt-formatted-string>\n  <yt-interaction id="interaction" class="extended style-scope ytd-grid-playlist-renderer"></yt-interaction>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return S2b=a},{mode:1});var T2b;var U2b=function(){var a=_.P.apply(this,arguments)||this;a.collections=_.w("web_modern_collections_v2");return a};
_.z(U2b,_.P);U2b.prototype.configureRendererStamper=function(){return{"data.menu":CK,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Um.Object.defineProperties(U2b.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d,e,g;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(a=this.data)==null?void 0:(b=a.thumbnail)==null?void 0:b.sampledThumbnailColor,vibrantColorPalette:(c=this.data)==null?void 0:(d=c.thumbnail)==null?void 0:d.vibrantColorPalette,darkColorPalette:(e=this.data)==null?void 0:(g=e.thumbnail)==null?void 0:g.darkColorPalette,experimentEnabled:this.collections}}}});
var CM=U2b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],CM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],CM.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.$I),_.W("design:type",Object)],CM.prototype,"ytdLockupBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],CM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],CM.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],CM.prototype,"collections",void 0);_.U([_.K("data","collections"),_.W("design:type",Object),_.W("design:paramtypes",[])],CM.prototype,"collectionStack",null);CM=_.U([_.Q({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],CM);
_.S(CM,"ytd-grid-radio-renderer",function(){if(T2b!==void 0)return T2b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-grid-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-grid-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div id="details" class="style-scope ytd-grid-radio-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-grid-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-grid-radio-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-radio-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-radio-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <ytd-video-meta-block class="grid style-scope ytd-grid-radio-renderer" data="[[data]]" radio-meta=""></ytd-video-meta-block>\n    </a>\n    <div id="menu" class="style-scope ytd-grid-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-grid-radio-renderer">\n  <div id="dismissed-content" class="style-scope ytd-grid-radio-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-radio-renderer"></yt-interaction>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return T2b=a},{mode:1});var V2b;var W2b=function(){var a=_.P.apply(this,arguments)||this;a.useModernCollectionsV2=_.w("web_modern_collections_v2");return a};
_.z(W2b,_.P);W2b.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
W2b.prototype.computeNavigationEndpoint=function(a){return CDa(a==null?void 0:a.navigationEndpoint)};
var DM=W2b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],DM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],DM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.$I),_.W("design:type",Object)],DM.prototype,"ytdLockupBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],DM.prototype,"data",void 0);
_.U([_.O({computed:"computeNavigationEndpoint(data)"}),_.W("design:type",Object)],DM.prototype,"computedNavigationEndpoint",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],DM.prototype,"useModernCollectionsV2",void 0);DM=_.U([_.Q({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],DM);
_.S(DM,"ytd-grid-show-renderer",function(){if(V2b!==void 0)return V2b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="210" class="style-scope ytd-grid-show-renderer"></ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-show-renderer">\n  <a id="title" class="yt-simple-endpoint style-scope ytd-grid-show-renderer" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]">\n    <h3 class="style-scope ytd-grid-show-renderer">\n      <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="grid style-scope ytd-grid-show-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n  </ytd-badge-supported-renderer>\n  <div id="offer-button" class="style-scope ytd-grid-show-renderer"></div>\n  <div id="menu" class="style-scope ytd-grid-show-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-show-renderer"></yt-interaction>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return V2b=a},{mode:1});var X2b;_.EM=function(a){this.playerClient=a};
_.Y2b=function(a,b,c){c=c===void 0?{}:c;return a.playerClient.setOption("ad",b,c)};
_.EM.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.EM.prototype.executeCommand=function(a,b){this.getOptions().includes("executeCommand")?_.Y2b(this,"executeCommand",{command:a,layoutId:b}):_.rv("Calling executeCommand when adModule is not loaded")};var Z2b=function(){return _.P.apply(this,arguments)||this};
_.z(Z2b,_.P);Z2b.prototype.getLayoutId=function(){var a=_.Ji("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.layoutId:null};
Z2b.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var a=_.au(),b=this.getLayoutId(),c=this.data.clickthroughEndpoint;a&&b&&_.w("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?a.getPlayerPromise().then(function(d){(new _.EM(d)).executeCommand(c,b)}):_.io(this.hostElement,"yt-navigate",{endpoint:c})}};
var FM=Z2b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],FM.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],FM.prototype,"data",void 0);FM=_.U([_.Q({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],FM);
_.S(FM,"ytd-shopping-companion-item-renderer",function(){if(X2b!==void 0)return X2b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shopping-companion-item-container" on-tap="onTap" class="style-scope ytd-shopping-companion-item-renderer">\n  <div id="card" class="style-scope ytd-shopping-companion-item-renderer">\n    <yt-img-shadow id="image" thumbnail="[[data.image]]" class="style-scope ytd-shopping-companion-item-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-shopping-companion-item-renderer">\n      <span id="headline" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.headline)]]</span>\n      <span id="price" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.priceText)]]</span>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return X2b=a},{mode:1});var $2b;var a3b=function(){var a=_.P.apply(this,arguments)||this;a.isExpandableContent=!1;return a};
_.z(a3b,_.P);_.Um.Object.defineProperties(a3b.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.data)==null?void 0:a.price)||((b=this.data)==null?void 0:(c=b.dealsData)==null?void 0:c.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var a,b;if((a=this.data)!=null&&a.dealsData&&((b=this.data)==null||!b.priceReplacementText)){a=this.data.dealsData;var c,d,e;return((c=a.salesData)==null?void 0:c.originalPrice)||((d=a.priceDropData)==null?void 0:d.referencePrice)||((e=a.promotionData)==null?void 0:e.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var a,b;return(a=this.data)==null?void 0:(b=a.dealsData)==null?void 0:b.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
var GM=a3b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],GM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],GM.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],GM.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],GM.prototype,"isExpandableContent",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],GM.prototype,"showCta",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],GM.prototype,"ctaText",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],GM.prototype,"hasPriceTopPosition",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],GM.prototype,"hasPriceBottomPosition",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],GM.prototype,"useNewStyle",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],GM.prototype,"showPriceReplacementText",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],GM.prototype,"priceValue",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],GM.prototype,"showDeal",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],GM.prototype,"showAffiliateDisclaimer",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],GM.prototype,"useSaleStyle",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],GM.prototype,"useFromBrandCtaStyle",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],GM.prototype,"useFromVendorCtaStyle",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],GM.prototype,"useShoppingCollectionCtaStyle",null);GM=_.U([_.Q({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],GM);
_.S(GM,"ytd-vertical-product-card-renderer",function(){if($2b!==void 0)return $2b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-product-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a id="product-card-renderer-container" class="yt-simple-endpoint style-scope ytd-vertical-product-card-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]" aria-label="[[data.accessibilityTitle]]">\n  <div id="card-with-protection" data-offer-version-id$="[[data.debugOfferVersionId]]" class="style-scope ytd-vertical-product-card-renderer">\n    <div id="product-image" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n      <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-vertical-product-card-renderer"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-vertical-product-card-renderer">\n      <div id="product-name" class="product-info-row style-scope ytd-vertical-product-card-renderer">[[data.title]]</div>\n\n      <template is="dom-if" restamp="" if="[[hasPriceTopPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <div id="variants-description" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n        [[data.variantsDescription]]\n      </div>\n\n      <template is="dom-if" restamp="" if="[[showCta]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <yt-formatted-string class="cta-row style-scope ytd-vertical-product-card-renderer" text="[[ctaText]]">\n          </yt-formatted-string>\n          <template is="dom-if" restamp="" if="[[data.showOpenInNewIcon]]" class="style-scope ytd-vertical-product-card-renderer">\n            <yt-icon class="cta-row hover-icon style-scope ytd-vertical-product-card-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[hasPriceBottomPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[showAffiliateDisclaimer]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <div id="affiliate-disclaimer" class="style-scope ytd-vertical-product-card-renderer">[[data.affiliateDisclaimer]]</div>\n        </div>\n      </template>\n    </div>\n  </div>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return $2b=a},{mode:1});var b3b;var c3b=function(){return _.P.apply(this,arguments)||this};
_.z(c3b,_.P);c3b.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
var HM=c3b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],HM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],HM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.$I),_.W("design:type",Object)],HM.prototype,"ytdLockupBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],HM.prototype,"data",void 0);HM=_.U([_.Q({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],HM);
_.S(HM,"ytd-grid-movie-renderer",function(){if(b3b!==void 0)return b3b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-movie-renderer">\n</ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <span class="grid-movie-renderer-metadata style-scope ytd-grid-movie-renderer" hidden="[[!data.metadata]]">\n    [[getSimpleString(data.metadata)]]\n  </span>\n  \n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer class="badges style-scope ytd-grid-movie-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n</ytd-badge-supported-renderer>\n<div id="offer-button" class="style-scope ytd-grid-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-movie-renderer"></yt-interaction>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return b3b=a},{mode:1});var d3b;var e3b=function(){var a=_.P.apply(this,arguments)||this;a.rounded=!0;a.itemStyle="small-item";return a};
_.z(e3b,_.P);e3b.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var a,b,c,d,e=(b=_.y((a=this.data)==null?void 0:a.buttonCommand,_.Vyb))==null?void 0:(c=b.item)==null?void 0:(d=c.notificationTextRenderer)==null?void 0:d.successResponseText;e&&_.i0a(this.hostElement,e)}};
_.Um.Object.defineProperties(e3b.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:a.isProductPlaceholder)!==void 0&&((b=this.data)==null?void 0:b.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
var IM=e3b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],IM.prototype,"rounded",void 0);_.U([_.O(),_.W("design:type",Object)],IM.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],IM.prototype,"itemStyle",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],IM.prototype,"hasPrice",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],IM.prototype,"hasPriceReplacementText",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],IM.prototype,"hasAdditionalFeesText",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],IM.prototype,"hasAffiliateDisclaimer",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],IM.prototype,"isProductPlaceholder",null);
_.U([_.O(),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],IM.prototype,"hideOpenInNewIcon",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],IM.prototype,"ariaLabel",null);IM=_.U([_.Q({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],IM);
_.S(IM,"ytd-merch-shelf-item-renderer",function(){if(d3b!==void 0)return d3b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a class="yt-simple-endpoint style-scope ytd-merch-shelf-item-renderer" href$="[[computeHref_(data.buttonCommand)]]" data="[[data.buttonCommand]]" aria-label$="[[ariaLabel]]" data-offer-version-id$="[[data.debugOfferVersionId]]" on-click="showSnackbarIfPlaceholder">\n  <div class="product-item style-scope ytd-merch-shelf-item-renderer">\n    <yt-img-shadow class="product-item-image style-scope ytd-merch-shelf-item-renderer" height="90" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="90"></yt-img-shadow>\n    <template is="dom-if" restamp="" if="[[isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper product-placeholder-item-info-center style-scope ytd-merch-shelf-item-renderer">\n          <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[!isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-info-wrapper-row-1 style-scope ytd-merch-shelf-item-renderer">\n            <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n            <template is="dom-if" restamp="" if="[[hasPrice]]" class="style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-price-wrapper style-scope ytd-merch-shelf-item-renderer">\n                <template is="dom-if" restamp="" if="[[hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.priceReplacementText]]</div>\n                </template>\n                <template is="dom-if" restamp="" if="[[!hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.price]]</div>\n                  <div class="product-item-additional-fees-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAdditionalFeesText]]">\n                    [[data.additionalFeesText]]\n                  </div>\n                </template>\n              </div>\n            </template>\n            <div no-price$="[[!hasPrice]]" class="cta-item-hide link-item-hide product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">\n                [[data.vendorName]]\n                <yt-icon class="product-item-merchant-icon product-item-merchant-icon--inline style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n              </div>\n              \n              <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n            </div>\n          </div>\n          <div class="small-item-hide large-item-hide product-item-info-wrapper-row-2 style-scope ytd-merch-shelf-item-renderer">\n            <div class="affiliate-disclaimer-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAffiliateDisclaimer]]">\n              [[data.affiliateDisclaimer]]\n            </div>\n            <div class="product-item-description style-scope ytd-merch-shelf-item-renderer">[[data.description]]</div>\n          </div>\n        </div>\n      </div>\n      <div class="small-item-hide large-item-hide link-item-hide product-item-button-wrapper style-scope ytd-merch-shelf-item-renderer" hidden="[[isProductPlaceholder]]">\n        <div class="product-item-button style-scope ytd-merch-shelf-item-renderer">[[data.buttonText]]</div>\n        <div class="product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">[[data.vendorName]]</div>\n          <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n        </div>\n      </div>\n    </template>\n  </div>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return d3b=a},{mode:1});var f3b=_.Rr(function(a){var b=_.Pl();_.Zu(b,function(){return a.data().rendererContext});
return _.q("button-card-view-model",{el:b,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return a.data().title},
role:"button"},_.q(_.ut,{model:{}}),_.q("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.q("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.q(_.qi,{cond:function(){return a.data().image},
then:function(c){return _.q(_.Ps,{data:c,alt:function(){var d;return(d=a.data().title)!=null?d:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.q("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return a.data().title})))},"Ra");_.w("web_button_view_model_wcw_registration_killswitch")||_.Ts(f3b,"button-card-view-model",{props:{data:_.VG}});_.Ts(_.Rr(function(a){a=_.Or(a,{className:void 0});var b=a.data;a=a.className;var c=_.ph(function(){return b().onTapCommand},void 0,"NprDr");
return _.q("ytd-shopping-item-card",{class:_.et("ytdShoppingItemCardHost",a)},_.q(_.rt,{command:c,className:"ytdShoppingItemCardHostLink"},_.q("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.q(_.Hu,{data:function(){return b().thumbnailViewModel}},{thumbnailViewModel:function(d){return _.q(rL,{data:d.data,
aspectRatio:3})}})),_.q("div",null,_.q("p",{class:"ytdShoppingItemCardHostItemTitle"},_.q(_.tt,{text:function(){return b().itemTitle}})),_.q("p",{class:"ytdShoppingItemCardHostPrice"},_.q(_.tt,{text:function(){return b().priceOrStatus}})))))},"Sa"),"ytd-shopping-item-card",{props:{data:_.VG,
className:_.VG}});var sv=null,j0a={};var m0a="WEB_PAGE_TYPE_ACCOUNTS WEB_PAGE_TYPE_WELCOME WEB_PAGE_TYPE_ACCOUNT_SELECTOR WEB_PAGE_TYPE_SIGN_IN_IDENTIFIER_ENTRY WEB_PAGE_TYPE_SIGN_IN_PASSWORD_ENTRY WEB_PAGE_TYPE_SIGN_IN_DEVICE_PROMPT_CHALLENGE WEB_PAGE_TYPE_UNKNOWN".split(" "),JM={},n0a=(JM.FEwhat_to_watch="home",JM.FEhashtag="hashtag",JM.FEtrending="trending",JM.FEhistory="history",JM.SPunlimited="premium",JM.FEmemberships_and_purchases="paid_memberships",JM.SPredeem_code="redeem",JM.SPverify_location="locate",JM.SPminor_moment="minor_moment",
JM.FEmini_app_container="mini_app",JM.FEnews_destination="news",JM.SPopen_in_app="open_in_app",JM.FEexplore="explore",JM.FEsubscriptions="subscriptions",JM.FEsfv_audio_pivot="sfv_audio_pivot",JM.FEplaylist_aggregation="playlist_aggregation",JM);document.getElementById("theme-meta");document.getElementById("app");document.getElementById("player");document.getElementById("player-container-id");document.getElementById("player-control-container");document.getElementById("player-endscreen-container");document.getElementById("player-shorts-container");document.getElementById("player-cinematics-container");document.getElementById("full-screen-content-id");_.qo("init");var t0a=_.Du({badgeViewModel:u1a}),q0a=function(){},g3b=_.jt(w0a),h3b=_.Rr(function(a){var b=_.ph(function(){var c=a.data().entityId;
return c?c.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"tvSCZd");
return _.q("ytm-shorts-lockup-view-model-v2",{class:_.et("shortsLockupViewModelHost",a.className)},_.q(_.E0b,{contentId:b,aspectRatio:function(){var c;if(((c=a.aspectRatio)==null?void 0:c.call(a))===1)return 1;var d;return((d=a.aspectRatio)==null?void 0:d.call(a))===2?2:4}},function(){return _.q(g3b,Object.assign({},a))}))},"Ta"),i3b=_.w("enable_shorts_lockup_view_model_with_dismissible")?h3b:g3b;
_.Zl(w0a);_.Zl(s0a);_.Zl(v0a);_.Zl(x0a);_.Zl(u0a);_.w("enable_shorts_lockup_view_model_with_dismissible")?_.Ts(h3b,"ytm-shorts-lockup-view-model-v2",{props:{data:_.Ss,inlineMetadata:_.Ss,aspectRatio:_.Ss,scrimStyle:_.Ss,className:_.Ss,useDefaultStyle:_.Ss}}):_.Ts(i3b,"ytm-shorts-lockup-view-model",{props:{data:_.Ss,inlineMetadata:_.Ss,aspectRatio:_.Ss,scrimStyle:_.Ss,className:_.Ss,useDefaultStyle:_.Ss}});var j3b=16/9*210,KM=function(){var a=_.P.apply(this,arguments)||this;a.isExpandableContent=!1;a.hideShelfHeader=!1;a.engagementPanel=!1;a.buttonClasses=["arrow"];a.isSearch=!1;a.disableScrollEventListener=!1;a.containsLockup=!1;a.overrideArrowPositionForProductCard=!1;a.overrideArrowPositionForShoppingItemCard=!1;a.overrideArrowPositionForReelItems=!1;a.overrideArrowPositionForGridMovie=!1;a.overrideArrowPositionToCenter=!1;a.isSearchPostShelf=!1;a.overrideArrowPositionForMixedShelf=!1;a.overrideArrowPositionForMixedShelfShortsOnly=
!1;a.hasBigThumbsReelItems=!1;a.shouldUseMixedListHeight=!1;a.shouldUseShortsListHeight=!1;a.gridVideoWidth=0;a.isSearchVodShelf=!1;a.disableWheelScroll=!1;a.sizing="COMPACT";a.shortsLockupAspectRatio=0;return a};
_.z(KM,_.P);_.f=KM.prototype;
_.f.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"yt-horizontal-list-renderer lockup",containerType:4},properties:{force16By9ThumbnailAspectRatio:"[[data.force16By9ThumbnailAspectRatio]]",sizing:"[[sizing]]"}},backgroundPromoRenderer:"ytd-background-promo-renderer",compactStationRenderer:"ytd-compact-station-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",shoppingItemCardViewModel:{component:"ytd-shopping-item-card",
params:{className:"yt-horizontal-list-renderer"}},gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]",width:"[[gridVideoWidth]]"}},merchShelfItemRenderer:"ytd-merch-shelf-item-renderer",shoppingCompanionCarouselItemRenderer:"ytd-shopping-companion-item-renderer",displayAdRenderer:"ytd-display-ad-renderer",
commentRenderer:"ytd-comment-renderer",compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",postRenderer:"ytd-post-renderer",reelItemRenderer:{component:"ytd-reel-item-renderer",properties:{isSearch:"[[isSearch]]"}},shortsLockupViewModel:{component:_.w("enable_shorts_lockup_view_model_with_dismissible")?"ytm-shorts-lockup-view-model-v2":"ytm-shorts-lockup-view-model",params:{className:"yt-horizontal-list-renderer"},properties:{aspectRatio:"[[shortsLockupAspectRatio]]"}},
sharedPostRenderer:"ytd-shared-post-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",properties:{isExpandableContent:"[[isExpandableContent]]"}},buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonCardViewModel:{component:"button-card-view-model"}}},"data.previousButton":{id:"left-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},classListBinding:"[[buttonClasses]]"}},
initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},classListBinding:"[[buttonClasses]]"}}}}};
_.f.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.w("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.f.computeInitialCountNumber=function(a){if(!a)return 6;var b=a.items.some(function(g){return!!g.topicRecommendationsChipRenderer}),c=a.items.some(function(g){return!!g.displayAdRenderer}),d=this.computeShouldListItemsHaveEqualHeight(a),e=a.items.some(function(g){return!!g.gridPlaylistRenderer});
a=a.items.some(function(g){return!!g.shoppingItemCardViewModel});
return b?9:c?8:e||d?10:a?7:6};
_.f.computeContainsPost=function(a){return!!a&&!!a.items&&a.items.some(function(b){return!!b.postRenderer})};
_.f.computeContainsLockup=function(){if(_.w("web_horizontal_list_lockup_arrow_killswitch"))return!1;var a,b;return(a=this.data)==null?void 0:(b=a.items)==null?void 0:b.some(function(c){return!!c.lockupViewModel})};
_.f.maybeUpdateLockupAspectRatio=function(){var a,b;if(this.computeContainsLockup()&&((a=this.data)==null?0:(b=a.items)==null?0:b.length)){var c;a=SZa((c=this.data.items[0].lockupViewModel)==null?void 0:c.contentType,this.data.force16By9ThumbnailAspectRatio);c=xUa(a);c=this.computeLockupWidth()/c;_.fr(this.hostElement,{"--yt-horizontal-list-content-height":c+"px"})}};
_.f.computeOverrideArrowPositionForProductCard=function(a){if(this.isExpandableContent)return!1;var b;return!!(a==null?0:(b=a.items)==null?0:b.some(function(c){return!!c.verticalProductCardRenderer}))};
_.f.computeOverrideArrowPositionForShoppingItemCard=function(a){var b;return!!(a==null?0:(b=a.items)==null?0:b.some(function(c){return!!c.shoppingItemCardViewModel}))};
_.f.computeOverrideArrowPositionForReelItemRenderer=function(a){return this.containsReelItemRenderer(a)};
_.f.computeHasBigThumbsReelItems=function(a,b){return a&&this.containsReelItemRenderer(b)};
_.f.computeShouldListItemsHaveEqualHeight=function(a){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(a==null?void 0:a.itemSizeConstraint)};
_.f.computeShouldListItemsHaveShortsHeight=function(a){return this.computeShouldListItemsHaveEqualHeight(a)&&!this.containsGridVideoRenderer(a)};
_.f.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.f.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.f.containsReelItemRenderer=function(a){var b;return!!(a==null?0:(b=a.items)==null?0:b.some(function(c){return!(!c.reelItemRenderer&&!c.shortsLockupViewModel)}))};
_.f.containsGridVideoRenderer=function(a){var b;return!!(a==null?0:(b=a.items)==null?0:b.some(function(c){return!!c.gridVideoRenderer||!!c.lockupViewModel}))};
_.f.computeContainsGridMovieRenderer=function(a){var b;return!!(a==null?0:(b=a.items)==null?0:b.some(function(c){return!!c.gridMovieRenderer}))};
_.f.computeOverrideArrowPositionToCenter=function(a){return this.computeIsSearchPostShelf(a)};
_.f.computeIsSearchPostShelf=function(a){var b;return!!(a==null?0:(b=a.items)==null?0:b.some(function(c){var d,e;return((e=(d=c.postRenderer)==null?void 0:d.surface)!=null?e:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.f.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(a){var b;return!!(a==null?0:(b=a.items)==null?0:b.some(function(c){var d,e,g;return((g=(d=c.backgroundPromoRenderer)==null?void 0:(e=d.style)==null?void 0:e.value)!=null?g:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.f.computeIsSearchVodShelf=function(a,b){return a&&this.containsGridVideoRenderer(b)};
_.f.computeDisableWheelScroll=function(a,b){return this.computeIsSearchVodShelf(a,b)};
_.f.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.f.computeShortsLockupAspectRatio=function(a){return a&&_.w("web_shorts_2_by_3_lockups_no_search")&&!_.w("desktop_search_enable_two_by_three_shorts_aspect_ratio")?0:1};
_.f.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.fr(this.hostElement,{"--ytd-reel-item-thumbnail-height":j3b+"px"})};
KM.prototype.dataChanged=KM.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],KM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],KM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.lJ.YtdHorizontalListBehavior),_.W("design:type",Object)],KM.prototype,"ytdHorizontalListBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],KM.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],KM.prototype,"isExpandableContent",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],KM.prototype,"hideShelfHeader",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],KM.prototype,"engagementPanel",void 0);_.U([_.O(),_.W("design:type",Array)],KM.prototype,"buttonClasses",void 0);_.U([_.O(),_.W("design:type",Object)],KM.prototype,"isSearch",void 0);
_.U([_.O(),_.W("design:type",Object)],KM.prototype,"disableScrollEventListener",void 0);_.U([_.O({computed:"computeInitialCountNumber(data)"}),_.W("design:type",Number)],KM.prototype,"initialCount",void 0);_.U([_.O({computed:"computeContainsPost(data)"}),_.W("design:type",Boolean)],KM.prototype,"supportComponentResize",void 0);_.U([_.O({computed:"computeContainsPost(data)"}),_.W("design:type",Boolean)],KM.prototype,"containsPost",void 0);
_.U([_.O({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.W("design:type",Object)],KM.prototype,"containsLockup",void 0);_.U([_.O({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],KM.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.U([_.O({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.W("design:type",Object)],KM.prototype,"overrideArrowPositionForProductCard",void 0);_.U([_.O({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.W("design:type",Object)],KM.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.U([_.O({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.W("design:type",Object)],KM.prototype,"overrideArrowPositionForReelItems",void 0);_.U([_.O({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.W("design:type",Object)],KM.prototype,"overrideArrowPositionForGridMovie",void 0);
_.U([_.O({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.W("design:type",Object)],KM.prototype,"overrideArrowPositionToCenter",void 0);_.U([_.O({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.W("design:type",Object)],KM.prototype,"isSearchPostShelf",void 0);_.U([_.O({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.W("design:type",Object)],KM.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.U([_.O({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.W("design:type",Object)],KM.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.U([_.O({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.W("design:type",Object)],KM.prototype,"hasBigThumbsReelItems",void 0);
_.U([_.O({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.W("design:type",Object)],KM.prototype,"shouldUseMixedListHeight",void 0);_.U([_.O({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.W("design:type",Object)],KM.prototype,"shouldUseShortsListHeight",void 0);_.U([_.O({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.W("design:type",Object)],KM.prototype,"gridVideoWidth",void 0);
_.U([_.O({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.W("design:type",Object)],KM.prototype,"isSearchVodShelf",void 0);_.U([_.O({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.W("design:type",Object)],KM.prototype,"disableWheelScroll",void 0);_.U([_.O({computed:"computeSizing(isSearch)"}),_.W("design:type",Object)],KM.prototype,"sizing",void 0);
_.U([_.O({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.W("design:type",Object)],KM.prototype,"shortsLockupAspectRatio",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],KM.prototype,"dataChanged",null);
_.S(KM,"yt-horizontal-list-renderer",function(){if(gXb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-horizontal-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n<div id="scroll-outer-container" class="style-scope yt-horizontal-list-renderer">\n  <div id="scroll-container" class="style-scope yt-horizontal-list-renderer">\n    <div id="items" class="style-scope yt-horizontal-list-renderer"></div>\n  </div>\n</div>\n<div id="right-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);gXb=a}a=gXb;return a},{mode:1});var k3b;var l3b=[10,12,14,16,18,20,24,28,32,36],m3b=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],n3b=function(){var a=_.P.apply(this,arguments)||this;a.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";a.hideOverflow=!1;a.useRoboto=!1;a.fontClass="";a.overflown=!1;a.actionMap={"yt-window-resized":"resize"};return a};
_.z(n3b,_.P);_.f=n3b.prototype;
_.f.attached=function(){var a=this;switch(this.fontFamily){case "PROMO_FONT_FAMILY_ROBOTO_BOLD":this.useRoboto=!0;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD":this.useRoboto=!1;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_MEDIUM":this.useRoboto=!1;this.fontWeight=500;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_SEMIBOLD":this.useRoboto=!1;this.fontWeight=600;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_LIGHT":this.useRoboto=!1;this.fontWeight=400;break;default:this.useRoboto=
!1,this.fontWeight=700}this.setParentConstraints();_.Qm(this,function(){a.resize()});
if(!_.xx){var b,c,d;(b=document)==null||(c=b.fonts)==null||(d=c.ready)==null||d.then(function(){a.resize()})}};
_.f.dataChanged=function(){this.resize()};
_.f.guideIsExpandedChanged=function(){this.resize()};
_.f.resize=function(){if(this.textNode.offsetWidth||this.textNode.offsetWidth){this.overflown&&(this.overflown=!1,this.textNode.classList.remove("overflown"));this.textNode.style.visibility="hidden";var a=this.getMaxNumLines(),b=this.getMinFont(),c=this.getMaxFont(),d=this.useRoboto?l3b:m3b;for(d=d.filter(function(g){return g<=c&&g>=b});d.length>1;){var e=Math.floor(d.length/2);
this.updateFontSize(d[e]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=a)d=d.slice(e,d.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>a)d=d.slice(0,e);else break}this.updateFontSize(d[d.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(a)}};
_.f.handleOverflow=function(a){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>a&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",a.toString()))};
_.f.updateFontSize=function(a){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+a;this.textNode.classList.add(this.fontClass)};
_.f.getMaxFont=function(){var a=this.useRoboto?l3b:m3b;a=a[a.length-1];return this.maxFontSize&&this.maxFontSize<=a?this.maxFontSize:a};
_.f.getMinFont=function(){var a=(this.useRoboto?l3b:m3b)[0];return this.minFontSize&&this.minFontSize>=a?this.minFontSize:a};
_.f.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.f.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.f.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.Wp(this.text).split("\n").length-1:Infinity};
_.f.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Jh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
var LM=n3b;LM.prototype.guideIsExpandedChanged=LM.prototype.guideIsExpandedChanged;LM.prototype.dataChanged=LM.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],LM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],LM.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],LM.prototype,"actionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],LM.prototype,"text",void 0);
_.U([_.O(),_.W("design:type",String)],LM.prototype,"fontFamily",void 0);_.U([_.O(),_.W("design:type",Number)],LM.prototype,"maxWidth",void 0);_.U([_.O(),_.W("design:type",Number)],LM.prototype,"maxHeight",void 0);_.U([_.O(),_.W("design:type",Number)],LM.prototype,"maxFontSize",void 0);_.U([_.O(),_.W("design:type",Number)],LM.prototype,"minFontSize",void 0);_.U([_.O(),_.W("design:type",Number)],LM.prototype,"maxLines",void 0);_.U([_.O(),_.W("design:type",Object)],LM.prototype,"hideOverflow",void 0);
_.U([_.O({selector:_.wFa}),_.W("design:type",Boolean)],LM.prototype,"guideIsExpanded",void 0);_.U([_.ir("#container"),_.W("design:type",HTMLElement)],LM.prototype,"containerNode",void 0);_.U([_.ir("#text"),_.W("design:type",HTMLElement)],LM.prototype,"textNode",void 0);_.U([_.mr("text"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LM.prototype,"dataChanged",null);
_.U([_.mr("guideIsExpanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LM.prototype,"guideIsExpandedChanged",null);LM=_.U([_.Q({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],LM);
_.S(LM,"yt-dynamic-sizing-formatted-string",function(){if(k3b!==void 0)return k3b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dynamic-sizing-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="dynamic-text-container style-scope yt-dynamic-sizing-formatted-string">\n  <yt-formatted-string id="text" disable-attributed-string="" text="[[text]]" class="style-scope yt-dynamic-sizing-formatted-string"></yt-formatted-string>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return k3b=a},{mode:1});var o3b;_.p3b=function(a){_.ca.call(this,a)};
_.z(_.p3b,_.ca);var q3b=function(a){_.ca.call(this,a)};
_.z(q3b,_.p3b);var MM=function(){return _.P.apply(this,arguments)||this};
_.z(MM,_.P);MM.prototype.onTapSuspendedChannel=function(){var a;if((a=this.data)!=null&&a.serviceEndpoint){var b,c;(a=(c=_.y((b=this.data)==null?void 0:b.serviceEndpoint,_.Kl))==null?void 0:c.url)?_.Hq(a,void 0,void 0,window.top):(b=new q3b("Did not handle suspended account tap. No appealUrl."),_.Bl(b))}else b=new q3b("Did not handle suspended account tap. No serviceEndpoint."),_.Bl(b)};
MM.prototype.onTap=function(){var a=this,b=_.ls(),c,d=(c=_.ks(b,{veType:7116}))!=null?c:void 0;_.Ot(b,{visualElement:d});_.Fq();this.saveRoleText();var e;if((e=this.data)==null?0:e.youtubeSuspended)this.onTapSuspendedChannel();else{var g=!1,k,m;(b=(m=_.y((k=this.data)==null?void 0:k.serviceEndpoint,_.aFb))==null?void 0:m.supportedTokens)&&b.forEach(function(n){if(n.accountSigninToken)if(g=!0,a.onAccountItemTap)a.onAccountItemTap(n.accountSigninToken.signinUrl);else _.Hq(n.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!g){if(k=this.get("serviceEndpoint",this.data))g=!0,this.ytComponentBehavior.resolveCommand(k);g||_.Cl(new q3b("Did not handle account switch tap. No token."))}}};
MM.prototype.saveRoleText=function(){if(this.data){var a=this.data,b=a.channelDelegationRole;if(b){var c,d=(c=_.y(a==null?void 0:a.serviceEndpoint,_.aFb))==null?void 0:c.supportedTokens;if(!d){var e,g,k,m;d=(e=_.y(a==null?void 0:a.serviceEndpoint,_.JE))==null?void 0:(g=e.popup)==null?void 0:(k=g.confirmDialogRenderer)==null?void 0:(m=k.confirmButton)==null?void 0:m.buttonRenderer;var n;d=(n=_.y(d==null?void 0:d.command,_.ro))==null?void 0:n.commands;if(!d)return;var r;d=(r=_.y(d[1],_.aFb))==null?
void 0:r.supportedTokens}if(d){n=void 0;r=_.h(d);for(d=r.next();!d.done;d=r.next())if(d=d.value,d.datasyncIdToken){n=d.datasyncIdToken.datasyncIdToken;break}if(n){var t;a:{if(_.aJa()&&(r=_.fpa(n+"::pom"))){r=new xG(r);break a}r=void 0}(t=r)==null||t.set("role_text",b);if((nJa?nJa:window.location).href.indexOf("studio")!==-1&&(t=bJa())){r=t.src?(new URL(t.src)).origin:"*";var u;(u=t.contentWindow)==null||u.postMessage({action:"save_pom_role",datasyncId:n,roleText:b},r)}}}}}};
_.Um.Object.defineProperties(MM.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.data)==null?void 0:(b=a.accountPhoto)==null?void 0:b.thumbnails;return c&&c.length>0&&(c[0].height===36||c[0].height===48)?c[0].height:40}}});
var NM=MM;NM.prototype.onTap=NM.prototype.onTap;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],NM.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],NM.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],NM.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!1}),_.W("design:type",Function)],NM.prototype,"onAccountItemTap",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],NM.prototype,"enableRingForActiveAccount",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],NM.prototype,"thumbnailSize",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NM.prototype,"onTap",null);NM=_.U([_.Q({is:"ytd-account-item-renderer",disableElementRegistration:!0})],NM);
_.S(NM,"ytd-account-item-renderer",function(){if(o3b!==void 0)return o3b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-icon-item class="style-scope ytd-account-item-renderer">\n  <yt-img-shadow slot="item-icon" height="[[thumbnailSize]]" item-icon="" thumbnail="[[data.accountPhoto]]" width="[[thumbnailSize]]" class="style-scope ytd-account-item-renderer">\n  </yt-img-shadow>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-account-item-renderer">\n    <yt-formatted-string id="channel-title" text="[[data.accountName]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string respect-lang-dir="" secondary="" text="[[data.channelHandle]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string secondary="" text="[[data.accountByline]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item-body>\n  <yt-icon id="selected" hidden="[[!data.isSelected]]" icon="yt-icons:check" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <yt-icon id="studio-redirect" aria-label$="[[getSimpleString(data.studioRedirectVisualHint)]]" hidden="[[!data.isRedirectToStudio]]" icon="yt-icons:open_in_new" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-tooltip for="studio-redirect" hidden="[[!data.isRedirectToStudio]]" position="left" class="style-scope ytd-account-item-renderer">\n    [[getSimpleString(data.studioRedirectVisualHint)]]\n  </tp-yt-paper-tooltip>\n</tp-yt-paper-icon-item>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return o3b=a},{mode:1});var r3b;var s3b;var t3b;var u3b;var v3b=function(){var a=_.P.apply(this,arguments)||this;a.richItemMinWidth=_.$i("wn_grid_min_item_width",310);a.isShorts=!1;a.isWatchNext=!1;a.isExploreHub=!1;return a};
_.z(v3b,_.P);_.Um.Object.defineProperties(v3b.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var a=[],b=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.fr(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var c;if(((c=this.data)==null?0:c.rows)&&b)for(b*=this.data.rows,c=0;c<b;c++)a.push({});return a}}});
var OM=v3b;_.U([_.H(_.OI),_.W("design:type",Object)],OM.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],OM.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],OM.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Gp,value:3}),_.W("design:type",Number)],OM.prototype,"itemsPerRow",void 0);_.U([_.O({selector:_.vFa,value:6}),_.W("design:type",Number)],OM.prototype,"slimItemsPerRow",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Number)],OM.prototype,"richItemMinWidth",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Fp}),_.W("design:type",Boolean)],OM.prototype,"miniMode",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],OM.prototype,"isShorts",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],OM.prototype,"isWatchNext",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],OM.prototype,"isExploreHub",void 0);
_.U([_.K("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.W("design:type",Array),_.W("design:paramtypes",[])],OM.prototype,"cardItems",null);OM=_.U([_.Q({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],OM);
_.w3b=_.$r()(OM,"ytd-ghost-grid-renderer",function(){if(u3b===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-grid style-scope ytd-ghost-grid-renderer">\n  <template is="dom-repeat" items="[[cardItems]]" class="style-scope ytd-ghost-grid-renderer">\n    <div class="ghost-card style-scope ytd-ghost-grid-renderer">\n      <div class="rich-thumbnail skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n      <div class="details style-scope ytd-ghost-grid-renderer">\n        <div class="channel-avatar skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        <div class="details-text-shell style-scope ytd-ghost-grid-renderer">\n          <div class="rich-video-title text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n          <div class="video-meta rich-video-meta text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </template>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);u3b=a}a=u3b;return a},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.Ts(_.Rr(function(a){var b=_.Or(a,{numberOfComments:3}).numberOfComments,c=_.Or(a,{isInitialLoad:!1}).isInitialLoad,d=_.Ht(_.Ip),e=function(){return Math.min(Number(b==null?void 0:b())||20,20)};
return _.q("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.q(_.qi,{cond:function(){return(d==null?void 0:d())&&(c==null?void 0:c())},
then:function(){return _.q("div",{class:"ytGhostCommentsComments"},_.q("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.q("div",{class:_.et("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.q("div",{class:_.et("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.q("div",{class:"ytGhostCommentsGhostCard"},_.q("div",{class:"ytGhostCommentsAvatar"},_.q("div",{class:"ytGhostCommentsCircle"})),_.q("div",{class:"ytGhostCommentsComments"},_.q("div",{class:"ytGhostCommentsMeta"},
_.q("div",{class:_.et("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.q("div",{class:_.et("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.q("div",{class:"ytGhostCommentsComments"},_.q(_.ri,{each:function(){return Array((e==null?void 0:e())||3)}},function(){return _.q("div",{class:"ytGhostCommentsGhostCard"},_.q("div",{class:"ytGhostCommentsAvatar"},_.q("div",{class:"ytGhostCommentsCircle"})),_.q("div",{class:"ytGhostCommentsHost"},_.q("div",{class:"ytGhostCommentsMeta"},
_.q("div",{class:_.et("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.q("div",{class:_.et("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.q("div",{class:_.et("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.q("div",{class:"ytGhostCommentsGhostLikeDislike"},_.q("div",{class:_.et("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.q("div",{class:_.et("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"Ua"),"yt-ghost-comments",{props:{numberOfComments:_.VG,
isInitialLoad:_.VG}});_.Ft("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var x3b=function(){var a=_.P.apply(this,arguments)||this;a.isOverridable=!1;a.spinnerActive=!1;a.showButton=!1;a.isCommentsSection=!1;a.isShortsGrid=!1;a.isShortsPage=!1;a.isWatchPage=!1;a.ghostCardExperimentEnabled=_.w("show_ghost_comments_shorts_watch")||_.w("show_ghost_comments_desktop_watch");a.originalShowButton=!1;a.endOfList=!1;return a};
_.z(x3b,_.P);_.f=x3b.prototype;_.f.resetIntersectionObserver=function(){var a;(a=this.observer)==null||a.disconnect();this.observer=void 0};
_.f.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var a,b;((a=this.data)==null?void 0:a.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((b=this.data)==null?0:b.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.f.initializeIntersectionObserver=function(){var a=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(b){b=_.h(b);for(var c=b.next();!c.done;c=b.next())c.value.isIntersecting&&(a.triggerContinuation(),a.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.f.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostEngagementPanelRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.f.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var a;((a=this.data)==null?0:a.continuationEndpoint)&&(a=_.y(this.data.continuationEndpoint,_.Jt))&&this.ytdReduxBehavior.dispatch(_.hp({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:a}}))};
_.f.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.f.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.f.onServiceRequestCompleted=function(a,b){if(!_.w("kevlar_hide_spinner_on_empty_continuation_killswitch")){var c;(c=b.actions)!=null&&c.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.f.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.f.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.f.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.f.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var a=3;if(this.isShortsPage){var b,c,d;a=Math.floor(((((b=this.hostElement)==null?void 0:(c=b.parentElement)==null?void 0:(d=c.parentElement)==null?void 0:d.scrollHeight)||108)-108)/108);a=this.isInitialLoad?Math.max(a,3):3}b=[].concat(_.De(this.hostElement.querySelectorAll("yt-ghost-comments")));b=_.h(b);for(c=b.next();!c.done;c=b.next())c=c.value,c.numberOfComments=a,c.isInitialLoad=this.isInitialLoad}};
_.f.detached=function(){this.resetIntersectionObserver()};
_.Um.Object.defineProperties(x3b.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return _.w("show_ghost_comments_shorts_watch")&&this.isShortsPage&&this.isCommentsSection&&!this.showButton||_.w("show_ghost_comments_desktop_watch")&&this.isWatchPage&&this.isCommentsSection&&!this.showButton?{ghostEngagementPanelRenderer:!0}:!1}}});
var PM=x3b;PM.prototype.numberOfGhostCommentsChanged=PM.prototype.numberOfGhostCommentsChanged;PM.prototype.continuationTriggerOffsetChanged=PM.prototype.continuationTriggerOffsetChanged;PM.prototype.showButtonChanged=PM.prototype.showButtonChanged;PM.prototype.onYtServiceRequestCompletedForButtonRenderer=PM.prototype.onYtServiceRequestCompletedForButtonRenderer;PM.prototype.onServiceRequestCompleted=PM.prototype.onServiceRequestCompleted;PM.prototype.onYtServiceRequestSentForButtonRenderer=PM.prototype.onYtServiceRequestSentForButtonRenderer;
PM.prototype.observeData=PM.prototype.observeData;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],PM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],PM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.RG.YtVisibilityBehavior),_.W("design:type",Object)],PM.prototype,"ytVisibilityBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],PM.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.OI),_.W("design:type",Object)],PM.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],PM.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],PM.prototype,"isOverridable",void 0);_.U([_.O(),_.W("design:type",Object)],PM.prototype,"spinnerActive",void 0);_.U([_.O(),_.W("design:type",Object)],PM.prototype,"showButton",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],PM.prototype,"isCommentsSection",void 0);
_.U([_.O(),_.W("design:type",Object)],PM.prototype,"isShortsGrid",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.yFa}),_.W("design:type",Object)],PM.prototype,"isShortsPage",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Ip}),_.W("design:type",Object)],PM.prototype,"isWatchPage",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],PM.prototype,"ghostCardExperimentEnabled",void 0);_.U([_.O(),_.W("design:type",Number)],PM.prototype,"continuationTriggerOffset",void 0);
_.U([_.O(),_.W("design:type",Object)],PM.prototype,"endOfList",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],PM.prototype,"isInitialLoad",void 0);_.U([_.ir("ytd-button-renderer"),_.W("design:type",_.cI)],PM.prototype,"buttonRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],PM.prototype,"buttonOverrides",void 0);
_.U([_.O(),_.K("isCommentsSection","showButton","isShortsPage","isWatchPage"),_.W("design:type",Object),_.W("design:paramtypes",[])],PM.prototype,"isShortsCommentsSection",null);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],PM.prototype,"observeData",null);_.U([_.M("yt-service-request-sent-button-renderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],PM.prototype,"onYtServiceRequestSentForButtonRenderer",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Vt]),_.W("design:returntype")],PM.prototype,"onServiceRequestCompleted",null);_.U([_.M("yt-service-request-completed-button-renderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],PM.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);
_.U([_.mr("showButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],PM.prototype,"showButtonChanged",null);_.U([_.mr("continuationTriggerOffset"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],PM.prototype,"continuationTriggerOffsetChanged",null);_.U([_.N("isInitialLoad","isShortsPage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],PM.prototype,"numberOfGhostCommentsChanged",null);
PM=_.U([_.Q({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],PM);
_.S(PM,"ytd-continuation-item-renderer",function(){if(t3b!==void 0)return t3b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-continuation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ghost-cards" class="style-scope ytd-continuation-item-renderer"></div>\n<div id="ghost-comment-section" class="style-scope ytd-continuation-item-renderer"></div>\n<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" hidden="[[showButton]]" class="style-scope ytd-continuation-item-renderer">\n</tp-yt-paper-spinner>\n<div id="button" hidden="[[!showButton]]" class="style-scope ytd-continuation-item-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return t3b=a},{mode:1});var y3b;var QM=function(){var a=_.P.apply(this,arguments)||this;a.downloadProgress=0;a.transferState="TRANSFER_STATE_UNKNOWN";a.downloadState="DOWNLOAD_STATE_UNKNOWN";a.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";a.offlineVideoPolicyExpirationTimestamp=0;a.downloadedVideoPlaybackPosition=0;return a};
_.z(QM,_.P);QM.prototype.dataChanged=function(){var a;this.videoData=_.y((a=this.data)==null?void 0:a.renderer,HEb);this.transferStateChanged()};
QM.prototype.downloadProgressChanged=function(){if(this.entityInfo){var a=Object.assign({},this.videoData),b=tGa(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),c=b.publishedTimeText,d=b.badges;a.shortViewCountText=b.shortViewCountText;a.publishedTimeText=c;a.badges=d;this.set("videoData",a)}};
QM.prototype.transferStateChanged=function(){if(this.entityInfo){var a=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",b=_.xp(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!wp(this.entityInfo.policyEntity),c=Object.assign({},this.videoData),d=tGa(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),e=d.publishedTimeText,g=d.badges;c.shortViewCountText=
d.shortViewCountText;c.publishedTimeText=e;c.badges=g;c.isDisabled=b;c.isWatched=this.downloadedVideoPlaybackPosition>0;c.navigationEndpoint=b?void 0:ADa(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var k;a&&((k=this.videoData)==null?0:k.videoId)&&!_.w("dl_resume_click_killswitch")&&(c.isDisabled=!1,c.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});c.thumbnailOverlays=rGa(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",c)}};
var RM=QM;RM.prototype.transferStateChanged=RM.prototype.transferStateChanged;RM.prototype.downloadProgressChanged=RM.prototype.downloadProgressChanged;RM.prototype.dataChanged=RM.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],RM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],RM.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],RM.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],RM.prototype,"videoData",void 0);_.U([_.O({selector:Mp,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],RM.prototype,"downloadProgress",void 0);_.U([_.O(),_.W("design:type",Number)],RM.prototype,"relativeDateReference",void 0);_.U([_.O({selector:_.Kp,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],RM.prototype,"transferState",void 0);
_.U([_.O({selector:QFa,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],RM.prototype,"downloadState",void 0);_.U([_.O({selector:DFa,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],RM.prototype,"offlinePolicyAction",void 0);_.U([_.O({selector:EFa,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],RM.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.U([_.O({selector:Np,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],RM.prototype,"downloadedVideoPlaybackPosition",void 0);_.U([_.O({selector:GFa,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],RM.prototype,"entityInfo",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],RM.prototype,"isDownloading",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RM.prototype,"dataChanged",null);
_.U([_.mr("downloadProgress"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RM.prototype,"downloadProgressChanged",null);_.U([_.mr("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RM.prototype,"transferStateChanged",null);
RM=_.U([_.Q({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],RM);
_.S(RM,"ytd-downloaded-video-grid-video-renderer",function(){if(y3b!==void 0)return y3b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-downloaded-video-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-grid-video-renderer id="video" data="[[videoData]]" is-downloading="[[isDownloading]]" class="style-scope ytd-downloaded-video-grid-video-renderer"></ytd-grid-video-renderer>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return y3b=a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var z3b;var SM=function(){};
SM.prototype.resolve=function(a,b){var c=this;return _.l(function(d){return _.p(d,c.resolveCommand(a,b),0)})};var A3b,TM;A3b=UWa(function(a){return a.targetId},{shouldPersist:!1});
TM=A3b.updateData;_.B3b=A3b.useUpdatableData;var C3b,D3b;C3b=UWa(function(a){return a.targetId});
D3b=C3b.updateData;_.E3b=C3b.useUpdatableData;var F3b=y0a.bind(null,TM),G3b=y0a.bind(null,D3b);(function(a,b,c){var d=_.y(c==null?void 0:c.updatedRenderer,_.jEb);return d?a({targetId:b},function(){return d}):!1}).bind(null,TM);var UM=function(){};
_.z(UM,SM);UM.prototype.resolveCommand=function(a){var b;return _.l(function(c){b=_.y(a,_.oUa);if(!b)return c.return();F3b(b.targetId,b);_.ue(c)})};var H3b=function(){var a=_.kr.apply(this,arguments)||this;a.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return a};
_.z(H3b,_.kr);_.f=H3b.prototype;_.f.configureContinuationPathMap=function(){return{}};
_.f.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.f.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.f.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.f.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.f.handleAppendContinuationItemsAction=function(a){var b=_.y(a,_.Tzb);if(this.data&&this.data.targetId&&b&&this.continuationPathMap&&b.targetId===this.data.targetId){var c=yua(a);if((a=c&&this.continuationPathMap[c])&&c){c=this.get(a,this.data);var d;a:{for(d=0;d<c.length;d++){var e=c[d],g=void 0,k=!!_.y((g=_.y(e,AAb))==null?void 0:g.content,_.DEb);if(_.y(e,_.sw)||k)break a}d=c.length}a="data."+a;b.continuationItems?d===c.length-1?(this.pop(a),this.push.apply(this,[a].concat(_.De(b.continuationItems)))):
d===c.length?this.push.apply(this,[a].concat(_.De(b.continuationItems))):this.splice.apply(this,[a,d,1].concat(_.De(b.continuationItems))):this.splice(a,d,1);(_.w("web_enable_voting_animation")||_.w("enable_music_web_cairo_voting_animation"))&&_.io(this.hostElement,"yt-append-continuation-items-action-finished");_.io(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Dl(new _.qj("append continuation path does not exist",c))}};
_.f.handleReloadContinuationItemsCommand=function(a){var b=_.y(a,_.oUa);if(this.data&&b){if(_.w("web_explore_hub")||_.w("web_client_explore_hub"))try{_.v().resolve(UM).resolveCommand(a)}catch(g){}if(this.data.targetId&&this.continuationPathMap&&b.targetId===this.data.targetId&&(!_.w("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||b.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var c,d=(c=b.slot)==null?void 0:c.replace("RELOAD_CONTINUATION_SLOT_","");c=(a=yua(a)+
"-"+(d==null?void 0:d.toLowerCase()))&&this.continuationPathMap[a];if(!c||!a||!d)_.Dl(new _.qj("reload continuation path does not exist",a));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(b)){if(b.replaceWithFirstItem){var e;this.set("data."+c,((e=b.continuationItems)==null?0:e.length)?b.continuationItems[0]:{})}else this.set("data."+c,b.continuationItems?b.continuationItems:[]);this.continuationIsReloading=!1;_.io(this.hostElement,"yt-reload-continuation-finish",
null,{bubbles:!1})}}}};
_.f.handleShowReloadUiCommand=function(a){a=_.y(a,fAb);var b;((b=this.data)==null?0:b.targetId)&&(a==null?0:a.targetId)&&a.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
var VM=H3b;VM.prototype.observeData=VM.prototype.observeData;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],VM.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],VM.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],VM.prototype,"data",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],VM.prototype,"continuationIsReloading",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VM.prototype,"observeData",null);VM=_.U([_.lr()],VM);_.WM=[_.OG.YtComponentBehavior,_.eH.YtActionHandlerBehavior,VM.prototype];_.XM={};_.XM.YtNextContinuationBehavior=[_.$G.YtTaskEmitterBehavior,{_noAccessors:!0,listeners:{"yt-load-next-continuation":"onLoadNextContinuation_"},nextContinuation:void 0,pendingContinuationRequest_:void 0,listeningForNavigate_:!1,created:function(){},
detached:function(){this.stopListeningForNavigate_()},
canUseContextualNetworkManager_:function(){return this.shouldUseTaskManager()&&!!this.getNetworkManager()},
startListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||this.listeningForNavigate_||(document.addEventListener("yt-navigate-start",_.gr(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.gr(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(a,b){a.stopPropagation();if(this.nextContinuation.requestPath){a=this.nextContinuation.requestPath;var c={};_.w("direct_innertube_click_tracking_reporting")&&(c={context:{clickTracking:{clickTrackingParams:this.nextContinuation.clickTrackingParams}}});this.makeNextContinuationRequest_(a,b,c)}else a={locationRetrieved:function(d,e){var g={};_.w("direct_innertube_click_tracking_reporting")&&e.clickTrackingParams&&Object.assign(g,{context:{clickTracking:{clickTrackingParams:e.clickTrackingParams}}});
this.makeNextContinuationRequest_(d,b,g)}.bind(this)},_.io(this.hostElement,"yt-retrieve-location",a)},
makeNextContinuationRequest_:function(a,b,c){_.Mo("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();a=b(a);var d;this.canUseContextualNetworkManager_()&&(d=this.getNetworkManager());d||(d=_.v().resolve(_.xq));b=_.Pt.instance;if(_.Fi("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&b){d=_.Zp([a.startsWith("/")?a.substr(1):a]);var e,g;c=_.RF(b,{},d,c==null?void 0:(e=c.context)==null?void 0:(g=e.clickTracking)==null?void 0:g.clickTrackingParams).then(function(k){return{response:k}})}else c=
this.nextContinuation.usePost?d.postData(a,c):d.fetchData(a);
c.then(this.updateNextContinuationData_.bind(this,a));this.pendingContinuationRequest_=c;this.startListeningForNavigate_()},
updateNextContinuationData_:function(a,b){var c=this;_.Mo("ncl");this.pendingContinuationRequest_=void 0;if(b){var d={};this.nextContinuation&&(d=this.nextContinuation);if(b.response&&b.response.continuationContents&&b.response.continuationContents[d.continuationType]){a=b.response.continuationContents[d.continuationType];var e=d.header||"data.header",g=a[d.responseHeaderKey||"header"];g&&this.set(e,g);e=d.contentsArray||"data.contents";g=this.getContents_(a,d.responseContentsKey||"contents")||[];
this.pathExists_(e)?(g.unshift(e),this.push.apply(this,g)):this.set(e,g);g&&(z0a(_.ls(),b.response,this.hostElement,function(k){_.lo(c.hostElement,"yt-store-grafted-ve-action",[k])}),_.io(this.hostElement,"yt-next-continuation-data-updated",{continuationData:b,
page:this,contentsArray:e}));this.set(d.continuationsArray||"data.continuations",a[d.responseContinuationsKey||"continuations"]||[])}else b.reload?_.Dl(new _.qj("Reloading from continuation is unsupported")):b.responseContext&&b.responseContext.errors||(delete b.xsrf_token,delete b.timing,delete b.endpoint,delete b.csn,b.responseContext&&delete b.responseContext.serviceTrackingParams,e={request:_.Pi(a,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(b).sort()},b.response&&(e.responseContentKeys=
Object.keys(b.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(e.continuationType=this.nextContinuation.continuationType.substr(0,256)),b=new _.qj("Malformed continuation",e),a.indexOf("/comment_service_ajax")==0?_.Dl(b):_.Bl(b)),this.set(d.continuationsArray||"data.continuations",[])}else _.Cl(new _.qj("Missing continuation response",a))},
getContents_:function(a,b){b=b.split(".");return _.Cf.getValueByKeys(a,b)},
pathExists_:function(a){var b=this;a=a.toString().split(".");for(var c=0;c<a.length;c++)if(b=b[a[c]],b===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var I3b;var J3b;var K3b=function(){var a=_.P.apply(this,arguments)||this;a.triggered_=!1;return a};
_.z(K3b,_.P);_.f=K3b.prototype;_.f.attached=function(){this.maybeTriggerAutoload()};
_.f.detached=function(){this.hasBeenTriggered_=!1};
_.f.onPrescanVisible=function(){this.onShow()};
_.f.onShow=function(){this.showButton||this.trigger()};
_.f.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.io(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.f.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.f.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.f.computeLabel_=function(a,b){return a===void 0?null:a.label||!b?a.label:this.showMoreText_};
_.f.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.f.getContinuationUrl=function(a){var b={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(b.itct=this.data.clickTrackingParams);return _.Qi(a,b)};
_.f.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
var YM=K3b;YM.prototype.showButtonChanged_=YM.prototype.showButtonChanged_;YM.prototype.observeData_=YM.prototype.observeData_;_.U([_.H(_.RG.YtVisibilityBehavior),_.W("design:type",Object)],YM.prototype,"ytVisibilityBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],YM.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],YM.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],YM.prototype,"showButton",void 0);
_.U([_.O({value:!1}),_.W("design:type",Boolean)],YM.prototype,"showIcon",void 0);_.U([_.O({computed:"computeLabel_(data, showButton)"}),_.W("design:type",Object)],YM.prototype,"label",void 0);_.U([_.O({value:_.Vp(_.vo("SHOW_MORE",void 0,"Show More"))}),_.W("design:type",Object)],YM.prototype,"showMoreText_",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],YM.prototype,"spinnerActive_",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],YM.prototype,"hasBeenTriggered_",void 0);
_.U([_.O({value:void 0}),_.W("design:type",String)],YM.prototype,"observeVisibleOption",void 0);_.U([_.O({value:void 0}),_.W("design:type",String)],YM.prototype,"observeHiddenOption",void 0);_.U([_.O({value:"observe_once"}),_.W("design:type",Object)],YM.prototype,"observePrescanOption",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YM.prototype,"observeData_",null);
_.U([_.N("showButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YM.prototype,"showButtonChanged_",null);YM=_.U([_.wr({is:"yt-next-continuation",disableElementRegistration:!0})],YM);
_.S(YM,"yt-next-continuation",function(){if(J3b===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-next-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.continuations.yt_next_continuation.yt.next.continuation.css.js--\x3e\n<template is="dom-if" if="[[!showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-spinner id="spinner" active="[[spinnerActive_]]" class="style-scope yt-next-continuation"></tp-yt-paper-spinner>\n</template>\n<template is="dom-if" if="[[showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-button on-tap="trigger" class="style-scope yt-next-continuation">\n    <yt-icon hidden$="[[!showIcon]]" icon="subdirectory_arrow_right" class="style-scope yt-next-continuation"></yt-icon>\n    <yt-formatted-string text="[[label]]" class="style-scope yt-next-continuation"></yt-formatted-string>\n  </tp-yt-paper-button>\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;I3b===void 0&&(I3b=document.createElement("template"));var d=I3b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);J3b=a}a=J3b;return a},{mode:2});var L3b;var M3b;var N3b=function(){return _.P.apply(this,arguments)||this};
_.z(N3b,_.P);N3b.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
var ZM=N3b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],ZM.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],ZM.prototype,"data",void 0);ZM=_.U([_.wr({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],ZM);
_.S(ZM,"yt-music-pass-small-feature-info-renderer",function(){if(M3b===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-small-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_small_feature_info_renderer.yt.music.pass.small.feature.info.renderer.css.js--\x3e<yt-img-shadow thumbnail="[[data.icon]]" width="84" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-img-shadow>\n<yt-formatted-string id="header" respect-html-dir="" text="[[data.header]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" respect-html-dir="" text="[[data.description]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;L3b===void 0&&(L3b=document.createElement("template"));var d=L3b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);M3b=a}a=M3b;return a},{mode:2});_.Ft("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var O3b=function(){var a=_.P.apply(this,arguments)||this;a.isCollapsible=!1;a.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return a};
_.z(O3b,_.P);_.f=O3b.prototype;_.f.computeIsCollapsible=function(a){return!!(((a==null?0:a.showMoreText)||(a==null?0:a.visibleRowCount))&&(a==null?0:a.isCollapsible))};
_.f.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-grid-renderer lockup",containerType:2,sizing:"COMPACT",force16By9ThumbnailAspectRatio:!0}},continuationItemRenderer:"ytd-continuation-item-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",
playlistRenderer:"ytd-playlist-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:"ytd-grid-video-renderer",downloadedVideoGridVideoRenderer:"ytd-downloaded-video-grid-video-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",musicPassSmallFeatureInfoRenderer:"yt-music-pass-small-feature-info-renderer",gameCardRenderer:"ytd-game-card-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",noInjection:!0}}},"data.continuations":{id:"continuations",
mapping:{nextContinuationData:"yt-next-continuation"}}}};
_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.f.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.f.onIronResize=function(){var a=this;_.Fr(this,"updateGridInitItems",function(){a.maybeUpdateInitialItemsDisplayed()})};
_.f.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var a=this.getVisibleWidth();a!==0&&(a=Math.floor(a/214)*(this.data.visibleRowCount||2),a!==this.initialCount&&(this.initialCount=a,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.f.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.f.computeExpandVisible=function(a,b,c,d){return a&&b&&c&&!!d&&!!d.showMoreText};
_.f.computeShowMoreButton=function(a){return{text:a,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.f.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.f.initCollapsed=function(){var a=this;this.ytLazyListBehavior.canShowMore=!1;var b;(this.collapsed=!((b=this.data)==null||!b.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.Qm(this,function(){_.mo(a.hostElement,"yt-refit-popups-action")})};
_.f.fillRestIfNotCollapsible=function(){var a=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!a||this.ytLazyListBehavior.fillRemainingListItems()};
_.f.computeViewAllHidden=function(a,b){return a||!b.viewAllEndpoint};
var $M=O3b;$M.prototype.fillRestIfNotCollapsible=$M.prototype.fillRestIfNotCollapsible;$M.prototype.initCollapsed=$M.prototype.initCollapsed;$M.prototype.onIronResize=$M.prototype.onIronResize;$M.prototype.persistentGuideChanged=$M.prototype.persistentGuideChanged;_.U([_.H(_.OD),_.W("design:type",Object)],$M.prototype,"ironResizableBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$M.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],$M.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.kJ.YtLazyListBehavior),_.W("design:type",Object)],$M.prototype,"ytLazyListBehavior",void 0);_.U([_.H(_.XM.YtNextContinuationBehavior),_.W("design:type",Object)],$M.prototype,"ytNextContinuationBehavior",void 0);_.U([_.H(_.XI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],$M.prototype,"ytdGuideStateAwareBehavior",void 0);
_.U([_.H(_.WM),_.W("design:type",Object)],$M.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],$M.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],$M.prototype,"collapsed",void 0);_.U([_.O(),_.W("design:type",Number)],$M.prototype,"initialCount",void 0);_.U([_.O({computed:"computeShowMoreButton(data.showMoreText)"}),_.W("design:type",Object)],$M.prototype,"showMoreButton",void 0);
_.U([_.O({computed:"computeIsCollapsible(data)"}),_.W("design:type",Object)],$M.prototype,"isCollapsible",void 0);_.U([_.ir("#items"),_.W("design:type",HTMLElement)],$M.prototype,"items",void 0);_.U([_.mr("guidePersistentAndVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$M.prototype,"persistentGuideChanged",null);_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$M.prototype,"onIronResize",null);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$M.prototype,"initCollapsed",null);_.U([_.mr("canShowMore"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$M.prototype,"fillRestIfNotCollapsible",null);$M=_.U([_.Q({is:"ytd-grid-renderer",disableElementRegistration:!0})],$M);
_.S($M,"ytd-grid-renderer",function(){if(z3b!==void 0)return z3b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.title]]" class="style-scope ytd-grid-renderer">\n  <h3 class="channel-link style-scope ytd-grid-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-grid-renderer"></yt-formatted-string>\n  </h3>\n</template>\n<div id="items" class="style-scope ytd-grid-renderer"></div>\n<ytd-button-renderer id="show-more-button" align-by-text="" data="[[showMoreButton]]" hidden="[[!computeExpandVisible(isCollapsible, collapsed, canShowMore, data)]]" on-tap="onExpandTap" class="style-scope ytd-grid-renderer">\n</ytd-button-renderer>\n<yt-formatted-string id="view-all" hidden="[[computeViewAllHidden(canShowMore, data)]]" text="[[data.viewAllText]]" class="style-scope ytd-grid-renderer">\n</yt-formatted-string>\n<div id="continuations" class="style-scope ytd-grid-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return z3b=a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var P3b=function(){return _.P.apply(this,arguments)||this};
_.z(P3b,_.P);
P3b.prototype.configureRendererStamper=function(){return{"data.adMetadata.displayAdRenderer":{id:"badge",mapping:{badge:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adMetadata.displayAdRenderer.badge]]"},params:{largeFontAdBadge:!0}}}},"data.adMetadata.displayAdRenderer.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{useFloorScrolling:!0}},gridRenderer:"ytd-grid-renderer"}}}};
var aN=P3b;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],aN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],aN.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],aN.prototype,"data",void 0);aN=_.U([_.Q({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],aN);
_.S(aN,"ytd-carousel-ad-renderer",function(){if(s3b!==void 0)return s3b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-carousel-ad-renderer">\n  <div id="badge" class="style-scope ytd-carousel-ad-renderer"></div>\n  <h3 id="title-text" class="style-scope ytd-carousel-ad-renderer">\n    <yt-formatted-string text="[[data.adMetadata.displayAdRenderer.titleText]]" class="style-scope ytd-carousel-ad-renderer">\n    </yt-formatted-string>\n  </h3>\n  <div id="menu" class="style-scope ytd-carousel-ad-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-carousel-ad-renderer"></div>\n<div id="footer" class="style-scope ytd-carousel-ad-renderer">\n  <yt-formatted-string id="footer-string" text="[[data.adMetadata.displayAdRenderer.footerString]]" title="[[getSimpleString(data.adMetadata.displayAdRenderer.footerString)]]" class="style-scope ytd-carousel-ad-renderer">\n  </yt-formatted-string>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return s3b=a},{mode:1});var Q3b;var bN,R3b=function(){return _.P.apply(this,arguments)||this};
_.z(R3b,_.P);_.f=R3b.prototype;_.f.configureRendererStamper=function(){return{"data.content.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.content.adBadge]]"}}}},"data.content.closeButton":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,bN.JSC$13330_CLICK_LOCATION_ID_MAP))};
_.f.onSitelinkTap=function(a){a.stopPropagation();var b,c,d=a==null?void 0:(b=a.model)==null?void 0:(c=b.item)==null?void 0:c.onTap;d&&this.ytSparklesClickLocationBehavior.handleClick(d,a,!1)};
_.f.onTap=function(a){var b=this.data&&this.data.content&&this.data.content.navigationEndpoint;b&&this.ytSparklesClickLocationBehavior.handleClick(b,a,!1)};
_.f.sendImpression=function(){if(this.data&&this.data.content)for(var a=_.h(this.data.content.impressionEndpoints||[]),b=a.next();!b.done;b=a.next()){b=_.h(b.value.loggingUrls||[]);for(var c=b.next();!c.done;c=b.next())c=c.value,c.baseUrl&&Kk(c.baseUrl,c.attributionSrcMode)}};
var cN=bN=R3b;bN.prototype.onTap=bN.prototype.onTap;bN.prototype.dataChanged=bN.prototype.dataChanged;cN.JSC$13330_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","display-url"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK","sitelinks-table"]]);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],cN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],cN.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.jJ.YtSparklesClickLocationBehavior),_.W("design:type",Object)],cN.prototype,"ytSparklesClickLocationBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],cN.prototype,"data",void 0);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cN.prototype,"dataChanged",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],cN.prototype,"onTap",null);cN=bN=_.U([_.Q({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],cN);
_.S(cN,"ytd-promoted-sparkles-text-search-renderer",function(){if(Q3b!==void 0)return Q3b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-text-search-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n  <div id="main-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <h3 id="title" aria-label$="[[data.content.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.content.title)]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-img-shadow id="favicon" hidden="[[!data.content.favicon]]" thumbnail="[[data.content.favicon]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-img-shadow>\n        [[getSimpleString(data.content.title)]]\n    </h3>\n    <yt-formatted-string id="description" no-endpoints="[[noEndpoints]]" text="[[data.content.descriptionText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    </yt-formatted-string>\n    <div id="sitelinks-table" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <template id="sitelinks-dom-repeat" is="dom-repeat" items="[[data.content.sitelinks]]" as="item" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-formatted-string id="sitelinks" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" role="link" text="[[item.title]]" on-click="onSitelinkTap" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="format-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <div id="ad-badge" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n      <yt-formatted-string id="display-url" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" text="[[data.content.websiteText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="right-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <div id="menu" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n    <div id="call-to-action" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Q3b=a},{mode:1});var S3b;var dN,T3b=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-mute-ad-action":"handleMuteAd"};return a};
_.z(T3b,_.P);_.f=T3b.prototype;
_.f.configureRendererStamper=function(){return{"data.menu":{id:_.w("fix_alignment_search_desktop_text_image_ads_small_screens")?"menu":"old-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge-search",
mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.adBadge":{id:"ad-badge-new",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.f.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.f.computeHasAdBadge=function(a){return!(a==null||!a.adBadge)};
_.f.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",dN.JSC$13337_DEFAULT_AD_BADGE_RENDERER),_.br(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,dN.JSC$13337_CLICK_LOCATION_ID_MAP))};
_.f.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var a;(((a=this.data)==null?void 0:a.impressionCommands)||[]).forEach(function(b){b=_.h(b.loggingUrls||[]);for(var c=b.next();!c.done;c=b.next())c=c.value,c.baseUrl&&Kk(c.baseUrl,c.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.f.onTap=function(a){var b,c=(b=this.data)==null?void 0:b.navigationEndpoint,d;(b=(d=this.data)==null?void 0:d.thumbnailNavigationEndpoint)&&_.Xt(_.Rq(a),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(b,a,!1):c&&this.ytSparklesClickLocationBehavior.handleClick(c,a,!1)};
_.f.handleMuteAd=function(){this.collapsed=!0};
_.f.attached=function(){var a=this;_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.f.detached=function(){_.w("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Um.Object.defineProperties(T3b.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var a;return!(((a=this.data)==null?void 0:a.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var a;return!(((a=this.data)==null?void 0:a.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
hideActionButton:{configurable:!0,enumerable:!0,get:function(){return!(this.data&&this.data.actionButton)}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.webSearchLayout}}});
var eN=dN=T3b;dN.prototype.dataChanged=dN.prototype.dataChanged;
eN.JSC$13337_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title"],["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL","action-button"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","website-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","sparkles-container"]]);
eN.JSC$13337_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.vo("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],eN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],eN.prototype,"ytRendererBehavior",void 0);_.U([_.H(NI),_.W("design:type",Object)],eN.prototype,"ytdActiveViewBehavior",void 0);
_.U([_.H([_.eH.YtActionHandlerBehavior]),_.W("design:type",Object)],eN.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.jJ.YtSparklesClickLocationBehavior),_.W("design:type",Object)],eN.prototype,"ytSparklesClickLocationBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],eN.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],eN.prototype,"collapsed",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],eN.prototype,"useBiggerThumbs",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.aj("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],eN.prototype,"biggerThumbsStyle",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.w("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.W("design:type",Boolean)],eN.prototype,"fixAlignmentSmallScreens",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs_square")}}),
_.W("design:type",Boolean)],eN.prototype,"useBiggerThumbsSquare",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data.mediaHoverOverlay"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],eN.prototype,"hideHoverOverlay",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.promotedSparklesWebStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],eN.prototype,"webSearchLayout",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],eN.prototype,"webSearchLayoutLandscape",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],eN.prototype,"webSearchLayoutSquare",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data.promotedSparklesWebStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],eN.prototype,"sparklesCtaNoBackground",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.actionButton"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],eN.prototype,"hideActionButton",null);_.U([_.O({computed:"computeButtonOverride(uiUpdate)"}),_.W("design:type",Object)],eN.prototype,"buttonOverride",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.W("design:type",Boolean)],eN.prototype,"hasNewAdBadge",void 0);_.U([_.K("data.promotedSparklesWebStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],eN.prototype,"useRoundedBadge",null);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eN.prototype,"dataChanged",null);eN=dN=_.U([_.Q({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],eN);
_.S(eN,"ytd-promoted-sparkles-web-renderer",function(){if(S3b!==void 0)return S3b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-web-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sparkles-container" on-tap="onTap" class="style-scope ytd-promoted-sparkles-web-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="thumbnail-hover-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <div id="thumbnail-deep-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <yt-img-shadow id="thumbnail" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n        </yt-img-shadow>\n        <div id="media-badge-search" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n      </div>\n      <div id="media-hover-overlay" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n  </div>\n  <div id="sparkles-body-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="sparkles-body" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <h3 id="title" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.title)]]\n      </h3>\n      <div id="description" class="style-scope ytd-promoted-sparkles-web-renderer">\n        [[getSimpleString(data.description)]]\n      </div>\n      <div id="website-text-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <span id="ad-badge-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          </ytd-badge-supported-renderer>\n          <div id="ad-badge-new" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n        </span>\n        <div id="website-text" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.websiteText)]]\n        </div>\n      </div>\n      <div id="action-button" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n  </div>\n</div>\n<div id="old-menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return S3b=a},{mode:1});var U3b;var fN,V3b=function(){return _.P.apply(this,arguments)||this};
_.z(V3b,_.P);_.f=V3b.prototype;_.f.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.ctaRenderer":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.f.computeShowCta=function(a){return!(a==null||!a.ctaRenderer)};
_.f.onCtaClick=function(){var a,b,c,d=(a=this.data)==null?void 0:(b=a.ctaRenderer)==null?void 0:(c=b.buttonRenderer)==null?void 0:c.command;d&&this.ytComponentBehavior.resolveCommand(d)};
_.f.onWatchButtonClick=function(){var a,b,c,d=(a=this.data)==null?void 0:(b=a.watchButtonRenderer)==null?void 0:(c=b.buttonRenderer)==null?void 0:c.command;d&&this.ytComponentBehavior.resolveCommand(d)};
_.f.onTap=function(){};
_.f.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",fN.JSC$13340_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",fN.JSC$13340_DEFAULT_CLICK_LOCATION_BEHAVIOR,fN.JSC$13340_CLICK_LOCATION_ID_MAP),this.thumbnail)){var a=this.thumbnail.getElementsByTagName("a");a.length>0&&(a=a.namedItem("thumbnail"))&&a.removeAttribute("href")}};
_.f.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var a=_.h(this.data.impressionUrls),b=a.next();!b.done;b=a.next())b=b.value,hsa(b,jsa(b));this.data.impressionsFired=!0}};
_.f.maybeComputeHref=function(){return null};
_.f.computeIsShortDR=function(a){return!(a==null||!a.watchButtonRenderer)&&!(a==null||!a.ctaRenderer)&&!!this.enableShortDR};
_.f.computeIsNewUiOrShortDr=function(a){return!!this.enableUiUpdate||this.computeIsShortDR(a)};
_.f.computeIsNewUiAndNotShortDr=function(a){return!!this.enableUiUpdate&&!this.computeIsShortDR(a)};
_.f.computeHideAvatar=function(a){return!((a==null?0:a.channelThumbnail)&&this.computeIsNewUiOrShortDr(a))};
_.f.onClick=function(a){var b,c=(b=this.data)==null?void 0:b.navigationEndpoint;if(this.enableShortDR&&c&&(_.y(c,_.Un)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(c,a,!!_.y(c,_.Un)),a.stopPropagation();else if(c&&_.y(c,_.Un))this.ytSparklesClickLocationBehavior.handleClick(c,a,!0),a.stopPropagation();else if(c){var d,e;((d=this.data)==null?0:d.navigationEndpoint)&&((e=this.data)==null?0:e.adPlaybackContextParams)&&YBa(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(c)}};
_.f.computeButtonOverride=function(a){if(this.computeIsNewUiOrShortDr(a))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.f.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.f.onThumbnailContainerClick=function(a){this.onClick(a)};
_.f.computeThumbnailWidth=function(a,b){return a?b==="MASSIVE"?600:b==="BIG"?500:b==="MEDIUM"?450:420:360};
_.f.attached=function(){var a=this;_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.f.detached=function(){_.w("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
var gN=fN=V3b;fN.prototype.dataChanged=fN.prototype.dataChanged;fN.prototype.onTap=fN.prototype.onTap;gN.JSC$13340_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.vo("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};gN.JSC$13340_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
gN.JSC$13340_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],gN.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],gN.prototype,"ytRendererBehavior",void 0);_.U([_.H(NI),_.W("design:type",Object)],gN.prototype,"ytdActiveViewBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],gN.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.jJ.YtSparklesClickLocationBehavior),_.W("design:type",Object)],gN.prototype,"ytSparklesClickLocationBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],gN.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],gN.prototype,"useBiggerThumbs",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.w("enable_video_display_compact_button_group_for_desktop_search")}}),
_.W("design:type",Boolean)],gN.prototype,"enableShortDR",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.w("enable_vac_ui_update_for_desktop_search")}}),
_.W("design:type",Boolean)],gN.prototype,"enableUiUpdate",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.aj("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],gN.prototype,"biggerThumbsStyle",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.W("design:type",Boolean)],gN.prototype,"showCta",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.W("design:type",Boolean)],gN.prototype,"isShortDr",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.W("design:type",Boolean)],gN.prototype,"isShortDrOrNewUi",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.W("design:type",Boolean)],gN.prototype,"isNewUiAndNotShortDr",void 0);_.U([_.O({computed:"computeButtonOverride(data)"}),_.W("design:type",Object)],gN.prototype,"buttonOverride",void 0);_.U([_.O({computed:"computeSecondaryButtonOverride(data)"}),_.W("design:type",Object)],gN.prototype,"secondaryButtonOverride",void 0);_.U([_.ir("ytd-thumbnail"),_.W("design:type",HTMLElement)],gN.prototype,"thumbnail",void 0);
_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gN.prototype,"onTap",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gN.prototype,"dataChanged",null);gN=fN=_.U([_.Q({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],gN);
_.S(gN,"ytd-promoted-video-renderer",function(){if(U3b!==void 0)return U3b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" on-click="onThumbnailContainerClick" class="style-scope ytd-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div id="metadata-container" class="style-scope ytd-promoted-video-renderer">\n    <div id="text-container" class="style-scope ytd-promoted-video-renderer">\n      <a id="endpoint" class="yt-simple-endpoint style-scope ytd-promoted-video-renderer" data="[[data.navigationEndpoint]]" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick">\n        <div id="meta" class="style-scope ytd-promoted-video-renderer">\n          <div id="title-wrapper" class="style-scope ytd-promoted-video-renderer">\n            \n            <h3 id="video-title" aria-label$="[[data.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-video-renderer">\n              [[getSimpleString(data.title)]]\n            </h3>\n          </div>\n          \n          <span id="description-text" hidden="[[!computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n          <div id="byline" class="style-scope ytd-promoted-video-renderer">\n            <div id="channel-thumbnail-container" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" hidden="[[computeHideAvatar(data)]]" class="style-scope ytd-promoted-video-renderer">\n                <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" class="style-scope ytd-promoted-video-renderer">\n                </yt-img-shadow>\n            </div>\n            <div id="ad-badge-container" hidden="[[!data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              <ytd-badge-supported-renderer top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <ytd-video-meta-block id="ad-badge-metablock" data="[[data]]" class="style-scope ytd-promoted-video-renderer"></ytd-video-meta-block>\n          </div>\n        </div>\n        <span id="description-text" hidden="[[computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n        <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n      </a>\n      <div id="button-container" class="style-scope ytd-promoted-video-renderer">\n        <template is="dom-if" if="[[computeIsShortDR(data)]]" class="style-scope ytd-promoted-video-renderer">\n          <ytd-button-renderer id="secondary-button" data="[[data.watchButtonRenderer.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data)]]" on-click="onWatchButtonClick" class="style-scope ytd-promoted-video-renderer">\n          </ytd-button-renderer>\n        </template>\n        <div id="call-to-action" on-click="onCtaClick" class="style-scope ytd-promoted-video-renderer"></div>\n      </div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-video-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return U3b=a},{mode:1});var W3b;var hN,X3b=function(){var a=_.P.apply(this,arguments)||this;a.useRoundedBadge=!0;a.sitelinkIds=[];return a};
_.z(X3b,_.P);_.f=X3b.prototype;
_.f.configureRendererStamper=function(){return{"data.menu":{id:_.w("enable_text_ad_web_thumbnail_scaling_fix")?"new-menu":"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},
"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.f.dataChanged=function(){var a;(a=this.data)!=null&&a.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,hN.JSC$13347_CLICK_LOCATION_ID_MAP)};
_.f.onTap=function(a){var b,c=(b=this.data)==null?void 0:b.navigationCommand;c&&!_.Xt(_.Rq(a),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(c,a,!1)};
_.f.onSitelinkTap=function(a){var b,c,d=a==null?void 0:(b=a.model)==null?void 0:(c=b.item)==null?void 0:c.onTap;d&&this.ytSparklesClickLocationBehavior.handleClick(d,a,!1)};
_.f.configureSitelinkClickTargets=function(){var a=this,b,c,d=(b=this.data)==null?void 0:(c=b.clickLocationTargets)==null?void 0:c.find(function(e){return e.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
d&&_.E(this.hostElement).querySelectorAll(".sitelink").forEach(function(e){_.br(e,"yt-simple-endpoint",!0);a.sitelinkIds.push(e.id);var g,k;(g=a.ytSparklesClickLocationBehavior)==null||(k=g.clickTargetMap)==null||k.set(e.id,d)})};
_.f.sendImpression=function(){var a,b,c=((a=this.data)==null?void 0:(b=a.impressionCommand)==null?void 0:b.loggingUrls)||[];a=_.h(c);for(b=a.next();!b.done;b=a.next())b=b.value,b.baseUrl&&Kk(b.baseUrl,b.attributionSrcMode)};
_.f.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.Um.Object.defineProperties(X3b.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
var iN=hN=X3b;hN.prototype.onTap=hN.prototype.onTap;hN.prototype.dataChanged=hN.prototype.dataChanged;
iN.JSC$13347_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND","text-image-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","headline"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","website-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"]]);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],iN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],iN.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.jJ.YtSparklesClickLocationBehavior),_.W("design:type",Object)],iN.prototype,"ytSparklesClickLocationBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],iN.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iN.prototype,"showFavicon",null);_.U([_.O({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],iN.prototype,"useBiggerThumbs",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.aj("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],iN.prototype,"biggerThumbsStyle",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.w("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.W("design:type",Boolean)],iN.prototype,"enableThumbnailScalingFix",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iN.prototype,"dataChanged",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],iN.prototype,"onTap",null);iN=hN=_.U([_.Q({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],iN);
_.S(iN,"ytd-text-image-no-button-layout-renderer",function(){if(W3b!==void 0)return W3b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-image-no-button-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n  <div id="text-image-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="media-hover-overlay" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n    <div id="text-image" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-img-shadow id="text-image-favicon" hidden="[[!showFavicon]]" thumbnail="[[data.favicon]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-img-shadow>\n      <h3 id="text-image-title" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.title)]]</h3>\n    </div>\n    <div id="media-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="metadata-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="metadata-body" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-formatted-string id="headline" ellipsis-truncate="" no-endpoints="" text="[[data.headline]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <yt-formatted-string id="description" ellipsis-truncate="" no-endpoints="" text="[[data.description]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <div id="details-line" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <div id="ad-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n        <div id="website-text" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.websiteText)]]</div>\n      </div>\n      <div id="sitelinks-carousel" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <template is="dom-repeat" items="[[data.sitelinks]]" as="item" on-dom-change="configureSitelinkClickTargets" class="style-scope ytd-text-image-no-button-layout-renderer">\n          <div class="sitelink-container style-scope ytd-text-image-no-button-layout-renderer">\n            <yt-formatted-string id="sitelink-[[index]]" class="sitelink style-scope ytd-text-image-no-button-layout-renderer" ellipsis-truncate="" no-endpoints="" role="link" text="[[item.title]]" on-click="onSitelinkTap"></yt-formatted-string>\n          </div>\n        </template>\n      </div>\n    </div>\n    <div id="new-menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return W3b=a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var Y3b;var jN,Z3b=function(){var a=_.P.apply(this,arguments)||this;a.isInlinePlaybackState=!1;a.uiUpdate=_.w("web_modern_buttons");a.hideCta=_.w("hide_cta_for_home_web_video_ads");a.noBottomMargin=!1;a.animateInTimeStamp=_.$i("hide_cta_for_home_web_video_ads_animate_in_time");a.animateInCta=!1;a.isHovered=!1;a.player=null;a.JSC$13354_playerEvents=new Map;a.JSC$13354_preventProgressSaveTimer=null;return a};
_.z(Z3b,_.P);_.f=Z3b.prototype;_.f.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.adCtaButton":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.f.attached=function(){this.JSC$13354_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13354_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer()};
_.f.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13354_playerEvents)};
_.f.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",jN.JSC$13353_DEFAULT_CLICK_LOCATION_BEHAVIOR,jN.JSC$13353_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.f.setPlayer=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return(b=_.mo(a.hostElement,"yt-get-inline-preview-player-action"))&&b[0]?_.p(c,b[0].getPlayerPromise(),3):c.jumpTo(0);a.player=c.yieldResult;a.ytPlayerListenerBehavior.listenToPlayerEvents(a.player,a.JSC$13354_playerEvents);_.ue(c)})};
_.f.onPlaybackStart=function(){var a=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13354_preventProgressSaveTimer=_.Ys(_.zk,function(){a.JSC$13354_preventProgressSaveTimer=null},1E4))};
_.f.onVideoProgress=function(a){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&a>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.f.resetPreventProgressSaveTimer=function(){_.zk.cancelJob(this.JSC$13354_preventProgressSaveTimer);this.JSC$13354_preventProgressSaveTimer=null};
_.f.getSimpleString=function(a){return _.Wp(a)};
_.f.onClick=function(a){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var b,c=(b=this.data)==null?void 0:b.navigationEndpoint,d;b=(d=this.data)==null?void 0:d.channelEndpoint;var e,g;(d=(g=_.y((e=this.data)==null?void 0:e.adCtaButton,_.RE))==null?void 0:g.command)&&_.Xt(_.Rq(a),this.hostElement,["call-to-action"])?this.ytSparklesClickLocationBehavior.handleClick(d,a,!1):b&&_.Xt(_.Rq(a),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(b,
a,!1):!_.Xt(_.Rq(a),this.hostElement,["secondary-button"])&&c&&(_.w("enable_short_dr_for_desktop_launchable")?(e=!!_.y(c,_.Un),this.isInlinePlaybackState&&e&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(c,a,e)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(c,a,!0)))}};
_.f.updateWatchEndpointStartTime=function(){var a,b;this.player&&((a=this.data)==null?0:a.inlinePlaybackEndpoint)&&((b=this.data)==null?0:b.navigationEndpoint)&&!this.JSC$13354_preventProgressSaveTimer&&(a=Math.floor(this.player.getCurrentTime()),_.y(this.data.navigationEndpoint,_.Un).startTimeSeconds=a,_.y(this.data.inlinePlaybackEndpoint,_.Un).startTimeSeconds=a)};
_.f.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.f.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.Um.Object.defineProperties(Z3b.prototype,{isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null||!a.watchButton)&&!((b=this.data)==null||!b.adCtaButton)}}});
var kN=jN=Z3b;jN.prototype.dataChanged=jN.prototype.dataChanged;kN.JSC$13353_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","channel-thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER","short-byline-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL","call-to-action"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","ad-inline-playback-metadata"]]);
kN.JSC$13353_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TITLE",code:0,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:19,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",code:20,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",
code:31,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],kN.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],kN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],kN.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.jJ.YtSparklesClickLocationBehavior),_.W("design:type",Object)],kN.prototype,"ytSparklesClickLocationBehavior",void 0);
_.U([_.H(_.bJ.YtPlayerListenerBehavior),_.W("design:type",_.cJ)],kN.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],kN.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],kN.prototype,"isInlinePlaybackState",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],kN.prototype,"miniMode",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],kN.prototype,"uiUpdate",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],kN.prototype,"hideCta",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],kN.prototype,"noBottomMargin",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],kN.prototype,"animateInCta",void 0);_.U([_.O({computed:"computeButtonOverride(uiUpdate)"}),_.W("design:type",Object)],kN.prototype,"buttonOverride",void 0);
_.U([_.O({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.W("design:type",Object)],kN.prototype,"secondaryButtonOverride",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],kN.prototype,"isHovered",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kN.prototype,"dataChanged",null);_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],kN.prototype,"isButtonGroup",null);
kN=jN=_.U([_.Q({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],kN);
_.S(kN,"ytd-ad-inline-playback-meta-block",function(){if(Y3b!==void 0)return Y3b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-inline-playback-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ad-inline-playback-metadata" on-click="onClick" class="style-scope ytd-ad-inline-playback-meta-block">\n  <div id="meta-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <div id="channel-thumbnail-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <a id="avatar-link" class="yt-simple-endpoint style-scope ytd-ad-inline-playback-meta-block" hidden="[[!data.channelThumbnail]]" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" tabindex="-1">\n        <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" width="48" class="style-scope ytd-ad-inline-playback-meta-block">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="info-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <div id="title-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="video-title" text="[[data.title]]" title="[[getSimpleString(data.title)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="menu" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n      <div id="description-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="description" text="[[data.description]]" title="[[getSimpleString(data.description)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="byline-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <div id="badge" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n        <ytd-channel-name id="short-byline-text" channel-name="[[data.shortBylineText]]" no-endpoints="true" wrap-text="true" class="style-scope ytd-ad-inline-playback-meta-block"></ytd-channel-name>\n      </div>\n      <div id="secondary-description-container" aria-hidden="true" hidden="[[!data.secondaryDescription]]" "="" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="secondary-description" text="[[data.secondaryDescription]]" title="[[getSimpleString(data.secondaryDescription)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n    </div>\n  </div>\n  <div id="button-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <template is="dom-if" if="[[data.watchButton.buttonRenderer]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      <ytd-button-renderer id="secondary-button" data="[[data.watchButton.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data.watchButton.buttonRenderer)]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      </ytd-button-renderer>\n    </template>\n    <div id="call-to-action" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Y3b=a},{mode:_.as("kevlar_poly_si_batch_j065")?1:2});var $3b;var lN,a4b=function(){var a=_.P.apply(this,arguments)||this;a.noBottomMargin=!1;a.isInlinePreviewTriggered=!1;a.JSC$13359_activeViewMeasurementDataResolver=_.St();return a};
_.z(a4b,_.P);_.f=a4b.prototype;_.f.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.f.attached=function(){var a=this;this.updateInlinePreviewHoverListeners();this.JSC$13359_activeViewMeasurementDataResolver.promise.then(function(b){a.ytdActiveViewBehavior.enableActiveViewMeasurement(b,15)});
_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.f.detached=function(){this.clearInlinePreviewHoverListeners();_.w("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.f.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13359_inlinePreviewHoverListener=dv({mediaRenderer:this,lockupElement:this.JSC$13359_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:K_b})};
_.f.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$13359_inlinePreviewHoverListener)==null||uv(a)};
_.f.onDataChanged=function(){var a;((a=this.data)==null?0:a.activeView)&&this.JSC$13359_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",lN.JSC$13358_DEFAULT_CLICK_LOCATION_BEHAVIOR,lN.JSC$13358_CLICK_LOCATION_ID_MAP);this.thumbnail&&(a=this.thumbnail.getElementsByTagName("a"),a.length>0&&(a=a.namedItem("thumbnail"))&&a.removeAttribute("href"));var b;if((b=this.data)==
null?0:b.hasAutoplay){var c;(c=this.JSC$13359_inlinePreviewHoverListener)==null||c_b(c)}};
_.f.onThumbnailContainerClick=function(a){if(this.data&&this.data.navigationEndpoint){var b,c=(b=this.data)==null?void 0:b.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(c,a,!!_.y(c,_.Un));a.stopPropagation()}};
_.f.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.f.impressionLog=function(){var a=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var b,c,d=(c=_.y((b=this.data)==null?void 0:b.onImpression,_.ro))==null?void 0:c.commands;d&&(d.forEach(function(e){e.clickTrackingParams&&delete e.clickTrackingParams;a.ytComponentBehavior.resolveCommand(e)}),this.data.impressionsFired=!0)}};
_.Um.Object.defineProperties(a4b.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$13359_inlinePreviewHoverListener)==null?0:UK(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var mN=lN=a4b;lN.prototype.onDataChanged=lN.prototype.onDataChanged;mN.JSC$13358_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);mN.JSC$13358_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],mN.prototype,"ytComponentBehavior",void 0);
_.U([_.H(NI),_.W("design:type",Object)],mN.prototype,"ytdActiveViewBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],mN.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],mN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],mN.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.$I),_.W("design:type",Object)],mN.prototype,"ytdLockupBehavior",void 0);
_.U([_.H(_.OI),_.W("design:type",Object)],mN.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.jJ.YtSparklesClickLocationBehavior),_.W("design:type",Object)],mN.prototype,"ytSparklesClickLocationBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],mN.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],mN.prototype,"noBottomMargin",void 0);_.U([_.O(),_.W("design:type",Object)],mN.prototype,"isInlinePreviewTriggered",void 0);
_.U([_.O({reflectToAttribute:!0,selector:_.Fp}),_.W("design:type",Boolean)],mN.prototype,"miniMode",void 0);_.U([_.ir("ytd-thumbnail"),_.W("design:type",HTMLElement)],mN.prototype,"thumbnail",void 0);_.U([_.ir("#dismissible"),_.W("design:type",HTMLElement)],mN.prototype,"JSC$13359_dismissibleMedia",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mN.prototype,"onDataChanged",null);
_.U([_.K("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],mN.prototype,"isHovered",null);mN=lN=_.U([_.Q({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],mN);
_.S(mN,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if($3b!==void 0)return $3b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-and-button-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" no-bottom-margin="[[noBottomMargin]]" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return $3b=a},{mode:1});var b4b;var nN,c4b=function(){var a=_.P.apply(this,arguments)||this;a.isInlinePreviewTriggered=!1;a.JSC$13362_activeViewMeasurementDataResolver=_.St();return a};
_.z(c4b,_.P);_.f=c4b.prototype;_.f.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.f.attached=function(){var a=this;this.updateInlinePreviewHoverListeners();this.JSC$13362_activeViewMeasurementDataResolver.promise.then(function(b){a.ytdActiveViewBehavior.enableActiveViewMeasurement(b,15)})};
_.f.detached=function(){this.clearInlinePreviewHoverListeners()};
_.f.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13362_inlinePreviewHoverListener=dv({mediaRenderer:this,lockupElement:this.JSC$13362_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:K_b})};
_.f.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$13362_inlinePreviewHoverListener)==null||uv(a)};
_.f.onDataChanged=function(){var a;((a=this.data)==null?0:a.activeView)&&this.JSC$13362_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",nN.JSC$13361_DEFAULT_CLICK_LOCATION_BEHAVIOR,nN.JSC$13361_CLICK_LOCATION_ID_MAP);this.thumbnail&&(a=this.thumbnail.getElementsByTagName("a"),a.length>0&&(a=a.namedItem("thumbnail"))&&a.removeAttribute("href"))};
_.f.onThumbnailContainerClick=function(a){if(this.data&&this.data.navigationEndpoint){var b,c=(b=this.data)==null?void 0:b.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(c,a,!0);a.stopPropagation()}};
_.f.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.f.impressionLog=function(){var a=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var b,c,d=(c=_.y((b=this.data)==null?void 0:b.onImpression,_.ro))==null?void 0:c.commands;d&&(d.forEach(function(e){e.clickTrackingParams&&delete e.clickTrackingParams;_.w("web_ytd_video_display_full_buttoned_renderer_command_resolver_ks")?_.oo(a.hostElement,[e]):_.v().resolve(_.Yi).resolveCommand(e,{form:{element:a.hostElement}})}),this.data.impressionsFired=!0)}};
_.Um.Object.defineProperties(c4b.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$13362_inlinePreviewHoverListener)==null?0:UK(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var oN=nN=c4b;nN.prototype.onDataChanged=nN.prototype.onDataChanged;oN.JSC$13361_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);oN.JSC$13361_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.U([_.H(NI),_.W("design:type",Object)],oN.prototype,"ytdActiveViewBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],oN.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],oN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],oN.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.$I),_.W("design:type",Object)],oN.prototype,"ytdLockupBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],oN.prototype,"ytdReduxBehavior",void 0);
_.U([_.H(_.jJ.YtSparklesClickLocationBehavior),_.W("design:type",Object)],oN.prototype,"ytSparklesClickLocationBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],oN.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],oN.prototype,"isInlinePreviewTriggered",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Fp}),_.W("design:type",Boolean)],oN.prototype,"miniMode",void 0);_.U([_.ir("ytd-thumbnail"),_.W("design:type",HTMLElement)],oN.prototype,"thumbnail",void 0);
_.U([_.ir("#dismissible"),_.W("design:type",HTMLElement)],oN.prototype,"JSC$13362_dismissibleMedia",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oN.prototype,"onDataChanged",null);_.U([_.K("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],oN.prototype,"isHovered",null);oN=nN=_.U([_.Q({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],oN);
_.S(oN,"ytd-video-display-full-buttoned-renderer",function(){if(b4b!==void 0)return b4b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" class="style-scope ytd-video-display-full-buttoned-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-renderer"></div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return b4b=a},{mode:1});var Av=function(a,b,c,d){d=d===void 0?!1:d;_.ca.call(this,a);this.adsClientErrorMessage=c;this.aggressivelySample=d;this.args=[];b&&this.args.push(b)};
_.z(Av,_.ca);var yv=function(a,b,c,d){d=d===void 0?!1:d;_.ca.call(this,a);this.adsClientErrorMessage=c;this.aggressivelySample=d;this.args=[];b&&this.args.push(b)};
_.z(yv,_.ca);var d4b=function(a){_.vg.call(this);var b=this;this.initializationFunction=a;this.instance=null;this.addOnDisposeCallback(function(){_.Xf(b.instance);b.instance=null})};
_.z(d4b,_.vg);d4b.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.rv("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var H0a=function(){var a=new Map;[].forEach(function(b){a.set(b.JSC$26657_getType(),b)})};new Promise(function(){});var C0a=new Map([["unspecified","CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"],["core","CONTROL_FLOW_MANAGER_LAYER_CORE"],["adapter","CONTROL_FLOW_MANAGER_LAYER_ADAPTER"],["surface","CONTROL_FLOW_MANAGER_LAYER_SURFACE"],["external","CONTROL_FLOW_MANAGER_LAYER_EXTERNAL"]]),A0a=new Map([["normal",{requestEvent:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{requestEvent:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{requestEvent:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{requestEvent:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{requestEvent:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{requestEvent:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",
successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],["error",{requestEvent:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]),e4b=function(a){this.experimentApiProvider=a;a=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=a<.1};var pN=function(a,b,c,d){_.vg.call(this);this.adsControlFlowEventListeners=b;this.adEventLogger=c;this.experimentApiProvider=d;this.adsControlFlowManagerHelper=a(this,this,this,this,this);_.kg(this,this.adsControlFlowManagerHelper);a=_.h(b);for(b=a.next();!b.done;b=a.next())_.kg(this,b.value)};
_.z(pN,_.vg);var f4b=function(a,b,c,d){qN(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",b,c,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,d);a=_.h(a.adsControlFlowEventListeners);for(d=a.next();!d.done;d=a.next())f4b(d.value,b,c)};
_.f=pN.prototype;_.f.onOpportunityProcessedExternallyManaged=function(a,b,c,d){qN(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",a,c,b,void 0,void 0,void 0,void 0,void 0,void 0,void 0,d)};
_.f.onSlotReceivedExternallyManaged=function(a,b){rN(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",a,b)};
_.f.onSlotEntered=function(a){if(sN(this.adsControlFlowManagerHelper,a)!=null){rN(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.adsControlFlowManagerHelper.onSlotEntered(a);for(var b=_.h(this.adsControlFlowEventListeners),c=b.next();!c.done;c=b.next())c.value.onSlotEntered(a);if(sN(this.adsControlFlowManagerHelper,a)!=null&&sN(this.adsControlFlowManagerHelper,a).isOccupyingSlotType()&&tN(this.adsControlFlowManagerHelper,a)&&!g4b(this.adsControlFlowManagerHelper,a)){var d;uN(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",a,(d=tN(this.adsControlFlowManagerHelper,a))!=null?d:void 0);a=sN(this.adsControlFlowManagerHelper,a);a.slotLifecycleStage!=="entered"&&vN(a.slot,a.slotLifecycleStage,"enterLayoutForSlot");a.slotLifecycleStage="rendering";a.registeredLayoutRenderingAdapter.startRendering(a.layout)}}};
_.f.onSlotExited=function(a){if(sN(this.adsControlFlowManagerHelper,a)!=null){rN(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.adsControlFlowManagerHelper.onSlotExited(a);for(var b=_.h(this.adsControlFlowEventListeners),c=b.next();!c.done;c=b.next())c.value.onSlotExited(a);sN(this.adsControlFlowManagerHelper,a)!=null&&sN(this.adsControlFlowManagerHelper,a).markedForUnscheduleAfterOutboundAdapterRequests&&h4b(this,a)}};
_.f.onLayoutReceivedExternallyManaged=function(a,b,c){a.managerLayer!=="core"&&uN(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",a,b,c)};
var i4b=function(a,b,c){if(sN(a.adsControlFlowManagerHelper,b)!=null){uN(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=_.h(a.adsControlFlowEventListeners);for(var d=a.next();!d.done;d=a.next())i4b(d.value,b,c)}};
pN.prototype.onLayoutExited=function(a,b,c){if(sN(this.adsControlFlowManagerHelper,a)!=null){uN(this.adEventLogger,B0a(c),a,b);this.adsControlFlowManagerHelper.onLayoutExited(a,b);for(var d=_.h(this.adsControlFlowEventListeners),e=d.next();!e.done;e=d.next())e.value.onLayoutExited(a,b,c);(c=tN(this.adsControlFlowManagerHelper,a))&&b.layoutId===c.layoutId&&j4b(this,a)}};
pN.prototype.disposeInternal=function(){var a=k4b(this.adsControlFlowManagerHelper);a=_.h(a);for(var b=a.next();!b.done;b=a.next())h4b(this,b.value);_.vg.prototype.disposeInternal.call(this)};
var h4b=function(a,b){if(sN(a.adsControlFlowManagerHelper,b)!=null)if(sN(a.adsControlFlowManagerHelper,b).JSC$26688_isSlotExitRequested()||sN(a.adsControlFlowManagerHelper,b).JSC$26688_isLayoutExitRequested())sN(a.adsControlFlowManagerHelper,b).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(sN(a.adsControlFlowManagerHelper,b).isOccupyingSlotType())sN(a.adsControlFlowManagerHelper,b).markedForUnscheduleAfterOutboundAdapterRequests=!0,j4b(a,b);else if(sN(a.adsControlFlowManagerHelper,b).JSC$26688_isSlotFillRequested())sN(a.adsControlFlowManagerHelper,
b).markedForUnscheduleAfterOutboundAdapterRequests=!0,sN(a.adsControlFlowManagerHelper,b)!=null&&(rN(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=sN(a.adsControlFlowManagerHelper,b),b.fulfillmentLifecycleStage="fill_cancel_requested",b.registeredFulfillmentAdapter.cancelSlotFilling());else{var c=tN(a.adsControlFlowManagerHelper,b),d;a.experimentApiProvider.get();(d=_.w("h5_enable_layout_unscheduling_events"))&&(c?l4b(a,b,c):_.rv(Error("Lh"),b,c,void 0,!1));rN(a.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var e=sN(a.adsControlFlowManagerHelper,b),g=b.slotEntryTrigger,k=e.registeredSlotEntryTriggerAdapters.get(g.triggerId);k&&(k.unregisterTrigger(g),e.registeredSlotEntryTriggerAdapters.delete(g.triggerId));g=_.h(b.slotFulfillmentTriggers);for(k=g.next();!k.done;k=g.next()){k=k.value;var m=e.registeredFulfillmentTriggerAdapters.get(k.triggerId);m&&(m.unregisterTrigger(k),e.registeredFulfillmentTriggerAdapters.delete(k.triggerId))}g=_.h(b.slotExpirationTriggers);
for(k=g.next();!k.done;k=g.next())if(k=k.value,m=e.registeredExpirationTriggerAdapters.get(k.triggerId))m.unregisterTrigger(k),e.registeredExpirationTriggerAdapters.delete(k.triggerId);e.hasLayout()&&(g=e.layout,wN(e,g.layoutExitNormalTriggers),wN(e,g.layoutExitSkipTriggers),wN(e,g.layoutExitMuteTriggers),wN(e,g.layoutExitUserInputSubmittedTriggers),wN(e,g.layoutExitUserCancelledTriggers));e.registeredFulfillmentAdapter=void 0;e.registeredSlotAdapter!=null&&(e.registeredSlotAdapter.release(),e.registeredSlotAdapter=
void 0);e.registeredLayoutRenderingAdapter!=null&&(e.registeredLayoutRenderingAdapter.release(),e.registeredLayoutRenderingAdapter=void 0);e=a.adsControlFlowManagerHelper;sN(e,b)&&(e=m4b(e,b.slotType+"_"+b.slotPhysicalPosition))&&e.delete(b.slotId);rN(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=_.h(a.adsControlFlowEventListeners);for(e=a.next();!e.done;e=a.next())e=e.value,e.onSlotUnscheduled(b),c&&!d&&l4b(e,b,c)}},l4b=function(a,b,c){uN(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
b,c);
uN(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",b,c);a=_.h(a.adsControlFlowEventListeners);for(var d=a.next();!d.done;d=a.next())d=d.value,c&&l4b(d,b,c)},j4b=function(a,b){if(sN(a.adsControlFlowManagerHelper,b)!=null&&sN(a.adsControlFlowManagerHelper,b).isOccupyingSlotType()){var c=tN(a.adsControlFlowManagerHelper,b);
if(c&&g4b(a.adsControlFlowManagerHelper,b)){if(sN(a.adsControlFlowManagerHelper,b)!=null){var d=a.adEventLogger,e;var g=((e=A0a.get("abandoned"))==null?void 0:e.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";uN(d,g,b,c);a=sN(a.adsControlFlowManagerHelper,b);a.slotLifecycleStage!=="rendering"&&vN(a.slot,a.slotLifecycleStage,"exitLayout");a.slotLifecycleStage="rendering_stop_requested";a.registeredLayoutRenderingAdapter.stopRendering(c,"abandoned")}}else{rN(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
b);try{d=sN(a.adsControlFlowManagerHelper,b);if(!d)throw new yv("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");d.slotLifecycleStage!=="enter_requested"&&d.slotLifecycleStage!=="entered"&&d.slotLifecycleStage!=="rendering"&&vN(d.slot,d.slotLifecycleStage,"exitSlot");d.slotLifecycleStage="exit_requested";if(d.registeredSlotAdapter===void 0)throw d.slotLifecycleStage="scheduled",new yv("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
d.registeredSlotAdapter.exit()}catch(k){k instanceof yv&&k.adsClientErrorMessage?(n4b(a.adEventLogger,k.adsClientErrorMessage,b),_.rv(k,b,void 0,void 0,k.aggressivelySample)):(n4b(a.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",b),_.rv(k,b))}}}};var xN=function(a,b,c,d,e,g){_.vg.call(this);this.registry=a;this.experimentApiProvider=g;this.slotMap=new Map};
_.z(xN,_.vg);var m4b=function(a,b){return(a=a.slotMap.get(b))?a:new Map},sN=function(a,b){return m4b(a,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)},k4b=function(a){var b=[];
a.slotMap.forEach(function(c){c=_.h(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
xN.prototype.onSlotEntered=function(a){a=sN(this,a);a.slotLifecycleStage!=="enter_requested"&&vN(a.slot,a.slotLifecycleStage,"onSlotEntered");a.slotLifecycleStage="entered"};
var g4b=function(a,b){a=sN(a,b);return a.hasLayout()&&a.isRendering()},tN=function(a,b){(a=sN(a,b))?a.hasLayout()&&!a.layout&&_.rv("Unexpected empty layout",b):_.rv("Unexpected undefined slotState",b);
return(a==null?void 0:a.layout)||null};
xN.prototype.onSlotExited=function(a){a=sN(this,a);a.slotLifecycleStage!=="exit_requested"&&vN(a.slot,a.slotLifecycleStage,"onSlotExited");a.slotLifecycleStage="scheduled"};
xN.prototype.onLayoutExited=function(a,b){a=sN(this,a);a.isPrimaryLayout(b)&&(a.slotLifecycleStage!=="rendering_stop_requested"&&vN(a.slot,a.slotLifecycleStage,"onLayoutExited"),a.slotLifecycleStage="entered")};
var wN=function(a,b){b=_.h(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.registeredLayoutExitTriggerAdapters.get(c.triggerId);d&&(d.unregisterTrigger(c),a.registeredLayoutExitTriggerAdapters.delete(c.triggerId))}},vN=function(a,b,c){_.rv("Slot stage was "+b+" when calling method "+c,a)};var p4b=function(a){_.vg.call(this);this.deps=a;this.JSC$13411_adsControlFlowManager=o4b(this)};
_.z(p4b,_.vg);var o4b=function(a){var b=new pN(function(c,d,e,g){return new xN(a.deps.registry,c,d,e,g,a.deps.experimentApiProvider)},new Set(G0a(a.deps.registry).concat(a.deps.listeners)),a.deps.adEventLogger,a.deps.experimentApiProvider);
_.kg(a,b);return b};var q4b=function(a,b){_.vg.call(this);this.experimentApiProvider=a;this.eventLoggingSettingsProvider=b;this.eventCount=0};
_.z(q4b,_.vg);q4b.prototype.logEvent=function(a){qN(this,a)};
var rN=function(a,b,c,d){qN(a,b,void 0,void 0,void 0,c,void 0,void 0,void 0,c.adSlotLoggingData,void 0,void 0,d)},uN=function(a,b,c,d,e){qN(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0,void 0,e)},n4b=function(a,b,c){qN(a,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,c,void 0,void 0,void 0,c.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:b})},qN=function(a,b,c,d,e,g,k,m,n,r,t,u,x){x=x===void 0?0:x;
r4b(a.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+b,"slot:",g,"layout:",k,"ping:",m,"Opportunity:",{opportunityType:c,associatedSlotId:d,slotsFromOpportunity:e,triggerBundle:n,adSlotLoggingData:r,adLayoutLoggingData:t});try{var A=function(){a.experimentApiProvider.get();if(b!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){b||_.rv("Empty PACF event type",g,k);var C=a.eventLoggingSettingsProvider.get();var F;(F=C.alwaysIncludeDebugData)||(C.experimentApiProvider.get(),F=
!1);C=F;F={eventType:b,eventOrder:++a.eventCount};var J={};g&&(J.slotData=E0a(C,g));if(k){var I={type:k.layoutType,controlFlowManagerLayer:C0a.get(k.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};C&&(I.debugData={layoutId:k.layoutId});J.layoutData=I}m&&(J.pingData={pingDispatchStatus:m.dispatchStatus,serializedAdPingMetadata:m.ping.serializedAdPingMetadata,pingIndex:m.index});n&&(J.triggerData=D0a(n.trigger,n.category));c&&(J.opportunityData=F0a(C,c,d,e));F.adClientData=J;r&&(F.serializedSlotAdServingData=
r.serializedSlotAdServingDataEntry);t&&(F.serializedAdServingData=t.serializedAdServingDataEntry);u&&(F.errorInfo=u);_.xl("adsClientStateChange",{adsClientEvent:F})}};
x&&x>0?_.sl(_.Qw(),function(){return A()},x):A()}catch(C){r4b(a.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.sl(_.Qw(),function(){_.rv(C instanceof Error?C:String(C),g,k,{pacf_message:"exception during pacf logging"})})}};var s4b=function(a,b){q4b.call(this,a,b)};
_.z(s4b,q4b);var t4b=function(){},r4b=function(a,b){return _.w(b)};var v4b=function(){var a=new u4b;this.JSC$13430_adsControlFlowManager=(new p4b(a)).JSC$13411_adsControlFlowManager},u4b=function(){_.vg.call(this);
var a=this;this.experimentApiProvider=new d4b(function(){return new t4b});
var b=new d4b(function(){return new e4b(a.experimentApiProvider)});
this.adEventLogger=new s4b(this.experimentApiProvider,b);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.z(u4b,_.vg);var w4b=function(){},x4b,yN=function(){x4b||(x4b=new w4b);
return x4b},zN=function(a){if(!a.JSC$13441_externallyManagedSlotAdapterCallback){var b=(new v4b).JSC$13430_adsControlFlowManager;
a.JSC$13441_externallyManagedSlotAdapterCallback=b}return a.JSC$13441_externallyManagedSlotAdapterCallback},y4b=function(a,b,c){var d=b.opportunityType,e=Error("Mh");
if(d!==void 0){var g=zN(a);f4b(g,d,void 0,c)}else _.rv(e,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});g=[];if(b.adSlotAndLayoutMetadata!==void 0){b=_.h(b.adSlotAndLayoutMetadata);for(var k=b.next();!k.done;k=b.next()){var m=k.value;if(k=m.adSlotMetadata)if(g.push(k),a.onSlotReceivedExternallyManaged(k,c),m.adLayoutMetadata){m=_.h(m.adLayoutMetadata);for(var n=m.next();!n.done;n=m.next())a.onLayoutReceivedExternallyManaged(k,n.value,c)}else c>0&&_.rv("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
d,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else c>0&&_.rv("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+d,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else c>0&&_.rv("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+d,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(d!==void 0)a.onOpportunityProcessedExternallyManaged(d,g,void 0,c);else _.rv(e,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
w4b.prototype.onSlotReceivedExternallyManaged=function(a,b){a=zv(a);if(a instanceof yv)_.rv(a,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else zN(this).onSlotReceivedExternallyManaged(a,b)};
w4b.prototype.onLayoutReceivedExternallyManaged=function(a,b,c){a=zv(a);b=I0a(b);if(a instanceof yv)_.rv(a,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(b instanceof Av)_.rv(b,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else zN(this).onLayoutReceivedExternallyManaged(a,b,c)};
w4b.prototype.onOpportunityProcessedExternallyManaged=function(a,b,c,d){var e=[];b=_.h(b);for(var g=b.next();!g.done;g=b.next())g=zv(g.value),g instanceof yv?_.rv(g,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):e.push(g);zN(this).onOpportunityProcessedExternallyManaged(a,e,c,d)};
var z4b=function(a,b){b=zv(b);if(b instanceof yv)_.rv(b,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var c=zN(a);rN(c.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);c=_.h(c.adsControlFlowEventListeners);for(var d=c.next();!d.done;d=c.next())d=sN(d.value,b),d.slotLifecycleStage!=="not_scheduled"&&vN(d.slot,d.slotLifecycleStage,"onSlotScheduled"),d.slotLifecycleStage="scheduled";a=zN(a);rN(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=_.h(a.adsControlFlowEventListeners);
for(c=a.next();!c.done;c=a.next())c.value.onSlotEntered(b)}},A4b=function(a,b){b=zv(b);
if(b instanceof yv)_.rv(b,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var c=zN(a);rN(c.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);c=_.h(c.adsControlFlowEventListeners);for(var d=c.next();!d.done;d=c.next())d.value.onSlotExited(b);a=zN(a);rN(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=_.h(a.adsControlFlowEventListeners);for(c=a.next();!c.done;c=a.next())c.value.onSlotUnscheduled(b)}},B4b=function(a,b,c){b=zv(b);
c=I0a(c);if(b instanceof yv)_.rv(b,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(c instanceof Av)_.rv(c,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var d=zN(a);uN(d.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);d=_.h(d.adsControlFlowEventListeners);for(var e=d.next();!e.done;e=d.next())e.value.onLayoutScheduled(b,c);a=zN(a);uN(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=_.h(a.adsControlFlowEventListeners);
for(d=a.next();!d.done;d=a.next())i4b(d.value,b,c)}},AN=function(a,b,c){b=zv(b);
c=I0a(c);if(b instanceof yv)_.rv(b,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(c instanceof Av)_.rv(c,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var d=zN(a);uN(d.adEventLogger,B0a("normal"),b,c);d=_.h(d.adsControlFlowEventListeners);for(var e=d.next();!e.done;e=d.next())e.value.onLayoutExited(b,c,"normal");a=zN(a);a=_.h(a.adsControlFlowEventListeners);for(d=a.next();!d.done;d=a.next())l4b(d.value,b,c)}};_.BN=_.Rr(function(a){var b=_.Or(a,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});a=Object.assign({},b);var c=b.data;b=b.customCommandResolver;var d=(delete a.data,delete a.customCommandResolver,a),e=_.Pl();_.gv(e,function(){return c().interaction},b,function(){var m;
return(m=d.listenToTapEvent)==null?void 0:m.call(d)});
_.Yl(e,{visibilityCallback:function(m){var n,r=(n=c().interaction)==null?void 0:n.onFirstVisible;m&&(r&&_.Gs(r),d.setOnErrorHandler()&&J0a(e))},
showOption:_.sL});a=_.h(_.ih(!1,void 0,"eiYvIe"));var g=a.next().value,k=a.next().value;a=_.lt(function(){var m;((m=d.setTouchEndHandler)==null?0:m.call(d))&&!g()&&(e.value.click(),k(!0),setTimeout(function(){k(!1)},100));
return!1});
return _.q("ad-image-view-model",{class:function(){var m,n=[((m=c().interaction)==null?0:m.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],r;((r=d.isGridViewEnabled)==null?0:r.call(d))&&n.push("ytwAdImageViewModelHostInGridView");return n.join(" ")},
el:e,"on:touchend":a},_.q("div",{class:"ytwAdImageViewModelHostImageContainer"},_.q(_.Ps,{data:function(){var m;return{sources:c().imageSources,contentMode:(m=c().imageProperties)==null?void 0:m.contentMode}},
alt:function(){var m,n;return((m=c().interaction)==null?void 0:(n=m.accessibility)==null?void 0:n.label)||""},
targetHeight:d.targetHeight,targetWidth:d.targetWidth,preserveHeight:d.preserveHeight,preserveWidth:d.preserveWidth,useWidth:d.useWidth,style:function(){var m,n;return"vertical-align: bottom;"+(((m=c().background)==null?0:m.color)?"background-color:"+_.Cq((n=c().background)==null?void 0:n.color)+";":"")},
className:function(){return d.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var m,n;return(n=(m=d.setDraggable)==null?void 0:m.call(d))!=null?n:void 0}})))},"Va");var C4b=_.Rr(function(a){var b=a.data,c=a.listenToTapEvent,d=_.Pl();_.w("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.gv(d,function(){return b().interaction},void 0,function(){return c==null?void 0:c()});
_.Yl(d,{visibilityCallback:function(g){var k,m=(k=b().interaction)==null?void 0:k.onFirstVisible;g&&m&&_.Gs(m)},
showOption:_.sL});a=_.lt(function(){if(_.w("enable_web_home_top_landscape_image_layout_legacy_click_command")){var g,k=(g=b().interaction)==null?void 0:g.onTap;k&&_.io(d.value,"yt-navigate",{endpoint:_.Ds(k)})}});
var e=function(){};
return _.q("ad-button-hover-overlay-view-model",{"on:click":a,class:function(){var g;return((g=b().interaction)==null?0:g.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:d},function(){return _.w("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.q(_.Hu,{data:function(){return b().button}},{adButtonViewModel:function(g){return _.q(_.uL,{data:g.data,
customCommandResolver:e})}}):_.q(_.Hu,{data:function(){return b().button}},{adButtonViewModel:_.uL})}())},"Wa");var Bv;_.Ts(_.Rr(function(a){var b=a.data;var c=_.Pl();_.w("stop_av_measurement_on_detach")&&_.zh(function(){Dv(c)});
_.gv(c,function(){return b().interaction},void 0,function(){return!0});
_.Yl(c,{visibilityCallback:function(g){if(g){var k;(g=(k=b().interaction)==null?void 0:k.onFirstVisible)&&_.Gs(g);var m;if(k=(m=b().adLayoutData)==null?void 0:m.activeViewData)Cv(c,k),_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Dv(c)})}else _.w("stop_av_measurement_on_detach")&&Dv(c)},
showOption:_.sL,hideOption:tL});a=_.h(_.ih(!1,void 0,"yzu6qe"));var d=a.next().value,e=a.next().value;_.Rl(c,"mouseenter",function(){e(!0)});
_.Rl(c,"mouseleave",function(){e(!1)});
return _.q("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:c},_.q("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.ot({"max-width":function(){return _.w("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.q("div",{class:function(){var g;
a:{var k;switch((g=_.y(b().thumbnailImage,FE))==null?void 0:(k=g.imageProperties)==null?void 0:k.renderingAspect){case "RENDERING_ASPECT_SQUARE":g="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":g="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}g=void 0}return g}},_.q(_.Hu,{data:function(){return b().thumbnailImage}},{adImageViewModel:function(g){return _.q(_.BN,
{data:g.data,
listenToTapEvent:!0,setTouchEndHandler:_.w("enable_top_landscape_image_experiment_dom_id_web")})}})),_.q("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.q(_.qi,{cond:function(){var g,k,m;
return(g=_.y(b().thumbnailImage,FE))==null?void 0:(k=g.imageProperties)==null?void 0:(m=k.overlayIcon)==null?void 0:m.iconImage},
then:function(g){return _.q(_.Ps,{data:g,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.q("div",{class:function(){return d()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.q(_.Hu,{data:function(){return b().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(g){return _.q(C4b,
{data:g.data,
listenToTapEvent:!0})}}))),_.q("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.q(_.Hu,{data:function(){return b().feedAdMetadata}},{feedAdMetadataViewModel:function(g){return _.q(J0b,{data:g.data,
listenToTapEvent:!0,setTouchEndHandler:_.w("enable_top_landscape_image_experiment_dom_id_web")})}})))},"Xa"),"compact-landscape-no-button-layout-view-model",{props:{data:_.VG}});_.Ts(_.Rr(function(a){var b=a.data;var c=_.Pl();_.w("stop_av_measurement_on_detach")&&_.zh(function(){Dv(c)});
var d=_.Ht(_.Su);_.gv(c,function(){return b().interaction});
_.Yl(c,{visibilityCallback:function(r){if(r){var t;(r=(t=b().interaction)==null?void 0:t.onFirstVisible)&&_.Gs(r);var u;if(t=(u=b().adLayoutData)==null?void 0:u.activeViewData)Cv(c,t),_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Dv(c)})}else _.w("stop_av_measurement_on_detach")&&Dv(c)},
showOption:_.sL,hideOption:tL});var e=_.lt(function(r){var t,u,x=(t=_.y(b().adImage,FE))==null?void 0:(u=t.interaction)==null?void 0:u.onTap;x&&(_.w("enable_square_image_components_ui_web_with_custom_event")?_.io(c.value,"yt-navigate",{endpoint:_.Ds(x)}):CZa(r,x))}),g=_.lt(function(){var r,t,u=(r=_.y(b().adButton,gzb))==null?void 0:(t=r.interaction)==null?void 0:t.onTap;
u&&_.io(c.value,"yt-navigate",{endpoint:_.Ds(u)})}),k=function(){};
a={};var m={},n={};return _.q("square-image-layout-view-model",{class:_.et("ytwSquareImageLayoutViewModelHost",(a.ytwSquareImageLayoutViewModelHostColumn=d,a)),el:c},_.q("div",{class:_.et("ytwSquareImageLayoutViewModelHostImage",(m.ytwSquareImageLayoutViewModelHostColumnImage=d,m))},function(){return _.w("enable_square_image_components_ui_web_with_native_img")?_.q("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var r,t,u;return((r=_.y(b().adImage,FE))==null?void 0:(t=r.imageSources)==
null?void 0:(u=t[0])==null?void 0:u.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:!1,"on:click":e}):_.q(_.Hu,{data:function(){return b().adImage}},{adImageViewModel:function(r){return _.q(_.BN,{data:r.data,
isGridViewEnabled:d,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.q("div",{class:_.et("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(n.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=d,n))},_.q(_.Hu,{data:function(){return b().feedAdMetadata}},{feedAdMetadataViewModel:J0b}),function(){return _.w("enable_square_image_components_ui_web_with_float_button")?_.q("div",{"on:click":g},_.q(_.Hu,{data:function(){return b().adButton}},
{adButtonViewModel:function(r){var t={};
return _.q(_.uL,{data:r.data,customCommandResolver:k,className:_.et((t.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,t.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=d,t))})}})):_.q(_.Hu,{data:function(){return b().adButton}},{adButtonViewModel:function(r){var t={};
return _.q(_.uL,{data:r.data,className:_.et((t.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,t.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=d,t))})}})}()))},"Ya"),"square-image-layout-view-model",{props:{data:_.VG}});_.Ts(_.Rr(function(a){var b=a.data;var c=a.noBottomMargin;var d=_.Pl();_.w("stop_av_measurement_on_detach")&&_.zh(function(){Dv(d)});
_.w("enable_web_home_top_landscape_image_layout_level_click")&&_.gv(d,function(){return b().interaction},void 0,function(){return!0});
a=function(){return b().interaction};
a!==void 0&&a!==null||_.Ki(Error("Nh"));_.Yl(d,{visibilityCallback:function(n){if(n){var r;(n=(r=b().interaction)==null?void 0:r.onFirstVisible)&&_.Gs(n);var t;if(r=(t=b().adLayoutData)==null?void 0:t.activeViewData)Cv(d,r),_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Dv(d)})}else _.w("stop_av_measurement_on_detach")&&Dv(d)},
showOption:_.sL,hideOption:tL});var e=function(){var n,r,t;return(n=_.y(b().thumbnailImage,FE))==null?void 0:(r=n.background)==null?void 0:(t=r.backgroundImageSource)==null?void 0:t.imageSources};
a=_.h(_.ih(!1,void 0,"rWKgsf"));var g=a.next().value,k=a.next().value;_.Rl(d,"mouseenter",function(){k(!0)});
_.Rl(d,"mouseleave",function(){k(!1)});
var m=function(){return g()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.q("top-landscape-image-layout-view-model",{class:function(){var n;return((n=b().interaction)==null?0:n.onTap)&&_.w("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:d},_.q("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.q(_.qi,{cond:function(){return e()&&e().length>0},
then:function(){return _.q("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.ot({top:"0","background-image":function(){return"url("+String(e()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.q(_.qi,{cond:function(){return!!b().adButtonHoverOverlay},
then:function(){return _.q("div",{class:m},_.q(_.Hu,{data:function(){return b().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:C4b}))}}),_.q("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.q(_.Hu,{data:function(){return b().thumbnailImage}},{adImageViewModel:function(n){return _.q(_.BN,{data:n.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.w("enable_web_home_top_landscape_image_layout_level_click")})}})),_.q("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.q(_.Ps,{data:{sources:[{clientResource:{imageName:"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.q("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.q(_.Hu,{data:function(){return b().feedAdMetadata}},{feedAdMetadataViewModel:function(n){return _.q(J0b,{data:n.data,
noBottomMargin:function(){return c==null?void 0:c()},
listenToTapEvent:function(){return _.w("enable_web_home_top_landscape_image_layout_level_click")}})}})))},"Za"),"top-landscape-image-layout-view-model",{props:{data:_.VG,
noBottomMargin:_.VG}});_.Ts(_.Rr(function(a){var b=a.data;var c=_.Pl();_.w("stop_av_measurement_on_detach")&&_.zh(function(){Dv(c)});
_.Yl(c,{visibilityCallback:function(d){if(d){var e;(d=(e=b().interaction)==null?void 0:e.onFirstVisible)&&_.Gs(d);var g;if(e=(g=b().adLayoutData)==null?void 0:g.activeViewData)Cv(c,e),_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Dv(c)})}else _.w("stop_av_measurement_on_detach")&&Dv(c)},
showOption:_.sL,hideOption:tL});return _.q("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:c},_.q("div",null,_.q(_.Hu,{data:function(){return b().videoLockup}},{lockupViewModel:function(d){return _.q(zL,{data:d.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999})}})))},"$a"),"video-display-button-group-layout-view-model",{props:{data:_.VG,
noBottomMargin:_.VG}});_.Ts(_.Rr(function(a){var b=a.data;var c=_.Pl();_.w("stop_av_measurement_on_detach")&&_.zh(function(){Dv(c)});
_.Yl(c,{visibilityCallback:function(d){if(d){var e;(d=(e=b().interaction)==null?void 0:e.onFirstVisible)&&_.Gs(d);var g;if(e=(g=b().adLayoutData)==null?void 0:g.activeViewData)Cv(c,e),_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Dv(c)})}else _.w("stop_av_measurement_on_detach")&&Dv(c)},
showOption:_.sL,hideOption:tL});return _.q("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:c},_.q("div",null,_.q(_.Hu,{data:function(){return b().videoLockup}},{lockupViewModel:function(d){return _.q(zL,{data:d.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999})}})))},"ab"),"video-display-full-layout-view-model",{props:{data:_.VG,
noBottomMargin:_.VG}});_.D4b=_.Rr(function(a){var b=a.data;a=_.Pl();return _.q("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:a},_.q(_.qi,{cond:function(){return b().imageBadge},
then:function(c){return _.q(_.Ps,{data:c,alt:""})}}))},"bb");var E4b=_.Rr(function(a){var b=a.data;var c=a.customCommandResolver;a=_.Pl();_.gv(a,function(){return b().interaction},c);
_.Yl(a,{visibilityCallback:function(d){var e,g=(e=b().interaction)==null?void 0:e.onFirstVisible;d&&g&&_.Gs(g)},
showOption:_.sL});return _.q("carousel-ad-card-image-view-model",{class:function(){var d;return((d=b().interaction)==null?0:d.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:a,"aria-label":function(){var d,e;return(d=b().interaction)==null?void 0:(e=d.accessibility)==null?void 0:e.label}},_.q(_.Hu,{data:function(){return b().adImage}},{adImageViewModel:function(d){return _.q(_.BN,{data:d.data,
customCommandResolver:c})}}),_.q("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.q(_.Hu,{data:function(){return b().badge}},{adCardBadgeViewModel:_.D4b})),_.q(_.ut,{model:{color:4}}))},"cb");var F4b=_.Rr(function(a){var b=_.h(_.ih(0,void 0,"RmZkje")),c=b.next().value,d=b.next().value,e=_.h(_.ih(!1,void 0,"uS7ese"));b=e.next().value;var g=e.next().value,k;_.zh(function(){clearTimeout(k)});
e=_.lt(function(){var r;((r=a.animate)==null?0:r.call(a))?(g(!0),k=setTimeout(function(){g(!1);m()},200)):m();
return!1});
var m=function(){d(Vka(function(r){return(r+a.numShownItems())%a.data().length}))},n={};
return _.q("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.q("div",{class:_.et("ytwHorizontalCarouselCarouselWrapper")},_.q("div",{class:_.et("ytwHorizontalCarouselCarouselInnerWrapper",(n.ytwHorizontalCarouselAnimating=b,n))},_.q(_.ri,{each:a.data,keyBy:"INDEX"},function(r,t){return _.q("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.ot({"flex-basis":function(){return"calc((100% - (8px * "+(a.numShownItems()-1)+")) / "+a.numShownItems()+")"},
order:function(){var u=t-c();u<0&&(u+=a.data().length);return u}})},a.children(r,t))}))),_.q("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":e},a.nextButton()))},"db");var G4b=_.Rr(function(a){var b=a.data;var c=a.customCommandResolver;a=_.Pl();_.Yl(a,{visibilityCallback:function(d){var e,g=(e=b().interaction)==null?void 0:e.onFirstVisible;d&&g&&_.Gs(g)},
showOption:_.sL});return _.q("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:a},_.q(F4b,{data:function(){var d;return((d=b())==null?void 0:d.carouselAdCards)||[]},
nextButton:function(){return _.q(_.Hu,{data:function(){return b().nextButton}},{buttonViewModel:function(d){return _.q(_.Qu,{data:d.data,
className:_.w("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(d){return _.q(_.Hu,{data:d},{carouselAdCardImageViewModel:function(e){return _.q(E4b,{data:e.data,customCommandResolver:c})}})}))},"eb");var H4b=_.Rr(function(a){var b=a.data;var c=a.customCommandResolver;var d=a.className;var e=a.buttonClassName;var g=a.animationEntityKey;return _.q("carousel-button-view-model",{class:_.et("ytwCarouselButtonViewModelHost",d)},_.q(_.Hu,{data:function(){return b().carousel}},{carouselAdCardCollectionViewModel:function(k){return _.q(G4b,{data:k.data,
customCommandResolver:c})}}),_.q(_.Hu,{data:function(){return b().button}},{adButtonViewModel:function(k){return _.q(_.uL,{data:k.data,
className:e,customCommandResolver:c,animationEntityKey:g})}}))},"fb");_.I4b=_.Rr(function(a){var b=a.data;a=a.className;var c=_.Pl();_.wi(function(){var d;((d=b())==null?0:d.backgroundColor)&&c.value.setAttribute("data-background-color",String(b().backgroundColor))});
return _.q("pivot-button-view-model",{el:c,class:_.et("ytwPivotButtonViewModelHost",a)},_.q(_.rt,{command:function(){var d=b();d=d.onClickCommand?_.Ds(d.onClickCommand):d.contentDescription?_.bq(d.contentDescription):void 0;return d},
ariaLabel:function(){return b().contentDescription}},_.q(_.qi,{cond:function(){return b().thumbnail},
then:function(d){return _.q(_.Ps,{data:d,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.q(_.qi,{cond:function(){return b().icon},
then:function(d){return _.q(_.qt,{icon:function(){return d().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"gb");_.J4b=_.Rr(function(a){var b=a.data;var c=a.buttonShapeOverrideables;return _.q("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.q(_.Hu,{data:function(){return b().buttonViewModels}},{buttonViewModel:function(d){return _.q(_.Qu,{data:d.data,
buttonOverrides:c})},
likeButtonViewModel:function(d){return _.q(_.RXb,{data:d.data,buttonShapeOverrideables:c})},
dislikeButtonViewModel:function(d){return _.q(_.QXb,{data:d.data,buttonShapeOverrideables:c})}}))},"hb");var K4b=_.Rr(function(a){var b=a.avatar;var c=a.headline;var d=a.badge;a=a.description;return _.q("yt-ad-metadata-shape",{class:"ytAdMetadataShapeHost"},_.q("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.q(_.qi,{cond:b,then:function(e){return _.q(_.F0b,{data:e})}}),_.q("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.q(_.tt,{text:c,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.q(_.qi,{cond:d,then:function(e){return _.q(_.xL,{data:e,adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.q("h2",{class:"ytAdMetadataShapeHostDescription"},_.q(_.tt,{text:a,
linkInheritColor:!0})))},"ib");var L4b=_.Rr(function(a){var b=a.data;var c=a.onShow;a=_.Pl();_.gv(a,function(){return b().interaction});
_.wi(function(){var d,e=(d=b().animatedRenderingConfig)==null?void 0:d.delayedSecondsToVisible;if(e){var g=setTimeout(c,e*1E3);_.zh(function(){clearTimeout(g)})}});
return _.q("reels-ad-card-buttoned-view-model",{class:function(){var d;return((d=b().interaction)==null?0:d.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},
el:a},_.q(K4b,{avatar:function(){return _.y(b().avatar,ezb)},
headline:function(){return b().headline},
badge:function(){return _.y(b().adBadge,fzb)},
description:function(){return b().description}}),_.q(_.Hu,{data:function(){return b().ctaButton}},{adButtonViewModel:_.uL}))},"jb");var M4b=_.Rr(function(a){var b=a.data;a=_.Pl();_.w("web_ad_metadata_clickable")&&_.gv(a,function(){return b().interaction});
var c={};c=_.ht("ytwReelsAdMetadataViewModelHost",(c.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.w("web_ad_metadata_clickable"),c));return _.q("reels-ad-metadata-view-model",{class:c,el:a},_.q(K4b,{avatar:function(){return _.y(b().avatar,ezb)},
headline:function(){return b().headline},
badge:function(){return _.y(b().adBadge,fzb)},
description:function(){return b().description}}))},"kb");var N4b={iconPosition:"icon-with-label",size:"L"},O4b=_.Rr(function(a){var b=a.data;a=a.overlayDensity;var c=_.Pl(),d=_.Nr(a,0);_.wh(function(){c.value.setAttribute("overlay-density",String(d()))},"zAQT5c");
var e=function(){var u;return(u=b().reelsAdCardButtonedEntityKey)!=null?u:""},g=function(){return e()+"/ad_button"},k=_.tu(rSa,e),m=function(){var u,x;
return(x=(u=k())==null?void 0:u.value)!=null?x:!1},n=_.Ht(P0a),r=function(){return Object.assign({},N4b,(n()||d()===2)&&{style:"overlay-dark"})};
a={};var t={};return _.q("reels-player-overlay-layout-view-model",{class:_.et("ytwReelsPlayerOverlayLayoutViewModelHost",(a.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!b().extension},a.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},a)),
el:c},_.q("div",{class:_.et("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(t.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},t))},_.q("div",{"aria-hidden":function(){return m()},
class:_.et("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return m()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.ot({"transition-duration":function(){return S0a(b())}})},_.q(_.Hu,{data:function(){return b().adMetadata}},{reelsAdMetadataViewModel:M4b}),_.q(_.qi,{cond:function(){return b().extension},
then:function(u){return _.q("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.q(_.Hu,{data:u},{adButtonViewModel:function(x){return _.q(_.uL,{data:x.data,animationEntityKey:g,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(x){return _.q(H4b,{data:x.data,animationEntityKey:g,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})}}))}})),_.q("div",{"aria-hidden":function(){return!m()},
class:_.et("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return m()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.ot({"transition-duration":function(){return S0a(b())}})},_.q(_.Hu,{data:function(){return b().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(u){return _.q(L4b,{data:u.data,
onShow:function(){_.Mr(_.wu("booleanEntity",e(),{key:e(),value:!0}))}})}}))),_.q("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.q(_.Hu,{data:function(){return b().actions}},{reelActionBarViewModel:function(u){return _.q(_.J4b,{data:u.data,
buttonShapeOverrideables:r})}}),_.q(_.Hu,{data:function(){return b().menu}},{buttonViewModel:function(u){return _.q(_.Qu,{data:u.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},r(),{type:"tonal"})}})}}),_.q(_.Hu,{data:function(){return b().pivotButton}},{pivotButtonViewModel:function(u){return _.q(_.I4b,{data:u.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"lb");_.Ts(O4b,"reels-player-overlay-layout-view-model",{props:{data:_.VG,overlayDensity:_.VG}});var P4b=function(){var a=_.P.apply(this,arguments)||this;a.noBottomMargin=!1;a.overlayDensity=0;return a};
_.z(P4b,_.P);_.f=P4b.prototype;
_.f.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.w("enable_short_dr_for_desktop_launchable")?
{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]"}}}}}};
_.f.ready=function(){var a=this;RUa(function(){a.isAttached&&wv(a.JSC$13479_storedAdSlotMetadata,a.JSC$13479_storedAdLayoutMetadata,a.adSlotMetadata,a.adLayoutMetadata)&&AN(yN(),a.JSC$13479_storedAdSlotMetadata,a.JSC$13479_storedAdLayoutMetadata)})};
_.f.attached=function(){wv(this.JSC$13479_storedAdSlotMetadata,this.JSC$13479_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&B4b(yN(),this.JSC$13479_storedAdSlotMetadata,this.JSC$13479_storedAdLayoutMetadata)};
_.f.detached=function(){wv(this.JSC$13479_storedAdSlotMetadata,this.JSC$13479_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&AN(yN(),this.JSC$13479_storedAdSlotMetadata,this.JSC$13479_storedAdLayoutMetadata)};
_.f.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13479_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13479_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13479_storedAdLayoutMetadata!==void 0&&this.JSC$13479_storedAdSlotMetadata!==void 0&&AN(yN(),this.JSC$13479_storedAdSlotMetadata,this.JSC$13479_storedAdLayoutMetadata),B4b(yN(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13479_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13479_storedAdSlotMetadata=this.adSlotMetadata)};
_.Um.Object.defineProperties(P4b.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.adLayoutMetadata}}});
var CN=P4b;CN.prototype.onAdMetadataChanged=CN.prototype.onAdMetadataChanged;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],CN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],CN.prototype,"rendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],CN.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],CN.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],CN.prototype,"noBottomMargin",void 0);_.U([_.O(),_.W("design:type",Object)],CN.prototype,"overlayDensity",void 0);_.U([_.K("data.adLayoutMetadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],CN.prototype,"adLayoutMetadata",null);_.U([_.O(),_.W("design:type",Object)],CN.prototype,"adSlotMetadata",void 0);
_.U([_.N("adLayoutMetadata","adSlotMetadata"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],CN.prototype,"onAdMetadataChanged",null);CN=_.U([_.Q({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],CN);
_.S(CN,"ytd-in-feed-ad-layout-renderer",function(){if(r3b!==void 0)return r3b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-in-feed-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-in-feed-ad-layout-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return r3b=a},
{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var Q4b;var R4b;var S4b=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return a};
_.z(S4b,_.P);_.f=S4b.prototype;_.f.computeHasLiveDescription=function(a){return!(a==null||!a.liveDescription)};
_.f.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.f.onYtToggleButton=function(a){var b,c=(b=this.data)==null?void 0:b.videoReminderEntityKey;c&&this.ytdReduxBehavior.dispatch(_.wu("upcomingEventReminderStateEntity",c,{key:c,state:a.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.f.attached=function(){this.updateChannelBanner()};
_.f.dataChanged=function(){this.updateChannelBanner()};
_.f.videoReminderStateChanged=function(){var a;this.videoReminderState&&_.y((a=this.data)==null?void 0:a.cta,_.SE)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.f.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var a=_.Us(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);a&&(a.startsWith("//")&&(a="https:"+a),this.hostElement.classList.add("channel-banner"),_.fr(this.hostElement,{"--ytvmh-channel-banner":"url("+a+")"}))}else _.w("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.f.onPlayerReady=function(){this.onIronResize()};
_.f.maybeFlushDebouncer=function(){_.w("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(a){var b;a=(b=a.getElementsByTagName("yt-attributed-string"))==null?void 0:b[0];mNa(a==null?void 0:a.polymerController)})};
_.f.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var a=_.E(this.hostElement).querySelector("#live-description"),b;a&&((b=this.data)==null?0:b.shortLiveDescription)&&a.clientWidth<a.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
var DN=S4b;DN.prototype.onIronResize=DN.prototype.onIronResize;DN.prototype.videoReminderStateChanged=DN.prototype.videoReminderStateChanged;DN.prototype.dataChanged=DN.prototype.dataChanged;DN.prototype.onYtToggleButton=DN.prototype.onYtToggleButton;_.U([_.H(_.OD),_.W("design:type",Object)],DN.prototype,"ironResizableBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],DN.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],DN.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],DN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],DN.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],DN.prototype,"data",void 0);_.U([_.O({selectorArgs:["data.videoReminderEntityKey"],selector:nVa}),_.W("design:type",Object)],DN.prototype,"videoReminderState",void 0);
_.U([_.O({reflectToAttribute:!0,value:_.w("web_modern_buttons")}),_.W("design:type",Boolean)],DN.prototype,"rounded",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.W("design:type",Boolean)],DN.prototype,"hasLiveDescription",void 0);_.U([_.O({reflectToAttribute:!0,value:_.w("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.W("design:type",Boolean)],DN.prototype,"resizableAdBannerSafariFix",void 0);
_.U([_.O({reflectToAttribute:!0,value:_.w("align_three_dot_menu_with_title_description")}),_.W("design:type",Boolean)],DN.prototype,"menuFix",void 0);_.U([_.jr("yt-formatted-string"),_.W("design:type",Array)],DN.prototype,"formattedStrings",void 0);_.U([_.ir("#cta-button"),_.W("design:type",HTMLElement)],DN.prototype,"ctaButton",void 0);_.U([_.M("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],DN.prototype,"onYtToggleButton",null);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DN.prototype,"dataChanged",null);_.U([_.N("videoReminderState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DN.prototype,"videoReminderStateChanged",null);_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DN.prototype,"onIronResize",null);
DN=_.U([_.Q({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],DN);
_.S(DN,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(R4b!==void 0)return R4b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return R4b=a},{mode:1});var T4b;var U4b=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};a.isLocked=!1;return a};
_.z(U4b,_.P);_.f=U4b.prototype;_.f.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.f.onExpandedChanged=function(){this.expanded&&_.mo(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.f.onMouseOver=function(){this.maybeExpand()};
_.f.onTap=function(){this.maybeExpand()};
_.f.onExpandableTileExpanding=function(a){a!==this&&(this.expanded=!1)};
_.f.onExpandableTileLockAndCollapse=function(a){this.isLocked=!0;a!==this&&(this.expanded=!1)};
_.f.onExpandableTileUnlock=function(){this.isLocked=!1};
var EN=U4b;EN.prototype.onTap=EN.prototype.onTap;EN.prototype.onMouseOver=EN.prototype.onMouseOver;EN.prototype.onExpandedChanged=EN.prototype.onExpandedChanged;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],EN.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],EN.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],EN.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],EN.prototype,"expanded",void 0);_.U([_.mr("expanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EN.prototype,"onExpandedChanged",null);_.U([_.M("mouseover"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EN.prototype,"onMouseOver",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EN.prototype,"onTap",null);
EN=_.U([_.Q({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],EN);
_.S(EN,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(T4b!==void 0)return T4b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-thumbnail-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" data="[[data.navigationEndpoint]]" aria-hidden="true" tabindex="-1" id="endpoint">\n <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n   <div id="play-button" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n     \n     <svg width="100%" height="100%" viewBox="0 0 68 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n       <path id="play-button-bg" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,0.13,34,0,34,0S12.21,0.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" class="ytp-large-play-button-bg style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" fill="#212121" fill-opacity="0.8"></path>\n       <path d="M 45,24 27,14 27,34" fill="#FFFFFF" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer"></path>\n     </svg>\n   </div>\n </div>\n <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="424" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n </yt-img-shadow>\n    </a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return T4b=a},{mode:1});var V4b;var FN,W4b=function(){var a=_.P.apply(this,arguments)||this;a.buttonOverrides={style:"overlay"};a.useYtdPlayer=_.w("use_ytd_player_for_desktop_masthead");a.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};a.playbackFinished=!1;a.JSC$13491_playerManager=null;a.JSC$13491_mastheadCounter=new nhb;return a};
_.z(W4b,_.P);_.f=W4b.prototype;_.f.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.f.created=function(){this.JSC$13491_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13491_playerManager=new yG)};
_.f.ready=function(){var a=this;this.JSC$13491_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var b=_.E(this.hostElement).querySelector("#player");this.useYtdPlayer?b.style.display="none":(this.ytdPlayer.style.display="none",iMb(this.JSC$13491_playerManager,b,function(){a.onPlaybackEnded()}),_.E(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var c;
((c=a.data)==null?0:c.navigationEndpoint)&&_.io(a.hostElement,"yt-navigate",{endpoint:a.data.navigationEndpoint})}))};
_.f.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13491_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.f.attached=function(){var a=this;_.Er(function(){a.maybePlayVideo()})};
_.f.maybePlayVideo=function(){var a=this;!(this.expanded&&this.isAttached&&this.data&&this.data.videoId)||this.playbackFinished||this.useYtdPlayer&&this.data.disableAutoPlayback||(this.hostElement.classList.add("video-playing"),this.lockAndCollapseExpandableTiles(),this.useYtdPlayer?this.ytdPlayer.play():(this.JSC$13491_playerManager.playVideo(),this.getPlayerPromise().then(function(){a.JSC$13491_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.f.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13491_playerManager.stopVideo()};
_.f.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var a,b={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((a=this.data.playbackStartMs)!=null?a:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(b);this.setupYtdPlayer()}else kMb(this.JSC$13491_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(jMb(this.JSC$13491_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.f.getPlayerPromise=function(){return this.JSC$13491_playerManager.getPlayerPromise()};
_.f.onYtToggleButton=function(a){this.useYtdPlayer?this.toggleMute(a.detail.toggled):a.detail.toggled?this.JSC$13491_playerManager.mute():this.JSC$13491_playerManager.unMute()};
_.f.onYtNavigate=function(a){var b=pJa(a.detail.endpoint),c=qJa(this.data.clickthroughReportingData);b&&c&&(a.detail.endpoint.watchEndpoint?a.detail.tempData=c:_.ao(b,c,30))};
_.f.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.f.onExpandedChanged=function(){this.expanded?(_.mo(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.f.onMouseOver=function(){this.maybeExpand()};
_.f.onTap=function(){this.maybeExpand()};
_.f.onExpandableTileExpanding=function(a){a!==this&&(this.stopVideo(),this.expanded=!1)};
_.f.onExpandableTileLockAndCollapse=function(a){a!==this&&(this.isLocked=!0,this.expanded=!1)};
_.f.onExpandableTileUnlock=function(){this.isLocked=!1};
_.f.lockAndCollapseExpandableTiles=function(){_.lo(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.f.unlockExpandableTiles=function(){_.lo(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.f.setupYtdPlayer=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,a.ytdPlayer.getPlayerPromise(),2);b=c.yieldResult;b.addEventListener("onStateChange",function(d){a.onPlayerStateChange(d)});
b.addEventListener("onCueRangeExit",function(d){a.onCueRangeExit(d)});
_.ue(c)})};
_.f.onPlayerStateChange=function(a){if(a===1&&(a=this.ytdPlayer.getPlayer())){var b=a.getCurrentTime(),c,d,e=b+((d=(c=this.data)==null?void 0:c.playbackDurationMs)!=null?d:0)/1E3;a.addCueRange("playback",b,e);this.JSC$13491_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.f.onCueRangeExit=function(a){a==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.f.toggleMute=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,b.ytdPlayer.getPlayerPromise(),2);c=d.yieldResult;a?c.mute():c.unMute();_.ue(d)})};
var GN=FN=W4b;FN.prototype.onTap=FN.prototype.onTap;FN.prototype.onMouseOver=FN.prototype.onMouseOver;FN.prototype.onExpandedChanged=FN.prototype.onExpandedChanged;FN.prototype.onYtNavigate=FN.prototype.onYtNavigate;FN.prototype.onYtToggleButton=FN.prototype.onYtToggleButton;FN.prototype.dataChanged=FN.prototype.dataChanged;GN.JSC$13490_PLAYBACK_CUE_RANGE="playback";_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],GN.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],GN.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],GN.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],GN.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],GN.prototype,"expanded",void 0);_.U([_.O(),_.W("design:type",Object)],GN.prototype,"buttonOverrides",void 0);
_.U([_.O(),_.W("design:type",Object)],GN.prototype,"useYtdPlayer",void 0);_.U([_.ir("#ytd-player"),_.W("design:type",Object)],GN.prototype,"ytdPlayer",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GN.prototype,"dataChanged",null);_.U([_.M("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],GN.prototype,"onYtToggleButton",null);
_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],GN.prototype,"onYtNavigate",null);_.U([_.mr("expanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GN.prototype,"onExpandedChanged",null);_.U([_.M("mouseover"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GN.prototype,"onMouseOver",null);
_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GN.prototype,"onTap",null);GN=FN=_.U([_.Q({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],GN);
_.S(GN,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(V4b!==void 0)return V4b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-video-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n  <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <div id="mute-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="replay-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="player-container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-video-tile-renderer" data="[[data.navigationEndpoint]]"></a>\n    <div id="player" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    </ytd-player>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return V4b=a},{mode:1});var X4b;var HN=function(){return _.P.apply(this,arguments)||this};
_.z(HN,_.P);HN.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
HN.prototype.onShow=function(){var a=_.E(this.hostElement).querySelector("#live-description"),b;a&&((b=this.data)==null?0:b.shortLiveDescription)&&a.clientWidth<a.scrollWidth&&this.hostElement.classList.add("short-live-description")};
HN.prototype.onYtToggleButton=function(a){var b,c=(b=this.data)==null?void 0:b.videoReminderEntityKey;c&&this.ytdReduxBehavior.dispatch(_.wu("upcomingEventReminderStateEntity",c,{key:c,state:a.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
HN.prototype.videoReminderStateChanged=function(){var a;this.videoReminderState&&_.y((a=this.data)==null?void 0:a.cta,_.SE)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
var IN=HN;IN.prototype.videoReminderStateChanged=IN.prototype.videoReminderStateChanged;IN.prototype.onYtToggleButton=IN.prototype.onYtToggleButton;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],IN.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],IN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],IN.prototype,"ytdReduxBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],IN.prototype,"data",void 0);_.U([_.O({selectorArgs:["data.videoReminderEntityKey"],selector:nVa}),_.W("design:type",Object)],IN.prototype,"videoReminderState",void 0);_.U([_.M("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],IN.prototype,"onYtToggleButton",null);
_.U([_.N("videoReminderState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IN.prototype,"videoReminderStateChanged",null);IN=_.U([_.Q({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],IN);
_.S(IN,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(X4b!==void 0)return X4b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="advertiser-info" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  </yt-formatted-string>\n  <div id="byline-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" overlay-ad="true" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-badge-supported-renderer>\n    <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n      <div id="live-description-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="cta-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-toggle-button-renderer>\n  </div>\n</div>\n<div id="menu" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return X4b=a},{mode:_.as("kevlar_poly_si_batch_j065")?1:2});var Y4b;var JN,Z4b=function(){var a=_.P.apply(this,arguments)||this;a.useYtdPlayer=_.w("use_ytd_player_for_desktop_masthead");a.buttonOverrides={style:"overlay"};a.JSC$13499_playerManager=null;a.JSC$13499_mastheadCounter=new nhb;a.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return a};
_.z(Z4b,_.P);_.f=Z4b.prototype;_.f.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.f.created=function(){this.JSC$13499_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13499_playerManager=new yG)};
_.f.ready=function(){var a=this;this.JSC$13499_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var b;(b=this.embeddedPlayer)==null||b.remove()}else{var c;(c=this.ytdPlayer)==null||c.remove();iMb(this.JSC$13499_playerManager,this.embeddedPlayer,function(){a.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){a.data&&a.data.navigationEndpoint&&_.io(a.hostElement,"yt-navigate",{endpoint:a.data.navigationEndpoint})})}};
_.f.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13499_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.f.dataChanged=function(){var a=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var b=!this.data.disableAutoPlayback,c,d={autoplay:b,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((c=this.data.playbackStartMs)!=null?c:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(b?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(d);this.setupYtdPlayer()}else kMb(this.JSC$13499_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(jMb(this.JSC$13499_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13499_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.lo(a.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");a.JSC$13499_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.f.getPlayerPromise=function(){return this.JSC$13499_playerManager.getPlayerPromise()};
_.f.onYtToggleButton=function(a){this.useYtdPlayer?this.toggleMute(a.detail.toggled):a.detail.toggled?this.JSC$13499_playerManager.mute():this.JSC$13499_playerManager.unMute()};
_.f.onYtNavigate=function(a){var b=pJa(a.detail.endpoint),c=qJa(this.data.clickthroughReportingData);b&&c&&(a.detail.endpoint.watchEndpoint?a.detail.tempData=c:_.ao(b,c,30))};
_.f.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13499_playerManager.stopVideo()};
_.f.setupYtdPlayer=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,a.ytdPlayer.getPlayerPromise(),2);b=c.yieldResult;b.addEventListener("onStateChange",function(d){a.onPlayerStateChange(d)});
b.addEventListener("onCueRangeExit",function(d){a.onCueRangeExit(d)});
_.ue(c)})};
_.f.onPlayerStateChange=function(a){if(a===1&&(a=this.ytdPlayer.getPlayer())){var b=a.getCurrentTime(),c,d,e=b+((d=(c=this.data)==null?void 0:c.playbackDurationMs)!=null?d:0)/1E3;a.addCueRange("playback",b,e);_.lo(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13499_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.f.onCueRangeExit=function(a){a==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.f.toggleMute=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,b.ytdPlayer.getPlayerPromise(),2);c=d.yieldResult;a?c.mute():c.unMute();_.ue(d)})};
_.Um.Object.defineProperties(Z4b.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var a,b;if(!((a=this.data)==null?0:(b=a.accessibilityData)==null?0:b.label))return"Ad primary link";var c,d;return _.vo("AD_TITLE",{title:(c=this.data)==null?void 0:(d=c.accessibilityData)==null?void 0:d.label})}}});
var KN=JN=Z4b;JN.prototype.onYtMastheadHidden=JN.prototype.onYtMastheadHidden;JN.prototype.onYtNavigate=JN.prototype.onYtNavigate;JN.prototype.onYtToggleButton=JN.prototype.onYtToggleButton;JN.prototype.dataChanged=JN.prototype.dataChanged;KN.JSC$13498_PLAYBACK_CUE_RANGE="playback";_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],KN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],KN.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],KN.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],KN.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],KN.prototype,"useYtdPlayer",void 0);_.U([_.ir("ytd-toggle-button-renderer"),_.W("design:type",Object)],KN.prototype,"muteButton",void 0);_.U([_.O(),_.W("design:type",Object)],KN.prototype,"buttonOverrides",void 0);
_.U([_.K("data.accessibilityData.label"),_.W("design:type",String),_.W("design:paramtypes",[])],KN.prototype,"titleAriaLabel",null);_.U([_.ir("#replay-button"),_.W("design:type",Object)],KN.prototype,"replayButton",void 0);_.U([_.ir("#player-container"),_.W("design:type",Object)],KN.prototype,"playerContainer",void 0);_.U([_.ir("#player"),_.W("design:type",Object)],KN.prototype,"embeddedPlayer",void 0);_.U([_.ir("#ytd-player"),_.W("design:type",Object)],KN.prototype,"ytdPlayer",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],KN.prototype,"dataChanged",null);_.U([_.M("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],KN.prototype,"onYtToggleButton",null);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],KN.prototype,"onYtNavigate",null);
_.U([_.M("yt-masthead-hidden"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],KN.prototype,"onYtMastheadHidden",null);KN=JN=_.U([_.Q({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],KN);
_.S(KN,"ytd-video-masthead-ad-primary-video-renderer",function(){if(Y4b!==void 0)return Y4b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="overlay" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <div id="mute-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="replay-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<div id="player-container" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-primary-video-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"></a>\n  <div id="player" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  </ytd-player>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Y4b=a},{mode:2});var $4b;var a5b=function(){var a=_.P.apply(this,arguments)||this;a.collapsed=!1;a.impressionResolver=_.St();a.JSC$13503_activeViewMeasurementDataResolver=_.St();a.actionMap={"yt-mute-ad-action":"handleMuteAd"};return a};
_.z(a5b,_.P);_.f=a5b.prototype;_.f.configureRendererStamper=function(){return{"data.expandableTiles":{id:"expandable-tile-container",mapping:{videoMastheadAdExpandableThumbnailTileRenderer:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",videoMastheadAdExpandableVideoTileRenderer:"ytd-video-masthead-ad-expandable-video-tile-renderer"}},"data.showAdRenderer":{id:"show-ad",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.ready=function(){var a=this;_.E(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){a.expandAd()});
this.hostElement.addEventListener("yt-action",function(b){if(b.detail.actionName==="yt-service-request"){var c=b.detail.args[1];c.videoMastheadAdMuteCommand&&(a.collapseAd(c.videoMastheadAdMuteCommand.encryptedMastheadId),b.stopPropagation())}})};
_.f.attached=function(){var a=this;_.Er(function(){a.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(b){if(!a.collapsed){b=_.h(b);for(var c=b.next();!c.done;c=b.next())c=c.value,Kk(c.baseUrl,c.attributionSrcMode);a.data.impressionCommand=void 0}});
this.JSC$13503_activeViewMeasurementDataResolver.promise.then(function(b){a.ytdActiveViewBehavior.enableActiveViewMeasurement(b,15)});
_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.f.dataChanged=function(){var a;((a=this.data.impressionCommand)==null?0:a.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var b;((b=this.data)==null?0:b.activeView)&&this.JSC$13503_activeViewMeasurementDataResolver.resolve(this.data.activeView);(a=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(a.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.f.computeWidescreen=function(a){var b;return!!(a&&((b=_.y(a,$yb))==null?0:b.isWidescreen))};
_.f.computeExpandable=function(a){return!!(a&&a.length>0)};
_.f.onIronResize=function(){if(this.expandable){var a=_.E(this.hostElement).querySelector("#expandable-tile-container :first-child");a&&!a.expanded&&(a.expanded=!0)}};
_.f.handleMuteAd=function(){this.collapseAd(null)};
_.f.restoreCollapsedState=function(a){this.collapsed=_.yo().get("HIDDEN_MASTHEAD_ID")===a};
_.f.collapseAd=function(a){if(a){var b=_.yo();b.set("HIDDEN_MASTHEAD_ID",a);b.save()}(a=_.E(this.hostElement).querySelector("#video"))&&_.io(a,"yt-masthead-hidden");this.collapsed=!0};
_.f.expandAd=function(){var a=_.yo();a.set("HIDDEN_MASTHEAD_ID",!1);a.save();location.reload()};
_.f.detached=function(){_.w("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
var LN=a5b;LN.prototype.onIronResize=LN.prototype.onIronResize;LN.prototype.dataChanged=LN.prototype.dataChanged;_.U([_.H(_.OD),_.W("design:type",Object)],LN.prototype,"ironResizableBehavior",void 0);_.U([_.H(NI),_.W("design:type",Object)],LN.prototype,"ytdActiveViewBehavior",void 0);_.U([_.H(_.TI),_.W("design:type",Object)],LN.prototype,"ytdGridStateAwareBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],LN.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],LN.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],LN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],LN.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.W("design:type",Boolean)],LN.prototype,"widescreen",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.W("design:type",Boolean)],LN.prototype,"expandable",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],LN.prototype,"collapsed",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LN.prototype,"dataChanged",null);
_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LN.prototype,"onIronResize",null);LN=_.U([_.Q({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],LN);
_.S(LN,"ytd-video-masthead-ad-v3-renderer",function(){if($4b!==void 0)return $4b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-v3-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n  <div id="video-overlay" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-primary-video-overlay-renderer data="[[data.primaryVideoOverlay.videoMastheadAdPrimaryVideoOverlayRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-primary-video-overlay-renderer>\n  </div>\n  <template is="dom-if" if="[[data.primaryVideo]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <div id="video-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <ytd-video-masthead-ad-primary-video-renderer id="video" data="[[data.primaryVideo.videoMastheadAdPrimaryVideoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      </ytd-video-masthead-ad-primary-video-renderer>\n    </div>\n  </template>\n  <div id="expandable-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-advertiser-info-renderer data="[[data.advertiserInfo.videoMastheadAdAdvertiserInfoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-advertiser-info-renderer>\n    <div id="compact-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <template is="dom-repeat" items="[[data.compactVideoTiles]]" as="tile" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        <ytd-thumbnail data="[[tile.videoMastheadAdCompactVideoTileRenderer]]" width="210" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        </ytd-thumbnail>\n      </template>\n    </div>\n  </div>\n  <div id="show-ad" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return $4b=a},{mode:2});var b5b=function(){return _.P.apply(this,arguments)||this};
_.z(b5b,_.P);_.f=b5b.prototype;_.f.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.f.ready=function(){var a=this;RUa(function(){a.isAttached&&wv(a.JSC$13508_storedAdSlotMetadata,a.JSC$13508_storedAdLayoutMetadata,a.adSlotMetadata,a.adLayoutMetadata)&&AN(yN(),a.JSC$13508_storedAdSlotMetadata,a.JSC$13508_storedAdLayoutMetadata)})};
_.f.attached=function(){wv(this.JSC$13508_storedAdSlotMetadata,this.JSC$13508_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&B4b(yN(),this.JSC$13508_storedAdSlotMetadata,this.JSC$13508_storedAdLayoutMetadata)};
_.f.detached=function(){wv(this.JSC$13508_storedAdSlotMetadata,this.JSC$13508_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&AN(yN(),this.JSC$13508_storedAdSlotMetadata,this.JSC$13508_storedAdLayoutMetadata)};
_.f.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13508_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13508_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13508_storedAdLayoutMetadata!==void 0&&this.JSC$13508_storedAdSlotMetadata!==void 0&&AN(yN(),this.JSC$13508_storedAdSlotMetadata,this.JSC$13508_storedAdLayoutMetadata),B4b(yN(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13508_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13508_storedAdSlotMetadata=this.adSlotMetadata)};
_.Um.Object.defineProperties(b5b.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.adLayoutMetadata}}});
var MN=b5b;MN.prototype.onAdMetadataChanged=MN.prototype.onAdMetadataChanged;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],MN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],MN.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],MN.prototype,"data",void 0);_.U([_.K("data.adLayoutMetadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],MN.prototype,"adLayoutMetadata",null);
_.U([_.O(),_.W("design:type",Object)],MN.prototype,"adSlotMetadata",void 0);_.U([_.N("adLayoutMetadata","adSlotMetadata"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MN.prototype,"onAdMetadataChanged",null);MN=_.U([_.Q({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],MN);
_.S(MN,"ytd-page-top-ad-layout-renderer",function(){if(Q4b!==void 0)return Q4b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-top-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-page-top-ad-layout-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Q4b=
a},{mode:_.as("kevlar_poly_si_batch_j070")?1:2});var c5b;var d5b=function(){var a=_.P.apply(this,arguments)||this;a.noBottomMargin=!1;a.overlayDensity=0;return a};
_.z(d5b,_.P);_.f=d5b.prototype;
_.f.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",
noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]"}}}}}};
_.f.ready=function(){var a=this;RUa(function(){a.isAttached&&a.adSlotMetadata&&A4b(yN(),a.adSlotMetadata)})};
_.f.attached=function(){if(this.adSlotMetadata){var a;if(this.adSlotMetadata===((a=this.data)==null?void 0:a.adSlotMetadata))z4b(yN(),this.adSlotMetadata);else{var b;_.Dl(Error("Oh`"+this.adSlotMetadata+"`"+((b=this.data)==null?void 0:b.adSlotMetadata)))}}};
_.f.detached=function(){this.adSlotMetadata&&A4b(yN(),this.adSlotMetadata)};
_.f.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&A4b(yN(),this.adSlotMetadata),z4b(yN(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.Um.Object.defineProperties(d5b.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var a,b,c=_.y((a=this.data)==null?void 0:(b=a.fulfillmentContent)==null?void 0:b.fulfilledLayout,_.bzb),d;return(a=(d=_.y(c==null?void 0:c.renderingContent,azb))==null?void 0:d.layout)?a.toLowerCase().replace(/_/g,"-"):""}}});
var NN=d5b;NN.prototype.onAdSlotMetadataChanged=NN.prototype.onAdSlotMetadataChanged;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],NN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],NN.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],NN.prototype,"rendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],NN.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],NN.prototype,"noBottomMargin",void 0);_.U([_.O(),_.W("design:type",Object)],NN.prototype,"overlayDensity",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",String),_.W("design:paramtypes",[])],NN.prototype,"layout",null);_.U([_.N("data.adSlotMetadata"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NN.prototype,"onAdSlotMetadataChanged",null);
NN=_.U([_.Q({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],NN);
_.S(NN,"ytd-ad-slot-renderer",function(){if(c5b!==void 0)return c5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="fulfilled-layout" class="style-scope ytd-ad-slot-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return c5b=a},{mode:_.as("kevlar_poly_si_batch_j077")?
1:2});var e5b;var f5b=function(){return _.P.apply(this,arguments)||this};
_.z(f5b,_.P);_.f=f5b.prototype;_.f.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"},params:{noDotAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.f.onTap=function(){this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&YBa(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.f.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var a=_.h(this.data.impressionUrls),b=a.next();!b.done;b=a.next())b=b.value,hsa(b,jsa(b));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.f.attached=function(){var a=this;_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.f.detached=function(){_.w("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Um.Object.defineProperties(f5b.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.w("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.w("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
var ON=f5b;ON.prototype.dataChanged=ON.prototype.dataChanged;ON.prototype.onTap=ON.prototype.onTap;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],ON.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],ON.prototype,"ytRendererBehavior",void 0);_.U([_.H(NI),_.W("design:type",Object)],ON.prototype,"ytdActiveViewBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],ON.prototype,"ytdReduxBehavior",void 0);
_.U([_.O({selector:_.Su}),_.W("design:type",Object)],ON.prototype,"isGridViewEnabled",void 0);_.U([_.K("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ON.prototype,"watchFeedBigThumbs",null);_.U([_.K("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.W("design:type",String),_.W("design:paramtypes",[])],ON.prototype,"thumbnailWidth",null);_.U([_.O(),_.W("design:type",Object)],ON.prototype,"data",void 0);
_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ON.prototype,"onTap",null);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ON.prototype,"dataChanged",null);ON=_.U([_.Q({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],ON);
_.S(ON,"ytd-compact-promoted-video-renderer",function(){if(e5b!==void 0)return e5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-promoted-video-renderer">\n</ytd-thumbnail>\n<div class="details style-scope ytd-compact-promoted-video-renderer">\n  <a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-promoted-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n      <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n      </ytd-video-meta-block>\n      <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n        <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n      </div>\n    </div>\n  </a>\n  <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return e5b=a},{mode:1});var g5b;_.Ft("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var h5b=function(){return _.P.apply(this,arguments)||this};
_.z(h5b,_.P);h5b.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
var PN=h5b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],PN.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],PN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],PN.prototype,"data",void 0);PN=_.U([_.Q({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],PN);
_.S(PN,"ytd-search-pyv-renderer",function(){if(g5b!==void 0)return g5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-pyv-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-search-pyv-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return g5b=a},{mode:1});var i5b;var j5b;var k5b=function(){var a=_.P.apply(this,arguments)||this;a.hasSpam=!1;a.showButton=!0;a.actionMap={"yt-approve-comment-action":"approveCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction","yt-remove-comment-action":"removeCommentAction","yt-load-next-continuation":"onLoadNextContinuation"};a.nextContinuation={contentsArray:"data.contents",continuationType:"commentModerationPanelContinuation",requestPath:"/comment_service_ajax?action_get_comment_replies=1&pbj=1",
usePost:!0};return a};
_.z(k5b,_.P);_.f=k5b.prototype;_.f.configureRendererStamper=function(){return{"data.continuations":{id:"continuation",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}}},"data.contents":{id:"held-comments",mapping:{commentRenderer:{component:"ytd-comment-renderer"}}},"data.likelySpamContents":{id:"likely-spam-comments",mapping:{commentRenderer:{component:"ytd-comment-renderer"}}}}};
_.f.ready=function(){var a=this,b=_.E(this.hostElement).querySelector("#moderation-contents");b&&b.addEventListener("scroll",function(){a.onPanelScroll()})};
_.f.dataChanged=function(){this.expander.collapsed=!0};
_.f.computeSettingsButton=function(a){var b,c,d;return(d=a==null?void 0:(b=a.expander)==null?void 0:(c=b.commentModerationPanelExpanderRenderer)==null?void 0:c.settingsButton)==null?void 0:d.buttonRenderer};
_.f.onPanelScroll=function(){var a=this;_.Fr(this,"onPanelScroll",function(){var b=_.E(a.hostElement).querySelector("#moderation-contents");if(b){b=b.scrollTop===0;var c,d;_.br((d=(c=a.expander.children[1])==null?void 0:c.offsetParent)!=null?d:a.hostElement,"scrolling",b)}},50)};
_.f.onNextContinuationDataUpdated=function(a,b){a=b.continuationData.response;var c,d;if(!((c=a.continuationContents)==null?0:(d=c.commentModerationPanelContinuation)==null?0:d.contents)){var e,g;if((e=a.continuationContents)==null?0:(g=e.commentModerationPanelContinuation)==null?0:g.likelySpamContents){var k;this.data.spamHeaderText=(k=a.continuationContents)==null?void 0:k.commentModerationPanelContinuation.spamHeaderText;var m;this.set("data.likelySpamContents",(m=a.continuationContents)==null?
void 0:m.commentModerationPanelContinuation.likelySpamContents);this.nextContinuation={contentsArray:"data.likelySpamContents",continuationType:"commentModerationPanelContinuation",responseContentsKey:"likelySpamContents",usePost:!0};this.hasSpam=!0}}};
_.f.computeHasContinuation=function(a){return!!a};
_.f.hideSpamDivider=function(a){return!a||a&&this.data.contents.length===0};
_.f.computeSpamHeaderText=function(a,b){return a?b:_.Vp("")};
_.f.triggerContinuation=function(){this.hostElement.querySelector("yt-next-continuation").trigger();this.showButton=!1};
_.f.approveCommentAction=function(a){(a=this.get("approveCommentAction.commentId",a))&&this.removeComment(a)};
_.f.banAuthorAction=function(a){(a=this.get("banAuthorAction.commentId",a))&&this.removeComment(a)};
_.f.removeCommentAction=function(a){(a=this.get("removeCommentAction.commentId",a))&&this.removeComment(a)};
_.f.hideReportedCommentAction=function(a){(a=this.get("hideReportedCommentAction.commentId",a))&&this.removeComment(a)};
_.f.removeComment=function(a){var b=this.commentIdToHeldCommentsIndex(a);a=this.commentIdToLikelySpamCommentsIndex(a);b>=0?this.splice("data.contents",b,1):a>=0&&this.splice("data.likelySpamContents",a,1);this.data.contents&&this.data.contents.length!==0||this.data.likelySpamContents&&this.data.likelySpamContents.length!==0||_.io(this.hostElement,"ytd-comment-moderation-panel-empty")};
_.f.commentIdToHeldCommentsIndex=function(a){var b;if((b=this.data)==null||!b.contents)return-1;for(b=0;b<this.data.contents.length;b++)if(this.data.contents[b].commentRenderer.commentId===a)return b;return-1};
_.f.commentIdToLikelySpamCommentsIndex=function(a){var b;if((b=this.data)==null||!b.likelySpamContents)return-1;for(b=0;b<this.data.likelySpamContents.length;b++)if(this.data.likelySpamContents[b].commentRenderer.commentId===a)return b;return-1};
var QN=k5b;QN.prototype.onNextContinuationDataUpdated=QN.prototype.onNextContinuationDataUpdated;QN.prototype.dataChanged=QN.prototype.dataChanged;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],QN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],QN.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],QN.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.XM.YtNextContinuationBehavior),_.W("design:type",Object)],QN.prototype,"ytNextContinuationBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],QN.prototype,"data",void 0);_.U([_.O({computed:"computeSettingsButton(data)"}),_.W("design:type",Object)],QN.prototype,"settingsButton",void 0);_.U([_.O(),_.W("design:type",Object)],QN.prototype,"hasSpam",void 0);_.U([_.O({computed:"computeHasContinuation(data.continuations)"}),_.W("design:type",Boolean)],QN.prototype,"hasContinuation",void 0);
_.U([_.O(),_.W("design:type",Object)],QN.prototype,"showButton",void 0);_.U([_.ir("#expander"),_.W("design:type",Object)],QN.prototype,"expander",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],QN.prototype,"dataChanged",null);_.U([_.M("yt-next-continuation-data-updated"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],QN.prototype,"onNextContinuationDataUpdated",null);
QN=_.U([_.Q({is:"ytd-comment-moderation-panel-renderer",disableElementRegistration:!0})],QN);
_.S(QN,"ytd-comment-moderation-panel-renderer",function(){if(j5b!==void 0)return j5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-moderation-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-expander id="expander" align-auto="" always-toggleable="" collapsed-height="0" reversed="" class="style-scope ytd-comment-moderation-panel-renderer">\n  <div class="more-button style-scope ytd-comment-moderation-panel-renderer" slot="more-button" on-click="triggerContinuation">\n    <span class="expander-text style-scope ytd-comment-moderation-panel-renderer">\n      [[getSimpleString(data.expander.commentModerationPanelExpanderRenderer.text)]]\n    </span>\n    <div class="icons style-scope ytd-comment-moderation-panel-renderer">\n      <ytd-button-renderer class="settings-button style-scope ytd-comment-moderation-panel-renderer" data="[[settingsButton]]">\n      </ytd-button-renderer>\n      <yt-icon id="expander-icon" icon="yt-icons:expand-more" class="style-scope ytd-comment-moderation-panel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div class="less-button style-scope ytd-comment-moderation-panel-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-comment-moderation-panel-renderer">\n      [[getSimpleString(data.expander.commentModerationPanelExpanderRenderer.text)]]\n    </span>\n    <div class="icons style-scope ytd-comment-moderation-panel-renderer">\n      <ytd-button-renderer class="settings-button style-scope ytd-comment-moderation-panel-renderer" data="[[settingsButton]]">\n      </ytd-button-renderer>\n      <yt-icon id="expander-icon" icon="yt-icons:expand-less" class="style-scope ytd-comment-moderation-panel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="moderation-contents" slot="content" class="style-scope ytd-comment-moderation-panel-renderer">\n    <div id="held-comments" class="style-scope ytd-comment-moderation-panel-renderer"></div>\n    <div id="likely-spam-divider" hidden="[[hideSpamDivider(hasSpam)]]" class="style-scope ytd-comment-moderation-panel-renderer"></div>\n    <yt-formatted-string id="likely-spam-header" text="[[computeSpamHeaderText(data.likelySpamContents, data.spamHeaderText)]]" class="style-scope ytd-comment-moderation-panel-renderer">\n    </yt-formatted-string>\n    <div id="likely-spam-comments" class="style-scope ytd-comment-moderation-panel-renderer"></div>\n    <div id="continuation" class="style-scope ytd-comment-moderation-panel-renderer"></div>\n  </div>\n</ytd-expander>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return j5b=a},{mode:1});_.Ft("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var l5b=function(){var a=_.P.apply(this,arguments)||this;a.roundedContainer=!0;a.JSC$13537_handleOpenPostCommentDialogActionAfterStamp=!1;a.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return a};
_.z(l5b,_.P);_.f=l5b.prototype;
_.f.configureRendererStamper=function(){return{"data.post":{id:"post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{hasInlineCommentSection:"[[hasInlineCommentSection]]",shouldHideAuthor:"[[isInEngagementPanel]]",shouldShowVideoTime:"[[isInEngagementPanel]]",shouldShowMenuInCompactView:"[[isInEngagementPanel]]",isInEngagementPanel:"[[isInEngagementPanel]]",usesFullLockup:"[[usesFullLockup]]",hideBorder:"[[hideBorder]]"}},postRenderer:"ytd-post-renderer",sharedPostRenderer:{component:"ytd-shared-post-renderer",
properties:{usesFullLockup:"[[usesFullLockup]]"}}}},"data.moderationPanel":{id:"moderation-panel",mapping:{commentModerationPanelRenderer:"ytd-comment-moderation-panel-renderer"}},"data.commentDialog":{id:"comment-dialog",mapping:{commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"},events:!0}}};
_.f.onStampFinished=function(){this.JSC$13537_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.f.handleSignalActionOpenPostCommentDialogAction=function(){var a=_.E(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");a?a.openDialog():this.JSC$13537_handleOpenPostCommentDialogActionAfterStamp=!0};
_.f.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.f.computeHasInlineCommentSection=function(a){return!!a};
_.f.computeHideBorder=function(){return this.isInEngagementPanel};
_.f.computeIsCompact=function(){return this.isInEngagementPanel};
_.f.computeUsesCompactLockup=function(a){return a==="BACKSTAGE_SURFACE_TYPE_HOME"||a==="BACKSTAGE_SURFACE_TYPE_SEARCH"||a==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||a==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||a==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||a==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.f.computeUsesFullLockup=function(){var a,b=(a=this.data)==null?void 0:a.post,c;a=(c=_.y(b,lzb))==null?void 0:c.surface;var d;c=(d=_.y(b,nzb))==null?void 0:d.originalPost;var e;if(d=a||((e=_.y(c,lzb))==null?void 0:e.surface))return!this.computeUsesCompactLockup(d)&&this.useUpdatedRepostUi;var g;return((g=_.y(b,nzb))==null?void 0:g.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.Um.Object.defineProperties(l5b.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var a,b;return((b=_.y((a=this.data)==null?void 0:a.post,lzb))==null?void 0:b.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.useUpdatedRepostUi}}});
var RN=l5b;RN.prototype.onYtCommentModerationPanelEmpty=RN.prototype.onYtCommentModerationPanelEmpty;RN.prototype.onStampFinished=RN.prototype.onStampFinished;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],RN.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],RN.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],RN.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],RN.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],RN.prototype,"roundedContainer",void 0);_.U([_.O({computed:"computeHasInlineCommentSection(data.comments)"}),_.W("design:type",Boolean)],RN.prototype,"hasInlineCommentSection",void 0);_.U([_.O({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.W("design:type",Boolean)],RN.prototype,"hideBorder",void 0);
_.U([_.O({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.W("design:type",Boolean)],RN.prototype,"isCompact",void 0);_.U([_.O({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.W("design:type",Boolean)],RN.prototype,"usesFullLockup",void 0);_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RN.prototype,"onStampFinished",null);
_.U([_.M("ytd-comment-moderation-panel-empty"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],RN.prototype,"onYtCommentModerationPanelEmpty",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],RN.prototype,"isInEngagementPanel",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],RN.prototype,"useUpdatedRepostUi",null);
RN=_.U([_.Q({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],RN);
_.S(RN,"ytd-backstage-post-thread-renderer",function(){if(i5b!==void 0)return i5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="post" hidden="[[!data.post]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comments-disabled" hidden="[[!data.commentsDisabledMessage]]" class="style-scope ytd-backstage-post-thread-renderer">[[getSimpleString(data.commentsDisabledMessage)]]</div>\n<div id="moderation-panel" hidden="[[!data.moderationPanel]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comment-dialog" hidden="[[!data.commentDialog]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comments" hidden="[[!data.comments]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return i5b=a},{mode:1});var m5b;var SN=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(SN,_.P);SN.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
SN.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var a=this.data.thumbnail.thumbnails;this.isDarkTheme&&(a=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(a=_.Us(a,24,void 0,"height"))?a:void 0}};
SN.prototype.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
SN.prototype.computeHasText=function(){var a;return!((a=this.data)==null||!a.text)};
_.Um.Object.defineProperties(SN.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.Id(this.bannerImageUrl))+'");'}}});
var TN=SN;TN.prototype.computeHasText=TN.prototype.computeHasText;TN.prototype.computeBannerImageUrl=TN.prototype.computeBannerImageUrl;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],TN.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],TN.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],TN.prototype,"ytRendererBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],TN.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],TN.prototype,"isDarkTheme",void 0);_.U([_.O(),_.W("design:type",String)],TN.prototype,"bannerImageUrl",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.W("design:type",Boolean)],TN.prototype,"hasText",void 0);_.U([_.N("data","isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],TN.prototype,"computeBannerImageUrl",null);
_.U([_.N("data.text"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],TN.prototype,"computeHasText",null);_.U([_.K("bannerImageUrl"),_.W("design:type",Object),_.W("design:paramtypes",[])],TN.prototype,"bannerStyle",null);TN=_.U([_.Q({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],TN);
_.S(TN,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(m5b!==void 0)return m5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-prefilled-post-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" hidden="[[!bannerImageUrl]]" style$="[[bannerStyle]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n</div>\n<div id="message" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n  <p id="title" hidden="[[!getSimpleString(data.title)]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.title)]]</p>\n  <p id="text" hidden="[[!hasText]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.text)]]</p>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return m5b=a},{mode:1});var n5b;var o5b=function(){return _.P.apply(this,arguments)||this};
_.z(o5b,_.P);var UN=o5b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],UN.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],UN.prototype,"data",void 0);UN=_.U([_.Q({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],UN);
_.S(UN,"ytd-backstage-zero-state-renderer",function(){if(n5b!==void 0)return n5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="backstage:artwork" class="style-scope ytd-backstage-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<span id="text" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.text)]]</span>\n<yt-formatted-string id="link" force-default-style="" text="[[data.link]]" class="style-scope ytd-backstage-zero-state-renderer"></yt-formatted-string>\n<span id="footer" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.footer)]]</span>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return n5b=a},{mode:1});var p5b;var q5b=function(){return _.P.apply(this,arguments)||this};
_.z(q5b,_.P);var VN=q5b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],VN.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],VN.prototype,"data",void 0);_.U([_.O({computed:"computeIcon_(data.icon)"}),_.W("design:type",String)],VN.prototype,"icon",void 0);VN=_.U([_.Q({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],VN);
_.S(VN,"ytd-post-filter-zero-state-renderer",function(){if(p5b!==void 0)return p5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-filter-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-container" class="style-scope ytd-post-filter-zero-state-renderer"><yt-icon id="icon" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-filter-zero-state-renderer"></yt-icon></div>\n<div id="title" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.subtitle)]]</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return p5b=a},{mode:1});var r5b;var s5b={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},t5b=function(){return _.P.apply(this,arguments)||this};
_.z(t5b,_.P);t5b.prototype.configureRendererStamper=function(){return s5b};
var WN=t5b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],WN.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],WN.prototype,"rendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],WN.prototype,"data",void 0);_.U([_.O({computed:"computeIcon_(data.icon)"}),_.W("design:type",String)],WN.prototype,"icon",void 0);WN=_.U([_.Q({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],WN);
_.S(WN,"ytd-post-scheduling-zero-state-renderer",function(){if(r5b!==void 0)return r5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-scheduling-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-scheduling-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-post-scheduling-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<div id="schedule-button" class="style-scope ytd-post-scheduling-zero-state-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return r5b=a},{mode:1});var u5b;var XN=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return a};
_.z(XN,_.P);XN.prototype.onTabsActivate=function(a){this.data&&this.data.tabs&&_.io(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[a.detail.selected].navigationEndpoint})};
XN.prototype.shouldShowTotalCount=function(a){return a&&a.totalCount!==void 0};
XN.prototype.handleUpdatePostsTotalCountAction=function(a){var b=this.get(["data.tabs",1,"totalCount"]),c=this.get("updatePostsTotalCountAction.updateType",a);a=this.get("updatePostsTotalCountAction.number",a);b!==void 0&&c!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&a&&(c==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(b)+a):c==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(b)-a))};
_.Um.Object.defineProperties(XN.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var a=0,b=this.data.tabs.length;a<b;a++)if(this.data.tabs[a].selected)return a;return 0}}});
var YN=XN;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],YN.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],YN.prototype,"rendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],YN.prototype,"data",void 0);_.U([_.K("data.tabs"),_.W("design:type",Number),_.W("design:paramtypes",[])],YN.prototype,"selected",null);YN=_.U([_.Q({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],YN);
_.S(YN,"ytd-post-stream-filter-renderer",function(){if(u5b!==void 0)return u5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-stream-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-container" class="style-scope ytd-post-stream-filter-renderer">\n  <tp-yt-paper-tabs selected="[[selected]]" on-iron-activate="onTabsActivate" class="style-scope ytd-post-stream-filter-renderer">\n    <template is="dom-repeat" items="[[data.tabs]]" class="style-scope ytd-post-stream-filter-renderer">\n      <tp-yt-paper-tab class="style-scope ytd-post-stream-filter-renderer">\n        [[getSimpleString(item.title)]]\n        <template is="dom-if" if="[[shouldShowTotalCount(item)]]" class="style-scope ytd-post-stream-filter-renderer">\n          <span class="posts-count style-scope ytd-post-stream-filter-renderer">[[item.totalCount]]</span>\n        </template>\n      </tp-yt-paper-tab>\n    </template>\n  </tp-yt-paper-tabs>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return u5b=a},{mode:1});var v5b;var w5b=function(){return _.P.apply(this,arguments)||this};
_.z(w5b,_.P);var ZN=w5b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],ZN.prototype,"kevlarBehaviors",void 0);_.U([_.O(),_.W("design:type",Object)],ZN.prototype,"data",void 0);ZN=_.U([_.Q({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],ZN);
_.S(ZN,"ytd-channel-age-gate-renderer",function(){if(v5b!==void 0)return v5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-age-gate-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-age-gate-renderer">\n  <div id="channel-container" class="style-scope ytd-channel-age-gate-renderer">\n    <div id="channel" class="style-scope ytd-channel-age-gate-renderer">[[data.channelTitle]]</div>\n    <yt-img-shadow thumbnail="[[data.avatar]]" width="144" class="style-scope ytd-channel-age-gate-renderer"></yt-img-shadow>\n  </div>\n  <div id="info" class="style-scope ytd-channel-age-gate-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <yt-formatted-string text="[[data.mainText]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <ytd-button-renderer align-by-text="" data="[[data.signInButton.buttonRenderer]]" class="style-scope ytd-channel-age-gate-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string text="[[data.secondaryText]]" class="style-scope ytd-channel-age-gate-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return v5b=a},{mode:1});var x5b;_.Ft("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var y5b=function(){var a=_.P.apply(this,arguments)||this;a.data=null;return a};
_.z(y5b,_.P);y5b.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Um.Object.defineProperties(y5b.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.data)==null?0:(b=a.title)==null?0:(c=b.runs)==null?0:c.length)?147:160}}});
var $N=y5b;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],$N.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],$N.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],$N.prototype,"imageSizePx",null);$N=_.U([_.Q({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],$N);
_.S($N,"ytd-channel-owner-empty-state-renderer",function(){if(x5b!==void 0)return x5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-owner-empty-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container ytd-channel-owner-empty-state-renderer style-scope ytd-channel-owner-empty-state-renderer">\n  <div class="illustration style-scope ytd-channel-owner-empty-state-renderer">\n    <yt-img-shadow height="[[imageSizePx]]" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-owner-empty-state-renderer">\n    <div class="header style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.title]]">\n      <h2 class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string id="title" class="header-title style-scope ytd-channel-owner-empty-state-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="description style-scope ytd-channel-owner-empty-state-renderer">\n      <yt-formatted-string id="description" class="description-text style-scope ytd-channel-owner-empty-state-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n      <div class="button-layer style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.uploadVideoButton]]">\n        <span id="upload-video-button" class="style-scope ytd-channel-owner-empty-state-renderer"></span>\n      </div>\n    <div class="learn-more style-scope ytd-channel-owner-empty-state-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-owner-empty-state-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return x5b=a},{mode:1});var z5b;var A5b;var B5b=function(){var a=_.P.apply(this,arguments)||this;a.boundSubmitSearch=function(){a.submitSearch()};
a.boundClearSearch=function(){a.clearSearch()};
return a};
_.z(B5b,_.P);_.f=B5b.prototype;_.f.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmitSearch]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundClearSearch]]"}}}}}};
_.f.toggleClearButton=function(){this.hideClearButton=m9a||!this.input.value};
_.f.submitOnEnterKeyUp=function(a){a.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.f.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.f.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.f.submit=function(){_.io(this.hostElement,"search-query-changed",this.input.value)};
var aO=B5b;aO.prototype.toggleClearButton=aO.prototype.toggleClearButton;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],aO.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],aO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],aO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],aO.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],aO.prototype,"hideClearButton",void 0);_.U([_.O(),_.W("design:type",Object)],aO.prototype,"boundSubmitSearch",void 0);_.U([_.O(),_.W("design:type",Object)],aO.prototype,"boundClearSearch",void 0);_.U([_.ir("#input"),_.W("design:type",Object)],aO.prototype,"input",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aO.prototype,"toggleClearButton",null);
aO=_.U([_.Q({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],aO);
_.S(aO,"ytd-channel-switcher-search-box-renderer",function(){if(A5b!==void 0)return A5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="input" auto-validate="true" autocomplete="off" error-message="[[getSimpleString(data.invalidQueryErrorMessage)]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="100" minlength="3" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-channel-switcher-search-box-renderer">\n  <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n  <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n</tp-yt-paper-input>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return A5b=a},{mode:1});var C5b;var D5b=function(){var a=_.P.apply(this,arguments)||this;a.boundSubmit=function(){a.submit()};
return a};
_.z(D5b,_.P);_.f=D5b.prototype;_.f.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmit]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.f.ready=function(){var a=this;this.form.addEventListener("submit",function(b){return a.onSubmit(b)})};
_.f.onSubmit=function(a){a.preventDefault();return!1};
_.f.toggleClearButton=function(){this.hideClearButton=m9a||!this.input.value};
_.f.submitOnEnterKeyUp=function(a){a.keyCode===13&&this.submit()};
_.f.submit=function(){var a=this.data.endpoint,b=(0,_.Cf.unsafeClone)(a);_.y(b,_.oq)?_.y(b,_.oq).query=this.input.value:_.y(b,_.rq)&&(_.y(b,_.rq).query=this.input.value);var c=_.y(b.commandMetadata,_.co);(c==null?0:c.url)?(c.url=_.Gl(c.url,"query",this.input.value),_.io(this.hostElement,"yt-navigate",{endpoint:b})):_.y(b,Uyb)?(_.y(b,Uyb).channelSwitcherQuery=this.input.value,_.w("web_ytd_search_box_renderer_command_resolver_ks")?_.oo(this.hostElement,[b]):_.v().resolve(_.Yi).resolveCommand(b,{form:{element:this.hostElement}})):
(a=Error("Ph`"+JSON.stringify(a)),_.Bl(a))};
_.f.getUrl=function(a){return this.get("commandMetadata.webCommandMetadata.url",a)};
var bO=D5b;bO.prototype.toggleClearButton=bO.prototype.toggleClearButton;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],bO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],bO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],bO.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],bO.prototype,"hideClearButton",void 0);
_.U([_.O(),_.W("design:type",Object)],bO.prototype,"boundSubmit",void 0);_.U([_.ir("#form"),_.W("design:type",HTMLFormElement)],bO.prototype,"form",void 0);_.U([_.ir("#input"),_.W("design:type",Object)],bO.prototype,"input",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bO.prototype,"toggleClearButton",null);bO=_.U([_.Q({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],bO);
_.S(bO,"ytd-search-box-renderer",function(){if(C5b!==void 0)return C5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<form id="form" action="[[getUrl(data.endpoint)]]" class="style-scope ytd-search-box-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[getSimpleString(data.placeholderText)]]" max-length="100" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-search-box-renderer">\n    <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-search-box-renderer"></div>\n    <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-search-box-renderer"></div>\n  </tp-yt-paper-input>\n</form>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return C5b=a},{mode:2});var E5b=function(){var a=_.P.apply(this,arguments)||this;a.showSearchBox=!0;return a};
_.z(E5b,_.P);E5b.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
var cO=E5b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],cO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],cO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],cO.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],cO.prototype,"showSearchBox",void 0);cO=_.U([_.Q({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],cO);
_.S(cO,"ytd-channel-switcher-header-renderer",function(){if(z5b!==void 0)return z5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-channel-switcher-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-channel-switcher-header-renderer"></yt-formatted-string>\n</h2>\n<div id="search-box" hidden="[[!showSearchBox]]" class="style-scope ytd-channel-switcher-header-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return z5b=a},{mode:1});var F5b;var G5b;var H5b=function(){var a=_.P.apply(this,arguments)||this;a.isDisplayed=!0;return a};
_.z(H5b,_.P);_.f=H5b.prototype;_.f.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.dataChanged=function(){this.isDisplayed=!0};
_.f.computeType=function(a){return a||"UNKNOWN"};
_.f.onYtServiceRequestCompleted=function(a){a.stopPropagation();this.isDisplayed=!1};
_.f.onClose=function(){this.isDisplayed=!1};
var dO=H5b;dO.prototype.onYtServiceRequestCompleted=dO.prototype.onYtServiceRequestCompleted;dO.prototype.dataChanged=dO.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],dO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],dO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],dO.prototype,"data",void 0);
_.U([_.O({computed:"computeType(data.type)",reflectToAttribute:!0}),_.W("design:type",String)],dO.prototype,"type",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],dO.prototype,"isDisplayed",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dO.prototype,"dataChanged",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],dO.prototype,"onYtServiceRequestCompleted",null);dO=_.U([_.Q({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],dO);
_.S(dO,"ytd-alert-with-button-renderer",function(){if(G5b!==void 0)return G5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-alert-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-alert-with-button-renderer"></yt-formatted-string>\n<div id="buttons" class="style-scope ytd-alert-with-button-renderer">\n  <div id="button" class="style-scope ytd-alert-with-button-renderer"></div>\n  <div id="dismiss-button" on-click="onClose" class="style-scope ytd-alert-with-button-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return G5b=a},{mode:1});var I5b=function(){var a=_.P.apply(this,arguments)||this;a.noResult=!1;a.enableAlertBanner=!1;a.dismissedAlertBanner=!1;a.hideCreateChannelButton=!1;a.boundDismissAlertBanner=function(){a.dismissAlertBanner()};
a.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return a};
_.z(I5b,_.P);_.f=I5b.prototype;_.f.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.f.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.f.updateChannelSwitcherAction=function(a){var b;a=(b=_.y(a,zAb))==null?void 0:b.page;_.y(a,yAb)!==void 0&&(this.data=_.y(a,yAb))};
_.f.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{channelSwitcherHeaderRenderer:"ytd-channel-switcher-header-renderer"}},"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}},accountItemRenderer:"ytd-account-item-renderer",continuationItemRenderer:"ytd-continuation-item-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundDismissAlertBanner]]"}}}}}};
_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.f.searchQueryChanged=function(a,b){if(this.data&&this.data.contents&&this.data.contents.length){a=[];var c=[];this.hideCreateChannelButton=this.noResult=!1;for(var d=document.querySelectorAll("ytd-account-item-renderer"),e=_.h(d),g=e.next();!g.done;g=e.next())g=g.value,c.push(g),g.style.display="block";this.resetRightBorder(c);if(b){this.hideCreateChannelButton=!0;for(c=1;c<this.data.contents.length;c++)if(g=this.data.contents[c],_.y(g,Ryb)){var k=void 0,m=void 0;e=(k=_.y(g,Ryb))==null?void 0:(m=
k.accountName)==null?void 0:m.simpleText;m=k=void 0;g=(k=_.y(g,Ryb))==null?void 0:(m=k.channelHandle)==null?void 0:m.simpleText;(k=d[c-1])&&e&&_.ta(e,b)?a.push(k):_.w("enable_handle_search_on_channel_switcher")&&k&&g&&_.ta(g.toString(),b.toString())?a.push(k):k.style.display="none"}a.length===0&&(this.noResult=!0);this.resetRightBorder(a)}}};
_.f.resetRightBorder=function(a){for(var b=0;b<a.length;b++)a[b].style.borderRight=!this.hideCreateChannelButton&&(b+2)%3===0||this.hideCreateChannelButton&&(b+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.f.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.f.setShowSearchBox=function(a){if(a&&a.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var b=0;b<a.contents.length;b++)_.y(a.contents[b],_.sw)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.f.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.Um.Object.defineProperties(I5b.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null?0:a.contents)}}});
var eO=I5b;eO.prototype.onContinuationItemsUpdated=eO.prototype.onContinuationItemsUpdated;eO.prototype.searchQueryChanged=eO.prototype.searchQueryChanged;eO.prototype.onDataChanged=eO.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],eO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],eO.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],eO.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.WM),_.W("design:type",Object)],eO.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],eO.prototype,"data",void 0);_.U([_.ir("ytd-channel-switcher-header-renderer"),_.W("design:type",Object)],eO.prototype,"channelSwitcherHeaderRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],eO.prototype,"noResult",void 0);
_.U([_.O(),_.W("design:type",Object)],eO.prototype,"enableAlertBanner",void 0);_.U([_.O(),_.W("design:type",Object)],eO.prototype,"dismissedAlertBanner",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],eO.prototype,"hideCreateChannelButton",void 0);_.U([_.K("data.contents"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],eO.prototype,"isLoading",null);_.U([_.O(),_.W("design:type",Object)],eO.prototype,"boundDismissAlertBanner",void 0);
_.U([_.O({computed:"computeButtonOverride()"}),_.W("design:type",Object)],eO.prototype,"buttonOverride",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eO.prototype,"onDataChanged",null);_.U([_.M("search-query-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,String]),_.W("design:returntype")],eO.prototype,"searchQueryChanged",null);
_.U([_.M("yt-next-continuation-data-updated"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],eO.prototype,"onContinuationItemsUpdated",null);eO=_.U([_.Q({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],eO);
_.S(eO,"ytd-channel-switcher-page-renderer",function(){if(F5b!==void 0)return F5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-page-renderer"></div>\n<div id="body" class="style-scope ytd-channel-switcher-page-renderer">\n  <div class="spinner-container style-scope ytd-channel-switcher-page-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-switcher-page-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n  <div id="alert" hidden="[[!enableAlertBanner]]" class="style-scope ytd-channel-switcher-page-renderer">\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-channel-switcher-page-renderer"></yt-formatted-string>\n      <div id="dismiss-button" class="style-scope ytd-channel-switcher-page-renderer"></div>\n  </div>\n  <div id="contents" class="style-scope ytd-channel-switcher-page-renderer"></div>\n</div>\n<yt-formatted-string id="no-result" hidden="[[!noResult]]" text="[[data.noResult]]" class="style-scope ytd-channel-switcher-page-renderer">\n</yt-formatted-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return F5b=a},{mode:1});var J5b;var K5b=function(){var a=_.P.apply(this,arguments)||this;a.buttonOverrides={size:"S",iconPosition:"icon-only"};a.replyButtonOverrides={size:"S",type:"text"};return a};
_.z(K5b,_.P);_.f=K5b.prototype;_.f.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.f.detached=function(){this.replyBox&&this.replyBox.remove()};
_.f.showReplyDialog=function(a){if(a){var b=this.replyBox;b||(b=document.createElement("ytd-comment-reply-dialog-renderer"),b.id="replybox",_.E(this.replyDialogDiv).appendChild(b));b.data=a;this.replyDialogDiv.hidden=!1;b.openDialog()}};
_.f.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.f.onYtServiceRequestSent=function(a,b){a.stopPropagation();if(b.actions)for(var c=0;c<b.actions.length;c++){var d=_.y(b.actions[c],Kzb);d?this.handleUpdateCommentVoteAction(d):a.target===this.heartButton&&this.toggleHeartState()}};
_.f.handleUpdateCommentVoteAction=function(a){var b;(b=this.toolbarState)!=null&&b.key&&this.ytdReduxBehavior.dispatch(_.Lu("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:a.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":a.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.f.toggleHeartState=function(){var a;(a=this.toolbarState)!=null&&a.key&&this.ytdReduxBehavior.dispatch(_.Lu("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.Um.Object.defineProperties(K5b.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return(((a=this.toolbarState)==null?void 0:a.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(b=this.toolbarData)==null?void 0:b.likeCountLiked:(c=this.toolbarData)==null?void 0:c.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.toolbarSurface)==null?void 0:a.commentDisabledActionCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.toolbarSurface)==null?void 0:a.prepareAccountCommand)!==void 0&&!_.w("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var a,b=_.y((a=this.toolbarSurface)==null?void 0:a.prepareAccountCommand,_.Cs),c,d,e,g,k,m,n,r,t;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((c=this.toolbarSharedData)==null||!c.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((d=this.toolbarState)==null?void 0:d.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:b!=null?b:_.y((e=this.toolbarSurface)==null?void 0:e.likeCommand,_.Cs),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:b!=null?b:_.y((g=this.toolbarSurface)==null?void 0:g.unlikeCommand,_.Cs),defaultCommand:this.isVisiblyDisabled?_.y((k=this.toolbarSurface)==null?void 0:k.commentDisabledActionCommand,_.Cs):void 0,defaultTooltip:(m=this.toolbarData)==null?void 0:m.likeInactiveTooltip,toggledTooltip:(n=this.toolbarData)==null?void 0:n.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(r=this.toolbarData)==null?void 0:r.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(t=this.toolbarSharedData)==null?void 0:t.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var a,b=_.y((a=this.toolbarSurface)==null?void 0:a.prepareAccountCommand,_.Cs),c,d,e,g,k,m,n,r,t,u;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((c=this.toolbarSharedData)==null||!c.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((d=this.toolbarState)==null?void 0:d.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:b!=null?b:_.y((e=this.toolbarSurface)==null?void 0:e.dislikeCommand,_.Cs),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:b!=null?b:_.y((g=this.toolbarSurface)==null?void 0:g.undislikeCommand,_.Cs),defaultCommand:this.isVisiblyDisabled?_.y((k=this.toolbarSurface)==null?void 0:k.commentDisabledActionCommand,_.Cs):void 0,defaultTooltip:(m=this.toolbarData)==null?void 0:m.dislikeInactiveTooltip,toggledTooltip:(n=this.toolbarData)==null?void 0:
n.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(r=this.toolbarSharedData)==null?void 0:r.dislikeReplyButtonA11y:(t=this.toolbarSharedData)==null?void 0:t.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(u=this.toolbarSharedData)==null?void 0:u.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var a,b,c;if(((a=this.toolbarState)==null?void 0:a.heartState)!==void 0&&((b=this.toolbarState)==null?void 0:b.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((c=this.toolbarState)==null?void 0:c.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var d,e,g,k,m,n,r,t,u,x,A,C,F,J;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(d=this.toolbarData)==null?void 0:d.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((e=this.toolbarState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((g=this.toolbarState)==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((k=this.toolbarState)==null?void 0:k.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((m=this.toolbarState)==null?void 0:m.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.y((n=this.toolbarSurface)==null?void 0:n.heartCommand,
_.Cs),unheartEndpoint:this.isVisiblyDisabled?void 0:_.y((r=this.toolbarSurface)==null?void 0:r.unheartCommand,_.Cs),disabledEndpoint:this.isVisiblyDisabled?_.y((t=this.toolbarSurface)==null?void 0:t.commentDisabledActionCommand,_.Cs):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(u=this.toolbarData)==null?void 0:u.heartActiveTooltip,unheartedTooltip:(x=this.toolbarData)==null?void 0:x.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((A=
this.toolbarState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(C=this.toolbarSharedData)==null?void 0:C.unheartButtonA11y:(F=this.toolbarSharedData)==null?void 0:F.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(J=this.toolbarSharedData)==null?void 0:J.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.toolbarSurface)==null||!a.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(a=this.commentStrings)==null?void 0:a.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled?void 0:_.y((b=this.toolbarSurface)==null?void 0:b.replyCommand,_.Cs),command:this.isVisiblyDisabled?_.y((c=this.toolbarSurface)==null?void 0:c.commentDisabledActionCommand,_.Cs):void 0}}}});
var fO=K5b;fO.prototype.onYtServiceRequestSent=fO.prototype.onYtServiceRequestSent;fO.prototype.hideReplyDialogDiv=fO.prototype.hideReplyDialogDiv;_.U([_.O(),_.W("design:type",Object)],fO.prototype,"commentStrings",void 0);_.U([_.O(),_.W("design:type",Boolean)],fO.prototype,"isReply",void 0);_.U([_.O(),_.W("design:type",Object)],fO.prototype,"toolbarData",void 0);_.U([_.O(),_.W("design:type",Object)],fO.prototype,"toolbarSharedData",void 0);
_.U([_.O(),_.W("design:type",String)],fO.prototype,"toolbarStateKey",void 0);_.U([_.O(),_.W("design:type",String)],fO.prototype,"toolbarSurfaceKey",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],fO.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],fO.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],fO.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.ir("#reply-dialog"),_.W("design:type",HTMLElement)],fO.prototype,"replyDialogDiv",void 0);_.U([_.ir("#replybox"),_.W("design:type",Object)],fO.prototype,"replyBox",void 0);_.U([_.ir("ytd-creator-heart-renderer"),_.W("design:type",Object)],fO.prototype,"heartButton",void 0);_.U([_.O({selector:function(a,b){return _.np(a.entities,"engagementToolbarStateEntityPayload",b)},
selectorArgs:["toolbarStateKey"]}),_.W("design:type",Object)],fO.prototype,"toolbarState",void 0);_.U([_.O({selector:oVa,selectorArgs:["toolbarSurfaceKey"]}),_.W("design:type",Object)],fO.prototype,"toolbarSurface",void 0);_.U([_.O(),_.W("design:type",Object)],fO.prototype,"buttonOverrides",void 0);_.U([_.M("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fO.prototype,"hideReplyDialogDiv",null);
_.U([_.K("toolbarData","toolbarState"),_.W("design:type",String),_.W("design:paramtypes",[])],fO.prototype,"likeCount",null);_.U([_.K("likeCount"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],fO.prototype,"showLikeCount",null);_.U([_.K("toolbarSurface"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],fO.prototype,"isVisiblyDisabled",null);_.U([_.K("toolbarSurface"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],fO.prototype,"hasPrepareAccountCommand",null);
_.U([_.K("toolbarData","toolbarState","toolbarSurface"),_.W("design:type",Object),_.W("design:paramtypes",[])],fO.prototype,"likeToggleButtonRenderer",null);_.U([_.K("isReply","toolbarData","toolbarState","toolbarSurface"),_.W("design:type",Object),_.W("design:paramtypes",[])],fO.prototype,"dislikeToggleButtonRenderer",null);_.U([_.K("toolbarData","toolbarState","toolbarSurface"),_.W("design:type",Object),_.W("design:paramtypes",[])],fO.prototype,"creatorHeartSupportedRenderer",null);
_.U([_.K("toolbarSurface"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],fO.prototype,"hasReplyCommand",null);_.U([_.K("toolbarSurface","commentStrings","isVisiblyDisabled"),_.W("design:type",Object),_.W("design:paramtypes",[])],fO.prototype,"replyButtonRenderer",null);_.U([_.O(),_.W("design:type",Object)],fO.prototype,"replyButtonOverrides",void 0);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Nt]),_.W("design:returntype")],fO.prototype,"onYtServiceRequestSent",null);fO=_.U([_.Q({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],fO);
_.S(fO,"ytd-comment-engagement-bar",function(){if(J5b!==void 0)return J5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return J5b=a},{mode:1});var L5b;var M5b=function(){return _.P.apply(this,arguments)||this};
_.z(M5b,_.P);var N5b=M5b;_.U([_.O(),_.W("design:type",Object)],N5b.prototype,"data",void 0);N5b=_.U([_.Q({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],N5b);
_.S(N5b,"ytd-comment-pause-composer-renderer",function(){if(L5b!==void 0)return L5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return L5b=a},{mode:1});var O5b;var P5b;var Q5b;var gO=function(){return _.P.apply(this,arguments)||this};
_.z(gO,_.P);gO.prototype.computeState=function(a){switch(a==null?void 0:a.stateIdentifier){case "TRI_STATE_IDENTIFIER_UNTOGGLED_STATE":return"untoggled";case "TRI_STATE_IDENTIFIER_TOGGLING_STATE":return"toggling";case "TRI_STATE_IDENTIFIER_TOGGLED_STATE":return"toggled";default:return"unknown"}};
gO.prototype.updateStateIdentifier=function(a){if(this.viewModel.triStateKey){var b=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.Lu("triStateButtonStateEntityPayload",b,{key:b,stateIdentifier:a}))}};
gO.prototype.onClick=function(){var a=this;if(this.data)switch(this.ytRendererBehavior.logExplicitClick(this.data),this.state){case "toggled":this.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE");break;case "untoggled":this.viewModel.transitionCommand?(this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLING_STATE"),this.ytComponentBehavior.resolveCommand(this.viewModel.transitionCommand,{commandController:{onSuccess:function(){a.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){a.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.Um.Object.defineProperties(gO.prototype,{data:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case "untoggled":return this.viewModel.untoggledStateData;case "toggling":return this.viewModel.togglingStateData;case "toggled":return this.viewModel.toggledStateData}}},
buttonText:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.buttonText)||""}}});
var hO=gO;_.U([_.O(),_.W("design:type",Object)],hO.prototype,"viewModel",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],hO.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],hO.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],hO.prototype,"ytRendererBehavior",void 0);
_.U([_.O({selector:pVa,selectorArgs:["viewModel.triStateKey"]}),_.W("design:type",Object)],hO.prototype,"triStateButtonStateEntity",void 0);_.U([_.O({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.W("design:type",String)],hO.prototype,"state",void 0);_.U([_.K("viewModel","state"),_.W("design:type",Object),_.W("design:paramtypes",[])],hO.prototype,"data",null);_.U([_.K("data"),_.W("design:type",String),_.W("design:paramtypes",[])],hO.prototype,"buttonText",null);
hO=_.U([_.Q({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],hO);
_.S(hO,"ytd-tri-state-button-view-model",function(){if(Q5b!==void 0)return Q5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tri-state-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button noink="" on-click="onClick" class="style-scope ytd-tri-state-button-view-model">\n  [[buttonText]]\n</tp-yt-paper-button>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Q5b=a},{mode:1});var R5b=function(){var a=_.P.apply(this,arguments)||this;a.useSmallAvatars=_.w("small_avatars_for_comments");a.webWatchCompactComments=_.w("web_watch_compact_comments");a.editDialog=null;return a};
_.z(R5b,_.P);_.f=R5b.prototype;_.f.onShow=function(){_.Mo("cmv",void 0,"wn_comments")};
_.f.configureRendererStamper=function(){return{authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},linkedCommentBadge:{id:"linked-comment-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[linkedCommentBadge]]"}}}},pinnedCommentBadge:{id:"pinned-comment-badge",mapping:{renderer:"ytd-pinned-comment-badge-renderer"}},sponsorCommentBadge:{id:"sponsor-comment-badge",mapping:{renderer:"ytd-sponsor-comment-badge-renderer"}},
editDialog:{id:"edit-dialog",mapping:{commentDialogRenderer:"ytd-comment-dialog-renderer",commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"}}}};
_.f.detached=function(){this.editDialog=null;this.expander.reset()};
_.f.updateBackgroundColor=function(){if(this.backgroundColor){var a={"--ytd-comment-paid-background-color":_.Dq(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.fr(this.hostElement,a)}else _.fr(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.f.resetExpander=function(){var a;(a=this.expander)==null||a.reset()};
_.f.openEditDialog=function(a){a.dialog&&(this.editDialog=a.dialog,this.JSC$13605_editReplyDialogContainer?this.JSC$13605_editReplyDialogContainer.openDialog():this.JSC$13605_editCommentDialogContainer&&this.JSC$13605_editCommentDialogContainer.focus())};
_.f.onYtNavigate=function(a){var b=a.detail.endpoint;if(b=_.y(b,_.zDb)||_.y(b,_.ADb))a.stopPropagation(),this.openEditDialog(b)};
_.f.onYtCommentboxDismiss=function(){this.editDialog=null;_.fr(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.f.onAuthorThumbnailClicked=function(){var a=this;_.w("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(b,c){a.onAuthorThumbnailEndpointSuccess(c)},
onServerError:function(b,c){_.Dl(new _.qj("Failed to resolve the command",c))}}})};
_.f.onAuthorThumbnailEndpointSuccess=function(a){if((a=a==null?void 0:a.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(a,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();a=a==null?void 0:a.clickTrackingParams;var b=_.Dn();a&&b&&_.ls().graftServerVe(a,b)}};
_.f.logScreenVe=function(){_.pF(_.ls(),66557)};
_.f.onYtCommentboxResize=function(a){var b;(a==null?0:(b=a.detail)==null?0:b.height)&&_.fr(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":a.detail.height+"px"})};
_.Um.Object.defineProperties(R5b.prototype,{linked:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.linkedCommentText}},
linkedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.linked?{metadataBadgeRenderer:{label:this.viewModel.linkedCommentText,style:"BADGE_STYLE_TYPE_SIMPLE"}}:null}},
pinned:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.pinnedText}},
pinnedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.pinned?{renderer:{icon:{iconType:"KEEP"},label:{runs:[{text:this.viewModel.pinnedText}]}}}:null}},
authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var a,b=(a=this.commentEntity)==null?void 0:a.author;return b&&(b.isCreator||b.isVerified||b.isArtist)?{renderer:{authorEndpoint:b.channelPageEndpoint?_.y(b.channelPageEndpoint,_.Cs):_.y(b.channelCommand,_.Cs),authorText:{runs:[{text:b.displayName}]},color:b.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:b.isArtist?{iconType:"AUDIO_BADGE"}:
b.isVerified?{iconType:b.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:b.isArtist||b.isVerified?b.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var a,b=(a=this.commentEntity)==null?void 0:a.author;return b!=null&&b.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:b.sponsorBadgeUrl}]},tooltip:b.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var a;return _.y((a=this.commentSurfaceEntity)==null?void 0:a.pdgCommentChip,_.bEb)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var a;return this.voiceReplyContainerViewModel&&((a=this.voiceReplyContainerViewModel)==null?void 0:a.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var a;return _.y((a=this.commentSurfaceEntity)==null?void 0:a.voiceReplyContainerViewModel,Rzb)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var a;return this.voiceReplyContainerViewModel&&(a=this.voiceReplyContainerViewModel)!=null&&a.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.commentSurfaceEntity)==null?void 0:a.commentBackgroundColor)!=null?b:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.w("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var a,b;return(((a=this.commentEntity)==null?void 0:(b=a.properties)==null?void 0:b.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var a,b;if(_.w("enable_profile_cards_on_comments")&&((a=this.commentEntity)==null?0:(b=a.author)==null?0:b.profileCardEndpoint)&&this.viewModel.allowProfileCard){var c,d;return _.y((c=this.commentEntity)==null?void 0:(d=c.author)==null?void 0:d.profileCardEndpoint,_.Cs)}var e,g;return _.y((e=this.commentEntity)==null?void 0:(g=e.avatar)==null?void 0:g.endpoint,_.Cs)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var a,b;if(_.w("enable_profile_cards_on_comments")&&((a=this.commentEntity)==null?0:(b=a.author)==null?0:b.channelPageEndpoint)){var c,d;return _.y((c=this.commentEntity)==null?void 0:(d=c.author)==null?void 0:d.channelPageEndpoint,_.Cs)}var e,g;return _.y((e=this.commentEntity)==null?void 0:(g=e.avatar)==null?void 0:g.endpoint,_.Cs)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d,e=(a=this.commentEntity)==null?void 0:(b=a.avatar)==null?void 0:(c=b.image)==null?void 0:(d=c.sources)==null?void 0:d[0];return e?{thumbnails:[{url:e.url,width:e.width,height:e.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.commentEntity)==null?0:(b=a.author)==null?0:b.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.commentEntity)==null?void 0:(b=a.author)==null?void 0:b.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.commentEntity)==null?void 0:(b=a.properties)==null?void 0:b.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var a;return _.y((a=this.commentSurfaceEntity)==null?void 0:a.publishedTimeCommand,_.Cs)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var a,b;if(((a=this.commentEntity)==null?0:a.translatedContent)&&((b=this.translateButtonState)==null?void 0:b.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var c;if((c=this.voiceReplyContainerViewModel)==null?0:c.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var d,e;return((d=this.commentEntity)==null?void 0:(e=d.properties)==null?void 0:e.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.commentSharedEntity)==null?void 0:(b=a.strings)==null?void 0:b.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.commentSharedEntity)==null?void 0:(b=a.strings)==null?void 0:b.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.commentEntity)==null||!a.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var a,b,c=(b=_.y((a=this.viewModel)==null?void 0:a.translateButton,Qzb))!=null?b:{},d,e,g,k,m,n,r,t,u,x,A;return Object.assign({},c,{untoggledStateData:Object.assign({},c.untoggledStateData,{buttonText:(d=this.commentEntity)==null?void 0:(e=d.translateData)==null?void 0:e.text}),togglingStateData:Object.assign({},c.togglingStateData,{buttonText:(g=this.commentSharedEntity)==null?
void 0:(k=g.strings)==null?void 0:k.translatingText}),toggledStateData:Object.assign({},c.toggledStateData,{buttonText:(m=this.commentSharedEntity)==null?void 0:(n=m.strings)==null?void 0:n.seeOriginalText}),transitionCommand:((r=this.commentEntity)==null?0:r.translatedContent)?void 0:_.y((t=this.commentEntity)==null?void 0:(u=t.translateData)==null?void 0:u.translateComment,_.Cs),triStateKey:(x=this.commentEntity)==null?void 0:(A=x.properties)==null?void 0:A.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((b=_.y(_.y((a=this.toolbarSurface)==null?void 0:a.menuCommand,_.Cs),BDb))==null?void 0:(c=b.menu)==null?void 0:c.menuRenderer)||null}}});
var iO=R5b;iO.prototype.onYtCommentboxResize=iO.prototype.onYtCommentboxResize;iO.prototype.onYtCommentboxDismiss=iO.prototype.onYtCommentboxDismiss;iO.prototype.onYtNavigate=iO.prototype.onYtNavigate;iO.prototype.resetExpander=iO.prototype.resetExpander;iO.prototype.updateBackgroundColor=iO.prototype.updateBackgroundColor;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],iO.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.OI),_.W("design:type",Object)],iO.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],iO.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],iO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.ir("#author-thumbnail > button"),_.W("design:type",HTMLElement)],iO.prototype,"authorThumbnailAnchor",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("viewModel"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iO.prototype,"linked",null);_.U([_.K("viewModel","linked"),_.W("design:type",Object),_.W("design:paramtypes",[])],iO.prototype,"linkedCommentBadge",null);_.U([_.O({reflectToAttribute:!0}),_.K("viewModel"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iO.prototype,"pinned",null);
_.U([_.K("viewModel","pinned"),_.W("design:type",Object),_.W("design:paramtypes",[])],iO.prototype,"pinnedCommentBadge",null);_.U([_.K("commentEntity","commentSharedEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],iO.prototype,"authorCommentBadge",null);_.U([_.O({reflectToAttribute:!0}),_.K("authorCommentBadge"),_.W("design:type",Object),_.W("design:paramtypes",[])],iO.prototype,"hasAuthorBadge",null);
_.U([_.K("commentEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],iO.prototype,"sponsorCommentBadge",null);_.U([_.O({reflectToAttribute:!0}),_.K("sponsorCommentBadge"),_.W("design:type",Object),_.W("design:paramtypes",[])],iO.prototype,"hasSponsorBadge",null);_.U([_.K("commentSurfaceEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],iO.prototype,"pdgCommentChipRenderer",null);
_.U([_.O({reflectToAttribute:!0}),_.K("voiceReplyContainerViewModel"),_.W("design:type",Object),_.W("design:paramtypes",[])],iO.prototype,"hasVoiceReply",null);_.U([_.K("commentSurfaceEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],iO.prototype,"voiceReplyContainerViewModel",null);_.U([_.K("voiceReplyContainerViewModel"),_.W("design:type",Object),_.W("design:paramtypes",[])],iO.prototype,"voiceReplyUnavailableText",null);_.U([_.O(),_.W("design:type",Object)],iO.prototype,"data",void 0);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],iO.prototype,"viewModel",null);_.U([_.O({selector:function(a,b){return _.np(a.entities,"commentSharedEntityPayload",b)},
selectorArgs:["viewModel.sharedKey"]}),_.W("design:type",Object)],iO.prototype,"commentSharedEntity",void 0);_.U([_.O({selector:function(a,b){return _.np(a.entities,"commentEntityPayload",b)},
selectorArgs:["viewModel.commentKey"]}),_.W("design:type",Object)],iO.prototype,"commentEntity",void 0);_.U([_.O({selector:function(a,b){return _.np(a.entities,"commentSurfaceEntityPayload",b)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.W("design:type",Object)],iO.prototype,"commentSurfaceEntity",void 0);_.U([_.O({selector:oVa,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.W("design:type",Object)],iO.prototype,"toolbarSurface",void 0);_.U([_.O({selector:pVa,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.W("design:type",Object)],iO.prototype,"translateButtonState",void 0);
_.U([_.K("commentSurfaceEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],iO.prototype,"backgroundColor",null);_.U([_.O({reflectToAttribute:!0}),_.K("viewModel"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iO.prototype,"optimalReadingWidthComments",null);_.U([_.ir("ytd-expander"),_.W("design:type",Object)],iO.prototype,"expander",void 0);
_.U([_.N("backgroundColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iO.prototype,"updateBackgroundColor",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],iO.prototype,"useSmallAvatars",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],iO.prototype,"webWatchCompactComments",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("commentEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],iO.prototype,"isReply",null);
_.U([_.K("commentEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],iO.prototype,"authorThumbnailEndpoint",null);_.U([_.K("commentEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],iO.prototype,"authorNameEndpoint",null);_.U([_.K("commentEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],iO.prototype,"authorThumbnail",null);_.U([_.K("commentEntity"),_.W("design:type",String),_.W("design:paramtypes",[])],iO.prototype,"authorTextClass",null);
_.U([_.K("commentEntity"),_.W("design:type",String),_.W("design:paramtypes",[])],iO.prototype,"authorChannelName",null);_.U([_.K("commentEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],iO.prototype,"publishedTime",null);_.U([_.K("commentSurfaceEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],iO.prototype,"publishedTimeCommand",null);
_.U([_.K("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.W("design:type",Object),_.W("design:paramtypes",[])],iO.prototype,"contentText",null);_.U([_.N("contentText"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iO.prototype,"resetExpander",null);_.U([_.K("commentEntity"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iO.prototype,"shouldShowReadMoreInitially",null);
_.U([_.K("commentSharedEntity"),_.W("design:type",String),_.W("design:paramtypes",[])],iO.prototype,"expandText",null);_.U([_.K("commentSharedEntity"),_.W("design:type",String),_.W("design:paramtypes",[])],iO.prototype,"collapseText",null);_.U([_.K("commentEntity"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iO.prototype,"shouldShowTranslateButton",null);
_.U([_.K("commentEntity","commentSharedEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],iO.prototype,"translateButton",null);_.U([_.K("toolbarSurface"),_.W("design:type",Object),_.W("design:paramtypes",[])],iO.prototype,"overflowMenuRenderer",null);_.U([_.O(),_.W("design:type",Object)],iO.prototype,"editDialog",void 0);_.U([_.ir("ytd-comment-dialog-renderer"),_.W("design:type",Object)],iO.prototype,"JSC$13605_editCommentDialogContainer",void 0);
_.U([_.ir("ytd-comment-reply-dialog-renderer"),_.W("design:type",Object)],iO.prototype,"JSC$13605_editReplyDialogContainer",void 0);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],iO.prototype,"onYtNavigate",null);_.U([_.M("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],iO.prototype,"onYtCommentboxDismiss",null);
_.U([_.M("yt-commentbox-resize"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],iO.prototype,"onYtCommentboxResize",null);iO=_.U([_.Q({disableElementRegistration:!0,is:"ytd-comment-view-model"})],iO);
_.S(iO,"ytd-comment-view-model",function(){if(P5b!==void 0)return P5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model">\n      </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model"> \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model">\n              [[authorChannelName]]\n            </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return P5b=a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var S5b=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.w("web_modern_buttons");a.isWatchGrid=_.w("kevlar_watch_grid");a.buttonOverrides={style:"call-to-action"};a.JSC$13622_spinnerEl=null;a.nextContinuation={continuationType:"commentRepliesContinuation",usePost:!0};return a};
_.z(S5b,_.P);_.f=S5b.prototype;_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.f.configureRendererStamper=function(){return{"data.continuations":{id:"continuation",mapping:{nextContinuationData:{component:"yt-next-continuation",params:{showButton:!0,showIcon:!0}}}},"data.teaserContents":{id:"teaser-replies",mapping:{commentRenderer:{component:"ytd-comment-renderer",params:{isReply:!0}},commentViewModel:{component:"ytd-comment-view-model"}}},"data.contents":{id:"contents",mapping:{commentRenderer:{component:"ytd-comment-renderer",params:{isReply:!0}},commentViewModel:{component:"ytd-comment-view-model"},
continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0,isCommentsSection:!1},properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}};
_.f.attached=function(){this.isShowRepliesVisible=!0};
_.f.created=function(){this.domRepeatInitialCount=10};
_.f.dataChanged=function(){var a=this.expanderContents;a&&(a.hidden=!0);this.isLoading=!1};
_.f.onContentsDomChange=function(){this.domRepeatInitialCount=_.E(this.hostElement).querySelectorAll("ytd-comment-renderer").length};
_.f.onRetrieveLocation=function(a,b){b.locationRetrieved("/comment_service_ajax?action_get_comment_replies=1&pbj=1",void 0);a.stopPropagation()};
_.f.triggerFirstContinuation=function(){this.data.contents||this.continuation&&this.continuation.trigger();this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.f.isLoadingChanged=function(){this.isLoading&&!this.JSC$13622_spinnerEl&&(this.JSC$13622_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.E(this.expanderContents).appendChild(this.JSC$13622_spinnerEl));this.JSC$13622_spinnerEl&&(this.JSC$13622_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var a;(a=this.contents)==null||a.classList.remove("reloading")}};
_.f.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var a=_.y(this.data.viewReplies,_.RE);a&&this.ytRendererBehavior.logExplicitClick(a)};
_.f.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var a=_.y(this.data.hideReplies,_.RE);a&&this.ytRendererBehavior.logExplicitClick(a)};
_.f.isShowMoreChanged=function(){var a=_.E(this.hostElement).querySelector("#expander-contents");a&&(a.hidden=this.isShowRepliesVisible)};
_.f.computeAlign=function(){if(this.modern){var a;return!((a=this.data)==null?0:a.viewRepliesCreatorThumbnail)}};
_.Um.Object.defineProperties(S5b.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var a,b=(a=this.data)==null?void 0:a.contents,c;return!((c=this.data)==null||!c.continuations)||!!b&&b.length>0&&!!b[b.length-1].continuationItemRenderer}}});
var jO=S5b;jO.prototype.isShowMoreChanged=jO.prototype.isShowMoreChanged;jO.prototype.isLoadingChanged=jO.prototype.isLoadingChanged;jO.prototype.triggerFirstContinuation=jO.prototype.triggerFirstContinuation;jO.prototype.onRetrieveLocation=jO.prototype.onRetrieveLocation;jO.prototype.dataChanged=jO.prototype.dataChanged;_.U([_.H(_.XM.YtNextContinuationBehavior),_.W("design:type",Object)],jO.prototype,"ytNextContinuationBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],jO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],jO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.WM),_.W("design:type",Object)],jO.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],jO.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],jO.prototype,"modern",void 0);
_.U([_.O(),_.W("design:type",Boolean)],jO.prototype,"isLoading",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],jO.prototype,"isShowRepliesVisible",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],jO.prototype,"useNewFormatting",void 0);_.U([_.O({value:10}),_.W("design:type",Number)],jO.prototype,"domRepeatInitialCount",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],jO.prototype,"isWatchGrid",void 0);
_.U([_.O(),_.W("design:type",Object)],jO.prototype,"buttonOverrides",void 0);_.U([_.ir("#expander-contents"),_.W("design:type",HTMLElement)],jO.prototype,"expanderContents",void 0);_.U([_.ir("yt-next-continuation"),_.W("design:type",Object)],jO.prototype,"continuation",void 0);_.U([_.ir("ytd-continuation-item-renderer"),_.W("design:type",Object)],jO.prototype,"continuationItemRenderer",void 0);_.U([_.ir("#contents"),_.W("design:type",HTMLElement)],jO.prototype,"contents",void 0);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jO.prototype,"dataChanged",null);_.U([_.K("data.continuations","data.contents"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],jO.prototype,"hasContinuation",null);_.U([_.M("yt-retrieve-location"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],jO.prototype,"onRetrieveLocation",null);
_.U([_.M("yt-expander-more-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jO.prototype,"triggerFirstContinuation",null);_.U([_.N("isLoading"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jO.prototype,"isLoadingChanged",null);_.U([_.N("isShowRepliesVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jO.prototype,"isShowMoreChanged",null);
jO=_.U([_.Q({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],jO);
_.S(jO,"ytd-comment-replies-renderer",function(){if(O5b!==void 0)return O5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[!hasContinuation]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return O5b=a},{mode:1});var T5b;var U5b=function(){var a=_.P.apply(this,arguments)||this;a.isOpen=!1;a.commentDialog=null;a.useSmallAvatars=_.w("small_avatars_for_comments");a.useSmallAvatarsEngagementPanelOnly=_.w("small_avatars_for_comments_ep");a.placeholderFocusListener=null;a.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return a};
_.z(U5b,_.P);_.f=U5b.prototype;_.f.configureRendererStamper=function(){return{"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},commentDialog:{id:"comment-dialog",mapping:{commentDialogRenderer:{component:"ytd-comment-dialog-renderer",properties:{zeroStepChannelCreationRenderer:"[[data.zeroStep.zeroStepChannelCreationRenderer]]"}}}}}};
_.f.ready=function(){var a=this,b=_.E(this.hostElement).querySelector("#placeholder-area"),c=_.E(this.hostElement).querySelector("#simplebox-placeholder"),d=function(e){e.stopPropagation();e instanceof KeyboardEvent&&e.type==="keypress"&&e.keyCode!==13&&e.keyCode!==32||a.openDialog()};
this.placeholderFocusListener=d;c.addEventListener("focus",this.placeholderFocusListener);b.addEventListener("tap",d);b.addEventListener("keypress",d)};
_.f.maybeRemoveFocusEventListener=function(){var a;(a=this.data)!=null&&a.prepareAccountEndpoint&&!_.w("web_comments_simplebox_modal_focus_on_tap_ks")&&(a=_.E(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(a.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.f.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.f.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.w("web_comment_simplebox_resolve_polymer_command_ks")?_.gs.instance.resolveCommand(this.data.prepareAccountEndpoint):_.hs(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.E(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.f.onYtCommentboxDismiss=function(a){a.stopPropagation();this.isOpen=!1};
_.f.onCreateCommentAction=function(a){this.get("createCommentAction.contents",a)&&(this.isOpen=!1)};
_.f.computeCommentDialog=function(a){return{placeholderText:a.placeholderText,authorThumbnail:a.authorThumbnail,submitButton:a.submitButton,imageButton:a.imageButton,cancelButton:a.cancelButton,emojiButton:a.emojiButton,emojis:a.emojis,emojiPicker:a.emojiPicker,aadcGuidelinesStateEntityKey:a.aadcGuidelinesStateEntityKey,openAadcDialog:a.openAadcDialog,unicodeEmojisUrl:a.unicodeEmojisUrl}};
_.f.onHideIdentityChip=function(a){_.y(a,Izb)&&this.set("data.placeholderText",_.y(a,Izb).placeholderText)};
var kO=U5b;kO.prototype.onYtCommentboxDismiss=kO.prototype.onYtCommentboxDismiss;kO.prototype.dataChanged=kO.prototype.dataChanged;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],kO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],kO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],kO.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],kO.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],kO.prototype,"isOpen",void 0);_.U([_.O(),_.W("design:type",Object)],kO.prototype,"commentDialog",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],kO.prototype,"engagementPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],kO.prototype,"useSmallAvatars",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],kO.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],kO.prototype,"enableCreationBox",void 0);_.U([_.O(),_.W("design:type",Boolean)],kO.prototype,"showCreateDialog",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kO.prototype,"dataChanged",null);
_.U([_.M("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],kO.prototype,"onYtCommentboxDismiss",null);kO=_.U([_.Q({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],kO);
_.S(kO,"ytd-comment-simplebox-renderer",function(){if(T5b!==void 0)return T5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="author-thumbnail" fit="" height="40" hidden="[[isOpen]]" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-simplebox-renderer">\n</yt-img-shadow>\n<div id="placeholder-area" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <yt-formatted-string id="simplebox-placeholder" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-simplebox-renderer">\n  </yt-formatted-string>\n</div>\n<div id="attachments" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <div id="image-button" class="style-scope ytd-comment-simplebox-renderer"></div>\n</div>\n<div id="comment-dialog" hidden="[[!isOpen]]" class="style-scope ytd-comment-simplebox-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return T5b=a},{mode:1});var V5b;_.Ft("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var lO=function(){var a=_.P.apply(this,arguments)||this;a.addHoverEffect=_.w("swatcheroo_comments_hover_effect");return a};
_.z(lO,_.P);lO.prototype.onTap=function(a){if(this.addHoverEffect&&!this.engagementPanel&&!_.Wt(_.Rq(a)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var b;((b=window.getSelection())==null?0:b.toString().length)||_.hs({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
lO.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.Um.Object.defineProperties(lO.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)!=null&&a.commentViewModel)return _.y(this.data.commentViewModel,Pzb)}}});
var mO=lO;mO.prototype.onTap=mO.prototype.onTap;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],mO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],mO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],mO.prototype,"addHoverEffect",void 0);_.U([_.O(),_.W("design:type",Object)],mO.prototype,"data",void 0);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],mO.prototype,"commentViewModel",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],mO.prototype,"engagementPanel",void 0);_.U([_.M("tap"),_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],mO.prototype,"onTap",null);mO=_.U([_.Q({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],mO);
_.S(mO,"ytd-comment-thread-renderer",function(){if(V5b!==void 0)return V5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.comment.commentRenderer]]" class="style-scope ytd-comment-thread-renderer">\n  <ytd-comment-renderer id="comment" data="[[data.comment.commentRenderer]]" engagement-panel="[[engagementPanel]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-renderer>\n</template>\n<template is="dom-if" if="[[data.commentViewModel]]" class="style-scope ytd-comment-thread-renderer">\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</template>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return V5b=a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var W5b;var X5b=function(){var a=_.P.apply(this,arguments)||this;a.modernTypography=_.w("web_modern_typography");a.compactHeader=_.w("web_watch_compact_comments_header");a.hidePanelButton=!1;a.isPostSchedulingEnabled=_.w("enable_post_scheduling");a.hasFinishedStamping=!1;a.JSC$13640_handleOpenPostCommentDialogActionAfterStamp=!1;a.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return a};
_.z(X5b,_.P);_.f=X5b.prototype;
_.f.configureRendererStamper=function(){return{"data.createRenderer":{id:"simple-box",mapping:{commentSimpleboxRenderer:{component:"ytd-comment-simplebox-renderer",properties:{engagementPanel:"[[engagementPanel]]",showCreateDialog:"[[data.showCreateDialog]]"}}}},"data.pausedCommentsMessage":{id:"paused-comments-message",mapping:{messageRenderer:"ytd-comment-pause-composer-renderer"}},backstagePostDialog:{id:"backstage-post-dialog",mapping:{backstagePostDialogRenderer:{component:"ytd-backstage-post-dialog-renderer"}},events:!0},
"data.sortMenu":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.alerts":{id:"alert",mapping:{alertWithButtonRenderer:"ytd-alert-with-button-renderer"},renderPriority:0,waitForSignal:"eocs"},"data.zeroStateMessage":{id:"zero-state-message",mapping:{backstageZeroStateRenderer:"ytd-backstage-zero-state-renderer",postFilterZeroStateRenderer:"ytd-post-filter-zero-state-renderer"}},"data.prefilledCreateDialogHeaderMessage":{id:"prefilled-dialog-header",mapping:{backstagePrefilledPostDialogHeaderRenderer:"ytd-backstage-prefilled-post-dialog-header-renderer"}},
"data.postStreamFilter":{id:"post-stream-filter",mapping:{postStreamFilterRenderer:"ytd-post-stream-filter-renderer"}},"data.schedulingZeroStateMessage":{id:"scheduling-zero-state-message",mapping:{postSchedulingZeroStateRenderer:"ytd-post-scheduling-zero-state-renderer"}}}};
_.f.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.f.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13640_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.f.onYtServiceRequestSent=function(a,b){if(!_.w("kevlar_command_handler")&&b.actions)for(a=0;a<b.actions.length;a++){var c=b.actions[a];_.y(c,izb)&&_.E(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.y(c,izb))}};
_.f.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var a;if(this.getPrefilledBackstagePostDialog((a=this.data)==null?void 0:a.actions)){_.E(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var b=_.E(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;b&&_.Qm(this,function(){b.focus();b.openDialog&&b.openDialog()})}}else this.hasActionsChange=!0};
_.f.computeIsBackstage=function(a){return a};
_.f.onYtCommentboxDismiss=function(){_.E(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.f.removePrefilledDialog=function(a){if(a==null?0:a.actions){for(var b=a.actions.length-1;b>=0;b--){var c=void 0;((c=_.y(a.actions[b],xDb))==null?0:c.dialog)&&delete a.actions[b]}this.set("data",void 0);this.set("data",a)}};
_.f.getPrefilledBackstagePostDialog=function(a){if(a)for(var b=0;b<a.length;b++){var c=a[b],d=void 0;if((d=_.y(c,xDb))==null?0:d.dialog)return _.y(c,xDb).dialog}return null};
_.f.computeBackstagePostDialog=function(a){return a&&(this.getPrefilledBackstagePostDialog(a.actions)||a.createRenderer)};
_.f.dataChanged=function(){if(this.data){var a=this.data.customEmojis,b=this.data.unicodeEmojisUrl;_.SH.clear();b&&_.jRb(_.SH,b);a&&_.SH.load(a)}};
_.f.handleSignalActionOpenPostCommentDialogAction=function(){var a=_.E(this.hostElement).querySelector("ytd-comment-simplebox-renderer");a?a.openDialog():this.JSC$13640_handleOpenPostCommentDialogActionAfterStamp=!0};
_.Um.Object.defineProperties(X5b.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.w("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d,e,g,k;return!this.hidePanelButton&&_.w("kevlar_watch_comments_panel_button")&&((k=_.y((a=this.data)==null?void 0:(b=a.sortMenu)==null?void 0:(c=b.sortFilterSubMenuRenderer)==null?void 0:(d=c.subMenuItems)==null?void 0:(e=d[0])==null?void 0:(g=e.serviceEndpoint)==null?void 0:g.commandMetadata,_.co))==null?void 0:k.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.vo("MINIPLAYER_EXPAND_LABEL"),text:_.Vp(_.vo("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
var nO=X5b;nO.prototype.dataChanged=nO.prototype.dataChanged;nO.prototype.onYtCommentboxDismiss=nO.prototype.onYtCommentboxDismiss;nO.prototype.observePrefilledBackstagePostDialog=nO.prototype.observePrefilledBackstagePostDialog;nO.prototype.onYtServiceRequestSent=nO.prototype.onYtServiceRequestSent;nO.prototype.onStampFinished=nO.prototype.onStampFinished;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],nO.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],nO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],nO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],nO.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],nO.prototype,"modernTypography",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],nO.prototype,"compactHeader",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],nO.prototype,"engagementPanel",void 0);_.U([_.O(),_.W("design:type",Object)],nO.prototype,"hidePanelButton",void 0);_.U([_.O({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.W("design:type",Boolean)],nO.prototype,"isBackstage",void 0);_.U([_.O({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.W("design:type",Object)],nO.prototype,"backstagePostDialog",void 0);
_.U([_.O(),_.W("design:type",Object)],nO.prototype,"isPostSchedulingEnabled",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data","showCommentsPanelButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],nO.prototype,"useSpaceBetween",null);_.U([_.O({reflectToAttribute:!0}),_.K("data","hidePanelButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],nO.prototype,"showCommentsPanelButton",null);
_.U([_.K("data","showCommentsPanelButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],nO.prototype,"commentsPanelButtonData",null);_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nO.prototype,"onStampFinished",null);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Nt]),_.W("design:returntype")],nO.prototype,"onYtServiceRequestSent",null);
_.U([_.N("data.actions"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nO.prototype,"observePrefilledBackstagePostDialog",null);_.U([_.M("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],nO.prototype,"onYtCommentboxDismiss",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nO.prototype,"dataChanged",null);
nO=_.U([_.Q({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],nO);
_.S(nO,"ytd-comments-header-renderer",function(){if(W5b!==void 0)return W5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return W5b=a},{mode:1});var Y5b;var Z5b=function(){return _.P.apply(this,arguments)||this};
_.z(Z5b,_.P);var oO=Z5b;_.U([_.O(),_.W("design:type",Object)],oO.prototype,"data",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],oO.prototype,"ytRendererBehavior",void 0);oO=_.U([_.Q({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],oO);
_.S(oO,"ytd-destination-button-renderer",function(){if(Y5b!==void 0)return Y5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="destination-content-root" class="yt-simple-endpoint style-scope ytd-destination-button-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n  <yt-img-shadow id="destination-icon" height="32" thumbnail="[[data.iconImage]]" width="32" class="style-scope ytd-destination-button-renderer"></yt-img-shadow>\n  <div id="destination-label-wrapper" class="style-scope ytd-destination-button-renderer">\n     <yt-formatted-string id="destination-label" text="[[data.label]]" class="style-scope ytd-destination-button-renderer"></yt-formatted-string>\n  </div>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Y5b=a},{mode:1});var $5b;var a6b=function(){var a=_.P.apply(this,arguments)||this;a.isRichGrid=!1;a.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};a.modernTypography=_.w("web_modern_typography");return a};
_.z(a6b,_.P);_.f=a6b.prototype;_.f.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.f.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.f.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.f.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var a;if((a=this.data)==null||!a.isExpanded){a=this.hostElement.clientWidth;var b;if(a&&(b=this.data)!=null&&b.destinationButtons){b=Math.floor((a+4)/214);a=this.data.destinationButtons.length;var c=Math.ceil(a/b);this.fullyVisibleRows=a%b===1&&c===2?1:Math.min(c,2);this.isShowMoreVisible=this.fullyVisibleRows<c}}}};
_.f.updateRichGridDestinationButtonsVisibility=function(){var a,b;if(this.isRichGrid&&((a=this.data)==null||!a.isExpanded)&&(b=this.data)!=null&&b.destinationButtons){a=this.richGridItemsPerRow+1;b=this.data.destinationButtons.length;var c=Math.ceil(b/a);this.fullyVisibleRows=b%a===1&&c===2?1:Math.min(c,2);this.isShowMoreVisible=this.fullyVisibleRows<c}};
_.f.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
var pO=a6b;pO.prototype.updateRichGridDestinationButtonsVisibility=pO.prototype.updateRichGridDestinationButtonsVisibility;_.U([_.O(),_.W("design:type",Object)],pO.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Number)],pO.prototype,"fullyVisibleRows",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],pO.prototype,"isShowMoreVisible",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],pO.prototype,"isRichGrid",void 0);
_.U([_.O({selector:_.Gp,value:0}),_.W("design:type",Number)],pO.prototype,"richGridItemsPerRow",void 0);_.U([_.O(),_.W("design:type",Object)],pO.prototype,"gridStateActionMap",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],pO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],pO.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],pO.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],pO.prototype,"ytdReduxBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],pO.prototype,"modernTypography",void 0);_.U([_.N("data","richGridItemsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pO.prototype,"updateRichGridDestinationButtonsVisibility",null);
pO=_.U([_.Q({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],pO);
_.S(pO,"ytd-destination-shelf-renderer",function(){if($5b!==void 0)return $5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-destination-shelf-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="destination-buttons" class="style-scope ytd-destination-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-destination-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-destination-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return $5b=a},{mode:1});var b6b;var c6b=function(){return _.P.apply(this,arguments)||this};
_.z(c6b,_.P);c6b.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var qO=c6b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],qO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],qO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],qO.prototype,"data",void 0);qO=_.U([_.Q({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],qO);
_.S(qO,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(b6b!==void 0)return b6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-cta-shelf-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="cta-renderer style-scope ytd-brandconnect-cta-shelf-card-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-brandconnect-cta-shelf-card-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-brandconnect-cta-shelf-card-renderer">\n    <p id="header-line" hidden="[[!data.headline]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.headline)]]\n    </p>\n    <p id="brand-name" hidden="[[!data.brandName]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.brandName)]]\n    </p>\n    <p id="description" hidden="[[!data.description]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.description)]]\n    </p>\n    <div id="action-button" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n  </div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return b6b=a},{mode:1});var d6b;var e6b=function(){var a=_.P.apply(this,arguments)||this;a.disableAnimation=!1;a.isSlimlineSurvey=!1;a.isSlimlineSurveyFollowUp=!1;a.isShortsStyle=!1;return a};
_.z(e6b,_.P);e6b.prototype.onTap=function(a){a.preventDefault();this.data&&_.io(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.Um.Object.defineProperties(e6b.prototype,{isAnimatedIcon:{configurable:!0,enumerable:!0,get:function(){return!this.disableAnimation&&(this.isSlimlineSurveyFollowUp||this.isShortsStyle)}},
iconSize:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle?36:24}},
isDarkTheme:{configurable:!0,enumerable:!0,get:function(){return this.isShortsStyle||document.documentElement.hasAttribute("dark")}},
icon:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d,e;return((a=this.data)==null?0:a.checked)?(b=this.data)==null?void 0:(c=b.onStateIcon)==null?void 0:c.iconType:(d=this.data)==null?void 0:(e=d.defaultStateIcon)==null?void 0:e.iconType}}});
var rO=e6b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],rO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],rO.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],rO.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],rO.prototype,"disableAnimation",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],rO.prototype,"isSlimlineSurvey",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],rO.prototype,"isSlimlineSurveyFollowUp",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],rO.prototype,"isShortsStyle",void 0);_.U([_.K("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],rO.prototype,"isAnimatedIcon",null);
_.U([_.K("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.W("design:type",Number),_.W("design:paramtypes",[])],rO.prototype,"iconSize",null);_.U([_.K("isShortsStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],rO.prototype,"isDarkTheme",null);_.U([_.K("data.checked"),_.W("design:type",Object),_.W("design:paramtypes",[])],rO.prototype,"icon",null);rO=_.U([_.Q({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],rO);
_.S(rO,"ytd-rating-survey-option-renderer",function(){if(d6b!==void 0)return d6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="rating-survey-button" label="[[getSimpleString(data.responseText)]]" pressed="[[data.checked]]" toggleable="" on-tap="onTap" class="style-scope ytd-rating-survey-option-renderer">\n    <yt-icon icon="[[icon]]" is-animated-icon="[[isAnimatedIcon]]" is-dark-theme="[[isDarkTheme]]" size="[[iconSize]]" class="style-scope ytd-rating-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return d6b=a},{mode:2});var f6b;var g6b=function(){var a=_.P.apply(this,arguments)||this;a.firstResponseText=null;a.lastResponseText=null;a.selectedNonStarOption=null;a.hideOptions=!1;a.hideUndoButton=!0;a.disableAnimation=!1;a.showResponseRangeText=!1;a.selectedRatingIndex=-1;a.isSlimlineSurvey=!1;a.isSlimlineSurveyFollowUp=!1;a.isShortsStyle=!1;a.slimlineSurveyRatingSelectedIndex=-1;return a};
_.z(g6b,_.P);_.f=g6b.prototype;_.f.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.f.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.f.onOptionChange=function(a,b){var c=this;a=b.onStateIcon&&b.defaultStateIcon&&b.onStateIcon.iconType===b.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(k,m){k.responseText===b.responseText?c.isSlimlineSurvey?(c.selectedRatingIndex=m,c.ytdReduxBehavior.dispatch(UJb(m))):(c.setSurveyOptionValue(m,!0,"checked"),c.setSurveyOptionValue(m,!0,"selected")):(c.setSurveyOptionValue(m,!1,"checked"),c.setSurveyOptionValue(m,
!1,"selected"))});
else if(a)this.selectedNonStarOption=b,this.hideOptions=!0;else{var d=this.ytRendererBehavior.getSimpleString(b.responseText),e=!0;this.getOptionRenderers().forEach(function(k,m){c.setSurveyOptionValue(m,e,"checked");c.setSurveyOptionValue(m,!1,"selected");c.ytRendererBehavior.getSimpleString(k.responseText)===d&&(e=!1,c.setSurveyOptionValue(m,!0,"selected"))})}a=b.responseEndpoint;
var g;b.followUpCommand&&(g=_.y(b.followUpCommand,$Ab));this.isSlimlineSurvey?(this.resetComponent(),_.lo(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.lo(this.hostElement,"ytd-inline-survey-rating-select-action",[a,g])};
_.f.showSelectedOption=function(){var a=this;_.zk.addJob(function(){var b=a.getOptionRenderers()[a.slimlineSurveyRatingSelectedIndex];a.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),b)},8,100)};
_.f.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(a){var b;return(b=_.y(a,bBb))!=null?b:{}}):[]};
_.f.onUndoClick=function(){this.resetComponent();_.lo(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.f.setSurveyOptionValue=function(a,b,c){this.notifyPath("data.ratings."+a+".ratingSurveyOptionRenderer."+c);this.set("data.ratings."+a+".ratingSurveyOptionRenderer."+c,b)};
_.f.resetComponent=function(){var a=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var b=this.getOptionRenderers(),c,d;this.firstResponseText=(d=(c=b[0])==null?void 0:c.responseText)!=null?d:null;var e,g;this.lastResponseText=(g=(e=b[b.length-1])==null?void 0:e.responseText)!=null?g:null;b.forEach(function(k,m){a.setSurveyOptionValue(m,!1,"checked");a.setSurveyOptionValue(m,!1,"selected")})};
_.Um.Object.defineProperties(g6b.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
var sO=g6b;sO.prototype.onOptionChange=sO.prototype.onOptionChange;sO.prototype.dataChanged=sO.prototype.dataChanged;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],sO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],sO.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],sO.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],sO.prototype,"firstResponseText",void 0);_.U([_.O(),_.W("design:type",Object)],sO.prototype,"lastResponseText",void 0);_.U([_.O(),_.W("design:type",Object)],sO.prototype,"selectedNonStarOption",void 0);_.U([_.O(),_.W("design:type",Object)],sO.prototype,"hideOptions",void 0);_.U([_.O(),_.W("design:type",Object)],sO.prototype,"hideUndoButton",void 0);_.U([_.O(),_.W("design:type",Object)],sO.prototype,"disableAnimation",void 0);
_.U([_.O(),_.W("design:type",Object)],sO.prototype,"showResponseRangeText",void 0);_.U([_.O(),_.W("design:type",Object)],sO.prototype,"selectedRatingIndex",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],sO.prototype,"isSlimlineSurvey",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],sO.prototype,"isSlimlineSurveyFollowUp",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],sO.prototype,"isShortsStyle",void 0);_.U([_.O({selector:function(a){return a.ui.slimlineSurveyRatingSelectedIndex}}),
_.W("design:type",Object)],sO.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.U([_.K("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],sO.prototype,"isSingleSelect",null);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],sO.prototype,"dataChanged",null);
_.U([_.M("ytd-rating-survey-option-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],sO.prototype,"onOptionChange",null);sO=_.U([_.Q({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],sO);
_.S(sO,"ytd-rating-survey-renderer",function(){if(f6b!==void 0)return f6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selection-panel" class="style-scope ytd-rating-survey-renderer">\n  <div id="options" class="style-scope ytd-rating-survey-renderer">\n    <div id="ratings" hidden="[[hideOptions]]" class="style-scope ytd-rating-survey-renderer"></div>\n  </div>\n  <div id="selected-response-icon" hidden="[[!selectedNonStarOption]]" class="style-scope ytd-rating-survey-renderer">\n    <yt-icon icon="[[selectedNonStarOption.onStateIcon.iconType]]" class="style-scope ytd-rating-survey-renderer"></yt-icon>\n  </div>\n  <div id="bottom-text-container" hidden="[[!showResponseRangeText]]" class="style-scope ytd-rating-survey-renderer">\n    <div id="first-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[firstResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n    <div id="last-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[lastResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n  </div>\n</div>\n<ytd-button-renderer id="undo-button" data="[[data.undoButton.buttonRenderer]]" hidden="[[hideUndoButton]]" on-click="onUndoClick" class="style-scope ytd-rating-survey-renderer">\n</ytd-button-renderer>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return f6b=a},{mode:1});var h6b;var i6b;var j6b;var Z0a=(Jv.FIRSTDAYOFWEEK+1)%7,k6b=function(a,b,c,d){var e="";if(d.selection&&V0a(d.selection))Gv(a,d.selection)&&(e+=" selected");else if(d.selection&&W0a(d.selection)){var g=d.selection.selectionState||"START_DATE";Gv(a,d.selection.start)&&(e+=" period-start ",g==="START_DATE"&&(e+="selected"));Gv(a,d.selection.end)&&(e+=" period-end ",g==="END_DATE"&&(e+="selected"));Hv(a,d.selection.start)||Hv(d.selection.end,a)||(e+=" highlighted")}if(Hv(b,d.start)||Hv(d.end,b))e+=" disabled";d.circleToday&&
Gv(b,c)&&(e+=" today");return e};var l6b=function(){return _.P.apply(this,arguments)||this};
_.z(l6b,_.P);_.f=l6b.prototype;_.f.attached=function(){var a=this;_.Qm(this,function(){a.JSC$13674_calendarMain.scrollHeight>0&&(a.calendarConfig.selection?a.scrollToDate(X0a(a.calendarConfig.selection)):a.scrollToDate(a.calendarConfig.end))})};
_.f.updateSelection=function(a){a=$0a(Object.assign({},this.calendarConfig,{selection:a}),k6b);this.splice.apply(this,["renderData.months",0,a.length].concat(_.De(a)))};
_.f.scrollToDate=function(a){this.renderData&&(a=a1a(a,this.renderData),a!==void 0&&this.JSC$13674_calendarMain.scrollToIndex(a))};
_.f.scrollToNextMonth=function(){this.JSC$13674_calendarMain.scrollToIndex(this.JSC$13674_calendarMain.firstVisibleIndex+1)};
_.f.scrollToPrevMonth=function(){this.JSC$13674_calendarMain.firstVisibleIndex===0&&this.JSC$13674_calendarMain.scrollTo(0,0);this.JSC$13674_calendarMain.scrollToIndex(this.JSC$13674_calendarMain.firstVisibleIndex-1)};
_.f.handleDayClick=function(a){_.lo(this.hostElement,"ytd-calendar-date-clicked",[a.model.day.date])};
_.f.handleDayMouseDown=function(a){a.preventDefault();_.lo(this.hostElement,"ytd-calendar-date-mousedown",[a.model.day.date])};
_.f.handleDayMouseUp=function(a){_.lo(this.hostElement,"ytd-calendar-date-mouseup",[a.model.day.date])};
_.f.handleDayMouseEnter=function(a){a.preventDefault();_.lo(this.hostElement,"ytd-calendar-date-mouseenter",[a.model.day.date])};
_.f.handleDayMouseLeave=function(a){_.lo(this.hostElement,"ytd-calendar-date-mouseleave",[a.model.day.date])};
_.Um.Object.defineProperties(l6b.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var a=this.calendarConfig,b=k6b;b=b===void 0?k6b:b;for(var c=[],d=0;d<7;d++)c.push(Jv.NARROWWEEKDAYS[(d+Z0a)%7]);return{months:$0a(a,b),daysOfWeekLabel:c}}}});
var tO=l6b;_.U([_.O(),_.W("design:type",Object)],tO.prototype,"calendarConfig",void 0);_.U([_.ir("#calendar-main"),_.W("design:type",Object)],tO.prototype,"JSC$13674_calendarMain",void 0);_.U([_.K("calendarConfig"),_.W("design:type",Object),_.W("design:paramtypes",[])],tO.prototype,"renderData",null);tO=_.U([_.Q({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],tO);
_.S(tO,"ytd-scrollable-calendar",function(){if(j6b!==void 0)return j6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-scrollable-calendar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="calendar-container style-scope ytd-scrollable-calendar">\n  <div class="calendar-header style-scope ytd-scrollable-calendar">\n    <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-scrollable-calendar">\n      <span class="calendar-header-day style-scope ytd-scrollable-calendar">[[dayLabel]]</span>\n    </template>\n  </div>\n\n  <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-scrollable-calendar">\n    <template class="style-scope ytd-scrollable-calendar">\n      <div class="calendar-month style-scope ytd-scrollable-calendar">\n        <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-scrollable-calendar">\n          [[month.monthLabel]]\n        </div>\n        <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-scrollable-calendar">\n          <div class="calendar-week style-scope ytd-scrollable-calendar">\n            <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-scrollable-calendar">\n              <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-scrollable-calendar" on-tap="handleDayClick" on-mouseenter="handleDayMouseEnter" on-mouseleave="handleDayMouseLeave" on-mousedown="handleDayMouseDown" on-mouseup="handleDayMouseUp">\n                [[day.date.day]]\n              </span>\n            </template> \n          </div>\n        </template> \n      </div>\n    </template>\n  </tp-yt-iron-list> \n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return j6b=a},{mode:2});var m6b;var n6b;var o6b=function(){var a=_.P.apply(this,arguments)||this;a.hideCharCounter=!1;a.hideLabel=!1;a.noLabelFloat=!1;a.autoValidate=!0;a.invalid=!1;a.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return a};
_.z(o6b,_.P);_.f=o6b.prototype;_.f.reset=function(a){this.value=a&&this.data?this.data.value=a:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.f.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.f.focusTextInput=function(){this.input.focus()};
_.f.validate=function(){if(!this.autoValidate)return!this.invalid;if(!this.input)return!1;if(this.isMultiline&&this.data&&this.value!=null&&this.data.validValueRegexp&&!RegExp("^"+this.data.validValueRegexp+"$").test(this.input.value))return this.input.autoValidate=!1,this.invalid=!0,!1;this.input.autoValidate=!0;return this.input.validate()};
_.f.valueChanged=function(){var a,b;if(((a=this.data)==null?0:a.value)||((b=this.data)==null?void 0:b.value)==="")this.value=this.data.value;else{var c;((c=this.data)==null?void 0:c.value)!==void 0||this.value||(this.value="")}};
_.f.computeLabel=function(a,b){return b?"":_.Wp(a)};
_.f.computeAriaLabel=function(a,b){return b?_.Wp(a):""};
_.f.computeErrorMessage=function(a,b,c,d){!a&&b?a=c||this.strings.REQUIRED_LABEL:(a=_.Wp(d),a=_.ra(a,"&")?"document"in _.ja?sbb(a):tbb(a):a);return a};
_.f.computeType=function(a){return a==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.f.onTextValueChanged=function(a){this.value=a.detail.value;var b;(b=this.onValueChanged)==null||b.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.f.handleUpdateTextInputFormFieldRendererCommand=function(a){(a=_.y(a,uAb))&&this.data&&this.data.id===a.id&&(a.invalid!==void 0&&(this.invalid=a.invalid),a.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",a.invalidValueErrorMessage))};
_.f.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.WH("value-changed",this.value))};
_.f.updateInvalidFromBinding=function(a){this.invalid=a.detail.value};
_.Um.Object.defineProperties(o6b.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var a;return!((a=this.data)==null||!a.isMultiline)}}});
var uO=o6b;uO.prototype.valueChangedForBinding=uO.prototype.valueChangedForBinding;uO.prototype.valueChanged=uO.prototype.valueChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],uO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],uO.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],uO.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],uO.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],uO.prototype,"value",void 0);_.U([_.O(),_.W("design:type",String)],uO.prototype,"pattern",void 0);_.U([_.O(),_.W("design:type",String)],uO.prototype,"errorMessage",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],uO.prototype,"componentStyle",void 0);_.U([_.O(),_.W("design:type",Object)],uO.prototype,"hideCharCounter",void 0);
_.U([_.O(),_.W("design:type",Object)],uO.prototype,"hideLabel",void 0);_.U([_.O(),_.W("design:type",Object)],uO.prototype,"noLabelFloat",void 0);_.U([_.O(),_.W("design:type",Function)],uO.prototype,"onValueChanged",void 0);_.U([_.O(),_.W("design:type",Boolean)],uO.prototype,"isMultilineOverride",void 0);_.U([_.O(),_.W("design:type",Object)],uO.prototype,"autoValidate",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],uO.prototype,"invalid",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],uO.prototype,"enableOverlayTheme",void 0);_.U([_.O({value:{REQUIRED_LABEL:_.vo("REQUIRED_LABEL",void 0,"Required")}}),_.W("design:type",Object)],uO.prototype,"strings",void 0);_.U([_.ir("#input"),_.W("design:type",Object)],uO.prototype,"input",void 0);_.U([_.K("data","isMultilineOverride"),_.W("design:type",Object),_.W("design:paramtypes",[])],uO.prototype,"isMultiline",null);
_.U([_.mr("data.value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uO.prototype,"valueChanged",null);_.U([_.N("value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uO.prototype,"valueChangedForBinding",null);uO=_.U([_.wr({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],uO);
_.S(uO,"yt-text-input-form-field-renderer",function(){if(n6b===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;m6b===void 0&&(m6b=document.createElement("template"));var d=m6b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);n6b=a}a=n6b;return a},{mode:2});var p6b=function(){var a=_.P.apply(this,arguments)||this;a.data=void 0;a.selectionState="START_DATE";a.isStartDateInvalid=!1;a.isEndDateInvalid=!1;a.autoapply=!1;a.actionMap={"ytd-calendar-date-clicked":"handleCalendarDateClicked","ytd-calendar-date-mousedown":"handleCalendarDateMouseDown","ytd-calendar-date-mouseup":"handleCalendarDateMouseUp","ytd-calendar-date-mouseenter":"handleCalendarDateMouseEnter","ytd-calendar-date-mouseleave":"handleCalendarDateMouseLeave","yt-signal-action-submit-form":"handleCalendarSubmitDateRange"};
return a};
_.z(p6b,_.P);_.f=p6b.prototype;_.f.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.applyButton":{id:"apply-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.f.focus=function(){this.startDateInput.focus()};
_.f.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:Iv(this.data.selection.start),end:Iv(this.data.selection.end)})};
_.f.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.f.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.Wb(this.selectionState)}};
_.f.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.f.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.f.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.f.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var a=this.calendar.calendarConfig,b=a.end;a=c1a({start:a.start,end:this.endDate||b},this.startDateInput.value||"");this.isStartDateInvalid=!a.isValid;a.isValid&&(a=a.value,this.selection=this.endDate?{start:a,end:this.endDate}:a,this.calendar.scrollToDate(a));this.updateInvalidState()}};
_.f.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var a=this.calendar.calendarConfig,b=a.start;a=c1a({start:this.startDate||b,end:a.end},this.endDateInput.value||"");this.isEndDateInvalid=!a.isValid;a.isValid&&(a=a.value,this.selection={start:this.startDate,end:a},this.calendar.scrollToDate(a));this.updateInvalidState()}};
_.f.handleCalendarDateClicked=function(a){var b=this.selection&&X0a(this.selection),c=this.selection&&Y0a(this.selection);b&&!Hv(a,b)&&this.selectionState==="END_DATE"?(this.selection={start:b,end:a},this.selectionState="START_DATE"):(c&&!Hv(c,a)?this.selection={start:a,end:c}:this.selection=a,this.selectionState="END_DATE")};
_.f.handleCalendarDateMouseDown=function(a){this.selection&&!V0a(this.selection)&&(this.dragPivot=Gv(a,this.selection.start)?this.selection.end:Gv(a,this.selection.end)?this.selection.start:a)};
_.f.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.f.handleCalendarDateMouseEnter=function(a){this.dragPivot&&(this.selection={start:function(b,c){return Hv(b,c)?b:c}(this.dragPivot,a),
end:function(b,c){return Hv(b,c)?c:b}(this.dragPivot,a)},this.dragPivot||(this.selectionState="START_DATE"))};
_.f.handleCalendarDateMouseLeave=function(){};
_.f.handleCalendarSubmitDateRange=function(){this.selection&&!V0a(this.selection)&&_.lo(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.f.updateInvalidState=function(){var a=function(b,c){c?b.setAttribute("invalid",""):b.removeAttribute("invalid")};
a(this.startDateInput,this.isStartDateInvalid);a(this.endDateInput,this.isEndDateInvalid)};
_.f.updateDateStrings=function(){this.selection&&(V0a(this.selection)?U0a(this.selection):(U0a(this.selection.start),U0a(this.selection.end)))};
_.f.updateCalendarSelection=function(a){this.calendar.updateSelection(Object.assign({},a,{selectionState:this.selectionState}))};
_.f.updateIsStartDateInvalidFromBinding=function(a){this.isStartDateInvalid=a.detail.value};
_.f.updateIsEndDateInvalidFromBinding=function(a){this.isEndDateInvalid=a.detail.value};
_.f.updateStartDateStringFromBinding=function(){};
_.f.updateEndDateStringFromBinding=function(){};
_.Um.Object.defineProperties(p6b.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:Iv(this.data.dateRangeStart),end:Iv(this.data.dateRangeEnd),selection:{start:Iv(this.data.selection.start),end:Iv(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&X0a(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&Y0a(this.selection)}}});
var vO=p6b;vO.prototype.resetTextboxes=vO.prototype.resetTextboxes;vO.prototype.observeSelection=vO.prototype.observeSelection;vO.prototype.dataChanged=vO.prototype.dataChanged;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],vO.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],vO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.ir("#calendar"),_.W("design:type",Object)],vO.prototype,"calendar",void 0);
_.U([_.ir("#start-date"),_.W("design:type",Object)],vO.prototype,"startDateInput",void 0);_.U([_.ir("#end-date"),_.W("design:type",Object)],vO.prototype,"endDateInput",void 0);_.U([_.O(),_.W("design:type",Object)],vO.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],vO.prototype,"selection",void 0);_.U([_.O(),_.W("design:type",String)],vO.prototype,"selectionState",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],vO.prototype,"calendarConfig",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],vO.prototype,"errorMessage",null);_.U([_.K("selection"),_.W("design:type",Object),_.W("design:paramtypes",[])],vO.prototype,"startDate",null);_.U([_.K("selection"),_.W("design:type",Object),_.W("design:paramtypes",[])],vO.prototype,"endDate",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vO.prototype,"dataChanged",null);
_.U([_.N("selection","selectionState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vO.prototype,"observeSelection",null);_.U([_.N("selectionState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vO.prototype,"resetTextboxes",null);vO=_.U([_.Q({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],vO);
_.S(vO,"ytd-date-period-picker-renderer",function(){if(i6b!==void 0)return i6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-period-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="control-area" class="style-scope ytd-date-period-picker-renderer">\n  <form id="form" class="style-scope ytd-date-period-picker-renderer">\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="start-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.startDateField.textInputFormFieldRenderer]]" invalid="[[isStartDateInvalid]]" value="[[startDateString]]" on-blur="onDateInputBlur" on-focusin="onStartDateTapOrFocus" on-input="onStartDateTextChange" on-invalid-changed="updateIsStartDateInvalidFromBinding" on-tap="onStartDateTapOrFocus" on-value-changed="updateStartDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isStartDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="separator" class="style-scope ytd-date-period-picker-renderer">\u2013</div>\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="end-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.endDateField.textInputFormFieldRenderer]]" invalid="[[isEndDateInvalid]]" value="[[endDateString]]" on-blur="onDateInputBlur" on-focusin="onEndDateTapOrFocus" on-input="onEndDateTextChange" on-invalid-changed="updateIsEndDateInvalidFromBinding" on-tap="onEndDateTapOrFocus" on-value-changed="updateEndDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isEndDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n  </form>\n</div>\n\n<ytd-scrollable-calendar id="calendar" calendar-config="[[calendarConfig]]" class="style-scope ytd-date-period-picker-renderer">\n</ytd-scrollable-calendar>\n\n<div id="buttons" class="style-scope ytd-date-period-picker-renderer">\n  <div id="cancel-button" class="style-scope ytd-date-period-picker-renderer"></div>\n  <div id="apply-button" class="style-scope ytd-date-period-picker-renderer"></div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return i6b=a},{mode:1});var q6b=function(){var a=_.P.apply(this,arguments)||this;var b={};a.actionMap=(b["ytd-date-period-picker-apply"]="handleDateRangeUpdated",b);return a};
_.z(q6b,_.P);q6b.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
q6b.prototype.handleDateRangeUpdated=function(){};
var wO=q6b;_.U([_.O(),_.W("design:type",Object)],wO.prototype,"data",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],wO.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],wO.prototype,"rendererstamperBehavior",void 0);wO=_.U([_.Q({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],wO);
_.S(wO,"ytd-report-history-section-header-renderer",function(){if(h6b!==void 0)return h6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="header-content style-scope ytd-report-history-section-header-renderer">\n  <div id="time-range-dropdown" class="filter style-scope ytd-report-history-section-header-renderer"></div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return h6b=a},{mode:1});var r6b;var s6b;var t6b;var u6b=function(){return _.P.apply(this,arguments)||this};
_.z(u6b,_.P);_.Um.Object.defineProperties(u6b.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?0:(b=a.icon)==null?0:b.iconType)?_.es(this.data.icon.iconType):""}}});
var xO=u6b;_.U([_.O(),_.W("design:type",Object)],xO.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",String),_.W("design:paramtypes",[])],xO.prototype,"icon",null);xO=_.U([_.Q({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],xO);
_.S(xO,"ytd-report-history-table-text-cell-renderer",function(){if(t6b!==void 0)return t6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-text-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="icon-wrapper style-scope ytd-report-history-table-text-cell-renderer" hidden="[[!icon]]">\n  <yt-icon icon="[[icon]]" class="style-scope ytd-report-history-table-text-cell-renderer"></yt-icon>\n</div>\n<div class="text style-scope ytd-report-history-table-text-cell-renderer">\n  <yt-formatted-string class="main-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.text]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="sub-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.shortByLineText]]">\n  </yt-formatted-string>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return t6b=a},{mode:1});var v6b=function(){return _.P.apply(this,arguments)||this};
_.z(v6b,_.P);v6b.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
var yO=v6b;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],yO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],yO.prototype,"data",void 0);yO=_.U([_.Q({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],yO);
_.S(yO,"ytd-report-history-table-reason-cell-renderer",function(){if(s6b!==void 0)return s6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-reason-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="latest-reason" class="style-scope ytd-report-history-table-reason-cell-renderer"></div>\n<div id="show-all-reasons" hidden="[[!data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer">\n  <yt-formatted-string text="[[data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer"></yt-formatted-string>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return s6b=a},{mode:1});var w6b=function(){return _.P.apply(this,arguments)||this};
_.z(w6b,_.P);w6b.prototype.configureRendererStamper=function(){return{"data.cell":{id:"cell-container",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer",reportHistoryTableReasonCellRenderer:"ytd-report-history-table-reason-cell-renderer"}}}};
var zO=w6b;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],zO.prototype,"rendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],zO.prototype,"data",void 0);zO=_.U([_.Q({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],zO);
_.S(zO,"ytd-report-history-table-cell-renderer",function(){if(r6b!==void 0)return r6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cell-container" class="style-scope ytd-report-history-table-cell-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
return r6b=a},{mode:1});var x6b;var AO=function(){var a=_.P.apply(this,arguments)||this;a.columnType={type:"REPORT_HISTORY_COLUMN_TYPE",content:"REPORT_HISTORY_COLUMN_CONTENT",reason:"REPORT_HISTORY_COLUMN_REASON",status:"REPORT_HISTORY_COLUMN_STATUS",date:"REPORT_HISTORY_COLUMN_DATE"};return a};
_.z(AO,_.P);AO.prototype.onDataChanged=function(){var a;if((a=this.data)==null?0:a.style)this.componentStyle=this.getStyleName(this.data.style)};
AO.prototype.getCellForColumn=function(a){return this.cells.find(function(b){var c;return((c=_.y(b==null?void 0:b.cell,eBb)||_.y(b==null?void 0:b.cell,dBb))==null?void 0:c.columnId)===a.type})};
AO.prototype.getClassForColumn=function(a){switch(a){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
AO.prototype.getStyleName=function(a){switch(a){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.Um.Object.defineProperties(AO.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this.data)==null?void 0:a.cells)||[]).map(function(b){return _.y(b,cBb)})}}});
var BO=AO;BO.prototype.onDataChanged=BO.prototype.onDataChanged;_.U([_.O(),_.W("design:type",Object)],BO.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Array)],BO.prototype,"columnRenderData",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],BO.prototype,"componentStyle",void 0);_.U([_.K("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],BO.prototype,"cells",null);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BO.prototype,"onDataChanged",null);BO=_.U([_.Q({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],BO);
_.S(BO,"ytd-report-history-table-row-renderer",function(){if(x6b!==void 0)return x6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="row-container" class="style-scope ytd-report-history-table-row-renderer">\n  <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-report-history-table-row-renderer">\n    <div class$="[[column.classes]] cell-body style-scope ytd-report-history-table-row-renderer" role="cell" style$="[[column.style]]">\n      <ytd-report-history-table-cell-renderer class$="[[getClassForColumn(column.type)]] style-scope ytd-report-history-table-row-renderer" data="[[getCellForColumn(column)]]"></ytd-report-history-table-cell-renderer>\n    </div>\n  </template>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return x6b=a},{mode:1});var y6b;var z6b;var d1a={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},e1a={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var CO=function(){return _.P.apply(this,arguments)||this};
_.z(CO,_.P);CO.prototype.configureRendererStamper=function(){return{"data.rows":{id:"table-body",mapping:{reportHistoryTableRowRenderer:{component:"ytd-report-history-table-row-renderer",properties:{columnRenderData:"[[columnRenderData]]"},attributes:{role:"row"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",attributes:{role:"row"}}}}}};
CO.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.Um.Object.defineProperties(CO.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.columns)?j1a(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return h1a(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var a=this.tableSpec,b=d1a;b=b===void 0?e1a:b;b=i1a(a.columnDimensions,a.columnsToShow||[],b);a=0;b=_.h(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a+=c.minWidth+c.paddingLeft+c.paddingRight;return a}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
var DO=CO;_.U([_.H(_.WM),_.W("design:type",Object)],DO.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],DO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],DO.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],DO.prototype,"tableSpec",null);_.U([_.K("tableSpec"),_.W("design:type",Array),_.W("design:paramtypes",[])],DO.prototype,"columnRenderData",null);
_.U([_.K("tableSpec"),_.W("design:type",Number),_.W("design:paramtypes",[])],DO.prototype,"totalMinWidth",null);_.U([_.K("totalMinWidth"),_.W("design:type",String),_.W("design:paramtypes",[])],DO.prototype,"tableWidthStyle",null);DO=_.U([_.Q({is:"ytd-table-renderer",disableElementRegistration:!0})],DO);
_.S(DO,"ytd-table-renderer",function(){if(z6b!==void 0)return z6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-table-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="table-content" role="table" style$="[[tableWidthStyle]]" class="style-scope ytd-table-renderer">\n  <div id="table-header" role="row" class="style-scope ytd-table-renderer">\n    <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-table-renderer">\n      <div class$="[[column.classes]] cell-header style-scope ytd-table-renderer" style$="[[column.style]]" role="columnheader">\n        <h4 id="[[column.type]]-header-name" class="header-name style-scope ytd-table-renderer">\n          <span class="style-scope ytd-table-renderer">[[column.headerName]]</span>\n        </h4>\n        <div class="cell-header-icon style-scope ytd-table-renderer" hidden="[[!column.headerIcon]]">\n          <yt-icon icon="[[column.headerIcon]]" class="style-scope ytd-table-renderer"></yt-icon>\n        </div>\n      </div>\n    </template> \n  </div>\n  <div id="table-body" class="style-scope ytd-table-renderer">\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return z6b=a},{mode:1});var A6b=function(){return _.P.apply(this,arguments)||this};
_.z(A6b,_.P);A6b.prototype.configureRendererStamper=function(){return{"data.reportedContent":{id:"content-info",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}},"data.reasonsTable":{id:"reasons-table",mapping:{tableRenderer:"ytd-table-renderer"}},"data.doneButton":{id:"done-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
var EO=A6b;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],EO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],EO.prototype,"data",void 0);EO=_.U([_.Q({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],EO);
_.S(EO,"ytd-report-reason-history-modal-renderer",function(){if(y6b!==void 0)return y6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-reason-history-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="report-history-modal-body" class="style-scope ytd-report-reason-history-modal-renderer">\n  <h4 class="title style-scope ytd-report-reason-history-modal-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-report-reason-history-modal-renderer"></yt-formatted-string>\n  </h4>\n  <div id="content-info" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-report-reason-history-modal-renderer">\n    <div id="reasons-table" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div id="report-history-modal-footer" class="style-scope ytd-report-reason-history-modal-renderer">\n  <div id="done-button" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return y6b=a},{mode:1});var B6b;var C6b;var D6b;var E6b=function(){return _.P.apply(this,arguments)||this};
_.z(E6b,_.P);var FO=E6b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],FO.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],FO.prototype,"data",void 0);FO=_.U([_.Q({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],FO);
_.S(FO,"ytd-profile-column-stats-entry-renderer",function(){if(D6b!==void 0)return D6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.label)]]</div>\n<div id="value" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.value)]]</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return D6b=a},{mode:1});var F6b;var G6b=function(){return _.P.apply(this,arguments)||this};
_.z(G6b,_.P);G6b.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
var GO=G6b;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],GO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],GO.prototype,"data",void 0);GO=_.U([_.Q({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],GO);
_.S(GO,"ytd-profile-column-stats-renderer",function(){if(F6b!==void 0)return F6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-stats-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return F6b=a},{mode:1});var H6b;var I6b=function(){return _.P.apply(this,arguments)||this};
_.z(I6b,_.P);_.Um.Object.defineProperties(I6b.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.useThumbnailSize)return 80;var b,c;a=(b=this.data)==null?void 0:(c=b.thumbnail)==null?void 0:c.thumbnails;var d;return a&&((d=a[0])==null?void 0:d.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.useThumbnailSize)return 80;var b,c;a=(b=this.data)==null?void 0:(c=b.thumbnail)==null?void 0:c.thumbnails;var d;return a&&((d=a[0])==null?void 0:d.height)||80}}});
var HO=I6b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],HO.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],HO.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],HO.prototype,"componentStyle",void 0);_.U([_.K("data.useThumbnailSize"),_.W("design:type",Object),_.W("design:paramtypes",[])],HO.prototype,"thumbnailWidth",null);
_.U([_.K("data.useThumbnailSize"),_.W("design:type",Object),_.W("design:paramtypes",[])],HO.prototype,"thumbnailHeight",null);HO=_.U([_.Q({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],HO);
_.S(HO,"ytd-profile-column-user-info-renderer",function(){if(H6b!==void 0)return H6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-user-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="thumbnail" height="[[thumbnailHeight]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-profile-column-user-info-renderer">\n</yt-img-shadow>\n<div id="title" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.subtitle)]]</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return H6b=a},{mode:1});var J6b=function(){return _.P.apply(this,arguments)||this};
_.z(J6b,_.P);J6b.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsRenderer:{component:"ytd-profile-column-stats-renderer",noInjection:!0},profileColumnUserInfoRenderer:{component:"ytd-profile-column-user-info-renderer",noInjection:!0,properties:{componentStyle:"[[componentStyle]]"}}}}}};
var IO=J6b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],IO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],IO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],IO.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],IO.prototype,"componentStyle",void 0);IO=_.U([_.Q({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],IO);
_.S(IO,"ytd-profile-column-renderer",function(){if(C6b!==void 0)return C6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return C6b=a},{mode:1});var K6b=function(){var a=_.P.apply(this,arguments)||this;a.componentStyle="NON_CENTERED_PROFILE";return a};
_.z(K6b,_.P);K6b.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
K6b.prototype.getIcon=function(a){return a?"settings:"+a.toLowerCase():null};
var JO=K6b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],JO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],JO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],JO.prototype,"data",void 0);JO=_.U([_.Q({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],JO);
_.S(JO,"ytd-page-introduction-renderer",function(){if(B6b!==void 0)return B6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-introduction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-content" class="style-scope ytd-page-introduction-renderer">\n  <div id="introduction-text" class="style-scope ytd-page-introduction-renderer">\n    <div id="name" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.pageTitle)]]</div>\n    <div id="title" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.headerText)]]</div>\n    <yt-formatted-string id="text" split-lines="" text="[[data.bodyText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n    <ul class="introduction-bullet-items style-scope ytd-page-introduction-renderer" hidden="[[!data.bulletMessages]]">\n      <template is="dom-repeat" items="[[data.bulletMessages]]" as="bullet" class="style-scope ytd-page-introduction-renderer">\n        <li class="style-scope ytd-page-introduction-renderer">\n          <yt-formatted-string id="text" text="[[bullet]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string>\n        </li>\n      </template>\n    </ul>\n    <div class="introduction-additional-lines style-scope ytd-page-introduction-renderer" hidden="[[!data.additionalLines]]">\n      <template is="dom-repeat" items="[[data.additionalLines]]" as="line" class="style-scope ytd-page-introduction-renderer">\n        <p class="style-scope ytd-page-introduction-renderer"> <yt-formatted-string id="text" text="[[line]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string> </p>\n      </template>\n    </div>\n    <yt-formatted-string id="text" force-default-style="" text="[[data.footerText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n  </div>\n  <yt-icon hidden="[[!data.headerIcon]]" icon="[[getIcon(data.headerIcon.iconType)]]" class="style-scope ytd-page-introduction-renderer"></yt-icon>\n  <yt-img-shadow height="160" hidden="[[!data.headerImage]]" thumbnail="[[data.headerImage]]" class="style-scope ytd-page-introduction-renderer">\n  </yt-img-shadow>\n</div>\n<div id="report-stats" hidden="[[!data.reportStats]]" class="style-scope ytd-page-introduction-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return B6b=a},{mode:1});var L6b;var M6b=function(){return _.P.apply(this,arguments)||this};
_.z(M6b,_.P);var KO=M6b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],KO.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],KO.prototype,"data",void 0);KO=_.U([_.Q({is:"ytd-report-description-renderer",disableElementRegistration:!0})],KO);
_.S(KO,"ytd-report-description-renderer",function(){if(L6b!==void 0)return L6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-description-vertical-line style-scope ytd-report-description-renderer"></div>\n<div class="report-description style-scope ytd-report-description-renderer">\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-upper-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-receipt style-scope ytd-report-description-renderer" text="[[data.receipt]]">\n    </yt-formatted-string>\n  </div>\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-lower-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-state style-scope ytd-report-description-renderer" text="[[data.state]]">\n    </yt-formatted-string>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return L6b=a},{mode:1});var N6b;var O6b;var P6b=function(){return _.P.apply(this,arguments)||this};
_.z(P6b,_.P);P6b.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
var LO=P6b;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],LO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],LO.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],LO.prototype,"data",void 0);LO=_.U([_.Q({is:"ytd-video-report-renderer",disableElementRegistration:!0})],LO);
_.S(LO,"ytd-video-report-renderer",function(){if(O6b!==void 0)return O6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-report-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-thumbnail style-scope ytd-video-report-renderer"></div>\n<div class="report-info style-scope ytd-video-report-renderer">\n  <yt-formatted-string class="report-title style-scope ytd-video-report-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="report-subtitle style-scope ytd-video-report-renderer" text="[[data.shortBylineText]]">\n  </yt-formatted-string>\n</div>\n<div id="description" class="style-scope ytd-video-report-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return O6b=a},{mode:1});var Q6b;_.Ft("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.Ft("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var MO=function(){return _.P.apply(this,arguments)||this};
_.z(MO,_.P);MO.prototype.configureRendererStamper=function(){return{"data.button":{id:"message-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]"}}}}}};
MO.prototype.computeMessageStyle=function(a){return a};
MO.prototype.computeButtonOverride=function(a){var b;if((a==null?0:(b=a.style)==null?0:b.value)&&a.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
var NO=MO;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],NO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],NO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],NO.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],NO.prototype,"shelf",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],NO.prototype,"panel",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.W("design:type",Boolean)],NO.prototype,"componentStyle",void 0);_.U([_.O({computed:"computeButtonOverride(data)"}),_.W("design:type",Object)],NO.prototype,"buttonOverride",void 0);NO=_.U([_.Q({is:"ytd-message-renderer",disableElementRegistration:!0})],NO);
_.S(NO,"ytd-message-renderer",function(){if(Q6b!==void 0)return Q6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Q6b=a},{mode:1});var OO=function(){return _.P.apply(this,arguments)||this};
_.z(OO,_.P);OO.prototype.configureRendererStamper=function(){return{"data.reportHistorySectionRenderers":{id:"items",mapping:{videoReportRenderer:"ytd-video-report-renderer"}},"data.header":{id:"header",mapping:{reportHistorySectionHeaderRenderer:"ytd-report-history-section-header-renderer"}},"data.table":{id:"history-table",mapping:{tableRenderer:"ytd-table-renderer",messageRenderer:"ytd-message-renderer"}}}};
OO.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
OO.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.Um.Object.defineProperties(OO.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(((a=this.data)==null?0:a.header)&&((b=this.data)==null?0:b.table))}}});
var PO=OO;PO.prototype.onRequestError=PO.prototype.onRequestError;_.U([_.H(_.WM),_.W("design:type",Object)],PO.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],PO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],PO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],PO.prototype,"data",void 0);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],PO.prototype,"isUnifiedReportHistory",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],PO.prototype,"onRequestError",null);PO=_.U([_.Q({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],PO);
_.S(PO,"ytd-report-history-section-renderer",function(){if(N6b!==void 0)return N6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" hidden="[[isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer"></div>\n\n\n<div id="unified-report-history" hidden="[[!isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer">\n  <div id="header" class="style-scope ytd-report-history-section-renderer"></div>\n  <div class="table-container style-scope ytd-report-history-section-renderer">\n    <div id="history-table" class="style-scope ytd-report-history-section-renderer"></div>\n    <div class="spinner-container style-scope ytd-report-history-section-renderer" hidden="[[!continuationIsReloading]]">\n      <tp-yt-paper-spinner active="" class="style-scope ytd-report-history-section-renderer"></tp-yt-paper-spinner>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return N6b=a},{mode:1});var R6b;var S6b=function(){var a=_.P.apply(this,arguments)||this;a.answerExpanded=!1;return a};
_.z(S6b,_.P);S6b.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
var QO=S6b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],QO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],QO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],QO.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],QO.prototype,"answerExpanded",void 0);QO=_.U([_.Q({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],QO);
_.S(QO,"ytd-handles-claiming-faq-renderer",function(){if(R6b!==void 0)return R6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="head style-scope ytd-handles-claiming-faq-renderer" on-click="toggleAnswer">\n  <span class="question style-scope ytd-handles-claiming-faq-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope ytd-handles-claiming-faq-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope ytd-handles-claiming-faq-renderer">\n    <yt-formatted-string class="answer style-scope ytd-handles-claiming-faq-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return R6b=a},{mode:1});var T6b;var U6b=function(){return _.P.apply(this,arguments)||this};
_.z(U6b,_.P);var V6b=U6b;_.U([_.O(),_.W("design:type",Object)],V6b.prototype,"data",void 0);V6b=_.U([_.Q({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],V6b);
_.S(V6b,"ytd-handles-claiming-faq-section-renderer",function(){if(T6b!==void 0)return T6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-faq-section-renderer">\n  <yt-formatted-string id="title" text="[[data.header]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.faqs]]" class="style-scope ytd-handles-claiming-faq-section-renderer">\n    <ytd-handles-claiming-faq-renderer data="[[item]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></ytd-handles-claiming-faq-renderer>\n  </template>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return T6b=a},{mode:1});var W6b;var X6b=function(){var a=_.P.apply(this,arguments)||this;a.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";a.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";a.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";a.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";a.leftSquiggly=a.leftSquigglyLight;a.rightSquiggly=a.rightSquigglyLight;
a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};a.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return a};
_.z(X6b,_.P);_.f=X6b.prototype;_.f.updateLeftSquigglyStyle=function(){_.fr(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.f.updateRightSquigglyStyle=function(){_.fr(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.f.ready=function(){var a=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(a)};
_.f.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.set("isDarkTheme",a),a?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.f.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
var RO=X6b;RO.prototype.updateRightSquigglyStyle=RO.prototype.updateRightSquigglyStyle;RO.prototype.updateLeftSquigglyStyle=RO.prototype.updateLeftSquigglyStyle;_.U([_.O(),_.W("design:type",Object)],RO.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],RO.prototype,"isDarkTheme",void 0);_.U([_.O(),_.W("design:type",String)],RO.prototype,"leftSquiggly",void 0);_.U([_.O(),_.W("design:type",String)],RO.prototype,"rightSquiggly",void 0);
_.U([_.N("leftSquiggly"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RO.prototype,"updateLeftSquigglyStyle",null);_.U([_.N("rightSquiggly"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RO.prototype,"updateRightSquigglyStyle",null);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],RO.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],RO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],RO.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],RO.prototype,"actionButtonOverride",void 0);RO=_.U([_.Q({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],RO);
_.S(RO,"ytd-handles-claiming-header-renderer",function(){if(W6b!==void 0)return W6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="left-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n<div id="outer-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <yt-img-shadow id="profile-picture" height="150" thumbnail="[[data.profilePicture]]" width="150" class="style-scope ytd-handles-claiming-header-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <div id="action-button" class="style-scope ytd-handles-claiming-header-renderer">\n  </div>\n</div>\n<div id="right-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="right-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return W6b=a},{mode:1});var Y6b;var Z6b=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};a.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";a.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";a.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";a.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
a.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";a.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";a.image0SquigglyBackground=a.image0LightSquigglyBackground;a.image1SquigglyBackground=a.image1LightSquigglyBackground;a.image3SquigglyBackground=a.image3LightSquigglyBackground;return a};
_.z(Z6b,_.P);_.f=Z6b.prototype;_.f.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.f.onDataChanged=function(){this.updateTitleAndImages()};
_.f.onThemeChanged=function(){this.updateTitleAndImages()};
_.f.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.isDarkTheme=a)};
_.f.updateImage0SquigglyBackground=function(){_.fr(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.f.updateImage1SquigglyBackground=function(){_.fr(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.f.updateImage3SquigglyBackground=function(){_.fr(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.f.updateTitleAndImages=function(){var a,b;((a=this.data)==null?void 0:(b=a.titleImages)==null?void 0:b.length)===5&&(this.title0=this.data.titleImages[0].title,this.title1=this.data.titleImages[1].title,this.title2=this.data.titleImages[2].title,this.title3=this.data.titleImages[3].title,this.title4=this.data.titleImages[4].title,this.isDarkTheme?(this.image0=this.data.titleImages[0].darkImage,this.image1=this.data.titleImages[1].darkImage,this.image2=this.data.titleImages[2].darkImage,this.image3=
this.data.titleImages[3].darkImage,this.image4=this.data.titleImages[4].darkImage,this.image0SquigglyBackground=this.image0DarkSquigglyBackground,this.image1SquigglyBackground=this.image1DarkSquigglyBackground,this.image3SquigglyBackground=this.image3DarkSquigglyBackground):(this.image0=this.data.titleImages[0].lightImage,this.image1=this.data.titleImages[1].lightImage,this.image2=this.data.titleImages[2].lightImage,this.image3=this.data.titleImages[3].lightImage,this.image4=this.data.titleImages[4].lightImage,
this.image0SquigglyBackground=this.image0LightSquigglyBackground,this.image1SquigglyBackground=this.image1LightSquigglyBackground,this.image3SquigglyBackground=this.image3LightSquigglyBackground))};
var SO=Z6b;SO.prototype.updateImage3SquigglyBackground=SO.prototype.updateImage3SquigglyBackground;SO.prototype.updateImage1SquigglyBackground=SO.prototype.updateImage1SquigglyBackground;SO.prototype.updateImage0SquigglyBackground=SO.prototype.updateImage0SquigglyBackground;SO.prototype.onThemeChanged=SO.prototype.onThemeChanged;SO.prototype.onDataChanged=SO.prototype.onDataChanged;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],SO.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],SO.prototype,"isDarkTheme",void 0);_.U([_.O(),_.W("design:type",Object)],SO.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],SO.prototype,"title0",void 0);_.U([_.O(),_.W("design:type",Object)],SO.prototype,"title1",void 0);_.U([_.O(),_.W("design:type",Object)],SO.prototype,"title2",void 0);_.U([_.O(),_.W("design:type",Object)],SO.prototype,"title3",void 0);
_.U([_.O(),_.W("design:type",Object)],SO.prototype,"title4",void 0);_.U([_.O(),_.W("design:type",Object)],SO.prototype,"image0",void 0);_.U([_.O(),_.W("design:type",Object)],SO.prototype,"image1",void 0);_.U([_.O(),_.W("design:type",Object)],SO.prototype,"image2",void 0);_.U([_.O(),_.W("design:type",Object)],SO.prototype,"image3",void 0);_.U([_.O(),_.W("design:type",Object)],SO.prototype,"image4",void 0);_.U([_.O(),_.W("design:type",String)],SO.prototype,"image0SquigglyBackground",void 0);
_.U([_.O(),_.W("design:type",String)],SO.prototype,"image1SquigglyBackground",void 0);_.U([_.O(),_.W("design:type",String)],SO.prototype,"image3SquigglyBackground",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SO.prototype,"onDataChanged",null);_.U([_.N("isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SO.prototype,"onThemeChanged",null);
_.U([_.N("image0SquigglyBackground"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SO.prototype,"updateImage0SquigglyBackground",null);_.U([_.N("image1SquigglyBackground"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SO.prototype,"updateImage1SquigglyBackground",null);
_.U([_.N("image3SquigglyBackground"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SO.prototype,"updateImage3SquigglyBackground",null);SO=_.U([_.Q({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],SO);
_.S(SO,"ytd-handles-claiming-title-images-section-renderer",function(){if(Y6b!==void 0)return Y6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-title-images-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-title-images-section-renderer"></yt-formatted-string>\n<div id="image-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n  <div id="left-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image0" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <div id="background-image1" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title0" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title0]]"></yt-formatted-string>\n    <yt-img-shadow id="image0" height="802.21" thumbnail="[[image0]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title1" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title1]]"></yt-formatted-string>\n    <yt-img-shadow id="image1" height="436.87" thumbnail="[[image1]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="right-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image3" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title2" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title2]]"></yt-formatted-string>\n    <yt-img-shadow id="image2" height="439.5" thumbnail="[[image2]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title3" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title3]]"></yt-formatted-string>\n    <yt-img-shadow id="image3" height="334.9" thumbnail="[[image3]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title4" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title4]]"></yt-formatted-string>\n    <yt-img-shadow id="image4" height="334.9" thumbnail="[[image4]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Y6b=a},{mode:1});var $6b;var TO=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(TO,_.P);TO.prototype.ready=function(){var a=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(a)};
TO.prototype.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&this.set("isDarkTheme",a)};
TO.prototype.onCopyButtonClick=function(){var a=this,b,c,d;return _.l(function(e){return(b=a.data)!=null&&b.primaryChannelUrl?_.p(e,navigator.clipboard.writeText(((c=a.data)==null?0:c.encodedChannelUrl)?a.data.encodedChannelUrl:"https://"+_.Wp((d=a.data)==null?void 0:d.primaryChannelUrl)),0):e.jumpTo(0)})};
var UO=TO;_.U([_.O(),_.W("design:type",Object)],UO.prototype,"data",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],UO.prototype,"ytComponentBehavior",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],UO.prototype,"isDarkTheme",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],UO.prototype,"ytActionHandlerBehavior",void 0);UO=_.U([_.Q({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],UO);
_.S(UO,"ytd-handles-claiming-update-social-renderer",function(){if($6b!==void 0)return $6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-update-social-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-update-social-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <yt-formatted-string id="channel-info" text="[[data.primaryChannelInfoText]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="primary-url" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <yt-formatted-string id="primary-channel-url" text="[[data.primaryChannelUrl]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n    <yt-icon-button id="copy-icon-button" label="[[data.copyText]]" on-click="onCopyButtonClick" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <yt-icon id="copy-icon" icon="yt-icons:copy" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <yt-formatted-string id="social-title" text="[[data.socialTitle]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="socials-container" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <template is="dom-repeat" items="[[data.socialIcons]]" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <a id="social-icon" class="yt-simple-endpoint style-scope ytd-handles-claiming-update-social-renderer" href$="[[computeHref_(item.onTap)]]" data="[[item.onTap]]" tabindex="-1">\n        <yt-img-shadow height="48" thumbnail="[[item.icon]]" width="48" class="style-scope ytd-handles-claiming-update-social-renderer">\n        </yt-img-shadow>\n      </a>\n    </template>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return $6b=a},{mode:1});var a7b;var VO=function(){var a=_.P.apply(this,arguments)||this;a.JSC$13769_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";a.JSC$13769_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};a.squigglyBackground=a.JSC$13769_squigglyBackgroundLight;return a};
_.z(VO,_.P);VO.prototype.updateSquigglyBackgroundStyle=function(){_.fr(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
VO.prototype.ready=function(){var a=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",a);this.squigglyBackground=a?this.JSC$13769_squigglyBackgroundDark:this.JSC$13769_squigglyBackgroundLight};
VO.prototype.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.set("isDarkTheme",a),this.squigglyBackground=a?this.JSC$13769_squigglyBackgroundDark:this.JSC$13769_squigglyBackgroundLight)};
var WO=VO;WO.prototype.updateSquigglyBackgroundStyle=WO.prototype.updateSquigglyBackgroundStyle;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],WO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],WO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],WO.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],WO.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],WO.prototype,"isDarkTheme",void 0);_.U([_.O(),_.W("design:type",String)],WO.prototype,"squigglyBackground",void 0);_.U([_.N("squigglyBackground"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WO.prototype,"updateSquigglyBackgroundStyle",null);WO=_.U([_.Q({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],WO);
_.S(WO,"ytd-handles-claiming-vanity-info-renderer",function(){if(a7b!==void 0)return a7b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-vanity-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer"></div>\n    <div id="text-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="info-title" text="[[data.infoTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="vanity-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="vanity-title" text="[[data.vanityTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <div id="vanities" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n        <template is="dom-repeat" items="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n          <yt-formatted-string class="vanity style-scope ytd-handles-claiming-vanity-info-renderer" force-default-style="" link-inherit-color="" split-lines="" text="[[item]]"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n  </template>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return a7b=a},{mode:1});var b7b;var c7b=function(){var a=_.P.apply(this,arguments)||this;a.JSC$13772_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";a.JSC$13772_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";a.squigglyBackground=a.JSC$13772_squigglyBackgroundLight;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(c7b,_.P);_.f=c7b.prototype;_.f.ready=function(){var a=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(a)};
_.f.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.set("isDarkTheme",a),this.squigglyBackground=a?this.JSC$13772_squigglyBackgroundDark:this.JSC$13772_squigglyBackgroundLight)};
_.f.updateSquigglyBackgroundStyle=function(){_.fr(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.f.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.f.detached=function(){this.stop()};
_.f.stop=function(){this.playerElement.stop()};
_.f.setupVideoPlayer=function(){var a=this,b,c;return _.l(function(d){b=a.data.videoId;c="http://i1.ytimg.com/vi/"+b+"/maxresdefault.jpg";a.playerElement.loadVideoWithPlayerVars({video_id:b,iurlhq:c});_.ue(d)})};
var XO=c7b;XO.prototype.onDataChanged=XO.prototype.onDataChanged;XO.prototype.updateSquigglyBackgroundStyle=XO.prototype.updateSquigglyBackgroundStyle;_.U([_.O({value:!1}),_.W("design:type",Boolean)],XO.prototype,"isDarkTheme",void 0);_.U([_.O(),_.W("design:type",String)],XO.prototype,"squigglyBackground",void 0);_.U([_.ir("#player"),_.W("design:type",Object)],XO.prototype,"playerElement",void 0);_.U([_.O(),_.W("design:type",Object)],XO.prototype,"data",void 0);
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],XO.prototype,"ytActionHandlerBehavior",void 0);_.U([_.N("squigglyBackground"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XO.prototype,"updateSquigglyBackgroundStyle",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XO.prototype,"onDataChanged",null);
XO=_.U([_.Q({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],XO);
_.S(XO,"ytd-handles-claiming-video-item-renderer",function(){if(b7b!==void 0)return b7b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-video-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-video-item-renderer">\n  <div id="player-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_HANDLES_CLAIMING" player-id="handlesclaiming" class="style-scope ytd-handles-claiming-video-item-renderer">\n    </ytd-player>\n  </div>\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <div id="text-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n    </div>\n    <div id="pic-container" class="style-scope ytd-handles-claiming-video-item-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return b7b=a},{mode:1});var d7b;var ZO=function(){var a=_.kr.apply(this,arguments)||this;a.dragging=!1;a.dragMouseStart=0;a.dragOffsetStart=0;a.containerWidthDiff=0;a.boundPrevClick=function(){a.set("offset",YO(a,a.offset-(a.scrollDistance||320)))};
a.boundNextClick=function(){a.set("offset",YO(a,a.offset+(a.scrollDistance||320)))};
a.boundScrollContainerMouseDown=function(b){a.dragMouseStart=b.clientX;a.dragOffsetStart=a.offset;a.dragging=!0};
a.boundScrollContainerDrag=function(b){a.dragging&&a.set("offset",YO(a,a.dragOffsetStart-(b.clientX-a.dragMouseStart)))};
a.boundMouseUp=function(){a.onMouseUp()};
a.boundWheelScroll=function(b){var c=0;Math.abs(b.deltaX)>=Math.abs(b.deltaY)?c=b.deltaX:b.shiftKey&&(c=b.deltaY);c!==0&&(a.offset+=c,b.stopPropagation(),b.preventDefault())};
a.boundChipCloudChipScrollIntoView=function(b){(b=b.detail)&&a.scrollChipIntoView(b)};
return a};
_.z(ZO,_.kr);ZO.prototype.attached=function(){var a=_.E(this.hostElement).querySelector("#scroll-container");a.addEventListener("wheel",this.boundWheelScroll);a.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);a.style.touchAction="pan-y";a.addEventListener("pointerdown",this.boundScrollContainerMouseDown);a.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
ZO.prototype.detached=function(){var a=_.E(this.hostElement).querySelector("#scroll-container");a.removeEventListener("wheel",this.boundWheelScroll);a.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);a.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);a.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
ZO.prototype.reset=function(){this.set("offset",0);_.Qm(this,this.setContainerWidthDiff);$O(this)};
var YO=function(a,b){return Math.min(Math.max(b,0),a.containerWidthDiff)};
ZO.prototype.onMouseUp=function(){this.dragging=!1};
ZO.prototype.transformContainer=function(){this.offset=YO(this,this.offset);var a=_.Fi("HTML_DIR")==="rtl"?"":"-";_.E(this.hostElement).querySelector("#chips").style.transform="translateX("+a+this.offset+"px)";$O(this)};
var $O=function(a){_.Qm(a,a.setButtonsState)};
ZO.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=YO(this,this.offset));this.atStart=this.offset<=0};
ZO.prototype.setContainerWidthDiff=function(){var a=_.E(this.hostElement).querySelector("#scroll-container"),b=_.E(this.hostElement).querySelector("#chips");a&&b&&(this.containerWidthDiff=b.clientWidth-a.clientWidth)};
ZO.prototype.scrollChipIntoView=function(a){var b=_.E(this.hostElement).querySelector("#scroll-container");if(b){var c=this.atStart?0:106,d=this.atEnd?0:106;a.offsetLeft<this.offset+c?this.offset=YO(this,a.offsetLeft-c):a.offsetLeft+a.clientWidth>this.offset+b.clientWidth-d&&(this.offset=YO(this,a.offsetLeft+a.clientWidth+d-b.clientWidth))}};
var aP=ZO;aP.prototype.transformContainer=aP.prototype.transformContainer;_.U([_.O({value:0}),_.W("design:type",Number)],aP.prototype,"offset",void 0);_.U([_.O({value:!0,reflectToAttribute:!0}),_.W("design:type",Boolean)],aP.prototype,"atStart",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],aP.prototype,"atEnd",void 0);_.U([_.O(),_.W("design:type",Number)],aP.prototype,"scrollDistance",void 0);
_.U([_.N("offset"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aP.prototype,"transformContainer",null);aP=_.U([_.lr()],aP);var e7b;var f7b;var i7b=_.Rr(function(a){var b=a.data;a=_.h(_.ih(!1,void 0,"icHmSe"));var c=a.next().value,d=a.next().value;a={};a=_.et("ytChipShapeChip",function(){a:switch(b==null?void 0:b().state){case 0:var m="ytChipShapeActive";break a;case 1:m="ytChipShapeDisabled";break a;default:m="ytChipShapeInactive"}return m},function(){var m=b().type===1||b().type===2,n=b();
return m||n!=null&&n.startIcon?n==null||!n.startIcon||n!=null&&n.text?m?"ytChipShapeEndIconPadding":(n==null?0:n.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(a.ytChipShapeFocused=function(){var m;
return c()&&((m=b())==null?void 0:m.state)!==1},a));
var e=function(m){if((b==null?void 0:b().state)!==1){var n,r;(r=(n=b()).onTap)==null||r.call(n,m)}},g=_.lt(function(){var m=_.v().resolve(_.Xi(_.Bu));
m&&d(m.isKeyBoardInUse());return!1}),k=_.lt(function(){d(!1);
return!1});
return _.q("chip-shape",{class:"ytChipShapeHost","on:focusin":g,"on:focusout":k},_.q(g7b,{shouldWrapInButton:function(){return b().type!==2},
selected:function(){return b().state===0},
onClick:e,isDropdown:function(){return b().type===1},
accessibilityLabel:function(){return b().accessibilityLabel}},_.q("div",{class:a},_.q(_.qi,{cond:function(){return b().startIcon},
then:function(){return _.q(_.qt,{icon:function(){var m;return(m=b())==null?void 0:m.startIcon},
className:function(){return b().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return b().text},_.q(h7b,{shape:b,
onClick:e}))))},"mb");
i7b.idomCompat=!0;var g7b=_.Rr(function(a){var b=_.lt(function(c){a.onClick(c);return!1});
return _.q(_.qi,{cond:a.shouldWrapInButton,then:function(){return _.q("button",{class:"ytChipShapeButtonReset","on:click":b,role:function(){return a.isDropdown()?"combobox":"tab"},
"aria-label":a.accessibilityLabel,"aria-selected":a.selected},a.children)},
else:function(){return a.children}})},"nb"),h7b=_.Rr(function(a){var b=a.shape;
var c=a.onClick;var d=_.lt(function(e){c(e);return!1});
return _.q(_.ti,null,_.q(_.si,{when:function(){return b().type===1}},function(){return _.q(_.qt,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.q(_.si,{when:function(){return b().type===2}},function(){return _.q("button",{class:"ytChipShapeButtonReset",
"on:click":d},_.q(_.qt,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.q(_.si,{when:function(){return b().type===0}},function(){return _.q(_.Wh,null)}))},"ob");_.Ts(i7b,"chip-shape",{props:{data:_.VG}});var j7b=function(){var a=_.P.apply(this,arguments)||this;a.disableDeselectEvent=!1;a.modern=_.w("web_modern_typography");a.useChipShape=_.w("web_chip_shape_defrag");a.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return a};
_.z(j7b,_.P);_.f=j7b.prototype;_.f.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
_.f.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.f.onSelectChipCommand=function(a){if(!this.selected&&this.data&&(a=_.y(a,lAb),a.targetId&&a.targetId===this.data.targetId))this.onTap()};
_.f.onFilterChipTransformCommand=function(a){if(!this.selected&&this.data){var b;(a=(b=_.y(a,rzb))==null?void 0:b.chipUniqueId)&&a===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.f.dataChanged=function(){var a=this;_.Qm(this,function(){a.data&&a.data.isSelected&&!a.selected&&(a.scrollChipIntoView(),a.onTap())})};
_.f.selectionChanged=function(){this.useChipShape?this.data&&this.set("data.isSelected",this.selected):this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.f.computeChipStyle=function(a){return a!=null?a:"STYLE_DEFAULT"};
_.f.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.lo(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.lo(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.f.onFocus=function(){var a=_.v().resolve(_.Xi(_.Bu));a&&a.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.f.scrollChipIntoView=function(){_.io(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.Um.Object.defineProperties(j7b.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){var a=this.data;var b=this.onTap.bind(this);if(a){var c=a.style&&a.style.styleType;var d=!v9a&&c==="STYLE_EXPLORE_LAUNCHER_CHIP";var e;c=l1a(a,d);var g=(e=a.icon)==null?void 0:e.iconType;e=a.isSelected?0:2;b=m1a(a,b);if(d){var k,m,n;d=(n=(k=a.accessibilityData)==null?void 0:(m=k.accessibilityData)==null?void 0:m.label)!=null?n:l1a(a,!1)}else d=void 0;a={text:c,startIcon:g,state:e,type:0,onTap:b,accessibilityLabel:d}}else a={};return a}}});
var bP=j7b;bP.prototype.onFocus=bP.prototype.onFocus;bP.prototype.onTap=bP.prototype.onTap;bP.prototype.selectionChanged=bP.prototype.selectionChanged;bP.prototype.dataChanged=bP.prototype.dataChanged;_.U([_.H(_.ID),_.W("design:type",Object)],bP.prototype,"ironButtonState",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],bP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],bP.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],bP.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.FD),_.W("design:type",Object)],bP.prototype,"ironA11yKeysBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],bP.prototype,"disableDeselectEvent",void 0);_.U([_.O(),_.W("design:type",Object)],bP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data.icon"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],bP.prototype,"hasIcon",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data.uniqueId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],bP.prototype,"isGnomeChip",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],bP.prototype,"modern",void 0);_.U([_.O({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.W("design:type",String)],bP.prototype,"chipStyle",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],bP.prototype,"selected",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],bP.prototype,"useChipShape",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data.isSelected"),_.W("design:type",Object),_.W("design:paramtypes",[])],bP.prototype,"chipShapeData",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bP.prototype,"dataChanged",null);
_.U([_.N("selected"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bP.prototype,"selectionChanged",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bP.prototype,"onTap",null);_.U([_.M("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bP.prototype,"onFocus",null);bP=_.U([_.wr({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],bP);
_.S(bP,"yt-chip-cloud-chip-renderer",function(){if(f7b===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n<div id="chip-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <yt-icon class="leading-icon style-scope yt-chip-cloud-chip-renderer" hidden="[[!hasIcon]]" icon="[[data.icon.iconType]]">\n    </yt-icon>\n    <yt-formatted-string id="text" ellipsis-truncate="" text="[[data.text]]" class="style-scope yt-chip-cloud-chip-renderer">\n    </yt-formatted-string>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;e7b===void 0&&(e7b=document.createElement("template"));var d=e7b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);f7b=a}a=f7b;return a},{mode:2});var k7b=function(){var a=_.P.apply(this,arguments)||this;a.isDarkTheme=!1;a.notSticky=!1;a.transparentBackground=!1;a.shouldHide=!1;a.disableSticky=!1;a.fluidWidth=!1;a.isClipList=!1;a.defaultChipIndex=0;a.isPlaylist=!1;a.playlistVotingAnimationEnabled=_.w("web_enable_voting_animation");a.toolbarHeight=0;a.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return a};
_.z(k7b,_.P);_.f=k7b.prototype;
_.f.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundPrevClick]]"},params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.f.attached=function(){var a=this;document.addEventListener("scroll",_.gr(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var b;this.toolbarHeight=((b=document.querySelector("ytd-masthead"))==null?void 0:b.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(c){a.handleIntersect(c)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){a.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.f.detached=function(){var a;(a=this.intersectionObserver)==null||a.disconnect();var b;(b=this.resizeObserver)==null||b.disconnect();document.removeEventListener("scroll",_.gr(this,this.updateChipBarWidthAndTop))};
_.f.dataChanged=function(){var a=this,b,c,d;((d=_.y((b=this.data)==null?void 0:(c=b.contents)==null?void 0:c[0],FEb))==null?void 0:d.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var e=this.findSelectedChipIndex();this.selectedIndex!==e&&(this.selectedIndex=-1);_.Qm(this,function(){a.selectedIndex=e;a.updating=!1;a.ytScrollableChipCloudBehavior.reset()})};
_.f.findSelectedChipIndex=function(){var a;if((a=this.data)==null||!a.contents)return 0;a=this.data.contents;for(var b=0;b<a.length;b++){var c=void 0;if((c=_.y(a[b],FEb))==null?0:c.isSelected)return b}return 0};
_.f.computeStyle=function(a){return a};
_.f.handleChipCloudChipSelectAction=function(a){a=this.JSC$13791_chipsSelector.indexOf(a);a>-1&&this.JSC$13791_chipsSelector.selectIndex(a)};
_.f.handleChipCloudChipDeselectAction=function(){if(_.w("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var a,b,c,d=(c=_.y((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],FEb))==null?void 0:c.navigationEndpoint;d&&_.lo(this.hostElement,"yt-browse-section-list-reload-endpoint",[d]);this.JSC$13791_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.f.onGuideIsExpandedChanged=function(){var a=this.ytScrollableChipCloudBehavior;_.Qm(a,a.setContainerWidthDiff);$O(this.ytScrollableChipCloudBehavior)};
_.f.onResize=function(){var a=this.ytScrollableChipCloudBehavior;_.Qm(a,a.setContainerWidthDiff);$O(this.ytScrollableChipCloudBehavior)};
_.f.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.f.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.f.handleIntersect=function(a){_.w("disable_chips_intersection_observer")||(this.notSticky=this.isChannelPageGrid||this.disableSticky||a[0].intersectionRatio===1)};
_.f.updateDimensions=function(){var a=this.ytRendererBehavior.parentComponent;if(a){var b,c=(b=a.headerElement)!=null?b:a;_.fr(this.hostElement,{"--ytd-rich-grid-chips-bar-width":c.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.f.updateSelectedIndexFromBinding=function(a){this.selectedIndex=a.detail.value};
_.f.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var a;(a=this.sortFilterHeaderRendererElement)==null||a.setAttribute("is-playlist-page-with-filters","")}};
_.f.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(_.hp({type:"SET_CHIP_BAR_IS_STICKY",payload:!this.notSticky}))};
_.Um.Object.defineProperties(k7b.prototype,{isChannelPageGrid:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_CHANNEL_PAGE_GRID"}},
isHashtagLandingPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_HASHTAG_LANDING_PAGE"}},
isPlaylistPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_PLAYLIST_PAGE"}},
isDisableDeselectEvent:{configurable:!0,enumerable:!0,get:function(){return this.isChannelPageGrid||this.isHashtagLandingPage||this.isPlaylistPage}},
sortFilterHeaderRendererData:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.data)==null?void 0:(b=a.contents)==null?void 0:b.find(function(d){return _.y(d,JEb)});
return{sortFilterHeaderRenderer:_.y(c,JEb)}}}});
var cP=k7b;cP.prototype.dispatchChipBarIsSticky=cP.prototype.dispatchChipBarIsSticky;cP.prototype.isPlaylistPageChanged=cP.prototype.isPlaylistPageChanged;cP.prototype.updateChipBarWidthAndTop=cP.prototype.updateChipBarWidthAndTop;cP.prototype.onResize=cP.prototype.onResize;cP.prototype.onGuideIsExpandedChanged=cP.prototype.onGuideIsExpandedChanged;cP.prototype.dataChanged=cP.prototype.dataChanged;
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],cP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],cP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],cP.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.OD),_.W("design:type",Object)],cP.prototype,"ironResizableBehavior",void 0);_.U([_.H(),_.W("design:type",aP)],cP.prototype,"ytScrollableChipCloudBehavior",void 0);
_.U([_.H(_.OI),_.W("design:type",Object)],cP.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],cP.prototype,"data",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],cP.prototype,"selectedIndex",void 0);_.U([_.O({value:320}),_.W("design:type",Number)],cP.prototype,"scrollDistance",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],cP.prototype,"isDarkTheme",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],cP.prototype,"notSticky",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],cP.prototype,"transparentBackground",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.W("design:type",String)],cP.prototype,"componentStyle",void 0);_.U([_.O({selector:_.wFa}),_.W("design:type",Boolean)],cP.prototype,"guideIsExpanded",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],cP.prototype,"shouldHide",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],cP.prototype,"disableSticky",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],cP.prototype,"fluidWidth",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],cP.prototype,"isClipList",void 0);_.U([_.O(),_.W("design:type",Object)],cP.prototype,"defaultChipIndex",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],cP.prototype,"isPlaylist",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],cP.prototype,"playlistVotingAnimationEnabled",void 0);_.U([_.ir("#chips"),_.W("design:type",Object)],cP.prototype,"JSC$13791_chipsSelector",void 0);_.U([_.ir("ytd-sort-filter-header-renderer"),_.W("design:type",HTMLElement)],cP.prototype,"sortFilterHeaderRendererElement",void 0);
_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],cP.prototype,"updating",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cP.prototype,"dataChanged",null);_.U([_.N("guideIsExpanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cP.prototype,"onGuideIsExpandedChanged",null);
_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cP.prototype,"onResize",null);_.U([_.mr("isChannelPageGrid","disableSticky","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cP.prototype,"updateChipBarWidthAndTop",null);_.U([_.K("componentStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],cP.prototype,"isChannelPageGrid",null);
_.U([_.K("componentStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],cP.prototype,"isHashtagLandingPage",null);_.U([_.N("isPlaylistPage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cP.prototype,"isPlaylistPageChanged",null);_.U([_.K("componentStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],cP.prototype,"isPlaylistPage",null);
_.U([_.K("componentStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],cP.prototype,"isDisableDeselectEvent",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],cP.prototype,"sortFilterHeaderRendererData",null);_.U([_.O({reflectToAttribute:!0,selector:_.CFa}),_.W("design:type",String)],cP.prototype,"frostedGlassMode",void 0);
_.U([_.N("notSticky"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cP.prototype,"dispatchChipBarIsSticky",null);cP=_.U([_.Q({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],cP);
_.S(cP,"ytd-feed-filter-chip-bar-renderer",function(){if(d7b!==void 0)return d7b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return d7b=a},{mode:1});var l7b;var m7b=_.Rr(function(a){var b=a.data;var c=a.buttonIndex;var d=a.selectedIndex;var e=a.onSelect;var g=function(){return c()===d()},k=function(){var n,r;
return(r=(n=b().text)==null?void 0:n.content)!=null?r:""};
_.lt(function(){});
a=_.Uu();var m=_.lt(function(){e(b().onSubmitCommand);return!1});
return _.q("yt-toggleable-image-button-view-model",{class:function(){var n={};n=(n["toggleable-image-button-view-model-wiz"]=!0,n[""]=!0,n["toggleable-image-button-view-model-wiz__semi-transparent"]=d()!==-1&&!g(),n);return _.ht(n)},
tabindex:0,"aria-label":k,"aria-pressed":g,role:"button","on:keydown":a,"on:click":m},_.q(_.qi,{cond:function(){return b().logo},
then:function(n){return _.q(_.Ps,{data:n,className:function(){var r={};r=(r["toggleable-image-button-view-model-wiz__image"]=!0,r["toggleable-image-button-view-model-wiz__circular-radius"]=!(!b().backgroundColor||!b().backgroundColorDarkMode),r["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(g()&&b().backgroundColor&&b().backgroundColorDarkMode),r);return _.ht(r)},
alt:k,useWidth:!1,style:function(){if(g()&&b().backgroundColor&&b().backgroundColorDarkMode){var r=Eq(Number(b().backgroundColorDarkMode),"1");var t=Eq(Number(b().backgroundColor),"1");r="background: linear-gradient(180deg,"+r+","+t+") border-box;"}else r="";return r}})}}),_.q(_.ut,{model:{borderRadius:"16px"}}),_.q("p",{class:function(){var n={};
n=(n["toggleable-image-button-view-model-wiz__label"]=!0,n["toggleable-image-button-view-model-wiz__bold-text"]=g(),n);return _.ht(n)}},_.q(_.tt,{text:function(){return b().text}})))},"pb");
m7b.idomCompat=!0;var o7b=_.Rr(function(a){var b=a.data;a=_.h(_.ih({index:-1,command:{}},void 0,"Zcqtsb"));var c=a.next().value,d=a.next().value;return _.q("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.q("div",{class:"nudge-form-view-model-wiz__form-options"},_.q(_.Hu,{data:function(){return b().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(e,g){return _.q(m7b,{data:e.data,buttonIndex:g,selectedIndex:function(){return c().index},
onSelect:function(k){d({index:g(),command:k})}})}})),_.q(_.tt,{text:function(){return b().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.q("div",{class:"nudge-form-view-model-wiz__submit"},_.q(_.Hu,{data:function(){return b().submitButton}},{buttonViewModel:function(e){return _.q(n7b,{data:e.data,
isDisabled:function(){return c().index===-1},
onClick:function(){_.Gs(c().command)}})}})))},"qb");
o7b.idomCompat=!0;var n7b=_.Rr(function(a){var b=_.ph(function(){return Object.assign({},a.data(),{state:a.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.q(_.Qu,{data:b,onClick:a.onClick})},"rb");_.Ts(o7b,"yt-nudge-form-view-model",{props:{data:_.VG}});var p7b=function(){var a=_.P.apply(this,arguments)||this;a.roundedContainer=!0;a.buttonUpdate=_.w("web_modern_buttons");a.isDarkMode=!1;a.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return a};
_.z(p7b,_.P);_.f=p7b.prototype;_.f.computeNudgeStyle=function(a){return a?"modernized-nudge":""};
_.f.handleDarkModeToggledAction=function(a){this.isDarkMode=a};
_.f.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.f.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{chipCloudChipRenderer:"yt-chip-cloud-chip-renderer",nudgeFormViewModel:"yt-nudge-form-view-model"}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",
mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.f.computeIsHorizontalButtons=function(a){return a?!!a.applyModernizedStyle&&!!a.enableHorizontalButtons&&!!a.secondaryButton:!1};
_.Um.Object.defineProperties(p7b.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.data)==null?void 0:a.backgroundStyle)!=null?b:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.data)==null?void 0:a.contentsLocation)!=null?b:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null?0:a.lightIconImage)}}});
var dP=p7b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],dP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],dP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],dP.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],dP.prototype,"actionHandlerBehavior",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("isHideEnclosingAction"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],dP.prototype,"isHidden",null);_.U([_.O(),_.W("design:type",Object)],dP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],dP.prototype,"roundedContainer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],dP.prototype,"buttonUpdate",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.W("design:type",String)],dP.prototype,"nudgeStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data.trimStyle"),_.W("design:type",String),_.W("design:paramtypes",[])],dP.prototype,"trimStyle",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.backgroundStyle"),_.W("design:type",String),_.W("design:paramtypes",[])],dP.prototype,"backgroundStyle",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data.contentsLocation"),_.W("design:type",String),_.W("design:paramtypes",[])],dP.prototype,"contentsLocation",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.disableDropShadow"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],dP.prototype,"noShadow",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.lightIconImage"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],dP.prototype,"noIcon",null);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.W("design:type",Boolean)],dP.prototype,"isHorizontalButtons",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Object)],dP.prototype,"isDarkMode",void 0);dP=_.U([_.Q({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],dP);
_.S(dP,"ytd-feed-nudge-renderer",function(){if(l7b!==void 0)return l7b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-nudge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismiss-button" class="style-scope ytd-feed-nudge-renderer"></div>\n  <div id="content-wrapper" class="style-scope ytd-feed-nudge-renderer">\n    <div id="header-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="image-container" hidden="[[!data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        <yt-img-shadow id="nudge-image" height="32" thumbnail="[[data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        </yt-img-shadow>\n      </div>\n    </div>\n    <div id="text-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="title-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n      <div id="subtitle-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="subtitle" split-lines="" text="[[data.subtitle]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="contents" hidden="[[!data.contents]]" class="style-scope ytd-feed-nudge-renderer"></div>\n    <div id="button-container" hidden="[[!data.primaryButton]]" class="style-scope ytd-feed-nudge-renderer">\n      <div id="primary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n      <div id="secondary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismissed-content" class="style-scope ytd-feed-nudge-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return l7b=a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var q7b;var r7b;var eP=function(){var a=_.P.apply(this,arguments)||this;a.collapsed=!1;a.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return a};
_.z(eP,_.P);eP.prototype.configureRendererStamper=function(){return{"data.content":{id:"rating-survey",mapping:{ratingSurveyRenderer:{component:"ytd-rating-survey-renderer",params:{isSlimlineSurvey:!0,showResponseRangeText:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
eP.prototype.handleRatingSelect=function(){var a;((a=this.data)==null?0:a.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
eP.prototype.handleShowSurvey=function(){this.collapsed=!1};
var fP=eP;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],fP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],fP.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],fP.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],fP.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.QI),_.W("design:type",Object)],fP.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],fP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],fP.prototype,"collapsed",void 0);fP=_.U([_.Q({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],fP);
_.S(fP,"ytd-slimline-survey-renderer",function(){if(r7b!==void 0)return r7b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slimline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-slimline-survey-renderer">\n  <div id="content-wrapper" class="style-scope ytd-slimline-survey-renderer">\n    <div id="header-container" class="style-scope ytd-slimline-survey-renderer">\n      <div id="title-container" class="style-scope ytd-slimline-survey-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-slimline-survey-renderer"></yt-formatted-string>\n      </div>\n      <div id="dismiss-button" class="style-scope ytd-slimline-survey-renderer"></div>\n    </div>\n    <div id="rating-survey" class="style-scope ytd-slimline-survey-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-slimline-survey-renderer">\n  <div id="dismissed-content" class="style-scope ytd-slimline-survey-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return r7b=a},{mode:1});var s7b;var t7b=function(){return _.P.apply(this,arguments)||this};
_.z(t7b,_.P);t7b.prototype.maybeGetBackgroundColor=function(a){return this.isDarkMode?a.section2Color:a.section3Color};
t7b.prototype.colorPaletteChanged=function(){var a=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;a&&(a==null?0:a.secondaryTitleColor)&&this.maybeGetBackgroundColor(a)?(this.hostElement.style.backgroundColor=_.Cq(this.maybeGetBackgroundColor(a)),this.hostElement.style.color=_.Cq(a.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
var gP=t7b;gP.prototype.colorPaletteChanged=gP.prototype.colorPaletteChanged;_.U([_.H(_.OI),_.W("design:type",Object)],gP.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],gP.prototype,"data",void 0);_.U([_.O({selector:function(a){return a.ui.darkModeIsEnabled}}),
_.W("design:type",Boolean)],gP.prototype,"isDarkMode",void 0);_.U([_.O(),_.W("design:type",Object)],gP.prototype,"lightColorPalette",void 0);_.U([_.O(),_.W("design:type",Object)],gP.prototype,"darkColorPalette",void 0);_.U([_.N("darkColorPalette","lightColorPalette","data","isDarkMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gP.prototype,"colorPaletteChanged",null);gP=_.U([_.Q({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],gP);
_.S(gP,"ytd-endorsement-header-renderer",function(){if(s7b!==void 0)return s7b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-endorsement-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-endorsement-header-renderer"></yt-icon>\n<yt-formatted-string id="text" text="[[data.title]]" class="style-scope ytd-endorsement-header-renderer"></yt-formatted-string>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return s7b=a},{mode:1});_.Ts(_.RK,"yt-decorated-avatar-view-model",{props:{data:_.VG,className:_.VG}});var u7b=function(){var a=_.P.apply(this,arguments)||this;a.fullHeight=_.w("web_rich_grid_media_full_height");a.showChannelAvatar=!0;a.hasPlaylistThumbnail=!1;a.prepareThumbnailForPageTransition=function(){_.w("web_thumbnail_to_watch_transition")&&(a.thumbnail.style.viewTransitionName="thumbnail-to-watch",a.cleanupThumbnailAfterPageTransition(a.thumbnail))};
return a};
_.z(u7b,_.P);_.f=u7b.prototype;
_.f.configureRendererStamper=function(){return{lazyLoadMenu:CK,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"decorated-avatar",mapping:{decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.f.attached=function(){this.updateInlinePreviewHoverListeners()};
_.f.detached=function(){this.clearInlinePreviewHoverListeners()};
_.f.shouldLazyLoadMenu=function(){var a=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.w("kevlar_modern_downloads_page")||!a};
_.f.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13816_inlinePreviewHoverListener=dv({mediaRenderer:this,lockupElement:this.JSC$13816_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.f.getVideoPreviewOpts=function(){var a={},b;if((b=this.data)==null?0:b.multipleInlinePlaybackEndpoint)a=M_b;this.isRadio&&(a=L_b);return _.w("web_thumbnail_to_watch_transition")?Object.assign({},a,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):a};
_.f.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$13816_inlinePreviewHoverListener)==null||uv(a)};
_.f.getOwner=function(){var a,b,c;return((a=this.data)==null?void 0:(b=a.channelThumbnailSupportedRenderers)==null?void 0:b.channelThumbnailWithLinkRenderer)||_.y((c=this.data)==null?void 0:c.showProviderChannelThumbnail,Czb)};
_.f.updateLockupSize=function(){var a;((a=this.getOwner())==null?0:a.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.f.getFeedbackEndpoint=function(a){if(_.y(a,_.Uw))return a;var b,c;a=(c=(b=_.y(a,_.ro))==null?void 0:b.commands)!=null?c:[];b=_.h(a);for(c=b.next();!c.done;c=b.next())if(c=this.getFeedbackEndpoint(c.value))return c;return null};
_.f.computeNavigationEndpoint=function(a){return CDa(a==null?void 0:a.navigationEndpoint)};
_.f.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var a=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(a)!==JSON.stringify(this.data)&&this.set("data",a)}};
_.f.onDataChanged=function(){var a=this,b=this.getOwner();if(b){this.set("data.owner",b);var c,d,e,g,k,m=((c=this.data)==null?void 0:(d=c.shortBylineText)==null?void 0:(e=d.runs)==null?void 0:(g=e[0])==null?void 0:g.text)||((k=b.name)==null?void 0:k.simpleText);this.set("data.owner.title",m)}var n,r,t,u,x,A;b=((n=this.data)==null?void 0:(r=n.thumbnailRenderer)==null?void 0:r.playlistVideoThumbnailRenderer)||((t=this.data)==null?void 0:(u=t.thumbnailRenderer)==null?void 0:u.playlistCustomThumbnailRenderer)||
((x=this.data)==null?void 0:(A=x.thumbnailRenderer)==null?void 0:A.showCustomThumbnailRenderer);var C;((C=this.data)==null?0:C.thumbnail)||!b||this.set("data.thumbnail",b.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){a.updateLockupSize()});
var F;if(n=((F=this.data)==null?void 0:F.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(n);var J;((J=this.dismissActionToReplayEntity)==null?0:J.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.f.onHiddenChanged=function(){this.updateLockupSize()};
_.f.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.lo(this.hostElement,"yt-terminate-video-preview-action");else{var a;(a=this.videoTitleLink)==null||a.focus()}};
_.f.metadataColorChanged=function(){var a;if(this.metadataColor&&((a=this.videoTitle)==null?0:a.style))this.videoTitle.style.color=_.Cq(this.metadataColor);else{var b,c;!this.metadataColor&&((b=this.videoTitle)==null?0:(c=b.style)==null?0:c.color)&&(this.videoTitle.style.color="")}};
_.f.onDetailsClick=function(a){var b=this.computedNavigationEndpoint;b&&(_.Wt(_.Rq(a),this.hostElement,["A","BUTTON"])||_.io(this.hostElement,"yt-navigate",{endpoint:b}))};
_.f.cleanupThumbnailAfterPageTransition=function(a){_.Gsa(document,"yt-page-type-changed",function(){a.style.viewTransitionName=""})};
_.f.onRendererTap=function(){this.prepareThumbnailForPageTransition();var a,b,c=((a=this.data)==null?void 0:a.serviceEndpoint)||this.getFeedbackEndpoint((b=this.data)==null?void 0:b.navigationEndpoint);c&&_.y(c,_.Uw)&&this.ytComponentBehavior.resolveCommand(c)};
_.f.onMouseDown=function(a){var b=a.target,c=this.computedNavigationEndpoint,d;a=b.href||((d=_.y(c==null?void 0:c.commandMetadata,_.co))==null?void 0:d.url);d=b.data||c;a&&d&&HTa(a,d)};
_.f.computeVideoTitleText=function(){var a;if((a=this.data)==null?0:a.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.f.computeHasPlaylistThumbnail=function(a){var b,c,d,e,g;if((((b=a.thumbnailRenderer)==null?0:b.playlistVideoThumbnailRenderer)||((c=a.thumbnailRenderer)==null?0:c.playlistCustomThumbnailRenderer)||((d=a.thumbnailRenderer)==null?0:d.showCustomThumbnailRenderer)||((e=a.thumbnailRenderer)==null?0:e.playlistVideoThumbnailRenderer)||((g=a.thumbnailRenderer)==null?0:g.playlistCustomThumbnailRenderer))&&a.thumbnailOverlays)for(b=0;b<a.thumbnailOverlays.length;b++)if(c=void 0,(c=a.thumbnailOverlays[b])==
null?0:c.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Um.Object.defineProperties(u7b.prototype,{lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var a;return(a=this.data)==null?void 0:a.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var a;return(a=this.data)==null?void 0:a.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$13816_inlinePreviewHoverListener)==null?0:UK(a))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.hIa(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:a.videoId)||((b=this.data)==null?void 0:b.playlistId)||""}}});
var hP=u7b;hP.prototype.onMouseDown=hP.prototype.onMouseDown;hP.prototype.metadataColorChanged=hP.prototype.metadataColorChanged;hP.prototype.onIsDismissedChanged=hP.prototype.onIsDismissedChanged;hP.prototype.onHiddenChanged=hP.prototype.onHiddenChanged;hP.prototype.onDataChanged=hP.prototype.onDataChanged;hP.prototype.handleReloadDownloadsInfo=hP.prototype.handleReloadDownloadsInfo;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],hP.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],hP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],hP.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],hP.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.$I),_.W("design:type",Object)],hP.prototype,"ytdLockupBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],hP.prototype,"ytdReduxBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],hP.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],hP.prototype,"entitySelectorType",void 0);_.U([_.O(),_.W("design:type",Boolean)],hP.prototype,"noEndpoints",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],hP.prototype,"isRadio",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Fp}),_.W("design:type",Boolean)],hP.prototype,"miniMode",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],hP.prototype,"fullHeight",void 0);
_.U([_.O(),_.W("design:type",Boolean)],hP.prototype,"showDarkVideoMetadata",void 0);_.U([_.O(),_.W("design:type",Boolean)],hP.prototype,"showLightVideoMetadata",void 0);_.U([_.O(),_.W("design:type",Number)],hP.prototype,"metadataColor",void 0);_.U([_.O(),_.W("design:type",Object)],hP.prototype,"showChannelAvatar",void 0);_.U([_.O(),_.W("design:type",Boolean)],hP.prototype,"hidden",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],hP.prototype,"showYtInteraction",void 0);
_.U([_.O(),_.W("design:type",String)],hP.prototype,"dismissedContentId",void 0);_.U([_.O({selectorArgs:["dismissedContentId"],selector:sVa}),_.W("design:type",Object)],hP.prototype,"dismissActionToReplayEntity",void 0);
_.U([_.O({selectorArgs:["entitySelectorType","mediaId"],selector:function(a,b,c){if(_.w("kevlar_modern_downloads_page")&&c&&b&&b!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(b){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var d=GFa(a,c);if(d){b=_.Kp(a,c);var e=Mp(a,c),g=QFa(a,c);a=Np(a,c);var k=tGa(d,b,e,g);e=k.shortViewCountText;var m=k.publishedTimeText;k=k.badges;var n=a>0;g=rGa(d,b,g,a);d=_.xp(b)||b==="TRANSFER_STATE_FAILED"||b==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!wp(d.policyEntity)?
void 0:ADa(c,a,d.videoEntity.lengthSeconds);b==="TRANSFER_STATE_PAUSED_BY_USER"&&c&&!_.w("dl_resume_click_killswitch")&&(d={offlineVideoEndpoint:{videoId:c,action:"ACTION_RESUME"}});c={shortViewCountText:e,publishedTimeText:m,badges:k,isWatched:n,navigationEndpoint:d,thumbnailOverlays:g}}else c=void 0;return c;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(b=HFa(a,c))if(d=_.Lp(a,c),g=_.IFa(a,c),d!=="TRANSFER_STATE_UNKNOWN"){c=sGa(b,d,g,c,Jp(a));break a}c=void 0}return c;default:_.Dl(new _.qj("Error: entitySelectorType defined but not matched in selector.",
a,b))}}}),
_.W("design:type",Object)],hP.prototype,"entityDrivenState",void 0);_.U([_.O({computed:"computeVideoTitleText(data)"}),_.W("design:type",Object)],hP.prototype,"videoTitleText",void 0);_.U([_.O({computed:"computeHasPlaylistThumbnail(data)"}),_.W("design:type",Object)],hP.prototype,"hasPlaylistThumbnail",void 0);_.U([_.O({computed:"computeNavigationEndpoint(data)"}),_.W("design:type",Object)],hP.prototype,"computedNavigationEndpoint",void 0);
_.U([_.ir("#video-title"),_.W("design:type",HTMLElement)],hP.prototype,"videoTitle",void 0);_.U([_.ir("#video-title-link"),_.W("design:type",HTMLElement)],hP.prototype,"videoTitleLink",void 0);_.U([_.ir("#thumbnail"),_.W("design:type",HTMLElement)],hP.prototype,"thumbnail",void 0);_.U([_.ir("#dismissible"),_.W("design:type",HTMLElement)],hP.prototype,"JSC$13816_dismissibleMedia",void 0);_.U([_.K("data.menu"),_.W("design:type",Object),_.W("design:paramtypes",[])],hP.prototype,"lazyLoadMenu",null);
_.U([_.K("data.menu"),_.W("design:type",Object),_.W("design:paramtypes",[])],hP.prototype,"immediateLoadMenu",null);_.U([_.mr("entityDrivenState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hP.prototype,"handleReloadDownloadsInfo",null);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hP.prototype,"onDataChanged",null);
_.U([_.mr("hidden"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hP.prototype,"onHiddenChanged",null);_.U([_.N("isDismissed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hP.prototype,"onIsDismissedChanged",null);_.U([_.N("metadataColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hP.prototype,"metadataColorChanged",null);
_.U([_.M("mousedown"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],hP.prototype,"onMouseDown",null);_.U([_.K("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],hP.prototype,"isHovered",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],hP.prototype,"useAvatar",null);_.U([_.K("data","entitySelectorType"),_.W("design:type",String),_.W("design:paramtypes",[])],hP.prototype,"mediaId",null);
hP=_.U([_.Q({is:"ytd-rich-grid-media",disableElementRegistration:!0})],hP);
var v7b=_.$r()(hP,"ytd-rich-grid-media",function(){if(q7b!==void 0)return q7b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="decorated-avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta=""></ytd-video-meta-block><ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-media" badges="[[data.badges]]" hidden="[[!data.badges]]"></ytd-badge-supported-renderer><ytd-badge-supported-renderer class="title-badge style-scope ytd-rich-grid-media" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]"></ytd-badge-supported-renderer><yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string><div id="buttons" class="style-scope ytd-rich-grid-media"></div></div><div id="menu" class="style-scope ytd-rich-grid-media"></div><div id="immediate-load-menu" class="style-scope ytd-rich-grid-media"></div></div><div id="attached-survey" class="style-scope ytd-rich-grid-media"></div></div><div id="dismissed" light$="[[showLightVideoMetadata]]" dark$="[[showDarkVideoMetadata]]" class="style-scope ytd-rich-grid-media"><div id="dismissed-content" class="style-scope ytd-rich-grid-media"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-media" hidden="[[!showYtInteraction]]"></yt-interaction>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return q7b=a},{mode:_.as("kevlar_poly_si_batch_j072")?1:2});var w7b;var x7b=function(){var a=_.P.apply(this,arguments)||this;a.removeMaxWidth=!0;a.insetMetadata=!1;return a};
_.z(x7b,_.P);_.f=x7b.prototype;_.f.configureRendererStamper=function(){return{innerMenu:CK,outerMenu:Object.assign({},CK,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.f.onDataChanged=function(){var a,b=((a=this.data)==null?void 0:a.trackingParams)||"";b&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(b));var c;((c=this.dismissActionToReplayEntity)==null?0:c.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.f.attached=function(){this.updateInlinePreviewHoverListeners()};
_.f.detached=function(){this.clearInlinePreviewHoverListeners()};
_.f.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$13822_inlinePreviewHoverListener=dv({mediaRenderer:this,lockupElement:this.JSC$13822_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:r0a})};
_.f.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$13822_inlinePreviewHoverListener)==null||uv(a)};
_.f.onRendererTap=function(){var a,b,c=(a=this.data)==null?void 0:(b=a.serviceEndpoints)==null?void 0:b[0];_.y(c,_.Uw)&&this.componentBehavior.resolveCommand(c)};
_.f.onDetailsClick=function(a){var b,c=(b=this.data)==null?void 0:b.navigationEndpoint;c&&(_.Wt(_.Rq(a),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(c))};
_.f.onShow=function(){var a=this.data;a.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(a.onFirstVisibleCommand),delete a.onFirstVisibleCommand)};
_.Um.Object.defineProperties(x7b.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var a;return this.insetMetadata?void 0:(a=this.data)==null?void 0:a.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var a;return this.insetMetadata?(a=this.data)==null?void 0:a.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var a=this.data;if(a!=null&&a.badge&&(a=_.y(a.badge,yEb))){var b,c,d;return[{metadataBadgeRenderer:{label:((b=a.label)==null?void 0:(c=b.runs)==null?void 0:c[0].text)||((d=a.label)==null?void 0:d.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var a=this.data;return Object.assign({},a.headline,{accessibility:a.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return this.isSlimShort?(a=this.computedTitle)==null?void 0:(b=a.accessibility)==null?void 0:(c=b.accessibilityData)==null?void 0:c.label:void 0}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$13822_inlinePreviewHoverListener)==null?0:UK(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var iP=x7b;iP.prototype.onDataChanged=iP.prototype.onDataChanged;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],iP.prototype,"componentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],iP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.$I),_.W("design:type",Object)],iP.prototype,"ytdLockupBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],iP.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.QI),_.W("design:type",Object)],iP.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],iP.prototype,"ytdReduxBehavior",void 0);_.U([_.ir("ytd-thumbnail"),_.W("design:type",HTMLElement)],iP.prototype,"thumbnail",void 0);_.U([_.ir("#dismissible"),_.W("design:type",HTMLElement)],iP.prototype,"JSC$13822_dismissibleMedia",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],iP.prototype,"removeMaxWidth",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],iP.prototype,"insetMetadata",void 0);_.U([_.O(),_.W("design:type",String)],iP.prototype,"dismissedContentId",void 0);_.U([_.O({selectorArgs:["dismissedContentId"],selector:sVa}),_.W("design:type",Object)],iP.prototype,"dismissActionToReplayEntity",void 0);_.U([_.K("insetMetadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],iP.prototype,"thumbnailObjectFit",null);
_.U([_.K("data","insetMetadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],iP.prototype,"innerMenu",null);_.U([_.K("data","insetMetadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],iP.prototype,"outerMenu",null);_.U([_.O(),_.W("design:type",Object)],iP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Fp}),_.W("design:type",Boolean)],iP.prototype,"miniMode",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iP.prototype,"onDataChanged",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],iP.prototype,"shortsBadges",null);_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iP.prototype,"isShort",null);_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iP.prototype,"isSlimShort",null);
_.U([_.K("data","isShort"),_.W("design:type",Object),_.W("design:paramtypes",[])],iP.prototype,"computedTitle",null);_.U([_.K("isSlimShort","computedTitle"),_.W("design:type",Object),_.W("design:paramtypes",[])],iP.prototype,"computedAccessibilityLabel",null);_.U([_.K("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iP.prototype,"isHovered",null);iP=_.U([_.Q({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],iP);
_.S(iP,"ytd-rich-grid-slim-media",function(){if(w7b!==void 0)return w7b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-slim-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-click="onRendererTap" class="style-scope ytd-rich-grid-slim-media">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" no-rounded-corners="[[isSlimShort]]" object-fit="[[thumbnailObjectFit]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-slim-media">\n  </ytd-thumbnail>\n  <div id="details" on-click="onDetailsClick" role="heading" aria-label$="[[computedAccessibilityLabel]]" class="style-scope ytd-rich-grid-slim-media">\n    <h3 class="style-scope ytd-rich-grid-slim-media">\n      <a class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-slim-media" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(computedTitle)]]" aria-label$="[[computedTitle.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">\n        <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-rich-grid-slim-media">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" class="style-scope ytd-rich-grid-slim-media">[[getSimpleString(computedTitle)]]</span>\n      </a>\n    </h3>\n    <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-rich-grid-slim-media"> [[getSimpleString(data.metadata)]] </span>\n    <ytd-video-meta-block class="grid style-scope ytd-rich-grid-slim-media" data="[[data]]" is-slim-short="[[isSlimShort]]" rich-meta="">\n    </ytd-video-meta-block>\n    <div id="menu" class="style-scope ytd-rich-grid-slim-media"></div>\n  </div>\n  <div id="menu-outer" class="style-scope ytd-rich-grid-slim-media"></div>\n  \n  <template is="dom-if" if="[[!isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[data.badges]]" hidden="[[!data.badges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n  <template is="dom-if" if="[[isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[shortsBadges]]" hidden="[[!shortsBadges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-grid-slim-media">\n  <div id="dismissed-content" class="style-scope ytd-rich-grid-slim-media"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-slim-media"></yt-interaction>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return w7b=a},{mode:_.as("kevlar_poly_si_batch_j063")?1:2});var y7b;var z7b;var jP=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.w("web_darker_dark_theme");return a};
_.z(jP,_.P);jP.prototype.computeIcon=function(a){return a&&a.iconType?"yt-sys-icons:"+a.iconType.toLowerCase():""};
jP.prototype.onMouseEnter=function(){this.isHovered=!0};
jP.prototype.onMouseLeave=function(){this.isHovered=!1};
var kP=jP;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],kP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],kP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],kP.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],kP.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],kP.prototype,"isHovered",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],kP.prototype,"darkerDarkTheme",void 0);kP=_.U([_.Q({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],kP);
_.S(kP,"ytd-expand-on-hover-card-renderer",function(){if(z7b!==void 0)return z7b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expand-on-hover-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="card" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline" on-mouseenter="onMouseEnter"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string></div></div><div id="overlay" hidden="[[!isHovered]]" on-mouseleave="onMouseLeave" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string><yt-formatted-string class="details style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.details]]" text="[[data.details]]"></yt-formatted-string></div></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return z7b=a},{mode:1});var A7b,B7b=function(){if(A7b!==void 0)return A7b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="channel-user-state" hidden="[[!data.channelUserStateDescription]]" text="[[data.channelUserStateDescription]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><div id="content-section" class="style-scope ytd-channel-renderer"><div id="avatar-section" class="style-scope ytd-channel-renderer"><a class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="avatar" class="style-scope ytd-channel-renderer"><yt-img-shadow height="[[computeIconSize(compactStyle)]]" thumbnail="[[data.thumbnail]]" width="[[computeIconSize(compactStyle)]]" class="style-scope ytd-channel-renderer"></yt-img-shadow></div></a></div><div id="info-section" class="style-scope ytd-channel-renderer"><a id="main-link" class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="info" class="style-scope ytd-channel-renderer"><ytd-channel-name id="channel-title" badges="[[data.ownerBadges]]" channel-name="[[getSimpleString(data.title)]]" compact-style="[[compactStyle]]" wrap-text="" class="style-scope ytd-channel-renderer"></ytd-channel-name><div id="metadata" class="style-scope ytd-channel-renderer"><yt-formatted-string id="subscribers" respect-lang-dir="" text="[[data.subscriberCountText]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><span id="dot" hidden="[[computeHideDot(data)]]" class="style-scope ytd-channel-renderer">\u2022</span><span id="video-count" class="style-scope ytd-channel-renderer">[[getSimpleString(data.videoCountText)]]</span></div><yt-formatted-string id="description" hidden="[[compactStyle]]" text="[[data.descriptionSnippet]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-channel-renderer"></ytd-badge-supported-renderer></div><div id="navigation-icon" hidden="[[!data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"><yt-icon disable-upgrade$="[[!data.navigationIcon.iconType]]" icon="[[data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"></yt-icon></div></a><div id="buttons" class="style-scope ytd-channel-renderer"><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-channel-renderer"></div><div id="subscribe-button" hidden="[[!data.subscribeButton]]" class="style-scope ytd-channel-renderer"></div></div><div id="channel-memberships-button" hidden="[[!data.channelMembershipsButton]]" class="style-scope ytd-channel-renderer"></div></div></div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return A7b=a};_.Ft("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var C7b=function(){var a=_.P.apply(this,arguments)||this;a.compactStyle=!1;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(C7b,_.P);_.f=C7b.prototype;_.f.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.f.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.channelMembershipsButton":{id:"channel-memberships-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.computeHideDot=function(a){return!(a&&a.subscriberCountText&&a.videoCountText)||this.compactStyle};
_.f.hasDualButtons=function(a){return a&&a.purchaseButton&&a.subscribeButton};
_.f.backgroundColorChanged=function(){if(this.data!==void 0){var a=this.data.backgroundColor;this.isDarkTheme&&(a=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=a!=null?_.Cq(a):"transparent"}};
_.f.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.f.onTap=function(a){var b,c,d=((b=this.data)==null?void 0:b.navigationEndpoint)||((c=this.data)==null?void 0:c.serviceEndpoint);_.y(d,_.tv)&&(d&&(_.w("web_ytd_channel_renderer_command_resolver_ks")?_.oo(this.hostElement,[d]):_.v().resolve(_.Yi).resolveCommand(d,{form:{element:this.hostElement}})),a.preventDefault())};
_.f.computeChannelEndpoint=function(a){return _.y(a,_.tv)?null:a};
_.f.computeHrefEndpoint=function(a){return _.y(a,_.tv)?null:this.componentBehavior.computeHref_(a)};
_.f.computeChannelRendererStyle=function(a){return a};
_.f.computeIconSize=function(a){return a?108:136};
_.Um.Object.defineProperties(C7b,{template:{configurable:!0,enumerable:!0,get:function(){return B7b()}}});
var lP=C7b;lP.prototype.backgroundColorChanged=lP.prototype.backgroundColorChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],lP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],lP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.aI),_.W("design:type",Object)],lP.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],lP.prototype,"componentBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],lP.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],lP.prototype,"isDarkTheme",void 0);_.U([_.O({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.W("design:type",String)],lP.prototype,"channelRendererStyle",void 0);_.U([_.O({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],lP.prototype,"dualButtons",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],lP.prototype,"useBiggerThumbs",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.aj("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],lP.prototype,"biggerThumbStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],lP.prototype,"compactStyle",void 0);_.U([_.N("data","isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lP.prototype,"backgroundColorChanged",null);lP=_.U([_.Q({is:"ytd-channel-renderer",disableElementRegistration:!0})],lP);_.S(lP,"ytd-channel-renderer",function(){return B7b()},{mode:1});var D7b;var E7b;_.Ft("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var F7b=function(){var a=_.P.apply(this,arguments)||this;a.displayItemCount=2;a.collections=_.w("web_modern_collections_v2");a.hasPlaylistThumbnail=!1;a.stackThumbnailSize="large";return a};
_.z(F7b,_.P);_.f=F7b.prototype;_.f.attached=function(){this.updateInlinePreviewHoverListeners()};
_.f.detached=function(){this.clearInlinePreviewHoverListeners()};
_.f.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.f.computeFirstVideos=function(a,b){return a&&b?a.slice(0,b):[]};
_.f.computeThumbnailWidth=function(a,b){return a?b==="BIG"?500:b==="MASSIVE"?600:b==="MEDIUM"?450:420:360};
_.f.computeThumbnailHeight=function(a,b){return a?b==="BIG"?280:b==="MASSIVE"?337:234:202};
_.f.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$13835_inlinePreviewHoverListener)==null||uv(a)};
_.f.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13835_inlinePreviewHoverListener=dv({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:M_b,thumbnailElement:this.thumbnail})};
_.f.computeHasPlaylistThumbnail=function(a){var b,c;if((((b=a.thumbnailRenderer)==null?0:b.playlistVideoThumbnailRenderer)||((c=a.thumbnailRenderer)==null?0:c.playlistCustomThumbnailRenderer))&&a.thumbnailOverlays)for(b=0;b<a.thumbnailOverlays.length;b++)if(c=void 0,(c=a.thumbnailOverlays[b])==null?0:c.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Um.Object.defineProperties(F7b.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$13835_inlinePreviewHoverListener)==null?0:UK(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var mP=F7b;mP.prototype.dataChanged=mP.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.$I),_.W("design:type",Object)],mP.prototype,"ytdLockupBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],mP.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],mP.prototype,"displayItemCount",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],mP.prototype,"useBiggerThumbs",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.aj("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],mP.prototype,"biggerThumbsStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],mP.prototype,"collections",void 0);_.U([_.O({computed:"computeHasPlaylistThumbnail(data)"}),_.W("design:type",Object)],mP.prototype,"hasPlaylistThumbnail",void 0);_.U([_.O(),_.W("design:type",String)],mP.prototype,"stackThumbnailSize",void 0);_.U([_.ir("ytd-thumbnail"),_.W("design:type",HTMLElement)],mP.prototype,"thumbnail",void 0);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],mP.prototype,"dataChanged",null);_.U([_.K("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],mP.prototype,"isHovered",null);mP=_.U([_.Q({is:"ytd-radio-renderer",disableElementRegistration:!0})],mP);
_.S(mP,"ytd-radio-renderer",function(){if(E7b!==void 0)return E7b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-thumbnail>\n<ytd-playlist-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="true" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-radio-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-radio-renderer" href="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-radio-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-radio-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-radio-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block id="meta" data="[[data]]" radio-meta="" class="style-scope ytd-radio-renderer"></ytd-video-meta-block>\n  </a>\n  <ul id="list" class="style-scope ytd-radio-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-radio-renderer">\n      <li class="style-scope ytd-radio-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-radio-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-radio-renderer"></yt-interaction>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return E7b=a},{mode:_.as("kevlar_poly_si_batch_j058")?1:2});var G7b;_.Ft("itemSectionRenderer","showRenderer","ytd-show-renderer");var nP=function(){return _.P.apply(this,arguments)||this};
_.z(nP,_.P);nP.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
nP.prototype.computeThumbnailWidth=function(a){return a?360:246};
nP.prototype.computeUseProminentThumbs=function(a){return a};
var oP=nP;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],oP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],oP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],oP.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],oP.prototype,"isSearch",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.W("design:type",Boolean)],oP.prototype,"useProminentThumbs",void 0);oP=_.U([_.Q({is:"ytd-show-renderer",disableElementRegistration:!0})],oP);
_.S(oP,"ytd-show-renderer",function(){if(G7b!==void 0)return G7b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="[[computeThumbnailWidth(useProminentThumbs)]]" class="style-scope ytd-show-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-show-renderer">\n<a id="logo-container" class="yt-simple-endpoint style-scope ytd-show-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-show-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-show-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block data="[[data]]" class="style-scope ytd-show-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer id="bottom-standalone-badge" bottom-standalone-badge="[[data.bottomStandaloneBadge]]" hidden="[[!data.bottomStandaloneBadge]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<div id="menu" class="style-scope ytd-show-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return G7b=a},{mode:1});_.Ft("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var H7b=function(){var a=_.P.apply(this,arguments)||this;a.isRichGrid=!1;return a};
_.z(H7b,_.P);H7b.prototype.configureRendererStamper=function(){return{"data.item":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:{matcher:function(){return this.isRichGrid?"ytd-rich-grid-media":"ytd-video-renderer"}}}}}};
var pP=H7b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],pP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],pP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],pP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],pP.prototype,"isRichGrid",void 0);pP=_.U([_.Q({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],pP);
_.S(pP,"ytd-feed-entry-renderer",function(){if(D7b!==void 0)return D7b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[isRichGrid]]" thumbnail="[[data.ownerThumbnail]]" width="48" class="style-scope ytd-feed-entry-renderer"></yt-img-shadow>\n<div class="info style-scope ytd-feed-entry-renderer">\n  <div id="title-container" hidden="[[isRichGrid]]" class="style-scope ytd-feed-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="post" text="[[data.postText]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  <div id="contents" class="style-scope ytd-feed-entry-renderer"></div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return D7b=a},{mode:1});var I7b;var J7b=function(){return _.P.apply(this,arguments)||this};
_.z(J7b,_.P);J7b.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
var qP=J7b;_.U([_.H(_.OI),_.W("design:type",Object)],qP.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],qP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],qP.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],qP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Gp,value:3}),_.W("design:type",Number)],qP.prototype,"itemsPerRow",void 0);
qP=_.U([_.Q({is:"ytd-link-card-renderer",disableElementRegistration:!0})],qP);
_.S(qP,"ytd-link-card-renderer",function(){if(I7b!==void 0)return I7b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-link-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-link-card-renderer">\n  <a id="card-link" class="yt-simple-endpoint style-scope ytd-link-card-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n    <yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-link-card-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-link-card-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon id="chevron" hidden="[[!showChevronIcon(itemsPerRow)]]" icon="chevron_right" class="style-scope ytd-link-card-renderer">\n    </yt-icon>\n  </a>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return I7b=a},{mode:1});var K7b;var L7b=function(){return _.P.apply(this,arguments)||this};
_.z(L7b,_.P);_.f=L7b.prototype;_.f.configureRendererStamper=function(){return{"data.menu":CK,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.f.onRendererTap=function(a){if(!this.ytdDismissibleItemBehavior.isDismissed){var b,c=(b=this.data)==null?void 0:b.navigationEndpoint;c&&!_.Wt(_.Rq(a),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(c)?_.Wt(_.Rq(a),this.hostElement,["A"])||_.io(this.hostElement,"yt-navigate",{endpoint:c}):this.ytComponentBehavior.resolveCommand(c,{}))}};
_.f.maybeComputeHref=function(a){return this.ytComponentBehavior.computeHref_(a,!0)};
_.f.getNavigationCommand=function(a){return this.isNavigationCommand(a)?a:null};
_.f.isNavigationCommand=function(a){return a?_.y(a,_.oq)||_.y(a,_.Un)||_.y(a,_.Kl)?!0:!1:!1};
var rP=L7b;rP.prototype.onRendererTap=rP.prototype.onRendererTap;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],rP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],rP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],rP.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],rP.prototype,"ytComponentBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],rP.prototype,"data",void 0);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],rP.prototype,"onRendererTap",null);rP=_.U([_.Q({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],rP);
_.S(rP,"ytd-lumiere-promo-item-image-renderer",function(){if(K7b!==void 0)return K7b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-promo-item-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="thumbnail-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-img-shadow></a><div id="metadata" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="item-details" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="title" class="style-scope ytd-lumiere-promo-item-image-renderer"><h3 class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="title-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string><yt-icon class="hover-icon style-scope ytd-lumiere-promo-item-image-renderer" hidden="[[!data.showLauncherIcon]]" icon="open_in_new"></yt-icon></a></h3></div><yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string></div><div id="menu" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div></div><div id="dismissed" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="dismissed-content" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return K7b=a},{mode:1});var M7b;var N7b=function(){return _.P.apply(this,arguments)||this};
_.z(N7b,_.P);N7b.prototype.computeLandscapeThumbnail=function(){var a;return((a=this.data)==null?void 0:a.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
var sP=N7b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],sP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],sP.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],sP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Fp}),_.W("design:type",Boolean)],sP.prototype,"miniMode",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Gp}),_.W("design:type",Number)],sP.prototype,"itemsPerRow",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.W("design:type",Boolean)],sP.prototype,"landscapeThumbnail",void 0);sP=_.U([_.Q({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],sP);
_.S(sP,"ytd-lumiere-shelf-details-renderer",function(){if(M7b!==void 0)return M7b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-shelf-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-lumiere-shelf-details-renderer">\n  <div id="lumiere-shelf-details" class="style-scope ytd-lumiere-shelf-details-renderer">\n    <div id="title" class="style-scope ytd-lumiere-shelf-details-renderer">\n       <yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-shelf-details-renderer"></yt-formatted-string>\n    </div>\n    <div id="subtitle" class="style-scope ytd-lumiere-shelf-details-renderer">\n      <yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-badge-supported-renderer id="badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return M7b=a},{mode:_.as("kevlar_poly_si_batch_j076")?1:2});var O7b;var P7b=function(){return _.P.apply(this,arguments)||this};
_.z(P7b,_.P);P7b.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var tP=P7b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],tP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],tP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],tP.prototype,"data",void 0);tP=_.U([_.Q({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],tP);
_.S(tP,"ytd-primetime-promo-details-renderer",function(){if(O7b!==void 0)return O7b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" hidden="[[!data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><div id="centered-container" class="style-scope ytd-primetime-promo-details-renderer"><yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><div id="action-button" class="style-scope ytd-primetime-promo-details-renderer"></div></div></div><div id="header" hidden="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string></div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return O7b=a},{mode:1});var Q7b;var R7b=function(){return _.P.apply(this,arguments)||this};
_.z(R7b,_.P);var uP=R7b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],uP.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],uP.prototype,"data",void 0);uP=_.U([_.Q({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],uP);
_.S(uP,"ytd-panel-show-style-metadata-renderer",function(){if(Q7b!==void 0)return Q7b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-panel-show-style-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-panel-show-style-metadata-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Q7b=a},{mode:1});var S7b;var T7b=function(){return _.P.apply(this,arguments)||this};
_.z(T7b,_.P);_.f=T7b.prototype;_.f.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.f.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.f.computeThumbnail=function(a){if(a)return a.smallFormFactorBackgroundThumbnail||a.largeFormFactorBackgroundThumbnail};
_.f.maybeComputeHref=function(a){return this.ytComponentBehavior.computeHref_(a,!0)};
_.f.isNavigationCommand=function(a){return a?_.y(a,_.oq)||_.y(a,_.Un)||_.y(a,_.Kl)?!0:!1:!1};
_.f.getNavigationCommand=function(a){return this.isNavigationCommand(a)?a:null};
var vP=T7b;vP.prototype.onPanelTap=vP.prototype.onPanelTap;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],vP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],vP.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],vP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],vP.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],vP.prototype,"roundedContainer",void 0);_.U([_.O({reflectToAttribute:!0,value:_.w("web_modern_buttons")}),_.W("design:type",Boolean)],vP.prototype,"modernButtons",void 0);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vP.prototype,"onPanelTap",null);vP=_.U([_.Q({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],vP);
_.S(vP,"ytd-primetime-promo-panel-renderer",function(){if(S7b!==void 0)return S7b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-primetime-promo-panel-renderer" href$="[[maybeComputeHref(data.command)]]" data="[[getNavigationCommand(data.command)]]" rel="[[computeNofollow_(data.command)]]"><yt-img-shadow thumbnail="[[computeThumbnail(data)]]" width="420" class="style-scope ytd-primetime-promo-panel-renderer"></yt-img-shadow><div id="action-button" class="style-scope ytd-primetime-promo-panel-renderer"><yt-formatted-string text="[[data.buttonText]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-formatted-string><yt-icon icon="[[data.contentIcon.iconType]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-icon></div></a><div id="panel-metadata" class="style-scope ytd-primetime-promo-panel-renderer"></div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return S7b=a},{mode:1});_.Ts(_.Rr(function(a){a=_.Or(a,{data:{},useFullWidth:!1});var b=a.data,c=a.useFullWidth,d=function(){return b().caption},e=function(){return b().image},g=function(){return _.Ds(b().onTap)};
a={};a=_.et("ytTeaserCardViewModelHost",(a.ytTeaserCardViewModelUseFullWidth=function(){return c()},a));
return _.q("teaser-card-view-model",{class:a},_.q(_.qi,{cond:function(){return g()},
then:function(){return _.q(W_b,{className:"ytTeaserCardViewModelLink",command:g,forceNewState:!0,useATagConfig:!0},_.q("div",{class:"ytTeaserCardViewModelImageContainer"},_.q(_.qi,{cond:e,then:function(k){return _.q(_.Ps,{data:k,className:"ytTeaserCardViewModelImage",alt:""})}})),_.q("p",{class:"ytTeaserCardViewModelCaption"},d))}}))},"sb"),"teaser-card-view-model",{props:{data:_.VG,
useFullWidth:_.VG}});var U7b=new _.jB("RICH_GRID_VIDEO_RENDERER_TOKEN");_.Ts(_.Rr(function(a){var b=a.data;var c=a.showYtInteractionInContent;var d=function(){return!!b().selectableFeedback};
a=_.h(_.ih(!1,void 0,"nblDw"));var e=a.next().value,g=a.next().value;_.wi(function(){var x=_.y(b().primaryButton,_.Ju);(x==null?0:x.isToggled)&&g(x.isToggled)});
a=_.lt(function(x){if(!d())return!1;if(e()){var A;var C=(A=b().selectableFeedback)==null?void 0:A.onDeselect}else{var F;C=(F=b().selectableFeedback)==null?void 0:F.onSelect}C&&_.Gs(C,{form:{element:x.target}});g(!e());if(x=_.y(b().primaryButton,_.Ju))x.isToggled=e();return!1});
var k=function(){if(!d()){var x,A=(x=b().loggingDirectives)==null?void 0:x.trackingParams;A&&_.tF(_.v().resolve(_.AH),A)}},m=_.$Xa(),n=function(){var x;
return d()?(x=b().selectableFeedback)==null?void 0:x.a11yLabel:void 0},r=function(){return d()?{toggled:e()}:{}},t=_.v().resolve(_.Xi(U7b)),u={};
return _.q("yt-feedback-item-renderer",{class:_.et("ytFeedbackItemRendererHost",(u.ytFeedbackItemRendererSelectableFeedback=d,u)),"on:click":a,"on:keydown":m,title:n,"aria-label":n,"aria-pressed":function(){return d()?e():void 0},
tabindex:function(){return d()?0:void 0},
role:function(){return d()?"button":void 0}},_.q("div",{class:"ytFeedbackItemRendererContentContainer"},_.q(_.Hu,{data:function(){return b().content}},{videoRenderer:function(x){return _.q(t,{data:x.data,
showYtInteraction:c})},
lockupViewModel:function(x){return _.q(zL,{data:x.data,containerType:2})}})),_.q("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.q(_.Hu,{data:function(){return b().primaryButton}},{toggleButtonViewModel:function(x){return _.q(_.Ku,{data:x.data,
buttonShapeOverrides:r,disableExplicitClickLogging:!0,onToggle:k})}})))},"tb"),"yt-feedback-item-renderer",{props:{data:_.VG,
showYtInteractionInContent:_.VG}});var V7b=function(){var a=_.P.apply(this,arguments)||this;a.isShortsGrid=!1;a.isCompactGrid=!1;a.isShortsPanelGrid=!1;a.enablePlayablesReducedCardCount=_.w("enable_playables_reduced_card_count");a.renderedFromRichGrid=!1;a.isInFirstColumn=!1;a.noGutterMargins=!1;a.isInlineGroupItem=!1;a.insetMetadata=!1;a.noBottomMarginInAds=_.w("web_no_bottom_margin_for_home_ad_buttons");a.force16By9ThumbnailAspectRatio=!1;a.useCompactList=!1;a.containerType=2;a.thumbnailTargetWidth=9999;a.isResponsiveGrid=!1;a.lockupExperiments=
{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};a.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};a.hoverListener=a.hover.bind(a);a.leaveListener=a.leave.bind(a);a.highlighted=!1;a.JSC$13870_unsubscribeFromInlinePreviewIsActive=function(){};
return a};
_.z(V7b,_.P);_.f=V7b.prototype;_.f.computeContainerType=function(){return this.useCompactList?3:2};
_.f.computeThumbnailTargetWidth=function(){var a;return(a=this.itemWidth)!=null?a:9999};
_.f.updateIsInFirstColumn=function(){var a;this.isInFirstColumn=((a=this.data)==null?void 0:a.colIndex)===0};
_.f.observerContainerType=function(){if(this.lockup){var a=this.lockup;a.containerType=this.containerType;a.sizing=this.sizing;a.typographyBump=this.typographyBump;a.itemWidth=this.itemWidth}};
_.f.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",properties:{insetMetadata:"[[insetMetadata]]"}},
shortsLockupViewModel:{component:_.w("enable_shorts_lockup_view_model_with_dismissible")?"ytm-shorts-lockup-view-model-v2":"ytm-shorts-lockup-view-model",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",
params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",
params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",
lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},
teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}}}}}};
_.f.leave=function(a){a=a.relatedTarget;var b=document.querySelector("ytd-video-preview");a&&b&&_.ar(b).contains(a)||this.removeAndCleanupHighlight()};
_.f.hover=function(){var a;if(!this.highlighted&&(!_.w("web_enable_rich_item_on_focus_effect")||(a=this.data)!=null&&a.onFocusEffect)){var b,c;((b=this.data)==null?void 0:(c=b.onFocusEffect)==null?void 0:c.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(a=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:a,boxShadow:"0 0 0 10px "+a}));var d,e;((d=this.data)==null?void 0:(e=d.onFocusEffect)==null?void 0:
e.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.f.removeAndCleanupHighlight=function(){this.hostElement.classList.remove("ytd-rich-item-renderer-highlight");this.hostElement.classList.remove("ytd-rich-item-renderer-highlight-border");Object.assign(this.hostElement.style,{backgroundColor:"",boxShadow:""});this.highlighted=!1};
_.f.registerHoverHighlightListeners=function(){var a=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$13870_unsubscribeFromInlinePreviewIsActive=_.zF(_.Yp(),_.zFa,function(b){a.highlighted&&!b&&a.removeAndCleanupHighlight()})};
_.f.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$13870_unsubscribeFromInlinePreviewIsActive()};
_.f.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.f.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.f.getBackgroundColor=function(){var a,b,c=(a=this.data)==null?void 0:(b=a.onFocusEffect)==null?void 0:b.onFocusColor;if(c){if(document.documentElement.hasAttribute("dark")&&(c==null?0:c.darkTheme))return _.Cq(c==null?void 0:c.darkTheme);if(c==null?0:c.lightTheme)return _.Cq(c==null?void 0:c.lightTheme)}};
_.f.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var a=_.En(),b,c,d;a&&((b=this.data)==null?0:b.trackingParams)&&((c=this.data)==null?void 0:c.colIndex)!=null&&((d=this.data)==null?void 0:d.rowIndex)!=null&&_.Zo(a,_.ps(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.f.isSlimMediaRenderer=function(a){return!!_.y(a==null?void 0:a.content,_.bDb)||!!_.y(a==null?void 0:a.content,aDb)||!!_.y(a==null?void 0:a.content,_.QE)||!!_.y(a==null?void 0:a.content,vEb)};
_.f.isPostRenderer=function(){var a,b;return!!_.y((a=this.data)==null?void 0:a.content,mzb)||!!_.y((b=this.data)==null?void 0:b.content,nzb)};
_.f.computeIsGameCardShelf=function(){var a;return!!_.y((a=this.data)==null?void 0:a.content,kBb)};
_.f.computeIsMiniGameCardShelf=function(){var a,b;return!!_.y((a=this.data)==null?void 0:a.content,zBb)||!!_.y((b=this.data)==null?void 0:b.content,ABb)};
_.f.computeIsTeaserCard=function(){var a;return!!_.y((a=this.data)==null?void 0:a.content,ABb)};
_.f.computeIsSelectableFeedbackItem=function(){var a,b;return!((b=_.y((a=this.data)==null?void 0:a.content,_.CBb))==null||!b.selectableFeedback)};
_.f.computeContainsLumierePosters=function(){var a,b;return((b=_.y((a=this.data)==null?void 0:a.content,xzb))==null?void 0:b.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.f.computeIsExpandOnHoverCardShelf=function(){var a;return!!_.y((a=this.data)==null?void 0:a.content,wzb)};
_.f.computeIsLinkCardShelf=function(){var a;return!!_.y((a=this.data)==null?void 0:a.content,mGb)};
_.f.computeIsReelItemStyleAvatarCircle=function(a){var b;return((b=_.y(a==null?void 0:a.content,_.QE))==null?void 0:b.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.f.computeIsLinkCardFullWidth=function(a,b){var c;return((c=_.y(a==null?void 0:a.content,mGb))==null?void 0:c.useFullWidth)||b<=2};
_.Um.Object.defineProperties(V7b.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.w("web_enable_rich_item_on_focus_effect")||_.w("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.w("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.w("web_shorts_2_by_3_lockups_study")||_.w("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
var wP=V7b;wP.prototype.richGridHoverHighlightChanged=wP.prototype.richGridHoverHighlightChanged;wP.prototype.observerContainerType=wP.prototype.observerContainerType;wP.prototype.updateIsInFirstColumn=wP.prototype.updateIsInFirstColumn;_.U([_.H(_.OI),_.W("design:type",Object)],wP.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],wP.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],wP.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],wP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.$I),_.W("design:type",Object)],wP.prototype,"ytdLockupBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],wP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.W("design:type",Boolean)],wP.prototype,"isPost",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.W("design:type",Boolean)],wP.prototype,"containsLumierePosters",void 0);_.U([_.O({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.W("design:type",Boolean)],wP.prototype,"isSlimMedia",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.W("design:type",Boolean)],wP.prototype,"isGameCardShelf",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.W("design:type",Boolean)],wP.prototype,"isMiniGameCardShelf",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.W("design:type",Boolean)],wP.prototype,"isTeaserCard",void 0);_.U([_.O({computed:"computeIsSelectableFeedbackItem(data)"}),_.W("design:type",Boolean)],wP.prototype,"isSelectableFeedbackItem",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wP.prototype,"isShortsGrid",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],wP.prototype,"isSlimGrid",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wP.prototype,"isCompactGrid",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wP.prototype,"isShortsPanelGrid",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.W("design:type",Boolean)],wP.prototype,"isExpandOnHoverCardShelf",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wP.prototype,"enablePlayablesReducedCardCount",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.W("design:type",Boolean)],wP.prototype,"isLinkCardShelf",void 0);
_.U([_.O({reflectToAttribute:!0,selector:_.Gp,value:3}),_.W("design:type",Number)],wP.prototype,"itemsPerRow",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wP.prototype,"renderedFromRichGrid",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wP.prototype,"isInFirstColumn",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wP.prototype,"noGutterMargins",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wP.prototype,"isInlineGroupItem",void 0);_.U([_.O(),_.W("design:type",Object)],wP.prototype,"insetMetadata",void 0);_.U([_.O(),_.W("design:type",Object)],wP.prototype,"noBottomMarginInAds",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],wP.prototype,"isShelfItem",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.W("design:type",Boolean)],wP.prototype,"isReelItemStyleAvatarCircle",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.W("design:type",Boolean)],wP.prototype,"isLinkCardFullWidth",void 0);_.U([_.O(),_.W("design:type",Object)],wP.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wP.prototype,"useCompactList",void 0);_.U([_.O(),_.W("design:type",String)],wP.prototype,"sizing",void 0);_.U([_.O(),_.W("design:type",Boolean)],wP.prototype,"typographyBump",void 0);_.U([_.O(),_.W("design:type",Number)],wP.prototype,"itemWidth",void 0);_.U([_.O(),_.W("design:type",Boolean)],wP.prototype,"isHomeShelf",void 0);_.U([_.ir("yt-lockup-view-model"),_.W("design:type",HTMLElement)],wP.prototype,"lockup",void 0);
_.U([_.O({computed:"computeContainerType(useCompactList)"}),_.W("design:type",Object)],wP.prototype,"containerType",void 0);_.U([_.O({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.W("design:type",Object)],wP.prototype,"thumbnailTargetWidth",void 0);_.U([_.K("showYtInteractionOnRichItem"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wP.prototype,"showYtInteractionOnRichGridMedia",null);
_.U([_.K("isSelectableFeedbackItem","richGridHoverHighlight"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wP.prototype,"showYtInteractionOnRichItem",null);_.U([_.O({reflectToAttribute:!0}),_.K("isShortsGrid","isCompactGrid"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wP.prototype,"richGridHoverHighlight",null);
_.U([_.K("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.W("design:type",Number),_.W("design:paramtypes",[])],wP.prototype,"shortsLockupViewModelAspectRatio",null);_.U([_.K("isInlineGroupItem"),_.W("design:type",Number),_.W("design:paramtypes",[])],wP.prototype,"shortsLockupViewModelScrimStyle",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wP.prototype,"updateIsInFirstColumn",null);
_.U([_.N("containerType","sizing","typographyBump"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wP.prototype,"observerContainerType",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wP.prototype,"isResponsiveGrid",void 0);_.U([_.O(),_.W("design:type",Object)],wP.prototype,"lockupExperiments",void 0);
_.U([_.N("richGridHoverHighlight"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wP.prototype,"richGridHoverHighlightChanged",null);wP=_.U([_.Q({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],wP);
_.W7b=_.$r()(wP,"ytd-rich-item-renderer",function(){if(y7b===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-item-renderer"></div>\n<yt-interaction id="interaction" class="extended rounded-large style-scope ytd-rich-item-renderer" hidden="[[!showYtInteractionOnRichItem]]"></yt-interaction>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);y7b=a}a=y7b;return a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var X7b;var Y7b=function(){var a=_.P.apply(this,arguments)||this;a.useResponsiveGrid=!1;a.hidden=!1;a.standardShelfMargins=_.w("web_rich_grid_standard_shelf_margins");a.isShowMoreHidden=!1;a.isExpanded=!1;a.isInnerShelf=!1;a.isShowLessHidden=!0;a.restrictContentsOverflow=!1;a.firstShownIndex=0;a.horizontalOffset=0;a.atEnd=!0;a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
a.nextClick=function(){var b;(b=a.data)!=null&&b.contents&&(a.firstShownIndex+=a.currentElementsPerRow,a.updateHorizontalOffset(),a.updateHorizontalItemVisibility())};
a.previousClick=function(){var b;(b=a.data)!=null&&b.contents&&(a.firstShownIndex-=a.currentElementsPerRow,a.updateHorizontalOffset(),a.updateHorizontalItemVisibility())};
return a};
_.z(Y7b,_.P);_.f=Y7b.prototype;
_.f.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.Fi("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.f.attached=function(){this.requestElementsPerRow()};
_.f.refreshGridLayoutNew=function(){var a;if((a=this.data)!=null&&a.contents&&this.containerWidth){var b;((b=this.data.responsiveContainerConfiguration)==null?0:b.responsiveSize)?(a=_.n1a(this.data.responsiveContainerConfiguration,this.containerWidth),a=_.hv(Object.assign({},a,{standardUnitMinWidth:this.standardUnitMinWidth}))):a=_.hv({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=a.typographyBump;if(this.elementsPerRow!==
a.numItems||this.gutter!==a.gutter)this.elementsPerRow=a.numItems,this.gutter=a.gutter,this.itemWidth=a.itemWidth,_.fr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":a.gutter+"px"})}};
_.f.computeSizing=function(){if(!(this.isLumiere||this.isShortsShelf()&&_.w("web_use_layout_library_for_rich_grid_disable_shorts"))){var a=_.OZa(this.data);if(a)return a;if(_.w("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.f.computeUseResponsiveGrid=function(){return this.isShortsShelf()&&_.w("web_use_layout_library_for_rich_grid_disable_shorts")?!1:!this.isLumiere&&this.sizing};
_.f.computeButton=function(a){var b=_.y(a,_.RE);a=Object.assign({},_.y(a,_.RE));return b?(a.text||(a.text={simpleText:a.tooltip}),a.style="STYLE_MONO_OUTLINE",a.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",a):b};
_.f.onRowIndexChange=function(){var a=_.En(),b,c;((b=this.data)==null?0:b.trackingParams)&&((c=this.data)==null?void 0:c.rowIndex)!=null&&a&&_.Zo(a,_.ps(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.f.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var a,b=((a=this.getRichItemRenderers()[0])==null?void 0:a.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*b;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.f.requestElementsPerRow=function(){_.io(this.hostElement,"yt-request-elements-per-row")};
_.f.onUpdateElementsPerRowAction=function(a,b,c,d,e,g){if(this.containerWidth!==g&&(this.containerWidth=g,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&a&&b&&c&&d&&e&&(this.elementsPerRow!==a||this.postsPerRow!==b||this.slimItemsPerRow!==c||this.gameCardsPerRow!==d||this.miniGameCardsPerRow!==e)&&(this.elementsPerRow=a,this.postsPerRow=b,this.slimItemsPerRow=c,this.gameCardsPerRow=d,this.miniGameCardsPerRow=e,this.updateItemVisibility())};
_.f.getRichItemRenderers=function(){return _.E(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.f.updateItemVisibility=function(){var a=this;if(this.data&&this.data.contents){var b=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(d,e){var g;((g=a.data)==null?0:g.isExpanded)?(d.hidden=e>b-1,d.ytRendererBehavior.markDirty()):d.hidden=e>a.currentElementsPerRow-1||e>b-1});
var c=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||c||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||c||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.f.setHeightToSingleRow=function(){var a=this.getRichItemRenderers(),b=Number.parseInt(getComputedStyle(a[0]).marginBottom,10)||0;a=a.slice(0,this.currentElementsPerRow).reduce(function(c,d){return Math.max(c,d.getBoundingClientRect().height+b)},0);
this.contents.style.height=a+"px"};
_.f.focusNextExpandedItem=function(){var a;((a=this.data)==null?0:a.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.f.focusItem=function(a,b){var c=this.getRichItemRenderers();if(c[a]&&(a=c[a].querySelector(".focus-on-expand"))){if(b){var d;(d=c[this.currentElementsPerRow])==null||d.scrollIntoView({behavior:"smooth",block:"center"})}a.focus({preventScroll:!0})}};
_.f.onDataChange=function(){var a=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();_.Qm(this,function(){a.updateItemVisibility()});
var b;if((b=this.data)==null?0:b.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.fr(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),b=0;b<this.data.contents.length;b++){var c=_.y(this.data.contents[b],_.LE)||{};c.colIndex=b;c.rowIndex=this.data.rowIndex}};
_.f.blockInlinePreview=function(a){var b=this,c;return _.l(function(d){(c=b.inlinePreviewIsEnabled)&&b.ytdReduxBehavior.dispatch(_.WJb(!1));return d.return(new Promise(function(e){a(function(){c&&b.ytdReduxBehavior.dispatch(_.WJb(!0));e()})}))})};
_.f.expandShelf=function(){var a=this;if(this.data){var b,c=(b=_.y(this.data.showMoreButton,_.RE))==null?void 0:b.trackingParams;c&&_.tF(_.ls(),c);this.data.isExpanded=!0;this.blockInlinePreview(function(d){a.setHeightToSingleRow();a.updateItemVisibility();a.contents.style.height=a.contents.scrollHeight+"px";_.zk.addJob(function(){a.contents.style.height="auto";a.focusNextExpandedItem();d()},2,200)})}};
_.f.collapseShelf=function(){var a=this;return _.l(function(b){if(b.nextAddress==1){if(!a.data)return b.return();a.data.isExpanded=!1;return _.p(b,a.blockInlinePreview(function(c){a.contents.style.height=a.contents.scrollHeight+"px";a.setHeightToSingleRow();_.zk.addJob(function(){a.updateItemVisibility();a.contents.style.height="auto";c()},2,200)}),2)}_.io(a.hostElement,"yt-rich-shelf-renderer-collapse",a.data.trackingParams);
a.focusItem(0,!1);_.ue(b)})};
_.f.updateArrowButtonStatus=function(){var a=this.getRichItemRenderers().length;if(!_.w("web_rich_shelf_renderer_use_data_contents_killswitch")){var b,c;a=((b=this.data)==null?void 0:(c=b.contents)==null?void 0:c.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=a};
_.f.onChildElementFocus=function(a){this.hasChevronButtons&&(a=a.target.closest("#contents > *"),this.contents.contains(a)&&(a.offsetLeft<this.horizontalOffset?this.previousClick():a.offsetLeft+a.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.f.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.Fi("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.f.updateHorizontalOffset=function(){var a=this.getRichItemRenderers(),b=a.length;if(!_.w("web_rich_shelf_renderer_use_data_contents_killswitch")){var c,d;b=((c=this.data)==null?void 0:(d=c.contents)==null?void 0:d.length)||0}var e;a=((e=a[0])==null?void 0:e.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>b?this.firstShownIndex=b-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*a};
_.f.isSlimMediaShelfRenderer=function(){var a,b,c,d=(c=_.y((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],_.LE))==null?void 0:c.content;return!!(_.y(d,_.bDb)||_.y(d,aDb)||_.y(d,_.QE)||_.y(d,vEb))};
_.f.isGameCardShelf=function(){var a,b,c,d=(c=_.y((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],_.LE))==null?void 0:c.content;return!!_.y(d,kBb)};
_.f.isGnomeShelf=function(){var a,b,c,d=(c=_.y((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],_.LE))==null?void 0:c.content;return!!_.y(d,_.CBb)};
_.f.isMiniGameCardShelf=function(){var a,b,c,d=(c=_.y((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],_.LE))==null?void 0:c.content;return!!_.y(d,zBb)||!!_.y(d,ABb)};
_.f.hasGameBoxArtAvatarStyle=function(){var a;return((a=this.data)==null?void 0:a.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.f.hasRoundedGameBoxArtAvatarStyle=function(){var a;return((a=this.data)==null?void 0:a.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.f.isShortsShelf=function(){var a,b,c,d=(c=_.y((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],_.LE))==null?void 0:c.content;return!!_.y(d,_.QE)||!!_.y(d,vEb)};
_.f.isPostShelfRenderer=function(){var a,b,c,d=(c=_.y((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],_.LE))==null?void 0:c.content;return!(!_.y(d,mzb)&&!_.y(d,nzb))};
_.f.isLumiereShelf=function(){var a,b,c=_.y((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],_.LE);return!!_.y(c==null?void 0:c.content,xzb)};
_.f.isLumiereShelfWithPosters=function(){var a,b,c=_.y((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],_.LE),d;return((d=_.y(c==null?void 0:c.content,xzb))==null?void 0:d.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.f.isExpandOnHoverCardShelf=function(){var a,b,c,d=(c=_.y((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],_.LE))==null?void 0:c.content;return!!_.y(d,wzb)};
_.f.computeHasFeaturedBadge=function(){var a,b,c=_.y((a=this.data)==null?void 0:(b=a.badges)==null?void 0:b[0],_.CAb);return c?c.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.f.computeHasPaygatedFeaturedBadge=function(){var a,b,c=_.y((a=this.data)==null?void 0:(b=a.badges)==null?void 0:b[0],_.CAb);return c?(c==null?void 0:c.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.f.computeHeaderHidden=function(){var a,b,c,d,e,g;return!((a=this.data)==null?0:a.icon)&&!((b=this.data)==null?0:b.title)&&!((c=this.data)==null?0:c.subtitle)&&!((d=this.data)==null?0:d.thumbnail)&&!((e=this.data)==null?0:e.badges)&&!((g=this.data)==null?0:g.menu)};
_.f.showCtaButton=function(){var a;return!((a=this.data)==null||!a.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.f.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.f.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.f.computeForce16By9ThumbnailAspectRatio=function(){var a,b;return((a=this.data)==null?void 0:(b=a.responsiveContainerConfiguration)==null?void 0:b.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.f.onSectionReactiveDismissal=function(a,b,c){var d,e;var g=(d=this.data)==null?void 0:(e=d.targetingContext)==null?void 0:e.targetGroupId;this&&g&&b.targetGroupId&&g.includes(b.targetGroupId)?(d=this.rowIndex,a=d===void 0?!1:!(b.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&d<=a)):a=!1;a&&(this.hidden=c)};
_.Um.Object.defineProperties(Y7b.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var a=this.elementsPerRow;this.isPostShelfRenderer()?a=this.postsPerRow:this.isSlimMediaShelfRenderer()?a=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?a=this.slimItemsPerRow-1:this.isGameCardShelf()?a=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(a=this.miniGameCardsPerRow);return a}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.w("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null||!a.previousButton)&&!((b=this.data)==null||!b.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var a;return((a=_.v().resolve(_.Zt).getCurrentPage())==null?void 0:a.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;return!((a=this.data)==null?0:(b=a.thumbnail)==null?0:(c=b.accessibility)==null?0:(d=c.accessibilityData)==null?0:d.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.isExpanded)}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
var xP=Y7b;xP.prototype.onChildElementFocus=xP.prototype.onChildElementFocus;xP.prototype.onDataChange=xP.prototype.onDataChange;xP.prototype.onRowIndexChange=xP.prototype.onRowIndexChange;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],xP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],xP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],xP.prototype,"ytdDismissibleItemBehavior",void 0);
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],xP.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],xP.prototype,"ytdReduxBehavior",void 0);_.U([_.O({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.W("design:type",Object)],xP.prototype,"useResponsiveGrid",void 0);_.U([_.O(),_.W("design:type",Object)],xP.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Number)],xP.prototype,"standardUnitMinWidth",void 0);
_.U([_.O({reflectToAttribute:!0,value:3}),_.W("design:type",Number)],xP.prototype,"elementsPerRow",void 0);_.U([_.O({value:3}),_.W("design:type",Number)],xP.prototype,"postsPerRow",void 0);_.U([_.O({value:6}),_.W("design:type",Number)],xP.prototype,"slimItemsPerRow",void 0);_.U([_.O({value:6}),_.W("design:type",Number)],xP.prototype,"gameCardsPerRow",void 0);_.U([_.O({value:6}),_.W("design:type",Number)],xP.prototype,"miniGameCardsPerRow",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],xP.prototype,"hidden",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],xP.prototype,"standardShelfMargins",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],xP.prototype,"isShowMoreHidden",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],xP.prototype,"isExpanded",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],xP.prototype,"isInnerShelf",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.W("design:type",Boolean)],xP.prototype,"isShorts",void 0);_.U([_.O({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.W("design:type",Boolean)],xP.prototype,"isLumiere",void 0);_.U([_.O({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.W("design:type",Boolean)],xP.prototype,"hasBoxArtThumbnailStyle",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.W("design:type",Boolean)],xP.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.W("design:type",Boolean)],xP.prototype,"hasFeaturedBadge",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.W("design:type",Boolean)],xP.prototype,"hasPaygatedFeaturedBadge",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.W("design:type",Boolean)],xP.prototype,"isHeaderHidden",void 0);_.U([_.O({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.W("design:type",Boolean)],xP.prototype,"hasTopCtaButton",void 0);_.U([_.O({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.W("design:type",Boolean)],xP.prototype,"hasBottomCtaButton",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.W("design:type",Boolean)],xP.prototype,"force16By9ThumbnailAspectRatio",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],xP.prototype,"isShowLessHidden",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],xP.prototype,"restrictContentsOverflow",void 0);_.U([_.O({selector:_.AFa}),_.W("design:type",Boolean)],xP.prototype,"inlinePreviewIsEnabled",void 0);
_.U([_.O({computed:"computeSizing(data)"}),_.W("design:type",String)],xP.prototype,"sizing",void 0);_.U([_.O(),_.W("design:type",Boolean)],xP.prototype,"typographyBump",void 0);_.U([_.O(),_.W("design:type",Number)],xP.prototype,"itemWidth",void 0);_.U([_.O(),_.W("design:type",Object)],xP.prototype,"firstShownIndex",void 0);_.U([_.O(),_.W("design:type",Object)],xP.prototype,"horizontalOffset",void 0);_.U([_.O(),_.W("design:type",Object)],xP.prototype,"atEnd",void 0);
_.U([_.ir("#contents"),_.W("design:type",HTMLElement)],xP.prototype,"contents",void 0);_.U([_.N("data.rowIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],xP.prototype,"onRowIndexChange",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],xP.prototype,"onDataChange",null);
_.U([_.M("focusin"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],xP.prototype,"onChildElementFocus",null);_.U([_.O({reflectToAttribute:!0}),_.K("data","isHomePage"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],xP.prototype,"isTruncated",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],xP.prototype,"hideBottomDivider",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],xP.prototype,"hasChevronButtons",null);_.U([_.K("firstShownIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],xP.prototype,"previousButtonOverride",null);_.U([_.K("atEnd"),_.W("design:type",Object),_.W("design:paramtypes",[])],xP.prototype,"nextButtonOverride",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],xP.prototype,"isHomePage",null);
_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],xP.prototype,"thumbnailAriaHidden",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],xP.prototype,"initiallyIsExpanded",null);xP=_.U([_.Q({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],xP);
_.Z7b=_.$r()(xP,"ytd-rich-shelf-renderer",function(){if(X7b===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-rich-shelf-renderer">\n  <div id="rich-shelf-header-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="rich-shelf-header" class="style-scope ytd-rich-shelf-renderer">\n      <h2 class="style-scope ytd-rich-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n            <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n              <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n              <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-rich-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" aria-hidden="[[thumbnailAriaHidden]]" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n              </yt-img-shadow>\n            </a>\n            <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n              <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n                <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n                  <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n                </a>\n                <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n              <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n                <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n                <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n              </div>\n            </div>\n          </div>\n        </template>\n      </h2>\n      <div id="menu-container" class="style-scope ytd-rich-shelf-renderer">\n        <div class="cta-button-container style-scope ytd-rich-shelf-renderer" hidden="[[!hasTopCtaButton]]">\n          <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n        <div id="menu" hidden="[[isDismissedButtonHidden]]" class="style-scope ytd-rich-shelf-renderer"></div>\n        <yt-button-view-model id="previous-button" button-overrides="[[previousButtonOverride]]" data="[[data.previousButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="previousClick" class="style-scope ytd-rich-shelf-renderer">\n        </yt-button-view-model>\n        <yt-button-view-model id="next-button" button-overrides="[[nextButtonOverride]]" data="[[data.nextButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="nextClick" class="style-scope ytd-rich-shelf-renderer">\n      </yt-button-view-model>\n      </div>\n    </div>\n    <div id="cta-bottom-button-container" hidden="[[!hasBottomCtaButton]]" class="style-scope ytd-rich-shelf-renderer">\n      <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="contents-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="contents" class="style-scope ytd-rich-shelf-renderer"></div>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowMoreHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showMoreButton)]]" on-click="expandShelf">\n    </ytd-button-renderer>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowLessHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showLessButton)]]" on-click="collapseShelf">\n    </ytd-button-renderer>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-shelf-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);X7b=a}a=X7b;return a},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.as("kevlar_poly_si_batch_j028")?1:2});var $7b;var a8b=function(){var a=_.P.apply(this,arguments)||this;a.tileLottieAnimationRef={};a.backgroundLottieAnimationRef={};a.isOnHoverBehaviorForLottieEnabled=!0;a.useBiggerShowcaseImage=_.w("enable_desktop_search_bigger_thumbs");a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return a};
_.z(a8b,_.P);_.f=a8b.prototype;_.f.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.f.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.f.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var a=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);a!==this.hasTile&&this.set("hasTile",a);a=this.hasLogo(this.data)||!!this.data.badgeText;a!==this.hasMetadata&&this.set("hasMetadata",a);a=this.data.overflowButton?!1:a;a!==this.showLogoImage&&this.set("showLogoImage",a);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.f.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.f.currentColorChanged=function(){this.updateButtonPalette()};
_.f.computeBackgroundStyle=function(a){if(a&&this.data){var b=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var c=_.Vs((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);c&&b.push('background-image: url("'+c+'");')}var d;((d=a.basicColorData)==null?void 0:d.backgroundColor)!==void 0&&b.push("background-color: "+_.Dq(a.basicColorData.backgroundColor)+";");return b.join("")}};
_.f.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&this.set("isDarkTheme",a)};
_.f.getCurrentLogo=function(a,b){if(a)return b?a.darkLogoImage:a.lightLogoImage};
_.f.getCurrentStaticTileImage=function(a,b){if(this.hasStaticTile(a))return a.darkTileImage?b?a.darkTileImage:a.tileImage:a.tileImage};
_.f.computeTitleStyle=function(a){if(this.data&&this.data.title&&a&&a.basicColorData&&a.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.Cq(a.basicColorData.foregroundTitleColor)+";"};
_.f.computeSubtitleStyle=function(a){if(this.data&&this.data.subtitle&&a&&a.basicColorData&&a.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.Cq(a.basicColorData.foregroundBodyColor)+";"};
_.f.computeSupplementalStyle=function(a){if(this.data&&this.data.supplementalText&&a&&a.supplementalTextColor!==void 0)return a=_.Cq(a.supplementalTextColor),"color:"+a+";--yt-endpoint-color:"+a+";--yt-endpoint-hover-color:"+a+";--yt-endpoint-visited-color:"+a+";--yt-formatted-string-bold-font-weight:700;"};
_.f.computeBadgeStyle=function(a){if(this.data&&this.data.badgeText&&a&&a.basicColorData&&a.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.Cq(a.basicColorData.foregroundActivatedColor)+";"};
_.f.computeDismissIconStyle=function(a){var b,c;if((a==null?0:(b=a.dismissButtonColorData)==null?0:b.foregroundTitleColor)&&(a==null?0:(c=a.dismissButtonColorData)==null?0:c.backgroundColor))return"--yt-button-color:"+_.Dq(a.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Dq(a.dismissButtonColorData.backgroundColor)+";"};
_.f.computeOverflowIconStyle=function(a){var b,c;if((a==null?0:(b=a.dismissButtonColorData)==null?0:b.foregroundTitleColor)&&(a==null?0:(c=a.dismissButtonColorData)==null?0:c.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.Dq(a.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Dq(a.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.Dq(a.dismissButtonColorData.foregroundTitleColor)+";"};
_.f.computeBannerStyle=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.f.computeLocation=function(a){switch(a==null?void 0:a.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.f.shouldShowTileSection=function(a,b,c){return!this.shouldExpandLogo(a,b,c)&&b};
_.f.shouldShowExpandedLogoSection=function(a,b,c){return this.shouldExpandLogo(a,b,c)&&a!==void 0&&this.hasLogo(a)};
_.f.shouldExpandLogo=function(a,b,c){return a&&b?!1:c>=2};
_.f.hasStaticTile=function(a){return!(a==null||!a.tileImage)};
_.f.hasTileLottie=function(a){var b;return!!(a==null?0:(b=a.tileLottie)==null?0:b.url)};
_.f.hasLogo=function(a){return this.getCurrentLogo(a,this.isDarkTheme)!==void 0};
_.f.getLogoHeight=function(a){return this.logoWithPadding(a)?"26":"20"};
_.f.getExpandedLogoHeight=function(a){return this.logoWithPadding(a)?"31":"24"};
_.f.getLogoImageId=function(a){return this.logoWithPadding(a)?"logo-image-with-padding":"logo-image"};
_.f.hasBackgroundLottie=function(a){var b;return!!(a==null?0:(b=a.backgroundLottie)==null?0:b.url)};
_.f.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var a,b;(a=this.tileLottieAnimationRef)==null||(b=a.lottieEl)==null||b.play();var c,d;(c=this.backgroundLottieAnimationRef)==null||(d=c.lottieEl)==null||d.play()}};
_.f.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var a,b;(a=this.tileLottieAnimationRef)==null||(b=a.lottieEl)==null||b.pause();var c,d;(c=this.backgroundLottieAnimationRef)==null||(d=c.lottieEl)==null||d.pause()}};
_.f.pauseLottie=function(){var a,b;(a=this.tileLottieAnimationRef)==null||(b=a.lottieEl)==null||b.pause();var c,d;(c=this.backgroundLottieAnimationRef)==null||(d=c.lottieEl)==null||d.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.f.performPrimaryButtonAction=function(){var a,b,c;((a=this.data)==null?0:(b=a.primaryButton)==null?0:(c=b.buttonRenderer)==null?0:c.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.f.requestElementsPerRow=function(){_.io(this.hostElement,"yt-request-elements-per-row")};
_.f.updateButtonPalette=function(){if(this.data&&this.currentColorData){var a;((a=this.data.dismissButton)==null?0:a.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var b;if((b=this.data.primaryButton)==null?0:b.buttonRenderer)this.currentColorData.primaryButtonColorData?
(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorData.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorData.primaryButtonStyleType,this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)});var c;if((c=this.data.secondaryButton)==
null?0:c.buttonRenderer)this.currentColorData.secondaryButtonColorData?(this.data.secondaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.secondaryButtonColorData},this.data.secondaryButton.buttonRenderer.style=void 0):this.currentColorData.secondaryButtonStyleType&&(this.data.secondaryButton.buttonRenderer.style=this.currentColorData.secondaryButtonStyleType,this.data.secondaryButton.buttonRenderer.colorData=void 0),this.set("secondaryButton",{buttonRenderer:Object.assign({},
this.data.secondaryButton.buttonRenderer)});var d;((d=this.data.primaryButton)==null?0:d.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var e;((e=this.data.secondaryButton)==null?0:e.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.f.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var a=this.getTileLottieDataBasedOnTheme(),b,c;if(a.url!==((b=this.tileLottiePlayerProps)==null?void 0:(c=b.animationConfig)==null?void 0:c.path)){var d,e;(d=this.tileLottieAnimationRef)==null||(e=d.lottieEl)==null||e.destroy();var g;this.isOnHoverBehaviorForLottieEnabled=!((g=a.settings)==null?0:g.autoplay);var k,m;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(m=(k=a.settings)==null?void 0:k.autoplay)!=null?m:!1,loop:this.getLottieLoopValue(a.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof a.url==="string"?this.tileLottiePlayerProps.animationConfig.path=a.url:this.tileLottiePlayerProps.animationConfig.animationData=a.url}}};
_.f.getOverflowButton=function(a){return _.y(a.overflowButton,AEb)};
_.f.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var a=this.getBackgroundLottieDataBasedOnTheme(),b,c;if(a.url!==((b=this.backgroundLottiePlayerProps)==null?void 0:(c=b.animationConfig)==null?void 0:c.path)){var d,e;(d=this.backgroundLottieAnimationRef)==null||(e=d.lottieEl)==null||e.destroy();var g;this.isOnHoverBehaviorForLottieEnabled=!((g=a.settings)==null?0:g.autoplay);var k,m;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(m=(k=a.settings)==null?void 0:k.autoplay)!=null?m:!1,loop:this.getLottieLoopValue(a.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof a.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=a.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
a.url}}};
_.f.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var a;((a=this.tileLottieAnimationRef)==null?void 0:a.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var b;((b=this.backgroundLottieAnimationRef)==null?void 0:b.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.f.getTileLottieDataBasedOnTheme=function(){var a;if(this.isDarkTheme&&((a=this.data)==null?0:a.darkThemeTileLottie))return this.data.darkThemeTileLottie;var b;return((b=this.data)==null?0:b.tileLottie)?this.data.tileLottie:{}};
_.f.getBackgroundLottieDataBasedOnTheme=function(){var a;if(this.isDarkTheme&&((a=this.data)==null?0:a.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var b;return((b=this.data)==null?0:b.backgroundLottie)?this.data.backgroundLottie:{}};
_.f.onUpdateElementsPerRowAction=function(a){a&&this.elementsPerRow!==a&&(this.elementsPerRow=a)};
_.f.getLottieLoopValue=function(a){return a?a.loop!==void 0?a.loop:a.loopCount?a.loopCount-1:!0:!0};
_.f.logoWithPadding=function(a){var b,c,d;return(a=(b=this.getCurrentLogo(a,this.isDarkTheme))==null?void 0:(c=b.thumbnails)==null?void 0:(d=c[0])==null?void 0:d.height)&&a%31===0?!0:!1};
var yP=a8b;yP.prototype.currentColorChanged=yP.prototype.currentColorChanged;yP.prototype.themeChanged=yP.prototype.themeChanged;yP.prototype.dataChanged=yP.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],yP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],yP.prototype,"ytdDismissibleItemBehavior",void 0);
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],yP.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],yP.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],yP.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],yP.prototype,"primaryButton",void 0);_.U([_.O(),_.W("design:type",Object)],yP.prototype,"secondaryButton",void 0);
_.U([_.O({reflectToAttribute:!0,value:3}),_.W("design:type",Number)],yP.prototype,"elementsPerRow",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],yP.prototype,"isDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],yP.prototype,"hasTile",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],yP.prototype,"hasMetadata",void 0);
_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],yP.prototype,"showLogoImage",void 0);_.U([_.O(),_.W("design:type",Object)],yP.prototype,"currentColorData",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.W("design:type",String)],yP.prototype,"bannerStyle",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.W("design:type",String)],yP.prototype,"location",void 0);
_.U([_.O(),_.W("design:type",Object)],yP.prototype,"tileLottiePlayerProps",void 0);_.U([_.O(),_.W("design:type",Object)],yP.prototype,"tileLottieAnimationRef",void 0);_.U([_.O(),_.W("design:type",Object)],yP.prototype,"backgroundLottiePlayerProps",void 0);_.U([_.O(),_.W("design:type",Object)],yP.prototype,"backgroundLottieAnimationRef",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],yP.prototype,"useBiggerShowcaseImage",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],yP.prototype,"isHideEnclosingAction",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yP.prototype,"dataChanged",null);_.U([_.mr("isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yP.prototype,"themeChanged",null);
_.U([_.mr("currentColorData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yP.prototype,"currentColorChanged",null);yP=_.U([_.Q({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],yP);
_.S(yP,"ytd-statement-banner-renderer",function(){if($7b!==void 0)return $7b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n    <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n  </ytd-lottie-player></div>\n  <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n    <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n      <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n        <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n        </yt-img-shadow>\n        <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n      </ytd-lottie-player></div>\n    </div>\n    <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n      <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n        <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n        </yt-img-shadow>\n      </div>\n    </div>\n    <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n      <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="36" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-dynamic-sizing-formatted-string>\n          <div id="new-badge-container" hidden="[[!data.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n        </div>\n        <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n          <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n      <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n        </div>\n      </div>\n    </div>\n    <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return $7b=a},{mode:1});var b8b;var c8b=function(){var a=_.P.apply(this,arguments)||this;a.isSearch=!1;a.hideShelfHeader=!1;a.engagementPanel=!1;a.disableMouseScroll=!0;a.useFloorScrolling=!0;a.modernTypography=_.w("web_modern_typography");return a};
_.z(c8b,_.P);c8b.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.vo("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.vo("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
c8b.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
var zP=c8b;zP.prototype.onDataChanged=zP.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],zP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],zP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],zP.prototype,"isSearch",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],zP.prototype,"hideShelfHeader",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],zP.prototype,"engagementPanel",void 0);_.U([_.O(),_.W("design:type",Object)],zP.prototype,"disableMouseScroll",void 0);_.U([_.O(),_.W("design:type",Object)],zP.prototype,"useFloorScrolling",void 0);_.U([_.O(),_.W("design:type",Object)],zP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],zP.prototype,"modernTypography",void 0);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zP.prototype,"onDataChanged",null);zP=_.U([_.Q({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],zP);
_.S(zP,"ytd-reel-shelf-renderer",function(){if(b8b!==void 0)return b8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return b8b=a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var d8b;var e8b=_.Rr(function(a){var b=a.data;a=a.useSmallFont;var c={},d={};return _.q("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.q(_.qi,{cond:function(){return b().favicon},
then:function(e){return _.q(_.Ps,{data:e,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.q("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.q(_.tt,{text:function(){return b().title},
className:_.et("yt-channel-external-link-view-model-wiz__title",(c["yt-channel-external-link-view-model-wiz__title--title-small-font"]=a,c)),ellipsisTruncate:!0,userInput:!0}),_.q(_.tt,{text:function(){return b().link},
className:_.et("yt-channel-external-link-view-model-wiz__link",(d["yt-channel-external-link-view-model-wiz__link--link-small-font"]=a,d)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"ub");
e8b.idomCompat=!0;_.Ts(e8b,"yt-channel-external-link-view-model",{props:{data:_.VG,useSmallFont:_.VG}});_.Ft("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var f8b=function(){var a=_.P.apply(this,arguments)||this;a.revealButtonClass="button";a.businessEmailDisplayState="HIDE_SECTION";return a};
_.z(f8b,_.P);_.f=f8b.prototype;_.f.refit=function(){var a=this;_.Er(function(){_.mo(a.hostElement,"yt-refit-popups-action")});
_.Qm(this,function(){_.mo(a.hostElement,"yt-refit-popups-action")})};
_.f.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Kn("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.f.businessEmailMetadataChanged=function(){this.revealButton||this.businessEmail||this.metadata.signInForBusinessEmail?this.metadata.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.metadata.businessEmail&&(this.businessEmail=this.metadata.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.f.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.f.configureRendererStamper=function(){return{"data.flaggingButton":{id:"flagging-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.shareChannel":{id:"share-channel",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"metadata.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:"yt-channel-external-link-view-model"}}}};
_.f.computeEmailHref=function(a){return"mailto:"+a};
_.f.computeSafeUrl=function(a){if(a)return _.Id(a)};
_.f.linkEndpoint=function(a){return _.y(a.onTap,_.Cs)};
_.f.linkEndpointToHref=function(a){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(a))};
_.f.onYtServiceRequestCompleted=function(a){var b;if((b=a.detail.data)==null?0:b.businessEmail)this.businessEmail=a.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var c;if((c=a.detail.data)==null?0:c.errorMessage)this.businessEmailErrorMessage=a.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.f.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var a=this.JSC$13908_captchaTextarea.value;if(a){a={recaptcha_response_token:a,channel_id:this.metadata.channelId};var b=_.y(this.metadata.onBusinessEmailRevealClickCommand,_.Cs);b&&this.ytComponentBehavior.resolveCommand(b,{form:a})}}};
_.f.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Um.Object.defineProperties(f8b.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var a;return _.y((a=this.data)==null?void 0:a.metadata,Bzb)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.y(this.metadata.businessEmailRevealButton,_.Iu)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var a=new URL(this.metadata.canonicalChannelUrl);return a.host+a.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.y(this.metadata.learnMoreOnTap,_.Cs)}}});
var AP=f8b;AP.prototype.onYtServiceRequestCompleted=AP.prototype.onYtServiceRequestCompleted;AP.prototype.businessEmailMetadataChanged=AP.prototype.businessEmailMetadataChanged;AP.prototype.refit=AP.prototype.refit;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],AP.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],AP.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],AP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.ir("#g-recaptcha-response"),_.W("design:type",HTMLTextAreaElement)],AP.prototype,"JSC$13908_captchaTextarea",void 0);_.U([_.O(),_.W("design:type",Object)],AP.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],AP.prototype,"revealButtonClass",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],AP.prototype,"metadata",null);
_.U([_.K("metadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],AP.prototype,"revealButton",null);_.U([_.K("metadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],AP.prototype,"channelDisplayUrl",null);_.U([_.mr("metadata"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],AP.prototype,"refit",null);_.U([_.K("metadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],AP.prototype,"formattedDescription",null);
_.U([_.K("metadata","learnMoreCommand"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],AP.prototype,"shouldRendereVerifiedPhoneStatus",null);_.U([_.K("metadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],AP.prototype,"learnMoreCommand",null);_.U([_.O(),_.W("design:type",String)],AP.prototype,"businessEmailDisplayState",void 0);_.U([_.O(),_.W("design:type",String)],AP.prototype,"businessEmail",void 0);
_.U([_.O(),_.W("design:type",String)],AP.prototype,"businessEmailErrorMessage",void 0);_.U([_.mr("metadata"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],AP.prototype,"businessEmailMetadataChanged",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],AP.prototype,"onYtServiceRequestCompleted",null);
AP=_.U([_.Q({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],AP);
_.S(AP,"ytd-about-channel-renderer",function(){if(d8b!==void 0)return d8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return d8b=a},{mode:1});var g8b;var h8b=function(){return _.P.apply(this,arguments)||this};
_.z(h8b,_.P);var BP=h8b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],BP.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],BP.prototype,"data",void 0);BP=_.U([_.Q({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],BP);
_.S(BP,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(g8b!==void 0)return g8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-avatar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-list-sub-menu-avatar-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="80" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">[[getSimpleString(data.title)]]</div>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return g8b=a},{mode:1});var i8b;var j8b=function(){return _.P.apply(this,arguments)||this};
_.z(j8b,_.P);j8b.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
var CP=j8b;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],CP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],CP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],CP.prototype,"aligment",void 0);CP=_.U([_.Q({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],CP);
_.S(CP,"ytd-channel-list-sub-menu-renderer",function(){if(i8b!==void 0)return i8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-list-sub-menu-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return i8b=
a},{mode:1});var k8b;var l8b=function(){return _.P.apply(this,arguments)||this};
_.z(l8b,_.P);l8b.prototype.configureRendererStamper=function(){return{"data.playAllButton":{id:"play-all",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.rightButtons":{id:"right-buttons",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.sortSetting":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",params:{isRightAligned:!0}}}}}};
var DP=l8b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],DP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],DP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],DP.prototype,"data",void 0);DP=_.U([_.Q({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],DP);
_.S(DP,"ytd-channel-sub-menu-renderer",function(){if(k8b!==void 0)return k8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-items" class="style-scope ytd-channel-sub-menu-renderer">\n  <yt-dropdown-menu class="content-sub-menu style-scope ytd-channel-sub-menu-renderer" data="[[data.contentTypeSubMenuItems]]" parent-tracking-params="[[data.trackingParams]]" use-label="">\n  </yt-dropdown-menu>\n  <div id="play-all" class="style-scope ytd-channel-sub-menu-renderer"></div>\n</div>\n<div id="sort-menu" class="style-scope ytd-channel-sub-menu-renderer"></div>\n<div id="right-buttons" class="style-scope ytd-channel-sub-menu-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return k8b=a},{mode:1});var m8b;var n8b;var o8b=function(){var a=_.P.apply(this,arguments)||this;a.isCompact=!1;return a};
_.z(o8b,_.P);_.Um.Object.defineProperties(o8b.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var a,b;return((b=_.y((a=this.data)==null?void 0:a.endpoint,_.Kl))==null?void 0:b.target)==="TARGET_NEW_WINDOW"}}});
var EP=o8b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],EP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],EP.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],EP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],EP.prototype,"isCompact",void 0);_.U([_.K("isCompact"),_.W("design:type",Number),_.W("design:paramtypes",[])],EP.prototype,"thumbnailWidth",null);
_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],EP.prototype,"openNewWindow",null);EP=_.U([_.Q({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],EP);
_.S(EP,"ytd-media-lockup-renderer",function(){if(n8b!==void 0)return n8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-media-lockup-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n  <div id="thumbnail-container" class="style-scope ytd-media-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" fit-width="" thumbnail="[[data.thumbnailDetails]]" width="[[thumbnailWidth]]" class="style-scope ytd-media-lockup-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="description" class="style-scope ytd-media-lockup-renderer">\n    <div id="title" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-media-lockup-renderer">\n      <span id="subtitle-text" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.subtitle)]]</span>\n      \n      <yt-icon class="media-lockup-icon style-scope ytd-media-lockup-renderer" default-to-filled="true" hidden="[[!openNewWindow]]" icon="open_in_new" size="15"></yt-icon>\n    </div>\n  </div>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return n8b=a},{mode:1});var p8b;var q8b=function(){return _.P.apply(this,arguments)||this};
_.z(q8b,_.P);var FP=q8b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],FP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],FP.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],FP.prototype,"data",void 0);FP=_.U([_.Q({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],FP);
_.S(FP,"ytd-structured-description-channel-lockup-renderer",function(){if(p8b!==void 0)return p8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-channel-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  <ytd-thumbnail data="[[data]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  </ytd-thumbnail>\n</div>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-channel-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-channel-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-channel-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subscriber-count" class="style-scope ytd-structured-description-channel-lockup-renderer">\n      [[getSimpleString(data.subscriberCountText)]]\n    </div>\n  </div>\n</a>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return p8b=a},{mode:1});var r8b;var s8b=function(){var a=_.P.apply(this,arguments)||this;a.isCompact=!1;a.collections=_.w("web_modern_collections_v2");a.collectionsStackColor=_.w("modernize_structured_description_playlist_lockups_v2");return a};
_.z(s8b,_.P);s8b.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",params:{isCompact:!0}},thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer"}},initialRenderPriority:_.w("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.Um.Object.defineProperties(s8b.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d,e,g;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(a=this.data)==null?void 0:(b=a.thumbnail)==null?void 0:b.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(c=this.data)==null?void 0:(d=c.thumbnail)==null?void 0:d.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(e=this.data)==null?void 0:(g=e.thumbnail)==
null?void 0:g.vibrantColorPalette:void 0}}}});
var GP=s8b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],GP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],GP.prototype,"componentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],GP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],GP.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],GP.prototype,"showSidePanelThumbnailOverlay",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],GP.prototype,"isCompact",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],GP.prototype,"collections",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],GP.prototype,"collectionsStackColor",void 0);
_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],GP.prototype,"twoLineTitle",null);_.U([_.K("data","collections","collectionsStackColor"),_.W("design:type",Object),_.W("design:paramtypes",[])],GP.prototype,"collectionStack",null);GP=_.U([_.Q({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],GP);
_.S(GP,"ytd-structured-description-playlist-lockup-renderer",function(){if(r8b!==void 0)return r8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return r8b=a},{mode:1});var t8b;var u8b=function(){return _.P.apply(this,arguments)||this};
_.z(u8b,_.P);var HP=u8b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],HP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],HP.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],HP.prototype,"data",void 0);HP=_.U([_.Q({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],HP);
_.S(HP,"ytd-structured-description-video-lockup-renderer",function(){if(t8b!==void 0)return t8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-video-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n</ytd-thumbnail>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-video-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-video-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n    <yt-formatted-string id="metadata-details" disable-upgrade$="[[!data.metadataDetails]]" hidden="[[!data.metadataDetails]]" no-endpoints="" text="[[data.metadataDetails]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return t8b=a},{mode:2});var v8b=function(){return _.P.apply(this,arguments)||this};
_.z(v8b,_.P);
v8b.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",params:{showSidePanelThumbnailOverlay:!0,isCompact:!0}},structuredDescriptionVideoLockupRenderer:"ytd-structured-description-video-lockup-renderer",structuredDescriptionChannelLockupRenderer:"ytd-structured-description-channel-lockup-renderer",mediaLockupRenderer:{component:"ytd-media-lockup-renderer",params:{isCompact:!0}}}}}};
var IP=v8b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],IP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],IP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],IP.prototype,"data",void 0);IP=_.U([_.Q({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],IP);
_.S(IP,"ytd-compact-infocard-renderer",function(){if(m8b!==void 0)return m8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-infocard-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-compact-infocard-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return m8b=a},{mode:1});var w8b;var x8b=function(){var a=_.P.apply(this,arguments)||this;a.useModernCollectionsV2=_.w("web_modern_collections_v2");return a};
_.z(x8b,_.P);x8b.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Um.Object.defineProperties(x8b.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.w("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.w("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.w("kevlar_watch_feed_big_thumbs")?"":"94"}}});
var JP=x8b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],JP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],JP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],JP.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],JP.prototype,"ytdReduxBehavior",void 0);_.U([_.O({selector:_.Su}),_.W("design:type",Object)],JP.prototype,"isGridViewEnabled",void 0);
_.U([_.K("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],JP.prototype,"watchFeedBigThumbs",null);_.U([_.K("isGridViewEnabled","data"),_.O({reflectToAttribute:!0,value:"168"}),_.W("design:type",String),_.W("design:paramtypes",[])],JP.prototype,"thumbnailWidth",null);_.U([_.K("isGridViewEnabled","data"),_.O({reflectToAttribute:!0,value:"94"}),_.W("design:type",String),_.W("design:paramtypes",[])],JP.prototype,"customThumbnailSize",null);
_.U([_.O(),_.W("design:type",Object)],JP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],JP.prototype,"useModernCollectionsV2",void 0);JP=_.U([_.Q({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],JP);
_.S(JP,"ytd-compact-playlist-renderer",function(){if(w8b!==void 0)return w8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-playlist-renderer">\n  <ytd-playlist-thumbnail custom-thumbnail-size="[[customThumbnailSize]]" data="[[data]]" height="94" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-playlist-renderer">\n  </ytd-playlist-thumbnail>\n  <div class="details style-scope ytd-compact-playlist-renderer">\n    <div class="metadata style-scope ytd-compact-playlist-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-playlist-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-playlist-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-playlist-renderer">\n          <ytd-video-meta-block class="compact style-scope ytd-compact-playlist-renderer" data="[[data]]" no-endpoints="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n          </ytd-video-meta-block>\n          <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-playlist-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-playlist-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return w8b=a},{mode:1});var y8b;var z8b=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.w("web_darker_dark_theme");a.roundedContainer=!0;a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return a};
_.z(z8b,_.P);_.f=z8b.prototype;_.f.attached=function(){this.requestElementsPerRow()};
_.f.configureRendererStamper=function(){return{"data.actionButton":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.f.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.f.computeViewStyle=function(a){return a.style?a.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.f.onUpdateElementsPerRowAction=function(a){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&a===1};
_.f.requestElementsPerRow=function(){_.io(this.hostElement,"yt-request-elements-per-row")};
var KP=z8b;KP.prototype.dataChanged=KP.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],KP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],KP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],KP.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],KP.prototype,"actionHandlerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],KP.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],KP.prototype,"hideThumbnail",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.W("design:type",String)],KP.prototype,"viewStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],KP.prototype,"darkerDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],KP.prototype,"roundedContainer",void 0);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],KP.prototype,"dataChanged",null);KP=_.U([_.Q({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],KP);
_.S(KP,"ytd-compact-promoted-item-renderer",function(){if(y8b!==void 0)return y8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-promoted-item-renderer">\n<ytd-thumbnail data="[[data]]" hidden$="[[hideThumbnail]]" width="100" class="style-scope ytd-compact-promoted-item-renderer"></ytd-thumbnail>\n  <div id="content" class="style-scope ytd-compact-promoted-item-renderer">\n    <div id="info" class="style-scope ytd-compact-promoted-item-renderer">\n      <h3 class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n      </h3>\n      <div id="subtitle-container" class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n        <ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-promoted-item-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n    </div>\n    <div id="button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-promoted-item-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return y8b=a},{mode:1});var A8b;var LP=function(){var a=_.P.apply(this,arguments)||this;a.collections=_.w("web_modern_collections_v2");return a};
_.z(LP,_.P);LP.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
LP.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
LP.prototype.onYtNavigate=function(a,b){var c=this;if(b.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",b)){var d=this.get("watchEndpoint.videoId",b.endpoint),e=_.mo(this.hostElement,"yt-get-current-video-id-action")[0];_.w("kevlar_mix_handle_first_endpoint_different")&&d&&e&&d!==e||(a.stopPropagation(),_.bu().getPlayerPromise().then(function(g){if(g.getPlayerState()===0&&c.data.secondaryNavigationEndpoint)var k=c.data.secondaryNavigationEndpoint;else{k=
Object.assign({},b.endpoint);var m=_.y(k.commandMetadata,_.co);m&&(g=Math.floor(g.getCurrentTime()),m.url=_.Qi(m.url,{t:g}),!_.w("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(m=_.y(k,_.Un)))&&(m.startTimeSeconds=g)}_.io(c.hostElement,"yt-navigate",{endpoint:k})}))}};
_.Um.Object.defineProperties(LP.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.w("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.w("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d,e,g;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(a=this.data)==null?void 0:(b=a.thumbnail)==null?void 0:b.sampledThumbnailColor,vibrantColorPalette:(c=this.data)==null?void 0:(d=c.thumbnail)==null?void 0:d.vibrantColorPalette,darkColorPalette:(e=this.data)==null?void 0:(g=e.thumbnail)==null?void 0:g.darkColorPalette,experimentEnabled:this.collections}}}});
var MP=LP;MP.prototype.onYtNavigate=MP.prototype.onYtNavigate;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],MP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.qH.YtEndpointBehavior),_.W("design:type",Object)],MP.prototype,"ytEndpointBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],MP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],MP.prototype,"ytdDismissibleItemBehavior",void 0);
_.U([_.H(_.$I),_.W("design:type",Object)],MP.prototype,"ytdLockupBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],MP.prototype,"ytdReduxBehavior",void 0);_.U([_.O({selector:_.Su}),_.W("design:type",Object)],MP.prototype,"isGridViewEnabled",void 0);_.U([_.K("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],MP.prototype,"watchFeedBigThumbs",null);
_.U([_.K("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.W("design:type",String),_.W("design:paramtypes",[])],MP.prototype,"thumbnailWidth",null);_.U([_.O(),_.W("design:type",Object)],MP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],MP.prototype,"collections",void 0);_.U([_.K("data","collections"),_.W("design:type",Object),_.W("design:paramtypes",[])],MP.prototype,"collectionStack",null);
_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],MP.prototype,"onYtNavigate",null);MP=_.U([_.Q({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],MP);
_.S(MP,"ytd-compact-radio-renderer",function(){if(A8b!==void 0)return A8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="94" hovered="[[lockupIsHovered]]" use-hovered-property="" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div class="details style-scope ytd-compact-radio-renderer">\n    <div class="metadata style-scope ytd-compact-radio-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-radio-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-radio-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-radio-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <ytd-video-meta-block class="compact style-scope ytd-compact-radio-renderer" data="[[data]]" no-endpoints="" radio-meta="">\n        </ytd-video-meta-block>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-radio-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-radio-renderer"></yt-interaction>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return A8b=a},{mode:1});var B8b;var C8b=function(){return _.P.apply(this,arguments)||this};
_.z(C8b,_.P);C8b.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
C8b.prototype.computeRendererStyle=function(a){return a.style?a.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
var NP=C8b;_.U([_.O(),_.W("design:type",Object)],NP.prototype,"data",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],NP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],NP.prototype,"rendererBehavior",void 0);_.U([_.O({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.W("design:type",String)],NP.prototype,"rendererStyle",void 0);
NP=_.U([_.Q({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],NP);
_.S(NP,"ytd-compact-text-promo-renderer",function(){if(B8b!==void 0)return B8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-text-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-text-promo-renderer">\n</ytd-badge-supported-renderer>\n<yt-formatted-string class="title style-scope ytd-compact-text-promo-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-compact-text-promo-renderer" force-default-style="" text="[[data.subTitle]]">\n</yt-formatted-string>\n<div id="action-button" class="style-scope ytd-compact-text-promo-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return B8b=a},{mode:1});var D8b;var E8b=function(){var a=_.P.apply(this,arguments)||this;a.isShortsStyle=!1;return a};
_.z(E8b,_.P);_.f=E8b.prototype;_.f.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.f.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.io(this.hostElement,"yt-disable-lockup-interaction"):_.io(this.hostElement,"yt-enable-lockup-interaction"))};
_.f.isMetaBlockEmpty=function(a){return!a||!a.longBylineText&&!a.shortBylineText&&!a.shortViewCountText&&!a.viewCountText};
_.f.computeHasOneLineTitle=function(a){return this.forceOneLineTitle||!(a==null||!a.buttons)};
_.f.computeDisableInteraction=function(){var a;return!((a=this.data)==null?0:a.navigationEndpoint)};
_.f.hasSingularTopStandaloneBadge=function(){var a;return!((a=this.data)==null||!a.topStandaloneBadge)};
_.Um.Object.defineProperties(E8b.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.w("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.w("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
shouldShowTopBadges:{configurable:!0,enumerable:!0,get:function(){return this.hasSingularTopStandaloneBadge()}},
topBadges:{configurable:!0,enumerable:!0,get:function(){var a;return this.hasSingularTopStandaloneBadge()?[(a=this.data)==null?void 0:a.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var a;return this.shouldShowTopBadges?((a=this.data)==null?void 0:a.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
var OP=E8b;OP.prototype.disableInteractionChanged=OP.prototype.disableInteractionChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],OP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],OP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],OP.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.$I),_.W("design:type",Object)],OP.prototype,"ytdLockupBehavior",void 0);
_.U([_.H(_.OI),_.W("design:type",Object)],OP.prototype,"ytdReduxBehavior",void 0);_.U([_.O({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.W("design:type",Boolean)],OP.prototype,"metaBlockEmpty",void 0);_.U([_.O({selector:_.Su}),_.W("design:type",Object)],OP.prototype,"isGridViewEnabled",void 0);_.U([_.K("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],OP.prototype,"watchFeedBigThumbs",null);
_.U([_.K("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.W("design:type",String),_.W("design:paramtypes",[])],OP.prototype,"thumbnailWidth",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],OP.prototype,"isShortsStyle",void 0);_.U([_.O(),_.W("design:type",Object)],OP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.W("design:type",Boolean)],OP.prototype,"hasOneLineTitle",void 0);
_.U([_.O(),_.W("design:type",Boolean)],OP.prototype,"hideThumbnail",void 0);_.U([_.O(),_.W("design:type",Boolean)],OP.prototype,"forceOneLineTitle",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.W("design:type",Boolean)],OP.prototype,"disableInteraction",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],OP.prototype,"musicMetadataVideoLockup",void 0);
_.U([_.N("disableInteraction"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OP.prototype,"disableInteractionChanged",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],OP.prototype,"shouldShowTopBadges",null);_.U([_.K("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],OP.prototype,"topBadges",null);
_.U([_.K("shouldShowTopBadges","data"),_.W("design:type",Array),_.W("design:paramtypes",[])],OP.prototype,"inlineMetadataBadges",null);_.U([_.K("shouldShowTopBadges"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],OP.prototype,"shouldShowBadgesBelowMetadata",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],OP.prototype,"compactTitleClass",null);OP=_.U([_.Q({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],OP);
_.S(OP,"ytd-compact-video-renderer",function(){if(D8b!==void 0)return D8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" disable-interaction="[[disableInteraction]]" hidden$="[[hideThumbnail]]" hovered="[[lockupIsHovered]]" queued="[[queued]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[thumbnailWidth]]" class="style-scope ytd-compact-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-video-renderer">\n    <div class="metadata style-scope ytd-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]">\n        <h3 class="style-scope ytd-compact-video-renderer">\n          \n          <ytd-badge-supported-renderer class="top-badge style-scope ytd-compact-video-renderer" badges="[[topBadges]]" collection-truncate="" hidden="[[!shouldShowTopBadges]]">\n          </ytd-badge-supported-renderer>\n          <span class$="[[compactTitleClass]] style-scope ytd-compact-video-renderer" id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-video-renderer">\n          \n          <ytd-video-meta-block class="compact style-scope ytd-compact-video-renderer" badges="[[inlineMetadataBadges]]" data="[[data]]" inline-badges="" no-endpoints="" truncate-metadata-line="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]"></ytd-video-meta-block>\n          \n          <ytd-badge-supported-renderer class="badges style-scope ytd-compact-video-renderer" badges="[[data.badges]]" hidden="[[!shouldShowBadgesBelowMetadata]]" wrap-badges="">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n      <div id="buttons" class="style-scope ytd-compact-video-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-video-renderer"></div>\n    <div id="queue-button" class="style-scope ytd-compact-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-video-renderer"></yt-interaction>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return D8b=a},{mode:_.as("kevlar_poly_si_batch_j067")?1:2});var F8b;_.Ft("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var G8b=function(){return _.P.apply(this,arguments)||this};
_.z(G8b,_.P);var PP=G8b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],PP.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],PP.prototype,"data",void 0);PP=_.U([_.Q({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],PP);
_.S(PP,"ytd-counterfactual-renderer",function(){if(F8b!==void 0)return F8b;var a=document.createElement("template");_.B(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-counterfactual-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return F8b=a},{mode:1});var H8b;var QP=function(){var a=_.P.apply(this,arguments)||this;a.hidden=!1;return a};
_.z(QP,_.P);QP.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&(_.w("web_ytd_dropdown_item_renderer_command_resolver_ks")?_.oo(this.hostElement,[this.data.onSelectCommand]):_.v().resolve(_.Yi).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}}))};
QP.prototype.computeHidden=function(a){return!!a};
_.Um.Object.defineProperties(QP.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.label)}},
value:{configurable:!0,enumerable:!0,get:function(){if(this.data&&(typeof this.data.stringValue==="string"||typeof this.data.int32Value==="number"))return this.data.stringValue?this.data.stringValue:this.data.int32Value}}});
var RP=QP;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],RP.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],RP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.W("design:type",Object)],RP.prototype,"hidden",void 0);_.U([_.K("data.label"),_.W("design:type",String),_.W("design:paramtypes",[])],RP.prototype,"label",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],RP.prototype,"value",null);RP=_.U([_.Q({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],RP);
_.S(RP,"ytd-dropdown-item-renderer",function(){if(H8b!==void 0)return H8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" aria-label$="[[data.accessibility.label]]" on-tap="onSelect" class="style-scope ytd-dropdown-item-renderer">\n  <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-dropdown-item-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-item>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return H8b=a},{mode:1});var I8b;var J8b;var K8b=function(){return _.P.apply(this,arguments)||this};
_.z(K8b,_.P);var SP=K8b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],SP.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],SP.prototype,"data",void 0);_.U([_.O({computed:"getSimpleString(data.label)"}),_.W("design:type",String)],SP.prototype,"label",void 0);SP=_.U([_.Q({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],SP);
_.S(SP,"ytd-navigation-dropdown-item-renderer",function(){if(J8b!==void 0)return J8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-navigation-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <a class="yt-simple-endpoint style-scope ytd-navigation-dropdown-item-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n  <tp-yt-paper-item id="item" class="style-scope ytd-navigation-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-navigation-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return J8b=a},{mode:1});var L8b=function(){var a=_.P.apply(this,arguments)||this;a.disabled=!1;a.value="";a.noLabelFloat=!1;a.noUnderline=!1;a.usePrimaryColor=!1;a.hasBackground=!1;a.verticalAlign="top";a.autosize=!1;a.minAutosizeWidth=100;a.autosizeFont="14px Roboto";return a};
_.z(L8b,_.P);_.f=L8b.prototype;_.f.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.f.open=function(){this.inputEl.open()};
_.f.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.f.dataChanged=function(){this.reset()};
_.f.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.WH("value-changed",this.value))};
_.f.stopPropagation=function(a){a.stopPropagation()};
_.f.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var a=this.canvas.getContext("2d");a&&(a.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(a.measureText(this.inputEl.value).width)+24)+"px")}};
_.f.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var a=0,b=this.data.entries.length;a<b;a++){var c=this.data.entries[a],d;for(d in c)if(c.hasOwnProperty(d)){var e=c[d];if("isSelected"in e&&e.isSelected)return"stringValue"in e?e.stringValue||"":"int32Value"in e?e.int32Value||0:0}}return null};
_.f.updateValueFromBinding=function(a){this.value=a.detail.value};
_.Um.Object.defineProperties(L8b.prototype,{label:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.entries)return null;if(this.data.label)return this.data.label;for(var a=0,b=this.data.entries.length;a<b;a++){var c=this.data.entries[a],d;for(d in c)if(c.hasOwnProperty(d)){var e=c[d];if("isSelected"in e&&e.isSelected&&"label"in e)return this.ytRendererBehavior.getSimpleString(e.label)}}return null}}});
var TP=L8b;TP.prototype.autoSizeLabel=TP.prototype.autoSizeLabel;TP.prototype.stopPropagation=TP.prototype.stopPropagation;TP.prototype.valueChangedForBinding=TP.prototype.valueChangedForBinding;TP.prototype.dataChanged=TP.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],TP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],TP.prototype,"ytRendererStamperBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],TP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],TP.prototype,"disabled",void 0);_.U([_.O(),_.W("design:type",Object)],TP.prototype,"value",void 0);_.U([_.O(),_.W("design:type",Object)],TP.prototype,"noLabelFloat",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],TP.prototype,"noUnderline",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],TP.prototype,"theme",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],TP.prototype,"usePrimaryColor",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],TP.prototype,"hasBackground",void 0);_.U([_.O(),_.W("design:type",Object)],TP.prototype,"verticalAlign",void 0);_.U([_.O(),_.W("design:type",Object)],TP.prototype,"autosize",void 0);_.U([_.O(),_.W("design:type",Object)],TP.prototype,"minAutosizeWidth",void 0);_.U([_.O(),_.W("design:type",Object)],TP.prototype,"autosizeFont",void 0);
_.U([_.ir("#entries"),_.W("design:type",Object)],TP.prototype,"entries",void 0);_.U([_.ir("#input"),_.W("design:type",Object)],TP.prototype,"inputEl",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],TP.prototype,"dataChanged",null);_.U([_.mr("value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],TP.prototype,"valueChangedForBinding",null);
_.U([_.M("iron-overlay-opened"),_.M("iron-overlay-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],TP.prototype,"stopPropagation",null);_.U([_.M("iron-select"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],TP.prototype,"autoSizeLabel",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],TP.prototype,"label",null);
TP=_.U([_.Q({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],TP);
_.S(TP,"ytd-dropdown-renderer",function(){if(I8b!==void 0)return I8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dropdown-menu-light id="input" aria-label$="[[label]]" disabled="[[disabled]]" horizontal-align="left" label="[[label]]" no-label-float="[[noLabelFloat]]" vertical-align="[[verticalAlign]]" class="style-scope ytd-dropdown-renderer">\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-dropdown-menu-light>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return I8b=a},{mode:1});var M8b;var UP=function(){var a=_.P.apply(this,arguments)||this;a.isConstrainedList=!1;return a};
_.z(UP,_.P);UP.prototype.configureRendererStamper=function(){return{shownItems:{id:"grid-container",mapping:{channelRenderer:"ytd-channel-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
UP.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
UP.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
UP.prototype.computeViewAllHidden=function(a,b){return a||!b.viewAllEndpoint};
var VP=UP;VP.prototype.fillRestIfNoShowMore=VP.prototype.fillRestIfNoShowMore;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],VP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],VP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.kJ.YtLazyListBehavior),_.W("design:type",Object)],VP.prototype,"ytLazyListBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],VP.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],VP.prototype,"isConstrainedList",void 0);_.U([_.mr("data","canShowMore"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VP.prototype,"fillRestIfNoShowMore",null);VP=_.U([_.Q({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],VP);
_.S(VP,"ytd-expanded-shelf-contents-renderer",function(){if(M8b!==void 0)return M8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expanded-shelf-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="grid-container" class="style-scope ytd-expanded-shelf-contents-renderer"></div>\n<yt-formatted-string aria-role="button" hidden="[[!canShowMore]]" text="[[data.showMoreText]]" on-click="onShowMoreClick" class="style-scope ytd-expanded-shelf-contents-renderer">\n</yt-formatted-string>\n  <a class="yt-simple-endpoint style-scope ytd-expanded-shelf-contents-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[computeViewAllHidden(canShowMore,data)]]">\n  <yt-formatted-string text="[[data.viewAllText]]" class="style-scope ytd-expanded-shelf-contents-renderer"></yt-formatted-string>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return M8b=a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var N8b;var O8b=function(){return _.P.apply(this,arguments)||this};
_.z(O8b,_.P);O8b.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.viewChannelButton":{id:"view-channel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
var WP=O8b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],WP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],WP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],WP.prototype,"data",void 0);WP=_.U([_.Q({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],WP);
_.S(WP,"ytd-feed-channel-filter-header-renderer",function(){if(N8b!==void 0)return N8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-channel-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-feed-channel-filter-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-feed-channel-filter-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow id="avatar" height="56" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="56" class="style-scope ytd-feed-channel-filter-header-renderer">\n    </yt-img-shadow>\n    <div id="channel" class="style-scope ytd-feed-channel-filter-header-renderer">\n      <span id="title" class="style-scope ytd-feed-channel-filter-header-renderer">[[getSimpleString(data.title)]]</span>\n      <div id="view-channel-button" aria-hidden="" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n    </div>\n  </a>\n</h2>\n<div id="buttons" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return N8b=a},{mode:1});var P8b;var Q8b;var R8b;var S8b=function(){return _.P.apply(this,arguments)||this};
_.z(S8b,_.P);_.f=S8b.prototype;_.f.onClick=function(a){var b,c=(b=this.data)==null?void 0:b.sectionEndpoint;!_.Wt(_.Rq(a),this.hostElement,["A".toString()])&&c&&_.io(this.hostElement,"yt-navigate",{endpoint:c})};
_.f.computeHasSectionEndpoint=function(a){return(a==null?void 0:a.sectionEndpoint)!==void 0};
_.f.computeShowHeaderAsLink=function(a){return(a==null?void 0:a.header)!==void 0&&(a==null?void 0:a.sectionEndpoint)!==void 0};
_.f.computeShowSubheaderAsLink=function(a){return(a==null?void 0:a.subheader)!==void 0&&(a==null?void 0:a.sectionEndpoint)!==void 0&&(a==null?void 0:a.header)===void 0};
_.f.getHeaderAsLinkClass=function(a){var b=[],c;(a==null?0:(c=a.headerIcon)==null?0:c.iconType)&&b.push("header-link-active");return b.join(" ")};
var XP=S8b;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],XP.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],XP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],XP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],XP.prototype,"data",void 0);
_.U([_.O({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],XP.prototype,"hasSectionEndpoint",void 0);_.U([_.O({computed:"computeShowHeaderAsLink(data)"}),_.W("design:type",Boolean)],XP.prototype,"showHeaderAsLink",void 0);_.U([_.O({computed:"computeShowSubheaderAsLink(data)"}),_.W("design:type",Boolean)],XP.prototype,"showSubheaderAsLink",void 0);XP=_.U([_.Q({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],XP);
_.S(XP,"ytd-medical-panel-section-renderer",function(){if(R8b!==void 0)return R8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" on-click="onClick" class="style-scope ytd-medical-panel-section-renderer">\n  <div id="header" hidden="[[!data.header]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showHeaderAsLink]]" text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    <a id="header-link" class$="yt-simple-endpoint [[getHeaderAsLinkClass(data)]] style-scope ytd-medical-panel-section-renderer" hidden="[[!showHeaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      <yt-icon class="icons style-scope ytd-medical-panel-section-renderer" hidden="[[!data.headerIcon.iconType]]" icon="[[data.headerIcon.iconType]]">\n      </yt-icon>\n    </a>\n  </div>\n\n  <div id="subheader" hidden="[[!data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showSubheaderAsLink]]" text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    </yt-formatted-string>\n    <a id="subheader-link" class="yt-simple-endpoint style-scope ytd-medical-panel-section-renderer" hidden="[[!showSubheaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    </a>\n  </div>\n  <div id="paragraphs" class="style-scope ytd-medical-panel-section-renderer">\n    <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-medical-panel-section-renderer">\n      <div class="paragraph style-scope ytd-medical-panel-section-renderer">\n        <yt-formatted-string split-lines="" text="[[item]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="footer" hidden="[[!data.footer]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string link-inherit-color="" text="[[data.footer]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return R8b=a},{mode:1});var T8b=function(){var a=_.P.apply(this,arguments)||this;a.isExpanded=!1;a.roundedContainer=!0;a.skipRoundingTop=!1;a.toggleExpandableSection=function(){a.isExpanded=!a.isExpanded};
return a};
_.z(T8b,_.P);
T8b.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{medicalPanelSectionRenderer:{component:"ytd-medical-panel-section-renderer"}}},"data.expandableSections":{id:"expandable-sections",mapping:{medicalPanelSectionRenderer:{component:"ytd-medical-panel-section-renderer"}}},"data.expandButton":{id:"expand",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[toggleExpandableSection]]"}}}},"data.collapseButton":{id:"collapse",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[toggleExpandableSection]]"}}}}}};
T8b.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
var YP=T8b;YP.prototype.dataChanged=YP.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],YP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],YP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],YP.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],YP.prototype,"isExpanded",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],YP.prototype,"roundedContainer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],YP.prototype,"skipRoundingTop",void 0);_.U([_.O(),_.W("design:type",Object)],YP.prototype,"toggleExpandableSection",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YP.prototype,"dataChanged",null);
YP=_.U([_.Q({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],YP);
_.S(YP,"ytd-medical-panel-content-renderer",function(){if(Q8b!==void 0)return Q8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-medical-panel-content-renderer">\n  <div id="sections" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="expand" hidden="[[isExpanded]]"></div>\n  <div id="expandable-sections" hidden="[[!isExpanded]]" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="collapse" hidden="[[!isExpanded]]"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Q8b=a},{mode:1});_.Ft("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var ZP=function(){var a=_.P.apply(this,arguments)||this;a.roundedContainer=!0;a.amsterdamEnabled=_.w("enable_desktop_amsterdam_info_panels");a.hasTitle=!1;a.linkIcon="OPEN_IN_NEW";a.isDismissed=!1;return a};
_.z(ZP,_.P);
ZP.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",roundedContainer:"[[roundedContainer]]"}},
horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
ZP.prototype.computeHasTitle=function(a){return!(a==null||!a.title)};
ZP.prototype.onClick=function(a){var b,c=(b=this.data)==null?void 0:b.headerEndpoint;!_.Wt(_.Rq(a),this.hostElement,["BUTTON".toString()])&&c&&this.ytComponentBehavior.resolveCommand(c)};
_.Um.Object.defineProperties(ZP.prototype,{background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTAINER_BACKGROUND_",""):""}},
titleStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.titleStyle?this.data.titleStyle.replace("INFO_PANEL_CONTAINER_TITLE_STYLE_",""):""}},
showLinkIcon:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:a.disableBottomDivider)||!((b=this.data)==null?0:b.title)}}});
var $P=ZP;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],$P.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$P.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],$P.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],$P.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],$P.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$P.prototype,"roundedContainer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],$P.prototype,"amsterdamEnabled",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.W("design:type",Object)],$P.prototype,"hasTitle",void 0);
_.U([_.O({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.K("data.background"),_.W("design:type",Object),_.W("design:paramtypes",[])],$P.prototype,"background",null);_.U([_.O({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.K("data.titleStyle"),_.W("design:type",Object),_.W("design:paramtypes",[])],$P.prototype,"titleStyle",null);
_.U([_.O({type:_.w("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.K("data.titleStyle"),_.W("design:type",Object),_.W("design:paramtypes",[])],$P.prototype,"showLinkIcon",null);_.U([_.O(),_.W("design:type",String)],$P.prototype,"linkIcon",void 0);_.U([_.O({type:_.w("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],$P.prototype,"hideDivider",null);
_.U([_.O({selectorArgs:["data.dismissStateEntityKey"],selector:function(a,b){a=_.np(a.entities,"dismissState",b);return(a==null?void 0:a.isDismissed)||(a==null?void 0:a.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(a==null?void 0:a.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.W("design:type",Object)],$P.prototype,"isDismissed",void 0);$P=_.U([_.Q({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],$P);
_.S($P,"ytd-info-panel-container-renderer",function(){if(P8b!==void 0)return P8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[isDismissed]]" class="style-scope ytd-info-panel-container-renderer">\n  <div class="header style-scope ytd-info-panel-container-renderer" hidden="[[!data.title]]" on-click="onClick">\n    <h2 class="header-left-items style-scope ytd-info-panel-container-renderer">\n      <yt-icon class="header-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n      </yt-icon>\n      <yt-formatted-string class="title style-scope ytd-info-panel-container-renderer" text="[[data.title]]"></yt-formatted-string>\n      <yt-icon class="link-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!linkIcon]]" hidden="[[!showLinkIcon]]" icon="[[linkIcon]]">\n      </yt-icon>\n    </h2>\n    <div id="header-menu" class="style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div class="divider-container style-scope ytd-info-panel-container-renderer" hidden="[[hideDivider]]">\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div id="content" class="style-scope ytd-info-panel-container-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return P8b=a},{mode:1});var U8b;_.Ft("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var V8b=function(){var a=_.P.apply(this,arguments)||this;a.modernTypography=_.w("web_modern_typography");return a};
_.z(V8b,_.P);V8b.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
V8b.prototype.computeStyle=function(a){return a?a:""};
var aQ=V8b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],aQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],aQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],aQ.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.W("design:type",String)],aQ.prototype,"titleStyle",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],aQ.prototype,"modernTypography",void 0);aQ=_.U([_.Q({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],aQ);
_.S(aQ,"ytd-item-section-header-renderer",function(){if(U8b!==void 0)return U8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-item-section-header-renderer">\n  <div id="title" class="style-scope ytd-item-section-header-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-item-section-header-renderer"></yt-formatted-string>\n</div>\n<div id="buttons" class="style-scope ytd-item-section-header-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return U8b=a},{mode:1});var W8b;var X8b,Y8b=function(){return X8b!==void 0?X8b:X8b=document.createElement("template")};
document.head.appendChild(Y8b().content);var Z8b;_.bQ=new _.jB("VOTING_ANIMATION_CONTROLLER_TOKEN");var a9b=_.Rr(function(a){var b=a.data;var c=_.Pl(),d=_.Pl();a=_.h(_.ih("VOTE_STATUS_NONE",void 0,"FVF7mc"));var e=a.next().value,g=a.next().value,k=_.tu(o1a,function(){var x;return(x=b())==null?void 0:x.entityKey}),m=_.w("web_enable_voting_animation")||_.w("enable_music_web_cairo_voting_animation");
_.wi(function(){var x;((x=b().initialState)==null?0:x.status)&&g(b().initialState.status)});
var n=function(){var x,A,C=(A=(x=b().initialState)==null?void 0:x.votes)!=null?A:0,F;x=(F=b().initialState)==null?void 0:F.status;return x==="VOTE_STATUS_UPVOTED"?C-1:x==="VOTE_STATUS_DOWNVOTED"?C+1:C},r=function(){return e()==="VOTE_STATUS_UPVOTED"?n()+1:e()==="VOTE_STATUS_DOWNVOTED"?n()-1:n()},t=function(x){var A=x?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
g(A);var C=r(),F=_.v().resolve(_.Xi(_.bQ)),J=k();J&&(x&&(J==null?0:J.upvoteDefaultButtonOnTap)?_.Gs(J.upvoteDefaultButtonOnTap,{form:{element:c.value},disableClickTracking:!0}):(J==null?0:J.upvoteToggledButtonOnTap)&&_.Gs(J.upvoteToggledButtonOnTap,{form:{element:c.value},disableClickTracking:!0}));var I;x=(I=J==null?void 0:J.enableOptimisticReordering)!=null?I:b().enableOptimisticReordering;m&&F&&b().itemId&&x&&$8b(F,b().itemId,C,A)},u=function(x){var A=x?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
g(A);var C=r(),F=_.v().resolve(_.Xi(_.bQ)),J=k();J&&(x&&(J==null?0:J.downvoteDefaultButtonOnTap)?_.Gs(J.downvoteDefaultButtonOnTap,{form:{element:d.value},disableClickTracking:!0}):(J==null?0:J.downvoteToggledButtonOnTap)&&_.Gs(J.downvoteToggledButtonOnTap,{form:{element:d.value},disableClickTracking:!0}));var I;x=(I=J==null?void 0:J.enableOptimisticReordering)!=null?I:b().enableOptimisticReordering;m&&F&&b().itemId&&x&&$8b(F,b().itemId,C,A)};
a={};a=_.et("ytVotingViewModelVoteCount",(a.ytVotingViewModelVoteCountDisabled=function(){return b().isDisabled},a));
return _.q("voting-view-model",{class:"ytVotingViewModelHost"},_.q("div",{el:c},_.q(_.Hu,{data:function(){var x=_.y(b().upvoteButton,_.Ju);return{toggleButtonViewModel:Object.assign({},x,{isToggled:e()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(x){return _.q(_.Ku,{data:x.data,
onToggle:t})}})),_.q("div",{class:a},function(){var x,A,C;
return e()==="VOTE_STATUS_UPVOTED"?(x=b().initialState)==null?void 0:x.compactVotesUpvoted:e()==="VOTE_STATUS_DOWNVOTED"?(A=b().initialState)==null?void 0:A.compactVotesDownvoted:(C=b().initialState)==null?void 0:C.compactVotes}),_.q("div",{el:d},_.q(_.Hu,{data:function(){var x=_.y(b().downvoteButton,_.Ju);
return{toggleButtonViewModel:Object.assign({},x,{isToggled:e()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(x){return _.q(_.Ku,{data:x.data,
onToggle:u})}})))},"vb");_.Ts(_.Rr(function(a){var b=a.data;return _.q("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.q("div",{class:_.et("ytEngagementBarViewModelEngagementBarWrapper",a.className)},_.q(_.Hu,{data:function(){return b().actions}},{votingViewModel:a9b})))},"wb"),"engagement-bar-view-model",{props:{data:_.VG,
className:_.VG}});var b9b=function(){var a=_.P.apply(this,arguments)||this;a.amsterdamPostMvp=_.w("web_amsterdam_post_mvp_playlists");a.cairoCollabPlaylistPostMvp=_.w("web_collab_playlist_thumbnail_size");a.playlistVotingAnimationEnabled=_.w("web_enable_voting_animation");a.downloadProgress=0;a.transferState="TRANSFER_STATE_UNKNOWN";a.downloadState="DOWNLOAD_STATE_UNKNOWN";a.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";a.offlineVideoPolicyExpirationTimestamp=0;return a};
_.z(b9b,_.P);_.f=b9b.prototype;_.f.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.engagementBar":{id:"engagement-bar",mapping:{engagementBarViewModel:"engagement-bar-view-model"}}}};
_.f.canReorderChanged=function(){this.persistentDragHandle=_.w("kevlar_playlist_drag_handles")&&this.canReorder};
_.f.onDrag=function(){if(this.thumbnail){var a=_.E(this.thumbnail).querySelector("yt-image");a&&(a.shouldRenderLazy=!1)}};
_.f.onMenuOverlayChanged=function(a,b){this.menuOpened=b};
_.f.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.f.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.f.onContentsTap=function(a){var b,c=(b=this.data)==null?void 0:b.serviceEndpoints;if(c&&c.length===1&&_.y(c[0],o0a)&&!_.Wt(_.Rq(a),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(c[0]);else{var d;(b=(d=this.data)==null?void 0:d.navigationEndpoint)&&_.w("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?c9b(_.v().resolve(_.$w),b):(_.xF().playlistSuggestionsShelfActivation=
!0,_.d9b(_.v().resolve(_.$w),b)):b&&!_.Wt(_.Rq(a),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.w("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.io(this.hostElement,"yt-navigate",{endpoint:b}):this.ytComponentBehavior.resolveCommand(b))}};
_.f.computeStyle=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.f.computeThumbnailWidth=function(a){return a==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.f.downloadStateChanged=function(){this.isDownloads=!1;if(this.entityInfo||this.downloadRenderData){if(!this.entityInfo&&this.downloadRenderData)this.downloadRenderData={shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};else{if(!this.entityInfo)return;this.downloadRenderData=tGa(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference,!0);this.isDownloads=Object.keys(this.downloadRenderData).length>0}this.set("data",
Object.assign({},this.data,this.downloadRenderData))}};
_.f.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.f.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.f.dataChanged=function(){if(this.data){var a,b,c,d=((a=this.downloadRenderData)==null?void 0:a.badges)&&((b=this.downloadRenderData)==null?void 0:b.badges)!==((c=this.data)==null?void 0:c.badges),e,g,k;a=((e=this.downloadRenderData)==null?void 0:e.thumbnailOverlays)&&((g=this.downloadRenderData)==null?void 0:g.thumbnailOverlays)!==((k=this.data)==null?void 0:k.thumbnailOverlays);(!this.downloadRenderData||d||a)&&this.downloadStateChanged()}};
_.f.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var a,b,c=(a=this.data.menu)==null?void 0:(b=a.menuRenderer)==null?void 0:b.items;if(c)for(a=_.h(c),b=a.next();!b.done;b=a.next())if(b=b.value,c=void 0,_.y((c=b.menuServiceItemRenderer)==null?void 0:c.serviceEndpoint,_.OE)){var d=c=void 0,e=void 0;b=(c=b)==null?void 0:(d=c.menuServiceItemRenderer)==null?void 0:(e=d.serviceEndpoint)==null?void 0:e.playlistEditEndpoint;e=d=void 0;if(c=(d=b)==null?void 0:(e=d.actions)==null?void 0:
e[0])d=void 0,c.setVideoId=(d=this.data)==null?void 0:d.setVideoId;e=d=c=void 0;if(b=(c=b)==null?void 0:(d=c.clientActions)==null?void 0:(e=d[0])==null?void 0:e.playlistRemoveVideosAction)c=void 0,b.setVideoIds=[(c=this.data)==null?void 0:c.setVideoId]}}};
_.Um.Object.defineProperties(b9b.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
var cQ=b9b;cQ.prototype.setVideoIdChanged=cQ.prototype.setVideoIdChanged;cQ.prototype.dataChanged=cQ.prototype.dataChanged;cQ.prototype.downloadStateChanged=cQ.prototype.downloadStateChanged;cQ.prototype.onMenuOverlayChanged=cQ.prototype.onMenuOverlayChanged;cQ.prototype.canReorderChanged=cQ.prototype.canReorderChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],cQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],cQ.prototype,"ytdReduxBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],cQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.$I),_.W("design:type",Object)],cQ.prototype,"ytdLockupBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],cQ.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],cQ.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],cQ.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],cQ.prototype,"amsterdamPostMvp",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],cQ.prototype,"canReorder",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],cQ.prototype,"menuOpened",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],cQ.prototype,"handleIsHovered",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],cQ.prototype,"persistentDragHandle",void 0);
_.U([_.O(),_.W("design:type",Object)],cQ.prototype,"downloadRenderData",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],cQ.prototype,"styleType",void 0);_.U([_.O({computed:"computeThumbnailWidth(data.style)"}),_.W("design:type",Number)],cQ.prototype,"thumbnailWidth",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],cQ.prototype,"isDownloads",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],cQ.prototype,"cairoCollabPlaylistPostMvp",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],cQ.prototype,"playlistVotingAnimationEnabled",void 0);_.U([_.O({selector:Mp,selectorArgs:["data.videoId"]}),_.W("design:type",Object)],cQ.prototype,"downloadProgress",void 0);_.U([_.O(),_.W("design:type",Number)],cQ.prototype,"relativeDateReference",void 0);
_.U([_.O({selector:_.Kp,selectorArgs:["data.videoId"]}),_.W("design:type",Object)],cQ.prototype,"transferState",void 0);_.U([_.O({selector:QFa,selectorArgs:["data.videoId"]}),_.W("design:type",Object)],cQ.prototype,"downloadState",void 0);_.U([_.O({selector:DFa,selectorArgs:["data.videoId"]}),_.W("design:type",Object)],cQ.prototype,"offlinePolicyAction",void 0);_.U([_.O({selector:EFa,selectorArgs:["data.videoId"]}),_.W("design:type",Object)],cQ.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.U([_.O({selector:GFa,selectorArgs:["data.videoId"]}),_.W("design:type",Object)],cQ.prototype,"entityInfo",void 0);_.U([_.O({selector:_.Hp}),_.W("design:type",Boolean)],cQ.prototype,"miniplayerIsActive",void 0);_.U([_.K("data"),_.W("design:type",String),_.W("design:paramtypes",[])],cQ.prototype,"playlistVideoId",null);_.U([_.ir("#thumbnail"),_.W("design:type",Object)],cQ.prototype,"thumbnail",void 0);
_.U([_.mr("canReorder"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cQ.prototype,"canReorderChanged",null);_.U([_.M("yt-menu-overlay-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Boolean]),_.W("design:returntype")],cQ.prototype,"onMenuOverlayChanged",null);
_.U([_.mr("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cQ.prototype,"downloadStateChanged",null);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cQ.prototype,"dataChanged",null);
_.U([_.mr("data.setVideoId"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cQ.prototype,"setVideoIdChanged",null);cQ=_.U([_.Q({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],cQ);
_.S(cQ,"ytd-playlist-video-renderer",function(){if(Z8b!==void 0)return Z8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.main_desktop.ui.renderers.sections.ytd_playlist_video_renderer.ytd.playlist.video.renderer.transition.css.js--\x3e<div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n  <yt-icon id="reorder" icon="yt-icons:drag_handle" class="style-scope ytd-playlist-video-renderer"></yt-icon>\n  <yt-formatted-string id="index" text="[[data.index]]" class="style-scope ytd-playlist-video-renderer"></yt-formatted-string>\n</div>\n<div id="content" on-click="onContentsTap" class="style-scope ytd-playlist-video-renderer">\n  <div id="container" class="style-scope ytd-playlist-video-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" hide-playback-status="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-video-renderer">\n    </ytd-thumbnail>\n    <div id="meta" class="style-scope ytd-playlist-video-renderer">\n      <h3 aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-video-renderer">\n        <ytd-badge-supported-renderer id="top-standalone-badge" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n        </ytd-badge-supported-renderer>\n        <a id="video-title" title$="[[getSimpleString(data.title)]]" class="yt-simple-endpoint style-scope ytd-playlist-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <ytd-video-meta-block class="playlist style-scope ytd-playlist-video-renderer" data="[[data]]" is-downloading="[[isDownloads]]"></ytd-video-meta-block>\n      <ytd-badge-supported-renderer id="bottom-badges" badges="[[data.bottomBadges]]" hidden="[[!data.bottomBadges]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-badge-supported-renderer id="bottom-standalone-badge" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <div id="engagement-bar" class="style-scope ytd-playlist-video-renderer"></div>\n    </div>\n  </div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-video-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="contributor" hidden="[[!data.contributorName]]" link-inherit-color="" text="[[data.contributorName]]" class="style-scope ytd-playlist-video-renderer">\n  </yt-formatted-string>\n  <div id="offer-button" class="style-scope ytd-playlist-video-renderer"></div>\n</div>\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-playlist-video-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);a.content.insertBefore(Y8b().content.cloneNode(!0),a.content.firstChild);return Z8b=a},{mode:1});var e9b;var f9b=function(){return _.P.apply(this,arguments)||this};
_.z(f9b,_.P);var dQ=f9b;_.U([_.O(),_.W("design:type",Object)],dQ.prototype,"data",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],dQ.prototype,"rendererBehavior",void 0);dQ=_.U([_.Q({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],dQ);
_.S(dQ,"ytd-premium-browse-footer-renderer",function(){if(e9b!==void 0)return e9b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-premium-browse-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="title style-scope ytd-premium-browse-footer-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-premium-browse-footer-renderer" text="[[data.subtitle]]">\n</yt-formatted-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return e9b=a},{mode:1});var g9b;var h9b=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return a};
_.z(h9b,_.P);_.f=h9b.prototype;_.f.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.f.handleDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.f.computeHeaderLogoThumbnail=function(a,b){if(a)return b?a.darkLogo:a.lightLogo};
_.f.computeHeaderLogoHeight=function(a,b){var c,d,e;return(a=(c=this.computeHeaderLogoThumbnail(a,b))==null?void 0:(d=c.thumbnails)==null?void 0:(e=d[0])==null?void 0:e.height)&&a%31===0?"31":"24"};
_.f.computeHeaderLogoMarginBottom=function(a,b){return this.computeHeaderLogoHeight(a,b)==="24"?"0":"-7"};
var eQ=h9b;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],eQ.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],eQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],eQ.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],eQ.prototype,"isDarkTheme",void 0);_.U([_.O({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.W("design:type",Object)],eQ.prototype,"themeLogo",void 0);
_.U([_.O({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.W("design:type",String)],eQ.prototype,"logoHeight",void 0);_.U([_.O({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.W("design:type",String)],eQ.prototype,"logoMarginBottom",void 0);eQ=_.U([_.Q({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],eQ);
_.S(eQ,"ytd-primetime-promo-header-renderer",function(){if(g9b!==void 0)return g9b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="logo" class="style-scope ytd-primetime-promo-header-renderer"><yt-img-shadow dimension="height" height$="[[logoHeight]]" margin-bottom$="[[logoMarginBottom]]" thumbnail="[[themeLogo]]" class="style-scope ytd-primetime-promo-header-renderer"></yt-img-shadow><ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-primetime-promo-header-renderer"></ytd-badge-supported-renderer></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return g9b=a},{mode:1});var i9b;_.Zl(r1a);var x1a;x1a=_.Du({flexibleActionsViewModel:OXb});_.fQ=_.jt(y1a);_.Zl(y1a);_.Ts(_.fQ,"yt-section-header-view-model",{props:{data:_.VG,className:_.VG,disableHorizontalPadding:_.VG,disableVerticalPadding:_.VG,forceSmallLayout:_.VG,useResponsiveLayout:_.VG,isOverlay:_.VG}});_.Ft("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var j9b=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return a};
_.z(j9b,_.P);_.f=j9b.prototype;_.f.attached=function(){this.requestElementsPerRow()};
_.f.configureRendererStamper=function(){return{"data.panels":{id:"panels",mapping:{richItemRenderer:"ytd-rich-item-renderer"}},"data.header":{id:"header-contents",mapping:{primetimePromoHeaderRenderer:"ytd-primetime-promo-header-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.sectionHeader":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.details":{id:"details-panel",mapping:{primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer"}}}};
_.f.onDataChange=function(){var a=this;_.Qm(this,function(){a.updateItemVisibility()})};
_.f.onUpdateElementsPerRowAction=function(a){a&&this.elementsPerRow!==a&&(this.elementsPerRow=a,this.updateItemVisibility())};
_.f.updateItemVisibility=function(){var a=this;this.data&&this.data.panels&&_.E(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(b,c){b.hidden=c>a.elementsPerRow-1})};
_.f.requestElementsPerRow=function(){_.io(this.hostElement,"yt-request-elements-per-row")};
var gQ=j9b;gQ.prototype.onDataChange=gQ.prototype.onDataChange;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],gQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],gQ.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],gQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],gQ.prototype,"actionHandlerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],gQ.prototype,"data",void 0);_.U([_.O({value:3}),_.W("design:type",Number)],gQ.prototype,"elementsPerRow",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gQ.prototype,"onDataChange",null);gQ=_.U([_.Q({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],gQ);
_.S(gQ,"ytd-primetime-promo-renderer",function(){if(i9b!==void 0)return i9b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-primetime-promo-renderer">\n  <div id="header" class="style-scope ytd-primetime-promo-renderer">\n    <div id="header-contents" hidden="[[data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="shelf-header-container" hidden="[[!data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer">\n      <div id="section-header-container" class="style-scope ytd-primetime-promo-renderer"></div>\n      <div id="details-panel" hidden="[[!data.details]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    </div>\n    <div id="dismiss-button" hidden="[[data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="overflow-button" hidden="[[!data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n  </div>\n  <div id="panels" class="style-scope ytd-primetime-promo-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-primetime-promo-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return i9b=a},{mode:1});var k9b;var hQ=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return a};
_.z(hQ,_.P);hQ.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
hQ.prototype.handleButtonRefreshAction=function(a){if(a=_.y(a,_.Xyb))this.set("data.button",a.membershipButton),this.notifyPath("data.button")};
_.Um.Object.defineProperties(hQ.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:(b=a.avatars)==null?void 0:b.slice(0,8))||[]}}});
var iQ=hQ;_.U([_.O(),_.W("design:type",Object)],iQ.prototype,"data",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],iQ.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],iQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],iQ.prototype,"rendererBehavior",void 0);_.U([_.K("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],iQ.prototype,"avatars",null);
iQ=_.U([_.Q({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],iQ);
_.S(iQ,"ytd-recognition-shelf-renderer",function(){if(k9b!==void 0)return k9b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-recognition-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-recognition-shelf-renderer">\n  <div id="text-container" class="style-scope ytd-recognition-shelf-renderer">\n    <yt-formatted-string class="title style-scope ytd-recognition-shelf-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-recognition-shelf-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n  </div>\n  <div id="avatars-container" class="style-scope ytd-recognition-shelf-renderer">\n    <template is="dom-repeat" items="[[avatars]]" as="avatar" class="style-scope ytd-recognition-shelf-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-recognition-shelf-renderer" thumbnail="[[avatar]]"></yt-img-shadow>\n    </template>\n  </div>\n  <div id="action-button" class="style-scope ytd-recognition-shelf-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return k9b=a},{mode:1});var l9b;var m9b;var n9b=function(){var a=_.P.apply(this,arguments)||this;a.modernButtons=_.w("web_modern_buttons");return a};
_.z(n9b,_.P);_.f=n9b.prototype;
_.f.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",
videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.f.dataChanged=function(){this.collapsed=!0};
_.f.computeVisibleItems=function(a,b){return a!==void 0&&a.items?b?a.items.slice(0,this.data.collapsedItemCount):a.items:[]};
_.f.computeHideShowMore=function(a,b,c){return a>=b||!c};
_.f.computeHideShowAll=function(a,b,c){return!(a&&b)||c};
_.f.onMoreClick=function(){this.collapsed=!1};
_.Um.Object.defineProperties(n9b.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.w("use_modern_typography_on_search")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
var jQ=n9b;jQ.prototype.dataChanged=jQ.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],jQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],jQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],jQ.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],jQ.prototype,"isSearch",void 0);
_.U([_.O({computed:"computeVisibleItems(data,collapsed)"}),_.W("design:type",Array)],jQ.prototype,"visibleItems",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],jQ.prototype,"collapsed",void 0);_.U([_.O({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.W("design:type",Boolean)],jQ.prototype,"hideShowMore",void 0);
_.U([_.O({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.W("design:type",Boolean)],jQ.prototype,"hideShowAll",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],jQ.prototype,"modernButtons",void 0);_.U([_.K("isSearch"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],jQ.prototype,"typographyBump",null);
_.U([_.K("isSearch"),_.W("design:type",String),_.W("design:paramtypes",[])],jQ.prototype,"thumbnailWidth",null);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jQ.prototype,"dataChanged",null);jQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],jQ);
_.S(jQ,"ytd-vertical-list-renderer",function(){if(m9b!==void 0)return m9b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-list-renderer"></div>\n<div id="more" hidden="[[hideShowMore]]" class="style-scope ytd-vertical-list-renderer">\n  <yt-formatted-string text="[[data.collapsedStateButtonText]]" on-tap="onMoreClick" class="style-scope ytd-vertical-list-renderer">\n  </yt-formatted-string>\n</div>\n<div id="all" hidden="[[hideShowAll]]" class="style-scope ytd-vertical-list-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-vertical-list-renderer" href$="[[computeHref_(data.expandedStateButtonEndpoint]]" data="[[data.expandedStateButtonEndpoint]]">\n    <yt-formatted-string text="[[data.expandedStateButtonText]]" class="style-scope ytd-vertical-list-renderer">\n    </yt-formatted-string>\n  </a>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return m9b=a},{mode:1});var o9b=_.hx(["#"]);_.Ft("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var p9b=function(){var a=_.P.apply(this,arguments)||this;a.isConstrainedList=!1;a.modernTypography=_.w("web_modern_typography");return a};
_.z(p9b,_.P);_.f=p9b.prototype;
_.f.configureRendererStamper=function(){return{"data.content":{id:"contents",mapping:{gridRenderer:"ytd-grid-renderer",horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:118},properties:{isSearch:"[[isSearch]]"}},horizontalMovieListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:302}},expandedShelfContentsRenderer:{component:"ytd-expanded-shelf-contents-renderer",properties:{isConstrainedList:"[[isConstrainedList]]"}},messageRenderer:{component:"ytd-message-renderer",
params:{shelf:!0}},verticalListRenderer:{component:"ytd-vertical-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.playAllButton":{id:"play-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",attributes:{condensed:!0},properties:{icon:"[[menuIcon]]"}}}},"data.sortFilter":{id:"sort-filter",
mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.f.computeThumbnailStyle=function(a){return a||""};
_.f.computePlaceAnnotationUnderTitle=function(){var a;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((a=this.data)==null?void 0:a.thumbnailStyle)||"")};
_.f.computeHrefWithDefault=function(a){return this.ytComponentBehavior.computeHref_(a)||_.Ld(o9b)};
_.f.computeIsPromoShelf=function(a){var b;return(a=a==null?void 0:(b=a[0])==null?void 0:b.metadataBadgeRenderer)?a.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.f.computePlaceBadgeBesideTitle=function(a){var b;return(a==null?0:(b=a[0])==null?0:b.metadataBadgeRenderer)?!this.computeIsPromoShelf(a):!1};
_.f.computeMenuIcon=function(a){return this.computeIsPromoShelf(a)?"yt-icons:more_vert":"yt-icons:more"};
_.f.onDataChange=function(){var a,b;((a=this.data)==null?0:(b=a.content)==null?0:b.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.f.onLockupRequested=function(a){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&a.detail&&a.detail.videoIds){for(var b=this.data.content.gridRenderer.items,c=new Set,d=_.h(a.detail.videoIds),e=d.next();!e.done;e=d.next())c.add(e.value);a.detail.returnValue=b.filter(function(g){return g.gridVideoRenderer&&g.gridVideoRenderer.videoId&&c.has(g.gridVideoRenderer.videoId)}).map(function(g){return g.gridVideoRenderer})}};
_.f.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
var kQ=p9b;kQ.prototype.onLockupRequested=kQ.prototype.onLockupRequested;kQ.prototype.onDataChange=kQ.prototype.onDataChange;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],kQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],kQ.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],kQ.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],kQ.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.OD),_.W("design:type",Object)],kQ.prototype,"ironResizableBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],kQ.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],kQ.prototype,"isSearch",void 0);_.U([_.O(),_.W("design:type",Object)],kQ.prototype,"isConstrainedList",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.w("kevlar_fluid_dismiss")}}),
_.W("design:type",Boolean)],kQ.prototype,"enableFluidDismiss",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.W("design:type",String)],kQ.prototype,"thumbnailStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],kQ.prototype,"modernTypography",void 0);_.U([_.O({computed:"computeMenuIcon(data.badges)"}),_.W("design:type",String)],kQ.prototype,"menuIcon",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kQ.prototype,"onDataChange",null);_.U([_.M("yt-lockup-requested"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],kQ.prototype,"onLockupRequested",null);kQ=_.U([_.Q({is:"ytd-shelf-renderer",disableElementRegistration:!0})],kQ);
_.S(kQ,"ytd-shelf-renderer",function(){if(l9b!==void 0)return l9b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return l9b=a},{mode:1});var q9b;var r9b=function(){return _.P.apply(this,arguments)||this};
_.z(r9b,_.P);r9b.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.Um.Object.defineProperties(r9b.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
var lQ=r9b;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],lQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],lQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],lQ.prototype,"data",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],lQ.prototype,"isPlaylist",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],lQ.prototype,"isClipList",void 0);
_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],lQ.prototype,"isPlaylistPageWithFilters",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],lQ.prototype,"hasTitle",null);_.U([_.O(),_.K("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.W("design:type",Object),_.W("design:paramtypes",[])],lQ.prototype,"isRightAligned",null);
lQ=_.U([_.Q({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],lQ);
_.S(lQ,"ytd-sort-filter-header-renderer",function(){if(q9b!==void 0)return q9b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sort-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-sort-filter-header-renderer">\n  <div id="headings" hidden="[[!data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="filter-menu" class="style-scope ytd-sort-filter-header-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return q9b=a},{mode:1});var s9b;var mQ=function(){return _.P.apply(this,arguments)||this};
_.z(mQ,_.P);
mQ.prototype.configureRendererStamper=function(){return{"data.creatorVideosButton":{id:"infocard-videos-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.creatorAboutButton":{id:"infocard-channel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.infocards":{id:"infocards-section",mapping:{compactInfocardRenderer:"ytd-compact-infocard-renderer"}},creatorCustomUrlButtons:{id:"items",mapping:{buttonRenderer:"ytd-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
mQ.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.Um.Object.defineProperties(mQ.prototype,{creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.w("enable_creator_details_shelf_m2")){var a=[],b;((b=this.data)==null?0:b.creatorVideosButton)&&a.push(this.data.creatorVideosButton);var c;((c=this.data)==null?0:c.creatorAboutButton)&&a.push(this.data.creatorAboutButton);b=_.h(this.data.creatorCustomUrlButtons||[]);for(c=b.next();!c.done;c=b.next())a.push(c.value);return a}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.w("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
var nQ=mQ;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],nQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],nQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.lJ.YtdHorizontalListBehavior),_.W("design:type",Object)],nQ.prototype,"ytdHorizontalListBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],nQ.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],nQ.prototype,"engagementPanel",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],nQ.prototype,"creatorCustomUrlButtons",null);_.U([_.O({reflectToAttribute:!0}),_.K("data","creatorCustomUrlButtons"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],nQ.prototype,"showCreatorCustomUrlButtons",null);
_.U([_.K("showCreatorCustomUrlButtons"),_.W("design:type",Number),_.W("design:paramtypes",[])],nQ.prototype,"channelAvatarSize",null);nQ=_.U([_.Q({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],nQ);
_.S(nQ,"ytd-video-description-infocards-section-renderer",function(){if(s9b!==void 0)return s9b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return s9b=a},{mode:_.as("kevlar_poly_si_batch_j067")?1:2});var t9b;var u9b=function(){return _.P.apply(this,arguments)||this};
_.z(u9b,_.P);var oQ=u9b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],oQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],oQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],oQ.prototype,"data",void 0);_.U([_.O({computed:"computeIcon_(data.infoIcon)"}),_.W("design:type",Object)],oQ.prototype,"infoIcon",void 0);
oQ=_.U([_.Q({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],oQ);
_.S(oQ,"ytd-eom-settings-disclaimer-renderer",function(){if(t9b!==void 0)return t9b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-eom-settings-disclaimer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="app" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  <yt-icon id="info" disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-icon>\n  <yt-formatted-string id="label" text="[[data.disclaimer]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-formatted-string>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return t9b=a},{mode:1});var v9b;var w9b=function(){return _.P.apply(this,arguments)||this};
_.z(w9b,_.P);_.Um.Object.defineProperties(w9b.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.suppressPaddingDisclaimer)}}});
var pQ=w9b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],pQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],pQ.prototype,"componentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],pQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],pQ.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],pQ.prototype,"suppressPaddingDisclaimer",null);pQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],pQ);
_.S(pQ,"ytd-product-list-header-renderer",function(){if(v9b!==void 0)return v9b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-product-list-header-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.title]]" class="style-scope ytd-product-list-header-renderer">\n    </yt-formatted-string>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return v9b=a},{mode:1});var x9b;var y9b=function(){return _.P.apply(this,arguments)||this};
_.z(y9b,_.P);y9b.prototype.computeThumbnailStyle=function(a){if(a&&(a=_.Cq(a)))return"background-color:"+a+";"};
var qQ=y9b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],qQ.prototype,"rendererBehaviors",void 0);_.U([_.O(),_.W("design:type",Object)],qQ.prototype,"data",void 0);qQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],qQ);
_.S(qQ,"ytd-hashtag-tile-renderer",function(){if(x9b!==void 0)return x9b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-section" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-section" class="style-scope ytd-hashtag-tile-renderer"><a class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="thumbnail" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-spacing-wrapper" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-color-wrapper" style="[[computeThumbnailStyle(data.hashtagBackgroundColor)]]" class="style-scope ytd-hashtag-tile-renderer"><yt-img-shadow height="64" thumbnail="[[data.hashtagThumbnail]]" width="64" class="style-scope ytd-hashtag-tile-renderer"></yt-img-shadow></div></div></div></a></div><div id="info-section" class="style-scope ytd-hashtag-tile-renderer"><a id="main-link" class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="info" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag" text="[[data.hashtag]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string><div id="metadata" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag-info-text" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string></div></div></a></div></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return x9b=a},{mode:1});var z9b;var A9b=function(){return _.P.apply(this,arguments)||this};
_.z(A9b,_.P);A9b.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.secondaryActionButton":{id:"secondary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
var rQ=A9b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],rQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],rQ.prototype,"data",void 0);rQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],rQ);
_.S(rQ,"ytd-sponsorships-alert-renderer",function(){if(z9b!==void 0)return z9b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-sponsorships-alert-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-sponsorships-alert-renderer">\n  <div id="action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n  <div id="secondary-action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return z9b=a},{mode:1});var B9b;var C9b=function(){return _.P.apply(this,arguments)||this};
_.z(C9b,_.P);C9b.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.Um.Object.defineProperties(C9b.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.w("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.w("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
var sQ=C9b;_.U([_.H(_.QI),_.W("design:type",Object)],sQ.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.$I),_.W("design:type",Object)],sQ.prototype,"ytdLockupBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],sQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],sQ.prototype,"ytRendererBehavior",void 0);_.U([_.O({selector:_.Su}),_.W("design:type",Object)],sQ.prototype,"isGridViewEnabled",void 0);
_.U([_.K("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],sQ.prototype,"watchFeedBigThumbs",null);_.U([_.K("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.W("design:type",String),_.W("design:paramtypes",[])],sQ.prototype,"thumbnailWidth",null);_.U([_.O(),_.W("design:type",Object)],sQ.prototype,"data",void 0);sQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],sQ);
_.S(sQ,"ytd-compact-movie-renderer",function(){if(B9b!==void 0)return B9b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-movie-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-movie-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-compact-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <template is="dom-if" if="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n      <h3 id="movie-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-movie-renderer">\n        [[getSimpleString(data.title)]]\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-movie-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-movie-renderer" data="[[data]]" no-endpoints="">\n        </ytd-video-meta-block>\n        <span class="movie-metadata style-scope ytd-compact-movie-renderer">[[getSimpleString(data.topMetadataItems.0)]]</span>\n      </div>\n      <template is="dom-if" if="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-movie-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-movie-renderer"></yt-interaction>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return B9b=a},{mode:1});var D9b;var E9b;var F9b=_.Fi("HTML_DIR")==="rtl",G9b=function(){var a=_.P.apply(this,arguments)||this;a.engagementPanel=!1;a.maxLines=2;a.expandButtonOffset=0;a.showExpandButton=!1;a.isTruncated=!1;a.isExpanded=!1;a.currentSnippetType=2;a.alwaysShowExpandButton=!1;a.JSC$14056_lastWidth=NaN;a.observer=null;a.left=0;a.right=0;a.mid=0;a.longestSnippetLength=0;a.isFinalSnippet=!1;a.isFirstMutation=!1;a.isResetMutation=!1;a.OVERFLOW_THRESHOLD=5;return a};
_.z(G9b,_.P);_.f=G9b.prototype;_.f.onClick=function(a){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.Wt(_.Rq(a)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var b;if((b=window.getSelection())==null||!b.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.f.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.f.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.f.updateTextOnSnippetTypeChange=function(){_.w("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.f.setUpBinarySearch=function(a){a=a*this.maxLines/8;this.left=0;var b,c;this.right=Math.min(a*2,(c=(b=this.simpleText)==null?void 0:b.length)!=null?c:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.f.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.f.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Dl(new _.qj("AttributedSnippet is empty when the description is not empty",this.text))};
_.f.mutationCallback=function(){if(this.observer!=null){var a=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var b=Math.floor(a*this.maxLines/8);this.setSnippetText(this.text,b);b!==0||this.attributedTextIsEmpty()||_.Dl(new _.qj("Estimated visible character count is 0 for AttributedString description",this.text));this.isFinalSnippet=!0;return}if(this.isResetMutation){this.isResetMutation=!1;this.observer.disconnect();this.attributedTextIsEmpty()?
this.maybeLogWarningForEmptyAttributedSnippet():this.resize(!0);return}}if(this.isFinalSnippet)this.expandButtonOffset=this.computeExpandButtonOffset(),this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else if(this.isFirstMutation)if(this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;a=a*this.maxLines/8;this.left=0;var c;this.right=Math.min(a*2,(c=(b=this.simpleText)==null?void 0:b.length)!=null?c:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=
0;this.setSnippetText(this.text,this.mid);this.isFirstMutation=!1}else this.isTruncated=!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset()),this.isFinalSnippet=!0,this.isFirstMutation=!1,this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else{this.isOverflowing()?this.right=this.mid-1:(this.left=this.mid+1,this.longestSnippetLength=this.mid);if(this.left>this.right){if(this.mid===this.longestSnippetLength){this.expandButtonOffset=this.computeExpandButtonOffset();
this.observer.disconnect();this.maybeLogWarningForEmptyAttributedSnippet();return}this.setSnippetText(this.text,this.longestSnippetLength);this.isFinalSnippet=!0}this.mid=Math.floor(this.left+(this.right-this.left)/2);this.setSnippetText(this.text,this.mid)}}};
_.f.mutationObserve=function(a){var b=this;this.observer||(this.observer=new MutationObserver(function(){b.mutationCallback()}));
this.observer.observe(a,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.f.attached=function(){var a=this;_.Qm(this,function(){a.resize()})};
_.f.isExpandedChanged=function(){_.io(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.f.updateSnippetContainerMaxHeight=function(){this.isExpanded?(this.snippetContainer.style.setProperty("overflow",""),this.snippetContainer.style.setProperty("max-height","")):(this.snippetContainer.style.setProperty("overflow","hidden"),this.snippetContainer.style.setProperty("max-height",2*this.maxLines+"rem"));this.resize(!0)};
_.f.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var a="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((F9b?"left":"right")+",\n        #000 0%,\n        #000 "+(this.expandButtonOffset-24)+"px,\n        transparent "+this.expandButtonOffset+"px,\n        transparent 100%)");this.snippetContainer.style.setProperty("-webkit-mask-image",a);this.snippetContainer.style.setProperty("mask-image",
a)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(F9b?"right":"left",this.expandButtonOffset+"px")};
_.f.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.f.setSnippetText=function(a,b){a||(a={});if(_.Ls(a)){var c=DQa(a,b);c.attachmentRuns||c.commandRuns||c.decorationRuns||c.styleRuns||c.alignment||c.lineBreakMode?this.attributedSnippetTextEl?(_.w("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=DQa(a,b),this.attributedSnippetTextEl.headerRuns=CQa(b,this.headerRuns)):this.attributedSnippetText={data:DQa(a,b),headerRuns:CQa(b,this.headerRuns)},this.currentSnippetType=0):_.Dl(new _.qj("Tried to set snippet text when HTML element was null",
a)):(this.plainSnippetText.textContent=Is(a.content||"",b),this.currentSnippetType=2)}else{a:{c=z1a(a,b);if(c.runs){c=_.h(c.runs);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.bold||d.deemphasize||d.italics||d.strikethrough||d.textColor||d.navigationEndpoint||_.y(d,As)){c=!0;break a}}c=!1}c?this.formattedSnippetText?(this.formattedSnippetText.text=z1a(a,b),this.currentSnippetType=1):_.Dl(new _.qj("Tried to set snippet text when HTML element was null",a)):(this.plainSnippetText.textContent=
Is(_.Wp(a),b),this.currentSnippetType=2)}};
_.f.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.f.attributedTextIsEmpty=function(){var a=this.text;if(!_.Ls(a))return!0;var b;return((b=a.content)==null?void 0:b.length)===0?!0:!1};
_.f.resize=function(a){if(this.snippetText){if(a===void 0?0:a)this.JSC$14056_lastWidth=NaN;var b=this.hostElement.offsetWidth;if(b!==this.JSC$14056_lastWidth&&!this.isExpanded)if(this.JSC$14056_lastWidth=b,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;a=0;var c,d;b=Math.min(b*this.maxLines/8*2,(d=(c=this.simpleText)==null?void 0:c.length)!=null?d:0)-1;for(c=0;a<=b;)d=Math.floor(a+(b-a)/2),this.setSnippetText(this.text,d),this.isOverflowing()?b=d-1:(a=d+1,c=d);this.setSnippetText(this.text,c);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.f.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.f.onExpandClick=function(){var a=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.w("inline_expander_reset_focus_killswitch")||_.Qm(this,function(){var b;((b=_.v().resolve(_.Xi(_.Bu)))==null?0:b.isKeyBoardInUse())&&_.Ok(a.hostElement)});
_.io(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.f.onCollapseClick=function(){this.collapse();_.io(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.f.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.f.computeExpandButtonOffset=function(){var a=this.expandSizer;return a?F9b?a.offsetParent?a.offsetParent.offsetWidth-a.offsetWidth-a.offsetLeft:0:a.offsetLeft:0};
_.Um.Object.defineProperties(G9b.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.Ls(this.text)?this.text.content||"":_.Wp(this.text):""}},
expandedText:{configurable:!0,enumerable:!0,get:function(){return this.isExpanded?this.text:void 0}},
expandedHeaderRuns:{configurable:!0,enumerable:!0,get:function(){return this.isExpanded?this.headerRuns:void 0}},
hasAttributedStringText:{configurable:!0,enumerable:!0,get:function(){return _.Ls(this.text)?!0:this.text&&_.w("web_replace_formatted_with_attributed_string")&&XPa(this.text)?(this.text=_.zs(this.text),!0):!1}},
showCollapseButton:{configurable:!0,enumerable:!0,get:function(){return!!this.collapseLabel&&this.isExpanded}},
useAttributedSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===0}},
useFormattedSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===1}},
usePlainSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===2}}});
var tQ=G9b;tQ.prototype.onTextChanged=tQ.prototype.onTextChanged;tQ.prototype.updateMaskAndExpandButtonOffset=tQ.prototype.updateMaskAndExpandButtonOffset;tQ.prototype.updateSnippetContainerMaxHeight=tQ.prototype.updateSnippetContainerMaxHeight;tQ.prototype.isExpandedChanged=tQ.prototype.isExpandedChanged;tQ.prototype.updateTextOnSnippetTypeChange=tQ.prototype.updateTextOnSnippetTypeChange;tQ.prototype.updateIsFormattedExpanded=tQ.prototype.updateIsFormattedExpanded;
tQ.prototype.updateIsAttributedExpanded=tQ.prototype.updateIsAttributedExpanded;tQ.prototype.onClick=tQ.prototype.onClick;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],tQ.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],tQ.prototype,"text",void 0);_.U([_.O(),_.W("design:type",Array)],tQ.prototype,"headerRuns",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],tQ.prototype,"engagementPanel",void 0);
_.U([_.O(),_.W("design:type",Object)],tQ.prototype,"maxLines",void 0);_.U([_.O(),_.W("design:type",String)],tQ.prototype,"expandLabel",void 0);_.U([_.O(),_.W("design:type",String)],tQ.prototype,"collapseLabel",void 0);_.U([_.O(),_.W("design:type",Object)],tQ.prototype,"expandCommand",void 0);_.U([_.O(),_.W("design:type",Object)],tQ.prototype,"expandButtonOffset",void 0);_.U([_.K("text"),_.W("design:type",String),_.W("design:paramtypes",[])],tQ.prototype,"simpleText",null);
_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],tQ.prototype,"onClick",null);_.U([_.K("text","isExpanded"),_.W("design:type",Object),_.W("design:paramtypes",[])],tQ.prototype,"expandedText",null);_.U([_.K("headerRuns","isExpanded"),_.W("design:type",Object),_.W("design:paramtypes",[])],tQ.prototype,"expandedHeaderRuns",null);
_.U([_.K("text"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],tQ.prototype,"hasAttributedStringText",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],tQ.prototype,"showExpandButton",void 0);_.U([_.K("collapseLabel","isExpanded"),_.W("design:type",Object),_.W("design:paramtypes",[])],tQ.prototype,"showCollapseButton",null);_.U([_.O(),_.W("design:type",Object)],tQ.prototype,"isTruncated",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],tQ.prototype,"isExpanded",void 0);_.U([_.O(),_.W("design:type",Boolean)],tQ.prototype,"isAttributedExpanded",void 0);_.U([_.N("isExpanded","hasAttributedStringText"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tQ.prototype,"updateIsAttributedExpanded",null);_.U([_.O(),_.W("design:type",Boolean)],tQ.prototype,"isFormattedExpanded",void 0);
_.U([_.N("isExpanded","hasAttributedStringText"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tQ.prototype,"updateIsFormattedExpanded",null);_.U([_.O(),_.W("design:type",Number)],tQ.prototype,"currentSnippetType",void 0);_.U([_.K("currentSnippetType"),_.W("design:type",Object),_.W("design:paramtypes",[])],tQ.prototype,"useAttributedSnippet",null);
_.U([_.K("currentSnippetType"),_.W("design:type",Object),_.W("design:paramtypes",[])],tQ.prototype,"useFormattedSnippet",null);_.U([_.K("currentSnippetType"),_.W("design:type",Object),_.W("design:paramtypes",[])],tQ.prototype,"usePlainSnippet",null);_.U([_.O(),_.W("design:type",Object)],tQ.prototype,"alwaysShowExpandButton",void 0);_.U([_.N("currentSnippetType"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tQ.prototype,"updateTextOnSnippetTypeChange",null);
_.U([_.O(),_.W("design:type",Object)],tQ.prototype,"attributedSnippetText",void 0);_.U([_.ir("#snippet"),_.W("design:type",HTMLElement)],tQ.prototype,"snippetContainer",void 0);_.U([_.ir("#snippet-text"),_.W("design:type",HTMLElement)],tQ.prototype,"snippetText",void 0);_.U([_.ir("#plain-snippet-text"),_.W("design:type",HTMLElement)],tQ.prototype,"plainSnippetText",void 0);_.U([_.ir("#formatted-snippet-text"),_.W("design:type",Object)],tQ.prototype,"formattedSnippetText",void 0);
_.U([_.ir("#attributed-snippet-text"),_.W("design:type",Object)],tQ.prototype,"attributedSnippetTextEl",void 0);_.U([_.ir("#expand"),_.W("design:type",HTMLElement)],tQ.prototype,"expandButton",void 0);_.U([_.ir("#expand-sizer"),_.W("design:type",HTMLElement)],tQ.prototype,"expandSizer",void 0);_.U([_.mr("isExpanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tQ.prototype,"isExpandedChanged",null);
_.U([_.N("isExpanded","maxLines"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tQ.prototype,"updateSnippetContainerMaxHeight",null);_.U([_.N("isTruncated","showExpandButton","expandButtonOffset"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tQ.prototype,"updateMaskAndExpandButtonOffset",null);
_.U([_.mr("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tQ.prototype,"onTextChanged",null);tQ=_.U([_.Q({is:"ytd-text-inline-expander",disableElementRegistration:!0})],tQ);
_.S(tQ,"ytd-text-inline-expander",function(){if(E9b===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);E9b=a}a=E9b;return a},{mode:2});var uQ=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return a};
_.z(uQ,_.P);uQ.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
uQ.prototype.handleUpdateDescriptionAction=function(a){if(a=_.y(a,_.MFb))if(a.attributedDescription)this.set("data.attributedDescriptionBodyText",a.attributedDescription);else if(a.description){var b;((b=this.data)==null?0:b.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.zs(a.description)):this.set("data.descriptionBodyText",a.description)}};
_.Um.Object.defineProperties(uQ.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null||!a.attributedDescriptionBodyText)||!((b=this.data)==null||!b.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null?0:a.collapsedLineCount){var b;return(b=this.data)==null?void 0:b.collapsedLineCount}a=_.$i("web_watch_description_collapsed_default_lines",12);if(_.w("ww_desc_line_page_size_ks"))return a;b=Math.round(_.tq().height*_.$i("web_watch_description_screen_height_percentage",.5)/20);return Math.max(b,a)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return(c=(a=this.data)==null?void 0:a.descriptionBodyText)!=null?c:(b=this.data)==null?void 0:b.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.sourceAttributions}}});
var vQ=uQ;vQ.prototype.panelContentVisibleChanged=vQ.prototype.panelContentVisibleChanged;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],vQ.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],vQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],vQ.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],vQ.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Boolean)],vQ.prototype,"panelContentVisible",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],vQ.prototype,"engagementPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],vQ.prototype,"shortsPanel",void 0);_.U([_.ir("#inline-expander"),_.W("design:type",Object)],vQ.prototype,"inlineExpander",void 0);
_.U([_.N("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vQ.prototype,"panelContentVisibleChanged",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],vQ.prototype,"hasDescriptionText",null);_.U([_.K("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],vQ.prototype,"collapsedLines",null);
_.U([_.K("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.W("design:type",Object),_.W("design:paramtypes",[])],vQ.prototype,"descriptionText",null);_.U([_.K("data","data.headerRuns"),_.W("design:type",Object),_.W("design:paramtypes",[])],vQ.prototype,"headerRuns",null);_.U([_.K("data","data.sourceAttributions"),_.W("design:type",Object),_.W("design:paramtypes",[])],vQ.prototype,"sourceAttributions",null);
vQ=_.U([_.Q({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],vQ);
_.S(vQ,"ytd-expandable-video-description-body-renderer",function(){if(D9b!==void 0)return D9b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return D9b=a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var H9b;var I9b=_.Rr(function(a){var b=a.data;return _.q("factoid-renderer",{class:"ytwFactoidRendererHost"},_.q("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return b().accessibilityText}},_.q("span",{class:"ytwFactoidRendererValue"},_.q(_.tt,{text:function(){return b().value}})),_.q("span",{class:"ytwFactoidRendererLabel"},_.q(_.tt,{text:function(){return b().label}}))))},"xb");_.Ts(I9b,"factoid-renderer",{props:{data:_.VG}});_.Ts(_.Rr(function(a){var b=a.data;return _.q("upload-time-factoid-renderer",null,_.q(_.Hu,{data:function(){return b().factoid}},{factoidRenderer:I9b}))},"yb"),"upload-time-factoid-renderer",{props:{data:_.Ss}});_.Ts(_.Rr(function(a){var b=a.data;return _.q("view-count-factoid-renderer",null,_.q(_.Hu,{data:function(){return b().factoid}},{factoidRenderer:I9b}))},"zb"),"view-count-factoid-renderer",{props:{data:_.Ss}});var J9b=function(){var a=_.P.apply(this,arguments)||this;a.shortsPanel=!1;a.engagementPanel=!1;a.watchWhileSdp=_.w("shorts_desktop_watch_while_sdp");return a};
_.z(J9b,_.P);J9b.prototype.configureRendererStamper=function(){return{"data.factoid":{id:"factoids",mapping:{factoidRenderer:{component:"factoid-renderer"},viewCountFactoidRenderer:{component:"view-count-factoid-renderer"},uploadTimeFactoidRenderer:{component:"upload-time-factoid-renderer"}}}}};
_.Um.Object.defineProperties(J9b.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var a;return(a=this.data)==null?void 0:a.channel}}});
var wQ=J9b;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],wQ.prototype,"componentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],wQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],wQ.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wQ.prototype,"shortsPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wQ.prototype,"engagementPanel",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wQ.prototype,"watchWhileSdp",void 0);_.U([_.K("shortsPanel","engagementPanel","data.channel"),_.W("design:type",Object),_.W("design:paramtypes",[])],wQ.prototype,"showChannelInfo",null);wQ=_.U([_.Q({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],wQ);
_.S(wQ,"ytd-video-description-header-renderer",function(){if(H9b!==void 0)return H9b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.title]]" class="style-scope ytd-video-description-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-video-description-header-renderer"></yt-formatted-string>\n</div>\n<template is="dom-if" if="[[showChannelInfo]]" class="style-scope ytd-video-description-header-renderer">\n    <div id="channel-info" class="style-scope ytd-video-description-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-video-description-header-renderer" href$="[[computeHref_(data.channelNavigationEndpoint)]]" data="[[data.channelNavigationEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="avatar" alt="[[getSimpleString(data.channel)]]" fit="" thumbnail="[[data.channelThumbnail]]" width="36" class="style-scope ytd-video-description-header-renderer">\n      </yt-img-shadow>\n    </a>\n    <ytd-channel-name id="channel-name" channel-name="[[getSimpleString(data.channel)]]" wrap-text="" class="style-scope ytd-video-description-header-renderer">\n    </ytd-channel-name>\n  </div>\n</template>\n\n<div id="factoids" class="style-scope ytd-video-description-header-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return H9b=a},{mode:1});var K9b;var L9b=function(){return _.P.apply(this,arguments)||this};
_.z(L9b,_.P);var xQ=L9b;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],xQ.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],xQ.prototype,"ytRendererBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],xQ.prototype,"noPadding",void 0);_.U([_.O(),_.W("design:type",Object)],xQ.prototype,"data",void 0);xQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],xQ);
_.S(xQ,"ytd-list-item-view-model",function(){if(K9b!==void 0)return K9b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-list-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="list-item" class="style-scope ytd-list-item-view-model">\n  <template is="dom-if" if="[[data.leadingImage]]" class="style-scope ytd-list-item-view-model">\n    <div id="leading-image-container" class="style-scope ytd-list-item-view-model">\n      <yt-image alt="Leading image for [[data.title]]" data="[[data.leadingImage]]" height="24" class="style-scope ytd-list-item-view-model">\n        </yt-image>\n    </div>\n  </template>\n  <div id="content" class="style-scope ytd-list-item-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-list-item-view-model">\n     </yt-attributed-string>\n      <yt-attributed-string id="subtitle" data="[[data.subtitle]]" class="style-scope ytd-list-item-view-model">\n      </yt-attributed-string>\n  </div>\n  <yt-button-view-model data="[[data.iconButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope ytd-list-item-view-model">\n  </yt-button-view-model>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return K9b=a},{mode:1});var M9b;var N9b;var O9b;var P9b;var yQ=function(){var a=_.P.apply(this,arguments)||this;a.adaptiveFullWidth=!1;a.modernButtons=_.w("web_modern_buttons");a.buttonOverrides={style:"call-to-action",type:"filled"};a.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return a};
_.z(yQ,_.P);yQ.prototype.handleSetTimestamp_=function(a){this.data&&this.data.shortUrl&&(_.E(this.hostElement).querySelector("#share-url").value=a.isSet?_.Ky(this.data.shortUrl,"t",a.timestamp):this.data.shortUrl)};
yQ.prototype.handleSignalActionCopyShareUrl_=function(a,b){(_.w("killswitch_copy_link_target_check")||_.E(this.hostElement).querySelector("#copy-button")===b)&&this.copyUrlToClipboard()};
yQ.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.E(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
yQ.prototype.computeStyle_=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
var zQ=yQ;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],zQ.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],zQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],zQ.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.W("design:type",String)],zQ.prototype,"rendererStyle",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],zQ.prototype,"adaptiveFullWidth",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],zQ.prototype,"modernButtons",void 0);_.U([_.O(),_.W("design:type",Object)],zQ.prototype,"buttonOverrides",void 0);zQ=_.U([_.wr({is:"yt-copy-link-renderer",disableElementRegistration:!0})],zQ);
_.S(zQ,"yt-copy-link-renderer",function(){if(P9b===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-copy-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_copy_link_renderer.yt.copy.link.renderer.css.js--\x3e<div id="bar" class="style-scope yt-copy-link-renderer">\n  <input id="share-url" dir="ltr" readonly="" size="45" value="[[data.shortUrl]]" class="style-scope yt-copy-link-renderer">\n  <yt-button-renderer id="copy-button" data="[[data.copyButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope yt-copy-link-renderer"></yt-button-renderer>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;O9b===void 0&&(O9b=document.createElement("template"));var d=O9b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);P9b=a}a=P9b;return a},{mode:2});_.Ft("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var Q9b=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return a};
_.z(Q9b,_.P);_.f=Q9b.prototype;_.f.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.f.attached=function(){this.keyboardFocused=!1};
_.f.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var a=_.v().resolve(_.Xi(_.Bu));a&&(this.keyboardFocused=a.isKeyBoardInUse())}};
_.f.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.f.computeDescription_=function(){if(this.data){if(this.data.toggled&&this.data.toggledDescription)return this.data.toggledDescription;if(!this.data.toggled&&this.data.description)return this.data.description}};
_.f.onChange_=function(){if(this.data){var a=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;a&&this.ytComponentBehavior.resolveCommand(a);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.f.handleUpdateToggleAction_=function(a){(a=_.y(a,iAb))&&this.data&&a.targetId==this.data.targetId&&this.set("data.toggled",a.toggled)};
_.f.toBoolean_=function(a){return!!a};
_.f.reset=function(){};
_.f.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.WH("data-changed",this.data))};
_.f.updateDataToggledFromBinding=function(a){this.set("data.toggled",a.detail.value)};
var AQ=Q9b;AQ.prototype.dataChangedForBinding=AQ.prototype.dataChangedForBinding;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],AQ.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],AQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],AQ.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],AQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],AQ.prototype,"data",void 0);_.U([_.O({computed:"computeDescription_(data.*)"}),_.W("design:type",Object)],AQ.prototype,"description_",void 0);_.U([_.O({value:function(){return!!_.v().resolve(_.Xi(_.Bu))&&_.w("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.W("design:type",Boolean)],AQ.prototype,"useKeyboardFocused",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],AQ.prototype,"keyboardFocused",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],AQ.prototype,"dataChangedForBinding",null);AQ=_.U([_.wr({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],AQ);
_.S(AQ,"yt-toggle-form-field-renderer",function(){if(N9b===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-toggle-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_toggle_form_field_renderer.yt.toggle.form.field.renderer.css.js--\x3e<div id="toggle-container" class="style-scope yt-toggle-form-field-renderer">\n  <div id="caption" class="style-scope yt-toggle-form-field-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button id="input" checked="[[data.toggled]]" disabled="[[toBoolean_(data.isDisabled)]]" noink="" on-change="onChange_" on-checked-changed="updateDataToggledFromBinding" on-focusin="onToggleButtonFocusin_" on-focusout="onToggleButtonFocusout_" class="style-scope yt-toggle-form-field-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<yt-formatted-string id="description" hidden="[[!description_]]" text="[[description_]]" class="style-scope yt-toggle-form-field-renderer">\n</yt-formatted-string>\n<div id="footer-container" class="style-scope yt-toggle-form-field-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;M9b===void 0&&(M9b=document.createElement("template"));var d=M9b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);N9b=a}a=N9b;return a},{mode:2});var R9b;var S9b;var T9b=function(){var a=_.P.apply(this,arguments)||this;a.isDarkTheme=!1;a.isSearch=!1;a.darkerDarkTheme=_.w("web_darker_dark_theme");a.noTopMargin=_.w("kevlar_watch_no_top_margin");a.maskFade=_.w("web_watch_chips_mask_fade");a.actionMap={"yt-related-chip-command":"handleRelatedChipCommand","yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(T9b,_.P);_.f=T9b.prototype;_.f.configureRendererStamper=function(){return{"data.chips":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer"}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.f.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.f.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.f.dataChanged=function(){var a=this.getSelectedIndex();if(a>0)this.selected=a;else{this.selected=0;var b,c;(b=this.ytScrollableChipCloudBehavior)==null||(c=b.reset)==null||c.call(b)}};
_.f.getSelectedIndex=function(){var a;if((a=this.data)==null||!a.chips)return-1;a=-1;for(var b,c=0;c<((b=this.data)==null?void 0:b.chips.length);c++){var d=void 0,e=void 0;if((d=this.data)==null?0:(e=d.chips[c].chipCloudChipRenderer)==null?0:e.isSelected){a=c;break}}return a};
_.f.onResize=function(){var a=this.ytScrollableChipCloudBehavior;_.Qm(a,a.setContainerWidthDiff);$O(this.ytScrollableChipCloudBehavior)};
_.f.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.f.handleRelatedChipCommand=function(a,b){a=this.JSC$14083_chipsSelector.indexOf(b);a!==-1&&this.JSC$14083_chipsSelector.selectIndex(a)};
_.f.handleChipCloudChipSelectAction=function(a){a=this.JSC$14083_chipsSelector.indexOf(a);a>-1&&this.JSC$14083_chipsSelector.selectIndex(a)};
_.f.handleChipCloudChipDeselectAction=function(){var a=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14083_chipsSelector&&((a==null?0:a.continuationCommand)?_.oo(this.hostElement,[a]):(a==null?0:a.searchEndpoint)?this.ytComponentBehavior.resolveCommand(a):a&&_.po(this.hostElement,[a],this.hostElement),this.JSC$14083_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.f.updateSelectedFromBinding=function(a){this.selected=a.detail.value};
var BQ=T9b;BQ.prototype.onResize=BQ.prototype.onResize;BQ.prototype.dataChanged=BQ.prototype.dataChanged;BQ.prototype.isSearchChanged=BQ.prototype.isSearchChanged;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],BQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],BQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],BQ.prototype,"actionHandlerBehavior",void 0);
_.U([_.H(_.OD),_.W("design:type",Object)],BQ.prototype,"ironResizableBehavior",void 0);_.U([_.H(),_.W("design:type",aP)],BQ.prototype,"ytScrollableChipCloudBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],BQ.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],BQ.prototype,"data",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],BQ.prototype,"selected",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],BQ.prototype,"isDarkTheme",void 0);_.U([_.O({value:160}),_.W("design:type",Number)],BQ.prototype,"scrollDistance",void 0);_.U([_.O(),_.W("design:type",Object)],BQ.prototype,"isSearch",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],BQ.prototype,"darkerDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],BQ.prototype,"noTopMargin",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],BQ.prototype,"maskFade",void 0);_.U([_.ir("#chips"),_.W("design:type",Object)],BQ.prototype,"JSC$14083_chipsSelector",void 0);_.U([_.N("isSearch"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BQ.prototype,"isSearchChanged",null);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BQ.prototype,"dataChanged",null);
_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BQ.prototype,"onResize",null);BQ=_.U([_.wr({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],BQ);
_.S(BQ,"yt-chip-cloud-renderer",function(){if(S9b===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_renderer.yt.chip.cloud.renderer.css.js--\x3e<div id="container" class="style-scope yt-chip-cloud-renderer">\n  <div id="left-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="left-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n  <div id="scroll-container" class="style-scope yt-chip-cloud-renderer">\n    <iron-selector id="chips" activate-event="" role="tablist" selected="[[selected]]" selected-attribute="selected" on-selected-changed="updateSelectedFromBinding" class="style-scope yt-chip-cloud-renderer">\n    </iron-selector>\n  </div>\n  <div id="right-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="right-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;R9b===void 0&&(R9b=document.createElement("template"));var d=R9b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);S9b=a}a=S9b;return a},{mode:2});var U9b,V9b=function(){return U9b!==void 0?U9b:U9b=document.createElement("template")};
document.head.appendChild(V9b().content);var W9b;var X9b=document.head,Y9b=X9b.appendChild,Z9b;if(W9b===void 0){var $9b=document.createElement("template");_.B($9b,"");$9b.content.insertBefore(V9b().content.cloneNode(!0),$9b.content.firstChild);W9b=$9b}Z9b=W9b;Y9b.call(X9b,Z9b.content);var a$b=_.Rr(function(a){var b=a.data;return _.q("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.q("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.q("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.q(_.qi,{cond:function(){return _.jv(b().image)},
then:function(c){return _.q("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.q(_.Ps,{data:c,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.q("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.q(_.tt,{text:function(){return b().title}})),_.q("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.q(_.tt,{text:function(){return b().subtitle}})))),_.q(_.qi,{cond:function(){var c;
return(c=b())==null?void 0:c.hasBottomDivider},
then:function(){return _.q("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Ab");var b$b=_.Rr(function(a){var b=a.data;return _.q("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.q("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.q(_.Hu,{data:function(){var c;return(c=b().offerPlanDetailsItem)!=null?c:[]}},{offerPlanDetailsItemViewModel:function(c){return _.q("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.q(a$b,{data:c.data}))}})),_.q("div",null,_.q(_.qi,{cond:function(){return b().hasBottomDivider},
then:function(){return _.q("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.q("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.q("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.q("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.q("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Bb");var c$b=_.Rr(function(a){var b=a.data;a=_.h(_.ih(!1,void 0,"SpEGQd"));var c=a.next().value,d=a.next().value,e=_.lt(function(){d(!c());return!1}),g=function(){var k;
return(k=b().offerPlanDetailsContainer)!=null?k:[]};
return _.q("lp-complex-offer-card-details-view-model",null,_.q("div",null,_.q(_.qi,{cond:function(){return c()},
then:function(){return _.q("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.q("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":e,"aria-expanded":c},_.q(_.tt,{text:function(){return b().expandedTitle}})),_.q("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.q(_.Hu,{data:g},{offerPlanDetailsContainerViewModel:function(k){return _.q("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.q(b$b,{data:k.data}))}})),_.q("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.q(_.tt,{text:function(){return b().legalText}})))},
else:function(){return _.q("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":e,"aria-expanded":c},_.q(_.tt,{text:function(){return b().collapsedTitle}}),_.q("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.q(_.qt,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Cb");var d$b=_.Rr(function(a){var b=a.data;var c=function(){var g;return((g=b())==null?void 0:g.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
a={};var d={},e={};return _.q("ytm-lp-complex-offer-card-view-model",null,_.q("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.q("div",{class:_.et((a.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=c,a),"ytmLpComplexOfferCardViewModelCardContainer")},_.q(_.qi,{cond:function(){var g;return(g=b())==null?void 0:g.bannerText},
then:function(){return _.q("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.q("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.q(_.tt,{text:function(){return b().bannerText}})))}}),_.q(_.qi,{cond:function(){return _.jv(b().logo)},
then:function(g){var k={};return _.q("div",{class:_.et((k.ytmLpComplexOfferCardViewModelLogoAlignLeft=c,k),"ytmLpComplexOfferCardViewModelLogo")},_.q(_.Ps,{data:g,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.q("div",{class:_.et((d.ytmLpComplexOfferCardViewModelTitleAlignLeft=c,d),"ytmLpComplexOfferCardViewModelTitle")},_.q(_.tt,{text:function(){return b().title}})),_.q(_.qi,{cond:function(){var g;
return(g=b())==null?void 0:g.subtitle},
then:function(){var g={};return _.q("div",{class:_.et((g.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=c,g),"ytmLpComplexOfferCardViewModelSubtitle")},_.q(_.tt,{text:function(){return b().subtitle}}))}}),_.q(_.qi,{cond:function(){return b().planPricingPrimary},
then:function(){return _.q("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.q(_.tt,{text:function(){return b().planPricingPrimary}}))}}),_.q(_.qi,{cond:function(){return b().planPricingSecondary},
then:function(){return _.q("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.q(_.tt,{text:function(){return b().planPricingSecondary}}))}}),_.q(_.qi,{cond:function(){return b().purchaseButton},
then:function(){return _.q("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.q(_.Hu,{data:function(){return b().purchaseButton}},{buttonViewModel:function(g){return _.q(_.Qu,{data:g.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.q("div",{class:_.et((e.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=c,e),"ytmLpComplexOfferCardViewModelLegalText")},_.q(_.tt,{text:function(){return b().legalText}})),_.q(_.qi,{cond:function(){var g;
return(g=b())==null?void 0:g.offerCardDetails},
then:function(){return _.q("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.q(_.Hu,{data:function(){return b().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:c$b}))}}))))},"Db");var e$b=_.Rr(function(a){var b=a.data;var c=function(){var k;return((k=b())==null?void 0:k.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
a={};var d={},e={},g={};return _.q("ytm-lp-complex-offer-card-section-view-model",null,_.q("div",{class:_.et("ytmLpComplexOfferCardSectionViewModelHost")},_.q("div",{class:_.et((a.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=c,a),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.q("div",{class:_.et((d.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=c,d),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.q("h2",{class:_.et((e.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
c,e),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.q(_.tt,{text:function(){return b().title}}))),_.q(_.qi,{cond:function(){var k;
return(k=b())==null?void 0:k.subtitle},
then:function(){var k={},m={};return _.q("div",{class:_.et((k.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=c,k),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.q("div",{class:_.et((m.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=c,m),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.q(_.tt,{text:function(){return b().subtitle}})))}}),_.q("div",{class:_.et((g.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=c,g),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.q(_.Hu,{data:function(){var k;
return(k=b().offerPlans)!=null?k:[]}},{lpComplexOfferCardViewModel:function(k){return _.q("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.q(d$b,{data:k.data}))}})))))},"Eb");_.Pv=Fkb.getInstance();var f$b=_.Rr(function(a){return _.q("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":a.shouldAriaHideContent},_.q("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:a.questionId},_.q(_.tt,{text:a.question})))},"Fb"),g$b=_.Rr(function(a){var b=a.data;
var c=a.themeOverride;a=_.h(_.ih(!1,void 0,"ljTVPd"));var d=a.next().value,e=a.next().value;a=_.lt(function(){e(!d());return!1});
var g=function(){return d()?"EXPAND_LESS":"EXPAND_MORE"},k=("faq-container"+_.Ov(_.Pv)).toString(),m="faq-question-and-answers-section-question"+_.Ov(_.Pv),n={},r={};
return _.q("faq-entry-view-model-c3",null,_.q("div",{class:_.et("yt-lp-faq-entry-view-model",(n["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return c==null?void 0:c().useDarkTheme},n))},_.q("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":a,role:"button","aria-expanded":d,"aria-labelledby":m.toString(),"tab-index":"0"},_.q(f$b,{question:function(){return b().question},
questionId:m,shouldAriaHideContent:!0}),_.q(_.qi,{cond:function(){return d()!==void 0},
then:function(){return _.q("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.q(_.qt,{icon:g,ariaHidden:!0}),_.q("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.q("div",{class:_.et("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(r["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!d()},r))},_.q("div",{id:k},_.q(_.ri,{each:function(){return b().answers||[]}},function(t){return _.q("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.q(_.tt,{text:t}))})))))},"Gb");
g$b.idomCompat=!0;var h$b=_.Rr(function(a){var b=a.data;var c=a.themeOverride;a={};return _.q("lp-faq-section-view-model-c3",null,_.q("div",{class:_.et("yt-lp-faq-section-view-model",(a["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return b().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},a["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(c==null||!c().useDarkTheme)},a))},_.q("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.q(_.qi,{cond:function(){return b().header},
then:function(d){return _.q("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.q(_.tt,{text:d}))}}),_.q("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.q(_.Hu,{data:function(){return b().faqs}},{faqEntryViewModel:function(d){return _.q(g$b,{data:d.data,
themeOverride:c})}})),_.q("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.q(_.ri,{each:function(){return b().footers||[]}},function(d){return _.q(_.tt,{text:d})})),_.q(_.qi,{cond:function(){return b().legal},
then:function(d){return _.q("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.q(_.tt,{text:d}))}}))))},"Hb");
h$b.idomCompat=!0;var i$b=_.Rr(function(a){var b=a.data;var c=a.themeOverride;_.wi(function(){var k=b().gtmId;k&&_.BG(k,_.Fi("GL",""))});
var d={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var k,m,n;return(n=(k=b().logo)==null?void 0:(m=k.accessibilityData)==null?void 0:m.label)!=null?n:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},e=_.v().resolve(_.Xi(_.Ks)),g=function(){return e&&e()||(c==null?void 0:c().useDarkTheme)};
return _.q("lp-header-section-view-model",null,_.q("div",{class:function(){var k=b().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",m=b().marginType==="LP_SECTION_MARGIN_TYPE_TOP",n=c==null?void 0:c().useDarkTheme,r=["lp-header-section-view-model"];k&&r.push("lp-header-section-view-model--ptc-layout-type");m&&r.push("lp-header-section-view-model__lp-header-section-margin");n&&r.push("lp-header-section-view-model--premium-force-dark-mode");return r.join(" ")}},_.q(_.qi,{cond:function(){return b().logo},
then:function(){return _.q("div",null,_.q(_.qi,{cond:g,then:function(){return _.q(_.qi,{cond:function(){var k;return(k=b().logo)==null?void 0:k.imageDark},
then:function(k){return _.q(_.Ps,Object.assign({},{data:k},d))}})},
else:function(){return _.q(_.qi,{cond:function(){var k;return(k=b().logo)==null?void 0:k.imageLight},
then:function(k){return _.q(_.Ps,Object.assign({},{data:k},d))}})}}))}}),_.q(_.qi,{cond:function(){return b().title},
then:function(k){return _.q("div",{class:"lp-header-section-view-model__lp-header-title"},_.q(_.tt,{text:k}))}}),_.q("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.q(_.qi,{cond:function(){return b().subtitles},
then:function(k){return _.q(_.ri,{each:k},function(m){return _.q("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.q(_.tt,{text:m}))})}})),_.q(_.qi,{cond:function(){return b().additionalInfo},
then:function(k){return _.q("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.q(_.tt,{text:k}))}}),_.q("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.q(_.qi,{cond:function(){return b().primaryButton},
then:function(k){return _.q("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.q(_.Hu,{data:k},{buttonViewModel:_.Qu}))}}),_.q(_.qi,{cond:function(){return b().secondaryButton},
then:function(k){return _.q("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.q(_.Hu,{data:k},{buttonViewModel:_.Qu}))}})),_.q(_.qi,{cond:function(){return b().otherOffersInfo},
then:function(k){return _.q("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.q(_.tt,{text:k}))}}),_.q("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.q(_.qi,{cond:function(){return b().billingInfo},
then:function(k){return _.q(_.ri,{each:k},function(m){return _.q("div",null,_.q(_.tt,{text:m}))})}}))))},"Ib");
i$b.idomCompat=!0;var j$b=_.Rr(function(a){var b=a.data;var c=_.Nr(a.themeOverride,{useDarkTheme:!1});a={};a=_.et("ytm-lp-headline-section-view-model",(a["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return c().useDarkTheme},a));
return _.q("lp-headline-section-view-model",null,_.q("div",{class:a},_.q("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.q(_.tt,{text:function(){return b().title}})),_.q(_.qi,{cond:function(){return b().subtitle},
then:function(d){return _.q("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.q(_.tt,{text:d}))}})))},"Jb");var k$b=_.Rr(function(a){var b=a.data;var c=a.themeOverride;var d=_.v().resolve(_.Xi(_.Ks)),e=function(){return d&&d()||(c==null?void 0:c().useDarkTheme)},g=function(){var r,t;
var u=e()?(r=b().textBackgroundImage)==null?void 0:r.imageDark:(t=b().textBackgroundImage)==null?void 0:t.imageLight;return ZQa((u==null?void 0:u.sources)||[])},k=function(){var r,t;
return e()?(r=b().featureImage)==null?void 0:r.imageDark:(t=b().featureImage)==null?void 0:t.imageLight},m=function(){return b().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},n=function(){var r,t;
return e()?(r=b().logo)==null?void 0:r.imageDark:(t=b().logo)==null?void 0:t.imageLight};
return _.q("ytm-lp-large-feature-section-view-model",null,_.q("div",{class:function(){var r=b().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",t=b().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",u=(b().index||0)%2===1,x=c==null?void 0:c().useDarkTheme,A=["yt-lp-large-feature-section-view-model"];r?A.push("yt-lp-large-feature-section-view-model--music-feature-type"):t?A.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):u||A.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
x&&A.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return A.join(" ")}},_.q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.q(_.qi,{cond:k,
then:function(){return _.q(_.Ps,{data:function(){return k()},
alt:function(){var r,t,u;return(u=(r=b().featureImage)==null?void 0:(t=r.accessibilityData)==null?void 0:t.label)!=null?u:""},
contentMode:m})}})),_.q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var r;return((r=g())==null?0:r.url)?"background-image: url("+_.Id(g().url)+");":""}},_.q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.q(_.qi,{cond:n,
then:function(){return _.q(_.Ps,{data:function(){return n()},
alt:function(){var r,t,u;return(u=(r=b().logo)==null?void 0:(t=r.accessibilityData)==null?void 0:t.label)!=null?u:""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",targetWidth:138,targetHeight:20,preserveWidth:!0,preserveHeight:!0,className:"yt-lp-large-feature-section-view-model__lp-large-feature-section-logo"})}}),_.q(_.qi,{cond:function(){return b().eyebrowText},
then:function(){return _.q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.q(_.tt,{text:function(){return b().eyebrowText}}))}}),_.q(_.qi,{cond:function(){return b().title},
then:function(){return _.q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.q(_.tt,{text:function(){return b().title}}))}}),_.q(_.qi,{cond:function(){return b().subtitles},
then:function(){return _.q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.q(_.ri,{each:function(){return b().subtitles||[]}},function(r){return _.q(_.tt,{text:r})}))}})))))},"Kb");
k$b.idomCompat=!0;var l$b=_.Rr(function(a){return _.q("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.q("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.q(_.qt,{icon:function(){var b;return(b=a.data())==null?void 0:b.iconType},
className:function(){var b;return((b=a.data())==null?void 0:b.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.q("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.q(_.tt,{text:function(){var b;
return(b=a.data())==null?void 0:b.text}}))))},"Lb");var m$b=_.Rr(function(a){a=_.Or(a,{config:void 0,themeOverride:void 0});var b=a.data,c=a.config,d=a.themeOverride;a={};a=_.et("ytm-lp-offer-card-option-view-model",(a["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var n;return(n=d())==null?void 0:n.useDarkTheme},a));
var e=_.lt(function(){var n,r;(n=c())==null||(r=n.handleRadioButtonClick)==null||r.call(n,b());return!1}),g=function(){var n;
return(n=c())==null?void 0:n.shouldDisplayRadioButton},k=_.lt(function(){if(g()){var n,r;
(n=c())==null||(r=n.handleRadioButtonClick)==null||r.call(n,b())}return!1}),m=function(){var n;
return(n=b().featureListItems)!=null?n:[]};
return _.q("ytm-lp-offer-card-option-view-model",null,_.q("div",{class:a,"on:click":k},_.q(_.qi,{cond:g,then:function(){return _.q("div",null,_.q("input",{type:"radio","on:click":e,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var n;return!((n=c())==null||!n.isOptionSelected)}}))}}),_.q("div",null,_.q("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.q(_.tt,{text:function(){return b().eyebrowText}})),_.q("div",{class:"ytm-lp-offer-card-option-view-model__title"},
_.q(_.tt,{text:function(){return b().title}})),_.q("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},_.q(_.tt,{text:function(){return b().subtitle}})),_.q(_.qi,{cond:function(){return m().length>0},
then:function(){return _.q("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.q(_.Hu,{data:m},{lpFeatureListItemViewModel:l$b}))}}),_.q("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.q(_.tt,{text:function(){return b().description}})))))},"Mb");
m$b.idomCompat=!0;var n$b=_.Rr(function(a){var b=a.data;var c=a.themeOverride;a=_.h(_.nt(function(){var g,k=(g=b().offerOptions)==null?void 0:g[0];return _.y(k,pEb)||{}}));
var d=a.next().value,e=a.next().value;a={};return _.q("ytm-lp-offer-card-view-model",null,_.q("div",{class:_.et("ytm-lp-offer-card-view-model",(a["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(c==null||!c().useDarkTheme)},a))},_.q("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.q(_.qi,{cond:function(){return b().titleIconType},
then:function(){return _.q("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.q(_.qt,{icon:function(){var g;return((g=b().titleIconType)==null?void 0:g.toString())||""}}))}}),_.q("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.q(_.tt,{text:function(){return b().title}})),_.q(_.Hu,{data:function(){return b().titleBadge}},{badgeViewModel:function(g){return _.q("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.q(_.vL,{data:g.data}))}})),_.q("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.q(_.Hu,{data:function(){return b().offerOptions}},{lpOfferCardOptionViewModel:function(g){var k=g.data;
return _.q(_.Wh,null,_.q("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.q(m$b,{data:k,config:function(){var m;return{shouldDisplayRadioButton:(b().offerOptions||[]).length>1,isOptionSelected:k().id===((m=d())==null?void 0:m.id),handleRadioButtonClick:function(n){return void e(n)}}},
themeOverride:c}))}})),_.q("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.q(_.Hu,{data:function(){var g;
return(g=d())==null?void 0:g.purchaseButtonOverride}},{buttonViewModel:_.Qu}))))},"Nb");
n$b.idomCompat=!0;var o$b=_.Rr(function(a){var b=a.data;var c=a.themeOverride;a={};a=_.et("ytm-lp-offer-card-section-view-model",(a["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var d;return c==null?void 0:(d=c())==null?void 0:d.useDarkTheme},a));
return _.q("ytm-lp-offer-card-section-view-model",null,_.q("div",{class:a},_.q(_.qi,{cond:function(){return b().title!==void 0},
then:function(){return _.q("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.q("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.q(_.tt,{text:function(){return b().title}})),_.q(_.qi,{cond:function(){return b().subtitle},
then:function(){return _.q("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.q(_.tt,{text:function(){return b().subtitle}}))}}))}}),_.q("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.q(_.Hu,{data:function(){return b().offerCards}},{lpOfferCardViewModel:function(d){return _.q("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.q(n$b,{data:d.data,
themeOverride:c}))}})),_.q(_.qi,{cond:function(){return b().footer},
then:function(){return _.q("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.q(_.tt,{text:function(){return b().footer}}))}})))},"Ob");var p$b=_.Rr(function(a){var b=a.data;return _.q("lp-offer-table-cell-content-view-model",null,_.q("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.q(_.ti,null,_.q(_.si,{when:function(){return b().title}},function(){return _.q(_.tt,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return b().title}})}),_.q(_.si,{when:function(){return b().subTitle}},function(){return _.q(_.tt,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return b().subTitle}})}),_.q(_.si,{when:function(){return b().featureDescription}},function(){return _.q(_.tt,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return b().featureDescription}})}),_.q(_.si,{when:function(){return b().description}},function(){return _.q(_.tt,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return b().description}})}),_.q(_.si,{when:function(){return b().iconType}},function(){return _.q("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.q(_.qt,{icon:function(){return b().iconType.toString()}}))}),_.q(_.si,{when:function(){return b().purchaseButton}},function(){return _.q(_.Hu,{data:function(){return b().purchaseButton}},{buttonViewModel:function(c){return _.q("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.q(_.Qu,{data:c.data}))}})}),_.q(_.si,{when:function(){return b().note}},function(){return _.q(_.tt,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return b().note}})}),_.q(_.si,{when:function(){return b().featureDetail}},function(){return _.q(_.tt,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return b().featureDetail}})}),_.q(_.si,{when:function(){return b().badge}},function(){return _.q(_.Hu,{data:function(){return b().badge}},{badgeViewModel:_.vL})}))))},"Pb");
p$b.idomCompat=!0;var q$b=_.Rr(function(a){var b=a.data;return _.q("lp-offer-table-cell-view-model",null,_.q("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(b().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.q(_.Hu,{data:function(){return b().contents}},{lpOfferTableCellContentViewModel:p$b})))},
"Qb");
q$b.idomCompat=!0;var r$b=_.Rr(function(a){var b=a.data;var c=a.lpTableIsFirstRow;var d=a.lpTableIsLastRow;var e=function(){return(c==null?0:c())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},g=function(){return(c==null?0:c())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(d==null?0:d())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.q("ytm-lp-offer-table-row-view-model",null,_.q("div",{class:"yt-lp-offer-table-row-view-model"},_.q(_.Hu,{data:function(){return b().rowHeaderCell}},{lpOfferTableCellViewModel:function(k){return _.q("div",{class:e},_.q(q$b,{data:k.data}))}}),_.q(_.Hu,{data:function(){return b().contentCells}},{lpOfferTableCellViewModel:function(k){return _.q("div",{class:g},_.q(q$b,{data:k.data}))}})))},"Rb");
r$b.idomCompat=!0;var s$b=_.Rr(function(a){var b=a.data;var c=a.themeOverride;var d=_.v().resolve(_.Xi(_.Ks)),e=function(){return _.y(b().logo,oGb)||{}};
a={};return _.q("ytm-lp-offer-table-section-view-model",null,_.q("div",{class:"yt-lp-offer-table-view-model"},_.q(_.qi,{cond:function(){var g,k;return d&&d()||(c==null?0:c().useDarkTheme)?(g=e())==null?void 0:g.imageDark:(k=e())==null?void 0:k.imageLight},
then:function(g){return _.q(_.Ps,{data:g,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var k,m,n;return(n=(k=e())==null?void 0:(m=k.accessibilityData)==null?void 0:m.label)!=null?n:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.q("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.q(_.tt,{text:function(){return b().title}})),_.q("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.q(_.tt,{text:function(){return b().subtitle}})),_.q(_.qi,{cond:function(){return b().disclaimers},
then:function(g){return _.q("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.q(_.ri,{each:g},function(k){return _.q("div",null,_.q(_.tt,{text:k}))}))}}),_.q("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.q(_.Hu,{data:function(){return b().rows}},{lpOfferTableRowViewModel:function(g,k){return _.q(r$b,{data:g.data,
lpTableIsFirstRow:function(){return k()===0},
lpTableIsLastRow:function(){return k()===b().rows.length-1}})}})),_.q("div",{class:_.et((a["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return b().hasFooterBackground},a))},_.q(_.qi,{cond:function(){return b().footer},
then:function(){return _.q("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.q(_.tt,{text:function(){return b().footer}}))}}),_.q(_.qi,{cond:function(){return b().footerTitle},
then:function(){return _.q("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.q(_.tt,{text:function(){return b().footerTitle}}))}}),_.q(_.qi,{cond:function(){return b().footerDescription},
then:function(){return _.q("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.q(_.tt,{text:function(){return b().footerDescription}}))}}))))},"Sb");
s$b.idomCompat=!0;var t$b=_.Rr(function(a){var b=a.data;var c=a.themeOverride;var d=_.v().resolve(_.Xi(_.Ks)),e=function(){var m;return c==null?void 0:(m=c())==null?void 0:m.useDarkTheme},g=function(){var m,n;
return d&&d()||e()?(m=b().image)==null?void 0:m.imageDark:(n=b().image)==null?void 0:n.imageLight};
a={};a=_.et("ytm-lp-small-feature-section-view-model",(a["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=e,a));var k=function(){var m,n,r;return(r=(m=b().image)==null?void 0:(n=m.accessibilityData)==null?void 0:n.label)!=null?r:""};
return _.q("ytm-lp-small-feature-section-view-model",{class:a},_.q(_.qi,{cond:function(){return g()&&!v9a},
then:function(){return _.q("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.q(_.Ps,{data:function(){return g()},
alt:k,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.q("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.q("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.q(_.qi,{cond:function(){return b().title},
then:function(m){return _.q(_.tt,{text:m})}})),_.q("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.q(_.tt,{text:function(){return b().description}}))))},"Tb");
t$b.idomCompat=!0;var u$b=_.Rr(function(a){var b=a.data;var c=a.themeOverride;a={};return _.q("ytm-lp-small-feature-section-group-view-model",null,_.q("div",{class:_.et("ytm-lp-small-feature-section-group-view-model",(a["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(c==null||!c().useDarkTheme)},a))},_.q("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.q(_.Hu,{data:function(){return b().smallFeatures}},{lpSmallFeatureSectionViewModel:function(d){return _.q("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.q(t$b,{data:d.data,
themeOverride:c}))}}))))},"Ub");
u$b.idomCompat=!0;_.Ts(_.Rr(function(a){var b=a.data;var c=function(){return b().forcedTheme==="USER_INTERFACE_THEME_DARK"},d=function(){return b().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},e=function(){var k="",m,n;
var r=_.v().resolve(_.Xi(_.Ks));r=c()||(r==null?0:r())?(m=b().themedImageViewModel)==null?void 0:m.imageDark:(n=b().themedImageViewModel)==null?void 0:n.imageLight;(m=ZQa((r==null?void 0:r.sources)||[]))&&m.url&&(k=d()?"background-image: linear-gradient(to bottom, transparent, "+(b().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.Id(m.url)+");":"background-image: url("+_.Id(m.url)+");");return k},g=function(){return{useDarkTheme:c()}};
a={};return _.q("yt-section-group-view-model",null,_.q("div",{class:_.et("yt-lp-section-group-view-model",(a["yt-lp-section-group-view-model--premium-force-dark-mode"]=c,a["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return b().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},a))},_.q(_.qi,{cond:function(){return e().length},
then:function(){var k={};return _.q("div",{class:_.et("yt-lp-section-group-view-model__bg-image",(k["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=d,k)),style:e})}}),_.q("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.q(_.Hu,{data:function(){return b().sections}},{lpFaqSectionViewModel:function(k){return _.q(h$b,{data:k.data,
themeOverride:g})},
lpHeaderSectionViewModel:function(k){return _.q(i$b,{data:k.data,themeOverride:g})},
lpHeadlineSectionViewModel:function(k){return _.q(j$b,{data:k.data,themeOverride:g})},
lpLargeFeatureSectionViewModel:function(k){return _.q(k$b,{data:k.data,themeOverride:g})},
lpOfferCardSectionViewModel:function(k){return _.q(o$b,{data:k.data,themeOverride:g})},
lpComplexOfferCardSectionViewModel:function(k){return _.q(e$b,{data:k.data})},
lpOfferTableSectionViewModel:function(k){return _.q(s$b,{data:k.data,themeOverride:g})},
lpSmallFeatureSectionGroupViewModel:function(k){return _.q(u$b,{data:k.data,themeOverride:g})}}))))},"Vb"),"yt-section-group-view-model",{props:{data:_.VG}});var C1a=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.v$b=_.Rr(function(a){function b(){if(C1a.has(a.data().displayType)){var r=!d(),t;if((t=a.disableDeselection)==null||!t.call(a)||r){a.data().selected=r;t=Object.assign({},k(),{selected:r});m(t);var u;(u=a.callback)==null||u.call(a,t,r)}}}
var c=_.Pl(),d=function(){var r,t;return!!(((r=a.selected)==null?void 0:r.call(a))!==void 0?(t=a.selected)==null?0:t.call(a):k().selected)},e=_.h(_.nt(a.data)),g=e.next().value;
e=e.next().value;var k=g,m=e,n=_.tu(B1a,function(){return a.data().chipEntityKey||""});
return _.q("chip-view-model",{class:"ytChipViewModelHost",el:c},_.q(i7b,{data:function(){var r,t=Object.assign({},k(),{selected:d()}),u=n(),x=(r=a.disableDeselection)==null?void 0:r.call(a);a:switch(t.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":r=1;break a;default:r=0}return{text:(u==null?void 0:u.text)||t.text,state:t.disabled?1:t.selected?0:2,type:r,onTap:D1a(t,c,b,x)}}}))},"Wb");
_.v$b.idomCompat={callbacks:{callback:!0}};_.Ts(_.Rr(function(a){var b=_.tu(A1a,function(){var g;return(g=a.data())==null?void 0:g.chipBarStateEntityKey}),c=_.h(_.nt(function(){var g;
if(((g=b())==null?void 0:g.selectedIndex)!=void 0)return b().selectedIndex;var k,m;g=_.h(((k=a.data())==null?void 0:(m=k.chips)==null?void 0:m.entries())||[]);for(k=g.next();!k.done;k=g.next()){k=_.h(k.value);m=k.next().value;k=k.next().value;var n=void 0;if((n=_.y(k,_.VE))==null?0:n.selected)return m}return-1})),d=c.next().value,e=c.next().value;
return _.q("chip-bar-view-model",{class:_.et("ytChipBarViewModelHost",a.className),role:"tablist"},_.q(_.Hu,{data:function(){return a.data().chips}},{chipViewModel:function(g,k){return _.q("div",{class:"ytChipBarViewModelChipWrapper"},_.q(_.v$b,{data:g.data,
selected:function(){return k()===d()},
callback:function(m,n){m=!!n;n=k();e(m?n:-1);var r,t=(r=a.data())==null?void 0:r.chipBarStateEntityKey;t&&m&&_.Mr(_.wu("chipBarStateEntity",t,{key:t,selectedIndex:n}))},
disableDeselection:a.disableDeselection}))}}))},"Xb"),"chip-bar-view-model",{props:{data:_.Ss,
className:_.Ss,disableDeselection:_.Ss}});var Mv=new Map,Lv=new Map,G1a=0,Nv;var N1a=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],Q1a={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var w$b,x$b;w$b=function(a){return function(b){return function(){return String(b())+a}}};
_.CQ=w$b("px");x$b=w$b("s");var z$b=_.Rr(function(a){function b(V){return function(){var fa=A().numItemsPerGridRow,aa=V()*fa;fa=aa+fa;var ma,Ba;return(Ba=(ma=d().contents)==null?void 0:ma.slice(aa,fa))!=null?Ba:[]}}
var c=_.Or(a,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),d=c.data,e=c.layoutContainerWidth,g=c.shouldUseOwnContainerSize,k=c.marginSettings;c=_.h(_.ih(!0,void 0,"qgr2Je"));var m=c.next().value,n=c.next().value,r=function(){var V,fa=(V=_.y(d().showMoreButton,_.Iu))==null?void 0:V.trackingParams;fa&&_.tF(_.ls(),fa);n(!1)},t=function(){var V,fa=(V=_.y(d().showLessButton,_.Iu))==null?void 0:V.trackingParams;
fa&&_.tF(_.ls(),fa);n(!0)};
c=_.Pl();var u=S1a(c),x=function(){var V;return(V=d().contentAspectRatio)!=null?V:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},A=_.ph(function(){var V=_.hv({containerWidth:g()&&u.width()>0?u.width()||e():e(),
sizing:"EXTRA_COMPACT",marginSettings:k(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:V.maxContainerWidth,numItemsPerGridRow:V.numItems,contentPadding:g()?V.margin:V.contentMargin,itemWidth:V.itemWidth,itemMargin:V.gutter/2}},void 0,"pqVdjc"),C=function(){if(d().enableVerticalExpansion){if(m())return 1;
var V,fa,aa=(fa=(V=d().contents)==null?void 0:V.length)!=null?fa:0;return Math.ceil(aa/A().numItemsPerGridRow)}return A().numItemsPerGridRow<=2?2:1},F=function(){return d().enableVerticalExpansion&&d().showLessButton&&!m()&&C()>1},J=function(){var V,fa;
return d().enableVerticalExpansion&&d().showMoreButton&&m()&&((fa=(V=d().contents)==null?void 0:V.length)!=null?fa:0)>A().numItemsPerGridRow},I=function(){return!F()},R=function(){return!J()},da={};
return _.q("grid-shelf-view-model",{class:_.et("ytGridShelfViewModelHost",a.className,(da.ytGridShelfViewModelHostHasBottomButton=function(){return F()||J()},da)),
el:c,style:_.ot({"margin-left":(0,_.CQ)(function(){return A().contentPadding}),
"margin-right":(0,_.CQ)(function(){return A().contentPadding})})},_.q(_.qi,{cond:function(){return _.y(d().header,BFb)},
then:function(V){return _.q(_.fQ,{data:V,disableHorizontalPadding:!0})}}),_.q("div",null,_.q(_.ri,{each:function(){return Array(C())}},function(V,fa){return _.q(y$b,{className:a.className,
items:b(fa),responsiveGridShelfLayout:A,contentAspectRatio:x})})),_.q("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.q(_.Hu,{data:function(){return d().showMoreButton}},{buttonViewModel:function(V){return _.q("div",{hidden:R},_.q(_.Qu,{data:V.data,
onClick:r}))}}),_.q(_.Hu,{data:function(){return d().showLessButton}},{buttonViewModel:function(V){return _.q("div",{hidden:I},_.q(_.Qu,{data:V.data,
onClick:t}))}})))},"cc");
z$b.idomCompat=!0;var y$b=_.Rr(function(a){var b=a.items;var c=a.responsiveGridShelfLayout;var d=a.contentAspectRatio;a=a.className;var e=_.Pl();F1a(e,function(){a:{var k=e.value;for(var m=b(),n=[],r=0;r<m.length;r++){var t=_.y(m[r],vEb);if(!t||t==null||!t.inlinePlayerData){k=null;break a}var u=k.children.item(r);if(!u){k=null;break a}n.push({thumbnailElement:u,videoData:t})}k={gridVideoPreviewData:{gridItems:n}}}return k});
var g=(0,_.CQ)(function(){return-c().itemMargin});
return _.q("div",{el:e,class:_.et("ytGridShelfViewModelGridShelfRow",a),style:_.ot({"margin-left":g,"margin-right":g})},_.q(_.Hu,{data:b,replacementWrapper:function(k){return _.q(A$b,{responsiveGridShelfLayout:c},k)}},{shortsLockupViewModel:function(k){return _.q(A$b,{responsiveGridShelfLayout:c},_.q(h3b,{data:k.data,
aspectRatio:function(){return d()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"dc"),A$b=_.Rr(function(a){return _.q("div",{style:_.ot({width:(0,_.CQ)(function(){return a.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+a.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},a.children)},"ec");_.Ts(z$b,"grid-shelf-view-model",{props:{data:_.VG,layoutContainerWidth:_.VG,shouldUseOwnContainerSize:_.VG,marginSettings:_.VG,className:_.VG}});_.Ts(_.Rr(function(a){var b=_.h(_.ih(!1,void 0,"YYtxR")),c=b.next().value,d=b.next().value;b={};return _.q("yt-alert-banner-view-model",{class:_.et("ytAlertBannerViewModelHost",function(){var e;a:switch((e=a.data())==null?void 0:e.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":e="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":e="ytAlertBannerViewModelWarning";break a;default:e="ytAlertBannerViewModelInformational"}return e},(b.ytAlertBannerViewModelDismissed=c,b.ytAlertBannerViewModelFullbleed=
a.fullbleed,b.ytAlertBannerViewModelNarrow=a.narrow,b.ytAlertBannerViewModelIsInRichGrid=a.isInRichGrid,b))},_.q(_.qi,{cond:function(){var e;
return!((e=a.data())==null?0:e.hideIcon)},
then:function(){return _.q("div",{class:"ytAlertBannerViewModelIcon"},_.q(_.qt,{icon:function(){return"info_circle"}}))}}),_.q("div",{class:"ytAlertBannerViewModelOuterContainer"},_.q("div",{class:"ytAlertBannerViewModelContainer"},_.q("div",{class:"ytAlertBannerViewModelContent"},_.q("div",{class:"ytAlertBannerViewModelHeading"},_.q(_.tt,{text:function(){var e;
return(e=a.data())==null?void 0:e.heading}})),_.q("div",{class:"ytAlertBannerViewModelBody"},_.q(_.tt,{text:function(){var e;
return(e=a.data())==null?void 0:e.body}})))),_.q(_.Hu,{data:function(){var e;
return(e=a.data())==null?void 0:e.actionButton}},{buttonViewModel:function(e){return _.q(_.Qu,{data:e.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.q(_.Hu,{data:function(){var e;
return(e=a.data())==null?void 0:e.dismissButton}},{buttonViewModel:function(e){return _.q(_.Qu,{data:e.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var g;((g=a.data())==null?0:g.disableLocalDismissBehavior)||d(!0)}})}}))},"fc"),"yt-alert-banner-view-model",{props:{data:_.VG,
fullbleed:_.VG,narrow:_.VG,isInRichGrid:_.VG}});var T1a;T1a=_.Du({chipViewModel:_.v$b,buttonViewModel:_.Qu});_.B$b=_.jt(U1a,{callbacks:{callback:!0}});_.Zl(U1a);_.Ts(_.B$b,"chips-shelf-view-model",{props:{data:_.VG,callback:_.Ss,enableSingleChipSelection:_.VG}});var C$b=_.Rr(function(a){a=_.Or(a,{disabled:!1});var b=a.active,c=a.disabled;a={};a=_.et("ytSwitchShapeTrack",(a.ytSwitchShapeTrackActive=function(){return b()},a.ytSwitchShapeTrackDisabled=function(){return c()},a));
var d={};d=_.et("ytSwitchShapeKnob",(d.ytSwitchShapeKnobActive=function(){return b()},d));
return _.q("switch-shape",{class:"ytSwitchShapeHost"},_.q("div",{class:a}),_.q("div",{class:d}))},"gc");var D$b=_.Rr(function(a){var b=_.Or(a,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),c=b.data;a=b.className;var d=b.handleOnTapEventInParent,e=b.parentActive;b=_.h(_.nt(function(){var u;return(u=e())!=null?u:c().switchedOnByDefault||!1}));
var g=b.next().value,k=b.next().value,m=function(){return c().isDisabled},n=_.Pl();
b=_.lt(function(u){return u.key==="Enter"?(u.preventDefault(),n.value.click(),!1):!0});
var r=_.lt(function(u){if(c().handleOnTapEventInParent||d())return!0;if(m())return!1;W1a(c(),g(),u);k(!g());return!1}),t={};
t=_.et("ytSwitchButtonViewModelButton",(t.ytSwitchButtonViewModelTappable=function(){return!m()},t));
return _.q("switch-button-view-model",{class:_.et("ytSwitchButtonViewModelHost",a)},_.q("button",{el:n,class:t,"on:click":r,"on:keydown":b,"aria-label":function(){return g()?c().a11yLabelSwitchedOn:c().a11yLabelSwitchedOff},
"aria-pressed":g,"aria-disabled":m},_.q(C$b,{active:g,disabled:m})))},"hc");_.Zl($1a);_.E$b=_.jt(b2a,{callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}});_.Zl(b2a);var c2a;c2a=_.Du({buttonViewModel:_.Qu,switchButtonViewModel:D$b,avatarViewModel:_.Kv,accountLinkButtonViewModel:MXa,subscribeButtonViewModel:_.JXb});_.DQ=_.jt(f2a,{callbacks:{onTap:!0}});_.Zl(f2a);_.F$b=_.Rr(function(a){var b=a.data;var c=a.onTap;var d=a.onSwitch;var e=a.overrideDisabled;a=_.h(_.nt(function(){var t;return((t=Y1a(r()))==null?void 0:t.switchedOnByDefault)||!1}));
var g=a.next().value,k=a.next().value;a=_.h(_.ih(!1,void 0,"Ri8Twb"));var m=a.next().value,n=a.next().value,r=function(){var t;if(!(t=b().switchButton)){var u=b();t=e==null?void 0:e();u={switchOnCommand:u.switchOnCommand,switchOffCommand:u.switchOffCommand,switchedOnByDefault:u.switchedOnByDefault,isDisabled:u.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:u.a11yLabelSwitchedOn,a11yLabelSwitchedOff:u.a11yLabelSwitchedOff};t!==void 0&&(u.isDisabled=t);t={switchButtonViewModel:u}}return t};
return _.q("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.q(_.DQ,{data:function(){return{title:b().title,subtitle:b().attributedSubtitle,leadingImage:b().leadingImage,leadingAccessory:b().leadingAccessory,isDisabled:b().isDisabled}},
onTap:function(t){var u=Y1a(r());!u||u.isDisabled||b().ignoreTapUntilCommandCompletes&&m()||(c==null||c(t),W1a(u,g(),t,b().ignoreTapUntilCommandCompletes,n),k(!g()),d==null||d(g()))},
trailingAccessory:_.q(_.Hu,{data:r},{switchButtonViewModel:function(t){return _.q(D$b,{data:t.data,parentActive:g,handleOnTapEventInParent:!!c})}})}))},"ic");var G$b=_.vo("DOWNLOAD",{},"Download"),H$b=_.vo("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),I$b=_.vo("RETRY",{},"Retry"),J$b=_.vo("PAUSE_DOWNLOADING",{},"Pause downloading"),K$b=_.vo("RESUME_DOWNLOAD",{},"Resume download"),g2a={text:G$b,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},Qv={text:H$b,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},j2a={text:I$b,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
h2a={text:J$b,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},i2a={text:K$b,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var L$b=_.Rr(function(a){var b=function(){var m=a.data();m=_.Wu(m.rendererContext);var n;return(n=_.y(m,_.qu))==null?void 0:n.videoId},c=_.Ht(function(m){var n=b(),r=m2a(a.data());
return n?_.Kp(m,n):r?_.Lp(m,r):"TRANSFER_STATE_UNKNOWN"}),d=_.tu(_.PFa,b),e=_.Ht(function(m){return _.KFa(m,b(),m2a(a.data()))}),g=function(){return l2a(c(),d(),_.Wu(a.data().rendererContext),!!m2a(a.data()))},k=function(){return e()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.q("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:k},_.q(_.qi,{cond:function(){return!k()},
then:function(){return _.q(_.qi,{cond:g,then:function(m){return _.q(_.ri,{each:m},function(n){return _.q(_.DQ,{data:n,isCompact:a.isCompact,isMenuItem:a.isMenuItem,inPopup:a.inPopup})})}})}}))},"jc");
L$b.idomCompat=!0;var o2a;o2a=_.Du({listItemViewModel:f2a,downloadListItemViewModel:L$b,switchListItemViewModel:_.F$b});_.M$b=_.jt(_.p2a);_.Zl(_.p2a);var N$b=_.Rr(function(a){var b=a.data;var c=a.isOverlay;a={};return _.q("yt-course-perks-view-model",{class:_.et("ytwCoursePerksViewModelHost",(a.ytwCoursePerksViewModelHostOverlay=c,a))},_.q("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.q(_.tt,{text:function(){return b().title}})),_.q("div",null,_.q(_.qi,{cond:function(){return b().perks},
then:function(d){return _.q(_.M$b,{data:function(){return{listItems:d()}},
isCompact:!0,isOverlay:c})}})))},"kc");_.Ts(N$b,"yt-course-perks-view-model",{props:{data:_.Ss,isOverlay:_.Ss}});_.Ts(_.Rr(function(a){var b=a.data;return _.q("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.q("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.q(_.tt,{text:function(){return b().title}})),_.q("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.q(_.tt,{text:function(){return b().progressSummary}})),_.q("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.q("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.ot({width:function(){return b().progressPercentage*100+"%"}})})))},"lc"),"yt-course-progress-view-model",{props:{data:_.VG}});var O$b=_.Rr(function(a){var b=_.Or(a,{}).data;return _.q("yt-progress-view-model",{class:"ytwProgressViewModelHost"},_.q(_.qi,{cond:function(){return b().progressSummary},
then:function(c){return _.q("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.q(_.tt,{text:c}))}}),_.q("div",{class:"ytwProgressViewModelHostProgressContainer"},_.q("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.q(_.tt,{text:function(){var c;
return(c=b())==null?void 0:c.leadingLabel}})),_.q("div",{class:"ytwProgressViewModelHostProgressBar"},_.q("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){var c;return"width: "+(((c=b())==null?void 0:c.progressPercentage)||0)*100+"%"}}))))},"mc");var EQ=_.Rr(function(a){var b=a.starNumber;var c=a.data;var d=function(){var e;return((e=c())==null?void 0:e.rating)||0};
return _.q(_.qi,{cond:function(){return b()},
then:function(e){return _.q(_.ti,null,_.q(_.si,{when:function(){return d()>=e()-.25}},function(){return _.q("div",{class:"ytStarRatingViewModelHostStar"},_.q(_.qt,{icon:"STAR_FILLED"}))}),_.q(_.si,{when:function(){return d()>=e()-.75}},function(){return _.q("div",{class:"ytStarRatingViewModelHostStar"},_.q(_.qt,{icon:"STAR_HALF"}))}),_.q(_.Pna,null,function(){return _.q("div",{class:"ytStarRatingViewModelHostStar"},_.q(_.qt,{icon:"STAR_BORDER"}))}))}})},"nc"),P$b=_.Rr(function(a){a=a.data;
return _.q("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.q(EQ,{starNumber:1,data:a}),_.q(EQ,{starNumber:2,data:a}),_.q(EQ,{starNumber:3,data:a}),_.q(EQ,{starNumber:4,data:a}),_.q(EQ,{starNumber:5,data:a}))},"oc");_.Ts(_.Rr(function(a){var b=_.Or(a,{}).data;return _.q("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.q("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.q(_.tt,{text:function(){var c;return(c=b())==null?void 0:c.title}})),_.q("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.q(_.qi,{cond:function(){return b().starProgressViewModels},
then:function(c){return _.q("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.q(_.Hu,{data:c},{progressViewModel:O$b}))}}),_.q("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.q("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.q(_.tt,{text:function(){var c;
return(c=b())==null?void 0:c.averageRatingLabel}})),_.q(_.qi,{cond:function(){return b().zeroStateText},
then:function(c){return _.q("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.q(_.tt,{text:c}))}}),_.q(_.qi,{cond:function(){return b().starRatingViewModel},
then:function(c){return _.q("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.q(_.Hu,{data:c},{starRatingViewModel:P$b}))}}),_.q("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.q(_.tt,{text:function(){var c;
return(c=b())==null?void 0:c.totalRatingsCountLabel}})))))},"pc"),"yt-course-ratings-view-model",{props:{data:_.Ss}});var Q$b;Q$b={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}};_.R$b=_.Rr(function(a){var b=_.Pl(),c=_.nu();_.pi(function(){requestAnimationFrame(function(){var k;(k=c.lottieEl)==null||k.addEventListener("DOMLoaded",function(){var m;(m=a.onLottieLoaded)==null||m.call(a)})});
var d,e=_.dl({browseEndpoint:{params:(d=a.data)==null?void 0:d.call(a).params,browseId:"FElearning_destination"},commandMetadata:{webCommandMetadata:{url:"/learning",rootVe:256690,apiUrl:"/youtubei/v1/browse",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}),g;((g=a.shouldSkipRequest)==null?0:g.call(a))||_.io(b.value,"yt-navigate",{endpoint:e})});
return _.q("yt-learning-journey-loader-view-model",{class:_.et("learningJourneyLoaderViewModelHost",a.className),"data-target-id":function(){var d;return((d=a.data)==null?void 0:d.call(a).targetId)||""},
el:b},_.q(_.gt,{className:a.className,animationName:function(){return Q$b.animationConfig.name},
data:Q$b,animationRef:c}))},"qc");_.Ts(_.R$b,"yt-learning-journey-loader-view-model",{props:{data:_.VG,className:_.Ss,onLottieLoaded:_.Ss,shouldSkipRequest:_.Ss}});var S$b=_.Rr(function(a){var b=a.data;a=_.h(_.ih(-1,void 0,"r4B6h"));var c=a.next().value,d=a.next().value,e=function(n){return c()===n},g=function(n){return b().correctAnswerIndex===n},k=function(){return c()!==-1},m=_.lt(function(){d(-1);
return!1});
return _.q("learning-journey-quiz-view-model",{class:"learningJourneyQuizViewModelHost",style:_.ot({background:function(){return Tv(Rv(b())).backgroundColor}})},_.q(_.qi,{cond:function(){return!!b().video},
then:function(){return _.q("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.ot({background:function(){return Tv(Rv(b())).videoBackgroundColor}})},_.q(_.Hu,{data:function(){return b().video}},{lockupViewModel:function(n){return _.q(zL,{data:n.data,
className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.q("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.q("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.q("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.q("div",{class:"learningJourneyQuizViewModelHostQuizHeader"},_.q("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.ot({color:function(){return Tv(Rv(b())).primaryTextColor}})},_.q(_.tt,{text:function(){var n=b(),r=k(),t=c()===b().correctAnswerIndex;
return r?t?n.successTitle:n.failureTitle:n.questionHeaderText}})),_.q(_.qi,{cond:k,
then:function(){return _.q("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":m,role:"button","aria-label":"Reset","tab-index":"0"},_.q("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.ot({fill:function(){return Tv(Rv(b())).primaryTextColor}})},_.q("path",{d:"M440-122q-121-15-200.5-105.5T160-440q0-66 26-126.5T260-672l57 57q-38 34-57.5 79T240-440q0 88 56 155.5T440-202v80zm80 0v-80q87-16 143.5-83T720-440q0-100-70-170t-170-70h-3l44 44-56 56-140-140 140-140 56 56-44 44h3q134 0 227 93t93 227q0 121-79.5 211.5T520-122z"})))}})),
_.q("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.ot({color:function(){return Tv(Rv(b())).secondaryTextColor}})},_.q(_.tt,{text:function(){var n=b();
return k()?n.explanationText:n.questionSubheaderText}}))),_.q("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.q(_.ri,{each:function(){return b().optionsData||[]}},function(n,r){var t={};
return _.q("div",{class:_.et("learningJourneyQuizViewModelHostQuizOptions",(t.learningJourneyQuizViewModelHostQuizHover=function(){return!k()},t.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return c()===b().correctAnswerIndex&&e(r())},t.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return c()!==b().correctAnswerIndex&&e(r())},t.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return k()&&!e(r())},t)),
"on:click":_.lt(function(){if(k())return!1;d(r());return!1}),
style:_.ot({background:function(){return k()&&e(r())?"":Tv(Rv(b())).optionColor}}),
role:"button","aria-disabled":k,"tab-index":"0"},_.q(_.qi,{cond:k,then:function(){return _.q("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var u=r();return g(u)?"0 0 24 24":"0 -960 960 960"},
style:_.ot({fill:function(){return Tv(Rv(b())).primaryTextColor}})},_.q("path",{d:function(){var u=r();
return g(u)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M330-120L120-330v-300l210-210h300l210 210v300L630-120H330zm36-190l114-114 114 114 56-56-114-114 114-114-56-56-114 114-114-114-56 56 114 114-114 114 56 56z"}}))}}),_.q(_.tt,{text:n.optionText}))})))))},"rc");
S$b.idomCompat=!0;_.Ts(S$b,"learning-journey-quiz-view-model",{props:{data:_.VG}});var T$b=_.Rr(function(a){var b=_.Pl();_.Zu(b,function(){return a.data().rendererContext});
var c=_.Or(a,{palette:void 0,isLastItem:!1}),d=c.palette,e=c.isLastItem,g=function(){return a.data().isHighlighted},k=function(){var r;
return q2a((r=d())==null?void 0:r.iconDisabledColor)},m=function(){var r;
return q2a((r=d())==null?void 0:r.primaryTitleColor)},n=function(){var r;
return q2a((r=d())==null?void 0:r.secondaryTitleColor)};
c={};return _.q("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:b},_.q(_.Hu,{data:function(){return a.data().thumbnail}},{thumbnailViewModel:rL}),_.q("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.q("div",{class:_.et("ytMacroMarkerListItemViewModelTimeDescription",(c.ytMacroMarkerListItemViewModelHighlighted=g,c)),
style:_.ot({"background-color":function(){return g()?m():k()},
color:function(){return g()?"":n()}})},_.q(_.tt,{text:function(){return a.data().timestamp}})),_.q("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.ot({"background-color":function(){return e()?"transparent":k()}})}),_.q("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(g()?m():n())}},_.q(_.tt,{text:function(){return a.data().title}}))))},"sc");_.FQ=_.Rr(function(a){function b(Mb){I("transform:translateX("+(_.Fi("HTML_DIR")==="rtl"?"":"-")+Mb+"px)")}
function c(Mb){return Math.min(Math.max(Mb,0),J()-aa())}
function d(){var Mb=V()+ya();return e()?(Math.round(aa()/Mb)||1)*Mb:0}
var e=function(){return a.data().items||[]},g=function(){return a.data().previousButton},k=function(){return a.data().nextButton},m=function(){var Mb,ub;
return(ub=(Mb=a.disableArrows)==null?void 0:Mb.call(a))!=null?ub:!1},n=function(){var Mb;
return!((Mb=a.forceNarrowLayout)==null||!Mb.call(a))},r=_.Pl(),t=_.Pl(),u=_.h(_.ih(0,void 0,"yngx7d")),x=u.next().value,A=u.next().value;
u=_.h(_.ih(0,void 0,"rUOyGb"));var C=u.next().value,F=u.next().value,J=C;C=_.h(_.ih("",void 0,"jv2kWc"));u=C.next().value;var I=C.next().value;C=_.h(_.ih(0,void 0,"Xb0f0d"));var R=C.next().value,da=C.next().value,V=R;C=_.h(_.ih(0,void 0,"pt5wQ"));R=C.next().value;var fa=C.next().value,aa=R;C=_.h(_.ih(!1,void 0,"FfPefe"));var ma=C.next().value,Ba=C.next().value;C=_.h(_.ih(0,void 0,"kB5mhb"));R=C.next().value;var Ca=C.next().value,ya=R;C=_.h(_.ih(0,void 0,"dnDmUd"));var Ia=C.next().value,db=C.next().value,
lb=function(){var Mb,ub=(Mb=a.data())==null?void 0:Mb.responsiveContainerConfiguration,Db,Wc;return ub?NZa(ub==null?void 0:ub.responsiveSize):(Wc=(Db=a.sizing)==null?void 0:Db.call(a))!=null?Wc:"STANDARD"};
C=_.ph(function(){return!m()&&x()>0},void 0,"ZIGxke");
R=_.ph(function(){return!m()&&x()<J()-aa()},void 0,"OJzhRd");
var Ua=function(){A(c(x()-d()));b(x())},Vb=function(){A(c(x()+d()));
b(x())},rb=function(){r.value!==null&&yc()},sb;
_.wi(function(){yc();window.ResizeObserver?(sb=new ResizeObserver(_.Iy(rb,0)),sb.observe(r.value)):window.addEventListener("resize",rb)});
_.zh(function(){if(window.ResizeObserver){var Mb;(Mb=sb)==null||Mb.disconnect()}else window.removeEventListener("resize",rb)});
var yc=function(){var Mb=r.value.clientWidth,ub=a.includeMargin!==void 0?a.includeMargin():!1,Db;var Wc=a.hasPeek!==void 0?a.hasPeek():!((Db=a.data())==null||!Db.hasPeek);Mb=_.hv({containerWidth:Mb,hasPeek:Wc,sizing:lb(),marginSettings:ub?n()?4:1:0});Ca(Mb.gutter);db(Mb.margin);da(Mb.itemWidth);Ba(Mb.maxContainerWidth<528||n());fa(Mb.maxContainerWidth);e()&&F((Mb.itemWidth+Mb.gutter)*e().length-Mb.gutter)};
return _.q("horizontal-shelf-view-model",{class:_.et("ytwHorizontalShelfViewModelHost",a.className),el:r},_.q(_.qi,{cond:function(){return a.data().header},
then:function(){return _.q("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.ot({width:function(){return aa()+"px"},
padding:function(){return"0 "+Ia()+"px"}})},_.q(_.Hu,{data:function(){return a.data().header}},{sectionHeaderViewModel:function(Mb){return _.q(_.fQ,{data:Mb.data,
disableHorizontalPadding:!0,forceSmallLayout:ma,useResponsiveLayout:!0})}}))}}),_.q("div",{class:"ytwHorizontalShelfViewModelOuterContainer"},_.q("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.ot({width:function(){return aa()+"px"},
padding:function(){return"0 "+Ia()+"px"},
overflow:function(){return m()?"auto":"hidden"}})},_.q("div",{class:"ytwHorizontalShelfViewModelItems",
el:t,style:u},_.q(_.Hu,{data:e},{macroMarkerListItemViewModel:function(Mb,ub){return _.q("div",{style:_.ot({width:function(){return V()+"px"},
"margin-right":function(){return(ub()===e().length-1?0:ya())+"px"}})},_.q(T$b,{data:Mb.data,
palette:_.Nr(a.palette),isLastItem:function(){return ub()===e().length-1}}))},
lockupViewModel:function(Mb,ub){var Db=Mb.data;return _.q("div",{style:_.ot({width:function(){return V()+"px"},
"margin-right":function(){return(ub()===e().length-1?0:ya())+"px"}})},_.q(zL,{data:Db,
containerType:4,sizing:lb,protectBackground:a.protectBackground,thumbnailFixedWidth:function(){return r2a(Db())+"px"},
thumbnailTargetWidth:function(){return r2a(Db())}}))}}))),_.q(_.qi,{cond:C,
then:function(){return _.q("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.q(_.Hu,{data:g},{buttonViewModel:function(Mb){return _.q(_.Qu,{data:Mb.data,onClick:Ua})}}))}}),_.q(_.qi,{cond:R,
then:function(){return _.q("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.q(_.Hu,{data:k},{buttonViewModel:function(Mb){return _.q(_.Qu,{data:Mb.data,onClick:Vb})}}))}})))},"tc");
_.FQ.idomCompat=!0;var U$b=_.Rr(function(a){var b=function(){return a.data().targetId||""},c=function(){var m;
return((m=a.data())==null?void 0:m.expansionEntityKey)||""},d=_.tu(_.TTa,c),e=function(){var m;
return d()?d().value===b():(m=a.data())==null?void 0:m.isExpanded},g=function(){if(e()){var m=!0;
a.onCollapse!==void 0&&(m=a.onCollapse());m&&_.Mr(_.wu("stringEntity",c(),{key:c(),value:""}))}else _.Mr(_.wu("stringEntity",c(),{key:c(),value:b()}))},k={};
return _.q("yt-accordion-item-view-model",{class:_.et("ytAccordionItemViewModelHost",a.className,(k.ytAccordionItemViewModelExpanded=function(){return e()},k.ytAccordionItemViewModelHidden=function(){var m;
return(m=a.hideIfNotExpanded)==null?void 0:m.call(a)},k.ytAccordionItemViewModelMini=function(){var m;
return(((m=a.accordionStyle)==null?void 0:m.call(a))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},k)),
"data-target-id":b},_.q("div",{class:"ytAccordionItemViewModelContainer"},_.q("div",{class:"ytAccordionItemViewModelLeftSection"},_.q(_.tt,{text:function(){return a.data().title},
className:"ytAccordionItemViewModelLabel"})),_.q("div",{class:"ytAccordionItemViewModelRightSection"},_.q(_.Hu,{data:function(){return e()?a.data().expandButton:a.data().collapseButton}},{buttonViewModel:function(m){return _.q(_.Qu,{data:m.data,
className:"ytAccordionItemViewModelToggleButton",onClick:g})}}))),_.q("div",{class:"ytAccordionItemViewModelContainer"},_.q("div",{class:"ytAccordionItemViewModelContent"},_.q(_.tt,{text:function(){return a.data().description},
className:"ytAccordionItemViewModelSubtitle"}),_.q(_.Hu,{data:function(){return a.data().content}},{horizontalShelfViewModel:function(m){return _.q(_.FQ,{data:m.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"uc");_.V$b=_.Rr(function(a){var b=_.h((0,_.B3b)(a.data)).next().value,c=function(){return a.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},d=function(){return c()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},e=_.h(_.ih(!0,void 0,"ewf0jb")),g=e.next().value,k=e.next().value,m=function(){return d()&&g()},n=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){k(!g())}}};
e={};return _.q("yt-accordion-view-model",{class:_.et("ytAccordionViewModelHost",(e.ytAccordionViewModelMinimized=function(){return m()},e)),
"data-target-id":function(){return a.data().targetId||""}},_.q(_.qi,{cond:function(){return d()||!!b().title},
then:function(){return _.q("div",{class:"ytAccordionViewModelHeader"},_.q(_.tt,{text:function(){return b().title},
className:"ytAccordionViewModelTitle"}),_.q(_.qi,{cond:d,then:function(){return _.q(vv,{data:n,iconName:function(){return m()?"chevron_down":"chevron_up"}})}}))}}),_.q("div",{class:"ytAccordionViewModelContent"},_.q(_.Hu,{data:function(){return b().contents}},{accordionItemViewModel:function(r){return _.q(U$b,{data:r.data,
className:"ytAccordionViewModelRow",accordionStyle:c,hideIfNotExpanded:m,onCollapse:function(){return d()?(k(!0),!1):!0}})}})))},"vc");_.Ts(_.V$b,"yt-accordion-view-model",{props:{data:_.VG}});_.Ts(_.Rr(function(a){var b=_.h(_.ih(!1,void 0,"iEp8Yd")),c=b.next().value,d=b.next().value;return _.q("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.q("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.q("textarea",{class:"ytLearningJourneyZeroStateTextInput",placeholder:"What do you want to learn?",rows:1}),_.q(_.Qu,{data:function(){return _.y(a.data().searchButton,_.Iu)},
className:"ytLearningJourneyZeroStateSearchButton",onClick:function(){d(!0);_.Gs(a.data().searchEndpoint||{});return!1}})),_.q("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.q(_.qi,{cond:c,
then:function(){return _.q(_.Hu,{data:function(){return a.data().loader}},{learningJourneyLoaderViewModel:function(e){return _.q(_.R$b,{data:e.data,
className:"ytLearningJourneyZeroStateLoader",shouldSkipRequest:!0})}})}})))},"wc"),"yt-learning-journey-zero-state",{props:{data:_.VG}});var W$b=_.Rr(function(a){var b=a.data;return _.q("ytvl-live-leaderboard-item-action-content-view-model",{class:_.et("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.q(_.tt,{text:function(){var c;return(c=b())==null?void 0:c.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.q(_.Hu,{data:function(){return b().actionButton}},{buttonViewModel:function(c){return _.q(_.Qu,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:c.data})}}))},"xc");var X$b=_.Rr(function(a){var b=a.data;return _.q("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.et("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.q(_.tt,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var c;return(c=b())==null?void 0:c.displayName},
ellipsisTruncate:!0}),_.q(_.Hu,{data:function(){return b().badge}},{buttonViewModel:function(c){return _.q(_.Qu,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:c.data})}}))},"yc");_.Ts(_.Rr(function(a){var b=a.data;return _.q("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.q("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.q(_.tt,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var c;return(c=b())==null?void 0:c.rank}})),_.q("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.q(_.Hu,{data:function(){return b().avatar}},{avatarViewModel:_.QK})),_.q("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.q(_.Hu,{data:function(){return b().content}},{liveLeaderboardItemChannelContentViewModel:X$b,
liveLeaderboardItemActionContentViewModel:W$b})),_.q(_.tt,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var c;return(c=b())==null?void 0:c.points}}))},"zc"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.VG}});_.Ts(_.Rr(function(a){var b=a.data;return _.q("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.q(_.tt,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var c,d;return(c=b())==null?void 0:(d=c.ranking)==null?void 0:d.rank}}),_.q("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.q(_.Hu,{data:function(){return b().avatar}},{avatarViewModel:_.QK})),_.q(_.tt,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var c,d;return(c=b())==null?void 0:(d=c.channelContent)==null?void 0:d.channelName}}),_.q(_.tt,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var c;return(c=b())==null?void 0:c.points}}))},"Ac"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.VG}});var Y$b=_.Rr(function(a){a=_.Or(a,{wrapper:!1}).wrapper;return _.q(_.qi,{cond:a,then:function(){return _.q("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.q("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.q("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Bc");
Y$b.idomCompat=!0;var Z$b=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],$$b=_.Rr(function(a){var b=a.data;var c=_.Pl(),d=_.ph(function(){return b().command},void 0,"CGDtVe");
_.wh(function(){d()&&_.Es(d(),{form:{element:c.value}})},"TMrrEb");
return _.q("div",{el:c},_.q(_.qi,{cond:function(){return b().qrCodeImage},
then:function(e){return _.q(_.Ps,{data:e,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.q(_.qi,{cond:function(){return b().spinner},
then:function(){return _.q(Y$b,null)}})}}),_.q(_.qi,{cond:function(){return b().label},
then:function(e){return _.q(_.tt,{text:e,className:"YtQrCodeRendererHostLabel"})}}),_.q(_.qi,{cond:function(){return b().labels},
then:function(e){return _.q("div",{class:"YtQrCodeRendererHostLabels"},_.q(_.ri,{each:e},function(g){return _.q(_.tt,{text:g})}))}}))},"Dc");_.Ts(_.Rr(function(a){var b=a.data;var c=_.ph(function(){return b().qrEntityKey},void 0,"joYCxd"),d=_.ph(function(){return b().deleteEntityOnDismiss},void 0,"x3yAde"),e=_.ph(function(){return b().command},void 0,"dJe1Re"),g=_.tu(sSa,c);
a=_.ph(function(){return b().style&&Z$b.includes(b().style)},void 0,"rGILzf");
var k=_.Pl();_.Yl(k,{visibilityCallback:function(m){m&&e()&&_.Es(e())},
showOption:{calledOnce:!0,state:"visible"}});_.wi(function(){_.zh(function(){d()&&c()&&_.Kr().dispatch(_.wu("qrCodeEntity",c()))})});
return _.q("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:k},_.q(_.qi,{cond:a,then:function(){return _.q(_.qi,{cond:g,then:function(m){return _.q($$b,{data:m})}})}}))},"Cc"),"yt-qr-code-renderer",{props:{data:_.VG}});var aac=_.Rr(function(a){var b=a.data;var c=a.topbarOffset;var d,e=((d=_.v().resolve(_.Xi(_.Ks)))==null?void 0:d())||!1;return _.q("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var g=b();var k,m,n=e?(k=g.config)==null?void 0:k.darkThemeBackgroundColor:(m=g.config)==null?void 0:m.lightThemeBackgroundColor;g=n?_.Cq(n):void 0;g="background-color: "+g+";";c!==void 0&&(g+="top: -"+c()+"px;");return g},
"aria-hidden":!0},_.q(_.qi,{cond:function(){var g,k,m;return!!((g=b().backgroundImageConfig)==null?0:(k=g.image)==null?0:(m=k.sources)==null?0:m.length)},
then:function(){return _.q(_.Ps,{data:function(){var g;return(g=b().backgroundImageConfig)==null?void 0:g.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.q("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+s2a(e,b().gradientColorConfig)+";"}}))},"Ec");
aac.idomCompat=!0;var bac=_.jt(t2a);_.Zl(t2a);var cac=_.Rr(function(a){var b=a.data;var c=a.isOverlay;return _.q("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.q("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.q(_.Hu,{data:function(){return b().header}},{sectionHeaderViewModel:function(d){return _.q(_.fQ,{data:d.data,
isOverlay:c})}})),_.q("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.q(_.Hu,{data:function(){return b().channelInfoButtons}},{flexibleActionsViewModel:PXb})),_.q("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.q(_.Hu,{data:function(){return b().description}},{descriptionPreviewViewModel:function(d){return _.q(bac,{data:d.data,
isOverlay:c})}})))},"Fc");
cac.idomCompat=!0;var dac=_.Rr(function(a){var b=a.data;var c={};return _.q("factoid-view-model",{class:_.et("ytwFactoidViewModelHost",(c.ytwFactoidViewModelHostOverlay=a.isOverlay,c))},_.q(_.tt,{text:function(){return b().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.q(_.tt,{text:function(){return b().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Gc");
dac.idomCompat=!0;var eac=_.Rr(function(a){var b=a.data;var c=a.isOverlay;return _.q("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.q(_.Hu,{data:function(){return b().factoids}},{factoidViewModel:function(d){return _.q(dac,{data:d.data,
isOverlay:c})}}))},"Hc");
eac.idomCompat=!0;_.fac=_.Rr(function(a){var b=a.data;var c=a.isOverlay;return _.q("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.q(_.Hu,{data:function(){return b().items}},{channelInfoViewModel:function(d){return _.q("div",{class:"ytwCourseMetadataViewModelHostItem"},_.q(cac,{data:d.data,
isOverlay:c}))},
coursePerksViewModel:function(d){return _.q("div",{class:"ytwCourseMetadataViewModelHostItem"},_.q(N$b,{data:d.data,isOverlay:c}))},
descriptionPreviewViewModel:function(d){return _.q("div",{class:"ytwCourseMetadataViewModelHostItem"},_.q(bac,{data:d.data,isOverlay:c}))},
factoidsRowViewModel:function(d){return _.q("div",{class:"ytwCourseMetadataViewModelHostItem"},_.q(eac,{data:d.data,isOverlay:c}))}}))},"Ic");var gac=_.Rr(function(a){return _.q("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.q(_.Hu,{data:function(){return a.data().content}},{courseMetadataViewModel:function(b){return _.q(_.fac,{data:b.data,
isOverlay:a.isOverlay})}}))},"Jc");var hac=_.Rr(function(a){var b=a.data;a=a.className;var c=_.Pl(),d=function(){var g;return _.Xu((g=b())==null?void 0:g.rendererContext)},e={};
e=(e["dynamic-text-view-model-wiz"]=!0,e["dynamic-text-view-model-wiz--tappable"]=function(){return d()},e);
_.Zu(c,function(){var g;return(g=b())==null?void 0:g.rendererContext});
return _.q("yt-dynamic-text-view-model",{el:c,role:function(){return d()?"link":void 0},
tabindex:function(){return d()?0:void 0},
class:_.et(a,e)},_.q("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var g,k,m;return(m=(k=_.y((g=b())==null?void 0:g.rendererContext,_.$u))==null?void 0:k.label)!=null?m:""}},_.q(_.tt,{text:function(){return b().text},
userInput:!0})))},"Kc");
hac.idomCompat=!0;_.iac=_.Rr(function(a){var b=a.data;var c=a.isPositionRelative;var d=_.Pl(),e=_.x2a("(max-width: 527.9px)"),g=function(){var k,m;return(m=(k=b())==null?void 0:k.style)!=null?m:"IMAGE_BANNER_STYLE_FULL_BLEED"};
a={};a=(a["yt-image-banner-view-model-wiz"]=!0,a["yt-image-banner-view-model-wiz--inset"]=function(){return y2a(g())},a["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.Bh(!0)&&!(c==null?0:c())},a["yt-image-banner-view-model-wiz--small-inset"]=function(){return y2a(g())&&e()},a["yt-image-banner-view-model-wiz--tappable"]=function(){var k;
return _.Bh(d==null?void 0:d.value)&&_.Xu((k=b())==null?void 0:k.rendererContext)},a);
_.Zu(d,function(){var k;return(k=b())==null?void 0:k.rendererContext});
return _.q("yt-image-banner-view-model",{el:d,class:_.et(a)},_.q(_.qi,{cond:function(){var k;return(k=b())==null?void 0:k.image},
then:function(){return _.q(_.Ps,{data:function(){return b().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.q(_.Hu,{data:function(){var k;
return(k=b())==null?void 0:k.overlays}},{thumbnailHoverOverlayViewModel:LZb}))},"Lc");
_.iac.idomCompat=!0;var Uv;Uv=_.Du({descriptionPreviewViewModel:t2a,dynamicTextViewModel:hac,contentPreviewImageViewModel:_.wL,contentMetadataViewModel:y0b,flexibleActionsViewModel:OXb,attributionViewModel:r0b,imageBannerViewModel:_.iac,decoratedAvatarViewModel:PZb,cinematicContainerViewModel:aac,flexibleContainer:gac});_.jac=_.jt(_.E2a);_.Zl(_.E2a);_.Ts(_.Rr(function(a){var b=_.h(_.ih(!1,void 0,"vVRl3b")),c=b.next().value,d=b.next().value;return _.q("yt-official-card-view-model",{class:_.et("ytOfficialCardViewModelHost",a.className),style:_.ot({"background-color":function(){var e,g=p1a((e=a.data())==null?void 0:e.backgroundColor);return g?_.Dq(g):void 0}})},_.q(_.Hu,{data:function(){return a.data().header}},{pageHeaderViewModel:function(e){return _.q(_.jac,{data:e.data,
noPadding:!0})}}),_.q(_.Hu,{data:function(){return a.data().contents}},{horizontalShelfViewModel:_.FQ}),_.q(_.qi,{cond:c,
then:function(){return _.q("div",{class:"ytOfficialCardViewModelExpandedContent"},_.q(_.Hu,{data:function(){return a.data().expandedContents}},{horizontalShelfViewModel:function(e){return _.q(_.FQ,{data:e.data,
sizing:"MINI"})}}),_.q("div",{class:"ytOfficialCardViewModelCollapseButton"},_.q(_.Hu,{data:function(){return a.data().collapseButton}},{buttonViewModel:function(e){return _.q(_.Qu,{data:e.data,
onClick:function(){d(!c())}})}})))},
else:function(){return _.q("div",{class:"ytOfficialCardViewModelExpandButton"},_.q(_.Hu,{data:function(){return a.data().expandButton}},{buttonViewModel:function(e){return _.q(_.Qu,{data:e.data,
onClick:function(){d(!c())}})}}))}}))},"Mc"),"yt-official-card-view-model",{props:{data:_.VG,
className:_.VG}});var F2a=_.Du({buttonViewModel:_.Qu});_.Zl(G2a);_.at(G2a,"ytw-search-friction-view-model",{propNames:["data"]});_.GQ=_.Rr(function(a){var b=_.Pl(),c,d=(c=_.v().resolve(_.Xi(_.Ks)))==null?void 0:c();_.wh(function(){var e=b.value;var g=new Ccb,k=new Map(g.JSC$7154_sanitizerTable.globalAttributePolicies);k.set("style",{policyAction:4});g.JSC$7154_sanitizerTable=new Ly(g.JSC$7154_sanitizerTable.allowedElements,g.JSC$7154_sanitizerTable.elementPolicies,g.JSC$7154_sanitizerTable.allowedGlobalAttributes,k,g.JSC$7154_sanitizerTable.globallyAllowedAttributePrefixes);var m=["data-time"];if(m===void 0)k=new Set(g.JSC$7154_sanitizerTable.globallyAllowedAttributePrefixes),
k.add("data-"),g.JSC$7154_sanitizerTable=new Ly(g.JSC$7154_sanitizerTable.allowedElements,g.JSC$7154_sanitizerTable.elementPolicies,g.JSC$7154_sanitizerTable.allowedGlobalAttributes,g.JSC$7154_sanitizerTable.globalAttributePolicies,k);else{k=new Set(g.JSC$7154_sanitizerTable.allowedGlobalAttributes);m=_.h(m);for(var n=m.next();!n.done;n=m.next()){n=n.value;if(n.indexOf("data-")!==0)throw Error("ta`"+n);k.add(n)}g.JSC$7154_sanitizerTable=new Ly(g.JSC$7154_sanitizerTable.allowedElements,g.JSC$7154_sanitizerTable.elementPolicies,
k,g.JSC$7154_sanitizerTable.globalAttributePolicies,g.JSC$7154_sanitizerTable.globallyAllowedAttributePrefixes)}k=new Set(g.JSC$7154_sanitizerTable.allowedGlobalAttributes);k.add("class");g.JSC$7154_sanitizerTable=new Ly(g.JSC$7154_sanitizerTable.allowedElements,g.JSC$7154_sanitizerTable.elementPolicies,k,g.JSC$7154_sanitizerTable.globalAttributePolicies,g.JSC$7154_sanitizerTable.globallyAllowedAttributePrefixes);_.$d(e,_.xcb(g.build(),I2a(a.text())));J2a(b.value)},"nNTkgb");
c={};return _.q("div",null,_.q("markdown-div",{class:_.et("ytwMarkdownDivHost",(c.ytwMarkdownDivDark=d,c.ytwMarkdownDivHostSmall=function(){var e;return((e=a.isSmallText)==null?void 0:e.call(a))||!1},c)),
el:b}))},"Nc");
_.GQ.idomCompat=!0;var kac=_.Rr(function(a){var b=a.imageData;var c=_.Nr(a.isInList,!1),d=function(){return c()?{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:52,targetHeight:52,className:"ytwGenAiRichTextViewModelContentImage"}:{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:80,targetHeight:80,className:"ytwGenAiRichTextViewModelContentImage"}};
return _.q("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.q(_.qi,{cond:function(){return b().image},
then:function(e){return _.q(_.Ps,{data:e,alt:function(){return d().alt},
contentMode:function(){return d().contentMode},
targetWidth:function(){return d().targetWidth},
targetHeight:function(){return d().targetHeight},
className:function(){return d().className}})}}),_.q("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.q("div",{class:_.et("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.q(_.tt,{text:function(){return b().title}})),_.q(_.ri,{each:function(){var e;
return(e=b().description)!=null?e:[]}},function(e){return _.q("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.q(HQ,{content:e}))})))},"Oc"),lac=_.Rr(function(a){var b=a.list;
var c=function(){var d;return(d=b().items)!=null?d:[]};
return _.q("div",{class:"ytwGenAiRichTextViewModelListContent"},_.q(_.qi,{cond:function(){return b().title},
then:function(d){return _.q("div",{class:_.et("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.q(_.tt,{text:d}))}}),_.q(_.qi,{cond:function(){return b().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.q("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.q(_.ri,{each:c},function(d){return _.q("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.q(HQ,{content:d,isInList:!0}))}))}}),_.q(_.qi,{cond:function(){return b().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.q("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.q(_.ri,{each:c},function(d){return _.q("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.q(HQ,{content:d,isInList:!0}))}))}}),_.q(_.qi,{cond:function(){return b().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.q("div",{class:"ytwGenAiRichTextViewModelImageList"},_.q(_.ri,{each:c},function(d){return _.q("div",{class:"ytwGenAiRichTextViewModelListItem"},_.q(HQ,{content:d,isInList:!0}))}))}}))},"Pc"),mac=_.Rr(function(a){var b=a.table;
return _.q("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.q("thead",null,_.q("tr",null,_.q(_.ri,{each:function(){var c,d;return(d=(c=b().header)==null?void 0:c.cells)!=null?d:[]}},function(c){return _.q("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.q(_.ri,{each:function(){return c.contents}},function(d){return _.q(HQ,{content:d})}))}))),_.q("tbody",null,_.q(_.ri,{each:function(){var c;
return(c=b().rows)!=null?c:[]}},function(c){return _.q("tr",null,_.q(_.ri,{each:function(){return c.cells}},function(d){return _.q("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.q(_.ri,{each:function(){return d.contents}},function(e){return _.q(HQ,{content:e})}))}))})))},"Qc"),HQ=_.Rr(function(a){var b=a.content;
var c=_.Nr(a.isInList,!1),d=function(){var e,g;return(g=(e=b().contentBlock)==null?void 0:e.contents)!=null?g:[]};
return _.q("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.q(_.qi,{cond:function(){return b().text},
then:function(e){return _.q(_.tt,{className:"ytwGenAiRichTextViewModelText",text:e})}}),_.q(_.qi,{cond:function(){return b().image},
then:function(e){return _.q(kac,{imageData:e,isInList:c})}}),_.q(_.qi,{cond:function(){return b().list},
then:function(e){return _.q(lac,{list:e})}}),_.q(_.qi,{cond:function(){return b().contentBlock},
then:function(){return _.q("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.q(_.ri,{each:d},function(e){return _.q(HQ,{content:e,isInList:!1})}))}}),_.q(_.qi,{cond:function(){return b().table},
then:function(e){return _.q(mac,{table:e})}}))},"Rc"),nac=_.Rr(function(a){var b={};
b=_.ht("ytwGenAiRichTextViewModelHost",(b.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.aj("search_overview_link_style")),b));return _.q("gen-ai-rich-text-view-model",{class:b},_.q(HQ,{content:function(){return a.data().content}}))},"Sc");_.Zl(K2a);_.Zl(Vv);_.oac=_.Rr(function(a){var b=a.data;var c=function(){var F;return((F=b().loadingUi)!=null?F:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},d=function(){return b().isLoading&&(c()==="UNSPECIFIED"||c()==="GHOST_CARD")},e=function(){return!b().isLoading},g=function(){return!!b().content&&!b().contents},k=function(){return!!b().contents},m=function(){return!!b().nextQueryButtons},n=function(){return b().isLoading&&c()==="INVISIBLE"},r=function(){var F,J;
return(J=(F=b().headerIcon)==null?void 0:F.iconType)!=null?J:""},t=function(){var F;
return(F=b().content)!=null?F:""},u=function(){return!!b().sourcesSection},x,A=!((x=_.v().resolve(_.Xi(_.Ks)))==null||!x()),C=_.ph(function(){var F=[],J=b().contents;
if(J)for(var I=0;I<J.length;I++){var R=_.y(J&&J[I],OEb);R&&F.push(R)}return F},void 0,"ycU97e");
_.wi(function(){b().isLoading||_.Lo("so_re",void 0,"search_overview_answer")});
return _.q("ytd-overview-answer-view-model",{class:function(){var F={};F=(F.ytdOverviewAnswerViewModelHost=!0,F.ytdOverviewAnswerViewModelDarkBackground=A&&!n(),F.ytdOverviewAnswerViewModelLightBackground=!A&&!n(),F);return _.ht(F)}},_.q(_.qi,{cond:function(){return!n()},
then:function(){return _.q(_.Wh,null,_.q("h2",null,_.q("div",{class:"ytdOverviewAnswerViewModelHeader"},_.q(_.qi,{cond:r,then:function(F){return _.q("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.q(_.qt,{icon:F}))}}),_.q("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.q("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return b().headerText}),_.q("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.q(_.tt,{text:function(){return b().headerSubtext}}))))),_.q(_.qi,
{cond:d,
then:function(){return K2a()}}),_.q(_.qi,{cond:e,
then:function(){return _.q(_.Wh,null,_.q(_.qi,{cond:g,then:function(){return _.q("div",{class:"ytdOverviewAnswerViewModelText"},_.q(_.GQ,{text:t,isSmallText:!0}))}}),_.q(_.qi,{cond:k,
then:function(){return _.q("div",{class:"ytdOverviewAnswerViewModelRichText"},_.q(_.ri,{each:C},function(F){return _.q(nac,{data:F})}))}}),_.q(_.qi,{cond:m,
then:function(){return _.q("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.q(_.Hu,{data:function(){return b().nextQueryButtons}},{buttonViewModel:function(F){return _.q(_.Qu,{data:F.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.FQ}))}}),_.q("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.q("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.q(_.qi,{cond:function(){return!!_.y(b().likeButtonViewModel,oXa)&&!!_.y(b().dislikeButtonViewModel,pXa)},
then:function(){return _.q("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.q(_.RXb,{data:function(){return _.y(b().likeButtonViewModel,oXa)},
disableIconAnimation:!0}),_.q(_.QXb,{data:function(){return _.y(b().dislikeButtonViewModel,pXa)}}))}})),_.q(_.qi,{cond:function(){var F;
return(F=b().sourcesSection)==null?void 0:F.headerText},
then:function(F){return _.q("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.q(_.tt,{text:F}))}})),_.q(_.qi,{cond:u,
then:function(){return _.q("div",{class:"ytdOverviewAnswerViewModelSources"},_.q(_.Hu,{data:function(){var F;return(F=b().sourcesSection)==null?void 0:F.sourcesShelf}},{buttonViewModel:_.Qu,
horizontalShelfViewModel:function(F){return _.q(_.FQ,{data:F.data,includeMargin:!0,hasPeek:!0})}}))}}),_.q(_.qi,{cond:function(){return b().disclaimerText},
then:function(){return _.q("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.q(_.tt,{text:function(){return b().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Tc");var pac=_.Rr(function(a){var b=a.data;var c={};return _.q("transcript-segment-view-model",{class:_.et("ytwTranscriptSegmentViewModelHost",(c.ytwTranscriptSegmentViewModelHostActive=a.active,c.ytwTranscriptSegmentViewModelHostModern=_.w("enable_timeline_view_modern_transcript")||_.w("enable_timeline_view_modern_transcript_fe"),c))},_.q(_.tt,{text:function(){var d,e,g;return(g=(d=b())==null?void 0:d.attributedText)!=null?g:{content:(e=b())==null?void 0:e.simpleText}},
linkInheritColor:!0}))},"Uc");var qac=_.Rr(function(a){var b=a.data;return _.q("div",{class:"yt-video-attributes-section-view-model__header"},_.q("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return b().headerTitle}),_.q(_.qi,{cond:function(){return b().headerSubtitle},
then:function(){return _.q("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return b().headerSubtitle})}}))},"Vc"),rac=_.Rr(function(a){function b(C){return Math.max(Math.min(C,0),r()-m())}
var c=a.data;var d=_.Pl(),e=_.Pl();a=_.h(_.ih(0,void 0,"ucDlDf"));var g=a.next().value,k=a.next().value,m=g;a=_.h(_.ih(0,void 0,"lHzSub"));g=a.next().value;var n=a.next().value,r=g;a=_.h(_.ih(0,void 0,"Q8fDIe"));var t=a.next().value,u=a.next().value;_.wi(function(){var C=function(){k(e.value.scrollWidth);n(d.value.clientWidth)};
C();if(window.ResizeObserver){var F=new ResizeObserver(C);F.observe(d.value);_.zh(function(){F.disconnect()})}});
var x=function(){u(b(t()+r()))},A=function(){u(b(t()-r()))};
return _.q("yt-video-attributes-section-view-model",null,_.q("div",{class:"yt-video-attributes-section-view-model"},_.q(_.qi,{cond:function(){return c().headerTitle},
then:function(){return _.q(qac,{data:c})}}),_.q("div",{class:_.et("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:d},_.q("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.ot({transform:function(){var C=t();_.Fi("HTML_DIR")==="rtl"&&(C*=-1);return"translateX("+C+"px)"}}),
el:e},_.q(_.Hu,{data:function(){return c().videoAttributeViewModels}},{videoAttributeViewModel:L0b}))),_.q(_.Hu,{data:function(){return c().footerButton}},{buttonViewModel:function(C){return _.q(_.Qu,{data:C.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.q(_.qi,{cond:function(){return t()<0&&c().previousButton},
then:function(){return _.q("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.q(_.Hu,{data:function(){return c().previousButton}},{buttonViewModel:function(C){return _.q(_.Qu,{data:C.data,
onClick:x})}}))}}),_.q(_.qi,{cond:function(){return t()>r()-m()&&c().nextButton},
then:function(){return _.q("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.q(_.Hu,{data:function(){return c().nextButton}},{buttonViewModel:function(C){return _.q(_.Qu,{data:C.data,
onClick:A})}}))}})))},"Wc");
rac.idomCompat=!0;var sac=_.Rr(function(a){var b=a.data;var c=a.active;var d={},e={};return _.q("timeline-item-view-model",{class:_.et("ytwTimelineItemViewModelHost",(d.ytwTimelineItemViewModelHostChapterChild=a.chapterChild,d.ytwTimelineItemViewModelModern=_.w("enable_timeline_view_modern_transcript")||_.w("enable_timeline_view_modern_transcript_fe"),d))},_.q("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.q("div",{class:_.et("ytwTimelineItemViewModelTimestamp",(e.ytwTimelineItemViewModelTimestampActive=
c,e))},function(){return b().timestamp})),_.q("div",{class:"ytwTimelineItemViewModelContentItems"},_.q(_.Hu,{data:function(){return b().contentItems}},{transcriptSegmentViewModel:function(g){return _.q(pac,{data:g.data,
active:c})},
videoAttributesSectionViewModel:rac})))},"Xc");var tac=_.Rr(function(a){var b=a.data;a={};return _.q("timeline-chapter-view-model",{class:_.et("ytwTimelineChapterViewModelHost")},_.q("div",{class:_.et("ytwTimelineChapterViewModelTitle",(a.ytwTimelineChapterViewModelModern=_.w("enable_timeline_view_modern_transcript")||_.w("enable_timeline_view_modern_transcript_fe"),a))},function(){return b().title}),_.q(_.Hu,{data:function(){return b().contents}},{timelineItemViewModel:function(c){return _.q(sac,{data:c.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(c){return _.q(rac,{data:c.data})}}))},"Yc");var uac=_.Rr(function(a){var b=a.data;var c=_.Pl(),d=_.tu(_.nSa,function(){var g;return(g=b().markersEngagementPanelSyncEntityKey)!=null?g:""}),e=function(){var g;
return((g=d())==null?void 0:g.activeItemIndex)===b().index};
a=_.lt(function(g){var k,m,n,r,t;return _.l(function(u){if(u.nextAddress==1)return g.stopPropagation(),_.aYa(_.Vu(g),c.value,["A".toString(),"BUTTON".toString()])?u.return():(k=_.Ds(b().onTap))?_.p(u,_.mu(),2):u.return();m=u.yieldResult;r=(n=_.y(k,_.Un))==null?void 0:n.startTimeSeconds;r===void 0||(t=m)!=null&&t.seekTo(r,!0);_.ue(u)})});
return _.q("macro-markers-panel-item-view-model",{class:_.et("ytwMacroMarkersPanelItemViewModelHost",{"is-active":e}),el:c,"on:click":a,tabindex:0},_.q(_.Hu,{data:function(){var g;return(g=b())==null?void 0:g.item}},{timelineChapterViewModel:function(g){return _.q(tac,{data:g.data,
active:e})},
timelineItemViewModel:function(g){return _.q(sac,{data:g.data,active:e})},
videoAttributeViewModel:L0b}))},"Zc");
uac.idomCompat=!0;_.Ts(uac,"macro-markers-panel-item-view-model",{props:{data:_.VG}});_.Ts(rac,"yt-video-attributes-section-view-model",{props:{data:_.VG}});var vac=_.Rr(function(a){var b=function(){var c,d,e;return(e=(c=a.data().leadingLogoAccessibility)==null?void 0:(d=c.accessibilityData)==null?void 0:d.label)!=null?e:""};
return _.q("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.q(_.qi,{cond:function(){return a.data().leadingLogo},
then:function(c){return _.q(_.Ps,{className:"ytwFantasySectionHeaderViewModelLogo",data:c,alt:b})}}),_.q("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.q(_.tt,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return a.data().title}}),_.q(_.tt,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return a.data().subtitle}})),_.q(_.Hu,{data:function(){return a.data().trailingButton}},{buttonViewModel:function(c){return _.q(_.Qu,{data:c.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"$c");var wac=_.Rr(function(a){var b={};b=_.et("ytwFantasyTeamViewModelHost",(b.ytwFantasyTeamViewModelCompact=function(){var e;return!((e=a.compact)==null||!e.call(a))},b.ytwFantasyTeamViewModelUser=function(){return a.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},b.ytwFantasyTeamViewModelOpponent=function(){return a.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},b));
var c=function(){var e,g,k;return(k=(e=a.data().teamLogoAccessibility)==null?void 0:(g=e.accessibilityData)==null?void 0:g.label)!=null?k:""},d=_.tu(pSa,function(){return a.data().teamEntityKey});
return _.q("ytw-fantasy-team-view-model",{class:b},_.q(_.qi,{cond:function(){return a.data().teamLogo},
then:function(e){return _.q(_.Ps,{className:"ytwFantasyTeamViewModelLogo",data:e,alt:c})}}),_.q("div",{class:"ytwFantasyTeamViewModelMetadata"},_.q("div",{class:"ytwFantasyTeamViewModelHeader"},_.q(_.tt,{className:"ytwFantasyTeamViewModelScore",
text:function(){var e;return(e=d())==null?void 0:e.score}}),_.q(_.qt,{icon:function(){var e;
return(e=d())==null?void 0:e.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.q(_.tt,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var e;return(e=d())==null?void 0:e.projectedScore}})),_.q(_.tt,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return a.data().primaryText}}),_.q(_.tt,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return a.data().secondaryText}}),_.q(_.tt,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return a.data().tertiaryText}})),_.q(_.tt,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var e;return(e=d())==null?void 0:e.score}}))},"ad");_.Ts(_.Rr(function(a){return _.q("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.q("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.q(_.Hu,{data:function(){return a.data().summaryHeader}},{fantasySectionHeaderViewModel:vac})),_.q(_.Hu,{data:function(){return a.data().userTeam}},{fantasyTeamViewModel:wac}),_.q(_.Hu,{data:function(){return a.data().opponentTeam}},{fantasyTeamViewModel:wac}))},"bd"),"fantasy-league-summary-view-model",{props:{data:_.VG}});var xac=_.Rr(function(a){var b=_.Or(a,{shape:{},useCustomTabRenderable:!1}),c=b.shape;b=b.useCustomTabRenderable;var d=a.customTabRenderable,e=function(){return c().disabled},g=function(){return c().selected},k=function(){return c().title},m=_.Pl();
a=_.lt(function(t){var u;if(!e()&&((u=c().aTagConfig)==null?0:u.onclick))c().aTagConfig.onclick(t);return!1});
var n=_.lt(function(t){if(t.key==="Enter"||t.key==="ArrowUp"||t.key==="ArrowDown")t.preventDefault(),m.value.click();return!1}),r={};
return _.q("yt-tab-shape",{class:_.et("yt-tab-shape-wiz",function(){return c().className},(r["yt-tab-shape-wiz__tab--last-tab"]=function(){return c().isLastTab},r["yt-tab-shape-wiz--host-disabled"]=e,r["yt-tab-shape-wiz--host-clickable"]=!d,r)),
role:d?void 0:"tab","aria-selected":g!=null?g:!1,"aria-disabled":e,tabindex:d?void 0:0,"on:click":a,"on:keydown":n,el:m,"tab-identifier":function(){return c().identifier},
"tab-title":k},_.q(_.qi,{cond:b,then:function(){return d()},
else:function(){var t={},u={};return _.q(_.Wh,null,_.q("div",{class:_.et("yt-tab-shape-wiz__tab",(t["yt-tab-shape-wiz__tab--tab-selected"]=g,t))},k),_.q("div",{class:_.et("yt-tab-shape-wiz__tab-bar",(u["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=g,u))}))}}))},"cd");
xac.idomCompat={callbacks:{customTabRenderable:!0}};_.zac=_.Rr(function(a){var b=a.shape;a=_.h(_.ih(48,void 0,"S7XsSd"));var c=a.next().value,d=a.next().value;a=_.h(_.ih(0,void 0,"CzMxb"));var e=a.next().value,g=a.next().value,k=function(){return b().tabs},m=_.Pl(),n=function(){var r,t;
return(t=(r=k())==null?void 0:r.findIndex(function(u){return u.selected}))!=null?t:-1};
_.wi(function(){var r=m.value.querySelectorAll("yt-tab-shape"),t=n()>-1?r[n()]:void 0;requestAnimationFrame(function(){d((t==null?void 0:t.getBoundingClientRect().width)||0)})});
_.wh(function(){var r=n();requestAnimationFrame(function(){var t=m.value.querySelectorAll("yt-tab-shape"),u;d(((u=r>-1?t[r]:void 0)==null?void 0:u.getBoundingClientRect().width)||0);for(var x=u=0;x<r;x++)u+=t[x].offsetWidth+24;_.Fi("HTML_DIR")==="rtl"&&(u=-u);g(u)})},"BW2y2e");
a={};return _.q("yt-tab-group-shape",{class:_.et("yt-tab-group-shape-wiz",(a["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return b().isOverflowHidden},a)),
el:m},_.q(_.qi,{cond:k,then:function(r){return _.q(_.Wh,null,_.q("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.q(_.ri,{each:r},function(t,u){return _.q(xac,{shape:function(){return Object.assign({},t,{isLastTab:u()===r().length-1})},
customTabRenderable:t.customTabRenderable,useCustomTabRenderable:!!t.customTabRenderable})})),_.q(yac,{width:c,
sliderOffset:e}))}}))},"dd");
_.zac.idomCompat=!0;var yac=_.Rr(function(a){var b=_.Nr(a.sliderOffset,0),c=a.width;return _.q("div",{class:"yt-tab-group-shape-wiz__slider",style:_.ot({width:function(){return c()+"px"},
transform:function(){return"translateX("+b()+"px)"}})})},"ed");var Aac=_.Rr(function(a){var b=function(){var g,k,m;return(m=(g=a.data().playerLogoAccessibility)==null?void 0:(k=g.accessibilityData)==null?void 0:k.label)!=null?m:""},c=_.tu(qSa,function(){return a.data().playerEntityKey}),d={};
d=_.et("ytwFantasyPlayerViewModelHost",(d.ytwFantasyPlayerViewModelPlaying=function(){var g;return!((g=c())==null||!g.isPlayerPlaying)},d.ytwFantasyPlayerViewModelOnField=function(){var g;
return((g=c())==null?void 0:g.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},d.ytwFantasyPlayerViewModelRedZone=function(){var g;
return((g=c())==null?void 0:g.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},d));
var e=function(){var g,k,m,n=((g=_.v().resolve(_.Xi(_.Ks)))==null?0:g())?(k=a.data().playerLogoBackgroundColor)==null?void 0:k.darkTheme:(m=a.data().playerLogoBackgroundColor)==null?void 0:m.lightTheme;return n===void 0?"":_.Dq(n)};
return _.q("ytw-fantasy-player-view-model",{class:d},_.q(_.qi,{cond:function(){return a.data().playerLogo},
then:function(g){return _.q("div",{class:"ytwFantasyPlayerViewModelLogo"},_.q("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.q(_.Ps,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.ot({"background-color":e}),data:g,alt:b})),_.q("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.q(_.qt,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.q("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.q("div",{class:"ytwFantasyPlayerViewModelHeader"},_.q(_.tt,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var g;return(g=a.data())==null?void 0:g.playerNameText}}),_.q(_.tt,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var g;return(g=a.data())==null?void 0:g.playerDescriptionText}})),_.q("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.q(_.tt,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var g;return(g=c())==null?void 0:g.gamePeriodText}}),_.q(_.tt,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var g;return(g=a.data())==null?void 0:g.opponentTeamText}}),_.q(_.tt,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var g;return(g=c())==null?void 0:g.gameStatusText}}),_.q(_.tt,{className:_.et("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var g;return(g=c())==null?void 0:g.playerStatusText}})),_.q("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.q(_.tt,{text:function(){var g;
return(g=c())==null?void 0:g.playerStatsText}}))),_.q(_.tt,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var g;return(g=c())==null?void 0:g.fantasyScore}}))},"fd");var Bac=_.Rr(function(a){return _.q("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.q(_.qi,{cond:function(){return a.data().players},
then:function(b){return _.q(_.Hu,{data:b},{fantasyPlayerViewModel:Aac})}}))},"gd");var Cac=_.Rr(function(a){var b=_.h(_.nt(function(){var e;return(e=a.data().selectedTabIdentifierKey)!=null?e:""})),c=b.next().value,d=b.next().value;
_.pi(function(){var e;(e=a.setSelectedTabSignal)==null||e.call(a,c)});
return _.q("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.q("div",{class:"ytTabbedViewModelTabGroup"},_.q(_.zac,{shape:function(){var e=a.data(),g=[],k={tabs:g};if(!e.tabs)return k;e=_.h(e.tabs);for(var m=e.next(),n={};!m.done;n={tabViewModel:void 0},m=e.next())if(n.tabViewModel=_.y(m.value,JFb),n.tabViewModel){var r=m=void 0;g.push({aTagConfig:{onclick:function(t){return function(){var u;d((u=t.tabViewModel.tabIdentifier)!=null?u:"")}}(n)},
identifier:n.tabViewModel.tabIdentifier,selected:c()===n.tabViewModel.tabIdentifier,title:(r=(m=n.tabViewModel.title)==null?void 0:m.content)!=null?r:""})}return k}})),_.q(_.Hu,{data:function(){var e,g=_.h((e=a.data().tabs)!=null?e:[]);
for(e=g.next();!e.done;e=g.next())if((e=_.y(e.value,JFb))&&e.tabIdentifier===c())return e.content}},{fantasyRosterViewModel:Bac}))},"hd");_.Ts(_.Rr(function(a){var b=_.h(L2a()),c=b.next().value,d=b.next().value;return _.q("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.q(_.tt,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return a.data().title}}),_.q(_.qi,{cond:function(){return a.data().tabbedViewModel},
then:function(e){return _.q(_.Hu,{data:e},{tabbedViewModel:function(g){return _.q(Cac,{data:g.data,setSelectedTabSignal:d})}})}}),_.q(_.qi,{cond:function(){var e,g=(e=_.y(a.data().tabbedViewModel,KFb))==null?void 0:e.tabs;
e=_.y(g==null?void 0:g[0],JFb);g=_.y(g==null?void 0:g[1],JFb);var k=e==null?void 0:e.tabIdentifier;if(c()===k){var m,n;if(!((m=_.y(e==null?void 0:e.content,ZAb))==null?0:(n=m.players)==null?0:n.length))return a.data().noUserTeamPlayersText}else{var r,t;if(!((r=_.y(g==null?void 0:g.content,ZAb))==null?0:(t=r.players)==null?0:t.length))return a.data().noOpponentTeamPlayersText}},
then:function(e){return _.q(_.tt,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:e})}}))},"id"),"ytw-fantasy-matchup-view-model",{props:{data:_.VG}});_.Ts(_.Rr(function(a){return _.q("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.q(_.tt,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return a.data().title}}),_.q(_.qi,{cond:function(){return a.data().matchupTeamPairs},
then:function(b){return _.q(_.ri,{each:b,keyBy:"INDEX"},function(c){return _.q("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.q(_.Hu,{data:function(){return[c().firstTeam,c().secondTeam]}},{fantasyTeamViewModel:function(d){return _.q(wac,{data:d.data,
compact:!0})}}))})}}))},"jd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.VG}});_.Ts(_.Rr(function(a){var b=function(){var e,g,k;return(k=(e=a.data().userLogoAccessibility)==null?void 0:(g=e.accessibilityData)==null?void 0:g.label)!=null?k:""},c=function(){var e,g,k;
return(k=(e=a.data().opponentLogoAccessibility)==null?void 0:(g=e.accessibilityData)==null?void 0:g.label)!=null?k:""},d=_.tu(oSa,function(){return a.data().entityKey});
return _.q("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.q("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.q(_.qi,{cond:function(){return a.data().userLogo},
then:function(e){return _.q(_.Ps,{className:"ytwFantasyWinProbabilityViewModelLogo",data:e,alt:b})}}),_.q("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.q(_.tt,{text:function(){return a.data().title}})),_.q(_.qi,{cond:function(){return a.data().opponentLogo},
then:function(e){return _.q(_.Ps,{className:"ytwFantasyWinProbabilityViewModelLogo",data:e,alt:c})}})),_.q("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.q("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.q(_.tt,{text:function(){var e;
return(e=d())==null?void 0:e.userWinNumberLabel}})),_.q("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.q("div",{class:_.et("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.ot({flex:function(){var e,g;return(g=(e=d())==null?void 0:e.userWinNumber)!=null?g:50}})}),_.q("div",{class:_.et("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.ot({flex:function(){var e,g;return(g=(e=d())==null?void 0:e.opponentWinNumber)!=null?g:50}})})),_.q("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.q(_.tt,{text:function(){var e;
return(e=d())==null?void 0:e.opponentWinNumberLabel}}))))},"kd"),"fantasy-win-probability-view-model",{props:{data:_.VG}});_.Ft("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var Dac=function(){var a=_.P.apply(this,arguments)||this;a.darkerPanels=_.w("web_watch_darker_panels");a.commentsHidePanelButton=!1;a.isWatchGrid=!1;a.continuationShowButton=!1;a.isSearch=!1;a.isConstrainedList=!1;a.isWatch=!1;a.eligibleToSwitchToGrid=!1;a.epRestyle=!1;a.isCarouselInFeed=!0;a.topSpacingZero=!1;a.continuationIsInitialLoad=!0;a.enableSqueezebackPanels=_.w("web_shorts_enable_squeezeback_panels");a.enableAnchoredPanel=_.w("desktop_shorts_v2_anchored_panel");a.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation",
"yt-item-section-replace-action":"handleYtItemSectionReplace"};a.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return a};
_.z(Dac,_.P);_.f=Dac.prototype;_.f.updateLockupContainerTypes=function(a){if(this.eligibleToSwitchToGrid){var b;(b=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||b.forEach(function(c){c.containerType=a})}};
_.f.getItemsPath=function(){return"data.contents"};
_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.f.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",
properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:"ytd-channel-featured-content-renderer",channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",
chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",
compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",
emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",
feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",
handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",
labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:"yt-section-header-view-model",settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},
learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.w("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.w("kevlar_low_priority_continuation")}}};
_.f.created=function(){this.JSC$14281_cachedViewportHeight=_.Fi("initialInnerHeight")||window.innerHeight};
_.f.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var a=_.E(this.hostElement).querySelector("ytd-comments-header-renderer");a&&(a.hidePanelButton=this.commentsHidePanelButton)}};
_.f.onRetrieveLocation=function(a,b){this.containsComments()&&(this.firstCommentsLoaded=b.hasComments=!0)};
_.f.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.f.onLoadReloadContinuation=function(a,b){var c=this;a.stopPropagation();this.isReloading=!0;_.io(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(d){var e=_.v().resolve(_.xq);d=b(d);e.postData(d).then(function(g){c.onReloadContinuationData(g)})}})};
_.f.onReloadContinuationData=function(a){if(a=this.get("response.continuationContents.itemSectionContinuation",a)||this.get("response.contents.itemSectionRenderer",a)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",a)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",a))this.set("data.contents",a.contents||a.results),a.header&&this.set("data.header",a.header),this.set("data.continuations",
a.continuations||[]);this.isReloading=!1};
_.f.computeContentsClass=function(a){return a?"reloading":""};
_.f.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.f.computeSectionIdentifier=function(a){return a==null?void 0:a.sectionIdentifier};
_.f.computeFitContainer=function(a){return(a==null?void 0:a.sectionIdentifier)==="youchat-item-section"};
_.f.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.w("kevlar_disable_comments_auto_load")};
_.f.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.f.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.f.computeHasDestinationShelfRenderer=function(a){var b,c;return!!(a==null?0:(b=a.contents)==null?0:(c=b[0])==null?0:c.destinationShelfRenderer)};
_.f.computeHasSectionGroupViewModel=function(a){var b,c;return!!(a==null?0:(b=a.contents)==null?0:(c=b[0])==null?0:c.sectionGroupViewModel)};
_.f.computeStaticCommentsHeader=function(a){return a&&this.containsComments()};
_.f.computeEpRestyle=function(a){return _.w("web_ep_restyling")&&a&&this.containsComments()};
_.f.computeIsContinuationCommentSection=function(a){return(a==null?void 0:a.targetId)==="shorts-engagement-panel-comments-section"||(a==null?void 0:a.targetId)==="comments-section"};
_.f.computeSuppressPaddingDisclaimer=function(){var a,b,c,d;return!!((a=this.data)==null?0:(b=a.contents)==null?0:(c=b[0])==null?0:(d=c.productListHeaderRenderer)==null?0:d.suppressPaddingDisclaimer)};
_.f.computeHeaderStyle=function(a){switch(a==null?void 0:a.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.f.dataChanged=function(){this.firstCommentsLoaded=!1};
_.f.observeDataContentsLength=function(){var a,b;((a=this.data)==null?0:(b=a.contents)==null?0:b.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.f.onYtDismissibleItemDismissedChange=function(a){this._setItemDismissed(a.type==="yt-dismissible-item-dismissed")};
_.f.triggerContinuations=function(){for(var a=_.E(this.hostElement).querySelector("#continuations").children,b=0;b<a.length;b++)a[b].trigger()};
_.f.triggerInitialContinuations=function(){for(var a=_.E(this.hostElement).querySelector("#continuations").children,b=0;b<a.length;b++)a[b].triggerIfNotPreviouslyTriggered()};
_.f.handleYtItemSectionContinuation=function(a,b){var c;b&&((c=this.data)==null?void 0:c.sectionIdentifier)!==b||(this.set("data.continuations",[a]),this.triggerContinuations())};
_.f.handleYtItemSectionReplace=function(a,b){var c;b&&((c=this.data)==null?void 0:c.sectionIdentifier)!==b||(this.set("data.contents",a),this.set("data.continuations",[]))};
_.f.computeUseHeightHack=function(a){return a&&!_.w("kevlar_disable_height_hack")};
_.f.computeTopSpacingZero=function(a){return a};
_.f.continuationShowButtonChanged=function(){var a=_.E(this.hostElement).querySelector("ytd-continuation-item-renderer");a&&(a.showButton=this.continuationShowButton)};
_.f.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.WH("data-changed",this.data))};
_.Um.Object.defineProperties(Dac.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.w("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return!!((a=this.data)==null?0:(b=a.contents)==null?0:(c=b[0])==null?0:c.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d,e,g,k;return!!((a=this.data)==null?0:(b=a.contents)==null?0:(c=b[0])==null?0:(d=c.shelfRenderer)==null?0:(e=d.content)==null?0:(g=e.gridRenderer)==null?0:(k=g.targetId)==null?0:k.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return!!((a=this.data)==null?0:(b=a.contents)==null?0:(c=b[0])==null?0:c.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return!!((a=this.data)==null?0:(b=a.contents)==null?0:(c=b[0])==null?0:c.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.aj("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.w("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.w("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14281_cachedViewportHeight-130)/150)},
set:function(){}}});
var IQ=Dac;IQ.prototype.dataChangedForBinding=IQ.prototype.dataChangedForBinding;IQ.prototype.continuationShowButtonChanged=IQ.prototype.continuationShowButtonChanged;IQ.prototype.onYtDismissibleItemDismissedChange=IQ.prototype.onYtDismissibleItemDismissedChange;IQ.prototype.observeDataContentsLength=IQ.prototype.observeDataContentsLength;IQ.prototype.dataChanged=IQ.prototype.dataChanged;IQ.prototype.onServiceRequestCompleted=IQ.prototype.onServiceRequestCompleted;
IQ.prototype.onLoadReloadContinuation=IQ.prototype.onLoadReloadContinuation;IQ.prototype.onRetrieveLocation=IQ.prototype.onRetrieveLocation;IQ.prototype.commentsHidePanelButtonChanged=IQ.prototype.commentsHidePanelButtonChanged;IQ.prototype.updateLockupContainerTypes=IQ.prototype.updateLockupContainerTypes;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],IQ.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],IQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],IQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.kJ.YtLazyListBehavior),_.W("design:type",Object)],IQ.prototype,"ytLazyListBehavior",void 0);_.U([_.H(_.XM.YtNextContinuationBehavior),_.W("design:type",Object)],IQ.prototype,"ytNextContinuationBehavior",void 0);
_.U([_.H(_.WM),_.W("design:type",Object)],IQ.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],IQ.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],IQ.prototype,"ytdReduxBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],IQ.prototype,"darkerPanels",void 0);_.U([_.O(),_.W("design:type",Object)],IQ.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Boolean)],IQ.prototype,"engagementPanel",void 0);_.U([_.O(),_.W("design:type",Object)],IQ.prototype,"commentsHidePanelButton",void 0);_.U([_.O(),_.W("design:type",Object)],IQ.prototype,"isWatchGrid",void 0);_.U([_.O(),_.W("design:type",Object)],IQ.prototype,"continuationShowButton",void 0);_.U([_.O({computed:"computeIsContinuationCommentSection(data)"}),_.W("design:type",Boolean)],IQ.prototype,"continuationIsCommentsSection",void 0);
_.U([_.O({value:!0}),_.W("design:type",Boolean)],IQ.prototype,"autoFill",void 0);_.U([_.O(),_.W("design:type",Boolean)],IQ.prototype,"continuationDisablePrescanVisibility",void 0);_.U([_.O(),_.W("design:type",Boolean)],IQ.prototype,"isReloading",void 0);_.U([_.O(),_.W("design:type",Object)],IQ.prototype,"isSearch",void 0);_.U([_.O(),_.W("design:type",Object)],IQ.prototype,"isConstrainedList",void 0);_.U([_.O(),_.W("design:type",Object)],IQ.prototype,"isWatch",void 0);
_.U([_.O(),_.W("design:type",Object)],IQ.prototype,"eligibleToSwitchToGrid",void 0);_.U([_.O({selector:_.Su}),_.W("design:type",Object)],IQ.prototype,"isGridViewEnabled",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.W("design:type",Object)],IQ.prototype,"epRestyle",void 0);_.U([_.K("isWatch"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],IQ.prototype,"hideShortsShelfHeader",null);
_.U([_.K("isSearch","isWatch"),_.W("design:type",String),_.W("design:paramtypes",[])],IQ.prototype,"thumbnailWidth",null);_.U([_.K("isSearch","isWatch"),_.W("design:type",String),_.W("design:paramtypes",[])],IQ.prototype,"sizing",null);_.U([_.K("isWatch","isGridViewEnabled","data"),_.O({reflectToAttribute:!0}),_.W("design:type",Number),_.W("design:paramtypes",[])],IQ.prototype,"lockupContainerType",null);
_.U([_.N("lockupContainerType","data"),_.W("design:type",Function),_.W("design:paramtypes",[Number]),_.W("design:returntype")],IQ.prototype,"updateLockupContainerTypes",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],IQ.prototype,"pageSubtype",void 0);_.U([_.O({computed:"computeContainerWidth()"}),_.W("design:type",Number)],IQ.prototype,"containerWidth",void 0);_.U([_.O(),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],IQ.prototype,"isPlaylist",null);
_.U([_.O(),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],IQ.prototype,"isClipList",null);_.U([_.O(),_.W("design:type",Object)],IQ.prototype,"isCarouselInFeed",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],IQ.prototype,"isPlaylistVideoContainer",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],IQ.prototype,"isSearchFrictionPage",null);
_.U([_.O({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.W("design:type",Boolean)],IQ.prototype,"useHeightHack",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.W("design:type",Object)],IQ.prototype,"topSpacingZero",void 0);_.U([_.O({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.W("design:type",Boolean)],IQ.prototype,"showButton",void 0);
_.U([_.O(),_.W("design:type",Boolean)],IQ.prototype,"firstCommentsLoaded",void 0);_.U([_.O(),_.W("design:type",Object)],IQ.prototype,"continuationIsInitialLoad",void 0);_.U([_.O(),_.W("design:type",Boolean)],IQ.prototype,"isSearchDova",void 0);_.U([_.O({reflectToAttribute:!0,readOnly:!0}),_.W("design:type",Boolean)],IQ.prototype,"itemDismissed",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.W("design:type",String)],IQ.prototype,"sectionIdentifier",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.W("design:type",String)],IQ.prototype,"fitContainer",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.W("design:type",Boolean)],IQ.prototype,"hasDestinationShelfRenderer",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.W("design:type",Boolean)],IQ.prototype,"staticCommentsHeader",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],IQ.prototype,"enableSqueezebackPanels",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],IQ.prototype,"enableAnchoredPanel",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.W("design:type",Boolean)],IQ.prototype,"hasSectionGroupViewModel",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.W("design:type",Boolean)],IQ.prototype,"suppressDisclaimerSeparator",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.W("design:type",String)],IQ.prototype,"headerStyle",void 0);_.U([_.K("isSearch"),_.W("design:type",Object),_.W("design:paramtypes",[])],IQ.prototype,"lockupExperiments",null);
_.U([_.K("isSearch"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],IQ.prototype,"typographyBump",null);_.U([_.ir("#header"),_.W("design:type",HTMLElement)],IQ.prototype,"header",void 0);_.U([_.N("commentsHidePanelButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IQ.prototype,"commentsHidePanelButtonChanged",null);
_.U([_.M("yt-retrieve-location"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],IQ.prototype,"onRetrieveLocation",null);_.U([_.M("yt-load-reload-continuation"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Function]),_.W("design:returntype")],IQ.prototype,"onLoadReloadContinuation",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IQ.prototype,"onServiceRequestCompleted",null);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IQ.prototype,"dataChanged",null);_.U([_.mr("data.contents.length"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IQ.prototype,"observeDataContentsLength",null);
_.U([_.M("yt-dismissible-item-dismissed"),_.M("yt-dismissible-item-undismissed"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],IQ.prototype,"onYtDismissibleItemDismissedChange",null);_.U([_.N("continuationShowButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IQ.prototype,"continuationShowButtonChanged",null);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IQ.prototype,"dataChangedForBinding",null);IQ=_.U([_.Q({is:"ytd-item-section-renderer",disableElementRegistration:!0})],IQ);
_.S(IQ,"ytd-item-section-renderer",function(){if(W8b!==void 0)return W8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-item-section-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading(isReloading, continuationIsReloading)]]" class="style-scope ytd-item-section-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="continuations" class="style-scope ytd-item-section-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return W8b=a},{mode:1});var Eac;var U2a={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var a3a=_.Vp(_.vo("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var W2a={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var Fac={},$2a=(Fac[0]={title:_.ep(_.vo("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ep(_.vo("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:cp("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},Fac[1]={title:_.ep(_.vo("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:cp("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},Fac);_.Ft("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var JQ=function(){var a=_.P.apply(this,arguments)||this;a.allVideosCount=0;a.allPlaylistCount=0;a.shouldRenderDownloadsBanner=!1;a.hasOptedIntoSmartDownloads=!1;a.areAllSmartDownloadsDeleted=!1;a.smartDownloadsCompleted=!1;return a};
_.z(JQ,_.P);JQ.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
JQ.prototype.attached=function(){this.downloadsToRenderChanged()};
JQ.prototype.detached=function(){this.set("renderableData",{})};
JQ.prototype.downloadsToRenderChanged=function(){var a=_.Yp().getState().entities,b=_.Dp(a),c=_.w("kevlar_playlist_dl_page_killswitch")?tFa(a):_.rFa(a),d=_.nFa(a),e=_.yEa(b);a=_.Ep(a);this.set("renderableData",c3a(c,b,d,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,e,a))};
var KQ=JQ;KQ.prototype.downloadsToRenderChanged=KQ.prototype.downloadsToRenderChanged;_.U([_.H(_.OI),_.W("design:type",Object)],KQ.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],KQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],KQ.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],KQ.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],KQ.prototype,"renderableData",void 0);_.U([_.O({selector:_.FFa}),_.W("design:type",Object)],KQ.prototype,"allVideosCount",void 0);_.U([_.O({selector:_.d3a}),_.W("design:type",Object)],KQ.prototype,"allPlaylistCount",void 0);_.U([_.O({selector:_.MFa}),_.W("design:type",Object)],KQ.prototype,"shouldRenderDownloadsBanner",void 0);_.U([_.O({selector:_.NFa}),_.W("design:type",Object)],KQ.prototype,"hasOptedIntoSmartDownloads",void 0);
_.U([_.O({selector:_.OFa}),_.W("design:type",Object)],KQ.prototype,"areAllSmartDownloadsDeleted",void 0);_.U([_.O({selector:function(a){return _.Dp(a.entities).every(function(b){var c;return(b==null?void 0:(c=b.transferEntity)==null?void 0:c.transferState)&&!tEa.includes(b.transferEntity.transferState)})}}),
_.W("design:type",Object)],KQ.prototype,"smartDownloadsCompleted",void 0);_.U([_.mr("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],KQ.prototype,"downloadsToRenderChanged",null);KQ=_.U([_.Q({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],KQ);
_.S(KQ,"ytd-offline-item-section-renderer",function(){if(Eac!==void 0)return Eac;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-offline-item-section-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Eac=a},
{mode:1});var Gac;var Hac;var Iac=function(){return _.P.apply(this,arguments)||this};
_.z(Iac,_.P);
Iac.prototype.onDataChanged=function(){if(this.JSC$14352_lastData){var a=this.getFilterClass(this.JSC$14352_lastData.status);a&&this.hostElement.classList.remove(a)}var b;(a=this.getFilterClass((b=this.data)==null?void 0:b.status))&&this.hostElement.classList.add(a);a==="selected"?_.E(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.E(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");a==="disabled"?_.E(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.E(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14352_lastData=this.data};
Iac.prototype.getFilterClass=function(a){switch(a){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
var LQ=Iac;LQ.prototype.onDataChanged=LQ.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],LQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],LQ.prototype,"data",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LQ.prototype,"onDataChanged",null);LQ=_.U([_.Q({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],LQ);
_.S(LQ,"ytd-search-filter-renderer",function(){if(Hac!==void 0)return Hac;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-search-filter-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<div id="label" title="[[data.tooltip]]" class="style-scope ytd-search-filter-renderer">\n    <yt-formatted-string text="[[data.label]]" class="style-scope ytd-search-filter-renderer"></yt-formatted-string>\n    <yt-icon id="dismiss-x" hidden="[[!data.navigationEndpoint]]" icon="yt-icons:dismissal" class="style-scope ytd-search-filter-renderer">\n    </yt-icon>\n  </div>\n</a>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Hac=a},{mode:_.as("kevlar_poly_si_batch_j075")?1:2});var Jac=function(){return _.P.apply(this,arguments)||this};
_.z(Jac,_.P);var MQ=Jac;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],MQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],MQ.prototype,"data",void 0);MQ=_.U([_.Q({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],MQ);
_.S(MQ,"ytd-search-filter-group-renderer",function(){if(Gac!==void 0)return Gac;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="filter-group-name" class="style-scope ytd-search-filter-group-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-search-filter-group-renderer"></yt-formatted-string>\n</h4>\n<template is="dom-repeat" items="[[data.filters]]" class="style-scope ytd-search-filter-group-renderer">\n  <template is="dom-if" if="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    <ytd-search-filter-renderer data="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    </ytd-search-filter-renderer>\n  </template>\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Gac=a},{mode:_.as("kevlar_poly_si_batch_j075")?1:2});var Kac;var NQ=function(){return _.P.apply(this,arguments)||this};
_.z(NQ,_.P);NQ.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.wC());this.isCollapsed=!this.isCollapsed};
NQ.prototype.navigateToAboutTheseResultsPage=function(){var a=Gd("https://www.youtube.com/howyoutubeworks/product-features/search/");a?_.Td(window,a,"_blank"):_.Hi(Error("Uh"))};
NQ.prototype.dataChanged=function(){this.isCollapsed=!0};
NQ.prototype.computeShowBottomBorder=function(){var a,b,c;return!!((a=this.data)==null?0:(b=a.button)==null?0:b.toggleButtonRenderer)||!((c=this.data)==null||!c.aboutTheseResultsButton)};
var OQ=NQ;OQ.prototype.dataChanged=OQ.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],OQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],OQ.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.W("design:type",Boolean)],OQ.prototype,"showBottomBorder",void 0);_.U([_.O(),_.W("design:type",Boolean)],OQ.prototype,"renderCollapsibleMenu",void 0);
_.U([_.O(),_.W("design:type",Boolean)],OQ.prototype,"isCollapsed",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OQ.prototype,"dataChanged",null);OQ=_.U([_.Q({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],OQ);
_.S(OQ,"ytd-search-sub-menu-renderer",function(){if(Kac!==void 0)return Kac;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-menu" class="style-scope ytd-search-sub-menu-renderer">\n  <div id="container" class="style-scope ytd-search-sub-menu-renderer">\n    <ytd-toggle-button-renderer align-by-text="" data="[[data.button.toggleButtonRenderer]]" on-click="toggleFilters" class="style-scope ytd-search-sub-menu-renderer">\n    </ytd-toggle-button-renderer>\n    <template is="dom-if" if="[[data.aboutTheseResultsButton]]" class="style-scope ytd-search-sub-menu-renderer">\n      <ytd-button-renderer align-by-text="" data="[[data.aboutTheseResultsButton.buttonRenderer]]" on-click="navigateToAboutTheseResultsPage" class="style-scope ytd-search-sub-menu-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <template is="dom-if" if="[[renderCollapsibleMenu]]" class="style-scope ytd-search-sub-menu-renderer">\n    <tp-yt-iron-collapse id="collapse" opened="[[!isCollapsed]]" class="style-scope ytd-search-sub-menu-renderer">\n      <div id="collapse-content" class="style-scope ytd-search-sub-menu-renderer">\n        <template is="dom-repeat" items="[[data.groups]]" class="style-scope ytd-search-sub-menu-renderer">\n          <ytd-search-filter-group-renderer data="[[item.searchFilterGroupRenderer]]" class="style-scope ytd-search-sub-menu-renderer">\n          </ytd-search-filter-group-renderer>\n        </template>\n      </div>\n    </tp-yt-iron-collapse>\n  </template>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Kac=a},{mode:1});var Lac;var Mac=new _.jB("SECTION_LIST_RENDERER_TOKEN");var Nac;var Oac=function(){return _.P.apply(this,arguments)||this};
_.z(Oac,_.P);Oac.prototype.computeStyle=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
var PQ=Oac;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],PQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],PQ.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],PQ.prototype,"headerStyle",void 0);PQ=_.U([_.Q({is:"ytd-text-header-renderer",disableElementRegistration:!0})],PQ);
_.S(PQ,"ytd-text-header-renderer",function(){if(Nac!==void 0)return Nac;var a=document.createElement("template");_.B(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e[[getSimpleString(data.title)]]\n");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Nac=a},{mode:1});var Pac;var Qac=function(){return _.P.apply(this,arguments)||this};
_.z(Qac,_.P);var QQ=Qac;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],QQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],QQ.prototype,"data",void 0);QQ=_.U([_.Q({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],QQ);
_.S(QQ,"ytd-minor-moment-header-renderer",function(){if(Pac!==void 0)return Pac;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img src$="[[data.imageUrl]]" alt="" class="minormoment-header-img style-scope ytd-minor-moment-header-renderer">\n<yt-formatted-string id="title" respect-html-dir="" text="[[data.title]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n<yt-formatted-string id="caption" respect-html-dir="" text="[[data.caption]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Pac=a},{mode:1});var Rac;var Sac=function(){return _.P.apply(this,arguments)||this};
_.z(Sac,_.P);var RQ=Sac;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],RQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],RQ.prototype,"data",void 0);RQ=_.U([_.Q({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],RQ);
_.S(RQ,"ytd-minor-moment-setting-alert-renderer",function(){if(Rac!==void 0)return Rac;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.details]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n  <yt-formatted-string class="detail-text style-scope ytd-minor-moment-setting-alert-renderer" text="[[item]]">\n  </yt-formatted-string>\n</template>\n<yt-formatted-string id="link" text="[[data.link]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Rac=a},{mode:1});var Tac;var Uac;var Vac=function(){var a=_.P.apply(this,arguments)||this;a.booleanSettingById=!1;a.smartDownloadsEnabledVE=_.ku(128287);a.smartDownloadsDisabledVE=_.ku(128286);a.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return a};
_.z(Vac,_.P);_.f=Vac.prototype;_.f.attachSmartDownloadsSettingVes=function(){var a;this.activeVeForLogging||((a=this.data)==null?void 0:a.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.qF(_.ls(),this.smartDownloadsEnabledVE),_.qF(_.ls(),this.smartDownloadsDisabledVE))};
_.f.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.io(this.hostElement,"yt-settings-switch-ready")};
_.f.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.f.onSwitchChange=function(a){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(a=_.Sq(a).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.w("kevlar_settings_switch_resolve_command_killswitch")?_.w("web_ytd_settings_switch_renderer_command_resolver_ks")?_.oo(this.hostElement,[a]):_.v().resolve(_.Yi).resolveCommand(a,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(a)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.f.handleUpdateSettingsSwitch=function(a){(a=_.y(a,sAb))&&this.data&&this.data.id===a.id&&this.set("data.enabled",!!a.enabled)};
_.f.onToggleSettingsSwitch=function(a,b){this.data&&this.data.id===a&&this.set("data.enabled",b!=null?b:!this.data.enabled)};
_.f.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.fF.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.f.maybeLogSmartDownloadsSettingVisibility=function(){var a=_.En(),b;a&&((b=this.data)==null?void 0:b.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.Vo(a,[this.smartDownloadsEnabledVE]),_.Wo(a,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.Vo(a,[this.smartDownloadsDisabledVE]),_.Wo(a,[this.smartDownloadsEnabledVE])))};
_.f.maybeLogSmartDownloadsSettingClick=function(){var a;((a=this.data)==null?void 0:a.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.sF(_.ls(),this.activeVeForLogging)};
_.f.updateDataEnabledFromBinding=function(a){this.set("data.enabled",a.detail.value)};
_.Um.Object.defineProperties(Vac.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var a=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!a&&(a=this.ytRendererBehavior.getSimpleString(this.data.title));return a}}});
var SQ=Vac;SQ.prototype.dataChanged=SQ.prototype.dataChanged;_.U([_.H(_.OI),_.W("design:type",Object)],SQ.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],SQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],SQ.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],SQ.prototype,"ytComponentBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],SQ.prototype,"data",void 0);_.U([_.O({selector:function(a,b){if(Object.keys(a==null?void 0:a.entities).length)switch(b){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return uFa(a.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.W("design:type",Object)],SQ.prototype,"booleanSettingById",void 0);_.U([_.O(),_.W("design:type",_.Cn)],SQ.prototype,"activeVeForLogging",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],SQ.prototype,"toggleAriaLabel",null);_.U([_.mr("data"),_.mr("booleanSettingById"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SQ.prototype,"dataChanged",null);
SQ=_.U([_.Q({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],SQ);
_.S(SQ,"ytd-settings-switch-renderer",function(){if(Uac!==void 0)return Uac;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-switch-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-toggle-button id="toggle" aria-label$="[[toggleAriaLabel]]" checked="[[data.enabled]]" noink="" on-change="onSwitchChange" on-checked-changed="updateDataEnabledFromBinding" class="style-scope ytd-settings-switch-renderer">\n  <div id="toggle-container" class="style-scope ytd-settings-switch-renderer"></div>\n</tp-yt-paper-toggle-button>\n<div class="style-scope ytd-settings-switch-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  <div id="icon" hidden="[[!data.thumbnail]]" class="style-scope ytd-settings-switch-renderer">\n    <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-settings-switch-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Uac=a},{mode:1});var Wac=function(){return _.P.apply(this,arguments)||this};
_.z(Wac,_.P);Wac.prototype.configureRendererStamper=function(){return{"data.settings":{id:"settings",mapping:{settingsSwitchRenderer:{component:"ytd-settings-switch-renderer",noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{minorMomentSettingAlertRenderer:{component:"ytd-minor-moment-setting-alert-renderer",noInjection:!0}}}}};
_.Um.Object.defineProperties(Wac.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var a=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(a+=" remove-left-margin");this.data.extraBottomSpace&&(a+=" extra-bottom-space");return a}}});
var TQ=Wac;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],TQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],TQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],TQ.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],TQ.prototype,"contentsClassName",null);TQ=_.U([_.Q({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],TQ);
_.S(TQ,"ytd-minor-moment-setting-section-renderer",function(){if(Tac!==void 0)return Tac;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class$="[[contentsClassName]] style-scope ytd-minor-moment-setting-section-renderer">\n  <div id="title" hidden="[[!data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="header" hidden="[[!data.header]]" text="[[data.header]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="summary" hidden="[[!data.summary]]" text="[[data.summary]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <div id="settings" hidden="[[!data.settings]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n  <div id="alerts" hidden="[[!data.alerts]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Tac=a},{mode:1});var Xac;var Yac=function(){return _.P.apply(this,arguments)||this};
_.z(Yac,_.P);var UQ=Yac;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],UQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],UQ.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],UQ.prototype,"data",void 0);UQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],UQ);
_.S(UQ,"ytd-empty-product-details-renderer",function(){if(Xac!==void 0)return Xac;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-empty-product-details-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-empty-product-details-renderer"></yt-formatted-string>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Xac=a},{mode:1});var Zac;var $ac;var abc=function(){var a=_.P.apply(this,arguments)||this;a.expanded=!0;return a};
_.z(abc,_.P);abc.prototype.getBadgeRowClass=function(a,b,c){for(var d=_.h(this.hostElement.querySelectorAll("yt-img-shadow")),e=d.next();!e.done;e=d.next())e.value.onShow();a=a.selected;return c?a!==-1?a===b?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(a!==void 0?a:0)===b?"badge-line":"badge-hidden"};
var VQ=abc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],VQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],VQ.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],VQ.prototype,"expanded",void 0);VQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],VQ);
_.S(VQ,"ytd-sponsorships-loyalty-badges-renderer",function(){if($ac!==void 0)return $ac;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-loyalty-badges-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="description-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <yt-formatted-string class="description style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div class="badge-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <template is="dom-repeat" items="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-loyalty-badges-renderer">\n    <div class$="[[getBadgeRowClass(data, index, expanded)]] style-scope ytd-sponsorships-loyalty-badges-renderer">\n      <div class="badge-title-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-formatted-string class="badge-title style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[item.sponsorshipsLoyaltyBadgeRenderer.title]]">\n        </yt-formatted-string>\n      </div>\n      <div class="icon-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-img-shadow class="badge-icon style-scope ytd-sponsorships-loyalty-badges-renderer" thumbnail="[[item.sponsorshipsLoyaltyBadgeRenderer.icon]]">\n        </yt-img-shadow>\n      </div>\n    </div>\n  </template>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return $ac=a},{mode:1});var bbc;var cbc=function(){var a=_.P.apply(this,arguments)||this;a.expanded=!0;return a};
_.z(cbc,_.P);cbc.prototype.getContainerClasses=function(a,b){a=a?"expanded":"collapsed";b&&(a+=" item");return a};
var WQ=cbc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],WQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],WQ.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],WQ.prototype,"expanded",void 0);WQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],WQ);
_.S(WQ,"ytd-sponsorships-perk-renderer",function(){if(bbc!==void 0)return bbc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perk-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[getContainerClasses(expanded, data.title)]] style-scope ytd-sponsorships-perk-renderer">\n  <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n  <div id="expandable" hidden$="[[!expanded]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <template is="dom-if" if="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n    <template is="dom-if" if="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div id="fulfillment-instructions" class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string split-lines="1" text="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n  </div>\n  <template is="dom-if" if="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <ytd-sponsorships-loyalty-badges-renderer data="[[data.loyaltyBadges.sponsorshipsLoyaltyBadgesRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></ytd-sponsorships-loyalty-badges-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <div id="images-line" class="style-scope ytd-sponsorships-perk-renderer">\n      <yt-formatted-string id="image-description" text="[[data.imageDescription]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string>\n      <template is="dom-if" if="[[data.images]]" class="style-scope ytd-sponsorships-perk-renderer">\n        <template is="dom-repeat" items="[[data.images]]" as="image" class="style-scope ytd-sponsorships-perk-renderer">\n          <yt-img-shadow class="images style-scope ytd-sponsorships-perk-renderer" thumbnail="[[image]]"></yt-img-shadow>\n        </template>\n      </template>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.loyaltyMessage]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <yt-live-chat-membership-item-renderer data="[[data.loyaltyMessage.liveChatMembershipItemRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-live-chat-membership-item-renderer>\n  </template>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return bbc=a},{mode:1});var dbc;var ebc=function(){var a=_.P.apply(this,arguments)||this;a.expanded=!0;return a};
_.z(ebc,_.P);var XQ=ebc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],XQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],XQ.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],XQ.prototype,"expanded",void 0);XQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],XQ);
_.S(XQ,"ytd-sponsorships-perks-renderer",function(){if(dbc!==void 0)return dbc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="perks-title" hidden="[[!data.perksTitle]]" text="[[data.perksTitle]]" class="style-scope ytd-sponsorships-perks-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.perks]]" class="style-scope ytd-sponsorships-perks-renderer">\n  <div class="item style-scope ytd-sponsorships-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perks-renderer">\n    </ytd-sponsorships-perk-renderer>\n  </div>\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return dbc=a},{mode:1});var YQ=function(){var a=_.P.apply(this,arguments)||this;a.isCollapsed=!1;return a};
_.z(YQ,_.P);YQ.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
YQ.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
YQ.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var a;this.expandCollapseButton=_.y((a=this.data)==null?void 0:a.expandButton,_.RE)}else{var b;this.expandCollapseButton=_.y((b=this.data)==null?void 0:b.collapseButton,_.RE)}};
var ZQ=YQ;ZQ.prototype.updateExpandCollapseButton=ZQ.prototype.updateExpandCollapseButton;ZQ.prototype.onDataChanged=ZQ.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],ZQ.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],ZQ.prototype,"isCollapsed",void 0);_.U([_.O(),_.W("design:type",Object)],ZQ.prototype,"expandCollapseButton",void 0);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZQ.prototype,"onDataChanged",null);_.U([_.mr("data","isCollapsed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZQ.prototype,"updateExpandCollapseButton",null);ZQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],ZQ);
_.S(ZQ,"ytd-sponsorships-expandable-perks-renderer",function(){if(Zac!==void 0)return Zac;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="badged-title style-scope ytd-sponsorships-expandable-perks-renderer">\n  <yt-img-shadow thumbnail="[[data.badge]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-img-shadow>\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string class="subtitle style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n<hr class="style-scope ytd-sponsorships-expandable-perks-renderer">\n<yt-formatted-string class="expandable-heading style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.expandableHeader]]"></yt-formatted-string>\n<ytd-button-renderer class="end-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.endButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="bottom-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.bottomButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="expand-collapse-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[expandCollapseButton]]" noink="" on-click="onExpandCollapse"></ytd-button-renderer>\n\n<div class="expandable-content style-scope ytd-sponsorships-expandable-perks-renderer">\n  <template is="dom-repeat" items="[[data.expandableItems]]" as="item" class="style-scope ytd-sponsorships-expandable-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></ytd-sponsorships-perk-renderer>\n  </template>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Zac=a},{mode:1});var fbc;var gbc=function(){return _.P.apply(this,arguments)||this};
_.z(gbc,_.P);gbc.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
var $Q=gbc;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],$Q.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$Q.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],$Q.prototype,"data",void 0);$Q=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],$Q);
_.S($Q,"ytd-sponsorships-actionable-message-renderer",function(){if(fbc!==void 0)return fbc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-actionable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<button on-click="handleAction" class="style-scope ytd-sponsorships-actionable-message-renderer">\n  <yt-img-shadow id="icon" height="24" thumbnail="[[data.icon]]" width="24" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-formatted-string>\n</button>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return fbc=a},{mode:1});var hbc;var ibc=function(){return _.P.apply(this,arguments)||this};
_.z(ibc,_.P);_.f=ibc.prototype;_.f.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.f.getExpansionIcon=function(a){return a?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.f.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.f.computeMessageContainerStyle=function(a){var b=a.expandableItems?" style-clickable":"";return a.messageContainerStyle?a.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+b:"style-unspecified"+b};
_.f.isSinglePerk=function(a){return!!a.messageContainerStyle&&(a.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||a.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.f.onExpandedChanged=function(){var a=this;if(this.expanded)for(var b=_.h(this.hostElement.querySelectorAll("yt-img-shadow")),c=b.next();!c.done;c=b.next())c.value.onShow();_.Qm(this,function(){_.io(a.hostElement,"yt-refit")})};
_.f.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
var aR=ibc;aR.prototype.onDataChanged=aR.prototype.onDataChanged;aR.prototype.onExpandedChanged=aR.prototype.onExpandedChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],aR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],aR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],aR.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],aR.prototype,"expanded",void 0);
_.U([_.N("expanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aR.prototype,"onExpandedChanged",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aR.prototype,"onDataChanged",null);aR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],aR);
_.S(aR,"ytd-sponsorships-expandable-message-renderer",function(){if(hbc!==void 0)return hbc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class$="[[computeMessageContainerStyle(data)]] style-scope ytd-sponsorships-expandable-message-renderer">\n  <button id="message-container" on-tap="onToggleExpand" class="style-scope ytd-sponsorships-expandable-message-renderer">\n    <template is="dom-if" if="[[isSinglePerk(data)]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="check-icon" icon="yt-icons:check" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n    <yt-formatted-string class="text style-scope ytd-sponsorships-expandable-message-renderer" text="[[data.text]]"></yt-formatted-string>\n    <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="expand-icon" icon="[[getExpansionIcon(expanded)]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n  </button>\n  <div id="content-container" hidden="[[!expanded]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return hbc=a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var jbc;var kbc=function(){return _.P.apply(this,arguments)||this};
_.z(kbc,_.P);kbc.prototype.configureRendererStamper=function(){return{"data.endButton":{id:"end-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.bottomButton":{id:"bottom-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
kbc.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.y(this.data.endButton,_.RE).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
var bR=kbc;bR.prototype.onDataChanged=bR.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],bR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],bR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],bR.prototype,"data",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bR.prototype,"onDataChanged",null);
bR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],bR);
_.S(bR,"ytd-sponsorships-heading-renderer",function(){if(jbc!==void 0)return jbc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-heading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-heading-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  <div id="subtitle-content" hidden="[[!data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer">\n    <yt-img-shadow id="subtitle-icon" hidden="[[!data.subtitleIcon]]" thumbnail="[[data.subtitleIcon]]" class="style-scope ytd-sponsorships-heading-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  </div>\n  <div id="bottom-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n</div>\n<div id="end-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return jbc=a},{mode:1});var lbc;var mbc=function(){return _.P.apply(this,arguments)||this};
_.z(mbc,_.P);var cR=mbc;_.U([_.O(),_.W("design:type",Object)],cR.prototype,"data",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],cR.prototype,"ytRendererBehavior",void 0);cR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],cR);
_.S(cR,"ytd-sponsorships-links-renderer",function(){if(lbc!==void 0)return lbc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-links-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-sponsorships-links-renderer">\n  <yt-formatted-string class="link style-scope ytd-sponsorships-links-renderer" link-inherit-color="" text="[[item]]">\n</yt-formatted-string></template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return lbc=a},{mode:1});var nbc;var obc=function(){return _.P.apply(this,arguments)||this};
_.z(obc,_.P);_.f=obc.prototype;_.f.onDataChanged=function(){if(this.data&&this.data.expandableItems){var a;(a=_.E(this.hostElement).querySelector("tp-yt-paper-button"))==null||a.setAttribute("role","button")}else{var b;(b=_.E(this.hostElement).querySelector("tp-yt-paper-button"))==null||b.removeAttribute("role")}};
_.f.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.f.getExpansionIcon=function(a){return a?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.f.getTileClasses=function(a){return a?"tile expandable-tile":"tile"};
_.f.getButtonDisabled=function(a){return a?void 0:""};
var dR=obc;dR.prototype.onDataChanged=dR.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],dR.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],dR.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],dR.prototype,"expanded",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dR.prototype,"onDataChanged",null);
dR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],dR);
_.S(dR,"ytd-sponsorships-list-tile-renderer",function(){if(nbc!==void 0)return nbc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-list-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="tile" class="tile style-scope ytd-sponsorships-list-tile-renderer" class$="[[getTileClasses(data.expandableItems)]]" disabled$="[[getButtonDisabled(data.expandableItems)]]" noink="" on-tap="onToggleExpand">\n  <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[data.icon]]"></yt-img-shadow>\n  <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n    <yt-formatted-string class="detail style-scope ytd-sponsorships-list-tile-renderer" text="[[data.detail]]"></yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-list-tile-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </template>\n</tp-yt-paper-button>\n\n<template is="dom-if" if="[[expanded]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n  <div class="tiles-container style-scope ytd-sponsorships-list-tile-renderer">\n    <template is="dom-repeat" items="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n      <template is="dom-if" if="[[item.sponsorshipsLoyaltyBadgesRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <ytd-sponsorships-loyalty-badges-renderer class="sponsorships-loyalty-badges-renderer style-scope ytd-sponsorships-list-tile-renderer" data="[[item.sponsorshipsLoyaltyBadgesRenderer]]"></ytd-sponsorships-loyalty-badges-renderer>\n      </template>\n      <template is="dom-if" if="[[item.sponsorshipsListTileRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <div class="tile style-scope ytd-sponsorships-list-tile-renderer">\n          <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[item.sponsorshipsListTileRenderer.icon]]">\n          </yt-img-shadow>\n          <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.subtitle]]">\n            </yt-formatted-string>\n          </div>\n        </div>\n      </template>\n    </template>\n  </div>\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return nbc=a},{mode:1});var pbc;var qbc;var rbc=function(){return _.P.apply(this,arguments)||this};
_.z(rbc,_.P);rbc.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
var eR=rbc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],eR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],eR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],eR.prototype,"data",void 0);eR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],eR);
_.S(eR,"ytd-sponsorships-promotion-renderer",function(){if(qbc!==void 0)return qbc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-promotion-renderer">\n  <div id="above-button" class="style-scope ytd-sponsorships-promotion-renderer">\n    <yt-formatted-string class="above-redeem-button-text style-scope ytd-sponsorships-promotion-renderer" text="[[data.aboveRedeemButtonText]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-promotion-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n  <div id="redeem-button" class="style-scope ytd-sponsorships-promotion-renderer"></div>\n  <yt-formatted-string class="redeem-disclaimer style-scope ytd-sponsorships-promotion-renderer" split-lines="true" text="[[data.redeemDisclaimer]]"></yt-formatted-string>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return qbc=a},{mode:1});var sbc;var tbc=function(){return _.P.apply(this,arguments)||this};
_.z(tbc,_.P);tbc.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
var fR=tbc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],fR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],fR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],fR.prototype,"data",void 0);fR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],fR);
_.S(fR,"ytd-sponsorships-purchase-option-renderer",function(){if(sbc!==void 0)return sbc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-purchase-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-purchase-option-renderer">\n  <div id="purchase-info" class="style-scope ytd-sponsorships-purchase-option-renderer">\n    <div id="header" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      <yt-formatted-string class="purchase-text style-scope ytd-sponsorships-purchase-option-renderer" text="[[data.text]]"></yt-formatted-string>\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-purchase-option-renderer" split-lines="true" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div id="purchase-button" class="style-scope ytd-sponsorships-purchase-option-renderer"></div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return sbc=a},{mode:1});var ubc;var vbc;var wbc=function(){return _.P.apply(this,arguments)||this};
_.z(wbc,_.P);var xbc=wbc;_.U([_.O(),_.W("design:type",Object)],xbc.prototype,"data",void 0);xbc=_.U([_.Q({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],xbc);
_.S(xbc,"ytd-ypc-offer-promo-renderer",function(){if(vbc!==void 0)return vbc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offer-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ypc-offer-promo-renderer">\n  <yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-ypc-offer-promo-renderer"></yt-icon>\n  <div id="benefit-info" class="style-scope ytd-ypc-offer-promo-renderer">\n    <div id="header" class="style-scope ytd-ypc-offer-promo-renderer">\n      <yt-formatted-string class="title style-scope ytd-ypc-offer-promo-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </div>\n    <div id="badge-section" class="style-scope ytd-ypc-offer-promo-renderer">\n      <ytd-badge-supported-renderer id="badge" top-standalone-badge="[[data.badge]]" class="style-scope ytd-ypc-offer-promo-renderer">\n        </ytd-badge-supported-renderer>\n    <yt-formatted-string class="subtitle style-scope ytd-ypc-offer-promo-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n    </div>\n  </div>\n</div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return vbc=a},{mode:1});var ybc=function(){return _.P.apply(this,arguments)||this};
_.z(ybc,_.P);_.f=ybc.prototype;
_.f.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.expandableMessage":{id:"expandable-message",mapping:{sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.purchaseOption":{id:"purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},"data.alternativePurchaseOption":{id:"alternative-purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},
"data.offerPromoCard":{id:"offer-promo",mapping:{ypcOfferPromoRenderer:{component:"ytd-ypc-offer-promo-renderer"}}}}};
_.f.expansionCTA=function(a,b){return a&&(b?a.collapseCallToAction:a.expansionCallToAction)};
_.f.getExpansionIcon=function(a){return a?"arrow_drop_up":"arrow_drop_down"};
_.f.expansionCallToActionTap=function(){var a=this;this.expanded=!this.expanded;_.Qm(this,function(){_.io(a.hostElement,"yt-refit")})};
_.f.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var a,b=(a=this.data)==null?void 0:a.onVisible;b&&this.ytComponentBehavior.resolveCommand(b)};
_.f.computeDisplayTitle=function(a){return!(!a||this.titledisplaystatus!=="show")};
_.f.computeDisplaySeparator=function(){return!1};
_.f.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
var gR=ybc;gR.prototype.onDataChanged=gR.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],gR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],gR.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],gR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],gR.prototype,"data",void 0);
_.U([_.O({value:!1}),_.W("design:type",Boolean)],gR.prototype,"expanded",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],gR.prototype,"purchaseButtonClicked",void 0);_.U([_.O({reflectToAttribute:!0,value:"show"}),_.W("design:type",String)],gR.prototype,"titledisplaystatus",void 0);_.U([_.O({computed:"computeDisplayTitle(data.title)"}),_.W("design:type",Boolean)],gR.prototype,"displayTitle",void 0);
_.U([_.O({computed:"computeDisplaySeparator(data)"}),_.W("design:type",Boolean)],gR.prototype,"displaySeparator",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gR.prototype,"onDataChanged",null);gR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],gR);
_.S(gR,"ytd-sponsorships-tier-renderer",function(){if(ubc!==void 0)return ubc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-tier-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="title" hidden="[[!displayTitle]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n</div>\n<div id="offer-promo" hidden="[[!data.offerPromoCard]]" class="style-scope ytd-sponsorships-tier-renderer">\n</div>\n<div id="purchase-with-options" hidden="[[!data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!data.alternativePurchaseOption]]"></div>\n  <div id="alternative-purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n</div>\n<div id="default-purchase-view" hidden="[[data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="above-purchase-button" hidden="[[!data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string id="above-purchase-button-text" text="[[data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-formatted-string id="above-purchase-button-text-subtitle" class="subtitle style-scope ytd-sponsorships-tier-renderer" text="[[data.abovePurchaseButtonTextSubtitle]]"></yt-formatted-string>\n  </div>\n  <div id="premium-freebie-promo" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n  <div id="header" class="style-scope ytd-sponsorships-tier-renderer">\n    <div id="purchase-button" on-tap="onPurchaseButtonTap" class="style-scope ytd-sponsorships-tier-renderer"></div>\n    \n    <yt-formatted-string id="purchase-text" force-default-style="" hidden="[[!data.purchaseText]]" text="[[data.purchaseText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.disclaimer]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n<div id="expandable-message" class="style-scope ytd-sponsorships-tier-renderer"></div>\n<div id="content" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="perks_section" class="style-scope ytd-sponsorships-tier-renderer">\n    <ytd-sponsorships-perks-renderer id="perks" data="[[data.perks.sponsorshipsPerksRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-tier-renderer"></ytd-sponsorships-perks-renderer>\n  </div>\n  <button id="expansion_call_to_action" on-tap="expansionCallToActionTap" hidden="[[!data.expansionCallToAction]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string text="[[expansionCTA(data, expanded)]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-tier-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </button>\n</div>\n<div id="footer" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string id="bottom-disclaimer" class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.bottomDisclaimer]]">\n  </yt-formatted-string>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return ubc=a},{mode:2});var zbc=function(){return _.P.apply(this,arguments)||this};
_.z(zbc,_.P);
zbc.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"},sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"},sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.sidebar":{id:"sidebar",mapping:{sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsActionableMessageRenderer:{component:"ytd-sponsorships-actionable-message-renderer"},
sponsorshipsLinksRenderer:{component:"ytd-sponsorships-links-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
var hR=zbc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],hR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],hR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],hR.prototype,"data",void 0);hR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],hR);
_.S(hR,"ytd-sponsorships-management-renderer",function(){if(pbc!==void 0)return pbc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-management-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-renderer" class="style-scope ytd-sponsorships-management-renderer"></div>\n<div id="main-section" class="style-scope ytd-sponsorships-management-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-management-renderer"></div>\n  <div id="sidebar" class="style-scope ytd-sponsorships-management-renderer"></div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return pbc=a},{mode:1});var Abc;var Bbc=function(){return _.P.apply(this,arguments)||this};
_.z(Bbc,_.P);var iR=Bbc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],iR.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],iR.prototype,"data",void 0);iR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],iR);
_.S(iR,"ytd-open-in-native-app-view-model",function(){if(Abc!==void 0)return Abc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-open-in-native-app-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-image id="image" data="[[data.image]]" ftl-eligible="" height="162" width="200" class="style-scope ytd-open-in-native-app-view-model">\n</yt-image>\n<yt-attributed-string id="text" data="[[data.detailsText]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-attributed-string id="link" data="[[data.learnMoreLink]]" force-default-style="" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Abc=a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var Cbc;var Dbc;var Ebc=_.hx(["top-"]),Fbc=_.hx(["bottom-"]),Gbc=_.hx(["left-"]),Hbc=_.hx(["right-"]),Ibc={},Jbc=function(a,b,c){a.removeAttribute("top-"+c);a.removeAttribute("bottom-"+c);a.removeAttribute("left-"+c);a.removeAttribute("right-"+c);b&&(b.top&&_.ae([_.cf(Ebc)],a,"top-"+c,b.top),b.bottom&&_.ae([_.cf(Fbc)],a,"bottom-"+c,b.bottom),b.left&&_.ae([_.cf(Gbc)],a,"left-"+c,b.left),b.right&&_.ae([_.cf(Hbc)],a,"right-"+c,b.right))};
Ibc.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(a){var b,c=_.E((b=this.hostElement)!=null?b:this),d;b=this.cardItemBoxBehaviorMarginTargetId&&c?c.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(d=this.hostElement)!=null?d:this;Jbc(b,a,"margin")},
cardItemContainerPaddingChanged_:function(a){var b,c=_.E((b=this.hostElement)!=null?b:this),d;b=this.cardItemBoxBehaviorPaddingTargetId&&c?c.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(d=this.hostElement)!=null?d:this;Jbc(b,a,"padding")}}];var jR={CARD_ITEM_COLOR_GENERAL_BACKGROUND_A:"var(--yt-spec-general-background-a)",CARD_ITEM_COLOR_GENERAL_BACKGROUND_B:"var(--yt-spec-general-background-b)",CARD_ITEM_COLOR_BRAND_BACKGROUND_SOLID:"var(--yt-spec-brand-background-solid)",CARD_ITEM_COLOR_ERROR_BACKGROUND:"var(--yt-spec-error-background)",CARD_ITEM_COLOR_TEXT_PRIMARY:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_TEXT_SECONDARY:"var(--yt-spec-text-secondary)",CARD_ITEM_COLOR_TEXT_DISABLED:"var(--yt-spec-text-disabled)",CARD_ITEM_COLOR_CALL_TO_ACTION:"var(--yt-spec-call-to-action)",
CARD_ITEM_COLOR_ICON_INACTIVE:"var(--yt-spec-icon-inactive)",CARD_ITEM_COLOR_ICON_DISABLED:"var(--yt-spec-icon-disabled)",CARD_ITEM_COLOR_BRAND_ICON_ACTIVE:"var(--yt-spec-brand-icon-active)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-brand-icon-inactive)",CARD_ITEM_COLOR_10_PERCENT_LAYER:"var(--yt-spec-10-percent-layer)",CARD_ITEM_COLOR_TEXT_PRIMARY_INVERSE:"var(--yt-spec-text-primary-inverse)",CARD_ITEM_COLOR_ICON_ACTIVE_OTHER:"var(--yt-spec-icon-active-other)",CARD_ITEM_COLOR_THEMED_GREEN:"var(--yt-spec-themed-green)",
CARD_ITEM_COLOR_ERROR_INDICATOR:"var(--yt-spec-error-indicator)"};var Kbc;var Lbc;var Mbc=function(){return _.P.apply(this,arguments)||this};
_.z(Mbc,_.P);Mbc.prototype.textColorChanged_=function(){this.hostElement.style.color=jR[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
var kR=Mbc;kR.prototype.textColorChanged_=kR.prototype.textColorChanged_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],kR.prototype,"ytRendererBehavior",void 0);_.U([_.H(Ibc.YtCardItemBoxBehavior),_.W("design:type",Object)],kR.prototype,"ytCardItemBoxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],kR.prototype,"data",void 0);_.U([_.N("data.textColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kR.prototype,"textColorChanged_",null);
kR=_.U([_.wr({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],kR);
_.S(kR,"yt-card-item-text-renderer",function(){if(Lbc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_renderer.yt.card.item.text.renderer.css.js--\x3e<yt-formatted-string id="card-text" force-default-style="" split-lines="1" text="[[data.text]]" text-style$="[[data.style]]" class="style-scope yt-card-item-text-renderer">\n</yt-formatted-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Kbc===void 0&&(Kbc=document.createElement("template"));var d=Kbc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Lbc=a}a=Lbc;return a},{mode:2});var Nbc;var Obc;var Pbc=function(){return _.P.apply(this,arguments)||this};
_.z(Pbc,_.P);var lR=Pbc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],lR.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],lR.prototype,"data",void 0);lR=_.U([_.wr({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],lR);
_.S(lR,"yt-card-item-badge-renderer",function(){if(Obc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_badge_renderer.yt.card.item.badge.renderer.css.js--\x3e<div id="card-block" class="style-scope yt-card-item-badge-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden$="[[!data.badges]]" class="style-scope yt-card-item-badge-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" split-lines="1" text="[[data.text]]" class="style-scope yt-card-item-badge-renderer">\n  </yt-formatted-string>\n</div>\n\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Nbc===void 0&&(Nbc=document.createElement("template"));var d=Nbc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Obc=a}a=Obc;return a},{mode:2});var Qbc;var Rbc;var Sbc=function(){return _.P.apply(this,arguments)||this};
_.z(Sbc,_.P);Sbc.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
var mR=Sbc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],mR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],mR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],mR.prototype,"data",void 0);mR=_.U([_.wr({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],mR);
_.S(mR,"yt-card-item-text-collection-renderer",function(){if(Rbc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-collection-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_collection_renderer.yt.card.item.text.collection.renderer.css.js--\x3e<div id="text-renderers" text-alignment$="[[data.textAlignment]]" class="style-scope yt-card-item-text-collection-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Qbc===void 0&&(Qbc=document.createElement("template"));var d=Qbc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Rbc=a}a=Rbc;return a},{mode:2});var Tbc;var Ubc;var Vbc=function(){return _.P.apply(this,arguments)||this};
_.z(Vbc,_.P);Vbc.prototype.configureRendererStamper=function(){return{"data.textCollectionRenderer":{id:"card-item-text-collection-renderer",mapping:{cardItemTextCollectionRenderer:"yt-card-item-text-collection-renderer"}},"data.buttonRenderer":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{iconSize:"[[iconSize]]"}}}}}};
var nR=Vbc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],nR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],nR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],nR.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Number)],nR.prototype,"iconSize",void 0);nR=_.U([_.wr({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],nR);
_.S(nR,"yt-card-item-text-with-button-renderer",function(){if(Ubc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_button_renderer.yt.card.item.text.with.button.renderer.css.js--\x3e<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-button-renderer"></div>\n<div id="primary-button" aria-hidden="true" class="style-scope yt-card-item-text-with-button-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Tbc===void 0&&(Tbc=document.createElement("template"));var d=Tbc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Ubc=a}a=Ubc;return a},{mode:2});var Wbc=function(){return _.P.apply(this,arguments)||this};
_.z(Wbc,_.P);Wbc.prototype.configureRendererStamper=function(){return{"data.summaryText":{id:"summary-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer",cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer",params:{iconSize:18}}}},"data.additionalMetadataText":{id:"additional-metadata-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.price":{id:"price",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}}}};
var oR=Wbc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],oR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],oR.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],oR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],oR.prototype,"data",void 0);oR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],oR);
_.S(oR,"ytd-commerce-cart-summary-line-item-renderer",function(){if(Dbc!==void 0)return Dbc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-line-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="summary-content" class="style-scope ytd-commerce-cart-summary-line-item-renderer">\n  <div id="summary-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n  <div id="additional-metadata-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n</div>\n<div id="price" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Dbc=a},{mode:1});_.Ft("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Xbc=function(){var a=_.P.apply(this,arguments)||this;a.hidden=!1;return a};
_.z(Xbc,_.P);_.f=Xbc.prototype;_.f.configureRendererStamper=function(){return{"data.estimatedTotalLineItem":{id:"estimated-total-line-item",mapping:{commerceCartSummaryLineItemRenderer:"ytd-commerce-cart-summary-line-item-renderer"}},"data.checkoutButton":{id:"checkout-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.cartButton":{id:"cart-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.f.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.f.updateSummary=function(){var a=this.commerceCartCheckoutButtonEntity,b;if(((b=this.data)==null?0:b.cartButton)&&a.checkoutSummaryText){var c,d=Zv((c=this.data)==null?void 0:c.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+d+".cardItemTextRenderer.text",$v(a.checkoutSummaryText));if(a.checkoutDetailText){var e;c=Zv((e=this.data)==null?void 0:e.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+c+".cardItemTextRenderer.text",$v(a.checkoutDetailText))}if(a.checkoutAdditionalMetadataText){var g;
e=Zv((g=this.data)==null?void 0:g.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+e+".cardItemTextRenderer.text",$v(a.checkoutAdditionalMetadataText))}}else a.estimatedTotalPrice&&(g=Zv((d=this.data)==null?void 0:d.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+g+".cardItemTextRenderer.text",$v(a.estimatedTotalPrice)))};
_.f.updateIsHidden=function(){var a,b=(a=this.commerceCartCheckoutButtonEntity)==null?void 0:a.isHidden;b!==void 0&&(this.hidden=b)};
_.f.updateCheckoutButton=function(){var a,b=(a=this.commerceCartCheckoutButtonEntity)==null?void 0:a.isDisabled;b!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",b);var c;a=(c=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:c.innertubeCommand;a!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",a);var d;c=(d=this.commerceCartCheckoutButtonEntity)==null?void 0:d.checkoutButtonText;c!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:c})};
var pR=Xbc;pR.prototype.entityChanged=pR.prototype.entityChanged;_.U([_.H(_.OI),_.W("design:type",Object)],pR.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],pR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],pR.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],pR.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],pR.prototype,"fullWidth",void 0);_.U([_.O(),_.W("design:type",Object)],pR.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],pR.prototype,"compact",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],pR.prototype,"hidden",void 0);
_.U([_.O({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:qVa}),_.W("design:type",Object)],pR.prototype,"commerceCartCheckoutButtonEntity",void 0);_.U([_.N("commerceCartCheckoutButtonEntity","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pR.prototype,"entityChanged",null);pR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],pR);
_.S(pR,"ytd-commerce-cart-checkout-button-renderer",function(){if(Cbc!==void 0)return Cbc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-checkout-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="estimated-total-line-item" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="cart-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Cbc=a},{mode:2});var Ybc;_.Zbc={};
_.Zbc.YtTappableItemBehavior=[{properties:{tappableItemBehaviorTapEnabled:{type:Boolean,value:!1,observer:"tappableItemBehaviorOnTapEnabledChanged_"}},observers:["tappableItemBehaviorOnTapChanged_(data.onTap)"],listeners:{"yt-commerce-action-init-done":"tappableItemBehaviorOnServiceRequestFinished_","yt-service-request-error":"tappableItemBehaviorOnServiceRequestFinished_","yt-commerce-action-done":"tappableItemBehaviorOnServiceRequestFinished_"},created:function(){this.tappableItemBehaviorTargetId="";
this.tappableItemBehaviorBoundOnTappableItemKeyDown_=this.tappableItemBehaviorOnTappableItemKeyDown_.bind(this);this.tappableItemBehaviorBoundOnTappableItemTap_=this.tappableItemBehaviorOnTappableItemTap_.bind(this)},
attached:function(){this.tappableItemBehaviorGetTappableTarget_().addEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().addEventListener("click",_.gr(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.gr(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(a){!this.tappableItemBehaviorTapEnabled||a.keyCode!==13&&a.keyCode!==32||a.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var a=this.data.onTap;a.ypcGetCartEndpoint?(_.oo(this.hostElement,[a]),this.tappableItemBehaviorTapEnabled=!1):a.ypcOffersEndpoint?_.oo(this.hostElement,[a]):_.po(this.hostElement,[a],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(a){this.tappableItemBehaviorTapEnabled=!!a},
tappableItemBehaviorOnTapEnabledChanged_:function(){var a=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(a.setAttribute("tabIndex",0),a.setAttribute("role","button")):(a.removeAttribute("tabIndex"),a.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(a){a.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var $bc;var acc;var bcc=function(){return _.P.apply(this,arguments)||this};
_.z(bcc,_.P);bcc.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.Gt("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.Gt("sharingToggleButtonAndDefaultButton")}}};
var qR=bcc;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],qR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],qR.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],qR.prototype,"data",void 0);qR=_.U([_.wr({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],qR);
_.S(qR,"yt-card-item-actions-renderer",function(){if(acc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_actions_renderer.yt.card.item.actions.renderer.css.js--\x3e<div id="secondary-button-renderer" hidden$="[[!data.secondaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n<div id="primary-button-renderer" hidden$="[[!data.primaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;$bc===void 0&&($bc=document.createElement("template"));var d=$bc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);acc=a}a=acc;return a},{mode:2});var ccc;var dcc;var ecc;var fcc;var gcc;var hcc;var rR=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return a};
_.z(rR,_.P);rR.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
rR.prototype.handleDarkModeToggledAction_=function(a){this.isDarkTheme_=a};
rR.prototype.computeThemeImage_=function(a,b){if(!a||!a.imageLight)return!1;this.isCircular_=a.isCircular;a.imageWidth&&(this.hostElement.style.width=a.imageWidth+"px");a.imageHeight&&(this.hostElement.style.height=a.imageHeight+"px");a.borderWidth&&(this.image.style.borderWidth=a.borderWidth+"px",this.image.style.borderStyle="solid");a.borderColor&&(this.image.style.borderColor=_.Dq(a.borderColor));return b&&a.imageDark?a.imageDark:a.imageLight};
rR.prototype.computeThemeIcon_=function(a){var b,c;if(!(a==null?0:(b=a.themedIcon)==null?0:(c=b.icon)==null?0:c.iconType))return!1;this.icon.style.color=jR[a.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(a.imageWidth||18)+"px";this.icon.style.height=(a.imageHeight||18)+"px";return _.es(a.themedIcon.icon.iconType)};
var sR=rR;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],sR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],sR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(Ibc.YtCardItemBoxBehavior),_.W("design:type",Object)],sR.prototype,"ytCardItemBoxBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],sR.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],sR.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],sR.prototype,"fit",void 0);_.U([_.O(),_.W("design:type",Boolean)],sR.prototype,"isDarkTheme_",void 0);_.U([_.O({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.W("design:type",Object)],sR.prototype,"themeImage_",void 0);_.U([_.O({computed:"computeThemeIcon_(data)"}),_.W("design:type",Object)],sR.prototype,"themeIcon_",void 0);
_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Object)],sR.prototype,"isCircular_",void 0);_.U([_.ir("#image"),_.W("design:type",Object)],sR.prototype,"image",void 0);_.U([_.ir("#icon"),_.W("design:type",Object)],sR.prototype,"icon",void 0);sR=_.U([_.wr({is:"yt-themed-image-renderer",disableElementRegistration:!0})],sR);
_.S(sR,"yt-themed-image-renderer",function(){if(hcc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-themed-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_themed_image_renderer.yt.themed.image.renderer.css.js--\x3e<yt-img-shadow id="image" fit="[[fit]]" height="[[data.imageHeight]]" hidden="[[!themeImage_]]" thumbnail="[[themeImage_]]" width="[[data.imageWidth]]" class="style-scope yt-themed-image-renderer">\n</yt-img-shadow>\n<yt-icon id="icon" hidden="[[!themeIcon_]]" icon="[[themeIcon_]]" class="style-scope yt-themed-image-renderer">\n</yt-icon>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;gcc===void 0&&(gcc=document.createElement("template"));var d=gcc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);hcc=a}a=hcc;return a},{mode:2});var icc=function(){return _.P.apply(this,arguments)||this};
_.z(icc,_.P);icc.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"themed-image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}},"data.textCollectionRenderer":{id:"card-item-text-collection-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
icc.prototype.computeImagePlacement_=function(a){return a||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
var tR=icc;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],tR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],tR.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],tR.prototype,"data",void 0);_.U([_.O({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.W("design:type",String)],tR.prototype,"imagePlacement",void 0);
tR=_.U([_.wr({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],tR);
_.S(tR,"yt-card-item-text-with-image-renderer",function(){if(fcc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_image_renderer.yt.card.item.text.with.image.renderer.css.js--\x3e<div id="themed-image-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;ecc===void 0&&(ecc=document.createElement("template"));var d=ecc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);fcc=a}a=fcc;return a},{mode:2});var jcc=function(){return _.P.apply(this,arguments)||this};
_.z(jcc,_.P);jcc.prototype.configureRendererStamper=function(){return{"data.errorTextRenderer":{id:"error-text-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}}}};
var uR=jcc;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],uR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],uR.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],uR.prototype,"data",void 0);uR=_.U([_.wr({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],uR);
_.S(uR,"yt-card-item-error-renderer",function(){if(dcc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-error-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_error_renderer.yt.card.item.error.renderer.css.js--\x3e<div id="triangle-up-container" class="style-scope yt-card-item-error-renderer">\n  <div id="triangle-up" class="style-scope yt-card-item-error-renderer"></div>\n</div>\n<div id="error-text-renderer" class="style-scope yt-card-item-error-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;ccc===void 0&&(ccc=document.createElement("template"));var d=ccc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);dcc=a}a=dcc;return a},{mode:2});var kcc;var lcc;_.Ft("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var mcc=function(){return _.P.apply(this,arguments)||this};
_.z(mcc,_.P);_.f=mcc.prototype;
_.f.configureRendererStamper=function(){return{"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",
mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"},cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},themedImageRenderer:{component:"yt-themed-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}},"data.errorRenderer":{id:"error-renderer",mapping:{cardItemErrorRenderer:{component:"yt-card-item-error-renderer"}}},"data.headerPromoRenderer":{id:"header-promo-renderer",
mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.footerRenderer":{id:"footer-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.f.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.f.backgroundColorChanged_=function(){var a,b=(a=this.data)==null?void 0:a.backgroundColor;a=jR[b||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.E(this.hostElement).querySelector("#main-content").style.backgroundColor=a};
_.f.headerPromoBackgroundColorChanged_=function(){var a,b=(a=this.data)==null?void 0:a.headerPromoBackgroundColor;a=jR[b||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.E(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=a};
_.f.errorRendererVisibilityChanged_=function(){var a=this.isExpanded_,b;this.isErrorRendererVisible_=!((b=this.data)==null||!b.errorRenderer)&&!a};
_.f.onYtToggleButton_=function(a,b){this.isExpanded_=b.toggled};
var vR=mcc;vR.prototype.onYtToggleButton_=vR.prototype.onYtToggleButton_;vR.prototype.errorRendererVisibilityChanged_=vR.prototype.errorRendererVisibilityChanged_;vR.prototype.headerPromoBackgroundColorChanged_=vR.prototype.headerPromoBackgroundColorChanged_;vR.prototype.backgroundColorChanged_=vR.prototype.backgroundColorChanged_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],vR.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],vR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(Ibc.YtCardItemBoxBehavior),_.W("design:type",Object)],vR.prototype,"ytCardItemBoxBehavior",void 0);_.U([_.H(_.Zbc.YtTappableItemBehavior),_.W("design:type",Object)],vR.prototype,"ytTappableItemBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],vR.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],vR.prototype,"isExpanded_",void 0);
_.U([_.O({value:!1}),_.W("design:type",Boolean)],vR.prototype,"isErrorRendererVisible_",void 0);_.U([_.N("data.backgroundColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vR.prototype,"backgroundColorChanged_",null);_.U([_.N("data.headerPromoBackgroundColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vR.prototype,"headerPromoBackgroundColorChanged_",null);
_.U([_.N("data.errorRenderer","isExpanded_"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vR.prototype,"errorRendererVisibilityChanged_",null);_.U([_.M("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[Event,Object]),_.W("design:returntype")],vR.prototype,"onYtToggleButton_",null);vR=_.U([_.wr({is:"yt-card-item-renderer",disableElementRegistration:!0})],vR);
_.S(vR,"yt-card-item-renderer",function(){if(lcc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_renderer.yt.card.item.renderer.css.js--\x3e<div id="main-content" primary-container-placement$="[[data.primaryContainerPlacement]]" box-style$="[[data.cardItemBoxStyle]]" aria-label="[[data.accessibilityData.label]]" class="style-scope yt-card-item-renderer">\n  <div id="main-content-negative-margin-wrapper" content-placement$="[[data.contentPlacement]]" class="style-scope yt-card-item-renderer">\n    <div id="heading-description-container" class="style-scope yt-card-item-renderer">\n       <div id="header-promo-container" class="style-scope yt-card-item-renderer">\n          <div id="heading-renderer" hidden$="[[!data.headingRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n          <div id="header-promo-renderer" hidden$="[[!data.headerPromoRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n      </div>\n      <div id="description-renderer" hidden$="[[!data.descriptionRenderer]]" class="style-scope yt-card-item-renderer">\n      </div>\n    </div>\n    <div id="additional-info-renderer" additional-info-placement$="[[data.additionalInfoPlacement]]" hidden$="[[!data.additionalInfoRenderer]]" class="style-scope yt-card-item-renderer">\n    </div>\n    <div id="footer-renderer" hidden$="[[!data.footerRenderer]]" class="style-scope yt-card-item-renderer"></div>\n  </div>\n</div>\n<div id="error-renderer" hidden$="[[!isErrorRendererVisible_]]" class="style-scope yt-card-item-renderer"></div>\n<div id="divider" divider-style$="[[data.dividerStyle]]" hidden$="[[!data.dividerStyle]]" class="style-scope yt-card-item-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;kcc===void 0&&(kcc=document.createElement("template"));var d=kcc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);lcc=a}a=lcc;return a},{mode:2});_.Ft("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var ncc=function(){var a=_.P.apply(this,arguments)||this;a.hidden=!1;return a};
_.z(ncc,_.P);_.f=ncc.prototype;_.f.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.f.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.f.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var a,b=(a=this.commerceCartHeaderEntity)==null?void 0:a.isHidden;b!==void 0&&(this.hidden=b)}};
_.f.updateTitle=function(){var a=this.commerceCartHeaderEntity.isDisabled,b,c,d=(c=_.y((b=this.data)==null?void 0:b.item,jGb))==null?void 0:c.headingRenderer;d&&(b=Zv(d,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+b+".0.cardItemTextRenderer.textColor",a?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.f.updateSummaryText=function(){var a=this.commerceCartHeaderEntity;if(this.compact){var b,c,d=(c=_.y((b=this.data)==null?void 0:b.item,jGb))==null?void 0:c.headingRenderer;d&&(b=Zv(d,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+b+".1.cardItemTextRenderer.text",a.shortHeaderSummaryText?$v(a.shortHeaderSummaryText):a.headerSummaryText?$v(a.headerSummaryText):""))}else{var e;if(b=(e=_.y((d=this.data)==null?void 0:d.item,jGb))==null?void 0:e.additionalInfoRenderer)b=Zv(b,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+b+".text",a.headerSummaryText?$v(a.headerSummaryText):"")}};
_.f.updateCheckoutButton=function(){var a=this.commerceCartHeaderEntity,b,c,d=(c=_.y((b=this.data)==null?void 0:b.item,jGb))==null?void 0:c.additionalInfoRenderer;b=Zv(d,"buttonRenderer");var e;c=(e=this.commerceCartHeaderEntity)==null?void 0:e.isButtonDisabled;var g;e=(g=this.commerceCartHeaderEntity)==null?void 0:g.isButtonHidden;c!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+b+".buttonRenderer.isDisabled",c);e!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
e);var k;a=(k=a.checkoutButtonCommand)==null?void 0:k.innertubeCommand;a!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+b+".buttonRenderer.command",a)};
var wR=ncc;wR.prototype.entityChanged=wR.prototype.entityChanged;_.U([_.H(_.OI),_.W("design:type",Object)],wR.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],wR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],wR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],wR.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],wR.prototype,"compact",void 0);_.U([_.O({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(a,b){return _.np(a.entities,"commerceCartHeaderEntity",b)}}),
_.W("design:type",Object)],wR.prototype,"commerceCartHeaderEntity",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wR.prototype,"hidden",void 0);_.U([_.N("commerceCartHeaderEntity","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wR.prototype,"entityChanged",null);wR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],wR);
_.S(wR,"ytd-commerce-cart-header-renderer",function(){if(Ybc!==void 0)return Ybc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="item" class="style-scope ytd-commerce-cart-header-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Ybc=a},{mode:1});var occ;var pcc=_.Iy(function(a,b){var c;return(c=a.onChangeCallback)==null?void 0:c.call(a,b)},1E3),qcc=_.Rr(function(a){var b=a.data;
var c=a.iconMinus;a=a.iconPlus;var d=function(){return!!b().disabled},e=_.h(_.ih(0,void 0,"r56zNb")),g=e.next().value,k=e.next().value;
e={};e=_.et("yt-spec-quantity-incrementer-shape__icon",(e["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return d()||g()===(b().onRemoveCommand?0:1)},e));
var m={};m=_.et("yt-spec-quantity-incrementer-shape__icon",(m["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return g()>=b().maxValue||d()},m));
var n={};n=_.et("yt-spec-quantity-incrementer-shape__text",(n["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return g()>b().maxValue},n["yt-spec-quantity-incrementer-shape__text--text-disabled"]=d,n));
var r=_.lt(function(){if(g()===1){var u,x;(x=(u=b()).onRemoveCommand)==null||x.call(u)}u=g()>b().maxValue?b().maxValue:g()-1;k(u);pcc(b(),u);return!1}),t=_.lt(function(){if(g()===b().maxValue)return!1;
var u=g()+1;k(u);pcc(b(),u);return!1});
_.pi(function(){k(b().value)});
return _.q("quantity-incrementer-shape",null,_.q("div",{class:"yt-spec-quantity-incrementer-shape"},_.q("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return g()===(b().onRemoveCommand?0:1)||d()},
"aria-label":function(){return g()!==1?b().minusLabel:b().minimumReachedLabel},
"on:click":r},_.q(_.ut,{model:{circular:!0}}),_.q("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.q("div",{class:e},c()))),_.q("div",{class:n},g),_.q("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return g()>=b().maxValue||d()},
"aria-label":function(){return g()!==b().maxValue?b().plusLabel:b().maximumReachedLabel},
"on:click":t},_.q(_.ut,{model:{circular:!0}}),_.q("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.q("div",{class:m},a())))))},"ld");_.Ts(_.Rr(function(a){function b(){c().onRemoveCommand&&_.Gs(c().onRemoveCommand)}
var c=a.data;var d=_.tu(HXa,function(){return c().quantityIncrementerEntityKey});
return _.q("yt-quantity-incrementer-view-model",null,_.q(qcc,{data:function(){var e=c(),g;var k=d()?!((g=d())==null||!g.disabled):!1;var m;g=d()?(m=d())==null?void 0:m.quantity:c().quantity;return g3a(e,k,b,g)},
iconMinus:function(){return _.q(_.qt,{icon:"BAR_HORIZONTAL",className:_.ht("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.q(_.qt,{icon:"ADD",className:_.ht("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"md"),"yt-quantity-incrementer-view-model",{props:{data:_.VG}});var xR=function(){var a=_.P.apply(this,arguments)||this;a.compact=!1;a.hasQuantityIncrementer=!1;return a};
_.z(xR,_.P);xR.prototype.configureRendererStamper=function(){return{"data.picker":{id:"picker",mapping:{quantityIncrementerViewModel:"yt-quantity-incrementer-view-model",dropdownRenderer:{component:"ytd-dropdown-renderer",params:{autosize:!0,minAutosizeWidth:0,noUnderline:!0,noLabelFloat:!0,usePrimaryColor:!0}}}},"data.price":{id:"price",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}}}};
xR.prototype.computeHasQuantityIncrementer=function(){var a;return!!_.y((a=this.data)==null?void 0:a.picker,nGb)};
xR.prototype.onLabelClick=function(){var a;(a=this.dropdownEl)==null||a.open()};
var yR=xR;_.U([_.ir("ytd-dropdown-renderer"),_.W("design:type",Object)],yR.prototype,"dropdownEl",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],yR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],yR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],yR.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],yR.prototype,"quantityColor",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],yR.prototype,"compact",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.W("design:type",Object)],yR.prototype,"hasQuantityIncrementer",void 0);yR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],yR);
_.S(yR,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(occ!==void 0)return occ;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-quantity-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="picker-label" on-click="onLabelClick" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer">[[getSimpleString(data.pickerLabel)]]</div>\n<div id="picker" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n<div id="price" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return occ=a},{mode:1});var rcc;var scc;var GR=function(){return _.P.apply(this,arguments)||this};
_.z(GR,_.P);GR.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
GR.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
GR.prototype.updateTitle=function(){var a=this.disabledCartItemEntity;a.disableActionName&&this.set("data.title",$v(a.disableActionName))};
GR.prototype.updateButton=function(){var a,b=(a=this.disabledCartItemEntity.undoCommand)==null?void 0:a.innertubeCommand;b!==void 0&&(this.set("data.actionButton.buttonRenderer.command",b),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
var HR=GR;HR.prototype.entityChanged=HR.prototype.entityChanged;_.U([_.H(_.OI),_.W("design:type",Object)],HR.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],HR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],HR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(a,b){return _.np(a.entities,"disabledCartItemEntity",b)}}),
_.W("design:type",Object)],HR.prototype,"disabledCartItemEntity",void 0);_.U([_.O(),_.W("design:type",Object)],HR.prototype,"data",void 0);_.U([_.N("disabledCartItemEntity","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],HR.prototype,"entityChanged",null);HR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],HR);
_.S(HR,"ytd-disabled-cart-item-renderer",function(){if(scc!==void 0)return scc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-disabled-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope ytd-disabled-cart-item-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n  <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n</div>\n<div id="action-button" class="style-scope ytd-disabled-cart-item-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return scc=a},{mode:1});_.Ft("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var tcc=function(){var a=_.P.apply(this,arguments)||this;a.compact=!1;a.hidden=!1;a.errorHidden=!1;a.noOnTap=!1;return a};
_.z(tcc,_.P);_.f=tcc.prototype;
_.f.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.textMetadata":{id:"text-metadata",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.merchantUpdateText":{id:"merchant-update-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.cartItemNotification":{id:"cart-item-notification",mapping:{cardItemTextWithImageRenderer:"yt-card-item-text-with-image-renderer"}},"data.cardItemActions":{id:"cart-item-actions",
mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{disableTextTransform:"[[compact]]"}}},events:!0},"data.quantityPicker":{id:"quantity-picker",mapping:{commerceCartItemQuantityPickerRenderer:{component:"ytd-commerce-cart-item-quantity-picker-renderer",properties:{compact:"[[compact]]",quantityColor:"[[commerceCartItemEntity.quantityColor]]"}}}},"data.disabledCartItem":{id:"disabled-cart-item",mapping:{disabledCartItemRenderer:"ytd-disabled-cart-item-renderer"}}}};
_.f.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.f.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var a=this.firstButtonElement;a.alignByText=!0;a.iconAlignByText=!0}};
_.f.computeNoOnTap=function(a){return!a};
_.f.updateQuantityColor=function(){if(this.pickerElement){var a,b=(a=this.commerceCartItemEntity)==null?void 0:a.quantityColor;this.pickerElement.quantityColor=b}};
_.f.updateTotalPriceColor=function(){var a,b=(a=this.commerceCartItemEntity)==null?void 0:a.totalPriceColor;if(b){var c;a=_.y((c=this.data)==null?void 0:c.quantityPicker,lGb);if(c=_.y(a==null?void 0:a.price,kGb))c.textColor=b}};
_.f.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var a,b=(a=this.commerceCartItemEntity)==null?void 0:a.isHidden;b!==void 0&&(this.hidden=b)}};
_.f.updateHideErrorMessage=function(){var a,b=(a=this.commerceCartItemEntity)==null?void 0:a.hideErrorMessage;b!==void 0&&(this.errorHidden=b)};
_.f.updateQuantity=function(){var a=this,b,c=(b=this.commerceCartItemEntity)==null?void 0:b.quantity,d;b=(d=this.commerceCartItemEntity)==null?void 0:d.totalPrice;if(c){this.updateTotalPriceColor();this.updateQuantityColor();var e;d=_.y((e=this.data)==null?void 0:e.quantityPicker,lGb);if(e=_.y(d==null?void 0:d.price,kGb))e.text=b?{simpleText:b.content}:void 0;if(b=_.y(d==null?void 0:d.picker,nGb))b.quantity=c;var g;if(e=(g=_.y(d==null?void 0:d.picker,GEb))==null?void 0:g.entries){g=!1;b=void 0;e=
_.h(e);for(d=e.next();!d.done;d=e.next())d=d.value,d.dropdownItemRenderer&&(b||(b=d.dropdownItemRenderer),d.dropdownItemRenderer.isSelected=!1,c===d.dropdownItemRenderer.int32Value&&(g=!0,d.dropdownItemRenderer.isSelected=!0));!g&&b&&(b.isSelected=!0)}_.Qm(this,function(){var k;a.set("data.quantityPicker",_.Cf.unsafeClone((k=a.data)==null?void 0:k.quantityPicker))})}};
var IR=tcc;IR.prototype.onYtRendererstamperFinished=IR.prototype.onYtRendererstamperFinished;IR.prototype.entityChanged=IR.prototype.entityChanged;_.U([_.O(),_.W("design:type",Object)],IR.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],IR.prototype,"compact",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],IR.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],IR.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],IR.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],IR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(a,b){return _.np(a.entities,"commerceCartItemEntity",b)}}),
_.W("design:type",Object)],IR.prototype,"commerceCartItemEntity",void 0);_.U([_.O(),_.W("design:type",Object)],IR.prototype,"quantityPicker",void 0);_.U([_.O(),_.W("design:type",Object)],IR.prototype,"compactQuantityPicker",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],IR.prototype,"hidden",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],IR.prototype,"errorHidden",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.W("design:type",Object)],IR.prototype,"noOnTap",void 0);_.U([_.ir("ytd-commerce-cart-item-quantity-picker-renderer"),_.W("design:type",Object)],IR.prototype,"pickerElement",void 0);_.U([_.ir("yt-button-renderer"),_.W("design:type",Element)],IR.prototype,"firstButtonElement",void 0);
_.U([_.N("commerceCartItemEntity","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IR.prototype,"entityChanged",null);_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IR.prototype,"onYtRendererstamperFinished",null);IR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],IR);
_.S(IR,"ytd-commerce-cart-item-renderer",function(){if(rcc!==void 0)return rcc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" hidden="[[commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer">\n  <a id="img-container" class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]" tabindex="-1">\n    <yt-img-shadow id="image" object-fit="CONTAIN" thumbnail="[[data.cartItemImage]]" width="200" class="style-scope ytd-commerce-cart-item-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="content" class="style-scope ytd-commerce-cart-item-renderer">\n    <div id="item" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="info" class="style-scope ytd-commerce-cart-item-renderer">\n        <div id="cart-item-notification" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <h3 class="style-scope ytd-commerce-cart-item-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n              <div id="title" class="style-scope ytd-commerce-cart-item-renderer"></div>\n            </a>\n        </h3>\n        <div id="text-metadata" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <div id="merchant-update-text" class="style-scope ytd-commerce-cart-item-renderer"></div>\n      </div>\n      <div id="quantity-picker" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n    <div id="actions" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="cart-item-actions" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="disabled-cart-item" hidden="[[!commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return rcc=a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var ucc;var vcc;var JR=function(){return _.P.apply(this,arguments)||this};
_.z(JR,_.P);JR.prototype.configureRendererStamper=function(){return{"data.summaryLineItems":{id:"summary-line-items",mapping:{commerceCartSummaryLineItemRenderer:"ytd-commerce-cart-summary-line-item-renderer"}},"data.checkoutButton":{id:"checkout-button",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}}}}}};
JR.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
JR.prototype.updateCheckoutLineItems=function(){var a,b=(a=this.commerceCartCheckoutButtonEntity)==null?void 0:a.checkoutLineItems;b&&(a=b.map(function(c){a:{var d=c.price;var e=c.description;switch(c.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":c={cardItemTextRenderer:{text:$v(e),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",left:"CARD_ITEM_UX_SPACE_4"}}};
d={cardItemTextRenderer:{text:$v(d),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}};d={commerceCartSummaryLineItemRenderer:{summaryText:c,price:d}};break a;default:c={cardItemTextRenderer:{text:$v(e),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",right:"CARD_ITEM_UX_SPACE_0",
bottom:"CARD_ITEM_UX_SPACE_2",left:"CARD_ITEM_UX_SPACE_0"}}},d={cardItemTextRenderer:{text:$v(d),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}},d={commerceCartSummaryLineItemRenderer:{summaryText:c,price:d}}}}return d}),this.set("data.summaryLineItems",a))};
JR.prototype.updateIsHidden=function(){var a,b=(a=this.commerceCartCheckoutButtonEntity)==null?void 0:a.isHidden;b!==void 0&&(this.hostElement.hidden=b)};
var KR=JR;KR.prototype.entityChanged=KR.prototype.entityChanged;_.U([_.H(_.OI),_.W("design:type",Object)],KR.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],KR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],KR.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],KR.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],KR.prototype,"data",void 0);_.U([_.O({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:qVa}),_.W("design:type",Object)],KR.prototype,"commerceCartCheckoutButtonEntity",void 0);_.U([_.N("commerceCartCheckoutButtonEntity","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],KR.prototype,"entityChanged",null);KR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],KR);
_.S(KR,"ytd-commerce-cart-summary-renderer",function(){if(vcc!==void 0)return vcc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-commerce-cart-summary-renderer">[[getSimpleString(data.title)]]</div>\n<div id="summary-line-items" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return vcc=a},{mode:1});var wcc={};wcc.InjectBehavior=[jLa.InjectBehavior];var xcc;var ycc;var LR=function(){return _.P.apply(this,arguments)||this};
_.z(LR,_.P);
LR.prototype.configureRendererStamper=function(){return{"data.sectionHeading":{id:"section-heading",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.image":{id:"image",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}},"data.title":{id:"title",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.subtitle":{id:"subtitle",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.additionalMetadata":{id:"additional-metadata",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},
"data.activityMetadata":{id:"activity-metadata",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.menu":{id:"menu",mapping:_.Gt("menuRenderer")}}};
LR.prototype.onMenuTap=function(a){a.stopPropagation()};
_.Um.Object.defineProperties(LR.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityData&&this.data.accessibilityData.label?this.data.accessibilityData.label:""}},
sectionHeadingVisible:{configurable:!0,enumerable:!0,get:function(){var a,b;return!(((a=this.data)==null||!a.sectionHeading)&&((b=this.data)==null?void 0:b.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var a,b;return!(((a=this.data)==null||!a.image)&&((b=this.data)==null?void 0:b.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var a,b;return!(((a=this.data)==null||!a.menu)&&((b=this.data)==null?void 0:b.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
var MR=LR;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],MR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],MR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Zbc.YtTappableItemBehavior),_.W("design:type",Object)],MR.prototype,"ytTappableItemBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],MR.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data.accessibilityData"),_.W("design:type",String),_.W("design:paramtypes",[])],MR.prototype,"ariaLabel",null);_.U([_.K("data.sectionHeading","data.layout"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],MR.prototype,"sectionHeadingVisible",null);_.U([_.K("data.image","data.layout"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],MR.prototype,"imageVisible",null);
_.U([_.K("data.menu","data.layout"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],MR.prototype,"menuVisible",null);MR=_.U([_.wr({is:"yt-activity-item-renderer",disableElementRegistration:!0})],MR);
_.S(MR,"yt-activity-item-renderer",function(){if(ycc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-activity-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_activity_item_renderer.yt.activity.item.renderer.css.js--\x3e<div class="activity-item-contents style-scope yt-activity-item-renderer">\n  <div id="section-heading" tabindex="-1" aria-hidden="[[!sectionHeadingVisible]]" hidden="[[!sectionHeadingVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  <div id="section-contents" class="style-scope yt-activity-item-renderer">\n    <div id="image" hidden="[[!imageVisible]]" class="style-scope yt-activity-item-renderer"></div>\n    <div id="content-activity-container" tabindex="-1" divider-style$="[[data.dividerStyle]]" class="style-scope yt-activity-item-renderer">\n      <div id="content" class="style-scope yt-activity-item-renderer">\n        <div id="title" class="style-scope yt-activity-item-renderer"></div>\n        <div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-activity-item-renderer"></div>\n        <div id="additional-metadata" hidden="[[!data.additionalMetadata]]" class="style-scope yt-activity-item-renderer"></div>\n      </div>\n      <div id="activity-metadata" class="style-scope yt-activity-item-renderer"></div>\n    </div>\n    <div id="menu" on-click="onMenuTap" tabindex="0" hidden="[[!menuVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  </div>\n</div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;xcc===void 0&&(xcc=document.createElement("template"));var d=xcc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);ycc=a}a=ycc;return a},{mode:2});var zcc;var Acc;var Bcc;var Ccc;var Dcc=function(){return _.P.apply(this,arguments)||this};
_.z(Dcc,_.P);
Dcc.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.priceRenderer":{id:"price-renderer",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},
"data.actionsRenderer":{id:"actions-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
Dcc.prototype.backgroundColorChanged_=function(){var a,b=(a=this.data)==null?void 0:a.backgroundColor;this.hostElement.style.backgroundColor=jR[b||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
var NR=Dcc;NR.prototype.backgroundColorChanged_=NR.prototype.backgroundColorChanged_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],NR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],NR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],NR.prototype,"data",void 0);
_.U([_.N("data.backgroundColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NR.prototype,"backgroundColorChanged_",null);NR=_.U([_.wr({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],NR);
_.S(NR,"yt-offer-item-upsell-renderer",function(){if(Ccc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_upsell_renderer.yt.offer.item.upsell.renderer.css.js--\x3e<div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-offer-item-upsell-renderer"></div>\n<div id="heading-price-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="heading-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="price-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n<div id="description-actions-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="description-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="actions-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Bcc===void 0&&(Bcc=document.createElement("template"));var d=Bcc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Ccc=a}a=Ccc;return a},{mode:2});_.Ft("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var Ecc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};a.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return a};
_.z(Ecc,_.P);_.f=Ecc.prototype;
_.f.configureRendererStamper=function(){return{"data.baseRenderer":{id:"base",mapping:{cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0}}},"data.contents":{id:"contents",mapping:{commerceCartHeaderRenderer:{component:"ytd-commerce-cart-header-renderer",properties:{compact:"[[compact]]"},noInjection:!0},commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{fullWidth:"[[compact]]"}},commerceCartItemRenderer:{component:"ytd-commerce-cart-item-renderer",noInjection:!0,
properties:{compact:"[[compact]]"}},cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0},offerItemUpsellRenderer:{component:"yt-offer-item-upsell-renderer",noInjection:!0},activityItemRenderer:{component:"yt-activity-item-renderer",noInjection:!0}}},"data.continuationSection":{id:"continuation-section",mapping:_.Gt("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.f.computeContainerStyle_=function(a){return a};
_.f.computeContainerIsHidden_=function(a){return a&&!!a.isHidden};
_.f.computeShowSpinner_=function(a,b){return a&&b==="in-progress"};
_.f.computeShowMoreContentsButton_=function(a,b,c,d,e){return!(!(d&&d.length||e&&e.length&&c)||!a||b)};
_.f.onToggleButton_=function(a){var b=this;a.stopPropagation();this.isExpanded_=a.detail&&a.detail.toggled;var c,d;this.isExpanded_&&!this.data.continuationSection.length&&((c=this.data)==null?0:(d=c.continuation)==null?0:d.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.io(this.hostElement,"yt-load-next-continuation",function(e){return b.getContinuationUrl_(b.data.continuation.onClickContinuationData,e)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.oo(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.f.onShowMoreContentsButtonClicked_=function(a){var b=this;a.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.io(this.hostElement,"yt-load-next-continuation",function(c){return b.getContinuationUrl_(b.data.continuations[0].nextContinuationData,c)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.oo(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.f.getContinuationUrl_=function(a,b){var c=a.continuation;a=a.clickTrackingParams;var d=_.En();a&&d&&_.Xo(d,_.ps(a));return _.Qi(b,{continuation:c})};
_.f.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var a=_.E(this.hostElement).querySelector("#continuation-section");a&&(a=a.querySelectorAll("ytmusic-item-section-renderer"))&&a.forEach(function(b){return b.classList.add("memberships-and-purchases")})};
_.f.dataChanged_=function(){var a;this.isExpanded_=!((a=this.data)==null||!a.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.f.updateCardOnClickCommand_=function(a){a=_.y(a,bGb);var b,c;this.data&&((b=this.data)==null?0:b.targetId)&&a&&a.targetId===((c=this.data)==null?void 0:c.targetId)&&a.onClickCommand&&(this.data.onClickCommand=a.onClickCommand,this.isOnClickCommand_=!0)};
_.f.backgroundColorChanged_=function(){var a,b=(a=this.data)==null?void 0:a.backgroundColor;this.hostElement.style.backgroundColor=jR[b||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
var OR=Ecc;OR.prototype.backgroundColorChanged_=OR.prototype.backgroundColorChanged_;OR.prototype.dataChanged_=OR.prototype.dataChanged_;OR.prototype.nextContinuationDataUpdated_=OR.prototype.nextContinuationDataUpdated_;OR.prototype.onToggleButton_=OR.prototype.onToggleButton_;_.U([_.H(_.WM),_.W("design:type",Object)],OR.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],OR.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],OR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.XM.YtNextContinuationBehavior),_.W("design:type",Object)],OR.prototype,"ytNextContinuationBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],OR.prototype,"ytRendererBehavior",void 0);_.U([_.H(wcc.InjectBehavior),_.W("design:type",Object)],OR.prototype,"injectBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],OR.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],OR.prototype,"compact",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],OR.prototype,"isExpanded_",void 0);_.U([_.O({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.W("design:type",String)],OR.prototype,"containerStyle_",void 0);_.U([_.O({value:"not-started"}),_.W("design:type",String)],OR.prototype,"continuationStatus_",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.W("design:type",Boolean)],OR.prototype,"showSpinner_",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],OR.prototype,"isOnClickCommand_",void 0);_.U([_.O({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.W("design:type",Boolean)],OR.prototype,"showMoreContentsButton_",void 0);
_.U([_.O({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(a,b){return!b||a.entities?null:_.np(a.entities,"cardItemContainerEntity",b)}}),
_.W("design:type",Object)],OR.prototype,"cardItemContainerEntity_",void 0);_.U([_.M("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],OR.prototype,"onToggleButton_",null);_.U([_.M("yt-next-continuation-data-updated"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OR.prototype,"nextContinuationDataUpdated_",null);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OR.prototype,"dataChanged_",null);_.U([_.N("data.backgroundColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OR.prototype,"backgroundColorChanged_",null);OR=_.U([_.wr({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],OR);
_.S(OR,"yt-card-item-container-renderer",function(){if(Acc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_container_renderer.yt.card.item.container.renderer.css.js--\x3e<div id="container" hidden="[[computeContainerIsHidden_(cardItemContainerEntity_)]]" class="style-scope yt-card-item-container-renderer">\n  <div id="base" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="divider" hidden="[[!isExpanded_]]" container-style_$="[[containerStyle_]]" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="contents-section" hidden="[[!isExpanded_]]" class="style-scope yt-card-item-container-renderer">\n    <div id="contents" class="style-scope yt-card-item-container-renderer"></div>\n    <div id="continuation-section" class="style-scope yt-card-item-container-renderer"></div>\n    <tp-yt-paper-spinner id="spinner" active="[[showSpinner_]]" class="style-scope yt-card-item-container-renderer"></tp-yt-paper-spinner>\n    <div id="more-contents-button" hidden="[[!showMoreContentsButton_]]" on-click="onShowMoreContentsButtonClicked_" class="style-scope yt-card-item-container-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;zcc===void 0&&(zcc=document.createElement("template"));var d=zcc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Acc=a}a=Acc;return a},{mode:2});var PR=function(){return _.P.apply(this,arguments)||this};
_.z(PR,_.P);PR.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{cardItemContainerRenderer:{component:"yt-card-item-container-renderer",params:{compact:!1}},commerceCartCheckoutButtonRenderer:"ytd-commerce-cart-checkout-button-renderer",commerceCartHeaderRenderer:"ytd-commerce-cart-header-renderer",cardItemRenderer:"yt-card-item-renderer"}},"data.cartSummary":{id:"cart-summary",mapping:{commerceCartSummaryRenderer:"ytd-commerce-cart-summary-renderer"}}}};
PR.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
PR.prototype.computeLoadingHidden=function(){var a;return!((a=this.commerceCartPageStateEntity)==null?0:a.cartActionInProgress)};
PR.prototype.updateNotification=function(){var a,b=(a=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:a.summaryText;b&&this.set("data.cartNotification",$v(b))};
var QR=PR;QR.prototype.notificationEntityChanged=QR.prototype.notificationEntityChanged;_.U([_.H(_.OI),_.W("design:type",Object)],QR.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],QR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],QR.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],QR.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],QR.prototype,"data",void 0);_.U([_.O({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(a,b){return _.np(a.entities,"commerceCartExpandableNotificationEntity",b)}}),
_.W("design:type",Object)],QR.prototype,"commerceCartExpandableNotificationEntity",void 0);_.U([_.O({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(a,b){return _.np(a.entities,"commerceCartPageStateEntity",b)}}),
_.W("design:type",Object)],QR.prototype,"commerceCartPageStateEntity",void 0);_.U([_.ir("#spinner"),_.W("design:type",HTMLElement)],QR.prototype,"spinner",void 0);_.U([_.N("commerceCartExpandableNotificationEntity","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],QR.prototype,"notificationEntityChanged",null);QR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],QR);
_.S(QR,"ytd-commerce-cart-renderer",function(){if(ucc!==void 0)return ucc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-commerce-cart-renderer">\n  <div id="title" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="notification" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.cartNotification)]]</div>\n</div>\n<div id="body" class="style-scope ytd-commerce-cart-renderer">\n  <div id="primary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="items" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n  <div id="secondary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="cart-summary" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n</div>\n<div id="loading-overlay" hidden="[[computeLoadingHidden(data, commerceCartPageStateEntity)]]" class="style-scope ytd-commerce-cart-renderer">\n  <div id="positioning-container" class="style-scope ytd-commerce-cart-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="[[commerceCartPageStateEntity.cartActionInProgress]]" class="style-scope ytd-commerce-cart-renderer">\n    </tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return ucc=a},{mode:1});var Fcc;var Gcc=function(){var a=_.P.apply(this,arguments)||this;a.bigImage=!1;return a};
_.z(Gcc,_.P);_.Um.Object.defineProperties(Gcc.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.placeholderImageUrl}}});
var RR=Gcc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],RR.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],RR.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],RR.prototype,"bigImage",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],RR.prototype,"placeholderImageUrl",null);RR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],RR);
_.S(RR,"ytd-empty-product-shelf-renderer",function(){if(Fcc!==void 0)return Fcc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-empty-product-shelf-renderer">\n  <template is="dom-if" if="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n    <img id="placeholder-image" alt="icon" src$="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n  </template>\n  <yt-formatted-string id="image-text" text="[[data.imageText]]" class="style-scope ytd-empty-product-shelf-renderer"></yt-formatted-string>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Fcc=a},{mode:1});var Hcc;var Icc=function(){var a=_.P.apply(this,arguments)||this;a.itemStyle="link-item";a.watchMetadataRefresh=!1;a.skinnyMode=!1;a.metaPanel=!1;a.inStructuredDescription=!1;a.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};a.updateOnResizeDebouncer=null;return a};
_.z(Icc,_.P);_.f=Icc.prototype;_.f.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.f.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{iconSize:16}},menuRenderer:"ytd-menu-renderer"}},"data.emptyProductShelf":{id:"empty-product",mapping:{emptyProductShelfRenderer:{component:"ytd-empty-product-shelf-renderer"}}}}};
_.f.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.f.attachVEs=function(a){a.trackingParams&&_.ls().graftServerVe(a.trackingParams)};
_.f.handleUpdateMerchShelfAction=function(a){var b=this,c=_.y(a.updateMerchandiseShelfAction.merchandiseShelf,_.$Cb);c&&(c.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){b.attachVEs(c);b.data=c},Number(c.renderDelayMs))):(this.attachVEs(c),this.data=c))};
_.f.updateOnResize=function(){if(this.JSC$14520_scrollContainer!==void 0&&this.JSC$14520_scrollContainer.clientWidth!==0&&this.items!==void 0){var a=this.JSC$14520_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-a));this.ytdHorizontalListBehavior.reposition_();var b;switch((b=this.data)==null?void 0:b.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var c,
d;((c=this.data)==null?void 0:(d=c.items)==null?void 0:d.length)===1?this.itemStyle="cta-item":this.itemStyle=a>=740?"large-item":"small-item"}}};
_.f.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.rC(this.updateOnResizeDebouncer,_.fC.after(100),this.updateOnResize)};
var SR=Icc;SR.prototype.debouncedUpdateOnResize=SR.prototype.debouncedUpdateOnResize;SR.prototype.dataChanged=SR.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],SR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],SR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.lJ.YtdHorizontalListBehavior),_.W("design:type",Object)],SR.prototype,"ytdHorizontalListBehavior",void 0);
_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],SR.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],SR.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],SR.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],SR.prototype,"itemStyle",void 0);_.U([_.O({value:6}),_.W("design:type",Number)],SR.prototype,"initialCount",void 0);
_.U([_.O({value:"data.items"}),_.W("design:type",String)],SR.prototype,"itemsPath",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],SR.prototype,"watchMetadataRefresh",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],SR.prototype,"skinnyMode",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],SR.prototype,"metaPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],SR.prototype,"inStructuredDescription",void 0);
_.U([_.ir("#items"),_.W("design:type",HTMLDivElement)],SR.prototype,"items",void 0);_.U([_.ir("#scroll-container"),_.W("design:type",HTMLDivElement)],SR.prototype,"JSC$14520_scrollContainer",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SR.prototype,"dataChanged",null);_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SR.prototype,"debouncedUpdateOnResize",null);
SR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],SR);
_.S(SR,"ytd-merch-shelf-renderer",function(){if(Hcc!==void 0)return Hcc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-merch-shelf-renderer">\n  <div id="banner" class="style-scope ytd-merch-shelf-renderer">\n    <div id="title" hidden="[[!data.title]]" role="heading" class="style-scope ytd-merch-shelf-renderer">[[data.title]]</div>\n    <yt-formatted-string id="title" hidden="[[!data.titleFormatted]]" role="heading" text="[[data.titleFormatted]]" class="style-scope ytd-merch-shelf-renderer">\n    </yt-formatted-string>\n    <div id="action-button" class="style-scope ytd-merch-shelf-renderer"></div>\n  </div>\n  <div id="empty-product" class="style-scope ytd-merch-shelf-renderer"></div>\n  <div id="item-list" class="style-scope ytd-merch-shelf-renderer">\n    <div id="left-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="prevClick_" hidden="[[atStart]]">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n    <div id="scroll-container" class="style-scope ytd-merch-shelf-renderer">\n      <div id="items" item-style$="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n        \n        <template is="dom-repeat" items="[[shownItems]]" class="style-scope ytd-merch-shelf-renderer">\n          <ytd-merch-shelf-item-renderer data="[[item.merchandiseItemRenderer]]" item-style="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n          </ytd-merch-shelf-item-renderer>\n        </template>\n      </div>\n    </div>\n    <div id="right-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="right-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Hcc=a},{mode:2});var Jcc;var Kcc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-add-backstage-comment-action":"addBackstageCommentAction","yt-add-backstage-post-action":"addBackstagePostAction","yt-add-backstage-reply-action":"addBackstageReplyAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction","yt-remove-comment-action":"removeCommentAction","yt-replace-backstage-comment-action":"replaceBackstageCommentAction","yt-replace-backstage-post-action":"replaceBackstagePostAction",
"yt-replace-backstage-reply-action":"replaceBackstageReplyAction"};return a};
_.z(Kcc,_.P);_.f=Kcc.prototype;
_.f.addBackstagePostAction=function(a){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(a=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",a))&&(this.get("header.commentsHeaderRenderer.zeroStateMessage.backstageZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{}),this.get("header.commentsHeaderRenderer.schedulingZeroStateMessage.postSchedulingZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.schedulingZeroStateMessage",
{}),this.get("data.contents")?this.splice("data.contents",0,0,{backstagePostThreadRenderer:a}):this.set("data.contents",[{backstagePostThreadRenderer:a}]))};
_.f.addBackstageCommentAction=function(a){var b=this.get("addBackstageCommentAction.parentId",a);a=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",a);if(b&&a){b=this.postIdToIndices(b);for(var c=0;c<b.length;c++){var d=b[c];if(d<0)break;d="data.contents."+d+".backstagePostThreadRenderer.comments";this.get(d)&&(this.get(d+".backstageCommentsRenderer.contents")&&this.push(d+".backstageCommentsRenderer.contents",{commentThreadRenderer:a}),this.get(d+".backstageCommentsRenderer.teaserContents")?
this.push(d+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:a}):this.set(d+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:a}]))}}};
_.f.addBackstageReplyAction=function(a){var b=this.get("addBackstageReplyAction.parentId",a);a=this.get("addBackstageReplyAction.renderer.commentRenderer",a);b&&a&&this.setCreatorReply(b,a)};
_.f.banAuthorAction=function(a){var b=this.get("banAuthorAction.commentId",a);b&&(a=this.get("banAuthorAction.parentCommentId",a)||this.getParentPostId(b),this.removeFromStream(b,a))};
_.f.hideReportedCommentAction=function(a){var b=this.get("hideReportedCommentAction.commentId",a);b&&((a=this.get("hideReportedCommentAction.parentCommentId",a))||(a=this.getParentPostId(b)),this.removeFromStream(b,a))};
_.f.replaceBackstageCommentAction=function(a){var b=this.get("replaceBackstageCommentAction.commentId",a),c=this.get("replaceBackstageCommentAction.parentId",a);a=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",a);if(b&&c&&a){c=this.postIdToIndices(c);for(var d=0;d<c.length;d++){var e=c[d];if(e<0)break;var g=this.commentIdToIndex(b,e,!1);if(g>=0){var k=this.get("data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+g+".commentThreadRenderer.replies.commentRepliesRenderer");
k&&(a.replies={commentRepliesRenderer:k});this.splice("data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",g,1,{commentThreadRenderer:a})}g=this.commentIdToIndex(b,e,!0);if(g>=0){if(k=this.get("data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(g+".commentThreadRenderer.replies.commentRepliesRenderer")))a.replies={commentRepliesRenderer:k};this.splice("data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
g,1,{commentThreadRenderer:a})}}}};
_.f.replaceBackstagePostAction=function(a){var b=this.get("replaceBackstagePostAction.itemId",a);if(b){b=this.postIdToIndices(b);for(var c=0;c<b.length;c++){var d=b[c];if(d<0)break;var e=this.getPostRendererType(d),g=this.get("replaceBackstagePostAction.renderer."+e,a);if(!g&&e!=="sharedPostRenderer")break;var k=!1;g||(k=!0,g=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",a));if(!g)break;var m={};k?(_.ys(m,lzb,g),this.set("data.contents."+d+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
m)):(_.ys(m,new _.X(e),g),this.set("data.contents."+d+".backstagePostThreadRenderer.post",m))}}};
_.f.replaceBackstageReplyAction=function(a){var b=this.get("replaceBackstageReplyAction.replyId",a),c=this.get("replaceBackstageReplyAction.parentId",a);a=this.get("replaceBackstageReplyAction.renderer.commentRenderer",a);b&&a&&c&&this.setCreatorReply(c,a)};
_.f.removeCommentAction=function(a){var b=this.get("removeCommentAction.commentId",a);if(b){var c=this.get("removeCommentAction.parentCommentId",a);c&&this.get("removeCommentAction.isCreatorReply",a)?this.setCreatorReply(c,void 0):(c||(c=this.getParentPostId(b)),this.removeFromStream(b,c))}};
_.f.setCreatorReply=function(a,b){var c=this.getParentPostId(a);if(c){c=this.postIdToIndices(c);for(var d=0;d<c.length;d++){var e=c[d];if(e<0)break;var g=this.commentIdToIndex(a,e,!1);if(g>=0){var k="data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+g;g=k+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";k+=".commentThreadRenderer.replies";b==void 0?(this.set(k,{}),this.set(g,!1)):(this.set(k,{commentRepliesRenderer:{teaserContents:[{commentRenderer:b}]}}),
this.set(k+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(g,!0))}g=this.commentIdToIndex(a,e,!0);g>=0&&(g="data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+g,e=g+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",g+=".commentThreadRenderer.replies",b==void 0?(this.set(g,{}),this.set(e,!1)):(this.set(g,{commentRepliesRenderer:{teaserContents:[{commentRenderer:b}]}}),this.set(e,!0)))}}};
_.f.removeFromStream=function(a,b){if(b){b=this.postIdToIndices(b);for(var c=0;c<b.length;c++){var d=b[c];if(d<0)break;var e=this.commentIdToIndex(a,d,!1);e>=0&&this.splice("data.contents."+d+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",e,1);e=this.commentIdToIndex(a,d,!0);e>=0&&this.splice("data.contents."+d+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",e,1);d="data.contents."+d+".backstagePostThreadRenderer.post.backstagePostRenderer";
e=d+".backstageAttachment.pollRenderer.votedCommentId";this.get(e)===a&&(this.set(e,null),this.set(d+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(b=this.postIdToIndices(a).reverse(),c=0;c<b.length;c++){d=b[c];if(d<0)break;e=this.getPostRendererType(d);var g=this.get("backstagePostThreadRenderer.post."+e,this.data.contents[d]);g.postId===a?this.splice("data.contents",d,1):e==="sharedPostRenderer"&&this.set("data.contents."+d+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);g.scheduledPublishTimeSec&&_.lo(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.f.postIdToIndices=function(a){for(var b=[],c=0;c<this.data.contents.length;c++){var d=this.getPostRendererType(c);this.get("backstagePostThreadRenderer.post."+d+".postId",this.data.contents[c])===a&&b.push(c);if(d==="sharedPostRenderer"){var e=this.get("backstagePostThreadRenderer.post."+d+".originalPost.backstagePostRenderer.postId",this.data.contents[c]);d=this.get("backstagePostThreadRenderer.post."+d+".originalPost.postRenderer.postId",this.data.contents[c]);e!==a&&d!==a||b.push(c)}}return b};
_.f.commentIdToIndex=function(a,b,c){if(b<0)return-1;var d,e,g,k,m=_.y((d=this.data)==null?void 0:(e=d.contents)==null?void 0:(g=e[b])==null?void 0:(k=g.backstagePostThreadRenderer)==null?void 0:k.comments,jzb);return(b=c?m==null?void 0:m.teaserContents:m==null?void 0:m.contents)&&b.length?b.findIndex(function(n){return _.y(n,Lzb).comment.commentRenderer.commentId===a}):-1};
_.f.getParentPostId=function(a){a=a.split(".");if(a[1])return a[0]};
_.f.getPostRendererType=function(a){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[a])?"sharedPostRenderer":"backstagePostRenderer"};
var TR=Kcc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],TR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],TR.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],TR.prototype,"data",void 0);TR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-backstage-items"})],TR);
_.S(TR,"ytd-backstage-items",function(){if(Jcc!==void 0)return Jcc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer data="[[data]]" class="style-scope ytd-backstage-items"></ytd-item-section-renderer>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Jcc=
a},{mode:1});var Lcc;_.sr({is:"ytd-comments",_template:function(){if(Lcc!==void 0)return Lcc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-spinner-lite active="[[canShowDefaultSpinner_]]" class="style-scope ytd-comments"></tp-yt-paper-spinner-lite>\n<ytd-item-section-renderer id="sections" can-schedule-jobs="[[canScheduleJobs]]" comments-hide-panel-button="[[hidePanelButton]]" continuation-disable-prescan-visibility="[[disablePrescanVisibility]]" data="{{data}}" engagement-panel="[[engagementPanel]]" initial-count="2" is-watch-grid="[[isWatchGrid]]" class="style-scope ytd-comments">\n</ytd-item-section-renderer>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Lcc=a},
behaviors:[_.nLa.YtHostElementBehavior,_.bJ.YtPlayerListenerBehavior,_.Z.YtRendererBehavior,_.eH.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},canShowDefaultSpinner_:{type:Boolean,computed:"computeCanShowDefaultSpinner_(data, canScheduleJobs)"},
engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_",
"yt-update-comment-action":"updateCommentAction_","yt-update-comment-reply-action":"updateCommentReplyAction_"},listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)","headerChanged_(data.header)"],created:function(){var a=this;this.RenderingPriority={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,
RENDERING_PRIORITY_COMMENT_HEADER:100};this.initCommentsCsi_();this.player=null;this.JSC$14532_PLAYER_EVENTS_=new Map;this.JSC$14532_PLAYER_EVENTS_.set("onVideoProgress",function(){a.onVideoProgress_()})},
attached:function(){this.maybeGetAndSetPlayer_()},
maybeGetAndSetPlayer_:function(){var a=this,b=_.au(this);b&&b.getPlayerPromise().then(function(c){a.playerApiReady_(c)})},
playerApiReady_:function(a){this.setPlayer_(a)},
setPlayer_:function(a){this.player_&&this.unlistenFromPlayerEvents(this.player_,this.JSC$14532_PLAYER_EVENTS_);(this.player_=a)&&this.listenToPlayerEvents(a,this.JSC$14532_PLAYER_EVENTS_)},
detached:function(){this.setPlayer_(null)},
onVideoProgress_:function(){var a=this,b=_.$i("prefetch_comments_ms_after_video");b>0&&setTimeout(function(){return a.loadComments()},b);
_.w("prefetch_comments_idle_job")&&_.sl(_.zk,function(){return a.loadComments()});
this.setPlayer_(null)},
dataChanged_:function(){this.player_||this.maybeGetAndSetPlayer_()},
contentsChanged_:function(a){a&&a.value&&a.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(a){a&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.Ko("wn_comments");var a=_.En();a&&_.Jo({clientScreenNonce:a},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(a){a=aw(a);var b,c,d;if(a=(b=a)==null?void 0:(c=b.createCommentAction)==null?void 0:(d=c.contents)==null?void 0:d.commentThreadRenderer){var e,g,k,m,n,r;!this.isBackstage&&((e=this.data)==null?0:(g=e.header)==null?0:(k=g.commentsHeaderRenderer)==null?0:(m=k.createRenderer)==null?0:(n=m.commentSimpleboxRenderer)==null?0:(r=n.zeroStep)==null?0:r.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var t,u,x,A;this.isBackstage&&((t=this.data)==null?0:(u=t.header)==null?0:(x=u.commentsHeaderRenderer)==null?0:(A=x.zeroStateMessage)==null?0:A.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(a)}},
doReplyInsert_:function(a,b,c,d){d?this.splice(a,d,0,b):this.push(a,b)},
getRepliesPath_:function(a){return"data.contents."+a+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(a,b){a=this.getRepliesPath_(a);return b?a+".commentRepliesRenderer.teaserContents":a+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(a){a=aw(a);var b,c,d=(b=a)==null?void 0:(c=b.createCommentReplyAction)==null?void 0:c.parentCommentId,e,g;if(b=(e=a)==null?void 0:(g=e.createCommentReplyAction)==null?void 0:g.contents)if(d=this.commentIdToIndex_(d),!(d<0))if(e=this.getRepliesPath_(d),this.get(e)){var k,m;a=(k=a)==null?void 0:(m=k.createCommentReplyAction)==null?void 0:m.replyToCommentId;k=this.getRepliesContentsPath_(d,!1);this.get(k)&&(m=this.get(k).length,e=k+"."+(m-1)+".continuationItemRenderer",
this.get(e+".button")?(e=this.replyIdToIndex_(a,d,!1),this.doReplyInsert_(k,b,e,m-1)):this.get(e)||(m=this.replyIdToIndex_(a,d,!1),this.doReplyInsert_(k,b,m,null)));k=this.getRepliesContentsPath_(d,!0);this.get(k)?(d=this.replyIdToIndex_(a,d,!0),(!a||d>=0)&&this.doReplyInsert_(k,b,d,null)):this.set(k,[b])}else this.set(e,{commentRepliesRenderer:{teaserContents:[b]}})},
hideReportedCommentAction_:function(a){var b,c=a==null?void 0:(b=a.hideReportedCommentAction)==null?void 0:b.commentId;if(c){var d;a=a==null?void 0:(d=a.hideReportedCommentAction)==null?void 0:d.parentCommentId;c=c.replace("#",".");a||(a=this.getParentCommentId_(c));this.remove_(c,a)}},
getParentCommentId_:function(a){a=a.split(".");if(a[1])return a[0]},
removeCommentAction_:function(a){var b,c=a==null?void 0:(b=a.removeCommentAction)==null?void 0:b.commentId;if(c){var d;a=a==null?void 0:(d=a.removeCommentAction)==null?void 0:d.parentCommentId;c=c.replace("#",".");a||(a=this.getParentCommentId_(c));this.remove_(c,a)}},
pinCommentAction_:function(a){a=aw(a);var b,c,d=(b=a)==null?void 0:(c=b.pinCommentAction)==null?void 0:c.commentId;d&&(a=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",a))&&(this.remove_(d),this.insert_(a,!0))},
unpinCommentAction_:function(a){a=aw(a);var b,c,d=(b=a)==null?void 0:(c=b.unpinCommentAction)==null?void 0:c.commentId;if(d){var e,g,k;if(a=(e=a.unpinCommentAction)==null?void 0:(g=e.actionResult)==null?void 0:(k=g.update)==null?void 0:k.commentThreadRenderer)this.remove_(d),this.insert_(a)}},
updateCommentAction_:function(a){a=aw(a);var b,c,d=(b=a)==null?void 0:(c=b.updateCommentAction)==null?void 0:c.commentId,e,g;a=(e=a)==null?void 0:(g=e.updateCommentAction)==null?void 0:g.contents;d&&a&&this.update_(d,a)},
updateCommentReplyAction_:function(a){a=aw(a);var b,c,d=(b=a)==null?void 0:(c=b.updateCommentReplyAction)==null?void 0:c.commentId,e,g;a=(e=a)==null?void 0:(g=e.updateCommentReplyAction)==null?void 0:g.contents;d&&a&&(d=d.replace("#","."),e=this.getParentCommentId_(d),this.update_(d,a,e))},
banAuthorAction_:function(a){var b,c=a==null?void 0:(b=a.banAuthorAction)==null?void 0:b.commentId;if(c){var d;a=a==null?void 0:(d=a.banAuthorAction)==null?void 0:d.parentCommentId;c=c.replace("#",".");a||(a=this.getParentCommentId_(c));this.remove_(c,a)}},
commentIdToIndex_:function(a){var b;return a&&(b=this.data)!=null&&b.contents?this.data.contents.findIndex(function(c){var d,e,g,k,m;return a===((c==null?void 0:(d=c.commentThreadRenderer)==null?void 0:(e=d.comment)==null?void 0:(g=e.commentRenderer)==null?void 0:g.commentId)||(c==null?void 0:(k=c.commentThreadRenderer)==null?void 0:k.commentViewModel)&&((m=_.y(c.commentThreadRenderer.commentViewModel,Pzb))==null?void 0:m.commentId))}):-1},
insert_:function(a,b){var c,d;if((c=this.data)==null?0:(d=c.contents)==null?0:d.some(function(g){return!(g==null||!g.commentThreadRenderer)}))for(c=0,d=this.data.contents.length;c<d;c++){var e=this.data.contents[c].commentThreadRenderer;
if(this.RenderingPriority[a.renderingPriority]>=this.RenderingPriority[e.renderingPriority]){b&&this.RenderingPriority[a.renderingPriority]==this.RenderingPriority[e.renderingPriority]?this.splice("data.contents",c,1,{commentThreadRenderer:a}):this.splice("data.contents",c,0,{commentThreadRenderer:a});break}}else this.set("data.contents",[{commentThreadRenderer:a}])},
doReplyRemove_:function(a,b,c){a=this.replyIdToIndex_(a,b,c);a<0||(b=this.getRepliesContentsPath_(b,c),this.splice(b,a,1))},
remove_:function(a,b){b=this.commentIdToIndex_(b);b<0?(b=this.commentIdToIndex_(a),b<0||this.splice("data.contents",b,1)):(this.doReplyRemove_(a,b,!1),this.doReplyRemove_(a,b,!0),b="data.contents."+b+".commentThreadRenderer.comment.commentRenderer",this.get(b+".backstageAttachment.pollRenderer.votedCommentId")==a&&(this.set(b+".backstageAttachment.pollRenderer.votedCommentId",null),this.set(b+".backstageAttachment.pollRenderer.commentDelete",null)))},
replyIdToIndex_:function(a,b,c){if(b<0)return-1;b=this.getRepliesContentsPath_(b,c);b=this.get(b);if(!b||!b.length)return-1;c=0;for(var d=b.length;c<d;c++){var e=void 0,g=void 0,k=void 0,m=void 0;if((((e=b[c])==null?void 0:(g=e.commentRenderer)==null?void 0:g.commentId)||((k=b[c])==null?void 0:(m=k.commentViewModel)==null?void 0:m.commentId))===a)return c}return-1},
doReplyUpdate_:function(a,b,c,d){a=this.replyIdToIndex_(a,b,d);if(!(a<0)){b=this.getRepliesContentsPath_(b,d);if(d=this.get(b+"."+a+".commentRenderer.creatorReply"))c.commentRenderer.creatorReply=d;this.splice(b,a,1,c)}},
update_:function(a,b,c){var d=this.commentIdToIndex_(c);!c||d<0?(d=this.commentIdToIndex_(a),d<0||this.set("data.contents."+d+".commentThreadRenderer.comment",b)):(this.doReplyUpdate_(a,d,b,!1),this.doReplyUpdate_(a,d,b,!0))},
computeIsBackstage_:function(a){return!!a},
computeCanShowDefaultSpinner_:function(a,b){return b?(b=_.v().resolve(_.Xi(_.Zt)))&&b.isOnWatch&&b.isOnWatch()?!(a&&(a.contents||a.header||a.continuations)):!1:!1},
onRetrieveLocation_:function(a,b){b&&b.hasComments&&this.tickForCommentsTimer_("lss")},
tickForCommentsTimer_:function(a){_.Mo(a,void 0,"wn_comments")},
reloadComments_:function(a){a&&a.reloadCommentsCommand&&a.reloadCommentsCommand.command&&a.reloadCommentsCommand.command.continuationCommand&&_.oo(this,[a.reloadCommentsCommand.command])},
loadComments:function(){_.$i("prefetch_comments_ms_after_video")||_.w("prefetch_comments_idle_job")?this.$.sections.triggerInitialContinuations():this.$.sections.triggerContinuations()}});var Mcc=function(){return _.kr.apply(this,arguments)||this};
_.z(Mcc,_.kr);_.f=Mcc.prototype;_.f.bindIf=function(a,b,c){return a?b:c};
_.f.bindIfDefined=function(a,b){return a!==void 0?a:b};
_.f.booleanString=function(a){return(!!a).toString()};
_.f.equals=function(){for(var a=_.Kd.apply(0,arguments),b=a[0],c=1;c<a.length;c++)if(b!=a[c])return!1;return!0};
_.f.isGreaterThan=function(a,b){return a>b};
_.f.isLessThan=function(a,b){return a<b};
_.f.logicalAND=function(){for(var a=_.Kd.apply(0,arguments),b=!!a[0],c=1;c<a.length;c++)b=b&&!!a[c];return b};
_.f.logicalOR=function(){for(var a=_.Kd.apply(0,arguments),b=!!a[0],c=1;c<a.length;c++)b=b||!!a[c];return b};
_.f.toBool=function(a){return!!a};
var UR=Mcc;UR.prototype.toBool=UR.prototype.toBool;UR.prototype.logicalOR=UR.prototype.logicalOR;UR.prototype.logicalAND=UR.prototype.logicalAND;UR.prototype.isLessThan=UR.prototype.isLessThan;UR.prototype.isGreaterThan=UR.prototype.isGreaterThan;UR.prototype.equals=UR.prototype.equals;UR.prototype.booleanString=UR.prototype.booleanString;UR.prototype.bindIfDefined=UR.prototype.bindIfDefined;UR.prototype.bindIf=UR.prototype.bindIf;UR=_.U([_.lr()],UR);_.Ncc=[UR.prototype];var Occ;var Pcc;var Qcc=function(){return _.P.apply(this,arguments)||this};
_.z(Qcc,_.P);Qcc.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
Qcc.prototype.onBackIconTap_=function(){window.history.back()};
var VR=Qcc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],VR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],VR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],VR.prototype,"data",void 0);VR=_.U([_.wr({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],VR);
_.S(VR,"yt-header-with-back-renderer",function(){if(Pcc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-header-with-back-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_header_with_back_renderer.yt.header.with.back.renderer.css.js--\x3e<div id="header-wrapper" class="style-scope yt-header-with-back-renderer">\n  <yt-icon-button id="back-button" label="Back" on-tap="onBackIconTap_" class="style-scope yt-header-with-back-renderer">\n    <yt-icon icon="yt-icons:arrow-back" class="style-scope yt-header-with-back-renderer"></yt-icon>\n  </yt-icon-button>\n  <div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-header-with-back-renderer"></div>\n  <div id="header-container" class="style-scope yt-header-with-back-renderer">\n    <yt-formatted-string id="header-title" text="[[data.title]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n    <yt-formatted-string id="header-subtitle" text="[[data.subtitle]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Occ===void 0&&(Occ=document.createElement("template"));var d=Occ;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Pcc=a}a=Pcc;return a},{mode:2});var Rcc;var Scc;var Tcc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(Tcc,_.P);_.f=Tcc.prototype;_.f.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.f.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.isDarkTheme=a,this.setUrl())};
_.f.dataChanged=function(){var a=this;if(this.data){var b=this.setUrl();b&&_.ny({destination:window,iframe:this.iframe,origin:_.fcb(b.toString()),channelName:"yt-iframe",onMessage:function(c){(c=a.getCommunicationCommand(c.data))&&a.ytComponentBehavior.resolveCommand(c)},
onEstablished:function(){}})}};
_.f.setUrl=function(){if(this.data&&this.data.iframeUrl){var a=_.Ak(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(a)return _.Sd(this.iframe,a),a}};
_.f.getCommunicationCommand=function(a){var b;if((b=this.data)!=null&&b.onCommunicationCommandsMap){b=this.data.onCommunicationCommandsMap.find(function(e){return e.key===a});
if(b==null?0:b.value)return b==null?void 0:b.value;try{var c=UFb(_.cb(a)),d=this.data.onCommunicationCommandsMap.find(function(e){return e.key===(c==null?void 0:_.Tx(c,1))});
if(d==null?0:d.value)return d==null?void 0:d.value}catch(e){}}};
var WR=Tcc;WR.prototype.dataChanged=WR.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],WR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],WR.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],WR.prototype,"actionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],WR.prototype,"data",void 0);
_.U([_.O({value:!1}),_.W("design:type",Boolean)],WR.prototype,"isDarkTheme",void 0);_.U([_.ir("#iframe"),_.W("design:type",HTMLIFrameElement)],WR.prototype,"iframe",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WR.prototype,"dataChanged",null);WR=_.U([_.wr({is:"yt-iframe-renderer",disableElementRegistration:!0})],WR);
_.S(WR,"yt-iframe-renderer",function(){if(Scc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-iframe-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_iframe_renderer.yt.iframe.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-iframe-renderer"></iframe>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Rcc===void 0&&(Rcc=document.createElement("template"));var d=Rcc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Scc=a}a=Scc;return a},{mode:2});_.YR=function(a){_.vg.call(this);this.callback=a;this.bezier=new Rsb(0,0,.4,0,.2,1,1,1);this.delay=new _.Xm(this.next,window,this);this.JSC$14550_animating=!1;_.kg(this,this.delay)};
_.z(_.YR,_.vg);_.YR.prototype.isAnimating=function(){return this.JSC$14550_animating};
_.YR.prototype.start=function(a,b,c){this.config={from:a,to:b,duration:c,startTime:(0,_.Uj)()};this.JSC$14550_animating=!0;this.next()};
_.YR.prototype.stop=function(){this.delay.stop();this.JSC$14550_animating=!1;this.config=void 0};
_.YR.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,_.Uj)()-a;a=this.bezier;d=Tsb(a,e/d);if(d==0)a=a.y0;else if(d==1)a=a.y3;else{e=Jy(a.y0,a.y1,d);var g=Jy(a.y1,a.y2,d);a=Jy(a.y2,a.y3,d);e=Jy(e,g,d);g=Jy(g,a,d);a=Jy(e,g,d)}a=_.Vw(a,0,1);this.callback(b+(c-b)*a);a<1?this.delay.start():this.JSC$14550_animating=!1}};_.ZR=new _.jB("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var Ucc={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},Wcc=function(a,b,c,d){_.vg.call(this);this.JSC$14558_miniAppId=a;this.localReleaseId=b;this.derivedDeviceInterface=c;this.isForeground=d;this.JSC$14558_playNonceResolver=new _.hq;this.playPingTimerId=NaN;this.playPingIntervalMs=_.$i("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.$i("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.w("enable_displaying_ppn");this.JSC$14558_miniAppClientDataProvider=_.v().resolve(_.ZR);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;Vcc(this);var e=setTimeout(function(){_.Dl(new _.qj("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14558_playNonceResolver.promise.then(function(){clearTimeout(e)})};
_.z(Wcc,_.vg);var Ycc=function(a,b){a.JSC$14558_playNonceResolver.resolve(b!=null?b:Bn(8));a.enableDisplayingPpn&&Xcc(a).then(function(c){a.JSC$14558_miniAppClientDataProvider.clientData.set("post_play_nonce",c)})},Xcc=function(a){return _.l(function(b){return b.nextAddress==1?_.p(b,a.JSC$14558_playNonceResolver.promise,2):b.return(b.yieldResult)})},Vcc=function(a){var b,c;
_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$14558_playNonceResolver.promise,2);b=d.yieldResult;c={miniAppInfo:{externalPostId:a.JSC$14558_miniAppId,localReleaseId:a.localReleaseId,postPlayNonce:b,derivedDeviceInterface:a.derivedDeviceInterface}};_.Jo(c);_.ue(d)})},$cc=function(a){a.state!==0?_.Dl(new _.qj("[MiniAppPlayLogger] recordPlayStart failed with state "+Ucc[a.state])):(a.state=1,$R(a,"ma_cl"),aS(a,"PLAY_EVENT_TYPE_PLAY_START"),Zcc(a))},adc=function(a){a.isForeground=!1;
aS(a,"PLAY_EVENT_TYPE_PLAY_PAUSE")},bdc=function(a){a.state!==1&&a.state!==2?_.Dl(new _.qj("[MiniAppPlayLogger] recordPlayEnd failed with state "+Ucc[a.state])):(a.state=3,window.clearInterval(a.playPingTimerId),a.playPingTimerId=NaN,UCa(),aS(a,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},cdc=function(a,b){a.state===2&&a.gameReady&&(a.firstClickRecorded?Date.now()-a.clickRecordedMs<a.playClickIntervalMs||(a.clickRecordedMs=Date.now(),aS(a,"PLAY_EVENT_TYPE_PLAY_CLICK")):b&&($R(a,"ma_fua"),aS(a,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),a.firstClickRecorded=!0,a.clickRecordedMs=Date.now()))};
Wcc.prototype.logError=function(a){var b=this,c;_.l(function(d){if(d.nextAddress==1)return a.metadata.externalPostId=b.JSC$14558_miniAppId,c=a.metadata,_.p(d,Promise.race([b.JSC$14558_playNonceResolver.promise,new Promise(function(e){setTimeout(function(){e("")},3E4)})]),2);
c.postPlayNonce=d.yieldResult;a.metadata.localReleaseId=b.localReleaseId;a.loggingError.level="WARNING";_.Bl(a.loggingError,a.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:a.metadata});_.ue(d)})};
var ddc=function(a,b,c,d){var e,g,k,m,n,r;_.l(function(t){if(t.nextAddress==1)return _.p(t,a.JSC$14558_playNonceResolver.promise,2);e=t.yieldResult;g={externalPostId:a.JSC$14558_miniAppId,localReleaseId:a.localReleaseId,postPlayNonce:e,sdkVersion:c,api:b};d!==void 0&&(g.networkRequestsMeasurement={networkRequests:_.bg(d,1),cachedRequests:_.bg(d,2),transferredBytes:_.bg(d,3)},(k=d)==null?0:_.Fx(k,hE,6))&&(g.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((m=_.Xj(d,
hE,6))==null?void 0:Vx(m,1))||"0",cacheHits:((n=_.Xj(d,hE,6))==null?void 0:Vx(n,2))||"0",cachedBytes:((r=_.Xj(d,hE,6))==null?void 0:Vx(r,3))||"0"});_.xl("miniAppSdkUsage",g);_.ue(t)})},fdc=function(a,b,c){var d,e,g,k,m,n,r,t,u,x,A,C,F,J,I,R;
_.l(function(da){if(da.nextAddress==1)return _.p(da,a.JSC$14558_playNonceResolver.promise,2);d=da.yieldResult;e={externalPostId:a.JSC$14558_miniAppId,localReleaseId:a.localReleaseId,postPlayNonce:d,sdkVersion:c,measurementWindow:{startTimestampMs:String(Rx(b,1)),endTimestampMs:String(Rx(b,2))},frameRate:{averageFrameTimeDeltaMs:Sx(b,3),averageFrameIdleTimeMs:Sx(b,4)}};_.Fx(b,iE,5)&&(e.networkRequests={networkRequests:(g=pE(b))==null?void 0:_.bg(g,1),cachedRequests:(k=pE(b))==null?void 0:_.bg(k,2),
transferredBytes:(m=pE(b))==null?void 0:_.bg(m,3),sameOriginStatusCodeToCounts:edc((n=pE(b))==null?void 0:mca(n,4)),crossOriginStatusCodeToCounts:edc((r=pE(b))==null?void 0:mca(r,5))},(t=pE(b))==null?0:_.Fx(t,hE,6))&&(e.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((u=pE(b))==null?void 0:(x=_.Xj(u,hE,6))==null?void 0:Vx(x,1))||"0",cacheHits:((A=pE(b))==null?void 0:(C=_.Xj(A,hE,6))==null?void 0:Vx(C,2))||"0",cachedBytes:((F=pE(b))==null?void 0:(J=_.Xj(F,hE,6))==null?void 0:
Vx(J,3))||"0"});_.Fx(b,fyb,7)&&(e.gameCapture={averageFrameTimeDeltaMs:(I=_.Xj(b,fyb,7))==null?void 0:Sx(I,1),averageFrameIdleTimeMs:(R=_.Xj(b,fyb,7))==null?void 0:Sx(R,2)});_.xl("miniAppPerformanceMetrics",e);_.ue(da)})},gdc=function(a,b,c){var d,e;
return _.l(function(g){if(g.nextAddress==1)return _.p(g,a.JSC$14558_playNonceResolver.promise,2);d=g.yieldResult;e={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:a.JSC$14558_miniAppId,postPlayNonce:d,miniAppReleaseId:a.localReleaseId},derivedDeviceInterface:a.derivedDeviceInterface,adTriggerType:b};e.rejectedReason=c||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.xl("miniAppAdEvent",e);_.ue(g)})};
Wcc.prototype.disposeInternal=function(){_.vg.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var aS=function(a,b,c,d){c=c===void 0?{}:c;d=d===void 0?!1:d;var e,g,k,m;_.l(function(n){if(n.nextAddress==1)return e=a.isForeground,g=a.beforeReady,_.p(n,a.JSC$14558_playNonceResolver.promise,2);k=n.yieldResult;m={externalPostId:a.JSC$14558_miniAppId,localReleaseId:a.localReleaseId,derivedDeviceInterface:a.derivedDeviceInterface,postPlayNonce:k,type:b};c.sequenceGroup=k;m.playState=g?"PLAY_STATE_NOT_READY":e?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.xl("miniAppPlayEvent",m,c);
d&&_.Al();_.ue(n)})},$R=function(a,b){var c;
_.l(function(d){if(d.nextAddress==1)return c=(0,_.Uj)(),_.p(d,a.JSC$14558_playNonceResolver.promise,2);_.Lo(b,c);_.ue(d)})},Zcc=function(a){isNaN(a.playPingTimerId)&&(a.playPingTimerId=_.ej(function(){a.state!==1&&a.state!==2?_.Dl(new _.qj("[MiniAppPlayLogger] reportPlayPing failed with state "+Ucc[a.state])):aS(a,"PLAY_EVENT_TYPE_PLAY_PING")},a.playPingIntervalMs))},edc=function(a){return Array.from(a.entries()).map(function(b){var c=_.h(b);
b=c.next().value;c=c.next().value;return{key:b,value:c}})};var hdc=_.$i("show_mini_app_ad_frequency_cap_ms",0),idc=function(){this.showAdIntervalMs=hdc;this.isRateLimited=!0},jdc=function(a,b){setTimeout(function(){return a.isRateLimited=!1},a.showAdIntervalMs);
a.showMiniAppAdCommand=b.showMiniAppAdCommand;a.isEmbeddedInWebview=b.isEmbeddedInWebview;a.playLogger=b.playLogger},ldc=function(a,b){var c;
return _.l(function(d){if(d.nextAddress==1){if(!a.showMiniAppAdCommand||!a.isEmbeddedInWebview)return d.return(kdc(a,b,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(a.isRateLimited)return d.return(kdc(a,b,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));a.adResolver=new _.hq;c=wBb(new vBb,b);cw(a.showMiniAppAdCommand,xBb(c));a.isRateLimited=!0;setTimeout(function(){return a.isRateLimited=!1},a.showAdIntervalMs);
return _.p(d,a.adResolver.promise,2)}return d.return(d.yieldResult)})};
idc.prototype.onAdFinished=function(a){a=Lxb(a);var b;(b=this.adResolver)==null||b.resolve(a)};
var kdc=function(a,b,c){var d;return _.l(function(e){if(e.nextAddress==1)e=_.p(e,(d=a.playLogger)==null?void 0:gdc(d,m3a(b),c),2);else{var g=e.return;var k=new Kxb;k=_.Yj(k,1,2);e=g.call(e,k)}return e})};var mdc=new _.jB("INNERTUBE_MANAGER_TOKEN");var ndc=function(){this.callbacks={}};
ndc.prototype.initialize=function(a){var b=this;this.callbacks=a;window.youtubewebview?window.youtubewebview.onmessage=function(c){odc(b,c)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(c){odc(b,c)})};
var odc=function(a,b){if(b.data)try{var c=UFb(b.data);if(_.og(c,1)!=null){var d=qBb(_.Tx(c,2));switch(_.Tx(c,1)){case "yt-mini-app-load-audio-state":var e,g;(g=(e=a.callbacks).onAudioStateLoaded)==null||g.call(e,_.Qx(d,ol(d,ME,1)));break;case "yt-mute-mini-app":var k,m;(m=(k=a.callbacks).onMuteMiniApp)==null||m.call(k);break;case "yt-unmute-mini-app":var n,r;(r=(n=a.callbacks).onUnmuteMiniApp)==null||r.call(n);break;case "yt-playable-exit":var t,u;(u=(t=a.callbacks).onExit)==null||u.call(t);break;
case "yt-post-play-nonce":var x,A;(A=(x=a.callbacks).onPostPlayNonceReceived)==null||A.call(x,Wx(d,2,ME));break;case "yt-confirm-exit-mini-app":var C,F;(F=(C=a.callbacks).confirmExitMiniApp)==null||F.call(C);break;case "yt-confirm-exit-mini-app-edu":var J,I;(I=(J=a.callbacks).confirmExitMiniAppEdu)==null||I.call(J);break;case "yt-benchmarking-response":var R,da;(da=(R=a.callbacks).onNativeBenchmarkingMessageReceived)==null||da.call(R,Wx(d,2,ME));break;case "yt-mini-app-load-3p-consent-state":var V,
fa;(fa=(V=a.callbacks).multiplayer3pAckStateLoaded)==null||fa.call(V,_.Qx(d,ol(d,ME,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var aa,ma;(ma=(aa=a.callbacks).exitMiniAppSeenStateLoaded)==null||ma.call(aa,_.Qx(d,ol(d,ME,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var Ba,Ca;(Ca=(Ba=a.callbacks).onNavigateToNewMiniApp)==null||Ca.call(Ba);break;case "yt-game-data-available":var ya,Ia;(Ia=(ya=a.callbacks).onGameDataAvailable)==null||Ia.call(ya,Wx(d,2,ME));break;case "yt-pause-mini-app":var db,
lb;(lb=(db=a.callbacks).onPauseMiniApp)==null||lb.call(db);break;case "yt-resume-mini-app":var Ua,Vb;(Vb=(Ua=a.callbacks).onResumeMiniApp)==null||Vb.call(Ua);break;case "yt-playable-ad-finished":var rb,sb;(sb=(rb=a.callbacks).onAdFinished)==null||sb.call(rb,Wx(d,2,ME))}}else _.Dl(Error("Vh"))}catch(yc){_.Bl(Error("Wh"))}else _.Dl(Error("Xh"))};var o3a=function(a){this.rpcErrorCode=a};var bS=function(a,b,c){this.intervalMs=a;this.apiFunc=b;this.type=c;this.schedulerReady=!0};
bS.prototype.call=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1){if(b.type!==1&&a===b.cachedValue)return d.return();b.pendingApiRequestResolver||(b.pendingApiRequestResolver=new _.hq);c=b.pendingApiRequestResolver.promise;b.cachedValue=a;return _.p(d,pdc(b),2)}return d.return(c)})};
bS.prototype.flush=function(a){a=a===void 0?!1:a;var b=this;return _.l(function(c){return b.cachedValue===void 0?c.return():_.p(c,b.apiFunc(b.cachedValue,a),0)})};
var pdc=function(a){var b,c,d;return _.l(function(e){switch(e.nextAddress){case 1:if(!a.schedulerReady||!a.pendingApiRequestResolver)return e.return();a.schedulerReady=!1;b=a.pendingApiRequestResolver;a.pendingApiRequestResolver=void 0;_.pe(e,2);if(a.cachedValue===void 0){e.jumpTo(4);break}return _.p(e,a.apiFunc(a.cachedValue),5);case 5:c=e.yieldResult,b.resolve(c);case 4:_.Jj(e,3);break;case 2:d=_.te(e),b.reject(d);case 3:setTimeout(function(){return _.l(function(g){a.schedulerReady=!0;return _.p(g,
pdc(a),0)})},a.intervalMs),_.ue(e)}})};var r3a=window.location.origin+"/miniapp_cloudsaves",p3a=[400,401],qdc=_.$i("cloud_save_game_data_rate_limit_ms",3E3),tdc=function(a){var b=this;this.JSC$14602_miniAppId=a;this.loadAttempts=0;this.cloudSaveIntervalMs=qdc;this.initialDownloadDataSucceeded=!1;this.JSC$14602_playNonceResolver=new _.hq;this.scottyUploadRateLimiter=new bS(this.cloudSaveIntervalMs,function(c,d){return rdc(b,c,d)},2);
this.downloadDataPromise=sdc(this);this.downloadDataPromise.then(function(){b.initialDownloadDataSucceeded=!0}).catch(function(){})},udc=function(a,b){b.then(function(c){return a.JSC$14602_playNonceResolver.resolve(c)})},vdc=function(a){return _.l(function(b){return a.cachedData===void 0?b.return(a.downloadDataPromise):b.return(a.cachedData)})},wdc=function(a,b){return _.l(function(c){a.cachedData=b;
if(!a.initialDownloadDataSucceeded)throw Error("Yh");return _.p(c,a.scottyUploadRateLimiter.call(b),0)})},xdc=function(){return new Promise(function(a){setTimeout(a,1E3,"")})},ydc=function(a,b){var c,d;
return _.l(function(e){if(e.nextAddress==1)return c=a.JSC$14602_miniAppId,_.p(e,Promise.race([a.JSC$14602_playNonceResolver.promise,xdc()]),2);d={"X-YouTube-MiniAppId":c,"X-YouTube-PostPlayNonce":e.yieldResult};"DELEGATED_SESSION_ID"in _.Di&&Boa(b,d);return e.return(d)})},rdc=function(a,b,c){c=c===void 0?!1:c;
return _.l(function(d){return n3a()?_.w("enable_cloud_save_error_popup_after_retry")?d.return(new Promise(function(e,g){var k,m,n,r,t;return _.l(function(u){switch(u.nextAddress){case 1:k=0,m=!0,r=n=null;case 2:if(!(m&&k++<2)){u.jumpTo(4);break}_.pe(u,5);return _.p(u,zdc(a,b,c),7);case 7:n=u.yieldResult;m=n.ok?!1:!p3a.includes(n.status);_.Jj(u,2);break;case 5:r=t=_.te(u);m=q3a(r);u.jumpTo(2);break;case 4:n?n.ok?(cS(a,qdc),e()):(cS(a,a.cloudSaveIntervalMs*2),g(Error("Zh`"+String(n.status),{cause:{rpcErrorCode:n.status}}))):
(cS(a,a.cloudSaveIntervalMs*2),g(r||Error("$h"))),_.ue(u)}})})):d.return(new Promise(function(e,g){var k,m;
return _.l(function(n){if(n.nextAddress==1){if(a.JSC$14602_miniAppId==="")return g(Error("ai")),n.return();_.pe(n,2);return _.p(n,zdc(a,b,c),4)}if(n.nextAddress!=2)return k=n.yieldResult,k.ok?(cS(a,qdc),e()):(cS(a,a.cloudSaveIntervalMs*2),g(Error("Zh`"+String(k.status),{cause:{rpcErrorCode:k.status}}))),_.Jj(n,0);m=_.te(n);cS(a,a.cloudSaveIntervalMs*2);g(m);_.ue(n)})})):d.return()})},zdc=function(a,b,c){c=c===void 0?!1:c;
var d,e,g;return _.l(function(k){if(k.nextAddress==1)return d=_.Bc((new TextEncoder).encode(b)),e=s3a(),_.p(k,ydc(a,e),2);g=k.yieldResult;return k.return(fetch(e,{method:"POST",body:new Blob([d]),headers:g,keepalive:c}))})},sdc=function(a){var b,c;
return _.l(function(d){if(d.nextAddress==1){if(!n3a())return d.return("");if(a.JSC$14602_miniAppId==="")throw Error("ai");if(a.loadAttempts>2)return d.return(a.downloadDataPromise);_.pe(d,2);return _.p(d,Adc(a),4)}if(d.nextAddress!=2)return b=d.yieldResult,d.return(b);c=_.te(d);if(q3a(c)&&++a.loadAttempts<2)return d.return(sdc(a));throw c;})},Adc=function(a){var b,c,d,e,g;
return _.l(function(k){switch(k.nextAddress){case 1:return _.pe(k,2),b=s3a(),_.p(k,ydc(a,b),4);case 4:return c=k.yieldResult,_.p(k,fetch(b,{method:"GET",headers:c}),5);case 5:return d=k.yieldResult,d.ok?_.p(k,d.text(),6):k.return(Promise.reject(Error("bi`"+String(d.status),{cause:new o3a(d.status)})));case 6:return e=k.yieldResult,k.return((new TextDecoder).decode(_.cb(e)));case 2:return g=_.te(k),k.return(Promise.reject(g))}})},cS=function(a,b){a.cloudSaveIntervalMs=b;
a.scottyUploadRateLimiter.intervalMs=a.cloudSaveIntervalMs};
tdc.prototype.flush=function(){var a=this;return _.l(function(b){return a.initialDownloadDataSucceeded?_.p(b,a.scottyUploadRateLimiter.flush(!0),0):b.return()})};var Bdc=nE(mE(1),kE(1)),Cdc=nE(mE(1),kE(3)),dS=function(a){this.callbacks=a};
_.f=dS.prototype;_.f.onAudioToggled=function(a,b){(b===void 0||b)&&_.uG("yt-mini-app-is-audio-enabled",a,2592E3)};
_.f.onPause=function(){this.onAudioToggled(!1,!1)};
_.f.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.f.returnNativeBenchmarkingMessage=function(){};
_.f.sendGameData=function(){};
_.f.sendStartGameFrameCapture=function(){};
var t3a=function(a,b,c){this.callbacks=a;var d=this;this.sdkVersion=new _.hq;this.channel=new Dab(_.ny({destination:window,iframe:b,origin:(new URL(c.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var e=eS;var g=mE(5);var k=new Uxb;k=_.Yx(k,1,1E4);g=_.rd(g,4,byb,k);e(d,g);d.onAudioToggled(d.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){d.sdkVersion.resolve("")},1E4)};
_.z(t3a,dS);_.f=t3a.prototype;_.f.onAudioToggled=function(a,b){dS.prototype.onAudioToggled.call(this,a,b===void 0?!0:b);b=eS;var c=mE(2),d=new Sxb;a=_.gg(d,1,a);a=_.rd(c,3,byb,a);b(this,a)};
_.f.onPause=function(){dS.prototype.onPause.call(this);eS(this,mE(3))};
_.f.onResume=function(){dS.prototype.onResume.call(this);eS(this,mE(4))};
_.f.returnNativeBenchmarkingMessage=function(a){var b=eS,c=mE(6);var d=kE(_.Fx(a,gz,1)?1:2);a=_.Fx(a,gz,1)?a:null;d=_.rd(d,5,lE,a);b(this,nE(c,d))};
_.f.sendGameData=function(a){var b=eS,c=mE(7);a=_.rd(c,5,byb,a);b(this,a)};
_.f.sendStartGameFrameCapture=function(){eS(this,mE(9))};
var fS=function(a,b,c){var d,e,g;return _.l(function(k){if(k.nextAddress==1)return d=a.callbacks,e=d.onSdkCalled,g=b,_.p(k,a.sdkVersion.promise,2);e.call(d,g,k.yieldResult,c);_.ue(k)})};
t3a.prototype.onMessage=function(){var a=this;return Gab(qE,function(b){var c,d,e,g,k,m,n,r,t,u,x,A,C,F,J,I,R,da,V,fa,aa,ma,Ba,Ca,ya,Ia,db,lb,Ua,Vb,rb,sb,yc,Mb,ub,Db,Wc,Mc,ia,ac,Qb,Ac,qb,Cb;return _.l(function(ab){switch(ab.nextAddress){case 1:if(!jyb(b.data))return _.Dl(Error("ci")),ab.return();c=_.Ux(b.data,1);_.w("enable_iframe_message_get_type_via_fields")&&(d=b.data,c=e=_.Ux(d,1));switch(c){case 8:if(b.data.hasMetadata()){var Pa=a.sdkVersion,mb=Pa.resolve;var Yb=b.data.getMetadata();Yb=_.Tx(Yb,
1);mb.call(Pa,Yb);clearTimeout(a.sdkVersionTimeoutId)}break;case 6:return ab.jumpTo(2);case 16:if(!_.Gx(b.data,dyb,14,rE))return ab.return();g=_.Xx(b.data,dyb,14,rE);(m=(k=a.callbacks).onGameFrameReceived)==null||m.call(k,g);return ab.return();case 1:if(Pa=_.Xx(b.data,Xxb,2,rE))switch(_.Ux(Pa,1)){case 1:a.callbacks.onFirstFrameReady();if(_.w("enable_network_request_logging_on_game_events")&&_.Fx(Pa,iE,4)){fS(a,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.Xj(Pa,iE,4));break}fS(a,"MINI_APP_SDK_API_FIRST_FRAME_READY");
break;case 2:(Yb=(mb=a.callbacks).onGameReady)==null||Yb.call(mb);if(_.w("enable_network_request_logging_on_game_events")&&_.Fx(Pa,iE,4)){fS(a,"MINI_APP_SDK_API_GAME_READY",_.Xj(Pa,iE,4));break}fS(a,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.Gx(Pa,jE,3,Yxb))a.callbacks.onResourceLoaded(_.Xx(Pa,jE,3,Yxb))}return ab.return();case 3:return ab.jumpTo(3);case 4:return ab.jumpTo(4);case 2:return ab.jumpTo(5);case 9:return ab.jumpTo(6);case 10:return a.callbacks.onClick(),ab.return();case 5:return ab.jumpTo(7);
case 11:if(!_.Gx(b.data,fE,9,rE))return ab.return();n=_.Xx(b.data,fE,9,rE);(t=(r=a.callbacks).onBenchmarkingMessageReceived)==null||t.call(r,n);Pa=b.reply;mb=mE(1);Yb=kE(1);var hd=new fE;var Gb=new Uint8Array(c$a(n,ol(n,Nxb,6))|0);hd=jl(hd,5,Nxb,_.Eb(Gb,!1));Yb=_.rd(Yb,5,lE,hd);Pa.call(b,nE(mb,Yb));return ab.return();case 12:return ab.jumpTo(8);case 13:return ab.jumpTo(9);case 15:if(!_.w("enable_open_yt_content"))return b.reply(Cdc),ab.return();if(!_.Gx(b.data,cyb,12,rE))return b.reply(nE(mE(1),kE(2))),
ab.return();Pa=_.Xx(b.data,cyb,12,rE);u=_.Tx(Pa,1);a.callbacks.onOpenYTContent(u);b.reply(Bdc);return ab.return();case 14:return ab.jumpTo(10);default:return ab.return()}ab.jumpTo(0);break;case 2:if(!_.Gx(b.data,oE,5,rE))return ab.return();mb=b.data;Pa=ol(mb,rE,5);mb=mb.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(Pa=rca(mb,mb[_.kb]|0,oE,Pa))||(Pa=oE[Fba])||(Pa=new oE,vb(Pa.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),Pa=oE[Fba]=Pa);x=Pa;Pa=_.Zf(x,gE,1,_.$f());A=_.h(Pa);C=A.next();
case 12:if(C.done){ab.jumpTo(14);break}F=C.value;J=new _.qj;J.level=_.Ux(F,2)===1?"WARNING":"ERROR";I=v3a(F.getSource());return _.p(ab,a.sdkVersion.promise,15);case 15:R={source:I,sdkVersion:ab.yieldResult};_.cc(_.Ex(F,6))!=null?(J.message=F.getMessage(),J.stack=_.Tx(F,5),R.sdkErrorType=w3a(_.Ux(F,6)),_.cc(_.Ex(F,7))!=null&&(R.sdkApi=x3a(_.Ux(F,7)))):J.stack=void 0;V=da=void 0;(V=(da=a.callbacks).onError)==null||V.call(da,{loggingError:J,metadata:R});C=A.next();ab.jumpTo(12);break;case 14:return ab.return();
case 3:return _.pe(ab,16),Pa=a.callbacks,mb=Pa.onSave,Yb=_.Xx(b.data,Txb,4,rE),Yb=_.Tx(Yb,1),_.p(ab,mb.call(Pa,Yb),18);case 18:b.reply(Bdc);_.Jj(ab,17);break;case 16:return fa=_.te(ab),aa=dw,ma=fa,Ba=a.callbacks,Ca="MINI_APP_SDK_API_SAVE_DATA",_.p(ab,a.sdkVersion.promise,19);case 19:aa(ma,Ba,Ca,ab.yieldResult),b.reply(Cdc);case 17:return _.p(ab,fS(a,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return ab.return();case 4:return _.pe(ab,21),_.p(ab,a.callbacks.onLoad(),23);case 23:ya=ab.yieldResult;Pa=b.reply;
mb=mE(1);Yb=kE(1);hd=new Txb;hd=_.vf(hd,1,ya);Yb=_.rd(Yb,3,lE,hd);Pa.call(b,nE(mb,Yb));_.Jj(ab,22);break;case 21:return Ia=_.te(ab),db=dw,lb=Ia,Ua=a.callbacks,Vb="MINI_APP_SDK_API_LOAD_DATA",_.p(ab,a.sdkVersion.promise,24);case 24:db(lb,Ua,Vb,ab.yieldResult),b.reply(Cdc);case 22:return _.p(ab,fS(a,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return ab.return();case 5:_.pe(ab,26);a.callbacks.onSendHighScore(Eg(_.Xx(b.data,hyb,3,rE).getValue()));b.reply(nE(mE(1),kE(1)));_.Jj(ab,27);break;case 26:return rb=
_.te(ab),sb=dw,yc=rb,Mb=a.callbacks,ub="MINI_APP_SDK_API_SEND_SCORE",_.p(ab,a.sdkVersion.promise,28);case 28:sb(yc,Mb,ub,ab.yieldResult),b.reply(Cdc);case 27:return _.p(ab,fS(a,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return ab.return();case 6:if(!_.Gx(b.data,iyb,8,rE)){ab.jumpTo(30);break}Pa=_.Xx(b.data,iyb,8,rE);Pa=_.Ux(Pa,1);return _.p(ab,fS(a,x3a(Pa)),30);case 30:return ab.return();case 7:return Pa=b.reply,mb=mE(1),Yb=kE(1),hd=a.callbacks.getLanguage(),Yb=jl(Yb,4,lE,qc(hd)),Pa.call(b,nE(mb,
Yb)),_.p(ab,fS(a,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return ab.return();case 8:if(!_.Gx(b.data,gyb,10,rE))return ab.return();Db=_.Xx(b.data,gyb,10,rE);Wc=a.callbacks;Mc=Wc.onSdkPerformanceUpdate;return _.p(ab,a.sdkVersion.promise,33);case 33:return Mc.call(Wc,Db,ab.yieldResult),ab.return();case 9:Pa=b.data;if(_.og(Pa,ol(Pa,rE,11))==null)return b.reply(nE(mE(1),kE(2))),ab.return();ia=Wx(b.data,11,rE);a.callbacks.onShareInviteCode(ia);b.reply(Bdc);return _.p(ab,fS(a,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),
34);case 34:return ab.return();case 10:if(_.Gx(b.data,Rxb,13,rE)){ab.jumpTo(35);break}return _.p(ab,a.callbacks.onShowMiniAppAd(2),36);case 36:return ac=ab.yieldResult,b.reply(nE(mE(1),$xb(ac))),_.p(ab,fS(a,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return ab.return();case 35:Pa=_.Xx(b.data,Rxb,13,rE);a:switch(_.Ux(Pa,1)){case 1:Pa={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};break a;case 2:Pa={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:Pa={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}Qb=
Pa;Ac=Qb.adType;qb=Qb.sdkApi;Pa=a.callbacks;mb=Pa.onShowMiniAppAd;Yb=_.Xx(b.data,Rxb,13,rE);Yb=_.Tx(Yb,2);return _.p(ab,mb.call(Pa,Ac,Yb||void 0),38);case 38:return Cb=ab.yieldResult,b.reply(nE(mE(1),$xb(Cb))),_.p(ab,fS(a,qb),39);case 39:return ab.return()}})})};
var eS=function(a,b){_.l(function(c){a.channel.send(b);_.ue(c)})},ew=function(a,b,c){this.callbacks=a;
var d=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;a=Ada(b,(new URL(c.toString())).origin);this.gameSnacks=new Uab(a);this.gameSnacks.page.onReady(function(){d.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){d.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var e,g;(g=(e=d.callbacks).onGameReady)==null||g.call(e)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(e,g){try{d.callbacks.onSendHighScore(g)}catch(k){dw(k,d.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(e,g){var k;return _.l(function(m){if(m.nextAddress==1)return _.pe(m,2),_.p(m,d.callbacks.onSave(d.decoder.decode(g)),4);if(m.nextAddress!=2)return _.Jj(m,0);k=_.te(m);dw(k,d.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return m.return()})});
this.gameSnacks.storage.onLoad(function(){var e,g;return _.l(function(k){if(k.nextAddress==1)return _.pe(k,2),_.p(k,d.callbacks.onLoad(),4);if(k.nextAddress!=2)return e=k.yieldResult,k.return(d.encoder.encode(e));g=_.te(k);dw(g,d.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return k.return(d.encoder.encode(""))})});
this.gameSnacks.init()};
_.z(ew,dS);ew.prototype.onAudioToggled=function(a,b){dS.prototype.onAudioToggled.call(this,a,b===void 0?!0:b);var c;(c=this.gameSnacks)==null||c.audio.update(a)};
ew.prototype.onPause=function(){dS.prototype.onPause.call(this);if(_.w("enable_gamesnacks_pause_resume_bugfix")){var a;(a=this.gameSnacks)==null||a.game.pause()}};
ew.prototype.onResume=function(){dS.prototype.onResume.call(this);if(_.w("enable_gamesnacks_pause_resume_bugfix")){var a;(a=this.gameSnacks)==null||a.game.resume()}};var Ddc=y3a,Edc=_.Rr(function(a){var b=a.data;var c=a.loadingProgress;a=_.h(_.ih("",void 0,"LYYTdd"));var d=a.next().value,e=a.next().value;a=_.h(_.ih(!1,void 0,"K0waae"));var g=a.next().value,k=a.next().value,m=[],n=function(){return"transform: scaleX("+(_.Bh(c)||0)+")"},r=null,t=function(){var C;
return(C=b()&&r)!=null?C:r=b().showAnniversaryAnimation?6:Ddc()};
_.wh(function(){var C;if(b().timeOutMessages&&((C=b().timeOutMessages)==null?0:C.length)){r=null;C=_.h(m);for(var F=C.next();!F.done;F=C.next())clearTimeout(F.value);m.length=0;z3a(b().timeOutMessages,m,e,k)}},"duAhC");
var u=function(){return!!b().persistentErrorMessageTitle},x=function(){return c!==void 0},A=function(){return b().title};
return _.q("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.q("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.q("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.q("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var C,F=(C=b().backgroundImage)==null?void 0:C.sources,J;return(F==null?0:F.length)?"background-image: url("+((J=F[0])==null?void 0:J.url)+")":
""}}),_.q("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.q(_.qi,{cond:function(){return!u()},
then:function(){var C={};return _.q("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.q("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.q(_.gt,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+t()},
data:function(){var F="loading_animation_"+t();return{animationConfig:{name:F,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+F+".json",loop:!0,autoplay:!0}}}})),_.q("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.q(_.qi,{cond:A,
then:function(){return _.q("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},A)}}),_.q("p",{class:_.et("mini-app-splash-screen-view-model-wiz__timeout-message",(C["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return g()},C)),
"aria-live":"polite"},d),_.q(_.qi,{cond:x,then:function(){return _.q("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.q("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:n}))}})))}}),_.q(_.qi,{cond:u,
then:function(){return _.q("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.q("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return b().persistentErrorMessageTitle}),_.q(_.qi,{cond:function(){return!!b().persistentErrorMessageDescription},
then:function(){return _.q("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return b().persistentErrorMessageDescription})}}))}})))},"nd");var Fdc=new _.jB("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var Gdc=Qh;Qh=function(a){function b(c){if(c){var d,e;(d=c.__spec)==null||(e=d.didUnmount)==null||e.call(d);for(d=0;d<c.childNodes.length;d++)b(c.childNodes[d])}}
Gdc==null||Gdc(a);ts(function(){for(var c=0;c<a.length;c++)b(a[c])})};var Hdc=_.Rr(function(a){var b=a.data;var c=a.score;var d=a.formattedScore;var e=a.onScoreChanged;var g=a.isEmbeddedInWebview;var k=_.Ql(),m=function(){var A;return _.y(b==null?void 0:(A=b())==null?void 0:A.buttonViewModel,_.Iu)},n=function(){var A;
return(c==null?void 0:c())||Number(b==null?void 0:(A=b())==null?void 0:A.lastScore)||0},r=function(){var A;
return(d==null?void 0:d())||((A=m())==null?void 0:A.title)||""},t,u=1;
if(a=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))a=Number(a),u=isNaN(a)?1:a/100;_.wh(function(){e==null||e(n());var A;var C=_.Ds((A=m())==null?void 0:A.onTap);if(C){A=_.y(C,uFb);var F,J,I;A=_.y(A==null?void 0:(F=A.panelLoadingStrategy)==null?void 0:(J=F.inlineContent)==null?void 0:(I=J.dialogViewModel)==null?void 0:I.customContent,yBb)}else A=void 0;if(F=A)F.score=r()},"QDsY1c");
a=_.lt(function(){var A,C,F=b==null?void 0:(A=b())==null?void 0:(C=A.loggingDirectives)==null?void 0:C.trackingParams;F&&_.tF(_.v().resolve(_.AH),F);return!1});
_.wi(function(){if(k.value){var A=k.value.querySelector("button"),C=m();A&&C&&A3a(A,C);Wl("yt-share-playable-with-high-score",function(){var F=n().toString(),J=b==null?void 0:b().onShareHighScoreCommand,I=b==null?void 0:b().highScoreShareClientParamIdentifier,R=g==null?void 0:g();J&&(R?(I=new jFb,F=_.vf(I,2,F),cw(J,F.JSC$10090_serializeBinary())):I&&(_.v().resolve(Fdc).clientParams.set(I,{miniAppClientParams:{highScore:F}}),j3a(J,!1)))})}});
var x=function(){var A=m();A&&(c==null?0:c())&&A.accessibilityText&&(A.accessibilityText=A.accessibilityText.replace(t,r()));t=r();return{numberValue:n(),numberText:r(),heightPx:36,fontSizeMultiplier:u,shouldAnimate:!(c==null||!c())&&!0}};
return _.q("yt-mini-app-score-button-view-model",{class:function(){var A={};return _.ht("mini-app-score-button-view-model-wiz",(A["mini-app-score-button-view-model-wiz--is-visible"]=n()!==0,A))},
el:k,"on:click":a},_.Tg(!1,function(){return _.q("span",{style:"display:none;"},n)}),_.q(_.Hu,{data:function(){var A;
return b==null?void 0:(A=b())==null?void 0:A.buttonViewModel}},{buttonViewModel:function(A){return _.q(_.Qu,{data:A.data,
animatedTextProps:x})}}))},"od");var Mdc=_.Rr(function(a){var b,c=(b=_.vG("yt-mini-app-is-theater-mode-enabled"))!=null?b:!1,d=_.w("enable_playable_container_save_button"),e=_.w("enable_play_next_destination_page_in_toolbar");b={};return _.q("ytm-mini-app-top-bar-view-model",null,_.q("div",{class:_.et("yt-mini-app-top-bar-view-model",(b["yt-mini-app-top-bar-view-model--mobile"]=!1,b["yt-mini-app-top-bar-view-model--desktop"]=!0,b))},_.q("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.q(_.qi,{cond:function(){var g;
return!!a.data().backButtonEdu&&!((g=a.isExitMiniAppSeen)==null?0:g.call(a))},
then:function(){return _.q(_.Hu,{data:function(){return a.data().backButtonEdu}},{buttonViewModel:_.Qu})},
else:function(){return _.q(_.Hu,{data:function(){return a.data().backButton}},{buttonViewModel:_.Qu})}}),_.q(_.qi,{cond:function(){return a.data().viewAllButton&&!0},
then:function(){return _.q(_.Hu,{data:function(){return a.data().viewAllButton}},{buttonViewModel:_.Qu})}}),_.q(_.qi,{cond:function(){return a.data().title&&!0},
then:function(){return _.q("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return a.data().title})}})),_.q("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.q(_.qi,{cond:function(){var g;
return(g=a.isDesktopPlayPage)==null?void 0:g.call(a)},
then:function(){return _.q(_.Wh,null,_.q(Idc,{highScoreButton:function(){return a.data().highScoreButton},
score:a.score,formattedScore:a.formattedScore,onScoreChanged:a.onScoreChanged,isEmbeddedInWebview:a.isEmbeddedInWebview}),_.q(Jdc,{enableSaveButton:function(){return _.Bh(d)},
saveButton:function(){return a.data().saveButton},
isSaved:a.isSaved,onSaveToggled:function(){return a.onSaveToggled}}),_.q(Kdc,{menuButton:function(){return a.data().menuButton}}))},
else:function(){return _.q(_.qi,{cond:function(){return!1},
then:function(){return _.q(_.Hu,{data:function(){return a.data().playPageButton}},{buttonViewModel:function(g){return _.q(_.Qu,{data:g.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.q(Idc,{highScoreButton:function(){return a.data().highScoreButton},
score:a.score,formattedScore:a.formattedScore,onScoreChanged:a.onScoreChanged,isEmbeddedInWebview:a.isEmbeddedInWebview})}})}})),_.q("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.q(_.Hu,{data:function(){return a.data().muteButton}},{toggleButtonViewModel:function(g){var k=g.data;
return _.q(_.Ku,{data:function(){var m,n;return Object.assign({},k(),{isToggled:(n=(m=a.isAudioEnabled)==null?void 0:m.call(a))!=null?n:!0})},
onToggle:a.onAudioToggled,useOutlinedIcon:!0})}}),_.q(_.Hu,{data:function(){return a.data().theatreModeButton}},{toggleButtonViewModel:function(g){var k=g.data;
return _.q("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.q(_.Ku,{data:function(){return Object.assign({},k(),{isToggled:c})},
useOutlinedIcon:!0}))}}),_.q(Ldc,{fullscreenButton:function(){return a.data().fullscreenButton}}),_.q(_.qi,{cond:function(){return _.Bh(e)&&a.data().viewAllButton&&!1},
then:function(){return _.q(_.Hu,{data:function(){return a.data().viewAllButton}},{buttonViewModel:_.Qu})}}),_.q(_.qi,{cond:function(){var g;
return!((g=a.isDesktopPlayPage)==null?0:g.call(a))},
then:function(){return _.q(_.Wh,null,_.q(Jdc,{enableSaveButton:function(){return _.Bh(d)},
saveButton:function(){return a.data().saveButton},
isSaved:a.isSaved,onSaveToggled:function(){return a.onSaveToggled}}),_.q(Kdc,{menuButton:function(){return a.data().menuButton}}))}}))))},"pd");
Mdc.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var Kdc=_.Rr(function(a){return _.q("div",{class:"yt-mini-app-top-bar-view-model__center-buttons-child"},_.q(_.Hu,{data:a.menuButton},{buttonViewModel:_.Qu}))},"qd"),Jdc=_.Rr(function(a){var b=a.enableSaveButton;
var c=a.saveButton;var d=a.isSaved;var e=a.onSaveToggled;return _.q(_.qi,{cond:function(){return b()&&!(c==null||!c())},
then:function(){return _.q("div",{class:"yt-mini-app-top-bar-view-model__center-buttons-child"},_.q(_.Hu,{data:function(){var g=_.y(c==null?void 0:c(),_.Ju),k;return{toggleButtonViewModel:Object.assign({},g,{isToggled:(k=d==null?void 0:d())!=null?k:!(g==null||!g.isToggled)})}}},{toggleButtonViewModel:function(g){return _.q(_.Ku,{data:g.data,
onToggle:e})}}))}})},"rd"),Idc=_.Rr(function(a){var b=a.highScoreButton;
var c=a.score;var d=a.formattedScore;var e=a.onScoreChanged;var g=a.isEmbeddedInWebview;return _.q(_.Hu,{data:b},{miniAppScoreButtonViewModel:function(k){return _.q("div",{class:"yt-mini-app-top-bar-view-model__center-buttons-child"},_.q(Hdc,{data:k.data,score:c,formattedScore:d,onScoreChanged:e,isEmbeddedInWebview:g}))}})},"sd"),Ldc=_.Rr(function(a){a=a.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.q(_.Wh,null):_.q(_.Hu,{data:a},{buttonViewModel:_.Qu})},"td");_.Ndc=new _.jB("DESKTOP_CURRENT_PAGE");var Tdc=_.Rr(function(a){var b=a.data;var c=_.w("force_active_time_logging_webview"),d=_.w("skip_logs_after_end_event"),e=!1,g=new ndc,k=void 0,m=void 0,n=_.v().resolve(mdc),r=new idc,t=void 0,u=void 0,x=[],A=void 0,C=void 0,F=!1,J=!1,I=!1,R=!1,da=new _.hq,V=_.v().resolve(Fdc),fa=_.v().resolve(_.ZR),aa=_.v().resolve(_.Xi(xJ)),ma,Ba=(ma=_.v().resolve(_.Xi(_.Ndc)))==null?void 0:ma.getCurrentPage(),Ca=!1,ya=0,Ia=function(Ta){Ta.preventDefault();return Ta.returnValue=""},db;
a=_.h(_.ih(!((db=_.vG("yt-mini-app-is-audio-enabled"))!=null&&!db),void 0,"OWhDuc"));var lb=a.next().value,Ua=a.next().value,Vb;db=_.h(_.ih(!((Vb=_.vG("exit-mini-app-seen-state"))==null||!Vb),void 0,"Y6EwLc"));var rb=db.next().value,sb=db.next().value;Vb=_.h(_.ih(!1,void 0,"KXzEt"));var yc=Vb.next().value,Mb=Vb.next().value;Vb=_.h(_.ih(void 0,void 0,"BJjl6e"));var ub=Vb.next().value,Db=Vb.next().value;Vb=_.h(_.ih(void 0,void 0,"OQLPPe"));var Wc=Vb.next().value,Mc=Vb.next().value;Vb=_.h(_.ih(!0,void 0,
"v9xwhe"));var ia=Vb.next().value,ac=Vb.next().value;Vb=_.h(_.ih(!1,void 0,"S0vhhe"));var Qb=Vb.next().value,Ac=Vb.next().value;Vb=_.h(_.ih(void 0,void 0,"bJBrzf"));var qb=Vb.next().value,Cb=Vb.next().value;Vb=_.h(_.ih(0,void 0,"LhNhAb"));var ab=Vb.next().value,Pa=Vb.next().value,mb=_.Pl(),Yb=function(){return b().isEmbeddedInWebview},hd=function(){return b().hasPlayNextShelf};
Wl("yt-page-type-changed",function(Ta){if(_.w("enable_is_mini_app_page_active_bugfix"))Ta.detail.newPageSubtype!=="mini_app"&&ia()&&Bd();else if(Ta=_.p0a()==="mini_app",Ta!==ia())if(ac(Ta),Ta){var mc;Ta=(mc=b().playableId)==null?void 0:mc.toString();Ta!==void 0&&window.location.href.includes(Ta)&&!J&&(R=!0,Gb(),ag(wb.value))}else Ta||Bd()});
Wl("yt-action",function(Ta){Ta.detail.actionName==="yt-engagement-panel-visible-changed"&&Ta.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Ta.detail.args[2]==="PAmini_app_panel"&&Bd();_.w("enable_is_mini_app_page_active_bugfix")?Ta.detail.actionName==="yt-history-load"&&!ia()&&(Ba==null?0:Ba.active)?(ac(!0),Gb(),ag(wb.value)):Ta.detail.actionName==="yt-history-load"&&ia()&&!b().isEmbeddedInWebview&&Vn():ia()&&Ta.detail.actionName==="yt-history-load"&&(R?R=!1:b().isEmbeddedInWebview||Vn())});
_.zh(function(){Tc()});
_.wh(function(){Gb()},"orslld");
var Gb=function(){var Ta=b().playableId,mc=b().localReleaseId,$c=b().derivedDeviceInterface;if(J)_.Dl(new _.qj("[MiniAppContainerViewModel] onEnter was called more than once"));else{J=!0;k=new Wcc(Ta,mc,$c,document.visibilityState==="visible");$cc(k);m=new tdc(Ta);Odc(n,Ta);jdc(r,{showMiniAppAdCommand:b().showMiniAppAdCommand,isEmbeddedInWebview:b().isEmbeddedInWebview,playLogger:k});mpa()&&(C=document.body.style.backgroundColor,_.az(document.body,"background-color","black"));Xn();Sb();da=new _.hq;
if(b().isEmbeddedInWebview){if(Ta=(new URLSearchParams(window.location.search)).get("postPlayNonce"))Ycc(k,Ta),Ca=!0;g.initialize({onAudioStateLoaded:function(Hc){Gf(Hc)},
onMuteMiniApp:function(){Gf(!1)},
onUnmuteMiniApp:function(){Gf(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(Hc){Ca||(Ycc(k,Hc),Ca=!0)},
confirmExitMiniApp:function(){var Hc,gf,pf;return _.l(function(yd){if(yd.nextAddress==1)return b().confirmExitMiniAppCommand?_.p(yd,Promise.race([da.promise,Promise.resolve(!1)]),2):yd.return();(Hc=yd.yieldResult)?!b().confirmExitMiniAppCommandEdu||(pf=(gf=rb)==null?void 0:gf())!=null&&pf?ff(b().confirmExitMiniAppCommand):(ff(b().confirmExitMiniAppCommandEdu),_.uG("exit-mini-app-seen-state","true",2592E6)):ff(b().closeMiniAppCommand);_.ue(yd)})},
onNativeBenchmarkingMessageReceived:function(Hc){Hc=Pxb(_.g4a(Hc));if(_.Gx(Hc,_.bw,3,Mxb)){var gf=_.Xx(Hc,_.bw,3,Mxb),pf=k3a();var yd=Eg(pf.getSeconds())-Eg(gf.getSeconds());gf=_.bg(pf,2)-_.bg(gf,2);yd<0&&gf>0?(yd+=1,gf-=1E9):yd>0&&gf<0&&(--yd,gf+=1E9);yd=(new gz).setSeconds(yd);yd=_.Uc(yd,2,_.dc(gf),0);_.qd(Hc,1,yd)}var Wv;(Wv=u)==null||Wv.returnNativeBenchmarkingMessage(Hc)},
multiplayer3pAckStateLoaded:function(Hc){Vn(Hc)},
exitMiniAppSeenStateLoaded:function(Hc){b().confirmExitMiniAppCommandEdu&&sb(Hc)},
onNavigateToNewMiniApp:function(){ff(b().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(Hc){Hc=new URLSearchParams(Hc);var gf=void 0;Hc.has("invite_code")&&(gf=new Wxb,Hc=Hc.get("invite_code"),gf=_.vf(gf,1,Hc));if(Hc=gf){var pf;(pf=u)==null||pf.sendGameData(Hc)}},
onPauseMiniApp:function(){e=!0;Rm()},
onResumeMiniApp:function(){e=!0;ld()},
onAdFinished:function(Hc){r.onAdFinished(Hc)}});
b().showMultiplayer3pConsentDialogCommand||da.resolve(!0);ff(b().onContainerReadyCommand)}else Ycc(k),da.resolve(!0);udc(m,Xcc(k));Xcc(k).then(function(Hc){Hc={miniAppPlayData:{postPlayNonce:Hc}};var gf,pf=(gf=b().loggingDirectives)==null?void 0:gf.trackingParams;pf&&_.ls().stateChanged(pf,Hc)});
Ta=b().showSignInDialogCommand;!n3a()&&Ta&&(_.uG("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),ff(Ta));b().confirmExitMiniAppCommand&&aa&&(Ta=h3a(b().confirmExitMiniAppCommand))&&(aa.customConfirmationCommand=Ta)}},Tc=function(){if(!d||J)C&&_.az(document.body,"background-color",C),F=!1,A&&A.release(),m.flush().catch(function(Ta){_.Dl(Ta)}),n.flush().catch(function(Ta){_.Dl(Ta)}),bdc(k),Xd(),u=void 0,d&&(J=!1),Pdc(V)},Bd=function(){ac(!1);
Tc();Mb(!1);Cb(void 0);Db(void 0);Mc(void 0);ya=0;Pa(0);d||(J=!1)},Rm=function(){var Ta;
(Ta=u)==null||Ta.onPause();A&&A.release();m.flush().catch(function(mc){_.Dl(mc)});
n.flush().catch(function(mc){_.Dl(mc)});
adc(k)},ld=function(){var Ta;
(Ta=u)==null||Ta.onResume();Sb();Ta=k;Ta.isForeground=!0;aS(Ta,"PLAY_EVENT_TYPE_PLAY_RESUME")},Gf=function(Ta){var mc;
(mc=u)==null||mc.onAudioToggled(Ta);Ua(Ta)},Vn=function(Ta){b().showMultiplayer3pConsentDialogCommand&&(b().isEmbeddedInWebview&&Ta!==void 0&&da.resolve(Ta),!Ta&&_.p0a()==="mini_app"&&ff(b().showMultiplayer3pConsentDialogCommand))},Af=function(){var Ta,mc,$c,Hc;
return _.l(function(gf){if(gf.nextAddress==1){if(d&&!J)return gf.return();!b().isLivestream||b().disableVideoCapture||(Ta=u)!=null&&Ta.sendStartGameFrameCapture();mc=(new URL(window.location.href)).searchParams;if(mc.has("invite_code")){var pf=new Wxb,yd=mc.get("invite_code");$c=_.vf(pf,1,yd);(Hc=u)==null||Hc.sendGameData($c)}yc()||(Mb(!0),pf=k,pf.state!==1?_.Dl(new _.qj("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+Ucc[pf.state])):(_.bj("mini_app_ids_without_game_ready").includes(pf.JSC$14558_miniAppId)&&
(pf.gameReady=!0),pf.state=2,pf.beforeReady=!1,$R(pf,"ma_ffr"),aS(pf,"PLAY_EVENT_TYPE_PLAY_READY")));return _.p(gf,da.promise,2)}ff(b().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();b().isEmbeddedInWebview||Vn();_.ue(gf)})},$h=function(){var Ta=k;
Ta.gameReady=!0;$R(Ta,"ma_gr")},zi=function(Ta){var mc;
return _.l(function($c){if($c.nextAddress==1)return _.pe($c,2),_.p($c,wdc(m,Ta),4);if($c.nextAddress!=2)return _.Jj($c,0);mc=_.te($c);ff(b().showSavingErrorPopupCommand);throw mc;})},td=function(){var Ta,mc;
return _.l(function($c){if($c.nextAddress==1)return _.pe($c,2),_.p($c,vdc(m),4);if($c.nextAddress!=2)return Ta=$c.yieldResult,$c.return(Ta);mc=_.te($c);ff(b().showLoadingErrorDialogCommand);throw mc;})},aq=function(Ta){k.logError(Ta)},Wn=function(Ta,mc,$c){ddc(k,Ta,mc,$c)},Sm=function(Ta,mc){fdc(k,Ta,mc)},Vi=function(){!c&&b().isEmbeddedInWebview||_.Xk();
cdc(k,!0);F||(window.addEventListener("beforeunload",Ia,{capture:!0}),F=!0)},be=function(Ta){var mc,$c,Hc,gf,pf,yd,Wv;
return _.l(function(Xv){if(Xv.nextAddress==1)return n&&(!t||t<Ta)&&Ta>0?_.p(Xv,Qdc(n,Ta),3):Xv.jumpTo(0);mc=Xv.yieldResult;$c=_.h(mc);Hc=$c.next().value;gf=$c.next().value;pf=Hc;yd=gf;((Wv=pf)==null?0:Wv.displayString)&&yd&&(Db(yd),Mc(pf.displayString));_.ue(Xv)})},ap=function(Ta){var mc=b().onBenchmarkingMessageReceivedCommand;
if(mc){var $c=k3a();_.rd(Ta,3,Mxb,$c);cw(mc,Qxb(Ta))}},sa=function(Ta){var mc=b().onGameFrameReceivedCommand;
if(mc){var $c=new vBb;var Hc=new sBb;var gf=Rx(Ta,1);Hc=_.ql(Hc,1,gf);Ta=_.Tx(Ta,2);Ta=_.vf(Hc,2,Ta);$c=_.qd($c,2,Ta);cw(mc,xBb($c))}},Fa=function(){var Ta=new URLSearchParams(window.location.search);
if(b().isEmbeddedInWebview&&Ta&&Ta.get("override_hl")==="true"&&Ta.get("hl"))return Ta.get("hl");Ta=document.documentElement.lang;return Ta!==""?Ta:_.Op},La=function(Ta){var mc=b().onShareInviteCodeCommand;
if(mc)if(b().isEmbeddedInWebview){var $c=new jFb;Ta=_.vf($c,1,Ta);cw(mc,lFb(Ta))}else $c=b().inviteCodeShareClientParamIdentifier,V.clientParams.set($c,{miniAppClientParams:{inviteCode:Ta}}),ff(mc)},nb=function(Ta){var mc,$c,Hc;
return _.l(function(gf){if(gf.nextAddress==1)return mc=b().onMiniAppOpenYtContentRequested,n&&_.w("enable_open_yt_content")&&mc?_.p(gf,Rdc(n,Ta),3):gf.jumpTo(0);$c=gf.yieldResult;if($c==="OK")if(b().isEmbeddedInWebview){var pf=new oBb;Hc=jl(pf,2,ME,qc(Ta));cw(mc,rBb(Hc))}else fa.clientData.set("video_id",Ta),ff(mc);_.ue(gf)})},hc=function(Ta){ya+=_.bg(Ta,3);
Ta=Math.min(Math.log(1+ya/15E6*9)/Math.log(10),.99);Pa(Ta);fb(Ta)},fb=_.Iy(function(Ta){var mc=b().updateLoadingProgressCommand;
if(mc){var $c=new oBb;Ta=jl($c,3,ME,_.Xb(Ta));cw(mc,rBb(Ta))}},100),ib=function(Ta){return ldc(r,Ta)},Sb=function(){var Ta,mc;
((Ta=_.P5a())==null?void 0:(mc=Ta.wakeLock)==null?void 0:mc.request)!=null&&_.P5a().wakeLock.request("screen").then(function($c){A=$c}).catch(function(){})},wb=_.Pl();
_.wh(function(){b().isSupportedCountry&&(n3a()||_.w("enable_sign_in_promo")||!b().showSignInDialogCommand?ag(wb.value):ff(b().onMiniAppReadyCommand))},"RLknKf");
var vd=function(){return _.q("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return yc()?0:-1},
el:wb})},ag=function(Ta,mc){mc=mc===void 0?!1:mc;
var $c=Bb();$c&&(mc||$c.toString()!==Ta.getAttribute("src"))&&(u=u3a(b().source,{isAudioEnabled:lb,onFirstFrameReady:Af,onGameReady:$h,onSave:zi,onLoad:td,onError:aq,onSdkCalled:Wn,onSdkPerformanceUpdate:Sm,onClick:Vi,onSendHighScore:be,onBenchmarkingMessageReceived:ap,getLanguage:Fa,onShareInviteCode:La,onResourceLoaded:hc,onOpenYTContent:nb,onShowMiniAppAd:ib,onGameFrameReceived:sa},Ta,$c),ns(Ta,"load",function(){$R(k,"ma_il");ns(Ta,"load",function(){ag(Ta,!0)})}),_.Sd(Ta,$c))},Bb=function(){var Ta=
b().url;
if(Ta&&(Ta=_.Ak(Ta),Ta!==null)){if(b().source&&b().source==="MINI_APP_SOURCE_GAMESNACKS")Ta=_.hf(Ta,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.w("enable_origin_query_parameter_bugfix")){var mc=_.Pw(_.YUa(Ta.toString()));mc=new URLSearchParams(mc||"");mc.set("origin",window.location.origin);mc=mc.toString();Ta=_.zd(Ta).toString();Ta=_.xd(Dcb.exec(Ta)[0]+(mc.trim()?"#"+mc:""))}return Ta}},hm=function(){var Ta={};
Ta=_.et("yt-mini-app-container-view-model__loading-screen",(Ta["yt-mini-app-container-view-model__loading-screen--fade-out"]=yc,Ta));var mc=function(){return yc()?1:ab()};
return _.q("div",{class:Ta},_.q(_.Hu,{data:function(){return b().splashScreen}},{miniAppSplashScreenViewModel:function($c){return _.q(Edc,{data:$c.data,
loadingProgress:mc})}}))},Xn=function(){x=[];
x.push(_.rs(window,"visibilitychange",function(){I||e&&Yb()||(document.visibilityState==="visible"?ld():Rm())}));
x.push(_.rs(window,"pagehide",function(){Tc()}));
x.push(_.rs(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&mb.value.dispatchEvent(new Event("tap"))},0)}));
x.push(_.rs(mb.value,"pointerdown",function(){cdc(k,!1)},!0));
x.push(_.rs(mb.value,"pause",function(){I=!0;Rm()}));
x.push(_.rs(mb.value,"play",function(){I=!1;ld()}));
x.push(_.rs(mb.value,"exit",function(){Tc()}));
var Ta=navigator.keyboard,mc=Ta&&Ta.lock;x.push(_.rs(window,irb,function(){Ac(krb());if(krb()){if(_.w("enable_play_next_shelf_styling_in_playable_container")&&b().hasPlayNextShelf){dr("yt-mini-app-container-view-model","yt-mini-app-container-view-model--desktop-with-play-next-shelf");for(var $c=document.getElementsByClassName("ytd-rich-grid-renderer"),Hc=0;Hc<$c.length;Hc++)$c[Hc].style.display="none"}mk("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen");
mc&&Ta.lock(["Escape"])}else{if(_.w("enable_play_next_shelf_styling_in_playable_container")&&b().hasPlayNextShelf)for(mk("yt-mini-app-container-view-model","yt-mini-app-container-view-model--desktop-with-play-next-shelf"),$c=document.getElementsByClassName("ytd-rich-grid-renderer"),Hc=0;Hc<$c.length;Hc++)$c[Hc].style.display="flex";dr("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen");mc&&Ta.unlock()}}));
b().showMultiplayer3pConsentDialogCommand&&x.push(_.rs(window,"yt-playables-ack-3p-data-usage",function(){Sdc(n)}));
b().confirmExitMiniAppCommandEdu&&x.push(_.rs(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.uG("exit-mini-app-seen-state","true",2592E6)}))},Xd=function(){x.forEach(function(Ta){os(Ta)});
window.removeEventListener("beforeunload",Ia,{capture:!0})},ff=function(Ta){Ta&&j3a(Ta,b().isEmbeddedInWebview||!1)},mk=function(Ta,mc){Ta=_.h(mb.value.getElementsByClassName(Ta));
for(var $c=Ta.next();!$c.done;$c=Ta.next())$c.value.classList.add(mc)},dr=function(Ta,mc){Ta=_.h(mb.value.getElementsByClassName(Ta));
for(var $c=Ta.next();!$c.done;$c=Ta.next())$c.value.classList.remove(mc)};
return function(){var Ta={};Ta=_.et("yt-mini-app-container-view-model",(Ta["yt-mini-app-container-view-model--desktop"]=!0,Ta["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return b().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Ta["yt-mini-app-container-view-model--ios-web-view"]=mpa(),Ta["yt-mini-app-container-view-model--no-top-bar"]=function(){return!b().topBar},Ta["yt-mini-app-container-view-model--desktop-with-play-next-shelf"]=function(){return b().hasPlayNextShelf&&_.w("enable_play_next_shelf_styling_in_playable_container")},
Ta["yt-mini-app-container-view-model--desktop-play-page"]=function(){return b().hasPlayNextShelf},Ta));
var mc={};mc=_.et("yt-mini-app-container-view-model__content",(mc["yt-mini-app-container-view-model__content--desktop-content"]=!0,mc["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return b().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},mc["yt-mini-app-container-view-model--desktop-play-page"]=function(){return b().hasPlayNextShelf},mc));
return _.q("mini-app-container-view-model",{el:mb},_.q("div",{class:Ta},_.q(_.qi,{cond:function(){return b().topBar&&!Qb()},
then:function(){return _.q(_.Hu,{data:function(){return b().topBar}},{miniAppTopBarViewModel:function($c){return _.q(Mdc,{data:$c.data,
isAudioEnabled:lb,onAudioToggled:function(Hc){Gf(Hc)},
score:ub,formattedScore:Wc,onScoreChanged:function(Hc){t=Hc},
isEmbeddedInWebview:Yb,isSaved:qb,onSaveToggled:function(Hc){Cb(Hc)},
isExitMiniAppSeen:rb,isDesktopPlayPage:hd})}})}}),_.q("div",{class:mc},_.q(_.qi,{cond:ia,
then:function(){return vd()}}),_.q(_.qi,{cond:function(){return!b().isEmbeddedInWebview},
then:function(){return hm()}}))))}()},"ud");
Tdc.idomCompat=!0;_.Ts(Tdc,"mini-app-container-view-model",{props:{data:_.VG}});var Udc=_.Rr(function(a){var b=a.data;return _.q("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.q("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.lt(function(){var c=b().onTap;c&&_.Gs(c)})},_.q(_.qi,{cond:function(){return b().icon},
then:function(c){return _.q(_.qt,{icon:function(){return c().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.q("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return b().title})))},"vd");
Udc.idomCompat=!0;var Vdc=_.Rr(function(a){var b=_.Pl(),c=_.h(_.ih(void 0,void 0,"YOjMJd")),d=c.next().value,e=c.next().value,g=function(){var A=d();if(b.value&&A!==void 0)return Math.abs(A)},k=function(){var A=g();
return A===void 0||A<=3},m=function(){var A=g();
A=b.value&&A!==void 0?b.value.scrollWidth-b.value.clientWidth-A:void 0;return A===void 0||A<=3},n=function(A){b.value&&b.value.scrollBy({top:0,
left:(_.Fi("HTML_DIR")==="rtl"?-1:1)*A*b.value.clientWidth,behavior:"smooth"})},r=function(){var A;
e((A=b.value)==null?void 0:A.scrollLeft)},t=function(){n(-.5)},u=function(){n(.5)};
c=_.lt(function(){r()});
_.pi(function(){r()});
var x={};return _.q("yt-sponsorships-scrollable-shelf",{class:_.et("ytdSponsorshipsScrollableShelfHost",a.className)},_.q("div",{class:_.et("ytdSponsorshipsScrollableShelfContent",(x.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return!k()&&!m()},x.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return!k()&&m()},x.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return k()&&!m()},x)),
el:b,"on:scroll":c},a.children),_.q(_.qi,{cond:function(){return!k()},
then:function(){return _.q(_.Hu,{data:function(){return a.data().previousButton}},{buttonViewModel:function(A){return _.q(_.Qu,{data:A.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:t})}})}}),_.q(_.qi,{cond:function(){return!m()},
then:function(){return _.q(_.Hu,{data:function(){return a.data().nextButton}},{buttonViewModel:function(A){return _.q(_.Qu,{data:A.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:u})}})}}))},"wd");
Vdc.idomCompat=!0;var Wdc=_.Rr(function(a){var b=a.data;return _.q("yt-sponsorships-hub",{class:"ytdSponsorshipsHubHost"},_.q("div",{class:"ytdSponsorshipsHubHeader"},_.q("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.q("div",{class:"ytdSponsorshipsHubAvatar"},_.q(_.Hu,{data:function(){return b().avatar}},{avatarViewModel:_.QK})),_.q(_.qi,{cond:function(){return b().badgeImage},
then:function(c){return _.q("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.q("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.q("div",{class:"ytdSponsorshipsHubBadge"},_.q(_.Ps,{data:c,targetWidth:24,targetHeight:24,alt:""}))))}})),_.q("div",{class:"ytdSponsorshipsHubDetails"},_.q("div",{class:"ytdSponsorshipsHubTierName"},function(){return b().tierName}),_.q("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return b().membershipType}),_.q("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return b().membershipDurationOrExpiry})),_.q("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.q(_.qi,{cond:function(){return b().manageButton},
then:function(c){return _.q(_.Hu,{data:c},{buttonViewModel:function(d){return _.q(_.Qu,{data:d.data,className:"ytdSponsorshipsHubManageButton"})}})}}),_.q(_.qi,{cond:function(){return b().actionMenuButton},
then:function(c){return _.q(_.Hu,{data:c},{buttonViewModel:function(d){return _.q(_.Qu,{data:d.data,className:"ytdSponsorshipsHubActionMenuButton"})}})}}))),_.q("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return b().perksTitle}),_.q(Vdc,{data:function(){return{previousButton:b().previousPerkButton,
nextButton:b().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.q("div",{class:"ytdSponsorshipsHubPerkCards"},_.q(_.Hu,{data:function(){return b().perkCards}},{sponsorshipsHubPerkCardViewModel:Udc}))))},"xd");
Wdc.idomCompat=!0;_.Ts(Wdc,"yt-sponsorships-hub",{props:{data:_.VG}});_.Xdc=_.Rr(function(a){var b=a.data;return _.q("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.ot({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var c;return((c=b().badgeCutoutRadius)!=null?c:14)+"px"}})},_.q("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.q(_.Hu,{data:function(){return b().startAvatar}},{avatarViewModel:_.QK}),_.q(_.Hu,{data:function(){return b().endAvatar}},{avatarViewModel:_.QK})),_.q(_.Hu,{data:function(){return b().badge}},{contentPreviewImageViewModel:function(c){return _.q("div",
{class:"ytDualAvatarViewModelBadge"},_.q(_.wL,{data:c.data}))}}))},"yd");
_.Xdc.idomCompat=!0;var Zdc=_.Rr(function(a){var b=a.data;var c,d=!((c=_.v().resolve(_.Xi(_.Ks)))==null||!c());a=_.ph(function(){var g,k,m=d?(g=b().header)==null?void 0:g.backgroundColorDarkMode:(k=b().header)==null?void 0:k.backgroundColorLightMode;if(m!==void 0)return _.Dq(m)},void 0,"oi9Sid");
c=_.ph(function(){var g,k;return d?(g=b().header)==null?void 0:g.backgroundImagePart1Dark:(k=b().header)==null?void 0:k.backgroundImagePart1Light},void 0,"V61Fxf");
var e=_.ph(function(){var g,k;return d?(g=b().header)==null?void 0:g.backgroundImagePart2Dark:(k=b().header)==null?void 0:k.backgroundImagePart2Light},void 0,"wfEWad");
return _.q("yt-sponsorships-perks-list",{class:"ytdSponsorshipsPerksListHost"},_.q("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.q("div",{class:"ytdSponsorshipsPerksListHeader",style:_.ot({"background-color":a})},_.q("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.q(_.qi,{cond:c,then:function(g){var k={};return _.q("div",{class:_.et((k.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=d,k.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!d,k))},_.q(_.Ps,{data:g,
alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.q("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.q(_.qi,{cond:e,
then:function(g){var k={};return _.q("div",{class:_.et((k.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=d,k.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!d,k))},_.q(_.Ps,{data:g,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.q("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.q(_.Hu,{data:function(){var g;
return(g=b().header)==null?void 0:g.dualAvatar}},{dualAvatarViewModel:_.Xdc})))),_.q("div",{class:"ytdSponsorshipsPerksListBody"},_.q("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return b().title}),_.q(_.qi,{cond:function(){return b().perks},
then:function(g){return _.q(_.ri,{each:g},function(k,m){return _.q("div",{class:"ytdSponsorshipsPerksListPerkContainer"},_.q(_.qi,{cond:function(){return m()>0},
then:function(){return _.q("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.q("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.q(_.qi,{cond:function(){return k.icon},
then:function(n){return _.q(_.qt,{icon:function(){return n().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.q("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.q("div",{class:"ytdSponsorshipsPerksListPerkTitle"},k.title),_.q("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.q(_.tt,{text:k.description})),_.q(_.qi,{cond:function(){return k.instructions},
then:function(){var n,r;return _.q("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.q("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(n=k.instructions)==null?void 0:n.title),_.q("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.q(_.tt,{text:(r=k.instructions)==null?void 0:r.text})))}}))),_.q(_.qi,{cond:function(){return k.emoji},
then:function(n){return _.q("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.q(_.ri,{each:function(){return n()}},function(r){return _.q(_.Ps,{data:r,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.q(Ydc,{data:k}))})}})))},"zd");
Zdc.idomCompat=!0;var Ydc=_.Rr(function(a){var b=a.data;var c=function(k,m){return k===m},d=function(){var k=b();
k=_.y(k==null?void 0:k.badgesShelf,pFb);return k!==void 0&&k!==null?k:{previousButton:{},nextButton:{}}},e=_.Ql(),g=function(){var k=e.value;
if(k){var m=k.parentElement;if(m){k=k.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var n=0;n<k.length;++n){var r=k[n];if(r instanceof HTMLElement){m.scrollTo({left:r.offsetLeft+r.clientWidth/2-m.clientWidth/2,behavior:"instant"});break}}}}};
_.wi(function(){var k=e.value;if(k){var m=new ResizeObserver(g);m.observe(k);_.zh(function(){m.disconnect()})}});
return _.q("div",null,_.q(_.qi,{cond:function(){return b().badges},
then:function(k){return _.q(Vdc,{data:d},_.q("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:e},_.q(_.ri,{each:function(){return k()}},function(m,n){var r={},t={},u={};
return _.q("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.q(_.qi,{cond:function(){return n()>0},
then:function(){return _.q("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.q("div",{class:_.et("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(r.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return c(n(),b().currentBadgeIndex)},r.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!c(n(),b().currentBadgeIndex)},r))},_.q("div",{class:_.et("ytdSponsorshipsPerksListLoyaltyBadge",(t.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return c(n(),
b().currentBadgeIndex)},t.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!c(n(),b().currentBadgeIndex)},t))},_.q(_.qi,{cond:function(){return m.image},
then:function(x){var A={};return _.q("div",{class:_.et((A.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return c(n(),b().currentBadgeIndex)},A.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!c(n(),b().currentBadgeIndex)},A))},_.q(_.Ps,{data:x,
alt:""}))}})),_.q("div",{class:_.et("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(u.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return c(n(),b().currentBadgeIndex)},u))},m.title)))})))}}))},"Ad");
Ydc.idomCompat=!0;_.Ts(Zdc,"yt-sponsorships-perks-list",{props:{data:_.VG}});_.Ts(_.Rr(function(a){return _.q("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.q(_.qi,{cond:function(){return a.data().image},
then:function(b){return _.q(_.Ps,{className:"ytwFantasyEmptyStateViewModelImage",data:b,ariaHidden:!0,alt:""})}}),_.q(_.tt,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return a.data().title}}),_.q(_.tt,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return a.data().subtitle}}),_.q(_.Hu,{data:function(){return a.data().primaryButton}},{buttonViewModel:function(b){return _.q(_.Qu,{data:b.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Bd"),"ytw-fantasy-empty-state-view-model",{props:{data:_.VG}});_.Ts(_.Rr(function(a){var b=a.data;var c;a=_.h(_.ih(!((c=_.vG("yt-mini-app-is-theater-mode-enabled"))==null||!c),void 0,"CUtq5"));var d=a.next().value,e=a.next().value,g;c=(g=_.v().resolve(_.Xi(Mac)))!=null?g:function(){return _.q("div",null)};
_.Ol("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){e(!0);_.uG("yt-mini-app-is-theater-mode-enabled",!0)});
_.Ol("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){e(!1);_.uG("yt-mini-app-is-theater-mode-enabled",!1)});
g={};a={};var k={};return _.q("mini-app-play-page-renderer",{class:_.et("miniAppPlayPageRendererHost",(g.miniAppPlayPageRendererHostDetailsView=function(){return!d()},g))},_.q("div",{class:_.et("miniAppPlayPageRendererGameContainer",(a.miniAppPlayPageRendererGameContainerDetailsView=function(){return!d()},a))},_.q(_.Hu,{data:function(){return b().containerViewModel}},{miniAppContainerViewModel:Tdc}),_.q(_.qi,{cond:function(){return!d()&&b().description},
then:function(){return _.q("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.q("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return b().description}))}})),_.q("div",{class:_.et("miniAppPlayPageRendererPlayNextContainer",(k.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!d()},k))},_.q(_.Hu,{data:function(){return b().sectionList}},{sectionListRenderer:c})))},"Cd"),"mini-app-play-page-renderer",{props:{data:_.VG}});var $dc=function(){var a=_.P.apply(this,arguments)||this;a.isSearch=!1;a.isConstrainedList=!1;a.hasChipsBar=!1;a.inReplyPanel=!1;a.scrollUpButtonData={buttonViewModel:{iconName:"UP_ARROW",style:"BUTTON_VIEW_MODEL_STYLE_UNKNOWN",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_COMPACT"}};a.monitorScroll=!0;a.SCROLL_ANIMATION_DURATION_MS=300;a.nextContinuation={continuationType:"sectionListContinuation"};return a};
_.z($dc,_.P);_.f=$dc.prototype;
_.f.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},
sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(a){switch(a.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearchDova:"[[isSearchDova]]",isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",
noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",
noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},
miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},
liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},
fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.w("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.w("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.f.created=function(){var a=this;this.JSC$14685_scrollAnimation=new _.YR(function(b){a.hostElement.scrollTop=b})};
_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.f.getItemsPath=function(){return"data.contents"};
_.f.replacePrimaryContent=function(a){this.set("data.contents",a)};
_.f.computeHasSortFilter=function(a){return!!a&&!!a.sortFilterSubMenuRenderer};
_.f.computeShouldScrollInPanel=function(a){var b;return!!(a==null?0:(b=a.scrollPaneStyle)==null?0:b.scrollable)};
_.f.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.br(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.f.scrollToTop=function(){this.hostElement.scrollTop=0};
_.f.scrollToItemSection=function(a){if(a=this.getItemByIdentifier(a))a=this.getScrollPositionForItem(a),this.hostElement.scrollTop!==a&&this.JSC$14685_scrollAnimation.start(this.hostElement.scrollTop,a,this.SCROLL_ANIMATION_DURATION_MS)};
_.f.getItemByIdentifier=function(a){var b=this.contents.querySelectorAll("ytd-item-section-renderer");if(b&&b.length!==0){var c=Array.from(b).findIndex(function(d){return d.sectionIdentifier===a});
return b[c===-1?0:c]}};
_.f.getScrollPositionForItem=function(a){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===a)return 0;a=_.If(a).y+this.hostElement.scrollTop-_.If(this.hostElement).y;return Math.min(a,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Um.Object.defineProperties($dc.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.targetId)==="browse-feedFEclips"}}});
var gS=$dc;gS.prototype.onScroll=gS.prototype.onScroll;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],gS.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],gS.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.kJ.YtLazyListBehavior),_.W("design:type",Object)],gS.prototype,"ytLazyListBehavior",void 0);_.U([_.H(_.XM.YtNextContinuationBehavior),_.W("design:type",Object)],gS.prototype,"ytNextContinuationBehavior",void 0);
_.U([_.H(_.Ncc),_.W("design:type",Object)],gS.prototype,"ytBooleanLogicBehavior",void 0);_.U([_.H(_.WM),_.W("design:type",Object)],gS.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],gS.prototype,"data",void 0);_.U([_.O({value:2}),_.W("design:type",Number)],gS.prototype,"initialCount",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],gS.prototype,"autoFill",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.W("design:type",Boolean)],gS.prototype,"hasSortFilter",void 0);_.U([_.O({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.W("design:type",Boolean)],gS.prototype,"hideBottomSeparator",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.W("design:type",Boolean)],gS.prototype,"shouldScrollInPanel",void 0);
_.U([_.O(),_.W("design:type",Object)],gS.prototype,"isSearch",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],gS.prototype,"isConstrainedList",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],gS.prototype,"responsiveSizing",void 0);_.U([_.O(),_.W("design:type",Object)],gS.prototype,"hasChipsBar",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],gS.prototype,"pageSubtype",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],gS.prototype,"engagementPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],gS.prototype,"liveChatEngagementPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],gS.prototype,"inReplyPanel",void 0);_.U([_.ir("#action-button"),_.W("design:type",HTMLElement)],gS.prototype,"actionButton",void 0);_.U([_.O(),_.W("design:type",Object)],gS.prototype,"scrollUpButtonData",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],gS.prototype,"engagementPanelDropdown",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],gS.prototype,"engagementPanelDialog",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],gS.prototype,"isClipList",null);_.U([_.ir("#contents"),_.W("design:type",HTMLElement)],gS.prototype,"monitorScrollElement",void 0);_.U([_.ir("#contents"),_.W("design:type",HTMLElement)],gS.prototype,"contents",void 0);
_.U([_.M("scroll"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gS.prototype,"onScroll",null);gS=_.U([_.Q({is:"ytd-section-list-renderer",disableElementRegistration:!0})],gS);
var aec=_.$r()(gS,"ytd-section-list-renderer",function(){if(Lac===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-section-list-renderer">\n  <div id="header" class="style-scope ytd-section-list-renderer"></div>\n  <div id="sub-menu" class="style-scope ytd-section-list-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-section-list-renderer"></div>\n<div id="action-button" on-click="scrollToTop" class="style-scope ytd-section-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-section-list-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);Lac=a}a=Lac;return a},{mode:1});var bec;var cec;var dec;var eec;var hS=function(){return _.P.apply(this,arguments)||this};
_.z(hS,_.P);hS.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
hS.prototype.onLikeButtonClick=function(a){a.stopPropagation();a.preventDefault()};
_.Um.Object.defineProperties(hS.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)!=null&&a.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
var iS=hS;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],iS.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],iS.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],iS.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],iS.prototype,"ytRendererStamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],iS.prototype,"data",void 0);
_.U([_.O({selectorArgs:["data.likeStatusEntityKey"],selector:It}),_.W("design:type",Object)],iS.prototype,"likeStatusEntity",void 0);_.U([_.K("data","likeStatusEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],iS.prototype,"likeButtonRenderer",null);iS=_.U([_.Q({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],iS);
_.S(iS,"ytd-slim-metadata-toggle-button-renderer",function(){if(eec!==void 0)return eec;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slim-metadata-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-slim-metadata-toggle-button-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
return eec=a},{mode:1});var fec=function(){var a=_.P.apply(this,arguments)||this;a.minimizePipBreakages=_.w("web_pip_minimize_breakages");a.showEqualizer=_.w("web_enable_playlist_video_lockup_equalizer");a.watchColorUpdate=_.w("kevlar_watch_color_update");a.actionMap={};return a};
_.z(fec,_.P);_.f=fec.prototype;_.f.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.f.computeEditableClass=function(a){return a&&a.menu?"editable":""};
_.f.computeSelected=function(a){return!(a==null||!a.selected)};
_.f.computeUseColorPalette=function(a){return!!((a==null?0:a.lightColorPalette)&&(a==null?0:a.darkColorPalette))};
_.f.computeLargerPlaylistThumbs=function(a,b){return _.w("web_enable_playlist_bigger_thumbnails")&&!b};
_.f.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.f.onYtServiceRequestSent=function(a,b){b.endpoint&&this.isHideEnclosingAction(b.endpoint)&&!this.selected&&AKb(_.YF(),this.data.videoId)};
_.f.isHideEnclosingAction=function(a){var b=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",a);a=this.get("likeEndpoint.status",a)==="INDIFFERENT";return b||a};
_.f.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.f.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.Um.Object.defineProperties(fec.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var a;return!!(this.withinMiniplayer&&((a=this.data)==null?0:a.actionButtons))}}});
var jS=fec;jS.prototype.onYtServiceRequestSent=jS.prototype.onYtServiceRequestSent;jS.prototype.canReorderChanged=jS.prototype.canReorderChanged;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],jS.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],jS.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],jS.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.$I),_.W("design:type",Object)],jS.prototype,"ytdLockupBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],jS.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],jS.prototype,"withinMiniplayer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],jS.prototype,"minimizePipBreakages",void 0);_.U([_.O({computed:"computeSelected(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],jS.prototype,"selected",void 0);
_.U([_.O({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],jS.prototype,"useColorPalette",void 0);_.U([_.O({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.W("design:type",Boolean)],jS.prototype,"largerPlaylistThumbs",void 0);_.U([_.O(),_.W("design:type",Object)],jS.prototype,"showEqualizer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],jS.prototype,"canReorder",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],jS.prototype,"touchPersistentDragHandle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],jS.prototype,"handleIsHovered",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],jS.prototype,"watchColorUpdate",void 0);_.U([_.K("largerPlaylistThumbs"),_.W("design:type",Number),_.W("design:paramtypes",[])],jS.prototype,"thumbnailWidth",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],jS.prototype,"showActionButtons",null);_.U([_.mr("canReorder"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jS.prototype,"canReorderChanged",null);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Nt]),_.W("design:returntype")],jS.prototype,"onYtServiceRequestSent",null);
jS=_.U([_.Q({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],jS);
_.S(jS,"ytd-playlist-panel-video-renderer",function(){if(dec!==void 0)return dec;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="yt-icons:drag_handle" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return dec=a},{mode:2});var gec=function(){return _.P.apply(this,arguments)||this};
_.z(gec,_.P);gec.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
var kS=gec;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],kS.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],kS.prototype,"data",void 0);kS=_.U([_.Q({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],kS);
_.S(kS,"ytd-playlist-panel-supported-items",function(){if(cec!==void 0)return cec;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-supported-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-playlist-panel-supported-items"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return cec=
a},{mode:1});jsb=!0;zvb("\\P{N}");var B3a;var hec=_.vo("END_OF_PLAYLIST",void 0,"End of playlist"),iec=_.vo("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),jec=function(){var a=_.P.apply(this,arguments)||this;a.minimizePipBreakages=_.w("web_pip_minimize_breakages");a.updatedCoursePanel=_.w("move_three_dot_menu_to_playlist_panel_header_for_courses");a.reducedPlaylistHeight=_.w("web_playlist_mini_playlist_height");a.hideHeaderText=!1;a.useColorPalette=!1;a.collapsed=!1;a.collapsedPreServerOverride="not_tracked";
a.isHovered=!1;a.modernPanels=_.w("kevlar_watch_modern_panels");a.expandLabel=_.vo("MINIPLAYER_EXPAND_LABEL");a.collapseLabel=_.vo("MINIPLAYER_COLLAPSE_LABEL");a.isFloating=!1;a.metaPanel=!1;a.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};a.currentIndex=void 0;return a};
_.z(jec,_.P);_.f=jec.prototype;
_.f.configureRendererStamper=function(){return{menuRendererData:{id:"playlist-action-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{forceIconButton:!1}}}},overflowMenuDataTopRow:{id:"overflow-menu-top-row",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},overflowMenuData:{id:"overflow-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.contentHeader":{id:"content-header",mapping:{messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.contents":{id:"items",
events:!0,mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",attributes:{id:"playlist-items"},properties:{canReorder:"[[canReorder]]",withinMiniplayer:"[[withinMiniplayer]]"}},messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.saveButton":{id:"save-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.topRowButtons":{id:"top-row-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.created=function(){this.scrollThrottle=new _.lv(this.onThrottledScroll,1E3,this)};
_.f.onMouseEnter=function(){this.isHovered=!0};
_.f.onMouseLeave=function(){this.isHovered=!1};
_.f.computeOverflowMenuData=function(a){return a&&a.menu?a.menu:null};
_.f.computeCollapsible=function(a){return!a};
_.f.computeHasPlaylistButtons=function(a){return!(!a||!a.playlistButtons)};
_.f.computeHasSeparateSaveButton=function(a){return!(!a||!a.saveButton)};
_.f.computeHasToolbarButton=function(a,b){return!(!a||!(b||a.saveButton||a.menu))};
_.f.computePlaylistType=function(a){if(a&&a.playlistId)return a.playlistId.substring(0,4)};
_.f.computeCanReorder=function(a){return a?a.playlistId&&a.playlistId.startsWith("TLPQ")?!0:!!a.isEditable&&!a.isInfinite:!1};
_.f.attached=function(){var a=this;try{_.v().resolve(_.TF).setPlaylistComponent(this.hostElement)}catch(b){if(_.w("kevlar_park_on_playlist_token_killswitch"))throw b;_.VF().parkOrScheduleJob(function(){_.v().resolve(_.TF).setPlaylistComponent(a.hostElement)},2,"ci")}_.go(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.f.detached=function(){_.ho(this.hostElement)};
_.f.computeTrailingIcon=function(a,b,c){return c?b?"yt-icons:collapse":"yt-icons:close":b?"yt-icons:expand":_.w("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.f.computeIndexMessage=function(a,b){return E3a(a+1)+" / "+E3a(b)};
_.f.onRenderStamperFinished=function(){if(this.scrollForStampDom){var a=!0;this.isHovered&&(a=!1);if(this.collapsed||this.hidden)a=!1;a&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.f.collapseChanged=function(){var a=this;this.collapsed||(_.Gu(this.ytTaskEmitterBehavior.getTaskManager(),function(){a.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.f.hiddenChanged=function(){var a=this;this.hidden||_.Gu(this.ytTaskEmitterBehavior.getTaskManager(),function(){a.scrollToCurrentVideo()})};
_.f.setupReordering=function(){var a=_.E(this.hostElement).querySelector("#items");ULb?_.hWb(this.ytReorderableBehavior,a,a,"playlist-drag-handle"):_.hWb(this.ytReorderableBehavior,a,a)};
_.f.scrollToCurrentVideo=function(){var a=this;_.zk.addJob(function(){var b=_.E(a.hostElement).querySelector("#items");if(b){b.style.setProperty("padding-bottom","");var c=_.E(a.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(c){b=c.parentElement||_.Ry(document);var d=b||_.Ry(document);var e=_.If(c),g=_.If(d),k=_.Fdb(d);if(d==_.Ry(document)){var m=e.x-d.scrollLeft;e=e.y-d.scrollTop}else m=e.x-g.x-k.left,e=e.y-g.y-k.top;c=Bdb(c);g=d.clientHeight-
c.height;k=d.scrollLeft;var n=d.scrollTop;k+=m-(d.clientWidth-c.width)/2;d=new _.Ef(k,n+(e-g/2));b.scrollLeft=d.x;b.scrollTop=d.y}}},8)};
_.f.dataChanged=function(){var a=this;_.gWb(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.Qm(this,function(){_.sl(a.ytTaskEmitterBehavior.getTaskManager(),function(){a.ytRendererBehavior.markDirty();a.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.f.updateNowPlayingOverlay=function(){_.w("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.f.onPlaylistLockupNowPlaying=function(a,b){b&&(this.activeNowPlayingRenderer=b);this.updateNowPlayingOverlay()};
_.f.onScroll=function(){this.scrollThrottle.fire()};
_.f.onThrottledScroll=function(){var a=this;_.sl(this.ytTaskEmitterBehavior.getTaskManager(),function(){a.ytRendererBehavior.markDirty()})};
_.f.onToggleExpanded=function(a){this.collapsible&&_.Sq(a).tagName!=="A"&&!_.Wt(_.Rq(a),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])&&(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.f.setCollapsed=function(a){this.collapsible&&(this.collapsed=a,_.mo(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.f.handleCollapsedFromData=function(a){if(a){var b=a.playlistPanelCollapseState;b==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||b==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),b=b==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==b&&this.setCollapsed(b)):this.currentPlaylistId!==a.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(b=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==b&&this.setCollapsed(b),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=a.playlistId}};
_.f.handleDrop=function(a){var b=a.currDragItem;a=b.data.playlistSetVideoId;var c=_.Na(b.parentNode.childNodes,b),d=void 0;c>0&&(d=b.parentNode.childNodes[c-1].data.playlistSetVideoId);b=_.YF();if(b.responsePlaylistData&&b.responsePlaylistData.contents){var e=fHa(a,b.responsePlaylistData);b.responsePlaylistData=(0,_.Cf.unsafeClone)(b.responsePlaylistData);Daa(b.responsePlaylistData.contents,e,c);b.queueProxy?dKb(b.queueProxy,e,c,a,d):b.playlistProxy&&dKb(b.playlistProxy,e,c,a,d);_.ZF(b,_.$F(b,b.response?
b.response.autoplayRenderer:void 0))}};
_.f.handleDarkModeChange=function(a){a!==this.isDarkTheme&&(this.isDarkTheme=a)};
_.f.colorPaletteChanged=function(){var a,b=((a=this.data)==null?void 0:a.contents)||[],c;a=_.h(b);for(b=a.next();!b.done;b=a.next()){b=b.value;var d=void 0;if((d=b.playlistPanelVideoRenderer)==null?0:d.selected){a=b.playlistPanelVideoRenderer;d=b=void 0;(c=this.isDarkTheme?(b=a)==null?void 0:b.darkColorPalette:(d=a)==null?void 0:d.lightColorPalette)&&_.Dt(this.hostElement,c);break}}this.useColorPalette=!!c};
_.Um.Object.defineProperties(jec.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null||!a.playlistId)&&!((b=this.data)==null||!b.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var a=_.v().resolve(_.Xi(_.TF)),b;if(((b=this.data)==null?0:b.contents)&&(a==null?0:a.hasAutoplayData())){var c;if(((c=this.playlistLoopStateEntity)==null?void 0:c.state)==="PLAYLIST_LOOP_STATE_ONE"){if(a=this.data.currentIndex,a!==void 0){var d,e;var g=(d=this.data.contents[a])==null?void 0:(e=d.playlistPanelVideoRenderer)==null?void 0:e.title}}else{var k,m=(k=_.y(a.getAutoplayEndpoint(),_.Un))==null?void 0:k.videoId,n,r;g=(n=this.data.contents.find(function(t){var u;
return((u=t.playlistPanelVideoRenderer)==null?void 0:u.videoId)===m}))==null?void 0:(r=n.playlistPanelVideoRenderer)==null?void 0:r.title}return g}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)!=null&&a.nextVideoLabel?this.nextVideoTitle?_.Wp(this.data.nextVideoLabel)+":":hec:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var a;if(((a=this.data)==null?0:a.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.Vp(iec);var b;return(b=this.data)==null?void 0:b.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d=(a=this.data)==null?void 0:(b=a.playlistButtons)==null?void 0:(c=b.menuRenderer)==null?void 0:c.topLevelButtons;if(d)for(a=_.h(d),b=a.next();!b.done;b=a.next())if(b=b.value,b.playlistLoopButtonRenderer)return b.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var a;return!!(this.collapsed&&((a=this.data)==null?0:a.nextVideoLabel))}}});
var lS=jec;lS.prototype.colorPaletteChanged=lS.prototype.colorPaletteChanged;lS.prototype.onPlaylistLockupNowPlaying=lS.prototype.onPlaylistLockupNowPlaying;lS.prototype.updateNowPlayingOverlay=lS.prototype.updateNowPlayingOverlay;lS.prototype.dataChanged=lS.prototype.dataChanged;lS.prototype.hiddenChanged=lS.prototype.hiddenChanged;lS.prototype.collapseChanged=lS.prototype.collapseChanged;lS.prototype.onRenderStamperFinished=lS.prototype.onRenderStamperFinished;lS.prototype.onMouseLeave=lS.prototype.onMouseLeave;
lS.prototype.onMouseEnter=lS.prototype.onMouseEnter;_.U([_.H(_.OD),_.W("design:type",Object)],lS.prototype,"ironResizableBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],lS.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],lS.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(eWb.YtPlaylistPanelBehavior),_.W("design:type",Object)],lS.prototype,"ytPlaylistPanelBehavior",void 0);
_.U([_.H(_.$G.YtTaskEmitterBehavior),_.W("design:type",Object)],lS.prototype,"ytTaskEmitterBehavior",void 0);_.U([_.H(_.jWb),_.W("design:type",Object)],lS.prototype,"ytReorderableBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],lS.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],lS.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],lS.prototype,"actionHandlerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],lS.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],lS.prototype,"autoplayData",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],lS.prototype,"withinMiniplayer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],lS.prototype,"minimizePipBreakages",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],lS.prototype,"updatedCoursePanel",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],lS.prototype,"reducedPlaylistHeight",void 0);_.U([_.O({computed:"setMenuData_(data)"}),_.W("design:type",Object)],lS.prototype,"menuRendererData",void 0);_.U([_.O({computed:"computeOverflowMenuData(data)"}),_.W("design:type",Object)],lS.prototype,"overflowMenuDataTopRow",void 0);_.U([_.O({computed:"computeOverflowMenuData(data)"}),_.W("design:type",Object)],lS.prototype,"overflowMenuData",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],lS.prototype,"hideHeaderText",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],lS.prototype,"useColorPalette",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.W("design:type",Boolean)],lS.prototype,"collapsible",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],lS.prototype,"collapsed",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],lS.prototype,"hidden",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.W("design:type",Boolean)],lS.prototype,"hasPlaylistButtons",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.W("design:type",Boolean)],lS.prototype,"hasSeparateSaveButton",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.W("design:type",Boolean)],lS.prototype,"hasToolbar",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.W("design:type",String)],lS.prototype,"playlistType",void 0);_.U([_.O(),_.W("design:type",Object)],lS.prototype,"isHovered",void 0);_.U([_.O({selectorArgs:["playlistLoopStateEntityKey"],selector:_.rVa}),_.W("design:type",Object)],lS.prototype,"playlistLoopStateEntity",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],lS.prototype,"modernPanels",void 0);_.U([_.O({value:56}),_.W("design:type",Number)],lS.prototype,"scrollMargin",void 0);_.U([_.O({computed:"computeCanReorder(data)"}),_.W("design:type",Boolean)],lS.prototype,"canReorder",void 0);_.U([_.O(),_.W("design:type",Object)],lS.prototype,"expandLabel",void 0);_.U([_.O(),_.W("design:type",Object)],lS.prototype,"collapseLabel",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],lS.prototype,"isFloating",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],lS.prototype,"metaPanel",void 0);_.U([_.O({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.W("design:type",String)],lS.prototype,"trailingIcon",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],lS.prototype,"isDarkTheme",void 0);
_.U([_.O({selector:_.Hp}),_.W("design:type",Boolean)],lS.prototype,"miniplayerIsActive",void 0);_.U([_.O({selector:function(a){return a.watch.playerState}}),
_.W("design:type",Number)],lS.prototype,"playerState",void 0);_.U([_.O(),_.W("design:type",Object)],lS.prototype,"activeNowPlayingRenderer",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],lS.prototype,"moveThreeDotMenuToTopRow",null);_.U([_.K("data","autoplayData","playlistLoopStateEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],lS.prototype,"nextVideoTitle",null);
_.U([_.K("data","nextVideoTitle"),_.W("design:type",String),_.W("design:paramtypes",[])],lS.prototype,"nextVideoLabel",null);_.U([_.K("collapsed"),_.W("design:type",String),_.W("design:paramtypes",[])],lS.prototype,"buttonAriaLabel",null);_.U([_.K("data","playlistId","longBylineText"),_.W("design:type",Object),_.W("design:paramtypes",[])],lS.prototype,"mixLongByLine",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],lS.prototype,"playlistLoopStateEntityKey",null);
_.U([_.M("mouseenter"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lS.prototype,"onMouseEnter",null);_.U([_.M("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lS.prototype,"onMouseLeave",null);_.U([_.O({reflectToAttribute:!0}),_.K("data","collapsed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],lS.prototype,"showNextVideoHeader",null);
_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lS.prototype,"onRenderStamperFinished",null);_.U([_.N("collapsed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lS.prototype,"collapseChanged",null);_.U([_.N("hidden"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lS.prototype,"hiddenChanged",null);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lS.prototype,"dataChanged",null);_.U([_.N("playerState","miniplayerIsActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lS.prototype,"updateNowPlayingOverlay",null);_.U([_.M("yt-playlist-lockup-now-playing-active"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],lS.prototype,"onPlaylistLockupNowPlaying",null);
_.U([_.N("data","isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lS.prototype,"colorPaletteChanged",null);lS=_.U([_.Q({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],lS);
_.kec=_.$r()(lS,"ytd-playlist-panel-renderer",function(){if(bec===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" data-collapsed="[[collapsed]]" class="style-scope ytd-playlist-panel-renderer"><div class="header style-scope ytd-playlist-panel-renderer" on-tap="onToggleExpanded"><div id="header-contents" class="style-scope ytd-playlist-panel-renderer"><div id="header-top-row" class="style-scope ytd-playlist-panel-renderer"><div id="header-description" class="style-scope ytd-playlist-panel-renderer"><h3 hidden="[[showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[data.titleText]]"></yt-formatted-string></h3><h3 id="next-video-title" hidden="[[!showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><span id="next-label" class="style-scope ytd-playlist-panel-renderer">[[nextVideoLabel]]</span><yt-formatted-string ellipsis-truncate="" text="[[nextVideoTitle]]" class="style-scope ytd-playlist-panel-renderer"></yt-formatted-string></h3><div id="publisher-container" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="byline-title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" hidden="[[!showNextVideoHeader]]" text="[[data.titleText]]"></yt-formatted-string><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-panel-renderer"></ytd-badge-supported-renderer><yt-formatted-string class="publisher style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[mixLongByLine]]"></yt-formatted-string><div class="index-message-wrapper style-scope ytd-playlist-panel-renderer" hidden="[[data.isInfinite]]"><span class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[data.videoCountText]]">[[computeIndexMessage(data.currentIndex,\n                data.totalVideos)]]</span><yt-formatted-string class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[!data.videoCountText]]" respecthtmldir="" text="[[data.videoCountText]]"></yt-formatted-string></div></div></div><div id="end-actions-in-header" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu-top-row" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="top-row-buttons" class="style-scope ytd-playlist-panel-renderer"></div><yt-icon-button id="trailing-button" label="[[buttonAriaLabel]]" pressed="[[!collapsed]]" toggleable="" class="style-scope ytd-playlist-panel-renderer"><yt-icon id="trailing-icon" icon="[[trailingIcon]]" class="style-scope ytd-playlist-panel-renderer"></yt-icon></yt-icon-button></div><div id="playlist-actions" class="style-scope ytd-playlist-panel-renderer"><div id="start-actions" class="style-scope ytd-playlist-panel-renderer"><div id="playlist-action-menu" class="style-scope ytd-playlist-panel-renderer"></div><div id="save-button" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="end-actions" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu" class="style-scope ytd-playlist-panel-renderer"></div></div></div></div></div><div id="content-header" hidden="[[!data.contentHeader]]" class="style-scope ytd-playlist-panel-renderer"></div><div id="items" class="playlist-items style-scope ytd-playlist-panel-renderer" on-scroll="onScroll"></div></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);bec=a}a=bec;return a},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var lec;var mS=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.w("web_button_rework");return a};
_.z(mS,_.P);mS.prototype.computeShouldButtonBeVertical=function(a,b){return a||b};
mS.prototype.onYtServiceRequestSent=function(a,b){(a=_.y(b.endpoint,_.fw))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.wu("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:a.status})):this.handleLikeEndpoint(a))};
mS.prototype.computelikeStatusEntityKey=function(a){return a==null?void 0:a.likeStatusEntityKey};
mS.prototype.handleLikeEndpoint=function(a){a.status==="LIKE"?this.JSC$14710_ytdDislikeToggleButtonRenderer.toggle(!1):a.status==="DISLIKE"?this.JSC$14710_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14710_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14710_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.Um.Object.defineProperties(mS.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var a;return I3a(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(a=this.likeStatusEntity)==null?void 0:a.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var a;return I3a(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(a=this.likeStatusEntity)==null?void 0:a.likeStatus)}}});
var nS=mS;nS.prototype.onYtServiceRequestSent=nS.prototype.onYtServiceRequestSent;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],nS.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],nS.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],nS.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],nS.prototype,"vertical",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],nS.prototype,"textTransform",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],nS.prototype,"useShortsIcon",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],nS.prototype,"underIconLabel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],nS.prototype,"modern",void 0);_.U([_.O({value:"left"}),_.W("design:type",String)],nS.prototype,"buttonTooltipPosition",void 0);
_.U([_.O(),_.W("design:type",Object)],nS.prototype,"overrides",void 0);_.U([_.ir("#like-button"),_.W("design:type",Object)],nS.prototype,"JSC$14710_ytdLikeToggleButtonRenderer",void 0);_.U([_.ir("#dislike-button"),_.W("design:type",Object)],nS.prototype,"JSC$14710_ytdDislikeToggleButtonRenderer",void 0);_.U([_.K("data","likeStatusEntity.likeStatus"),_.W("design:type",Object),_.W("design:paramtypes",[])],nS.prototype,"likeButton",null);
_.U([_.K("data","likeStatusEntity.likeStatus"),_.W("design:type",Object),_.W("design:paramtypes",[])],nS.prototype,"dislikeButton",null);_.U([_.O({computed:"computelikeStatusEntityKey(data)"}),_.W("design:type",String)],nS.prototype,"likeStatusEntityKey",void 0);_.U([_.O({selectorArgs:["likeStatusEntityKey"],selector:It}),_.W("design:type",Object)],nS.prototype,"likeStatusEntity",void 0);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Nt]),_.W("design:returntype")],nS.prototype,"onYtServiceRequestSent",null);nS=_.U([_.Q({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],nS);
var mec=_.$r()(nS,"ytd-like-button-renderer",function(){if(lec===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);lec=a}a=lec;return a},{mode:1});_.nec={};
_.nec.YtConditionalRendererBehavior=[_.Z.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(a,b){var c=this,d,e;return _.l(function(g){switch(g.nextAddress){case 1:if(!b)return c.hidden=!0,c.showSpinner=!1,g.return();if((d=a)==null?0:(e=d.visibilityCondition)==null?0:e.mode)switch(a.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return g.jumpTo(5);default:return g.jumpTo(6)}c.showSpinner=
!1;c.hidden=!0;return _.p(g,c.shouldShow_(a),4);case 4:c.hidden=!g.yieldResult;g.jumpTo(0);break;case 5:return _.p(g,c.shouldShow_(a),8);case 8:c.showSpinner=g.yieldResult;c.hidden=!1;g.jumpTo(0);break;case 6:return c.showSpinner=!1,_.p(g,c.shouldShow_(a),9);case 9:c.hidden=!g.yieldResult,_.ue(g)}})},
shouldShow_:function(a){return a&&a.supportedDatas&&a.supportedDatas.rendererVisibilityConditionData&&a.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(a.supportedDatas.rendererVisibilityConditionData.showIf):a&&a.visibilityCondition&&a.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(a.visibilityCondition.showIf):a&&a.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(a.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(a){switch(a){case "VISIBILITY_CONDITION_TYPE_MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_MDX_DISCONNECTED":return Promise.resolve(!this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_LOCATION_PERMISSION_GRANTED":return this.isLocationPermissionGranted_();default:return Promise.resolve(!1)}},
isLegacyVisibilityConditionSatisfied_:function(a){switch(a){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var a=_.lo(this.hostElement,"yt-get-mdx-status");return a.length==1&&a[0].connected},
isLocationPermissionGranted_:function(){var a;return _.l(function(b){return b.nextAddress==1?navigator.permissions?_.p(b,navigator.permissions.query({name:"geolocation"}),3):b.jumpTo(2):b.nextAddress!=2?(a=b.yieldResult,b.return(Promise.resolve(a.state==="granted"))):b.return(Promise.resolve(!1))})}}];var oec=function(a,b){b=b===void 0?{}:b;return function(c){var d=document.createElement(a),e;var g=(e=d.polymerController)!=null?e:d;DOa(d,g,c,b);return d}}("yt-icon");var pec=function(a){var b=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];Isa();_.Rj("ytglobal.ytUtilActivityCallback_",function(){_.mo(a,"yt-user-activity")});
new Wk(function(){return b.JSC$14722_onMouseMove});
document.addEventListener("scroll",function(){return b.onScroll});
window.addEventListener("resize",function(){return b.onResize})},qec=function(a,b,c){b in a.eventJobIds||(c=_.Qw().addLowPriorityJob(function(){_.Xk();
delete a.eventJobIds[b]},c),a.eventJobIds[b]=c)};
pec.prototype.onScroll=function(a){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):a.target===document&&qec(this,"scroll",200)};
pec.prototype.onResize=function(){qec(this,"resize",200)};
pec.prototype.JSC$14722_onMouseMove=function(){qec(this,"mousemove",100)};
_.dWb=function(a){a.scrollEventsToIgnore+=1;a.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){a.scrollEventsToIgnore--},500))};var rec=function(a){this.element=a;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
rec.prototype.showFeedbackDialog=function(a,b,c,d){var e=sec();if(!e)return!1;var g=U3a();g.productId=e;b&&(g.flow="submit",g.report={description:b});c&&(sec()==="59"?g.callback=_.Ii(function(){_.xl("userFeedbackEvent",{});c()}):g.callback=_.Ii(c));
g.bucket=d||_.Fi("GOOGLE_FEEDBACK_BUCKET","Other");tec(g);a=uec(this,"GFEEDBACK",a);try{_.Lyb(g,a)}catch(k){return _.Hi(k),!1}return!0};
rec.prototype.showHelpDialog=function(a,b,c){var d=this,e=sec();if(!e)return!1;var g={helpCenterPath:"/youtube",productData:uec(this,"GUIDED_HELP",c)};tec(g);var k=U3a();k.context=a||g.productData.context||"default";k.defaultHelpArticleId=b;k.enableSendFeedback=!0;(_.Ji("gapi.load")||function(m,n){return n()})("client",function(){try{var m=Bhb(e,g);
if(_.w("web_always_load_chat_support")&&!d.chatSupportLoaded)try{m.JSC$7818_loadChatSupport(k),d.chatSupportLoaded=!0}catch(n){}m.startHelp(k)}catch(n){_.Hi(n)}})};
var sec=function(){var a=_.Fi("GOOGLE_FEEDBACK_PRODUCT_ID");a||_.Hi(Error("gi"));return a},tec=function(a){a&&(a.locale=_.w("kevlar_help_use_locale")?_.Fi("INNERTUBE_CONTEXT_HL","en"):_.Fi("HTML_LANG","en"))},uec=function(a,b,c){var d=a.productData;
delete d.origin;d.device=_.ua();var e;a:{if(e=document.createElement("canvas")){var g=e.getContext("experimental-webgl",{stencil:!0});if(g){var k=g.getExtension("WEBGL_debug_renderer_info");if(k){e=g.getParameter(k.UNMASKED_RENDERER_WEBGL);break a}}if(g=e.getContext("webgl")){e=g.getParameter(g.RENDERER);break a}}e=null}d.gpu=e;d.isSDC=!!_.Fi("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(e=_.Fi("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.Cf.extend(d,e);_.S3a(b,d);_.T3a(d);(a=_.mo(a.element,"yt-get-autonav-pause-debug-state"))&&
a.length&&(d.autonav_pause_state=a[0]);a=_.sf();d.browser_resolution=a.width+"\u00d7"+a.height+"@"+(window.devicePixelRatio||1)+"x";c&&_.Cf.extend(d,c);return d};
rec.prototype.resetProductData=function(){this.productData={}};var vec=function(a){this.feedbackManager=new rec(a)};
vec.prototype.showFeedbackDialog=function(a,b,c,d){return this.feedbackManager.showFeedbackDialog(a,b,c,d)};
vec.prototype.showHelpDialog=function(a,b,c){return this.feedbackManager.showHelpDialog(a,b,c)};var wec=function(){this.baseUrl="";this.aTag=document.createElement("a")},qRb=function(a,b,c){c=c===void 0?{}:c;
c.pbj||(c.pbj=1);c=_.uua(b,c);a.baseUrl&&c&&!_.Ri(c)[1]&&!_.Si(c)&&(b=a.baseUrl,oa(b,"/")&&(b=b.slice(0,-1)),_.na(c,"/")&&(c=c.slice(1)),c=b+"/"+c);Nd(a.aTag,Gd(c||""));return a.aTag.href};
wec.prototype.fetchData=function(a){return _.M3a(a)};
wec.prototype.postData=function(a,b){var c={method:"POST"};if(b){for(var d=_.h(Object.keys(b)),e=d.next();!e.done;e=d.next()){e=e.value;var g=b[e];_.Za(g)&&(b[e]=JSON.stringify(g))}c.postParams=b}return _.M3a(a,c)};
_.rRb=function(a,b,c,d,e){a=qRb(a,b,c);if(!a)throw d=Error("hi"),Object.assign(d,{params:b}),d;return _.M3a(a,e,d)};
wec.prototype.requestDataForServiceEndpoint=function(a,b){if(_.y(a,_.iUa))return this.fetchData("/getAccountSwitcherEndpoint");b=b||{};var c=_.y(a,SEb);c?b.se=c.base64EncodedServiceEndpoint:b.sej=JSON.stringify(a);(c=_.En())&&_.w("enable_service_ajax_csn")&&(b.csn=c);b.theme=_.Jq();_.y(a,gUa)&&_.Fi("DELEGATION_CONTEXT")&&(b.delegation_context=JSON.stringify(_.Fi("DELEGATION_CONTEXT")));c=null;for(var d in a)if(oa(d,"Endpoint")||oa(d,"Command")){c=d;break}if(!c){var e=Error("ii");Object.assign(e,{params:a});
_.rua(e,"WARNING");return new _.il(function(k,m){m(e)})}d={name:c};
var g;(c=(g=_.y(a,_.to))==null?void 0:g.signal)&&(d.signal=c);(g=_.Oi(window.location.href))&&g.internalcountrycode&&(d.internalcountrycode=g.internalcountrycode);g="/service_ajax";_.w("debug_forward_web_query_parameters")&&(g=_.Foa(g,window.location.search));g=_.Qi(g,d);a.clickTrackingParams&&_.ao(g,{itct:a.clickTrackingParams});return this.postData(g,b)};_.xec=new _.jB("GFEEDBACK_TOKEN");var yec;var zec;var Aec;var Bec;var oS=function(){var a=_.P.apply(this,arguments)||this;a.compact=!1;return a};
_.z(oS,_.P);oS.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
oS.prototype.computeHasIcon_=function(a){return!!a};
oS.prototype.isSignInIcon_=function(a){return a=="yt-icons:prompted_sign_in"};
var pS=oS;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],pS.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.nec.YtConditionalRendererBehavior),_.W("design:type",Object)],pS.prototype,"ytConditionalRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],pS.prototype,"data",void 0);
_.U([_.O({computed:"computeIcon_(data.icon)"}),_.W("design:type",Object)],pS.prototype,"icon_",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.W("design:type",Boolean)],pS.prototype,"hasIcon_",void 0);_.U([_.O({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.W("design:type",Boolean)],pS.prototype,"signInIcon_",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],pS.prototype,"compact",void 0);
pS=_.U([_.wr({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],pS);
_.S(pS,"yt-player-error-message-renderer",function(){if(Bec===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Aec===void 0&&(Aec=document.createElement("template"));var d=Aec;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Bec=a}a=Bec;return a},{mode:2});var Cec;var Dec;var Eec=function(){return _.P.apply(this,arguments)||this};
_.z(Eec,_.P);Eec.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Eec.prototype.computeIcon_=function(a){return a?"yt-icons:"+a.iconType.toLowerCase():"error_outline"};
var qS=Eec;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],qS.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],qS.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],qS.prototype,"data",void 0);_.U([_.O({computed:"computeIcon_(data.icon)"}),_.W("design:type",Object)],qS.prototype,"icon_",void 0);qS=_.U([_.wr({is:"yt-player-kav-renderer",disableElementRegistration:!0})],qS);
_.S(qS,"yt-player-kav-renderer",function(){if(Dec===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-kav-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_kav_renderer.yt.player.kav.renderer.css.js--\x3e<yt-icon icon="[[icon_]]" class="style-scope yt-player-kav-renderer"></yt-icon>\n<div id="info" class="style-scope yt-player-kav-renderer">\n  <div class="reason style-scope yt-player-kav-renderer">[[getSimpleString(data.reason)]]</div>\n  <div class="subreason style-scope yt-player-kav-renderer">[[getSimpleString(data.subreason)]]</div>\n  <yt-formatted-string class="more style-scope yt-player-kav-renderer" text="[[data.learnMore]]"></yt-formatted-string>\n  <div id="button" class="style-scope yt-player-kav-renderer"></div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Cec===void 0&&(Cec=document.createElement("template"));var d=Cec;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Dec=a}a=Dec;return a},{mode:2});_.Ts(_.Rr(function(a){var b=_.Pl(),c=_.h(_.ih(0,void 0,"gCmSbf")),d=c.next().value,e=c.next().value;c=_.h(_.ih(null,void 0,"Rj9zMe"));var g=c.next().value,k=c.next().value;_.wi(function(){X3a(b.value,e,k);b.value.scrollIntoView()});
c=Y3a.bind(null,a.data,d);Wl("resize",function(){var m=g();if(d()===1&&m!==null){var n;(n=window.grecaptcha)==null||n.reset(m)}});
return _.q("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.q("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.q("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var m,n;return(m=a.data().accessibility)==null?void 0:(n=m.accessibilityData)==null?void 0:n.label}),_.q(_.tt,{text:c,
className:_.et("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.q("div",{el:b,class:"ytwPlayerCaptchaViewModelGridItem"})))},"Dd"),"yt-player-captcha-view-model",{props:{data:_.Ss}});var Z3a=!1;_.Fec=_.Rr(function(a){var b=a.data;return _.q("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.q(_.qi,{cond:function(){return b().icon},
then:function(c){return _.q("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.q(_.Ps,{data:c,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.q(_.qi,{cond:function(){return b().title},
then:function(c){return _.q("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.q(_.tt,{text:c}))}}),_.q(_.qi,{cond:function(){return b().description},
then:function(c){return _.q("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.q(_.tt,{text:c}))}}),_.q(_.Hu,{data:function(){return b().primaryButton}},{buttonViewModel:function(c){return _.q(_.Qu,{data:c.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.q(_.Hu,{data:function(){return b().secondaryButton}},{buttonViewModel:function(c){return _.q(_.Qu,{data:c.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"Ed");
_.Fec.idomCompat=!0;var Gec=_.Rr(function(a){var b=a.data;_.iw();return _.q("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.q("div",{class:"player-interstitial-renderer-wiz__scrim"},_.q(_.Hu,{data:function(){return b().content}},{interstitialViewModel:_.Fec})))},"Fd");
Gec.idomCompat=!0;_.Ts(Gec,"yt-player-interstitial-renderer",{props:{data:_.VG}});var Hec=function(){var a=_.P.apply(this,arguments)||this;a.noBackground=!1;a.compact=!1;a.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return a};
_.z(Hec,_.P);Hec.prototype.configureRendererStamper=function(){return{data:{id:"container",mapping:{playerErrorMessageRenderer:{component:"yt-player-error-message-renderer",properties:{compact:"[[compact]]"}},playerCaptchaViewModel:"yt-player-captcha-view-model",playerInterstitialRenderer:"yt-player-interstitial-renderer",playerKavRenderer:"yt-player-kav-renderer",enforcementMessageViewModel:"ytd-enforcement-message-view-model"}}}};
Hec.prototype.onUpdatePlayerErrorMessageCommand_=function(a){if(_.y(a,fEb)){var b;if(a=(b=_.y(a,fEb))==null?void 0:b.newPlayerErrorMessageRenderer)this.data=a}};
var rS=Hec;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],rS.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],rS.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],rS.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],rS.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],rS.prototype,"status",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],rS.prototype,"noBackground",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],rS.prototype,"compact",void 0);rS=_.U([_.wr({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],rS);
var Iec=_.$r()(rS,"yt-playability-error-supported-renderers",function(){if(zec===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-playability-error-supported-renderers--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_playability_error_supported_renderers.yt.playability.error.supported.renderers.css.js--\x3e<div id="container" class="style-scope yt-playability-error-supported-renderers"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;yec===void 0&&(yec=document.createElement("template"));var d=yec;c.call(b,d.content.cloneNode(!0),a.content.firstChild);zec=a}a=zec;return a},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var $3a=void 0,b4a=void 0;var e4a=new ohb;var yw=new _.jB("ENTITY_STATE_TOKEN"),sS=new _.jB("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var Jec=function(a){this.store=a;this.JSC$14773_enforcementCounter=new _.phb},j8a=function(a,b,c){var d,e;
if(!(e=((d=b.playabilityStatus)==null?void 0:d.status)!=="OK")){a=a.store;var g;e=b.offlineState&&((g=b.videoDetails)==null?0:g.videoId)?_.w("enable_pl_r_c_cd")?Ap(a.getState().entities,b.videoDetails.videoId):!!kFa(a.getState().entities,b.videoDetails.videoId):!1}if(e)return!0;e=j4a(b);if(e===1){if(_.w("ab_v_vid_sig")){var k,m=(k=b.videoDetails)==null?void 0:k.videoId;if(!m||!c||m!==c){var n;b=new _.qj("282054944_vid",{rvid:c,gvid:(n=b.videoDetails)==null?void 0:n.videoId});_.Bl(b)}}return!0}LHa=
0;var r,t;n=(m=b.auxiliaryUi)==null?void 0:(r=m.messageRenderers)==null?void 0:(t=r.bkaEnforcementMessageViewModel)==null?void 0:t.displayType;if(e!==3&&(n==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||n==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;n={reason:_.ep(_.vo("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.w("ks_something_wrong_learn_more")?P2a("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.ep(_.vo("LEARN_MORE",void 0,"Learn more")),navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"//support.google.com/youtube/?p=player_error1#zippy=%2Cupdate-your-browser",webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"//support.google.com/youtube/?p=player_error1#zippy=%2Cupdate-your-browser"}}}},subreason:_.ep("282054944")};Kec(b,{playerErrorMessageRenderer:n});return!1},k8a=function(a,b){if($Ha(b)){_.lq(1,!0);
var c=(c=$Ha(b))&&_.a4a()?c:void 0;c?(Kec(b,{enforcementMessageViewModel:c}),a.JSC$14773_enforcementCounter.increment("IN_PLAYER"),_.lq(5)):(a.JSC$14773_enforcementCounter.increment("SKIP_DISPLAY"),_.lq(2))}},Kec=function(a,b){a.playabilityStatus=Object.assign({},a.playabilityStatus,{status:"ERROR",
errorScreen:b});a.videoDetails=void 0};
Jec.prototype.handleResponse=function(a,b){if(a.playabilityStatus){var c,d,e,g=(b==null?void 0:(c=b.innerTubeRequest)==null?void 0:c.videoId)||(b==null?void 0:(d=b.innerTubeRequest)==null?void 0:(e=d.playerRequest)==null?void 0:e.videoId);j8a(this,a,g)&&k8a(this,a)}};
Jec[iB]=[yw];var h8a=new _.jB("ADBLOCK_DETECTION_SERVICE_TOKEN");var mw=function(a){this.kUa=a};
mw.prototype.bindInnertubeChallengeFetcher=function(a){this.kUa.bicf(a)};
mw.prototype.registerChallengeFetchedCallback=function(a){this.kUa.bcr(a)};
mw.prototype.getLatestChallengeResponse=function(){return this.kUa.blc()};var Oec;_.tS=function(a,b,c){var d=this;this.network=a;this.options=b;this.networkStatusManager=c;this.aO=null;if(b.useBotguardEverywhere){var e=new _.hq;this.aO=e.promise;_.ja.ytAtRC&&_.zu(_.zk,function(){var g,k;return _.l(function(m){if(m.nextAddress==1){if(!_.ja.ytAtRC)return m.return();g=Lec(null);return _.p(m,d.tV(g),2)}k=m.yieldResult;_.ja.ytAtRC&&_.ja.ytAtRC(JSON.stringify(k));_.ue(m)})});
o4a().then(function(g){var k,m,n,r;return _.l(function(t){if(t.nextAddress==1)return g.bindInnertubeChallengeFetcher(function(u){return d.tV(Lec(u))}),_.p(t,oia(),2);
k=t.yieldResult;m=g.getLatestChallengeResponse();n=m.challenge;if(!n)throw Error("ji");r={challenge:n,fU:lw(n),qc:k,bgChallenge:new jw};e.resolve(r);g.registerChallengeFetchedCallback(function(u){u=u.challenge;if(!u)throw Error("ki");u={challenge:u,fU:lw(u),qc:k,bgChallenge:new jw};d.aO=Promise.resolve(u)});
_.ue(t)})})}else b.preload&&Mec(this,new Promise(function(g){_.sl(_.zk,function(){g(Nec(d))},0)}))};
Oec=function(a){var b={preload:!0,useBotguardEverywhere:_.w("attmusi")},c=!1;if(typeof b==="boolean")var d={preload:b};else typeof b==="undefined"?d={preload:!0}:(d=b,c=!!b.ute);b=c?void 0:new _.Lk;_.tS.instance=new _.tS(a,d,b);return _.tS.instance};
_.tS.prototype.dTc=function(){var a=this;return _.l(function(b){return b.nextAddress==1?_.p(b,Promise.race([a.aO,null]),2):b.return(!!b.yieldResult)})};
_.tS.prototype.q1a=function(a,b,c){var d=this,e,g,k;return _.l(function(m){d.aO===null&&Mec(d,Nec(d));e=!1;g={};k=function(){var n,r,t;return _.l(function(u){switch(u.nextAddress){case 1:return _.p(u,d.aO,2);case 2:n=u.yieldResult;g.challenge=n.challenge;if(!n.qc){"c1a"in n.fU&&(g.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");u.jumpTo(3);break}r=Object.assign({},{c:n.challenge,e:a},b);_.pe(u,4);e=!0;if(_.w("attbs")&&!_.w("attmusi")){t=_.qgb(n.qc,{ew:r});u.jumpTo(6);break}return _.p(u,n.qc.snapshot({ew:r}),
7);case 7:t=u.yieldResult;case 6:t?g.webResponse=t:g.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.Jj(u,3);break;case 4:_.te(u),g.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(a==="ENGAGEMENT_TYPE_PLAYBACK"){var x=n.fU,A={};if(x.c6a){var C=Number(_.Fi("DCLKSTAT",0));A.reportingStatus=String(Number(x.c)^(isNaN(C)?0:C))}x.c6b&&(A.broadSpectrumDetectionResult=String(Number(x.c)^Number(_.Fi("CATSTAT",0))));g.adblockReporting=A}return u.return(g)}})};
return m.return(Promise.race([k(),Pec(c,function(){var n=Object.assign({},g);e&&(n.error="ATTESTATION_ERROR_VM_TIMEOUT");return n})]))})};
var Lec=function(a){var b={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};a&&(b.interpreterHash=a);return b},Nec=function(a,b){b=b===void 0?0:b;
var c,d,e,g,k,m,n,r,t,u,x,A;return _.l(function(C){switch(C.nextAddress){case 1:c=Lec(sgb().ndb);if(_.w("att_fet_ks"))return _.pe(C,7),_.p(C,a.tV(c),9);_.pe(C,4);return _.p(C,Qec(a,c),6);case 6:k=C.yieldResult;e=k.k6c;g=k.l6c;d=k;_.Jj(C,3);break;case 4:return _.te(C),_.Dl(Error("li`"+b)),Rec(a,864E5),C.return({challenge:"",fU:{},qc:void 0,bgChallenge:void 0});case 9:d=C.yieldResult;if(!d)throw Error("mi");if(!d.challenge)throw Error("ni");e=d.challenge;g=lw(e);if("c1a"in g&&(!d.bgChallenge||!d.bgChallenge.program))throw Error("oi");
_.Jj(C,3);break;case 7:m=_.te(C);_.Dl(m);b++;if(b>=5)return _.Dl(Error("li`"+b)),Rec(a,864E5),C.return({challenge:"",fU:{},qc:void 0,bgChallenge:void 0});n=1E3*Math.pow(2,b-1)+Math.random()*1E3;return C.return(new Promise(function(F){_.sl(_.zk,function(){F(Nec(a,b))},n)}));
case 3:r=n4a(g);Rec(a,r*1E3);t=void 0;if(!("c1a"in g&&d.bgChallenge)){C.jumpTo(10);break}u=m4a(d.bgChallenge);_.pe(C,11);return _.p(C,ugb(sgb(),u),13);case 13:_.Jj(C,12);break;case 11:return x=_.te(C),_.Dl(x),C.return({challenge:e,fU:g,qc:t,bgChallenge:u});case 12:return _.pe(C,14),t=new _.Tz({challenge:u,u8:{ru:"aGIf"}}),_.p(C,t.gba,16);case 16:_.Jj(C,10);break;case 14:A=_.te(C),_.Dl(A),t=void 0;case 10:return C.return({challenge:e,fU:g,qc:t,bgChallenge:u})}})};
_.tS.prototype.tV=function(a){var b=this,c;return _.l(function(d){c=b.networkStatusManager;if(!c||c.isNetworkAvailable())return d.return(b.network.tV(a));_.No("att_pna",void 0,"attestation_challenge_fetch");return d.return(new Promise(function(e){c.listenOnce("publicytnetworkstatus-online",function(){b.network.tV(a).then(e)})}))})};
var Sec=function(a){if(!a)throw Error("mi");if(!a.challenge)throw Error("ni");var b=a.challenge,c=lw(b);if("c1a"in c&&(!a.bgChallenge||!a.bgChallenge.program))throw Error("oi");return Object.assign({},a,{k6c:b,l6c:c})},Qec=function(a,b){var c,d,e,g,k;
return _.l(function(m){switch(m.nextAddress){case 1:c=void 0,d=0,e={};case 2:if(!(d<5)){m.jumpTo(4);break}if(!(d>0)){m.jumpTo(5);break}e.vJb=1E3*Math.pow(2,d-1)+Math.random()*1E3;return _.p(m,new Promise(function(n){return function(r){_.sl(_.zk,function(){r(void 0)},n.vJb)}}(e)),5);
case 5:return _.pe(m,7),_.p(m,a.tV(b),9);case 9:return g=m.yieldResult,m.return(Sec(g));case 7:c=k=_.te(m),k instanceof Error&&_.Dl(k);case 8:d++;e={vJb:void 0};m.jumpTo(2);break;case 4:throw c;}})},Mec=function(a,b){a.aO=b},Tec=function(a){var b,c,d;
return _.l(function(e){if(e.nextAddress==1)return _.p(e,Promise.race([a.aO,null]),2);b=e.yieldResult;var g=Nec(a);a.aO=g;(c=b)==null||(d=c.qc)==null||d.dispose();_.ue(e)})},Rec=function(a,b){var c=Date.now()+b,d=function(){var e;
return _.l(function(g){e=c-Date.now();return e<1E3?_.p(g,Tec(a),0):(_.sl(_.zk,d,Math.min(e,6E4)),g.jumpTo(0))})};
d()},Pec=function(a,b){return new Promise(function(c){_.sl(_.zk,function(){c(b())},a)})};var Uec=function(){};
Uec.prototype.processContext=function(a){var b=_.tS.instance;if(!b)return _.$E();var c=t4a(a);return c?new ZE(b.q1a(c,r4a(a),500).then(function(d){var e;(a==null?0:(e=a.innerTubeRequest)==null?0:e.context)||(a.innerTubeRequest.context={});e=a.innerTubeRequest.context;e.request||(e.request={});e.request.attestationResponseData=d})):_.$E()};var Vec=function(a){this.innertubeTransportService=a};
Vec.prototype.tV=function(a){_.No("att_fsr",void 0,"attestation_challenge_fetch");return _.RF(this.innertubeTransportService,a,_.Zp(_.QGb)).then(function(b){_.No("att_frr",void 0,"attestation_challenge_fetch");return b})};_.Wec=function(a){this.innertubeTransportService=a};var Xec=new _.jB("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var Yec=function(){},$ec=function(a,b,c,d,e){var g=_.Fi("YPC_MB_URL");
_.$4a(g).then(function(){Zec(g,a,b,c,d,e)})},Zec=function(a,b,c,d,e,g){try{var k=payments.business.integration,m=payments.business.integration.Style.create().withMaterialDesignStyle(),n=k.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.w("enable_window_constrained_buy_flow_dialog")&&(n=n.usingPopupStyle("windowConstrained"));g&&(n=n.usingCloseCallback(g));var r=c?c:_.Fi("YPC_GB_LANGUAGE"),t=_.Fi("SESSION_INDEX");k.bootstrap.fromPaymentsUrl(a);k.bootstrap.asMashupMode(n).usingGaiaIndex(t).usingLocale(r).usingStyle(m).usingDefaultActivityStatusChangeHandler().inStandaloneContext(k.standaloneContextAuthId.forGaia()).purchaseManager(b,function(u){d&&d(u)}).load(void 0,e)}catch(u){throw e&&e(u),_.Bl(u),u;
}};var afc=new _.jB("PURCHASE_MANAGER_TOKEN");var bfc=function(){var a=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return a.videos},
getContinuationsPresent:function(){return a.continuationsPresent},
setVideos:function(b){a.videos=b},
getRecommendedVideos:function(){return a.recommendedVideos},
setRecommendedVideos:function(b){a.recommendedVideos=b}}};
bfc.prototype.addVideos=function(a){a&&(this.videos=a.filter(function(b){return!!_.v4a(b)}).map(function(b){var c=_.v4a(b);
a:{var d;if(b.playlistVideoRenderer&&((d=b.playlistVideoRenderer)==null?0:d.voteSortTiebreaker))var e=b.playlistVideoRenderer.voteSortTiebreaker;else{if(_.y(b,ow)){var g;if(d=(e=_.y(b,ow))==null?void 0:(g=e.playlistItemData)==null?void 0:g.voteSortTiebreaker){e=d;break a}}e=""}}return{itemId:c,videoId:_.y4a(b),voteCount:_.z4a(b),voteSortTiebreaker:e}}),this.continuationsPresent=!!_.y(a[a.length-1],_.sw))};
var cfc=function(a,b){return a.videos.findIndex(function(c){return c.itemId===b})},dfc=function(a,b){return a.recommendedVideos.findIndex(function(c){return c.itemId===b})},efc=function(a){a={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:a}}}}};_.v().resolve(_.Yi).resolveCommand(a)};var ffc=function(){bfc.apply(this,arguments)};
_.z(ffc,bfc);
var $8b=function(a,b,c,d){if(!a.parentElem)throw Error("ti");var e=cfc(a,b);e===-1&&(e=dfc(a,b),e=e!==-1?e+a.videos.length:-1);if(e===-1)throw Error("ui");var g=e>=a.videos.length?a.recommendedVideos[e-a.videos.length]:a.videos[e];g.voteCount=c;g.voteSortTiebreaker=Date.now().toString();e>=a.videos.length?a.recommendedVideos.splice(e-a.videos.length,1):a.videos.splice(e,1);var k=a.videos;for(var m=0,n=k.length-1;m<=n;){var r=Math.floor((m+n)/2);if(k[r].voteCount<g.voteCount)n=r-1;else if(k[r].voteCount>g.voteCount)m=
r+1;else{a:{var t=g.voteSortTiebreaker;var u=k[r].voteSortTiebreaker;if(t.length!==u.length)t=t.length>u.length;else{for(var x=0;x<t.length;x++){var A=t.charCodeAt(x),C=u.charCodeAt(x);if(A>C){t=!0;break a}if(A<C)break}t=!1}}t?n=r-1:m=r+1}}k=m;if(k===-1)throw Error("vi");a.videos.splice(k,0,g);e!==k&&gfc(a,e,k,b,c,d)},gfc=function(a,b,c,d,e,g){var k,m=(k=a.parentElem)==null?void 0:k.children,n=Math.min(b,c),r=Math.max(b,c);
if(m)for(k=n;k<=r;k++)m[k].style.viewTransitionName="item-"+String(k);document.startViewTransition(function(){if(a.parentElem){var t=a.parentElem.children;if(!(!t||b<0||b>=t.length||c<0||c>=t.length)){var u=t[b];if(u){u.remove();a.showRefreshPill=c>=a.videos.length-1&&a.continuationsPresent;if(!a.showRefreshPill){t=t[c]||null;var x;(x=a.parentElem)==null||x.insertBefore(u,t)}_.io(a.parentElem,"yt-update-video-data-voting-animation",{toIdx:c,itemId:d,newVoteCount:e,voteStatus:g,hideItem:a.showRefreshPill})}}}}).finished.then(function(){if(m)for(var t=
n;t<=r;t++)m[t].style.viewTransitionName="";
if(a.showRefreshPill)efc(_.vo("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var u;if(u=t=(u=a.parentElem)==null?void 0:u.children[c])u=t.getBoundingClientRect(),t=u.bottom,u=!(u.top>=0&&t<=a.clientHeight);u&&(u=_.wo(b>c?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(b-c)),efc(u))}})};var hfc=_.$i("innertube_request_limit_ms",3E3),kfc=function(a,b){var c=this;a?this.innertubeTransportServicePromise=Promise.resolve(a):b&&(this.innertubeTransportServicePromise=b(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new bS(hfc,function(d){return ifc(c,d)},0);
this.validateMiniAppVideoIdRateLimiter=new bS(hfc,function(d){return jfc(c,d)},1)},Odc=function(a,b){a.JSC$14836_miniAppId=b;
a.reportMiniAppValueRateLimiter=new bS(hfc,function(c){return ifc(a,c)},0);
a.validateMiniAppVideoIdRateLimiter=new bS(hfc,function(c){return jfc(a,c)},1)},Qdc=function(a,b){var c;
return _.l(function(d){if(d.nextAddress==1)return _.p(d,a.reportMiniAppValueRateLimiter.call(b),2);c=d.yieldResult;return d.return([c,b])})},ifc=function(a,b){var c,d,e,g,k,m,n;
return _.l(function(r){switch(r.nextAddress){case 1:return _.p(r,a.innertubeTransportServicePromise,2);case 2:return c=r.yieldResult,d=_.Zp(XHb),e=Date.now(),g={externalPostId:a.JSC$14836_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(e/1E3),nanos:Math.round(e%1E3*1E6)},intValue:""+b}},_.pe(r,3),_.p(r,_.RF(c,g,d),5);case 5:k=r.yieldResult;_.Jj(r,4);break;case 3:throw m=_.te(r),m;case 4:if(k){if("error"in k&&k.error)throw k.error;if(k.errorMetadata)throw Error("wi`"+
k.errorMetadata.status);if(n=k.userStatResult)return r.return(n);throw Error("xi");}throw Error("yi");}})},Sdc=function(a){var b,c,d,e,g;
_.l(function(k){switch(k.nextAddress){case 1:return _.p(k,a.innertubeTransportServicePromise,2);case 2:return b=k.yieldResult,c=_.Zp(XHb),d={externalPostId:a.JSC$14836_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.pe(k,3),_.p(k,_.RF(b,d,c),5);case 5:e=k.yieldResult;_.Jj(k,4);break;case 3:throw g=_.te(k),g;case 4:if(e==null)throw Error("yi");if("error"in e&&e.error)throw e.error;if(e.errorMetadata)throw Error("wi`"+e.errorMetadata.status);_.ue(k)}})};
kfc.prototype.flush=function(){var a=this;return _.l(function(b){return b.nextAddress==1?_.p(b,a.reportMiniAppValueRateLimiter.flush(),2):_.p(b,a.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var Rdc=function(a,b){return _.l(function(c){return c.nextAddress==1?_.p(c,a.validateMiniAppVideoIdRateLimiter.call(b),2):c.return(c.yieldResult)})},jfc=function(a,b){var c,d,e,g,k,m;
return _.l(function(n){switch(n.nextAddress){case 1:return _.p(n,a.innertubeTransportServicePromise,2);case 2:return c=n.yieldResult,d=_.Zp(PHb),e={videoId:b},_.pe(n,3),_.p(n,_.RF(c,e,d),5);case 5:g=n.yieldResult;_.Jj(n,4);break;case 3:throw k=_.te(n),k;case 4:if(g){if("error"in g&&g.error)throw g.error;if(g.errorMetadata)throw Error("wi`"+g.errorMetadata.status);if(m=g.playabilityStatus)return n.return(m.status);throw Error("zi");}throw Error("yi");}})};
kfc[iB]=[_.Xi(_.yq),_.Xi(rKb)];var lfc=function(){this.clientData=new Map};
lfc.prototype.getData=function(a){return this.clientData.get(a)};var mfc=function(a){this.store=a};
mfc.prototype.handleResponse=function(a){(a=_.y(a.frameworkUpdates,Ut))&&_.tp(a,this.store)};
mfc[iB]=[_.LG];var nfc=new _.jB("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var ofc={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],dollarsign_color:[[1,2,24]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,
1,36]],face_filled_very_happy:[[0,1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,
1,300]],hi5:[[0,1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_forty:[[0,1,24]],offline_downloading_sixty:[[0,
1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,1,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,
1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],
video_call:[[0,1,24]],view_list:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,1,192]],yensign_color:[[1,1,24]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,
2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var pfc=new _.jB("ICON_SET_TOKEN"),qfc=new _.jB("ICON_URL_PROVIDER_TOKEN"),rfc=new _.jB("PREFETCH_ICONS_TOKEN"),sfc=new _.jB("ICON_MAP_FN_TOKEN");var uS={},tfc=(uS.ACCESS_TIME="clock",uS.ACCOUNT_BOX="person_account",uS.ACCOUNT_BOX_CAIRO="person_account_cairo",uS.ACCOUNT_CIRCLE="person_circle",uS.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",uS.ACCOUNT_LINKED="account_link_success",uS.ACCOUNT_UNLINKED="account_link",uS.ADD_FRIEND="people",uS.ADD_TO_LIBRARY=rw("add"),uS.ADD_TO_PLAYLIST="add",uS.ADD_TO_QUEUE_TAIL="list_queue",uS.ADD_TO_REMOTE_QUEUE="list_music",uS.ADD_TO_WATCH_LATER="clock",uS.ADD_VIDEO_LINK="film_strip_add",uS.ALERT_WARN_RED="alert_triangle",
uS.ARROW_BACK="arrow_left",uS.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",uS.ARROW_DROP_DOWN="chevron_down",uS.ARROW_DROP_UP="chevron_up",uS.ARROW_FORWARD="arrow_right",uS.AUDIOTRACK="audio",uS.AUTO_AWESOME="sparkle",uS.AVATAR_ANONYMOUS="person_circle",uS.AVATAR_LOGGED_OUT="person_circle",uS.BACK="arrow_left",uS.BAR_CHART="bar_graph",uS.BLOCK="slash_circle_left",uS.BLOCK_USER="slash_circle_left",uS.BOOKMARK_BORDER="bookmark",uS.BREAKING_NEWS_ALT_1="article_alert",uS.BROADCAST_CAIRO="podcast_cairo",
uS.BUG_REPORT="bug",uS.CAMERA_ALT="camera",uS.CAMPAIGN="megaphone",uS.CANCEL="x_circle",uS.CAPTIONS="closed_caption",uS.CAST_OUTLINE="chromecast",uS.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",uS.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",uS.CHAT="message_bubble_left",uS.CHAT_BUBBLE="message_bubble_empty",uS.CHECK_BOX_OUTLINE_BLANK="box_empty",uS.CHECK_CIRCLE_OUTLINE="check_circle",uS.CHECK_CIRCLE_THICK="check_circle",uS.CLARIFY="article_clarify",uS.CLOSED_CAPTION_SELECTED="closed_caption",uS.CLOSE=
"x_mark",uS.CLOUD_UPLOAD="cloud_arrow_up",uS.COLLAPSE="chevron_up",uS.COLLAPSE_CAIRO="chevron_up_cairo",uS.COLLECTION="layers",uS.COLOR_LENS="palette",uS.COMMENT="message_bubble_right",uS.CONSENT_SHIELD="person_shield",uS.CONTENT_CUT="scissors",uS.CONTENT_CUT_CAIRO="scissors_cairo",uS.COURSE=_.w("web_enable_course_icon_update")?"creator_academy":"lightbulb",uS.COURSE_CAIRO=_.w("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",uS.CREATION_LIVE="radar_live",uS.CREATION_UPLOAD=
"my_videos",uS.CREATION_UPLOAD_RED="upload",uS.CREATOR_STUDIO="youtube_studio",uS.DELETE="trash_can",uS.DELETE_SWEEP="trash_can",uS.DESKTOP="laptop",uS.DISLIKE="thumb_down",uS.DISLIKE_SELECTED="thumb_down",uS.DISMISSAL="x_mark",uS.DISMISS_QUEUE="list_remove",uS.DOWN_ARROW="arrow_down",uS.DO_NOT_DISTURB="slash_circle_left",uS.DRAFT="paper_corner_folded",uS.DRAG_HANDLE="bars_2",uS.EDIT="pencil",uS.EMOJI="face_very_happy",uS.EMOJI_FLAGS="flag",uS.EMOJI_OBJECTS="lightbulb",uS.EMOJI_PEOPLE="face_very_happy",
uS.EMOJI_RECENT="clock",uS.EMPTY_HEART="heart",uS.EMPTY_LIKE="thumb_up",uS.ERROR_BLACK="alert_circle",uS.ERROR_OUTLINE="alert_circle",uS.EXIT_APP="arrow_in",uS.EXIT_TO_APP="arrow_in",uS.EXPAND="chevron_down",uS.EXPAND_ALL="chevron_expand",uS.EXPAND_CAIRO="chevron_down_cairo",uS.EXPAND_LESS="chevron_up",uS.EXPAND_MORE="chevron_down",uS.EXPLORE="compass",uS.EXPLORE_DESTINATION="compass",uS.EXTERNAL_LINK="open_new",uS.FAB_UPLOAD="upload",uS.FACE_HAPPY_OUTLINE="face_happy",uS.FACT_CHECK="article_check",
uS.FASHION_LOGO="fashion",uS.FASHION_LOGO_CAIRO="fashion_cairo",uS.FAVORITE="heart",uS.FEEDBACK="message_bubble_alert",uS.FEEDBACK_CAIRO="message_bubble_alert_cairo",uS.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",uS.FILL_ARROW_SOLID_UP_16="arrow_solid_up",uS.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",uS.FLAG="flag",uS.FULL_HEART="heart",uS.GAME_CONSOLE_DPAD="game_console_dpad",uS.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",uS.GAMING_LOGO="gaming",uS.GAMING_LOGO_CAIRO="gaming_cairo",uS.GO_TO_PAGE=
"arrow_right",uS.GROUPS="people_group",uS.HAPPY="face_happy",uS.HEALTH_AND_SAFETY="shield_plus",uS.HELP="question_circle",uS.HELP_CAIRO="question_circle_cairo",uS.HELP_OUTLINE="question_circle",uS.HIDE="slash_circle_left",uS.IMAGE="image",uS.INFINITY_ICON="infinity",uS.INFO="info_circle",uS.INFO_OUTLINE="info_circle",uS.INSERT_CHART_OUTLINED="bar_graph_box_vertical",uS.INSERT_PHOTO="image",uS.KEEP="pin",uS.KEEP_OFF="pin_off",uS.KEYBOARD="keyboard",uS.KEYBOARD_ARROW_DOWN="chevron_down",uS.KEYBOARD_ARROW_UP=
"chevron_up",uS.KIDS_BLOCK="slash_circle_left",uS.LANGUAGE="globe",uS.LAUNCH="open_new",uS.LEARNING="lightbulb",uS.LEARNING_CAIRO="lightbulb_cairo",uS.LIBRARY_ADD=rw("library_add"),uS.LIBRARY_OUTLINE="library",uS.LIBRARY_REMOVE=rw(),uS.LIKES_PLAYLIST="thumb_up",uS.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",uS.LIKE="thumb_up",uS.LIKE_SELECTED="thumb_up",uS.LIVE="radar_live",uS.LIVE_CAIRO="radar_live_cairo",uS.LIVE_UNLISTED="link",uS.LOCATION_ON="location_point",uS.LOCATION_PIN="location_point",uS.LOOP=
"arrow_repeat",uS.LOOP_ACTIVE="arrow_repeat",uS.LOOP_ONE="arrow_repeat_1",uS.LOOP_ONE_ACTIVE="arrow_repeat_1",uS.MEH="face_meh",uS.MEMBERS_ONLY_MODE_OFF="message_bubble_left",uS.MESSAGE="message_bubble_left",uS.MICROPHONE_ON="mic",uS.MIX="youtube_mix",uS.MONETIZATION_ON="dollar_sign_circle",uS.MONEY_FILL="dollar_sign_container",uS.MONEY_FILL_JPY="yen_sign_container",uS.MONEY_HEART="dollar_sign_heart",uS.MORE_HORIZ="overflow_horizontal",uS.MORE_VERT="overflow_vertical",uS.MUSIC="audio",uS.MUSIC_CAIRO=
"audio_cairo",uS.MUSIC_NOTE_SYMBOL="music",uS.MUSIC_SHUFFLE="arrow_shuffle",uS.MY_CHANNEL="person_circle",uS.MY_LOCATION="location_point",uS.NEWS_STORY="news",uS.NEXT="chevron_right",uS.NOTIFICATIONS="bell",uS.NOTIFICATIONS_ACTIVE="bell_on",uS.NOTIFICATIONS_CAIRO="bell_cairo",uS.NOTIFICATIONS_DONE_CHECKMARK="check",uS.NOTIFICATIONS_INBOX="bell",uS.NOTIFICATIONS_NONE="bell",uS.NOTIFICATIONS_OFF="bell_off",uS.NOT_INTERESTED="slash_circle_left",uS.OFFICIAL_ARTIST_BADGE="audio",uS.OFFLINE_CLOUD="cloud_off",
uS.OFFLINE_DOWNLOAD="download",uS.OFFLINE_DOWNLOAD_CAIRO="download_cairo",uS.OFFLINE_PAUSE="pause",uS.OPEN_IN_NEW="open_new",uS.OUTLINE_ADJUST="adjust",uS.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",uS.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",uS.OUTLINE_BAG="bag",uS.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",uS.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",uS.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",uS.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",uS.PAID="dollar_sign",uS.PAUSE_OUTLINED=
"pause",uS.PAYMENT="credit_card",uS.PERSON_RADAR_FILLED="person_radar",uS.PHONE_DOWNLOAD="mobile_download",uS.PLAYABLES_LOGO="tic_tac_toe",uS.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",uS.PLAYLISTS="list_play_arrow",uS.PLAYLISTS_CAIRO="list_play_arrow_cairo",uS.PLAYLIST_ADD=rw("list_add"),uS.PLAYLIST_ADD_CHECK=rw("list_check"),uS.PLAY_ALL="play_arrow",uS.PLAY_CIRCLE="play_arrow_circle",uS.PLAY_OUTLINED="play_arrow_circle",uS.PRIVACY_INFO="shield",uS.PRIVACY_PRIVATE="lock",uS.PRIVACY_PUBLIC="earth",
uS.PRIVACY_UNLISTED="link",uS.PROMOTE="megaphone",uS.PURCHASES="price_tag",uS.PURCHASE_SUPER_CHAT="super_chat",uS.PURCHASE_SUPER_STICKER="super_sticker",uS.QUESTION_ANSWER="message_bubble_question",uS.QUEUE_PLAY_LAST="list_queue_last",uS.QUEUE_PLAY_NEXT="list_play_arrow",uS.REMIX_FILLED="youtube_shorts_remix",uS.REMOVE="bar_circle",uS.REMOVE_CIRCLE="bar_circle",uS.REMOVE_CIRCLE_OUTLINE="bar_circle",uS.REMOVE_FROM_HISTORY="bar_circle",uS.REMOVE_FROM_PLAYLIST="bar_circle",uS.REPLAY="arrow_circle",uS.REPORT_PROBLEM=
"alert_triangle",uS.SAD="face_sad",uS.SAVE_PLAYLIST=rw("library_add"),uS.SCHEDULE="clock",uS.SCHOOL="creator_academy",uS.SCREEN_FULLSCREEN="screen_full",uS.SEARCH_HISTORY="arrow_time",uS.SELL="price_tag",uS.SETTINGS="gear",uS.SETTINGS_CAIRO="gear_cairo",uS.SETTINGS_LIGHT="gear",uS.SETTINGS_MATERIAL="gear",uS.SHARE_ARROW="share",uS.SHIELD_WITH_AVATAR="person_shield",uS.SHOPPING_BAG="bag",uS.SHOPPING_BAG_CAIRO="bag_cairo",uS.SHOPPING_CART="cart",uS.SHORTS_COMMENT="youtube_shorts_message_bubble_right",
uS.SHORTS_DISLIKE="youtube_shorts_thumb_down",uS.SHORTS_LIKE="youtube_shorts_thumb_up",uS.SHORTS_SHARE="youtube_shorts_share",uS.SHUFFLE="arrow_shuffle",uS.SLOW_MODE_OFF="message_bubble_left",uS.SOCIAL="people",uS.SORT="menu_sort",uS.SPEED_1X="1x",uS.SPEED_1_POINT_2X="1_point_2x",uS.SPEED_1_POINT_5X="1_point_5x",uS.SPEED_1_POINT_8X="1_point_8x",uS.SPEED_2X="2x",uS.SPEED_POINT_2X="point_2x",uS.SPEED_POINT_8X="point_8x",uS.SPONSORSHIP_STAR=_.w("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",
uS.STAFF_PICK="spotlight",uS.START_DVR="add",uS.STAR_BORDER="star",uS.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",uS.STICKER_EMOTICON="face_happy",uS.STOP_DVR="stop",uS.SUBSCRIBE="youtube_logo_icon",uS.SUBSCRIBE_PLUS="add_cairo",uS.SUBSCRIPTION_MANAGER="gear",uS.SUPERVISOR_ACCOUNT="people",uS.SWAP_HORIZ="arrow_swap_horizontal",uS.SWITCH_ACCOUNTS="person_account",uS.TAB_ACCOUNT="person",uS.TAB_ACTIVITY="bell",uS.TAB_EXPLORE="compass",uS.TAB_HOME="home",uS.TAB_HOME_CAIRO="home_cairo",uS.TAB_INBOX=
"mail",uS.TAB_LIKED="thumb_up",uS.TAB_MUSIC_PREMIUM="youtube_music",uS.TAB_SHORTS="youtube_shorts",uS.TAB_SHORTS_CAIRO="youtube_shorts_cairo",uS.TAB_SUBSCRIPTIONS="subscriptions",uS.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",uS.TAB_TRENDING="fire",uS.TIMER="stopwatch",uS.TRENDING="fire",uS.TRENDING_CAIRO="fire_cairo",uS.TRENDING_UP="rating_up",uS.TROPHY="trophy",uS.TROPHY_CELEBRATIONS="fireworks",uS.TUNE="adjust",uS.UNBLOCK_USER="bar_circle",uS.UNLIMITED="youtube_logo_icon",uS.UNPLUGGED_LIVE_GUIDE=
"radar_live",uS.UNPLUGGED_SPORTS="eye_off",uS.UPLOADS="library",uS.UP_ARROW="arrow_up",uS.VERTICAL_ALIGN_BOTTOM="download",uS.VERY_HAPPY="face_very_happy",uS.VERY_SAD="face_very_sad",uS.VIDEOS="play_arrow_circle",uS.VIDEO_CALL="video_camera_add",uS.VIDEO_LIBRARY_WHITE="library",uS.VIDEO_YOUTUBE="youtube_logo_icon",uS.VIEW_LIST="list_view",uS.VIEW_LIST_CAIRO="list_view_cairo",uS.VISIBILITY="eye",uS.VISIBILITY_OFF="eye_off",uS.VOLUME_MUTE="volume_off",uS.VOLUME_UP="volume_on",uS.WALLPAPER="image",uS.WARNING=
"alert_triangle",uS.WATCH_HISTORY="arrow_time",uS.WATCH_HISTORY_CAIRO="arrow_time_cairo",uS.WATCH_LATER="clock",uS.WATCH_LATER_CAIRO="clock_cairo",uS.WATCH_RELATED_MIX="youtube_mix",uS.WHAT_TO_WATCH="home",uS.YOUTUBE_MUSIC_MONOCHROME="youtube_music",uS.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",uS.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",uS.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",uS.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",uS.YT_OUTLINE_MUSIC_24=
"music",uS);var ufc={},vfc=(ufc.TAB_SHORTS="youtube_shorts",ufc.TAB_SHORTS_CAIRO="youtube_shorts",ufc.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",ufc);var wfc={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,2,24]],account_link:[[1,6,24]],account_link_error:[[1,5,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,7,16],[1,7,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,3,24],
[1,3,36]],add_half_circle:[[1,2,24]],adjust:[[0,6,24],[1,6,24]],airplane:[[0,2,24],[1,2,20],[1,2,24]],airplay:[[1,5,16],[1,5,24]],airplay_off:[[1,1,24]],album:[[0,4,24],[1,4,24]],alert_circle:[[0,7,24],[1,7,16],[1,7,24]],alert_triangle:[[0,6,12],[0,6,24],[1,6,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,36],[1,1,48]],
arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,2,24],[1,2,24]],arrow_down_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrow_flip:[[1,8,16],[1,8,24]],arrow_in:[[0,6,24],[1,6,24]],arrow_left:[[1,6,24,!0]],arrow_left_cairo:[[1,2,24]],arrow_merge:[[1,
1,24]],arrow_out:[[0,1,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,2,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_solid_up:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_split:[[0,2,24],[1,2,24]],arrow_swap_horizontal:[[0,3,24],[1,3,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],
[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,2,24],[1,2,24]],arrow_up_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,7,12],[0,7,16],[0,7,24],[1,7,24]],audio_badge:[[0,1,12],[0,1,16],[0,1,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,3,24],[1,3,24]],bag:[[0,5,12],
[0,5,18],[0,5,24],[1,5,18],[1,5,24]],bag_bookmark:[[1,1,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,1,24]],bell:[[0,8,24],[1,8,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,2,24]],blur:[[1,1,24]],book:[[1,1,24]],bookmark:[[0,6,24],[1,6,24]],bookmark_cairo:[[0,
2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,1,24]],briefcase_slash:[[0,1,24]],brightness:[[0,1,24],[1,1,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,1,24],[1,
1,24]],business:[[1,2,24]],cable:[[1,1,24]],calculator:[[0,1,24],[1,1,24]],calendar:[[0,2,24],[1,2,24]],camera:[[0,7,24],[1,7,24]],camera_audio:[[1,4,24]],camera_effects:[[1,4,24]],camera_flip:[[1,3,24]],camera_hashtag:[[1,4,24]],camera_switch:[[0,1,24],[1,1,24]],card:[[0,2,12],[0,2,16],[0,2,24]],cart:[[0,2,24],[1,2,24]],celebration:[[1,1,24]],check:[[0,9,12],[0,9,16],[0,9,24],[1,9,16],[1,9,24]],check_circle:[[0,8,18],[0,8,24],[1,8,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,
2,24]],chevron_down:[[1,7,18],[1,7,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,1,24]],chevron_expand:[[1,4,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,8,16,!0],[1,8,18,!0],[1,8,24,!0]],chevron_left_circle:[[0,1,24]],chevron_left_ios:[[1,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,5,16,!0],[0,5,18,!0],[0,5,24,!0],[1,5,16,!0],[1,5,18,!0],[1,5,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,1,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,
7,16],[1,7,18],[1,7,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,1,24]],chromecast:[[0,6,24],[1,6,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,2,24],[1,2,36]],chromecast_waveform:[[1,1,24]],circle:[[0,5,24],[1,5,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,
1,24]],clapperboard:[[0,1,24],[1,1,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,7,24],[1,7,16],[1,7,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,1,24]],cloud_arrow_down:[[1,2,24]],cloud_arrow_up:[[0,3,24],[1,3,24]],cloud_check:[[0,1,24],[1,1,24]],cloud_ellipsis:[[0,1,24],[1,1,24]],cloud_off:[[1,2,24]],code:[[1,1,24]],compass:[[0,6,24],[1,6,24]],compass_cairo:[[0,
1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,2,24]],copyright:[[0,2,24],[1,2,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,2,24]],crop:[[1,2,16],[1,2,24]],crop_rotate:[[1,1,24]],crown:[[0,2,16],[0,2,24],[1,2,12],[1,2,16],[1,2,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,2,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,
8,16],[0,8,24],[1,8,16],[1,8,24]],dollar_sign_circle_pause:[[1,1,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,20,12],[0,20,24],[1,20,16],[1,20,24]],dollar_sign_off:[[1,3,24]],download:[[0,9,24],[1,9,16],[1,9,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,
6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,5,18],[0,5,24],[1,5,24]],eye:[[0,3,24],[1,3,24]],eye_off:[[1,4,24]],eyedropper:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_image:[[1,1,24]],face_meh:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,1,24]],face_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_unhappy:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],
face_upset:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],fashion:[[0,2,24],[1,2,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[1,2,24]],fast_forward:[[0,3,24]],film_strip:[[0,4,24],[1,4,24]],film_strip_add:[[1,1,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,6,24],[1,6,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,2,24]],flag:[[0,6,24],[1,6,24]],
flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,1,24],[1,1,24]],flash_circle:[[0,3,18],[0,3,24],[1,3,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,3,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,2,16],[0,2,24],[1,2,24]],football:[[0,1,24],[1,1,24]],gaming:[[0,1,24],[1,1,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,6,24],[1,6,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,3,24]],gif:[[1,1,24]],gift:[[0,1,24],[1,1,24]],globe:[[1,2,
24]],glow:[[1,1,24]],google_lens:[[1,3,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,1,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,1,24]],hands_heart:[[0,1,24],[1,1,24]],hashtag:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],hd:[[0,6,24],[1,6,24]],headset:[[0,6,24],[1,6,24]],heart:[[0,15,13],[0,15,24],[1,
15,16],[1,15,24]],heart_box:[[1,1,24]],heart_circle:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],heart_off:[[1,2,24]],hierarchy:[[0,2,24],[1,2,24]],highlights:[[1,1,24]],home:[[0,7,24],[1,7,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,1,16],[1,1,24]],image:[[0,6,24],[1,6,24]],image_add:[[1,2,24]],image_wallpaper:[[1,1,24]],incognito:[[0,7,24],[1,7,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,1,24]],info_circle:[[1,8,16],[1,8,18],[1,8,20],[1,8,24]],key:[[1,4,24]],keyboard:[[0,
2,24],[1,2,24]],label:[[0,2,24],[1,2,24]],laptop:[[1,2,24]],laptop_mobile:[[0,2,24],[1,2,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,1,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,2,12],[0,2,24],[1,2,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],link:[[1,6,18],[1,6,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],
list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,1,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,9,12],[0,9,24],[1,9,12],[1,9,16],[1,9,18],[1,9,24]],lock_open:[[1,2,24]],magic_wand:[[0,
1,24],[1,1,24]],mail:[[0,6,24],[1,6,24]],map:[[1,2,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,1,24]],medal_star:[[1,1,24]],meet:[[1,1,24]],megaphone:[[0,2,24],[1,2,24]],
memberships:[[0,6,12],[0,6,16],[0,6,18],[0,6,24],[1,6,24]],mention:[[1,3,16],[1,3,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,
32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,8,24],[1,8,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,3,24],[1,3,24]],mobile_check:[[1,1,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,1,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,1,24]],move:[[1,1,24]],music:[[0,6,24],[1,6,16],
[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,3,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,2,24],[1,2,12],[1,2,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,1,24]],node_right:[[1,1,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,4,24],[1,4,32]],overflow_vertical:[[1,10,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,
2,24]],palette:[[1,1,24]],panels:[[0,1,24],[1,1,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,6,24]],pause_circle:[[0,1,12],[0,1,16],[0,1,24]],pdf:[[1,1,24]],pencil:[[1,6,16],[1,6,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,5,12],[0,5,13],[0,5,16],[0,5,24],[0,5,48],[1,5,13],[1,5,16],[1,5,24]],person_2:[[1,1,24]],person_account:[[1,6,
24]],person_account_cairo:[[1,1,24]],person_add:[[1,5,24]],person_box:[[1,5,24]],person_circle:[[0,8,24],[1,8,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,1,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],person_setting:[[1,6,24]],person_shield:[[1,6,24]],phone:[[0,1,24],[1,1,24]],picture_in_picture:[[0,1,24],[1,1,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,5,12],[0,5,24],[1,5,16],[1,5,24]],pin_off:[[1,
1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,2,24],[1,2,12],[1,2,16],[1,2,18],[1,2,24]],podcast_add:[[0,1,24],[1,1,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,1,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,7,16],[1,7,24],[1,7,40]],pound:[[1,3,24]],presentation:[[1,1,24]],presentation_remove:[[1,1,24]],price_tag:[[0,
6,12],[0,6,24],[1,6,24]],price_tag_heart:[[1,1,24]],qr_code:[[1,2,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,1,24]],remix:[[1,1,16],[1,1,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,1,16],[1,1,24]],rss_off:[[1,1,
16],[1,1,24]],ruby:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],samples:[[0,1,24],[1,1,24]],saturation:[[1,1,24]],scale:[[1,3,24]],scissors:[[0,6,12],[0,6,24],[1,6,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,2,16],[1,2,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],
screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],sd:[[0,2,24],[1,2,24]],search:[[0,9,24],[1,9,24]],search_cairo:[[1,2,24]],send:[[0,3,24,!0],[1,3,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,1,24]],shadow_soft:[[0,1,24]],shapes:[[0,2,24],[1,2,24]],share:[[0,9,24,!0],[0,9,32,!0],[1,9,16,!0],[1,9,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,1,24]],share_link:[[0,
1,24],[1,1,24]],shield:[[1,4,24]],shield_add:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,1,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],
shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,3,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,3,24]],skip_previous:[[0,3,24]],skip_up:[[0,3,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,
2,24]],soccer_ball:[[1,2,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,1,24]],spark:[[0,6,12],[0,6,16],[0,6,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,1,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,
1,24]],speaker_off:[[1,1,24]],split:[[1,3,24]],sports:[[0,1,24]],spotlight:[[0,1,24],[1,1,24]],star:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],star_circle:[[0,1,12],[0,1,16],[0,1,18],[0,1,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,1,24]],stop:[[0,1,24]],stopwatch:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],
subscriptions:[[0,8,24],[1,8,18],[1,8,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,2,12],[0,2,24],[1,2,24]],super_chat:[[1,6,18],[1,6,24]],super_sticker:[[0,6,16],[0,6,24],[1,6,16],[1,6,24]],super_store:[[1,1,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,1,24],[1,1,16],[1,1,24]],target_add:[[0,1,24],[1,1,16],[1,1,24]],template_add:[[1,1,24]],template_play:[[0,1,24],[1,1,24]],text:[[0,8,24],[1,8,16],[1,8,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,
2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,1,24]],thumb_down:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],[1,19,24],[1,19,36]],thumb_up:[[0,17,16],[0,17,24],[0,17,36],[1,17,16],[1,17,24],[1,17,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,1,24],[1,1,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],tilt:[[1,3,24]],
time_stamp_plus:[[1,1,24]],timeline:[[1,2,24]],toolbox:[[1,2,24]],transcript:[[1,1,16],[1,1,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,3,24],[1,3,24]],translate:[[1,1,24]],trash_can:[[1,6,16],[1,6,24]],triangle_down:[[1,5,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,1,24],[1,1,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,3,24],[1,3,24]],tv:[[0,5,12],[0,5,16],[0,5,24],[1,5,16],[1,5,24]],tv_arrow_left:[[1,1,24]],tv_circle:[[0,
1,24],[1,1,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,4,24]],uploading:[[1,1,24]],variable:[[1,3,24]],verified_circle:[[1,4,24]],video_camera:[[0,7,24],[1,7,24]],video_camera_add:[[1,1,24]],video_camera_off:[[1,1,24]],video_link:[[1,3,16],[1,3,24]],video_stitch:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,1,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,
5,24],[1,5,24]],waveform:[[1,1,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],wrench:[[0,1,24],[1,1,24]],x:[[1,8,18],[1,8,24]],x_cairo:[[1,1,24]],x_circle:[[1,5,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,1,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,3,24],[1,3,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,5,24],[1,5,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,
6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,
4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,6,24],[1,6,24]],youtube_tv:[[0,6,24],[1,6,24]]};var xfc={youtube_shorts:[[0,10,24],[1,10,24]]};var vS=function(a){this.iconUrlProvider=a};
vS.prototype.resolveIcon=function(a,b){var c=a.iconName;c=c.replace(/-/g,"_");a=Object.assign({},a,{iconName:this.mapIconTypeToStandardName(c)||c.toLowerCase()});if(_.w("enable_web_delhi_icons")){var d;return B4a(xfc,a,((d=this.iconUrlProvider)==null?void 0:d.getYtStandardUrl)||E4a,b)}var e;return B4a(wfc,a,((e=this.iconUrlProvider)==null?void 0:e.getYtStandardUrl)||D4a,b)};
vS.prototype.mapIconTypeToStandardName=function(a){return _.w("enable_web_delhi_icons")?vfc[a.toUpperCase()]:tfc[a.toUpperCase()]};
vS[iB]=[_.Xi(qfc)];var yfc=function(a){this.urlProvider=this.iconUrlProvider=a};
_.z(yfc,vS);
yfc.prototype.resolveIcon=function(a,b){a.iconName==="youtube_logo"&&(a.iconName="yt-logo-updated");if(a.iconName==="youtube_premium_logo"||a.iconName==="youtube_red_logo")a.iconName="yt-logo-red-updated";var c=Object.assign({},a);a.iconName==="menu"&&(c.iconName="bars_3",c.iconStyle="youtube_outline");a.iconName==="youtube_music"&&(c.iconStyle="youtube_fill");a.iconName==="mail"&&a.iconSetName==="socialNetworksRound"&&(c.iconName="email");a.iconName==="more"&&(c.iconName="overflow_horizontal");a.iconName===
"fullscreen"&&(c.iconName="screen_full");if(a.iconName==="play_all"||a.iconName==="play_arrow")c.iconStyle="youtube_fill";a.iconName==="premium_standalone"&&(c.iconName="premium_standalone_cairo");_.w("enable_connect_icon_update_web")&&a.iconName==="account_linked"&&(c.iconName="circles_overlap_check",c.iconStyle="youtube_fill");_.w("enable_connect_icon_update_web")&&a.iconName==="account_unlinked"&&(c.iconName="circles_overlap",c.iconStyle="youtube_outline");a=Object.assign({},c,{iconName:(vS.prototype.mapIconTypeToStandardName.call(this,
c.iconName)||c.iconName).toLowerCase()});var d;return(a=B4a(ofc,a,((d=this.urlProvider)==null?void 0:d.getUrl)||F4a,b))?a:vS.prototype.resolveIcon.call(this,c,b)};
yfc[iB]=[_.Xi(qfc)];_.zfc=1;var wS=function(){};
_.z(wS,SM);wS.prototype.resolveCommand=function(a){var b,c;return _.l(function(d){b=_.y(a,Yyb);if(!b)return d.return();c=Number(b.enableDelayedPacfLoggingTvMs);if(isNaN(c)){var e=yN();y4b(e,b,0)}else y4b(yN(),b,c);_.ue(d)})};_.xS=function(){};
_.z(_.xS,SM);
_.xS.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m,n,r;return _.l(function(t){d=_.y(a,Zyb);g=(e=b.form)==null?void 0:e.element;m=(k=g)==null?void 0:k.closest("ytd-enforcement-message-view-model");if(!d||!m)return t.return();c.allowAdsAction||(n=d.fundingChoiceInstructionPageUrl,c.allowAdsAction=new Eib(window,_.Ak(n)));var u=c.allowAdsAction;u.wallElement=m;u.allowAdsPopup.style.setProperty("display","flex","important");var x=u.scrollManager;x.originalBodyOverflow=x.JSC$7844_domHelper.JSC$7218_document_.body.style.overflow;x.JSC$7844_domHelper.JSC$7218_document_.body.style.overflow=
"hidden";u.wallElement.style.setProperty("display","none","important");Phb(u.accessibilityManager,u.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((r=c.allowAdsAction.allowAdsPopup)&&r instanceof HTMLElement)for(u=_.h(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),x=u.next();!x.done;x=u.next()){var A=_.h(x.value);x=A.next().value;A=A.next().value;r.style.setProperty(x,A)}_.ue(t)})};
_.xS.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var yS=function(){};
_.z(yS,SM);yS.prototype.resolveCommand=function(a){var b;return _.l(function(c){b=_.y(a,$Eb);if(!b)return c.return();oQa(a);_.ue(c)})};var zS=function(a){this.JSC$14875_commandHandler=a};
_.z(zS,SM);
zS.prototype.resolveCommand=function(a){var b=this,c,d,e,g,k,m,n,r;return _.l(function(t){if(t.nextAddress==1){c=_.y(a,DDb);if((d=c)==null||!d.text||!navigator.clipboard)return t.return();_.pe(t,2);return _.p(t,navigator.clipboard.writeText(c.text),4)}if(t.nextAddress!=2){if(!c.successActions||c.successActions.length===0)return t.return();e=_.h(c.successActions);for(g=e.next();!g.done;g=e.next())k=g.value,b.JSC$14875_commandHandler.resolveCommand(k);return _.Jj(t,0)}_.te(t);if(!c.failureActions||c.failureActions.length===
0)return t.return();m=_.h(c.failureActions);for(n=m.next();!n.done;n=m.next())r=n.value,b.JSC$14875_commandHandler.resolveCommand(r);_.ue(t)})};
zS[iB]=[_.Yi];var AS=function(a){this.JSC$14879_commandHandler=a};
_.z(AS,SM);
AS.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m,n,r,t,u,x;return _.l(function(A){switch(A.nextAddress){case 1:d=_.y(a,gFb);if(!d)return A.return();_.pe(A,2);if(!d.imageBytes&&!d.imageUrl)throw Error("Ai");if(!d.imageUrl){if(d.imageBytes){g=d.imageBytes;k=g.replace(/-/g,"+").replace(/_/g,"/");var C=H4a(k);e=Jd(C)}A.jumpTo(4);break}return _.p(A,fetch(d.imageUrl),5);case 5:return m=A.yieldResult,_.p(A,m.blob(),6);case 6:n=A.yieldResult,e=Jd(n);case 4:u=(r=b)==null?void 0:(t=r.form)==null?
void 0:t.element;x=document.createElement("a");Nd(x,e);u.appendChild(x);x.download="";x.click();u.removeChild(x);URL.revokeObjectURL(_.Ed(e));d.successCommand&&c.JSC$14879_commandHandler.resolveCommand(d.successCommand);_.Jj(A,0);break;case 2:_.te(A),d.errorCommand&&c.JSC$14879_commandHandler.resolveCommand(d.errorCommand),_.ue(A)}})};
AS[iB]=[_.Yi];var BS=function(a){this.store=a};
_.z(BS,SM);BS.prototype.resolveCommand=function(a){var b=this,c,d,e;return _.l(function(g){d=(c=_.y(a,_.SAb))==null?void 0:c.entityBatchUpdate;if(!d)return g.jumpTo(0);e=Object.assign({},d,{mutations:[].concat(_.De(d.mutations||[]))});return _.p(g,_.tp(e,b.store),0)})};var Afc=function(a){this.JSC$14886_commandHandler=a;this.feedbackDialogMap=new Map};
Afc.prototype.openDialog=function(a,b){(a=this.feedbackDialogMap.get(a))&&this.JSC$14886_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:a}},b)};
Afc[iB]=[_.Yi];var CS=new _.jB("FEEDBACK_CONTROLLER_TOKEN");var DS=new _.jB("APP_STORE_TOKEN");var ES=function(a,b){this.store=a;this.controller=b};
_.z(ES,SM);ES.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m,n,r,t,u,x,A,C,F,J,I,R,da;return _.l(function(V){if(V.nextAddress==1){d=_.y(a,_.Uw);if(g=(e=d)==null?void 0:e.contentId)for(m=_.h(((k=d)==null?void 0:k.actions)||[]),n=m.next();!n.done;n=m.next())r=n.value,Bfc(c,r,g);x=(t=b)==null?void 0:(u=t.form)==null?void 0:u.element;return _.p(V,_.oo(x,[a]).catch(function(){}),2)}A=V.yieldResult;
((C=A)==null?0:(F=C.data)==null?0:(J=F.feedbackResponses)==null?0:J.length)&&(R=(I=A.data.feedbackResponses[0])==null?void 0:I.followUpDialog)&&g&&(da=c.controller)!=null&&da.feedbackDialogMap.set(g,R);_.ue(V)})};
var Bfc=function(a,b,c){var d=_.y(b,_.ro);if(d){d=_.h(d.commands||[]);for(var e=d.next();!e.done;e=d.next())Bfc(a,e.value,c)}_.y(b,_.EE)&&a.store.dispatch(_.wu("commandEntity",t_a(c),{key:c,command:b}));_.y(b,Wyb)&&a.store.dispatch(_.wu("commandEntity",t_a(c),{key:c,command:b}))};
ES[iB]=[DS,CS];var FS=function(a){this.controller=a};
_.z(FS,SM);FS.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k;return _.l(function(m){d=_.y(a,_.Il);g=(e=d)==null?void 0:e.targetId;if(((k=d)==null?void 0:k.signal)!=="TELL_US_WHY"||!g)return m.return();c.controller.openDialog(g,b);_.ue(m)})};
FS[iB]=[CS];var GS=function(a){this.store=a};
_.z(GS,SM);GS.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m,n,r;return _.l(function(t){d=_.y(a,S6a);g=(e=d)==null?void 0:e.contentId;n=(k=b)==null?void 0:(m=k.form)==null?void 0:m.element;r=_.oo(n,[a]);g&&c.undo(g);return _.p(t,r,0)})};
GS.prototype.undo=function(a){this.store.dispatch(_.wu("commandEntity",t_a(a),{key:a,command:void 0}))};
GS[iB]=[DS];var HS=function(a){this.JSC$14901_commandHandler=a};
_.z(HS,SM);HS.prototype.resolveCommand=function(a){var b=this,c,d,e,g,k,m,n,r;return _.l(function(t){c=_.y(a,hBb);d=c.flowStateKey;e=c.validationFailureCommand;g=c.submitValidFormCommand;k=Lr(_.pw,[d||""]);m=_.y(k,jBb);((n=m)==null?0:n.isValid)&&g&&b.JSC$14901_commandHandler.resolveCommand(g);((r=m)==null?0:r.isValid)||!e||b.JSC$14901_commandHandler.resolveCommand(e);_.ue(t)})};
HS[iB]=[_.Yi];var IS=function(a){this.innertubeTransportService=a};
_.z(IS,SM);IS.prototype.resolveCommand=function(a,b){var c=this,d;return _.l(function(e){return _.p(e,_.Rt(c.innertubeTransportService,a,(d=b)==null?void 0:d.form).then(function(g){var k,m;b==null||(k=b.commandController)==null||(m=k.onSuccess)==null||m.call(k,a,g)},function(g){var k,m;
b==null||(k=b.commandController)==null||(m=k.onServerError)==null||m.call(k,a,g)}),0)})};
IS[iB]=[_.yq];var JS=function(){};
_.z(JS,SM);JS.prototype.resolveCommand=function(a){var b,c,d,e;return _.l(function(g){if(b=_.y(a,_.aGb)){if(c=b.gtmId)d=_.Fi("GL",""),_.BG(c,d);(e=b.gtmData)&&_.CG(e)}_.ue(g)})};var KS=function(a,b){this.innertubeTransportService=a;this.JSC$14912_actionRouter=b};
_.z(KS,SM);KS.prototype.resolveCommand=function(a){var b=this,c,d;return _.l(function(e){c=_.y(a,szb);if(!c)return e.return();d=c.command;if(!d)return e.return();b.JSC$14912_actionRouter.triggerAction("yt-insert-rich-section-action",c);return _.p(e,_.Rt(b.innertubeTransportService,d,{disableCache:!0}),0)})};
KS[iB]=[_.yq,eF];J4a.bind(null,TM);var Cfc=J4a.bind(null,D3b);L4a.bind(null,TM);var Dfc=L4a.bind(null,D3b);O4a.bind(null,TM);var Efc=O4a.bind(null,D3b);var LS=function(){};
_.z(LS,SM);
LS.prototype.resolveCommand=function(a){var b,c,d,e,g,k,m,n,r,t;return _.l(function(u){b=_.y(a,Wzb);if(!b)return u.return();d=((c=b.operations)==null?void 0:c.operations)||[];e=_.h(d);for(g=e.next();!g.done;g=e.next())if(k=g.value,k.insertItemSectionContent){var x=k.insertItemSectionContent,A=x.contents||[];x.insertByPositionInSection?Cfc(x.insertByPositionInSection.sectionTargetId,A,x.insertByPositionInSection.position):x.insertByRelativePositionInSection&&x.insertByRelativePositionInSection.sectionTargetId&&x.insertByRelativePositionInSection.itemTargetId&&
Dfc(x.insertByRelativePositionInSection.sectionTargetId,x.insertByRelativePositionInSection.itemTargetId,A,x.insertByRelativePositionInSection.relativePosition)}else k.replaceSection?(x=k.replaceSection,A={},x.replaceByTargetId?A=x.replaceByTargetId:x.replaceByGroupId&&(A={targetId:x.replaceByGroupId.groupId,newContent:x.replaceByGroupId.newContent,undoKey:""}),A.newContent&&G3b(A.targetId,{continuationItems:[A.newContent]})):k.removeItem?(x=k.removeItem,x.removeByTargetId&&x.sectionTargetId&&Efc(x.sectionTargetId,
x.removeByTargetId.targetIds||[])):k.removeSection&&(k.removeSection.removeByTargetId?(m=void 0,Ffc(((m=k.removeSection)==null?void 0:m.removeByTargetId.targetIds)||[])):k.removeSection.removeByGroupId&&(n=void 0,Ffc(((n=k.removeSection)==null?void 0:n.removeByGroupId.groupIds)||[])));t=((r=b.operations)==null?void 0:r.scrollConfig)||{};Gfc(t);_.ue(u)})};
var Ffc=function(a){a=_.h(a);for(var b=a.next();!b.done;b=a.next())G3b(b.value,{continuationItems:[]})},Gfc=function(a){if(a.scrollToItem){var b=a.scrollToItem.item||{},c=b.itemTargetId;
b=b.sectionTargetId;if(c&&b){var d=document.querySelector("[data-target-id="+b+"]"),e=d==null?void 0:d.querySelector("[data-target-id="+c+"]");d&&e&&setTimeout(function(){var g=e.offsetTop-d.offsetTop,k;if(((k=a.scrollToItem)==null?void 0:k.scrollPosition)==="SCROLL_POSITION_CENTER")g-=d.offsetHeight/2,g+=e.offsetHeight/2;else{var m;((m=a.scrollToItem)==null?void 0:m.scrollPosition)==="SCROLL_POSITION_END"&&(g-=d.offsetHeight,g+=e.offsetHeight)}d.scroll({top:g,behavior:"smooth"})},100)}}};var MS=new _.jB("CLIENT_NAME_TOKEN");var Hfc=new _.jB("DEFAULT_STORE_EXPIRATION_TOKEN");var i8a=new _.jB("CLIENT_LOCATION_SERVICE_TOKEN");var NS=function(a,b,c){this.clientName=a||_.Fi("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=b||_.Mq.getInstance();this.JSC$14940_commandHandler=c||_.gs.instance};
_.z(NS,SM);NS.prototype.resolveCommand=function(a){var b=this,c,d;return _.l(function(e){d=(c=_.y(a,aCb))==null?void 0:c.onComplete;b.clientLocationService.clearLocationPlayabilityToken(b.clientName);d&&b.JSC$14940_commandHandler.resolveCommand(d);_.ue(e)})};
NS[iB]=[MS,i8a,_.Yi];var OS=function(a){this.innertubeTransportService=a};
_.z(OS,SM);OS.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k;return _.l(function(m){g=(d=b)==null?void 0:(e=d.form)==null?void 0:e.element;return _.p(m,_.Rt(c.innertubeTransportService,a,(k=b)==null?void 0:k.form).then(function(n){yTa(g,new CustomEvent("yt-service-request-completed"),{data:n},_.Fi("openPopupConfig"))}),0)})};
OS[iB]=[_.yq];var PS=function(){};
_.z(PS,SM);PS.prototype.resolveCommand=function(a){var b,c;return _.l(function(d){b=_.y(a,nBb);c=document.querySelector("mini-app-container-view-model");if(!b||!c)return d.return();b.isPlaying?c.dispatchEvent(new Event("play")):c.dispatchEvent(new Event("pause"));_.ue(d)})};var Ifc=function(){this.dropdownMap=new Map};_.Jfc=new _.jB("DROPDOWN_CONTROLLER_TOKEN");var QS=function(a){this.controller=a};
_.z(QS,SM);QS.prototype.resolveCommand=function(a){var b=this,c,d,e,g;return _.l(function(k){c=_.y(a,CFb);if(!c)return k.return();d=c;e=d.dropdownId;g=d.selectedOptionIndex;if(e===void 0||g===void 0)return k.return();var m=b.controller.dropdownMap.get(e);m&&m(g);_.ue(k)})};
QS[iB]=[_.Jfc];var RS=function(a){this.controller=a};
_.z(RS,SM);RS.prototype.resolveCommand=function(a){var b=this,c;return _.l(function(d){return(c=_.y(a,iCb))?_.p(d,b.controller.closeDialog(),0):d.return()})};
RS[iB]=[_.LJ];var SS=function(a){this.controller=a};
_.z(SS,SM);SS.prototype.resolveCommand=function(a){var b=this,c,d;return _.l(function(e){c=_.y(a,PCb);if(!c)return e.return();var g,k=c.panelIdentifier||((g=c.identifier)==null?void 0:g.tag);if(!k)throw Error("Bi");return(d=k)?_.p(e,b.controller.hidePanel(d),0):e.jumpTo(0)})};
SS[iB]=[_.JJ];var TS=function(a,b){this.innertubeTransportService=a;this.controller=b};
_.z(TS,SM);TS.prototype.resolveCommand=function(a){var b=this,c,d,e,g;return _.l(function(k){if(k.nextAddress==1)return c=_.y(a,QCb),(d=c)!=null&&d.panelId?_.p(k,b.controller.getReloadContinuation(c.panelId),2):k.return();if(k.nextAddress!=3)return(e=k.yieldResult)?_.p(k,_.Rt(b.innertubeTransportService,a,{continuation:e}),3):k.return();g=k.yieldResult;return _.p(k,b.controller.updatePanel(c.panelId,g.content,!1),0)})};
TS[iB]=[_.yq,_.JJ];var US=function(a,b,c){this.innertubeTransportService=a;this.JSC$14973_screenManager=b;this.JSC$14973_commandHandler=c};
_.z(US,SM);
US.prototype.resolveCommand=function(a){var b=this,c,d,e,g,k,m;return _.l(function(n){if(n.nextAddress==1){c=_.y(a,_.GDb);if(!c)return n.return();if(c.commands)for(d=_.h(c.commands),e=d.next();!e.done;e=d.next())g=e.value,b.JSC$14973_commandHandler.resolveCommand(g,{disableClickTracking:!0});k=_.ps(a.clickTrackingParams);_.pF(b.JSC$14973_screenManager,21760,k,{layer:7,parentLayer:0});return _.p(n,_.Rt(b.innertubeTransportService,a),2)}m=n.yieldResult;if(!m)return n.return();b.JSC$14973_screenManager.graftServerVe(m.trackingParams,k,
7);_.ue(n)})};
US[iB]=[_.yq,_.AH,_.Yi];var VS=new _.jB("PANEL_LOADING_STRATEGY_TOKEN");var WS=function(a,b){this.controller=a;this.panelLoadingStrategy=b};
_.z(WS,SM);
WS.prototype.resolveCommand=function(a,b){var c=this,d,e,g;return _.l(function(k){d=_.y(a,uFb);if((e=d)==null||!e.panelLoadingStrategy)return k.return();g=function(m){var n,r,t,u,x,A,C,F,J;return _.l(function(I){r=_.y((n=m.dialogViewModel)==null?void 0:n.header,DFb);t={viewModel:m.dialogViewModel};u={};if(C=_.w("web_enable_dialog_header_label")?(x=r)==null?void 0:(A=x.headline)==null?void 0:A.content:void 0)u.ariaLabel=C;d.dismissOnBackgroundTap===!1&&(u.isModal=!0);return m.dialogViewModel?_.p(I,
c.controller.openDialog(t,(F=b)==null?void 0:(J=F.form)==null?void 0:J.element,u),0):I.return()})};
return _.p(k,c.panelLoadingStrategy.execute({command:a,data:d.panelLoadingStrategy,renderFn:g,createScreenConfig:{layer:4}}),0)})};
WS[iB]=[_.LJ,VS];var XS=function(a,b,c){this.innertubeTransportService=a;this.controller=b;this.JSC$14993_screenManager=c};
_.z(XS,SM);
XS.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m,n,r,t,u,x,A,C;return _.l(function(F){switch(F.nextAddress){case 1:d=_.y(a,_.Tw);if(!d)return F.return();var J,I=d.panelIdentifier||((J=d.identifier)==null?void 0:J.tag);if(!I)throw Error("Bi");e=I;return _.p(F,c.controller.isVisible(e,!0),2);case 2:if((g=F.yieldResult)&&d.blockIfPanelOpen)return F.return();n=(m=(k=c.controller).getPanelContent)==null?void 0:m.call(k,e);if(!(J=n))if(d){var R;J=((R=d.globalConfiguration)==null?void 0:R.initialState)||
d.engagementPanel;if(R=!J)R=!!(d==null?0:(I=d.engagementPanelPresentationConfigs)==null?0:I.engagementPanelPopupPresentationConfig);R&&(J=_.P4a(d.panelIdentifier,d.identifier))}else J=void 0;r=J;t=d.engagementPanelPresentationConfigs;u=d.engagementPanelExtras;return _.p(F,c.controller.showPanel(e,r,t,u,(x=b)==null?void 0:(A=x.form)==null?void 0:A.element),3);case 3:if(!d.globalConfiguration){F.jumpTo(0);break}_.pF(c.JSC$14993_screenManager,32633);return _.p(F,_.Rt(c.innertubeTransportService,a),5);
case 5:return C=F.yieldResult,c.JSC$14993_screenManager.graftServerVe(C.trackingParams),_.p(F,c.controller.updatePanel(e,C.content,!0,u,void 0,C.updatePanelContinuationData),0)}})};
XS[iB]=[_.yq,_.JJ,_.AH];var YS=function(a,b){this.controller=a;this.panelLoadingStrategy=b};
_.z(YS,SM);YS.prototype.resolveCommand=function(a,b){var c=this,d,e,g;return _.l(function(k){d=_.y(a,_.xu);if((e=d)==null||!e.panelLoadingStrategy)return k.return();g=function(m){var n,r;return _.l(function(t){return m.sheetViewModel?_.p(t,c.controller.openSheet({viewModel:m.sheetViewModel},(n=b)==null?void 0:(r=n.form)==null?void 0:r.element),0):t.return()})};
return _.p(k,c.panelLoadingStrategy.execute({command:a,data:d.panelLoadingStrategy,renderFn:g,createScreenConfig:{layer:0}}),0)})};
YS[iB]=[_.KJ,VS];var ZS=function(a,b){this.controller=a;this.JSC$15001_commandHandler=b};
_.z(ZS,SM);ZS.prototype.resolveCommand=function(a,b){var c=this,d,e,g;return _.l(function(k){if(k.nextAddress==1){d=_.y(a,UCb);var m=_.y(d.showCommand,_.Tw),n,r,t=(r=m==null?void 0:m.panelIdentifier)!=null?r:m==null?void 0:(n=m.identifier)==null?void 0:n.tag;if(!t)throw Error("Ci");e=t;return _.p(k,c.controller.isVisible(e),2)}return(g=k.yieldResult)?_.p(k,c.controller.hidePanel(e),0):_.p(k,c.JSC$15001_commandHandler.resolveCommand(d.showCommand,b),0)})};
ZS[iB]=[_.JJ,_.Yi];var $S=function(a,b,c){this.innertubeTransportService=a;this.controller=b;this.JSC$15004_screenManager=c};
_.z($S,SM);
$S.prototype.resolveCommand=function(a){var b=this,c,d,e,g,k,m,n,r,t,u,x,A,C,F,J,I,R,da,V,fa,aa,ma;return _.l(function(Ba){switch(Ba.nextAddress){case 1:return d=c=_.y(a,VDb),e=d.targetPanelIdentifier,g=d.contentSourcePanelIdentifier,k=d.globalConfiguration,((m=e)==null?0:m.tag)&&((n=g)==null?0:n.tag)?k?_.p(Ba,b.controller.showPanel(e.tag,_.P4a(e.tag,e),void 0,void 0,void 0),5):_.p(Ba,(x=(u=b.controller).getPanel)==null?void 0:x.call(u,g.tag),4):Ba.return();case 4:A=Ba.yieldResult;r=(C=A)==null?void 0:
(J=(F=C).getPanelContent)==null?void 0:J.call(F);Ba.jumpTo(3);break;case 5:return _.p(Ba,_.Rt(b.innertubeTransportService,a),6);case 6:I=Ba.yieldResult,((R=I)==null?0:R.trackingParams)&&b.JSC$15004_screenManager.graftServerVe(I.trackingParams),r=(da=I)==null?void 0:da.content,t=(V=I)==null?void 0:V.updatePanelContinuationData;case 3:if(aa=(fa=r)==null?void 0:fa.engagementPanelSectionListRenderer)return _.p(Ba,b.controller.showPanel(e.tag,void 0,void 0,void 0,void 0,{content:aa.content,secondaryHeaderContent:(ma=
aa.header)!=null?ma:{},targetId:aa.targetId},t),0);Ba.jumpTo(0)}})};
$S[iB]=[_.yq,_.JJ,_.AH];var aT=function(a,b){this.JSC$15012_commandHandler=a;this.store=b};
_.z(aT,SM);aT.prototype.resolveCommand=function(a){var b=this,c,d,e,g,k;return _.l(function(m){if(m.nextAddress==1)return(c=_.y(a,gCb))?_.p(m,_.mu(),2):m.return();d=m.yieldResult;if(!d)return m.return();S4a(d,b.store,(e=c)==null?void 0:e.languageCode);g=d.isSubtitlesOn()?_.vo("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.vo("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");k=_.bq(g);b.JSC$15012_commandHandler.resolveCommand(k);_.ue(m)})};
aT[iB]=[_.Yi,yw];var bT=function(a,b){this.shortsPlayerPromise=a;this.JSC$15016_commandHandler=b};
_.z(bT,SM);
bT.prototype.resolveCommand=function(a){var b=this,c,d,e,g,k,m,n,r;return _.l(function(t){if(t.nextAddress==1)return(c=_.y(a,uDb))?_.p(t,b.shortsPlayerPromise,2):t.return();d=t.yieldResult;var u=T4a(d);u!=null&&u.length||(d.loadModule("captions"),u=T4a(d));e=u;if((g=e)==null||!g.length)return k=_.vo("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),m=_.bq(k),b.JSC$15016_commandHandler.resolveCommand(m),t.return();d.toggleSubtitles();n=d.isSubtitlesOn()?_.vo("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.vo("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");r=_.bq(n);b.JSC$15016_commandHandler.resolveCommand(r);_.ue(t)})};
bT[iB]=[_.QJb,_.Yi];var cT=function(a){this.JSC$15019_playerPromise=a};
_.z(cT,SM);cT.prototype.resolveCommand=function(a){var b=this,c,d,e,g;return _.l(function(k){if(k.nextAddress==1)return(c=_.y(a,SCb))?_.p(k,b.JSC$15019_playerPromise,2):k.return();d=k.yieldResult;e=d.getVideoData().video_id;c.videoId===e&&(g=Number(c.offsetFromVideoStartMilliseconds),g>=0&&d.seekTo(g/1E3));_.ue(k)})};
cT[iB]=[_.fu];var Kfc=_.mp("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),dT=function(a){this.store=a};
_.z(dT,SM);
var Lfc=function(a){var b,c,d,e;return _.l(function(g){if(g.nextAddress==1)return b=_.Fi("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,c=_.Fi("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,d=b||c,a.mainAppPlayer=new dJ(d),_.p(g,a.mainAppPlayer.api,2);e=g.yieldResult;e.addEventListener("onStateChange",a.JSC$15023_playerStateChangeListener.bind(a));document.addEventListener("yt-page-data-updated",a.pauseOnNavigation.bind(a));window.addEventListener("state-navigatestart",
a.pauseOnNavigation.bind(a));_.ue(g)})};
dT.prototype.JSC$15023_playerStateChangeListener=function(a){switch(a){case 0:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_STOPPED";break;case 1:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING";break;case 2:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PAUSED";break;case 3:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";break;default:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_UNKNOWN"}Mfc(this)};
var Mfc=function(a){a.store.dispatch(_.wu("sfvAudioItemCurrentlyPlayingEntity",Kfc,{key:Kfc,externalVideoId:a.externalVideoId,sfvAudioItemPlaybackState:a.playbackState,nowPlayingEntityValue:a.nowPlayingEntityValue}))};
dT.prototype.pauseOnNavigation=function(){var a=this,b,c,d,e;return _.l(function(g){if(g.nextAddress==1){if(!a.mainAppPlayer){var k=new _.qj("Error: mainAppPlayer is unavailable",a.mainAppPlayer);_.Bl(k);return g.return()}return _.p(g,a.mainAppPlayer.api,2)}b=g.yieldResult;d=(c=b)==null?void 0:c.getPlayerState();d!==1||(e=b)!=null&&e.pauseVideo();_.ue(g)})};
dT.prototype.playVideo=function(a,b,c){var d=this,e,g;return _.l(function(k){if(k.nextAddress==1)return _.p(k,(e=d.mainAppPlayer)==null?void 0:e.api,2);g=k.yieldResult;if(!d.mainAppPlayer||!g){var m=new _.qj("Error: mainAppPlayer is unavailable",d.mainAppPlayer);_.Bl(m);return k.return()}return _.p(k,d.mainAppPlayer.loadVideoWithPlayerVars({videoId:d.externalVideoId,audio_only:"1",start:a/1E3,end:a/1E3+b,player_params:c}),0)})};
dT.prototype.pauseVideo=function(){var a=this,b,c;return _.l(function(d){if(d.nextAddress==1){if(!a.mainAppPlayer){var e=new _.qj("Error: mainAppPlayer is unavailable",a.mainAppPlayer);_.Bl(e);return d.return()}return _.p(d,a.mainAppPlayer.api,2)}b=d.yieldResult;(c=b)==null||c.pauseVideo();_.ue(d)})};
dT.prototype.resolveCommand=function(a){var b=this,c,d,e,g,k,m,n,r,t,u,x,A,C,F,J,I,R,da,V;return _.l(function(fa){if(fa.nextAddress==1)return c=_.y(a,qEb),e=(d=c)==null?void 0:d.nowPlayingEntityValue,k=(g=c)==null?void 0:g.externalVideoId,u=Number((t=(m=c)==null?void 0:(n=m.defaultStartPoints)==null?void 0:(r=n[0])==null?void 0:r.offsetMs)!=null?t:"0"),I=Number((J=(x=c)==null?void 0:(A=x.defaultStartPoints)==null?void 0:(C=A[0])==null?void 0:(F=C.duration)==null?void 0:F.seconds)!=null?J:"15"),V=
(da=(R=c)==null?void 0:R.playerParams)!=null?da:"",e&&k?b.mainAppPlayer?fa.jumpTo(2):_.p(fa,Lfc(b),2):fa.return();if(fa.nextAddress!=6){if(b.nowPlayingEntityValue&&e===b.nowPlayingEntityValue)return b.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.p(fa,b.pauseVideo(),0):_.p(fa,b.playVideo(u,I,V),0);b.externalVideoId=k;b.nowPlayingEntityValue=e;b.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.p(fa,b.playVideo(u,I,V),6)}Mfc(b);return fa.jumpTo(0)})};
dT[iB]=[yw];var eT=function(a){this.JSC$15040_commandHandler=a};
_.z(eT,SM);eT.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m;return _.l(function(n){if(n.nextAddress==1)return(d=_.y(a,hCb))?_.p(n,_.mu(),2):n.return();e=n.yieldResult;if(!e)return n.return();(g=X4a(e))?c.JSC$15040_commandHandler.resolveCommand(g,b):(k=_.vo("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),m=_.bq(k),c.JSC$15040_commandHandler.resolveCommand(m));_.ue(n)})};
eT[iB]=[_.Yi];var fT=function(a){this.JSC$15043_playerPromise=a};
_.z(fT,SM);fT.prototype.resolveCommand=function(a){var b=this,c,d,e,g,k;return _.l(function(m){if(m.nextAddress==1){c=_.y(a,TCb);if(!c)return m.return();d=c.overlayRenderer;return d?(e=_.y(d,RFb))?_.p(m,b.JSC$15043_playerPromise,3):m.jumpTo(0):m.return()}g=m.yieldResult;g.renderChapterSeekingAnimation(1,_.Wp(e.text),(k=e.icon)==null?void 0:k.iconType);_.ue(m)})};
fT[iB]=[_.fu];var gT=function(a){this.store=a};
_.z(gT,SM);gT.prototype.resolveCommand=function(a){var b=this,c,d,e;return _.l(function(g){if(g.nextAddress==1){c=_.y(a,jAb);if(!c)return g.return();d="";(e=b.store.getState().collabInviteLink)&&c.id===e.playlistId?d=e.inviteLinkURL:c.shortUrl&&(d=c.shortUrl);return d?_.p(g,navigator.clipboard.writeText(d),3):g.jumpTo(0)}var k={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.vo("COPY_LINK_SUCCESS_TOAST")}}}}};_.v().resolve(_.Yi).resolveCommand(k);_.ue(g)})};
gT[iB]=[DS];var hT=function(a,b){this.innertubeTransportService=a;this.JSC$15053_commandHandler=b};
_.z(hT,SM);hT.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m,n,r,t,u,x;return _.l(function(A){if(A.nextAddress==1)return(d=_.y(a,_.UE))?_.p(A,_.Rt(c.innertubeTransportService,a,(e=b)==null?void 0:e.form),2):A.return();(g=A.yieldResult)&&g.errorMetadata&&(k=g,m=_.bq(k.error.message),c.JSC$15053_commandHandler.resolveCommand(m));n=g;if((r=n)==null?0:r.actions)for(t=_.h(n.actions),u=t.next();!u.done;u=t.next())x=u.value,c.JSC$15053_commandHandler.resolveCommand(x);_.ue(A)})};
hT[iB]=[_.yq,_.Yi];var iT=function(){};
_.z(iT,SM);iT.prototype.resolveCommand=function(a){var b;return _.l(function(c){b=_.y(a,dAb);if(!b)return c.return();(new ELb(b)).show();_.ue(c)})};_.jT=new _.jB("PLAYLIST_EDIT_CONTROLLER_TOKEN");var kT=function(a,b,c,d){this.store=a;this.innertubeTransportService=b;this.controller=c;this.JSC$15061_commandHandler=d};
_.z(kT,SM);
kT.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m,n,r,t,u,x,A,C,F,J,I,R,da,V,fa,aa,ma,Ba,Ca,ya,Ia,db;return _.l(function(lb){if(lb.nextAddress==1){d=_.y(a,_.OE);if(!d)return lb.return();if(d.clientActions){e=_.h(d.clientActions);for(g=e.next();!g.done;g=e.next())k=g.value,c.JSC$15061_commandHandler.resolveCommand(k);var Ua,Vb=b==null?void 0:(Ua=b.form)==null?void 0:Ua.element;Vb&&_.io(Vb,"yt-dismissible-item-action",d.clientActions)}return _.p(lb,_.Rt(c.innertubeTransportService,a,(m=
b)==null?void 0:m.form),2)}if(n=lb.yieldResult)n.errorMetadata?(r=n,t=_.bq(r.error.message),c.JSC$15061_commandHandler.resolveCommand(t),"error"in n&&((u=b)==null?0:(x=u.commandController)==null?0:x.onServerError)&&((A=b)==null||(C=A.commandController)==null||C.onServerError(a,n))):(F=b)==null||(J=F.commandController)==null||(R=(I=J).onSuccess)==null||R.call(I,a,n);da=n;((V=da)==null?0:V.collaborationInviteLink)&&d.playlistId&&(_.w("web_enable_invite_collaborators_link")||_.w("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
c.store.dispatch(_.hp({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:d.playlistId,inviteLinkUrl:da.collaborationInviteLink}}));((fa=da)==null?0:fa.redirectEndpoint)&&c.JSC$15061_commandHandler.resolveCommand(da.redirectEndpoint);((aa=da)==null?0:(ma=aa.newHeader)==null?0:ma.playlistHeaderRenderer)?Nfc(c.controller,da.newHeader.playlistHeaderRenderer):((Ba=da)==null?0:(Ca=Ba.newHeader)==null?0:Ca.musicEditablePlaylistDetailHeaderRenderer)&&Nfc(c.controller,da.newHeader.musicEditablePlaylistDetailHeaderRenderer);
c.controller.playlistVideoListElement&&((ya=da)==null?0:(Ia=ya.playlistEditResults)==null?0:(db=Ia[0])==null?0:db.playlistEditVideoAddedResultData)&&((Vb=c.controller.playlistVideoListElement)==null||Vb.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:da.playlistEditResults[0].playlistEditVideoAddedResultData})));_.ue(lb)})};
kT[iB]=[DS,_.yq,_.jT,_.Yi];var lT=function(a,b){this.controller=a;this.JSC$15071_commandHandler=b};
_.z(lT,SM);lT.prototype.resolveCommand=function(a,b){var c=this,d,e,g;return _.l(function(k){d=_.y(a,kAb);c.controller.showRefreshPill&&((e=d)==null?0:e.command)&&(c.JSC$15071_commandHandler.resolveCommand((g=d)==null?void 0:g.command,b),c.controller.showRefreshPill=!1);_.ue(k)})};
lT[iB]=[_.bQ,_.Yi];var mT=function(a,b){this.store=a;this.JSC$15075_commandHandler=b||_.gs.instance};
_.z(mT,SM);mT.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m,n,r,t,u,x;return _.l(function(A){d=_.y(a,xAb);e=c.store.getState().radioButtonGroup;if((g=d)==null?0:g.command)c.JSC$15075_commandHandler.resolveCommand((k=d)==null?void 0:k.command,b);else if(((m=d)==null?void 0:m.formId)===e.currentFormId)for(n=Object.values(e.commandsMap),r=_.h(n),t=r.next();!t.done;t=r.next()){u=t.value;x=_.Ds(u);if(!x)return A.return();c.JSC$15075_commandHandler.resolveCommand(x,b)}_.ue(A)})};
mT[iB]=[DS];var Ofc=new _.jB("USER_PREFS");var nT=function(a){this.JSC$15079_prefCookie=a};
_.z(nT,SM);nT.prototype.resolveCommand=function(a){var b=this,c,d;return _.l(function(e){c=_.y(a,mAb);if(!c)return e.return();d=!1;c.flagNum&&typeof c.value==="boolean"?(_.zo(0,c.flagNum,c.value),d=!0):c.key&&typeof c.stringValue==="string"&&(b.JSC$15079_prefCookie.set(c.key,c.stringValue),d=!0);d&&b.JSC$15079_prefCookie.save();_.ue(e)})};
nT[iB]=[Ofc];var oT=new _.jB("PREF_STORAGE_PROMISE_TOKEN");var pT=function(a){this.JSC$15083_prefStoragePromise=a};
_.z(pT,SM);pT.prototype.resolveCommand=function(a){var b=this,c,d;return _.l(function(e){if(e.nextAddress==1)return(c=_.y(a,oAb))?_.p(e,b.JSC$15083_prefStoragePromise,2):e.return();d=e.yieldResult;return d===void 0||c.key===void 0||c.value===void 0?e.return():_.p(e,d.set(c.key,c.value),0)})};
pT[iB]=[oT];var Pfc=function(a){this.innertubeTransportService=a};
_.z(Pfc,SM);Pfc.prototype.resolveCommand=function(a,b){var c=this,d,e;return _.l(function(g){(d=_.y(a,_.NEb))&&d&&d.isFirstRequest&&(_.Ko("search_overview_answer"),_.Lo("so_rq",void 0,"search_overview_answer"));return _.p(g,_.Rt(c.innertubeTransportService,a,(e=b)==null?void 0:e.form),0)})};
Pfc[iB]=[_.yq];var Qfc=function(){};
_.z(Qfc,SM);
Qfc.prototype.resolveCommand=function(a){var b,c,d,e,g,k,m,n,r;return _.l(function(t){b=_.y(a,RCb);if((c=b)==null?0:c.sectionIdentifier){if(b.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(e=(d=document.getElementsByTagName(b.sectionIdentifier))==null?void 0:d.item(0))e.scrollIntoView({behavior:"smooth"}),(g=Asa(e))&&g.focus({preventScroll:!0});return t.return()}k=document.querySelector("[section-identifier="+b.sectionIdentifier+"]");m=document.querySelector("[section-identifier="+b.referenceSectionIdentifier+
"]");if(!k)return t.return();n=b.verticalScrollOffsetDp?b.verticalScrollOffsetDp:0;m&&(n-=m.offsetTop);window.scrollTo({top:k.offsetTop+n,behavior:"smooth"});(r=Asa(k))&&r.focus({preventScroll:!0})}_.ue(t)})};var qT=function(){};
_.z(qT,SM);
qT.prototype.resolveCommand=function(a){var b,c,d,e,g,k,m;return _.l(function(n){if(n.nextAddress==1){b=_.y(a,hFb);if(!b||!b.imageBytes||!navigator.clipboard)return n.return();if(b.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.Bl(Error("Di")),n.return();_.pe(n,2);d=(c=b)==null?void 0:c.imageBytes;e=d.replace(/-/g,"+").replace(/_/g,"/");g=H4a(e);k={};m=[new ClipboardItem((k[g.type]=g,k))];return _.p(n,navigator.clipboard.write(m),4)}if(n.nextAddress!=2)return _.Jj(n,0);
_.te(n);_.ue(n)})};var rT=function(a,b){this.innertubeTransportService=a;this.JSC$15098_commandHandler=b};
_.z(rT,SM);rT.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k;return _.l(function(m){if(m.nextAddress==1)return(d=_.y(a,iFb))?_.p(m,_.Rt(c.innertubeTransportService,a,(e=b)==null?void 0:e.form),2):m.return();g=m.yieldResult;((k=g)==null?0:k.shareCommand)&&c.JSC$15098_commandHandler.resolveCommand(g.shareCommand,b);_.ue(m)})};
rT[iB]=[_.yq,_.Yi];var sT=function(){};
_.z(sT,SM);sT.prototype.resolveCommand=function(){return _.l(function(a){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.ue(a)})};var tT=function(a){this.JSC$15104_navigationConfirmationService=a};
_.z(tT,SM);tT.prototype.resolveCommand=function(){var a=this;return _.l(function(b){a.JSC$15104_navigationConfirmationService.cancelPendingNavigation();_.ue(b)})};
tT[iB]=[xJ];var uT=function(a){this.JSC$15107_screenManager=a};
_.z(uT,SM);uT.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m,n,r;return _.l(function(t){e=(d=b.form)==null?void 0:d.event;k=(g=b.form)==null?void 0:g.element;if(!e)throw new _.qj("Event not passed in when resolving command");m=_.h(e.composedPath());for(n=m.next();!n.done;n=m.next())if(r=n.value,r.tagName==="YT-COPY-LINK-RENDERER")return r.copyUrlToClipboard(),k&&_.Ot(c.JSC$15107_screenManager,k),t.return();_.ue(t)})};
uT[iB]=[_.AH];var vT=function(){this.JSC$15111_miniAppClientDataProvider=_.v().resolve(_.ZR)};
_.z(vT,SM);vT.prototype.resolveCommand=function(){var a=this,b,c;return _.l(function(d){if(a.JSC$15111_miniAppClientDataProvider.clientData.has("video_id")){var e=a.JSC$15111_miniAppClientDataProvider,g=e.clientData.get("video_id");g&&e.clientData.delete("video_id");b="https://youtube.com/watch?v="+g;c=Gd(b);if(c===void 0)throw Error("Ei`"+b);_.Td(window,c)}_.ue(d)})};var wT=function(){};
_.z(wT,SM);wT.prototype.resolveCommand=function(){return _.l(function(a){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.ue(a)})};var xT=function(){};
_.z(xT,SM);xT.prototype.resolveCommand=function(){var a;return _.l(function(b){if(b.nextAddress==1)return _.p(b,_.ZBa(window.document.documentElement),2);(a=document.querySelector("mini-app-container-view-model iframe"))&&a.focus();_.ue(b)})};var yT=function(a){this.JSC$15118_navigationConfirmationService=a};
_.z(yT,SM);
yT.prototype.resolveCommand=function(){var a=this;return _.l(function(b){var c=a.JSC$15118_navigationConfirmationService,d=_.v().resolve(_.rG),e;if(((e=c.navigateParams)==null?void 0:e.data)!==void 0){var g;_.cXb(d,c.navigateParams.endpoint,c.navigateParams.data,(g=c.navigateParams.navigationType)!=null?g:1,c.navigateParams.tempData,c.navigateParams.isMiniplayer,void 0,!0);c.navigateParams=void 0;c.customConfirmationCommand=void 0}else c.navigateParams&&(d.navigate(c.navigateParams.endpoint,c.navigateParams.reload,
c.navigateParams.params,c.navigateParams.tempData,c.navigateParams.requestType,c.navigateParams.createScreenConfig,!0),c.navigateParams=void 0,c.customConfirmationCommand=void 0);_.ue(b)})};
yT[iB]=[xJ];var zT=function(){};
_.z(zT,SM);zT.prototype.resolveCommand=function(){return _.l(function(a){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.ue(a)})};var AT=function(a){this.JSC$15123_prefStorage=a};
_.z(AT,SM);AT.prototype.resolveCommand=function(){var a=this,b,c;return _.l(function(d){switch(d.nextAddress){case 1:return _.p(d,a.JSC$15123_prefStorage,2);case 2:return(b=d.yieldResult)?_.p(d,b.set("sfvle",!1),3):d.return();case 3:return _.p(d,b.set("sfvles",!0),4);case 4:c=_.yo(),_.zo(0,203,!1),_.zo(0,204,!0),c.save(),_.ue(d)}})};
AT[iB]=[oT];var BT=function(a){this.JSC$15126_prefStorage=a};
_.z(BT,SM);BT.prototype.resolveCommand=function(){var a=this,b,c;return _.l(function(d){switch(d.nextAddress){case 1:return _.p(d,a.JSC$15126_prefStorage,2);case 2:return(b=d.yieldResult)?_.p(d,b.set("sfvle",!0),3):d.return();case 3:return _.p(d,b.set("sfvles",!0),4);case 4:c=_.yo(),_.zo(0,203,!0),_.zo(0,204,!0),c.save(),_.ue(d)}})};
BT[iB]=[oT];var CT=function(){};
_.z(CT,SM);CT.prototype.resolveCommand=function(a){var b;return _.l(function(c){b=_.y(a,nAb);if(!b||typeof b.key!=="string"||typeof b.value!=="string")return c.return();window.localStorage.setItem(b.key,b.value);_.ue(c)})};var DT=function(a){this.store=a};
_.z(DT,SM);DT.prototype.resolveCommand=function(a){var b=this,c;return _.l(function(d){c=_.y(a,R6a);if(!c||!c.stepId||!c.token)return d.return();b.store.dispatch(SJb({stepId:c.stepId,token:c.token,isSelected:!1}));_.ue(d)})};
DT[iB]=[DS];var ET=function(a,b,c){this.innertubeTransportService=a;this.store=b;this.JSC$15137_screenManager=c};
_.z(ET,SM);
ET.prototype.resolveCommand=function(a){var b=this,c,d,e,g,k,m,n,r,t,u,x,A,C,F,J,I,R,da,V,fa,aa,ma,Ba;return _.l(function(Ca){c=_.y(a,tzb);if(!c||(d=c.stepIds)==null||!d.length)return Ca.return();e=b.store.getState().talkToRecs;g=[];k=[];m=_.h(c.stepIds);for(n=m.next();!n.done;n=m.next())for(r=n.value,t=void 0,(u=(t=e.stepStates[r])==null?void 0:t.userQuery)&&k.push({userQuery:u.userQuery,userQueryToken:u.token}),x=void 0,A=(x=e.stepStates[r])==null?void 0:x.selectionStates,C=_.h(Object.entries(A)),F=
C.next();!F.done;F=C.next())J=F.value,I=_.h(J),R=I.next().value,da=I.next().value,V=R,fa=da,fa.isSelected&&g.push(V);aa={selectedChipTokens:g,userQueries:k,submittedStepIds:c.stepIds};ma={browseTalk2recsFormData:aa};c.browseEndpoint?(Ba=a,_.ys(Ba,_.oq,c.browseEndpoint)):c.command&&(Ba=c.command);return Ba?_.p(Ca,_.Rt(b.innertubeTransportService,Ba,{formData:ma,disableCache:!0}).then(function(ya){(ya==null?0:ya.trackingParams)&&b.JSC$15137_screenManager.graftServerVe(ya==null?void 0:ya.trackingParams)}),
0):Ca.return()})};
ET[iB]=[_.yq,DS,_.AH];var FT=function(a){this.store=a};
_.z(FT,SM);FT.prototype.resolveCommand=function(a){var b=this,c;return _.l(function(d){c=_.y(a,Q6a);if(!c||!c.stepId||!c.token)return d.return();b.store.dispatch(SJb({stepId:c.stepId,token:c.token,isSelected:!0}));_.ue(d)})};
FT[iB]=[DS];var GT=function(a){this.store=a};
_.z(GT,SM);GT.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m;return _.l(function(n){d=_.y(a,uzb);if(!d||!d.stepId||!d.userQueryToken)return n.return();m=(k=(e=b)==null?void 0:(g=e.form)==null?void 0:g.userQuery)!=null?k:"";c.store.dispatch(_.hp({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:d.stepId,userQueryToken:d.userQueryToken,userQuery:m}}));_.ue(n)})};
GT[iB]=[DS];_.Rfc=new _.jB("TIMELY_ACTIONS_CONTROLLER_TOKEN");var HT=function(a){this.controller=a};
_.z(HT,SM);HT.prototype.resolveCommand=function(a){var b=this,c,d,e,g;return _.l(function(k){c=_.y(a,OCb);if(!c)return k.return();d=c;e=d.id;g=d.isVisible;if(e===void 0||g===void 0)return k.return();var m;(m=b.controller.timelyActionsMap.get(e))==null||m(e,g);_.ue(k)})};
HT[iB]=[_.Rfc];var Sfc=function(){this.timelyActionsMap=new Map};var IT=function(a){this.JSC$15164_commandHandler=a};
_.z(IT,SM);IT.prototype.resolveCommand=function(a){var b=this,c,d,e,g,k;return _.l(function(m){c=_.y(a,_.Vyb);if(!c)return m.return();g=(d=c.item)==null?void 0:(e=d.notificationTextRenderer)==null?void 0:e.successResponseText;if(!g)return m.return();k=_.$p(g);b.JSC$15164_commandHandler.resolveCommand(k);_.ue(m)})};
IT[iB]=[_.Yi];var JT=function(a,b){this.innertubeTransportService=a;this.JSC$15169_playerApiPromise=b};
_.z(JT,SM);
JT.prototype.resolveCommand=function(a){var b=this,c,d,e,g,k,m,n,r,t;return _.l(function(u){if(u.nextAddress==1)return _.p(u,b.JSC$15169_playerApiPromise,2);c=u.yieldResult;d=c.getOption("captions","track");e=Object.assign({},_.y(a,_.IAb));(k=(g=c.getVideoData())==null?void 0:g.video_id)?e.externalVideoId=k:_.Ki(Error("Fi"));if((m=d)==null?0:m.languageCode)e.languageCode=d.languageCode;if((n=d)==null?0:n.kind)e.kind=d.kind;if((r=d)==null?0:r.name)e.name=d.name;t=Object.assign({},a,{getTranscriptEndpoint:e});return _.p(u,
_.Rt(b.innertubeTransportService,t),0)})};
JT[iB]=[_.yq,_.fu];var KT=function(){};
_.z(KT,SM);KT.prototype.resolveCommand=function(a){var b,c,d,e,g,k,m,n;return _.l(function(r){b=_.y(a,wAb);if((c=b)==null||!c.paramKeyValuePairs)return r.return();d=window.location.href;e=_.h(b.paramKeyValuePairs);for(g=e.next();!g.done;g=e.next())k=g.value,k.key&&k.value&&(m={},d=_.Pi(d,(m[k.key]=k.value,m)));n=_.v().resolve(_.DWb);n.replaceUrl(d);_.ue(r)})};var LT=function(a,b){this.JSC$15176_commandHandler=a;this.innertubeTransportService=b};
_.z(LT,SM);
LT.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m,n,r,t,u,x,A,C,F,J,I,R,da;return _.l(function(V){switch(V.nextAddress){case 1:return(g=(d=b)==null?void 0:(e=d.form)==null?void 0:e.element)&&_.gw(g),k=_.yo().get("hl"),m="",_.pe(V,2),_.p(V,a5a(k),4);case 4:m=V.yieldResult;_.Jj(V,3);break;case 2:return _.te(V),g&&_.hw(g),_.Bl(Error("Hi"),"ERROR"),V.return();case 3:n=_.y(a,YFb);if(!n)return g&&_.hw(g),V.return();(u=(r=n.commerceActionConfig)==null?void 0:(t=r.commandLifeCycleConfig)==null?
void 0:t.onStartCommand)&&c.JSC$15176_commandHandler.resolveCommand(u);return _.p(V,_.Rt(c.innertubeTransportService,a,{client_data:{paymentsClientToken:{token:m}}}),5);case 5:(x=V.yieldResult)?(g&&_.hw(g),((J=x)==null?0:J.command)&&c.JSC$15176_commandHandler.resolveCommand(x.command),(da=(I=n.commerceActionConfig)==null?void 0:(R=I.commandLifeCycleConfig)==null?void 0:R.onSuccessCommand)&&c.JSC$15176_commandHandler.resolveCommand(da)):(g&&_.hw(g),_.Bl(Error("Ii")),(F=(A=n.commerceActionConfig)==
null?void 0:(C=A.commandLifeCycleConfig)==null?void 0:C.onFailureCommand)&&c.JSC$15176_commandHandler.resolveCommand(F)),_.ue(V)}})};
LT[iB]=[_.Yi,_.yq];var MT=function(a,b,c){this.store=a;this.JSC$15192_commandHandler=b;this.innertubeTransportService=c};
_.z(MT,SM);
MT.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m,n,r,t,u;return _.l(function(x){d=_.y(a,ZFb);e=d.googlePaymentPayload;d.onStartCommand&&c.JSC$15192_commandHandler.resolveCommand(d.onStartCommand);g=e.encryptedPurchaseParams;k=e.ypcLogWalletAnalyticDataEndpoint;m=d.serializedTransactionFlowLoggingParams;n=e.serializedPaymentsClientParams;r=d.ypcCujContext;u=d5a(c.innertubeTransportService,(t=b)==null?void 0:t.form,g,k,m,n,r);return x.return(u.then(function(A){b5a(b==null?void 0:b.form,
!1);var C=c.store,F=c.JSC$15192_commandHandler,J=A.integratorData;J==null||J===""||A.error!=null?(String(A.error)==="-1"&&d.onDismissCommand?F.resolveCommand(d.onDismissCommand):String(A.error)!=="-1"&&d.onFailureCommand&&F.resolveCommand(d.onFailureCommand),String(A.error)!=="-1"&&String(A.error)!=="132"&&_.Bl(Error("Ji"),"ERROR")):(d.googlePaymentEntityKey&&C.dispatch(_.wu("commerceAcquisitionClientPayloadEntity",d.googlePaymentEntityKey,{key:d.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:J,
fundsGuaranteeCallbackClientData:A.integratorClientCallbackData}}})),d.onSuccessCommand&&F.resolveCommand(d.onSuccessCommand));_.qo()},function(A){b5a(b==null?void 0:b.form,!1);
_.Bl(A,"ERROR");d.onFailureCommand&&c.JSC$15192_commandHandler.resolveCommand(d.onFailureCommand)}))})};
MT[iB]=[yw,_.Yi,_.yq];var NT=function(a,b){this.JSC$15196_commandHandler=a;this.purchaseManager=b};
_.z(NT,SM);
NT.prototype.resolveCommand=function(a){var b=this,c,d,e,g,k,m,n,r,t;return _.l(function(u){c=_.y(a,$Fb);((d=c)==null?0:(e=d.commandLifeCycleConfig)==null?0:e.onStartCommand)&&b.JSC$15196_commandHandler.resolveCommand(c.commandLifeCycleConfig.onStartCommand);if(!((g=c)==null?0:(k=g.googlePaymentPurchaseManagerPayload)==null?0:k.securePayloadBytes))return _.Bl(Error("Ki"),"ERROR"),u.return();m=Kqb(_.cb(c.googlePaymentPurchaseManagerPayload.securePayloadBytes));n=_.yo().get("hl");r=_.St();$ec(m.serialize(),
n,function(x){r.resolve(x)},function(x){r.reject(x)},r.resolve);
t=r.promise;return u.return(t.then(function(x){if(x)if(x==null?0:x.errorCode){_.Bl(Error("Li`"+x.errorCode),"ERROR");var A,C;((A=c)==null?0:(C=A.commandLifeCycleConfig)==null?0:C.onFailureCommand)&&b.JSC$15196_commandHandler.resolveCommand(c.commandLifeCycleConfig.onFailureCommand)}else if(x==null?0:x.isCancelled){var F,J;((F=c)==null?0:(J=F.commandLifeCycleConfig)==null?0:J.onCancelCommand)&&b.JSC$15196_commandHandler.resolveCommand(c.commandLifeCycleConfig.onCancelCommand)}else{var I,R;((I=c)==
null?0:(R=I.commandLifeCycleConfig)==null?0:R.onSuccessCommand)&&b.JSC$15196_commandHandler.resolveCommand(c.commandLifeCycleConfig.onSuccessCommand)}},function(x){_.Bl(x,"ERROR");
var A,C;((A=c)==null?0:(C=A.commandLifeCycleConfig)==null?0:C.onFailureCommand)&&b.JSC$15196_commandHandler.resolveCommand(c.commandLifeCycleConfig.onFailureCommand)}))})};
NT[iB]=[_.Yi,afc];var Tfc=function(a,b){this.JSC$15204_commandHandler=a;this.commandAllowlistOverride=b;var c;this.commandAllowlist=(c=this.commandAllowlistOverride)!=null?c:Tt};
Tfc.prototype.handleResponse=function(a,b,c){var d,e=b==null?void 0:(d=b.config)==null?void 0:d.command;if(!e||this.commandAllowlist.some(function(g){return!!_.y(e,g)})){b=void 0;
c!==void 0&&(b={form:{element:c}});a.onResponseReceivedCommand&&this.JSC$15204_commandHandler.resolveCommand(a.onResponseReceivedCommand,b);a.onResponseReceivedAction&&this.JSC$15204_commandHandler.resolveCommand(a.onResponseReceivedAction,b);a.onResponseReceivedEndpoint&&this.JSC$15204_commandHandler.resolveCommand(a.onResponseReceivedEndpoint,b);a.command&&this.JSC$15204_commandHandler.resolveCommand(a.command,b);if(a.onResponseReceivedCommands)for(c=_.h(a.onResponseReceivedCommands),d=c.next();!d.done;d=
c.next())this.JSC$15204_commandHandler.resolveCommand(d.value,b);if(a.onResponseReceivedActions)for(c=_.h(a.onResponseReceivedActions),d=c.next();!d.done;d=c.next())this.JSC$15204_commandHandler.resolveCommand(d.value,b);if(a.onResponseReceivedEndpoints)for(c=_.h(a.onResponseReceivedEndpoints),d=c.next();!d.done;d=c.next())this.JSC$15204_commandHandler.resolveCommand(d.value,b);if(a.actions)for(a=_.h(a.actions),c=a.next();!c.done;c=a.next())this.JSC$15204_commandHandler.resolveCommand(c.value,b)}};
Tfc[iB]=[_.Yi,_.Xi(mUa)];var Ufc=new _.jB("INNERTUBE_TOKEN_SERVICE");var Vfc=new _.jB("SCHEDULER_TOKEN");var Wfc=function(a){this.scheduler=a;a={};this.tokenMap=(a.app={},a.user={},a)};
Wfc.prototype.handleResponse=function(a,b){if(!b)throw Error("Mi");var c;if(a=(c=a.responseContext)==null?void 0:c.innertubeTokenJar){if(a.appTokens){var d,e,g;c=(d=b.innerTubeRequest.context)==null?void 0:(e=d.request)==null?void 0:(g=e.innertubeTokenJar)==null?void 0:g.appTokens;Xfc(this,a.appTokens,this.tokenMap.app,c)}if(a.userTokens){var k,m,n;b=(k=b.innerTubeRequest.context)==null?void 0:(m=k.request)==null?void 0:(n=m.innertubeTokenJar)==null?void 0:n.userTokens;Xfc(this,a.userTokens,this.tokenMap.user,
b)}}};
Wfc.prototype.processContext=function(a){a.request||(a.request={});var b=Object.keys(this.tokenMap.app).length,c=Object.keys(this.tokenMap.user).length;if(b||c)a.request.innertubeTokenJar={},b&&(a.request.innertubeTokenJar.appTokens=[].concat(_.De(Object.values(this.tokenMap.app).flat()))),c&&(a.request.innertubeTokenJar.userTokens=[].concat(_.De(Object.values(this.tokenMap.user).flat())))};
var Xfc=function(a,b,c,d){b=_.h(b);for(var e=b.next(),g={};!e.done;g={token$jscomp$137:void 0},e=b.next()){g.token$jscomp$137=e.value;if(g.token$jscomp$137.type===void 0)throw new _.qj("InnerTube token has no type",g.token$jscomp$137);if(g.token$jscomp$137.clearTokens)c[g.token$jscomp$137.type]=[];else if(g.token$jscomp$137.value!==void 0){c[g.token$jscomp$137.type]||(c[g.token$jscomp$137.type]=[]);if(d!==void 0&&d.length){e=_.h(d);for(var k=e.next(),m={};!k.done;m={requestToken:void 0},k=e.next())m.requestToken=
k.value,k=c[g.token$jscomp$137.type].findIndex(function(n){return function(r){return r===n.requestToken||(0,_.Cf.equals)(r,n.requestToken)}}(m)),k>-1&&c[g.token$jscomp$137.type].splice(k,1)}c[g.token$jscomp$137.type].push(g.token$jscomp$137);
g.token$jscomp$137.maxAgeSeconds&&Number(g.token$jscomp$137.maxAgeSeconds)>0&&a.scheduler.addLowPriorityJob(function(n){return function(){var r=c[n.token$jscomp$137.type].indexOf(n.token$jscomp$137);r>-1&&c[n.token$jscomp$137.type].splice(r,1)}}(g),Number(g.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.qj("InnerTube token has no value",g.token$jscomp$137);
}};
Wfc[iB]=[Vfc];var Yfc=new _.jB("LOCAL_INNERTUBE_ROUTER_TOKEN"),Zfc=new _.jB("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var OT=function(a){this.serviceMap=a};
OT.prototype.shouldPreferLocalResponse=function(a,b){return(a=$fc(this,a))?a.shouldPreferLocalResponse(b):!1};
OT.prototype.localInnertubeResponse=function(a,b){var c=this,d;return _.l(function(e){return(d=$fc(c,a))?e.return(d.localInnertubeResponse(b)):e.return(Promise.reject(Error("Ni")))})};
OT.prototype.canProvideFallbackResponse=function(a,b){return(a=$fc(this,a))?a.canProvideFallbackResponse(b):!1};
OT.prototype.localFallbackInnertubeResponse=function(a,b){var c=this,d;return _.l(function(e){return(d=$fc(c,a))?e.return(d.localFallbackInnertubeResponse(b)):e.return(Promise.reject(Error("Ni")))})};
var $fc=function(a,b){b=_.gj(b);return b?(a=a.serviceMap[b])?a:null:null};
OT[iB]=[Zfc];var l5a=_.Vp(_.vo("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Lw=function(){};
Lw.prototype.shouldPreferLocalResponse=function(){return!1};
Lw.prototype.localInnertubeResponse=function(){return _.l(function(a){return a.return(Promise.reject(Error("Oi")))})};
Lw.prototype.canProvideFallbackResponse=function(){return!0};
Lw.prototype.localFallbackInnertubeResponse=function(){var a,b,c;return _.l(function(d){a=Yv("CLOSE_POPUP");b={openPopupAction:f5a()};c={actions:[a,b]};return d.return(c)})};var Dw=function(a,b){this.JSC$15273_upliftPromise=a;this.store=b};
Dw.prototype.shouldPreferLocalResponse=function(a){if(!_.w("kevlar_offline_download_unplayable_error_ve")&&!agc(this,a))return!1;var b=a.videoId;return!_.w("kevlar_offline_download_unplayable_error_ve")||b&&agc(this,a)&&LEa(this.store.getState().entities,b)?n5a(this.store.getState().entities,a.playlistId):!1};
Dw.prototype.localInnertubeResponse=function(a){var b=this,c;return _.l(function(d){return(c=b.getPlayerResponse(a))?d.return(Promise.resolve(c)):_.w("kevlar_offline_download_unplayable_error_ve")||Jp(b.store.getState())?d.return(Promise.reject(Error("Pi"))):d.return(Promise.resolve({}))})};
Dw.prototype.canProvideFallbackResponse=function(a){return!!a.videoId};
Dw.prototype.localFallbackInnertubeResponse=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,b.JSC$15273_upliftPromise,2);if(c=b.getPlayerResponse(a))d=d.return(Promise.resolve(c));else{var e;if(e=_.w("kevlar_offline_download_unplayable_error_ve"))e=!!zp(b.store.getState().entities,a.videoId);d=e?d.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.ep(_.vo("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),
proceedButton:{buttonRenderer:Q2a()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):d.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.ep(_.vo("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:P2a()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}})}return d})};
var agc=function(a,b){return Ap(a.store.getState().entities,b.videoId)};
Dw.prototype.getPlayerResponse=function(a){return kFa(this.store.getState().entities,a.videoId)};var Kw=function(a,b){this.localPlayerService=a;this.localWatchNextService=b};
Kw.prototype.shouldPreferLocalResponse=function(a){var b=a.playerRequest;a=a.watchNextRequest;return!!(b&&this.localPlayerService.shouldPreferLocalResponse(b)&&a&&this.localWatchNextService.shouldPreferLocalResponse(a))};
Kw.prototype.localInnertubeResponse=function(a){var b=this,c,d,e,g;return _.l(function(k){if(k.nextAddress==1){c=a.playerRequest;d=a.watchNextRequest;if(!c||!d)throw new _.qj("Missing streaming request",a);return _.p(k,b.localPlayerService.localInnertubeResponse(c),2)}if(k.nextAddress!=3)return e=k.yieldResult,_.p(k,b.localWatchNextService.localInnertubeResponse(d),3);g=k.yieldResult;return k.return({playerResponse:e,watchNextResponse:g})})};
Kw.prototype.canProvideFallbackResponse=function(a){var b=a.playerRequest;a=a.watchNextRequest;return!!(b&&this.localPlayerService.canProvideFallbackResponse(b)&&a&&this.localWatchNextService.canProvideFallbackResponse(a))};
Kw.prototype.localFallbackInnertubeResponse=function(a){var b=this,c,d,e,g;return _.l(function(k){if(k.nextAddress==1)return c=a.playerRequest,d=a.watchNextRequest,c&&d?_.p(k,b.localPlayerService.localFallbackInnertubeResponse(c),2):k.return(Promise.reject(new _.qj("Missing streaming request",a)));if(k.nextAddress!=3)return e=k.yieldResult,_.p(k,b.localWatchNextService.localFallbackInnertubeResponse(d),3);g=k.yieldResult;return k.return({playerResponse:e,watchNextResponse:g})})};var Hw=function(a){this.JSC$15283_persistentStorePromiseAccessor=a};
Hw.prototype.shouldPreferLocalResponse=function(){return!1};
Hw.prototype.localInnertubeResponse=function(){return _.l(function(a){return a.return(Promise.reject(Error("Qi")))})};
Hw.prototype.canProvideFallbackResponse=function(){return!0};
Hw.prototype.localFallbackInnertubeResponse=function(){var a=this,b,c;return _.l(function(d){return d.nextAddress==1?_.p(d,a.JSC$15283_persistentStorePromiseAccessor(),2):d.nextAddress!=3?(b=d.yieldResult)?_.p(d,b.get("service:guide:fallback"),3):d.return(Promise.reject(Error("Ri"))):(c=d.yieldResult)&&_.ww(c)?d.return(o5a(_.ww(c))):d.return(Promise.reject(Error("Si")))})};var Mw=function(){};
Mw.prototype.shouldPreferLocalResponse=function(){return!1};
Mw.prototype.localInnertubeResponse=function(){return _.l(function(a){return a.return(Promise.reject(Error("Ti")))})};
Mw.prototype.canProvideFallbackResponse=function(){return!0};
Mw.prototype.localFallbackInnertubeResponse=function(){var a,b,c;return _.l(function(d){a=Yv("CLOSE_POPUP");b={openPopupAction:f5a()};c={actions:[a,b]};return d.return(c)})};var Gw=function(){this.urlMap=bgc;this.fallbackCommand=_.yF};
Gw.prototype.shouldPreferLocalResponse=function(a){return(a=a.url)?!!cgc(this,a):!1};
Gw.prototype.localInnertubeResponse=function(a){var b=this,c;return _.l(function(d){return(c=a.url)?d.return(dgc(a,cgc(b,c))):d.return(Promise.reject(Error("Ui")))})};
Gw.prototype.canProvideFallbackResponse=function(){return!0};
Gw.prototype.localFallbackInnertubeResponse=function(a){var b=this,c,d,e,g,k,m,n;return _.l(function(r){c=a.url;if(!c)return r.return(dgc(a,b.fallbackCommand));if(d=cgc(b,c))return r.return(dgc(a,d));e=void 0;g=_.gj(c);g==="/watch"&&(k=_.Kg(c,"v"))&&(n=(m=_.Kg(c,"list"))!=null?m:void 0,e=_.dp(k,n));e||(e=b.fallbackCommand);return r.return(dgc(a,e))})};
var cgc=function(a,b){if(b)return a.urlMap[_.Pn(b)]},dgc=function(a,b){b&&a.parentTrackingParams&&(b.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:a.parentTrackingParams}},b.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:b})};var Iw=function(a,b,c){this.JSC$15293_upliftPromise=a;this.store=b;this.JSC$15293_persistentStorePromiseAccessor=c};
Iw.prototype.shouldPreferLocalResponse=function(){return!1};
Iw.prototype.localInnertubeResponse=function(){return _.l(function(a){return a.return(Promise.reject(Error("Vi")))})};
Iw.prototype.canProvideFallbackResponse=function(){return!0};
Iw.prototype.localFallbackInnertubeResponse=function(){var a=this;return _.l(function(b){return b.return(egc(a))})};
var egc=function(a){var b,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,vw(a.JSC$15293_upliftPromise,a.store),2);b=d.yieldResult;c={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[uw(b)]}}}};return d.return(fgc(a,c))})},fgc=function(a,b){var c,d;
return _.l(function(e){if(e.nextAddress==1)return _.p(e,a.JSC$15293_persistentStorePromiseAccessor(),2);if(e.nextAddress!=3)return c=e.yieldResult,_.p(e,xw(c),3);d=e.yieldResult;return e.return({responseContext:{},contents:b,topbar:d})})};var Ew=function(a,b,c){this.JSC$15300_upliftPromise=a;this.store=b;this.JSC$15300_persistentStorePromiseAccessor=c};
Ew.prototype.shouldPreferLocalResponse=function(a){var b=a.videoId;return(_.w("kevlar_offline_download_unplayable_error_ve")||b&&Ap(this.store.getState().entities,b))&&(!_.w("kevlar_offline_download_unplayable_error_ve")||b&&Ap(this.store.getState().entities,b)&&LEa(this.store.getState().entities,b))?n5a(this.store.getState().entities,a.playlistId):!1};
Ew.prototype.localInnertubeResponse=function(a){var b=this,c,d;return _.l(function(e){if(e.nextAddress==1)return _.w("kevlar_offline_download_unplayable_error_ve")?(c=a.videoId)?_.p(e,b.JSC$15300_upliftPromise,2):e.return(Promise.reject(Error("Wi"))):e.return(b.localFallbackInnertubeResponse(a));if(e.nextAddress!=3)return _.p(e,ggc(b,a,c),3);d=e.yieldResult;return e.return(hgc(b,d,c))})};
Ew.prototype.canProvideFallbackResponse=function(a){return a.videoId?!0:!1};
Ew.prototype.localFallbackInnertubeResponse=function(a){var b=this,c,d,e,g,k,m,n,r,t;return _.l(function(u){switch(u.nextAddress){case 1:if(_.w("kevlar_offline_download_unplayable_error_ve"))return u.return(igc(b,a));c=a.videoId;if(!c)return u.return(Promise.reject(Error("Wi")));d=a.playlistId;e=_.dp(c,d);return _.p(u,b.JSC$15300_persistentStorePromiseAccessor(),2);case 2:return g=u.yieldResult,_.p(u,xw(g),3);case 3:return k=u.yieldResult,m={responseContext:{},currentVideoEndpoint:e,topbar:k},_.p(u,
b.JSC$15300_upliftPromise,4);case 4:if(Ap(b.store.getState().entities,c)){if(!LEa(b.store.getState().entities,c)&&!Jp(b.store.getState()))return n=T2a(),m.contents={singleColumnWatchNextResults:{results:{results:{contents:[uw(n)]}}}},u.return(m);u.jumpTo(5);break}return _.p(u,vw(b.JSC$15300_upliftPromise,b.store),6);case 6:return r=u.yieldResult,m.contents={singleColumnWatchNextResults:{results:{results:{contents:[uw(r)]}}}},u.return(m);case 5:if(t=zp(b.store.getState().entities,c))m.contents=m5a(t);
return u.return(m)}})};
var igc=function(a,b){var c,d,e,g;return _.l(function(k){switch(k.nextAddress){case 1:return(c=b.videoId)?_.p(k,a.JSC$15300_upliftPromise,2):k.return(Promise.reject(Error("Wi")));case 2:return _.p(k,ggc(a,b,c),3);case 3:d=k.yieldResult;if(zp(a.store.getState().entities,c)){k.jumpTo(4);break}return _.p(k,vw(a.JSC$15300_upliftPromise,a.store),5);case 5:return e=k.yieldResult,k.return(jgc(d,e));case 4:return Ap(a.store.getState().entities,c)&&LEa(a.store.getState().entities,c)?k.return(hgc(a,d,c)):(g=
T2a(),k.return(jgc(d,g)))}})},ggc=function(a,b,c){var d,e,g,k,m;
return _.l(function(n){if(n.nextAddress==1)return d=b.playlistId,e=_.dp(c,d),_.p(n,a.JSC$15300_persistentStorePromiseAccessor(),2);if(n.nextAddress!=3)return g=n.yieldResult,_.p(n,xw(g),3);k=n.yieldResult;m={responseContext:{},currentVideoEndpoint:e,topbar:k};return n.return(m)})},hgc=function(a,b,c){if(a=zp(a.store.getState().entities,c))b.contents=m5a(a);
return b},jgc=function(a,b){a.contents={singleColumnWatchNextResults:{results:{results:{contents:[uw(b)]}}}};
return a};var Jw=function(a,b,c){this.JSC$15306_upliftPromise=a;this.store=b;this.JSC$15306_persistentStorePromiseAccessor=c};
Jw.prototype.shouldPreferLocalResponse=function(){return!1};
Jw.prototype.localInnertubeResponse=function(){return _.l(function(a){return a.return(Promise.reject(Error("Xi")))})};
Jw.prototype.canProvideFallbackResponse=function(){return!0};
Jw.prototype.localFallbackInnertubeResponse=function(){var a=this,b,c,d,e;return _.l(function(g){switch(g.nextAddress){case 1:return _.p(g,a.JSC$15306_persistentStorePromiseAccessor(),2);case 2:return b=g.yieldResult,_.p(g,xw(b),3);case 3:return c=g.yieldResult,d={responseContext:{},topbar:c},_.p(g,a.JSC$15306_upliftPromise,4);case 4:return _.p(g,vw(a.JSC$15306_upliftPromise,a.store),5);case 5:return e=g.yieldResult,d.watchStatus={backgroundPromoRenderer:e},g.return(d)}})};var kgc=new _.jB("ENDPOINT_MAP");var lgc=function(){var a=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return a.sequenceMap}}},cRb=function(a,b,c){var d,e=(d=b.config)==null?void 0:d.sequenceStrategy;
if(!e)return c();a.sequenceMap.has(e.sequenceKey)||a.sequenceMap.set(e.sequenceKey,[]);a=a.sequenceMap.get(e.sequenceKey);switch(e.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return mgc(a,b,c);case "REQUEST_SEQUENCE_TYPE_REPLACE":return ngc(a,b,c);default:throw new _.qj("Request could not be sequenced",b);}},mgc=function(a,b,c){var d,e,g;
return _.l(function(k){a.length>0?(e=a[a.length-1],d=e.responsePromise.then(function(){return c()})):d=c();
g={request:b,responsePromise:d};a.push(g);ogc(a,g);return k.return(g.responsePromise)})},ngc=function(a,b,c){c=c();
if(a.length>0)for(var d=_.h(a),e=d.next();!e.done;e=d.next())e.value.responsePromise=c;var g={request:b,responsePromise:c};a.push(g);ogc(a,g);return Promise.resolve().then(function(){return a.indexOf(g)>0?g.responsePromise.then(function(k){return Object.assign({},k,{sequenceMetaData:{skipProcessing:!0}})}):g.responsePromise})},ogc=function(a,b){b.responsePromise.then(function(){var c=a.indexOf(b);
c>-1&&a.splice(c,1)})};var pgc=new _.jB("REQUEST_SEQUENCING");var PT=function(){};
_.z(PT,MH);PT.prototype.getApiPaths=function(){return[]};
PT.prototype.getExtension=function(a){return _.y(a,Nyb)};
PT.prototype.JSC$11742_buildRequest=function(a,b){a.recaptchaToken=b.recaptchaToken};
PT.prototype.getApiUrl=function(){return"/das_captcha"};var QT=function(){};
_.z(QT,MH);QT.prototype.getApiPaths=function(){return XGb};
QT.prototype.getExtension=function(a){return _.y(a,ozb)};
QT.prototype.JSC$11742_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.createBackstagePostParams&&(a.createBackstagePostParams=b.createBackstagePostParams);c.comment_text&&(a.commentText=c.comment_text);if(c.attached_video_id)a.videoAttachment={videoId:c.attached_video_id};else if(c.image_poll_options)a.pollAttachmentData={options:c.image_poll_options};else if(c.poll_options)a.pollAttachment={choices:c.poll_options};else if(c.quiz_options)a.quizAttachmentData={options:c.quiz_options};else if(c.image_blob_id)a.imageAttachment=
{encryptedBlobId:c.image_blob_id},c.source_video_id&&(a.imageAttachment.sourceExternalVideoId=c.source_video_id),c.image_preview_coordinates&&(a.imageAttachment.previewCoordinates=JSON.parse(c.image_preview_coordinates));else if(c.images_data)a.imagesAttachment={imagesData:c.images_data};else if(c.clip_external_video_id!==void 0||c.clip_offset_ms!==void 0||c.clip_duration_ms!==void 0){var d,e,g,k,m;a.clipAttachment={externalVideoId:(g=c.clip_external_video_id)!=null?g:"",offsetMs:(k=(d=c.clip_offset_ms)==
null?void 0:d.toString())!=null?k:"",durationMs:(m=(e=c.clip_duration_ms)==null?void 0:e.toString())!=null?m:""}}else c.shared_post_id&&(a.sharedPostAttachment={postId:c.shared_post_id});c.tagged_video_id&&(a.postCreationData={taggedVideoId:c.tagged_video_id});c.access_restrictions&&(typeof c.access_restrictions==="number"&&(b=c.access_restrictions,a.accessRestrictions={restriction:b!==1&&b===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof c.access_restrictions==="string"&&
(a.accessRestrictionsParams=c.access_restrictions));c.scheduled_publish_time_sec&&(a.scheduledPublishTimeSec=c.scheduled_publish_time_sec.toString())};var RT=function(){};
_.z(RT,MH);RT.prototype.getApiPaths=function(){return dHb};
RT.prototype.getExtension=function(a){return _.y(a,oEb)};
RT.prototype.JSC$11742_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.decorateMessageParams&&(a.params=b.decorateMessageParams);c.text&&(a.text=c.text)};var ST=function(){};
_.z(ST,MH);ST.prototype.getApiPaths=function(){return xHb};
ST.prototype.getExtension=function(a){return _.y(a,pzb)};
ST.prototype.JSC$11742_buildRequest=function(a,b,c){c=c===void 0?{}:c;c.video_id&&(a.videoId=c.video_id)};var TT=function(){};
_.z(TT,MH);TT.prototype.getApiPaths=function(){return DHb};
TT.prototype.getExtension=function(a){return _.y(a,_.to)};
TT.prototype.JSC$11742_buildRequest=function(a,b,c){c.suggestions_query&&(a.input=c.suggestions_query)};var UT=function(){};
_.z(UT,MH);UT.prototype.getApiPaths=function(){return iIb};
UT.prototype.getExtension=function(a){return _.y(a,qzb)};
UT.prototype.JSC$11742_buildRequest=function(a,b,c){c.comment_text!==void 0&&(a.commentText=c.comment_text);c.scheduled_publish_time_sec&&(a.scheduledPublishTimeSec=c.scheduled_publish_time_sec.toString());a.updateBackstagePostParams=b.updateBackstagePostParams};var VT=function(){};
_.z(VT,MH);VT.prototype.getApiPaths=function(){return nw};
VT.prototype.getExtension=function(a){return _.y(a,_.Jt)};
VT.prototype.JSC$11742_buildRequest=function(a,b,c){c.formData&&(a.formData=c.formData);b.token?a.continuation=b.token:b.continuationTokenKey&&(c=_.Yp().getState(),b=_.np(c.entities,"continuationTokenEntity",b.continuationTokenKey))&&(a.continuation=String(b.continuationToken))};
var qgc=function(){};
_.z(qgc,MH);_.f=qgc.prototype;_.f.getApiPaths=function(){return nw};
_.f.getExtension=function(a){return _.y(a,_.oq)};
_.f.isNavigationCommand=function(){return!0};
_.f.JSC$11749_getStoreKey=function(a){if((a=this.getExtension(a))&&a.browseId){var b={browseId:a.browseId};a.browseEndpointContextSupportedConfigs&&(b.browseEndpointContextSupportedConfigs=JSON.stringify(a.browseEndpointContextSupportedConfigs));a.params&&(b.params=a.params);a.query&&(b.query=a.query);return _.Tn("browse",b)}};
_.f.JSC$11742_buildRequest=function(a,b,c){b.browseId&&(a.browseId=b.browseId);b.params&&(a.params=b.params);b.query&&(a.query=b.query);c.formData?a.formData=c.formData:b.formData&&(a.formData=b.formData);b.browseId==="FEsubscriptions"&&_.yo().getFlag(155)&&(a.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");b.browseId==="SPaccount_playback"&&(c=_.yo(),a.formData||(a.formData={}),a.formData.accountSettingsFormData={flagCaptionsDefaultOff:c.getFlag(65),flagAutoCaptionsDefaultOn:c.getFlag(66),
flagDisableInlinePreview:c.getFlag(186),flagAudioDescriptionDefaultOn:c.getFlag(198)});if(b.browseId==="FEwhat_to_watch"){c=_.yo();var d=c.getFlag(196);c.getFlag(197)&&(a.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:d}}})}b.browseId==="FEwhat_to_watch"&&(b=_.yo().getFlag(186),a.inlineSettingStatus=b?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.f.getRequestConfig=function(a,b){b=b===void 0?{}:b;var c={};if(a=this.JSC$11749_getStoreKey(a,b))c.storeStrategy={storeKey:a,disableCache:b.disableCache};_.w("web_log_browse_ticks_ks")||(c.requestTick="br_s",c.responseTick="br_r");return c};var WT=function(){};
_.z(WT,MH);WT.prototype.getApiPaths=function(){return RGb};
WT.prototype.getExtension=function(a){return _.y(a,FAb)};
WT.prototype.JSC$11742_buildRequest=function(a,b,c){a.legacyYoutubeChannelUsername=c.legacyYouTubeChannelUsername||"";a.legacyYoutubeChannelPassword=c.legacyYouTubeChannelPassword||""};var XT=function(){};
_.z(XT,MH);XT.prototype.getApiPaths=function(){return ZHb};
XT.prototype.getExtension=function(a){return _.y(a,yzb)};
XT.prototype.JSC$11742_buildRequest=function(a,b,c){c.recaptcha_response_token&&(a.recaptchaResponseToken=c.recaptcha_response_token);c.channel_id&&(a.channelId=c.channel_id)};var ZT=function(){};
_.z(ZT,MH);ZT.prototype.getApiPaths=function(){return jIb};
ZT.prototype.getExtension=function(a){return _.y(a,Ezb)};
ZT.prototype.JSC$11742_buildRequest=function(a,b,c){b.externalChannelId&&(a.externalChannelId=b.externalChannelId);c.handle&&(a.handleUpdate={handle:c.handle},b.handleEditSource&&(a.handleUpdate.handleEditSource=b.handleEditSource))};var $T=function(){};
_.z($T,MH);$T.prototype.getApiPaths=function(){return nIb};
$T.prototype.getExtension=function(a){return _.y(a,Szb)};
$T.prototype.JSC$11742_buildRequest=function(a,b,c){b.request&&(a.channelId=b.request.channelId);var d;if(c==null?0:(d=c.uploadDefaults)==null?0:d.emojiReactionSet)a.uploadDefaultsRequest||(a.uploadDefaultsRequest={}),a.uploadDefaultsRequest.emojiReactionSet=c.uploadDefaults.emojiReactionSet};var aU=function(){};
_.z(aU,MH);aU.prototype.getApiPaths=function(){return qIb};
aU.prototype.getExtension=function(a){return _.y(a,zzb)};
aU.prototype.JSC$11742_buildRequest=function(a,b,c){b.externalChannelId&&(a.externalChannelId=b.externalChannelId);b.channelHandleEntityKey&&(a.channelHandleEntityKey=b.channelHandleEntityKey);b.handleEditSource&&(a.handleEditSource=b.handleEditSource);c.handle?a.handle=c.handle:c.name&&(a.name=c.name)};var bU=function(){};
_.z(bU,MH);bU.prototype.getApiPaths=function(){return UGb};
bU.prototype.getExtension=function(a){return _.y(a,TE)};
bU.prototype.JSC$11742_buildRequest=function(a,b){b.actions?a.actions=b.actions:b.action&&(a.actions=[b.action])};var cU=function(){};
_.z(cU,MH);cU.prototype.getApiPaths=function(){return VGb};
cU.prototype.getExtension=function(a){return _.y(a,_.Jt)};
cU.prototype.JSC$11742_buildRequest=function(a,b){b.token&&(a.continuation=b.token)};var dU=function(){};
_.z(dU,MH);dU.prototype.getApiPaths=function(){return vHb};
dU.prototype.getExtension=function(a){return _.y(a,_.Jt)};
dU.prototype.JSC$11742_buildRequest=function(a,b){a.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";b.token&&(a.fetchCommentsParams={continuation:b.token})};var eU=function(){};
_.z(eU,MH);eU.prototype.getApiPaths=function(){return $Gb};
eU.prototype.getExtension=function(a){return _.y(a,UEb)};
eU.prototype.JSC$11742_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.createReplyParams&&(a.createReplyParams=b.createReplyParams);b.commentText&&(a.commentText=_.Wp(b.commentText));c.comment_text&&(a.commentText=c.comment_text);c.image_blob_id&&(a.imageAttachment={encryptedBlobId:c.image_blob_id});c.botguard_response&&(a.botguardResponse=c.botguard_response)};
_.Um.Object.defineProperties(eU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var fU=function(){};
_.z(fU,MH);fU.prototype.getApiPaths=function(){return aHb};
fU.prototype.getExtension=function(a){return _.y(a,_.TEb)};
fU.prototype.JSC$11742_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.createCommentParams&&(a.createCommentParams=b.createCommentParams);b.commentText&&(a.commentText=_.Wp(b.commentText));b.videoPositionMention&&(a.videoPositionMention=b.videoPositionMention);b.sources&&(a.sources=b.sources);c.comment_text&&(a.commentText=c.comment_text);c.attached_video_id?a.videoAttachment={videoId:c.attached_video_id}:c.poll_options?a.pollAttachment={choices:c.poll_options}:c.image_blob_id?a.imageAttachment=
{encryptedBlobId:c.image_blob_id}:c.shared_post_id&&(a.sharedPostAttachment={postId:c.shared_post_id});c.access_restrictions&&typeof c.access_restrictions==="number"&&(b=c.access_restrictions,a.accessRestrictions={restriction:b!==1&&b===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});c.botguard_response&&(a.botguardResponse=c.botguard_response)};
_.Um.Object.defineProperties(fU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var gU=function(){};
_.z(gU,MH);gU.prototype.getApiPaths=function(){return kIb};
gU.prototype.getExtension=function(a){return _.y(a,WEb)};
gU.prototype.JSC$11742_buildRequest=function(a,b,c){b.commentText&&(a.replyText=_.Wp(b.commentText));c.comment_text&&(a.replyText=c.comment_text);a.updateReplyParams=b.updateReplyParams};
_.Um.Object.defineProperties(gU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hU=function(){};
_.z(hU,MH);hU.prototype.getApiPaths=function(){return lIb};
hU.prototype.getExtension=function(a){return _.y(a,VEb)};
hU.prototype.JSC$11742_buildRequest=function(a,b,c){b.commentText&&(a.commentText=_.Wp(b.commentText));c.comment_text&&(a.commentText=c.comment_text);a.updateCommentParams=b.updateCommentParams};
_.Um.Object.defineProperties(hU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var iU=function(){};
_.z(iU,MH);iU.prototype.getApiPaths=function(){return mIb};
iU.prototype.getExtension=function(a){return _.y(a,Ozb)};
iU.prototype.JSC$11742_buildRequest=function(a,b){b.settings&&(a.settings=b.settings)};var jU=function(){};
_.z(jU,MH);jU.prototype.getApiPaths=function(){return oHb};
jU.prototype.getExtension=function(a){return _.y(a,Azb)};
jU.prototype.JSC$11742_buildRequest=function(a,b){b.channelCreationToken&&(a.channelCreationToken=b.channelCreationToken);b.source&&(a.source=b.source)};var kU=function(){};
_.z(kU,MH);kU.prototype.getApiPaths=function(){return ZGb};
kU.prototype.getExtension=function(a){return _.y(a,Dzb)};
kU.prototype.JSC$11742_buildRequest=function(a,b,c){c=c===void 0?{}:c;if(c.name&&(c.given_name||c.family_name))a=new _.qj("channel creation cannot set both GAIA and YouTube names",b),_.Bl(a);else{if(b.zeroStepChannelCreationParams){if(!c.comment_text){a=new _.qj("zero_step_create_comment_params but no zero_step_texts",b);_.Bl(a);return}a.zeroStepChannelCreationParams=b.zeroStepChannelCreationParams;a.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(a.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
c.comment_text,c.botguard_response&&(a.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=c.botguard_response))}a.channelCreationToken=b.channelCreationToken;c.given_name&&(a.givenName=c.given_name);c.family_name&&(a.familyName=c.family_name);b.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(a.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(c.name||c.handle||c.avatar_url||c.encryptedBlobId||c.isNameChanged!==void 0||c.isHandleChanged!==void 0||c.isDefaultProfilePhoto!==
void 0||c.obakeImageSource)a.overrideChannelCreationParams={},c.name&&(a.overrideChannelCreationParams.name=c.name),c.handle&&(a.overrideChannelCreationParams.handle=c.handle),c.avatar_url&&(a.overrideChannelCreationParams.avatarUrl=c.avatar_url),c.encryptedBlobId&&(a.overrideChannelCreationParams.blobEncryptionId=c.encryptedBlobId),c.enableIdentityForAllChannelCreationDialog&&(c.encryptedBlobId?a.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
c.isDefaultProfilePhoto!==void 0&&(a.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=c.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),c.isNameChanged!==void 0&&(a.overrideChannelCreationParams.identityForAllChannelCreationNameTag=c.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),c.isHandleChanged!==
void 0&&(a.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=c.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),c.obakeImageSource&&(a.overrideChannelCreationParams.obakeImageSourceType=c.obakeImageSource))}};var lU=function(){};
_.z(lU,MH);lU.prototype.getApiPaths=function(a){return(a=this.getExtension(a))&&a.status==="DISLIKE"?hHb:a&&a.status==="INDIFFERENT"?UHb:IHb};
lU.prototype.getExtension=function(a){return _.y(a,_.fw)};
lU.prototype.JSC$11742_buildRequest=function(a,b){b.target&&(a.target=b.target);if(b=this.getParams(b))a.params=b};
lU.prototype.getParams=function(a){switch(a==null?void 0:a.status){case "DISLIKE":return a.dislikeParams;case "INDIFFERENT":return a.removeLikeParams;default:return a==null?void 0:a.likeParams}};var mU=function(){};
_.z(mU,MH);mU.prototype.getApiPaths=function(){return dIb};
mU.prototype.getExtension=function(a){return _.y(a,bFb)};
mU.prototype.JSC$11742_buildRequest=function(a,b){b.settingItemId&&(a.settingItemId=b.settingItemId);b.stringValue!=null&&b.stringValue!==void 0?a.newValue={stringValue:b.stringValue}:b.intValue?a.newValue={intValue:b.intValue}:b.boolValue!==null&&b.boolValue!==void 0?a.newValue={boolValue:b.boolValue}:(a=new _.qj("Unknown value type for SetSettingEndpoint.",b),_.Bl(a))};var nU=function(){};
_.z(nU,MH);nU.prototype.getApiPaths=function(){return fIb};
nU.prototype.getExtension=function(a){return _.y(a,sFb)||void 0};
nU.prototype.JSC$11742_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)};
_.Um.Object.defineProperties(nU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var oU=function(){};
_.z(oU,MH);oU.prototype.getApiPaths=function(){return hIb};
oU.prototype.getExtension=function(a){return _.y(a,cFb)||void 0};
oU.prototype.JSC$11742_buildRequest=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
_.Um.Object.defineProperties(oU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var pU=function(a){this.shareClientParamsProvider=a};
_.z(pU,MH);pU.prototype.getApiPaths=function(){return zHb};
pU.prototype.getExtension=function(a){return _.y(a,FDb)||_.y(a,_.GDb)||_.y(a,EDb)};
pU.prototype.JSC$11742_buildRequest=function(a,b){b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);if(b.clientParamIdentifier){var c;if((c=this.shareClientParamsProvider)==null?0:c.clientParams.has(b.clientParamIdentifier)){c=this.shareClientParamsProvider;b=b.clientParamIdentifier;var d=c.clientParams.get(b);d&&c.clientParams.delete(b);a.clientParams=d}}};
pU[iB]=[Fdc];var qU=function(){};
_.z(qU,MH);qU.prototype.getApiPaths=function(){return OGb};
qU.prototype.getExtension=function(a){return _.y(a,PAb)};
qU.prototype.JSC$11742_buildRequest=function(a,b){b.params&&(a.params=b.params)};var rU=function(){};
_.z(rU,MH);rU.prototype.getApiPaths=function(){return iHb};
rU.prototype.getExtension=function(a){return _.y(a,MAb)};
rU.prototype.JSC$11742_buildRequest=function(a,b){b.dismissal&&(a.items=[b.dismissal])};
_.Um.Object.defineProperties(rU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var sU=function(){};
_.z(sU,MH);sU.prototype.getApiPaths=function(){return GHb};
sU.prototype.getExtension=function(a){return _.y(a,_.Uw)||void 0};
sU.prototype.JSC$11742_buildRequest=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))};
_.Um.Object.defineProperties(sU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var tU=function(){};
_.z(tU,MH);tU.prototype.getApiPaths=function(){return GHb};
tU.prototype.getExtension=function(a){return _.y(a,_.to)};
tU.prototype.JSC$11742_buildRequest=function(a,b,c){c.feedback_tokens&&(a.feedbackTokens=c.feedback_tokens,a.shouldMerge=!0)};
_.Um.Object.defineProperties(tU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var uU=function(){};
_.z(uU,MH);uU.prototype.getApiPaths=function(){return GHb};
uU.prototype.getExtension=function(a){return _.y(a,S6a)};
uU.prototype.JSC$11742_buildRequest=function(a,b){b.undoToken&&(a.feedbackTokens=[b.undoToken]);b.isUndoTokenUnencrypted&&(a.isFeedbackTokenUnencrypted=b.isUndoTokenUnencrypted)};
_.Um.Object.defineProperties(uU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var vU=function(){};
_.z(vU,MH);vU.prototype.getApiPaths=function(){return rIb};
vU.prototype.getExtension=function(a){return _.y(a,JAb)};
vU.prototype.JSC$11742_buildRequest=function(a,b){b.nextEndpoint&&_.y(b.nextEndpoint,_.Kl)?a.nextEndpoint={urlEndpoint:_.y(b.nextEndpoint,_.Kl)}:b.nextEndpoint&&_.y(b.nextEndpoint,_.Un)&&(a.nextEndpoint={watchEndpoint:_.y(b.nextEndpoint,_.Un)});b.setRacy&&(a.setRacy=b.setRacy);b.setControvercy&&(a.setControvercy=b.setControvercy)};var wU=function(a){this.JSC$15488_storeWithEntities=a};
_.z(wU,MH);wU.prototype.getApiPaths=function(){return kHb};
wU.prototype.getExtension=function(a){return _.y(a,gBb)};
wU.prototype.JSC$11742_buildRequest=function(a,b){b.flowId&&(a.flowId=b.flowId);b.targetId&&(a.targetId=b.targetId);b.continuation&&(a.continuation=b.continuation);var c=b.flowStateEntityKey;if(b.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&c&&this.JSC$15488_storeWithEntities){var d;if(b=(d=this.JSC$15488_storeWithEntities.getState())==null?void 0:d.entities)if(d=_.jp(c).entityType,d=_.np(b,d,c))a.flowState=d,a.flowStateEntityKey=c}};
_.Um.Object.defineProperties(wU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
wU[iB]=[yw];var rgc=function(){};
_.z(rgc,MH);_.f=rgc.prototype;_.f.getApiPaths=function(){return FHb};
_.f.JSC$11749_getStoreKey=function(){return _.Tn("guide")};
_.f.getRequestConfig=function(){var a=this.JSC$11749_getStoreKey(),b;a&&(b={storeStrategy:{storeKey:a}});return b};
_.f.isNavigationCommand=function(){return!0};
_.f.getExtension=function(a){return _.y(a,_.to)};
_.f.JSC$11742_buildRequest=function(a){a.fetchLiveState=!0};var xU=function(){};
_.z(xU,MH);xU.prototype.getApiPaths=function(){return SGb};
xU.prototype.getExtension=function(a){return _.y(a,QEb)};
xU.prototype.JSC$11742_buildRequest=function(){};var yU=function(){};
_.z(yU,MH);yU.prototype.getApiPaths=function(){return TGb};
yU.prototype.getExtension=function(a){return _.y(a,REb)};
yU.prototype.JSC$11742_buildRequest=function(){};var zU=function(){};
_.z(zU,MH);zU.prototype.getApiPaths=function(){return NGb};
zU.prototype.getExtension=function(a){return _.y(a,_.Jt)};
zU.prototype.JSC$11742_buildRequest=function(a,b){b.token&&(a.continuation=b.token);var c,d;a==null||(c=a.context)==null||(d=c.user)==null||delete d.onBehalfOfUser};
zU.prototype.getRequestConfig=function(a){var b={},c;if(((c=this.getExtension(a))==null?void 0:c.sessionIndex)!==void 0){var d;b={authStrategy:{sessionIndex:(d=this.getExtension(a))==null?void 0:d.sessionIndex}}}return b};var AU=function(){};
_.z(AU,MH);AU.prototype.JSC$11742_getRequest=function(a){var b=this.getExtension(a),c=a="";if(b==null?0:b.popup)a="true";if(b==null?0:b.disableSignout)c="true";b={};return{input:"/getAccountSwitcherEndpoint",requestShell:Sn("/getAccountSwitcherEndpoint","GET",(b["X-YouTube-Delegation-Context"]=_.Fi("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),b["X-YouTube-Account-Switcher-Popup"]=a,b["X-YouTube-Account-Switcher-Disable-Signout"]=c,b)),innerTubeRequest:{}}};
AU.prototype.getApiPaths=function(){return[]};
AU.prototype.getExtension=function(a){return _.y(a,_.iUa)};
AU.prototype.JSC$11742_buildRequest=function(){};var BU=function(){};
_.z(BU,MH);BU.prototype.JSC$11742_getRequest=function(a){var b="/cross_account_channel_transfer";(a=this.getExtension(a))&&(b=joa(b,{target_session:a.targetSessionIndex,source_rapt:a.sourceRapt,rapt:a.targetRapt}));return{input:b,requestShell:Sn(b,"GET"),innerTubeRequest:{}}};
BU.prototype.getApiPaths=function(){return[]};
BU.prototype.getExtension=function(a){return _.y(a,Tyb)};
BU.prototype.JSC$11742_buildRequest=function(){};var CU=function(){};
_.z(CU,MH);CU.prototype.getApiPaths=function(){return lHb};
CU.prototype.isNavigationCommand=function(){return!0};
CU.prototype.getExtension=function(a){return _.y(a,_.to)};
CU.prototype.JSC$11742_buildRequest=function(a){var b=_.yo().get("gsml","");b&&(a.safetyModeLockerObfuscatedGaiaId=b);a.userInterfaceTheme=_.Jq(!0);_.Kq()?a.deviceTheme="DEVICE_THEME_SELECTED":_.sJa()?a.deviceTheme="DEVICE_THEME_SUPPORTED":a.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var DU=function(){};
_.z(DU,MH);DU.prototype.getApiPaths=function(){return NGb};
DU.prototype.getExtension=function(a){return _.y(a,Uyb)};
DU.prototype.JSC$11742_buildRequest=function(a,b){if(b&&b.requestType&&(a.requestType=b.requestType,b.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||b.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var c=b.nextUrl;c&&(_.loa(c)||Ui(c))&&(a.nextNavendpoint={urlEndpoint:{url:c}})}b&&b.channelSwitcherQuery&&(a.channelSwitcherQuery=b.channelSwitcherQuery);b&&b.triggerChannelCreation&&(a.triggerChannelCreation=b.triggerChannelCreation);var d;if(b==null?0:(d=b.contentOwnerConfig)==
null?0:d.externalContentOwnerId)a.contentOwnerConfig=b.contentOwnerConfig;a.callCircumstance=b&&b.requestType&&b.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var e,g;b=a==null?void 0:(e=a.context)==null?void 0:(g=e.user)==null?void 0:g.onBehalfOfUser;if(b!==void 0){a.obfuscatedSelectedGaiaId=b;var k,m;a==null||(k=a.context)==null||(m=k.user)==null||delete m.onBehalfOfUser}var n,r;if(e=a==null?void 0:(n=a.context)==null?void 0:(r=n.user)==null?
void 0:r.serializedDelegationContext)a.selectedSerializedDelegationContext=e};var EU=function(){};
_.z(EU,MH);EU.prototype.getApiPaths=function(){return yHb};
EU.prototype.getExtension=function(a){return _.y(a,Pyb)};
EU.prototype.JSC$11742_buildRequest=function(a,b){b.profileOwnerExternalChannelId&&(a.profileOwnerExternalChannelId=b.profileOwnerExternalChannelId);b.profileCardContext&&(a.profileCardContext=b.profileCardContext)};var FU=function(){};
_.z(FU,MH);FU.prototype.getApiPaths=function(){return PGb};
FU.prototype.getExtension=function(a){return _.y(a,HDb)};
FU.prototype.JSC$11742_buildRequest=function(a,b){b.params&&(a.params=b.params)};var GU=function(){};
_.z(GU,MH);GU.prototype.getApiPaths=function(){return YGb};
GU.prototype.getExtension=function(a){return _.y(a,_.VCb)};
GU.prototype.JSC$11742_buildRequest=function(a,b){if(b=b.createBroadcastRequest)a.useMasks=b.useMasks,a.broadcastType=b.broadcastType,a.broadcastSource=b.broadcastSource,a.broadcastMetadata=b.broadcastMetadata,a.broadcastMetadataMask=b.broadcastMetadataMask,a.videoMetadata=b.videoMetadata,a.videoMetadataMask=b.videoMetadataMask,a.liveChatSettingsUpdate=b.liveChatSettingsUpdate,a.liveChatSettingsUpdateMask=b.liveChatSettingsUpdateMask,a.cloneVideoId=b.cloneVideoId,a.cloneWithOverrides=b.cloneWithOverrides,
a.targetEntity=b.targetEntity,a.scheduledRedirectMetadata=b.scheduledRedirectMetadata};var HU=function(){};
_.z(HU,MH);HU.prototype.getApiPaths=function(){return bHb};
HU.prototype.getExtension=function(a){return _.y(a,WBb)};
HU.prototype.JSC$11742_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.params&&(a.params=b.params);c.questionText&&(a.questionText=c.questionText);c.optionText&&c.optionText.length>0&&(a.optionText=c.optionText)};var IU=function(){};
_.z(IU,MH);IU.prototype.getApiPaths=function(){return eHb};
IU.prototype.getExtension=function(a){return _.y(a,UBb)};
IU.prototype.JSC$11742_buildRequest=function(a,b){b.params&&(a.params=b.params)};var JU=function(){};
_.z(JU,MH);JU.prototype.getApiPaths=function(){return qHb};
JU.prototype.getExtension=function(a){return _.y(a,QBb)};
JU.prototype.JSC$11742_buildRequest=function(a,b){b.params&&(a.params=b.params)};var KU=function(){};
_.z(KU,MH);KU.prototype.getApiPaths=function(){return sHb};
KU.prototype.getExtension=function(a){return _.y(a,RBb)};
KU.prototype.JSC$11742_buildRequest=function(a,b,c){b.params&&(a.params=b.params);b.continuation&&(a.continuation=b.continuation);c.currentPlayerState&&c.currentPlayerState.playerOffsetMs&&(a.currentPlayerState={playerOffsetMs:c.currentPlayerState.playerOffsetMs.toString()})};var LU=function(){};
_.z(LU,MH);LU.prototype.getApiPaths=function(){return tHb};
LU.prototype.getExtension=function(a){return _.y(a,PBb)};
LU.prototype.JSC$11742_buildRequest=function(a,b,c){b.params&&(a.params=b.params);c.continuation&&(a.continuation=c.continuation);"hidden"in c&&(a.webClientInfo={isDocumentHidden:c.hidden});c.isInvalidationTimeoutRequest&&(a.isInvalidationTimeoutRequest=c.isInvalidationTimeoutRequest);c.invalidationPayload&&(b=OBb(_.cb(Wi(c.invalidationPayload))),a.invalidationPayloadLastPublishAtUsec=Vx(b,2));c.reloadActionPanel&&(a.reloadActionPanel=c.reloadActionPanel);c.fullReload&&(a.fullReload=c.fullReload);
c.currentPlayerState&&(a.currentPlayerState=c.currentPlayerState)};var MU=function(){};
_.z(MU,MH);MU.prototype.getApiPaths=function(){return JHb};
MU.prototype.getExtension=function(a){return _.y(a,VBb)};
MU.prototype.JSC$11742_buildRequest=function(a,b){a.params=b.params};var NU=function(){};
_.z(NU,MH);NU.prototype.getApiPaths=function(){return rHb};
NU.prototype.getExtension=function(a){return _.y(a,XDb)};
NU.prototype.JSC$11742_buildRequest=function(a,b){b.params&&(a.params=b.params)};var OU=function(){};
_.z(OU,MH);OU.prototype.getApiPaths=function(){return uHb};
OU.prototype.getExtension=function(a){return _.y(a,YDb)};
OU.prototype.JSC$11742_buildRequest=function(a,b){b.params&&(a.params=b.params)};var PU=function(){};
_.z(PU,MH);PU.prototype.getApiPaths=function(){return KHb};
PU.prototype.getExtension=function(a){return _.y(a,XBb)};
PU.prototype.JSC$11742_buildRequest=function(a,b){b.params&&(a.params=b.params)};var QU=function(){};
_.z(QU,MH);QU.prototype.getApiPaths=function(){return MHb};
QU.prototype.getExtension=function(a){return _.y(a,YBb)};
QU.prototype.JSC$11742_buildRequest=function(a,b){b.params&&(a.params=b.params)};var RU=function(){};
_.z(RU,MH);RU.prototype.getApiPaths=function(){return VHb};
RU.prototype.getExtension=function(a){return _.y(a,KDb)};
RU.prototype.JSC$11742_buildRequest=function(a,b){b.params&&(a.params=b.params)};var SU=function(){};
_.z(SU,MH);SU.prototype.getApiPaths=function(){return bIb};
SU.prototype.getExtension=function(a){return _.y(a,_.ZBb)};
SU.prototype.JSC$11742_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.params&&(a.params=b.params);c.client_message_id&&(a.clientMessageId=c.client_message_id);c.recaptcha_token&&(a.recaptchaToken=c.recaptcha_token);c.rich_message&&c.rich_message.text_segments?(b=c.rich_message.text_segments.map(function(d){var e={};d.text&&(e.text=d.text);d.emoji_id&&(e.emojiId=d.emoji_id);return e}),a.richMessage={textSegments:b}):c.message&&(a.message=c.message);
c.currentPlayerState&&(a.currentPlayerState=c.currentPlayerState)};var TU=function(){};
_.z(TU,MH);TU.prototype.getApiPaths=function(){return cIb};
TU.prototype.getExtension=function(a){return _.y(a,$Bb)};
TU.prototype.JSC$11742_buildRequest=function(a,b){b.params&&(a.params=b.params)};var UU=function(){};
_.z(UU,MH);UU.prototype.getApiPaths=function(){return gIb};
UU.prototype.getExtension=function(a){return _.y(a,bCb)};
UU.prototype.JSC$11742_buildRequest=function(a,b,c){b.isUserInitiated&&(a.isUserInitiated=b.isUserInitiated);b.initiationSource&&(a.initiationSource=b.initiationSource);c.locationInfo&&(a.context.client.locationInfo=c.locationInfo)};var VU=function(){};
_.z(VU,MH);VU.prototype.getApiPaths=function(){return LHb};
VU.prototype.getExtension=function(a){return _.y(a,WCb)};
VU.prototype.JSC$11742_buildRequest=function(a,b,c){b.metadataUpdateRequest&&(b=b.metadataUpdateRequest,a.encryptedVideoId=b.encryptedVideoId,b.liveChat&&(b=b.liveChat,a.liveChat||(a.liveChat={}),b.performAsExternalChannelId&&(a.liveChat.performAsExternalChannelId=b.performAsExternalChannelId),b.source&&(a.liveChat.source=b.source)));var d;if(c==null?0:(d=c.liveChat)==null?0:d.liveChatSettings)a.liveChat||(a.liveChat={}),c=c.liveChat.liveChatSettings,a.liveChat.newLiveChatSettings=c,a.liveChat.newLiveChatSettingsMask||
(a.liveChat.newLiveChatSettingsMask={}),c.emojiReactionSet&&(a.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var WU=function(){};
_.z(WU,MH);WU.prototype.getApiPaths=function(){return pIb};
WU.prototype.getExtension=function(a){return _.y(a,_.dFb)};
WU.prototype.JSC$11742_buildRequest=function(a,b,c){c.continuation?a.continuation=c.continuation:b.videoId&&(a.videoId=b.videoId);c.clientParams&&(a.clientParams=c.clientParams)};var XU=function(){};
_.z(XU,MH);XU.prototype.getApiPaths=function(){return vHb};
XU.prototype.getExtension=function(a){return _.y(a,_.NE)};
XU.prototype.JSC$11742_buildRequest=function(a,b){a.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";a.fetchCommentsParams={};b.videoId&&(a.fetchCommentsParams.encryptedVideoId=b.videoId);b.postId&&(a.fetchCommentsParams.postId=b.postId);b.externalChannelId&&(a.fetchCommentsParams.externalChannelId=b.externalChannelId);b.linkedCommentId&&(a.fetchCommentsParams.linkedCommentId=b.linkedCommentId);(0,_.Cf.isEmpty)(a.fetchCommentsParams)&&delete a.fetchCommentsParams};var YU=function(){};
_.z(YU,MH);YU.prototype.getApiPaths=function(){return nw};
YU.prototype.JSC$11742_buildRequest=function(a){a.browseId="FEnotifications_inbox"};
YU.prototype.getExtension=function(a){return _.y(a,_.to)};var ZU=function(){};
_.z(ZU,MH);ZU.prototype.getApiPaths=function(){return vHb};
ZU.prototype.JSC$11742_buildRequest=function(a,b){b.signal==="GET_NOTIFICATIONS_MENU"&&(a.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");b.ctoken&&(a.ctoken=b.ctoken)};
var sgc=function(){};
_.z(sgc,ZU);sgc.prototype.getExtension=function(a){return _.y(a,_.to)};
var tgc=function(){};
_.z(tgc,ZU);tgc.prototype.getExtension=function(a){return _.y(a,GAb)};var $U=function(){};
_.z($U,MH);$U.prototype.getApiPaths=function(){return CHb};
$U.prototype.getExtension=function(a){return _.y(a,_.to)};
$U.prototype.JSC$11742_buildRequest=function(){};var aV=function(){};
_.z(aV,MH);aV.prototype.getApiPaths=function(){return NHb};
aV.prototype.getExtension=function(a){return _.y(a,ZEb)||void 0};
aV.prototype.JSC$11742_buildRequest=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};var bV=function(){};
_.z(bV,MH);bV.prototype.getApiPaths=function(){return OHb};
bV.prototype.getExtension=function(a){return _.y(a,IDb)};
bV.prototype.JSC$11742_buildRequest=function(a,b){b.undo&&(a.undo=b.undo);b.serializedOptOut&&(a.serializedOptOut=b.serializedOptOut);b.serializedRecordInteractionsRequest&&(a.serializedRecordInteractionsRequest=b.serializedRecordInteractionsRequest)};var cV=function(){};
_.z(cV,MH);cV.prototype.getApiPaths=function(){return RHb};
cV.prototype.getExtension=function(a){return _.y(a,JDb)};
cV.prototype.JSC$11742_buildRequest=function(a,b){b.serializedInteractionsRequest&&(a.serializedRecordNotificationInteractionsRequest=b.serializedInteractionsRequest)};var dV=function(){};
_.z(dV,MH);dV.prototype.getApiPaths=function(){return s4a};
dV.prototype.getExtension=function(a){return _.y(a,qUa)};
dV.prototype.JSC$11742_buildRequest=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?{}:c;b.videoId?a.videoId=b.videoId:b.playlistId&&(a.playlistId=b.playlistId);var d,e=(d=b.offlineWebClientEligibility)!=null?d:c.offlineWebClientEligibility;e&&(a.offlineWebClientEligibility=e);var g;if(d=(g=b.preferredFormatType)!=null?g:c.preferredFormatType)a.preferredFormatType=d;var k;if(g=(k=b.lastOfflineQualitySettingsSavedMs)!=null?k:c.lastOfflineQualitySettingsSavedMs)a.lastOfflineQualitySettingsSavedMs=g;
b.params&&(a.params=b.params)};var eV=function(){};
_.z(eV,MH);eV.prototype.getApiPaths=function(){return dF};
eV.prototype.getExtension=function(a){return _.y(a,_.Jt)};
eV.prototype.JSC$11742_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.token&&(a.continuation=b.token);c.formData&&(a.formData=c.formData)};var fV=function(){};
_.z(fV,MH);fV.prototype.getApiPaths=function(){return dF};
fV.prototype.getExtension=function(a){return _.y(a,QCb)};
fV.prototype.JSC$11742_buildRequest=function(a,b,c){c=c===void 0?{}:c;a.continuation=c.continuation};var gV=function(){};
_.z(gV,MH);gV.prototype.getApiPaths=function(){return dF};
gV.prototype.getExtension=function(a){return _.y(a,_.Tw)};
gV.prototype.JSC$11742_buildRequest=function(a,b){var c,d=b.panelIdentifier||((c=b.identifier)==null?void 0:c.tag);d&&(a.panelId=d);var e;if((e=b.globalConfiguration)==null?0:e.params){var g;a.params=(g=b.globalConfiguration)==null?void 0:g.params}};
_.Um.Object.defineProperties(gV.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hV=function(){};
_.z(hV,MH);hV.prototype.getApiPaths=function(){return dF};
hV.prototype.getExtension=function(a){return _.y(a,uFb)};
hV.prototype.JSC$11742_buildRequest=function(a,b){b.panelLoadingStrategy&&s5a(a,b.panelLoadingStrategy)};var iV=function(){};
_.z(iV,MH);iV.prototype.getApiPaths=function(){return dF};
iV.prototype.getExtension=function(a){return _.y(a,UDb)};
iV.prototype.JSC$11742_buildRequest=function(a,b){b.loadingStrategy&&s5a(a,b.loadingStrategy)};var jV=function(){};
_.z(jV,MH);jV.prototype.getApiPaths=function(){return dF};
jV.prototype.getExtension=function(a){return _.y(a,_.xu)};
jV.prototype.JSC$11742_buildRequest=function(a,b){b.panelLoadingStrategy&&s5a(a,b.panelLoadingStrategy)};var kV=function(){};
_.z(kV,MH);kV.prototype.getApiPaths=function(){return dF};
kV.prototype.getExtension=function(a){return _.y(a,VDb)};
kV.prototype.JSC$11742_buildRequest=function(a,b){var c,d=(c=b.contentSourcePanelIdentifier)==null?void 0:c.tag;d&&(a.panelId=d);var e;if((e=b.globalConfiguration)==null?0:e.params){var g;a.params=(g=b.globalConfiguration)==null?void 0:g.params}};var lV=function(){};
_.z(lV,MH);lV.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
lV.prototype.getExtension=function(a){return _.y(a,WDb)};
lV.prototype.JSC$11742_buildRequest=function(a,b){b.params&&(a.params=b.params)};var mV=function(){};
_.z(mV,MH);mV.prototype.getApiPaths=function(){return oIb};
mV.prototype.getExtension=function(a){return _.y(a,ZDb)};
mV.prototype.JSC$11742_buildRequest=function(a,b){b.externalChannelId&&(a.externalChannelId=b.externalChannelId);b.superChatAction&&(a.superChatAction=b.superChatAction);b.superStickersAction&&(a.superStickersAction=b.superStickersAction)};var nV=function(){};
_.z(nV,MH);nV.prototype.getApiPaths=function(){return mHb};
nV.prototype.getExtension=function(a){return _.y(a,PEb)||_.y(a,sUa)};
nV.prototype.JSC$11742_buildRequest=function(a,b){b.videoIds?a.videoIds=b.videoIds:b.videoId&&(a.videoIds=[b.videoId]);b.playlistId&&(a.playlistId=b.playlistId);b.params&&(a.params=b.params);a.excludeWatchLater=!1};var oV=function(){};
_.z(oV,MH);oV.prototype.getApiPaths=function(){return cHb};
oV.prototype.getExtension=function(a){return _.y(a,_.UE)};
oV.prototype.JSC$11742_buildRequest=function(a,b,c){c.create_playlist_title?a.title=c.create_playlist_title:b.title&&(a.title=b.title);if(c.create_playlist_privacy_status&&typeof c.create_playlist_privacy_status==="number"){a:{var d=c.create_playlist_privacy_status;if(d!==0){if(d===1){d="PUBLIC";break a}if(d===2){d="UNLISTED";break a}}d="PRIVATE"}a.privacyStatus=d}else b.privacyStatus&&(a.privacyStatus=b.privacyStatus);c.create_playlist_description&&(a.description=c.create_playlist_description);b.videoIds&&
(a.videoIds=b.videoIds);b.params&&(a.params=b.params);b.sourcePlaylistId&&(a.sourcePlaylistId=b.sourcePlaylistId)};var pV=function(){};
_.z(pV,MH);pV.prototype.getApiPaths=function(){return fHb};
pV.prototype.getExtension=function(a){return _.y(a,XEb)};
pV.prototype.JSC$11742_buildRequest=function(a,b){a.playlistId=b.playlistId};var qV=function(){};
_.z(qV,MH);qV.prototype.getApiPaths=function(){return wHb};
qV.prototype.getExtension=function(a){return _.y(a,CDb)};
qV.prototype.JSC$11742_buildRequest=function(a,b){b.playlistId&&(a.playlistId=b.playlistId);b.params&&(a.params=b.params)};var rV=function(){};
_.z(rV,MH);rV.prototype.getApiPaths=function(){return QHb};
rV.prototype.getExtension=function(a){return _.y(a,_.OE)||void 0};
rV.prototype.JSC$11742_buildRequest=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};var sV=function(){};
_.z(sV,MH);_.f=sV.prototype;_.f.getApiPaths=function(){return SHb};
_.f.getExtension=function(a){return _.y(a,_.uq)};
_.f.JSC$11742_buildRequest=function(a,b){b.videoId&&(a.playerRequest={videoId:b.videoId},b.playerParams&&(a.playerRequest.params=b.playerParams),b.racyCheckOk&&(a.playerRequest.racyCheckOk=!!b.racyCheckOk),b.contentCheckOk&&(a.playerRequest.contentCheckOk=!!b.contentCheckOk));b.params&&(a.params=b.params);b.inputType&&(a.inputType=b.inputType);a.disablePlayerResponse=!0};
_.f.getRequestConfig=function(a){var b;(a=this.JSC$11749_getStoreKey(a))&&(b={storeStrategy:{storeKey:a}});_.w("web_log_reels_ticks")&&(b=b||{},b.requestTick="r_wrs",b.responseTick="r_wrr");return b};
_.f.JSC$11749_getStoreKey=function(a){a=this.getExtension(a);if(_.w("shorts_controller_retrieve_seedless_sequence_v2")){if((a==null?void 0:a.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.Tn("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.w("web_prefetch_riw_for_next_video")||_.w("web_shorts_prefetch_service_enabled"))&&a!=null&&a.videoId){var b={videoId:a.videoId};a.params&&(b.params=a.params);return _.Tn("reel_item_watch",b)}};var tV=function(){};
_.z(tV,MH);_.f=tV.prototype;_.f.getApiPaths=function(){return THb};
_.f.getExtension=function(a){return _.y(a,_.uq)};
_.f.JSC$11742_buildRequest=function(a,b,c){c=c===void 0?{}:c;a.sequenceParams=b.sequenceParams;var d;((d=c)==null?0:d.contentPlaybackContext)&&_.w("web_shorts_prefetch_service_enabled")&&(a.playbackContext={contentPlaybackContext:c.contentPlaybackContext})};
_.f.JSC$11749_getStoreKey=function(a){if(_.w("shorts_controller_retrieve_seedless_sequence_v2")&&(a=this.getExtension(a),a==null?0:a.sequenceParams))return _.Tn("reel_watch_sequence",{sequenceParams:a.sequenceParams})};
_.f.getRequestConfig=function(a){a=this.JSC$11749_getStoreKey(a);var b;a&&(b={storeStrategy:{storeKey:a}});_.w("reel_watch_sequence_request_log_ticks")&&(b=b||{},b.requestTick="r_wsrs",b.responseTick="r_wsrr",b.processorTick="r_wsrp");return b};
var uV=function(){};
_.z(uV,MH);uV.prototype.getApiPaths=function(){return THb};
uV.prototype.getExtension=function(a){return _.y(a,_.Jt)};
uV.prototype.JSC$11742_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.token&&(a.continuation=b.token);var d;((d=c)==null?0:d.contentPlaybackContext)&&_.w("web_shorts_prefetch_service_enabled")&&(a.playbackContext={contentPlaybackContext:c.contentPlaybackContext})};
uV.prototype.getRequestConfig=function(a){a=this.JSC$11749_getStoreKey(a);var b;a&&(b={storeStrategy:{storeKey:a}});_.w("reel_watch_sequence_request_log_ticks")&&(b=b||{},b.requestTick="r_wsrs",b.responseTick="r_wsrr",b.processorTick="r_wsrp");return b};var vV=function(){};
_.z(vV,MH);vV.prototype.getApiPaths=function(){return jHb};
vV.prototype.getExtension=function(a){return _.y(a,_.fBb)};
vV.prototype.JSC$11742_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.flagAction&&(a.action=b.flagAction);b.flagRequestType&&(a.flagRequestType=b.flagRequestType);b.additionalDetailCheckboxChecked&&(a.additionalDetailCheckboxChecked=b.additionalDetailCheckboxChecked);b.legalCheckboxChecked&&(a.legalCheckboxChecked=b.legalCheckboxChecked);b={};c.flag_issue_type!==void 0&&(b.issue=c.flag_issue_type);c.flag_affiliation!==void 0&&(b.affiliation=c.flag_affiliation);c.flag_full_name&&(b.fullName=c.flag_full_name);
Object.keys(b).length&&(a.legalReportDetails=b);if(c.flag_description||c.text)a.userComments=c.flag_description||c.text;b={};c.minutes!==void 0&&c.seconds!==void 0&&(b.minutes=c.minutes,b.seconds=c.seconds);c.vss_id&&(b.vssId=c.vss_id);Object.keys(b).length&&(a.videoReportDetails=b);b={};c.video_ids&&(b.videoIds=c.video_ids);c.impersonated_channel_url&&(b.impersonatedChannelUrl=c.impersonated_channel_url);Object.keys(b).length&&(a.channelAbuseReportDetails=b)};
_.Um.Object.defineProperties(vV.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var wV=function(){};
_.z(wV,MH);wV.prototype.getApiPaths=function(){return pHb};
wV.prototype.getExtension=function(a){return _.y(a,GBb)};
wV.prototype.JSC$11742_buildRequest=function(a,b){b.blockedForKidsContent&&(a.blockedForKidsContent=b.blockedForKidsContent)};var xV=function(){};
_.z(xV,MH);xV.prototype.getApiPaths=function(){return WHb};
xV.prototype.getExtension=function(a){return _.y(a,rUa)};
xV.prototype.JSC$11742_buildRequest=function(a,b,c){a.params=b.params;c.impersonated_channel_url&&(a.impersonatedChannelUrl=c.impersonated_channel_url)};var yV=function(){};
_.z(yV,MH);yV.prototype.getApiPaths=function(){return HHb};
yV.prototype.getExtension=function(a){return _.y(a,_.HBb)};
yV.prototype.JSC$11742_buildRequest=function(a,b){b.items&&(a.items=b.items);b.kidGaiaId&&(a.kidGaiaId=b.kidGaiaId)};var zV=function(){};
_.z(zV,MH);zV.prototype.getApiPaths=function(){return nHb};
zV.prototype.getExtension=function(a){return _.y(a,_.NEb)};
zV.prototype.JSC$11742_buildRequest=function(a,b){b.params&&(a.params=b.params);b.targetId&&(a.targetId=b.targetId)};var AV=function(){};
_.z(AV,MH);AV.prototype.getApiPaths=function(){return $Hb};
AV.prototype.getExtension=function(a){return _.y(a,HAb)};
AV.prototype.JSC$11742_buildRequest=function(a,b){b.externalVideoId&&(a.externalVideoId=b.externalVideoId);b.query&&(a.query=b.query);b.sourceTimelines&&(a.sourceTimelines=b.sourceTimelines)};var BV=function(){};
_.z(BV,MH);BV.prototype.getApiPaths=function(){return aIb};
BV.prototype.getExtension=function(a){return _.y(a,_.Jt)||void 0};
BV.prototype.JSC$11742_buildRequest=function(a,b){b.token&&(a.continuation=b.token)};
_.ugc=function(){};
_.z(_.ugc,MH);_.f=_.ugc.prototype;_.f.getApiPaths=function(){return aIb};
_.f.getExtension=function(a){return _.y(a,_.rq)||void 0};
_.f.isNavigationCommand=function(){return!0};
_.f.JSC$11749_getStoreKey=function(a,b){b=b===void 0?{}:b;if(!b.disableCache&&(a=this.getExtension(a))&&a.query)return b={query:a.query},a.params&&(b.params=a.params),_.Tn("search",b)};
_.f.JSC$11742_buildRequest=function(a,b,c){b.query&&(a.query=b.query);b.params&&(a.params=b.params);if(!_.w("web_forward_suggest_stats_killswitch")){var d=_.y(b,vDb);d&&(a.suggestStats=d)}var e;!_.w("kevlar_searchbox_stats_killswitch")&&((e=c.tempData)==null?0:e.gs_l)&&!_.y(b,vDb)&&(a.webSearchboxStatsUrl="/search?oq="+(c.tempData.oq||"")+"&gs_l="+c.tempData.gs_l)};
_.f.getRequestConfig=function(a,b){b=b===void 0?{}:b;a=this.JSC$11749_getStoreKey(a,b);var c;a&&(c={storeStrategy:{storeKey:a}});_.w("web_log_search_ticks_ks")||(c=c||{},c.requestTick="sr_s",c.responseTick="sr_r");return c};var CV=function(){};
_.z(CV,MH);CV.prototype.getApiPaths=function(){return AHb};
CV.prototype.getExtension=function(a){return _.y(a,iFb)};
CV.prototype.JSC$11742_buildRequest=function(a,b){b.serializedGetSharingProviderDataParams&&(a.serializedGetSharingProviderDataParams=b.serializedGetSharingProviderDataParams)};var DV=function(){};
_.z(DV,MH);DV.prototype.getApiPaths=function(){return BHb};
DV.prototype.getExtension=function(a){return _.y(a,aBb)};
DV.prototype.JSC$11742_buildRequest=function(a,b){b.endpoint&&(a.endpoint=b.endpoint);b.action&&(a.action=b.action)};var EV=function(){};
_.z(EV,MH);EV.prototype.getApiPaths=function(){return gHb};
EV.prototype.getExtension=function(a){return _.y(a,YEb)};
EV.prototype.JSC$11742_buildRequest=function(a,b){a.videoId=b.videoId;b.scheduledRedirectMetadataSourceVideoId&&(a.scheduledRedirectMetadata={sourceVideoId:b.scheduledRedirectMetadataSourceVideoId})};var vgc=XMLHttpRequest.prototype.fetch,wgc=vgc&&vgc.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!_.Pj?!0:!1;var FV=function(a){this.JSC$15756_storeWithEntities=a};
_.z(FV,MH);_.f=FV.prototype;_.f.getApiPaths=function(){return PHb};
_.f.getExtension=function(a){return _.y(a,_.Un)||_.y(a,_.uq)||_.y(a,eEb)};
_.f.isNavigationCommand=function(){return!0};
_.f.JSC$11749_getStoreKey=function(a){if((_.w("kevlar_cache_on_ttl_player")||_.w("mweb_enable_shorts_innertube_player_prefetch")||_.w("mweb_use_new_history_manager")||_.w("web_shorts_prefetch_service_enabled"))&&(a=this.getExtension(a))&&a.videoId){var b={videoId:a.videoId};a.playlistId&&(b.playlistId=a.playlistId);a.playerParams&&(b.params=a.playerParams);return _.Tn("player",b)}};
_.f.JSC$11742_getClientScreen=function(a){var b;return((b=a.contentPlaybackContext)==null?void 0:b.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.f.JSC$11742_buildRequest=function(a,b,c){if(_.w("enable_interstitial_entity_check")){var d=this.JSC$15756_storeWithEntities;if(b.videoId)for(var e=_.h(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),g=e.next();!g.done;g=e.next()){g=g.value;var k;var m=void 0,n=void 0,r=b.videoId,t=g;(k=d)?(r=_.mp(r+t,"interstitialInteractionStateEntity"),k=(m=(n=_.np(k.getState().entities,"interstitialInteractionStateEntity",r))==null?void 0:n.primaryButtonClicked)!=null?m:!1):k=!1;if(k)switch(g){case "CONTENT_CHECK_REQUIRED":b.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":b.racyCheckOk=!0}}}b.videoId&&(a.videoId=b.videoId);b.playlistId&&(a.playlistId=b.playlistId);b.index!==void 0&&(a.playlistIndex=b.index+1);b.playerParams&&(a.params=b.playerParams);"startTimeSeconds"in b&&b.startTimeSeconds&&(_.w("enable_player_request_builder_start_time_floor")?a.startTimeSecs=Math.floor(b.startTimeSeconds):a.startTimeSecs=b.startTimeSeconds);c.contentPlaybackContext&&(a.playbackContext={contentPlaybackContext:c.contentPlaybackContext});c.prefetchPlaybackContext&&
(a.playbackContext=Object.assign({},a.playbackContext,{prefetchPlaybackContext:c.prefetchPlaybackContext}),a.context.request||(a.context.request={}),a.context.request.isPrefetch=!0);a.playbackContext||(a.playbackContext={});d=iLb();a.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!d,supportXhr:wgc};c.overrideMutedAtStart&&(a.overrideMutedAtStart=c.overrideMutedAtStart);a.racyCheckOk=!!b.racyCheckOk;a.contentCheckOk=!!b.contentCheckOk;!_.w("captions_prefs_killswitch")&&(c=(c=_.vG("yt-player-caption-language-preferences"))?
c:[],c==null?0:c.length)&&(a.captionParams={viewerSelectedCaptionLangs:c})};
_.f.getRequestConfig=function(a){a=this.JSC$11749_getStoreKey(a);var b;a&&(b={storeStrategy:{storeKey:a}});_.w("web_log_player_watch_next_ticks")&&(b=b||{},b.requestTick="ps_s",b.responseTick="ps_r");return b};
FV[iB]=[yw];var GV=function(){};
_.z(GV,MH);GV.prototype.getApiPaths=function(){return eIb};
GV.prototype.getExtension=function(a){return _.y(a,_.HFb)};
GV.prototype.JSC$11742_buildRequest=function(a,b){a.params=b.params;a.correctionText=b.correctionText};var HV=function(){};
_.z(HV,MH);HV.prototype.getApiPaths=function(){return q4a};
HV.prototype.getExtension=function(a){return _.y(a,_.IAb)};
HV.prototype.JSC$11742_buildRequest=function(a,b){b.params&&(a.params=b.params);a.searchQuery=b.searchQuery;a.languageCode=b.languageCode;a.kind=b.kind;a.name=b.name;a.externalVideoId=b.externalVideoId};var IV=function(){};
_.z(IV,MH);_.f=IV.prototype;_.f.getApiPaths=function(){return sIb};
_.f.getExtension=function(a){return _.y(a,_.Un)};
_.f.isNavigationCommand=function(){return!0};
_.f.JSC$11749_getStoreKey=function(a){if((a=this.getExtension(a))&&a.videoId){var b={videoId:a.videoId};a.playlistId&&(b.playlistId=a.playlistId);a.index&&(b.index=a.index);a.params&&(b.params=a.params);return _.Tn("next",b)}};
_.f.JSC$11742_getClientScreen=function(a){var b;return((b=a.contentPlaybackContext)==null?void 0:b.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.f.JSC$11742_buildRequest=function(a,b,c){b.videoId&&(a.videoId=b.videoId);b.playlistId&&(a.playlistId=b.playlistId);b.params&&(a.params=b.params);b.index!==void 0&&(a.playlistIndex=b.index);a.racyCheckOk=!(!c.racyCheckOk&&!b.racyCheckOk);a.contentCheckOk=!!b.contentCheckOk;c.contentPlaybackContext&&(a.autonavState=c.contentPlaybackContext.autonavState,a.playbackContext={vis:c.contentPlaybackContext.vis,lactMilliseconds:c.contentPlaybackContext.lactMilliseconds});c.prefetchPlaybackContext&&(a.context.request||
(a.context.request={}),a.context.request.isPrefetch=!0);_.w("captions_hats_killswitch")||(b=_.yo().getFlag(65),b=b!=null?!b:!1,c=!!_.vG("yt-player-sticky-caption"),a.captionsRequested=b&&c)};
_.f.getRequestConfig=function(a){a=this.JSC$11749_getStoreKey(a);var b;a&&(b={storeStrategy:{storeKey:a}});_.w("web_log_player_watch_next_ticks")&&(b=b||{},b.requestTick="wn_s",b.responseTick="wn_r");return b};
var JV=function(){};
_.z(JV,MH);JV.prototype.getApiPaths=function(){return sIb};
JV.prototype.getExtension=function(a){return _.y(a,_.Jt)};
JV.prototype.JSC$11742_buildRequest=function(a,b){b.token&&(a.continuation=b.token)};var KV=function(a,b){this.playerRequestBuilder=a;this.watchNextRequestBuilder=b};
_.z(KV,TQb);KV.prototype.getApiPaths=function(){return EHb};
KV.prototype.getExtension=function(a){return _.y(a,_.Un)};
KV.prototype.isNavigationCommand=function(){return!0};
KV.prototype.JSC$11742_buildRequest=function(a,b,c){a.playerRequest={};a.watchNextRequest={};this.playerRequestBuilder.JSC$11742_buildRequest(a.playerRequest,b,c);this.watchNextRequestBuilder.JSC$11742_buildRequest(a.watchNextRequest,b,c)};
KV[iB]=[FV,IV];var LV=function(){};
_.z(LV,MH);LV.prototype.getApiPaths=function(){return tIb};
LV.prototype.getExtension=function(a){return _.y(a,VFb)};
LV.prototype.JSC$11742_buildRequest=function(a,b){b.params&&(a.params=b.params)};var MV=function(a){this.JSC$15783_storeWithEntities=a};
_.z(MV,MH);MV.prototype.getApiPaths=function(){return WGb};
MV.prototype.getExtension=function(a){return _.y(a,WFb)||_.y(a,YFb)};
MV.prototype.JSC$11742_buildRequest=function(a,b,c){c.client_data&&(a.clientData=c.client_data);if(b.commerceActionConfig){var d=b.commerceActionConfig;b=d.actionId;d=d.commerceActionParams;b&&(a.actionId=b);d&&(a.commerceActionParams=d)}else{var e=b.actionId,g=b.commerceActionParams;c=b.entityKeys;e&&(a.actionId=e);g&&(a.commerceActionParams=g);var k;b=(d=this.JSC$15783_storeWithEntities)==null?void 0:(k=d.getState())==null?void 0:k.entities;if(c&&b){d=[];k=_.h(c);for(c=k.next();!c.done;c=k.next())if(e=
c.value,c=_.jp(e).entityType,e=_.np(b,c,e))g={},d.push((g[c]=e,g));a.entityMutationPayloads=d}}};
MV.prototype.getRequestConfig=function(a){var b,c=(b=_.y(a,WFb))==null?void 0:b.requestSequenceType;if(c&&a.clickTrackingParams&&c!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:a.clickTrackingParams,sequenceType:c}}};
MV[iB]=[yw];var NV=function(){};
_.z(NV,MH);NV.prototype.getApiPaths=function(){return uIb};
NV.prototype.getExtension=function(a){return _.y(a,_.pGb)};
NV.prototype.JSC$11742_buildRequest=function(a,b){b.feedbackData&&(a.feedbackData=b.feedbackData);b.params&&(a.itemParams=b.params)};
_.Um.Object.defineProperties(NV.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var OV=function(){};
_.z(OV,MH);OV.prototype.getApiPaths=function(){return vIb};
OV.prototype.getExtension=function(a){return _.y(a,qGb)};
OV.prototype.JSC$11742_buildRequest=function(a,b,c){c.payments_payload&&(a.paymentsPayload=c.payments_payload);c.offer_params&&(a.offerParams=c.offer_params);b.transactionParams&&(a.transactionParams=b.transactionParams)};var PV=function(){};
_.z(PV,MH);PV.prototype.getApiPaths=function(){return wIb};
PV.prototype.getExtension=function(a){return _.y(a,_.rGb)};
PV.prototype.JSC$11742_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.buybucketParams&&(a.buybucketData={params:b.buybucketParams},b.stickerParams?a.buybucketData.stickerParams=b.stickerParams:(c.rich_chat_message?a.buybucketData.richChatMessage=c.rich_chat_message:c.chat_message_text&&(a.buybucketData.chatMessageText=c.chat_message_text),c.purchase_price_micros&&(a.buybucketData.purchasePriceMicros=c.purchase_price_micros.toString())));b.donationAmountMicros&&(a.tipAmountMicros=b.donationAmountMicros,
b.tipParams&&(a.tipParams=b.tipParams));b.offerParams&&(a.offerParams=b.offerParams);b.productData&&(a.productData=b.productData);b.transactionParams&&(a.transactionParams=b.transactionParams)};var QV=function(){};
_.z(QV,MH);QV.prototype.getApiPaths=function(){return xIb};
QV.prototype.getExtension=function(a){return _.y(a,uGb)};
QV.prototype.JSC$11742_buildRequest=function(a,b){b.updateFopParams&&(a.updateFopParams=b.updateFopParams)};var RV=function(){};
_.z(RV,MH);RV.prototype.getApiPaths=function(){return yIb};
RV.prototype.getExtension=function(a){return _.y(a,_.tv)};
RV.prototype.JSC$11742_buildRequest=function(a,b){b.couponCode&&(a.couponCode=b.couponCode);b.params&&(a.itemParams=b.params)};var SV=function(){};
_.z(SV,MH);SV.prototype.getApiPaths=function(){return zIb};
SV.prototype.getExtension=function(a){return _.y(a,_.XFb)};
SV.prototype.JSC$11742_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.params&&(a.params=b.params);c.ctk&&(a.clientToken=c.ctk)};var TV=function(a){this.JSC$15818_storeWithEntities=a};
_.z(TV,MH);TV.prototype.getApiPaths=function(){return AIb};
TV.prototype.getExtension=function(a){return _.y(a,_.WE)};
TV.prototype.JSC$11742_buildRequest=function(a,b,c){c.purchase_price_micros&&(a.productData={pdgData:{purchasePriceMicros:c.purchase_price_micros.toString()}},c.rich_chat_message&&(a.productData.pdgData.richChatMessage=c.rich_chat_message),c.currency_code&&(a.productData.pdgData.currencyCode=c.currency_code));b.transactionParams&&(a.transactionParams=b.transactionParams);b.clientLocationContext&&(a.clientLocationContext=b.clientLocationContext);c.payments_payload&&(a.paymentsPayload=c.payments_payload);
c.funds_guarantee_callback_client_data&&(a.fundsGuaranteeCallbackClientData=c.funds_guarantee_callback_client_data);var d,e;c=(d=this.JSC$15818_storeWithEntities)==null?void 0:(e=d.getState())==null?void 0:e.entities;if(b.entityKeys&&c){d=[];b=_.h(b.entityKeys);for(e=b.next();!e.done;e=b.next()){var g=e.value;e=_.jp(g).entityType;if(g=_.np(c,e,g)){var k={};d.push((k[e]=g,k))}}a.entityMutationPayloads=d}};
TV[iB]=[yw];var UV=function(){};
_.z(UV,MH);UV.prototype.getApiPaths=function(){return BIb};
UV.prototype.getExtension=function(a){return _.y(a,sGb)};
UV.prototype.JSC$11742_buildRequest=function(a,b,c){c=c===void 0?{}:c;c.backend_analytics&&(a.serializedBackendAnalyticsEvent=c.backend_analytics);b.offerParams&&(a.offerParams=b.offerParams)};var VV=function(){};
_.z(VV,MH);VV.prototype.getApiPaths=function(){return yIb};
VV.prototype.getExtension=function(a){return _.y(a,o0a)};
VV.prototype.JSC$11742_buildRequest=function(a,b){b.params&&(a.itemParams=b.params)};var WV=function(){};
_.z(WV,MH);WV.prototype.getApiPaths=function(){return CIb};
WV.prototype.getExtension=function(a){return _.y(a,_.cGb)};
WV.prototype.JSC$11742_buildRequest=function(a,b,c){c.resume_time_ms&&(a.resumeTimeMs=c.resume_time_ms);b.pauseParams&&(a.pauseParams=b.pauseParams)};var XV=function(){};
_.z(XV,MH);XV.prototype.getApiPaths=function(){return DIb};
XV.prototype.getExtension=function(a){return _.y(a,_.tGb)};
XV.prototype.JSC$11742_buildRequest=function(a,b,c){c=c===void 0?{}:c;c.c&&(a.redeemCode=c.c);c.rd&&(a.riskData=c.rd);c.ctk&&(a.clientToken=c.ctk)};var YV=function(){};
_.z(YV,MH);YV.prototype.getApiPaths=function(){return EIb};
YV.prototype.getExtension=function(a){return _.y(a,_.dGb)};
YV.prototype.JSC$11742_buildRequest=function(a,b){b.resumeParams&&(a.resumeParams=b.resumeParams)};var ZV=function(a,b){this.clientName=a;this.defaultExpirationDelayMs=b};
ZV.prototype.put=function(a,b){var c=this,d;return _.l(function(e){d=Object.assign({},b.data);d.key=a;d.clientName=c.clientName;d.expireTimestampMs===void 0&&(d.expireTimestampMs=(Math.round((0,_.Uj)())+c.defaultExpirationDelayMs).toString());return e.return(c.putInternal(a,d))})};
ZV[iB]=[MS,Hfc];var xgc=function(){ZV.apply(this,arguments);this.JSC$15848_responseStore=new Map};
_.z(xgc,ZV);_.f=xgc.prototype;_.f.get=function(a){var b=this;return _.l(function(c){return c.return(tJ(b,a))})};
_.f.putInternal=function(a,b){var c=this,d,e,g;return _.l(function(k){d=c.defaultExpirationDelayMs;b.expireTimestampMs&&(d=Number(b.expireTimestampMs)-Math.round((0,_.Uj)()),e=_.$i("mweb_override_response_store_expiration_ms"),e>0&&e<d&&(d=e));g=setTimeout(function(){c.remove(a)},d);
c.JSC$15848_responseStore.set(a,{entryData:b,timer:g});_.ue(k)})};
_.f.remove=function(a){var b=this;return _.l(function(c){ygc(b,a);_.ue(c)})};
_.f.removeAll=function(){var a=this;return _.l(function(b){a.JSC$15848_responseStore.forEach(function(c){clearTimeout(c.timer)});
a.JSC$15848_responseStore.clear();_.ue(b)})};
_.f.has=function(a){return!!this.JSC$15848_responseStore.get(a)};
_.f.getKeys=function(){return this.JSC$15848_responseStore.keys()};
var tJ=function(a,b){if(a=a.JSC$15848_responseStore.get(b))return new _.sJ(a.entryData)},ygc=function(a,b){var c=a.JSC$15848_responseStore.get(b);
c&&(clearTimeout(c.timer),a.JSC$15848_responseStore.delete(b))};var t5a;var w5a=function(a,b,c){ZV.call(this,a,b);this.token=c};
_.z(w5a,ZV);_.f=w5a.prototype;_.f.get=function(a){var b=this,c,d;return _.l(function(e){return e.nextAddress==1?_.p(e,v5a(b.token),2):e.nextAddress!=3?(c=e.yieldResult,_.p(e,c.get("ResponseStore",[a,b.clientName]),3)):(d=e.yieldResult)?e.return(new _.sJ(d)):e.return(void 0)})};
_.f.putInternal=function(a,b){var c=this,d;return _.l(function(e){if(e.nextAddress==1)return _.p(e,v5a(c.token),2);d=e.yieldResult;return _.p(e,d.put("ResponseStore",b),0)})};
_.f.remove=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,v5a(b.token),2);c=d.yieldResult;return d.return(c.delete("ResponseStore",[a,b.clientName]))})};
_.f.removeAll=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,v5a(a.token),2);b=c.yieldResult;return _.p(c,Nmb(b,IDBKeyRange.only(a.clientName)),0)})};
_.f.has=function(){throw Error("Yi");};_.$V=new _.jB("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var zgc=function(a){var b;this.stateTagsData=(b=a.responseContext)==null?void 0:b.stateTags},Agc=function(a){var b;
return((b=a.stateTagsData)==null?void 0:b.stateTagsModified)||[]};var Bgc;Bgc=function(a){this.JSC$15861_responseStore=a};
_.dx=function(a,b,c){if(!_.w("state_tags_killswitch")){var d=new zgc(b);if(Agc(d).length>0){var e=a.JSC$15861_responseStore.getKeys();e=_.h(e);for(var g=e.next();!g.done;g=e.next()){g=g.value;var k=tJ(a.JSC$15861_responseStore,g);if(k){var m=_.ww(k);a:{var n=void 0;k=Agc(d);m=((n=(new zgc(m)).stateTagsData)==null?void 0:n.relevantStateTags)||[];n=_.h(m);for(m=n.next();!m.done;m=n.next())if(m=m.value,m.stateTag!=null&&k.includes(m.stateTag)&&m.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){k=
!0;break a}k=!1}k&&ygc(a.JSC$15861_responseStore,g)}}}}var r;d=(r=b.responseContext)==null?void 0:r.maxAgeSeconds;_.w("web_prefetch_riw_for_next_video")&&!d&&b.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(d=3600);c&&d&&Number(d)>0&&(b=hu(b,d),a.JSC$15861_responseStore.put(c,new _.sJ(b)))};
Bgc.prototype.handleResponse=function(a,b){if(!b)throw Error("Zi");var c,d;b=(c=b.config)==null?void 0:(d=c.storeStrategy)==null?void 0:d.storeKey;_.dx(this,a,b)};
Bgc[iB]=[_.rJ];_.e8a=new _.jB("STORE_RESPONSE_PROCESSOR_TOKEN");var Cgc=function(a){this.JSC$15864_responseStore=a};
Cgc.prototype.handleResponse=function(a,b){if(b.input.match(_.Zp(THb))){var c;if(a==null?0:(c=a.entries)==null?0:c.length)for(a=_.h(a.entries),b=a.next();!b.done;b=a.next()){c=b.value.command;var d=void 0;b=(d=_.y(c,_.uq))==null?void 0:d.unserializedPrefetchData;if(!c||!b)break;d=(new sV).JSC$11749_getStoreKey(c);var e=_.y(b,xEb),g=void 0,k=void 0,m=void 0,n=_.$i("web_shorts_prefetch_service_ttl_seconds")>0?_.$i("web_shorts_prefetch_service_ttl_seconds"):Number((m=(g=e)==null?void 0:(k=g.responseContext)==
null?void 0:k.maxAgeSeconds)!=null?m:3600);d&&n>0&&(e=hu(e,n),this.JSC$15864_responseStore.put(d,new _.sJ(e)));c=(new FV).JSC$11749_getStoreKey(c);b=_.y(b,hEb);g=e=d=void 0;k=_.$i("web_shorts_prefetch_service_ttl_seconds")>0?_.$i("web_shorts_prefetch_service_ttl_seconds"):Number((g=(d=b)==null?void 0:(e=d.responseContext)==null?void 0:e.maxAgeSeconds)!=null?g:3600);c&&k>0&&(b=hu(b,k),this.JSC$15864_responseStore.put(c,new _.sJ(b)))}}};
Cgc[iB]=[_.rJ];var aW=function(){this.scheduler=_.Qw()},Dgc;
aW.prototype.pause=function(){throw Error("$i");};
aW.prototype.resume=function(){throw Error("$i");};
aW.prototype.queue=function(a){var b=this,c=_.St(),d=_.sl(this.scheduler,function(){try{var e;if(_.gs.instance)var g=_.gs.instance;else{var k=new _.qj("Error: Unexpected uninitialized CommandHandler.");_.Bl(k);g=void 0}(e=g)==null||e.resolveCommand(a.command);c.resolve()}catch(m){c.reject(m)}});
c.promise.thenCatch(function(e){e instanceof _.Nn&&b.scheduler.cancelJob(d)});
return c.promise};
aW.prototype.queueAll=function(a){var b=new Map;a=_.h(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.set(c.id,this.queue(c));return b};var Fgc=function(a,b){var c=this;this.taskModel=a;this.onTaskCancelledCallback=b;this.resolver=_.St();a=a.proto.prefetchConfig;if(!a)throw Error("aj");if(!a.prefetchAction)throw Error("bj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(d){d instanceof _.Nn&&(Egc(c,c.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),c.onTaskCancelledCallback(c.taskModel.id,c.jobId),c.tick("pcc"));
throw d;});
this.timerName=this.taskModel.id;_.Ko(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},Ggc=function(a){switch(a.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},Egc=function(a,b){_.Jo({prefetchInfo:{cancellationReason:b}},a.timerName)};
Fgc.prototype.tick=function(a){_.Lo(a,void 0,this.timerName)};var cW=function(){var a=this;this.scheduler=_.Qw();this.maxInflightTasks=_.$i("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.$i("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new gtb;this.onTaskCancelled=function(b,c){c&&a.scheduler.cancelJob(c);Hgc(a,b);bW(a,3)}},Igc=function(){cW.instance||(cW.instance=new cW);
return cW.instance};
cW.prototype.pause=function(){this.prefetchCoordinatorState=0};
cW.prototype.resume=function(){bW(this,0)};
cW.prototype.queue=function(a){a=Jgc(this,a);bW(this,1);return a};
cW.prototype.queueAll=function(a){var b=new Map;a=_.h(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.set(c.id,Jgc(this,c));bW(this,1);return b};
var Jgc=function(a,b){var c=a.allPrefetchTasks.get(b.id);if(c)return c.cancellablePromise;try{var d=new Fgc(b,a.onTaskCancelled)}catch(g){return _.On(g)}c=d;c.tick("pcq");var e={prefetchInfo:{taskId:c.taskModel.id,isPrefetch:!0,fetchAction:c.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:c.taskModel.command.clickTrackingParams}};c.taskModel.csn&&(e.clientScreenNonce=c.taskModel.csn);_.Jo(e,c.timerName);a.allPrefetchTasks.set(b.id,d);a.drainingHeap.insert(-Ggc(d),d);return d.cancellablePromise},
bW=function(a,b){a.prefetchCoordinatorState===b&&(a.prefetchCoordinatorState=2,Kgc(a))},Kgc=function(a){for(var b={};a.prefetchCoordinatorState!==0;b={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(a.inflightPrefetchTasks.size>=a.maxInflightTasks){a.prefetchCoordinatorState=3;break}b.prefetchTask$jscomp$1=a.drainingHeap.remove();if(!b.prefetchTask$jscomp$1){a.prefetchCoordinatorState=1;break}b.taskId$jscomp$3=b.prefetchTask$jscomp$1.taskModel.id;if(a.allPrefetchTasks.has(b.taskId$jscomp$3)){var c=-1;a.coordinatorTimeoutMs>0&&(c=_.sl(a.scheduler,function(d){return function(){dW(a,d.taskId$jscomp$3,Error("cj"))}}(b),a.coordinatorTimeoutMs));
a.inflightPrefetchTasks.set(b.taskId$jscomp$3,c);if(!a.JSC$15880_commandHandler){if(!_.gs.instance){dW(a,b.taskId$jscomp$3,Error("dj"));continue}a.JSC$15880_commandHandler=_.gs.instance}a:switch(b.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":c=1;break a;default:c=0}b.prefetchTask$jscomp$1.jobId=a.scheduler.addJob(function(d){return function(){d.prefetchTask$jscomp$1.tick("pcr");try{a.JSC$15880_commandHandler.resolveCommand(d.prefetchTask$jscomp$1.taskModel.command)||
dW(a,d.taskId$jscomp$3,Error("ej"))}catch(e){dW(a,d.taskId$jscomp$3,e)}}}(b),c,0)}}},Lgc=function(a,b){(b=Hgc(a,b))!=null&&(b.resolver.resolve(),b.tick("pce"));
bW(a,3)},dW=function(a,b,c){(b=Hgc(a,b,c))!=null&&(b.resolver.reject(c),b.tick("pcc"),Egc(b,"CANCELLATION_REASON_ERROR"),Math.random()<=_.$i("prefetch_coordinator_error_logging_sampling_rate")&&(c=new _.qj("Prefetch Command failed.",b.taskModel.id,c.message),_.Bl(c)));
bW(a,3)},Hgc=function(a,b,c){var d=a.allPrefetchTasks.get(b);
d?((c=a.inflightPrefetchTasks.get(b))&&c!==-1&&a.scheduler.cancelJob(c),a.inflightPrefetchTasks.delete(b),a.allPrefetchTasks.delete(b)):_.Dl(new _.qj("Unexpected missing prefetch task when deleting task.",b,c==null?void 0:c.message));return d};var Mgc=function(a,b,c,d,e){this.id=a;this.triggerOn=b;this.cancelOn=c;this.command=d;this.proto=e};
_.Um.Object.defineProperties(Mgc.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var Ngc=function(){this.JSC$15885_prefetchCoordinator=Igc();Dgc||(Dgc=new aW);this.defaultCoordinator=Dgc},Ogc;
Ngc.getInstance=function(){Ogc||(Ogc=new Ngc);return Ogc};
Ngc.prototype.get=function(a){switch(a){case 0:return this.JSC$15885_prefetchCoordinator;default:return this.defaultCoordinator}};var eW=function(){this.coordinatorSupplier=Ngc.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},Rgc=function(a){var b=_.En()||void 0,c=Object.keys(Pgc)[0];
if(c){var d=a.taskIdByTriggerId.get(c);if(d!=null){a.taskIdByTriggerId.delete(c);c=[];d=_.h(d);for(var e=d.next();!e.done;e=d.next())if(e=a.tasks.get(e.value))b!=="UNDEFINED_CSN"&&(e.csn=b),c.push(e);c=z5a(c);b=[];c=_.h(c);for(d=c.next();!d.done;d=c.next()){e=_.h(d.value);d=e.next().value;e=e.next().value;d=a.coordinatorSupplier.get(d).queueAll(e);d=_.h(d);var g=d.next();for(e={};!g.done;e={taskId$jscomp$9:void 0},g=d.next()){var k=_.h(g.value);g=k.next().value;k=k.next().value;e.taskId$jscomp$9=
g;g=k;b.push(e.taskId$jscomp$9);a.queuedPromisesByTask.set(e.taskId$jscomp$9,_.Lz(g,function(m){return function(){Qgc(a,m.taskId$jscomp$9)}}(e)))}}}}else _.Dl(new _.qj("Unexpected malformed TriggerEvent."))};
eW.prototype.trigger=function(a,b){var c=this,d=this.tasks.get(a);if(!d||this.queuedPromisesByTask.has(a))return!1;Sgc(this,a,d.triggerOn);b!=="UNDEFINED_CSN"&&(d.csn=b);b=this.coordinatorSupplier.get(d.taskType).queue(d);this.queuedPromisesByTask.set(a,_.Lz(b,function(){Qgc(c,a)}));
return!0};
eW.prototype.cancel=function(a){var b=this.queuedPromisesByTask.get(a);if(b)b.cancel();else return Qgc(this,a)};
var Qgc=function(a,b){a.queuedPromisesByTask.delete(b);var c=a.tasks.get(b);if(!c)return!1;a.tasks.delete(b);Sgc(a,b,c.triggerOn);(c=y5a(c.cancelOn))&&(a=a.taskIdByCancelId.get(c))&&a.delete(b);return!0},Sgc=function(a,b,c){(c=Object.keys(c)[0])&&(a=a.taskIdByTriggerId.get(c))&&a.delete(b)};var Pgc={taskRegistered:{}},fW=function(){eW.instance||(eW.instance=new eW);this.JSC$15894_taskManager=eW.instance};
_.z(fW,SM);
fW.prototype.resolveCommand=function(a){var b=this,c,d;return _.l(function(e){c=_.y(a,tFb);if((d=c)==null||!d.tasks){var g=new _.qj("RegisterTasksCommand is missing tasks.");_.Bl(g);return e.return()}g=b.JSC$15894_taskManager;for(var k=_.h(c.tasks),m=k.next();!m.done;m=k.next())if(m=m.value,m=m.id&&m.triggerOn&&m.cancelOn&&m.command?new Mgc(m.id,m.triggerOn,m.cancelOn,m.command,m):void 0,m){var n=Object.keys(m.triggerOn)[0];if(n){var r=y5a(m.cancelOn);r?(g.tasks.set(m.id,m),g.taskIdByTriggerId.has(n)||g.taskIdByTriggerId.set(n,
new Set),g.taskIdByTriggerId.get(n).add(m.id),g.taskIdByCancelId.has(r)||g.taskIdByCancelId.set(r,new Set),g.taskIdByCancelId.get(r).add(m.id)):_.Dl(new _.qj("Unexpected malformed cancelOn field."))}else _.Dl(new _.qj("Unexpected malformed triggerOn field."))}else _.Dl(new _.qj("Unexpected malformed Task proto."));Rgc(b.JSC$15894_taskManager);_.ue(e)})};var Tgc={},Ugc=(Tgc.rendered={priority:0,callback:function(){var a={};a.numCpu=navigator.hardwareConcurrency;var b={};b.ramGb=_.ja.navigator.deviceMemory;var c={staticContext:{}};b.ramGb&&A5a(b.ramGb)&&(c.staticContext.memoryTotalKbytes=(b.ramGb*1048576).toString());a.numCpu&&A5a(a.numCpu)&&(c.staticContext.cpuCores=a.numCpu);if(_.w("web_enable_adaptive_appl_signal")){a={};b=_.Oo("rses_dpj");var d=_.Oo("rsef_dpj");b&&b>0&&d&&d>0&&(b=Math.ceil(d-b),b>0&&(a.loadLatency=b));a.loadLatency&&A5a(a.loadLatency)&&
(c.appL=a.loadLatency.toString())}_.xl("applicationStarted",c)}},Tgc);var Vgc=new _.jB("WINDOW_ON_ERROR"),Wgc=new _.jB("ERROR_WEIGHT_MAPS"),Xgc=new _.jB("INIT_ERROR");var Ygc={},Zgc=(Ygc.initialized={priority:10,callback:function(a){a.injector.resolve(Xgc)()}},Ygc);var $gc=function(){},ahc=function(){var a=_.Ji("meta_logger_impl");
a||(a=new $gc,_.Rj("meta_logger_impl",a));return a},bhc=function(){ahc().csiSubscriptionKey=dra("meta_logging_csi_event",function(a){var b=a.timerName;
if(a=a.timelineData){_.Ko(b,{startTime:a.startTime},b);a.infos&&_.Jo(a.infos,b);for(var c=_.h(Object.keys(a.ticks)),d=c.next();!d.done;d=c.next())d=d.value,_.Lo(d,a.ticks[d],b)}})};
$gc.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&gra(this.csiSubscriptionKey)};var chc={},dhc=(chc.initialized={priority:10,callback:function(){bhc()}},chc);var ehc=function(a,b){this.innertubeClientName=a;this.JSC$15910_prefCookie=b};
ehc.prototype.record=function(){if(_.w("web_li_record_binary_eval_tick")){var a=_.Oo("rsef_dpj");var b=_.Oo("rses_dpj");a=a!==void 0&&b!==void 0?Math.round(a-b):void 0;if(a!==void 0&&a>0){b=_.vG(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var c=this.poolSize;if(!(b.valuesSeen>=1E9)){if(b.valuesSample.length<c)b.valuesSample.push(a);else{var d=Math.floor(Math.random()*(b.valuesSeen+1));d<c&&(b.valuesSample[d]=a)}b.valuesSeen+=1}_.uG(this.storagePrefix+"-"+this.innertubeClientName,
b,2592E3);a=b.valuesSample;b=B5a(a);a=a.length<5?void 0:b<400?1:b<1700?2:3;a!==void 0&&(this.JSC$15910_prefCookie.set(this.cookiePrefix+this.innertubeClientName,a),this.JSC$15910_prefCookie.save())}}else _.wG(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$15910_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$15910_prefCookie.save()};
ehc[iB]=[MS,Ofc];var fhc=function(){ehc.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.z(fhc,ehc);var C5a=!1;var ghc=new _.jB("PAGE_LOAD_TIME_TOKEN");var hhc=new _.jB("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var gW=function(a,b){this.JSC$15933_storeWithEntities=a;this.JSC$15933_commandHandler=b;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
gW.prototype.start=function(){this.JSC$15933_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
gW.prototype.observeDownloadingEntities=function(){var a=_.GEa(this.JSC$15933_storeWithEntities.getState().entities).map(function(d){return HEa(d)});
if(a.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var b=_.dl({openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:R2a()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.ep(_.vo("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}});this.JSC$15933_commandHandler.resolveCommand(b)}this.downloadingEntities=a}else if(this.downloadingEntities.length){var c=FEa(this.JSC$15933_storeWithEntities.getState().entities).map(function(d){return HEa(d)});
this.downloadingEntities.filter(function(d){return c.includes(d)}).length&&(a=_.dl({openPopupAction:e5a()}),this.JSC$15933_commandHandler.resolveCommand(a));
this.downloadingEntities=[]}};
gW[iB]=[yw,_.Yi];var ihc;_.hW=function(a,b,c,d,e,g,k,m){this.JSC$15936_playerApiPromise=a;this.JSC$15936_commandHandler=b;this.JSC$15936_screenManager=c;this.offlineWebClientEligibility=d;this.JSC$15936_prefStorage=e;this.JSC$15936_actionRouter=g;this.entityTypeMap=k;this.JSC$15936_persistentStorePromiseAccessor=m;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
ihc=function(){var a=_.v().resolve(_.hW),b;_.l(function(c){if(c.nextAddress==1)return a.downloadFailureListenerBound?c.return():_.p(c,a.JSC$15936_playerApiPromise,2);b=c.yieldResult;b.addEventListener("onOfflineOperationFailure",function(d){if(d.failureReason&&d.entityKey&&d.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(d.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var e=_.jp(d.entityKey).entityId;e&&a.JSC$15936_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
e)}else if(_.w("kevlar_woffle")){e=a.JSC$15936_commandHandler;var g=e.resolveCommand;d=d.failureReason;var k=_.vo("TRANSFER_FAILED",void 0,"Download failed");d==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(k=_.vo("STORAGE_FULL",void 0,"Storage full"));g.call(e,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.ep(k),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
a.downloadFailureListenerBound=!0;_.ue(c)})};
_.hW.prototype.deleteVideo=function(a,b){var c=this,d,e,g;return _.l(function(k){if(k.nextAddress==1)return _.p(k,c.JSC$15936_playerApiPromise,2);d=k.yieldResult;g={offlineLoggingData:{offlineDeleteReason:(e=b)!=null?e:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.p(k,d.queueOfflineAction(a,c.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",g),0)})};
_.hW.prototype.pauseVideoDownload=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,b.JSC$15936_playerApiPromise,2);c=d.yieldResult;c.pauseVideoDownload(a);_.ue(d)})};
_.hW.prototype.resumeVideoDownload=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,b.JSC$15936_playerApiPromise,2);c=d.yieldResult;return _.p(d,c.resumeVideoDownload(a),0)})};
_.hW[iB]=[_.fu,_.Yi,_.AH,hhc,oT,eF,HJb,sS];var jhc=new _.jB("DOWNLOAD_STATE_STORE_TOKEN");var khc=function(a,b){this.JSC$15955_persistentStorePromiseAccessor=a;this.store=b;this.upliftCompletionResolver=new _.hq},nhc=function(){var a=_.v().resolve(lhc),b;
_.l(function(c){switch(c.nextAddress){case 1:if(a.upliftImplPromise)return c.return(a.upliftImplPromise);_.pe(c,2);a.upliftImplPromise=mhc(a);return _.p(c,a.upliftImplPromise,4);case 4:a.upliftCompletionResolver.resolve();_.Jj(c,3);break;case 2:throw b=_.te(c),a.upliftCompletionResolver.reject(b),b;case 3:return c.return(a.upliftImplPromise)}})},mhc=function(a){var b,c,d;
return _.l(function(e){switch(e.nextAddress){case 1:return _.Gi("LOGGED_IN")?_.p(e,a.JSC$15955_persistentStorePromiseAccessor(),2):e.return();case 2:b=e.yieldResult;if(!b)return _.Lo("vdeur"),e.return();_.Lo("vdeus");_.pe(e,3);return _.p(e,ohc(b),5);case 5:c=e.yieldResult;a.store.dispatch(qEa(c));b.observe(function(g){rEa(a.store,g)});
_.Jj(e,4);break;case 3:throw d=_.te(e),_.Lo("vdeur"),d;case 4:_.Lo("vdeuc"),_.ue(e)}})},ohc=function(a){var b;
return _.l(function(c){if(c.nextAddress==1)return _.p(c,K5a(a),2);b=c.yieldResult;return c.return(b.reduce(function(d,e){if(!e.data||!e.key||!e.entityType)return d;d[e.entityType]||(d[e.entityType]={});d[e.entityType][e.key]=e.data;return d},{}))})};
khc[iB]=[sS,_.LG];var lhc;lhc=new _.jB("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.iW=new _.jB("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var jW=function(a,b){this.JSC$15958_persistentStorePromiseAccessor=a;this.transportService=b};
jW.prototype.refresh=function(){var a=this,b,c,d,e;return _.l(function(g){if(g.nextAddress==1)return _.Gi("LOGGED_IN")?_.p(g,a.JSC$15958_persistentStorePromiseAccessor(),2):g.return();if(g.nextAddress!=3)return(b=g.yieldResult)?_.p(g,q5a(b),3):g.return();if((c=g.yieldResult)&&!(Number(c.data.refreshTimestampMs||0)<(0,_.Uj)()))return g.return();d={browseId:"SPaccount_downloads"};e=_.Zp(nw);_.RF(a.transportService,d,e).then(function(k){var m;if(b&&(k==null?void 0:(m=k.responseContext)==null?void 0:
m.maxAgeSeconds)!==0){var n;m=(k==null?void 0:(n=k.responseContext)==null?void 0:n.maxAgeSeconds)||604800;n=String(Math.floor((0,_.Uj)())+m*1E3);b.put("service:downloads_settings:fallback",new _.sJ({innertubeResponse:k,refreshTimestampMs:n}))}});
_.ue(g)})};
jW[iB]=[_.$V,_.yq];var kW=function(a,b){this.JSC$15962_playerPromise=a;this.store=b;this.started=!1};
kW.prototype.start=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return a.started?c.return():_.p(c,a.JSC$15962_playerPromise,2);b=c.yieldResult;b.addEventListener("onOrchestrationBecameLeader",a.updateIsLeader.bind(a,!0));b.addEventListener("onOrchestrationLostLeader",a.updateIsLeader.bind(a,!1));if(b.isOrchestrationLeader)a.updateIsLeader(b.isOrchestrationLeader());else{var d=new _.qj("Function isOrchestrationLeader is undefined",{"player.isReady":b.isReady(),"player.playVideo":b.playVideo?
"defined":"undefined"});_.Bl(d);a.updateIsLeader(!1)}a.started=!0;_.ue(c)})};
kW.prototype.updateIsLeader=function(a){this.store.dispatch(_.hp({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:a}}))};
kW[iB]=[_.fu,_.LG];var phc=function(a,b){this.networkStatusManager=a;this.JSC$15965_prefStoragePromise=b;this.redirectsToPreload=["https://youtube.com"]},qhc=function(){var a=_.v().resolve(phc),b,c,d,e,g,k;
_.l(function(m){switch(m.nextAddress){case 1:return _.p(m,a.JSC$15965_prefStoragePromise,2);case 2:b=m.yieldResult;if(!(c=b)){m.jumpTo(3);break}return _.p(m,b.get("yt-redirect-prefetch-id"),4);case 4:c=m.yieldResult;case 3:if(c||!a.networkStatusManager.isNetworkAvailable())return m.return();d={cache:"reload",redirect:"manual"};e=_.h(a.redirectsToPreload);g=e.next();case 5:if(g.done){if(!b){m.jumpTo(0);break}return _.p(m,b.set("yt-redirect-prefetch-id",!0,86400),0)}k=g.value;_.pe(m,8);return _.p(m,
_.ja.fetch(k,d),10);case 10:_.Jj(m,6);break;case 8:_.te(m);case 6:g=e.next(),m.jumpTo(5)}})};var lW=function(a){a?(this.container=a,this.containerWasInjected=!0):this.containerWasInjected=!1};
lW.prototype.openDialog=function(a,b,c){var d=this,e;return _.l(function(g){(e=d.container)==null||e.openDialog(a,b,c);_.ue(g)})};
lW.prototype.closeDialog=function(){var a=this,b;return _.l(function(c){(b=a.container)==null||b.closeDialog();_.ue(c)})};
lW.prototype.isDialogOpen=function(){var a=this,b,c;return _.l(function(d){return d.return((c=(b=a.container)==null?void 0:b.isDialogOpen())!=null?c:!1)})};
lW[iB]=[_.Xi(BXb)];_.rhc=new _.jB("POPUP_CONTROLLER_TOKEN");var shc=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
shc.prototype.registerPanel=function(a,b){if(a){this.panelMap.set(a,b);var c=this.pendingPanelResolvers.get(a);c&&(c.resolve(b),this.pendingPanelResolvers.delete(a))}};
shc.prototype.getPanel=function(a){var b=this,c;return _.l(function(d){return(c=b.panelMap.get(a))?d.return(c):d.return(thc(b,a))})};
var thc=function(a,b){var c,d;return _.l(function(e){if(c=a.pendingPanelResolvers.get(b))return e.return(c.promise);d=new _.hq;a.pendingPanelResolvers.set(b,d);return e.return(d.promise)})},uhc=function(a){shc.call(this);
var b=this;this.popupController=a;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return b.panelMap.size}}};
_.z(uhc,shc);_.f=uhc.prototype;_.f.getReloadContinuation=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,b.getPanel(a),2);c=d.yieldResult;return d.return(c.getReloadContinuation())})};
_.f.showPanel=function(a,b,c,d,e,g,k){var m=this,n,r,t,u;return _.l(function(x){if(x.nextAddress==1){k&&m.updatePanelContinuationDatas.set(a,k);if((n=c)==null?0:(r=n.engagementPanelPopupPresentationConfig)==null?0:r.popupType){t=c.engagementPanelPopupPresentationConfig.popupType;e===void 0&&(e=document.body);var A=x.return,C=m.popupController,F=C.openPopup;a:switch(t){case "PANEL_POPUP_TYPE_DIALOG":var J="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":J="DROPDOWN";break a;default:throw Error("gj`"+
t);}return A.call(x,F.call(C,a,b,J,e))}return _.p(x,m.getPanel(a),2)}u=x.yieldResult;(b||g)&&u.updatePanel(b,!1,d,g);u.showPanel(d);_.ue(x)})};
_.f.hidePanel=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,b.getPanel(a),2);c=d.yieldResult;c.hidePanel();b.popupController.closePopup(a);_.ue(d)})};
_.f.isVisible=function(a,b){var c=this,d;return _.l(function(e){if(e.nextAddress==1)return b&&!c.panelMap.has(a)?e.return(!1):_.p(e,c.getPanel(a),2);d=e.yieldResult;return e.return(d.isVisible())})};
_.f.updatePanel=function(a,b,c,d,e,g){c=c===void 0?!1:c;var k=this,m;return _.l(function(n){if(n.nextAddress==1){if(!b&&!e)return n.return();g&&k.updatePanelContinuationDatas.set(a,g);return _.p(n,k.getPanel(a),2)}m=n.yieldResult;m.updatePanel(b,c,d,e);_.ue(n)})};
_.f.registerPanelContent=function(a,b){a&&this.panelContentMap.set(a,b)};
_.f.getPanelContent=function(a){return this.panelContentMap.get(a)};
_.f.getUpdatePanelContinuationData=function(a){return this.updatePanelContinuationDatas.get(a)};
uhc[iB]=[_.rhc];var mW=function(a,b){this.innertubeTransportService=a;this.JSC$15981_screenManager=b},vhc=function(a){var b;
return!((b=a.panelLoadingStrategy)==null||!b.requestTemplate)};
mW.prototype.makeRequest=function(a){var b=this,c,d;return _.l(function(e){switch(e.nextAddress){case 1:if(!vhc(b)){e.jumpTo(2);break}_.pe(e,3);return _.p(e,_.Rt(b.innertubeTransportService,a),5);case 5:return c=e.yieldResult,c?e.return(c.content):(_.Bl(Error("hj")),e.return(void 0));case 3:d=_.te(e),_.Bl(d);case 2:return e.return(void 0)}})};
mW.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
mW.prototype.execute=function(a){var b=this,c,d,e,g,k,m,n,r,t,u;return _.l(function(x){if(x.nextAddress==1){c=a;d=c.data;e=c.fallbackVe;g=c.parentVe;k=c.createScreenConfig;m=c.renderFn;n=c.command;b.panelLoadingStrategy=d;var A,C,F=((A=b.panelLoadingStrategy)==null?0:A.screenVe)?(C=b.panelLoadingStrategy)==null?void 0:C.screenVe:e;F&&_.pF(b.JSC$15981_screenManager,F,g,k);return(r=b.getContent())?_.p(x,m(r),2):x.jumpTo(2)}return x.nextAddress!=4?vhc(b)?_.p(x,b.makeRequest(n),4):x.return():(u=t=x.yieldResult)?
_.p(x,m(u),0):x.return()})};
mW[iB]=[_.yq,_.AH];var nW=function(){};
nW.prototype.getContainer=function(){return _.eo()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
nW.prototype.openSheet=function(a,b){var c=this,d,e,g,k,m,n;return _.l(function(r){switch(r.nextAddress){case 1:return d={stack:[],error:void 0,hasError:!1},_.pe(r,2,3),e=_.Ug,_.p(r,c.isSheetOpen(),5);case 5:g=r.yieldResult;_.Pr(d,_.Yg(e));if(g&&!_.w("delay_sheet_open_killswitch")){if(b&&c.currentTarget===b)return(k=c.getContainer())==null||k.closeSheet(),r.return();c.pendingData={data:a,target:b};return r.return()}a.viewModel&&(a={viewModel:a.viewModel});(m=c.getContainer())==null||m.openSheet(a,
b);c.currentTarget=b;case 3:_.qe(r);_.Qr(d);_.se(r,0);break;case 2:n=_.te(r),d.error=n,d.hasError=!0,r.jumpTo(3)}})};
nW.prototype.closeSheet=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,(b=a.getContainer())==null?void 0:b.closeSheet(),2);if(c.nextAddress!=4)return a.currentTarget=void 0,!a.pendingData||_.w("delay_sheet_open_killswitch")?c.jumpTo(0):_.p(c,a.openSheet(a.pendingData.data,a.pendingData.target),4);a.pendingData=void 0;_.ue(c)})};
nW.prototype.isSheetOpen=function(){var a=this,b,c;return _.l(function(d){return d.return((c=(b=a.getContainer())==null?void 0:b.isSheetOpen())!=null?c:!1)})};var zw=window.documentPictureInPicture;var whc=new _.jB("APP_ROOT");var W5a=_.hx(["dark"]),X5a=_.hx(["system-icons"]),Y5a=_.hx(["typography"]),Z5a=_.hx(["lang"]),$5a=_.hx(["style"]),S5a=_.hx(["dir"]),T5a=_.hx(["rounded-container"]),U5a=_.hx(["style"]),b6a=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],oW=function(a){this.JSC$15993_clientRoot=a;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
oW.prototype.openWindow=function(a){var b=this,c,d;return _.l(function(e){if(e.nextAddress==1)return window.documentPictureInPicture&&_.Ea()&&!b.currentPipWindow?_.p(e,(c=zw?zw:null)==null?void 0:c.requestWindow(a),2):e.return(!1);if(e.nextAddress!=3){d=e.yieldResult;if(!d)return e.return(!1);d.addEventListener("pagehide",function(){xhc(b)});
d.addEventListener("resize",b.handlePipWindowResize);b.pipWindowResizeDelay=new _.Xm(function(){b.currentPipWindow&&_.lo(b.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.rf(b.currentPipWindow.innerWidth,b.currentPipWindow.innerHeight)])},d);
a6a(d);d6a(d);return _.p(e,R5a(d),3)}if(!O5a())return e.return(!1);b.currentPipWindow=d;b.JSC$15993_eventForwarder=c6a(d,b.JSC$15993_clientRoot);b.pipWindowResizeDelay.start();return e.return(!0)})};
oW.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var xhc=function(a){if(a.currentPipWindow){var b,c;(b=zw?zw:null)==null||(c=b.window)==null||c.close();a.currentPipWindow.removeEventListener("resize",a.handlePipWindowResize);var d;(d=a.pipWindowResizeDelay)==null||d.dispose();a.pipWindowResizeDelay=void 0;var e;(e=a.JSC$15993_eventForwarder)==null||e.stop();a.JSC$15993_eventForwarder=void 0;b=_.h(a.onCloseCallbacks);for(c=b.next();!c.done;c=b.next())c=c.value,c();a.onCloseCallbacks=[];a.currentPipWindow=null}};
oW.prototype.getWindow=function(){return this.currentPipWindow};
var yhc=function(a,b){var c;(c=a.onCloseCallbacks)==null||c.push(b)};
_.Um.Object.defineProperties(oW.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
oW[iB]=[whc];var zhc=new _.jB("PICTURE_IN_PICTURE_CONTROLLER");var e6a=function(a,b){this.lengthY=this.lengthX=0;this.lengthX=b.x-a.x;this.lengthY=b.y-a.y};var Ahc=function(){},Nfc=function(a,b){var c;
(c=a.headerElement)==null||c.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:b}))};var Bhc=function(){};
Bhc.prototype.openPopup=function(a,b,c,d){var e=this,g;return _.l(function(k){if(!e.container)return k.return();g={openPopupAction:{popup:b,popupType:c,uniqueId:a}};return k.return(e.container.handleOpenPopupAction(g,d))})};
Bhc.prototype.closePopup=function(a){this.container&&this.container.closePopup(a)};var Chc=function(){this.openTunnels=new Map},dVa=function(a,b,c){if(i6a(c)){c={handleEvent:function(k){b&&!b.closed&&typeof b.postMessage==="function"&&k&&k.origin&&k.source===b&&k.data&&k.data.action==="gcl_setup"&&b.postMessage({action:"gcl_transfer",
gadSource:2},k.origin)}};
for(var d=_.h(a.openTunnels),e=d.next();!e.done;e=d.next()){var g=_.h(e.value);e=g.next().value;g=g.next().value;if(e.closed)try{window.removeEventListener("message",g),a.openTunnels.delete(e)}catch(k){_.Bl(k)}}b&&a.openTunnels.size<15&&(a.openTunnels.set(b,c),window.addEventListener("message",c))}};var Dhc=function(){this.clientParams=new Map},Pdc=function(a){for(var b=_.h(a.clientParams.keys()),c=b.next();!c.done;c=b.next())c=c.value,c.startsWith("yt-mini-app-share")&&a.clientParams.delete(c)};var Ehc=function(a,b){_.vg.call(this);var c=this;this.shortsController=a;this.storeWithShorts=b;a=_.zF(this.storeWithShorts,_.Q0a,function(d){if(d){var e,g=(e=c.shortsController.getRoot())==null?void 0:e.getPlayer(),k;(e=(k=c.shortsController.alternativePlayerContainerElement)==null?void 0:k.getPlayerContainer())&&(g==null||g.appendTo(e))}else{var m;k=(m=c.shortsController.alternativePlayerContainerElement)==null?void 0:m.getPlayerContainer().querySelector("#player");e=c.shortsController.activeIndex;
(m=(g=c.shortsController.getRoot())==null?void 0:g.querySelector('ytd-reel-video-renderer[id="'+e+'"] #player-container'))&&(k==null||k.appendTo(m,void 0,!0))}});
this.addOnDisposeCallback(a)};
_.z(Ehc,_.vg);var pW=function(a,b,c,d,e){var g=this;this.storeWithShorts=a;this.ephemeralResponseStore=b;this.store=c;this.innertubeTransportService=d;this.innertubeTransportLoader=e;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.Ht(_.Ev);this.isShortsPipActive=_.Ht(_.Fv);this.nextReelVe=_.ku(56921);this.prevReelVe=_.ku(56922);this.backButtonVe=_.ku(22156);this.TEST_ONLY={getActiveModules:function(){return g.activeModules}}},ALb,BLb,Fhc;
pW.prototype.initOrDisposeActiveModules=function(a){a?this.activeModules.push(new Ehc(this,this.storeWithShorts)):(_.mia(this.activeModules),this.activeModules.length=0)};
pW.prototype.getRoot=function(){return this.rootElement};
pW.prototype.setActiveIndex=function(a){this.activeIndex=a};
_.uLb=function(a,b){var c,d,e,g,k,m;return _.l(function(n){switch(n.nextAddress){case 1:return c=new sV,(d=c.JSC$11749_getStoreKey(b))&&a.ephemeralResponseStore.has(d)?_.p(n,a.ephemeralResponseStore.get(d),7):_.p(n,Fhc(a,b),4);case 4:e=n.yieldResult;if(!d){n.jumpTo(3);break}g=hu(e,3600);return _.p(n,a.ephemeralResponseStore.put(d,new _.sJ(g)),3);case 7:e=(k=n.yieldResult)==null?void 0:_.ww(k);case 3:return e.replacementEndpoint&&(m=_.y(e.replacementEndpoint,_.uq))&&e.sequenceContinuation&&(m.sequenceParams=
e.sequenceContinuation),n.return(e)}})};
ALb=function(a,b){b=(new tV).JSC$11749_getStoreKey(b);return!!b&&a.ephemeralResponseStore.has(b)};
BLb=function(a,b,c){var d,e,g,k,m;_.l(function(n){if(n.nextAddress==1){d=new tV;e=d.JSC$11749_getStoreKey(b);if(!e)return n.return();if(c.reelWatchSequenceResponse)return g=hu(c.reelWatchSequenceResponse,3600),a.ephemeralResponseStore.put(e,new _.sJ(g)),n.jumpTo(0);if(!a.ephemeralResponseStore.has(e))return n.jumpTo(0);m=c;return _.p(n,a.ephemeralResponseStore.get(e),4)}m.reelWatchSequenceResponse=(k=n.yieldResult)==null?void 0:_.ww(k);_.ue(n)})};
Fhc=function(a,b){var c=c===void 0?{}:c;var d,e,g;return _.l(function(k){switch(k.nextAddress){case 1:if(a.innertubeTransportService){d=a.innertubeTransportService;k.jumpTo(2);break}if(!a.innertubeTransportLoader){_.Hi(Error("jj"));k.jumpTo(2);break}return _.p(k,a.innertubeTransportLoader(),4);case 4:d=k.yieldResult;case 2:return _.p(k,(e=d)==null?void 0:_.Rt(e,b,c),5);case 5:return g=k.yieldResult,k.return(g)}})};
_.Um.Object.defineProperties(pW.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
pW[iB]=[jLb,_.rJ,yw,_.Xi(_.yq),_.Xi(rKb)];_.Ghc=new _.jB("STORAGE_MANAGER_TOKEN");var Hhc=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},Ihc;
Hhc.prototype.enqueue=function(a,b){b===1?this.currentPersistentToast=a:this.queue.push(a);this.openToast()};
Hhc.prototype.openToast=function(){var a;(a=this.currentToast)!=null&&a.opened||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.Jhc=new _.jB("TOAST_MANAGER_TOKEN");var Khc;_.Lhc=_.Rr(function(a){return _.q("basic-content-view-model",{class:_.et("ytBasicContentViewModelHost",_.Nr(a.className))},_.q(_.qi,{cond:function(){return a.data().headline},
then:function(b){return _.q("div",{class:"ytBasicContentViewModelHeadline"},_.q(_.tt,{text:b}))}}),_.q(_.ri,{each:function(){return a.data().paragraphs||[]},
keyBy:"INDEX"},function(b){return _.q("div",{class:"ytBasicContentViewModelParagraph"},_.q(_.qi,{cond:function(){var c=b();return!!(c.header||c.customHeader||c.headline)},
then:function(){return _.q(Khc,{paragraph:b})}}),_.q(_.qi,{cond:function(){return b().asset||b().text},
then:function(){return _.q("div",{class:"ytBasicContentViewModelParagraphContent"},_.q(_.qi,{cond:function(){return b().asset},
then:function(c){return _.q("div",{class:"ytBasicContentViewModelParagraphAsset"},_.q(_.Hu,{data:c},{contentPreviewImageViewModel:_.wL}))}}),_.q(_.qi,{cond:function(){return b().text},
then:function(c){return _.q("div",{class:"ytBasicContentViewModelParagraphText"},_.q(_.tt,{text:c}))}}))}}))}))},"Gd");
Khc=_.Rr(function(a){var b=a.paragraph;return _.q(_.Wh,null,_.q(_.qi,{cond:function(){return b().headline},
then:function(c){return _.q(_.tt,{text:c,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.q(_.Hu,{data:function(){return b().header||b().customHeader}},{sectionHeaderViewModel:function(c){return _.q(_.fQ,{data:c.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Hd");var Nhc=_.Rr(function(a){return _.q("yt-expandable-metadata-header-view-model",{class:"ytExpandableMetadataHeaderViewModelHost"},_.q(_.qi,{cond:function(){return a.expanded()},
then:function(){return _.q("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader"},_.q("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.q(_.qi,{cond:function(){return a.data().expandedTitleImage},
then:function(b){return _.q("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.q(_.Ps,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:b}))}}),_.q("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.q("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.q(_.tt,{text:function(){return a.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.q(_.tt,{text:function(){return a.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.q(_.tt,{text:function(){return a.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.q("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.q(_.Hu,{data:function(){return a.data().infoButton}},{buttonViewModel:_.Qu}),_.q(_.Hu,{data:function(){return a.data().collapseButton}},{buttonViewModel:function(b){return _.q(_.Qu,{data:b.data,
onClick:function(){var c;(c=a.expandedCallback)==null||c.call(a,!1)}})}})))},
else:function(){return _.q(Mhc,Object.assign({},a))}}))},"Id"),Ohc=_.Rr(function(a){return _.q("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.q(_.qi,{cond:function(){return a.data().collapsedLabelImage},
then:function(b){return _.q("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.q(_.Ps,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:b,alt:""}))}}),_.q(_.tt,{text:function(){return a.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Jd"),Mhc=_.Rr(function(a){var b=_.lt(function(){var c;
return void((c=a.expandedCallback)==null?void 0:c.call(a,!0))});
return _.q("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader","on:click":b},_.q("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.q(_.qi,{cond:function(){return a.data().collapsedImage},
then:function(c){return _.q("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.q(_.Ps,{width:16,height:16,data:c,alt:""}))}}),_.q(_.qi,{cond:function(){return a.data().showLeadingCollapsedLabel},
then:function(){return _.q(Ohc,Object.assign({},a))}}),_.q("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.q(_.tt,{text:function(){return a.data().collapsedTitle}}))),_.q("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.q(_.qi,{cond:function(){return!a.data().showLeadingCollapsedLabel},
then:function(){return _.q(Ohc,Object.assign({},a))}}),_.q(_.Hu,{data:function(){return a.data().infoButton}},{buttonViewModel:_.Qu}),_.q(_.Hu,{data:function(){return a.data().expandButton}},{buttonViewModel:function(c){return _.q(_.Qu,{data:c.data,
onClick:function(){var d;(d=a.expandedCallback)==null||d.call(a,!0)}})}})))},"Kd");var Phc=_.Rr(function(a){var b=_.h(_.nt(function(){return a.data().initiallyExpanded})),c=b.next().value,d=b.next().value,e,g=(e=_.v().resolve(_.Xi(_.Ks)))==null?void 0:e(),k=function(){var m=a.data().colorData;
if(m)return g?m==null?void 0:m.darkColorPalette:m==null?void 0:m.lightColorPalette};
return _.q("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.ot({"background-color":function(){var m=k();return(m==null?0:m.section2Color)?_.Dq(m.section2Color):""}})},_.q(_.Hu,{data:function(){return a.data().header}},{expandableMetadataHeaderViewModel:function(m){return _.q(Nhc,{data:m.data,
expanded:function(){return!!c()},
expandedCallback:function(n){d(n)}})}}),_.q(_.qi,{cond:function(){return c()},
then:function(){return _.q("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.q(_.Hu,{data:function(){return a.data().expandedContent}},{horizontalShelfViewModel:function(m){return _.q(_.FQ,{data:m.data,
includeMargin:!0,forceNarrowLayout:!0,palette:k})},
videoSummaryContentViewModel:function(m){return _.q(N0b,{data:m.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(m){return _.q(zL,{data:m.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(m){return _.q(_.Lhc,{data:m.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.q(_.Hu,{data:function(){return a.data().expandedBottomButtons}},{buttonViewModel:function(m){return _.q("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.q(_.Qu,{data:m.data}))}}))}}))},"Ld");var Qhc=_.Rr(function(a){var b=a.text;var c=a.marqueeSpacing;var d=a.scrollDelay;var e=a.scrollDuration;var g=a.enableMarqueeScroll;a=_.h(_.ih(!1,void 0,"WyNYFf"));var k=a.next().value,m=a.next().value,n=_.h(_.ih(0,void 0,"OoTdhe"));a=n.next().value;var r=n.next().value,t=_.Pl();n=_.Pl();var u=_.Pl(),x=_.v().resolve(_.Ms);_.wh(function(){if(g()){var C=u.value.getBoundingClientRect().width,F=t.value.getBoundingClientRect().width;if(C>F){var J=(x==="ltr"?-1:1)*(C+(c?c():16));Promise.resolve().then(function(){m(!0);
r(J)})}}},"gFN33c");
var A={};return _.q("marquee-scroll",{class:"ytMarqueeScrollHost",el:t},_.q("div",{id:"marquee-scroll-inner-container",class:_.et("ytMarqueeScrollInnerContainer",(A.ytMarqueeScrollAnimationEnabled=function(){return k()},A)),
el:n,style:_.ot({gap:c?(0,_.CQ)(c):"16px","animation-duration":e?x$b(e):"16s","animation-delay":d?x$b(d):"3s","--marquee-translate":(0,_.CQ)(a)})},_.q("span",{el:u,dir:"auto"},_.q(_.tt,{text:b,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.q(_.qi,{cond:k,then:function(){return _.q("span",{"aria-hidden":"true",dir:"auto"},_.q(_.tt,{text:b,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Md");_.Rhc=_.Rr(function(a){var b=a.data;a=_.lt(function(){b().onTapCommand&&_.Gs(b().onTapCommand);return!1});
var c=_.Uu();return _.q("reel-sound-metadata-view-model",{class:"ytReelSoundMetadataViewModelHost","on:click":a,tabindex:0,role:"button","on:keydown":c},_.q("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.q(_.qi,{cond:function(){return b().musicIcon},
then:function(d){return _.q(_.Ps,{data:d,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.q("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.q(Qhc,{text:function(){return b().soundMetadata},
enableMarqueeScroll:function(){return!!b().enableMarqueeScroll}}))))},"Nd");var Shc,Thc,qW,Xhc,Zhc,Whc,bic,aic;Shc=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];Thc=_.$i("wil_icon_max_concurrent_fetches",Infinity);
qW=function(a,b,c){var d=this;this.iconSet=a;this.appDirection=b;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.ja.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.w("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.w("wil_icon_network_first");this.renderWhenIdle=_.w("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.w("wil_icon_load_immediately");this.isPurging=!1;a=function(){d.cacheStorageAvailable&&(d.cacheStorageAsync=_.ja.caches.open("yt-icons").then(function(g){return d.cacheStorageSync=g}).catch(function(){d.cacheStorageAvailable=!1}))};
c=(c==null?void 0:c())||{};c=_.h(Object.entries(c));for(b=c.next();!b.done;b=c.next()){var e=_.h(b.value);b=e.next().value;e=e.next().value;e=ii(e);Uhc(e);this.iconCache[b]=e.cloneNode(!0)}this.isPurging=Vhc(this);this.isPurging instanceof Promise?this.isPurging.then(a):a()};
_.GSa=function(a,b){var c=a.resolveIcon(b);return c?a.renderingMode===1?Whc(a,c,a.renderingMode):(b=a.iconCache[c.url])?(b=b.cloneNode(!0),Xhc(a,b),Whc(a,c,a.renderingMode,b)):_.Yhc(a,c).then(function(d){var e=d?0:1;Xhc(a,d);return Whc(a,c,e,d)}):(_.Cl(new _.qj("Icon not found",{iconShape:b})),function(){})};
Xhc=function(a,b){if(b){a.counter+=1;a="_yt"+a.counter;b=[b].concat(_.De(b.getElementsByTagName("*")));b=_.h(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.tagName==="style"&&c.textContent)c.textContent=Zhc(c.textContent,a,!0);else for(var d=_.h(c.attributes),e=d.next();!e.done;e=d.next()){e=e.value;e.name==="id"&&(e.value+=a);["mask","fill","clip-path"].includes(e.name)&&(e.value=Zhc(e.value,a));if(e.name==="style"){var g=c.style;try{g.cssText=Zhc(g.cssText,a,!0)}catch(t){var k=void 0,m=
void 0,n=void 0,r=void 0;rW({error:((k=t)==null?void 0:(n=(m=k).toString)==null?void 0:n.call(m))||"",el:c.outerHTML,style:!!g,cssText:(r=g)==null?void 0:r.cssText})}}e.name==="xlink:href"&&(e.value=e.value.replace(/#(.*)/,"#$1"+a))}}};
Zhc=function(a,b,c){var d=/url\(["']?#(.*?)["']?\)/;(c===void 0?0:c)&&(d=/url\(["']?#(.*?)["']?\)/g);return a.replace(d,"url(#$1"+b+")")};
Whc=function(a,b,c,d){return function(e,g){var k=Object.assign({},{iconColor:"currentcolor",iconWidth:b.size+"px",iconHeight:b.size+"px",iconDisplay:"block"},g);g=_.pg("DIV");var m=k.iconColor,n=k.iconFilter;k="width: "+k.iconWidth+"; height: "+k.iconHeight+"; display: "+k.iconDisplay+";";n&&(k+=" filter: "+n+";");c===0&&(k+=" fill: "+m+";");c===1&&(n=b.url,k+=" -webkit-mask: url("+n+") no-repeat center / cover; mask: url("+(n+") no-repeat center / cover; background-color: ")+m);b.allowMirroring&&
a.appDirection==="rtl"&&(k+=" transform: scale(-1, 1); transform-origin: center center;");g.setAttribute("style",k);c===0&&d&&g.appendChild(d);e.appendChild(g)}};
_.Yhc=function(a,b){var c,d,e;return _.l(function(g){c=function(k){return Qd(k)};
d=b.url;if(!$hc(d))throw Error("kj");e=aic(a,d);return g.return(e.then(function(k){return k.clone().text()}).then(function(k){var m=c(k);
k=b.size;var n=_.pg("DIV");_.$d(n,m);m=_.qg(n.firstElementChild!==void 0?n.firstElementChild:_.edb(n.firstChild,!0));k=Uhc(m,k);a.iconCache[d]=k.cloneNode(!0);delete a.responsePromises[d];return k}).catch(function(){}))})};
bic=function(a){var b,c=(b=a.requestAninmationFrameResolver)==null?void 0:b.promise;c||(a.requestAninmationFrameResolver=new _.hq,c=a.requestAninmationFrameResolver.promise,_.ja.requestAnimationFrame(function(){var d;(d=a.requestAninmationFrameResolver)==null||d.resolve();a.requestAninmationFrameResolver=null}));
return c};
aic=function(a,b){var c,d;return _.l(function(e){if(e.nextAddress==1)return a.waitForAnimationFrame?_.p(e,bic(a),2):e.jumpTo(2);c=a.responsePromises[b];c||(d=function(){var g,k,m;return _.l(function(n){switch(n.nextAddress){case 1:if(!a.cacheStorageAvailable){g=void 0;n.jumpTo(2);break}if(k=a.cacheStorageSync){n.jumpTo(3);break}return _.p(n,a.cacheStorageAsync,4);case 4:k=n.yieldResult;case 3:g=k;case 2:return m=g,a.isNetworkFirstStrategy?n.return(a.fetchAndUpdateCache(b,m).catch(a.getCacheStorageResponse.bind(a,
b,m))):n.return(a.getCacheStorageResponse(b,m).catch(a.fetchAndUpdateCache.bind(a,b,m)))}})},c=a.renderWhenIdle?new Promise(function(g,k){_.sl(_.zk,function(){d().then(g).catch(k)},10)}):d(),a.responsePromises[b]=c);
return e.return(c.catch(function(g){delete a.responsePromises[b];rW({error:(g==null?0:g.toString)?g.toString():"",url:b});throw g;}))})};
qW.prototype.fetchAndUpdateCache=function(a,b){var c=this;return _.l(function(d){return d.return(cic(c,a).then(function(e){dic(c,a,e,b);return e}))})};
var cic=function(a,b){var c;return _.l(function(d){if(a.numFetches<Thc)return a.numFetches+=1,d.return(eic(a,b).finally(function(){--a.numFetches;if(Object.keys(a.queuedResponseResolvers).length){var e=Object.keys(a.queuedResponseResolvers)[0],g=a.queuedResponseResolvers[e];delete a.queuedResponseResolvers[e];g.resolve(cic(a,e))}}));
c=new _.hq;a.queuedResponseResolvers[b]=c;return d.return(c.promise)})},eic=function(a,b,c){c=c===void 0?2:c;
var d;return _.l(function(e){d={credentials:"same-origin",priority:"low"};return e.return(_.ja.fetch(b,d).then(function(g){return g.ok?g:Promise.reject(Error("lj`"+g.status+"`"+g.statusText))}).catch(function(g){if(c>0)return eic(a,b,c-1);
throw g;}))})},dic=function(a,b,c,d){_.l(function(e){return d?e.return(new Promise(function(g){_.sl(_.zk,function(){var k,m;
return _.l(function(n){switch(n.nextAddress){case 1:if(!a.isNetworkFirstStrategy){k=void 0;n.jumpTo(2);break}return _.p(n,d.match(b).catch(function(){}),3);
case 3:k=n.yieldResult;case 2:if(m=k){n.jumpTo(4);break}return _.p(n,d.put(b,c.clone()).catch(function(r){rW({error:(r==null?0:r.toString)?r.toString():"",url:b})}),4);
case 4:g(),_.ue(n)}})},50)})):e.return()})};
qW.prototype.getCacheStorageResponse=function(a,b){return _.l(function(c){return b?c.return(b.match(a).then(function(d){return d&&d.ok?d:Promise.reject()})):c.return(Promise.reject())})};
var Uhc=function(a,b){b===void 0||a.getAttribute("viewBox")||a.setAttribute("viewBox","0 0 "+b+" "+b);a.setAttribute("focusable","false");a.setAttribute("aria-hidden","true");try{a.style.pointerEvents="none",a.style.display="inherit",a.style.width="100%",a.style.height="100%"}catch(e){var c;rW({error:((c=e)==null?0:c.toString)?e.toString():""});try{a.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(g){var d;rW({error:((d=g)==null?0:d.toString)?g.toString():
""})}}return a},$hc=function(a){for(var b=_.h(Shc),c=b.next();!c.done;c=b.next())if(a.startsWith(c.value)&&a.endsWith(".svg"))return!0;
return!1};
qW.prototype.resolveIcon=function(a){return this.iconSet.resolveIcon(a)};
var rW=function(a){_.Dl(new _.qj("Error in IconManager",a))},Vhc=function(a){if(_.w("wil_icons_cache_purge_killswitch"))return!1;
try{var b=_.ja.localStorage}catch(g){return!1}if(!b||!a.cacheStorageAvailable)return!1;var c=function(g){try{var k;(k=b)==null||k.setItem("yt-icons-last-purged",g.toString())}catch(n){var m;rW({error:((m=n)==null?0:m.toString)?n.toString():""})}},d=Number(b.getItem("yt-icons-last-purged"));
if(!d)return d=new Date,d=d.setDate(d.getDate()-Math.floor(Math.random()*90+1)),c(d),!1;if(function(g,k){g=new Date(g);k=new Date(k);return k.getMonth()-g.getMonth()+12*(k.getFullYear()-g.getFullYear())}(d,Date.now())<3)return!1;
try{return _.ja.caches.delete("yt-icons").then(function(g){g&&c(Date.now());return g}).catch(function(){return!1}).finally(function(){a.isPurging=!1})}catch(g){var e;
rW({error:((e=g)==null?0:e.toString)?g.toString():""});return!1}};
qW[iB]=[pfc,_.Ms,_.Xi(sfc)];_.sW=function(a,b){this.iconManager=a;this.iconsToFetch=b};
_.sW[iB]=[_.fs,_.Xi(rfc)];var fic=function(a,b,c){this.requestKey=a;this.oSc=b;this.sZb=c;this.lld=function(){return new XMLHttpRequest};
this.bbb=void 0;this.e3b=[]};
fic.prototype.getLatestChallengeResponse=function(){return this.sZb};
var Hgb=function(a,b,c){var d,e,g,k;return _.l(function(m){if(m.nextAddress==1){_.Ko("attestation_challenge_fetch");_.Lo("att_fs",void 0,"attestation_challenge_fetch");if(!a.bbb)throw new _.Nz(9,"Missing fetcher");return _.p(m,a.bbb(b,c),2)}d=m.yieldResult;g=(e=d)==null?void 0:e.bgChallenge;if(!g)throw new _.Nz(15,"Missing field");a.sZb=d;a.e3b.forEach(function(n){n(d)});
k=m4a(g);_.Lo("att_fc",void 0,"attestation_challenge_fetch");TCa("attestation_challenge_fetch");return m.return(k)})},dhb=function(a,b){var c,d,e,g,k;
return _.l(function(m){switch(m.nextAddress){case 1:c=new hg(100,3E5,.25,2),d=void 0;case 2:if(!(c.currBackoffCount_<10)){m.jumpTo(4);break}_.pe(m,5);if(!(c.currBackoffCount_>0)){m.jumpTo(7);break}return _.p(m,j6a(c.getValue()),7);case 7:return _.p(m,gic(a,b),9);case 9:return e=m.yieldResult,m.return(e);case 5:g=_.te(m);g instanceof _.Nz?d=g:(k=g instanceof Error?g.message:"Unknown",d=new _.Nz(9,k));Qeb(c);m.jumpTo(2);break;case 4:if(d)throw d;throw new _.Nz(9,"Unknown error");}})},gic=function(a,
b){b=wgb(xgb(new vgb,b),a.requestKey);
var c=new _.hq,d=a.lld();d.open("POST",a.oSc);d.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");d.setRequestHeader("Content-Type","application/json+protobuf");d.onload=function(){if(xoa(d)){var e=Dhb(d.responseText);c.resolve(e)}else c.reject(new _.Nz(_.Iia(cj(d)),d.statusText))};
d.onerror=function(){c.reject(new _.Nz(_.Iia(cj(d)),d.statusText))};
d.send(b.serialize());return c.promise};var iic=function(a){this.networkStatusManager=a;this.isDownloaded=r5a===void 0?function(){return!1}:r5a;
this.isReady=!1;this.dld=hic(this)},hic=function(a){var b;
return _.l(function(c){if(c.nextAddress==1)return _.p(c,oia(),2);if(c.nextAddress!=3)return b=c.yieldResult,_.p(c,eeb(b),3);a.qR=c.yieldResult;l6a(a.qR).then(function(){a.isReady=!0});
return c.return(a.qR)})},jic=function(a,b,c){a.qR?(a=a.qR.v8({ew:c,
tfb:!0,ufb:!0}),b.serviceIntegrityDimensions={poToken:a}):_.Bl(Error("mj"))};
iic.prototype.processContext=function(a){var b=this;if(!a.input.match(_.Zp(PHb)))return _.$E();var c=a.innerTubeRequest,d=c.videoId;return!d||this.isDownloaded(c)||this.networkStatusManager&&!this.qR&&!this.networkStatusManager.isNetworkAvailable()?_.$E():this.qR?this.isReady?(jic(this,c,d),_.$E()):new ZE(l6a(this.qR).then(function(){jic(b,c,d)})):new ZE(this.dld.then(function(e){return _.l(function(g){if(g.nextAddress==1)return _.p(g,l6a(e),2);
jic(b,c,d);_.ue(g)})}))};var kic=new _.jB("WEB_PO_CONTEXT_PROCESSOR");var lic=function(a,b){var c=this;this.kdb=0;var d;this.oCa=(d=b==null?void 0:b.oCa)!=null?d:window;this.networkStatusManagerPromise=b==null?void 0:b.networkStatusManagerPromise;var e;this.requestKey=(e=b==null?void 0:b.requestKey)!=null?e:_.aj("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var g;this.kgc=(g=b==null?void 0:b.kgc)!=null?g:function(n){return new Uz(n)};
var k;d=(k=b==null?void 0:b.yue)!=null?k:function(n,r,t){return new fic(n,r,t)};
this.bgChallenge=m4a(a.bgChallenge);this.ttlSeconds=n4a(lw(a.challenge||""));this.rJ=d(this.requestKey,_.w("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.ja.location.hostname)?"/api/jnn/v1/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",a);k6a(this.rJ);var m;this.b8b=(m=b==null?void 0:b.b8b)!=null?m:function(n){_.rs(c.oCa.document,"visibilitychange",function(){c.oCa.document.visibilityState===
"visible"&&n()})}},nic=function(a){if(!a.qc){var b={maxAttempts:5,
z7b:a.ttlSeconds*1E3};m6a(a.oCa);a.qc=a.kgc({rJ:a.rJ,u8:{disable:_.w("html5_web_po_disable_remote_logging"),ru:"aGIf",aKc:soa("html5_web_po_experiment_ids"),hYc:_.w("wpo_dis_lfdms")?0:1E3},mta:b,xRc:a.bgChallenge,o1c:n6a});a.kdb=Date.now();Cgb(a.qc,function(){a.kdb=Date.now()});
sia(a.qc,function(){return _.l(function(d){return d.return(mic(a))})});
var c=a.oXc.bind(a);a.networkStatusManagerPromise&&a.ttlSeconds>0&&a.networkStatusManagerPromise.then(function(d){d.listen("publicytnetworkstatus-online",c)});
a.b8b(c)}};
lic.prototype.oXc=function(){if(Date.now()>this.kdb+this.ttlSeconds*1E3){var a;(a=this.qc)==null||Bgb(a)}};
var mic=function(a){if(a.fub)return a.fub;if(!a.qc)throw Error("nj");a.fub=new Yz({qc:a.qc,rJ:a.rJ,lub:!0,onError:n6a});return a.fub},p6a=function(a,b){a=new lic(a,b);
nic(a);mic(a)};var tW=function(a,b){this.store=a;this.queue=[];this.supportsFocus=_.w("web_ephemeral_actions_focus");b==null||b.addEventListener("yt-navigate-start",this.reset.bind(this))};
tW.prototype.enqueue=function(a){var b=a.command,c=a.durationMs,d=a.elementToFocus;var e=a.label;var g=a.elementToFocus;a.command?e=_.vo("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:e,shortcut:_.vo("SHIFT_PLUS_ENTER")}):g&&this.supportsFocus&&(a=e+". "+_.vo("SHIFT_PLUS_ENTER")+" to move focus.",e=_.vo("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:e,shortcut:_.vo("SHIFT_PLUS_ENTER")},a));c={announcement:e,durationMs:c!=null?c:this.supportsFocus?8E3:void 0};b?c.command=b:d&&this.supportsFocus&&(d.classList.add("ephemeral-action-focusable-element"),
c.selector=d.tagName+".ephemeral-action-focusable-element");this.queue.push(c);oic(this)};
tW.prototype.activate=function(a){var b=_.H5a(this.store.getState());if(b){if(b==null?0:b.command)_.Es(b.command),this.store.dispatch(JJb(null));(b==null?0:b.selector)&&this.supportsFocus&&(b=document.querySelector(b.selector),_.yja(b));a.preventDefault()}};
var oic=function(a){if(!_.H5a(a.store.getState())&&a.queue.length){var b=a.queue.shift();b&&(a.previousAnnouncement===b.announcement&&(b.announcement+="\u00a0"),a.store.dispatch(JJb(b)),a.previousAnnouncement=b.announcement,a.timeoutId=setTimeout(function(){if(b.selector&&a.supportsFocus){var c;(c=document.querySelector(b.selector))==null||c.classList.remove("ephemeral-action-focusable-element")}a.store.dispatch(JJb(null));oic(a)},b.durationMs))}};
tW.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(JJb(null));this.queue.length=0;this.timeoutId=void 0};
tW[iB]=[_.LG,_.rG];_.uW=new _.jB("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var pic=new _.jB("AUTH_SERVICE_TOKEN");var s6a=_.hx(["about:blank"]),r6a;var qic=new _.jB("API_IFRAME_TOKEN"),ric=new _.jB("FETCH_FN_TOKEN"),sic=new _.jB("PARSE_FN_TOKEN"),tic=new _.jB("WINDOW_REQUEST_TOKEN");var Fhb;Fhb=new _.jB("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.uic=new _.jB("MISC_UI_SHARED_FLAGS_TOKEN");var vic=function(){};
vic.prototype.getFlag=function(a){if(a.configType!==2)throw Error("oj");return wic(a)};
var wic=function(a){switch(a.flagType){case "bool":return _.w(a.flagName);case "int":return _.Lb(_.$i(a.flagName));case "double":return _.$i(a.flagName);case "string":return _.aj(a.flagName);case "int32_list":return soa(a.flagName);case "int64_list":return soa(a.flagName).map(function(b){return _.Lb(b)});
case "string_list":return _.bj(a.flagName);default:throw Error("pj");}};var vW=function(a,b,c){b=b===void 0?{}:b;PB.call(this,c===void 0?"uninitialized":c);this.env=a;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];b.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=b.shouldWaitOnAsyncImmediate)};
_.z(vW,PB);vW.prototype.init=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return b.processPluginOptions.shouldWaitOnAsyncImmediate?_.p(d,a(b.env),2):(a(b.env),d.jumpTo(2));if(d.nextAddress!=4)return b.jobSet?_.p(d,b.jobSet.completedResolver.promise,4):d.jumpTo(4);c=_.VF();c.parkOrScheduleJob(function(){b.transition("rendering")},10,"ci");
_.ue(d)})};
vW.prototype.initialRender=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return b.processPluginOptions.shouldWaitOnAsyncImmediate?_.p(d,a(b.env),2):(a(b.env),d.jumpTo(2));if(d.nextAddress!=4)return b.jobSet?_.p(d,b.jobSet.completedResolver.promise,4):d.jumpTo(4);c=_.VF();c.parkOrScheduleJob(function(){b.transition("rendered")},10,"cr");
_.ue(d)})};
vW.prototype.afterRenderImmediate=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return b.processPluginOptions.shouldWaitOnAsyncImmediate?_.p(d,a(b.env),2):(a(b.env),d.jumpTo(2));if(d.nextAddress!=4)return b.jobSet?_.p(d,b.jobSet.completedResolver.promise,4):d.jumpTo(4);c=_.VF();c.parkOrScheduleJob(function(){b.transition("after-render-deferred")},10,"carml");
_.ue(d)})};
vW.prototype.afterRenderDeferred=function(a){var b=this;return _.l(function(c){a(b.env);_.ue(c)})};var xic={},yic=(xic.rendered={priority:0,callback:function(a){gnb(a.injector.resolve(tl))}},xic);var zic=!1,B6a=0,x6a=null,A6a=null;var Aic=new _.jB("NETWORK_SLI_TOKEN");var Bic=function(a,b,c,d){this.networkSli=a;this.fetchFn=b;this.parseFn=c;this.requestFn=d};
Bic.prototype.fetch=function(a,b,c){var d=this,e,g,k;return _.l(function(m){e=Cic(d,a,b);k=(g=d.fetchFn)!=null?g:fetch;return m.return(k(e).then(function(n){return d.handleResponse(n,c)}).catch(function(n){_.Dl(n);
if((c==null?0:c.expectJsonStrict)&&n instanceof oG&&n.errorType===1)return Promise.reject(n)}))})};
var bRb=function(a,b,c,d){var e,g,k,m,n,r;return _.l(function(t){switch(t.nextAddress){case 1:return e=Cic(a,b,c),_.pe(t,2),_.p(t,fetch(e),4);case 4:g=t.yieldResult;_.Jj(t,3);break;case 2:throw _.te(t),new oG(2,"Failed to parse streaming response",e.url);case 3:if(!g.redirected&&!g.ok)throw(k=a.networkSli)==null||k.failure(),new _.qj("Streaming fetch request not ok",e.url);if(!g.body)throw new _.qj("No response body in streaming response",e.url);m=g.body.pipeThrough(new TextDecoderStream).getReader();
n=new _.pD;r={};return t.return(Dic(a,m,n,YTa,r,d))}})},Cic=function(a,b,c){if(a.networkSli){var d=_.gj(_.bo(b,"key"))||"/UNKNOWN_PATH";
a.networkSli.start(d)}d=c;_.w("wug_networking_gzip_request")&&(d=Era(c));var e;return new ((e=a.requestFn)!=null?e:window.Request)(b,d)},Dic=function(a,b,c,d,e,g){var k,m,n,r,t,u,x,A,C;
return _.l(function(F){if(F.nextAddress==1)return _.p(F,b.read(),2);k=F.yieldResult;m=k.value;if(n=k.done)return(r=a.networkSli)==null||r.success(),F.return(e);try{t=c.parse(m)}catch(J){throw new oG(1,"Failed to parse streaming response",m);}if(t!=null)for(u=_.h(t),x=u.next();!x.done;x=u.next())A=x.value,d(e,A),C=void 0,(C=g)==null||C(e,A);return F.return(Dic(a,b,c,d,e,g))})};
Bic.prototype.handleResponse=function(a,b){var c,d=(c=this.parseFn)!=null?c:JSON.parse;c=a.text().then(function(e){if((b==null?0:b.jspbResponseCtor)&&a.ok)return wda(b.jspbResponseCtor,e);e=e.replace(")]}'","");if((b==null?0:b.expectJsonStrict)&&e)try{var g=d(e)}catch(m){throw new oG(1,"JSON parsing failed after fetch");}var k;return(k=g)!=null?k:d(e)});
a.redirected||a.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),c=c.then(function(e){_.Dl(new _.qj("Error: API fetch failed",a.status,a.url,e));return Object.assign({},e,{errorMetadata:{status:a.status}})}));
return c};
Bic[iB]=[_.Xi(Aic),_.Xi(ric),_.Xi(sic),_.Xi(tic)];var Eic=new _.jB("NETWORK_MANAGER_TOKEN");var Fic=[1,2,4,8,16,30],Hic=function(a){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=a.maxTimeMs;this.maxFrameCount=a.maxFrameCount===void 0?Math.ceil(60*a.maxTimeMs/1E3):a.maxFrameCount;a=_.h(Fic);for(var b=a.next();!b.done;b=a.next())this.brokenFrameSummarizers.push(new Gic(b.value/60*1E3))},Iic=function(a){var b=a.frameCountInternal>=a.maxFrameCount;
return a.elapsedTimeMs>=a.maxTimeMs||b},Jic=function(a){for(var b=[],c=_.h(a.brokenFrameSummarizers),d=c.next();!d.done;d=c.next())d=d.value,d=d.brokenFrameCount!==0?{severityMs:Math.round(d.targetFrameTimeMs),
eventCount:d.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(d.averageDurationBetweenEventsMs)}:void 0,d&&b.push(d);return{summaries:b,monitoringDurationMs:Math.round(a.elapsedTimeMs)}};
_.Um.Object.defineProperties(Hic.prototype,{elapsedTimeMs:{configurable:!0,enumerable:!0,get:function(){return this.startTime===void 0||this.prevTime===void 0?0:this.prevTime-this.startTime}},
frameCount:{configurable:!0,enumerable:!0,get:function(){return this.frameCountInternal}}});
var Gic=function(a){this.targetFrameTimeMs=a;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.Um.Object.defineProperties(Gic.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var Kic=function(){};
Kic.prototype.start=function(a,b){var c=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var d=new Hic({maxTimeMs:a});this.monitor=d;this.lastSummaryInternal=void 0;this.metadataToLog=b;return new Promise(function(e){var g=function(k){if(k===void 0)c.stop(),e(void 0);else if(c.monitor!==d)k=Object.assign({},Jic(d),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),e(k);else{var m=c.monitor;if(!Iic(m)){m.frameCountInternal++;if(m.prevTime===void 0)m.startTime=
k;else for(var n=k-m.prevTime,r=_.h(m.brokenFrameSummarizers),t=r.next();!t.done;t=r.next()){t=t.value;var u=t.currTimeMs;t.currTimeMs+=n;n>t.targetFrameTimeMs+2&&(t.brokenFrameCount++,t.timeOfFirstBrokenFrameMs===void 0&&(t.timeOfFirstBrokenFrameMs=u),t.timeOfLastBrokenFrameMs=u)}m.prevTime=k}Iic(c.monitor)?e(c.stop()):_.zk.addJob(g,5,0)}};
_.zk.addJob(g,5,0)})};
Kic.prototype.stop=function(a){if(!this.monitor)return this.lastSummaryInternal;var b=Object.assign({},Jic(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(b.monitoringDurationMs){a=a!=null?a:this.metadataToLog;var c={droppedFramesSummary:b,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};a&&(c[a.type]=a.data);_.xl("manualSmoothnessMeasurement",c)}this.monitor=void 0;this.lastSummaryInternal=b;this.metadataToLog=void 0;return b};_.Lic=new _.jB("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var Mic;Mic=function(a){this.JSC$16109_expiringStorage=new sj(a)};
_.Nic=function(a){if(_.C6a()&&(a=_.gpa(_.oj()+"::"+a)))return new Mic(a)};
Mic.prototype.set=function(a,b,c){c=c!==void 0?Date.now()+c:void 0;this.JSC$16109_expiringStorage.set(a,b,c)};
Mic.prototype.get=function(a){return this.JSC$16109_expiringStorage.get(a)};
Mic.prototype.remove=function(a){this.JSC$16109_expiringStorage.remove(a)};var Oic=new _.jB("SESSION_STORAGE");_.wW=function(){};
_.wW.getInstance=function(){var a=_.Ji("ytglobal.storage_");a||(a=new _.wW,_.Rj("ytglobal.storage_",a));return a};
_.wW.prototype.estimate=function(){var a,b,c;return _.l(function(d){a=navigator;return((b=a.storage)==null?0:b.estimate)?d.return(a.storage.estimate()):((c=a.webkitTemporaryStorage)==null?0:c.queryUsageAndQuota)?d.return(D6a()):d.return()})};
_.Rj("ytglobal.storageClass_",_.wW);var Pic=_.hx(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),Qic=_.hx(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var bgc={"/":_.yF,"/?feature=ytca":_.yF,"/feed/downloads":_.N2a};var Fw=function(a,b,c){this.JSC$16119_upliftPromise=a;this.store=b;this.JSC$16119_persistentStorePromiseAccessor=c};
Fw.prototype.shouldPreferLocalResponse=function(a){return a.browseId==="FEdownloads"||a.browseId==="FEsmart_downloads"&&_.w("kevlar_modern_downloads_page")?!0:!1};
Fw.prototype.localInnertubeResponse=function(a){var b=this;return _.l(function(c){return a.browseId==="FEdownloads"?_.w("kevlar_modern_downloads_page")?c.return(Ric(b)):c.return(Sic(b)):a.browseId==="FEsmart_downloads"&&_.w("kevlar_modern_downloads_page")?c.return(Tic(b)):c.return(Promise.reject(Error("rj")))})};
Fw.prototype.canProvideFallbackResponse=function(){return!0};
Fw.prototype.localFallbackInnertubeResponse=function(a){var b=this,c,d,e;return _.l(function(g){switch(g.nextAddress){case 1:return _.p(g,b.JSC$16119_persistentStorePromiseAccessor(),2);case 2:c=g.yieldResult;if(a.browseId!=="SPaccount_downloads"||!c){g.jumpTo(3);break}return _.p(g,q5a(c),4);case 4:if(d=g.yieldResult)return g.return(_.ww(d));case 3:return a.browseId==="FEwhat_to_watch"?g.return(Uic(b)):(e=_.w("web_offline_continuation_automatic_retry")||_.w("web_offline_continuation_retry_button"))&&
a.continuation?g.return(Vic(b)):g.return(Wic(b))}})};
var Uic=function(a){var b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,a.JSC$16119_upliftPromise,2);b=_.jFa(a.store.getState().entities);return b.length?c.return(Xic(a,b)):c.return(Wic(a))})},Sic=function(a){var b,c;
return _.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$16119_upliftPromise,2);if(d.nextAddress!=3)return b=Yic([{offlineItemSectionRenderer:{}}]),_.p(d,Zic(a,b),3);c=d.yieldResult;c.onResponseReceivedActions=[Yv("REFRESH_DOWNLOADS")];return d.return(c)})},Ric=function(a){var b,c,d,e,g,k,m,n,r,t,u,x,A;
return _.l(function(C){if(C.nextAddress==1)return _.p(C,a.JSC$16119_upliftPromise,2);if(C.nextAddress!=3)return b=a.store.getState(),c=b.entities,d=_.Dp(c),e=_.rFa(c),g=_.NFa(b),k=_.MFa(b),m=_.OFa(b),n=_.nFa(c),r=_.yEa(d),t=_.Ep(c),u={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.i5a(d,e,n,g,k,r,t,m),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},x=_.vo("DOWNLOADS",void 0,"Downloads"),_.p(C,$ic(a,u,x),3);A=C.yieldResult;
A.onResponseReceivedActions=[Yv("REFRESH_DOWNLOADS")];return C.return(A)})},Tic=function(a){var b,c,d,e,g,k,m,n,r;
return _.l(function(t){if(t.nextAddress==1)return _.p(t,a.JSC$16119_upliftPromise,2);if(t.nextAddress!=3)return b=a.store.getState(),c=b.entities,d=_.Dp(c),e=_.yEa(d),g=_.Ep(c),k={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.j5a(d),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},m=_.vo("SMART_DOWNLOADS",void 0,"Smart downloads"),n=g5a(e,g),_.p(t,$ic(a,k,m,n),3);r=t.yieldResult;r.onResponseReceivedActions=
[Yv("REFRESH_DOWNLOADS")];return t.return(r)})},Wic=function(a){var b,c;
return _.l(function(d){if(d.nextAddress==1)return _.p(d,vw(a.JSC$16119_upliftPromise,a.store),2);b=d.yieldResult;c=Yic([uw(b)]);return d.return(Zic(a,c))})},Vic=function(a){var b,c,d,e;
return _.l(function(g){if(g.nextAddress==1)return b={},c=a.store.getState().continuation.continuationCommand,_.ys(b,_.Jt,c),_.p(g,vw(a.JSC$16119_upliftPromise,a.store,b,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);d=g.yieldResult;e={};_.ys(e,_.Tzb,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:d}}}],targetId:"browse-feedFEwhat_to_watch"});return g.return({responseContext:{},onResponseReceivedActions:[e]})})},Yic=function(a){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:a}}}}]}}},Xic=function(a,b){var c,d;
return _.l(function(e){var g={contents:k5a(b)};c=g&&g.contents?g:{};_.w("kevlar_modern_downloads_page")&&!_.w("kevlar_disable_modern_downloads_on_offline_home")&&(c=Object.assign({},_.j5a(b),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));d={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:c}}}]}};return e.return(Zic(a,d))})},Zic=function(a,b){var c,d;
return _.l(function(e){if(e.nextAddress==1)return _.p(e,a.JSC$16119_persistentStorePromiseAccessor(),2);if(e.nextAddress!=3)return c=e.yieldResult,_.p(e,xw(c),3);d=e.yieldResult;return e.return({responseContext:{},contents:b,topbar:d})})},$ic=function(a,b,c,d){var e,g;
return _.l(function(k){if(k.nextAddress==1)return _.p(k,a.JSC$16119_persistentStorePromiseAccessor(),2);if(k.nextAddress!=3)return e=k.yieldResult,_.p(k,xw(e),3);g=k.yieldResult;var m=k.return,n=d;n=n===void 0?"":n;var r={dynamicTextViewModel:{text:{content:c}}};var t={flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.vo("SETTINGS",void 0,"Settings"),accessibilityText:_.vo("SETTINGS",void 0,"Settings"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",isFullWidth:!0,iconName:"SETTINGS",onTap:{innertubeCommand:cp("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}};return m.call(k,{responseContext:{},contents:b,topbar:g,header:{pageHeaderRenderer:{content:{pageHeaderViewModel:{title:r,actions:t,metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:n}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},
pageTitle:c}}})})};var ajc=function(){this.moduleRegistry={};this.fetchCount=0};
ajc.prototype.isFetching=function(){return this.fetchCount>0};
var ax=function(a,b){a.moduleRegistry[b.toString()]={asyncId:b,isFetching:!1};return a};
ajc.prototype.JSC$16130_loadModules=function(){for(var a=this,b=new Map,c=[],d=_.h(_.Kd.apply(0,arguments)),e=d.next();!e.done;e=d.next()){e=e.value;var g=this.moduleRegistry[e];g?g.resolver?b.set(e,g.resolver):(g.resolver=new _.hq,b.set(e,g.resolver),c.push(g.asyncId),g.isFetching=!0):(g=new _.hq,b.set(e,g),g.resolve(void 0))}c.length&&(this.fetchCount+=1,_.Lz(_.LH.getMultipleAsync.apply(_.LH,_.De(c)).then(function(k){for(var m=0;m<c.length;m++){var n=k[m],r=a.moduleRegistry[c[m].toString()];r.isFetching=
!1;r.resolver.resolve(n)}}).catch(function(k){for(var m=_.h(c),n=m.next();!n.done;n=m.next()){n=n.value;
var r=a.moduleRegistry[n.toString()];r.resolver=void 0;r.isFetching=!1;b.get(n.toString()).reject(k)}}),function(){--a.fetchCount}));
return Promise.all([].concat(_.De(b.values())).map(function(k){return k.promise}))};_.bx=new _.jB("MODULE_REGISTRY_TOKEN");var bjc={},cjc=(bjc.rendered={priority:0,callback:function(a){a:{var b=void 0;try{var c;b:{if(_.aJa()){var d=_.fpa(_.oj()+"::pom");if(d){var e=new xG(d);break b}}e=void 0}var g=(c=e)==null?void 0:c.get("role_text");if(!g)break a;b={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:g}]}}}}}}catch(n){}b&&a.injector.resolve(_.Yi).resolveCommand(b)}try{var k=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(k){var m=JSON.parse(k);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
m&&a.injector.resolve(_.Yi).resolveCommand(m)}}catch(n){}}},bjc);var djc,ejc={},fjc=(ejc.initialized={priority:10,callback:function(){djc=Ow()}},ejc.rendering={callback:function(a){var b;
return _.l(function(c){if(c.nextAddress==1)return _.p(c,djc,2);b=c.yieldResult;if(!b.endpoint)throw Error("tj`"+_.ja.location.href);Sw(a,b);_.ue(c)})}},ejc);var gjc={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.De(_.w("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,weight:500},{messageRegExp:/MutationObserver is not defined/,
weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,
weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,
weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,
weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},
{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,
weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},
{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,
weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,
weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,
weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3}]),callbackWeights:[{callback:function(a){var b=a.stack;if(b.includes("chrome://")||b.includes("chrome-extension://")||a.message.includes("chrome-extension://")||b.includes("moz-extension://")||b.includes("local.adguard.org")||b.includes("auctioneer3.50million.club")||b.includes("youtubedownloader")||b.includes("youtube_home_page")||b.includes("is_youtube_video_no_longer_available")||
b.includes("switchScreenSizeHack")||b.includes("yt_main_big_banner.js")||b.includes("YouTubeCenter.js")||b.includes("/mytube.js")||b.includes("JSON.parseWrapper")||b.includes("/inj_js/common.js")||b.includes("firebug-lite")||b.includes(".repl.co/")||b.includes("linkfix")||b.includes("playAfterAd")||a.message.includes("Access is denied for this document")&&b.includes("<anonymous>")||a.fileName==="user-script"||a.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
b.includes("<anonymous>"))return!0;if(b.includes("https://www.youtube.com"))return!1;a=b.split("\n");if(!a.length)return!1;if(a.length<=3&&b.includes("s.onloadeddata"))return!0;b=0;for(var c=_.h(a),d=c.next();!d.done;d=c.next())d=d.value,(d.includes("https://")||d.includes("http://"))&&b++;return b/a.length>.95},
weight:0},{callback:function(a){return a.message==="Unknown Error"&&a.name.indexOf("NS_")===0},
weight:100},{callback:function(a){if(!_.xx)return!1;var b=a.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||a.message.includes("available to complete this operation"),c=a.stack.includes("webcomponents")&&a.message==="Object doesn't support this action";a=a.message.includes("object that does not implement interface Element");return b||c||a},
weight:0},{callback:function(a){return a.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(a){return a.message==="Operation is not supported"&&(a.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(a){return a.stack.includes("eval code (eval (code:1:1)")||a.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(a){return a.message.includes("Permission denied")&&a.stack.includes("this.domHandler")?!0:a.name.includes("TypeError")&&a.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(a){if(!a.stack)return!1;var b=a.stack.trim().split("\n");b.length&&b[0].endsWith("Error: "+a.message)&&b.shift();b.length&&b[b.length-1].includes("at window.onerror (")&&b.pop();if(!b.length)return!0;if(a.message==="Script error.")return b[0].includes("www.youtube.com")||b.length>=2&&b[0].startsWith("at new")&&b[1].startsWith("at window.onerror");if(a.message==="Unexpected token")return!0;a=_.h(b);for(b=a.next();!b.done;b=a.next())if(b=b.value,!(b.includes("<anonymous>")||
b.startsWith("load@")||b.startsWith("global code@")||b.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(a){return a.message==="Cannot read property 'experiments'"&&a.stack.includes("/s/player/")},
weight:500},{callback:function(a){return a.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(a){return a.stack.includes("/embed.js")?(a.params&&a.params&&(a.params.name="56"),!0):!1},
weight:1}]};var hjc={},ijc=(hjc.initialized={priority:10,callback:function(a){a.injector.addProvider({provide:whc,useValue:a.root});a.injector.addProvider({provide:Vgc,useValue:dua});a.injector.addProvider({provide:Wgc,useValue:gjc});var b={};a.injector.addProvider((b.provide=Xgc,b.useFactory=function(c,d){return function(){G5a(c,d)}},b[iB]=[Vgc,
Wgc],b));a.injector.addProvider({provide:vJ,useClass:vJ})}},hjc);var jjc={},kjc=(jjc.initialized={priority:3,callback:function(){var a;if(a=Zoa()){a=a.replace("/",".");var b=_.yo();b.set("tz",a);b.save();a=!0}else a=!1;a||(a=_.yo(),a.set("utco",-Math.floor((new Date).getTimezoneOffset())),a.save())}},jjc);var ljc={},mjc=(ljc.initialized={priority:10,callback:function(a){a.injector.resolve(vJ).start();a=_.Nq();var b=_.Gi("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.Gi("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.Gi("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.Gi("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.Bw(_.rBa(),{mainAppWeb:Object.assign({},a,{pageType:b})});_.Bw(tBa(),{mainAppWeb:Object.assign({},a,{pageType:b})});
_.Bw(uBa(),{mainAppWeb:a});_.Bw(vBa(),{mainAppWeb:a});smb(function(){_.Cw(uBa(),"FAILURE");_.Cw(vBa(),"FAILURE")});
O6a();P6a();RIa()}},ljc);var njc={},ojc=(njc.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Lo("dl"),_.VF().processSignal("pcl");else{var a=function(){_.Lo("dl");_.VF().processSignal("pcl");window.removeEventListener("load",a)};
window.addEventListener("load",a)}}},njc);var pjc={},qjc=(pjc.rendering={priority:0,callback:function(){var a=_.VF();a.parkOrScheduleJob(function(){a.processSignal("eocs")},10,"eor",5E3)}},pjc);var rjc=function(){};
_.z(rjc,SM);
rjc.prototype.resolveCommand=function(a,b){var c,d,e,g,k,m,n,r;return _.l(function(t){e=(c=_.y(a,_.yDb))==null?void 0:(d=c.dialog)==null?void 0:d.commentReplyDialogRenderer;if(!e)throw new _.qj("No dialog in createCommentReplyDialogEndpoint");k=(g=b.form)==null?void 0:g.event;if(!k)throw new _.qj("Event not passed in when resolving command");m=_.h(k.composedPath());for(n=m.next();!n.done;n=m.next())if(r=n.value,r.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||r.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return r.showReplyDialog(e),t.return();
_.ue(t)})};var xW=function(a){this.pageRequestService=a;this.JSC$16145_prefetchCoordinator=Igc()};
_.z(xW,SM);xW.prototype.resolveCommand=function(a){var b=this,c,d,e,g;return _.l(function(k){if(k.nextAddress==1){c=_.y(a,eEb);if((d=c)==null||!d.taskId)throw Error("uj");e=c.taskId;_.pe(k,2);return _.p(k,_.yLb(b.pageRequestService,a,{},"").then(function(m){if(!m)throw Error("vj");},function(m){throw Error("wj`"+m);
}),4)}if(k.nextAddress!=2)return Lgc(b.JSC$16145_prefetchCoordinator,e),_.Jj(k,0);
g=_.te(k);dW(b.JSC$16145_prefetchCoordinator,e,g);_.ue(k)})};
xW[iB]=[Nw];var yW=function(a){this.innertubeTransportService=a};
_.z(yW,SM);yW.prototype.resolveCommand=function(a){var b=this,c,d;return _.l(function(e){c=_.y(a,bFb);if(c.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||c.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")d=c.boolValue?2:1,_.fF.getInstance().setState(d,!0,!0);return _.p(e,_.Rt(b.innertubeTransportService,a),0)})};
yW[iB]=[_.yq];var zW={},sjc=(zW.addToPlaylistEndpoint=bp(OS),zW.addToToastAction=bp(IT),zW.adsControlFlowOpportunityReceivedCommand=bp(wS),zW.captionLanguageSelectActionCommand=bp(aT),zW.captionPickerEndpoint=bp(bT),zW.changeMiniAppPlayStateCommand=bp(PS),zW.changeTimelyActionVisibilityCommand=bp(HT),zW.channelCreationFormEndpoint=bp(IS),zW.clearLocationCommand=bp(NS),zW.copyLinkCommand=bp(gT),zW.copyTextEndpoint=bp(zS),zW.createCommentReplyDialogEndpoint=yDa(rjc),zW.createPlaylistServiceEndpoint=bp(hT),zW.dismissDialogEndpoint=
bp(RS),zW.entityUpdateCommand=bp(BS),zW.feedbackEndpoint=bp(ES),zW.getAnswerCommand=bp(Pfc),zW.getPaymentsClientTokenCommand=bp(LT),zW.getTranscriptEndpoint=bp(JT),zW.googlePaymentBillingCommand=bp(MT),zW.googlePaymentPurchaseManagerCommand=bp(NT),zW.hideEngagementPanelEndpoint=bp(SS),zW.insertRichSectionCommand=bp(KS),zW.listMutationCommand=bp(LS),zW.logGtmCommand=bp(JS),zW.notifyDropdownOptionSelectedCommand=bp(QS),zW.openAdAllowlistInstructionCommand=bp(_.xS),zW.openOnePickAddVideoModalCommand=
bp(iT),zW.pingingEndpoint=bp(yS),zW.playlistEditEndpoint=bp(kT),zW.playlistVotingRefreshPopupCommand=bp(lT),zW.refreshPanelEndpoint=bp(TS),zW.saveImageToDeviceEndpoint=bp(AS),zW.scrollToSectionEndpoint=yDa(Qfc),zW.seekToVideoTimestampCommand=bp(cT),zW.setCookieCommand=bp(nT),zW.setLocalStorageCommand=bp(CT),zW.setPrefStorageEntryCommand=bp(pT),zW.setSettingEndpoint=bp(yW),zW.sfvAudioItemPlaybackCommand=bp(dT),zW.shareImageCommand=bp(qT),zW.sharingProviderDataCommand=bp(rT),zW.showCaptionLanguageSelectActionCommand=
bp(eT),zW.showDialogCommand=bp(WS),zW.showEngagementPanelEndpoint=bp(XS),zW.showSheetCommand=bp(YS),zW.showTransientPlayerScrimOverlayCommand=bp(fT),zW.submitFormWithValidationFlowCommand=bp(HS),zW.talkToRecsDeselectCommand=bp(DT),zW.talkToRecsNextCommand=bp(ET),zW.talkToRecsSelectCommand=bp(FT),zW.talkToRecsUpdateTextCommand=bp(GT),zW.toggleEngagementPanelCommand=bp(ZS),zW.undoFeedbackEndpoint=bp(GS),zW.updateEngagementPanelContentCommand=bp($S),zW.updateUrlParamCommand=bp(KT),zW.verifyCommand=bp(IS),
zW.webSubmitFormCommand=bp(mT),zW.ACK_PLAYABLES_3P_DATA_CONSENT=bp(sT),zW.CANCEL_NAVIGATION=bp(tT),zW.COPY_SHARE_URL=bp(uT),zW.MINI_APP_EXIT_DIALOG_SEEN=bp(wT),zW.MINI_APP_OPEN_URL=bp(vT),zW.REQUEST_MINI_APP_FULLSCREEN=bp(xT),zW.RESUME_NAVIGATION=bp(yT),zW.SHARE_PLAYABLE_WITH_HIGH_SCORE=bp(zT),zW.TELL_US_WHY=bp(FS),zW);_.w("web_enable_prefetching_videos_on_home")&&(sjc.prefetchWatchCommand=bp(xW),sjc.registerTasksCommand=bp(fW));
_.w("enable_share_panel_navigation_logging_fix_on_web")&&(sjc.shareEntityServiceEndpoint=bp(US));var SIb=Object.assign({},sjc);var tjc={},ujc=(tjc.initialized={priority:10,callback:U6a},tjc);var vjc={},wjc=(vjc.initialized={callback:function(a){var b={},c={};QUa().install((b.document_disposed={callback:function(){_.w("finalize_all_timelines")?UCa():Io();y6a("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.aVa();var d=a.injector.resolve(vJ);d.intervalId!==void 0&&(d.intervalId&&_.zk.cancelJob(d.intervalId),d.intervalId=void 0,--d.currentPartitionIndex,d=HWb(d),d>0&&FGb({mainAppWeb:_.Nq(),survivalSli:{partitionMinute:d,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));wGb(XE);YE!=null&&
YE.flush();mq&&mq.snapshotAndFlush()}},b),(c.flush_logs={callback:function(){_.Al()}},c))}},vjc);var xjc={},yjc=(xjc.rendered={priority:0,callback:function(){var a=new mhb;a.increment("STARTED");if(_.Fi("LOGGED_IN")&&_.Fi("SERVER_VERSION")!=="test"&&_.Fi("SERVER_VERSION")!=="dev"&&!$bb()&&!Zbb()){a.increment("EXECUTING");var b=document.createElement("iframe");b.style.display="none";_.Oda(b,2,_.Id("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.Fi("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(b);a.increment("DONE")}}},xjc);var zjc={},Ajc=(zjc.rendered={callback:function(){Igc().resume()}},zjc);var Bjc={acknowledgeChannelTouStrikeCommand:Kt(qU),addToPlaylistServiceEndpoint:Kt(nV),addToPlaylistEndpoint:Kt(nV),addUpcomingEventReminderEndpoint:Kt(FU),browseEndpoint:Kt(qgc),channelCreationFormEndpoint:Kt(jU),channelCreationServiceEndpoint:Kt(kU),claimLegacyYoutubeChannelEndpoint:Kt(WT),clearSearchHistoryEndpoint:Kt(xU),clearWatchHistoryEndpoint:Kt(yU),commerceActionCommand:Lt(MV),createBackstagePostEndpoint:Kt(QT),createBroadcastCommand:Kt(GU),createCommentEndpoint:Kt(fU),createCommentReplyEndpoint:Kt(eU),
createLiveChatPollEndpoint:Kt(HU),createPlaylistServiceEndpoint:Kt(oV),crossAccountChannelTransferEndpoint:Kt(BU),deleteLiveChatMessageCommand:Kt(IU),deletePlaylistEndpoint:Kt(pV),deleteVideoEndpoint:Kt(EV),dismissalEndpoint:Kt(rU),feedbackEndpoint:Kt(sU),flagEndpoint:Kt(vV),getAccountSwitcherEndpoint:Kt(AU),verifyCommand:Kt(PT),getAccountsListInnertubeEndpoint:Kt(DU),getCommentsFromInboxCommand:Kt(XU),getDownloadActionCommand:Kt(dV),getFlowCommand:Lt(wU),getKidsBlocklistPickerCommand:Kt(wV),getNotificationMenuEndpoint:Kt(tgc),
getPaymentInstrumentsParamsCommand:Kt(SV),getPaymentsClientTokenCommand:Lt(MV),getPdgBuyFlowCommand:Kt(lV),getReportFormEndpoint:Kt(xV),getSearchInVideoCommand:Kt(AV),getAnswerCommand:Kt(zV),getSurveyCommand:Kt(DV),getTranscriptEndpoint:Kt(HV),getPostVideoPreviewEndpoint:Kt(ST),decorateMessageEndpoint:Kt(RT),likeEndpoint:Kt(lU),liveChatActionEndpoint:Kt(MU),liveChatEndpoint:Kt(LU),liveChatItemContextMenuEndpoint:Kt(JU),liveChatPurchaseMessageEndpoint:Kt(NU),liveChatReplayEndpoint:Kt(KU),manageLiveChatUserEndpoint:Kt(PU),
metadataUpdateCommand:Kt(VU),moderateLiveChatEndpoint:Kt(QU),modifyChannelNotificationPreferenceEndpoint:Kt(aV),notificationOptOutEndpoint:Kt(bV),openSuperStickerBuyFlowCommand:Kt(OU),performCommentActionEndpoint:Kt(bU),playlistEditEndpoint:Kt(rV),playlistEditorEndpoint:Kt(qV),profileCardCommand:Kt(EU),recordNotificationInteractionsEndpoint:Kt(cV),reelWatchEndpoint:Kt(sV),refreshPanelEndpoint:Kt(fV),removeUpcomingEventReminderEndpoint:Kt(RU),resolveLocationCommand:Kt(UU),revealBusinessEmailCommand:Kt(XT),
searchEndpoint:Kt(_.ugc),sendLiveChatMessageEndpoint:Kt(SU),sendLiveChatVoteEndpoint:Kt(TU),setSettingEndpoint:Kt(mU),shareEntityServiceEndpoint:Lt(pU),sharingProviderDataCommand:Kt(CV),showEngagementPanelEndpoint:Kt(gV),showMoreDrawerCommand:Kt(iV),showSheetCommand:Kt(jV),showDialogCommand:Kt(hV),subscribeEndpoint:Kt(nU),transcriptSubmitCaptionCorrectionCommand:Kt(GV),undoFeedbackEndpoint:Kt(uU),unsubscribeEndpoint:Kt(oU),updateBackstagePostEndpoint:Kt(UT),updateCommentEndpoint:Kt(hU),updateCommentReplyEndpoint:Kt(gU),
updateCommentsSettingsEndpoint:Kt(iU),updateCreatorChannelInnertubeCommand:Kt($T),updateKidsBlacklistEndpoint:Kt(yV),updateEngagementPanelContentCommand:Kt(kV),updatePdgFeatureEnablementCommand:Kt(mV),updatedMetadataEndpoint:Kt(WU),validateChannelHandleCommand:Kt(aU),updateChannelPageSettingsEndpoint:Kt(ZT),verifyAgeEndpoint:Kt(vU),watchEndpoint:Lt(FV),whitelistEditEndpoint:Kt(LV),ypcCancelRecurrenceEndpoint:Kt(NV),ypcCompleteTransactionEndpoint:Kt(OV),ypcFixInstrumentEndpoint:Kt(QV),ypcGetCartEndpoint:Kt(PV),
ypcGetOffersEndpoint:Kt(RV),ypcHandleTransactionEndpoint:Lt(TV),ypcLogWalletAnalyticDataEndpoint:Kt(UV),ypcOffersEndpoint:Kt(VV),ypcPauseSubscriptionCommand:Kt(WV),ypcRedeemCodeEndpoint:Kt(XV),ypcResumeSubscriptionCommand:Kt(YV),ypcUpdateFopEndpoint:Kt(QV)},AW={},Cjc=(AW.GET_ACCOUNT_MENU=Kt(CU),AW.GET_NOTIFICATIONS_MENU=Kt(sgc),AW.GET_NOTIFICATIONS_INBOX=Kt(YU),AW.GET_UNSEEN_NOTIFICATION_COUNT=Kt($U),AW.GET_USER_MENTION_SUGGESTIONS=Kt(TT),AW.LOAD_GUIDE=Kt(rgc),AW.SUBMIT_FEEDBACK=Kt(tU),AW),BW={},
Djc=(BW.CONTINUATION_REQUEST_TYPE_BROWSE=Kt(VT),BW.CONTINUATION_REQUEST_TYPE_SEARCH=Kt(BV),BW.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=Kt(JV),BW.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=Kt(zU),BW.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=Kt(dU),BW.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=Kt(cU),BW.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=Kt(uV),BW.CONTINUATION_REQUEST_TYPE_GET_PANEL=Kt(eV),BW),Ejc={player:Lt(FV),watchNext:Kt(IV)},Fjc={player:Lt(FV),reelItemWatch:Kt(sV),reelWatchSequence:Kt(tV)},
Gjc={watchEndpoint:Lt(KV)},Hjc={commandEndpointMap:Bjc,signalEndpointMap:Cjc,continuationEndpointMap:Djc,watchEndpointMap:Ejc,reelWatchEndpointMap:Fjc,streamingEndpointMap:Gjc};var Ijc,Jjc,Kjc,Ljc={disableAllTransitions:(Jjc=(Ijc=window).matchMedia)==null?void 0:(Kjc=Jjc.call(Ijc,"(prefers-reduced-motion: reduce)"))==null?void 0:Kjc.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var Mjc=new _.jB("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.Njc=new _.jB("VIEW_TRANSITION_MANAGER_TOKEN");var Ojc=function(a){this.config=a;this.transitionTasksMap=new Map;a=_.h(a.transitionConfigs);for(var b=a.next();!b.done;b=a.next())b=_.h(b.value).next().value,this.transitionTasksMap.set(b,[])};
Ojc[iB]=[Mjc];var V6a={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1};var X6a=["videoPrimaryInfoRenderer","title"],Y6a=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var Pjc;Pjc=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.Qjc=_.Rr(function(a){a=_.Or(a,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var b=a.data,c=a.playlistData,d=a.expanded,e=a.onExpandClick,g=a.isReadyToResume;a=function(){var r;return!((r=c())==null||!r.contents)};
var k=function(){var r=c();return r&&r.totalVideos&&r.currentIndex!==void 0?r.currentIndex+1+" / "+r.totalVideos:""},m=_.lt(function(){_.CW(_.v().resolve(_.$w))}),n={};
return _.q("ytd-miniplayer-info-bar",{class:_.et("ytdMiniplayerInfoBarHost",(n.ytdMiniplayerInfoBarHasPlaylistData=a,n))},_.q("div",{class:"ytdMiniplayerInfoBarContent"},_.q("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":m},_.q(_.tt,{text:function(){var r=b();var t=c();if(t==null?0:t.contents){var u;r=(u=_.iHa(t))==null?void 0:u.title}else r=r==null?void 0:r.miniplayerTitle;return $6a(r)},
noEndpoints:!0,ellipsisTruncate:!0})),_.q("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.q("h1",null,_.q(_.tt,{className:"ytdMiniplayerInfoBarSubtitleText",text:function(){var r=b();var t=c();r=g()?{simpleText:_.vo("CONTINUE_WATCHING",void 0,"Continue watching")}:(t==null?0:t.contents)?t.titleText:r==null?void 0:r.miniplayerSubtitle;return $6a(r)},
noEndpoints:!0,ellipsisTruncate:!0})),_.q(_.qi,{cond:function(){return!!k()&&!g()},
then:function(){return _.q("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.q("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.q("span",null,k))}}),_.q(_.qi,{cond:g,
then:function(){return _.q(XXb,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:Pjc})}}))),_.q(_.qi,{cond:a,
then:function(){return _.q("div",{class:"ytdMiniplayerInfoBarExpand"},_.q(vv,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:e}},
iconName:function(){return d()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Od");var Rjc;Rjc=_.Rr(function(a){return _.q("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.q(vv,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:a.onTap}},
iconName:"yt-icons:close"}))},"Pd");
_.Sjc=_.Rr(function(a){a=_.Or(a,{playabilityStatus:void 0,isDisabled:!1});var b=a.size,c=a.playabilityStatus,d=a.isDisabled,e=_.Pl();a=_.h(_.ih(void 0,void 0,"bJr0Se"));var g=a.next().value,k=a.next().value;a=_.Ht(_.Fv);var m=!1,n=function(){return b().height<=0};
_.wh(function(){var x=b(),A=n(),C=g();C&&!A&&C.setInternalSize(x.width,x.height)},"wfObGf");
_.pi(function(){var x,A,C;return _.l(function(F){if(F.nextAddress==1){x=_.v().resolve(_.$w);A=x.getPlayerElement();if(!x.isMiniplayerActive()||!A||!e.value)return F.return();A.appendTo(e.value);return _.p(F,A.getPlayerPromise(),2)}C=F.yieldResult;C.setSizeStyle(!1,!0);k(C);_.ue(F)})});
_.zh(function(){r()});
_.wh(function(){var x=g();if(x)if(d()){var A=x.getPlayerState();(m=A===-1||A===1||A===3)&&x.pauseVideo()}else r()},"gy721c");
var r=function(){if(m){m=!1;var x;(x=g())==null||x.playVideo()}},t=_.lt(function(){_.CW(_.v().resolve(_.$w))}),u={};
return _.q("ytd-miniplayer-player-container",{class:_.et("ytdMiniplayerPlayerContainerHost",(u.ytdMiniplayerPlayerContainerHidden=n,u.ytdMiniplayerPlayerContainerHostShortsPip=a,u)),style:_.ot({width:function(){return b().width+"px"},
height:function(){return b().height+"px"}})},_.q("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:e}),_.q(_.qi,{cond:function(){return!!c()&&!_.h6a(c())},
then:function(){return _.q(Iec,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var x;return((x=c())==null?void 0:x.errorScreen)||null},
status:function(){var x;return((x=c())==null?void 0:x.status)||null}})}}),_.q(_.qi,{cond:d,
then:function(){return _.q("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":t},_.q(Rjc,{onTap:function(){_.v().resolve(_.$w).close()}}))}}))},"Qd");_.Tjc=_.Rr(function(a){var b=a.toastData;var c=_.Pl();a=_.h(_.nt(function(){return!!b()}));
var d=a.next().value,e=a.next().value;a=_.h(_.ih(!1,void 0,"xkrBze"));var g=a.next().value,k=a.next().value,m=function(){var t;return _.Wp((t=b())==null?void 0:t.data.title)};
_.wi(function(){_.XD.requestAvailability();b()&&e(!1)});
var n,r;_.wh(function(){d()&&(_.io(c.value,"iron-announce",{text:b().label+" "+m()}),n&&_.zk.cancelJob(n),n=_.zk.addLowPriorityJob(function(){k(!0)},2500))},"wLb3Wc");
_.wh(function(){g()&&(r&&_.zk.cancelJob(r),r=_.zk.addLowPriorityJob(function(){e(!1);k(!1)},300))},"I6dnLd");
a={};return _.q("ytd-miniplayer-toast",{el:c,class:_.et("ytdMiniplayerToastHost",(a.ytdMiniplayerToastOpening=function(){return d()},a.ytdMiniplayerToastClosing=function(){return g()},a))},_.q(_.qi,{cond:function(){var t;
return(t=b())==null?void 0:t.data},
then:function(t){return _.q(YZb,{className:"ytdMiniplayerToastThumbnail",data:t,width:78})}}),_.q("div",{class:"ytdMiniplayerToastInfo"},_.q("div",{class:"ytdMiniplayerToastLabel"},function(){var t;
return(t=b())==null?void 0:t.label}),_.q("div",{class:"ytdMiniplayerToastTitle"},m)))},"Rd");var j7a;var n7a=new Set,m7a=null;var p7a=null;var Vjc=_.Rr(function(a){var b=a.progressState;var c=a.multiMarkersPlayerBarRenderer;var d=a.progressBarWidth;var e=function(){return t7a(c())},g=function(){return w7a(b())},k=function(){return d()*(b().playedTime/b().videoDuration)};
return _.q("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.q(_.ri,{each:e},function(m,n){return _.q(Ujc,{modifiedProps:g,chapters:e,index:n,playedProgressWidth:k,backgroundGradientPosition:function(){var r=g(),t=e(),u=n(),x=k();return(r.playedTime-Yw(_.y(t[u],Xw)))/r.playedTime*x}})}))},"Sd"),Ujc=_.Rr(function(a){var b=a.modifiedProps;
var c=a.chapters;var d=a.index;var e=a.playedProgressWidth;var g=a.backgroundGradientPosition;a={};a=_.et("ytChapteredProgressBarChapteredPlayerBarChapter",(a.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return k().isScrubbing},a.ytChapteredProgressBarHoveredMacroMarker=function(){return k().scrubberHovering},a.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return k().videoPosition==="seen"},a));
var k=function(){return x7a(b(),c(),d())},m=function(){var n=b();
var r=c(),t=d();if(x7a(n,r,t).videoPosition!=="active")n=0;else{var u=Yw(_.y(r[t],Xw));n=(n.playedTime-u)/((Yw(_.y(r[t+1],Xw))||n.videoDuration)-u)}return n};
return _.q("div",{class:a,style:_.ot({width:function(){var n=b(),r=c(),t=d(),u=_.y(r[t],Xw);r=_.y(r[t+1],Xw);return(r?Yw(r)-Yw(u):n.videoDuration-Yw(u))/n.videoDuration*100+"%"},
"background-color":function(){a:{var n=k();switch(n.videoPosition){case "pending":n=n.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":n=n.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:n=""}}return n},
"background-size":function(){return(y7a(k())?e():"")+"px"},
"background-position-x":function(){return(y7a(k())?g():"")+"px"}})},_.q("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var n=b(),r=c(),t=d();if(x7a(n,r,t).videoPosition==="seen")var u=0;else u=Yw(_.y(r[t],Xw)),r=Yw(_.y(r[t+1],Xw))||n.videoDuration,n=n.videoDuration*n.percentLoaded,u=r<=n?1:u>=n?0:(n-u)/(r-u);return"width: "+u*100+"%"}}),_.q("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.ot({width:function(){return m()*100+"%"},
"background-size":function(){return(y7a(k(),m())?e():"")+"px"},
"background-position-x":function(){return(y7a(k(),m())?g():"")+"px"}})}))},"Td");var Wjc=function(a,b){b=b===void 0?yub:b;var c,d=[],e,g=!1;return function(){var k=_.Kd.apply(0,arguments);if(g&&c===this&&b(k,d))return e;e=a.apply(this,k);g=!0;c=this;d=k;return e}}(function(a){var b=a.heatMarkers,c=a.minHeightDp===void 0?0:a.minHeightDp,d=a.maxHeightDp===void 0?60:a.maxHeightDp;
var e=e===void 0?!1:e;var g=1E3/b.length;a=[];a.push({x:0,y:100});for(var k=0;k<b.length;k++){var m=void 0,n=((m=_.y(b[k],QFb))==null?void 0:m.heatMarkerIntensityScoreNormalized)||0;m=(k+.5)*g;n=100-_.Vw(n*100,c/321*100,d/321*100);k!==0||e||a.push({x:0,y:n});a.push({x:m,y:n});k===b.length-1&&a.push({x:1E3,y:n})}a.push({x:1E3,y:100});b="";for(c=0;c<a.length;c++)e=a[c],c===0?e="M "+e.x.toFixed(1)+","+e.y.toFixed(1):(d=f6a(a[c-1],a[c-2],e),g=f6a(e,a[c-1],a[c+1],!0),e=" C "+(d.x.toFixed(1)+","+d.y.toFixed(1)+
" "+g.x.toFixed(1)+","+g.y.toFixed(1)+" "+e.x.toFixed(1)+","+e.y.toFixed(1))),b+=e;return b});var Xjc=_.Rr(function(a){var b=a.progressBarProps;var c=a.config;var d={};a=_.et("ytHeatSeekerHost",(d.ytHeatSeekerHighContrast=a.highContrast,d));var e=function(){return e7a(c().chapterData)};
return _.q("yt-progress-bar-heatseeker",{class:a,style:function(){var g;return"height: 320px; display: "+(b().isDragging&&((g=e())==null?0:g.heatMarkers)?"block":"none")}},_.q(_.qi,{cond:e,
then:function(g){return _.q(_.qi,{cond:function(){return g().heatMarkers},
then:function(){return _.q("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.q("path",{d:function(){return Wjc(g())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Ud");var Yjc=_.Rr(function(a){var b=a.progressBarProps;var c=a.config;a={};a=_.et("ytProgressBarLineProgressBarLine",(a.ytProgressBarLineProgressBarLineRounded=function(){return c().rounded},a.ytProgressBarLineProgressBarLineBottomInset=function(){return c().position===2},a));
return _.q("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.q("div",{class:a},_.q("div",{class:"ytProgressBarLineProgressBarBackground"}),_.q("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+b().percentLoaded*100+"%"}}),_.q("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var d=b();return"width: "+(d.videoDuration?_.Vw(d.hoveredTime/d.videoDuration,0,1):0)*100+"%"}}),_.q("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+b7a(b())*100+"%"}})))},"Vd");
Yjc.idomCompat=!0;var Zjc=_.Rr(function(a){var b=a.progressBarProps;var c=a.playheadData;var d=a.interpolateDotPosition;var e=a.hidePlayhead;a={};var g=_.et("ytProgressBarPlayheadProgressBarPlayheadDot",(a.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return b().isDragging},a.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!b().isDragging&&e()},a));
return _.q("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.ot({"margin-left":function(){return c7a(b())*100+"%"},
transform:function(){return"translateX(-"+(d()?c7a(b())*12:6)+"px)"}})},_.q(_.qi,{cond:function(){var k;
return(k=_.Nr(c)())==null?void 0:k.playheadImage},
then:function(k){var m={};return _.q("div",{class:_.et("ytProgressBarPlayheadProgressBarPlayheadCustom",(m.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return b().isDragging},m.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!b().isDragging&&e()},m)),
style:_.ot({"transform-origin":function(){return(d()?c7a(b())*20:10)+"px center"}})},_.q(_.Ps,{data:k,
alt:"","aria-hidden":"true"}))},
else:function(){return _.q("div",{class:g,style:_.ot({"transform-origin":function(){return(d()?c7a(b())*12:6)+"px center"}})})}}))},"Wd");
Zjc.idomCompat=!0;var DW=function(a,b,c,d,e,g){this.getProgressBarRect=a;this.updateProgressBarRect=b;this.getFilmstripYPosition=c;this.setFineScrubbingDraggedTime=d;this.updateFilmStripDraggedYDistance=e;this.resetFilmStripYOffset=g;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.lv(this.onThrottledSeek,100,this)},$jc=function(a,b,c){return function(d){a.handleClick(d,b(),c())}},ckc=function(a,b){return function(c){akc(a,
c,bkc(c),b())}},dkc=function(a,b){return function(c){akc(a,c,{x:c.clientX,
y:c.clientY},b())}},fkc=function(a,b,c){return function(d){var e=b(),g=c();
ekc(a,d,bkc(d),e,g,!0);if(g.onTouchMove)g.onTouchMove(e)}},hkc=function(a,b,c){return function(d){gkc(a,d,b(),c())}},ikc=function(a,b){return function(){a.handleMouseLeave(b())}},jkc=function(a,b,c){return function(){var d=b(),e=c();
EW(a,d,e);if(e.onTouchEnd)e.onTouchEnd(d)}},kkc=function(a,b,c){return function(){var d=b(),e=c();
EW(a,d,e);if(e.onTouchEnd)e.onTouchEnd(d)}},lkc=function(a,b,c){return function(){EW(a,b(),c())}},mkc=function(a,b,c){return function(d){!c().disableScrubbing&&a.startPosition&&gkc(a,d,b(),c())}},nkc=function(a,b,c){return function(){if(!c().disableScrubbing)if(a.startPosition){var d=b(),e=c();
EW(a,b(),c());if(e.onTouchEnd)e.onTouchEnd(d)}else b().setState({isDragging:!1})}},bkc=function(a){a=a.touches[0];
return{x:a.clientX,y:a.clientY}},gkc=function(a,b,c,d){if(b.buttons!==1){if(b.movementX||b.movementY)b.preventDefault(),b.stopPropagation(),a=okc(a,c,b.clientX),c.setState({isHovering:!0,
hoveredTime:a*c.videoDuration})}else pkc(c),ekc(a,b,{x:b.clientX,y:b.clientY},c,d,!1)};
DW.prototype.handleMouseLeave=function(a){pkc(a)};
var pkc=function(a){a.isHovering&&a.setState({isHovering:!1,hoveredTime:0})},akc=function(a,b,c,d){a.startPosition||(a.startPosition=c,a.updateProgressBarRect(),a.controlsWereVisibleBeforeDragging=d.controlsVisible,b.stopPropagation(),_.w("medium_progress_bar_modification")||b.preventDefault())},ekc=function(a,b,c,d,e,g){if(a.startPosition)if(g&&e.isInlinePlayback&&a.startPosition&&!a.hasDraggedTheMinimumDistance&&Math.abs(c.y-a.startPosition.y)>Math.abs(c.x-a.startPosition.x))EW(a,d,e);
else if(b.preventDefault(),b.stopPropagation(),d.videoDuration&&(a.startPosition&&!a.hasDraggedTheMinimumDistance&&(a.hasDraggedTheMinimumDistance=Math.abs(c.x-a.startPosition.x)>=1),e.enableFineScrubbing&&(a.startPosition&&(a.isDraggedForFineScrubbing=-(c.y-a.startPosition.y)>=60),!a.startPosition||c.y>=a.startPosition.y||(d.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:z7a(d.draggedTime,d,e.chapterData)}),a.setFineScrubbingDraggedTime(d.draggedTime),a.updateFilmStripDraggedYDistance(a.startPosition.y,
c.y,d))),a.hasDraggedTheMinimumDistance)){b=okc(a,d,c.x);if(a.isDraggedForFineScrubbing){var k;(k=d.playerApi)==null||k.pauseVideo();d.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:d.draggedTime,filmStripXDistance:z7a(b*d.videoDuration,d,e.chapterData)})}!(k=!e.enableFineScrubbing)&&(k=e.enableFineScrubbing)&&(k=!(a.getFilmstripYPosition(d)<68));k&&d.setState({draggedTime:b*d.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:a.controlsWereVisibleBeforeDragging});
var m;(m=e.cancelAutohideControlsFn)==null||m.call(e)}},EW=function(a,b,c){var d=c.enableFineScrubbing&&b.fineScrubbingActiveState!=="off";
if(b.isDragging||d){d={isDragging:!1,playedTime:b.draggedTime,controlsVisible:a.controlsWereVisibleBeforeDragging};c.enableFineScrubbing&&b.fineScrubbingActiveState!=="on"&&(a.resetFilmStripYOffset(),d.fineScrubbingActiveState="off");var e=e===void 0?p7a:e;var g=_.En(0);g&&e&&_.Yo(g,e,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(b.playedTime*1E3),endMediaTimeMs:Math.round(b.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});b.setState(d);
a.seekThrottle.fire(b.draggedTime,b,7);_.w("mweb_new_progress_bar_play_on_seek")&&a.resumeVideo(b);c.unmuteOnSeek&&(c=b.playerApi,b.volumeMuted&&(c==null||c.unMute()))}else b.setState({controlsVisible:!b.controlsVisible}),(g=c.triggerAutohideControlsAfterDelayFn)==null||g.call(c);a.startPosition=null;a.hasDraggedTheMinimumDistance=!1;a.isDraggedForFineScrubbing=!1;a.controlsWereVisibleBeforeDragging=!1};
DW.prototype.handleClick=function(a,b,c){this.updateProgressBarRect();a.stopPropagation();a=okc(this,b,a.clientX)*b.videoDuration;b.setState({playedTime:a});if(b.playerState!==2){var d;(d=c.triggerAutohideControlsAfterDelayFn)==null||d.call(c)}this.seekThrottle.fire(a,b,7)};
var okc=function(a,b,c){a=a.getProgressBarRect(b);return _.Vw(0,(c-a.left)/a.width,1)};
DW.prototype.resumeVideo=function(a){if(a.draggedTime<a.videoDuration){var b;(b=a.playerApi)==null||b.playVideo()}};
DW.prototype.onThrottledSeek=function(a,b,c){if(b=b.playerApi){var d;if((d=b.getVideoData())==null?0:d.isLive)d=this.getProgressState(b),a+=(d==null?void 0:d.seekableStart)||0;b.seekTo(a,void 0,void 0,void 0,c)}};
DW.prototype.getProgressState=function(a){var b=a==null?void 0:a.getPresentingPlayerType();return a==null?void 0:a.getProgressState(b)};var skc,rkc,tkc,vkc,qkc,wkc,xkc,ykc,zkc;skc=_.Rr(function(a){var b=a.progressBarProps;var c=a.config;var d=a.progressBarWidthPx;var e=a.chapterData;var g=E7a(b,function(){return c().isShortsPage}),k=function(){return!b().isHovering&&!c().isShortsPage};
a={};var m=_.et("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(a.ytPlayerStoryboardHostMwebShorts=function(){return c().isShortsPage&&!1},a));
return _.q("yt-player-storyboard",null,_.q(_.qi,{cond:function(){return b().isDragging||b().isHovering},
then:function(){return _.q(_.qi,{cond:g,then:function(n){return _.q(_.qi,{cond:k,then:function(){return _.q("div",{class:m,"aria-hidden":"true"},_.q(qkc,{props:b,config:c,isBigboard:!0,chapterData:e}))},
else:function(){return _.q(rkc,{props:b,frame:n,config:c,progressBarWidthPx:d,chapterData:e})}})}})}}))},"Xd");
_.ukc=_.Rr(function(a){var b=a.progressBarProps;var c=E7a(b,a.isShortsPage);return _.q("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.q(_.qi,{cond:function(){return b().isDragging||b().isHovering},
then:function(){return _.q(_.qi,{cond:c,then:function(d){return _.q(tkc,{frame:d,props:b,isBigboard:!0})}})}}))},"Yd");
rkc=_.Rr(function(a){var b=a.props;var c=a.frame;var d=a.config;var e=a.progressBarWidthPx;a=a.chapterData;var g={};g=_.et("ytPlayerStoryboardHost",(g.ytPlayerStoryboardHostMwebShorts=function(){return d().isShortsPage&&!1},g.ytPlayerStoryboardHostInlinePlayer=function(){return d().isInlinePlayer},g.ytPlayerStoryboardHostFadeIn=function(){return d().useFadeInAnimation},g));
return _.q("div",{class:g,"aria-hidden":"true",style:function(){var k=b(),m=A7a(c()),n=e();k=B7a(k)/k.videoDuration;var r=n*k,t=m/2+6;m=n-(m/2+6);return"left: "+(r<=t?t/n*100:r>=m?m/n*100:k*100)+"%"}},_.q(_.qi,{cond:function(){var k=b();
return!(d().isShortsPage&&k.videoDuration<15)},
then:function(){return _.q(tkc,{frame:c,props:b,isBigboard:!1})}}),_.q(qkc,{props:b,
config:d,isBigboard:!1,chapterData:a}))},"Zd");
tkc=_.Rr(function(a){var b=a.frame;var c=a.props;var d=a.isBigboard;var e=function(){var m,n;return(n=(m=c().playerApi)==null?void 0:m.getVideoContentRect())!=null?n:{width:0,height:0}},g=function(){return A7a(b())},k=function(){var m=b();
return m?m.height/m.rows:0};
a={};a=_.et((a.ytPlayerStoryboardBigboardImageWrapper=d,a.ytPlayerStoryboardStoryboardImageWrapper=function(){return!d()},a));
return _.q("div",{class:a,style:function(){return"width: "+(d()?e().width:g())+"px; height: "+(d()?e().height:k())+"px;"}},_.q(vkc,{frame:b,
storyboardWidth:g,storyboardHeight:k,storyboardScale:function(){return(d()?e().width:g())/g()}}))},"$d");
vkc=_.Rr(function(a){var b=a.frame;var c=a.storyboardWidth;var d=a.storyboardHeight;var e=a.storyboardScale;var g=function(){var k=b().row,m=b().column,n=c(),r=d(),t=e();return{left:-m*n*t,top:-k*r*t}};
return _.q("img",{src:function(){return b().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+g().left+"px; top: "+g().top+"px; width: "+b().width*e()+"px; height: "+b().height*e()+"px;"}})},"ae");
qkc=_.Rr(function(a){var b=a.props;var c=a.config;var d=a.isBigboard;var e=a.chapterData;a={};a=_.et("ytPlayerStoryboardMetadata",(a.ytPlayerStoryboardMetadataBigboard=d,a));return _.q("div",{class:a},_.q(_.qi,{cond:d,then:function(){return _.q(_.Wh,null,_.q(wkc,{props:b,config:c}),_.q(_.qi,{cond:function(){a:{var g=b();var k=c(),m=e(),n;if((k==null?0:k.activeChapter)&&((n=_.y(k==null?void 0:k.activeChapter,Xw))==null?0:n.title))g=!0;else{k=_.h(f7a(m));for(k=k.next();!k.done;k=k.next()){g=(k=_.y(k.value,
SFb))&&C7a(g,k);break a}g=!1}}return g},
then:function(){return _.q(xkc,{props:b,config:c,isBigboard:!0,chapterData:e})}}))},
else:function(){return _.q(_.Wh,null,_.q(xkc,{props:b,config:c,isBigboard:!0,chapterData:e}),_.q(wkc,{props:b,config:c}))}}))},"be");
wkc=_.Rr(function(a){var b=a.props;var c=a.config;a={};a=_.et("ytPlayerStoryboardTimestamp",(a.ytPlayerStoryboardTimestampShorts=function(){return c().isShortsPage},a.ytPlayerStoryboardTimestampIsHovering=function(){return b().isHovering||c().isShortsPage&&!0},a));
return _.q("div",{class:a},_.q(_.Wh,null,function(){return _.D7a(B7a(b()))}))},"ce");
xkc=_.Rr(function(a){var b=a.props;var c=a.config;var d=a.isBigboard;var e=a.chapterData;a={};d=_.et("ytPlayerStoryboardTitle",(a.ytPlayerStoryboardTitleBigboard=d,a));return _.q("div",{class:d},_.q(_.qi,{cond:function(){return!c().isShortsPage},
then:function(){return _.q(ykc,{props:b,activeChapter:function(){return c().activeChapter},
chapterData:e})}}))},"de");
ykc=_.Rr(function(a){var b=a.props;var c=a.activeChapter;var d=a.chapterData;return _.q(_.Wh,null,_.q(_.ri,{each:function(){return f7a(d())},
keyBy:"INDEX"},function(e){return _.q(_.Wh,null,_.q(_.qi,{cond:function(){return _.y(e(),SFb)&&C7a(b(),_.y(e(),SFb))},
then:function(){return _.q(zkc,{timedMarker:function(){return _.y(e(),SFb)}})}}))}),_.q(_.qi,{cond:function(){var e;
return c()&&((e=_.y(c(),Xw))==null?void 0:e.title)},
then:function(e){return _.q(_.tt,{text:e,noPreWrap:!0})}}))},"ee");
zkc=_.Rr(function(a){var b=a.timedMarker;return _.q(_.Wh,null,_.q("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.q(_.qt,{icon:function(){return b().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.q(_.tt,{text:function(){return b().label},
noPreWrap:!0}))},"fe");_.Akc=_.Rr(function(a){var b=a.progressBarProps;var c=a.playheadData;var d=a.config;a=_.Pl();var e=_.Pl(),g=_.Pl(),k=_.h(_.ih({width:0,left:0},void 0,"v323Dc")),m=k.next().value,n=k.next().value,r=function(){g.value&&n(g.value.getBoundingClientRect())},t=function(){m().width<=0&&r();
return m()};
Wl("resize",r);var u=new DW(t,function(){},function(){return 0},function(){},function(){},function(){}),x=function(){return b()};
k=_.h(_.ih(!1,void 0,"tcVkKf"));var A=k.next().value,C=k.next().value;_.Rl(e,"mouseenter",function(){C(!0);d().position===2?setTimeout(function(){r()},100):r()});
_.Rl(e,"mouseleave",function(){C(!1);ikc(u,x)()});
k=_.lt(function(Ia){d().doSeekOnClick&&$jc(u,x,d)(Ia);return!1});
var F=_.lt(function(Ia){ckc(u,x)(Ia);return!1}),J=_.lt(function(Ia){dkc(u,x)(Ia);
return!1}),I=_.lt(function(Ia){fkc(u,x,d)(Ia);
return!1}),R=_.lt(function(Ia){hkc(u,x,d)(Ia);
return!1}),da=_.lt(function(){jkc(u,x,d)();
return!1}),V=_.lt(function(){kkc(u,x,d)();
return!1}),fa=_.lt(function(){lkc(u,x,d)();
return!1});
Wl("mousemove",mkc(u,x,d));Wl("mouseup",nkc(u,x,d));_.wi(function(){q7a(e.value);C(!1);r();nkc(u,x,d)()});
var aa={};aa=_.et("ytPlayerProgressBarHost",function(){return d().className},(aa.ytPlayerProgressBarHostReadOnly=function(){return d().disableScrubbing},aa.ytPlayerProgressBarHostHidden=function(){return d().hideProgressBar&&!A()},aa.ytPlayerProgressBarHostLowerPlayer=function(){return d().position===0},aa.ytPlayerProgressBarHostBottomEdge=function(){return d().position===1},aa.ytPlayerProgressBarHostBottomInset=function(){return d().position===2},aa.ytPlayerProgressBarHostCustom=function(){return d().position===
3},aa));
var ma={},Ba=_.et("ytPlayerProgressBarBackground",(ma.ytPlayerProgressBarBackgroundHide=function(){return d().position===2&&!A()&&!b().isDragging},ma));
ma={};ma=_.et("ytPlayerProgressBarDragContainer",(ma.ytPlayerProgressBarDragContainerBottomEdge=function(){return d().position===1},ma));
var Ca={};Ca=_.et("ytPlayerProgressBarProgressBar",(Ca.ytPlayerProgressBarProgressBarInset=function(){return d().position===2},Ca.ytPlayerProgressBarProgressBarInsetMinimized=function(){return d().position===2&&!A()&&!b().isDragging},Ca));
var ya=function(){return Math.floor(b7a(b())*100)};
return _.q("yt-progress-bar",{el:a,class:aa},_.q(_.qi,{cond:function(){return d().position===2},
then:function(){return _.q("div",{class:Ba})}}),_.q("div",{el:e,
"on:click":k,"on:touchstart":F,"on:mousedown":J,"on:touchmove":I,"on:mousemove":R,"on:touchend":da,"on:mouseup":V,"on:touchcancel":fa,class:ma,role:"slider","aria-valuenow":ya,"aria-valuetext":function(){return ya()+"%"},
tabindex:0,"aria-label":_.vo("SEEK_SLIDER")},_.q("div",{el:g,class:Ca},_.q(Xjc,{progressBarProps:b,config:d,highContrast:function(){return!!d().isInlinePlayback}}),_.q(_.qi,{cond:function(){return d().chapterData&&g7a(d().chapterData)},
then:function(){return _.q(Vjc,{progressState:b,multiMarkersPlayerBarRenderer:function(){return d().chapterData},
progressBarWidth:function(){return m().width}})},
else:function(){return _.q(Yjc,{progressBarProps:b,config:d})}}),_.q(Zjc,{progressBarProps:b,
playheadData:c,interpolateDotPosition:function(){return d().position!==2},
hidePlayhead:function(){return d().playheadDotBehavior===1&&!A()}}))),_.q(skc,{progressBarProps:b,
config:function(){return{activeChapter:v7a(b(),d().chapterData),getProgressBarWidthPx:function(){return t().width},
isShortsPage:!!d().isShortsPage,isInlinePlayer:!!d().isInlinePlayback,useFadeInAnimation:!!d().isInlinePlayback}},
progressBarWidthPx:function(){return m().width},
chapterData:function(){return d().chapterData}}))},"ge");
_.Akc.idomCompat=!0;Object.assign({},_.h7a(),{setState:function(){},
domMeasurements:{},appApi:_.a7a(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var Bkc;
_.Ckc=_.Rr(function(){var a,b=(a=_.Zw(F7a().playerApi))!=null?a:void 0;a=_.h(_.ih(!1,void 0,"HLFBmb"));var c=a.next().value,d=a.next().value;a=_.h(_.ih(!1,void 0,"lHH9bc"));var e=a.next().value,g=a.next().value;a=_.h(_.ih(!1,void 0,"zsY7yd"));var k=a.next().value,m=a.next().value;a=_.h(_.ih(!1,void 0,"KeHQgc"));var n=a.next().value,r=a.next().value;a=_.h(_.ih(0,void 0,"gLLCj"));var t=a.next().value,u=a.next().value;a=_.h(_.ih(0,void 0,"s3RYkf"));var x=a.next().value,A=a.next().value;a=_.h(_.ih(!1,void 0,
"Dn608e"));var C=a.next().value,F=a.next().value;a=_.h(_.ih(0,void 0,"AnkH1b"));var J=a.next().value,I=a.next().value;a=_.h(_.ih(0,void 0,"QYNL0b"));var R=a.next().value,da=a.next().value;a=_.h(_.ih("",void 0,"Yzw45d"));var V=a.next().value,fa=a.next().value;a=_.h(_.ih(-1,void 0,"iiVI0c"));var aa=a.next().value,ma=a.next().value,Ba=_.ph(function(){var Ca={controlsVisible:c(),isOverlayHidden:e(),shouldWaitToHideControls:k(),isDragging:n(),isHovering:C(),videoDuration:J(),playedTime:R(),videoId:V(),
draggedTime:x(),hoveredTime:t(),playerState:aa()};return Object.assign({},_.h7a(),Ca,{domMeasurements:{},setState:function(ya){ya.controlsVisible!==void 0&&d(ya.controlsVisible);ya.isOverlayHidden!==void 0&&g(ya.isOverlayHidden);ya.shouldWaitToHideControls!==void 0&&m(ya.shouldWaitToHideControls);ya.isDragging!==void 0&&r(ya.isDragging);ya.isHovering!==void 0&&F(ya.isHovering);ya.draggedTime!==void 0&&A(ya.draggedTime);ya.hoveredTime!==void 0&&u(ya.hoveredTime);ya.videoDuration!==void 0&&I(ya.videoDuration);
ya.playedTime!==void 0&&da(ya.playedTime);ya.videoId!==void 0&&fa(ya.videoId);ya.playerState!==void 0&&ma(ya.playerState)},
appApi:_.a7a(),playerApi:b})},void 0,"ZW7y9");
_.pi(function(){b==null||b.addEventListener("onVideoProgress",l7a(Ba));b==null||b.addEventListener("onVideoDataChange",k7a(Ba));b==null||b.addEventListener("onStateChange",i7a(Ba))});
_.zh(function(){if(b==null?0:b.isReady())b==null||b.removeEventListener("onVideoProgress",l7a(Ba)),b==null||b.removeEventListener("onVideoDataChange",k7a(Ba)),b==null||b.removeEventListener("onStateChange",i7a(Ba))});
return _.q("desktop-shorts-player-controls",null,_.q(Bkc,{playerControlsProps:Ba}))},"he");
Bkc=_.Rr(function(a){var b=a.playerControlsProps;return _.q("div",{class:"desktopShortsPlayerControlsWizHost"},_.q(_.Akc,{progressBarProps:b,config:function(){return{isShortsPage:!0,hideProgressBar:b().videoDuration<30&&b().playerState!==2&&!b().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"ie");_.Zl(_.K7a);_.Dkc=_.Rr(function(a){var b=a.data;return _.q("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.q(_.rt,{command:function(){return b().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.q(_.qi,{cond:function(){return b().iconName},
then:function(c){return _.q(_.qt,{icon:c})}}),_.q("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return b().text}),_.q(_.qi,{cond:function(){return b().showEndChevron},
then:function(){return _.q(_.qt,{icon:"CHEVRON_RIGHT"})}})))},"je");var Ekc=_.Rr(function(a){var b=a.data;var c=a.overlayDensity;a={};return _.q("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.q(_.Hu,{data:function(){return b().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(d){var e=d.data;
return _.q(_.RK,{data:function(){if((c==null?void 0:c())===1){var g=Object;var k=g.assign,m=e();var n={avatarViewModel:Object.assign({},_.y(e().avatar,_.cv),{avatarImageSize:"AVATAR_SIZE_48"})};g=k.call(g,{},m,{avatar:n})}else g=e();return g}})}}),_.q(_.tt,{className:_.et("ytReelChannelBarViewModelChannelName",(a.ytReelChannelBarViewModelChannelNameLarge=function(){return(c==null?void 0:c())===1},a)),
text:function(){return b().channelName},
linkInheritColor:!0,userInput:!0}),_.q("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.q(_.Hu,{data:function(){return b().subscribeButtonViewModel}},{subscribeButtonViewModel:function(d){var e=d.data;
return _.q(KXb,{data:function(){return(c==null?void 0:c())===1?Object.assign({},e(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},e().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):e()},
isOverlay:!1})},
buttonViewModel:_.Qu})),_.q("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.q(_.Hu,{data:function(){var d,e;return(e=_.y((d=b())==null?void 0:d.sponsorButtonViewModel,wEb))==null?void 0:e.sponsorButton}},{buttonViewModel:function(d){return _.q(_.Qu,{data:d.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"ke");var Fkc=_.Rr(function(a){var b={};return _.q("yt-reel-multi-format-link-view-model",{class:_.et("ytReelMultiFormatLinkViewModelHost",(b.ytReelMultiFormatLinkViewModelHostTall=!0,b))},_.q(_.rt,{ariaLabel:function(){return a.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.Ds(a.data().command)},
dangerousStopPropagation:!1},_.q("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.q(_.qi,{cond:function(){return a.data().icon},
then:function(c){return _.q(_.Ps,{data:c,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.q(_.tt,{text:function(){return a.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"le");
Fkc.idomCompat=!0;var Gkc=_.Rr(function(a){var b=a.data;var c=_.Pl();a=_.h(_.ih(!1,void 0,"XwMNzb"));var d=a.next().value,e=a.next().value;a=_.h(_.ih(!1,void 0,"ZysOx"));var g=a.next().value,k=a.next().value,m=function(){return b().isMultiLineSa},n=_.tu(rSa,function(){var I,R;
return(R=(I=b().toggleableContent)==null?void 0:I.entityKey)!=null?R:""}),r=function(){var I,R,da;
return(da=b().toggleableContent)!=null&&da.entityKey?(R=(I=n())==null?void 0:I.value)!=null?R:!1:!1},t=function(){var I,R,da,V,fa,aa,ma,Ba,Ca,ya,Ia;
return b().toggleableContent?r()?(I=b().toggleableContent)==null?void 0:I.toggledData:(R=b().toggleableContent)==null?void 0:R.untoggledData:{primaryText:(Ba=(da=b().defaultContent)==null?void 0:da.primaryText)!=null?Ba:b().text,secondaryText:(V=b().defaultContent)==null?void 0:V.secondaryText,onTapCommand:(Ca=(fa=b().defaultContent)==null?void 0:fa.onTapCommand)!=null?Ca:b().onTapCommand,icon:(ya=(aa=b().defaultContent)==null?void 0:aa.icon)!=null?ya:b().icon,image:(Ia=(ma=b().defaultContent)==null?
void 0:ma.image)!=null?Ia:b().image}},u=function(){return m()?b().trailingTapTarget:void 0};
a=function(I,R){return function(){return d()?R:I}};
var x={leadingSection:a("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:a("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:a("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:a("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};a={};a=_.et((a.ytShortsSuggestedActionViewModelStaticHost=function(){return!m()},a.ytShortsSuggestedActionViewModelDynamicHost=m,a.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return m()&&g()},a.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return m()&&!g()},a));
_.wi(function(){if(m()){var I=0,R;if((R=b().animationParams)==null?0:R.shouldExpand){var da,V;I=((V=(da=b().animationParams)==null?void 0:da.expansionDelaySecs)!=null?V:0)*1E3}var fa,aa=((fa=b().animationParams)==null?0:fa.shouldExpand)?setTimeout(function(){e(!0)},I):void 0,ma,Ba;
I=((ma=b().animationParams)==null?0:ma.visibilityDelaySecs)?((Ba=b().animationParams)==null?NaN:Ba.visibilityDelaySecs)*1E3:0;var Ca=setTimeout(function(){k(!0)},I);
_.zh(function(){aa&&clearTimeout(aa);clearTimeout(Ca)})}});
var A=function(I){_.Gs(I,Object.assign({},{form:{element:c.value}}))},C=_.lt(function(){var I,R=(I=t())==null?void 0:I.onTapCommand;
R&&A(R)}),F=_.lt(function(){var I,R;
if(I=(R=u())==null?void 0:R.onTapCommand)return A(I),!1}),J=_.ot({"vertical-align":"bottom",
"border-radius":function(){var I;return m()?((I=b().defaultContent)==null?0:I.isCircleImage)?"50%":"4px":"0px"},
width:function(){var I,R,da;return m()&&((I=b().defaultContent)==null?0:I.imageSize)?((da=(R=b().defaultContent)==null?void 0:R.imageSize)!=null?da:24)+"px":null},
height:function(){var I,R,da;return m()&&((I=b().defaultContent)==null?0:I.imageSize)?((da=(R=b().defaultContent)==null?void 0:R.imageSize)!=null?da:24)+"px":null}});
return _.q("yt-shorts-suggested-action-view-model",{class:a,el:c},_.q("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.q("button",{class:_.et(function(){return m()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var I;
return(I=b().useFullRoundedBorder)!=null&&I?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!u()&&m()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":m()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var I;
return(I=b().disableFixedHeight)!=null&&I?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""}),
"on:click":C},_.q(_.ut,{model:{color:4}}),_.q("div",{class:_.et(function(){return m()?x.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.q(_.qi,{cond:function(){var I;
return(I=t())==null?void 0:I.image},
then:function(I){return _.q(_.Ps,{data:I,alt:"",className:function(){return m()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:J})}}),_.q(_.qi,{cond:function(){var I,R;
return(I=t())==null?void 0:(R=I.icon)==null?void 0:R.iconType},
then:function(I){return _.q(_.qt,{icon:I,active:r,className:function(){return m()?d()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.q("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.q(_.qi,{cond:function(){var I;
return(I=t())==null?void 0:I.primaryText},
then:function(I){return _.q("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.q(_.tt,{text:I}))}}),_.q(_.qi,{cond:function(){var I;
return(I=t())==null?void 0:I.secondaryText},
then:function(I){return _.q("div",{class:x.secondaryText},_.q(_.tt,{text:I}))}}))),_.q(_.qi,{cond:u,
then:function(I){return _.q("div",{class:x.trailingSection,"aria-label":function(){var R;return(R=I().a11yLabel)!=null?R:""},
"on:click":F,role:"button",tabindex:0},_.q(_.ut,{model:{color:4}}),_.q(_.qt,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"me");var Hkc=_.Rr(function(a){var b=a.data;var c=a.overlayDensity;var d=_.Pl();a=_.lt(function(k){if(_.aYa(_.Vu(k),d.value,["A".toString()]))return!1;(k=b().truncatedTextOnTapCommand)&&_.Gs(k);return!1});
var e={},g={};return _.q("yt-shorts-video-title-view-model",{el:d,class:_.et("ytShortsVideoTitleViewModelHost",(e.ytShortsVideoTitleViewModelHostClickable=function(){return!!b().truncatedTextOnTapCommand},e)),
"on:click":a},_.q("h2",{class:_.et("ytShortsVideoTitleViewModelShortsVideoTitle",(g.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(c==null?void 0:c())===1},g))},_.q(_.tt,{text:function(){return b().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"ne");_.Ikc=_.Rr(function(a){var b=a.data;var c=a.overlayDensity;return _.q("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.q(_.Hu,{data:function(){return b().metadataItems}},{badgeViewModel:function(d){return _.q("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.q(_.vL,{data:d.data}))},
playerDisclosureViewModel:function(d){return _.q("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.q(_.Dkc,{data:d.data}))},
shortsSuggestedActionViewModel:function(d){return _.q("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.q(Gkc,{data:d.data}))},
reelChannelBarViewModel:function(d){return _.q("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.q(Ekc,{data:d.data,overlayDensity:c}))},
reelMultiFormatLinkViewModel:function(d){return _.q("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.q(Fkc,{data:d.data}))},
shortsVideoTitleViewModel:function(d){return _.q("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.q(Hkc,{data:d.data,overlayDensity:c}))},
reelSoundMetadataViewModel:function(d){return _.q("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.q(_.Rhc,{data:d.data}))}}))},"oe");var Jkc=_.Rr(function(a){var b=_.Or(a,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),c=b.size,d=b.onTap,e=b.disabled,g=b.tooltipText;return _.q("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.q(vv,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:c(),disabled:e(),tooltipText:g(),onTap:d}},
iconName:a.iconType}))},"pe"),Kkc=_.Rr(function(a){function b(t){t.stopPropagation();
t.code==="ArrowUp"?(t.preventDefault(),O7a(m.value)):t.code==="ArrowDown"?(t.preventDefault(),P7a(m.value)):t.code==="KeyM"?M7a():(t.code==="KeyK"||t.code==="Space")&&N7a(n())}
var c=_.Or(a,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});a=c.previousButtonDisabled;var d=c.nextButtonDisabled,e=c.data,g=c.playabilityStatus,k=c.previewThumbnail,m=_.Pl(),n=_.Ht(_.BFa),r;_.pi(function(){(r=_.Hf(m.value))&&r.addEventListener("keydown",b)});
_.zh(function(){var t;(t=r)==null||t.removeEventListener("keydown",b)});
c=function(){var t,u,x;return(t=e())==null?void 0:(u=t.reelPlayerOverlayRenderer)==null?void 0:(x=u.likeButton)==null?void 0:x.likeButtonRenderer};
return _.q("ytd-shorts-miniplayer-overlay",{el:m,class:"ytdShortsMiniplayerOverlayHost"},_.q("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.ot({"background-image":function(){var t=k();return t?'url("'+_.Vs(t.thumbnails)+'")':""}})}),_.q("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.q("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.q(Jkc,{iconType:function(){var t=n();
return t===2||t===-1||t===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){N7a(n())},
tooltipText:function(){var t=n();return t===1||t===3?_.vo("PLAYER_LABEL_PAUSE"):_.vo("PLAYER_LABEL_PLAY")}}),_.q(_.K7a,null)),_.q("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.q(Jkc,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:a,onTap:function(){O7a(m.value)},
tooltipText:_.vo("PREVIOUS_VIDEO_LABEL")}),_.q(Jkc,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:d,onTap:function(){P7a(m.value)},
tooltipText:_.vo("NEXT_VIDEO_LABEL")}),_.w("web_shorts_pip_like_button")?_.q("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.q(mec,{buttonTooltipPosition:"left",data:c,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.q("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.q(_.qi,{cond:function(){var t,u;return _.y((t=e())==null?void 0:(u=t.reelPlayerOverlayRenderer)==null?void 0:u.metapanel,
sEb)},
then:function(t){return _.q("div",{class:_.et("ytdShortsMiniplayerOverlayInteractive")},_.q(_.Ikc,{data:t}))}})),_.q("div",{class:_.et("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var t;return!((t=e())==null||!t.adsOverlay)||g()&&!g6a(g())}},_.q("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.q(_.Ckc,null)))),_.q(_.qi,{cond:function(){var t=e(),u,x;
t=_.y(t==null?void 0:(u=t.adsOverlay)==null?void 0:(x=u.fulfillmentContent)==null?void 0:x.fulfilledLayout,czb);return _.y(t==null?void 0:t.renderingContent,hzb)},
then:function(t){return _.q("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.q(O4b,{data:t}))}}))},"qe");var Q7a=_.Rr(function(){var a=_.h(_.ih(new _.rf(NaN,NaN),void 0,"dCf7yb")),b=a.next().value,c=a.next().value;a=_.h(_.ih(!1,void 0,"smJHAc"));var d=a.next().value,e=a.next().value,g=_.h(_.ih(!1,void 0,"HnqDAc"));a=g.next().value;var k=g.next().value,m=_.v().resolve(_.$w).miniplayerPropSignalMap[0],n=m.data,r=m.shortsData,t=m.nextButtonDisabled,u=m.shortsPreviewThumbnail,x=m.previousButtonDisabled,A=m.externalPlaylistData;g=m.toastData;var C=m.playabilityStatus,F=m.isDisabled;m=_.Ht(_.Fv);_.Ol("yt-pip-window-resized",
function(da){c(da)});
_.Ol("yt-activate-pip-miniplayer",function(){return _.l(function(da){k(!0);_.ue(da)})});
var J=function(){var da;return!((da=A())==null||!da.contents)&&d()},I=function(){var da=b(),V=!!n(),fa=J();
da=da.clone();V&&(da.height-=76);fa&&(da.height-=285);return da},R=function(){e(!d())};
return _.q("ytd-pip-container",{class:"ytdPipContainerHost"},_.q(_.qi,{cond:a,then:function(){return _.q(_.Sjc,{isDisabled:F,playabilityStatus:C,size:I})}}),_.q(_.qi,{cond:n,
then:function(){return _.q(_.Qjc,{data:n,expanded:d,onExpandClick:R,playlistData:A})}}),_.q(_.qi,{cond:J,
then:function(){return _.q("div",{class:"ytdPipContainerPlaylistPanel"},_.q(_.kec,{data:A,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.q(_.qi,{cond:m,
then:function(){return _.q(Kkc,{data:r,nextButtonDisabled:t,previousButtonDisabled:x,playabilityStatus:C,previewThumbnail:u})}}),_.q("div",{class:"ytdPipContainerToast"},_.q(_.Tjc,{toastData:g})))},"re");var FW=function(a,b){var c=this;this.pipController=a;this.JSC$16289_clientRoot=b;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=W6a();this.watchPipEnabled=_.w("web_watch_pip");this.shortsPipEnabled=_.w("web_shorts_pip");this.JSC$16289_watchWhileEnabled=_.w("kevlar_watch_while_v2");this.miniplayerServiceActionMap={"yt-downloaded-video-deleted":this.onDownloadedVideoDeleted.bind(this),"yt-show-miniplayer-command":this.onShowMiniplayerCommand.bind(this)};
this.watchPipMode=this.shortsPipMode=this.watchWhileMode=this.miniplayerToPipMode=this.userDeactivatedWatchWhile=this.isReadyToResume=this.hasPlaylistData=this.isSingleOptionSurveyActive=!1;_.zF(_.Yp(),_.xFa,function(d){c.isSingleOptionSurveyActive=d});
this.JSC$16289_onPlayerPlayVideo=this.JSC$16289_onPlayerPlayVideo.bind(this);this.onPlayerCloseMiniplayer=this.onPlayerCloseMiniplayer.bind(this);this.onPlayerExpandMiniplayer=this.onPlayerExpandMiniplayer.bind(this);this.onPlayerStateChange=this.onPlayerStateChange.bind(this);this.handleMediaSessionPipActivation=this.handleMediaSessionPipActivation.bind(this);_.Ml(_.Ll.getInstance(),this.miniplayerServiceActionMap,this.JSC$16289_clientRoot);window.documentPictureInPicture&&_.Ea()&&!_.w("web_pip_logging_killswitch")&&
_.xl("genericClientExperimentEvent",{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},VWb,Qkc,Rkc,Vkc,c9b,Wkc,Xkc,Ykc,Tkc;
FW.prototype.handleMediaSessionPipActivation=function(){var a=this,b;return _.l(function(c){_.xF().mediaSessionPipActivation=!0;b=_.v().resolve(_.Zt);return b.isOnWatch()&&a.watchPipEnabled?(_.xF().watchPipActivation=!0,_.Lkc(a,b.data),c.jumpTo(0)):b.isOnShorts()&&a.shortsPipEnabled?(_.xF().shortsPipActivation=!0,_.Mkc(a),c.jumpTo(0)):a.isMiniplayerActive()&&a.watchPipEnabled&&!a.watchWhileMode?_.p(c,Nkc(a),0):c.jumpTo(0)})};
var Nkc=function(a){var b,c,d,e;return _.l(function(g){if(g.nextAddress==1)return b=!a.miniplayerToPipMode,c=a.playerElement,d=a.miniplayerData,e=a.watchResponse,_.p(g,a.deactivate(),2);if(g.nextAddress!=3)return b?(_.xF().mediaSessionPipActivation=!0,_.xF().watchPipActivation=!0):_.xF().miniplayerButtonActivation=!0,_.p(g,a.activate(c,d,e),3);a.miniplayerToPipMode=b;_.ue(g)})};
FW.prototype.onDownloadedVideoDeleted=function(a){var b,c=_.y((b=this.miniplayerData)==null?void 0:b.watchEndpoint,_.Un),d,e;c&&((d=this.watchResponse)==null?void 0:(e=d.playerResponse)==null?void 0:e.offlineState)!==void 0&&(b=c.videoId)&&a&&b===a&&this.close()};
FW.prototype.onShowMiniplayerCommand=function(a){var b=this,c,d,e,g,k,m,n,r,t,u,x,A,C;return _.l(function(F){switch(F.nextAddress){case 1:return c=_.y(a,kCb),e=(d=c)==null?void 0:d.miniplayerCommand,g=_.y(e,_.Un),e&&g&&!b.active?_.p(F,_.IF.getInstance(),2):F.return();case 2:return k=F.yieldResult,_.p(F,(m=k)==null?void 0:m.get("yt-miniplayer-shown-video-id"),3);case 3:n=F.yieldResult;r=g.videoId;if(!r||n===r)return F.return();t=_.v().resolve(_.Zt);if(t.isOnWatch())return _.Dl(Error("Fj")),F.return();
u={channelItem:{externalId:btoa(r)}};b.readyToResumeVe=_.ku(121253,void 0,void 0,u);_.w("miniplayer_r2r_ve_after_activate_killswitch")&&(_.GW(b,{readyToResumeVe:b.readyToResumeVe}),b.isReadyToResume=!0);_.xF().showMiniplayerCommandActivation=!0;return _.p(F,_.d9b(b,e,!0),4);case 4:return!_.w("miniplayer_r2r_ve_after_activate_killswitch")&&b.active?(_.GW(b,{readyToResumeVe:b.readyToResumeVe,continueWatching:!0,premiumBranding:!((x=c)==null||!x.showPremiumBranding)}),b.isReadyToResume=!0):_.GW(b,{continueWatching:!0,
premiumBranding:!((A=c)==null||!A.showPremiumBranding)}),_.w("ytd_miniplayer_to_wiz")&&_.GW(b,{isReadyToResume:!0}),_.p(F,(C=k)==null?void 0:C.set("yt-miniplayer-shown-video-id",g.videoId),5);case 5:b.readyToResumeVe=void 0,_.ue(F)}})};
FW.prototype.init=function(a){this.miniplayerEl?_.Dl(new _.qj("MiniplayerService already initialized.")):this.miniplayerEl=a};
FW.prototype.isInitialized=function(){var a=!!this.miniplayerEl;a||_.Dl(new _.qj("MiniplayerService used before initialized."));return a};
_.Lkc=function(a,b){if(a.isInitialized()){var c=_.Z6a(b.response,b.playerResponse),d=_.v().resolve(_.Zt).getPlayerFromWatch();_.xF().currentEndpoint=c.watchEndpoint||null;a.activate(d,c,b)}};
_.Mkc=function(a){if(a.isInitialized()){var b=_.v().resolve(_.Zt).getPlayerFromShorts();a.activate(b)}};
VWb=function(a,b){var c;(c=!a.isInitialized())||(c=_.v().resolve(_.Zt).isOnWatch()&&a.watchPipMode,c=!(a.isMiniplayerActive()&&(_.xF().userActivation||_.xF().lockupActivation||c)));if(c)return!1;Okc(a,b)?_.CW(a):c9b(a,b);return a.watchPipMode?!_.v().resolve(_.Zt).isOnWatch():!0};
FW.prototype.isMiniplayerActive=function(){return this.active};
var Okc=function(a,b){var c;b=(c=_.y(b,_.Un))==null?void 0:c.videoId;var d,e;a=(e=_.y((d=a.miniplayerData)==null?void 0:d.watchEndpoint,_.Un))==null?void 0:e.videoId;return b!=null&&b===a};
FW.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.io(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.lo(this.miniplayerEl,"yt-navigate-home-action"))};
_.d9b=function(a,b,c,d){c=c===void 0?!1:c;var e,g,k;return _.l(function(m){switch(m.nextAddress){case 1:if(a.active){m.jumpTo(2);break}e=_.v().resolve(_.Zt);if(k=(g=a.playerElement)!=null?g:e.getPlayerFromWatch()){m.jumpTo(3);break}return _.p(m,_.v().resolve(_.fu),4);case 4:k=e.getPlayerFromWatch();case 3:if(!k){_.Dl(Error("Hj"));m.jumpTo(2);break}return _.p(m,a.activate(k,d),2);case 2:return a.active?_.p(m,c9b(a,b,c),0):m.return()}})};
FW.prototype.activate=function(a,b,c){var d=this,e,g,k,m,n,r,t,u;return _.l(function(x){switch(x.nextAddress){case 1:if(!d.isInitialized())return x.return();if(!a)return _.Dl(Error("Hj")),x.return();if(_.aJb()||d.isMiniplayerActive())var A=!0;else A=_.xF().watchPipActivation||_.xF().watchWhileActivation,_.v().resolve(_.Zt).isOnWatch()&&!A?(_.Dl(new _.qj("miniplayer activated on watch page")),A=!0):A=_.xF().watchWhileActivation&&d.userDeactivatedWatchWhile?!0:!1;if(A)return $Ib(),x.return();e=_.xF().mediaSessionPipActivation;
g=_.xF().shortsPipActivation;k=_.xF().watchPipActivation;n=(m=_.xF().watchWhileActivation)||k;r=k||g;if(!d.pictureInPictureEnabled()||!r){x.jumpTo(2);break}return _.p(x,Pkc(d,e),3);case 3:if(!x.yieldResult)return _.Dl(Error("Gj")),$Ib(),x.return();case 2:return d.setActive(!0),d.watchResponse=c,d.playerElement=a,d.updateMiniplayerData(b),_.w("miniplayer_create_ve_after_activate_killswitch")&&Qkc(d),_.p(x,Rkc(d,a),4);case 4:if(!d.active)return _.Dl(new _.qj("miniplayer deactivated during activation")),
d.removePlayerListeners(),x.return();A=_.v().resolve(_.TF);A.addEventListener("yt-navigate",_.gr(d,d.onPlaylistNavigate));A.addEventListener("yt-playlist-data-updated",_.gr(d,d.JSC$16289_onPlaylistDataUpdated));d.JSC$16289_onPlaylistDataUpdated();$Ib();d.JSC$16289_watchWhileEnabled&&_.Skc(d,m);d.pictureInPictureEnabled()&&d.shortsPipEnabled&&(d.shortsPipMode=g,_.Yp().dispatch(MJb(d.shortsPipMode)));d.pictureInPictureEnabled()&&d.watchPipEnabled&&(d.watchPipMode=k);d.player&&(t=d.player.getPlayerState(),
u=t===1,_.Yp().dispatch(VJb(t)),_.mo(d.miniplayerEl,"yt-miniplayer-play-state-changed",[u]),_.xF().isVideoPlaying=u);d.watchPipEnabled&&_.Q5a(d.handleMediaSessionPipActivation);_.mo(d.miniplayerEl,"yt-miniplayer-endpoint-changed");Tkc(d);_.Ukc(d);return d.shortsPipMode||d.watchPipMode?_.p(x,_.no(d.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.w("ytd_miniplayer_to_wiz")?_.p(x,_.no(d.miniplayerEl,"yt-activate-miniplayer",[n]),6):_.p(x,_.no(d.miniplayerEl,"yt-activate-miniplayer-action",[a,n]),6);
case 6:_.w("miniplayer_create_ve_after_activate_killswitch")||Qkc(d),Vkc(d,!0),_.ue(x)}})};
FW.prototype.updateMiniplayerData=function(a){this.miniplayerData=a;_.GW(this,{data:a})};
_.Ukc=function(a){if(_.w("miniplayer_service_controls_disabling")){var b,c,d=((b=a.miniplayerData)==null?void 0:(c=b.miniplayerRenderer)==null?void 0:c.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";b=a.watchWhileMode||a.watchPipMode?d&&!_.v().resolve(_.Zt).isOnWatch():d;_.GW(a,{isDisabled:b});var e,g;c=_.y((e=a.miniplayerData)==null?void 0:(g=e.miniplayerRenderer)==null?void 0:g.minimizedEndpoint,_.JE);!_.w("miniplayer_disabled_open_popup_killswitch")&&b&&c&&_.v().resolve(_.KJ).openSheet({openPopupActionCommand:{openPopupAction:c}},
a.miniplayerEl)}};
Qkc=function(a){if(a.watchResponse&&(!a.watchWhileMode||!_.w("kevlar_watch_while_counterfactual"))){var b,c=(b=a.watchResponse.playerResponse)==null?void 0:b.trackingParams;c&&(_.GW(a,{expandVe:_.ku(35989),closeVe:_.ku(34699),readyToResumeCloseVe:_.ku(131070),repositionVe:_.ku(226204),resizeVe:_.ku(226205)}),_.GW(a,{playerVe:_.ps(c)}))}};
Rkc=function(a,b){return _.l(function(c){if(c.nextAddress==1)return b.preparePlayer(),_.p(c,b.getPlayerPromise(),2);a.player=c.yieldResult;a.player&&(a.player.addEventListener("onPlayVideo",a.JSC$16289_onPlayerPlayVideo),a.player.addEventListener("onCloseMiniplayer",a.onPlayerCloseMiniplayer),a.player.addEventListener("onExpandMiniplayer",a.onPlayerExpandMiniplayer),a.player.addEventListener("onStateChange",a.onPlayerStateChange));_.ue(c)})};
_.f=FW.prototype;_.f.JSC$16289_onPlayerPlayVideo=function(a){var b=a.sessionData&&"autonav"in a.sessionData,c;a.sessionData&&a.sessionData.itct&&(c=a.sessionData.itct);var d=a.watchEndpoint;b=d&&b?_.AUa(d,c):_.dp(a.videoId,a.listId||void 0,c);a.sessionData&&_.ao(_.y(b.commandMetadata,_.co).url,a.sessionData);c9b(this,b)};
_.f.onPlayerExpandMiniplayer=function(){_.CW(this)};
_.f.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.f.onPlayerStateChange=function(){if(this.player){var a=this.player.getPlayerState(),b=a===1;_.Yp().dispatch(VJb(a));_.Yp().dispatch(_.XJb(a));_.mo(this.miniplayerEl,"yt-miniplayer-play-state-changed",[b]);_.xF().isVideoPlaying=b;if(a===0){b=!_.fF.getInstance().isAutoplaySetExplicitly();var c,d,e,g,k,m,n=(c=this.watchResponse.response)==null?void 0:(d=c.contents)==null?void 0:(e=d.twoColumnWatchNextResults)==null?void 0:(g=e.autoplay)==null?void 0:(k=g.autoplay)==null?void 0:(m=k.autoplayExplicitChoiceDialogRenderer)==
null?void 0:m.confirmDialogRenderer;b&&n&&this.player.setAutonavState(1)}a===0&&this.watchWhileMode&&this.deactivate()}};
_.f.onPlaylistNavigate=function(a,b){var c=this,d,e,g,k,m,n,r;return _.l(function(t){if(t.nextAddress==1){if(!_.y(b.endpoint,_.Un))return t.return();_.xF().currentEndpoint=b.endpoint;_.mo(c.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.v().resolve(_.Zt).isOnWatch()&&(c.watchWhileMode||c.watchPipMode))return t.return();a.stopPropagation();(g=(e=_.y((d=b.endpoint)==null?void 0:d.commandMetadata,_.co))==null?void 0:e.url)&&b.tempData&&!_.Cf.isEmpty(b.tempData)&&_.ao(g,b.tempData);k={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};m=new VKb(function(){return c.getPlayerElement()},k,{layer:3});
n=function(u){m.processChunk({endpoint:b.endpoint,data:u})};
Wkc(c);c.miniplayerFetchRequest=Xkc(c,b.endpoint,n);_.pe(t,2);return _.p(t,c.miniplayerFetchRequest,4)}if(t.nextAddress!=2)return r=t.yieldResult,Ykc(c,r),_.Jj(t,0);_.te(t);_.ue(t)})};
_.f.JSC$16289_onPlaylistDataUpdated=function(){var a=_.v().resolve(_.TF).getPlaylistData();this.hasPlaylistData=!!a;_.GW(this,{externalPlaylistData:a||{}})};
_.f.close=function(a){if(this.isInitialized())if(a){if(!((this.watchWhileMode||this.watchPipMode)&&_.v().resolve(_.Zt).isOnWatch()||this.shortsPipMode)){var b;(b=this.getPlayerElement())==null||b.stop()}this.deactivate()}else _.YF().closeMiniplayer(this.miniplayerEl)};
_.f.deactivate=function(a){var b=this,c,d,e,g;return _.l(function(k){if(k.nextAddress==1){if(!b.isInitialized()||!b.active)return k.return();b.setActive(!1);Wkc(b);(c=!!a&&Okc(b,a))&&b.isSingleOptionSurveyActive&&_.lo(b.miniplayerEl,"yt-show-watch-page-survey",[b.isSingleOptionSurveyActive]);return _.p(k,Zkc(b),2)}if(k.nextAddress!=3){Vkc(b,!1);b.isReadyToResume=!1;b.watchResponse=void 0;b.updateMiniplayerData(void 0);b.shortsPipMode&&(b.shortsPipMode=!1,_.Yp().dispatch(MJb(b.shortsPipMode)),xhc(b.pipController),
(d=b.player)==null||d.setInternalSize(NaN,NaN));b.watchPipMode&&(b.watchPipMode=!1,xhc(b.pipController));(e=b.watchWhileMode)&&_.Skc(b,!1);b.removePlayerListeners();var m=_.v().resolve(_.TF);m.removeEventListener("yt-navigate",_.gr(b,b.onPlaylistNavigate));m.removeEventListener("yt-playlist-data-updated",_.gr(b,b.JSC$16289_onPlaylistDataUpdated));_.xF().currentEndpoint=null;_.mo(b.miniplayerEl,"yt-miniplayer-endpoint-changed");b.playerElement=null;$Ib();return b.shortsPipMode||b.watchPipMode?k.jumpTo(3):
_.p(k,_.no(b.miniplayerEl,_.w("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[c,e]),3)}(g=b.player)==null||g.setInternalSize(NaN,NaN);b.player=null;_.ue(k)})};
var Zkc=function(a){var b;return _.l(function(c){b=_.v().resolve(_.Zt);return a.shortsPipMode?_.p(c,b.movePlayerToShorts(a.playerElement),0):_.p(c,b.movePlayerToWatch(a.playerElement),0)})};
FW.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16289_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
FW.prototype.setActive=function(a){this.active=a;this.isSingleOptionSurveyActive?_.lo(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.lo(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Yp().dispatch(_.hp({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.Skc=function(a,b){a.watchWhileMode=b;_.GW(a,{watchWhile:b})};
Vkc=function(a,b){if(a.shortsPipMode||a.watchPipMode){var c;(c=a.player)==null||c.setDocumentPictureInPicture(b)}else{var d;(d=a.player)==null||d.setMinimized(b)}};
_.CW=function(a){var b;return _.l(function(c){switch(c.nextAddress){case 1:if(!a.isInitialized())return c.return();_.pe(c,2);return _.p(c,a.miniplayerFetchRequest,4);case 4:_.Jj(c,3);break;case 2:_.te(c);case 3:a.watchResponse&&a.miniplayerData&&a.miniplayerData.watchEndpoint?(b={url:a.watchResponse.url,endpoint:a.miniplayerData.watchEndpoint,data:a.watchResponse,miniplayer:!0},_.io(a.miniplayerEl,"yt-navigate-cache",b)):a.miniplayerData&&a.miniplayerData.watchEndpoint&&_.io(a.miniplayerEl,"yt-navigate",
{endpoint:a.miniplayerData.watchEndpoint}),_.ue(c)}})};
c9b=function(a,b,c){var d,e,g,k;return _.l(function(m){if(m.nextAddress==1){if(Okc(a,b))return m.return();_.xF().currentEndpoint=b;_.mo(a.miniplayerEl,"yt-miniplayer-endpoint-changed");_.mo(a.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.xF().isVideoPlaying=!1;d={clientParams:{miniplayer:!0,autoSaveToQueue:!c}};e=new VKb(function(){return a.getPlayerElement()},d,{layer:3,
parentLayer:0},void 0,a.readyToResumeVe);g=function(n){var r,t,u=Object.assign({},(r=n.playerResponse)==null?void 0:(t=r.playerConfig)==null?void 0:t.playbackStartConfig,{startPaused:!0}),x;c&&((x=n.playerResponse)==null?0:x.playerConfig)&&(n.playerResponse.playerConfig.playbackStartConfig=u);e.processChunk({endpoint:b,data:n})};
Wkc(a);a.miniplayerFetchRequest=Xkc(a,b,g);_.pe(m,2);return _.p(m,a.miniplayerFetchRequest,4)}if(m.nextAddress!=2)return k=m.yieldResult,Ykc(a,k),_.Jj(m,0);_.te(m);_.ue(m)})};
Wkc=function(a){a.miniplayerFetchRequest&&(a.miniplayerFetchRequest.cancel&&a.miniplayerFetchRequest.cancel("Active request obsolete"),a.miniplayerFetchRequest=null)};
Xkc=function(a,b,c){var d=_.pG.instance,e,g=(e=_.y(b.commandMetadata,_.co))==null?void 0:e.url,k;e=!g||_.w("disable_miniplayer_tempdata")?{}:(k=WBa(g))!=null?k:{};return cx(d,b,e,window.location.href,"watch",function(m,n){c(n)},function(m){return m!==a.miniplayerFetchRequest})};
Ykc=function(a,b){var c;_.l(function(d){if(!b)return d.return();a.watchResponse=b;Qkc(a);Tkc(a);c=_.Z6a(b.response,b.playerResponse);if(a.isMiniplayerActive()){b.response&&(a.playerElement.watchNextData=b.response);var e=_.Cf.getValueByKeys.apply(_.Cf,[b].concat(_.De(iKb)));_.Cf.getValueByKeys.apply(_.Cf,[b].concat(_.De(nKb)))&&e&&_.v().resolve(_.TF).setAutoplayRenderer(e);if(e)if(_.w("kevlar_is_pupi_enabled")){var g,k,m,n,r,t=((g=b.response)==null?0:(k=g.playerOverlays)==null?0:(m=k.playerOverlayRenderer)==
null?0:(n=m.autonavToggle)==null?0:(r=n.autoplaySwitchButtonRenderer)==null?0:r.enabled)?2:1;_.fF.getInstance().setState(t,!1,!1)}else g=iCa()?2:1,(t=a.player)==null||t.setAutonavState(g);a.updateMiniplayerData(c);_.Ukc(a)}_.ue(d)})};
Tkc=function(a){var b,c,d=(b=a.watchResponse)==null?void 0:(c=b.playerResponse)==null?void 0:c.playabilityStatus,e;b=d==null?void 0:(e=d.miniplayer)==null?void 0:e.miniplayerRenderer;(b==null?void 0:b.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&b.minimizedEndpoint&&_.oo(a.miniplayerEl,[b.minimizedEndpoint]);_.GW(a,{miniplayerRenderer:b,playabilityStatus:d})};
FW.prototype.openToast=function(a,b){_.GW(this,{toastData:{data:a,label:b}})};
_.GW=function(a,b){var c=a.miniplayerEl,d;for(d in b)c[d]=b[d];(0,a.miniplayerPropSignalMap[1])(b)};
FW.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var a;return this.playerElement?this.playerElement:(a=_.E(this.miniplayerEl).querySelector("#player-container"))==null?void 0:a.firstElementChild};
var Pkc=function(a,b){b=b===void 0?!1:b;var c,d,e,g,k,m,n;return _.l(function(r){if(r.nextAddress==1){c=navigator.userActivation.isActive||b;if(!c)return r.return(!1);d=$kc(a);e=d.width;g=d.height;return _.p(r,a.pipController.openWindow({width:e,height:g}),2)}k=r.yieldResult;m=a.pipController.getWindow();if(!m||!k)return r.return(!1);m.document.body.style.overflow="hidden";n=R7a(m);yhc(a.pipController,function(){alc(a);n()});
return r.return(!0)})},$kc=function(a){var b=_.xF().shortsPipActivation,c,d;
a=b?.5625:(d=(c=a.player)==null?void 0:c.getVideoAspectRatio())!=null?d:16/9;c=Math.min(window.innerWidth,window.innerHeight)/2;b=b?0:76;return a>1?new _.rf(c,b+c/a):new _.rf(c*a,b+c)},alc=function(a){var b;
_.l(function(c){b=_.v().resolve(_.Zt);return b.isOnWatch()&&a.watchPipMode||b.isOnShorts()&&a.shortsPipMode?_.p(c,a.deactivate(),0):a.miniplayerToPipMode?_.p(c,Nkc(a),0):a.watchPipMode?_.p(c,_.CW(a),0):c.jumpTo(0)})};
FW.prototype.pictureInPictureEnabled=function(){return!!window.documentPictureInPicture&&_.Ea()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.Um.Object.defineProperties(FW.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
FW[iB]=[zhc,whc];var blc="add_circle arrow_time audio bag bars_3 bell broadcast clapperboard clock copy creator_studio_red_logo download fashion fire flag gaming gear home library lightbulb list_play_arrow message_bubble_alert mic my_videos news offline_download offline_no_content overflow_horizontal overflow_vertical question_circle radar_live search subscriptions thumb_up trash_can trophy unplugged_logo video_camera_add x_mark youtube_kids_round youtube_music youtube_round youtube_shorts yt-logo-updated".split(" "),
clc="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" ");var dlc=null;var elc={},flc=(elc.initialized={priority:10,callback:function(a){var b=_.v();b.addProvider({provide:Fhb,useClass:vic});b.addProvider({provide:_.uic,useFactory:function(){return new Ghb}});
b.addProvider({provide:MS,useValue:_.Fi("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});b.addProvider({provide:Hfc,useValue:5184E6});b.addProvider({provide:Vfc,useValue:_.Qw()});b.addProvider({provide:ghc,useClass:QOb});b.addProvider({provide:UM,useClass:UM});b.addProvider({provide:_.fu,useFactory:function(){return OJb.promise}});
b.addProvider({provide:_.QJb,useFactory:function(){return _.PJb.promise}});
b.addProvider({provide:_.lu,useValue:function(){var m;return((m=_.au())==null?void 0:m.getPlayer())||null}});
var c={};b.addProvider((c.provide=_.$V,c.useFactory=function(m,n){return function(){return x5a(m,n)}},c[iB]=[MS,
Hfc],c));c={};b.addProvider((c.provide=_.rJ,c.useClass=xgc,c[iB]=[MS,Hfc],c));c={};b.addProvider((c.provide=_.e8a,c.useClass=Bgc,c[iB]=[_.rJ],c));b.addProvider({provide:DS,useFactory:_.Yp});b.addProvider({provide:yw,useFactory:_.Yp});b.addProvider({provide:jhc,useFactory:_.Yp});b.addProvider({provide:jLb,useFactory:_.Yp});b.addProvider({provide:_.LG,useFactory:_.Yp});b.addProvider({provide:sS,useValue:_.rp});b.addProvider({provide:pic,useClass:kqa});b.addProvider({provide:nfc,useClass:mfc});b.addProvider({provide:MV,
useClass:MV});b.addProvider({provide:FV,useClass:FV});b.addProvider({provide:IV,useClass:IV});b.addProvider({provide:KV,useClass:KV});b.addProvider({provide:TV,useClass:TV});b.addProvider({provide:wU,useClass:wU});b.addProvider({provide:pU,useClass:pU});b.addProvider({provide:kgc,useValue:Hjc});b.addProvider({provide:_.AH,useFactory:_.ls});b.addProvider({provide:Ofc,useFactory:_.yo});c={};b.addProvider((c.provide=L6a,c.useFactory=function(m){return function(n){var r=r===void 0?{}:r;var t,u,x=(u=_.y((t=
n.endpoint)==null?void 0:t.commandMetadata,_.co))==null?void 0:u.rootVe;if(x){var A,C;if(t=n.previousCsn||((C=_.y((A=n.endpoint)==null?void 0:A.commandMetadata,LEb))==null?void 0:C.parentCsn)){var F=F===void 0?{}:F;if(t!==_.En(F.layer)||x!==cBa(F.layer))hBa(t,F.cttAuthInfo,F.layer||0),aBa(t,F.layer||0),A=F.layer||0,_.Ei(bBa(A===void 0?0:A),x);r.parentCsn=t}n.endpoint&&t?MIb(m,n.endpoint,r):_.pF(m,x,void 0,r);var J;((J=n.response)==null?0:J.trackingParams)&&m.graftServerVe(n.response.trackingParams);
var I;((I=n.playerResponse)==null?0:I.trackingParams)&&m.graftServerVe(n.playerResponse.trackingParams);var R;((R=n.reelWatchSequenceResponse)==null?0:R.trackingParams)&&m.graftServerVe(n.reelWatchSequenceResponse.trackingParams)}}},c[iB]=[_.AH],c));
c={};b.addProvider((c.provide=lhc,c.useClass=khc,c[iB]=[sS,_.LG],c));c={};b.addProvider((c.provide=kW,c.useClass=kW,c[iB]=[_.fu,_.LG],c));c={};b.addProvider((c.provide=gW,c.useClass=gW,c[iB]=[yw,_.Yi],c));b.addProvider({provide:_.rhc,useClass:Bhc});c={};b.addProvider((c.provide=_.JJ,c.useClass=uhc,c[iB]=[_.rhc],c));b.addProvider({provide:_.KJ,useClass:nW});b.addProvider({provide:_.LJ,useClass:lW});c={};b.addProvider((c.provide=_.jT,c.useClass=Ahc,c[iB]=[_.jT],c));_.w("web_enable_voting_animation")&&
b.addProvider({provide:_.bQ,useClass:ffc});b.addProvider({provide:IS,useClass:IS});b.addProvider({provide:OS,useClass:OS});b.addProvider({provide:VS,useClass:mW});c={};b.addProvider((c.provide=YS,c.useClass=YS,c[iB]=[_.KJ,VS],c));_.w("web_enable_feedback_endpoint_resolver")&&(c={},b.addProvider((c.provide=ES,c.useClass=ES,c[iB]=[DS,CS],c)),b.addProvider({provide:CS,useClass:Afc}));_.w("web_enable_feedback_endpoint_resolver_batch_2")&&(c={},b.addProvider((c.provide=GS,c.useClass=GS,c[iB]=[DS],c)),
c={},b.addProvider((c.provide=FS,c.useClass=FS,c[iB]=[CS],c)));c={};b.addProvider((c.provide=WS,c.useClass=WS,c[iB]=[_.LJ,VS],c));c={};b.addProvider((c.provide=RS,c.useClass=RS,c[iB]=[_.LJ],c));c={};b.addProvider((c.provide=XS,c.useClass=XS,c[iB]=[_.yq,_.JJ],c));c={};b.addProvider((c.provide=US,c.useClass=US,c[iB]=[_.yq,_.AH],c));b.addProvider({provide:qT,useClass:qT});c={};b.addProvider((c.provide=mT,c.useClass=mT,c[iB]=[DS],c));c={};b.addProvider((c.provide=DT,c.useClass=DT,c[iB]=[DS],c));c={};
b.addProvider((c.provide=ET,c.useClass=ET,c[iB]=[_.yq,DS],c));c={};b.addProvider((c.provide=FT,c.useClass=FT,c[iB]=[DS],c));c={};b.addProvider((c.provide=GT,c.useClass=GT,c[iB]=[DS],c));c={};b.addProvider((c.provide=SS,c.useClass=SS,c[iB]=[_.JJ],c));c={};b.addProvider((c.provide=uT,c.useClass=uT,c[iB]=[_.AH],c));c={};b.addProvider((c.provide=AT,c.useClass=AT,c[iB]=[oT],c));c={};b.addProvider((c.provide=BT,c.useClass=BT,c[iB]=[oT],c));b.addProvider({provide:xT,useClass:xT});b.addProvider({provide:yT,
useClass:yT});b.addProvider({provide:tT,useClass:tT});c={};b.addProvider((c.provide=ZS,c.useClass=ZS,c[iB]=[_.JJ,_.Yi],c));b.addProvider({provide:LS,useClass:LS});c={};b.addProvider((c.provide=TS,c.useClass=TS,c[iB]=[_.yq,_.JJ],c));b.addProvider({provide:PS,useClass:PS});c={};b.addProvider((c.provide=kT,c.useClass=kT,c[iB]=[DS,_.yq,_.jT],c));c={};b.addProvider((c.provide=hT,c.useClass=hT,c[iB]=[_.yq,_.Yi],c));b.addProvider({provide:Y_b,useValue:G4a});b.addProvider({provide:lZa,useValue:URa});b.addProvider({provide:iT,
useClass:iT});c={};b.addProvider((c.provide=gT,c.useClass=gT,c[iB]=[DS],c));c={};b.addProvider((c.provide=lT,c.useClass=lT,c[iB]=[_.bQ,_.Yi],c));c={};b.addProvider((c.provide=HS,c.useClass=HS,c[iB]=[_.Yi],c));b.addProvider({provide:BS,useFactory:function(){return new BS(_.Yp())}});
b.addProvider({provide:i8a,useFactory:_.Mq.getInstance});c={};b.addProvider((c.provide=NS,c.useClass=NS,c[iB]=[MS,i8a,_.Yi],c));b.addProvider({provide:JS,useClass:JS});b.addProvider({provide:wS,useClass:wS});b.addProvider({provide:yS,useClass:yS});b.addProvider({provide:_.xS,useClass:_.xS});b.addProvider({provide:JT,useClass:JT});c={};b.addProvider((c.provide=dT,c.useClass=dT,c[iB]=[yw],c));c={};b.addProvider((c.provide=eT,c.useClass=eT,c[iB]=[_.Yi],c));_.w("web_enable_prefetching_videos_on_home")&&
(b.addProvider({provide:fW,useClass:fW}),b.addProvider({provide:xW,useClass:xW}));c={};b.addProvider((c.provide=IT,c.useClass=IT,c[iB]=[_.Yi],c));b.addProvider({provide:zS,useClass:zS});c={};b.addProvider((c.provide=rT,c.useClass=rT,c[iB]=[_.yq,_.Yi],c));c={};b.addProvider((c.provide=AS,c.useClass=AS,c[iB]=[_.Yi],c));b.addProvider({provide:yW,useClass:yW});b.addProvider({provide:bT,useClass:bT});c={};b.addProvider((c.provide=aT,c.useClass=aT,c[iB]=[yw,_.Yi],c));c={};b.addProvider((c.provide=MT,c.useClass=
MT,c[iB]=[yw,_.Yi,_.yq],c));c={};b.addProvider((c.provide=NT,c.useClass=NT,c[iB]=[_.Yi],c));c={};b.addProvider((c.provide=LT,c.useClass=LT,c[iB]=[_.Yi,_.yq],c));c={};b.addProvider((c.provide=fT,c.useClass=fT,c[iB]=[_.fu],c));c={};b.addProvider((c.provide=cT,c.useClass=cT,c[iB]=[_.fu],c));b.addProvider({provide:nT,useClass:nT});b.addProvider({provide:pT,useClass:pT});b.addProvider({provide:CT,useClass:CT});_.w("kevlar_enable_mss_lazy_load")&&b.addProvider({provide:_.bx,useClass:ajc});b.addProvider({provide:_.nG,
useClass:pW});b.addProvider({provide:eF,useFactory:function(){return _.Ll.getInstance()}});
b.addProvider({provide:hhc,useFactory:N5a});b.addProvider({provide:oT,useFactory:function(){return _.IF.getInstance()}});
b.addProvider({provide:HJb,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});c={};b.addProvider((c.provide=_.hW,c.useClass=_.hW,c[iB]=[_.fu,_.Yi,_.AH,hhc,oT,eF,HJb,sS],c));b.addProvider({provide:_.DWb,useClass:CWb});b.addProvider({provide:_.Jfc,useClass:Ifc});c={};b.addProvider((c.provide=QS,c.useClass=QS,c[iB]=[_.Jfc],c));c={};b.addProvider((c.provide=_.iW,c.useFactory=function(m){return m.upliftCompletionResolver.promise},c[iB]=[lhc],c));
c=_.Gi("IS_SHELL_LOAD")?"aa":"eocs";var d=_.Gi("IS_SHELL_LOAD")?3:2;_.VF().parkOrScheduleJob(function(){nhc()},d,c);
_.VF().parkOrScheduleJob(function(){_.v().resolve(kW).start()},2,"eocs");
_.VF().parkOrScheduleJob(function(){ihc()},2,"eocs");
_.VF().parkOrScheduleJob(function(){_.v().resolve(gW).start()},2,"eocs");
_.w("kevlar_debug_data_app_registration_ks")||WUa();b.addProvider({provide:_.Ct,useValue:new pec(a.root)});b.addProvider({provide:Jl,useValue:new Dua});b.addProvider({provide:_.xec,useValue:new vec(a.root)});b.addProvider({provide:_.xq,useValue:new wec});b.addProvider({provide:_.rG,useValue:new yJ(a.root)});b.addProvider({provide:zhc,useClass:oW});_.w("kevlar_network_sli_killswitch")||b.addProvider({provide:Aic,useValue:pMb});b.addProvider({provide:qic,useFactory:t6a});_.w("web_bind_fetch")&&(c={},
b.addProvider((c.provide=ric,c.useFactory=u6a,c[iB]=[_.Xi(qic)],c)));_.w("web_bind_parse")&&(c={},b.addProvider((c.provide=sic,c.useFactory=v6a,c[iB]=[_.Xi(qic)],c)));_.w("web_bind_window_request")&&(c={},b.addProvider((c.provide=tic,c.useFactory=w6a,c[iB]=[_.Xi(qic)],c)));c={};b.addProvider((c.provide=Zfc,c.useFactory=I6a,c[iB]=[_.iW,DS,_.$V],c));c={};b.addProvider((c.provide=Yfc,c.useClass=OT,c[iB]=[Zfc],c));b.addProvider({provide:pgc,useClass:lgc});b.addProvider({provide:Ufc,useClass:Wfc});c=[].concat(_.De(Tt));
_.w("web_continuation_response_processing")&&c.push(_.Jt);c.push(WFb);_.w("enable_share_panel_navigation_logging_fix_on_web")&&c.push(_.GDb);b.addProvider({provide:mUa,useValue:c});b.addProvider({provide:l8a,useClass:Tfc});b.addProvider({provide:Eic,useClass:Bic});c={};b.addProvider((c.provide=h8a,c.useClass=Jec,c[iB]=[yw],c));_.zk.addLowPriorityJob(function(){d4a()});
c={};b.addProvider((c.provide=oLb,c.useFactory=function(m){return function(n){var r,t=(r=_.y(n.commandMetadata,_.co))==null?void 0:r.url;if(!t)throw new _.qj("No URL for PBJ Command",n);t=joa(t,{pbj:"1"});r=Boa(t,{})||{};r=Object.assign({},r,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.Fi("STS").toString()});n=_.ij({command:JSON.stringify(n),session_token:_.Fi("XSRF_TOKEN")});return m.fetch(t,{method:"POST",headers:r,body:n})}},c[iB]=[Eic],c));
c=[];c.push(b.resolve(Ufc));d={};d=(d.client_location=_.Mq.getInstance(),d.consistency=_.wJa(),d.entities=b.resolve(nfc),d.response_received_commands=b.resolve(l8a),d.store=b.resolve(_.e8a),d.tokens=b.resolve(Ufc),d);if(_.w("web_shorts_prefetch_service_enabled")){var e=new Cgc(b.resolve(_.rJ));d.shorts_prefetch=e}d.adblock_detection=b.resolve(h8a);b.addProvider({provide:_.Lk,useClass:_.Lk});e=b.resolve(kgc);var g=[];_.w("PremiumClientSharedConfig__enable_att_context_processor")&&(b.addProvider({provide:Xec,
useClass:Uec}),g.push(b.resolve(Xec)));if(_.w("owl_pl_await")){var k={};b.addProvider((k.provide=kic,k.useFactory=function(m){return new iic(m)},k[iB]=[_.Lk],k));
g.push(b.resolve(kic))}YQb(e,b.resolve(Eic),b.resolve(pic),d,b.resolve(_.rJ),c,g,b.resolve(Yfc),b.resolve(pgc));b.addProvider({provide:_.yq,useValue:_.Pt.instance});_.w("start_client_gcf")&&b.addProvider({provide:tl,useValue:dnb()});b.addProvider({provide:phc,useFactory:function(){return new phc(_.v().resolve(_.Lk),_.IF.getInstance())}});
_.VF().parkOrScheduleJob(function(){qhc()},1,"eocs");
c={};b.addProvider((c.provide=jW,c.useClass=jW,c[iB]=[_.$V,_.yq],c));b.addProvider({provide:_.Ghc,useFactory:_.wW.getInstance});_.VF().parkOrScheduleJob(function(){_.v().resolve(jW).refresh()},0,"eocs");
pLb(Hjc.watchEndpointMap||{},e.reelWatchEndpointMap||{},a.injector.resolve(_.yq));b.addProvider({provide:Nw,useValue:_.pG.instance});_.w("web_prs_testing_mode_killswitch")||(c=new _.Yn(window.location.href),c.JSC$7876_queryData_.toString()!==""&&c.JSC$7876_queryData_.get("force_ad_encrypted")&&(_.pG.instance.forceWebFEForAdsTesting=!0));_.w("kevlar_signal_collection_killswitch")||(c={},b.addProvider((c.provide=fhc,c.useClass=fhc,c[iB]=[MS,Ofc],c)),_.VF().parkOrScheduleJob(function(){_.v().resolve(fhc).record()},
1,"eocs"));
_.w("web_debug_handler_registration_killswitch")||_.VF().parkOrScheduleJob(function(){UUa("DOWNLOAD_PES",M5a);_.w("offline_client_state_export_ks")||UUa("OFFLINE_CLIENT_STATE",J5a)},0,"eocs");
_.w("kevlar_prevent_polymer_dynamic_font_load")&&_.VF().parkOrScheduleJob(function(){var m=[_.ef(Pic),_.ef(Qic)];m=_.h(m);for(var n=m.next();!n.done;n=m.next()){n=n.value;var r=document.createElement("link");_.ce(r,n,"stylesheet");document.head.appendChild(r)}},1,"eocs");
c=a.injector.resolve(_.yq);_.Wec.instance=new _.Wec(c);p4a(Oec(new Vec(c)));c={};a.injector.addProvider((c.provide=Xl,c.useFactory=function(m){(m=m==null?void 0:m.getCurrentPage())?m=m.visibilityObserver:(dlc||(dlc=xIa()),m=dlc);return m},c[iB]=[_.Xi(_.Zt)],c.skipCache=!0,c));
b.addProvider({provide:_.$w,useClass:FW});b.addProvider({provide:xJ,useClass:KWb});b.addProvider({provide:Au,useValue:J3a});a.injector.addProvider({provide:BOb,useValue:oec});b.addProvider({provide:x_b,useValue:F3a});b.addProvider({provide:_.Ks,useValue:R3a});a=b.addProvider;Ihc||(Ihc=new Hhc);a.call(b,{provide:_.Jhc,useValue:Ihc});b.addProvider({provide:_.Ms,useValue:_.Fi("HTML_DIR")==="rtl"?"rtl":"ltr"});b.addProvider({provide:pfc,useClass:yfc});b.addProvider({provide:_.fs,useClass:qW});_.v().addProvider({provide:rfc,
useValue:blc.concat(clc)});b.addProvider({provide:_.sW,useClass:_.sW});b.addProvider({provide:_.Lic,useValue:new Kic});b.addProvider({provide:mdc,useClass:kfc});b.addProvider({provide:sT,useClass:sT});b.addProvider({provide:vT,useClass:vT});a={};b.addProvider((a.provide=$S,a.useClass=$S,a[iB]=[_.yq,_.JJ],a));b.addProvider({provide:KT,useClass:KT});b.addProvider({provide:Fdc,useClass:Dhc});b.addProvider({provide:zT,useClass:zT});b.addProvider({provide:U7b,useValue:v7b});b.addProvider({provide:_.ZR,
useClass:lfc});_.w("enable_payments_purchase_manager")&&b.addProvider({provide:afc,useClass:Yec});b.addProvider({provide:Oic,useFactory:function(){return function(m){return _.Nic(m)}}});
b.addProvider({provide:_.Rfc,useClass:Sfc});a={};b.addProvider((a.provide=HT,a.useClass=HT,a[iB]=[_.Rfc],a));b.addProvider({provide:wT,useClass:wT});b.addProvider({provide:Mac,useValue:aec});b.addProvider({provide:k0b,useValue:Phc});b.addProvider({provide:eVa,useClass:Chc});b.addProvider({provide:Mjc,useValue:Ljc});a={};b.addProvider((a.provide=_.Njc,a.useClass=Ojc,a[iB]=[Mjc],a));_.w("web_ephemeral_actions")&&(a={},b.addProvider((a.provide=_.uW,a.useClass=tW,a[iB]=[_.LG,_.rG],a)));_.w("web_explore_hub_on_hover")&&
(a={},b.addProvider((a.provide=KS,a.useClass=KS,a[iB]=[_.yq,eF],a)));b.addProvider({provide:ESa,useValue:wSa})}},elc);var glc={},hlc=(glc.initialized={priority:10,callback:function(){if(!zic){Isa();y6a("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.ej(_.xo(y6a,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.w("log_heartbeat_with_lifecycles")){var a={};gJ.instance||(gJ.instance=new gJ);gJ.instance.install((a.document_visible={callback:z6a,priority:10},a.document_hidden={callback:z6a,priority:10},a))}else _.Vk(document,"visibilitychange",z6a);zic=!0}(a=_.En())&&a!=="UNDEFINED_CSN"&&ZAa(a)}},glc);var ilc={},jlc=(ilc.initialized={callback:function(a){var b=_.ku(232091),c=a.injector.resolve(_.AH);_.qF(c,b);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?S7a()&&_.sF(c,b):(a=a.injector.resolve(Oic)("refresh_detector"))&&(a.get("first_tab_load")?_.sF(c,b):a.set("first_tab_load","1"))}},ilc);var klc={},llc=(klc.initialized={priority:10,callback:$7a},klc);var mlc={},nlc=(mlc.rendering={priority:8,callback:a8a},mlc);var olc={},plc=(olc.rendering={priority:10,callback:n8a},olc.rendered={callback:m8a},olc),qlc={},rlc=(qlc.rendering={callback:n8a},qlc.rendered={callback:m8a},qlc);var slc=!1,tlc={},ulc=(tlc.initialized={priority:10,callback:function(){slc||(ina({didPatch:function(a){a.el&&vXa(a.el,a.props)},
didUnmount:function(a){tXa(a.el)}}),slc=!0)}},tlc);var vlc=/^\/shorts\/?$/;_.Ei("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});
if(_.w("kevlar_enable_mss")){_.Bja(new Nob);var wlc=!0,xlc,HW;wlc=wlc===void 0?!1:wlc;xlc=xlc===void 0?!1:xlc;HW=HW===void 0?{}:HW;var ylc=HW.cssRowKey||"",zlc=HW.combinedSignature||"";!ylc&&window&&window._F_cssRowKey&&(ylc=window._F_cssRowKey,!zlc&&window._F_combinedSignature&&(zlc=window._F_combinedSignature));if(ylc&&typeof window._F_installCss!=="function")throw Error("yd");var Alc=HW.loaderClass||_.XB,Blc,Clc=mka("base-js");Blc=_.xd(Clc);var IW=new Alc(Blc,ylc,zlc,wlc,xlc);HW.useCors&&(IW.useCors_=
HW.useCors);HW.corsMode&&(IW.corsMode_=HW.corsMode);HW.urlMaxLength&&(IW.urlMaxLength=HW.urlMaxLength);HW.fetchPriority&&(IW.fetchPriority=HW.fetchPriority);var Dlc=Bg();Dlc.JSC$7898_loader_=IW;Dlc.setBatchModeEnabled(!0)}
(function(){var a=document.querySelector("ytd-app");if(!a)throw Error("Ij");a=new vW({root:a,injector:_.v()});a.install(hlc);var b={};a.install((b.initialized={priority:10,callback:oJa},b));_.w("wp_lat_b")&&(b={},a.install((b.initialized={priority:10,callback:function(){q6a()}},b)));
b={};a.install((b.rendered={priority:0,callback:lJa},b));b={};a.install((b.rendered={priority:0,callback:function(){_.zk.addLowPriorityJob(function(){_.zfc>1&&(eJa(),jJa())},4E4)}},b));
a.install(ojc);a.install(jlc);a.install(ulc);rna=bob;gna=E6a;wna=NOa;tna=OOa;_.w("ytwiz_enable_debug_component_props")&&Cna();a.install(wjc);a.install(ijc);a.install(mjc);a.install(Zgc);a.install(dhc);a.install(ujc);a.install(flc);_.w("kevlar_enable_mss_lazy_load")&&a.install(llc);a.install(kjc);if(!_.Gi("IS_SHELL_LOAD")||_.w("kevlar_fetch_initial_data_promise_client")||_.w("sw_nav_preload_pbj")){var c=_.gj(window.location.href);b=c&&c==="/watch";c=c&&c.match(vlc);b?a.install(rlc):c?a.install(nlc):
a.install(plc)}else a.install(fjc);a.install(qjc);_.w("web_enable_prefetching_videos_on_home")&&a.install(Ajc);_.w("start_client_gcf")&&a.install(yic);a.install(Ugc);(new mhb).increment("INSTALLED");a.install(yjc);a.install(cjc);a.transition("initialized")})();
_._ModuleManager_initialize=function(a,b){if(!_.zg){if(!_.Ag)return;_.Bja(_.Ag())}_.zg.setAllModuleInfoString(a,b)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:3,6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/nmfa2d:h,n,o/syl:7,o/sym:g,h,q/CF909:n,r/Tm0L3c:r/L3n37:g,h,n,q/iuT5Oc',['sy2','sy8','syc','sya','sy6','sy3','syi','syh','sye','syd','syb','sy1','syk','sy7','sy5','syl','syg','syf','syj','sym','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.NW=function(a,b,c,d,e){var g={};b&&(g[b]=c);d?g.errorType=d:e&&(g.errorReason=e);_.xl(a,g);_.Al()};
_.OW=function(a,b){_.i0a(a,_.Vp(b))};
_.PW=function(a){var b=_.VF();return _.tKb(b,a,1)};
_.sr({is:"iron-media-query",_template:null,properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},
_mq:{value:null}},attached:function(){this.style.display="none";this.queryChanged()},
detached:function(){this._remove()},
_add:function(){this._mq&&this._mq.addListener(this._boundMQHandler)},
_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHandler);this._mq=null},
queryChanged:function(){this._remove();var a=this.query;a&&(this.full||a[0]==="("||(a="("+a+")"),this._mq=window.matchMedia(a),this._add(),this.queryHandler(this._mq))},
queryHandler:function(a){this._setQueryMatches(a.matches)}});var Qlc;var Rlc;var Slc=function(){};
_.f=Slc.prototype;_.f.addOwnKeyBinding=function(){};
_.f.removeOwnKeyBindings=function(){};
_.f.keyboardEventMatchesKeys=function(){};
_.f._collectKeyBindings=function(){};
_.f._prepKeyBindings=function(){};
_.f._addKeyBinding=function(){};
_.f._resetKeyEventListeners=function(){};
_.f._listenKeyEventListeners=function(){};
_.f._unlistenKeyEventListeners=function(){};
_.f._onKeyBindingEvent=function(){};
_.f._triggerKeyHandler=function(){};
_.f._tapHandler=function(){};
_.f._focusChanged=function(){};
_.f._detectKeyboardFocus=function(){};
_.f._userActivate=function(){};
_.f._upHandler=function(){};
_.f._spaceKeyDownHandler=function(){};
_.f._spaceKeyUpHandler=function(){};
_.f._asyncClick=function(){};
_.f._pressedChanged=function(){};
_.f._ariaActiveAttributeChanged=function(){};
_.f._activeChanged=function(){};
_.f._controlStateChanged=function(){};
_.f._changedButtonState=function(){};
_.f._focusBlurHandler=function(){};
_.f._disabledChanged=function(){};
_.f._changedControlState=function(){};
_.f._downHandler=function(){};
_.f.ensureRipple=function(){};
_.f.getRipple=function(){};
_.f.hasRipple=function(){};
_.f._noinkChanged=function(){};
_.f._focusedChanged=function(){};
_.f._createRipple=function(){};
_.f.registered=function(){};
_.f._invalidChanged=function(){};
_.f.hasValidator=function(){};
_.f.validate=function(){};
_.f._getValidity=function(){};
_.f._requiredChanged=function(){};
_.f._valueChanged=function(){};
_.f._checkedChanged=function(){};
_.f._buttonStateChanged=function(){};
_.f._setPressed=function(){};
_.f._setPointerDown=function(){};
_.f._setReceivedFocusFromKeyboard=function(){};
_.f._setFocused=function(){};
Slc=_.sr({is:"tp-yt-paper-radio-button",_template:function(){if(Rlc!==void 0)return Rlc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_button.tp.yt.paper.radio.button.css.js--\x3e<div id="radioContainer" style-target="container" class="style-scope tp-yt-paper-radio-button">\n  <div id="offRadio" class="style-scope tp-yt-paper-radio-button"></div>\n  <div id="onRadio" class="style-scope tp-yt-paper-radio-button"></div>\n</div><div id="radioLabel" style-target="label" class="style-scope tp-yt-paper-radio-button"><slot class="style-scope tp-yt-paper-radio-button"></slot></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Qlc===void 0&&(Qlc=document.createElement("template"));var d=Qlc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Rlc=a},
behaviors:[_.Awb],hostAttributes:{role:"radio","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"},name:{type:String,reflectToAttribute:!0}},ready:function(){this._rippleContainer=this.$.radioContainer},
attached:function(){_.Qm(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var a=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),b=Math.floor(3*a);b%2!==a%2&&b++;this.updateStyles({"--paper-radio-button-ink-size":b+"px"})}})}});var Tlc;var Ulc;_.sr({_template:function(){if(Ulc!==void 0)return Ulc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-group--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_group.tp.yt.paper.radio.group.css.js--\x3e<slot class="style-scope tp-yt-paper-radio-group"></slot>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Tlc===void 0&&(Tlc=document.createElement("template"));var d=Tlc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Ulc=a},
is:"tp-yt-paper-radio-group",behaviors:[_.Mub],hostAttributes:{role:"radiogroup"},properties:{attrForSelected:{type:String,value:"name"},selectedAttribute:{type:String,value:"checked"},selectable:{type:String,value:"tp-yt-paper-radio-button"},allowEmptySelection:{type:Boolean,value:!1}},select:function(a){var b=this._valueToItem(a);if(!b||!b.hasAttribute("disabled")){if(this.selected){b=this._valueToItem(this.selected);if(this.selected==a)if(this.allowEmptySelection)a="";else{b&&(b.checked=!0);return}b&&
(b.checked=!1)}_.Hr.select.apply(this,[a]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(a){this._focusPrevious();a.preventDefault();this._activateFocusedItem()},
_onDownKey:function(a){this._focusNext();a.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(a){_.Lub._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(a){_.Lub._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.Hr._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.ND._resetTabindices.apply(this,arguments);this.items.forEach(function(a){a.removeAttribute("aria-selected")},this)}});var Vlc;_.Ft("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var Wlc=function(){return _.P.apply(this,arguments)||this};
_.z(Wlc,_.P);_.f=Wlc.prototype;_.f.computeHasPrimaryIcon=function(a){return!(!a.icon&&!a.thumbnail)};
_.f.computeHasSecondary=function(a){return!(!a.secondaryIcon&&!a.secondaryNotificationText)};
_.f.computeHideSecondaryString=function(a){return!_.w("disable_hide_empty_secondary_string")&&!a.secondaryNotificationText};
_.f.computeCompactLinkStyle=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.f.computeHasFitHeight=function(a){return a==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.f.isActiveEndpoint=function(a){return(a=this.get("commandMetadata.webCommandMetadata.url",a))?_.gj(window.location.href)!=="/account_transfer_channel"&&_.gj(window.location.href)!=="/gaia_link"&&_.gj(window.location.href)!=="/channel_switcher"||a!=="/account"?_.gj(window.location.href)===a:!0:!1};
_.f.onTap=function(){var a;((a=this.data)==null?0:a.serviceEndpoint)&&_.oo(this.hostElement,[this.data.serviceEndpoint])};
var QW=Wlc;QW.prototype.onTap=QW.prototype.onTap;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],QW.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],QW.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.W("design:type",Boolean)],QW.prototype,"active",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.W("design:type",String)],QW.prototype,"compactLinkStyle",void 0);_.U([_.O({computed:"computeIcon_(data.icon)"}),_.W("design:type",Object)],QW.prototype,"icon",void 0);_.U([_.O({computed:"computeIcon_(data.secondaryIcon)"}),_.W("design:type",Object)],QW.prototype,"secondaryIcon",void 0);_.U([_.O({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],QW.prototype,"hasSecondary",void 0);
_.U([_.O({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],QW.prototype,"hideSecondaryString",void 0);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],QW.prototype,"onTap",null);QW=_.U([_.Q({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],QW);
_.S(QW,"ytd-compact-link-renderer",function(){if(Vlc!==void 0)return Vlc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-link-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" role="link" tabindex="-1">\n  \n  <tp-yt-paper-item role="none" class="style-scope ytd-compact-link-renderer">\n    <div id="content-icon" hidden="[[!computeHasPrimaryIcon(data)]]" class="style-scope ytd-compact-link-renderer">\n      <yt-img-shadow fit-height="[[computeHasFitHeight(data.style)]]" height="40" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-compact-link-renderer">\n      </yt-img-shadow>\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-compact-link-renderer">\n      </yt-icon>\n    </div>\n    <div id="primary-text-container" class="style-scope ytd-compact-link-renderer">\n      <yt-formatted-string id="label" text="[[data.title]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="right-icon" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]" class="style-scope ytd-compact-link-renderer">\n    </yt-icon>\n    <yt-formatted-string id="secondary-text" hidden="[[hideSecondaryString]]" text="[[data.secondaryNotificationText]]" class="style-scope ytd-compact-link-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Vlc=a},{mode:1});var Xlc;_.Ft("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var Ylc=function(){var a=_.P.apply(this,arguments)||this;a.role="link";a.tabindex="0";a.actionMap=_.w("kevlar_move_theme_action_handlers_killswitch")?{"yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice"}:{};return a};
_.z(Ylc,_.P);_.f=Ylc.prototype;_.f.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Jq()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.f.getCurrentTheme=function(){return _.Kq()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Jq()};
_.f.onThemeSelected=function(a,b){var c=a||b?a:_.Iq(),d=(c&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!c&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.tJa(_.gj(window.location.href));_.zo(0,165,a);_.zo(0,174,b);this.prefs.save();d&&_.lo(this.hostElement,"yt-dark-mode-toggled-action",[c]);_.lo(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.f.onTap=function(){this.data.serviceEndpoint&&_.oo(this.hostElement,[this.data.serviceEndpoint])};
_.f.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.f.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.f.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
var RW=Ylc;RW.prototype.onTap=RW.prototype.onTap;RW.prototype.dataChanged=RW.prototype.dataChanged;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],RW.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],RW.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eE),_.W("design:type",Object)],RW.prototype,"paperItemBehaviors",void 0);_.U([_.O(),_.W("design:type",Object)],RW.prototype,"data",void 0);_.U([_.O({value:function(){return _.yo()}}),
_.W("design:type",_.lB)],RW.prototype,"prefs",void 0);_.U([_.O(),_.W("design:type",Object)],RW.prototype,"label",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],RW.prototype,"role",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],RW.prototype,"tabindex",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RW.prototype,"dataChanged",null);
_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RW.prototype,"onTap",null);RW=_.U([_.Q({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],RW);
_.S(RW,"ytd-toggle-theme-compact-link-renderer",function(){if(Xlc!==void 0)return Xlc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-theme-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content-icon style-scope ytd-toggle-theme-compact-link-renderer">\n  <yt-icon id="primary-icon" disable-upgrade$="[[!data.primaryIcon.iconType]]" hidden="[[!data.primaryIcon.iconType]]" icon="[[data.primaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n  </yt-icon>\n</div>\n<div id="label" class="style-scope ytd-toggle-theme-compact-link-renderer">[[getSimpleString(label)]]</div>\n<yt-icon id="secondary-icon" disable-upgrade$="[[!data.secondaryIcon.iconType]]" hidden="[[!data.secondaryIcon.iconType]]" icon="[[data.secondaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n</yt-icon>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Xlc=a},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.iY=function(a,b,c){_.Ii(_.gDa)(void 0,a,b,c)};
_.jY=function(a){return function(b,c){var d=a||c.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(b,c,{get:function(){var e;return this.$?this.$[d]:(e=_.hr(this))==null?void 0:e.querySelector("#"+d)},
enumerable:!0,configurable:!0})}};_.kY=function(a){a=a===void 0?!1:a;_.vg.call(this);this.pubSub_=new _.jj(a);_.kg(this,this.pubSub_)};
_.sx(_.kY,_.vg);_.kY.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.pubSub_.subscribe(a,b,c)};
_.kY.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.pubSub_.unsubscribe(a,b,c)};
_.kY.prototype.unsubscribeByKey=function(a){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(a)};
_.kY.prototype.publish=function(a,b){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var L3c=function(){_.NW("ypcRedeemFlowStarted")},M3c=function(a){_.NW("ypcRedeemFlowFailed",void 0,void 0,void 0,a)},N3c=function(a,b,c){b&&c&&(a.videos.forEach(function(d){d.videoId===b&&(d.itemId=c)}),a.recommendedVideos.forEach(function(d){d.videoId===b&&(d.itemId=c)}))};var O3c;var P3c;/*

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
_.sr({_template:function(){if(P3c!==void 0)return P3c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_image.tp.yt.iron.image.css.js--\x3e<a id="baseURIAnchor" href="#" class="style-scope tp-yt-iron-image"></a>\n<div id="sizedImgDiv" role="img" hidden$="[[_computeImgDivHidden(sizing)]]" aria-hidden$="[[_computeImgDivARIAHidden(alt)]]" aria-label$="[[_computeImgDivARIALabel(alt, src)]]" class="style-scope tp-yt-iron-image"></div>\n<img id="img" alt$="[[alt]]" hidden$="[[_computeImgHidden(sizing)]]" crossorigin$="[[crossorigin]]" on-load="_imgOnLoad" on-error="_imgOnError" class="style-scope tp-yt-iron-image">\n<div id="placeholder" hidden$="[[_computePlaceholderHidden(preload, fade, loading, loaded)]]" class$="[[_computePlaceholderClassName(preload, fade, loading, loaded)]] style-scope tp-yt-iron-image"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;O3c===void 0&&(O3c=document.createElement("template"));var d=O3c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return P3c=a},
is:"tp-yt-iron-image",properties:{src:{type:String,value:""},alt:{type:String,value:null},crossorigin:{type:String,value:null},preventLoad:{type:Boolean,value:!1},sizing:{type:String,value:null,reflectToAttribute:!0},position:{type:String,value:"center"},preload:{type:Boolean,value:!1},placeholder:{type:String,value:null,observer:"_placeholderChanged"},fade:{type:Boolean,value:!1},loaded:{notify:!0,readOnly:!0,type:Boolean,value:!1},loading:{notify:!0,readOnly:!0,type:Boolean,value:!1},error:{notify:!0,
readOnly:!0,type:Boolean,value:!1},width:{observer:"_widthChanged",type:Number,value:null},height:{observer:"_heightChanged",type:Number,value:null}},observers:["_transformChanged(sizing, position)","_loadStateObserver(src, preventLoad)"],created:function(){this._resolvedSrc=""},
_imgOnLoad:function(){this.$.img.src===this._resolveSrc(this.src)&&(this._setLoading(!1),this._setLoaded(!0),this._setError(!1))},
_imgOnError:function(){this.$.img.src===this._resolveSrc(this.src)&&(this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",this._setLoading(!1),this._setLoaded(!1),this._setError(!0))},
_computePlaceholderHidden:function(){return!this.preload||!this.fade&&!this.loading&&this.loaded},
_computePlaceholderClassName:function(){return this.preload&&this.fade&&!this.loading&&this.loaded?"faded-out":""},
_computeImgDivHidden:function(){return!this.sizing},
_computeImgDivARIAHidden:function(){return this.alt===""?"true":void 0},
_computeImgDivARIALabel:function(){return this.alt!==null?this.alt:this.src===""?"":this._resolveSrc(this.src).replace(/[?|#].*/g,"").split("/").pop()},
_computeImgHidden:function(){return!!this.sizing},
_widthChanged:function(){this.style.width=isNaN(this.width)?this.width:this.width+"px"},
_heightChanged:function(){this.style.height=isNaN(this.height)?this.height:this.height+"px"},
_loadStateObserver:function(a,b){var c=this._resolveSrc(a);c!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",a===""||b?this._setLoading(!1):(this._resolvedSrc=c,this.$.img.src=this._resolvedSrc,this.$.sizedImgDiv.style.backgroundImage='url("'+this._resolvedSrc+'")',this._setLoading(!0)),this._setLoaded(!1),this._setError(!1))},
_placeholderChanged:function(){this.$.placeholder.style.backgroundImage=this.placeholder?'url("'+this.placeholder+'")':""},
_transformChanged:function(){var a=this.$.sizedImgDiv.style,b=this.$.placeholder.style;a.backgroundSize=b.backgroundSize=this.sizing;a.backgroundPosition=b.backgroundPosition=this.sizing?this.position:"";a.backgroundRepeat=b.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(a){a=_.am(a,this.$.baseURIAnchor.href);a.length>=2&&a[0]==="/"&&a[1]!=="/"&&(a=(location.origin||location.protocol+"//"+location.host)+a);return a}});var Q3c;var R3c;_.sr({_template:function(){if(R3c!==void 0)return R3c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-card--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_card.tp.yt.paper.card.css.js--\x3e<div class="header style-scope tp-yt-paper-card">\n  <tp-yt-iron-image hidden$="[[!image]]" aria-hidden$="[[_isHidden(image)]]" src="[[image]]" alt="[[alt]]" placeholder="[[placeholderImage]]" preload="[[preloadImage]]" fade="[[fadeImage]]" class="style-scope tp-yt-paper-card"></tp-yt-iron-image>\n  <div hidden$="[[!heading]]" class$="title-text [[_computeHeadingClass(image)]] style-scope tp-yt-paper-card">\n    [[heading]]\n  </div>\n</div>\n\n<slot class="style-scope tp-yt-paper-card"></slot>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Q3c===void 0&&(Q3c=document.createElement("template"));var d=Q3c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return R3c=a},
is:"tp-yt-paper-card",properties:{heading:{type:String,value:"",observer:"_headingChanged"},image:{type:String,value:""},alt:{type:String},preloadImage:{type:Boolean,value:!1},fadeImage:{type:Boolean,value:!1},placeholderImage:{type:String,value:null},elevation:{type:Number,value:1,reflectToAttribute:!0},animatedShadow:{type:Boolean,value:!1},animated:{type:Boolean,reflectToAttribute:!0,readOnly:!0,computed:"_computeAnimated(animatedShadow)"}},_isHidden:function(a){return a?"false":"true"},
_headingChanged:function(a){var b=this.getAttribute("heading"),c=this.getAttribute("aria-label");typeof c==="string"&&c!==b||this.setAttribute("aria-label",a)},
_computeHeadingClass:function(a){return a?" over-image":""},
_computeAnimated:function(a){return a}});var S3c=new _.X("addRendererToItemSectionAction");var T3c;var U3c=function(){return _.P.apply(this,arguments)||this};
_.z(U3c,_.P);U3c.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
var F5=U3c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],F5.prototype,"rendererBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],F5.prototype,"dismissibleItemBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],F5.prototype,"rendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],F5.prototype,"data",void 0);F5=_.U([_.Q({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],F5);
_.S(F5,"ytd-comment-history-entry-renderer",function(){if(T3c!==void 0)return T3c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-comment-history-entry-renderer">\n  <yt-formatted-string class="summary style-scope ytd-comment-history-entry-renderer" link-inherit-color="" text="[[data.summary]]"></yt-formatted-string>\n  <ytd-expander class="content-expander style-scope ytd-comment-history-entry-renderer" hidden="[[!data.content]]" max-number-of-lines="4">\n    <yt-formatted-string class="content style-scope ytd-comment-history-entry-renderer" slot="content" force-default-style="" split-lines="" text="[[data.content]]">\n    </yt-formatted-string>\n    <span class="more-button style-scope ytd-comment-history-entry-renderer" slot="more-button">[[getSimpleString(data.readMoreText)]]</span>\n    <span class="less-button style-scope ytd-comment-history-entry-renderer" slot="less-button">[[getSimpleString(data.showLessText)]]</span>\n  </ytd-expander>\n  <yt-formatted-string class="timestamp style-scope ytd-comment-history-entry-renderer" text="[[data.timestamp]]"></yt-formatted-string>\n</div>\n<div id="menu" class="style-scope ytd-comment-history-entry-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return T3c=a},{mode:1});var V3c;_.Ft("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.Ft("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var W3c=function(){return _.P.apply(this,arguments)||this};
_.z(W3c,_.P);_.f=W3c.prototype;_.f.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.onKeyUp=function(a){if(a.keyCode===13)this.onTap()};
_.f.onTap=function(){this.data.recordClickEndpoint&&_.v().resolve(_.Yi).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var a=this.data.navigationEndpoint;a&&_.y(a,_.NE)&&_.v().resolve(_.Yi).resolveCommand(a,{form:{element:this.hostElement}})};
_.f.readChanged=function(){var a;_.br(this.hostElement,"unread",!((a=this.data)==null?0:a.read))};
_.f.dataChanged=function(){this.data&&_.br(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.f.computeThumbnailSize=function(){var a;return((a=this.data)==null?0:a.highPriorityNotification)?32:48};
_.f.getEndpointURL=function(a){return a&&!_.y(a,_.NE)?this.componentBehavior.computeHref_(a):null};
_.f.getEndpointData=function(a){return a&&!_.y(a,_.NE)?a:null};
var G5=W3c;G5.prototype.computeThumbnailSize=G5.prototype.computeThumbnailSize;G5.prototype.dataChanged=G5.prototype.dataChanged;G5.prototype.readChanged=G5.prototype.readChanged;G5.prototype.onKeyUp=G5.prototype.onKeyUp;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],G5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],G5.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],G5.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],G5.prototype,"data",void 0);_.U([_.O({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.W("design:type",Number)],G5.prototype,"thumbnailSize",void 0);_.U([_.M("keyup"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],G5.prototype,"onKeyUp",null);
_.U([_.N("data.read"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],G5.prototype,"readChanged",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],G5.prototype,"dataChanged",null);_.U([_.N("data.highPriorityNotification"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],G5.prototype,"computeThumbnailSize",null);
G5=_.U([_.Q({is:"ytd-notification-renderer",disableElementRegistration:!0})],G5);
_.S(G5,"ytd-notification-renderer",function(){if(V3c!==void 0)return V3c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-notification-renderer" href$="[[getEndpointURL(data.navigationEndpoint)]]" data="[[getEndpointData(data.navigationEndpoint)]]" on-tap="onTap" tabindex="0" role="link">\n  <div id="new" class="style-scope ytd-notification-renderer"></div>\n  <yt-img-shadow id="avatar" class="thumbnail  style-scope ytd-notification-renderer" height="[[thumbnailSize]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailSize]]">\n  </yt-img-shadow>\n  <div class="text style-scope ytd-notification-renderer">\n    <yt-formatted-string class="message style-scope ytd-notification-renderer" text="[[data.shortMessage]]"></yt-formatted-string>\n    <div id="call-to-action" hidden="[[!data.highPriorityNotificationActionButton]]" class="style-scope ytd-notification-renderer"></div>\n    <div class="metadata style-scope ytd-notification-renderer">\n      <yt-formatted-string text="[[data.footer]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n      <yt-formatted-string text="[[data.sentTimeText]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" if="[[data.videoThumbnail]]" class="style-scope ytd-notification-renderer">\n    <div class="thumbnail-container style-scope ytd-notification-renderer">\n      <yt-img-shadow thumbnail="[[data.videoThumbnail]]" width="86" class="style-scope ytd-notification-renderer"></yt-img-shadow>\n    </div>\n  </template>\n</a>\n<div id="menu" class="style-scope ytd-notification-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return V3c=a},{mode:1});var X3c;var Y3c=function(){return _.P.apply(this,arguments)||this};
_.z(Y3c,_.P);Y3c.prototype.configureRendererStamper=function(){return{"data.collection":{id:"dropdown",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer"}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Y3c.prototype.computeActionButtonClass=function(a){return!a.actionButtons||a.actionButtons.length<=1?"single-button":a.description?"vertical-buttons":"horizontal-buttons"};
var H5=Y3c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],H5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],H5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],H5.prototype,"data",void 0);H5=_.U([_.Q({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],H5);
_.S(H5,"ytd-playlist-show-metadata-renderer",function(){if(X3c!==void 0)return X3c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-show-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-desc" class="style-scope ytd-playlist-show-metadata-renderer">\n  <div id="dropdown" class="style-scope ytd-playlist-show-metadata-renderer"></div>\n  <ytd-expander class="description style-scope ytd-playlist-show-metadata-renderer" max-number-of-lines="2">\n    <yt-formatted-string id="description" class="content style-scope ytd-playlist-show-metadata-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-playlist-show-metadata-renderer" slot="more-button" role="button" text="[[data.showMoreText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="less-button style-scope ytd-playlist-show-metadata-renderer" slot="less-button" role="button" text="[[data.showLessText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n<div id="action-buttons" class$="[[computeActionButtonClass(data)]] style-scope ytd-playlist-show-metadata-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return X3c=a},{mode:1});var Z3c;_.Ft("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var $3c=function(){return _.P.apply(this,arguments)||this};
_.z($3c,_.P);var I5=$3c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],I5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],I5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],I5.prototype,"data",void 0);I5=_.U([_.Q({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],I5);
_.S(I5,"ytd-purchase-item-renderer",function(){if(Z3c!==void 0)return Z3c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint purchase-endpoint style-scope ytd-purchase-item-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumb-container style-scope ytd-purchase-item-renderer">\n    <yt-img-shadow fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-purchase-item-renderer"></yt-img-shadow>\n  </div>\n  <div class="details style-scope ytd-purchase-item-renderer">\n    <yt-formatted-string class="title style-scope ytd-purchase-item-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="price-text style-scope ytd-purchase-item-renderer" no-endpoints="" text="[[data.priceText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="manage-subscription-text style-scope ytd-purchase-item-renderer" force-default-style="" text="[[data.manageSubscriptionText]]">\n    </yt-formatted-string>\n  </div>\n</a>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Z3c=a},{mode:1});var a4c;var b4c={};b4c.YtSimpleTextSectionBehavior={properties:{data:Object,layoutStyle:{type:String,computed:"computeLayoutStyle_(data.layoutStyle)",reflectToAttribute:!0},role:{type:String,computed:"computeRole_(data.layoutStyle)",reflectToAttribute:!0}},created:function(){this.LAYOUT_STYLE_PREFIX_="SIMPLE_TEXT_LAYOUT_STYLE_"},
computeLayoutStyle_:function(a){if(a)return a.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(a){if(a==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.Ft("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var c4c=function(){return _.P.apply(this,arguments)||this};
_.z(c4c,_.P);c4c.prototype.onYtNavigate=function(a){var b=this.openPopupBehavior.getNavigationEndpointPopupAction(a.detail.endpoint);b&&(a.stopPropagation(),this.openPopupBehavior.openPopup(b))};
var J5=c4c;J5.prototype.onYtNavigate=J5.prototype.onYtNavigate;_.U([_.H(b4c.YtSimpleTextSectionBehavior),_.W("design:type",Object)],J5.prototype,"ytSimpleTextSectionBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],J5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aI),_.W("design:type",Object)],J5.prototype,"openPopupBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],J5.prototype,"data",void 0);
_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],J5.prototype,"onYtNavigate",null);J5=_.U([_.Q({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],J5);
_.S(J5,"ytd-simple-text-section-renderer",function(){if(a4c!==void 0)return a4c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-text-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.lines]]" class="style-scope ytd-simple-text-section-renderer">\n  <yt-formatted-string class="text style-scope ytd-simple-text-section-renderer" text="[[item]]"></yt-formatted-string>\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return a4c=a},{mode:1});var d4c;_.Ft("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var e4c=function(){return _.P.apply(this,arguments)||this};
_.z(e4c,_.P);var f4c=e4c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],f4c.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],f4c.prototype,"data",void 0);f4c=_.U([_.Q({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],f4c);
_.S(f4c,"ytd-unlimited-page-feature-info-renderer",function(){if(d4c!==void 0)return d4c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-page-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-unlimited-page-feature-info-renderer">\n  <yt-formatted-string class="info-head style-scope ytd-unlimited-page-feature-info-renderer" text="[[data.title]]"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-unlimited-page-feature-info-renderer">\n    <yt-formatted-string class="info-desc style-scope ytd-unlimited-page-feature-info-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</div>\n<yt-img-shadow class="icon-thumbnail style-scope ytd-unlimited-page-feature-info-renderer" height="194" thumbnail="[[data.iconThumbnail]]" width="390">\n</yt-img-shadow>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return d4c=a},{mode:1});var g4c;var h4c;var i4c=function(){return _.P.apply(this,arguments)||this};
_.z(i4c,_.P);i4c.prototype.dataChanged=function(){if(this.data){var a=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);a&&(a=_.Us(a,screen.width),this.hostElement.style.backgroundImage="url("+a+")")}};
var K5=i4c;K5.prototype.dataChanged=K5.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],K5.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],K5.prototype,"data",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K5.prototype,"dataChanged",null);K5=_.U([_.Q({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],K5);
_.S(K5,"ytd-post-redemption-section-renderer",function(){if(h4c!==void 0)return h4c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-redemption-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="img-container style-scope ytd-post-redemption-section-renderer">\n  <yt-img-shadow id="logo" height="25" thumbnail="[[data.logoImage.thumbnailLandscapePortraitRenderer.portrait]]" class="style-scope ytd-post-redemption-section-renderer">\n  </yt-img-shadow>\n</div>\n<div class="container style-scope ytd-post-redemption-section-renderer">\n  <div class="title style-scope ytd-post-redemption-section-renderer">[[getSimpleString(data.title)]]</div>\n  <ytd-button-renderer id="redeem-button" data="[[data.button.buttonRenderer]]" class="style-scope ytd-post-redemption-section-renderer">\n  </ytd-button-renderer>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return h4c=a},{mode:1});var j4c;var k4c=function(){return _.P.apply(this,arguments)||this};
_.z(k4c,_.P);k4c.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
var L5=k4c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],L5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],L5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],L5.prototype,"data",void 0);L5=_.U([_.Q({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],L5);
_.S(L5,"ytd-ypc-post-redemption-renderer",function(){if(j4c!==void 0)return j4c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-post-redemption-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="store-value-balance" class="style-scope ytd-ypc-post-redemption-renderer">[[getSimpleString(data.storeValueBalance)]]</div>\n<div id="contents" class="style-scope ytd-ypc-post-redemption-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return j4c=a},{mode:1});_.Ft("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var l4c=function(){var a=_.P.apply(this,arguments)||this;a.MIN_CODE_LENGTH=12;a.MAX_CODE_LENGTH=24;return a};
_.z(l4c,_.P);_.f=l4c.prototype;_.f.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.f.created=function(){this.riskService=new _.Y4a;this.loadPaymentThenable=_.$4a(_.Fi("YPC_MB_URL"))};
_.f.ready=function(){var a=this;this.code.addEventListener("keypress",function(b){a.onCodeInputKeypress(b)})};
_.f.dataChanged=function(){var a=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(b){b=_.h(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c.type==="attributes"&&c.attributeName==="dark"&&a.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.f.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var a=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+a+")")}};
_.f.computeRedeemButton=function(a){(a=this.get("redeemButton.buttonRenderer",a))&&(a=Object.assign({},a,{serviceEndpoint:void 0}));return a};
_.f.onRedeemButtonTap=function(a){a.stopPropagation();L3c();this.redeemCode()};
_.f.redeemCode=function(){var a=this;this.isLoading=!0;var b=this.riskService.init();_.Kz([b,this.loadPaymentThenable]).then(function(){var c=a.data.redeemButton.buttonRenderer.serviceEndpoint,d=_.Z4a(),e=payments.business.integration.ClientTokenFactory.createClientToken(_.y(c,_.tGb).countryCode,d);d={c:a.code.value.trim(),rd:window.btoa(d),ctk:e};_.oo(a.hostElement,[c,d])},function(){a.showGenericError();
M3c("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.Hi(Error("Vl"))})};
_.f.onYtServiceRequestCompleted=function(a){a.stopPropagation();this.isLoading=!1;var b,c;this.errorMessage=(b=a.detail)==null?void 0:(c=b.data)==null?void 0:c.errorMessage;var d,e;this.postRedemptionRenderer=(d=a.detail)==null?void 0:(e=d.data)==null?void 0:e.renderer;var g,k;if(a=(g=a.detail)==null?void 0:(k=g.data)==null?void 0:k.redirectEndpoint)this.isLoading=!0,_.io(this.hostElement,"yt-navigate",{endpoint:a});this.errorMessage?M3c("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
a)&&_.NW("ypcRedeemFlowSucceeded")};
_.f.onYtServiceRequestError=function(a){a.stopPropagation();this.isLoading=!1;if(a=this.get("detail.error.message",a))this.errorMessage=_.Vp(a);M3c("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.f.onInvokeInstrumentManagerActionCompleted=function(a){a.stopPropagation();this.redeemCode()};
_.f.onInvokeInstrumentManagerActionError=function(a){a.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",a)){case "instrumentManagerLoadError":this.showGenericError();M3c("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();M3c("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.NW("ypcRedeemFlowCancelled")}};
_.f.onInput=function(){var a=this;_.Fr(this,"onInput",function(){var b=a.code.value.trim();a.redeemButtonDisabled=b.length<a.MIN_CODE_LENGTH||b.length>a.MAX_CODE_LENGTH},200)};
_.f.onCodeInputKeypress=function(a){a.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(L3c(),this.redeemCode())};
_.f.computeImageUrl=function(a){return a?_.Us(a.thumbnails,600):null};
_.f.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
var M5=l4c;M5.prototype.onInvokeInstrumentManagerActionError=M5.prototype.onInvokeInstrumentManagerActionError;M5.prototype.onInvokeInstrumentManagerActionCompleted=M5.prototype.onInvokeInstrumentManagerActionCompleted;M5.prototype.onYtServiceRequestError=M5.prototype.onYtServiceRequestError;M5.prototype.onYtServiceRequestCompleted=M5.prototype.onYtServiceRequestCompleted;M5.prototype.dataChanged=M5.prototype.dataChanged;
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],M5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],M5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],M5.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],M5.prototype,"isLoading",void 0);_.U([_.O(),_.W("design:type",Boolean)],M5.prototype,"redeemButtonDisabled",void 0);
_.U([_.O(),_.W("design:type",Object)],M5.prototype,"errorMessage",void 0);_.U([_.O(),_.W("design:type",Object)],M5.prototype,"postRedemptionRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],M5.prototype,"observer",void 0);_.U([_.ir("#code"),_.W("design:type",HTMLInputElement)],M5.prototype,"code",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],M5.prototype,"dataChanged",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],M5.prototype,"onYtServiceRequestCompleted",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],M5.prototype,"onYtServiceRequestError",null);
_.U([_.M("yt-invoke-instrument-manager-action-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],M5.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.U([_.M("yt-invoke-instrument-manager-action-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],M5.prototype,"onInvokeInstrumentManagerActionError",null);M5=_.U([_.Q({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],M5);
_.S(M5,"ytd-redeem-code-renderer",function(){if(g4c!==void 0)return g4c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-redeem-code-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" hidden="[[postRedemptionRenderer]]" class="style-scope ytd-redeem-code-renderer">\n  <div class="title style-scope ytd-redeem-code-renderer">[[getSimpleString(data.title)]]</div>\n  <div class="subtitle style-scope ytd-redeem-code-renderer">[[getSimpleString(data.subTitle)]]</div>\n  <input id="code" type="text" autocomplete="off" maxlength="24" on-input="onInput" size="24" placeholder="[[getSimpleString(data.placeholderText)]]" slot="input" class="style-scope ytd-redeem-code-renderer">\n  <yt-formatted-string id="error-message" hidden="[[!errorMessage]]" text="[[errorMessage]]" class="style-scope ytd-redeem-code-renderer">\n      </yt-formatted-string>\n  <yt-formatted-string id="terms" text="[[data.termsConditions]]" class="style-scope ytd-redeem-code-renderer"></yt-formatted-string>\n  \n  <ytd-button-renderer id="redeem-button" data="[[computeRedeemButton(data)]]" disabled="[[redeemButtonDisabled]]" on-tap="onRedeemButtonTap" class="style-scope ytd-redeem-code-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="success-page" class="style-scope ytd-redeem-code-renderer"></div>\n<tp-yt-paper-spinner-lite id="loading" active="[[isLoading]]" class="style-scope ytd-redeem-code-renderer">\n</tp-yt-paper-spinner-lite>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return g4c=a},{mode:1});var m4c;_.Ft("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var n4c=function(){var a=_.P.apply(this,arguments)||this;a.businessEmailDisplayState="HIDE_SECTION";return a};
_.z(n4c,_.P);_.f=n4c.prototype;_.f.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:{component:"yt-channel-external-link-view-model",params:{useSmallFont:!0}}}}}};
_.f.dataChanged=function(){this.data&&(this.data.businessEmailButton||this.data.signInForBusinessEmail)?this.data.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.data.businessEmail&&(this.businessEmail=this.data.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.f.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.f.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Kn("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.f.onYtServiceRequestCompleted=function(a){var b;if((b=a.detail.data)==null?0:b.businessEmail)this.businessEmail=a.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var c;if((c=a.detail.data)==null?0:c.errorMessage)this.businessEmailErrorMessage=a.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.f.computeEmailHref=function(a){return"mailto:"+a};
_.f.computeSafeUrl=function(a){if(a)return _.Id(a)};
_.f.onBusinessEmailCaptchaSubmit=function(){var a;(a=this.data)!=null&&a.onBusinessEmailRevealClickCommand&&(a=this.JSC$18834_captchaTextarea.value)&&(a={recaptcha_response_token:a,channel_id:this.data.channelId},_.w("web_ytd_channel_about_metadata_renderer_command_resolver_ks")?_.oo(this.hostElement,[this.data.onBusinessEmailRevealClickCommand,a]):_.v().resolve(_.Yi).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},a,{element:this.hostElement})}))};
_.f.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Um.Object.defineProperties(n4c.prototype,{hideDetailsSection:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.country&&!this.data.businessEmailButton}},
shouldShowNewLinks:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null||!a.primaryLinks)&&!((b=this.data)==null?0:b.links)&&this.data.primaryLinks.every(function(c){return c.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null||!a.primaryLinks)&&!((b=this.data)==null?0:b.links)&&!this.shouldShowNewLinks}}});
var N5=n4c;N5.prototype.onYtServiceRequestCompleted=N5.prototype.onYtServiceRequestCompleted;N5.prototype.dataChanged=N5.prototype.dataChanged;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],N5.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],N5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],N5.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.ir("#g-recaptcha-response"),_.W("design:type",HTMLTextAreaElement)],N5.prototype,"JSC$18834_captchaTextarea",void 0);_.U([_.O(),_.W("design:type",Object)],N5.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],N5.prototype,"businessEmailDisplayState",void 0);_.U([_.O(),_.W("design:type",String)],N5.prototype,"businessEmail",void 0);_.U([_.O(),_.W("design:type",String)],N5.prototype,"businessEmailErrorMessage",void 0);
_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],N5.prototype,"hideDetailsSection",null);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],N5.prototype,"dataChanged",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],N5.prototype,"shouldShowNewLinks",null);_.U([_.K("data","shouldShowLinks"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],N5.prototype,"shouldShowLegacyLinks",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],N5.prototype,"onYtServiceRequestCompleted",null);N5=_.U([_.Q({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],N5);
_.S(N5,"ytd-channel-about-metadata-renderer",function(){if(m4c!==void 0)return m4c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-about-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <div id="description-container" hidden="[[!data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.descriptionLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="bio-container" hidden="[[!data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistBioLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="bio" split-lines="" text="[[data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="photos-container" hidden="[[!data.artistGalleryPhotos]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistGalleryLabel]]">\n    </yt-formatted-string>\n    <div id="photos" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.artistGalleryPhotos]]" strip-whitespace="" class="style-scope ytd-channel-about-metadata-renderer">\n        <a href="[[computeSafeUrl(item.originalPhotoUrl)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">\n          <img src$="[[computeSafeUrl(item.thumbnailUrl)]]" alt="" class="style-scope ytd-channel-about-metadata-renderer">\n        </a>\n      </template>\n    </div>\n  </div>\n  <div id="details-container" hidden="[[hideDetailsSection]]" class="style-scope ytd-channel-about-metadata-renderer">\n     <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.detailsLabel]]">\n    </yt-formatted-string>\n    <table class="style-scope ytd-channel-about-metadata-renderer">\n      <tbody class="style-scope ytd-channel-about-metadata-renderer"><tr hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.businessEmailLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.signInForBusinessEmail]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <ytd-button-renderer align-by-text="" data="[[data.businessEmailButton.buttonRenderer]]" on-click="onBusinessEmailClick" class="style-scope ytd-channel-about-metadata-renderer">\n          </ytd-button-renderer>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-channel-about-metadata-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-channel-about-metadata-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-channel-about-metadata-renderer">\n              <yt-formatted-string text="[[data.businessEmailRevealSubmitButtonLabel]]" class="style-scope ytd-channel-about-metadata-renderer">\n              </yt-formatted-string>\n            </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <a id="email" href$="[[computeEmailHref(businessEmail)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">[[businessEmail]]</a>\n        </td>\n      </tr>\n      <tr hidden="[[!data.country]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.countryLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n        <td class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.country]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="links-container" hidden="[[!data.links]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n    </div>\n  </div>\n  <div id="new-links-container" hidden="[[!shouldShowNewLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="custom-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <div class="custom-link style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string class="custom-link-title style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n          <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n            [[link.displayUrl]]\n          </a>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div id="legacy-links-container" hidden="[[!shouldShowLegacyLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="legacy-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n          <yt-formatted-string class="info-text style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n        </a>\n      </template>\n    </div>\n  </div>\n</div>\n<div id="right-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.statsLabel]]">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.joinedDateText]]" text="[[data.joinedDateText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.viewCountText]]" no-styles="" text="[[data.viewCountText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.phoneVerifiedText]]" text="[[data.phoneVerifiedText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <div id="action-buttons" class="style-scope ytd-channel-about-metadata-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return m4c=a},{mode:1});var o4c;_.Ft("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var p4c=function(){return _.P.apply(this,arguments)||this};
_.z(p4c,_.P);p4c.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
var O5=p4c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],O5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],O5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],O5.prototype,"data",void 0);O5=_.U([_.Q({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],O5);
_.S(O5,"ytd-channel-featured-content-renderer",function(){if(o4c!==void 0)return o4c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-featured-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-featured-content-renderer">\n  <h3 class="style-scope ytd-channel-featured-content-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n  </h3>\n  <yt-formatted-string id="subtitle" text="[[data.subTitle]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n</div>\n<div id="contents" class="style-scope ytd-channel-featured-content-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return o4c=a},{mode:1});var q4c;_.Ft("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var r4c=function(){var a=_.P.apply(this,arguments)||this;a.roundContainer=!0;a.amsterdamEnabled=_.w("enable_desktop_amsterdam_info_panels");return a};
_.z(r4c,_.P);_.f=r4c.prototype;_.f.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.f.dataChanged=function(){this.imageWidth=this.imageHeight=24;var a=this.data;a.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!a.style&&a.image&&a.image.thumbnails.length&&(a=a.image.thumbnails[0],this.imageWidth=a.width||0,this.imageHeight=a.height||0)};
_.f.computeSource=function(a){return a.secondarySource?_.Wp(a.secondarySource):_.Wp(a.source)};
_.f.computeClarifyStyle=function(a){return a?a.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.f.isLargeStyle=function(a){return a==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.f.computeBackgroundStyle=function(a){return a?a.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.f.computeHasActionButton=function(a){return!!a.actionButton};
_.f.computeHasBottomSection=function(a){return!!a.ctaHasBottomSection};
_.f.computeIsSourceMissing=function(a){return a.ctaHasBottomSection===!1?!0:a&&this.computeSource(a)?!1:!0};
_.f.computeSecondaryEndpoint=function(a){return a.secondaryEndpoint||a.endpoint};
var P5=r4c;P5.prototype.dataChanged=P5.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],P5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],P5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],P5.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Number)],P5.prototype,"imageWidth",void 0);_.U([_.O(),_.W("design:type",Number)],P5.prototype,"imageHeight",void 0);
_.U([_.O({computed:"computeSecondaryEndpoint(data)"}),_.W("design:type",Object)],P5.prototype,"secondaryEndpoint",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.W("design:type",Boolean)],P5.prototype,"hasActionButton",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.W("design:type",Boolean)],P5.prototype,"hasBottomSection",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.W("design:type",Boolean)],P5.prototype,"missingSource",void 0);_.U([_.O({computed:"computeIcon_(data.icon)"}),_.W("design:type",String)],P5.prototype,"icon",void 0);_.U([_.O({computed:"computeIcon_(data.secondaryIcon)"}),_.W("design:type",String)],P5.prototype,"secondaryIcon",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.W("design:type",String)],P5.prototype,"clarifyStyle",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.W("design:type",String)],P5.prototype,"backgroundStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],P5.prototype,"roundContainer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],P5.prototype,"amsterdamEnabled",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P5.prototype,"dataChanged",null);
P5=_.U([_.Q({is:"ytd-clarification-renderer",disableElementRegistration:!0})],P5);
_.S(P5,"ytd-clarification-renderer",function(){if(q4c!==void 0)return q4c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clarification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-clarification-renderer">\n  \n  <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n    <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer"></yt-icon>\n    <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n    </yt-img-shadow>\n  </a>\n  <div class="text style-scope ytd-clarification-renderer">\n    \n    <a id="section-header" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer">\n      </yt-icon>\n      <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string class="section-title style-scope ytd-clarification-renderer" text="[[data.sectionTitle]]">\n      </yt-formatted-string>\n    </a>\n    <div class="content style-scope ytd-clarification-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n        <div class="content-title style-scope ytd-clarification-renderer">\n          [[getSimpleString(data.contentTitle)]]\n          <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </div>\n        <yt-formatted-string class="description style-scope ytd-clarification-renderer" text="[[data.text]]">\n        </yt-formatted-string>\n      </a>\n      <div id="action-button" class="style-scope ytd-clarification-renderer"></div>\n      <div id="menu" class="style-scope ytd-clarification-renderer"></div>\n    </div>\n    <a id="source-link" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(secondaryEndpoint)]]" data="[[secondaryEndpoint]]">\n      <div class="source style-scope ytd-clarification-renderer">\n        <yt-icon class="secondary-icon style-scope ytd-clarification-renderer" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]">\n        </yt-icon>\n        [[computeSource(data)]]\n        <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" hidden="[[secondaryIcon]]" icon="yt-icons:open_in_new" size="16"></yt-icon>\n      </div>\n    </a>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return q4c=a},{mode:1});var s4c;var t4c;var u4c=function(){var a=_.P.apply(this,arguments)||this;a.amsterdamEnabled=_.w("enable_desktop_amsterdam_info_panels");return a};
_.z(u4c,_.P);_.f=u4c.prototype;_.f.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.f.computeIcon=function(a){return a?"yt-icons:"+a.toLowerCase():null};
_.f.computeUseContacts=function(a){return!!a.contacts&&a.contacts.length>0};
_.f.computePhoneContact=function(a){var b,c;return(b=a.contacts)==null?void 0:(c=b.find(function(d){var e;return(d==null?void 0:(e=d.icon)==null?void 0:e.iconType)==="PHONE"}))==null?void 0:c.actionText};
_.f.computeSmsContact=function(a){var b,c;return(b=a.contacts)==null?void 0:(c=b.find(function(d){var e;return(d==null?void 0:(e=d.icon)==null?void 0:e.iconType)==="SMS"}))==null?void 0:c.actionText};
var Q5=u4c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Q5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],Q5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Q5.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],Q5.prototype,"amsterdamEnabled",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.W("design:type",Boolean)],Q5.prototype,"useContacts",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.W("design:type",String)],Q5.prototype,"phoneContact",void 0);Q5=_.U([_.Q({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Q5);
_.S(Q5,"ytd-single-action-emergency-support-renderer",function(){if(t4c!==void 0)return t4c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-action-emergency-support-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-single-action-emergency-support-renderer">\n  <div id="text-content" class="style-scope ytd-single-action-emergency-support-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    <a class="yt-simple-endpoint style-scope ytd-single-action-emergency-support-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-formatted-string id="navigation-text" text="[[data.navigationText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      <yt-icon id="nav-icon" icon="[[computeIcon(data.navigationIcon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n    </a>\n    <yt-formatted-string id="details-text" text="[[data.detailsText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n  </div>\n  <div id="action-container" class="style-scope ytd-single-action-emergency-support-renderer">\n    <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n    <div id="contacts" hidden="[[!data.contacts]]" class="style-scope ytd-single-action-emergency-support-renderer">\n      <div id="phone-contact" hidden="[[!computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'PHONE\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n        <yt-formatted-string id="contact-text" text="[[computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n        <div id="sms-contact" hidden="[[!computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'SMS\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string id="contact-text" text="[[computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="action-text" class="action-text style-scope ytd-single-action-emergency-support-renderer" hidden="[[!data.actionText]]">\n      <yt-icon icon="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.actionText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    </div>\n    <div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return t4c=a},{mode:1});_.Ft("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var v4c=function(){var a=_.P.apply(this,arguments)||this;a.roundedContainer=!0;a.amsterdamEnabled=_.w("enable_desktop_amsterdam_info_panels");return a};
_.z(v4c,_.P);v4c.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.firstOption":{id:"first-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}},"data.secondOption":{id:"second-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}}}};
var R5=v4c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],R5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],R5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],R5.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],R5.prototype,"roundedContainer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],R5.prototype,"amsterdamEnabled",void 0);
R5=_.U([_.Q({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],R5);
_.S(R5,"ytd-emergency-onebox-renderer",function(){if(s4c!==void 0)return s4c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emergency-onebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-emergency-onebox-renderer">\n  <yt-formatted-string id="header" text="[[data.title]]" class="style-scope ytd-emergency-onebox-renderer"></yt-formatted-string>\n  <div id="options" class="style-scope ytd-emergency-onebox-renderer">\n    <div id="first-option" class="option style-scope ytd-emergency-onebox-renderer"></div>\n    <div id="second-option" class="option style-scope ytd-emergency-onebox-renderer" hidden="[[!data.secondOption]]"></div>\n  </div>\n</div>\n\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-emergency-onebox-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return s4c=a},{mode:1});var w4c;_.Ft("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var x4c=function(){return _.P.apply(this,arguments)||this};
_.z(x4c,_.P);x4c.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
var S5=x4c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],S5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],S5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],S5.prototype,"data",void 0);S5=_.U([_.Q({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],S5);
_.S(S5,"ytd-exploratory-results-renderer",function(){if(w4c!==void 0)return w4c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-exploratory-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-exploratory-results-renderer"></yt-formatted-string>\n<div id="contents" class="style-scope ytd-exploratory-results-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return w4c=a},{mode:1});var y4c;_.Ft("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var z4c=function(){var a=_.P.apply(this,arguments)||this;a.messageData=null;return a};
_.z(z4c,_.P);_.f=z4c.prototype;_.f.onServiceRequestCompleted=function(a,b){a=b.actions||[];b=0;for(var c=a.length;b<c;b++){var d=a[b],e=void 0,g=void 0;if((e=_.y(d,_.EE))==null?0:(g=e.item)==null?0:g.messageRenderer)this.messageData=_.y(d,_.EE).item.messageRenderer}};
_.f.dataChanged=function(){var a=this.data;this.hostElement.hidden=!1;_.br(this.hostElement,"is-channel",a&&!a.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.f.computeThumbnailWidth=function(a){return a?126:56};
_.f.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.f.onSubmitTap=function(){var a=this.data,b=this.selectedResponseIndex;a!==void 0&&b!==void 0&&_.oo(this.hostElement,[a.responses[b].responseData])};
_.f.onDismissTap=function(){this.hostElement.hidden=!0;var a=this.data;a!==void 0&&_.oo(this.hostElement,[a.dismissalEndpoint])};
_.f.updateSelectedResponseIndexFromBinding=function(a){this.selectedResponseIndex=a.detail.value};
var T5=z4c;T5.prototype.onSelectedResponseIndexChange=T5.prototype.onSelectedResponseIndexChange;T5.prototype.dataChanged=T5.prototype.dataChanged;T5.prototype.onServiceRequestCompleted=T5.prototype.onServiceRequestCompleted;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],T5.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],T5.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],T5.prototype,"messageData",void 0);
_.U([_.O(),_.W("design:type",Number)],T5.prototype,"selectedResponseIndex",void 0);_.U([_.ir("#submit-button"),_.W("design:type",HTMLButtonElement)],T5.prototype,"submitButton",void 0);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Vt]),_.W("design:returntype")],T5.prototype,"onServiceRequestCompleted",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T5.prototype,"dataChanged",null);
_.U([_.N("selectedResponseIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T5.prototype,"onSelectedResponseIndexChange",null);T5=_.U([_.Q({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],T5);
_.S(T5,"ytd-feedback-elicitation-single-question-renderer",function(){if(y4c!==void 0)return y4c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-elicitation-single-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="dismissible" hidden="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <div id="header" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <yt-formatted-string id="question" text="[[data.question]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n    <yt-icon-button on-tap="onDismissTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <template is="dom-if" if="[[data.channelTitle]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-feedback-elicitation-single-question-renderer" href$="[[computeHref(data.channelEndpoint)]]" data="[[data.channelEndpoint]]">\n      <yt-img-shadow thumbnail="[[data.channelAvatar]]" width="[[computeThumbnailWidth(data.avatarIs169)]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      </yt-img-shadow>\n      <div id="item-title" class="style-scope ytd-feedback-elicitation-single-question-renderer">[[getSimpleString(data.channelTitle)]]</div>\n    </a>\n  </template>\n  <template is="dom-if" if="[[!data.canSelectMultiple]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <template is="dom-repeat" items="[[data.responses]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n        <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n          <yt-formatted-string text="[[item.responseText]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n  </template>\n  <ytd-button-renderer id="submit-button" data="[[data.submitButton.buttonRenderer]]" on-tap="onSubmitTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  </ytd-button-renderer>\n</span>\n<span hidden="[[!messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <ytd-message-renderer data="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></ytd-message-renderer>\n</span>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return y4c=a},{mode:1});var A4c;var B4c=function(){return _.P.apply(this,arguments)||this};
_.z(B4c,_.P);B4c.prototype.computeThumbnailWidth=function(a){return a?602:428};
B4c.prototype.updateWideFromBinding=function(a){this.wide=a.detail.value};
var U5=B4c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],U5.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],U5.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],U5.prototype,"wide",void 0);U5=_.U([_.Q({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],U5);
_.S(U5,"ytd-newspaper-hero-video-renderer",function(){if(A4c!==void 0)return A4c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="(min-width: 662px)" query-matches="[[wide]]" on-query-matches-changed="updateWideFromBinding" class="style-scope ytd-newspaper-hero-video-renderer">\n</iron-media-query>\n<ytd-thumbnail data="[[data]]" width="[[computeThumbnailWidth(wide)]]" class="style-scope ytd-newspaper-hero-video-renderer"></ytd-thumbnail>\n<div id="contents" class="style-scope ytd-newspaper-hero-video-renderer">\n  <a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-newspaper-hero-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-hero-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-hero-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="title style-scope ytd-newspaper-hero-video-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n</div>\n<div class="content style-scope ytd-newspaper-hero-video-renderer">\n  <slot class="style-scope ytd-newspaper-hero-video-renderer"></slot>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return A4c=a},{mode:1});var C4c;var D4c=function(){return _.P.apply(this,arguments)||this};
_.z(D4c,_.P);var E4c=D4c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],E4c.prototype,"rendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],E4c.prototype,"data",void 0);E4c=_.U([_.Q({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],E4c);
_.S(E4c,"ytd-newspaper-mini-video-renderer",function(){if(C4c!==void 0)return C4c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-mini-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="210" class="style-scope ytd-newspaper-mini-video-renderer"></ytd-thumbnail>\n<a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-mini-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-newspaper-mini-video-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-mini-video-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-mini-video-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-newspaper-mini-video-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return C4c=a},{mode:1});var F4c;_.Ft("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var G4c=function(){return _.P.apply(this,arguments)||this};
_.z(G4c,_.P);G4c.prototype.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary-contents",mapping:{newspaperHeroVideoRenderer:"ytd-newspaper-hero-video-renderer"}},"data.secondaryContents":{id:"secondary-contents",mapping:{newspaperMiniVideoRenderer:"ytd-newspaper-mini-video-renderer"}}}};
var V5=G4c;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],V5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],V5.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],V5.prototype,"data",void 0);V5=_.U([_.Q({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],V5);
_.S(V5,"ytd-newspaper-renderer",function(){if(F4c!==void 0)return F4c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-contents" class="style-scope ytd-newspaper-renderer"></div>\n<div id="secondary-contents" class="style-scope ytd-newspaper-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return F4c=a},{mode:1});var H4c;_.Ft("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var I4c=function(){var a=_.P.apply(this,arguments)||this;a.isSegment=!1;a.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};a.nextContinuation={continuationType:"playlistVideoListContinuation"};return a};
_.z(I4c,_.P);_.f=I4c.prototype;_.f.attached=function(){_.v();var a;(a=_.v().resolve(_.Xi(_.jT)))!=null&&(a.playlistVideoListElement=this.hostElement)};
_.f.detached=function(){var a;(a=_.v().resolve(_.Xi(_.jT)))!=null&&(a.playlistVideoListElement=void 0);a=_.v().resolve(_.Xi(_.bQ));_.w("web_enable_voting_animation")&&a&&(a.parentElem=void 0,a.videos=[],a.continuationsPresent=!1,a.showRefreshPill=!1)};
_.f.configureRendererStamper=function(){return{"data.contents":{id:"contents",reuseComponents:!1,mapping:{playlistVideoRenderer:{component:"ytd-playlist-video-renderer",properties:{canReorder:"[[canReorder]]"}},continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.continuations":{id:"continuations",mapping:{nextContinuationData:"yt-next-continuation"}},"data.sortFilterMenu":{id:"sort-filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",
params:{closeOnActivate:"true"}}}}}};
_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.f.dataChanged=function(){var a=_.v().resolve(_.Xi(_.bQ));if(_.w("web_enable_voting_animation")&&this.data&&a){var b=_.E(this.hostElement).querySelector("#contents");b&&(a.parentElem=b);a.addVideos(this.data.contents)}_.gWb(this.ytReorderableBehavior)};
_.f.onRendererstamperFinished=function(){this.canReorder&&_.hWb(this.ytReorderableBehavior,_.E(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.f.onPlaylistReloading=function(){this.isReloading=!0};
_.f.onUpdateSetVideoId=function(a){if(a.detail&&this.data&&this.data.contents){var b=a.detail;a=this.data.contents.findIndex(function(e){var g;return((g=e.playlistVideoRenderer)==null?void 0:g.videoId)===b.videoId});
if(!(a<0)&&b.setVideoId&&(this.set("data.contents."+a+".playlistVideoRenderer.setVideoId",b.setVideoId),_.w("web_enable_voting_animation"))){var c;if(a=_.y((c=this.data.contents[a].playlistVideoRenderer)==null?void 0:c.engagementBar,_.w4a)){var d;(d=a.actions)==null||d.forEach(function(e){if(e=_.y(e,_.x4a))e.itemId=b.setVideoId})}(c=_.v().resolve(_.Xi(_.bQ)))&&N3c(c,b.videoId,b.setVideoId)}}};
_.f.computeContentsClass=function(a){return a?"reloading":""};
_.f.computeIsSortable=function(a,b){return a&&b>0&&!this.isSegment&&!_.w("shorts_in_playlists_web")};
_.f.computeIsEditable=function(a){return a};
_.f.computeCanReorder=function(a){return a};
_.f.handlePlaylistRemoveVideosAction=function(a){if(this.get("playlistRemoveVideosAction.setVideoIds",a)&&this.data&&this.data.contents){a=_.y(a,_.Xzb).setVideoIds;for(var b=this.data.contents.length-1;b>=0;){var c=this.data.contents[b].playlistVideoRenderer;c&&c.setVideoId&&a.includes(c.setVideoId)&&this.splice("data.contents",b,1);b--}_.lo(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.f.updateIndices=function(){if(this.data&&this.data.contents)for(var a=0;a<this.data.contents.length;a++)this.set("data.contents."+a+".playlistVideoRenderer.index",_.Vp(String(a+1)))};
_.f.handleDrop=function(a){a=a.currDragItem;var b=_.Na(a.parentNode.childNodes,a),c=this.data.contents.splice(Number(_.Wp(a.data.index))-1,1)[0];this.data.contents.splice(b,0,c);b=b?this.get("contents."+(b-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();a=this.buildReorderServiceEndpoint(a.data.setVideoId,b);this.ytComponentBehavior.resolveCommand(a)};
_.f.buildReorderServiceEndpoint=function(a,b){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",a),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",b),this.data.onReorderEndpoint):null};
_.f.handleUpdatePlaylistAction=function(a){var b;(a=_.y((b=_.y(a,_.Yzb))==null?void 0:b.updatedRenderer,_.jEb))&&this.canReorder!==a.canReorder&&this.set("data.canReorder",a.canReorder);a&&a.contents&&(this.set("data.contents",a.contents),this.isReloading=!1);a&&a.continuations&&this.set("data.continuations",a.continuations)};
_.f.handleAddRendererToItemSectionAction=function(a){var b,c=(b=_.y(a,S3c))==null?void 0:b.renderer,d;c&&((d=_.y(a,S3c))==null?void 0:d.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,c),a=_.v().resolve(_.Xi(_.bQ)),_.w("web_enable_voting_animation")&&a&&(c&&(b=_.v4a(c))&&a.recommendedVideos.push({itemId:b,videoId:_.y4a(c),voteCount:_.z4a(c),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.f.onAppendContinuationItemsActionFinished=function(){this.updateIndices();var a=_.v().resolve(_.Xi(_.bQ));_.w("web_enable_voting_animation")&&a&&this.data&&a.addVideos(this.data.contents)};
_.f.updateVideoData=function(a){if(a.detail&&this.data&&this.data.contents){var b=a.detail;a=b.toIdx;var c=b.itemId,d=b.newVoteCount,e=b.voteStatus;b=b.hideItem;var g,k,m=(g=this.data)==null?void 0:(k=g.contents)==null?void 0:k.findIndex(function(u){return _.v4a(u)===c});
if(!(m<0)){g=this.data.contents[m];var n;if((n=g.playlistVideoRenderer)==null?0:n.voteCount)g.playlistVideoRenderer.voteCount=d;var r;if(n=_.y((r=g.playlistVideoRenderer)==null?void 0:r.engagementBar,_.w4a)){var t;(t=n.actions)==null||t.forEach(function(u){(u=_.y(u,_.x4a))&&u.initialState&&(u.initialState.votes=d,u.initialState.status=e)})}this.data.contents.splice(m,1);
b||this.data.contents.splice(a,0,g);this.updateIndices()}}};
var W5=I4c;W5.prototype.updateVideoData=W5.prototype.updateVideoData;W5.prototype.onAppendContinuationItemsActionFinished=W5.prototype.onAppendContinuationItemsActionFinished;W5.prototype.onUpdateSetVideoId=W5.prototype.onUpdateSetVideoId;W5.prototype.onPlaylistReloading=W5.prototype.onPlaylistReloading;W5.prototype.onRendererstamperFinished=W5.prototype.onRendererstamperFinished;W5.prototype.dataChanged=W5.prototype.dataChanged;
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],W5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],W5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],W5.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.XM.YtNextContinuationBehavior),_.W("design:type",Object)],W5.prototype,"ytNextContinuationBehavior",void 0);
_.U([_.H(_.jWb),_.W("design:type",Object)],W5.prototype,"ytReorderableBehavior",void 0);_.U([_.H(_.WM),_.W("design:type",Object)],W5.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],W5.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],W5.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],W5.prototype,"isReloading",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],W5.prototype,"isSegment",void 0);_.U([_.O({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.W("design:type",Boolean)],W5.prototype,"isSortable",void 0);_.U([_.O({computed:"computeIsEditable(data.isEditable)"}),_.W("design:type",Boolean)],W5.prototype,"isEditable",void 0);_.U([_.O({computed:"computeCanReorder(data.canReorder)"}),_.W("design:type",Boolean)],W5.prototype,"canReorder",void 0);
_.U([_.O({value:101}),_.W("design:type",Number)],W5.prototype,"scrollMargin",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W5.prototype,"dataChanged",null);_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W5.prototype,"onRendererstamperFinished",null);
_.U([_.M("yt-playlist-reloading"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W5.prototype,"onPlaylistReloading",null);_.U([_.M("yt-update-set-video-id"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],W5.prototype,"onUpdateSetVideoId",null);
_.U([_.M("yt-append-continuation-items-action-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W5.prototype,"onAppendContinuationItemsActionFinished",null);_.U([_.M("yt-update-video-data-voting-animation"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],W5.prototype,"updateVideoData",null);W5=_.U([_.Q({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],W5);
_.S(W5,"ytd-playlist-video-list-renderer",function(){if(H4c!==void 0)return H4c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sort-filter-menu" hidden="[[!isSortable]]" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-playlist-video-list-renderer">\n  <tp-yt-paper-spinner-lite active="[[isReloading]]" class="style-scope ytd-playlist-video-list-renderer"></tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-playlist-video-list-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return H4c=a},{mode:_.as("kevlar_poly_si_batch_j047")?1:2});var J4c;var K4c=function(){return _.P.apply(this,arguments)||this};
_.z(K4c,_.P);K4c.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}},"data.exploreButton":{id:"explore-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0},noInjection:!0}}},"data.offerButtons":{id:"offer-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
K4c.prototype.onTextWrapperTap=function(a){var b=this.data&&this.data.navigationEndpoint;b&&!_.Wt(_.Rq(a),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.io(this.hostElement,"yt-navigate",{endpoint:b})};
K4c.prototype.dataChanged=function(){var a=this.get("data.offerButton.buttonRenderer.serviceEndpoint");a&&a.commandMetadata&&_.y(a.commandMetadata,_.KE)&&_.y(a.commandMetadata,_.KE).fireAutomatically&&(_.w("web_ytd_movie_renderer_command_resolver_ks")?_.oo(this.hostElement,[a]):_.v().resolve(_.Yi).resolveCommand(a,{form:{element:this.hostElement}}))};
var X5=K4c;X5.prototype.dataChanged=X5.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],X5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],X5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.$I),_.W("design:type",Object)],X5.prototype,"ytdLockupBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],X5.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],X5.prototype,"useBiggerThumbs",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.aj("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],X5.prototype,"biggerThumbsStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],X5.prototype,"leftAligned",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],X5.prototype,"dataChanged",null);X5=_.U([_.Q({disableElementRegistration:!0,is:"ytd-movie-renderer"})],X5);
_.S(X5,"ytd-movie-renderer",function(){if(J4c!==void 0)return J4c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="thumbnail-container style-scope ytd-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="246" class="style-scope ytd-movie-renderer">\n  </ytd-thumbnail>\n</div>\n<div class="text-wrapper style-scope ytd-movie-renderer" on-tap="onTextWrapperTap">\n  <div class="top-container style-scope ytd-movie-renderer">\n    <div class="top-left-container style-scope ytd-movie-renderer">\n      <h3 class="style-scope ytd-movie-renderer">\n         <a id="video-title" class="yt-simple-endpoint style-scope ytd-movie-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <div id="channel-info" class="style-scope ytd-movie-renderer">\n        <a hidden="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" id="channel-thumbnail" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-movie-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-movie-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-movie-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </div>\n    <div class="top-right-container style-scope ytd-movie-renderer">\n      <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-renderer">\n      </ytd-button-renderer>\n      <div id="offer-buttons" class="style-scope ytd-movie-renderer"></div>\n      <div id="menu" class="style-scope ytd-movie-renderer"></div>\n    </div>\n  </div>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.topMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-movie-renderer"></ytd-badge-supported-renderer>\n\n  <yt-formatted-string id="description-text" text="[[data.descriptionSnippet]]" class="style-scope ytd-movie-renderer">\n  </yt-formatted-string>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.bottomMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <div id="explore-button" class="style-scope ytd-movie-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-movie-renderer"></yt-interaction>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return J4c=a},{mode:1});var L4c;var Y5=function(){var a=_.P.apply(this,arguments)||this;a.rounded=!0;a.pageAttachedTo=void 0;a.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return a};
_.z(Y5,_.P);Y5.prototype.attached=function(){this.pageAttachedTo=_.v().resolve(_.Zt).getCurrentPage();_.io(this.hostElement,"yt-player-attached",this.player)};
Y5.prototype.detached=function(){var a;if((a=this.pageAttachedTo)==null?0:a.hostElement)_.io(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
Y5.prototype.dataChanged=function(){var a;if((a=this.data)==null?0:a.videoId)a={video_id:this.data.videoId,autoplay:!0},!_.w("miniplayer_stop_channel_video_autoplay_killswitch")&&_.v().resolve(_.$w).isMiniplayerActive()&&(a.pause_at_start=!0,a.autoplay=!1),this.player.loadVideoWithPlayerVars(a)};
Y5.prototype.handleSignalActionPausePlayer=function(){_.bu().pause()};
var Z5=Y5;Z5.prototype.dataChanged=Z5.prototype.dataChanged;_.U([_.O(),_.W("design:type",Object)],Z5.prototype,"data",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Z5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],Z5.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z5.prototype,"rounded",void 0);
_.U([_.ir("#player"),_.W("design:type",Object)],Z5.prototype,"player",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z5.prototype,"dataChanged",null);Z5=_.U([_.Q({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],Z5);
_.S(Z5,"ytd-channel-video-player-renderer",function(){if(L4c!==void 0)return L4c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-video-player-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player-container" class="style-scope ytd-channel-video-player-renderer">\n  <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_CHANNEL_TRAILER" class="style-scope ytd-channel-video-player-renderer">\n  </ytd-player>\n</div>\n<div id="content" class="style-scope ytd-channel-video-player-renderer">\n  <div id="metadata-container" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string id="title" aria-level="3" ellipsis-truncate="" link-inherit-color="" role="heading" text="[[data.title]]" class="style-scope ytd-channel-video-player-renderer">\n    </yt-formatted-string>\n    <ytd-video-meta-block class="title style-scope ytd-channel-video-player-renderer" data="[[data]]"></ytd-video-meta-block>\n  </div>\n  <ytd-expander id="description" disable-toggle="" max-number-of-lines="7" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string class="content style-scope ytd-channel-video-player-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-channel-video-player-renderer" slot="more-button" link-inherit-color="" text="[[data.readMoreText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return L4c=a},{mode:1});var M4c;var N4c;var O4c;var P4c=function(){var a=_.P.apply(this,arguments)||this;a.playing=!1;a.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.$a(a);a.active=!1;return a};
_.z(P4c,_.P);_.f=P4c.prototype;_.f.detached=function(){this.stop()};
_.f.play=function(){var a=this,b,c,d,e,g;return _.l(function(k){if(k.nextAddress==1)return a.active=!0,b=a.get("data.inlinePlaybackEndpoint.watchEndpoint"),c=b.videoId||a.data.videoId,d=b.startTimeSeconds||0,e=b.playerParams||null,_.w("kevlar_player_update_killswitch")?_.p(k,a.playerEl.update({args:{video_id:c,startSeconds:d,player_params:e}}),2):(a.playerEl.loadVideoWithPlayerVars({video_id:c,startSeconds:d,player_params:e,autoplay:!0}),k.jumpTo(2));if(k.nextAddress!=4)return _.p(k,a.playerEl.getPlayerPromise(),
4);g=k.yieldResult;g.unloadModule("annotations_module");g.addEventListener("onStateChange",function(m){a.onPlayerStateChange(m)});
_.ue(k)})};
_.f.onPlayerStateChange=function(a){if(this.active)switch(this.playing=a===1,a){case 1:_.io(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.io(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.f.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.f.resize=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,a.playerEl.getPlayerPromise(),2);b=c.yieldResult;b.setSize(NaN,NaN);_.ue(c)})};
var $5=P4c;_.U([_.O(),_.W("design:type",Object)],$5.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$5.prototype,"playing",void 0);_.U([_.O(),_.W("design:type",Object)],$5.prototype,"playerId",void 0);_.U([_.ir("#player"),_.W("design:type",Object)],$5.prototype,"playerEl",void 0);$5=_.U([_.Q({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],$5);
_.S($5,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(O4c!==void 0)return O4c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer-inline-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO" player-id="[[playerId]]" class="style-scope ytd-default-promo-panel-renderer-inline-playback-renderer">\n</ytd-player>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return O4c=a},{mode:1});var Q4c;var R4c;var S4c=function(){var a=_.P.apply(this,arguments)||this;a.width=0;return a};
_.z(S4c,_.P);_.f=S4c.prototype;_.f.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.gr(this,this.onEnded));this.mp4El.addEventListener("error",_.gr(this,this.onError))};
_.f.detached=function(){this.videoEl.removeEventListener("ended",_.gr(this,this.onEnded));this.mp4El.removeEventListener("error",_.gr(this,this.onError))};
_.f.play=function(){var a=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var b=this.videoEl.play();b?b.then(function(){a.handleVideoStartPlaying()}).catch(function(){_.io(a.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.io(this.hostElement,"yt-video-thumbnail-not-playing")};
_.f.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.f.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.f.dataChanged=function(){var a;if((a=this.data)==null?0:a.thumbnailPlaceholder)a=_.Us(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+a+")";this.stop();this.autoplay&&this.play()};
_.f.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.f.onEnded=function(){this.stop();_.io(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.f.onError=function(){_.io(this.hostElement,"yt-video-thumbnail-error")};
_.f.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.f.getVideoThumbnail=function(a){if(a&&a.length)return a[0]};
var a6=S4c;a6.prototype.dataChanged=a6.prototype.dataChanged;_.U([_.O(),_.W("design:type",Object)],a6.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],a6.prototype,"animatePlaceholderOnEntrance",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],a6.prototype,"autoplay",void 0);_.U([_.O({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.W("design:type",Object)],a6.prototype,"videoThumbnail",void 0);
_.U([_.O(),_.W("design:type",Boolean)],a6.prototype,"loop",void 0);_.U([_.O(),_.W("design:type",Boolean)],a6.prototype,"isVideoPlaying",void 0);_.U([_.O(),_.W("design:type",Object)],a6.prototype,"width",void 0);_.U([_.ir("#mp4"),_.W("design:type",HTMLElement)],a6.prototype,"mp4El",void 0);_.U([_.ir("#placeholder"),_.W("design:type",HTMLElement)],a6.prototype,"placeholderEl",void 0);_.U([_.ir("#video"),_.W("design:type",HTMLVideoElement)],a6.prototype,"videoEl",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],a6.prototype,"dataChanged",null);a6=_.U([_.wr({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],a6);
_.S(a6,"yt-video-as-thumbnail-details",function(){if(R4c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-video-as-thumbnail-details--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_video_as_thumbnail_details.yt.video.as.thumbnail.details.css.js--\x3e<div id="placeholder" class="style-scope yt-video-as-thumbnail-details"></div>\n<div id="video-container" class="style-scope yt-video-as-thumbnail-details">\n  <video id="video" muted="" class="style-scope yt-video-as-thumbnail-details">\n    <source id="mp4" src$="[[videoThumbnail.url]]" type="video/mp4" class="style-scope yt-video-as-thumbnail-details">\n  </video>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Q4c===void 0&&(Q4c=document.createElement("template"));var d=Q4c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);R4c=a}a=R4c;return a},{mode:2});var b6,T4c=function(){var a=_.P.apply(this,arguments)||this;a.disableGridStateAware=!1;a.animationEnabled=_.w("enable_web_ketchup_hero_animation");a.transitioningOut=!1;a.narrow=!1;a.narrower=!1;a.isCarouselInFeed=!1;a.videoTimeoutJobId=0;a.panelTimeoutJobId=0;a.panelTimeoutJobStartMs=0;a.actionMap={"yt-window-resized":"onWindowResized"};return a};
_.z(T4c,_.P);_.f=T4c.prototype;_.f.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.f.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var a;this.player&&((a=this.data)==null?0:a.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.f.attached=function(){this.onWindowResized()};
_.f.detached=function(){this.clearTimeouts()};
_.f.onWindowResized=function(){this.updateSize()};
_.f.computePanelLayout=function(a){return a&&a.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.f.playVideo=function(){var a;this.video&&((a=this.data)==null?0:a.videoThumbnail)&&this.video.play();var b;this.player&&((b=this.data)==null?0:b.inlinePlaybackRenderer)&&this.player.play()};
_.f.stopVideo=function(){var a;this.video&&((a=this.data)==null?0:a.videoThumbnail)&&this.video.stop();var b;this.player&&((b=this.data)==null?0:b.inlinePlaybackRenderer)&&this.player.stop()};
_.f.transitionOut=function(){var a=this;this.transitioningOut=!0;return new Promise(function(b){var c=function(){_.E(a.hostElement).querySelector("#action-button").removeEventListener("animationend",c);_.zk.cancelJob(d);b();a.transitioningOut=!1};
var d=_.sl(_.zk,c,1E3);_.E(a.hostElement).querySelector("#action-button").addEventListener("animationend",c);a.player&&(a.player.playing=!1)})};
_.f.computeMetadataOrder=function(a){return a&&a.metadataOrder&&a.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?a.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.f.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.f.computeAvatarSize=function(a){return a&&a.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.f.onContentClick=function(a){if(!_.Wt(_.Rq(a),this.hostElement,["A".toString(),"BUTTON".toString()])){var b;if((b=this.data)==null?0:b.navigationEndpoint){var c;this.componentBehavior.resolveCommand((c=this.data)==null?void 0:c.navigationEndpoint)}}};
_.f.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.f.setBackgroundImage=function(a){if(a=this.getBackgroundImageUrl(a))_.E(this.hostElement).querySelector("#hero").style.backgroundImage="url("+a+")"};
_.f.setScrimLayer=function(a){var b=this.getScrimLayerColorStops(a);a=((a==null?void 0:a.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(a=180);_.Fi("HTML_DIR")==="rtl"&&(a=-a);b&&(_.E(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+a+"deg, "+b+")")};
_.f.isNarrower=function(){return this.hostElement.clientWidth<b6.NARROW_VERSION_SIZE};
_.f.getScrimLayerColorStops=function(){var a,b=(a=this.data)==null?void 0:a.scrimColorValues;if(!b)return null;if(b.length===1)return a=_.Dq(b[0]),a+" 0%, "+a+" 100%";if(b.length===3){var c=[0,72,98];return b.map(function(d,e){return _.Dq(d)+" "+c[e]+"%"}).join(",")}return null};
_.f.getBackgroundImageUrl=function(a){return a&&a.largeFormFactorBackgroundThumbnail?_.Us((a.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||a.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.f.onPlaying=function(){this.startVideoTimeout()};
_.f.onEnded=function(){this.rotate()};
_.f.startPanelTimeout=function(){var a=this;if(!this.panelTimeoutJobId){var b=this.get("data.minPanelDisplayDurationMs");b&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.sl(_.zk,function(){a.rotate()},b))}};
_.f.startVideoTimeout=function(){var a=this;if(!this.videoTimeoutJobId){_.zk.cancelJob(this.panelTimeoutJobId);var b=Date.now()-this.panelTimeoutJobStartMs;b=Math.max(0,this.get("data.minPanelDisplayDurationMs")-b);b=Math.max(this.get("data.minVideoPlayDurationMs")||0,b);this.videoTimeoutJobId=_.sl(_.zk,function(){a.rotate()},b)}};
_.f.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.zk.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.zk.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.f.rotate=function(){this.clearTimeouts();_.io(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.Um.Object.defineProperties(T4c.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.E(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.E(this.hostElement).querySelector("#video")}}});
_.Um.Object.defineProperties(T4c,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
var c6=b6=T4c;b6.prototype.onEnded=b6.prototype.onEnded;b6.prototype.onPlaying=b6.prototype.onPlaying;b6.prototype.dataChanged=b6.prototype.dataChanged;_.U([_.H(_.TI),_.W("design:type",Object)],c6.prototype,"ytdGridStateAwareBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],c6.prototype,"componentBehavior",void 0);_.U([_.H(_.XI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],c6.prototype,"ytdGuideStateAwareBehavior",void 0);
_.U([_.H(_.Ncc),_.W("design:type",Object)],c6.prototype,"ytBooleanLogicBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],c6.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],c6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],c6.prototype,"ytRendererBehavior",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],c6.prototype,"disableGridStateAware",void 0);_.U([_.O(),_.W("design:type",Object)],c6.prototype,"data",void 0);_.U([_.O({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.W("design:type",String)],c6.prototype,"panelLayout",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],c6.prototype,"animationEnabled",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],c6.prototype,"transitioningOut",void 0);
_.U([_.O({computed:"computeMetadataOrder(data)"}),_.W("design:type",Boolean)],c6.prototype,"metadataOrder",void 0);_.U([_.O({computed:"computeByline(data)"}),_.W("design:type",Object)],c6.prototype,"byline",void 0);_.U([_.O({computed:"computeAvatarSize(data)"}),_.W("design:type",Number)],c6.prototype,"avatarSize",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],c6.prototype,"narrow",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],c6.prototype,"narrower",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],c6.prototype,"layoutStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],c6.prototype,"isCarouselInFeed",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],c6.prototype,"dataChanged",null);_.U([_.M("yt-default-promo-panel-renderer-playing"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],c6.prototype,"onPlaying",null);
_.U([_.M("yt-default-promo-panel-renderer-ended"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],c6.prototype,"onEnded",null);c6=b6=_.U([_.Q({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],c6);
_.S(c6,"ytd-default-promo-panel-renderer",function(){if(N4c!==void 0)return N4c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="hero" class="style-scope ytd-default-promo-panel-renderer"></div>\n<yt-video-as-thumbnail-details id="video" animate-placeholder-on-entrance="" autoplay="" data="[[data.videoThumbnail]]" disable-upgrade$="[[!data.videoThumbnail]]" height="600" hidden$="[[!data.videoThumbnail]]" width="[[screen.width]]" class="style-scope ytd-default-promo-panel-renderer">\n</yt-video-as-thumbnail-details>\n<ytd-default-promo-panel-renderer-inline-playback-renderer id="player" data="[[data.inlinePlaybackRenderer.inlinePlaybackRenderer]]" disable-upgrade$="[[!data.inlinePlaybackRenderer]]" hidden$="[[!data.inlinePlaybackRenderer]]" class="style-scope ytd-default-promo-panel-renderer">\n</ytd-default-promo-panel-renderer-inline-playback-renderer>\n<div id="scrim" class="style-scope ytd-default-promo-panel-renderer"></div>\n<div id="content" on-click="onContentClick" class="style-scope ytd-default-promo-panel-renderer">\n  <yt-img-shadow id="logo" height="68" hidden="[[!data.foregroundThumbnailDetails]]" thumbnail="[[data.foregroundThumbnailDetails]]" class="style-scope ytd-default-promo-panel-renderer">\n  </yt-img-shadow>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_DESCRIPTION_TITLE\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <a class="yt-simple-endpoint style-scope ytd-default-promo-panel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h1 id="hero-title" class="style-scope ytd-default-promo-panel-renderer">[[getSimpleString(data.title)]]</h1>\n  </a>\n  <template is="dom-if" if="[[byline]]" class="style-scope ytd-default-promo-panel-renderer">\n    <div id="byline" class="style-scope ytd-default-promo-panel-renderer">\n      <yt-img-shadow id="avatar" hidden="[[!byline.thumbnailDetails]]" thumbnail="[[byline.thumbnailDetails]]" width="[[avatarSize]]" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string id="channel-name" link-inherit-color="" text="[[byline.bylineText]]" title="" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-formatted-string>\n      <ytd-badge-supported-renderer id="video-badges" badges="[[byline.badgeRenderers]]" hidden="[[!byline.badgeRenderers]]" class="style-scope ytd-default-promo-panel-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n  </template>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <div id="action-button" class="style-scope ytd-default-promo-panel-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return N4c=a},{mode:1});_.Ft("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var U4c=function(){var a=_.P.apply(this,arguments)||this;a.narrower=!1;a.dotMenuVisible=!1;a.paginationThumbnailsVisible=!1;a.active=!0;a.disableGridStateAware=!1;a.actionMap={"yt-window-resized":"onWindowResized"};return a};
_.z(U4c,_.P);_.f=U4c.prototype;_.f.configureRendererStamper=function(){return{currentItem:{id:"carousel-item",mapping:{defaultPromoPanelRenderer:{component:"ytd-default-promo-panel-renderer",attributes:{autoplay:!0},properties:{disableGridStateAware:"[[disableGridStateAware]]",layoutStyle:"[[data.layoutStyle]]",isCarouselInFeed:"[[isCarouselInFeed]]"}}}}}};
_.f.attached=function(){this.onWindowResized()};
_.f.detached=function(){this.jobId&&_.zk.cancelJob(this.jobId);this.updateSizeJobId&&_.zk.cancelJob(this.updateSizeJobId)};
_.f.onWindowResized=function(){this.updateSize()};
_.f.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.f.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.f.setCarouselItem=function(a){a>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.zk.cancelJob(this.jobId);var b=this.getCurrentPanelElement();b&&b.stopVideo();this.currentItemIndex=a%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(b||(b=this.getCurrentPanelElement()),b.playVideo()):this.startRotationJob()};
_.f.scrollThumbnails=function(a){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var b=this.getCurrentPaginationElement();if(b){var c=_.E(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?c.style.transform="translateX(0)":(b=b.offsetWidth+8,c.style.transform="translateX(-"+b*(a-Math.ceil(Math.floor(this.overlay.offsetWidth/b)/2)+1)+"px)")}}};
_.f.onDataChanged=function(){var a=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.Gu(_.zk,function(){a.getCurrentPanelElement().updateSize();a.updateSize()}))};
_.f.getCurrentPanelElement=function(){return _.E(_.E(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.f.getCurrentPaginationElement=function(){return _.E(_.E(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.f.getNavigationClass=function(a,b){return a===b?"selected":""};
_.f.getNavigationDurationStyle=function(a){return"animation-duration:"+(this.get("data.carouselItems."+a+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.f.onNavigationTap=function(a){var b=this,c=a.model.index;c!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){b.setCarouselItem(c)}),this.autorotateActive=!1)};
_.f.onVideoThumbnailEnded=function(){var a=this;if(this.shouldRotate()){var b=this.getCurrentPaginationElement();b&&(b.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){b.classList.remove("finished");a.setNextCarouselItem()}))}};
_.f.onVideoThumbnailError=function(){this.startRotationJob()};
_.f.onVideoNotPlaying=function(){this.startRotationJob()};
_.f.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.f.startRotationJob=function(){var a=this;_.zk.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.zk.addLowPriorityJob(function(){a.getCurrentPanelElement().transitionOut().then(function(){a.setNextCarouselItem()})},this.rotationTimeout))};
_.f.computeDotMenuVisible=function(a,b){return!!a&&!!a.carouselItems&&a.carouselItems.length>1&&!a.paginationThumbnails||!!b};
_.f.computePaginationThumbnailsVisible=function(a,b){var c,d;return((d=a==null?void 0:(c=a.paginationThumbnails)==null?void 0:c.length)!=null?d:0)>1&&!b};
_.f.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.f.computePaginatorAlignment=function(a){return(a==null?void 0:a.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.f.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.f.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.f.isNarrower=function(a){return(a!=null?a:0)<c6.NARROW_VERSION_SIZE};
var d6=U4c;d6.prototype.activeChanged=d6.prototype.activeChanged;d6.prototype.onVideoNotPlaying=d6.prototype.onVideoNotPlaying;d6.prototype.onVideoThumbnailError=d6.prototype.onVideoThumbnailError;d6.prototype.onVideoThumbnailEnded=d6.prototype.onVideoThumbnailEnded;d6.prototype.onDataChanged=d6.prototype.onDataChanged;_.U([_.H(_.TI),_.W("design:type",Object)],d6.prototype,"ytdGridStateAwareBehavior",void 0);
_.U([_.H(_.XI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],d6.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],d6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],d6.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],d6.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],d6.prototype,"currentItem",void 0);
_.U([_.O(),_.W("design:type",Number)],d6.prototype,"currentItemIndex",void 0);_.U([_.O(),_.W("design:type",Number)],d6.prototype,"rotationTimeout",void 0);_.U([_.O(),_.W("design:type",Number)],d6.prototype,"loopCount",void 0);_.U([_.O({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.W("design:type",String)],d6.prototype,"paginatorAlignment",void 0);_.U([_.O(),_.W("design:type",Number)],d6.prototype,"jobId",void 0);
_.U([_.O(),_.W("design:type",Number)],d6.prototype,"updateSizeJobId",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],d6.prototype,"isCarouselInFeed",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],d6.prototype,"narrower",void 0);_.U([_.O({computed:"computeDotMenuVisible(data, narrower)"}),_.W("design:type",Object)],d6.prototype,"dotMenuVisible",void 0);
_.U([_.O({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.W("design:type",Object)],d6.prototype,"paginationThumbnailsVisible",void 0);_.U([_.O({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.W("design:type",String)],d6.prototype,"layoutType",void 0);_.U([_.O({value:!0,reflectToAttribute:!0}),_.W("design:type",Boolean)],d6.prototype,"autorotateActive",void 0);_.U([_.O(),_.W("design:type",Object)],d6.prototype,"active",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],d6.prototype,"disableGridStateAware",void 0);_.U([_.ir("#overlay"),_.W("design:type",HTMLElement)],d6.prototype,"overlay",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d6.prototype,"onDataChanged",null);
_.U([_.M("yt-video-thumbnail-ended"),_.M("yt-default-promo-panel-renderer-rotate"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d6.prototype,"onVideoThumbnailEnded",null);_.U([_.M("yt-video-thumbnail-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d6.prototype,"onVideoThumbnailError",null);
_.U([_.M("yt-video-thumbnail-not-playing"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d6.prototype,"onVideoNotPlaying",null);_.U([_.mr("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d6.prototype,"activeChanged",null);d6=_.U([_.Q({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],d6);
_.S(d6,"ytd-carousel-item-renderer",function(){if(M4c!==void 0)return M4c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="carousel-item" class="style-scope ytd-carousel-item-renderer"></div>\n<div id="menu" hidden="[[!dotMenuVisible]]" class="style-scope ytd-carousel-item-renderer">\n  <template is="dom-repeat" items="[[data.carouselItems]]" class="style-scope ytd-carousel-item-renderer">\n    <button class$="menu-dot [[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" on-click="onNavigationTap">\n    </button>\n  </template>\n</div>\n<div id="overlay" class="style-scope ytd-carousel-item-renderer">\n  <div id="pagination-thumbnails" hidden="[[!paginationThumbnailsVisible]]" class="style-scope ytd-carousel-item-renderer">\n    <template is="dom-repeat" items="[[data.paginationThumbnails]]" class="style-scope ytd-carousel-item-renderer">\n      <button class$="[[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" aria-label$="[[item.accessibility.accessibilityData.label]]" on-click="onNavigationTap">\n          <yt-img-shadow height="54" hidden="[[!equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="96" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n          <yt-img-shadow height="40" hidden="[[equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="72" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n        <div class="progress-bar style-scope ytd-carousel-item-renderer" style$="[[getNavigationDurationStyle(index)]]" hidden="[[!autorotateActive]]">\n        </div>\n      </button>\n    </template>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return M4c=a},{mode:2});var V4c;var W4c;var X4c;var Y4c;var Z4c=function(){var a=_.P.apply(this,arguments)||this;a.originalQuery=null;a.originalEndpoint=null;return a};
_.z(Z4c,_.P);Z4c.prototype.computeShowOriginalQueryWithoutEndpoint_=function(a,b){return!(!a||b)};
var e6=Z4c;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],e6.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],e6.prototype,"correctedText",void 0);_.U([_.O(),_.W("design:type",Object)],e6.prototype,"correctedQuery",void 0);_.U([_.O(),_.W("design:type",Object)],e6.prototype,"correctedEndpoint",void 0);_.U([_.O(),_.W("design:type",Object)],e6.prototype,"originalText",void 0);_.U([_.O(),_.W("design:type",Object)],e6.prototype,"originalQuery",void 0);
_.U([_.O(),_.W("design:type",Object)],e6.prototype,"originalEndpoint",void 0);_.U([_.O({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.W("design:type",Boolean)],e6.prototype,"showOriginalQueryWithoutEndpoint",void 0);e6=_.U([_.wr({is:"yt-search-query-correction",disableElementRegistration:!0})],e6);
_.S(e6,"yt-search-query-correction",function(){if(Y4c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-query-correction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_search_query_correction.yt.search.query.correction.css.js--\x3e<yt-formatted-string id="corrected" text="[[correctedText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n<a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(correctedEndpoint)]]" data="[[correctedEndpoint]]">\n  <yt-formatted-string id="corrected-link" text="[[correctedQuery]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n</a>\n<template is="dom-if" if="[[originalText]]" class="style-scope yt-search-query-correction">\n  <yt-formatted-string id="original" text="[[originalText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n  <template is="dom-if" if="[[originalEndpoint]]" class="style-scope yt-search-query-correction">\n    <a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(originalEndpoint)]]" data="[[originalEndpoint]]">\n        <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n      </a>\n  </template>\n  <template is="dom-if" if="[[showOriginalQueryWithoutEndpoint]]" class="style-scope yt-search-query-correction">\n    <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n  </template>\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;X4c===void 0&&(X4c=document.createElement("template"));var d=X4c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Y4c=a}a=Y4c;return a},{mode:2});_.Ft("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var $4c=function(){return _.P.apply(this,arguments)||this};
_.z($4c,_.P);var a5c=$4c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],a5c.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],a5c.prototype,"data",void 0);a5c=_.U([_.wr({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],a5c);
_.S(a5c,"yt-did-you-mean-renderer",function(){if(W4c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-did-you-mean-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_did_you_mean_renderer.yt.did.you.mean.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.didYouMean]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" class="style-scope yt-did-you-mean-renderer">\n</yt-search-query-correction>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;V4c===void 0&&(V4c=document.createElement("template"));var d=V4c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);W4c=a}a=W4c;return a},{mode:2});var b5c;var c5c;_.Ft("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var d5c=function(){return _.P.apply(this,arguments)||this};
_.z(d5c,_.P);var e5c=d5c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],e5c.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],e5c.prototype,"data",void 0);e5c=_.U([_.wr({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],e5c);
_.S(e5c,"yt-including-results-for-renderer",function(){if(c5c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-including-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_including_results_for_renderer.yt.including.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.includingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.searchOnlyFor]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-including-results-for-renderer">\n</yt-search-query-correction>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;b5c===void 0&&(b5c=document.createElement("template"));var d=b5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);c5c=a}a=c5c;return a},{mode:2});var f5c;var g5c;_.Ft("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var h5c=function(){return _.P.apply(this,arguments)||this};
_.z(h5c,_.P);h5c.prototype.computeExtraClasses_=function(a,b){var c="";a&&(c+=" "+a.toLowerCase().replace(/_/g,"-"));b&&(c+=" "+b.toLowerCase().replace(/_/g,"-"));return c};
h5c.prototype.computeUrlImg_=function(){var a=this.data;a.image&&(_.E(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.Us(a.image.thumbnails,Number.MAX_VALUE)+")")};
var f6=h5c;f6.prototype.computeUrlImg_=f6.prototype.computeUrlImg_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],f6.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],f6.prototype,"data",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],f6.prototype,"computeUrlImg_",null);f6=_.U([_.wr({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],f6);
_.S(f6,"yt-music-pass-feature-info-renderer",function(){if(g5c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_feature_info_renderer.yt.music.pass.feature.info.renderer.css.js--\x3e<div id="container" class$="[[computeExtraClasses_(data.textStyle, data.textHorizontalAlignment)]] style-scope yt-music-pass-feature-info-renderer">\n  <div id="message" dir="ltr" class="style-scope yt-music-pass-feature-info-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;f5c===void 0&&(f5c=document.createElement("template"));var d=f5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);g5c=a}a=g5c;return a},{mode:2});var i5c;var j5c;_.Ft("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var k5c=function(){return _.P.apply(this,arguments)||this};
_.z(k5c,_.P);var l5c=k5c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],l5c.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],l5c.prototype,"data",void 0);l5c=_.U([_.wr({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],l5c);
_.S(l5c,"yt-no-results-found-showing-results-for-renderer",function(){if(j5c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-no-results-found-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_no_results_found_showing_results_for_renderer.yt.no.results.found.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.showingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.noResultsFound]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-no-results-found-showing-results-for-renderer">\n</yt-search-query-correction>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;i5c===void 0&&(i5c=document.createElement("template"));var d=i5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);j5c=a}a=j5c;return a},{mode:2});var m5c;var n5c;_.Ft("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var o5c=function(){return _.P.apply(this,arguments)||this};
_.z(o5c,_.P);var p5c=o5c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],p5c.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],p5c.prototype,"data",void 0);p5c=_.U([_.wr({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],p5c);
_.S(p5c,"yt-results-without-quotes-renderer",function(){if(n5c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-results-without-quotes-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_results_without_quotes_renderer.yt.results.without.quotes.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.resultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.withoutQuotes]]" class="style-scope yt-results-without-quotes-renderer">\n</yt-search-query-correction>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;m5c===void 0&&(m5c=document.createElement("template"));var d=m5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);n5c=a}a=n5c;return a},{mode:2});var q5c;var r5c;_.Ft("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var s5c=function(){return _.P.apply(this,arguments)||this};
_.z(s5c,_.P);var t5c=s5c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],t5c.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],t5c.prototype,"data",void 0);t5c=_.U([_.wr({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],t5c);
_.S(t5c,"yt-search-no-results-renderer",function(){if(r5c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-no-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_search_no_results_renderer.yt.search.no.results.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.noResultsText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer">\n  <a class="yt-simple-endpoint style-scope yt-search-no-results-renderer" href$="[[computeHref_(data.alternateQueryEndpoint)]]" data="[[data.alternateQueryEndpoint]]">\n    <yt-formatted-string id="link" text="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n  </a>\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;q5c===void 0&&(q5c=document.createElement("template"));var d=q5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);r5c=a}a=r5c;return a},{mode:2});var u5c;var v5c;_.Ft("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var w5c=function(){return _.P.apply(this,arguments)||this};
_.z(w5c,_.P);var x5c=w5c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],x5c.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],x5c.prototype,"data",void 0);x5c=_.U([_.wr({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],x5c);
_.S(x5c,"yt-showing-results-for-renderer",function(){if(v5c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_showing_results_for_renderer.yt.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-endpoint="[[data.correctedQueryEndpoint]]" corrected-query="[[data.correctedQuery]]" corrected-text="[[data.showingResultsFor]]" original-endpoint="[[data.originalQueryEndpoint]]" original-query="[[data.originalQuery]]" original-text="[[data.searchInsteadFor]]" class="style-scope yt-showing-results-for-renderer">\n</yt-search-query-correction>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;u5c===void 0&&(u5c=document.createElement("template"));var d=u5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);v5c=a}a=v5c;return a},{mode:2});var y5c;var z5c;var A5c;var B5c;var C5c=function(){var a=_.P.apply(this,arguments)||this;a.answerExpanded=!1;return a};
_.z(C5c,_.P);C5c.prototype.toggleAnswer_=function(a){var b=_.Sq(a);b&&b.classList.contains("yt-simple-endpoint")||(a.preventDefault(),a.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
var g6=C5c;g6.prototype.toggleAnswer_=g6.prototype.toggleAnswer_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],g6.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],g6.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],g6.prototype,"answerExpanded",void 0);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],g6.prototype,"toggleAnswer_",null);
g6=_.U([_.wr({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],g6);
_.S(g6,"yt-generic-faq-question-renderer",function(){if(B5c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-generic-faq-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_generic_faq_question_renderer.yt.generic.faq.question.renderer.css.js--\x3e<div class="head style-scope yt-generic-faq-question-renderer" on-tap="toggleAnswer_">\n  <span class="question style-scope yt-generic-faq-question-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope yt-generic-faq-question-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope yt-generic-faq-question-renderer">\n    <yt-formatted-string class="answer style-scope yt-generic-faq-question-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;A5c===void 0&&(A5c=document.createElement("template"));var d=A5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);B5c=a}a=B5c;return a},{mode:2});_.Ft("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var D5c=function(){return _.P.apply(this,arguments)||this};
_.z(D5c,_.P);D5c.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
var h6=D5c;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],h6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],h6.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],h6.prototype,"data",void 0);h6=_.U([_.wr({is:"yt-faq-section-renderer",disableElementRegistration:!0})],h6);
_.S(h6,"yt-faq-section-renderer",function(){if(z5c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_faq_section_renderer.yt.faq.section.renderer.css.js--\x3e<div class="container style-scope yt-faq-section-renderer">\n  <span class="header style-scope yt-faq-section-renderer">[[getSimpleString(data.header)]]</span>\n  <div id="contents" class="style-scope yt-faq-section-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;y5c===void 0&&(y5c=document.createElement("template"));var d=y5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);z5c=a}a=z5c;return a},{mode:2});var E5c;var F5c;_.Ft("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var G5c=function(){return _.P.apply(this,arguments)||this};
_.z(G5c,_.P);
G5c.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
var i6=G5c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],i6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],i6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],i6.prototype,"data",void 0);i6=_.U([_.wr({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],i6);
_.S(i6,"yt-offer-item-expanded-renderer",function(){if(F5c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-expanded-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_expanded_renderer.yt.offer.item.expanded.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n<div id="content" class="style-scope yt-offer-item-expanded-renderer">\n    <div id="heading-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="description-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="additional-info-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;E5c===void 0&&(E5c=document.createElement("template"));var d=E5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);F5c=a}a=F5c;return a},{mode:2});var H5c;var I5c;_.Ft("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var J5c=function(){return _.P.apply(this,arguments)||this};
_.z(J5c,_.P);
J5c.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
J5c.prototype.computeFullWidthMode=function(a){return!(!a||!a.fullWidthMode)};
J5c.prototype.computeBorderlessMode=function(a){return!(!a||!a.borderlessMode)};
var j6=J5c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],j6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],j6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],j6.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.W("design:type",Boolean)],j6.prototype,"fullWidthMode",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.W("design:type",Boolean)],j6.prototype,"borderlessMode",void 0);j6=_.U([_.wr({is:"yt-offer-item-renderer",disableElementRegistration:!0})],j6);
_.S(j6,"yt-offer-item-renderer",function(){if(I5c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_renderer.yt.offer.item.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="heading-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="description-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="additional-info-renderer" class="style-scope yt-offer-item-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;H5c===void 0&&(H5c=document.createElement("template"));var d=H5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);I5c=a}a=I5c;return a},{mode:2});var K5c;var L5c;_.Ft("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var M5c=function(){return _.P.apply(this,arguments)||this};
_.z(M5c,_.P);M5c.prototype.computeAriaLevel_=function(a){return this.getLevelID_(a)};
M5c.prototype.getLevelID_=function(a){return(a=a.match(/[0-9]+$/))&&a.length==1?a[0]:"1"};
var k6=M5c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],k6.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],k6.prototype,"data",void 0);_.U([_.O({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.W("design:type",String)],k6.prototype,"ariaLevel",void 0);_.U([_.O({value:"heading",reflectToAttribute:!0}),_.W("design:type",String)],k6.prototype,"role",void 0);
_.U([_.O({value:-1,reflectToAttribute:!0}),_.W("design:type",Number)],k6.prototype,"tabindex",void 0);k6=_.U([_.wr({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],k6);
_.S(k6,"yt-subscription-product-header-renderer",function(){if(L5c===void 0){var a=document.createElement("template");_.B(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_header_renderer.yt.subscription.product.header.renderer.css.js--\x3e[[getSimpleString(data.text)]]\n");a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;K5c===void 0&&(K5c=document.createElement("template"));var d=K5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);L5c=a}a=L5c;return a},{mode:2});var N5c;var O5c;_.Ft("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var P5c=function(){return _.P.apply(this,arguments)||this};
_.z(P5c,_.P);P5c.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.menu":{id:"menu",mapping:_.Gt("menuRenderer"),events:!0}}};
P5c.prototype.onStampFinished_=function(){_.E(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
var l6=P5c;l6.prototype.onStampFinished_=l6.prototype.onStampFinished_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],l6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],l6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],l6.prototype,"data",void 0);
_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],l6.prototype,"onStampFinished_",null);l6=_.U([_.wr({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],l6);
_.S(l6,"yt-subscription-product-renderer",function(){if(O5c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_renderer.yt.subscription.product.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-subscription-product-renderer">\n  <div id="content" class="style-scope yt-subscription-product-renderer">\n    <yt-img-shadow id="logo-image" height="30" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-renderer">\n    </yt-img-shadow>\n    <div id="metadatas" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-subscription-product-renderer">\n        <div class="metadata style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <div id="additional-infos" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-renderer">\n        <div class="additional-info style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <yt-formatted-string class="description style-scope yt-subscription-product-renderer" hidden="[[!data.description]]" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n  </div>\n  <div id="menu" class="style-scope yt-subscription-product-renderer"></div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;N5c===void 0&&(N5c=document.createElement("template"));var d=N5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);O5c=a}a=O5c;return a},{mode:2});var Q5c;var R5c;_.Ft("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var S5c=function(){return _.P.apply(this,arguments)||this};
_.z(S5c,_.P);S5c.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
S5c.prototype.imageScrimColorValuesChanged_=function(){var a,b=(a=this.data)==null?void 0:a.imageScrimColorValues;_.E(this.hostElement).querySelector("#scrim").style.backgroundColor=b?_.Dq(b[0]):"transparent"};
var m6=S5c;m6.prototype.imageScrimColorValuesChanged_=m6.prototype.imageScrimColorValuesChanged_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],m6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],m6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],m6.prototype,"data",void 0);
_.U([_.N("data.imageScrimColorValues"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],m6.prototype,"imageScrimColorValuesChanged_",null);m6=_.U([_.wr({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],m6);
_.S(m6,"yt-subscription-product-upsell-offer-renderer",function(){if(R5c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-upsell-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_upsell_offer_renderer.yt.subscription.product.upsell.offer.renderer.css.js--\x3e<tp-yt-paper-card class="style-scope yt-subscription-product-upsell-offer-renderer">\n  <div id="image-container" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    <yt-img-shadow id="image" object-fit="COVER" object-position="LEFT" thumbnail="[[data.image]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    </yt-img-shadow>\n    <div id="scrim" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <yt-icon id="logo-icon" aria-label$="[[data.logoIconAccessibility.accessibilityData.label]]" hidden="[[!data.logoIcon]]" icon="[[data.logoIcon.iconType]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-icon>\n      <yt-img-shadow id="logo-image" height="30" hidden="[[!data.logo]]" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div id="content" class="card-content style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="title" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      [[getSimpleString(data.title)]]\n    </div>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n    <div id="additional-infos" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n        <yt-formatted-string id="additional-info" text="[[item]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Q5c===void 0&&(Q5c=document.createElement("template"));var d=Q5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);R5c=a}a=R5c;return a},{mode:2});var T5c;var U5c;var V5c;var W5c;var X5c;var Y5c;var Z5c=function(){return _.P.apply(this,arguments)||this};
_.z(Z5c,_.P);Z5c.prototype.onYtServiceRequestError_=function(a){_.OW(this.hostElement,a.detail.error.message)};
var n6=Z5c;n6.prototype.onYtServiceRequestError_=n6.prototype.onYtServiceRequestError_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],n6.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],n6.prototype,"data",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],n6.prototype,"collapsible",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],n6.prototype,"isManageRed",void 0);
_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],n6.prototype,"onYtServiceRequestError_",null);n6=_.U([_.wr({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],n6);
_.S(n6,"yt-single-ypc-offer-renderer",function(){if(Y5c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_renderer.yt.single.ypc.offer.renderer.css.js--\x3e<div id="yt-unlimited-metadata" class="style-scope yt-single-ypc-offer-renderer">\n  <yt-formatted-string hidden="[[!data.offerTypeName]]" text="[[data.offerTypeName]]" class="style-scope yt-single-ypc-offer-renderer">\n  </yt-formatted-string>\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-single-ypc-offer-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-single-ypc-offer-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<yt-button-renderer id="subscription-button" data="[[data.button.buttonRenderer]]" class="style-scope yt-single-ypc-offer-renderer">\n</yt-button-renderer>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;X5c===void 0&&(X5c=document.createElement("template"));var d=X5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Y5c=a}a=Y5c;return a},{mode:2});var $5c=function(){return _.P.apply(this,arguments)||this};
_.z($5c,_.P);$5c.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
var o6=$5c;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],o6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],o6.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],o6.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],o6.prototype,"isManageRed",void 0);o6=_.U([_.wr({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],o6);
_.S(o6,"yt-single-ypc-offer-list-renderer",function(){if(W5c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_list_renderer.yt.single.ypc.offer.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-single-ypc-offer-list-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;V5c===void 0&&(V5c=document.createElement("template"));var d=V5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);W5c=a}a=W5c;return a},{mode:2});var a6c;var b6c;_.Ft("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var c6c=function(){return _.P.apply(this,arguments)||this};
_.z(c6c,_.P);c6c.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
var p6=c6c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],p6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],p6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],p6.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],p6.prototype,"isManageRed",void 0);p6=_.U([_.wr({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],p6);
_.S(p6,"yt-ypc-offers-list-renderer",function(){if(b6c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_list_renderer.yt.ypc.offers.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-ypc-offers-list-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;a6c===void 0&&(a6c=document.createElement("template"));var d=a6c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);b6c=a}a=b6c;return a},{mode:2});_.Ft("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var d6c=function(){return _.P.apply(this,arguments)||this};
_.z(d6c,_.P);
d6c.prototype.configureRendererStamper=function(){return{"data.manageFixFopButton":{id:"manage-fix-fop-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.helpButton":{id:"help-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageFamilyButton":{id:"manage-family-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageSubscriptionButton":{id:"manage-subscription-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
params:{alignByText:!0}}}},"data.offers":{id:"offers",mapping:{ypcOffersListRenderer:{component:"yt-ypc-offers-list-renderer",params:{isManageRed:!0}}}}}};
var q6=d6c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],q6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],q6.prototype,"data",void 0);q6=_.U([_.wr({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],q6);
_.S(q6,"yt-unlimited-manage-subscription-page-renderer",function(){if(U5c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-manage-subscription-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_manage_subscription_page_renderer.yt.unlimited.manage.subscription.page.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n  <h2 class="style-scope yt-unlimited-manage-subscription-page-renderer">[[getSimpleString(data.subscriptionTitle)]]</h2>\n  <div class="card-content style-scope yt-unlimited-manage-subscription-page-renderer">\n    <template is="dom-repeat" items="[[data.subscriptionInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div class="subscription-info-item style-scope yt-unlimited-manage-subscription-page-renderer">\n        <span class="subscription-info-item-title style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.title)]]\n        </span>\n        <span class="subscription-info-item-content style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.content)]]\n        </span>\n      </div>\n    </template>\n    <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <yt-formatted-string class="additional-info style-scope yt-unlimited-manage-subscription-page-renderer" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n    <div class="buttons style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div id="manage-fix-fop-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-family-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-subscription-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="help-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n    </div>\n    <div id="offers" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;T5c===void 0&&(T5c=document.createElement("template"));var d=T5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);U5c=a}a=U5c;return a},{mode:2});var e6c;var f6c;var g6c=function(){return _.P.apply(this,arguments)||this};
_.z(g6c,_.P);_.f=g6c.prototype;_.f.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.f.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.f.onKeypress_=function(a){a.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.f.handleHeaderTap_=function(a){a.preventDefault();a.stopPropagation();this.expandOffers_()};
_.f.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.f.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
var r6=g6c;r6.prototype.dataChanged_=r6.prototype.dataChanged_;_.U([_.H(_.FD),_.W("design:type",Object)],r6.prototype,"ironA11yKeysBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],r6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],r6.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],r6.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],r6.prototype,"offersVisible_",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],r6.prototype,"dataChanged_",null);r6=_.U([_.wr({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],r6);
_.S(r6,"yt-collapsible-ypc-offer-renderer",function(){if(f6c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-collapsible-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_collapsible_ypc_offer_renderer.yt.collapsible.ypc.offer.renderer.css.js--\x3e<yt-formatted-string id="more-offer-info-header" hidden="[[offersVisible_]]" text="[[data.moreOfferInfoHeader]]" on-tap="handleHeaderTap_" class="style-scope yt-collapsible-ypc-offer-renderer">\n</yt-formatted-string>\n<div id="offers" hidden="[[!offersVisible_]]" class="style-scope yt-collapsible-ypc-offer-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;e6c===void 0&&(e6c=document.createElement("template"));var d=e6c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);f6c=a}a=f6c;return a},{mode:2});var h6c;var i6c;_.Ft("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var j6c=function(){return _.P.apply(this,arguments)||this};
_.z(j6c,_.P);_.f=j6c.prototype;_.f.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.f.dataChanged_=function(){if(this.data.backgroundImage){var a=_.Us(this.data.backgroundImage.thumbnails,screen.width),b=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=b?"linear-gradient(180deg, "+b+"), url("+a+")":"url("+a+")";this.data.gtmId&&_.BG(this.data.gtmId,_.Fi("GL",""))}};
_.f.onYtServiceRequestError_=function(a){_.OW(this.hostElement,a.detail.error.message)};
_.f.getScrimLayerColorStops_=function(){var a,b,c=(a=this.data.unlimitedHeaderV2Data)==null?void 0:(b=a.unlimitedHeaderV2Data)==null?void 0:b.scrimLayerColors;if(!c)return null;var d=100/c.length;return c.map(function(e,g){g*=d;return _.Dq(e)+" "+g+"%"}).join(",")};
_.f.computeLogoWithPadding=function(a){var b,c,d;return(a=(b=a.unlimitedLogoImage)==null?void 0:(c=b.thumbnails)==null?void 0:(d=c[0])==null?void 0:d.height)&&a%31===0?!0:!1};
var s6=j6c;s6.prototype.onYtServiceRequestError_=s6.prototype.onYtServiceRequestError_;s6.prototype.dataChanged_=s6.prototype.dataChanged_;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],s6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],s6.prototype,"ytRendererBehavior",void 0);_.U([_.O({computed:"computeLogoWithPadding(data)"}),_.W("design:type",Boolean)],s6.prototype,"logoWithPadding",void 0);
_.U([_.O(),_.W("design:type",Object)],s6.prototype,"data",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],s6.prototype,"dataChanged_",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],s6.prototype,"onYtServiceRequestError_",null);s6=_.U([_.wr({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],s6);
_.S(s6,"yt-unlimited-page-header-renderer",function(){if(i6c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-page-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_page_header_renderer.yt.unlimited.page.header.renderer.css.js--\x3e<template is="dom-if" if="[[!logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<template is="dom-if" if="[[logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper-with-padding" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo-with-padding" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<yt-formatted-string id="subtitle" respect-html-dir="" text="[[data.subTitle]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-formatted-string>\n<yt-button-renderer id="manage-subscription-button" data="[[data.manageSubscriptionButton.buttonRenderer]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-button-renderer>\n<div id="metadatas" class="style-scope yt-unlimited-page-header-renderer">\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-formatted-string class="metadata-item style-scope yt-unlimited-page-header-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n  <template is="dom-if" if="[[data.additionalBillingInfo]]" class="style-scope yt-unlimited-page-header-renderer">\n    <div id="additional-billing-info" class="style-scope yt-unlimited-page-header-renderer">\n      <yt-formatted-string class="billing-info-item style-scope yt-unlimited-page-header-renderer" text="[[data.additionalBillingInfo]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n<yt-formatted-string class="promotion-text style-scope yt-unlimited-page-header-renderer" text="[[data.promotion.ypcPromotionRenderer.promotionText]]">\n</yt-formatted-string>\n<div id="more-offers" class="style-scope yt-unlimited-page-header-renderer"></div>\n<a id="restriction-apply-button" class="offer-details-link style-scope yt-unlimited-page-header-renderer" tabindex="0">\n  <yt-formatted-string text="[[data.offerDetailsLinkText]]" class="style-scope yt-unlimited-page-header-renderer"></yt-formatted-string>\n</a>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;h6c===void 0&&(h6c=document.createElement("template"));var d=h6c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);i6c=a}a=i6c;return a},{mode:2});var k6c;var l6c;_.Ft("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var m6c=function(){return _.P.apply(this,arguments)||this};
_.z(m6c,_.P);m6c.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
var t6=m6c;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],t6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],t6.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],t6.prototype,"data",void 0);t6=_.U([_.wr({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],t6);
_.S(t6,"yt-unlimited-user-notification-renderer",function(){if(l6c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-user-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_user_notification_renderer.yt.unlimited.user.notification.renderer.css.js--\x3e<div id="yt-notification-text" class="style-scope yt-unlimited-user-notification-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope yt-unlimited-user-notification-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  </template>\n</div>\n<div id="action-button" class="style-scope yt-unlimited-user-notification-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;k6c===void 0&&(k6c=document.createElement("template"));var d=k6c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);l6c=a}a=l6c;return a},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.lsc=_.Rr(function(a){var b=_.Or(a,{numberOfChips:5}).numberOfChips;return _.q("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.q(_.ri,{each:function(){return Array(b==null?void 0:b())}},function(){return _.q("div",{class:"ytGhostChipShelfChip"})}))},"Ff");
}catch(e){_._DumpException(e)}
try{
var Tmc,Umc,Vmc,Wmc,Xmc,Ymc,Zmc,mX,nX,anc,bnc,cnc,enc,mnc,oX,lnc,hnc,knc,jnc,inc,gnc,nnc,onc,pnc,qnc,pX,rnc,snc,tnc,ync,xnc,wnc,unc,vnc,Anc,Bnc,Cnc,Dnc,Enc,Fnc,Jnc,Mnc,Nnc,Onc,Qnc,Snc,Unc,Vnc,Wnc,Xnc,Znc,$nc,aoc,boc,doc,eoc,foc,goc,hoc,ioc,joc,loc,poc,ooc,moc,qoc,noc,roc,voc,uoc,soc,toc,vX,woc,zoc,Foc,Goc,Hoc,Ioc,Joc,Koc,Loc,Moc,Noc,Ooc,Qoc,Roc,Soc,znc,$mc,Coc;
_.kX=function(a){var b=new _.qj("Error accessing DB");return _.CIa().then(function(c){return new Promise(function(d,e){try{var g=c.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(a);g.onsuccess=function(){var k=g.result;d(k?k.value:null)};
g.onerror=function(){b.params={key:a,source:"onerror"};e(b)}}catch(k){b.params={key:a,
thrownError:String(k)},e(b)}})},function(){return null})};
_.Smc=function(a,b){var c=_.Kda(b);c!=="javascript:"&&c!=="data:"&&a.setAttribute("href",b)};
Tmc=function(a,b){return _.np(a.entities,"flowStateEntity",b)};
Umc=function(a){return(a=a.getOption("captions","track"))?!!a.displayName:!1};
Vmc=function(a,b){b=b.getOption("captions","translationLanguages",{includeAsr:!0})||[];if(b==null||!b.length)return a;var c=b.filter(function(k){return k});
b=a.filter(function(k){return k.languageCode.startsWith("en")});
c=_.h(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,b.length){var e=b[0],g=Object.assign({},e);e.languageCode!==d.languageCode&&(g.displayName=e.languageName+" >> "+d.languageName,g.translationLanguage=d,a.push(g))}return a};
Wmc=function(a){var b,c=(b=a.getOption("captions","tracklist",{includeAsr:!0}))!=null?b:[];_.w("mweb_watch_captions_enable_auto_translate")&&(c=Vmc(c,a));return c};
Xmc=function(a){return _.Ka(a,function(b){return b.languageCode==="en"})};
Ymc=function(a){var b=lX;if(Umc(a))a.setOption("captions","stickyLoading",{}),a.setOption("captions","track",{});else{var c=_.Ka(Wmc(a),function(d){return d.displayName===b});
a.setOption("captions","track",c)}};
Zmc=function(a){if(!a)return 0;var b=a.getPresentingPlayerType(),c=a.getVideoData();return c&&c.isLive?(a=a.getProgressState(b),a.seekableEnd-a.seekableStart):a.getDuration(b)};
mX=function(a,b){_.Ww(b,a,function(){return $mc[b]},function(c){$mc[b]=c;
if(!_.w("mweb_player_ve_show_ks")){var d=_.En(0);d&&c&&_.Uo(d,c)}})};
nX=function(a){(a=$mc[a])&&_.sF(_.ls(),a)};
anc=function(a,b){for(var c=_.h(Object.keys(a)),d=c.next();!d.done;d=c.next())if(d=d.value,a[d]!==b[d])return!1;return!0};
bnc=function(){return document.getElementById("player-control-overlay")};
cnc=function(a){a!==-1&&!_.w("player_controls_log_creation_killswitch")&&bnc()&&(_.Lo("pcu_cs",a),_.Lo("pcu_ce"))};
enc=function(a){return _.q("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(a.subscribeButton?[a.subscribeButton,a.channelAccess]:[a.channelAccess]).map(function(b){return _.q("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.q("div",{class:"yt-profile-identity-info-view-model-wiz--button"},dnc(b)))}))};
_.fnc=function(a){var b=a.data;a=a.hideDivider;var c={};c=(c["yt-profile-identity-info-view-model-wiz__frame"]=!0,c["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!b.channelBanner,c);c={class:_.ht(c)};var d,e={imageBannerViewModel:{image:(d=b.channelBanner)==null?void 0:d.image,style:"IMAGE_BANNER_STYLE_INSET"}};d=_.q("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},b.channelBanner?_.q("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
dnc(e,{imageBannerViewModel:{isPositionRelative:!0}})):null);e=_.q("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},dnc(b.avatar));var g;var k=_.q("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.q("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},b.channelDisplayName),b.verifiedOrOacBadge?_.q("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.q(_.Ps,{data:{thumbnails:[{url:(g=b.verifiedOrOacBadge)==null?void 0:g.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);g=_.q("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},k,dnc(b.threeDotMenu));k=_.q("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.q("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.q("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},b.channelHandle),b.channelPronouns&&b.channelHandle?_.q("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.q("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},b.channelPronouns)),_.q("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.q("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},b.leftOfBulletInfo),b.leftOfBulletInfo&&b.rightOfBulletInfo?_.q("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.q("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},b.rightOfBulletInfo)));g=_.q("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},g,k);return _.q("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.q("div",c,d,_.q("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},e,g),b.channelDescription?_.q("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},b.channelDescription):
null,enc(b),a?null:_.q("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
mnc=function(a,b){var c=_.Nr(a,{}),d=gnc("top",b),e=gnc("bottom",b),g=gnc("left",b),k=gnc("right",b);return _.ot({top:function(){return oX(c().position,d)},
bottom:function(){return oX(c().position,e)},
left:function(){return oX(c().position,g)},
right:function(){return oX(c().position,k)},
position:function(){return oX(c().positionType,hnc)},
height:function(){return oX(c().height,pX)},
width:function(){return oX(c().width,pX)},
"min-width":function(){return oX(c().minWidth,pX)},
"min-height":function(){return oX(c().minHeight,pX)},
"max-width":function(){return oX(c().maxWidth,pX)},
"max-height":function(){return oX(c().maxHeight,pX)},
"aspect-ratio":function(){return oX(c().aspectRatio,String)},
"margin-top":function(){return oX(c().margin,d)},
"margin-bottom":function(){return oX(c().margin,e)},
"margin-left":function(){return oX(c().margin,g)},
"margin-right":function(){return oX(c().margin,k)},
"padding-top":function(){return oX(c().padding,d)},
"padding-bottom":function(){return oX(c().padding,e)},
"padding-left":function(){return oX(c().padding,g)},
"padding-right":function(){return oX(c().padding,k)},
"flex-direction":function(){return oX(c().flexDirection,inc)},
"justify-content":function(){return oX(c().justifyContent,jnc)},
"align-items":function(){return oX(c().alignItems,knc)},
"flex-grow":function(){return oX(c().flexGrow,String)},
"flex-shrink":function(){return oX(c().flexShrink,String)},
"flex-basis":function(){return oX(c().flexBasis,pX)},
"align-self":function(){return oX(c().alignSelf,knc)},
"flex-wrap":function(){return oX(c().flexWrap,lnc)},
"align-content":function(){return oX(c().alignContent,knc)}})};
oX=function(a,b){return a!==void 0?b(a):void 0};
lnc=function(a){switch(a){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
hnc=function(a){switch(a){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
knc=function(a){switch(a){case "YPC_ALIGN_ITEMS_AUTO":return"auto";case "YPC_ALIGN_ITEMS_START":return"flex-start";case "YPC_ALIGN_ITEMS_END":return"flex-end";case "YPC_ALIGN_ITEMS_CENTER":return"center";case "YPC_ALIGN_ITEMS_STRETCH":return"stretch"}};
jnc=function(a){switch(a){case "YPC_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "YPC_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "YPC_JUSTIFY_CONTENT_CENTER":return"center";case "YPC_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "YPC_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around"}};
inc=function(a){switch(a){case "YPC_FLEX_DIRECTION_ROW":return"row";case "YPC_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "YPC_FLEX_DIRECTION_COLUMN":return"column";case "YPC_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse"}};
gnc=function(a,b){var c=b==="rtl";switch(a){case "top":var d=nnc;break;case "bottom":d=onc;break;case "left":d=pnc;break;default:d=qnc}return function(e){return oX(d(e,c),pX)}};
nnc=function(a){var b=a.top;var c=a.vertical;a=a.all;var d;return(d=b!=null?b:c)!=null?d:a};
onc=function(a){var b=a.bottom;var c=a.vertical;a=a.all;var d;return(d=b!=null?b:c)!=null?d:a};
pnc=function(a,b){var c=a.left;var d=a.end;var e=a.start;var g=a.horizontal;a=a.all;var k,m;return(m=(k=c!=null?c:b?d:e)!=null?k:g)!=null?m:a};
qnc=function(a,b){var c=a.right;var d=a.end;var e=a.start;var g=a.horizontal;a=a.all;var k,m;return(m=(k=c!=null?c:b?e:d)!=null?k:g)!=null?m:a};
pX=function(a){var b=a.value;switch(a.unit){case "YPC_DIMENSION_UNIT_POINT":return b+"px";case "YPC_DIMENSION_UNIT_FRACTION":return b+"%";default:return""+b}};
rnc=function(a){switch(a){case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY":return"ytStyledTextViewModelYtTextPrimary";case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY_INVERSE":return"ytStyledTextViewModelYtTextPrimaryInverse";case "YPC_SEMANTIC_COLOR_TEXT_SECONDARY":return"ytStyledTextViewModelYtTextSecondary";case "YPC_SEMANTIC_COLOR_TEXT_DISABLED":return"ytStyledTextViewModelYtTextDisabled";case "YPC_SEMANTIC_COLOR_THEMED_GREEN":return"ytStyledTextViewModelYtThemedGreen"}};
snc=function(a){var b=a!=null?a:{};a=b.fontRole;var c=b.fontSize;b=b.fontWeight;if(a!==null&&c!==null)switch(a){case "YPC_FONT_ROLE_DISPLAY":switch(c){case "YPC_FONT_SIZE_L":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(c){case "YPC_FONT_SIZE_L":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return b===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(c){case "YPC_FONT_SIZE_XL":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
tnc=function(a,b){return _.np(a.entities,"pdpStateEntity",b)};
ync=function(a,b,c){function d(r){return Object.values(r).map(function(t){var u=t.productId;t=t.pricingOptionIndex;return unc(e(u).pricingOptions,t).pricingOptionId})}
function e(r){return m().get(r)}
function g(r){r=d(r);c(r)}
var k=vnc([a,b],function(r,t){var u=r==null?void 0:r.selectedPricingOptions;r={};var x=!0;if(u&&t.length)for(var A=_.h(t),C=A.next();!C.done;C=A.next()){C=C.value;var F=wnc(C.pricingOptions,function(J){a:{J=J.pricingOptionId;for(var I=_.h(u),R=I.next();!R.done;R=I.next())if(R.value===J){J=!0;break a}J=!1}return J});
F>=0&&(x=!1,r[C.groupId]={productId:C.productId,pricingOptionIndex:F})}x&&t.length&&(r[t[0].groupId]={productId:t[0].productId,pricingOptionIndex:0});return r}),m=vnc([b],function(r){return new Map(r.map(function(t){return[t.productId,
t]}))}),n=vnc([b],function(r){var t=new Map;
r=_.h(r);for(var u=r.next();!u.done;u=r.next()){var x=u.value;u=x.groupId;var A=x.productId;x=_.h(xnc(x.pricingOptions));for(var C=x.next();!C.done;C=x.next()){var F=_.h(C.value);C=F.next().value;F=F.next().value;t.set(F.pricingOptionId,{groupId:u,productId:A,index:C,pricingOption:F})}}return t});
return{getProductById:e,isProductSelected:function(r){var t=e(r);if(!t)return!1;var u;return((u=k()[t.groupId])==null?void 0:u.productId)===r},
getSelectedPricingOptions:function(){return Object.values(k()).map(function(r){var t=r.productId;r=r.pricingOptionIndex;return unc(e(t).pricingOptions,r)})},
getSelectedProductByGroupId:function(r){var t;return(r=(t=k()[r])==null?void 0:t.productId)?e(r):void 0},
onProductSelected:function(r){var t=e(r);if(t){var u=k(),x;if(((x=u[t.groupId])==null?void 0:x.productId)!==r){var A,C;x=(C=(A=u[t.groupId])==null?void 0:A.pricingOptionIndex)!=null?C:0;A=0;for(C=t.pricingOptions[Symbol.iterator]();!C.next().done;)++A;A<=x&&(x=0);A={};g(Object.assign({},u,(A[t.groupId]={productId:r,pricingOptionIndex:x},A)))}}},
onPricingOptionSelected:function(r){var t=n().get(r);if(t){r=t.groupId;var u=t.productId;t=t.index;var x=k(),A,C;if(((A=x[r])==null?void 0:A.productId)!==u||((C=x[r])==null?void 0:C.pricingOptionIndex)!==t)A={},g(Object.assign({},x,(A[r]={productId:u,pricingOptionIndex:t},A)))}},
onClearGroupSelected:function(r){var t=k();t[r]&&(t=Object.fromEntries(Object.entries(t).filter(function(u){return _.h(u).next().value!==r})),g(t))}}};
xnc=function(a){return function c(){var d,e,g,k;return znc(c,function(m){switch(m.nextAddress){case 1:_.re(m,2),d=0,e=_.h(a),g=e.next();case 4:if(g.done){m.jumpTo(2);break}k=g.value;var n=[d++,k];return _.p(m,n,7);case 7:g=e.next();m.jumpTo(4);break;case 2:_.qe(m),_.se(m,0)}})}()};
wnc=function(a,b){a=_.h(xnc(a));for(var c=a.next();!c.done;c=a.next()){var d=_.h(c.value);c=d.next().value;d=d.next().value;if(b(d))return c}return-1};
unc=function(a,b){a=_.h(xnc(a));for(var c=a.next();!c.done;c=a.next()){var d=_.h(c.value);c=d.next().value;d=d.next().value;if(c===b)return d}};
vnc=function(a,b){var c,d;return function(){for(var e=a.map(function(k){return k()}),g=0;g<e.length;g++)if(!c||e[g]!==c[g]){c=e;
d=b.apply(null,_.De(e));break}return d}};
Anc=function(a){var b;return!!(a.productId&&a.groupId&&((b=a.pricingOptions)==null?0:b.length)&&a.pricingOptions.every(function(c){return c.pricingOptionId}))};
Bnc=function(a,b,c){return ync(a,vnc([b],function(d){return d.filter(Anc)}),c)};
Cnc=function(a){switch(a){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
Dnc=function(a,b){return b.length===0?[a]:[a.slice(0,b[0]),a.slice(b[0])].filter(function(c){return c.length>0})};
Enc=function(a){switch(a){case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-justify-end";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-full-distributed";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-flex-primary";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-vertical-centered";
case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-distributed-space";default:return""}};
Fnc=function(a,b,c,d){d=Object.assign({},d);_.ys(d,qX,{selectedOptionId:a,primaryButtonOverride:c});_.Kr().dispatch(_.wu("flowStateEntity",b,d))};
_.Inc=function(){if(!Gnc){var a=_.h(_.ih(new Map,void 0,"UJImUe"));Gnc=a.next().value;Hnc=a.next().value}return Gnc};
Jnc=function(a){if(a)return _.Inc()().get(a)};
_.Knc=function(a,b){if(a&&b){var c=_.Inc();c().set(a,b);a=c();Hnc(new Map(a))}};
_.Lnc=function(a){return{onSubmit:function(){var b;(b=Jnc(a()))==null||b.onSubmit()},
isValid:function(){var b=Jnc(a());return b?b.isValid():!0},
isSubmitting:function(){var b,c;return!!((b=Jnc(a()))==null?0:(c=b.isSubmitting)==null?0:c.call(b))}}};
Mnc=function(a,b){return _.np(a.entities,"contextNoteFeedEntityPayload",b)};
Nnc=function(a){a.style.height="auto";a.style.height=a.scrollHeight+"px"};
Onc=function(a){return[a.syncStep,a.asyncStep].filter(function(b){return b!==void 0})};
Qnc=function(a){var b,c,d;if(a=(b=a.structuredContextNoteFormSchema)==null?void 0:(c=b.fieldSchemas)==null?void 0:(d=c.noteBody)==null?void 0:d.validationSchema)for(b=_.h(Onc(a)),c=b.next();!c.done;c=b.next()){c=c.value.rules;if(!c)break;c=_.h(c);for(c=c.next();!c.done;c=c.next())return _.y(c.value,_.Pnc)}};
Snc=function(a){if(a){a=_.h(Onc(a));for(var b=a.next();!b.done;b=a.next()){b=b.value.rules;if(!b)break;b=_.h(b);for(b=b.next();!b.done;b=b.next())return _.y(b.value,Rnc)}}};
Unc=function(a){if(a){a=_.h(Onc(a));for(var b=a.next();!b.done;b=a.next()){b=b.value.rules;if(!b)break;b=_.h(b);for(b=b.next();!b.done;b=b.next())return _.y(b.value,Tnc)}}};
Vnc=function(a){a=/^https?:\/\//.test(a)?a:"http://"+a;try{var b=_.Mg(a)}catch(c){return!1}if(b.toString()!==a)return!1;a=b.JSC$7876_domain_.split(".");return a.length>1&&a.every(function(c){return!!c})};
Wnc=function(a,b,c,d){var e;d=(e=d.structuredContextNoteData)==null?void 0:e.createCommentEndpoint;if(e=_.y(d,_.TEb))return e.commentText=_.Vp(a),e.videoPositionMention=b,e.sources=c,d};
Xnc=function(a){return a==null?void 0:a.stringValue};
Znc=function(a){a=a.data;var b=a.flowStateKey||"",c=_.su(Tmc,b),d=_.y(c,rX),e,g=(e=_.y(_.y(d==null?void 0:d.navigationCommand,_.Cs),_.Kl))==null?void 0:e.url;e=(a==null?0:a.navButton)?{buttonViewModel:Object.assign({},_.y(a==null?void 0:a.navButton,_.Iu),{state:(d==null?0:d.navigationEnabled)||_.w("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",iconName:g?"OPEN_IN_NEW":""})}:void 0;g=function(){if(_.w("enable_gff_accessibility_fix")){var k=!0;if(d==
null?0:d.navigationEnabled)_.Gs(d==null?void 0:d.navigationCommand),k=!1;k=Object.assign({},c,{abuseReportFlowState:Object.assign({},d,{isReportFormDirty:k})});_.Mr(_.wu("flowStateEntity",b,k))}else _.Gs(d==null?void 0:d.navigationCommand)};
return _.q("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.q("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},Ync(a.cancelButton,{buttonViewModel:{className:"ytWebReportFormBottomBarViewModelButton",onClick:g}}),Ync(e,{buttonViewModel:{className:"ytWebReportFormBottomBarViewModelButton",onClick:g}})))};
$nc=function(a){var b=a.data;var c;a=((c=_.v().resolve(_.Xi(_.Ks)))==null?0:c())&&b.imageDark?b.imageDark:b.image;var d=_.su(_.pw,b.flowStateKey||"");return _.q("yt-report-form-confirmation-page-view-model",{class:"ytWebReportFormConfirmationPageViewModelHost"},_.q("div",{class:function(){var e;return((e=_.y(d,rX))==null?void 0:e.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.q(_.Ps,{data:a,
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.q("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.q("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},b.confirmationHeader),_.q("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.q(_.tt,{text:b.confirmationText})),_.q("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.q(_.tt,{text:b.lawEnforcementText})),_.q("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},
b.whatToExpectHeader),_.Tg(b.nextSteps,function(){return _.q("div",null,b.nextSteps.map(function(e){return _.q("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.q("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.q(_.qt,{icon:e.iconName||""})),_.q("div",null,_.q(_.tt,{text:e==null?void 0:e.text,className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))}))}),_.Tg(b.legalReportText,function(){return _.q("div",null,_.q(_.tt,{text:b==null?void 0:
b.legalReportText,
className:"ytWebReportFormConfirmationPageViewModelLegalText"}))})))};
aoc=function(a){a=a.data;var b=_.y(a==null?void 0:a.inputBox,sX),c=(b==null?void 0:b.maxChars)||500,d=(b==null?void 0:b.placeholderText)||"";b={errorMessage:(b==null?void 0:b.maxCharsExceededErrorMessage)||"",maxChars:c};var e=a.flowStateKey||"",g=_.su(_.pw,e),k=_.Iy(function(m){m=Object.assign({},g,{flowFormState:{isValid:m.length<=c},abuseReportFlowState:{userComments:m,navigationEnabled:!(m.length>c),isReportFormDirty:!0}});_.Kr().dispatch(_.Lu("flowStateEntity",e,m))},150);
_.wi(function(){var m=Object.assign({},g,{flowFormState:{isValid:!0}});_.Kr().dispatch(_.Lu("flowStateEntity",e,m))});
return _.q("yt-report-form-details-page-view-model",{class:"ytWebReportFormDetailsPageViewModelHost"},_.q("h1",{class:function(){var m;return((m=_.y(g,rX))==null?void 0:m.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},a==null?void 0:a.detailsPageHeader),_.q("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.q(_.tt,{text:a==null?void 0:a.bodyText})),_.q("div",{class:"ytWebReportFormDetailsPageViewModelInput"},
_.q(tX,{label:d,
outline:!0,rows:10,characterLimit:b,onInput:k})))};
boc=function(a){a=a.data;var b,c=((b=_.v().resolve(_.Xi(_.Ks)))==null?0:b())&&a.imageDark?a.imageDark:a.image;return _.q("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.q("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.q(_.Ps,{data:c,alt:""})),_.q("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.q("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},a==null?void 0:a.header),
_.q(_.tt,{text:a==null?void 0:a.text,className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))};
doc=function(a,b,c){a=a.map(function(d,e){return{listItemViewModel:{title:d.title,subtitle:d.subtitle,leadingImage:d.leadingImage,trailingImage:e===b?coc:void 0,rendererContext:{commandContext:{onTap:d.onTap}}}}});
return Object.assign({},c&&{header:{panelHeaderViewModel:{title:c}}},{content:{listViewModel:{listItems:a}}})};
eoc=function(a,b){if(a&&b)switch(b){case "SELECTION_TYPE_BOOL":return a.boolValue;case "SELECTION_TYPE_INT":return a.intValue;case "SELECTION_TYPE_STRING":return a.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return a.privacyStatusValue}};
foc=function(a){var b;a=(b=a.options)==null?void 0:b.findIndex(function(c){return c.isSelected});
return a===void 0?-1:a};
goc=function(a,b,c){var d=function(){return a().label},e={},g=_.et("ytDropdownViewModelLabel",(e.ytDropdownViewModelLabelError=b,e));
return _.q(_.qi,{cond:function(){var k;if(k=a().label)k=!(c()===-1&&a().label&&!a().placeholderText);return k},
then:function(){return _.q("div",{class:g},_.q(_.tt,{text:d}))}})};
hoc=function(a,b){var c={};c=_.et("ytDropdownViewModelTitle",(c.ytDropdownViewModelTitlePlaceholder=function(){return b()===-1},c));
return _.q("div",{class:c},_.q(_.tt,{text:function(){var d=a();var e=b();if(e===-1)d=d.placeholderText?d.placeholderText:d.label;else{var g,k;d=(g=d.options)==null?void 0:(k=g[e])==null?void 0:k.title}return d}}))};
ioc=function(a,b){var c=function(){return a().hint};
return _.q(_.Wh,null,_.q(_.qi,{cond:function(){return c()&&!b()},
then:function(){return _.q("div",{class:_.et("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.q(_.tt,{text:c,className:"ytDropdownViewModelSupportText"}))}}),_.q(_.qi,{cond:b,
then:function(){return _.q("div",{id:"dropdown-view-model-error",role:"alert",class:_.et("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.q(_.qt,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.q(_.tt,{text:b,className:"ytDropdownViewModelSupportText"}))}}))};
joc=function(a,b){var c=_.v().resolve(_.Jfc);_.wi(function(){var d=a().id;d&&c!=null&&c.dropdownMap.set(d,b)})};
loc=function(a){a=_.y(a.scheduleButton,koc);a=_.y(a==null?void 0:a.primaryButton,_.Iu);a=_.y(a==null?void 0:a.onTap,_.Cs);var b,c,d=((c=_.y(a,_.ro))==null?void 0:c.commands)||[a];c=_.h(d);for(a=c.next();!a.done&&!(b=_.y(a.value,_.VCb));a=c.next());var e;b=(e=b)==null?void 0:e.createBroadcastRequest;if(!b)throw Error("Kj");return b};
poc=function(a,b,c){c=c===void 0?{}:c;var d,e;return _.l(function(g){if(d=moc(b))return g.return(d);(e=noc(a,b,c))&&ooc(b,e);return g.return(e)})};
ooc=function(a,b){var c=qoc(a);c&&b.then(function(d){_.v().resolve(_.rJ).put(c,new _.sJ({innertubeResponse:d}))})};
moc=function(a){if(a=qoc(a)){var b=_.v().resolve(_.rJ);if(b.has(a))return b.get(a).then(function(c){return c==null?void 0:_.ww(c)})}return null};
qoc=function(a){var b=_.y(a.endpoint,_.Un);if(b!=null&&b.videoId)return b={videoId:b.videoId},_.w("web_imp_player_mute_params")&&(b.mutedAtStart=a.startPlaybackInMutedState),_.Tn("inline_playback",b)};
noc=function(a,b,c){a=_.Rt(a,b.endpoint,roc(b,c)).then(function(d){return d});
return Promise.resolve(a)};
roc=function(a,b){b=_.w("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!a.startPlaybackInMutedState},b):Object.assign({},{vis:5,autonav:"1"},b);var c;b={contentPlaybackContext:_.vq(b,(c=_.y(a.endpoint.commandMetadata,_.co))==null?void 0:c.url,window.location.href)};_.w("web_imp_player_mute_params")&&(b.overrideMutedAtStart=!a.startPlaybackInMutedState);return b};
voc=function(a,b){var c=window.MutationObserver;c&&(uX=new c(function(d,e){d=_.h(d);for(var g=d.next();!g.done;g=d.next()){g=g.value;var k;if(k=g.type==="childList"&&g.target)a:{k=a;g=soc(g.target);k=soc(k);for(var m=null,n=0;n<g.length;n++)if(k.includes(g[n])){if(n===0){k=!1;break a}m=g[n];break}m?(g=toc(g,m),k=toc(k,m),k=g<k):k=!1}if(k){b();e.disconnect();break}}}),(c=uoc())&&uX.observe(c,{childList:!0,
subtree:!0}))};
uoc=function(){var a=document.getElementsByTagName("ytd-rich-grid-renderer");if(a.length>0)return a[0];a=document.getElementsByTagName("ytd-section-list-renderer");return a.length>0?a[0]:null};
soc=function(a){for(var b=[];a;)b.push(a),a=a.parentElement;return b};
toc=function(a,b){var c=Array.from(b.children);b=a.indexOf(b);return b>0?c.indexOf(a[b-1]):-1};
vX=function(a,b,c){c=c===void 0?{}:c;return _.vo(a,c,b)};
woc=function(a){return a==null?void 0:a.filter(function(b){return b.premiereTrailerBadgeRenderer})};
zoc=function(a,b){var c="",d="";switch(a){case -1:case 0:c=b?"VOLUME_OFF":"VOLUME_OFF_FILLED";d=xoc;break;case 1:c=b?"VOLUME_UP_OUTLINE":"VOLUME_UP";d=yoc;break;default:_.Wb(a)}return{iconName:c,ariaLabel:d}};
Foc=function(a,b){var c=Aoc,d=_.h(_.ih(Boc(new Coc(function(){},c,b)),void 0,"PAnyd")),e=d.next().value,g=d.next().value,k=new Coc(function(m){g(m)},c,b);
_.wh(function(){Promise.resolve().then(function(){var m,n=(m=a())!=null?m:{};k.playerControlsData=n;_.w("player_controls_skip_double_signal_old")&&(k.lastSeenPlayerApi=_.Zw(n.playerApi));_.w("player_controls_skip_double_signal_old")||(k.lastSeenPlayerApi=_.Zw(n.playerApi));Doc(k)});
_.zh(function(){Eoc(k)})},"NzeYrb");
_.zh(function(){Eoc(k)});
return function(){return e()}};
Goc=function(a){return function(b){var c=a(),d={playerState:b};if(b===1){var e;(e=c.playerApi)==null||e.loadModule("captions")}if(b===0){var g;(g=c.playerApi)==null||g.unloadModule("captions")}(b!==-1||_.w("web_imp_controls_set_player_state_killswitch"))&&c.setState(d)}};
Hoc=function(a){return function(b){a().setState({playbackRate:b})}};
Ioc=function(a){return function(b){var c=a(),d=c.playerApi,e=d==null?void 0:d.getVideoData(),g=(e==null?void 0:e.isLive)||!1;e=e==null?void 0:e.video_id;g={videoDuration:Zmc(d||void 0),isLive:g,videoId:e};g.videoId!==c.videoId&&(g=Object.assign({},_.h7a(d),g));if(b==null?0:b.playertype)g.playerType=b.playertype;if(d){g.captionsAvailable=!!d.getOptions("captions");b=g;var k;e=(k=d.getStoryboardLevel(d.getNumberOfStoryboardLevels()-1))==null?void 0:k.intervalMs;b.storyboardInterval=e?e/1E3:void 0;g.captionsAvailable&&
(g.captionsEnabled=Umc(d))}g.volumeMuted=!(d==null||!d.isMuted());c.setState(g)}};
Joc=function(a){return function(b){var c=a(),d=c.playerApi;if(d){var e=d.getPresentingPlayerType();b={playedTime:b||0,percentLoaded:d.getVideoLoadedFraction(),playerType:e};c.playerState===0&&(b.playedTime=c.videoDuration);c.isLive&&(e=d.getProgressState(e),b.playedTime-=e.seekableStart,b.videoDuration=Zmc(d));c.playerType!==1&&delete b.playedTime;c.setState(b)}}};
Koc=function(a){return function(){var b=a(),c,d,e,g={volume:(e=(c=b.playerApi)==null?void 0:c.getVolume())!=null?e:0,volumeMuted:!((d=b.playerApi)==null||!d.isMuted())};b.setState(g)}};
Loc=function(a){return function(){var b=a(),c=b.playerApi;if(c){var d={captionsAvailable:!!c.getOptions("captions")};d.captionsAvailable&&(d.captionsEnabled=Umc(c));b.setState(d)}}};
Moc=function(a){return function(){var b=a();if(b.playerApi&&!(b.volumeMuted||b.controlsVisible&&b.isProbablyAScreenreaderUser)){b.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var c;(c=document.querySelector(".player-control-play-pause-icon"))==null||c.focus()}}};
Noc=function(a){return{appApi:Object.assign({},_.a7a(),{showCaptionsToggleToast:function(b){var c,d;(d=(c=a()).showCaptionsToggleToast)==null||d.call(c,b)},
openInMiniplayer:function(){var b,c;(c=(b=a()).openInMiniplayer)==null||c.call(b)}})}};
Ooc=function(a,b){var c,d,e;return!!(a==null?0:(c=a.playerResponse)==null?0:(d=c.playerConfig)==null?0:(e=d.inlinePlaybackConfig)==null?0:e.showScrubbingControls)&&!(b==null?0:b.hideScrubbingControls)};
_.Poc=function(a){var b=!a.miniplayerIsActive;return[5,2,0].includes(a.miniplayerPlaybackState)||b};
Qoc={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};Roc=function(a,b){var c,d,e,g,k;_.l(function(m){if(!b.length)return m.return([]);c=[];d=_.h(b);for(e=d.next();!e.done;e=d.next())g=e.value,(k=a.resolveIcon(g))&&!a.iconCache[k.url]&&c.push(_.Yhc(a,k).then(function(){}).catch(function(){}));
return m.return(Promise.all(c))})};
Soc=function(a,b){var c=[];b=(new Set(b)).values();b=_.h(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;for(var e=_.h(Object.values(Qoc)),g=e.next();!g.done;g=e.next())c.push({iconName:d,iconStyle:g.value})}Roc(a.iconManager,c)};
_.Toc=function(a,b,c){var d=c!=null?c:a.iconsToFetch;d!=null&&d.length?b!==void 0&&b>=0?_.sl(_.zk,function(){Soc(a,d)},b):Soc(a,d):Promise.resolve()};
znc=function(a,b){b=new _.G8a(new _.D8a(b));_.gx&&a.prototype&&(0,_.gx)(b,a.prototype);return b};
$mc={};
Coc=function(a,b,c){var d=this;this.renderFn=a;this.listeners=b;this.context=c;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var e;this.lastSeenPlayerApi=_.Zw((e=this.playerControlsData)==null?void 0:e.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.h7a(),void 0);_.w("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){Boc(d).setState({playerState:-1});d.resetRecentlyNavigatedJobId&&_.zk.cancelJob(d.resetRecentlyNavigatedJobId);d.recentlyNavigated=
!0;d.resetRecentlyNavigatedJobId=_.zk.addJob(function(){d.recentlyNavigated=!1},8,1E4)})};
Coc.prototype.setState=function(a){if(!_.w("mweb_player_skip_no_op_state_changes")||!anc(a,this.state))if(this.state=Object.assign({},this.state,a),!_.w("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)a=-1,_.w("player_controls_log_creation_killswitch")||bnc()||(a=(0,_.Uj)()),_.Lo("pcu_s"),_.Lo("pcu_se"),_.Lo("pcu_rs"),this.renderFn(Boc(this)),_.Lo("pcu_re"),cnc(a),_.zk.addJob(function(){_.Lo("pcu_ap")},8)};
var Boc=function(a){var b;var c=_.Zw((b=a.playerControlsData)==null?void 0:b.playerApi);return Object.assign({},a.state,{setState:a.boundSetState,domMeasurements:{progressBarLineRect:a.progressBarLineRect},playerApi:c,appApi:a.context.appApi,playerContainer:a.context.playerContainer,playerControlContainer:a.context.playerControlContainer,uxConfig:a.context.uxConfig})},Doc=function(a){a.listeners.forEach(function(b){a.eventListenerCleanupFunctions.push(b.register(function(){return Boc(a)},function(){return a.getData()}))})},
Eoc=function(a){a.eventListenerCleanupFunctions.forEach(function(b){b()});
a.eventListenerCleanupFunctions.length=0};
Coc.prototype.getData=function(){return this.playerControlsData};
var rX=new _.X("abuseReportFlowState");var Uoc=new _.X("feedbackFormFlowState");var sX=new _.X("inputBoxViewModel");var Voc=new _.X("flowNextStepCommand");var Woc=new _.X("flowPrevStepCommand");var Xoc=new _.X("updateFlowCommand");_.Yoc=new _.X("flowStepRenderer");_.Pnc=new _.X("lengthValidationRule");var Rnc=new _.X("regexValidationRule");var Tnc=new _.X("selectedValidationRule");var Zoc=new _.X("talkToRecsViewModel");var $oc=new _.X("creatorGoalSetUpFlowDropdownItemViewModel");var apc=new _.X("creatorGoalSetUpFlowDropdownViewModel");_.bpc=new _.X("radioButtonGroupViewModel");var koc=new _.X("panelFooterViewModel");var cpc=new _.X("ypcCancelRecurrenceCommand");var dpc=new _.X("cancellationFlowState");var qX=new _.X("premiumPurchaseFlowState");var epc=new _.X("surveyAnswerCardRenderer");var fpc=new _.X("showMoreButtonRenderer");var gpc;var hpc,ipc=function(){if(hpc!==void 0)return hpc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-set-up-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_set_up_flow_view_model.yt.creator.goal.set.up.flow.view.model.css.js--\x3e<div id="container" class="style-scope yt-creator-goal-set-up-flow-view-model">\n  <div id="header" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    <yt-image id="image" data="[[data.image]]" height="100" preserve-height="" width="100" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-image>\n  </div>\n  <div id="subheader" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="description" data="[[data.pageDescription]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n  </div>\n  <div id="goal-content" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <div id="number-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.purchaseTargetDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="goal-dropdown" no-label-float="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="goal-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[goal]]" on-selected-changed="updateGoalValue">\n        <template is="dom-repeat" items="[[getGoalDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="tier-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="tier-goal-label" data="[[data.colorDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="tier-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="tier-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[tier]]" on-selected-changed="updateTierValue">\n        <template is="dom-repeat" items="[[getColorDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n      <yt-attributed-string id="tier-disclosure" data="[[data.colorDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n    <div id="duration-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="duration-goal-label" data="[[data.timerDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="timer-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="timer-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[timer]]" on-selected-changed="updateTimerValue">\n        <template is="dom-repeat" items="[[getTimerDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="description-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.descriptionInputTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-textarea id="goal-description-input" maxlength="220" no-label-float="" placeholder="[[data.userGoalPlaceholderText.content]]" on-value-changed="onTextValueChanged" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </tp-yt-paper-textarea>\n      <yt-button-view-model id="[[exampleButtonId]]" data="[[data.exampleButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </yt-button-view-model>\n      <yt-attributed-string id="description-disclosure" data="[[data.descriptionDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n  </div>\n  <div id="footer" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-button-view-model id="[[startButtonId]]" data="[[getButtonViewModel(goalDescription)]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    </yt-button-view-model>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;gpc===void 0&&(gpc=document.createElement("template"));var d=gpc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return hpc=a};var jpc=function(){var a=_.P.apply(this,arguments)||this;a.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";a.goalDescription="";a.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";a.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";a.startButtonId="start-button";a.exampleButtonId="example-button";return a};
_.z(jpc,_.P);_.f=jpc.prototype;_.f.getGoalDropdownItems=function(){var a,b;return(b=_.y((a=this.data)==null?void 0:a.purchaseTargetDropdown,apc))==null?void 0:b.dropdownItems};
_.f.getTimerDropdownItems=function(){var a,b;return(b=_.y((a=this.data)==null?void 0:a.timerDropdown,apc))==null?void 0:b.dropdownItems};
_.f.getColorDropdownItems=function(){var a,b;return(b=_.y((a=this.data)==null?void 0:a.colorDropdown,apc))==null?void 0:b.dropdownItems};
_.f.getDropdownItemText=function(a){var b;return(b=_.y(a,$oc))==null?void 0:b.itemLabel};
_.f.getDropdownItemValue=function(a){a=_.y(a,$oc);return(a==null?void 0:a.timeLimit)||(a==null?void 0:a.purchaseTarget)||(a==null?void 0:a.eligiblePurchaseType)};
_.f.updateFlowState=function(a){_.lo(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:a}])};
_.f.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.f.updateGoalValue=function(a){this.goal=a.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.f.onTextValueChanged=function(a){this.goalDescription=a.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.f.updateTimerValue=function(a){this.timer=a.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.f.updateTierValue=function(a){this.tier=a.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.f.getButtonViewModel=function(a){a=(a==null?void 0:a.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var b,c=_.y((b=this.data)==null?void 0:b.startGoalButton,_.Iu);return Object.assign({},c,{state:a})};
_.Um.Object.defineProperties(jpc,{template:{configurable:!0,enumerable:!0,get:function(){return ipc()}}});
var wX=jpc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],wX.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],wX.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],wX.prototype,"goal",void 0);_.U([_.O(),_.W("design:type",Object)],wX.prototype,"goalDescription",void 0);_.U([_.O(),_.W("design:type",Object)],wX.prototype,"timer",void 0);_.U([_.O(),_.W("design:type",Object)],wX.prototype,"tier",void 0);
_.U([_.O(),_.W("design:type",Object)],wX.prototype,"startButtonId",void 0);_.U([_.O(),_.W("design:type",Object)],wX.prototype,"exampleButtonId",void 0);wX=_.U([_.wr({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],wX);_.S(wX,"yt-creator-goal-set-up-flow-view-model",function(){return ipc()},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var kpc;var lpc;var mpc;var npc=function(){return _.P.apply(this,arguments)||this};
_.z(npc,_.P);var opc=npc;_.U([_.O(),_.W("design:type",Object)],opc.prototype,"data",void 0);opc=_.U([_.wr({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],opc);
_.S(opc,"yt-survey-answer-card-renderer",function(){if(mpc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-answer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_answer_card_renderer.yt.survey.answer.card.renderer.css.js--\x3e<yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[data.answerString]]" class="style-scope yt-survey-answer-card-renderer"></yt-formatted-string><yt-icon id="card-icon" icon="CHEVRON_RIGHT" class="style-scope yt-survey-answer-card-renderer"></yt-icon>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;lpc===void 0&&(lpc=document.createElement("template"));var d=lpc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);mpc=a}a=mpc;return a},{mode:2});var ppc;var qpc;var rpc=function(){return _.P.apply(this,arguments)||this};
_.z(rpc,_.P);_.f=rpc.prototype;_.f.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.f.selectedItemChanged=function(a){_.lo(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[a.feedbackToken||""]}])};
_.f.surveyAnswerCardRendererClicked=function(a){if(a.target&&_.y(a.model.item,epc)){var b=a.target;a=_.y(a.model.item,epc);a.onTapCommand?_.po(b,[a.onTapCommand],b):this.data.onTapCommand&&_.po(b,[this.data.onTapCommand],b);this.selectedItemChanged(a)}};
_.f.checkIsCancellationStyle=function(a){return a==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.f.updateSelectedItemFromBinding=function(a){this.selectedItem=a.detail.value};
var xX=rpc;xX.prototype.onSelectedItemChanged=xX.prototype.onSelectedItemChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],xX.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],xX.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],xX.prototype,"selectedItem",void 0);_.U([_.O({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.W("design:type",Boolean)],xX.prototype,"isCancellationStyle",void 0);
_.U([_.N("selectedItem"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],xX.prototype,"onSelectedItemChanged",null);xX=_.U([_.wr({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],xX);
_.S(xX,"yt-survey-flow-step-renderer",function(){if(qpc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_flow_step_renderer.yt.survey.flow.step.renderer.css.js--\x3e<yt-formatted-string id="question" force-default-style="" split-lines="1" text="[[data.question]]" class="style-scope yt-survey-flow-step-renderer">\n</yt-formatted-string>\n\n<template is="dom-if" if="[[isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <template is="dom-repeat" items="[[data.answerCards]]" as="item" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n      <yt-survey-answer-card-renderer data="[[item.surveyAnswerCardRenderer]]" on-click="surveyAnswerCardRendererClicked" class="style-scope yt-survey-flow-step-renderer"></yt-survey-answer-card-renderer>\n    </template>\n  </template>\n</template>\n\n<template is="dom-if" if="[[!isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[selectedItem]]" on-selected-changed="updateSelectedItemFromBinding" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-repeat" items="[[data.answerCards]]" class="style-scope yt-survey-flow-step-renderer">\n      <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n        <tp-yt-paper-radio-button id="radio" aria-label="[[getSimpleString(item.surveyAnswerCardRenderer.answerString)]]" name="[[item.surveyAnswerCardRenderer]]" no-ink="" class="style-scope yt-survey-flow-step-renderer">\n          <yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[item.surveyAnswerCardRenderer.answerString]]" class="style-scope yt-survey-flow-step-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;ppc===void 0&&(ppc=document.createElement("template"));var d=ppc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);qpc=a}a=qpc;return a},{mode:2});var spc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return a};
_.z(spc,_.P);spc.prototype.handleSurveyFlowStepOptionChanged=function(a){this.ytdReduxBehavior.dispatch(_.hp({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:a}));_.lo(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:a}}])};
var yX=spc;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],yX.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],yX.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],yX.prototype,"data",void 0);yX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],yX);
_.S(yX,"ytd-survey-flow-step-renderer",function(){if(kpc!==void 0)return kpc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-survey-flow-step-renderer data="[[data]]" class="style-scope ytd-survey-flow-step-renderer"></yt-survey-flow-step-renderer>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return kpc=a},{mode:1});var dnc;dnc=_.Du({avatarViewModel:_.Kv,buttonViewModel:_.Qu,subscribeButtonViewModel:_.JXb,imageBannerViewModel:_.iac});_.tpc=_.jt(_.fnc);_.Zl(_.fnc);var upc;var vpc=function(){return _.P.apply(this,arguments)||this};
_.z(vpc,_.P);var zX=vpc;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],zX.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],zX.prototype,"data",void 0);zX=_.U([_.Q({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],zX);
_.S(zX,"ytd-channel-history-renderer",function(){if(upc!==void 0)return upc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-history-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-history-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope ytd-channel-history-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n</div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return upc=a},{mode:1});var wpc;var xpc=function(){return _.P.apply(this,arguments)||this};
_.z(xpc,_.P);var ypc=xpc;_.U([_.O(),_.W("design:type",Object)],ypc.prototype,"data",void 0);ypc=_.U([_.Q({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],ypc);
_.S(ypc,"ytd-feature-enablement-info-renderer",function(){if(wpc!==void 0)return wpc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feature-enablement-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-feature-enablement-info-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n</div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return wpc=a},{mode:1});var zpc;var Apc;var Bpc=function(){var a=_.P.apply(this,arguments)||this;a.textBoxMaxLength=_.w("enable_tvod_campaign_code_integration")?15:12;return a};
_.z(Bpc,_.P);_.f=Bpc.prototype;_.f.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.f.onSubmit=function(){var a=this.data.serviceEndpoint,b=_.y(a,_.tv);b&&(b.couponCode=this.userInput,_.oo(this.hostElement,[a]))};
_.f.validate=function(){var a=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=a&&!this.data.errorMessage;this.showErrorMessage=a&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.w("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.f.computeStyle=function(a){return a};
_.f.computeShowValidationBelowInput=function(a){return a!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.f.updateUserInputFromBinding=function(a){this.userInput=a.currentTarget.value};
_.f.updateShowErrorMessageFromBinding=function(a){this.showErrorMessage=a.detail.value};
_.Um.Object.defineProperties(Bpc.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
var AX=Bpc;AX.prototype.dataChanged=AX.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],AX.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],AX.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],AX.prototype,"userInput",void 0);_.U([_.O(),_.W("design:type",Boolean)],AX.prototype,"disableApplyButton",void 0);_.U([_.O(),_.W("design:type",Boolean)],AX.prototype,"hideApplyButton",void 0);
_.U([_.O(),_.W("design:type",Boolean)],AX.prototype,"hideErrorMessage",void 0);_.U([_.O(),_.W("design:type",Boolean)],AX.prototype,"showTick",void 0);_.U([_.O(),_.W("design:type",Boolean)],AX.prototype,"showErrorMessage",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],AX.prototype,"couponStyle",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.W("design:type",Boolean)],AX.prototype,"showValidationBelowInput",void 0);_.U([_.O(),_.W("design:type",Object)],AX.prototype,"textBoxMaxLength",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],AX.prototype,"dataChanged",null);
_.U([_.K("showTick","showErrorMessage","userInput"),_.W("design:type",String),_.W("design:paramtypes",[])],AX.prototype,"validationState",null);AX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],AX);
_.S(AX,"ytd-ypc-coupon-renderer",function(){if(Apc!==void 0)return Apc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-coupon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-ypc-coupon-renderer">\n  <tp-yt-paper-input-container class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" invalid="[[showErrorMessage]]" use-v2-underline="" on-invalid-changed="updateShowErrorMessageFromBinding">\n    <input id="input" maxlength$="[[textBoxMaxLength]]" autocomplete="off" placeholder="[[data.boxHint]]" value="[[userInput]]" on-keyup="validate" slot="input" on-input="updateUserInputFromBinding" class="style-scope ytd-ypc-coupon-renderer">\n    <tp-yt-paper-input-error slot="add-on" aria-live="assertive" hidden="[[!showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n      [[data.errorMessage]]\n    </tp-yt-paper-input-error>\n  </tp-yt-paper-input-container>\n</div>\n\n<div id="validation" class="style-scope ytd-ypc-coupon-renderer">\n  <div hidden="[[showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showErrorMessage]]">\n      [[data.errorMessage]]\n    </div>\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]">\n      [[data.successMessage]]\n    </div>\n  </div>\n  <yt-icon-button class="confirmation style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]" noink="">\n    <yt-icon icon="check" class="style-scope ytd-ypc-coupon-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n\n<ytd-button-renderer id="apply" data="[[data.applyCoupon.buttonRenderer]]" disabled="[[disableApplyButton]]" hidden="[[hideApplyButton]]" on-tap="onSubmit" class="style-scope ytd-ypc-coupon-renderer">\n</ytd-button-renderer>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Apc=a},{mode:1});var Cpc=function(){return _.P.apply(this,arguments)||this};
_.z(Cpc,_.P);Cpc.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.couponRenderer":{id:"coupon-renderer",mapping:{ypcCouponRenderer:"ytd-ypc-coupon-renderer"}}}};
Cpc.prototype.computeStyle=function(a){return a};
var BX=Cpc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],BX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],BX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],BX.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],BX.prototype,"buttonStyle",void 0);
BX=_.U([_.Q({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],BX);
_.S(BX,"ytd-flow-bottom-bar-renderer",function(){if(zpc!==void 0)return zpc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="coupon-renderer" hidden="[[!data.couponRenderer]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="secondary-button" hidden="[[!data.secondaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="primary-button" hidden="[[!data.primaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return zpc=a},{mode:1});var Dpc;var Epc;var Fpc;var Gpc=function(){return _.P.apply(this,arguments)||this};
_.z(Gpc,_.P);Gpc.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Gpc.prototype.focus=function(a){this.title&&_.Ok(this.title,a)};
var CX=Gpc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],CX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],CX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],CX.prototype,"data",void 0);_.U([_.ir("#title"),_.W("design:type",HTMLElement)],CX.prototype,"title",void 0);CX=_.U([_.Q({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],CX);
_.S(CX,"ytd-flow-top-bar-renderer",function(){if(Fpc!==void 0)return Fpc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="back-button" class="style-scope ytd-flow-top-bar-renderer"></div>\n<div id="content" class="style-scope ytd-flow-top-bar-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n</div>\n<div id="trailing-buttons" class="style-scope ytd-flow-top-bar-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Fpc=a},{mode:1});var Hpc;var Ipc;var Jpc;var DX=function(){return _.P.apply(this,arguments)||this};
_.z(DX,_.P);DX.prototype.freeTextValueChanged=function(){_.lo(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
DX.prototype.updateFreeTextValueFromBinding=function(a){this.freeTextValue=a.detail.value};
_.Um.Object.defineProperties(DX.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(b=(a=this.data)==null?void 0:a.responseMaxLength)!=null?b:500,d;return((d=this.freeTextValue)!=null?d:"").length>=c?"maxed-out":""}}});
var EX=DX;EX.prototype.freeTextValueChanged=EX.prototype.freeTextValueChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],EX.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],EX.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],EX.prototype,"freeTextValue",void 0);_.U([_.ir("#user-input"),_.W("design:type",HTMLTextAreaElement)],EX.prototype,"input",void 0);
_.U([_.K("freeTextValue"),_.W("design:type",Object),_.W("design:paramtypes",[])],EX.prototype,"characterLimitClass",null);_.U([_.N("freeTextValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EX.prototype,"freeTextValueChanged",null);EX=_.U([_.wr({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],EX);
_.S(EX,"yt-free-text-input-flow-step-renderer",function(){if(Jpc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_free_text_input_flow_step_renderer.yt.free.text.input.flow.step.renderer.css.js--\x3e<div id="question-container" class="style-scope yt-free-text-input-flow-step-renderer"><yt-formatted-string id="question" split-lines="1" text="[[data.question]]" class="style-scope yt-free-text-input-flow-step-renderer"></yt-formatted-string></div><div id="input-area" class="style-scope yt-free-text-input-flow-step-renderer"><tp-yt-paper-textarea id="user-input" class$="[[characterLimitClass]] style-scope yt-free-text-input-flow-step-renderer" char-counter="" label="[[getSimpleString(data.questionExplanation)]]" maxlength="[[data.responseMaxLength]]" placeholder="[[data.placeholderText]]" required="" rows="2" value="[[freeTextValue]]" on-value-changed="updateFreeTextValueFromBinding"></tp-yt-paper-textarea></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Ipc===void 0&&(Ipc=document.createElement("template"));var d=Ipc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Jpc=a}a=Jpc;return a},{mode:2});var Kpc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return a};
_.z(Kpc,_.P);Kpc.prototype.handleFreeTextFlowStepInputChanged=function(a){_.lo(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:a}}])};
var FX=Kpc;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],FX.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],FX.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],FX.prototype,"data",void 0);FX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],FX);
_.S(FX,"ytd-free-text-input-flow-step-renderer",function(){if(Hpc!==void 0)return Hpc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-free-text-input-flow-step-renderer data="[[data]]" class="style-scope ytd-free-text-input-flow-step-renderer"></yt-free-text-input-flow-step-renderer>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Hpc=a},{mode:1});var Lpc;var Mpc;var Npc=function(){return _.P.apply(this,arguments)||this};
_.z(Npc,_.P);var Opc=Npc;_.U([_.O(),_.W("design:type",Object)],Opc.prototype,"data",void 0);Opc=_.U([_.Q({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],Opc);
_.S(Opc,"ytd-metadata-line-renderer",function(){if(Mpc!==void 0)return Mpc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-line-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="line-wrapper" class="style-scope ytd-metadata-line-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badge]]" hidden="[[!data.badge]]" class="style-scope ytd-metadata-line-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-metadata-line-renderer"></yt-formatted-string>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Mpc=a},{mode:1});var Ppc=function(){return _.P.apply(this,arguments)||this};
_.z(Ppc,_.P);Ppc.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
var GX=Ppc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],GX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],GX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],GX.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],GX.prototype,"isMasthead",void 0);GX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],GX);
_.S(GX,"ytd-media-product-renderer",function(){if(Lpc!==void 0)return Lpc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product" class="style-scope ytd-media-product-renderer">\n  <div id="image" hidden="[[!data.thumbnail]]" class="style-scope ytd-media-product-renderer">\n    <yt-img-shadow id="thumbnail" height="90" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-product-renderer"></yt-img-shadow>\n  </div>\n  <div id="metadata" class="style-scope ytd-media-product-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-product-renderer"></yt-formatted-string>\n    <div id="metadata-lines" class="style-scope ytd-media-product-renderer"></div>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Lpc=a},{mode:1});var Qpc;var Rpc=function(){return _.P.apply(this,arguments)||this};
_.z(Rpc,_.P);Rpc.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
Rpc.prototype.onBillboardImageLoaded=function(){_.io(this.hostElement,"yt-refit")};
var HX=Rpc;HX.prototype.onBillboardImageLoaded=HX.prototype.onBillboardImageLoaded;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],HX.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],HX.prototype,"data",void 0);_.U([_.ir("#billboardImage"),_.W("design:type",Object)],HX.prototype,"billboardImage",void 0);_.U([_.M("yt-img-shadow-loaded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],HX.prototype,"onBillboardImageLoaded",null);
HX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],HX);
_.S(HX,"ytd-billboard-masthead-renderer",function(){if(Qpc!==void 0)return Qpc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-billboard-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="billboardImage" class="billboard with-placeholder style-scope ytd-billboard-masthead-renderer" fit="" thumbnail="[[data.billboard]]">\n</yt-img-shadow>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Qpc=a},{mode:1});var Spc;var Tpc=function(){var a=_.P.apply(this,arguments)||this;a.smallSize=!1;return a};
_.z(Tpc,_.P);var IX=Tpc;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],IX.prototype,"ytComponentBehaviorType",void 0);_.U([_.O(),_.W("design:type",Object)],IX.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],IX.prototype,"smallSize",void 0);IX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],IX);
_.S(IX,"ytd-bullet-formatted-string",function(){if(Spc!==void 0)return Spc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-bullet-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="bullet-icon style-scope ytd-bullet-formatted-string" hidden="[[!data.icon.iconType]]" icon="[[computeIcon_(data.icon)]]">\n</yt-icon>\n<yt-formatted-string class="text style-scope ytd-bullet-formatted-string" split-lines="true" text="[[data.text]]">\n</yt-formatted-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Spc=a},{mode:1});var Upc;var Vpc=function(){return _.P.apply(this,arguments)||this};
_.z(Vpc,_.P);Vpc.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
var JX=Vpc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],JX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],JX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],JX.prototype,"data",void 0);JX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],JX);
_.S(JX,"ytd-offer-detail-renderer",function(){if(Upc!==void 0)return Upc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="description style-scope ytd-offer-detail-renderer" split-lines="true" text="[[data.description]]">\n</yt-formatted-string>\n<div id="product" hidden="[[!data.product]]" class="style-scope ytd-offer-detail-renderer"></div>\n<div class="benefits style-scope ytd-offer-detail-renderer">\n    <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-detail-renderer">\n      <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-detail-renderer" data="[[benefit]]">\n      </ytd-bullet-formatted-string>\n    </template>\n</div>\n<yt-formatted-string class="terms style-scope ytd-offer-detail-renderer" force-default-style="" text="[[data.terms]]">\n</yt-formatted-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Upc=a},{mode:1});var Wpc;var Xpc=function(){return _.P.apply(this,arguments)||this};
_.z(Xpc,_.P);Xpc.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerDetailRenderer:"ytd-offer-detail-renderer"}}}};
var KX=Xpc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],KX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],KX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],KX.prototype,"data",void 0);KX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],KX);
_.S(KX,"ytd-offer-detail-step-renderer",function(){if(Wpc!==void 0)return Wpc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-detail-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-detail-step-renderer"></div>\n\n\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Wpc=a},{mode:1});var Ypc;var Zpc=function(){var a=_.P.apply(this,arguments)||this;a.isInOfferModule=!1;return a};
_.z(Zpc,_.P);_.f=Zpc.prototype;_.f.computeHasEndpoint=function(){var a;return!((a=this.data)==null||!a.onClickCommand)};
_.f.dataChanged=function(){var a;if((a=this.data)==null?0:a.onClickCommand)this.hostElement.addEventListener("click",this.handleClickEvent),this.hostElement.addEventListener("keydown",this.onContentKeyDown),this.hostElement.addEventListener("keyup",this.onContentKeyUp),this.hostElement.setAttribute("tabindex","0"),this.hostElement.setAttribute("role","link")};
_.f.detached=function(){var a;if((a=this.data)==null?0:a.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.f.handleClickEvent=function(){var a;if((a=this.data)==null?0:a.onClickCommand){var b;this.componentBehavior.resolveCommand((b=this.data)==null?void 0:b.onClickCommand)}};
_.f.onContentKeyDown=function(a){a.key==="Enter"?this.handleClickEvent(a):a.key===" "&&a.preventDefault()};
_.f.onContentKeyUp=function(a){a.key===" "&&this.handleClickEvent(a)};
var LX=Zpc;LX.prototype.dataChanged=LX.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],LX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],LX.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],LX.prototype,"data",void 0);_.U([_.O({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],LX.prototype,"hasEndpoint",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],LX.prototype,"isInOfferModule",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LX.prototype,"dataChanged",null);LX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],LX);
_.S(LX,"ytd-channel-masthead-renderer",function(){if(Ypc!==void 0)return Ypc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-channel-masthead-renderer">\n  <yt-image class="channel-masthead style-scope ytd-channel-masthead-renderer" data="[[data.image]]" height="1" width="1">\n  </yt-image>\n  <div class="text style-scope ytd-channel-masthead-renderer">\n    <yt-attributed-string class="title style-scope ytd-channel-masthead-renderer" data="[[data.title]]">\n    </yt-attributed-string>\n    <yt-attributed-string class="subtitle style-scope ytd-channel-masthead-renderer" data="[[data.subtitle]]">\n    </yt-attributed-string>\n  </div>\n</div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Ypc=a},{mode:1});var $pc;var aqc=function(){var a=_.P.apply(this,arguments)||this;a.thumbnailObjectFit="CONTAIN";a.thumbnailObjectPosition="LEFT";a.isExpanded=!1;return a};
_.z(aqc,_.P);_.f=aqc.prototype;_.f.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.f.dataChanged=function(){this.resetStates()};
_.f.computeisTapOnOfferInfoContainerEnabled=function(){var a;return((a=this.data)==null?void 0:a.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.f.onExpandBtnClick=function(){var a,b=_.y((a=this.data)==null?void 0:a.showMoreButtonRenderer,fpc);b&&_.tF(_.ls(),b.trackingParams);this.isExpanded=!this.isExpanded};
_.f.onOfferInfoClick=function(a){this.isTapOnOfferInfoContainerEnabled&&(_.Wt(_.Rq(a)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.Xt(_.Rq(a)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.f.onBottomBarClick=function(){this.executeTapCommand()};
_.f.executeTapCommand=function(){var a,b=(a=this.data)==null?void 0:a.tapCommand;b&&this.ytComponentBehavior.resolveCommand(b)};
_.f.resetStates=function(){this.isExpanded=!1};
_.Um.Object.defineProperties(aqc.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var a=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),b,c,d;return((b=this.data)==null?void 0:b.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&a&&!!((c=this.data)==null?0:(d=c.benefits)==null?0:d.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((b=_.y((a=this.data)==null?void 0:a.showMoreButtonRenderer,fpc))==null?void 0:b.showMoreButtonTitle)||((c=this.data)==null?void 0:c.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((b=_.y((a=this.data)==null?void 0:a.showMoreButtonRenderer,fpc))==null?void 0:b.showLessButtonTitle)||((c=this.data)==null?void 0:c.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var a;return(a=this.showLessButtonTitle)!=null?a:""}var b;return(b=this.showMoreButtonTitle)!=null?b:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.data)==null?void 0:a.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((b=this.data)==null?0:b.footerTitle)||((c=this.data)==null?0:c.footerSubtitle))}}});
var MX=aqc;MX.prototype.dataChanged=MX.prototype.dataChanged;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],MX.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],MX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],MX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",String)],MX.prototype,"thumbnailObjectFit",void 0);
_.U([_.O(),_.W("design:type",String)],MX.prototype,"thumbnailObjectPosition",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.W("design:type",Boolean)],MX.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.U([_.O(),_.W("design:type",Object)],MX.prototype,"isExpanded",void 0);_.U([_.O(),_.W("design:type",Object)],MX.prototype,"data",void 0);_.U([_.O({computed:"computeIcon_(data.footerIcon)"}),_.W("design:type",String)],MX.prototype,"icon",void 0);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MX.prototype,"dataChanged",null);_.U([_.K("data.thumbnail"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],MX.prototype,"hasThumbnail",null);_.U([_.K("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],MX.prototype,"enableExpandButton",null);
_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],MX.prototype,"enableOfferContentIcon",null);_.U([_.K("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.W("design:type",Object),_.W("design:paramtypes",[])],MX.prototype,"showMoreButtonTitle",null);_.U([_.K("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.W("design:type",Object),_.W("design:paramtypes",[])],MX.prototype,"showLessButtonTitle",null);
_.U([_.K("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.W("design:type",String),_.W("design:paramtypes",[])],MX.prototype,"expandedBtnText",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],MX.prototype,"enableBottomBar",null);MX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],MX);
_.S(MX,"ytd-offer-card-renderer",function(){if($pc!==void 0)return $pc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-card style-scope ytd-offer-card-renderer" id="offer-card">\n  \n  <div class="top-banner style-scope ytd-offer-card-renderer" id="top-banner" hidden="[[!data.topBannerImage]]">\n    <yt-img-shadow class="top-banner-image style-scope ytd-offer-card-renderer" object-fit="COVER" thumbnail="[[data.topBannerImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="offer-info style-scope ytd-offer-card-renderer" id="offer-info" on-click="onOfferInfoClick">\n    \n    <div class="thumbnail style-scope ytd-offer-card-renderer" id="thumbnail" hidden="[[!hasThumbnail]]"></div>\n    <div class="description-section style-scope ytd-offer-card-renderer">\n      <div class="text style-scope ytd-offer-card-renderer">\n        <yt-formatted-string class="title style-scope ytd-offer-card-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="description style-scope ytd-offer-card-renderer" split-lines="true" text="[[data.description]]">\n        </yt-formatted-string>\n      </div>\n      <button class="expand-button style-scope ytd-offer-card-renderer" id="expand-button" hidden="[[!enableExpandButton]]" on-click="onExpandBtnClick" aria-label="[[expandedBtnText]]">\n        <span class="style-scope ytd-offer-card-renderer">[[expandedBtnText]]</span>\n      </button>\n      <div class="offer-content-icon-div style-scope ytd-offer-card-renderer" id="offer-content-icon-div" hidden="[[!enableOfferContentIcon]]">\n        <yt-icon id="offer-content-icon" class="offer-content-icon style-scope ytd-offer-card-renderer" icon="[[icon]]">\n        </yt-icon>\n      </div>\n    </div>\n    \n    <div class="benefits style-scope ytd-offer-card-renderer" id="benefits" hidden="[[!isExpanded]]">\n      <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-card-renderer">\n        <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-card-renderer" data="[[benefit]]" small-size="true">\n        </ytd-bullet-formatted-string>\n      </template>\n    </div>\n  </div>\n  \n  <button class="bottom-bar style-scope ytd-offer-card-renderer" id="bottom-bar" hidden="[[!enableBottomBar]]" on-click="onBottomBarClick" aria-label="[[data.footerTitle]]">\n    <div class="bottom-bar-info style-scope ytd-offer-card-renderer">\n      <yt-formatted-string class="bottom-bar-title style-scope ytd-offer-card-renderer" text="[[data.footerTitle]]"></yt-formatted-string>\n      <yt-formatted-string class="bottom-bar-subtitle style-scope ytd-offer-card-renderer" text="[[data.footerSubtitle]]"></yt-formatted-string>\n    </div>\n    <yt-icon class="icon style-scope ytd-offer-card-renderer" icon="[[icon]]"></yt-icon>\n  </button>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return $pc=a},{mode:1});var bqc;var cqc=function(){return _.P.apply(this,arguments)||this};
_.z(cqc,_.P);cqc.prototype.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]"}}}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
cqc.prototype.onClick=function(a){if(!_.Wt(a.composedPath()||[],this.hostElement,["A".toString()])){var b,c;if((a=(c=_.y((b=this.data)==null?void 0:b.actionButton,_.RE))==null?void 0:c.command)&&!this.ytComponentBehavior.resolveCommand(a)){var d;(d=_.ls())==null||d.clickCommand(a);_.oo(this.hostElement,[a])}}};
var NX=cqc;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],NX.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],NX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],NX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],NX.prototype,"data",void 0);NX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],NX);
_.S(NX,"ytd-offer-content-renderer",function(){if(bqc!==void 0)return bqc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-info style-scope ytd-offer-content-renderer">\n  <div class="offer-content style-scope ytd-offer-content-renderer" id="offer-content" on-click="onClick">\n    <div id="thumbnail" class="style-scope ytd-offer-content-renderer"></div>\n    <div class="text style-scope ytd-offer-content-renderer">\n      <yt-formatted-string class="title style-scope ytd-offer-content-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="description style-scope ytd-offer-content-renderer" split-lines="true" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="action-button" class="style-scope ytd-offer-content-renderer"></div>\n</div>\n<div class="benefits style-scope ytd-offer-content-renderer">\n  <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-content-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-content-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n  </template>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return bqc=a},{mode:1});var dqc;var eqc=function(){return _.P.apply(this,arguments)||this};
_.z(eqc,_.P);eqc.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.Um.Object.defineProperties(eqc.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null||!a.title)||!((b=this.data)==null||!b.description)}}});
var OX=eqc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],OX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],OX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],OX.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],OX.prototype,"hasHeaderData",null);OX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],OX);
_.S(OX,"ytd-offer-section-renderer",function(){if(dqc!==void 0)return dqc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="heading style-scope ytd-offer-section-renderer" hidden="[[!hasHeaderData]]">\n  <yt-formatted-string class="title style-scope ytd-offer-section-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="description style-scope ytd-offer-section-renderer" split-lines="" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div id="offer-list" class="style-scope ytd-offer-section-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return dqc=a},{mode:1});var fqc;var gqc=function(){return _.P.apply(this,arguments)||this};
_.z(gqc,_.P);
gqc.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",channelMastheadRenderer:"ytd-channel-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.coupon":{id:"coupon-section",mapping:{cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.terms":{id:"terms-section",
mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"}}}}};
var PX=gqc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],PX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],PX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],PX.prototype,"data",void 0);PX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],PX);
_.S(PX,"ytd-offer-selection-step-renderer",function(){if(fqc!==void 0)return fqc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-selection-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="coupon-section" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="terms-section" class="style-scope ytd-offer-selection-step-renderer"></div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return fqc=a},{mode:1});var hqc;var iqc=function(){return _.P.apply(this,arguments)||this};
_.z(iqc,_.P);iqc.prototype.computeStyle=function(a){return a};
iqc.prototype.computeImageWidth=function(a){return a==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
var QX=iqc;_.U([_.O({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.W("design:type",String)],QX.prototype,"containerStyle",void 0);_.U([_.O({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.W("design:type",String)],QX.prototype,"imageWidth",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],QX.prototype,"ytRendererBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],QX.prototype,"data",void 0);QX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],QX);
_.S(QX,"ytd-confirmation-masthead-renderer",function(){if(hqc!==void 0)return hqc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-confirmation-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow class="thumbnail style-scope ytd-confirmation-masthead-renderer" thumbnail="[[data.thumbnail]]" width="[[imageWidth]]"></yt-img-shadow>\n<yt-icon class="entitlement-icon style-scope ytd-confirmation-masthead-renderer" hidden="[[!data.entitlementIcon.iconType]]" icon="[[data.entitlementIcon.iconType]]">\n</yt-icon>\n\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return hqc=a},{mode:1});var jqc;var kqc=function(){return _.P.apply(this,arguments)||this};
_.z(kqc,_.P);kqc.prototype.computeStyle=function(a){return a};
var RX=kqc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],RX.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],RX.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.W("design:type",String)],RX.prototype,"containerStyle",void 0);RX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],RX);
_.S(RX,"ytd-purchase-complete-detail-renderer",function(){if(jqc!==void 0)return jqc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.description]]" as="description" class="style-scope ytd-purchase-complete-detail-renderer">\n    <yt-formatted-string class="description style-scope ytd-purchase-complete-detail-renderer" split-lines="true" text="[[description]]">\n    </yt-formatted-string>\n</template>\n<template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-purchase-complete-detail-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-purchase-complete-detail-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n</template>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return jqc=a},{mode:1});var lqc;var SX=function(){var a=_.P.apply(this,arguments)||this;a.scriptsAppended=!1;return a};
_.z(SX,_.P);SX.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{confirmationMastheadRenderer:"ytd-confirmation-masthead-renderer"}},"data.body":{id:"body",mapping:{purchaseCompleteDetailRenderer:"ytd-purchase-complete-detail-renderer"}}}};
SX.prototype.onDataChanged=function(){var a=this.get("data.gtmId");a&&(_.BG(a,_.Fi("GL","")),this.setupConversionTracking())};
SX.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var a=document.createElement("noscript");a.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5KBDVVN" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(a);this.scriptsAppended=!0}};
var TX=SX;TX.prototype.onDataChanged=TX.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],TX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],TX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],TX.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],TX.prototype,"scriptsAppended",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],TX.prototype,"onDataChanged",null);TX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],TX);
_.S(TX,"ytd-purchase-complete-step-renderer",function(){if(lqc!==void 0)return lqc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-purchase-complete-step-renderer"></div>\n<div id="body" class="style-scope ytd-purchase-complete-step-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return lqc=a},{mode:1});var mqc;var nqc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.w("web_darker_dark_theme");return a};
_.z(nqc,_.P);nqc.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var UX=nqc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],UX.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],UX.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],UX.prototype,"darkerDarkTheme",void 0);UX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],UX);
_.S(UX,"ytd-ypc-transaction-error-message-renderer",function(){if(mqc!==void 0)return mqc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-transaction-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div class="error-messages style-scope ytd-ypc-transaction-error-message-renderer">\n  <template is="dom-repeat" items="[[data.errorMessages]]" as="message" class="style-scope ytd-ypc-transaction-error-message-renderer">\n    <yt-formatted-string text="[[message]]" class="style-scope ytd-ypc-transaction-error-message-renderer"></yt-formatted-string>\n  </template>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return mqc=a},{mode:1});var oqc;var pqc;var VX=function(){var a=_.P.apply(this,arguments)||this;a.handlePhoneVerificationSuccess=function(b){if(a.isValidPhoneVerificationCompletionMessageEvent(b)){var c;((c=a.data)==null?0:c.nextStepCommand)&&a.ytComponentBehavior.resolveCommand(a.data.nextStepCommand)}};
return a};
_.z(VX,_.P);VX.prototype.isValidPhoneVerificationCompletionMessageEvent=function(a){if(a.data!=="yt-phone-verification-complete")return!1;a=_.Si(a.origin);return a!==null&&a.includes("youtube.com")};
VX.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
VX.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
var WX=VX;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],WX.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],WX.prototype,"data",void 0);WX=_.U([_.wr({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],WX);
_.S(WX,"yt-feature-enablement-soft-entry-renderer",function(){if(pqc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-feature-enablement-soft-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.feature_enablement.yt_feature_enablement_soft_entry_renderer.yt.feature.enablement.soft.entry.renderer.css.js--\x3e<div id="contents" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;oqc===void 0&&(oqc=document.createElement("template"));var d=oqc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);pqc=a}a=pqc;return a},{mode:1});var qqc;var rqc;var sqc;var tqc;var uqc=function(){return _.P.apply(this,arguments)||this};
_.z(uqc,_.P);var vqc=uqc;_.U([_.O(),_.W("design:type",Object)],vqc.prototype,"data",void 0);vqc=_.U([_.wr({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],vqc);
_.S(vqc,"yt-benefits-item-renderer",function(){if(tqc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_item_renderer.yt.benefits.item.renderer.css.js--\x3e<div id="benefits-item" class="style-scope yt-benefits-item-renderer"><yt-formatted-string id="benefits-item-title" class="lhs style-scope yt-benefits-item-renderer" text="[[data.title]]"></yt-formatted-string><yt-formatted-string id="benefits-item-info-text" class="rhs style-scope yt-benefits-item-renderer" hidden="[[!data.text]]" text="[[data.text]]"></yt-formatted-string><yt-button-renderer id="benefits-item-info-button" class="rhs style-scope yt-benefits-item-renderer" data="[[data.button.buttonRenderer]]" hidden="[[!data.button.buttonRenderer]]"></yt-button-renderer></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;sqc===void 0&&(sqc=document.createElement("template"));var d=sqc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);tqc=a}a=tqc;return a},{mode:2});var wqc;var xqc;var yqc=function(){return _.P.apply(this,arguments)||this};
_.z(yqc,_.P);yqc.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
yqc.prototype.computeisWithoutPadding=function(){var a;return((a=this.data)==null?void 0:a.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
var XX=yqc;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],XX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],XX.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.W("design:type",Boolean)],XX.prototype,"isWithoutPadding",void 0);XX=_.U([_.wr({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],XX);
_.S(XX,"yt-benefits-section-renderer",function(){if(xqc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_section_renderer.yt.benefits.section.renderer.css.js--\x3e<div id="benefits-section" is-without-padding$="[[isWithoutPadding]]" class="style-scope yt-benefits-section-renderer"><div id="benefits-header" hidden$="[[!data.header]]" class="style-scope yt-benefits-section-renderer"><yt-formatted-string id="benefits-header-text" split-lines="1" text="[[data.header]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string><div hidden="[[!data.tooltip]]" class="style-scope yt-benefits-section-renderer"><yt-icon id="tooltip-icon" icon="yt-icons:info-outline" class="style-scope yt-benefits-section-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" always-display="" class="style-scope yt-benefits-section-renderer"><yt-formatted-string split-lines="1" text="[[data.tooltip]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string></tp-yt-paper-tooltip></div></div><div id="benefits-items" class="style-scope yt-benefits-section-renderer"></div></div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;wqc===void 0&&(wqc=document.createElement("template"));var d=wqc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);xqc=a}a=xqc;return a},{mode:2});var zqc=function(){return _.P.apply(this,arguments)||this};
_.z(zqc,_.P);zqc.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
zqc.prototype.computeisUsingLargeWidth=function(){var a;return((a=this.data)==null?void 0:a.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
var YX=zqc;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],YX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],YX.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.W("design:type",Boolean)],YX.prototype,"isUsingLargeWidth",void 0);YX=_.U([_.wr({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],YX);
_.S(YX,"yt-benefits-flow-step-renderer",function(){if(rqc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_flow_step_renderer.yt.benefits.flow.step.renderer.css.js--\x3e<div id="header-container" class="style-scope yt-benefits-flow-step-renderer"><yt-img-shadow id="avatar" height="72" hidden$="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="72" class="style-scope yt-benefits-flow-step-renderer"></yt-img-shadow><div id="header-content" class="style-scope yt-benefits-flow-step-renderer"><yt-formatted-string id="subtitle-text" hidden$="[[!data.subtitleText]]" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string><yt-formatted-string id="title-text" hidden$="[[!data.titleText]]" split-lines="1" text="[[data.titleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string></div></div><div id="benefits-sections" class="style-scope yt-benefits-flow-step-renderer"></div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;qqc===void 0&&(qqc=document.createElement("template"));var d=qqc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);rqc=a}a=rqc;return a},{mode:2});var Aqc;var Bqc;var Cqc=function(){return _.P.apply(this,arguments)||this};
_.z(Cqc,_.P);Cqc.prototype.checkIsUsingLargeWidth=function(){var a;return((a=this.data)==null?void 0:a.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
var ZX=Cqc;_.U([_.O(),_.W("design:type",Object)],ZX.prototype,"data",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);_.U([_.O({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.W("design:type",Boolean)],ZX.prototype,"isUsingLargeWidth",void 0);ZX=_.U([_.wr({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],ZX);
_.S(ZX,"yt-confirmation-flow-step-renderer",function(){if(Bqc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_confirmation_flow_step_renderer.yt.confirmation.flow.step.renderer.css.js--\x3e<div id="thumbnail-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-img-shadow id="thumbnail" height="209" thumbnail="[[data.image]]" width="209" class="style-scope yt-confirmation-flow-step-renderer"></yt-img-shadow></div><div id="title-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="subtitle" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Aqc===void 0&&(Aqc=document.createElement("template"));var d=Aqc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Bqc=a}a=Bqc;return a},{mode:2});var Dqc;var Eqc;var Fqc=function(){return _.P.apply(this,arguments)||this};
_.z(Fqc,_.P);var Gqc=Fqc;_.U([_.O(),_.W("design:type",Object)],Gqc.prototype,"data",void 0);Gqc=_.U([_.wr({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],Gqc);
_.S(Gqc,"yt-info-flow-step-renderer",function(){if(Eqc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_flow_step_renderer.yt.info.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-text-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="subtitle-text" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Dqc===void 0&&(Dqc=document.createElement("template"));var d=Dqc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Eqc=a}a=Eqc;return a},{mode:2});var Hqc;var Iqc;var Jqc=function(){return _.P.apply(this,arguments)||this};
_.z(Jqc,_.P);var Kqc=Jqc;_.U([_.O(),_.W("design:type",Object)],Kqc.prototype,"data",void 0);Kqc=_.U([_.wr({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],Kqc);
_.S(Kqc,"yt-info-list-flow-step-renderer",function(){if(Iqc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-list-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_list_flow_step_renderer.yt.info.list.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-list-header-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="info-list-header" force-default-style="" split-lines="1" text="[[data.infoListHeader]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-items-container" class="style-scope yt-info-list-flow-step-renderer"><template is="dom-repeat" items="[[data.infoItems]]" as="item" class="style-scope yt-info-list-flow-step-renderer"><div id="info-list-item" class="style-scope yt-info-list-flow-step-renderer"><yt-icon id="info-icon" icon="[[item.icon.iconType]]" class="style-scope yt-info-list-flow-step-renderer"></yt-icon><yt-formatted-string id="info-text" split-lines="1" text="[[item.text]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div></template></div><div id="description-text-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="description-text" split-lines="1" text="[[data.descriptionText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Hqc===void 0&&(Hqc=document.createElement("template"));var d=Hqc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Iqc=a}a=Iqc;return a},{mode:2});var Lqc=_.Rr(function(a){var b=a.data;return _.q("styled-text-view-model",{class:_.et("ytStyledTextViewModelHost",function(){return snc(b().fontAttributes)},function(){return rnc(b().color)})},_.q(_.tt,{text:function(){return b().text}}))},"se");
Lqc.idomCompat=!0;var Mqc=_.Rr(function(a){var b=function(){var e,g,k,m;return(m=(k=(e=a.alt)==null?void 0:e.call(a))!=null?k:(g=a.data().accessibilityData)==null?void 0:g.label)!=null?m:""},c=function(){return a.data().imageWidth},d=function(){return a.data().imageHeight};
return _.q("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.q(_.qi,{cond:function(){var e=a.data();if(e){var g,k,m;var n=((g=_.v().resolve(_.Xi(_.Ks)))==null?0:g())?(k=e.imageDark)!=null?k:e.imageLight:(m=e.imageLight)!=null?m:e.imageDark}else n=void 0;return n},
then:function(e){return _.q(_.Ps,Object.assign({},a,{data:e,alt:b,targetWidth:c,targetHeight:d,preserveHeight:!0,preserveWidth:!0}))}}))},"te");
Mqc.idomCompat=!0;var $X=_.Rr(function(a){var b=a.data;a=_.Nr(function(){return b().slots},[]);
var c=_.Nr(function(){return b().layoutProperties},{}),d=_.v().resolve(_.Ms);
return _.q("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:mnc(c,d)},_.q(_.ri,{each:a,keyBy:"INDEX"},function(e){return _.q("div",{class:"ytContainerLayoutViewModelSlot",style:mnc(function(){return e().layoutProperties},d)},_.q(_.Hu,{data:function(){return e().contents}},{containerLayoutViewModel:$X,
badgeViewModel:_.vL,buttonViewModel:_.Qu,styledTextViewModel:Lqc,contentPreviewImageViewModel:function(g){return _.q(_.wL,{data:g.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(g){return _.q(Mqc,{data:g.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"ue");
$X.idomCompat=!0;var Nqc=_.Rr(function(a){var b=a.data;var c=a.stateFns;var d=function(){var r=b(),t=r.productId;return!(!r.clearGroupId&&!t)},e=function(){var r=b(),t=r.clearGroupId;
return(r=r.productId)?c().isProductSelected(r):t?c().getSelectedProductByGroupId(t)==null:!1},g=function(){var r=b(),t=r.clearGroupId;
if(r=r.productId)c().onProductSelected(r);else if(t)c().onClearGroupSelected(t)},k=function(){var r=b(),t=r.clearGroupId;
if(r=r.productId){var u;return"group:"+(((u=c().getProductById(r))==null?void 0:u.groupId)||"")}return t?"group:"+t:""},m=_.Nr(function(){return b().header},[]),n=_.Nr(function(){return b().body},[]);
return _.q("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.q(_.qi,{cond:function(){return m().length>0||d()},
then:function(){return _.q("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.q("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.q(_.Hu,{data:m},{containerLayoutViewModel:function(r){return _.q("div",{class:"ytPdpCardSectionViewModelContentItem"},_.q($X,{data:r.data}))},
styledTextViewModel:function(r){return _.q("div",{class:"ytPdpCardSectionViewModelContentItem"},_.q(Lqc,{data:r.data}))}})),_.q(_.qi,{cond:d,
then:function(){return _.q("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.q(_.E$b,{checked:e,name:k,onChange:g}))}}))}}),_.q(_.qi,{cond:function(){return n().length>0},
then:function(){return _.q("div",null,_.q(_.Hu,{data:n},{containerLayoutViewModel:function(r){return _.q("div",{class:"ytPdpCardSectionViewModelContentItem"},_.q($X,{data:r.data}))}}))}}))},"ve");
Nqc.idomCompat=!0;var Oqc=_.Rr(function(a){var b=a.data;var c=a.stateFns;return _.q("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.q(_.qi,{cond:function(){return b().banner},
then:function(d){return _.q("div",{class:"ytPdpCardViewModelBanner"},_.q(_.tt,{text:d}))}}),_.q(_.Hu,{data:function(){return b().sections}},{pdpCardSectionViewModel:function(d){d=d.data;
var e={};return _.q("div",{class:_.et("ytPdpCardViewModelSectionContainer",(e.ytPdpCardViewModelShowDividers=function(){return b().showDividers},e))},_.q(Nqc,{data:d,
stateFns:c}))}}))},"we");
Oqc.idomCompat=!0;var Pqc=_.Rr(function(a){var b=a.data;var c=a.isOverlay;a={};return _.q("pdp-masthead-view-model",{class:_.et("ytPdpMastheadViewModelHost",(a.ytPdpMastheadViewModelIsOverlay=c,a))},_.q(_.Hu,{data:function(){return b().image}},{contentPreviewImageViewModel:_.wL,
themedImageViewModel:function(d){return _.q(Mqc,{data:d.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.q(_.qi,{cond:function(){return b().title},
then:function(d){return _.q("h1",{class:"ytPdpMastheadViewModelHeading"},_.q(_.tt,{text:d,isOverlay:c}))}}),_.q(_.ri,{each:function(){var d;
return(d=b().finePrint)!=null?d:[]}},function(d){return _.q("div",{class:"ytPdpMastheadViewModelFinePrint"},_.q(_.tt,{text:d,
isOverlay:c}))}))},"xe");
Pqc.idomCompat=!0;var Qqc=_.Rr(function(a){var b=a.data;var c=a.stateFns;return _.q("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.q(_.ri,{each:function(){var d=c().getSelectedPricingOptions().map(function(g){return g.pricingOptionId}),e=c().getSelectedProductByGroupId(_.Jb(b().groupId));
return e?e.pricingOptions.map(function(g){return{pricingOption:g,isSelected:d.includes(g.pricingOptionId)}}):(_.Cl(Error("Jj`"+_.Jb(b().groupId))),[])},
keyBy:"INDEX"},function(d){return _.q("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.q("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.q(_.Hu,{data:function(){return d().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:$X})),_.q("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.q(_.E$b,{checked:function(){return d().isSelected},
onClick:function(){c().onPricingOptionSelected(d().pricingOption.pricingOptionId)}})))}))},"ye");
Qqc.idomCompat=!0;var Rqc=_.Rr(function(a){var b=a.data;var c=a.stateFns;return _.q("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.q(_.Hu,{data:function(){var d,e;return(e=(d=c().getSelectedPricingOptions()[0])==null?void 0:d.primaryButton)!=null?e:b().emptyStateButton}},{buttonViewModel:_.Qu}))},"ze");
Rqc.idomCompat=!0;var Sqc=_.Rr(function(a){var b=a.stateFns;return _.q("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.q(_.Hu,{data:function(){return b().getSelectedPricingOptions().flatMap(function(c){return c.summaryLines}).filter(function(c){return!!c})}},{containerLayoutViewModel:function(c){return _.q("div",{class:"ytPdpSummaryViewModelLineItem"},_.q($X,{data:c.data}))}}))},"Ae");
Sqc.idomCompat=!0;var Tqc=_.Rr(function(a){var b=a.data;a={};return _.q("divider-view-model",{class:_.et("divider-view-model-wiz",(a["divider-view-model-wiz__inset-thin-padding"]=function(){return b().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},a))},_.q("div",{class:_.et("divider-view-model-wiz__base-divider",function(){return Cnc(b().dividerStyle)}),
style:_.ot({"background-color":function(){return b().backgroundColor?_.Cq(b().backgroundColor):void 0}})}))},"Be");
Tqc.idomCompat=!0;var Uqc=_.Rr(function(a){function b(J){var I=k();_.Mr(_.Lu("pdpStateEntity",I,{key:I,selectedPricingOptions:J}))}
var c=a.data;var d=a.internalScrolling;var e=a.stateFnsForTesting;var g=_.Nr(function(){return c().allProducts},[]),k=_.Nr(function(){return c().pdpStateEntityKey},""),m=_.tu(tnc,k),n=_.ph(function(){_.Bh(!0);
var J;return(J=e==null?void 0:e())!=null?J:Bnc(m,g,b)},void 0,"POBqwe"),r=_.Nr(function(){return c().body},[]),t=_.Nr(function(){return c().columnBreakHints},[]),u=function(){return c().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},x=function(){return u()||c().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},A=_.ph(function(){var J=_.jv(c().background),I;
if(J==null?0:(I=J.sources)==null?0:I.length){var R=R===void 0?!0:R;J=_.dRa(void 0,J.sources,void 0,R,R?1E3:void 0,R?void 0:1E3)}else J=null;return J},void 0,"BkCmEd");
a=_.ot({"--pdp-view-model-background":function(){return A()?"url("+A()+")":void 0}});
var C={};d=_.et("ytPdpViewModelHost",(C.ytPdpViewModelHasBackground=function(){return x()||!!A()},C.ytPdpViewModelHasDarkBackground=x,C.ytPdpViewModelHasScrim=u,C.ytPdpViewModelInternalScrolling=_.Nr(d,!1),C));
var F=function(J){var I={};return _.et("ytPdpViewModelItem",(I.ytPdpViewModelFullBleed=function(){return _.TWa(J())==="dividerViewModel"||_.TWa(J())==="sectionHeaderViewModel"},I.ytPdpViewModelNoVerticalPadding=function(){return _.TWa(J())==="sectionHeaderViewModel"},I))};
_.wi(function(){var J=c().onStartCommand;if(J&&(J=_.Ds(J))){var I;(I=_.v().resolve(_.Yi))==null||I.resolveCommand(J)}});
return _.q("pdp-view-model",{class:d,style:a},_.q("div",{class:"ytPdpViewModelColumnContainer"},_.q(_.ri,{each:function(){return Dnc(r(),t())},
keyBy:"INDEX"},function(J){return _.q("div",{class:"ytPdpViewModelColumn"},_.q(_.Hu,{data:J},{containerLayoutViewModel:function(I,R){I=I.data;return _.q("div",{class:F(function(){return J()[R()]})},_.q($X,{data:I}))},
dividerViewModel:function(I,R){I=I.data;return _.q("div",{class:F(function(){return J()[R()]})},_.q(Tqc,{data:I}))},
pdpCardViewModel:function(I,R){I=I.data;return _.q("div",{class:F(function(){return J()[R()]})},_.q(Oqc,{data:I,
stateFns:n}))},
pdpMastheadViewModel:function(I,R){I=I.data;return _.q("div",{class:F(function(){return J()[R()]})},_.q(Pqc,{data:I,
isOverlay:x}))},
pdpPricingOptionSelectorViewModel:function(I,R){I=I.data;return _.q("div",{class:F(function(){return J()[R()]})},_.q(Qqc,{data:I,
stateFns:n}))},
pdpPrimaryButtonViewModel:function(I,R){I=I.data;return _.q("div",{class:F(function(){return J()[R()]})},_.q(Rqc,{data:I,
stateFns:n}))},
pdpSummaryViewModel:function(I,R){I=I.data;return _.q("div",{class:F(function(){return J()[R()]})},_.q(Sqc,{data:I,
stateFns:n}))},
sectionHeaderViewModel:function(I,R){I=I.data;return _.q("div",{class:F(function(){return J()[R()]})},_.q(_.fQ,{data:I}))}}))})))},"Ce");
Uqc.idomCompat=!0;_.Ts(Uqc,"pdp-view-model",{props:{data:_.VG,stateFnsForTesting:_.Ss,internalScrolling:_.Ss}});var Vqc=_.Rr(function(a){var b=a.data;var c=a.className;var d=_.tu(_.pw,function(){return b().flowStateEntityKey});
return _.q("ytm-premium-purchase-button-renderer",{class:_.et("yt-premium-purchase-button-renderer",c)},_.q(_.Hu,{data:function(){var e;return(e=_.y(d(),qX))==null?void 0:e.primaryButtonOverride}},{buttonRenderer:function(e){return _.q(_.iL,{data:e.data,
className:c})},
buttonViewModel:function(e){return _.q(_.Qu,{data:e.data,className:c})}}))},"De");
Vqc.idomCompat=!0;var Wqc=_.Rr(function(a){var b=a.data;var c=function(){return Enc(b().style)},d=_.et("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",c),e=_.et("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",c);
return _.q("yt-flow-bottom-bar-renderer",{class:_.et("yt-flow-bottom-bar-renderer",a.className,c)},_.q(_.Hu,{data:function(){return b().secondaryButton}},{buttonRenderer:function(g){return _.q(_.iL,{data:g.data,
className:e})},
buttonViewModel:function(g){return _.q(_.Qu,{data:g.data,className:e})},
premiumPurchaseButtonRenderer:function(g){return _.q(Vqc,{data:g.data,className:e})}}),_.q(_.Hu,{data:function(){return b().primaryButton}},{buttonRenderer:function(g){return _.q(_.iL,{data:g.data,
className:d})},
buttonViewModel:function(g){return _.q(_.Qu,{data:g.data,className:d})},
premiumPurchaseButtonRenderer:function(g){return _.q(Vqc,{data:g.data,className:d})}}))},"Ee");
Wqc.idomCompat=!0;_.Ts(Wqc,"yt-flow-bottom-bar-renderer",{props:{data:_.VG,className:_.VG}});var Xqc=_.Rr(function(a){return _.q("yt-offer-summary-renderer",{class:_.et(a.className,"ytOfferSummaryRendererHost")},_.q("div",{class:"ytOfferSummaryRendererTextContainer"},_.q("div",{class:"ytOfferSummaryRendererEyebrowText"},_.q(_.tt,{text:function(){return a.data().eyebrowText}})),_.q("div",{class:"ytOfferSummaryRendererTitle"},_.q(_.tt,{text:function(){return a.data().title}})),_.q("div",{class:"ytOfferSummaryRendererSubtitle"},_.q(_.tt,{text:function(){return a.data().subtitle}})),_.q("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.q(_.ri,{each:function(){var b;
return(b=a.data().featureListData)!=null?b:[]}},function(b){var c;
return _.q("div",{class:"ytOfferSummaryRendererFeatureList"},_.q(_.qt,{icon:(c=b.icon)==null?void 0:c.iconType,className:b.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.q("div",{class:"ytOfferSummaryRendererFeatureListText"},_.q(_.tt,{text:b.text})))})),_.q("div",{class:"ytOfferSummaryRendererDescription"},_.q(_.tt,{text:function(){return a.data().description}}))))},"Fe");_.Ts(_.Rr(function(a){var b={};b=_.et("ytOfferSummaryFlowStepRendererHost",(b.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=a.shouldDisableHeaderTopMargin,b));return _.q("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:b},_.q("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.q("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.q(_.tt,{text:function(){return a.data().header}})),_.q("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.q(_.tt,{text:function(){return a.data().subtitle}}))),_.q("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.q(_.Hu,{data:function(){return a.data().offerSummary}},{offerSummaryRenderer:function(c){return _.q(Xqc,{data:c.data,
className:a.flowClassName})}})))},"Ge"),"yt-offer-summary-flow-step-renderer",{props:{data:_.Ss,
flowClassName:_.Ss,flowStateEntityKey:_.Ss,shouldDisableHeaderTopMargin:_.Ss}});var Yqc=_.Rr(function(a){var b=a.data;var c=a.className;var d=a.flowStateEntityKey;var e=a.selectionStepStyle;a=_.lt(function(n){var r=b(),t=d==null?void 0:d();n.target&&(n.stopPropagation(),n=t||"",t=_.pw(_.Kr().getState(),n),r=Object.assign({},t,{premiumPurchaseFlowState:{selectedOptionId:r.optionId,primaryButtonOverride:r.primaryButtonOverride}}),_.Kr().dispatch(_.wu("flowStateEntity",n,r)));return!1});
var g=function(){return(d==null?void 0:d())||""},k=_.tu(_.pw,g);
_.wi(function(){var n=b(),r=g(),t=k();!_.y(t,qX)&&n.defaultSelected&&r!==""&&n.primaryButtonOverride&&Fnc(n.optionId||"",r,n.primaryButtonOverride,t)});
var m={};return _.q("ytm-option-item-renderer",{"on:click":a,class:_.et(c,"ytm-option-item-renderer",(m["ytm-option-item-renderer--lp2-style"]=function(){return(e==null?void 0:e())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},m))},_.q("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.q("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var n=b(),r=g(),t=k();t=_.y(t,qX);return(t?(t==null?void 0:t.selectedOptionId)||"":n.defaultSelected&&r!==""?(n==null?void 0:n.optionId)||"":"")===b().optionId},
name:("input"+_.Ov(_.Pv)).toString()})),_.q("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.q(_.qi,{cond:function(){return b().eyebrowText},
then:function(){return _.q("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.q(_.tt,{text:function(){return b().eyebrowText}}))}}),_.q("div",{class:"ytm-option-item-renderer__option-item-title"},_.q(_.tt,{text:function(){return b().title}})),_.q("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.q(_.tt,{text:function(){return b().subtitle}})),_.q("div",{class:"ytm-option-item-renderer__option-item-description"},_.q(_.tt,{text:function(){return b().description}}))))},
"He");var Zqc=_.Rr(function(a){var b=a.data;var c=a.flowClassName;var d=a.flowStateEntityKey;var e=a.selectionStepStyle;return _.q("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.q("div",{class:"yt-option-section-renderer__option-section-header-section"},_.q("div",{class:"yt-option-section-renderer__option-section-header"},_.q(_.tt,{text:function(){return b().title}}),_.q(_.Hu,{data:function(){return b().titleBadge}},{badgeViewModel:function(g){return _.q(_.vL,
{data:g.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.q(_.qi,{cond:function(){return b().subtitle},
then:function(){return _.q("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.q(_.tt,{text:function(){return b().subtitle}}))}}),_.q(_.qi,{cond:function(){return b().featureListData},
then:function(g){return _.q("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.q(_.ri,{each:g},function(k){var m;return _.q("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.q(_.qt,{icon:(m=k.icon)==null?void 0:m.iconType,className:k.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"yt-option-section-renderer__option-section-feature-item-icon-green":"yt-option-section-renderer__option-section-feature-item-icon-default"}),_.q("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.q(_.tt,{text:k.text})))}))}}),_.q(_.ri,{each:function(){return b().sectionDisclaimers||[]}},function(g){return _.q("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.q(_.tt,{text:g}))})),_.q(_.Hu,{data:function(){return b().optionItems}},{optionItemRenderer:function(g){return _.q("div",{class:"yt-option-section-renderer__option-item"},_.q(Yqc,{data:g.data,
className:c,flowStateEntityKey:d,selectionStepStyle:e}))}}),_.q(_.qi,{cond:function(){return b().offerText},
then:function(){return _.q("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.q(_.tt,{text:function(){return b().offerText}}))}}))},"Ie");
Zqc.idomCompat=!0;var $qc=_.Rr(function(a){var b=a.data;var c=a.flowClassName;var d=a.flowStateEntityKey;a=a.isDesktop;var e=function(){var r;return(r=b().flowStateEntityKey)!=null?r:d==null?void 0:d()},g=function(){return(e==null?void 0:e())||""},k=function(){return b().style},m=_.tu(_.pw,g);
_.wi(function(){var r=b(),t=g(),u=m();!_.y(u,qX)&&r.noPreselect&&t!==""&&r.defaultButtonOverride&&Fnc("default",t,r.defaultButtonOverride,u)});
var n={};return _.q("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.et("ytm-option-selection-flow-step-renderer",(n["ytm-option-selection-flow-step-renderer--desktop"]=a,n["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return b().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},n))},_.q("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header-container ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.q("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.q(_.tt,{text:function(){return b().header}})),_.q("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.q(_.tt,{text:function(){return b().subtitle}}))),_.q(_.Hu,{data:function(){return b().optionItems||[]}},{optionItemRenderer:function(r){return _.q("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.q(Yqc,{data:r.data,
className:c,flowStateEntityKey:e,selectionStepStyle:k}))},
optionSectionRenderer:function(r){return _.q("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.q(Zqc,{data:r.data,flowClassName:c,flowStateEntityKey:e,selectionStepStyle:k}))}}))},"Je");
$qc.idomCompat=!0;_.Ts($qc,"yt-option-selection-flow-step-renderer",{props:{data:_.VG,flowClassName:_.VG,flowStateEntityKey:_.VG,isDesktop:_.VG}});var Gnc,Hnc;_.aY=_.Rr(function(a){var b=_.Or(a,{type:1,disablePadding:!1,disablePrimaryButton:!1}),c=b.data,d=b.type;a=b.disablePadding;var e=b.disablePrimaryButton,g=b.onClickPrimaryButton,k=function(){return c().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},m=function(){return{disabled:e(),
state:e()?"disabled":"active"}},n=function(){return c().leadingLabel||c().trailingLabel};
b={};return _.q("yt-panel-footer-view-model",{class:_.et("yt-panel-footer-view-model-wiz",(b["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return c().shouldHideDivider},b["yt-panel-footer-view-model-wiz--disable-padding"]=a,b))},_.q(_.qi,{cond:n,
then:function(){var r={},t={};return _.q("div",{class:_.et("yt-panel-footer-view-model-wiz__text-row",(r["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var u=c();return!(!u.leadingLabel&&!u.trailingLabel||!u.primaryButton&&!u.secondaryButton)},r))},_.q(_.tt,{text:function(){return c().leadingLabel},
className:_.et((t["yt-panel-footer-view-model-wiz--text-padding"]=n,t))}),_.q(_.tt,{text:function(){return c().trailingLabel}}))}}),_.q(_.qi,{cond:k,
then:function(){var r={};return _.q("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.q("div",{class:_.et("yt-panel-footer-view-model-wiz__primary-button",(r["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return c().secondaryButton},r))},_.q(_.Hu,{data:function(){return c().primaryButton}},{buttonViewModel:function(t){return _.q(_.Qu,{data:t.data,
buttonOverrides:m,onClick:g})}})),_.q(_.Hu,{data:function(){return c().secondaryButton}},{buttonViewModel:_.Qu}))}}),_.q(_.qi,{cond:function(){return!k()},
then:function(){var r={},t={},u={};return _.q("div",{class:_.et("yt-panel-footer-view-model-wiz__button-row",(r["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===d()},r))},_.q("div",{class:_.et("yt-panel-footer-view-model-wiz__button-row--left-button",(t["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===d()},t["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!c().secondaryButton||0===d()},t["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===d()},t))},_.q(_.Hu,{data:function(){return c().secondaryButton}},{buttonViewModel:_.Qu})),_.q("div",{class:_.et("yt-panel-footer-view-model-wiz__primary-button",(u["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===d()||1===d()},u["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===d()},u))},_.q(_.Hu,{data:function(){return c().primaryButton}},{buttonViewModel:function(x){return _.q(_.Qu,{data:x.data,
buttonOverrides:m,onClick:g})}})))}}))},"Ke");
_.aY.idomCompat=!0;_.arc=_.Rr(function(a){a=_.Or(a,{disablePadding:!1});var b=a.data,c=a.disablePadding;a=_.Lnc(function(){return b().formId});
var d=a.onSubmit,e=a.isValid,g=a.isSubmitting;return _.q("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.q(_.Hu,{data:function(){return b().panelFooter}},{panelFooterViewModel:function(k){return _.q(_.aY,{data:k.data,
onClickPrimaryButton:function(){d()},
disablePrimaryButton:function(){return!e()||g()},
disablePadding:c})}}))},"Le");_.Ts(_.arc,"yt-form-footer-view-model",{props:{data:_.VG,disablePadding:_.VG}});_.Ts(_.Rr(function(a){return _.q("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.q("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.q(_.qi,{cond:function(){var b;return(b=a.data())==null?void 0:b.image},
then:function(b){return _.q(_.Ps,{data:b,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.q("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.q(_.tt,{text:function(){var b;
return(b=a.data())==null?void 0:b.title}})),_.q("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.q(_.tt,{text:function(){var b;
return(b=a.data())==null?void 0:b.subtitle}})),_.q("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.q(_.Hu,{data:function(){var b;
return(b=a.data())==null?void 0:b.viewTipsButton}},{buttonViewModel:_.Qu}))))},"Me"),"yt-contributor-zero-state-view-model",{props:{data:_.VG}});var brc=_.Rr(function(a){var b=_.tu(Mnc,_.Nr(function(){var c;return(c=a.data())==null?void 0:c.noteFeedEntityKey},""));
return _.q("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.q("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.q("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.q(_.qi,{cond:function(){var c,d;return(c=a.data())==null?void 0:(d=c.noteData)==null?void 0:d.isPinned},
then:function(){return _.q(_.qt,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.q(_.tt,{text:function(){var c,d;
return(c=a.data())==null?void 0:(d=c.noteData)==null?void 0:d.headerText}}),_.q("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.q(_.tt,{text:function(){var c,d;
return(c=a.data())==null?void 0:(d=c.noteData)==null?void 0:d.delimiter}})),_.q(_.tt,{text:function(){var c,d;
return(c=b())==null?void 0:(d=c.contributorNote)==null?void 0:d.publishedTimeText}})),_.q(_.Hu,{data:function(){var c,d,e,g=(c=a.data())==null?void 0:c.noteData;
c=(d=b())==null?void 0:(e=d.contributorNote)==null?void 0:e.deleteAction;return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:g.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:g.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:g.deleteDialogTitle}]},dialogMessages:[{runs:[{text:g.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:g.deleteActionText}]},command:{performCommentActionEndpoint:{action:c}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:g.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(c){return _.q(_.Qu,{data:c.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.q("div",{class:"ytNoteViewModelNoteContent"},_.q(_.tt,{text:function(){var c,d;
return(c=b())==null?void 0:(d=c.contributorNote)==null?void 0:d.text}})))},"Ne");
brc.idomCompat=!0;_.Ts(brc,"yt-note-view-model",{props:{data:_.VG}});var tX=_.Rr(function(a){var b=_.Or(a,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),c=b.label,d=b.text,e=b.placeholder,g=b.hint;a=b.rows;var k=b.overflowStyle,m=b.outline,n=b.disabled,r=b.disableNewLines,t=b.characterLimit,u=b.validation,x=b.onInput,A=_.Pl();b=_.h(_.nt(function(){return d()}));
var C=b.next().value,F=b.next().value;b=_.h(_.ih(!1,void 0,"fXvinf"));var J=b.next().value,I=b.next().value,R=function(){I(!0)},da=function(){I(!1)};
_.wi(function(){var lb=A.value,Ua=k(),Vb=C();Ua==="expand-vertically"&&Vb&&Nnc(lb);A.value.addEventListener("focusin",R);A.value.addEventListener("focusout",da)});
_.zh(function(){A.value.removeEventListener("focusin",R);A.value.removeEventListener("focusout",da)});
var V=function(){var lb;return(lb=u())==null?void 0:lb.validate(C())},fa=function(){return t()&&!V()&&C().length>t().maxChars},aa=function(){return!!V()||fa()};
b=_.lt(function(lb){if(!lb.currentTarget)return!1;lb=lb.currentTarget;F(lb.value);k()==="expand-vertically"&&Nnc(lb);x==null||x(lb.value);return!0});
var ma=_.lt(function(lb){r()&&lb.key==="Enter"&&lb.preventDefault();return!1}),Ba=_.lt(function(){A.value.focus()}),Ca=function(){return e()||c()},ya={},Ia={},db={};
return _.q("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.q("div",{class:_.et("ytStandardsTextareaShapeTextareaContainer",(ya.ytStandardsTextareaShapeTextareaContainerOutline=m,ya.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=n,ya.ytStandardsTextareaShapeTextareaContainerOutlineError=aa,ya)),"on:click":Ba},_.q("label",{class:_.et("ytStandardsTextareaShapeLabel",(Ia.ytStandardsTextareaShapeLabelFocused=J,Ia.ytStandardsTextareaShapeLabelDisabled=n,Ia.ytStandardsTextareaShapeLabelError=
function(){return aa()&&!n()},Ia.ytStandardsTextareaShapeLabelHidden=function(){return!J()&&!C()&&!!Ca()},Ia))},c),_.q("div",{class:_.et("ytStandardsTextareaShapePlaceholder",(db.ytStandardsTextareaShapePlaceholderVisible=function(){return!J()&&!C()},db)),
"aria-hidden":"true"},Ca),_.q("textarea",{el:A,class:"ytStandardsTextareaShapeTextarea",rows:a,disabled:n,placeholder:Ca,"on:input":b,"on:keydown":ma},C)),_.q(_.qi,{cond:function(){return g()&&!aa()},
then:function(){var lb={};return _.q("div",{class:_.et("ytStandardsTextareaShapeHint",(lb.ytStandardsTextareaShapeHintDisabled=n,lb))},_.q("div",{class:"ytStandardsTextareaShapeHintHintMessage"},g))}}),_.q(_.qi,{cond:V,
then:function(){return _.q(crc,{disabled:n},_.q("div",{class:"ytStandardsTextareaShapeErrorMessage"},V))}}),_.q(_.qi,{cond:t,
then:function(lb){return _.q(_.qi,{cond:fa,then:function(){return _.q(crc,{disabled:n},_.q("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return lb().errorMessage}),_.q("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return C().length+"/"+lb().maxChars}))}})}}))},"Oe");
tX.idomCompat={callbacks:{onInput:!0}};var crc=_.Rr(function(a){var b={};return _.q("div",{class:_.et("ytStandardsTextareaShapeError",(b.ytStandardsTextareaShapeErrorDisabled=a.disabled,b)),role:"alert"},_.q(_.qt,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),a.children)},"Pe");_.drc=_.Rr(function(a){var b=a.data;return _.q("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.q(tX,{text:a.text,label:function(){var c;return(c=b().contentProperties)==null?void 0:c.labelText},
placeholder:function(){var c;return(c=b().contentProperties)==null?void 0:c.placeholderText},
hint:function(){var c;return(c=b().contentProperties)==null?void 0:c.hintText},
outline:function(){var c;return!((c=b().displayProperties)==null?0:c.hideBorder)},
overflowStyle:function(){var c;return((c=b().displayProperties)==null?0:c.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:a.disabled,disableNewLines:function(){var c;return(c=b().displayProperties)==null?void 0:c.disableNewLines},
onInput:a.onInput,characterLimit:a.characterLimit,validation:a.validation,rows:function(){var c;return(c=b().displayProperties)==null?void 0:c.rows}}))},"Qe");_.erc=_.Rr(function(a){var b=a.data;return _.q("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.q(tX,{text:a.text,label:function(){var c;return(c=b().contentProperties)==null?void 0:c.labelText},
placeholder:function(){var c;return(c=b().contentProperties)==null?void 0:c.placeholderText},
hint:function(){var c;return(c=b().contentProperties)==null?void 0:c.hintText},
outline:function(){var c;return!((c=b().displayProperties)==null?0:c.hideBorder)},
overflowStyle:function(){var c;return((c=b().displayProperties)==null?0:c.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var c;return(c=b().displayProperties)==null?void 0:c.disableNewLines},
onInput:a.onInput,characterLimit:a.characterLimit,validation:a.validation,rows:function(){var c;return(c=b().displayProperties)==null?void 0:c.rows}}))},"Re");var frc=_.Rr(function(a){var b=_.h(_.nt(function(){var Ca,ya;return((Ca=a.data().structuredContextNoteFormSchema)==null?0:(ya=Ca.initialValues)==null?0:ya.noteBody)?a.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),c=b.next().value,d=b.next().value;
b=_.h(_.nt(function(){a.data();return!1}));
var e=b.next().value,g=b.next().value;b=_.h(_.nt(function(){a.data();return!1}));
var k=b.next().value,m=b.next().value;b=_.h(_.nt(function(){var Ca,ya;return((Ca=a.data().structuredContextNoteFormSchema)==null?0:(ya=Ca.initialValues)==null?0:ya.timestamp)?a.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var n=b.next().value,r=b.next().value;b=_.h(_.nt(function(){a.data();return!1}));
var t=b.next().value,u=b.next().value;b=_.h(_.nt(function(){var Ca,ya;return((Ca=a.data().structuredContextNoteFormSchema)==null?0:(ya=Ca.initialValues)==null?0:ya.sources)?[a.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var x=b.next().value,A=b.next().value;b=_.h(_.nt(function(){a.data();return!1}));
var C=b.next().value,F=b.next().value;b=_.h(_.nt(function(){return!1}));
var J=b.next().value,I=b.next().value;_.wi(function(){var Ca;_.Knc((Ca=a.data().structuredContextNoteFormSchema)==null?void 0:Ca.id,{isSubmitting:J,onSubmit:function(){I(!0);var ya=Wnc(c(),n(),x(),a.data()),Ia=_.v().resolve(_.Yi);ya&&Ia&&Ia.resolveCommand(ya,{commandController:{onSuccess:function(){I(!1)}}})},
isValid:function(){return e()&&!k()&&!t()&&!C()}})});
var R=function(Ca){if(Ca!==void 0&&(d(Ca),!e()&&Ca.length>0&&g(!0),e())){var ya=Qnc(a.data());if(ya){var Ia=ya.minLength;ya=ya.maxLength;Ia&&Ca.length<Ia?m(!0):ya&&Ca.length>ya?m(!0):m(!1)}}},da=function(Ca){if(Ca!==void 0){r(Ca);
if(Ca.length>0){var ya,Ia,db,lb,Ua=Snc((ya=a.data())==null?void 0:(Ia=ya.structuredContextNoteFormSchema)==null?void 0:(db=Ia.fieldSchemas)==null?void 0:(lb=db.timestamp)==null?void 0:lb.validationSchema);if(Ua&&(ya=Ua.regex)&&!(new RegExp(ya)).test(Ca)){u(!0);return}}u(!1)}},V=function(Ca){if(Ca!==void 0){var ya=Ca.split(/[ \n]/).map(function(Ia){return Ia.trim()});
A(ya);if(Ca.length>0)for(Ca=_.h(ya),ya=Ca.next();!ya.done;ya=Ca.next())if(!Vnc(ya.value)){F(!0);return}F(!1)}},fa=function(){return{validate:function(Ca){if(e()){var ya=Qnc(a.data());
if(ya){var Ia=ya.minLength;ya=ya.translations;if(Ia&&Ca.length<Ia)return ya==null?void 0:ya.minLengthErrorMessage}}}}},aa=function(){var Ca=Qnc(a.data()),ya=Ca==null?void 0:Ca.maxLength,Ia;
Ca=Ca==null?void 0:(Ia=Ca.translations)==null?void 0:Ia.maxLengthErrorMessage;if(ya&&Ca)return{maxChars:ya,errorMessage:Ca}},ma=function(){return{validate:function(Ca){if(Ca){var ya,Ia,db,lb,Ua=Snc((ya=a.data())==null?void 0:(Ia=ya.structuredContextNoteFormSchema)==null?void 0:(db=Ia.fieldSchemas)==null?void 0:(lb=db.timestamp)==null?void 0:lb.validationSchema);
if(Ua&&(ya=Ua.regex,Ua=Ua.translations,ya&&!(new RegExp(ya)).test(Ca)))return Ua==null?void 0:Ua.regexErrorMessage}}}},Ba=function(){return{validate:function(Ca){if(Ca){var ya,Ia,db,lb,Ua=Unc((ya=a.data())==null?void 0:(Ia=ya.structuredContextNoteFormSchema)==null?void 0:(db=Ia.fieldSchemas)==null?void 0:(lb=db.sources)==null?void 0:lb.validationSchema);
if(Ua&&(ya=Ua.translations,ya==null?0:ya.selectedErrorMessage))for(Ca=Ca.split(/[ \n]/).map(function(Vb){return Vb.trim()}),Ca=_.h(Ca),Ia=Ca.next();!Ia.done;Ia=Ca.next())if(!Vnc(Ia.value))return Ca=void 0,(Ca=ya)==null?void 0:Ca.selectedErrorMessage}}}};
return _.q("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.q("div",{class:"ytStructuredContextNoteViewModelTextField"},_.q(_.Hu,{data:function(){var Ca;return(Ca=a.data())==null?void 0:Ca.noteContents}},{textFormFieldViewModel:function(Ca){return _.q(_.erc,{data:Ca.data,
onInput:R,validation:fa,characterLimit:aa})},
textFieldViewModel:function(Ca){return _.q(_.drc,{data:Ca.data,onInput:R,validation:fa,characterLimit:aa})}})),_.q("div",{class:"ytStructuredContextNoteViewModelTextField"},_.q(_.Hu,{data:function(){var Ca;
return(Ca=a.data())==null?void 0:Ca.noteTimestamp}},{textFormFieldViewModel:function(Ca){return _.q(_.erc,{data:Ca.data,
onInput:da,validation:ma})},
textFieldViewModel:function(Ca){return _.q(_.drc,{data:Ca.data,onInput:da,validation:ma})}})),_.q("div",{class:"ytStructuredContextNoteViewModelTextField"},_.q(_.Hu,{data:function(){var Ca;
return(Ca=a.data())==null?void 0:Ca.noteSources}},{textFormFieldViewModel:function(Ca){return _.q(_.erc,{data:Ca.data,
onInput:V,validation:Ba})},
textFieldViewModel:function(Ca){return _.q(_.drc,{data:Ca.data,onInput:V,validation:Ba})}})))},"Se");
frc.idomCompat=!0;_.Ts(frc,"yt-structured-context-note-view-model",{props:{data:_.VG}});var grc=_.Rr(function(a){var b=_.h(_.nt(function(){var g;if((g=a.controlled)==null?0:g.call(a))return[];var k;return(((k=a.data())==null?void 0:k.chips)||[]).map(function(m){m=_.y(m,_.VE);if(m==null?0:m.selected)return Xnc(m.chipValue)}).filter(function(m){return m!==void 0})})),c=b.next().value,d=b.next().value,e=function(g){var k=Xnc(g.chipValue);
if(k!==void 0){var m;if((m=a.controlled)==null?0:m.call(a))return void a.controlled().onTap(k);g=c().includes(k)?[].concat(_.De(c().filter(function(r){return r!==k}))):[].concat(_.De(c()),[k]);
d(g);var n;if((n=a.uncontrolled)==null?0:n.call(a))a.uncontrolled().onUpdate(g)}};
return _.q("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.q(_.ri,{each:function(){return a.data().chips||[]}},function(g){return _.q("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.q(_.v$b,{data:function(){return _.y(g,_.VE)},
selected:function(){var k;if(k=_.y(g,_.VE)){var m=Xnc(k.chipValue);if(m!==void 0){var n;k=((n=a.controlled)==null?0:n.call(a))?a.controlled().selectedValues.includes(m):c().includes(m)}else k=void 0}else k=!1;return k},
callback:e}))}))},"Te");var hrc=_.Rr(function(a){var b=a.data;var c=function(){var m;return((m=b())==null?void 0:m.flowStateKey)||""},d=_.tu(_.pw,c),e=function(){var m;
return(m=_.y(d(),Uoc))==null?void 0:m.chips},g=function(m){if(m!==void 0){var n=e()||[];
n=n.find(function(r){return r===m})?n.filter(function(r){return r!==m}):[].concat(_.De(n),[m]);
n=Object.assign({},d(),{feedbackFormFlowState:Object.assign({},_.y(d(),Uoc),{chips:n})});_.Mr(_.wu("flowStateEntity",c(),n))}},k=function(){var m;
return _.y((m=b())==null?void 0:m.inputBox,sX)};
a=_.Iy(function(m){var n=k();n=!(n==null?0:n.maxChars)||m.length<=n.maxChars;m=Object.assign({},d(),{feedbackFormFlowState:Object.assign({},_.y(d(),Uoc),{detail:m}),abuseReportFlowState:Object.assign({},_.y(d(),rX),{navigationEnabled:n})});_.Mr(_.wu("flowStateEntity",c(),m))},150);
return _.q("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.q("div",{class:"ytFeedbackFormViewModelChips"},_.q(_.Hu,{data:function(){var m;return(m=b())==null?void 0:m.chipSelection}},{chipSelectionFormFieldViewModel:function(m){return _.q(grc,{data:m.data,
controlled:function(){return{selectedValues:e()||[],onTap:g}}})}})),_.q("div",{class:"ytFeedbackFormViewModelInputBox"},_.q(tX,{text:function(){var m;
return(m=_.y(d(),Uoc))==null?void 0:m.detail},
placeholder:function(){var m;return((m=k())==null?void 0:m.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var m=k();if(m&&m.maxChars)return{maxChars:m.maxChars,errorMessage:m.maxCharsExceededErrorMessage||""}},
onInput:a})),_.q("div",{class:"ytFeedbackFormViewModelFooterText"},_.q(_.tt,{text:function(){return b().footerText}})))},"Ue");
hrc.idomCompat=!0;_.Ts(hrc,"yt-feedback-form-view-model",{props:{data:_.VG}});var Ync=_.Du({buttonViewModel:_.Qu});_.Zl(Znc);var irc=_.Rr(function(a){var b=a.data;var c=function(){return b().flowStateKey||""},d=_.tu(Tmc,c),e=function(){return _.y(d(),rX)},g=function(){if(_.w("enable_gff_accessibility_fix")){var k=!0,m;
if((m=e())==null?0:m.navigationEnabled){var n;_.Gs((n=e())==null?void 0:n.navigationCommand);k=!1}m=Object.assign({},d(),{abuseReportFlowState:Object.assign({},e(),{isReportFormDirty:k})});_.Mr(_.wu("flowStateEntity",c(),m))}else _.Gs((k=e())==null?void 0:k.navigationCommand)};
return _.q("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.q("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.q(_.Hu,{data:function(){return b().cancelButton}},{buttonViewModel:function(k){return _.q(_.Qu,{data:k.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:g})}}),_.q(_.Hu,{data:function(){var k;
if(b().navButton){var m=Object;var n=m.assign,r=_.y(b().navButton,_.Iu),t=((k=e())==null?0:k.navigationEnabled)||_.w("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",u,x;k=_.y((u=e())==null?void 0:u.navigationCommand,_.Cs);u=(x=_.y(k,_.Kl))==null?void 0:x.url;m={buttonViewModel:n.call(m,{},r,{state:t,iconName:u?"OPEN_IN_NEW":""})}}else m=void 0;return m}},{buttonViewModel:function(k){return _.q(_.Qu,{data:k.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:g})}})))},"Ve"),jrc=_.w("web_enable_sink_report_form_view_models")?irc:Znc;
irc.idomCompat=!0;_.w("web_enable_sink_report_form_view_models")?_.Ts(jrc,"yt-report-form-bottom-bar-view-model",{props:{data:_.VG}}):_.at(jrc,"yt-report-form-bottom-bar-view-model",{propNames:["data"]});_.Zl($nc);var krc=_.Rr(function(a){var b=a.nextStep;return _.q("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.q("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.q(_.qt,{icon:function(){return b().iconName||""}})),_.q("div",null,_.q(_.tt,{text:function(){return b().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"We"),lrc=_.Rr(function(a){var b=a.data;
var c,d=(c=_.v().resolve(_.Xi(_.Ks)))==null?void 0:c(),e=_.tu(_.pw,function(){return b().flowStateKey||""});
return _.q("yt-report-form-confirmation-page-view-model",{class:"ytWebReportFormConfirmationPageViewModelHost"},_.q("div",{class:function(){var g;return((g=_.y(e(),rX))==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.q(_.Ps,{data:function(){return d&&b().imageDark?b().imageDark:b().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.q("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.q("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return b().confirmationHeader}),_.q("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.q(_.tt,{text:function(){return b().confirmationText}})),_.q("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.q(_.tt,{text:function(){return b().lawEnforcementText}})),
_.q("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return b().whatToExpectHeader}),_.q(_.qi,{cond:function(){return b().nextSteps},
then:function(g){return _.q("div",null,_.q(_.ri,{each:g},function(k){return _.q(krc,{nextStep:k})}))}}),_.q(_.qi,{cond:function(){return b().legalReportText},
then:function(g){return _.q("div",null,_.q(_.tt,{text:g,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Xe"),mrc=_.w("web_enable_sink_report_form_view_models")?lrc:$nc;
lrc.idomCompat=!0;_.w("web_enable_sink_report_form_view_models")?_.Ts(mrc,"yt-report-form-confirmation-page-view-model",{props:{data:_.VG}}):_.at(mrc,"yt-report-form-confirmation-page-view-model",{propNames:["data"]});_.Zl(aoc);var nrc=_.Rr(function(a){var b=a.data;var c=function(){var g;return((g=_.y(b().inputBox,sX))==null?void 0:g.maxChars)||500},d=function(){return b().flowStateKey||""},e=_.tu(_.pw,d);
a=_.Iy(function(g){g=Object.assign({},e(),{flowFormState:{isValid:g.length<=c()},abuseReportFlowState:{userComments:g,navigationEnabled:!(g.length>c()),isReportFormDirty:!0}});_.Kr().dispatch(_.Lu("flowStateEntity",d(),g))},150);
_.wi(function(){var g=Object.assign({},e(),{flowFormState:{isValid:!0}});_.Kr().dispatch(_.Lu("flowStateEntity",d(),g))});
return _.q("yt-report-form-details-page-view-model",{class:"ytWebReportFormDetailsPageViewModelHost"},_.q("h1",{class:function(){var g;return((g=_.y(e(),rX))==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return b().detailsPageHeader}),_.q("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.q(_.tt,{text:function(){return b().bodyText}})),_.q("div",{class:"ytWebReportFormDetailsPageViewModelInput"},
_.q(tX,{label:function(){var g;
return((g=_.y(b().inputBox,sX))==null?void 0:g.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var g;return{errorMessage:((g=_.y(b().inputBox,sX))==null?void 0:g.maxCharsExceededErrorMessage)||"",maxChars:c()}},
onInput:a})))},"Ye"),orc=_.w("web_enable_sink_report_form_view_models")?nrc:aoc;
nrc.idomCompat=!0;_.w("web_enable_sink_report_form_view_models")?_.Ts(orc,"yt-report-form-details-page-view-model",{props:{data:_.VG}}):_.at(orc,"yt-report-form-details-page-view-model",{propNames:["data"]});var prc=_.Rr(function(a){var b=a.data;var c=a.selectedKey;var d=a.onSelected;var e=a.groupName;var g=_.q("div",{class:"ytRadioButtonItemViewModelLabel"},_.q("div",null,function(){return b().text}),_.q("div",{class:"ytRadioButtonItemViewModelSubText"},function(){return b().subtext}));
a={};return _.q("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost",tabindex:0},_.q(_.E$b,{name:e,checked:function(){return!(c==null||!c()||b().key!==(c==null?void 0:c()))},
onChange:function(k){d==null||d(k.target,b(),e==null?void 0:e())},
labelRenderable:function(){return g},
ariaLabel:function(){return b().subtext?b().text+", "+b().subtext:b().text},
className:_.et((a.ytRadioButtonItemViewModelSubTitle=function(){return!!b().subtext},a))}))},"Ze");_.qrc=_.Rr(function(a){var b=a.data;var c=a.onSelected;var d=a.selectedKey;var e=a.groupName;return _.q("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.q("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.q(_.Hu,{data:function(){return b().radioButtons}},{radioButtonItemViewModel:function(g){var k=g.data;
return _.q(prc,{data:k,onSelected:c,selectedKey:d,groupName:function(){return e!=null?e:k().key}})}})))},"$e");var rrc=_.Rr(function(a){var b=a.data;var c=_.Ql(),d=function(){return b().flowStateKey||""},e=_.tu(_.pw,d),g=function(){return _.y(e(),rX)};
_.wh(function(){var k,m;if(((k=g())==null?0:k.isReportFormDirty)&&((m=g())==null||!m.navigationEnabled)&&_.w("enable_gff_accessibility_fix")){var n;if(((n=g())==null?void 0:n.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var r;(r=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||r.scrollIntoView()}else{var t;(t=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||t.scrollIntoView()}}},"c7z0Pe");
return _.q("yt-report-form-reason-select-page-view-model",{class:"ytWebReportFormReasonSelectPageViewModelHost"},_.q("h1",{class:function(){var k;return((k=g())==null?void 0:k.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return b().pageHeader}),_.q("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.q(_.tt,{text:function(){return b().bodyText}})),_.q("div",{class:function(){var k;
return((k=g())==null?void 0:k.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.q(_.qi,{cond:function(){var k,m;
return((k=g())==null?void 0:k.isReportFormDirty)&&!((m=g())==null?0:m.navigationEnabled)&&_.w("enable_gff_accessibility_fix")},
then:function(){return _.q("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:c},_.q(_.qt,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.q("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return b().emptyReasonSelectErrorMessage}))}}),_.q(_.qrc,{data:function(){return _.y(b().radioButtonGroup,_.bpc)},
onSelected:function(k,m){k=Object.assign({},e(),{abuseReportFlowState:Object.assign({},g(),{reasonKey:m.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:m.command})});_.Mr(_.wu("flowStateEntity",d(),k))},
selectedKey:function(){var k;return(k=g())==null?void 0:k.reasonKey},
groupName:"report-form-reason-select-page"})))},"af");
rrc.idomCompat=!0;_.Ts(rrc,"yt-report-form-reason-select-page-view-model",{props:{data:_.VG}});_.Zl(boc);var src=_.Rr(function(a){var b=a.data;var c,d=(c=_.v().resolve(_.Xi(_.Ks)))==null?void 0:c();return _.q("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.q("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.q(_.Ps,{data:function(){return d&&b().imageDark?b().imageDark:b().image},
alt:""})),_.q("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.q("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return b().header}),_.q(_.tt,{text:function(){return b().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"bf"),trc=_.w("web_enable_sink_report_form_view_models")?src:boc;
src.idomCompat=!0;_.w("web_enable_sink_report_form_view_models")?_.Ts(trc,"yt-report-form-sign-in-page-view-model",{props:{data:_.VG}}):_.at(trc,"yt-report-form-sign-in-page-view-model",{propNames:["data"]});_.Ts(_.Rr(function(a){var b=a.data;var c=function(){var r;return(r=b().textInputPlaceholder)==null?void 0:r.content},d=function(r){r=r.target.value.trim();
var t=b().onUpdateText;t&&_.Gs(t,{form:{userQuery:r}});b().userQuery=r},e=_.Iy(function(r){d(r)},150),g=_.lt(function(r){e(r);
return!1}),k=_.lt(function(r){r.key==="Enter"&&(d(r),(r=b().onNextStepCommand)&&_.Gs(r,{}));
return!1}),m=_.Pl(),n=function(){if(_.w("web_hide_explore_hub_until_user_navigates_back_to_home")){var r,t,u;
(u=(t=(r=m.value)==null?void 0:r.closest("ytd-flow-step-renderer"))==null?void 0:t.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||u.click()}};
return _.q("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:m},_.q("div",{class:"ytwTalkToRecsTopCornerButton"},_.q(_.Hu,{data:function(){return b().topCornerButton}},{buttonViewModel:_.Qu})),_.q("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.q("div",{class:"ytwTalkToRecsTitle"},_.q(_.tt,{text:function(){return b().title}})),_.q("div",{class:"ytwTalkToRecsSubtitle"},_.q(_.tt,{text:function(){return b().subtitle}})),_.q("div",{class:"ytwTalkToRecsChipsShelf"},_.q(_.Hu,{data:function(){return b().answersShelf}},
{chipsShelfViewModel:function(r){return _.q(_.B$b,{data:r.data,
callback:n})}})),_.q(_.qi,{cond:function(){return b().showOpenTextInput&&!_.w("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.q("div",{class:"ytwTalkToRecsUserInputBox"},_.q("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:c,value:function(){return b().userQuery},
"on:input":g,"on:keyup":k}))}})))},"cf"),"yt-talk-to-recs-view-model",{props:{data:_.VG}});var coc={sources:[{clientResource:{imageName:"CHECK"}}]};_.urc=_.Rr(function(a){var b=_.Pl();a=_.Or(a,{error:void 0});var c=a.data,d=a.error,e=a.onSelected;a=_.h(_.nt(function(){return foc(c())}));
var g=a.next().value,k=a.next().value;joc(c,function(u){k(u);var x,A,C=eoc((x=c().options)==null?void 0:(A=x[u])==null?void 0:A.value,c().type);e==null||e(C);b.value.focus()});
a=_.lt(function(){if(!c().disabled){var u=c(),x=g(),A=b.value;u.options&&(u=doc(u.options,x,u.label),_.v().resolve(_.KJ).openSheet({viewModel:u},A))}});
var m=_.$Xa(),n=function(){return!!d()},r=function(){return!!c().disabled},t={};
t=_.et("ytDropdownViewModelDropdownContainer",(t.ytDropdownViewModelDropdownContainerErrorBorder=n,t.ytDropdownViewModelDropdownContainerDisabled=r,t));return _.q("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.q("div",{class:t,"on:click":a,el:b,role:"combobox",tabindex:0,"on:keydown":m,"aria-invalid":n,"aria-disabled":r,"aria-describedby":function(){return n()?"dropdown-view-model-error":void 0}},_.q("div",{class:"ytDropdownViewModelText"},goc(c,n,g),hoc(c,g)),_.q("div",{class:"ytDropdownViewModelChevronDown"},
_.q(_.qt,{icon:"CHEVRON_DOWN"}))),ioc(c,d))},"df");_.Ts(_.Rr(function(a){var b=a.data;var c=function(e){var g=loc(b());g.videoMetadata||(g.videoMetadata={});g.videoMetadata.sponsorshipsMetadata||(g.videoMetadata.sponsorshipsMetadata={});g.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(e)},d=function(e){var g=loc(b());
g.scheduledRedirectMetadata||(g.scheduledRedirectMetadata={});g.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(e)};
return _.q("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.q("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.q("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.q(_.tt,{text:function(){return b().title}}),_.q(_.qt,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.q(_.tt,{text:function(){return b().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.q(_.Hu,{data:function(){return b().tierChoices}},{dropdownViewModel:function(e){return _.q("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.q(_.urc,{data:e.data,
onSelected:c}))}}),_.q(_.Hu,{data:function(){return b().startTimeChoices}},{dropdownViewModel:function(e){return _.q("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.q(_.urc,{data:e.data,
onSelected:d}))}}),_.q(_.tt,{text:function(){return b().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.q("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.q(_.Hu,{data:function(){return b().scheduleButton}},{panelFooterViewModel:_.aY})))},"ef"),"ytfz-schedule-fanzone-view-model",{props:{data:_.VG}});_.Ts(_.Rr(function(a){var b=a.data;a=a.className===void 0?"":a.className;var c=_.tu(Tmc,function(){return b().flowStateEntityKey||""}),d={};
d=_.et("ytFlowBottomBarViewModelFlowBottomBarButtons",(d.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},d));
var e={},g=_.et("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",d,(e.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},e.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},e));
e={};var k=_.et("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",d,(e.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},e.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},e));
d={};d=_.et("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(d.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},d.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},d.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
d));
return _.q("yt-flow-bottom-bar-view-model",{class:_.et("ytFlowBottomBarViewModelHost",a)},_.q(_.qi,{cond:function(){var m;return(m=b())==null?void 0:m.textSection},
then:function(m){return _.q("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.q(_.tt,{text:m}))}}),_.q("div",{class:d},_.q(_.Hu,{data:function(){return b().secondaryButton}},{buttonViewModel:function(m){return _.q(_.Qu,{data:m.data,
className:k})}}),_.q(_.Hu,{data:function(){return b().primaryButton}},{buttonViewModel:function(m){return _.q(_.Qu,{data:m.data,
className:g,buttonOverrides:function(){var n;return{disabled:!((n=c())==null||!n.primaryButtonDisabled)}}})}})))},"ff"),"yt-flow-bottom-bar-view-model",{props:{data:_.VG,
className:_.Ss}});var vrc="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),wrc=function(){var a=_.P.apply(this,arguments)||this;a.enableScrollingFix=!0;a.bottomBar=!1;a.hideBottomBar=!1;a.fitContent=!1;return a};
_.z(wrc,_.P);_.f=wrc.prototype;_.f.ready=function(){_.w("enable_pdp_icon_prefetch")&&_.Toc(_.v().resolve(_.sW),0,vrc)};
_.f.focus=function(a){this.topBar?_.Ok(this.topBar,a):this.paperDialog.focus(a)};
_.f.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16653_scroller&&(this.JSC$16653_scroller.dialogElement=this.paperDialog,this.JSC$16653_scroller.attached&&typeof this.JSC$16653_scroller.attached==="function"&&this.JSC$16653_scroller.attached())};
_.f.onDataChanged=function(){var a;this.fitContent=!((a=this.data)==null||!a.fitContent);var b;this.bottomBar=!((b=this.data)==null||!b.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.f.onProgressChanged=function(){var a,b,c=((b=(a=this.data)==null?void 0:a.progress)!=null?b:0)*100;this.progressElement.style.width=c+"%"};
_.f.isProgressHidden=function(){var a;return!((a=this.data)==null?0:a.progress)};
_.f.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",
pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",
structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",
shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(a){return _.w("enable_wiz_next_lp2_msof")&&a&&!a.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.Um.Object.defineProperties(wrc.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var a;return _.w("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.y((a=this.data)==null?void 0:a.content,Zoc)}}});
var bY=wrc;bY.prototype.onProgressChanged=bY.prototype.onProgressChanged;bY.prototype.onDataChanged=bY.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],bY.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],bY.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],bY.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],bY.prototype,"enableScrollingFix",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],bY.prototype,"bottomBar",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],bY.prototype,"hideBottomBar",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],bY.prototype,"containsExploreHub",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],bY.prototype,"fitContent",void 0);
_.U([_.ir("#progress"),_.W("design:type",HTMLElement)],bY.prototype,"progressElement",void 0);_.U([_.ir("#scroller"),_.W("design:type",Object)],bY.prototype,"JSC$16653_scroller",void 0);_.U([_.ir("ytd-flow-top-bar-renderer"),_.W("design:type",HTMLElement)],bY.prototype,"topBar",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bY.prototype,"onDataChanged",null);
_.U([_.N("data.progress"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bY.prototype,"onProgressChanged",null);bY=_.U([_.Q({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],bY);
_.S(bY,"ytd-flow-step-renderer",function(){if(Epc!==void 0)return Epc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-flow-step-renderer"></div>\n<div id="progress-container" hidden="[[isProgressHidden(data)]]" class="style-scope ytd-flow-step-renderer">\n  <div id="progress" class="style-scope ytd-flow-step-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-flow-step-renderer">\n  <div id="content" class="style-scope ytd-flow-step-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n<div id="bottom-bar" class="style-scope ytd-flow-step-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Epc=a},{mode:1});var xrc=function(a){this.resolveCommand=a;this.steps={}},yrc=function(a,b){b=_.h(b||[]);
for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=Object.values(c)[0],e=void 0;if((e=d)==null?0:e.stepId)a.steps[d.stepId]=c}},Brc=function(a,b){var c,d,e,g,k;
return _.l(function(m){if((c=a.state)==null||!c.currentStepId)return m.return(void 0);d=zrc(a);if(!d)return m.return(Arc(a));if(e=_.y(d,_.Yoc)){var n;((n=e.screenLoggingData)==null?0:n.screenVeType)&&_.pF(_.ls(),e.screenLoggingData.screenVeType);((g=e)==null?0:g.onStepStartCommand)&&a.resolveCommand((k=e)==null?void 0:k.onStepStartCommand,{})}if(e&&b){n=e;var r,t,u,x;((r=b.flowLoggingData)==null?0:r.eventNamespace)&&((t=n.flowEventData)==null?0:t.eventType)&&((u=n.flowEventData)==null?0:u.eventMetadata)&&
((x=b.flowLoggingData)==null?0:x.flowType)&&(r=_.iq(b.flowLoggingData.eventNamespace,n.flowEventData.eventType,n.flowEventData.eventMetadata),_.jq(_.kq(),r,b.flowLoggingData.flowType));b.steps&&!b.steps.includes(d)&&b.steps.push(d)}return m.return(d)})};
xrc.prototype.back=function(){var a;(a=this.state)!=null&&a.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
xrc.prototype.handleUpdateFlowCommand=function(a){a.steps&&yrc(this,a.steps);a.entityUpdateCommand&&this.resolveCommand(a.entityUpdateCommand,{});a.flowContinuationCommand&&(a=a.flowContinuationCommand)&&(this.getFlowContinuationCommand=a);this.awaitFlowContinuation&&(this.awaitFlowContinuation(zrc(this)),this.awaitFlowContinuation=void 0)};
xrc.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var Arc=function(a){return _.l(function(b){return a.getFlowContinuationCommand?b.return(new Promise(function(c){a.awaitFlowContinuation=c;a.getFlowContinuationCommand&&a.resolveCommand(a.getFlowContinuationCommand,{flow_state:a.state})})):b.return(Promise.resolve(void 0))})},zrc=function(a){var b;
if((b=a.state)!=null&&b.currentStepId)return a.steps[a.state.currentStepId]};var Crc=function(){var a=_.P.apply(this,arguments)||this;a.flowState=new xrc(function(b,c){c=c===void 0?{}:c;_.gs.instance.resolveCommand(b,{form:{form:c,element:a.hostElement}})});
a.initialState=!0;a.isLoading=!1;a.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};return a};
_.z(Crc,_.P);_.f=Crc.prototype;_.f.onPopupClosed=function(a){a&&this.hostElement!==a.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.f.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.f.focus=function(a){var b=this;_.Er(function(){var c=_.E(b.hostElement).querySelector("ytd-flow-step-renderer");c.topBar?c.focus(a):b.topBar&&_.Ok(b.topBar,a)},1)};
_.f.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.f.computeTopBarHidden=function(a){var b;return!((b=_.y(a,_.Yoc))==null||!b.topBarOverride)};
_.f.dataChanged=function(){var a=this,b,c;return _.l(function(d){if(d.nextAddress==1){((b=a.data)==null?0:b.steps)&&yrc(a.flowState,a.data.steps);if((c=a.data)==null?0:c.flowContinuationCommand){var e=a.flowState,g=a.data.flowContinuationCommand;g&&(e.getFlowContinuationCommand=g)}return _.p(d,Brc(a.flowState,a.data),2)}a.currentFlowStep=d.yieldResult;_.ue(d)})};
_.f.flowChanged=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1){if(!a.flow)return c.return();a.flowState.state=a.flow;a.isLoading=!0;return _.p(c,Brc(a.flowState,a.data),2)}b=c.yieldResult;if(!b||a.flow.isLoading)return c.return();a.currentFlowStep=b;a.initialState=!1;a.isLoading=!1;a.autofocusAndRefit();_.ue(c)})};
_.f.autofocusAndRefit=function(){var a=this,b=_.v().resolve(_.Xi(_.Bu)),c=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),d=document.querySelector("yt-report-form-confirmation-page-view-model"),e=document.querySelector("yt-report-form-details-page-view-model"),g=document.querySelector("yt-report-form-reason-select-page-view-model"),k=document.querySelector("yt-contributor-zero-state-view-model"),
m=document.querySelector("yt-structured-context-note-view-model"),n=document.querySelector("yt-note-view-model");(!c&&b&&b.isKeyBoardInUse()||d||!c&&e||!c&&g||k||m||n)&&_.Pk(this.hostElement);_.Qm(this,function(){_.io(a.hostElement,"yt-refit")})};
_.f.handleUpdateFlowCommand=function(a){this.data&&(a=_.y(a,Xoc),a.targetId===this.data.targetId&&(a.flowContinuationCommand&&(this.data.flowContinuationCommand=a.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(a),this.autofocusAndRefit()))};
_.f.handleFlowNextStepCommand=function(a){this.data&&this.flow&&this.flow.key&&(a=_.y(a,Voc),a.targetId===this.data.targetId&&(a=a.stepId||"",this.ytdReduxBehavior.dispatch(_.Lu("flowStateEntity",this.flow.key,{currentStepId:a,stepIdStack:(this.flow.stepIdStack||[]).concat(a)}))))};
_.f.handleFlowPrevStepCommand=function(a){if(this.data&&this.flow&&this.flow.key&&(a=_.y(a,Woc),a.targetId===this.data.targetId)){var b=[].concat(_.De(this.flow.stepIdStack||[]));b.length>1?(b.pop(),this.ytdReduxBehavior.dispatch(_.Lu("flowStateEntity",this.flow.key,{currentStepId:b[b.length-1],stepIdStack:b}))):a.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(a.onFirstStepCommand)}};
_.f.handleYpcCancelRecurrenceCommand=function(a){if(this.data&&this.flow&&this.flow.key&&(a=_.y(a,cpc),a.targetId===this.data.targetId&&a.endpointCommand)){var b=_.y(this.flow,dpc);b&&_.y(a.endpointCommand,_.pGb)&&(_.y(a.endpointCommand,_.pGb).feedbackData=b.surveyFeedback);this.ytComponentBehavior.resolveCommand(a.endpointCommand)}};
_.f.handlePartialUpdateFlowStateEntity=function(a){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.Lu("flowStateEntity",this.flow.key,a,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
var cY=Crc;cY.prototype.flowChanged=cY.prototype.flowChanged;cY.prototype.dataChanged=cY.prototype.dataChanged;cY.prototype.onPopupClosed=cY.prototype.onPopupClosed;_.U([_.H(_.OI),_.W("design:type",Object)],cY.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],cY.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],cY.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],cY.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],cY.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],cY.prototype,"initialState",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],cY.prototype,"isLoading",void 0);_.U([_.O(),_.W("design:type",Object)],cY.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],cY.prototype,"currentFlowStep",void 0);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],cY.prototype,"onPopupClosed",null);_.U([_.O({selectorArgs:["data.flowStateEntityKey"],selector:Tmc}),_.W("design:type",Object)],cY.prototype,"flow",void 0);_.U([_.ir("ytd-flow-top-bar-renderer"),_.W("design:type",HTMLElement)],cY.prototype,"topBar",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],cY.prototype,"dataChanged",null);_.U([_.mr("flow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],cY.prototype,"flowChanged",null);cY=_.U([_.Q({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],cY);
_.Drc=_.$r()(cY,"ytd-flow-root-renderer",function(){if(Dpc!==void 0)return Dpc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Dpc=a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var Erc;var uX=null;_.Ts(_.Rr(function(a){return _.q("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.q("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.q(_.tt,{text:function(){return a.data().text}}),_.q("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"gf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.VG}});var Frc=_.Rr(function(a){var b=a.playerControlsProps;var c=a.isShortsPage;return _.q("yt-bigboard",null,_.q(_.qi,{cond:function(){return b().isDragging},
then:function(){return _.q("div",{class:"ytBigboardStoryboardHost"},_.q(_.ukc,{progressBarProps:b,isShortsPage:c}))}}))},"hf");
Frc.idomCompat=!0;_.dY={ACCOUNT_LABEL:vX("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:vX("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:vX("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:vX("AD_BADGE_HINT"),AD_BADGE_TEXT:vX("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:vX("ALL_CHANNELS_LABEL"),AMBIENT_MODE:vX("AMBIENT_MODE"),AMBIENT_MODE_OFF:vX("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:vX("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:vX("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:vX("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:vX("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:vX("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:vX("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:vX("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:vX("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:vX("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:vX("AUTOPLAY_UP_NEXT_IN"),BACK:vX("BACK"),CANCEL:vX("CANCEL"),CHANNEL_SWITCHER_LABEL:vX("CHANNEL_SWITCHER_LABEL"),CLOSE:vX("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:vX("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:vX("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:vX("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:vX("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:vX("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:vX("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:vX("COMMENT_MODAL_CONTENT"),CONFIRM_OK:vX("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:vX("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:vX("COPIED_TO_CLIPBOARD"),COPY:vX("COPY"),COPY_DEBUG_INFO:vX("COPY_DEBUG_INFO"),COPY_EMBED_CODE:vX("COPY_EMBED_CODE"),COPY_LINK_LABEL:vX("COPY_LINK_LABEL"),
COPY_VIDEO_URL:vX("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:vX("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:vX("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:vX("DELETE_FROM_DOWNLOADS"),DIALOG:vX("DIALOG"),DONE:vX("DONE"),DOWNLOAD:vX("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:vX("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:vX("FLAG_CONFIRM"),FLAG_CONTENT:vX("FLAG_CONTENT"),FLAG_LABEL:vX("FLAG_LABEL"),FLAG_TITLE:vX("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:vX("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:vX("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:vX("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:vX("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:vX("HIDE_SEARCH_FILTERS_LABEL"),HOME:vX("HOME","Home"),INVALID_RESPONSE_RECEIVED:vX("INVALID_RESPONSE_RECEIVED"),LIBRARY:vX("LIBRARY","Library"),LISTENING:vX("LISTENING"),LOADING:vX("LOADING"),LONG_PRESS_MIC_TO_SPEAK:vX("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:vX("LOOP"),MENU_DESKTOP:vX("MENU_DESKTOP"),MENU_EXIT:vX("MENU_EXIT"),
MENU_FEEDBACK:vX("MENU_FEEDBACK"),MENU_HELP:vX("MENU_HELP"),MENU_IMPRESSUM:vX("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:vX("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:vX("MENU_SETTINGS"),MENU_SIGN_IN:vX("MENU_SIGN_IN"),MENU_TITLE:vX("MENU_TITLE"),MENU_YOUR_DATA:vX("MENU_YOUR_DATA"),MORE_INFO:vX("MORE_INFO"),MORE_OPTIONS:vX("MORE_OPTIONS"),MUTE_VOLUME:vX("MUTE_VOLUME"),NEW_PLAYLIST:vX("NEW_PLAYLIST"),NEXT_VIDEO:vX("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:vX("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:vX("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:vX("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:vX("NOT_FOUND_TITLE"),NO_DOWNLOADS:vX("NO_DOWNLOADS"),NO_MIC_INPUT:vX("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:vX("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:vX("OOPS_MESSAGE"),OPEN_APP:vX("OPEN_APP"),OPEN_YOUTUBE:vX("OPEN_YOUTUBE"),PAUSE:vX("PAUSE"),PLAY:vX("PLAY"),PLAYER_CAPTION:vX("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:vX("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:vX("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:vX("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:vX("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:vX("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:vX("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:vX("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:vX("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:vX("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:vX("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:vX("PLAYER_MINIMIZE"),PLAYER_NEXT:vX("PLAYER_NEXT"),PLAYER_PAUSE:vX("PLAYER_PAUSE"),PLAYER_PLAY:vX("PLAYER_PLAY"),
PLAYER_PREVIOUS:vX("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:vX("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:vX("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:vX("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:vX("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:vX("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:vX("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:vX("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:vX("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:vX("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:vX("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:vX("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:vX("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:vX("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:vX("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:vX("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:vX("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:vX("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:vX("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:vX("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:vX("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:vX("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:vX("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:vX("PLAY_ALL"),PLEASE_FIX_ERRORS:vX("PLEASE_FIX_ERRORS"),PREVIOUS_VIDEO:vX("PREVIOUS_VIDEO"),PRIVACY_POLICY:vX("PRIVACY_POLICY"),RELOAD:vX("RELOAD"),REQUIRED_LABEL:vX("REQUIRED_LABEL"),SAVE_PLAYLIST:vX("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:vX("SCRUB_SLIDE_USER_EDU"),SEARCH:vX("SEARCH","Search"),SEARCH_APPEND_LABEL:vX("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:vX("SEARCH_CHANNEL"),
SEARCH_CLEAR_LABEL:vX("SEARCH_CLEAR_LABEL"),SEARCH_FILTERS_LABEL:vX("SEARCH_FILTERS_LABEL"),SEARCH_LABEL:vX("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:vX("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:vX("SEEK_SLIDER"),SETTINGS_LABEL:vX("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:vX("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:vX("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:vX("SHOW_LESS"),SHOW_MORE:vX("SHOW_MORE"),SHOW_PLAYER_CONTROLS:vX("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:vX("SHOW_PLAYLIST_VIDEOS"),
SHOW_SEARCH_FILTERS_LABEL:vX("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:vX("SIGN_IN_LABEL"),SIGN_IN_ON_WEB:vX("SIGN_IN_ON_WEB"),STABLE_VOLUME:vX("STABLE_VOLUME"),STABLE_VOLUME_OFF:vX("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:vX("STABLE_VOLUME_ON"),STATS_FOR_NERDS:vX("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:vX("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:vX("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:vX("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_LABEL:vX("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:vX("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:vX("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:vX("TIMESTAMP_SECONDS"),TOGGLE_OFF:vX("TOGGLE_OFF"),TOGGLE_ON:vX("TOGGLE_ON"),TRENDING:vX("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:vX("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:vX("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:vX("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:vX("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:vX("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:vX("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:vX("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:vX("VIDEO_LINK_LABEL")};var Grc=_.Rr(function(a){var b=a.playerApi;a=_.Pl(function(e){mX(e,36843)});
var c=vX("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"}),d=_.lt(function(){nX(36843);b&&b().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1});
return _.q("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.q("button",{el:a,class:"ytPlayerControlsJumpForwardButtonButton",title:c,"aria-label":c,"on:click":d},_.q("span",null,_.q(_.qt,{icon:"FAST_FORWARD"}))))},"jf");var Hrc=_.Rr(function(a){var b=a.appApi;a=_.Pl(function(e){mX(e,62946)});
var c=vX("OPEN_IN_MINIPLAYER"),d=_.lt(function(){nX(62946);var e,g;(g=(e=b()).openInMiniplayer)==null||g.call(e);return!1});
return _.q("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.q("button",{el:a,class:"ytMiniplayerButtonButton",title:c,"aria-label":c,"on:click":d},_.q(_.qt,{icon:"PICTURE_IN_PICTURE",active:!1})))},"kf");var Irc=_.Rr(function(a){var b=a.playerApi;a=_.Pl(function(k){mX(k,142812)});
var c=_.h(_.ih(!1,void 0,"I3VCyb")),d=c.next().value,e=c.next().value;c=function(){return vX("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(d()?1:2)})};
var g=_.lt(function(){nX(142812);if(b){var k=b(),m=d();k.setPlaybackRate(m?1:2);e(!d())}return!1});
return _.q("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.q("button",{el:a,class:"ytPlaybackSpeedButtonButton",title:c,"aria-label":c,"on:click":g},_.q("span",null,_.q(_.qt,{icon:function(){return d()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"lf");var Jrc=_.Rr(function(a){var b=a.title;var c=a.ariaLabel;var d=a.icon;var e=a.command;var g=a.veType;a=_.Pl(function(m){g&&mX(m,g())});
var k=_.lt(function(){g&&nX(g());e&&_.v().resolve(_.Yi).resolveCommand(e())});
return _.q("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.q("button",{el:a,class:"ytdThumbnailOverlayButtonButton",title:b,"aria-label":c,"on:click":k},_.q(_.qt,{icon:d})))},"mf");var Krc=["en-CA","en","es-MX","fr-CA"];var Lrc=_.Rr(function(a){var b=_.Or(a,{isOverlay:!1}),c=b.captionIconType,d=b.onClick;a=b.ariaLabel;var e=b.ariaPressed,g=b.isOverlay;b=_.Pl(function(n){mX(n,127299)});
var k=_.lt(function(n){nX(127299);d==null||d(n);return!1}),m={};
return _.q("ytm-closed-captioning-button",{class:_.et("ytmClosedCaptioningButtonHost",(m.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return c()===-1&&g()},m.ytmClosedCaptioningButtonIconDisabled=function(){return c()===-1&&!g()},m))},_.q("button",{el:b,
class:"ytmClosedCaptioningButtonButton",title:a,"aria-label":a,"aria-pressed":e,"on:click":k},_.q(_.qt,{icon:function(){var n="";var r=_.yo().get("hl");r=!r||Krc.includes(r)?"CLOSED_CAPTION":"SUBTITLES";var t=c();switch(t){case -1:case 0:n=r;break;case 1:n=r+"_FILLED";break;default:_.Wb(t)}return n}})))},"nf");
Lrc.idomCompat={callbacks:{onClick:!0}};var lX="";var Mrc=_.Rr(function(a){var b=a.playerControlsProps,c=a.onClickFn;a=_.ph(function(){var g=b(),k=-1;g.captionsAvailable&&(k=g.captionsEnabled?1:0);return k},void 0,"WecR8e");
var d=_.ph(function(){var g=b();return g.captionsAvailable?_.vo(g.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.vo("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),e=_.ph(function(){var g=b();
g=g.captionsAvailable?g.captionsEnabled:void 0;return g},void 0,"Q17ly");
return _.q("yt-closed-captions-toggle-button",null,_.q(Lrc,{captionIconType:a,ariaLabel:d,ariaPressed:e,onClick:function(g){var k=b();if(k.captionsAvailable){var m=k.playerApi;if(m){var n=k.playerApi;if(n){var r=lX;if(r){n=n.getOption("captions","track");var t;lX=(t=n?n.displayName:null)!=null?t:r}else n.getOptions("captions")?(r=Wmc(n),lX=r.length?(t=Xmc(r))?t.displayName:r[0].displayName:""):lX=""}Ymc(m);_.w("mweb_disable_set_state_captions_killswitch")&&k.setState({captionsEnabled:!k.captionsEnabled})}}var u,
x;(x=(u=k.appApi).showCaptionsToggleToast)==null||x.call(u,k);c==null||c(g)},
isOverlay:!0}))},"of");var Nrc=_.Rr(function(a){var b=a.data;return _.q("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.q(_.iv,{data:function(){return{type:16,text:_.k1a(b().label)}}}))},"pf");var Orc=_.Rr(function(a){var b=_.et("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return a.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return a.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return a.size()==="small"?a.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
a.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.q("animated-seek-arrows",{class:_.et("ytPlayerControlsAnimatedSeekArrowsHost")},_.q("span",{class:b}),_.q("span",{class:b}),_.q("span",{class:b}))},"qf");
Orc.idomCompat=!0;var Prc=_.Rr(function(){var a=_.vo("PLAYER_SECONDS",{seconds_placeholder:"30"}),b=_.h(_.ih(!1,void 0,"Yj8msb")),c=b.next().value,d=b.next().value,e=_.h(_.ih(!1,void 0,"r9Z50e"));b=e.next().value;var g=e.next().value;e={};var k=_.et("jumpForwardOverlayOverlay",(e.jumpForwardOverlayOverlayHidden=b,e));_.wi(function(){var m=null,n=null,r=function(){m!==null&&_.Qw().cancelJob(m);n!==null&&_.Qw().cancelJob(n);g(!0);d(!0);_.Ys(_.Qw(),function(){g(!1)});
m=_.Ys(_.Qw(),function(){g(!0);n=_.Ys(_.Qw(),function(){d(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",r);_.zh(function(){window.removeEventListener("jump-forward-clicked",r)})});
return _.q("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.q(_.qi,{cond:c,then:function(){return _.q("div",{class:k},_.q(Orc,{direction:1,size:"large"}),_.q("div",null,a))}}))},"rf");var yoc=_.dY.MUTE_VOLUME,xoc=_.dY.UNMUTE_VOLUME,Qrc=_.Rr(function(a){var b=a.muteIconType;var c=a.onClick;var d=a.useOutlineIcon;a=_.Pl(function(k){mX(k,28662)});
var e=function(){return zoc(b(),d==null?void 0:d()).ariaLabel},g=_.lt(function(k){nX(28662);
c==null||c(k);return!1});
return _.q("ytm-mute-button",{class:"ytmMuteButtonHost"},_.q("button",{el:a,class:"ytmMuteButtonButton",title:e,"aria-label":e,"on:click":g},_.q("span",null,_.q(_.qt,{icon:function(){return zoc(b(),d==null?void 0:d()).iconName}}))))},"sf");var Rrc=_.Rr(function(a){var b=a.volumeProps;var c=a.onClickFn;var d=a.useOutlineIcon;return _.q("yt-mute-toggle-button",null,_.q(Qrc,{muteIconType:function(){var e=b(),g=!_.w("mweb_treat_zero_volume_as_muted_killswitch")&&e.volume===0;return e.volumeMuted||g?0:1},
onClick:function(e){var g=b().playerApi;g&&(g.isMuted()?g.unMute():g.mute(!1));c==null||c(e)},
useOutlineIcon:function(){return!(d==null||!d())}}))},"tf");
Rrc.idomCompat=!0;var Src=_.Rr(function(a){var b=a.data;var c=_.Pl();a=_.lt(function(){c.value.classList.add("ytmPaidContentOverlayHidden");return!1});
return _.q("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:c,"on:animationend":a},_.q(_.rt,{command:function(){return b().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.q(_.qi,{cond:function(){var d;return(d=b().icon)==null?void 0:d.iconType},
then:function(){return _.q("span",null,_.q(_.qt,{icon:function(){var d;return(d=b().icon)==null?void 0:d.iconType}}))}}),_.q("div",{class:"ytmPaidContentOverlayText"},_.q(_.tt,{text:function(){return b().text}})),_.q(_.qi,{cond:function(){return b().navigationEndpoint},
then:function(){return _.q(_.qt,{icon:"CHEVRON_RIGHT"})}})))},"uf");
Src.idomCompat=!0;var Aoc=[].concat(_.De([{register:function(a){var b=Koc(a),c;(c=a().playerApi)==null||c.addEventListener("onVolumeChange",b);return function(){}}},
{register:function(a){var b=Loc(a);a=a().playerApi;a==null||a.addEventListener("captionschanged",b);a==null||a.addEventListener("captionssettingschanged",b);a==null||a.addEventListener("onCaptionsTrackListChanged",b);return function(){}}},
{register:function(a){if(!_.w("mweb_screenreader_accessible_player"))return function(){};
var b=Moc(a),c=document.querySelector("video");c==null||c.addEventListener("touchend",b);return function(){c==null||c.removeEventListener("touchend",b)}}},
{register:function(a){if(!_.w("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var b=Moc(a),c=document.querySelector("video");c==null||c.addEventListener("focus",b);return function(){c==null||c.removeEventListener("focus",b)}}}]),[{register:function(a){var b=Goc(a),c;
(c=a().playerApi)==null||c.addEventListener("onStateChange",b);return function(){}}},
{register:function(a){var b=Hoc(a),c;(c=a().playerApi)==null||c.addEventListener("onPlaybackRateChange",b);return function(){}}},
{register:function(a){var b=Ioc(a),c;(c=a().playerApi)==null||c.addEventListener("onVideoDataChange",b);return function(){}}},
{register:function(a){var b=Joc(a),c,d;(c=a())==null||(d=c.playerApi)==null||d.addEventListener("onVideoProgress",b);return function(){}}}]);var Trc=_.Rr(function(a){var b=a.data;var c=function(){return _.vo("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+b().playbackRate})};
return _.q(_.qi,{cond:function(){return b().playbackRate&&b().playbackRate!==1},
then:function(){return _.q("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.q("div",{class:"ytPlaybackRateOverlayOverlay"},_.q(Orc,{direction:1,size:"small"}),_.q("div",{class:"ytPlaybackRateOverlayLabel"},c)))}})},"vf");var Urc=_.Rr(function(a){var b=a.data;return _.q("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.q(_.qi,{cond:function(){var c,d=(c=b())==null?void 0:c.playerResponse,e;return d==null?void 0:(e=d.paidContentOverlay)==null?void 0:e.paidContentOverlayRenderer},
then:function(c){return _.q(Src,{data:c})}}))},"xf"),Vrc=_.Rr(function(a){var b=a.props;
var c=a.data;var d=a.options;var e=function(){var r,t,u,x;return(r=c())==null?void 0:(t=r.playerResponse)==null?void 0:(u=t.playerConfig)==null?void 0:(x=u.inlinePlaybackConfig)==null?void 0:x.showAudioControls},g=function(){var r,t;
if(e()&&((r=d())==null?void 0:(t=r.additionalButton)==null?void 0:t.button)!==void 0){var u,x,A;r=(u=c())==null?void 0:(x=u.playerApi)==null?void 0:(A=x.getSize())==null?void 0:A.height;if(!(r===void 0||r<184)){var C,F;return(C=d())==null?void 0:(F=C.additionalButton)==null?void 0:F.button}}},k=function(){var r,t;
return(r=d())==null?void 0:(t=r.additionalButton)==null?void 0:t.thumbnailOverlayButtonRenderers},m=function(){var r,t;
return(r=d())==null?void 0:(t=r.additionalButton)==null?void 0:t.thumbnailOverlayButtonViewModels},n=function(){var r=[_.q(Rrc,{volumeProps:b}),
_.q(Mrc,{playerControlsProps:b})];g()===1&&r.push(_.q(Grc,{playerApi:function(){return b().playerApi}}));
g()===2&&r.push(_.q(Hrc,{appApi:function(){return b().appApi}}));
g()===3&&r.push(_.q(Irc,{playerApi:function(){return b().playerApi}}));
var t=k();if(g()===4&&t){t=_.h(t);for(var u=t.next(),x={};!u.done;x={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$55:void 0,command$jscomp$563:void 0},u=t.next()){u=u.value;x.tooltip$jscomp$2=u.tooltip;var A=void 0,C=void 0;x.ariaLabel$jscomp$20=((A=u.accessibility)==null?void 0:(C=A.accessibilityData)==null?void 0:C.label)||x.tooltip$jscomp$2;A=void 0;x.icon$jscomp$55=(A=u.icon)==null?void 0:A.iconType;x.command$jscomp$563=u.command;x.tooltip$jscomp$2&&x.ariaLabel$jscomp$20&&x.icon$jscomp$55&&
r.push(_.q(Jrc,{title:function(F){return function(){return F.tooltip$jscomp$2}}(x),
ariaLabel:function(F){return function(){return F.ariaLabel$jscomp$20}}(x),
icon:function(F){return function(){return F.icon$jscomp$55}}(x),
command:function(F){return function(){return F.command$jscomp$563}}(x)}))}}t=m();
if(g()===4&&t)for(t=_.h(t),u=t.next(),x={};!u.done;x={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$56:void 0,command$jscomp$564:void 0},u=t.next())u=u.value,x.tooltip$jscomp$3=u.title,x.ariaLabel$jscomp$21=u.accessibilityText||x.tooltip$jscomp$3,x.icon$jscomp$56=u.iconName,x.command$jscomp$564=_.Ds(u.onTap),x.tooltip$jscomp$3&&x.ariaLabel$jscomp$21&&x.icon$jscomp$56&&r.push(_.q(Jrc,{title:function(F){return function(){return F.tooltip$jscomp$3}}(x),
ariaLabel:function(F){return function(){return F.ariaLabel$jscomp$21}}(x),
icon:function(F){return function(){return F.icon$jscomp$56}}(x),
command:function(F){return function(){return F.command$jscomp$564}}(x)}));
return r};
return _.q(_.qi,{cond:e,then:function(){return _.q("div",{class:"ytInlinePlayerControlsTopRightControls"},_.q(_.ri,{each:n},function(r){return _.q("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.q("div",{class:"ytInlinePlayerControlsButtonIcon"},r))}))}})},"yf"),Yrc=_.Rr(function(a){var b=a.props;
var c=a.data;var d=a.options;a={};a=_.et("ytInlinePlayerControlsBottomRightControls",(a.ytInlinePlayerControlsBottomRightControlsHidden=function(){var e;return Ooc(c(),d())&&((e=d())==null?void 0:e.insetProgressBar)&&(b().isHovering||b().isDragging)},a));
return _.q("div",{class:a},_.q(Wrc,{data:c}),_.q(_.qi,{cond:function(){var e;return!((e=d())==null?0:e.hideTimeDisplay)},
then:function(){return _.q(Xrc,{props:b})}}))},"zf"),Wrc=_.Rr(function(a){var b=a.data;
return _.q(_.Hu,{data:function(){var c;return woc((c=b())==null?void 0:c.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:Nrc})},"Af"),Xrc=_.Rr(function(a){var b=a.props;
return _.q(_.qi,{cond:function(){return b().isLive},
then:function(){return _.q(Zrc,null)},
else:function(){return _.q($rc,{props:b})}})},"Bf"),$rc=_.Rr(function(a){var b=a.props;
return _.q("div",{class:_.et("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.dY.PLAYER_TIME_ELAPSED+" "+_.D7a(b().playedTime)}},_.q(_.iv,{data:function(){return{type:16,
text:_.D7a(b().videoDuration-b().playedTime)}}}))},"Cf"),Zrc=_.Rr(function(){return _.q("div",{class:_.et("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.q(_.iv,{data:{type:17,
text:_.dY.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"Df"),asc=_.Rr(function(a){var b=a.props;
var c=a.data;var d=a.options;return _.q(_.Akc,{progressBarProps:b,config:function(){var e,g=_.y((e=c())==null?void 0:e.multiMarkersPlayerBar,_.PFb),k;e=((k=d())==null?0:k.insetProgressBar)?2:1;var m;k=(m=d())==null?void 0:m.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:e,chapterData:g,isInlinePlayback:!0,doSeekOnClick:k,playheadDotBehavior:k?1:0}}})},"Ef");_.Ts(_.Rr(function(a){var b=a.data;var c=a.appApi;var d=a.options;var e=Foc(b,Noc(c));a={};c={};return _.q("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.q("div",{class:_.et("ytInlinePlayerControlsDarkenedOverlay",(a.ytInlinePlayerControlsDarkenedOverlayShow=function(){return e().isHovering},a))}),_.q(Prc,null),_.q(Trc,{data:e}),_.q(Urc,{data:b}),_.q(Frc,{playerControlsProps:e,
isShortsPage:!1}),_.q("div",{class:_.et((c.ytInlinePlayerControlsControlsHidden=function(){return e().isDragging},c))},_.q(Vrc,{props:e,
data:b,options:d}),_.q(Yrc,{props:e,data:b,options:d})),_.q(_.qi,{cond:function(){return Ooc(b(),d())},
then:function(){return _.q(asc,{props:e,data:b,options:d})}}))},"wf"),"yt-inline-player-controls",{props:{data:_.VG,
appApi:_.Ss,options:_.VG}});var eY,bsc=function(){var a=_.P.apply(this,arguments)||this;a.opts=null;a.playerControlsData=null;a.playerControlsAppApi={openInMiniplayer:function(){a.openInMiniplayer()}};
a.playerControlsOptions={};a.noAnimation=!1;a.playbackIntentTriggered=!1;a.positionData=null;a.hidden=!0;a.active=!1;a.playing=!1;a.videoPreviewDataIndex=0;a.JSC$16707_playerPromise=null;a.player=null;a.enableAudioControls=!1;a.hasBeenUnmuted=!1;a.captionsHaveBeenTurnedOff=!1;a.JSC$16707_playerEvents=new Map;a.videoPreviewFetchRequest=null;a.scheduledPreviewEndJobId=null;a.JSC$16707_preventProgressSaveTimer=null;a.watchEndpointStartTimeUpdaterInterval=null;a.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};a.windowOnBlurFn=function(){a.deactivate()};
return a};
_.z(bsc,_.P);_.f=bsc.prototype;
_.f.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.w("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.f.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16707_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16707_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16707_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16707_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.gr(this,this.onPageTypeChange));this.pagePath=location.pathname};
_.f.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn)};
_.f.onPageTypeChange=function(){this.deactivate()};
_.f.onWindowResized=function(){this.deactivate()};
_.f.onCaptionsChanged=function(a){a=!!a.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!a);this.setCaptionSize()};
_.f.setCaptionSize=function(){var a;if(this.active&&!this.captionsHaveBeenTurnedOff&&((a=this.player)==null?0:a.getCaptionWindowContainerId())){var b;(b=this.player)==null||b.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.f.currentPageAllowed=function(){return!this.isWatchPage};
_.f.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var a=this.positionData,b=a.initialTopPosition,c=a.initialHorizontalPosition;_.fr(this.hostElement,{"--ytd-video-preview-translate-left":a.finalHorizontalPosition-c+"px","--ytd-video-preview-translate-top":a.finalTopPosition-b+"px","--ytd-video-preview-original-top-position":b+"px","--ytd-video-preview-original-horizontal-position":c+"px",
"--ytd-video-preview-initial-scale":"scale("+a.initialScale+")","--ytd-video-preview-width":a.videoPreviewWidth+"px","--ytd-video-preview-height":a.videoPreviewHeight+"px"});return!0};
_.f.handleOpenVideoPreviewAction=function(a){var b=this,c;return _.l(function(d){if(!b.currentPageAllowed())return d.return(0);b.opts=a;return(c=b.alignVideoPreviewForAnimation(a.thumbnail))?d.return(b.activate()):d.return(0)})};
_.f.onMouseLeave=function(a){this.shouldDeactivateOnMouseLeave(a)&&this.deactivate()};
_.f.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.zk.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.f.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.f.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",eY.JSC$16706_DEFAULT_CLICK_LOCATION_BEHAVIOR,eY.JSC$16706_CLICK_LOCATION_ID_MAP)};
_.f.shouldDeactivateOnMouseLeave=function(a){a=a.relatedTarget;if(!a)return!0;var b;return(b=this.opts)!=null&&b.mediaRenderer?!_.ar(this.opts.mediaRenderer).contains(a):!0};
_.f.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.f.onPlaybackStart=function(){var a=this;if(this.player&&this.playbackIntentTriggered&&this.currentPageAllowed()){this.playing=!0;this.allowUnmuting()&&this.hasBeenUnmuted&&(this.player.unMute(),this.player.syncVolume());this.player.isSubtitlesOn()?this.captionsHaveBeenTurnedOff||!this.allowCaptions()?this.player.toggleSubtitles():this.setCaptionSize():!this.captionsHaveBeenTurnedOff&&this.allowCaptions()&&this.player.toggleSubtitles();this.resetPreventProgressSaveTimer();this.JSC$16707_preventProgressSaveTimer=
_.Ys(_.zk,function(){a.resetPreventProgressSaveTimer()},1E4);
var b;if((b=this.opts)==null?0:b.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.Ys(_.zk,function(){a.hasMultipleVideoPreviews()?a.startPlaybackForNextVideo():a.deactivate()},this.opts.videoPreviewDurationMs);
var c;this.player.setGlobalCrop(((c=this.opts)==null?0:c.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.f.getRoundedCornersSize=function(){var a;if((a=this.opts)==null?0:a.roundedCornersSize){var b;return(b=this.opts)==null?void 0:b.roundedCornersSize}var c;if((c=this.opts)==null?0:c.enableRounding){var d;if(((d=this.opts)==null?void 0:d.thumbnailSize)==="small")return 1;var e;if(((e=this.opts)==null?void 0:e.thumbnailSize)==="medium")return 2;var g;if(((g=this.opts)==null?void 0:g.thumbnailSize)==="large")return 3}return _.w("web_imp_inset_progress_bar")?3:0};
_.f.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.f.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.f.onMediaContainerClick=function(a){this.isShortcutClick(a)||(this.navigateToWatch(a),a.preventDefault(),a.stopPropagation())};
_.f.activate=function(){var a=this,b,c,d,e,g,k,m,n;return _.l(function(r){switch(r.nextAddress){case 1:if(!a.currentPageAllowed())return r.return(0);c=(b=a.videoPreviewData)==null?void 0:b.inlinePlaybackEndpoint;d=_.Pt.instance;if(!c||!d)return r.return(0);a.playbackIntentTriggered=!0;((e=a.opts)==null?0:e.mediaRenderer)&&voc(a.opts.mediaRenderer,function(){a.deactivate()});
_.Qm(a,function(){a.revealPreviewUi()});
g={};_.w("enable_unknown_lact_fix_on_html5")&&(_.v().resolve(_.Ct),g.lact=_.Yk());a.videoPreviewFetchRequest=poc(d,a.getInlinePlaybackRequestData(a.videoPreviewData),g);_.pe(r,2);return _.p(r,a.videoPreviewFetchRequest,4);case 4:k=r.yieldResult;if(((m=k)==null?void 0:(n=m.playabilityStatus)==null?void 0:n.status)==="OK")return r.return(a.handlePlayerResponse(k));throw Error("Lj");case 2:_.te(r),a.deactivate();case 3:return r.return(1)}})};
_.f.getInlinePlaybackRequestData=function(a){var b,c=_.w("web_imp_player_mute_params")?((b=this.opts)==null?void 0:b.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:a.inlinePlaybackEndpoint,startPlaybackInMutedState:c}};
_.f.handlePlayerResponse=function(a){var b=this,c,d,e,g,k,m,n,r,t,u;return _.l(function(x){if(x.nextAddress==1){c=b.getInlinePlaybackVideoId();if(!(((d=a)==null?0:(e=d.videoDetails)==null?0:e.videoId)&&b.currentPageAllowed()&&b.playbackIntentTriggered&&b.opts&&c))return b.deactivate(),x.return(0);if(a.videoDetails.videoId!==c)return x.return(0);b.enableAudioControls=!!((g=a.playerConfig)==null?0:(k=g.inlinePlaybackConfig)==null?0:k.showAudioControls);a.trackingParams=b.getInlinePlaybackTrackingParams();
if(!b.inlinePlayer)return x.return(0);m={};if(r=_.y((n=b.videoPreviewData)==null?void 0:n.inlinePlaybackEndpoint,_.Un))m.watch_endpoint=r;if(b.videoPreviewData){var A,C=(A=_.y(b.videoPreviewData.inlinePlaybackEndpoint,_.Un))==null?void 0:A.startTimeSeconds;C!==void 0&&(a.playerConfig||(a.playerConfig={}),a.playerConfig.playbackStartConfig||(a.playerConfig.playbackStartConfig={}),a.playerConfig.playbackStartConfig.startPosition||(a.playerConfig.playbackStartConfig.startPosition={}),a.playerConfig.playbackStartConfig.startSeconds=
C,a.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(C*1E3))}b.inlinePlayer.loadVideoWithPlayerResponse(a,m);if(b.JSC$16707_playerPromise)return x.jumpTo(2);b.JSC$16707_playerPromise=b.inlinePlayer.getPlayerPromise();return _.p(x,b.JSC$16707_playerPromise,3)}x.nextAddress!=2&&(t=x.yieldResult,t.setInlinePreview(!0),t.setSizeStyle(!1,!0),b.ytPlayerListenerBehavior.listenToPlayerEvents(t,b.JSC$16707_playerEvents),b.player=t,_.io(b.hostElement,"player-api-ready"));((u=b.opts)==
null?0:u.showPlayerControls)&&b.videoPreviewData&&b.player&&(b.playerControlsData={playerResponse:a,isInlinePlayback:!0,thumbnailOverlays:b.videoPreviewData.thumbnailOverlays,playerApi:b.player},b.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!b.unroundCornersForPlayback,additionalButton:b.getAdditionalButtonType(b.videoPreviewData.thumbnailOverlays)});return x.return(2)})};
_.f.revealPreviewUi=function(){var a=this;this.playbackIntentTriggered&&_.txa(this,function(){a.hasThumbnailPositionChangedSinceTriggered()||(a.updateActiveState(!0),a.noAnimation=!1)})};
_.f.hasThumbnailPositionChangedSinceTriggered=function(){var a=this.positionData,b=this.getThumbnailPositionData();return(a==null?void 0:a.initialTopPosition)!==(b==null?void 0:b.initialTopPosition)||(a==null?void 0:a.initialHorizontalPosition)!==(b==null?void 0:b.initialHorizontalPosition)};
_.f.getThumbnailPositionData=function(){var a,b;if((b=this.opts)==null||!b.thumbnail)return null;b=this.opts.thumbnail;var c=((a=this.opts)==null?0:a.cropPlayerToFillThumbnailHorizontally)?!1:!0;var d=b.getBoundingClientRect();a=d.width;b=d.height;var e=d.top+window.scrollY;d=d.left+window.scrollX;var g=c?Math.ceil(a):a;c=c?Math.ceil(b):b;var k=a/g;a={initialScale:k,initialTopPosition:e-12*k,finalTopPosition:e-12-(c-b)/2,initialHorizontalPosition:d-(12+(g-a)/2),finalHorizontalPosition:d-12-(g-a)/
2,videoPreviewWidth:g,videoPreviewHeight:c};return a};
_.f.updateActiveState=function(a){this.active=a;this.ytdReduxBehavior.dispatch(_.hp({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:a}))};
_.f.stopPlayer=function(a){a=a.resetWatchEndpointStartTime===void 0?!1:a.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(a)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.zk.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.f.deactivate=function(a){a=a===void 0?{}:a;a=a.resetWatchEndpointStartTime===void 0?!1:a.resetWatchEndpointStartTime;uX&&(uX.disconnect(),uX=null);this.stopPlayer({resetWatchEndpointStartTime:a});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.f.isValidThumbnailOverlayButton=function(a,b){a=a.thumbnailOverlayButtonRenderer;var c;return!!a&&!!a.tooltip&&!((c=a.icon)==null||!c.iconType)&&b.includes(a.icon.iconType)};
_.f.isValidThumbnailOverlayButtonViewModel=function(a,b){var c;a=_.y((c=a.thumbnailOverlayButtonViewModel)==null?void 0:c.overlayButton,_.Iu);return!!a&&!!a.title&&!!a.iconName&&b.includes(a.iconName)};
_.f.getAdditionalButtonType=function(a){var b=this;if(_.w("web_imp_fastforward_button"))return{button:1};if(_.w("web_imp_miniplayer_button"))return{button:2};if(_.w("web_imp_playback_speed_button"))return{button:3};var c=["AUTO_AWESOME"],d=(a||[]).filter(function(g){return b.isValidThumbnailOverlayButton(g,c)}).map(function(g){return g.thumbnailOverlayButtonRenderer});
if(d.length)return{button:4,thumbnailOverlayButtonRenderers:d};var e=["AUTO_AWESOME"];a=(a||[]).filter(function(g){return b.isValidThumbnailOverlayButtonViewModel(g,e)}).map(function(g){return _.y(g.thumbnailOverlayButtonViewModel.overlayButton,_.Iu)});
if(a.length)return{button:4,thumbnailOverlayButtonViewModels:a}};
_.f.allowCaptions=function(){var a;return!((a=this.opts)==null?0:a.forceCaptionsOff)};
_.f.allowUnmuting=function(){var a;return this.enableAudioControls&&!((a=this.opts)==null?0:a.forceMutedVolume)};
_.f.beginStartTimeUpdater=function(){var a=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.ej(function(){a.updateWatchEndpointStartTime()},1E3)};
_.f.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.f.resetPreventProgressSaveTimer=function(){this.JSC$16707_preventProgressSaveTimer!==null&&(_.zk.cancelJob(this.JSC$16707_preventProgressSaveTimer),this.JSC$16707_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.f.updateWatchEndpointStartTime=function(a){var b=this.videoPreviewData;if(this.player&&b!=null&&b.inlinePlaybackEndpoint&&!this.JSC$16707_preventProgressSaveTimer){a=a?0:Math.floor(this.player.getCurrentTime());var c=_.y(b.navigationEndpoint,_.Un);c&&(c.startTimeSeconds=a);if(b=_.y(b.inlinePlaybackEndpoint,_.Un))b.startTimeSeconds=a}};
_.f.isShortcutClick=function(a){return!!a&&(a.ctrlKey||a.shiftKey||a.metaKey)};
_.f.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.f.openInMiniplayer=function(){var a=this,b,c;return _.l(function(d){if(d.nextAddress==1){c=(b=a.videoPreviewData)==null?void 0:b.navigationEndpoint;if(!c)return d.return();_.xF().lockupActivation=!0;return _.p(d,_.d9b(_.v().resolve(_.$w),c),2)}_.xF().userActivation=!0;_.ue(d)})};
_.f.navigateToWatch=function(a){var b,c=(b=this.videoPreviewData)==null?void 0:b.navigationEndpoint;if(c){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(c,a,!0);else{if(_.w("web_thumbnail_to_watch_transition")){var d,e;(d=this.opts)==null||(e=d.onNavigateToWatchCallback)==null||e.call(d)}_.io(this.hostElement,"yt-navigate",{endpoint:c})}this.deactivate()}};
_.f.getInlinePlaybackVideoId=function(){var a,b;return(b=_.y((a=this.videoPreviewData)==null?void 0:a.inlinePlaybackEndpoint,_.Un))==null?void 0:b.videoId};
_.f.getInlinePlaybackTrackingParams=function(){var a,b;return(a=this.videoPreviewData)==null?void 0:(b=a.inlinePlaybackEndpoint)==null?void 0:b.clickTrackingParams};
_.f.hasMultipleVideoPreviews=function(){var a;return!!(((a=this.opts)==null?0:a.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.f.startPlaybackForNextVideo=function(){var a;(a=this.opts)!=null&&a.videoPreviewData&&Array.isArray(this.opts.videoPreviewData)&&this.opts.videoPreviewData.length!==0&&(this.videoPreviewDataIndex=(this.videoPreviewDataIndex+1)%this.opts.videoPreviewData.length,this.stopPlayer({resetWatchEndpointStartTime:!0}),this.activate())};
_.Um.Object.defineProperties(bsc.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.opts)==null?0:a.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.opts)==null||!a.isAdsVideo)}},
roundedCornersSmall:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===1}},
roundedCornersMedium:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===2}},
roundedCornersLarge:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===3}},
unroundCornersForPlayback:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===0}},
videoPreviewData:{configurable:!0,enumerable:!0,get:function(){var a;if(Array.isArray((a=this.opts)==null?void 0:a.videoPreviewData)){var b;return(b=this.opts)==null?void 0:b.videoPreviewData[this.videoPreviewDataIndex]}var c;return(c=this.opts)==null?void 0:c.videoPreviewData}}});
var fY=eY=bsc;eY.prototype.onIsAdsVideoChange=eY.prototype.onIsAdsVideoChange;eY.prototype.onInlinePreviewIsEnabledChange=eY.prototype.onInlinePreviewIsEnabledChange;eY.prototype.optsChanged=eY.prototype.optsChanged;eY.prototype.onMouseLeave=eY.prototype.onMouseLeave;fY.JSC$16706_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);fY.JSC$16706_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],fY.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],fY.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bJ.YtPlayerListenerBehavior),_.W("design:type",_.cJ)],fY.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],fY.prototype,"componentBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],fY.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],fY.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.jJ.YtSparklesClickLocationBehavior),_.W("design:type",Object)],fY.prototype,"ytSparklesClickLocationBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],fY.prototype,"opts",void 0);_.U([_.O(),_.W("design:type",Object)],fY.prototype,"playerControlsData",void 0);
_.U([_.O(),_.W("design:type",Object)],fY.prototype,"playerControlsAppApi",void 0);_.U([_.O(),_.W("design:type",Object)],fY.prototype,"playerControlsOptions",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],fY.prototype,"noAnimation",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],fY.prototype,"hidden",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],fY.prototype,"active",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],fY.prototype,"playing",void 0);_.U([_.O({selector:_.AFa}),_.W("design:type",Boolean)],fY.prototype,"inlinePreviewIsEnabled",void 0);_.U([_.O(),_.W("design:type",String)],fY.prototype,"pagePath",void 0);_.U([_.O({selector:_.Ip}),_.W("design:type",Boolean)],fY.prototype,"isWatchPage",void 0);_.U([_.K("videoPreviewData"),_.W("design:type",Object),_.W("design:paramtypes",[])],fY.prototype,"thumbnailData",null);
_.U([_.K("opts","active"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],fY.prototype,"hidePlayerControls",null);_.U([_.K("opts"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],fY.prototype,"isAdsVideo",null);_.U([_.K("opts"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],fY.prototype,"roundedCornersSmall",null);
_.U([_.K("opts"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],fY.prototype,"roundedCornersMedium",null);_.U([_.K("opts"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],fY.prototype,"roundedCornersLarge",null);_.U([_.K("opts"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],fY.prototype,"unroundCornersForPlayback",null);
_.U([_.K("opts","videoPreviewDataIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],fY.prototype,"videoPreviewData",null);_.U([_.O(),_.W("design:type",Object)],fY.prototype,"videoPreviewDataIndex",void 0);_.U([_.ir("#inline-player"),_.W("design:type",Object)],fY.prototype,"inlinePlayer",void 0);_.U([_.M("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[MouseEvent]),_.W("design:returntype")],fY.prototype,"onMouseLeave",null);
_.U([_.mr("opts"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fY.prototype,"optsChanged",null);_.U([_.mr("inlinePreviewIsEnabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fY.prototype,"onInlinePreviewIsEnabledChange",null);_.U([_.N("isAdsVideo"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fY.prototype,"onIsAdsVideoChange",null);
fY=eY=_.U([_.Q({is:"ytd-video-preview",disableElementRegistration:!0})],fY);
_.S(fY,"ytd-video-preview",function(){if(Erc!==void 0)return Erc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-preview--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview-container" class="style-scope ytd-video-preview">\n  <div id="endorsement" class="style-scope ytd-video-preview"></div>\n  <div id="media-container" class="style-scope ytd-video-preview">\n    <a id="media-container-link" class="yt-simple-endpoint style-scope ytd-video-preview" href$="[[computeHref_(videoPreviewData.navigationEndpoint)]]" data="[[videoPreviewData.navigationEndpoint]]" aria-label$="[[videoPreviewData.accessibilityText]]" on-click="onMediaContainerClick">\n      <div id="thumbnail-container" class="style-scope ytd-video-preview">\n        <ytd-thumbnail data="[[thumbnailData]]" hovered="false" no-rounded-corners="" object-fit="COVER" rich-grid-thumbnail="" width="9999" class="style-scope ytd-video-preview">\n        </ytd-thumbnail>\n      </div>\n      <div id="player-container" class="style-scope ytd-video-preview">\n        <ytd-player id="inline-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_INLINE_PREVIEW" class="style-scope ytd-video-preview">\n        </ytd-player>\n      </div>\n      <div id="overlays" class="style-scope ytd-video-preview"></div>\n    </a>\n    <div id="player-controls" class="style-scope ytd-video-preview">\n      <template is="dom-if" if="[[!!playerControlsData]]" class="style-scope ytd-video-preview">\n        <yt-inline-player-controls app-api="[[playerControlsAppApi]]" data="[[playerControlsData]]" options="[[playerControlsOptions]]" class="style-scope ytd-video-preview"></yt-inline-player-controls>\n      </template>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Erc=a},{mode:2});
}catch(e){_._DumpException(e)}
try{
var Zlc;var $lc;/*

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
_.sr({_template:function(){if($lc!==void 0)return $lc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-checkbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_checkbox.tp.yt.paper.checkbox.css.js--\x3e<div id="checkboxContainer" class="style-scope tp-yt-paper-checkbox">\n  <div id="checkbox" class$="[[_computeCheckboxClass(checked, invalid)]] style-scope tp-yt-paper-checkbox">\n    <div id="checkmark" class$="[[_computeCheckmarkClass(checked)]] style-scope tp-yt-paper-checkbox"></div>\n  </div>\n</div><div id="checkboxLabel" style-target="label" class="style-scope tp-yt-paper-checkbox"><slot class="style-scope tp-yt-paper-checkbox"></slot></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Zlc===void 0&&(Zlc=document.createElement("template"));var d=Zlc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return $lc=a},
is:"tp-yt-paper-checkbox",behaviors:[_.Awb],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.Qm(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var a=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),b="px",c=a.match(/[A-Za-z]+$/);c!==null&&(b=c[0]);a=parseFloat(a);c=8/3*a;b==="px"&&(c=Math.floor(c),c%2!==a%2&&c++);this.updateStyles({"--paper-checkbox-ink-size":c+
b})}})},
_computeCheckboxClass:function(a,b){var c="";a&&(c+="checked ");b&&(c+="invalid");return c},
_computeCheckmarkClass:function(a){return a?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.ywb._createRipple.call(this)}});var amc=new _.X("radioButtonSurveyOptionRenderer"),bmc=new _.X("checkboxSurveyOptionRenderer");var cmc;var dmc;var emc=0,fmc=function(){var a=_.P.call(this)||this;a.selected=!1;a.isOverlay=!1;a.inputId="toggle-option-"+emc;emc++;return a};
_.z(fmc,_.P);fmc.prototype.onTap=function(){_.io(this.hostElement,"ytd-toggle-option-clicked")};
var SW=fmc;_.U([_.O(),_.W("design:type",String)],SW.prototype,"label",void 0);_.U([_.O(),_.W("design:type",String)],SW.prototype,"inputId",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],SW.prototype,"selected",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],SW.prototype,"isOverlay",void 0);SW=_.U([_.Q({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.W("design:paramtypes",[])],SW);
_.S(SW,"ytd-toggle-option-renderer",function(){if(dmc!==void 0)return dmc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<input type="checkbox" id$="[[inputId]]" checked="[[selected]]" on-click="onTap" class="style-scope ytd-toggle-option-renderer">\n<label for$="[[inputId]]" class="style-scope ytd-toggle-option-renderer">[[label]]</label>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return dmc=a},{mode:1});var gmc=function(){var a=_.P.apply(this,arguments)||this;a.isToggleOption=!1;a.isOverlay=!1;return a};
_.z(gmc,_.P);gmc.prototype.onTap=function(a){a.preventDefault();this.data&&(a=!this.data.checked,this.set("data.checked",a),_.io(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:a,value:this.data.value}))};
_.Um.Object.defineProperties(gmc.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
var TW=gmc;TW.prototype.onTap=TW.prototype.onTap;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],TW.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],TW.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],TW.prototype,"isToggleOption",void 0);_.U([_.O(),_.W("design:type",Object)],TW.prototype,"isOverlay",void 0);_.U([_.K("data.responseText"),_.W("design:type",String),_.W("design:paramtypes",[])],TW.prototype,"label",null);
_.U([_.M("ytd-toggle-option-clicked"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],TW.prototype,"onTap",null);TW=_.U([_.Q({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],TW);
_.S(TW,"ytd-checkbox-survey-option-renderer",function(){if(cmc!==void 0)return cmc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <tp-yt-paper-checkbox checked="[[data.checked]]" on-tap="onTap" class="style-scope ytd-checkbox-survey-option-renderer">\n    [[label]]\n  </tp-yt-paper-checkbox>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <ytd-toggle-option-renderer is-overlay="[[isOverlay]]" label="[[label]]" selected="[[data.checked]]" class="style-scope ytd-checkbox-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return cmc=a},{mode:1});var hmc;var imc;var jmc=function(){var a=_.P.apply(this,arguments)||this;a.checked=!1;a.isToggleOption=!1;return a};
_.z(jmc,_.P);jmc.prototype.onTap=function(){this.data&&(this.checked?_.lo(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.lo(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
var UW=jmc;UW.prototype.onTap=UW.prototype.onTap;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],UW.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],UW.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],UW.prototype,"checked",void 0);_.U([_.O(),_.W("design:type",Object)],UW.prototype,"isToggleOption",void 0);
_.U([_.M("ytd-toggle-option-clicked"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],UW.prototype,"onTap",null);UW=_.U([_.Q({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],UW);
_.S(UW,"ytd-radio-button-survey-option-renderer",function(){if(imc!==void 0)return imc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-button-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <tp-yt-paper-radio-button id="radio" checked="[[checked]]" on-click="onTap" class="style-scope ytd-radio-button-survey-option-renderer">\n    [[getSimpleString(data.option)]]\n  </tp-yt-paper-radio-button>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <ytd-toggle-option-renderer label="[[getSimpleString(data.option)]]" selected="[[checked]]" class="style-scope ytd-radio-button-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return imc=a},{mode:1});var kmc=function(){var a=_.P.apply(this,arguments)||this;a.disableAnimation=!1;a.isToggleOption=!0;a.followUpSurveyCommand=null;a.selectedRatingEndpoint=null;a.isSlimlineSurveyFollowUp=!1;a.isShortsStyle=!1;a.styleOverrideAttribute=!0;a.isDarkMode=!1;a.isSubmitted=!1;a.roundedContainer=!0;a.improveShortsResponseRate=_.w("web_improve_shorts_response_rate");a.actionMap={"ytd-inline-survey-rating-select-action":"handleInlineSurveyRatingSelect","ytd-inline-survey-option-select-action":"handleInlineSurveyOptionSelect",
"ytd-inline-survey-option-deselect-action":"handleInlineSurveyOptionDeselect","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(kmc,_.P);_.f=kmc.prototype;
_.f.configureRendererStamper=function(){return{"data.inlineContent":{id:"inline-survey-compact-video-renderer",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",properties:{isShortsStyle:"[[isShortsStyle]]"}}}},"data.response.expandableSurveyResponseRenderer.options":{id:"rating-survey",mapping:{ratingSurveyRenderer:{component:"ytd-rating-survey-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]",
showResponseRangeText:"[[isShortsStyle]]"}}}},"followUpSurveyCommand.followUpOptions":{id:"follow-up-survey-options",mapping:{checkboxSurveyOptionRenderer:{component:"ytd-checkbox-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]",isOverlay:"[[isShortsStyle]]"}},radioButtonSurveyOptionRenderer:{component:"ytd-radio-button-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]"}}}},"data.response.expandableSurveyResponseRenderer.skipButton":{id:"skip-btn-footer",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.response.expandableSurveyResponseRenderer.continueButton":{id:"continue-btn-footer",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"post-submit-message",mapping:{messageRenderer:{component:"ytd-message-renderer"}}}}};
_.f.attached=function(){var a=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(c){var d;if((d=c[0])!=null&&d.isIntersecting){_.js().reportShown(a.hostElement);var e;(e=a.intersectionObserver)==null||e.unobserve(a.hostElement)}},{rootMargin:"0px",
threshold:.6});var b;(b=this.intersectionObserver)==null||b.observe(this.hostElement)};
_.f.onDarkModeToggledAction=function(a){this.isDarkMode=a};
_.f.dataChanged=function(){var a;if(((a=this.data)==null?void 0:a.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var b;((b=this.data)==null?void 0:b.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var c,d,e,g;this.darkColorPalette=(c=this.data)==null?void 0:(d=c.inlineContent)==null?void 0:(e=d.compactVideoRenderer)==null?void 0:(g=e.thumbnail)==null?
void 0:g.darkColorPalette;var k,m,n,r;this.lightColorPalette=(k=this.data)==null?void 0:(m=k.inlineContent)==null?void 0:(n=m.compactVideoRenderer)==null?void 0:(r=n.thumbnail)==null?void 0:r.lightColorPalette;var t,u;if(((t=this.data)==null?0:(u=t.inlineContent)==null?0:u.compactVideoRenderer)&&this.isShortsStyle){var x,A,C,F;a=_.Vs((x=this.data)==null?void 0:(A=x.inlineContent)==null?void 0:(C=A.compactVideoRenderer)==null?void 0:(F=C.thumbnail)==null?void 0:F.thumbnails);_.fr(this.hostElement,
{"--yt-background-url":"url("+a+")"})}};
_.f.handleRequestCompletion=function(){this.hostElement.hidden&&_.io(this.hostElement,"yt-dismissible-item-dismissed")};
_.f.onPopupClosed=function(a){var b;((b=a.detail)==null?void 0:b.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.lo(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.f.handleInlineSurveyRatingSelect=function(a,b){var c=this;this.selectedRatingEndpoint=a;this.followUpSurveyCommand=b;this.expanded=!!a;this.getOptionRenderers().forEach(function(d,e){c.notifyPath("followUpSurveyCommand.followUpOptions."+e+".checkboxSurveyOptionRenderer.checked");c.set("followUpSurveyCommand.followUpOptions."+e+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),a=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.lo(this.hostElement,"yt-reel-non-video-content-dismissal-command",[a]))};
_.f.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.lo(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var a,b=(a=this.data)==null?void 0:a.dismissalEndpoint;b&&this.ytComponentBehavior.resolveCommand(b)}};
_.f.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.lo(this.hostElement,"yt-close-popup-action"))};
_.f.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var a=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{a=this.getOptionRenderers().filter(function(d){return d.checked});
if(a.length===0)return;a=a.map(function(d){return d.responseEndpoint})}var b=[];
a.forEach(function(d,e){e!==0&&(d=_.y(d,_.Uw))&&d.feedbackToken&&b.push(d.feedbackToken)});
if(a=a[0]){var c={};b.length>0&&(c.extra_feedback_tokens=b);this.ytComponentBehavior.resolveCommand(a,{form:c})}}};
_.f.getOptionRenderers=function(){var a=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(b){a.isSingleSelect=!!_.y(b,amc);return a.isSingleSelect?_.y(b,amc):_.y(b,bmc)}):[]};
_.f.handleInlineSurveyOptionSelect=function(a){a=this.optionSelector.indexOf(a);a!==-1&&this.optionSelector.selectIndex(a)};
_.f.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.f.maybeGetBackgroundColor=function(a){return this.isDarkMode?a.section2Color:a.section3Color};
_.f.colorPaletteChanged=function(){var a=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;a=a&&this.maybeGetBackgroundColor(a);this.dismissibleEl.style.backgroundColor=!a||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.Cq(a)};
_.Um.Object.defineProperties(kmc.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
var VW=kmc;VW.prototype.colorPaletteChanged=VW.prototype.colorPaletteChanged;VW.prototype.onPopupClosed=VW.prototype.onPopupClosed;VW.prototype.handleRequestCompletion=VW.prototype.handleRequestCompletion;VW.prototype.dataChanged=VW.prototype.dataChanged;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],VW.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],VW.prototype,"actionHandlerBehavior",void 0);
_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],VW.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],VW.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],VW.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.ir("#follow-up-survey-options"),_.W("design:type",Object)],VW.prototype,"optionSelector",void 0);_.U([_.O(),_.W("design:type",Object)],VW.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],VW.prototype,"disableAnimation",void 0);_.U([_.O(),_.W("design:type",Object)],VW.prototype,"isToggleOption",void 0);_.U([_.O(),_.W("design:type",Object)],VW.prototype,"followUpSurveyCommand",void 0);_.U([_.O(),_.W("design:type",Object)],VW.prototype,"selectedRatingEndpoint",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],VW.prototype,"expanded",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],VW.prototype,"isSlimlineSurveyFollowUp",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],VW.prototype,"isShortsStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],VW.prototype,"styleOverrideAttribute",void 0);_.U([_.O(),_.W("design:type",Boolean)],VW.prototype,"isSingleSelect",void 0);_.U([_.O(),_.W("design:type",Object)],VW.prototype,"isDarkMode",void 0);
_.U([_.O(),_.W("design:type",Object)],VW.prototype,"lightColorPalette",void 0);_.U([_.O(),_.W("design:type",Object)],VW.prototype,"darkColorPalette",void 0);_.U([_.K("selectedRatingEndpoint","isShortsStyle"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],VW.prototype,"isOptionSelected",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],VW.prototype,"roundedContainer",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],VW.prototype,"improveShortsResponseRate",void 0);_.U([_.ir("#dismissible"),_.W("design:type",HTMLElement)],VW.prototype,"dismissibleEl",void 0);_.U([_.ir("#dismiss-button yt-icon-button"),_.W("design:type",HTMLElement)],VW.prototype,"dismissButtonEl",void 0);_.U([_.ir("#inline-survey-header yt-icon-button"),_.W("design:type",HTMLElement)],VW.prototype,"inlineHeaderDismissButtonEl",void 0);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VW.prototype,"dataChanged",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VW.prototype,"handleRequestCompletion",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],VW.prototype,"onPopupClosed",null);
_.U([_.N("darkColorPalette","lightColorPalette","isDarkMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VW.prototype,"colorPaletteChanged",null);VW=_.U([_.Q({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],VW);
_.S(VW,"ytd-inline-survey-renderer",function(){if(hmc!==void 0)return hmc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-inline-survey-renderer">\n  <div class="survey-wrapper style-scope ytd-inline-survey-renderer">\n    <div id="star-survey" class="style-scope ytd-inline-survey-renderer">\n      <div id="inline-survey-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="title" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.title)]]</span>\n          <span id="subtitle" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.subtitle)]]</span>\n        </h2>\n        <yt-icon-button hidden="[[expanded]]" label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="inline-survey-compact-video-renderer" class="style-scope ytd-inline-survey-renderer"></div>\n      <div id="rating-survey" class="style-scope ytd-inline-survey-renderer"></div>\n    </div>\n    <div id="follow-up-survey" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n      <div id="follow-up-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="follow-up-title" class="style-scope ytd-inline-survey-renderer">\n            [[getSimpleString(followUpSurveyCommand.followUpText)]]\n          </span>\n        </h2>\n      </div>\n      <iron-selector id="follow-up-survey-options" activate-event="" selected-attribute="checked" class="style-scope ytd-inline-survey-renderer">\n      </iron-selector>\n      <div id="submit-btn-footer" class="style-scope ytd-inline-survey-renderer">\n        <ytd-button-renderer id="submit-button" data="[[data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-inline-survey-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="skip-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="dismiss-button" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n    <yt-icon-button label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-inline-survey-renderer">\n  <div id="post-submit-message" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="continue-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return hmc=a},{mode:1});
}catch(e){_._DumpException(e)}
try{
var Fad,Gad,Had;Fad=function(a){return _.w("kevlar_watch_cinematics_invisible")||a.fullscreen&&_.w("kevlar_watch_cinematics_invisible_in_fullscreen")||a.theater&&!a.fullscreen&&_.w("kevlar_watch_cinematics_invisible_in_theater")};
Gad=function(){var a=document.createElement("canvas"),b=a.getContext("2d");if(!b)throw Error("Zl");_.az(a,{position:"absolute",width:"100%",height:"100%"});return{element:a,context:b}};
Had=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.w("kevlar_watch_cinematics_css_blur")};
_.Iad=function(a,b,c){return Math.abs(a-b)<=(c||1E-6)};
_.Jad=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};_.Kad=new _.X("notificationActionRenderer");var Lad=function(a){var b=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.hq;this.element.addEventListener("load",function(){b.loaded=!0;b.resolver.resolve(b.element)});
this.element.addEventListener("error",function(){b.failed=!0});
this.element.src=a};var Mad=function(a,b){this.image=a;this.frame=b};
Mad.prototype.drawToCanvas=function(a,b){var c=this.frame.width/this.frame.columns,d=this.frame.height/this.frame.rows,e=b.offsetX,g=b.offsetY;Fad(b)?(a.fillStyle=b.fullscreen?"#000":"#0f0f0f",a.fillRect(e,g,(b==null?void 0:b.width)||c,(b==null?void 0:b.height)||d)):a.drawImage(this.image,this.frame.column*c,this.frame.row*d,c,d,e,g,(b==null?void 0:b.width)||c,(b==null?void 0:b.height)||d)};
var Nad=function(a){this.color=a};
Nad.prototype.drawToCanvas=function(a,b){var c=b.offsetX,d=b.offsetY,e=b.width,g=b.height;a.fillStyle=Fad(b)?b.fullscreen?"#000":"#0f0f0f":this.color;a.fillRect(c,d,e,g)};var j8=function(a,b){_.kY.call(this);this.playerApi=b;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.rf(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();Oad(this,a);_.Pad(this);this.update()},Sad;
_.z(j8,_.kY);j8.prototype.addEventListeners=function(){var a=this,b=function(){a.update()},c=function(e){a.paused||(e.type==="newdata"&&(a.mosaics.clear(),Qad(a),k8(a)),_.Pad(a),a.update())},d=function(){a.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",b);this.playerApi.addEventListener("onVideoDataChange",c);this.playerApi.addEventListener("onStateChange",d);this.addOnDisposeCallback(function(){a.playerApi.removeEventListener("onVideoProgress",b);a.playerApi.removeEventListener("onVideoDataChange",c);a.playerApi.removeEventListener("onStateChange",d)})};
var Oad=function(a,b){a.cinematicContainerRenderer!==b&&(a.cinematicContainerRenderer=b,Qad(a),k8(a),a.colorStoreUpdateJobId=_.zk.addLowPriorityJob(function(){var c;if((c=a.cinematicContainerRenderer.colorStore)!=null&&c.sampledColors){c=Infinity;for(var d=_.h(a.cinematicContainerRenderer.colorStore.sampledColors),e=d.next();!e.done;e=d.next()){e=e.value;var g=Number(e.key);g!==0&&g<c&&(c=g);g=_.Dq(e.value);a.colorStore.set(e.key,g)}a.colorStoreTimeInterval=c}}))},Qad=function(a){a.colorStoreUpdateJobId&&
(_.zk.cancelJob(a.colorStoreUpdateJobId),a.colorStoreUpdateJobId=void 0);
a.colorStore.clear();a.currentStoryboardColor=void 0},Rad=function(a,b){var c;
return(c=a.getStoryboardFrame(b))==null?void 0:c.url};
j8.prototype.onPlayerStateChange=function(){this.update()};
j8.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
_.Pad=function(a){var b=a.getStoryboardFrame(0);b&&(b=new _.rf(b.width/b.columns,b.height/b.rows),_.Jad(a.currentStoryboardSize,b)||(a.currentStoryboardSize=b,a.publish("STORYBOARD_SIZE_CHANGED",a.currentStoryboardSize)))};
Sad=function(a,b){a.currentStoryboardIndex=b;a.pendingStoryboardIndex=NaN;b=a.getStoryboardFrame(a.currentStoryboardIndex);a.currentStoryboard=new Mad(a.mosaics.get(b.url).element,b);a.publish("STORYBOARD_CHANGED",a.currentStoryboard);a.lastUpdateTime=(0,_.Uj)()};
j8.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var k8=function(a){a.currentStoryboardIndex=NaN;a.pendingStoryboardIndex=NaN;a.currentStoryboard&&(a.currentStoryboard=void 0,a.publish("STORYBOARD_CHANGED",void 0));a.lastUpdateTime=NaN};
j8.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)k8(this);else{var a=this.playerApi.getPlayerState(1);if(a===-1||a===5||a===0)k8(this);else if(isNaN(this.lastUpdateTime)||!((0,_.Uj)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(a=this.playerApi.getCurrentTime()+(this.playerApi.getPlayerState(1)===2?0:this.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs*
this.cinematicContainerRenderer.config.animationConfig.crossfadeStartOffset/1E3),this.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR")if(this.colorStore.size){a=""+Math.round(a*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var b=this.colorStore.get(a);b?b!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=b,this.currentStoryboard=new Nad(b),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.Uj)()):(_.Dl(new _.qj("Could not find color for timestamp: "+a,this.cinematicContainerRenderer)),k8(this))}else k8(this);else Tad(this,a)}};
var Tad=function(a,b){var c=a.getStoryboardFrameIndex(b);if(c!==a.currentStoryboardIndex&&c!==a.pendingStoryboardIndex){b=Rad(a,c);var d=a.mosaics.get(b);d?d.loaded&&Sad(a,c):(a.pendingStoryboardIndex=c,c=new Lad(b),a.mosaics.set(b,c),c.resolver.promise.then(function(){if(!a.isDisposed()&&!a.paused&&!isNaN(a.pendingStoryboardIndex)){var e=Rad(a,a.pendingStoryboardIndex);if(e){var g;(g=a.mosaics.get(e))!=null&&g.loaded&&Sad(a,a.pendingStoryboardIndex)}else k8(a)}}))}};
j8.prototype.getStoryboardFrameIndex=function(a){var b=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(a,b)};
j8.prototype.getStoryboardFrame=function(a){var b=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,c,d;return((d=(c=this.playerApi).getStoryboardFrame)==null?void 0:d.call(c,a,b))||null};
j8.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var m8=function(a,b,c,d){d=d===void 0?!1:d;_.vg.call(this);this.cinematicContainerRenderer=b;this.playerApi=c;this.theater=this.fullscreen=!1;var e;this.ambientLightThemeEnabled=!d&&!!(b==null?0:(e=b.config)==null?0:e.enableInLightTheme);this.ambientFullscreenEnabled=d&&_.w("web_cinematic_fullscreen");this.container=document.createElement("div");a.appendChild(this.container);var g;if(_.w("web_cinematic_theater_mode")||_.w("web_cinematic_fullscreen")||(b==null?0:(g=b.config)==null?0:g.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);Uad(this);a=this.ambientV2Container||this.container;this.backCanvas=Gad();this.frontCanvas=Gad();a.appendChild(this.backCanvas.element);a.appendChild(this.frontCanvas.element);this.storyboardManager=new j8(b,this.playerApi);_.kg(this,this.storyboardManager);this.addEventListeners();Vad(this)?Wad(this,100+l8(this)*3*2,100+l8(this)*3*2):Xad(this);Yad(this,this.storyboardManager.currentStoryboard)};
_.z(m8,_.vg);var Uad=function(a){a.ambientV2Container?Zad(a):(_.az(a.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+$ad(a)+", "+abd(a)+")"}),Had()&&_.az(a.container,"filter","blur("+_.$i("cinematic_watch_css_filter_blur_strength",40)+"px)"))},Zad=function(a){if(a.ambientV2Container){var b=a.playerApi.getVideoAspectRatio();
_.az(a.container,{"aspect-ratio":""+b,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.az(a.ambientV2Container,{"aspect-ratio":""+b,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+$ad(a)+", "+abd(a)+")"});Had()&&_.az(a.ambientV2Container,"filter","blur("+_.$i("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
m8.prototype.setFullscreen=function(a,b){this.fullscreen=a;this.theater=!!b;Uad(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),a=this.storyboardManager.currentStoryboard,bbd(this),a&&cbd(this,a)};
m8.prototype.addEventListeners=function(){var a=this,b=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(e){Yad(a,e)}),c=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){Xad(a)});
this.addOnDisposeCallback(function(){a.storyboardManager.unsubscribeByKey(b);a.storyboardManager.unsubscribeByKey(c)});
if(this.ambientV2Container){var d=function(){Zad(a)};
this.playerApi.addEventListener("onVideoDataChange",d);this.addOnDisposeCallback(function(){a.playerApi.removeEventListener("onVideoDataChange",d)})}};
var Xad=function(a){if(!Vad(a)){var b=a.storyboardManager.currentStoryboardSize;isNaN(b.width)||isNaN(b.height)||Wad(a,Number(b.width)+l8(a)*3*2,Number(b.height)+l8(a)*3*2)}},Wad=function(a,b,c){a.backCanvas.element.width=b;
a.backCanvas.element.height=c;a.frontCanvas.element.width=b;a.frontCanvas.element.height=c},Vad=function(a){return a.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},Yad=function(a,b){var c=a.frontCanvas.element.getAnimations()[0];
c?(c.pause(),a.backCanvas.context.globalAlpha=Number(getComputedStyle(a.frontCanvas.element).opacity),a.frontCanvas.element.style.opacity="0",c.finish()):a.backCanvas.context.globalAlpha=1;a.backCanvas.context.drawImage(a.frontCanvas.element,0,0,a.backCanvas.element.width,a.backCanvas.element.height);bbd(a);b&&cbd(a,b);b=b?a.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.$i("cinematic_watch_fade_out_duration",500);c=_.$i("cinematic_watch_transition_frame_rate")/1E3;var d=
{};c&&(d={easing:"steps("+Math.round(b*c)+")"});a.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:b,iterations:1},d));a.frontCanvas.element.style.opacity="1"},bbd=function(a){var b=a.ambientLightThemeEnabled,c=a.ambientLightThemeEnabled||a.ambientFullscreenEnabled&&!_.w("web_cinematic_fullscreen_v2");
a.frontCanvas.context.fillStyle=a.theater&&b||a.fullscreen&&c?"#000":"#0f0f0f";Had()||(a.frontCanvas.context.filter="blur(0)");a.frontCanvas.context.fillRect(0,0,a.frontCanvas.element.width,a.frontCanvas.element.height)},cbd=function(a,b){Had()||(a.frontCanvas.context.filter="blur("+l8(a)+"px)");
a.frontCanvas.context.globalAlpha=_.$i("cinematic_watch_effect_opacity",.4);var c={offsetX:l8(a)*3,offsetY:l8(a)*3,theater:a.theater,fullscreen:a.fullscreen};Vad(a)&&(c.width=100,c.height=100);b.drawToCanvas(a.frontCanvas.context,c);a.frontCanvas.context.globalAlpha=1},l8=function(a){var b;
return(b=a.cinematicContainerRenderer.config.blurStrength)!=null?b:5},$ad=function(a){var b,c;
if((a.fullscreen||a.theater)&&((b=a.cinematicContainerRenderer.config)==null?0:(c=b.watchFullscreenConfig)==null?0:c.colorSourceWidthMultiplier))return a.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var d;return(d=a.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?d:a.cinematicContainerRenderer.config.colorSourceSizeMultiplier},abd=function(a){var b,c;
if((a.fullscreen||a.theater)&&((b=a.cinematicContainerRenderer.config)==null?0:(c=b.watchFullscreenConfig)==null?0:c.colorSourceHeightMultiplier))return a.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var d;return(d=a.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?d:a.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
m8.prototype.disposeInternal=function(){_.vg.prototype.disposeInternal.call(this);this.container.remove()};
m8.prototype.clear=function(){Yad(this)};
m8.prototype.pause=function(){this.storyboardManager.pause()};var dbd;dbd=_.Hy(function(){var a,b,c=!((b=(a=document.createElement("canvas")).getContext)==null||!b.call(a,"2d")),d;a=!((d=CSS)==null||!d.supports("filter: blur(0)"));d=!!Element.prototype.animate&&!!Element.prototype.getAnimations;b=_.w("web_cinematic_fullscreen")||_.w("web_cinematic_theater_mode")||_.w("web_cinematic_light_theme")||!1;var e;return c&&a&&d&&(!b||!((e=CSS)==null||!e.supports("aspect-ratio: 1 / 1")))});
_.n8=function(a,b){_.kY.call(this);this.container=a;this.playerApi=b;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=ebd(this);this.update()};
_.z(_.n8,_.kY);_.fbd=function(a){var b=document.documentElement.hasAttribute("dark");a.isDarkModeEnabled=b;a.update()};
_.gbd=function(a,b){a.settingEnabled=b;a.update()};
_.n8.prototype.setFullscreen=function(a,b){this.fullscreen=a;this.theater=!!b;this.update()};
_.hbd=function(a,b){a.cinematicContainerRenderer=b;a.cinematicContainerRenderer&&(a.cinematicsVe=_.ku(a.isShorts()?227858:159022),_.qF(_.ls(),a.cinematicsVe),a.loggingClientData={watchCinematicContainerData:{presentationStyle:a.cinematicContainerRenderer.presentationStyle}});a.update()};
_.n8.prototype.isShorts=function(){var a,b;return((a=this.cinematicContainerRenderer)==null?void 0:(b=a.config)==null?void 0:b.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.n8.prototype.isAllowed=function(){var a;if(a=dbd()){var b,c,d;a=((c=this.cinematicContainerRenderer)==null?void 0:c.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((d=this.cinematicContainerRenderer)==null||!d.colorStore)||((b=this.cinematicContainerRenderer)==null?void 0:b.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(a)if(_.w("web_cinematics_pausing")){var e,g;a=this.isDarkModeEnabled||!!((e=this.cinematicContainerRenderer)==
null?0:(g=e.config)==null?0:g.enableInLightTheme)}else{var k,m;e=!!((k=this.cinematicContainerRenderer)==null?0:(m=k.config)==null?0:m.enableInLightTheme)&&(_.Fi("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);a=this.isDarkModeEnabled||e}if(k=a){var n,r;k=!((r=(n=this.prefersReducedMotionQuery)==null?void 0:n.matches)!=null&&r)}return k};
_.ibd=function(a){var b;(b=a.currentCinematicEffect)==null||b.pause()};
_.n8.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var ebd=function(a){if(!_.w("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var b=window.matchMedia("(prefers-reduced-motion: reduce)"),c=function(){a.update()};
b.addListener(c);a.addOnDisposeCallback(function(){b.removeListener(c)});
return b}};
_.n8.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var a=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new m8(this.container,a,this.playerApi,this.isDarkModeEnabled),_.kg(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var b=this.currentCinematicEffect;b.cinematicContainerRenderer!==
a&&(b.cinematicContainerRenderer=a,Oad(b.storyboardManager,a),Uad(b));a=_.yo();_.zo(0,194,!0);a.save();a=_.En();this.cinematicsVe&&a&&_.Vo(a,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(a=_.En(),this.cinematicsVe&&a&&_.Wo(a,[this.cinematicsVe],!1,this.loggingClientData),_.Xf(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.Um.Object.defineProperties(_.n8.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var K$c;var L$c;_.sr({_template:function(){if(L$c!==void 0)return L$c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-pages--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_pages.tp.yt.iron.pages.css.js--\x3e<slot class="style-scope tp-yt-iron-pages"></slot>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=
a.content,c=b.insertBefore;K$c===void 0&&(K$c=document.createElement("template"));var d=K$c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return L$c=a},
is:"tp-yt-iron-pages",behaviors:[_.OD,_.Hr],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var t7c;_.u7c=function(){if(_.w("kevlar_home_skeleton")&&!t7c){var a=document.querySelector("#home-page-skeleton");a&&(_.Lo("hgcr"),_.qg(a),t7c=!0)}};
t7c=!1;_.F6=new _.X("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var n6c=function(a){return _.$Ia(_.ZIa(a&16777215))<.5},o6c=function(a,b,c){var d=c.minimumRowsOfVideosBetweenSections===void 0?1:c.minimumRowsOfVideosBetweenSections;
return a<(c.minimumRowsOfVideosAtStart===void 0?2:c.minimumRowsOfVideosAtStart)||b!==null&&a-b<=d?!1:!0},p6c=function(a,b){var c=0,d=0;
a=_.h(a);for(var e=a.next();!e.done;e=a.next()){var g=e.value;if(g.richItemRenderer)g.richItemRenderer.rowIndex=d,g.richItemRenderer.colIndex=c++,c===b&&(c=0,d++);else if(g.richGroupRenderer&&g.richGroupRenderer.numColumns!==void 0)g.richGroupRenderer.rowIndex=d,g.richGroupRenderer.colIndex=c,c+=g.richGroupRenderer.numColumns,c===b&&(c=0,d++);else if(g.richSectionRenderer){var k=e=void 0;if(g=_.y((e=g)==null?void 0:(k=e.richSectionRenderer)==null?void 0:k.content,_.BAb))g.rowIndex=d++}}},q6c=function(a,
b){var c=b.contentElement;
b=b.rendererToTagNameMap;if(c&&b&&b.size!==0){for(var d=new Map,e=_.h(c.children),g=e.next();!g.done;g=e.next()){g=g.value;var k=g.tagName.toLowerCase(),m=d.get(k);m||(m=[],d.set(k,m));m.push(g)}if(d.size!==0)for(e=Math.min(a.length,c.children.length),g=new Map,k=0;k<e;k++){m=Object.keys(a[k])[0];m=b.get(m);if(!m)break;var n=g.get(m);n===void 0&&(n=0,g.set(m,n));var r=d.get(m);if(!r||n>=r.length)break;g.set(m,n+1);m=r[n];n=c.children[k];n!==m&&(_.w("rich_grid_reflow_move_before_killswitch")?(m.remove(),
c.insertBefore(m,n)):(_.KRa=!0,_.LRa.set(m,!0),c.insertBefore(m,n),_.LRa.delete(m),_.KRa=!1))}}},r6c=function(a,b,c,d,e,g,k){d=d===void 0?{}:d;
if(!a||!a.length)return[];a=a.slice();var m=[],n=[];e=null;for(var r=0,t=function(I){n.sort(function(V,fa){return fa.skippedOnRow-V.skippedOnRow});
for(var R,da=(R=n.shift())==null?void 0:R.content;da;)!da.richSectionRenderer&&I||m.push(da),R=void 0,da=(R=n.shift())==null?void 0:R.content},u=[];a.length>0||n.length>0;){for(var x=[],A=b;A>0;){var C=void 0,F=void 0,J=(F=n[0]&&n[0].skippedOnRow<r?(C=n.shift())==null?void 0:C.content:void 0)!=null?F:a.shift();
if(!J)break;if(J.richItemRenderer)C=J.richItemRenderer.targetId,F=void 0,C&&((F=k)==null?0:F.has(C))&&u.push(k.get(C)),x.push(J),A--;else if(J.richGroupRenderer&&J.richGroupRenderer.numColumns!==void 0)J.richGroupRenderer.numColumns<=A?(x.push(J),A-=J.richGroupRenderer.numColumns):A===b&&J.richGroupRenderer.numColumns>b?(x.push({richGroupRenderer:Object.assign({},J.richGroupRenderer,{numColumns:b})}),A=0):n.push({content:J,skippedOnRow:r});else if(J.richSectionRenderer)if(o6c(r,e,d)&&A===b){m.push(J);
e=r;r++;continue}else n.push({content:J,skippedOnRow:r});else if(J.continuationItemRenderer){t(!0);m.push(J);A=0;break}if(A===0)m.push.apply(m,_.De(x));else if(!c&&a.length===0){t(!1);m.push.apply(m,_.De(x));A=0;break}}r++;u=_.h(u);for(x=u.next();!x.done;x=u.next())m.push(x.value),r++;u=[]}p6c(m,b);g&&q6c(m,g);return m},t6c=function(a){var b=a.data;
var c=a.uniqueId;a=a.overrides;var d,e=((d=b.timedAnimationData)==null?void 0:d.animationTiming)||[];return _.q("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.q(_.GVa,{settings:{uniqueId:c,timings:e,experimentEnabled:e.length>0,enabled:e.length>0}},s6c(b.buttonRenderer,{buttonRenderer:{buttonOverrides:a}})))},u6c=function(a){return a.talkToRecs},x6c=function(a,b){if(b){var c=_.Yp().getState().entities.flowStateEntity,d=v6c(a),e=[b];
d&&d!==b&&e.push(d);var g=!0,k;if(c&&a.flowStateEntityKey&&((k=c[a.flowStateEntityKey])==null?void 0:k.primaryButtonDisabled)!==void 0){var m;g=!((m=c[a.flowStateEntityKey])==null||!m.primaryButtonDisabled)}w6c(a,d!=null?d:b,e,g)}},z6c=function(a){return _.zF(_.Yp(),function(b){return b.entities.flowStateEntity},function(b,c){if(a.flowStateEntityKey){var d,e=b==null?void 0:(d=b[a.flowStateEntityKey])==null?void 0:d.currentStepId,g;
c=c==null?void 0:(g=c[a.flowStateEntityKey])==null?void 0:g.currentStepId;g=_.Yp().getState().talkToRecs;if(e&&e!==c){var k;b=(b==null?void 0:(k=b[a.flowStateEntityKey])==null?void 0:k.stepIdStack)||Object.keys(g.stepStates);k=!y6c(g==null?void 0:g.stepStates[e]);w6c(a,e,b,k)}}})},A6c=function(a){return _.zF(_.Yp(),u6c,function(b){var c=v6c(a);
if(c){var d=Object.keys(b.stepStates);b=!y6c(b==null?void 0:b.stepStates[c]);w6c(a,c,d,b)}})},y6c=function(a){var b=Object.keys((a==null?void 0:a.selectionStates)||{}).reduce(function(g,k){return g||(a==null?void 0:a.selectionStates[k].isSelected)},!1),c,d,e=!!(a==null?0:(c=a.userQuery)==null?0:(d=c.userQuery)==null?0:d.trim());
return b||e},v6c=function(a){if(a.flowStateEntityKey){var b,c,d=(b=_.Yp().getState().entities.flowStateEntity)==null?void 0:(c=b[a.flowStateEntityKey])==null?void 0:c.currentStepId;
if(d)return d}},w6c=function(a,b,c,d){_.Yp().dispatch(_.wu("flowStateEntity",a.flowStateEntityKey,{currentStepId:b,
stepIdStack:c,key:a.flowStateEntityKey,primaryButtonDisabled:d}))},B6c;var C6c;_.sr({_template:function(){if(C6c!==void 0)return C6c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-material--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_material.tp.yt.paper.material.css.js--\x3e<slot class="style-scope tp-yt-paper-material"></slot>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
var b=a.content,c=b.insertBefore;B6c===void 0&&(B6c=document.createElement("template"));var d=B6c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return C6c=a},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var D6c=new _.X("talkToRecsFlowRenderer");var E6c=new _.X("flowRootRenderer");var F6c=new _.X("chipsShelfViewModel");_.G6c=new _.X("engagementPanelSectionListRenderer");var H6c=function(){this.horizontal=!1},I6c=function(a,b){a.horizontal=b};
H6c.prototype.position=function(a,b,c,d){d=d===void 0?1:d;a=this.delta(a)*d+b;d=Math.max(b,c);return a>=Math.min(b,c)&&a<=d?a:c};
H6c.prototype.axis=function(a){a=this.direction(a);return a==="up"||a==="down"?"Y":"X"};var u6=function(a,b,c){b=b===void 0?_.tG():b;this.target=a;this.manager=b;this.touchAction=c;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
u6.prototype.attach=function(){if(!this.attached){this.attached=!0;this.eventMap={swipedown:this.onSwipeDown,swipeup:this.onSwipeUp,panstart:this.onPanStart,panright:this.onPanMove,panleft:this.onPanMove,panmove:this.onPanMove,panend:this.onPanEnd};this.manager.registerTouchEvents.apply(this.manager,[this.target,this.directions,this.touchAction].concat(_.De(this.events)));for(var a=_.h(this.events),b=a.next();!b.done;b=a.next())this.listen(b.value)}};
u6.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.De(this.events)));for(var a=_.h(this.events),b=a.next();!b.done;b=a.next())this.unlisten(b.value)}};
u6.prototype.listen=function(a){this.eventMap[a]&&this.target.addEventListener(a,this.eventMap[a])};
u6.prototype.unlisten=function(a){this.eventMap[a]&&this.target.removeEventListener(a,this.eventMap[a])};var v6=function(){H6c.apply(this,arguments)};
_.z(v6,H6c);v6.prototype.direction=function(a){var b=a.detail;a=b.deltaY;b=b.deltaX;return a&&!this.horizontal?a>0?"down":"up":b&&this.horizontal?b>0?"right":"left":"none"};
v6.prototype.distance=function(a){return Math.abs(this.delta(a))};
v6.prototype.delta=function(a){var b=this.direction(a),c=a.detail;a=c.deltaX;c=c.deltaY;return b==="up"||b==="down"?c||0:a||0};
v6.prototype.velocity=function(a){var b=this.direction(a),c=a.detail;a=c.velocityX;c=c.velocityY;return Math.abs(b==="up"||b==="down"?c||0:a||0)};_.w6=function(a,b,c,d,e,g){e=e===void 0?new v6:e;g=g===void 0?_.tG():g;u6.call(this,b,g,d);var k=this;this.element=a;this.target=b;this.config=c;this.input=e;this.manager=g;this.events=["panstart","panmove","panend"];this.onPanStart=function(){k.config.draggingClass&&k.element.classList.add(k.config.draggingClass);k.config.startAction&&k.config.startAction()};
this.onPanMove=function(m){var n=J6c(k,m);if(n){k.move(m,n);n.fade&&k.fade(m,n);var r=k.input.direction(m);n.moveAction&&n.moveAction(K6c(k,m,n),r)}};
this.onPanEnd=function(m){var n,r,t,u,x,A;return _.l(function(C){if(C.nextAddress==1){k.animationRequestId&&cancelAnimationFrame(k.animationRequestId);k.animationRequestId=void 0;n=J6c(k,m);if(!n)return C.return();r=n;t=r.triggerAction;u=r.fade;x=r.disableFinish;A=r.translateBack;var F=k.input.velocity(m),J=k.input.distance(m),I=k.threshold(n);return F>.3&&J>10||J>I?x?C.jumpTo(6):u?_.p(C,L6c(k,m),6):_.p(C,M6c(k,m,n),6):A?_.p(C,k.translateBack(m),3):C.jumpTo(3)}C.nextAddress!=3&&t&&t();k.config.draggingClass&&
k.element.classList.remove(k.config.draggingClass);k.reset();_.ue(C)})};
a=Object.keys(c.triggers);this.directions=new Set(a);I6c(this.input,this.directions.has("right")||this.directions.has("left"))};
_.z(_.w6,u6);_.w6.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var J6c=function(a,b){b=a.input.direction(b);return a.config.triggers[b]};
_.w6.prototype.move=function(a,b){var c=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var d=c.input.axis(a),e=c.input.position(a,c.config.startPosition,b.endPosition,b.moveRatio||1);c.element.style.transform="translate"+d+"("+e+"px)";c.animationRequestId=void 0}))};
var K6c=function(a,b,c){var d=c.moveRatio||1;c=Math.abs(a.config.startPosition-c.endPosition);return Math.min(a.input.distance(b)*d,c)/c};
_.w6.prototype.fade=function(a,b){var c=b.endOpacity;a=K6c(this,a,b);a>0&&(this.element.style.opacity=""+(((c||0)-1)*a+1))};
_.w6.prototype.threshold=function(a){return a.threshold?a.threshold:Math.abs(a.endPosition-this.config.startPosition)/3};
var M6c=function(a,b,c){var d,e,g,k,m,n,r;return _.l(function(t){if(t.nextAddress==1)return d=a.input.delta(b)+a.config.startPosition,e=a.input.axis(b),g=c,k=g.endPosition,m=g.transitionEndPosition,r=(n=m)!=null?n:k,_.p(t,a.element.animate([{transform:"translate"+e+"("+d+"px)"},{transform:"translate"+e+"("+r+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);a.element.style.transform="translate"+e+"("+r+"px)";_.ue(t)})};
_.w6.prototype.translateBack=function(a){var b=this,c,d;return _.l(function(e){if(e.nextAddress==1){if(!b.element.style.transform)return e.return();c=b.input.axis(a);d=b.config.startPosition;return _.p(e,b.element.animate([{transform:b.element.style.transform},{transform:"translate"+c+"("+d+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}b.element.style.transform="translate"+c+"("+d+"px)";_.ue(e)})};
var L6c=function(a,b){var c,d,e,g;return _.l(function(k){if(k.nextAddress==1)return c=a.input.delta(b)+a.config.startPosition,d=a.input.axis(b),e=c+70,g=a.element.style.opacity===""?1:a.element.style.opacity,_.p(k,a.element.animate([{transform:"translate"+d+"("+c+"px)",opacity:g},{transform:"translate"+d+"("+e+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);a.element.style.transform="translate"+d+"("+e+"px)";a.element.style.opacity="0";_.ue(k)})};var N6c=function(){var a=_.kr.apply(this,arguments)||this;a._noAccessors=!0;a.scrollRate=3;a.autoScrollAnimationStart=0;a.autoScrollPaused=!1;a.autoScrollRafId=0;return a};
_.z(N6c,_.kr);_.f=N6c.prototype;_.f.created=function(){var a=this;this.boundAutoScrollHandler=function(b){a.autoScroll(b)}};
_.f.detached=function(){this.hostElement.removeEventListener("mouseout",_.gr(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.gr(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.gr(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.f.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.gr(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.gr(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.gr(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.gr(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.gr(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.gr(this,this.endAutoScroll)),this.endAutoScroll())};
_.f.autoScroll=function(a){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=a);var b;if(b=!this.autoScrollPaused&&this.scrollTarget)b=this.scrollTarget,b=b.scrollHeight-b.scrollTop!==b.clientHeight;b&&(b=1E3/this.scrollRate,a-=this.autoScrollAnimationStart,a>b&&(this.scrollTarget.scrollTop+=Math.ceil(a/b),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.f.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.f.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
var x6=N6c;x6.prototype.autoScrollEnabledChanged=x6.prototype.autoScrollEnabledChanged;_.U([_.O(),_.W("design:type",Object)],x6.prototype,"scrollRate",void 0);_.U([_.O(),_.W("design:type",Object)],x6.prototype,"scrollTarget",void 0);_.U([_.O(),_.W("design:type",Boolean)],x6.prototype,"autoScrollEnabled",void 0);_.U([_.N("autoScrollEnabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],x6.prototype,"autoScrollEnabledChanged",null);x6=_.U([_.lr()],x6);_.O6c=[x6.prototype];var P6c;var s6c=_.Du({buttonRenderer:_.iL});_.Zl(t6c);_.at(t6c,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var Q6c=function(){var a=_.P.apply(this,arguments)||this;a.hideJoinButtonBeforeSubscribed=_.w("hide_join_button_before_subscribed");a.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return a};
_.z(Q6c,_.P);_.f=Q6c.prototype;
_.f.configureRendererStamper=function(){return{"data.membershipButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}},timedAnimationButtonRenderer:{component:"timed-animation-button-renderer",params:{uniqueId:"join-button"},properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.analyticsButton":{id:"analytics-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.updateJoinButtonOverrides=function(){var a,b;(a=_.E(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(b=a.polymerController)==null||b.set("overrides",this.joinButtonOverrides);if(a=_.E(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))a.overrides=this.joinButtonOverrides};
_.f.handleButtonRefreshAction=function(a){if(a=_.y(a,_.Xyb))this.set("data.membershipButton",a.membershipButton),this.notifyPath("data.membershipButton")};
_.f.onYtServiceRequestError=function(a){_.OW(this.hostElement,a.detail.error.message)};
_.f.handleUnsubscribeAction=function(){var a,b,c;((a=this.data)==null?void 0:(b=a.membershipButton)==null?void 0:(c=b.buttonRenderer)==null?void 0:c.style)==="STYLE_PRIMARY"&&_.E(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.Um.Object.defineProperties(Q6c.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.subscriptionStateEntity)==null||!a.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var a,b=(a=this.data)==null?void 0:a.membershipButton,c;a=(b==null?void 0:b.buttonRenderer)||_.y(b==null?void 0:(c=b.timedAnimationButtonRenderer)==null?void 0:c.buttonRenderer,_.RE);return(a==null?void 0:a.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(a==null?void 0:a.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(a==null?void 0:a.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}}});
var y6=Q6c;y6.prototype.onYtServiceRequestError=y6.prototype.onYtServiceRequestError;y6.prototype.updateJoinButtonOverrides=y6.prototype.updateJoinButtonOverrides;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],y6.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],y6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],y6.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.OI),_.W("design:type",Object)],y6.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],y6.prototype,"data",void 0);_.U([_.K("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.W("design:type",Object),_.W("design:paramtypes",[])],y6.prototype,"hideJoin",null);_.U([_.O(),_.W("design:type",String)],y6.prototype,"subscribeKey",void 0);_.U([_.O({selectorArgs:["subscribeKey"],selector:_.ju}),_.W("design:type",Object)],y6.prototype,"subscriptionStateEntity",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],y6.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.U([_.K("subscriptionStateEntity"),_.O({reflectToAttribute:!0}),_.W("design:type",Object),_.W("design:paramtypes",[])],y6.prototype,"subscribed",null);_.U([_.K("subscribed","data.membershipButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],y6.prototype,"joinButtonOverrides",null);
_.U([_.N("joinButtonOverrides"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y6.prototype,"updateJoinButtonOverrides",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],y6.prototype,"onYtServiceRequestError",null);y6=_.U([_.Q({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],y6);
_.S(y6,"ytd-video-owner-renderer",function(){if(P6c!==void 0)return P6c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return P6c=a},{mode:1});var R6c;var S6c=function(){var a=_.P.apply(this,arguments)||this;a.buttonUpdate=_.w("web_button_rework");a.dismissButtonOverrides=_.w("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;a.forceDarkTheme=!1;a.forceLightTheme=!1;a.dynamicTextHeight=94;a.hasOverflowButton=!1;a.isInfeedModernization=!1;return a};
_.z(S6c,_.P);_.f=S6c.prototype;_.f.computeUrlImg=function(a){if(a)return _.Vs(a.thumbnails)};
_.f.getLogoHeight=function(a){return this.logoWithPadding(a)?"31":"24"};
_.f.getLogoClassName=function(a){return this.logoWithPadding(a)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.f.logoWithPadding=function(a){var b,c;return(a=(b=a.thumbnails)==null?void 0:(c=b[0])==null?void 0:c.height)&&a%31===0?!0:!1};
_.f.sendImpressionEndpoints=function(a){a.impressionEndpoints&&_.oo(this.hostElement,a.impressionEndpoints)};
_.f.observeBasicPalette=function(){var a,b,c=(a=this.data)==null?void 0:(b=a.colorData)==null?void 0:b.basicColorPaletteData;c?_.Dt(this.hostElement,c):_.Dt(this.hostElement,{})};
_.f.observeDataChanged=function(){var a;this.dynamicTextHeight=((a=this.data)==null?0:a.supplementalText)?74:94;var b;this.hasSupplementalText=!((b=this.data)==null||!b.supplementalText);if(_.w("web_button_rework")){var c,d,e,g;a=(c=this.data)==null?void 0:(d=c.actionButton)==null?void 0:(e=d.buttonRenderer)==null?void 0:(g=e.colorData)==null?void 0:g.basicColorPaletteData;var k,m,n;if(!((k=this.data)==null?0:(m=k.actionButton)==null?0:(n=m.buttonRenderer)==null?0:n.style)&&a){this.computeIsInfeedModernization(this.data)||
(a.borderColor=a.foregroundTitleColor);var r,t;this.set("data.actionButton.buttonRenderer",_.Cf.unsafeClone((r=this.data)==null?void 0:(t=r.actionButton)==null?void 0:t.buttonRenderer))}}};
_.f.observeDataForCounterfactual=function(){if(_.w("kevlar_banner_cf_extra_logging")){var a;((a=this.data)==null?0:a.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.f.computeSupplementalStyle=function(){var a;if((a=this.data)!=null&&a.supplementalText){var b,c,d;if((b=this.data)==null?0:(c=b.colorData)==null?0:(d=c.basicColorPaletteData)==null?0:d.foregroundActivatedColor)return a=_.Cq(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+a+"; --yt-endpoint-hover-color:"+a+"; --yt-endpoint-visited-color:"+a+"; --yt-formatted-string-bold-font-weight:700;"}};
_.f.computeForcedDarkTheme=function(){var a,b,c,d=(a=this.data)==null?void 0:(b=a.actionButton)==null?void 0:(c=b.buttonRenderer)==null?void 0:c.style,e,g,k;a=n6c(((e=this.data)==null?void 0:(g=e.colorData)==null?void 0:(k=g.basicColorPaletteData)==null?void 0:k.backgroundColor)||0);return d&&a};
_.f.computeForcedLightTheme=function(){var a,b,c,d=(a=this.data)==null?void 0:(b=a.actionButton)==null?void 0:(c=b.buttonRenderer)==null?void 0:c.style,e,g,k;a=!n6c(((e=this.data)==null?void 0:(g=e.colorData)==null?void 0:(k=g.basicColorPaletteData)==null?void 0:k.backgroundColor)||0);return d&&a};
_.f.computeHasOverflowButton=function(a){return!!a.overflowButton};
_.f.computeHasTitle=function(a){return!!a.title};
_.f.computeTitleMaxFontSize=function(a){return this.computeHasOverflowButton(a)?28:64};
_.f.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.f.computeIsInfeedModernization=function(){var a,b,c,d,e=(a=this.data)==null?void 0:(b=a.actionButton)==null?void 0:(c=b.buttonRenderer)==null?void 0:(d=c.colorData)==null?void 0:d.basicColorPaletteData;return(e==null?void 0:e.backgroundColor)===452984831||(e==null?void 0:e.backgroundColor)===218103808};
var z6=S6c;z6.prototype.observeDataForCounterfactual=z6.prototype.observeDataForCounterfactual;z6.prototype.observeDataChanged=z6.prototype.observeDataChanged;z6.prototype.observeBasicPalette=z6.prototype.observeBasicPalette;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],z6.prototype,"ytdDismissibleItemBehavior",void 0);
_.U([_.H(_.XI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],z6.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],z6.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],z6.prototype,"buttonUpdate",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],z6.prototype,"hasSupplementalText",void 0);_.U([_.O(),_.W("design:type",Object)],z6.prototype,"dismissButtonOverrides",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.W("design:type",Boolean)],z6.prototype,"hasTitle",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.W("design:type",Object)],z6.prototype,"forceDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.W("design:type",Object)],z6.prototype,"forceLightTheme",void 0);_.U([_.O(),_.W("design:type",Object)],z6.prototype,"dynamicTextHeight",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.W("design:type",Object)],z6.prototype,"hasOverflowButton",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.W("design:type",Object)],z6.prototype,"isInfeedModernization",void 0);_.U([_.N("data.colorData.basicColorPaletteData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],z6.prototype,"observeBasicPalette",null);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],z6.prototype,"observeDataChanged",null);_.U([_.N("data.isVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],z6.prototype,"observeDataForCounterfactual",null);z6=_.U([_.Q({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],z6);
_.S(z6,"ytd-banner-promo-renderer",function(){if(R6c!==void 0)return R6c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.isVisible]]" class="style-scope ytd-banner-promo-renderer">\n  <div class="ytd-banner-promo-renderer-background style-scope ytd-banner-promo-renderer">\n    <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" hidden="[[data.overflowButton]]" overrides="[[dismissButtonOverrides]]" on-click="onDismissClick" class="style-scope ytd-banner-promo-renderer">\n    </ytd-button-renderer>\n    <ytd-menu-renderer id="overflow-button" data="[[data.overflowButton.menuRenderer]]" hidden="[[!data.overflowButton]]" class="style-scope ytd-banner-promo-renderer">\n    </ytd-menu-renderer>\n    <div class="ytd-banner-promo-renderer-layout-container style-scope ytd-banner-promo-renderer">\n      <div class="ytd-banner-promo-renderer-layout style-scope ytd-banner-promo-renderer">\n        <img alt="" class="ytd-banner-promo-renderer-inline-image style-scope ytd-banner-promo-renderer" src$="[[computeUrlImg(data.backgroundImage)]]">\n        <template is="dom-if" if="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n          <h1 class$="[[getLogoClassName(data.logoImage)]] style-scope ytd-banner-promo-renderer">\n            <yt-img-shadow height$="[[getLogoHeight(data.logoImage)]]" thumbnail="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n            </yt-img-shadow>\n          </h1>\n        </template>\n        <div class="ytd-banner-promo-renderer-content style-scope ytd-banner-promo-renderer">\n          <div class="dynamic-text-container style-scope ytd-banner-promo-renderer">\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-short style-scope ytd-banner-promo-renderer" font-family="[[data.titleFontFamily]]" hidden="[[!data.title]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.title]]">\n            </yt-dynamic-sizing-formatted-string>\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-long style-scope ytd-banner-promo-renderer" hidden="[[!data.promoText]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.promoText]]">\n            </yt-dynamic-sizing-formatted-string>\n          </div>\n          <yt-attributed-string class="badge-text style-scope ytd-banner-promo-renderer" data="[[data.badgeText]]" hidden="[[!data.overflowButton]]">\n          </yt-attributed-string>\n          <yt-formatted-string class="supplemental-text style-scope ytd-banner-promo-renderer" style$="[[computeSupplementalStyle()]]" text="[[data.supplementalText]]">\n          </yt-formatted-string>\n          <ytd-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" invisible$="[[!data.actionButton.buttonRenderer]]" class="style-scope ytd-banner-promo-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return R6c=a},{mode:1});var T6c;var U6c;var V6c;var W6c=function(){return _.P.apply(this,arguments)||this};
_.z(W6c,_.P);var X6c=W6c;_.U([_.O(),_.W("design:type",Object)],X6c.prototype,"data",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],X6c.prototype,"ytRendererBehavior",void 0);X6c=_.U([_.Q({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],X6c);
_.S(X6c,"ytd-hashtag-grid-tile-renderer",function(){if(V6c!==void 0)return V6c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-hashtag-grid-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]">\n  <div id="info" class="style-scope ytd-hashtag-grid-tile-renderer">\n    <yt-formatted-string id="hashtag" aria-label="[[data.suggestion]]" text="[[data.hashtag]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="hashtag-info" text="[[data.hashtagVideoCountText]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return V6c=a},{mode:1});var Y6c=function(){return _.P.apply(this,arguments)||this};
_.z(Y6c,_.P);Y6c.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
Y6c.prototype.updateRichGridTrendingHashtagsVisibility=function(){var a,b;if(((a=this.data)==null||!a.isExpanded)&&(b=this.data)!=null&&b.tiles){a=this.data.tiles.length;b=a>this.richGridItemsPerRow?this.richGridItemsPerRow+1:a;var c=Math.ceil(a/b);this.fullyVisibleRows=a%b===1&&c===2?1:Math.min(c,2);this.isShowMoreVisible=this.fullyVisibleRows<c}};
Y6c.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
var A6=Y6c;A6.prototype.updateRichGridTrendingHashtagsVisibility=A6.prototype.updateRichGridTrendingHashtagsVisibility;_.U([_.O(),_.W("design:type",Object)],A6.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Number)],A6.prototype,"fullyVisibleRows",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],A6.prototype,"isShowMoreVisible",void 0);_.U([_.O({selector:_.Gp,value:0}),_.W("design:type",Number)],A6.prototype,"richGridItemsPerRow",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],A6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],A6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],A6.prototype,"ytdReduxBehavior",void 0);_.U([_.N("data","richGridItemsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],A6.prototype,"updateRichGridTrendingHashtagsVisibility",null);
A6=_.U([_.Q({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],A6);
_.S(A6,"ytd-hashtag-grid-shelf-renderer",function(){if(U6c!==void 0)return U6c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-text" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-formatted-string id="title" text="[[data.shelfTitle]]" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="tiles" class="style-scope ytd-hashtag-grid-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return U6c=a},{mode:1});var Z6c;var $6c;var a7c=function(){var a=_.P.apply(this,arguments)||this;a.visibleVideos=[];a.hiddenVideos=[];a.modern=_.w("web_modern_buttons");a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(a7c,_.P);_.f=a7c.prototype;_.f.attached=function(){var a=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",a);this.onDarkModeToggledAction(a)};
_.f.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.header":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},visibleVideos:{id:"visible-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},
properties:{metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{metadataColor:"[[videoMetadataColor]]"}}}},hiddenVideos:{id:"hidden-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",
metadataColor:"[[videoMetadataColor]]"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.f.dataChanged=function(){var a=this;this.requestElementsPerRow();var b,c;this.currentColorPalette=this.isDarkTheme?(b=this.data)==null?void 0:b.darkColorData:(c=this.data)==null?void 0:c.lightColorData;var d;if((d=this.currentColorPalette)==null?0:d.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.Qm(this,function(){a.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.f.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.f.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.f.computeIsFirstFeedItem=function(a){return a};
_.f.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&this.set("isDarkTheme",a);this.data&&(this.currentColorPalette=a?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.f.getCurrentLogo=function(a,b){if(a)return b?a.darkLogoImage:a.lightLogoImage};
_.f.computeTitleStyle=function(a){var b;if((b=this.data)!=null&&b.title&&a&&a.textPrimary!==void 0)return"color:"+_.Cq(a.textPrimary)+";"};
_.f.computeSubtitleStyle=function(a){var b;if((b=this.data)!=null&&b.subtitle&&a&&a.textSecondary!==void 0)return"color:"+_.Cq(a.textSecondary)+";"};
_.f.computeDismissIconStyle=function(a){if(this.data&&this.data.dismissButton){var b;if(a==null?0:(b=a.dismissButtonColorData)==null?0:b.foregroundTitleColor)return"--yt-button-color:"+_.Cq(a.dismissButtonColorData.foregroundTitleColor)+";";var c,d,e,g;if((c=this.data.dismissButton)==null?0:(d=c.buttonRenderer)==null?0:(e=d.colorData)==null?0:(g=e.basicColorPaletteData)==null?0:g.foregroundTitleColor)return"--yt-button-color:"+_.Cq(this.data.dismissButton.buttonRenderer.colorData.basicColorPaletteData.foregroundTitleColor)+
";"}};
_.f.computeOverflowButtonStyle=function(a){var b;if(this.data&&this.data.overflowButton&&(a==null?0:(b=a.dismissButtonColorData)==null?0:b.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.Cq(a.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.Cq(a.dismissButtonColorData.foregroundTitleColor)+";"};
_.f.computeBackgroundStyle=function(a){if(a&&this.data){var b="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var c=_.Vs((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);c&&(b+='background-image:url("'+c+'");')}a.backgroundColor!==void 0&&(b+="background-color:"+_.Dq(a.backgroundColor)+";");return b}};
_.f.computeButton=function(){var a,b=Object.assign({},_.y((a=this.data)==null?void 0:a.showMoreButton,_.RE));if(this.modern&&b){b.style="STYLE_DEFAULT";var c,d;if(a=(c=this.currentColorPalette)==null?void 0:(d=c.dismissButtonColorData)==null?void 0:d.foregroundTitleColor)b.colorData={basicColorPaletteData:{foregroundTitleColor:a,borderColor:a}}}return b};
_.f.shouldShowBottomButton=function(a,b){return!(a==null?0:a.header)&&!(a==null||!a.primaryButton)&&b<3};
_.f.checkExpanded=function(a){this.isExpanded=a&&a.content?this.hiddenVideos.length===0:!0};
_.f.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.f.getLogoHeight=function(a){return this.logoWithPadding(a)?"26":"20"};
_.f.getLogoImageId=function(a){return this.logoWithPadding(a)?"logo-image-with-padding":"logo-image"};
_.f.computeHasSectionHeader=function(a){return!!a.header};
_.f.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var a;if((a=this.data.primaryButton)==null?0:a.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var b;((b=this.data.dismissButton)==null?0:b.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var c,d;((c=this.data)==null?0:(d=c.primaryButton)==null?0:d.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.f.setVisibleVideos=function(a){if(this.data&&this.data.content)if(this.data.content.length){var b=this.data.content.length;this.data.header?a?(this.visibleVideos=this.data.content.slice(0,Math.min(b,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(b,this.slimItemsPerRow),b)):(this.visibleVideos=this.data.content.slice(0,Math.min(b,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(b,this.elementsPerRow),b)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(b,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(b,this.elementsPerRow),b)):(this.visibleVideos=this.data.content.slice(0,Math.min(b,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(b,this.elementsPerRow-1),b))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.f.setHasMovieRenderer=function(){var a;if((a=this.data)!=null&&a.content){var b;this.hasMovieRenderer=!!_.y((b=this.data)==null?void 0:b.content[0],_.bDb)}else this.hasMovieRenderer=!1};
_.f.requestElementsPerRow=function(){_.io(this.hostElement,"yt-request-elements-per-row")};
_.f.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var a=_.h(this.hiddenMediaRenderers),b=a.next();!b.done;b=a.next())b.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(a=_.E(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&a.focus()}};
_.f.updateTitleSpec=function(){var a;(a=this.data)!=null&&a.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.f.logoWithPadding=function(a){var b,c,d;return(a=(b=this.getCurrentLogo(a,this.isDarkTheme))==null?void 0:(c=b.thumbnails)==null?void 0:(d=c[0])==null?void 0:d.height)&&a%31===0?!0:!1};
_.f.onUpdateElementsPerRowAction=function(a,b,c){a&&this.elementsPerRow!==a&&(this.elementsPerRow=a);c&&this.slimItemsPerRow!==c&&(this.slimItemsPerRow=c)};
var B6=a7c;B6.prototype.slimItemsPerRowChanged=B6.prototype.slimItemsPerRowChanged;B6.prototype.elementsPerRowChanged=B6.prototype.elementsPerRowChanged;B6.prototype.dataChanged=B6.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],B6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],B6.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.QI),_.W("design:type",Object)],B6.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],B6.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],B6.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],B6.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],B6.prototype,"currentColorPalette",void 0);_.U([_.O(),_.W("design:type",Array)],B6.prototype,"visibleVideos",void 0);
_.U([_.O(),_.W("design:type",Array)],B6.prototype,"hiddenVideos",void 0);_.U([_.O(),_.W("design:type",Object)],B6.prototype,"primaryButton",void 0);_.U([_.O({reflectToAttribute:!0,value:3}),_.W("design:type",Number)],B6.prototype,"elementsPerRow",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],B6.prototype,"isDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],B6.prototype,"isExpanded",void 0);
_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],B6.prototype,"largeTitle",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],B6.prototype,"hasMovieRenderer",void 0);_.U([_.O(),_.W("design:type",Number)],B6.prototype,"slimItemsPerRow",void 0);_.U([_.O(),_.W("design:type",Boolean)],B6.prototype,"showLightVideoMetadata",void 0);_.U([_.O(),_.W("design:type",Boolean)],B6.prototype,"showDarkVideoMetadata",void 0);
_.U([_.O(),_.W("design:type",Number)],B6.prototype,"videoMetadataColor",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Fp}),_.W("design:type",Boolean)],B6.prototype,"miniMode",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.W("design:type",Boolean)],B6.prototype,"isFirstFeedItem",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.W("design:type",Boolean)],B6.prototype,"hasSectionHeader",void 0);
_.U([_.O({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],B6.prototype,"roundedContainer",void 0);_.U([_.jr("#visible-video-container ytd-rich-grid-media"),_.W("design:type",Array)],B6.prototype,"visibleMediaRenderers",void 0);_.U([_.jr("#hidden-video-container ytd-rich-grid-media"),_.W("design:type",Array)],B6.prototype,"hiddenMediaRenderers",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],B6.prototype,"modern",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B6.prototype,"dataChanged",null);_.U([_.N("elementsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B6.prototype,"elementsPerRowChanged",null);_.U([_.N("slimItemsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B6.prototype,"slimItemsPerRowChanged",null);
B6=_.U([_.Q({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],B6);
_.S(B6,"ytd-brand-video-shelf-renderer",function(){if($6c!==void 0)return $6c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n  <div id="content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n    <div id="shelf-header-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="top-level-header-container" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="section-header-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        <div id="top-buttons-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" hidden="[[!data.primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n          <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        </div>\n      </div>\n      <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="visible-content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="metadata-container" hidden="[[data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="header-container" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-img-shadow height$="[[getLogoHeight(data)]]" hidden="[[!data.lightLogoImage]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="metadata-button-container" hidden="[[shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n      <div id="visible-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    </div>\n    <div id="hidden-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    <div id="bottom-button-container" hidden="[[!shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="show-more-button-container" hidden="[[isExpanded]]" class="style-scope ytd-brand-video-shelf-renderer">\n    <ytd-button-renderer id="show-more-button" data="[[computeButton(data.showMoreButton.buttonRenderer, currentColorPalette)]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" on-click="onShowMoreTap" class="style-scope ytd-brand-video-shelf-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-shelf-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return $6c=a},{mode:1});var b7c;var c7c=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(c7c,_.P);_.f=c7c.prototype;_.f.attached=function(){var a=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",a);this.onDarkModeToggledAction(a)};
_.f.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.f.dataChanged=function(){this.requestElementsPerRow();var a,b;this.currentColorPalette=this.isDarkTheme?(a=this.data)==null?void 0:a.darkColorData:(b=this.data)==null?void 0:b.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.f.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.f.computeIsFirstFeedItem=function(a){return a};
_.f.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&this.set("isDarkTheme",a);this.data&&(this.currentColorPalette=a?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(a),this.updateButtonPalette())};
_.f.shouldShowThumbnailInMetadata=function(a){return a<=1};
_.f.getCurrentLogo=function(a,b){if(a)return b?a.darkLogoImage:a.lightLogoImage};
_.f.computeVideoMetadataColor=function(){if(this.data){var a;if((a=this.currentColorPalette)==null?0:a.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.f.computeTitleStyle=function(a){var b;if((b=this.data)!=null&&b.title&&a&&a.textPrimary!==void 0)return"color:"+_.Cq(a.textPrimary)+";"};
_.f.computeSubtitleStyle=function(a){var b;if((b=this.data)!=null&&b.subtitle&&a&&a.textSecondary!==void 0)return"color:"+_.Cq(a.textSecondary)+";"};
_.f.computeDismissIconStyle=function(a){if(this.data&&this.data.dismissButton){var b;if(a==null?0:(b=a.dismissButtonColorData)==null?0:b.foregroundTitleColor)return"--yt-button-color:"+_.Cq(a.dismissButtonColorData.foregroundTitleColor)+";";var c,d,e,g;if((c=this.data.dismissButton)==null?0:(d=c.buttonRenderer)==null?0:(e=d.colorData)==null?0:(g=e.basicColorPaletteData)==null?0:g.foregroundTitleColor)return"--yt-button-color:"+_.Cq(this.data.dismissButton.buttonRenderer.colorData.basicColorPaletteData.foregroundTitleColor)+
";"}};
_.f.computeOverflowButtonStyle=function(a){var b;if(this.data&&this.data.overflowButton&&(a==null?0:(b=a.dismissButtonColorData)==null?0:b.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.Cq(a.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.Cq(a.dismissButtonColorData.foregroundTitleColor)+";"};
_.f.computeBackgroundStyle=function(a){if(a&&this.data){var b="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var c=_.Vs((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);c&&(b+='background-image:url("'+c+'");')}a.backgroundColor!==void 0&&(b+="background-color:"+_.Dq(a.backgroundColor)+";");return b}};
_.f.computeHasOverflowButton=function(a){return!!a.overflowButton};
_.f.getLogoHeight=function(a){return this.logoWithPadding(a)?"26":"20"};
_.f.getLogoImageId=function(a){return this.logoWithPadding(a)?"logo-image-with-padding":"logo-image"};
_.f.updateButtonPalette=function(){if(this.data){var a;if((a=this.data.primaryButton)==null?0:a.buttonRenderer){var b;if((b=this.currentColorPalette)==null?0:b.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var c;if((c=this.currentColorPalette)==null?0:c.primaryButtonStyleType)this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}var d;if((d=this.data.dismissButton)==null?0:d.buttonRenderer){var e;if((e=this.currentColorPalette)==null?0:e.dismissButtonColorData)this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData}}}};
_.f.requestElementsPerRow=function(){_.io(this.hostElement,"yt-request-elements-per-row")};
_.f.updateTitleSpec=function(){var a;(a=this.data)!=null&&a.titleLength&&(this.titleSize=this.elementsPerRow<=3?this.data.titleLength<=10?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL":this.data.titleLength<=13?"TITLE_SIZE_LARGE":this.data.titleLength<=30?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL")};
_.f.logoWithPadding=function(a){var b,c,d;return(a=(b=this.getCurrentLogo(a,this.isDarkTheme))==null?void 0:(c=b.thumbnails)==null?void 0:(d=c[0])==null?void 0:d.height)&&a%31===0?!0:!1};
_.f.onUpdateElementsPerRowAction=function(a){a&&this.elementsPerRow!==a&&(this.elementsPerRow=a)};
var C6=c7c;C6.prototype.elementsPerRowChanged=C6.prototype.elementsPerRowChanged;C6.prototype.dataChanged=C6.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],C6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],C6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],C6.prototype,"ytdDismissibleItemBehavior",void 0);
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],C6.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],C6.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],C6.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],C6.prototype,"currentColorPalette",void 0);_.U([_.O(),_.W("design:type",Object)],C6.prototype,"primaryButton",void 0);
_.U([_.O({reflectToAttribute:!0,value:3}),_.W("design:type",Number)],C6.prototype,"elementsPerRow",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],C6.prototype,"isDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],C6.prototype,"titleSize",void 0);_.U([_.O(),_.W("design:type",Number)],C6.prototype,"videoMetadataColor",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Fp}),_.W("design:type",Boolean)],C6.prototype,"miniMode",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.W("design:type",Boolean)],C6.prototype,"isFirstFeedItem",void 0);_.U([_.O({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],C6.prototype,"roundedContainer",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.W("design:type",Boolean)],C6.prototype,"hasOverflowButton",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],C6.prototype,"dataChanged",null);_.U([_.N("elementsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],C6.prototype,"elementsPerRowChanged",null);C6=_.U([_.Q({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],C6);
_.S(C6,"ytd-brand-video-singleton-renderer",function(){if(b7c!==void 0)return b7c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-singleton-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" class="style-scope ytd-brand-video-singleton-renderer">\n    <div id="thumbnail-container" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n      <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n    </div>\n    <div id="metadata-container" class="style-scope ytd-brand-video-singleton-renderer">\n      <div id="metadata-text-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="header-container" hidden="[[data.overflowButton]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-img-shadow height$="[[getLogoHeight(data)]]" hidden="[[!data.lightLogoImage]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="featured-badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" hidden="[[!data.overflowButton]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n      </div>\n      <div id="metadata-video-container" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n        <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n      </div>\n      <div id="button-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="primary-button" class="style-scope ytd-brand-video-singleton-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return b7c=a},{mode:_.as("kevlar_poly_si_batch_j070")?1:2});var d7c;var e7c=_.Rr(function(a){var b=a.data;return _.q(_.Ps,{data:function(){return b().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(b().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var c=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":c=88;break a;default:c=88}return c},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return b().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"ph"),g7c=_.Rr(function(a){var b=a.metadataRow;
var c=a.delimiter;return _.q(_.ri,{each:function(){return b().textParts||[]},
keyBy:"INDEX"},function(d,e){return _.q(_.Wh,null,_.q(_.tt,{text:d,noWrap:!0,userInput:!0}),_.q(f7c,{delimiter:c,max:function(){return b().textParts.length},
index:e}))})},"qh"),f7c=_.Rr(function(a){var b=a.delimiter;
var c=a.max;var d=a.index;return _.q(_.qi,{cond:function(){return(b==null?void 0:b())&&c()-1>d()},
then:function(){return _.q("span",null,b)}})},"rh"),h7c=_.Rr(function(a){var b=a.data;
a={};return _.q("yt-profile-page-header-information-view-model",{class:_.et("profile-page-header-information-view-model-wiz",(a["profile-page-header-information-view-model-wiz--mobile"]=!1,a))},_.q(_.qi,{cond:function(){return b().onTap},
then:function(){return _.q(_.rt,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.Ds(b().onTap)}},_.q(_.Hu,{data:function(){return b().thumbnail}},{profilePageHeaderThumbnailViewModel:e7c}))},
else:function(){return _.q("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.q(_.Hu,{data:function(){return b().thumbnail}},{profilePageHeaderThumbnailViewModel:e7c}))}}),_.q("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.q(_.qi,{cond:function(){return b().onTap},
then:function(){return _.q(_.Hu,{data:function(){return b().title}},{profilePageHeaderTitleViewModel:function(c){var d=c.data;
return _.q(_.rt,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.Ds(d().onTap)}},_.q(_.tt,{text:function(){return d().title}}))}})},
else:function(){return _.q(_.Hu,{data:function(){return b().title}},{profilePageHeaderTitleViewModel:function(c){var d=c.data;
return _.q(_.tt,{text:function(){return d().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.q(_.Hu,{data:function(){return b().metadata}},{profilePageHeaderMetadataViewModel:function(c){var d=c.data;
return _.q(_.qi,{cond:function(){return d().metadataRows},
then:function(e){return _.q("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.q(_.ri,{each:e,keyBy:"INDEX"},function(g,k){return _.q(_.Wh,null,_.q(g7c,{metadataRow:g,delimiter:" \u2022 "}),_.q(f7c,{delimiter:" \u2022 ",max:function(){return e().length},
index:k}))}))}})}})))},"sh");
h7c.idomCompat=!0;_.Ts(h7c,"yt-profile-page-header-information-view-model",{props:{data:_.VG}});var i7c=function(){return _.P.apply(this,arguments)||this};
_.z(i7c,_.P);i7c.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
var j7c=i7c;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],j7c.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],j7c.prototype,"data",void 0);j7c=_.U([_.Q({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],j7c);
_.S(j7c,"ytd-effect-pivot-header-view-model",function(){if(d7c!==void 0)return d7c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-effect-pivot-header-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-effect-pivot-header-view-model"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return d7c=
a},{mode:1});var k7c;var l7c=function(){return _.P.apply(this,arguments)||this};
_.z(l7c,_.P);l7c.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
var m7c=l7c;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],m7c.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],m7c.prototype,"data",void 0);m7c=_.U([_.Q({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],m7c);
_.S(m7c,"ytd-source-pivot-header-renderer",function(){if(k7c!==void 0)return k7c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-source-pivot-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-source-pivot-header-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return k7c=a},{mode:1});_.Ts(_.Rr(function(a){var b=function(){return _.y(a.data().flowRoot,E6c)};
_.wi(function(){var c=b(),d=function(){},e=function(){};
if(c){var g,k,m=(k=_.y((g=c.steps)==null?void 0:g[0],_.Yoc))==null?void 0:k.stepId;x6c(c,m||"");d=z6c(c);e=A6c(c)}_.zh(function(){d();d=function(){};
e();e=function(){}})});
return _.q("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.q(_.E0b,{contentId:function(){return a.data().contentId}},function(){return _.q("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.q(_.qi,{cond:b,
then:function(c){return _.q(_.Drc,{data:c})}}))}))},"th"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.VG}});_.Ts(_.Rr(function(){return _.q("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.q("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.q("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.q(_.lsc,null)),_.q(_.w3b,{data:{rows:1},isExploreHub:!0}))},"uh"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.Ts(_.Rr(function(a){var b=a.data;var c=a.standardUnitMinWidth;a=_.Pl();var d=_.h((0,_.B3b)(b)),e=d.next().value,g=d.next().value,k=function(){var n,r=(n=e())==null?void 0:n.contents;return r==null||r.length===0},m=function(){g(Object.assign({},e(),{contents:[]}))};
_.Yl(a,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var n=_.y(b().chipsShelf,F6c);if(n!=null&&n!=null&&n.autoselectChipOnVisible){var r,t,u=_.y(n==null?void 0:(r=n.contents)==null?void 0:r[(t=n.autoselectedChipIndex)!=null?t:0],_.VE);u&&u.tapCommand&&_.Gs(u.tapCommand)}}});
return _.q("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:a},_.q(_.E0b,{contentId:function(){return b().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.q("div",null,_.q("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.q(_.Hu,{data:function(){return b().header}},{sectionHeaderViewModel:function(n){return _.q(_.fQ,{data:n.data,
disableHorizontalPadding:!0})}})),_.q("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.q(_.Hu,{data:function(){return b().chipsShelf}},{chipsShelfViewModel:function(n){return _.q(_.B$b,{data:n.data,
callback:m,enableSingleChipSelection:!0})}})),_.q("div",null,_.q(_.qi,{cond:k,
then:function(){return _.q("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.q(_.w3b,{data:{rows:1},isExploreHub:!0}))}}),_.q(_.Hu,{data:function(){var n;
return(n=e())==null?void 0:n.contents}},{richShelfRenderer:function(n){return _.q(_.Z7b,{data:n.data,
isInnerShelf:!0,standardUnitMinWidth:c})}})))}))},"vh"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.VG,
standardUnitMinWidth:_.VG}});var n7c=function(){return _.P.apply(this,arguments)||this};
_.z(n7c,_.P);
n7c.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},messageRenderer:"ytd-message-renderer",alertBannerViewModel:{component:"yt-alert-banner-view-model",
params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
n7c.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
var D6=n7c;_.U([_.H(_.OI),_.W("design:type",Object)],D6.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],D6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.WM),_.W("design:type",Object)],D6.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],D6.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],D6.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Number)],D6.prototype,"standardUnitMinWidth",void 0);D6=_.U([_.Q({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],D6);
_.S(D6,"ytd-rich-section-renderer",function(){if(Z6c!==void 0)return Z6c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-section-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Z6c=a},{mode:_.as("kevlar_poly_si_batch_j029")?
1:2});_.Ts(_.tpc,"yt-profile-identity-info-view-model",{props:{data:_.VG,hideDivider:_.VG}});_.Ts(_.jac,"yt-page-header-view-model",{props:{data:_.VG,noPadding:_.VG,enableBanner:_.VG,cinematicContainerTopbarOffset:_.VG,allowCinematicContainerOverflow:_.VG,displayAsSidebar:_.VG,displayAsPanel:_.VG}});_.Ts(_.Rr(function(a){var b=a.data;var c=function(){var e;return(e=b().numColumns)!=null?e:2},d=function(){return c()>1?3:2};
a={};return _.q("ytd-rich-grid-group",{class:_.et("ytdRichGridGroupHost",(a.ytdRichGridGroupHostFirstColumn=function(){return b().colIndex===0},a)),
style:_.ot({"--ytd-rich-grid-group-num-columns":c,"--ytd-rich-grid-items-per-group":d})},_.q("div",{class:"ytdRichGridGroupContents"},_.q(_.Hu,{data:function(){var e;return(e=b().contents)==null?void 0:e.slice(0,d())}},{richItemRenderer:function(e){return _.q(_.W7b,{data:e.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"wh"),"ytd-rich-grid-group",{props:{data:_.VG}});var o7c=function(){var a=_.P.apply(this,arguments)||this;var b;a.currentDataContents=JSON.stringify((b=a.data)==null?void 0:b.contents);a.resizeOnObserverInit=!1;a.isInlinePreviewDisabled=_.w("web_disable_inline_preview");a.disableStickyFilterBar=!1;a.transparentBackgroundChipsBar=!1;a.hideChipsBar=!1;a.isWatchDefaultLayout=!0;a.continuationShowButton=!1;a.rowReducedHorizontalMargin=!1;a.useCompactList=!1;a.allVideosCount=0;a.allPlaylistCount=0;a.shouldRenderDownloadsBanner=!1;a.hasOptedIntoSmartDownloads=
!1;a.elementsPerRow=4;a.typographyBump=!1;a.showGnomeContents=!1;a.showExploreHubContents=!1;a.slimItemsPerRow=1;a.pageLoadingFromNavigation=!1;a.loggingRefactor=_.w("kevlar_rich_grid_logging_fix");a.resizeObserver=null;a.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-signal-action-soft-reload-page":"onSoftReloadPage","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-insert-rich-section-action":"insertRichSection"};
a.rendererToTagNameMap=new Map(Object.entries(a.contentMapping()).map(function(c){var d=_.h(c);c=d.next().value;d=d.next().value;return[c,d.component]}));
a.insertedContent=new Map;return a};
_.z(o7c,_.P);_.f=o7c.prototype;_.f.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var a=_.h(_.E(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),b=a.next();!b.done;b=a.next())b.value.useCompactList=this.useCompactList};
_.f.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var a=_.h(_.E(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),b=a.next();!b.done;b=a.next())b=b.value,b.sizing=this.sizing,b.typographyBump=this.typographyBump};
_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.f.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]"},
params:{renderedFromRichGrid:!0}},richSectionRenderer:{component:"ytd-rich-section-renderer",properties:{standardUnitMinWidth:"[[data.minItemWidth]]"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",showButton:"[[continuationShowButton]]",continuationTriggerOffset:"[[continuationTriggerOffset]]"}}}};
_.f.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]"}},chipBarViewModel:{component:"chip-bar-view-model",params:{className:"ytd-rich-grid-renderer chip-bar"}},pageHeaderViewModel:{component:"yt-page-header-view-model",params:{displayAsPanel:!0}},profileIdentityInfoViewModel:{component:"yt-profile-identity-info-view-model"}}},
bigYoodleData:{id:"big-yoodle",mapping:{brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",statementBannerRenderer:"ytd-statement-banner-renderer"},reuseComponents:!1},mastheadData:{id:"masthead-ad",mapping:{bannerPromoRenderer:"ytd-banner-promo-renderer",adSlotRenderer:"ytd-ad-slot-renderer"},reuseComponents:!1},shownItems:{id:"contents",mapping:this.contentMapping(),reuseComponents:!1}}};
_.f.attached=function(){document.addEventListener("yt-page-type-changed",_.gr(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.throttledOnResize=new _.lv(this.resizeObserved,_.$i("rich_grid_resize_delay_ms",50),this)};
_.f.detached=function(){var a;(a=this.resizeObserver)==null||a.disconnect();document.removeEventListener("yt-page-type-changed",_.gr(this,this.onPageChange))};
_.f.insertRichSection=function(a){var b=a.richItemTargetId;a=a.richSectionRendererToInsert;b&&a&&(this.insertedContent.set(b,a),this.reflowContent())};
_.f.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.f.computeIsInlinePreviewEnabled=function(a,b,c){return _.w("web_disable_inline_preview")?!1:!c&&_.Poc({miniplayerIsActive:a,miniplayerPlaybackState:b})};
_.f.computeSizing=function(){var a=_.OZa(this.data);if(a||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return a?this.useCompactList?"COMPACT":a:this.miniMode?"COMPACT":_.w("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.f.updateItemMinAndMaxWidth=function(){var a=_.$i("rich_grid_max_item_width",500);a>0&&_.fr(this.hostElement,{"--ytd-rich-grid-item-max-width":a+"px"});var b;a=this.getRichItemMinWidth((b=this.hostElement)==null?void 0:b.clientWidth);a>0&&_.fr(this.hostElement,{"--ytd-rich-grid-item-min-width":a+"px"})};
_.f.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.f.resizeObserved=function(){_.mo(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.f.navigateBackToHome=function(){_.w("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.w("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var a=_.v().resolve(_.Zt).isOnWatch(),b,c=((b=_.hIa(location.pathname))==null?void 0:b.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(c)||a)&&this.gnomeContents&&_.w("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);a&&this.exploreHubContents&&_.w("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.Yp().dispatch(_.hp({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.f.onPageChange=function(){var a=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.w("disable_chip_select_on_nav")||_.mo(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.zk.addJob(function(){a.pageLoadingFromNavigation=!1;_.w("disable_chip_select_on_nav")&&_.w("h5_reset_cache_and_filter_before_update_masthead")&&a.resetCacheAndIsFilteredFeed();a.setMasthead();a.maybeSetBigYoodle();a.forceRefreshAndLog();a.terminateVideoPreview();_.w("web_hide_gnome_until_user_navigates_back_to_home")&&
(a.dataChanged(),_.Qm(a,function(){if(a.showGnomeContents){var b=Array.from(_.E(a.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(d){d=_.E(d).querySelector("ytd-rich-shelf-renderer");return!!d&&d.isGnomeShelf()});
if(b){b=b.offsetTop-a.contentsElement.offsetTop;var c=_.v().resolve(_.Zt).getCurrentPage();c&&c.getPageScrollingElement().scrollTo({top:b,behavior:"smooth"})}}}));
_.w("web_hide_explore_hub_until_user_navigates_back_to_home")&&(a.dataChanged(),_.Qm(a,function(){if(a.showExploreHubContents&&!_.w("web_explore_hub_no_scroll")){var b=Array.from(_.E(a.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(d){return!!d.querySelector("ytd-talk-to-recs-flow-renderer")});
if(b){b=b.offsetTop-a.contentsElement.offsetTop;var c=_.v().resolve(_.Zt).getCurrentPage();c&&c.getPageScrollingElement().scrollTo({top:b,behavior:"smooth"})}}}))},8)):((_.w("web_hide_gnome_until_user_navigates_back_to_home")||_.w("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.f.dataChanged=function(){var a=this,b=_.$i("web_rich_grid_row_margin",0);b>0&&_.fr(this.hostElement,{"--ytd-rich-grid-row-margin":b+"px"});_.mo(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.Qm(this,function(){a.updateRichItemGridPositions();a.contentsElement&&_.fr(a.hostElement,{"--ytd-rich-grid-content-offset-top":a.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.f.initResizeObserver=function(){var a=this;if(window.ResizeObserver){var b;(b=this.resizeObserver)==null||b.disconnect();var c=!1;this.resizeObserver=new ResizeObserver(function(){if(c){var d;(d=a.resizeObserver)==null||d.disconnect();var e;(e=a.throttledOnResize)==null||e.fire();requestAnimationFrame(function(){var k;(k=a.throttledOnResize)==null||k.fire();a.initResizeObserver()})}else if(c=!0,a.resizeOnObserverInit){var g;
(g=a.throttledOnResize)==null||g.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.f.contentLengthChanged=function(){if(_.w("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.mo(this.hostElement,"ytd-rich-item-index-update-action")};
_.f.updateElementsPerRow=function(){_.mo(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.hp({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.hp({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.f.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.f.onRichShelfRendererCollapse=function(a){if(this.shownItems){var b=a.detail;a=this.shownItems.findIndex(function(d){var e,g;return((g=_.y(d==null?void 0:(e=d.richSectionRenderer)==null?void 0:e.content,_.BAb))==null?void 0:g.trackingParams)===b});
var c=a+1;a<0||c>=this.contentsElement.children.length||!this.shownItems[c].richItemRenderer||this.contentsElement.children[c].scrollIntoView({behavior:"smooth",block:"start"})}};
_.f.onSoftReloadPage=function(){this.scrollUpToTop()};
_.f.handleRerenderDownloadsData=function(){var a,b=JSON.stringify(this==null?void 0:(a=this.entityDrivenRichGridData)==null?void 0:a.contents)||"";_.w("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&b!==this.currentDataContents&&(this.set("data.contents",this.entityDrivenRichGridData.contents),this.currentDataContents=b,this.reflowContent(),_.mo(this.hostElement,"yt-rich-grid-resize-observed"))};
_.f.handlePlaylistRemoveVideosAction=function(a){var b;if(((b=_.y(a,_.Xzb))==null?0:b.setVideoIds)&&this.data&&this.data.contents){a=_.y(a,_.Xzb).setVideoIds;for(b=this.data.contents.length-1;b>=0;){var c=_.y(this.data.contents[b],_.LE);(c=c&&_.y(c.content,_.QE))&&c.setVideoId&&a.includes(c.setVideoId)&&this.splice("data.contents",b,1);b--}this.updateIndices()}};
_.f.updateIndices=function(){if(this.data&&this.data.contents)for(var a=0;a<this.data.contents.length;a++)this.set("data.contents."+a+".richItemRenderer.index",_.Vp(String(a+1)))};
_.f.hasTopRowInlinePlayableVideoWithEndorsement=function(a){var b;return!((b=a.slice(0,this.getItemsPerRow()))==null||!b.some(function(c){var d;c=_.y(c==null?void 0:(d=c.richItemRenderer)==null?void 0:d.content,_.KEb);var e;return(c==null?void 0:c.inlinePlaybackEndpoint)&&(c==null?void 0:(e=c.thumbnailOverlays)==null?void 0:e.some(function(g){return g.thumbnailOverlayEndorsementRenderer}))}))};
_.f.refreshGridLayoutNew=function(a,b,c,d){var e=d.postsPerRow;var g=d.slimItemsPerRow;var k=d.gameCardsPerRow;d=d.miniGameCardsPerRow;var m;if((m=this.data)==null||!m.contents||!this.containerWidth)return!1;var n;if((n=this.data.responsiveContainerConfiguration)==null?0:n.responsiveSize){var r=_.n1a(this.data.responsiveContainerConfiguration,this.containerWidth),t;m=_.hv(Object.assign({},r,{standardUnitMinWidth:(t=this.data)==null?void 0:t.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&r.isCompactList)}else m=_.hv({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(r=this.data)==null?void 0:r.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=m.typographyBump;t=!1;if(a||this.elementsPerRow!==m.numItems||this.postsPerRow!==e||this.slimItemsPerRow!==g||this.gameCardsPerRow!==
k||this.miniGameCardsPerRow!==d||this.gutter!==m.gutter)t=this.elementsPerRow!==m.numItems,this.elementsPerRow=m.numItems,this.postsPerRow=e,this.slimItemsPerRow=g,this.gameCardsPerRow=k,this.miniGameCardsPerRow=d,this.gutter=m.gutter,this.itemWidth=m.itemWidth,this.reflowContent(b),_.fr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":m.gutter+"px","--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,
"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),this.updateElementsPerRow(),this.updateMiniMode(c);this.ytdReduxBehavior.dispatch(_.hp({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:m.maxContainerWidth}));return t};
_.f.refreshGridLayout=function(a,b){var c,d=(c=this.hostElement)==null?void 0:c.clientWidth;this.containerWidth=this.adjustRichGridWidth(d,!0);var e;if((e=this.data)==null||!e.contents||!this.containerWidth)return a&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.w("rg_pending_reflow_ks")&&(a=!0,this.pendingForceReflow=!1);c=this.getRichItemMinWidth(d);var g=this.isShortsPanel?146:194,k=this.getMiniGameCardMinWidth(),m=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
d=c=this.calcElementsPerRow(c,m);(e=c<=3&&this.miniModeAllowed())&&(c=this.calcElementsPerRow(240,4));var n=this.calcMaxSlimElementsPerRow(c,m,this.isDefaultGrid);m=this.calcElementsPerRow(g,n);var r=this.calcElementsPerRow(this.isCompactGrid?g:154,n);g=this.calcElementsPerRow(this.isCompactGrid&&!_.w("enable_playables_reduced_card_count")?g:k,n);k=!1;if(this.sizing)return this.refreshGridLayoutNew(a,b,e,{postsPerRow:d,slimItemsPerRow:m,gameCardsPerRow:r,miniGameCardsPerRow:g});if(a||this.elementsPerRow!==
c||this.postsPerRow!==d||this.slimItemsPerRow!==m||this.gameCardsPerRow!==r||this.miniGameCardsPerRow!==g)k=this.elementsPerRow!==c,this.elementsPerRow=c,this.postsPerRow=d,this.slimItemsPerRow=m,this.gameCardsPerRow=r,this.miniGameCardsPerRow=g,this.reflowContent(b),this.updateElementsPerRow(),_.fr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,"--ytd-rich-grid-game-cards-per-row":""+
this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),(this.isShortsGridSlim||this.isShortsPanel)&&_.fr(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(e);_.mo(this.hostElement,"yt-rich-grid-layout-refreshed");return k};
_.f.getRichItemMinWidth=function(a){var b=_.$i("rich_grid_min_item_width",310);if(!_.w("kevlar_disable_min_width_override")){var c,d;b=(d=(c=this.data)==null?void 0:c.minItemWidth)!=null?d:b}return b+_.HZa(a)};
_.f.calcMaxSlimElementsPerRow=function(a,b,c){return(c===void 0?0:c)?a===1?2:a%2===0?_.w("web_shorts_2_by_3_reduce_items_per_row")&&a>=4?a/2*3-1:a/2*3:_.w("web_shorts_2_by_3_reduce_items_per_row")&&a>=3?a+1:a+2:b*2};
_.f.adjustRichGridWidth=function(a,b){var c=_.w("disable_rich_grid_guide_compensation");if(!this.isWatch&&!c){c=_.v().resolve(_.Xi(_.UI));var d=c==null?void 0:c.guideElement;if(!(!c||c.getData()||d!=null&&d.opened||c.getMiniGuideVisible()))if(c.canFitPersistentGuide(a)&&c.getGuideExpandsAutomatically()){var e,g,k=Number((e=window.getComputedStyle(this.hostElement))==null?void 0:(g=e.getPropertyValue("--app-drawer-width"))==null?void 0:g.replace("px",""));a-=k||0}else if(c.canFitMiniGuide(a)){var m;
e=Number((k=window.getComputedStyle(this.hostElement))==null?void 0:(m=k.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:m.replace("px",""));a-=e||0}}a>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(a-=b?32:48));return a};
_.f.calcElementsPerRow=function(a,b){var c=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),d=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((c+d)/(a+d))||1,b)};
_.f.reflowContent=function(a){var b=this;if(!this.isReflowing){this.isReflowing=!0;var c,d,e=!!((c=this.data)==null?0:(d=c.contents)==null?0:d.some(function(A){return _.y(A,_.sw)}));
c=this.getItemsPerRow();var g;d=(g=this.data)==null?void 0:g.reflowOptions;a&&(_.Lo("rgr_s"),_.Qm(this,function(){_.Lo("rgr_nrf")}));
a={};(g=_.E(this.hostElement).querySelector("#contents"))&&(a={contentElement:g,rendererToTagNameMap:this.rendererToTagNameMap});g=(g=this.data.contents)?g.slice():[];var k=(_.w("web_hide_gnome_behind_feed_filter_chip")||_.w("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,m=_.w("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,n=-1,r=-1;if(this.isHomePage&&m){for(m=0;m<g.length;m++){var t=void 0,u=void 0;_.y((t=g[m])==null?void 0:
(u=t.richSectionRenderer)==null?void 0:u.content,D6c)&&(r=m)}r>-1&&(this.exploreHubContents=g.splice(r,1))}if(this.isHomePage&&k){for(r=0;r<g.length;r++)u=t=void 0,(m=_.y((t=g[r])==null?void 0:(u=t.richSectionRenderer)==null?void 0:u.content,_.BAb))&&k&&(u=t=void 0,m=_.y((t=m)==null?void 0:(u=t.contents)==null?void 0:u[0],_.LE),t=void 0,_.y((t=m)==null?void 0:t.content,_.CBb)&&(n=r));n>-1&&(this.gnomeContents=g.splice(n,1))}var x=r6c(g,c,e,d,this.getRichGridStyle(),a,this.insertedContent);e=function(){b.shownItems=
x;b.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(x),_.Qm(this,e)):e()}};
_.f.getFirstRowItems=function(a){for(var b=[],c=0;c<a.length;c++){var d=void 0,e=void 0,g=void 0,k=void 0,m=void 0,n=void 0;if(((d=a[c])==null?void 0:(e=d.richItemRenderer)==null?void 0:e.rowIndex)===0||((g=a[c])==null?void 0:(k=g.richGroupRenderer)==null?void 0:k.rowIndex)===0||((m=a[c])==null?void 0:(n=m.richSectionRenderer)==null?void 0:n.rowIndex)===0)b.push(a[c]);else break}return b};
_.f.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.f.handleChipCloudChipSelectAction=function(a,b){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.w("web_hide_gnome_behind_feed_filter_chip")&&(b?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.f.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.w("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.f.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.w("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.f.terminateVideoPreview=function(){_.mo(this.hostElement,"yt-terminate-video-preview-action")};
_.f.updateRichItemGridPositions=function(){var a={gridData:{gridColumnCount:this.elementsPerRow}},b;if((b=this.data)==null?0:b.trackingParams)this.loggingRefactor?_.ls().stateChanged(this.data.trackingParams,a):(b=_.En())&&_.Zo(b,_.ps(this.data.trackingParams),a);_.mo(this.hostElement,"ytd-rich-item-index-update-action")};
_.f.miniModeAllowed=function(){return _.w("disable_channels_mini_mode")?!1:this.isChannelPage};
_.f.getMiniGameCardMinWidth=function(){return _.w("enable_playables_reduced_card_count")?240:154};
_.f.updateMiniMode=function(a){this.miniMode=this.miniModeAllowed()&&a;this.ytdReduxBehavior.dispatch(_.hp({type:"SET_RICH_GRID_MINI_MODE",payload:a}))};
_.f.isCurrentPage=function(){return location.pathname===this.pagePath};
_.f.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var a=_.v().resolve(_.Zt).getCurrentPage();a&&a.setScrollTop(0)}};
_.f.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.f.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.f.maybeSetBigYoodle=function(){var a,b=(a=this.data)==null?void 0:a.bigYoodle;this.bigYoodleData!==b&&(this.bigYoodleData=b)};
_.f.setMasthead=function(){var a;((a=this.data)==null?0:a.masthead)?this.mastheadData=this.data.masthead:_.w("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.f.getRichGridStyle=function(){var a,b;return(b=(a=this.data)==null?void 0:a.style)!=null?b:"RICH_GRID_STYLE_UNKNOWN"};
_.f.onIsShortsGridChange=function(){var a=this.ytdReduxBehavior,b=a.dispatch,c=this.getRichGridStyle();b.call(a,_.hp({type:"SET_RICH_GRID_STYLE",payload:c}))};
_.Um.Object.defineProperties(o7c.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this.data)==null?void 0:a.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this.data)==null?void 0:a.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var a=_.v().resolve(_.Zt).getCurrentPage(),b,c,d;return(((b=this.data)==null?void 0:b.targetId)==="browse-feedFEsfv_audio_pivot"||_.w("web_enable_channel_pivot_panel")&&((c=this.data)==null?void 0:c.targetId)==="browse-feedFEsfv_channel_pivot"||_.w("web_enable_effect_pivot_panel")&&((d=this.data)==null?void 0:d.targetId)==="browse-feedFEsfv_effect_pivot")&&(a==null?void 0:a.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.w("kevlar_watch_grid_reduced_top_margin_rich_grid")}},
noTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&!this.isWatchDefaultLayout}},
topRowEndorsement:{configurable:!0,enumerable:!0,get:function(){return this.isInlinePreviewEnabled&&this.hasTopRowInlinePlayableVideoWithEndorsement(this.shownItems)}},
hideHeader:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null?0:a.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var a;return((a=_.v().resolve(_.Zt).getCurrentPage())==null?void 0:a.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var a;return((a=_.v().resolve(_.Zt).getCurrentPage())==null?void 0:a.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var a;return this.hideChipsBar||(((a=this.data)==null?void 0:a.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.w("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this.data)==null?void 0:a.targetId)||"")==="watch-next-feed"&&!_.w("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.data)==null?0:a.enableContentSpecificAspectRatio)||((b=this.data)==null?0:(c=b.responsiveContainerConfiguration)==null?0:c.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.$i("web_continuation_handler_margin",0):0}}});
var E6=o7c;E6.prototype.onIsShortsGridChange=E6.prototype.onIsShortsGridChange;E6.prototype.onReloadContinuationFinish=E6.prototype.onReloadContinuationFinish;E6.prototype.reflowContent=E6.prototype.reflowContent;E6.prototype.handleRerenderDownloadsData=E6.prototype.handleRerenderDownloadsData;E6.prototype.onRichShelfRendererCollapse=E6.prototype.onRichShelfRendererCollapse;E6.prototype.onRequestElementsPerRow=E6.prototype.onRequestElementsPerRow;E6.prototype.contentLengthChanged=E6.prototype.contentLengthChanged;
E6.prototype.dataChanged=E6.prototype.dataChanged;E6.prototype.onSizingChange=E6.prototype.onSizingChange;E6.prototype.onUseCompactListChange=E6.prototype.onUseCompactListChange;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],E6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],E6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OD),_.W("design:type",Object)],E6.prototype,"ironResizableBehavior",void 0);
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],E6.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.WM),_.W("design:type",Object)],E6.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],E6.prototype,"componentBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],E6.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],E6.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0,selector:_.Fp}),_.W("design:type",Boolean)],E6.prototype,"miniMode",void 0);_.U([_.O({value:[]}),_.W("design:type",Array)],E6.prototype,"shownItems",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],E6.prototype,"isReflowing",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],E6.prototype,"isFilteredFeed",void 0);_.U([_.O({selector:_.wFa}),_.W("design:type",Boolean)],E6.prototype,"guideIsExpanded",void 0);
_.U([_.O({selectorArgs:["entitySelectorType"],selector:function(a,b){if(_.w("kevlar_modern_downloads_page")&&b&&b!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(b){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var c=a.entities;b=_.Dp(c);var d=_.rFa(c),e=_.NFa(a),g=_.MFa(a);a=_.OFa(a);var k=_.nFa(c),m=_.yEa(b);c=_.Ep(c);return _.i5a(b,d,k,e,g,m,c,a);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return b=_.Dp(a.entities),_.j5a(b);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return b=
_.jFa(a.entities),_.j5a(b);default:_.Dl(new _.qj("Error: entitySelectorType defined but not matched in selector.",a,b))}}}),
_.W("design:type",Object)],E6.prototype,"entityDrivenRichGridData",void 0);_.U([_.O(),_.W("design:type",Object)],E6.prototype,"currentDataContents",void 0);_.U([_.O(),_.W("design:type",Object)],E6.prototype,"resizeOnObserverInit",void 0);_.U([_.O(),_.W("design:type",Object)],E6.prototype,"bigYoodleData",void 0);_.U([_.O(),_.W("design:type",Object)],E6.prototype,"mastheadData",void 0);_.U([_.O(),_.W("design:type",Boolean)],E6.prototype,"isInlinePreviewDisabled",void 0);
_.U([_.O(),_.W("design:type",Object)],E6.prototype,"disableStickyFilterBar",void 0);_.U([_.O(),_.W("design:type",Object)],E6.prototype,"transparentBackgroundChipsBar",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],E6.prototype,"hideChipsBar",void 0);_.U([_.O(),_.W("design:type",Object)],E6.prototype,"isWatchDefaultLayout",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],E6.prototype,"continuationShowButton",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],E6.prototype,"rowReducedHorizontalMargin",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],E6.prototype,"useCompactList",void 0);_.U([_.O({selector:_.FFa}),_.W("design:type",Object)],E6.prototype,"allVideosCount",void 0);_.U([_.O({selector:_.d3a}),_.W("design:type",Object)],E6.prototype,"allPlaylistCount",void 0);_.U([_.O({selector:_.MFa}),_.W("design:type",Object)],E6.prototype,"shouldRenderDownloadsBanner",void 0);
_.U([_.O({selector:_.NFa}),_.W("design:type",Object)],E6.prototype,"hasOptedIntoSmartDownloads",void 0);_.U([_.N("useCompactList"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E6.prototype,"onUseCompactListChange",null);_.U([_.N("sizing","typographyBump"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E6.prototype,"onSizingChange",null);
_.U([_.O({selector:_.BFa}),_.W("design:type",Number)],E6.prototype,"miniplayerPlaybackState",void 0);_.U([_.O({selector:_.Hp}),_.W("design:type",Boolean)],E6.prototype,"miniplayerIsActive",void 0);_.U([_.O({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.W("design:type",Boolean)],E6.prototype,"isInlinePreviewEnabled",void 0);
_.U([_.O({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.W("design:type",String)],E6.prototype,"sizing",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],E6.prototype,"elementsPerRow",void 0);_.U([_.O(),_.W("design:type",Object)],E6.prototype,"typographyBump",void 0);_.U([_.O(),_.W("design:type",Number)],E6.prototype,"itemWidth",void 0);
_.U([_.ir("#header"),_.W("design:type",HTMLElement)],E6.prototype,"headerElement",void 0);_.U([_.ir("#contents"),_.W("design:type",HTMLElement)],E6.prototype,"contentsElement",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E6.prototype,"dataChanged",null);_.U([_.mr("data.contents.length"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E6.prototype,"contentLengthChanged",null);
_.U([_.M("yt-request-elements-per-row"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E6.prototype,"onRequestElementsPerRow",null);_.U([_.M("yt-rich-shelf-renderer-collapse"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],E6.prototype,"onRichShelfRendererCollapse",null);
_.U([_.mr("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","allPlaylistCount","entityDrivenRichGridData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E6.prototype,"handleRerenderDownloadsData",null);_.U([_.K("data"),_.W("design:type",String),_.W("design:paramtypes",[])],E6.prototype,"entitySelectorType",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data.targetId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"isSub",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.targetId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"isWatch",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.targetId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"isShortsPanel",null);
_.U([_.O({reflectToAttribute:!0}),_.K("isWatch"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"reducedTopMargin",null);_.U([_.O({reflectToAttribute:!0}),_.K("data","isWatch","isWatchDefaultLayout"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"noTopMargin",null);_.U([_.O({reflectToAttribute:!0}),_.K("isInlinePreviewEnabled","shownItems"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"topRowEndorsement",null);
_.U([_.K("data.header"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"hideHeader",null);_.U([_.M("yt-rich-grid-reflow"),_.W("design:type",Function),_.W("design:paramtypes",[Boolean]),_.W("design:returntype")],E6.prototype,"reflowContent",null);_.U([_.M("yt-reload-continuation-finish"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E6.prototype,"onReloadContinuationFinish",null);
_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"isSlimGrid",null);_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"isShortsGrid",null);_.U([_.K("data","isSlimGrid","isShortsGrid"),_.O(),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"noRichItemGutterMargins",null);
_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"isShortsGridSlim",null);_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"isCompactGrid",null);_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"isDefaultGrid",null);
_.U([_.K("data.targetId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"hideChipsBarOnHome",null);_.U([_.K("data.targetId"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"hideChipsBarOnWatch",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E6.prototype,"onIsShortsGridChange",null);
_.U([_.K("data.enableContentSpecificAspectRatio"),_.O(),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"force16By9ThumbnailAspectRatio",null);_.U([_.K("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],E6.prototype,"continuationTriggerOffset",null);E6=_.U([_.Q({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],E6);
_.S(E6,"ytd-rich-grid-renderer",function(){if(T6c!==void 0)return T6c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="spinner-container" class="style-scope ytd-rich-grid-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading()]]" class="style-scope ytd-rich-grid-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class="style-scope ytd-rich-grid-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return T6c=a},{mode:2});var p7c;var q7c;var r7c=function(){return _.P.apply(this,arguments)||this};
_.z(r7c,_.P);var s7c=r7c;_.U([_.O(),_.W("design:type",Object)],s7c.prototype,"data",void 0);s7c=_.U([_.wr({is:"yt-alert-renderer",disableElementRegistration:!0})],s7c);
_.S(s7c,"yt-alert-renderer",function(){if(q7c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_renderer.yt.alert.renderer.css.js--\x3e<div id="container" class$="[[data.type]] style-scope yt-alert-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope yt-alert-renderer"></yt-formatted-string>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;p7c===void 0&&(p7c=document.createElement("template"));var d=p7c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);q7c=a}a=q7c;return a},{mode:2});
}catch(e){_._DumpException(e)}
try{
var msc;msc={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}};_.nsc=_.Rr(function(a){var b=_.nu(),c=_.v().resolve(_.Ms);_.pi(function(){requestAnimationFrame(function(){var e;(e=b.lottieEl)==null||e.addEventListener("DOMLoaded",function(){var g;(g=a.onLottieLoaded)==null||g.call(a)})})});
var d={};return _.q("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var e;return((e=a.data)==null?void 0:e.call(a).targetId)||""}},_.q(_.gt,{className:_.et((d.ytChatLoadingViewModelRtl=c==="rtl",d)),
animationName:function(){return msc.animationConfig.name},
data:msc,animationRef:b}))},"Gf");
}catch(e){_._DumpException(e)}
try{
var Ilc;Ilc=function(a,b){b=b.width!==window.innerWidth||b.height!==window.innerHeight;document.visibilityState==="hidden"||b||a&&_.Bl(a)};
_.Jlc=function(a,b){b=b===void 0?{}:b;var c,d,e,g,k,m,n,r,t,u,x,A;return _.l(function(C){switch(C.nextAddress){case 1:c=b;d=c.shouldWrap===void 0?!0:c.shouldWrap;e=c.skipTransitionTimeoutMs===void 0?300:c.skipTransitionTimeoutMs;g=c.beforeTransition;k=c.afterTransition;if(!d||!document.startViewTransition||document.visibilityState==="hidden")return C.return(a());m={width:window.innerWidth,height:window.innerHeight};(n=g)==null||n();_.pe(C,2);r=document.startViewTransition(a);t=setTimeout(function(){r.skipTransition();
var F;(F=k)==null||F()},e);
return _.p(C,r.ready,4);case 4:return clearTimeout(t),_.p(C,r.finished,5);case 5:clearTimeout(t);(u=k)==null||u();_.Jj(C,0);break;case 2:x=_.te(C),(A=k)==null||A(),Ilc(x,m),_.ue(C)}})};
_.JW=function(a){return a.watch.isTheaterMode};
_.Klc=function(a){var b=_.pg("DIV");a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=_.pg("DIV");_.ydb(a,"200px","200px");b.appendChild(a);document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;_.qg(b);return a};
_.KW=function(){for(var a=Array(36),b=0,c,d=0;d<36;d++)d==8||d==13||d==18||d==23?a[d]="-":d==14?a[d]="4":(b<=2&&(b=33554432+Math.random()*16777216|0),c=b&15,b>>=4,a[d]=_.Uub[d==19?c&3|8:c]);return a.join("")};/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var Llc=_.hx(['<iron-iconset-svg name="icons" size="24">\n<svg><defs>\n<g id="3d-rotation"><path d="M7.52 21.48C4.25 19.94 1.91 16.76 1.55 13H.05C.56 19.16 5.71 24 12 24l.66-.03-3.81-3.81-1.33 1.32zm.89-6.52c-.19 0-.37-.03-.52-.08-.16-.06-.29-.13-.4-.24-.11-.1-.2-.22-.26-.37-.06-.14-.09-.3-.09-.47h-1.3c0 .36.07.68.21.95.14.27.33.5.56.69.24.18.51.32.82.41.3.1.62.15.96.15.37 0 .72-.05 1.03-.15.32-.1.6-.25.83-.44s.42-.43.55-.72c.13-.29.2-.61.2-.97 0-.19-.02-.38-.07-.56-.05-.18-.12-.35-.23-.51-.1-.16-.24-.3-.4-.43-.17-.13-.37-.23-.61-.31.2-.09.37-.2.52-.33.15-.13.27-.27.37-.42.1-.15.17-.3.22-.46.05-.16.07-.32.07-.48 0-.36-.06-.68-.18-.96-.12-.28-.29-.51-.51-.69-.2-.19-.47-.33-.77-.43C9.1 8.05 8.76 8 8.39 8c-.36 0-.69.05-1 .16-.3.11-.57.26-.79.45-.21.19-.38.41-.51.67-.12.26-.18.54-.18.85h1.3c0-.17.03-.32.09-.45s.14-.25.25-.34c.11-.09.23-.17.38-.22.15-.05.3-.08.48-.08.4 0 .7.1.89.31.19.2.29.49.29.86 0 .18-.03.34-.08.49-.05.15-.14.27-.25.37-.11.1-.25.18-.41.24-.16.06-.36.09-.58.09H7.5v1.03h.77c.22 0 .42.02.6.07s.33.13.45.23c.12.11.22.24.29.4.07.16.1.35.1.57 0 .41-.12.72-.35.93-.23.23-.55.33-.95.33zm8.55-5.92c-.32-.33-.7-.59-1.14-.77-.43-.18-.92-.27-1.46-.27H12v8h2.3c.55 0 1.06-.09 1.51-.27.45-.18.84-.43 1.16-.76.32-.33.57-.73.74-1.19.17-.47.26-.99.26-1.57v-.4c0-.58-.09-1.1-.26-1.57-.18-.47-.43-.87-.75-1.2zm-.39 3.16c0 .42-.05.79-.14 1.13-.1.33-.24.62-.43.85-.19.23-.43.41-.71.53-.29.12-.62.18-.99.18h-.91V9.12h.97c.72 0 1.27.23 1.64.69.38.46.57 1.12.57 1.99v.4zM12 0l-.66.03 3.81 3.81 1.33-1.33c3.27 1.55 5.61 4.72 5.96 8.48h1.5C23.44 4.84 18.29 0 12 0z"></path></g>\n<g id="accessibility"><path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z"></path></g>\n<g id="accessible"><circle cx="12" cy="4" r="2"></circle><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19-.26C10.76 7.11 10 8.04 10 9.09V15c0 1.1.9 2 2 2h5v5h2v-5.5c0-1.1-.9-2-2-2h-3v-3.45c1.29 1.07 3.25 1.94 5 1.95zm-6.17 5c-.41 1.16-1.52 2-2.83 2-1.66 0-3-1.34-3-3 0-1.31.84-2.41 2-2.83V12.1c-2.28.46-4 2.48-4 4.9 0 2.76 2.24 5 5 5 2.42 0 4.44-1.72 4.9-4h-2.07z"></path></g>\n<g id="account-balance"><path d="M4 10v7h3v-7H4zm6 0v7h3v-7h-3zM2 22h19v-3H2v3zm14-12v7h3v-7h-3zm-4.5-9L2 6v2h19V6l-9.5-5z"></path></g>\n<g id="account-balance-wallet"><path d="M21 18v1c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2V5c0-1.1.89-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h9zm-9-2h10V8H12v8zm4-2.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path></g>\n<g id="account-box"><path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1H6v-1z"></path></g>\n<g id="account-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"></path></g>\n<g id="add"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"></path></g>\n<g id="add-alert"><path d="M10.01 21.01c0 1.1.89 1.99 1.99 1.99s1.99-.89 1.99-1.99h-3.98zm8.87-4.19V11c0-3.25-2.25-5.97-5.29-6.69v-.72C13.59 2.71 12.88 2 12 2s-1.59.71-1.59 1.59v.72C7.37 5.03 5.12 7.75 5.12 11v5.82L3 18.94V20h18v-1.06l-2.12-2.12zM16 13.01h-3v3h-2v-3H8V11h3V8h2v3h3v2.01z"></path></g>\n<g id="add-box"><path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"></path></g>\n<g id="add-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"></path></g>\n<g id="add-circle-outline"><path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></g>\n<g id="add-shopping-cart"><path d="M11 9h2V6h3V4h-3V1h-2v3H8v2h3v3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm-9.83-3.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.86-7.01L19.42 4h-.01l-1.1 2-2.76 5H8.53l-.13-.27L6.16 6l-.95-2-.94-2H1v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.13 0-.25-.11-.25-.25z"></path></g>\n<g id="alarm"><path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path></g>\n<g id="alarm-add"><path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7zm1-11h-2v3H8v2h3v3h2v-3h3v-2h-3V9z"></path></g>\n<g id="alarm-off"><path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 11.16 6 12 6zm10-.28l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM2.92 2.29L1.65 3.57 2.98 4.9l-1.11.93 1.42 1.42 1.11-.94.8.8C3.83 8.69 3 10.75 3 13c0 4.97 4.02 9 9 9 2.25 0 4.31-.83 5.89-2.2l2.2 2.2 1.27-1.27L3.89 3.27l-.97-.98zm13.55 16.1C15.26 19.39 13.7 20 12 20c-3.87 0-7-3.13-7-7 0-1.7.61-3.26 1.61-4.47l9.86 9.86zM8.02 3.28L6.6 1.86l-.86.71 1.42 1.42.86-.71z"></path></g>\n<g id="alarm-on"><path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7zm-1.46-5.47L8.41 12.4l-1.06 1.06 3.18 3.18 6-6-1.06-1.06-4.93 4.95z"></path></g>\n<g id="all-out"><path d="M16.21 4.16l4 4v-4zm4 12l-4 4h4zm-12 4l-4-4v4zm-4-12l4-4h-4zm12.95-.95c-2.73-2.73-7.17-2.73-9.9 0s-2.73 7.17 0 9.9 7.17 2.73 9.9 0 2.73-7.16 0-9.9zm-1.1 8.8c-2.13 2.13-5.57 2.13-7.7 0s-2.13-5.57 0-7.7 5.57-2.13 7.7 0 2.13 5.57 0 7.7z"></path></g>\n<g id="android"><path d="M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8 2 8.67 2 9.5v7c0 .83.67 1.5 1.5 1.5S5 17.33 5 16.5v-7C5 8.67 4.33 8 3.5 8zm17 0c-.83 0-1.5.67-1.5 1.5v7c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5v-7c0-.83-.67-1.5-1.5-1.5zm-4.97-5.84l1.3-1.3c.2-.2.2-.51 0-.71-.2-.2-.51-.2-.71 0l-1.48 1.48C13.85 1.23 12.95 1 12 1c-.96 0-1.86.23-2.66.63L7.85.15c-.2-.2-.51-.2-.71 0-.2.2-.2.51 0 .71l1.31 1.31C6.97 3.26 6 5.01 6 7h12c0-1.99-.97-3.75-2.47-4.84zM10 5H9V4h1v1zm5 0h-1V4h1v1z"></path></g>\n<g id="announcement"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z"></path></g>\n<g id="apps"><path d="M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"></path></g>\n<g id="archive"><path d="M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM12 17.5L6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z"></path></g>\n<g id="arrow-back"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"></path></g>\n<g id="arrow-downward"><path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"></path></g>\n<g id="arrow-drop-down"><path d="M7 10l5 5 5-5z"></path></g>\n<g id="arrow-drop-down-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 12l-4-4h8l-4 4z"></path></g>\n<g id="arrow-drop-up"><path d="M7 14l5-5 5 5z"></path></g>\n<g id="arrow-forward"><path d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"></path></g>\n<g id="arrow-upward"><path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"></path></g>\n<g id="aspect-ratio"><path d="M19 12h-2v3h-3v2h5v-5zM7 9h3V7H5v5h2V9zm14-6H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02z"></path></g>\n<g id="assessment"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"></path></g>\n<g id="assignment"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"></path></g>\n<g id="assignment-ind"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0 4c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H6v-1.4c0-2 4-3.1 6-3.1s6 1.1 6 3.1V19z"></path></g>\n<g id="assignment-late"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-6 15h-2v-2h2v2zm0-4h-2V8h2v6zm-1-9c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"></path></g>\n<g id="assignment-return"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm4 12h-4v3l-5-5 5-5v3h4v4z"></path></g>\n<g id="assignment-returned"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0 15l-5-5h3V9h4v4h3l-5 5z"></path></g>\n<g id="assignment-turned-in"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-2 14l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"></path></g>\n<g id="attachment"><path d="M2 12.5C2 9.46 4.46 7 7.5 7H18c2.21 0 4 1.79 4 4s-1.79 4-4 4H9.5C8.12 15 7 13.88 7 12.5S8.12 10 9.5 10H17v2H9.41c-.55 0-.55 1 0 1H18c1.1 0 2-.9 2-2s-.9-2-2-2H7.5C5.57 9 4 10.57 4 12.5S5.57 16 7.5 16H17v2H7.5C4.46 18 2 15.54 2 12.5z"></path></g>\n<g id="autorenew"><path d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z"></path></g>\n<g id="backspace"><path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12.59 12 9 8.41 10.41 7 14 10.59 17.59 7 19 8.41 15.41 12 19 15.59z"></path></g>\n<g id="backup"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"></path></g>\n<g id="block"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z"></path></g>\n<g id="book"><path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"></path></g>\n<g id="bookmark"><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"></path></g>\n<g id="bookmark-border"><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"></path></g>\n<g id="bug-report"><path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6 8h-4v-2h4v2zm0-4h-4v-2h4v2z"></path></g>\n<g id="build"><path d="M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z"></path></g>\n<g id="cached"><path d="M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"></path></g>\n<g id="camera-enhance"><path d="M9 3L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2h-3.17L15 3H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-1l1.25-2.75L16 13l-2.75-1.25L12 9l-1.25 2.75L8 13l2.75 1.25z"></path></g>\n<g id="cancel"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"></path></g>\n<g id="card-giftcard"><path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm11 15H4v-2h16v2zm0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20v6z"></path></g>\n<g id="card-membership"><path d="M20 2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h4v5l4-2 4 2v-5h4c1.11 0 2-.89 2-2V4c0-1.11-.89-2-2-2zm0 13H4v-2h16v2zm0-5H4V4h16v6z"></path></g>\n<g id="card-travel"><path d="M20 6h-3V4c0-1.11-.89-2-2-2H9c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM9 4h6v2H9V4zm11 15H4v-2h16v2zm0-5H4V8h3v2h2V8h6v2h2V8h3v6z"></path></g>\n<g id="change-history"><path d="M12 7.77L18.39 18H5.61L12 7.77M12 4L2 20h20L12 4z"></path></g>\n<g id="check"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"></path></g>\n<g id="check-box"><path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"></path></g>\n<g id="check-box-outline-blank"><path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"></path></g>\n<g id="check-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"></path></g>\n<g id="chevron-left"><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"></path></g>\n<g id="chevron-right"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"></path></g>\n<g id="chrome-reader-mode"><path d="M13 12h7v1.5h-7zm0-2.5h7V11h-7zm0 5h7V16h-7zM21 4H3c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 15h-9V6h9v13z"></path></g>\n<g id="class"><path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"></path></g>\n<g id="clear"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"></path></g>\n<g id="close"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"></path></g>\n<g id="cloud"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z"></path></g>\n<g id="cloud-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.5 14H8c-1.66 0-3-1.34-3-3s1.34-3 3-3l.14.01C8.58 8.28 10.13 7 12 7c2.21 0 4 1.79 4 4h.5c1.38 0 2.5 1.12 2.5 2.5S17.88 16 16.5 16z"></path></g>\n<g id="cloud-done"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM10 17l-3.5-3.5 1.41-1.41L10 14.17 15.18 9l1.41 1.41L10 17z"></path></g>\n<g id="cloud-download"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z"></path></g>\n<g id="cloud-off"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-.64 2.11-1.56 2.62l1.45 1.45C23.16 18.16 24 16.68 24 15c0-2.64-2.05-4.78-4.65-4.96zM3 5.27l2.75 2.74C2.56 8.15 0 10.77 0 14c0 3.31 2.69 6 6 6h11.73l2 2L21 20.73 4.27 4 3 5.27zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h1.73z"></path></g>\n<g id="cloud-queue"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3z"></path></g>\n<g id="cloud-upload"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"></path></g>\n<g id="code"><path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"></path></g>\n<g id="compare-arrows"><path d="M9.01 14H2v2h7.01v3L13 15l-3.99-4v3zm5.98-1v-3H22V8h-7.01V5L11 9l3.99 4z"></path></g>\n<g id="content-copy"><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"></path></g>\n<g id="content-cut"><path d="M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1L9.64 7.64zM6 8c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm0 12c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm6-7.5c-.28 0-.5-.22-.5-.5s.22-.5.5-.5.5.22.5.5-.22.5-.5.5zM19 3l-6 6 2 2 7-7V3z"></path></g>\n<g id="content-paste"><path d="M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z"></path></g>\n<g id="copyright"><path d="M10.08 10.86c.05-.33.16-.62.3-.87s.34-.46.59-.62c.24-.15.54-.22.91-.23.23.01.44.05.63.13.2.09.38.21.52.36s.25.33.34.53.13.42.14.64h1.79c-.02-.47-.11-.9-.28-1.29s-.4-.73-.7-1.01-.66-.5-1.08-.66-.88-.23-1.39-.23c-.65 0-1.22.11-1.7.34s-.88.53-1.2.92-.56.84-.71 1.36S8 11.29 8 11.87v.27c0 .58.08 1.12.23 1.64s.39.97.71 1.35.72.69 1.2.91 1.05.34 1.7.34c.47 0 .91-.08 1.32-.23s.77-.36 1.08-.63.56-.58.74-.94.29-.74.3-1.15h-1.79c-.01.21-.06.4-.15.58s-.21.33-.36.46-.32.23-.52.3c-.19.07-.39.09-.6.1-.36-.01-.66-.08-.89-.23-.25-.16-.45-.37-.59-.62s-.25-.55-.3-.88-.08-.67-.08-1v-.27c0-.35.03-.68.08-1.01zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></g>\n<g id="create"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"></path></g>\n<g id="create-new-folder"><path d="M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"></path></g>\n<g id="credit-card"><path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"></path></g>\n<g id="dashboard"><path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"></path></g>\n<g id="date-range"><path d="M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"></path></g>\n<g id="delete"><path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"></path></g>\n<g id="delete-forever"><path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"></path></g>\n<g id="delete-sweep"><path d="M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3v10zM14 5h-3l-1-1H6L5 5H2v2h12z"></path></g>\n<g id="description"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"></path></g>\n<g id="dns"><path d="M20 13H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zM7 19c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM20 3H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1zM7 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"></path></g>\n<g id="done"><path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"></path></g>\n<g id="done-all"><path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"></path></g>\n<g id="donut-large"><path d="M11 5.08V2c-5 .5-9 4.81-9 10s4 9.5 9 10v-3.08c-3-.48-6-3.4-6-6.92s3-6.44 6-6.92zM18.97 11H22c-.47-5-4-8.53-9-9v3.08C16 5.51 18.54 8 18.97 11zM13 18.92V22c5-.47 8.53-4 9-9h-3.03c-.43 3-2.97 5.49-5.97 5.92z"></path></g>\n<g id="donut-small"><path d="M11 9.16V2c-5 .5-9 4.79-9 10s4 9.5 9 10v-7.16c-1-.41-2-1.52-2-2.84s1-2.43 2-2.84zM14.86 11H22c-.48-4.75-4-8.53-9-9v7.16c1 .3 1.52.98 1.86 1.84zM13 14.84V22c5-.47 8.52-4.25 9-9h-7.14c-.34.86-.86 1.54-1.86 1.84z"></path></g>\n<g id="drafts"><path d="M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2l-.01-10zM12 13L3.74 7.84 12 3l8.26 4.84L12 13z"></path></g>\n<g id="eject"><path d="M5 17h14v2H5zm7-12L5.33 15h13.34z"></path></g>\n<g id="error"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"></path></g>\n<g id="error-outline"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></g>\n<g id="euro-symbol"><path d="M15 18.5c-2.51 0-4.68-1.42-5.76-3.5H15v-2H8.58c-.05-.33-.08-.66-.08-1s.03-.67.08-1H15V9H9.24C10.32 6.92 12.5 5.5 15 5.5c1.61 0 3.09.59 4.23 1.57L21 5.3C19.41 3.87 17.3 3 15 3c-3.92 0-7.24 2.51-8.48 6H3v2h3.06c-.04.33-.06.66-.06 1 0 .34.02.67.06 1H3v2h3.52c1.24 3.49 4.56 6 8.48 6 2.31 0 4.41-.87 6-2.3l-1.78-1.77c-1.13.98-2.6 1.57-4.22 1.57z"></path></g>\n<g id="event"><path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"></path></g>\n<g id="event-seat"><path d="M4 18v3h3v-3h10v3h3v-6H4zm15-8h3v3h-3zM2 10h3v3H2zm15 3H7V5c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v8z"></path></g>\n<g id="exit-to-app"><path d="M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"></path></g>\n<g id="expand-less"><path d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"></path></g>\n<g id="expand-more"><path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"></path></g>\n<g id="explore"><path d="M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1c.61 0 1.1-.49 1.1-1.1s-.49-1.1-1.1-1.1zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm2.19 12.19L6 18l3.81-8.19L18 6l-3.81 8.19z"></path></g>\n<g id="extension"><path d="M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11z"></path></g>\n<g id="face"><path d="M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8 0-.29.02-.58.05-.86 2.36-1.05 4.23-2.98 5.21-5.37C11.07 8.33 14.05 10 17.42 10c.78 0 1.53-.09 2.25-.26.21.71.33 1.47.33 2.26 0 4.41-3.59 8-8 8z"></path></g>\n<g id="favorite"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"></path></g>\n<g id="favorite-border"><path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"></path></g>\n<g id="feedback"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"></path></g>\n<g id="file-download"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"></path></g>\n<g id="file-upload"><path d="M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"></path></g>\n<g id="filter-list"><path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"></path></g>\n<g id="find-in-page"><path d="M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75L20 19.59zM9 13c0 1.66 1.34 3 3 3s3-1.34 3-3-1.34-3-3-3-3 1.34-3 3z"></path></g>\n<g id="find-replace"><path d="M11 6c1.38 0 2.63.56 3.54 1.46L12 10h6V4l-2.05 2.05C14.68 4.78 12.93 4 11 4c-3.53 0-6.43 2.61-6.92 6H6.1c.46-2.28 2.48-4 4.9-4zm5.64 9.14c.66-.9 1.12-1.97 1.28-3.14H15.9c-.46 2.28-2.48 4-4.9 4-1.38 0-2.63-.56-3.54-1.46L10 12H4v6l2.05-2.05C7.32 17.22 9.07 18 11 18c1.55 0 2.98-.51 4.14-1.36L20 21.49 21.49 20l-4.85-4.86z"></path></g>\n<g id="fingerprint"><path d="M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12.01 2c2.13 0 3.99.47 6.03 1.52.25.13.34.43.21.67-.09.18-.26.28-.44.28zM3.5 9.72c-.1 0-.2-.03-.29-.09-.23-.16-.28-.47-.12-.7.99-1.4 2.25-2.5 3.75-3.27C9.98 4.04 14 4.03 17.15 5.65c1.5.77 2.76 1.86 3.75 3.25.16.22.11.54-.12.7-.23.16-.54.11-.7-.12-.9-1.26-2.04-2.25-3.39-2.94-2.87-1.47-6.54-1.47-9.4.01-1.36.7-2.5 1.7-3.4 2.96-.08.14-.23.21-.39.21zm6.25 12.07c-.13 0-.26-.05-.35-.15-.87-.87-1.34-1.43-2.01-2.64-.69-1.23-1.05-2.73-1.05-4.34 0-2.97 2.54-5.39 5.66-5.39s5.66 2.42 5.66 5.39c0 .28-.22.5-.5.5s-.5-.22-.5-.5c0-2.42-2.09-4.39-4.66-4.39-2.57 0-4.66 1.97-4.66 4.39 0 1.44.32 2.77.93 3.85.64 1.15 1.08 1.64 1.85 2.42.19.2.19.51 0 .71-.11.1-.24.15-.37.15zm7.17-1.85c-1.19 0-2.24-.3-3.1-.89-1.49-1.01-2.38-2.65-2.38-4.39 0-.28.22-.5.5-.5s.5.22.5.5c0 1.41.72 2.74 1.94 3.56.71.48 1.54.71 2.54.71.24 0 .64-.03 1.04-.1.27-.05.53.13.58.41.05.27-.13.53-.41.58-.57.11-1.07.12-1.21.12zM14.91 22c-.04 0-.09-.01-.13-.02-1.59-.44-2.63-1.03-3.72-2.1-1.4-1.39-2.17-3.24-2.17-5.22 0-1.62 1.38-2.94 3.08-2.94 1.7 0 3.08 1.32 3.08 2.94 0 1.07.93 1.94 2.08 1.94s2.08-.87 2.08-1.94c0-3.77-3.25-6.83-7.25-6.83-2.84 0-5.44 1.58-6.61 4.03-.39.81-.59 1.76-.59 2.8 0 .78.07 2.01.67 3.61.1.26-.03.55-.29.64-.26.1-.55-.04-.64-.29-.49-1.31-.73-2.61-.73-3.96 0-1.2.23-2.29.68-3.24 1.33-2.79 4.28-4.6 7.51-4.6 4.55 0 8.25 3.51 8.25 7.83 0 1.62-1.38 2.94-3.08 2.94s-3.08-1.32-3.08-2.94c0-1.07-.93-1.94-2.08-1.94s-2.08.87-2.08 1.94c0 1.71.66 3.31 1.87 4.51.95.94 1.86 1.46 3.27 1.85.27.07.42.35.35.61-.05.23-.26.38-.47.38z"></path></g>\n<g id="first-page"><path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"></path></g>\n<g id="flag"><path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"></path></g>\n<g id="flight-land"><path d="M2.5 19h19v2h-19zm7.18-5.73l4.35 1.16 5.31 1.42c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2.32-1.45-.39v5.17l1.6.43 5.31 1.43z"></path></g>\n<g id="flight-takeoff"><path d="M2.5 19h19v2h-19zm19.57-9.36c-.21-.8-1.04-1.28-1.84-1.06L14.92 10l-6.9-6.43-1.93.51 4.14 7.17-4.97 1.33-1.97-1.54-1.45.39 1.82 3.16.77 1.33 1.6-.43 5.31-1.42 4.35-1.16L21 11.49c.81-.23 1.28-1.05 1.07-1.85z"></path></g>\n<g id="flip-to-back"><path d="M9 7H7v2h2V7zm0 4H7v2h2v-2zm0-8c-1.11 0-2 .9-2 2h2V3zm4 12h-2v2h2v-2zm6-12v2h2c0-1.1-.9-2-2-2zm-6 0h-2v2h2V3zM9 17v-2H7c0 1.1.89 2 2 2zm10-4h2v-2h-2v2zm0-4h2V7h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zM5 7H3v12c0 1.1.89 2 2 2h12v-2H5V7zm10-2h2V3h-2v2zm0 12h2v-2h-2v2z"></path></g>\n<g id="flip-to-front"><path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm2 4v-2H3c0 1.1.89 2 2 2zM3 9h2V7H3v2zm12 12h2v-2h-2v2zm4-18H9c-1.11 0-2 .9-2 2v10c0 1.1.89 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12H9V5h10v10zm-8 6h2v-2h-2v2zm-4 0h2v-2H7v2z"></path></g>\n<g id="folder"><path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"></path></g>\n<g id="folder-open"><path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"></path></g>\n<g id="folder-shared"><path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-5 3c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm4 8h-8v-1c0-1.33 2.67-2 4-2s4 .67 4 2v1z"></path></g>\n<g id="font-download"><path d="M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.05 16.5l-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13h-2.09z"></path></g>\n<g id="forward"><path d="M12 8V4l8 8-8 8v-4H4V8z"></path></g>\n<g id="fullscreen"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"></path></g>\n<g id="fullscreen-exit"><path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"></path></g>\n<g id="g-translate"><path d="M20 5h-9.12L10 2H4c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h7l1 3h8c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zM7.17 14.59c-2.25 0-4.09-1.83-4.09-4.09s1.83-4.09 4.09-4.09c1.04 0 1.99.37 2.74 1.07l.07.06-1.23 1.18-.06-.05c-.29-.27-.78-.59-1.52-.59-1.31 0-2.38 1.09-2.38 2.42s1.07 2.42 2.38 2.42c1.37 0 1.96-.87 2.12-1.46H7.08V9.91h3.95l.01.07c.04.21.05.4.05.61 0 2.35-1.61 4-3.92 4zm6.03-1.71c.33.6.74 1.18 1.19 1.7l-.54.53-.65-2.23zm.77-.76h-.99l-.31-1.04h3.99s-.34 1.31-1.56 2.74c-.52-.62-.89-1.23-1.13-1.7zM21 20c0 .55-.45 1-1 1h-7l2-2-.81-2.77.92-.92L17.79 18l.73-.73-2.71-2.68c.9-1.03 1.6-2.25 1.92-3.51H19v-1.04h-3.64V9h-1.04v1.04h-1.96L11.18 6H20c.55 0 1 .45 1 1v13z"></path></g>\n<g id="gavel"><path d="M1 21h12v2H1zM5.245 8.07l2.83-2.827 14.14 14.142-2.828 2.828zM12.317 1l5.657 5.656-2.83 2.83-5.654-5.66zM3.825 9.485l5.657 5.657-2.828 2.828-5.657-5.657z"></path></g>\n<g id="gesture"><path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2.5h-2.47c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36.36-.66.66-.88.93l1.75 1.71zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"></path></g>\n<g id="get-app"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"></path></g>\n<g id="gif"><path d="M11.5 9H13v6h-1.5zM9 9H6c-.6 0-1 .5-1 1v4c0 .5.4 1 1 1h3c.6 0 1-.5 1-1v-2H8.5v1.5h-2v-3H10V10c0-.5-.4-1-1-1zm10 1.5V9h-4.5v6H16v-2h2v-1.5h-2v-1z"></path></g>\n<g id="grade"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"></path></g>\n<g id="group-work"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zM9.5 8c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5S9.5 9.38 9.5 8zm6.5 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"></path></g>\n<g id="help"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"></path></g>\n<g id="help-outline"><path d="M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"></path></g>\n<g id="highlight-off"><path d="M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></g>\n<g id="history"><path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"></path></g>\n<g id="home"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"></path></g>\n<g id="hourglass-empty"><path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"></path></g>\n<g id="hourglass-full"><path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6z"></path></g>\n<g id="http"><path d="M4.5 11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5v2zm2.5-.5h1.5V15H10v-4.5h1.5V9H7v1.5zm5.5 0H14V15h1.5v-4.5H17V9h-4.5v1.5zm9-1.5H18v6h1.5v-2h2c.8 0 1.5-.7 1.5-1.5v-1c0-.8-.7-1.5-1.5-1.5zm0 2.5h-2v-1h2v1z"></path></g>\n<g id="https"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"></path></g>\n<g id="important-devices"><path d="M23 11.01L18 11c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-9c0-.55-.45-.99-1-.99zM23 20h-5v-7h5v7zM20 2H2C.89 2 0 2.89 0 4v12c0 1.1.89 2 2 2h7v2H7v2h8v-2h-2v-2h2v-2H2V4h18v5h2V4c0-1.11-.9-2-2-2zm-8.03 7L11 6l-.97 3H7l2.47 1.76-.94 2.91 2.47-1.8 2.47 1.8-.94-2.91L15 9h-3.03z"></path></g>\n<g id="inbox"><path d="M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z"></path></g>\n<g id="indeterminate-check-box"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"></path></g>\n<g id="info"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"></path></g>\n<g id="info-outline"><path d="M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM11 9h2V7h-2v2z"></path></g>\n<g id="input"><path d="M21 3.01H3c-1.1 0-2 .9-2 2V9h2V4.99h18v14.03H3V15H1v4.01c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98v-14c0-1.11-.9-2-2-2zM11 16l4-4-4-4v3H1v2h10v3z"></path></g>\n<g id="invert-colors"><path d="M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9.95 21.58 12 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 19.59c-1.6 0-3.11-.62-4.24-1.76C6.62 16.69 6 15.19 6 13.59s.62-3.11 1.76-4.24L12 5.1v14.49z"></path></g>\n<g id="label"><path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"></path></g>\n<g id="label-outline"><path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16zM16 17H5V7h11l3.55 5L16 17z"></path></g>\n<g id="language"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"></path></g>\n<g id="last-page"><path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"></path></g>\n<g id="launch"><path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"></path></g>\n<g id="lightbulb-outline"><path d="M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7zm2.85 11.1l-.85.6V16h-4v-2.3l-.85-.6C7.8 12.16 7 10.63 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1z"></path></g>\n<g id="line-style"><path d="M3 16h5v-2H3v2zm6.5 0h5v-2h-5v2zm6.5 0h5v-2h-5v2zM3 20h2v-2H3v2zm4 0h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM3 12h8v-2H3v2zm10 0h8v-2h-8v2zM3 4v4h18V4H3z"></path></g>\n<g id="line-weight"><path d="M3 17h18v-2H3v2zm0 3h18v-1H3v1zm0-7h18v-3H3v3zm0-9v4h18V4H3z"></path></g>\n<g id="link"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></g>\n<g id="list"><path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"></path></g>\n<g id="lock"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"></path></g>\n<g id="lock-open"><path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm0 12H6V10h12v10z"></path></g>\n<g id="lock-outline"><path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9V6zM18 20H6V10h12v10z"></path></g>\n<g id="low-priority"><path d="M14 5h8v2h-8zm0 5.5h8v2h-8zm0 5.5h8v2h-8zM2 11.5C2 15.08 4.92 18 8.5 18H9v2l3-3-3-3v2h-.5C6.02 16 4 13.98 4 11.5S6.02 7 8.5 7H12V5H8.5C4.92 5 2 7.92 2 11.5z"></path></g>\n<g id="loyalty"><path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41 0-.55-.23-1.06-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7zm11.77 8.27L13 19.54l-4.27-4.27C8.28 14.81 8 14.19 8 13.5c0-1.38 1.12-2.5 2.5-2.5.69 0 1.32.28 1.77.74l.73.72.73-.73c.45-.45 1.08-.73 1.77-.73 1.38 0 2.5 1.12 2.5 2.5 0 .69-.28 1.32-.73 1.77z"></path></g>\n<g id="mail"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"></path></g>\n<g id="markunread"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"></path></g>\n<g id="markunread-mailbox"><path d="M20 6H10v6H8V4h6V0H6v6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2z"></path></g>\n<g id="menu"><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"></path></g>\n<g id="more-horiz"><path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"></path></g>\n<g id="more-vert"><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"></path></g>\n<g id="motorcycle"><path d="M19.44 9.03L15.41 5H11v2h3.59l2 2H5c-2.8 0-5 2.2-5 5s2.2 5 5 5c2.46 0 4.45-1.69 4.9-4h1.65l2.77-2.77c-.21.54-.32 1.14-.32 1.77 0 2.8 2.2 5 5 5s5-2.2 5-5c0-2.65-1.97-4.77-4.56-4.97zM7.82 15C7.4 16.15 6.28 17 5 17c-1.63 0-3-1.37-3-3s1.37-3 3-3c1.28 0 2.4.85 2.82 2H5v2h2.82zM19 17c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z"></path></g>\n<g id="move-to-inbox"><path d="M19 3H4.99c-1.11 0-1.98.9-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10zm-3-5h-2V7h-4v3H8l4 4 4-4z"></path></g>\n<g id="next-week"><path d="M20 7h-4V5c0-.55-.22-1.05-.59-1.41C15.05 3.22 14.55 3 14 3h-4c-1.1 0-2 .9-2 2v2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zM10 5h4v2h-4V5zm1 13.5l-1-1 3-3-3-3 1-1 4 4-4 4z"></path></g>\n<g id="note-add"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z"></path></g>\n<g id="offline-pin"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm5 16H7v-2h10v2zm-6.7-4L7 10.7l1.4-1.4 1.9 1.9 5.3-5.3L17 7.3 10.3 14z"></path></g>\n<g id="opacity"><path d="M17.66 8L12 2.35 6.34 8C4.78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z"></path></g>\n<g id="open-in-browser"><path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm-7 6l-4 4h3v6h2v-6h3l-4-4z"></path></g>\n<g id="open-in-new"><path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"></path></g>\n<g id="open-with"><path d="M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z"></path></g>\n<g id="pageview"><path d="M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-3.21 14.21l-2.91-2.91c-.69.44-1.51.7-2.39.7C9.01 16 7 13.99 7 11.5S9.01 7 11.5 7 16 9.01 16 11.5c0 .88-.26 1.69-.7 2.39l2.91 2.9-1.42 1.42z"></path></g>\n<g id="pan-tool"><path d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"></path></g>\n<g id="payment"><path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"></path></g>\n<g id="perm-camera-mic"><path d="M20 5h-3.17L15 3H9L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v-2.09c-2.83-.48-5-2.94-5-5.91h2c0 2.21 1.79 4 4 4s4-1.79 4-4h2c0 2.97-2.17 5.43-5 5.91V21h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-6 8c0 1.1-.9 2-2 2s-2-.9-2-2V9c0-1.1.9-2 2-2s2 .9 2 2v4z"></path></g>\n<g id="perm-contact-calendar"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H6v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1z"></path></g>\n<g id="perm-data-setting"><path d="M18.99 11.5c.34 0 .67.03 1 .07L20 0 0 20h11.56c-.04-.33-.07-.66-.07-1 0-4.14 3.36-7.5 7.5-7.5zm3.71 7.99c.02-.16.04-.32.04-.49 0-.17-.01-.33-.04-.49l1.06-.83c.09-.08.12-.21.06-.32l-1-1.73c-.06-.11-.19-.15-.31-.11l-1.24.5c-.26-.2-.54-.37-.85-.49l-.19-1.32c-.01-.12-.12-.21-.24-.21h-2c-.12 0-.23.09-.25.21l-.19 1.32c-.3.13-.59.29-.85.49l-1.24-.5c-.11-.04-.24 0-.31.11l-1 1.73c-.06.11-.04.24.06.32l1.06.83c-.02.16-.03.32-.03.49 0 .17.01.33.03.49l-1.06.83c-.09.08-.12.21-.06.32l1 1.73c.06.11.19.15.31.11l1.24-.5c.26.2.54.37.85.49l.19 1.32c.02.12.12.21.25.21h2c.12 0 .23-.09.25-.21l.19-1.32c.3-.13.59-.29.84-.49l1.25.5c.11.04.24 0 .31-.11l1-1.73c.06-.11.03-.24-.06-.32l-1.07-.83zm-3.71 1.01c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path></g>\n<g id="perm-device-information"><path d="M13 7h-2v2h2V7zm0 4h-2v6h2v-6zm4-9.99L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"></path></g>\n<g id="perm-identity"><path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"></path></g>\n<g id="perm-media"><path d="M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2V6zm20-2h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7 15l4.5-6 3.5 4.51 2.5-3.01L21 15H7z"></path></g>\n<g id="perm-phone-msg"><path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1zM12 3v10l3-3h6V3h-9z"></path></g>\n<g id="perm-scan-wifi"><path d="M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h-2v-6h2v6zm-2-8V6h2v2h-2z"></path></g>\n<g id="pets"><circle cx="4.5" cy="9.5" r="2.5"></circle><circle cx="9" cy="5.5" r="2.5"></circle><circle cx="15" cy="5.5" r="2.5"></circle><circle cx="19.5" cy="9.5" r="2.5"></circle><path d="M17.34 14.86c-.87-1.02-1.6-1.89-2.48-2.91-.46-.54-1.05-1.08-1.75-1.32-.11-.04-.22-.07-.33-.09-.25-.04-.52-.04-.78-.04s-.53 0-.79.05c-.11.02-.22.05-.33.09-.7.24-1.28.78-1.75 1.32-.87 1.02-1.6 1.89-2.48 2.91-1.31 1.31-2.92 2.76-2.62 4.79.29 1.02 1.02 2.03 2.33 2.32.73.15 3.06-.44 5.54-.44h.18c2.48 0 4.81.58 5.54.44 1.31-.29 2.04-1.31 2.33-2.32.31-2.04-1.3-3.49-2.61-4.8z"></path></g>\n<g id="picture-in-picture"><path d="M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98V5c0-1.1-.9-2-2-2zm0 16.01H3V4.98h18v14.03z"></path></g>\n<g id="picture-in-picture-alt"><path d="M19 11h-8v6h8v-6zm4 8V4.98C23 3.88 22.1 3 21 3H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H3V4.97h18v14.05z"></path></g>\n<g id="play-for-work"><path d="M11 5v5.59H7.5l4.5 4.5 4.5-4.5H13V5h-2zm-5 9c0 3.31 2.69 6 6 6s6-2.69 6-6h-2c0 2.21-1.79 4-4 4s-4-1.79-4-4H6z"></path></g>\n<g id="polymer"><path d="M19 4h-4L7.11 16.63 4.5 12 9 4H5L.5 12 5 20h4l7.89-12.63L19.5 12 15 20h4l4.5-8z"></path></g>\n<g id="power-settings-new"><path d="M13 3h-2v10h2V3zm4.83 2.17l-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z"></path></g>\n<g id="pregnant-woman"><path d="M9 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm7 9c-.01-1.34-.83-2.51-2-3 0-1.66-1.34-3-3-3s-3 1.34-3 3v7h2v5h3v-5h3v-4z"></path></g>\n<g id="print"><path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"></path></g>\n<g id="query-builder"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"></path></g>\n<g id="question-answer"><path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"></path></g>\n<g id="radio-button-checked"><path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></g>\n<g id="radio-button-unchecked"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></g>\n<g id="receipt"><path d="M18 17H6v-2h12v2zm0-4H6v-2h12v2zm0-4H6V7h12v2zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2v20z"></path></g>\n<g id="record-voice-over"><circle cx="9" cy="9" r="4"></circle><path d="M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4zm7.76-9.64l-1.68 1.69c.84 1.18.84 2.71 0 3.89l1.68 1.69c2.02-2.02 2.02-5.07 0-7.27zM20.07 2l-1.63 1.63c2.77 3.02 2.77 7.56 0 10.74L20.07 16c3.9-3.89 3.91-9.95 0-14z"></path></g>\n<g id="redeem"><path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm11 15H4v-2h16v2zm0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20v6z"></path></g>\n<g id="redo"><path d="M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"></path></g>\n<g id="refresh"><path d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"></path></g>\n<g id="remove"><path d="M19 13H5v-2h14v2z"></path></g>\n<g id="remove-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z"></path></g>\n<g id="remove-circle-outline"><path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></g>\n<g id="remove-shopping-cart"><path d="M22.73 22.73L2.77 2.77 2 2l-.73-.73L0 2.54l4.39 4.39 2.21 4.66-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h7.46l1.38 1.38c-.5.36-.83.95-.83 1.62 0 1.1.89 2 1.99 2 .67 0 1.26-.33 1.62-.84L21.46 24l1.27-1.27zM7.42 15c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h2.36l2 2H7.42zm8.13-2c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H6.54l9.01 9zM7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2z"></path></g>\n<g id="reorder"><path d="M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"></path></g>\n<g id="reply"><path d="M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"></path></g>\n<g id="reply-all"><path d="M7 8V5l-7 7 7 7v-3l-4-4 4-4zm6 1V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"></path></g>\n<g id="report"><path d="M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1.3 0 .72-.58 1.3-1.3 1.3zm1-4.3h-2V7h2v6z"></path></g>\n<g id="report-problem"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"></path></g>\n<g id="restore"><path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"></path></g>\n<g id="restore-page"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm-2 16c-2.05 0-3.81-1.24-4.58-3h1.71c.63.9 1.68 1.5 2.87 1.5 1.93 0 3.5-1.57 3.5-3.5S13.93 9.5 12 9.5c-1.35 0-2.52.78-3.1 1.9l1.6 1.6h-4V9l1.3 1.3C8.69 8.92 10.23 8 12 8c2.76 0 5 2.24 5 5s-2.24 5-5 5z"></path></g>\n<g id="room"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"></path></g>\n<g id="rounded-corner"><path d="M19 19h2v2h-2v-2zm0-2h2v-2h-2v2zM3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm0-4h2V3H3v2zm4 0h2V3H7v2zm8 16h2v-2h-2v2zm-4 0h2v-2h-2v2zm4 0h2v-2h-2v2zm-8 0h2v-2H7v2zm-4 0h2v-2H3v2zM21 8c0-2.76-2.24-5-5-5h-5v2h5c1.65 0 3 1.35 3 3v5h2V8z"></path></g>\n<g id="rowing"><path d="M8.5 14.5L4 19l1.5 1.5L9 17h2l-2.5-2.5zM15 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 20.01L18 24l-2.99-3.01V19.5l-7.1-7.09c-.31.05-.61.07-.91.07v-2.16c1.66.03 3.61-.87 4.67-2.04l1.4-1.55c.19-.21.43-.38.69-.5.29-.14.62-.23.96-.23h.03C15.99 6.01 17 7.02 17 8.26v5.75c0 .84-.35 1.61-.92 2.16l-3.58-3.58v-2.27c-.63.52-1.43 1.02-2.29 1.39L16.5 18H18l3 3.01z"></path></g>\n<g id="save"><path d="M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"></path></g>\n<g id="schedule"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"></path></g>\n<g id="search"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path></g>\n<g id="select-all"><path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2zM7 17h10V7H7v10zm2-8h6v6H9V9z"></path></g>\n<g id="send"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"></path></g>\n<g id="settings"><path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z"></path></g>\n<g id="settings-applications"><path d="M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm7-7H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-1.75 9c0 .23-.02.46-.05.68l1.48 1.16c.13.11.17.3.08.45l-1.4 2.42c-.09.15-.27.21-.43.15l-1.74-.7c-.36.28-.76.51-1.18.69l-.26 1.85c-.03.17-.18.3-.35.3h-2.8c-.17 0-.32-.13-.35-.29l-.26-1.85c-.43-.18-.82-.41-1.18-.69l-1.74.7c-.16.06-.34 0-.43-.15l-1.4-2.42c-.09-.15-.05-.34.08-.45l1.48-1.16c-.03-.23-.05-.46-.05-.69 0-.23.02-.46.05-.68l-1.48-1.16c-.13-.11-.17-.3-.08-.45l1.4-2.42c.09-.15.27-.21.43-.15l1.74.7c.36-.28.76-.51 1.18-.69l.26-1.85c.03-.17.18-.3.35-.3h2.8c.17 0 .32.13.35.29l.26 1.85c.43.18.82.41 1.18.69l1.74-.7c.16-.06.34 0 .43.15l1.4 2.42c.09.15.05.34-.08.45l-1.48 1.16c.03.23.05.46.05.69z"></path></g>\n<g id="settings-backup-restore"><path d="M14 12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm-2-9c-4.97 0-9 4.03-9 9H0l4 4 4-4H5c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2.91-.49-4.06-1.3l-1.42 1.44C8.04 20.3 9.94 21 12 21c4.97 0 9-4.03 9-9s-4.03-9-9-9z"></path></g>\n<g id="settings-bluetooth"><path d="M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-18.29L12 0h-1v7.59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 3.83l1.88 1.88L13 7.59V3.83zm1.88 10.46L13 16.17v-3.76l1.88 1.88z"></path></g>\n<g id="settings-brightness"><path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02zM8 16h2.5l1.5 1.5 1.5-1.5H16v-2.5l1.5-1.5-1.5-1.5V8h-2.5L12 6.5 10.5 8H8v2.5L6.5 12 8 13.5V16zm4-7c1.66 0 3 1.34 3 3s-1.34 3-3 3V9z"></path></g>\n<g id="settings-cell"><path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM16 .01L8 0C6.9 0 6 .9 6 2v16c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V2c0-1.1-.9-1.99-2-1.99zM16 16H8V4h8v12z"></path></g>\n<g id="settings-ethernet"><path d="M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12l-4.35 5.24 1.54 1.28L23.18 12l-5.41-6.52z"></path></g>\n<g id="settings-input-antenna"><path d="M12 5c-3.87 0-7 3.13-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.87-3.13-7-7-7zm1 9.29c.88-.39 1.5-1.26 1.5-2.29 0-1.38-1.12-2.5-2.5-2.5S9.5 10.62 9.5 12c0 1.02.62 1.9 1.5 2.29v3.3L7.59 21 9 22.41l3-3 3 3L16.41 21 13 17.59v-3.3zM12 1C5.93 1 1 5.93 1 12h2c0-4.97 4.03-9 9-9s9 4.03 9 9h2c0-6.07-4.93-11-11-11z"></path></g>\n<g id="settings-input-component"><path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 16v-2H1v2zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v6h6V6h-2zm-8-4c0-.55-.45-1-1-1s-1 .45-1 1v4H9v6h6V6h-2V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2h-6v2z"></path></g>\n<g id="settings-input-composite"><path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 16v-2H1v2zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v6h6V6h-2zm-8-4c0-.55-.45-1-1-1s-1 .45-1 1v4H9v6h6V6h-2V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2h-6v2z"></path></g>\n<g id="settings-input-hdmi"><path d="M18 7V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v3H5v6l3 6v3h8v-3l3-6V7h-1zM8 4h8v3h-2V5h-1v2h-2V5h-1v2H8V4z"></path></g>\n<g id="settings-input-svideo"><path d="M8 11.5c0-.83-.67-1.5-1.5-1.5S5 10.67 5 11.5 5.67 13 6.5 13 8 12.33 8 11.5zm7-5c0-.83-.67-1.5-1.5-1.5h-3C9.67 5 9 5.67 9 6.5S9.67 8 10.5 8h3c.83 0 1.5-.67 1.5-1.5zM8.5 15c-.83 0-1.5.67-1.5 1.5S7.67 18 8.5 18s1.5-.67 1.5-1.5S9.33 15 8.5 15zM12 1C5.93 1 1 5.93 1 12s4.93 11 11 11 11-4.93 11-11S18.07 1 12 1zm0 20c-4.96 0-9-4.04-9-9s4.04-9 9-9 9 4.04 9 9-4.04 9-9 9zm5.5-11c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm-2 5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"></path></g>\n<g id="settings-overscan"><path d="M12.01 5.5L10 8h4l-1.99-2.5zM18 10v4l2.5-1.99L18 10zM6 10l-2.5 2.01L6 14v-4zm8 6h-4l2.01 2.5L14 16zm7-13H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02z"></path></g>\n<g id="settings-phone"><path d="M13 9h-2v2h2V9zm4 0h-2v2h2V9zm3 6.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1zM19 9v2h2V9h-2z"></path></g>\n<g id="settings-power"><path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm2-22h-2v10h2V2zm3.56 2.44l-1.45 1.45C16.84 6.94 18 8.83 18 11c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2.17 1.16-4.06 2.88-5.12L7.44 4.44C5.36 5.88 4 8.28 4 11c0 4.42 3.58 8 8 8s8-3.58 8-8c0-2.72-1.36-5.12-3.44-6.56zM15 24h2v-2h-2v2z"></path></g>\n<g id="settings-remote"><path d="M15 9H9c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V10c0-.55-.45-1-1-1zm-3 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM7.05 6.05l1.41 1.41C9.37 6.56 10.62 6 12 6s2.63.56 3.54 1.46l1.41-1.41C15.68 4.78 13.93 4 12 4s-3.68.78-4.95 2.05zM12 0C8.96 0 6.21 1.23 4.22 3.22l1.41 1.41C7.26 3.01 9.51 2 12 2s4.74 1.01 6.36 2.64l1.41-1.41C17.79 1.23 15.04 0 12 0z"></path></g>\n<g id="settings-voice"><path d="M7 24h2v-2H7v2zm5-11c1.66 0 2.99-1.34 2.99-3L15 4c0-1.66-1.34-3-3-3S9 2.34 9 4v6c0 1.66 1.34 3 3 3zm-1 11h2v-2h-2v2zm4 0h2v-2h-2v2zm4-14h-1.7c0 3-2.54 5.1-5.3 5.1S6.7 13 6.7 10H5c0 3.41 2.72 6.23 6 6.72V20h2v-3.28c3.28-.49 6-3.31 6-6.72z"></path></g>\n<g id="shop"><path d="M16 6V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H2v13c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6h-6zm-6-2h4v2h-4V4zM9 18V9l7.5 4L9 18z"></path></g>\n<g id="shop-two"><path d="M3 9H1v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2H3V9zm15-4V3c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H5v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5h-5zm-6-2h4v2h-4V3zm0 12V8l5.5 3-5.5 4z"></path></g>\n<g id="shopping-basket"><path d="M17.21 9l-4.38-6.56c-.19-.28-.51-.42-.83-.42-.32 0-.64.14-.83.43L6.79 9H2c-.55 0-1 .45-1 1 0 .09.01.18.04.27l2.54 9.27c.23.84 1 1.46 1.92 1.46h13c.92 0 1.69-.62 1.93-1.46l2.54-9.27L23 10c0-.55-.45-1-1-1h-4.79zM9 9l3-4.4L15 9H9zm3 8c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"></path></g>\n<g id="shopping-cart"><path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"></path></g>\n<g id="sort"><path d="M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"></path></g>\n<g id="speaker-notes"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 14H6v-2h2v2zm0-3H6V9h2v2zm0-3H6V6h2v2zm7 6h-5v-2h5v2zm3-3h-8V9h8v2zm0-3h-8V6h8v2z"></path></g>\n<g id="speaker-notes-off"><path d="M10.54 11l-.54-.54L7.54 8 6 6.46 2.38 2.84 1.27 1.73 0 3l2.01 2.01L2 22l4-4h9l5.73 5.73L22 22.46 17.54 18l-7-7zM8 14H6v-2h2v2zm-2-3V9l2 2H6zm14-9H4.08L10 7.92V6h8v2h-7.92l1 1H18v2h-4.92l6.99 6.99C21.14 17.95 22 17.08 22 16V4c0-1.1-.9-2-2-2z"></path></g>\n<g id="spellcheck"><path d="M12.45 16h2.09L9.43 3H7.57L2.46 16h2.09l1.12-3h5.64l1.14 3zm-6.02-5L8.5 5.48 10.57 11H6.43zm15.16.59l-8.09 8.09L9.83 16l-1.41 1.41 5.09 5.09L23 13l-1.41-1.41z"></path></g>\n<g id="star"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"></path></g>\n<g id="star-border"><path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"></path></g>\n<g id="star-half"><path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"></path></g>\n<g id="stars"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23L16.23 18z"></path></g>\n<g id="store"><path d="M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"></path></g>\n<g id="subdirectory-arrow-left"><path d="M11 9l1.42 1.42L8.83 14H18V4h2v12H8.83l3.59 3.58L11 21l-6-6 6-6z"></path></g>\n<g id="subdirectory-arrow-right"><path d="M19 15l-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"></path></g>\n<g id="subject"><path d="M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z"></path></g>\n<g id="supervisor-account"><path d="M16.5 12c1.38 0 2.49-1.12 2.49-2.5S17.88 7 16.5 7C15.12 7 14 8.12 14 9.5s1.12 2.5 2.5 2.5zM9 11c1.66 0 2.99-1.34 2.99-3S10.66 5 9 5C7.34 5 6 6.34 6 8s1.34 3 3 3zm7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75zM9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"></path></g>\n<g id="swap-horiz"><path d="M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"></path></g>\n<g id="swap-vert"><path d="M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z"></path></g>\n<g id="swap-vertical-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM6.5 9L10 5.5 13.5 9H11v4H9V9H6.5zm11 6L14 18.5 10.5 15H13v-4h2v4h2.5z"></path></g>\n<g id="system-update-alt"><path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"></path></g>\n<g id="tab"><path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h10v4h8v10z"></path></g>\n<g id="tab-unselected"><path d="M1 9h2V7H1v2zm0 4h2v-2H1v2zm0-8h2V3c-1.1 0-2 .9-2 2zm8 16h2v-2H9v2zm-8-4h2v-2H1v2zm2 4v-2H1c0 1.1.9 2 2 2zM21 3h-8v6h10V5c0-1.1-.9-2-2-2zm0 14h2v-2h-2v2zM9 5h2V3H9v2zM5 21h2v-2H5v2zM5 5h2V3H5v2zm16 16c1.1 0 2-.9 2-2h-2v2zm0-8h2v-2h-2v2zm-8 8h2v-2h-2v2zm4 0h2v-2h-2v2z"></path></g>\n<g id="text-format"><path d="M5 17v2h14v-2H5zm4.5-4.2h5l.9 2.2h2.1L12.75 4h-1.5L6.5 15h2.1l.9-2.2zM12 5.98L13.87 11h-3.74L12 5.98z"></path></g>\n<g id="theaters"><path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"></path></g>\n<g id="thumb-down"><path d="M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z"></path></g>\n<g id="thumb-up"><path d="M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z"></path></g>\n<g id="thumbs-up-down"><path d="M12 6c0-.55-.45-1-1-1H5.82l.66-3.18.02-.23c0-.31-.13-.59-.33-.8L5.38 0 .44 4.94C.17 5.21 0 5.59 0 6v6.5c0 .83.67 1.5 1.5 1.5h6.75c.62 0 1.15-.38 1.38-.91l2.26-5.29c.07-.17.11-.36.11-.55V6zm10.5 4h-6.75c-.62 0-1.15.38-1.38.91l-2.26 5.29c-.07.17-.11.36-.11.55V18c0 .55.45 1 1 1h5.18l-.66 3.18-.02.24c0 .31.13.59.33.8l.79.78 4.94-4.94c.27-.27.44-.65.44-1.06v-6.5c0-.83-.67-1.5-1.5-1.5z"></path></g>\n<g id="timeline"><path d="M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56C19.02 8.35 19 8.18 19 8c0-1.1.9-2 2-2s2 .9 2 2z"></path></g>\n<g id="toc"><path d="M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z"></path></g>\n<g id="today"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"></path></g>\n<g id="toll"><path d="M15 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zM3 12c0-2.61 1.67-4.83 4-5.65V4.26C3.55 5.15 1 8.27 1 12s2.55 6.85 6 7.74v-2.09c-2.33-.82-4-3.04-4-5.65z"></path></g>\n<g id="touch-app"><path d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm9.84 4.63l-4.54-2.26c-.17-.07-.35-.11-.54-.11H13v-6c0-.83-.67-1.5-1.5-1.5S10 6.67 10 7.5v10.74l-3.43-.72c-.08-.01-.15-.03-.24-.03-.31 0-.59.13-.79.33l-.79.8 4.94 4.94c.27.27.65.44 1.06.44h6.79c.75 0 1.33-.55 1.44-1.28l.75-5.27c.01-.07.02-.14.02-.2 0-.62-.38-1.16-.91-1.38z"></path></g>\n<g id="track-changes"><path d="M19.07 4.93l-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s6-2.69 6-6c0-1.66-.67-3.16-1.76-4.24l-1.41 1.41C15.55 9.9 16 10.9 16 12c0 2.21-1.79 4-4 4s-4-1.79-4-4c0-1.86 1.28-3.41 3-3.86v2.14c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2s2-.9 2-2c0-.74-.4-1.38-1-1.72V2h-1C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-2.76-1.12-5.26-2.93-7.07z"></path></g>\n<g id="translate"><path d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"></path></g>\n<g id="trending-down"><path d="M16 18l2.29-2.29-4.88-4.88-4 4L2 7.41 3.41 6l6 6 4-4 6.3 6.29L22 12v6z"></path></g>\n<g id="trending-flat"><path d="M22 12l-4-4v3H3v2h15v3z"></path></g>\n<g id="trending-up"><path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"></path></g>\n<g id="turned-in"><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"></path></g>\n<g id="turned-in-not"><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"></path></g>\n<g id="unarchive"><path d="M20.55 5.22l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.15.55L3.46 5.22C3.17 5.57 3 6.01 3 6.5V19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.49-.17-.93-.45-1.28zM12 9.5l5.5 5.5H14v2h-4v-2H6.5L12 9.5zM5.12 5l.82-1h12l.93 1H5.12z"></path></g>\n<g id="undo"><path d="M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"></path></g>\n<g id="unfold-less"><path d="M7.41 18.59L8.83 20 12 16.83 15.17 20l1.41-1.41L12 14l-4.59 4.59zm9.18-13.18L15.17 4 12 7.17 8.83 4 7.41 5.41 12 10l4.59-4.59z"></path></g>\n<g id="unfold-more"><path d="M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z"></path></g>\n<g id="update"><path d="M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79 2.73 2.71 7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58 3.51-3.47 9.14-3.47 12.65 0L21 3v7.12zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8h1.5z"></path></g>\n<g id="verified-user"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"></path></g>\n<g id="view-agenda"><path d="M20 13H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zm0-10H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1z"></path></g>\n<g id="view-array"><path d="M4 18h3V5H4v13zM18 5v13h3V5h-3zM8 18h9V5H8v13z"></path></g>\n<g id="view-carousel"><path d="M7 19h10V4H7v15zm-5-2h4V6H2v11zM18 6v11h4V6h-4z"></path></g>\n<g id="view-column"><path d="M10 18h5V5h-5v13zm-6 0h5V5H4v13zM16 5v13h5V5h-5z"></path></g>\n<g id="view-day"><path d="M2 21h19v-3H2v3zM20 8H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zM2 3v3h19V3H2z"></path></g>\n<g id="view-headline"><path d="M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"></path></g>\n<g id="view-list"><path d="M4 14h4v-4H4v4zm0 5h4v-4H4v4zM4 9h4V5H4v4zm5 5h12v-4H9v4zm0 5h12v-4H9v4zM9 5v4h12V5H9z"></path></g>\n<g id="view-module"><path d="M4 11h5V5H4v6zm0 7h5v-6H4v6zm6 0h5v-6h-5v6zm6 0h5v-6h-5v6zm-6-7h5V5h-5v6zm6-6v6h5V5h-5z"></path></g>\n<g id="view-quilt"><path d="M10 18h5v-6h-5v6zm-6 0h5V5H4v13zm12 0h5v-6h-5v6zM10 5v6h11V5H10z"></path></g>\n<g id="view-stream"><path d="M4 18h17v-6H4v6zM4 5v6h17V5H4z"></path></g>\n<g id="view-week"><path d="M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"></path></g>\n<g id="visibility"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"></path></g>\n<g id="visibility-off"><path d="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"></path></g>\n<g id="warning"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"></path></g>\n<g id="watch-later"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"></path></g>\n<g id="weekend"><path d="M21 10c-1.1 0-2 .9-2 2v3H5v-3c0-1.1-.9-2-2-2s-2 .9-2 2v5c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2zm-3-5H6c-1.1 0-2 .9-2 2v2.15c1.16.41 2 1.51 2 2.82V14h12v-2.03c0-1.3.84-2.4 2-2.82V7c0-1.1-.9-2-2-2z"></path></g>\n<g id="work"><path d="M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z"></path></g>\n<g id="youtube-searched-for"><path d="M17.01 14h-.8l-.27-.27c.98-1.14 1.57-2.61 1.57-4.23 0-3.59-2.91-6.5-6.5-6.5s-6.5 3-6.5 6.5H2l3.84 4 4.16-4H6.51C6.51 7 8.53 5 11.01 5s4.5 2.01 4.5 4.5c0 2.48-2.02 4.5-4.5 4.5-.65 0-1.26-.14-1.82-.38L7.71 15.1c.97.57 2.09.9 3.3.9 1.61 0 3.08-.59 4.22-1.57l.27.27v.79l5.01 4.99L22 19l-4.99-5z"></path></g>\n<g id="zoom-in"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"></path></g>\n<g id="zoom-out"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"></path></g>\n</defs></svg>\n</iron-iconset-svg>']),
Mlc=_.Ipb(Llc);Mlc.setAttribute("style","display: none;");document.head.appendChild(Mlc.content);_.LW=_.Uja(_.Klc);var Nlc;var Olc;var Plc=function(){var a=_.P.apply(this,arguments)||this;a.icon=null;return a};
_.z(Plc,_.P);Plc.prototype.dismiss=function(){_.io(this.hostElement,"yt-live-chat-error-message-dismiss")};
Plc.prototype.computeIcon=function(a){return a&&a.iconType?"yt-icons:"+a.iconType.toLowerCase():"yt-icons:close"};
var MW=Plc;_.U([_.O(),_.W("design:type",Object)],MW.prototype,"data",void 0);_.U([_.O({computed:"computeIcon(data.icon)"}),_.W("design:type",Object)],MW.prototype,"icon",void 0);MW=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],MW);
_.S(MW,"yt-live-chat-error-message-renderer",function(){if(Olc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_error_message_renderer.yt.live.chat.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-error-message-renderer">\n  <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-error-message-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Nlc===void 0&&(Nlc=document.createElement("template"));var d=Nlc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Olc=a}a=Olc;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var tcd,ucd,wcd,xcd,ycd,G8,Dcd,Ecd,Fcd,Gcd,Hcd,Icd,J8,Jcd,Kcd,Lcd,Mcd,Ncd,Ocd,Pcd,Qcd,Rcd,Scd,Tcd,Ucd,Vcd,Wcd,Xcd,Ycd,Zcd,$cd,add,bdd,cdd,ddd,edd,fdd,gdd,hdd,idd,ldd,ndd,pdd,qdd,rdd,sdd,jdd,kdd,vdd,wdd,xdd,ydd,zdd,tdd,Cdd;tcd=function(a,b,c){b=b===void 0?5:b;if(b!==0){var d=typeof a==="function"?a():document.querySelector(a);d?(c==null?0:c.enableSmartFocus)?_.yja(d):d.focus():setTimeout(function(){tcd(a,b-1,c)},500)}};
ucd=function(a,b){return _.np(a.entities,"timedMarkersListSyncEntity",b)};
_.vcd=function(){_.w("web_watch_log_theater_mode")&&_.vt("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
wcd=function(a,b){return _.np(a.entities,"liveReactionsDataEntity",b)};
xcd=function(a,b){a=_.np(a.entities,"booleanEntity",b);return!(!a||!a.value)};
ycd=function(a,b){var c=_.En();c&&a&&_.To(c,_.ps(a),b)};
_.zcd=function(a,b,c){if(!a.includes("START_TIME_PLACEHOLDER")||!a.includes("END_TIME_PLACEHOLDER"))return a;var d=new Date(0),e=new Date(0);d.setUTCMilliseconds(b);e.setUTCMilliseconds(c);return a.replace("START_TIME_PLACEHOLDER",_.Rp(d,7)).replace("END_TIME_PLACEHOLDER",_.Rp(e,7))};
G8=function(a){return a.watch.isWatchActive};
_.H8=function(a){return a!=null&&a.watch?a.watch.isWatchFullscreen:!1};
_.Acd=function(a){return a.watch.watchWindowSize};
_.Bcd=function(a){return _.JW(a)||_.H8(a)||_.UXa(a)};
_.Ccd=function(a){return!_.Bcd(a)};
_.I8=function(a){return a.watch.watchScrollTop};
Dcd=function(a){return a.watch.isLiveChatCollapsed};
Ecd=function(a){return a.watch.openEngagementPanels};
Fcd=function(a){switch(a){case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN":return 1;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS":return 6;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":return 2;default:return 3}};
Gcd=function(a,b,c){var d=_.Ds(c);a&&b&&d&&a.getPlayerPromise().then(function(e){_.lVa(d)&&_.Al();(new _.EM(e)).executeCommand(d,b);_.w("continue_playback_on_desktop_companion_click")||e.pauseVideo()})};
Hcd=function(a){var b=_.au(),c;if(c=_.Ji("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var d;c=(d=c())==null?void 0:d.layoutId}else c=null;Gcd(b,c,a)};
Icd=function(a){var b=_.au(),c;if(c=_.Ji("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var d;c=(d=c())==null?void 0:d.layoutId}else c=null;Gcd(b,c,a)};
J8=function(a,b){var c=a<0?"-":"";a=Math.abs(a);var d=Math.floor(a/3600),e=Math.floor(a)%3600,g=Math.floor(e/60);e=Math.floor(e)%60;var k="";(b===void 0?0:b)&&(k="."+Math.round((a-Math.floor(a))*10));return d>0?c+d+":"+(g<10?"0"+g:""+g)+":"+(e<10?"0"+e:""+e)+k:c+g+":"+(e<10?"0"+e:""+e)+k};
Jcd=function(a){var b=a.match(/[^0-9:\.]/g);if(b&&b.length>0)return null;a=a.split(":");if(a.length===0||a.length>3)return null;b=1;for(var c=0;a.length>0;){var d=a.pop();if(d===void 0)break;var e=Number(d);if(d===""||isNaN(e))return null;c+=e*b;b*=60}return c};
Kcd=function(a,b,c,d){a=Math.max(c,a);b=Math.min(b,d-c);a+b>d?(c=d,a=c-b):c=a+b;return{start:a,end:c}};
Lcd=function(a,b,c,d,e,g){a<c?a=c:a+e>d&&(a=d-e);b>d&&(b=d);b=Math.min(a+g,Math.max(a+e,b));return{start:a,end:b}};
Mcd=function(a,b,c,d,e,g){b>d?b=d:b-e<c&&(b=c+e);a<c&&(a=c);a=Math.min(b-e,Math.max(b-g,a));return{start:a,end:b}};
Ncd=function(a){return _.w("web_transcript_cue_id_killswitch")?String(a):"ytd-transcript-renderer_"+a};
Ocd=function(a){return _.w("web_transcript_cue_id_killswitch")?!0:a.startsWith("ytd-transcript-renderer")};
Pcd=function(a){var b=_.au(),c;if(c=_.Ji("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var d;c=(d=c())==null?void 0:d.layoutId}else c=null;Gcd(b,c,a)};
Qcd=function(a,b){return _.np(a.entities,"youchatPendingResponseEntity",b)};
Rcd=function(a){return function(b){_.Mr(_.wu("youchatPendingResponseEntity",a,{entityKey:a,isPendingResponse:b}))}};
Scd=function(a,b){return _.np(a.entities,"booleanEntity",b)};
Tcd=function(){return function(a){_.Mr(_.wu("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:a}))}};
Ucd=function(a){a==null||a.addEventListener("DOMLoaded",function(){a.goToAndPlay(a.totalFrames-48,!0)})};
Vcd=function(a){a.style.height="auto";a.style.height=Math.min(a.scrollHeight||20,80)+"px"};
Wcd=function(a){var b=_.au(),c;c=(c=_.Ji("yt.www.ads.eventcache.getLastCompanionData"))?(c=c())&&c.layoutId:null;Gcd(b,c,a)};
Xcd=function(a){var b=_.au(),c;c=(c=_.Ji("yt.www.ads.eventcache.getLastCompanionData"))?(c=c())&&c.layoutId:null;Gcd(b,c,a)};
Ycd=function(a,b){b=b===void 0?!1:b;if(a.simpleText)a=[{text:a.simpleText}];else{var c;a=((c=a.runs)!=null?c:[]).map(function(d){return Object.assign({},d)})}if(b)for(b=_.h(a),c=b.next();!c.done;c=b.next())c.value.bold=!0;
return a};
Zcd=function(a){var b=a.startEndTimeTemplate,c=a.startTimeUtcMillis;a=a.endTimeUtcMillis;if(b&&c&&a)return _.Vp(_.zcd(_.Wp(b),Number(c),Number(a)))};
$cd=function(a,b){var c,d,e=a==null?void 0:(c=a.viewCount)==null?void 0:(d=c.videoViewCountRenderer)==null?void 0:d.shortViewCount;if(!b&&e)return e;var g,k;return a==null?void 0:(g=a.viewCount)==null?void 0:(k=g.videoViewCountRenderer)==null?void 0:k.viewCount};
add=function(a,b){var c=a==null?void 0:a.relativeDateText;return!b&&c?[c,!0]:[a==null?void 0:a.dateText,!1]};
bdd=function(a,b,c,d,e){d=d===void 0?!0:d;e=e===void 0?"":e;var g=$cd(a,b),k=_.h(add(a,b)),m=k.next().value;k=k.next().value;b=b?a==null?void 0:a.sponsorsOnlyFirstTimeLongText:a==null?void 0:a.sponsorsOnlyFirstTimeShortText;var n=[];c&&g&&n.push(g);!c&&k||!m||n.push(m);a=[].concat(_.De(n),[b,a==null?void 0:a.stationName,a==null?void 0:a.rating,a?Zcd(a):void 0,a==null?void 0:a.upNextProgramText,a==null?void 0:a.superTitleLink]).filter(function(r){return!!r});
c={runs:[]};for(g=0;g<a.length;g++)c.runs.push.apply(c.runs,_.De(Ycd(a[g],d))),g<a.length-1&&c.runs.push({text:" "+e+" ",bold:d});return c};
cdd=function(a){if(a)return{runs:[{text:a,bold:!0}]}};
ddd=function(a){var b,c,d,e;if(a=a==null?void 0:(b=a.contents)==null?void 0:(c=b.twoColumnWatchNextResults)==null?void 0:(d=c.results)==null?void 0:(e=d.results)==null?void 0:e.contents){var g,k;return(k=(g=a.find(function(m){return!!m.videoPrimaryInfoRenderer}))==null?void 0:g.videoPrimaryInfoRenderer)==null?void 0:k.updatedMetadataEndpoint}};
edd=function(a,b){var c;return(c=a.sourceConfigs)==null?void 0:c.find(function(d){return d.videoId===b})};
fdd=function(a){return a==="End of video"||a==="End of playlist"};
gdd=function(a){var b,c,d,e;return(b=a.getWatchNextResponse())==null?void 0:(c=b.contents)==null?void 0:(d=c.twoColumnWatchNextResults)==null?void 0:(e=d.playlist)==null?void 0:e.playlist};
hdd=function(a){var b,c,d,e,g,k;return(b=gdd(a))==null?void 0:(c=b.playlistButtons)==null?void 0:(d=c.menuRenderer)==null?void 0:(e=d.topLevelButtons)==null?void 0:(g=e[0])==null?void 0:(k=g.playlistLoopButtonRenderer)==null?void 0:k.playlistLoopStateEntityKey};
idd=function(a){var b=_.v().resolve(_.TF),c;return(b=(c=_.y(b.getAutoplayEndpoint(),_.Un))==null?void 0:c.playlistId)&&b===a};
ldd=function(a,b,c,d,e){function g(){_.zk.cancelJob(K8);var k=jdd(b,c/a.getPlaybackRate()),m=k.hours,n=k.minutes;k=(k.seconds*1E3||6E4)/a.getPlaybackRate();a.setVideoTimeLeft(kdd(m,n));d&&a.getPlayerState()!==0&&a.setSleepTimerTimeLeft(kdd(m,n,!0));(m>0||n>0)&&!e&&(K8=_.zu(_.zk,g,k))}
_.zk.cancelJob(K8);K8=_.zu(_.zk,g)};
ndd=function(a,b,c){function d(){_.zk.cancelJob(mdd);var e=jdd(b,c),g=e.hours;e=e.minutes;var k=6E4/a.getPlaybackRate();if(g>0||e>0)a.setSleepTimerTimeLeft(kdd(g,e,!0)),mdd=_.zu(_.zk,d,k)}
_.zk.cancelJob(mdd);mdd=_.zu(_.zk,d)};
pdd=function(a,b){var c=a.getVolume()/(b/500),d=function(e){_.zk.cancelJob(odd);var g=Math.floor(e-c);a.setVolume(g,!1);g>0&&(odd=_.zu(_.zk,function(){d(g)},500))};
_.zk.cancelJob(odd);odd=_.zu(_.zk,function(){d(a.getVolume())})};
qdd=function(a,b){_.zk.cancelJob(odd);b&&a.syncVolume()};
rdd=function(){var a={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.vo("SLEEP_TIMER_DISRUPTED")}}}}};_.v().resolve(_.Yi).resolveCommand(a)};
sdd=function(a){return(a.getDuration()-a.getProgressState().current)*1E3};
jdd=function(a,b){a=a+b-(0,_.Uj)();if(a<=0)return{hours:0,minutes:0,seconds:0};var c=new tdd(0,0,0,0,0,0,a);a=c.getHours();b=c.getMinutes();c=c.getSeconds();c!==0&&b++;b!==0&&b%60===0&&(a++,b=0);return{hours:a,minutes:b,seconds:c}};
kdd=function(a,b,c){return a>0&&b>0?c?_.vo("TIME_LEFT_HOURS_MINUTES",{hours:a.toString(),minutes:b.toString()}):_.vo("TIME_HOURS_MINUTES",{hours:a.toString(),minutes:b.toString()}):a>0?c?_.wo("TIME_LEFT_HOURS",a):_.wo("TIME_HOURS",a):c?_.vo("TIME_LEFT_MINUTES",{minutes:b.toString()}):_.vo("TIME_MINUTES",{minutes:b.toString()})};
vdd=function(a,b){if(a.timelyActions)return a.timelyActions.find(function(c){var d;return((d=_.y(c,udd))==null?void 0:d.cueRangeId)===b})};
wdd=function(a){var b=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.uA(a);a.keyMap_.forEach(function(c,d){_.Oa(b,d)||this.remove(d)},a)};
xdd=function(a,b){a.reloadContinuationItemsCommandMatcher=b};
_.L8=function(a,b){a.insertBefore(b,a.childNodes[0]||null)};
ydd=function(a){if(a>=48&&a<=57||a>=96&&a<=106||a>=65&&a<=90||_.zx&&a==0)return!0;switch(a){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:case 171:return _.yx;default:return!1}};
zdd=function(a){if(a.altKey&&!a.ctrlKey||a.metaKey||a.keyCode>=112&&a.keyCode<=123)return!1;if(ydd(a.keyCode))return!0;switch(a.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!_.yx;default:return a.keyCode<166||a.keyCode>183}};
tdd=function(a,b,c,d,e,g,k){this.date=typeof a==="number"?new Date(a,b||0,c||1,d||0,e||0,g||0,k||0):new Date(a&&a.getTime?a.getTime():_.rx())};
_.sx(tdd,_.HC);_.f=tdd.prototype;_.f.getHours=function(){return this.date.getHours()};
_.f.getMinutes=function(){return this.date.getMinutes()};
_.f.getSeconds=function(){return this.date.getSeconds()};
_.f.getMilliseconds=function(){return this.date.getMilliseconds()};
_.f.getUTCDay=function(){return this.date.getUTCDay()};
_.f.getUTCHours=function(){return this.date.getUTCHours()};
_.f.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.f.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.f.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.f.setHours=function(a){this.date.setHours(a)};
_.f.setMinutes=function(a){this.date.setMinutes(a)};
_.f.setSeconds=function(a){this.date.setSeconds(a)};
_.f.setMilliseconds=function(a){this.date.setMilliseconds(a)};
_.f.setUTCHours=function(a){this.date.setUTCHours(a)};
_.f.setUTCMinutes=function(a){this.date.setUTCMinutes(a)};
_.f.setUTCSeconds=function(a){this.date.setUTCSeconds(a)};
_.f.setUTCMilliseconds=function(a){this.date.setUTCMilliseconds(a)};
_.f.add=function(a){_.HC.prototype.add.call(this,a);a.hours&&this.setUTCHours(this.date.getUTCHours()+a.hours);a.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+a.minutes);a.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+a.seconds)};
_.f.JSC$9061_toIsoString=function(a){var b=_.HC.prototype.JSC$9061_toIsoString.call(this,a);return a?b+"T"+_.qy(this.getHours(),2)+":"+_.qy(this.getMinutes(),2)+":"+_.qy(this.getSeconds(),2):b+"T"+_.qy(this.getHours(),2)+_.qy(this.getMinutes(),2)+_.qy(this.getSeconds(),2)};
_.f.equals=function(a){return this.getTime()==a.getTime()};
_.f.toString=function(){return this.JSC$9061_toIsoString()};
_.f.clone=function(){var a=new tdd(this.date);a.firstDayOfWeek_=this.firstDayOfWeek_;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};
_.Add=function(a){return _.hp({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:a}})};
_.Bdd=function(a){return _.hp({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:a}})};
Cdd=new _.X("imageTileRenderer");var Ddd=new _.X("adGridCardCollectionViewModel");var Edd=new _.X("carouselTitleViewModel");var Fdd=new _.X("ctaCarouselItemViewModel");var Gdd=new _.X("textFieldViewModel");_.Hdd=new _.X("engagementPanelHeaderShowNavigationButtonCommand");var Idd=new _.X("hideEngagementPanelScrimAction");var Jdd=new _.X("setActivePanelItemAction");var Kdd=new _.X("showEngagementPanelScrimAction");var Ldd=new _.X("updateEngagementPanelAction");var Mdd=new _.X("updateSearchInVideoResultsAction");var Ndd=new _.X("transcriptCueGroupRenderer");var Odd=new _.X("transcriptCueRenderer");var Pdd=new _.X("transcriptFooterRenderer");var Qdd=new _.X("engagementPanelAdSubtitleRenderer");var Rdd=new _.X("videoDescriptionFantasySectionViewModel");var Sdd=new _.X("deleteClipEngagementPanelCommand");var Tdd=new _.X("loopCommand");var Udd=new _.X("changeCreatorEndscreenVisibilityCommand");var Vdd=new _.X("liveChatCallForQuestionsRenderer");var Wdd=new _.X("updateTimedMarkersSyncObserverCommand");var udd=new _.X("timelyActionViewModel");var Xdd=new _.X("timelyActionsOverlayViewModel");var Ydd=new _.X("repeatChapterCommand");var Zdd=new _.X("watchPlayerOverflowMenuCommand");var $dd=new _.X("compositeVideoOverlayRenderer");var aed=new _.X("sortFilterSubMenuRenderer");var bed=new _.X("horizontalShelfViewModel");var ced=new _.X("switchListItemViewModel");var ded=new _.X("inputComposerViewModel");var eed=new _.X("transcriptEditSegmentCommand");var fed=new _.X("transcriptUpdateSegmentTextCommand");var ged=new _.X("transcriptSearchBoxRenderer");var hed=new _.X("transcriptSegmentListRenderer");var ied=new _.X("transcriptSegmentRenderer");_.jed=new _.X("updateDateTextAction");var ked=new _.X("updateTitleAction");var led=new _.X("updateViewershipAction");var med=new _.X("carouselLockupRenderer");var ned=new _.X("expandableVideoDescriptionBodyRenderer");var oed=new _.X("videoDescriptionYouchatSectionViewModel");var ped=new _.X("conversationResourceViewModel");_.M8=_.$i("kevlar_watch_page_horizontal_margin",24);_.qed=_.$i("kevlar_watch_page_columns_top_padding",24);_.red=_.$i("web_screen_width_midpoint",1500);_.sed=_.$i("web_watch_sidebar_width_offset_per_100",10);_.ted=426+_.M8*2;_.N8=_.$i("kevlar_watch_two_column_width_threshold",1E3);_.ued=_.M8*2;_.O8=_.$i("kevlar_watch_secondary_width",402);_.ved=_.$i("kevlar_watch_secondary_max_width",600);_.wed=_.$i("kevlar_watch_max_player_width",1280);_.xed=_.$i("kevlar_watch_flexy_metadata_height",136);
_.yed=_.ued+310+_.M8;_.zed=_.ued+360+_.M8;var Aed={PAUSE_CHAT:18};var Bed;var Ced;var Ded=function(){return _.P.apply(this,arguments)||this};
_.z(Ded,_.P);Ded.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
Ded.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var a=_.y(this.data.button,_.Iu);a&&(a.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.Um.Object.defineProperties(Ded,{template:{configurable:!0,enumerable:!0,get:function(){if(Ced===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-disableable-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_disableable_button_view_model.yt.disableable.button.view.model.css.js--\x3e<div id="button" class="style-scope yt-disableable-button-view-model"></div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Bed===void 0&&(Bed=document.createElement("template"));var d=Bed;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Ced=a}a=Ced;return a}}});
var P8=Ded;_.U([_.H(_.MG),_.W("design:type",Object)],P8.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],P8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O({selectorArgs:["data.enabledEntityKey"],selector:xcd,observer:"onEnabledChange"}),_.W("design:type",Boolean)],P8.prototype,"enabled",void 0);_.U([_.O(),_.W("design:type",Object)],P8.prototype,"data",void 0);
P8=_.U([_.wr({is:"yt-disableable-button-view-model",noInjection:!0})],P8);var Eed;var Fed;var Ged=["transVert01","transVert02","transVert03"],Hed="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),Ied=function(){var a=_.P.apply(this,arguments)||this;a.emojiManager=_.SH;a.isDarkTheme=document.documentElement.hasAttribute("dark");a.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};a.reactionBuckets=[];a.noEmojiIdentifier="NO_EMOJI";return a};
_.z(Ied,_.P);_.f=Ied.prototype;_.f.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.f.desktopFountainEmojiSizePxChanged=function(){_.fr(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.f.createUserReactionAnimation=function(a){this.createEmojiAnimation(a,!0)};
_.f.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var a;((a=this.data)==null?0:a.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.wu("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.De(this.emojiContainer.children)).forEach(function(b){b.remove()})};
_.f.detached=function(){this.cleanupFountain()};
_.f.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var a;this.reactionBuckets=_.Cf.unsafeClone((a=this.emojiFountainData)==null?void 0:a.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.f.processEmojiBucket=function(a){var b=this;if(this.reactionBuckets&&!(a>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var c=this.reactionBuckets[a];this.generateEmojiAnimations(c);if(a<this.reactionBuckets.length-1){var d;if(c==null?0:(d=c.duration)==null?0:d.seconds)this.emojiBucketTimerId=setTimeout(function(){b.processEmojiBucket(a+1)},Number(c.duration.seconds)*1E3)}}};
_.f.generateEmojiAnimations=function(a){var b=this,c=this.getRandomEmojiIdFromBucketWithOverride(a);if(c&&c!==this.noEmojiIdentifier){var d=0;a.targetEps?(d=this.linearInterpolateBounded(1,20,100,12,a.emojiSizeIndex||0),this.createEmojiAnimation(c,!1,a.emojiAnimationMs,d),d=this.getEmojiDelayMsFromTargetEps(a.targetEps)):(this.createEmojiAnimation(c),d=this.getEmojiDelayMsFromDistribution(a.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){b.generateEmojiAnimations(a)},d)}};
_.f.getRandomEmojiIdFromBucketWithOverride=function(a){if(!(a&&a.reactionsData&&a.reactionsData.length&&a.totalReactions))return this.noEmojiIdentifier;for(var b=a.totalReactions,c=1,d=_.h(a.reactionsData),e=d.next();!e.done;e=d.next())e=e.value,(e.reactionWeightOverride||e.reactionWeightOverride===0)&&e.reactionCount&&(b-=e.reactionCount,c-=e.reactionWeightOverride);d=!0;c<0&&(d=!1,b=a.totalReactions,c=1);if(d&&c>0&&b===0)if(c===1){e=0;for(var g=_.h(a.reactionsData),k=g.next();!k.done;k=g.next())k=
k.value,k.reactionCount&&k.reactionCount>0&&e++;e=1/e;g=_.h(a.reactionsData);for(k=g.next();!k.done;k=g.next())k.value.reactionWeightOverride=e}else for(e=1/(1-c),g=_.h(a.reactionsData),k=g.next();!k.done;k=g.next())k=k.value,k.reactionWeightOverride&&(k.reactionWeightOverride*=e);e=Math.random();g=0;k=_.h(a.reactionsData);for(var m=k.next();!m.done;m=k.next())if(m=m.value,m.reactionCount&&(g=(m.reactionWeightOverride||m.reactionWeightOverride===0)&&d?g+m.reactionWeightOverride:g+c*m.reactionCount/
b,g>e&&(m.reactionCount--,a.totalReactions--,m=this.reactionItemToEmojiString(m),m!==this.noEmojiIdentifier)))return m;return this.noEmojiIdentifier};
_.f.reactionItemToEmojiString=function(a){if(a.unicodeEmojiId)return a.unicodeEmojiId;if(a.emoteId)return a.emoteId;if(a.videoReactionType)switch(a.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.f.createEmojiAnimation=function(a,b,c,d){b=b===void 0?!1:b;this.lastEmojiRequestedForTesting=a;var e=a.startsWith("yt-icons:"),g=_.QH(this.emojiManager,a);if(g||e){var k=document.createElement("emoji");k.classList.add("yt-emoji-fountain-view-model");k.classList.add(Ged[Math.floor(Math.random()*Ged.length)]);var m=document.createElement("div");m.classList.add("yt-emoji-fountain-view-model");m.classList.add("horizontal-container");m.classList.add(Hed[Math.floor(Math.random()*Hed.length)]);b?(c=document.createElement("div"),
c.classList.add("user-reaction-bubble"),c.classList.add("yt-emoji-fountain-view-model"),m.appendChild(c)):(c&&(k.style.animationDuration=c+"ms",m.style.animationDuration=c+"ms"),d&&(k.style.width=d+"px",k.style.height=d+"px"));e?(e=document.createElement("yt-icon"),e.polymerController.icon=a,d&&(e.style.width=d+"px",e.style.height=d+"px"),a=e):a=this.emojiManager.createEmoji(g,!1);a.classList.add("yt-emoji-fountain-view-model");m.appendChild(a);k.appendChild(m);this.emojiContainer.appendChild(k);
k.addEventListener("animationend",function(){k.remove()});
var n,r;if((n=this.data)==null?0:(r=n.loggingDirectives)==null?0:r.trackingParams)b=b?_.ku(183501):_.ku(183500),ycd(this.data.loggingDirectives.trackingParams,b),_.uTa(b);setTimeout(function(){k&&k.remove()},2E3)}};
_.f.getEmojiDelayMsFromDistribution=function(a){return Math.random()*(a||1)*1E3};
_.f.getEmojiDelayMsFromTargetEps=function(a){return Math.random()*2*(1/a)*1E3};
_.f.linearInterpolateBounded=function(a,b,c,d,e){e=Math.min(Math.max(e,a),c);return(b*(c-e)+d*(e-a))/(c-a)};
var Q8=Ied;Q8.prototype.onEmojiFountainDataEntityUpdate=Q8.prototype.onEmojiFountainDataEntityUpdate;Q8.prototype.desktopFountainEmojiSizePxChanged=Q8.prototype.desktopFountainEmojiSizePxChanged;Q8.prototype.isActiveChanged=Q8.prototype.isActiveChanged;_.U([_.O(),_.W("design:type",_.PH)],Q8.prototype,"emojiManager",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Q8.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.MG),_.W("design:type",Object)],Q8.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],Q8.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Q8.prototype,"data",void 0);_.U([_.O({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(a,b){return _.np(a.entities,"emojiFountainDataEntity",b)}}),
_.W("design:type",Object)],Q8.prototype,"emojiFountainData",void 0);_.U([_.O(),_.W("design:type",Boolean)],Q8.prototype,"isActive",void 0);_.U([_.N("isActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Q8.prototype,"isActiveChanged",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Q8.prototype,"isDarkTheme",void 0);_.U([_.O(),_.W("design:type",String)],Q8.prototype,"lastEmojiRequestedForTesting",void 0);
_.U([_.O({value:function(){return _.$i("desktop_fountain_emoji_size_px",20)}}),
_.W("design:type",Number)],Q8.prototype,"desktopFountainEmojiSizePx",void 0);_.U([_.N("desktopFountainEmojiSizePx"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Q8.prototype,"desktopFountainEmojiSizePxChanged",null);_.U([_.ir("#emoji-container"),_.W("design:type",HTMLElement)],Q8.prototype,"emojiContainer",void 0);
_.U([_.N("emojiFountainData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Q8.prototype,"onEmojiFountainDataEntityUpdate",null);Q8=_.U([_.wr({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],Q8);
_.S(Q8,"yt-emoji-fountain-view-model",function(){if(Fed===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-fountain-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_fountain_view_model.yt.emoji.fountain.view.model.css.js--\x3e<div id="fountain-bounds" class="style-scope yt-emoji-fountain-view-model">\n  <div id="emoji-container" class="style-scope yt-emoji-fountain-view-model"></div>\n</div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Eed===void 0&&(Eed=document.createElement("template"));var d=Eed;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Fed=a}a=Fed;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var Jed;var Ked;var Led=function(){return _.P.apply(this,arguments)||this};
_.z(Led,_.P);Led.prototype.onChoiceChanged=function(){this.data&&_.fr(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
var R8=Led;R8.prototype.onChoiceChanged=R8.prototype.onChoiceChanged;_.U([_.O(),_.W("design:type",Object)],R8.prototype,"data",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],R8.prototype,"onChoiceChanged",null);R8=_.U([_.Q({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],R8);
_.S(R8,"yt-live-chat-banner-poll-choice",function(){if(Ked===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-banner-poll-choice--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_banner_poll_choice.yt.live.chat.banner.poll.choice.css.js--\x3e<div id="content" class="style-scope yt-live-chat-banner-poll-choice">\n  <div id="percentage-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <div id="vote-percentage-bar" class="style-scope yt-live-chat-banner-poll-choice"></div>\n  </div>\n  <div id="text-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <yt-formatted-string id="label-text" no-styles="" text="[[data.text]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n    <yt-formatted-string id="vote-percentage-text" no-styles="" text="[[data.votePercentage]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n  </div>\n</div>\n\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Jed===void 0&&(Jed=document.createElement("template"));var d=Jed;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Ked=a}a=Ked;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var Med;var Ned;var Oed=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.w("web_button_rework_with_live");a.small=!1;return a};
_.z(Oed,_.P);Oed.prototype.computeIsSmall=function(){var a;return((a=this.buttonOverrides)==null?void 0:a.size)==="S"};
Oed.prototype.computeId=function(){return this.data&&this.data.targetId};
var S8=Oed;_.U([_.H(_.NG.YtLiveChatTooltipTargetingBehavior),_.W("design:type",Object)],S8.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.U([_.O({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.W("design:type",String)],S8.prototype,"id",void 0);_.U([_.O(),_.W("design:type",Object)],S8.prototype,"buttonOverrides",void 0);_.U([_.O(),_.W("design:type",Object)],S8.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],S8.prototype,"modern",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.W("design:type",Object)],S8.prototype,"small",void 0);S8=_.U([_.Q({disableElementRegistration:!0,is:"yt-live-chat-button"})],S8);
_.S(S8,"yt-live-chat-button",function(){if(Ned===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_button.yt.live.chat.button.css.js--\x3e<yt-button-renderer data="[[data]]" overrides="[[buttonOverrides]]" class="style-scope yt-live-chat-button"></yt-button-renderer>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Med===void 0&&(Med=document.createElement("template"));var d=Med;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Ned=a}a=Ned;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var Ped;var Qed;var Red=function(){var a=_.P.apply(this,arguments)||this;a.inCollapsedBanner=!1;a.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};a.questionButtonOverrides={style:"mono",type:"filled"};return a};
_.z(Red,_.P);_.f=Red.prototype;_.f.configureRendererStamper=function(){return{"data.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"},properties:{overrides:"[[buttonOverrides]]"}}}},"data.askQuestionButton":{id:"ask-question",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"ask-question-button"},properties:{overrides:"[[questionButtonOverrides]]"}}}}}};
_.f.onContextMenuButtonClick=function(a){this.ytLiveChatItemBehavior.showContextMenu(a)};
_.f.onYtRendererstamperFinished=function(){this.menuButton=_.E(this.hostElement).querySelector("#menu-button")};
_.f.dataChanged=function(){var a,b;if((b=_.y((a=this.data)==null?void 0:a.overflowMenuButton,_.RE))==null?0:b.command)this.data.contextMenuEndpoint=_.y(this.data.overflowMenuButton,_.RE).command};
_.f.onButtonClick=function(){var a,b=_.y((a=this.data)==null?void 0:a.askQuestionButton,_.RE);if(b){if(b.trackingParams&&(a=_.ps(b.trackingParams))){var c=_.En();c&&_.Xo(c,a)}_.io(this.hostElement,"innertube-command",b.command)}};
var T8=Red;T8.prototype.onYtRendererstamperFinished=T8.prototype.onYtRendererstamperFinished;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],T8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.MG),_.W("design:type",Object)],T8.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.H(_.TH.YtLiveChatItemBehavior),_.W("design:type",_.UH)],T8.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.O({observer:"dataChanged"}),_.W("design:type",Object)],T8.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],T8.prototype,"inCollapsedBanner",void 0);_.U([_.O(),_.W("design:type",Object)],T8.prototype,"buttonOverrides",void 0);_.U([_.O(),_.W("design:type",Object)],T8.prototype,"questionButtonOverrides",void 0);_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T8.prototype,"onYtRendererstamperFinished",null);
T8=_.U([_.Q({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],T8);
_.S(T8,"yt-live-chat-call-for-questions-renderer",function(){if(Qed===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-call-for-questions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_call_for_questions_renderer.yt.live.chat.call.for.questions.renderer.css.js--\x3e<div id="content-top" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorAvatar]]" thumbnail="[[data.creatorAvatar]]" width="24" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-img-shadow>\n\n  <div id="metadata-text" class="style-scope yt-live-chat-call-for-questions-renderer">\n    <yt-formatted-string id="author-name" hidden$="[[inCollapsedBanner]]" text="[[data.creatorAuthorName]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-collapsed" hidden$="[[inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="feature-label" text="[[data.featureLabel]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-extended" hidden$="[[!inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="collapsed-call-for-questions-text" hidden$="[[!inCollapsedBanner]]" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n  </div>\n\n  <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n\n<div id="main-content" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-formatted-string id="call-for-questions-text" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-formatted-string>\n\n  <div id="ask-question" on-click="onButtonClick" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Ped===void 0&&(Ped=document.createElement("template"));var d=Ped;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Qed=a}a=Qed;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var Sed={};Sed.YtLiveChatDialogBehavior={properties:{hidden:{type:Boolean,reflectToAttribute:!0,observer:"hiddenChanged_"}},observers:["isAttachedChanged_(isAttached)"],created:function(){this.restoreFocusNode_=null},
attached:function(){document.addEventListener("focus",this.onFocus_.bind(this),!0)},
detached:function(){this.restoreFocusNode_=null;document.removeEventListener("focus",this.onFocus_.bind(this),!0)},
focusChild_:function(){var a=this;window.requestAnimationFrame(function(){a.restoreFocusNode_||(a.restoreFocusNode_=document.activeElement);var b=_.fwb(a.hostElement);b.length&&b[b.length-1].focus()})},
isAttachedChanged_:function(a,b){a?this.focusChild_():b&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(a){this.hidden||_.Rq(a).indexOf(this.hostElement)!==-1||(a.stopPropagation(),this.focusChild_())}};var Ted;var Ued;var Ved=function(){return _.P.apply(this,arguments)||this};
_.z(Ved,_.P);Ved.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Ved.prototype.onClick=function(a){a.target!==this.confirmButton&&a.target!==this.cancelButton&&(this.hidden=!0)};
var U8=Ved;_.U([_.ir("#confirm_button"),_.W("design:type",Object)],U8.prototype,"confirmButton",void 0);_.U([_.ir("#cancel_button"),_.W("design:type",Object)],U8.prototype,"cancelButton",void 0);_.U([_.O(),_.W("design:type",Wed)],U8.prototype,"data",void 0);_.U([_.O({value:!0,reflectToAttribute:!0}),_.W("design:type",Boolean)],U8.prototype,"hidden",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],U8.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(Sed.YtLiveChatDialogBehavior),_.W("design:type",Object)],U8.prototype,"ytLiveChatDialogBehavior",void 0);U8=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],U8);
var Wed=_.S(U8,"yt-live-chat-dialog-renderer",function(){if(Ued===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_dialog_renderer.yt.live.chat.dialog.renderer.css.js--\x3e<div id="inner" aria-describedby="live-chat-dialog-body" aria-labelledby="live-chat-dialog-title" role="dialog" class="style-scope yt-live-chat-dialog-renderer">\n  <yt-image id="image" alt="[[data.imageA11yLabel]]" data="[[data.image]]" height="200" preserve-height="" width="32" class="style-scope yt-live-chat-dialog-renderer">\n  </yt-image>\n  <yt-formatted-string id="live-chat-dialog-title" text="[[data.title]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n  <div id="live-chat-dialog-body" class="style-scope yt-live-chat-dialog-renderer">\n    \n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-live-chat-dialog-renderer">\n      <yt-formatted-string force-default-style="" split-lines="" text="[[item]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n    </template>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-dialog-renderer">\n    <div id="cancel_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n    <div id="confirm_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Ted===void 0&&(Ted=document.createElement("template"));var d=Ted;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Ued=a}a=Ued;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var Xed;var Yed,Zed=function(){if(Yed!==void 0)return Yed;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-engagement-panel-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_engagement_panel_input_renderer.yt.live.chat.engagement.panel.input.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-engagement-panel-input-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Xed===void 0&&(Xed=document.createElement("template"));var d=Xed;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Yed=a};var $ed;var afd;var bfd=function(){var a=_.P.apply(this,arguments)||this;a.tooltip=null;a.data=null;a.id="";a.active=!1;a.icon="";a.disabled=!1;a.showTooltip=!1;a.useToggledActiveState=!0;a.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return a};
_.z(bfd,_.P);_.f=bfd.prototype;
_.f.dataChanged=function(){var a;((a=this.data)==null?0:a.tooltip)?(this.tooltip||(this.tooltip=document.createElement("tp-yt-paper-tooltip"),this.tooltip.position="top",this.tooltip.offset=8,this.tooltip.fitToVisibleBounds=!0,this.tooltip.style.right="0",this.hostElement.appendChild(this.tooltip)),(0,_.er)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var b;if((b=this.data)==null?0:b.disabled)this.disabled=!0};
_.f.computeId=function(a){return a};
_.f.computeIcon=function(a,b){if(!a)return"";if(this.useToggledActiveState)return"yt-icons:"+a.toLowerCase();var c,d;return b&&((c=this.data)==null?0:(d=c.toggledIcon)==null?0:d.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+a.toLowerCase()};
_.f.logPDGEntryPoint=function(){_.cIa(_.iq("FLOW_EVENT_NAMESPACE_PDG_BUY_FLOW",1,{pdgBuyFlowContext:{entryPointClickedContext:{sharedPdgBuyFlowEntryPoint:"SHARED_PDG_BUY_FLOW_ENTRY_POINT_LIVE_CHAT_MONEY_BUTTON"}}}),"FLOW_TYPE_PDG_BUY_FLOW")};
_.f.immediatelyShowTooltip=function(){var a=_.E(this.hostElement).querySelector("#tooltip");a.animationDelay=0;a.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};a.show()};
_.f.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.f.onClick=function(a){var b;((b=this.data)==null?0:b.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),a.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.io(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.f.computeShowTooltip=function(a,b){return!!(a&&a.tooltip&&b)};
_.f.maybeUpdateTooltipText=function(){var a=this,b;if((b=this.data)==null?0:b.tooltip){var c=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.er)(a.tooltip).textContent=c},250)}};
_.f.handleLiveChatActions=function(a){var b=this;a.length&&(this.id!=="creator"&&this.id!=="product-picker"||a.forEach(function(c){(c=b.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",c))&&c.durationSec===c.fullDurationSec&&b.startBubble(b.colorFromDecimal(c.startBackgroundColor))}))};
_.f.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.f.startBubble=function(a){_.fr(this.hostElement,{"--yt-live-chat-monetization-button-glow":a});this.hostElement.setAttribute("bubble","")};
_.f.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.f.colorFromDecimal=function(a){typeof a==="string"&&(a=Number(a));return"rgba("+[a>>16&255,a>>8&255,a&255,(a>>24&255)/255].join()+")"};
var V8=bfd;V8.prototype.onAnimationEnd=V8.prototype.onAnimationEnd;V8.prototype.disabledChanged=V8.prototype.disabledChanged;V8.prototype.dataChanged=V8.prototype.dataChanged;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],V8.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],V8.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.NG.YtLiveChatTooltipTargetingBehavior),_.W("design:type",Object)],V8.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],V8.prototype,"data",void 0);_.U([_.O({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.W("design:type",Object)],V8.prototype,"id",void 0);_.U([_.O({notify:!0,reflectToAttribute:!0}),_.W("design:type",Object)],V8.prototype,"active",void 0);
_.U([_.O({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.W("design:type",Object)],V8.prototype,"icon",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],V8.prototype,"disabled",void 0);_.U([_.O({computed:"computeShowTooltip(data, disabled)"}),_.W("design:type",Object)],V8.prototype,"showTooltip",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],V8.prototype,"useToggledActiveState",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V8.prototype,"dataChanged",null);_.U([_.N("disabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V8.prototype,"disabledChanged",null);_.U([_.M("animationend"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],V8.prototype,"onAnimationEnd",null);
V8=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],V8);
_.S(V8,"yt-live-chat-icon-toggle-button-renderer",function(){if(afd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-icon-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_icon_toggle_button_renderer.yt.live.chat.icon.toggle.button.renderer.css.js--\x3e<yt-icon-button id="button" disabled="[[disabled]]" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <span id="bubble" class="style-scope yt-live-chat-icon-toggle-button-renderer"></span>\n  <div class="style-scope yt-live-chat-icon-toggle-button-renderer">\n    <yt-icon active="[[active]]" icon="[[icon]]" class="style-scope yt-live-chat-icon-toggle-button-renderer"></yt-icon>\n    <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.iconBadgeText]]</span>\n  </div>\n</yt-icon-button>\n<template is="dom-if" if="[[showTooltip]]" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <tp-yt-paper-tooltip id="tooltip" for="button" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;$ed===void 0&&($ed=document.createElement("template"));var d=$ed;c.call(b,d.content.cloneNode(!0),a.content.firstChild);afd=a}a=afd;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var cfd;var dfd;var efd=function(){return _.P.apply(this,arguments)||this};
_.z(efd,_.P);efd.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
var ffd=efd;_.U([_.O(),_.W("design:type",Object)],ffd.prototype,"data",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],ffd.prototype,"ytRendererstamperBehavior",void 0);ffd=_.U([_.Q({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],ffd);
_.S(ffd,"yt-live-chat-message-input-prompt-header-renderer",function(){if(dfd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-prompt-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_prompt_header_renderer.yt.live.chat.message.input.prompt.header.renderer.css.js--\x3e<div id="primary-content" class="style-scope yt-live-chat-message-input-prompt-header-renderer">\n  <div id="close-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n  <yt-formatted-string id="label-text" text="[[data.labelText]]" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></yt-formatted-string>\n  <div id="help-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n</div>\n<div id="underline" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;cfd===void 0&&(cfd=document.createElement("template"));var d=cfd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);dfd=a}a=dfd;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var gfd;var hfd;var ifd;var jfd;var kfd;var lfd;var mfd=function(){return _.P.apply(this,arguments)||this};
_.z(mfd,_.P);var nfd=mfd;_.U([_.O(),_.W("design:type",Object)],nfd.prototype,"data",void 0);nfd=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],nfd);
_.S(nfd,"yt-live-chat-message-subtext-renderer",function(){if(lfd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-subtext-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_subtext_renderer.yt.live.chat.message.subtext.renderer.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-message-subtext-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;kfd===void 0&&(kfd=document.createElement("template"));var d=kfd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);lfd=a}a=lfd;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var ofd=function(){var a=_.P.apply(this,arguments)||this;a.subtextOnBottom=!1;a.buttonOverrides={style:"mono",type:"tonal"};return a};
_.z(ofd,_.P);ofd.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.subtext":{id:"subtext",mapping:{messageSubtextRenderer:"yt-live-chat-message-subtext-renderer"}}}};
var W8=ofd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],W8.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],W8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],W8.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],W8.prototype,"subtextOnBottom",void 0);_.U([_.O(),_.W("design:type",Object)],W8.prototype,"buttonOverrides",void 0);
W8=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],W8);
_.S(W8,"yt-live-chat-message-renderer",function(){if(jfd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_renderer.yt.live.chat.message.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-message-renderer"></yt-formatted-string>\n<div id="subtext" class="style-scope yt-live-chat-message-renderer"></div>\n<div id="button" class="style-scope yt-live-chat-message-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;ifd===void 0&&(ifd=document.createElement("template"));var d=ifd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);jfd=a}a=jfd;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var pfd;var qfd;var rfd=function(){var a=_.P.apply(this,arguments)||this;a.isRemovable=!1;a.hasPrefilledText=!1;a.isInputDirty=!1;a.overCharacterLimit=!1;a.underCharacterLimit=!1;a.showErrorMessage=!1;return a};
_.z(rfd,_.P);_.f=rfd.prototype;_.f.computeId=function(){return this.data.id};
_.f.computeInputData=function(){return this.data.inputData};
_.f.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.f.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.f.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.f.getLiveChatRichMessageInput=function(){return _.E(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.f.clearInput=function(){_.E(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.f.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.f.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.f.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.f.handleTextInputCharCountChanged=function(a){a=a.detail&&a.detail.characterCount;a!==void 0&&(this.characterCount=a,a!==0&&(this.isInputDirty=!0))};
_.f.onInputFocusOut=function(){this.isInputDirty=!0};
_.f.onClickCloseButton=function(){_.io(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
var X8=rfd;X8.prototype.handleTextInputCharCountChanged=X8.prototype.handleTextInputCharCountChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],X8.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],X8.prototype,"data",void 0);_.U([_.O({computed:"computeId(data.id)"}),_.W("design:type",String)],X8.prototype,"id",void 0);_.U([_.O({computed:"computeInputData(data.inputData)"}),_.W("design:type",Object)],X8.prototype,"inputData",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.W("design:type",Object)],X8.prototype,"isRemovable",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.W("design:type",Object)],X8.prototype,"hasPrefilledText",void 0);_.U([_.O({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.W("design:type",Number)],X8.prototype,"charactersRemaining",void 0);
_.U([_.O(),_.W("design:type",Number)],X8.prototype,"characterCount",void 0);_.U([_.O(),_.W("design:type",Object)],X8.prototype,"isInputDirty",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.W("design:type",Object)],X8.prototype,"overCharacterLimit",void 0);_.U([_.O({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.W("design:type",Object)],X8.prototype,"underCharacterLimit",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.W("design:type",Object)],X8.prototype,"showErrorMessage",void 0);_.U([_.M("yt-live-chat-text-input-field-renderer-character-count-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],X8.prototype,"handleTextInputCharCountChanged",null);
X8=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],X8);
_.S(X8,"yt-live-chat-poll-editor-input",function(){if(qfd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_input.yt.live.chat.poll.editor.input.css.js--\x3e<div id="input-container" class="style-scope yt-live-chat-poll-editor-input">\n  <yt-live-chat-text-input-field-renderer id="input" data="[[inputData]]" is-valid-with-no-input-text="[[hasPrefilledText]]" on-focusout="onInputFocusOut" class="style-scope yt-live-chat-poll-editor-input">\n  </yt-live-chat-text-input-field-renderer>\n  <div id="content-right" class="style-scope yt-live-chat-poll-editor-input">\n    <yt-icon-button id="close-button" aria-label$="[[getSimpleString(data.removeOptionAltText)]]" on-click="onClickCloseButton" class="style-scope yt-live-chat-poll-editor-input">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-live-chat-poll-editor-input"></yt-icon>\n    </yt-icon-button>\n    <span id="char-count" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(data.charsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-input">[[charactersRemaining]]</span>\n  </div>\n</div>\n<div id="error-message" role="alert" class="style-scope yt-live-chat-poll-editor-input">\n  [[getSimpleString(data.charCountErrorText)]]\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;pfd===void 0&&(pfd=document.createElement("template"));var d=pfd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);qfd=a}a=qfd;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var sfd;var tfd;var ufd={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},vfd=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.w("web_button_rework_with_live");a.closeButtonOverrides={iconPosition:"icon-only"};a.startButtonOverrides={style:"mono",type:"filled"};a.addOptionButtonOverrides={style:"mono",type:"text"};return a};
_.z(vfd,_.P);_.f=vfd.prototype;
_.f.configureRendererStamper=function(){return{"data.pollEditorInfo.addOptionButton":{id:"add-option-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[addOptionButtonOverrides]]"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[startButtonOverrides]]"}}}},pollQuestionData:{id:"poll-question",
mapping:{liveChatTextInputFieldRenderer:{component:"yt-live-chat-text-input-field-renderer",attributes:{id:"poll-question-input","is-valid-with-no-input-text":!0}}}},pollOptionsData:{id:"poll-options",mapping:{liveChatPollOptionInput:{component:"yt-live-chat-poll-editor-input"}}}}};
_.f.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var a;_.y((a=this.data)==null?void 0:a.startButton,_.RE)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.f.computeId=function(){return this.data&&this.data.id||""};
_.f.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.f.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.f.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.f.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.f.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var a=0;a<this.pollEditorInfoWithDefaults.minPollOptions;a++)this.addPollOptionData()};
_.f.getIsValidPoll=function(){var a=this;if(!this.pollEditorInfoWithDefaults)return!1;var b=this.pollEditorInfoWithDefaults,c=b.minPollOptionChars,d=b.maxPollOptionChars,e=b.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>b.maxPollQuestionChars)return!1;b=_.E(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(b).every(function(g,k){g=g.characterCount;!g&&e[k]&&(g=a.ytRendererBehavior.getSimpleString(e[k]).length);return g!==void 0&&g>=c&&g<=d})};
_.f.isValidPollChanged=function(){var a;_.y((a=this.data)==null?void 0:a.startButton,_.RE)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.f.addPollOptionData=function(){var a=this.pollEditorInfoWithDefaults,b=a.maxPollOptionChars,c=a.optionPlaceholderText,d=a.customOptionPlaceholderText,e=a.pollOptionData;this.currentNumPollOptions>=a.maxPollOptions||(a={liveChatPollOptionInput:{inputData:{placeholder:d[this.currentNumPollOptions]||c,maxCharacterLimit:b},maxCharacterLimit:b,minCharacterLimit:a.minPollOptionChars,hasPrefilledText:!!d[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=a.minPollOptions}},e.charCountErrorText&&
(a.liveChatPollOptionInput.charCountErrorText=e.charCountErrorText),e.charsRemainingAltLabel&&(a.liveChatPollOptionInput.charsRemainingAltLabel=e.charsRemainingAltLabel),e.removeOptionAltText&&(a.liveChatPollOptionInput.removeOptionAltText=e.removeOptionAltText),this.push("pollOptionsData",a),e=Array.from(_.E(_.E(this.hostElement).querySelector("#poll-options")).children),e.forEach(function(g,k){g.polymerController.set("data.id",k)}),_.E(e[e.length-1]).querySelector("#input").focus())};
_.f.getPollOptionInputValues=function(){var a=this,b=[],c=_.E(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),d=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(c).forEach(function(e,g){var k=null;e=e.getLiveChatRichMessageInput();var m;(e==null?0:(m=e.textSegments)==null?0:m.length)?k=_.Mt(e):d[g]&&(k=a.formattedStringToLiveChatRichMessageInput(d[g]));b.push(k)});
return b};
_.f.requestCreateAndStartPoll=function(a){var b=this.getPollOptionInputValues();if(!b.some(function(d){return!d})){b={optionText:b};
var c=_.E(_.E(this.hostElement).querySelector("#poll-question")).firstChild;c&&c.liveChatRichMessageInput&&(b.questionText=_.Mt(c.liveChatRichMessageInput));_.oo(this.hostElement,[a,b])}};
_.f.selectedChanged=function(){if(this.selected){var a=_.E(_.E(this.hostElement).querySelector("#start-button")).firstElementChild;if(a){var b;(b=_.E(a).querySelector("#button")||_.ar(a).querySelector("button"))==null||b.focus()}}};
_.f.handleTextInputChanged=function(a){var b;((b=a.target)==null?void 0:b.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=a.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.f.handleStartButtonAction=function(a){a.detail.actionName==="yt-service-request"&&(a.stopPropagation(),(a=a.detail.args[1])&&this.requestCreateAndStartPoll(a))};
_.f.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.f.handleServiceRequestCompleted=function(a){this.createPollRequestInFlight=!1;(a=a.detail&&a.detail.data)&&a.success&&(_.io(this.hostElement,"picker-cancelled"),_.lo(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.f.onCloseClick=function(){_.io(this.hostElement,"picker-cancelled");_.lo(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.f.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.f.handlePollEditorInputClosed=function(a){var b=this.pollOptionsData.findIndex(function(c){return c.liveChatPollOptionInput.id===a.detail.id});
this.splice("pollOptionsData",b,1);this.isValidPoll=this.getIsValidPoll()};
_.f.onPickerCancelled=function(){this.reset()};
_.f.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var a=_.E(_.E(this.hostElement).querySelector("#poll-question")).firstChild;a&&a.setLiveChatRichMessageInput(null);if(a=_.E(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){a=_.h(Array.from(a));for(var b=a.next();!b.done;b=a.next())b.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.f.formattedStringToLiveChatRichMessageInput=function(a){return a.simpleText?{text_segments:[a.simpleText]}:{text_segments:a.runs}};
_.Um.Object.defineProperties(vfd.prototype,{pollQuestionData:{configurable:!0,enumerable:!0,get:function(){if(this.pollEditorInfoWithDefaults)return{liveChatTextInputFieldRenderer:{placeholder:this.pollEditorInfoWithDefaults.questionPlaceholderText,maxCharacterLimit:this.pollEditorInfoWithDefaults.maxPollQuestionChars}}}},
pollQuestionCharactersRemaining:{configurable:!0,enumerable:!0,get:function(){if(this.pollEditorInfoWithDefaults)return this.pollEditorInfoWithDefaults.maxPollQuestionChars-this.pollQuestionCharacterCount}},
pollEditorInfoWithDefaults:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.pollEditorInfo)return Object.assign(ufd,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
var Y8=vfd;Y8.prototype.onPickerCancelled=Y8.prototype.onPickerCancelled;Y8.prototype.handlePollEditorInputClosed=Y8.prototype.handlePollEditorInputClosed;Y8.prototype.handleServiceRequestCompleted=Y8.prototype.handleServiceRequestCompleted;Y8.prototype.handleServiceRequestSent=Y8.prototype.handleServiceRequestSent;Y8.prototype.handleTextInputChanged=Y8.prototype.handleTextInputChanged;Y8.prototype.selectedChanged=Y8.prototype.selectedChanged;Y8.prototype.isValidPollChanged=Y8.prototype.isValidPollChanged;
Y8.prototype.shouldInitializePollChanged=Y8.prototype.shouldInitializePollChanged;Y8.prototype.dataChanged=Y8.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Y8.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],Y8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Y8.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Y8.prototype,"modern",void 0);
_.U([_.O(),_.W("design:type",Object)],Y8.prototype,"closeButtonOverrides",void 0);_.U([_.O(),_.W("design:type",Object)],Y8.prototype,"startButtonOverrides",void 0);_.U([_.O(),_.W("design:type",Object)],Y8.prototype,"addOptionButtonOverrides",void 0);_.U([_.O({computed:"computeId(data.id)",reflectToAttribute:!0}),_.W("design:type",String)],Y8.prototype,"id",void 0);_.U([_.O({value:function(){return[]}}),
_.W("design:type",Array)],Y8.prototype,"pollOptionsData",void 0);_.U([_.K("pollEditorInfoWithDefaults"),_.W("design:type",Object),_.W("design:paramtypes",[])],Y8.prototype,"pollQuestionData",null);_.U([_.O({value:0}),_.W("design:type",Number)],Y8.prototype,"pollQuestionCharacterCount",void 0);_.U([_.K("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.W("design:type",Object),_.W("design:paramtypes",[])],Y8.prototype,"pollQuestionCharactersRemaining",null);
_.U([_.O({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.W("design:type",Boolean)],Y8.prototype,"overQuestionCharacterLimit",void 0);_.U([_.K("data.pollEditorInfo"),_.W("design:type",Object),_.W("design:paramtypes",[])],Y8.prototype,"pollEditorInfoWithDefaults",null);_.U([_.O({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.W("design:type",Number)],Y8.prototype,"currentNumPollOptions",void 0);
_.U([_.O({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Y8.prototype,"hasMaxNumPollOptions",void 0);_.U([_.K("pollEditorInfoWithDefaults","pollOptionsData"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Y8.prototype,"shouldInitializePoll",null);_.U([_.O(),_.W("design:type",Object)],Y8.prototype,"isValidPoll",void 0);
_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],Y8.prototype,"createPollRequestInFlight",void 0);_.U([_.O(),_.W("design:type",Object)],Y8.prototype,"selected",void 0);_.U([_.O({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.W("design:type",Boolean)],Y8.prototype,"showQuestionErrorMessage",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y8.prototype,"dataChanged",null);_.U([_.N("shouldInitializePoll"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y8.prototype,"shouldInitializePollChanged",null);_.U([_.N("isValidPoll"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y8.prototype,"isValidPollChanged",null);
_.U([_.N("selected"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y8.prototype,"selectedChanged",null);_.U([_.M("yt-live-chat-text-input-field-renderer-character-count-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Y8.prototype,"handleTextInputChanged",null);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y8.prototype,"handleServiceRequestSent",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Y8.prototype,"handleServiceRequestCompleted",null);
_.U([_.M("yt-live-chat-poll-editor-input-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Y8.prototype,"handlePollEditorInputClosed",null);_.U([_.M("picker-cancelled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y8.prototype,"onPickerCancelled",null);Y8=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],Y8);
_.S(Y8,"yt-live-chat-poll-editor-panel-renderer",function(){if(tfd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_panel_renderer.yt.live.chat.poll.editor.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <yt-icon hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <div id="poll-editor" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    <div id="poll-question" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="poll-question-sub-content" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n      <div id="poll-question-error-message" role="alert" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[getSimpleString(pollEditorInfoWithDefaults.pollQuestionCharCountErrorText)]]\n      </div>\n      <div id="poll-question-count" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharacterCount]]/[[pollEditorInfoWithDefaults.maxPollQuestionChars]]\n      </div>\n      <div id="poll-question-count-alt-label" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(pollEditorInfoWithDefaults.pollOptionData.pollQuestionCharsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharactersRemaining]]\n      </div>\n    </div>\n    <div id="poll-options" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="add-option-button" hidden$="[[hasMaxNumPollOptions]]" on-click="onAddOptionButtonClick" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;sfd===void 0&&(sfd=document.createElement("template"));var d=sfd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);tfd=a}a=tfd;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var wfd;var xfd;var yfd=function(){return _.P.apply(this,arguments)||this};
_.z(yfd,_.P);yfd.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
yfd.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Um.Object.defineProperties(yfd.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var a,b;return(a=this.data)==null?void 0:(b=a.title)==null?void 0:b.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var a;return _.Ds((a=this.data)==null?void 0:a.onTapCommand)}}});
var Z8=yfd;_.U([_.H(_.qH.YtEndpointBehavior),_.W("design:type",Object)],Z8.prototype,"ytEndpointBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Z8.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Z8.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Z8.prototype,"itemId",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Z8.prototype,"hasPromotion",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Z8.prototype,"innertubeCommand",null);Z8=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],Z8);
_.S(Z8,"yt-live-chat-product-picker-panel-item-view-model",function(){if(xfd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_item_view_model.yt.live.chat.product.picker.panel.item.view.model.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-picker-panel-item-view-model" data="[[innertubeCommand]]">\n  <tp-yt-paper-item id="container" on-click="onClick" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n    \n    <div id="image-container" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-image id="image" alt="product_animation" data="[[data.productImage.themedImageViewModel.imageLight]]" height="54" preserve-height="" preserve-width="" width="54" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-image>\n      <span id="dot" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n      <yt-attributed-string id="description" data="[[data.description]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n    </div>\n    <yt-icon id="icon" icon="CHEVRON_RIGHT" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-icon>\n  </tp-yt-paper-item>\n</a>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;wfd===void 0&&(wfd=document.createElement("template"));var d=wfd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);xfd=a}a=xfd;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var zfd;var Afd;var Bfd=function(){var a=_.P.apply(this,arguments)||this;a.id="product-picker";a.selected=!1;a.closeButtonId="close-button";a.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return a};
_.z(Bfd,_.P);_.f=Bfd.prototype;_.f.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.f.observeSelected=function(){this.selected&&this.hostElement.focus();var a=_.E(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");a.length&&a[0].focus()};
_.f.onCloseBuyFlow=function(){_.io(this.hostElement,"picker-cancelled")};
_.f.onCloseClick=function(){_.io(this.hostElement,"picker-cancelled");var a;((a=this.data)==null?0:a.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.y(this.data.closeButton,_.Iu))};
_.f.onCloseEngageWithAudienceEditorPanels=function(){_.io(this.hostElement,"picker-cancelled")};
var $8=Bfd;$8.prototype.observeSelected=$8.prototype.observeSelected;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],$8.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$8.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],$8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],$8.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$8.prototype,"id",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$8.prototype,"selected",void 0);_.U([_.O(),_.W("design:type",Object)],$8.prototype,"closeButtonId",void 0);_.U([_.N("selected"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$8.prototype,"observeSelected",null);
$8=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],$8);
_.S($8,"yt-live-chat-product-picker-panel-view-model",function(){if(Afd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_view_model.yt.live.chat.product.picker.panel.view.model.css.js--\x3e<div id="header" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  <yt-attributed-string id="title" data="[[data.title]]" ellipsis-truncate="true" no-pre-wrap="true" class="style-scope yt-live-chat-product-picker-panel-view-model"></yt-attributed-string>\n  <yt-button-view-model id="[[closeButtonId]]" data="[[data.closeButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  </yt-button-view-model>\n</div>\n<div id="items" class="style-scope yt-live-chat-product-picker-panel-view-model"></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;zfd===void 0&&(zfd=document.createElement("template"));var d=zfd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Afd=a}a=Afd;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var Cfd;var Dfd;var Efd=function(){var a=_.P.apply(this,arguments)||this;a.iconId="";a.icon="";a.disabled=!1;a.systemIcons=_.w("kevlar_system_icons");return a};
_.z(Efd,_.P);_.f=Efd.prototype;_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
_.f.computeIconId=function(a){return a&&a.icon&&a.icon.iconType?a.icon.iconType.toLowerCase():""};
_.f.computeIcon=function(a){return a&&a.icon&&a.icon.iconType?(a=a.icon.iconType.toLowerCase(),(a.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+a):""};
_.f.computeDisabled=function(a){return!!a};
_.f.computeCommand=function(a,b){return b?void 0:a};
_.f.computeTooltip=function(a,b){return b&&a?a:""};
_.f.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
var a9=Efd;_.U([_.H(_.qH.YtEndpointBehavior),_.W("design:type",Object)],a9.prototype,"ytEndpointBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],a9.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],a9.prototype,"data",void 0);_.U([_.O({computed:"computeIconId(data)",reflectToAttribute:!0}),_.W("design:type",Object)],a9.prototype,"iconId",void 0);
_.U([_.O({computed:"computeIcon(data)",reflectToAttribute:!0}),_.W("design:type",Object)],a9.prototype,"icon",void 0);_.U([_.O({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.W("design:type",Object)],a9.prototype,"disabled",void 0);_.U([_.O({computed:"computeCommand(data.command, disabled)"}),_.W("design:type",Object)],a9.prototype,"command",void 0);_.U([_.O({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.W("design:type",String)],a9.prototype,"tooltip",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],a9.prototype,"systemIcons",void 0);a9=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],a9);
_.S(a9,"yt-live-chat-product-button-renderer",function(){if(Dfd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" disabled$="[[disabled]]" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Cfd===void 0&&(Cfd=document.createElement("template"));var d=Cfd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Dfd=a}a=Dfd;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var Ffd;var Gfd;var Hfd=function(){var a=_.P.apply(this,arguments)||this;a.selected=!1;a.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return a};
_.z(Hfd,_.P);_.f=Hfd.prototype;_.f.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.f.computeId=function(a){return a.id||""};
_.f.onCloseClick=function(){_.io(this.hostElement,"picker-cancelled")};
_.f.observeSelected=function(){this.selected&&this.hostElement.focus();var a=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");a.length&&a[0].focus()};
_.f.onCloseBuyFlow=function(){_.io(this.hostElement,"picker-cancelled")};
_.f.onCloseEngageWithAudienceEditorPanels=function(){_.io(this.hostElement,"picker-cancelled")};
var b9=Hfd;b9.prototype.observeSelected=b9.prototype.observeSelected;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],b9.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],b9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],b9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],b9.prototype,"data",void 0);
_.U([_.O({computed:"computeId(data)",reflectToAttribute:!0}),_.W("design:type",String)],b9.prototype,"id",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],b9.prototype,"selected",void 0);_.U([_.N("selected"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b9.prototype,"observeSelected",null);b9=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],b9);
_.S(b9,"yt-live-chat-product-picker-renderer",function(){if(Gfd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_renderer.yt.live.chat.product.picker.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.productPickerHeaderTitle]]" class="style-scope yt-live-chat-product-picker-renderer"> </yt-formatted-string>\n<div id="buttons" class="style-scope yt-live-chat-product-picker-renderer"></div>\n<div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Ffd===void 0&&(Ffd=document.createElement("template"));var d=Ffd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Gfd=a}a=Gfd;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var Ifd;var Jfd;var Kfd;var Lfd;var Mfd=function(){return _.P.apply(this,arguments)||this};
_.z(Mfd,_.P);Mfd.prototype.maybeLoadAnimationBackground=function(){this.useAnimationBackground?this.lottieAnimation||(this.lottieAnimation=lottie.loadAnimation({container:this.animationBackground,loop:!0,renderer:"svg",path:"https://www.gstatic.com/youtube/img/livestream/live_chat/lottie_animation/shimmer_background.json",autoplay:!0})):this.lottieAnimation&&this.lottieAnimation.destroy()};
Mfd.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
Mfd.prototype.created=function(){this.ids={background:_.KW(),maskOne:_.KW(),maskTwo:_.KW(),gradient:_.KW(),largeBackground:_.KW(),largeGradientOne:_.KW(),largeGradientTwo:_.KW(),largeGradientPath:_.KW()}};
var c9=Mfd;c9.prototype.maybeLoadAnimationBackground=c9.prototype.maybeLoadAnimationBackground;_.U([_.O({value:!1}),_.W("design:type",Boolean)],c9.prototype,"useLargeBackground",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],c9.prototype,"useAnimationBackground",void 0);_.U([_.O({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.W("design:type",Boolean)],c9.prototype,"useRegularBackground",void 0);
_.U([_.O(),_.W("design:type",Object)],c9.prototype,"ids",void 0);_.U([_.O(),_.W("design:type",Object)],c9.prototype,"lottieAnimation",void 0);_.U([_.ir("#animation-background"),_.W("design:type",HTMLDivElement)],c9.prototype,"animationBackground",void 0);_.U([_.N("useAnimationBackground"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],c9.prototype,"maybeLoadAnimationBackground",null);
c9=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],c9);
_.S(c9,"yt-live-interactivity-component-background",function(){if(Lfd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-interactivity-component-background--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_interactivity_component_background.yt.live.interactivity.component.background.css.js--\x3e<svg id$="[[ids.background]]" hidden$="[[!useRegularBackground]]" width="100%" height="280" viewBox="2 45 400 280" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskOne]]" width="611" height="468" x="1" y="-117" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <mask id$="[[ids.maskTwo]]" width="505" height="439" x="-4" y="-10" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <linearGradient id$="[[ids.gradient]]" x1="-53.35" x2="-54.44" y1="572.174" y2="571.817" gradientTransform="matrix(439 0 0 -439 23648 251318)" gradientUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0" stop-color="#1d3863" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop class="gradient-stop style-scope yt-live-interactivity-component-background" offset="1"></stop>\n    </linearGradient>\n  </defs>\n  <g class="style-scope yt-live-interactivity-component-background">\n    <g class="style-scope yt-live-interactivity-component-background">\n      <rect width="500" height="350" x="1" y="1" fill="#224072" stroke="#000" stroke-opacity=".15" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      <g mask$="url(#[[ids.maskOne]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill="#1a3259" fill-rule="evenodd" d="M612-117v420L192 92.998 611.99-117h.01z" opacity=".8" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n      <g mask$="url(#[[ids.maskTwo]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill$="url(#[[ids.gradient]])" fill-rule="evenodd" d="M-4-10v439l439-219.502L-3.989-10H-4z" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n    </g>\n  </g>\n</svg>\n<svg id$="[[ids.largeBackground]]" hidden$="[[!useLargeBackground]]" height="350" width="100%" viewBox="60 40 428 300" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <linearGradient id$="[[ids.largeGradientOne]]" x1="104.432%" x2="10.997%" y1="62.466%" y2="44.799%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#274C8A" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#1A3259" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <linearGradient id$="[[ids.largeGradientTwo]]" x1="53.199%" x2="-55.854%" y1="34.226%" y2="69.901%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#284F8F" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#234275" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <path id$="[[ids.largeGradientPath]]" d="M0 3.991A3.994 3.994 0 014.006 0h491.988C498.206 0 500 1.8 500 3.991v342.018a3.994 3.994 0 01-4.006 3.991H4.006C1.794 350 0 348.2 0 346.009V3.991z" class="style-scope yt-live-interactivity-component-background"></path>\n  </defs>\n  <g fill="none" fill-rule="evenodd" class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskTwo]]" fill="#fff" class="style-scope yt-live-interactivity-component-background">\n      <use href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    </mask>\n    <use fill="#224175" href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    <path fill$="url(#[[ids.largeGradientOne]])" d="M264-120v420L684 89.998 264.011-120z" mask="url(#[[ids.maskTwo]])" transform="matrix(-1 0 0 1 948 0)" class="style-scope yt-live-interactivity-component-background"></path>\n    <path fill$="url(#[[ids.largeGradientTwo]])" d="M-80-81v507l507-253.503L-79.987-81z" mask="url(#[[ids.maskTwo]])" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n  </g>\n</svg>\n<div id="animation-background" height="350" width="100%" hidden$="[[!useAnimationBackground]]" class="style-scope yt-live-interactivity-component-background"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Kfd===void 0&&(Kfd=document.createElement("template"));var d=Kfd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Lfd=a}a=Lfd;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var Nfd=function(){var a=_.P.apply(this,arguments)||this;a.characterCount=0;a.showInputErrorMessage=!1;a.startQnaRequestInFlight=!1;a.modern=_.w("web_button_rework_with_live");a.buttonOverrides={style:"mono",type:"filled"};a.closeButtonOverrides={iconPosition:"icon-only"};a.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return a};
_.z(Nfd,_.P);_.f=Nfd.prototype;
_.f.configureRendererStamper=function(){return{"data.creatorCallForQuestions.liveChatCreatorCallForQuestionsRenderer.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.f.onCharacterCountChanged=function(a){var b,c,d,e,g=(c=_.y(this==null?void 0:(b=this.data)==null?void 0:b.creatorCallForQuestions,Vdd))==null?void 0:(d=c.inputField)==null?void 0:(e=d.liveChatTextInputFieldRenderer)==null?void 0:e.maxCharacterLimit,k,m;g!=null&&(a==null?void 0:(k=a.detail)==null?void 0:k.characterCount)!=null&&_.y(this==null?void 0:(m=this.data)==null?void 0:m.startButton,_.RE)&&(b=a.detail.characterCount>g,this.set("data.startButton.buttonRenderer.isDisabled",a.detail.characterCount===
0||b),this.showInputErrorMessage=b)};
_.f.onCloseClick=function(){_.io(this.hostElement,"picker-cancelled");_.lo(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.f.onPickerCancelled=function(){var a=_.E(this.hostElement).querySelector("#qna-creator-text-input-field");a&&a.setLiveChatRichMessageInput(null)};
_.f.handleOpenQnaStartPanel=function(){var a=_.E(this.hostElement).querySelector("#qna-creator-text-input-field");a&&a.focus()};
_.f.handleStartButtonAction=function(a){var b=this;if(a.detail.actionName==="yt-service-request"&&(a.stopPropagation(),a=a.detail.args[1])){var c=_.E(this.hostElement).querySelector("#qna-creator-text-input-field"),d;(c==null?0:(d=c.liveChatRichMessageInput)==null?0:d.textSegments)&&c.liveChatRichMessageInput.textSegments.length!==0&&(d={rich_message:_.Mt(c.liveChatRichMessageInput)},_.oo(this.hostElement,[a,d]).then(function(){_.io(b.hostElement,"picker-cancelled")}))}};
_.f.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.f.handleServiceRequestCompleted=function(a){var b;a=a==null?void 0:(b=a.detail)==null?void 0:b.data;(a==null?0:a.actions)&&a.actions.length>0?this.startQnaRequestInFlight=!1:_.lo(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.f.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
var d9=Nfd;d9.prototype.handleServiceRequestError=d9.prototype.handleServiceRequestError;d9.prototype.handleServiceRequestCompleted=d9.prototype.handleServiceRequestCompleted;d9.prototype.handleServiceRequestSent=d9.prototype.handleServiceRequestSent;d9.prototype.onPickerCancelled=d9.prototype.onPickerCancelled;d9.prototype.onCharacterCountChanged=d9.prototype.onCharacterCountChanged;_.U([_.O(),_.W("design:type",Object)],d9.prototype,"characterCount",void 0);
_.U([_.O(),_.W("design:type",Object)],d9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],d9.prototype,"showInputErrorMessage",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],d9.prototype,"startQnaRequestInFlight",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],d9.prototype,"modern",void 0);_.U([_.O(),_.W("design:type",Object)],d9.prototype,"buttonOverrides",void 0);
_.U([_.O(),_.W("design:type",Object)],d9.prototype,"closeButtonOverrides",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],d9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.MG),_.W("design:type",Object)],d9.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.H(_.TH.YtLiveChatItemBehavior),_.W("design:type",_.UH)],d9.prototype,"ytLiveChatItemBehavior",void 0);
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],d9.prototype,"ytActionHandlerBehavior",void 0);_.U([_.M("yt-live-chat-text-input-field-renderer-character-count-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],d9.prototype,"onCharacterCountChanged",null);_.U([_.M("picker-cancelled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d9.prototype,"onPickerCancelled",null);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d9.prototype,"handleServiceRequestSent",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],d9.prototype,"handleServiceRequestCompleted",null);
_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],d9.prototype,"handleServiceRequestError",null);d9=_.U([_.Q({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],d9);
_.S(d9,"yt-live-chat-qna-start-panel-renderer",function(){if(Jfd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-qna-start-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_qna_start_panel_renderer.yt.live.chat.qna.start.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <yt-icon aria-hidden="true" hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <div id="call_for_questions_banner" class="style-scope yt-live-chat-qna-start-panel-renderer">\n    <div id="banner-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n      <div id="banner-content-top" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" thumbnail="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" width="24" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        </yt-img-shadow>\n\n        <div id="metadata-text" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <yt-formatted-string id="author-name" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAuthorName]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="separator-collapsed" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.contentSeparator]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="feature-label" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.featureLabel]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n        </div>\n        <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n      </div>\n\n      <div id="banner-main-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <div id="input-container" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <template is="dom-if" if="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            <yt-live-chat-text-input-field-renderer id="qna-creator-text-input-field" character-count="{{characterCount}}" data="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer]]" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" ignore-color-mapping="" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            </yt-live-chat-text-input-field-renderer>\n          </template>\n        </div>\n        <div id="input-sub-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <div id="qna-error-message" role="alert" class="style-scope yt-live-chat-qna-start-panel-renderer">[[getSimpleString(data.characterLimitErrorMessage)]]</div>\n          <div id="qna-character-count" class="style-scope yt-live-chat-qna-start-panel-renderer">[[characterCount]]/[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer.maxCharacterLimit]]</div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Ifd===void 0&&(Ifd=document.createElement("template"));var d=Ifd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Jfd=a}a=Jfd;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var Ofd;var Pfd;var Qfd=function(){return _.P.apply(this,arguments)||this};
_.z(Qfd,_.P);Qfd.prototype.dismiss=function(){_.io(this.hostElement,"yt-live-chat-error-message-dismiss")};
Qfd.prototype.edit=function(){_.io(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
var Rfd=Qfd;_.U([_.O(),_.W("design:type",Object)],Rfd.prototype,"data",void 0);Rfd=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],Rfd);
_.S(Rfd,"yt-live-chat-text-actions-error-message-renderer",function(){if(Pfd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-actions-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_actions_error_message_renderer.yt.live.chat.text.actions.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-icon icon="close" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<div id="error-text" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  <button id="edit" on-click="edit" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n    <yt-formatted-string text="[[data.editMessageText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  </button>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Ofd===void 0&&(Ofd=document.createElement("template"));var d=Ofd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Pfd=a}a=Pfd;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var Sfd;var Tfd;var Ufd;var Vfd;var e9=function(){var a=_.P.apply(this,arguments)||this;a.isDarkTheme=document.documentElement.hasAttribute("dark");a.newnessDotEligible=!1;return a};
_.z(e9,_.P);e9.prototype.sendReaction=function(){var a,b,c=((a=this.data)==null?void 0:a.emojiId)||((b=this.data)==null?void 0:b.emoteId),d;c&&((d=this.data)==null?0:d.shouldTriggerAnimation)&&_.lo(this.hostElement,"yt-create-user-reaction-animation",[c]);var e;(a=_.Ds((e=this.data)==null?void 0:e.onTap))&&_.hs(a,this.hostElement);this.showNewnessDot&&_.lo(this.hostElement,"yt-hide-newness-dot")};
e9.prototype.onClick=function(a){(!a||a.clientX||a.clientY)&&this.sendReaction()};
e9.prototype.onKeyDown=function(a){a.key!=="Enter"&&a.key!==" "||a.repeat||this.sendReaction()};
_.Um.Object.defineProperties(e9.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(((a=this.data)==null?0:a.emojiId)||((b=this.data)==null?0:b.emoteId))}}});
var f9=e9;_.U([_.O(),_.W("design:type",Object)],f9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],f9.prototype,"isDarkTheme",void 0);_.U([_.O(),_.W("design:type",Object)],f9.prototype,"newnessDotEligible",void 0);_.U([_.K("data.maybeShowNewnessDot"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],f9.prototype,"showNewnessDot",null);
_.U([_.K("data.emojiId","data.emoteId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],f9.prototype,"useYtImage",null);f9=_.U([_.wr({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],f9);
_.S(f9,"yt-reaction-control-panel-button-view-model",function(){if(Vfd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_button_view_model.yt.reaction.control.panel.button.view.model.css.js--\x3e<button on-click="onClick" on-keydown="onKeyDown" class="style-scope yt-reaction-control-panel-button-view-model">\n  <div class="image-container style-scope yt-reaction-control-panel-button-view-model">\n    <template is="dom-if" restamp="" if="[[useYtImage]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-image alt="[[data.a11yLabel]]" data="[[data.buttonIcon]]" height="24" preserve-height="" preserve-width="" should-render-lazy="" width="24" class="style-scope yt-reaction-control-panel-button-view-model"></yt-image>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-icon aria-label="[[data.a11yLabel]]" icon="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model"></yt-icon>\n    </template>\n    <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <div class="newness-dot style-scope yt-reaction-control-panel-button-view-model"></div>\n    </template>\n  </div>\n</button>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Ufd===void 0&&(Ufd=document.createElement("template"));var d=Ufd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Vfd=a}a=Vfd;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var Wfd;var Xfd;var Yfd=function(){var a=_.P.apply(this,arguments)||this;a.reactionControlPanelExpanded=!1;a.isDarkTheme=document.documentElement.hasAttribute("dark");a.newnessDotEligible=!1;return a};
_.z(Yfd,_.P);_.f=Yfd.prototype;_.f.expandedButtonsChanged=function(){var a,b;_.fr(this.hostElement,{"--expanded-buttons-height":((b=(a=this.expandedButtonsData)==null?void 0:a.length)!=null?b:0)*36+"px"})};
_.f.configureRendererStamper=function(){return{expandedButtonsData:{id:"expanded-buttons",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0},"data.collapsedButton":{id:"collapsed-button",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.f.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.f.onMouseLeave=function(){var a=this;this.collapseTimer=setTimeout(function(){a.reactionControlPanelExpanded=!1},500)};
_.f.onFocusIn=function(){this.onMouseEnter()};
_.f.onFocusOut=function(){this.onMouseLeave()};
_.f.onCollapsedButtonFocusIn=function(){var a=this;setTimeout(function(){var b;(b=a.expandedButtons.querySelector("button"))==null||b.focus()},100)};
_.f.onCollapsedButtonFocusOut=function(a){a.stopPropagation()};
_.Um.Object.defineProperties(Yfd.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var a,b;return _.Cf.unsafeClone((a=this.liveReactionsData)==null?void 0:a.emojiButtonData)||((b=this.data)==null?void 0:b.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var a;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((a=this.data)==null||!a.maybeShowNewnessDot)}}});
var g9=Yfd;g9.prototype.expandedButtonsChanged=g9.prototype.expandedButtonsChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],g9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],g9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.MG),_.W("design:type",Object)],g9.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],g9.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],g9.prototype,"reactionControlPanelExpanded",void 0);_.U([_.O({selectorArgs:["data.liveReactionsDataEntityKey"],selector:wcd}),_.W("design:type",Object)],g9.prototype,"liveReactionsData",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],g9.prototype,"isDarkTheme",void 0);_.U([_.O(),_.W("design:type",Object)],g9.prototype,"newnessDotEligible",void 0);
_.U([_.K("liveReactionsData","data.expandedButtons"),_.W("design:type",Object),_.W("design:paramtypes",[])],g9.prototype,"expandedButtonsData",null);_.U([_.K("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.O({reflectToAttribute:!0}),_.W("design:type",Object),_.W("design:paramtypes",[])],g9.prototype,"showNewnessDot",null);_.U([_.ir("#expanded-buttons"),_.W("design:type",HTMLElement)],g9.prototype,"expandedButtons",void 0);
_.U([_.N("expandedButtonsData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],g9.prototype,"expandedButtonsChanged",null);g9=_.U([_.wr({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],g9);
_.S(g9,"yt-reaction-control-panel-view-model",function(){if(Xfd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_view_model.yt.reaction.control.panel.view.model.css.js--\x3e<div id="hover-area" on-mouseenter="onMouseEnter" on-mouseleave="onMouseLeave" on-focusin="onFocusIn" on-focusout="onFocusOut" class="style-scope yt-reaction-control-panel-view-model">\n  <div id="fab-container" class="style-scope yt-reaction-control-panel-view-model">\n    <div id="expanded-buttons" class="style-scope yt-reaction-control-panel-view-model"></div>\n    <div id="collapsed-button" on-focusin="onCollapsedButtonFocusIn" on-focusout="onCollapsedButtonFocusOut" class="style-scope yt-reaction-control-panel-view-model"></div>\n  </div>\n  <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-view-model">\n    <div class="newness-dot style-scope yt-reaction-control-panel-view-model"></div>\n  </template>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Wfd===void 0&&(Wfd=document.createElement("template"));var d=Wfd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Xfd=a}a=Xfd;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var h9=new _.Ek("yt-live-chat"),Zfd=Date.parse("2024-7-24"),$fd=function(){var a=_.P.apply(this,arguments)||this;a.emojiManager=_.SH;a.newnessDotEligible=!1;a.newnessDotImpressionCounted=!1;a.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return a};
_.z($fd,_.P);_.f=$fd.prototype;_.f.emojiCustomizationEnabledChanged=function(){var a;((a=this.data)==null?0:a.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((a=h9.getCreationTime("emoji-customization-count"))&&a<Zfd&&h9.set("emoji-customization-count","0"),a=Number(h9.get("emoji-customization-count"))||0,a<3&&(this.newnessDotEligible=!0,h9.set("emoji-customization-count",(a+1).toString())),this.newnessDotImpressionCounted=!0)};
_.f.hideNewnessDot=function(){this.newnessDotEligible=!1;h9.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.f.handleReactionsMute=function(a){var b=_.En(),c=_.ku(206221),d={checkboxData:{state:a?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};b&&_.Xo(b,c,d);this.reactionsMuted=a};
_.f.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.f.configureRendererStamper=function(){return{"data.emojiFountain":{id:"emoji-fountain",mapping:{emojiFountainViewModel:{component:"yt-emoji-fountain-view-model",properties:{emojiManager:"[[emojiManager]]",isActive:"[[liveReactionsEnabled]]"}}},reuseComponents:!0},"data.reactionControlPanel":{id:"reaction-control-panel",mapping:{reactionControlPanelViewModel:{component:"yt-reaction-control-panel-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.Um.Object.defineProperties($fd.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var a;return(!((a=this.liveReactionsData)==null||!a.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
var i9=$fd;i9.prototype.liveReactionsSettingChanged=i9.prototype.liveReactionsSettingChanged;i9.prototype.emojiCustomizationEnabledChanged=i9.prototype.emojiCustomizationEnabledChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],i9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],i9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.MG),_.W("design:type",Object)],i9.prototype,"ytLiveChatReduxBehavior",void 0);
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],i9.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],i9.prototype,"data",void 0);_.U([_.O(),_.W("design:type",_.PH)],i9.prototype,"emojiManager",void 0);_.U([_.O(),_.W("design:type",Object)],i9.prototype,"newnessDotEligible",void 0);_.U([_.O(),_.W("design:type",Object)],i9.prototype,"newnessDotImpressionCounted",void 0);
_.U([_.O({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:xcd}),_.W("design:type",Boolean)],i9.prototype,"liveReactionsSetting",void 0);_.U([_.O({selectorArgs:["data.liveReactionsDataEntityKey"],selector:wcd}),_.W("design:type",Object)],i9.prototype,"liveReactionsData",void 0);_.U([_.O({value:function(){var a=_.w("enable_lwe_web_mute"),b=h9.get("allow-reactions");return b===void 0?!1:!b&&a}}),
_.W("design:type",Boolean)],i9.prototype,"reactionsMuted",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],i9.prototype,"liveReactionsEnabled",null);_.U([_.N("data.emojiCustomizationEnabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i9.prototype,"emojiCustomizationEnabledChanged",null);
_.U([_.N("liveReactionsEnabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i9.prototype,"liveReactionsSettingChanged",null);i9=_.U([_.wr({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],i9);
_.S(i9,"yt-reaction-control-panel-overlay-view-model",function(){if(Tfd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-overlay-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_overlay_view_model.yt.reaction.control.panel.overlay.view.model.css.js--\x3e<div id="reaction-control-panel" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n<div id="emoji-fountain" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Sfd===void 0&&(Sfd=document.createElement("template"));var d=Sfd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Tfd=a}a=Tfd;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var agd={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(a){var b=this.$.pickers.selected;if(b){_.E(this.hostElement).removeAttribute(b+"-open");var c="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(c="#picker-buttons",b==="emoji"&&_.E(this.hostElement).querySelector("#emoji-picker-button")&&(c="#emoji-picker-button"));if(c=_.E(this.hostElement).querySelector(c).querySelector("#"+b))c.active=!1}c=a;b==a&&(c=null);b!=a&&
_.E(this.hostElement).setAttribute(a+"-open","");this.$.pickers.selected=c;_.lo(this.hostElement,"yt-live-chat-picker-changed",[c])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var bgd=function(){var a=_.P.apply(this,arguments)||this;a.numSentMessages=0;a.timeoutDurationMs=0;a.timeoutMs=0;a.lastTimeoutTimeMs=0;a.pendingMessageId="";a.hasFiredInitialFocusActions=!1;a.isBeforeFocusEnabled=!0;a.id="";a.characterCount=0;a.maxCharacterLimit=0;a.remainingCharacterCount=0;a.inputExpanded=!1;a.buttonOverrides={iconPosition:"icon-only"};a.inReplyPanel=!1;a.countdownRatio=0;a.isTooltipVisible=!1;a.tooltipTimeout=1E4;a.systemIcons=_.w("kevlar_system_icons");a.tallerEmojiPicker=_.w("live_chat_taller_emoji_picker");
a.blockSendMessageWithCountdown=!_.w("live_chat_enable_send_button_in_slow_mode");a.sendReplyMessageInFlight=!1;a.actionMap={"yt-open-popup-action":"onOpenPopupAction","yt-close-popup-action":"onClosePopupAction","yt-live-chat-disable-before-focus-action":"onDisableBeforeFocus","yt-live-chat-component-replaced":"onComponentReplaced"};a.onResize=function(){a.maybeToggleCharacterCount()};
return a};
_.z(bgd,_.P);_.f=bgd.prototype;
_.f.configureRendererStamper=function(){return{"data.sendButton":{id:"send-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.pickers":{id:"pickers",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{disableIncrementalLoading:"[[disableEmojiPickerIncrementalLoading]]"}},liveChatProductPickerRenderer:"yt-live-chat-product-picker-renderer",liveChatProductPickerPanelViewModel:"yt-live-chat-product-picker-panel-view-model",liveChatPollEditorPanelRenderer:"yt-live-chat-poll-editor-panel-renderer",
liveChatQnaStartPanelRenderer:"yt-live-chat-qna-start-panel-renderer"}},"data.emojiPickerButton":{id:"emoji-picker-button",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0}}}},"data.pickerButtons":{id:"picker-buttons",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",
properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0},properties:{overrides:"[[buttonOverrides]]"}},reactionControlPanelOverlayViewModel:{component:"yt-reaction-control-panel-overlay-view-model"}}},"data.interactionMessage":{id:"interaction-message",mapping:{messageRenderer:{component:"yt-live-chat-message-renderer",params:{subtextOnBottom:!0}}}},errorMessage:{id:"error-message",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer",
liveChatTextActionsErrorMessageRenderer:"yt-live-chat-text-actions-error-message-renderer"}}}};
_.f.attached=function(){window.addEventListener("resize",this.onResize)};
_.f.detached=function(){window.removeEventListener("resize",this.onResize)};
_.f.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.f.sendMessage=function(){var a=this,b,c,d,e;return _.l(function(g){if(a.sendDisabled)return g.return();a.isTooltipVisible&&_.lo(a.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(a.data.sendButton&&a.data.sendButton.buttonRenderer){a.input.completeEmojis();b=a.data.sendButton.buttonRenderer.serviceEndpoint;if(!b)return g.return();d=((c=_.y(b,_.ZBb))==null?void 0:c.clientIdPrefix)||"";e={client_message_id:d+String(a.numSentMessages++),rich_message:_.Mt(a.input.liveChatRichMessageInput)};
a.pendingMessageId=e.client_message_id;a.inReplyPanel&&(a.sendReplyMessageInFlight=!0);_.oo(a.hostElement,[b,e]);a.input.setLiveChatRichMessageInput(null)}_.ue(g)})};
_.f.handleSendButtonAction=function(a){a.detail.actionName==="yt-service-request"&&(a.stopPropagation(),this.sendMessage())};
_.f.onSendCompleted=function(a,b){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(a=this.get("timeoutDurationUsec",b.data))&&this.handleTimeout(Number(a)/1E3);this.errorMessage=this.get("errorMessage",b.data);this.pendingMessageId=""};
_.f.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.lo(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.f.handlePickerButtonToggle=function(a){a=a.detail.targetId;this.ytPickerBehavior.togglePicker_(a);if(a==="emoji")this.input.focus();else if(a==="qna-start-panel"){var b,c;(b=_.E(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(c=b.querySelector("#qna-creator-text-input-field"))==null||c.focus()}};
_.f.onComponentReplaced=function(a){var b,c;a.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((b=a.replacement.liveChatMessageInputRenderer)==null?0:(c=b.headerRenderer)==null?0:c.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.f.onEmojiSelect=function(a){this.input.focus();this.input.insertEmoji(a.detail)};
_.f.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.f.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.lo(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.lo(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.f.onOpenPopupAction=function(a,b){var c=this;b===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.lo(c.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.f.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.f.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.f.focusChanged=function(){this.maybeToggleCharacterCount()};
_.f.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var a=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",a>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.f.computeId=function(){return this.data&&this.data.targetId||""};
_.f.computeSendDisabled=function(a,b,c,d){a=!!(this.blockSendMessageWithCountdown&&c||!a||b&&a>b||d);(b=_.E(this.hostElement).querySelector("#send-button"))&&b.children.length&&(b.children[0].disabled=a);return a};
_.f.handleTimeout=function(a){this.timeoutDurationMs=this.timeoutMs=a;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.f.updateTimeout=function(a){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(a-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=a,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.f.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.f.onErrorMessageEdit=function(a){this.input.setLiveChatRichMessageInput(a.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.f.errorMessageChanged=function(){var a=this;_.Er(function(){_.lo(a.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.f.computeAuthorNameColor=function(a){var b;if(_.w("live_chat_author_name_color_usernames")&&(a==null?0:(b=a.authorName)==null?0:b.simpleText))return _.dPa(_.ePa(a.authorName.simpleText));if(_.w("live_chat_seed_color_usernames")&&(a==null?0:a.authorSeedColorArgb))return _.dPa(_.cs(a.authorSeedColorArgb));if(_.w("live_chat_colored_usernames"))return"#cc0000";var c;return _.w("live_chat_simple_color_usernames")&&(a==null?0:(c=a.authorName)==null?0:c.simpleText)&&(a==null?0:a.authorUsernameColorLight)&&
(a==null?0:a.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.cs(a.authorUsernameColorDark):_.cs(a.authorUsernameColorLight):""};
_.f.onIsTooltipVisibleChanged=function(){var a=_.E(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){a.hidden=!1;a.setAttribute("role","alert")},0):(a.hidden=!0,a.removeAttribute("role"))};
_.f.onFocusedChanged=function(a){this.inputFocused=a.detail.value};
_.Um.Object.defineProperties(bgd.prototype,{sendDisabled:{configurable:!0,enumerable:!0,get:function(){return this.computeSendDisabled(this.characterCount,this.maxCharacterLimit,this.countdownActive,this.sendReplyMessageInFlight)}},
countdownStrokeDashOffset:{configurable:!0,enumerable:!0,get:function(){return this.countdownRatio*10*2*Math.PI}},
countdownActive:{configurable:!0,enumerable:!0,get:function(){return!!this.countdownRatio}},
hasInteractionMessage:{configurable:!0,enumerable:!0,get:function(){return!!this.data.interactionMessage}},
hasEmojiPickerButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.emojiPickerButton}},
showAvatar:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:(b=a.pickers)==null?void 0:b.find(function(c){return c.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var a=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return a?this.ytRendererBehavior.getSimpleString(a):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
var j9=bgd;j9.prototype.onIsTooltipVisibleChanged=j9.prototype.onIsTooltipVisibleChanged;j9.prototype.errorMessageChanged=j9.prototype.errorMessageChanged;j9.prototype.onErrorMessageEdit=j9.prototype.onErrorMessageEdit;j9.prototype.onErrorMessageDismiss=j9.prototype.onErrorMessageDismiss;j9.prototype.focusChanged=j9.prototype.focusChanged;j9.prototype.characterCountChanged=j9.prototype.characterCountChanged;j9.prototype.onEmojiSelect=j9.prototype.onEmojiSelect;
j9.prototype.handlePickerButtonToggle=j9.prototype.handlePickerButtonToggle;j9.prototype.onSendError=j9.prototype.onSendError;j9.prototype.onSendCompleted=j9.prototype.onSendCompleted;j9.prototype.sendMessage=j9.prototype.sendMessage;j9.prototype.dataChanged=j9.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],j9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],j9.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(agd.YtPickerBehavior),_.W("design:type",Object)],j9.prototype,"ytPickerBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],j9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.NG.YtLiveChatTooltipTargetingBehavior),_.W("design:type",Object)],j9.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],j9.prototype,"hasFiredInitialFocusActions",void 0);
_.U([_.O(),_.W("design:type",Object)],j9.prototype,"isBeforeFocusEnabled",void 0);_.U([_.O(),_.W("design:type",Object)],j9.prototype,"data",void 0);_.U([_.O({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.W("design:type",Object)],j9.prototype,"id",void 0);_.U([_.O(),_.W("design:type",Object)],j9.prototype,"characterCount",void 0);_.U([_.O(),_.W("design:type",Object)],j9.prototype,"maxCharacterLimit",void 0);
_.U([_.O(),_.W("design:type",Object)],j9.prototype,"remainingCharacterCount",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],j9.prototype,"inputExpanded",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],j9.prototype,"inputFocused",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],j9.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.U([_.O(),_.W("design:type",_.XH)],j9.prototype,"participantsManager",void 0);
_.U([_.O(),_.W("design:type",Object)],j9.prototype,"buttonOverrides",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],j9.prototype,"inReplyPanel",void 0);_.U([_.K("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],j9.prototype,"sendDisabled",null);_.U([_.O(),_.W("design:type",Object)],j9.prototype,"countdownRatio",void 0);
_.U([_.K("countdownRatio"),_.W("design:type",Number),_.W("design:paramtypes",[])],j9.prototype,"countdownStrokeDashOffset",null);_.U([_.K("countdownRatio"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],j9.prototype,"countdownActive",null);_.U([_.K("data.interactionMessage"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],j9.prototype,"hasInteractionMessage",null);
_.U([_.K("data.emojiPickerButton"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],j9.prototype,"hasEmojiPickerButton",null);_.U([_.K("data, characterCount"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],j9.prototype,"showAvatar",null);_.U([_.K("data.pickers"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],j9.prototype,"hasProductPickerPanelViewModel",null);
_.U([_.O(),_.W("design:type",Object)],j9.prototype,"errorMessage",void 0);_.U([_.O(),_.W("design:type",Object)],j9.prototype,"genericErrorMessage",void 0);_.U([_.O(),_.W("design:type",Object)],j9.prototype,"isTooltipVisible",void 0);_.U([_.O(),_.W("design:type",Object)],j9.prototype,"tooltipTimeout",void 0);_.U([_.K("data.onInitialFocusCommand"),_.W("design:type",String),_.W("design:paramtypes",[])],j9.prototype,"tooltipMessage",null);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],j9.prototype,"systemIcons",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],j9.prototype,"tallerEmojiPicker",void 0);_.U([_.K("data"),_.W("design:type",String),_.W("design:paramtypes",[])],j9.prototype,"authorNameColor",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],j9.prototype,"blockSendMessageWithCountdown",void 0);_.U([_.O(),_.W("design:type",Object)],j9.prototype,"sendReplyMessageInFlight",void 0);
_.U([_.ir("#input"),_.W("design:type",_.DRb)],j9.prototype,"input",void 0);_.U([_.ir("#count"),_.W("design:type",HTMLElement)],j9.prototype,"count",void 0);_.U([_.ir("#input-container"),_.W("design:type",HTMLElement)],j9.prototype,"inputContainer",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j9.prototype,"dataChanged",null);
_.U([_.M("yt-live-chat-send-message"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],j9.prototype,"sendMessage",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[Event,_.Vt]),_.W("design:returntype")],j9.prototype,"onSendCompleted",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j9.prototype,"onSendError",null);
_.U([_.M("yt-live-chat-icon-toggle-button-renderer-toggle"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],j9.prototype,"handlePickerButtonToggle",null);_.U([_.M("yt-emoji-select"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],j9.prototype,"onEmojiSelect",null);
_.U([_.N("characterCount"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j9.prototype,"characterCountChanged",null);_.U([_.N("inputFocused"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j9.prototype,"focusChanged",null);_.U([_.M("yt-live-chat-error-message-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j9.prototype,"onErrorMessageDismiss",null);
_.U([_.M("yt-live-chat-error-message-edit"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],j9.prototype,"onErrorMessageEdit",null);_.U([_.N("errorMessage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j9.prototype,"errorMessageChanged",null);_.U([_.N("isTooltipVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j9.prototype,"onIsTooltipVisibleChanged",null);
j9=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],j9);
_.S(j9,"yt-live-chat-message-input-renderer",function(){if(hfd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_renderer.yt.live.chat.message.input.renderer.css.js--\x3e<yt-live-chat-message-input-prompt-header-renderer data="[[data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" hidden$="[[!data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-message-input-prompt-header-renderer><div id="container" class="style-scope yt-live-chat-message-input-renderer"><div id="top" class="style-scope yt-live-chat-message-input-renderer"><yt-img-shadow id="avatar" height="24" hidden$="[[!showAvatar]]" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope yt-live-chat-message-input-renderer"></yt-img-shadow><div id="input-container" class="style-scope yt-live-chat-message-input-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" hidden="" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-author-chip><yt-live-chat-text-input-field-renderer id="input" character-count="{{characterCount}}" data="[[data.inputField.liveChatTextInputFieldRenderer]]" disabled="[[hasInteractionMessage]]" input-expanded="[[inputExpanded]]" is-chat-message-input="" max-character-limit="{{maxCharacterLimit}}" no-underline="" participants-manager="[[participantsManager]]" remaining-character-count="{{remainingCharacterCount}}" on-focused-changed="onFocusedChanged" on-focusin="onInputFocusIn" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-text-input-field-renderer><div id="emoji-picker-button" class="style-scope yt-live-chat-message-input-renderer"></div></div><div id="right" class="style-scope yt-live-chat-message-input-renderer"><div id="count-container" class="style-scope yt-live-chat-message-input-renderer"><div id="count" class="style-scope yt-live-chat-message-input-renderer">[[remainingCharacterCount]]</div></div><div id="message-buttons" class="style-scope yt-live-chat-message-input-renderer"><div id="send-button" countdown-active$="[[countdownActive]]" hidden="[[!characterCount]]" on-yt-action="handleSendButtonAction" class="style-scope yt-live-chat-message-input-renderer"></div><svg id="countdown" countdown-active$="[[countdownActive]]" hidden$="[[!characterCount]]" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="style-scope yt-live-chat-message-input-renderer"><circle id="countdown-background" cx="12" cy="12" r="10" class="style-scope yt-live-chat-message-input-renderer"></circle><circle id="countdown-line" cx="12" cy="12" r="10" stroke-dashoffset$="[[countdownStrokeDashOffset]]" class="style-scope yt-live-chat-message-input-renderer"></circle></svg></div><div id="picker-buttons" hidden="[[characterCount]]" class="style-scope yt-live-chat-message-input-renderer"></div></div></div><div id="error-message" class="style-scope yt-live-chat-message-input-renderer"></div><tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-message-input-renderer"></tp-yt-iron-pages></div><div id="interaction-message" class="style-scope yt-live-chat-message-input-renderer"></div><div id="tooltip-accessibility-text" class="style-scope yt-live-chat-message-input-renderer">[[tooltipMessage]]</div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;gfd===void 0&&(gfd=document.createElement("template"));var d=gfd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);hfd=a}a=hfd;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var cgd;var dgd;var k9=function(){var a=_.P.apply(this,arguments)||this;a.systemIcons=_.w("kevlar_system_icons");a.firedOnClickCommand=!1;a.inReplyPanel=!1;return a};
_.z(k9,_.P);
k9.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"picker-buttons",mapping:{buttonRenderer:"yt-button-renderer",liveChatIconToggleButtonRenderer:"yt-live-chat-icon-toggle-button-renderer",reactionControlPanelOverlayViewModel:{component:"yt-reaction-control-panel-overlay-view-model"}}},"data.inlineAfterMessageButton":{id:"message-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.panels":{id:"pickers",mapping:{liveChatProductPickerRenderer:"yt-live-chat-product-picker-renderer",liveChatProductPickerPanelViewModel:"yt-live-chat-product-picker-panel-view-model"}}}};
k9.prototype.onButtonToggle=function(a){a.target.disabled||this.ytPickerBehavior.togglePicker_(a.detail.targetId)};
k9.prototype.onClick=function(){var a=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.lo(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return a.firedOnClickCommand=!1},5E3))};
_.Um.Object.defineProperties(k9.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:(b=a.panels)==null?void 0:b.find(function(c){return c.liveChatProductPickerPanelViewModel}))!==void 0}}});
var l9=k9;l9.prototype.onButtonToggle=l9.prototype.onButtonToggle;_.U([_.H(agd.YtPickerBehavior),_.W("design:type",Object)],l9.prototype,"ytPickerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],l9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],l9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],l9.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],l9.prototype,"systemIcons",void 0);_.U([_.O({reflectToAttribute:!1}),_.W("design:type",Object)],l9.prototype,"firedOnClickCommand",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],l9.prototype,"inReplyPanel",void 0);_.U([_.K("data.pickers"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],l9.prototype,"hasProductPickerPanelViewModel",null);
_.U([_.M("yt-live-chat-icon-toggle-button-renderer-toggle"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],l9.prototype,"onButtonToggle",null);l9=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],l9);
_.S(l9,"yt-live-chat-restricted-participation-renderer",function(){if(dgd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-restricted-participation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_restricted_participation_renderer.yt.live.chat.restricted.participation.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-restricted-participation-renderer">\n  <tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-restricted-participation-renderer"></tp-yt-iron-pages>\n  <div id="explanation" class="style-scope yt-live-chat-restricted-participation-renderer">\n    <yt-icon id="icon" hidden$="[[!data.icon]]" icon="[[data.icon.iconType]]" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n    </yt-icon>\n    <div id="body" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n      <div id="message" class="style-scope yt-live-chat-restricted-participation-renderer">[[getSimpleString(data.message)]]</div><div id="message-button" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n    </div>\n    <div id="picker-buttons" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;cgd===void 0&&(cgd=document.createElement("template"));var d=cgd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);dgd=a}a=dgd;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var egd=function(){var a=_.P.apply(this,arguments)||this;a.genericErrorMessage=_.Vp("Error, try again.");a.inReplyPanel=!1;a.hideBorder=!1;return a};
_.z(egd,_.P);egd.prototype.configureRendererStamper=function(){return{"data.actionPanel":{id:"content",mapping:{liveChatRestrictedParticipationRenderer:{component:"yt-live-chat-restricted-participation-renderer",properties:{inReplyPanel:"[[inReplyPanel]]"}},liveChatMessageInputRenderer:{component:"yt-live-chat-message-input-renderer",properties:{genericErrorMessage:"[[genericErrorMessage]]",inReplyPanel:"[[inReplyPanel]]"}},messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}}}};
_.Um.Object.defineProperties(egd,{template:{configurable:!0,enumerable:!0,get:function(){return Zed()}}});
var m9=egd;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],m9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],m9.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],m9.prototype,"genericErrorMessage",void 0);_.U([_.O(),_.W("design:type",Object)],m9.prototype,"inReplyPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],m9.prototype,"hideBorder",void 0);
m9=_.U([_.wr({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],m9);_.S(m9,"yt-live-chat-engagement-panel-input-renderer",function(){return Zed()},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var fgd,ggd;fgd=_.ku(115994);ggd=_.ku(115993);_.hgd=function(a,b,c){var d=this;var e=c.dragDownAction;this.layer=0;this.JSC$19668_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return d.dragDownAction()}}}};
this.JSC$19668_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return d.dragDownAction()}}}};
this.fullscreen=!1;var g=_.ls();_.rF(g,fgd,this.layer);_.rF(g,ggd,this.layer);this.dragDownAction=function(){e();_.Ot(g,{visualElement:d.fullscreen?fgd:ggd})};
this.gesture=new _.w6(a,b,this.JSC$19668_watchConfig,"pandown");this.attach()};
_.hgd.prototype.attach=function(){this.gesture.attach()};
_.hgd.prototype.detach=function(){this.gesture.detach()};
_.hgd.prototype.update=function(a){this.fullscreen=a;this.gesture.config=a?this.JSC$19668_watchFullScreenConfig:this.JSC$19668_watchConfig};var igd={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(a){if(a&&a.length==1&&Array.isArray(a[0].loggingUrls)){a=_.Cf.unsafeClone(a[0]);var b=this.macros||{},c=this.getAdModuleClient_();if(!c)return _.qo();a.loggingUrls.forEach(function(d){if(d.baseUrl){var e=d.baseUrl;var g=b;g=g===void 0?{}:g;e=c.getOptions().includes("replaceUrlMacros")?_.Y2b(c,"replaceUrlMacros",{url:e,additionalMapping:g}):e;d.baseUrl=e}},this);
a=[a]}return _.oo(this.hostElement,a)},
getAdModuleClient_:function(){var a=_.au(this);return a?(a=a.getPlayer())?new _.EM(a):null:null}}]};var jgd;var kgd=function(){var a=_.P.apply(this,arguments)||this;a.isCollapsed=!1;a.modernPanels=_.w("kevlar_watch_modern_panels");a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return a};
_.z(kgd,_.P);_.f=kgd.prototype;_.f.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.f.onDonateTap=function(){var a=this.get("data.donateButton.buttonRenderer.command");if(a){var b=_.En(),c=this.get("data.donateButton.buttonRenderer.trackingParams");b&&c&&_.Xo(b,_.ps(c));this.ytOpenPopupBehavior.openPopup(a)}};
_.f.onShowMore=function(){this.isCollapsed=!1;var a=_.En(),b=this.get("data.expandButton.buttonRenderer.trackingParams");a&&b&&_.Xo(a,_.ps(b))};
_.f.onShowLess=function(){this.isCollapsed=!0};
_.f.dataChanged=function(){_.fr(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.f.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.f.handleUpdate=function(a){if(a=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",a))this.set("data.startLabel",a.startLabel),this.set("data.endLabel",a.endLabel),this.set("data.progress",a.progress),this.set("data.amountRaisedLabel",a.amountRaisedLabel),this.dataChanged()};
_.f.handleOpenPopupAction=function(a){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",a)&&_.lo(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.f.computeHeaderBackgroundUrl=function(a,b){if(a)return b?a.headerBackgroundDarkUrl:a.headerBackgroundUrl};
_.f.isProgressBarVisible=function(a){return!(!a||a.progress===void 0)};
_.f.headerBackgroundClass=function(){return _.Fi("HTML_DIR")==="rtl"?"flip":""};
var n9=kgd;n9.prototype.dataChanged=n9.prototype.dataChanged;_.U([_.H(_.pH.YtOpenPopupBehavior),_.W("design:type",Object)],n9.prototype,"ytOpenPopupBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],n9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],n9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],n9.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],n9.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],n9.prototype,"isCollapsed",void 0);_.U([_.O({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.W("design:type",String)],n9.prototype,"headerBackgroundUrl",void 0);_.U([_.O(),_.W("design:type",Boolean)],n9.prototype,"isDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],n9.prototype,"modernPanels",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],n9.prototype,"dataChanged",null);n9=_.U([_.Q({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],n9);
_.S(n9,"ytd-donation-shelf-renderer",function(){if(jgd!==void 0)return jgd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="header-text" class="style-scope ytd-donation-shelf-renderer">\n    [[getSimpleString(data.headerTitle)]]\n  </div>\n  <template is="dom-if" if="[[headerBackgroundUrl]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="header-background" class$="[[headerBackgroundClass()]] style-scope ytd-donation-shelf-renderer">\n      <yt-img-shadow delayed-src="[[headerBackgroundUrl]]" height="48" class="style-scope ytd-donation-shelf-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n</div>\n\n<div id="donate-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="title-row" class="style-scope ytd-donation-shelf-renderer">\n    <yt-img-shadow id="campaign-logo" object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-shelf-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-donation-shelf-renderer">\n      <div id="campaign-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignTitle)]]\n      </div>\n      <div id="campaign-subtitle" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignSubtitle)]]\n      </div>\n    </div>\n    <div id="donate-button" on-click="onDonateTap" class="style-scope ytd-donation-shelf-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[isProgressBarVisible(data)]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="progress-bar" class="style-scope ytd-donation-shelf-renderer">\n      <div id="progress-bar-fill" class="style-scope ytd-donation-shelf-renderer"></div>\n    </div>\n    <div id="progress-bar-labels" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string id="progress-bar-start" text="[[data.startLabel]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="progress-bar-end" text="[[data.endLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="amount-raised" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="matching-label" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string split-lines="" text="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n\n<template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="creator-messages-section" class="style-scope ytd-donation-shelf-renderer">\n      <template is="dom-repeat" items="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n        <div class="creator-message style-scope ytd-donation-shelf-renderer">\n          <div class="separator style-scope ytd-donation-shelf-renderer"></div>\n          <div class="creator-message-header style-scope ytd-donation-shelf-renderer">\n            <yt-img-shadow class="avatar style-scope ytd-donation-shelf-renderer" height="26" thumbnail="[[item.thumbnail]]">\n            </yt-img-shadow>\n            <yt-formatted-string class="creator-message-name style-scope ytd-donation-shelf-renderer" text="[[item.title]]">\n            </yt-formatted-string>\n          </div>\n          <div class="creator-message-description style-scope ytd-donation-shelf-renderer">\n            [[getSimpleString(item.description)]]\n          </div>\n        </div>\n      </template>\n    </div>\n  </template>\n\n  <div id="nonprofit-section" class="style-scope ytd-donation-shelf-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-shelf-renderer">\n      <div id="nonprofit-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.nonprofitTitle)]]<span id="verified-icon-wrapper" class="style-scope ytd-donation-shelf-renderer">\u00a0<yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-shelf-renderer" default-to-filled="true" icon="check_circle"></yt-icon>\n        </span>\n      </div>\n    </div>\n    <div id="nonprofit-subtitle" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="nonprofit-description" class="style-scope ytd-donation-shelf-renderer">\n      [[getSimpleString(data.nonprofitDescription)]]\n    </div>\n  </div>\n</template>\n\n<div id="collapse-controls-section" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-more" on-click="onShowMore" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showMoreText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-less" on-click="onShowLess" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showLessText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return jgd=a},{mode:1});var lgd;var mgd=function(){return _.P.apply(this,arguments)||this};
_.z(mgd,_.P);var ngd=mgd;_.U([_.O(),_.W("design:type",Object)],ngd.prototype,"data",void 0);ngd=_.U([_.Q({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],ngd);
_.S(ngd,"ytd-donation-unavailable-renderer",function(){if(lgd!==void 0)return lgd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-unavailable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-donation-unavailable-renderer">\n  <yt-formatted-string id="message" text="[[data.text]]" class="style-scope ytd-donation-unavailable-renderer">\n  </yt-formatted-string>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return lgd=a},{mode:1});var ogd;var pgd=function(){return _.P.apply(this,arguments)||this};
_.z(pgd,_.P);pgd.prototype.computeIconType=function(a){return a?"yt-icons:"+a.toLowerCase():null};
var qgd=pgd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],qgd.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],qgd.prototype,"data",void 0);qgd=_.U([_.Q({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],qgd);
_.S(qgd,"ytd-limited-state-message-renderer",function(){if(ogd!==void 0)return ogd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-limited-state-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-limited-state-message-renderer">\n  <yt-icon icon="[[computeIconType(data.icon.iconType)]]" class="style-scope ytd-limited-state-message-renderer"></yt-icon>\n  <yt-formatted-string id="title" text="[[data.headerText]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-limited-state-message-renderer">\n  <ytd-button-renderer data="[[data.learnMoreButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer"></ytd-button-renderer>\n  <ytd-button-renderer data="[[data.goHomeButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer">\n  </ytd-button-renderer>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return ogd=a},{mode:1});var rgd;var sgd=function(){return _.P.apply(this,arguments)||this};
_.z(sgd,_.P);sgd.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
sgd.prototype.onTap=function(a){var b=this.data&&this.data.endpoint;b&&!_.Wt(_.Rq(a),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.io(this.hostElement,"yt-navigate",{endpoint:b})};
var o9=sgd;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],o9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],o9.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],o9.prototype,"data",void 0);o9=_.U([_.Q({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],o9);
_.S(o9,"ytd-autotagging-metadata-renderer",function(){if(rgd!==void 0)return rgd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="outer-container" on-tap="onTap" class="style-scope ytd-autotagging-metadata-renderer">\n  <ytd-thumbnail circular="" data="[[data]]" class="style-scope ytd-autotagging-metadata-renderer">\n  </ytd-thumbnail>\n  <div id="right-container" class="style-scope ytd-autotagging-metadata-renderer">\n    <div id="title-container" class="style-scope ytd-autotagging-metadata-renderer">\n      <div id="title" class="style-scope ytd-autotagging-metadata-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-autotagging-metadata-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="subscribe-button" class="style-scope ytd-autotagging-metadata-renderer"></div>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return rgd=a},{mode:1});var tgd;var ugd=function(){return _.P.apply(this,arguments)||this};
_.z(ugd,_.P);ugd.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
var p9=ugd;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],p9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],p9.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],p9.prototype,"data",void 0);p9=_.U([_.Q({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],p9);
_.S(p9,"ytd-autotagging-metadata-row-renderer",function(){if(tgd!==void 0)return tgd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-autotagging-metadata-row-renderer">\n  [[getSimpleString(data.header)]]\n</div>\n<div id="contents" class="style-scope ytd-autotagging-metadata-row-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return tgd=a},{mode:1});var vgd;var wgd;var xgd=function(){var a=_.P.apply(this,arguments)||this;a.engagementPanelContent=!1;return a};
_.z(xgd,_.P);xgd.prototype.computeHasDividerLine=function(a,b){return a&&!b};
var q9=xgd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],q9.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],q9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.W("design:type",Boolean)],q9.prototype,"hasDividerLine",void 0);_.U([_.O(),_.W("design:type",Object)],q9.prototype,"engagementPanelContent",void 0);
q9=_.U([_.Q({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],q9);
_.S(q9,"ytd-metadata-row-header-renderer",function(){if(wgd!==void 0)return wgd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="content" class="style-scope ytd-metadata-row-header-renderer">\n  <yt-formatted-string class="content style-scope ytd-metadata-row-header-renderer" text="[[data.content]]"></yt-formatted-string>\n</h4>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return wgd=a},{mode:1});var ygd;var zgd=function(){return _.P.apply(this,arguments)||this};
_.z(zgd,_.P);zgd.prototype.computeHasDividerLine=function(a){return a};
var r9=zgd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],r9.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],r9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.W("design:type",Boolean)],r9.prototype,"hasDividerLine",void 0);r9=_.U([_.Q({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],r9);
_.S(r9,"ytd-metadata-row-renderer",function(){if(ygd!==void 0)return ygd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="title" hidden$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-metadata-row-renderer"></yt-formatted-string>\n</h4>\n<div id="content" with-extra-margin$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <template is="dom-repeat" items="[[data.contents]]" class="style-scope ytd-metadata-row-renderer">\n    <yt-formatted-string class="content content-line-height-override style-scope ytd-metadata-row-renderer" text="[[item]]">\n    </yt-formatted-string>\n  </template>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return ygd=a},{mode:1});var Agd;var Bgd=function(){return _.P.apply(this,arguments)||this};
_.z(Bgd,_.P);var Cgd=Bgd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Cgd.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Cgd.prototype,"data",void 0);Cgd=_.U([_.Q({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],Cgd);
_.S(Cgd,"ytd-metadata-with-image-row-renderer",function(){if(Agd!==void 0)return Agd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-with-image-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-metadata-with-image-row-renderer" href$="[[computeHref_(data.thumbnailEndpoint)]]" data="[[data.thumbnailEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="83" class="style-scope ytd-metadata-with-image-row-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope ytd-metadata-with-image-row-renderer">\n    <template is="dom-repeat" as="content" items="[[data.contents]]" strip-whitespace="" class="style-scope ytd-metadata-with-image-row-renderer">\n      <span class="content-text style-scope ytd-metadata-with-image-row-renderer">[[getSimpleString(content)]]</span>\n    </template>\n  </div>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Agd=a},{mode:1});var Dgd;var Egd=function(){var a=_.P.apply(this,arguments)||this;a.rounded=!0;a.fixie=!1;a.fullWidth=!1;return a};
_.z(Egd,_.P);_.f=Egd.prototype;_.f.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.onDataChanged=function(){var a=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(b){a.onEndpointLinkKeyPress(b)}))};
_.f.onEndpointLinkKeyPress=function(a){a.target===this.endpointLink&&a.keyCode===13&&_.io(this.hostElement,"click")};
_.f.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var a;if((a=this.data)==null?0:a.endpoint)_.po(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.f.onYtNavigate=function(a){this.endpointHref||(a.stopPropagation(),a.preventDefault())};
_.f.onInformationButtonContainerClick=function(a){a.target.id!=="information-button-container"&&(a.stopPropagation(),a.preventDefault())};
_.f.computeStyle=function(a){return a};
_.f.computeIsThumbnailStyle=function(a){return a==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.f.computeThumbnailWidth=function(a){switch(a){case "RICH_METADATA_RENDERER_STYLE_THUMBNAIL":return 178;case "RICH_METADATA_RENDERER_STYLE_BOX_ART":return 72;case "RICH_METADATA_RENDERER_STYLE_TOPIC":return 96;case "RICH_METADATA_RENDERER_STYLE_SQUARE":return 100;default:return 68}};
_.f.computeThumbnailObjectFit=function(a){switch(a){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.Um.Object.defineProperties(Egd.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
var s9=Egd;s9.prototype.onYtNavigate=s9.prototype.onYtNavigate;s9.prototype.onClick=s9.prototype.onClick;s9.prototype.onDataChanged=s9.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],s9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],s9.prototype,"componentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],s9.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],s9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],s9.prototype,"componentStyle",void 0);_.U([_.O({computed:"computeIsThumbnailStyle(data.style)"}),_.W("design:type",Boolean)],s9.prototype,"isThumbnailStyle",void 0);_.U([_.O({computed:"computeThumbnailObjectFit(data.style)"}),_.W("design:type",String)],s9.prototype,"thumbnailObjectFit",void 0);
_.U([_.O({computed:"computeThumbnailWidth(data.style)"}),_.W("design:type",Number)],s9.prototype,"thumbnailWidth",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],s9.prototype,"rounded",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],s9.prototype,"fixie",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],s9.prototype,"fullWidth",void 0);_.U([_.ir("#endpoint-link"),_.W("design:type",HTMLAnchorElement)],s9.prototype,"endpointLink",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],s9.prototype,"onDataChanged",null);_.U([_.K("data.endpoint"),_.W("design:type",Object),_.W("design:paramtypes",[])],s9.prototype,"endpointHref",null);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],s9.prototype,"onClick",null);
_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],s9.prototype,"onYtNavigate",null);s9=_.U([_.Q({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],s9);
_.S(s9,"ytd-rich-metadata-renderer",function(){if(Dgd!==void 0)return Dgd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-rich-metadata-renderer" href$="[[endpointHref]]" data="[[data.endpoint]]">\n  <template is="dom-if" restamp="" if="[[isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-thumbnail>\n  </template>\n  <template is="dom-if" restamp="" if="[[!isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <div id="thumbnail" class="style-scope ytd-rich-metadata-renderer">\n      <yt-img-shadow object-fit="[[thumbnailObjectFit]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n  <div id="text-container" class="style-scope ytd-rich-metadata-renderer">\n    <div id="title" class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" hidden$="[[!data.subtitle]]" class="style-scope ytd-rich-metadata-renderer">\n      [[getSimpleString(data.subtitle)]]\n    </div>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="call-to-action" class="style-scope ytd-rich-metadata-renderer">\n      <div class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.callToAction)]]</div>\n      <yt-icon hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-icon>\n    </div>\n  </div>\n  <div id="information-button-container" on-click="onInformationButtonContainerClick" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-metadata-renderer"></div>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Dgd=a},{mode:_.as("kevlar_poly_si_batch_j075")?1:2});var Fgd;var Ggd=function(){var a=_.P.apply(this,arguments)||this;a.fixie=!1;a.fullWidth=!1;return a};
_.z(Ggd,_.P);Ggd.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Ggd.prototype.computeHasDividerLine=function(a){return a};
var t9=Ggd;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],t9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],t9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.W("design:type",Boolean)],t9.prototype,"hasDividerLine",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],t9.prototype,"fixie",void 0);
_.U([_.O(),_.W("design:type",Object)],t9.prototype,"fullWidth",void 0);t9=_.U([_.Q({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],t9);
_.S(t9,"ytd-rich-metadata-row-renderer",function(){if(Fgd!==void 0)return Fgd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-rich-metadata-row-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Fgd=a},{mode:1});var Hgd=function(){var a=_.P.apply(this,arguments)||this;a.engagementPanelContent=!1;a.fixie=!1;a.fullWidth=!1;return a};
_.z(Hgd,_.P);
Hgd.prototype.configureRendererStamper=function(){return{alwaysShownItems:{id:"always-shown",mapping:{metadataRowRenderer:"ytd-metadata-row-renderer",metadataWithImageRowRenderer:"ytd-metadata-with-image-row-renderer",metadataRowHeaderRenderer:"ytd-metadata-row-header-renderer",richMetadataRowRenderer:{component:"ytd-rich-metadata-row-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}},autotaggingMetadataRowRenderer:"ytd-autotagging-metadata-row-renderer"}},collapsibleItems:{id:"collapsible",mapping:{metadataRowRenderer:"ytd-metadata-row-renderer",
metadataWithImageRowRenderer:"ytd-metadata-with-image-row-renderer",metadataRowHeaderRenderer:{component:"ytd-metadata-row-header-renderer",properties:{engagementPanelContent:"[[engagementPanelContent]]"}},richMetadataRowRenderer:"ytd-rich-metadata-row-renderer",autotaggingMetadataRowRenderer:"ytd-autotagging-metadata-row-renderer"}}}};
Hgd.prototype.computeCollapsibleItems=function(a,b,c){return a===void 0||b===void 0||c===void 0||c?[]:a.slice(b)};
Hgd.prototype.computeAlwaysShownItems=function(a,b){return a&&a.length?a.slice(0,b):[]};
var u9=Hgd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],u9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],u9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],u9.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],u9.prototype,"collapsed",void 0);
_.U([_.O({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.W("design:type",Array)],u9.prototype,"alwaysShownItems",void 0);_.U([_.O({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.W("design:type",Array)],u9.prototype,"collapsibleItems",void 0);_.U([_.O(),_.W("design:type",Object)],u9.prototype,"engagementPanelContent",void 0);_.U([_.O(),_.W("design:type",Object)],u9.prototype,"fixie",void 0);
_.U([_.O(),_.W("design:type",Object)],u9.prototype,"fullWidth",void 0);u9=_.U([_.Q({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],u9);
_.S(u9,"ytd-metadata-row-container-renderer",function(){if(vgd!==void 0)return vgd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="always-shown" class="style-scope ytd-metadata-row-container-renderer"></div>\n<div id="collapsible" hidden="[[collapsed]]" class="style-scope ytd-metadata-row-container-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return vgd=a},{mode:1});var Igd;var Jgd=function(){var a=_.P.apply(this,arguments)||this;a.currentPageUrl="";a.baseUrl="";a.isHiddenByUser=null;a.hidden=!1;a.showAboveScrim=!1;a.watchNextGrid=_.w("kevlar_watch_grid");a.modernButtons=_.w("web_modern_buttons");a.roundedContainer=!0;a.noBorder=!1;a.roundBackground=!_.w("live_chat_round_background_killswitch");a.overflowHideChat=_.w("live_chat_overflow_hide_chat");a.forceDarkTheme=!1;a.theaterWatchWhile=!1;a.isListeningForPlayerProgress=!1;a.JSC$19704_playerEvents=new Map;a.isFrameReady=
!1;a.player=null;a.actionMap={"yt-set-live-chat-collapsed-state-action":"setCollapsedState","yt-forward-redux-action-to-live-chat-iframe":"forwardReduxActionToIframe","yt-dark-theme-action":"onDarkThemeAction","yt-light-theme-action":"onLightThemeAction","yt-signal-action-close-pdg-buy-flow":"onClosePdgBuyFlow"};return a};
_.z(Jgd,_.P);_.f=Jgd.prototype;_.f.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.mo(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.f.created=function(){var a=this;this.handleIframeEventListener=function(b){a.handleIframeEvent(b)};
this.handleKeyboardEventListener=function(b){a.handleKeyboardEvent(b)};
this.JSC$19704_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19704_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19704_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19704_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19704_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.f.attached=function(){window.addEventListener("message",this.handleIframeEventListener);window.addEventListener("keydown",this.handleKeyboardEventListener);window.addEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl=window.location.href;this.setupPlayerProgressRelay();this.collapsedChanged()};
_.f.detached=function(){window.removeEventListener("message",this.handleIframeEventListener);window.removeEventListener("keydown",this.handleKeyboardEventListener);window.removeEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl="";this.isListeningForPlayerProgress=!1;this.setPlayer(null);this.isFrameReady=!1};
_.f.computeBaseUrl=function(a){var b="/live_chat";this.isChatReplay()&&(b="/live_chat_replay");return _.pA(_.oA(_.nA(_.Mg(a),b),null),"").toString()};
_.f.dataChanged=function(){_.w("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.f.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var a=this.url;if(this.isChatReplay()&&this.player){var b=Math.floor(this.player.getProgressState().current*1E3);a=_.Og(_.Mg(a),"playerOffsetMs",b.toString()).toString()}b=this.chatframe;try{var c=a==="about:blank"?_.dbb:_.Id(a),d=b.contentDocument.location,e=_.Md(c);e!==void 0&&d.replace(e)}catch(g){b.src=a}}};
_.f.collapsedChanged=function(){_.io(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.f.handleIframeEvent=function(a){if(a&&this.baseUrl.startsWith(a.origin)&&a.source===this.chatframe.contentWindow&&_.Za(a.data))if(a.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(a);else if(a.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(a.data["yt-show-feedback-dialog"]){var b=_.v().resolve(_.Xi(_.xec));if(b){var c=a.ports,d;c&&c.length&&(d=function(){c[0].postMessage({})});
a=a.data["yt-show-feedback-dialog"];b.showFeedbackDialog(a.customProductData,a.feedbackContent,d,a.bucket)}}else if(a.data["yt-show-survey"])_.io(this.hostElement,"yt-show-survey",a.data["yt-show-survey"]);else if(a.data["yt-purchase-membership"])_.w("web_ytd_live_chat_frame_command_resolver_ks")?_.oo(this.hostElement,[a.data["yt-purchase-membership"]]):_.v().resolve(_.Yi).resolveCommand(a.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(a.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(a.data["yt-tunnel-out-live-service-request"]);
else if(a.data["yt-user-activity"])_.Xk();else if(a.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(a.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(a.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(a.data["yt-open-popup"]);else if(a.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(a.data["yt-log-flow-logging-event-command"]);else if(a.data["yt-hide-live-chat"])this.onShowHideChat();
else a.data["yt-report-moderation-state-log"]&&this.player&&(b={cpn:this.player.getVideoData().cpn},_.xl("liveChatBeingModerated",b))};
_.f.attachLiveChatResponseVeTrackingParams=function(a){a=_.ps(a);var b=_.En(),c=_.Ji("liveChatRenderer.trackingParams",this.data);b&&c&&_.To(b,_.ps(c),a)};
_.f.handleBuyflowMessages=function(a){var b=a.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,c=a.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,d=a.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.c5a(_.tw(_.Qq),b.replace(/-/g,"+").replace(/_/g,"/"),function(e){a.ports[0].postMessage({success:!0,buyFlowResponse:e})},void 0,function(e){a.ports[0].postMessage({success:!1,
error:e&&e.message||"Buyflow rejected without error."})},_.yo().get("hl"),void 0,function(){a.ports[0].postMessage({closed:!0})},c,d)};
_.f.setupPlayerProgressRelay=function(){var a=this;if(!this.isListeningForPlayerProgress){var b=_.bu();b!=null&&b.getPlayerPromise&&(b.getPlayerPromise().then(function(c){a.playerApiReady(c)}),this.isListeningForPlayerProgress=!0)}};
_.f.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.f.playerApiReady=function(a){this.setPlayer(a)};
_.f.playerProgressHandler=function(){if(this.player){var a=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":a.current})}};
_.f.playerAdStartHandler=function(a){this.postToContentWindow({"yt-player-ad-start":a})};
_.f.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.f.playerStateChangeHandler=function(a){this.postToContentWindow({"yt-player-state-change":a})};
_.f.setPlayer=function(a){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19704_playerEvents);a&&(this.player=a,this.ytPlayerListenerBehavior.listenToPlayerEvents(a,this.JSC$19704_playerEvents),_.io(this.hostElement,"player-api-ready"))};
_.f.liveChatPageUrl=function(a,b,c,d){return!c||b?"about:blank":c.liveChatRenderer?(b=_.Mg(this.currentPageUrl).JSC$7876_queryData_,wdd(b),a=_.Mg(a),b.add("continuation",c.liveChatRenderer.continuations[0].reloadContinuationData.continuation),c=_.Jq()==="USER_INTERFACE_THEME_DARK",(d||c)&&b.add("dark_theme","true"),_.oA(a,b),d=_.Mg(a.toString()),c=d.JSC$7876_queryData_,"SESSION_INDEX"in _.Di&&(c.add("authuser",_.Fi("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.Di&&c.add("pageId",_.Fi("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.Di&&c.add("sdc",_.Fi("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),d.toString()):""};
_.f.isCollapsed=function(a,b){return b!==null?b:this.isChatReplay()||a&&a.conversationBarRenderer&&a.conversationBarRenderer.availabilityMessage?!0:a&&a.liveChatRenderer?a.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!1};
_.f.isHidden=function(a,b,c){var d=b&&b.conversationBarRenderer&&b.conversationBarRenderer.availabilityMessage,e=b&&b.liveChatRenderer&&b.liveChatRenderer.showHideButton,g=b&&b.liveChatRenderer&&b.liveChatRenderer.showButton;return c&&a&&!d&&!g||!c&&a&&!d&&!e?!0:b&&b.liveChatRenderer&&b.liveChatRenderer.initialDisplayState?b.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.f.computeButtonOverride=function(a,b){if(a&&b)return{type:"outline"}};
_.f.setCollapsedState=function(a){_.y(a,_.LBb)&&(this.isHiddenByUser=!!_.y(a,_.LBb).collapsed,!this.isHiddenByUser&&_.w("enable_teaser_framework_web_client")&&_.lo(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.f.forwardReduxActionToIframe=function(a){this.postToContentWindow({"yt-live-chat-forward-redux-action":a})};
_.f.onLoopRangeChange=function(a){this.showAboveScrim=!(a==null||!a.postId)};
_.f.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.f.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.f.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.f.sendDarkThemePostMessage=function(a){this.postToContentWindow({"yt-live-chat-set-dark-theme":a})};
_.f.onLiveChatBuyFlowCallback=function(a){this.postToContentWindow({"yt-live-chat-buy-flow-callback":a})};
_.f.handleKeyboardEvent=function(a){(0,_.Cf.containsValue)(Aed,a.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:a.type,keyCode:a.keyCode}})};
_.f.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.f.postToContentWindow=function(a){if(this.isFrameReady)try{var b=window.location.protocol+"//"+window.location.host,c;(c=this.chatframe)!=null&&c.contentWindow?this.chatframe.contentWindow.postMessage(a,b):_.Dl(new _.qj("Tried posting a message to an iframe with no content window",a))}catch(d){_.Bl(d)}};
_.f.shouldHideChatFrame=function(a){return a&&_.w("hide_live_chat_button_when_collapsed")};
_.Um.Object.defineProperties(Jgd.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.w("live_chat_overflow_hide_chat")||_.w("web_watch_chat_hide_button_killswitch"))return _.w("live_chat_overflow_hide_chat");var a,b,c,d;return!!((a=this.data)==null?0:(b=a.liveChatRenderer)==null?0:(c=b.header)==null?0:(d=c.liveChatHeaderRenderer)==null?0:d.collapseButton)}}});
var v9=Jgd;v9.prototype.collapsedChanged=v9.prototype.collapsedChanged;v9.prototype.urlChanged=v9.prototype.urlChanged;v9.prototype.dataChanged=v9.prototype.dataChanged;v9.prototype.onShowHideChat=v9.prototype.onShowHideChat;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],v9.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],v9.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],v9.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.bJ.YtPlayerListenerBehavior),_.W("design:type",_.cJ)],v9.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.H(_.pH.YtOpenPopupBehavior),_.W("design:type",Object)],v9.prototype,"ytOpenPopupBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],v9.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],v9.prototype,"currentPageUrl",void 0);
_.U([_.O({computed:"computeBaseUrl(currentPageUrl,data)"}),_.W("design:type",Object)],v9.prototype,"baseUrl",void 0);_.U([_.O({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.W("design:type",String)],v9.prototype,"url",void 0);_.U([_.O(),_.W("design:type",Object)],v9.prototype,"isHiddenByUser",void 0);_.U([_.O({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.W("design:type",Object)],v9.prototype,"hidden",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.W("design:type",Boolean)],v9.prototype,"collapsed",void 0);_.U([_.O({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.W("design:type",Boolean)],v9.prototype,"hideChatFrame",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v9.prototype,"showAboveScrim",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v9.prototype,"watchNextGrid",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],v9.prototype,"modernButtons",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v9.prototype,"roundedContainer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v9.prototype,"noBorder",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],v9.prototype,"roundBackground",void 0);
_.U([_.O({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.W("design:type",Object)],v9.prototype,"toggleButtonOverride",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],v9.prototype,"overflowHideChat",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v9.prototype,"forceDarkTheme",void 0);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],v9.prototype,"enableShowWithoutHideChatButton",null);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v9.prototype,"theaterWatchWhile",void 0);_.U([_.ir("#chatframe"),_.W("design:type",HTMLIFrameElement)],v9.prototype,"chatframe",void 0);_.U([_.M("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v9.prototype,"onShowHideChat",null);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v9.prototype,"dataChanged",null);
_.U([_.N("url"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v9.prototype,"urlChanged",null);_.U([_.N("collapsed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v9.prototype,"collapsedChanged",null);v9=_.U([_.Q({is:"ytd-live-chat-frame",disableElementRegistration:!0})],v9);
_.S(v9,"ytd-live-chat-frame",function(){if(Igd!==void 0)return Igd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-frame--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iframe frameborder="0" scrolling="no" id="chatframe" class="style-scope ytd-live-chat-frame"></iframe>\n<template is="dom-if" if="[[data.conversationBarRenderer.availabilityMessage]]" class="style-scope ytd-live-chat-frame">\n  <ytd-message-renderer data="[[data.conversationBarRenderer.availabilityMessage.messageRenderer]]" class="style-scope ytd-live-chat-frame">\n  </ytd-message-renderer>\n</template>\n<template is="dom-if" if="[[!enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" class="style-scope ytd-live-chat-frame">\n    <ytd-toggle-button-renderer data="[[data.liveChatRenderer.showHideButton.toggleButtonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" class="style-scope ytd-live-chat-frame">\n    </ytd-toggle-button-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" hidden="[[!collapsed]]" class="style-scope ytd-live-chat-frame">\n    <ytd-button-renderer data="[[data.liveChatRenderer.showButton.buttonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" on-click="onShowHideChat" class="style-scope ytd-live-chat-frame">\n    </ytd-button-renderer>\n  </div>\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Igd=a},{mode:1});var Kgd;var w9=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.w("web_modern_buttons");a.buttonOverrides={style:"call-to-action",type:"filled"};return a};
_.z(w9,_.P);w9.prototype.dataChanged=function(){this.data&&(this.data.impressionCommand&&this.data.impressionCommand.clickTrackingParams&&delete this.data.impressionCommand.clickTrackingParams,this.macroReplacementBehavior.sendServiceRequestAction([this.data.impressionCommand]),this.data.backgroundColor&&(this.enableColors=!0,this.hostElement.style.backgroundColor=_.Cq(this.data.backgroundColor)))};
w9.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var a=this.getFormattedStringLoggingDirectives(this.data.headline);a&&this.rendererBehavior.logExplicitClick(a)}};
w9.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var a=this.getFormattedStringLoggingDirectives(this.data.description);a&&this.rendererBehavior.logExplicitClick(a)}};
w9.prototype.getFormattedStringLoggingDirectives=function(a){return a&&a.runs&&a.runs.length>0&&a.runs[0]&&a.runs[0].loggingDirectives?a.runs[0].loggingDirectives:null};
var x9=w9;x9.prototype.dataChanged=x9.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],x9.prototype,"rendererBehavior",void 0);_.U([_.H(igd.YtMacroReplacementBehavior),_.W("design:type",Object)],x9.prototype,"macroReplacementBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],x9.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],x9.prototype,"navigationEndpoint",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],x9.prototype,"enableColors",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],x9.prototype,"modern",void 0);_.U([_.O(),_.W("design:type",Object)],x9.prototype,"buttonOverrides",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],x9.prototype,"dataChanged",null);x9=_.U([_.Q({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],x9);
_.S(x9,"ytd-action-basic-immersive-content-renderer",function(){if(Kgd!==void 0)return Kgd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-basic-immersive-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="icon" hidden="[[!data.iconImage]]" thumbnail="[[data.iconImage]]" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-img-shadow>\n<yt-formatted-string id="headline" text="[[data.headline]]" on-click="onHeadlineClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<yt-formatted-string id="desc" text="[[data.description]]" on-click="onDescriptionClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<ytd-button-renderer id="action" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope ytd-action-basic-immersive-content-renderer">\n</ytd-button-renderer>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Kgd=a},{mode:1});var Lgd;var Mgd;var Ngd=function(){return _.P.apply(this,arguments)||this};
_.z(Ngd,_.P);Ngd.prototype.dataChanged=function(){var a;((a=this.data)==null?void 0:a.backgroundColor)!==void 0&&_.fr(this.hostElement,{"--bgu-color":_.Cq(this.data.backgroundColor)})};
Ngd.prototype.onImageTileClick=function(){var a;((a=this.data)==null?0:a.navigationEndpoint)&&_.io(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var b;((b=this.data)==null?0:b.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.Um.Object.defineProperties(Ngd.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var a;if(((a=this.data)==null?void 0:a.objectFit)!==void 0)switch(this.data.objectFit){case "OBJECT_FIT_CONTAIN":return"CONTAIN";case "OBJECT_FIT_COVER":return"COVER";case "OBJECT_FIT_FILL":return"FILL"}return null}},
hasTileMetadata:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var a,b,c;if(((a=this.data)==null?void 0:(b=a.detailsLine)==null?void 0:b.texts)!=null&&((c=this.data)==null?void 0:c.detailsLine.texts.length)>0){var d;return(d=this.data)==null?void 0:d.detailsLine.texts.map(function(e){return e.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var a,b,c;if(((a=this.data)==null?void 0:(b=a.optionalDetailsLine)==null?void 0:b.texts)!=null&&((c=this.data)==null?void 0:c.optionalDetailsLine.texts.length)>0){var d;return(d=this.data)==null?void 0:d.optionalDetailsLine.texts.map(function(e){return e.text}).join("")}return null}}});
var y9=Ngd;y9.prototype.dataChanged=y9.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],y9.prototype,"rendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],y9.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],y9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data.backgroundColor"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],y9.prototype,"hasBackgroundColor",null);
_.U([_.K("data.objectFit"),_.W("design:type",Object),_.W("design:paramtypes",[])],y9.prototype,"getObjectFit",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.tileRenderingStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],y9.prototype,"hasTileMetadata",null);_.U([_.K("data.detailsLine"),_.W("design:type",Object),_.W("design:paramtypes",[])],y9.prototype,"getSecondaryDetails",null);
_.U([_.K("data.optionalDetailsLine"),_.W("design:type",Object),_.W("design:paramtypes",[])],y9.prototype,"getOptionalDetails",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y9.prototype,"dataChanged",null);y9=_.U([_.Q({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],y9);
_.S(y9,"ytd-image-tile-renderer",function(){if(Mgd!==void 0)return Mgd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <button class="remove-default-button-style background-adjusted style-scope ytd-image-tile-renderer" on-click="onImageTileClick">\n      <yt-img-shadow class="thumbnail style-scope ytd-image-tile-renderer" aria-label$="[[data.image.thumbnail.accessibility.accessibility_data.label]]" hidden="[[!data.image]]" object-fit="[[getObjectFit]]" thumbnail="[[data.image.thumbnail]]"></yt-img-shadow>\n      <div class="badge style-scope ytd-image-tile-renderer" hidden="[[!data.imageBadge]]">\n        <yt-img-shadow class="badge-image style-scope ytd-image-tile-renderer" thumbnail="[[data.imageBadge.thumbnail]]"></yt-img-shadow>\n      </div>\n      <div class="metadata style-scope ytd-image-tile-renderer" hidden="[[!hasTileMetadata]]">\n        <div class="headline style-scope ytd-image-tile-renderer">[[data.headline.simpleText]]</div>\n        <div class="secondary-details style-scope ytd-image-tile-renderer">[[getSecondaryDetails]]</div>\n        <div class="price style-scope ytd-image-tile-renderer">[[getOptionalDetails]]</div>\n      </div>\n </button>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Mgd=a},{mode:1});var Ogd;var Pgd=function(){return _.P.apply(this,arguments)||this};
_.z(Pgd,_.P);Pgd.prototype.getOpenLinkIcon=function(){return _.w("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
Pgd.prototype.onSitelinkTap=function(){_.io(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.w("kevlar_command_handler_migration_killswitch"))_.po(this.hostElement,this.data.clickCommands,this.hostElement);else for(var a=_.h(this.data.clickCommands),b=a.next();!b.done;b=a.next())this.ytComponentBehavior.resolveCommand(b.value)};
var z9=Pgd;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],z9.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],z9.prototype,"rendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],z9.prototype,"data",void 0);z9=_.U([_.Q({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],z9);
_.S(z9,"ytd-sitelink-renderer",function(){if(Ogd!==void 0)return Ogd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sitelink-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-sitelink-renderer">\n  <button id="clickable-area" class="remove-default-button-style style-scope ytd-sitelink-renderer" on-tap="onSitelinkTap">\n    <div id="sitelink" class="style-scope ytd-sitelink-renderer">\n      <span class="style-scope ytd-sitelink-renderer">[[data.text.text]]</span>\n      <yt-icon id="open-icon" icon="[[getOpenLinkIcon()]]" class="style-scope ytd-sitelink-renderer"></yt-icon>\n    </div>\n    <div id="description-texts" class="style-scope ytd-sitelink-renderer">\n      <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-sitelink-renderer">\n        <div id="desc" class="style-scope ytd-sitelink-renderer">[[item.text]]</div>\n      </template>\n    </div>\n  </button>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Ogd=a},{mode:1});var A9=function(){var a=_.P.apply(this,arguments)||this;a.paddingFix=_.w("enable_ads_web_ep_buenos_aires_and_padding_fix");return a};
_.z(A9,_.P);A9.prototype.configureRendererStamper=function(){return{"data.sitelinkRenderers":{id:"sitelinks",mapping:{sitelinkRenderer:"ytd-sitelink-renderer"}},"data.actionButton":{id:"action",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageTileRenderers":{id:"image-tiles",mapping:{imageTileRenderer:"ytd-image-tile-renderer"}}}};
A9.prototype.dataChanged=function(){var a=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(b){b.clickTrackingParams&&delete b.clickTrackingParams;a.ytMacroReplacementBehavior.sendServiceRequestAction([b])})};
A9.prototype.shouldHideFooter=function(a){return!(a&&_.w("use_ads_engagement_panel_desktop_footer_cta"))};
_.Um.Object.defineProperties(A9.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:a.imageTileRenderers)===void 0||((b=this.data)==null?void 0:b.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(c){var d;return(d=_.y(c,Cdd))==null?void 0:d.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:a.imageTileRenderers)===void 0||((b=this.data)==null?void 0:b.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(c){var d;return((d=_.y(c,Cdd))==null?void 0:d.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
var B9=A9;B9.prototype.dataChanged=B9.prototype.dataChanged;_.U([_.H(igd.YtMacroReplacementBehavior),_.W("design:type",Object)],B9.prototype,"ytMacroReplacementBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],B9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],B9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],B9.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],B9.prototype,"paddingFix",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data.imageTileRenderers"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],B9.prototype,"removeBorderFromImageTiles",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.imageTileRenderers"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],B9.prototype,"useFooteredMetadataRenderingStyle",null);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B9.prototype,"dataChanged",null);B9=_.U([_.Q({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],B9);
_.S(B9,"ytd-action-engagement-panel-content-renderer",function(){if(Lgd!==void 0)return Lgd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="sitelinks" hidden="[[!data.sitelinkRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n  <div id="image-tiles" hidden="[[!data.imageTileRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n<div id="footer" hidden="[[shouldHideFooter(data.actionButton)]]" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="action" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Lgd=a},{mode:1});var Qgd;var Rgd=_.Rr(function(a){var b=a.data;var c=a.customCommandResolver;a=_.Pl();_.gv(a,function(){return b().interaction},c);
_.Yl(a,{visibilityCallback:function(d){var e,g=(e=b().interaction)==null?void 0:e.onFirstVisible;d&&g&&_.Gs(g)},
showOption:_.sL});return _.q("ad-grid-card-image-full-metadata-view-model",{class:function(){var d;return((d=b().interaction)==null?0:d.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:a,"aria-label":function(){var d,e;return(d=b().interaction)==null?void 0:(e=d.accessibility)==null?void 0:e.label}},_.q("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.q(_.Hu,{data:function(){return b().adImage}},{adImageViewModel:function(d){return _.q(_.BN,{data:d.data,
customCommandResolver:c})}})),_.q("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.q(_.qi,{cond:function(){return b().headline},
then:function(d){return _.q(_.tt,{text:d,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.q(_.qi,{cond:function(){return b().detailsLine},
then:function(d){return _.q("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.q(_.Hu,{data:d},{adDetailsLineViewModel:function(e){return _.q(_.yL,{data:e.data,customCommandResolver:c,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.q(_.qi,{cond:function(){return b().secondaryDetailsLine},
then:function(d){return _.q("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.q(_.Hu,{data:d},{adDetailsLineViewModel:function(e){return _.q(_.yL,{data:e.data,customCommandResolver:c,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Ah");var Sgd=_.Rr(function(a){var b=a.data;var c=a.customCommandResolver;a=_.Pl();_.gv(a,function(){return b().interaction},c);
_.Yl(a,{visibilityCallback:function(d){var e,g=(e=b().interaction)==null?void 0:e.onFirstVisible;d&&g&&_.Gs(g)},
showOption:_.sL});return _.q("ad-grid-card-image-view-model",{class:function(){var d;return((d=b().interaction)==null?0:d.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:a,"aria-label":function(){var d,e;return(d=b().interaction)==null?void 0:(e=d.accessibility)==null?void 0:e.label}},_.q(_.Hu,{data:function(){return b().adImage}},{adImageViewModel:function(d){return _.q(_.BN,{data:d.data,
customCommandResolver:c})}}),_.q("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.q(_.Hu,{data:function(){return b().adCardBadge}},{adCardBadgeViewModel:_.D4b})))},"Bh");var Tgd=_.Rr(function(a){var b=a.data;var c=a.customCommandResolver;a=_.Pl();_.gv(a,function(){return b().interaction},c);
_.Yl(a,{visibilityCallback:function(d){var e,g=(e=b().interaction)==null?void 0:e.onFirstVisible;d&&g&&_.Gs(g)},
showOption:_.sL});return _.q("ad-grid-card-text-view-model",{class:function(){var d;return((d=b().interaction)==null?0:d.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:a,"aria-label":function(){var d,e;return(d=b().interaction)==null?void 0:(e=d.accessibility)==null?void 0:e.label}},_.q("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.q(_.qi,{cond:function(){return b().title},
then:function(d){return _.q(_.tt,{text:d,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.q("div",{class:function(){return _.w("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.q(_.ri,{each:function(){var d;
return((d=b())==null?void 0:d.descriptions)||[]},
keyBy:"INDEX"},function(d){return _.q(_.tt,{text:d,className:function(){return _.w("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.q("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.q(_.Hu,{data:function(){return b().moreInfoButton}},{adButtonViewModel:function(d){return _.q(_.uL,{data:d.data,
customCommandResolver:c})}})))},"Ch");var Ugd=_.Rr(function(a){var b=a.data;var c=a.customCommandResolver;var d=a.adGridCardCollectionStyle;a=_.Pl();_.Yl(a,{visibilityCallback:function(e){var g,k=(g=b().interaction)==null?void 0:g.onFirstVisible;e&&k&&_.Gs(k)},
showOption:_.sL});return _.q("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:a,style:function(){return"grid-template-columns: repeat("+Fcd(d?d():b().style)+", minmax(0, 1fr));"}},_.q(_.Hu,{data:function(){var e;
return(e=b())==null?void 0:e.gridCards}},{adGridCardImageViewModel:function(e){return _.q(Sgd,{data:e.data,
customCommandResolver:c})},
adGridCardImageFullMetadataViewModel:function(e){return _.q(Rgd,{data:e.data,customCommandResolver:c})},
adGridCardTextViewModel:function(e){return _.q(Tgd,{data:e.data,customCommandResolver:c})}}))},"Dh");_.Ts(_.Rr(function(a){var b=a.data;a=_.Pl();_.gv(a,function(){return b().interaction},Hcd);
_.Yl(a,{visibilityCallback:function(c){var d,e=(d=b().interaction)==null?void 0:d.onFirstVisible;c&&e&&_.Gs(e)},
showOption:_.sL});return _.q("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:a},_.q("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.q(_.qi,{cond:_.x2a("(min-width: "+((0,_.LW)()+_.N8)+"px)"),then:function(){return _.q(_.Hu,{data:function(){return b().adGridCardCollection}},{adGridCardCollectionViewModel:function(c){return _.q(Ugd,{data:c.data,
customCommandResolver:Hcd})}})},
else:function(){return _.q(_.Hu,{data:function(){return b().adGridCardCollection}},{adGridCardCollectionViewModel:function(c){return _.q(Ugd,{data:c.data,
customCommandResolver:Hcd,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.q("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.q(_.Hu,{data:function(){return b().adButton}},{adButtonViewModel:function(c){return _.q(_.uL,{data:c.data,
customCommandResolver:Hcd})}})))},"Eh"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.VG}});_.Ts(_.Rr(function(a){var b=a.data;a=_.Pl();_.gv(a,function(){return b().interaction},Icd);
_.Yl(a,{visibilityCallback:function(c){var d,e=(d=b().interaction)==null?void 0:d.onFirstVisible;c&&e&&_.Gs(e)},
showOption:_.sL});return _.q("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:a},_.q("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.q(_.Hu,{data:function(){if(_.x2a("(min-width: "+((0,_.LW)()+_.N8)+"px)")())var c=b().adGridCardCollection;else{c=Object.assign({},_.y(b().adGridCardCollection,Ddd));var d;c.gridCards!==void 0&&((d=c.gridCards)==null?void 0:d.length)>1?c.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":c.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";c={adGridCardCollectionViewModel:c}}return c}},{adGridCardCollectionViewModel:function(c){return _.q(Ugd,{data:c.data,
customCommandResolver:Icd})}})),_.q("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.q(_.Hu,{data:function(){return b().adButton}},{adButtonViewModel:function(c){return _.q(_.uL,{data:c.data,
customCommandResolver:Icd})}})))},"Fh"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.VG}});var Vgd=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return a};
_.z(Vgd,_.P);_.f=Vgd.prototype;_.f.configureRendererStamper=function(){return{"data.contentRenderer":{id:"content",mapping:{actionEngagementPanelContentRenderer:"ytd-action-engagement-panel-content-renderer",basicImmersiveEngagementPanelContentRenderer:"ytd-action-basic-immersive-content-renderer",panelTextIconImageTilesButtonLayoutContentViewModel:"panel-text-icon-image-tiles-button-layout-content-view-model",panelTextIconTextGridCardsSubLayoutContentViewModel:"panel-text-icon-text-grid-cards-sub-layout-content-view-model"}}}};
_.f.attached=function(){this.getDataFromPlayerAndRender()};
_.f.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.f.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.f.getDataFromPlayerAndRender=function(){var a=this,b=_.au(this.hostElement);b&&b.getPlayerPromise().then(function(c){a.getCachedDataAndListen(c)})};
_.f.getCachedDataAndListen=function(a){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(a,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(a,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=a)};
_.f.resolveCachedActions=function(){var a=_.Ji("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(a=a&&a())&&!_.Cf.isEmpty(a)&&this.sendUpdateEngagementPanelAction(a);(a=(a=_.Ji("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&a())&&!_.Cf.isEmpty(a)&&this.sendChangeEngagementPanelVisibilityAction(a);(a=(a=_.Ji("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&a())&&!_.Cf.isEmpty(a)&&this.sendScrollToEngagementPanelCommand(a)};
_.f.sendUpdateEngagementPanelAction=function(a){var b;_.lo(this.hostElement,"yt-update-engagement-panel-action",[(b=_.Cf.get(a,"action"))!=null?b:a])};
_.f.sendChangeEngagementPanelVisibilityAction=function(a){_.lo(this.hostElement,"yt-change-engagement-panel-visibility-action",[a])};
_.f.sendScrollToEngagementPanelCommand=function(a){_.lo(this.hostElement,"yt-scroll-to-engagement-panel-command",[a])};
_.f.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.w("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Dl(Error("im"))};
var C9=Vgd;C9.prototype.dataChanged=C9.prototype.dataChanged;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],C9.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],C9.prototype,"componentBehavior",void 0);_.U([_.H(_.bJ.YtPlayerListenerBehavior),_.W("design:type",_.cJ)],C9.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],C9.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],C9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],C9.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],C9.prototype,"player",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],C9.prototype,"dataChanged",null);C9=_.U([_.Q({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],C9);
_.S(C9,"ytd-ads-engagement-panel-content-renderer",function(){if(Qgd!==void 0)return Qgd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ads-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ads-engagement-panel-content-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
return Qgd=a},{mode:1});var Wgd;var Xgd=function(){var a=_.P.apply(this,arguments)||this;a.player=null;a.JSC$19741_playerEvents=new Map;a.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return a};
_.z(Xgd,_.P);_.f=Xgd.prototype;_.f.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer",commentActionButtonsRenderer:{component:"ytd-comment-action-buttons-renderer",properties:{voteCount:"[[voteCount]]"}}}}}};
_.f.created=function(){this.player=null;this.JSC$19741_playerEvents=new Map;this.JSC$19741_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19741_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19741_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19741_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.f.attached=function(){var a=this,b=_.au();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));b&&b.getPlayerPromise().then(function(c){a.setPlayer(c);a.set("isPageLoad",!1)})};
_.f.setPlayer=function(a){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19741_playerEvents);this.set("player",a);a&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(a,this.JSC$19741_playerEvents),a.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.f.onLoopRangeChange=function(a){var b=_.v().resolve(_.Xi(_.Zt));if((!b||b.isOnWatch())&&this.hostElement.clientHeight){var c;!a&&((c=this.data)==null?0:c.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.f.onVideoProgress=function(a){var b,c,d=((b=this.player)==null?void 0:(c=b.getPresentingPlayerType)==null?void 0:c.call(b))===2;this.isAdPlaying!==d&&this.set("isAdPlaying",d);var e;if(!d&&(e=this.player)!=null&&e.getLoopRange()){c=this.player.getLoopRange();b=c.startTimeMs;c=c.endTimeMs;d=this.player.getProgressState(1).seekableStart;var g;b<d*1E3&&((g=this.data)==null?0:g.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
a=c<a*1E3;var k;((k=this.player)==null?0:k.getLoopRange())&&a&&this.player.seekTo(b/1E3)}};
_.f.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.f.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.f.onYtDeleteClipEngagementPanelCommand=function(a){_.y(a,Sdd).command&&this.ytComponentBehavior.resolveCommand(_.y(a,Sdd).command)};
_.Um.Object.defineProperties(Xgd.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.voteCount)||_.Vp("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
var D9=Xgd;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],D9.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],D9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],D9.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],D9.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.bJ.YtPlayerListenerBehavior),_.W("design:type",_.cJ)],D9.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],D9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],D9.prototype,"isAdPlaying",void 0);_.U([_.O({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],D9.prototype,"isPageLoad",void 0);_.U([_.O({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],D9.prototype,"isDarkTheme",void 0);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],D9.prototype,"voteCount",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],D9.prototype,"channelEndpoint",null);_.U([_.K("channelEndpoint"),_.W("design:type",Object),_.W("design:paramtypes",[])],D9.prototype,"channelHref",null);D9=_.U([_.Q({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],D9);
_.S(D9,"ytd-clip-attribution-renderer",function(){if(Wgd!==void 0)return Wgd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-attribution-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-clip-attribution-renderer">\n  <div id="top" class="style-scope ytd-clip-attribution-renderer">\n    <a aria-hidden="true" class="yt-simple-endpoint author-endpoint author-avatar style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow class="author-avatar style-scope ytd-clip-attribution-renderer" height="40" thumbnail="[[data.authorAvatar]]" width="40">\n      </yt-img-shadow>\n    </a>\n    <div id="author-container" class="style-scope ytd-clip-attribution-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint author-endpoint style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n        <ytd-channel-name id="author" badges="[[data.authorBadges]]" channel-name="[[data.clipAuthor]]" no-endpoints="" class="style-scope ytd-clip-attribution-renderer">\n        </ytd-channel-name>\n      </a>\n      <span class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.createdText)]]</span>\n    </div>\n    <div id="menu" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <span id="title" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.title)]]</span>\n  <div id="bottom" class="style-scope ytd-clip-attribution-renderer">\n    <div id="buttons" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <div id="ad-overlay" class="style-scope ytd-clip-attribution-renderer">\n    <svg id="ad-image" viewBox="0 0 166.96 140.96" class="style-scope ytd-clip-attribution-renderer">\n      <g class="style-scope ytd-clip-attribution-renderer"><g class="style-scope ytd-clip-attribution-renderer">\n        <path class="cls-2 style-scope ytd-clip-attribution-renderer" d="M138.1,103.79l9.9-17h0l-9.9-5.44,9.9-17h0L138.1,59,148,42s-26,20.57-38.86,29.71-9.43-22.57-9.71-47.14S90.29-6,66.86,6,0,46.55,0,46.55l9.9,6.19L0,72.54l9.9,6.35L0,98.69,9.9,105,0,124.84s63.84-42,79.56-50.56c14.81-8.09,12.15,27.13,11.87,45.13s9.14,21.43,22,13.71c12.42-7.45,33.1-22.9,34.49-23.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M102.26,71.67V137c.27,0,.55,0,.84-.05V72.54A4.36,4.36,0,0,1,102.26,71.67Z" transform="translate(0 0.25)"></path>\n        <path class="cls-4 style-scope ytd-clip-attribution-renderer" d="M50.49,121.06c1.82-2.79,4.46-4.68,7.11-6.57,1.3-.93,2.61-1.85,3.86-2.84a4.06,4.06,0,0,0,.95-1.75c.22-3.44-2.51-6.92-5.93-6.42-3.62,0-7.24,2.84-10.08,4.72-3.78,2.5-7.06,6.32-9.77,9.91-1.43,1.9-2.72,3.71-4,5.68-2.76,4.13-4.4,8.7-6.6,13.21a16.79,16.79,0,0,1,.55-3.13c2-5.06,4.07-10.07,7.32-14.49,1-1.36,2-2.78,3-4.12a5.68,5.68,0,0,1,1.45-.86c.28-1.65,2-2.64,3-4.07,0-.06.5.19.77.3a7.55,7.55,0,0,1,.53-1.46c0-.09.61.11.94.17,0-.36,0-.72,0-1.08,0-.1.19-.18.28-.27,1.09-1.08,2.57-1.56,3.71-2.64a12.29,12.29,0,0,1,4.18-2.46,19.89,19.89,0,0,1,5.13-1.09c3.21-.27,6.5,3.42,7.27,5.72.21.64.41,1.28.69,2.15l3.71-1.73a1.57,1.57,0,0,1,2.13.26l-.35-1,5.12-1.33c1.06.89,2.1.2,3.16,0,.86-.18,1.78-.16,1.87-1.37,0-.06.5-.19.53-.13a4.74,4.74,0,0,1,.37.87l3.05-.58-.08.81c-3.69,1.11-7.47,1.69-11,2.9a28.1,28.1,0,0,0-7.73,4,12.91,12.91,0,0,0-4,5.89,33.12,33.12,0,0,1-7.84,11.43c-1.53,1.54-3.32,2.81-5,4.23a4.84,4.84,0,0,1-3.55,1.22c-1.33-.06-1.67-.23-2-1.49a4.81,4.81,0,0,1,.19-3.38c1.63-3.31,3.52-6.4,6.53-8.65l-.23.49c.11,0,.2.07.23.05l.86-.94Zm-6.3,11.57a1.69,1.69,0,0,0,1.3,1.43,6,6,0,0,0,2.76-1.2c2-1.71,4-3.53,5.94-5.33a4,4,0,0,0,.47-.89c.31-.52,1.52-1.1,1.84-1.61,1.49-2.4,2.76-4.89,4.22-7.31.27-.45.22-3.25-.1-3.46a19.68,19.68,0,0,0-3.49,2.44c-1,.5-1.65,1.85-2.64,2.33a13.34,13.34,0,0,0-3,2.67c-1,1-1.92,1.93-2.8,3a34.65,34.65,0,0,0-2.3,3.11C45.65,128.87,44.17,131.53,44.19,132.63Z" transform="translate(0 0.25)"></path>\n        <path class="cls-1 style-scope ytd-clip-attribution-renderer" d="M0,124.84V46.55S43.43,18,66.86,6,99.14,0,99.43,24.55s-3.14,56.29,9.71,47.14S148,42,148,42v67.14s-21.71,16.29-34.57,24-22.29,4.29-22-13.71,2.94-53.22-11.87-45.13C63.84,82.87,0,124.84,0,124.84Z" transform="translate(0 0.25)"></path>\n        <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M119,12.45c-.87,10.43-4.13,19.08-15,22.06,13.42.52,14.54,9.3,15.29,18.31,1.28-9.85,4.42-18.14,15-20.18C123.63,31.85,120.11,23.44,119,12.45Z" transform="translate(0 0.25)"></path>\n        <g class="cls-6 style-scope ytd-clip-attribution-renderer">\n          <polygon class="cls-4 style-scope ytd-clip-attribution-renderer" points="166.96 114.12 146.52 104.85 161.66 80.3 137.84 92.19 132.87 70.65 126.28 95.37 110.8 90.89 120.61 104.1 105.23 112.92 119.7 114.68 116.36 135.53 131.9 122.15 141.06 140.96 143.28 116.82 166.96 114.12"></polygon>\n          <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M73.23,20.28c1.5-8,.86-14.91-1.89-20.53L69.79.51C72.37,5.79,73,12.34,71.54,20c-3,16.13-14.32,29.76-28.12,33.92a31.14,31.14,0,0,1-7.73,1.27A39.72,39.72,0,0,0,19.94,24.42c-4-2.94-7.71-3.92-10.8-2.86-5.5,1.88-6.8,9.18-4.87,15.13,3.88,11.93,16.48,20,29.69,20.2,0,.43,0,.86-.07,1.29a37.87,37.87,0,0,1-19.27,30l.82,1.51a35.69,35.69,0,0,0,5.18-3.42,39.75,39.75,0,0,0,15-28c0-.47.06-.94.07-1.41a32.46,32.46,0,0,0,8.24-1.34C58.33,51.2,70.11,37,73.23,20.28ZM34,55.17c-12.5-.23-24.4-7.77-28.06-19C4.5,31.81,5,26.47,8.05,24.09a5.66,5.66,0,0,1,1.66-.9c3.18-1.1,6.76.82,9.2,2.62A38,38,0,0,1,34,55.17Z" transform="translate(0 0.25)"></path>\n        </g>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17.4,46.23,17,45.51,24.42,41l.44.71Q21.2,43.94,17.4,46.23Zm14.9-9.15-.44-.71,7.42-4.6.44.71ZM47.16,27.9l-.44-.72c2.57-1.58,5.07-3.09,7.47-4.54l.44.72Q51,25.52,47.16,27.9Zm15-8.94-.42-.73c2.85-1.62,5.37-3,7.69-4.19l.39.75C67.5,16,65,17.34,62.16,19ZM96,14.42a14,14,0,0,0-2.35-3.14l.58-.6A14.64,14.64,0,0,1,96.71,14ZM77.7,11.11l-.32-.77a32.13,32.13,0,0,1,8.49-2.4l.09.83A31.86,31.86,0,0,0,77.7,11.11Z" transform="translate(0 0.25)"></path>\n        <polygon class="cls-3 style-scope ytd-clip-attribution-renderer" points="57.21 88.12 56.37 88.65 56.37 11.92 57.21 11.45 57.21 88.12"></polygon>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M109.94,80.05a6.68,6.68,0,0,1-5.19-2.48l.64-.55c1.93,2.22,4.35,2.74,7.49,1.63l.28.79A9.59,9.59,0,0,1,109.94,80.05Zm10.81-5.11-.49-.69c2.11-1.48,4.48-3.21,7.06-5.14l.51.68C125.24,71.72,122.86,73.45,120.75,74.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17,103.93l-.46-.7,7.28-4.83.46.7Zm14.55-9.68-.46-.7q3.73-2.49,7.27-4.84l.47.7Zm14.57-9.64-.46-.7q3.84-2.5,7.36-4.73l.45.71C51.15,81.37,48.69,83,46.14,84.61Zm14.8-9.26-.43-.73c2.89-1.7,5.4-3.08,7.68-4.22l.38.75C66.3,72.28,63.81,73.66,60.94,75.35ZM84.8,68.18A10.48,10.48,0,0,0,80,67.31a13.7,13.7,0,0,0-3.47.55l-.22-.81A14.45,14.45,0,0,1,80,66.47a11.37,11.37,0,0,1,5.15,1Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M98.67,127.76c-2.62-.79-4.81-2.9-6.35-6.12l.76-.36c1,2.09,2.82,4.77,5.84,5.68Zm8.65-1.68-.4-.73c1.81-1,4.31-2.53,7.45-4.55l.45.7C111.67,123.53,109.15,125.07,107.32,126.08Zm14.81-9.4-.47-.7c2.38-1.59,4.82-3.26,7.24-4.92l.47.69C127,113.41,124.51,115.08,122.13,116.68Z" transform="translate(0 0.25)"></path>\n        <ellipse class="cls-4 style-scope ytd-clip-attribution-renderer" cx="71.33" cy="51.78" rx="8.55" ry="6.47" transform="translate(-6.69 93.03) rotate(-63.7)"></ellipse>\n      </g></g>\n    </svg>\n    <div id="ad-text" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.adPlayingText)]]</div>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Wgd=a},{mode:1});var Ygd;var Zgd=function(){var a=_.P.apply(this,arguments)||this;a.player=null;a.JSC$19746_playerEvents=new Map;return a};
_.z(Zgd,_.P);_.f=Zgd.prototype;_.f.created=function(){this.player=null;this.JSC$19746_playerEvents=new Map;this.JSC$19746_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19746_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19746_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.f.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.f.attached=function(){var a=this,b=_.au();b&&b.getPlayerPromise().then(function(c){a.setPlayer(c);a.set("isPageLoad",!1)})};
_.f.setPlayer=function(a){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19746_playerEvents);this.set("player",a);if(a){this.ytPlayerListenerBehavior.listenToPlayerEvents(a,this.JSC$19746_playerEvents);var b;(a==null?void 0:(b=a.getPresentingPlayerType)==null?void 0:b.call(a))===2&&this.playerAdStartHandler()}};
_.f.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.f.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.f.onVideoProgress=function(){var a,b,c=((a=this.player)==null?void 0:(b=a.getPresentingPlayerType)==null?void 0:b.call(a))===2;this.isAdPlaying!==c&&this.set("isAdPlaying",c)};
var E9=Zgd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],E9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],E9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bJ.YtPlayerListenerBehavior),_.W("design:type",_.cJ)],E9.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],E9.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],E9.prototype,"isAdPlaying",void 0);_.U([_.O({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],E9.prototype,"isPageLoad",void 0);E9=_.U([_.Q({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],E9);
_.S(E9,"ytd-clip-section-footer-renderer",function(){if(Ygd!==void 0)return Ygd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="buttons" class="style-scope ytd-clip-section-footer-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Ygd=a},{mode:1});var $gd;var ahd;var bhd=function(){return _.P.apply(this,arguments)||this};
_.z(bhd,_.P);var chd=bhd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],chd.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],chd.prototype,"data",void 0);chd=_.U([_.Q({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],chd);
_.S(chd,"ytd-clip-ad-state-renderer",function(){if(ahd!==void 0)return ahd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-ad-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="message" class="style-scope ytd-clip-ad-state-renderer">\n  <div id="title" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="body" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.body)]]</div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return ahd=a},{mode:1});var dhd;var ehd=function(){var a=_.P.apply(this,arguments)||this;a.value="";a.valid=!1;a.userChangedValue=!1;a.disabled=!1;a.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return a};
_.z(ehd,_.P);_.f=ehd.prototype;_.f.detached=function(){this.userChangedValue=!1};
_.f.handleKeyDown=function(a){if(_.yx)var b=13;else _.o9a&&_.zx?b=13:b=13;a.keyCode===b&&a.preventDefault()};
_.f.handleInput=function(){var a=_.E(this.hostElement).querySelector("#title");if(a){var b=(a.value||"").replace(/\r|\n/g," ");this.set("value",b);a.value=b;this.valid=a.validate();this.userChangedValue=!0}};
_.f.handleBlur=function(){this.valid=_.E(this.hostElement).querySelector("#title").validate()};
_.f.onValueChanged=function(){_.io(this.hostElement,"title-changed",{title:this.value})};
_.f.onValidChanged=function(){_.io(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.f.setInput=function(a,b){var c=_.E(this.hostElement).querySelector("#title");c&&(c.value=a,this.handleInput(),b&&(c.invalid=!1,this.valid=!0))};
_.f.onClipCreationDisable=function(){this.set("disabled",!0)};
_.f.onClipCreationEnable=function(){this.set("disabled",!1)};
_.f.onClipCreationVisibilityChange=function(a){var b=this;a.visible?requestAnimationFrame(function(){var c;((c=_.E(b.hostElement).querySelector("#title"))==null?void 0:c.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
var F9=ehd;F9.prototype.onValidChanged=F9.prototype.onValidChanged;F9.prototype.onValueChanged=F9.prototype.onValueChanged;F9.prototype.handleBlur=F9.prototype.handleBlur;F9.prototype.handleInput=F9.prototype.handleInput;F9.prototype.handleKeyDown=F9.prototype.handleKeyDown;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],F9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],F9.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],F9.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],F9.prototype,"value",void 0);_.U([_.O(),_.W("design:type",Object)],F9.prototype,"valid",void 0);_.U([_.O(),_.W("design:type",Object)],F9.prototype,"userChangedValue",void 0);_.U([_.O(),_.W("design:type",Object)],F9.prototype,"disabled",void 0);_.U([_.M("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],F9.prototype,"handleKeyDown",null);
_.U([_.M("input"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F9.prototype,"handleInput",null);_.U([_.M("blur"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F9.prototype,"handleBlur",null);_.U([_.N("value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F9.prototype,"onValueChanged",null);
_.U([_.N("valid"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F9.prototype,"onValidChanged",null);F9=_.U([_.Q({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],F9);
_.S(F9,"ytd-clip-creation-text-input-renderer",function(){if(dhd!==void 0)return dhd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-creation-text-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-textarea id="title" char-counter="" disabled="[[disabled]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="" pattern=".+" required="" use-v2-underline="" class="style-scope ytd-clip-creation-text-input-renderer"></tp-yt-paper-textarea>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return dhd=a},{mode:1});var fhd;var ghd;var hhd;var ihd;var jhd;var khd=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};a.pendingStoryboardImages_={};a.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];a.tickLabelInterval=30;a.mediumTickInterval=5;a.largeTickInterval=15;a.aboveRulerHeight=32;a.rulerHeight=50;a.smallTickHeight=4;a.mediumTickHeight=8;a.largeTickHeight=16;a.mediaListeners_=
{};return a};
_.z(khd,_.P);_.f=khd.prototype;_.f.attached=function(){var a=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(b){b=_.h(["screen and (min-resolution: "+b+")","screen and (max-resolution: "+b+")"]);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=window.matchMedia(c);d&&(a.mediaListeners_[c]=a.updatePixelRatio_.bind(a),d.addEventListener?d.addEventListener("change",a.mediaListeners_[c]):d.addListener?d.addListener(a.mediaListeners_[c]):delete a.mediaListeners_[c])}})};
_.f.detached=function(){this.setPlayer(null);for(var a=_.h(Object.keys(this.mediaListeners_)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.mediaListeners_[c];(c=window.matchMedia(c))&&(c.removeEventListener?c.removeEventListener("change",b):c.removeListener&&c.removeListener(b))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.f.onVisibilityChangedAction_=function(a){var b=this;a.visible&&!this.player_&&(a=_.au())&&a.getPlayerPromise().then(function(c){b.setPlayer(c)})};
_.f.setPlayer=function(a){a&&this.set("player_",a)};
_.f.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.f.setUpCanvas_=function(){var a=this.rulerWidth,b=this.devicePixelRatio_,c=this.visible;this.set("canvasReady_",!1);if(c&&b!==0){c=this.aboveRulerHeight+this.rulerHeight;var d=_.E(this.hostElement).querySelector("#ticks");d.width=a*b;d.height=c*b;d.style.width=a+"px";d.style.height=c+"px";d.getContext("2d").scale(b,b);this.set("canvasReady_",!0)}};
_.f.drawRuler_=function(a,b,c,d,e,g,k,m,n,r,t,u){a&&c&&b&&(a=_.E(this.hostElement).querySelector("#ticks"),b=a.getContext("2d"),b.clearRect(0,0,a.width,a.height),b.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),b.lineWidth=2,b.beginPath(),b.moveTo(0,this.aboveRulerHeight),b.lineTo(a.width,this.aboveRulerHeight),b.moveTo(0,a.height),b.lineTo(a.width,a.height),b.stroke(),this.drawRulerTicks_(a,g,e,d),this.drawStoryboardImages_(a,c,g,e,d),b.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
b.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(k-g,d,!1),this.rulerHeight),c=this.timeToPixels_(m-g,d,!1),b.fillRect(c,this.aboveRulerHeight,a.width-c,this.rulerHeight),this.drawSpeedLines_(a,g,u))};
_.f.drawRulerTicks_=function(a,b,c,d){var e=a.getContext("2d");e.save();e.lineWidth=1;for(var g=Math.floor(Math.max(0,b-this.tickLabelInterval));g<b+c;g++){e.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var k=(g-b)*d;e.beginPath();e.moveTo(k,a.height);var m=this.smallTickHeight;g%this.largeTickInterval===0?m=this.largeTickHeight:g%this.mediumTickInterval===0&&(m=this.mediumTickHeight);e.lineTo(k,a.height-m);e.stroke();g%this.tickLabelInterval===0&&(e.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),e.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),e.fillText(J8(g),k+4,12),e.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),e.moveTo(k,0),e.lineTo(k,this.aboveRulerHeight),e.stroke())}e.restore()};
_.f.percentToHex_=function(a){a=Math.round(a*255).toString(16);a.length<2&&(a="0"+a);return a};
_.f.drawSpeedLines_=function(a,b,c){var d=a.getContext("2d");d.save();var e=Math.min(25,Math.abs(c)-15)/25,g=a.width*.3*e,k=a.width*-.3,m=a.width*1.3,n=this.aboveRulerHeight;a=a.height;var r=Math.round(4*e),t=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");t.length<7&&(t="#"+t.substring(1,4).repeat(2));var u=this.percentToHex_(.5+e/2);u=t+u;t+="00";if(e>0)for(e=0;e<r;e++){var x=k+Math.random()*(m-k),A=n+Math.random()*(a-n),C=g+b%g,F=d.createLinearGradient(x,A,x+C,A);
c<0?(F.addColorStop(0,u),F.addColorStop(.4,u),F.addColorStop(.9,t)):(F.addColorStop(.1,t),F.addColorStop(.6,u),F.addColorStop(1,u));d.strokeStyle=F;d.lineWidth=1;d.beginPath();d.moveTo(x,A);d.lineTo(x+C,A);d.stroke()}d.restore()};
_.f.getStoryboardForTime_=function(a,b,c){c===void 0&&(c=b.getNumberOfStoryboardLevels()-1);a=b.getStoryboardFrameIndex(a,c);return b.getStoryboardFrame(a,c)};
_.f.drawStoryboardImages_=function(a,b,c,d,e){if(!this.disabled){a=a.getContext("2d");var g=this.getStoryboardForTime_(0,b);if(g){var k=g.width/g.columns;g=g.height/g.rows;var m=k/g,n=this.rulerHeight*m;n=this.tickLabelInterval*(m<this.tickLabelInterval*e/this.rulerHeight?1/Math.floor(this.tickLabelInterval*e/n):Math.round(n/(this.tickLabelInterval*e)));var r=n*e,t=this.rulerHeight,u=r/this.rulerHeight,x=Math.floor(Math.max(0,c-n));for(x-=x%n;x<c+d;x+=n){var A=this.getStoryboardForTime_(x,b),C=this.getPreloadedStoryboard_(A.url);
if(C){var F=(x-c)*e,J=this.aboveRulerHeight,I=A.column*k,R=A.row*g;if(m<u){var da=t/(r/m);A=k;da*=g;R+=(g-da)/2}else A=r/(t*m)*k,da=g,I+=(k-A)/2;a.drawImage(C,I,R,A,da,F,J,r,t)}else this.fetchStoryboardImage_(A)}}}};
_.f.getPreloadedStoryboard_=function(a){return this.storyboardImages_.find(function(b){if(b.src==a)return!0;var c=b.src.indexOf(a);return c!=-1&&c==b.src.length-a.length})};
_.f.fetchStoryboardImage_=function(a){var b=this,c=this.getPreloadedStoryboard_(a.url),d=this.pendingStoryboardImages_[a.url];c||d!==void 0||(c=new Promise(function(e){var g=new Image(a.width,a.height);g.src=a.url;g.onload=function(){e(g)};
g.onerror=function(){e(null)}}),this.pendingStoryboardImages_[a.url]=c,c.then(function(e){e&&b.push("storyboardImages_",e);
return e}).finally(function(){delete b.pendingStoryboardImages_[a.url]}))};
_.f.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.f.timeToPixels_=function(a,b,c){a*=b;return c===void 0||c?a+"px":a};
_.f.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
var G9=khd;G9.prototype.drawRuler_=G9.prototype.drawRuler_;G9.prototype.setUpCanvas_=G9.prototype.setUpCanvas_;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],G9.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],G9.prototype,"ytRendererBehavior",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],G9.prototype,"start",void 0);_.U([_.O({value:30}),_.W("design:type",Number)],G9.prototype,"end",void 0);
_.U([_.O({value:!1}),_.W("design:type",Boolean)],G9.prototype,"visible",void 0);_.U([_.O(),_.W("design:type",Object)],G9.prototype,"player_",void 0);_.U([_.O(),_.W("design:type",Number)],G9.prototype,"tickSpacing",void 0);_.U([_.O(),_.W("design:type",Number)],G9.prototype,"windowSizeSec",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],G9.prototype,"rulerWidth",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],G9.prototype,"rulerShift",void 0);
_.U([_.O({value:!1}),_.W("design:type",Boolean)],G9.prototype,"canvasReady_",void 0);_.U([_.O({value:function(){return[]}}),
_.W("design:type",Array)],G9.prototype,"storyboardImages_",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],G9.prototype,"disabled",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],G9.prototype,"forceRender_",void 0);_.U([_.O({value:1}),_.W("design:type",Number)],G9.prototype,"devicePixelRatio_",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],G9.prototype,"windowSpeed",void 0);
_.U([_.N("visible","devicePixelRatio_","rulerWidth"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],G9.prototype,"setUpCanvas_",null);
_.U([_.N("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.W("design:type",Function),_.W("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.W("design:returntype")],G9.prototype,"drawRuler_",null);G9=_.U([_.wr({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],G9);
_.S(G9,"yt-clip-creation-scrubber-canvas",function(){if(jhd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-canvas--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<canvas id="ticks" class="style-scope yt-clip-creation-scrubber-canvas"></canvas>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);jhd=a}a=jhd;return a},
{mode:2});var lhd;var mhd;var nhd=function(){var a=_.P.apply(this,arguments)||this;a.start=0;a.end=30;a.visible=!1;a.draggingLeft_=!1;a.draggingRight_=!1;a.draggingRuler_=!1;a.draggingWindow_=!1;a.seekableStart=0;a.seekableEnd=0;a.rulerWidth_=0;a.rulerShift_=0;a.windowSlideSpeed=0;a.disabled=!1;a.initialized=!1;a.durationAccessibilityLabel="";a.activeLoopRange_=!1;a.rulerDragMouseStart_=0;a.rulerDragRulerStart_=0;a.rulerDragStartTime_=0;a.rulerDragEndTime_=0;a.dragMouseLastX_=0;a.scrollInterval_=null;a.scrubberVe_=null;a.boundHandlers_=
{};a.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return a};
_.z(nhd,_.P);_.f=nhd.prototype;
_.f.created=function(){var a=this;this.JSC$19759_playerEvents=new Map;this.JSC$19759_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$19759_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$19759_playerEvents.set("onStateChange",this.onStateChange_);var b={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(b).forEach(function(c){a.boundHandlers_[c]=b[c].bind(a)})};
_.f.attached=function(){this.activeLoopRange_=!1;_.E(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.E(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.ku(156731)};
_.f.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.E(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.E(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.f.onVisibilityChangedAction_=function(a){var b=this;a.visible&&!this.player_&&(a=_.au())&&a.getPlayerPromise().then(function(c){b.setPlayer(c)})};
_.f.setPlayer=function(a){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19759_playerEvents);a&&(this.set("player_",a),this.ytPlayerListenerBehavior.listenToPlayerEvents(a,this.JSC$19759_playerEvents))};
_.f.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.f.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.f.beginHandleDrag_=function(a){this.disabled||(a.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=a.clientX,a.target===_.E(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():a.target===_.E(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.f.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.f.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.f.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.f.beginRulerDrag_=function(a){this.disabled||(a.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=a.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.f.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.f.beginWindowScroll_=function(){var a=this;this.scrollInterval_=setInterval(function(){var b=a.windowSlideSpeed;if(b=_.Iad(a.start,a.boundedRulerStartLimit_())?b-.1:_.Iad(a.end,a.boundedRulerEndLimit_())?b+.1:0){var c=a.capRulerOffset_(a.rulerShift_+b);c==a.rulerShift_?b=0:(a.set("rulerShift_",c),_.io(a.hostElement,"set-fixed-length-range",{start:a.start+b,duration:a.end-a.start}))}a.set("windowSlideSpeed",b)},33)};
_.f.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.f.endDrag_=function(){this.logClick();var a=void 0;this.draggingRight_?a=this.end-1:this.draggingLeft_&&(a=this.start);this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1;this.endWindowScroll_();this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end,a);this.removeMouseEventHandlers_();this.rulerShift_+this.windowSizeSec_<this.end+this.pixelsToTime_(16)&&this.set("rulerShift_",this.end-this.windowSizeSec_+this.pixelsToTime_(16));
this.rulerShift_>this.start-this.pixelsToTime_(16)&&this.set("rulerShift_",this.start-this.pixelsToTime_(16))};
_.f.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.f.updateRulerSize_=function(){this.set("rulerWidth_",_.E(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.f.handleMouseDrag_=function(a){a.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(a):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(a):this.draggingWindow_&&this.handleWindowDrag_(a))};
_.f.handleRulerDrag_=function(a){a=this.pixelsToTime_(a.clientX-this.rulerDragMouseStart_);a=this.capRulerOffset_(this.rulerDragRulerStart_-a);this.set("rulerShift_",a);var b=this.rulerDragStartTime_-(this.rulerDragRulerStart_-a);_.io(this.hostElement,"set-fixed-length-range",{start:b,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-a)-b})};
_.f.handleWindowDrag_=function(a){var b=a.clientX-this.dragMouseLastX_;this.dragMouseLastX_=a.clientX;a=this.pixelsToTime_(b);_.io(this.hostElement,"set-fixed-length-range",{start:this.start+a,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.f.capRulerOffset_=function(a){var b=this.seekableStart-this.pixelsToTime_(16),c=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(b,a),c)};
_.f.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.f.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.f.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.f.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.f.handleWindowHandleDrag_=function(a){var b=a.clientX-this.dragMouseLastX_;this.dragMouseLastX_=a.clientX;a=this.pixelsToTime_(b);if(this.draggingLeft_){var c=this.start+a;var d=this.end}else this.draggingRight_&&(c=this.start,d=this.end+a);_.io(this.hostElement,"set-range",{start:c,end:d,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.f.onVideoProgress_=function(a){this.disabled||(a=this.timeToPixels_(a-this.rulerShift_,this.tickSpacing_),_.E(this.hostElement).querySelector("#playhead").style.transform="translateX("+a+")")};
_.f.onClipCreationDisable_=function(){this.endDrag_()};
_.f.timeToPixels_=function(a,b,c){a*=b;return c===void 0||c?a+"px":a};
_.f.pixelsToTime_=function(a){return a/this.tickSpacing_};
_.f.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.f.centerRuler_=function(a,b,c){this.set("rulerShift_",this.capRulerOffset_(a+(b-a)/2-c/2))};
_.f.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.f.updateLoopRange_=function(a,b,c,d,e,g,k){a&&(b&&d&&!c?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(a.pauseVideo(),a.seekTo(e,!1,void 0,void 0,50)):this.draggingRight_?(a.pauseVideo(),a.seekTo(g-.1,!1,void 0,void 0,50)):(k!==void 0?a.seekTo(k,!0,void 0,void 0,50):(b=a.getCurrentTime(),b<e||b>g?a.seekTo(e,!0,void 0,void 0,50):a.seekTo(b,!0,void 0,void 0,50)),a.playVideo()),a.setLoopRange({startTimeMs:e*1E3,endTimeMs:g*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(a.getCurrentTime())):
this.activeLoopRange_&&(a.setLoopRange(null),this.activeLoopRange_=!1))};
_.f.updateHandles_=function(){_.E(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.E(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.f.updateRuler_=function(){var a=this.end,b=this.start,c=this.draggableStartLimit_(),d=this.draggableEndLimit_();(b<c-.001||a>d+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.f.computeDurationLabel_=function(a,b){return a?a.replace("$clip_length",parseFloat(b).toFixed(1)):""};
_.f.computeDuration_=function(a,b){return this.isValidTime_(a)&&this.isValidTime_(b)&&a<b?b-a:0};
_.f.isValidTime_=function(a){return isNaN(parseFloat(a))||a<0?!1:this.player_?a>=this.seekableStart&&a<=this.seekableEnd:!0};
_.f.computeWindowSizeSec_=function(a,b,c){return Math.min((a||12E4)/1E3,c-b)};
_.f.computeTickSpacing_=function(a,b){return b?b/a:1};
_.f.onDragStateChanged_=function(){_.io(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.f.centerRangeOnTime_=function(a){var b=this.duration;a=Kcd(a-b/2,b,this.seekableStart,this.seekableEnd);_.io(this.hostElement,"set-fixed-length-range",{start:a.start,duration:a.end-a.start})};
_.f.nearlyLessThan_=function(a,b,c){return a+(c===void 0?1E-6:c)<b};
_.f.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var a=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(a,this.start)||this.nearlyLessThan_(this.end,a))&&this.centerRangeOnTime_(a)}};
_.f.onStateChange_=function(a){this.visible&&!this.disabled&&a==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.f.computeDragState_=function(a,b,c,d){return a?"left":b?"right":c?"ruler":d?"window":"none"};
_.f.logClick=function(){var a=_.En(),b=_.Dn();a&&b&&this.scrubberVe_&&(_.w("combine_ve_grafts")?_.qF(_.ls(),this.scrubberVe_,b):_.To(a,b,this.scrubberVe_),_.Xo(a,this.scrubberVe_))};
var H9=nhd;H9.prototype.onDragStateChanged_=H9.prototype.onDragStateChanged_;H9.prototype.updateRuler_=H9.prototype.updateRuler_;H9.prototype.updateHandles_=H9.prototype.updateHandles_;H9.prototype.onUpdateLoopRange=H9.prototype.onUpdateLoopRange;H9.prototype.onInitializedChanged_=H9.prototype.onInitializedChanged_;H9.prototype.onVisibleChanged_=H9.prototype.onVisibleChanged_;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],H9.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.bJ.YtPlayerListenerBehavior),_.W("design:type",Object)],H9.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],H9.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"start",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"end",void 0);_.U([_.O({computed:"computeDuration_(start, end)"}),_.W("design:type",Number)],H9.prototype,"duration",void 0);
_.U([_.O(),_.W("design:type",String)],H9.prototype,"lengthTemplate",void 0);_.U([_.O({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.W("design:type",String)],H9.prototype,"durationLabel",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"visible",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"player_",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"draggingLeft_",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"draggingRight_",void 0);
_.U([_.O(),_.W("design:type",Object)],H9.prototype,"draggingRuler_",void 0);_.U([_.O({value:!1}),_.W("design:type",Object)],H9.prototype,"draggingWindow_",void 0);_.U([_.O({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.W("design:type",Number)],H9.prototype,"tickSpacing_",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"seekableStart",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"seekableEnd",void 0);
_.U([_.O(),_.W("design:type",Number)],H9.prototype,"windowSizeMs",void 0);_.U([_.O({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.W("design:type",Number)],H9.prototype,"windowSizeSec_",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"rulerWidth_",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"rulerShift_",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"windowSlideSpeed",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],H9.prototype,"disabled",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"initialized",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"durationAccessibilityLabel",void 0);_.U([_.O({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.W("design:type",String)],H9.prototype,"dragState",void 0);
_.U([_.N("visible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],H9.prototype,"onVisibleChanged_",null);_.U([_.N("initialized"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],H9.prototype,"onInitializedChanged_",null);_.U([_.N("player_","visible","disabled","initialized","start","end"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],H9.prototype,"onUpdateLoopRange",null);
_.U([_.N("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],H9.prototype,"updateHandles_",null);_.U([_.N("start","end"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],H9.prototype,"updateRuler_",null);
_.U([_.N("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],H9.prototype,"onDragStateChanged_",null);H9=_.U([_.wr({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],H9);
_.S(H9,"yt-clip-creation-scrubber-view",function(){if(mhd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-view--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_view.yt.clip.creation.scrubber.view.css.js--\x3e<div id="trimmer" class="style-scope yt-clip-creation-scrubber-view">\n  <div id="ruler" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-view">\n    <yt-clip-creation-scrubber-canvas id="ticks" disabled="[[disabled]]" end="[[end]]" ruler-shift="[[rulerShift_]]" ruler-width="[[rulerWidth_]]" start="[[start]]" tick-spacing="[[tickSpacing_]]" visible="[[visible]]" window-size-sec="[[windowSizeSec_]]" window-speed="[[windowSlideSpeed]]" class="style-scope yt-clip-creation-scrubber-view">\n    </yt-clip-creation-scrubber-canvas>\n    <div id="handles" class="style-scope yt-clip-creation-scrubber-view">\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-left">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-right">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n    </div>\n    <div id="playhead" class="style-scope yt-clip-creation-scrubber-view"></div>\n  </div>\n</div>\n<div id="duration" aria-label="[[durationAccessibilityLabel]]" class="style-scope yt-clip-creation-scrubber-view">[[durationLabel]]</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;lhd===void 0&&(lhd=document.createElement("template"));var d=lhd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);mhd=a}a=mhd;return a},{mode:2});var ohd=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};a.startHighlightTimeout=0;a.endHighlightTimeout=0;return a};
_.z(ohd,_.P);_.f=ohd.prototype;_.f.attached=function(){var a=this;this.startInput.addEventListener("input",function(b){return a.handleStartInput_(b)});
this.endInput.addEventListener("input",function(b){return a.handleEndInput_(b)});
this.startInput.addEventListener("focusout",function(b){return a.handleStartBlur_(b)});
this.endInput.addEventListener("focusout",function(b){return a.handleEndBlur_(b)})};
_.f.setPlayer=function(a){this.set("player_",a)};
_.f.onSetFixedLengthRange_=function(a){var b=a.detail;a=b.start;var c=b.duration,d=b.startLimit;b=b.endLimit;d||(d=this.seekableStart_);b||(b=this.seekableEnd_);a=Kcd(a,c,d,b);this.start=a.start;this.end=a.end};
_.f.onSetRange_=function(a){var b=a.detail;a=b.start;var c=b.end,d=b.startLimit;b=b.endLimit;d||(d=this.seekableStart_);b||(b=this.seekableEnd_);if(a=Lcd(a,c,d,b,this.minLengthSec,this.maxLengthSec))this.start=a.start,this.end=a.end};
_.f.updateInputs_=function(){var a=this.end,b=this.start;this.startInput.focused||(this.startInput.value=J8(b,!0));this.endInput.focused||(this.endInput.value=J8(a,!0))};
_.f.handleStartInput_=function(a){a=Jcd(a.target.value);if(a===null)this.set("startValid",!1);else{var b=this.end,c=Lcd(a,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);c?(this.set("endWillUpdate",c.end!==b),this.set("startValid",c.start===a)):this.set("startValid",!1)}};
_.f.handleEndInput_=function(a){a=Jcd(a.target.value);if(a===null)this.set("endValid",!1);else{var b=this.start,c=Mcd(this.start,a,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);c?(this.set("startWillUpdate",c.start!==b),this.set("endValid",c.end===a)):this.set("endValid",!1)}};
_.f.handleStartBlur_=function(a){a=Jcd(a.target.value);a===null?this.startInput.value=J8(this.start,!0):this.forceUpdateInputs_(Lcd(a,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.f.handleEndBlur_=function(a){a=Jcd(a.target.value);a===null?this.endInput.value=J8(this.end,!0):this.forceUpdateInputs_(Mcd(this.start,a,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.f.forceUpdateInputs_=function(a){a&&(this.start=a.start,this.end=a.end);this.startInput.value=J8(this.start,!0);this.endInput.value=J8(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.f.initializeClipRange_=function(){var a=this.seekableEnd_,b=this.seekableStart_,c=this.visible_,d=this.player_;if(!d||!c||b===null||!a)this.set("initialized",!1);else if(!this.initialized){var e=d.getCurrentTime(),g=this.getDefaultLengthSec_();c=d.getVideoData();var k=d.getPlayerState()==1,m=c.isLive;g=Math.min(g,a-b);e=Math.max(0,e);a=m?Mcd(e-g,e,b,a,this.minLengthSec,this.maxLengthSec):k?Kcd(e-g/2,g,b,a):Kcd(e,g,b,a);this.start=a.start;this.end=a.end;this.set("initialized",!0);c.isLive&&d.seekTo(a.start);
this.startInput.value=J8(this.start,!0);this.endInput.value=J8(this.end,!0)}};
_.f.onStartChanged_=function(){var a=this;_.io(this.hostElement,"start-changed",{start:this.start});var b;isNaN((b=this.oldStart)!=null?b:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){a.set("highlightStart",!1);a.startHighlightTimeout=0;a.oldStart=a.start},3E3))};
_.f.onEndChanged_=function(){var a=this;_.io(this.hostElement,"end-changed",{end:this.end});var b;isNaN((b=this.oldEnd)!=null?b:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){a.set("highlightEnd",!1);a.endHighlightTimeout=0;a.oldEnd=a.end},3E3))};
_.f.onVisibilityChangedAction_=function(a){var b=this;this.set("visible_",a.visible);this.visible_&&!this.player_&&(a=_.au())&&a.getPlayerPromise().then(function(c){b.setPlayer(c)})};
_.f.computeMinLengthSec_=function(a){return a/1E3||5};
_.f.computeMaxLengthSec_=function(a){return a/1E3||60};
_.f.computeDefaultLengthSec_=function(a){return a/1E3};
_.f.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.f.computeSeekableStart_=function(a,b){return a&&b?a.getProgressState(1).seekableStart:0};
_.f.computeSeekableEnd_=function(a,b){return a&&b?a.getProgressState(1).seekableEnd:0};
_.f.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.f.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.f.onDragState_=function(a){this.set("highlightStart",a.detail.startChanging);this.set("highlightEnd",a.detail.endChanging)};
var I9=ohd;I9.prototype.onDragState_=I9.prototype.onDragState_;I9.prototype.onEndChanged_=I9.prototype.onEndChanged_;I9.prototype.onStartChanged_=I9.prototype.onStartChanged_;I9.prototype.initializeClipRange_=I9.prototype.initializeClipRange_;I9.prototype.updateInputs_=I9.prototype.updateInputs_;I9.prototype.onSetRange_=I9.prototype.onSetRange_;I9.prototype.onSetFixedLengthRange_=I9.prototype.onSetFixedLengthRange_;
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],I9.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],I9.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],I9.prototype,"data",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],I9.prototype,"start",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],I9.prototype,"startValid",void 0);
_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],I9.prototype,"startWillUpdate",void 0);_.U([_.O({value:30}),_.W("design:type",Number)],I9.prototype,"end",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],I9.prototype,"endValid",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],I9.prototype,"endWillUpdate",void 0);_.U([_.O({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.W("design:type",Number)],I9.prototype,"minLengthSec",void 0);
_.U([_.O({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.W("design:type",Number)],I9.prototype,"maxLengthSec",void 0);_.U([_.O({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.W("design:type",Number)],I9.prototype,"defaultLengthSec",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],I9.prototype,"visible_",void 0);_.U([_.O(),_.W("design:type",Object)],I9.prototype,"player_",void 0);
_.U([_.O({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.W("design:type",Number)],I9.prototype,"seekableStart_",void 0);_.U([_.O({computed:"computeSeekableEnd_(player_, visible_)"}),_.W("design:type",Number)],I9.prototype,"seekableEnd_",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],I9.prototype,"initialized",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],I9.prototype,"disabled",void 0);
_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],I9.prototype,"highlightStart",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],I9.prototype,"highlightEnd",void 0);_.U([_.ir("#start"),_.W("design:type",HTMLInputElement)],I9.prototype,"startInput",void 0);_.U([_.ir("#end"),_.W("design:type",HTMLInputElement)],I9.prototype,"endInput",void 0);
_.U([_.M("set-fixed-length-range"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],I9.prototype,"onSetFixedLengthRange_",null);_.U([_.M("set-range"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],I9.prototype,"onSetRange_",null);_.U([_.N("start","end"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],I9.prototype,"updateInputs_",null);
_.U([_.N("player_","visible_","seekableStart_","seekableEnd_"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],I9.prototype,"initializeClipRange_",null);_.U([_.N("start"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],I9.prototype,"onStartChanged_",null);_.U([_.N("end"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],I9.prototype,"onEndChanged_",null);
_.U([_.M("clips-drag-state"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],I9.prototype,"onDragState_",null);I9=_.U([_.wr({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],I9);
_.S(I9,"yt-clip-creation-scrubber-renderer",function(){if(ihd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_renderer.yt.clip.creation.scrubber.renderer.css.js--\x3e<div id="text-inputs" class="style-scope yt-clip-creation-scrubber-renderer">\n  <yt-icon id="warning-start" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="start" placeholder="[[data.startAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <span id="spacer" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-renderer">\u2013</span>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="end" placeholder="[[data.endAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <yt-icon id="warning-end" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n</div>\n<yt-clip-creation-scrubber-view disabled="[[disabled]]" duration-accessibility-label="[[data.durationAccessibility.accessibilityData.label]]" end="[[end]]" initialized="[[initialized]]" length-template="[[data.lengthTemplate]]" seekable-end="[[seekableEnd_]]" seekable-start="[[seekableStart_]]" start="[[start]]" visible="[[visible_]]" window-size-ms="[[data.windowSizeMs]]" class="style-scope yt-clip-creation-scrubber-renderer">\n</yt-clip-creation-scrubber-view>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;hhd===void 0&&(hhd=document.createElement("template"));var d=hhd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);ihd=a}a=ihd;return a},{mode:2});var phd=function(){var a=_.P.apply(this,arguments)||this;a.player_=null;a.JSC$19773_playerEvents=new Map;a.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return a};
_.z(phd,_.P);_.f=phd.prototype;_.f.configureRendererStamper=function(){return{submitButton_:{id:"share",mapping:{buttonRenderer:"yt-button-renderer"}},cancelButton_:{id:"cancel",mapping:{buttonRenderer:"yt-button-renderer"}},"data.titleInput":{id:"title-input",mapping:{clipCreationTextInputRenderer:"ytd-clip-creation-text-input-renderer"}},"data.scrubber":{id:"scrubber",mapping:{clipCreationScrubberRenderer:"yt-clip-creation-scrubber-renderer"}},"data.adStateOverlay":{id:"ad-state",mapping:{clipAdStateRenderer:"ytd-clip-ad-state-renderer"}}}};
_.f.created=function(){this.JSC$19773_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$19773_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$19773_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$19773_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.f.detached=function(){this.setPlayer(null)};
_.f.onVisibilityChangedAction_=function(a){var b=this,c;if((c=this.data)==null?0:c.externalVideoId){var d;this.videoId=(d=this.data)==null?void 0:d.externalVideoId}this.getPlayer().then(function(e){if(a.visible)b.returnTime=e.getCurrentTime(),b.isAtLiveHead=e.getProgressState().isAtLiveHead;else{var g=b.returnTime;b.isAtLiveHead&&(g=Number.POSITIVE_INFINITY);e.seekTo(g,void 0,void 0,void 0,51)}})};
_.f.getPlayer=function(){var a=this;if(!this.player_){var b=_.au();if(b)return b.getPlayerPromise().then(function(c){a.setPlayer(c);return c})}return Promise.resolve(this.player_)};
_.f.setPlayer=function(a){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19773_playerEvents);if(a){this.player_=a;var b;((b=this.data)==null?0:b.externalVideoId)||this.set("videoId",a.getVideoData().video_id||"");var c;(a==null?void 0:(c=a.getPresentingPlayerType)==null?void 0:c.call(a))===2&&(this.set("isAdPlaying",!0),_.lo(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(a,this.JSC$19773_playerEvents)}};
_.f.ready=function(){_.E(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.f.onTitleChanged_=function(a){this.set("titleValue",a.detail.title)};
_.f.onStartChanged_=function(a){this.set("start",a.detail.start)};
_.f.onEndChanged_=function(a){this.set("end",a.detail.end)};
_.f.onTitleValidChanged_=function(a){this.set("titleValid",a.detail.valid)};
_.f.onStartValidChanged_=function(a){this.set("startValid",a.detail.valid)};
_.f.onEndValidChanged_=function(a){this.set("endValid",a.detail.valid)};
_.f.onVideoDataChange_=function(){var a;if((a=this.data)==null||!a.externalVideoId){var b;this.set("videoId",((b=this.player_)==null?void 0:b.getVideoData().video_id)||"")}};
_.f.computeFormValid_=function(a,b,c,d){return!!(a&&b&&c&&d)};
_.f.computeCancelButton_=function(a,b,c){return a&&_.y(a,_.RE)?{buttonRenderer:Object.assign({},_.y(a,_.RE),{isDisabled:b||c})}:null};
_.f.computeSubmitButton_=function(a,b,c){return a&&_.y(a,_.RE)?{buttonRenderer:Object.assign({},_.y(a,_.RE),{command:void 0,isDisabled:!this.formValid||b||c})}:null};
_.f.computeSubmitCommand_=function(a){return a||null};
_.f.onSubmit_=function(a){var b=this;a.stopPropagation();a.preventDefault();this.submitCommand_&&(a={},a.comment_text=this.titleValue,a.clip_external_video_id=this.videoId,a.clip_offset_ms=parseInt(this.start*1E3,10),a.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.oo(this.hostElement,[this.submitCommand_,a]).then(function(){b.set("isLoading_",!1)},function(){b.set("isLoading_",!1)}))};
_.f.playerAdStartHandler_=function(){_.lo(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.f.playerAdEndHandler_=function(){_.lo(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.f.onVideoProgress_=function(){var a=this;this.getPlayer().then(function(b){var c,d=(b==null?void 0:(c=b.getPresentingPlayerType)==null?void 0:c.call(b))===2;a.isAdPlaying!==d&&(d?a.playerAdStartHandler_():a.playerAdEndHandler_())})};
var J9=phd;J9.prototype.onEndValidChanged_=J9.prototype.onEndValidChanged_;J9.prototype.onStartValidChanged_=J9.prototype.onStartValidChanged_;J9.prototype.onTitleValidChanged_=J9.prototype.onTitleValidChanged_;J9.prototype.onEndChanged_=J9.prototype.onEndChanged_;J9.prototype.onStartChanged_=J9.prototype.onStartChanged_;J9.prototype.onTitleChanged_=J9.prototype.onTitleChanged_;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],J9.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.bJ.YtPlayerListenerBehavior),_.W("design:type",Object)],J9.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],J9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],J9.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],J9.prototype,"data",void 0);_.U([_.O({value:""}),_.W("design:type",String)],J9.prototype,"titleValue",void 0);
_.U([_.O({value:!1}),_.W("design:type",Boolean)],J9.prototype,"titleValid",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],J9.prototype,"start",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],J9.prototype,"startValid",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],J9.prototype,"end",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],J9.prototype,"endValid",void 0);_.U([_.O({value:""}),_.W("design:type",String)],J9.prototype,"videoId",void 0);
_.U([_.O({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.W("design:type",Boolean)],J9.prototype,"formValid",void 0);_.U([_.O({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.W("design:type",Object)],J9.prototype,"submitButton_",void 0);_.U([_.O({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.W("design:type",Object)],J9.prototype,"submitCommand_",void 0);
_.U([_.O({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.W("design:type",Object)],J9.prototype,"cancelButton_",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],J9.prototype,"isLoading_",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],J9.prototype,"isAdPlaying",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],J9.prototype,"returnTime",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],J9.prototype,"isAtLiveHead",void 0);
_.U([_.M("title-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],J9.prototype,"onTitleChanged_",null);_.U([_.M("start-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],J9.prototype,"onStartChanged_",null);_.U([_.M("end-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],J9.prototype,"onEndChanged_",null);
_.U([_.M("title-valid-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],J9.prototype,"onTitleValidChanged_",null);_.U([_.M("start-valid-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],J9.prototype,"onStartValidChanged_",null);_.U([_.M("end-valid-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],J9.prototype,"onEndValidChanged_",null);
J9=_.U([_.wr({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],J9);
_.S(J9,"yt-clip-creation-renderer",function(){if(ghd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_renderer.yt.clip.creation.renderer.css.js--\x3e<div id="container" class="style-scope yt-clip-creation-renderer">\n  <div id="title" class="style-scope yt-clip-creation-renderer">\n    <div class="left-container style-scope yt-clip-creation-renderer">\n      <yt-img-shadow id="user-avatar" height="32" thumbnail="[[data.userAvatar]]" width="32" class="style-scope yt-clip-creation-renderer">\n      </yt-img-shadow>\n      <div id="display-name" class="style-scope yt-clip-creation-renderer">[[getSimpleString(data.displayName)]]</div>\n    </div>\n    <div id="publicity-label" class="style-scope yt-clip-creation-renderer">\n      <yt-icon id="publicity-icon" icon="yt-icons:privacy_public" class="style-scope yt-clip-creation-renderer"></yt-icon>\n      [[data.publicityLabel]]\n    </div>\n  </div>\n  <div id="title-input" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="scrubber" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="footer" class="style-scope yt-clip-creation-renderer">\n  <tp-yt-paper-spinner-lite active="[[isLoading_]]" hidden="[[!isLoading_]]" class="style-scope yt-clip-creation-renderer"></tp-yt-paper-spinner-lite>\n  <div id="cancel" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="share" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="ad-state" class="style-scope yt-clip-creation-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;fhd===void 0&&(fhd=document.createElement("template"));var d=fhd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);ghd=a}a=ghd;return a},{mode:2});var qhd=function(){return _.P.apply(this,arguments)||this};
_.z(qhd,_.P);qhd.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{clipAttributionRenderer:"ytd-clip-attribution-renderer",clipCreationRenderer:"yt-clip-creation-renderer"}},"data.footer":{id:"footer",mapping:{clipSectionFooterRenderer:"ytd-clip-section-footer-renderer"}}}};
qhd.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(a){return a.hasOwnProperty("clipCreationRenderer")})&&_.lo(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
var K9=qhd;K9.prototype.onPanelContentVisibleChanged=K9.prototype.onPanelContentVisibleChanged;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],K9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],K9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.RG.YtVisibilityBehavior),_.W("design:type",Object)],K9.prototype,"ytVisibilityBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],K9.prototype,"ytdReduxBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],K9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],K9.prototype,"panelContentVisible",void 0);_.U([_.N("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K9.prototype,"onPanelContentVisibleChanged",null);K9=_.U([_.Q({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],K9);
_.S(K9,"ytd-clip-section-renderer",function(){if($gd!==void 0)return $gd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-clip-section-renderer"></div>\n<div id="footer" class="style-scope ytd-clip-section-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return $gd=a},{mode:1});var rhd;var shd=function(){return _.P.apply(this,arguments)||this};
_.z(shd,_.P);_.f=shd.prototype;
_.f.onKeyDown=function(a){if(this.snippetElements.length!==0&&(a=a.keyCode,a===38||a===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);a===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.Vw(this.highlightedIndex,-1,this.snippetElements.length);a=this.snippetElements.length;var b=this.highlightedIndex%a;this.highlightedIndex=b*a<0?b+a:b;a=this.snippetElements[this.highlightedIndex];this.highlightSnippet(a);this.ensureVisible(a)}};
_.f.onKeyUp=function(a){var b=this;zdd(a)&&(a.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.zk.cancelJob(this.inputTimerId),this.inputTimerId=_.zk.addLowPriorityJob(function(){b.typedValue&&(b.fetchSnippets(b.typedValue),b.logInputGesture(b.data))},1E3))};
_.f.onClick=function(a){(a=_.rdb(a.target,null,"snippet-item"))&&this.selectSnippet(a)};
_.f.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.f.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.f.ready=function(){var a=this;this.inputElement.addEventListener("focus",function(){a.snippetsWrapper.style.removeProperty("display")})};
_.f.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.f.getSourceTimelines=function(){if(!this.data)return[];var a=[];if(this.data.searchInVideoSources)for(var b=_.h(this.data.searchInVideoSources),c=b.next();!c.done;c=b.next())c=c.value,c==="SEARCH_IN_VIDEO_SOURCE_ASR"?a.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):c==="SEARCH_IN_VIDEO_SOURCE_OCR"&&a.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return a};
_.f.fetchSnippets=function(a){var b=_.lo(this.hostElement,"yt-get-current-video-id-action")[0],c=this.getSourceTimelines();a={getSearchInVideoCommand:{externalVideoId:b,query:a!=null?a:"",sourceTimelines:c},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.v().resolve(_.Yi).resolveCommand(a,{form:{element:this.hostElement}})};
_.f.filterSnippets=function(a,b){var c=this;if(b){this.filteredSnippets=(0,_.Cf.unsafeClone)(a);var d=RegExp(_.Aza(b),"i");this.filteredSnippets=this.filteredSnippets.filter(function(k){return d.test(c.ytRendererBehavior.getSimpleString(k.snippet))});
a=_.h(this.filteredSnippets);for(var e=a.next();!e.done;e=a.next()){e=e.value;var g=this.ytRendererBehavior.getSimpleString(e.snippet);e.snippet={runs:[{text:g.substring(0,g.toLowerCase().indexOf(b))},{text:g.substring(g.toLowerCase().indexOf(b),g.toLowerCase().indexOf(b)+b.length),bold:!0},{text:g.substring(g.toLowerCase().indexOf(b)+b.length,g.length)}]}}}else this.filteredSnippets=a};
_.f.onUpdateSearchInVideoResults=function(a){if(!(this.snippets.length>0)){var b,c,d;if((d=(b=_.y(a,Mdd))==null?void 0:(c=b.results)==null?void 0:c.length)!=null&&d){var e;this.filteredSnippets=this.snippets=((e=_.y(a,Mdd))==null?void 0:e.results).map(function(g){var k,m,n;return{startMs:g==null?void 0:(k=g.searchInVideoResultRenderer)==null?void 0:k.startMs,startTimeText:g==null?void 0:(m=g.searchInVideoResultRenderer)==null?void 0:m.startTimeText,snippet:g==null?void 0:(n=g.searchInVideoResultRenderer)==
null?void 0:n.snippet}})}}};
_.f.updateSnippetElements=function(){this.snippetElements=Array.from(this.snippetsWrapper.getElementsByClassName("snippet-item"));this.highlightedIndex>=0&&this.highlightedIndex<this.snippetElements.length&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);this.highlightedIndex=-1;this.snippetsWrapper.scrollTop=0};
_.f.highlightSnippet=function(a){a.classList.add("highlighted")};
_.f.removeSnippetHighlight=function(a){a.classList.remove("highlighted")};
_.f.selectSnippet=function(a){this.typedValue=String(a.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(a);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.f.ensureVisible=function(a){var b=this.snippetsWrapper.scrollTop,c=b+this.snippetsWrapper.clientHeight,d=a.offsetTop-this.snippetsWrapper.offsetTop;a=d+a.clientHeight;d<b?this.snippetsWrapper.scrollTop-=b-d:a>c&&(this.snippetsWrapper.scrollTop+=a-c)};
_.f.seekPlayer=function(a){var b,c;return _.l(function(d){if(d.nextAddress==1){if(!a)return d.jumpTo(0);b=Number(a.dataset.startOffset);return _.p(d,_.bu().getPlayerPromise(),3)}c=d.yieldResult;c.seekTo(b/1E3,!0);c.wakeUpControls();_.ue(d)})};
_.f.logInputGesture=function(a){var b=_.En();b&&(a==null?0:a.trackingParams)&&_.Yo(b,_.ps(a.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.f.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.WH("typed-value-changed",this.typedValue))};
_.f.updateTypedValueFromBinding=function(a){this.typedValue=a.currentTarget.value};
var L9=shd;L9.prototype.typedValueChangedForBinding=L9.prototype.typedValueChangedForBinding;L9.prototype.dataChanged=L9.prototype.dataChanged;L9.prototype.panelContentVisibleChanged=L9.prototype.panelContentVisibleChanged;L9.prototype.onClick=L9.prototype.onClick;L9.prototype.onKeyUp=L9.prototype.onKeyUp;L9.prototype.onKeyDown=L9.prototype.onKeyDown;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],L9.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],L9.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],L9.prototype,"data",void 0);_.U([_.O({value:[]}),_.W("design:type",Array)],L9.prototype,"snippets",void 0);_.U([_.O({value:[]}),_.W("design:type",Array)],L9.prototype,"filteredSnippets",void 0);_.U([_.O({value:[]}),_.W("design:type",Array)],L9.prototype,"snippetElements",void 0);
_.U([_.ir("#siv-input"),_.W("design:type",HTMLElement)],L9.prototype,"inputElement",void 0);_.U([_.ir("#siv-snippets-wrapper"),_.W("design:type",HTMLElement)],L9.prototype,"snippetsWrapper",void 0);_.U([_.O(),_.W("design:type",String)],L9.prototype,"typedValue",void 0);_.U([_.O({value:-1}),_.W("design:type",Number)],L9.prototype,"highlightedIndex",void 0);_.U([_.M("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[_.Dz]),_.W("design:returntype")],L9.prototype,"onKeyDown",null);
_.U([_.M("keyup"),_.W("design:type",Function),_.W("design:paramtypes",[_.Dz]),_.W("design:returntype")],L9.prototype,"onKeyUp",null);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],L9.prototype,"onClick",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],L9.prototype,"panelContentVisible",void 0);
_.U([_.N("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],L9.prototype,"panelContentVisibleChanged",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],L9.prototype,"dataChanged",null);_.U([_.N("typedValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],L9.prototype,"typedValueChangedForBinding",null);
L9=_.U([_.Q({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],L9);
_.S(L9,"ytd-search-in-video-renderer",function(){if(rhd!==void 0)return rhd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-in-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-search-in-video-renderer" aria-owns="siv-snippets-wrapper" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-search-in-video-renderer" slot="prefix" icon="yt-icons:find_in_page"></yt-icon>\n  <input id="siv-input" slot="input" value="[[typedValue]]" type="text" placeholder="[[getSimpleString(data.placeholderText)]]" aria-autocomplete="list" aria-controls="siv-snippets-wrapper" aria-haspopup="listbox" role="combobox" on-input="updateTypedValueFromBinding" class="style-scope ytd-search-in-video-renderer">\n</tp-yt-paper-input-container>\n<div id="siv-snippets-wrapper" class="snippets-wrapper style-scope ytd-search-in-video-renderer" role="listbox">\n  <div class="no-results-item style-scope ytd-search-in-video-renderer" hidden="[[filteredSnippets.length]]">\n    [[getSimpleString(data.noResultsMessage)]]\n  </div>\n  <template is="dom-repeat" items="[[filteredSnippets]]" hidden="[[!filteredSnippets.length]]" on-dom-change="updateSnippetElements" class="style-scope ytd-search-in-video-renderer">\n    \n    <div class="snippet-item style-scope ytd-search-in-video-renderer" role="option" data-start-offset$="[[item.startMs]]" data-text$="[[getSimpleString(item.snippet)]]">\n      <yt-formatted-string class="start-time-text style-scope ytd-search-in-video-renderer" text="[[item.startTimeText]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="snippet-text style-scope ytd-search-in-video-renderer" text="[[item.snippet]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return rhd=a},{mode:1});var thd;var M9=function(){return _.P.apply(this,arguments)||this};
_.z(M9,_.P);M9.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
M9.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.viewButton":{id:"view-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
M9.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var a,b,c,d,e=(b=_.y((a=this.data)==null?void 0:a.onClickCommand,_.Vyb))==null?void 0:(c=b.item)==null?void 0:(d=c.notificationTextRenderer)==null?void 0:d.successResponseText;e&&_.i0a(this.hostElement,e)}};
_.Um.Object.defineProperties(M9.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;return this.isProductPlaceholder&&((a=this.data)==null?void 0:(b=a.hiddenProductOptions)==null?void 0:b.showDropCountdown)&&!!((c=this.data)==null?0:(d=c.hiddenProductOptions)==null?0:d.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var a;return!this.isProductPlaceholder&&!((a=this.data)==null?0:a.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null?0:a.priceReplacementText)&&!((b=this.data)==null||!b.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
var N9=M9;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],N9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],N9.prototype,"componentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],N9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],N9.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("isProductPlaceholder"),_.W("design:type",Object),_.W("design:paramtypes",[])],N9.prototype,"useCenterLayoutContainer",null);_.U([_.O({computed:"computeButtonOverride(data)"}),_.W("design:type",Object)],N9.prototype,"buttonOverride",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],N9.prototype,"isProductPlaceholder",null);
_.U([_.K("isProductPlaceholder"),_.W("design:type",Object),_.W("design:paramtypes",[])],N9.prototype,"showDropCountdown",null);_.U([_.K("isProductPlaceholder","data"),_.W("design:type",Object),_.W("design:paramtypes",[])],N9.prototype,"showBrandName",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],N9.prototype,"showPriceReplacementText",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],N9.prototype,"showPrice",null);
_.U([_.K("isProductPlaceholder"),_.W("design:type",Object),_.W("design:paramtypes",[])],N9.prototype,"showMetadata",null);N9=_.U([_.Q({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],N9);
_.S(N9,"ytd-product-list-item-renderer",function(){if(thd!==void 0)return thd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div data-offer-version-id$="[[data.debugOfferVersionId]]" id="product-list-item" class="style-scope ytd-product-list-item-renderer"><a id="container" class="yt-simple-endpoint style-scope ytd-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" rel="[[computeNofollow_(data.onClickCommand)]]" data="[[data.onClickCommand]]" on-click="showSnackbarIfPlaceholder"><div id="product-thumbnail" class="style-scope ytd-product-list-item-renderer"><yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-product-list-item-renderer"></yt-img-shadow></div><div id="product-info-and-view" class="style-scope ytd-product-list-item-renderer"><div id="product-info" class="style-scope ytd-product-list-item-renderer"><h4 id="product-title" class="style-scope ytd-product-list-item-renderer">[[getSimpleString(data.title)]]</h4><template is="dom-if" if="[[showDropCountdown]]" class="style-scope ytd-product-list-item-renderer"><yt-countdown target-timestamp="[[data.hiddenProductOptions.dropTimestamp]]" class="style-scope ytd-product-list-item-renderer"></yt-countdown></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="merchant-name" class="style-scope ytd-product-list-item-renderer">[[data.merchantName]]</div></template><template is="dom-if" if="[[showBrandName]]" class="style-scope ytd-product-list-item-renderer"><div id="brand-name" class="style-scope ytd-product-list-item-renderer">[[data.brandName]]</div></template><template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price-replacement" class="style-scope ytd-product-list-item-renderer">[[data.priceReplacementText]]</div></template><template is="dom-if" restamp="" if="[[showPrice]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price" class="style-scope ytd-product-list-item-renderer">[[data.price]]</div></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="affiliate-disclaimer-text" class="style-scope ytd-product-list-item-renderer">\n            [[data.affiliateDisclaimerText]]\n          </div></template></div><div id="view-button" hidden="[[!showMetadata]]" class="style-scope ytd-product-list-item-renderer"></div></div></a><div id="action-button" class="style-scope ytd-product-list-item-renderer"></div></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return thd=a},{mode:1});var uhd;var vhd=function(){return _.P.apply(this,arguments)||this};
_.z(vhd,_.P);vhd.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
vhd.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
vhd.prototype.panelContentVisibleChanged=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return a.playerApi?c.jumpTo(2):_.p(c,_.bu().getPlayerPromise(),3);c.nextAddress!=2&&(a.playerApi=c.yieldResult);(b=a.playerApi)==null||b.productsInVideoVisibilityUpdated(!!a.panelContentVisible);_.ue(c)})};
var O9=vhd;O9.prototype.panelContentVisibleChanged=O9.prototype.panelContentVisibleChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],O9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],O9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],O9.prototype,"panelContentVisible",void 0);_.U([_.O(),_.W("design:type",Object)],O9.prototype,"data",void 0);
_.U([_.N("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],O9.prototype,"panelContentVisibleChanged",null);O9=_.U([_.Q({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],O9);
_.S(O9,"ytd-product-list-renderer",function(){if(uhd!==void 0)return uhd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-product-list-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return uhd=a},{mode:1});var whd;var xhd=function(){var a=_.P.apply(this,arguments)||this;a.hideTimestamps=!!_.vG("hide-transcript-timestamps");a.currentCueIndex=-1;a.flatCues=[];a.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};a.TEST_ONLY={getFlatCues:function(){return a.flatCues}};
return a};
_.z(xhd,_.P);_.f=xhd.prototype;_.f.hideTimestampsChanged=function(){_.uG("hide-transcript-timestamps",this.hideTimestamps)};
_.f.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.f.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.f.dataChanged=function(){var a;if((a=this.data)!=null&&a.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;a=_.h(this.data.cueGroups);for(var b=a.next();!b.done;b=a.next()){b=_.h(_.y(b.value,Ndd).cues);for(var c=b.next();!c.done;c=b.next())this.flatCues.push(Number(_.y(c.value,Odd).startOffsetMs))}}};
_.f.onYtPlayerTimeChanged=function(a){if(!(a<0)){for(var b=this.currentCueIndex,c=b;;){var d=c>=0?this.flatCues[c]/1E3:-1;if(a+.5<d)--c;else if(d=c+1<this.flatCues.length?this.flatCues[c+1]/1E3:Infinity,a+.5>d)c+=1;else break}c!==b&&(b>=0&&((a=this.getCueElement(b))&&a.classList.remove("active"),(b=this.getCueGroupElement(b))&&b.classList.remove("active")),(b=this.getCueElement(c))&&b.classList.add("active"),(b=this.getCueGroupElement(c))&&b.classList.add("active"),this.currentCueIndex=c,this.isHovered||
this.scrollElementToTop(c))}};
_.f.scrollElementToTop=function(a){a=this.getCueElement(a>=3?a-3:0);this.hostElement.scrollTop=Math.min(a.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.f.getCueElement=function(a){return _.E(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[a]+'"]')};
_.f.getCueGroupElement=function(a){return(a=this.getCueElement(a))&&a.parentElement?a.parentElement.parentElement:null};
_.f.onTap=function(a){var b=_.Sq(a);a.target.classList.contains("cue")&&this.seekCueElement(b)};
_.f.onKeyPress=function(a){a.keyCode==13&&(a=_.rdb(a.target,null,"cue"))&&this.seekCueElement(a)};
_.f.seekCueElement=function(a){a=Number(a.getAttribute("start-offset"));_.lo(this.hostElement,"yt-transcript-player-seek",[a/1E3])};
_.f.onMouseEnter=function(){this.isHovered=!0};
_.f.onMouseLeave=function(){this.isHovered=!1};
var P9=xhd;P9.prototype.onMouseLeave=P9.prototype.onMouseLeave;P9.prototype.onMouseEnter=P9.prototype.onMouseEnter;P9.prototype.onKeyPress=P9.prototype.onKeyPress;P9.prototype.onTap=P9.prototype.onTap;P9.prototype.dataChanged=P9.prototype.dataChanged;P9.prototype.hideTimestampsChanged=P9.prototype.hideTimestampsChanged;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],P9.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],P9.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],P9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],P9.prototype,"hideTimestamps",void 0);_.U([_.O(),_.W("design:type",Boolean)],P9.prototype,"isHovered",void 0);_.U([_.N("hideTimestamps"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P9.prototype,"hideTimestampsChanged",null);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P9.prototype,"dataChanged",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],P9.prototype,"onTap",null);_.U([_.M("keypress"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],P9.prototype,"onKeyPress",null);
_.U([_.M("mouseenter"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P9.prototype,"onMouseEnter",null);_.U([_.M("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P9.prototype,"onMouseLeave",null);P9=_.U([_.Q({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],P9);
_.S(P9,"ytd-transcript-body-renderer",function(){if(whd!==void 0)return whd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template as="cueGroup" is="dom-repeat" items="[[data.cueGroups]]" class="style-scope ytd-transcript-body-renderer">\n  <div class="cue-group style-scope ytd-transcript-body-renderer">\n    <div class="cue-group-start-offset style-scope ytd-transcript-body-renderer">\n      [[getSimpleString(cueGroup.transcriptCueGroupRenderer.formattedStartOffset)]]\n    </div>\n    <div class="cues style-scope ytd-transcript-body-renderer">\n      <template is="dom-repeat" items="[[cueGroup.transcriptCueGroupRenderer.cues]]" class="style-scope ytd-transcript-body-renderer">\n        <div class="cue style-scope ytd-transcript-body-renderer" role="button" start-offset$="[[item.transcriptCueRenderer.startOffsetMs]]" tabindex="0">\n          [[getSimpleString(item.transcriptCueRenderer.cue)]]\n        </div>\n      </template>\n    </div>\n  </div>\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return whd=a},{mode:1});var yhd;var zhd=function(){var a=_.P.apply(this,arguments)||this;a.darkerPanels=_.w("web_watch_darker_panels");return a};
_.z(zhd,_.P);zhd.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
var Q9=zhd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],Q9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Q9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Q9.prototype,"darkerPanels",void 0);Q9=_.U([_.Q({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],Q9);
_.S(Q9,"ytd-transcript-footer-renderer",function(){if(yhd!==void 0)return yhd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="menu" class="style-scope ytd-transcript-footer-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return yhd=a},{mode:1});var Ahd;var Bhd;var Chd=function(){var a=_.P.apply(this,arguments)||this;a.systemIcons=_.w("kevlar_system_icons");a.showClearButton=!1;return a};
_.z(Chd,_.P);_.f=Chd.prototype;_.f.handleInput=function(a){var b=this;a.target.value.length?_.Fr(this,"ytdTranscriptSearchBoxSearch",function(){b.emitSearchEvent(a)},500):(_.lNa(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=a.target.value.length>0};
_.f.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.f.handleClick=function(){var a,b=(a=this.data)==null?void 0:a.trackingParams;b&&_.tF(_.ls(),b)};
_.f.handleClear=function(){_.lNa(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var a,b,c=(b=_.y((a=this.data)==null?void 0:a.clearButton,_.RE))==null?void 0:b.trackingParams;c&&_.tF(_.ls(),c);this.clear()};
_.f.emitSearchEvent=function(a){_.io(this.hostElement,"yt-transcript-search-box-search",{query:a.target.value});var b,c;(a=(c=_.y((b=this.data)==null?void 0:b.searchButton,_.RE))==null?void 0:c.trackingParams)&&_.tF(_.ls(),a)};
_.f.emitClearEvent=function(){_.io(this.hostElement,"yt-transcript-search-box-clear")};
_.Um.Object.defineProperties(Chd.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.E(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
var R9=Chd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],R9.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],R9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],R9.prototype,"systemIcons",void 0);R9=_.U([_.Q({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],R9);
_.S(R9,"ytd-transcript-search-box-renderer",function(){if(Bhd!==void 0)return Bhd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-transcript-search-box-renderer" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-transcript-search-box-renderer" slot="prefix" icon="yt-icons:search"></yt-icon>\n  <input id="transcript-search-box-input" slot="input" type="text" placeholder="[[getSimpleString(data.formattedPlaceholder)]]" aria-autocomplete="list" aria-haspopup="listbox" maxlength="1000" role="combobox" on-click="handleClick" on-input="handleInput" class="style-scope ytd-transcript-search-box-renderer">\n  <tp-yt-paper-icon-button class="clear-button style-scope ytd-transcript-search-box-renderer" slot="suffix" hidden="[[!showClearButton]]" icon="yt-sys-icons:close" on-click="handleClear"></tp-yt-paper-icon-button>\n</tp-yt-paper-input-container>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Bhd=a},{mode:1});var Dhd;var Ehd;var S9=function(){return _.P.apply(this,arguments)||this};
_.z(S9,_.P);S9.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var a,b;this.sectionHeaderAriaLabel=(a=this.data)==null?void 0:(b=a.accessibility)==null?void 0:b.accessibilityData.label}};
S9.prototype.fireSelectedEvent=function(a){_.io(this.hostElement,"ytd-transcript-section-header",{startMs:a})};
S9.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
S9.prototype.handleKeyPress=function(a){this.data&&a.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.Um.Object.defineProperties(S9.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.data)==null?void 0:a.enableTappableTranscriptHeader)!=null?b:!1}}});
var T9=S9;T9.prototype.dataChanged=T9.prototype.dataChanged;_.U([_.O(),_.W("design:type",Object)],T9.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],T9.prototype,"sectionHeaderAriaLabel",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],T9.prototype,"enableTappableTranscriptHeader",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T9.prototype,"dataChanged",null);
T9=_.U([_.Q({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],T9);
_.S(T9,"ytd-transcript-section-header-renderer",function(){if(Ehd!==void 0)return Ehd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" class="transcript-section-header style-scope ytd-transcript-section-header-renderer" aria-label$="[[sectionHeaderAriaLabel]]" tabindex="0" role="button" on-click="handleClick" on-keypress="handleKeyPress">\n    <yt-section-header-view-model data="[[data.sectionHeader.sectionHeaderViewModel]]" disable-vertical-padding="true" force-small-layout="true" class="style-scope ytd-transcript-section-header-renderer">\n  </yt-section-header-view-model></div>\n</template>\n<template is="dom-if" restamp="" if="[[!enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" aria-label$="[[sectionHeaderAriaLabel]]" class="style-scope ytd-transcript-section-header-renderer">\n    <yt-formatted-string id="title" aria-hidden="true" tabindex="-1" text="[[data.snippet]]" class="style-scope ytd-transcript-section-header-renderer">\n    </yt-formatted-string>\n  </div>\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Ehd=a},{mode:1});var Fhd;var Ghd;var Hhd=function(){var a=_.P.apply(this,arguments)||this;a.isEditMode=!1;a.touchCaptionsEnabled=!1;a.deleteCaptionCorrectionPopupCommand=null;a.voteCaptionCorrectionPopupCommand=null;a.roundedContainer=!0;a.mouseOver=!1;a.textChanged=!1;a.messages={suggest_correction:_.vo("suggest_correction",void 0,"Edit caption"),suggested_caption:_.vo("suggested_caption",void 0,"Suggested caption"),submit_correction:_.vo("submit_correction",void 0,"Submit for review"),cancel_correction:_.vo("cancel_correction",
void 0,"Cancel"),replay_segment:_.vo("replay_segment",void 0,"Re-play segment"),delete_correction:_.vo("delete_correction",void 0,"Delete correction")};a.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return a};
_.z(Hhd,_.P);_.f=Hhd.prototype;_.f.dataChanged=function(){this.isEditMode=!1;this.editedText=this.data?this.data.userCorrection:void 0;this.data&&this.data.deleteCaptionCorrectionPopupCommand&&(this.deleteCaptionCorrectionPopupCommand=this.data.deleteCaptionCorrectionPopupCommand);this.data&&this.data.voteCaptionCorrectionPopupCommand&&(this.voteCaptionCorrectionPopupCommand=this.data.voteCaptionCorrectionPopupCommand);this.data&&this.data.accessibility&&(this.segmentAriaLabel=this.data.accessibility.accessibilityData.label)};
_.f.handleDelete=function(a){if(this.deleteCaptionCorrectionPopupCommand){var b=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);b&&this.ytdOpenPopupBehavior.openPopup(b);a.stopPropagation()}};
_.f.handleSubmit=function(a){if(this.data&&this.data.submitCaptionCorrectionCommand&&(a.stopPropagation(),this.textChanged)){var b;a=(b=_.y(this.data.submitCaptionCorrectionCommand,_.HFb))==null?void 0:b.params;b=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:a,correctionText:String(this.ironTextAreaElement.value),originalText:_.Wp(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(b);this.isEditMode=!1}};
_.f.handleUpdateSegmentText=function(a){(a=_.y(a,fed))&&a.targetId&&this.data&&a.targetId===this.data.targetId&&(a.userCorrection&&(this.editedText=a.userCorrection),a.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.Wp(this.data.snippet)),a.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=a.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=a.voteCaptionCorrectionPopupCommand?
a.voteCaptionCorrectionPopupCommand:null,a.accessibility&&(this.segmentAriaLabel=a.accessibility.accessibilityData.label))};
_.f.handleCancel=function(a){this.isEditMode=!1;a.stopPropagation();this.logClientVe(159409)};
_.f.handleEditSegmentCommand=function(a){(a=_.y(a,eed))&&a.targetId&&this.data&&a.targetId===this.data.targetId&&this.handleEdit()};
_.f.handleEditButtonClick=function(a){this.data&&(this.handleEdit(),a.stopPropagation())};
_.f.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var a;(a=this.ironTextAreaElement.textarea)==null||a.focus();this.logClientVe(159407)}};
_.f.handleMouseEnter=function(){this.mouseOver=!0};
_.f.handleMouseLeave=function(){this.mouseOver=!1};
_.f.handleReplay=function(a){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),a.stopPropagation(),this.logClientVe(159408))};
_.f.handleClick=function(){this.data&&(this.voteCaptionCorrectionPopupCommand?(this.ytComponentBehavior.resolveCommand(this.voteCaptionCorrectionPopupCommand),this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs))):(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()))};
_.f.handleKeypress=function(a){this.data&&(this.isEditMode?a.stopPropagation():this.isEnterPress(a)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(a)&&this.logClientVe(138758))};
_.f.handleTextboxClick=function(a){a.stopPropagation()};
_.f.handleTextboxKeydown=function(a){this.isControlEnterPress(a)?this.handleSubmit(a):a.key==="Escape"&&this.handleCancel(a)};
_.f.handleTextboxKeyup=function(){this.textChanged=_.Wp(this.latestText)!==String(this.ironTextAreaElement.value)};
_.f.fireSelectedEvent=function(a){_.io(this.hostElement,"yt-transcript-segment-selected",{startMs:a})};
_.f.fireReplayEvent=function(a,b){_.io(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(a-100,0),endMs:b})};
_.f.fireEditEvent=function(a,b){_.io(this.hostElement,"yt-transcript-segment-edit",{startMs:a,endMs:b})};
_.f.isEnterPress=function(a){return a.key==="Enter"||a.code==="Enter"||a.code==="NumpadEnter"||a.keyCode===13?!0:!1};
_.f.isControlEnterPress=function(a){var b=a.key==="Enter"||a.code==="Enter"||a.code==="NumpadEnter"||a.keyCode===13;return(a.ctrlKey||a.metaKey)&&b};
_.f.isCopyPress=function(a){var b=a.ctrlKey;return a.key==="c"&&b};
_.f.logClick=function(){var a,b=(a=this.data)==null?void 0:a.trackingParams;b&&_.tF(_.ls(),b)};
_.f.logClientVe=function(a){_.sF(_.ls(),_.ku(a))};
_.Um.Object.defineProperties(Hhd.prototype,{latestText:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.snippet?this.editedText&&this.touchCaptionsEnabled?this.editedText:this.data.snippet:{}}},
enableEditButton:{configurable:!0,enumerable:!0,get:function(){return this.touchCaptionsEnabled&&!this.isEditMode}},
enableUndoButton:{configurable:!0,enumerable:!0,get:function(){return this.enableEditButton&&this.deleteCaptionCorrectionPopupCommand!=null}}});
var U9=Hhd;U9.prototype.handleMouseLeave=U9.prototype.handleMouseLeave;U9.prototype.handleMouseEnter=U9.prototype.handleMouseEnter;U9.prototype.dataChanged=U9.prototype.dataChanged;_.U([_.H(_.eH.YtActionHandlerBehavior),_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],U9.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.aI),_.W("design:type",Object)],U9.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],U9.prototype,"ytRendererBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],U9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],U9.prototype,"isEditMode",void 0);_.U([_.O(),_.W("design:type",Object)],U9.prototype,"touchCaptionsEnabled",void 0);_.U([_.O(),_.W("design:type",Object)],U9.prototype,"editedText",void 0);_.U([_.O(),_.W("design:type",Object)],U9.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.U([_.O(),_.W("design:type",Object)],U9.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.U([_.O(),_.W("design:type",String)],U9.prototype,"segmentAriaLabel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],U9.prototype,"roundedContainer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],U9.prototype,"mouseOver",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],U9.prototype,"textChanged",void 0);_.U([_.O(),_.W("design:type",Object)],U9.prototype,"messages",void 0);
_.U([_.ir("#suggestion"),_.W("design:type",Object)],U9.prototype,"ironTextAreaElement",void 0);_.U([_.K("data","editedText"),_.W("design:type",Object),_.W("design:paramtypes",[])],U9.prototype,"latestText",null);_.U([_.K("touchCaptionsEnabled","isEditMode"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],U9.prototype,"enableEditButton",null);
_.U([_.K("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],U9.prototype,"enableUndoButton",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],U9.prototype,"dataChanged",null);_.U([_.M("mouseenter"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],U9.prototype,"handleMouseEnter",null);
_.U([_.M("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],U9.prototype,"handleMouseLeave",null);U9=_.U([_.Q({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],U9);
_.S(U9,"ytd-transcript-segment-renderer",function(){if(Ghd!==void 0)return Ghd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="segment style-scope ytd-transcript-segment-renderer" aria-label$="[[segmentAriaLabel]]" role="button" tabindex="0" on-click="handleClick" on-keypress="handleKeypress">\n  <div class="segment-start-offset style-scope ytd-transcript-segment-renderer" tabindex="-1" aria-hidden="true" on-keypress="handleKeypress">\n    <div class="segment-timestamp style-scope ytd-transcript-segment-renderer">\n      [[getSimpleString(data.startTimeText)]]\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <tp-yt-paper-input-container hidden="[[!isEditMode]]" no-label-float="true" use-v2-underline="" on-click="handleTextboxClick" on-keydown="handleTextboxKeydown" on-keyup="handleTextboxKeyup" class="style-scope ytd-transcript-segment-renderer">\n      <tp-yt-iron-autogrow-textarea id="suggestion" class="paper-input-input style-scope ytd-transcript-segment-renderer" slot="input" label="[[messages.suggested_caption]]" max-rows="4" required="true" rows="1" value="[[getSimpleString(data.snippet)]]">\n      </tp-yt-iron-autogrow-textarea>\n    </tp-yt-paper-input-container>\n    <div id="actions" hidden="[[!isEditMode]]" class="style-scope ytd-transcript-segment-renderer">\n      <div class="submit style-scope ytd-transcript-segment-renderer" on-click="handleSubmit">\n        <yt-icon-button label="[[messages.submit_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:check" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.submit_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="cancel style-scope ytd-transcript-segment-renderer" on-click="handleCancel">\n        <yt-icon-button label="[[messages.cancel_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.cancel_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="replay style-scope ytd-transcript-segment-renderer" on-click="handleReplay">\n        <yt-icon-button label="[[messages.replay_segment]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:replay_arrow" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.replay_segment]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n    </div>\n  </template>\n  <yt-formatted-string class="segment-text style-scope ytd-transcript-segment-renderer" aria-hidden="true" hidden="[[isEditMode]]" tabindex="-1" text="[[latestText]]">\n  </yt-formatted-string>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <div class="segment-undo style-scope ytd-transcript-segment-renderer" on-click="handleDelete" hidden="[[!enableUndoButton]]">\n      <yt-icon-button label="[[messages.delete_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:arrow_undo" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.delete_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n    <div class="segment-edit style-scope ytd-transcript-segment-renderer" on-click="handleEditButtonClick" hidden="[[!enableEditButton]]">\n      <yt-icon-button label="[[messages.suggest_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:edit" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.suggest_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n  </template>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Ghd=a},{mode:1});var Ihd=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};a.isError=!1;a.darkerPanels=_.w("web_watch_darker_panels");a.segmentOffsets=[];a.segmentIndex=-1;return a};
_.z(Ihd,_.P);_.f=Ihd.prototype;_.f.configureRendererStamper=function(){return{segments:{id:"segments-container",mapping:{transcriptSegmentRenderer:{component:"ytd-transcript-segment-renderer",properties:{touchCaptionsEnabled:"[[data.touchCaptionsEnabled]]"}},transcriptSectionHeaderRenderer:{component:"ytd-transcript-section-header-renderer"}}}}};
_.f.segmentsChanged=function(){this.updateOffsets()};
_.f.onYtPlayerTimeChanged=function(a){for(var b=this.segmentIndex,c=b;;){if(c>=0){var d=this.segmentOffsets[c].start;var e=this.segmentOffsets[c].isAutoScrollable}else d=-1,e=!0;var g=a+.5;if(!e){d=c+1<this.segmentOffsets.length?this.segmentOffsets[c+1].start:Infinity;if(g>=d){c+=1;continue}c=-1;break}if(g<d)d=c-1>=0&&this.segmentOffsets[c-1].isAutoScrollable,e=c===0||d?1:2,c-=e;else if(e=c+1<this.segmentOffsets.length&&this.segmentOffsets[c+1].isAutoScrollable?1:2,d=c+e<this.segmentOffsets.length?
this.segmentOffsets[c+e].start:Infinity,g>d)c+=e;else{if(c<0)break;c<this.segmentOffsets.length&&g>this.segmentOffsets[c].end&&(c=-1);break}}if(b!==c){if(b>=0){var k;(k=this.getSegmentElement(b))==null||k.classList.remove("active")}this.segmentIndex=c;if(!(c<0)){var m;(m=this.getSegmentElement(c))==null||m.classList.add("active");this.isHovered||this.scrollElementToTop(c)}}};
_.f.handleSegmentEdit=function(a){a.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=a.target,_.lo(this.hostElement,"yt-transcript-player-edit",[a.detail.startMs/1E3,a.detail.endMs/1E3]))};
_.f.handleSegmentSelected=function(a){_.lo(this.hostElement,"yt-transcript-player-seek",[a.detail.startMs/1E3])};
_.f.handleSegmentReplay=function(a){_.lo(this.hostElement,"yt-transcript-player-replay",[a.detail.startMs/1E3,a.detail.endMs/1E3])};
_.f.handleSectionHeaderSelected=function(a){_.lo(this.hostElement,"yt-transcript-player-seek",[a.detail.startMs/1E3])};
_.f.onMouseEnter=function(){this.isHovered=!0};
_.f.onMouseLeave=function(){this.isHovered=!1};
_.f.onRetryButtonClick=function(){_.io(this.hostElement,"transcript-retry-button-click")};
_.f.getSegmentElement=function(a){return _.E(this.hostElement).querySelector(":nth-child("+(a+1)+")")};
_.f.scrollElementToTop=function(a){a=this.getSegmentElement(a>=2?a-2:0);this.hostElement.scrollTop=Math.min(a.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.f.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(a){var b,c=(b=a.transcriptSegmentRenderer)!=null?b:a.transcriptSectionHeaderRenderer;return{start:Number(c.startMs)/1E3,end:Number(c.endMs)/1E3,isAutoScrollable:a.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.f.clearHighlightedSegments=function(){var a=_.E(this.hostElement);a=_.h(a.querySelectorAll("ytd-transcript-segment-renderer"));for(var b=a.next();!b.done;b=a.next())b.value.classList.remove("active")};
_.Um.Object.defineProperties(Ihd.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:a.searchResultSegments)||((b=this.data)==null?void 0:b.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
var V9=Ihd;V9.prototype.onMouseLeave=V9.prototype.onMouseLeave;V9.prototype.onMouseEnter=V9.prototype.onMouseEnter;V9.prototype.handleSectionHeaderSelected=V9.prototype.handleSectionHeaderSelected;V9.prototype.handleSegmentReplay=V9.prototype.handleSegmentReplay;V9.prototype.handleSegmentSelected=V9.prototype.handleSegmentSelected;V9.prototype.handleSegmentEdit=V9.prototype.handleSegmentEdit;V9.prototype.segmentsChanged=V9.prototype.segmentsChanged;
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],V9.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],V9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],V9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],V9.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],V9.prototype,"isError",void 0);
_.U([_.O(),_.W("design:type",Object)],V9.prototype,"noResultLabel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],V9.prototype,"darkerPanels",void 0);_.U([_.K("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],V9.prototype,"segments",null);_.U([_.K("segments","noResultLabel"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],V9.prototype,"displayNoResults",null);
_.U([_.N("segments"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V9.prototype,"segmentsChanged",null);_.U([_.M("yt-transcript-segment-edit"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],V9.prototype,"handleSegmentEdit",null);_.U([_.M("yt-transcript-segment-selected"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],V9.prototype,"handleSegmentSelected",null);
_.U([_.M("yt-transcript-segment-replay"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],V9.prototype,"handleSegmentReplay",null);_.U([_.M("ytd-transcript-section-header"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],V9.prototype,"handleSectionHeaderSelected",null);_.U([_.M("mouseenter"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V9.prototype,"onMouseEnter",null);
_.U([_.M("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V9.prototype,"onMouseLeave",null);V9=_.U([_.Q({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],V9);
_.S(V9,"ytd-transcript-segment-list-renderer",function(){if(Fhd!==void 0)return Fhd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="segments-container" class="style-scope ytd-transcript-segment-list-renderer"></div>\n<div id="message-container" hidden="[[!displayNoResults]]" class="style-scope ytd-transcript-segment-list-renderer">\n  <yt-formatted-string id="no-results" text="[[noResultLabel]]" class="style-scope ytd-transcript-segment-list-renderer">\n  </yt-formatted-string>\n</div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Fhd=a},{mode:1});var Jhd=function(){var a=_.P.apply(this,arguments)||this;a.hideTimestamps=!!_.vG("hide-transcript-timestamps");a.isLoadingTranscripts=!1;a.darkerPanels=_.w("web_watch_darker_panels");a.isError=!1;a.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return a};
_.z(Jhd,_.P);_.f=Jhd.prototype;_.f.headerChanged=function(){var a,b;this.baseGetTranscriptsCommand=(b=_.y((a=this.data)==null?void 0:a.header,ged))==null?void 0:b.onTextChangeCommand};
_.f.bodyChanged=function(){var a=this.getBodyRenderer();a&&(a.initialSegments&&(this.initialTranscriptsRenderer=a),a.noResultLabel&&(this.noResultLabel=a.noResultLabel),a.retryLabel&&(this.retryLabel=a.retryLabel))};
_.f.detached=function(){this.clearSearchBoxText()};
_.f.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.f.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{transcriptSearchBoxRenderer:"ytd-transcript-search-box-renderer"}},"data.body":{id:"body",mapping:{transcriptSegmentListRenderer:{component:"ytd-transcript-segment-list-renderer",properties:{noResultLabel:"[[noResultLabel]]"}}}},"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}}}};
_.f.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.f.fireSearch=function(a){var b=this;if(a){var c=a.detail.query;if(this.baseGetTranscriptsCommand){var d;a=(d=_.y(this.baseGetTranscriptsCommand,_.IAb))==null?void 0:d.params;var e;d=_.y((e=this.data)==null?void 0:e.footer,Pdd);var g;if((e=(g=_.y(d==null?void 0:d.languageMenu,aed))==null?void 0:g.subMenuItems)&&e.length>0&&(g=e.find(function(n){return n.selected}))){var k,m;
a=(k=g.continuation)==null?void 0:(m=k.reloadContinuationData)==null?void 0:m.continuation}k=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:a,searchQuery:c}});this.ytComponentBehavior.resolveCommand(k,{commandController:{onServerError:function(){b.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});xdd(this.ytContinuationHandlerBehavior,function(){return c===b.getCurrentSearchBoxText()})}}};
_.f.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.f.onRetryButtonClick=function(){this.isError=!1;var a={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:a}))};
_.f.hideTimestampsChanged=function(){_.uG("hide-transcript-timestamps",this.hideTimestamps)};
_.f.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.f.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.f.handleSignalActionCopyTranscript=function(){var a=this,b=this.getBodyRenderer();b&&(b=((b==null?void 0:b.searchResultSegments)||(b==null?void 0:b.initialSegments)||[]).map(function(c){return _.y(c,ied)}).filter(function(c){return!!c}).map(function(c){return{snippet:c.snippet||{runs:[{text:""}]},
startTimeText:c.startTimeText||{simpleText:""}}}).map(function(c){var d=(c.snippet.runs||[]).reduce(function(e,g){return e+g.text},"");
return a.hideTimestamps?d:c.startTimeText.simpleText+" "+d}).join("\n"),this.copyToClipboard(b))};
_.f.copyToClipboard=function(a){navigator.clipboard&&navigator.clipboard.writeText(a)};
_.f.getCurrentSearchBoxText=function(){var a;return(a=this.searchBox)==null?void 0:a.value};
_.f.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.f.getBodyRenderer=function(){var a;return _.y((a=this.data)==null?void 0:a.body,hed)};
_.f.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.Um.Object.defineProperties(Jhd.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.E(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
var W9=Jhd;W9.prototype.hideTimestampsChanged=W9.prototype.hideTimestampsChanged;W9.prototype.searchCleared=W9.prototype.searchCleared;W9.prototype.fireSearch=W9.prototype.fireSearch;W9.prototype.onReloadContinuationFinish=W9.prototype.onReloadContinuationFinish;W9.prototype.bodyChanged=W9.prototype.bodyChanged;W9.prototype.headerChanged=W9.prototype.headerChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],W9.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],W9.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],W9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.WM),_.W("design:type",Object)],W9.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],W9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],W9.prototype,"hideTimestamps",void 0);
_.U([_.O(),_.W("design:type",Object)],W9.prototype,"isLoadingTranscripts",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],W9.prototype,"darkerPanels",void 0);_.U([_.O(),_.W("design:type",Object)],W9.prototype,"isError",void 0);_.U([_.N("data.header"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W9.prototype,"headerChanged",null);
_.U([_.mr("data.body"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W9.prototype,"bodyChanged",null);_.U([_.M("yt-reload-continuation-finish"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W9.prototype,"onReloadContinuationFinish",null);_.U([_.M("yt-transcript-search-box-search"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],W9.prototype,"fireSearch",null);
_.U([_.M("yt-transcript-search-box-clear"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W9.prototype,"searchCleared",null);_.U([_.N("hideTimestamps"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W9.prototype,"hideTimestampsChanged",null);W9=_.U([_.Q({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],W9);
_.S(W9,"ytd-transcript-search-panel-renderer",function(){if(Dhd!==void 0)return Dhd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="body" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="error-container" hidden="[[!isError]]" class="style-scope ytd-transcript-search-panel-renderer">\n  <tp-yt-paper-button id="retry-button" on-click="onRetryButtonClick" class="style-scope ytd-transcript-search-panel-renderer">\n    <yt-formatted-string text="[[retryLabel]]" class="style-scope ytd-transcript-search-panel-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-button>\n</div>\n<div class="spinner-container style-scope ytd-transcript-search-panel-renderer" hidden="[[!isLoadingTranscripts]]">\n  <tp-yt-paper-spinner active="[[isLoadingTranscripts]]" class="style-scope ytd-transcript-search-panel-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="footer" class="style-scope ytd-transcript-search-panel-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Dhd=a},{mode:1});var Khd=function(){var a=_.P.apply(this,arguments)||this;a.player=null;a.playerPollJobId=0;return a};
_.z(Khd,_.P);_.f=Khd.prototype;_.f.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.f.onLoadReloadContinuation=function(a){_.w("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:a.target.data.continuation}}):(a={clickTrackingParams:a.target.data.clickTrackingParams,getTranscriptEndpoint:{params:a.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.w("web_ytd_transcript_renderer_command_resolver_ks")?_.oo(this.hostElement,[a]):_.v().resolve(_.Yi).resolveCommand(a,
{form:{element:this.hostElement}}))};
_.f.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}},"data.body":{id:"body",mapping:{transcriptBodyRenderer:"ytd-transcript-body-renderer"}},"data.content":{id:"content",mapping:{transcriptSearchPanelRenderer:"ytd-transcript-search-panel-renderer"}}}};
_.f.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.f.attached=function(){this.updatePlayerListening()};
_.f.detached=function(){this.updatePlayerListening()};
_.f.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.f.startPlayerListening=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return(b=_.au())?_.p(c,b.getPlayerPromise(),2):c.return();a.player=c.yieldResult;a.playerPollJobId=_.zk.addLowPriorityJob(function(){a.getPlayerVideoProgress()},1E3);
a.player.addEventListener("onCueRangeEnter",function(d){a.onCueRangeEnter(d)});
a.player.addEventListener("onCueRangeExit",function(d){a.onCueRangeExit(d)});
a.player.addEventListener("onStateChange",function(d){a.onPlayerStateChange(d)});
a.player.addEventListener("SEEK_TO",function(d){a.onPlayerSeek(d)});
_.ue(c)})};
_.f.getPlayerVideoProgress=function(){var a=this;_.zk.cancelJob(this.playerPollJobId);if(this.player){var b=this.player.getCurrentTime();_.lo(this.hostElement,"yt-player-time-changed",[b])}this.playerPollJobId=_.zk.addLowPriorityJob(function(){a.getPlayerVideoProgress()},1E3)};
_.f.stopPlayerListening=function(){this.player=null;_.zk.cancelJob(this.playerPollJobId)};
_.f.onPlayerStateChange=function(a){a===2&&this.removePendingCue()};
_.f.onPlayerSeek=function(a){var b;if(b=this.pendingReplayCueId)b=this.pendingReplayCueId,b=a===(_.w("web_transcript_cue_id_killswitch")?Number(b):Number(b.split("_")[1]));b||this.removePendingCue()};
_.f.onCueRangeEnter=function(a){Ocd(a)&&(this.pendingReplayCueId=a)};
_.f.onCueRangeExit=function(a){Ocd(a)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.f.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.f.onYtTranscriptPlayerSeek=function(a){this.player&&this.player.seekTo(a,!0)};
_.f.onYtTranscriptPlayerReplay=function(a,b){this.player&&(this.player.addCueRange(Ncd(a),a,b),this.player.seekTo(a,!0),this.player.playVideo())};
_.f.onYtTranscriptPlayerEdit=function(a,b){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(Ncd(a),a,b),this.player.seekTo(a,!0))};
var X9=Khd;X9.prototype.onLoadReloadContinuation=X9.prototype.onLoadReloadContinuation;X9.prototype.panelContentVisibleChanged=X9.prototype.panelContentVisibleChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],X9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],X9.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],X9.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],X9.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],X9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],X9.prototype,"panelContentVisible",void 0);_.U([_.N("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],X9.prototype,"panelContentVisibleChanged",null);
_.U([_.M("yt-load-reload-continuation"),_.W("design:type",Function),_.W("design:paramtypes",[Object]),_.W("design:returntype")],X9.prototype,"onLoadReloadContinuation",null);X9=_.U([_.Q({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],X9);
_.S(X9,"ytd-transcript-renderer",function(){if(Ahd!==void 0)return Ahd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" class="style-scope ytd-transcript-renderer"></div>\n<div id="content" class="style-scope ytd-transcript-renderer"></div>\n<div id="footer" class="style-scope ytd-transcript-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Ahd=a},{mode:1});var Lhd;var Mhd;var Nhd=function(){return _.P.apply(this,arguments)||this};
_.z(Nhd,_.P);Nhd.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.io(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.po(this.hostElement,[this.data.clickCommand],this.hostElement))};
Nhd.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.LW)()+_.N8)+"px)"};
Nhd.prototype.updateShouldHideFromBinding=function(a){this.shouldHide=a.detail.value};
var Y9=Nhd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Y9.prototype,"rendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Y9.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],Y9.prototype,"shouldHide",void 0);Y9=_.U([_.Q({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],Y9);
_.S(Y9,"ytd-ad-engagement-panel-banner-renderer",function(){if(Mhd!==void 0)return Mhd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-engagement-panel-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[computeHideMediaQuery()]]" query-matches="[[shouldHide]]" on-query-matches-changed="updateShouldHideFromBinding" class="style-scope ytd-ad-engagement-panel-banner-renderer">\n</iron-media-query>\n<a class="yt-simple-endpoint banner-click-container style-scope ytd-ad-engagement-panel-banner-renderer" hidden="[[shouldHide]]" on-tap="onTap">\n  <yt-img-shadow class="banner-image style-scope ytd-ad-engagement-panel-banner-renderer" fit="" thumbnail="[[data.bannerImage]]">\n  </yt-img-shadow>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Mhd=a},{mode:_.as("kevlar_poly_si_batch_j070")?1:2});var Ohd;var Phd=function(){var a=_.P.apply(this,arguments)||this;a.modernPanels=_.w("kevlar_watch_modern_panels");a.buttonUpdate=_.w("web_modern_buttons");a.adsSemanticText=_.w("enable_ads_web_ep_buenos_aires_and_padding_fix");return a};
_.z(Phd,_.P);Phd.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
var Z9=Phd;_.U([_.O(),_.W("design:type",Object)],Z9.prototype,"data",void 0);_.U([_.O({computed:"computeHideDefaultAdBadge(data)"}),_.W("design:type",Boolean)],Z9.prototype,"hideDefaultAdBadge",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z9.prototype,"modernPanels",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z9.prototype,"buttonUpdate",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z9.prototype,"adsSemanticText",void 0);
Z9=_.U([_.Q({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],Z9);
_.S(Z9,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(Ohd!==void 0)return Ohd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-ad-subtitle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="ad-badge" badges="[[data.badges]]" hidden="[[hideDefaultAdBadge]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-badge-supported-renderer>\n<ytd-ad-hover-text-button-renderer id="ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-ad-hover-text-button-renderer>\n<yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</yt-formatted-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Ohd=a},{mode:1});var Qhd;var Rhd=function(){var a=_.P.apply(this,arguments)||this;a.darkerPanels=_.w("web_watch_darker_panels");a.enableSqueezebackPanels=_.w("web_shorts_enable_squeezeback_panels");a.enableAnchoredPanel=_.w("desktop_shorts_v2_anchored_panel");a.modernPanels=_.w("kevlar_watch_modern_panels");a.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return a};
_.z(Rhd,_.P);_.f=Rhd.prototype;_.f.computeAdsInfoButton=function(){if(_.w("web_modern_buttons")){var a,b;return(b=_.y((a=this.data)==null?void 0:a.subtitleComplex,Qdd))==null?void 0:b.adInfoRenderer}};
_.f.configureRendererStamper=function(){return{"data.visibilityButton":{id:"visibility-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer",sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.subtitleComplex":{id:"subtitle-complex",mapping:{engagementPanelAdSubtitleRenderer:"ytd-engagement-panel-ad-subtitle-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
adsInfoButton:{id:"ads-info-button",mapping:{adHoverTextButtonRenderer:{component:"ytd-ad-hover-text-button-renderer",params:{modernUpdate:!0}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.banner":{id:"banner",mapping:{adEngagementPanelBannerRenderer:"ytd-ad-engagement-panel-banner-renderer"}},"data.navigationButton":{id:"navigation-button",mapping:{buttonRenderer:"ytd-button-renderer"},reuseComponents:!1},"data.subheader":{id:"subheader",
mapping:{chipBarViewModel:{component:"chip-bar-view-model",params:{disableDeselection:!0}}}}}};
_.f.collapsedChanged=function(){var a;(a=this.data)!=null&&a.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.w("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.f.focus=function(a){this.titleElement&&_.Ok(this.titleElement,a)};
_.f.computeTitleAriaLabel=function(a){var b=[];a.title&&b.push(this.ytRendererBehavior.getSimpleString(a.title));a.contextualInfo&&b.push(this.ytRendererBehavior.getSimpleString(a.contextualInfo));return b.join(" ")};
_.f.onHeaderClick=function(a){this.shouldTriggerHeaderClick(a)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.io(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.po(this.hostElement,[this.data.onClickCommand],this.hostElement)):(a=this.getVisibilityToggleButton())&&a.click())};
_.f.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var a=_.y(this.data.visibilityButton,_.RE)||_.y(this.data.visibilityButton,_.SE);a&&this.ytRendererBehavior.logExplicitClick(a)}};
_.f.getVisibilityToggleButton=function(){var a=_.E(this.hostElement).querySelector("#visibility-button").firstElementChild;return(a==null?void 0:a.is)==="ytd-toggle-button-renderer"?a:null};
_.f.shouldTriggerHeaderClick=function(a){return!_.Wt(_.Rq(a),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.f.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(a){a=_.y(a,_.Hdd);this.targetId&&(a==null?void 0:a.targetId)===this.targetId&&(a=a.navigationButton)&&this.set("data.navigationButton",a)};
_.Um.Object.defineProperties(Rhd.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.w("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var a;return!!(((a=this.entity)==null?0:a.isActionButtonHidden)||this.hideActionButton)}}});
var $9=Rhd;$9.prototype.collapsedChanged=$9.prototype.collapsedChanged;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],$9.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],$9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],$9.prototype,"ytdReduxBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],$9.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],$9.prototype,"targetId",void 0);_.U([_.O(),_.W("design:type",Boolean)],$9.prototype,"collapsed",void 0);_.U([_.O(),_.W("design:type",Boolean)],$9.prototype,"hideActionButton",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],$9.prototype,"shortsPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],$9.prototype,"liveChatEngagementPanel",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$9.prototype,"darkerPanels",void 0);_.U([_.ir("#title"),_.W("design:type",HTMLElement)],$9.prototype,"titleElement",void 0);_.U([_.O({computed:"computeAdsInfoButton(data)"}),_.W("design:type",Object)],$9.prototype,"adsInfoButton",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$9.prototype,"enableSqueezebackPanels",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$9.prototype,"enableAnchoredPanel",void 0);_.U([_.O({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(a,b){return _.np(a.entities,"engagementPanelTitleHeaderEntity",b)}}),
_.W("design:type",Object)],$9.prototype,"entity",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$9.prototype,"modernPanels",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("targetId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$9.prototype,"adsSemanticText",null);_.U([_.mr("collapsed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$9.prototype,"collapsedChanged",null);
_.U([_.K("entity","hideActionButton"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$9.prototype,"isActionButtonHidden",null);$9=_.U([_.Q({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],$9);
_.S($9,"ytd-engagement-panel-title-header-renderer",function(){if(Qhd!==void 0)return Qhd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" on-click="onHeaderClick" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Qhd=a},{mode:1});var Shd;var Thd=function(){return _.P.apply(this,arguments)||this};
_.z(Thd,_.P);Thd.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var a$=Thd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],a$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],a$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],a$.prototype,"data",void 0);a$=_.U([_.Q({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],a$);
_.S(a$,"ytd-macro-markers-info-item-renderer",function(){if(Shd!==void 0)return Shd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-info-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.infoText]]" class="style-scope ytd-macro-markers-info-item-renderer"></yt-formatted-string>\n<div id="menu" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n<div id="edit" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Shd=a},{mode:1});var Uhd;var Xhd=function(a,b,c,d,e){_.vg.call(this);this.JSC$19874_containerElement=a;this.floatingPill=b;this.supportedSyncItems=c;this.syncEntityKey=d;this.options=e;this.contentVisible=this.browsingMode=!1;Vhd(this);Whd(this);this.JSC$19874_scrollAnimation=new _.YR(function(g){a.scrollTop=g});
_.kg(this,this.JSC$19874_scrollAnimation)};
_.z(Xhd,_.vg);var Vhd=function(a){var b=_.zF(_.v().resolve(_.LG),function(c){return c.entities.markersEngagementPanelSyncEntity||{}},function(c,d){var e;
c[a.syncEntityKey]!==d[a.syncEntityKey]&&((e=c[a.syncEntityKey])==null?void 0:e.activeItemIndex)!==void 0&&a.updatePanelActiveItem(c[a.syncEntityKey].activeItemIndex)});
a.addOnDisposeCallback(b)},Whd=function(a){var b=new _.lv(a.onScroll,50,a);
_.kg(a,b);var c=function(){b.fire()};
a.JSC$19874_containerElement.addEventListener("scroll",c);a.addOnDisposeCallback(function(){a.JSC$19874_containerElement.removeEventListener("scroll",c)})};
_.f=Xhd.prototype;_.f.updatePanelActiveItem=function(a){var b=this.getItemByIndex(a);b?(this.setActiveItem(b),!this.browsingMode&&this.contentVisible&&this.scrollToItem(b)):_.Dl(new _.qj("Could not find "+this.supportedSyncItems+" sync child to set active.",a,this.JSC$19874_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.f.getItemByIndex=function(a){var b;(b=this.renderLazyListItems)==null||b.call(this,a);b=this.JSC$19874_containerElement.querySelectorAll(this.supportedSyncItems);if(b.length>a)return b[a]};
_.f.setActiveItem=function(a){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));a.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=a};
_.f.scrollToItem=function(a){a=this.getScrollPositionForItem(a);this.JSC$19874_containerElement.scrollTop!==a&&this.JSC$19874_scrollAnimation.start(this.JSC$19874_containerElement.scrollTop,a,300)};
_.f.getScrollPositionForItem=function(a){if(this.JSC$19874_containerElement.querySelectorAll(this.supportedSyncItems)[0]===a)return 0;var b,c=((b=this.options)==null?0:b.percentOffset)?this.JSC$19874_containerElement.clientHeight*this.options.percentOffset:0;a=_.If(a).y+this.JSC$19874_containerElement.scrollTop-(_.If(this.JSC$19874_containerElement).y+c);return Math.max(0,Math.min(a,this.JSC$19874_containerElement.scrollHeight-this.JSC$19874_containerElement.offsetHeight))};
_.f.onScroll=function(){!this.browsingMode&&this.activeItem&&!this.JSC$19874_scrollAnimation.isAnimating()&&Math.abs(this.JSC$19874_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10&&this.enterBrowsingMode()};
_.f.enterBrowsingMode=function(){var a=this,b,c;return _.l(function(d){if(d.nextAddress==1){if(a.browsingMode)return d.return();a.browsingMode=!0;a.floatingPill.classList.add("browsing-mode");a.playerExitBrowsingModeListener=function(){a.exitBrowsingMode(!1)};
return _.p(d,_.mu(),2)}b=d.yieldResult;(c=b)==null||c.addEventListener("SEEK_TO",a.playerExitBrowsingModeListener);_.ue(d)})};
_.f.exitBrowsingMode=function(a){a=a===void 0?!0:a;this.browsingMode&&(this.browsingMode=!1,this.floatingPill.classList.remove("browsing-mode"),a&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.f.removePlayerSeekListener=function(){var a=this,b,c;return _.l(function(d){if(d.nextAddress==1)return a.playerExitBrowsingModeListener?_.p(d,_.mu(),3):d.jumpTo(0);b=d.yieldResult;(c=b)==null||c.removeEventListener("SEEK_TO",a.playerExitBrowsingModeListener);a.playerExitBrowsingModeListener=void 0;_.ue(d)})};
_.f.panelContentVisibleChanged=function(a){(this.contentVisible=a)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var Yhd=function(a,b){a.renderLazyListItems=b};var Zhd=function(){var a=_.P.apply(this,arguments)||this;a.browsingMode=!1;a.modern=_.w("web_button_rework");a.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return a};
_.z(Zhd,_.P);_.f=Zhd.prototype;_.f.activeItemChanged=function(){if(!_.w("synced_panel_scrolling_controller")){var a;((a=this.syncEntity)==null?void 0:a.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.f.created=function(){var a=this;_.w("synced_panel_scrolling_controller")||(this.JSC$19879_scrollAnimation=new _.YR(function(b){a.contents.scrollTop=b}),this.boundExitBrowsingMode=function(){a.exitBrowsingMode(!1)})};
_.f.attached=function(){var a=this;if(_.w("synced_panel_scrolling_controller")&&!this.scrollController){var b,c,d,e;this.scrollController=new Xhd(this.contents,this.syncContainer,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(e=(b=this.data)==null?void 0:b.syncModelEntityKey)!=null?e:"default-macro-markers-list-renderer-entity-key",{percentOffset:(c=this.data)==null?void 0:c.selectedItemAlignmentPercentOffset,floatingPillType:(d=this.data)==null?void 0:d.floatingPillType});
Yhd(this.scrollController,function(g){a.renderLazyListItems(g)});
this.scrollController.panelContentVisibleChanged(!!this.panelContentVisible)}};
_.f.detached=function(){if(_.w("synced_panel_scrolling_controller")){var a;(a=this.scrollController)==null||a.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.f.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"},params:{seekWithAnimationOnClick:!0}},macroMarkersInfoItemRenderer:"ytd-macro-markers-info-item-renderer",itemSectionRenderer:"ytd-item-section-renderer"}}}};
_.f.dataChanged=function(){if(_.w("synced_panel_scrolling_controller")){var a;(a=this.scrollController)==null||a.exitBrowsingMode();var b,c;if((a=this.scrollController)!=null){var d=(c=(b=this.data)==null?void 0:b.syncModelEntityKey)!=null?c:"default-macro-markers-list-renderer-entity-key";a.syncEntityKey=d}var e,g;(b=this.scrollController)!=null&&(c={percentOffset:(e=this.data)==null?void 0:e.selectedItemAlignmentPercentOffset,floatingPillType:(g=this.data)==null?void 0:g.floatingPillType},b.options=
c)}else this.exitBrowsingMode()};
_.f.computeButtonShape=function(){var a=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){a.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.f.computeSyncEnabled=function(a){return!(a==null||!a.syncButtonLabel)};
_.f.renderLazyListItems=function(a){for(var b=this.contents.children,c=0,d=0;d<b.length;d++){var e=void 0;(e=b[d].ytLazyListBehavior)==null||e.fillRemainingListItems();var g=void 0,k=void 0;e=_.y((g=this.data)==null?void 0:(k=g.contents)==null?void 0:k[d],_.M4a);k=g=void 0;if((g=e)==null?0:(k=g.contents)==null?0:k.length)c+=e.contents.length;if(c>=a)break}};
_.f.getItemByIndex=function(a){this.renderLazyListItems(a);var b=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(b.length>a)return b[a]};
_.f.setActiveItem=function(a){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);a.active!==void 0&&(a.active=!0);this.currentActiveItem=a};
_.f.handleSetActivePanelItemAction=function(a){if((a=_.y(a,Jdd))&&this.panelTargetId===a.panelTargetId){a=a.itemIndex;if(_.w("synced_panel_scrolling_controller")){var b,c;var d=(c=(b=this.data)==null?void 0:b.syncModelEntityKey)!=null?c:"default-macro-markers-list-renderer-entity-key"}else{var e;d=(e=this.data)==null?void 0:e.syncModelEntityKey}var g;d&&((g=this.syncEntity)==null?void 0:g.activeItemIndex)!==a?this.ytdReduxBehavior.dispatch(_.wu("markersEngagementPanelSyncEntity",d,{key:d,activeItemIndex:a})):
this.updatePanelActiveItem(a)}};
_.f.updatePanelActiveItem=function(a){var b=this.getItemByIndex(a);b?(this.setActiveItem(b),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(b)):_.Dl(new _.qj("Could not find ytd-macro-markers-list-renderer sync child to set active.",a,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.f.scrollToItem=function(a){a=this.getScrollPositionForItem(a);this.contents.scrollTop!==a&&this.JSC$19879_scrollAnimation.start(this.contents.scrollTop,a,300)};
_.f.getScrollPositionForItem=function(a){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===a)return 0;a=_.If(a).y+this.contents.scrollTop-_.If(this.contents).y-this.getStickyHeaderHeight(a);return Math.min(a,this.contents.scrollHeight-this.contents.offsetHeight)};
_.f.getStickyHeaderHeight=function(a){if(a.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var b,c,d;return(d=(b=a.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(c=b.header)==null?void 0:c.offsetHeight)!=null?d:0}return 0};
_.f.onScroll=function(){_.w("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$19879_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.f.enterBrowsingMode=function(){var a=this;return _.l(function(b){if(b.nextAddress==1){if(a.browsingMode)return b.return();a.browsingMode=!0;return _.p(b,_.bu().getPlayerPromise(),2)}a.player=b.yieldResult;a.player.addEventListener("SEEK_TO",a.boundExitBrowsingMode);_.ue(b)})};
_.f.exitBrowsingMode=function(a){this.browsingMode&&(this.browsingMode=!1,(a===void 0||a)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.f.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.f.onSyncClick=function(){if(_.w("synced_panel_scrolling_controller")){var a;(a=this.scrollController)==null||a.exitBrowsingMode()}else this.exitBrowsingMode()};
_.f.panelContentVisibleChanged=function(){if(_.w("synced_panel_scrolling_controller")){var a;(a=this.scrollController)==null||a.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
var b$=Zhd;b$.prototype.panelContentVisibleChanged=b$.prototype.panelContentVisibleChanged;b$.prototype.dataChanged=b$.prototype.dataChanged;b$.prototype.activeItemChanged=b$.prototype.activeItemChanged;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],b$.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],b$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],b$.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],b$.prototype,"data",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],b$.prototype,"useCustomColors",void 0);_.U([_.O({computed:"computeSyncEnabled(data)"}),_.W("design:type",Boolean)],b$.prototype,"syncEnabled",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],b$.prototype,"panelTargetId",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],b$.prototype,"panelContentVisible",void 0);_.U([_.ir("#contents"),_.W("design:type",HTMLElement)],b$.prototype,"contents",void 0);_.U([_.ir("#sync-container"),_.W("design:type",HTMLElement)],b$.prototype,"syncContainer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],b$.prototype,"browsingMode",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],b$.prototype,"modern",void 0);_.U([_.O({selectorArgs:["data.syncModelEntityKey"],selector:_.nSa}),_.W("design:type",Object)],b$.prototype,"syncEntity",void 0);_.U([_.N("syncEntity.activeItemIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b$.prototype,"activeItemChanged",null);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b$.prototype,"dataChanged",null);_.U([_.N("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b$.prototype,"panelContentVisibleChanged",null);b$=_.U([_.Q({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],b$);
_.S(b$,"ytd-macro-markers-list-renderer",function(){if(Uhd!==void 0)return Uhd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <tp-yt-paper-button id="sync-button" disable-upgrade="[[modern]]" hidden="[[modern]]" on-click="onSyncClick" class="style-scope ytd-macro-markers-list-renderer">\n    [[getSimpleString(data.syncButtonLabel)]]\n  </tp-yt-paper-button>\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Uhd=a},{mode:1});var $hd;var aid=function(){return _.P.apply(this,arguments)||this};
_.z(aid,_.P);var c$=aid;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],c$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],c$.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],c$.prototype,"data",void 0);c$=_.U([_.Q({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],c$);
_.S(c$,"ytd-error-corrections-section-item-renderer",function(){if($hd!==void 0)return $hd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="channel-thumbnail" height="36" thumbnail="[[data.thumbnail]]" width="36" class="style-scope ytd-error-corrections-section-item-renderer">\n</yt-img-shadow>\n<a id="correction-timestamp" class="yt-simple-endpoint style-scope ytd-error-corrections-section-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick">\n  <yt-formatted-string text="[[data.timeLabel]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</a>\n<div id="correction-text" class="style-scope ytd-error-corrections-section-item-renderer">\n  <yt-formatted-string text="[[data.correctionText]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return $hd=a},{mode:1});var bid;var cid=function(){return _.P.apply(this,arguments)||this};
_.z(cid,_.P);cid.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
var d$=cid;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],d$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],d$.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],d$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],d$.prototype,"data",void 0);d$=_.U([_.Q({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],d$);
_.S(d$,"ytd-error-corrections-section-renderer",function(){if(bid!==void 0)return bid;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-error-corrections-section-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-error-corrections-section-renderer"></yt-formatted-string>\n  <div id="flex" class="style-scope ytd-error-corrections-section-renderer"></div>\n  <ytd-button-renderer id="view_all_button" data="[[data.viewAllButton.buttonRenderer]]" class="style-scope ytd-error-corrections-section-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="items" class="style-scope ytd-error-corrections-section-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return bid=a},{mode:1});var did;var eid=function(){return _.P.apply(this,arguments)||this};
_.z(eid,_.P);var e$=eid;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],e$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],e$.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],e$.prototype,"data",void 0);e$=_.U([_.Q({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],e$);
_.S(e$,"ytd-topic-link-renderer",function(){if(did!==void 0)return did;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="topic-link-container" class="yt-simple-endpoint style-scope ytd-topic-link-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnailDetails]]" width="32" class="style-scope ytd-topic-link-renderer">\n    </yt-img-shadow>\n    <div id="title" class="style-scope ytd-topic-link-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="call-to-action-icon" hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-topic-link-renderer">\n    </yt-icon>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return did=a},{mode:1});var fid;var gid=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.w("kevlar_modern_sd_v2");a.modernLockupV2=_.w("modernize_structured_description_playlist_lockups_v2");a.modernTypography=_.w("web_modern_typography");return a};
_.z(gid,_.P);gid.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",properties:{showSidePanelThumbnailOverlay:"[[modernLockupV2]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
var f$=gid;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],f$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],f$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],f$.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],f$.prototype,"modern",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],f$.prototype,"modernLockupV2",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],f$.prototype,"modernTypography",void 0);f$=_.U([_.Q({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],f$);
_.S(f$,"ytd-video-description-course-section-renderer",function(){if(fid!==void 0)return fid;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-course-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-course-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-course-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-course-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-course-section-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return fid=a},{mode:1});var hid;var iid=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.w("kevlar_modern_sd_v2");a.modernTypography=_.w("web_modern_typography");return a};
_.z(iid,_.P);iid.prototype.configureRendererStamper=function(){return{"data.files":{id:"file-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.viewAllButton":{id:"view-all-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var g$=iid;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],g$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],g$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],g$.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],g$.prototype,"modern",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],g$.prototype,"modernTypography",void 0);
g$=_.U([_.Q({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],g$);
_.S(g$,"ytd-video-description-files-section-renderer",function(){if(hid!==void 0)return hid;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-files-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-files-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n  <div id="flex" class="style-scope ytd-video-description-files-section-renderer"></div>\n  <div id="view-all-button" class="style-scope ytd-video-description-files-section-renderer"></div>\n</div>\n<div id="description" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionDescription)]]</div>\n<div id="file-buttons" class="style-scope ytd-video-description-files-section-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return hid=a},{mode:1});var jid;var kid=function(){return _.P.apply(this,arguments)||this};
_.z(kid,_.P);kid.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{mediaLockupRenderer:"ytd-media-lockup-renderer"}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
var h$=kid;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],h$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],h$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],h$.prototype,"data",void 0);h$=_.U([_.Q({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],h$);
_.S(h$,"ytd-video-description-gaming-section-renderer",function(){if(jid!==void 0)return jid;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-gaming-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-gaming-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-gaming-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return jid=a},{mode:1});var lid;var mid=function(){var a=_.P.apply(this,arguments)||this;a.isExpanded=!1;return a};
_.z(mid,_.P);mid.prototype.computeHasDefaultMetadataEndpoint=function(a){var b;a=a==null?void 0:(b=a.defaultMetadata)==null?void 0:b.runs;return!(!a||a.length!==1||!a[0].navigationEndpoint)};
mid.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.Um.Object.defineProperties(mid.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
var i$=mid;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],i$.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],i$.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],i$.prototype,"isExpanded",void 0);_.U([_.O({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],i$.prototype,"hasDefaultMetadataEndpoint",void 0);
_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],i$.prototype,"isExpandable",null);_.U([_.K("data","isExpandable","isExpanded"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],i$.prototype,"showExpandedMetadata",null);i$=_.U([_.Q({is:"ytd-info-row-renderer",disableElementRegistration:!0})],i$);
_.S(i$,"ytd-info-row-renderer",function(){if(lid!==void 0)return lid;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-row-container" on-click="onRowExpand" class="style-scope ytd-info-row-renderer">\n  <div id="info-row-header" class="style-scope ytd-info-row-renderer">\n    <div id="title" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="default-metadata-section" hidden="[[isExpanded]]" class="style-scope ytd-info-row-renderer">\n      <yt-formatted-string id="default-metadata" bold-links="" text="[[data.defaultMetadata]]" class="style-scope ytd-info-row-renderer">\n      </yt-formatted-string>\n      <span id="truncation-text" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.truncationText)]]</span>\n      <yt-icon id="icon" class="expand-icon style-scope ytd-info-row-renderer" hidden="[[!data.expandIcon.iconType]]" icon="[[data.expandIcon.iconType]]">\n      </yt-icon>\n    </div>\n  </div>\n  <yt-formatted-string id="expanded-metadata" hidden="[[!showExpandedMetadata]]" text="[[data.expandedMetadata]]" class="style-scope ytd-info-row-renderer">\n  </yt-formatted-string>\n</div>\n\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return lid=a},{mode:1});var nid;var oid=function(){var a=_.P.apply(this,arguments)||this;a.currentIndex=0;a.supportComponentResize=!0;a.modern=_.w("kevlar_modern_sd_v2");a.JSC$19905_lastScrollContainerWidth=NaN;return a};
_.z(oid,_.P);_.f=oid.prototype;
_.f.configureRendererStamper=function(){return{videoLockups:{id:"items",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",params:{forceOneLineTitle:!0,musicMetadataVideoLockup:!0,hideThumbnail:!0}}},reuseComponents:!1},infoRows:{id:"info-rows",mapping:{infoRowRenderer:"ytd-info-row-renderer"}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.f.getItemsPath=function(){return"videoLockups"};
_.f.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.f.onIronResize=function(){this.updateVideoLockupStyles()};
_.f.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.f.updateVideoLockupStyles=function(){var a;this.JSC$19905_scrollContainer!==void 0&&(a=this.videoLockups)!=null&&a.length&&(a=this.JSC$19905_scrollContainer.clientWidth,a!==this.JSC$19905_lastScrollContainerWidth&&(this.JSC$19905_lastScrollContainerWidth=a,_.fr(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(a*.8,415)+"px"}),_.io(this.hostElement,"iron-resize")))};
_.Um.Object.defineProperties(oid.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var a=[],b;if((b=this.data)==null||!b.carouselLockups)return a;b=_.h(this.data.carouselLockups);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;((d=_.y(c,med))==null?0:d.videoLockup)&&a.push(_.y(c,med).videoLockup)}return a}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.videoLockups)==null||!a.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var a=[],b;if((b=this.data)==null||!b.carouselLockups)return a;var c;return(c=_.y(this.data.carouselLockups[this.scrollCount],med))==null?void 0:c.infoRows}}});
var j$=oid;j$.prototype.dataChanged=j$.prototype.dataChanged;j$.prototype.onIronResize=j$.prototype.onIronResize;j$.prototype.hiddenChanged=j$.prototype.hiddenChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],j$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],j$.prototype,"componentBehavior",void 0);_.U([_.H(_.lJ.YtdHorizontalListBehavior),_.W("design:type",Object)],j$.prototype,"ytdHorizontalListBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],j$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],j$.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],j$.prototype,"inlineStructuredDescription",void 0);_.U([_.O({value:2}),_.W("design:type",Number)],j$.prototype,"initialCount",void 0);_.U([_.O(),_.W("design:type",Object)],j$.prototype,"currentIndex",void 0);
_.U([_.O(),_.W("design:type",Number)],j$.prototype,"scrollCount",void 0);_.U([_.O(),_.W("design:type",Object)],j$.prototype,"supportComponentResize",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],j$.prototype,"contentHidden",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],j$.prototype,"modern",void 0);_.U([_.ir("#scroll-container"),_.W("design:type",HTMLDivElement)],j$.prototype,"JSC$19905_scrollContainer",void 0);
_.U([_.N("contentHidden"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j$.prototype,"hiddenChanged",null);_.U([_.K("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],j$.prototype,"videoLockups",null);_.U([_.K("videoLockups"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],j$.prototype,"hasVideoLockups",null);_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j$.prototype,"onIronResize",null);
_.U([_.K("data","scrollCount"),_.W("design:type",Object),_.W("design:paramtypes",[])],j$.prototype,"infoRows",null);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j$.prototype,"dataChanged",null);j$=_.U([_.Q({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],j$);
_.S(j$,"ytd-video-description-music-section-renderer",function(){if(nid!==void 0)return nid;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-music-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-music-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-music-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="video-lockups" hidden="[[!hasVideoLockups]]" class="style-scope ytd-video-description-music-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="left-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atStart]]"></div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-music-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-music-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="right-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atEnd]]"></div>\n  </div>\n</div>\n<div id="info-rows" class="style-scope ytd-video-description-music-section-renderer"></div>\n<a id="premium-upsell-link" class="yt-simple-endpoint style-scope ytd-video-description-music-section-renderer" aria-label$="[[data.premiumUpsellLink.title.accessibility.accessibilityData.label]]" hidden="[[!data.premiumUpsellLink]]" href$="[[computeOptionalHref_(data.premiumUpsellLink.navigationEndpoint)]]" title$="[[getSimpleString(data.premiumUpsellLink.title)]]" data="[[data.premiumUpsellLink.navigationEndpoint]]">\n  <yt-formatted-string id="premium-upsell-text" text="[[data.premiumUpsellLink]]" class="style-scope ytd-video-description-music-section-renderer">\n  </yt-formatted-string>\n</a>\n<div id="topic-link" class="style-scope ytd-video-description-music-section-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return nid=a},{mode:_.as("kevlar_poly_si_batch_j081")?1:2});var pid;var qid=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.w("kevlar_modern_sd_v2");a.modernTypography=_.w("web_modern_typography");return a};
_.z(qid,_.P);qid.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var k$=qid;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],k$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],k$.prototype,"ytRendererBehavior",void 0);_.U([_.O({}),_.W("design:type",Object)],k$.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],k$.prototype,"modern",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],k$.prototype,"modernTypography",void 0);
k$=_.U([_.Q({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],k$);
_.S(k$,"ytd-video-description-transcript-section-renderer",function(){if(pid!==void 0)return pid;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-transcript-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="sub-header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <p id="sub-header-text" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.subHeaderText)]]</p>\n</div>\n<div id="button-container" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="primary-button" class="style-scope ytd-video-description-transcript-section-renderer"></div>\n</div>\n\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return pid=a},{mode:1});var rid;_.Ts(_.Rr(function(a){var b=_.tu(_.EXa,function(){return a.data().firstProviderLinkStatusEntityKey}),c=_.tu(_.EXa,function(){return a.data().secondProviderLinkStatusEntityKey}),d=function(){var e,g;
return((e=b())==null?void 0:e.linked)||((g=c())==null?void 0:g.linked)};
return _.q("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.q(_.tt,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return a.data().sectionTitle}}),_.q(_.tt,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return d()?a.data().connectedMessage:a.data().notConnectedMessage}}),_.q(_.qi,{cond:d,
then:function(){return _.q(_.Hu,{data:function(){return a.data().connectedButton}},{buttonViewModel:function(e){return _.q(_.Qu,{data:e.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.q(_.qi,{cond:function(){return!d()},
then:function(){return _.q(_.Hu,{data:function(){return a.data().notConnectedButton}},{buttonViewModel:function(e){return _.q(_.Qu,{data:e.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Gh"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.VG}});_.Ts(_.Rr(function(a){var b=a.data;return _.q("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.q("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.q(_.tt,{text:function(){return b().sectionTitle}})),_.q("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.q(_.tt,{text:function(){return b().bodyHeader}})),_.q("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.q(_.tt,{text:function(){return b().bodyText}})),_.q(_.qi,
{cond:function(){return b().attributionText},
then:function(){return _.q("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.q(_.tt,{text:function(){return b().attributionText}}))}}))},"Hh"),"how-this-was-made-section-view-model",{props:{data:_.VG}});_.Ts(_.Rr(function(a){return _.q("yt-video-description-youchat-section-view-model",{class:_.et("ytVideoDescriptionYouchatSectionViewModelHost")},_.q("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.q(_.tt,{text:function(){return a.data().sectionTitle}})),_.q("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.q(_.tt,{text:function(){return a.data().subHeaderText}})),_.q("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.q(_.Qu,{data:function(){return _.y(a.data().primaryButton,
_.Iu)}})))},"Ih"),"yt-video-description-youchat-section-view-model",{props:{data:_.VG}});var sid=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.w("kevlar_modern_sd_v2");a.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return a};
_.z(sid,_.P);_.f=sid.prototype;
_.f.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{videoDescriptionHeaderRenderer:{component:"ytd-video-description-header-renderer",properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[watchWhileSdp]]",engagementPanel:"[[engagementPanel]]"}},expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{panelContentVisible:"[[panelContentVisible]]",hasDescriptionOnly:"[[hasDescriptionOnly]]",engagementPanel:"[[engagementPanel]]",
shortsPanel:"[[shortsPanel]]"}},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{engagementPanelContent:!0}},merchandiseShelfRenderer:"ytd-merch-shelf-renderer",videoDescriptionCourseSectionRenderer:"ytd-video-description-course-section-renderer",videoDescriptionFilesSectionRenderer:"ytd-video-description-files-section-renderer",
videoDescriptionTranscriptSectionRenderer:"ytd-video-description-transcript-section-renderer",videoDescriptionFantasySectionViewModel:"ytw-video-description-fantasy-section-view-model",videoDescriptionGamingSectionRenderer:"ytd-video-description-gaming-section-renderer",videoDescriptionInfocardsSectionRenderer:{component:"ytd-video-description-infocards-section-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoDescriptionMusicSectionRenderer:{component:"ytd-video-description-music-section-renderer",
properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},errorCorrectionsSectionRenderer:"ytd-error-corrections-section-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},shelfRenderer:"ytd-shelf-renderer",courseProgressViewModel:"yt-course-progress-view-model",howThisWasMadeSectionViewModel:"how-this-was-made-section-view-model",videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoDescriptionYouchatSectionViewModel:"yt-video-description-youchat-section-view-model"}},
videoSummary:{id:"video-summary",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},merchShelf:{id:"merch-shelf",mapping:{merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",params:{watchMetadataRefresh:!0,inStructuredDescription:!0}}}}}};
_.f.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.f.dataChanged=function(){var a,b;this.hasDescriptionOnly=!(((a=this.data)==null?void 0:(b=a.items)==null?void 0:b.length)!==1||!_.y(this.data.items[0],ned))};
_.f.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.f.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.f.autoFocusDescription=function(){var a;((a=_.v().resolve(_.Xi(_.Bu)))==null?0:a.isKeyBoardInUse())&&this.description&&_.Pk(this.description)};
_.f.resize=function(){if(_.w("kevlar_disable_sd_resize"))this.JSC$19913_cardList&&_.io(this.JSC$19913_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.io(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.io(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.f.scrollToSection=function(a){if(a=this.getSectionElement(a))_.lo(this.hostElement,"yt-scroll-to-watch-element",[a]),a.focus()};
_.f.getSectionElement=function(a){switch(a){case "infocards-item-section":var b;return(b=this.infocardsSection)!=null?b:null;case "transcript-item-section":var c;return(c=this.transcriptSection)!=null?c:null;case "how-this-was-made-section-item-section":var d;return(d=this.howThisWasMadeSection)!=null?d:null;case "files-item-section":var e;return(e=this.filesSection)!=null?e:null;default:return null}};
_.f.handleSetActiveItemAction=function(a){var b=_.y(a,Jdd),c=b&&(b==null?void 0:b.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$19913_cardList;if(b&&c){a=this.currentActiveChapter;var d=this.currentActiveProblem;b=c==null?void 0:c.getItemByIndex(b.itemIndex);var e=c=!0;b&&(b.active=!0,b.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(c=a!==b,e=!1,this.currentActiveChapter=b):(b==null?void 0:b.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(c=!1,e=d!==b,this.currentActiveProblem=b));a&&c&&(a.active=!1);d&&e&&(d.active=!1)}};
_.Um.Object.defineProperties(sid.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.w("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
var l$=sid;l$.prototype.onYtExpanderMoreTapped=l$.prototype.onYtExpanderMoreTapped;l$.prototype.onHiddenChanged=l$.prototype.onHiddenChanged;l$.prototype.dataChanged=l$.prototype.dataChanged;l$.prototype.panelContentVisibleChanged=l$.prototype.panelContentVisibleChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],l$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],l$.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],l$.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.OD),_.W("design:type",Object)],l$.prototype,"ironResizableBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],l$.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],l$.prototype,"panelContentVisible",void 0);_.U([_.O(),_.W("design:type",Boolean)],l$.prototype,"hasDescriptionOnly",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],l$.prototype,"inlineStructuredDescription",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],l$.prototype,"hidden",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],l$.prototype,"shortsPanel",void 0);_.U([_.O(),_.W("design:type",Object)],l$.prototype,"videoSummary",void 0);_.U([_.O(),_.W("design:type",Object)],l$.prototype,"merchShelf",void 0);
_.U([_.K("videoSummary"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],l$.prototype,"showVideoSummary",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],l$.prototype,"modern",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],l$.prototype,"engagementPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],l$.prototype,"watchWhileSdp",void 0);
_.U([_.ir("ytd-expandable-video-description-body-renderer"),_.W("design:type",Object)],l$.prototype,"description",void 0);_.U([_.ir("ytd-horizontal-card-list-renderer"),_.W("design:type",Object)],l$.prototype,"JSC$19913_cardList",void 0);_.U([_.ir("ytd-horizontal-card-list-renderer[center-items]"),_.W("design:type",Object)],l$.prototype,"problemWalkthroughCardList",void 0);_.U([_.ir("ytd-shelf-renderer"),_.W("design:type",Object)],l$.prototype,"shelfSection",void 0);
_.U([_.ir("ytd-video-description-music-section-renderer"),_.W("design:type",Object)],l$.prototype,"musicMetadataSection",void 0);_.U([_.ir("ytd-video-description-infocards-section-renderer"),_.W("design:type",Object)],l$.prototype,"infocardsSection",void 0);_.U([_.ir("ytd-video-description-transcript-section-renderer"),_.W("design:type",Object)],l$.prototype,"transcriptSection",void 0);
_.U([_.ir("how-this-was-made-section-view-model"),_.W("design:type",Object)],l$.prototype,"howThisWasMadeSection",void 0);_.U([_.ir("ytd-video-description-files-section-renderer"),_.W("design:type",Object)],l$.prototype,"filesSection",void 0);_.U([_.N("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],l$.prototype,"panelContentVisibleChanged",null);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],l$.prototype,"dataChanged",null);_.U([_.N("hidden"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],l$.prototype,"onHiddenChanged",null);_.U([_.M("yt-expander-more-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],l$.prototype,"onYtExpanderMoreTapped",null);
l$=_.U([_.Q({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],l$);
_.S(l$,"ytd-structured-description-content-renderer",function(){if(rid!==void 0)return rid;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-summary" hidden="[[!showVideoSummary]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="merch-shelf" hidden="[[!merchShelf]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="items" class="style-scope ytd-structured-description-content-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return rid=a},{mode:2});var tid;var uid;var vid=function(){return _.P.apply(this,arguments)||this};
_.z(vid,_.P);vid.prototype.computeAriaLabel=function(a){var b,c;return(a==null?void 0:(b=a.accessibility)==null?void 0:(c=b.accessibilityData)==null?void 0:c.label)||_.vo("LOADING",void 0,"Loading")};
var m$=vid;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],m$.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],m$.prototype,"data",void 0);_.U([_.O({computed:"computeAriaLabel(data)"}),_.W("design:type",String)],m$.prototype,"ariaLabel",void 0);m$=_.U([_.wr({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],m$);
_.S(m$,"yt-content-loading-renderer",function(){if(uid===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-content-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_content_loading_renderer.yt.content.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[data.useSpinner]]" alt="[[ariaLabel]]" class="style-scope yt-content-loading-renderer">\n</tp-yt-paper-spinner>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;tid===void 0&&(tid=document.createElement("template"));var d=tid;c.call(b,d.content.cloneNode(!0),a.content.firstChild);uid=a}a=uid;return a},{mode:_.as("kevlar_poly_si_batch_j043")?1:2});var wid=_.Rr(function(a){var b=a.data;a=_.Pl();_.Zu(a,function(){return b().rendererContext});
var c=function(){var d;return _.Xu((d=b())==null?void 0:d.rendererContext)};
return _.q("content-list-item-view-model",{el:a,class:"ytContentListItemViewModelHost",role:function(){return c()?"listitem":void 0},
tabindex:function(){return c()?0:void 0}},_.q("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.q("div",{class:"ytContentListItemViewModelImageContainer"},_.q(_.qi,{cond:function(){return b().image},
then:function(d){return _.q(_.Ps,{data:d,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.q(_.Hu,{data:function(){var d;
return(d=b())==null?void 0:d.avatar}},{avatarViewModel:_.QK})),_.q("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.q("div",{class:"ytContentListItemViewModelTitle"},_.q(_.tt,{text:function(){return b().title}})),_.q("div",{class:"ytContentListItemViewModelMetadata"},_.q(_.Hu,{data:function(){return b().metadata}},{contentMetadataViewModel:function(d){return _.q(_.z0b,{data:d.data,
layout:1})}})))),_.q("div",{class:"ytContentListItemViewModelActionButton"},_.q(_.Hu,{data:function(){var d;
return(d=b())==null?void 0:d.actionButton}},{buttonViewModel:_.Qu,
toggleButtonViewModel:_.Ku})))},"Jh");_.Ts(_.Rr(function(a){var b=_.h(_.ih(!1,void 0,"WbYeXc")),c=b.next().value,d=b.next().value;b=_.h(_.ih(!1,void 0,"msXkzc"));var e=b.next().value,g=b.next().value;_.wi(function(){var n=_.y(a.data().collaboratePlaylistCollaborationSetting,ced);n&&d(n.switchedOnByDefault);var r=_.y(a.data().allowNewCollaboratorsPlaylistCollaborationSetting,ced);r&&g(r.switchedOnByDefault);if(!n&&!r||!n&&a.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")d(!0),g(!0)});
var k=function(n){d(n);g(n);var r=a.data().playlistCollaborationEntityKey||"";var t=_.Kr().getState();(t=_.np(t.entities,"playlistCollaborationEntity",r))&&(t==null?void 0:t.isCollaborative)===n||_.Kr().dispatch(_.wu("playlistCollaborationEntity",r,Object.assign({},t,{isCollaborative:n})))},m=function(n){g(n)};
return _.q("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.q("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.q(_.Hu,{data:function(){return a.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(n){return _.q(_.F$b,{data:n.data,
onSwitch:k})}})),_.q(_.qi,{cond:c,
then:function(){return _.q("div",null,_.q("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.q(_.Hu,{data:function(){return a.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(n){return _.q(_.F$b,{data:n.data,
onSwitch:m,overrideDisabled:!1})}})),_.q(_.qi,{cond:e,
then:function(){return _.q("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.q(_.Hu,{data:function(){return a.data().copyLinkButton}},{buttonViewModel:_.Qu}))}}),_.q("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.q(_.Hu,{data:function(){return a.data().playlistCollaborators}},{contentListItemViewModel:wid})))}}))},"Kh"),"playlist-collaboration-view-model",{props:{data:_.VG}});var xid=_.Rr(function(a){var b=a.data;var c=a.customCommandResolver;return _.q(_.Wh,null,_.q("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.q(_.Hu,{data:function(){return b().adAvatar}},{adAvatarViewModel:function(d){return _.q(_.F0b,{data:d.data,
customCommandResolver:c})}})),_.q("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.q(_.qi,{cond:function(){return b().headline},
then:function(d){return _.q(_.tt,{text:d,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.q("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.q(_.Hu,{data:function(){return b().adBadge}},{adBadgeViewModel:function(d){return _.q(_.xL,{data:d.data,
hasDot:function(){return b().primaryDetailsLine!==void 0},
customCommandResolver:c,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.q(_.Hu,{data:function(){return b().primaryDetailsLine}},{adDetailsLineViewModel:function(d){return _.q(_.yL,{data:d.data,
customCommandResolver:c,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Lh"),yid=_.Rr(function(a){var b=a.data;
var c=a.customCommandResolver;a=_.Pl();_.gv(a,function(){return b().interaction},c);
_.Yl(a,{visibilityCallback:function(d){var e,g=(e=b().interaction)==null?void 0:e.onFirstVisible;d&&g&&_.Gs(g)},
showOption:_.sL});return _.q("ad-avatar-lockup-view-model",{class:function(){var d;return((d=b().interaction)==null?0:d.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:a,"aria-label":function(){var d,e;return(d=b().interaction)==null?void 0:(e=d.accessibility)==null?void 0:e.label}},_.q(_.ti,null,_.q(_.si,{when:function(){return b().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.q(xid,{data:b,
customCommandResolver:c})}),_.q(_.Pna,null,function(){return null})))},"Mh");_.Ts(_.Rr(function(a){var b=a.data;var c=a.panelContentVisibility;a=_.Pl();_.gv(a,function(){return b().interaction},Pcd);
_.Yl(a,{visibilityCallback:function(e){var g,k=(g=b().interaction)==null?void 0:g.onFirstVisible;e&&k&&_.Gs(k)},
showOption:_.sL});_.yh(function(){var e,g;if(g=_.Ji("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var k;g=(k=g())==null?void 0:k.onLayoutVisibleCallback}else g=null;(e=g)==null||e()},"tVerqb");
var d=function(){return c()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.q("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:a},_.q("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.q("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.q(_.qi,{cond:_.x2a("(min-width: "+((0,_.LW)()+_.N8)+"px) or (max-width: 600px)"),then:function(){return _.q(_.Hu,{data:function(){return b().adImage}},{adImageViewModel:function(e){return _.q(_.BN,{data:e.data,
targetHeight:80,customCommandResolver:Pcd})}})}})),_.q("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.q("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.q(_.Hu,{data:function(){return b().adAvatarLockup}},{adAvatarLockupViewModel:function(e){return _.q(yid,{data:e.data,
customCommandResolver:Pcd})}})),_.q(_.qi,{cond:d,
then:function(){return _.q(_.Hu,{data:function(){return b().adButton}},{adButtonViewModel:function(e){return _.q(_.uL,{data:e.data,
customCommandResolver:Pcd})}})},
else:function(){return _.q(_.Hu,{data:function(){return b().menu}},{buttonViewModel:_.Qu})}}),_.q("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.q(_.Hu,{data:function(){var e=_.y(b().toggleButton,_.Ju);
return{toggleButtonViewModel:Object.assign({},e,{isTogglingDisabled:!0,isToggled:d()})}}},{toggleButtonViewModel:_.Ku})))))},"Nh"),"panel-ad-header-image-lockup-view-model",{props:{data:_.VG,
panelContentVisibility:_.VG}});var zid=_.Rr(function(a){var b=a.thumbsUp;a=a.thumbsDown;var c=_.h(_.ih(!1,void 0,"OxPsH")),d=c.next().value,e=c.next().value;c=_.h(_.ih(!1,void 0,"V5vWne"));var g=c.next().value,k=c.next().value;return _.q("div",{class:"ytwThumbsUpDownThumbs"},_.q(_.Ku,{data:b,onToggle:function(m){e(m);g()&&k(!1)},
buttonShapeOverrides:function(){return{toggled:d()}}}),_.q(_.Ku,{data:a,
onToggle:function(m){k(m);d()&&e(!1)},
buttonShapeOverrides:function(){return{toggled:g()}}}))},"Oh");
zid.idomCompat=!0;var Bid=_.Rr(function(a){var b=function(){return a.data().pendingStateEntityKey||""},c=_.tu(Qcd,b),d=function(){var e;
if(!(e=a.disabled())){var g;e=!((g=c())==null||!g.isPendingResponse)}return e};
return _.q("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.q(_.ri,{each:function(){return a.data().chipData||[]},
keyBy:"REFERENCE"},function(e){return _.q(Aid,{data:e,disabled:d,pendingStateKey:b,onError:a.onError})}))},"Ph"),Aid=_.Rr(function(a){var b=_.Pl(),c=_.h(_.ih(!0,void 0,"HBREAe")),d=c.next().value,e=c.next().value,g=function(){return a.data().text.content},k=_.lt(function(m){var n,r,t,u,x,A,C,F;
return _.l(function(J){switch(J.nextAddress){case 1:m.stopPropagation();if(a.disabled())return J.return();r=String(Math.floor(((n=_.v().resolve(_.lu)())==null?void 0:n.getCurrentTime())||0)*1E3);t="youchat-"+Date.now();u=function(){_.Es(a.data().onClick||{});var I=_.dl({continuationCommand:{token:a.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}),R={inputComposerFormData:{clientMessageId:t,playerOffsetMs:r}};return new Promise(function(da,V){_.Es(I,{form:{formData:R},commandController:{onSuccess:function(fa,
aa){da(aa)},
onServerError:function(fa,aa){V(aa.error)}}})})};
x=Rcd(a.pendingStateKey());x(!0);tcd("#youchat-input, ytd-engagement-panel-section-list-renderer #footer yt-chat-input-view-model textarea, ytm-engagement-panel-section-list-renderer .engagement-panel-section-list-footer-wrapper yt-chat-input-view-model button");e(!1);_.pe(J,2);return _.p(J,u(),4);case 4:_.Jj(J,3);break;case 2:A=_.te(J),(F=(C=a).onError)==null||F.call(C,A);case 3:x(!1),_.ue(J)}})});
return _.q(_.qi,{cond:d,then:function(){return _.q("div",{class:"ytwYouChatChipsDataChipWrapper"},_.q("button",{el:b,class:"ytwYouChatChipsDataChip","data-disabled":a.disabled,"on:click":k,tabindex:0},g))}})},"Qh");var Cid=_.Rr(function(a){var b=a.data;return _.q("yt-conversation-resource-view-model",{class:_.et("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.q(_.qi,{cond:function(){var c;return(c=b().conversationResourceData)==null?void 0:c.learningGuideData},
then:function(c){return _.q(_.ri,{each:function(){return c().sectionData||[]}},function(d){return _.q("div",{class:"ytConversationResourceViewModelHostSectionContainer"},_.q(_.tt,{text:function(){return d.timestamp},
className:"ytConversationResourceViewModelHostTimestampText"}),_.q("div",{class:"ytConversationResourceViewModelHostSectionTextContainer"},_.q(_.tt,{text:function(){return d.title},
className:"ytConversationResourceViewModelHostTitleText"}),_.q(_.tt,{text:function(){return d.summary},
className:"ytConversationResourceViewModelHostSummaryText"})))})}}))},"Rh");
Cid.idomCompat=!0;var Did={animationConfig:{autoplay:!1,loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}},Eid=_.Rr(function(a){var b=function(){var J;return(J=a.data().text)==null?void 0:J.content},c=function(){var J,I;
return(J=a.data().webData)==null?void 0:(I=J.textResult)==null?void 0:I.content},d=_.v().resolve(_.Ms),e=_.nu(),g=function(){return a.data().chatResponseStyle},k=function(){var J;
return a.data().webData||((J=a.data().text)==null?void 0:J.content)||a.data().videoResultsData||a.data().conversationResourceViewModel},m=function(){var J;
return(J=a.data().videoResultsData)==null?void 0:J.videoShelf},n=function(){var J;
return _.y(((J=a.data().videoResultsData)==null?void 0:J.videoShelf)||{},bed)},r=function(){var J;
return(J=a.data().webData)==null?void 0:J.sourcesShelf},t=function(){var J;
return _.y(((J=a.data().webData)==null?void 0:J.sourcesShelf)||{},bed)},u=function(){return _.y(a.data().conversationResourceViewModel||{},ped)},x=function(){return g()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||g()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:a.data().thumbsDownViewModel&&a.data().thumbsUpViewModel},A=function(){return _.y(a.data().thumbsUpViewModel,_.Ju)},C=function(){return _.y(a.data().thumbsDownViewModel,_.Ju)};
_.pi(function(){requestAnimationFrame(function(){var J;(J=a.shouldAnimateIcon)!=null&&J.call(a)&&Ucd(e.lottieEl)})});
var F={};return _.q("you-chat-item-view-model",{class:_.et("ytwYouChatItemViewModelYouChatItemViewModel",(F.ytwYouChatItemViewModelHostNoPadding=function(){return!1},F)),
"data-target-id":function(){return a.data().id||""}},_.q(_.qi,{cond:k,
then:function(){var J={};return _.q("div",{"aria-hidden":"true"},_.q(_.gt,{className:_.et("ytwYouChatItemViewModelIcon",(J.ytwYouChatItemViewModelRtl=d==="rtl",J.ytwYouChatItemViewModelHidden=function(){return!(a.data().hideIcon||g()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||g()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:k())},J)),
animationName:function(){return Did.animationConfig.name},
data:Did,animationRef:e}))}}),_.q(_.qi,{cond:k,
then:function(){var J={};return _.q("div",{class:_.et("ytwYouChatItemViewModelHost",(J.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return g()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},J.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return g()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},J.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return g()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},J)),
role:"alert"},_.q(_.qi,{cond:b,then:function(I){return _.q(_.GQ,{text:I})}}),_.q(_.qi,{cond:c,
then:function(I){return _.q(_.GQ,{text:I})}}),_.q(_.qi,{cond:m,
then:function(){return _.q("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.q(_.FQ,{data:n,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.q(_.qi,{cond:r,
then:function(){return _.q("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.q(_.FQ,{data:t,hasPeek:!0,disableArrows:!1}))}}),_.q(_.qi,{cond:u,
then:function(){return _.q(Cid,{data:u})}}),_.q(_.qi,{cond:x,
then:function(){return _.q(zid,{thumbsUp:A,thumbsDown:C})}}))}}),_.q(_.qi,{cond:function(){return a.data().chipsData},
then:function(J){return _.q(Bid,{data:J,disabled:a.pending,onError:a.onError})}}))},"Sh");
Eid.idomCompat={callbacks:{onError:!0,onSend:!0}};var Fid=_.Rr(function(a){var b=function(){return a.data().choiceSelectedText};
return _.q("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.q(_.qi,{cond:b,then:function(){return _.q("div",{class:"ytYouChatUserTurnChoiceSelected"},_.q(_.tt,{text:b}))}}),_.q("div",{class:"ytYouChatUserTurnUserMessage"},function(){return a.data().text}))},"Th");var Gid=_.Rr(function(a){var b=_.h((0,_.E3b)(a.data)).next().value;return _.q("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return a.data().targetId||""}},_.q(_.Hu,{data:function(){return b().contents}},{chatLoadingViewModel:_.nsc,
youChatItemViewModel:function(c){return _.q(Eid,{data:c.data,pending:!1})},
chatUserTurnViewModel:function(c){return _.q(Fid,{data:c.data})},
accordionViewModel:function(c){return _.q(_.V$b,{data:c.data})},
learningJourneyLoaderViewModel:function(c){return _.q(_.R$b,{data:c.data})}}))},"Uh");_.Ts(_.Rr(function(a){var b=_.h((0,_.E3b)(a.data)).next().value;return _.q("yt-section-list-renderer",{class:_.et("ytSectionListRendererHost",a.className),"data-target-id":function(){return a.data().targetId||""}},_.q(_.Hu,{data:function(){return b().contents}},{itemSectionRenderer:Gid}))},"Vh"),"yt-section-list-renderer",{props:{data:_.VG,
className:_.Ss}});_.Ts(_.Rr(function(a){var b=function(){return _.y(a.data().inputComposerViewModel,ded)},c=function(){var F;
return((F=b())==null?void 0:F.youchatPendingResponseEntityKey)||""},d=_.tu(Qcd,c),e=function(){var F;
return!((F=d())==null||!F.isPendingResponse)},g=_.h(_.ih(!0,void 0,"DR0q1d")),k=g.next().value,m=g.next().value;
g=_.Ql();var n=_.Pl(),r=_.tu(Scd,"chat_input_view_model_state"),t=Tcd(),u=function(){var F;return!((F=r())==null||!F.value)};
_.wi(function(){var F;!u()&&((F=b())==null?0:F.welcomeFeatureContinuation)&&(F=_.dl({continuationCommand:{token:b().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}),_.Es(F),t(!0));var J;(J=_.v().resolve(_.Xi(_.rG)))==null||J.addEventListener("yt-navigate-start",function(){_.Eu.remove("youchat_messages_section");t(!1)},{once:!0})});
var x=_.lt(function(F){var J=e()||!1;Vcd(n.value);J||F.key!=="Enter"||F.shiftKey||(F.preventDefault(),C());return!1}),A=_.lt(function(){m(n.value.value.length===0);
return!1}),C=function(){var F,J,I,R,da,V,fa,aa,ma;
return _.l(function(Ba){F=n.value.value;n.value.value="";Vcd(n.value);J={listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:F}}],insertByPositionInSection:{sectionTargetId:"youchat_messages_section",position:"INSERTION_POSITION_LAST"}}}]}}};_.Es(J);I=Rcd(c());_.Gs(((R=b())==null?void 0:R.onSubmitCommand)||{});I(!0);V=String(Math.floor(((da=_.v().resolve(_.lu)())==null?void 0:da.getCurrentTime())||0)*1E3);aa=_.dl({continuationCommand:{token:(fa=
b())==null?void 0:fa.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}});ma=_.dl({inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:F,playerOffsetMs:V}});_.Es(aa,{form:{formData:ma},commandController:{onSuccess:function(){I(!1)},
onServerError:function(){_.Es({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:"youchat_messages_section"}}]}}});I(!1)}}});
_.ue(Ba)})};
return _.q("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:g},_.q("div",{class:"chatInputViewModelChatInputWrapper"},_.q("form",{class:"chatInputViewModelChatInputForm"},_.q("textarea",{class:"chatInputViewModelChatInput",el:n,"on:keydown":x,"on:keyup":A,placeholder:function(){var F,J;var I=_.y((J=b())==null?void 0:J.inputFormField,Gdd);return I==null?void 0:(F=I.contentProperties)==null?void 0:F.placeholderText},
rows:1}),_.q(_.Qu,{data:function(){return _.y(a.data().sendButton,_.Iu)},
onClick:function(F){F.preventDefault();C();m(n.value.value.length===0)},
buttonOverrides:function(){return{disabled:k()||e()}}})),_.q(_.tt,{className:"chatInputViewModelChatDisclaimer",
text:function(){var F;return(F=_.y(a.data().disclaimer,_.IEb))==null?void 0:F.text}})))},"Wh"),"yt-chat-input-view-model",{props:{data:_.VG}});var Hid=["engagement-panel-clip-create","engagement-panel-clip-view"],Iid=0,Jid=function(){var a=_.P.apply(this,arguments)||this;var b;a.headerData=(b=a.data)==null?void 0:b.header;a.darkerPanels=_.w("web_watch_darker_panels");a.disableAutoFill=!1;a.isFullscreen=!1;a.modernPanels=_.w("kevlar_watch_modern_panels");a.liveChatReplyPanel=!1;a.enableAnchoredPanel=_.w("desktop_shorts_v2_anchored_panel");a.disableBackdropFilter=_.w("web_disable_backdrop_filter");a.trackEngagementPanelVisibility=_.w("web_watch_track_engagement_panel_visibility");
a.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction","yt-scroll-to-engagement-panel-command":"onYtScrollToEngagementPanelCommand","yt-update-engagement-panel-action":"onYtUpdateEngagementPanelAction","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction"};return a};
_.z(Jid,_.P);_.f=Jid.prototype;
_.f.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(a){a=
a==null?void 0:a.contents;if(!a||a.length<1)return"ytd-section-list-renderer";var b,c;a=(b=a[0])==null?void 0:(c=b.itemSectionRenderer)==null?void 0:c.contents;if(!a||a.length<1)return"ytd-section-list-renderer";var d;return((d=a[0])==null?0:d.youChatItemViewModel)?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.f.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var a;if((a=this.hostElement.parentElement)==null?0:a.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.f.detached=function(){this.updateTheaterDisablement()};
_.f.showPanel=function(){var a=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.zk.addJob(function(){a.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.f.maybeScrollToItemSection=function(a){var b=this,c,d=a==null?void 0:(c=a.sectionListEngagementPanelExtras)==null?void 0:c.scrollToItemSectionIdentifier;d&&_.zk.addJob(function(){var e;(e=b.sectionListRendererElement)==null||e.scrollToItemSection(d)},8)};
_.f.hidePanel=function(){var a=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.zk.addJob(function(){a.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.f.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.f.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.f.updatePanel=function(a,b,c,d){var e=this;if((a=a==null?void 0:a.engagementPanelSectionListRenderer)||d){if(a){d=a.header;var g=a.content,k=a.footer;(a=a.targetId)&&this.set("data.targetId",a);d&&this.set("data.header",d);g&&this.set("data.content",g);k&&this.set("data.footer",k)}else d&&(a=d.content,g=d.secondaryHeaderContent,(d=d.targetId)&&this.set("data.targetId",d),a&&this.set("data.content",a),g&&(this.secondaryHeaderData=g));this.updateChildVisibilityProperties();if(b){var m;_.w("kevlar_update_panel_focus_scroll_killswitch")||
(m={preventScroll:!0});this.focus(m)}_.Qm(this,function(){_.io(e.hostElement,"yt-refit");e.maybeScrollToItemSection(c)})}};
_.f.computeHeaderData=function(){var a,b=(0,_.Cf.unsafeClone)((a=this.data)==null?void 0:a.header);if(b){a=new _.X(Object.keys(b)[0]);var c=_.y(b,a),d=_.y(this.secondaryHeaderData,a);d&&_.ys(b,a,Object.assign({},d,c))}return b};
_.f.getReloadContinuation=function(){var a,b,c,d=_.h(((a=this.data)==null?void 0:(b=a.content)==null?void 0:(c=b.sectionListRenderer)==null?void 0:c.continuations)||[]);for(a=d.next();!a.done;a=d.next())if(a=a.value,a.reloadContinuationData)return a.reloadContinuationData.continuation};
_.f.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var a;((a=this.data)==null?0:a.targetId)&&(a=this.contentElement.firstElementChild)&&a.setAttribute("panel-target-id",this.data.targetId)};
_.f.forwardPopupClosedToFlowRootRenderer=function(){var a=_.E(this.hostElement).querySelector("ytd-flow-root-renderer");if(a)a.onPopupClosed()};
_.f.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));if(_.w("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"){var a;this.visibility=(a=this.data)==null?void 0:a.visibility;var b;this.trackEngagementPanelVisibility&&((b=this.data)==null?void 0:b.visibility)===
"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var c,d,e,g;this.contentEmpty=!!(((c=this.data)==null?0:(d=c.content)==null?0:d.structuredDescriptionContentRenderer)&&Object.keys((e=this.data)==null?void 0:(g=e.content)==null?void 0:g.structuredDescriptionContentRenderer).length===0);(a=_.v().resolve(_.JJ))&&a.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",
this.visibility=this.data.visibility};
_.f.isFullscreenChanged=function(){this.isFullscreen&&_.w("web_watch_close_eps_on_fullscreen")&&this.hidePanel()};
_.f.focus=function(a){if(this.header)this.header.focus(a);else{var b;(b=_.E(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||b.focus(a)}};
_.f.visibilityChanged=function(){if(!_.w("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var a=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",b=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",c=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",d=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",e=d||!this.lastVisibility,g,k,m=(g=this.data)==null?void 0:(k=g.identifier)==null?void 0:k.tag,
n;if(((n=this.data)==null?0:n.onShowCommands)&&a&&e)_.po(this.hostElement,this.data.onShowCommands,this.hostElement),m&&_.Yp().dispatch(_.hp({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:m}}));else{var r;((r=this.data)==null?0:r.onHideCommands)&&b&&c&&(_.po(this.hostElement,this.data.onHideCommands,this.hostElement),m&&_.Yp().dispatch(_.hp({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:m}})))}a&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*Iid++));_.w("kevlar_watch_focus_on_engagement_panels")&&
a&&d&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.f.notifyVisibilityChanged=function(a){var b;_.mo(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,a,(b=this.data)==null?void 0:b.targetId])};
_.f.updateTheaterDisablement=function(){if(!_.w("kevlar_watch_theater_disablement_killswitch")){var a=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&Hid.includes(a)&&!_.w("watch_next_grid_ignore_disallowed_panels")){var b=_.JW(_.Yp().getState()),c=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";a!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():c?(this.originalTheaterState===void 0&&(this.originalTheaterState=b,this.theaterDisablementPanelIdentifier=
a),b&&_.lo(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.f.clearTheaterDisablement=function(){_.lo(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.f.updateChildVisibilityProperties=function(){this.hostElement||_.w("kevlar_panel_property_init_killswitch")||this._enableProperties();var a=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=a);var b,c=(b=this.headerElement)==null?void 0:b.firstElementChild;if(c&&!this.adHeaderImageLockupViewModel){b=a==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";c.collapsed=b;c=_.E(c).querySelector("#visibility-button");if(!c)return;(c=c.firstElementChild)&&
c.polymerController.is==="ytd-toggle-button-renderer"&&c.polymerController.data.isToggled!==b&&c.polymerController.set("data.isToggled",b)}var d;if(b=(d=this.contentElement)==null?void 0:d.firstElementChild)if(a&&a!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")b.removeAttribute("panel-content-visible");else{b.setAttribute("panel-content-visible","");var e;(e=b.markDirty)==null||e.call(b)}};
_.f.onYtChangeEngagementPanelVisibilityAction=function(a){var b=this,c,d=(c=this.data)==null?void 0:c.targetId,e,g,k;c=((e=this.data)==null?void 0:(g=e.identifier)==null?void 0:g.tag)||((k=this.data)==null?void 0:k.panelIdentifier);var m=_.y(a,_.Uzb),n;a=d&&(m==null?void 0:m.targetId)===d||c&&(m==null?void 0:(n=m.panelIdentifier)==null?void 0:n.tag)===c;this.dialog&&a&&(m==null?void 0:m.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(d==="engagement-panel-comments-section"?_.lo(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.lo(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",c]));d=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";n=this.isFullscreen&&_.w("kevlar_single_panel_fullscreen");d=!a&&(m==null?void 0:m.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&!d&&n;_.w("kevlar_use_engagement_panel_management_component")||(a?(d=m.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&
!d?_.zk.addJob(function(){b.visibility=m.visibility},2,this.hideDelayMs):this.visibility=m.visibility,m.visibility&&this.notifyVisibilityChanged(m.visibility)):d&&this.hidePanel())};
_.f.onYtScrollToEngagementPanelCommand=function(a){var b,c=(b=this.data)==null?void 0:b.targetId,d,e,g;b=((d=this.data)==null?void 0:(e=d.identifier)==null?void 0:e.tag)||((g=this.data)==null?void 0:g.panelIdentifier);a=_.y(a,_.eAb);var k;(c&&(a==null?void 0:a.targetId)===c||b&&(a==null?void 0:(k=a.panelIdentifier)==null?void 0:k.tag)===b)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.lo(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.f.attachVEs=function(a){var b,c;(a==null?0:(b=a.content)==null?0:(c=b.productListRenderer)==null?0:c.trackingParams)&&_.ls().graftServerVe(a.content.productListRenderer.trackingParams);var d,e;(a==null?0:(d=a.content)==null?0:(e=d.transcriptRenderer)==null?0:e.trackingParams)&&_.ls().graftServerVe(a.content.transcriptRenderer.trackingParams)};
_.f.onYtUpdateEngagementPanelAction=function(a){var b,c=(b=this.data)==null?void 0:b.targetId;a=_.y(a,Ldd);c&&(a==null?void 0:a.targetId)===c&&(this.updatePanel({engagementPanelSectionListRenderer:{header:a==null?void 0:a.header,content:a==null?void 0:a.content}},!1),this.attachVEs(a))};
_.f.onYtShowEngagementPanelScrimAction=function(a){var b,c=(b=this.data)==null?void 0:b.targetId;a=_.y(a,Kdd);c&&(a==null?void 0:a.engagementPanelTargetId)===c&&(this.scrimmed=!0)};
_.f.onYtHideEngagementPanelScrimAction=function(a){var b,c=(b=this.data)==null?void 0:b.targetId;a=_.y(a,Idd);c&&(a==null?void 0:a.engagementPanelTargetId)===c&&(this.scrimmed=!1)};
_.f.getIdentifier=function(){var a,b,c;return((a=this.data)==null?void 0:a.panelIdentifier)||((b=this.data)==null?void 0:(c=b.identifier)==null?void 0:c.tag)};
_.f.getSurface=function(){var a,b;return(a=this.data)==null?void 0:(b=a.identifier)==null?void 0:b.surface};
_.Um.Object.defineProperties(Jid.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var a=this.getIdentifier();return a==="engagement-panel-youchat"||a==="PAyouchat"}}});
var n$=Jid;n$.prototype.visibilityChanged=n$.prototype.visibilityChanged;n$.prototype.isFullscreenChanged=n$.prototype.isFullscreenChanged;n$.prototype.dataChanged=n$.prototype.dataChanged;n$.prototype.forwardPopupClosedToFlowRootRenderer=n$.prototype.forwardPopupClosedToFlowRootRenderer;n$.prototype.onYtRendererstamperFinished=n$.prototype.onYtRendererstamperFinished;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],n$.prototype,"actionHandlerBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],n$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],n$.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],n$.prototype,"ytEventForwardingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],n$.prototype,"data",void 0);
_.U([_.O({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.W("design:type",Object)],n$.prototype,"headerData",void 0);_.U([_.O(),_.W("design:type",Object)],n$.prototype,"secondaryHeaderData",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],n$.prototype,"visibility",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],n$.prototype,"contentEmpty",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],n$.prototype,"scrimmed",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],n$.prototype,"dialog",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],n$.prototype,"dropdown",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],n$.prototype,"darkerPanels",void 0);_.U([_.O(),_.W("design:type",Object)],n$.prototype,"disableAutoFill",void 0);
_.U([_.O({reflectToAttribute:!0,value:_.w("optimal_reading_width_comments_ep")}),_.W("design:type",Boolean)],n$.prototype,"optimalReadingWidthComments",void 0);_.U([_.O(),_.W("design:type",Number)],n$.prototype,"hideDelayMs",void 0);_.U([_.O({selector:_.H8,reflectToAttribute:!0}),_.W("design:type",Object)],n$.prototype,"isFullscreen",void 0);_.U([_.O(),_.W("design:type",Number)],n$.prototype,"showDelayMs",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data.targetId"),_.W("design:type",Object),_.W("design:paramtypes",[])],n$.prototype,"targetId",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],n$.prototype,"webSize",null);_.U([_.O(),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],n$.prototype,"hideFooterBorder",null);_.U([_.O(),_.W("design:type",Object)],n$.prototype,"isWatch",void 0);
_.U([_.O(),_.W("design:type",Object)],n$.prototype,"originalTheaterState",void 0);_.U([_.O(),_.W("design:type",Object)],n$.prototype,"theaterDisablementPanelIdentifier",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],n$.prototype,"modernPanels",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],n$.prototype,"isWatchWhilePanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],n$.prototype,"shortsPanel",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],n$.prototype,"liveChatEngagementPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],n$.prototype,"liveChatReplyPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],n$.prototype,"enableAnchoredPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],n$.prototype,"disableBackdropFilter",void 0);
_.U([_.O(),_.W("design:type",Object)],n$.prototype,"trackEngagementPanelVisibility",void 0);_.U([_.ir("#header"),_.W("design:type",HTMLElement)],n$.prototype,"headerElement",void 0);_.U([_.ir("#header > *"),_.W("design:type",HTMLElement)],n$.prototype,"header",void 0);_.U([_.ir("ytd-section-list-renderer"),_.W("design:type",Object)],n$.prototype,"sectionListRendererElement",void 0);
_.U([_.ir("panel-ad-header-image-lockup-view-model"),_.W("design:type",HTMLElement)],n$.prototype,"adHeaderImageLockupViewModel",void 0);_.U([_.ir("#content"),_.W("design:type",HTMLElement)],n$.prototype,"contentElement",void 0);_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],n$.prototype,"onYtRendererstamperFinished",null);
_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],n$.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],n$.prototype,"dataChanged",null);_.U([_.N("isFullscreen"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],n$.prototype,"isFullscreenChanged",null);
_.U([_.N("visibility"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],n$.prototype,"visibilityChanged",null);n$=_.U([_.Q({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],n$);
_.S(n$,"ytd-engagement-panel-section-list-renderer",function(){if(Lhd!==void 0)return Lhd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="content" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="footer" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Lhd=a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var Kid;var Lid=function(){var a=_.P.apply(this,arguments)||this;a.lastRenderedPanelIds=new Set;a.visiblePanels=[];a.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return a};
_.z(Lid,_.P);_.f=Lid.prototype;_.f.dataChanged=function(){if(this.data){for(var a=[],b=_.h(this.data),c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0,e=void 0,g=(d=c)==null?void 0:(e=d.engagementPanelSectionListRenderer)==null?void 0:e.visibility;e=d=void 0;((d=c)==null?0:(e=d.engagementPanelSectionListRenderer)==null?0:e.targetId)&&g!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&a.push(c)}this.visiblePanels=a}else this.visiblePanels=[]};
_.f.configureRendererStamper=function(){return{visiblePanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0},properties:{hideDelayMs:"[[hideDelayMs]]",isWatchWhilePanel:"[[isWatchWhilePanel]]"}}},reuseComponents:!1}}};
_.f.withoutVisiblePanelById=function(a){return this.visiblePanels.filter(function(b){var c;return((c=b.engagementPanelSectionListRenderer)==null?void 0:c.targetId)!==a})};
_.f.onYtChangeEngagementPanelVisibilityAction=function(a){var b=this,c=_.y(a,_.Uzb);if(this.data&&(c==null?0:c.targetId)&&(c==null?0:c.visibility)){var d,e=(d=this.data.find(function(k){var m;return((m=k.engagementPanelSectionListRenderer)==null?void 0:m.targetId)===c.targetId}))==null?void 0:d.engagementPanelSectionListRenderer;
if(e){var g=this.withoutVisiblePanelById(c.targetId);c.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(a=this.data.find(function(k){var m;return((m=k.engagementPanelSectionListRenderer)==null?void 0:m.targetId)===c.targetId}))&&(g=[a].concat(_.De(g)));
this.hideDelayMs&&c.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&g.length===0?_.zk.addJob(function(){e.visibility=c.visibility;b.visiblePanels=g},10,this.hideDelayMs):(e.visibility=c.visibility,this.visiblePanels=g);
_.mo(this.hostElement,"yt-engagement-panels-visible-changed",[g])}}};
_.f.onRendererstamperFinished=function(){var a=new Set(this.visiblePanels.map(function(b){var c;return(c=b.engagementPanelSectionListRenderer)==null?void 0:c.targetId}));
this.handlePanelVisibilityChange(a,this.lastRenderedPanelIds);this.lastRenderedPanelIds=a};
_.f.handlePanelVisibilityChange=function(a,b){a=a===void 0?new Set:a;b=b===void 0?new Set:b;if(this.data)for(var c=_.h(this.data),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,g=void 0,k=(e=d)==null?void 0:(g=e.engagementPanelSectionListRenderer)==null?void 0:g.targetId;if(k&&(e=b.has(k),g=a.has(k),k=void 0,!e&&g?(g=e=void 0,k=(e=d)==null?void 0:(g=e.engagementPanelSectionListRenderer)==null?void 0:g.onShowCommands):e&&!g&&(g=e=void 0,k=(e=d)==null?void 0:(g=e.engagementPanelSectionListRenderer)==
null?void 0:g.onHideCommands),k))for(d=_.h(k),k=d.next();!k.done;k=d.next())this.ytComponentBehavior.resolveCommand(k.value)}};
var o$=Lid;o$.prototype.onRendererstamperFinished=o$.prototype.onRendererstamperFinished;o$.prototype.dataChanged=o$.prototype.dataChanged;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],o$.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],o$.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],o$.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],o$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],o$.prototype,"lastRenderedPanelIds",void 0);_.U([_.O(),_.W("design:type",Number)],o$.prototype,"hideDelayMs",void 0);_.U([_.O(),_.W("design:type",Array)],o$.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Array)],o$.prototype,"visiblePanels",void 0);_.U([_.O(),_.W("design:type",Boolean)],o$.prototype,"isWatchWhilePanel",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],o$.prototype,"dataChanged",null);_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],o$.prototype,"onRendererstamperFinished",null);o$=_.U([_.Q({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],o$);
_.S(o$,"ytd-watch-engagement-panels",function(){if(Kid!==void 0)return Kid;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-engagement-panels--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="panels" class="style-scope ytd-watch-engagement-panels"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Kid=a},{mode:1});var Mid;var p$=function(){return _.P.apply(this,arguments)||this};
_.z(p$,_.P);p$.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.$d(_.E(this.hostElement).querySelector("#text"),_.xcb(_.Acb,this.data.companionLegalText))};
p$.prototype.computeAutoScrollEnabled=function(a,b){return a&&!b};
p$.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
p$.prototype.onToggleTap=function(){this.expanded=!this.expanded};
var q$=p$;q$.prototype.expandedChanged=q$.prototype.expandedChanged;q$.prototype.dataChanged=q$.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],q$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.O6c),_.W("design:type",Object)],q$.prototype,"ytdAutoScrollBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],q$.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],q$.prototype,"expanded",void 0);
_.U([_.O({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.W("design:type",Boolean)],q$.prototype,"autoScrollEnabled",void 0);_.U([_.O(),_.W("design:type",String)],q$.prototype,"expanderIcon",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q$.prototype,"dataChanged",null);
_.U([_.N("expanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q$.prototype,"expandedChanged",null);q$=_.U([_.Q({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],q$);
_.S(q$,"ytd-companion-legal-text-renderer",function(){if(Mid!==void 0)return Mid;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-legal-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.companionLegalText]]" class="style-scope ytd-companion-legal-text-renderer"></yt-formatted-string>\n\n<tp-yt-paper-material id="expand-button" elevation="1" on-tap="onToggleTap" class="style-scope ytd-companion-legal-text-renderer">\n  <yt-icon-button id="expander-icon" class="style-scope ytd-companion-legal-text-renderer">\n    <yt-icon id="expander-icon" icon="[[expanderIcon]]" class="style-scope ytd-companion-legal-text-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Mid=a},{mode:1});var Nid;var r$,Oid=function(){var a=_.P.apply(this,arguments)||this;a.buttonUpdate=_.w("web_modern_buttons");a.kevlarWatchGrid=_.w("kevlar_watch_grid");a.centerAlignDescription=_.w("action_companion_center_align_description");a.truncateDomain=_.w("action_companion_truncate_domain");return a};
_.z(Oid,_.P);_.f=Oid.prototype;_.f.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.f.getOnLayoutVisibleCallback=function(){var a=_.Ji("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.onLayoutVisibleCallback:null};
_.f.getLayoutId=function(){var a=_.Ji("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.layoutId:null};
_.f.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",r$.JSC$19977_DEFAULT_AD_BADGE_RENDERER);var a=this.getOnLayoutVisibleCallback();a&&a()}};
_.f.getButtonRenderer=function(a){return a.actionButton&&_.y(a.actionButton,_.RE)?(delete _.y(a.actionButton,_.RE).navigationEndpoint,_.y(a.actionButton,_.RE)):{}};
_.f.onClick=function(a){var b=this;if((!_.w("web_modern_buttons")||!_.Wt(_.Rq(a),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){a=_.au();var c=this.getLayoutId();a&&c&&_.w("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?a.getPlayerPromise().then(function(d){(new _.EM(d)).executeCommand(b.data.navigationEndpoint,c)}):_.w("kevlar_companion_resolve_command_killswitch")?_.io(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.lo(this.hostElement,"yt-companion-ad-clicked",["action-companion",c])}};
_.Um.Object.defineProperties(Oid.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.data)==null?0:(b=a.detailsLine)==null?0:(c=b.adRating)==null?0:c.ratingText)?this.data.detailsLine.adRating.ratingText:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
iconType:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;return((a=this.data)==null?0:(b=a.detailsLine)==null?0:(c=b.adRating)==null?0:(d=c.ratingIcon)==null?0:d.iconType)?_.es(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;return((a=this.data)==null?0:(b=a.detailsLine)==null?0:(c=b.texts)==null?0:(d=c[0])==null?0:d.text)?this.data.detailsLine.texts[0].text:null}},
computeDetailsLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDetailsLine}},
getDescriptionText:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?0:(b=a.description)==null?0:b.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var a=_.Ji("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var a=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return a?a.indexOf("/default_banner")!==-1:!0}}});
var s$=r$=Oid;r$.prototype.onClick=r$.prototype.onClick;r$.prototype.dataChanged=r$.prototype.dataChanged;s$.JSC$19977_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.vo("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],s$.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],s$.prototype,"rendererBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],s$.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],s$.prototype,"buttonUpdate",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],s$.prototype,"kevlarWatchGrid",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],s$.prototype,"centerAlignDescription",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],s$.prototype,"truncateDomain",void 0);
_.U([_.O({computed:"computeButtonOverride(buttonUpdate)"}),_.W("design:type",Object)],s$.prototype,"buttonOverride",void 0);_.U([_.K("data.detailsLine.adRating.ratingText"),_.W("design:type",Object),_.W("design:paramtypes",[])],s$.prototype,"getRating",null);_.U([_.K("getRating"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],s$.prototype,"computeRatingHidden",null);
_.U([_.K("data.detailsLine.adRating.ratingIcon.iconType"),_.W("design:type",Object),_.W("design:paramtypes",[])],s$.prototype,"iconType",null);_.U([_.K("data.detailsLine.texts.0.text"),_.W("design:type",Object),_.W("design:paramtypes",[])],s$.prototype,"getDetailsLine",null);_.U([_.K("getDetailsLine"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],s$.prototype,"computeDetailsLineHidden",null);
_.U([_.K("data.description.text"),_.W("design:type",Object),_.W("design:paramtypes",[])],s$.prototype,"getDescriptionText",null);_.U([_.K("getDescriptionText"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],s$.prototype,"computeDescriptionTextHidden",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],s$.prototype,"interactionLoggingClientData",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],s$.prototype,"hideBanner",null);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],s$.prototype,"dataChanged",null);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],s$.prototype,"onClick",null);s$=r$=_.U([_.Q({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],s$);
_.S(s$,"ytd-action-companion-ad-renderer",function(){if(Nid!==void 0)return Nid;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-companion-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="action-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-action-companion-ad-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div id="action-companion-click-target" class="yt-simple-endpoint style-scope ytd-action-companion-ad-renderer">\n  <yt-img-shadow id="banner" fit="" hidden="[[hideBanner]]" thumbnail="[[data.bannerImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer">\n  </yt-img-shadow>\n  <div id="block" class="style-scope ytd-action-companion-ad-renderer">\n    <yt-img-shadow id="icon" thumbnail="[[data.iconImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer"></yt-img-shadow>\n    <div id="text" class="style-scope ytd-action-companion-ad-renderer">\n      <div id="header" class="style-scope ytd-action-companion-ad-renderer">\n        [[data.headline.text]]\n      </div>\n      <div id="desc" class="style-scope ytd-action-companion-ad-renderer">\n        <div id="ad-badge-container" class="style-scope ytd-action-companion-ad-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-action-companion-ad-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n        <span id="domain" hidden="[[computeDescriptionTextHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDescriptionText]]</span>\n        <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getRating]]</span>\n        <yt-icon id="star-icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-action-companion-ad-renderer"></yt-icon>\n        <span id="details-line" hidden="[[computeDetailsLineHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDetailsLine]]</span>\n      </div>\n    </div>\n    <ytd-button-renderer id="action" button-raised="" data="[[getButtonRenderer(data)]]" overrides="[[buttonOverride]]" class="style-scope ytd-action-companion-ad-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Nid=a},{mode:_.as("kevlar_poly_si_batch_j067")?1:2});var Pid;var Qid;var Rid=function(){var a=_.P.apply(this,arguments)||this;a.buttonUpdate=_.w("web_modern_buttons");a.hideLegacyBanner=_.w("enable_dsa_one_click_ata_translators_infeed_elements");a.adInfoButtonStyle="mono";a.adInfoButtonType="text";a.noDotAdBadge=!0;return a};
_.z(Rid,_.P);_.f=Rid.prototype;_.f.getOnLayoutVisibleCallback=function(){var a=_.Ji("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.onLayoutVisibleCallback:null};
_.f.getLayoutId=function(){var a=_.Ji("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.layoutId:null};
_.f.dataChanged=function(){if(this.data){if(this.data.image&&this.data.image.thumbnail&&this.data.image.thumbnail.thumbnails&&this.data.image.thumbnail.thumbnails.length){var a=this.data.image.thumbnail.thumbnails[0];this.imageSrc=a.url?_.Id(a.url):void 0;this.imageWidth=a.width||0;this.imageHeight=a.height||0}this.data.clickthroughEndpoint&&_.y(this.data.clickthroughEndpoint,_.Kl)&&(a=_.y(this.data.clickthroughEndpoint,_.Kl).url,_.w("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
a||"":a?(a=_.Id(a),this.clickThroughUrl=_.Ed(a)):this.clickThroughUrl=void 0);(a=this.getOnLayoutVisibleCallback())&&a()}};
_.f.onClick=function(a){_.Wt(_.Rq(a),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(a)};
_.f.handleClick=function(){var a=this;this.data&&this.data.clickthroughEndpoint&&(_.io(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(b){a.macroReplacementBehavior.sendServiceRequestAction([b])}),_.lo(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.f.onLoad=function(){_.mo(this.hostElement,"yt-refit-popups-action")};
_.Um.Object.defineProperties(Rid.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var a=_.Ji("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var a=_.Ji("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.interactionLoggingClientData:null}}});
var t$=Rid;t$.prototype.onLoad=t$.prototype.onLoad;t$.prototype.onClick=t$.prototype.onClick;t$.prototype.dataChanged=t$.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],t$.prototype,"rendererBehavior",void 0);_.U([_.H(igd.YtMacroReplacementBehavior),_.W("design:type",Object)],t$.prototype,"macroReplacementBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],t$.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],t$.prototype,"buttonUpdate",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],t$.prototype,"hideLegacyBanner",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],t$.prototype,"adInfoButtonStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],t$.prototype,"adInfoButtonType",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],t$.prototype,"macros",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],t$.prototype,"interactionLoggingClientData",null);_.U([_.O(),_.W("design:type",String)],t$.prototype,"clickThroughUrl",void 0);_.U([_.O(),_.W("design:type",_.Ad)],t$.prototype,"imageSrc",void 0);_.U([_.O(),_.W("design:type",Number)],t$.prototype,"imageWidth",void 0);_.U([_.O(),_.W("design:type",Number)],t$.prototype,"imageHeight",void 0);_.U([_.O(),_.W("design:type",Object)],t$.prototype,"noDotAdBadge",void 0);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],t$.prototype,"dataChanged",null);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],t$.prototype,"onClick",null);_.U([_.M("load"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],t$.prototype,"onLoad",null);t$=_.U([_.Q({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],t$);
_.S(t$,"ytd-image-companion-renderer",function(){if(Qid!==void 0)return Qid;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <div class="style-scope ytd-image-companion-renderer">\n    <yt-img-shadow id="banner" fit="" thumbnail="[[data.image.thumbnail]]" class="style-scope ytd-image-companion-renderer">\n    </yt-img-shadow>\n    <div id="block" class="style-scope ytd-image-companion-renderer">\n      <div id="text" class="style-scope ytd-image-companion-renderer">\n        <div id="desc" class="style-scope ytd-image-companion-renderer">\n          <div id="ad-badge-container" class="style-scope ytd-image-companion-renderer">\n            <ytd-badge-supported-renderer id="ad-badge" no-dot-ad-badge="[[noDotAdBadge]]" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-image-companion-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </div>\n      </div>\n      <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-menu" button-style="[[adInfoButtonStyle]]" button-type="[[adInfoButtonType]]" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n      </ytd-ad-hover-text-button-renderer>\n    </div>\n  </div>\n</template>\n\n\n<template is="dom-if" if="[[!hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n  </ytd-ad-hover-text-button-renderer>\n  <div class="style-scope ytd-image-companion-renderer">\n    <img height="[[imageHeight]]" src$="[[imageSrc]]" width="[[imageWidth]]" alt="" class="style-scope ytd-image-companion-renderer">\n  </div>\n</template>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Qid=a},{mode:_.as("kevlar_poly_si_batch_j067")?1:2});var Sid;var u$,Tid=function(){return _.P.apply(this,arguments)||this};
_.z(Tid,_.P);_.f=Tid.prototype;_.f.dataChanged=function(){this.set("data.adBadge",u$.JSC$19986_DEFAULT_AD_BADGE_RENDERER);if(this.data){var a=this.getOnLayoutVisibleCallback();a&&a()}};
_.f.getOnLayoutVisibleCallback=function(){var a=_.Ji("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.onLayoutVisibleCallback:null};
_.f.getLayoutId=function(){var a=_.Ji("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.layoutId:null};
_.f.onCompanionClicked=function(a){this.data&&(a.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.lo(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.f.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var a=_.au(),b=this.getLayoutId(),c=this.data.clickToAdvSiteEndpoint;a&&b&&_.w("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?a.getPlayerPromise().then(function(d){(new _.EM(d)).executeCommand(c,b)}):_.io(this.hostElement,"yt-navigate",{endpoint:c})}};
_.f.sendTrackingPings=function(a){if(a&&a.length!==0&&a[0].loggingUrls&&(a=a[0].loggingUrls.map(this.getBaseUrl)))for(var b=0;b<a.length;b++)_.Jk(a[b])};
_.f.getBaseUrl=function(a){return a.baseUrl||""};
_.Um.Object.defineProperties(Tid.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var a=_.Ji("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.interactionLoggingClientData:null}}});
var v$=u$=Tid;u$.prototype.onCompanionClicked=u$.prototype.onCompanionClicked;u$.prototype.dataChanged=u$.prototype.dataChanged;v$.JSC$19986_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.vo("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],v$.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],v$.prototype,"data",void 0);
_.U([_.ir("#title"),_.W("design:type",HTMLElement)],v$.prototype,"shopTitle",void 0);_.U([_.mr("data.impressionEndpoints"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v$.prototype,"dataChanged",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],v$.prototype,"interactionLoggingClientData",null);
_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],v$.prototype,"onCompanionClicked",null);v$=u$=_.U([_.Q({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],v$);
_.S(v$,"ytd-shopping-companion-renderer",function(){if(Sid!==void 0)return Sid;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="shopping-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div on-tap="onCompanionClicked" class="style-scope ytd-shopping-companion-renderer">\n  <div id="banner" class="style-scope ytd-shopping-companion-renderer">\n    <div id="ad-badge-container" class="style-scope ytd-shopping-companion-renderer">\n      <ytd-badge-supported-renderer id="ad-badge" large-font-ad-badge="true" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-shopping-companion-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="title" on-tap="onShopTextTap" class="style-scope ytd-shopping-companion-renderer">\n      [[getSimpleString(data.shopText)]]\n    </div>\n  </div>\n  <yt-horizontal-list-renderer id="companion-shelf" data="[[data.itemList.horizontalListRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Sid=a},{mode:1});_.Ts(_.Rr(function(a){var b=a.data;var c=_.Pl();_.gv(c,function(){return b().interaction},Wcd);
_.Yl(c,{visibilityCallback:function(d){var e,g=(e=b().interaction)==null?void 0:e.onFirstVisible;d&&g&&_.Gs(g)},
showOption:_.sL});_.yh(function(){var d,e;e=(e=_.Ji("yt.www.ads.eventcache.getLastCompanionData"))?(e=e())&&e.onLayoutVisibleCallback:null;(d=e)==null||d()},"M2RYmb");
_.Rl(c,"load",function(){_.mo(c.value,"yt-refit-popups-action")});
return _.q("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost",el:c,"aria-label":function(){var d,e;return(d=b().interaction)==null?void 0:(e=d.accessibility)==null?void 0:e.label}},_.q("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.q(_.Hu,{data:function(){return b().adImage}},{adImageViewModel:function(d){return _.q(_.BN,{data:d.data,
targetHeight:80,customCommandResolver:Wcd})}})),_.q("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.q("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.q(_.Hu,{data:function(){return b().adBadge}},{adBadgeViewModel:function(d){return _.q(_.xL,{data:d.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.q("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.q(_.Hu,{data:function(){return b().menu}},{buttonViewModel:_.Qu}))))},"Xh"),"banner-image-layout-view-model",{props:{data:_.VG}});_.Ts(_.Rr(function(a){var b=a.data;a=_.Pl();_.gv(a,function(){return b().interaction},Xcd);
_.Yl(a,{visibilityCallback:function(c){var d,e=(d=b().interaction)==null?void 0:d.onFirstVisible;c&&e&&_.Gs(e)},
showOption:_.sL});_.yh(function(){var c,d;d=(d=_.Ji("yt.www.ads.eventcache.getLastCompanionData"))?(d=d())&&d.onLayoutVisibleCallback:null;(c=d)==null||c()},"SpIi5e");
return _.q("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:a},_.q("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.q(_.Hu,{data:function(){return b().adImage}},{adImageViewModel:function(c){return _.q(_.BN,{data:c.data,
targetHeight:80,customCommandResolver:Xcd})}})),_.q("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.q("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.q(_.Hu,{data:function(){return b().adAvatarLockup}},{adAvatarLockupViewModel:function(c){return _.q(yid,{data:c.data,
customCommandResolver:Xcd})}})),_.q(_.Hu,{data:function(){return b().adButton}},{adButtonViewModel:function(c){return _.q(_.uL,{data:c.data,
customCommandResolver:Xcd})}}),_.q("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.q(_.Hu,{data:function(){return b().menu}},{buttonViewModel:_.Qu}))))},"Yh"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.VG}});var Uid={shoppingCompanionCarouselRenderer:"ytd-shopping-companion-renderer",imageCompanionAdRenderer:"ytd-image-companion-renderer",actionCompanionAdRenderer:"ytd-action-companion-ad-renderer",bannerImageLayoutViewModel:"banner-image-layout-view-model",topBannerImageTextIconButtonedLayoutViewModel:"top-banner-image-text-icon-buttoned-layout-view-model"},Vid=function(){var a=_.P.apply(this,arguments)||this;a.updateCompanionDataJobId=0;a.contentVideoId=null;a.player=null;a.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return a};
_.z(Vid,_.P);_.f=Vid.prototype;_.f.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:Uid}}};
_.f.attached=function(){var a=this,b=_.au();b&&b.getPlayerPromise().then(function(c){a.getCachedDataAndListen(c)})};
_.f.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.f.updateRendererStamper=function(){var a={};if(this.data)for(var b in Uid)if(this.data[b]){a[b]=this.data[b];break}if(this.oneofRenderer!=void 0||Object.keys(a).length)this.oneofRenderer=a};
_.f.getCachedDataAndListen=function(a){var b=this.retrieveCachedCompanionData();b&&Object.keys(b).length&&this.receiveCompanionData(b);this.ytPlayerListenerBehavior.listenToPlayerEvent(a,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=a};
_.f.retrieveCachedCompanionData=function(){return _.ja.yt&&_.ja.yt.www&&_.ja.yt.www.ads&&_.ja.yt.www.ads.eventcache&&_.ja.yt.www.ads.eventcache.getLastCompanionData?_.ja.yt.www.ads.eventcache.getLastCompanionData():null};
_.f.receiveCompanionData=function(a){a&&Object.keys(a).length?(this.contentVideoId=a.contentVideoId,this.setCompanionData(a)):this.setCompanionData(a)};
_.f.setCompanionData=function(a){this.cancelPendingCompanionAdJobs();if(a){this.updateCompanionDataJobId=0;for(var b in Uid)Uid.hasOwnProperty(b)&&(this.data[b]=void 0);a.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",a.shoppingCompanionCarouselRenderer):a.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",a.imageCompanionAdRenderer):a.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",a.actionCompanionAdRenderer),_.mo(this.hostElement,
"yt-hide-unlimited-offer-module"),_.mo(this.hostElement,"yt-hide-tvfilm-offer-module")):a.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",a.bannerImageLayoutViewModel):a.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",a.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.f.dataChanged=function(){var a=this,b=_.au();b?b.getPlayerPromise().then(function(c){a.contentVideoId&&c.getVideoUrl().includes("v="+a.contentVideoId)||(a.cancelPendingCompanionAdJobs(),a.updateRendererStamper())}):_.Ki(Error("jm"))};
_.f.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.zk.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.f.handleCompanionAdClicked=function(a,b){this.player.onAdUxClicked(a,b);this.player.pauseVideo()};
var w$=Vid;w$.prototype.dataChanged=w$.prototype.dataChanged;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],w$.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],w$.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],w$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],w$.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.bJ.YtPlayerListenerBehavior),_.W("design:type",_.cJ)],w$.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],w$.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],w$.prototype,"oneofRenderer",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w$.prototype,"dataChanged",null);w$=_.U([_.Q({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],w$);
_.S(w$,"ytd-companion-slot-renderer",function(){if(Pid!==void 0)return Pid;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="companion" class="style-scope ytd-companion-slot-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Pid=a},{mode:_.as("kevlar_poly_si_batch_j067")?
1:2});var Wid;var Xid=function(){return _.P.apply(this,arguments)||this};
_.z(Xid,_.P);Xid.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
var x$=Xid;x$.prototype.dataChanged=x$.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],x$.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],x$.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],x$.prototype,"companionSlotData",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],x$.prototype,"dataChanged",null);
x$=_.U([_.Q({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],x$);
_.S(x$,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(Wid!==void 0)return Wid;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player-legacy-desktop-watch-ads-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-companion-legal-text-renderer data="[[data]]" disable-upgrade$="[[!data.companionLegalText]]" hidden="[[!data.companionLegalText]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-legal-text-renderer>\n<ytd-companion-slot-renderer data="[[companionSlotData]]" disable-upgrade$="[[!companionSlotData]]" hidden="[[!companionSlotData]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-slot-renderer>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Wid=a},{mode:1});var Yid;var Zid=function(){var a=_.P.apply(this,arguments)||this;a.skinnyMode=!1;a.COMPACT_EVENT_COUNT=4;a.onShelfToggleButtonTap=function(){a.logTap(a.data);a.showingMore=!a.showingMore};
a.onShelfToggleButtonFocus=function(){a.showingMore||(a.logTap(a.data),a.showingMore=!0,_.Qm(a,function(){var b=a.COMPACT_EVENT_COUNT-1,c;(c=_.E(a.hostElement).querySelector("#event-"+b))==null||c.focus()}))};
return a};
_.z(Zid,_.P);_.f=Zid.prototype;_.f.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.f.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.f.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.gr(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.gr(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.gr(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.gr(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.gr(this.infoTooltip,this.infoTooltip.hide))};
_.f.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.gr(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.gr(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.gr(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.gr(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.gr(this.infoTooltip,this.infoTooltip.hide))};
_.f.dataChanged=function(){this.firstEvent=this.get("data.events.0.ticketEventRenderer");this.data&&this.data.events&&(this.canShowMore=this.data.events.length>this.COMPACT_EVENT_COUNT,this.separator.style.visibility=this.data.events.length>1?"visible":"hidden");this.showingMore=!1;this.showingMoreChanged(!1)};
_.f.onShowingMoreChanged=function(){var a;this.showingMoreChanged((a=this.showingMore)!=null?a:!1)};
_.f.showingMoreChanged=function(a){var b=this.get("data.events")||[];this.set("restEvents",b.slice(1,a?b.length:this.COMPACT_EVENT_COUNT).map(function(c){return c.ticketEventRenderer}));
b.slice(0,a?b.length:this.COMPACT_EVENT_COUNT).forEach(function(c){var d=_.En();c=c.ticketEventRenderer.trackingParams;_.Dn()&&d&&c&&(c=_.ps(c),d&&_.Uo(d,c))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.f.computeAriaLabel=function(a){return a.subtitle1+", "+a.subtitle2};
_.f.logTap=function(a){_.Dn()&&this.ytRendererBehavior.logExplicitClick(a)};
_.f.isKeyboardAction=function(a){return this.get("detail.x",a)===0&&this.get("detail.y",a)===0};
_.f.onFirstEventTap=function(a){a.target&&this.handleTap(a.target,this.firstEvent,this.isKeyboardAction(a))};
_.f.onTicketLinkTap=function(a){a.target&&this.handleTap(a.target,a.model.item,this.isKeyboardAction(a))};
_.f.handleTap=function(a,b,c){if(b.buttonCommand)if(b.hasMultipleOffers)Object.assign(_.y(b.buttonCommand,_.JE),{properties:{source:c?"keyboard":"tap"}}),this.logTap(b),this.popupPositionTarget=a,_.po(this.hostElement,[b.buttonCommand],this.hostElement);else{var d;if((d=_.y(b.buttonCommand,_.Kl))==null?0:d.url)this.logTap(b),_.Td(window,_.y(b.buttonCommand,_.Kl).url)}};
var y$=Zid;y$.prototype.onShowingMoreChanged=y$.prototype.onShowingMoreChanged;y$.prototype.dataChanged=y$.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],y$.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],y$.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],y$.prototype,"firstEvent",void 0);_.U([_.O(),_.W("design:type",Object)],y$.prototype,"restEvents",void 0);
_.U([_.O(),_.W("design:type",String)],y$.prototype,"imageUrl",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],y$.prototype,"showingMore",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],y$.prototype,"canShowMore",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],y$.prototype,"skinnyMode",void 0);_.U([_.O(),_.W("design:type",HTMLElement)],y$.prototype,"popupPositionTarget",void 0);
_.U([_.ir("#banner-info-tooltip"),_.W("design:type",Object)],y$.prototype,"infoTooltip",void 0);_.U([_.ir("#info-container"),_.W("design:type",HTMLElement)],y$.prototype,"infoContainer",void 0);_.U([_.ir("#shelf-toggler"),_.W("design:type",HTMLElement)],y$.prototype,"shelfToggleButton",void 0);_.U([_.ir("#separator"),_.W("design:type",HTMLDivElement)],y$.prototype,"separator",void 0);_.U([_.O(),_.W("design:type",String)],y$.prototype,"shelfTogglerLabelText",void 0);
_.U([_.O(),_.W("design:type",String)],y$.prototype,"shelfTogglerIcon",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y$.prototype,"dataChanged",null);_.U([_.mr("showingMore"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y$.prototype,"onShowingMoreChanged",null);y$=_.U([_.Q({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],y$);
_.S(y$,"ytd-ticket-shelf-renderer",function(){if(Yid!==void 0)return Yid;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ticket-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="head" class="style-scope ytd-ticket-shelf-renderer">\n  <h1 id="title" role="heading" aria-label$="[[firstEvent.title]]" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.title]]</h1>\n\n  <a id="info-container" href="javascript:" role="complementary" aria-label$="[[data.informationText]]" class="style-scope ytd-ticket-shelf-renderer">\n    <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n  </a>\n  \n  <tp-yt-paper-tooltip id="banner-info-tooltip" for="info-container" manual-mode="" position="bottom" class="style-scope ytd-ticket-shelf-renderer">\n    <div class="style-scope ytd-ticket-shelf-renderer">[[data.informationText]]</div>\n  </tp-yt-paper-tooltip>\n</div>\n<div id="body" class="style-scope ytd-ticket-shelf-renderer">\n  <div id="primary-event" class="style-scope ytd-ticket-shelf-renderer">\n    <template is="dom-if" if="[[data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <a id="calendar-avatar" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        <div id="calendar-avatar-month" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-month-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeMonth]]</div>\n        </div>\n        <div id="calendar-avatar-day" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-day-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeDay]]</div>\n        </div>\n      </a>\n    </template>\n\n    <template is="dom-if" if="[[!data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="thumbnail" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-img-shadow id="thumbnail-img" fit="" thumbnail="[[firstEvent.thumbnail]]" class="style-scope ytd-ticket-shelf-renderer">\n        </yt-img-shadow>\n      </div>\n    </template>\n\n    <div id="meta" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="meta-info" class="style-scope ytd-ticket-shelf-renderer">\n        <a id="nearest-with-location" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">[[data.title]]</a>\n        <div id="subtitle1" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.subtitle1]]</div>\n        <template is="dom-if" if="[[firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="subtitle2" class="style-scope ytd-ticket-shelf-renderer">\n            [[firstEvent.subtitle2]]\n          </div>\n        </template>\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <a class="vendor style-scope ytd-ticket-shelf-renderer" target="_blank" on-tap="onFirstEventTap" href$="[[firstEvent.buttonCommand.urlEndpoint.url]]">\n            [[firstEvent.linkText]]\n          </a>\n        </template>\n      </div>\n      <a id="view-tickets-link" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        [[firstEvent.buttonText]]\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n        </template>\n      </a>\n    </div>\n  </div>\n\n  <div id="separator" class="style-scope ytd-ticket-shelf-renderer"></div>\n\n  <div id="rest-events" class="style-scope ytd-ticket-shelf-renderer">\n    <div id="table" class="style-scope ytd-ticket-shelf-renderer">\n      <table cellspacing="0" cellpadding="0" class="style-scope ytd-ticket-shelf-renderer">\n        <template is="dom-repeat" items="[[restEvents]]" as="item" class="style-scope ytd-ticket-shelf-renderer">\n          <tr on-tap="onTicketLinkTap" class="style-scope ytd-ticket-shelf-renderer">\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-date-column style-scope ytd-ticket-shelf-renderer">[[item.timeDate]]</div>\n            </td>\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-weekday-column style-scope ytd-ticket-shelf-renderer">\n                <div class="style-scope ytd-ticket-shelf-renderer">\n                  [[item.timeWeekday]]<span id="time" class="style-scope ytd-ticket-shelf-renderer">[[item.timeTime]]</span>\n                </div>\n              </div>\n            </td>\n            <td class="where-column-td style-scope ytd-ticket-shelf-renderer">\n              <div class="where-column style-scope ytd-ticket-shelf-renderer">\n                <div class="venue-vendor-container style-scope ytd-ticket-shelf-renderer">\n                  <div class="venue style-scope ytd-ticket-shelf-renderer">[[item.subtitle2]]</div>\n                  <b class="dot style-scope ytd-ticket-shelf-renderer">\u00b7</b>\n                  <a class="vendor style-scope ytd-ticket-shelf-renderer" href="javascript:void(0)" id$="event-[[index]]">\n                    [[item.linkText]]\n                    <template is="dom-if" if="[[!item.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n                      <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n                    </template>\n                  </a>\n                </div>\n              </div>\n            </td>\n          </tr>\n        </template>\n      </table>\n      <yt-icon-button id="shelf-toggler" hidden="[[!canShowMore]]" label="[[shelfTogglerLabelText]]" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-icon icon="[[shelfTogglerIcon]]" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Yid=a},{mode:1});var $id;var ajd;var bjd=function(){return _.P.apply(this,arguments)||this};
_.z(bjd,_.P);var cjd=bjd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],cjd.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],cjd.prototype,"data",void 0);cjd=_.U([_.Q({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],cjd);
_.S(cjd,"ytd-comments-entry-point-message-renderer",function(){if(ajd!==void 0)return ajd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="message" text="[[data.messageText]]" class="style-scope ytd-comments-entry-point-message-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return ajd=a},{mode:1});var djd;var ejd=function(){return _.P.apply(this,arguments)||this};
_.z(ejd,_.P);_.Um.Object.defineProperties(ejd.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.teaserAvatar)}}});
var z$=ejd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],z$.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],z$.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],z$.prototype,"hasAvatar",null);z$=_.U([_.Q({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],z$);
_.S(z$,"ytd-comments-entry-point-teaser-renderer",function(){if(djd!==void 0)return djd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-teaser-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="teaser" class="style-scope ytd-comments-entry-point-teaser-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-teaser-renderer" height="24" hidden="[[!hasAvatar]]" thumbnail="[[data.teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-teaser-renderer">[[getSimpleString(data.teaserContent)]]</div></div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return djd=a},{mode:1});var fjd;var gjd=function(){return _.P.apply(this,arguments)||this};
_.z(gjd,_.P);var hjd=gjd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],hjd.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],hjd.prototype,"data",void 0);hjd=_.U([_.Q({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],hjd);
_.S(hjd,"ytd-comments-simplebox-renderer",function(){if(fjd!==void 0)return fjd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="simplebox" class="style-scope ytd-comments-simplebox-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-simplebox-renderer" height="24" thumbnail="[[data.simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-simplebox-renderer">[[getSimpleString(data.simpleboxPlaceholder)]]</div></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return fjd=a},{mode:1});var A$=function(){var a=_.P.apply(this,arguments)||this;a.fullHeight=!_.w("comment_teaser_full_height_kill_switch")&&_.w("kevlar_watch_grid");return a};
_.z(A$,_.P);A$.prototype.configureRendererStamper=function(){return{contentRenderer:{id:"content-renderer",mapping:{commentsEntryPointTeaserRenderer:"ytd-comments-entry-point-teaser-renderer",commentsSimpleboxRenderer:"ytd-comments-simplebox-renderer",commentsEntryPointMessageRenderer:"ytd-comments-entry-point-message-renderer"}},"data.contents":{id:"contents",mapping:{commentsEntryPointTeaserRenderer:"ytd-comments-entry-point-teaser-renderer"}}}};
A$.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
A$.prototype.onTap=function(){var a=this.tapCommand;a&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(a))};
A$.prototype.onKeyUp=function(a){if(a.keyCode===13)this.onTap()};
_.Um.Object.defineProperties(A$.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null?0:a.onTap)return this.data.onTap;var b,c;if(((b=this.data)==null?0:b.teaserContent)||((c=this.data)==null?0:c.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){if(!_.w("kevlar_watch_edu_comment_teaser_content")){var a;return(a=this.data)==null?void 0:a.simpleboxPlaceholder}}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){if(_.w("kevlar_watch_edu_comment_teaser_content"))return null;var a;return(a=this.data)==null?void 0:a.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var a;if(!_.w("kevlar_watch_edu_comment_teaser_content")||((a=this.data)==null?0:a.contentRenderer)){var b;return(b=this.data)==null?void 0:b.teaserContent}return _.Vp(_.vo("MAIN_APP_WEB_COMMENT_TEASER_TOOLTIP"))}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){if(!_.w("kevlar_watch_edu_comment_teaser_content")){var a;return(a=this.data)==null?void 0:a.teaserAvatar}}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){if(!_.w("kevlar_watch_edu_comment_teaser_content")){var a;return(a=this.data)==null?void 0:a.messageText}}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var a;if(_.w("kevlar_watch_edu_comment_teaser_content")&&((a=this.data)==null?0:a.contentRenderer))return{commentsEntryPointTeaserRenderer:{teaserContent:_.Vp(_.vo("MAIN_APP_WEB_COMMENT_TEASER_TOOLTIP"))}};var b;return(b=this.data)==null?void 0:b.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)!=null&&a.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
var B$=A$;B$.prototype.onKeyUp=B$.prototype.onKeyUp;B$.prototype.onTap=B$.prototype.onTap;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],B$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],B$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],B$.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],B$.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],B$.prototype,"fullHeight",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],B$.prototype,"tapCommand",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],B$.prototype,"simpleboxPlaceholder",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],B$.prototype,"hasSimpleboxPlaceholder",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],B$.prototype,"simpleboxAvatar",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],B$.prototype,"teaserContent",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],B$.prototype,"hasTeaserContent",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],B$.prototype,"teaserAvatar",null);
_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],B$.prototype,"hasTeaserAvatar",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],B$.prototype,"messageText",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],B$.prototype,"contentRenderer",null);_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],B$.prototype,"hasContents",null);
_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],B$.prototype,"hasContentRenderer",null);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B$.prototype,"onTap",null);_.U([_.M("keypress"),_.W("design:type",Function),_.W("design:paramtypes",[_.Dz]),_.W("design:returntype")],B$.prototype,"onKeyUp",null);B$=_.U([_.Q({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],B$);
_.S(B$,"ytd-comments-entry-point-header-renderer",function(){if($id!==void 0)return $id;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-comments-entry-point-header-renderer"><div id="title" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.headerText)]]</div><div id="count" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.commentCount)]]</div></div><div id="content" class="style-scope ytd-comments-entry-point-header-renderer"><div id="simplebox" hidden="[[!hasSimpleboxPlaceholder]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" thumbnail="[[simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(simpleboxPlaceholder)]]</div></div><div id="teaser" hidden="[[!hasTeaserContent]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" hidden="[[!hasTeaserAvatar]]" thumbnail="[[teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(teaserContent)]]</div></div><yt-formatted-string id="message" text="[[messageText]]" class="style-scope ytd-comments-entry-point-header-renderer"></yt-formatted-string><div id="content-renderer" hidden="[[!hasContentRenderer]]" class="style-scope ytd-comments-entry-point-header-renderer"></div><div id="contents" class="style-scope ytd-comments-entry-point-header-renderer"></div></div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return $id=a},{mode:1});var ijd;_.at(_.kt,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var jjd=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),kjd={numberText:"",heightPx:2*jjd,shouldAnimate:!1},ljd=function(){var a=_.P.apply(this,arguments)||this;a.usingAnimatedComponents=!0;a.wasDetailed=!1;a.JSC$20024_browserSupportsAnimation=_.w("web_supports_animations_api");a.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};a.detailed=!1;a.shouldAnimate=!1;a.viewCountProps=kjd;a.dateTextProps=
kjd;a.metadataBadgesInDescription=_.w("web_metadata_badges_in_description");return a};
_.z(ljd,_.P);_.f=ljd.prototype;_.f.resetAnimationState=function(){this.shouldAnimate=!1};
_.f.updateDynamicMetadata=function(){if(this.JSC$20024_browserSupportsAnimation){if(!this.detailed){var a,b,c,d;var e=(a=this.videoPrimaryInfoRenderer)==null?void 0:(b=a.viewCount)==null?void 0:(c=b.videoViewCountRenderer)==null?void 0:(d=c.extraShortViewCount)==null?void 0:d.simpleText;var g,k,m,n;var r=(g=this.videoPrimaryInfoRenderer)==null?void 0:(k=g.viewCount)==null?void 0:(m=k.videoViewCountRenderer)==null?void 0:(n=m.shortViewCount)==null?void 0:n.simpleText}if(!r){var t,u,x,A;e=(t=this.videoPrimaryInfoRenderer)==
null?void 0:(u=t.viewCount)==null?void 0:(x=u.videoViewCountRenderer)==null?void 0:(A=x.unlabeledViewCountValue)==null?void 0:A.simpleText;var C,F,J,I;r=(C=this.videoPrimaryInfoRenderer)==null?void 0:(F=C.viewCount)==null?void 0:(J=F.videoViewCountRenderer)==null?void 0:(I=J.viewCount)==null?void 0:I.simpleText}var R,da,V;a=Number((R=this.videoPrimaryInfoRenderer)==null?void 0:(da=R.viewCount)==null?void 0:(V=da.videoViewCountRenderer)==null?void 0:V.originalViewCount);var fa,aa;R=(fa=this.videoPrimaryInfoRenderer)==
null?void 0:(aa=fa.relativeDateText)==null?void 0:aa.simpleText;var ma;fa=!((ma=this.videoPrimaryInfoRenderer)==null||!ma.relativeDateText);if(e&&r&&a&&(R||!fa)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;ma=r.split(new RegExp("("+e+")"));e=cdd(ma[0]);var Ba;r={numberText:(Ba=ma[1])!=null?Ba:"",numberValue:a,heightPx:2*jjd,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var Ca;Ba=((Ca=ma[2])!=null?Ca:"")+"  ";this.setViewCount(r,e,
cdd(Ba));if(!this.detailed&&fa){e=R.split(/(\d+)/);Ca=cdd(e[0]);var ya;Ba={numberText:(ya=e[1])!=null?ya:"",heightPx:2*jjd,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var Ia;ya=((Ia=e[2])!=null?Ia:"")+"  ";this.setDateText(Ba,Ca,cdd(ya))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.f.setViewCount=function(a,b,c){_.Wp(b)!==_.Wp(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=b);this.viewCountProps.numberText!==(a==null?void 0:a.numberText)&&(this.viewCountProps=a||kjd);_.Wp(c)!==_.Wp(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=c)};
_.f.setDateText=function(a,b,c){_.Wp(b)!==_.Wp(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=b);this.dateTextProps.numberText!==(a==null?void 0:a.numberText)&&(this.dateTextProps=a||kjd);_.Wp(c)!==_.Wp(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=c)};
_.f.onYtUpdateViewershipAction=function(a){this.videoPrimaryInfoRenderer&&(_.y(a,led).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.y(a,led).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.y(a,led).viewCount)))};
_.f.onYtUpdateDateTextAction=function(a){if(this.videoPrimaryInfoRenderer){a=_.y(a,_.jed).dateText;this.shouldAnimate=!0;var b;((b=this.videoPrimaryInfoRenderer)==null?0:b.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",a):this.set("videoPrimaryInfoRenderer.dateText",a)}};
_.Um.Object.defineProperties(ljd.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return bdd(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.Wp(bdd(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Wp(this.viewCountPreNumberText),this.viewCountProps.numberText,_.Wp(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Wp(this.dateTextPreNumberText),this.dateTextProps.numberText,_.Wp(this.dateTextPostNumberText)].join("")}}});
var C$=ljd;C$.prototype.updateDynamicMetadata=C$.prototype.updateDynamicMetadata;C$.prototype.resetAnimationState=C$.prototype.resetAnimationState;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],C$.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],C$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],C$.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],C$.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],C$.prototype,"videoPrimaryInfoRenderer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],C$.prototype,"detailed",void 0);_.U([_.O(),_.W("design:type",Object)],C$.prototype,"shouldAnimate",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],C$.prototype,"viewCountPreNumberText",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],C$.prototype,"viewCountProps",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],C$.prototype,"viewCountPostNumberText",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],C$.prototype,"dateTextPreNumberText",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],C$.prototype,"dateTextProps",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],C$.prototype,"dateTextPostNumberText",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],C$.prototype,"metadataBadgesInDescription",void 0);_.U([_.K("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.W("design:type",Object),_.W("design:paramtypes",[])],C$.prototype,"infoText",null);
_.U([_.K("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.W("design:type",String),_.W("design:paramtypes",[])],C$.prototype,"descriptionInfoTooltipText",null);_.U([_.K("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.W("design:type",String),_.W("design:paramtypes",[])],C$.prototype,"animatedViewCountAccessibilityLabel",null);
_.U([_.K("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.W("design:type",String),_.W("design:paramtypes",[])],C$.prototype,"animatedDateTextAccessibilityLabel",null);_.U([_.N("videoPrimaryInfoRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],C$.prototype,"resetAnimationState",null);
_.U([_.N("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],C$.prototype,"updateDynamicMetadata",null);C$=_.U([_.Q({disableElementRegistration:!0,is:"ytd-watch-info-text"})],C$);
_.S(C$,"ytd-watch-info-text",function(){if(ijd!==void 0)return ijd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number id="view-count-number" force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return ijd=a},{mode:1});var mjd;var njd=_.Rr(function(a){var b=a.data;var c=a.setTapCommand;_.wh(function(){var d=_.Ds(b().onTap);c(d)},"Lb2UL");
return _.q("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.q(_.Hu,{data:function(){return b().avatar}},{avatarViewModel:_.QK}),_.q("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.q("span",null,function(){return b().simpleboxText})))},"Zh");var ojd=_.Rr(function(a){return _.q("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.q(_.qi,{cond:function(){return _.y(a.data().avatar,_.cv)},
then:function(b){return _.q(_.QK,{data:b,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.q("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.q(_.tt,{text:function(){return a.data().teaserText}})))},"$h");var pjd=_.Rr(function(a){var b=a.data;var c=a.setTapCommand;_.wh(function(){var d=_.Ds(b().onTap);c(d)},"ajJXKc");
return _.q("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.q(_.Hu,{data:function(){return b().teasers}},{commentsEntryPointTeaserViewModel:ojd}))},"ai");var qjd=_.Rr(function(a){var b=a.data;var c=a.setTapCommand;_.wh(function(){var d=_.Ds(b().onTap);c(d)},"aO0Mhe");
return _.q("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.q(_.tt,{text:function(){return b().messageText}}))},"bi");var rjd=_.Rr(function(a){var b=a.data;var c=a.setTapCommand;var d=a.isDisabled;_.wh(function(){var e=(d==null?0:d())?void 0:_.Ds(b().onTap);c(e)},"HYTw1e");
return _.q("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.q(_.qt,{icon:function(){return b().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.q(_.qi,{cond:function(){return b().image},
then:function(e){return _.q(_.Ps,{data:e,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.q(_.tt,{text:function(){return b().text},
className:function(){return b().image||b().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.q(_.Hu,{data:function(){return b().button}},{buttonViewModel:function(e){return _.q(_.Qu,{data:e.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:d==null?void 0:d()}}})}}))},"ci");var sjd=_.Rr(function(a){var b=a.data;var c=a.itemIndex;var d=a.selectedIndex;var e=a.indexUpdatedCallback;var g=a.observer;a=a.title;var k=_.Pl(),m=function(u){c()===d()&&e(u)},n=_.Ht(Dcd),r=_.Ht(Ecd),t=function(){var u,x;
return((u=b())==null?void 0:u.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!n()||((x=b())==null?void 0:x.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&r().includes("PAposts_by_host")};
_.wi(function(){g&&g().observe(k.value)});
return _.q("yt-carousel-item-view-model",{el:k,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":a},_.q(_.Hu,{data:function(){var u,x;return(x=(u=_.y(b().carouselItem,Fdd))==null?void 0:u.textCarousel)!=null?x:b().carouselItem}},{textCarouselItemViewModel:function(u){return _.q(rjd,{data:u.data,
setTapCommand:m,isDisabled:t})},
commentTeaserCarouselItemViewModel:function(u){return _.q(pjd,{data:u.data,setTapCommand:m})},
commentInputBoxCarouselItemViewModel:function(u){return _.q(njd,{data:u.data,setTapCommand:m})},
commentsEntryPointMessageViewModel:function(u){return _.q(qjd,{data:u.data,setTapCommand:m})}}))},"di");var tjd=_.Rr(function(a){var b=a.numDots;var c=a.activeIndex;return _.q("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.q(_.ri,{each:function(){return Array.from({length:b()})},
keyBy:"INDEX"},function(d,e){return _.q("div",{class:function(){var g={};return _.ht("ytCarouselDotsShapeDot",(g.ytCarouselDotsShapeDotActive=e===c(),g))}})}))},"ei");var ujd=_.Rr(function(a){var b=a.data;var c=a.handleCarouselNavigation;var d=a.numItems;var e=a.selectedIndex;var g=function(){return{disabled:e()===0}},k=function(){return{disabled:e()===d()-1}};
return _.q("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.q("div",null,_.q("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return b().title}),_.q(_.qi,{cond:function(){return b().subtitle},
then:function(m){return _.q("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return b().subtitleAccessibilityText}},m)}})),_.q(_.qi,{cond:function(){return d()>1},
then:function(){return _.q("div",{class:"ytCarouselTitleViewModelNavigation"},_.q(tjd,{numDots:d,activeIndex:e}),_.q(_.qi,{cond:function(){return b().previousButton},
then:function(m){return _.q(_.Hu,{data:m},{buttonViewModel:function(n){return _.q(_.Qu,{data:n.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return c(-1)},
buttonOverrides:g})}})}}),_.q(_.qi,{cond:function(){return b().nextButton},
then:function(m){return _.q(_.Hu,{data:m},{buttonViewModel:function(n){return _.q(_.Qu,{data:n.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return c(1)},
buttonOverrides:k})}})}}))}}))},"fi");_.Ts(_.Rr(function(a){var b=a.data;var c=_.Pl(),d=_.Pl(),e=_.Fi("HTML_DIR")==="rtl",g=!1,k=0,m=0;a=_.h(_.ih(0,void 0,"m0dtIf"));var n=a.next().value,r=a.next().value;a=_.h(_.ih(0,void 0,"fL6I6"));var t=a.next().value,u=a.next().value;a=_.h(_.ih(!1,void 0,"ZPrwNb"));var x=a.next().value,A=a.next().value,C=function(){var ma,Ba,Ca;return(Ca=(ma=b())==null?void 0:(Ba=ma.carouselTitles)==null?void 0:Ba.length)!=null?Ca:0},F=function(){d.value&&d.value.scrollLeft!==k&&r((e?d.value.scrollLeft<k:d.value.scrollLeft>
k)?Math.min(n()+1,C()-1):Math.max(n()-1,0))},J;
window.IntersectionObserver&&(J=new IntersectionObserver(function(ma){ma=_.h(ma);for(var Ba=ma.next();!Ba.done;Ba=ma.next())if(Ba.value.isIntersecting){if(g){g=!1;break}F()}else r(m)},{root:d.value,
threshold:.2}));_.wh(function(){if(d.value){var ma=(e?-1:1)*(t()/C()+12)*(x()&&J?m:n());typeof d.value.scrollTo==="function"?d.value.scrollTo({left:ma,behavior:"smooth"}):d.value.scrollLeft=ma;k=ma;m=x()&&J?m:n()}},"QdUyG");
var I,R=function(ma){I=ma};
_.wi(function(){var ma=function(){var Ca=d.value.offsetWidth*C(),ya=24*(C()-1);u(Ca+ya)};
ma();if(window.ResizeObserver){var Ba=new ResizeObserver(ma);Ba.observe(d.value);_.zh(function(){Ba.disconnect();J&&J.disconnect()})}});
a=_.lt(function(ma){if(_.aYa(_.Vu(ma),c.value,["BUTTON".toString()])||!I)return!1;_.v().resolve(_.Yi).resolveCommand(I,{forceClickLogging:!0});return!1});
var da=function(ma){ma=n()+ma;ma>=0&&ma<C()&&(g=!0,r(ma))},V=_.lt(function(){A(!0);
return!1}),fa=_.lt(function(){J||F();
A(!1);return!1}),aa={};
return _.q("yt-video-metadata-carousel-view-model",{class:_.et("ytVideoMetadataCarouselViewModelHost",(aa.ytVideoMetadataCarouselViewModelShortMode=_.w("mweb_video_metadata_carousel_short_mode"),aa)),el:c,"on:click":a,"on:touchstart":V,"on:touchend":fa,hidden:function(){var ma,Ba;return!((ma=b())==null?0:(Ba=ma.carouselItems)==null?0:Ba.length)}},_.q("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.q(_.qi,{cond:function(){return b().carouselTitles},
then:function(ma){return _.q(_.Hu,{data:function(){return ma()[x()&&J?m:n()]}},{carouselTitleViewModel:function(Ba){return _.q(ujd,{data:Ba.data,
handleCarouselNavigation:da,numItems:C,selectedIndex:n})}})}})),_.q("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:d},_.q("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+t()+"px;"}},_.q(_.qi,{cond:function(){return b().carouselItems},
then:function(ma){return _.q(_.ri,{each:ma},function(Ba,Ca){return _.q(_.Hu,{data:function(){return Ba}},{carouselItemViewModel:function(ya){return _.q(sjd,{data:ya.data,
itemIndex:Ca,selectedIndex:n,indexUpdatedCallback:R,observer:J,title:function(){a:{var Ia=Ca();var db,lb=(db=b())==null?void 0:db.carouselTitles;if(lb&&(Ia=lb[Ia])){var Ua;Ia=(Ua=_.y(Ia,Edd))==null?void 0:Ua.title;break a}Ia=void 0}return Ia}})}})})}}))))},"gi"),"yt-video-metadata-carousel-view-model",{props:{data:_.VG}});var vjd=function(){var a=_.P.apply(this,arguments)||this;a.metadataBadgesInDescription=_.w("web_metadata_badges_in_description");a.descriptionCollapsed=!0;a.useFadedScrimDescription=_.w("kevlar_enable_faded_scrim_on_description");a.skinnyMode=!1;a.playlist=!1;a.isDark=document.documentElement.hasAttribute("dark");a.disableVideoOwnerOnTap=_.w("swatchie_video_owner_on_tap_ks");a.swatcherooDelayLoad=_.w("swatcheroo_enable_ghost_cards");a.primaryMenuWidth=0;a.videoId="";a.titleHeadlineXs=_.w("web_watch_typography_title_headline_xs");
a.titleHeadlineS=_.w("web_watch_typography_title_headline_s");a.titleHeadlineM=_.w("web_watch_typography_title_headline_m");a.titleHashtagBlackLinkified=_.w("web_title_hashtag_black_linkified");a.titleHashtagGreyLinkified=_.w("web_title_hashtag_grey_linkified");a.actionMap={"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};return a};
_.z(vjd,_.P);_.f=vjd.prototype;_.f.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.f.updateOwnerAndDescriptionPosition=function(){_.w("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.L8(this.bottomRowElement,this.ownerElement)):(_.L8(this.bottomRowElement,this.descriptionElement),_.L8(this.topRowElement,this.ownerElement)))};
_.f.titleOnTap=function(a){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.Wt(_.Rq(a)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var b;((b=window.getSelection())==null?0:b.toString().length)||this.handleExpandDescriptionCommands()}};
_.f.videoOwnerOnTap=function(a){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.Wt(_.Rq(a)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.f.detached=function(){var a=this,b;return _.l(function(c){(b=a.resizeObserver)==null||b.disconnect();_.ue(c)})};
_.f.maybeAttachResizeObserver=function(){var a=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.lv(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){a.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.f.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var a=this.hostElement.clientWidth;this.actionsOnSeparateLine=this.primaryMenuWidth>a-Math.max(this.largerItemWrap?400:350,a/2-12)?!0:!1}};
_.f.stripAttributedDescription=function(a){return{content:a.content.replace(/[\r\n]{2,}/g,"\n")}};
_.f.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.w("web_modern_buttons"),forceIconButton:!_.w("web_modern_buttons")},properties:{topLevelIconsOnly:"[[skinnyMode]]"}}},events:!0},"videoSecondaryInfoRenderer.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",
params:{withCount:!0},properties:{forceIconOnly:"[[skinnyMode]]"}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},commentsEntryPointHeaderRenderer:{id:"comment-teaser",mapping:{commentsEntryPointHeaderRenderer:"ytd-comments-entry-point-header-renderer"}},videoMetadataCarousel:{id:"teaser-carousel",mapping:{videoMetadataCarouselViewModel:"yt-video-metadata-carousel-view-model"}},infoPanelBelowMetadata:{id:"middle-row",mapping:{infoPanelContentRenderer:"ytd-info-panel-content-renderer"}}}};
_.f.videoPrimaryInfoRendererChanged=function(){var a;if((a=this.videoPrimaryInfoRenderer)==null?0:a.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.f.videoSecondaryInfoRendererChanged=function(){var a,b;(b=(a=this.descriptionInlineExpander).collapse)==null||b.call(a);this.descriptionExpandClientVe=_.ku(110509);this.descriptionCollapseClientVe=_.ku(110510);a=_.En();b=_.Dn();a&&b&&(_.w("combine_ve_grafts")?(_.qF(_.ls(),this.descriptionExpandClientVe,b),_.qF(_.ls(),this.descriptionCollapseClientVe,b)):_.iY(a,b,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.f.structuredDescriptionContentRendererChanged=function(){_.w("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.f.updateTopLevelIconsOnly=function(){var a=this;_.w("top_level_update_killswitch")||this.menu&&_.zk.addLowPriorityJob(function(){a.menu.topLevelIconsOnly=a.skinnyMode},_.$i("swathceroo_delay_flexible_menu_update",100))};
_.f.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.f.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.f.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.f.onYtTextInlineExpanderExpandedChanged=function(){if(!_.w("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var a,b;(b=(a=this.structuredDescriptionContentRendererElement).resize)==null||b.call(a)}};
_.f.onRenderStamperFinished=function(a){(a==null?void 0:a.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.f.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.f.onYtExpanderLessTapped=function(){var a,b=(a=this.videoSecondaryInfoRenderer)==null?void 0:a.showLessCommand;b&&this.ytComponentBehavior.resolveCommand(b)};
_.f.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.f.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.f.onDescriptionClick=function(a){if(!_.Wt(_.Rq(a)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var b;((b=window.getSelection())==null?0:b.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.w("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.f.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.f.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.f.logCollapseClick=function(){var a=_.En();a&&this.descriptionCollapseClientVe&&_.Xo(a,this.descriptionCollapseClientVe)};
_.f.logExpandClick=function(){var a=_.En();a&&this.descriptionExpandClientVe&&_.Xo(a,this.descriptionExpandClientVe)};
_.f.collapseDescription=function(){this.descriptionCollapsed=!0};
_.f.scrollToTopOfContainer=function(){_.lo(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.f.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.f.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.f.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.f.resize=function(){if(this.descriptionInlineExpander){var a,b;(b=(a=this.descriptionInlineExpander).resize)==null||b.call(a)}else _.Dl(new _.qj("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var c;(c=this.menu)==null||c.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.w("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.f.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var a,b,c=(b=(a=_.E(this.menu).querySelector("#button"))==null?void 0:a.clientWidth)!=null?b:0,d,e;a=((e=(d=_.E(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:d.clientWidth)!=null?e:0)+8+c;var g,k;c=(k=(g=_.E(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:g.children.length)!=null?k:2;a<=8*c||(this.primaryMenuWidth=a)}};
_.f.onYtUpdateTitleAction=function(a){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.y(a,ked).title)};
_.f.onYtUpdateDescriptionAction=function(a){if(a=_.y(a,_.MFb)){var b,c=!((b=this.videoSecondaryInfoRenderer)==null||!b.attributedDescription);a.isEmpty||!a.description&&!a.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):a.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",a.attributedDescription):a.description&&(c?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.zs(a.description)):this.set("videoSecondaryInfoRenderer.description",a.description))}};
_.f.onYtDarkModeToggledAction=function(a){this.isDark=a};
_.f.registerPanel=function(){if(!_.w("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var a=_.v().resolve(_.JJ);a&&a.registerPanel("engagement-panel-structured-description",this)}};
_.f.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.f.showPanel=function(a){this.expandDescription();var b=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;b.resize();var c,d=a==null?void 0:(c=a.sectionListEngagementPanelExtras)==null?void 0:c.scrollToItemSectionIdentifier;d?_.zk.addJob(function(){b==null||b.scrollToSection(d)},8):this.scrollToTopOfContainer()};
_.f.isVisible=function(){return!this.descriptionCollapsed};
_.f.getReloadContinuation=function(){};
_.f.hidePanel=function(){};
_.f.updatePanel=function(){};
_.Um.Object.defineProperties(vjd.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.structuredDescriptionContentRenderer)!=null&&a.items){var b;a=_.h((b=this.structuredDescriptionContentRenderer)==null?void 0:b.items);for(b=a.next();!b.done;b=a.next())if(b=_.y(b.value,_.$Cb))return b}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.videoPrimaryInfoRenderer)==null?0:a.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return!!((a=this.videoSecondaryInfoRenderer)==null?0:(b=a.owner)==null?0:(c=b.videoOwnerRenderer)==null?0:c.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.w("swatchie_sd_new_line_strip_ks")){var a,b;if((a=this.videoSecondaryInfoRenderer)==null?0:(b=a.attributedDescription)==null?0:b.content){var c,d;return(d=this.stripAttributedDescription((c=this.videoSecondaryInfoRenderer)==null?void 0:c.attributedDescription))!=null?d:{runs:[]}}}var e,g,k,m;return(m=(k=(e=this.videoSecondaryInfoRenderer)==null?void 0:e.description)!=null?k:(g=this.videoSecondaryInfoRenderer)==null?
void 0:g.attributedDescription)!=null?m:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.videoSecondaryInfoRenderer)==null?void 0:a.headerRuns)!=null?b:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.commentsEntryPointHeaderRenderer)==null||!a.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.videoMetadataCarousel)==null||!a.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.$i("swatchie_desc_lines",3):this.hasTeaserCarousel?_.$i("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var a,b,c=Object.assign({},(a=this.videoSecondaryInfoRenderer)==null?void 0:(b=a.metadataRowContainer)==null?void 0:b.metadataRowContainerRenderer);if(c&&c.rows&&c.collapsedItemCount!==void 0&&!(c.rows.length<=c.collapsedItemCount))return c.rows=c.rows.slice(c.collapsedItemCount),c.collapsedItemCount=0,c}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var a,b,c=Object.assign({},(a=this.videoSecondaryInfoRenderer)==null?void 0:(b=a.metadataRowContainer)==null?void 0:b.metadataRowContainerRenderer);if(c&&c.rows&&c.collapsedItemCount!==void 0)return c.rows=c.rows.slice(0,c.collapsedItemCount),c.collapsedItemCount=c.rows.length,c}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this.structuredDescriptionContentRenderer)==null?0:(b=a.items)==null?0:b.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRenderer)return null;var a;return(a=this.videoSecondaryInfoRenderer)==null?void 0:a.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.videoSecondaryInfoRenderer)==null?0:(b=a.owner)==null?0:(c=b.videoOwnerRenderer)==null?0:c.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;return!!((a=this.videoPrimaryInfoRenderer)==null?0:(b=a.videoActions)==null?0:(c=b.menuRenderer)==null?0:(d=c.flexibleItems)==null?0:d.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.Ls(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.Ls(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var a=this;if(_.w("web_title_hashtag_grey_delinkified")){var b,c=_.Cf.unsafeClone((b=this.videoPrimaryInfoRenderer)==null?void 0:b.title);(b=c==null?void 0:c.runs)&&b.forEach(function(d){if(d==null?0:d.navigationEndpoint)d.textColor=4284506208,a.isDark&&(d.textColor=4289374890)});
return c}return(c=this.videoPrimaryInfoRenderer)==null?void 0:c.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.w("web_title_hashtag_black_delinkified")||_.w("web_title_hashtag_grey_delinkified")}}});
var D$=vjd;D$.prototype.resetDescriptionState=D$.prototype.resetDescriptionState;D$.prototype.registerPanel=D$.prototype.registerPanel;D$.prototype.onYtExpanderLessTapped=D$.prototype.onYtExpanderLessTapped;D$.prototype.onYtExpanderMoreTapped=D$.prototype.onYtExpanderMoreTapped;D$.prototype.onRenderStamperFinished=D$.prototype.onRenderStamperFinished;D$.prototype.onYtTextInlineExpanderExpandedChanged=D$.prototype.onYtTextInlineExpanderExpandedChanged;
D$.prototype.onYtTextInlineExpanderCollapseClicked=D$.prototype.onYtTextInlineExpanderCollapseClicked;D$.prototype.onYtTextInlineExpanderExpandClicked=D$.prototype.onYtTextInlineExpanderExpandClicked;D$.prototype.moveActionsElement=D$.prototype.moveActionsElement;D$.prototype.updateTopLevelIconsOnly=D$.prototype.updateTopLevelIconsOnly;D$.prototype.structuredDescriptionContentRendererChanged=D$.prototype.structuredDescriptionContentRendererChanged;D$.prototype.videoSecondaryInfoRendererChanged=D$.prototype.videoSecondaryInfoRendererChanged;
D$.prototype.videoPrimaryInfoRendererChanged=D$.prototype.videoPrimaryInfoRendererChanged;D$.prototype.maybeUpdateActionsOnSeparateLine=D$.prototype.maybeUpdateActionsOnSeparateLine;D$.prototype.updateOwnerAndDescriptionPosition=D$.prototype.updateOwnerAndDescriptionPosition;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],D$.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],D$.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],D$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.ir("#above-the-fold"),_.W("design:type",HTMLElement)],D$.prototype,"aboveTheFoldContainer",void 0);_.U([_.ir("#menu ytd-menu-renderer"),_.W("design:type",Object)],D$.prototype,"menu",void 0);
_.U([_.ir("#description-inline-expander"),_.W("design:type",Object)],D$.prototype,"descriptionInlineExpander",void 0);_.U([_.ir("#faded-structured-description"),_.W("design:type",Object)],D$.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.U([_.ir("#structured-description"),_.W("design:type",Object)],D$.prototype,"structuredDescriptionContentRendererElement",void 0);_.U([_.ir("#title"),_.W("design:type",HTMLElement)],D$.prototype,"titleElement",void 0);
_.U([_.ir("#description"),_.W("design:type",HTMLElement)],D$.prototype,"descriptionElement",void 0);_.U([_.ir("#description-interaction"),_.W("design:type",Object)],D$.prototype,"descriptionInteraction",void 0);_.U([_.ir("#owner"),_.W("design:type",HTMLElement)],D$.prototype,"ownerElement",void 0);_.U([_.ir("#top-row"),_.W("design:type",HTMLElement)],D$.prototype,"topRowElement",void 0);_.U([_.ir("#bottom-row"),_.W("design:type",HTMLElement)],D$.prototype,"bottomRowElement",void 0);
_.U([_.ir("#actions"),_.W("design:type",HTMLElement)],D$.prototype,"actionsElement",void 0);_.U([_.ir("#bottom-actions"),_.W("design:type",HTMLElement)],D$.prototype,"bottomActionsElement",void 0);_.U([_.ir("#ytd-watch-info-text"),_.W("design:type",Object)],D$.prototype,"watchInfoTextElement",void 0);_.U([_.O(),_.W("design:type",Object)],D$.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],D$.prototype,"videoPrimaryInfoRenderer",void 0);
_.U([_.O(),_.W("design:type",Object)],D$.prototype,"videoSecondaryInfoRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],D$.prototype,"commentsEntryPointHeaderRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],D$.prototype,"videoMetadataCarousel",void 0);_.U([_.O(),_.W("design:type",Object)],D$.prototype,"structuredDescriptionContentRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],D$.prototype,"videoSummary",void 0);
_.U([_.O(),_.W("design:type",Object)],D$.prototype,"merchShelf",void 0);_.U([_.O(),_.W("design:type",Object)],D$.prototype,"infoPanelBelowMetadata",void 0);_.U([_.K("structuredDescriptionContentRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"productShelf",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D$.prototype,"metadataBadgesInDescription",void 0);
_.U([_.K("videoPrimaryInfoRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"shouldHideBadges",null);_.U([_.K("productShelf","descriptionCollapsed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],D$.prototype,"shouldShowProductShelf",null);_.U([_.O(),_.W("design:type",Boolean)],D$.prototype,"isWatchFlexy",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D$.prototype,"descriptionCollapsed",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],D$.prototype,"useFadedScrimDescription",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D$.prototype,"skinnyMode",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("videoSecondaryInfoRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"largerItemWrap",null);_.U([_.O(),_.W("design:type",Object)],D$.prototype,"playlist",void 0);_.U([_.O(),_.W("design:type",Object)],D$.prototype,"clarifyBox",void 0);
_.U([_.O(),_.W("design:type",Object)],D$.prototype,"playerAds",void 0);_.U([_.O(),_.W("design:type",Boolean)],D$.prototype,"isDark",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],D$.prototype,"actionsOnSeparateLine",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D$.prototype,"disableVideoOwnerOnTap",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D$.prototype,"swatcherooDelayLoad",void 0);
_.U([_.O(),_.W("design:type",Boolean)],D$.prototype,"suppressTopLevelMetadataRows",void 0);_.U([_.O(),_.W("design:type",Object)],D$.prototype,"primaryMenuWidth",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D$.prototype,"videoId",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D$.prototype,"titleHeadlineXs",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D$.prototype,"titleHeadlineS",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D$.prototype,"titleHeadlineM",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D$.prototype,"titleHashtagBlackLinkified",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D$.prototype,"titleHashtagGreyLinkified",void 0);_.U([_.mr("skinnyMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"updateOwnerAndDescriptionPosition",null);
_.U([_.mr("skinnyMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"maybeUpdateActionsOnSeparateLine",null);_.U([_.K("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"descriptionText",null);_.U([_.K("videoSecondaryInfoRenderer.headerRuns"),_.W("design:type",Array),_.W("design:paramtypes",[])],D$.prototype,"headerRuns",null);
_.U([_.O({value:!1}),_.K("commentsEntryPointHeaderRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"hasTeaser",null);_.U([_.O({value:!1,reflectToAttribute:!0}),_.K("videoMetadataCarousel"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"hasTeaserCarousel",null);_.U([_.O({value:3}),_.K("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"descriptionMaxLines",null);
_.U([_.K("videoSecondaryInfoRenderer.metadataRowContainer"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"collapsibleMetadataRows",null);_.U([_.K("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"alwaysVisibleMetadataRows",null);
_.U([_.K("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],D$.prototype,"hasInlineStructuredDescription",null);_.U([_.K("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],D$.prototype,"showInlineStructuredDescription",null);
_.U([_.K("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"descriptionExpandCommand",null);_.U([_.K("videoSecondaryInfoRenderer.owner"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"videoOwnerCommand",null);_.U([_.O({reflectToAttribute:!0}),_.K("videoPrimaryInfoRenderer.videoActions"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],D$.prototype,"flexMenuEnabled",null);
_.U([_.K("descriptionText","useFadedScrimDescription"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],D$.prototype,"showAttributedStringDescription",null);_.U([_.K("descriptionText","useFadedScrimDescription"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],D$.prototype,"showFormattedStringDescription",null);
_.U([_.K("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],D$.prototype,"showFadedStructuredDescription",null);_.U([_.mr("videoPrimaryInfoRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"videoPrimaryInfoRendererChanged",null);_.U([_.K("videoPrimaryInfoRenderer.title"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"videoTitle",null);
_.U([_.K("videoPrimaryInfoRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"noEndpoints",null);_.U([_.mr("videoSecondaryInfoRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"videoSecondaryInfoRendererChanged",null);
_.U([_.N("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"structuredDescriptionContentRendererChanged",null);_.U([_.N("skinnyMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"updateTopLevelIconsOnly",null);
_.U([_.N("skinnyMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"moveActionsElement",null);_.U([_.M("yt-text-inline-expander-expand-clicked"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.U([_.M("yt-text-inline-expander-collapse-clicked"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.U([_.M("yt-text-inline-expander-expanded-changed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],D$.prototype,"onRenderStamperFinished",null);_.U([_.M("yt-expander-more-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"onYtExpanderMoreTapped",null);_.U([_.M("yt-expander-less-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"onYtExpanderLessTapped",null);
_.U([_.N("videoPrimaryInfoRenderer","hasInlineStructuredDescription"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"registerPanel",null);_.U([_.N("videoSecondaryInfoRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"resetDescriptionState",null);D$=_.U([_.Q({disableElementRegistration:!0,is:"ytd-watch-metadata"})],D$);
_.S(D$,"ytd-watch-metadata",function(){if(mjd!==void 0)return mjd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRenderer]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return mjd=a},{mode:2});var Djd=function(a){_.vg.call(this);this.JSC$20049_watchApi=a;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;wjd(this);xjd(this);yjd(this);zjd(this);Ajd(this);Bjd(this);Cjd(this)};
_.z(Djd,_.vg);var yjd=function(a){var b=function(){_.w("kevlar_is_pupi_enabled")||E$(a)};
a.JSC$20049_watchApi.getRoot().addEventListener("yt-player-updated",b);a.addOnDisposeCallback(function(){a.JSC$20049_watchApi.getRoot().removeEventListener("yt-player-updated",b)})},Ajd=function(a){if(_.w("kevlar_endscreen_auto_theater_mode")){var b=_.zF(_.Yp(),G8,function(){Ejd(a)});
a.addOnDisposeCallback(b)}},wjd=function(a){var b,c,d,e,g;
_.l(function(k){if(k.nextAddress==1)return _.p(k,a.JSC$20049_watchApi.playerApi,2);b=k.yieldResult;c=function(m){m=!!m;Fjd(a)&&(m=m?2:1,_.fF.getInstance().setState(m,!0,!1))};
d=function(m){m&&_.Ccd(_.Yp().getState())&&(_.lo(a.JSC$20049_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),a.temporaryTheaterMode=!0)};
e=function(m){_.w("kevlar_player_update_autonav_on_new_data")&&m.type==="newdata"&&(_.w("kevlar_is_pupi_enabled")||E$(a))};
g=function(m){a.onPlayerStateChange(m)};
_.w("kevlar_endscreen_auto_theater_mode")&&b.addEventListener("onAutonavCancelled",d);b.addEventListener("onAutonavChangeRequest",c);b.addEventListener("onVideoDataChange",e);b.addEventListener("onStateChange",g);a.addOnDisposeCallback(function(){b.removeEventListener("onAutonavChangeRequest",c);b.removeEventListener("onVideoDataChange",e);b.removeEventListener("onStateChange",g);_.w("kevlar_endscreen_auto_theater_mode")&&b.removeEventListener("onAutonavCancelled",d)});
_.ue(k)})},xjd=function(a){a.JSC$20049_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){a.autonavCancelledBySignal=!0;
_.w("kevlar_is_pupi_enabled")||E$(a)});
a.JSC$20049_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(b,c,d){c&&E$(a,d)});
a.JSC$20049_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){Fjd(a)&&_.fF.getInstance().setState(2,!0,!0)});
a.JSC$20049_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){Fjd(a)&&_.fF.getInstance().setState(1,!0,!0)});
a.addOnDisposeCallback(function(){F$(a.JSC$20049_watchApi,"yt-signal-action-cancel-autonav");F$(a.JSC$20049_watchApi,"yt-autonav-state-changed-action");F$(a.JSC$20049_watchApi,"yt-enable-autoplay-command");F$(a.JSC$20049_watchApi,"yt-disable-autoplay-command")})},zjd=function(a){var b=a.JSC$20049_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Cjd(a)}),c=a.JSC$20049_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Bjd(a)});
a.addOnDisposeCallback(function(){a.JSC$20049_watchApi.unsubscribeByKey(b);a.JSC$20049_watchApi.unsubscribeByKey(c)})},Cjd=function(a){a.autonavCancelledBySignal=!1;
_.w("kevlar_is_pupi_enabled")||E$(a)},Bjd=function(a){var b=a.JSC$20049_watchApi.getWatchNextResponse(),c,d;
var e=(b=(d=_.y(b==null?void 0:(e=b.playerOverlays)==null?void 0:(c=e.playerOverlayRenderer)==null?void 0:c.autonavToggle,_.OFb))==null?void 0:d.enabled)?2:1;_.w("kevlar_is_pupi_enabled")?_.fF.getInstance().setState(e,!1,!1):E$(a);_.w("web_persist_server_autonav_state_on_client")&&typeof b==="boolean"&&_.jCa(e===2)},Fjd=function(a){if(a.autonavCancelledBySignal)return!1;
var b,c,d,e;return!!((b=a.JSC$20049_watchApi.getWatchNextResponse())==null?0:(c=b.contents)==null?0:(d=c.twoColumnWatchNextResults)==null?0:(e=d.autoplay)==null?0:e.autoplay)};
Djd.prototype.onPlayerStateChange=function(a){if(a===0){a=!_.fF.getInstance().isAutoplaySetExplicitly();var b=this.JSC$20049_watchApi.getWatchNextResponse(),c,d,e,g;b=_.y(b==null?void 0:(c=b.contents)==null?void 0:(d=c.twoColumnWatchNextResults)==null?void 0:(e=d.autoplay)==null?void 0:(g=e.autoplay)==null?void 0:g.autoplayExplicitChoiceDialogRenderer,_.zEb);Fjd(this)&&a&&b&&_.gs.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:b},popupType:"DIALOG"}})}else Ejd(this)};
var Ejd=function(a){a.temporaryTheaterMode&&(a.temporaryTheaterMode=!1,_.lo(a.JSC$20049_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},E$=function(a,b){b=b===void 0?!1:b;
var c;_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20049_watchApi.playerApi,2);c=d.yieldResult;Fjd(a)?c.setAutonavState(_.fF.getInstance().getState(),b):c.setAutonavState(1,b);_.ue(d)})};var Gjd={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL"};var Ijd=function(a){_.vg.call(this);var b=this;this.JSC$20054_watchApi=a;var c=this.JSC$20054_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Hjd(b)});
this.addOnDisposeCallback(function(){b.JSC$20054_watchApi.unsubscribeByKey(c)});
Hjd(this)};
_.z(Ijd,_.vg);var Hjd=function(a){var b=a.JSC$20054_watchApi.getPlayerResponse(),c=a.JSC$20054_watchApi.getWatchNextResponse();if(!_.h6a(b==null?void 0:b.playabilityStatus,c==null?void 0:c.playerOverlays)){var d;var e=b==null?void 0:(d=b.playabilityStatus)==null?void 0:d.errorScreen}a.JSC$20054_watchApi.provideRenderingData("ERROR_SCREEN",e)};var Jjd=_.Rr(function(a){var b=a.data;return _.q("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost"},_.q("div",{class:"ytPlayerOverlayVideoDetailsRendererTitle"},_.q(_.tt,{text:function(){return b().title}})),_.q("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.q(_.Hu,{data:function(){return b().channelAvatar}},{avatarViewModel:_.QK}),_.q(_.tt,{text:function(){return b().subtitle}})))},"hi");var Kjd=_.Rr(function(a){return _.q("yt-player-quick-action-buttons",{class:_.et("ytPlayerQuickActionButtonsHost")},_.q(_.ri,{each:a.data},function(b){return _.q(_.Hu,{data:function(){return b}},{buttonViewModel:_.Qu,
likeButtonViewModel:function(c){return _.q(_.RXb,{data:c.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.QXb})}))},"ii");var Mjd=function(a){_.vg.call(this);var b=this;this.JSC$20057_watchApi=a;a=_.h(_.ih({},void 0,"ufFdVc"));this.quickActionsViewModel=a.next().value;this.setQuickActionsViewModel=a.next().value;a=_.h(_.ih({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=a.next().value;this.setPlayerOverlayVideoDetailsRenderer=a.next().value;var c=this.JSC$20057_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Ljd(b)});
this.addOnDisposeCallback(function(){b.JSC$20057_watchApi.unsubscribeByKey(c)})};
_.z(Mjd,_.vg);
var Ljd=function(a){var b,c,d,e,g,k,m,n,r,t,u,x,A,C;_.l(function(F){if(F.nextAddress==1)return _.p(F,a.JSC$20057_watchApi.playerApi,2);b=F.yieldResult;c=a.JSC$20057_watchApi.getWatchNextResponse();g=(d=c)==null?void 0:(e=d.playerOverlays)==null?void 0:e.playerOverlayRenderer;m=_.y((k=g)==null?void 0:k.fullscreenQuickActionsBar,_.gEb);(r=(n=a).setQuickActionsViewModel)==null||r.call(n,m||{});m&&Njd(a,b);x=(t=g)==null?void 0:(u=t.videoDetails)==null?void 0:u.playerOverlayVideoDetailsRenderer;(C=(A=
a).setPlayerOverlayVideoDetailsRenderer)==null||C.call(A,x||{});x&&Ojd(a,b);_.ue(F)})},Njd=function(a,b){if(!a.quickActionButtonsContainer){a.quickActionButtonsContainer=document.createElement("div");
b.setFullscreenQuickActions(a.quickActionButtonsContainer);var c=function(){return a.quickActionsViewModel().quickActionButtons||[]},d=_.oi(a.quickActionButtonsContainer,function(){return _.q(Kjd,{data:c})});
a.addOnDisposeCallback(function(){b.setFullscreenQuickActions(void 0);d()})}},Ojd=function(a,b){if(!a.playerOverlayVideoDetailsRendererContainer){a.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
b.setPlayerOverlayVideoDetailsRenderer(a.playerOverlayVideoDetailsRendererContainer);var c=_.oi(a.playerOverlayVideoDetailsRendererContainer,function(){return _.q(Jjd,{data:a.playerOverlayVideoDetailsRenderer})});
a.addOnDisposeCallback(function(){b.setPlayerOverlayVideoDetailsRenderer(void 0);c()})}};var G$=function(a){_.vg.call(this);var b=this;this.JSC$20062_watchApi=a;this.JSC$20062_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;a=_.zF(_.Yp(),_.H8,function(c){Pjd(b,c)});
this.addOnDisposeCallback(a);a=_.zF(_.Yp(),_.I8,function(c){b.onWatchScroll(c)});
this.addOnDisposeCallback(a);_.w("kevlar_watch_while_v2")&&(a=_.zF(_.Yp(),_.Hp,function(c){Qjd(b,c)}),this.addOnDisposeCallback(a));
Rjd(this);Sjd(this);this.onWatchScroll(_.I8(_.Yp().getState()));_.Gi("START_IN_FULL_WINDOW_MODE")&&this.JSC$20062_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.z(G$,_.vg);var Rjd=function(a){a.JSC$20062_watchApi.registerActionHandler("yt-fullscreen-change-action",function(b){var c=G8(_.Yp().getState());b&&!c||_.Yp().dispatch(_.hp({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!b}}))});
a.addOnDisposeCallback(function(){F$(a.JSC$20062_watchApi,"yt-fullscreen-change-action")})},Sjd=function(a){var b,c;
_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20062_watchApi.playerApi,2);b=d.yieldResult;c=function(){a.onFullerscreenEduClicked()};
b.addEventListener("onFullerscreenEduClicked",c);a.addOnDisposeCallback(function(){b.removeEventListener("onFullerscreenEduClicked",c)});
_.ue(d)})},Pjd=function(a,b){var c;
_.l(function(d){if(d.nextAddress==1)return a.isFullscreen=!!_.eo(),_.p(d,a.JSC$20062_watchApi.playerApi,2);c=d.yieldResult;a.JSC$20062_miniplayerActive||c.setFauxFullscreen(a.isFullscreen);if(b&&(a.JSC$20062_watchApi.focusOnPlayer(),!a.fullerscreenEduButtonShownThisPlayback)){a.fullerscreenEduButtonShownThisPlayback=!0;var e=_.vG("yt-fullerscreen-edu-button-shown-count")||0;_.uG("yt-fullerscreen-edu-button-shown-count",e+1,31536E3);a.updateFullerscreenEduButtonSubtleModeState()}_.ue(d)})},Qjd=function(a,
b){var c;
_.l(function(d){if(d.nextAddress==1)return a.JSC$20062_miniplayerActive=b,_.p(d,a.JSC$20062_watchApi.playerApi,2);c=d.yieldResult;c.setFauxFullscreen(!a.JSC$20062_miniplayerActive&&a.isFullscreen);_.ue(d)})};
G$.prototype.onWatchScroll=function(a){var b=this,c,d;return _.l(function(e){if(e.nextAddress==1)return _.w("external_fullscreen_with_edu")?_.p(e,b.JSC$20062_watchApi.playerApi,2):e.return();c=e.yieldResult;d=a<=0;b.shouldShowFullerscreenEdu!==d&&(b.shouldShowFullerscreenEdu=d,c.updateFullerscreenEduButtonVisibility(!b.shouldShowFullerscreenEdu));_.ue(e)})};
G$.prototype.onFullerscreenEduClicked=function(){this.JSC$20062_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var a=_.vG("yt-fullerscreen-edu-button-click-count")||0;_.uG("yt-fullerscreen-edu-button-click-count",a+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
G$.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var a=this,b,c,d,e,g,k;return _.l(function(m){if(m.nextAddress==1)return b=_.vG("yt-fullerscreen-edu-button-click-count")||0,c=_.vG("yt-fullerscreen-edu-button-shown-count")||0,d=_.$i("external_fullscreen_button_click_threshold"),e=_.$i("external_fullscreen_button_shown_threshold"),g=b>=d||c>=e,_.p(m,a.JSC$20062_watchApi.playerApi,2);k=m.yieldResult;k.updateFullerscreenEduButtonSubtleModeState(g);_.ue(m)})};
G$.prototype.disposeInternal=function(){_.vg.prototype.disposeInternal.call(this);var a=_.eo();_.w("kevlar_exit_fullscreen_leaving_watch")&&a&&_.fo(a)};var Ujd=function(a){_.vg.call(this);var b=this;this.JSC$20066_watchApi=a;this.jobId=0;this.pendingRequestId=void 0;var c=this.JSC$20066_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Tjd(b)});
this.addOnDisposeCallback(function(){b.JSC$20066_watchApi.unsubscribeByKey(c)});
Tjd(this)};
_.z(Ujd,_.vg);var Vjd=function(a){_.zk.cancelJob(a.jobId);a.pendingRequestId=void 0},Tjd=function(a){Vjd(a);
var b=ddd(a.JSC$20066_watchApi.getWatchNextResponse());if(b){var c=250,d,e=(d=_.y(b,_.dFb))==null?void 0:d.initialDelayMs;_.w("web_watch_updated_metadata_server_initial_delay")&&e&&(c=e);a.jobId=_.zk.addLowPriorityJob(function(){return a.fetchUpdatedMetadata(b)},c)}};
Ujd.prototype.fetchUpdatedMetadata=function(a,b){var c=this,d,e,g,k,m,n,r,t,u,x,A,C,F,J,I;return _.l(function(R){switch(R.nextAddress){case 1:b&&(d={continuation:b});if(!_.w("web_get_updated_metadata_fantasy_panel_continuation_params")){R.jumpTo(2);break}e=_.v().resolve(_.JJ);g="PAsports_fantasy";return _.p(R,e.isVisible(g,!0),3);case 3:R.yieldResult&&(r=(m=(k=e).getUpdatePanelContinuationData)==null?void 0:(n=m.call(k,g))==null?void 0:n.updatePanelContinuationRequest)&&(d||(d={}),d.clientParams=
{panelContinuationParams:{panelContinuation:r}});case 2:t=_.v().resolve(_.yq);if(!t)return _.Bl(Error("km")),R.return();u={};c.pendingRequestId=u;return _.p(R,_.Rt(t,a,d),4);case 4:x=R.yieldResult;if(u!==c.pendingRequestId)return R.return();F=(A=x)==null?void 0:(C=A.continuation)==null?void 0:C.timedContinuationData;((J=F)==null?0:J.continuation)&&((I=F)==null?0:I.timeoutMs)&&(c.jobId=_.zk.addLowPriorityJob(function(){return c.fetchUpdatedMetadata(a,F.continuation)},F.timeoutMs));
_.ue(R)}})};
Ujd.prototype.disposeInternal=function(){_.vg.prototype.disposeInternal.call(this);Vjd(this)};var Wjd=_.Rr(function(a){var b=_.lt(function(){var d=a.data().videoId;if(a.active())d=_.dp(d),_.v().resolve(_.Yi).resolveCommand(d);else{var e=a.playerApi(),g=e.getAvailableAudioTracks(),k,m,n=(k=a.sourceVideoConfig().audioTracks)==null?void 0:(m=k.find(function(r){return r.isDefaultForSource}))==null?void 0:m.id;
if(g=g.find(function(r){return r.getLanguageInfo().getId()===n}))e.setAudioTrack(g,!0),e.setCompositeParam({activeVideoId:d}),a.setActiveSourceId(d)}}),c={};
return _.q("ytw-composite-source-video-overlay",{class:_.et("ytwCompositeSourceVideoOverlayHost",(c.ytwCompositeSourceVideoOverlayActive=a.active,c.ytwCompositeSourceVideoOverlayInteracting=a.interacting,c)),style:_.ot({left:function(){var d;return((d=a.data().topLeftCornerX)!=null?d:0)*100+"%"},
top:function(){var d;return((d=a.data().topLeftCornerY)!=null?d:0)*100+"%"},
width:function(){var d;return((d=a.data().width)!=null?d:0)*100+"%"},
height:function(){var d;return((d=a.data().height)!=null?d:0)*100+"%"}}),
"on:click":b},_.q("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"ji");var Xjd=_.Rr(function(a){var b=_.h(_.nt(function(){var m,n=(m=a.data().sources)==null?void 0:m.find(function(r){return r.isActive});
if(n)return n.videoId})),c=b.next().value,d=b.next().value;
b=_.h(_.ih(!1,void 0,"WI4BUb"));var e=b.next().value,g=b.next().value;b=_.lt(function(){g(!0)});
var k=_.lt(function(){g(!1)});
return _.q("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":b,"on:mouseout":k},_.q(_.qi,{cond:function(){return a.data().sources},
then:function(m){return _.q(_.ri,{each:m},function(n){return _.q(Wjd,{data:n,active:function(){return n.videoId===c()},
setActiveSourceId:d,interacting:e,playerApi:a.playerApi,sourceVideoConfig:function(){return edd(a.compositeVideoConfig(),n.videoId)}})})}}))},"ki");var $jd=function(a){_.vg.call(this);this.JSC$20082_watchApi=a;a=_.h(_.ih({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=a.next().value;this.setCompositeVideoOverlayRenderer=a.next().value;a=_.h(_.ih({},void 0,"U5hcq"));this.compositeVideoConfig=a.next().value;this.setCompositeVideoConfig=a.next().value;Yjd(this);Zjd(this)};
_.z($jd,_.vg);var Yjd=function(a){var b=a.JSC$20082_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Zjd(a)});
a.addOnDisposeCallback(function(){a.JSC$20082_watchApi.unsubscribeByKey(b)})},akd=function(a){var b;
return _.l(function(c){if(c.nextAddress==1)return _.p(c,a.JSC$20082_watchApi.playerApi,2);b=c.yieldResult;b.setCompositeVideoOverlayRendererComponent(a.container);_.ue(c)})},bkd=function(a){var b;
return _.l(function(c){if(c.nextAddress==1)return _.p(c,a.JSC$20082_watchApi.playerApi,2);b=c.yieldResult;b.setCompositeVideoOverlayRendererComponent(void 0);_.ue(c)})},ckd=function(a){var b,c;
return _.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20082_watchApi.playerApi,2);b=d.yieldResult;a.container=document.createElement("div");c=_.oi(a.container,function(){return _.q(Xjd,{data:a.compositeVideoOverlayRenderer,compositeVideoConfig:a.compositeVideoConfig,playerApi:b})});
a.addOnDisposeCallback(c);_.ue(d)})},Zjd=function(a){var b,c,d,e,g,k,m,n;
_.l(function(r){return r.nextAddress==1?(b=a.JSC$20082_watchApi.getPlayerResponse(),g=_.y((c=b)==null?void 0:(d=c.overlay)==null?void 0:(e=d.playerControlsOverlayRenderer)==null?void 0:e.compositeVideoOverlay,$dd),n=(k=b)==null?void 0:(m=k.playerConfig)==null?void 0:m.compositeVideoConfig,g&&a.setCompositeVideoOverlayRenderer(g),n&&a.setCompositeVideoConfig(n),g&&n?a.container?r.jumpTo(6):_.p(r,ckd(a),6):dkd(a)?_.p(r,bkd(a),0):r.jumpTo(0)):dkd(a)?r.jumpTo(0):_.p(r,akd(a),0)})},dkd=function(a){var b;
return!((b=a.container)==null||!b.parentElement)};
$jd.prototype.disposeInternal=function(){dkd(this)&&bkd(this);_.vg.prototype.disposeInternal.call(this)};var ikd=function(a){_.vg.call(this);var b=this;this.JSC$20088_watchApi=a;var c=this.JSC$20088_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var d=b.JSC$20088_watchApi.getPlayerResponse();if(d){var e,g;if(d=_.y((e=d.endscreen)==null?void 0:(g=e.endscreenRenderer)==null?void 0:g.hideButton,_.Ju)){var k;(k=b.setEndscreenHideButton)==null||k.call(b,d);ekd(b)}}});
this.addOnDisposeCallback(function(){b.JSC$20088_watchApi.unsubscribeByKey(c)});
a=_.h(_.ih({},void 0,"PPHRb"));this.endscreenHideButton=a.next().value;this.setEndscreenHideButton=a.next().value;fkd(this);gkd(this);hkd(this)};
_.z(ikd,_.vg);var ekd=function(a){var b,c;_.l(function(d){if(d.nextAddress==1)return a.creatorEndscreenHideButtonContainer?d.return():_.p(d,a.JSC$20088_watchApi.playerApi,2);b=d.yieldResult;a.creatorEndscreenHideButtonContainer=document.createElement("div");_.Pg(a.creatorEndscreenHideButtonContainer,!1);b.setCreatorEndscreenHideButton(a.creatorEndscreenHideButtonContainer);c=_.oi(a.creatorEndscreenHideButtonContainer,function(){return _.q(_.Ku,{data:a.endscreenHideButton,useOutlinedIcon:!0})});
a.addOnDisposeCallback(function(){c();b.setCreatorEndscreenHideButton(void 0)});
_.ue(d)})},fkd=function(a){var b,c;
_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20088_watchApi.playerApi,2);b=d.yieldResult;c=function(){a.creatorEndscreenHideButtonContainer&&_.Pg(a.creatorEndscreenHideButtonContainer,!0)};
b.addEventListener("endscreenelementshown",c);a.addOnDisposeCallback(function(){b.removeEventListener("endscreenelementshown",c)});
_.ue(d)})},gkd=function(a){var b=function(){a.creatorEndscreenHideButtonContainer&&_.Pg(a.creatorEndscreenHideButtonContainer,!1)},c=a.JSC$20088_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",b),d=a.JSC$20088_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",b);
a.addOnDisposeCallback(function(){a.JSC$20088_watchApi.unsubscribeByKey(c);a.JSC$20088_watchApi.unsubscribeByKey(d)})},hkd=function(a){a.JSC$20088_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(b){var c=_.y(b,Udd);
a.JSC$20088_watchApi.playerApi.then(function(d){d==null||d.setCreatorEndscreenVisibility(!!c.hide)})});
a.addOnDisposeCallback(function(){F$(a.JSC$20088_watchApi,"yt-change-creator-endscreen-visibility-command")})};var kkd=function(a){_.vg.call(this);this.JSC$20094_watchApi=a;jkd(this)};
_.z(kkd,_.vg);var jkd=function(a){var b,c;_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20094_watchApi.playerApi,2);b=d.yieldResult;c=function(e){_.Yp().dispatch(_.hp({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:e}}))};
b.addEventListener("onRetroModeChanged",c);a.addOnDisposeCallback(function(){b.removeEventListener("onRetroModeChanged",c)});
_.ue(d)})};var mdd=0,K8=0,odd=0;var lkd=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]),H$=function(a){_.vg.call(this);this.JSC$20107_watchApi=a;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;mkd(this)};
_.z(H$,_.vg);
var mkd=function(a){var b,c,d;_.l(function(e){if(e.nextAddress==1)return _.p(e,a.JSC$20107_watchApi.playerApi,2);b=e.yieldResult;if(a.isDisposed())return e.return();a.sessionStorage=_.Nic("yt-sleep-timer");a.sessionStorage||_.Dl(new _.qj("SessionStorage for Sleep Timer is undefined."));((c=a.sessionStorage)==null?void 0:c.get("yt-sleep-timer"))==="true"&&(rdd(),(d=a.sessionStorage)==null||d.remove("yt-sleep-timer"),b.syncVolume());nkd(a,b);okd(a,b);pkd(a,b);_.ue(e)})},nkd=function(a,b){var c=function(r){a.onSleepTimerSettingsChanged(r,
b)},d=function(r){a.onPlayerStateChange(r,b)},e=function(){a.onLoopChange(b)},g=function(){a.onCloseMiniplayer(b)},k=function(){ldd(b,(0,_.Uj)(),sdd(b),a.selectedOption==="End of video",b.getPlayerState()!==1)},m=function(){a.onSeekComplete(b)},n=function(){_.zk.cancelJob(K8);
var r=b.getCurrentTime()>=b.getDuration(),t=a.selectedOption==="End of video"||a.selectedOption==="End of playlist"&&!idd(a.playlistId);r&&t&&qkd(a,b)};
b.addEventListener("onSleepTimerSettingsChanged",c);b.addEventListener("onLoopChange",e);b.addEventListener("onLoopRangeChange",e);b.addEventListener("onStateChange",d);b.addEventListener("onCloseMiniplayer",g);b.addEventListener("onSleepTimerFeatureAvailable",k);b.addEventListener("SEEK_COMPLETE",m);b.addEventListener("onAdStart",n);a.addOnDisposeCallback(function(){b.removeEventListener("onSleepTimerSettingsChanged",c);b.removeEventListener("onLoopChange",e);b.removeEventListener("onLoopRangeChange",
e);b.removeEventListener("onStateChange",d);b.removeEventListener("onCloseMiniplayer",g);b.removeEventListener("onSleepTimerFeatureAvailable",k);b.removeEventListener("SEEK_COMPLETE",m);b.removeEventListener("onAdStart",n)})},okd=function(a,b){var c=a.JSC$20107_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var d=b.getVideoData().video_id,e,g=(e=gdd(a.JSC$20107_watchApi))==null?void 0:e.playlistId;
a.pauseAutonavPlayback&&(b.pauseVideo(),b.syncVolume(),a.pauseAutonavPlayback=!1);if(a.selectedOption==="End of video"&&d!==a.videoId)I$(a,b);else{if(a.selectedOption==="End of playlist"){e=idd(a.playlistId);if(g!==a.playlistId){I$(a,b);break a}e?e&&rkd(a,b):skd(a,b)}a.videoId=d;a.playlistId=g}}});
a.addOnDisposeCallback(function(){a.JSC$20107_watchApi.unsubscribeByKey(c)})},pkd=function(a,b){var c=_.v().resolve(_.LG),d=_.zF(c,_.yFa,function(g){g&&a.selectedOption!=="Off"&&I$(a,b)}),e=_.zF(c,G8,function(g){var k,m;
return _.l(function(n){if(n.nextAddress==1)return _.p(n,_.xF().navigationFinishPromise,2);k=!_.aJb();m=_.v().resolve(_.$w).isMiniplayerActive();g||!fdd(a.selectedOption)||m||k||I$(a,b);_.ue(n)})});
c=_.zF(c,function(g){return g.entities.playlistLoopStateEntity||{}},function(g){g=g===void 0?{}:g;
var k=hdd(a.JSC$20107_watchApi);if(k){var m;((m=g[k])==null?void 0:m.state)==="PLAYLIST_LOOP_STATE_ALL"&&fdd(a.selectedOption)&&I$(a,b)}});
a.addOnDisposeCallback(d);a.addOnDisposeCallback(c);a.addOnDisposeCallback(e)};
H$.prototype.onSleepTimerSettingsChanged=function(a,b){switch(a){case "Off":this.selectedOption!=="Off"&&I$(this,b);break;case "End of video":case "End of playlist":tkd(this,a,b);break;default:tkd(this,a,b,lkd.get(a))}};
H$.prototype.onLoopChange=function(a){(a.getLoopVideo()||a.getLoopRange())&&fdd(this.selectedOption)&&I$(this,a)};
H$.prototype.onCloseMiniplayer=function(a){fdd(this.selectedOption)&&I$(this,a)};
var tkd=function(a,b,c,d){ukd(a,c);a.selectedOption=b;a.videoId=c.getVideoData().video_id;a.playlistId="";var e;(e=a.sessionStorage)==null||e.set("yt-sleep-timer","true");a.adjustmentsCount++;ldd(c,(0,_.Uj)(),sdd(c),a.selectedOption==="End of video");if(a.selectedOption==="End of video")skd(a,c),vkd(a,c);else if(a.selectedOption==="End of playlist"){vkd(a,c);var g,k;a.playlistId=(k=(g=gdd(a.JSC$20107_watchApi))==null?void 0:g.playlistId)!=null?k:"";idd(a.playlistId)||skd(a,c)}else d&&(a.presetFadeSchedulerId=
_.zu(_.zk,function(){pdd(c,15E3)},d-15E3),a.presetPauseSchedulerId=_.zu(_.zk,function(){qkd(a,c)},d),ndd(c,(0,_.Uj)(),d))},qkd=function(a,b){if(G8(_.v().resolve(_.LG).getState())){var c={dismissDialogEndpoint:{}};
var d={commandExecutorCommand:{commands:[c,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};c={buttonViewModel:{title:_.vo("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:c}}};d={buttonViewModel:{title:_.vo("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:d}}};var e={dialogHeaderViewModel:{headline:{content:_.vo("SLEEP_TIMER_ENDED_TITLE")}}};
var g={basicContentViewModel:{paragraphs:[{text:{content:_.vo("SLEEP_TIMER_ENDED_TEXT")}}]}};c={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:e,content:g,footer:{panelFooterViewModel:{primaryButton:c,secondaryButton:d,shouldHideDivider:!0}}}}}}};_.v().resolve(_.Yi).resolveCommand(c,{form:{element:a}})}else rdd();wkd(a,!1);xkd(a,b);b.pauseVideo();_.fF.getInstance().getState()===2&&b.getPlayerState()===5&&(a.pauseAutonavPlayback=!0)},I$=function(a,b){wkd(a,!0);
xkd(a,b);rdd()},xkd=function(a,b){ukd(a,b);
a.selectedOption="Off";a.videoId="";a.playlistId="";a.adjustmentsCount=0;var c;(c=a.sessionStorage)==null||c.remove("yt-sleep-timer");_.zk.cancelJob(mdd);b.resetSleepTimerMenuSettings()},wkd=function(a,b){b={timer_length_adjustment_times_during_session:a.adjustmentsCount-1,
is_session_cancelled:b};switch(a.selectedOption){case "Off":b.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":b.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":b.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:b.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",b.option_duration_in_minutes=lkd.get(a.selectedOption)/6E4}_.xl("sleepTimerSessionFinishEvent",b)};
H$.prototype.onPlayerStateChange=function(a,b){a===1?ldd(b,(0,_.Uj)(),sdd(b),this.selectedOption==="End of video"):a===0?(_.zk.cancelJob(K8),b.setVideoTimeLeft(kdd(0,0))):a===2&&_.zk.cancelJob(K8);this.selectedOption==="End of video"?a===0?qkd(this,b):a===2&&qdd(b):this.selectedOption!=="End of playlist"||idd(this.playlistId)||(a===0?qkd(this,b):a===2&&qdd(b))};
H$.prototype.onSeekComplete=function(a){a.getPlayerState()===2&&ldd(a,(0,_.Uj)(),sdd(a),this.selectedOption==="End of video",!0)};
H$.prototype.onCueRangeEnter=function(a,b){a==="sleep-timer-fade-audio"&&(a=(b.getDuration()-b.getProgressState().current)*1E3,pdd(b,a))};
H$.prototype.onCueRangeExit=function(a,b){a==="sleep-timer-fade-audio"&&b.getPlayerState()!==0&&qdd(b,!0)};
var skd=function(a,b){b.addCueRange("sleep-timer-fade-audio",b.getDuration()-15,b.getDuration());b.addEventListener("onCueRangeEnter",function(c){a.onCueRangeEnter(c,b)});
b.addEventListener("onCueRangeExit",function(c){a.onCueRangeExit(c,b)})},rkd=function(a,b){b.removeCueRange("sleep-timer-fade-audio");
b.removeEventListener("onCueRangeEnter",function(c){a.onCueRangeEnter(c,b)});
b.removeEventListener("onCueRangeExit",function(c){a.onCueRangeExit(c,b)})},ukd=function(a,b){fdd(a.selectedOption)?rkd(a,b):(_.zk.cancelJob(a.presetPauseSchedulerId),_.zk.cancelJob(a.presetFadeSchedulerId),a.presetPauseSchedulerId=0,a.presetFadeSchedulerId=0);
qdd(b,!0)},vkd=function(a,b){b.setLoop(!1);
b.setLoopVideo(!1);b.setLoopRange(null);(a=hdd(a.JSC$20107_watchApi))&&_.v().resolve(_.LG).dispatch(_.wu("playlistLoopStateEntity",a,{key:a,state:"PLAYLIST_LOOP_STATE_NONE"}))};var Bkd=function(a){_.vg.call(this);this.JSC$20110_watchApi=a;ykd(this);zkd(this);Akd(this);a=a.getRoot();if(a.is==="ytd-watch-flexy"||a.is==="ytd-watch-grid")a.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.vcd();_.w("web_watch_log_theater_mode_cookie_state")&&_.lj.get("wide","0")==="1"&&_.vt("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.z(Bkd,_.vg);var ykd=function(a){var b,c;_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20110_watchApi.playerApi,2);b=d.yieldResult;c=function(e){Ckd(a,!!e)};
b.addEventListener("SIZE_CLICKED",c);a.addOnDisposeCallback(function(){b.removeEventListener("SIZE_CLICKED",c)});
_.ue(d)})},zkd=function(a){a.JSC$20110_watchApi.registerActionHandler("yt-toggle-theater-mode",function(b,c){Ckd(a,b,c===void 0?!0:c)});
a.addOnDisposeCallback(function(){F$(a.JSC$20110_watchApi,"yt-toggle-theater-mode")})};
Bkd.prototype.getState=function(){return _.JW(_.Yp().getState())};
var Ckd=function(a,b,c){c=c===void 0?!0:c;var d,e,g,k=_.w("enable_player_resize_transition")&&!!a.JSC$20110_watchApi.getWatchNextResponse()&&!((d=a.JSC$20110_watchApi.getWatchNextResponse())==null?0:(e=d.contents)==null?0:(g=e.twoColumnWatchNextResults)==null?0:g.conversationBar);_.Jlc(function(){_.Yp().dispatch(_.hp({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:b}}));_.w("theater_mode_scroll_to_top_killswitch")||a.JSC$20110_watchApi.scrollWatchTo(0,!1);_.eo()&&_.w("external_fullscreen")&&_.fo(document.documentElement);
Akd(a);c&&_.mj("wide",b?"1":"0",-1);_.lo(a.JSC$20110_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);a.JSC$20110_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:b});b&&_.vcd()},{shouldWrap:k})},Akd=function(a){var b;
_.l(function(c){if(c.nextAddress==1)return _.p(c,a.JSC$20110_watchApi.playerApi,2);b=c.yieldResult;b.setSizeStyle(!0,a.getState());_.ue(c)})};var Fkd=function(a){_.vg.call(this);var b=this;this.playerApi=a;this.timeToPanelSyncKeyMap={};var c;if(a==null?0:(c=a.isReady)==null?0:c.call(a)){c=_.zF(_.v().resolve(_.LG),function(e){return e.entities.timedMarkersListSyncEntity||{}},function(e,g){e=e===void 0?{}:e;
g=g===void 0?{}:g;for(var k=_.h(Object.keys(g)),m=k.next();!m.done;m=k.next())m=m.value,e[m]!==g[m]&&Dkd(b,g[m]);g=_.h(Object.keys(e));for(k=g.next();!k.done;k=g.next())k=k.value,m=e[k],b.timeToPanelSyncKeyMap[k]&&Ekd(b,m)});
this.addOnDisposeCallback(c);var d=function(e){b.onCueRangeEnter(e)};
a.addEventListener("onCueRangeEnter",d);this.addOnDisposeCallback(function(){var e;(e=a.removeEventListener)==null||e.call(a,"onCueRangeEnter",d)})}};
_.z(Fkd,_.vg);
var Ekd=function(a,b){var c,d;if((c=a.playerApi)==null?0:(d=c.isReady)==null?0:d.call(c)){var e;if((c=b==null?void 0:(e=b.timedListData)==null?void 0:e.sections)&&b!=null&&b.key)for(e=_.h(c),c=e.next();!c.done;c=e.next())if(c=c.value,c.timedSyncDataList&&c.sectionId)for(d=0;d<c.timedSyncDataList.length;d++){var g=c.timedSyncDataList[d];g.syncItemId&&a.playerApi.addCueRange(c.sectionId+"_"+b.key+"_"+g.syncItemId,Number(g.videoTimeMs)/1E3,d===c.timedSyncDataList.length-1?0x8000000000000:Number(c.timedSyncDataList[d+
1].videoTimeMs)/1E3)}}},Dkd=function(a,b){var c,d;
if((c=a.playerApi)==null?0:(d=c.isReady)==null?0:d.call(c)){var e;if((c=b==null?void 0:(e=b.timedListData)==null?void 0:e.sections)&&b!=null&&b.key)for(e=_.h(c),c=e.next();!c.done;c=e.next())if(c=c.value,c.timedSyncDataList&&c.sectionId){d=_.h(c.timedSyncDataList);for(var g=d.next();!g.done;g=d.next())g=g.value,g.syncItemId&&a.playerApi.removeCueRange(c.sectionId+"_"+b.key+"_"+g.syncItemId)}}};
Fkd.prototype.onCueRangeEnter=function(a){for(var b=_.h(Object.keys(this.timeToPanelSyncKeyMap)),c=b.next();!c.done;c=b.next()){c=c.value;var d=_.h(a.split("_"+c+"_")),e=d.next().value;d=d.next().value;if(e&&d){a=_.v().resolve(_.LG);b=this.timeToPanelSyncKeyMap[c];var g=_.nSa(a.getState(),b);c=Gkd(c,e,d);if(c===-1)break;c={activeSyncId:d,activeItemIndex:c,activeSectionInfo:{sectionIdentifier:e}};g?a.dispatch(_.Lu("markersEngagementPanelSyncEntity",b,c)):a.dispatch(_.wu("markersEngagementPanelSyncEntity",
b,Object.assign({},{key:b},c)));break}}};
var Gkd=function(a,b,c){var d=_.v().resolve(_.LG),e,g;a=(e=ucd(d.getState(),a))==null?void 0:(g=e.timedListData)==null?void 0:g.sections;if(!a)return-1;e=0;g=_.h(a);for(a=g.next();!a.done;a=g.next()){a=a.value;d=a.timedSyncDataList||[];if(a.sectionId===b)return b=d.findIndex(function(k){return k.syncItemId===c}),b===-1?b:e+b;
e+=d.length}return-1};var Jkd=function(a){_.vg.call(this);var b=this;this.JSC$20122_watchApi=a;this.unresolvedCommands=[];this.JSC$20122_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(c){Hkd(b,c)});
this.addOnDisposeCallback(function(){F$(b.JSC$20122_watchApi,"yt-update-timed-markers-sync-observer-command")});
Ikd(this)};
_.z(Jkd,_.vg);var Ikd=function(a){var b;_.l(function(c){if(c.nextAddress==1)return _.p(c,a.JSC$20122_watchApi.playerApi,2);b=c.yieldResult;if(a.isDisposed())return c.return();a.timedSyncObserver=new Fkd(b);a.unresolvedCommands.length&&(a.unresolvedCommands.forEach(function(d){return Hkd(a,d)}),a.unresolvedCommands=[]);
_.kg(a,a.timedSyncObserver);_.ue(c)})},Hkd=function(a,b){if(a.timedSyncObserver){var c=_.y(b,Wdd);
if(c&&c.timedSyncEntityKey&&c.panelSyncEntityKey){a=a.timedSyncObserver;b=c.timedSyncEntityKey;var d=c.panelSyncEntityKey;c=!!c.isEnabled;c=c===void 0?!0:c;var e=_.v().resolve(_.LG);e=ucd(e.getState(),b);c?a.timeToPanelSyncKeyMap[b]||(a.timeToPanelSyncKeyMap[b]=d,Ekd(a,e)):(delete a.timeToPanelSyncKeyMap[b],Dkd(a,e))}}else a.unresolvedCommands.push(b)};var Kkd=_.Rr(function(a){var b=a.data,c=a.maybeLogSmartSkipClientData,d=_.Pl();_.Zu(d,function(){return b().rendererContext},{onTap:function(t,u){u({disableClickTracking:!0})}});
var e=null,g=null,k=_.w("web_enable_auto_focus_for_timely_action_button"),m=function(){e=document.activeElement},n=function(){b().smartSkipMetadata&&(e=document.activeElement,tcd(function(){return g}))},r=function(t){if(b().smartSkipMetadata&&(!t||t.key!=="Enter")){e&&e.isConnected&&(tcd(function(){return e}),e=null);
var u;(u=g)==null||u.blur()}};
a=_.lt(function(){c==null||c(!0,b());return!1});
_.Yl(d,{visibilityCallback:function(t){if(k)t?g&&b().smartSkipMetadata&&(n(),document.addEventListener("focusin",m)):(document.removeEventListener("focusin",m),r());else if(t&&_.w("web_ephemeral_actions")){t=_.Wu(b().rendererContext);var u=Number(b().maxVisibleDurationMilliseconds),x,A=(x=_.y(b().rendererContext,_.$u))==null?void 0:x.label;t&&u&&A&&(x={label:A,command:t,durationMs:u},_.v().resolve(_.uW).enqueue(x))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.pi(function(){if(k){var t;if((g=(t=d.value)==null?void 0:t.querySelector("button"))&&b().smartSkipMetadata){var u;(u=d.value)==null||u.addEventListener("keydown",r)}}});
_.zh(function(){k&&(g&&b().smartSkipMetadata&&g.removeEventListener("keydown",r),document.removeEventListener("focusin",m),r())});
return _.q("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:d,"on:click":a},_.q(_.Hu,{data:function(){return b().content}},{buttonViewModel:_.Qu}))},"li");var Lkd=_.Rr(function(a){var b=a.data,c=a.playerApi,d=_.v().resolve(_.Rfc);a=_.h(_.nt(function(){b()}));
var e=a.next().value,g=a.next().value,k=function(){return vdd(b(),e())},m=function(r,t){var u,x,A=(u=_.y(t==null?void 0:t.rendererContext,_.wPa))==null?void 0:(x=u.loggingDirectives)==null?void 0:x.trackingParams;
if((t=t==null?void 0:t.smartSkipMetadata)&&t.loggingData&&(x=t.loggingData,t=x.algorithmId,u=x.startMilliseconds,x=x.endMilliseconds,t&&u!==void 0&&x!==void 0)){var C,F;r={smartSkipData:Object.assign({},{versionName:t,startMediaTimeMs:u,endMediaTimeMs:x},r&&{userInteractionMediaTimeMs:(Math.floor(((C=_.au())==null?void 0:(F=C.getPlayer())==null?void 0:F.getCurrentTime())||0)*1E3).toString()})};C=_.En();var J;A&&(J=_.ps(A));C&&J&&_.Zo(C,J,r)}},n=function(r,t){var u=vdd(b(),r);
if(u){var x=_.y(u,udd),A;if(A=t)A=c(),u=_.y(u,udd),A=u!=null&&u.smartSkipMetadata?!(A==null?0:A.isSameMarkerTypeVisible((u==null?void 0:u.smartSkipMetadata.markerKey)||"")):!0;if(A){var C,F;(x==null?0:(C=x.smartSkipMetadata)==null?0:(F=C.loggingData)==null?0:F.isCounterfactual)||(m(!1,x),g(r))}else t||e()!==r||g(void 0)}};
_.wh(function(){var r=b().timelyActions;if(r){r=_.h(r);for(var t=r.next();!t.done;t=r.next()){t=_.y(t.value,udd);var u=void 0;(u=t)!=null&&u.cueRangeId&&d.timelyActionsMap.set(t.cueRangeId,n)}_.zh(function(){d.timelyActionsMap.clear()})}},"nuaQ1d");
return _.q("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.q(_.Hu,{data:k},{timelyActionViewModel:function(r){return _.q(Kkd,{data:r.data,maybeLogSmartSkipClientData:function(){m(!0,_.y(k(),udd))}})}}))},"mi");var Nkd=function(a){_.vg.call(this);this.JSC$20134_watchApi=a;a=_.h(_.ih({},void 0,"pLDp2"));this.timelyActionsOverlay=a.next().value;this.setTimelyActionsOverlay=a.next().value;Mkd(this)};
_.z(Nkd,_.vg);var Mkd=function(a){var b,c,d,e;_.l(function(g){if(g.nextAddress==1)return Okd(a),Pkd(a),a.timelyActionsContainer=document.createElement("div"),_.p(g,a.JSC$20134_watchApi.playerApi,2);b=g.yieldResult;(d=(c=b).insertTimelyActionUi)==null||d.call(c,a.timelyActionsContainer);e=_.oi(a.timelyActionsContainer,function(){return _.q(Lkd,{data:a.timelyActionsOverlay,playerApi:b})});
a.addOnDisposeCallback(e);_.ue(g)})},Pkd=function(a){var b=a.JSC$20134_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Okd(a)});
a.addOnDisposeCallback(function(){a.JSC$20134_watchApi.unsubscribeByKey(b)})},Okd=function(a){var b=a.JSC$20134_watchApi.getWatchNextResponse();
if(b){var c,d;if(b=_.y((c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.timelyActionsOverlayViewModel,Xdd)){var e;(e=a.setTimelyActionsOverlay)==null||e.call(a,b)}}};var Rkd=function(a){_.vg.call(this);this.JSC$20138_watchApi=a;Qkd(this)};
_.z(Rkd,_.vg);var Qkd=function(a){var b,c;_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20138_watchApi.playerApi,2);b=d.yieldResult;c=function(e){_.gs.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.y(e,_.Kad)},popupType:"TOAST"}})};
b.addEventListener("onYtShowToast",c);a.addOnDisposeCallback(function(){b.removeEventListener("onYtShowToast",c)});
_.ue(d)})};var Skd=!1,Wkd=function(a){_.vg.call(this);this.JSC$20141_watchApi=a;this.fullscreen=this.theater=!1;Tkd(this);Ukd(this);Vkd(this)};
_.z(Wkd,_.vg);var Vkd=function(a){var b,c,d;_.l(function(e){if(e.nextAddress==1)return _.p(e,a.JSC$20141_watchApi.playerApi,2);b=e.yieldResult;if(a.isDisposed())return e.return();c=a.JSC$20141_watchApi.getElement("CINEMATICS");if(!c)return e.return();a.JSC$20141_cinematicController=new _.n8(c,b);_.kg(a,a.JSC$20141_cinematicController);_.fbd(a.JSC$20141_cinematicController);Xkd(a,_.rIa());d=a.JSC$20141_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(g){Ykd(a,g)});
a.addOnDisposeCallback(function(){a.JSC$20141_watchApi.unsubscribeByKey(d)});
Zkd(a);Ykd(a,a.JSC$20141_cinematicController.isAllowed());$kd(a,a.fullscreen,a.theater);ald(a);_.ue(e)})},Tkd=function(a){var b=a.JSC$20141_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Zkd(a)});
a.addOnDisposeCallback(function(){a.JSC$20141_watchApi.unsubscribeByKey(b)})},Ukd=function(a){var b,c;
_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20141_watchApi.playerApi,2);b=d.yieldResult;c=function(e){Xkd(a,e)};
b.addEventListener("cinematicSettingsToggleChange",c);a.addOnDisposeCallback(function(){b.removeEventListener("cinematicSettingsToggleChange",c)});
_.ue(d)})},Zkd=function(a){var b=a.JSC$20141_watchApi.getWatchNextResponse(),c;
b=_.y(b==null?void 0:(c=b.pageVisualEffects)==null?void 0:c[0],_.F6);var d;(d=a.JSC$20141_cinematicController)==null||_.hbd(d,b)},Xkd=function(a,b){var c;
(c=a.JSC$20141_cinematicController)==null||_.gbd(c,b);bld(a)},Ykd=function(a,b){var c;
_.l(function(d){if(d.nextAddress==1)return _.w("kevlar_watch_cinematics_invisible")&&(b=!1),_.p(d,a.JSC$20141_watchApi.playerApi,2);c=d.yieldResult;c.updateCinematicSettings(b);bld(a);_.ue(d)})},ald=function(a){var b=_.yo();
if(_.w("kevlar_measure_ambient_mode_idle")&&!b.getFlag(192)&&!Skd){Skd=!0;var c=_.sl(_.zk,function(){_.v().resolve(_.Lic).start(1E4)},5E3);
a.addOnDisposeCallback(function(){_.zk.cancelJob(c);_.v().resolve(_.Lic).stop()})}},$kd=function(a,b,c){a.fullscreen=b;
a.theater=c;var d;(d=a.JSC$20141_cinematicController)==null||d.setFullscreen(a.fullscreen,a.theater);if(_.w("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(a.theater||a.fullscreen)(a=a.JSC$20141_cinematicController)!=null&&(a=a.currentCinematicEffect)!=null&&(a=a.storyboardManager,a.paused=!1,_.Pad(a),a.update());else{var e;(e=a.JSC$20141_cinematicController)==null||_.ibd(e)}},bld=function(a){if(_.w("web_cinematic_theater_mode")||_.w("web_cinematic_fullscreen")){var b;
a.JSC$20141_watchApi.getRoot().toggleCinematicsActive(!((b=a.JSC$20141_cinematicController)==null||!b.isEnabled()))}};var fld=function(a){_.vg.call(this);var b=this;this.JSC$20144_watchApi=a;this.commentsReady=!1;this.setCommentsJobId=0;a=_.zF(_.Yp(),_.I8,function(){cld(b)});
this.addOnDisposeCallback(a);var c=this.JSC$20144_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){dld(b)}),d=this.JSC$20144_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){dld(b)});
this.addOnDisposeCallback(function(){b.JSC$20144_watchApi.unsubscribeByKey(c);b.JSC$20144_watchApi.unsubscribeByKey(d)});
var e=function(){_.w("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&eld(b,"false")};
this.JSC$20144_watchApi.getRoot().addEventListener("yt-page-data-will-update",e);this.addOnDisposeCallback(function(){b.JSC$20144_watchApi.getRoot().removeEventListener("yt-page-data-will-update",e)});
dld(this)};
_.z(fld,_.vg);var dld=function(a){a.commentsReady=!1;_.zk.cancelJob(a.setCommentsJobId);a.setCommentsJobId=_.sl(_.zk,function(){cld(a)},1E3)},cld=function(a){if(!a.commentsReady){_.Lo("cmi");
_.zk.cancelJob(a.setCommentsJobId);var b,c,d,e,g=(b=a.JSC$20144_watchApi.getWatchNextResponse())==null?void 0:(c=b.contents)==null?void 0:(d=c.twoColumnWatchNextResults)==null?void 0:(e=d.results)==null?void 0:e.results.contents;b=void 0;if(g&&g.length)for(g=_.h(g),c=g.next();!c.done;c=g.next())if(c=c.value,e=d=void 0,((d=c)==null?void 0:(e=d.itemSectionRenderer)==null?void 0:e.sectionIdentifier)==="comment-item-section"){_.w("web_watch_provide_undefined_comments")?b=c.itemSectionRenderer:a.JSC$20144_watchApi.provideRenderingData("COMMENTS",
c.itemSectionRenderer);eld(a,"true");break}_.w("web_watch_provide_undefined_comments")&&a.JSC$20144_watchApi.provideRenderingData("COMMENTS",b);a.commentsReady=!0;a.JSC$20144_watchApi.dispatchEvent("yt-watch-comments-ready")}},eld=function(a,b){var c;
(c=a.JSC$20144_watchApi.getElement("COMMENTS"))==null||c.setAttribute("canScheduleJobs",b)};var lld;_.gld=["engagement-panel-ads"];
lld=function(a){_.vg.call(this);var b=this;this.JSC$20147_watchApi=a;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.w("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.w("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.w("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.$i("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)hld(this);
else{var c=this.JSC$20147_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){ild(b);J$(b)}),d=this.JSC$20147_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){K$(b);
J$(b)});
this.JSC$20147_watchApi.getRoot().is==="ytd-watch-grid"&&_.w("swatcheroo_pbs_load_grid")&&(jld(this),kld(this));this.addOnDisposeCallback(function(){b.JSC$20147_watchApi.unsubscribeByKey(c);b.JSC$20147_watchApi.unsubscribeByKey(d);_.zk.cancelJob(b.provideRichGridJobId)});
ild(this);K$(this)}};
_.z(lld,_.vg);var hld=function(a){var b=a.JSC$20147_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){a.providePlayerJobId=_.Gu(_.zk,function(){ild(a);J$(a)},a.provideAllDataDelayMs)}),c=a.JSC$20147_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a.provideWatchNextJobId=_.Gu(_.zk,function(){K$(a);
J$(a)},a.provideAllDataDelayMs)}),d=a.JSC$20147_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){a.provideWatchNextJobId=_.Gu(_.zk,function(){K$(a);
J$(a)},a.provideAllDataDelayMs)});
a.JSC$20147_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.sl(_.zk,function(){ild(a);K$(a);J$(a)},100)});
mld(a.JSC$20147_watchApi,function(){_.zk.cancelJob(a.provideWatchNextJobId);_.zk.cancelJob(a.providePlayerJobId)});
a.addOnDisposeCallback(function(){F$(a.JSC$20147_watchApi,"yt-pending-navigation-cancelled");a.JSC$20147_watchApi.unsubscribeByKey(b);a.JSC$20147_watchApi.unsubscribeByKey(c);a.JSC$20147_watchApi.unsubscribeByKey(d);_.zk.cancelJob(a.providePlayerJobId);_.zk.cancelJob(a.provideWatchNextJobId)});
ild(a);K$(a)},ild=function(a){var b=a.JSC$20147_watchApi.getPlayerResponse(),c,d,e=(d=b==null?void 0:(c=b.playabilityStatus)==null?void 0:c.messageRenderers)!=null?d:[],g,k;
b=(k=b==null?void 0:(g=b.playabilityStatus)==null?void 0:g.messages)!=null?k:[];g=_.h(b);for(k=g.next();!k.done;k=g.next())e.push({alertRenderer:{text:_.Vp(k.value),type:"WARNING"}});a.JSC$20147_watchApi.provideRenderingData("ALERTS",e)},K$=function(a){var b=[],c,d,e,g=a.JSC$20147_watchApi.getWatchNextResponse(),k,m,n,r,t=g==null?void 0:(k=g.contents)==null?void 0:(m=k.twoColumnWatchNextResults)==null?void 0:(n=m.results)==null?void 0:(r=n.results)==null?void 0:r.contents;
if(t)for(k=_.h(t),m=k.next();!m.done;m=k.next())if(m=m.value,m.videoPrimaryInfoRenderer)var u=m;else if(m.videoSecondaryInfoRenderer){var x=m;r=n=void 0;m=Object.assign({},(n=m.videoSecondaryInfoRenderer)==null?void 0:(r=n.metadataRowContainer)==null?void 0:r.metadataRowContainerRenderer);if(m.rows&&m.collapsedItemCount!==void 0){m.rows=m.rows.slice(0,m.collapsedItemCount).filter(function(Pa){return!!Pa.richMetadataRowRenderer});
m.collapsedItemCount=m.rows.length;var A={metadataRowContainerRenderer:m}}}else if(m.merchandiseShelfRenderer)var C=m;else if(m.ticketShelfRenderer)var F=m;else if(m.expandableMetadataRenderer)var J=m;else if(m.itemSectionRenderer)if(n=m.itemSectionRenderer.contents,r=void 0,a.directlyProvideComments&&((r=m.itemSectionRenderer)==null?void 0:r.sectionIdentifier)==="comment-item-section")_.Lo("cmi"),a.JSC$20147_watchApi.provideRenderingData("COMMENTS",m.itemSectionRenderer);else if(n)for(m=_.h(n),n=
m.next();!n.done;n=m.next())if(n=n.value,n.commentsEntryPointHeaderRenderer)var I=n;else if(n.clarificationRenderer||n.infoPanelContainerRenderer||n.infoPanelContentRenderer||n.emergencyOneboxRenderer){b.push(n);var R=R||!!x}else n.limitedStateMessageRenderer?d=n:n.videoMetadataCarouselViewModel&&(e=n);if(_.w("web_watch_merch_in_sd_when_ticket_shelf_present")&&C&&F){var da=C;C=void 0}if(a.provideWatchNextSecondaryResults){var V,fa,aa;a.JSC$20147_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
g==null?void 0:(V=g.contents)==null?void 0:(fa=V.twoColumnWatchNextResults)==null?void 0:(aa=fa.secondaryResults)==null?void 0:aa.secondaryResults)}if(a.JSC$20147_watchApi.getRoot().is==="ytd-watch-grid"&&!_.w("swa_prov_panels_ks")&&(g==null?0:g.engagementPanels)){var ma=g.engagementPanels.filter(function(Pa){var mb,Yb;return _.gld.includes((Yb=Pa==null?void 0:(mb=Pa.engagementPanelSectionListRenderer)==null?void 0:mb.targetId)!=null?Yb:"")});
var Ba=g.engagementPanels.filter(function(Pa){var mb,Yb;return!_.gld.includes((Yb=Pa==null?void 0:(mb=Pa.engagementPanelSectionListRenderer)==null?void 0:mb.targetId)!=null?Yb:"")})}if(a.JSC$20147_watchApi.getRoot().is==="ytd-watch-grid"){var Ca,ya;
a.JSC$20147_watchApi.provideRenderingData("LIVE_CHAT",g==null?void 0:(Ca=g.contents)==null?void 0:(ya=Ca.twoColumnWatchNextResults)==null?void 0:ya.conversationBar)}var Ia,db,lb,Ua;(V=g==null?void 0:(Ia=g.contents)==null?void 0:(db=Ia.twoColumnWatchNextResults)==null?void 0:(lb=db.secondaryResults)==null?void 0:(Ua=lb.secondaryResults)==null?void 0:Ua.offerModule)&&(V.donationShelfRenderer||V.donationUnavailableRenderer)&&a.JSC$20147_watchApi.getRoot().is!=="ytd-watch-grid"&&(c=V);Ia=a.JSC$20147_watchApi.getPlayerResponse();
if(!Ia||!_.h6a(Ia.playabilityStatus,g==null?void 0:g.playerOverlays)){var Vb;if(g==null?0:(Vb=g.contents)==null?0:Vb.singleColumnWatchNextResults){var rb,sb;var yc=g==null?void 0:(rb=g.contents.singleColumnWatchNextResults.results)==null?void 0:(sb=rb.results)==null?void 0:sb.contents}else{var Mb,ub,Db,Wc;Vb=!!(t==null?0:(Mb=t[0])==null?0:(ub=Mb.itemSectionRenderer)==null?0:(Db=ub.contents)==null?0:(Wc=Db[0])==null?0:Wc.backgroundPromoRenderer);var Mc,ia;Mb=!!(g==null?0:(Mc=g.contents)==null?0:(ia=
Mc.twoColumnWatchNextResults)==null?0:ia.secondaryResults);Vb&&!Mb&&(yc=t)}}t=b[0];Mc=b[1];R&&b.length===1&&(Mc=t,t=void 0);a.JSC$20147_watchApi.provideRenderingData("PRIMARY_INFO",u);a.JSC$20147_watchApi.provideRenderingData("SECONDARY_INFO",x);a.JSC$20147_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",I);a.JSC$20147_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",e);a.JSC$20147_watchApi.provideRenderingData("CLARIFICATION",t);a.JSC$20147_watchApi.provideRenderingData("RICH_METADATA",
A);a.JSC$20147_watchApi.getRoot().is!=="ytd-watch-grid"||_.w("swa_prov_panels_ks")||_.w("web_watch_inject_placeholder_panels")||(a.JSC$20147_watchApi.provideRenderingData("ENGAGEMENT_PANELS",Ba),a.JSC$20147_watchApi.provideRenderingData("INLINE_ENGAGEMENT_PANELS",ma));a.JSC$20147_watchApi.provideRenderingData("MERCH_SHELF",C);_.w("web_watch_merch_in_sd_when_ticket_shelf_present")&&a.JSC$20147_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",da);a.JSC$20147_watchApi.provideRenderingData("TICKET_SHELF",
F);a.JSC$20147_watchApi.provideRenderingData("LIMITED_STATE",d);a.JSC$20147_watchApi.getRoot().is!=="ytd-watch-grid"&&a.JSC$20147_watchApi.provideRenderingData("DONATION_SHELF",c);a.JSC$20147_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",yc);a.JSC$20147_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",Mc);a.JSC$20147_watchApi.provideRenderingData("EXPANDABLE_METADATA",J);if(a.swatcherooProvideAllDataOnScheduledJob){var ac,Qb,Ac,qb,Cb,ab;u=g==null?void 0:(ac=g.contents)==null?void 0:
(Qb=ac.twoColumnWatchNextResults)==null?void 0:(Ac=Qb.secondaryResults)==null?void 0:(qb=Ac.secondaryResults)==null?void 0:(Cb=qb.results)==null?void 0:(ab=Cb[0])==null?void 0:ab.richGridRenderer;a.JSC$20147_watchApi.provideRenderingData("RICH_GRID_RENDERER",u)}};
lld.prototype.hasCompanionAds=function(a){var b,c;return(c=a==null?void 0:(b=a.adPlacements)==null?void 0:b.some(function(d){var e,g,k,m;return(d==null?void 0:(e=d.adPlacementRenderer)==null?void 0:(g=e.renderer)==null?void 0:g.actionCompanionAdRenderer)||(d==null?void 0:(k=d.adPlacementRenderer)==null?void 0:(m=k.renderer)==null?void 0:m.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?c:!1};
var J$=function(a){if(!_.w("swaterdoo_ps_wn_handle_ks")){a.swatcherooProvideAllDataOnScheduledJob||kld(a,_.$i("swatcheroo_pbs_max_delay_ms",3E3));var b=a.JSC$20147_watchApi.getPlayerResponse(),c,d,e,g,k,m=(c=a.JSC$20147_watchApi.getWatchNextResponse())==null?void 0:(d=c.contents)==null?void 0:(e=d.twoColumnWatchNextResults)==null?void 0:(g=e.secondaryResults)==null?void 0:(k=g.secondaryResults)==null?void 0:k.offerModule;b=a.hasCompanionAds(b);var n,r;c=(m==null?void 0:(n=m.tvfilmOfferModuleRenderer)==
null?void 0:n.clientShouldSuppressIfCompanionAdDisplayed)||(m==null?void 0:(r=m.unlimitedOfferModuleRenderer)==null?void 0:r.suppressIfCompanionAds);n=b&&c;a.JSC$20147_watchApi.getRoot().is==="ytd-watch-grid"&&a.JSC$20147_watchApi.provideRenderingData("OFFER_MODULE",n?void 0:m)}},kld=function(a,b){_.w("swatcheroo_pbs_load_grid")&&(a.provideRichGridJobId&&_.zk.cancelJob(a.provideRichGridJobId),a.provideRichGridJobId=_.Gu(_.zk,function(){a.provideRichGridJobId=0;
var c,d,e,g,k,m,n,r=(c=a.JSC$20147_watchApi.getWatchNextResponse())==null?void 0:(d=c.contents)==null?void 0:(e=d.twoColumnWatchNextResults)==null?void 0:(g=e.secondaryResults)==null?void 0:(k=g.secondaryResults)==null?void 0:(m=k.results)==null?void 0:(n=m[0])==null?void 0:n.richGridRenderer;r&&a.JSC$20147_watchApi.provideRenderingData("RICH_GRID_RENDERER",r)},b))},jld=function(a){var b,c;
_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20147_watchApi.playerApi,2);b=d.yieldResult;c=function(){a.onPlaybackStart()};
b.addEventListener("onPlaybackStartExternal",c);a.addOnDisposeCallback(function(){b.removeEventListener("onPlaybackStartExternal",c)});
_.ue(d)})};
lld.prototype.onPlaybackStart=function(){kld(this)};var old=function(a){_.vg.call(this);var b=this;this.JSC$20157_watchApi=a;a.playerApi.then(function(c){b.player=c});
this.gestures=new _.hgd(this.JSC$20157_watchApi.getRoot(),a.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(G8(_.Yp().getState())&&_.I8(_.Yp().getState())<=0)if(_.H8(_.Yp().getState())){var c;(c=b.player)==null||c.toggleFullscreen()}else _.lo(b.JSC$20157_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
nld(this)};
_.z(old,_.vg);var nld=function(a){var b=_.zF(_.Yp(),_.H8,function(c){a.gestures&&a.gestures.update(c)});
a.addOnDisposeCallback(b);b=_.zF(_.Yp(),_.I8,function(c){a.gestures&&(c>0?a.gestures.detach():a.gestures.attach())});
a.addOnDisposeCallback(b)};var qld=function(a){_.vg.call(this);var b=this;this.JSC$20160_watchApi=a;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
a=_.zF(_.Yp(),G8,function(c){b.onActiveChanged(c)});
this.addOnDisposeCallback(a);pld(this);this.onActiveChanged(G8(_.Yp().getState()))};
_.z(qld,_.vg);var rld=function(a){if(_.w("swatcheroo_page_dispose_all_watch_data"))a.pageDisposalDataTypes=Object.values(Gjd).filter(function(c){return c!=="PLAYLIST"});
else if(_.w("swatcheroo_page_dispose_rich_grid")){var b;(b=a.pageDisposalDataTypes)==null||b.push("RICH_GRID_RENDERER")}},pld=function(a){_.w("swatcheroo_enable_ghost_cards")&&(rld(a),a.JSC$20160_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.zk.cancelJob(a.clearDataJobId);
a.clearDataJobId=0}),a.runPageDisposeJob=function(){var b=_.v().resolve(_.Zt).getDestinationPageType()==="watch";
a.clearDataJobId=_.Gu(_.zk,a.runClearDataJob,b?0:_.$i("web_watch_delay_page_dispose_ms",1E4))},a.runClearDataJob=function(){sld(a)},a.runOnYtNavigateAwayFinish=function(){a.clearDataJobId&&(_.zk.cancelJob(a.clearDataJobId),a.clearDataJobId=0,sld(a))},document.addEventListener("yt-navigate-finish",a.runOnYtNavigateAwayFinish),mld(a.JSC$20160_watchApi,a.runPageDisposeJob),a.addOnDisposeCallback(function(){var b=a.JSC$20160_watchApi;
b.rootElement.pageDisposeJobs&&_.Qa(b.rootElement.pageDisposeJobs,a.runPageDisposeJob);F$(a.JSC$20160_watchApi,"yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",a.runOnYtNavigateAwayFinish)}))},sld=function(a){a.pageDisposalDataTypes.forEach(function(b){a.JSC$20160_watchApi.provideRenderingData(b,void 0)});
a.clearDataJobId=0};
qld.prototype.onActiveChanged=function(a){a&&((a=document.querySelector("#watch-page-skeleton"))&&_.qg(a),tld(this),document.body.removeAttribute("no-y-overflow"),_.Gi("IS_SHELL_LOAD")&&_.u7c())};
var tld=function(a){_.l(function(b){if(b.nextAddress==1)return _.p(b,a.JSC$20160_watchApi.playerApi,2);_.iw();_.ue(b)})};var uld=_.w("kevlar_watch_while_counterfactual")?0:.25,yld=function(a){_.vg.call(this);this.JSC$20163_watchApi=a;this.JSC$20163_watchWhileEnabled=_.w("kevlar_watch_while_v2");this.pipEnabled=_.w("web_enable_pip_on_miniplayer");vld(this);wld(this);xld(this)};
_.z(yld,_.vg);var vld=function(a){a.JSC$20163_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){zld(a)});
a.addOnDisposeCallback(function(){F$(a.JSC$20163_watchApi,"yt-activate-miniplayer-from-watch-action")})},wld=function(a){var b,c;
_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20163_watchApi.playerApi,2);b=d.yieldResult;c=function(){zld(a)};
b.addEventListener("onCollapseMiniplayer",c);a.addOnDisposeCallback(function(){b.removeEventListener("onCollapseMiniplayer",c)});
_.ue(d)})},xld=function(a){var b=a.JSC$20163_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&b&&a.JSC$20163_watchWhileEnabled&&(a.playerIntersectionObserver=new IntersectionObserver(function(c){a.handleIntersect(c)},{threshold:[uld]}),a.playerIntersectionObserver.observe(b),a.addOnDisposeCallback(function(){var c;
(c=a.playerIntersectionObserver)==null||c.disconnect()}))},zld=function(a){var b,c,d;
_.l(function(e){if(e.nextAddress==1){b=_.v().resolve(_.Zt);c=b.data;d=_.Z6a(c.response,c.playerResponse);_.xF().miniplayerButtonActivation=!0;if(a.pipEnabled)return _.xF().watchPipActivation=!0,e.jumpTo(2);_.v().resolve(_.$w).collapse();return _.p(e,_.xF().navigationFinishPromise,2)}if(e.nextAddress!=4)return _.xF().currentEndpoint=d.watchEndpoint||null,_.p(e,_.v().resolve(_.$w).activate(a.JSC$20163_watchApi.getElement("PLAYER"),d,c),4);_.xF().userActivation=!0;_.ue(e)})};
yld.prototype.handleIntersect=function(a){Ald(this,a[a.length-1])};
var Ald=function(a,b){a.watchWhileJobId&&_.zk.cancelJob(a.watchWhileJobId);a.watchWhileJobId=_.zk.addLowPriorityJob(function(){var c,d;return _.l(function(e){if(e.nextAddress==1)return a.watchWhileJobId=void 0,c=_.v().resolve(_.$w),b.intersectionRatio>uld?c.isMiniplayerActive()?_.p(e,c.deactivate(),0):e.jumpTo(0):(d=!c.isMiniplayerActive())?_.p(e,Bld(a),5):e.jumpTo(4);e.nextAddress!=4&&(d=e.yieldResult);if(!d)return e.jumpTo(0);_.xF().watchWhileActivation=!0;return _.p(e,Cld(a),0)})},100)},Bld=function(a){return _.l(function(b){return b.nextAddress==
1?_.w("kevlar_watch_while_paused")?b.return(!0):_.p(b,a.isPlayerPlaying(),2):b.return(b.yieldResult)})};
yld.prototype.isPlayerPlaying=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,a.JSC$20163_watchApi.playerApi,2);b=c.yieldResult;return c.return(b.getPlayerStateObject().isPlaying)})};
var Cld=function(a){var b,c;return _.l(function(d){b=_.v().resolve(_.Zt).data;c=_.Z6a(b.response,b.playerResponse);_.xF().currentEndpoint=c.watchEndpoint||null;return _.p(d,_.v().resolve(_.$w).activate(a.JSC$20163_watchApi.getElement("PLAYER"),c,b),0)})};var Fld=function(a){_.vg.call(this);this.JSC$20167_watchApi=a;Dld(this);Eld(this)};
_.z(Fld,_.vg);var Eld=function(a){var b,c;_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20167_watchApi.playerApi,2);b=d.yieldResult;c=function(e){var g;e.sessionData&&e.sessionData.itct&&(g=e.sessionData.itct);var k=e.watchEndpoint;if(k&&e.sessionData&&e.sessionData.autonav)k=_.AUa(k,g);else{var m;k=_.dp(e.videoId,(m=e.listId)!=null?m:void 0,g)}g={endpoint:k};e.sessionData&&(g.tempData=e.sessionData);a.JSC$20167_watchApi.dispatchEvent("yt-navigate",g)};
b.addEventListener("onPlayVideo",c);a.addOnDisposeCallback(function(){b.removeEventListener("onPlayVideo",c)});
_.ue(d)})},Dld=function(a){var b=function(c){a.onYtNavigate(c)};
a.JSC$20167_watchApi.getRoot().addEventListener("yt-navigate",b);a.addOnDisposeCallback(function(){a.JSC$20167_watchApi.getRoot().removeEventListener("yt-navigate",b)})};
Fld.prototype.onYtNavigate=function(a){var b=this,c,d,e,g,k,m,n,r,t;return _.l(function(u){if(u.nextAddress==1){if(!((c=a.detail)==null?0:(d=c.endpoint)==null?0:d.watchEndpoint))return u.return();e=a.detail.endpoint.watchEndpoint;g=b.JSC$20167_watchApi.getWatchNextResponse();m=_.y((k=g)==null?void 0:k.currentVideoEndpoint,_.Un);if(!m)return u.return();if(e.videoId!==m.videoId||e.playlistId&&e.playlistId!==m.playlistId||typeof e.startTimeSeconds!=="number")return u.jumpTo(0);a.stopPropagation();(n=
_.w("kevlar_watch_while_v2")&&!_.w("kevlar_watch_while_counterfactual"))&&_.v().resolve(_.$w).isMiniplayerActive()||b.JSC$20167_watchApi.scrollWatchTo(0,!0);return _.p(u,b.JSC$20167_watchApi.playerApi,3)}r=u.yieldResult;t=e.startTimeSeconds;r.seekTo(t,void 0,void 0,void 0,84);r.wakeUpControls();t<r.getDuration()&&r.playVideo();_.ue(u)})};var Kld=function(a){_.vg.call(this);var b=this;this.JSC$20170_watchApi=a;a=_.zF(_.Yp(),_.UXa,function(){Gld(b)});
this.addOnDisposeCallback(a);a=_.zF(_.Yp(),_.Acd,function(){Gld(b)});
this.addOnDisposeCallback(a);Hld(this);Ild(this);Jld()};
_.z(Kld,_.vg);var Hld=function(a){var b=function(d){_.Yp().dispatch(_.Bdd(d.matches))},c=window.matchMedia("(max-width: "+(999+_.LW())+"px)");
c.addListener(b);a.addOnDisposeCallback(function(){c.removeListener(b)});
b(c)},Ild=function(a){a.JSC$20170_watchApi.registerActionHandler("yt-window-resized",function(){Jld()});
a.addOnDisposeCallback(function(){F$(a.JSC$20170_watchApi,"yt-window-resized")})},Jld=function(){var a=_.tq();
_.Yp().dispatch(_.hp({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:a.width,height:a.height}}}))},Gld=function(a){var b;
_.l(function(c){if(c.nextAddress==1)return _.p(c,a.JSC$20170_watchApi.playerApi,2);b=c.yieldResult;b.setSize(NaN,NaN);_.ue(c)})};var Mld=function(a){_.vg.call(this);var b=this;this.JSC$20174_watchApi=a;var c=this.JSC$20174_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Lld(b)});
this.addOnDisposeCallback(function(){b.JSC$20174_watchApi.unsubscribeByKey(c)});
Lld(this)};
_.z(Mld,_.vg);var Lld=function(a){var b=a.JSC$20174_watchApi.getWatchNextResponse();if(b){var c,d=[].concat(_.De((c=b==null?void 0:b.engagementPanels)!=null?c:[]));d.unshift.apply(d,_.De(Nld(b)));a.JSC$20174_watchApi.provideRenderingData("ENGAGEMENT_PANELS",d)}},Old=function(a){var b,c,d,e=(b=a.engagementPanels)==null?void 0:(c=b.find(function(A){var C;
return((C=A.engagementPanelSectionListRenderer)==null?void 0:C.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(d=c.engagementPanelSectionListRenderer.content)==null?void 0:d.structuredDescriptionContentRenderer,g;
if(_.y(e==null?void 0:(g=e.items)==null?void 0:g.find(function(A){return!!_.y(A,oed)}),oed))return!0;
var k,m,n,r;if(a=(((k=a.contents)==null?void 0:(m=k.twoColumnWatchNextResults)==null?void 0:(n=m.results)==null?void 0:(r=n.results)==null?void 0:r.contents)||[]).find(function(A){return A.videoPrimaryInfoRenderer})){var t,u,x;
return(((t=a.videoPrimaryInfoRenderer)==null?void 0:(u=t.videoActions)==null?void 0:(x=u.menuRenderer)==null?void 0:x.flexibleItems)||[]).some(function(A){A=_.y(A,_.BEb);if(!A)return!1;var C,F;A=(C=A.topLevelButton)==null?void 0:(F=C.buttonViewModel)==null?void 0:F.onTap;if(!A)return!1;C=_.Ds(A);if(!C)return!1;var J;return((J=_.y(C,_.Tw))==null?void 0:J.panelIdentifier)==="PAyouchat"})}return!1},Nld=function(a){var b=[];
if(!_.w("web_watch_inject_placeholder_fantasy_panel_killswitch")){var c,d,e,g=(c=a.engagementPanels)==null?void 0:(d=c.find(function(m){var n;return((n=m.engagementPanelSectionListRenderer)==null?void 0:n.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(e=d.engagementPanelSectionListRenderer.content)==null?void 0:e.structuredDescriptionContentRenderer,k;
_.y(g==null?void 0:(k=g.items)==null?void 0:k.find(function(m){return!!_.y(m,Rdd)}),Rdd)&&(c=_.P4a("PAsports_fantasy"),c.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",b.push(c))}Old(a)&&(a=_.P4a("PAyouchat"),a.engagementPanelSectionListRenderer.targetId="PAyouchat",a.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",b.push(a));
return b};var Qld=function(a){_.vg.call(this);this.JSC$20177_watchApi=a;Pld(this)};
_.z(Qld,_.vg);var Pld=function(a){a.JSC$20177_watchApi.registerActionHandler("yt-loop-command",function(b){Rld(a,b)});
a.JSC$20177_watchApi.registerActionHandler("yt-repeat-chapter-command",function(b){Sld(a,b)});
a.addOnDisposeCallback(function(){F$(a.JSC$20177_watchApi,"yt-loop-command");F$(a.JSC$20177_watchApi,"yt-repeat-chapter-command")})},Rld=function(a,b){var c;
_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20177_watchApi.playerApi,2);c=d.yieldResult;_.y(b,Tdd).loop?(c.setLoopRange({startTimeMs:Number(_.y(b,Tdd).startTimeMs),endTimeMs:Number(_.y(b,Tdd).endTimeMs),postId:_.y(b,Tdd).postId,type:"clips"}),c.playVideo()):c.setLoopRange(null);_.ue(d)})},Sld=function(a,b){var c,d;
_.l(function(e){if(e.nextAddress==1)return _.p(e,a.JSC$20177_watchApi.playerApi,2);c=e.yieldResult;d=_.y(b,Ydd).repeat;d==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(c.setLoopRange({startTimeMs:Number(_.y(b,Ydd).startTimeMs),endTimeMs:Number(_.y(b,Ydd).endTimeMs),type:"repeatChapter"}),c.playVideo()):d==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&c.setLoopRange(null);_.ue(e)})};var Uld=function(a){_.vg.call(this);this.JSC$20182_watchApi=a;Tld(this)};
_.z(Uld,_.vg);var Tld=function(a){a.JSC$20182_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(b){Vld(a,b)});
a.addOnDisposeCallback(function(){F$(a.JSC$20182_watchApi,"yt-watch-player-overflow-menu-command")})},Vld=function(a,b){var c,d,e,g,k,m,n,r,t,u,x;
_.l(function(A){if(A.nextAddress==1)return _.p(A,a.JSC$20182_watchApi.playerApi,2);c=A.yieldResult;if(g=(e=(d=_.y(b,Zdd))==null?void 0:d.highlightedMenuItemKey)!=null?e:"")(m=(k=c).highlightSettingsMenuItem)==null||m.call(k,g);if(t=(r=(n=_.y(b,Zdd))==null?void 0:n.openMenuItemKey)!=null?r:"")(x=(u=c).openSettingsMenuItem)==null||x.call(u,t);_.ue(A)})};var Wld=_.mp("/youtube/app/watch/player_state","playerStateEntity");var Yld=function(a){_.vg.call(this);this.JSC$20185_watchApi=a;Xld(this)};
_.z(Yld,_.vg);var Zld=function(a){switch(a){case 0:return"PLAYER_STATE_FINISHED";case 1:return"PLAYER_STATE_PLAYING";case 2:return"PLAYER_STATE_PAUSED";case 3:return"PLAYER_STATE_LOADING_CONTENT";default:return"PLAYER_STATE_UNKNOWN"}},Xld=function(a){var b,c;
_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20185_watchApi.playerApi,2);b=d.yieldResult;c=function(e){a.onPlayerStateChange(e)};
b.addEventListener("onStateChange",c);a.addOnDisposeCallback(function(){b.removeEventListener("onStateChange",c)});
_.ue(d)})};
Yld.prototype.onPlayerStateChange=function(a){var b=this,c,d;return _.l(function(e){if(e.nextAddress==1)return _.p(e,b.JSC$20185_watchApi.playerApi,2);c=e.yieldResult;d=c.getVideoData().video_id;_.Kr().dispatch(_.wu("playerStateEntity",Wld,{key:Wld,playerState:Zld(a),videoId:d}));_.ue(e)})};var $ld=function(a){_.vg.call(this);var b=this;this.JSC$20189_watchApi=a;a=_.Yp();var c=_.zF(a,G8,function(d){b.onActiveChanged(d)});
this.addOnDisposeCallback(c);_.v().resolve(_.TF).setPlayer(this.JSC$20189_watchApi.getElement("PLAYER"));this.onActiveChanged(G8(a.getState()))};
_.z($ld,_.vg);$ld.prototype.onActiveChanged=function(a){var b=this,c=_.v().resolve(_.TF),d=function(){amd(b)};
a?(a=this.JSC$20189_watchApi.getElement("PLAYLIST_PANEL"))?(c.setPlaylistComponent(a),c.addEventListener("yt-playlist-data-updated",d),this.addOnDisposeCallback(function(){c.removeEventListener("yt-playlist-data-updated",d)}),amd(this)):_.Ki(Error("lm")):(c.removeEventListener("yt-playlist-data-updated",d),c.cancelVideoSkip())};
var amd=function(a){var b=_.v().resolve(_.TF);a.JSC$20189_watchApi.provideRenderingData("PLAYLIST",b.getPlaylistData())};var emd=function(a){_.vg.call(this);var b=this;this.JSC$20192_watchApi=a;this.onPageScroll=function(){b.scrollThrottle.fire();b.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.lv(this.onThrottledScroll,200,this);_.kg(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.lv(this.onMastheadThrottledScroll,50,this);_.kg(this,this.mastheadScrollThrottle);this.animation=new _.YR(function(c){b.JSC$20192_watchApi.getRoot().setScrollTop(c)});
a=_.zF(_.Yp(),_.H8,function(){bmd(b)});
this.addOnDisposeCallback(a);cmd(this);dmd(this);this.onThrottledScroll()};
_.z(emd,_.vg);
var bmd=function(a){var b=a.JSC$20192_watchApi.getRoot();!a.pageScrollElement&&b.pageScrollElement?(a.pageScrollElement=b.pageScrollElement,b.pageScrollElement.addEventListener("scroll",a.onPageScroll),a.addOnDisposeCallback(function(){a.pageScrollElement&&a.pageScrollElement.removeEventListener("scroll",a.onPageScroll)})):a.pageScrollElement&&!b.pageScrollElement&&(a.pageScrollElement.removeEventListener("scroll",a.onPageScroll),a.pageScrollElement=void 0)},cmd=function(a){window.addEventListener("scroll",a.onPageScroll);
a.addOnDisposeCallback(function(){window.removeEventListener("scroll",a.onPageScroll)})},dmd=function(a){a.JSC$20192_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(b){a:{var c;
if(c=a.JSC$20192_watchApi.getRoot().contains(b)&&!a.animation.isAnimating()){c=b.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var d,e,g=(b==null?void 0:(d=b.parentElement)==null?void 0:(e=d.parentElement)==null?void 0:e.id)==="fixed-secondary";c=!(c&&g)}if(c){if(_.w("kevlar_watch_scroll_manager_absolute_offset_killswitch"))d=b.offsetTop;else for(d=0,e=b;e!==null;)d+=e.offsetTop,d-=e.scrollTop,e=e.offsetParent;e=d;d=e-24;b=e+b.offsetHeight+24;e=a.JSC$20192_watchApi.getRoot().getPageScrollingElement();
c=a.JSC$20192_watchApi.getRoot().getScrollTop();g=c+e.clientHeight-56;if(d<c+56)b=d-56;else if(b>g)b-=e.clientHeight;else break a;a.scrollWatchTo(Math.max(0,b),!0)}}});
a.addOnDisposeCallback(function(){F$(a.JSC$20192_watchApi,"yt-scroll-to-watch-element")})};
emd.prototype.onThrottledScroll=function(){var a=_.Yp(),b=a.dispatch,c=this.JSC$20192_watchApi.getRoot().getScrollTop();b.call(a,_.hp({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:c}}))};
emd.prototype.onMastheadThrottledScroll=function(){this.JSC$20192_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20192_watchApi.getRoot().getScrollTop())};
emd.prototype.scrollWatchTo=function(a,b){(b===void 0?0:b)?this.animation.start(this.JSC$20192_watchApi.getRoot().getScrollTop(),Math.max(0,a),500):this.JSC$20192_watchApi.getRoot().setScrollTop(a)};var hmd=function(a){_.vg.call(this);var b=this;this.JSC$20195_watchApi=a;var c=this.JSC$20195_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){fmd(b)}),d=this.JSC$20195_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){gmd(b)});
this.addOnDisposeCallback(function(){b.JSC$20195_watchApi.unsubscribeByKey(c);b.JSC$20195_watchApi.unsubscribeByKey(d)});
fmd(this);gmd(this)};
_.z(hmd,_.vg);
var fmd=function(a){var b,c,d,e=(d=(b=a.JSC$20195_watchApi.getPlayerResponse())==null?void 0:(c=b.videoDetails)==null?void 0:c.title)!=null?d:"";a.JSC$20195_watchApi.dispatchEvent("yt-update-title",e)},gmd=function(a){var b,c,d,e,g,k,m,n=(m=((k=(b=a.JSC$20195_watchApi.getWatchNextResponse())==null?void 0:(c=b.contents)==null?void 0:(d=c.twoColumnWatchNextResults)==null?void 0:(e=d.results)==null?void 0:(g=e.results)==null?void 0:g.contents)!=null?k:[]).find(function(r){return!!r.videoPrimaryInfoRenderer}))==null?
void 0:m.videoPrimaryInfoRenderer;
(b=_.Wp(n==null?void 0:n.title))&&a.JSC$20195_watchApi.dispatchEvent("yt-update-title",b)};var jmd=function(a){_.vg.call(this);this.JSC$20198_watchApi=a;imd(this)};
_.z(jmd,_.vg);var imd=function(a){var b,c;_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20198_watchApi.playerApi,2);b=d.yieldResult;c=function(){a.onYpcContentRequest()};
b.addEventListener("onYpcContentRequest",c);a.addOnDisposeCallback(function(){b.removeEventListener("onYpcContentRequest",c)});
_.ue(d)})};
jmd.prototype.onYpcContentRequest=function(){var a,b,c,d,e,g=(a=this.JSC$20198_watchApi.getWatchNextResponse())==null?void 0:(b=a.contents)==null?void 0:(c=b.twoColumnWatchNextResults)==null?void 0:(d=c.secondaryResults)==null?void 0:(e=d.secondaryResults)==null?void 0:e.offerModule,k,m,n,r;a=(r=(n=(m=(k=g==null?void 0:g.episodeOfferModuleRenderer)!=null?k:g==null?void 0:g.movieOfferModuleRenderer)!=null?m:g==null?void 0:g.unlimitedOfferModuleRenderer)!=null?n:g==null?void 0:g.liveOfferModuleRenderer)!=
null?r:g==null?void 0:g.tvfilmOfferModuleRenderer;var t,u,x;g=(x=g==null?void 0:(t=g.tvfilmOfferModuleRenderer)==null?void 0:(u=t.actionButtons)==null?void 0:u.length)!=null?x:0;u=Math.max(g-1,0);var A,C,F;t=(F=a==null?void 0:(A=a.offerButton)==null?void 0:A.buttonRenderer)!=null?F:a==null?void 0:(C=a.actionButtons)==null?void 0:C[u].buttonRenderer;var J,I;(A=(I=(J=t==null?void 0:t.navigationEndpoint)!=null?J:t==null?void 0:t.serviceEndpoint)!=null?I:t==null?void 0:t.command)&&_.gs.instance.resolveCommand(A)};_.L$=function(a){_.kY.call(this);var b=this;this.rootElement=a;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return b.activeModules}};
kmd(this);a=_.zF(_.Yp(),G8,function(c){b.initOrDisposeActiveModules(c)});
this.addOnDisposeCallback(a);this.initOrDisposeActiveModules(G8(_.Yp().getState()));this.onAttached()};
_.z(_.L$,_.kY);_.L$.prototype.getRoot=function(){return this.rootElement};
_.L$.prototype.getElement=function(a){return this.rootElement.getElement(a)};
_.M$=function(a,b){a.playerResponse=b;a.publish("PLAYER_RESPONSE_UPDATED",b)};
_.L$.prototype.getPlayerResponse=function(){return this.playerResponse};
_.N$=function(a,b){a.watchNextResponse===b?a.publish("WATCH_NEXT_RESPONSE_RELOADED"):(a.watchNextResponse=b,a.publish("WATCH_NEXT_RESPONSE_UPDATED",b))};
_.L$.prototype.getWatchNextResponse=function(){return this.watchNextResponse};
_.L$.prototype.registerActionHandler=function(a,b){var c=this;if(_.w("web_watch_controller_reg_multiple_handlers_killswitch")){var d={};_.Ml(_.Ll.getInstance(),(d[a]=b,d),this.getRoot())}else this.actionHandlers.has(a)||(this.actionHandlers.set(a,[]),d={},_.Ml(_.Ll.getInstance(),(d[a]=function(){var e=_.Kd.apply(0,arguments);return(c.actionHandlers.get(a)||[]).map(function(g){return g.apply(null,_.De(e))})},d),this.getRoot())),this.actionHandlers.get(a).push(b)};
var F$=function(a,b){if(_.w("web_watch_controller_reg_multiple_handlers_killswitch")){var c={};_.Nl(_.Ll.getInstance(),(c[b]=!0,c),a.getRoot())}else(c=a.actionHandlers.get(b))?(c.pop(),c.length===0&&(c={},_.Nl(_.Ll.getInstance(),(c[b]=!0,c),a.getRoot()),a.actionHandlers.delete(b))):_.Dl(new _.qj("Attempted to unregister an action handler which is not registered.",b))},mld=function(a,b){a.rootElement.pageDisposeJobs||(a.rootElement.pageDisposeJobs=[]);
_.vaa(a.rootElement.pageDisposeJobs,b)};
_.L$.prototype.dispatchEvent=function(a,b){_.io(this.rootElement,a,b)};
_.L$.prototype.provideRenderingData=function(a,b){this.rootElement.provideRenderingData(a,b)};
_.L$.prototype.scrollWatchTo=function(a,b){var c;(c=this.watchScrollManager)==null||c.scrollWatchTo(a,b)};
_.L$.prototype.focusOnPlayer=function(){var a=this.getElement("PLAYER");_.Qm(a,function(){if(a&&a.firstElementChild){var b=a.querySelector(".html5-video-player");b&&(_.dWb(_.v().resolve(_.Ct)),b.focus())}else _.Dl(Error("mm"))})};
_.lmd=function(a){var b=!!a.rootElement.theater,c=!!a.rootElement.fullscreen,d;(d=a.watchCinematicManager)==null||$kd(d,c,b)};
_.L$.prototype.onAttached=function(){var a=_.w("external_fullscreen");_.w("use_unified_flag_accessor")&&(a=_.v().resolve(_.uic).retriever.getFlag(_.Ehb));(a||_.Gi("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var mmd=function(a){return a.getRoot().is==="ytd-watch-flexy"||a.getRoot().is==="ytd-watch-grid"},O$=function(a){return a.getRoot().is==="ytd-watch-fixie"},kmd=function(a){if(O$(a)||mmd(a)&&_.w("kevlar_watch_flexy_theater_manager")){var b=new Bkd(a);
_.kg(a,b)}b=new qld(a);_.kg(a,b);b=new G$(a);_.kg(a,b);b=new lld(a);_.kg(a,b);b=new Yld(a);_.kg(a,b);b=new H$(a);_.kg(a,b);if(O$(a)||mmd(a)&&_.w("kevlar_watch_flexy_playlist_manager"))b=new $ld(a),_.kg(a,b)};
_.L$.prototype.initOrDisposeActiveModules=function(a){a?(this.watchScrollManager=new emd(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new Fld(this)),this.activeModules.push(new Djd(this)),O$(this)&&this.activeModules.push(new Kld(this)),this.activeModules.push(new hmd(this)),this.activeModules.push(new yld(this)),(O$(this)||_.w("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new Ijd(this)),this.activeModules.push(new Qld(this)),(O$(this)||
_.w("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new jmd(this)),(O$(this)||_.w("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new Rkd(this)),_.w("kevlar_watch_cinematics")&&(this.watchCinematicManager=new Wkd(this),this.activeModules.push(this.watchCinematicManager),_.lmd(this)),_.w("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new Uld(this)),_.w("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new old(this)),a=_.w("swatcheroo_directly_provide_comments")&&
this.getRoot().is==="ytd-watch-grid",_.w("kevlar_watch_flexy_comments_manager")&&!a&&this.activeModules.push(new fld(this)),_.w("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new Ujd(this)),this.activeModules.push(new Jkd(this)),_.w("web_watch_inject_placeholder_panels")&&this.activeModules.push(new Mld(this)),_.w("web_enable_timely_actions")&&this.activeModules.push(new Nkd(this)),_.w("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new ikd(this)),_.w("web_watch_enable_multiview_manager")&&
this.activeModules.push(new $jd(this)),_.w("web_fullscreen_video_action_bar")&&this.activeModules.push(new Mjd(this)),_.w("web_player_rtr_ctrls")&&this.activeModules.push(new kkd(this))):(_.mia(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.L$.prototype.disposeInternal=function(){_.kY.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Um.Object.defineProperties(_.L$.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var csc;csc=function(a){switch(a){case 0:return"BISCOTTI_BASED_DETECTION_RESULT_DETECTED";case 1:return"BISCOTTI_BASED_DETECTION_RESULT_NOT_DETECTED";case 2:return"BISCOTTI_BASED_DETECTION_RESULT_UNSPECIFIED";case 3:return"BISCOTTI_BASED_DETECTION_RESULT_KNOWN_FAILURE";case 4:return"BISCOTTI_BASED_DETECTION_RESULT_UNKNOWN_FAILURE";default:_.Wb(a,"unknown result type")}};
_.dsc=function(a,b,c){b=_.aIa[b];c={detected:a===0,source:b.methodCodeName,detectionResult:csc(a),contentCpn:c};_.xl("biscottiBasedDetection",c);b.attestationOffset!==void 0&&_.Ei("CATSTAT",_.ZHa(a,b))};
_.gY=function(a,b){var c={};c.key=a;c.value=b;return _.CIa().then(function(d){return new Promise(function(e,g){try{var k=d.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(c);k.onsuccess=function(){e()};
k.onerror=function(){g()}}catch(m){g(m)}})})};
_.fsc=function(){var a=_.$i("user_engagement_experiments_rate_limit_ms"),b=esc.get("last-user-engagement-exp-trigger-timestamp");return!b||(0,_.Uj)()>=b+a?(esc.set("last-user-engagement-exp-trigger-timestamp",(0,_.Uj)()),!0):!1};
_.hY=function(a,b,c,d,e){b=b===void 0?null:b;c=c===void 0?null:c;d=d===void 0?null:d;e=e===void 0?null:e;a={youThereEventType:a};c&&(a.lactThresholdMs=c.lactThresholdMs,a.mediaPosSec=c.promptDelaySec,a.lactServerRequestMs=c.lactServerRequestMs,a.triggerReason=c.triggerReason);e!=null&&(a.renderingMediaPosSec=Math.round(e));b||(b=_.En());b&&(a.clientScreenNonce=b);d&&(a.clientPlaybackNonce=d);_.xl("youThere",a)};var esc=new _.Ek("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.Rmc=function(a){return _.hp({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:a})};
}catch(e){_._DumpException(e)}
try{
var umd,zmd,Amd,Bmd,smd,rmd,Dmd;_.omd=function(){var a=window.location.hash;a.charAt(0)==="#"&&(a=a.charAt(1)==="!"?a.substring(2):a.substring(1));return _.Ni(a)};
_.pmd=function(a){var b;_.l(function(c){b=["b.f_","j.s_","r.s_","e.h_"];_.w("ab_det_sc_inj")&&b.push("s.i_");_.w("ab_deg_unex_thr")||b.push("a.o_");_.w("ks_get_o_pp")||b.push("g.o_");_.w("ks_det_gpbl")||b.push("p.i_");b.push("f.i_");b.push("a.b_");b.push("p.m_");_.w("ab_det_el_h_v2")&&b.push("n.h_");b.push("o.p_");b.forEach(function(d){var e;return _.l(function(g){if(g.nextAddress==1)return _.p(g,_.KKb[d](),2);e=g.yieldResult;a(e,d);_.ue(g)})});
_.ue(c)})};
_.qmd=function(a,b){a={videoId:a};b&&(a.playlistId=b);return a};
_.tmd=function(){if(!_.w("disable_biscotti_fetch_for_ad_blocker_detection")&&!_.w("disable_biscotti_fetch_entirely_for_all_web_clients")&&_.OBa()){var a=_.Fi("PLAYER_VARS",{});if(_.Cf.get(a,"privembed",!1)!="1"&&!_.RBa(a)){var b=function(){rmd=!0;"google_ad_status"in window?_.Ei("DCLKSTAT",1):_.Ei("DCLKSTAT",2)};
try{_.Kn("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}smd.push(_.zk.addLowPriorityJob(function(){if(!(rmd||"google_ad_status"in window)){try{_.DBa("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}rmd=!0;_.Ei("DCLKSTAT",3)}},5E3))}}};
umd=function(a){return _.w("web_watch_adjust_sidebar_width")?_.O8+((a===void 0?1500:a)-_.red)/100*_.sed:_.O8};
_.vmd=function(a,b){a=a.width-_.Klc();var c=umd(a);return Math.max(c,Math.min(_.ved,c+(a-(_.ued+umd(a)+_.M8+2*_.M8+b))))};
_.wmd=function(a,b,c){c=c===void 0?!1:c;var d=Math.max(a.width,_.ted);if(_.w("kevlar_watch_feed_big_thumbs")&&a.width>=1550-_.LW()&&a.height>=800)d-=_.zed;else if(a.width>=_.N8){var e=_.ued+umd(a.width)+_.M8;_.w("kevlar_watch_feed_big_thumbs")&&(e=_.yed);d-=e}else d-=_.ued;d=Math.min(d,_.wed);e=240;c&&(e=380);b<.5624||(!_.w("kevlar_watch_flexy_disable_small_window_sizing")&&(a.height<630&&a.width>=657||a.height>=630&&a.width>=_.N8&&a.width<1327)?e=360:!_.w("kevlar_watch_flexy_disable_large_window_sizing")&&
a.height>=630&&a.width>=1327&&(e=480));var g=Math.min(d*b,a.height-(56+_.qed+_.xed));g=Math.max(g,e);b<1?d=g/b:a.width>=_.N8&&(d=_.wmd(a,.5625,c).width);return new _.rf(Math.round(d),Math.round(g))};
_.xmd=function(a){var b=0;a.indexOf("h")!=-1&&(a=a.split("h"),b=a[0]*60*60,a=a[1]);a.indexOf("m")!=-1&&(a=a.split("m"),b=a[0]*60+b,a=a[1]);a.indexOf("s")!=-1?(a=a.split("s"),b=a[0]*1+b):b=a*1+b;return b};
_.ymd=function(){_.$i("service_worker_push_logged_out_prompt_watches")!=-1&&_.kX("WatchCount").then(function(a){a>=100||_.gY("WatchCount",a+1)})};
zmd=function(a){var b=a.externalVideoId||"";return b?(_.w("webfe_watch_shorts_canonical_url_fix")||_.Fi("MWEB_ALLOW_SHORTS_CANONICAL_URL_FIX"))&&a.isShortsEligible?"https://www.youtube.com/shorts/"+b:"https://www.youtube.com/watch?v="+b:""};
Amd=function(a){var b=[];a.viewCount&&b.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:a.viewCount});a.likeCount&&b.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:a.likeCount});return b};
Bmd=function(a){var b,c,d={"@context":"https://schema.org","@type":"VideoObject",description:_.Wp(a.description),duration:"PT"+(a.lengthSeconds||"0")+"S",embedUrl:a.embed?a.embed.iframeUrl:"",name:_.Wp(a.title),thumbnailUrl:((b=a.thumbnail)==null?void 0:(c=b.thumbnails)==null?void 0:c.map(function(t){return t&&t.url||""}))||[],
uploadDate:a.publishDate};_.w("mweb_video_schema_id_killswitch")||(d["@id"]=zmd(a));b=Amd(a);b.length&&(d.interactionStatistic=b);a.category&&(d.genre=a.category);a.ownerChannelName&&(d.author=a.ownerChannelName);a.liveBroadcastDetails&&(d.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:a.liveBroadcastDetails.startTimestamp,endDate:a.liveBroadcastDetails.endTimestamp}]);if(a.learningResource){a=a.learningResource;d["@type"]=["VideoObject","LearningResource"];var e;if((e=a.learningResourceType)==
null?0:e.length)d.learningResourceType=a.learningResourceType[0];var g;if((g=a.educationalAlignment)==null?0:g.length)d.educationalAlignment={"@type":"AlignmentObject",targetName:a.educationalAlignment[0]};var k;if((k=a.educationalLevel)==null?0:k.length){e=a.educationalLevel[0];var m;if((m=a.educationalLevelCountry)==null?0:m.length)e+=" ("+a.educationalLevelCountry+")";d.educationalLevel=e}var n,r;if(((n=a.learningResourceType)==null?0:n.length)&&a.learningResourceType[0]==="Problem walkthrough"&&
((r=a.problemDescriptions)==null?0:r.length))for(d.hasPart=[],m=_.h(a.problemDescriptions),n=m.next();!n.done;n=m.next())e=n.value,n=e.problemDescriptionText,r=e.startOffset,e=e.url,n&&r!==void 0&&e&&d.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:n,text:n,startOffset:r,url:e})}return d};
_.Cmd=function(a){return _.hp({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:a}})};
smd=[];rmd=!1;Dmd=new _.X("updateSentimentBarStateCommand");_.Emd=new _.X("showSurveyCommand");_.Q$=new _.X("changeMarkersVisibilityCommand");var Gmd,Hmd,Lmd,Kmd,Jmd,R$;_.Fmd=function(a,b){this.playerProvider_=a;this.actionSenderElement_=b;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.Fmd.prototype.reset=function(){Gmd(this);this.isUserPredictedAbsent_=!1};
Gmd=function(a,b){!a.youThereData_||a.showWarningJob_||b!==void 0&&b||(_.hY("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.En(),a.youThereData_,a.clientPlaybackNonce_),_.Al());_.zk.cancelJob(a.showWarningJob_);a.showWarningJob_=0;_.zk.cancelJob(a.showBlockingWarningJob_);a.showBlockingWarningJob_=0;_.zk.cancelJob(a.pausePlaybackJob_);a.pausePlaybackJob_=0;a.youThereData_=null;a.clientPlaybackNonce_=void 0;a.inYouThereFlow_=!1};
_.Imd=function(a,b){var c,d,e;_.l(function(g){if(g.nextAddress==1)return a.reset(),_.p(g,a.playerProvider_().getPlayerPromise(),2);c=g.yieldResult;a.clientPlaybackNonce_=c.getVideoData().cpn;a.youThereData_=b.configData.youThereData;if(!a.youThereData_)return g.return();if(a.youThereData_.triggerReason&&a.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.fsc())return _.hY("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.En(),a.youThereData_,a.clientPlaybackNonce_),g.return();d=a.youThereData_.promptDelaySec;
e=c.getCurrentTime();a.showWarningJob_=_.zk.addLowPriorityJob(function(){return _.l(function(k){a.showWarningJob_=0;return _.p(k,Hmd(a),0)})},Math.max(d-e,0)*1E3);
_.ue(g)})};
Hmd=function(a){var b,c,d,e,g,k;return _.l(function(m){if(m.nextAddress==1)return _.p(m,a.playerProvider_().getPlayerPromise(),2);if(m.nextAddress!=3)return b=m.yieldResult,c=b.getCurrentTime(),_.p(m,Jmd(a),3);d=m.yieldResult;if(!d||!a.youThereData_)return m.return();if(_.w("check_user_lact_at_prompt_shown_time_on_web")&&(e=parseInt(a.youThereData_.lactThresholdMs,10),_.Yk()<e))return _.hY("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.En(),a.youThereData_,a.clientPlaybackNonce_),m.return();if(a.youThereData_.playbackPauseDelayMs<=
0)return Kmd(a),m.return();!_.w("external_fullscreen")&&(g=_.eo())&&(a.ignoreFullscreenExitUserActivity_=!0,_.zk.addLowPriorityJob(function(){a.ignoreFullscreenExitUserActivity_=!1},2E3),_.fo(g));
a.youThereData_.showToastWarningPrompt&&(R$(a,a.youThereData_.showWarningActions),a.inYouThereFlow_=!0,_.hY("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.En(),a.youThereData_,a.clientPlaybackNonce_,c),_.hY("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.En(),a.youThereData_,a.clientPlaybackNonce_,c));k=0;a.youThereData_.blockingPromptDelayMs&&(k=a.youThereData_.blockingPromptDelayMs);a.showBlockingWarningJob_=_.zk.addLowPriorityJob(function(){return _.l(function(n){a.showBlockingWarningJob_=0;return _.p(n,
Lmd(a),0)})},k);
_.ue(m)})};
Lmd=function(a){var b,c,d;return _.l(function(e){if(e.nextAddress==1)return _.p(e,Jmd(a),2);b=e.yieldResult;if(!a.youThereData_)return e.return();b&&(a.youThereData_.showBlockingWarningAction&&(_.hY("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.En(),a.youThereData_,a.clientPlaybackNonce_),(c=_.y(a.youThereData_.showBlockingWarningAction,_.ro))?R$(a,c.commands):R$(a,[a.youThereData_.showBlockingWarningAction]),a.inYouThereFlow_=!0),d=a.youThereData_.playbackPauseDelayMs,a.pausePlaybackJob_=
_.zk.addLowPriorityJob(function(){return _.l(function(g){a.pausePlaybackJob_=0;return _.p(g,Kmd(a),0)})},d));
_.ue(e)})};
Kmd=function(a){var b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,Jmd(a),2);b=c.yieldResult;if(!a.youThereData_)return c.return();b&&(_.hY("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.En(),a.youThereData_,a.clientPlaybackNonce_),R$(a,a.youThereData_.showPausedActions),a.inYouThereFlow_=!0);_.ue(c)})};
_.Fmd.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var a=_.y(this.youThereData_.userActiveDuringFlowAction,_.ro);a?R$(this,a.commands):R$(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.hY("YOU_THERE_EVENT_TYPE_LACT_RESET",_.En(),this.youThereData_,this.clientPlaybackNonce_),_.Al());Gmd(this,!0)}_.Mmd(this,!1)};
_.Nmd=function(a){_.hY("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.En(),a.youThereData_,a.clientPlaybackNonce_)};
Jmd=function(a){var b,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,a.playerProvider_().getPlayerPromise(),2);b=d.yieldResult;c=b.getPlayerState();return d.return(c==-1||c==1||c==3)})};
_.Mmd=function(a,b){var c;_.l(function(d){if(d.nextAddress==1){if(a.isUserPredictedAbsent_==b)return d.jumpTo(0);a.isUserPredictedAbsent_=b;return _.p(d,a.playerProvider_().getPlayerPromise(),3)}c=d.yieldResult;c.setUserEngagement(b);b&&_.hY("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.En(),a.youThereData_,a.clientPlaybackNonce_);_.ue(d)})};
R$=function(a,b){if(_.w("handle_service_request_actions")||_.w("kevlar_youthere_service_endpoint_actions_killswitch"))_.po(a.actionSenderElement_,b,a.actionSenderElement_);else{b=_.h(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c.commandMetadata&&c.commandMetadata.webCommandMetadata&&c.commandMetadata.webCommandMetadata.sendPost?_.oo(a.actionSenderElement_,[c]):_.po(a.actionSenderElement_,[c],a.actionSenderElement_)}};var Omd;var Pmd;var Qmd=function(){var a=_.P.apply(this,arguments)||this;a.systemIcons=_.w("kevlar_system_icons");a.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return a};
_.z(Qmd,_.P);Qmd.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var a=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(a=this.data.percentIfLiked||0,this.activated=!0):(a=this.data.percentIfIndifferent||0,this.activated=!1);_.E(this.hostElement).querySelector("#like-bar").style.width=a+"%"}};
Qmd.prototype.handleUpdateSentimentBarStateCommand=function(a){this.data&&this.set("data.likeStatus",_.y(a,Dmd).likeStatus)};
var S$=Qmd;S$.prototype.observeLikeStatus=S$.prototype.observeLikeStatus;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],S$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],S$.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],S$.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],S$.prototype,"activated",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],S$.prototype,"systemIcons",void 0);_.U([_.N("data.likeStatus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],S$.prototype,"observeLikeStatus",null);S$=_.U([_.Q({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],S$);
_.S(S$,"ytd-sentiment-bar-renderer",function(){if(Pmd!==void 0)return Pmd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sentiment-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-sentiment-bar-renderer">\n  <div id="like-bar" class="style-scope ytd-sentiment-bar-renderer"></div>\n</div>\n<tp-yt-paper-tooltip position="top" class="style-scope ytd-sentiment-bar-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Pmd=a},{mode:1});var Rmd;var Smd=function(){var a=_.P.apply(this,arguments)||this;a.small=!0;return a};
_.z(Smd,_.P);var T$=Smd;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],T$.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],T$.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],T$.prototype,"small",void 0);T$=_.U([_.Q({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],T$);
_.S(T$,"ytd-video-view-count-renderer",function(){if(Rmd!==void 0)return Rmd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-view-count-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.viewCount)]]</span><span class="short-view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.shortViewCount)]]</span>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Rmd=a},{mode:_.as("kevlar_poly_si_batch_j080")?1:2});var U$=function(){var a=_.P.apply(this,arguments)||this;a.infoFormattedStrings=[];a.wrapVideoActions=_.w("kevar_watch_wrap_video_actions");a.hideSentimentBar=_.w("kevlar_watch_hide_sentiment_bar");a.actionMap={};return a};
_.z(U$,_.P);_.f=U$.prototype;_.f.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.w("web_modern_buttons"),forceIconButton:!_.w("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.f.dataChanged=function(){_.w("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.f.computeInfoFormattedStrings=function(a){if(!a)return[];var b=[];a.dateText&&b.push(a.dateText);a.stationName&&b.push(a.stationName);a.rating&&b.push(a.rating);a.startEndTimeTemplate&&a.startTimeUtcMillis&&a.endTimeUtcMillis&&b.push(_.Vp(_.zcd(_.Wp(a.startEndTimeTemplate),Number(a.startTimeUtcMillis),Number(a.endTimeUtcMillis))));a.upNextProgramText&&b.push(a.upNextProgramText);return b};
_.f.scheduleInitialUpdatedMetadataRequest=function(){var a,b=(a=this.data)==null?void 0:a.updatedMetadataEndpoint;if(b){var c;a=Number((c=_.y(b,_.dFb))==null?void 0:c.initialDelayMs);c=isNaN(a)?250:a;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),c)}};
_.f.setSentimentBarWidth=function(){var a=this;_.Qm(this,function(){var b=_.E(a.hostElement).querySelector("ytd-menu-renderer");if(b){b=b.topLevelButtons;for(var c=0,d=0;d<b.length;d++){var e=b[d],g=a.get("toggleButtonSupportedData.toggleButtonIdData.id",e.data);if(g==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||g==="TOGGLE_BUTTON_ID_TYPE_LIKE")c+=e.clientWidth+8;else break}c&&(a.sentiment.style.width=c-8+" px")}})};
_.f.fetchUpdatedMetadata=function(a){var b;a&&(b={continuation:a});var c;(a=(c=this.data)==null?void 0:c.updatedMetadataEndpoint)&&_.v().resolve(_.Yi).resolveCommand(a,{form:Object.assign({},b,{element:this.hostElement})})};
_.f.onYtServiceRequestSent=function(a,b){b.endpoint&&_.y(b.endpoint,_.fw)&&(this.hasUpdateSentimentBarStateCommands()&&!_.w("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.y(b.endpoint,_.fw).status),this.setSentimentBarWidth())};
_.f.hasUpdateSentimentBarStateCommands=function(){var a,b,c,d,e=(d=(a=this.data)==null?void 0:(b=a.videoActions)==null?void 0:(c=b.menuRenderer)==null?void 0:c.topLevelButtons)!=null?d:[];a=_.h(e);for(b=a.next();!b.done;b=a.next()){b=b.value;e=d=c=void 0;var g=(c=b.toggleButtonRenderer)==null?void 0:(d=c.toggleButtonSupportedData)==null?void 0:(e=d.toggleButtonIdData)==null?void 0:e.id;if(g==="TOGGLE_BUTTON_ID_TYPE_LIKE"||g==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){d=c=void 0;b=(d=_.y((c=b.toggleButtonRenderer)==
null?void 0:c.defaultServiceEndpoint,_.ro))==null?void 0:d.commands;if(!b)break;b=_.h(b);for(c=b.next();!c.done;c=b.next())if(_.y(c.value,Dmd))return!0}}return!1};
_.f.onYtServiceRequestCompleted=function(a,b){var c;(a=(c=b.data)==null?void 0:c.loggingDirectives)&&_.BXa(_.ls(),a);this.get("continuation.timedContinuationData",b.data)&&this.data&&this.data.updatedMetadataEndpoint&&(b=b.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,b.continuation),b.timeoutMs))};
_.f.computeHasDateText=function(a){return!!a&&!!a.dateText};
_.Um.Object.defineProperties(U$.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;return!((d=(a=this.data)==null?void 0:(b=a.videoActions)==null?void 0:(c=b.menuRenderer)==null?void 0:c.flexibleItems)==null||!d.length)}}});
U$.prototype.onYtServiceRequestCompleted=U$.prototype.onYtServiceRequestCompleted;U$.prototype.onYtServiceRequestSent=U$.prototype.onYtServiceRequestSent;U$.prototype.dataChanged=U$.prototype.dataChanged;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],U$.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],U$.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],U$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.$G.YtTaskEmitterBehavior),_.W("design:type",Object)],U$.prototype,"ytTaskEmitterBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],U$.prototype,"data",void 0);_.U([_.O({computed:"computeInfoFormattedStrings(data)"}),_.W("design:type",Array)],U$.prototype,"infoFormattedStrings",void 0);
_.U([_.O({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],U$.prototype,"hasDateText",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],U$.prototype,"wrapVideoActions",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],U$.prototype,"hideSentimentBar",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],U$.prototype,"flexMenuEnabled",null);
_.U([_.ir("#sentiment"),_.W("design:type",Object)],U$.prototype,"sentiment",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],U$.prototype,"dataChanged",null);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Nt]),_.W("design:returntype")],U$.prototype,"onYtServiceRequestSent",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Vt]),_.W("design:returntype")],U$.prototype,"onYtServiceRequestCompleted",null);
_.S(U$,"ytd-video-primary-info-renderer",function(){if(Omd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-primary-info-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><a class="yt-simple-endpoint style-scope ytd-video-primary-info-renderer" hidden="[[!data.superTitleIcon]]" href$="[[computeHref_(data.superTitleLink.runs.0.navigationEndpoint)]]" aria-label$="[[data.superTitleLink.accessibility.accessibilityData.label]]" data="[[data.superTitleLink.runs.0.navigationEndpoint]]"><yt-icon class="super-title-icon style-scope ytd-video-primary-info-renderer" icon="yt-icons:location_pin"></yt-icon></a><yt-formatted-string class="super-title style-scope ytd-video-primary-info-renderer" force-default-style="" text="[[data.superTitleLink]]"></yt-formatted-string><h1 class="title style-scope ytd-video-primary-info-renderer"><yt-formatted-string force-default-style="" text="[[data.title]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></h1><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><div id="info" class="style-scope ytd-video-primary-info-renderer"><div id="info-text" class="style-scope ytd-video-primary-info-renderer"><div id="count" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></div><div id="info-strings" hidden="[[!infoFormattedStrings.length]]" class="style-scope ytd-video-primary-info-renderer"><span id="dot" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></span><template is="dom-repeat" items="[[infoFormattedStrings]]" class="style-scope ytd-video-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></template></div></div><div id="flex" class="style-scope ytd-video-primary-info-renderer"></div><div id="menu-container" class="style-scope ytd-video-primary-info-renderer"><div id="menu" class="style-scope ytd-video-primary-info-renderer"></div><ytd-sentiment-bar-renderer id="sentiment" data="[[data.sentimentBar.sentimentBarRenderer]]" hidden="[[!data.sentimentBar.sentimentBarRenderer]]" class="style-scope ytd-video-primary-info-renderer"></ytd-sentiment-bar-renderer></div></div></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);Omd=a}a=Omd;return a},{mode:1});var Tmd;var V$=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return a};
_.z(V$,_.P);_.f=V$.prototype;_.f.configureRendererStamper=function(){return{subscribeButtonData:{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",params:{withCount:!0}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.f.dataChanged=function(){var a;this.descriptionToggled=!((a=this.data)==null||!a.defaultExpanded);var b;this.collapsed=this.descriptionAlwaysCollapsed||!((b=this.data)==null?0:b.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.ku(110509);this.showLessClientVe=_.ku(110510);a=_.En();b=_.Dn();a&&b&&_.iY(a,b,[this.showMoreClientVe,this.showLessClientVe])};
_.f.onYtExpanderMoreTapped=function(){var a,b=(a=this.data)==null?void 0:a.showMoreCommand;b&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(b);(a=_.En())&&this.showMoreClientVe&&_.Xo(a,this.showMoreClientVe)};
_.f.onYtExpanderLessTapped=function(){var a=_.En();a&&this.showLessClientVe&&_.Xo(a,this.showLessClientVe);var b;(a=(b=this.data)==null?void 0:b.showLessCommand)&&this.componentBehavior.resolveCommand(a)};
_.f.handleUpdateDateTextAction=function(a){this.data&&this.data.dateText&&this.set("data.dateText",_.y(a,_.jed).dateText)};
_.f.handleUpdateDescriptionAction=function(a){if(a=_.y(a,_.MFb))a.isEmpty||!a.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.zs(a.description)):this.set("data.description",a.description)};
_.f.onYtChangeEngagementPanelVisibilityAction=function(a){if(_.w("web_structured_description_show_more")||_.w("web_engagement_panel_open_description")){var b,c=(b=_.y(a,_.Uzb))==null?void 0:b.targetId,d;a=((d=_.y(a,_.Uzb))==null?void 0:d.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";c==="engagement-panel-structured-description"&&a&&(this.descriptionToggled=!0)}};
_.f.updateCollapsedFromBinding=function(a){this.collapsed=a.detail.value};
_.f.updateDescriptionToggledFromBinding=function(a){this.descriptionToggled=a.detail.value};
_.f.updateCanCollapseFromBinding=function(a){this.canCollapse=a.detail.value};
_.Um.Object.defineProperties(V$.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.data)==null?void 0:(b=a.metadataRowContainer)==null?void 0:b.metadataRowContainerRenderer;return!!c&&!!c.rows&&c.rows.length>c.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.attributedDescription)}},
loadStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return _.w("web_inline_structured_description_load_delay")?this.hasInlineStructuredDescription&&!this.collapsed:this.hasInlineStructuredDescription}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription&&!this.collapsed}},
descriptionAlwaysCollapsible:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription||this.metadataCollapsible}}});
V$.prototype.onYtExpanderLessTapped=V$.prototype.onYtExpanderLessTapped;V$.prototype.onYtExpanderMoreTapped=V$.prototype.onYtExpanderMoreTapped;V$.prototype.dataChanged=V$.prototype.dataChanged;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],V$.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],V$.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],V$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],V$.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],V$.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],V$.prototype,"collapsed",void 0);_.U([_.O(),_.W("design:type",Boolean)],V$.prototype,"descriptionToggled",void 0);
_.U([_.O(),_.W("design:type",Boolean)],V$.prototype,"canCollapse",void 0);_.U([_.O(),_.W("design:type",Object)],V$.prototype,"subscribeButtonData",void 0);_.U([_.O(),_.W("design:type",Number)],V$.prototype,"descriptionCollapsedHeight",void 0);_.U([_.O(),_.W("design:type",Object)],V$.prototype,"structuredDescriptionContentRenderer",void 0);_.U([_.O({value:function(){return _.w("web_watch_description_always_collapsed")}}),
_.W("design:type",Boolean)],V$.prototype,"descriptionAlwaysCollapsed",void 0);_.U([_.ir("#description"),_.W("design:type",HTMLDivElement)],V$.prototype,"description",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V$.prototype,"dataChanged",null);_.U([_.M("yt-expander-more-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V$.prototype,"onYtExpanderMoreTapped",null);
_.U([_.M("yt-expander-less-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V$.prototype,"onYtExpanderLessTapped",null);_.U([_.K("data.metadataRowContainer"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],V$.prototype,"metadataCollapsible",null);_.U([_.K("data","structuredDescriptionContentRenderer"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],V$.prototype,"hasInlineStructuredDescription",null);
_.U([_.K("data.attributedDescription"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],V$.prototype,"hasAttributedDescription",null);_.U([_.K("hasInlineStructuredDescription","collapsed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],V$.prototype,"loadStructuredDescription",null);_.U([_.K("data","structuredDescriptionContentRenderer","collapsed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],V$.prototype,"showInlineStructuredDescription",null);
_.U([_.K("data","hasInlineStructuredDescription","metadataCollapsible"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],V$.prototype,"descriptionAlwaysCollapsible",null);
_.S(V$,"ytd-video-secondary-info-renderer",function(){if(Tmd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-secondary-info-renderer"><div id="top-row" class="style-scope ytd-video-secondary-info-renderer"><ytd-video-owner-renderer data="[[data.owner.videoOwnerRenderer]]" subscribe-key="[[subscribeButtonData.subscribedEntityKey]]" class="style-scope ytd-video-secondary-info-renderer"><span class="date style-scope ytd-video-secondary-info-renderer" slot="date">[[getSimpleString(data.dateText)]]</span></ytd-video-owner-renderer><div id="subscribe-button" class="style-scope ytd-video-secondary-info-renderer"></div></div><ytd-expander always-collapsed="[[descriptionAlwaysCollapsed]]" always-toggleable="[[descriptionAlwaysCollapsible]]" can-toggle="[[canCollapse]]" collapsed="[[collapsed]]" collapsed-height="[[descriptionCollapsedHeight]]" is-toggled="[[descriptionToggled]]" on-can-toggle-changed="updateCanCollapseFromBinding" on-collapsed-changed="updateCollapsedFromBinding" on-is-toggled-changed="updateDescriptionToggledFromBinding" class="style-scope ytd-video-secondary-info-renderer"><div id="description" slot="content" class="style-scope ytd-video-secondary-info-renderer"><yt-attributed-string class="content style-scope ytd-video-secondary-info-renderer" data="[[data.attributedDescription]]" disable-upgrade$="[[!hasAttributedDescription]]" hidden="[[!hasAttributedDescription]]" user-input=""></yt-attributed-string><yt-formatted-string class="content style-scope ytd-video-secondary-info-renderer" disable-upgrade$="[[hasAttributedDescription]]" force-default-style="" hidden="[[hasAttributedDescription]]" split-lines="[[!hasAttributedDescription]]" text="[[data.description]]"></yt-formatted-string><ytd-structured-description-content-renderer data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!loadStructuredDescription]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="[[hasInlineStructuredDescription]]" class="style-scope ytd-video-secondary-info-renderer"></ytd-structured-description-content-renderer></div><ytd-metadata-row-container-renderer class="sticky style-scope ytd-video-secondary-info-renderer" slot="sticky" collapsed="[[collapsed]]" data="[[data.metadataRowContainer.metadataRowContainerRenderer]]"></ytd-metadata-row-container-renderer><yt-formatted-string class="more-button style-scope ytd-video-secondary-info-renderer" slot="more-button" role="button" text="[[data.showMoreText]]"></yt-formatted-string><yt-formatted-string class="less-button style-scope ytd-video-secondary-info-renderer" slot="less-button" role="button" text="[[data.showLessText]]"></yt-formatted-string></ytd-expander></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);Tmd=a}a=Tmd;return a},{mode:2});var Umd;var W$=function(){return _.P.apply(this,arguments)||this};
_.z(W$,_.P);W$.prototype.configureRendererStamper=function(){return{"data.scrollUpButton":{id:"scroll-up",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.w("web_modern_buttons"),forceIconButton:!_.w("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
W$.prototype.activate=function(a){a.appendTo(this.player);a.getPlayerPromise().then(function(b){b.setMinimized(!0)});
this.active=!0};
W$.prototype.deactivate=function(){var a=this.player.firstElementChild;a.getPlayerPromise().then(function(b){b.setMinimized(!1)});
this.active=!1;return a};
W$.prototype.onScrollUpTap=function(){var a=_.v().resolve(_.Zt).getCurrentPage();a&&a.setScrollTop(0)};
var X$=W$;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],X$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],X$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],X$.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],X$.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],X$.prototype,"active",void 0);
_.U([_.O({reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.W("design:type",Boolean)],X$.prototype,"darkLaunch",void 0);_.U([_.ir("#player"),_.W("design:type",HTMLDivElement)],X$.prototype,"player",void 0);X$=_.U([_.Q({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],X$);
_.S(X$,"ytd-miniplayer-bar-renderer",function(){if(Umd!==void 0)return Umd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player" class="style-scope ytd-miniplayer-bar-renderer"></div>\n<div id="meta" class="style-scope ytd-miniplayer-bar-renderer">\n  <div id="title-row" class="style-scope ytd-miniplayer-bar-renderer">\n    <h1 id="title" class="style-scope ytd-miniplayer-bar-renderer">[[getSimpleString(data.title)]]</h1>\n    <div id="scroll-up" on-tap="onScrollUpTap" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n  <yt-formatted-string id="owner" link-inherit-color="" text="[[data.owner]]" class="style-scope ytd-miniplayer-bar-renderer"></yt-formatted-string>\n  <div id="buttons" class="style-scope ytd-miniplayer-bar-renderer">\n    <div id="menu" class="style-scope ytd-miniplayer-bar-renderer"></div>\n    <div id="subscribe" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Umd=a},{mode:1});_.Ts(_.Rr(function(a){var b=_.Pl();_.wh(function(){var c;if(c=JSON)c=Bmd(a.data()),c=_.Wd(JSON.stringify(c).replace(/</g,"\\u003C"));var d=a.data(),e=_.Wp(d.title).trim().length===0,g=!d.publishDate||d.publishDate.trim().length===0,k,m,n,r,t=!((k=d.thumbnail)==null?0:(m=k.thumbnails)==null?0:m.length)||!((n=d.thumbnail)==null?0:n.thumbnails[0].url)||((r=d.thumbnail)==null?void 0:r.thumbnails[0].url.trim().length)===0;b.value&&c&&!(e||g||t)&&_.Yd(b.value,c)},"XOOpRb");
return _.q("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.q("script",{el:b,type:"application/ld+json"}))},"ni"),"player-microformat-renderer",{props:{data:_.Ss}});
}catch(e){_._DumpException(e)}
try{
var x7c,H6,y7c,z7c,B7c,C7c,A7c,D7c;x7c=function(){var a=_.Ao();a.info||(a.info={});return a.info};
H6=function(a){return Math.round(_.Eo()+a)};
y7c=function(){var a;if(_.w("csi_use_performance_navigation_timing")||_.w("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=_.Do==null?void 0:(a=_.Do.getEntriesByType)==null?void 0:(b=a.call(_.Do,"navigation"))==null?void 0:(c=b[0])==null?void 0:(d=c.toJSON)==null?void 0:d.call(c);e?(e.requestStart=H6(e.requestStart),e.responseEnd=H6(e.responseEnd),e.redirectStart=H6(e.redirectStart),e.redirectEnd=H6(e.redirectEnd),e.domainLookupEnd=H6(e.domainLookupEnd),e.connectStart=H6(e.connectStart),
e.connectEnd=H6(e.connectEnd),e.responseStart=H6(e.responseStart),e.secureConnectionStart=H6(e.secureConnectionStart),e.domainLookupStart=H6(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=_.Do.timing}else a=_.w("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.Do.timing)):_.Do.timing;return a};
z7c=function(){if(_.Do.getEntriesByType){var a=_.Do.getEntriesByType("paint");if(a=_.Ka(a,function(c){return c.name==="first-paint"}))return H6(a.startTime)}var b;
_.w("csi_use_performance_navigation_timing")||_.w("csi_use_performance_navigation_timing_tvhtml5")?b=_.Do.getEntriesByType("first-paint")[0].startTime:b=_.Do.timing.msFirstPaint;return b?Math.max(0,b):0};
B7c=function(){var a=window.location.protocol,b=_.Do.getEntriesByType("resource");b=_.vx(b,function(c){return c.name.indexOf(a+"//fonts.gstatic.com/s/")===0});
(b=A7c(b,function(c,d){return d.duration>c.duration?d:c}))&&b.startTime>0&&b.responseEnd>0&&(_.Fo("wffs",H6(b.startTime)),_.Fo("wffe",H6(b.responseEnd)))};
C7c=function(a,b){a=document.querySelector(a);if(!a)return!1;var c="",d=a.nodeName;d==="SCRIPT"?(c=a.src,c||(c=a.getAttribute("data-timing-href"))&&(c=window.location.protocol+c)):d==="LINK"&&(c=a.href);_.Ud(document)&&a.setAttribute("nonce",_.Ud(document));return c?(a=_.Do.getEntriesByName(c))&&a[0]&&(a=a[0],c=_.Eo(),_.Fo("rsf_"+b,c+Math.round(a.fetchStart)),_.Fo("rse_"+b,c+Math.round(a.responseEnd)),a.transferSize!==void 0&&a.transferSize===0)?!0:!1:!1};
_.E7c=function(a,b){_.Ii(function(){_.Co("").info.actionType=a;b&&_.Ei("TIMING_AFT_KEYS",b);_.Ei("TIMING_ACTION",a);var c=_.ICa(_.Fi("TIMING_INFO",{}));Object.keys(c).length>0&&_.Go(c);c={isNavigation:!0,actionType:_.vCa(_.Fi("TIMING_ACTION"))};var d=_.Fi("PREVIOUS_ACTION");d&&(c.previousAction=_.vCa(d));if(d=_.Fi("CLIENT_PROTOCOL"))c.httpProtocol=d;if(d=_.Fi("CLIENT_TRANSPORT"))c.transportProtocol=d;(d=_.En())&&d!=="UNDEFINED_CSN"&&(c.clientScreenNonce=d);d=_.HCa();if(d===1||d===-1)c.isVisible=!0;
d=_.nCa().loadType==="cold";var e=x7c();d||(d=e.yt_lt==="cold");if(d){c.loadType="cold";d=x7c();e=y7c();var g=_.Eo(),k=_.Fi("CSI_START_TIMESTAMP_MILLIS",0);k>0&&!_.w("embeds_web_enable_csi_start_override_killswitch")&&(g=k);g&&(_.Fo("srt",e.responseStart),d.prerender!==1&&_.ACa(g));d=z7c();d>0&&_.Fo("fpt",d);d=y7c();d.isPerformanceNavigationTiming&&_.Go({performanceNavigationTiming:!0},void 0);_.Fo("nreqs",d.requestStart,void 0);_.Fo("nress",d.responseStart,void 0);_.Fo("nrese",d.responseEnd,void 0);
d.redirectEnd-d.redirectStart>0&&(_.Fo("nrs",d.redirectStart,void 0),_.Fo("nre",d.redirectEnd,void 0));d.domainLookupEnd-d.domainLookupStart>0&&(_.Fo("ndnss",d.domainLookupStart,void 0),_.Fo("ndnse",d.domainLookupEnd,void 0));d.connectEnd-d.connectStart>0&&(_.Fo("ntcps",d.connectStart,void 0),_.Fo("ntcpe",d.connectEnd,void 0));d.secureConnectionStart>=_.Eo()&&d.connectEnd-d.secureConnectionStart>0&&(_.Fo("nstcps",d.secureConnectionStart,void 0),_.Fo("ntcpe",d.connectEnd,void 0));_.Do&&"getEntriesByType"in
_.Do&&B7c();d=[];if(document.querySelector&&_.Do&&_.Do.getEntriesByName)for(var m in D7c)D7c.hasOwnProperty(m)&&(e=D7c[m],C7c(m,e)&&d.push(e));if(d.length>0)for(c.resourceInfo=[],m=_.h(d),d=m.next();!d.done;d=m.next())c.resourceInfo.push({resourceCache:d.value})}_.Go(c);c=_.Bo();c.preLoggedGelInfos||(c.preLoggedGelInfos=[]);m=c.preLoggedGelInfos;c=_.pCa();d=void 0;for(e=0;e<m.length;e++)if(g=m[e],g.loadType){d=g.loadType;break}if(_.nCa().loadType==="cold"&&(c.loadType==="cold"||d==="cold")){d=_.oCa();
e=_.Bo();e=e.gelTicks?e.gelTicks:e.gelTicks={};for(var n in d)if(!(n in e))if(typeof d[n]==="number")_.Fo(n,_.Ho(n));else if(_.w("log_repeated_ytcsi_ticks"))for(g=_.h(d[n]),k=g.next();!k.done;k=g.next())k=k.value,_.Fo(n.slice(1),k);n={};d=!1;m=_.h(m);for(e=m.next();!e.done;e=m.next())d=e.value,_.Hn(c,d),_.Hn(n,d),d=!0;d&&_.Go(n)}_.MCa(!0);n=_.Fi("TIMING_ACTION");_.Ji("ytglobal.timingready_")&&n&&_.WCa()&&_.LCa()&&_.FCa()})()};
A7c=function(a,b){return Array.prototype.reduce.call(a,b,{duration:0})};
D7c={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",
'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",
'script[name="mobile_blazer_watch_mod"]':"mbwj",'script[name="embed_client"]':"ecj",'link[rel="stylesheet"][name="embed-ui"]':"ecc"};var F7c={};F7c.YtVisibilityRootBehavior=[_.JNb.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.Xf(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.Fi("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var a=_.Fi("INNERTUBE_CLIENT_NAME")!=="WEB";_.w("kevlar_use_vimio_behavior")&&a&&_.LIb()}}];_.I6={};_.I6.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(a){a.detail.contextProvider=this;a.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
F7c.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.St();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(a){var b=this;this.pageCount+=1;_.w("kevlar_use_vimio_behavior")&&(_.Fi("INNERTUBE_CLIENT_NAME")==="WEB"?_.zk.addJob(function(){b.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(a)},
loadPage_:function(a){this.data=a},
ytPageBehaviorActiveObserver_:function(a){var b=this;_.w("kevlar_use_vimio_behavior")&&(a?_.Fi("INNERTUBE_CLIENT_NAME")==="WEB"?_.zk.addJob(function(){b.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(a){if(!this.setScrollTopJobId_){var b=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){b.setScrollTopJobId_=0;var c=_.v().resolve(_.Xi(_.Ct));c&&_.dWb(c);this.getPageScrollingElement().scrollTop=a}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.Ry(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var v7c;var w7c=function(){var a=_.P.apply(this,arguments)||this;a.playerListenerConfig=null;a.actionMap={"yt-show-watch-page-survey":"openSurvey"};return a};
_.z(w7c,_.P);_.f=w7c.prototype;_.f.dataChanged=function(){var a=this,b=_.au();b&&b.getPlayerPromise().then(function(d){a.maybeRemovePlayerListeners(d)});
var c=this.data&&this.data.survey;c&&((c=(c=c.singleOptionSurveyRenderer||c.checkboxSurveyRenderer||c.multiStageSurveyRenderer)&&c.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(b,c):this.openSurvey())};
_.f.triggerWatchPageSurvey=function(a,b){var c=this,d,e,g,k,m,n,r,t,u;return _.l(function(x){if(x.nextAddress==1)return a?_.p(x,a.getPlayerPromise(),2):x.return();c.player=x.yieldResult;if(!c.player)return x.return();d={};e=_.h(b);for(g=e.next();!g.done;g=e.next())k=g.value,m=_.h(c.createEventListenerPair(k)),n=m.next().value,r=m.next().value,t=n,u=r,t&&u&&(d[t]=u,c.ytPlayerListenerBehavior.listenToPlayerEvent(c.player,t,u));c.playerListenerConfig=d;_.ue(x)})};
_.f.createEventListenerPair=function(a){var b=a.playbackEventTrigger;return b?this.handlePlaybackTrigger(b):(a=a.watchTimeTrigger)?this.handleWatchTimeTrigger(a):[void 0,void 0]};
_.f.handleWatchTimeTrigger=function(a){var b=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var c=a.videoWatchFraction,d=a.watchTimeSec;return d&&c?["onVideoProgress",function(){b.player&&b.isWatchTimeConditionMet(b.player,c,d)&&b.showSurvey()}]:[void 0,
void 0]};
_.f.isWatchTimeConditionMet=function(a,b,c){var d=a.getProgressState(),e=d.current-this.lastKnownPlaybackPosition;e<5&&(this.accumulatedMediaTime+=e);this.lastKnownPlaybackPosition=d.current;d=Math.round(this.accumulatedMediaTime/d.duration*1E3)/1E3;return a.getPresentingPlayerType&&a.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>c||d>b)};
_.f.handlePlaybackTrigger=function(a){var b=this;a=a.playbackEvent;if(a==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var c="onStateChange";var d=function(e){e===0&&b.showSurvey()}}else a==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(c="onVideoProgress",d=function(e){b.player&&b.player.getPresentingPlayerType&&b.player.getPresentingPlayerType()===1&&e&&b.showSurvey()}):a==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(c="onAdEnd",d=this.showSurvey);
return[c,d]};
_.f.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.f.openSurvey=function(){var a=this,b=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.Rmc(!!b));_.zk.addJob(function(){a.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:b}})},0,0)};
_.f.maybeRemovePlayerListeners=function(a){if(this.playerListenerConfig){for(var b=_.h(Object.keys(this.playerListenerConfig)),c=b.next();!c.done;c=b.next())c=c.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(a,c,this.playerListenerConfig[c]);this.playerListenerConfig=null}};
var G6=w7c;G6.prototype.dataChanged=G6.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],G6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aI),_.W("design:type",Object)],G6.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.H(_.bJ.YtPlayerListenerBehavior),_.W("design:type",_.cJ)],G6.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],G6.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.OI),_.W("design:type",Object)],G6.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],G6.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],G6.prototype,"playerListenerConfig",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],G6.prototype,"lastKnownPlaybackPosition",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],G6.prototype,"accumulatedMediaTime",void 0);_.U([_.O(),_.W("design:type",Object)],G6.prototype,"player",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],G6.prototype,"dataChanged",null);G6=_.U([_.Q({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],G6);
_.S(G6,"ytd-survey-trigger-renderer",function(){if(v7c!==void 0)return v7c;var a=document.createElement("template");_.B(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-trigger-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return v7c=a},{mode:1});
}catch(e){_._DumpException(e)}
try{
var $bd=new _.X("promotedSparklesWebRenderer");var acd=new _.X("relatedChipCommand");var bcd;var ccd;var dcd=function(){return _.P.apply(this,arguments)||this};
_.z(dcd,_.P);dcd.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
var x8=dcd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],x8.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],x8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],x8.prototype,"data",void 0);x8=_.U([_.Q({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],x8);
_.S(x8,"ytd-compact-tvfilm-entry-point-renderer",function(){if(ccd!==void 0)return ccd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-tvfilm-entry-point-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-compact-tvfilm-entry-point-renderer"><span id="title" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.title)]]</span><span id="subtitle" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.subtitle)]]</span></div><div id="action-button" class="style-scope ytd-compact-tvfilm-entry-point-renderer"></div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return ccd=a},{mode:1});var ecd;var fcd;var gcd;var y8=function(){return _.P.apply(this,arguments)||this};
_.z(y8,_.P);y8.prototype.ready=function(){this.initializeDefs()};
y8.prototype.initializeDefs=function(){var a=this.meta.byKey("yt-icons"),b=_.E(a).querySelector("#star"),c=_.E(a).querySelector("#star_half");a=_.E(a).querySelector("#star_border");b&&this.defs.appendChild(b.cloneNode(!0));c&&this.defs.appendChild(c.cloneNode(!0));a&&this.defs.appendChild(a.cloneNode(!0))};
y8.prototype.percentChanged=function(){for(var a=this.rating;a.firstChild;)a.removeChild(a.firstChild);var b=Math.round(this.percent/10);a=Math.floor(b/2);b%=2;var c=5-a-b;this.appendStars("star",a,0);this.appendStars("star_half",b,a);this.appendStars("star_border",c,a+b)};
y8.prototype.appendStars=function(a,b,c){for(var d=0;d<b;d++){var e=(18+this.spacing)*(d+c),g=document.createElementNS("http://www.w3.org/2000/svg","use");_.Smc(g,"#"+a);g.setAttribute("x",""+e);g.setAttribute("y","0");this.rating.appendChild(g)}};
var z8=y8;z8.prototype.percentChanged=z8.prototype.percentChanged;_.U([_.ir("#defs"),_.W("design:type",HTMLElement)],z8.prototype,"defs",void 0);_.U([_.ir("#rating"),_.W("design:type",HTMLElement)],z8.prototype,"rating",void 0);_.U([_.O(),_.W("design:type",Number)],z8.prototype,"percent",void 0);_.U([_.O({value:6}),_.W("design:type",Number)],z8.prototype,"spacing",void 0);_.U([_.O({value:_.GC.create("iron-meta",{type:"iconset"})}),_.W("design:type",_.KD)],z8.prototype,"meta",void 0);
_.U([_.N("percent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],z8.prototype,"percentChanged",null);z8=_.U([_.Q({disableElementRegistration:!0,is:"ytd-ratings"})],z8);
_.S(z8,"ytd-ratings",function(){if(gcd!==void 0)return gcd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ratings--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg id="svg" width="90px" height="18px" viewBox="0 0 120 24" class="style-scope ytd-ratings">\n  <defs id="defs" class="style-scope ytd-ratings">\n  </defs>\n  <g id="rating" class="style-scope ytd-ratings"></g>\n</svg>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return gcd=a},{mode:1});var hcd=function(){return _.P.apply(this,arguments)||this};
_.z(hcd,_.P);var icd=hcd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],icd.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],icd.prototype,"data",void 0);icd=_.U([_.Q({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],icd);
_.S(icd,"ytd-offer-review-renderer",function(){if(fcd!==void 0)return fcd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-review-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ratings percent="[[data.percent]]" class="style-scope ytd-offer-review-renderer"></ytd-ratings>\n<yt-formatted-string text="[[data.score]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n-\n<yt-formatted-string link-inherit-color="" text="[[data.source]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return fcd=a},{mode:1});var jcd=function(){var a=_.P.apply(this,arguments)||this;a.badges=[{textBadge:{label:_.Vp("CC")}}];return a};
_.z(jcd,_.P);_.f=jcd.prototype;_.f.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.f.dataChanged=function(){var a=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(a&&a.commandMetadata&&_.y(a.commandMetadata,_.KE)&&_.y(a.commandMetadata,_.KE).fireAutomatically)_.v().resolve(_.Yi).resolveCommand(a,{form:{element:this.hostElement}});else{var b;a&&((b=_.y(a,_.KE))==null?0:b.fireAutomatically)&&_.v().resolve(_.Yi).resolveCommand(a,{form:{element:this.hostElement}})}};
_.f.isEmptyContent=function(a){return this.isStorefrontEntryPointEmpty(a)&&this.shouldHideOfferModule(a)};
_.f.isStorefrontEntryPointEmpty=function(a){return!a||!a.storefrontEntryPoint};
_.f.shouldHideOfferModule=function(a){return!!a.hideVideoDetails};
_.f.isOfferModuleNavigationInactive=function(a){return!a.navigationEndpoint&&!a.serviceEndpoint};
_.f.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.v().resolve(_.Yi).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
var A8=jcd;A8.prototype.dataChanged=A8.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],A8.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],A8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],A8.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.W("design:type",Boolean)],A8.prototype,"hidden",void 0);
_.U([_.O(),_.W("design:type",Object)],A8.prototype,"badges",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],A8.prototype,"dataChanged",null);A8=_.U([_.Q({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],A8);
_.S(A8,"ytd-movie-offer-module-renderer",function(){if(ecd!==void 0)return ecd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module-container" hidden="[[shouldHideOfferModule(data)]]" class="style-scope ytd-movie-offer-module-renderer">\n  <div id="header" class="style-scope ytd-movie-offer-module-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-offer-module-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string id="manage-purchase-text" link-inherit-color="" text="[[data.managePurchasesText]]" class="style-scope ytd-movie-offer-module-renderer">\n    </yt-formatted-string>\n  </div>\n  <a aria-label$="[[getSimpleString(data.title)]]" id="wide-clickable-area" class="yt-simple-endpoint flexed style-scope ytd-movie-offer-module-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" inactive$="[[isOfferModuleNavigationInactive(data)]]" on-tap="maybeNavigateWithServiceEndpoint">\n    <yt-img-shadow id="img" thumbnail="[[data.thumbnail]]" class="style-scope ytd-movie-offer-module-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-movie-offer-module-renderer">\n      <template is="dom-if" if="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-if" if="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="details" split-lines="true" text="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-repeat" items="[[data.reviews]]" as="review" class="style-scope ytd-movie-offer-module-renderer">\n        <ytd-offer-review-renderer data="[[review.offerReviewRenderer]]" class="style-scope ytd-movie-offer-module-renderer"></ytd-offer-review-renderer>\n      </template>\n      <template is="dom-repeat" items="[[data.attributes]]" as="attribute" class="style-scope ytd-movie-offer-module-renderer">\n        <p class="style-scope ytd-movie-offer-module-renderer">\n          <template is="dom-if" if="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer">\n            <yt-formatted-string text="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>:\n          </template>\n          <yt-formatted-string ellipsis-truncate="" link-inherit-color="" text="[[attribute.value]]" title="[[getSimpleString(attribute.value)]]" class="style-scope ytd-movie-offer-module-renderer">\n          </yt-formatted-string>\n        </p>\n      </template>\n     <ytd-badge-supported-renderer badges="[[badges]]" hidden="[[!data.showCc]]" class="style-scope ytd-movie-offer-module-renderer">\n     </ytd-badge-supported-renderer>\n    </div>\n  </a>\n</div>\n<div id="storefront-entry-point" hidden="[[isStorefrontEntryPointEmpty(data)]]" class="style-scope ytd-movie-offer-module-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return ecd=a},{mode:1});var kcd;var lcd=function(){return _.P.apply(this,arguments)||this};
_.z(lcd,_.P);var mcd=lcd;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],mcd.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],mcd.prototype,"data",void 0);mcd=_.U([_.Q({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],mcd);
_.S(mcd,"ytd-media-masthead-renderer",function(){if(kcd!==void 0)return kcd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-media-masthead-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n      <div id="image" class="style-scope ytd-media-masthead-renderer">\n        <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n      </div>\n      <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n        <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n          <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n        </template>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n    <div id="image" class="style-scope ytd-media-masthead-renderer">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n    </div>\n    <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n      <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n        <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return kcd=a},{mode:1});var ncd;_.Ts(_.fac,"course-metadata-view-model",{props:{data:_.Ss,isOverlay:_.Ss}});var ocd=function(){var a=_.P.apply(this,arguments)||this;a.isMetadataVisible=!1;a.modernPanels=_.w("kevlar_watch_modern_panels");a.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return a};
_.z(ocd,_.P);_.f=ocd.prototype;
_.f.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.expandMetadataButton":{id:"expand-metadata-button",mapping:{toggleButtonViewModel:{component:"yt-toggle-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.masthead":{id:"masthead",mapping:{mediaMastheadRenderer:{component:"ytd-media-masthead-renderer"},channelMastheadRenderer:{component:"ytd-channel-masthead-renderer",params:{isInOfferModule:!0}}}},
"data.expandedMetadata":{id:"expanded-metadata",mapping:{courseMetadataViewModel:{component:"course-metadata-view-model"}}}}};
_.f.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.f.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.f.expanderChanged=function(){var a;if((a=this.data)==null?0:a.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.f.isExpandButtonToggled=function(){var a,b;return(b=_.y((a=this.data)==null?void 0:a.expandMetadataButton,_.Ju))==null?void 0:b.isToggled};
_.f.onVisibilityButtonClick=function(){var a;if((a=this.data)==null?0:a.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.f.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
var B8=ocd;B8.prototype.expanderChanged=B8.prototype.expanderChanged;B8.prototype.dataChanged=B8.prototype.dataChanged;B8.prototype.descriptionChanged=B8.prototype.descriptionChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],B8.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],B8.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H([_.eH.YtActionHandlerBehavior]),_.W("design:type",Object)],B8.prototype,"actionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],B8.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],B8.prototype,"isMetadataVisible",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],B8.prototype,"modernPanels",void 0);_.U([_.ir("#expander"),_.W("design:type",Object)],B8.prototype,"expander",void 0);
_.U([_.N("data.description"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B8.prototype,"descriptionChanged",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B8.prototype,"dataChanged",null);_.U([_.N("isMetadataVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B8.prototype,"expanderChanged",null);
B8=_.U([_.Q({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],B8);
_.S(B8,"ytd-tvfilm-offer-module-renderer",function(){if(ncd!==void 0)return ncd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="header" hidden="[[!data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="title" text="[[data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-formatted-string>\n  <div id="expand-metadata-button" on-click="onVisibilityButtonClick" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n</h2>\n\n<div id="masthead" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<div id="action-buttons" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="3" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="description" slot="content" disable-upgrade$="[[!data.description]]" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-tvfilm-offer-module-renderer" slot="more-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="expand-more-icon" icon="yt-icons:expand-more" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-tvfilm-offer-module-renderer" slot="less-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="expand-less-icon" icon="yt-icons:expand-less" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n\n<div id="expanded-metadata" hidden="[[!isMetadataVisible]]" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return ncd=a},{mode:2});var pcd;var C8=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return a};
_.z(C8,_.P);C8.prototype.dataChanged=function(){this.hostElement.hidden=!1};
C8.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
C8.prototype.onThumbnailTap=function(a){this.data&&this.data.serviceEndpoint&&(_.w("web_ytd_unlimited_offer_module_renderer_command_resolver_ks")?_.oo(this.hostElement,[this.data.serviceEndpoint]):_.v().resolve(_.Yi).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),a.stopPropagation())};
C8.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
var D8=C8;D8.prototype.dataChanged=D8.prototype.dataChanged;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],D8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],D8.prototype,"rendererBehaviors",void 0);_.U([_.H([_.eH.YtActionHandlerBehavior]),_.W("design:type",Object)],D8.prototype,"actionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],D8.prototype,"data",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D8.prototype,"dataChanged",null);D8=_.U([_.Q({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],D8);
_.S(D8,"ytd-unlimited-offer-module-renderer",function(){if(pcd!==void 0)return pcd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-checkout-offers" class="style-scope ytd-unlimited-offer-module-renderer">\n  <div id="header" class="style-scope ytd-unlimited-offer-module-renderer">\n    <div id="title-section" class="style-scope ytd-unlimited-offer-module-renderer">\n      <yt-formatted-string id="main-title" text="[[data.title]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n      <yt-formatted-string id="sub-title" text="[[data.subtitle]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n    </div>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" class="style-scope ytd-unlimited-offer-module-renderer">\n    </ytd-button-renderer>\n  </div>\n  <ytd-thumbnail id="thumbnail" data="[[data]]" hidden$="[[!data.thumbnail]]" width="402" on-click="onThumbnailTap" class="style-scope ytd-unlimited-offer-module-renderer">\n  </ytd-thumbnail>\n  <div id="storefront-entry-point" hidden="[[!data.storefrontEntryPoint]]" class="style-scope ytd-unlimited-offer-module-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return pcd=a},{mode:1});var qcd;var rcd;var scd=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return a};
_.z(scd,_.P);scd.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
scd.prototype.handleRelatedChipCommand=function(a){a=_.y(a,acd);var b=a.contents;b?_.mo(this.hostElement,"yt-item-section-replace-action",[b,a.targetSectionIdentifier]):_.mo(this.hostElement,"yt-item-section-continuation-action",[a.continuationData,a.targetSectionIdentifier])};
var E8=scd;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],E8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],E8.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],E8.prototype,"actionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],E8.prototype,"data",void 0);E8=_.U([_.wr({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],E8);
_.S(E8,"yt-related-chip-cloud-renderer",function(){if(rcd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-related-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_related_chip_cloud_renderer.yt.related.chip.cloud.renderer.css.js--\x3e<div id="content" class="style-scope yt-related-chip-cloud-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;qcd===void 0&&(qcd=document.createElement("template"));var d=qcd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);rcd=a}a=rcd;return a},{mode:2});var F8=function(){var a=_.P.apply(this,arguments)||this;a.isTwoColumns=!0;a.hideOfferModules=!1;a.watchFeedBigThumbs=_.w("kevlar_watch_feed_big_thumbs");a.watchNextGridHideChips=_.w("kevlar_watch_grid_hide_chips");a.eligibleToSwitchToGrid=_.w("web_watch_eligible_to_switch_to_grid");a.disableShortsShelfHeightOverride=_.w("web_shorts_wn_shelf_ratio_tuning");a.isWatchNextGrid=!1;a.reuseComponents=!_.w("kevlar_watch_grid");a.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return a};
_.z(F8,_.P);_.f=F8.prototype;
_.f.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.w("web_watch_grid_resize_on_observer_init_killswitch")}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[showButton]]"}}}},"data.continuations":{id:"continuations",
mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}},renderPriority:0}}};
_.f.getItemsPath=function(){return"data.results"};
_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.f.created=function(){this.ytLazyListBehavior.initialCount=1};
_.f.ready=function(){_.fr(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-10-percent-layer)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.f.resultsChanged=function(){if(this.data&&this.data.results){for(var a=this.data.results,b=null,c=null,d=0;d<a.length;d++)a[d].relatedChipCloudRenderer?b=a[d].relatedChipCloudRenderer:a[d].itemSectionRenderer&&(c=a[d].itemSectionRenderer);if(b&&c)for(this.set("data.continuations",[]),a=_.y(b.content,_.EEb).chips,b=0;b<a.length;b++)if(d=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",a[b]),d.loadCached||!d.contents){d.contents=c.contents;break}}};
_.f.dataChanged=function(){var a=this,b;if((b=this.data)!=null&&b.results&&this.hasAllowedInstreamAd(this.playerData)){if(b=this.data.results.filter(function(m){return!!m.promotedSparklesWebRenderer})){for(var c=0;c<b.length;c++){var d=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",b[c]);
if(d)for(var e=0;e<d.length;e++)d[e]&&d[e].baseUrl&&_.Jk(d[e].baseUrl)}this.set("data.results",this.data.results.filter(function(m){return!m.promotedSparklesWebRenderer}))}if(b=this.data.results.filter(function(m){return!!a.getSparklesAd(m)})){b=_.h(b);
for(e=b.next();!e.done;e=b.next())if(d=c=void 0,e=(c=this.getSparklesAd(e.value))==null?void 0:(d=c.errorCommand)==null?void 0:d.loggingUrls)for(c=_.h(e),d=c.next();!d.done;d=c.next())(d=d.value)&&d.baseUrl&&_.Jk(d.baseUrl);var g,k;this.set("data.results",(g=this.data)==null?void 0:(k=g.results)==null?void 0:k.filter(function(m){return!m.adSlotRenderer}))}}};
_.f.getSparklesAd=function(a){var b,c;a=_.y((b=a.adSlotRenderer)==null?void 0:(c=b.fulfillmentContent)==null?void 0:c.fulfilledLayout,_.bzb);return _.y(a==null?void 0:a.renderingContent,$bd)};
_.f.hasAllowedInstreamAd=function(a){a=this.get("adPlacements",a)||[];for(var b=0;b<a.length;b++){var c=this.get("adPlacementRenderer.config.adPlacementConfig",a[b]);if(c&&c.suppressDisplayAd)return!0}return!1};
_.f.computeHideUnlimitedOfferModule=function(a,b){return a&&a.offerModule&&b&&a.offerModule.unlimitedOfferModuleRenderer&&a.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(b)?!0:!1};
_.f.hideUnlimitedOfferModuleChanged=function(){var a=_.E(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");a&&(a.hidden=this.hideUnlimitedOfferModule)};
_.f.updateLockupContainerTypes=function(a){if(this.eligibleToSwitchToGrid){var b;(b=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||b.forEach(function(c){c.containerType=a})}};
_.f.computeHideTvfilmOfferModule=function(a,b){var c,d;return!!((a==null?0:(c=a.offerModule)==null?0:(d=c.tvfilmOfferModuleRenderer)==null?0:d.clientShouldSuppressIfCompanionAdDisplayed)&&b&&this.hasCompanionAds(b))};
_.f.hideTvfilmOfferModuleChanged=function(){var a=_.E(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");a&&(a.hidden=this.hideTvfilmOfferModule)};
_.f.hasCompanionAds=function(a){a=this.get("adPlacements",a)||[];for(var b=0;b<a.length;b++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",a[b]))return!0;var c=void 0,d=void 0,e=void 0;if(!_.w("web_watch_top_banner_companion_check_killswitch")&&((c=a[b])==null?0:(d=c.adPlacementRenderer)==null?0:(e=d.renderer)==null?0:e.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.f.hasSuppressedResults=function(a){return a==null?!0:a.filter(function(b){return!b.continuationItemRenderer&&!b.compactPromotedVideoRenderer&&!b.promotedSparklesWebRenderer}).length===0};
_.f.computeShowButton=function(a,b){return this.isWatchNextGrid?a:a||this.hasSuppressedResults(b)};
_.f.showButtonChanged=function(){if(this.isWatchNextGrid){var a=_.E(this.hostElement).querySelector("ytd-rich-grid-renderer");a&&this.showButton!==null&&(a.continuationShowButton=this.showButton)}else{a=_.E(this.hostElement).querySelector("yt-next-continuation");var b=_.E(this.hostElement).querySelector("ytd-continuation-item-renderer"),c=_.E(this.hostElement).querySelector("ytd-item-section-renderer");a&&(a.showButton=this.showButton);b&&(b.showButton=this.showButton);c&&(c.continuationShowButton=
this.showButton)}};
_.f.continuationTap=function(a){var b;if(((b=this.data)==null?void 0:b.continuations)!=null&&a.target.tagName==="TP-YT-PAPER-BUTTON")for(a=this.data.continuations,b=0;b<a.length;b++)a[b].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(a[b].nextContinuationData||{})};
_.f.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.WH("shown-items-changed",this.shownItems))};
_.Um.Object.defineProperties(F8.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid&&this.containsLockupViewModel?this.isGridViewEnabled?2:3:3}},
containsLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.shownItems)==null||!a.some(function(b){return!!b.lockupViewModel}))}}});
F8.prototype.shownItemsChangedForBinding=F8.prototype.shownItemsChangedForBinding;F8.prototype.showButtonChanged=F8.prototype.showButtonChanged;F8.prototype.hideTvfilmOfferModuleChanged=F8.prototype.hideTvfilmOfferModuleChanged;F8.prototype.updateLockupContainerTypes=F8.prototype.updateLockupContainerTypes;F8.prototype.hideUnlimitedOfferModuleChanged=F8.prototype.hideUnlimitedOfferModuleChanged;F8.prototype.dataChanged=F8.prototype.dataChanged;F8.prototype.resultsChanged=F8.prototype.resultsChanged;
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],F8.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],F8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.kJ.YtLazyListBehavior),_.W("design:type",Object)],F8.prototype,"ytLazyListBehavior",void 0);_.U([_.H(_.XM.YtNextContinuationBehavior),_.W("design:type",Object)],F8.prototype,"ytNextContinuationBehavior",void 0);
_.U([_.H(_.WM),_.W("design:type",Object)],F8.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],F8.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],F8.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],F8.prototype,"playerData",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],F8.prototype,"autoFill",void 0);_.U([_.O({value:60}),_.W("design:type",Number)],F8.prototype,"targetFramerate",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],F8.prototype,"isTwoColumns",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],F8.prototype,"hideOfferModules",void 0);_.U([_.O(),_.W("design:type",Object)],F8.prototype,"shownItems",void 0);_.U([_.O({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.W("design:type",Boolean)],F8.prototype,"hideUnlimitedOfferModule",void 0);
_.U([_.O({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.W("design:type",Boolean)],F8.prototype,"hideTvfilmOfferModule",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],F8.prototype,"watchFeedBigThumbs",void 0);_.U([_.O(),_.W("design:type",Object)],F8.prototype,"watchNextGridHideChips",void 0);_.U([_.O(),_.W("design:type",Object)],F8.prototype,"eligibleToSwitchToGrid",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],F8.prototype,"disableShortsShelfHeightOverride",void 0);_.U([_.O({selector:_.Su}),_.W("design:type",Object)],F8.prototype,"isGridViewEnabled",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],F8.prototype,"showMoreButton",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],F8.prototype,"isWatchNextGrid",void 0);
_.U([_.O({computed:"computeShowButton(showMoreButton, data.results)"}),_.W("design:type",Boolean)],F8.prototype,"showButton",void 0);_.U([_.mr("data.results.*"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F8.prototype,"resultsChanged",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F8.prototype,"dataChanged",null);
_.U([_.N("hideUnlimitedOfferModule"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F8.prototype,"hideUnlimitedOfferModuleChanged",null);_.U([_.K("isGridViewEnabled","containsLockupViewModel","data"),_.O({reflectToAttribute:!0}),_.W("design:type",Number),_.W("design:paramtypes",[])],F8.prototype,"lockupContainerType",null);
_.U([_.N("lockupContainerType","data"),_.W("design:type",Function),_.W("design:paramtypes",[Number]),_.W("design:returntype")],F8.prototype,"updateLockupContainerTypes",null);_.U([_.N("hideTvfilmOfferModule"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F8.prototype,"hideTvfilmOfferModuleChanged",null);_.U([_.N("showButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F8.prototype,"showButtonChanged",null);
_.U([_.N("shownItems"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F8.prototype,"shownItemsChangedForBinding",null);_.U([_.K("shownItems"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],F8.prototype,"containsLockupViewModel",null);
_.S(F8,"ytd-watch-next-secondary-results-renderer",function(){if(bcd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);bcd=a}a=bcd;return a},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Vmd={};
_.Vmd.YtdWatchBehavior=[_.Z.YtRendererBehavior,_.bJ.YtPlayerListenerBehavior,_.dH.YtRendererstamperBehavior,_.eH.YtActionHandlerBehavior,_.I6.YtPageBehavior,_.qH.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},
conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,
value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Gi("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.w("web_watch_provide_secondary_results_renderer")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.Gi("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.w("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded, fullscreen)"},richItemMinWidth:{type:Number,value:function(){return _.$i("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.$i("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.w("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.w("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("web_watch_fullerscreen_deprecation_ui")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.w("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.w("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.w("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("web_watch_full_bleed_no_max_width_columns")}},
fixedPanels:{type:Boolean,reflectToAttribute:!0},panelsBesidePlayer:{type:Boolean,reflectToAttribute:!0},watchWhileWider:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var a={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",
mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.PW(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.PW(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},
microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}};this.is!=="ytd-watch-grid"||_.w("swa_prov_panels_ks")?_.w("web_watch_inject_placeholder_panels")?a.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:_.w("kevlar_use_engagement_panel_management_component")||
(a["data.engagementPanels"]={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}):(a.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},a.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});
return a},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-set-playlist-collapsed":"onSetPlaylistCollapsed","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var a=this;this.watchController=void 0;this.pageDisposeJobs=[function(){a.showMetadataPlaceholder_()},
function(){_.w("web_watch_dont_clear_comments")||a.clearComments_()},
function(){a.clearPlayerAds_()},
function(){a.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.w("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.w("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.Fmd(function(){return _.$t(a)},this.hostElement);
this.pageDisposeJobs.push(function(){a.youThereManager_.reset()});
_.w("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){a.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.sD;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",
this.onAdStateChange_);this.playerEvents_.set("onStateChange",this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;_.w("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.w("kevlar_watch_flexy_theater_manager")||(this.actionMap["yt-toggle-theater-mode"]="setTheaterModeRequested",this.actionMap["yt-is-theater"]="isTheater_",this.playerEvents_.set("SIZE_CLICKED",this.setTheaterModeRequested));_.w("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.gr(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(a){a&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:a}),a.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(a){_.w("kevlar_watch_flexy_theater_manager")&&(this.theater=a,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(a){!_.w("kevlar_watch_while_v2")&&!_.w("web_watch_pip")||a||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(a){this.active!==void 0&&(this.fullscreen=a,_.w("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(a){this.active!==void 0&&(_.io(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.w("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.w("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(a>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(a){this.initCsi_();this.updatePageData_(a)},
updatePageData_:function(a){var b=this;if(a)if(this.data===a){this.onPageLoadWithSameData_();var c;(c=this.watchController)==null||_.N$(c,this.data)}else this.data=a;this.playlist&&_.Jo({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Lo("nw");this.loading=!1;_.sl(_.zk,function(){b.initDclkstatus_();var d,e=((d=b.player)==null?void 0:d.getVideoData().cpn)||"";_.pmd(function(g,k){_.dsc(g,k,e)})})},
onPageLoadWithSameData_:function(){_.w("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var a=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!a);this.set("loadingData.playlistLoading",a&&a!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),a=this.watchNextSkeletonEl_.firstElementChild;a;)a.classList.remove("hidden"),a=a.nextElementSibling;if(_.w("kevlar_watch_frame0_loading_state")){var b,c,d;a=(b=this.loadingData)==null?void 0:(c=b.endpoint)==null?void 0:(d=c.watchEndpoint)==null?void 0:d.videoId;var e;a&&(e="https://i.ytimg.com/vi/"+a+"/frame0.jpg");_.E(this.hostElement).querySelector("#player").style.backgroundImage=e?"url("+e+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var a=_.E(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&a&&(a.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var b,c;(c=(b=this.watchMetadata).updateSentimentBarWidth)==
null||c.call(b);var d,e;(e=(d=this.watchMetadata).resize)==null||e.call(d)}_.w("kevlar_watch_frame0_loading_state")&&(_.E(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(a){var b=_.E(this.hostElement).querySelector(a);b?_.go(b,!1):_.Dl(new _.qj("Overscroll monitor not found for component: ",a))},
removeSplitScrollMouseTrap:function(a){var b=_.E(this.hostElement).querySelector(a);b?_.ho(b):_.Dl(new _.qj("Disposal component for  overscroll monitoring not found: ",a))},
onLoadingChanged_:function(a){a?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(a){var b=this;a?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.zk.addLowPriorityJob(function(){b.onWindowResized_(_.tq(!0))})},
updateTheaterModeState_:function(a){if(!_.w("kevlar_watch_flexy_theater_manager")){a=a||this.fullWindowMode_;if(this.theater!==void 0||a)this.theater=a;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();a&&_.vcd()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var a=this.theater;_.w("external_fullscreen")&&this.fullscreen&&(a=!0);a=a?_.E(this.hostElement).querySelector("#player-full-bleed-container"):_.E(this.hostElement).querySelector("#player-container-inner");var b=this.getPlayerContainer(),c=_.w("kevlar_watch_while_v2")||_.w("web_watch_pip");b.parentElement!==a&&(c&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.$t(this).appendTo(a,b),a.appendChild(_.E(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var a=this;return _.l(function(b){if(b.nextAddress==1)return _.p(b,_.v().resolve(_.$w).deactivate(),2);a.updatePlayerLocation();_.ue(b)})},
updateCinematicsLocation:function(){var a=this.getElement("CINEMATICS");if(a){var b=this.getCinematicsLocationContainer();a.parentElement!==b&&b.appendChild(a);var c;(c=this.watchController)==null||_.lmd(c)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.E(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.E(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(a,b){var c=document.documentElement.hasAttribute("dark"),d=c&&_.w("web_cinematic_theater_mode"),e=c&&_.w("web_cinematic_fullscreen");c=!c&&this.cinematicLightTheme;return a&&d||b&&e||(b||a)&&c},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var a=this,b;(b=this.watchController)==null||_.N$(b,this.data);_.w("kevlar_watch_flexy_comments_manager")||this.initComments_();_.w("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.v().resolve(_.TF).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=!0,this.visiblePanelIdentifiers_.clear(),
this.engagementPanelExpanded=!1,_.w("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.zk.addLowPriorityJob(function(){_.mo(a.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.w("web_watch_start_chat_in_theater_mode")){var c,d,e;if((c=this.data)==null?0:(d=c.contents)==null?0:(e=d.twoColumnWatchNextResults)==null?0:e.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var g,k;((g=this.data)==null?0:(k=g.contents)==null?0:k.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(a){var b;(b=this.watchController)==null||_.M$(b,this.playerData);a&&a.playabilityStatus&&(b=this.isVideoPlayable_(a.playabilityStatus,this.getPlayerOverlays_(this.data)),a=this.isLiveStreamOffline_(a.playabilityStatus),b&&!a||_.Qm(this,function(){_.Lo("pbu")}));
this.setPlayerAds_();_.mo(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(a,b){if((_.w("kevlar_watch_while_v2")||_.w("web_watch_pip"))&&this.playerData&&b)return this.playerData.videoDetails},
watchPageActiveChanged_:function(a){_.Yp().dispatch(_.Add(this.active));a?this.activate_():this.deactivate_()},
attached:function(){var a=this;this.watchController=new _.L$(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&_.M$(this.watchController,this.playerData);this.data&&_.N$(this.watchController,this.data);_.w("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var b=_.$t(this);_.w("kevlar_disable_prepare_player")||b.preparePlayer();
_.w("kevlar_watch_flexy_playlist_manager")||_.v().resolve(_.TF).setPlayer(b);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();b={"--ytd-watch-flexy-scrollbar-width":_.LW()+"px"};this.is==="ytd-watch-grid"&&(b["--ytd-watch-flexy-sidebar-width"]=_.O8+"px",b["--ytd-watch-flexy-sidebar-min-width"]=_.$i("kevlar_watch_grid_sidebar_min_width",300)+"px",b["--ytd-watch-grid-horizontal-page-margins"]=_.M8+"px",b["--ytd-watch-grid-columns-top-margins"]=_.qed+"px",b["--ytd-watch-grid-min-player-height-medium"]=
"360px");!_.$i("kv_pl_mx_sz_ks")&&_.$i("kevlar_watch_max_player_width")&&(b["--ytd-watch-flexy-max-player-width-wide-screen"]=_.wed+"px");_.$i("kevlar_watch_flexy_metadata_height")&&(b["--ytd-watch-flexy-space-below-player"]=_.xed+"px");this.safeUpdateStyles(b);_.w("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.hgd(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return a.onPlayerTouchPanDown_()}}));
_.w("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.E(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var a=_.LW(),b=_.N8+a,c=b;this.fixedPanels&&(b+=_.O8);var d=657+a;a=1327+a;_.E(this.hostElement).querySelector("#two-column-query").query="(min-width: "+b+"px)";_.E(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(d+"px), (min-height: 630px) and (min-width: ")+(b+"px) and (max-width: ")+(a+"px)");_.E(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(a+"px)");_.E(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+c+"px)"},
calculateCurrentPlayerSize_:function(){var a=_.E(this.hostElement).querySelector("#miniplayer-bar").firstChild;return a&&a.active||this.theater||_.w("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||!this.active||!this.windowSize_?new _.rf(NaN,NaN):_.wmd(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.wmd(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Xf(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var a=this;this.onWindowResized_(_.tq());_.w("browse_skeleton_removal_on_watch_killswitch")||_.Gi("IS_SHELL_LOAD")&&_.u7c();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var b=_.$t(this);b.addEventListener("yt-player-updated",_.gr(this,this.onPlayerUpdated_));b.getPlayerPromise().then(function(c){a.playerApiReady_(c)});
_.w("kevlar_watch_flexy_playlist_manager")||(b=_.v().resolve(_.TF),_.w("kevlar_watch_observe_playlist_navigations_killswitch")&&b.addEventListener("yt-navigate",_.gr(this,this.onYtNavigate_)),b.setPlaylistComponent(_.E(this.hostElement).querySelector("#playlist")),b.addEventListener("yt-playlist-data-updated",_.gr(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.zk.addLowPriorityJob(function(){_.io(a.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.$t(this).removeEventListener("yt-player-updated",_.gr(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.w("kevlar_watch_flexy_playlist_manager")){var a=_.v().resolve(_.TF);_.w("kevlar_watch_observe_playlist_navigations_killswitch")&&a.removeEventListener("yt-navigate",_.gr(this,this.onYtNavigate_));
a.cancelVideoSkip();a.removeEventListener("yt-playlist-data-updated",_.gr(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.w("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.io(this.hostElement,"yt-autonav-pause-player",!1);a=_.eo();_.w("kevlar_exit_fullscreen_leaving_watch")&&a&&_.fo(a)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(a){this.player&&this.player.updateVideoData({rvs:a.rvs})},
getPageContents:function(a){return a&&a.contents&&a.contents.twoColumnWatchNextResults&&a.contents.twoColumnWatchNextResults.results&&a.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(a){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",a)},
onRetrieveLocation_:function(a,b){b.hasComments?b.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):b.locationRetrieved("/related_ajax",void 0);a.stopPropagation()},
onSubscriptionChanged_:function(a,b){this.player&&(b?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.E7c("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.E(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.E(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(a){this.player=a;this.setPlayerState(a.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.w("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.w("kevlar_unified_player")||_.w("kevlar_player_new_bootstrap_adoption"))&&_.iw()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(a,b){b=b===void 0?!0:b;_.eo()&&_.w("external_fullscreen")&&_.fo(document.documentElement);this.theaterRequested_=a;b&&_.mj("wide",a?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.lo(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.io(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(a){_.El(a,typeof this.player),this.player&&_.El(a,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var a;((a=this.player)==null?0:a.isFullscreen())?this.player.toggleFullscreen():_.lo(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(a,b){return this.loading?b:!!Object.keys(a).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(a){if(a){a=_.h(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b.youThereRenderer&&_.Imd(this.youThereManager_,b.youThereRenderer)}},
setPlaylistData_:function(a){return a||{}},
userEngagementConfigDataChanged_:function(a){if(a)if(a.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var b=this.youThereManager_;_.Yk()<a.lowEngagementThresholdMs||_.Mmd(b,!0)}else a.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.lo(this.hostElement,"yt-autonav-pause-user-engagement",[a])},
isPlayerUnavailable_:function(a,b,c){return!!a&&!this.isVideoPlayable_(a,c)&&!b},
getPlayerOverlays_:function(a){return(a==null?void 0:a.playerOverlays)||null},
isVideoPlayable_:function(a,b){if(!a)return!1;var c=a.status==="OK"||a.status==="LIVE_STREAM_OFFLINE",d=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",a)||this.get("errorScreen.ypcTrailerRenderer",a);a=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",a);var e;b=b==null?void 0:(e=b.playerOverlayRenderer)==null?void 0:e.gatedActionsOverlayRenderer;return!!c||!!d||!!a||!!b},
hasWatchNextResponseErrorRenderer:function(a){var b=this.getPageContents(a),c,d,e,g,k;return!(a==null?0:(c=a.contents)==null?0:(d=c.twoColumnWatchNextResults)==null?0:d.secondaryResults)&&!!((e=b[0])==null?0:(g=e.itemSectionRenderer)==null?0:(k=g.contents[0])==null?0:k.backgroundPromoRenderer)},
isLiveStreamOffline_:function(a){return a?a.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(a,b,c){var d=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",b),e=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];e=_.w("web_no_skip_video_on_verification_checks")?(a==null?void 0:a.status)&&e.includes(a.status):a&&a.status==="AGE_CHECK_REQUIRED";var g=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",a);g==void 0&&(g=!0);!c||this.isVideoPlayable_(a,this.getPlayerOverlays_(b))||
d||e||!g||_.v().resolve(_.TF).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.ymd()},
onPlayerFeedbackStartRequest_:function(a){_.lo(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:a}])},
onPlayerFeedbackArticleRequest_:function(a){_.lo(this.hostElement,"yt-help-dialog-requested",[a])},
onPlayerYpcContentRequest_:function(){var a,b,c,d,e,g,k,m,n=((a=this.data)==null?NaN:(b=a.contents)==null?NaN:(c=b.twoColumnWatchNextResults)==null?NaN:(d=c.secondaryResults)==null?NaN:(e=d.secondaryResults)==null?NaN:(g=e.offerModule)==null?NaN:(k=g.tvfilmOfferModuleRenderer)==null?NaN:(m=k.actionButtons)==null?NaN:m.length)-1;a=[".offerButton.buttonRenderer.",".actionButtons."+(n>=0?n:0)+".buttonRenderer."];b=_.h(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(c=b.next();!c.done;c=b.next())for(c=c.value,d=_.h(a),e=d.next();!e.done;e=d.next())if(e="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+c+e.value,e=this.get(e+"navigationEndpoint",this.data)||this.get(e+"serviceEndpoint",this.data)||this.get(e+"command",this.data)){_.hs(e,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(a){_.io(this.hostElement,"yt-autonav-pause-player",a)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(a){a()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(a){switch(a){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(a){switch(a){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.io(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(a)},
setPlayerState:function(a){_.Yp().dispatch(_.XJb(a))},
onPlayerSubscribe_:function(a){_.lo(this.hostElement,"yt-player-subscribe",[a])},
onPlayerUnsubscribe_:function(a){_.lo(this.hostElement,"yt-player-unsubscribe",[a])},
onPlayerAdYtShowToast_:function(a){_.lo(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:a.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(a){if(a)return a},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.swatcherooBinaryLayout?this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue:this.isTwoColumns_?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowRichGridContinuationButton:function(){return this.is!=="ytd-watch-grid"?!1:this.commentTeaserEnabled?this.swatcherooBinaryLayout?!1:!this.commentsEntryPointHeaderRenderer:!this.isTwoColumns_},
computeShowExpandableMetadata:function(a){return!_.w("web_watch_move_summary_to_sd")&&!!a},
computeWatchMetadataRefresh:function(){return _.w("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.w("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var a,b,c,d;this.watchNextSecondaryResults=(a=this.data)==null?void 0:(b=a.contents)==null?void 0:(c=b.twoColumnWatchNextResults)==null?void 0:(d=c.secondaryResults)==null?void 0:d.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.w("swatcheroo_pbs_load_grid")&&!_.w("swatcheroo_provide_all_data_on_scheduled_job")){_.zk.cancelJob(this.setRichGridJobId_);var a,b,c,d,e,g,k;this.setRichGridRendererData((a=this.data)==null?void 0:(b=a.contents)==null?void 0:(c=b.twoColumnWatchNextResults)==null?void 0:(d=c.secondaryResults)==null?void 0:(e=d.secondaryResults)==null?void 0:(g=e.results)==null?void 0:(k=g[0])==null?
void 0:k.richGridRenderer)}},
setRichGridRendererData:function(a){this.richGridRendererData=a},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var a,b=(a=this.data)==null?void 0:a.engagementPanels;if(b==null?0:b.length){a=null;b=_.h(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;if(((d=c.engagementPanelSectionListRenderer)==null?void 0:d.targetId)==="engagement-panel-structured-description"){a=c;break}}var e,g,k;a=(e=a)==null?void 0:(g=e.engagementPanelSectionListRenderer)==null?void 0:(k=g.content)==null?void 0:k.structuredDescriptionContentRenderer;if(a==null?0:a.items){e=
[];g=_.h(a.items);for(k=g.next();!k.done;k=g.next()){k=k.value;if(!_.w("sd_horizontal_list_show_nav_killswitch")){var m=d=c=b=a=void 0,n=void 0,r=(a=k.horizontalCardListRenderer)==null?void 0:(b=a.header)==null?void 0:(c=b.richListHeaderRenderer)==null?void 0:(d=c.navigationButton)==null?void 0:(m=d.buttonRenderer)==null?void 0:(n=m.command)==null?void 0:n.commandExecutorCommand;r&&r.commands&&(r.commands=r.commands.filter(function(t){return!_.y(t,_.Hdd)}))}k.expandableVideoDescriptionBodyRenderer||
k.videoDescriptionHeaderRenderer||e.push(k)}return{items:e}}}},
constructWarning_:function(a){return{text:_.Vp(a),type:"WARNING"}},
isPlaShelfEnabled_:function(a){if((this.get("adPlacements",a)||[]).length)return!0;a=this.get("playerAds",a)||[];return!(!a.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",a[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var a=this;_.io(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.w("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var b=this.getScrollTop()>0;this.gestures_&&(b?this.gestures_.detach():this.gestures_.attach());b!==this.showFullerscreenEdu_&&_.w("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=b,_.$t(this).getPlayerPromise().then(function(c){c.updateFullerscreenEduButtonVisibility(a.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.io(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var a=this;this.commentsReady=!1;_.zk.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.sl(_.zk,function(){a.setComments_()},1E3)},
setComments_:function(){if(!_.w("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Lo("cmi");_.zk.cancelJob(this.setCommentsJobId_);var a=this.getPageContents(this.data);if(a&&a.length){a=_.h(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,this.get("itemSectionRenderer.sectionIdentifier",b)==="comment-item-section"){this.comments=b.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.io(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.w("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.w("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Lo("cmc")},
doRemoveComments_:function(){this.comments={};_.w("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.zk.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.zk.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(a,b){var c=_.y(b.endpoint,_.Un);c&&(!(b=this.get("data.currentVideoEndpoint.watchEndpoint"))||c.videoId!==b.videoId||c.playlistId&&c.playlistId!==b.playlistId||_.w("kevlar_watch_timestamp_seek_playlist_index_comparison")&&c.index!==void 0&&c.index!==b.index||typeof c.startTimeSeconds!=="number"||(a.stopPropagation(),this.setScrollTop(0),_.$t(this).getPlayerPromise().then(function(d){var e=c.startTimeSeconds;d.seekTo(e);d.wakeUpControls();e<d.getDuration()&&d.playVideo()})))},
updatePlayerStartTime_:function(){var a=_.omd();"t"in a&&(a=_.xmd(a.t),this.player.seekTo(a,!0))},
updateTitleFromWatchNext:function(a){a=this.getPageContents(a);var b,c;(a=_.Wp(a==null?void 0:(b=a[0])==null?void 0:(c=b.videoPrimaryInfoRenderer)==null?void 0:c.title))&&_.io(this.hostElement,"yt-update-title",a)},
updateTitle_:function(a){a=this.get("videoDetails.title",a)||"";_.io(this.hostElement,"yt-update-title",a)},
syncWithRemoteVideo_:function(a,b,c){if(this.active&&this.player){var d=this.player.getVideoData();if(d.video_id===c&&(c=d.list,_.w("polymer_enable_mdx_queue")&&c&&c.startsWith("RQ")&&(c=void 0),d.video_id!==a||c!=b)){var e;_.w("kevlar_player_watch_endpoint_navigation")?e=_.AUa(_.qmd(a,b)):e=this.buildWatchEndpoint_(a,b);_.io(this.hostElement,"yt-navigate",{endpoint:e,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(a,b,c){return _.dp(a,b,c)},
initDclkstatus_:function(){_.tmd()},
attachWatchPageSkeleton_:function(){var a=document.querySelector("#watch-page-skeleton");if(a){var b=a.querySelector("#primary-info"),c=a.querySelector("#secondary-info"),d=a.querySelector("#related");b&&_.E(this.hostElement).querySelector("#info-skeleton").appendChild(b);c&&_.E(this.hostElement).querySelector("#meta-skeleton").appendChild(c);d&&(_.E(this.hostElement).querySelector("#related-skeleton").appendChild(d),this.watchNextSkeletonEl_=d);_.qg(a)}},
handlePlayerUpdated_:function(){_.$t(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(a,b){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof b!=="undefined"){var c=this.watchNextSkeletonEl_.children,d=a&&a.indexSplices.length?a.indexSplices[0].index:0;a=Math.min(this.watchNextShownItems.length,c.length);b||(d=0,a=c.length);for(b=d;b<a;b++)c[b].classList.add("hidden")}},
onPlayerFullscreenChange_:function(a){_.w("external_fullscreen")||_.lo(this.hostElement,"yt-player-fullscreen",[a.fullscreen])},
onFullscreenChange_:function(a){this.fullscreen=a;this.gestures_&&this.gestures_.update(this.fullscreen);var b=_.$t(this);b.getPlayerPromise().then(function(c){c.setFauxFullscreen(!!_.eo())});
this.updateFullBleedElementLocations();a&&(b.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(a,b){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!b},
computeIsDonationShelfCollapsed_:function(a){return a},
computeShouldShowMerchShelf:function(a,b){return b&&!!a},
computeResponseHasComments:function(a){var b,c,d,e,g;return!!(a==null?0:(b=a.contents)==null?0:(c=b.twoColumnWatchNextResults)==null?0:(d=c.results)==null?0:(e=d.results)==null?0:(g=e.contents)==null?0:g.some(function(k){var m;return(k==null?void 0:(m=k.itemSectionRenderer)==null?void 0:m.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(a,b,c,d){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&d?!1:!!a&&!!Object.keys(a).length&&!b},
identity:_.Ma,onWindowResized_:function(a){this.windowSize_=a;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_());_.w("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(a){var b=this;a&&a.type!=="dataloaded"&&a.type!=="dataupdated"||_.$t(this).getPlayerPromise().then(function(c){var d=c.getPlayerState();d!==5&&d!==0&&(c=1/c.getVideoAspectRatio(),b.videoHeightToWidthRatio_!==c&&(b.videoHeightToWidthRatio_=c))})},
schedulePlayerSizeUpdate_:function(a){var b=this,c=_.w("kevlar_watch_while_v2")||_.w("web_watch_pip"),d=function(){if(b.watchMetadata){var e,g;(g=(e=b.watchMetadata).resize)==null||g.call(e)}_.$t(b).getPlayerPromise().then(function(k){if(_.w("kevlar_set_internal_player_size")){if(!c||!b.isMiniplayerActive()){var m=b.calculateCurrentPlayerSize_();k.setInternalSize(m.width,m.height)}}else k.setSize(NaN,NaN);_.w("kevlar_watch_while")&&b.updateWatchWhileScrollThreshold_()})};
a?d():_.Gu(_.zk,d)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(a){this.set("data.survey",a.detail)},
onYtShowSurveyCommand_:function(a){this.set("data.survey",_.y(a,_.Emd).survey)},
onDownloadedVideoDeleted:function(a){var b=this,c,d;return _.l(function(e){if(e.nextAddress==1){if(!b.active||(c=b.playerData)==null||!c.offlineState||b.videoId!==a)return e.return();(d=b.player)==null||d.stopVideo();_.xF().navigatingAwayFromWatchDeletedVideo=!0;_.hs(_.N2a,b.hostElement);return _.p(e,_.xF().navigationFinishPromise,2)}_.xF().navigatingAwayFromWatchDeletedVideo=!1;_.ue(e)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var a;this.theater?a=_.Vw(.5625*this.windowSize_.width,480,this.windowSize_.height-185):a=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==a&&(this.watchWhileScrollThreshold_=a,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var a=_.E(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&a){var b=this.windowSize_.height>=624,c=this.active?this.getScrollTop():0;!a.active&&b&&c>=this.watchWhileScrollThreshold_?(a.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):a.active&&(!b||c<this.watchWhileScrollThreshold_&&!_.eo())&&(a.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var a=_.E(this.hostElement).querySelector("#secondary-inner");if(a){var b=_.E(this.hostElement).querySelector("#below"),c=_.E(this.hostElement).querySelector("#secondary"),d=_.E(this.hostElement).querySelector("#comments");d&&c&&b&&(this.defaultTwoColumnLayout?(a.appendChild(d),c.appendChild(a)):(b.appendChild(d),_.L8(b,a)))}}},
isTwoColumnsChanged_:function(a,b){if(a!==!0||b!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(a=_.E(this.hostElement).querySelector("#secondary-inner"))){b=_.E(this.hostElement).querySelector("#below");var c=_.E(this.hostElement).querySelector("#secondary"),d=_.E(this.hostElement).querySelector("#comments");d&&c&&b&&(this.isTwoColumns_?(a.appendChild(d),c.appendChild(a)):(b.appendChild(d),_.L8(b,a)))}}else{a=!_.w("live_chat_over_engagement_panels");b=_.E(this.hostElement).querySelector("#chat-container");
c=_.E(this.hostElement).querySelector("#panels");var e=_.E(this.hostElement).querySelector("#alerts");d=_.E(this.hostElement).querySelector("#playlist");var g=_.E(this.hostElement).querySelector("#related"),k=_.E(this.hostElement).querySelector("#donation-shelf"),m=_.E(this.hostElement).querySelector("#comments");this.isTwoColumns_?(e=_.E(this.hostElement).querySelector("#secondary-inner"),a&&e.appendChild(c),e.appendChild(d),_.w("web_watch_theater_chat")||e.appendChild(b),a||e.appendChild(c),e.appendChild(k),
e.appendChild(g)):(a&&_.Wy(c,e),_.Wy(d,e),_.w("web_watch_theater_chat")||_.Wy(b,e),a||_.Wy(c,e),_.Wy(k,e),m&&_.Wy(g,m));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.w("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.w("web_watch_theater_chat")){var a=_.E(this.hostElement).querySelector("#chat-container"),b=this.theater&&!this.fullscreen||_.w("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&b?_.w("web_watch_theater_chat_beside_player")?(b=_.E(this.hostElement).querySelector("#panels-full-bleed-container"),(a==null?void 0:a.parentElement)!==b&&b.append(a),this.panelsBesidePlayer=!0):
_.w("web_watch_theater_fixed_chat")&&(b=_.E(this.hostElement).querySelector("#columns"),(a==null?void 0:a.parentElement)!==b&&b.append(a),this.fixedPanels=!0):(_.w("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.w("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),b=_.E(this.hostElement).querySelector("#playlist"),a&&b?_.Xy(a,b):_.Dl(new _.qj("Missing element when updating chat location",{"chatContainer defined":!!a,"playlist defined":!!b})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(a,b){return _.w("sw_metadata_vis_toggle_ks")?!0:!!a||!!b},
computeForceDarkPanelTheme:function(a){return _.w("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&a:!1},
safeUpdateStyles:function(a){try{_.fr(this.hostElement,a)}catch(b){_.Dl(b)}},
videoHeightToWidthRatioChanged_:function(a,b){b&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(a){this.videoHeightToWidthRatio_=1/a},
computeIsVerticalVideo_:function(a){return a>=1},
computeIsFourThreeToSixteenNineVideo_:function(a){return a<=.7501&&a>=.5624},
computeIsExtraWideVideo_:function(a){return a<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.$t(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.$t(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.Nmd(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(a){var b=_.vG(a)||0;_.uG(a,b+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var a=_.vG("yt-fullerscreen-edu-button-click-count")||0,b=_.vG("yt-fullerscreen-edu-button-shown-count")||0,c=_.$i("external_fullscreen_button_shown_threshold"),d=a>=_.$i("external_fullscreen_button_click_threshold")||b>=c;_.$t(this).getPlayerPromise().then(function(e){e.updateFullerscreenEduButtonSubtleModeState(d)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(a,b){return b},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.v().resolve(_.TF).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var a=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.zk.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.zk.addLowPriorityJob(function(){a.fullHeightPanelPositionUpdateJobId=0;var b=_.E(a.hostElement).querySelector("#secondary"),c=_.E(a.hostElement).querySelector("#fixed-secondary");b=b.getBoundingClientRect();var d=b.width;a.swatcherooSqueezeback&&
(d+=_.M8);if(a.swatcherooSqueezeback){var e=_.E(a.hostElement).querySelector("#squeezeback-constraining-container");e.style.width=d+"px";e.style.flex="0 0 "+d+"px"}c.style.width=d+"px";c.style.left=b.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var a=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.zk.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.zk.addLowPriorityJob(function(){a.panelMaxHeightUpdateJob_=0;var b;!a.isTwoColumns_||a.theater||a.fullscreen?b=460:b=a.calculateNormalPlayerSize_().height;var c=b+"px";_.w("live_chat_taller_height")&&!a.theater&&(c="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.w("live_chat_medium_height")&&!a.theater&&(c="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.w("live_chat_scaled_height")&&!a.theater&&(c="calc(100vh - var(--ytd-toolbar-height) - 238px)");a.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":b+"px","--ytd-watch-flexy-chat-max-height":c,"--ytd-watch-flexy-structured-description-max-height":b+"px","--ytd-watch-flexy-comments-panel-max-height":b+"px","--ytd-comments-engagement-panel-content-height":b+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var a=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.w("web_watch_flexy_adjust_sidebar_width"))&&!_.w("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.zk.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.zk.addLowPriorityJob(function(){a.panelMaxHeightUpdateJob_=0;if(a.isTwoColumns_){var b=_.vmd(a.windowSize_,a.calculateNormalPlayerSize_().width);b!==a.currentSidebarWidth&&(a.currentSidebarWidth=
b,a.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":b+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(a){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",a)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.po(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(a){var b=_.E(this.hostElement).querySelector("#engagement-panel-scrim");a?b.addEventListener("tap",_.gr(this,this.onEngagementPanelScrimClick_)):b.removeEventListener("tap",_.gr(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(a){if(this.hostElement.contains(a)&&!this.scrollToAnimation_.isAnimating()){var b=a.offsetTop-24;a=a.offsetTop+a.offsetHeight+24;var c=this.getPageScrollingElement(),d=this.getScrollTop(),e=d+c.clientHeight-56;if(b<d+56)b-=56;else if(a>e)b=a-c.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,b),500)}},
onYtSignalActionScrollToComments:function(){var a=this.hostElement.querySelector("#comments");if(a&&!this.scrollToAnimation_.isAnimating()){a=a.offsetTop-56-24;if(_.w("kevlar_comment_teaser_scroll_to_midpoint")&&(a-=_.sf().height/3,a<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,a),500)}},
onYtEngagementPanelVisibleChanged:function(a,b,c){this.active&&this.trackEngagementPanelVisibility&&!_.gld.includes(c)&&(b==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(c),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.mo(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),b!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&b!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(c),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(a){return a?"":"watch-active-metadata"},
computeNewMetadataClass:function(a){return a?"watch-active-metadata":""},
computeFullBleedPlayer:function(a,b){return a||b},
computeDefaultLayout:function(a){return!a},
computeDefaultTwoColumnLayout:function(a,b){return!a&&b},
updatePanelsLocation:function(){if(_.w("web_watch_enable_fs_squeezeback_panels")){var a=_.E(this.hostElement).querySelector("#below"),b=_.E(this.hostElement).querySelector("#panels"),c=_.E(this.hostElement).querySelector("#panels-full-bleed-container"),d=_.E(this.hostElement).querySelector("#secondary-inner");this.fullscreen?c.appendChild(b):this.isTwoColumns_?_.L8(d,b):a.appendChild(b)}},
swatcherooUpdatePanelsLocation:function(a,b,c,d,e,g){if(this.is==="ytd-watch-grid"){b=a&&!b;this.swatcherooSplitScroll&&(b?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));c=_.E(this.hostElement).querySelector("#panels");var k=_.E(this.hostElement).querySelector("#playlist"),m=_.E(this.hostElement).querySelector("#fixed-secondary"),n=_.E(this.hostElement).querySelector("#fixed-below"),
r=_.E(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),t=_.E(this.hostElement).querySelector("#chat-container");g&&(a?m.appendChild(c):n.appendChild(c));e?a?m.appendChild(t):n.appendChild(t):_.Xy(t,r);d?a?m.appendChild(k):n.appendChild(k):_.Xy(k,r);this.swatcherooSplitScroll&&(a=_.E(this.hostElement).querySelector("#secondary"),d=_.E(this.hostElement).querySelector("#columns"),e=_.E(this.hostElement).querySelector("#fixed-columns-secondary"),b?e.appendChild(a):
d.appendChild(a))}},
computeMetadataSkinnyMode:function(a,b,c){return this.is!=="ytd-watch-grid"?!1:a?c:b},
computeWatchWhilePanelsActive:function(a,b){return a||b},
computeNoBorderOnChat:function(a){return _.w("web_watch_theater_chat_no_border")&&a},
computeLiveChatPresentAndExpanded:function(a,b){return a&&!b},
computePanelExpanded:function(a,b,c){return a||b||c},
computeSqueezeback:function(a,b){if(_.w("web_watch_enable_fs_squeezeback_panels"))return a&&b},
computeSwatcherooSqueezeback:function(a,b,c){return this.is!=="ytd-watch-grid"||_.w("ww_squeezeback_killswitch")?!1:a&&b&&c},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(a){_.$t(this).getPlayerPromise().then(function(b){var c;(c=b.changeMarkerVisibility)==null||c.call(b,_.y(a,_.Q$).isVisible||!1,_.y(a,_.Q$).entityKeys||[],_.y(a,_.Q$).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(a){this.liveChatCollapsed=a.detail;_.Yp().dispatch(_.Cmd(a.detail))},
onSetPlaylistCollapsed:function(a){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!a)},
provideRenderingData:function(a,b){switch(a){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=b;break;case "PRIMARY_INFO":_.w("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=b);this.videoPrimaryInfoRendererValue=b==null?void 0:b.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.w("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=b);this.videoSecondaryInfoRendererValue=b==null?void 0:b.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
b;break;case "CLARIFICATION":this.clarifyBoxValue=b;break;case "LIVE_CHAT":this.conversationBar=b;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=b;break;case "PLAYLIST":this.externalPlaylistData_=b!=null?b:{};break;case "MERCH_SHELF":this.merchShelfValue=b==null?void 0:b.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=b;break;case "TICKET_SHELF":this.ticket=b;break;case "OFFER_MODULE":this.offerModule=b;break;case "LIMITED_STATE":this.limitedStateValue=
b;break;case "DONATION_SHELF":this.donation=b;break;case "ALERTS":this.alertsValue=b;break;case "COMMENTS":this.comments=b;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=b;break;case "ENGAGEMENT_PANELS":this.engagementPanels=b;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=b;break;case "RICH_GRID_RENDERER":this.richGridRendererData=b;break;case "EXPANDABLE_METADATA":this.expandableMetadata=b;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
b}},
toggleCinematicsActive:function(a){this.cinematicsActive=a},
isMiniplayerActive:function(){return _.v().resolve(_.$w).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var hsc;_.gsc=function(a){return a.shorts.isShortsActive};
_.isc=function(a){return a.findIndex(function(b){return hsc.indexOf(b.tagName)>-1})>-1};
_.jsc=function(a){return _.hp({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:a}})};
_.ksc=function(){var a=_.v().resolve(_.nG);_.zsa(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(a.isFullscreenEnabled()?_.fo(document.documentElement):_.ZBa(document.documentElement))};
hsc=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.lY=new Map;_.lY.set(32,59972);_.lY.set(27,50765);_.lY.set(70,60102);_.lY.set(76,60221);_.lY.set(77,60222);_.lY.set(74,60223);_.lY.set(84,60224);_.lY.set(38,61941);_.lY.set(40,61942);_.lY.set(73,62521);_.lY.set(67,62522);_.lY.set(80,63390);_.lY.set(78,63397);_.lY.set(75,59972);_.lY.set(188,63385);_.lY.set(190,63384);_.lY.set(36,63387);
_.lY.set(35,63386);_.lY.set(37,63388);_.lY.set(39,63389);_.lY.set(79,63423);_.lY.set(87,63424);_.lY.set(107,63426);_.lY.set(109,63425);_.lY.set(65,63428);_.lY.set(83,63430);_.lY.set(68,63429);_.lY.set(221,63431);_.lY.set(219,63432);_.lY.set(97,63439);_.lY.set(98,63440);_.lY.set(99,63441);_.lY.set(100,63442);_.lY.set(101,63443);_.lY.set(102,63444);_.lY.set(103,63445);_.lY.set(104,63446);_.lY.set(105,63447);_.mY=new Map;_.mY.set(80,63390);_.mY.set(78,63397);_.mY.set(188,63400);_.mY.set(190,63401);
_.mY.set(191,60765);_.mY.set(13,247917);_.nY=new Map;_.oY=new Map;
}catch(e){_._DumpException(e)}
try{
var pmc,smc,tmc,umc;_.lmc=function(a){return a.ui.guideIsVisibleButNotPersistent};
_.mmc=function(a){return a.ui.tabGesturesIsActive};
_.nmc=function(){var a=_.aj("service_worker_scope");try{return navigator.serviceWorker.getRegistration(a)}catch(b){return Promise.reject(b)}};
_.omc=function(a){return!(!a||!a.pushManager)};
pmc=function(){return _.nmc().then(_.omc).catch(function(){return!1})};
_.qmc=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?pmc():Promise.resolve(!1)};
_.rmc=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
smc=function(){var a,b,c;return _.l(function(d){switch(d.nextAddress){case 1:return _.p(d,_.IF.getInstance(),2);case 2:a=d.yieldResult;if(!a){b=void 0;d.jumpTo(3);break}return _.p(d,a.get("lmqf"),4);case 4:b=d.yieldResult;case 3:switch((c=b)||(c="SD"),c){case "HD":return d.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return d.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return d.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return d.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return d.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
tmc=function(a){var b,c,d;return _.l(function(e){if(e.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]){var g=window.localStorage["yt-player-av1-pref"];g=g==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":g==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else g="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(b=a===g)return e.jumpTo(2);d=c=a;return _.p(e,smc(),3)}e.nextAddress!=2&&(b=d===e.yieldResult);return e.return(b)})};var vmc;var wmc=_.ID.IronButtonState,xmc=(0,_.FC)(HTMLElement);
_.sr({_template:function(){if(vmc!==void 0)return vmc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu.tp.yt.paper.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" dynamic-align="[[dynamicAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" class="style-scope tp-yt-paper-dropdown-menu">\n  \n  <div class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu" slot="dropdown-trigger">\n    <tp-yt-paper-ripple class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-paper-ripple>\n    \n    <tp-yt-paper-input id="input" type="text" invalid="[[invalid]]" readonly="" disabled="[[disabled]]" value="[[value]]" placeholder="[[placeholder]]" error-message="[[errorMessage]]" always-float-label="[[alwaysFloatLabel]]" no-label-float="[[noLabelFloat]]" label="[[label]]" input-role="button" input-aria-haspopup="listbox" autocomplete="off" style-target="input" class="style-scope tp-yt-paper-dropdown-menu">\n      \n      \n      \n      \n      <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" suffix="" slot="suffix" tabindex="-1" class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-iron-icon>\n    </tp-yt-paper-input>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu"></slot>\n</tp-yt-paper-menu-button>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;umc===void 0&&(umc=document.createElement("template"));var d=umc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return vmc=a},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[wmc,_.GD,_.JD,_.MD],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(a){var b=(0,_.nm)(this);b.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:a});
b.shadowRoot.appendChild(a);return xmc.prototype._attachDom.call(this,a)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var a=this.contentElement;a&&a.selectedItem&&this._setSelectedItem(a.selectedItem)},
get contentElement(){for(var a=_.wn(this.$.content).getDistributedNodes(),b=0,c=a.length;b<c;b++)if(a[b].nodeType===Node.ELEMENT_NODE)return a[b]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(a){this._setSelectedItem(a.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(a){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a)===this&&this.open()},
_selectedItemChanged:function(a){var b="";a?b=a.label||a.getAttribute("label")||a.textContent.trim():b="";this.value=b;this._setSelectedItemLabel(b)},
_computeMenuVerticalOffset:function(a,b){return b?b:a?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var a=this.opened?"true":"false",b=this.contentElement;b&&b.setAttribute("aria-expanded",a)}});_.WW=new _.X("navigateAction");var ymc=new _.X("formRenderer");var zmc=function(){var a=_.kr.apply(this,arguments)||this;a.showInput=!1;return a};
_.z(zmc,_.kr);_.f=zmc.prototype;_.f.detached=function(){this.showInput&&window.removeEventListener("click",_.gr(this,this.closeOnOutsideClick_))};
_.f.stopPropagation_=function(a){this.showInput&&a.stopPropagation()};
_.f.closeOnOutsideClick_=function(a){this.closeOnOutsideClickCondition(a)&&(this.showInput=!1,window.removeEventListener("click",_.gr(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.f.closeOnOutsideClickCondition=function(){return!0};
_.f.closeOnOutsideClickHandler=function(){};
_.f.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.gr(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.f.openOnClickHandler=function(){};
_.f.showInputChanged=function(){};
_.f.setShowInput=function(a){this.showInput=a};
var XW=zmc;XW.prototype.setShowInput=XW.prototype.setShowInput;XW.prototype.showInputChanged=XW.prototype.showInputChanged;XW.prototype.openOnClickHandler=XW.prototype.openOnClickHandler;XW.prototype.openOnClick_=XW.prototype.openOnClick_;XW.prototype.closeOnOutsideClickHandler=XW.prototype.closeOnOutsideClickHandler;XW.prototype.closeOnOutsideClickCondition=XW.prototype.closeOnOutsideClickCondition;XW.prototype.closeOnOutsideClick_=XW.prototype.closeOnOutsideClick_;
XW.prototype.stopPropagation_=XW.prototype.stopPropagation_;_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],XW.prototype,"showInput",void 0);_.U([_.M("click"),_.M("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],XW.prototype,"stopPropagation_",null);_.U([_.N("showInput"),_.W("design:type",Function),_.W("design:paramtypes",[Boolean]),_.W("design:returntype")],XW.prototype,"showInputChanged",null);XW=_.U([_.lr()],XW);_.Amc=[XW.prototype];var Bmc;var Cmc;var Dmc=function(){return _.P.apply(this,arguments)||this};
_.z(Dmc,_.P);_.f=Dmc.prototype;_.f.computePreselectedOption=function(a,b){return b===this.itemSelected_?a:void 0};
_.f.dataChanged_=function(){var a=this;this.preselectedSubreason=this.itemSelected_=-1;var b;(b=this.data)!=null&&b.key&&_.Qm(this,function(){var c,d=Number((c=a.data)==null?void 0:c.key);!Number.isNaN(d)&&(a.itemSelected_=d,c=(c=(a.data.items||[])[d])&&c.optionSelectableItemRenderer&&c.optionSelectableItemRenderer.preselectedIndex)&&(a.preselectedSubreason=c)})};
_.f.isSubReasonHidden_=function(a,b){return a!=b};
_.f.onTopItemSelected_=function(a,b){for(var c=_.E(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),d=0,e=c.length;d<e;d++)c[d].select(0);_.lo(this.hostElement,"yt-report-form-update",[b.item.value]);a.stopPropagation()};
_.f.onItemSelected_=function(a,b){_.lo(this.hostElement,"yt-report-form-update",[b.item.value]);a.stopPropagation()};
_.f.getItem_=function(a){return a.serviceItem?a.serviceItem:a.navigationItem?a.navigationItem:a.optionSelectableItemRenderer?a.optionSelectableItemRenderer:null};
_.f.computeText_=function(a){return(a=this.getItem_(a))?this.ytRendererBehavior.getSimpleString(a.text):null};
_.f.validate=function(){return this.itemSelected_!==-1};
_.f.computeAriaLabel_=function(a){var b=_.Wp(a.text);(a=a.accessibility&&a.accessibility.accessibilityData&&a.accessibility.accessibilityData.label)&&(b+=". "+a);return b};
_.f.computeItemSelected_=function(a){return a};
_.f.preventSelection_=function(a){a.stopPropagation();this.tooltipTapped=!0};
_.f.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.f.updateItemSelectedFromBinding=function(a){this.itemSelected_=a.detail.value};
_.f.save=function(){var a;this.validate()&&(a=this.data)!=null&&a.items&&(a=this.data.items[this.itemSelected_],a!=null&&a.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(a.optionSelectableItemRenderer.submitEndpoint)||_.oo(this.hostElement,[a.optionSelectableItemRenderer.submitEndpoint])))};
var YW=Dmc;YW.prototype.onPaperRippleTransitionEnd_=YW.prototype.onPaperRippleTransitionEnd_;YW.prototype.dataChanged_=YW.prototype.dataChanged_;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],YW.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],YW.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],YW.prototype,"data",void 0);_.U([_.O({value:-1}),_.W("design:type",Number)],YW.prototype,"itemSelected_",void 0);
_.U([_.O({computed:"computeItemSelected_(itemSelected_)"}),_.W("design:type",Number)],YW.prototype,"value",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],YW.prototype,"restoreFocusOnClose",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],YW.prototype,"tooltipTapped",void 0);_.U([_.O({value:-1}),_.W("design:type",Number)],YW.prototype,"preselectedSubreason",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YW.prototype,"dataChanged_",null);_.U([_.M("transitionend"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YW.prototype,"onPaperRippleTransitionEnd_",null);YW=_.U([_.wr({is:"yt-options-renderer",disableElementRegistration:!0})],YW);
_.S(YW,"yt-options-renderer",function(){if(Cmc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.menus.yt_options_renderer.yt.options.renderer.css.js--\x3e<div id="options-select" class="style-scope yt-options-renderer">\n  <tp-yt-paper-radio-group id="yt-options-renderer-options" selected="[[itemSelected_]]" on-iron-select="onTopItemSelected_" on-selected-changed="updateItemSelectedFromBinding" class="style-scope yt-options-renderer">\n    <template is="dom-repeat" items="[[data.items]]" class="style-scope yt-options-renderer">\n      <tp-yt-paper-radio-button class="radio style-scope yt-options-renderer" aria-label$="[[computeAriaLabel_(item.optionSelectableItemRenderer)]]" name$="[[index]]" value="[[item.optionSelectableItemRenderer]]">\n        <div class="content style-scope yt-options-renderer">\n          <div class="text style-scope yt-options-renderer">\n            <yt-formatted-string text="[[item.optionSelectableItemRenderer.text]]" class="style-scope yt-options-renderer">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtext style-scope yt-options-renderer" hidden="[[!item.optionSelectableItemRenderer.subtext]]" text="[[item.optionSelectableItemRenderer.subtext]]">\n            </yt-formatted-string>\n          </div>\n          <template is="dom-if" if="[[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]" class="style-scope yt-options-renderer">\n            <div class="info-container style-scope yt-options-renderer" on-tap="preventSelection_">\n              <yt-icon icon="yt-icons:help_outline" size="16" class="style-scope yt-options-renderer"></yt-icon>\n              <tp-yt-paper-tooltip animation-delay="0" class="style-scope yt-options-renderer">\n                [[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]\n              </tp-yt-paper-tooltip>\n            </div>\n          </template>\n        </div>\n      </tp-yt-paper-radio-button>\n      <template is="dom-if" if="[[item.optionSelectableItemRenderer.subOptions]]" class="style-scope yt-options-renderer">\n        <tp-yt-paper-dropdown-menu aria-label$="[[item.optionSelectableItemRenderer.subOptionsAccessibility.label]]" hidden="[[isSubReasonHidden_(index, itemSelected_)]]" no-label-float="" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-select="onItemSelected_" class="style-scope yt-options-renderer">\n          <tp-yt-paper-listbox class="dropdown-content style-scope yt-options-renderer" slot="dropdown-content" selected="[[computePreselectedOption(preselectedSubreason, index)]]">\n            <template is="dom-repeat" items="[[item.optionSelectableItemRenderer.subOptions]]" as="subOption" class="style-scope yt-options-renderer">\n              <tp-yt-paper-item value="[[getItem_(subOption)]]" class="style-scope yt-options-renderer">\n                [[computeText_(subOption)]]\n              </tp-yt-paper-item>\n            </template>\n         </tp-yt-paper-listbox>\n        </tp-yt-paper-dropdown-menu>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Bmc===void 0&&(Bmc=document.createElement("template"));var d=Bmc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Cmc=a}a=Cmc;return a},{mode:2});var Emc;var Fmc;var Gmc;var Hmc;var Imc;var Jmc;var ZW=function(){return _.P.apply(this,arguments)||this};
_.z(ZW,_.P);ZW.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
ZW.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
ZW.prototype.onTap=function(a){if(this.hostElement.classList.contains("selected")||_.no(this.hostElement,"yt-share-panel-can-select-contact-action"))a&&a.detail&&(a.detail.x||a.detail.y)&&_.E(this.hostElement).querySelector("#target").blur(),(a=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),a={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:a?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.lo(this.hostElement,"yt-share-panel-select-contact-action",[a])};
var $W=ZW;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$W.prototype,"ytRendererBehavior",void 0);_.U([_.O({observer:"onDataChanged"}),_.W("design:type",Object)],$W.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.W("design:type",String)],$W.prototype,"componentTitle",void 0);_.U([_.ir("#thumbnail"),_.W("design:type",Object)],$W.prototype,"thumbnail",void 0);
$W=_.U([_.wr({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],$W);
_.S($W,"yt-enrolled-contact-renderer",function(){if(Jmc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-enrolled-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_enrolled_contact_renderer.yt.enrolled.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-enrolled-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-enrolled-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-enrolled-contact-renderer"></div>\n  <div id="name" class="style-scope yt-enrolled-contact-renderer">[[componentTitle]]</div>\n</button>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Imc===void 0&&(Imc=document.createElement("template"));var d=Imc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Jmc=a}a=Jmc;return a},{mode:2});var Kmc;var Lmc;var aX=function(){return _.P.apply(this,arguments)||this};
_.z(aX,_.P);aX.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
aX.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
aX.prototype.onTap=function(a){if(this.hostElement.classList.contains("selected")||_.no(this.hostElement,"yt-share-panel-can-select-contact-action"))a&&a.detail&&(a.detail.x||a.detail.y)&&_.E(this.hostElement).querySelector("#target").blur(),(a=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),a={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:a?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.lo(this.hostElement,"yt-share-panel-select-contact-action",[a])};
var bX=aX;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],bX.prototype,"ytRendererBehavior",void 0);_.U([_.O({observer:"onDataChanged"}),_.W("design:type",Object)],bX.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.W("design:type",String)],bX.prototype,"componentTitle",void 0);_.U([_.ir("#thumbnail"),_.W("design:type",Object)],bX.prototype,"thumbnail",void 0);
bX=_.U([_.wr({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],bX);
_.S(bX,"yt-suggested-contact-renderer",function(){if(Lmc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-suggested-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_suggested_contact_renderer.yt.suggested.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-suggested-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.avatar.thumbnail]]" class="style-scope yt-suggested-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-suggested-contact-renderer"></div>\n  <div id="name" class="style-scope yt-suggested-contact-renderer">[[componentTitle]]</div>\n</button>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Kmc===void 0&&(Kmc=document.createElement("template"));var d=Kmc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Lmc=a}a=Lmc;return a},{mode:2});var cX=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-share-panel-reset-action":"onReset"};return a};
_.z(cX,_.P);cX.prototype.configureRendererStamper=function(){return{"data.contacts":{id:"contents",mapping:{enrolledContactRenderer:{component:"yt-enrolled-contact-renderer",attributes:{role:"checkbox"}},suggestedContactRenderer:{component:"yt-suggested-contact-renderer",attributes:{role:"checkbox"}}}}}};
cX.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.lo(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
cX.prototype.onReset=function(){for(var a=_.E(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),b=a.length-1;b>=0;b--)a[b].classList.toggle("selected")};
var dX=cX;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],dX.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],dX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],dX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O({observer:"onDataChanged"}),_.W("design:type",Object)],dX.prototype,"data",void 0);
dX=_.U([_.wr({is:"yt-contact-section-renderer",disableElementRegistration:!0})],dX);
_.S(dX,"yt-contact-section-renderer",function(){if(Hmc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-contact-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_contact_section_renderer.yt.contact.section.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-contact-section-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-contact-section-renderer">\n</yt-formatted-string>\n<div id="contents" role="listbox" class="style-scope yt-contact-section-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Gmc===void 0&&(Gmc=document.createElement("template"));var d=Gmc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Hmc=a}a=Hmc;return a},{mode:2});var Mmc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return a};
_.z(Mmc,_.P);_.f=Mmc.prototype;_.f.configureRendererStamper=function(){return{"data.fields":{id:"fields",mapping:{textInputFormFieldRenderer:{component:"yt-text-input-form-field-renderer",params:{required:!0},properties:{hideLabel:"[[data.hideLabels]]"}},toggleFormFieldRenderer:{component:"yt-toggle-form-field-renderer"},optionsRenderer:"yt-options-renderer",contactSectionRenderer:"yt-contact-section-renderer"}}}};
_.f.onYtRefreshFormCommand=function(a){var b;(a=_.y((b=_.y(a,_.cAb))==null?void 0:b.formRenderer,ymc))&&this.set("data",a)};
_.f.reset=function(){var a=_.E(this.hostElement).querySelector("#fields").children;a=_.h(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b.reset&&b.reset()};
_.f.getForm=function(){var a={},b=_.E(this.hostElement).querySelector("#fields").children;b=_.h(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;if(!c.validate())return null;a[c.data.key]=c.value}return a};
_.f.submitFormFields=function(){if(this.fields)for(var a=_.h(this.fields),b=a.next();!b.done;b=a.next())b=b.value,b.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?b.save():b.nodeName==="YT-OPTIONS-RENDERER"&&b.save()};
var eX=Mmc;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],eX.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],eX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],eX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],eX.prototype,"data",void 0);_.U([_.jr("#fields > *"),_.W("design:type",Array)],eX.prototype,"fields",void 0);
eX=_.U([_.wr({is:"yt-form-renderer",disableElementRegistration:!0})],eX);
_.S(eX,"yt-form-renderer",function(){if(Fmc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.forms.yt_form_renderer.yt.form.renderer.css.js--\x3e<div id="fields" class="style-scope yt-form-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Emc===void 0&&(Emc=document.createElement("template"));var d=Emc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Fmc=a}a=Fmc;return a},{mode:2});var Nmc;var Omc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return a};
_.z(Omc,_.P);Omc.prototype.onCheckboxChange=function(a){this.data&&(a=(this.checked=_.Sq(a).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.v().resolve(_.Yi).resolveCommand(a,{form:{element:this.hostElement}})};
Omc.prototype.handleUpdateCheckboxCommand=function(a){(a=_.y(a,_.pAb))&&this.data&&this.data.id===a.id&&(this.set("data.disabled",a.disabled),this.set("data.title",a.title))};
var fX=Omc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],fX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],fX.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],fX.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],fX.prototype,"checked",void 0);fX=_.U([_.Q({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],fX);
_.S(fX,"ytd-settings-checkbox-renderer",function(){if(Nmc!==void 0)return Nmc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-checkbox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-option" class="style-scope ytd-settings-checkbox-renderer">\n  <tp-yt-paper-checkbox id="checkbox" aria-label$="[[getSimpleString(data.title)]]" checked="[[data.enabled]]" disabled="[[data.disabled]]" on-change="onCheckboxChange" class="style-scope ytd-settings-checkbox-renderer">\n    <div id="checkbox-container" class="style-scope ytd-settings-checkbox-renderer"></div>\n    <div id="checkbox-label" class="style-scope ytd-settings-checkbox-renderer">\n      <yt-formatted-string id="label" split-lines="" text="[[data.title]]" class="style-scope ytd-settings-checkbox-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-checkbox>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-checkbox-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-checkbox-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Nmc=a},{mode:1});var Pmc;var gX=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return a};
_.z(gX,_.P);gX.prototype.dataChanged=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return a.radio.removeAttribute("checked"),!a.data||!a.data.id||a.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.rmc()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(b=a.data&&a.data.id)?_.p(c,tmc(a.data.id),4):c.jumpTo(3):(a.set("data.hidden",!0),c.jumpTo(0));c.nextAddress!=3&&(b=c.yieldResult);b&&_.lo(a.hostElement,"yt-select-settings-radio-option",[a.data.id]);_.ue(c)})};
gX.prototype.onButtonChanged=function(a){_.Sq(a).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.v().resolve(_.Yi).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.lo(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
gX.prototype.onSelectOption=function(a){this.data&&this.data.id&&(this.data.id===a?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
var hX=gX;hX.prototype.dataChanged=hX.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],hX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],hX.prototype,"ytActionHandlerBehavior",void 0);_.U([_.ir("#radio"),_.W("design:type",Object)],hX.prototype,"radio",void 0);_.U([_.O(),_.W("design:type",Object)],hX.prototype,"data",void 0);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],hX.prototype,"dataChanged",null);hX=_.U([_.Q({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],hX);
_.S(hX,"ytd-settings-radio-option-renderer",function(){if(Pmc!==void 0)return Pmc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="start" class="style-scope ytd-settings-radio-option-renderer">\n  <tp-yt-paper-radio-button id="radio" aria-label$="[[getSimpleString(data.title)]]" hidden="[[data.hidden]]" on-change="onButtonChanged" class="style-scope ytd-settings-radio-option-renderer">\n    <div id="label" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.title)]]</div>\n  </tp-yt-paper-radio-button>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-radio-option-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="3" position="top" class="style-scope ytd-settings-radio-option-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n<div id="end" class="style-scope ytd-settings-radio-option-renderer">\n  <div id="aside-text" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.asideText)]]</div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Pmc=a},{mode:1});var Qmc;var iX=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return a};
_.z(iX,_.P);
iX.prototype.configureRendererStamper=function(){return{"data.connectButton":{id:"connect-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",accountLinkButtonRenderer:"ytd-account-link-button-renderer",accountLinkButtonViewModel:{component:"account-link-button-view-model",params:{setMinWidth:!0}}}},"data.disconnectButton":{id:"disconnect-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",accountLinkButtonRenderer:"ytd-account-link-button-renderer"}}}};
iX.prototype.handleUpdateTextCommand=function(a){(a=_.y(a,_.qAb))&&this.data&&this.data.id===a.id&&this.set("data",a)};
iX.prototype.handleUpdateConnectedAppRendererCommand=function(a){if(_.y(a,_.tAb)&&this.data){var b,c;if(a=(b=_.y(a,_.tAb))==null?void 0:(c=b.newConnectedAppRenderer)==null?void 0:c.connectedAppRenderer)this.data=a}};
iX.prototype.computeConnectedAppStyle=function(a){return a.style?a.style.toLowerCase().replace(/_/g,"-"):""};
var jX=iX;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],jX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],jX.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],jX.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],jX.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.W("design:type",String)],jX.prototype,"connectedAppStyle",void 0);jX=_.U([_.Q({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],jX);
_.S(jX,"ytd-connected-app-renderer",function(){if(Qmc!==void 0)return Qmc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-connected-app-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-connected-app-renderer"></yt-img-shadow>\n<div id="app" class="style-scope ytd-connected-app-renderer">\n  <div id="app-info" class="style-scope ytd-connected-app-renderer">\n    <div id="title" class="style-scope ytd-connected-app-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-formatted-string id="text" force-default-style="" split-lines="" text="[[data.text]]" class="style-scope ytd-connected-app-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-row" class="style-scope ytd-connected-app-renderer">\n    <div id="button-container" hidden="[[!data.connectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="connect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n    <div id="button-container" hidden="[[!data.disconnectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="disconnect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Qmc=a},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Cg("iuT5Oc");

_.Dg();
}catch(e){_._DumpException(e)}
try{
_.Cg("L3n37");
var end=_.ku(115994),fnd=_.ku(115993),gnd=function(a,b,c){var d=this;var e=c.dragDownAction;this.layer=0;this.JSC$20261_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return d.dragDownAction()}}}};
this.JSC$20261_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return d.dragDownAction()}}}};
this.fullscreen=!1;var g=_.ls();_.rF(g,end,this.layer);_.rF(g,fnd,this.layer);this.dragDownAction=function(){e();_.Ot(g,{visualElement:d.fullscreen?end:fnd})};
this.gesture=new _.w6(a,b,this.JSC$20261_watchConfig,"pandown");this.attach()};
gnd.prototype.attach=function(){this.gesture.attach()};
gnd.prototype.detach=function(){this.gesture.detach()};
gnd.prototype.update=function(a){this.fullscreen=a;this.gesture.config=a?this.JSC$20261_watchFullScreenConfig:this.JSC$20261_watchConfig};var hnd={},ind=["PAyouchat"];
hnd.YtdLearningJourneyWatchBehavior=[_.Z.YtRendererBehavior,_.bJ.YtPlayerListenerBehavior,_.dH.YtRendererstamperBehavior,_.eH.YtActionHandlerBehavior,_.I6.YtPageBehavior,_.qH.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},
learningJourneyEngagementPanels:{type:Object,computed:"getLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},nonLearningJourneyEngagementPanels:{type:Object,computed:"getNonLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},hasLearningJourneyPanels:{type:Boolean,reflectToAttribute:!0,computed:"getHasLearningJourneyEngagementPanels(learningJourneyEngagementPanels,hasLearningJourneyPanelsValue)"},clarifyBoxValue:{type:Object},
conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,
observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Gi("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.w("web_watch_provide_secondary_results_renderer")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.Gi("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},jsPanelHeight_:{type:Boolean,value:function(){return _.w("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.w("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},richItemMinWidth:{type:Number,value:function(){return _.$i("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.$i("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.w("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.w("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("web_watch_fullerscreen_deprecation_ui")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.w("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("web_watch_rounded_player_large")||_.w("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.w("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.w("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.w("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("web_watch_full_bleed_no_max_width_columns")}},
fixedPanels:{type:Boolean,reflectToAttribute:!0},panelsBesidePlayer:{type:Boolean,reflectToAttribute:!0},watchWhileWider:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("web_thumbnail_to_watch_transition")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var a={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",
mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.PW(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.PW(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},
microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}};this.is!=="ytd-watch-grid"||_.w("swa_prov_panels_ks")?this.is==="ytd-watch-learning-journey"?(a.learningJourneyEngagementPanels={id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},a.nonLearningJourneyEngagementPanels=
{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}):_.w("web_watch_inject_placeholder_panels")?a.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:_.w("kevlar_use_engagement_panel_management_component")||(a["data.engagementPanels"]={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}):(a.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},a.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return a},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-set-playlist-collapsed":"onSetPlaylistCollapsed","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var a=this;this.watchController=void 0;this.pageDisposeJobs=[function(){a.showMetadataPlaceholder_()},
function(){_.w("web_watch_dont_clear_comments")||a.clearComments_()},
function(){a.clearPlayerAds_()},
function(){a.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.w("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.w("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.Fmd(function(){return _.$t(a)},this.hostElement);
this.pageDisposeJobs.push(function(){a.youThereManager_.reset()});
_.w("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){a.resetFullerscreenEduButtonForNewPlayback_()}));
_.w("kevlar_watch_js_panel_height")&&(this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.sD;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);
this.playerEvents_.set("onAdStateChange",this.onAdStateChange_);this.playerEvents_.set("onStateChange",this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=
null;_.w("kevlar_watch_metadata_refresh")&&(this.watchMetadata=void 0);_.w("kevlar_watch_flexy_theater_manager")||(this.actionMap["yt-toggle-theater-mode"]="setTheaterModeRequested",this.actionMap["yt-is-theater"]="isTheater_",this.playerEvents_.set("SIZE_CLICKED",this.setTheaterModeRequested));_.w("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.gr(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(a){a&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:a}),a.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(a){_.w("kevlar_watch_flexy_theater_manager")&&(this.theater=a,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.w("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(a){!_.w("kevlar_watch_while_v2")&&!_.w("web_watch_pip")||a||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(a){this.active!==void 0&&(this.fullscreen=a,_.w("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(a){this.active!==void 0&&(_.io(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.w("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.w("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(a>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(a){this.initCsi_();this.updatePageData_(a)},
updatePageData_:function(a){var b=this;if(a)if(this.data===a){this.onPageLoadWithSameData_();var c;(c=this.watchController)==null||_.N$(c,this.data)}else this.data=a;this.playlist&&_.Jo({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Lo("nw");this.loading=!1;_.sl(_.zk,function(){b.initDclkstatus_();var d,e=((d=b.player)==null?void 0:d.getVideoData().cpn)||"";_.pmd(function(g,k){_.dsc(g,k,e)})})},
onPageLoadWithSameData_:function(){_.w("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var a=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!a);this.set("loadingData.playlistLoading",a&&a!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),a=this.watchNextSkeletonEl_.firstElementChild;a;)a.classList.remove("hidden"),a=a.nextElementSibling;if(_.w("kevlar_watch_frame0_loading_state")){var b,c,d;a=(b=this.loadingData)==null?void 0:(c=b.endpoint)==null?void 0:(d=c.watchEndpoint)==null?void 0:d.videoId;var e;a&&(e="https://i.ytimg.com/vi/"+a+"/frame0.jpg");_.E(this.hostElement).querySelector("#player").style.backgroundImage=e?"url("+e+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var a=_.E(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&a&&(a.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var b,c;(c=(b=this.watchMetadata).updateSentimentBarWidth)==
null||c.call(b);var d,e;(e=(d=this.watchMetadata).resize)==null||e.call(d)}_.w("kevlar_watch_frame0_loading_state")&&(_.E(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(a){var b=_.E(this.hostElement).querySelector(a);b?_.go(b,!1):_.Dl(new _.qj("Overscroll monitor not found for component: ",a))},
removeSplitScrollMouseTrap:function(a){var b=_.E(this.hostElement).querySelector(a);b?_.ho(b):_.Dl(new _.qj("Disposal component for  overscroll monitoring not found: ",a))},
onLoadingChanged_:function(a){a?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(a){var b=this;a?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.zk.addLowPriorityJob(function(){b.onWindowResized_(_.tq(!0))})},
updateTheaterModeState_:function(a){if(!_.w("kevlar_watch_flexy_theater_manager")){a=a||this.fullWindowMode_;if(this.theater!==void 0||a)this.theater=a;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();a&&_.vcd()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var a=this.theater;_.w("external_fullscreen")&&this.fullscreen&&(a=!0);a=a?_.E(this.hostElement).querySelector("#player-full-bleed-container"):_.E(this.hostElement).querySelector("#player-container-inner");var b=this.getPlayerContainer(),c=_.w("kevlar_watch_while_v2")||_.w("web_watch_pip");b.parentElement!==a&&(c&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.$t(this).appendTo(a,b),a.appendChild(_.E(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var a=this;return _.l(function(b){if(b.nextAddress==1)return _.p(b,_.v().resolve(_.$w).deactivate(),2);a.updatePlayerLocation();_.ue(b)})},
updateCinematicsLocation:function(){var a=this.getElement("CINEMATICS");if(a){var b=this.getCinematicsLocationContainer();a.parentElement!==b&&b.appendChild(a);var c;(c=this.watchController)==null||_.lmd(c)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.E(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.E(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(a,b){var c=document.documentElement.hasAttribute("dark"),d=c&&_.w("web_cinematic_theater_mode"),e=c&&_.w("web_cinematic_fullscreen");c=!c&&this.cinematicLightTheme;return a&&d||b&&e||(b||a)&&c},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var a=this,b;(b=this.watchController)==null||_.N$(b,this.data);_.w("kevlar_watch_flexy_comments_manager")||this.initComments_();_.w("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.v().resolve(_.TF).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=!0,this.visiblePanelIdentifiers_.clear(),
this.engagementPanelExpanded=!1,_.w("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.zk.addLowPriorityJob(function(){_.mo(a.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.w("web_watch_start_chat_in_theater_mode")){var c,d,e;if((c=this.data)==null?0:(d=c.contents)==null?0:(e=d.twoColumnWatchNextResults)==null?0:e.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var g,k;((g=this.data)==null?0:(k=g.contents)==null?0:k.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(a){var b;(b=this.watchController)==null||_.M$(b,this.playerData);a&&a.playabilityStatus&&(b=this.isVideoPlayable_(a.playabilityStatus,this.getPlayerOverlays_(this.data)),a=this.isLiveStreamOffline_(a.playabilityStatus),b&&!a||_.Qm(this,function(){_.Lo("pbu")}));
this.setPlayerAds_();_.mo(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(a){_.Yp().dispatch(_.Add(this.active));a?this.activate_():this.deactivate_()},
attached:function(){var a=this;this.watchController=new _.L$(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&_.M$(this.watchController,this.playerData);this.data&&_.N$(this.watchController,this.data);_.w("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var b=_.$t(this);_.w("kevlar_disable_prepare_player")||b.preparePlayer();
_.w("kevlar_watch_flexy_playlist_manager")||_.v().resolve(_.TF).setPlayer(b);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();b={"--ytd-watch-flexy-scrollbar-width":_.LW()+"px"};this.is==="ytd-watch-grid"&&(b["--ytd-watch-flexy-sidebar-width"]=_.O8+"px",b["--ytd-watch-flexy-sidebar-min-width"]=_.$i("kevlar_watch_grid_sidebar_min_width",300)+"px",b["--ytd-watch-grid-horizontal-page-margins"]=_.M8+"px",b["--ytd-watch-grid-columns-top-margins"]=_.qed+"px",b["--ytd-watch-grid-min-player-height-medium"]=
"360px");!_.$i("kv_pl_mx_sz_ks")&&_.$i("kevlar_watch_max_player_width")&&(b["--ytd-watch-flexy-max-player-width-wide-screen"]=_.wed+"px");_.$i("kevlar_watch_flexy_metadata_height")&&(b["--ytd-watch-flexy-space-below-player"]=_.xed+"px");this.safeUpdateStyles(b);_.w("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new gnd(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return a.onPlayerTouchPanDown_()}}));
_.w("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.E(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var a=_.LW(),b=_.N8+a,c=b;this.fixedPanels&&(b+=_.O8);var d=657+a;a=1327+a;_.E(this.hostElement).querySelector("#two-column-query").query="(min-width: "+b+"px)";_.E(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(d+"px), (min-height: 630px) and (min-width: ")+(b+"px) and (max-width: ")+(a+"px)");_.E(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(a+"px)");_.E(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+c+"px)"},
calculateCurrentPlayerSize_:function(){var a=_.E(this.hostElement).querySelector("#miniplayer-bar").firstChild;return a&&a.active||this.theater||_.w("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||!this.active||!this.windowSize_?new _.rf(NaN,NaN):_.wmd(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.wmd(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Xf(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var a=this;this.onWindowResized_(_.tq());_.w("browse_skeleton_removal_on_watch_killswitch")||_.Gi("IS_SHELL_LOAD")&&_.u7c();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var b=_.$t(this);b.addEventListener("yt-player-updated",_.gr(this,this.onPlayerUpdated_));b.getPlayerPromise().then(function(c){a.playerApiReady_(c)});
_.w("kevlar_watch_flexy_playlist_manager")||(b=_.v().resolve(_.TF),_.w("kevlar_watch_observe_playlist_navigations_killswitch")&&b.addEventListener("yt-navigate",_.gr(this,this.onYtNavigate_)),b.setPlaylistComponent(_.E(this.hostElement).querySelector("#playlist")),b.addEventListener("yt-playlist-data-updated",_.gr(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.zk.addLowPriorityJob(function(){_.io(a.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.$t(this).removeEventListener("yt-player-updated",_.gr(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.w("kevlar_watch_flexy_playlist_manager")){var a=_.v().resolve(_.TF);_.w("kevlar_watch_observe_playlist_navigations_killswitch")&&a.removeEventListener("yt-navigate",_.gr(this,this.onYtNavigate_));
a.cancelVideoSkip();a.removeEventListener("yt-playlist-data-updated",_.gr(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.w("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.io(this.hostElement,"yt-autonav-pause-player",!1);a=_.eo();_.w("kevlar_exit_fullscreen_leaving_watch")&&a&&_.fo(a)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(a){this.player&&this.player.updateVideoData({rvs:a.rvs})},
getPageContents:function(a){return a&&a.contents&&a.contents.twoColumnWatchNextResults&&a.contents.twoColumnWatchNextResults.results&&a.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(a){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",a)},
onRetrieveLocation_:function(a,b){b.hasComments?b.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):b.locationRetrieved("/related_ajax",void 0);a.stopPropagation()},
onSubscriptionChanged_:function(a,b){this.player&&(b?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.E7c("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.E(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.E(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(a){this.player=a;this.setPlayerState(a.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.w("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.w("kevlar_unified_player")||_.w("kevlar_player_new_bootstrap_adoption"))&&_.iw()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(a,b){b=b===void 0?!0:b;_.eo()&&_.w("external_fullscreen")&&_.fo(document.documentElement);this.theaterRequested_=a;b&&_.mj("wide",a?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.w("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.lo(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.io(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(a){_.El(a,typeof this.player),this.player&&_.El(a,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var a;((a=this.player)==null?0:a.isFullscreen())?this.player.toggleFullscreen():_.lo(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(a,b){return this.loading?b:!!Object.keys(a).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(a){if(a){a=_.h(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b.youThereRenderer&&_.Imd(this.youThereManager_,b.youThereRenderer)}},
setPlaylistData_:function(a){return a||{}},
userEngagementConfigDataChanged_:function(a){if(a)if(a.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var b=this.youThereManager_;_.Yk()<a.lowEngagementThresholdMs||_.Mmd(b,!0)}else a.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.lo(this.hostElement,"yt-autonav-pause-user-engagement",[a])},
isPlayerUnavailable_:function(a,b,c){return!!a&&!this.isVideoPlayable_(a,c)&&!b},
getPlayerOverlays_:function(a){return(a==null?void 0:a.playerOverlays)||null},
isVideoPlayable_:function(a,b){if(!a)return!1;var c=a.status==="OK"||a.status==="LIVE_STREAM_OFFLINE",d=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",a)||this.get("errorScreen.ypcTrailerRenderer",a);a=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",a);var e;b=b==null?void 0:(e=b.playerOverlayRenderer)==null?void 0:e.gatedActionsOverlayRenderer;return!!c||!!d||!!a||!!b},
hasWatchNextResponseErrorRenderer:function(a){var b=this.getPageContents(a),c,d,e,g,k;return!(a==null?0:(c=a.contents)==null?0:(d=c.twoColumnWatchNextResults)==null?0:d.secondaryResults)&&!!((e=b[0])==null?0:(g=e.itemSectionRenderer)==null?0:(k=g.contents[0])==null?0:k.backgroundPromoRenderer)},
isLiveStreamOffline_:function(a){return a?a.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(a,b,c){var d=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",b),e=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];e=_.w("web_no_skip_video_on_verification_checks")?(a==null?void 0:a.status)&&e.includes(a.status):a&&a.status==="AGE_CHECK_REQUIRED";var g=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",a);g==void 0&&(g=!0);!c||this.isVideoPlayable_(a,this.getPlayerOverlays_(b))||
d||e||!g||_.v().resolve(_.TF).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.ymd()},
onPlayerFeedbackStartRequest_:function(a){_.lo(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:a}])},
onPlayerFeedbackArticleRequest_:function(a){_.lo(this.hostElement,"yt-help-dialog-requested",[a])},
onPlayerYpcContentRequest_:function(){var a,b,c,d,e,g,k,m,n=((a=this.data)==null?NaN:(b=a.contents)==null?NaN:(c=b.twoColumnWatchNextResults)==null?NaN:(d=c.secondaryResults)==null?NaN:(e=d.secondaryResults)==null?NaN:(g=e.offerModule)==null?NaN:(k=g.tvfilmOfferModuleRenderer)==null?NaN:(m=k.actionButtons)==null?NaN:m.length)-1;a=[".offerButton.buttonRenderer.",".actionButtons."+(n>=0?n:0)+".buttonRenderer."];b=_.h(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(c=b.next();!c.done;c=b.next())for(c=c.value,d=_.h(a),e=d.next();!e.done;e=d.next())if(e="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+c+e.value,e=this.get(e+"navigationEndpoint",this.data)||this.get(e+"serviceEndpoint",this.data)||this.get(e+"command",this.data)){_.hs(e,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(a){_.io(this.hostElement,"yt-autonav-pause-player",a)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(a){a()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(a){switch(a){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(a){switch(a){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.io(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(a)},
setPlayerState:function(a){_.Yp().dispatch(_.XJb(a))},
onPlayerSubscribe_:function(a){_.lo(this.hostElement,"yt-player-subscribe",[a])},
onPlayerUnsubscribe_:function(a){_.lo(this.hostElement,"yt-player-unsubscribe",[a])},
onPlayerAdYtShowToast_:function(a){_.lo(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:a.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(a){if(a)return a},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.swatcherooBinaryLayout?this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue:this.isTwoColumns_?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowRichGridContinuationButton:function(){return this.is!=="ytd-watch-grid"?!1:this.commentTeaserEnabled?this.swatcherooBinaryLayout?!1:!this.commentsEntryPointHeaderRenderer:!this.isTwoColumns_},
computeShowExpandableMetadata:function(a){return!_.w("web_watch_move_summary_to_sd")&&!!a},
computeWatchMetadataRefresh:function(){return _.w("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var a,b,c,d;this.watchNextSecondaryResults=(a=this.data)==null?void 0:(b=a.contents)==null?void 0:(c=b.twoColumnWatchNextResults)==null?void 0:(d=c.secondaryResults)==null?void 0:d.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.w("swatcheroo_pbs_load_grid")&&!_.w("swatcheroo_provide_all_data_on_scheduled_job")){_.zk.cancelJob(this.setRichGridJobId_);var a,b,c,d,e,g,k;this.setRichGridRendererData((a=this.data)==null?void 0:(b=a.contents)==null?void 0:(c=b.twoColumnWatchNextResults)==null?void 0:(d=c.secondaryResults)==null?void 0:(e=d.secondaryResults)==null?void 0:(g=e.results)==null?void 0:(k=g[0])==null?
void 0:k.richGridRenderer)}},
setRichGridRendererData:function(a){this.richGridRendererData=a},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var a,b=(a=this.data)==null?void 0:a.engagementPanels;if(b==null?0:b.length){a=null;b=_.h(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;if(((d=c.engagementPanelSectionListRenderer)==null?void 0:d.targetId)==="engagement-panel-structured-description"){a=c;break}}var e,g,k;a=(e=a)==null?void 0:(g=e.engagementPanelSectionListRenderer)==null?void 0:(k=g.content)==null?void 0:k.structuredDescriptionContentRenderer;if(a==null?0:a.items){e=
[];g=_.h(a.items);for(k=g.next();!k.done;k=g.next()){k=k.value;if(!_.w("sd_horizontal_list_show_nav_killswitch")){var m=d=c=b=a=void 0,n=void 0,r=(a=k.horizontalCardListRenderer)==null?void 0:(b=a.header)==null?void 0:(c=b.richListHeaderRenderer)==null?void 0:(d=c.navigationButton)==null?void 0:(m=d.buttonRenderer)==null?void 0:(n=m.command)==null?void 0:n.commandExecutorCommand;r&&r.commands&&(r.commands=r.commands.filter(function(t){return!_.y(t,_.Hdd)}))}k.expandableVideoDescriptionBodyRenderer||
k.videoDescriptionHeaderRenderer||e.push(k)}return{items:e}}}},
constructWarning_:function(a){return{text:_.Vp(a),type:"WARNING"}},
isPlaShelfEnabled_:function(a){if((this.get("adPlacements",a)||[]).length)return!0;a=this.get("playerAds",a)||[];return!(!a.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",a[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var a=this;_.io(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.w("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var b=this.getScrollTop()>0;this.gestures_&&(b?this.gestures_.detach():this.gestures_.attach());b!==this.showFullerscreenEdu_&&_.w("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=b,_.$t(this).getPlayerPromise().then(function(c){c.updateFullerscreenEduButtonVisibility(a.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.io(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var a=this;this.commentsReady=!1;_.zk.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.sl(_.zk,function(){a.setComments_()},1E3)},
setComments_:function(){if(!_.w("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Lo("cmi");_.zk.cancelJob(this.setCommentsJobId_);var a=this.getPageContents(this.data);if(a&&a.length){a=_.h(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,this.get("itemSectionRenderer.sectionIdentifier",b)==="comment-item-section"){this.comments=b.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.io(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.w("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.w("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Lo("cmc")},
doRemoveComments_:function(){this.comments={};_.w("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.zk.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.zk.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(a,b){var c=_.y(b.endpoint,_.Un);c&&(!(b=this.get("data.currentVideoEndpoint.watchEndpoint"))||c.videoId!==b.videoId||c.playlistId&&c.playlistId!==b.playlistId||_.w("kevlar_watch_timestamp_seek_playlist_index_comparison")&&c.index!==void 0&&c.index!==b.index||typeof c.startTimeSeconds!=="number"||(a.stopPropagation(),this.setScrollTop(0),_.$t(this).getPlayerPromise().then(function(d){var e=c.startTimeSeconds;d.seekTo(e);d.wakeUpControls();e<d.getDuration()&&d.playVideo()})))},
updatePlayerStartTime_:function(){var a=_.omd();"t"in a&&(a=_.xmd(a.t),this.player.seekTo(a,!0))},
updateTitleFromWatchNext:function(a){a=this.getPageContents(a);var b,c;(a=_.Wp(a==null?void 0:(b=a[0])==null?void 0:(c=b.videoPrimaryInfoRenderer)==null?void 0:c.title))&&_.io(this.hostElement,"yt-update-title",a)},
updateTitle_:function(a){a=this.get("videoDetails.title",a)||"";_.io(this.hostElement,"yt-update-title",a)},
syncWithRemoteVideo_:function(a,b,c){if(this.active&&this.player){var d=this.player.getVideoData();if(d.video_id===c&&(c=d.list,_.w("polymer_enable_mdx_queue")&&c&&c.startsWith("RQ")&&(c=void 0),d.video_id!==a||c!=b)){var e;_.w("kevlar_player_watch_endpoint_navigation")?e=_.AUa(_.qmd(a,b)):e=this.buildWatchEndpoint_(a,b);_.io(this.hostElement,"yt-navigate",{endpoint:e,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(a,b,c){return _.dp(a,b,c)},
initDclkstatus_:function(){_.tmd()},
attachWatchPageSkeleton_:function(){var a=document.querySelector("#watch-page-skeleton");if(a){var b=a.querySelector("#primary-info"),c=a.querySelector("#secondary-info"),d=a.querySelector("#related");b&&_.E(this.hostElement).querySelector("#info-skeleton").appendChild(b);c&&_.E(this.hostElement).querySelector("#meta-skeleton").appendChild(c);d&&(_.E(this.hostElement).querySelector("#related-skeleton").appendChild(d),this.watchNextSkeletonEl_=d);_.qg(a)}},
handlePlayerUpdated_:function(){_.$t(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(a,b){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof b!=="undefined"){var c=this.watchNextSkeletonEl_.children,d=a&&a.indexSplices.length?a.indexSplices[0].index:0;a=Math.min(this.watchNextShownItems.length,c.length);b||(d=0,a=c.length);for(b=d;b<a;b++)c[b].classList.add("hidden")}},
onPlayerFullscreenChange_:function(a){_.w("external_fullscreen")||_.lo(this.hostElement,"yt-player-fullscreen",[a.fullscreen])},
onFullscreenChange_:function(a){this.fullscreen=a;this.gestures_&&this.gestures_.update(this.fullscreen);var b=_.$t(this);b.getPlayerPromise().then(function(c){c.setFauxFullscreen(!!_.eo())});
this.updateFullBleedElementLocations();a&&(b.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(a,b){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!b},
computeIsDonationShelfCollapsed_:function(a){return a},
computeShouldShowMerchShelf:function(a,b){return b&&!!a},
computeResponseHasComments:function(a){var b,c,d,e,g;return!!(a==null?0:(b=a.contents)==null?0:(c=b.twoColumnWatchNextResults)==null?0:(d=c.results)==null?0:(e=d.results)==null?0:(g=e.contents)==null?0:g.some(function(k){var m;return(k==null?void 0:(m=k.itemSectionRenderer)==null?void 0:m.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(a,b,c,d){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&d?!1:!!a&&!!Object.keys(a).length&&!b},
identity:_.Ma,onWindowResized_:function(a){this.windowSize_=a;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.w("kevlar_watch_js_panel_height")&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_()));_.w("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(a){var b=this;a&&a.type!=="dataloaded"&&a.type!=="dataupdated"||_.$t(this).getPlayerPromise().then(function(c){var d=c.getPlayerState();d!==5&&d!==0&&(c=1/c.getVideoAspectRatio(),b.videoHeightToWidthRatio_!==c&&(b.videoHeightToWidthRatio_=c))})},
schedulePlayerSizeUpdate_:function(a){var b=this,c=_.w("kevlar_watch_while_v2")||_.w("web_watch_pip"),d=function(){if(b.watchMetadata){var e,g;(g=(e=b.watchMetadata).resize)==null||g.call(e)}_.$t(b).getPlayerPromise().then(function(k){if(_.w("kevlar_set_internal_player_size")){if(!c||!b.isMiniplayerActive()){var m=b.calculateCurrentPlayerSize_();k.setInternalSize(m.width,m.height)}}else k.setSize(NaN,NaN);_.w("kevlar_watch_while")&&b.updateWatchWhileScrollThreshold_()})};
a?d():_.Gu(_.zk,d)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(a){this.set("data.survey",a.detail)},
onYtShowSurveyCommand_:function(a){this.set("data.survey",_.y(a,_.Emd).survey)},
onDownloadedVideoDeleted:function(a){var b=this,c,d;return _.l(function(e){if(e.nextAddress==1){if(!b.active||(c=b.playerData)==null||!c.offlineState||b.videoId!==a)return e.return();(d=b.player)==null||d.stopVideo();_.xF().navigatingAwayFromWatchDeletedVideo=!0;_.hs(_.N2a,b.hostElement);return _.p(e,_.xF().navigationFinishPromise,2)}_.xF().navigatingAwayFromWatchDeletedVideo=!1;_.ue(e)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var a;this.theater?a=_.Vw(.5625*this.windowSize_.width,480,this.windowSize_.height-185):a=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==a&&(this.watchWhileScrollThreshold_=a,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var a=_.E(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&a){var b=this.windowSize_.height>=624,c=this.active?this.getScrollTop():0;!a.active&&b&&c>=this.watchWhileScrollThreshold_?(a.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):a.active&&(!b||c<this.watchWhileScrollThreshold_&&!_.eo())&&(a.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var a=_.E(this.hostElement).querySelector("#secondary-inner");if(a){var b=_.E(this.hostElement).querySelector("#below"),c=_.E(this.hostElement).querySelector("#secondary"),d=_.E(this.hostElement).querySelector("#comments");d&&c&&b&&(this.defaultTwoColumnLayout?(a.appendChild(d),c.appendChild(a)):(b.appendChild(d),_.L8(b,a)))}}},
isTwoColumnsChanged_:function(a,b){if(a!==!0||b!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(a=_.E(this.hostElement).querySelector("#secondary-inner"))){b=_.E(this.hostElement).querySelector("#below");var c=_.E(this.hostElement).querySelector("#secondary"),d=_.E(this.hostElement).querySelector("#comments");d&&c&&b&&(this.isTwoColumns_?(a.appendChild(d),c.appendChild(a)):(b.appendChild(d),_.L8(b,a)))}}else{a=!_.w("live_chat_over_engagement_panels");b=_.E(this.hostElement).querySelector("#chat-container");
c=_.E(this.hostElement).querySelector("#plj-sidebar");d=_.E(this.hostElement).querySelector("#panels");var e=_.E(this.hostElement).querySelector("#plj-panels"),g=_.E(this.hostElement).querySelector("#plj-playlist"),k=_.E(this.hostElement).querySelector("#alerts"),m=_.E(this.hostElement).querySelector("#playlist"),n=_.E(this.hostElement).querySelector("#related"),r=_.E(this.hostElement).querySelector("#donation-shelf"),t=_.E(this.hostElement).querySelector("#comments");this.isTwoColumns_?(k=_.E(this.hostElement).querySelector("#secondary-inner"),
k.appendChild(c),c.appendChild(g),g.appendChild(m),c.appendChild(e),a&&k.appendChild(d),_.w("web_watch_theater_chat")||k.appendChild(b),a||k.appendChild(d),k.appendChild(r),k.appendChild(n)):(a&&_.Wy(d,k),_.Wy(m,k),_.w("web_watch_theater_chat")||_.Wy(b,k),a||_.Wy(d,k),_.Wy(r,k),t&&_.Wy(n,t));_.w("kevlar_watch_js_panel_height")&&this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.w("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.w("web_watch_theater_chat")){var a=_.E(this.hostElement).querySelector("#chat-container"),b=this.theater&&!this.fullscreen||_.w("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&b?_.w("web_watch_theater_chat_beside_player")?(b=_.E(this.hostElement).querySelector("#panels-full-bleed-container"),(a==null?void 0:a.parentElement)!==b&&b.append(a),this.panelsBesidePlayer=!0):
_.w("web_watch_theater_fixed_chat")&&(b=_.E(this.hostElement).querySelector("#columns"),(a==null?void 0:a.parentElement)!==b&&b.append(a),this.fixedPanels=!0):(_.w("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.w("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),b=_.E(this.hostElement).querySelector("#playlist"),a&&b?_.Xy(a,b):_.Dl(new _.qj("Missing element when updating chat location",{"chatContainer defined":!!a,"playlist defined":!!b})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(a,b){return _.w("sw_metadata_vis_toggle_ks")?!0:!!a||!!b},
computeForceDarkPanelTheme:function(a){return _.w("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&a:!1},
safeUpdateStyles:function(a){try{_.fr(this.hostElement,a)}catch(b){_.Dl(b)}},
videoHeightToWidthRatioChanged_:function(a,b){b&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.w("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(a){this.videoHeightToWidthRatio_=1/a},
computeIsVerticalVideo_:function(a){return a>=1},
computeIsFourThreeToSixteenNineVideo_:function(a){return a<=.7501&&a>=.5624},
computeIsExtraWideVideo_:function(a){return a<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.$t(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.$t(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.Nmd(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(a){var b=_.vG(a)||0;_.uG(a,b+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var a=_.vG("yt-fullerscreen-edu-button-click-count")||0,b=_.vG("yt-fullerscreen-edu-button-shown-count")||0,c=_.$i("external_fullscreen_button_shown_threshold"),d=a>=_.$i("external_fullscreen_button_click_threshold")||b>=c;_.$t(this).getPlayerPromise().then(function(e){e.updateFullerscreenEduButtonSubtleModeState(d)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(a,b){return b},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.v().resolve(_.TF).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var a=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.zk.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.zk.addLowPriorityJob(function(){a.fullHeightPanelPositionUpdateJobId=0;var b=_.E(a.hostElement).querySelector("#secondary"),c=_.E(a.hostElement).querySelector("#fixed-secondary");b=b.getBoundingClientRect();var d=b.width;a.swatcherooSqueezeback&&
(d+=_.M8);if(a.swatcherooSqueezeback){var e=_.E(a.hostElement).querySelector("#squeezeback-constraining-container");e.style.width=d+"px";e.style.flex="0 0 "+d+"px"}c.style.width=d+"px";c.style.left=b.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var a=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.zk.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.zk.addLowPriorityJob(function(){a.panelMaxHeightUpdateJob_=0;var b;!a.isTwoColumns_||a.theater||a.fullscreen?b=460:b=a.calculateNormalPlayerSize_().height;var c=b+"px";_.w("live_chat_taller_height")&&!a.theater&&(c="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.w("live_chat_medium_height")&&!a.theater&&(c="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.w("live_chat_scaled_height")&&!a.theater&&(c="calc(100vh - var(--ytd-toolbar-height) - 238px)");a.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":b+"px","--ytd-watch-flexy-chat-max-height":c,"--ytd-watch-flexy-structured-description-max-height":b+"px","--ytd-watch-flexy-comments-panel-max-height":b+"px","--ytd-comments-engagement-panel-content-height":b+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var a=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.w("web_watch_flexy_adjust_sidebar_width"))&&!_.w("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.zk.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.zk.addLowPriorityJob(function(){a.panelMaxHeightUpdateJob_=0;if(a.isTwoColumns_){var b=_.vmd(a.windowSize_,a.calculateNormalPlayerSize_().width);b!==a.currentSidebarWidth&&(a.currentSidebarWidth=
b,a.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":b+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(a){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",a)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.po(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(a){var b=_.E(this.hostElement).querySelector("#engagement-panel-scrim");a?b.addEventListener("tap",_.gr(this,this.onEngagementPanelScrimClick_)):b.removeEventListener("tap",_.gr(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(a){if(this.hostElement.contains(a)&&!this.scrollToAnimation_.isAnimating()){var b=a.offsetTop-24;a=a.offsetTop+a.offsetHeight+24;var c=this.getPageScrollingElement(),d=this.getScrollTop(),e=d+c.clientHeight-56;if(b<d+56)b-=56;else if(a>e)b=a-c.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,b),500)}},
onYtSignalActionScrollToComments:function(){var a=this.hostElement.querySelector("#comments");if(a&&!this.scrollToAnimation_.isAnimating()){a=a.offsetTop-56-24;if(_.w("kevlar_comment_teaser_scroll_to_midpoint")&&(a-=_.sf().height/3,a<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,a),500)}},
onYtEngagementPanelVisibleChanged:function(a,b,c){this.active&&this.trackEngagementPanelVisibility&&!_.gld.includes(c)&&(b==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(c),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.mo(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),b!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&b!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(c),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(a){return a?"":"watch-active-metadata"},
computeNewMetadataClass:function(a){return a?"watch-active-metadata":""},
computeFullBleedPlayer:function(a,b){return a||b},
computeDefaultLayout:function(a){return!a},
computeDefaultTwoColumnLayout:function(a,b){return!a&&b},
swatcherooUpdatePanelsLocation:function(a,b,c,d,e,g){if(this.is==="ytd-watch-grid"){b=a&&!b;this.swatcherooSplitScroll&&(b?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));c=_.E(this.hostElement).querySelector("#panels");var k=_.E(this.hostElement).querySelector("#playlist"),m=_.E(this.hostElement).querySelector("#fixed-secondary"),n=_.E(this.hostElement).querySelector("#fixed-below"),
r=_.E(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),t=_.E(this.hostElement).querySelector("#chat-container");g&&(a?m.appendChild(c):n.appendChild(c));e?a?m.appendChild(t):n.appendChild(t):_.Xy(t,r);d?a?m.appendChild(k):n.appendChild(k):_.Xy(k,r);this.swatcherooSplitScroll&&(a=_.E(this.hostElement).querySelector("#secondary"),d=_.E(this.hostElement).querySelector("#columns"),e=_.E(this.hostElement).querySelector("#fixed-columns-secondary"),b?e.appendChild(a):
d.appendChild(a))}},
computeMetadataSkinnyMode:function(a,b,c){return this.is!=="ytd-watch-grid"?!1:a?c:b},
computeWatchWhilePanelsActive:function(a,b){return a||b},
computeNoBorderOnChat:function(a){return _.w("web_watch_theater_chat_no_border")&&a},
computeLiveChatPresentAndExpanded:function(a,b){return a&&!b},
computePanelExpanded:function(a,b,c){return a||b||c},
computeSwatcherooSqueezeback:function(a,b,c){return this.is!=="ytd-watch-grid"||_.w("ww_squeezeback_killswitch")?!1:a&&b&&c},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(a){_.$t(this).getPlayerPromise().then(function(b){var c;(c=b.changeMarkerVisibility)==null||c.call(b,_.y(a,_.Q$).isVisible||!1,_.y(a,_.Q$).entityKeys||[],_.y(a,_.Q$).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(a){this.liveChatCollapsed=a.detail;_.Yp().dispatch(_.Cmd(a.detail))},
onSetPlaylistCollapsed:function(a){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!a)},
provideRenderingData:function(a,b){switch(a){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=b;break;case "PRIMARY_INFO":_.w("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=b);this.videoPrimaryInfoRendererValue=b==null?void 0:b.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.w("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=b);this.videoSecondaryInfoRendererValue=b==null?void 0:b.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
b;break;case "CLARIFICATION":this.clarifyBoxValue=b;break;case "LIVE_CHAT":this.conversationBar=b;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=b;break;case "PLAYLIST":this.externalPlaylistData_=b!=null?b:{};break;case "MERCH_SHELF":this.merchShelfValue=b==null?void 0:b.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=b;break;case "OFFER_MODULE":this.offerModule=b;break;case "LIMITED_STATE":this.limitedStateValue=b;break;case "DONATION_SHELF":this.donation=b;break;
case "ALERTS":this.alertsValue=b;break;case "COMMENTS":this.comments=b;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=b;break;case "ENGAGEMENT_PANELS":this.engagementPanels=b;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=b;break;case "RICH_GRID_RENDERER":this.richGridRendererData=b;break;case "EXPANDABLE_METADATA":this.expandableMetadata=b;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=b}},
toggleCinematicsActive:function(a){this.cinematicsActive=a},
isMiniplayerActive:function(){return _.v().resolve(_.$w).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(a){return a.filter(function(b){var c;return ind.includes((b==null?void 0:(c=b.engagementPanelSectionListRenderer)==null?void 0:c.targetId)||"")})},
getNonLearningJourneyEngagementPanels:function(a){return a.filter(function(b){var c;return!ind.includes((b==null?void 0:(c=b.engagementPanelSectionListRenderer)==null?void 0:c.targetId)||"")})},
getHasLearningJourneyPanels:function(a){return a.length>0}}];var jnd;var knd=function(){var a=_.P.apply(this,arguments)||this;a.flexy=!0;a.learningJourney=!0;a.roundedInfoPanel=!0;a.viewTransitionEnabled=_.w("enable_player_resize_transition");a.smallerChatMinHeight=_.w("live_chat_smaller_min_height");a.cinematicTheaterMode=_.w("web_cinematic_theater_mode");a.transparentTheaterMode=_.w("web_transparent_theater_mode");a.cinematicFullscreen=_.w("web_cinematic_fullscreen");a.useLargerMaxPlayerValue=_.w("kevlar_flexy_use_larger_player_value");a.cinematicFullscreenV2=_.w("web_cinematic_fullscreen_v2");
a.isDarkTheme=document.documentElement.hasAttribute("dark");a.theaterLargerPlayer=_.w("web_watch_theater_larger_player");a.defaultCollapsePlaylist=_.w("web_watch_default_collapse_playlist");return a};
_.z(knd,_.P);_.f=knd.prototype;_.f.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.f.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.f.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.f.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.f.ready=function(){var a=this,b=function(){a.onColumnScroll()};
this.primary.addEventListener("scroll",b);this.secondary.addEventListener("scroll",b)};
_.f.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.f.updateIsTwoColumnsFromBinding=function(a){_.w("web_watch_update_narrow_width_killswitch")||_.Yp().dispatch(_.Bdd(!a.detail.value));this.ytdWatchBehavior.isTwoColumns_=a.detail.value};
_.f.updateFlexySmallWindowFromBinding=function(a){this.ytdWatchBehavior.flexySmallWindow_=a.detail.value};
_.f.updateFlexyLargeWindowFromBinding=function(a){this.ytdWatchBehavior.flexyLargeWindow_=a.detail.value};
_.f.updateWatchWhileWindowSizeSufficientFromBinding=function(a){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=a.detail.value};
_.f.updateWatchNextCanShowMoreFromBinding=function(a){this.ytdWatchBehavior.watchNextCanShowMore=a.detail.value};
_.f.updateShownItemsFromBinding=function(a){a.detail.path?this.set(a.detail.path,a.detail.value):this.ytdWatchBehavior.watchNextShownItems=a.detail.value};
_.f.getElement=function(a){switch(a){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20267_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20267_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Um.Object.defineProperties(knd.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.pageVisualEffects)return!1;for(var b=0;b<this.data.pageVisualEffects.length;b++)if(a=_.y(this.data.pageVisualEffects[b],_.F6))return b=void 0,(b=a.config)==null?void 0:b.enableInLightTheme;return!1}}});
_.Um.Object.defineProperties(knd,{template:{configurable:!0,enumerable:!0,get:function(){if(jnd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);jnd=a}a=jnd;return a}}});
var $$=knd;$$.prototype.updateMiniplayerIsActiveValue=$$.prototype.updateMiniplayerIsActiveValue;$$.prototype.updateScrollTopValue=$$.prototype.updateScrollTopValue;$$.prototype.updateFullscreenValue=$$.prototype.updateFullscreenValue;$$.prototype.updateTheaterValue=$$.prototype.updateTheaterValue;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],$$.prototype,"ytComponentBehavior",void 0);
_.U([_.H(hnd.YtdLearningJourneyWatchBehavior),_.W("design:type",Object)],$$.prototype,"ytdWatchBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],$$.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],$$.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],$$.prototype,"playerData",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$$.prototype,"flexy",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$$.prototype,"learningJourney",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$$.prototype,"roundedInfoPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$$.prototype,"viewTransitionEnabled",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$$.prototype,"smallerChatMinHeight",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$$.prototype,"cinematicTheaterMode",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$$.prototype,"transparentTheaterMode",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$$.prototype,"cinematicFullscreen",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$$.prototype,"useLargerMaxPlayerValue",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$$.prototype,"cinematicFullscreenV2",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$$.prototype,"isDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$$.prototype,"theaterLargerPlayer",void 0);_.U([_.O(),_.W("design:type",Object)],$$.prototype,"defaultCollapsePlaylist",void 0);_.U([_.O({selector:_.JW}),_.W("design:type",Object)],$$.prototype,"theaterValue",void 0);
_.U([_.O({selector:_.H8}),_.W("design:type",Object)],$$.prototype,"fullscreenValue",void 0);_.U([_.O({selector:_.I8}),_.W("design:type",Object)],$$.prototype,"scrollTopValue",void 0);_.U([_.O({selector:_.Hp}),_.W("design:type",Object)],$$.prototype,"miniplayerIsActiveValue",void 0);_.U([_.jY("ytd-player"),_.W("design:type",HTMLElement)],$$.prototype,"ytdPlayer",void 0);_.U([_.ir("#playlist"),_.W("design:type",HTMLElement)],$$.prototype,"JSC$20267_ytdPlaylistPanelRenderer",void 0);
_.U([_.jY("ytd-comments"),_.W("design:type",HTMLElement)],$$.prototype,"ytdComments",void 0);_.U([_.ir("#primary"),_.W("design:type",HTMLElement)],$$.prototype,"primary",void 0);_.U([_.ir("#secondary"),_.W("design:type",HTMLElement)],$$.prototype,"secondary",void 0);_.U([_.ir("#player-container"),_.W("design:type",HTMLElement)],$$.prototype,"playerContainer",void 0);_.U([_.ir("#cinematics"),_.W("design:type",HTMLElement)],$$.prototype,"JSC$20267_cinematics",void 0);
_.U([_.N("theaterValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$$.prototype,"updateTheaterValue",null);_.U([_.N("fullscreenValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$$.prototype,"updateFullscreenValue",null);_.U([_.N("scrollTopValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$$.prototype,"updateScrollTopValue",null);
_.U([_.N("miniplayerIsActiveValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$$.prototype,"updateMiniplayerIsActiveValue",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],$$.prototype,"cinematicLightTheme",null);$$=_.U([_.Q({is:"ytd-watch-learning-journey"})],$$);_.LH.registerService(_.Z7a,$$);
_.Dg();
}catch(e){_._DumpException(e)}
try{
_.Cg("Tm0L3c");
var Ymd;var Zmd;var $md=function(){return _.P.apply(this,arguments)||this};
_.z($md,_.P);var and=$md;and=_.U([_.Q({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],and);
_.S(and,"ytd-ghost-comments-renderer",function(){if(Zmd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-comments-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-section style-scope ytd-ghost-comments-renderer">\n  <div class="header ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="input-box ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="avatar style-scope ytd-ghost-comments-renderer">\n      <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n    </div>\n    <div class="ghost-input style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);Zmd=a}a=Zmd;return a},{mode:1});var bnd;var cnd=function(){return _.P.apply(this,arguments)||this};
_.z(cnd,_.P);var dnd=cnd;dnd=_.U([_.Q({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],dnd);
_.S(dnd,"ytd-ghost-watch-metadata-renderer",function(){if(bnd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-watch-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-card style-scope ytd-ghost-watch-metadata-renderer">\n  <div class="title style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="byline style-scope ytd-ghost-watch-metadata-renderer">\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n  </div>\n  <div class="description style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-3 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="owner-box style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="left style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n      <div class="text style-scope ytd-ghost-watch-metadata-renderer">\n        <div class="top style-scope ytd-ghost-watch-metadata-renderer"></div>\n        <div class="bottom style-scope ytd-ghost-watch-metadata-renderer"></div>\n      </div>\n    </div>\n    <div class="right style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    </div>\n  </div>\n  <div class="action-bar style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);bnd=a}a=bnd;return a},{mode:1});var Z$=function(){var a=_.P.apply(this,arguments)||this;a.ghostGridRenderer={rows:6};a.roundedInfoPanel=!0;a.hideOfferModules=!0;a.smallerChatMinHeight=_.w("live_chat_smaller_min_height");a.cinematicTheaterMode=_.w("web_cinematic_theater_mode");a.transparentTheaterMode=_.w("web_transparent_theater_mode");a.darkerPanels=_.w("web_watch_darker_panels");a.cinematicFullscreen=_.w("web_cinematic_fullscreen");a.cinematicFullscreenV2=_.w("web_cinematic_fullscreen_v2");a.isDarkTheme=document.documentElement.hasAttribute("dark");
return a};
_.z(Z$,_.P);_.f=Z$.prototype;_.f.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.f.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.f.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.f.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.f.ready=function(){var a=this,b=function(){a.onColumnScroll()};
this.primary.addEventListener("scroll",b);this.secondary.addEventListener("scroll",b)};
_.f.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.f.updateIsTwoColumnsFromBinding=function(a){this.ytdWatchBehavior.isTwoColumns_=a.detail.value};
_.f.updateFlexySmallWindowFromBinding=function(a){this.ytdWatchBehavior.flexySmallWindow_=a.detail.value};
_.f.updateFlexyLargeWindowFromBinding=function(a){this.ytdWatchBehavior.flexyLargeWindow_=a.detail.value};
_.f.updateWatchWhileWindowSizeSufficientFromBinding=function(a){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=a.detail.value};
_.f.updateWatchNextCanShowMoreFromBinding=function(a){this.ytdWatchBehavior.watchNextCanShowMore=a.detail.value};
_.f.updateShownItemsFromBinding=function(a){_.w("swatcheroo_direct_use_rich_grid")||(a.detail.path?this.set(a.detail.path,a.detail.value):this.ytdWatchBehavior.watchNextShownItems=a.detail.value)};
_.f.getElement=function(a){switch(a){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20258_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20258_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Um.Object.defineProperties(Z$.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.pageVisualEffects)return!1;for(var b=0;b<this.data.pageVisualEffects.length;b++)if(a=_.y(this.data.pageVisualEffects[b],_.F6))return b=void 0,(b=a.config)==null?void 0:b.enableInLightTheme;return!1}}});
Z$.prototype.updateMiniplayerIsActiveValue=Z$.prototype.updateMiniplayerIsActiveValue;Z$.prototype.updateScrollTopValue=Z$.prototype.updateScrollTopValue;Z$.prototype.updateFullscreenValue=Z$.prototype.updateFullscreenValue;Z$.prototype.updateTheaterValue=Z$.prototype.updateTheaterValue;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Z$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],Z$.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.Vmd.YtdWatchBehavior),_.W("design:type",Object)],Z$.prototype,"ytdWatchBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],Z$.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Z$.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],Z$.prototype,"ghostGridRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],Z$.prototype,"playerData",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z$.prototype,"roundedInfoPanel",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z$.prototype,"hideOfferModules",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z$.prototype,"smallerChatMinHeight",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z$.prototype,"cinematicTheaterMode",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z$.prototype,"transparentTheaterMode",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z$.prototype,"darkerPanels",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z$.prototype,"cinematicFullscreen",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z$.prototype,"cinematicFullscreenV2",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z$.prototype,"isDarkTheme",void 0);_.U([_.O({selector:_.JW}),_.W("design:type",Object)],Z$.prototype,"theaterValue",void 0);
_.U([_.O({selector:_.H8}),_.W("design:type",Object)],Z$.prototype,"fullscreenValue",void 0);_.U([_.O({selector:_.I8}),_.W("design:type",Object)],Z$.prototype,"scrollTopValue",void 0);_.U([_.O({selector:_.Hp}),_.W("design:type",Object)],Z$.prototype,"miniplayerIsActiveValue",void 0);_.U([_.ir("#ytd-player"),_.W("design:type",HTMLElement)],Z$.prototype,"ytdPlayer",void 0);_.U([_.ir("#playlist"),_.W("design:type",HTMLElement)],Z$.prototype,"JSC$20258_ytdPlaylistPanelRenderer",void 0);
_.U([_.ir("#ytd-comments"),_.W("design:type",HTMLElement)],Z$.prototype,"ytdComments",void 0);_.U([_.ir("#primary"),_.W("design:type",HTMLElement)],Z$.prototype,"primary",void 0);_.U([_.ir("#secondary"),_.W("design:type",HTMLElement)],Z$.prototype,"secondary",void 0);_.U([_.ir("#player-container"),_.W("design:type",HTMLElement)],Z$.prototype,"playerContainer",void 0);_.U([_.ir("#cinematics"),_.W("design:type",HTMLElement)],Z$.prototype,"JSC$20258_cinematics",void 0);
_.U([_.N("theaterValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z$.prototype,"updateTheaterValue",null);_.U([_.N("fullscreenValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z$.prototype,"updateFullscreenValue",null);_.U([_.N("scrollTopValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z$.prototype,"updateScrollTopValue",null);
_.U([_.N("miniplayerIsActiveValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z$.prototype,"updateMiniplayerIsActiveValue",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Z$.prototype,"cinematicLightTheme",null);
_.S(Z$,"ytd-watch-grid",function(){if(Ymd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n          <ytd-rich-grid-renderer continuation-show-button="[[showRichGridContinuationButton]]" data="[[richGridRendererData]]" disable-upgrade$="[[!richGridRendererData]]" hidden="[[!richGridRendererData]]" hide-chips-bar="" is-watch-default-layout="[[defaultTwoColumnLayout]]" item-max-width="[[richItemMaxWidth]]" item-min-width="[[richItemMinWidth]]" reduced-bottom-margin="" row-reduced-horizontal-margin="" transparent-background-chips-bar="" class="style-scope ytd-watch-grid">\n          </ytd-rich-grid-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[richGridRendererData]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);Ymd=a}a=Ymd;return a},{mode:2});_.LH.registerService(_.Y7a,Z$);
_.Dg();
}catch(e){_._DumpException(e)}
try{
_.Cg("CF909");
var Wmd;var Xmd=function(){var a=_.P.apply(this,arguments)||this;a.flexy=!0;a.roundedInfoPanel=!0;a.viewTransitionEnabled=_.w("enable_player_resize_transition");a.smallerChatMinHeight=_.w("live_chat_smaller_min_height");a.cinematicTheaterMode=_.w("web_cinematic_theater_mode");a.transparentTheaterMode=_.w("web_transparent_theater_mode");a.cinematicFullscreen=_.w("web_cinematic_fullscreen");a.useLargerMaxPlayerValue=_.w("kevlar_flexy_use_larger_player_value");a.cinematicFullscreenV2=_.w("web_cinematic_fullscreen_v2");
a.isDarkTheme=document.documentElement.hasAttribute("dark");a.theaterLargerPlayer=_.w("web_watch_theater_larger_player");a.defaultCollapsePlaylist=_.w("web_watch_default_collapse_playlist");a.retroModeReduxValue=!1;return a};
_.z(Xmd,_.P);_.f=Xmd.prototype;_.f.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.f.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.f.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.f.updateRetroModeReduxValue=function(){_.w("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.f.ready=function(){var a=this,b=function(){a.onColumnScroll()};
this.primary.addEventListener("scroll",b);this.secondary.addEventListener("scroll",b)};
_.f.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.f.updateIsTwoColumnsFromBinding=function(a){_.w("web_watch_update_narrow_width_killswitch")||_.Yp().dispatch(_.Bdd(!a.detail.value));this.ytdWatchBehavior.isTwoColumns_=a.detail.value};
_.f.updateFlexySmallWindowFromBinding=function(a){this.ytdWatchBehavior.flexySmallWindow_=a.detail.value};
_.f.updateFlexyLargeWindowFromBinding=function(a){this.ytdWatchBehavior.flexyLargeWindow_=a.detail.value};
_.f.updateWatchWhileWindowSizeSufficientFromBinding=function(a){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=a.detail.value};
_.f.updateWatchNextCanShowMoreFromBinding=function(a){this.ytdWatchBehavior.watchNextCanShowMore=a.detail.value};
_.f.updateShownItemsFromBinding=function(a){a.detail.path?this.set(a.detail.path,a.detail.value):this.ytdWatchBehavior.watchNextShownItems=a.detail.value};
_.f.getElement=function(a){switch(a){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20253_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20253_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Um.Object.defineProperties(Xmd.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.pageVisualEffects)return!1;for(var b=0;b<this.data.pageVisualEffects.length;b++)if(a=_.y(this.data.pageVisualEffects[b],_.F6))return b=void 0,(b=a.config)==null?void 0:b.enableInLightTheme;return!1}}});
_.Um.Object.defineProperties(Xmd,{template:{configurable:!0,enumerable:!0,get:function(){if(Wmd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);Wmd=a}a=Wmd;return a}}});
var Y$=Xmd;Y$.prototype.updateRetroModeReduxValue=Y$.prototype.updateRetroModeReduxValue;Y$.prototype.updateScrollTopValue=Y$.prototype.updateScrollTopValue;Y$.prototype.updateFullscreenValue=Y$.prototype.updateFullscreenValue;Y$.prototype.updateTheaterValue=Y$.prototype.updateTheaterValue;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Y$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],Y$.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.Vmd.YtdWatchBehavior),_.W("design:type",Object)],Y$.prototype,"ytdWatchBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],Y$.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Y$.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],Y$.prototype,"playerData",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Y$.prototype,"flexy",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Y$.prototype,"roundedInfoPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Y$.prototype,"viewTransitionEnabled",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Y$.prototype,"smallerChatMinHeight",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Y$.prototype,"cinematicTheaterMode",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Y$.prototype,"transparentTheaterMode",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Y$.prototype,"cinematicFullscreen",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Y$.prototype,"useLargerMaxPlayerValue",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Y$.prototype,"cinematicFullscreenV2",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Y$.prototype,"isDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Y$.prototype,"theaterLargerPlayer",void 0);_.U([_.O(),_.W("design:type",Object)],Y$.prototype,"defaultCollapsePlaylist",void 0);_.U([_.O({selector:_.JW}),_.W("design:type",Object)],Y$.prototype,"theaterValue",void 0);_.U([_.O({selector:_.H8}),_.W("design:type",Object)],Y$.prototype,"fullscreenValue",void 0);
_.U([_.O({selector:_.I8}),_.W("design:type",Object)],Y$.prototype,"scrollTopValue",void 0);_.U([_.O({selector:_.Hp}),_.W("design:type",Object)],Y$.prototype,"miniplayerIsActive",void 0);_.U([_.O({selector:function(a){return a.watch.isWatchRetroMode}}),
_.W("design:type",Object)],Y$.prototype,"retroModeReduxValue",void 0);_.U([_.jY("ytd-player"),_.W("design:type",HTMLElement)],Y$.prototype,"ytdPlayer",void 0);_.U([_.ir("#playlist"),_.W("design:type",HTMLElement)],Y$.prototype,"JSC$20253_ytdPlaylistPanelRenderer",void 0);_.U([_.jY("ytd-comments"),_.W("design:type",HTMLElement)],Y$.prototype,"ytdComments",void 0);_.U([_.ir("#primary"),_.W("design:type",HTMLElement)],Y$.prototype,"primary",void 0);
_.U([_.ir("#secondary"),_.W("design:type",HTMLElement)],Y$.prototype,"secondary",void 0);_.U([_.ir("#player-container"),_.W("design:type",HTMLElement)],Y$.prototype,"playerContainer",void 0);_.U([_.ir("#cinematics"),_.W("design:type",HTMLElement)],Y$.prototype,"JSC$20253_cinematics",void 0);_.U([_.N("theaterValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y$.prototype,"updateTheaterValue",null);
_.U([_.N("fullscreenValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y$.prototype,"updateFullscreenValue",null);_.U([_.N("scrollTopValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y$.prototype,"updateScrollTopValue",null);_.U([_.N("retroModeReduxValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y$.prototype,"updateRetroModeReduxValue",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Y$.prototype,"cinematicLightTheme",null);Y$=_.U([_.Q({is:"ytd-watch-flexy"})],Y$);_.LH.registerService(_.X7a,Y$);
_.Dg();
}catch(e){_._DumpException(e)}
try{
_.Cg("nmfa2d");
var nmd;var P$=function(){var a=_.P.apply(this,arguments)||this;a.hidden=!1;a.errorScreen=null;a.playlistData={};return a};
_.z(P$,_.P);_.f=P$.prototype;_.f.getPlayer=function(){return this.ytdPlayer};
_.f.configureRendererStamper=function(){return{singleColumnContents:{id:"single-column",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},clarificationData:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",
attributes:{"class":"watch"}}}},donationShelf:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[hasChat]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},richMetadataRowContainer:{id:"rich-metadata",mapping:{metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{fixie:!0}}}},
ticketShelf:{id:"ticket-shelf",mapping:{ticketShelfRenderer:"ytd-ticket-shelf-renderer"}},"playerData.playerAds":{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.PW(["aa","eocs"])}}};
_.f.onActiveChanged=function(){_.Yp().dispatch(_.Add(this.ytPageBehavior.active))};
_.f.playerDataChanged=function(){var a;(a=this.watchController)==null||_.M$(a,this.playerData)};
_.f.dataChanged=function(){var a;(a=this.watchController)==null||_.N$(a,this.data)};
_.f.sizeChanged=function(){var a,b;(b=(a=this.metadata).resize)==null||b.call(a)};
_.f.attached=function(){this.watchController=new _.L$(this);this.playerData&&_.M$(this.watchController,this.playerData);this.data&&_.N$(this.watchController,this.data)};
_.f.detached=function(){_.Xf(this.watchController);this.watchController=void 0};
_.f.getPlayerContainer=function(){return this.playerContainer};
_.f.getElement=function(a){switch(a){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20205_playlistPanel}};
_.f.provideRenderingData=function(a,b){switch(a){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=b;break;case "ERROR_SCREEN":this.errorScreen=b!=null?b:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=b;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=b;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=b;break;case "RICH_METADATA":this.richMetadataRowContainer=b;break;case "CLARIFICATION":this.clarificationData=b;break;case "PLAYLIST":this.playlistData=
b!=null?b:{};break;case "MERCH_SHELF":this.merchShelf=b;break;case "TICKET_SHELF":this.ticketShelf=b;break;case "LIMITED_STATE":this.limitedState=b;break;case "DONATION_SHELF":this.donationShelf=b;break;case "ALERTS":this.alerts=b}};
_.Um.Object.defineProperties(P$.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return!this.hidden&&!!((a=this.data)==null?0:(b=a.contents)==null?0:(c=b.twoColumnWatchNextResults)==null?0:c.conversationBar)}}});
P$.prototype.sizeChanged=P$.prototype.sizeChanged;P$.prototype.dataChanged=P$.prototype.dataChanged;P$.prototype.playerDataChanged=P$.prototype.playerDataChanged;P$.prototype.onActiveChanged=P$.prototype.onActiveChanged;_.U([_.H(_.I6.YtPageBehavior),_.W("design:type",Object)],P$.prototype,"ytPageBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],P$.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],P$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],P$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],P$.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"playerData",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],P$.prototype,"hidden",void 0);_.U([_.ir("#ytd-player"),_.W("design:type",HTMLElement)],P$.prototype,"ytdPlayer",void 0);_.U([_.ir("#player-container"),_.W("design:type",HTMLElement)],P$.prototype,"playerContainer",void 0);_.U([_.ir("#metadata"),_.W("design:type",Object)],P$.prototype,"metadata",void 0);_.U([_.ir("#playlist"),_.W("design:type",HTMLElement)],P$.prototype,"JSC$20205_playlistPanel",void 0);
_.U([_.O({selector:_.Ccd,reflectToAttribute:!0}),_.W("design:type",Object)],P$.prototype,"fixie",void 0);_.U([_.O({selector:_.Bcd,reflectToAttribute:!0}),_.W("design:type",Object)],P$.prototype,"singleColumn",void 0);_.U([_.O({selector:function(a){return _.JW(a)&&!_.H8(a)},
reflectToAttribute:!0}),_.W("design:type",Object)],P$.prototype,"theater",void 0);_.U([_.O({selector:_.H8,reflectToAttribute:!0}),_.W("design:type",Object)],P$.prototype,"fullscreen",void 0);_.U([_.O({selector:_.Acd}),_.W("design:type",Object)],P$.prototype,"windowSize",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"singleColumnContents",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"errorScreen",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"playlistData",void 0);
_.U([_.O(),_.W("design:type",Object)],P$.prototype,"videoPrimaryInfoRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"videoSecondaryInfoRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"richMetadataRowContainer",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"clarificationData",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"commentsEntryPointHeaderRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"ticketShelf",void 0);
_.U([_.O(),_.W("design:type",Object)],P$.prototype,"merchShelf",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"donationShelf",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"limitedState",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"alerts",void 0);_.U([_.K("playlistData"),_.W("design:type",Object),_.W("design:paramtypes",[])],P$.prototype,"hasPlaylistData",null);
_.U([_.K("data","hidden"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],P$.prototype,"hasChat",null);_.U([_.N("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P$.prototype,"onActiveChanged",null);_.U([_.N("playerData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P$.prototype,"playerDataChanged",null);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P$.prototype,"dataChanged",null);_.U([_.N("windowSize","singleColumn"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P$.prototype,"sizeChanged",null);
_.S(P$,"ytd-watch-fixie",function(){if(nmd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-fixie--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="single-column" hidden="[[!singleColumnContents]]" class="style-scope ytd-watch-fixie"></div>\n\n<div id="fixed-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="primary" class="style-scope ytd-watch-fixie">\n    <div id="player" class="style-scope ytd-watch-fixie">\n      <div id="player-container" class="style-scope ytd-watch-fixie">\n        <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-fixie">\n        </ytd-player>\n      </div>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" disable-upgrade$="[[!errorScreen]]" hidden$="[[!errorScreen]]" class="style-scope ytd-watch-fixie">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <div id="alerts" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-metadata id="metadata" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" suppress-top-level-metadata-rows="" video-id="[[data.currentVideoEndpoint.watchEndpoint.videoId]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer.videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer.videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-metadata>\n  </div>\n</div>\n\n<div id="static-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="secondary" class="style-scope ytd-watch-fixie">\n    <div id="clarify-box" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="limited-state" class="feed-item style-scope ytd-watch-fixie"></div>\n    \n    <template is="dom-if" if="[[merchShelf.merchandiseShelfRenderer]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-fixie">\n      <ytd-merch-shelf-renderer class="feed-item style-scope ytd-watch-fixie" data="[[merchShelf.merchandiseShelfRenderer]]" watch-metadata-refresh="">\n      </ytd-merch-shelf-renderer>\n    </template>\n    \n    <div id="ticket-shelf" class="feed-item style-scope ytd-watch-fixie" hidden=""></div>\n    <ytd-watch-engagement-panels data="[[data.engagementPanels]]" class="style-scope ytd-watch-fixie"></ytd-watch-engagement-panels>\n    \n    <template is="dom-if" if="[[hasChat]]" restamp="" class="style-scope ytd-watch-fixie">\n      <ytd-live-chat-frame id="chat" class="feed-item style-scope ytd-watch-fixie" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]">\n      </ytd-live-chat-frame>\n    </template>\n    <div id="donation-shelf" class="feed-item style-scope ytd-watch-fixie"></div>\n    <ytd-playlist-panel-renderer id="playlist" class="feed-item style-scope ytd-watch-fixie" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" data="[[playlistData]]" disable-upgrade$="[[!hasPlaylistData]]" hidden="[[!hasPlaylistData]]" js-panel-height="">\n    </ytd-playlist-panel-renderer>\n    <div id="rich-metadata" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="player-ads" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-next-secondary-results-renderer data="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" disable-upgrade$="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" hidden="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" player-data="[[playerData]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-next-secondary-results-renderer>\n  </div>\n</div>\n\n\n\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);nmd=a}a=nmd;return a},{mode:1});_.LH.registerService(_.W7a,P$);
_.Dg();
}catch(e){_._DumpException(e)}
try{
_.Cg("xwEKAe");
var jbd=function(a){var b=_.yo();if(b.getFlag(202))b=b.getFlag(201);else{var c;b=(a==null?void 0:(c=a.config)==null?void 0:c.settingOnByDefault)!==void 0?a.config.settingOnByDefault:!_.w("web_shorts_cinematics_disabled_by_default")}return b},kbd=function(a){var b=_.yo();
_.zo(0,201,a);_.zo(0,202,!0);b.save()},lbd=function(a){return(a=_.YQa(a))?_.$Qa(a):0},mbd=function(a){return a.shorts.isSmallScreenSqueezeback},nbd=function(a){return a.shorts.isPlaybackStarted},qbd=function(a,b,c){for(var d=[],e=0,g=-1;e<a.length;e++)e%3===0&&(g++,d[g]=[]),d[g].push(a[e]);
a=new o8(d);d=new o8([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);d=a.multiply(d);a=new o8([[0,0],[0,0],[0,0],[0,0]]);for(e=0;e<d.getSize().width;e++){g=p8(d,0,e);var k=p8(d,1,e);if(g===null||k===null)throw Error("gm`"+(e+1).toString());obd(a,e,0,g*b);obd(a,e,1,k*c)}b=p8(a,0,0);e=p8(a,1,0);c=p8(a,0,1);g=p8(a,1,1);if(b===null||e===null||c===null||g===null)throw Error("em");d=pbd(b,e,c,g);k=p8(a,3,0);a=p8(a,3,1);if(k===null||a===null)throw Error("fm");a=pbd(b,k,c,a);g=(Number((g*-1).toFixed(2))-Number((c*-1).toFixed(2)))/
(Number(e.toFixed(2))-Number(b.toFixed(2)));k=Math.atan(g)*180/Math.PI;e=g===Number.POSITIVE_INFINITY?-90:g===Number.NEGATIVE_INFINITY?90:Object.is(g,-0)?180:g===0?0:g>0?k*-1:b<e?k*-1:Math.abs(k)+180;return{top:c,left:b,width:d,height:a,rotation:e}},pbd=function(a,b,c,d){a=b-a;
c=d-c;return Math.sqrt(a*a+c*c)},rbd=function(a,b){a&&_.v().resolve(_.Yi).resolveCommand(a,{forceClickLogging:!0,
form:{element:b}})},tbd=function(a){var b=a.data;
var c=a.parentContainerWidth;var d=a.parentContainerHeight;var e=_.Pl(),g;return _.q("yt-player-overlay-video-interactions",{el:e,class:"yt-player-overlay-video-interactions__video-interactions-wrapper"},b==null?void 0:(g=b.regions)==null?void 0:g.map(function(k){return sbd(e,b,k,c,d)}))},sbd=function(a,b,c,d,e){function g(){var x,A,C,F,J=(A=_.y((x=m)==null?void 0:x.command,_.Vyb))==null?void 0:(C=A.item)==null?void 0:(F=C.notificationTextRenderer)==null?void 0:F.successResponseText;
if(J)_.lo(a.value,"yt-open-popup-action",[_.$p(J),a.value]);else if(n)rbd(n,k.value);else{var I;rbd((I=m)==null?void 0:I.command,k.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var k=_.Pl();if(c==null||!c.transformationMatrix)throw Error("hm");b.trackingParams&&_.ls().graftServerVe(b.trackingParams);c=qbd(c==null?void 0:c.transformationMatrix,d,e);c="left:"+c.left+"px; top:"+(c.top+"px; width:")+(c.width+"px; height:")+(c.height+"px; transform:rotate(")+(c.rotation+"deg);");var m=_.y(b==null?void 0:b.popUp,ubd),n=b==null?void 0:b.command,r=_.y(n,_.xu)!==void 0;b=b==null?void 0:b.a11yString;d=_.lt(function(){r&&k.value.classList.add("yt-player-overlay-video-interactions__interactions-svg-hover");
k.value.classList.add("yt-player-overlay-video-interactions__interactions-svg-hide-outline");return!1});
e=_.lt(function(){k.value.classList.remove("yt-player-overlay-video-interactions__interactions-svg-hover");k.value.classList.remove("yt-player-overlay-video-interactions__interactions-svg-hide-outline");return!1});
_.Rl(k,"focus",function(){r&&k.value.classList.add("yt-player-overlay-video-interactions__interactions-svg-hover")});
_.Rl(k,"blur",function(){r&&k.value.classList.remove("yt-player-overlay-video-interactions__interactions-svg-hover")});
var t=_.lt(function(){g();return!1}),u=_.lt(function(x){x.key==="Enter"&&g();
return!1});
return _.q("svg",{"on:mouseover":d,"on:mouseout":e,"on:keydown":u,el:k,tabindex:0,"aria-label":b,id:"player-overlay-video-interaction-svg",class:"yt-player-overlay-video-interactions__interactions-svg",role:"button",style:c,"on:click":t})},vbd=function(a){a.unsubscribeFromStore=_.zF(a.storeWithShorts,_.gsc,function(b){a.initOrDisposeActiveModules(b);
!b&&a.storeWithShorts.getState().shorts.isFullscreen&&(_.fo(document.documentElement),a.storeWithShorts.dispatch(_.jsc(!1)))});
a.initOrDisposeActiveModules(_.gsc(a.storeWithShorts.getState()))},wbd=function(a){var b=_.v().resolve(_.nG);
b.rootElement=a;vbd(b)},xbd=function(){return _.v().resolve(_.nG).dismissedIndices},ybd=function(a,b){b=b.getOption("captions","track");
var c=_.mp("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(b){var d;((d=_.tu(_.TTa,c)())==null?void 0:d.value)!==b.displayName&&a.store.dispatch(_.wu("stringEntity",c,{key:c,value:b.displayName||""}))}else a.store.dispatch(_.wu("stringEntity",c,{key:c,value:"CAPTIONS_UNAVAILABLE"}))},zbd=function(a){var b;
(b=a.currentCinematicEffect)==null||b.clear()},Abd=function(a){return _.hp({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:a}})},Bbd=function(a){return _.hp({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:a}})},Cbd=function(a){return _.hp({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:a}})},o8=function(a,b){if(a instanceof o8)this.array_=a.array_;
else{var c;if(c=_.Sa(a))a:{for(var d=c=0;d<a.length;d++){if(!_.Sa(a[d])||c>0&&a[d].length!=c){c=!1;break a}for(var e=0;e<a[d].length;e++)if(typeof a[d][e]!=="number"){c=!1;break a}c==0&&(c=a[d].length)}c=c!=0}if(c)this.array_=_.Ra(a);else if(a instanceof _.rf)this.array_=Dbd(a.height,a.width);else if(typeof a==="number"&&typeof b==="number"&&a>0&&b>0)this.array_=Dbd(a,b);else throw Error("$l");}this.size_=new _.rf(this.array_[0].length,this.array_.length)},Ebd=function(a,b,c){for(var d=0;d<a.getSize().height;d++)for(var e=
0;e<a.getSize().width;e++)b.call(c,a.array_[d][e],d,e,a)},Fbd=function(a,b){var c=new o8(a.getSize());
Ebd(a,function(d,e,g){c.array_[e][g]=b.call(void 0,d,e,g,a)});
return c},Dbd=function(a,b){for(var c=[],d=0;d<a;d++){c[d]=[];
for(var e=0;e<b;e++)c[d][e]=0}return c};
o8.prototype.add=function(a){if(!_.Jad(this.size_,a.getSize()))throw Error("am");return Fbd(this,function(b,c,d){return b+a.array_[c][d]})};
o8.prototype.equals=function(a,b){if(this.size_.width!=a.size_.width||this.size_.height!=a.size_.height)return!1;b=b||0;for(var c=0;c<this.size_.height;c++)for(var d=0;d<this.size_.width;d++)if(!_.Iad(this.array_[c][d],a.array_[c][d],b))return!1;return!0};
o8.prototype.getSize=function(){return this.size_};
var p8=function(a,b,c){return b>=0&&b<a.size_.height&&c>=0&&c<a.size_.width?a.array_[b][c]:null};
o8.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var obd=function(a,b,c,d){if(!(b>=0&&b<a.size_.height&&c>=0&&c<a.size_.width))throw Error("bm`"+b+"`"+c+"`"+a.size_.height+"`"+a.size_.width);a.array_[b][c]=d};
o8.prototype.multiply=function(a){if(a instanceof o8){if(this.size_.width!=a.getSize().height)throw Error("cm");return Gbd(this,a)}if(typeof a==="number")return Hbd(this,a);throw Error("dm");};
var Gbd=function(a,b){var c=new o8(a.size_.height,b.getSize().width);Ebd(c,function(d,e,g){for(var k=d=0;k<this.size_.width;k++)d+=p8(this,e,k)*p8(b,k,g);obd(c,e,g,d)},a);
return c},Hbd=function(a,b){return Fbd(a,function(c){return c*b})};var Ibd=new _.X("inlineSurveyRenderer");var Jbd=new _.X("interstitialViewModel");var Kbd=new _.X("reelNavigateCommand");var Lbd=new _.X("reelNonVideoContentDismissalCommand");var Mbd=new _.X("showReelsCommentsOverlayCommand");var ubd=new _.X("videoInteractionPopUpRenderer");var Nbd;var Obd;var Pbd;var Qbd=function(){var a=_.P.apply(this,arguments)||this;a.ctaVisualElement=null;a.currentCsn=null;return a};
_.z(Qbd,_.P);_.f=Qbd.prototype;_.f.onDataChanged=function(){this.maybeLogShows()};
_.f.computeButtonShape=function(){var a=this;if(this.data)return{buttonText:_.Wp(this.data.text),state:"active",onTap:function(){a.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.f.maybeCreateCtaVe=function(){var a;if((a=this.data)!=null&&a.badgeInteractionLogging){var b;if(a=(b=this.data.badgeInteractionLogging)==null?void 0:b.trackingParams)this.ctaVisualElement=_.ps(a)}};
_.f.maybeLogClicks=function(){this.currentCsn=_.En(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Xo(this.currentCsn,this.ctaVisualElement)};
_.f.maybeLogShows=function(){this.currentCsn=_.En(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Vo(this.currentCsn,[this.ctaVisualElement])};
_.f.onTap=function(){var a;if((a=this.data)!=null&&a.onClickCommand){var b;this.ytComponentBehavior.resolveCommand((b=this.data)==null?void 0:b.onClickCommand);this.maybeLogClicks()}};
var q8=Qbd;q8.prototype.onDataChanged=q8.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],q8.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],q8.prototype,"ytComponentBehavior",void 0);_.U([_.O({}),_.W("design:type",Object)],q8.prototype,"data",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q8.prototype,"onDataChanged",null);
q8=_.U([_.Q({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],q8);
_.S(q8,"ytd-shopping-overlay-badge-renderer",function(){if(Pbd!==void 0)return Pbd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-overlay-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape data="[[computeButtonShape(data)]]" icon-name="bag" class="style-scope ytd-shopping-overlay-badge-renderer">\n</yt-button-shape>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Pbd=a},{mode:1});_.Ts(_.Rhc,"reel-sound-metadata-view-model",{props:{data:_.Ss}});_.Ts(_.Dkc,"player-disclosure-view-model",{props:{data:_.VG}});_.Ts(_.I4b,"pivot-button-view-model",{props:{data:_.Ss,className:_.Ss}});_.Ts(_.J4b,"reel-action-bar-view-model",{props:{data:_.VG,buttonShapeOverrideables:_.VG}});_.Zl(tbd);_.at(tbd,"yt-player-overlay-video-interactions",{propNames:["data","parentContainerWidth","parentContainerHeight"]});_.Ts(_.Ikc,"yt-reel-metapanel-view-model",{props:{data:_.VG,overlayDensity:_.VG}});var Rbd=function(){var a=_.P.apply(this,arguments)||this;a.showScrubber=!1;a.isWatchWhileMode=!1;a.enableAnchoredPanel=_.w("desktop_shorts_v2_anchored_panel");a.anchoredPanelActive=!1;a.enableLivingroomLayout=_.w("reels_enable_livingroom_layout");a.enablePlayerMetadataContainer=_.w("reels_web_enable_metadata_container");a.enableSqueezebackPanels=_.w("web_shorts_enable_squeezeback_panels");a.isSqueezebackActive=!1;a.smallScreenSqueezeback=!1;a.isPlayerStarted=!1;a.overlayDensity=0;a.isOverlay=!1;a.isImmersive=
!1;a.isImmersiveHorizontal=!1;a.isFullscreen=!1;a.onWindowResized=function(){var b;a.set("isImmersive",((b=window.getComputedStyle(a.hostElement))==null?void 0:b.getPropertyValue("--immersive-mode-on"))==="1");a.set("isImmersiveHorizontal",a.isImmersive&&a.enableLivingroomLayout&&!a.isWatchWhileMode);a.setPlayerDimensions()};
return a};
_.z(Rbd,_.P);_.f=Rbd.prototype;_.f.updateIsOverlay=function(a){this.isOverlay=a.detail.value};
_.f.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.w("web_enable_flexible_overlay")||_.w("web_enable_format_first")||_.w("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.f.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.f.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.f.onDataChanged=function(){this.setPlayerDimensions()};
_.f.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.f.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.f.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.f.ready=function(){this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer")||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.aj("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.aj("reels_action_justified_content")||"flex-start")};
_.f.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.f.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.vo("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.vo("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.vo("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.vo("SHARE_LABEL",
void 0,"Share")}}});_.w("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.vo("REMIX_LABEL",void 0,"Remix")}}});this.set("data.menu",{menuRenderer:{items:[{menuServiceItemRenderer:{}}]}});this.set("data.pivotButton",{pivotButtonViewModel:{backgroundColor:"THEME_ATTRIBUTE_OVERLAY_BACKGROUND_MEDIUM",icon:{iconType:"WAVEFORM"}}});this.setEmptyOverlayMetadata()};
_.f.setEmptyOverlayMetadata=function(){_.w("web_shorts_deflate_inactive_slides")&&(this.set("data.multiFormatLink",{reelMultiFormatLinkViewModel:void 0}),this.set("data.multimixAttributionLabel",void 0),this.set("data.suggestedAction",{shoppingOverlayRenderer:void 0,shortsSuggestedActionRenderer:void 0}),this.set("data.soundMetadata",{reelSoundMetadataViewModel:void 0}))};
_.f.setPlayerDimensions=function(){var a=document.getElementById("short-video-container"),b,c;a&&((b=this.data)==null?0:(c=b.videoInteractions)==null?0:c.interactions)&&(this.playerContainerHeight=a.getBoundingClientRect().height,this.playerContainerWidth=a.getBoundingClientRect().width)};
_.Um.Object.defineProperties(Rbd.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.infoPanel)}}});
var r8=Rbd;r8.prototype.onDataChanged=r8.prototype.onDataChanged;r8.prototype.onIsActiveChanged=r8.prototype.onIsActiveChanged;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],r8.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],r8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],r8.prototype,"ytdReduxBehavior",void 0);
_.U([_.H(_.XI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],r8.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],r8.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],r8.prototype,"isActive",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],r8.prototype,"hidden",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],r8.prototype,"useShortsIcon",void 0);
_.U([_.O({value:"left"}),_.W("design:type",String)],r8.prototype,"buttonTooltipPosition",void 0);_.U([_.O({value:_.w("reels_enable_livingroom_layout")?"top":"left"}),_.W("design:type",String)],r8.prototype,"likeButtonTooltipPosition",void 0);_.U([_.O({value:"none"}),_.W("design:type",String)],r8.prototype,"textTransform",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],r8.prototype,"showScrubber",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],r8.prototype,"isWatchWhileMode",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data.infoPanel"),_.W("design:type",Object),_.W("design:paramtypes",[])],r8.prototype,"hasInfoPanel",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],r8.prototype,"enableAnchoredPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],r8.prototype,"anchoredPanelActive",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],r8.prototype,"enableLivingroomLayout",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],r8.prototype,"enablePlayerMetadataContainer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],r8.prototype,"enableSqueezebackPanels",void 0);_.U([_.O({selector:_.Q0a,reflectToAttribute:!0}),_.W("design:type",Object)],r8.prototype,"isSqueezebackActive",void 0);
_.U([_.O({selector:mbd,reflectToAttribute:!0}),_.W("design:type",Object)],r8.prototype,"smallScreenSqueezeback",void 0);_.U([_.O({selector:nbd}),_.W("design:type",Object)],r8.prototype,"isPlayerStarted",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],r8.prototype,"overlayDensity",void 0);_.U([_.O(),_.W("design:type",Object)],r8.prototype,"isOverlay",void 0);
_.U([_.O({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.W("design:type",Boolean)],r8.prototype,"isShortsOverlay",void 0);_.U([_.O(),_.W("design:type",Object)],r8.prototype,"isImmersive",void 0);_.U([_.O(),_.W("design:type",Object)],r8.prototype,"isImmersiveHorizontal",void 0);_.U([_.O({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.W("design:type",Boolean)],r8.prototype,"isShortsImmersive",void 0);
_.U([_.O({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.W("design:type",Object)],r8.prototype,"buttonOverride",void 0);_.U([_.O(),_.W("design:type",Number)],r8.prototype,"playerContainerHeight",void 0);_.U([_.O(),_.W("design:type",Number)],r8.prototype,"playerContainerWidth",void 0);_.U([_.O({selector:_.Ev,reflectToAttribute:!0}),_.W("design:type",Object)],r8.prototype,"isFullscreen",void 0);
_.U([_.N("isActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],r8.prototype,"onIsActiveChanged",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],r8.prototype,"onDataChanged",null);r8=_.U([_.Q({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],r8);
_.S(r8,"ytd-reel-player-overlay-renderer",function(){if(Obd!==void 0)return Obd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" parent-container-height="[[playerContainerHeight]]" parent-container-width="[[playerContainerWidth]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[buttonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Obd=a},{mode:1});var Sbd;var s8=function(){var a=_.P.apply(this,arguments)||this;a.videoDuration=0;a.playedTime=0;a.isActive=!1;a.JSC$19448_playerEvents=new Map;return a};
_.z(s8,_.P);_.f=s8.prototype;_.f.created=function(){this.JSC$19448_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19448_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.f.attached=function(){this.getPlayerAndInitializeListeners()};
_.f.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19448_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.gr(this,this.onPageChanged))};
_.f.getPlayerAndInitializeListeners=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return b=_.au(),b?_.p(c,b.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.gr(a,a.onPageChanged)),c.jumpTo(0));a.player=c.yieldResult;a.initializePlayerListeners();_.ue(c)})};
_.f.onPageChanged=function(a){var b=this;return _.l(function(c){if(c.nextAddress==1)return a.detail.newPageType!=="ytd-shorts"?c.return():_.p(c,_.bu().getPlayerPromise(),2);b.player=c.yieldResult;b.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.gr(b,b.onPageChanged));_.ue(c)})};
_.f.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19448_playerEvents)};
_.f.onVideoDataChange=function(a){var b=this;return _.l(function(c){if(!b.player||a.type!=="newdata")return c.return();b.videoDuration=_.w("web_shorts_use_progress_state_for_gapless")?b.player.getProgressState(a.playertype).seekableEnd:b.player.getDuration(a.playertype);b.playedTime=0;_.ue(c)})};
_.f.onVideoProgress=function(a){var b=this,c,d;return _.l(function(e){if(!b.player)return e.return();c=b.player.getPresentingPlayerType();d=b.player.getPlayerState();b.videoDuration=_.w("web_shorts_use_progress_state_for_gapless")?b.player.getProgressState(c).seekableEnd:b.player.getDuration(c);b.playedTime=d===0?b.videoDuration:a;_.ue(e)})};
_.f.getPercentPlayed=function(a,b){return a?_.Vw(b/a,0,1):0};
_.Um.Object.defineProperties(s8.prototype,{percentPlayed:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration&&this.playedTime?Math.floor(this.getPercentPlayed(this.videoDuration,this.playedTime)*100):0}},
percentPlayedStyle:{configurable:!0,enumerable:!0,get:function(){var a="";return a=this.videoDuration&&this.playedTime?a+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):a+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],s8.prototype,"componentBehavior",void 0);_.U([_.H(_.bJ.YtPlayerListenerBehavior),_.W("design:type",_.cJ)],s8.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],s8.prototype,"player",void 0);_.U([_.O(),_.W("design:type",Object)],s8.prototype,"videoDuration",void 0);_.U([_.O(),_.W("design:type",Object)],s8.prototype,"playedTime",void 0);_.U([_.O(),_.W("design:type",Object)],s8.prototype,"isActive",void 0);
_.U([_.K("videoDuration","playedTime"),_.W("design:type",Number),_.W("design:paramtypes",[])],s8.prototype,"percentPlayed",null);_.U([_.K("videoDuration","playedTime"),_.W("design:type",Object),_.W("design:paramtypes",[])],s8.prototype,"percentPlayedStyle",null);_.U([_.K("videoDuration","isActive"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],s8.prototype,"hideProgressBar",null);
_.S(s8,"ytd-progress-bar-line",function(){if(Sbd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-progress-bar-line--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress-bar-line" hidden="[[hideProgressBar]]" role="progressbar" aria-valuenow$="[[percentPlayed]]" class="style-scope ytd-progress-bar-line">\n  <div class="progress-bar-background style-scope ytd-progress-bar-line"></div>\n  <div class="progress-bar-played style-scope ytd-progress-bar-line" style$="[[percentPlayedStyle]]"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);Sbd=a}a=Sbd;return a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var Tbd;_.at(_.K7a,"desktop-shorts-volume-controls",{propNames:["noSlider"]});var t8=function(){var a=_.P.apply(this,arguments)||this;a.playerState=null;a.isMuted=!1;a.shortsPipButtonEnabled=_.w("web_shorts_pip_button");a.JSC$19452_playerEvents=new Map;a.shortsPipButtonData={disabled:!1,iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal"};return a};
_.z(t8,_.P);_.f=t8.prototype;_.f.created=function(){this.JSC$19452_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19452_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange)};
_.f.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.ku(28662);this.playPauseButtonClientVE=_.ku(36842);this.fullscreenButtonToggleOffClientVE=_.ku(222256);this.fullscreenButtonToggleOnClientVE=_.ku(222257);var a=_.En(),b=_.Dn();a&&b&&(_.w("combine_ve_grafts")?(_.qF(_.ls(),this.muteButtonClientVE,b),_.qF(_.ls(),this.playPauseButtonClientVE,b)):_.iY(a,b,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.f.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19452_playerEvents),this.player=null)};
_.f.getPlayerAndInitializeListeners=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return b=_.au(),b?_.p(c,b.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.gr(a,a.onPageChanged)),c.jumpTo(0));a.player=c.yieldResult;a.initializePlayerListeners();_.ue(c)})};
_.f.onPageChanged=function(a){var b=this;return _.l(function(c){if(c.nextAddress==1)return a.detail.newPageType!=="ytd-shorts"?c.return():_.p(c,_.bu().getPlayerPromise(),2);b.player=c.yieldResult;b.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.gr(b,b.onPageChanged));_.ue(c)})};
_.f.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19452_playerEvents)};
_.f.onPlayerStateChange=function(a){this.playerState=a};
_.f.onPlayerVolumeChange=function(a){this.isMuted=a.muted};
_.f.onPlayPauseButtonClick=function(){var a=this,b,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,_.bu().getPlayerPromise(),2);b=d.yieldResult;(c=_.En())&&a.playPauseButtonClientVE&&_.Xo(c,a.playPauseButtonClientVE);b.getPlayerState()!==1?b.playVideo():b.pauseVideo();_.ue(d)})};
_.f.computePlayPauseIcon=function(a){return a===2||a===-1||a===5?"PLAY_ARROW_FILLED":"miniplayer:shorts-pause"};
_.f.computeFullscreenLabel=function(a){return a?_.vo("FULLSCREEN_EXIT_LABEL"):_.vo("FULLSCREEN_ENTER_LABEL")};
_.f.computePlayPauseLabel=function(a){return a===1||a===3?_.vo("PLAYER_LABEL_PAUSE"):_.vo("PLAYER_LABEL_PLAY")};
_.f.onMuteButtonClick=function(){var a=this,b,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,_.bu().getPlayerPromise(),2);b=d.yieldResult;(c=_.En())&&a.muteButtonClientVE&&_.Xo(c,a.muteButtonClientVE);b.isMuted()?b.unMute(!0):b.mute(!0);_.ue(d)})};
_.f.computeMuteIcon=function(a){return a?"miniplayer:volume-off":"miniplayer:volume-up"};
_.f.computeMuteLabel=function(a){return a?_.vo("PLAYER_LABEL_UNMUTE"):_.vo("PLAYER_LABEL_MUTE")};
_.f.onFullscreenButtonClick=function(){var a=_.En();a&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.Xo(a,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.Xo(a,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.ksc()};
_.f.onShortsPipButtonClick=function(){var a=_.v().resolve(_.nG);if(_.w("web_shorts_pip")){var b=_.v().resolve(_.$w);a.isShortsPipActive()?b.deactivate():b.isMiniplayerActive()||(_.xF().shortsPipActivation=!0,_.Mkc(b))}};
_.Um.Object.defineProperties(t8.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var a=this;return{disabled:!1,accessibilityLabel:this.computePlayPauseLabel(this.playerState),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computePlayPauseLabel(this.playerState),onTap:function(){a.onPlayPauseButtonClick()}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen)}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?"screen_full_exit":"screen_full"}},
shortsPipIcon:{configurable:!0,enumerable:!0,get:function(){return this.isShortsPipActive?"miniplayer_exit":"picture_in_picture"}}});
_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],t8.prototype,"componentBehavior",void 0);_.U([_.H(_.bJ.YtPlayerListenerBehavior),_.W("design:type",_.cJ)],t8.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],t8.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],t8.prototype,"player",void 0);_.U([_.O(),_.W("design:type",Object)],t8.prototype,"playerState",void 0);_.U([_.O(),_.W("design:type",Object)],t8.prototype,"isMuted",void 0);
_.U([_.O({computed:"computePlayPauseIcon(playerState)"}),_.W("design:type",String)],t8.prototype,"playPauseIcon",void 0);_.U([_.O({computed:"computeMuteIcon(isMuted)"}),_.W("design:type",String)],t8.prototype,"muteIcon",void 0);_.U([_.O({selector:_.Ev}),_.W("design:type",Boolean)],t8.prototype,"isFullscreen",void 0);_.U([_.O({selector:_.Fv}),_.W("design:type",Boolean)],t8.prototype,"isShortsPipActive",void 0);_.U([_.O(),_.W("design:type",Object)],t8.prototype,"shortsPipButtonEnabled",void 0);
_.U([_.O(),_.W("design:type",Object)],t8.prototype,"shortsPipButtonData",void 0);_.U([_.K("playerState"),_.W("design:type",Object),_.W("design:paramtypes",[])],t8.prototype,"playPauseButtonData",null);_.U([_.K("isFullscreen"),_.W("design:type",Object),_.W("design:paramtypes",[])],t8.prototype,"fullscreenButtonData",null);_.U([_.K("isFullscreen"),_.W("design:type",String),_.W("design:paramtypes",[])],t8.prototype,"fullscreenIcon",null);
_.U([_.K("isShortsPipActive"),_.W("design:type",String),_.W("design:paramtypes",[])],t8.prototype,"shortsPipIcon",null);
_.S(t8,"ytd-shorts-player-controls",function(){if(Tbd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n<yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsPipButtonEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="shorts-pip-button-shape" data="[[shortsPipButtonData]]" icon-name="[[shortsPipIcon]]" on-click="onShortsPipButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);Tbd=a}a=Tbd;return a},{mode:1});var Ubd;_.Ts(_.Fec,"yt-interstitial-view-model",{props:{data:_.VG}});var Vbd=_.Rr(function(a){var b=a.data;return _.q("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.q("h1",{class:"reelWatchBreakViewModelHostTitle"},_.q(_.tt,{text:function(){return b().title}})),_.q("h2",{class:"reelWatchBreakViewModelHostBody"},_.q(_.tt,{text:function(){return b().body},
isOverlay:!0})),_.q(_.Hu,{data:function(){return b().buttons}},{buttonViewModel:function(c,d){return _.q("div",{class:function(){return d()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.q(_.Qu,{data:c.data}))}}))},"zh");
Vbd.idomCompat=!0;_.Ts(Vbd,"reel-watch-break-view-model",{props:{data:_.VG}});var Wbd=function(){return _.P.apply(this,arguments)||this};
_.z(Wbd,_.P);Wbd.prototype.configureRendererStamper=function(){return{"data.renderer":{id:"nvc-container",mapping:{reelWatchBreakViewModel:{component:"reel-watch-break-view-model"},inlineSurveyRenderer:{component:"ytd-inline-survey-renderer"},interstitialViewModel:{component:"yt-interstitial-view-model"}},renderPriority:0}}};
_.Um.Object.defineProperties(Wbd.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var a;return!!_.y((a=this.data)==null?void 0:a.renderer,Ibd)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var a;return!!_.y((a=this.data)==null?void 0:a.renderer,Jbd)}}});
var u8=Wbd;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],u8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],u8.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],u8.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],u8.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data.renderer"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],u8.prototype,"isSurvey",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.renderer"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],u8.prototype,"isInterstitialViewModel",null);u8=_.U([_.Q({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],u8);
_.S(u8,"ytd-reel-non-video-content-renderer",function(){if(Ubd!==void 0)return Ubd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-non-video-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="nvc-container" class="nvc-container style-scope ytd-reel-non-video-content-renderer">\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
return Ubd=a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var Xbd;_.Ts(_.Ckc,"desktop-shorts-player-controls",{});var Ybd=function(){var a=_.P.apply(this,arguments)||this;a.isPlayerPaused=!1;a.isPlayerStarted=!1;a.showPlayerControls=!1;a.showScrubber=!1;a.autoHideJobId=0;a.backgroundImageJobId=0;a.modern=_.w("web_button_rework");a.overlayType=_.aj("web_shorts_expanded_overlay_type");a.panelData=void 0;a.isWatchWhileMode=!1;a.hasError=!1;a.panelShowDelayMs=1;a.scrubberComponent={};a.useStamper=_.w("web_shorts_enable_title_deflation");a.isFullscreen=!1;a.shouldHideOverlay=!1;a.enableAnchoredPanel=_.w("desktop_shorts_v2_anchored_panel");
a.enablePersistentAnchoredPanel=_.w("desktop_shorts_v2_persistent_anchored_panel");a.hideWatchWhilePanel=_.w("web_shorts_hide_watch_while_panel");a.isPersistentPanelActive=!1;a.anchoredPanelActive=!1;a.enableNewCarousel=_.w("web_enable_shorts_new_carousel_single_instance");a.isShortsPipActive=!1;a.smallScreenSqueezeback=!1;a.enableFlexibleOverlay=_.w("web_enable_flexible_overlay");a.aspectRatio=.5625;a.overlayDensity=0;a.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand",
"yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};a.onWindowResized=function(){_.Fr(a,"calculateOverlayDensity",function(){a.calculateOverlayDensity()},100)};
return a};
_.z(Ybd,_.P);_.f=Ybd.prototype;_.f.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.f.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.f.shouldRenderOverlayControl=function(a){return!this.useStamper&&this.isVideoContent(a)};
_.f.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var a=_.v().resolve(_.JJ);this.isWatchWhileMode&&(_.w("web_enable_shorts_new_carousel")?_.zk.addJob(function(){a.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):a.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.f.handleShowReelsCommentsOverlayCommand=function(a){a=_.y(a,Mbd);this.isActive&&(a==null?0:a.engagementPanel)&&this.data&&(this.isWatchWhileMode&&this.isWatchWhileMode&&this.activeWatchWhilePanel==="engagement-panel-comments-section"?this.updateEngagementPanelVisibility("engagement-panel-comments-section",!1):this.updateEngagementPanelVisibility("engagement-panel-comments-section",!0))};
_.f.updateEngagementPanelVisibility=function(a,b){a&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:b?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:a}})};
_.f.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.f.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.v().resolve(_.nG).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.f.handleWatchWhilePanelScrimClick=function(){var a=_.v().resolve(_.JJ);this.activeWatchWhilePanel&&(a.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.f.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.f.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.w("web_enable_shorts_new_carousel")?0:void 0}}};
_.f.handlePlayerClick=function(a){var b=this,c,d;if((d=(c=window).matchMedia)!=null&&d.call(c,"(any-pointer: coarse)").matches||!a)this.showPlayerControls=!0,_.zk.cancelJob(this.autoHideJobId),this.autoHideJobId=_.sl(_.zk,function(){b.showPlayerControls=!1},4E3)};
_.f.isFirstReel=function(){return this.index===0};
_.f.handleMouseenter=function(){_.zk.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.f.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.f.handleScrubberEnter=function(){this.showScrubber=!0};
_.f.handleScrubberLeave=function(){this.showScrubber=!1};
_.f.onAspectRatioChange=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return a.hostElement.style.setProperty("--ytd-shorts-player-ratio",""+a.aspectRatio),a.isActive?_.p(c,_.v().resolve(_.nG).playerApi,3):c.jumpTo(0);(b=c.yieldResult)&&b.setSize(NaN,NaN);_.ue(c)})};
_.f.updateBackgroundImage=function(){var a=this,b;if((b=this.data)!=null&&b.thumbnail){var c=(b=_.Vs(this.data.thumbnail.thumbnails))?'background-image:url("'+b+'");':"",d;c.toString()!==((d=this.backgroundImage)==null?void 0:d.toString())&&(this.isActive?this.backgroundImage=c:(_.zk.cancelJob(this.backgroundImageJobId),this.backgroundImageJobId=_.sl(_.zk,function(){a.isAttached&&(a.backgroundImage=c)},1E3)))}else this.backgroundImage=void 0};
_.f.setAspectRatio=function(){var a;(a=this.data)!=null&&a.thumbnail&&(this.isActive&&.5625!==lbd(this.data.thumbnail)&&_.vt("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO"),this.enableFormatFirst&&(this.aspectRatio=this.isPersistentPanelActive?.5625:lbd(this.data.thumbnail)))};
_.f.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst)if(this.isPersistentPanelActive)this.overlayDensity=0;else{var a=document.querySelector("#shorts-container");if(a){a=a.offsetWidth-96-this.playerContainer.offsetWidth-72;a=a>=720?1:a>=360?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&a===1&&(a=0);this.overlayDensity=a;var b;(b=this.onOverlayDensityChanged)==null||b.call(this,this.index,this.overlayDensity)}}};
_.f.onOverlayDensityChange=function(){var a;(a=this.onOverlayDensityChanged)==null||a.call(this,this.index,this.overlayDensity);(a=_.E(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&a.set("overlayDensity",this.overlayDensity);if(a=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))a.overlayDensity=this.overlayDensity};
_.f.isVideoContent=function(a){_.v().resolve(_.nG);return!!_.y(a,_.uq)};
_.f.isNonVideoContent=function(a){_.v().resolve(_.nG);return!!_.y(a,_.PE)};
_.f.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.Um.Object.defineProperties(Ybd.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var a,b;return _.w("web_enable_format_first")||((a=this.data)==null?void 0:a.adsOverlay)&&_.w("web_enable_format_first_ads_only")||((b=this.data)==null?void 0:b.reelPlayerOverlayRenderer)&&_.w("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var a;return!this.isActive||!this.isPlayerStarted||(a=this.data)!=null&&a.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var a;if(this.useStamper&&((a=this.data)==null?0:a.command)&&this.isVideoContent(this.data.command)){var b,c;if(((b=this.data)==null?0:b.adsOverlay)&&Object.keys((c=this.data)==null?void 0:c.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var d,e;if(((d=this.data)==null?0:d.reelPlayerOverlayRenderer)&&Object.keys((e=this.data)==null?void 0:e.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
var v8=Ybd;v8.prototype.onOverlayDensityChange=v8.prototype.onOverlayDensityChange;v8.prototype.calculateOverlayDensity=v8.prototype.calculateOverlayDensity;v8.prototype.setAspectRatio=v8.prototype.setAspectRatio;v8.prototype.updateBackgroundImage=v8.prototype.updateBackgroundImage;v8.prototype.onAspectRatioChange=v8.prototype.onAspectRatioChange;v8.prototype.onEngagementPanelsChanged=v8.prototype.onEngagementPanelsChanged;v8.prototype.onScrubberDataChange=v8.prototype.onScrubberDataChange;
v8.prototype.updateShouldHideOverlay=v8.prototype.updateShouldHideOverlay;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],v8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],v8.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.XI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],v8.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],v8.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Number)],v8.prototype,"index",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],v8.prototype,"isActive",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],v8.prototype,"isHiddenInDom",void 0);_.U([_.O(),_.W("design:type",Object)],v8.prototype,"isPlayerPaused",void 0);_.U([_.O({selector:nbd}),_.W("design:type",Object)],v8.prototype,"isPlayerStarted",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"showPlayerControls",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"showScrubber",void 0);_.U([_.O(),_.W("design:type",Object)],v8.prototype,"autoHideJobId",void 0);_.U([_.O(),_.W("design:type",Object)],v8.prototype,"backgroundImageJobId",void 0);_.U([_.O(),_.W("design:type",Object)],v8.prototype,"backgroundImage",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"modern",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"overlayType",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],v8.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],v8.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],v8.prototype,"watchWhileEngagementPanels",void 0);
_.U([_.O(),_.W("design:type",Object)],v8.prototype,"panelData",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"isWatchWhileMode",void 0);_.U([_.O(),_.W("design:type",String)],v8.prototype,"activeWatchWhilePanel",void 0);_.U([_.O(),_.W("design:type",Object)],v8.prototype,"hasError",void 0);_.U([_.O(),_.W("design:type",Object)],v8.prototype,"panelShowDelayMs",void 0);_.U([_.O(),_.W("design:type",Object)],v8.prototype,"scrubberComponent",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"useStamper",void 0);_.U([_.O({selector:_.Ev,reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"isFullscreen",void 0);_.U([_.O(),_.W("design:type",Object)],v8.prototype,"shouldHideOverlay",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"enableAnchoredPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"enablePersistentAnchoredPanel",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"hideWatchWhilePanel",void 0);_.U([_.O({selector:_.Q0a,reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"isPersistentPanelActive",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"anchoredPanelActive",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"enableNewCarousel",void 0);
_.U([_.O({selector:_.Fv,reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"isShortsPipActive",void 0);_.U([_.O({selector:mbd,reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"smallScreenSqueezeback",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],v8.prototype,"enableFormatFirst",null);_.U([_.O(),_.W("design:type",Object)],v8.prototype,"enableFlexibleOverlay",void 0);
_.U([_.O(),_.W("design:type",Object)],v8.prototype,"aspectRatio",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"overlayDensity",void 0);_.U([_.O(),_.W("design:type",Function)],v8.prototype,"onOverlayDensityChanged",void 0);_.U([_.O(),_.K("isActive","hasError"),_.W("design:type",Object),_.W("design:paramtypes",[])],v8.prototype,"shouldRenderPlayerElements",null);
_.U([_.O(),_.K("isActive","isWatchWhileMode"),_.W("design:type",Object),_.W("design:paramtypes",[])],v8.prototype,"watchWhileOrPersistentActive",null);_.U([_.N("isActive","hasError","showingExpandedOverlay"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v8.prototype,"updateShouldHideOverlay",null);
_.U([_.O({reflectToAttribute:!0}),_.K("isActive","isPlayerStarted","data"),_.W("design:type",Object),_.W("design:paramtypes",[])],v8.prototype,"shouldRenderScrubber",null);_.U([_.N("shouldRenderScrubber"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v8.prototype,"onScrubberDataChange",null);_.U([_.K("useStamper","data.adsOverlay","data.reelPlayerOverlayRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],v8.prototype,"overlayComponent",null);
_.U([_.N("watchWhileEngagementPanels"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v8.prototype,"onEngagementPanelsChanged",null);_.U([_.ir("#player-container"),_.W("design:type",HTMLElement)],v8.prototype,"playerContainer",void 0);_.U([_.ir("#cinematic-container"),_.W("design:type",HTMLElement)],v8.prototype,"cinematicContainer",void 0);
_.U([_.N("aspectRatio"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],v8.prototype,"onAspectRatioChange",null);_.U([_.N("data.thumbnail"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v8.prototype,"updateBackgroundImage",null);_.U([_.N("isPersistentPanelActive","data.thumbnail"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v8.prototype,"setAspectRatio",null);
_.U([_.N("isPersistentPanelActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v8.prototype,"calculateOverlayDensity",null);_.U([_.N("overlayDensity"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v8.prototype,"onOverlayDensityChange",null);v8=_.U([_.Q({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],v8);
_.S(v8,"ytd-reel-video-renderer",function(){if(Xbd!==void 0)return Xbd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave" style$="[[backgroundImage]]">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n        <div class="player-controls style-scope ytd-reel-video-renderer">\n          <template is="dom-if" if="[[enableNewCarousel]]" class="style-scope ytd-reel-video-renderer">\n            <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n          </template>\n          <template is="dom-if" if="[[!enableNewCarousel]]" class="style-scope ytd-reel-video-renderer">\n            <ytd-shorts-player-controls class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n          </template>\n        </div>\n      </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[shouldRenderOverlayControl(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <div id="control-overlay" class="overlay style-scope ytd-reel-video-renderer">\n    <template is="dom-if" if="[[data.reelPlayerOverlayRenderer]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-reel-player-overlay-renderer anchored-panel-active="[[anchoredPanelActive]]" data="[[data.reelPlayerOverlayRenderer]]" disable-upgrade="[[shouldHideOverlay]]" hidden="[[shouldHideOverlay]]" is-active="[[isActive]]" is-player-started="[[isPlayerStarted]]" is-watch-while-mode="[[watchWhileOrPersistentActive]]" show-scrubber="[[showScrubber]]" class="style-scope ytd-reel-video-renderer"></ytd-reel-player-overlay-renderer>\n    </template>\n    <template is="dom-if" if="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-ad-slot-renderer data="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer"></ytd-ad-slot-renderer>\n    </template>\n  </div>\n</template>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Xbd=a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var Zbd=function(){var a=_.P.apply(this,arguments)||this;a.isPreviousPageShorts=!1;a.index=0;a.delayedActiveIndex=0;a.playablePreviousIndex=null;a.isPlayerPaused=!1;a.isPlayerStarted=!1;a.intersectionObserverThreshold=.6;a.fitToVisibleBounds=!1;a.pageSubtype="shorts";a.panelShowDelayMs=_.$i("enable_shorts_panel_show_delay_ms");a.enablePreviousContinuation=_.w("shorts_in_playlists_web");a.shortsPipEnabled=_.w("web_shorts_pip");a.isDark=document.documentElement.hasAttribute("dark");a.shortsViewTransitions=
_.w("web_shorts_view_transitions");a.isFullscreen=!1;a.isShortsPipActive=!1;a.buttonOverride={iconPosition:"icon-only",size:"XL"};a.anchoredPanelActive=!1;a.isActive=!1;a.smallScreenPersistentPanel=!1;a.isPersistentPanelActive=!1;a.smallScreenSqueezeBack=!1;a.enableScrollIntoViewCenter=_.w("web_scroll_into_view_center");a.formatFirst=_.w("web_enable_format_first")||_.w("web_enable_format_first_ads_only")||_.w("web_enable_format_first_organic_only");a.enableFlexibleOverlay=_.w("web_enable_flexible_overlay");
a.enableNewCarousel=_.w("web_enable_shorts_new_carousel_single_instance");a.isShortsInitialized=!1;a.hidePreviousButtonImmediately=!1;a.showPreviousButtonImmediately=!1;a.currentPlayerIndex=0;a.nextReelVe=_.ku(56921);a.prevReelVe=_.ku(56922);a.loopToggleOffVe=_.ku(198013);a.loopToggleOnVe=_.ku(198014);a.ambientModeToggleVe=_.ku(227860);a.reelPlayerPausedStateRendererVe=_.ku(141313);a.storedPlaybackSpeed=null;a.actionMap={"yt-append-reel-watch-sequence-continuation-entries-action":"processAppendReelWatchSequenceContinuationEntriesAction",
"yt-reel-navigate-command":"handleReelNavigateCommand","yt-reel-non-video-content-dismissal-command":"processReelNonVideoContentDismissalCommand","yt-signal-action-toggle-cinematic-shorts-on":"handleSignalActionToggleCinematicShortsOn","yt-signal-action-toggle-cinematic-shorts-off":"handleSignalActionToggleCinematicShortsOff","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged","yt-signal-action-toggle-loop-shorts-on":"handleSignalActionToggleLoopShortsOn","yt-signal-action-toggle-loop-shorts-off":"handleSignalActionToggleLoopShortsOff",
"yt-miniplayer-navigate-shorts":"handleMiniplayerNavigateShorts"};a.onOverlayDensityChanged=function(b,c){var d;(d=a.getActiveReelVideo(b))==null||d.setAttribute("overlay-density",String(c))};
return a};
_.z(Zbd,_.P);_.f=Zbd.prototype;
_.f.deflateInactivePreviousSlides=function(){var a=_.$i("web_shorts_deflate_inactive_slides_aggressive_distance");if(a>0&&this.shortsProcessedSequence&&this.activeIndex){a=this.activeIndex-a;for(var b=0;b<=a;b++){var c=void 0;((c=this.shortsProcessedSequence[b].reelPlayerOverlayRenderer)==null?0:c.likeButton)&&this.set("shortsProcessedSequence."+b+".reelPlayerOverlayRenderer",{});c=void 0;((c=this.shortsProcessedSequence[b].adsOverlay)==null?0:c.adSlotMetadata)&&this.set("shortsProcessedSequence."+b+
".adsOverlay",{})}}};
_.f.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.f.onResize=function(){var a=_.Yp(),b=a.dispatch,c=this.calculateIsSmallWidth();b.call(a,_.hp({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:c}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.f.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:_.w("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0},properties:{showDelayMs:"[[panelShowDelayMs]]"}}},renderPriority:0}}};
_.f.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var a=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,b=a,c=0;a<250&&(b=a+this.shortsInnerContainer.clientWidth,c=24);_.fr(this.hostElement,{"--ytd-shorts-header-width":b+"px","--ytd-shorts-top-spacing":c+"px"})}};
_.f.isFirstShorts=function(a){return a?this.index===-a.length:this.index===0};
_.f.isActiveReel=function(a,b,c){c&&(b=this.calculatePrevIndex(b,c));return a===b};
_.f.onFullscreenChange=function(){if(_.w("web_fullscreen_shorts")){var a;(a=this.getActiveReelVideo(this.activeIndex))==null||a.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.v().resolve(_.$w).close(!0)}};
_.f.engagementPanelsChanged=function(){var a;this.watchWhileEngagementPanels=(a=this.data)==null?void 0:a.engagementPanels};
_.f.unregisterPanels=function(){var a=_.v().resolve(_.JJ);if(this.watchWhileEngagementPanels)for(var b=_.h(this.watchWhileEngagementPanels),c=b.next();!c.done;c=b.next()){var d=void 0,e=void 0;c=(d=c.value.engagementPanelSectionListRenderer)==null?void 0:(e=d.identifier)==null?void 0:e.tag;a&&c&&a.panelMap.delete(c)}};
_.f.isVideoContent=function(a){return this.isVideoContentCommand(a==null?void 0:a.command)};
_.f.getActiveReelVideo=function(a){return _.w("web_enable_shorts_new_carousel_single_instance")?_.E(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+a+'"]'):_.E(this.hostElement).querySelector('ytd-reel-video-renderer[id="'+a+'"]')};
_.f.calculatePrevIndex=function(a,b){return b?a-((b==null?void 0:b.length)||0):-1};
_.f.onKeydown=function(a){var b=_.Rq(a)||[];if(!_.isc(b))if(a.code==="ArrowUp")a.preventDefault(),this.handlePrevButtonClick();else if(a.code==="ArrowDown")a.preventDefault(),this.handleNextButtonClick();else if(a.code==="KeyM")this.toggleMuteUnmuteVideo();else if(a.code==="KeyK"||a.code==="Space")this.togglePlayPauseVideo();else if((a.code==="KeyA"||a.code==="ArrowLeft")&&_.w("web_shorts_keyboard_enable_seek_shortcuts")){var c;(c=this.player)==null||c.seekBy(-5)}else if((a.code==="KeyD"||a.code===
"ArrowRight")&&_.w("web_shorts_keyboard_enable_seek_shortcuts")){var d;(d=this.player)==null||d.seekBy(5)}};
_.f.onServiceRequestCompleted=function(a,b){a=b.data;a.continuationEndpoint&&a.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:a.entries,continuationEndpoint:a.continuationEndpoint}}):a.prevContinuationEndpoint&&a.prevEntries&&this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:a.prevEntries,prevContinuationEndpoint:a.prevContinuationEndpoint}})};
_.f.handleEngagementPanelVisibilityChanged=function(a,b){var c=_.v().resolve(_.JJ),d,e=((d=a.identifier)==null?void 0:d.tag)||a.panelIdentifier||a.targetId;if(b==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==e){c.hidePanel(this.activePanel);var g;this.activePanel=((g=a.identifier)==null?void 0:g.tag)||a.panelIdentifier}else this.isPersistentPanelActive=!0,_.Yp().dispatch(Abd(!0)),this.anchoredPanelActive=!0,this.activePanel=e;else b==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===e&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Yp().dispatch(Abd(!1)))};
_.f.handlePanelScrimClick=function(){var a=_.v().resolve(_.JJ);this.activePanel&&(a.hidePanel(this.activePanel),_.Yp().dispatch(Abd(!1)))};
_.f.getShortsLoopSetting=function(){var a,b,c,d,e;return _.l(function(g){switch(g.nextAddress){case 1:return _.w("kevlar_shorts_auto_advance")?_.p(g,_.IF.getInstance(),2):g.return(!0);case 2:return(a=g.yieldResult)?_.p(g,a.get("sfvles"),3):g.return(!0);case 3:return c=(b=g.yieldResult)!=null?b:!1,_.p(g,a.get("sfvle"),4);case 4:return e=(d=g.yieldResult)!=null?d:!0,c?g.return(e):g.return(!0)}})};
_.f.handleSignalActionToggleLoopShortsOff=function(){var a=this,b,c,d;return _.l(function(e){switch(e.nextAddress){case 1:if(!a.player)return e.return();a.player.setLoopVideo(!1);b=_.ls();_.sF(b,a.loopToggleOffVe);return _.p(e,_.IF.getInstance(),2);case 2:return(c=e.yieldResult)?_.p(e,c.set("sfvle",!1),3):e.return();case 3:return _.p(e,c.set("sfvles",!0),4);case 4:d=_.yo(),_.zo(0,203,!1),_.zo(0,204,!0),d.save(),_.ue(e)}})};
_.f.handleSignalActionToggleLoopShortsOn=function(){var a=this,b,c,d;return _.l(function(e){switch(e.nextAddress){case 1:if(!a.player)return e.return();a.player.setLoopVideo(!0);b=_.ls();_.sF(b,a.loopToggleOnVe);return _.p(e,_.IF.getInstance(),2);case 2:return(c=e.yieldResult)?_.p(e,c.set("sfvle",!0),3):e.return();case 3:return _.p(e,c.set("sfvles",!0),4);case 4:d=_.yo(),_.zo(0,203,!0),_.zo(0,204,!0),d.save(),_.ue(e)}})};
_.f.handleSignalActionToggleCinematicShortsOn=function(){kbd(!0);var a;(a=this.JSC$19476_cinematicController)==null||_.gbd(a,!0);_.sF(_.ls(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.f.handleSignalActionToggleCinematicShortsOff=function(){kbd(!1);var a;(a=this.JSC$19476_cinematicController)==null||_.gbd(a,!1);_.sF(_.ls(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.f.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.f.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.f.setCurrentReelVideoRenderer=function(){if(_.w("web_enable_shorts_new_carousel_single_instance")&&(this.currentReelVideoRenderer=this.getCurrentShort(),this.overlayContainer)){var a=this.overlayContainer.querySelector("#experiment-overlay");_.zk.addLowPriorityJob(function(){a.style.display="unset"},100)}};
_.f.getCurrentShort=function(){if(this.currentEndpoint){var a=this.currentEndpoint;if(this.isNonVideoContentCommand(a)){var b=_.y(a,_.PE);return{reelNonVideoContentRenderer:_.y(b==null?void 0:b.renderer,_.tEb),command:a}}if(this.data){var c;b=(c=_.y(this.currentEndpoint,_.uq))==null?void 0:c.thumbnail;var d;c=(d=this.data.overlay)==null?void 0:d.reelPlayerOverlayRenderer;_.v().resolve(_.nG);var e,g;d=_.y((e=this.data.overlay)==null?void 0:(g=e.shortsAdsRenderer)==null?void 0:g.overlay,_.dzb);a=Object.assign({},
this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.y(this.currentEndpoint,_.uq),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:c,thumbnail:b,command:a,adsOverlay:d}}}};
_.f.created=function(){var a=this;this.scrollToVideoThrottle=new _.lv(function(b){var c;(c=a.getActiveReelVideo(b))==null||c.scrollIntoView({behavior:"smooth",block:"nearest",inline:a.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.lv(function(b){var c;(c=a.getActiveReelVideo(b))==null||c.scrollIntoView({behavior:"auto",block:"nearest",inline:a.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.f.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.f.attached=function(){var a=this;wbd(this);this.pageScrollElement=_.E(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.gr(this,this.processResetAction));_.w("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.w("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var b=a.getActiveReelVideo(a.activeIndex);
a.maybeCreateIntersectionObserver();b==null||b.scrollIntoView({behavior:"instant",block:"nearest",inline:a.enableScrollIntoViewCenter?"center":"start"});a.shortsContainer.style.overflowY="scroll"}))};
_.f.calculateSqueezebackPanelSize=function(){var a=this,b=window.innerWidth-456-(window.innerHeight-106)*.5625;_.zk.addLowPriorityJob(function(){b<360?_.Yp().dispatch(Bbd(!0)):(a.hostElement.style.setProperty("--anchored-panel-width",Math.min(b,480)+"px"),_.Yp().dispatch(Bbd(!1)))})};
_.f.detached=function(){var a=_.v().resolve(_.nG);a.rootElement=void 0;var b;(b=a.unsubscribeFromStore)==null||b.call(a);a.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.gr(this,this.processResetAction));this.resizeObserver=void 0};
_.f.onResizeFinished=function(a,b){var c=this,d=new ResizeObserver(function(){c.shortsContainer.style.overflowY="hidden";_.zk.addLowPriorityJob(function(){b()},100)});
d.observe(a);return d};
_.f.resetDocumentScrollTop=function(){var a,b;if((a=document)==null?0:(b=a.scrollingElement)==null?0:b.scrollTop)document.scrollingElement.scrollTop=0};
_.f.loadPage_=function(a){var b=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),a){var c;if((c=_.y(this.currentEndpoint,_.uq))==null?0:c.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=a;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){b.isPlayerStarted&&
(b.handleOnPlaybackCommand(),b.afterPlayerStarted=function(){})};
this.registerPanel(a)}};
_.f.afterPlayerStarted=function(){};
_.f.handleOnPlaybackCommand=function(){if(_.w("web_shorts_comment_stickers")&&this.isPlayerStarted){var a,b=(a=_.y(this.currentEndpoint,_.uq))==null?void 0:a.onPlaybackCommand;b&&this.ytComponentBehavior.resolveCommand(b)}};
_.f.maybeCreateIntersectionObserver=function(){var a=this,b=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==b){this.intersectionObserverThreshold=b;var c={rootMargin:"0px",threshold:b},d;(d=this.intersectionObserver)==null||d.disconnect();this.intersectionObserver=new IntersectionObserver(function(e){e=_.h(e);for(var g=e.next();!g.done;g=e.next())if(g=g.value,g.intersectionRatio>b){g=Number(g.target.id);if(isNaN(g))break;if(g===a.index)break;
_.SCa();a.loadVideo(g);_.No("r_vtc")}},c)}};
_.f.observeShorts=function(){var a=_.w("web_enable_shorts_new_carousel_single_instance")?".reel-video-in-sequence-new":"ytd-reel-video-renderer.reel-video-in-sequence";a=[].concat(_.De(_.E(this.hostElement).querySelectorAll(a)));a=_.h(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;(c=this.intersectionObserver)==null||c.observe(b)}};
_.f.initCsi=function(){_.E7c("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var a={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},b,c;if((b=this.playerData)==null?0:(c=b.cacheMetadata)==null?0:c.isCacheHit)a.isCacheHit=!0;var d;if(b=(d=_.y(this.currentEndpoint,_.uq))==null?void 0:
d.prefetchTaskId)a.prefetchInfo={taskId:b};_.Jo(a)};
_.f.isAd=function(){var a,b;return!!((a=_.y(this.currentEndpoint,_.uq))==null?0:(b=a.adClientParams)==null?0:b.isAd)};
_.f.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.f.getPlayerContainer=function(){var a;return(a=this.getActiveReelVideo(this.index))==null?void 0:a.playerContainer};
_.f.onPlayerStateChange=function(a){var b=this;this.isPlayerPaused=a===2;a!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?a===1&&this.index===0&&(this.isPlayerStarted||_.Yp().dispatch(Cbd(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Yp().dispatch(Cbd(!0)));this.player&&!this.player.getLoopVideo()&&_.zk.addLowPriorityJob(function(){b.getShortsLoopSetting().then(function(d){var e;(e=b.player)==null||e.setLoopVideo(d)})});
if(a===0&&_.w("kevlar_shorts_auto_advance"))if(a=this.getActiveReelVideo(this.index),this.isInBackground()){var c=this.getPlayableNextIndex();if(c==null)return;this.gestureType="INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED";this.loadVideo(c,!0)}else a.isWatchWhileMode&&!_.w("shorts_aa_ignore_ww")?(c=this.player)==null||c.seekToStreamTime(0):this.handleNextButtonClick(void 0,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");this.isPlayerPaused&&_.w("web_shorts_paused_state_logging")&&_.Vo(_.En(),[this.reelPlayerPausedStateRendererVe])};
_.f.isInBackground=function(){var a=window.document.visibilityState;return!(!a||a==="visible")};
_.f.isShortPlayable=function(){if(_.w("kevlar_playable_short_killswitch"))return!0;var a;return(a=this.playerData)!=null&&a.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.f.setNormalPlaybackSpeed=function(){var a=this,b,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,a.getPlayer().getPlayerPromise(),2);b=d.yieldResult;c=b.getPlaybackRate();c!==1&&(a.storedPlaybackSpeed=c,b.setPlaybackRate(1));_.ue(d)})};
_.f.restorePlaybackSpeed=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return a.storedPlaybackSpeed===null?c.jumpTo(0):_.p(c,a.getPlayer().getPlayerPromise(),3);b=c.yieldResult;b.setPlaybackRate(a.storedPlaybackSpeed);a.storedPlaybackSpeed=null;_.ue(c)})};
_.f.playerDataChanged=function(){var a=this,b,c,d,e,g,k,m,n;return _.l(function(r){if(r.nextAddress==1){b=a.getPlayer();if(a.playerData){if(((c=a.playerData.videoDetails)==null?void 0:c.videoId)!==((d=b.getPlayer())==null?void 0:d.getVideoData().video_id)){e={};if(g=_.y(a.currentEndpoint,_.uq))e.watch_endpoint=g,g.endTimeSeconds&&(e.end=g.endTimeSeconds);b.loadVideoWithPlayerResponse(a.playerData,e)}}else return r.return();return a.player?r.jumpTo(2):_.p(r,b.getPlayerPromise(),3)}r.nextAddress!=2&&
(a.player=r.yieldResult,a.JSC$19476_playerStateChangeListener=a.onPlayerStateChange.bind(a),a.player.addEventListener("onStateChange",a.JSC$19476_playerStateChangeListener),_.w("kevlar_client_enable_shorts_player_bootstrap")&&_.iw(),a.scrollToVideoThrottle.fire(a.index),a.movePlayerToVideo(a.index),_.zk.addLowPriorityJob(function(){a.getShortsLoopSetting().then(function(t){var u;(u=a.player)==null||u.setLoopVideo(t)})}),_.PJb.resolve(a.player),a.player.syncVolume(),a.getPlayer().focusOnPlayer(),_.w("web_shorts_caption_language_entity_killswitch")||
_.zk.addLowPriorityJob(function(){ybd(_.v().resolve(_.nG),a.player)}));
_.zk.addLowPriorityJob(function(){a.observeShorts()},100);
k=a.player.getPlayerState(a.player.getPresentingPlayerType());k!==1||a.isPlayerStarted||_.Yp().dispatch(Cbd(!0));a.updateBackNavContainerWidth();m=_.y(a.currentEndpoint,_.uq);((n=m)==null?0:n.startTimeSeconds)&&a.player.seekTo(m.startTimeSeconds);if(a.JSC$19476_cinematicController||a.cinematicsInitializeJobId)return r.return();a.cinematicsInitializeJobId=_.zk.addLowPriorityJob(function(){a.initCinematicController();a.cinematicsInitializeJobId=void 0});
_.ue(r)})};
_.f.onShortUndoDismiss=function(){var a=this,b=xbd().pop();b!==void 0&&(_.Qm(this,function(){a.showCardWithIndex(b)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.f.onShortsDismiss=function(a){if(a=a.detail.reelDismissalActionRenderer)(a=_.y(a.onDismissalCompletionRenderer,_.Kad))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:a}}}),this.scrollAndDismissCard()};
_.f.processReelNonVideoContentDismissalCommand=function(a){var b=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);a=_.y(a,Lbd);this.activeDimissalTimeout=setTimeout(function(){b.scrollAndDismissCard()},Number(a==null?void 0:a.delayMs))};
_.f.scrollAndDismissCard=function(){var a=this,b=this.index;xbd().push(b);_.Qm(this,function(){var c=a.getPlayableNextIndex();c!==null&&(c=a.getActiveReelVideo(c),a.hideCardWithIndex(b),c==null||c.scrollIntoView({behavior:"smooth",block:"nearest",inline:a.enableScrollIntoViewCenter?"center":"start"}))})};
_.f.hideCardWithIndex=function(a){this.getActiveReelVideo(a).hidden=!0};
_.f.showCardWithIndex=function(a){this.getActiveReelVideo(a).hidden=!1};
_.f.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.f.activeChanged=function(a){_.Yp().dispatch(_.hp({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:a}}));if(a)document.addEventListener("keydown",_.gr(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var b;(b=this.player)==null||b.sendAbandonmentPing()}var c;(c=this.player)==null||c.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.gr(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.f.graftClientVisualElements=function(){if(this.data){var a=_.ls();_.PIb(a,_.qo({response:this.reelWatchSequenceResponse}));_.qF(a,this.nextReelVe);_.qF(a,this.prevReelVe);_.w("kevlar_shorts_auto_advance")&&(_.qF(a,this.loopToggleOffVe),_.qF(a,this.loopToggleOnVe));_.qF(a,this.ambientModeToggleVe);_.Vo(_.En(),[this.nextReelVe,this.prevReelVe]);_.w("web_shorts_paused_state_logging")&&_.qF(a,this.reelPlayerPausedStateRendererVe)}};
_.f.graftNvcRenderer=function(){var a,b,c,d,e=this.index<0?(a=this.shortsProcessedPrevSequence)==null?void 0:(b=a[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:b.command:(c=this.shortsProcessedSequence)==null?void 0:(d=c[this.index])==null?void 0:d.command;if(e&&this.isNonVideoContentCommand(e)){a=_.y(e,_.PE);var g,k;(a=(g=_.y(a==null?void 0:a.renderer,_.tEb))==null?void 0:(k=g.loggingDirectives)==null?void 0:k.trackingParams)&&_.ls().graftServerVe(a)}};
_.f.setActiveIndex=function(){_.v().resolve(_.nG).setActiveIndex(this.index)};
_.f.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.f.lazyUpdateMiniplayerData=function(){var a=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.zk.addLowPriorityJob(function(){a.updateMiniplayerData();a.updateMiniplayerDataJobId=void 0}))};
_.f.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.zk.cancelJob(this.updateMiniplayerDataJobId)};
_.f.updateMiniplayerData=function(){var a,b,c,d=_.v().resolve(_.$w),e={shortsData:this.getCurrentShort(),previousButtonDisabled:!((a=this.prevButtonData)==null||!a.isDisabled),nextButtonDisabled:!((b=this.nextButtonData)==null||!b.isDisabled),playabilityStatus:(c=this.playerData)==null?void 0:c.playabilityStatus};_.GW(d,e)};
_.f.resetPlayerLocation=function(){var a=this.getPlayer();this.initialPlayerContainer&&(a.appendTo(this.initialPlayerContainer,void 0,!0),_.w("web_enable_shorts_new_carousel_single_instance")&&this.overlayContainer&&(this.initialPlayerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0))};
_.f.movePlayerToVideo=function(a,b){var c=this;b=b===void 0?!0:b;var d=this.getActiveReelVideo(a),e=this.getPlayer();if(d){if(!this.isShortsMiniplayerActive())if(_.w("web_enable_shorts_new_carousel_single_instance")){this.overlayContainer||(this.overlayContainer=_.E(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,e.appendTo(this.overlayContainer.playerContainer,void 0,!0));d.appendChild(this.overlayContainer);var g;(g=this.player)==null||g.setSize(NaN,NaN);_.sl(_.zk,function(){c.isActive=
!0})}else e.appendTo(d.playerContainer,void 0,!0);
e.style.visibility="visible";_.w("reels_web_disable_rtr_tick")||_.w("reels_web_use_pbs_first_shorts")&&a===0||_.Lo("r_tr");this.currentPlayerIndex=a;_.w("web_enable_shorts_new_carousel_single_instance")?d.appendChild(this.errorScreenContainer):d.playerContainer.appendChild(this.errorScreenContainer);this.maybeMoveCinematicsToVideo()}else b?_.zk.addLowPriorityJob(function(){c.movePlayerToVideo(c.index,!1)}):Math.random()<=_.$i("web_shorts_error_logging_threshold")&&_.Cl(new _.qj("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:b,
index:a}))};
_.f.enableFormatFirst=function(a){return _.w("web_enable_format_first")||a.adsOverlay&&_.w("web_enable_format_first_ads_only")||a.reelPlayerOverlayRenderer&&_.w("web_enable_format_first_organic_only")};
_.f.getAspectRatio=function(a){if(a!=null&&a.thumbnail&&this.enableFormatFirst(a))return"--ytd-shorts-player-ratio: "+lbd(a.thumbnail)};
_.f.getBackgroundImage=function(a){if(a!=null&&a.thumbnail){if(_.w("web_enable_format_first")){var b=lbd(a.thumbnail);this.hostElement.style.setProperty("--ytd-shorts-player-ratio",""+b)}return(a=_.Vs(a.thumbnail.thumbnails))?'background-image:url("'+a+'");':"background-color:black;"}};
_.f.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.f.maybeMoveCinematicsToVideo=function(){var a=this;this.cinematicTransitionJobId&&_.zk.cancelJob(this.cinematicTransitionJobId);this.cinematicTransitionJobId=_.zk.addLowPriorityJob(function(){a.moveCinematicsToVideo()},500)};
_.f.moveCinematicsToVideo=function(){var a;(a=this.JSC$19476_cinematicController)!=null&&(a=a.currentCinematicEffect)!=null&&(a=a.storyboardManager,a.paused=!1,_.Pad(a),a.update());a=_.w("web_enable_shorts_new_carousel_single_instance")?_.E(this.hostElement).querySelector("ytd-reel-video-renderer"):this.getActiveReelVideo(this.index);(a==null?0:a.cinematicContainer)&&a.cinematicContainer!==this.shortsCinematicContainer.parentElement&&a.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.f.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.f.updatePrevButtonData=function(){var a=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(a){var b;this.prevButtonData=a=Object.assign({},a,{accessibility:{label:_.vo("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:a.isDisabled||this.index===-(((b=this.shortsProcessedPrevSequence)==null?void 0:b.length)||0),tooltip:this.isUpArrowHidden?"":_.vo("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=a=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.f.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.f.updateNextButtonData=function(){var a=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(a){var b;this.nextButtonData=a=Object.assign({},a,{accessibility:{label:_.vo("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:a.isDisabled||this.index===((b=this.shortsProcessedSequence)==null?void 0:b.length),tooltip:_.vo("NEXT_VIDEO_LABEL")||""})}};
_.f.getPlayablePreviousIndex=function(){for(var a,b=this.index-1;b>=-(((a=this.prevShortsSequence)==null?void 0:a.length)||0);b--)if(!xbd().includes(b))return b;return null};
_.f.getIndexInSequence=function(a,b){return a.findIndex(function(c){var d;return((d=_.y(c.command,_.uq))==null?void 0:d.videoId)===b})};
_.f.handlePrevButtonClick=function(a){var b=this,c,d;return _.l(function(e){c=b.getPlayablePreviousIndex();if(c===null)return e.return();b.gestureType=((d=a)==null?void 0:d.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";c===0&&(b.hidePreviousButtonImmediately=!0);if(b.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){b.transitionToVideoThrottle.fire(c)}),e.return();
b.scrollToVideoThrottle.fire(c);_.ue(e)})};
_.f.getPlayableNextIndex=function(){for(var a,b=this.index+1;b<(((a=this.shortsProcessedSequence)==null?void 0:a.length)||0);b++)if(!xbd().includes(b))return b;return null};
_.f.handleNextButtonClick=function(a,b){var c=this,d,e;return _.l(function(g){d=c.getPlayableNextIndex();if(d===null)return g.return();d===1&&(c.showPreviousButtonImmediately=!0);c.gestureType=((e=a)==null?void 0:e.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";b&&(c.gestureType=b);if(c.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){c.transitionToVideoThrottle.fire(d)}),g.return();
c.scrollToVideoThrottle.fire(d);_.ue(g)})};
_.f.handleReelNavigateCommand=function(a,b,c){(a=_.y(a,Kbd))&&b&&a.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(c)};
_.f.loadVideo=function(a,b){var c=this;b=b===void 0?!1:b;if(a!==this.currentPlayerIndex){_.Yp().dispatch(Cbd(!1));if(this.isAd()&&!b){var d;(d=this.player)==null||d.notifyShortsAdSwipeEvent()}this.cinematicTransitionJobId&&_.zk.cancelJob(this.cinematicTransitionJobId);var e;(e=this.JSC$19476_cinematicController)==null||_.ibd(e);var g;(g=this.JSC$19476_cinematicController)==null||zbd(g);d=a>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(d));
this.getPlayer().style.visibility="hidden";_.w("web_enable_shorts_new_carousel_single_instance")&&this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var k,m,n,r;b=a<0?(k=this.shortsProcessedPrevSequence)==null?void 0:(m=k[this.shortsProcessedPrevSequence.length+a])==null?void 0:m.command:(n=this.shortsProcessedSequence)==null?void 0:(r=n[a])==null?void 0:r.command;this.index=a;this.gestureType||(this.gestureType=d?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");b&&this.isVideoContentCommand(b)&&(this.ytComponentBehavior.resolveCommand(b,{form:{createScreenConfig:{clickedVisualElement:d?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(b&&this.isNonVideoContentCommand(b)){this.currentEndpoint=b;this.data=void 0;k=_.ls();m=_.y(b,_.PE);var t,u;(m=(t=_.y(m==null?void 0:m.renderer,_.tEb))==null?void 0:(u=t.screenLoggingData)==null?void 0:u.screenVeType)&&_.pF(k,
m);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo()}t=_.$i("reels_enable_early_continuation_offset")<=0?1:_.$i("reels_enable_early_continuation_offset");var x,A;if(((x=this.reelWatchSequenceResponse)==null?0:x.continuationEndpoint)&&((A=this.reelWatchSequenceResponse)==null?0:A.entries)&&a===this.reelWatchSequenceResponse.entries.length-t){var C,F;x={contentPlaybackContext:_.vq({},(F=_.y((C=this.currentEndpoint)==null?void 0:C.commandMetadata,_.co))==null?void 0:
F.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:x})}var J,I,R;((J=this.reelWatchSequenceResponse)==null?0:J.prevContinuationEndpoint)&&a===-(((I=this.reelWatchSequenceResponse)==null?void 0:(R=I.prevEntries)==null?void 0:R.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint);!_.w("web_shorts_caption_language_entity_killswitch")&&this.player&&_.zk.addLowPriorityJob(function(){ybd(_.v().resolve(_.nG),
c.player)})}};
_.f.setMiniplayerPreview=function(a){a=(a===void 0?0:a)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var b,c,d=_.v().resolve(_.$w),e={shortsData:void 0,shortsPreviewThumbnail:a?(b=this.shortsProcessedSequence)==null?void 0:(c=b[a])==null?void 0:c.thumbnail:void 0};_.GW(d,e)};
_.f.updateTitle=function(a){var b,c;a=(a==null?0:a.adPlacements)?"":(c=a==null?void 0:(b=a.videoDetails)==null?void 0:b.title)!=null?c:"";_.io(this.hostElement,"yt-update-title",a)};
_.f.registerPanel=function(a){var b=_.v().resolve(_.JJ);if(b){a=_.h(a.engagementPanels||[]);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.engagementPanelSectionListRenderer,e=void 0,g=void 0,k=void 0,m=void 0,n=((e=d)==null?void 0:e.targetId)||((g=d)==null?void 0:g.panelIdentifier)||((k=d)==null?void 0:(m=k.identifier)==null?void 0:m.tag);e=d=void 0;(e=(d=b).registerPanelContent)==null||e.call(d,n,c)}}};
_.f.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.reelWatchSequenceResponse=this.data=void 0;this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.Yp().dispatch(Cbd(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.Yp().dispatch(Abd(!1));var a=_.v().resolve(_.nG);a.dismissedIndices=[];a.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.v().resolve(_.$w).close(!0)};
_.f.processAppendReelWatchSequenceContinuationEntriesAction=function(a){var b=this,c;(c=this.intersectionObserver)==null||c.disconnect();a=a.appendReelWatchSequenceContinuationEntriesAction;if(a==null?0:a.entries){var d;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.De(((d=this.reelWatchSequenceResponse)==null?void 0:d.entries)||[]),_.De(a.entries)),continuationEndpoint:a.continuationEndpoint})}else if(a==null?0:a.prevEntries){var e;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.De(((e=this.reelWatchSequenceResponse)==null?void 0:e.prevEntries)||[]),_.De(a.prevEntries)),prevContinuationEndpoint:a.prevContinuationEndpoint});_.zk.addLowPriorityJob(function(){b.movePlayerToVideo(b.index);var g;(g=b.getActiveReelVideo(b.index))==null||g.scrollIntoView({block:"nearest",inline:b.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.zk.addLowPriorityJob(function(){b.observeShorts()},100)};
_.f.processWatchSequence=function(a){var b=this;return a.map(function(c){c=c.command;if(b.isVideoContentCommand(c)){var d=_.y(c,_.uq);return{reelPlayerOverlayRenderer:_.y(d==null?void 0:d.overlay,_.uEb),thumbnail:d.thumbnail,command:c}}return b.isNonVideoContentCommand(c)?(d=_.y(c,_.PE),{reelNonVideoContentRenderer:_.y(d==null?void 0:d.renderer,_.tEb),command:c}):{command:c}})};
_.f.calculateIntersectionObserverThreshold=function(){if(!_.w("web_shorts_dynamic_intersection_observer_threshold"))return.6;var a=_.E(this.hostElement).querySelector('ytd-reel-video-renderer[id="0"]'),b=1;a&&(b=Math.min(a.offsetHeight,this.shortsContainer.offsetHeight)/a.offsetHeight*(Math.min(a.offsetWidth,this.shortsContainer.offsetWidth)/a.offsetWidth));return Math.round(b*.6*10)/10};
_.f.isVideoContentCommand=function(a){_.v().resolve(_.nG);return!!_.y(a,_.uq)};
_.f.isNonVideoContentCommand=function(a){_.v().resolve(_.nG);return!!_.y(a,_.PE)};
_.f.initCinematicController=function(){var a=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19476_cinematicController=new _.n8(this.shortsCinematicContainer,this.player);var b,c=_.y((b=this.data)==null?void 0:b.background,_.F6);_.hbd(this.JSC$19476_cinematicController,c);_.gbd(this.JSC$19476_cinematicController,jbd(c));_.fbd(this.JSC$19476_cinematicController);_.zk.addLowPriorityJob(function(){a.moveCinematicsToVideo()})}};
_.f.handleMiniplayerNavigateShorts=function(a){a==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():a==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.f.shouldDisplayReelVideoOverlay=function(a,b){return _.w("web_enable_shorts_new_carousel")?Math.abs(a-b)<2:!0};
_.Um.Object.defineProperties(Zbd.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.reelWatchSequenceResponse)!=null&&a.prevEntries)return this.processWatchSequence([].concat(_.De(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var a=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!a)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var b=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.De(this.prevShortsSequence.slice(0,b)),[a],_.De(this.prevShortsSequence.slice(b+
1)))}b=this.index+this.shortsProcessedPrevSequence.length;a.thumbnail=this.shortsProcessedPrevSequence[b].thumbnail;return[].concat(_.De(this.shortsProcessedPrevSequence.slice(0,b)),[a],_.De(this.shortsProcessedPrevSequence.slice(b+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.reelWatchSequenceResponse)!=null&&a.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var a=this.getCurrentShort();if(!a||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[a];if(a==null||!a.reelNonVideoContentRenderer){var b=this.getIndexInSequence(this.shortsSequence,_.y(this.currentEndpoint,_.uq).videoId);if(this.index===0&&b!==-1)return this.currentPlayerIndex=this.index=b,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.De(this.shortsSequence.slice(0,this.index)),[a],_.De(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){a.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var c,d,e,g;b=((d=_.y((c=this.shortsProcessedSequence[0])==null?void 0:c.command,_.uq))==null?void 0:d.videoId)===((g=_.y((e=this.shortsSequence[0])==null?void 0:e.command,_.uq))==null?void 0:g.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.De(this.shortsProcessedSequence.slice(0,
this.index)),[a],_.De(this.shortsSequence.slice(b)))}return[a].concat(_.De(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var a=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;a&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(a)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.reelWatchSequenceResponse)==null?0:a.entries)}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var a;(a=this.delayedActiveIndexUpdateDebouncer)==null||a.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return this.isShortPlayable()||((b=_.y((a=this.data)==null?void 0:a.watchStatus,_.DEb))==null?void 0:(c=b.style)==null?void 0:c.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var a=this,b=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),c;if((this.data||b)&&(((c=this.data)==null?0:c.engagementPanels)||this.isAd()||b)){b=!1;this.activePanel="shorts-comments-panel";var d;c=_.h(((d=this.data)==null?void 0:d.engagementPanels)||[]);for(d=c.next();!d.done;d=c.next()){d=d.value.engagementPanelSectionListRenderer;var e=void 0,g=void 0,k=void 0,m=void 0;if((((e=d)==null?void 0:(g=e.identifier)==
null?void 0:g.tag)||((k=d)==null?void 0:k.targetId)||((m=d)==null?void 0:m.panelIdentifier))===this.activePanel){b=!0;break}}if(this.isPersistentPanelActive){var n=_.v().resolve(_.JJ);_.w("web_enable_shorts_new_carousel_single_instance")?_.sl(_.zk,function(){n.showPanel(a.activePanel,void 0,void 0,void 0,null)},100):_.zk.addJob(function(){n.showPanel(a.activePanel,void 0,void 0,void 0,null)},0)}c=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);
if(c===void 0||(c==null?0:c.isDisabled)||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!b){var r,t,u=(r=this.data)==null?void 0:(t=r.engagementPanels)==null?void 0:t.findIndex(function(F){var J,I;return((J=F.engagementPanelSectionListRenderer)==null?void 0:(I=J.identifier)==null?void 0:I.tag)==="shorts-comments-panel"});
if(u!==-1&&u!==void 0){var x,A;(x=this.data)==null||(A=x.engagementPanels)==null||A.splice(u,1)}var C;return[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.vo("COMMENTS",void 0,"Comments")}]},visibilityButton:_.dl({buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.vo("CLOSE",void 0,"Close")}},command:{hideEngagementPanelEndpoint:{identifier:{surface:"ENGAGEMENT_PANEL_SURFACE_SHORTS",
tag:"shorts-comments-panel"}}}}})}},content:{sectionListRenderer:{contents:[{itemSectionRenderer:{contents:[{messageRenderer:{style:{value:"RENDER_STYLE_PANEL"},text:{runs:[{text:_.vo("COMMENTS_OFF",void 0,"Comments are turned off. ")},{text:" "},{text:_.vo("LEARN_MORE",void 0,"Learn more"),navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/9706180",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://support.google.com/youtube/answer/9706180"}}}]}}}]}}]}},
identifier:{surface:"ENGAGEMENT_PANEL_SURFACE_SHORTS",tag:"shorts-comments-panel"},loggingDirectives:{clientVeSpec:{uiType:139722}},visibility:"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"}}].concat(_.De(Object.values(((C=this.data)==null?void 0:C.engagementPanels)||{})))}return(u=this.data)==null?void 0:u.engagementPanels}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.shortsProcessedSequence)==null?void 0:a[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var a=this,b,c,d;if((b=this.playerData)==null?0:(c=b.playabilityStatus)==null?0:(d=c.errorScreen)==null?0:d.playerInterstitialRenderer)return _.zk.addLowPriorityJob(function(){a.movePlayerToVideo(a.index)}),this.playerData.playabilityStatus.errorScreen;
var e,g;return((e=this.data)==null?void 0:e.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((g=this.data)==null?0:g.watchStatus)&&_.y(this.data.watchStatus,_.FBb)?(_.zk.addLowPriorityJob(function(){a.movePlayerToVideo(a.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.Um.Object.defineProperties(Zbd,{template:{configurable:!0,enumerable:!0,get:function(){if(Nbd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <template is="dom-if" if="[[enableNewCarousel]]" class="style-scope ytd-shorts">\n      <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n        <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n          <template class="style-scope ytd-shorts">\n            <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n              <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n              </div>\n            </div>\n          </template>\n        </dom-repeat>\n      </template>\n      <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <template is="dom-if" if="[[!enableNewCarousel]]" class="style-scope ytd-shorts">\n      <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n        <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n          <template class="style-scope ytd-shorts">\n            <ytd-reel-video-renderer class="reel-video-in-sequence style-scope ytd-shorts" data="[[item]]" disable-upgrade$="[[!shouldDisplayReelVideoOverlay(activeIndex, index)]]" has-error="[[errorScreen]]" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" index="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" is-active="[[isActiveReel(activeIndex,index,shortsProcessedPrevSequence)]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]">\n            </ytd-reel-video-renderer>\n          </template>\n        </dom-repeat>\n      </template>\n      <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <ytd-reel-video-renderer class="reel-video-in-sequence style-scope ytd-shorts" data="[[item]]" disable-upgrade$="[[!shouldDisplayReelVideoOverlay(activeIndex, index)]]" has-error="[[hasError]]" id$="[[index]]" index="[[index]]" is-active="[[isActiveReel(activeIndex,index)]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]">\n          </ytd-reel-video-renderer>\n        </template>\n      </dom-repeat>\n    </template>\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-background="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[enableNewCarousel]]" class="style-scope ytd-shorts">\n      <ytd-reel-video-renderer id="reel-video-renderer" data="[[currentReelVideoRenderer]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n      </ytd-reel-video-renderer>\n    </template>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);Nbd=a}a=Nbd;return a}}});
var w8=Zbd;w8.prototype.onNextButtonDataChange=w8.prototype.onNextButtonDataChange;w8.prototype.onPrevButtonDataChange=w8.prototype.onPrevButtonDataChange;w8.prototype.lazyUpdateMiniplayerData=w8.prototype.lazyUpdateMiniplayerData;w8.prototype.onShortsPipActiveChanged=w8.prototype.onShortsPipActiveChanged;w8.prototype.setActiveIndex=w8.prototype.setActiveIndex;w8.prototype.graftNvcRenderer=w8.prototype.graftNvcRenderer;w8.prototype.graftClientVisualElements=w8.prototype.graftClientVisualElements;
w8.prototype.onActiveChanged=w8.prototype.onActiveChanged;w8.prototype.onShortsDismiss=w8.prototype.onShortsDismiss;w8.prototype.onShortUndoDismiss=w8.prototype.onShortUndoDismiss;w8.prototype.playerDataChanged=w8.prototype.playerDataChanged;w8.prototype.afterPlayerStarted=w8.prototype.afterPlayerStarted;w8.prototype.setCurrentReelVideoRenderer=w8.prototype.setCurrentReelVideoRenderer;w8.prototype.onServiceRequestCompleted=w8.prototype.onServiceRequestCompleted;
w8.prototype.engagementPanelsChanged=w8.prototype.engagementPanelsChanged;w8.prototype.onFullscreenChange=w8.prototype.onFullscreenChange;w8.prototype.onResize=w8.prototype.onResize;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],w8.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.I6.YtPageBehavior),_.W("design:type",Object)],w8.prototype,"ytPageBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],w8.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.OD),_.W("design:type",Object)],w8.prototype,"ironResizableBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],w8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],w8.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.XI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],w8.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],w8.prototype,"ytdReduxBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],w8.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"playerData",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"reelWatchSequenceResponse",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"cachedReelWatchSequenceResponse",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"currentEndpoint",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"nextButtonData",void 0);
_.U([_.O(),_.W("design:type",Object)],w8.prototype,"prevButtonData",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"isPreviousPageShorts",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"index",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"delayedActiveIndex",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"playablePreviousIndex",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"player",void 0);
_.U([_.O(),_.W("design:type",Object)],w8.prototype,"isPlayerPaused",void 0);_.U([_.O({selector:nbd}),_.W("design:type",Object)],w8.prototype,"isPlayerStarted",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"intersectionObserver",void 0);_.U([_.O(),_.W("design:type",Number)],w8.prototype,"cinematicsInitializeJobId",void 0);_.U([_.O(),_.W("design:type",Number)],w8.prototype,"cinematicTransitionJobId",void 0);
_.U([_.O(),_.W("design:type",Number)],w8.prototype,"updateMiniplayerDataJobId",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"fitToVisibleBounds",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"pageSubtype",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"panelShowDelayMs",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],w8.prototype,"enablePreviousContinuation",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"shortsPipEnabled",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"isDark",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"shortsViewTransitions",void 0);_.U([_.O({selector:_.Ev,reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"isFullscreen",void 0);
_.U([_.O({selector:_.Fv,reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"isShortsPipActive",void 0);_.U([_.ir("#shorts-inner-container"),_.W("design:type",HTMLElement)],w8.prototype,"shortsInnerContainer",void 0);_.U([_.ir("#back-nav-button ytd-button-renderer"),_.W("design:type",_.cI)],w8.prototype,"backNavButton",void 0);_.U([_.ir("#shorts-container"),_.W("design:type",HTMLElement)],w8.prototype,"shortsContainer",void 0);
_.U([_.jY("error-screen"),_.W("design:type",HTMLElement)],w8.prototype,"errorScreenContainer",void 0);_.U([_.jY("player"),_.W("design:type",Object)],w8.prototype,"playerElement",void 0);_.U([_.jY("shorts-cinematic-container"),_.W("design:type",HTMLElement)],w8.prototype,"shortsCinematicContainer",void 0);_.U([_.jY("initial-player-container"),_.W("design:type",HTMLElement)],w8.prototype,"initialPlayerContainer",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"buttonOverride",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"anchoredPanelActive",void 0);_.U([_.O(),_.W("design:type",String)],w8.prototype,"activePanel",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"isActive",void 0);_.U([_.O({selector:mbd,reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"smallScreenPersistentPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"isPersistentPanelActive",void 0);
_.U([_.O(),_.W("design:type",Object)],w8.prototype,"smallScreenSqueezeBack",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"enableScrollIntoViewCenter",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"formatFirst",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"enableFlexibleOverlay",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"panelContainer",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"enableNewCarousel",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"overlayContainer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"currentReelVideoRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"isShortsInitialized",void 0);_.U([_.K("reelWatchSequenceResponse"),_.W("design:type",Object),_.W("design:paramtypes",[])],w8.prototype,"prevShortsSequence",null);
_.U([_.K("data","prevShortsSequence"),_.W("design:type",Object),_.W("design:paramtypes",[])],w8.prototype,"shortsProcessedPrevSequence",null);_.U([_.K("reelWatchSequenceResponse"),_.W("design:type",Object),_.W("design:paramtypes",[])],w8.prototype,"shortsSequence",null);_.U([_.K("data","shortsSequence"),_.W("design:type",Object),_.W("design:paramtypes",[])],w8.prototype,"shortsProcessedSequence",null);
_.U([_.O({reflectToAttribute:!0}),_.K("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],w8.prototype,"isUpArrowHidden",null);_.U([_.O({reflectToAttribute:!0}),_.K("reelWatchSequenceResponse"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],w8.prototype,"isDownArrowHidden",null);
_.U([_.O(),_.K("index"),_.W("design:type",Number),_.W("design:paramtypes",[])],w8.prototype,"activeIndex",null);_.U([_.K("isShortPlayable","data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],w8.prototype,"shouldRenderOfflineContent",null);_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"onResize",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],w8.prototype,"anchoredEngagementPanels",null);
_.U([_.O(),_.W("design:type",Object)],w8.prototype,"watchWhileEngagementPanels",void 0);_.U([_.N("isFullscreen"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"onFullscreenChange",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"engagementPanelsChanged",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Vt]),_.W("design:returntype")],w8.prototype,"onServiceRequestCompleted",null);_.U([_.K("data","shortsSequence","index"),_.W("design:type",Object),_.W("design:paramtypes",[])],w8.prototype,"activeReel",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"setCurrentReelVideoRenderer",null);
_.U([_.N("isPlayerStarted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"afterPlayerStarted",null);_.U([_.K("playerData","reelWatchSequenceResponse","data"),_.W("design:type",Object),_.W("design:paramtypes",[])],w8.prototype,"errorScreen",null);_.U([_.K("errorScreen"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],w8.prototype,"hasError",null);
_.U([_.N("playerData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],w8.prototype,"playerDataChanged",null);_.U([_.M("yt-dismissible-item-undo-feedback"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"onShortUndoDismiss",null);_.U([_.M("yt-disable-lockup-interaction"),_.W("design:type",Function),_.W("design:paramtypes",[Object]),_.W("design:returntype")],w8.prototype,"onShortsDismiss",null);
_.U([_.mr("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"onActiveChanged",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"graftClientVisualElements",null);_.U([_.N("currentPlayerIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"graftNvcRenderer",null);
_.U([_.N("index"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"setActiveIndex",null);_.U([_.N("isShortsPipActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"onShortsPipActiveChanged",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"lazyUpdateMiniplayerData",null);
_.U([_.O(),_.W("design:type",Object)],w8.prototype,"onOverlayDensityChanged",void 0);_.U([_.N("index","data","isUpArrowHidden"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"onPrevButtonDataChange",null);_.U([_.N("index","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"onNextButtonDataChange",null);w8=_.U([_.Q({is:"ytd-shorts"})],w8);_.LH.registerService(_.V7a,w8);
_.Dg();
}catch(e){_._DumpException(e)}
try{
_.Cg("JzFVk");
var N$c=function(a){return _.q("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},M$c(a.data.ctaButton,{buttonViewModel:{}}),_.q(_.tt,{text:a.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var O$c;var P$c;var Q$c=function(){return _.P.apply(this,arguments)||this};
_.z(Q$c,_.P);Q$c.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Q$c.prototype.computeBlueBottomLink=function(a){return a};
var U7=Q$c;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],U7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],U7.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],U7.prototype,"data",void 0);_.U([_.O({computed:"computeIcon_(data.bottomIcon)"}),_.W("design:type",String)],U7.prototype,"bottomIcon",void 0);
_.U([_.O({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.W("design:type",Boolean)],U7.prototype,"enableBlueBottomLink",void 0);U7=_.U([_.Q({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],U7);
_.S(U7,"ytd-web-answer-renderer",function(){if(P$c!==void 0)return P$c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-web-answer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section-header" class="style-scope ytd-web-answer-renderer">\n  <yt-formatted-string id="section-title" text="[[data.sectionTitle]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n  <div id="menu" class="style-scope ytd-web-answer-renderer"></div>\n</div>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]">\n  <div id="content" class="style-scope ytd-web-answer-renderer">\n    <div id="content-text" class="style-scope ytd-web-answer-renderer">\n      <div id="content-title" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string id="content-title" text="[[data.contentTitle]]" class="style-scope ytd-web-answer-renderer">\n        </yt-formatted-string>\n        <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n      </div>\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      <div id="source-group" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string text="[[data.sourceName]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n        <div id="separator" hidden="[[!data.publishedDate]]" class="style-scope ytd-web-answer-renderer">\u2022</div>\n        <yt-formatted-string text="[[data.publishedDate]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <yt-img-shadow id="answer-image" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="100" class="style-scope ytd-web-answer-renderer">\n    </yt-img-shadow>\n  </div>\n</a>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" hidden="[[!data.bottomLink]]" href$="[[computeHref_(data.bottomLinkCommand)]]" data="[[data.bottomLinkCommand]]">\n  <div id="bottom-section" class="style-scope ytd-web-answer-renderer">\n    <yt-icon id="bottom-icon" icon="[[bottomIcon]]" class="style-scope ytd-web-answer-renderer"></yt-icon>\n    <yt-formatted-string id="bottom-link" text="[[data.bottomLink]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n    <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n  </div>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return P$c=a},{mode:_.as("kevlar_poly_si_batch_j035")?1:2});var R$c;var S$c=function(){var a=_.P.apply(this,arguments)||this;a.hasChipBar=!1;return a};
_.z(S$c,_.P);S$c.prototype.configureRendererStamper=function(){return{"data.chipBar":{id:"chip-bar",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}},"data.searchFilterButton":{id:"filter-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}},reuseComponents:!1},"data.aboutTheseResultsButton":{id:"about-these-results",mapping:{buttonRenderer:{component:"ytd-button-renderer"}},reuseComponents:!1}}};
S$c.prototype.computeHasChipBar=function(a){return!(a==null||!a.chipBar)};
var V7=S$c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],V7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],V7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],V7.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.W("design:type",Object)],V7.prototype,"hasChipBar",void 0);
V7=_.U([_.Q({is:"ytd-search-header-renderer",disableElementRegistration:!0})],V7);
_.S(V7,"ytd-search-header-renderer",function(){if(R$c!==void 0)return R$c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chip-bar" class="style-scope ytd-search-header-renderer"></div>\n<div id="about-these-results" class="style-scope ytd-search-header-renderer"></div>\n<div id="filter-button" class="style-scope ytd-search-header-renderer"></div>\n\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return R$c=a},{mode:1});var T$c;var U$c=function(){return _.P.apply(this,arguments)||this};
_.z(U$c,_.P);U$c.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var W7=U$c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],W7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],W7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],W7.prototype,"data",void 0);W7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-page-continuation"})],W7);
_.S(W7,"ytd-page-continuation",function(){if(T$c!==void 0)return T$c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pages" class="style-scope ytd-page-continuation"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return T$c=a},{mode:1});var V$c;var W$c;var X$c;var Y$c=function(){return _.P.apply(this,arguments)||this};
_.z(Y$c,_.P);var Z$c=Y$c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Z$c.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Z$c.prototype,"data",void 0);Z$c=_.U([_.Q({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],Z$c);
_.S(Z$c,"ytd-watch-card-one-vs-one-event",function(){if(X$c!==void 0)return X$c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeParticipantResult)]]</span>\n</div>\n<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayParticipantResult)]]</span>\n</div>\n<div class="main-event event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.eventDescription)]]</div>\n<div class="event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.additionalEventDescription)]]</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return X$c=a},{mode:1});var $$c=function(){return _.P.apply(this,arguments)||this};
_.z($$c,_.P);var aad=$$c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],aad.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],aad.prototype,"data",void 0);aad=_.U([_.Q({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],aad);
_.S(aad,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(W$c!==void 0)return W$c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-one-vs-one-event-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-one-vs-one-event-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<ytd-thumbnail data="[[data]]" disable-rounding="" width="386" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer"></ytd-thumbnail>\n\n<div id="bottom-fade" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer">\n  <ytd-watch-card-one-vs-one-event class="hero style-scope ytd-watch-card-hero-one-vs-one-event-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</div>\n    </a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return W$c=a},{mode:1});var bad;var cad=function(){return _.P.apply(this,arguments)||this};
_.z(cad,_.P);var dad=cad;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],dad.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],dad.prototype,"data",void 0);dad=_.U([_.Q({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],dad);
_.S(dad,"ytd-banner-and-box-hero-image-renderer",function(){if(bad!==void 0)return bad;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-and-box-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="banner" thumbnail="[[data.banner]]" width="386" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow><svg id="bg" viewBox="0 0 1300 304" preserveAspectRatio="xMaxYMid slice" class="style-scope ytd-banner-and-box-hero-image-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path></svg><yt-img-shadow id="box" height="184" thumbnail="[[data.box]]" width="131" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return bad=a},{mode:1});var ead;var fad=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.w("web_modern_buttons");return a};
_.z(fad,_.P);fad.prototype.computeIcon=function(){var a,b,c=(a=this.data)==null?void 0:(b=a.icon)==null?void 0:b.iconType;if(c)return _.es(c)};
fad.prototype.computeButtonShape=function(){var a;return{buttonText:_.Wp((a=this.data)==null?void 0:a.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.Um.Object.defineProperties(fad.prototype,{buttonColor:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style.replace("CALL_TO_ACTION_BUTTON_RENDERER_STYLE_",""):"RED"}}});
var X7=fad;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],X7.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],X7.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],X7.prototype,"modern",void 0);_.U([_.O({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.K("data.style"),_.W("design:type",Object),_.W("design:paramtypes",[])],X7.prototype,"buttonColor",null);
X7=_.U([_.Q({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],X7);
_.S(X7,"ytd-call-to-action-button-renderer",function(){if(ead!==void 0)return ead;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-call-to-action-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="overlay-button" hidden="[[modern]]" raised="" tabindex="-1" class="style-scope ytd-call-to-action-button-renderer">\n  <yt-icon id="overlay-icon" icon="[[data.icon.iconType]]" class="style-scope ytd-call-to-action-button-renderer"></yt-icon>\n  <span id="overlay-text" class="style-scope ytd-call-to-action-button-renderer">[[getSimpleString(data.label)]]</span>\n</tp-yt-paper-button>\n<yt-button-shape data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" icon-name="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-call-to-action-button-renderer">\n</yt-button-shape>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return ead=a},{mode:1});var gad;var had=function(){return _.P.apply(this,arguments)||this};
_.z(had,_.P);had.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.E(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.Us(this.data.leftThumbnail.thumbnails,216)+")")};
var Y7=had;Y7.prototype.onLeftThumbnailChanged=Y7.prototype.onLeftThumbnailChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Y7.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Y7.prototype,"data",void 0);_.U([_.N("data.leftThumbnail"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y7.prototype,"onLeftThumbnailChanged",null);Y7=_.U([_.Q({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],Y7);
_.S(Y7,"ytd-collage-hero-image-renderer",function(){if(gad!==void 0)return gad;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-collage-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="collage" class="style-scope ytd-collage-hero-image-renderer"><div id="section-left" class="style-scope ytd-collage-hero-image-renderer"></div><div id="section-right" class="style-scope ytd-collage-hero-image-renderer"><yt-img-shadow id="top-right" height="105" thumbnail="[[data.topRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow><yt-img-shadow height="105" thumbnail="[[data.bottomRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow></div></div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return gad=a},{mode:1});var iad;var jad=function(){return _.P.apply(this,arguments)||this};
_.z(jad,_.P);jad.prototype.computeStyle=function(a){return a};
var Z7=jad;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Z7.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Z7.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],Z7.prototype,"componentStyle",void 0);Z7=_.U([_.Q({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],Z7);
_.S(Z7,"ytd-single-hero-image-renderer",function(){if(iad!==void 0)return iad;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="image" thumbnail="[[data.thumbnail]]" width="386" class="style-scope ytd-single-hero-image-renderer"></yt-img-shadow>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return iad=a},{mode:1});var kad;var lad=function(){return _.P.apply(this,arguments)||this};
_.z(lad,_.P);_.f=lad.prototype;
_.f.configureRendererStamper=function(){return{"data.heroImage":{id:"hero-image",mapping:{bannerAndBoxHeroImageRenderer:"ytd-banner-and-box-hero-image-renderer",singleHeroImageRenderer:"ytd-single-hero-image-renderer",collageHeroImageRenderer:"ytd-collage-hero-image-renderer"}},"data.callToActionButton":{id:"call-to-action-button",mapping:{callToActionButtonRenderer:"ytd-call-to-action-button-renderer"}},"data.reminderButton":{id:"reminder-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",
buttonRenderer:"ytd-button-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:"ytd-thumbnail-overlay-side-panel-renderer",thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayToggleButtonRenderer:"ytd-thumbnail-overlay-toggle-button-renderer"},
initialRenderPriority:_.w("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.f.computeSubtitle=function(a){if(this.data){var b;if(this.data.upcomingEventData){a=_.Wp(a.subtitle);var c=Number(this.data.upcomingEventData.startTime);isNaN(c)||(b=_.Vp(_.Ru(a,c)))}else b=a.subtitle;return b}};
_.f.onHeroTap=function(a){a.preventDefault();var b=this.data&&this.data.navigationEndpoint;!b||!_.Wt(_.Rq(a),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.Wt(_.Rq(a),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.w("kevlar_watchcard_hero_video_renderer_killswitch")?_.io(this.hostElement,"yt-navigate",{navigationEndpoint:b}):this.ytComponentBehavior.resolveCommand(b))};
_.f.computeHeroTabIndex=function(a){return a&&a.simpleText?-1:0};
_.f.computeHeroRole=function(a){return a&&a.simpleText?"":"link"};
_.f.computeIsReminderButtonPresent=function(a){return!(!a||!a.reminderButton)};
_.f.computeHideBottomItems=function(a){return!(this.computeIsReminderButtonPresent(a)||a.subtitle)};
_.f.dataChanged=function(){var a=this.get("data.buttons.buttonRenderer.serviceEndpoint"),b;((b=_.y(a==null?void 0:a.commandMetadata,_.KE))==null?0:b.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(a)};
var $7=lad;$7.prototype.dataChanged=$7.prototype.dataChanged;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],$7.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],$7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],$7.prototype,"data",void 0);
_.U([_.O({computed:"computeSubtitle(data)"}),_.W("design:type",String)],$7.prototype,"subtitle",void 0);_.U([_.O({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],$7.prototype,"isReminderButtonPresent",void 0);_.U([_.O({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],$7.prototype,"hideBottomItems",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$7.prototype,"dataChanged",null);$7=_.U([_.Q({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],$7);
_.S($7,"ytd-watch-card-hero-video-renderer",function(){if(kad!==void 0)return kad;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-card-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" on-tap="onHeroTap" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex$="[[computeHeroTabIndex(data.title)]]" role$="[[computeHeroRole(data.title)]]">\n  <ytd-thumbnail data="[[data]]" disable-rounding="" hidden$="[[!data.thumbnail]]" width="386" class="style-scope ytd-watch-card-hero-video-renderer">\n  </ytd-thumbnail>\n  <div id="hero-image" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div class="title-container style-scope ytd-watch-card-hero-video-renderer" hidden="[[!data.title]]">\n    <div class="title-fade style-scope ytd-watch-card-hero-video-renderer">\n      <a id="watch-card-title" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string id="watch-card-title" text="[[data.title]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n      </a>\n      <div id="bottom-items" hidden="[[hideBottomItems]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        <ytd-badge-supported-renderer id="watch-card-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="watch-card-subtitle" text="[[subtitle]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n        <div id="reminder-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="call-to-action-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div id="overlays" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return kad=a},{mode:1});var mad;var nad=function(){return _.P.apply(this,arguments)||this};
_.z(nad,_.P);_.f=nad.prototype;_.f.configureRendererStamper=function(){return{"data.callToActionButtons":{id:"call-to-action-buttons",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.f.computeTitleBadges=function(a){return a?[a]:[]};
_.f.computeHeaderStyle=function(a){return a?a.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.f.computeAvatarAriaLabel=function(a){if(a){var b,c,d,e;return(e=(b=a.avatar)==null?void 0:(c=b.accessibility)==null?void 0:(d=c.accessibilityData)==null?void 0:d.label)!=null?e:_.Wp(a==null?void 0:a.title)}};
_.f.computeAvatarHeight=function(a){return a==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.f.computeBadgeRowClass=function(a){return(a==null?0:a[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
var a8=nad;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],a8.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],a8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],a8.prototype,"data",void 0);_.U([_.O({computed:"computeTitleBadges(data.titleBadge)"}),_.W("design:type",Array)],a8.prototype,"titleBadges",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.W("design:type",String)],a8.prototype,"headerStyle",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.W("design:type",String)],a8.prototype,"badgeRowClass",void 0);a8=_.U([_.Q({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],a8);
_.S(a8,"ytd-watch-card-rich-header-renderer",function(){if(mad!==void 0)return mad;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-rich-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-watch-card-rich-header-renderer">\n  <div id="body" class="style-scope ytd-watch-card-rich-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]">\n      <ytd-channel-name id="channel-name" badges="[[titleBadges]]" channel-name="[[data.title]]" tooltip-position="bottom" wrap-text="" class="style-scope ytd-watch-card-rich-header-renderer">\n      </ytd-channel-name>\n      <div id="badge-row" class$="[[badgeRowClass]] style-scope ytd-watch-card-rich-header-renderer">\n        <span id="watch-card-subtitle" class="style-scope ytd-watch-card-rich-header-renderer">\n          <yt-formatted-string respect-lang-dir="" text="[[data.subtitle]]" class="style-scope ytd-watch-card-rich-header-renderer"></yt-formatted-string>\n        </span>\n        <template is="dom-if" if="[[data.badges.0.metadataBadgeRenderer]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          </ytd-badge-supported-renderer>\n        </template>\n      </div>\n    </a>\n    \n    <div id="call-to-action-buttons" hidden="[[!data.callToActionButtons]]" class="style-scope ytd-watch-card-rich-header-renderer"></div>\n  </div>\n  <a id="avatar-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]" aria-label="[[computeAvatarAriaLabel(data)]]" hidden="[[!data.avatar]]">\n    <yt-img-shadow id="avatar" height="[[computeAvatarHeight(data.style)]]" thumbnail="[[data.avatar]]" class="style-scope ytd-watch-card-rich-header-renderer">\n    </yt-img-shadow>\n  </a>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return mad=a},{mode:1});var oad;var pad;var qad=function(){return _.P.apply(this,arguments)||this};
_.z(qad,_.P);qad.prototype.onMetadataTap=function(a){var b=this.data&&this.data.navigationEndpoint;b&&!_.Wt(_.Rq(a),this.hostElement,["A".toString()])&&_.io(this.hostElement,"yt-navigate",{endpoint:b})};
_.Um.Object.defineProperties(qad.prototype,{isCondensed:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style==="WATCH_CARD_COMPACT_VIDEO_RENDERER_STYLE_CONDENSED":!1}},
subtitle:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a;if(this.data.upcomingEventData){var b=_.Wp(this.data.subtitle),c=Number(this.data.upcomingEventData.startTime);isNaN(c)||(a=_.Vp(_.Ru(b,c)))}else a=this.data.subtitle;return a}}}});
var b8=qad;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],b8.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],b8.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data.style"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],b8.prototype,"isCondensed",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],b8.prototype,"subtitle",null);
b8=_.U([_.Q({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],b8);
_.S(b8,"ytd-watch-card-compact-video-renderer",function(){if(pad!==void 0)return pad;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-compact-video-renderer"></ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-watch-card-compact-video-renderer" on-click="onMetadataTap">\n    <div class="title-wrapper style-scope ytd-watch-card-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n      </a>\n    </div>\n    <yt-formatted-string class="byline style-scope ytd-watch-card-compact-video-renderer" hidden="[[!data.byline]]" link-inherit-color="" text="[[data.byline]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[subtitle]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div class="metadata style-scope ytd-watch-card-compact-video-renderer">\n      <div class="text style-scope ytd-watch-card-compact-video-renderer">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" text="[[subtitle]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string class="duration style-scope ytd-watch-card-compact-video-renderer" text="[[data.lengthText]]">\n      </yt-formatted-string>\n    </div>\n  </a>\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return pad=a},{mode:1});var rad;var sad=function(){return _.P.apply(this,arguments)||this};
_.z(sad,_.P);var tad=sad;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],tad.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],tad.prototype,"data",void 0);tad=_.U([_.Q({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],tad);
_.S(tad,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(rad!==void 0)return rad;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint metadata style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.navigationEndpoint]]" href$="[[computeHref_(data.navigationEndpoint)]]">\n  <ytd-watch-card-one-vs-one-event class="compact style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return rad=a},{mode:1});var uad=function(){return _.P.apply(this,arguments)||this};
_.z(uad,_.P);uad.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{watchCardCompactVideoRenderer:{component:"ytd-watch-card-compact-video-renderer",noInjection:!0},watchCardOneVsOneEventCompactVideoRenderer:{component:"ytd-watch-card-one-vs-one-event-compact-video-renderer",noInjection:!0}}}}};
var c8=uad;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],c8.prototype,"ytRendererStamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],c8.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],c8.prototype,"data",void 0);c8=_.U([_.Q({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],c8);
_.S(c8,"ytd-vertical-watch-card-list-renderer",function(){if(oad!==void 0)return oad;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-watch-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-watch-card-list-renderer">\n  \n</div>\n<a id="view-all-endpoint" class="yt-simple-endpoint style-scope ytd-vertical-watch-card-list-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[!data.viewAllEndpoint]]" disable-upgrade$="[[!data.viewAllEndpoint]]">\n    [[getSimpleString(data.viewAllText)]]\n</a>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return oad=a},{mode:1});var vad;var wad=function(){var a=_.P.apply(this,arguments)||this;a.ariaExpanded="false";return a};
_.z(wad,_.P);_.f=wad.prototype;_.f.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.f.dataChanged=function(){var a;this.currentSeasonIndex=((a=this.data)==null?void 0:a.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.f.computeEpisodesInfo=function(a,b,c){if(a!==void 0&&b.length===a.length)return a[c]};
_.f.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.f.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.f.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.f.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.f.getUppercaseSimpleString=function(a){return this.ytRendererBehavior.getSimpleString(a).toUpperCase()};
_.f.updateCurrentSeasonIndexFromBinding=function(a){this.currentSeasonIndex=a.detail.value};
var d8=wad;d8.prototype.onIronOverlayClosed=d8.prototype.onIronOverlayClosed;d8.prototype.currentSeasonIndexChanged=d8.prototype.currentSeasonIndexChanged;d8.prototype.dataChanged=d8.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],d8.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],d8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],d8.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",String)],d8.prototype,"label",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],d8.prototype,"currentSeasonIndex",void 0);_.U([_.O({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.W("design:type",Object)],d8.prototype,"episodesInfo",void 0);_.U([_.O({value:"false"}),_.W("design:type",Object)],d8.prototype,"ariaExpanded",void 0);_.U([_.ir("#lists"),_.W("design:type",Object)],d8.prototype,"lists",void 0);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d8.prototype,"dataChanged",null);_.U([_.mr("currentSeasonIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d8.prototype,"currentSeasonIndexChanged",null);_.U([_.M("iron-overlay-closed"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],d8.prototype,"onIronOverlayClosed",null);
d8=_.U([_.Q({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],d8);
_.S(d8,"ytd-watch-card-section-dropdown-renderer",function(){if(vad!==void 0)return vad;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return vad=a},{mode:1});var xad;var yad=function(){var a=_.P.apply(this,arguments)||this;a.isSearch=!1;return a};
_.z(yad,_.P);yad.prototype.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:{component:"ytd-vertical-watch-card-list-renderer",noInjection:!0},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}}}};
var e8=yad;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],e8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],e8.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],e8.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],e8.prototype,"isSearch",void 0);e8=_.U([_.Q({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],e8);
_.S(e8,"ytd-watch-card-section-sequence-renderer",function(){if(xad!==void 0)return xad;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-sequence-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="lists" class="style-scope ytd-watch-card-section-sequence-renderer">\n  \n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
return xad=a},{mode:1});var M$c=_.Du({buttonViewModel:_.Qu});_.Zl(N$c);_.at(N$c,"ytd-button-banner-view-model",{propNames:["data"]});var zad=function(){var a=_.P.apply(this,arguments)||this;a.isSearch=!1;return a};
_.z(zad,_.P);
zad.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{watchCardRichHeaderRenderer:{component:"ytd-watch-card-rich-header-renderer",noInjection:!0}}},"data.callToAction":{id:"hero",mapping:{watchCardHeroVideoRenderer:{component:"ytd-watch-card-hero-video-renderer",noInjection:!0},watchCardHeroOneVsOneEventRenderer:{component:"ytd-watch-card-hero-one-vs-one-event-renderer",noInjection:!0}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0}}},
"data.sections":{id:"sections",mapping:{watchCardSectionDropdownRenderer:{component:"ytd-watch-card-section-dropdown-renderer",noInjection:!0},watchCardSectionSequenceRenderer:{component:"ytd-watch-card-section-sequence-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}},"data.footer":{id:"footer",mapping:{buttonBannerViewModel:"ytd-button-banner-view-model"}}}};
var f8=zad;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],f8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],f8.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],f8.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],f8.prototype,"rounded",void 0);_.U([_.O(),_.W("design:type",Object)],f8.prototype,"isSearch",void 0);
f8=_.U([_.Q({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],f8);
_.S(f8,"ytd-universal-watch-card-renderer",function(){if(V$c!==void 0)return V$c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-universal-watch-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="hero" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="action-buttons" hidden="[[!data.actionButtons]]" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="sections" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="footer" class="style-scope ytd-universal-watch-card-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return V$c=a},{mode:1});var Aad;_.Ts(_.Rr(function(a){var b=a.data;var c;a=!((c=_.v().resolve(_.Xi(_.Ks)))==null||!c());c={};return _.q("overview-message-view-model",{class:_.et("ytwOverviewMessageViewModelHost",(c.ytwOverviewMessageViewModelDarkBackground=a,c.ytwOverviewMessageViewModelLightBackground=!a,c))},_.q(_.qi,{cond:function(){return b().primaryImage},
then:function(d){return _.q(_.Ps,{data:d,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.q(_.qi,{cond:function(){return b().primaryText},
then:function(){return _.q("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.q(_.tt,{text:function(){return b().primaryText}}))}}),_.q(_.qi,{cond:function(){return b().secondaryText},
then:function(){return _.q("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.q(_.tt,{text:function(){return b().secondaryText}}))}}))},"yh"),"overview-message-view-model",{props:{data:_.VG}});_.at(_.oac,"ytd-overview-answer-view-model",{propNames:["data"]});var Bad=function(){return _.P.apply(this,arguments)||this};
_.z(Bad,_.P);Bad.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{universalWatchCardRenderer:{component:"ytd-universal-watch-card-renderer",properties:{isSearch:"[[isSearch]]"}},overviewAnswerViewModel:"ytd-overview-answer-view-model",overviewMessageViewModel:"overview-message-view-model"}}}};
Bad.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
var g8=Bad;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],g8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],g8.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.WM),_.W("design:type",Object)],g8.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],g8.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],g8.prototype,"isSearch",void 0);
g8=_.U([_.Q({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],g8);
_.S(g8,"ytd-secondary-search-container-renderer",function(){if(Aad!==void 0)return Aad;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-secondary-search-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-secondary-search-container-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
return Aad=a},{mode:1});var Cad;var Dad=function(){var a=_.P.apply(this,arguments)||this;a.renderSecondarySearchContainer=!1;a.isSearch=!1;a.isSearchDova=_.w("dova_on_search");return a};
_.z(Dad,_.P);_.f=Dad.prototype;_.f.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]",isSearchDova:"[[isSearchDova]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.f.created=function(){var a=this;this.boundStampSecondarySearchContainerIfFits=function(){a.stampSecondarySearchContainerIfFits()};
_.Ei("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.f.computeIsSearchFrictionPage=function(a){var b,c,d,e,g;a=a==null?void 0:(b=a.primaryContents)==null?void 0:(c=b.sectionListRenderer)==null?void 0:(d=c.contents)==null?void 0:(e=d[0])==null?void 0:(g=e.itemSectionRenderer)==null?void 0:g.contents;if(!a)return!1;b=_.h(a);for(c=b.next();!c.done;c=b.next())if(d=void 0,(d=c.value)==null?0:d.searchFrictionViewModel)return!0;return!1};
_.f.computeShowSecondaryColumn=function(a,b){return!!(b&&b.secondaryContents&&a)};
_.f.activeChanged=function(){var a=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.gr(this,this.debounceStampSecondarySearchContainerIfFits)),_.Er(function(){a.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.gr(this,this.debounceStampSecondarySearchContainerIfFits))};
_.f.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.f.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.f.debounceStampSecondarySearchContainerIfFits=function(){_.Fr(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.f.onRetrieveLocation=function(a,b){b.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);a.stopPropagation()};
_.f.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
var h8=Dad;h8.prototype.dataChanged=h8.prototype.dataChanged;h8.prototype.onRetrieveLocation=h8.prototype.onRetrieveLocation;h8.prototype.persistentGuideChanged=h8.prototype.persistentGuideChanged;h8.prototype.activeChanged=h8.prototype.activeChanged;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],h8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],h8.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.XI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],h8.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.H(_.OD),_.W("design:type",Object)],h8.prototype,"ironResizableBehavior",void 0);_.U([_.O(),_.W("design:type",Boolean)],h8.prototype,"active",void 0);_.U([_.O(),_.W("design:type",Object)],h8.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],h8.prototype,"useBiggerThumbs",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.aj("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],h8.prototype,"biggerThumbsStyle",void 0);_.U([_.O(),_.W("design:type",Object)],h8.prototype,"renderSecondarySearchContainer",void 0);_.U([_.O({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.W("design:type",Boolean)],h8.prototype,"showSecondaryColumn",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.W("design:type",Boolean)],h8.prototype,"isSearchFrictionPage",void 0);
_.U([_.O(),_.W("design:type",Object)],h8.prototype,"isSearch",void 0);_.U([_.O(),_.W("design:type",Object)],h8.prototype,"isSearchDova",void 0);_.U([_.N("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h8.prototype,"activeChanged",null);_.U([_.N("guidePersistentAndVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h8.prototype,"persistentGuideChanged",null);
_.U([_.M("yt-retrieve-location"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],h8.prototype,"onRetrieveLocation",null);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h8.prototype,"dataChanged",null);h8=_.U([_.Q({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],h8);
_.S(h8,"ytd-two-column-search-results-renderer",function(){if(Cad!==void 0)return Cad;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-search-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-search-results-renderer">\n  <div id="continuations" class="style-scope ytd-two-column-search-results-renderer"></div>\n</div>\n<ytd-secondary-search-container-renderer id="secondary" data="[[data.secondaryContents.secondarySearchContainerRenderer]]" disable-upgrade$="[[!showSecondaryColumn]]" hidden="[[!showSecondaryColumn]]" is-search="[[isSearch]]" class="style-scope ytd-two-column-search-results-renderer">\n</ytd-secondary-search-container-renderer>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Cad=a},{mode:1});var Ead=function(){var a=_.P.apply(this,arguments)||this;a.hasSearchHeader=!1;a.hasSecondaryContent=!1;a.hasBiggerThumbs=_.w("enable_desktop_search_bigger_thumbs");a.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return a};
_.z(Ead,_.P);_.f=Ead.prototype;_.f.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{searchHeaderRenderer:{component:"ytd-search-header-renderer"}}},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:_.PW(["aa","eocs"])}}};
_.f.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.f.loadPage_=function(a){this.initCsi();a&&(this.data=a,_.Ei("REFINEMENTS_TUPLE",["FromSearchResponse",a.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Pk(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.f.initCsi=function(){_.E7c("results",["ol","cpt"])};
_.f.updateTitle=function(){var a=_.Kg(window.location.href,"q");a||(a=_.Kg(window.location.href,"search_query"));_.io(this.hostElement,"yt-update-title",a||"")};
_.f.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.f.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.w("web_srp_data_changed_terminate_imp_killswitch")||_.lo(this.hostElement,"yt-terminate-video-preview-action")};
_.f.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.f.computeHasSearchHeader=function(a){var b;a=a==null?void 0:(b=a.header)==null?void 0:b.searchHeaderRenderer;return!!a&&(!!a.searchFilterButton||!!a.chipBar)};
_.f.computeHasSecondaryContent=function(a){var b,c;return!!(a==null?0:(b=a.contents)==null?0:(c=b.twoColumnSearchResultsRenderer)==null?0:c.secondaryContents)};
_.Um.Object.defineProperties(Ead,{template:{configurable:!0,enumerable:!0,get:function(){if(O$c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="container" class="style-scope ytd-search">\n  <div id="header" class="style-scope ytd-search"></div>\n  <ytd-two-column-search-results-renderer active="[[active]]" data="[[data.contents.twoColumnSearchResultsRenderer]]" hidden="[[data.hideContents]]" is-search="true" class="style-scope ytd-search">\n  </ytd-two-column-search-results-renderer>\n</div>\n<div id="survey" class="style-scope ytd-search"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);O$c=a}a=O$c;return a}}});
var i8=Ead;i8.prototype.onReloadContinuationFinish=i8.prototype.onReloadContinuationFinish;i8.prototype.dataChanged=i8.prototype.dataChanged;_.U([_.H(_.I6.YtPageBehavior),_.W("design:type",Object)],i8.prototype,"ytPageBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],i8.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],i8.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],i8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.WM),_.W("design:type",Object)],i8.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],i8.prototype,"data",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],i8.prototype,"monitorScroll",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],i8.prototype,"hasSearchHeader",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],i8.prototype,"hasSecondaryContent",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],i8.prototype,"hasBiggerThumbs",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i8.prototype,"dataChanged",null);
_.U([_.M("yt-reload-continuation-finish"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i8.prototype,"onReloadContinuationFinish",null);i8=_.U([_.Q({is:"ytd-search"})],i8);_.LH.registerService(_.U7a,i8);
_.Dg();
}catch(e){_._DumpException(e)}
try{
_.Cg("h8y2qb");
var G7c=function(a){if(a=_.YQa(a)){var b;(b=a.sources)!=null&&b[0]?(b=_.$Qa(a),b=b<1?"VERTICAL":b>1?"HORIZONTAL":"SQUARE"):b=void 0;return b}},J6=function(a){_.HA.call(this,"upload");
this.opts.query=a},I7c=function(a,b){return _.q(H7c,{data:a,
onYtNavigate:b})},K7c=function(a,b){return a.map(function(c){if(c.tabRenderer)return J7c(c.tabRenderer);
if(c.expandableTabRenderer&&b){var d=c.expandableTabRenderer;return{customTabRenderable:function(){return b(d)}}}return{}})},J7c=function(a){return{identifier:a.tabIdentifier,
aTagConfig:_.Fs({innertubeCommand:a.endpoint,forceNewState:!0}),title:a.title,selected:a.selected,disabled:a.unselectable}},L7c=function(a,b){return _.np(a.entities,"pageHeaderEntity",b)},O7c=function(a){var b=a.data;
var c=a.noPadding===void 0?!1:a.noPadding;var d=a.enableBanner===void 0?!1:a.enableBanner;var e=a.cinematicContainerTopbarOffset;var g=a.allowCinematicContainerOverflow===void 0?!1:a.allowCinematicContainerOverflow;a=a.displayAsSidebar===void 0?!1:a.displayAsSidebar;if(b==null?0:b.tagManagerId)_.BG(b.tagManagerId,_.Fi("GL")),M7c(b.tagManagerId);a:{if(b.pageHeaderEntityKey){var k=_.su(L7c,b.pageHeaderEntityKey);if(k==null?0:k.header){k=k==null?void 0:k.header;break a}}k=a&&b.sidebarContent?b.sidebarContent:
b.content}return _.q("yt-page-header-renderer",{class:"page-header-renderer-wiz"},N7c(k,{pageHeaderViewModel:{noPadding:c,enableBanner:d,cinematicContainerTopbarOffset:e,allowCinematicContainerOverflow:g,displayAsSidebar:a&&b.enableSidebarView}}))},P7c=function(a){return _.hp({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:a})},M7c=function(a){if(!_.cu(document,"gtm-noscript")){var b=document.createElement("noscript");
b.id="gtm-noscript";b.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+a+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(b)}};_.sx(J6,_.HA);J6.prototype.JSC$7921_setLabel=function(a){J6.superClass_.JSC$7921_setLabel.call(this,a);return this};
J6.prototype.addUploadMetadata=function(a,b){J6.superClass_.addUploadMetadata.call(this,a,b);return this};var Q7c=function(a){if(a!=="youtubebanner"&&a!=="youtube-channel-banner")throw Error("Wl");J6.call(this,a)};
_.z(Q7c,J6);Q7c.prototype.JSC$7921_setLabel=function(a){J6.prototype.JSC$7921_setLabel.call(this,a);return this};
Q7c.prototype.addUploadMetadata=function(a,b){J6.prototype.addUploadMetadata.call(this,a,b);return this};var R7c=[_.OD,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(a){_.wn(a).path[0]!==this&&(this.resetLayout(),a.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var a=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.rC(this._layoutDebouncer,_.ss,a);_.sC(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var a=this;requestAnimationFrame(function(){a.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(a){this.resizerShouldNotify(a)&&this._notifyDescendant(a)},this)}}];_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers={};_._scrollTimer$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers=null;var S7c=[_.Oub,{properties:{effects:{type:String},effectsConfig:{type:Object,value:function(){return{}}},
disabled:{type:Boolean,reflectToAttribute:!0,value:!1},threshold:{type:Number,value:0},thresholdTriggered:{type:Boolean,notify:!0,readOnly:!0,reflectToAttribute:!0}},observers:["_effectsChanged(effects, effectsConfig, isAttached)"],_updateScrollState:function(){},
isOnScreen:function(){return!1},
isContentBelow:function(){return!1},
_effectsRunFn:null,_effects:null,get _clampedScrollTop(){return Math.max(0,this._scrollTop)},attached:function(){this._scrollStateChanged()},
detached:function(){this._tearDownEffects()},
createEffect:function(a,b){var c=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[a];if(!c)throw new ReferenceError(this._getUndefinedMsg(a));a=this._boundEffect(c,b||{});a.setUp();return a},
_effectsChanged:function(a,b,c){this._tearDownEffects();a&&c&&(a.split(" ").forEach(function(d){var e;d!==""&&((e=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[d])?this._effects.push(this._boundEffect(e,b[d])):console.warn(this._getUndefinedMsg(d)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(a,b){b=b||{};var c=parseFloat(b.startsAt||0),d=parseFloat(b.endsAt||1),e=d-c,g=function(){};
d=c===0&&d===1?a.run:function(k,m){a.run.call(this,Math.max(0,(k-c)/e),m)};
return{setUp:a.setUp?a.setUp.bind(this,b):g,run:a.run?d.bind(this):g,tearDown:a.tearDown?a.tearDown.bind(this):g}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(a){a.setUp()!==!1&&this._effectsRunFn.push(a.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(a){a.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(a,b){this._effectsRunFn&&this._effectsRunFn.forEach(function(c){c(a,b)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var a=this._clampedScrollTop;this._updateScrollState(a);this.threshold>0&&this._setThresholdTriggered(a>=this.threshold)}},
_getDOMRef:function(a){console.warn("_getDOMRef","`"+a+"` is undefined")},
_getUndefinedMsg:function(a){return"Scroll effect `"+a+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+a+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Xl`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(a){var b={};a=parseFloat(a.scalar);b.background=this._getDOMRef("background");b.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");b.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");b.deltaBg=b.backgroundFrontLayer.offsetHeight-b.background.offsetHeight;b.deltaBg===0?(isNaN(a)&&(a=.8),b.deltaBg=(this._dHeight||0)*a):(isNaN(a)&&(a=
1),b.deltaBg*=a);this._fxParallaxBackground=b},
run:function(a){var b=this._fxParallaxBackground;this.transform("translate3d(0px, "+b.deltaBg*Math.min(1,a)+"px, 0px)",b.backgroundFrontLayer);b.backgroundRearLayer&&this.transform("translate3d(0px, "+b.deltaBg*Math.min(1,a)+"px, 0px)",b.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var T7c;var U7c;var V7c=function(){};
_.f=V7c.prototype;_.f._scrollTargetChanged=function(){};
_.f.scroll=function(){};
_.f._isValidScrollTarget=function(){};
_.f._toggleScrollListener=function(){};
_.f.toggleScrollListener=function(){};
_.f.createEffect=function(){};
_.f._effectsChanged=function(){};
_.f._layoutIfDirty=function(){};
_.f._boundEffect=function(){};
_.f._setUpEffect=function(){};
_.f._tearDownEffects=function(){};
_.f._runEffects=function(){};
_.f._scrollHandler=function(){};
_.f._scrollStateChanged=function(){};
_.f._getUndefinedMsg=function(){};
_.f.notifyResize=function(){};
_.f.assignParentResizable=function(){};
_.f.stopResizeNotificationsFor=function(){};
_.f._subscribeIronResize=function(){};
_.f._unsubscribeIronResize=function(){};
_.f.resizerShouldNotify=function(){};
_.f._onDescendantIronResize=function(){};
_.f._fireResize=function(){};
_.f._onIronRequestResizeNotifications=function(){};
_.f._parentResizableChanged=function(){};
_.f._notifyDescendant=function(){};
_.f._requestResizeNotifications=function(){};
_.f._findParent=function(){};
_.f._appResetLayoutHandler=function(){};
_.f.resetLayout=function(){};
_.f._notifyLayoutChanged=function(){};
_.f._notifyDescendantResize=function(){};
_.f._setThresholdTriggered=function(){};
V7c=_.sr({_template:function(){if(U7c!==void 0)return U7c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header.tp.yt.app.header.css.js--\x3e<div id="contentContainer" class="style-scope tp-yt-app-header">\n  <slot id="slot" class="style-scope tp-yt-app-header"></slot>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;T7c===void 0&&(T7c=document.createElement("template"));var d=T7c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return U7c=a},
is:"tp-yt-app-header",behaviors:[S7c,R7c],properties:{condenses:{type:Boolean,value:!1},fixed:{type:Boolean,value:!1},reveals:{type:Boolean,value:!1},shadow:{type:Boolean,reflectToAttribute:!0,value:!1}},observers:["_configChanged(isAttached, condenses, fixed)"],_height:0,_dHeight:0,_stickyElTop:0,_stickyElRef:null,_top:0,_progress:0,_wasScrollingDown:!1,_initScrollTop:0,_initTimestamp:0,_lastTimestamp:0,_lastScrollTop:0,get _maxHeaderTop(){return this.fixed?this._dHeight:this._height+5},get _stickyEl(){if(this._stickyElRef)return this._stickyElRef;
for(var a=_.wn(this.$.slot).getDistributedNodes(),b=0,c;c=a[b];b++)if(c.nodeType===Node.ELEMENT_NODE)if(c.hasAttribute("sticky")){this._stickyElRef=c;break}else this._stickyElRef||(this._stickyElRef=c);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var a=this._clampedScrollTop,b=this._height===0||a===0,c=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;b||this._updateScrollState(0,!0);this._mayMove()?this._dHeight=this._stickyEl?this._height-this._stickyEl.offsetHeight:0:this._dHeight=0;this._stickyElTop=this._stickyEl?this._stickyEl.offsetTop:0;this._setUpEffect();b?this._updateScrollState(a,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=c}},
_updateScrollState:function(a,b){if(this._height!==0){var c=0,d=this._top;var e=this._maxHeaderTop;var g=a-this._lastScrollTop,k=Math.abs(g),m=a>this._lastScrollTop,n=performance.now();this._mayMove()&&(c=this._clamp(this.reveals?d+g:a,0,e));a>=this._dHeight&&(c=this.condenses&&!this.fixed?Math.max(this._dHeight,c):c,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&k<100){if(n-this._initTimestamp>300||this._wasScrollingDown!==m)this._initScrollTop=a,this._initTimestamp=n;a>=e&&
(Math.abs(this._initScrollTop-a)>30||k>10?(m&&a>=e?c=e:!m&&a>=this._dHeight&&(c=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((c-d)/(g/(n-this._lastTimestamp)),0,300)+"ms"):c=this._top)}e=this._dHeight===0?a>0?1:0:c/this._dHeight;b||(this._lastScrollTop=a,this._top=c,this._wasScrollingDown=m,this._lastTimestamp=n);if(b||e!==this._progress||d!==c||a===0)this._progress=e,this._runEffects(e,c),this._transformHeader(c)}},
_mayMove:function(){return this.condenses||!this.fixed},
willCondense:function(){return this._dHeight>0&&this.condenses},
isOnScreen:function(){return this._height!==0&&this._top<this._height},
isContentBelow:function(){return this._top===0?this._clampedScrollTop>0:this._clampedScrollTop-this._maxHeaderTop>=0},
_transformHeader:function(a){this.translate3d(0,-a+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&a>=this._stickyElTop?Math.min(a,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(a,b,c){return Math.min(c,Math.max(b,a))},
_ensureBgContainers:function(){this._bgContainer||(this._bgContainer=document.createElement("div"),this._bgContainer.id="background",this._bgRear=document.createElement("div"),this._bgRear.id="backgroundRearLayer",this._bgContainer.appendChild(this._bgRear),this._bgFront=document.createElement("div"),this._bgFront.id="backgroundFrontLayer",this._bgContainer.appendChild(this._bgFront),_.wn(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(a){switch(a){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.wn(this).querySelector("[main-title]");case "condensedTitle":return _.wn(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var W7c;var X7c;_.sr({_template:function(){if(X7c!==void 0)return X7c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header-layout--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header_layout.tp.yt.app.header.layout.css.js--\x3e<div id="wrapper" class="initializing style-scope tp-yt-app-header-layout">\n  <slot id="headerSlot" name="header" class="style-scope tp-yt-app-header-layout"></slot>\n\n  <div id="contentContainer" class="style-scope tp-yt-app-header-layout">\n    <slot class="style-scope tp-yt-app-header-layout"></slot>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;W7c===void 0&&(W7c=document.createElement("template"));var d=W7c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return X7c=a},
is:"tp-yt-app-header-layout",behaviors:[R7c],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.wn(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var a=this.header;if(this.isAttached&&a){this.$.wrapper.classList.remove("initializing");a.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)a.style.left=
"",a.style.right="";else{var b=this.getBoundingClientRect(),c=document.documentElement.clientWidth-b.right;a.style.left=b.left+"px";a.style.right=c+"px"}b=this.$.contentContainer.style;c=a.offsetHeight;a.fixed&&!a.condenses&&this.hasScrollingRegion?(b.marginTop=c+"px",b.paddingTop=""):(b.paddingTop=c+"px",b.marginTop="")}}});var Y7c=new _.X("replaceFeedContentAction");var Z7c=new _.X("alertCommand");var $7c=new _.X("manageLabsStateCommand");var a8c=new _.X("channelBannerEditorRenderer");var b8c=new _.X("inlineFormRenderer");var c8c=new _.X("playlistSidebarPrimaryInfoRenderer");var d8c=new _.X("productDetailsThumbnailRenderer"),e8c=new _.X("productDetailsVariantRenderer"),f8c=new _.X("productDetailsVariantOptionRenderer"),g8c=new _.X("productDetailsOffersContainerRenderer"),h8c=new _.X("productDetailsOfferRenderer");var i8c=new _.X("shoppingFlaggingRenderer");var j8c=new _.X("playlistBylineRenderer");var k8c=new _.X("insertChannelTabCommand");var l8c=function(){return _.kr.apply(this,arguments)||this};
_.z(l8c,_.kr);_.f=l8c.prototype;_.f.activeChanged=function(){if(this.active){var a=_.E(this.hostElement).querySelector("#header");a&&_.io(a,"iron-resize");window.addEventListener("scroll",_.gr(this,this.onScroll))}else window.removeEventListener("scroll",_.gr(this,this.onScroll)),_.io(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.f.guideVisibleChanged=function(){var a=_.E(this.hostElement).querySelector("#header");a&&_.io(a,"iron-resize")};
_.f.onScroll=function(){var a=this;_.Fr(this,"onScroll",function(){var b=_.E(a.hostElement).querySelector("#header");b&&b.polymerController&&(b=b.polymerController.getScrollState().progress===1?"standard":"seamed",_.io(a.hostElement,"yt-request-panel-mode-change",{mode:b}))},10)};
_.f.tabsChanged=function(){if(this.tabs){for(var a=null,b=0,c=this.tabs.length;b<c;++b){var d=this.tabs[b].tabRenderer;if(d&&d.selected){a=b;break}}this.selected=a}};
_.f.onTabsActivate=function(a){_.io(this.hostElement,"yt-navigate",{endpoint:this.tabs[a.detail.selected].tabRenderer.endpoint})};
var K6=l8c;K6.prototype.tabsChanged=K6.prototype.tabsChanged;K6.prototype.guideVisibleChanged=K6.prototype.guideVisibleChanged;K6.prototype.activeChanged=K6.prototype.activeChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],K6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.XI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],K6.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.O(),_.W("design:type",Array)],K6.prototype,"tabs",void 0);
_.U([_.O(),_.W("design:type",Object)],K6.prototype,"selected",void 0);_.U([_.O(),_.W("design:type",Boolean)],K6.prototype,"active",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],K6.prototype,"disableHeaderFluidWidth",void 0);_.U([_.N("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K6.prototype,"activeChanged",null);
_.U([_.N("guidePersistentAndVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K6.prototype,"guideVisibleChanged",null);_.U([_.N("tabs"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K6.prototype,"tabsChanged",null);K6=_.U([_.lr()],K6);var m8c=[_.Z.YtRendererBehavior,_.XI.YtdGuideStateAwareBehavior,K6.prototype];var n8c=2/3,o8c=_.ku(130749),p8c=function(a,b){var c=this;this.element=a;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){c.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:n8c,moveAction:function(d){c.moveAction(d)},
triggerAction:function(){c.element.isReloading=!0;_.Ot(_.ls(),{visualElement:o8c});_.gs.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:c.element}})}}}};
_.rF(_.ls(),o8c,this.layer);this.gesture=new _.w6(a,b,this.refreshConfig,"pan-down");this.attach()};
_.f=p8c.prototype;_.f.attach=function(){this.gesture.attach()};
_.f.detach=function(){this.gesture.detach()};
_.f.reset=function(){this.element.close()};
_.f.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.f.moveAction=function(a){this.element.rotation=a*360};var q8c=_.ku(130750),L6=function(a,b,c,d,e){var g=this;this.element=a;this.parent=c;this.channelHeader=d;this.ytdReduxDispatch=e;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){g.tabsStartAtInPx=g.channelHeader.clientHeight-48;var k;(k=g.selectedTab)!=null&&k.title&&(k=_.v().resolve(_.Xi(_.Zt)))&&(k=k.getCurrentPage(),g.lastVisitedTabScrollPosition=k.getScrollTop(),g.previousTab&&
((g.lastVisitedTabScrollPosition===void 0?0:g.lastVisitedTabScrollPosition<g.channelHeader.clientHeight-48)?g.scrollPositionForTabs.has(g.selectedTab.title)&&g.scrollPositionForTabs.delete(g.selectedTab.title):g.scrollPositionForTabs.set(g.selectedTab.title,k.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:r8c(),triggerAction:function(){g.navigate(g.previousTab)},
moveAction:function(k,m){g.moveAction(k,m)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-r8c(),triggerAction:function(){g.navigate(g.nextTab)},
moveAction:function(k,m){g.moveAction(k,m)}}}};
_.rF(_.ls(),q8c,this.layer);this.gesture=new _.w6(a,b,this.tabConfig);this.attach()};
L6.prototype.attach=function(){this.gesture.attach()};
L6.prototype.detach=function(){this.gesture.detach()};
L6.prototype.tabsChanged=function(a){if(a){var b=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;a=_.h(a);for(var c=a.next();!c.done;c=a.next()){c=c.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=c);var d=void 0;if((d=c)==null?0:d.selected)this.previousTab=b,this.selectedTab=c;b=c}b=this.gesture;a=this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}});
b.config=a;this.scrollPositionNeedsUpdate=!0}};
L6.prototype.moveAction=function(a,b){if(!this.tabsElement){var c;this.tabsElement=(c=this.parent.header)==null?void 0:c.tabsElement;b==="right"&&this.previousTab?_.yLb(_.pG.instance,this.previousTab.endpoint,{},""):b==="left"&&this.nextTab&&_.yLb(_.pG.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}c=this.tabsElement._pos;b==="right"&&(a*=-1);this.tabsElement._positionBar(c.width,c.left*1+c.width*a)};
var r8c=function(){var a,b;return(b=(a=_.v().resolve(_.Zt).getCurrentPage())==null?void 0:a.clientWidth)!=null?b:0};
L6.prototype.navigate=function(a){this.element.data=void 0;if(a=a==null?void 0:a.endpoint)this.ytdReduxDispatch(P7c(!0)),_.Ot(_.ls(),{visualElement:q8c}),_.gs.instance.resolveCommand({navigateAction:{endpoint:a}},{form:{element:this.element}})};var s8c;var t8c;var u8c=function(){return _.P.apply(this,arguments)||this};
_.z(u8c,_.P);u8c.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
var M6=u8c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],M6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],M6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],M6.prototype,"data",void 0);M6=_.U([_.Q({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],M6);
_.S(M6,"ytd-labs-edit-renderer",function(){if(t8c!==void 0)return t8c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-edit-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-edit-renderer">\n  <h2 id="title" class="style-scope ytd-labs-edit-renderer">[[getSimpleString(data.title)]]</h2>\n  <div id="delete-button" class="style-scope ytd-labs-edit-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return t8c=a},{mode:1});var v8c;var N6=function(){var a=_.P.apply(this,arguments)||this;a.dark=!1;a.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";a.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(N6,_.P);N6.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
N6.prototype.ready=function(){var a=document.documentElement.hasAttribute("dark");this.setBackgroundImage(a);this.dark=a};
N6.prototype.onDarkModeToggledAction=function(a){this.setBackgroundImage(a);this.dark=a};
N6.prototype.setBackgroundImage=function(a){_.fr(this.hostElement,{"--yt-labs-header-background":"url("+(a?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
var O6=N6;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],O6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],O6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],O6.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],O6.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],O6.prototype,"dark",void 0);
O6=_.U([_.Q({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],O6);
_.S(O6,"ytd-labs-header-renderer",function(){if(v8c!==void 0)return v8c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-labs-header-renderer">\n  <div id="contents" class="style-scope ytd-labs-header-renderer">\n    <div id="metadata" class="style-scope ytd-labs-header-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-labs-header-renderer">\n      </ytd-badge-supported-renderer>\n      <h3 id="title" class="style-scope ytd-labs-header-renderer">[[getSimpleString(data.title)]]</h3>\n      <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-header-renderer"></yt-formatted-string>\n      <div id="primary-button" class="style-scope ytd-labs-header-renderer"></div>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return v8c=a},{mode:1});var w8c;var P6=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return a};
_.z(P6,_.P);P6.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonSize:"size-large"}}}},"data.feedbackButton":{id:"feedback-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonSize:"size-large"}}}}}};
P6.prototype.onYtToggleButton=function(a){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",a.detail.toggled)};
P6.prototype.onManageLabsState=function(a){if(a=_.y(a,$7c))a.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?a.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&a.labsItemId===this.data.labsItemId&&(a.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.lo(this.hostElement,"yt-check-labs-opted-in-state").some(function(b){return b})&&this.data.confirmationDialogCommand?_.po(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.w("web_ytd_labs_item_renderer_command_resolver_ks")?_.oo(this.hostElement,[this.data.optInCommand]):_.v().resolve(_.Yi).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&a.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.w("web_ytd_labs_item_renderer_command_resolver_ks")?_.oo(this.hostElement,[this.data.optOutCommand]):
_.v().resolve(_.Yi).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
P6.prototype.onCheckLabsOptedInState=function(){var a=this.get("data.primaryButton.toggleButtonRenderer");return a?a.isToggled:!1};
_.Um.Object.defineProperties(P6.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
var Q6=P6;Q6.prototype.onYtToggleButton=Q6.prototype.onYtToggleButton;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Q6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],Q6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],Q6.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Q6.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Q6.prototype,"itemStyle",null);_.U([_.M("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Q6.prototype,"onYtToggleButton",null);Q6=_.U([_.Q({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],Q6);
_.S(Q6,"ytd-labs-item-renderer",function(){if(w8c!==void 0)return w8c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-item-renderer">\n  <div id="metadata" class="style-scope ytd-labs-item-renderer">\n    <div id="badge" hidden="[[!data.badgeTitle]]" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.badgeTitle)]]</div>\n    <h2 id="title" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.title)]]</h2>\n    <div id="expiration-date" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.expirationDate)]]</div>\n    <yt-formatted-string id="availability-text" hidden="[[data.primaryButton.toggleButtonRenderer.isToggled]]" text="[[data.experimentalInfo.availabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="disclaimer-text" split-lines="" text="[[data.experimentalInfo.disclaimerText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope ytd-labs-item-renderer">\n      <div id="primary-button" class="style-scope ytd-labs-item-renderer"></div>\n      <div id="feedback-button" hidden="[[!data.primaryButton.toggleButtonRenderer.isToggled]]" class="style-scope ytd-labs-item-renderer">\n      </div>\n    </div>\n    <yt-formatted-string id="no-availability-text" text="[[data.experimentalInfo.noAvailabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="promo-image" hidden="[[data.experimentalLabelText]]" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n  </yt-img-shadow>\n  <div id="experimental-img" hidden="[[!data.experimentalLabelText]]" width="395" class="style-scope ytd-labs-item-renderer">\n    <yt-img-shadow id="promo-image" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="experimental-label" text="[[data.experimentalLabelText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return w8c=a},{mode:1});var x8c;var y8c;var z8c=function(){return _.P.apply(this,arguments)||this};
_.z(z8c,_.P);var A8c=z8c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],A8c.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],A8c.prototype,"data",void 0);A8c=_.U([_.Q({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],A8c);
_.S(A8c,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(y8c!==void 0)return y8c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-new-sponsor-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.newSponsorMessage]]" class="style-scope ytd-live-chat-history-new-sponsor-chip-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return y8c=a},{mode:1});var B8c;var C8c=function(){return _.P.apply(this,arguments)||this};
_.z(C8c,_.P);C8c.prototype.observeSuperchatChip=function(){if(this.data){var a={"--yt-live-chat-history-super-chat-chip-renderer-background-color":this.colorFromDecimal(this.data.backgroundColor),"--yt-live-chat-history-super-chat-chip-renderer-text-color":this.colorFromDecimal(this.data.textColor)};_.fr(this.hostElement,a)}};
C8c.prototype.colorFromDecimal=function(a){return _.Dq(Number(a||0))};
var R6=C8c;R6.prototype.observeSuperchatChip=R6.prototype.observeSuperchatChip;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],R6.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],R6.prototype,"data",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],R6.prototype,"observeSuperchatChip",null);R6=_.U([_.Q({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],R6);
_.S(R6,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(B8c!==void 0)return B8c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-super-chat-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope ytd-live-chat-history-super-chat-chip-renderer"></yt-formatted-string>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return B8c=a},{mode:1});var D8c=function(){return _.P.apply(this,arguments)||this};
_.z(D8c,_.P);D8c.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.chip":{id:"chips",mapping:{liveChatHistorySuperChatChipRenderer:"ytd-live-chat-history-super-chat-chip-renderer",liveChatHistoryNewSponsorChipRenderer:"ytd-live-chat-history-new-sponsor-chip-renderer"}}}};
_.Um.Object.defineProperties(D8c.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
var S6=D8c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],S6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],S6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],S6.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],S6.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],S6.prototype,"hideMessageBlock",null);
S6=_.U([_.Q({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],S6);
_.S(S6,"ytd-live-chat-history-entry-renderer",function(){if(x8c!==void 0)return x8c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-live-chat-history-entry-renderer">\n  <div id="text" class="style-scope ytd-live-chat-history-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.videoTitle]]" class="style-scope ytd-live-chat-history-entry-renderer"></yt-formatted-string>\n    <div id="chip-container" class="style-scope ytd-live-chat-history-entry-renderer">\n      <div id="superchat-container" hidden="[[!data.chip]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        <span id="chips" class="style-scope ytd-live-chat-history-entry-renderer"></span>\n        <yt-formatted-string id="charity-name" text="[[data.charityName]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="sc4g-message" hidden="[[data.charityName]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="message" hidden="[[hideMessageBlock]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="sticker" class="style-scope ytd-live-chat-history-entry-renderer">\n      <yt-img-shadow height="64" hidden="[[!data.stickerThumbnail]]" thumbnail="[[data.stickerThumbnail]]" width="64" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-img-shadow>\n    </div>\n    <span id="timestamp" class="style-scope ytd-live-chat-history-entry-renderer">[[getSimpleString(data.timestamp)]]</span>\n  </div>\n  <div id="delete-button" class="style-scope ytd-live-chat-history-entry-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return x8c=a},{mode:1});var E8c;var F8c=function(){return _.P.apply(this,arguments)||this};
_.z(F8c,_.P);var G8c=F8c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],G8c.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],G8c.prototype,"data",void 0);G8c=_.U([_.Q({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],G8c);
_.S(G8c,"ytd-channel-options-renderer",function(){if(E8c!==void 0)return E8c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel-info" hidden="[[!data.name]]" class="style-scope ytd-channel-options-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-channel-options-renderer" href$="[[computeHref_(data.avatarEndpoint)]]" data="[[data.avatarEndpoint]]" aria-label$="[[data.avatarAccessibility.accessibilityData.label]]">\n    <yt-img-shadow height="50" thumbnail="[[data.avatar]]" width="50" class="style-scope ytd-channel-options-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="channel-info-text" class="style-scope ytd-channel-options-renderer">\n    <div id="name" class="style-scope ytd-channel-options-renderer">[[data.name]]</div>\n  </div>\n</div>\n<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-channel-options-renderer">\n  <yt-formatted-string class="link style-scope ytd-channel-options-renderer" force-default-style="" split-lines="" text="[[item]]">\n  </yt-formatted-string>\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return E8c=a},{mode:1});var H8c;var I8c=function(){return _.P.apply(this,arguments)||this};
_.z(I8c,_.P);I8c.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
var T6=I8c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],T6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],T6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],T6.prototype,"data",void 0);T6=_.U([_.Q({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],T6);
_.S(T6,"ytd-settings-email-item-renderer",function(){if(H8c!==void 0)return H8c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info" class="style-scope ytd-settings-email-item-renderer">\n  <yt-img-shadow height="36" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="36" class="style-scope ytd-settings-email-item-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-settings-email-item-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="button-container" class="style-scope ytd-settings-email-item-renderer">\n  <div id="resume-button" class="style-scope ytd-settings-email-item-renderer"></div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return H8c=a},{mode:1});var J8c;var U6=function(){return _.P.apply(this,arguments)||this};
_.z(U6,_.P);U6.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{settingsEmailItemRenderer:{component:"ytd-settings-email-item-renderer",noInjection:!0}}},"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
U6.prototype.getExpansionIcon=function(a){return a?"arrow_drop_up":"arrow_drop_down"};
U6.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.Um.Object.defineProperties(U6.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
var V6=U6;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],V6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],V6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],V6.prototype,"data",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],V6.prototype,"expanded",void 0);
_.U([_.K("expanded"),_.W("design:type",String),_.W("design:paramtypes",[])],V6.prototype,"emailListExpanded",null);_.U([_.ir("#options"),_.W("design:type",Object)],V6.prototype,"options",void 0);V6=_.U([_.Q({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],V6);
_.S(V6,"ytd-settings-email-list-renderer",function(){if(J8c!==void 0)return J8c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-settings-email-list-renderer">\n  <tp-yt-paper-button id="list-expansion" aria-expanded$="[[emailListExpanded]]" aria-label$="[[getSimpleString(data.title)]]" noink="" on-tap="onToggleListExpansion" class="style-scope ytd-settings-email-list-renderer">\n    <div id="title" class="style-scope ytd-settings-email-list-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" class="style-scope ytd-settings-email-list-renderer"></yt-icon>\n    <tp-yt-paper-tooltip for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-email-list-renderer">\n      [[getSimpleString(data.helpText)]]\n    </tp-yt-paper-tooltip>\n    <yt-icon class="expand-icon style-scope ytd-settings-email-list-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </tp-yt-paper-button>\n  <div id="button-container" hidden="[[!data.resumeButton]]" on-tap="onResumeAll" class="style-scope ytd-settings-email-list-renderer">\n    <div id="resume-button" class="style-scope ytd-settings-email-list-renderer"></div>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-settings-email-list-renderer">\n  <div id="options" class="style-scope ytd-settings-email-list-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return J8c=a},{mode:1});var K8c;var L8c=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return a};
_.z(L8c,_.P);L8c.prototype.configureRendererStamper=function(){return{"data.form":{id:"username-password-form",mapping:{formRenderer:"yt-form-renderer"}},"data.claimButton":{id:"claim-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
L8c.prototype.handleSignalActionSubmitForm=function(){var a,b=(a=this.formRenderer)==null?void 0:a.getForm();b&&this.data.serviceEndpoint&&(_.w("web_ytd_settings_gaia_link_renderer_command_resolver_ks")?_.oo(this.hostElement,[this.data.serviceEndpoint,b]):_.v().resolve(_.Yi).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},b,{element:this.hostElement})}))};
var W6=L8c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],W6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],W6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],W6.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],W6.prototype,"data",void 0);_.U([_.ir("yt-form-renderer"),_.W("design:type",Object)],W6.prototype,"formRenderer",void 0);
W6=_.U([_.Q({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],W6);
_.S(W6,"ytd-settings-gaia-link-renderer",function(){if(K8c!==void 0)return K8c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-gaia-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form-container" class="style-scope ytd-settings-gaia-link-renderer">\n  <div id="username-password-form" class="style-scope ytd-settings-gaia-link-renderer"></div>\n  <div id="claim-button" class="style-scope ytd-settings-gaia-link-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return K8c=a},{mode:1});var M8c;var X6=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return a};
_.z(X6,_.P);X6.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.rmc()&&this.set("data.hidden",!1)};
X6.prototype.onSwitchReady=function(){var a=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.w("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.qmc().then(function(b){b&&(Notification.permission==="default"?a.set("data.hidden",!1):Notification.permission==="granted"&&_.kX("NotificationsDisabled").then(function(c){c||_.lo(a.hostElement,"yt-toggle-settings-switch",[a.data.id,!c]);a.set("data.hidden",!1)}).catch(function(){}))})})};
X6.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{channelOptionsRenderer:{component:"ytd-channel-options-renderer",noInjection:!0},copyLinkRenderer:{component:"yt-copy-link-renderer",noInjection:!0,params:{adaptiveFullWidth:!0}},dropdownRenderer:{component:"ytd-dropdown-renderer",params:{hasBackground:!0,verticalAlign:"bottom",noUnderline:!0},noInjection:!0},settingsCheckboxRenderer:{component:"ytd-settings-checkbox-renderer",noInjection:!0},settingsEmailListRenderer:{component:"ytd-settings-email-list-renderer",
noInjection:!0},settingsGaiaLinkRenderer:{component:"ytd-settings-gaia-link-renderer",noInjection:!0},settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0},settingsSwitchRenderer:{component:"ytd-settings-switch-renderer",noInjection:!0},connectedAppRenderer:{component:"ytd-connected-app-renderer",noInjection:!0}}}}};
X6.prototype.handleUpdateOptionsCommand=function(a){(a=_.y(a,_.rAb))&&this.data&&this.data.id===a.id&&(this.set("data.hidden",a.hidden),a.text!==void 0&&this.set("data.text",a.text),a.clearOptions&&this.set("data.options",[]))};
var Y6=X6;Y6.prototype.onSwitchReady=Y6.prototype.onSwitchReady;Y6.prototype.dataChanged=Y6.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Y6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],Y6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],Y6.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],Y6.prototype,"data",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y6.prototype,"dataChanged",null);_.U([_.M("yt-settings-switch-ready"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y6.prototype,"onSwitchReady",null);Y6=_.U([_.Q({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],Y6);
_.S(Y6,"ytd-settings-options-renderer",function(){if(M8c!==void 0)return M8c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" hidden="[[data.hidden]]" class="style-scope ytd-settings-options-renderer">\n  <div id="title" class="style-scope ytd-settings-options-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="content" class="style-scope ytd-settings-options-renderer">\n    <div id="options" class="style-scope ytd-settings-options-renderer"></div>\n    <yt-formatted-string id="text" force-default-style="" hidden="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-settings-options-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return M8c=a},{mode:1});var N8c;var O8c=function(){return _.P.apply(this,arguments)||this};
_.z(O8c,_.P);O8c.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
O8c.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
var Z6=O8c;Z6.prototype.onYtExpanderMoreTapped=Z6.prototype.onYtExpanderMoreTapped;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Z6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],Z6.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],Z6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Z6.prototype,"data",void 0);
_.U([_.M("yt-expander-more-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z6.prototype,"onYtExpanderMoreTapped",null);Z6=_.U([_.Q({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],Z6);
_.S(Z6,"ytd-product-details-description-renderer",function(){if(N8c!==void 0)return N8c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-description-renderer">\n  <div class="description-row row style-scope ytd-product-details-description-renderer">\n      <ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="4" recompute-on-resize="" class="style-scope ytd-product-details-description-renderer">\n        <div class="description style-scope ytd-product-details-description-renderer" slot="content">[[data.description]]\n        </div>\n        <span id="attribution-link-button" slot="sticky-secondary" hidden="[[!data.attributionLinkButtonRenderer]]" class="style-scope ytd-product-details-description-renderer"></span>\n        <span class="more-button style-scope ytd-product-details-description-renderer" slot="more-button">[[getSimpleString(data.moreButtonRenderer.buttonRenderer.text)]]</span>\n        <span class="less-button style-scope ytd-product-details-description-renderer" slot="less-button">[[getSimpleString(data.lessButtonRenderer.buttonRenderer.text)]]</span>\n      </ytd-expander>\n    </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return N8c=a},{mode:1});var P8c;var Q8c=function(){var a=_.P.apply(this,arguments)||this;a.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";a.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";a.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";a.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return a};
_.z(Q8c,_.P);Q8c.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Um.Object.defineProperties(Q8c.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:(b=a.offerData)==null?void 0:b.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:a.purchaseButtonRenderers)!==void 0&&((b=this.data)==null?void 0:b.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null||!a.formattedFromMerchantText)&&(!((b=this.data)==null||!b.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
var $6=Q8c;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],$6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],$6.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],$6.prototype,"data",void 0);
_.U([_.O({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0}),_.W("design:type",Object)],$6.prototype,"shippingIcon",void 0);_.U([_.O({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0}),_.W("design:type",Object)],$6.prototype,"shippingAddressIcon",void 0);_.U([_.O({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0}),_.W("design:type",Object)],$6.prototype,"googleGuaranteeIcon",void 0);
_.U([_.O({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0}),_.W("design:type",Object)],$6.prototype,"returnPolicyIcon",void 0);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$6.prototype,"showAdditionalFees",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$6.prototype,"showMultiPurchaseButtons",null);
_.U([_.K("data","showMultiPurchaseButtons"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$6.prototype,"showPurchaseData",null);$6=_.U([_.Q({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],$6);
_.S($6,"ytd-product-details-hero-offer-renderer",function(){if(P8c!==void 0)return P8c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-hero-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="price-and-action-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showPurchaseData]]" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="price-column style-scope ytd-product-details-hero-offer-renderer">\n    <div class="price style-scope ytd-product-details-hero-offer-renderer">\n      <span class="item-price style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.price]]</span>\n      <template is="dom-if" restamp="" if="[[showAdditionalFees]]" class="style-scope ytd-product-details-hero-offer-renderer">\n        <span class="additional-fees style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n      </template>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.title]]</div>\n    <template is="dom-if" restamp="" if="[[!data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="merchant-row row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n          <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n        </div>\n        <yt-formatted-string text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      </yt-formatted-string></div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="shipping-details row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="shipping-details-inner column style-scope ytd-product-details-hero-offer-renderer">\n          <div class="row shipping-details-inner-row secondary-color style-scope ytd-product-details-hero-offer-renderer">\n            <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n              <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n            </div>\n            <yt-formatted-string link-inherit-color="" text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n          </yt-formatted-string></div>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="date-and-price" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="return-policy" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[returnPolicyIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string link-inherit-color="" text="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="shipping-address" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingAddressIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shoutoutText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="google-guarantee" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[googleGuaranteeIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <span class="shoutout-text secondary-color style-scope ytd-product-details-hero-offer-renderer">[[data.shoutoutText]]</span>\n              <ytd-button-renderer class="google-guarantee-info style-scope ytd-product-details-hero-offer-renderer" data="[[data.shoutoutButtonRenderer.buttonRenderer]]">\n              </ytd-button-renderer>\n            </div>\n          </template>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.affiliateDisclaimerText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div id="affiliate-disclaimer" class="affiliate-disclaimer-text-row row style-scope ytd-product-details-hero-offer-renderer">\n        <span class="secondary-color style-scope ytd-product-details-hero-offer-renderer"> [[data.affiliateDisclaimerText]] </span>\n      </div>\n    </template>\n    <div class="purchase-buttons-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showMultiPurchaseButtons]]">\n      <div id="purchase-buttons" class="purchase-buttons-inner column style-scope ytd-product-details-hero-offer-renderer">\n      </div>\n    </div>\n  </div>\n  <div class="action-column style-scope ytd-product-details-hero-offer-renderer">\n    <div id="purchase-button" class="style-scope ytd-product-details-hero-offer-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return P8c=a},{mode:1});var R8c;var S8c;var T8c=function(){return _.P.apply(this,arguments)||this};
_.z(T8c,_.P);_.f=T8c.prototype;_.f.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.f.onKeyDown=function(a){a=a.keyCode;a!==13&&a!==32||this.handleSelection()};
_.f.onMouseEnterImage=function(){var a;((a=this.data)==null?void 0:a.thumbnailDetails)!==void 0&&_.mo(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.f.onMouseLeaveImage=function(){_.mo(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.f.handleSelection=function(){this.data&&_.io(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.Um.Object.defineProperties(T8c.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.isSelected)}}});
var a7=T8c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],a7.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],a7.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],a7.prototype,"isSelected",null);a7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],a7);
_.S(a7,"ytd-product-details-thumbnail-renderer",function(){if(S8c!==void 0)return S8c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product-card-renderer-container" class="style-scope ytd-product-details-thumbnail-renderer">\n  <div id="card" class="style-scope ytd-product-details-thumbnail-renderer">\n    <div hidden="[[!isSelected]]" id="card-selection-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <div id="card-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <yt-img-shadow id="card-image" aria-label="[[data.thumbnailDetails.accessibility.accessibilityData.label]]" object-fit="CONTAIN" thumbnail="[[data.thumbnailDetails]]" width="56px" class="style-scope ytd-product-details-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return S8c=a},{mode:1});var U8c=function(){var a=_.P.apply(this,arguments)||this;var b={};a.actionMap=(b["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",b["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",b);a.selectedThumbnailIndex=0;a.selectItem=function(c){c.target.onKeyDown(c)};
return a};
_.z(U8c,_.P);_.f=U8c.prototype;_.f.handlePreviewImageSelect=function(a){this.hoverThumbnail=a};
_.f.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.f.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.f.onThumbnailSelected=function(a,b){this.selectedThumbnailIndex=b};
_.f.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.f.updateOffset=function(){var a=_.E(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-a));this.ytdHorizontalListBehavior.reposition_()};
_.Um.Object.defineProperties(U8c.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null?0:a.imageRenderer){var b,c;return((b=this.data)==null?void 0:(c=b.imageRenderer)==null?void 0:c.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var a;if((a=this.data)==null?0:a.imageRenderer){var b;return(b=_.y(this.data.imageRenderer[this.selectedThumbnailIndex],d8c))==null?void 0:b.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var a=this,b,c,d,e=(d=(b=this.data)==null?void 0:(c=b.imageRenderer)==null?void 0:c.map(function(g,k){return{productDetailsThumbnailRenderer:Object.assign({},_.y(g,d8c),{index:k,isSelected:k===a.selectedThumbnailIndex})}}))!=null?d:[];
return Object.assign({},this.data,{imageRenderer:e})}}});
var b7=U8c;b7.prototype.updateOffset=b7.prototype.updateOffset;b7.prototype.dataChanged=b7.prototype.dataChanged;b7.prototype.onThumbnailSelected=b7.prototype.onThumbnailSelected;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],b7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],b7.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.lJ.YtdHorizontalListBehavior),_.W("design:type",Object)],b7.prototype,"ytdHorizontalListBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],b7.prototype,"componentBehavior",void 0);_.U([_.H([_.eH.YtActionHandlerBehavior]),_.W("design:type",Object)],b7.prototype,"actionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],b7.prototype,"data",void 0);_.U([_.O({value:"$.items.children"}),_.W("design:type",String)],b7.prototype,"itemsPath",void 0);
_.U([_.O({value:3}),_.W("design:type",Number)],b7.prototype,"initialCount",void 0);_.U([_.ir("#items"),_.W("design:type",Object)],b7.prototype,"items",void 0);_.U([_.O(),_.W("design:type",Object)],b7.prototype,"selectedThumbnailIndex",void 0);_.U([_.O(),_.W("design:type",Object)],b7.prototype,"hoverThumbnail",void 0);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],b7.prototype,"showThumbnails",null);
_.U([_.M("ytd-product-details-thumbnail-renderer-selected"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Number]),_.W("design:returntype")],b7.prototype,"onThumbnailSelected",null);_.U([_.K("data","selectedThumbnailIndex","hoverThumbnail"),_.W("design:type",Object),_.W("design:paramtypes",[])],b7.prototype,"thumbnailDetails",null);_.U([_.K("data","selectedThumbnailIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],b7.prototype,"populatedData",null);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b7.prototype,"dataChanged",null);_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b7.prototype,"updateOffset",null);b7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],b7);
_.S(b7,"ytd-product-details-image-carousel-renderer",function(){if(R8c!==void 0)return R8c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-image-carousel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="preview style-scope ytd-product-details-image-carousel-renderer">\n  <template is="dom-if" restamp="" if="[[thumbnailDetails]]" class="style-scope ytd-product-details-image-carousel-renderer">\n    <yt-img-shadow class="preview-image style-scope ytd-product-details-image-carousel-renderer" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="512"></yt-img-shadow>\n  </template>\n</div>\n<div id="main" class="main style-scope ytd-product-details-image-carousel-renderer" hidden="[[!showThumbnails]]">\n  <div id="left-arrow-container" class="left-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="left-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-product-details-image-carousel-renderer">\n    <tp-yt-paper-listbox id="items" on-keydown="selectItem" class="style-scope ytd-product-details-image-carousel-renderer"></tp-yt-paper-listbox>\n  </div>\n  <div id="right-arrow-container" class="right-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="right-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return R8c=a},{mode:_.as("kevlar_poly_si_batch_j079")?1:2});var V8c;var W8c=function(){return _.P.apply(this,arguments)||this};
_.z(W8c,_.P);var c7=W8c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],c7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],c7.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],c7.prototype,"data",void 0);c7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],c7);
_.S(c7,"ytd-product-details-offer-renderer",function(){if(V8c!==void 0)return V8c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="offer-details offer-details-new-ux style-scope ytd-product-details-offer-renderer" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="offer-details-information style-scope ytd-product-details-offer-renderer">\n    <div class="offer-price style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.price]]\n      <span class="additional-fees style-scope ytd-product-details-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.title]]\n    </div>\n    <div class="vendor-information style-scope ytd-product-details-offer-renderer">\n      <div class="vendor-logo style-scope ytd-product-details-offer-renderer">\n        <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <div class="vendor-name style-scope ytd-product-details-offer-renderer">[[data.offerData.vendorName]]</div>\n    </div>\n  </div>\n  <div class="offer-cta style-scope ytd-product-details-offer-renderer">\n    <div class="checkout style-scope ytd-product-details-offer-renderer">\n      <ytd-button-renderer data="[[data.purchaseButtonRenderer.buttonRenderer]]" class="style-scope ytd-product-details-offer-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return V8c=a},{mode:1});var X8c;var Y8c=function(){var a=_.P.apply(this,arguments)||this;a.isOffersHidden=!0;return a};
_.z(Y8c,_.P);Y8c.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var a,b=_.y((a=this.data)==null?void 0:a.viewOffersButton,_.RE);b&&this.ytRendererBehavior.logExplicitClick(b)};
Y8c.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.Um.Object.defineProperties(Y8c.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;return(c=_.y((a=this.data)==null?void 0:(b=a.offers)==null?void 0:b[0],h8c))==null?void 0:(d=c.offerData)==null?void 0:d.vendorLogoUrl}}});
var d7=Y8c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],d7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],d7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],d7.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],d7.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],d7.prototype,"isOffersHidden",void 0);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],d7.prototype,"firstOfferVendorLogoUrl",null);d7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],d7);
_.S(d7,"ytd-product-details-offers-container-renderer",function(){if(X8c!==void 0)return X8c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offers-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-container style-scope ytd-product-details-offers-container-renderer">\n  <div class="header style-scope ytd-product-details-offers-container-renderer" on-click="toggleOffers">\n    <div class="title-description-container style-scope ytd-product-details-offers-container-renderer">\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionLeft]]">\n      </yt-formatted-string>\n      <div class="vendor-logo style-scope ytd-product-details-offers-container-renderer">\n        <img src$="[[firstOfferVendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offers-container-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionRight]]">\n      </yt-formatted-string>\n    </div>\n    <div class="action style-scope ytd-product-details-offers-container-renderer">\n      <ytd-button-renderer id="view-offers" class="view-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="false" data="[[data.viewOffersButton.buttonRenderer]]" hidden="[[!isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n      <ytd-button-renderer id="hide-offers" class="hide-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="true" data="[[data.hideOffersButton.buttonRenderer]]" hidden="[[isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="offer" hidden="[[isOffersHidden]]" class="style-scope ytd-product-details-offers-container-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return X8c=a},{mode:1});var Z8c;var $8c;var e7=function(){return _.P.apply(this,arguments)||this};
_.z(e7,_.P);e7.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
e7.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.mo(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
e7.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.mo(this,"ytd-product-details-variant-image-unselect")};
_.Um.Object.defineProperties(e7.prototype,{isImageButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE"}},
isPillButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL"||this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST"}},
isActive:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.data)==null?void 0:a.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((b=this.data)==null?void 0:b.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((c=this.data)==null?void 0:c.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var a;if(((a=this.data)==null?void 0:a.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var a,b;return this.isUnavailable?(a=this.data)==null?void 0:a.variantOptionUnavailableAccessibilityLabel:(b=this.data)==null?void 0:b.variantOptionAccessibilityLabel}}});
var f7=e7;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],f7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],f7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],f7.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],f7.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],f7.prototype,"displayType",void 0);
_.U([_.K("displayType","data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],f7.prototype,"isImageButton",null);_.U([_.K("displayType","data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],f7.prototype,"isPillButton",null);_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],f7.prototype,"isActive",null);
_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],f7.prototype,"isUnavailable",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],f7.prototype,"thumbnailDetails",null);_.U([_.K("isUnavailable","data"),_.W("design:type",Object),_.W("design:paramtypes",[])],f7.prototype,"accessibilityLabel",null);f7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],f7);
_.S(f7,"ytd-product-details-variant-option-renderer",function(){if($8c!==void 0)return $8c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-variant-option-renderer">\n  <template is="dom-if" restamp="" if="[[isImageButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-image style-scope ytd-product-details-variant-option-renderer">\n        <yt-img-shadow alt="[[data.name]]" height="52" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="52" class="style-scope ytd-product-details-variant-option-renderer"></yt-img-shadow>\n      </div>\n    </a>\n    <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n      [[accessibilityLabel]]\n    </tp-yt-paper-tooltip>\n  </template>\n  <template is="dom-if" restamp="" if="[[isPillButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-pill style-scope ytd-product-details-variant-option-renderer">\n        <span class="style-scope ytd-product-details-variant-option-renderer">[[data.name]]</span>\n      </div>\n    </a>\n    <template is="dom-if" restamp="" if="[[isUnavailable]]" class="style-scope ytd-product-details-variant-option-renderer">\n      <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n        [[data.unavailableText]]\n      </tp-yt-paper-tooltip>\n    </template>\n  </template>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return $8c=a},{mode:1});var a9c;var b9c=function(){var a=_.P.apply(this,arguments)||this;a.variantsExpanded=!1;a.hideShowMoreLessVariantButton=!0;a.initialized=!1;a.computeVariantsDebouncer=null;a.computeVariants=function(b){b=b===void 0?!1:b;a.variantsExpanded||a.showOptions()||!b||(a.variantsExpanded=!0);if(a.variantsExpanded){b=_.h(a.items.children);for(var c=b.next();!c.done;c=b.next())c.value.hidden=!1}a.initialized=!0};
return a};
_.z(b9c,_.P);_.f=b9c.prototype;_.f.ready=function(){var a=this;setTimeout(function(){a.computeVariants(!0)})};
_.f.showOptions=function(){for(var a=_.h(this.items.children),b=a.next();!b.done;b=a.next())b.value.hidden=!0;var c=this.container.getBoundingClientRect().width,d=0,e=a=0;b=!1;for(var g=_.h(this.items.children),k=g.next();!k.done;k=g.next()){k=k.value;k.hidden=!1;var m=k.getBoundingClientRect().width;if(d+m<c)d+=m;else if(++e<2)d=m;else break;a+=1;k.hasAttribute("is-active")&&(b=!0)}for(c=a;c<this.items.children.length;c++)this.items.children[c].hidden=!0;this.hideShowMoreLessVariantButton=a===this.items.children.length;
return b};
_.f.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.rC(this.computeVariantsDebouncer,_.fC.after(100),this.computeVariants)};
_.f.onShowMoreLessVariantsButtonClick=function(){var a;(a=this.data)!=null&&a.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.f.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.Um.Object.defineProperties(b9c.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.data)==null?void 0:(b=a.variantOptionRenderers)==null?void 0:b.find(function(g){return _.y(g,f8c).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),d,e;
return(e=(d=_.y(c,f8c))==null?void 0:d.name)!=null?e:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.displayType)||"VARIANT_ATTRIBUTE_DISPLAY_TYPE_UNKNOWN"}},
variantItemsClassname:{configurable:!0,enumerable:!0,get:function(){switch(this.displayType){case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL":return"pill";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST":return"dropdown";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE":return"image";default:return"unknown"}}}});
var g7=b9c;g7.prototype.debouncedComputeVariants=g7.prototype.debouncedComputeVariants;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],g7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],g7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],g7.prototype,"componentBehavior",void 0);_.U([_.H(_.OD),_.W("design:type",Object)],g7.prototype,"ironResizableBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],g7.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],g7.prototype,"variantsExpanded",void 0);_.U([_.O(),_.W("design:type",Object)],g7.prototype,"hideShowMoreLessVariantButton",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],g7.prototype,"initialized",void 0);_.U([_.ir("#items"),_.W("design:type",HTMLDivElement)],g7.prototype,"items",void 0);_.U([_.ir("#container"),_.W("design:type",HTMLDivElement)],g7.prototype,"container",void 0);
_.U([_.ir("#more-variants-button"),_.W("design:type",HTMLElement)],g7.prototype,"moreVariantsButton",void 0);_.U([_.K("data"),_.W("design:type",String),_.W("design:paramtypes",[])],g7.prototype,"selectedOptionName",null);_.U([_.N("data","variantsExpanded"),_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],g7.prototype,"debouncedComputeVariants",null);
_.U([_.K("data"),_.W("design:type",String),_.W("design:paramtypes",[])],g7.prototype,"displayType",null);_.U([_.K("displayType"),_.W("design:type",Object),_.W("design:paramtypes",[])],g7.prototype,"variantItemsClassname",null);g7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],g7);
_.S(g7,"ytd-product-details-variant-renderer",function(){if(a9c!==void 0)return a9c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-product-details-variant-renderer">\n  <div class="variant-title-container style-scope ytd-product-details-variant-renderer">\n    <div class="variant-title style-scope ytd-product-details-variant-renderer">[[data.title]]</div><div class="variant-selected-option style-scope ytd-product-details-variant-renderer">[[selectedOptionName]]</div>\n  </div>\n  <div class$="variant-items-container variant-items-container-[[variantItemsClassname]] style-scope ytd-product-details-variant-renderer">\n    <div id="items" class="style-scope ytd-product-details-variant-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[!hideShowMoreLessVariantButton]]" class="style-scope ytd-product-details-variant-renderer">\n    <ytd-button-renderer class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showMoreVariants.buttonRenderer]]" hidden$="[[variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="more-variants-button" class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showLessVariants.buttonRenderer]]" hidden$="[[!variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n  </template>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return a9c=a},{mode:1});var c9c=function(){return _.P.apply(this,arguments)||this};
_.z(c9c,_.P);
c9c.prototype.configureRendererStamper=function(){return{"data.imageCarouselRenderer":{id:"image-carousel-renderer",mapping:{productDetailsImageCarouselRenderer:"ytd-product-details-image-carousel-renderer"}},"data.heroOfferRenderer":{id:"hero-offer-renderer",mapping:{productDetailsHeroOfferRenderer:{component:"ytd-product-details-hero-offer-renderer"}}},"data.variants":{id:"variants",mapping:{productDetailsVariantRenderer:"ytd-product-details-variant-renderer"}},"data.offersContainerRenderer":{id:"offers",mapping:{productDetailsOffersContainerRenderer:"ytd-product-details-offers-container-renderer"}},
"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more"}}}},"data.shareButton":{id:"share-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.descriptionRenderer":{id:"description-renderer",mapping:{productDetailsDescriptionRenderer:"ytd-product-details-description-renderer"}}}};
_.Um.Object.defineProperties(c9c.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(b=_.y((a=this.data)==null?void 0:a.offersContainerRenderer,g8c))==null?void 0:b.offers;return c!==void 0&&(c==null?void 0:c.length)>1}},
showBuySeparator:{configurable:!0,enumerable:!0,get:function(){return this.showOffers&&this.showPurchaseData}},
showBuyCard:{configurable:!0,enumerable:!0,get:function(){return this.showOffers||this.showPurchaseData}},
selectedVariantsText:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((c=(a=this.data)==null?void 0:(b=a.variants)==null?void 0:b.map(function(d){var e,g;d=(g=(e=_.y(d,e8c))==null?void 0:e.variantOptionRenderers)==null?void 0:g.find(function(m){var n;return((n=_.y(m,f8c))==null?void 0:n.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var k;return(k=_.y(d,f8c))==null?void 0:k.name}).filter(function(d){return typeof d==="string"}))!=null?c:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d=(b=_.y((a=this.data)==null?void 0:a.shoppingFlaggingRenderer,i8c))==null?void 0:(c=b.reportButton)==null?void 0:c.buttonRenderer;if(d)return{text:d.text,command:d.command,icon:{iconType:"FLAG"},accessibilityData:d.accessibilityData,trackingParams:d.trackingParams,loggingDirectives:d.loggingDirectives}}}});
var h7=c9c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],h7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],h7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],h7.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],h7.prototype,"data",void 0);
_.U([_.ir("#image-carousel-renderer"),_.W("design:type",Object)],h7.prototype,"imageCarouselRenderer",void 0);_.U([_.ir("#hero-offer-renderer"),_.W("design:type",Object)],h7.prototype,"productDetailsHeroOfferRenderer",void 0);_.U([_.ir("#variants"),_.W("design:type",Object)],h7.prototype,"productDetailsVariantRenderer",void 0);_.U([_.ir("#offers"),_.W("design:type",Object)],h7.prototype,"productDetailsOffersContainerRenderer",void 0);
_.U([_.ir("#description-renderer"),_.W("design:type",Object)],h7.prototype,"productDetailsDescriptionRenderer",void 0);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],h7.prototype,"showPurchaseData",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],h7.prototype,"showHeroOfferRenderer",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],h7.prototype,"showBrandText",null);
_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],h7.prototype,"showOffers",null);_.U([_.K("showOffers","showPurchaseData"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],h7.prototype,"showBuySeparator",null);_.U([_.K("showOffers","showPurchaseData"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],h7.prototype,"showBuyCard",null);_.U([_.K("data"),_.W("design:type",String),_.W("design:paramtypes",[])],h7.prototype,"selectedVariantsText",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],h7.prototype,"shoppingReportingButtonData",null);h7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],h7);
_.S(h7,"ytd-product-details-renderer",function(){if(Z8c!==void 0)return Z8c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-renderer">\n  <div class="column column-image-carousel style-scope ytd-product-details-renderer">\n    <div id="image-carousel-renderer" class="style-scope ytd-product-details-renderer"></div>\n  </div>\n  <div class="column column-description style-scope ytd-product-details-renderer">\n    <div class="title-row row style-scope ytd-product-details-renderer">\n      <div class="style-scope ytd-product-details-renderer">[[getSimpleString(data.title)]]</div>\n      <div class="title-row-buttons row style-scope ytd-product-details-renderer">\n        <div id="share-button" class="style-scope ytd-product-details-renderer"></div>\n        <div id="action-button" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="brand-row row style-scope ytd-product-details-renderer">\n      <template is="dom-if" restamp="" if="[[showBrandText]]" class="style-scope ytd-product-details-renderer">\n        <yt-formatted-string class="formatted-brand style-scope ytd-product-details-renderer" text="[[data.formattedByBrandText]]">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="description-renderer" class="style-scope ytd-product-details-renderer"></div>\n    <div id="variants" class="style-scope ytd-product-details-renderer"></div>\n    <div class="buy style-scope ytd-product-details-renderer" hidden="[[!showBuyCard]]">\n      <div hidden="[[!showHeroOfferRenderer]]" id="hero-offer-renderer" class="style-scope ytd-product-details-renderer"></div>\n      <div class="style-scope ytd-product-details-renderer">\n        <hr class="buy-separator style-scope ytd-product-details-renderer" hidden="[[!showBuySeparator]]">\n        <div id="offers" hidden="[[!showOffers]]" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="buy offer-unavailable style-scope ytd-product-details-renderer" hidden="[[showBuyCard]]">\n        <yt-formatted-string class="offer-unavailable-title style-scope ytd-product-details-renderer" text="[[data.unavailableText]]">\n        </yt-formatted-string>\n        <div class="offer-unavailable-variants style-scope ytd-product-details-renderer">[[selectedVariantsText]]</div>\n    </div>\n    <div class="flagging-container style-scope ytd-product-details-renderer" hidden="[[!data.shoppingFlaggingRenderer]]">\n      <ytd-button-renderer id="flagging-button" data="[[shoppingReportingButtonData]]" class="style-scope ytd-product-details-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Z8c=a},{mode:1});var d9c;var e9c;var f9c;var g9c=function(){return _.P.apply(this,arguments)||this};
_.z(g9c,_.P);g9c.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Um.Object.defineProperties(g9c.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
var i7=g9c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],i7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],i7.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],i7.prototype,"formattedAmount",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],i7.prototype,"ariaLabel",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data.style"),_.W("design:type",String),_.W("design:paramtypes",[])],i7.prototype,"vcBalanceWidgetStyle",null);i7=_.U([_.wr({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],i7);
_.S(i7,"yt-vc-balance-renderer",function(){if(f9c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_balance_renderer.yt.vc.balance.renderer.css.js--\x3e<div id="vc-icon" hidden$="[[!data.vcIcon]]" class="style-scope yt-vc-balance-renderer">\n</div>\n<p id="vc-balance" class="style-scope yt-vc-balance-renderer">[[formattedAmount]]</p>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;e9c===void 0&&(e9c=document.createElement("template"));var d=e9c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);f9c=a}a=f9c;return a},{mode:2});_.Ft("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var h9c=function(){return _.P.apply(this,arguments)||this};
_.z(h9c,_.P);_.Um.Object.defineProperties(h9c.prototype,{formattedAmount:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.formattedAmount?this.vcBalanceEntity.formattedAmount:""}},
vcBalanceAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.accessibilityFormattedAmount?this.vcBalanceEntity.accessibilityFormattedAmount:""}}});
var j7=h9c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],j7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],j7.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],j7.prototype,"data",void 0);_.U([_.O({selectorArgs:["data.vcBalanceEntityKey"],selector:function(a,b){return _.np(a.entities,"vcBalanceEntity",b)}}),
_.W("design:type",Object)],j7.prototype,"vcBalanceEntity",void 0);_.U([_.K("vcBalanceEntity"),_.W("design:type",String),_.W("design:paramtypes",[])],j7.prototype,"formattedAmount",null);_.U([_.K("vcBalanceEntity"),_.W("design:type",String),_.W("design:paramtypes",[])],j7.prototype,"vcBalanceAriaLabel",null);j7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],j7);
_.S(j7,"ytd-vc-balance-renderer",function(){if(d9c!==void 0)return d9c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-vc-balance-renderer aria-label="[[vcBalanceAriaLabel]]" data="[[data]]" formatted-amount="[[formattedAmount]]" class="style-scope ytd-vc-balance-renderer">\n</yt-vc-balance-renderer>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return d9c=a},{mode:1});var i9c;var j9c=function(){var a=_.P.apply(this,arguments)||this;a.rotation=0;a.isReloading=!1;return a};
_.z(j9c,_.P);j9c.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
j9c.prototype.reset=function(){this.hostElement.style.opacity=""};
j9c.prototype.close=function(){var a=this;return _.l(function(b){if(b.nextAddress==1)return _.p(b,a.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);a.hostElement.style.opacity="0";_.ue(b)})};
var k7=j9c;k7.prototype.rotationChanged=k7.prototype.rotationChanged;_.U([_.O(),_.W("design:type",Object)],k7.prototype,"rotation",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],k7.prototype,"isReloading",void 0);_.U([_.ir("#icon"),_.W("design:type",HTMLElement)],k7.prototype,"icon",void 0);_.U([_.N("rotation"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],k7.prototype,"rotationChanged",null);
k7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-refresh"})],k7);
_.S(k7,"ytd-refresh",function(){if(i9c!==void 0)return i9c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-refresh--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[isReloading]]" icon="refresh" class="style-scope ytd-refresh"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[isReloading]]" hidden="[[!isReloading]]" class="style-scope ytd-refresh">\n</tp-yt-paper-spinner-lite>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return i9c=a},{mode:1});var k9c;var l9c;var m9c=function(a,b,c,d,e,g,k,m){this.minWidth=a;this.minHeight=b;this.recommendedWidth=c;this.recommendedHeight=d;this.JSC$19180_maxFileSize=e;this.title=g;this.bannerGalleryTitle=k;this.channelId=m;this.picker_=null;a=_.tIa("yt-banner");b=a.addView;c=(new Q7c("youtubebanner")).addUploadMetadata("silo_id","19");c.opts.ytMaxFileSize=this.JSC$19180_maxFileSize;d=this.recommendedHeight;c.opts.ytRecWidth=this.recommendedWidth;c.opts.ytRecHeight=d;b.call(a,c);a.addView(new _.KA);b=a.addView;c=new _.KA;
c.opts.type="ytbanner";b.call(a,c.JSC$7921_setLabel(this.bannerGalleryTitle));b=a.setTitle(this.title).setSize(1E3);b.urlParamMap_.set("thumbs","orig");c=this.minWidth;d=this.minHeight;if(isNaN(c)||isNaN(d))throw Error("ob`"+c+"`"+d);b.urlParamMap_.set("minSize",c+"x"+d);b.urlParamMap_.set("cropMode","ytcb");this.builder_=a};
m9c.prototype.open=function(){var a=this;return new _.il(function(b,c){_.Rjb(a.builder_,function(d){d.action=="picked"?b(d):d.action=="cancel"&&c(Error("Yl"))});
a.picker_&&a.picker_.dispose();a.picker_=a.builder_.build();a.picker_.setVisible(!0)})};
m9c.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var n9c=function(a){this.channelId=a},o9c=function(a,b){var c="";
b.viewToken&&(c=b.viewToken[2].type);var d=b.docs[0];b=d.crop;a={channel_id:a.channelId,fife_url:d.thumbnails[0].url,photo_id:d.id,is_gallery_image:c=="ytbanner"};b&&(a.crop_top=b.top,a.crop_right=b.right,a.crop_bottom=b.bottom,a.crop_left=b.left);return _.M3a("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:a})};var p9c=function(){var a=_.P.apply(this,arguments)||this;a.ariaLabel=null;return a};
_.z(p9c,_.P);_.f=p9c.prototype;_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.f.detached=function(){this.picker&&this.picker.dispose()};
_.f.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.f.computeAriaLabel=function(a){return a};
_.f.onTap=function(){var a=this,b;if((b=this.data)==null||!b.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new m9c(this.data.bannerMinWidth||0,this.data.bannerMinHeight||0,this.data.bannerRecommendedWidth||0,this.data.bannerRecommendedHeight||0,this.data.bannerMaxFileSizeInMegabytes||0,this.data.editorTitle||"",this.data.galleryViewTitle||"",this.data.channelId||""));var c;(c=this.picker)==null||c.open().then(function(d){a.handleBannerPicked(d)},function(){})}};
_.f.handleBannerPicked=function(a){var b=this;this.uploader||(this.uploader=new n9c(this.data.channelId||""));this.message=this.data.uploadingText;o9c(this.uploader,a).then(function(c){b.handleBannerUploadSucceeded(c)},function(c){b.handleBannerUploadFailed(c)})};
_.f.handleBannerUploadSucceeded=function(a){a&&a.errors?this.handleBannerUploadFailed(a):(_.io(this.hostElement,"yt-banner-updated",a),this.message=null)};
_.f.handleBannerUploadFailed=function(a){this.message=a&&a.errors&&a.errors.length?a.errors[0]:null};
var l7=p9c;l7.prototype.dataChanged=l7.prototype.dataChanged;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],l7.prototype,"componentBehavior",void 0);_.U([_.H(_.QD),_.W("design:type",Object)],l7.prototype,"ironButtonState",void 0);_.U([_.O(),_.W("design:type",Object)],l7.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.W("design:type",Object)],l7.prototype,"ariaLabel",void 0);
_.U([_.O(),_.W("design:type",Object)],l7.prototype,"message",void 0);_.U([_.O(),_.W("design:type",Object)],l7.prototype,"picker",void 0);_.U([_.O(),_.W("design:type",Object)],l7.prototype,"uploader",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],l7.prototype,"dataChanged",null);l7=_.U([_.Q({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],l7);
_.S(l7,"ytd-channel-banner-editor-renderer",function(){if(l9c!==void 0)return l9c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-banner-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="edit-banner-link" class="yt-simple-endpoint style-scope ytd-channel-banner-editor-renderer" data="[[data.editBannerCommand]]" href$="[[computeHref_(data.editBannerCommand)]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-banner-editor-renderer"></yt-icon>\n  <tp-yt-paper-tooltip position="top" class="style-scope ytd-channel-banner-editor-renderer">[[ariaLabel]]</tp-yt-paper-tooltip>\n  <div id="message" hidden$="[[!message]]" class="style-scope ytd-channel-banner-editor-renderer">[[message]]</div>\n</a>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return l9c=a},{mode:1});var q9c;var r9c=_.hx(["#"]),s9c=function(){return _.P.apply(this,arguments)||this};
_.z(s9c,_.P);s9c.prototype.computeHrefWithDefault=function(a){return this.ytComponentBehavior.computeHref_(a,!0)||_.Ld(r9c)};
s9c.prototype.dataChanged=function(){var a=this.data;a&&a.targetId&&_.OLb(_.sG(),a.targetId,this.moreIcon)};
var m7=s9c;m7.prototype.dataChanged=m7.prototype.dataChanged;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],m7.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],m7.prototype,"data",void 0);_.U([_.ir("#more-icon"),_.W("design:type",Object)],m7.prototype,"moreIcon",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],m7.prototype,"dataChanged",null);
m7=_.U([_.Q({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],m7);
_.S(m7,"ytd-channel-tagline-renderer",function(){if(q9c!==void 0)return q9c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-tagline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-channel-tagline-renderer" href$="[[computeHrefWithDefault(data.moreEndpoint)]]" data="[[data.moreEndpoint]]">\n  <div id="wrapper" class="style-scope ytd-channel-tagline-renderer">\n    <div id="content" dir="auto" class="style-scope ytd-channel-tagline-renderer">\n      [[data.content]]\n    </div>\n    <yt-icon id="more-icon" hidden="[[!data.moreIcon]]" icon="[[data.moreIcon.iconType]]" class="style-scope ytd-channel-tagline-renderer">\n    </yt-icon>\n  </div>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return q9c=a},{mode:1});var t9c;var u9c=function(){return _.P.apply(this,arguments)||this};
_.z(u9c,_.P);_.f=u9c.prototype;_.f.ready=function(){var a=this;_.E(this.hostElement).querySelector("#form").addEventListener("submit",function(b){a.onSubmit(b)})};
_.f.onDataChanged=function(){var a;((a=this.data)==null?0:a.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.f.onIconButtonKeydown=function(a){a.keyCode===13&&this.iconButton.click()};
_.f.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.f.openOnClickHandler=function(){this.input.focus()};
_.f.onSubmit=function(a){a.preventDefault();return!1};
_.f.submitOnEnterKeyUp=function(a){var b;if(a.keyCode===13&&((b=this.data)==null?0:b.expandedText)){a=this.data.endpoint;b=_.Cf.unsafeClone(a);var c;((c=_.y(b==null?void 0:b.commandMetadata,_.co))==null?0:c.url)?(_.y(b.commandMetadata,_.co).url=_.Gl(_.y(b.commandMetadata,_.co).url,"query",this.data.expandedText),_.y(b,_.oq)&&(_.y(b,_.oq).query=this.data.expandedText),_.io(this.hostElement,"yt-navigate",{endpoint:b,tempData:{disableCache:!0}})):(c=new _.qj("Error: Trying to navigate to an endpoint without url",
a),_.Bl(c))}};
_.f.updateDataExpandedTextFromBinding=function(a){this.set("data.expandedText",a.detail.value)};
var n7=u9c;n7.prototype.onDataChanged=n7.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],n7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.Amc),_.W("design:type",Object)],n7.prototype,"ytdExpandableInputBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],n7.prototype,"data",void 0);_.U([_.ir("#input"),_.W("design:type",Object)],n7.prototype,"input",void 0);_.U([_.ir("#icon-button"),_.W("design:type",HTMLElement)],n7.prototype,"iconButton",void 0);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],n7.prototype,"onDataChanged",null);n7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],n7);
var H7c=_.$r()(n7,"ytd-expandable-tab-renderer",function(){if(t9c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="yt-icons:search" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);t9c=a}a=t9c;return a},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var v9c;var w9c=_.hx(["#"]),x9c=function(){return _.P.apply(this,arguments)||this};
_.z(x9c,_.P);x9c.prototype.computeHrefWithDefault=function(a){return this.ytComponentBehavior.computeHref_(a,!0)||_.Ld(w9c)};
_.Um.Object.defineProperties(x9c.prototype,{primaryLinkEndpoint:{configurable:!0,enumerable:!0,get:function(){var a;return _.Ds((a=this.data)==null?void 0:a.primaryLinkOnTap)}},
moreEndpoint:{configurable:!0,enumerable:!0,get:function(){var a;return _.Ds((a=this.data)==null?void 0:a.moreOnTap)}}});
var o7=x9c;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],o7.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],o7.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],o7.prototype,"usePageHeaderStyle",void 0);_.U([_.K("data.primaryOnTap"),_.W("design:type",Object),_.W("design:paramtypes",[])],o7.prototype,"primaryLinkEndpoint",null);
_.U([_.K("data.moreOnTap"),_.W("design:type",Object),_.W("design:paramtypes",[])],o7.prototype,"moreEndpoint",null);o7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-channel-header-links-view-model"})],o7);
_.S(o7,"ytd-channel-header-links-view-model",function(){if(v9c!==void 0)return v9c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-header-links-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-header-links-view-model">\n  <yt-attributed-string id="first-link" data="[[data.firstLink]]" ellipsis-truncate="true" hidden="[[!data.firstLink]]" link-inherit-color="true" user-input="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <yt-attributed-string id="more" data="[[data.more]]" hidden="[[!data.more]]" link-inherit-color="true" no-wrap="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <a id="primary-link" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(primaryLinkEndpoint)]]" data="[[primaryLinkEndpoint]]" dir="ltr" hidden="[[!data.primaryLink]]">\n    [[data.primaryLink]]\n  </a>\n  <a id="suffix" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(moreEndpoint)]]" data="[[moreEndpoint]]" hidden="[[!data.suffix]]">\n    [[data.suffix]]\n  </a>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return v9c=a},{mode:1});var y9c;var z9c=function(){var a=_.P.apply(this,arguments)||this;a.avatarSize=80;a.ariaLabel=_.vo("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return a};
_.z(z9c,_.P);z9c.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
z9c.prototype.computeHref=function(a){var b;return((b=_.y(a,_.Kl))==null?0:b.url)?this.componentBehavior.computeHref_(a):null};
z9c.prototype.onTap=function(){var a,b;(a=this.data)==null||!a.editAvatarServiceEndpoint||((b=_.y(this.data.editAvatarServiceEndpoint,_.Kl))==null?0:b.url)||(_.w("web_ytd_channel_avatar_editor_command_resolver_ks")?_.oo(this.hostElement,[this.data.editAvatarServiceEndpoint]):_.v().resolve(_.Yi).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}}))};
var p7=z9c;_.U([_.H(_.QD),_.W("design:type",Object)],p7.prototype,"ironButtonState",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],p7.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],p7.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],p7.prototype,"avatarSize",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],p7.prototype,"ariaLabel",void 0);
p7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],p7);
_.S(p7,"ytd-channel-avatar-editor",function(){if(y9c!==void 0)return y9c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-avatar-editor--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-avatar-editor" href$="[[computeHref(data.editAvatarServiceEndpoint)]]" data="[[data.editAvatarServiceEndpoint]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-avatar-editor"></yt-icon>\n  <yt-img-shadow thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-channel-avatar-editor"></yt-img-shadow>\n  <tp-yt-paper-tooltip position="bottom" class="style-scope ytd-channel-avatar-editor">[[ariaLabel]]</tp-yt-paper-tooltip>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return y9c=a},{mode:1});_.Ts(_.zac,"yt-tab-group-shape",{props:{shape:_.VG}});var A9c=function(){var a=_.P.apply(this,arguments)||this;a.expandableCustomTabRenderable=function(b){return I7c(b,function(){return void a.onSearchNavigate()})};
a.isRichGrid=!1;a.richGridMiniMode=!1;a.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-unsubscribe-action":"handleUnsubscribeAction","yt-window-resized":"onWindowResize"};return a};
_.z(A9c,_.P);_.f=A9c.prototype;_.f.areAllFalse=function(a,b,c){return!a&&!b&&!c};
_.f.updateJoinButtonOverrides=function(){var a;(a=_.E(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||a.set("overrides",this.joinButtonOverrides)};
_.f.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.sponsorButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},
"data.editChannelButtons":{id:"edit-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.otherButtons":{id:"other-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.tagline":{id:"channel-tagline",mapping:{channelTaglineRenderer:"ytd-channel-tagline-renderer"}},"data.headerLinks":{id:"channel-header-links",mapping:{channelHeaderLinksViewModel:{component:"ytd-channel-header-links-view-model",properties:{usePageHeaderStyle:"[[usePageHeaderStyle]]"}}}}}};
_.f.attached=function(){this.data&&this.dataChanged()};
_.f.computeHeaderDisabled=function(a,b){return b||!a};
_.f.handleButtonRefreshAction=function(a){(a=_.y(a,_.Xyb))&&this.set("data.sponsorButton",a.membershipButton)};
_.f.handleInsertTabCommand=function(a){var b=_.y(a,k8c);b&&b.externalChannelId===this.data.channelId&&(b.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(c){return c.tabRenderer&&c.tabRenderer.tabIdentifier===b.tabIdentifier})||this.splice("tabs",b.tabIndex||-1,0,b.tab))};
_.f.handleRefreshChannelTabAction=function(a){var b,c=(b=this.tabs)==null?void 0:b.filter(function(g){var k;return(k=g.tabRenderer)==null?void 0:k.selected});
b=(c==null?void 0:c.length)===1?c[0]:void 0;var d;if((b==null?void 0:(d=b.tabRenderer)==null?void 0:d.tabIdentifier)===a){var e;_.io(this.hostElement,"yt-navigate",{endpoint:(e=b.tabRenderer)==null?void 0:e.endpoint,tempData:{disableCache:!0}})}};
_.f.onWindowResize=function(){_.E(this.hostElement).querySelector("#header").fire("iron-resize")};
_.f.dataChanged=function(){var a=this.hasChannelArt;this.hasChannelArt=!1;if(this.data&&this.data.banner){var b=_.Us(this.data.banner.thumbnails,this.hostElement.clientWidth);b&&(b.indexOf("//")===0&&(b="https:"+b),this.hasChannelArt=!0,_.fr(this.hostElement,{"--yt-channel-banner":"url("+b+")"}))}this.hasChannelArt!==a&&_.E(this.hostElement).querySelector("#header").fire("iron-resize")};
_.f.onBannerUpdated=function(a,b){a=window.devicePixelRatio>1?b.hq_url:b.url;a.indexOf("//")===0&&(a="https:"+a);this.hasChannelArt=!0;_.fr(this.hostElement,{"--yt-channel-banner":"url("+a+")"})};
_.f.observeLightsourcePalette=function(){var a,b,c=(a=this.data)==null?void 0:(b=a.headerColorPalette)==null?void 0:b.lightsourceColorPaletteData;c&&_.Dt(this.hostElement,c)};
_.f.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.fr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.f.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.f.handleUnsubscribeAction=function(){var a,b;((b=_.y((a=this.data)==null?void 0:a.sponsorButton,_.RE))==null?void 0:b.style)==="STYLE_PRIMARY"&&_.E(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").set("data.style","STYLE_SUGGESTIVE")};
_.f.onFocusedChanged=function(a){(a=_.Sq(a))&&a.is==="tp-yt-paper-tab"&&a.hasRipple()&&(a.getRipple().holdDown=!a.pointerDown&&a.focused)};
_.f.updateSelectedFromBinding=function(a){this.ytdTabbedHeaderBehavior.selected=a.detail.value};
_.Um.Object.defineProperties(A9c.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:K7c(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasChannelHeaderLinks:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this.data)==null?0:(b=a.headerLinks)==null?0:b.channelHeaderLinksViewModel)}},
subscribeKey:{configurable:!0,enumerable:!0,get:function(){return this.get("subscribeButton.subscribeButtonRenderer.subscribedEntityKey",this.data)}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.subscriptionStateEntity)==null||!a.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono",buttonType:this.subscribed?"filled":"tonal"}}},
useModernStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.style)==="C4_TABBED_HEADER_RENDERER_STYLE_MODERN"}},
usePageHeaderStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.style)==="C4_TABBED_HEADER_RENDERER_STYLE_PAGE_HEADER"}},
avatarSize:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?160:this.useModernStyle?128:80}},
shouldInlineChannelName:{configurable:!0,enumerable:!0,get:function(){var a=this.channelHandleDisplayStyle;return a==="MODERN"||a==="PAGE_HEADER"}},
hideBannerEndpoint:{configurable:!0,enumerable:!0,get:function(){var a;return this.usePageHeaderStyle||!((a=this.data)==null?0:a.bannerLinkEndpoint)}},
hideBannerVisibleArea:{configurable:!0,enumerable:!0,get:function(){var a;return this.usePageHeaderStyle||!((a=this.data)==null||!a.bannerLinkEndpoint)}},
showBannerEditor:{configurable:!0,enumerable:!0,get:function(){var a;return!!_.y((a=this.data)==null?void 0:a.bannerEditor,a8c)}},
bannerEffects:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:"parallax-background"}},
effectsConfig:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:{"parallax-background":{scalar:.5}}}},
shouldShowPageHeaderBanner:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle&&!!this.hasChannelArt}},
isChannelHandlePresent:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.channelHandleText)}},
channelHandleDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelHandlePresent?this.usePageHeaderStyle?"PAGE_HEADER":this.useModernStyle?"MODERN":"CLASSIC":"NOT_AVAILABLE"}},
shouldShowChannelPronouns:{configurable:!0,enumerable:!0,get:function(){var a;return _.w("enable_view_pronouns_on_main_app")&&!((a=this.data)==null||!a.channelPronouns)}},
shouldShowSubscriberCount:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.subscriberCountText)}},
shouldShowVideosCount:{configurable:!0,enumerable:!0,get:function(){var a;return(this.useModernStyle||this.usePageHeaderStyle)&&!((a=this.data)==null||!a.videosCountText)}}});
var q7=A9c;q7.prototype.observerRichGridItemsPerRow=q7.prototype.observerRichGridItemsPerRow;q7.prototype.observeLightsourcePalette=q7.prototype.observeLightsourcePalette;q7.prototype.onBannerUpdated=q7.prototype.onBannerUpdated;q7.prototype.dataChanged=q7.prototype.dataChanged;q7.prototype.updateJoinButtonOverrides=q7.prototype.updateJoinButtonOverrides;_.U([_.H(_.TI),_.W("design:type",Object)],q7.prototype,"ytdGridStateAwareBehavior",void 0);
_.U([_.H(m8c),_.W("design:type",Object)],q7.prototype,"ytdTabbedHeaderBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],q7.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],q7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.XI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],q7.prototype,"ytdGuideStateAwareBehavior",void 0);
_.U([_.H(_.OI),_.W("design:type",Object)],q7.prototype,"ytdReduxBehavior",void 0);_.U([_.ir("#tabs"),_.W("design:type",Object)],q7.prototype,"tabsElement",void 0);_.U([_.O(),_.W("design:type",Array)],q7.prototype,"tabs",void 0);_.U([_.K("tabs.*"),_.W("design:type",Object),_.W("design:paramtypes",[])],q7.prototype,"tabGroupShape",null);_.U([_.O(),_.W("design:type",Object)],q7.prototype,"expandableCustomTabRenderable",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],q7.prototype,"isRichGrid",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Fp}),_.W("design:type",Object)],q7.prototype,"richGridMiniMode",void 0);_.U([_.O({selector:_.Gp}),_.W("design:type",Number)],q7.prototype,"richGridItemsPerRow",void 0);_.U([_.O(),_.W("design:type",Object)],q7.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],q7.prototype,"hasChannelArt",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],q7.prototype,"hasChannelHeaderLinks",null);_.U([_.O({selector:_.lmc,reflectToAttribute:!0}),_.W("design:type",Boolean)],q7.prototype,"guideIsVisibleButNotPersistent",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],q7.prototype,"subscribeKey",null);
_.U([_.O({selectorArgs:["subscribeKey"],selector:_.ju}),_.W("design:type",Object)],q7.prototype,"subscriptionStateEntity",void 0);_.U([_.K("subscriptionStateEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],q7.prototype,"subscribed",null);_.U([_.K("subscribed"),_.W("design:type",Object),_.W("design:paramtypes",[])],q7.prototype,"joinButtonOverrides",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],q7.prototype,"useModernStyle",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],q7.prototype,"usePageHeaderStyle",null);_.U([_.K("useModernStyle","usePageHeaderStyle"),_.W("design:type",Number),_.W("design:paramtypes",[])],q7.prototype,"avatarSize",null);
_.U([_.K("channelHandleDisplayStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],q7.prototype,"shouldInlineChannelName",null);_.U([_.K("data","usePageHeaderStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],q7.prototype,"hideBannerEndpoint",null);_.U([_.K("data","usePageHeaderStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],q7.prototype,"hideBannerVisibleArea",null);
_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],q7.prototype,"showBannerEditor",null);_.U([_.K("usePageHeaderStyle"),_.W("design:type",Object),_.W("design:paramtypes",[])],q7.prototype,"bannerEffects",null);_.U([_.K("usePageHeaderStyle"),_.W("design:type",Object),_.W("design:paramtypes",[])],q7.prototype,"effectsConfig",null);_.U([_.K("usePageHeaderStyle","hasChannelArt"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],q7.prototype,"shouldShowPageHeaderBanner",null);
_.U([_.K("data.channelHandleText"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],q7.prototype,"isChannelHandlePresent",null);_.U([_.K("isChannelHandlePresent","useModernStyle","usePageHeaderStyle"),_.W("design:type",String),_.W("design:paramtypes",[])],q7.prototype,"channelHandleDisplayStyle",null);_.U([_.K("data.channelPronouns"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],q7.prototype,"shouldShowChannelPronouns",null);
_.U([_.K("data.subscriberCountText"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],q7.prototype,"shouldShowSubscriberCount",null);_.U([_.K("useModernStyle","data.videosCountText"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],q7.prototype,"shouldShowVideosCount",null);_.U([_.N("joinButtonOverrides"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q7.prototype,"updateJoinButtonOverrides",null);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q7.prototype,"dataChanged",null);_.U([_.M("yt-banner-updated"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],q7.prototype,"onBannerUpdated",null);_.U([_.N("data.headerColorPalette.lightsourceColorPaletteData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q7.prototype,"observeLightsourcePalette",null);
_.U([_.N("richGridItemsPerRow","isRichGrid"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q7.prototype,"observerRichGridItemsPerRow",null);q7=_.U([_.Q({is:"ytd-c4-tabbed-header-renderer",disableElementRegistration:!0})],q7);
_.S(q7,"ytd-c4-tabbed-header-renderer",function(){if(k9c!==void 0)return k9c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-c4-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-c4-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent)]]" effects="[[bannerEffects]]" effects-config="[[effectsConfig]]" fixed="" class="style-scope ytd-c4-tabbed-header-renderer"><a class="banner-visible-area yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" aria-label$="[[data.banner.accessibility.accessibilityData.label]]" data="[[data.bannerLinkEndpoint]]" hidden="[[hideBannerEndpoint]]" href="[[computeHref_(data.bannerLinkEndpoint)]]"></a><template is="dom-if" if="[[!hideBannerVisibleArea]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="banner-visible-area style-scope ytd-c4-tabbed-header-renderer"><div id="banner-editor" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><template is="dom-if" if="[[shouldShowPageHeaderBanner]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-sizer style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-image style-scope ytd-c4-tabbed-header-renderer"></div><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><div id="channel-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow id="avatar" hidden="[[data.editAvatarServiceEndpoint]]" thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><ytd-channel-avatar-editor id="avatar-editor" avatar-size="[[avatarSize]]" data="[[data]]" disable-upgrade$="[[!data.editAvatarServiceEndpoint]]" hidden="[[!data.editAvatarServiceEndpoint]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-avatar-editor><div id="inner-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="meta" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" has-channel-art="[[hasChannelArt]]" wrap-text="" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-name><p hidden="[[!equals(channelHandleDisplayStyle, \'CLASSIC\')]]" class="style-scope ytd-c4-tabbed-header-renderer"><yt-formatted-string id="channel-handle" class="meta-item style-scope ytd-c4-tabbed-header-renderer" respect-lang-dir="" text="[[data.channelHandleText]]"></yt-formatted-string></p><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldInlineChannelName]]"><yt-formatted-string id="channel-handle" respect-lang-dir="" text="[[data.channelHandleText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowChannelPronouns, shouldShowSubscriberCount, shouldShowVideosCount)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowChannelPronouns]]"><yt-formatted-string id="channel-pronouns" text="[[data.channelPronouns]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowSubscriberCount, shouldShowVideosCount, false)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowSubscriberCount]]"><yt-formatted-string id="subscriber-count" text="[[data.subscriberCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]"><yt-formatted-string id="videos-count" text="[[data.videosCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></span><div id="channel-tagline" class="style-scope ytd-c4-tabbed-header-renderer"></div><div id="channel-header-links" class="style-scope ytd-c4-tabbed-header-renderer"></div></div><div id="buttons" class="style-scope ytd-c4-tabbed-header-renderer"><div id="purchase-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="subscribe-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="sponsor-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="edit-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="other-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div></div></div></div><div id="links-holder" class="style-scope ytd-c4-tabbed-header-renderer"><div id="primary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.primaryLinks]]" as="primaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint container style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(primaryLink.navigationEndpoint)]]" data="[[primaryLink.navigationEndpoint]]" title$="[[getSimpleString(primaryLink.title)]]"><div class="icon-container style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow height="16" thumbnail="[[primaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><yt-formatted-string text="[[primaryLink.title]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></div></a></template></div><div id="secondary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.secondaryLinks]]" as="secondaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(secondaryLink.navigationEndpoint)]]" data="[[secondaryLink.navigationEndpoint]]" title$="[[getSimpleString(secondaryLink.title)]]"><yt-img-shadow height="16" thumbnail="[[secondaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow></a></template></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-divider" class="style-scope ytd-c4-tabbed-header-renderer"></div><tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-c4-tabbed-header-renderer"><yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-tab-group-shape></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return k9c=a},{mode:1});var B9c;var C9c=function(){return _.P.apply(this,arguments)||this};
_.z(C9c,_.P);C9c.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
C9c.prototype.dataChanged=function(){if(this.data){var a=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var b=_.Us(this.data.banner.thumbnails,this.hostElement.clientWidth);b&&(b.indexOf("//")===0&&(b="https:"+b),this.hasBannerArt=!0,_.fr(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+b+")"}))}this.hasBannerArt!==a&&_.E(this.hostElement).querySelector("#header").fire("iron-resize")}};
C9c.prototype.updateSelectedFromBinding=function(a){this.selected=a.detail.value};
var r7=C9c;r7.prototype.dataChanged=r7.prototype.dataChanged;_.U([_.H(m8c),_.W("design:type",Object)],r7.prototype,"ytdTabbedHeaderBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],r7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.TI),_.W("design:type",Object)],r7.prototype,"ytdGridStateAwareBehavior",void 0);_.U([_.H(_.XI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],r7.prototype,"ytdGuideStateAwareBehavior",void 0);
_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],r7.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],r7.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Number)],r7.prototype,"selected",void 0);_.U([_.O(),_.W("design:type",Boolean)],r7.prototype,"active",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],r7.prototype,"hasBannerArt",void 0);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],r7.prototype,"dataChanged",null);r7=_.U([_.Q({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],r7);
_.S(r7,"ytd-interactive-tabbed-header-renderer",function(){if(B9c!==void 0)return B9c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return B9c=a},{mode:1});var D9c;var E9c=function(){return _.P.apply(this,arguments)||this};
_.z(E9c,_.P);E9c.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
E9c.prototype.computeActionsAlignment=function(a){return(a==null?void 0:a.actionsAlignment)||""};
var s7=E9c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],s7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],s7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],s7.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.W("design:type",String)],s7.prototype,"actionsAlignment",void 0);
s7=_.U([_.Q({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],s7);
_.S(s7,"ytd-page-footer-renderer",function(){if(D9c!==void 0)return D9c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-actions" class="style-scope ytd-page-footer-renderer"></div>\n<div id="actions" class="style-scope ytd-page-footer-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return D9c=a},{mode:1});var F9c;var G9c;var H9c=function(){var a=_.P.apply(this,arguments)||this;a.isEditing=!1;a.useSlot=!1;a.isMultiline=!1;return a};
_.z(H9c,_.P);_.f=H9c.prototype;_.f.onKeydown=function(a){if(a.keyCode===13&&!this.isMultiline)this.onSave();else if(a.keyCode===27)this.onCancel()};
_.f.computeComponentStyle=function(a){return(a==null?0:a.style)?a.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.f.computeisMultiline=function(a){if(this.multilineOverride!==void 0)return this.multilineOverride;var b,c;return!!(a==null?0:(b=a.formField)==null?0:(c=b.textInputFormFieldRenderer)==null?0:c.isMultiline)};
_.f.computeTextDisplayed=function(a,b){if(a)return a;if(b)return b};
_.f.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.f.onSave=function(){if(this.textForm.validate()){this.textForm.save();var a=this.textForm.value;if(a)this.set("data.textDisplayed",_.Vp(a));else{var b;((b=this.data)==null?0:b.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.WH("inline-form-changed",this.data));this.isEditing=!1}};
_.f.onCancel=function(){var a=_.Wp(this.data.textDisplayed);a===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(a);this.isEditing=!1};
var t7=H9c;t7.prototype.onKeydown=t7.prototype.onKeydown;_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],t7.prototype,"ytEventForwardingBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],t7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],t7.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],t7.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],t7.prototype,"isEditing",void 0);_.U([_.O(),_.W("design:type",Object)],t7.prototype,"useSlot",void 0);_.U([_.O(),_.W("design:type",Boolean)],t7.prototype,"multilineOverride",void 0);_.U([_.O(),_.W("design:type",Boolean)],t7.prototype,"enableOverlayTheme",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.W("design:type",String)],t7.prototype,"componentStyle",void 0);
_.U([_.O({computed:"computeisMultiline(data)"}),_.W("design:type",Object)],t7.prototype,"isMultiline",void 0);_.U([_.ir("#text-form"),_.W("design:type",Object)],t7.prototype,"textForm",void 0);_.U([_.M("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],t7.prototype,"onKeydown",null);t7=_.U([_.Q({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],t7);
_.S(t7,"ytd-inline-form-renderer",function(){if(G9c!==void 0)return G9c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="display-dialog" hidden="[[isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <template is="dom-if" restamp="" if="[[useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <slot name="text-display" id="text-displayed" class="style-scope ytd-inline-form-renderer"></slot>\n  </template>\n  <template is="dom-if" restamp="" if="[[!useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <yt-formatted-string id="text-displayed" split-lines="" text="[[computeTextDisplayed(data.textDisplayed, data.placeholder)]]" class="style-scope ytd-inline-form-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<ytd-button-renderer id="edit-button" button-tooltip-position="left" data="[[data.editButton.buttonRenderer]]" hidden="[[isEditing]]" on-click="onEdit" class="style-scope ytd-inline-form-renderer">\n</ytd-button-renderer>\n<div id="edit-dialog" hidden="[[!isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <yt-text-input-form-field-renderer id="text-form" component-style="[[componentStyle]]" data="[[data.formField.textInputFormFieldRenderer]]" enable-overlay-theme="[[enableOverlayTheme]]" is-multiline-override="[[isMultilineOverride]]" no-label-float="" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-inline-form-renderer">\n  </yt-text-input-form-field-renderer>\n  <div id="edit-buttons" class="style-scope ytd-inline-form-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancel" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSave" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return G9c=a},{mode:1});var I9c;var J9c=function(){var a=_.P.apply(this,arguments)||this;a.previousSelectValue=void 0;a.selectedItemMessage=void 0;return a};
_.z(J9c,_.P);J9c.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
J9c.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var a,b,c,d,e=(a=this.data)==null?void 0:(b=a.dropdown)==null?void 0:(c=b.dropdownRenderer)==null?void 0:(d=c.entries)==null?void 0:d.map(function(m){return m.privacyDropdownItemRenderer});
a=_.h(e!=null?e:[]);for(b=a.next();!b.done;b=a.next())if((b=b.value)&&b.int32Value===this.selectedValue){this.selectedItemMessage=b.itemMessage;break}}else this.selectedItemMessage=void 0;var g;(g=this.onValueChanged)==null||g.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var k;(k=this.data)!=null&&k.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
J9c.prototype.onValueChangedForSelectedValue=function(a){this.selectedValue=a.detail.value};
var u7=J9c;u7.prototype.selectedValueChanged=u7.prototype.selectedValueChanged;_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],u7.prototype,"ytEventForwardingBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],u7.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],u7.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],u7.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],u7.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],u7.prototype,"theme",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Number)],u7.prototype,"selectedValue",void 0);_.U([_.O(),_.W("design:type",Function)],u7.prototype,"onValueChanged",void 0);
_.U([_.mr("selectedValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],u7.prototype,"selectedValueChanged",null);u7=_.U([_.Q({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],u7);
_.S(u7,"ytd-dropdown-form-field-renderer",function(){if(I9c!==void 0)return I9c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-dropdown-form-field-renderer">\n  <ytd-dropdown-renderer id="dropdown" autosize="" data="[[data.dropdown.dropdownRenderer]]" min-autosize-width="0" no-label-float="" no-underline="" theme="[[theme]]" value="[[selectedValue]]" on-value-changed="onValueChangedForSelectedValue" class="style-scope ytd-dropdown-form-field-renderer">\n  </ytd-dropdown-renderer>\n  <yt-formatted-string id="selected-item-message" hidden="[[!selectedItemMessage]]" text="[[selectedItemMessage]]" class="style-scope ytd-dropdown-form-field-renderer">\n  </yt-formatted-string>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return I9c=a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var K9c;var L9c=function(){return _.P.apply(this,arguments)||this};
_.z(L9c,_.P);_.Um.Object.defineProperties(L9c.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var a=[],b=_.h(this.data||[]),c=b.next();!c.done;c=b.next())(c=_.y(c.value,j8c))&&a.push(c);return a}}});
var M9c=L9c;_.U([_.O(),_.W("design:type",Array)],M9c.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],M9c.prototype,"byline",null);M9c=_.U([_.Q({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],M9c);
_.S(M9c,"ytd-playlist-byline-renderer",function(){if(K9c!==void 0)return K9c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-byline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-stats style-scope ytd-playlist-byline-renderer">\n  <template is="dom-repeat" items="[[byline]]" class="style-scope ytd-playlist-byline-renderer">\n    <yt-icon id="byline-icon" hidden="[[!item.icon]]" icon="[[item.icon.iconType]]" class="style-scope ytd-playlist-byline-renderer"></yt-icon>\n    <yt-formatted-string class="byline-item style-scope ytd-playlist-byline-renderer" text="[[item.text]]"></yt-formatted-string>\n  </template>\n</div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return K9c=a},{mode:1});var N9c;var O9c=function(){var a=_.P.apply(this,arguments)||this;a.rtlBullet=_.w("web_playlist_stats_rtl_bullet_icon_killswitch");a.modern=_.w("web_modern_buttons");a.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return a};
_.z(O9c,_.P);_.f=O9c.prototype;_.f.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more"}}}},"data.playButtons":{id:"play-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"},toggleButtonRenderer:{component:"ytd-toggle-button-renderer"},compactLinkRenderer:{component:"ytd-compact-link-renderer"}}}}};
_.f.attached=function(){};
_.f.computeIsCustomThumbnail=function(a){return a?!!a.playlistCustomThumbnailRenderer:!1};
_.f.onYtNavigate=function(a,b){if(b&&b.actions&&b.actions.indexOf("shuffle")>-1){a=_.v().resolve(_.TF);var c=b.tempData||{};c.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);b.tempData=c;a.isShuffleNextPlaylist=!0}};
_.f.onUpdatePlaylistAction=function(a){var b;a=(b=_.y(a,_.Yzb))==null?void 0:b.updatedRenderer;if(b=_.y(a,c8c))this.data=b};
_.f.computeStyleType=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.f.computeThumbnailWidth=function(a){return a==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.f.computeHideThumbnailAria=function(a){if(a==null?0:a.thumbnailOverlays)for(var b=0;b<a.thumbnailOverlays.length;b++){var c=void 0;if((c=a.thumbnailOverlays[b])==null?0:c.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
var v7=O9c;v7.prototype.onYtNavigate=v7.prototype.onYtNavigate;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],v7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],v7.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],v7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],v7.prototype,"ytComponentBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],v7.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v7.prototype,"rtlBullet",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.W("design:type",String)],v7.prototype,"styleType",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.W("design:type",Number)],v7.prototype,"thumbnailWidth",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v7.prototype,"modern",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.W("design:type",Boolean)],v7.prototype,"isCustomThumbnail",void 0);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[Event,Object]),_.W("design:returntype")],v7.prototype,"onYtNavigate",null);v7=_.U([_.Q({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],v7);
_.S(v7,"ytd-playlist-sidebar-primary-info-renderer",function(){if(N9c!==void 0)return N9c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail bottom-side-panel="" custom-thumbnail-size="[[thumbnailWidth]]" data="[[data]]" hidden="[[!data.thumbnailRenderer]]" hide-aria="[[computeHideThumbnailAria(data)]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-playlist-thumbnail><h1 id="title" hidden="[[!data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string link-inherit-color="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></h1><template is="dom-if" restamp="" if="[[data.titleForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="title-form" data="[[data.titleForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></template><div id="stats" hidden="[[!data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><div id="privacy-stats" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-badge-supported-renderer><div id="show-stats" hidden="[[!data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><template is="dom-if" restamp="" if="[[data.privacyForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-dropdown-form-field-renderer></template></div><div id="play-buttons" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><div id="menu" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><template is="dom-if" restamp="" if="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template><template is="dom-if" restamp="" if="[[data.descriptionForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description-form" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="description-form" data="[[data.descriptionForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return N9c=a},{mode:1});var P9c;var Q9c=function(){return _.P.apply(this,arguments)||this};
_.z(Q9c,_.P);Q9c.prototype.computeOwnerVisibility=function(a){return!(!a.videoOwner&&!a.button)};
Q9c.prototype.configureRendererStamper=function(){return{"data.videoOwner":{id:"video-owner",mapping:{videoOwnerRenderer:"ytd-video-owner-renderer"}},"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
var w7=Q9c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],w7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],w7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],w7.prototype,"data",void 0);w7=_.U([_.Q({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],w7);
_.S(w7,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(P9c!==void 0)return P9c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n<div id="owner-container" hidden$="[[!computeOwnerVisibility(data)]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n  <div id="video-owner" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n  <div id="button" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n</div>\n<yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return P9c=a},{mode:1});var R9c;var S9c=function(){var a=_.P.apply(this,arguments)||this;a.expanded=!1;a.isCompact=!1;return a};
_.z(S9c,_.P);_.f=S9c.prototype;_.f.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.f.dataChanged=function(){this.data&&_.$d(_.E(this.text),_.xcb(_.Acb,_.Wp(this.data.text||null)))};
_.f.computeAutoScrollEnabled=function(a,b){return a&&!b};
_.f.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.f.toggleOnTap=function(){this.expanded=!this.expanded};
var x7=S9c;x7.prototype.expandedChanged=x7.prototype.expandedChanged;x7.prototype.dataChanged=x7.prototype.dataChanged;_.U([_.H(_.O6c),_.W("design:type",Object)],x7.prototype,"ytdAutoScrollBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],x7.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],x7.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],x7.prototype,"expanded",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],x7.prototype,"isCompact",void 0);_.U([_.O({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.W("design:type",Boolean)],x7.prototype,"autoScrollEnabled",void 0);_.U([_.ir("#text"),_.W("design:type",Object)],x7.prototype,"text",void 0);_.U([_.ir("#expander-icon"),_.W("design:type",Object)],x7.prototype,"expanderIcon",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],x7.prototype,"dataChanged",null);_.U([_.N("expanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],x7.prototype,"expandedChanged",null);x7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],x7);
_.S(x7,"ytd-channel-legal-info-renderer",function(){if(R9c!==void 0)return R9c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-legal-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" class="style-scope ytd-channel-legal-info-renderer"></yt-formatted-string>\n<tp-yt-paper-material id="expand-button" elevation="1" on-click="toggleOnTap" class="style-scope ytd-channel-legal-info-renderer">\n  <yt-icon-button class="style-scope ytd-channel-legal-info-renderer">\n    <yt-icon id="expander-icon" class="style-scope ytd-channel-legal-info-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return R9c=a},{mode:1});var T9c;var U9c=_.vo("DOWNLOAD",{},"Download"),V9c=_.vo("DOWNLOADING",{},"Downloading"),W9c=_.vo("DOWNLOADED",{},"Downloaded"),X9c=function(){var a=_.P.apply(this,arguments)||this;a.downloadProgress=0;a.isDownloadComplete=!1;a.transferState="TRANSFER_STATE_UNKNOWN";return a};
_.z(X9c,_.P);_.f=X9c.prototype;_.f.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.f.dataChanged=function(){var a;(a=this.data)!=null&&a.tooltip||(a=_.Lp(_.Yp().getState(),this.playlistId),this.updateButtonState(a))};
_.f.computePlaylistId=function(a){return a};
_.f.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.f.updateButtonState=function(a){if(this.data&&(this.data.tooltip!==V9c||!_.xp(a))){this.isDownloadComplete=!1;switch(a){case "TRANSFER_STATE_UNKNOWN":a=U9c;var b="OFFLINE_DOWNLOAD";var c="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":a=W9c;b="OFFLINE_PIN";c="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":a=V9c;b="OFFLINE_DOWNLOADING_ZERO";c="ACTION_REMOVE_WITH_PROMPT";
break;default:a=U9c,b="OFFLINE_DOWNLOAD",c="ACTION_ADD"}var d=Object.assign({},this.data);d.tooltip=a;d.accessibilityData={accessibilityData:{label:a}};d.icon={iconType:b};d.size="SIZE_DEFAULT";_.y(d.command,_.ru)&&(_.y(d.command,_.ru).action=c);this.set("data",d)}};
_.f.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var a="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?a="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?a="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?a="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?a="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?a="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(a="OFFLINE_PIN",this.isDownloadComplete=!0);var b;a!==((b=this.data.icon)==null?void 0:b.iconType)&&(b=Object.assign({},this.data),b.tooltip=V9c,b.accessibilityData={accessibilityData:{label:V9c}},b.icon={iconType:a},_.y(b.command,_.ru)&&(_.y(b.command,_.ru).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",b))}};
var y7=X9c;y7.prototype.updateProgress=y7.prototype.updateProgress;y7.prototype.onTransferStateChanged=y7.prototype.onTransferStateChanged;y7.prototype.dataChanged=y7.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],y7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],y7.prototype,"ytdReduxBehavior",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],y7.prototype,"forceIconButton",void 0);
_.U([_.O({value:!0}),_.W("design:type",Boolean)],y7.prototype,"forceIconOnly",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],y7.prototype,"overrides",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],y7.prototype,"buttonTooltipPosition",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],y7.prototype,"styleActionButton",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],y7.prototype,"disableTextTransform",void 0);
_.U([_.O({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.W("design:type",String)],y7.prototype,"playlistId",void 0);_.U([_.O(),_.W("design:type",Object)],y7.prototype,"data",void 0);_.U([_.O({selector:_.IFa,selectorArgs:["playlistId"]}),_.W("design:type",Object)],y7.prototype,"downloadProgress",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],y7.prototype,"isDownloadComplete",void 0);
_.U([_.O({selector:_.Lp,selectorArgs:["playlistId"]}),_.W("design:type",String)],y7.prototype,"transferState",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],y7.prototype,"showTooltips",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],y7.prototype,"sendCommandWhenDisabled",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],y7.prototype,"disabled",void 0);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y7.prototype,"dataChanged",null);_.U([_.mr("transferState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y7.prototype,"onTransferStateChanged",null);_.U([_.mr("downloadProgress"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y7.prototype,"updateProgress",null);
y7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],y7);
_.S(y7,"ytd-download-playlist-button-renderer",function(){if(T9c!==void 0)return T9c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-playlist-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-playlist-button-renderer"></ytd-button-renderer>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return T9c=a},{mode:1});var Y9c;_.Ts(_.qL,"thumbnail-overlay-button-view-model",{props:{data:_.VG,lockupExperiments:_.VG}});var Z9c=function(){var a=_.P.apply(this,arguments)||this;a.isSquare=!1;a.isVertical=!1;return a};
_.z(Z9c,_.P);Z9c.prototype.computeIsSquare=function(a){return a!=null&&a.thumbnail?G7c(a.thumbnail)==="SQUARE":!1};
Z9c.prototype.computeIsVertical=function(a){return a!=null&&a.thumbnail?G7c(a.thumbnail)==="VERTICAL":!1};
Z9c.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
var z7=Z9c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],z7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],z7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.W("design:type",Object)],z7.prototype,"isSquare",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.W("design:type",Object)],z7.prototype,"isVertical",void 0);
_.U([_.O(),_.W("design:type",Object)],z7.prototype,"data",void 0);z7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],z7);
_.S(z7,"ytd-hero-playlist-thumbnail-renderer",function(){if(Y9c!==void 0)return Y9c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hero-playlist-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="horizontally-centered-container style-scope ytd-hero-playlist-thumbnail-renderer">\n  <div class="image-wrapper style-scope ytd-hero-playlist-thumbnail-renderer">\n    <yt-img-shadow class="image style-scope ytd-hero-playlist-thumbnail-renderer" alt="hidden" aria-hidden="true" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div id="overlays" class="style-scope ytd-hero-playlist-thumbnail-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Y9c=a},{mode:1});var $9c=function(){var a=_.P.apply(this,arguments)||this;a.isDarkTheme=!1;a.isUltraWide=!1;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return a};
_.z($9c,_.P);_.f=$9c.prototype;_.f.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.v();var a;(a=_.v().resolve(_.Xi(_.jT)))!=null&&(a.headerElement=this.hostElement)};
_.f.detached=function(){var a;(a=_.v().resolve(_.Xi(_.jT)))!=null&&(a.headerElement=void 0)};
_.f.onUpdateHeader=function(a){(a=a.detail)&&this.set("data",a)};
_.f.computeTextDisplayed=function(a){if(a)return a.textDisplayed?a.textDisplayed:a.placeholder};
_.f.gradientColorToLinearGradientStop=function(a){var b=this.isDarkTheme?a.darkThemeColor:a.lightThemeColor;return b?_.Dq(b)+" "+((a==null?void 0:a.startLocation)||0)*100+"%":"transparent"};
_.f.onWindowResize=function(){var a;((a=this.data)==null?0:a.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.f.onIronResize=function(a){this.isUltraWide=!a.detail.value};
_.f.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.f.onUpdatePlaylistName=function(a){var b=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},a.detail.value));_.Qm(this,function(){var c;(c=b.editableTitle)==null||c.resize()})};
_.f.onUpdatePlaylistDescription=function(a){var b=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},a.detail.value));_.Qm(this,function(){var c;(c=b.editableDescriptionInlineExpander)==null||c.resize()})};
_.f.getCinematicData=function(a){return _.y(a==null?void 0:a.cinematicContainer,_.F6)};
_.Um.Object.defineProperties($9c.prototype,{maxDescriptionLines:{configurable:!0,enumerable:!0,get:function(){return this.isUltraWide?999:2}},
noCinematicData:{configurable:!0,enumerable:!0,get:function(){return!this.getCinematicData(this.data)}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var a,b=(a=this.getCinematicData(this.data))==null?void 0:a.config;return(a=this.isDarkTheme?b==null?void 0:b.darkThemeBackgroundColor:b==null?void 0:b.lightThemeBackgroundColor)?"background-color:"+_.Cq(a)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var a;return _.y((a=this.data)==null?void 0:a.descriptionForm,b8c)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var a=this,b,c,d;return"background:linear-gradient(to bottom, "+(((d=(b=this.getCinematicData(this.data))==null?void 0:(c=b.gradientColorConfig)==null?void 0:c.map(function(e){return a.gradientColorToLinearGradientStop(e)}))==null?void 0:d.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var a;return _.Wp((a=this.data)==null?void 0:a.descriptionTapText)}}});
var A7=$9c;A7.prototype.onUpdateHeader=A7.prototype.onUpdateHeader;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],A7.prototype,"actionHandlerBehavior",void 0);_.U([_.ir("#description-inline-expander"),_.W("design:type",Object)],A7.prototype,"descriptionInlineExpander",void 0);
_.U([_.ir("#editable-description-inline-expander"),_.W("design:type",Object)],A7.prototype,"editableDescriptionInlineExpander",void 0);_.U([_.O(),_.W("design:type",Object)],A7.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],A7.prototype,"isUltraWide",void 0);_.U([_.ir("#editable-title-display"),_.W("design:type",Object)],A7.prototype,"editableTitle",void 0);_.U([_.K("isUltraWide"),_.W("design:type",Object),_.W("design:paramtypes",[])],A7.prototype,"maxDescriptionLines",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],A7.prototype,"noCinematicData",null);_.U([_.M("yt-new-playlist-header"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],A7.prototype,"onUpdateHeader",null);_.U([_.K("data","isDarkTheme"),_.W("design:type",Object),_.W("design:paramtypes",[])],A7.prototype,"backgroundStyle",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],A7.prototype,"descriptionFormData",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],A7.prototype,"getDropdownTheme",null);_.U([_.K("data","isDarkTheme"),_.W("design:type",String),_.W("design:paramtypes",[])],A7.prototype,"gradientStyle",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],A7.prototype,"descriptionTapText",null);
A7=_.U([_.Q({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],A7);
_.S(A7,"ytd-playlist-header-renderer",function(){if(F9c!==void 0)return F9c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query id="resize-query" query="(max-width: 1080px)" on-query-matches-changed="onIronResize" class="style-scope ytd-playlist-header-renderer"></iron-media-query>\n\n<div class="immersive-header-container style-scope ytd-playlist-header-renderer" style="">\n  <div class="immersive-header-background-wrapper style-scope ytd-playlist-header-renderer" style$="[[backgroundStyle]]">\n    <yt-img-shadow class="blurred-image style-scope ytd-playlist-header-renderer" alt="hidden" aria-hidden="true" fit-width="" hidden="[[!data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]" thumbnail="[[data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]">\n    </yt-img-shadow>\n    <div class="immersive-header-gradient style-scope ytd-playlist-header-renderer" style$="[[gradientStyle]]"></div>\n  </div>\n  <div class="immersive-header-content style-scope ytd-playlist-header-renderer">\n    <div class="thumbnail-and-metadata-wrapper style-scope ytd-playlist-header-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-playlist-header-renderer" href$="[[computeHref_(data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap)]]" data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap]]">\n        <div class="thumbnail-wrapper style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.thumbnail]]">\n          <ytd-hero-playlist-thumbnail-renderer data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer]]" class="style-scope ytd-playlist-header-renderer"></ytd-hero-playlist-thumbnail-renderer>\n        </div>\n      </a>\n\n      <div class="metadata-wrapper style-scope ytd-playlist-header-renderer">\n        <yt-dynamic-sizing-formatted-string hidden="[[data.titleForm]]" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.title]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n\n        <ytd-inline-form-renderer data="[[data.titleForm.inlineFormRenderer]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.titleForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistName" class="style-scope ytd-playlist-header-renderer">\n          <yt-dynamic-sizing-formatted-string id="editable-title-display" slot="text-display" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.titleForm.inlineFormRenderer.textDisplayed]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n        </ytd-inline-form-renderer>\n\n        <div class="metadata-action-bar style-scope ytd-playlist-header-renderer">\n          <div class="metadata-text-wrapper style-scope ytd-playlist-header-renderer">\n            <div class="metadata-owner style-scope ytd-playlist-header-renderer">\n              <yt-formatted-string id="owner-text" hidden="[[!data.ownerText]]" link-inherit-color="" text="[[data.ownerText]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n              <yt-formatted-string hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n\n              <div class="badges style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistBadges]]">\n                <span class="middot style-scope ytd-playlist-header-renderer">\u00b7</span>\n                <ytd-badge-supported-renderer badges="[[data.playlistBadges]]" class="style-scope ytd-playlist-header-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n            </div>\n\n            <ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" hidden="[[!data.privacyForm]]" theme="[[getDropdownTheme]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-dropdown-form-field-renderer>\n            <ytd-playlist-byline-renderer data="[[data.byline]]" class="style-scope ytd-playlist-header-renderer"></ytd-playlist-byline-renderer>\n          </div>\n          <div class="metadata-buttons-wrapper style-scope ytd-playlist-header-renderer">\n            <ytd-toggle-button-renderer data="[[data.saveButton.toggleButtonRenderer]]" force-modern-icon-button="" hidden="[[!data.saveButton.toggleButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-toggle-button-renderer>\n            <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.shareButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-button-renderer data="[[data.addVideosButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.addVideosButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-download-playlist-button-renderer data="[[data.offlineability.downloadButtonRenderer]]" force-icon-button="" force-modern-icon-button="" hidden="[[!data.offlineability.downloadButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-download-playlist-button-renderer>\n            <ytd-menu-renderer data="[[data.moreActionsMenu.menuRenderer]]" force-icon-button="" hidden="[[!data.moreActionsMenu.menuRenderer]]" is-overlay="[[!noCinematicData]]" tonal-override="" class="style-scope ytd-playlist-header-renderer"></ytd-menu-renderer>\n          </div>\n        </div>\n\n        <div class="play-menu spaced-row wide-screen-form style-scope ytd-playlist-header-renderer">\n          <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n          </ytd-button-renderer>\n          <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n\n        <div class="description style-scope ytd-playlist-header-renderer">\n          <ytd-text-inline-expander id="description-inline-expander" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" hidden="[[data.descriptionForm]]" max-lines="[[maxDescriptionLines]]" text="[[data.descriptionText]]" class="style-scope ytd-playlist-header-renderer">\n          </ytd-text-inline-expander>\n          <ytd-inline-form-renderer data="[[descriptionFormData]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.descriptionForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistDescription" class="style-scope ytd-playlist-header-renderer">\n            <ytd-text-inline-expander id="editable-description-inline-expander" slot="text-display" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" max-lines="[[maxDescriptionLines]]" text="[[computeTextDisplayed(data.descriptionForm.inlineFormRenderer)]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-text-inline-expander>\n          </ytd-inline-form-renderer>\n        </div>\n      </div>\n    </div>\n    <div class="play-menu spaced-row small-screen-form style-scope ytd-playlist-header-renderer">\n      <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n      </ytd-button-renderer>\n      <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n\n  <tp-yt-paper-tooltip for="owner-text" offset="5" position="top" class="style-scope ytd-playlist-header-renderer">\n    [[getSimpleString(data.ownerText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return F9c=a},{mode:_.as("kevlar_poly_si_batch_j078")?1:2});var a$c;var b$c;var c$c=function(){return _.P.apply(this,arguments)||this};
_.z(c$c,_.P);c$c.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
var B7=c$c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],B7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],B7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],B7.prototype,"data",void 0);B7=_.U([_.Q({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],B7);
_.S(B7,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(b$c!==void 0)return b$c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-tertiary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer">\n</yt-formatted-string>\n<div id="items" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return b$c=a},{mode:1});var d$c=function(){return _.P.apply(this,arguments)||this};
_.z(d$c,_.P);
d$c.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{playlistSidebarPrimaryInfoRenderer:{component:"ytd-playlist-sidebar-primary-info-renderer",noInjection:!0},playlistSidebarSecondaryInfoRenderer:{component:"ytd-playlist-sidebar-secondary-info-renderer",noInjection:!0},playlistSidebarTertiaryInfoRenderer:{component:"ytd-playlist-sidebar-tertiary-info-renderer",noInjection:!0},channelLegalInfoRenderer:{component:"ytd-channel-legal-info-renderer",params:{isCompact:!0},
noInjection:!0}}}}};
d$c.prototype.computeUsePremiumShowStyle=function(a){if(!a||!a.items)return!1;for(var b=0;b<a.items.length;b++)if(_.y(a.items[b],c8c)){var c=void 0;return((c=_.y(a.items[b],c8c))==null?void 0:c.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
var C7=d$c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],C7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],C7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],C7.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.W("design:type",Boolean)],C7.prototype,"usePremiumShowStyle",void 0);
C7=_.U([_.Q({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],C7);
_.S(C7,"ytd-playlist-sidebar-renderer",function(){if(a$c!==void 0)return a$c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-playlist-sidebar-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return a$c=a},{mode:1});var e$c;var N7c=_.Du({pageHeaderViewModel:_.E2a});_.Zl(O7c);_.at(O7c,"yt-page-header-renderer",{propNames:"noPadding data enableBanner cinematicContainerTopbarOffset allowCinematicContainerOverflow displayAsSidebar".split(" ")});_.Ts(_.iac,"yt-image-banner-view-model",{props:{data:_.VG,isPositionRelative:_.VG}});var f$c=function(){var a=_.P.apply(this,arguments)||this;a.expandableCustomTabRenderable=function(b){return I7c(b,function(){return void a.onSearchNavigate()})};
a.isRichGrid=!1;a.isConstrainedList=!1;a.richGridMiniMode=!1;a.richGridStyle="RICH_GRID_STYLE_UNKNOWN";a.isRichGridShorts=!1;a.responsiveSizing="COMPACT";a.disableGridStateAware=!1;a.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return a};
_.z(f$c,_.P);_.f=f$c.prototype;_.f.computeHeaderDisabled=function(a,b){return b||!a||this.tabsHidden};
_.f.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.f.computeIsRichGridShorts=function(a){return a==="RICH_GRID_STYLE_SHORTS_GRID"||a==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.f.computeImageBannerViewModel=function(){var a,b;return _.y((b=_.y((a=this.data)==null?void 0:a.content,_.zFb))==null?void 0:b.banner,_.D2a)};
_.f.computeHasCinematicContainer=function(){var a,b;return!((b=_.y((a=this.data)==null?void 0:a.content,_.zFb))==null||!b.background)};
_.f.handleHeaderResize=function(){var a=_.E(this.hostElement).querySelector("#header");a&&_.io(a,"iron-resize")};
_.f.handleInsertTabCommand=function(a){var b=_.y(a,k8c);b&&(b.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(c){return c.tabRenderer&&c.tabRenderer.tabIdentifier===b.tabIdentifier})||this.splice("tabs",b.tabIndex||-1,0,b.tab))};
_.f.handleRefreshChannelTabAction=function(a){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===a&&_.io(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.f.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.fr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.f.observerRichGridSlimItemsPerRow=function(){_.fr(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.f.updateCssVars=function(){this.richGridItemsPerRow&&_.fr(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.$i("rich_grid_max_item_width",500))+16)-16+"px"})};
_.f.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.fr(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.f.onDataChanged=function(){this.handleHeaderResize()};
_.f.onWindowResize=function(){this.handleHeaderResize()};
_.f.onFocusedChanged=function(a){(a=_.Sq(a))&&a.is==="tp-yt-paper-tab"&&a.hasRipple()&&(a.getRipple().holdDown=!a.pointerDown&&a.focused)};
_.f.updateSelectedFromBinding=function(a){this.ytdTabbedHeaderBehavior.selected=a.detail.value};
_.f.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.Um.Object.defineProperties(f$c.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:K7c(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.imageBannerViewModel)==null?void 0:a.style)==="IMAGE_BANNER_STYLE_INSET"}}});
var D7=f$c;D7.prototype.onDataChanged=D7.prototype.onDataChanged;D7.prototype.updateCssVarsForResponsiveGrid=D7.prototype.updateCssVarsForResponsiveGrid;D7.prototype.updateCssVars=D7.prototype.updateCssVars;D7.prototype.observerRichGridSlimItemsPerRow=D7.prototype.observerRichGridSlimItemsPerRow;D7.prototype.observerRichGridItemsPerRow=D7.prototype.observerRichGridItemsPerRow;_.U([_.H(_.TI),_.W("design:type",Object)],D7.prototype,"ytdGridStateAwareBehavior",void 0);
_.U([_.H(m8c),_.W("design:type",Object)],D7.prototype,"ytdTabbedHeaderBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],D7.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],D7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.XI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],D7.prototype,"ytdGuideStateAwareBehavior",void 0);
_.U([_.H(_.OI),_.W("design:type",Object)],D7.prototype,"ytdReduxBehavior",void 0);_.U([_.ir("#tabs"),_.W("design:type",Object)],D7.prototype,"tabsElement",void 0);_.U([_.O(),_.W("design:type",Array)],D7.prototype,"tabs",void 0);_.U([_.O(),_.W("design:type",Object)],D7.prototype,"expandableCustomTabRenderable",void 0);_.U([_.K("tabs.*"),_.W("design:type",Object),_.W("design:paramtypes",[])],D7.prototype,"tabGroupShape",null);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D7.prototype,"isRichGrid",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D7.prototype,"isConstrainedList",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Fp}),_.W("design:type",Object)],D7.prototype,"richGridMiniMode",void 0);_.U([_.O({selector:function(a){return a.ui.richGridStyle}}),
_.W("design:type",Object)],D7.prototype,"richGridStyle",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.W("design:type",Object)],D7.prototype,"isRichGridShorts",void 0);_.U([_.O({selector:_.Gp}),_.W("design:type",Number)],D7.prototype,"richGridItemsPerRow",void 0);_.U([_.O({selector:function(a){return a.ui.richGridContainerWidth}}),
_.W("design:type",Number)],D7.prototype,"richGridContainerWidth",void 0);_.U([_.O({selector:_.vFa}),_.W("design:type",Number)],D7.prototype,"richGridSlimItemsPerRow",void 0);_.U([_.O(),_.W("design:type",Object)],D7.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D7.prototype,"responsiveSizing",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D7.prototype,"disableGridStateAware",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeImageBannerViewModel(data)"}),_.W("design:type",Object)],D7.prototype,"imageBannerViewModel",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.W("design:type",Boolean)],D7.prototype,"hasCinematicContainer",void 0);_.U([_.O({selector:_.lmc,reflectToAttribute:!0}),_.W("design:type",Boolean)],D7.prototype,"guideIsVisibleButNotPersistent",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("imageBannerViewModel"),_.W("design:type",Object),_.W("design:paramtypes",[])],D7.prototype,"hasBanner",null);_.U([_.O({reflectToAttribute:!0}),_.K("imageBannerViewModel"),_.W("design:type",Object),_.W("design:paramtypes",[])],D7.prototype,"hasInsetBanner",null);_.U([_.O({computed:"computeTabsHidden(tabs)",value:!0}),_.W("design:type",Boolean)],D7.prototype,"tabsHidden",void 0);
_.U([_.N("richGridItemsPerRow","isRichGrid"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D7.prototype,"observerRichGridItemsPerRow",null);_.U([_.N("richGridSlimItemsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D7.prototype,"observerRichGridSlimItemsPerRow",null);
_.U([_.N("richGridItemsPerRow","richGridMiniMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D7.prototype,"updateCssVars",null);_.U([_.N("richGridContainerWidth"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D7.prototype,"updateCssVarsForResponsiveGrid",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D7.prototype,"onDataChanged",null);
D7=_.U([_.Q({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],D7);
_.S(D7,"ytd-tabbed-page-header",function(){if(e$c!==void 0)return e$c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return e$c=a},{mode:1});var g$c;var h$c=function(){return _.P.apply(this,arguments)||this};
_.z(h$c,_.P);h$c.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.fr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.Um.Object.defineProperties(h$c.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var a,b;return this.componentBehavior.computeIcon_(((b=_.y((a=this.data)==null?void 0:a.badge,_.CAb))==null?void 0:b.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=_.y((a=this.data)==null?void 0:a.badge,_.CAb))==null?void 0:b.label}}});
var E7=h$c;E7.prototype.observerRichGridItemsPerRow=E7.prototype.observerRichGridItemsPerRow;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],E7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],E7.prototype,"componentBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],E7.prototype,"ytdReduxBehavior",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Fp}),_.W("design:type",Boolean)],E7.prototype,"richGridMiniMode",void 0);
_.U([_.O({selector:_.Gp}),_.W("design:type",Number)],E7.prototype,"richGridItemsPerRow",void 0);_.U([_.O(),_.W("design:type",Object)],E7.prototype,"data",void 0);_.U([_.N("richGridItemsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E7.prototype,"observerRichGridItemsPerRow",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],E7.prototype,"badgeIconName",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],E7.prototype,"badgeLabel",null);E7=_.U([_.Q({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],E7);
_.S(E7,"ytd-member-hub-profile-renderer",function(){if(g$c!==void 0)return g$c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-member-hub-profile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-member-hub-profile-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" class="style-scope ytd-member-hub-profile-renderer">\n  </yt-img-shadow>\n  <div id="details-container" class="style-scope ytd-member-hub-profile-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-member-hub-profile-renderer">\n    </ytd-badge-supported-renderer>\n    <h2 class="style-scope ytd-member-hub-profile-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-member-hub-profile-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-member-hub-profile-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return g$c=a},{mode:1});var i$c;var j$c=function(){return _.P.apply(this,arguments)||this};
_.z(j$c,_.P);j$c.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
var F7=j$c;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],F7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],F7.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],F7.prototype,"data",void 0);F7=_.U([_.Q({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],F7);
_.S(F7,"ytd-settings-sidebar-renderer",function(){if(i$c!==void 0)return i$c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-settings-sidebar-renderer">[[getSimpleString(data.title)]]</div>\n<div id="items" class="style-scope ytd-settings-sidebar-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return i$c=a},{mode:1});var k$c;var G7=function(){return _.P.apply(this,arguments)||this};
_.z(G7,_.P);G7.prototype.shouldHideHashtagInfo_=function(a){return!(a==null?0:a.hashtagInfoText)};
G7.prototype.onFocusedChanged=function(a){(a=_.Sq(a))&&a.is==="tp-yt-paper-tab"&&a.hasRipple()&&(a.getRipple().holdDown=!a.pointerDown&&a.focused)};
G7.prototype.updateSelectedFromBinding=function(a){this.selected=a.detail.value};
_.Um.Object.defineProperties(G7.prototype,{tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
var H7=G7;_.U([_.H(m8c),_.W("design:type",Object)],H7.prototype,"ytdTabbedHeaderBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],H7.prototype,"rendererBehaviors",void 0);_.U([_.O(),_.W("design:type",Object)],H7.prototype,"data",void 0);_.U([_.ir("#tabs"),_.W("design:type",Object)],H7.prototype,"tabsElement",void 0);_.U([_.O(),_.W("design:type",Array)],H7.prototype,"tabs",void 0);_.U([_.O(),_.W("design:type",Object)],H7.prototype,"selected",void 0);
_.U([_.K("tabs"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],H7.prototype,"tabsEnabled",null);H7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-hashtag-header-renderer"})],H7);
_.S(H7,"ytd-hashtag-header-renderer",function(){if(k$c!==void 0)return k$c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-hashtag-header-renderer">\n  <tp-yt-app-header id="header" slot="header" condenses="" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-hashtag-header-renderer">\n    <div id="hashtag-info-container" class="style-scope ytd-hashtag-header-renderer">\n      <yt-formatted-string id="hashtag" dir="auto" text="[[data.hashtag]]" class="style-scope ytd-hashtag-header-renderer">\n      </yt-formatted-string>\n      <div id="hashtag-info" hidden="[[shouldHideHashtagInfo_(data)]]" class="style-scope ytd-hashtag-header-renderer">\n        <yt-formatted-string id="hashtag-info-text" hidden="[[!data.hashtagInfoText]]" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-header-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <tp-yt-app-toolbar hidden="[[!tabsEnabled]]" sticky="" class="style-scope ytd-hashtag-header-renderer">\n      <div id="tabs-container" class="style-scope ytd-hashtag-header-renderer">\n        \n        <div id="tabs-inner-container" class="style-scope ytd-hashtag-header-renderer">\n          <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-hashtag-header-renderer">\n            <template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-hashtag-header-renderer">\n              <tp-yt-paper-tab disable-upgrade$="[[!item.tabRenderer]]" hidden="[[!item.tabRenderer]]" on-focused-changed="onFocusedChanged" class="style-scope ytd-hashtag-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab>\n            </template>\n          </tp-yt-paper-tabs>\n        </div>\n        <div id="tabs-divider" class="style-scope ytd-hashtag-header-renderer"></div>\n      </div>\n    </tp-yt-app-toolbar>\n  </tp-yt-app-header>\n</tp-yt-app-header-layout>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return k$c=a},{mode:_.as("kevlar_poly_si_batch_j078")?1:2});var l$c;var I7=function(){var a=_.P.apply(this,arguments)||this;a.expandableCustomTabRenderable=function(b){return I7c(b,function(){return void a.onSearchNavigate()})};
return a};
_.z(I7,_.P);I7.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
I7.prototype.onSearchNavigate=function(){this.selected=void 0};
I7.prototype.onTabsChange=function(){var a,b=(a=this.tabs)==null?void 0:a.findIndex(function(c){var d;return c==null?void 0:(d=c.tabRenderer)==null?void 0:d.selected});
b!==void 0&&(this.selected=b)};
I7.prototype.onTabsActive=function(a){if(this.tabs!==void 0){var b,c;(a=(b=this.tabs[a.detail.selected])==null?void 0:(c=b.tabRenderer)==null?void 0:c.endpoint)&&_.io(this.hostElement,"yt-navigate",{endpoint:a})}};
_.Um.Object.defineProperties(I7.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:K7c(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
var J7=I7;J7.prototype.onTabsChange=J7.prototype.onTabsChange;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],J7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.TI),_.W("design:type",Object)],J7.prototype,"ytdGridStateAwareBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],J7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.XI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],J7.prototype,"ytdGuideStateAwareBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],J7.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Array)],J7.prototype,"tabs",void 0);_.U([_.O(),_.W("design:type",Number)],J7.prototype,"selected",void 0);_.U([_.K("tabs.*"),_.W("design:type",Object),_.W("design:paramtypes",[])],J7.prototype,"tabGroupShape",null);_.U([_.O(),_.W("design:type",Object)],J7.prototype,"expandableCustomTabRenderable",void 0);
_.U([_.K("tabs"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],J7.prototype,"tabsEnabled",null);_.U([_.mr("tabs"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],J7.prototype,"onTabsChange",null);J7=_.U([_.Q({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],J7);
_.S(J7,"ytd-topic-channel-details-renderer",function(){if(l$c!==void 0)return l$c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return l$c=a},{mode:1});var m$c;var n$c=function(){var a=_.P.apply(this,arguments)||this;a.disableGridStateAware=!1;return a};
_.z(n$c,_.P);n$c.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{topicChannelDetailsRenderer:{component:"ytd-topic-channel-details-renderer",properties:{disableGridStateAware:"[[disableGridStateAware]]",tabs:"[[tabs]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",attributes:{"has-animation":!0},properties:{disableGridStateAware:"[[disableGridStateAware]]"}}}}}};
n$c.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
n$c.prototype.updateCssVars=function(){_.fr(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.$i("rich_grid_max_item_width",500))+16)-16+"px"})};
var K7=n$c;K7.prototype.updateCssVars=K7.prototype.updateCssVars;K7.prototype.activeChanged=K7.prototype.activeChanged;_.U([_.H(_.XI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],K7.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],K7.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],K7.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],K7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],K7.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Array)],K7.prototype,"tabs",void 0);_.U([_.O(),_.W("design:type",Boolean)],K7.prototype,"active",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],K7.prototype,"disableGridStateAware",void 0);
_.U([_.O({selector:_.Gp}),_.W("design:type",Number)],K7.prototype,"richGridItemsPerRow",void 0);_.U([_.O({selector:_.Fp}),_.W("design:type",Boolean)],K7.prototype,"richGridMiniMode",void 0);_.U([_.ir("ytd-carousel-item-renderer"),_.W("design:type",Object)],K7.prototype,"carousel",void 0);_.U([_.N("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K7.prototype,"activeChanged",null);
_.U([_.N("richGridItemsPerRow","richGridMiniMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K7.prototype,"updateCssVars",null);K7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],K7);
_.S(K7,"ytd-carousel-header-renderer",function(){if(m$c!==void 0)return m$c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-carousel-header-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return m$c=a},{mode:1});var o$c;var p$c=_.hx(["https://www.google-analytics.com/analytics.js"]),q$c=function(){var a=_.P.apply(this,arguments)||this;a.scriptAnalyticsAdded=!1;return a};
_.z(q$c,_.P);q$c.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var a,b=(a=this.data)==null?void 0:a.tagManagerId;b&&(_.BG(b,_.Fi("GL")),M7c(b))};
q$c.prototype.sendGoogleAnalyticsPageview=function(a){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var c=_.Kd.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(c)};
var b=window.ga;b("set","page",window.location.pathname);b.l=+new Date;b("set","forceSSL",!0);b("create",a,"'auto'");b("send","pageview")};
q$c.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var a=_.pg("SCRIPT");a.name="ga-analytics";var b=_.ef(p$c);_.Zd(a,b);a.async=!0;_.E(this.hostElement).appendChild(a)};
var L7=q$c;L7.prototype.dataChanged=L7.prototype.dataChanged;_.U([_.O(),_.W("design:type",Object)],L7.prototype,"data",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],L7.prototype,"dataChanged",null);L7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],L7);
_.S(L7,"ytd-channel-metadata-renderer",function(){if(o$c!==void 0)return o$c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.trackingImageUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.trackingImageUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n<template is="dom-if" if="[[data.channelConversionUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.channelConversionUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return o$c=a},{mode:1});var r$c;var s$c;var t$c=function(){return _.P.apply(this,arguments)||this};
_.z(t$c,_.P);var u$c=t$c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],u$c.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],u$c.prototype,"data",void 0);u$c=_.U([_.Q({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],u$c);
_.S(u$c,"ytd-sub-feed-option-renderer",function(){if(s$c!==void 0)return s$c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-sub-feed-option-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1">\n  <tp-yt-paper-radio-button checked="[[data.isSelected]]" class="style-scope ytd-sub-feed-option-renderer">\n    <yt-formatted-string text="[[data.name]]" class="style-scope ytd-sub-feed-option-renderer"></yt-formatted-string>\n  </tp-yt-paper-radio-button>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return s$c=a},{mode:1});var v$c;var w$c=function(){return _.P.apply(this,arguments)||this};
_.z(w$c,_.P);w$c.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
var M7=w$c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],M7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],M7.prototype,"ytRendererStamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],M7.prototype,"data",void 0);M7=_.U([_.Q({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],M7);
_.S(M7,"ytd-sub-feed-selector-renderer",function(){if(v$c!==void 0)return v$c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-sub-feed-selector-renderer">\n   [[getSimpleString(data.title)]]\n</h2>\n<div id="options" class="style-scope ytd-sub-feed-selector-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return v$c=a},{mode:1});var x$c=function(){return _.P.apply(this,arguments)||this};
_.z(x$c,_.P);
x$c.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0},searchBoxRenderer:{component:"ytd-search-box-renderer",noInjection:!0},subFeedSelectorRenderer:{component:"ytd-sub-feed-selector-renderer",noInjection:!0},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",noInjection:!0},compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0},eomSettingsDisclaimerRenderer:{component:"ytd-eom-settings-disclaimer-renderer",noInjection:!0}}}}};
var N7=x$c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],N7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],N7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],N7.prototype,"data",void 0);N7=_.U([_.Q({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],N7);
_.S(N7,"ytd-browse-feed-actions-renderer",function(){if(r$c!==void 0)return r$c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-feed-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-feed-actions-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return r$c=a},{mode:1});var y$c;var z$c;var A$c=function(){return _.P.apply(this,arguments)||this};
_.z(A$c,_.P);A$c.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
var O7=A$c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],O7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],O7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],O7.prototype,"data",void 0);O7=_.U([_.Q({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],O7);
_.S(O7,"ytd-mini-channel-renderer",function(){if(z$c!==void 0)return z$c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="channel-info" class="yt-simple-endpoint style-scope ytd-mini-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" rel$="[[computeNofollow_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-mini-channel-renderer">\n  </yt-img-shadow>\n  <span class="title style-scope ytd-mini-channel-renderer">[[getSimpleString(data.title)]]</span>\n</a>\n\n<div id="subscribe" class="style-scope ytd-mini-channel-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return z$c=a},{mode:1});var B$c;var C$c=function(){return _.P.apply(this,arguments)||this};
_.z(C$c,_.P);C$c.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
var P7=C$c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],P7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],P7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],P7.prototype,"data",void 0);P7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],P7);
_.S(P7,"ytd-vertical-channel-section-renderer",function(){if(B$c!==void 0)return B$c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-channel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-vertical-channel-section-renderer">[[data.title]]</h2>\n<div id="items" class="style-scope ytd-vertical-channel-section-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return B$c=a},{mode:1});var D$c=function(){return _.P.apply(this,arguments)||this};
_.z(D$c,_.P);D$c.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
var Q7=D$c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Q7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],Q7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Q7.prototype,"data",void 0);Q7=_.U([_.Q({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Q7);
_.S(Q7,"ytd-browse-secondary-contents-renderer",function(){if(y$c!==void 0)return y$c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-secondary-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-secondary-contents-renderer">\n</div>');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
return y$c=a},{mode:1});var E$c;var F$c=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};a.notActive=!1;a.isConstrainedList=!1;return a};
_.z(F$c,_.P);_.f=F$c.prototype;
_.f.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}}}},"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",
noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.f.getPath=function(a,b){var c="data.tabs.#"+b+".";a.tabs[b].tabRenderer?c+="tabRenderer.":a.tabs[b].expandableTabRenderer&&(c+="expandableTabRenderer.");return c+"content.sectionListRenderer"};
_.f.computeDisplayedContent=function(a){this.unlinkPaths("content");if(a&&a.tabs)for(var b=a.tabs.length,c=0;c<b;c++){var d=a.tabs[c].tabRenderer||a.tabs[c].expandableTabRenderer;if(d.selected&&d.content)return this.linkPaths("content",this.getPath(a,c)),d.content}return null};
_.f.computeHasSecondaryColumnData=function(a){return!!a&&!!a.secondaryContents};
_.f.onRetrieveLocation=function(a,b){b.locationRetrieved(b.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);a.stopPropagation()};
_.f.onYtServiceRequestSent=function(a,b){_.w("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(b)};
_.f.onYtServiceRequestCompleted=function(a,b){_.w("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(b)};
_.f.onReplaceFeedContentAction=function(a){if(!_.w("replace_feed_content_action_killswitch")&&!this.notActive){var b;(a=(b=_.y(a,Y7c))==null?void 0:b.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(a)}};
_.f.handleServiceRequestActions=function(a){if(a=a.actions){a=_.h(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;((c=_.y(b,Y7c))==null?0:c.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.y(b,Y7c).items)}}};
var R7=F$c;R7.prototype.onYtServiceRequestCompleted=R7.prototype.onYtServiceRequestCompleted;R7.prototype.onYtServiceRequestSent=R7.prototype.onYtServiceRequestSent;R7.prototype.onRetrieveLocation=R7.prototype.onRetrieveLocation;_.U([_.H(_.TI),_.W("design:type",Object)],R7.prototype,"ytdGridStateAwareBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],R7.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],R7.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],R7.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],R7.prototype,"data",void 0);_.U([_.O({computed:"computeDisplayedContent(data)"}),_.W("design:type",Object)],R7.prototype,"content",void 0);
_.U([_.O({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],R7.prototype,"hasSecondaryColumnData",void 0);_.U([_.O({value:function(){return window.outerHeight>1024?3:2}}),
_.W("design:type",Number)],R7.prototype,"initialCount",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],R7.prototype,"pageSubtype",void 0);_.U([_.ir("ytd-section-list-renderer"),_.W("design:type",Object)],R7.prototype,"listRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],R7.prototype,"notActive",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],R7.prototype,"isConstrainedList",void 0);
_.U([_.O(),_.W("design:type",String)],R7.prototype,"responsiveSizing",void 0);_.U([_.M("yt-retrieve-location"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],R7.prototype,"onRetrieveLocation",null);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Nt]),_.W("design:returntype")],R7.prototype,"onYtServiceRequestSent",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Vt]),_.W("design:returntype")],R7.prototype,"onYtServiceRequestCompleted",null);R7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],R7);
_.S(R7,"ytd-two-column-browse-results-renderer",function(){if(E$c!==void 0)return E$c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-browse-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-browse-results-renderer"></div>\n<div id="secondary" class="style-scope ytd-two-column-browse-results-renderer">\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return E$c=a},{mode:2});var G$c;var H$c;var I$c=function(){var a=_.P.apply(this,arguments)||this;a.closeOnDismissButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);a.closeOnAcceptButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return a};
_.z(I$c,_.P);_.f=I$c.prototype;_.f.attached=function(){this.requestElementsPerRow()};
_.f.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[dismissBoundButtonTap_]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[acceptBoundButtonTap_]]"}}}}}};
_.f.onUpdateElementsPerRowAction=function(a){a&&this.elementsPerRow!==a&&(this.elementsPerRow=a)};
_.f.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.f.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.f.computeAlertStyle_=function(a){return a};
_.f.observerElementsPerRow=function(){this.elementsPerRow&&_.fr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.f.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.f.requestElementsPerRow=function(){_.io(this.hostElement,"yt-request-elements-per-row")};
var S7=I$c;S7.prototype.onIsVisibleChanged_=S7.prototype.onIsVisibleChanged_;S7.prototype.observerElementsPerRow=S7.prototype.observerElementsPerRow;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],S7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],S7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],S7.prototype,"actionHandlerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],S7.prototype,"data",void 0);_.U([_.O({value:6,reflectToAttribute:!0}),_.W("design:type",Number)],S7.prototype,"elementsPerRow",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],S7.prototype,"wrapButtons",void 0);_.U([_.O({value:_.Fi("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.W("design:type",Boolean)],S7.prototype,"isMusic",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.W("design:type",String)],S7.prototype,"alertStyle",void 0);_.U([_.O({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.W("design:type",Function)],S7.prototype,"dismissBoundButtonTap_",void 0);_.U([_.O({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.W("design:type",Function)],S7.prototype,"acceptBoundButtonTap_",void 0);_.U([_.N("elementsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],S7.prototype,"observerElementsPerRow",null);_.U([_.N("data.isVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],S7.prototype,"onIsVisibleChanged_",null);S7=_.U([_.wr({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],S7);
_.S(S7,"yt-alert-with-actions-renderer",function(){if(H$c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-with-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_with_actions_renderer.yt.alert.with.actions.renderer.css.js--\x3e<div id="content-wrapper" hidden="[[!data.isVisible]]" class="style-scope yt-alert-with-actions-renderer">\n  <div id="content" class="style-scope yt-alert-with-actions-renderer">\n    <yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope yt-alert-with-actions-renderer"></yt-icon>\n    <div id="text-content" class="style-scope yt-alert-with-actions-renderer">\n      <yt-formatted-string id="title" hidden$="[[!!data.title]]" text="[[data.title]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="actions" class="style-scope yt-alert-with-actions-renderer">\n    <div id="dismiss-button" hidden$="[[!!data.dismissButton]]" class="style-scope yt-alert-with-actions-renderer"></div>\n    <div id="action-buttons" hidden$="[[!!data.actionButtons]]" class="style-scope yt-alert-with-actions-renderer"></div>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;G$c===void 0&&(G$c=document.createElement("template"));var d=G$c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);H$c=a}a=H$c;return a},{mode:2});_.Ts(_.Rr(function(a){var b=_.Pl(),c=function(){return a.data().canvasPromoData},d=function(){var g;
return(g=a.data().bannerHeight)!=null?g:48};
_.Zu(b,function(){var g;return(g=a.data())==null?void 0:g.rendererContext},void 0,void 0,void 0,!0);
var e={};return _.q("yt-personal-greeting-view-model",{el:b,class:_.et("ytPersonalGreetingViewModelHost",a.className),style:_.ot({height:(0,_.CQ)(function(){return d()})})},_.q(_.Hu,{data:function(){return a.data().avatar}},{decoratedAvatarViewModel:function(g){return _.q(_.RK,{data:g.data,
className:_.et("ytPersonalGreetingViewModelAvatar")})}}),_.q(_.tt,{text:function(){var g;
return(c==null?void 0:(g=c())==null?void 0:g.headline)||a.data().greeting},
className:_.et("ytPersonalGreetingViewModelHeadline",(e.ytPersonalGreetingViewModelHeadlineSmall=function(){return d()===48},e))}))},"xh"),"yt-personal-greeting-view-model",{props:{data:_.VG,
className:_.VG}});var J$c=function(){var a=_.P.apply(this,arguments)||this;a.hidden=!1;a.isConstrainedList=!1;a.darkerDarkTheme=_.w("web_darker_dark_theme");a.responsiveSizing="COMPACT";a.attachedPlayers=_.w("kevlar_channel_trailer_multi_attach")?[]:void 0;a.player=null;a.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return a};
_.z(J$c,_.P);_.f=J$c.prototype;
_.f.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{c4TabbedHeaderRenderer:{component:"ytd-c4-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[fluidWidth]]"},noInjection:!0},pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",
isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",
tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},hashtagHeaderRenderer:{component:"ytd-hashtag-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.f.created=function(){var a=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){a.disposeMastheadAd()}]};
_.f.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new p8c(this.refresh,this.contents))};
_.f.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.f.activeChanged=function(){var a=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=a)};
_.f.tabsChanged=function(){var a=this,b,c,d,e;if(this.pageSubtype==="channels"||_.w("kevlar_tab_gestures_for_tabbed_header_data")&&(((b=this.data)==null?0:(c=b.header)==null?0:c.c4TabbedHeaderRenderer)||((d=this.data)==null?0:(e=d.header)==null?0:e.carouselHeaderRenderer)))this.tabGestures=new L6(this.contents,this.contents,this.hostElement,this.header,function(n){a.ytdReduxBehavior.dispatch(n)});
var g,k,m;b=(g=this.data)==null?void 0:(k=g.contents)==null?void 0:(m=k.twoColumnBrowseResultsRenderer)==null?void 0:m.tabs;this.header&&this.header.firstChild&&(this.header.firstChild.tabs=b);this.tabGestures&&this.tabGestures.tabsChanged(b)};
_.f.channelIdChanged=function(){if(this.tabGestures){var a,b,c,d=this.tabGestures,e=(a=this.data)==null?void 0:(b=a.header)==null?void 0:(c=b.c4TabbedHeaderRenderer)==null?void 0:c.channelId;e&&e!==d.currentChannelId&&(d.scrollPositionForTabs.clear(),d.currentChannelId=e,d.lastVisitedTabScrollPosition=void 0,d.tabsStartAtInPx=0)}};
_.f.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.f.engagementPanelsChanged=function(){var a=_.v().resolve(_.JJ);if(a){if(this.engagementPanels)for(var b=_.h(this.engagementPanels),c=b.next();!c.done;c=b.next()){var d=void 0;(c=(d=c.value.identifier)==null?void 0:d.tag)&&a.panelMap.delete(c)}this.engagementPanels=[];var e;b=_.h(((e=this.data)==null?void 0:e.panels)||[]);for(e=b.next();!e.done;e=b.next()){e=_.y(e.value,_.G6c);var g=c=void 0,k=void 0,m=void 0;if(d=((c=e)==null?void 0:c.targetId)||((g=e)==null?void 0:g.panelIdentifier)||((k=e)==null?
void 0:(m=k.identifier)==null?void 0:m.tag))g=c=void 0,(g=(c=a).registerPanelContent)==null||g.call(c,d,{engagementPanelSectionListRenderer:e}),this.engagementPanels.push(e)}}};
_.f.onStampFinished=function(){var a=this;_.Qm(this,function(){if(a.tabGestures){var b=a.tabGestures;if(b.scrollPositionNeedsUpdate){var c=_.v().resolve(_.Xi(_.Zt)),d;if((d=b.selectedTab)!=null&&d.title&&c&&(d=c.getCurrentPage())){if(b.scrollPositionForTabs.has(b.selectedTab.title)){var e,g;c=(g=(e=c.getCurrentPage())==null?void 0:e.clientHeight)!=null?g:0;e=b.scrollPositionForTabs.get(b.selectedTab.title);d.setScrollTop(e);c>e+100&&(b.scrollPositionNeedsUpdate=!1)}else d.setScrollTop(Math.min(b.lastVisitedTabScrollPosition!==
void 0?b.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,b.tabsStartAtInPx)),b.scrollPositionNeedsUpdate=!1;b.ytdReduxDispatch(P7c(!1))}}}})};
_.f.loadPage_=function(a){this.initCsi();a&&(this.data=a);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.f.getTitle=function(a){return this.pageSubtype=="home"?"":this.get("microformat.microformatDataRenderer.title",a)?this.get("microformat.microformatDataRenderer.title",a):this.get("header.c4TabbedHeaderRenderer.title",a)?this.get("header.c4TabbedHeaderRenderer.title",a):this.get("header.feedTabbedHeaderRenderer.title",a)?_.Wp(this.get("header.feedTabbedHeaderRenderer.title",a)):this.get("header.interactiveTabbedHeaderRenderer.title",a)?this.get("header.interactiveTabbedHeaderRenderer.title",a):this.get("header.hashtagHeaderRenderer.hashtag",
a)?_.Wp(this.get("header.hashtagHeaderRenderer.hashtag",a)):this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",a)?_.Wp(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
a)):""};
_.f.updateTitle=function(a){_.io(this.hostElement,"yt-update-title",this.getTitle(a))};
_.f.initCsi=function(){_.E7c(this.pageSubtype||"browse",["ol","cpt"])};
_.f.getPlayer=function(){if(_.w("kevlar_channel_trailer_multi_attach")){for(var a=_.h(this.attachedPlayers),b=a.next();!b.done;b=a.next())if(b=b.value,b.isConnected||_.Jg(this.hostElement,b))return b;return null}return this.player};
_.f.getPlayerContainer=function(){return null};
_.f.onPlayerAttached=function(a,b){_.w("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(b):this.player=b};
_.f.onPlayerDetached=function(a,b){_.w("kevlar_channel_trailer_multi_attach")?(a=this.attachedPlayers.indexOf(b),a<0||this.attachedPlayers.splice(a,1)):this.player=null};
_.f.getServiceTrackingParams=function(){var a,b;return((a=this.data)==null?void 0:(b=a.responseContext)==null?void 0:b.serviceTrackingParams)||[]};
_.f.setMastheadAd=function(a){a&&a.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=a&&a.mastheadAd};
_.f.dataChanged=function(){var a=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.u7c();_.Qm(this,function(){_.mo(a.hostElement,"ytd-update-grid-state-action")})};
_.f.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.f.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var a=this.data.alerts;return a&&a.find(function(b){return!!b.alertWithActionsRenderer})}};
_.f.computeGreetingData=function(){if(this.data&&this.data.alerts){var a=this.data.alerts;return a&&a.find(function(b){return!!b.personalGreetingViewModel})}};
_.f.computeHasC4TabbedHeaderRenderer=function(a){var b;return!!(a==null?0:(b=a.header)==null?0:b.c4TabbedHeaderRenderer)};
_.f.computeHasMemberHubProfileRenderer=function(a){var b;return!!(a==null?0:(b=a.header)==null?0:b.memberHubProfileRenderer)};
_.f.handleAlertCommand=function(a){this.get("alertCommand.alert.alertWithActionsRenderer",a)&&(a=_.y(a,Z7c),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",a.alert))};
_.f.handleYtPlaylistDeletionRedirect=function(a){a=this.get("playlistDeletionRedirectCommand.redirectEndpoint",a);_.io(this.hostElement,"yt-navigate",{endpoint:a})};
_.f.computeFluidWidth=function(a,b,c){if(b==="mini_app"||c)return!0;var d,e,g;a=a==null?void 0:(d=a.contents)==null?void 0:(e=d.twoColumnBrowseResultsRenderer)==null?void 0:(g=e.tabs)==null?void 0:g.find(function(n){var r;return n==null?void 0:(r=n.tabRenderer)==null?void 0:r.selected});
if(!a)return!1;var k,m;return!!((k=a.tabRenderer)==null?0:(m=k.content)==null?0:m.richGridRenderer)&&!["channel","channels","playables"].includes(b)};
_.f.computeHeaderFluidWidth=function(a){return a==="hashtag-landing-page"};
_.f.computeHasSidebar=function(a){var b;return!!(a.sidebar||((b=a.header)==null?0:b.playlistHeaderRenderer))};
_.f.computeHasPageHeaderSidebar=function(a){var b,c;return!!((b=a.header)==null?0:(c=b.pageHeaderRenderer)==null?0:c.enableSidebarView)};
_.f.computeUseUnifiedShowPageLayout=function(a){if(!a||this.pageSubtype!=="show"||!a.sidebar||!a.sidebar.playlistSidebarRenderer)return!1;a=a.sidebar.playlistSidebarRenderer;if(!a.items)return!1;for(var b=0;b<a.items.length;b++)if(_.y(a.items[b],c8c)){var c=void 0;return((c=_.y(a.items[b],c8c))==null?void 0:c.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.f.computeIsConstrainedList=function(a){return _.w("web_enable_constrained_list_subscriptions_channels")&&a==="subscriptions-channels"};
_.f.computeResponsiveSizing=function(a){return a==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.Um.Object.defineProperties(J$c.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?0:(b=a.header)==null?0:b.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var a,b;if(!((a=this.data)==null?0:(b=a.sidebar)==null?0:b.playlistSidebarRenderer))return!1;var c;return(c=this.data)!=null&&c.header?!1:!0}}});
_.Um.Object.defineProperties(J$c,{template:{configurable:!0,enumerable:!0,get:function(){if(s8c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-banner" class="style-scope ytd-browse"></div>\n<div id="personal-greeting" class="style-scope ytd-browse"></div>\n<div id="masthead-ad" class="style-scope ytd-browse"></div>\n<div id="header" class="style-scope ytd-browse"></div>\n<div id="alerts" class="style-scope ytd-browse"></div>\n\n<ytd-channel-legal-info-renderer data="[[data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" disable-upgrade$="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" hidden="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" class="style-scope ytd-browse">\n</ytd-channel-legal-info-renderer>\n<ytd-playlist-sidebar-renderer data="[[data.sidebar.playlistSidebarRenderer]]" disable-upgrade$="[[!useOldPlaylistSidebarRenderer]]" hidden="[[!useOldPlaylistSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-sidebar-renderer>\n<ytd-playlist-header-renderer data="[[data.header.playlistHeaderRenderer]]" disable-upgrade$="[[!usePlaylistHeaderRenderer]]" hidden="[[!usePlaylistHeaderRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-header-renderer>\n<ytd-settings-sidebar-renderer data="[[data.sidebar.settingsSidebarRenderer]]" disable-upgrade$="[[!data.sidebar.settingsSidebarRenderer]]" hidden="[[!data.sidebar.settingsSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-settings-sidebar-renderer>\n<template is="dom-if" if="[[hasPageHeaderSidebar]]" class="style-scope ytd-browse">\n    <yt-page-header-renderer class="page-header-sidebar style-scope ytd-browse" data="[[data.header.pageHeaderRenderer]]" disable-upgrade$="[[!hasPageHeaderSidebar]]" display-as-sidebar="" hidden="[[!hasPageHeaderSidebar]]">\n    </yt-page-header-renderer>\n</template>\n<ytd-two-column-browse-results-renderer data="[[data.contents.twoColumnBrowseResultsRenderer]]" disable-grid-state-aware="[[fluidWidth]]" is-constrained-list="[[isConstrainedList]]" not-active="[[hidden]]" page-subtype="[[pageSubtype]]" responsive-sizing="[[responsiveSizing]]" class="style-scope ytd-browse">\n</ytd-two-column-browse-results-renderer>\n<div id="survey" class="style-scope ytd-browse"></div>\n<div id="metadata" class="style-scope ytd-browse"></div>\n<div id="footer" class="style-scope ytd-browse"></div>\n<ytd-refresh id="refresh" class="style-scope ytd-browse"></ytd-refresh>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);s8c=a}a=s8c;return a}}});
var T7=J$c;T7.prototype.dataChanged=T7.prototype.dataChanged;T7.prototype.onPlayerDetached=T7.prototype.onPlayerDetached;T7.prototype.onPlayerAttached=T7.prototype.onPlayerAttached;T7.prototype.onStampFinished=T7.prototype.onStampFinished;T7.prototype.engagementPanelsChanged=T7.prototype.engagementPanelsChanged;T7.prototype.scrollAtTopChanged=T7.prototype.scrollAtTopChanged;T7.prototype.channelIdChanged=T7.prototype.channelIdChanged;T7.prototype.tabsChanged=T7.prototype.tabsChanged;
T7.prototype.activeChanged=T7.prototype.activeChanged;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],T7.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.aI),_.W("design:type",Object)],T7.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],T7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],T7.prototype,"ytdReduxBehavior",void 0);
_.U([_.H(_.I6.YtPageBehavior),_.W("design:type",Object)],T7.prototype,"ytPageBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],T7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.XI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],T7.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],T7.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],T7.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],T7.prototype,"hidden",void 0);_.U([_.O(),_.W("design:type",Object)],T7.prototype,"mastheadAdData",void 0);_.U([_.O({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.W("design:type",Object)],T7.prototype,"alertBannerData",void 0);_.U([_.O({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.W("design:type",Object)],T7.prototype,"greetingData",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],T7.prototype,"pageSubtype",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasC4TabbedHeaderRenderer(data)"}),_.W("design:type",Boolean)],T7.prototype,"hasC4TabbedHeaderRenderer",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.W("design:type",Boolean)],T7.prototype,"hasMemberHubProfileRenderer",void 0);
_.U([_.O({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],T7.prototype,"hasSidebar",void 0);_.U([_.O({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],T7.prototype,"hasPageHeaderSidebar",void 0);_.U([_.O({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],T7.prototype,"roundedContainer",void 0);
_.U([_.O({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],T7.prototype,"useUnifiedShowPageLayout",void 0);_.U([_.O({computed:"computeIsConstrainedList(pageSubtype)"}),_.W("design:type",Object)],T7.prototype,"isConstrainedList",void 0);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],T7.prototype,"usePlaylistHeaderRenderer",null);
_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],T7.prototype,"useOldPlaylistSidebarRenderer",null);_.U([_.O({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.W("design:type",Boolean)],T7.prototype,"fluidWidth",void 0);_.U([_.O({selector:function(a){return a.ui.scrollAtTop}}),
_.W("design:type",Boolean)],T7.prototype,"scrollAtTop",void 0);_.U([_.O({selector:_.mmc}),_.W("design:type",Boolean)],T7.prototype,"tabGesturesIsActive",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],T7.prototype,"darkerDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.W("design:type",Boolean)],T7.prototype,"disableHeaderFluidWidth",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.W("design:type",String)],T7.prototype,"responsiveSizing",void 0);_.U([_.ir("ytd-two-column-browse-results-renderer"),_.W("design:type",HTMLElement)],T7.prototype,"contents",void 0);_.U([_.ir("#header"),_.W("design:type",HTMLElement)],T7.prototype,"header",void 0);_.U([_.ir("ytd-refresh"),_.W("design:type",Object)],T7.prototype,"refresh",void 0);
_.U([_.N("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T7.prototype,"activeChanged",null);_.U([_.N("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T7.prototype,"tabsChanged",null);_.U([_.N("data.header.c4TabbedHeaderRenderer.channelId"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T7.prototype,"channelIdChanged",null);
_.U([_.N("scrollAtTop"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T7.prototype,"scrollAtTopChanged",null);_.U([_.O(),_.W("design:type",Object)],T7.prototype,"engagementPanels",void 0);_.U([_.N("data.panels"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T7.prototype,"engagementPanelsChanged",null);
_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T7.prototype,"onStampFinished",null);_.U([_.M("yt-player-attached"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Element]),_.W("design:returntype")],T7.prototype,"onPlayerAttached",null);_.U([_.M("yt-player-detached"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Element]),_.W("design:returntype")],T7.prototype,"onPlayerDetached",null);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T7.prototype,"dataChanged",null);T7=_.U([_.Q({is:"ytd-browse"})],T7);_.LH.registerService(_.T7a,T7);
_.Dg();
}catch(e){_._DumpException(e)}
try{
_.Cg("kevlar_main_module");
/*

 QRCode for JavaScript

 Copyright (c) 2009 Kazuhiko Arase

 URL: http://www.d-project.com/

 Licensed under the MIT license:
   http://www.opensource.org/licenses/mit-license.php

 The word "QR Code" is registered trademark of
 DENSO WAVE INCORPORATED
   http://www.denso-wave.com/qrcode/faqpatent-e.html
*/
var osc=function(a,b){return a<b?-1:a>b?1:0},pY=function(a,b){var c=0;
a=(0,_.tx)(String(a)).split(".");b=(0,_.tx)(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;c==0&&e<d;e++){var g=a[e]||"",k=b[e]||"";do{g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];k=/(\d*)(\D*)(.*)/.exec(k)||["","","",""];if(g[0].length==0&&k[0].length==0)break;c=osc(g[1].length==0?0:parseInt(g[1],10),k[1].length==0?0:parseInt(k[1],10))||osc(g[2].length==0,k[2].length==0)||osc(g[2],k[2]);g=g[3];k=k[3]}while(c==0)}return c},qY=function(a){if(!a)return"browse";
var b=a.page,c=a.url,d,e,g,k=(d=a.response)==null?void 0:(e=d.responseContext)==null?void 0:(g=e.webResponseContextExtensionData)==null?void 0:g.pageTheme;if(k)b=k.toLowerCase().replace(/_/g,"-");else if(b!=="watch"){var m,n;if((b==="browse"||b==="settings")&&((m=a.response)==null?0:(n=m.sidebar)==null?0:n.settingsSidebarRenderer))b="WEB_PAGE_TYPE_SETTINGS";else{var r,t;b==="browse"&&((r=a.response)==null?0:(t=r.metadata)==null?0:t.channelMetadataRenderer)?b="channel":c&&(b=_.hIa(c)||b)}}return b},
psc=function(){var a=_.Ji("yt.aba.att");
return a?a:_.tS.instance!==void 0?_.tS.instance.q1a.bind(_.tS.instance):null},qsc=function(a,b){var c;
return _.l(function(d){return(c=psc())?d.return(c(a,b,6E4)):d.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},rsc=function(a,b,c,d,e){b=b===void 0?[]:b;
e=e?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:e}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.ep(a),dialogMessages:b.map(function(g){return _.ep(g)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ep(c),serviceEndpoint:e}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.ep(d)}}}}}},ssc=function(a){var b=!!_.YF().queueProxy;
var c,d,e;a=a==null?void 0:(c=a.response)==null?void 0:(d=c.currentVideoEndpoint)==null?void 0:(e=d.watchEndpoint)==null?void 0:e.playlistId;return!(!b&&!a)},tsc=function(a,b){var c=_.xF();
if(ssc(a))return c.playlistWatchPageActivation=!0;switch(qY(b)){case "yts-products":return c.productDetailsPageActivation=!0;case "mini_app":return c.miniAppPageActivation=!0;case "playables":return c.playablesDestPageActivation=!0;default:return!1}},usc=function(a,b,c){for(var d=typeof a==="string"?a.split(""):a,e=a.length-1;e>=0;--e)e in d&&b.call(c,d[e],e,a)},vsc=function(a,b){b=_.taa(a,b);
b>=0&&_.waa(a,b)},wsc=function(a){return Array.prototype.concat.apply([],arguments)},xsc=function(a){var b=0;
b=b===void 0?0:b;if(!_.$b(a))throw _.eb("uint64");var c=typeof a;switch(b){case 512:switch(c){case "string":return _.Aba(a);case "bigint":return String((0,_.nc)(64,a));default:return _.yba(a)}case 1024:switch(c){case "string":return _.Bba(a);case "bigint":return _.Lb((0,_.nc)(64,a));default:return _.zba(a)}case 0:switch(c){case "string":return _.Aba(a);case "bigint":return _.Lb((0,_.nc)(64,a));default:return _.xba(a)}default:return _.Wb(b,"Unknown format requested type for int64")}},ysc=function(a){if(a==
null)return a;
if(typeof a==="bigint")return a>=0&&(0,_.zc)(a)?a=Number(a):(a=(0,_.nc)(64,a),a=(0,_.zc)(a)?Number(a):String(a)),a;if(_.$b(a))return typeof a==="number"?_.xba(a):_.Aba(a)},zsc=function(a){a!=null&&(a=a.JSC$6663_value_||"",a=typeof a==="string"?a:new Uint8Array(a));
return a},Asc=function(a){for(var b=_.Kd.apply(1,arguments),c=a[0],d=0;d<a.length-1;d++)c+=String(b[d]),c+=a[d+1];
b=document.implementation.createHTMLDocument("");d=b.createElement("style");b.head.appendChild(d);b=d.sheet;b.insertRule(c,0);if(b.cssRules.length===1&&(c=b.cssRules[0],c instanceof CSSStyleRule))return new _.de(c.cssText.replace(/</g,"\\3C "))},Bsc=function(a,b){if(/-[a-z]/.test(b))return null;
if(_.tdb&&a.dataset){if(_.kaa()&&!(b in a.dataset))return null;a=a.dataset[b];return a===void 0?null:a}return a.getAttribute("data-"+_.on(b))},Dsc=function(){var a=Csc;
_.Ji("yt.ads.biscotti.getId_")||_.Rj("yt.ads.biscotti.getId_",a)},Esc=function(a){_.Rj("yt.ads.biscotti.lastId_",a)},Gsc=function(){var a={};
for(_.vj=new Fsc(a.handleError===void 0?_.Cl:a.handleError,a.logEvent===void 0?_.xl:a.logEvent);_.wj.length>0;)switch(a=_.wj.shift(),a.type){case "ERROR":_.vj.logError(a.payload);break;case "EVENT":_.vj.logEvent(a.eventType,a.payload)}},Hsc=function(a,b,c){return _.Apa(function(d){return c?d.userIdentifier!==void 0&&!a.includes(d.userIdentifier)&&c.includes(d.publicName):d.userIdentifier!==void 0&&!a.includes(d.userIdentifier)},b)},Isc=function(a){var b,c;
return _.l(function(d){if(d.nextAddress==1)return b=_.oj("YtIdbMeta hasAnyMeta other"),_.p(d,_.Apa(function(e){return e.userIdentifier!==void 0&&e.userIdentifier!==b},a),2);
c=d.yieldResult;return d.return(c.length>0)})},Ksc=function(a,b){Jsc||(Jsc=_.zk.addLowPriorityJob(function(){var c,d,e,g,k;
return _.l(function(m){switch(m.nextAddress){case 1:return _.p(m,_.Sj(),2);case 2:c=m.yieldResult;if(!c)return m.return();d=!0;_.pe(m,3);return _.p(m,Hsc(a,c,b),5);case 5:e=m.yieldResult;if(!e.length){d=!1;m.jumpTo(6);break}g=e[0];return _.p(m,_.Kj(g.actualName),7);case 7:return _.p(m,_.Nj(g.actualName,c),6);case 6:_.Jj(m,4);break;case 3:k=_.te(m),_.xj(k),d=!1;case 4:_.zk.cancelJob(Jsc),Jsc=0,d&&Ksc(a,b),_.ue(m)}})}))},Lsc=function(){var a;
return _.l(function(b){return b.nextAddress==1?_.p(b,_.Sj(),2):(a=b.yieldResult)?b.return(Isc(a)):b.return(!1)})},Msc=function(a){var b=100;
b=b===void 0?500:b;var c,d,e,g,k,m;return _.l(function(n){return n.nextAddress==1?(c=_.Fi("INNERTUBE_CONTEXT_CLIENT_NAME",0),d=[c,(0,_.Uj)()-2592E6],e=[c,(0,_.Uj)()],g=IDBKeyRange.bound(d,e),_.p(n,_.$ra(a),2)):n.nextAddress!=3?(k=n.yieldResult,m=[],_.p(n,_.Mj(k,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(r){m.length=0;return _.Vj(r.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:g,direction:"prev"},function(t){if(t.getValue()&&m.length<b)return m.push(t.getValue()),
t.delete().then(function(){return t.continue()})})}),3)):n.return(m)})},Nsc=function(){var a;
return _.l(function(b){if(b.nextAddress==1)return _.p(b,_.Sj(),2);a=b.yieldResult;if(!a||!_.pj()&&!_.w("nwl_init_require_datasync_id_killswitch")||!_.ssa())return b.jumpTo(0);_.usa=!0;_.tsa.isNwlInitialized=_.usa;return _.p(b,_.Enb().awaitInitialization(),0)})},rY=function(a,b){_.Ksa[a]=!0;
var c=_.Zk();c&&c.publish.apply(c,arguments);_.Ksa[a]=!1},Psc=function(){if(_.ora()&&!Osc){var a=function(c){c=c.data;
if(c.op==="serializedGelBatch"){var d=_.Lta.get(c.key);d&&(_.Nta(c.serializedBatch,d.client,d.resolve,d.networklessOptions,d.isIsolated,d.useVSSEndpoint,d.dangerousLogToVisitorSession,d.requestsOutstanding),_.Lta.delete(c.key))}},b=_.nra();
b&&(b.addEventListener("message",a),b.onerror=function(){_.Lta.clear()});
Osc=!0}},sY=function(){this.relativeTimeStart_=_.rx()},Qsc=function(a,b){a!=null&&this.append.apply(this,arguments)},Rsc=function(){return _.In("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},Ssc=function(a,b,c){c=c===void 0?!1:c;
var d,e,g,k,m;return _.l(function(n){switch(n.nextAddress){case 1:_.mj("SOCS",a,34128E3,"youtube.com",!0);if(_.Ax)return e=fetch(b,{method:"POST",mode:_.Rn(b),credentials:_.Qn(b),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),g=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.Rn("/upgrade_visitor_cookie?eom=1"),credentials:_.Qn("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.p(n,Promise.all([e,g]).then(function(r){return r[1]}),5);
fetch(b,{method:"POST",mode:_.Rn(b),credentials:_.Qn(b),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.p(n,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.Rn("/upgrade_visitor_cookie?eom=1"),credentials:_.Qn("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:d=n.yieldResult;n.jumpTo(3);break;case 5:d=k=n.yieldResult;case 3:if(!d.ok)throw Error("qf");return _.p(n,d.text(),7);case 7:m=n.yieldResult,
!m.includes('"state_switch":true')&&!c||m.includes("skip_reload_for_test")||window.location.reload(),_.ue(n)}})},Tsc=function(a){return _.l(function(b){return b.nextAddress==1?_.p(b,Ssc(a.socsCookie,a.savePreferenceUrl,!0),2):b.return()})},Usc=function(a){return _.l(function(b){return b.nextAddress==1?_.p(b,Ssc(a.socsCookie,a.savePreferenceUrl),2):b.return()})},Wsc=function(a){a=a.xhr.responseText;
if(!_.na(a,")]}'"))throw new tY;a=JSON.parse(a.substr(4));if((a.type||1)>1)throw new tY;a=a.id;Esc(a);uY=_.$E(a);Vsc(18E5,2);return a},Ysc=function(a,b){b=new Xsc(b);
Esc("");uY=_.HGb(b);a>0&&Vsc(12E4,a-1);throw b;},Vsc=function(a,b){_.dj(function(){_.IBa().then(Wsc,function(c){return Ysc(b,c)}).thenCatch(_.Gy)},a)},Csc=function(){var a=_.SBa();
if(a!==void 0)return _.On(a);uY||(uY=_.IBa().then(Wsc).thenCatch(function(b){return Ysc(2,b)}));
return uY},Zsc=function(){var a=document;
return _.Ka(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})},$sc=function(a){a.addEventListener("click",function(b){var c=b.target;
c&&c.getAttribute("href")&&(c=c.getAttribute("href"),_.Td(window,c,"_blank"),b.preventDefault(),b.stopImmediatePropagation())})},atc=function(a){var b,c,d,e=(d=(c=((b=a.mainDownloadsListEntity)!=null?b:{})[_.oFa])==null?void 0:c.refresh)!=null?d:"",g;
a=(g=a.refresh)==null?void 0:g[e];e=a!=null?a:{};return(e==null?0:e.refreshTime)?Number(e==null?void 0:e.refreshTime):0},btc=function(a,b){var c=_.Cp(a);
return b.every(function(d){var e;d=d==null?void 0:(e=d.playbackDataEntity)==null?void 0:e.key;if(!d)return!1;e=_.mp(_.jp(d).entityId,"mainVideoEntity");return!!c[e]})},ctc=function(a){a=_.yp(a.entities);
return _.CEa(a).length},dtc=function(a,b){if(b){var c;
a=(c=_.np(a.entities,"downloadQualityPickerEntity",b))!=null?c:void 0}else a=void 0;return a},gtc=function(){etc||(_.Up=_.jGa,etc=new ftc);
return etc},htc=function(a){var b=document.getElementsByTagName("ytd-enforcement-message-view-model");
b.length===0||getComputedStyle(b[0]).display==="none"?a(0,"p.h_"):a(1,"p.h_")},vY=function(a){var b,c;
(a=(c=_.y(a==null?void 0:a.commandMetadata,_.co))==null?void 0:c.url)&&(b=_.hIa(a));return b},itc=function(){wY=0;
var a=[_.tq(!0)];xY&&_.mo(xY,"yt-window-resized",a)},jtc=function(){wY||(wY=_.zk.addLowPriorityJob(itc,200))},ltc=function(){yY=0;
ktc=_.Ycb(document);var a=[ktc];xY&&_.mo(xY,"yt-window-scrolled",a)},mtc=function(){yY||(yY=_.zk.addLowPriorityJob(ltc,200))},otc=function(a){a=a===void 0?null:a;
ntc.push(_.Vk(window,"resize",jtc));ntc.push(_.Vk(window,"scroll",mtc));a&&(xY=a)},ptc=function(a){_.l(function(b){if(b.nextAddress==1)return _.p(b,a.delete("yt-appshell-assets"),2);
_.ue(b)})},qtc=function(a){return _.Lj((0,_.ZLb)(),a)},stc=function(){var a;
_.l(function(b){return b.nextAddress==1?_.p(b,zY.getInstance(),2):(a=b.yieldResult)?_.p(b,rtc(a),0):b.jumpTo(0)})},utc=function(){var a;
_.l(function(b){return b.nextAddress==1?_.p(b,AY.getInstance(),2):(a=b.yieldResult)?_.p(b,ttc(a),0):b.jumpTo(0)})},vtc=function(a){ptc(a);
stc();utc()},wtc=function(a){var b,c;
return _.l(function(d){if(d.nextAddress==1)return _.p(d,_.JIa(a),2);if(b=d.yieldResult){var e;a:{if(b.headers&&(e=b.headers.get("date"))&&(e=Date.parse(e),!isNaN(e))){e=Math.round((0,_.Uj)()-e);break a}e=-1}c=e;if(c>-1)return d.return(c)}return d.return(-1)})},xtc=function(){var a=_.ja.caches,b=_.Gi("IS_SHELL_LOAD"),c,d;
_.l(function(e){if(e.nextAddress==1)return c=-1,b?_.p(e,wtc(a),3):(d=_.Eo(),c=Math.round((0,_.Uj)()-d),e.jumpTo(2));e.nextAddress!=2&&(c=e.yieldResult);c>=0&&c<2147483648&&_.Jo({appInstallDataAgeMs:c});_.ue(e)})},ytc=function(a){var b=_.Mg(_.ja.location.href),c={};
"absolute_experiments forced_experiments expflag conditional_experiments client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url build mloader debugjs".split(" ").forEach(function(d){var e=b.JSC$7876_queryData_.getValues(d);if(e==null?0:e.length)c[d]=e});
return _.hf(a,new Map(Object.entries(c)))},ztc=function(a){a=a.match(/(.*)::.*::.*/);
if(a!==null)return a[1]},Atc=function(a){if(_.aJa()){var b=Object.keys(window.localStorage);
b=_.h(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=ztc(c);d===void 0||a.includes(d)||self.localStorage.removeItem(c)}}},Btc=function(){if(!_.aJa())return!1;
var a=_.oj(),b=Object.keys(window.localStorage);b=_.h(b);for(var c=b.next();!c.done;c=b.next())if(c=ztc(c.value),c!==void 0&&c!==a)return!0;return!1},Ctc=function(a){return _.gY("NotificationsDisabled",a)},Dtc=function(){return Notification.permission!="granted"?Promise.resolve():_.nmc().then(function(a){return a?a.pushManager.getSubscription().then(function(b){if(b)return Promise.resolve();
b={userVisibleOnly:!0,applicationServerKey:_.cb("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return a.pushManager.subscribe(b).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},Etc=function(a){return _.nmc().then(function(b){if(!b||!b.active)return Promise.reject(new _.qj("serviceworker.postMessage",a,b));
try{return b.active.postMessage(a),Promise.resolve()}catch(c){return Promise.reject(c)}})},Ftc=function(){Etc({type:"notifications_register",
data:_.Fi("ID_TOKEN")})},Htc=function(){var a={isWide:_.lj.get("wide","0")==="1"},b=_.yo();
if(b=b.getFlag(165)||b.getFlag(174))a.theme=_.Jq(!0);if(_.sJa()){var c=_.Iq()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";a.systemTheme=c}!b&&_.w("parent_tools_enable_app_settings")&&_.Oi(window.location.href).theme!==void 0&&(a.theme=_.Jq());if((b=BY)?!_.Cf.equals(b,a):a)b={currentValue:a},Gtc&&(b.timeSinceLastSnapshotSecs=Math.round(((0,_.Uj)()-Gtc)/1E3)),BY&&(b.previousValue=BY),_.xl("appSettingsCaptured",b),BY=a,Gtc=(0,_.Uj)()},Itc=function(){if(!_.Gi("LOGGED_IN"))return Promise.resolve(!1);
var a=_.aj("service_worker_push_force_notification_prompt_tag");return a?_.kX("PromptTags").then(function(b){if(!b)return!0;var c=[];try{c=JSON.parse(b)}catch(d){return!1}return c&&c.indexOf(a)==-1}):Promise.resolve(!1)},Jtc=function(){var a=_.$i("service_worker_push_prompt_delay_microseconds");
return a?_.kX("PromptTime").then(function(b){return Promise.resolve(Date.now()-a>(b||0))}):Promise.resolve(!0)},Ktc=function(){var a=_.$i("service_worker_push_logged_out_prompt_watches");
return a==-1?Promise.resolve(!1):_.kX("WatchCount").then(function(b){return b>=a})},Ltc=function(){var a=_.cu(document,"yt-push-prompt-modal-bg");
a&&_.qg(a)},Mtc=function(){return _.$i("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.kX("PromptCount").then(function(a){a||(a=0);
return Promise.resolve(a<_.$i("service_worker_push_prompt_cap"))})},Ntc=function(a){return _.Gi("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.Gi("LOGGED_IN")&&(a===void 0?0:a)?Itc().then(function(b){if(b)return!0;
b=[Mtc(),Jtc()];_.Gi("LOGGED_IN")||b.push(Ktc());return Promise.all(b).then(function(c){return c.every(function(d){return d})})}):Promise.resolve(!1)},Otc=function(){_.kX("PromptCount").then(function(a){return _.gY("PromptCount",a+1)}).then(function(){return _.gY("PromptTime",Date.now())}).then(function(){var a=_.aj("service_worker_push_force_notification_prompt_tag");
if(a)return _.kX("PromptTags").then(function(b){var c=[];if(b)try{c=JSON.parse(b)}catch(d){return!1}c||(c=[]);c.push(a);return _.gY("PromptTags",JSON.stringify(c))})})},Qtc=function(){Ptc||Ltc()},Rtc=function(a){a.style.zIndex=2147483648;
a.style.pointerEvents="auto";a.style.backgroundColor="rgba(0, 0, 0, 0.6)";a.style.width="100%";a.style.height="100vh";a.style.position="absolute";a.style.top="0";a.style.left="0";a.style.border="none"},Stc=function(){var a=_.cu(document,"yt-push-prompt-modal-bg");
Ptc=_.w("service_worker_push_prompt_modal_ignore_click");a?Rtc(a):(a=_.Sy("div",{id:"yt-push-prompt-modal-bg"}),Rtc(a),document.body.appendChild(a),_.Gsa(document,"click",Qtc))},Ttc=function(){var a=arguments;
_.w("service_worker_push_prompt_modal_enable")&&Stc();return Notification.requestPermission().then(function(b){Ltc();var c=document.getElementById("ticker");c&&(c.className=c.classList.remove("show"));if(b=="granted")return Dtc().then(function(){Ctc(!1);Ftc();return Promise.resolve(!0)});
b=="denied"&&Ftc();return Promise.resolve(!1)}).catch(function(){Ltc();
return Promise.reject.apply(Promise,_.De(a))})},Utc=function(a){a=a===void 0?!1:a;
var b=_.xJa().client;if(b&&b.browserVersion){var c=b.browserVersion,d=b.browserName=="CHROME"&&pY(c,"50.0.0")<0;b=b.browserName=="OPERA"&&pY(c,"42.0.0")<0;if(d||b)return Promise.resolve()}return _.qmc().then(function(e){if(!e)return Promise.resolve();e=Dtc().then(function(){return Etc({type:"notifications_check_registration",data:_.Fi("ID_TOKEN")})});
return Notification.permission!="default"?e.catch(function(){}):e.then(function(){return Ntc(a)}).then(function(g){if(g)return Otc(),Ttc().then(function(){})}).catch(function(){})})},Vtc=function(a){return _.omc(a)?Utc():Promise.resolve()},Wtc=function(a){var b=a.installing||a.waiting;
return a.active||!b?Promise.resolve(a):new Promise(function(c){var d=function(e){e=e.target;if(e.state==="activated"||e.state==="redundant")b.removeEventListener("statechange",d),c(a)};
b.addEventListener("statechange",d)})},Xtc=function(){var a=new _.qBa("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.Bw(a,{mainAppWeb:_.Nq()});var b=_.sMb;_.w("service_worker_forward_exp_params")&&(b=ytc(b));try{var c=_.AJa(b).catch(function(){_.Cw(a,"FAILURE");return new Promise(function(){})});
_.w("service_worker_push_enabled")&&c.then(function(d){_.Cw(a,"SUCCESS");return d}).then(Wtc).then(Vtc)}catch(d){if(_.Cw(a,"FAILURE"),d.name!=="SecurityError")throw d;
}},Ytc=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&Xtc()},Ztc=function(a,b){var c={};
b&&(c.serializedYpcFamilyCreateLoggingParams=b);_.xl(a,c);_.Al()},$tc=function(a,b){var c={};
c.serializedYpcRefundFlowLoggingParams=b;a&&(c.eventType=a);_.xl("ypcRefundFlowEvent",c);_.Al()},auc=function(a){a&&_.CJa("transactionFlowSucceeded",a)},buc=function(a){a&&_.NW("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",a,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},cuc=function(a){var b,c,d,e,g,k,m;
_.l(function(n){if(n.nextAddress==1)return _.p(n,_.YRa(),2);if(n.nextAddress!=3){if(!n.yieldResult)return n.return(!1);b=[];return _.p(n,_.Zs.keys(),3)}c=n.yieldResult;d=_.h(c);for(e=d.next();!e.done;e=d.next())g=e.value,k=_.WRa(g),m=k.datasyncId,!m||a.includes(m)||b.push(_.Zs.delete(g));return n.return(Promise.all(b).then(function(r){return r.some(function(t){return t})}))})},duc=function(){var a,b,c,d,e,g,k;
return _.l(function(m){if(m.nextAddress==1)return _.p(m,_.YRa(),2);if(m.nextAddress!=3){if(!m.yieldResult)return m.return(!1);a=_.oj("cache contains other");return _.p(m,_.Zs.keys(),3)}b=m.yieldResult;c=_.h(b);for(d=c.next();!d.done;d=c.next())if(e=d.value,g=_.WRa(e),(k=g.datasyncId)&&k!==a)return m.return(!0);return m.return(!1)})},euc=function(){var a=_.v().resolve(_.Xi(_.DVb));
return a?a.getCurrentTime():0},fuc=function(){var a,b,c,d,e,g,k,m,n,r,t,u,x,A;
return _.l(function(C){switch(C.nextAddress){case 1:a={},b=_.SUa(),c=_.h(Object.entries(b)),d=c.next();case 4:if(d.done){C.jumpTo(3);break}e=d.value;g=_.h(e);k=g.next().value;m=g.next().value;n=k;r=m;if(!r){C.jumpTo(5);break}return _.p(C,r(),8);case 8:a[n]=C.yieldResult;case 5:d=c.next();C.jumpTo(4);break;case 2:t=_.h(void 0),u=t.next();case 9:if(u.done){C.jumpTo(3);break}x=u.value;A=b[x];if(!A){C.jumpTo(10);break}return _.p(C,A(),13);case 13:a[x]=C.yieldResult;case 10:u=t.next();C.jumpTo(9);break;
case 3:return C.return(a)}})},guc=function(){var a;
_.l(function(b){if(b.nextAddress==1)return _.p(b,fuc(),2);a=b.yieldResult;return _.p(b,navigator.clipboard.writeText(JSON.stringify(a,null,2)),0)})},huc=function(a,b){return _.np(a.entities,"superThanksSelectedTierEntity",b)},iuc=function(a){var b;
return(b=a.sharedUi)==null?void 0:b.currentPageType},juc=function(a,b){return{popup:{searchSuggestionReportDialog:{searchQuery:a,
title:_.vo("SBOX_INAPPROPRIATE_TITLE"),suggestions:b,categoryLabel:_.vo("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.vo("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.vo("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.vo("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.vo("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.vo("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.vo("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.vo("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.vo("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.vo("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},kuc=function(a){var b,c,d,e,g,k,m,n,r,t,u,x,A,C,F,J,I,R,da;
return _.l(function(V){switch(V.nextAddress){case 1:return _.p(V,_.rp(),2);case 2:return(b=V.yieldResult)?_.p(V,_.I5a(b),3):V.return();case 3:c=V.yieldResult;if(!c)return V.return();e=((d=c.offlineVideos)==null?void 0:d.length)||0;k=((g=c.offlinePlaylists)==null?void 0:g.length)||0;if(e===0&&k===0)return V.return();m=0;if(c.offlineVideos)for(n=_.h(c.offlineVideos),r=n.next();!r.done;r=n.next())t=r.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===t.videoState&&(m+=1);a.offline_videos_count=e.toString();_.w("kevlar_log_offline_current_network_type_ks")||
(a.offline_current_network_type=(u=_.apa())!=null?u:"CONN_INVALID");_.w("kevlar_log_updated_time_for_smart_downloads")&&(x=_.Yp().getState().entities,A=_.Ep(x),C=atc(x),a.offline_smart_downloads_last_sync_time_ms=A.toString(),a.offline_smart_downloads_next_sync_time_ms=C.toString());a.offline_videos_playable=m.toString();a.offline_playlists_count=k.toString();if(!_.w("woffle_used_state_report")){V.jumpTo(4);break}c.offlineVideos&&(F=c.offlineVideos.reduce(function(fa,aa){aa.downloadedBytes&&(fa+=
Number(aa.downloadedBytes));return fa},0).toString())&&(a.offline_used_disk_space_bytes=F);
if(!((J=navigator)==null?0:(I=J.storage)==null?0:I.estimate)){V.jumpTo(4);break}return _.p(V,navigator.storage.estimate(),6);case 6:R=V.yieldResult,a.offline_free_disk_space_bytes=(((da=R)==null?void 0:da.quota)||0).toString();case 4:a.offline_client_state=JSON.stringify(c),_.ue(V)}})},luc=function(a){a=a.match(/(.*)::.*::.*/);
if(a!==null)return a[1]},muc=function(a){if(_.C6a()){var b=Object.keys(window.sessionStorage);
b=_.h(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=luc(c);d===void 0||a.includes(d)||self.sessionStorage.removeItem(c)}}},nuc=function(){if(!_.C6a())return!1;
var a=_.oj(),b=Object.keys(window.sessionStorage);b=_.h(b);for(var c=b.next();!c.done;c=b.next())if(c=luc(c.value),c!==void 0&&c!==a)return!0;return!1},CY=function(a,b,c){(_.w("desktop_keyboard_shortcut_usage_log")||c&&_.w("web_shorts_keyboard_shortcut_usage_log"))&&(b?_.mY.get(a):_.lY.get(a))&&(a=b?_.oY.get(a):_.nY.get(a))&&_.Xo(_.En(),a)},ouc=function(a,b){b.stack&&(a.stack+="\n"+b.stack);
return a},ruc=function(a){var b=DY(a,"Content-Type");
if(!b)return null;b=b.toLowerCase();if(b.startsWith("application/json"))return b.startsWith("application/json+protobuf")?new puc:new _.pD;if(b.startsWith("application/x-protobuf")){a=DY(a,"Content-Transfer-Encoding");if(!a)return new EY;if(a.toLowerCase()=="base64")return new quc}return null},Auc=function(a,b,c,d){var e=new suc(function(m,n){return tuc.has(n)?m.sentinel==="gal"&&m.event!==void 0:!1},function(m){m.event?(m=uuc(m.event),m=!m||vuc(d,m)?!0:_.Gx(a.lastEvent,FY,2,GY)?!_.Gx(m,HY,1,GY)&&
!_.Gx(m,FY,2,GY):!_.Gx(m,HY,1,GY)&&!_.Gx(m,FY,3,GY)):m=!0;
return m});
c=_.hf(a.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",wuc(c)]]));if(a.nestedOrigins!==void 0)for(var g=_.h(a.nestedOrigins),k=g.next();!k.done;k=g.next())c=_.hf(c,new Map([["origin",k.value]]));return xuc(e,c,b).then(function(m){m=yuc(m.event);if(_.Gx(m,HY,1,GY)){var n,r=(n=_.Xx(m,HY,1,GY))==null?void 0:_.Ux(n,2);r&&d.JSC$16927_logErrorEvent(zuc(r));n=_.Xx(m,HY,1,GY);_.Ux(n,2)===4?(m=_.Xx(m,HY,1,GY),m={statusCode:11,statusMessage:_.Tx(m,
3)}):(m=_.Xx(m,HY,1,GY),m={statusCode:12,statusMessage:_.Tx(m,3)});return m}_.Gx(m,FY,3,GY)?(m=_.Xx(m,FY,3,GY),m={statusCode:1,consentLanguageKeys:_.Tx(m,2)}):m={statusCode:1};return m}).catch(function(m){return m.errorCode!==void 0?{statusCode:m.errorCode,
statusMessage:m.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},Euc=function(a){var b={};
if(a===void 0||a===null)return b;a.getToken()!==void 0&&Buc(a.getToken())&&Buc(a.getToken()).length>0&&(b.scopes=new Set(Buc(a.getToken())));a.getToken()!==void 0&&Cuc(a.getToken())&&Cuc(a.getToken()).length>0&&(b.capabilities=new Set(Cuc(a.getToken())));_.Tx(a,3)!==void 0&&(b.consistencyKey=_.Tx(a,3));a.getName()!==void 0&&a.getName()!==""&&(b.linkName=a.getName());_.Fx(a,Duc,4)&&(a=_.Xj(a,Duc,4),a=Object.assign({},_.Tx(a,1)&&{userId:_.Tx(a,1)},_.Tx(a,2)&&{displayName:_.Tx(a,2)},_.Tx(a,3)&&{email:_.Tx(a,
3)},_.Tx(a,5)&&{username:_.Tx(a,5)},_.Tx(a,4)&&{profilePicture:_.Tx(a,4)}),b.profile=a);return b},Fuc=function(a,b){var c=a.flowParams;
return{serviceId:c.serviceId,sessionId:c.sessionId,currentFlow:a.currentFlow,googleScopesString:b,linkingSessionSerialized:a.session.serialize(),consentLanguageKeys:c.consentLanguageKeys,callerState:a.callerState,dynamicUrlParameters:c.dynamicUrlParameters,partnerConfigMinReadTimestamp:c.partnerConfigMinReadTimestamp}},Kuc=function(a){var b=a.googleScopes!==void 0?Array.from(a.googleScopes).join(","):"";
Guc(Fuc(a,b));b=Huc(a);return b===null?Promise.resolve(Iuc):b.start().then(function(c){var d,e=(d=c.link)==null?void 0:d.consistencyKey;return c.statusCode===1&&a.googleScopes!==void 0&&a.googleScopes.size>0&&e!==void 0?(d=a.flowParams,Juc(d.serviceId,d.sessionId,a.googleScopes,e,d.galService,a.config,c)):c})},Luc=function(a){var b=Huc(a);
return b===null?Promise.resolve(IY({statusCode:7,statusMessage:"Failed to create flow object"},a.callerState)):b.complete().then(function(c){var d,e=(d=c.link)==null?void 0:d.consistencyKey;return c.statusCode===1&&a.googleScopes!==void 0&&a.googleScopes.size>0&&e!==void 0?(d=a.flowParams,Juc(d.serviceId,d.sessionId,a.googleScopes,e,d.galService,a.config,c)):IY(c,a.callerState)},function(c){return IY({statusCode:12,
statusMessage:"Failed to complete the flow: "+c.message},a.callerState)})},Juc=function(a,b,c,d,e,g,k){return Muc(e,{serviceId:a,
sessionId:b,googleScopes:c,consistencyKey:d}).then(function(){return k},function(m){return e.deleteLink({serviceId:a,
sessionId:b,accountLinkingEntryPoint:g.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+m.message}},function(n){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+n.message}})})},Huc=function(a){switch(a.currentFlow){case 1:var b=a.flowParams;
a=_.Xj(a.session,Nuc,1);return JY.createOAuthFlow(b,a);case 2:case 3:return b=a.flowParams,a=_.Xj(a.session,Ouc,6),KY.createStreamlinedFlow(b,a);default:return null}},Puc=function(a,b){a===2&&(a=3);
var c=0;LY.indexOf(a)!==-1&&(c=LY.indexOf(a)+1);for(a=c;a<LY.length;a++)if(b.has(LY[a]))return LY[a]},Suc=function(a){var b=a.serviceId;
var c=a.sessionId;var d=a.config;var e=a.galService;var g=a.capabilities;var k=a.scopes;var m=a.loginHint;var n=a.callerState;var r=a.consentLanguageKeys;var t=a.linkName;var u=a.dynamicUrlParameters;var x=a.partnerConfigMinReadTimestamp;a=d.dataUsageNoticeConfig?d.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return e.startLinkingSession({serviceId:b,sessionId:c,capabilities:g,scopes:k,loginHint:m,callerState:n,supportedFlows:Quc(d.supportedFlows),completionUrl:d.completionUrl,accountLinkingEntryPoint:d.accountLinkingEntryPoint,
consentLanguageKeys:r,dataUsageNoticeConfig:a,linkName:t,dynamicUrlParameters:u,partnerConfigMinReadTimestamp:x}).then(function(A){return new Ruc(b,c,d,e,A,void 0,n,r,u,x)})},Xuc=function(a,b,c){a:{var d=new Tuc;
if(d.storage!==null)try{var e=d.storage.get("SAVED_SESSION");if(e===void 0){var g=null;break a}if(e.serviceId===a){g=e;break a}}catch(k){}g=null}if(g===null)return Promise.resolve({statusCode:2});Uuc(a);d=Vuc(g.linkingSessionSerialized);return Wuc(new Ruc(a,g.sessionId,b,c,d,g.googleScopesString!==""&&g.googleScopesString!==void 0?new Set(g.googleScopesString.split(",")):void 0,g.callerState,g.consentLanguageKeys,g.dynamicUrlParameters,g.partnerConfigMinReadTimestamp),g.currentFlow,g.consentLanguageKeys)},
Guc=function(a){var b=new Tuc;
b.storage!==null&&b.storage.set("SAVED_SESSION",a)},Uuc=function(a){var b=new Tuc;
if(b.storage!==null){var c=b.storage.get("SAVED_SESSION");c!==void 0&&c.serviceId===a&&b.storage.remove("SAVED_SESSION")}},Quc=function(a){var b=new Set;
a=_.h(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c!==1&&Yuc.has(c)&&b.add(Yuc.get(c));return b},IY=function(a,b){b!==void 0&&(a.callerState=b);
return a},Zuc=function(a){switch(a){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},bvc=function(){var a={timeout:5E3};
a=a===void 0?{}:a;return $uc!=null?$uc:$uc=avc(a)},cvc=function(){return new Promise(function(a,b){window.gapi.load("client",{callback:a,
onerror:b})})},avc=function(a){a=a===void 0?{}:a;
var b;return _.l(function(c){if(c.nextAddress==1){if((b=window.gapi)&&b.client&&b.client.load)c=c.return(b);else{var d=_.xd("https://apis.google.com/js/api.js");c=_.p(c,_.QA(d,a),2)}return c}if(c.nextAddress!=3){b=window.gapi;if(!b)throw Error("ak");return b.client&&b.client.load?c.jumpTo(3):_.p(c,cvc(),3)}return c.return(b)})},evc=function(a,b){b=b===void 0?0:b;
var c=a.auth2.getAuthInstance().currentUser.get(),d=c.getAuthResponse(!0);if(d&&d.expires_at-Date.now()<b){if(dvc.has(a))return dvc.get(a);b=Promise.resolve(c.reloadAuthResponse()).finally(function(){dvc.delete(a)});
dvc.set(a,b);return b}return Promise.resolve()},fvc=function(a,b){var c;
return a.client.init({apiKey:b.apiKey,clientId:b.clientId,scope:b.scope,discoveryDocs:b.discoveryDocs,hostedDomain:b.hostedDomain,fetchBasicProfile:(c=b.fetchBasicProfile)!=null?c:!0})},gvc=function(a){if(a.queryParams!=null){var b={},c;
for(c in a.queryParams)a.queryParams[c]!==void 0&&(b[c]=a.queryParams[c]);a.queryParams=b}},jvc=function(a){return new hvc(a,new ivc(a))},mvc=function(a,b){b=b===void 0?!1:b;
var c=document.createElement("div");a&&(c.style.transform="scaleX(-1)");c.style.backgroundColor=b?"rgba(138,180,248,.24)":"#e8f0fe";c.style.height="4px";c.style.overflow="hidden";c.style.position="absolute";c.style.top="0";c.style.width="100%";c.style.zIndex="1500";c.setAttribute("aria-label","Loading");c.setAttribute("aria-live","polite");a=document.createElement("style");a.textContent="@keyframes omdc-linear-progress-primary-indeterminate-translate {\n    0% {\n      transform: translateX(0);\n    }\n\n    20% {\n      animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n      transform: translateX(0);\n    }\n\n    59.15% {\n      animation-timing-function: cubic-bezier(\n        0.302435,\n        0.381352,\n        0.55,\n        0.956352\n      );\n\n      transform: translateX(83.67142%);\n    }\n\n    100% {\n      transform: translateX(200.611057%);\n    }\n  }@keyframes omdc-linear-progress-primary-indeterminate-scale {\n    0% {\n      transform: scaleX(0.08);\n    }\n\n    36.65% {\n      animation-timing-function: cubic-bezier(0.334731, 0.12482, 0.785844, 1);\n      transform: scaleX(0.08);\n    }\n\n    69.15% {\n      animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);\n      transform: scaleX(0.661479);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-translate {\n    0% {\n      animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685);\n      transform: translateX(0);\n    }\n\n    25% {\n      animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);\n      transform: translateX(37.651913%);\n    }\n\n    48.35% {\n      animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026);\n      transform: translateX(84.386165%);\n    }\n\n    100% {\n      transform: translateX(160.277782%);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-scale {\n    0% {\n      animation-timing-function: cubic-bezier(\n        0.205028,\n        0.057051,\n        0.57661,\n        0.453971\n      );\n      transform: scaleX(0.08);\n    }\n\n    19.15% {\n      animation-timing-function: cubic-bezier(\n        0.152313,\n        0.196432,\n        0.648374,\n        1.004315\n      );\n      transform: scaleX(0.457104);\n    }\n\n    44.15% {\n      animation-timing-function: cubic-bezier(\n        0.257759,\n        -0.003163,\n        0.211762,\n        1.38179\n      );\n      transform: scaleX(0.72796);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }";
c.appendChild(a);a=kvc();a.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";a.style.left="-145.166611%";var d=lvc(b);d.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";a.appendChild(d);c.appendChild(a);a=kvc();a.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";a.style.left="-54.888891%";b=lvc(b);b.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
a.appendChild(b);c.appendChild(a);return c},kvc=function(){var a=document.createElement("div");
a.style.height="100%";a.style.position="absolute";a.style.transformOrigin="top left";a.style.width="100%";return a},lvc=function(a){var b=document.createElement("span");
b.style.borderTop=a?"4px solid #669df6":"4px solid #4285f4";b.style.display="inline-block";b.style.position="absolute";b.style.width="100%";return b},nvc=function(a){return a==null?void 0:_.Ndb(a).valueOf()},rvc=function(a){var b=document.body,c=!1,d=function(){c||(c=!0,ovc(e,g),setTimeout(function(){b.removeChild(g);
b.removeChild(e)},150))},e=pvc(a,getComputedStyle(b).direction==="rtl",d),g=qvc(d);
ovc(e,g);b.appendChild(g);b.appendChild(e);window.requestAnimationFrame(function(){g.style.opacity="1";e.style.opacity="1";e.style.transform="translate(-50%, -50%) scale(1)";e.children[0].focus()})},pvc=function(a,b,c){var d=document.createElement("div");
d.style.position="fixed";d.style.alignItems="center";d.style.backgroundColor=a?"rgb(32, 33, 36)":"white";d.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";d.style.display="flex";d.style.flexDirection="column";d.style.justifyContent="center";d.style.left="50%";d.style.top="50%";d.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";d.style.zIndex="2002";document.body.clientWidth>=660?(d.style.borderRadius="8px",d.style.minHeight="220px",
d.style.maxHeight="90%",d.style.maxWidth="90%",d.style.minWidth="540px"):(d.style.height="100%",d.style.width="100%");d.setAttribute("aria-label","Error");d.setAttribute("aria-modal","true");d.setAttribute("role","alertdialog");d.addEventListener("keydown",function(g){g.key==="Escape"&&c()});
b=svc(a,b,c);d.appendChild(tvc(b));d.appendChild(b);var e=document.createElement("img");e.src=a?"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey200-36dp/2x/gm_alert_gm_grey200_36dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey600-36dp/2x/gm_alert_gm_grey600_36dp.png";e.style.height="72px";e.style.width="72px";e.style.color="#9aa0a6";e.setAttribute("alt","");d.appendChild(e);e=document.createElement("h1");e.textContent="Something went wrong.  Try again.";
e.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";e.style.lineHeight="24px";e.style.fontSize="16px";e.style.textAlign="center";e.style.letterSpacing="0.1px";e.style.color=a?"rgb(232,234,237)":"#3c4043";d.appendChild(e);d.appendChild(tvc(b));return d},svc=function(a,b,c){var d=document.createElement("button");
d.style.backgroundColor="transparent";d.style.border="none";d.style.borderRadius="50%";d.style.cursor="pointer";d.style.outline="none";d.style.padding="12px";d.setAttribute("aria-label","Close dialog");d.style.position="absolute";d.style.top="0";b?d.style.right="0":d.style.left="0";d.addEventListener("focus",function(){d.style.backgroundColor=a?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
d.addEventListener("blur",function(){d.style.backgroundColor="transparent"});
d.addEventListener("mouseenter",function(){d.style.backgroundColor=a?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
d.addEventListener("mouseleave",function(){d.style.backgroundColor="transparent"});
d.addEventListener("click",c);d.addEventListener("keydown",function(e){e.key!=="Enter"&&e.key!=="Space"||c()});
b=document.createElement("img");b.src=a?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";b.style.display="block";b.style.height="24px";b.style.width="24px";b.setAttribute("alt","");d.appendChild(b);return d},tvc=function(a){var b=document.createElement("div");
b.setAttribute("tabindex","0");b.setAttribute("aria-hidden","true");b.addEventListener("focus",function(){return void a.focus()});
return b},qvc=function(a){var b=document.createElement("div");
b.style.backgroundColor="rgba(32,33,36,0.6)";b.style.bottom="0";b.style.left="0";b.style.position="fixed";b.style.right="0";b.style.top="0";b.style.transition=" opacity 150 ms linear";b.style.zIndex="2001";b.addEventListener("click",a);return b},ovc=function(a,b){b.style.opacity="0";
a.style.opacity="0";a.style.transform="translate(-50%, -50%) scale(0.8)"},uvc=function(a,b){a.sandbox&&a.sandbox.add&&(a.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),a.sandbox.add("allow-downloads"));
a.src=b},MY=function(a){vvc.call(this,a)},NY=function(a,b){b=b===void 0?!1:b;
this.parsedImageUrl_=null;a instanceof wvc||(xvc==void 0&&(xvc=new yvc),a=xvc.parse(a.toString(),b));a=this.parsedImageUrl_=a;a.JSC$17155_parsedOptions_==void 0&&((b=a.getOptions())||(b=""),a.JSC$17155_parsedOptions_=(new zvc).parse(b));vvc.call(this,a.JSC$17155_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;a=this.parsedImageUrl_;b=a.uri_.JSC$7876_port_;this.JSC$17157_domain_=a.uri_.JSC$7876_domain_+(b?":"+b:"");this.JSC$17157_query_=this.parsedImageUrl_.uri_.JSC$7876_queryData_.toString()},
Avc=function(a){this.mode=4;
this.data=a;this.parsedData=[];a=0;for(var b=this.data.length;a<b;a++){var c=[],d=this.data.charCodeAt(a);d>65536?(c[0]=240|(d&1835008)>>>18,c[1]=128|(d&258048)>>>12,c[2]=128|(d&4032)>>>6,c[3]=128|d&63):d>2048?(c[0]=224|(d&61440)>>>12,c[1]=128|(d&4032)>>>6,c[2]=128|d&63):d>128?(c[0]=192|(d&1984)>>>6,c[1]=128|d&63):c[0]=d;this.parsedData.push(c)}this.parsedData=Array.prototype.concat.apply([],this.parsedData);this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),
this.parsedData.unshift(239))},Bvc=function(a){this.typeNumber=0;
this.errorCorrectLevel=a===void 0?2:a;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},OY=function(a,b){if(a.length==void 0)throw Error("vk`"+a.length+"`"+b);
for(var c=0;c<a.length&&a[c]==0;)c++;this.num=Array(a.length-c+b);for(b=0;b<a.length-c;b++)this.num[b]=a[b+c]},Cvc=function(a,b){this.totalCount=a;
this.dataCount=b},Dvc=function(){this.buffer=[];
this.length=0},Evc=function(){var a=!1;
if(_.oaa()){a=_.ua();var b="";_.raa()?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0"):_.Ha()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".")):_.qaa()?(b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10"):_.ta(_.ua(),"KaiOS")?(b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1]):_.oaa()?(b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1]):_.saa()&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(a=b.exec(a))&&a[1]);a=b||""}return a},Kvc=function(a,
b){this.JSC$17180__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(b)for(var c in b)this.JSC$17180__htOption[c]=b[c];this.JSC$17180__htOption.useSVG&&(Fvc=Gvc);this.JSC$17180__android=Evc();this.JSC$17180__el=a;this._oQRCode=null;this._oDrawing=new Fvc(this.JSC$17180__el,this.JSC$17180__htOption);this.JSC$17180__htOption.text&&(a=this.JSC$17180__htOption.text,this._oQRCode=new Bvc(this.JSC$17180__htOption.correctLevel),Hvc(this._oQRCode,a),b=this._oQRCode,Ivc(b,!1,Jvc(b)),this.JSC$17180__el.title=
a,this._oDrawing.draw(this._oQRCode),this.makeImage())},Lvc=function(a,b,c,d,e){a.save();
var g=new Path2D;g.roundRect(b,c,d*7,d*7,d*2);g.roundRect(b+d,c+d,d*5,d*5,d*1.3);g.roundRect(b+2*d,c+2*d,d*3,d*3,d);a.clip(g,"evenodd");a.fillStyle=e;a.fillRect(0,0,a.canvas.width,a.canvas.height);a.restore()},PY=function(a,b){if(typeof a!=="function")throw Error("yk");
return _.ja.setTimeout(function(){a()},b)},QY=function(){},Nvc=function(a,b,c,d,e){(new QY).debug("TestLoadImageWithRetries: "+e);
if(d==0)c(!1);else{var g=e||0;d--;Mvc(a,b,function(k){k?c(!0):_.ja.setTimeout(function(){Nvc(a,b,c,d,g)},g)})}},Mvc=function(a,b,c){var d=new QY;
d.debug("TestLoadImage: loading "+a);var e=new Image;e.onload=function(){try{d.debug("TestLoadImage: loaded"),Ovc(e),c(!0)}catch(g){}};
e.onerror=function(){try{d.debug("TestLoadImage: error"),Ovc(e),c(!1)}catch(g){}};
e.onabort=function(){try{d.debug("TestLoadImage: abort"),Ovc(e),c(!1)}catch(g){}};
e.ontimeout=function(){try{d.debug("TestLoadImage: timeout"),Ovc(e),c(!1)}catch(g){}};
_.ja.setTimeout(function(){if(e.ontimeout)e.ontimeout()},b);
e.src=a},Ovc=function(a){a.onload=null;
a.onerror=null;a.onabort=null;a.ontimeout=null},Pvc=function(){this.front_=[];
this.back_=[]},Qvc=function(a,b){_.vg.call(this);
this.delay_=new _.xg(this.JSC$17306_onTick_,0,this);_.kg(this,this.delay_);this.JSC$17304_interval_=5E3;this.nextTickTime_=0;if(typeof a==="function")b&&(a=(0,_.wg)(a,b));else if(a&&typeof a.handleEvent==="function")a=(0,_.wg)(a.handleEvent,a);else throw Error("Fa");this.JSC$17306_listener_=a},RY=function(a,b,c,d,e,g,k,m,n,r,t,u,x,A){c=c===void 0?!1:c;
d=d===void 0?function(){return""}:d;
e=e===void 0?!1:e;g=g===void 0?!1:g;k=k===void 0?!1:k;m=m===void 0?function(){return _.qo({})}:m;
n=n===void 0?!1:n;t=t===void 0?!1:t;u=u===void 0?!1:u;x=x===void 0?!1:x;A=A===void 0?!1:A;this.JSC$17307_pathPrefix_=a;this.defaultQueryParams_=b;this.pubsub_=new _.jj;this.reconnectTimer_=new Qvc(this.safeReconnect_,this);this.JSC$17307_channel_=null;this.JSC$17307_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17307_pendingMessages_=[];this.enableAsyncTest_=c;this.JSC$17307_getXsrfToken_=d;this.useAsyncBrowserChannelHandler_=g;this.getAuthorizationHeader_=
m;this.getAuthorizationHeaderSync_=r;this.enableCachedUpdateAuthorizationHeader_=k;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.qo();this.enableLoungeTokenRefresh_=e;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=n;this.disableMdxAuthForNonPlaybackMessages_=t;this.disableMdxAuthForAdMessages_=u;this.enableMdxAuthForConnectionOnly_=x;this.disableMdxAuthForShortsMessages_=A;this.JSC$17307_channelOpenedCounter=new Rvc;this.JSC$17307_channelClosedCounter=new Svc;this.channelMessageSentCounter=
new Tvc;this.JSC$17307_channelMessageReceivedCounter=new Uvc;this.JSC$17307_channelErrorCounter=new Vvc;this.pendingMapsOnClosedCounter=new Wvc;this.undeliveredMapsOnClosedCounter=new Xvc},SY=function(a){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;a=a||document.location.href;var b=Number(_.Ri(a)[4]||null)||"";b&&(this.port=":"+b);this.domain=_.Si(a)||"";a=_.ua();a.search("MSIE")>=0&&pY(a.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},TY=function(a){a=a||{};
this.name=a.name||"";this.id=a.id||a.screenId||"";this.token=a.token||a.loungeToken||"";this.uuid=a.uuid||a.dialId||"";this.idType=a.screenIdType||"normal"},Yvc=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=Math.random()*16|0;
return(a=="x"?b:b&3|8).toString(16)})},Zvc=function(a){return _.Df(a,function(b){return{key:b.id,
name:b.name}})},$vc=function(a,b){return _.Ka(a,function(c){return c||b?!c!=!b?!1:c.id==b.id:!0})},VY=function(a,b){return _.Ka(a,function(c){return UY(c,b)})},ewc=function(){var a=awc(),b=bwc();
if(cwc()){var c=a,d=_.Baa(c,b);d<0&&_.yaa(c,-(d+1),0,b)}a=dwc(a);if(a.length==0)try{_.Xoa("remote_sid")}catch(e){}else try{_.mj("remote_sid",a.join(","),-1)}catch(e){}},awc=function(){var a=_.vG("yt-remote-connected-devices")||[];
a.sort(_.Aaa);return a},dwc=function(a){if(a.length==0)return[];
var b=a[0].indexOf("#"),c=b==-1?a[0]:a[0].substring(0,b);return _.Df(a,function(d,e){return e==0?d:d.substring(c.length)})},fwc=function(a){_.uG("yt-remote-connected-devices",a,86400)},bwc=function(){if(gwc)return gwc;
var a=_.vG("yt-remote-device-id");a||(a=Yvc(),_.uG("yt-remote-device-id",a,31536E3));for(var b=awc(),c=1,d=a;_.Oa(b,d);)c++,d=a+"#"+c;return gwc=d},hwc=function(){return _.vG("yt-remote-session-browser-channel")},cwc=function(){return _.vG("yt-remote-session-screen-id")},kwc=function(a){a.length>5&&(a=a.slice(a.length-5));
var b=_.Df(iwc(),function(d){return d.loungeToken}),c=_.Df(a,function(d){return d.loungeToken});
_.YIa(c,function(d){return!_.Oa(b,d)})&&jwc();
_.uG("yt-remote-local-screens",a,31536E3)},iwc=function(){return _.vG("yt-remote-local-screens")||[]},jwc=function(){_.uG("yt-remote-lounge-token-expiration",!0,86400)},WY=function(a){a||(_.wG("yt-remote-session-screen-id"),_.wG("yt-remote-session-video-id"));
ewc();a=awc();_.Qa(a,bwc());fwc(a)},mwc=function(){lwc();
return XY?!!XY.get("yt-remote-use-staging-server"):!1},lwc=function(){if(!XY){var a=_.fpa();
a&&(XY=new _.rj(a))}},qwc=function(a,b,c,d,e){c=c===void 0?function(){return""}:c;
var g=function(){return new RY(YY(a,"/bc"),b,!1,c,d)};
return _.w("enable_mdx_web_channel_desktop")?new nwc(function(){return new owc(YY(a,"/wc"),b,c)}):new pwc(g,e)},uwc=function(){var a=rwc;
swc();ZY.push(a);twc()},$Y=function(a,b){swc();
var c=vwc(a,String(b));ZY.length==0?wwc(c):(twc(),_.Mi(ZY,function(d){d(c)}))},aZ=function(a){$Y("CP",a)},swc=function(){ZY||(ZY=_.Ji("yt.mdx.remote.debug.handlers_")||[],_.Rj("yt.mdx.remote.debug.handlers_",ZY))},wwc=function(a){var b=(bZ+1)%50;
bZ=b;xwc[b]=a;ywc||(ywc=b==49)},twc=function(){var a=ZY;
if(xwc[0]){var b=ywc?bZ:-1,c={};do c={record$jscomp$13:void 0},b=(b+1)%50,c.record$jscomp$13=xwc[b],_.Mi(a,function(d){return function(e){e(d.record$jscomp$13)}}(c));
while(b!=bZ);xwc=Array(50);bZ=-1;ywc=!1}},vwc=function(a,b){var c=(Date.now()-zwc)/1E3;
c.toFixed&&(c=c.toFixed(3));var d=[];d.push("[",c+"s","] ");d.push("[","yt.mdx.remote","] ");d.push(a+": "+b,"\n");return d.join("")},cZ=function(a){_.kY.call(this);
this.JSC$17331_logName_=a;this.screens=[]},eZ=function(a){cZ.call(this,"LocalScreenService");
this.JSC$17338_http_=a;this.loungeTokenRefreshTimer_=NaN;dZ(this);this.info("Initializing with "+Awc(this.screens))},fZ=function(a,b){b=b===void 0?!1:b;
cZ.call(this,"ScreenService");this.JSC$17344_http_=a;this.disableAutomaticScreenCache_=b;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};Bwc(this)},gZ=function(a,b,c){_.kY.call(this);
this.JSC$17348_logName_=c;this.JSC$17348_screenService_=a;this.receiver_=b;this.screen_=null},Qwc=function(a,b,c){c.disableCastApi?hZ("Cannot initialize because disabled by Mdx config."):Cwc()?Dwc(a,c)&&(Ewc(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?Fwc(b):(window.__onGCastApiAvailable=function(d,e){d?Fwc(b):(iZ("Failed to load cast API: "+e),Gwc(!1),Ewc(!1),_.wG("yt-remote-cast-available"),_.wG("yt-remote-cast-receiver"),Hwc(),b(!1))},c.loadCastApiSetupScript?_.Kn("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):
window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?Iwc()>=60&&Jwc():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?Kwc():Iwc()>=89?Lwc():(Mwc(),Nwc(Owc.map(Pwc))))):hZ("Cannot initialize because not running Chrome")},Hwc=function(){hZ("dispose");
var a=jZ();a&&a.dispose();_.Rj("yt.mdx.remote.cloudview.instance_",null);Rwc(!1);_.Lsa(Swc);Swc.length=0},Twc=function(){return!!_.vG("yt-remote-cast-installed")},Uwc=function(){var a=_.vG("yt-remote-cast-receiver");
return a?a.friendlyName:null},Vwc=function(){hZ("clearCurrentReceiver");
_.wG("yt-remote-cast-receiver")},Wwc=function(){return Twc()?jZ()?jZ().getCastSession():(iZ("getCastSelector: Cast is not initialized."),null):(iZ("getCastSelector: Cast API is not installed!"),null)},Ywc=function(a,b){Xwc()?jZ().setConnectedScreenStatus(a,b):iZ("setConnectedScreenStatus called before ready.")},Cwc=function(){var a=_.ua().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.Bx||a},Dwc=function(a,b){var c=!1;
jZ()||(a=new kZ(a,b),a.subscribe("yt-remote-cast2-availability-change",function(d){_.uG("yt-remote-cast-available",d);rY("yt-remote-cast2-availability-change",d)}),a.subscribe("yt-remote-cast2-receiver-selected",function(d){hZ("onReceiverSelected: "+d.friendlyName);
_.uG("yt-remote-cast-receiver",d);rY("yt-remote-cast2-receiver-selected",d)}),a.subscribe("yt-remote-cast2-receiver-resumed",function(d){hZ("onReceiverResumed: "+d.friendlyName);
_.uG("yt-remote-cast-receiver",d);rY("yt-remote-cast2-receiver-resumed",d)}),a.subscribe("yt-remote-cast2-session-change",function(d){hZ("onSessionChange: "+Zwc(d));
d||_.wG("yt-remote-cast-receiver");rY("yt-remote-cast2-session-change",d)}),_.Rj("yt.mdx.remote.cloudview.instance_",a),c=!0);
hZ("cloudview.createSingleton_: "+c);return c},jZ=function(){return _.Ji("yt.mdx.remote.cloudview.instance_")},Fwc=function(a){Gwc(!0);
Ewc(!1);jZ().init(!1,function(b){b?(Rwc(!0),_.Msa("yt-remote-cast2-api-ready")):(iZ("Failed to initialize cast API."),Gwc(!1),_.wG("yt-remote-cast-available"),_.wG("yt-remote-cast-receiver"),Hwc());a(b)})},hZ=function(a){$Y("cloudview",a)},iZ=function(a){$Y("cloudview",a)},Gwc=function(a){hZ("setCastInstalled_ "+a);
_.uG("yt-remote-cast-installed",a)},Xwc=function(){return!!_.Ji("yt.mdx.remote.cloudview.apiReady_")},Rwc=function(a){hZ("setApiReady_ "+a);
_.Rj("yt.mdx.remote.cloudview.apiReady_",a)},Ewc=function(a){_.Rj("yt.mdx.remote.cloudview.initializing_",a)},lZ=function(a){this.index=-1;
this.videoId=this.listId="";this.volume=this.playerState=-1;this.muted=!1;this.audioTrackId=null;this.playerTimeAt_=this.playerTime_=0;this.trackData=null;this.hasNext=this.hasPrevious=!1;this.loadedTime=this.duration_=this.seekableEnd_=this.seekableStart_=0;this.liveIngestionTime_=NaN;this.isLive_=!1;this.reset(a)},$wc=function(){var a,b;
return _.l(function(c){if(c.nextAddress==1)return(_.vsa()||_.w("use_new_nwl"))&&_.rsa().isNetworkAvailable()?_.p(c,_.Sj(),2):c.return();if(c.nextAddress!=3)return(a=c.yieldResult)?_.p(c,Msc(a),3):c.return();b=c.yieldResult;if(!b.length)return c.return();b.forEach(function(d){var e={timestamp:d.timestamp};d=d.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:d.appShellAssetLoadReport,options:e}:d.clientError?{payloadName:"clientError",payload:d.clientError,options:e}:void 0;d&&
_.xl(d.payloadName,d.payload,d.options)});
b.length===100&&_.zk.addLowPriorityJob($wc);_.ue(c)})},axc=function(a){if(a.playerResponse){if(a=a.playerResponse,a.messages&&a.messages.length>0&&(a=a.messages.find(function(b){return!(!b||!b.mealbarPromoRenderer)}))&&a.mealbarPromoRenderer)return a.mealbarPromoRenderer}else if(a.response&&(a=a.response)&&a.overlay&&a.overlay.mealbarPromoRenderer)return a.overlay.mealbarPromoRenderer},bxc=function(a){if(a.response){var b=a.response;
if(b&&b.overlay&&b.overlay.tooltipRenderer)return b.overlay.tooltipRenderer}if(a.playerResponse&&(a=a.playerResponse,a.messages&&a.messages.length>0&&(a=a.messages.find(function(c){return!(!c||!c.tooltipRenderer)}))&&a.tooltipRenderer))return a.tooltipRenderer},dxc=function(a){if(!cxc&&(a=a||_.Fi("ZWIEBACK_PING_URLS"))&&a.length){cxc=!0;
for(var b=0;b<a.length;b++)_.Jk(a[b])}},fxc=function(a){if(_.Cf.get(_.Fi("PLAYER_VARS",{}),"privembed",!1)!="1"){a&&Dsc();
try{exc().then(function(){},function(){}),_.dj(fxc,18E5)}catch(b){_.Hi(b)}}},gxc=function(){var a=_.yo(),b=a.getFlag(119),c=window.devicePixelRatio>1;
document.body&&_.aA(document.body,"exp-invert-logo")&&(c&&!_.aA(document.body,"inverted-hdpi")?_.Qs(document.body,"inverted-hdpi"):!c&&_.aA(document.body,"inverted-hdpi")&&_.Os(document.body,"inverted-hdpi"));b!=c&&(_.zo(0,119,c),a.save())},hxc=function(a){return a.filter(function(b){return"ypcGetCartEndpoint"in b||"ypcFixInstrumentEndpoint"in b})},ixc=function(a){return a.filter(function(b){return!_.y(b,_.rGb)})},kxc=function(a){a=_.h(a);
for(var b=a.next(),c={};!b.done;c={setter$jscomp$7:void 0},b=a.next()){var d=b.value;b=d.params;d=d.service;b&&d&&(c.setter$jscomp$7=jxc[d],c.setter$jscomp$7&&b.forEach(function(e){return function(g){var k=g.key;g=g.value;k&&g&&(0,e.setter$jscomp$7)(k,g)}}(c)))}},mxc=function(a,b){var c,d,e,g,k,m,n;
_.l(function(r){switch(r.nextAddress){case 1:c=_.Mq.getInstance();d=_.gs.instance;e=_.Pt.instance;if(!e)return lxc(a,d,b),r.return();_.pe(r,2);a.onLoadingCommand&&d.resolveCommand(a.onLoadingCommand);return _.p(r,c.getCurrentPositionFromGeolocation(),4);case 4:g=r.yieldResult;if(!a.resolveLocationCommand){r.jumpTo(5);break}k=c.createLocationInfo(g);return _.p(r,_.Rt(e,a.resolveLocationCommand,{locationInfo:k}),6);case 6:m=r.yieldResult;if(!m||"error"in m&&m.error||m.errorMetadata)return lxc(a,d,b),
r.return();var t;if(m==null?0:(t=m.onResponseReceivedActions)==null?0:t.length){t=_.h(m.onResponseReceivedActions);for(var u=t.next();!u.done;u=t.next())d.resolveCommand(u.value)}(_.y(a.onSuccessCommand,_.Un)||_.y(a.onSuccessCommand,_.oq))&&_.io(b.hostElement,"yt-navigate",{endpoint:a.onSuccessCommand,reload:!0});case 5:_.Jj(r,0);break;case 2:n=_.te(r);if(n instanceof GeolocationPositionError&&n.code===GeolocationPositionError.PERMISSION_DENIED)return a.onDeniedCommand&&d.resolveCommand(a.onDeniedCommand),
r.return();lxc(a,d,b);_.ue(r)}})},lxc=function(a,b,c){a.onFailureCommand&&(b.resolveCommand(a.onFailureCommand),_.lo(c.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},oxc=function(a,b){var c=_.y(a,_.Zzb);
if(c&&b){a=c.videoIds||[c.videoId];var d;b=(d=_.io(b,"yt-lockup-requested",{videoIds:a}).detail)==null?void 0:d.returnValue;var e;c.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?e=b?b:a.map(function(g){return{videoId:g,navigationEndpoint:c.videoCommand}}):b&&(e=b);
e&&(d=e.map(function(g){var k=Object,m=k.assign;var n=g.navigationEndpoint;if(!_.y(n,_.uq)){var r=_.y(n,_.Un);if(r){if(delete r.index,delete r.playlistId,r=_.y(n==null?void 0:n.commandMetadata,_.co),r==null?0:r.url){var t=r.url;t=_.bo(t,"list");t=_.bo(t,"index");r.url=t}}else n=void 0}return m.call(k,{},g,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:n})}),nxc(d,c))}},pxc=function(a){var b=_.YF();
if(a=_.y(a,_.$zb))a.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&b.clearQueue(),a.closeMiniplayer&&_.v().resolve(_.$w).close(!0)},rxc=function(a){qxc(_.YF(),a)},sxc=function(a){var b;
(a=(b=_.y(a,_.Xzb))==null?void 0:b.setVideoIds)&&a.forEach(function(c){_.BKb(_.YF(),c)})},uxc=function(a){txc(_.YF(),a)},vxc=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(a){return!1}},wxc=function(a,b,c){return{horizontalAlignment:a.x+c.width/2<b.width/2?"west":"east",
verticalAlignment:a.y+c.height/2<b.height/2?"north":"south"}},zxc=function(a,b,c,d,e){e=e===void 0?new _.Ef(0,0):e;
return xxc(yxc(a,b,c,d),e)},yxc=function(a,b,c,d){return new _.Ef(a==="west"?16:c.width-d.width-16,b==="north"?16:c.height-d.height-16)},Axc=function(a,b){var c=0;
a&&(c+=76);b&&(c+=285);return c},Bxc=function(a){var b=["h",
"m","s"],c=_.Ra(b);c.reverse();var d={};a=(a.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(k){var m=(k.match(/[hms]/)||[""])[0];return m?(d[m]=parseInt(k.match(/\d+/)[0],10),!1):!0});
for(a.reverse();a.length&&c.length;){var e=c.shift();e in d||(d[e]=parseInt(a.shift(),10))}if(a.length||d.s>59||d.m>59||d.h>9)return null;var g="";b.forEach(function(k){d[k]&&(g+=""+d[k]+k)});
return g||null},Cxc=function(a){a=a.data;
return _.q("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.q("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.q(_.Ps,{data:{thumbnails:[{url:a.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.q("div",{class:"profile-badge-view-model-wiz__content"},_.q("div",{class:"profile-badge-view-model-wiz__badge-description"},a.badgeDesc),a.badgeSubtitle?_.q("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},a.badgeSubtitle):null))},Dxc=function(a){a=
a.data;
var b=_.Pl();_.Yu(b,a.rendererContext);return _.q("yt-comment-interaction-view-model",{el:b,class:"yt-comment-interaction-view-model-wiz"},_.q("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":a.onTapA11yLabel,"on:keydown":_.Uu(),tabindex:0},_.q("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.q("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},a.headerPrefix,' "',a.videoTitle),_.q("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.q("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.q("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},a.commentContent),_.q("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.q(_.Ps,{data:{thumbnails:[{url:a.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},Fxc=function(a){a=a.data;
return _.q("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},Exc(a.avatar),_.q("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},a.channelName))},Hxc=function(a){a=a.data;
var b;return _.q("div",{class:"yt-profile-info-view-model-wiz__activity"},_.q("div",{class:"yt-profile-info-view-model-wiz__header"},_.q("div",{class:"yt-profile-info-view-model-wiz__section-title"},a.commentsInteractionTitle)),(b=a.comments)==null?void 0:b.map(function(c){return _.q("div",{class:"yt-profile-info-view-model-wiz__activity"},Gxc(c))}))},Ixc=function(a){a=a.data;
var b=_.Fs({elementsCommand:a.subscriptionsAccessButtonCommand}),c=_.Pl();_.bZa(c,_.Ds(a.subscriptionsAccessButtonCommand));var d=_.lt(function(g){if(b==null?0:b.onclick)b.onclick(g);return!1}),e;
return _.q("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.q("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.q("a",{el:c,"on:click":d,class:"yt-profile-info-view-model-wiz__another-header"},_.q("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},a.sharedSubscriptionsTitle),_.q("div",null,Gxc(a.subscriptionsAccessButton)))),_.q("div",{class:"yt-profile-info-view-model-wiz__subs"},(e=a.sharedSubscriptions)==null?void 0:e.slice(0,5).map(function(g){return _.q("div",
{class:"yt-profile-info-view-model-wiz__sub"}," ",Gxc(g))})))},Jxc=function(a){a=a.data;
var b;return _.q("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.q("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.q("h2",{class:"yt-profile-info-view-model-wiz__section-title"},a.sharedSubscriptionsTitle)),_.q("div",{class:"yt-profile-info-view-model-wiz__subs"},(b=a.sharedSubscriptions)==null?void 0:b.slice(0,5).map(function(c){return _.q("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",Gxc(c))})))},Kxc=function(a){a=a.data;
return _.q("div",{class:"yt-profile-info-view-model-wiz__activity"},[a.profileBadgeInfoYtWide,a.profileBadgeInfoChannelWide].map(function(b){var c,d,e,g,k;return b?_.q(_.Wh,null,_.q("div",{class:"yt-profile-info-view-model-wiz__header"},_.q("div",{class:"yt-profile-info-view-model-wiz__section-title"},b==null?void 0:b.profileSectionTitle),_.q("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.q("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},b==null?void 0:(c=b.commentBadge)==
null?void 0:c.commentDesc),(b==null?0:(d=b.commentBadge)==null?0:d.blackHeartDesc)?_.q("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.q("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.q(_.Ps,{data:{thumbnails:[{url:b==null?void 0:(e=b.commentBadge)==null?void 0:e.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.q("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},b==null?void 0:(g=
b.commentBadge)==null?void 0:g.blackHeartDesc))),_.q("div",{class:"yt-profile-info-view-model-wiz__badge"},b==null?void 0:(k=b.badges)==null?void 0:k.map(function(m){return _.q(Cxc,{data:m})}))):null}))},Lxc=function(a){a=a.data;
return _.q("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.q(Kxc,{data:a}),a.comments?_.q(Hxc,{data:a}):null,a.sharedSubscriptionsTitle?a.subscriptionsAccessButtonCommand?_.q(Ixc,{data:a}):_.q(Jxc,{data:a}):null)},Nxc=function(a){var b=a.data;
a=b?Mxc(b.profileIdentityInfo):void 0;b=b?Mxc(b.profileInfo):void 0;return _.q("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},a,b)},Oxc=function(a,b){var c=_.Fyb(b,{},a,!0);
return new Promise(function(d,e){c.listenOnce("n",function(){e(Error("il`"+c.JSC$25548_getErrorDescription()))});
c.listenOnce("l",function(){var g=c.getResponseCode();if(g!==200)e(Error("jl`"+b+"`"+a.type+"`"+a.size+"`"+g));else try{d(JSON.parse(c.getResponseText()).encryptedBlobId)}catch(k){e(k)}});
c.run()})},Pxc=function(a){return a.substring(a.indexOf(":")+1,a.indexOf(";"))},Qxc=function(a){return new Promise(function(b,c){var d=new FileReader;
d.onloadend=function(){try{var e=new Uint8Array(d.result);e.length<8&&c(void 0);var g=e.subarray(0,8);e="";for(var k=0;k<g.length;k++)e+=("0"+g[k].toString(16)).substr(-2);e.startsWith("ffd8ff")?b("image/jpeg"):e.startsWith("47494638")?b("image/gif"):e.startsWith("89504e470d0a1a0a")?b("image/png"):e.startsWith("424d")?b("image/bmp"):b(void 0)}catch(m){c(m)}};
d.onerror=c;d.readAsArrayBuffer(a)})},Rxc=function(a){return new Promise(function(b,c){var d=new Image;
d.crossOrigin="anonymous";d.onload=function(){var e=document.createElement("canvas");e.width=d.naturalWidth;e.height=d.naturalHeight;var g=e.getContext("2d");if(!g)throw Error("kl");g.drawImage(d,0,0);g=Pxc(a);e.toBlob(function(k){k?b(k):c()},g)};
d.src=a})},Txc=function(a,b){var c;
if(((c=_.y(a,_.uq))==null?void 0:c.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var d;_.io((d=b.hostElement)!=null?d:b,"yt-shorts-reset");_.uLb(_.v().resolve(_.nG),a).then(function(g){Sxc(g,b,a)})}else{var e;
_.oo((e=b.hostElement)!=null?e:b,[a]).then(function(g){g&&Sxc(g.data,b,a)})}},Sxc=function(a,b,c){if(a){var d=_.y(a.replacementEndpoint,_.uq);
if(d){a.sequenceContinuation&&(d.sequenceParams=a.sequenceContinuation);var e;_.io((e=b.hostElement)!=null?e:b,"yt-navigate",{endpoint:a.replacementEndpoint})}else if((a==null?void 0:a.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(a==null?0:a.watchStatus)&&_.y(a.watchStatus,_.FBb)){var g;_.io((g=b.hostElement)!=null?g:b,"yt-navigate",{endpoint:c})}}},Uxc=function(){var a=_.v().resolve(_.LG),b=iuc(a.getState())||"";
a=_.iZa(a.getState())||"";return{disableCache:b==="ytd-browse"&&a==="home"}},Vxc=function(a){if(!a)return!1;
try{if(a.host&&a.host.tagName==="YT-FORMATTED-STRING"&&a.host.id==="contenteditable-textarea"||a.nodeType===Node.ELEMENT_NODE&&a.tagName==="YTD-COMMENT-INPUT")return!0}catch(b){return!1}return Vxc(a.parentNode)},mZ=function(a){return a?a.tagName==="A"&&a.href&&a.classList.contains("yt-simple-endpoint"):!1},Wxc=function(a){return a?a.tagName==="IMG"&&a.classList.contains("emoji"):!1},Xxc=function(a,b,c){if(!a)return null;
var d=mZ(a);if(d&&c)return b=a.pathname.substring(a.pathname.indexOf("/channel/")+9),document.createTextNode("@"+b);if(d&&!c)return document.createTextNode("");if(Wxc(a))return c=a.alt,a=a.dataset.emojiId,!a&&b&&(b=_.nv(b,c))&&b.isCustomEmoji&&(a=b.emojiId),a?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+a+">"):document.createTextNode(c);d=a.cloneNode(!1);for(var e=0;e<a.childNodes.length;++e){var g=Xxc(a.childNodes[e],b,c);g&&d.appendChild(g)}return d},nZ=function(a){return a?mZ(a)?a:nZ(a.lastChild):
null},Yxc=function(a){return a?mZ(a)?a:Yxc(a.firstChild):null},Zxc=function(a){if(!a)return null;
for(var b=a.previousSibling;b;)if(b.nodeType===Node.ELEMENT_NODE&&b.nodeName==="BR")b=b.previousSibling;else if(b.nodeType===Node.TEXT_NODE&&/\s+/.test(b.textContent))b=b.previousSibling;else break;(b=nZ(b))?a=b:a=(a=a.parentNode)?nZ(a.previousElementSibling):null;return a},$xc=function(a){if(!a)return null;
for(var b=a.nextSibling;b;)if(b.nodeType===Node.ELEMENT_NODE&&b.nodeName==="BR")b=b.nextSibling;else if(b.nodeType===Node.TEXT_NODE&&/\s+/.test(b.textContent))b=b.nextSibling;else break;return(b=Yxc(b))?b:$xc(a.parentNode)},ayc=function(a){var b=_.pv(),c=b.JSC$9078_getStartNode();
if(!Vxc(c.parentNode))return null;b=b.JSC$9078_getStartOffset();if(c.nodeType===Node.TEXT_NODE){var d=_.Jf(c,mZ);if(d){if(a&&b===0||!a&&b===c.length)return d}else{if(a&&b===c.length)return!c||c.nodeName==="BR"||c.nextElementSibling&&_.qv(c.nextElementSibling,"display")==="block"?null:Yxc(c.nextElementSibling);if(!a&&b===0)return c?nZ(c.previousElementSibling):null}}if(c.nodeType===Node.ELEMENT_NODE)if(a){if(0<=b&&b<c.childNodes.length)return Yxc(c.childNodes[b])}else if(0<b&&b<=c.childNodes.length)return nZ(c.childNodes[b-
1]);return null},byc=function(a,b,c){if(!a)return null;
if(a.nodeType===Node.TEXT_NODE)if(c){var d=Zxc(a);if(d&&!/^\s+\S/.test(a.wholeText.substr(0,b)))return d}else if((d=$xc(a))&&!/\S\s+/.test(a.wholeText.substr(b,a.wholeText.length)))return d;return a.nodeType===Node.ELEMENT_NODE?c?Zxc(a.childNodes[b]):$xc(a.childNodes[b]):byc(a.parentNode,b,c)},cyc=function(a){if(a.hasChildNodes())switch(a.tagName){case "DIV":case "A":case "SPAN":var b="";
for(a=a.firstChild;a;a=a.nextSibling)b+=cyc(a);return b;default:return""}else switch(a.nodeType){case 3:return a.textContent;default:return""}},dyc=function(a){a=a.data;
return _.q("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.q("div",null,_.q(_.tt,{text:a.title})),a.subtitle?_.q("div",{class:"ytd-menu-title-renderer__subtitle"},_.q(_.tt,{text:a.subtitle})):null)},eyc=function(a){switch(a){case "UNKNOWN_FORMAT_TYPE":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN";
case "HD_1080":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080";case "SD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD";case "LD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD";default:return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD"}},fyc=function(a){return a.map(function(b){return{settingsRadioOptionRenderer:{title:_.gp(b.name),
asideText:_.gp(b.approximateSize),id:eyc(b.format)}}})},hyc=function(a){if(a&&a.length!==0)return a.filter(gyc()).map(function(b){return{settingsRadioOptionRenderer:{title:b.name,
asideText:b.approximateSize,id:eyc(b.formatType)}}})},iyc=function(a){if(a)return a.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},jyc=function(a){var b=a.indexOf("(");
return b!==-1?a.substring(b+1,a.length-1):a},kyc=function(a){switch(a){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},myc=function(a,b,c,d,e,g){var k=_.Cf.clone(lyc);
k.locale=_.Fi("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;k.report={description:e||"<empty>"};e=_.Fi("SBOX_SETTINGS",{});b=b.join(",");var m=Date.now();a={choice_cc:d,choice_id_cc:c,choices_sc:b,gl:e.REQUEST_DOMAIN,hl:e.REQUEST_LANGUAGE,query:a,time:m};g&&(a.choice_additional_comment_cc=g);_.Lyb(k,a)},nyc=function(a){var b=new Map;
b.set("authuser",_.Fi("SESSION_INDEX","0"));return _.hf(a,b)},pyc=function(a){var b;
return _.l(function(c){switch(c.nextAddress){case 1:if(!a||!oyc(a))return c.return(null);b=null;switch(_.Fi("INNERTUBE_CLIENT_NAME")){case "WEB":return c.jumpTo(2);case "WEB_REMIX":b=a.getPlayer()}c.jumpTo(3);break;case 2:return _.p(c,a.getPlayerPromise(),4);case 4:b=c.yieldResult;c.jumpTo(3);break;case 3:return c.return(b)}})},oyc=function(a){return["ytd-player",
"ytmusic-player"].includes(String(a.tagName||"").toLowerCase())},qyc=function(a){a=Math.round(a);
return a%2?a-1:a},ryc=function(a){a=Math.round(a);
return a%2===0?a-1:a},syc=function(a){return a&&a.length<=150},tyc=function(a){if(a)return _.q(_.Wh,null,_.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.Tg(a.image&&a.title,function(){return _.q(_.Ps,{data:a.image,
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})})),_.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},a.title&&_.q("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},a.title),a.primaryGenre&&_.q("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},a.primaryGenre))),_.Tg(syc(a.description),function(){return _.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.q("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},
a.description))}))},uyc=function(a){if(a&&a.infoRow){var b=_.v().resolve(_.ZR),c=_.w("enable_displaying_ppn");
return _.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},a.infoRow.map(function(d){return _.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},d.label&&_.q("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},d.label),d.attributedLabel&&_.q("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.q(_.tt,{text:d.attributedLabel,noPreWrap:!0})),d.value&&_.q("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},
d.value),d.attributedValue&&_.q("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.q(_.tt,{text:d.attributedValue,noPreWrap:!0})))}),_.Tg(c&&b.clientData.has("post_play_nonce"),function(){return _.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.q("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.q("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},b.getData("post_play_nonce")))}))}},wyc=function(a){a=
a.data;
if(a){var b=a.dialogTitle;b=_.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},a.dialogTitle&&_.q("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},b))}else b=void 0;var c=tyc(a),d=uyc(a);if(a){var e=a.closeButton;a=_.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},a.closeButton&&_.q("div",null,vyc(e)))}else a=void 0;return _.q("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},
b,c,d,a)},xyc=function(a){var b,c,d;
if(a=(b=a.createPlaylistDialogFormSchema)==null?void 0:(c=b.fieldSchemas)==null?void 0:(d=c.title)==null?void 0:d.validationSchema)for(b=[a.syncStep,a.asyncStep].filter(function(e){return e!==void 0}),b=_.h(b),c=b.next();!c.done;c=b.next()){c=c.value.rules;
if(!c)break;c=_.h(c);for(c=c.next();!c.done;c=c.next())return _.y(c.value,_.Pnc)}},zyc=function(a){var b,c,d;
if(a=(b=a.createPlaylistDialogFormSchema)==null?void 0:(c=b.fieldSchemas)==null?void 0:(d=c.visibility)==null?void 0:d.validationSchema)for(b=[a.syncStep,a.asyncStep].filter(function(e){return e!==void 0}),b=_.h(b),c=b.next();!c.done;c=b.next()){c=c.value.rules;
if(!c)break;c=_.h(c);for(d=c.next();!d.done;d=c.next())if(d=_.y(d.value,yyc))return b=void 0,(b=d.translations)==null?void 0:b.visibilityNotValidErrorMessage}},Ayc=function(){var a,b;
return(b=(a=_.v().resolve(_.Xi(_.Ks)))==null?void 0:a())!=null?b:!1},Byc=function(a,b){a:switch(b){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":b="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";
break a;default:b="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:a,style:b,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},Cyc=function(a){_.lo(a,"yt-refit-popups-action")},Eyc=function(a){var b=a.data;
var c=a.disablePadding;var d=a.className;var e=_.Pl(),g=Byc(b.banner,b.assetContainerPaddingStyle),k=Byc(b.imageBanner,b.assetContainerPaddingStyle),m=b.assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET",n=b.assetContainerMaxHeight;_.wi(function(){var r;(r=e.value)==null||r.addEventListener("image-loaded",function(){Cyc(e.value)})});
_.zh(function(){var r;(r=e.value)==null||r.removeEventListener("image-loaded",function(){Cyc(e.value)})});
a={};return _.q("yt-dialog-header-view-model",{el:e,class:_.ht(d,(a.ytDialogHeaderViewModelHost=!0,a.ytDialogHeaderViewModelHostDisablePadding=!!c,a))},_.Tg(b.banner,function(){var r={};return _.q("div",{class:_.ht(d,(r.ytDialogHeaderViewModelBanner=!0,r.ytDialogHeaderViewModelBannerFullBleed=!!m,r)),style:"max-height: "+(n?n+"px":"")},_.q(_.wL,{data:g,className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.Tg(b.imageBanner,function(){var r={};
return _.q("div",{class:_.ht(d,(r.ytDialogHeaderViewModelBanner=!0,r.ytDialogHeaderViewModelBannerFullBleed=!!m,r)),style:_.ot({"max-height":function(){return n!==void 0?n+"px":void 0}})},_.q(_.wL,{data:k,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.Tg(b.customAssetContainer,function(){return _.q("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},Dyc(b.customAssetContainer))}),_.Tg(b.customBanner,function(){return _.q("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},Dyc(b.customBanner))}),_.Tg(b.headline,function(){return _.q("h2",null,_.q(_.tt,{text:b.headline,
className:"ytDialogHeaderViewModelText"}))}))},Gyc=function(a){var b=a.data;
a={};a=_.ht("yt-panel-header-view-model-wiz",(a["yt-panel-header-view-model-wiz--hide-divider"]=!!b.shouldHideDivider,a["yt-panel-header-view-model-wiz--compact"]=!!b.subtitle,a));return _.q("yt-panel-header-view-model",{class:a},_.q("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.Tg(b.title,function(){return _.q(_.tt,{text:b.title,className:"yt-panel-header-view-model-wiz__title"})}),_.Tg(b.subtitle,function(){return _.q(_.tt,{text:b.subtitle,
className:"yt-panel-header-view-model-wiz__subtitle"})})),_.Tg(b.trailingButtons,function(){return _.q("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},Fyc(b.trailingButtons,{buttonViewModel:{className:"yt-panel-header-view-model-wiz__button"}}))}))},Hyc=function(a){var b=21;
if(!a)return b;b+=a.headerTitle?27:0;b+=a.headerTitle&&a.hasHeaderActionHeader?4:0;return b+=a.headerTitle&&a.headerSubtitle?16:0},Iyc=function(a){var b=0;
if(!a)return b;b+=a.hasFooterPrimaryButton||a.hasFooterSecondaryButton?48:0;b+=a.footerTrailingLabel||a.footerLeadingLabel?30:0;return b+=a.hasFooterPrimaryButton||a.hasFooterSecondaryButton||!a.footerTrailingLabel&&!a.footerLeadingLabel?0:12},Jyc=function(a){var b=new _.jj,c=a;
return{subscribe:function(d){b.subscribe("changed",d)},
dispatch:function(d,e){var g=c;d==="Touch Start"?c=Object.assign({},g,{isAnimating:!1,initialY:e.event.touches[0].clientY}):d==="Touch Move"?(d=Math.min(e.fullContentWrapperHeight,e.contentHeightMap[e.contentWrapperId]+Hyc(e.header)-Iyc(e.footer)),c=Object.assign({},g,{currentY:Math.max(e.contentScrollable?-1*(g.initialY-24):0,e.event.touches[0].clientY-g.initialY),maxHeightForContentWrapper:Math.min(d,Math.max(0,(g.isFullScreen?d:e.contentWrapperHeight)-g.currentY))})):c=d==="Snap To Full Screen"?
Object.assign({},g,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:e.maxHeight}):d==="Snap To Neutral Position"?Object.assign({},g,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:e.maxHeight}):d==="Close Sheet"?Object.assign({},g,{isAnimating:!0,currentY:e.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:e.maxHeight}):g;b.publish("changed",c)}}},Kyc=function(a){return _.lt(function(b){a(b);
return!1})},Lyc=function(){_.v().resolve(_.KJ).closeSheet()},Myc=function(a){var b,c,d,e,g,k,m,n,r,t,u;
return{headerTitle:(b=a.headerTitle)==null?void 0:b.call(a),headerSubtitle:(c=a.headerSubtitle)==null?void 0:c.call(a),headerActionHeader:a.headerActionHeader,footerPrimaryButton:a.footerPrimaryButton,footerSecondaryButton:a.footerSecondaryButton,footerButtonType:(d=a.footerButtonType)==null?void 0:d.call(a),footerLeadingLabel:(e=a.footerLeadingLabel)==null?void 0:e.call(a),footerTrailingLabel:(g=a.footerTrailingLabel)==null?void 0:g.call(a),shouldShowIcons:(k=a.shouldShowIcons)==null?void 0:k.call(a),
skipContentClick:(m=a.skipContentClick)==null?void 0:m.call(a),additionalClassName:(n=a.additionalClassName)==null?void 0:n.call(a),onClosedCallback:a.onClosedCallback,focusOnClose:(r=a.focusOnClose)==null?void 0:r.call(a),isDisabled:(t=a.isDisabled)==null?void 0:t.call(a),disabledCommand:(u=a.disabledCommand)==null?void 0:u.call(a),headerFn:a.headerFn,contentWiz:a.contentWiz,footerFn:a.footerFn,hasHeaderFn:a.hasHeaderFn(),hasContentWiz:a.hasContentWiz(),hasFooterFn:a.hasFooterFn(),hasFooterPrimaryButton:a.hasFooterPrimaryButton(),
hasFooterSecondaryButton:a.hasFooterSecondaryButton(),hasHeaderActionHeader:a.hasHeaderActionHeader()}},Nyc=function(a){var b=_.v().resolve(_.KJ),c=_.lt(function(){return void b.closeSheet()});
return _.q("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":c},_.Tg(a.header,function(){return _.q("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},a.header())}),_.Tg(a.content,function(){return _.q("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},a.content())}),_.Tg(a.footer,function(){return _.q("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},a.footer())}))},Qyc=function(a){var b=a.data;
a={};a=_.ht("yt-sheet-view-model-wiz",(a["yt-sheet-view-model-wiz--contextual"]=!0,a["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.w("web_disable_backdrop_filter"),a));return _.q("yt-sheet-view-model",{class:a},_.Tg(b,function(){return _.q(Oyc,{header:function(){return _.q(_.Wh,null,Pyc(b==null?void 0:b.header))},
content:function(){return _.q(_.Wh,null,Pyc(b==null?void 0:b.content,{listViewModel:{isCompact:!0,inPopup:!0}}))},
footer:function(){return _.q(_.Wh,null,Pyc(b==null?void 0:b.footer))}})}))},Ryc=function(a){switch(a){case "FLEXBOX_FLEX_DIRECTION_ROW":return"row";
case "FLEXBOX_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "FLEXBOX_FLEX_DIRECTION_COLUMN":return"column";case "FLEXBOX_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse";default:return""}},Syc=function(a){switch(a){case "FLEXBOX_JUSTIFY_CONTENT_CENTER":return"center";
case "FLEXBOX_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "FLEXBOX_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around";default:return""}},Tyc=function(a){switch(a){case "FLEXBOX_ALIGN_ITEMS_CENTER":return"center";
case "FLEXBOX_ALIGN_ITEMS_START":return"flex-start";case "FLEXBOX_ALIGN_ITEMS_END":return"flex-end";case "FLEXBOX_ALIGN_ITEMS_STRETCH":return"stretch";default:return""}},Uyc=function(a,b,c){b.forEach(function(d){_.tF(_.v().resolve(_.AH),d)});
_.lo(a,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",c])},Yyc=function(a,b,c,d){var e=_.y(c,_.WE).commandLifeCycleConfig;
e&&e.onStartCommand&&_.po(a,[e.onStartCommand],b);_.gw(b);var g=_.Pt.instance;g&&_.Qt(g,c)?_.Rt(g,c,d).then(function(k){if(!k||(k==null?0:k.error))return k=_.y(c,_.WE).serializedTransactionFlowLoggingParams,_.hw(b),_.On(new oZ("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",k));_.hw(b);return{data:k}}).then(function(k){_.hw(b);
Vyc(k.data);var m=k.data.command;m&&_.po(a,[m],b);m=Wyc(c,k.data);if(!m){var n=k.data;k=!1;if(n&&n.command&&_.y(n.command,_.ro)){var r;n=((r=_.y(n.command,_.ro))==null?void 0:r.commands)||[];for(r=0;r<n.length;r++)if(_.y(n[r],_.aGb)){k=!0;break}}k||_.CG('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!m&&e&&e.onSuccessCommand?_.po(a,[e.onSuccessCommand],b):m&&e&&e.onFailureCommand&&_.po(a,[e.onFailureCommand],b)},function(){_.hw(b);
e&&e.onFailureCommand&&_.po(a,[e.onFailureCommand],b);Xyc(c)}):_.Bl(Error("Bl"),"ERROR")},Zyc=function(a,b,c){var d=[b];
c&&d.push(c);return _.oo(a,d).then(function(e){var g=_.y(b,_.WE).serializedTransactionFlowLoggingParams,k=e.data,m=Wyc(b,k);m?e=_.On(new oZ(m,g)):Vyc(k);return e},function(){var e=_.y(b,_.WE).serializedTransactionFlowLoggingParams;
Xyc(b);return _.On(new oZ("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",e))})},Wyc=function(a,b){a=_.y(a,_.WE).serializedTransactionFlowLoggingParams;
var c=null;switch(b.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":c="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":c="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":c="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}c?_.Pq(c,a):auc(a);return c},Xyc=function(a){_.Pq("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.y(a,_.WE).serializedTransactionFlowLoggingParams)},
Vyc=function(a){if(a.trackingParams){var b=_.En(),c=_.Dn();
b&&c&&_.To(b,c,_.ps(a.trackingParams))}},$yc=function(a,b,c){var d=_.Pt.instance,e=_.$4a(_.Fi("YPC_MB_URL")),g=(new _.Y4a).init(),k=_.Z4a(),m=_.y(c,_.XFb).languageCode;
m===void 0?_.Bl(Error("Gi"),"ERROR"):_.Kz([g,e]).then(function(){var n={ctk:payments.business.integration.ClientTokenFactory.createClientToken(m,k)};d&&_.Qt(d,c)?_.Rt(d,c,n).then(function(r){return{data:r}}).then(function(r){_.io(b,"yt-service-request-completed",r);
r.code!=="ERROR"&&(r=r.data.command)&&_.po(a,[r],b)}):_.Bl(Error("Bl"),"ERROR")})},czc=function(a,b,c,d){var e=_.Pt.instance;
e&&_.Qt(e,c)?_.Rt(e,c,d).then(function(g){return{data:g}}).then(function(g){azc(a,b,c,g)},function(){bzc(c)}):(e=_.v().resolve(_.Xi(_.xq)))&&e.requestDataForServiceEndpoint(c,d).then(function(g){azc(a,b,c,g)},function(){bzc(c)})},azc=function(a,b,c,d){_.io(b,"yt-service-request-completed",d);
if(d.code&&d.code=="ERROR")bzc(c);else{(d=d.data.commands)&&_.po(a,d,b);var e;(a=(e=_.y(c,_.cGb))==null?void 0:e.serializedYpcPauseFlowLoggingParams)&&a&&_.NW("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",a)}},bzc=function(a){var b;
(a=(b=_.y(a,_.cGb))==null?void 0:b.serializedYpcPauseFlowLoggingParams)&&a&&_.NW("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",a,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},fzc=function(a,b,c){var d=_.Pt.instance;
d&&_.Qt(d,c)?_.Rt(d,c).then(function(e){return{data:e}}).then(function(e){dzc(a,b,c,e)},function(){ezc(c)}):(d=_.v().resolve(_.Xi(_.xq)))&&d.requestDataForServiceEndpoint(c).then(function(e){dzc(a,b,c,e)},function(){ezc(c)})},dzc=function(a,b,c,d){_.io(b,"yt-service-request-completed",d);
d.code&&d.code=="ERROR"?ezc(c):((d=d.data.commands)&&_.po(a,d,b),(a=_.y(c,_.dGb).serializedYpcResumeFlowLoggingParams)&&a&&_.NW("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",a))},ezc=function(a){(a=_.y(a,_.dGb).serializedYpcResumeFlowLoggingParams)&&a&&_.NW("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",a,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},gzc=function(a){a=a===void 0?{}:a;
_.v().resolve(_.xec).showFeedbackDialog(a.customProductData,a.feedbackContent,a.onFeedbackSubmitted,a.bucket)},hzc=function(a){a=a===void 0?{}:a;
_.v().resolve(_.xec).showHelpDialog(a.helpContext,a.articleId,a.productData)},izc=function(){hzc()},jzc=function(){gzc()},lzc=function(a,b,c){var d,e,g,k,m,n,r;
return _.l(function(t){switch(t.nextAddress){case 1:d=_.y(a,kzc);if((e=d)==null?0:e.productId){n={productId:d.productId,bucket:d.bucket,enableAnonymousFeedback:(m=d.enableAnonymousFeedback)!=null?m:!0,allowNonLoggedInFeedback:!0};r={feedbackChoice:c.feedbackChoice};if(!_.w("web_collect_offline_state")){t.jumpTo(8);break}_.pe(t,9);return _.p(t,kuc(r),11)}k={bucket:(g=d)==null?void 0:g.bucket};if(!_.w("web_collect_offline_state")){t.jumpTo(4);break}k.customProductData={};_.pe(t,5);return _.p(t,kuc(k.customProductData),
7);case 7:_.Jj(t,4);break;case 5:_.te(t);case 4:gzc(k);t.jumpTo(0);break;case 11:_.Jj(t,8);break;case 9:_.te(t);case 8:_.T3a(r),_.S3a("GFEEDBACK",r),d.productId==="5295751"&&(r.client_attestation=Number(_.Fi("CATSTAT",0))),d.productId==="5295751"&&(r.client_time=Date.now()/1E3/3600),d.productId==="5295751"&&(r.original_playback_id=_.JKb||""),_.Lyb(n,r),_.ue(t)}})},mzc=function(a){if(a=_.y(a,_.ETa)){var b={bucket:a.bucketIdentifier};
a.additionalDatas&&(b.customProductData={},a.additionalDatas.forEach(function(c){if(c=c.userFeedbackEndpointProductSpecificValueData)b.customProductData[c.key]=c.value}));
gzc(b)}},nzc=function(a){var b=_.Ll.getInstance(),c=_.vo("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?"),d=_.vo("DELETE",void 0,"Delete"),e=_.vo("CANCEL",void 0,"Cancel");
c={openPopupAction:rsc(c,void 0,d,e,{signal:"DELETE_ALL_DOWNLOADS"})};_.RB(b,[c],a)},pzc=function(){return _.l(function(a){return a.nextAddress==1?_.p(a,_.v().resolve(_.iW),2):_.p(a,ozc(),0)})},qzc=function(a){var b,c;
return _.l(function(d){return d.nextAddress==1?(c=(b=_.y(a,_.Il))==null?void 0:b.targetId)?_.p(d,_.v().resolve(_.iW),3):d.jumpTo(0):_.p(d,_.v().resolve(_.hW).deleteVideo(c),0)})},szc=function(a){var b,c;
return _.l(function(d){return d.nextAddress==1?(c=(b=_.y(a,_.Il))==null?void 0:b.targetId)?_.p(d,_.v().resolve(_.iW),3):d.jumpTo(0):_.p(d,rzc(_.v().resolve(_.hW),c),0)})},uzc=function(a){var b,c;
return _.l(function(d){return(c=(b=_.y(a,_.Il))==null?void 0:b.targetId)?_.p(d,tzc(c),0):d.jumpTo(0)})},wzc=function(){_.w("kevlar_woffle_refresh_dl_load_killswitch")||vzc()},yzc=function(){_.w("kevlar_woffle")&&_.Lq.instance&&xzc()},Azc=function(a){var b;
if((b=_.y(a,_.qu))==null||!b.videoId)return!1;zzc(_.v().resolve(_.hW),_.y(a,_.qu),a.clickTrackingParams);return!0},Czc=function(a){var b;
if((b=_.y(a,_.ru))==null||!b.playlistId)return!1;Bzc(_.v().resolve(_.hW),_.y(a,_.ru),a.clickTrackingParams);return!0},Ezc=function(a){var b=_.y(a,_.fFb);
(b==null?void 0:b.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(b==null?void 0:b.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||Dzc(_.v().resolve(_.hW),_.y(a,_.fFb))},Gzc=function(a){a=_.y(a,_.LDb);
var b;(a==null?0:(b=a.actions)==null?0:b.length)&&Fzc(a)},Jzc=function(a){var b,c;
return _.l(function(d){b=_.y(a,Hzc);return(c=b)!=null&&c.localWatchHistoryCommandType?_.p(d,Izc(b),0):d.return()})},Kzc=function(a){setTimeout(function(){requestAnimationFrame(a)},80)},Lzc=function(a){return Object.entries(a).map(function(b){return b.join(":")}).join(";")},Nzc=function(a){var b,c,d;
_.l(function(e){if(e.nextAddress==1)return _.p(e,Mzc(),2);b=e.yieldResult;c=_.gs.instance;switch(b){case "granted":d=a.getLocationCommand;break;case "denied":d=a.openDeniedDialogAction;break;case "prompt":d=a.openCollectionDialogAction;break;default:d=a.openCollectionDialogAction}d&&c.resolveCommand(d);_.ue(e)})},Mzc=function(){var a,b;
return _.l(function(c){if(c.nextAddress==1)return a="prompt",navigator.permissions?_.p(c,navigator.permissions.query({name:"geolocation"}),3):c.jumpTo(2);c.nextAddress!=2&&(b=c.yieldResult,a=b.state);return c.return(a)})},Pzc=function(){_.l(function(a){return _.p(a,_.Ozc(),0)})},Qzc=function(){var a,b,c;
return _.l(function(d){if(d.nextAddress==1)return a=_.v().resolve(_.yq),a?_.p(d,_.Rt(a,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Dl(Error("El")),d.return(void 0));if(b=d.yieldResult){if(b.errorMetadata)return _.Dl(Error("Fl`"+b.errorMetadata.status+"`"+b.error)),d.return(void 0);c=b.datasyncIds;_.zfc=c.length;return d.return(c)}_.Dl(Error("Gl"));return d.return(void 0)})},Rzc=function(){Qzc().then(function(a){a&&(Ksc(a),cuc(a),Atc(a),muc(a))})},Szc=function(a){_.zk.addLowPriorityJob(function(){var b,
c,d,e,g;
return _.l(function(k){switch(k.nextAddress){case 1:if(_.w("ytidb_clear_optimizations_killswitch")){k.jumpTo(2);break}b=_.oj("clear");if(b.startsWith("V")&&b.endsWith("||")){var m=[b];Ksc(m);cuc(m);Atc(m);muc(m);return k.return()}c=Btc();d=nuc();return _.p(k,duc(),3);case 3:return e=k.yieldResult,_.p(k,Lsc(),4);case 4:if(g=k.yieldResult,!(c||d||e||g))return k.return();case 2:a.isNetworkAvailable()?Rzc():a.listenOnce("publicytnetworkstatus-online",Rzc),_.ue(k)}})})},pZ=function(a){a={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.Vp(a)}}}};_.gs.instance&&_.gs.instance.resolveCommand(a)},Tzc=function(a){if(a){var b=_.ls();
_.pF(b,3854,void 0,{layer:0,parentLayer:4});switch(a){case 1:var c=238708;break;case 2:c=238715;break;case 3:c=238710;break;case 6:c=238709}c&&(a=_.ks(b,{veType:c}))&&_.sF(b,a)}},Uzc=function(a){if(a){var b=_.ls();
_.pF(b,3854,void 0,{layer:0,parentLayer:4});switch(a){case 1:var c=238714;break;case 2:c=238711;break;case 8:c=238709;break;case 7:c=238713;break;case 3:case 4:case 5:c=238712}c&&(a=_.ks(b,{veType:c}))&&_.sF(b,a)}},Vzc=function(a){switch(a.latencyType){case 0:_.Ko("consent_primitive_flow");
_.Lo("cpit",a.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Lo("cpist",a.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Lo("cprtif",a.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Lo("cprtli",a.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Lo("cprt",a.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Lo("cpdt",a.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.Lo("cpjct",a.timestampEpochMillis,"consent_primitive_flow")}},
eAc=function(a,b){var c,d,e,g,k,m,n,r,t,u,x,A,C,F,J,I,R,da,V,fa;
return _.l(function(aa){switch(aa.nextAddress){case 1:_.pe(aa,2);(d=(c=_.y(a,Wzc))==null?void 0:c.serializedConsentRequest)||(d=(e=_.y(a,Xzc))==null?void 0:e.serializedConsentRequest);d&&(g=Yzc(_.cb(d)));if(g===void 0)return aa.return();k=Zzc(g);k.latencyCallback=Vzc;b&&$zc(k,function(){b.then(function(ma){ma.pauseVideo();(new aAc).increment()})});
return((m=_.y(a,Wzc))==null?void 0:m.consentAction)==="CONSENT_ACTION_PREWARM"||((n=_.y(a,Xzc))==null?void 0:n.consentAction)==="CONSENT_ACTION_PREWARM"?_.p(aa,bAc(k),5):_.p(aa,cAc(k),6);case 6:r=aa.yieldResult;t=_.Kx(r,qZ);if(t===1){if(((u=_.Xx(r,rZ,1,qZ))==null?void 0:_.Ux(u,1))===1||((x=_.Xx(r,rZ,1,qZ))==null?void 0:_.Ux(x,1))===2||((A=_.Xx(r,rZ,1,qZ))==null?void 0:_.Ux(A,1))===3)_.y(a,Xzc)?pZ(_.vo("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
pZ(_.vo("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));Tzc((C=_.Xx(r,rZ,1,qZ))==null?void 0:_.Ux(C,1),_.Zf(r,dAc,3,_.$f()))}else t===2?(((F=sZ(r))==null?void 0:_.Ux(F,1))===5?_.y(a,Xzc)?pZ(_.vo("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):pZ(_.vo("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((J=sZ(r))==null?void 0:_.Ux(J,1))===1||((I=sZ(r))==null?void 0:_.Ux(I,1))===4?pZ(_.vo("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((R=sZ(r))==null?void 0:_.Ux(R,1))===7&&((da=g)==null?void 0:(V=_.Xj(da,tZ,4))==null?void 0:_.Ux(V,4))!==1&&pZ(_.vo("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),Uzc((fa=sZ(r))==null?void 0:_.Ux(fa,1))):pZ(_.vo("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));aa.jumpTo(5);break;case 5:_.Jj(aa,0);break;case 2:_.te(aa),pZ(_.vo("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.ue(aa)}})},gAc=
function(){if(!fAc.has("Worker")){fAc.set("Worker",!0);
var a={api:"BROWSER_API_WEB_WORKER"};a.available="Worker"in window?!0:!1;_.xl("apiTest",a)}},hAc=function(a){return typeof a==="undefined"?"-1":String(Math.ceil(a/1048576))},lAc=function(a,b){iAc(new jAc(_.y(b,kAc).addToken,_.y(b,kAc).commonToken)).then(function(){_.io(a,"yt-invoke-instrument-manager-action-completed")},function(c){_.io(a,"yt-invoke-instrument-manager-action-error",c)})},mAc={},nAc=function(a){return _.Tja(mAc,a,function(){return pY(_.B9a,a)>=0})},oAc=function(a){return _.by(a)},
pAc=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},qAc=function(a,b){b=a.aspectRatio()<=b.aspectRatio()?b.width/a.width:b.height/a.height;
a.scale(b)},rAc=function(a,b){b=a.aspectRatio()>b.aspectRatio()?b.width/a.width:b.height/a.height;
return a.scale(b)},sAc=function(a){var b=new _.vz;
return _.Yx(b,11,a)},tAc=function(a){var b={};
a=a.getAllResponseHeaders().split("\r\n");for(var c=0;c<a.length;c++)if(!_.pa(a[c])){var d=pAc(a[c]),e=d[0];d=d[1];if(typeof d==="string"){d=d.trim();var g=b[e]||[];b[e]=g;g.push(d)}}return _.Cf.map(b,function(k){return k.join(", ")})},DY=function(a,b){return a.JSC$7645_xhr_?a.JSC$7645_xhr_.getResponseHeader(b):null},uZ=function(a,b,c){Array.isArray(c)||(c=[String(c)]);
_.zib(a.JSC$7876_queryData_,b,c);return a},xzc=function(){var a=_.Lq.instance;
_.l(function(b){return a.deferredInstallPrompt?_.p(b,a.deferredInstallPrompt.prompt(),0):b.jumpTo(0)})},uAc=function(a,b,c){if(_.Sa(a))_.Mi(a,b,c);
else for(a=_.Dmb(a);;){var d=a.next();if(d.done)break;b.call(c,d.value,void 0,a)}},vAc={AND_START:["{0}, {1}",
"{0}, {1}","{0}, {1}"],AND_TWO:["{0} and {1}","{0} & {1}","{0}, {1}"],AND_END:["{0}, and {1}","{0}, & {1}","{0}, {1}"],OR_TWO:["{0} or {1}","{0} or {1}","{0} or {1}"],OR_END:["{0}, or {1}","{0}, or {1}","{0}, or {1}"],UNIT_START:["{0}, {1}","{0}, {1}","{0} {1}"],UNIT_MIDDLE:["{0}, {1}","{0}, {1}","{0} {1}"],UNIT_END:["{0}, {1}","{0}, {1}","{0} {1}"]},qBc,rBc,sBc,tBc,uBc,vBc,wBc,xBc,yBc,tzc,rzc,ozc,zBc,ABc,BBc,CBc,DBc,Bzc,zzc,EBc,FBc,GBc,vzc,Dzc,HBc,Fzc,IBc,Izc,JBc,KBc,LBc,MBc,NBc,OBc,PBc,AZ,QBc,RBc,
qxc,nxc,SBc,TBc,UBc,VBc,WBc,XBc,YBc,ZBc,$Bc,aCc,bCc;vAc={AND_START:["{0}, {1}","{0}, {1}","{0}, {1}"],AND_TWO:["{0} and {1}","{0} & {1}","{0}, {1}"],AND_END:["{0}, and {1}","{0}, & {1}","{0}, {1}"],OR_TWO:["{0} or {1}","{0} or {1}","{0} or {1}"],OR_END:["{0}, or {1}","{0}, or {1}","{0}, or {1}"],UNIT_START:["{0}, {1}","{0}, {1}","{0} {1}"],UNIT_MIDDLE:["{0}, {1}","{0}, {1}","{0} {1}"],UNIT_END:["{0}, {1}","{0}, {1}","{0} {1}"]};
var wAc=function(a,b){var c=[];uAc(b,function(d){try{var e=_.dn.prototype.getWrapper.call(this,d,!0)}catch(g){if(g=="Storage: Invalid value was encountered")return;throw g;}e===void 0?c.push(d):_.Cmb(e)&&c.push(d)},a);
return c},xAc=function(a,b){wAc(a,b).forEach(function(c){_.dn.prototype.remove.call(this,c)},a)},yAc=function(a){var b=_.$D;
b._minimumZ=Math.max(b._minimumZ,a)},zAc=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],AAc=function(a,b){_.Xf(a.qc);a.qc=b},BAc=function(a,b,c,d){a.setState(5);
var e=!!a.x1a&&zAc.includes(_.Si(a.x1a)||"");try{var g=new _.Tz({program:b,globalName:c,u8:{disable:!_.w("att_web_record_metrics")||!_.w("att_skip_metrics_for_cookieless_domains_ks")&&e,ru:"aGIf"}});g.gba.then(function(){a.setState(6);d&&d(b)});
AAc(a,g)}catch(k){a.setState(7),k instanceof Error&&_.Dl(k)}},CAc=function(a,b,c,d,e,g){var k=k===void 0?"trayride":k;
c?(a.setState(2),_.Kn(c,function(){if(window[k])BAc(a,d,k,e);else{a.setState(3);var m=_.EBa(c),n=document.getElementById(m);n&&(_.Osa(m),n.parentNode.removeChild(n));_.Dl(new _.qj("BL:ULB",c))}},g)):b?(g=_.pg("SCRIPT"),b instanceof _.Vd?_.Yd(g,b):g.textContent=b,g.nonce=_.Ud(document),document.head.appendChild(g),document.head.removeChild(g),window[k]?BAc(a,d,k,e):(a.setState(4),_.Dl(new _.qj("BL:ULBJ")))):_.Dl(new _.qj("BL:ULV"))},DAc=function(){this.state=1;
this.qc=null;this.x1a=void 0};
_.f=DAc.prototype;_.f.initialize=function(a,b,c,d){this.x1a=d;if(a.program){var e;d=(e=a.interpreterUrl)!=null?e:null;if(a.interpreterSafeScript)e=_.jra(a.interpreterSafeScript);else{var g;e=(g=a.interpreterScript)!=null?g:null}a.interpreterSafeUrl&&(d=_.Ak(a.interpreterSafeUrl).toString());CAc(this,e,d,a.program,b,c)}else _.Dl(Error("of"))};
_.f.isInitialized=function(){return!!this.qc};
_.f.getState=function(){return this.state};
_.f.isLoading=function(){return this.state===2};
_.f.invoke=function(a){a=a===void 0?{}:a;var b;this.qc?b=_.qgb(this.qc,{ew:a}):b=null;return b};
_.f.dispose=function(){AAc(this,null);this.setState(8)};
_.f.setState=function(a){this.state=a};
var EAc=function(a,b){return a.qc.snapshot(b)},FAc=function(a,b){var c=_.$i("botguard_async_snapshot_timeout_ms",3E3);
b=b===void 0?{}:b;c=c===void 0?3E3:c;return a.qc?new Promise(function(d,e){var g=!1,k=_.zk.addJob(function(){g=!0;e(Error("pf"))},1,c);
a.qc?EAc(a,{ew:b}).then(function(m){_.zk.cancelJob(k);g||d(m)}).catch(function(m){_.zk.cancelJob(k);
g||e(m)}):(_.zk.cancelJob(k),d(null))}):Promise.resolve(null)},GAc=["att/log"],HAc;
HAc={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var IAc={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},JAc=function(a,b){return _.up(a,{mode:"readwrite",enableRetries:!0},function(c){return _.mEa(c,b,"settingEntity")})},KAc=function(a,b,c){return _.up(a,{mode:"readonly",
enableRetries:!0},function(d){return _.zJb(d,b,c)})},LAc=function(a){if(!a.storage)return!1;
a:{if(a.storage){try{var b=a.storage.get("TLPQtimestamp")}catch(c){}a=Number(b);if(!isNaN(a))break a}a=void 0}return a?Date.now()-a<864E5:!1},MAc=function(a,b){a.queueProxy&&b.forEach(function(c){if(c.videoId&&c.trackingParams&&a.queueProxy instanceof _.PF){var d=_.En();
a.queueProxy.attributionData.set(c.videoId,{enqueueingVe:_.ps(c.trackingParams).getAsJson(),enqueueingCsn:d?d:void 0,clientEnqueueingTimeMs:Math.floor((0,_.Uj)()).toString()})}})},NAc=function(a){var b=_.aLb(a);
b!=a.currentSnapState_&&(a.currentSnapState_=b,a.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},vZ=function(a){this.JSC$10786_networkManager_=a;
this.partCallbacks_=[]};
vZ.prototype.getCacheKeyForEndpoint=function(a){return _.mIa(a,!1)};
vZ.prototype.onPartsCallback_=function(a){this.partCallbacks_.forEach(function(b){a&&b(a)})};
var wZ=function(a,b,c){vZ.call(this,a);this.player_=b;this.autoplayData_=c};
_.z(wZ,vZ);wZ.prototype.getCacheKeyForEndpoint=function(a){return _.mIa(a,!!this.autoplayData_)};
wZ.prototype.getTempData=function(a,b){b=b.timeBeforeNextVideo;a={itct:a.clickTrackingParams,lact:_.Yk(),pbis:b,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(a.autonav=1);return a};
wZ.prototype.getXhrParams=function(a){return Object.assign({pbj:"prefetch"},a)};
wZ.prototype.getParams=function(a){a={frags:a.fragmentsRequested.join(",")};_.w("kevlar_droppable_prefetchable_requests")&&(a.prefetch=1);return a};
var OAc=function(a){a.playerEvents_.forEach(function(b){a.player.removeEventListener(b.eventName,b.callback)});
a.playerEvents_.length=0},xZ=function(a,b,c){this.player=a;
this.JSC$10796_taskManager=b;this.prefetchDelay=c;this.completionResolver_=null;this.playerEvents_=[]};
xZ.prototype.start=function(){var a=this;this.completionResolver_=_.St();_.Lz(this.completionResolver_.promise,function(){OAc(a);a.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var PAc=function(a,b,c){a.player.addEventListener(b,c);a.playerEvents_.push({eventName:b,callback:c})},QAc={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},RAc={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},SAc=function(a,b,c){xZ.call(this,a,b,c);this.cueId_="playbackTrigger-"+Math.random()};
_.z(SAc,xZ);
SAc.prototype.prepareTrigger=function(a){var b=this,c=this.player.getDuration(),d=this.player.getVideoData(),e=d.isLive&&d.hasProgressBarBoundaries;if(e&&d.progressBarEndPositionUtcTimeMillis){var g=d.progressBarEndPositionUtcTimeMillis/1E3;isNaN(g)||(c=g)}var k=0;this.prefetchDelay>=0?e?d.progressBarStartPositionUtcTimeMillis&&(d=d.progressBarStartPositionUtcTimeMillis/1E3,isNaN(d)||(k=d+this.prefetchDelay)):k=this.prefetchDelay:k=c+this.prefetchDelay;e?this.player.addUtcCueRange(this.cueId_,k,c):
this.player.addCueRange(this.cueId_,k,c);_.Lz(a.promise,function(){b.player.removeCueRange(b.cueId_)});
PAc(this,"onCueRangeEnter",function(m){m==b.cueId_&&a.resolve(c-k)})};
var TAc=function(a,b){a.fragmentConfiguration_[b].requiredKeys.every(function(c){return!!a.prefetchedData_[c]})&&(a.validatedFragments_.push(b),b=a.missingFragments_.indexOf(b),b!==-1&&a.missingFragments_.splice(b,1))},UAc=function(a){a.prefetchedFragments_.forEach(function(b){TAc(a,b)})},VAc=function(a,b,c){this.pageFragments_=a;
this.prefetchedFragments_=b;this.fragmentConfiguration_=RAc;this.prefetchedData_=c;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;UAc(this)},WAc=function(){},XAc=function(a){this.JSC$10810_playlistManager_=a};
_.z(XAc,WAc);XAc.prototype.getPrefetchEndpoint=function(){return this.JSC$10810_playlistManager_.getAutoplayEndpoint()};
var YAc=function(a){this.autonavEndpoints_=a};
_.z(YAc,WAc);YAc.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var ZAc=function(a,b,c,d,e){this.autonavEndpoints=a;this.foregroundTrigger=b;this.backgroundTrigger=c;this.pageType=d;this.isInPlaylist=e},$Ac=function(a,b){if(a.webPrefetchData&&a.webPrefetchData.navigationEndpoints&&a.webPrefetchData.navigationEndpoints.length){a=a.webPrefetchData.navigationEndpoints;
var c=_.y(a[0],_.Un);if(c.watchEndpointSupportedPrefetchConfig&&c.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var d=c.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;c=d.playbackRelativeSecondsPrefetchCondition;c=typeof c==="number"&&Math.abs(c)<b.videoDuration?c:void 0;d=d.countdownUiRelativeSecondsPrefetchCondition;d=typeof d!=="number"||_.w("prefetch_job_config_cleanup_ks")&&b.inPlaylist?void 0:d;if(typeof d==="number")return new ZAc(a,b.makeUpNextTrigger(d),b.makePlaybackTrigger(d),
"watch",b.inPlaylist);if(typeof c==="number")return new ZAc(a,b.makePlaybackTrigger(c),null,"watch",b.inPlaylist)}}},aBc=function(a){return a.prefetchJobConfig_.backgroundTrigger?_.Ii(_.HCa)()==0?a.prefetchJobConfig_.backgroundTrigger:a.prefetchJobConfig_.foregroundTrigger:a.prefetchJobConfig_.foregroundTrigger},bBc=function(a){_.Gz(document,"visibilitychange",a.onVisibilityChange_,!1,a)},yZ=function(a){vZ.call(this,a)};
_.z(yZ,vZ);yZ.prototype.getCacheKeyForEndpoint=function(a){return vZ.prototype.getCacheKeyForEndpoint.call(this,a)};
yZ.prototype.getTempData=function(){return{}};
yZ.prototype.getXhrParams=function(a){return a};
yZ.prototype.getParams=function(){return{}};
var cBc=function(a,b,c){var d=a.prefetchDelay*1E3;if(Math.abs(d)>b)c.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var e=d,g=b-d;d<0&&(e=b+d,g=Math.abs(d));var k=a.JSC$10796_taskManager.addJob(function(){c.resolve(g/1E3)},10,e);
c.promise.thenCatch(function(){a.JSC$10796_taskManager.cancelJob(k)})}},dBc=function(a,b,c){xZ.call(this,a,b,c)};
_.z(dBc,xZ);dBc.prototype.prepareTrigger=function(a){var b=this;PAc(this,"onAutonavCoundownStarted",function(c){cBc(b,c,a)})};
var eBc=function(a){a.pendingPrefetchJob_&&(a.pendingPrefetchJob_.cancel(),a.pendingPrefetchJob_=null)},fBc=function(a,b,c){if(!a.triggeredTargets.has(b)){var d=_.NLb(a,b);
d.action=c;_.LLb(a,b,d)}},gBc=function(a){_.SOb();
_.VCa("cpt")&&_.Dl(Error("oh"));_.ja.requestAnimationFrame(function(){_.ja.setTimeout(function(){_.Lo("cpt");var b=_.Oo("vpl"),c=_.Oo("cpt");b&&c&&_.Lo("ol",Math.max(b,c))})});
try{_.Lo("fr_s"),a()}catch(b){_.Bl(b)}_.ja.requestAnimationFrame(function(){_.Lo("bcp")})},hBc=function(a,b){a.serviceEndpointHandlers.push(b)},iBc=function(a,b){b=a.pendingPages_.indexOf(b);
b>-1&&a.pendingPages_.splice(b,1)},jBc=function(a,b){var c=_.jVb.indexOf(b);
c>-1&&_.jVb.splice(c,1);a.targetPage_==b?(a.abort(),_.lVb(a)):iBc(a,b)},kBc=function(a,b,c,d){b={challenge:b};
c&&(b.webResponse=c);return _.RF(a.innertubeTransportService,b,_.Zp(GAc),d)},lBc=function(a,b,c){if(!b.challenge)throw Error("qi");
if(b.botguardData&&b.botguardData.program){var d=new DAc;d.initialize(b.botguardData,function(){FAc(d,{atr_challenge:b.challenge}).then(function(e){if(!e)throw Error("ri");return kBc(a,b.challenge,e,c)}).catch(function(e){_.Dl(e);
return kBc(a,b.challenge,void 0,c)})},void 0)}else kBc(a,b.challenge,void 0,c)},mBc=function(a,b,c){var d={};
b.ids&&(d.ids=[].concat(_.De(b.ids)));b.engagementType&&(d.engagementType=b.engagementType);return _.RF(a.innertubeTransportService,d,_.Zp(_.QGb),c).then(function(e){if(!e)throw new _.qj("GetAttestationChallenge returned falsy");lBc(a,e,c)}).thenCatch(function(e){_.Bl(e)})},nBc=function(a,b,c){return new _.il(function(d,e){var g;
return _.l(function(k){if(k.nextAddress==1){var m=b.engagementType,n=b.ids,r={};n=_.h(n!=null?n:[]);for(var t=n.next();!t.done;t=n.next())t=t.value,t.encryptedVideoId?r.encryptedVideoId=t.encryptedVideoId:t.externalChannelId?r.externalChannelId=t.externalChannelId:t.commentId?r.commentId=t.commentId:t.externalOwnerId?r.externalOwnerId=t.externalOwnerId:t.artistId?r.artistId=t.artistId:t.playlistId?r.playlistId=t.playlistId:t.externalPostId?r.externalPostId=t.externalPostId:t.shareId&&(r.shareId=t.shareId);
return _.p(k,qsc(m,r),2)}g=k.yieldResult;if(!g.challenge)return _.Dl(Error("si")),mBc(a,b,c).then(d,e),k.return();m=g;r={challenge:m.challenge};r.webResponse=m.webResponse;r.engagementType=b.engagementType;r.ids=b.ids;_.RF(a.innertubeTransportService,r,_.Zp(GAc),c).then(d,e);_.ue(k)})})},txc=function(a,b){var c,d,e,g;
_.l(function(k){if(k.nextAddress==1){c=_.y(b,_.bAb);if(!(c&&c.listId&&a.response&&a.response.playingVideoId)||a.listId!==c.listId)return k.return();a.index===void 0&&(a.index=0);return _.p(k,_.gKb(a.JSC$10619_playlistNetworkManager,c.listId,a.index,a.response.playingVideoId),2)}d=k.yieldResult;if(!d)return k.return();e=d.playlistId;g=d.playlistPanelRenderer;a.setPlaylistData(e,g,d.autoplayRenderer);_.ue(k)})},oBc=function(a,b,c){var d=a.getParams(c),e=_.uua(b,d),g=a.getTempData(b,c);
g.endpoint=JSON.stringify(b);_.w("enable_unknown_lact_fix_on_html5")&&(_.v().resolve(_.Ct),g.lact=_.Yk());var k={headers:{"X-YouTube-STS":_.Fi("STS"),"x-youtube-csoc":1}};_.ao(e,g);return new _.il(function(m,n){var r=a.getXhrParams(d),t;_.w("kevlar_cache_on_ttl_player")&&(t=_.pG.instance);t&&_.qLb(t,b)?_.yLb(t,b,g,window.location.href).then(function(u){u?m(u):n()},n):_.rRb(a.JSC$10786_networkManager_,b,r,a.onPartsCallback_.bind(a),k).then(function(u){u?m(u):n()},n)})},pBc=function(a,b){a.triggerPromise_=
b.start();
a.triggerPromise_.then(function(c){var d=a.prefetchEndpointProvider_.getPrefetchEndpoint();if(d){var e=QAc[a.prefetchJobConfig_.pageType].prefetchedFragments;a.prefetchRequestPromise_=oBc(a.JSC$10822_networkPrefetchRequest_,d,{fragmentsRequested:e,timeBeforeNextVideo:c});a.prefetchResponseCacheKey_=a.JSC$10822_networkPrefetchRequest_.getCacheKeyForEndpoint(d);bBc(a);a.prefetchRequestPromise_.then(function(g){a.storePrefetchedDataCallback_(a.prefetchResponseCacheKey_,g);if(_.w("web_prefetch_preload_video")&&
e.length===1&&e[0]==="pl"&&g&&!g.playerAds&&!g.adPlacements){var k=_.y(d,_.uq),m=k!=null,n={raw_player_response:g,watch_endpoint:k};(g=_.v().resolve(m?_.QJb:_.fu))&&d&&g.then(function(r){m&&_.w("web_queue_preload_video")?(n.prefer_gapless=!0,r.queueNextVideo(n)):r.preloadVideoByPlayerVars(n)})}})}})},zZ=function(a,b,c,d){this.prefetchEndpointProvider_=a;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=b;this.prefetchJobConfig_=c;this.JSC$10822_networkPrefetchRequest_=d;this.prefetchResponseCacheKey_=null};
zZ.prototype.enqueue=function(){this.triggerPromise_||(pBc(this,aBc(this)),_.rs(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
zZ.prototype.resolve=function(){this.cancel()};
zZ.prototype.cancel=function(){this.triggerPromise_&&this.triggerPromise_.cancel("Prefetch job cancelled, trigger promise cancelled.");this.prefetchRequestPromise_&&this.prefetchRequestPromise_.cancel("Prefetch job cancelled, request promise cancelled.");bBc(this)};
zZ.prototype.onVisibilityChange_=function(){var a=this;_.Ii(_.HCa)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){a.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||pBc(this,aBc(this))};
qBc=function(a,b,c,d,e){b&&(b==null?0:b.videoId)&&c&&c.entries&&_.w("kevlar_enable_shorts_prefetch_in_sequence")&&(eBc(a),b=c.entries.map(function(g){var k;return(k=_.y(g.command,_.uq))==null?void 0:k.videoId}).indexOf(b.videoId),c=c.entries[b+1],c!=null&&c.command&&!_.y(c==null?void 0:c.command,_.PE)&&(d=new ZAc([c.command],new SAc(d,_.zk,1),null,"shorts",!1),a.pendingPrefetchJob_=new zZ(new YAc(d.autonavEndpoints),function(){return!1},d,new yZ(e)),a.pendingPrefetchJob_.enqueue()))};
rBc=function(a,b,c,d,e,g){var k=_.fF.getInstance();if(!_.w("block_all_player_prefetch_requests")){eBc(a);var m=!!c.getPlaylistId(),n=c.getVideoData().isLive&&c.getVideoData().hasProgressBarBoundaries;if((k.getState()==2||m||n)&&(!c.getVideoData().isLive||n)){k={inPlaylist:m,videoDuration:c.getDuration(),makeUpNextTrigger:function(t){return new dBc(c,_.zk,t)},
makePlaybackTrigger:function(t){return new SAc(c,_.zk,t)}};
var r=$Ac(b,k);r&&(a.pendingPrefetchJob_=new zZ(r.isInPlaylist?new XAc(e):new YAc(r.autonavEndpoints),function(t,u){u=new VAc(QAc[r.pageType].pageFragments,QAc[r.pageType].prefetchedFragments,u);return _.CLb(u)?(a.prefetchCache_.set(t,u),!0):!1},r,new wZ(d,c,g,e)),a.pendingPrefetchJob_.enqueue())}}};
sBc=function(){var a=_.YF();a.signals.parkOrScheduleJob(function(){var b=a.storage;if(b.storage)if(LAc(b)){var c=b.getPlaylistId();b=b.getIndex();c=!!c&&b!==void 0}else b.clear(),c=!1;else c=!1;if(c){c=a.pageManager.isOnWatch();a:{var d=a.storage;if(d.storage&&LAc(d)&&(b=d.getPlaylistId(),d=d.getIndex(),b&&d!==void 0)){c={recoverPlaylistCommand:{listId:b,index:d,openMiniplayer:!c,openListPanel:c,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}c=void 0}c&&_.RB(a.JSC$10619_actionRouter,[c],null)}},
0,"ma")};
tBc=function(a,b,c,d,e,g){var k=_.ku(7111);_.qF(a.JSC$15936_screenManager,k,g?_.ps(g):void 0);_.sF(a.JSC$15936_screenManager,k,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:d,offlineId:b,offlineabilityFormatType:c,isDefaultFormatType:e==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:e}})};
uBc=function(a,b,c,d,e){var g,k,m,n,r;return _.l(function(t){if(t.nextAddress==1)return _.p(t,a.JSC$15936_playerApiPromise,2);g=t.yieldResult;tBc(a,b,c,"OFFLINE_OBJECT_TYPE_PLAYLIST",d,e);if(m=_.GJb[a.entityTypeMap.listEntityType])r={},k=(r[m]={maximumDownloadQuality:(n=c)!=null?n:void 0},r);return _.p(t,g.queueOfflineAction(b,a.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",k),0)})};
vBc=function(a,b){var c,d,e,g;return _.l(function(k){if(k.nextAddress==1)return _.p(k,a.JSC$15936_persistentStorePromiseAccessor(),2);if(k.nextAddress!=3){c=k.yieldResult;if(!c)return _.Dl(new _.qj("PES is undefined")),k.return();d=_.mp(b,"downloadStatusEntity");return _.p(k,KAc(c,d,"downloadStatusEntity"),3)}e=k.yieldResult;return k.return((g=e)==null?void 0:g.downloadState)})};
wBc=function(a,b,c,d,e){var g,k,m,n,r,t;return _.l(function(u){switch(u.nextAddress){case 1:return _.p(u,a.JSC$15936_playerApiPromise,2);case 2:g=u.yieldResult;tBc(a,b,c,"OFFLINE_OBJECT_TYPE_VIDEO",d,e);if(m=_.GJb[a.entityTypeMap.singleEntityType])r={},k=(r[m]={maximumDownloadQuality:(n=c)!=null?n:void 0},r);return _.p(u,vBc(a,b),3);case 3:t=u.yieldResult;if(t!=="DOWNLOAD_STATE_USER_DELETED"){u.jumpTo(4);break}return _.p(u,a.deleteVideo(b),4);case 4:return _.p(u,g.queueOfflineAction(b,a.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",k),0)}})};
xBc=function(a,b,c,d,e){return _.l(function(g){return g.nextAddress==1?_.p(g,a.deleteVideo(b,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.p(g,wBc(a,b,c,d,e),0)})};
yBc=function(a,b,c){var d,e;return _.l(function(g){if(g.nextAddress==1)return _.p(g,a.JSC$15936_playerApiPromise,2);d=g.yieldResult;e=_.mp(b,"mainVideoDownloadStateEntity");return _.p(g,d.updateDownloadState(e,c),0)})};
tzc=function(a){var b=_.v().resolve(_.hW);return _.l(function(c){if(c.nextAddress==1)return b.previousDownloadStateForVideo[a]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&b.previousDownloadStateForVideo[a]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?c.jumpTo(2):_.p(c,b.resumeVideoDownload(a),2);if(c.nextAddress!=4)return _.p(c,yBc(b,a,b.previousDownloadStateForVideo[a]),4);delete b.previousDownloadStateForVideo[a];_.ue(c)})};
rzc=function(a,b){var c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$15936_playerApiPromise,2);c=d.yieldResult;return _.p(d,c.queueOfflineAction(b,a.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
ozc=function(){var a=_.v().resolve(_.hW),b,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$15936_playerApiPromise,2);if(d.nextAddress!=3)return b=d.yieldResult,c={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.p(d,b.queueOfflineAction("!*$_ALL_ENTITIES_!*$",a.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",c),3);var e=a.JSC$15936_commandHandler,g=e.resolveCommand,k=_.vo("DELETING_ALL",void 0,"Downloads are being deleted");
g.call(e,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.ep(k)}},popupType:"TOAST"}});_.ue(d)})};
zBc=function(a){var b,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$15936_prefStorage,2);b=d.yieldResult;return d.return((c=b)==null?void 0:c.get("sdois"))})};
ABc=function(a){var b,c,d,e,g,k;return _.l(function(m){if(m.nextAddress==1)return _.p(m,a.JSC$15936_persistentStorePromiseAccessor(),2);if(m.nextAddress!=3){b=m.yieldResult;if(!b)return _.Dl(new _.qj("PES is undefined")),m.return();c=_.mp("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.p(m,KAc(b,c,"settingEntity"),3)}d=m.yieldResult;return m.return((k=(e=d)==null?void 0:(g=e.settingOptionValue)==null?void 0:g.boolValue)!=null?k:!1)})};
BBc=function(a,b){var c,d,e,g;return _.l(function(k){switch(k.nextAddress){case 1:return((c=b)==null?void 0:c.formatType)===void 0?k.return():_.p(k,a.JSC$15936_prefStorage,2);case 2:d=k.yieldResult;if(d===void 0)return k.return();if(((e=b)==null?void 0:e.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.p(k,d.set("lmqf",b.formatType),8);if(((g=b)==null?void 0:g.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){k.jumpTo(0);break}return _.p(k,d.set("lmqf",b.formatType),
6);case 6:return _.p(k,d.set("lmqflst",Math.floor((0,_.Uj)())),0);case 8:return _.p(k,d.remove("lmqflst"),0)}})};
CBc=function(a){var b,c;return _.l(function(d){switch(d.nextAddress){case 1:return _.p(d,a.JSC$15936_prefStorage,2);case 2:b=d.yieldResult;if(!b){d.jumpTo(3);break}return _.p(d,b.get("lmqflst"),4);case 4:if(c=d.yieldResult,c!==void 0)return d.return(c);case 3:return d.return(0)}})};
DBc=function(a){var b,c;return _.l(function(d){switch(d.nextAddress){case 1:return _.p(d,a.JSC$15936_prefStorage,2);case 2:b=d.yieldResult;if(b===void 0){d.jumpTo(3);break}return _.p(d,b.get("lmqf"),4);case 4:if(c=d.yieldResult,c!==void 0)return d.return(c);case 3:return d.return("SD")}})};
Bzc=function(a,b,c){var d,e,g,k,m,n,r,t;_.l(function(u){switch(u.nextAddress){case 1:return _.p(u,BBc(a,(d=b)==null?void 0:d.actionParams),2);case 2:e=b.playlistId;if(!e)return u.return();if(b.action==="ACTION_ADD")return((k=b.actionParams)==null?0:k.formatType)?_.p(u,uBc(a,e,b.actionParams.formatType,(t=b.actionParams)==null?void 0:t.settingsAction,c),0):_.p(u,a.offlineWebClientEligibility,14);if(b.action==="ACTION_REMOVE_WITH_PROMPT"){var x=a.JSC$15936_commandHandler,A=x.resolveCommand,C=_.Fi("INNERTUBE_CLIENT_NAME"),
F=C==="WEB_REMIX"?_.vo("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.vo("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads"),J=C==="WEB_REMIX"?[_.vo("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];C=C==="WEB_REMIX"?_.vo("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.vo("DELETE",void 0,"Delete");var I=_.vo("CANCEL",void 0,"Cancel");F={openPopupAction:rsc(F,J,C,I,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:e})};A.call(x,F);
return u.return()}if(b.action==="ACTION_REMOVE")return _.p(u,rzc(a,e),0);if(b.action!=="ACTION_SYNC"){u.jumpTo(0);break}return _.p(u,a.JSC$15936_playerApiPromise,9);case 9:return g=u.yieldResult,_.p(u,g.queueOfflineAction(e,a.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return m=u.yieldResult,_.p(u,DBc(a),15);case 15:return n=u.yieldResult,_.p(u,CBc(a),16);case 16:r=u.yieldResult,b.onAddCommand&&a.JSC$15936_commandHandler.resolveCommand(b.onAddCommand,{form:{preferredFormatType:n,
offlineWebClientEligibility:m,lastOfflineQualitySettingsSavedMs:r.toString()}}),u.jumpTo(0)}})};
zzc=function(a,b,c){var d,e,g,k,m,n,r,t,u,x,A,C,F,J;_.l(function(I){switch(I.nextAddress){case 1:return _.p(I,BBc(a,(d=b)==null?void 0:d.actionParams),2);case 2:e=b.videoId;if(!e)return I.return();if(b.action==="ACTION_REMOVE_WITH_PROMPT"){var R=a.JSC$15936_commandHandler,da=R.resolveCommand,V=_.Fi("INNERTUBE_CLIENT_NAME"),fa=V==="WEB_REMIX"?_.vo("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.vo("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads"),aa=V==="WEB_REMIX"?[_.vo("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];V=V==="WEB_REMIX"?_.vo("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.vo("DELETE",void 0,"Delete");var ma=_.vo("CANCEL",void 0,"Cancel");fa={openPopupAction:rsc(fa,aa,V,ma,{signal:"DELETE_DOWNLOAD",targetId:e})};da.call(R,fa);return I.return()}if(b.action==="ACTION_ADD")return((x=b.actionParams)==null?0:x.formatType)?_.p(I,wBc(a,e,b.actionParams.formatType,(J=b.actionParams)==null?void 0:J.settingsAction,c),0):_.p(I,a.offlineWebClientEligibility,
23);if(b.action==="ACTION_RETRY")return _.p(I,DBc(a),19);if(b.action==="ACTION_PAUSE")return _.p(I,a.pauseVideoDownload(e),0);if(b.action==="ACTION_RESUME")return _.p(I,a.resumeVideoDownload(e),0);if(b.action!=="ACTION_REMOVE"){I.jumpTo(0);break}return _.p(I,vBc(a,e),13);case 13:return g=I.yieldResult,a.previousDownloadStateForVideo[e]=(k=g)!=null?k:"DOWNLOAD_STATE_UNKNOWN",_.p(I,yBc(a,e,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(a.previousDownloadStateForVideo[e]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
a.previousDownloadStateForVideo[e]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){I.jumpTo(15);break}return _.p(I,a.pauseVideoDownload(e),15);case 15:R=_.vo("DELETED_VIDEO",void 0,"Video deleted from downloads.");da=_.vo("UNDO_ACTION",void 0,"Undo");fa=_.vo("CLOSE",void 0,"Close");m={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.ep(R),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.ep(da),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:e}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:R+" "+da}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:e}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:fa}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};a.JSC$15936_commandHandler.resolveCommand(m);
I.jumpTo(0);break;case 19:n=I.yieldResult;n==="UNKNOWN_FORMAT_TYPE"&&(n="SD");r="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((t=b.actionParams)==null?0:t.formatType)n=b.actionParams.formatType,r=(u=b.actionParams)==null?void 0:u.settingsAction;return _.p(I,xBc(a,e,n,r,c),20);case 20:return I.return();case 23:return A=I.yieldResult,_.p(I,DBc(a),24);case 24:return C=I.yieldResult,_.p(I,CBc(a),25);case 25:F=I.yieldResult,b.onAddCommand&&a.JSC$15936_commandHandler.resolveCommand(b.onAddCommand,
{form:{preferredFormatType:C,offlineWebClientEligibility:A,lastOfflineQualitySettingsSavedMs:F.toString()}}),I.jumpTo(0)}})};
EBc=function(a,b){var c,d,e,g,k,m,n;return _.l(function(r){if(r.nextAddress==1)return _.p(r,a.JSC$15936_persistentStorePromiseAccessor(),2);c=r.yieldResult;if(!c)return _.Dl(new _.qj("PES is undefined")),r.return();if((d=b)==null||!d.settingItemId)return r.return();e=b;g=e.settingItemId;k=e.boolValue;m=_.mp(g,"settingEntity");n={key:m,settingOptionValue:{boolValue:k}};return _.p(r,JAc(c,n),0)})};
FBc=function(a,b){var c,d,e,g,k,m,n;return _.l(function(r){switch(r.nextAddress){case 1:return _.p(r,a.JSC$15936_prefStorage,2);case 2:return c=r.yieldResult,d=_.yo(),_.p(r,a.JSC$15936_persistentStorePromiseAccessor(),3);case 3:return e=r.yieldResult,c?e?_.p(r,c.get("sdois"),4):(_.Dl(new _.qj("PES is undefined")),r.return()):(_.Dl(new _.qj("prefStorage is undefined")),r.return());case 4:g=r.yieldResult;m=(k=b)==null?void 0:k.boolValue;m===void 0||_.w("kevlar_set_sd_enabled_flag_killswitch")||_.zo(0,
197,!0);g===void 0&&m===void 0&&(m=!1);if(m===void 0){r.jumpTo(0);break}return _.p(r,c.set("sdois",m),6);case 6:return _.w("kevlar_set_sd_enabled_flag_killswitch")||(_.zo(0,196,m),d.save()),n={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:m},_.p(r,EBc(a,n),0)}})};
GBc=function(a,b,c){var d,e,g,k,m;return _.l(function(n){switch(n.nextAddress){case 1:return _.p(n,zBc(a),2);case 2:return d=n.yieldResult,_.p(n,FBc(a,c),3);case 3:return _.p(n,zBc(a),4);case 4:return e=n.yieldResult,g=e!==d,_.p(n,ABc(a),5);case 5:k=n.yieldResult&&!_.w("kevlar_modern_downloads_page");if((m=!e&&!k)||g)return _.p(n,b.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);n.jumpTo(0)}})};
vzc=function(){var a=_.v().resolve(_.hW),b;_.l(function(c){switch(c.nextAddress){case 1:return _.p(c,a.JSC$15936_playerApiPromise,2);case 2:b=c.yieldResult;if(!_.w("kevlar_force_refresh_smart_downloads")){c.jumpTo(3);break}return _.p(c,b.refreshAllStaleEntities(0),4);case 4:return c.return();case 3:return _.p(c,b.refreshAllStaleEntities(),5);case 5:return _.p(c,GBc(a,b),0)}})};
Dzc=function(a,b){var c,d;_.l(function(e){switch(e.nextAddress){case 1:return _.p(e,a.JSC$15936_playerApiPromise,2);case 2:c=e.yieldResult;switch((d=b)==null?void 0:d.settingItemId){case "SMART_DOWNLOADS_ENABLED":return e.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return e.jumpTo(4)}e.jumpTo(0);break;case 3:return _.p(e,GBc(a,c,b),6);case 6:e.jumpTo(0);break;case 4:return _.p(e,EBc(a,b),7);case 7:e.jumpTo(0)}})};
HBc=function(a,b){var c,d,e;return _.l(function(g){if(g.nextAddress==1)return _.p(g,a.JSC$15936_persistentStorePromiseAccessor(),2);if(g.nextAddress!=3){c=g.yieldResult;if(!c)return _.Dl(new _.qj("PES is undefined")),g.return(!1);if(!b)return g.return(!1);d=_.mp(b,"mainVideoEntity");return _.p(g,KAc(c,d,"mainVideoEntity"),3)}e=g.yieldResult;return g.return(e!==void 0)})};
Fzc=function(a){var b=_.v().resolve(_.hW),c,d,e,g,k,m,n,r,t,u,x;_.l(function(A){switch(A.nextAddress){case 1:return _.p(A,b.JSC$15936_playerApiPromise,2);case 2:c=A.yieldResult;e=(d=a)==null?void 0:d.actions;if(!e)return A.return();g=_.h(e);k=g.next();case 3:if(k.done){A.jumpTo(0);break}m=k.value;r=n=void 0;if(!(((n=m)==null?0:n.entityKey)&&((r=m)==null?0:r.actionType))){A.jumpTo(4);break}t=_.jp(m.entityKey);u=t.entityId;x=t.entityType;return _.p(A,c.queueOfflineAction(u,x,m.actionType),4);case 4:k=
g.next(),A.jumpTo(3)}})};
IBc=function(a,b){var c,d,e,g,k;return _.l(function(m){if(m.nextAddress==1)return _.p(m,a.JSC$15936_prefStorage,2);if(m.nextAddress!=3)return(c=m.yieldResult)?_.p(m,c.get("psi"),3):m.return();d=m.yieldResult;k={isPaused:b,lastSyncTimestamp:(g=(e=d)==null?void 0:e.lastSyncTimestamp)!=null?g:"0"};return _.p(m,c.set("psi",k),0)})};
Izc=function(a){var b=_.v().resolve(_.hW),c,d,e,g,k,m,n,r;return _.l(function(t){switch(t.nextAddress){case 1:return _.p(t,b.JSC$15936_playerApiPromise,2);case 2:c=t.yieldResult;e=((d=a)==null?void 0:d.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((m=a)==null?void 0:m.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":g="!*$_ALL_ENTITIES_!*$";k="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return t.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return t.jumpTo(4)}t.jumpTo(5);break;case 3:return _.p(t,IBc(b,e),6);case 6:t.jumpTo(5);break;case 4:return _.p(t,HBc(b,(n=a)==null?void 0:n.videoId),7);case 7:t.yieldResult&&(g=(r=a)==null?void 0:r.videoId,k="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");t.jumpTo(5);break;case 5:if(g&&k)return _.p(t,c.queueOfflineAction(g,"videoPlaybackPositionEntity",k),0);t.jumpTo(0)}})};
JBc=function(a,b){var c;b!==1||((c=a.currentPersistentToast)==null?0:c.opened)?a.openToast():a.currentPersistentToast=void 0};
KBc=function(){var a,b,c,d;return _.l(function(e){if(e.nextAddress==1)return a=navigator,(b=a.storage)!=null&&b.persisted?_.p(e,(c=a.storage)==null?void 0:c.persisted(),2):e.return("PERSISTED_STATE_NOT_SUPPORTED");d=e.yieldResult;return e.return(d?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
LBc=function(){var a,b,c,d;return _.l(function(e){if(e.nextAddress==1)return a=navigator,(b=a.storage)!=null&&b.persist?_.p(e,(c=a.storage)==null?void 0:c.persist(),2):e.return("PERSISTED_STATE_NOT_SUPPORTED");d=e.yieldResult;return e.return(d?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
MBc=function(){var a,b;return _.l(function(c){switch(c.nextAddress){case 1:return a="PERSISTED_STATE_NOT_SUPPORTED",_.pe(c,2),_.p(c,KBc(),4);case 4:a=c.yieldResult;if(a!=="PERSISTED_STATE_NOT_GRANTED"){c.jumpTo(5);break}return _.p(c,LBc(),6);case 6:a=c.yieldResult;case 5:_.Jj(c,3);break;case 2:b=_.te(c),b instanceof Error&&_.Bl(b);case 3:return _.xl("persistentStorageStateChecked",{persistedState:a}),c.return(a)}})};
NBc=function(a,b){var c=[],d=!1;b=_.h(b);for(var e=b.next();!e.done;e=b.next()){e=a.moduleRegistry[e.value];var g=void 0,k=void 0;((g=e)==null?0:g.isFetching)&&((k=e)==null?0:k.resolver)?(c.push(e.resolver.promise),d=!0):(e=new _.hq,e.resolve(void 0),c.push(e.promise))}return d?Promise.all(c):void 0};
OBc=function(a,b,c){c=c===void 0?{}:c;var d=a.defaultViewTransitionOptions,e=b.map(function(k){return k.beforeTransition}),g=b.map(function(k){return k.afterTransition});
return Object.assign({},d,c,{beforeTransition:function(){var k;(k=d.beforeTransition)==null||k.call(d);var m,n;(n=(m=c).beforeTransition)==null||n.call(m);k=_.h(e);for(m=k.next();!m.done;m=k.next())m=m.value,m()},
afterTransition:function(){var k;(k=d.afterTransition)==null||k.call(d);var m,n;(n=(m=c).afterTransition)==null||n.call(m);k=_.h(g);for(m=k.next();!m.done;m=k.next())m=m.value,m()}})};
PBc=function(a,b,c){var d,e,g,k,m,n,r;_.l(function(t){if(a.config.disableAllTransitions)return t.return(b());if((d=c)==null||!d.transitionName)return t.return(_.Jlc(b,(e=c)==null?void 0:e.viewTransitionOptions));g=c;k=g.transitionName;m=g.viewTransitionOptions;n=a.config.transitionConfigs.get(k);if(!n)return t.return(b());var u;r=(u=a.transitionTasksMap.get(k))!=null?u:[];return t.return(_.Jlc(b,OBc(n,r,m)))})};
AZ=function(a,b,c){a.transitionTasksMap.has(b)?a.transitionTasksMap.get(b).push(c):(a=new _.qj("Transition task registered for unknown transition name",b),_.Bl(a))};
QBc=function(a,b,c){if(a.isInitialized()){var d=qY(c),e=d==="watch";d=d==="shorts";var g=qY(b)==="watch";if(e)g||(a.backgroundPageData=b),a.watchPipMode&&g||a.deactivate(c.endpoint);else if(d){if(qY(b)!=="shorts"){var k;(k=a.getPlayerElement())==null||k.pause()}}else g&&!a.watchPipMode&&(tsc(b,c)?(a.watchWhileMode&&_.Skc(a,!1),_.Lkc(a,b)):a.isMiniplayerActive()&&a.watchWhileMode&&a.deactivate());g&&_.Ukc(a);a.shortsPipMode&&!d&&(window.focus(),a.deactivate());if(d&&a.shortsPipEnabled||e&&a.watchPipEnabled)_.Q5a(a.handleMediaSessionPipActivation);
else if(!a.isMiniplayerActive()&&(a.shortsPipEnabled||a.watchPipEnabled)&&_.Ea()&&_.naa("Chromium")>=120){a=_.P5a().mediaSession;try{a.setActionHandler("enterpictureinpicture",null)}catch(m){}}}};
RBc=function(a,b){var c,d;_.l(function(e){if(e.nextAddress==1){if(!a||!a.navigationEndpoint)return e.return();_.xF().lockupActivation=!0;var g;b?g=_.Vp(_.vo("QUEUE",void 0,"Queue")):g=a.longBylineText;d=(c=g)&&a.title?{miniplayerTitle:a.title,miniplayerSubtitle:c,playlistData:null}:void 0;return _.p(e,_.d9b(_.v().resolve(_.$w),a.navigationEndpoint,!0,d),2)}_.xF().userActivation=!0;_.ue(e)})};
qxc=function(a,b){var c,d,e,g,k,m;_.l(function(n){if(n.nextAddress==1){c=_.y(b,_.aAb);if(!c||!c.listId)return n.return();a.index=c.index||a.index||0;d=a.response&&a.response.playingVideoId||void 0;return _.p(n,_.gKb(a.JSC$10619_playlistNetworkManager,c.listId,a.index,d),2)}e=n.yieldResult;if(!e)return n.return();g=e.playlistId;k=e.playlistPanelRenderer;!a.queueProxy&&g&&k&&g.startsWith("TLPQ")&&(a.queueProxy=new _.PF(a.JSC$10619_playlistNetworkManager,g,a.setPlaylistData.bind(a),a.clearQueue.bind(a),
_.hHa(k),a.storage));if(c.openMiniplayer&&(m=_.iHa(k))&&!a.pageManager.isOnWatch()){var r=m,t=c.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";a.isMiniplayerActive()?a.openToast(r):RBc(r,t)}a.setPlaylistData(g,k,e.autoplayRenderer);_.ue(n)})};
nxc=function(a,b){var c=_.YF();c.index===void 0&&(c.index=0);c.temporaryItems.push.apply(c.temporaryItems,_.De(a));if((b.videoId||b.videoIds)&&c.index!==void 0&&b.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!c.queueProxy){var d=[];if(c.response){var e=_.v().resolve(_.$w).isMiniplayerActive();if(c.response.playlistPanelRenderer&&c.response.playlistId&&!c.response.playlistId.startsWith("TLPQ")){if(c.pageManager.isOnWatch()||e)d=_.hHa(c.response.playlistPanelRenderer)}else c.response.playingVideoId&&
!b.openMiniplayer?d.push(c.response.playingVideoId):e&&c.response.playingVideoId&&b.openMiniplayer&&d.push(c.response.playingVideoId)}c.queueProxy=new _.PF(c.JSC$10619_playlistNetworkManager,"",c.setPlaylistData.bind(c),c.clearQueue.bind(c),d,c.storage);c.queueProxy.JSC$10565_setCurrentIndex(c.index)}c.queueProxy.addVideos(b.videoIds||[b.videoId],b)}MAc(c,a);c.response&&_.ZF(c,_.$F(c,c.response.autoplayRenderer));c.pageManager.isOnWatch()?c.isMiniplayerActive()&&c.openToast(a[0]):(a=a[0],b=b.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",c.isMiniplayerActive()?c.openToast(a):RBc(a,b))};
SBc=function(a){var b=_.iba(a);if(b=="object"||b=="array"){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);b=b=="array"?[]:{};for(var c in a)b[c]=SBc(a[c]);return b}return a};
TBc=_.dd(function(a,b,c){if(a.nextWireType_!==0)return!1;_.ed(b,c,_.ay(a.decoder_,_.fba));return!0},_.id,_.dy);
UBc=_.dd(function(a,b,c,d){if(a.nextWireType_!==0)return!1;_.Jx(b,c,d,_.ay(a.decoder_,_.fba));return!0},_.id,_.dy);
VBc=_.dd(function(a,b,c){if(a.nextWireType_!==1)return!1;var d=a.decoder_;a=_.cy(d);d=_.cy(d);a=_.Tb(a,d);_.ed(b,c,a);return!0},_.mda,_.B$a);
WBc=_.dd(function(a,b,c){if(a.nextWireType_!==5)return!1;_.ed(b,c,_.cy(a.decoder_));return!0},function(a,b,c){b=_.nba(b);
b!=null&&(_.fd(a,c,5),_.gd(a.encoder_,b))},_.Xc());
XBc=_.dd(function(a,b,c){if(a.nextWireType_!==0)return!1;a=_.i$a(a.decoder_);_.ed(b,c,a===!1?void 0:a);return!0},_.nda,_.y$a);
YBc=_.dd(function(a,b,c){if(a.nextWireType_!==2)return!1;a=_.o$a(a);_.ed(b,c,a===""?void 0:a);return!0},_.pda,_.z$a);
ZBc=_.dd(function(a,b,c){if(a.nextWireType_!==2)return!1;a=_.p$a(a);_.ed(b,c,a===_.Ab()?void 0:a);return!0},_.rda,_.D$a);
$Bc=_.dda(function(a,b,c){if(a.nextWireType_!==0&&a.nextWireType_!==2)return!1;b=_.nca(b,b[_.kb]|0,c);a.nextWireType_==2?_.q$a(a,oAc,b):b.push(_.by(a.decoder_));return!0},function(a,b,c){b=_.cda(_.ec,b,!0);
if(b!=null&&b.length){c=_.Bca(a,c);for(var d=0;d<b.length;d++)_.jda(a.encoder_,b[d]);_.Cca(a,c)}},_.E$a);
aCc=_.dd(function(a,b,c){if(a.nextWireType_!==0)return!1;a=_.by(a.decoder_);_.ed(b,c,a===0?void 0:a);return!0},_.sda,_.E$a);
bCc=_.dd(function(a,b,c,d){if(a.nextWireType_!==0)return!1;_.Jx(b,c,d,_.by(a.decoder_));return!0},_.sda,_.E$a);
_.de=function(a){this.privateDoNotAccessOrElseWrappedStyleSheet=a};
_.de.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var cCc=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)_.kcb(a[b],a[b+1],c);return c.join("&")},dCc=function(a,b){var c=arguments.length==2?cCc(arguments[1],0):cCc(arguments,1);
return _.jcb(a,c)},eCc=function(a){var b=_.hcb(window.location.href),c=b[1],d=[];
c&&c.split("&").forEach(function(e){var g=e.indexOf("=");g=g>=0?e.slice(0,g):e;a.hasOwnProperty(g)||d.push(e)});
b[1]=_.icb(d.join("&"),_.ij(a));return b[0]+(b[1]?"?"+b[1]:"")+b[2]},xxc=function(a,b){return new _.Ef(a.x+b.x,a.y+b.y)},fCc=function(a){return a.previousElementSibling!==void 0?a.previousElementSibling:_.edb(a.previousSibling,!1)},gCc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(gCc,_.bd);gCc.prototype.getValue=function(){var a=_.Ex(this,2);if(Array.isArray(a)||a instanceof _.bd)throw Error("da");return _.Ix(this,2)};
var hCc=function(){var a=_.nq();this.JSC$7760_streamzService=a;a.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",_.dg("cookie_enabled"),_.dg("cookie_3p_enabled"),_.fg("browser"))};
hCc.prototype.increment=function(a,b,c){this.JSC$7760_streamzService.JSC$7636_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",a,b,c)};
var Rvc=function(){var a=_.nq();this.JSC$7763_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.fg("channel_type"))};
Rvc.prototype.increment=function(a){this.JSC$7763_streamzService.JSC$7636_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",a)};
var Svc=function(){var a=_.nq();this.JSC$7766_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.fg("channel_type"))};
Svc.prototype.increment=function(a){this.JSC$7766_streamzService.JSC$7636_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",a)};
var Uvc=function(){var a=_.nq();this.JSC$7769_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.fg("channel_type"))};
Uvc.prototype.increment=function(a){this.JSC$7769_streamzService.JSC$7636_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",a)};
var Tvc=function(){var a=_.nq();this.JSC$7772_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
Tvc.prototype.increment=function(){this.JSC$7772_streamzService.JSC$7636_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var Vvc=function(){var a=_.nq();this.JSC$7775_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.fg("channel_type"),_.fg("error_type"))};
Vvc.prototype.increment=function(a,b){this.JSC$7775_streamzService.JSC$7636_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",a,b)};
var Wvc=function(){var a=_.nq();this.JSC$7778_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
Wvc.prototype.increment=function(){this.JSC$7778_streamzService.JSC$7636_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var Xvc=function(){var a=_.nq();this.JSC$7781_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
Xvc.prototype.increment=function(){this.JSC$7781_streamzService.JSC$7636_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var aAc=function(){var a=_.nq();this.JSC$7787_streamzService=a;a.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
aAc.prototype.increment=function(){this.JSC$7787_streamzService.JSC$7636_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var iCc=function(a){return a.getCount&&typeof a.getCount=="function"?a.getCount():_.Sa(a)||typeof a==="string"?a.length:_.Cf.getCount(a)},jCc=function(a,b){if(typeof a.every=="function")return a.every(b,void 0);
if(_.Sa(a)||typeof a==="string")return Array.prototype.every.call(a,b,void 0);for(var c=_.pib(a),d=_.jA(a),e=d.length,g=0;g<e;g++)if(!b.call(void 0,d[g],c&&c[g],a))return!1;return!0},kCc=function(a,b,c,d){var e=new _.Yn(null);
a&&_.kA(e,a);b&&_.lA(e,b);c&&_.mA(e,c);d&&_.nA(e,d);return e},lCc=function(){var a=_.Dj&&pY(_.Ekb,10)>=0,b;
if(b=_.u9a)b=pY(_.Dkb,10)>=0;var c=_.Bx&&pY(_.Ekb,85)>=0;return _.yx||a||b||c},mCc=function(a){var b=_.Ddb(a);
return b&&lCc()?-a.scrollLeft:b&&_.Ig(a,"overflowX")!="visible"?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft},nCc=function(a,b){b=Math.max(b,0);
_.Ddb(a)?lCc()?a.scrollLeft=-b:a.scrollLeft=a.scrollWidth-b-a.clientWidth:a.scrollLeft=b},Jsc=0,Osc=!1;
sY.prototype.set=function(a){this.relativeTimeStart_=a};
sY.prototype.reset=function(){this.set(_.rx())};
sY.prototype.get=function(){return this.relativeTimeStart_};
var oCc=null,pCc=function(){oCc||(oCc=new sY)},qCc=function(){oCc||(oCc=new sY)};
_.sx(qCc,pCc);_.f=Qsc.prototype;_.f.JSC$9087_buffer_="";_.f.set=function(a){this.JSC$9087_buffer_=""+a};
_.f.append=function(a,b,c){this.JSC$9087_buffer_+=String(a);if(b!=null)for(var d=1;d<arguments.length;d++)this.JSC$9087_buffer_+=arguments[d];return this};
_.f.clear=function(){this.JSC$9087_buffer_=""};
_.f.getLength=function(){return this.JSC$9087_buffer_.length};
_.f.toString=function(){return this.JSC$9087_buffer_};
var rCc=function(){var a={type:"unit",style:"narrow"};this.listType_=a&&a.type?a.type:"conjunction";this.listStyle_=a&&a.style?a.style:"long";this.listSymbols_=vAc;a=0;switch(this.listStyle_){case "short":a=1;break;case "narrow":a=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[a];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[a];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[a];this.listEndPattern_=
this.listSymbols_.AND_END[a];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[a];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[a];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[a];this.listEndPattern_=this.listSymbols_.OR_END[a];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[a],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[a],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[a],this.listEndPattern_=this.listSymbols_.UNIT_END[a]}};
rCc.prototype.format=function(a){return sCc(this,a)};
var sCc=function(a,b){var c=b.length;switch(c){case 0:return"";case 1:return String(b[0]);case 2:return a.listTwoPattern_.replace("{0}",String(b[0])).replace("{1}",String(b[1]))}for(var d=a.listStartPattern_.replace("{0}",String(b[0])).replace("{1}",String(b[1])),e=2;e<c-1;++e)d=a.listMiddlePattern_.replace("{0}",d).replace("{1}",String(b[e]));return a.listEndPattern_.replace("{0}",d).replace("{1}",String(b[c-1]))},ftc=function(){var a={style:1};
this.style_=(a==null?void 0:a.style)||0;this.durationSymbols_=_.IJb||_.esb},tCc=function(a,b){switch(b){default:case "years":return a.durationSymbols_.YEAR;
case "months":return a.durationSymbols_.MONTH;case "weeks":return a.durationSymbols_.WEEK;case "days":return a.durationSymbols_.DAY;case "hours":return a.durationSymbols_.HOUR;case "minutes":return a.durationSymbols_.MINUTE;case "seconds":return a.durationSymbols_.SECOND}},BZ=function(a,b,c){a:{c=tCc(a,c);
switch(a.style_){case 1:if(c.LONG!=void 0){a=c.LONG;break a}case 2:if(c.NARROW!=void 0){a=c.NARROW;break a}default:a=c.SHORT;break a}a=void 0}return a?(new _.Asb("{DURATION_VALUE,plural,"+a+"}")).format({DURATION_VALUE:b}):""};
ftc.prototype.format=function(a){var b=[],c=a.years,d=a.months,e=a.weeks,g=a.days,k=a.hours,m=a.minutes;a=a.seconds;c!=null&&b.push(BZ(this,c,"years"));d!=null&&b.push(BZ(this,d,"months"));e!=null&&b.push(BZ(this,e,"weeks"));g!=null&&b.push(BZ(this,g,"days"));k!=null&&b.push(BZ(this,k,"hours"));m!=null&&b.push(BZ(this,m,"minutes"));a!=null&&b.push(BZ(this,a,"seconds"));return(new rCc).format(b)};
var uCc=!1,Xsc=function(a){_.ca.call(this,a.message||a.description||a.name);this.isMissing=a instanceof tY;this.isTimeout=a instanceof _.Mn&&a.errorCode=="net.timeout";this.isCanceled=a instanceof _.Nn};
_.z(Xsc,_.ca);Xsc.prototype.name="BiscottiError";var tY=function(){_.ca.call(this,"Biscotti ID is missing from server")};
_.z(tY,_.ca);tY.prototype.name="BiscottiMissingError";var uY=null,exc=function(){try{var a=_.Ji("yt.ads.biscotti.getId_");return a?a():Csc()}catch(b){return _.On(b)}},etc,vCc=function(a){return _.hp({type:"SET_GUIDE_IS_EXPANDED",
payload:a})},wCc=function(a){return _.hp({type:"SET_ONLINE_STATUS",
payload:a})},xCc=function(a,b){return _.hp({type:"SET_TRANSCRIPTION_STATE",
payload:{high:a,low:b}})},yCc=function(a){return _.hp({type:"SET_OVERLAY_STATE",
payload:a})},zCc=0,ACc=function(a,b,c){var d=this;
this.priority=b;this.delay=c;this.jobId=0;this.completionCallback=_.Gy;this.wrappedJob=function(){a();d.completionCallback()};
this.id=++zCc};
ACc.prototype.enqueue=function(a){this.completionCallback=a;this.jobId=_.zk.addJob(this.wrappedJob,this.priority,this.delay)};
var CZ=function(){_.mB.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.z(CZ,_.mB);CZ.prototype.addJob=function(a,b,c){a=new ACc(a,b,c);this.taskIdToTask.set(a.id,a);this.isActive?BCc(this,a):this.suspendedTasks.add(a);return a.id};
var BCc=function(a,b){a.scheduledTasks.add(b);b.enqueue(function(){a.scheduledTasks.delete(b)})};
CZ.prototype.cancelJob=function(a){(a=this.taskIdToTask.get(a))&&(this.scheduledTasks.delete(a)?_.zk.cancelJob(a.jobId):this.suspendedTasks.delete(a))};
CZ.prototype.pause=function(){var a=this;this.isActive=!1;this.scheduledTasks.forEach(function(b){_.zk.cancelJob(b.jobId);a.suspendedTasks.add(b)});
this.scheduledTasks.clear()};
CZ.prototype.start=function(){var a=this;this.isActive=!0;this.suspendedTasks.forEach(function(b){BCc(a,b)});
this.suspendedTasks.clear()};
CZ.prototype.reset=function(){this.scheduledTasks.forEach(function(a){_.zk.cancelJob(a.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var DZ=function(a,b){this.JSC$10745_networkService_=a;this.pageRequestPromise=b};
DZ.prototype.fetchData=function(a){CCc(this,this.JSC$10745_networkService_.fetchData(a))};
DZ.prototype.postData=function(a,b){CCc(this,this.JSC$10745_networkService_.postData(a,b))};
DZ.prototype.requestDataForServiceEndpoint=function(a,b){CCc(this,this.JSC$10745_networkService_.requestDataForServiceEndpoint(a,b))};
var CCc=function(a,b){b.then(a.pageRequestPromise.onSuccess,a.pageRequestPromise.onFailure,a.pageRequestPromise)};
DZ.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var EZ=function(a){this.buildNetworkRequest_=a;this.pendingRequests_=new Set};
EZ.prototype.reset=function(){this.pendingRequests_.forEach(function(a){a.cancel()});
this.pendingRequests_.clear()};
EZ.prototype.fetchData=function(a){var b=DCc(this);b.fetchData(a);return b.pageRequestPromise};
EZ.prototype.postData=function(a,b){var c=DCc(this);c.postData(a,b);return c.pageRequestPromise};
EZ.prototype.requestDataForServiceEndpoint=function(a,b){var c=DCc(this);c.requestDataForServiceEndpoint(a,b);return c.pageRequestPromise};
var DCc=function(a){var b=a.buildNetworkRequest_();a.pendingRequests_.add(b);var c=function(){a.pendingRequests_.delete(b)};
b.pageRequestPromise.then(c,c);return b},ECc=function(a){var b=new CZ;
this.JSC$10752_networkService_=a;this.JSC$10752_taskManager_=b;this.JSC$10752_networkManager_=new EZ(this.networkRequestFactory_.bind(this))};
_.f=ECc.prototype;_.f.networkRequestFactory_=function(){return new DZ(this.JSC$10752_networkService_,new _.mG(this.JSC$10752_taskManager_))};
_.f.reset=function(){this.JSC$10752_taskManager_.reset();this.JSC$10752_networkManager_.reset()};
_.f.start=function(){this.JSC$10752_taskManager_.start()};
_.f.pause=function(){this.JSC$10752_taskManager_.pause()};
_.f.getTaskManager=function(){return this.JSC$10752_taskManager_};
_.f.getNetworkManager=function(){return this.JSC$10752_networkManager_};
var ktc=null,ntc=[],wY=0,yY=0,xY=null,FCc=function(){var a=(0,_.VLb)();a&&xAc(a,a.mechanism.__iterator__(!0))},AY=function(a){this.token=a};
AY.getInstance=function(){var a;return _.l(function(b){if(b.nextAddress==1)return _.p(b,_.Sj(),2);a=b.yieldResult;if(!a)return b.return();AY.instance||(AY.instance=new AY(a));return b.return(AY.instance)})};
var ttc=function(a){var b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,qtc(a.token),2);b=c.yieldResult;return c.return(b.clear("resource-manifest-assets"))})},zY=function(a){this.token=a};
zY.getInstance=function(){var a;return _.l(function(b){if(b.nextAddress==1)return _.p(b,_.Sj(),2);a=b.yieldResult;if(!a)return b.return();zY.instance||(zY.instance=new zY(a));return b.return(zY.instance)})};
var rtc=function(a){var b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,qtc(a.token),2);b=c.yieldResult;return _.p(c,b.clear("auth"),0)})},GCc=!1,BY=null,Gtc=void 0,Ptc=!1,HCc=function(a){_.ca.call(this,a)};
_.z(HCc,_.p3b);var Iwc=function(){var a=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return a?parseInt(a[1],10):0},ICc=function(a){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+a)!=-1||document.currentScript.src.indexOf("&"+a)!=-1)},JCc=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},Nwc=function(a){a.length?KCc(a.shift(),function(){Nwc(a)}):Kwc()},Pwc=function(a){return"chrome-extension://"+a+"/cast_sender.js"},KCc=function(a,
b,c){var d=document.createElement("script");
d.onerror=b;c&&(d.onload=c);_.Zd(d,_.yg(a));(document.head||document.documentElement).appendChild(d)},LCc=function(){var a=Iwc(),b=[];
if(a>1){var c=a-1;b.push("//www.gstatic.com/eureka/clank/"+a+"/cast_sender.js");b.push("//www.gstatic.com/eureka/clank/"+c+"/cast_sender.js")}return b},Kwc=function(){var a=JCc();
a&&a(!1,"No cast extension found")},Mwc=function(){if(MCc){var a=2,b=JCc(),c=function(){a--;
a==0&&b&&b(!0)};
window.__onGCastApiAvailable=c;KCc("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",Kwc,c)}},Jwc=function(){Mwc();
var a=LCc();a.push("//www.gstatic.com/eureka/clank/cast_sender.js");Nwc(a)},Lwc=function(){Mwc();
var a=LCc();a.push.apply(a,_.De(Owc.map(Pwc)));a.push("//www.gstatic.com/eureka/clank/cast_sender.js");Nwc(a)},MCc=ICc("loadCastFramework")||ICc("loadCastApplicationFramework"),Owc=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var NCc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(NCc,_.bd);var OCc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(OCc,_.bd);var PCc=function(){var a=new OCc;return _.Zx(a,1,3)};var FZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(FZ,_.bd);var Duc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Duc,_.bd);var QCc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(QCc,_.bd);QCc.prototype.getToken=function(){return _.Tx(this,1)};
QCc.prototype.setToken=function(a){return _.kw(this,1,a)};
var Buc=function(a){return _.Pc(a,3,_.sc,_.$f())},Cuc=function(a){return _.Pc(a,6,_.sc,_.$f())};var GZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(GZ,_.bd);GZ.prototype.getToken=function(){return _.Xj(this,QCc,2)};
GZ.prototype.setToken=function(a){return _.qd(this,2,a)};
GZ.prototype.getName=function(){return _.Tx(this,6)};
var RCc=_.od(GZ);var SCc=function(a,b,c){this.requestMessage=a;this.methodDescriptor=b;this.metadata=c};
SCc.prototype.getMetadata=function(){return this.metadata};var TCc=function(a,b){b=b===void 0?{}:b;this.responseMessage=a;this.metadata=b;this.status=null};
TCc.prototype.getMetadata=function(){return this.metadata};
TCc.prototype.getStatus=function(){return this.status};var HZ=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.requestSerializeFn=d;this.responseDeserializeFn=e},UCc=function(a,b,c){c=c===void 0?{}:c;
return new SCc(b,a,c)};
HZ.prototype.getName=function(){return this.name};var IZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(IZ,_.bd);IZ.prototype.setHeader=function(a){return _.qd(this,1,a)};
IZ.prototype.hasHeader=function(){return _.Fx(this,FZ,1)};var VCc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(VCc,_.bd);var WCc=new HZ("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",IZ,VCc,function(a){return a.serialize()},_.od(VCc));var JZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(JZ,_.bd);JZ.prototype.setHeader=function(a){return _.qd(this,1,a)};
JZ.prototype.hasHeader=function(){return _.Fx(this,FZ,1)};var XCc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(XCc,_.bd);var YCc=new HZ("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",JZ,XCc,function(a){return a.serialize()},_.od(XCc));var KZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(KZ,_.bd);KZ.prototype.setHeader=function(a){return _.qd(this,1,a)};
KZ.prototype.hasHeader=function(){return _.Fx(this,FZ,1)};var ZCc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(ZCc,_.bd);ZCc.prototype.getLink=function(){return _.Xj(this,GZ,1)};var $Cc=new HZ("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",KZ,ZCc,function(a){return a.serialize()},_.od(ZCc));var LZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(LZ,_.bd);LZ.prototype.setHeader=function(a){return _.qd(this,1,a)};
LZ.prototype.hasHeader=function(){return _.Fx(this,FZ,1)};var aDc=new HZ("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",LZ,GZ,function(a){return a.serialize()},RCc);var bDc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(bDc,_.bd);var cDc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(cDc,_.bd);cDc.prototype.getUrl=function(){return _.Tx(this,2)};
cDc.prototype.setUrl=function(a){return _.kw(this,2,a)};var dDc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(dDc,_.bd);var eDc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(eDc,_.bd);var fDc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(fDc,_.bd);var Ouc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Ouc,_.bd);var Nuc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(Nuc,_.bd);var gDc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(gDc,_.bd);var Vuc=_.od(gDc);var hDc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(hDc,_.bd);var MZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(MZ,_.bd);MZ.prototype.setHeader=function(a){return _.qd(this,1,a)};
MZ.prototype.hasHeader=function(){return _.Fx(this,FZ,1)};
MZ.prototype.getCompletionUrl=function(){return _.Tx(this,6)};
MZ.prototype.getDeviceId=function(){return _.Tx(this,11)};var iDc=new HZ("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",MZ,gDc,function(a){return a.serialize()},Vuc);var jDc=new Set(["SAPISIDHASH","APISIDHASH"]);var kDc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(kDc,_.bd);kDc.prototype.getMessage=function(){return _.Tx(this,2)};
var lDc=_.od(kDc);var NZ=function(a,b){this.xhrNodeReadableStream_=a.nodeReadableStream;this.grpcResponseDeserializeFn_=b;this.JSC$16854_xhr_=a.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$16854_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&mDc(this)},sDc=function(a,b){var c=new nDc;
_.rs(a.JSC$16854_xhr_,"complete",function(){if(a.JSC$16854_xhr_.isSuccess()){var d=a.JSC$16854_xhr_.getResponseText();var e;if(e=b)e=a.JSC$16854_xhr_,e.JSC$7645_xhr_&&e.isComplete()?(e=e.JSC$7645_xhr_.getResponseHeader("Content-Type"),e=e===null?void 0:e):e=void 0,e=e==="text/plain";if(e){if(!atob)throw Error("Mj");d=atob(d)}try{var g=a.grpcResponseDeserializeFn_(d)}catch(m){OZ(a,ouc(new _.Nz(13,"Error when deserializing response data; error: "+m+(", response: "+d)),c));return}d=_.Iia(a.JSC$16854_xhr_.getStatus());
oDc(a,pDc(a));d==0?qDc(a,g):OZ(a,ouc(new _.Nz(d,"Xhr succeeded but the status code is not 200"),c))}else{d=a.JSC$16854_xhr_.getResponseText();g=pDc(a);if(d){var k=rDc(a,d);d=k.code;e=k.details;k=k.metadata}else d=2,e="Rpc failed due to xhr error. uri: "+String(a.JSC$16854_xhr_.JSC$7645_lastUri_)+", error code: "+a.JSC$16854_xhr_.JSC$7645_lastErrorCode_+", error: "+a.JSC$16854_xhr_.getLastError(),k=g;oDc(a,g);OZ(a,ouc(new _.Nz(d,e,k),c))}})},mDc=function(a){a.xhrNodeReadableStream_.on("data",function(b){if("1"in
b){var c=b["1"];
try{var d=a.grpcResponseDeserializeFn_(c)}catch(e){OZ(a,new _.Nz(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&qDc(a,d)}if("2"in b)for(b=rDc(a,b["2"]),c=0;c<a.onStatusCallbacks_.length;c++)a.onStatusCallbacks_[c](b)});
a.xhrNodeReadableStream_.on("end",function(){oDc(a,pDc(a));for(var b=0;b<a.onEndCallbacks_.length;b++)a.onEndCallbacks_[b]()});
a.xhrNodeReadableStream_.on("error",function(){if(a.JSC$16854_onErrorCallbacks_.length!=0){var b=a.JSC$16854_xhr_.JSC$7645_lastErrorCode_;b!==0||a.JSC$16854_xhr_.isSuccess()||(b=6);var c=-1;switch(b){case 0:var d=2;break;case 7:d=10;break;case 8:d=4;break;case 6:c=a.JSC$16854_xhr_.getStatus();d=_.Iia(c);break;default:d=14}oDc(a,pDc(a));b=_.Xfb(b)+", error: "+a.JSC$16854_xhr_.getLastError();c!=-1&&(b+=", http status code: "+c);OZ(a,new _.Nz(d,b))}})},pDc=function(a){var b={},c=tAc(a.JSC$16854_xhr_);
Object.keys(c).forEach(function(d){b[d]=c[d]});
return b},rDc=function(a,b){var c=2,d={};
try{var e=lDc(b);c=_.bg(e,1);var g=e.getMessage();_.Zf(e,gCc,3,_.$f()).length&&(d["grpc-web-status-details-bin"]=b)}catch(k){a.JSC$16854_xhr_&&a.JSC$16854_xhr_.getStatus()===404?(c=5,g="Not Found: "+String(a.JSC$16854_xhr_.JSC$7645_lastUri_)):(c=14,g="Unable to parse RpcStatus: "+k)}return{code:c,details:g,metadata:d}};
NZ.prototype.on=function(a,b){a=="data"?this.onDataCallbacks_.push(b):a=="metadata"?this.onMetadataCallbacks_.push(b):a=="status"?this.onStatusCallbacks_.push(b):a=="end"?this.onEndCallbacks_.push(b):a=="error"&&this.JSC$16854_onErrorCallbacks_.push(b);return this};
var PZ=function(a,b){b=a.indexOf(b);b>-1&&a.splice(b,1)};
NZ.prototype.removeListener=function(a,b){a=="data"?PZ(this.onDataCallbacks_,b):a=="metadata"?PZ(this.onMetadataCallbacks_,b):a=="status"?PZ(this.onStatusCallbacks_,b):a=="end"?PZ(this.onEndCallbacks_,b):a=="error"&&PZ(this.JSC$16854_onErrorCallbacks_,b);return this};
NZ.prototype.cancel=function(){this.JSC$16854_xhr_.abort()};
var qDc=function(a,b){for(var c=0;c<a.onDataCallbacks_.length;c++)a.onDataCallbacks_[c](b)},oDc=function(a,b){for(var c=0;c<a.onMetadataCallbacks_.length;c++)a.onMetadataCallbacks_[c](b)},OZ=function(a,b){for(var c=0;c<a.JSC$16854_onErrorCallbacks_.length;c++)a.JSC$16854_onErrorCallbacks_[c](b)};
NZ.prototype.cancel=NZ.prototype.cancel;NZ.prototype.removeListener=NZ.prototype.removeListener;NZ.prototype.on=NZ.prototype.on;var nDc=function(){var a=Error.call(this);this.message=a.message;"stack"in a&&(this.stack=a.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.z(nDc,Error);var QZ=function(a){this.JSC$16863_worker_=a.worker||null;this.JSC$16863_streamBinaryChunks_=a.streamBinaryChunks||!1;this.JSC$16863_credentialsMode_=void 0};
_.sx(QZ,_.Kia);QZ.prototype.createInstance=function(){var a=new RZ(this.JSC$16863_worker_,this.JSC$16863_streamBinaryChunks_);this.JSC$16863_credentialsMode_&&a.setCredentialsMode(this.JSC$16863_credentialsMode_);return a};
QZ.prototype.setCredentialsMode=function(a){this.JSC$16863_credentialsMode_=a};
var RZ=function(a,b){_.Hz.call(this);this.JSC$16867_worker_=a;this.JSC$16867_streamBinaryChunks_=b;this.JSC$16867_credentialsMode_=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$16867_responseHeaders_=null;this.JSC$16867_method_="GET";this.JSC$16867_url_="";this.inProgress_=!1;this.JSC$16867_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.sx(RZ,_.Hz);RZ.prototype.open=function(a,b){if(this.readyState!=0)throw this.abort(),Error("Nj");this.JSC$16867_method_=a;this.JSC$16867_url_=b;this.readyState=1;SZ(this)};
RZ.prototype.send=function(a){if(this.readyState!=1)throw this.abort(),Error("Oj");this.inProgress_=!0;var b={headers:this.requestHeaders_,method:this.JSC$16867_method_,credentials:this.JSC$16867_credentialsMode_,cache:void 0};a&&(b.body=a);(this.JSC$16867_worker_||_.ja).fetch(new Request(this.JSC$16867_url_,b)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
RZ.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,TZ(this));this.readyState=0};
RZ.prototype.handleResponse_=function(a){if(this.inProgress_&&(this.fetchResponse_=a,this.JSC$16867_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$16867_responseHeaders_=a.headers,this.readyState=2,SZ(this)),this.inProgress_&&(this.readyState=3,SZ(this),this.inProgress_)))if(this.responseType==="arraybuffer")a.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.ja.ReadableStream!==
"undefined"&&"body"in a){this.currentReader_=a.body.getReader();if(this.JSC$16867_streamBinaryChunks_){if(this.responseType)throw Error("Pj");this.response=[]}else this.response=this.responseText="",this.JSC$16867_textDecoder_=new TextDecoder;tDc(this)}else a.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var tDc=function(a){a.currentReader_.read().then(a.handleDataFromStream_.bind(a)).catch(a.handleSendFailure_.bind(a))};
RZ.prototype.handleDataFromStream_=function(a){if(this.inProgress_){if(this.JSC$16867_streamBinaryChunks_&&a.value)this.response.push(a.value);else if(!this.JSC$16867_streamBinaryChunks_){var b=a.value?a.value:new Uint8Array(0);if(b=this.JSC$16867_textDecoder_.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?TZ(this):SZ(this);this.readyState==3&&tDc(this)}};
RZ.prototype.handleResponseText_=function(a){this.inProgress_&&(this.response=this.responseText=a,TZ(this))};
RZ.prototype.handleResponseArrayBuffer_=function(a){this.inProgress_&&(this.response=a,TZ(this))};
RZ.prototype.handleSendFailure_=function(){this.inProgress_&&TZ(this)};
var TZ=function(a){a.readyState=4;a.fetchResponse_=null;a.currentReader_=null;a.JSC$16867_textDecoder_=null;SZ(a)};
RZ.prototype.setRequestHeader=function(a,b){this.requestHeaders_.append(a,b)};
RZ.prototype.getResponseHeader=function(a){return this.JSC$16867_responseHeaders_?this.JSC$16867_responseHeaders_.get(a.toLowerCase())||"":""};
RZ.prototype.getAllResponseHeaders=function(){if(!this.JSC$16867_responseHeaders_)return"";for(var a=[],b=this.JSC$16867_responseHeaders_.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};
RZ.prototype.setCredentialsMode=function(a){this.JSC$16867_credentialsMode_=a};
var SZ=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
Object.defineProperty(RZ.prototype,"withCredentials",{get:function(){return this.JSC$16867_credentialsMode_==="include"},
set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});var uDc=function(a){var b="";_.Cf.forEach(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b},vDc=function(a,b,c){if(_.Cf.isEmpty(c))return a;
c=uDc(c);if(typeof a==="string")return _.Ky(a,_.Li(b),c);_.Og(a,b,c);return a};var wDc=function(){this.isInputValid_=!0;this.JSC$16873_streamPos_=0;this.leftoverInput_=""};
wDc.prototype.isInputValid=function(){return this.isInputValid_};var EY=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$16876_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
EY.prototype.isInputValid=function(){return this.state_!=3};
var UZ=function(a,b,c,d){a.state_=3;a.errorMessage_="The stream is broken @"+a.JSC$16876_streamPos_+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.errorMessage_);};
EY.prototype.acceptsBinaryInput=function(){return!0};
EY.prototype.parse=function(a){function b(n){n&128&&UZ(g,k,m,"invalid tag");(n&7)!=2&&UZ(g,k,m,"invalid wire type");g.tag_=n>>>3;g.tag_!=1&&g.tag_!=2&&g.tag_!=15&&UZ(g,k,m,"unexpected tag");g.state_=1;g.length_=0;g.countLengthBytes_=0}
function c(n){g.countLengthBytes_++;g.countLengthBytes_==5&&n&240&&UZ(g,k,m,"message length too long");g.length_|=(n&127)<<(g.countLengthBytes_-1)*7;n&128||(g.state_=2,g.countMessageBytes_=0,typeof Uint8Array!=="undefined"?g.messageBuffer_=new Uint8Array(g.length_):g.messageBuffer_=Array(g.length_),g.length_==0&&e())}
function d(n){g.messageBuffer_[g.countMessageBytes_++]=n;g.countMessageBytes_==g.length_&&e()}
function e(){if(g.tag_<15){var n={};n[g.tag_]=g.messageBuffer_;g.result_.push(n)}g.state_=0}
for(var g=this,k=a instanceof Array?a:new Uint8Array(a),m=0;m<k.length;){switch(g.state_){case 3:UZ(g,k,m,"stream already broken");break;case 0:b(k[m]);break;case 1:c(k[m]);break;case 2:d(k[m]);break;default:throw Error("Rj`"+g.state_);}g.JSC$16876_streamPos_++;m++}a=g.result_;g.result_=[];return a.length>0?a:null};var quc=function(){this.errorMessage_=null;this.JSC$16879_streamPos_=0;this.base64Decoder_=new wDc;this.pbParser_=new EY};
quc.prototype.isInputValid=function(){return this.errorMessage_===null};
var xDc=function(a,b,c){a.errorMessage_="The stream is broken @"+a.JSC$16879_streamPos_+". Error: "+c+". With input:\n"+b;throw Error(a.errorMessage_);};
quc.prototype.acceptsBinaryInput=function(){return!1};
quc.prototype.parse=function(a){this.errorMessage_!==null&&xDc(this,a,"stream already broken");var b=null;try{var c=this.base64Decoder_;if(!c.isInputValid_)throw c.isInputValid_=!1,Error("Qj`"+c.JSC$16873_streamPos_+"`stream already broken`"+a);c.leftoverInput_+=a;var d=Math.floor(c.leftoverInput_.length/4);if(d==0)var e=null;else{try{var g=_.g4a(c.leftoverInput_.slice(0,d*4))}catch(n){var k=c.leftoverInput_,m=n.message;c.isInputValid_=!1;throw Error("Qj`"+c.JSC$16873_streamPos_+"`"+m+"`"+k);}c.JSC$16873_streamPos_+=
d*4;c.leftoverInput_=c.leftoverInput_.slice(d*4);e=g}b=e===null?null:this.pbParser_.parse(e)}catch(n){xDc(this,a,n.message)}this.JSC$16879_streamPos_+=a.length;return b};var puc=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$16882_streamPos_=0;this.result_=[];this.statusParsed_=!1};
puc.prototype.isInputValid=function(){return this.errorMessage_===null};
puc.prototype.acceptsBinaryInput=function(){return!1};
puc.prototype.parse=function(a){function b(n){g.state_=6;g.errorMessage_="The stream is broken @"+g.JSC$16882_streamPos_+"/"+k+". Error: "+n+". With input:\n";throw Error(g.errorMessage_);}
function c(){g.jsonStreamParser_=new _.pD({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function d(n){if(n)for(var r=0;r<n.length;r++){var t={};t[1]=n[r];g.result_.push(t)}}
function e(n){if(n){(g.statusParsed_||n.length>1)&&b("extra status: "+n);g.statusParsed_=!0;var r={};r[2]=n[0];g.result_.push(r)}}
for(var g=this,k=0;k<a.length;){var m;if(m=g.state_!==2){a:{for(;k<a.length;){if(!_.oD(a[k])){m=!0;break a}k++;g.JSC$16882_streamPos_++}m=!1}m=!m}if(m)return null;switch(g.state_){case 6:b("stream already broken");break;case 0:a[k]==="["?(g.state_=1,k++,g.JSC$16882_streamPos_++):b("unexpected input token");break;case 1:a[k]==="["?(g.state_=2,c()):a[k]===","||a.slice(k,k+5)=="null,"?g.state_=3:a[k]==="]"?(g.state_=5,k++,g.JSC$16882_streamPos_++):b("unexpected input token");break;case 2:m=g.jsonStreamParser_.parse(a.substring(k));
d(m);g.jsonStreamParser_.done()?(g.state_=3,m=g.jsonStreamParser_.JSC$9214_buffer_,g.JSC$16882_streamPos_+=a.length-k-m.length,a=m,k=0):(g.JSC$16882_streamPos_+=a.length-k,k=a.length);break;case 3:a[k]===","||a.slice(k,k+5)=="null,"?(g.state_=4,c(),g.jsonStreamParser_.parse("["),k+=a[k]===","?1:5,g.JSC$16882_streamPos_++):a[k]==="]"&&(g.state_=5,k++,g.JSC$16882_streamPos_++);break;case 4:m=g.jsonStreamParser_.parse(a.substring(k));e(m);g.jsonStreamParser_.done()?(g.state_=5,m=g.jsonStreamParser_.JSC$9214_buffer_,
g.JSC$16882_streamPos_+=a.length-k-m.length,a=m,k=0):(g.JSC$16882_streamPos_+=a.length-k,k=a.length);break;case 5:b("extra input after stream end")}}return g.result_.length>0?(a=g.result_,g.result_=[],a):null};var yDc=function(a){this.JSC$16885_xhr_=a;this.JSC$16885_parser_=null;this.status_=this.JSC$16885_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$16885_textDecoder_=null;this.JSC$16885_eventHandler_=new _.an(this);this.JSC$16885_eventHandler_.listen(this.JSC$16885_xhr_,"readystatechange",this.JSC$16887_readyStateChangeHandler_)},VZ=function(a,b){a.status_!=b&&(a.status_=b,a.statusHandler_&&a.statusHandler_())},WZ=function(a){a.JSC$16885_eventHandler_.removeAll();
if(a.JSC$16885_xhr_){var b=a.JSC$16885_xhr_;a.JSC$16885_xhr_=null;b.abort();b.dispose()}};
yDc.prototype.getStatus=function(){return this.status_};
yDc.prototype.JSC$16887_readyStateChangeHandler_=function(a){a=a.target;try{if(a==this.JSC$16885_xhr_)a:{var b=_.Qz(this.JSC$16885_xhr_),c=this.JSC$16885_xhr_.JSC$7645_lastErrorCode_,d=this.JSC$16885_xhr_.getStatus(),e=this.JSC$16885_xhr_.getResponseText();a=[];if(this.JSC$16885_xhr_.getResponse()instanceof Array){var g=this.JSC$16885_xhr_.getResponse();g.length>0&&g[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,a=g)}if(!(b<3||b==3&&!e&&a.length==0))if(d=d==200||d==206,b==4&&(c==8?VZ(this,
7):c==7?VZ(this,8):d||VZ(this,3)),this.JSC$16885_parser_||(this.JSC$16885_parser_=ruc(this.JSC$16885_xhr_),this.JSC$16885_parser_==null&&VZ(this,5)),this.status_>2)WZ(this);else{if(a.length>this.JSC$16885_pos_){var k=a.length;c=[];try{if(this.JSC$16885_parser_.acceptsBinaryInput())for(var m=0;m<k;m++){var n=this.JSC$16885_parser_.parse(Array.from(a[m]));n&&(c=c.concat(n))}else{n="";if(!this.JSC$16885_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Sj");this.JSC$16885_textDecoder_=new TextDecoder}for(m=
0;m<k;m++)n+=this.JSC$16885_textDecoder_.decode(a[m],{stream:b==4&&m==k-1});c=this.JSC$16885_parser_.parse(n)}a.splice(0,k);c&&this.dataHandler_(c)}catch(t){VZ(this,5);WZ(this);break a}}else if(e.length>this.JSC$16885_pos_){m=e.slice(this.JSC$16885_pos_);this.JSC$16885_pos_=e.length;try{var r=this.JSC$16885_parser_.parse(m);r!=null&&this.dataHandler_&&this.dataHandler_(r)}catch(t){VZ(this,5);WZ(this);break a}}b==4?(e.length!=0||this.hasStreamingResponseData_?VZ(this,2):VZ(this,4),WZ(this)):VZ(this,
1)}}}catch(t){VZ(this,6),WZ(this)}};var zDc=function(a){a=this.xhrReader_=a;var b=(0,_.wg)(this.onData_,this);a.dataHandler_=b;a=this.xhrReader_;b=(0,_.wg)(this.onStatusChange_,this);a.statusHandler_=b;this.JSC$16889_callbackMap_={};this.callbackOnceMap_={}};
_.f=zDc.prototype;_.f.on=function(a,b){var c=this.JSC$16889_callbackMap_[a];c||(c=[],this.JSC$16889_callbackMap_[a]=c);c.push(b);return this};
_.f.addListener=function(a,b){this.on(a,b);return this};
_.f.removeListener=function(a,b){var c=this.JSC$16889_callbackMap_[a];c&&_.Qa(c,b);(a=this.callbackOnceMap_[a])&&_.Qa(a,b);return this};
_.f.once=function(a,b){var c=this.callbackOnceMap_[a];c||(c=[],this.callbackOnceMap_[a]=c);c.push(b);return this};
_.f.onData_=function(a){var b=this.JSC$16889_callbackMap_.data;b&&ADc(a,b);(b=this.callbackOnceMap_.data)&&ADc(a,b);this.callbackOnceMap_.data=[]};
var ADc=function(a,b){for(var c={},d=0;d<a.length;c={message$jscomp$949:void 0},d++)c.message$jscomp$949=a[d],b.forEach(function(e){return function(g){try{g(e.message$jscomp$949)}catch(k){}}}(c))};
zDc.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:BDc(this,"readable");break;case 5:case 6:case 4:case 7:case 3:BDc(this,"error");break;case 8:BDc(this,"close");break;case 2:BDc(this,"end")}};
var BDc=function(a,b){var c=a.JSC$16889_callbackMap_[b];c&&c.forEach(function(d){try{d()}catch(e){}});
(c=a.callbackOnceMap_[b])&&c.forEach(function(d){d()});
a.callbackOnceMap_[b]=[]};var CDc=function(){var a={format:"jspb"};a=a===void 0?{}:a;this.suppressCorsPreflight_=a.suppressCorsPreflight||_.Ji("suppressCorsPreflight",a)||!1;this.JSC$16892_withCredentials_=a.withCredentials||_.Ji("withCredentials",a)||!1;this.streamInterceptors_=a.streamInterceptors||[];this.unaryInterceptors_=a.unaryInterceptors||[];this.workerScope_=a.workerScope;this.chunkedServerStreaming_=a.useFetchDownloadStreams||!1},FDc=function(a,b,c,d,e,g){g=g===void 0?{}:g;
var k=b.substring(0,b.length-e.name.length),m,n=(m=g)==null?void 0:m.signal;return DDc(function(r){return new Promise(function(t,u){if(n==null?0:n.aborted){var x=new _.Nz(1,"Aborted");x.cause=n.reason;u(x)}else{var A={},C=EDc(a,r,k);C.on("error",function(F){return u(F)});
C.on("metadata",function(F){A=F});
C.on("data",function(F){var J=A;J=J===void 0?{}:J;t(new TCc(F,J))});
n&&n.addEventListener("abort",function(){C.cancel();var F=new _.Nz(1,"Aborted");F.cause=n.reason;u(F)})}})},a.unaryInterceptors_).call(a,UCc(e,c,d)).then(function(r){return r.responseMessage})},XZ=function(a,b,c,d,e){var g=g===void 0?{}:g;
return FDc(a,b,c,d,e,g)};
CDc.prototype.serverStreaming=function(a,b,c,d){var e=this,g=a.substring(0,a.length-d.name.length);return DDc(function(k){var m=k.methodDescriptor,n=k.getMetadata(),r=GDc(e,!1);n=HDc(e,n,r,g+m.getName());var t=IDc(r,m.responseDeserializeFn,!0);k=m.requestSerializeFn(k.requestMessage);r.send(n,"POST",k);return t},this.streamInterceptors_).call(this,UCc(d,b,c))};
var EDc=function(a,b,c){var d=b.methodDescriptor,e=b.getMetadata(),g=GDc(a,!0);a=HDc(a,e,g,c+d.getName());c=IDc(g,d.responseDeserializeFn,!1);sDc(c,e["X-Goog-Encode-Response-If-Executable"]=="base64");b=d.requestSerializeFn(b.requestMessage);g.send(a,"POST",b);return c},GDc=function(a,b){b=a.chunkedServerStreaming_&&!b;
return a.workerScope_||b?new _.Pz(new QZ({worker:a.workerScope_,streamBinaryChunks:b})):new _.Pz},HDc=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";
b["X-User-Agent"]="grpc-web-javascript/0.1";var e=b.Authorization;if(e&&jDc.has(e.split(" ")[0])||a.JSC$16892_withCredentials_)c.JSC$7645_withCredentials_=!0;if(a.suppressCorsPreflight_)d=vDc(d,"$httpHeaders",b);else for(var g in b)c.headers.set(g,b[g]);return d},IDc=function(a,b,c){if(c){c=new yDc(a);
var d=new zDc(c)}return new NZ({xhr:a,nodeReadableStream:d},b)},DDc=function(a,b){return b.reduce(function(c,d){return function(e){return d.intercept(e,c)}},a)};var JDc=function(a){this.client_=new CDc;this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};
_.f=JDc.prototype;_.f.JSC$16906_depositGoogleCredential=function(a,b){return XZ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",a,b||{},YCc)};
_.f.deleteLink=function(a,b){return XZ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",a,b||{},WCc)};
_.f.JSC$16906_finishOAuth=function(a,b){return XZ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",a,b||{},$Cc)};
_.f.getLink=function(a,b){return XZ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",a,b||{},aDc)};
_.f.startLinkingSession=function(a,b){return XZ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",a,b||{},iDc)};var KDc=[0,XBc,1,$Bc,[0,_.iy,[0,YBc,-1]],[0,ZBc],[0,aCc,-1]];var LDc=function(){this.storage=new Map},NDc=function(a,b,c,d,e){if(!a.storage.has(b))return null;
a=_.h(a.storage.get(b));for(b=a.next();!b.done;b=a.next())if(b=b.value,!e||b.linkName===e)if(c&&b.scopes&&MDc(b.scopes,c)||d&&b.capabilities&&MDc(b.capabilities,d))return b;return null},ODc=function(a,b,c){if(!c)a.storage.delete(b);
else if(a.storage.has(b)){var d=a.storage.get(b).filter(function(e){return e.linkName!==c});
d.length>0?a.storage.set(b,d):a.storage.delete(b)}},MDc=function(a,b){b=_.h(b);
for(var c=b.next();!c.done;c=b.next())if(!a.has(c.value))return!1;return!0};var PDc=function(){var a=_.Fi("LINK_GAL_DOMAIN");this.alsDomain1p=_.Fi("LINK_GAL_DOMAIN");this.alsDomain3p=a;this.clientEnvironment=0;this.supportedFlows=this.clientXd3=void 0;this.accountLinkingEntryPoint=0;this.galSdkEventHandler=this.dataUsageNoticeConfig=void 0;this.loggerType=0;this.colorScheme=2;this.showCloseOption=!0},QDc=function(a,b){a.apiKey=b;
return a};
PDc.prototype.build=function(){var a={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Tj");a.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Uj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Vj");a.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(a.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)a.apiKey=
this.apiKey,a.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Wj");a.oauthToken=this.oauthToken;a.alsDomain=this.alsDomain3p}a.clientXd3=this.clientXd3;a.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(a.authUser=this.authUser);this.bucket!==void 0&&(a.bucket=this.bucket);this.completionUrl!==void 0&&(a.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(a.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(a.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(a.locale=this.locale);a.loggerType=this.loggerType;a.clientEnvironment=this.clientEnvironment;a.colorScheme=this.colorScheme;a.showCloseOption=this.showCloseOption;return a};var FY=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(FY,_.bd);var RDc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(RDc,_.bd);var SDc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(SDc,_.bd);var HY=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(HY,_.bd);var TDc=function(a){return _.Ux(a,1)};var UDc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(UDc,_.bd);var yuc=_.od(UDc),GY=[1,2,3,4,5];var uuc=function(a){try{return yuc(a)}catch(b){return null}},VDc=function(){},vuc=function(a,b){switch(_.Kx(b,GY)){case 4:return(b=_.Xx(b,SDc,4,GY))&&a.logStateTransition(_.Ux(b,1)),!0;
case 5:return(b=_.Xx(b,RDc,5,GY))&&a.logInternalEvent(_.Ux(b,1)),!0}return!1},zuc=function(a){switch(a){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.Wb(a)}};var suc=function(a,b){var c=this;this.validator=a;this.messageListener=b;this.dismissCallback=function(){WDc(c,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$16935_receiveMessage=function(d){d.type==="message"&&(d=d.event_,d!==null&&(new URL(c.iframe.src)).origin===d.origin&&c.validator(d.data,d.origin)&&!c.messageListener(d.data)&&(c.JSC$16935_resolveCb!==void 0&&c.JSC$16935_resolveCb(d.data),XDc(c)))}},xuc=function(a,b,c){a.uiHandler!==void 0&&WDc(a,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(d,e){a.JSC$16935_resolveCb=d;a.JSC$16935_rejectCb=e;a.iframe=document.createElement("iframe");_.Sd(a.iframe,b);a.uiHandler=c.displayContent(a.iframe,a.dismissCallback);_.rs(window,"message",a.JSC$16935_receiveMessage,!1,a)})},WDc=function(a,b){a.JSC$16935_rejectCb!==void 0&&a.JSC$16935_rejectCb(b);
XDc(a)},XDc=function(a){a.uiHandler!==void 0&&a.uiHandler.hideContent();
_.Gz(window,"message",a.JSC$16935_receiveMessage,!1,a);a.JSC$16935_resolveCb=void 0;a.JSC$16935_rejectCb=void 0;a.uiHandler=void 0;a.iframe=void 0};var YDc=function(a){if(a===2){var b;a=((b=window)==null?0:b.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return a},wuc=function(a){a=YDc(a);
switch(a){case 0:return"light";case 1:return"dark";default:_.Wb(a)}};var tuc=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),ZDc=function(a,b){this.JSC$16947_linkingSession=a;this.noticeConfig=b;this.displayInfoMap=new Map;var c=new Map;if(_.Fx(this.JSC$16947_linkingSession,dDc,7))for(a=_.Xj(this.JSC$16947_linkingSession,dDc,7),a=_.Zf(a,cDc,1,_.$f()),a=_.h(a),b=a.next();!b.done;b=a.next())b=b.value,c.set(_.Ux(b,1),_.fja(_.Xj(b,_.l4a,3)));if(c.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){b=this.noticeConfig.enabledDataUsageNoticeUis;a=b.has(0)?c.get(1):void 0;b=b.has(1)?c.get(2):void 0;c=a!==void 0&&b!==void 0?c.get(3):void 0;var d=this.noticeConfig.nestedOrigins;var e=new UDc;var g=new FY;e=_.rd(e,2,GY,g);g=new UDc;var k=new FY;g=_.rd(g,3,GY,k);k=[];a!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:a,lastEvent:e,nestedOrigins:d}]),k.push({trustedUrl:a,lastEvent:e,nestedOrigins:d}));b!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:b,lastEvent:g,nestedOrigins:d}]),k.push({trustedUrl:b,lastEvent:g,nestedOrigins:d}));c!==void 0?this.displayInfoMap.set(3,[{trustedUrl:c,lastEvent:g,nestedOrigins:d}]):this.displayInfoMap.set(3,k)}};var $Dc=function(a){var b=new LDc;this.galService=a;this.galCache=b};
$Dc.prototype.getLink=function(a){var b=a.serviceId;var c=a.scopes;var d=a.capabilities;var e=a.linkName;var g=this,k;return _.l(function(m){if(d!==void 0&&c!==void 0)throw Error("Xj");k=NDc(g.galCache,b,c,d,e);return k!==null?m.return(k):m.return(g.galService.getLink({serviceId:b,sessionId:Math.floor(Math.random()*2147483648),scopes:c,capabilities:d,linkName:e}).then(function(n){n=Euc(n);var r=g.galCache;r.storage.has(b)?r.storage.get(b).push(n):r.storage.set(b,[n]);return n}))})};
$Dc.prototype.deleteLink=function(a,b,c){var d=this;return _.l(function(e){ODc(d.galCache,a,c);return e.return(d.galService.deleteLink({serviceId:a,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:b,linkName:c}).then(function(){return!0}))})};var bEc=function(a,b){var c=this;this.validator=a;this.msgHandler=b;this.closedPopupTimeout=this.JSC$16969_rejectCb=this.JSC$16969_resolveCb=this.popup=null;this.JSC$16969_receiveMessage=function(d){if(d!==null&&(d=d.event_,d.source===c.popup)){var e=d.data;if(c.validator(e,d.origin)){var g;(g=c.msgHandler)!=null&&g.call(c,e)||(c.JSC$16969_resolveCb!==null&&c.JSC$16969_resolveCb(e),aEc(c))}}}};
bEc.prototype.open=function(a,b){var c=this;this.popup!==null&&cEc(this);return new Promise(function(d,e){c.JSC$16969_resolveCb=d;c.JSC$16969_rejectCb=e;c.popup=_.Td(window,a,"",b);_.rs(window,"message",c.JSC$16969_receiveMessage,!1,c);dEc(c)})};
var cEc=function(a,b){a.JSC$16969_rejectCb!==null&&a.JSC$16969_rejectCb(b);aEc(a)},aEc=function(a){a.closedPopupTimeout&&(a.closedPopupTimeout.cancel(),a.closedPopupTimeout=null);
a.popup&&a.popup.close();_.Gz(window,"message",a.JSC$16969_receiveMessage,!1,a);a.popup=null;a.JSC$16969_resolveCb=null;a.JSC$16969_rejectCb=null},dEc=function(a){a.closedPopupTimeout=_.Sfb(100).then(function(){a.popup?a.popup.closed?eEc(a):dEc(a):cEc(a,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},eEc=function(a){a.closedPopupTimeout=_.Sfb(100).then(function(){cEc(a,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var fEc=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),gEc=function(a,b,c,d,e,g,k,m,n,r){var t=this;this.serviceId=a;this.sessionId=b;this.galService=c;this.oauthDetails=d;this.galLogger=e;this.interactionMode=g;this.redirectServiceUrl=k;this.consentLanguageKeys=m;this.dynamicUrlParameters=n;this.partnerConfigMinReadTimestamp=r;this.started=!1;this.JSC$16975_dataValidator=function(u,
x){var A=fEc.has(x);A||t.redirectServiceUrl===void 0||(A=t.redirectServiceUrl===x);return A?u.sentinel==="gdi":!1}};
gEc.prototype.complete=function(){var a=this,b;return _.l(function(c){if(a.interactionMode!==1)return c.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));b=JY.getRedirectStateFromUri();return b===null?c.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):c.return(hEc(a,b))})};
gEc.prototype.start=function(){var a=this,b;return _.l(function(c){if(a.started)return c.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.Tx(a.oauthDetails,1))return c.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(a.interactionMode===1)return JY.setLocation(_.Tx(a.oauthDetails,1)),c.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));a.started=!0;a.galLogger.logStateTransition(5);
b=JY.getPostMessagePopup(a.JSC$16975_dataValidator);return c.return(b.open(_.Tx(a.oauthDetails,1),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(d){a.started=!1;var e=a.galLogger;if((d==null?void 0:d.error)!==void 0)throw e.logInternalEvent(59),Error("Yj");if((d==null?void 0:d.redirect_state)===void 0)throw e.logInternalEvent(131),Error("Zj");return hEc(a,d.redirect_state)}).catch(function(d){a.started=
!1;
return d.errorCode!==void 0?{statusCode:d.errorCode,statusMessage:d.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var hEc=function(a,b){return _.l(function(c){return c.return(iEc(a.galService,{serviceId:a.serviceId,sessionId:a.sessionId,dynamicUrlParameters:a.dynamicUrlParameters,redirectState:b,consentLanguageKeys:a.consentLanguageKeys,partnerConfigMinReadTimestamp:a.partnerConfigMinReadTimestamp}).then(function(d){var e=d.getLink();e={statusCode:1,link:Euc(e)};zsc(_.Ix(d,3))!==void 0&&(e.callerState=zsc(_.Ix(d,3)));a.galLogger.logInternalEvent(134);return e}))})},JY={getPostMessagePopup:function(a){return new bEc(a)},
getRedirectStateFromUri:function(){var a=_.Mg(JY.getLocation()).fragment_;return(new _.rA(a)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(a){_.Vda(window.location,_.Id(a))},
createOAuthFlow:function(a,b){return new gEc(a.serviceId,a.sessionId,a.galService,b,a.galLogger,a.interactionMode,a.redirectServiceUrl,a.consentLanguageKeys,a.dynamicUrlParameters,a.partnerConfigMinReadTimestamp)}};var jEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(jEc,_.bd);var kEc=_.od(jEc);var lEc=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),mEc=function(a,b,c,d,e,g,k,m,n){var r=this;this.serviceId=a;this.sessionId=b;this.galService=c;this.gsiWebFlowDetails=d;this.colorScheme=e;this.showCloseOption=g;this.galLogger=k;this.interactionMode=m;this.redirectServiceUrl=n;this.started=!1;this.JSC$16987_dataValidator=function(t,u){var x=lEc.has(u);x||r.redirectServiceUrl===
void 0||(x=r.redirectServiceUrl===u);return x?t.sentinel==="gal":!1};
this.logEventProcessor=function(t){return t.result?(t=uuc(t.result))?vuc(r.galLogger,t):!1:!1}};
mEc.prototype.complete=function(){var a=this,b,c;return _.l(function(d){if(a.interactionMode!==1)return d.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));b=KY.getRedirectStateFromUri();if(b===void 0)return a.galLogger.JSC$16927_logErrorEvent(131),d.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return c=nEc(a,b),d.return(oEc(a,c))}catch(e){return d.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
mEc.prototype.start=function(){var a=this,b;return _.l(function(c){if(a.started)return c.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.Tx(a.gsiWebFlowDetails,1))return c.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(a.interactionMode===1)return KY.setLocation(pEc(a,_.Tx(a.gsiWebFlowDetails,1))),c.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
a.started=!0;b=KY.getPostMessagePopup(a.JSC$16987_dataValidator,a.logEventProcessor);return c.return(b.open(pEc(a,_.Tx(a.gsiWebFlowDetails,1)),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(d){a.started=!1;if((d==null?void 0:d.result)===void 0)throw a.galLogger.JSC$16927_logErrorEvent(131),Error("Zj");d=nEc(a,d.result);return oEc(a,d)}).catch(function(d){a.started=!1;
return d.errorCode!==void 0?{statusCode:d.errorCode,statusMessage:d.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var pEc=function(a,b){a=["result_channel",a.interactionMode===1?"2":"1","color_scheme",wuc(a.colorScheme),"show_close_option",a.showCloseOption];return dCc(b,a)},oEc=function(a,b){if(b!==null&&_.Fx(b,HY,2)){var c,d=b==null?void 0:(c=_.Xj(b,HY,2))==null?void 0:_.Ux(c,2);
d&&a.galLogger.JSC$16927_logErrorEvent(zuc(d));return TDc(_.Xj(b,HY,2))===1?Promise.resolve({statusCode:10,statusMessage:"flow cannot start due to recoverable reason"}):Promise.resolve({statusMessage:"Web-endpoint returned an error",statusCode:7})}return a.galService.getLink({serviceId:a.serviceId,sessionId:a.sessionId,consistencyKey:_.Tx(b,1)}).then(function(e){e=Euc(e);a.galLogger.logInternalEvent(134);return{statusCode:1,link:e}})},nEc=function(a,b){b=kEc(b);
if(!_.Fx(b,HY,2)&&_.Tx(b,1)==="")throw a.galLogger.JSC$16927_logErrorEvent(5),Error("$j");return b},KY={getPostMessagePopup:function(a,b){return new bEc(a,b)},
getRedirectStateFromUri:function(){return _.Ng(_.Mg(KY.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(a){_.Vda(window.location,_.Id(a))},
createStreamlinedFlow:function(a,b){return new mEc(a.serviceId,a.sessionId,a.galService,b,a.colorScheme,a.showCloseOption,a.galLogger,a.interactionMode,a.redirectServiceUrl)}};var Tuc=function(){var a=_.gpa("GAL");this.storage=a?new _.rj(a):null};var YZ=function(){};
_.z(YZ,VDc);YZ.prototype.logStateTransition=function(){};
YZ.prototype.logInternalEvent=function(){};
YZ.prototype.JSC$16927_logErrorEvent=function(){};var qEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(qEc,_.bd);qEc.prototype.getCompletionUrl=function(){return _.Tx(this,15)};var ZZ=function(a,b,c,d,e,g){this.serviceId=a;this.environment=b;this.sessionId=c;this.colorSchemeSelected=d;this.colorThemeDisplayed=e;this.JSC$17000_transport=g;this.currentState=1};
_.z(ZZ,VDc);ZZ.prototype.logStateTransition=function(a){var b=rEc(this);b=_.Yj(b,3,this.currentState);b=_.Yj(b,1,a);this.currentState=a;a=sAc(1);this.dispatch(b,a)};
ZZ.prototype.logInternalEvent=function(a){a=sAc(a);this.dispatch(rEc(this),a)};
ZZ.prototype.JSC$16927_logErrorEvent=function(a){var b=rEc(this);b=_.Yj(b,1,10);a=sAc(a);this.dispatch(b,a)};
var rEc=function(a){var b=new qEc;b=_.Yj(b,1,a.currentState);b=_.vf(b,7,a.serviceId);var c,d,e;((c=window)==null?0:(d=c.location)==null?0:d.href)?e=_.Mg(window.location.href).JSC$7876_domain_:e="NO_PACKAGE_NAME";c=_.vf(b,8,e);c=_.Yj(c,6,a.environment);c=_.vf(c,5,"100");c=_.Yj(c,11,a.colorSchemeSelected);return _.Yj(c,12,a.colorThemeDisplayed)};
ZZ.prototype.dispatch=function(a,b){b===void 0&&(b=new _.vz);var c=b;a=a.serialize();c=_.vf(c,8,a);_.ql(c,12,this.sessionId);this.JSC$17000_transport.dispatch(b)};var sEc=function(a,b){this.loggerType=a;this.sessionIndex=b!=null?b:0},tEc;
sEc.prototype.create=function(a,b,c,d,e){switch(this.loggerType){case 0:return new YZ;case 1:return tEc||(tEc=(new _.jg(555,this.sessionIndex.toString())).build()),new ZZ(a,b,c,d,e,tEc);default:_.Wb(this.loggerType,"unknown logger type")}};var LY=[6,2,3,1],Yuc=new Map([[4,1],[1,6],[2,2],[3,3]]),Iuc={statusCode:7,statusMessage:"Failed to create flow object"},Ruc=function(a,b,c,d,e,g,k,m,n,r){this.serviceId=a;this.sessionId=b;this.config=c;this.galService=d;this.JSC$17007_linkingSession=e;this.googleScopes=g;this.callerState=k;this.consentLanguageKeys=m;this.dynamicUrlParameters=n;this.partnerConfigMinReadTimestamp=r;this.currentFlow=0;d=this.JSC$17007_linkingSession;e=new Set;_.Fx(d,Nuc,1)&&e.add(1);_.Fx(d,fDc,2)&&_.Fx(d,Ouc,6)&&e.add(2);
_.Fx(d,eDc,3)&&_.Fx(d,Ouc,6)&&e.add(3);_.Fx(d,bDc,4)&&e.add(6);this.supportedFlows=e;d=c.loggerType;e=c.clientEnvironment;a:{g=c.colorScheme;switch(g){case 0:g=1;break a;case 1:g=2;break a;case 2:g=3;break a;default:_.Wb(g)}g=void 0}a:{k=c.colorScheme;k=YDc(k);switch(k){case 0:k=1;break a;case 1:k=2;break a;default:_.Wb(k)}k=void 0}this.galLogger=(new sEc(d,c.authUser)).create(a,e,b,g,k)},vEc=function(a){return new Promise(function(b){var c,d,e,g,k,m,n,r,t,u;
return _.l(function(x){switch(x.nextAddress){case 1:c=Puc(a.currentFlow,a.supportedFlows),d=!1,e=new ZDc(a.JSC$17007_linkingSession,a.config.dataUsageNoticeConfig);case 2:if(c===void 0){x.jumpTo(4);break}_.pe(x,5);var A=e,C=c,F=void 0;d?C===1&&(F=A.displayInfoMap.get(2)):C===2||C===3?F=A.displayInfoMap.get(1):C===1&&(F=A.displayInfoMap.get(3));g=F?F:[];k=a.consentLanguageKeys;m=_.h(g);n=m.next();case 7:if(n.done)return a.currentFlow=c,_.p(x,Kuc(uEc(a,k)),11);r=n.value;return _.p(x,Auc(r,a.config.dataUsageNoticeConfig.uiAdapter,
a.config.colorScheme,a.galLogger),10);case 10:t=x.yieldResult;if(t.statusCode!==1)return Uuc(a.serviceId),a.currentFlow=0,b(IY({statusCode:t.statusCode,statusMessage:t.statusMessage},a.callerState)),x.return();t.consentLanguageKeys!==void 0&&(k=t.consentLanguageKeys);n=m.next();x.jumpTo(7);break;case 11:u=x.yieldResult;if(u.statusCode!==10)return u.statusCode!==6&&(Uuc(a.serviceId),a.currentFlow=0),u.statusCode!==1&&a.callerState!==void 0&&(u.callerState=a.callerState),b(u),x.return();_.Jj(x,6);break;
case 5:_.te(x);case 6:c=Puc(a.currentFlow,a.supportedFlows);d=!0;x.jumpTo(2);break;case 4:Uuc(a.serviceId),a.currentFlow=0,b(IY({statusCode:12,statusMessage:"Linking failed"},a.callerState)),_.ue(x)}})})},Wuc=function(a,b,c){a.currentFlow=b;
return Luc(uEc(a,c)).then(function(d){return d.statusCode===10&&a.config.interactionMode===1&&Puc(a.currentFlow,a.supportedFlows)!==void 0?vEc(a):d})},uEc=function(a,b){return{flowParams:{serviceId:a.serviceId,
sessionId:a.sessionId,galService:a.galService,galLogger:a.galLogger,interactionMode:a.config.interactionMode,redirectServiceUrl:a.config.redirectServiceUrl,colorScheme:a.config.colorScheme,consentLanguageKeys:b,dynamicUrlParameters:a.dynamicUrlParameters,showCloseOption:a.config.showCloseOption,partnerConfigMinReadTimestamp:a.partnerConfigMinReadTimestamp},currentFlow:a.currentFlow,config:a.config,session:a.JSC$17007_linkingSession,googleScopes:a.googleScopes,callerState:a.callerState}};var hvc=function(a,b){this.config=a;this.galService=b.getService();this.JSC$17020_galRepository=b.JSC$17057_galRepository};
hvc.prototype.getLink=function(a,b){return wEc(this,a,b)};
var wEc=function(a,b,c){return a.JSC$17020_galRepository.getLink({serviceId:b,scopes:void 0,capabilities:void 0,linkName:c}).then(function(d){return{statusCode:1,link:d}}).catch(function(d){return{statusCode:Zuc(d.code),
statusMessage:d.message}})};
hvc.prototype.deleteLink=function(a,b){return this.JSC$17020_galRepository.deleteLink(a,this.config.accountLinkingEntryPoint,b).then(function(){return{statusCode:1}}).catch(function(c){return{statusCode:Zuc(c.code),
statusMessage:c.message}})};
hvc.prototype.startLinkingSession=function(a){var b=a.serviceId;var c=a.sessionId;return Suc({serviceId:b,sessionId:c!==void 0?c:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:a.loginHint,callerState:a.callerState,consentLanguageKeys:a.consentLanguageKeys,linkName:a.linkName,dynamicUrlParameters:a.dynamicUrlParameters,partnerConfigMinReadTimestamp:a.partnerConfigMinReadTimestamp})};var $uc=null,dvc=new WeakMap;var xEc=function(){};
xEc.prototype.send=function(a,b){gvc(a);return this.makeRequest(a).then(function(c){if(b){var d=new b;if(c!=null){if(b==null)throw Error("bk");new b;throw Error("dk");}c=d}return c})};var yEc=function(a,b,c,d,e){this.gapiUrl=a;this.gapiKey=b;this.gapiConfigUpdates=c||{};this.gapiAuthParams=d||{};this.defaultApiId=e};
_.z(yEc,xEc);var AEc=function(a){return bvc().then(function(b){b=b||window.gapi;zEc(a,b);return fvc(b,{apiKey:a.gapiKey,clientId:a.gapiAuthParams.clientId,scope:a.gapiAuthParams.scope,hostedDomain:a.gapiAuthParams.hostedDomain,fetchBasicProfile:a.gapiAuthParams.fetchBasicProfile}).then(function(){return b})})};
yEc.prototype.makeRequest=function(a){var b=this;return AEc(this).then(function(c){return _.l(function(d){if(d.nextAddress==1)return b.gapiAuthParams.minAuthTokenTimeRemaining===void 0?d.jumpTo(2):_.p(d,evc(c,b.gapiAuthParams.minAuthTokenTimeRemaining),2);zEc(b,c);return d.return(BEc(c.client.request({root:b.gapiUrl,path:a.path,method:a.httpMethod,body:a.body,params:a.queryParams,headers:a.headers,authType:a.authType,apiId:a.apiId||b.defaultApiId})))})})};
var BEc=function(a){return new Promise(function(b,c){a.then(function(d){b(d.result===!1&&d.body!=null?{data:d.body}:d.result)},function(d){c(d.result===!1&&d.body!=null?{data:d.body}:d.result)})})},zEc=function(a,b){for(var c in a.gapiConfigUpdates)if(a.gapiConfigUpdates.hasOwnProperty(c)){var d=b,e=c,g=a.gapiConfigUpdates[c],k=d.config.get(e);
g!==k&&d.config.update(e,g)}};
yEc.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var $Z=function(a,b,c,d,e,g,k,m){this.apiKey=b;this.authUser=c;this.oauthToken=d;this.bucket=e;this.locale=k;this.galSdkEventHandler=m;if(d===void 0){if(b===void 0)throw Error("ek");this.requestService=new yEc(a,b,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":g===void 0||g===!1,"client/xd3":g===!0})}this.galServiceClient=new JDc(a)};
$Z.prototype.deleteLink=function(a){var b=a.serviceId;var c=a.sessionId;var d=a.accountLinkingEntryPoint;var e=a.linkName;var g=this,k;return _.l(function(m){var n=(new IZ).setHeader(a_(g,c));var r=CEc({serviceId:b,linkName:e});n=_.qd(n,2,r);k=_.Zx(n,3,d);return m.return(g.makeRequest(g.galServiceClient.deleteLink,k,[1,3],[2,4]))})};
var iEc=function(a,b){var c=b.serviceId;var d=b.sessionId;var e=b.dynamicUrlParameters;var g=b.redirectState;var k=b.consentLanguageKeys;var m=b.partnerConfigMinReadTimestamp;var n;return _.l(function(r){var t=(new KZ).setHeader(a_(a,d,e));t=_.kw(t,2,c);n=_.kw(t,4,g);k!==void 0&&_.kw(n,5,k);m!==void 0&&_.qd(n,6,m);return r.return(a.makeRequest(a.galServiceClient.JSC$16906_finishOAuth,n,[1,3],[2,4]))})};
$Z.prototype.getLink=function(a){var b=a.serviceId;var c=a.sessionId;var d=a.scopes;var e=a.capabilities;var g=a.consistencyKey;var k=a.linkName;var m=this,n;return _.l(function(r){var t=(new LZ).setHeader(a_(m,c)),u=CEc({serviceId:b,scopes:d,capabilities:e,linkName:k});n=_.qd(t,2,u);g!==void 0&&(t=PCc(),t=_.kw(t,2,g),_.qd(n,3,t));return r.return(m.makeRequest(m.galServiceClient.getLink,n,[1,3],[2,4]))})};
var Muc=function(a,b){var c=b.serviceId;var d=b.sessionId;var e=b.googleScopes;var g=b.consistencyKey;var k;return _.l(function(m){var n=(new JZ).setHeader(a_(a,d));n=_.kw(n,2,c);var r=Array.from(e.values());n=_.Sc(n,3,r,_.oc);r=PCc();r=_.kw(r,2,g);k=_.qd(n,4,r);return m.return(a.makeRequest(a.galServiceClient.JSC$16906_depositGoogleCredential,k,[1,3],[2,4]))})};
$Z.prototype.startLinkingSession=function(a){var b=a.serviceId;var c=a.sessionId;var d=a.scopes;var e=a.capabilities;var g=a.loginHint;var k=a.supportedFlows;var m=a.completionUrl;var n=a.usePingPong;var r=a.twoWayLinking;var t=a.accountLinkingEntryPoint;var u=a.callerState;var x=a.consentLanguageKeys;var A=a.googleScopes;var C=a.dataUsageNoticeConfig;var F=a.linkName;var J=a.dynamicUrlParameters;var I=a.partnerConfigMinReadTimestamp;var R=this,da,V;return _.l(function(fa){if(e!==void 0&&d!==void 0)throw Error("Xj");
var aa=(new MZ).setHeader(a_(R,c,J));da=_.kw(aa,2,b);F!==void 0&&_.kw(da,14,F);if(e!==void 0){aa=da;var ma=Array.from(e.values());_.Sc(aa,5,ma,_.oc)}else d!==void 0&&(aa=da,ma=Array.from(d.values()),_.Sc(aa,3,ma,_.oc));m!==void 0&&_.kw(da,6,m);n!==void 0&&_.An(da,15,n);k!==void 0&&(aa=da,ma=Array.from(k.values()),_.Sc(aa,4,ma,_.bc));if(r!==void 0){if(r&&(!A||A.size===0))throw Error("fk");_.An(da,8,r)}t!==void 0&&_.Zx(da,9,t);g!==void 0&&_.kw(da,13,g);u!==void 0&&(aa=da,ma=(new TextEncoder).encode(u),
_.Uc(aa,12,_.Eb(ma,!1),_.Ab()));x!==void 0&&_.kw(da,16,x);I!==void 0&&_.qd(da,18,I);if(C!==void 0&&C.size>0||A!==void 0&&A.size>0)V=new hDc,A!==void 0&&A.size>0&&(aa=V,ma=Array.from(A.values()),_.Sc(aa,1,ma,_.oc)),C!==void 0&&(C.has(0)&&_.uca(V,2,_.bc,1,_.cc),C.has(1)&&_.uca(V,2,_.bc,2,_.cc)),_.qd(da,17,V);return fa.return(R.makeRequest(R.galServiceClient.startLinkingSession,da,[1],[2]))})};
$Z.prototype.getMetadata=function(){var a=this,b,c,d;return _.l(function(e){if(e.nextAddress==1)return b={},a.requestService?_.p(e,AEc(a.requestService),3):(b.Authorization="Bearer "+a.oauthToken,e.jumpTo(2));e.nextAddress!=2&&(c=e.yieldResult,b["X-Goog-Api-Key"]=a.apiKey,b["X-Goog-AuthUser"]=a.authUser!==void 0?a.authUser.toString():"0",(d=c.auth.getAuthHeaderValueForFirstParty([]))&&(b.Authorization=d));a.locale&&(b["accept-language"]=a.locale);return e.return(b)})};
$Z.prototype.makeRequest=function(a,b,c,d){var e=this,g;return _.l(function(k){if(k.nextAddress==1)return _.p(k,e.getMetadata(),2);g=k.yieldResult;DEc(e,c);return k.return(a.bind(e.galServiceClient)(b,g).finally(function(){DEc(e,d)}))})};
var DEc=function(a,b){a.galSdkEventHandler!==void 0&&b.forEach(function(c){a.galSdkEventHandler.onEvent(c)})},a_=function(a,b,c){var d=new FZ;
b=_.Uc(d,2,_.dc(b),0);b=_.Zx(b,5,3);c=_.Sc(b,8,c,_.oc);a.bucket!==void 0&&_.kw(c,1,a.bucket);return c},CEc=function(a){var b=a.serviceId;
var c=a.scopes;var d=a.capabilities;a=a.linkName;if(d!==void 0&&c!==void 0)throw Error("Xj");var e=new NCc;b=_.kw(e,1,b);d!==void 0?(c=Array.from(d.values()),_.Sc(b,5,c,_.oc)):c!==void 0&&(c=Array.from(c.values()),_.Sc(b,3,c,_.oc));a!==void 0&&_.kw(b,6,a);return b};var ivc=function(a){this.galService=new $Z(a.alsDomain,a.apiKey,a.authUser,a.oauthToken,a.bucket,a.clientXd3,a.locale,a.galSdkEventHandler);this.JSC$17057_galRepository=new $Dc(this.galService)};
ivc.prototype.getService=function(){return this.galService};var EEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(EEc,_.bd);var FEc=function(a){var b=new EEc;return _.Yj(b,1,a)};
EEc.prototype.setErrorMessage=function(a){return _.vf(this,2,a)};var GEc=[0,_.ky,_.hy,_.ky];var b_=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(b_,_.bd);var HEc=[0,[1,2,3],_.jy,[0,TBc,WBc,-1],_.jy,[0,VBc,-1],_.P$a];var IEc=[0,_.fy,1,_.ky,_.hy,-1,1,_.S$a,_.ey,_.ky,-1,HEc];var JEc=[0,_.ky,[0,_.S$a,_.ey,[0,_.hy]],_.gy,[0,_.ky,-1]];var tZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(tZ,_.bd);var KEc=[0,_.hy,_.ky,-2,_.fy,_.ky,_.fy,_.ky,-2,1,_.gy];var LEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(LEc,_.bd);var MEc=[0,_.fy];var NEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(NEc,_.bd);var OEc=[0,_.ky,JEc,MEc,KEc,IEc];var Yzc=_.kd(NEc,OEc);var PEc=[0,KDc];var dAc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(dAc,_.bd);var QEc=[0,[1,3],bCc,_.ky,bCc];var rZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(rZ,_.bd);var REc=[0,_.ky];var SEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(SEc,_.bd);var sZ=function(a){return _.Xx(a,EEc,2,qZ)},TEc=function(a,b){return _.rd(a,2,qZ,b)},qZ=[1,
2];var UEc=[0,qZ,_.jy,REc,_.jy,GEc,_.iy,QEc,1,_.ky,PEc];var VEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(VEc,_.bd);var WEc=function(a,b){return _.qd(a,3,b)};var XEc=[0,_.ky,UEc,OEc,_.Zdb,[0,[5,6],[0,_.ky,-2],[0,_.fy,_.ky,_.hy],[0,HEc],[0,_.hy,_.ky,-1,_.Ydb],_.jy,[0,[0,_.fy],_.ky,-1],_.jy,[0,[3,4],_.ky,-1,_.jy,[0,[0,_.ky,_.gy]],_.jy,[0]]],_.Zdb,-1,[0,[2,3],_.ky,_.jy,REc,_.jy,GEc,_.iy,QEc,[0,KDc]]];var YEc=_.kd(VEc,XEc),ZEc=_.md(XEc);var $Ec=function(){_.vg.call(this)};
_.z($Ec,_.vg);$Ec.prototype.init=function(){};
new $Ec;var aFc=_.hx(["data-"]),bFc=_.hx(["aria-"]),cFc=_.hx(["aria-"]),dFc=function(a,b){this.isLatencyMeasurementExperiment=a===void 0?!1:a;this.enableDialogA11yFix=b===void 0?!1:b;this.JSC$17084_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.fcb(_.ja.location.href)},$zc=function(a,b){a.onConsentPrimitiveShownCallback=b},eFc=function(a,b){return a.overriddenIframeLoadTimeout?a.overriddenIframeLoadTimeout:b!==void 0?b:5E3},bAc=function(a){if(a.prewarmPromise!==void 0)return a.prewarmPromise;
a.prewarmPromise=new Promise(function(b,c){c_(a,1);fFc(a,gFc(a,!0),hFc(a));a.iframe?a.prewarmChannel||iFc(a,a.iframe,b):c(Error("gk"))});
a.prewarmPromise.finally(function(){a.prewarmPromise=void 0});
return a.prewarmPromise},cAc=function(a){if(a.consentPromise!==void 0)return a.consentPromise;
var b=Date.now();jFc(a,b);a.consentPromise=new Promise(function(c,d){c_(a,0,b);var e=a.isDarkTheme();a.isLatencyMeasurementExperiment||a.initialLoadingStrategy===1||a.initialLoadingStrategy===2||(a.loadingBar||(a.loadingBar=mvc(getComputedStyle(document.body).direction==="rtl",e),a.loadingBar.style.position="fixed",a.loadingBar.style.zIndex="15000"),document.body.appendChild(a.loadingBar));fFc(a,gFc(a),hFc(a));a.iframe?a.channel||kFc(a,a.iframe,c,d):(lFc(a),d(Error("gk")))});
a.consentPromise.finally(function(){a.consentPromise=void 0});
return a.consentPromise},kFc=function(a,b,c,d){var e;
_.l(function(g){switch(g.nextAddress){case 1:c_(a,3);e=!1;setTimeout(function(){e||(lFc(a),mFc(a),nFc(),c(TEc(new SEc,FEc(7).setErrorMessage("Timeout connecting to iframe"))))},eFc(a,oFc(a)));
if(!a.prewarmPromise){g.jumpTo(2);break}_.pe(g,3);return _.p(g,a.prewarmPromise,5);case 5:_.Jj(g,2);break;case 3:_.te(g),c(TEc(new SEc,FEc(4).setErrorMessage("Error while prewarming.")));case 2:a.prewarmChannel&&a.prewarmChannel.send(ZEc(WEc(new VEc,a.consentPrimitiveRequest))),a.channel=_.ny({destination:a.JSC$17084_win,iframe:b,origin:pFc(a),channelName:"cpw",onEstablished:function(){e=!0;lFc(a);a.isLatencyMeasurementExperiment||(a.JSC$17084_previousBodyOverflow=document.body.style.overflow,a.JSC$17084_previousHtmlOverscroll=
document.documentElement.style.overscrollBehavior,a.JSC$17084_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",a.enableDialogA11yFix&&window.addEventListener("blur",a.focusChangeListener));var k=a.iframe;k.style.bottom="0";k.style.position="fixed";k.style.right="0";k.style.border="none";k.style.left="0";k.style.top="0";k.style.zIndex="5000";
k.style.pointerEvents="";k.style.visibility="";a.initialLoadingStrategy===2||a.initialLoadingStrategy===3?c_(a,4):c_(a,6);var m;(m=a.onConsentPrimitiveShownCallback)==null||m.call(a)},
onMessage:function(k){var m=YEc(k.data);switch(_.Ux(m,1)){case 1:k=_.Xj(m,SEc,2);mFc(a);var n=nvc(_.Xj(m,_.bw,7));n&&(a.initialLoadingStrategy!==2&&a.initialLoadingStrategy!==3||c_(a,6,n),c_(a,5,n));if(m=nvc(_.Xj(m,_.bw,6)))c_(a,7,m),c_(a,8);_.Kx(k,qZ)===0&&d(Error("hk"));c(k);break;case 2:nFc()}}}),_.ue(g)}})},iFc=function(a,b,c){a.prewarmChannel=_.ny({destination:a.JSC$17084_win,
iframe:b,origin:pFc(a),channelName:"pwcp",onEstablished:function(){c_(a,2);c()}})},pFc=function(a){var b=_.zd(a.src).toString();
return b&&b.indexOf("://")<0&&b.indexOf("//")!==0?a.origin:_.fcb(b)},gFc=function(a,b){b=b===void 0?!1:b;
var c,d=new Map([["origin",a.origin],["hl",(c=qFc(a))!=null?c:null]]);b&&d.set("pw","1");b=_.h([["cpr",a.consentPrimitiveRequest.serialize()]]);for(c=b.next();!c.done;c=b.next()){var e=_.h(c.value);c=e.next().value;e=e.next().value;d.set(c,e)}a.isDarkTheme()&&d.set("color_scheme","dark");return _.hf(a.src,d)},lFc=function(a){a.isLatencyMeasurementExperiment||a.loadingBar&&document.body.removeChild(a.loadingBar)};
dFc.prototype.getSrc=function(){var a=_.Si(this.origin),b;var c=(b=_.Xj(this.consentPrimitiveRequest,LEc,3))==null?void 0:_.bg(b,1);b="consent.google.com";c=c?"/u/"+encodeURIComponent(c.toString()):"";(a==null?0:a.endsWith("youtube.com"))?b="consent.youtube.com":(a=a==null?void 0:a.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(b="consent.google."+((a[1]?"co.":"")+encodeURIComponent(a[2])));return _.xd("https://"+b+"/signedin"+c+"/landing")};
var fFc=function(a,b,c){a.iframe||(a.iframe=document.createElement("iframe"),a.iframe.style.width="100%",a.iframe.style.height="100%",c!==112496729&&(a.iframe.style.colorScheme="auto"),a.isLatencyMeasurementExperiment&&(a.iframe.style.display="none"),_.Sd(a.iframe,b),a.iframe.setAttribute("jsname","C5o1O"),rFc(a.iframe),document.body.appendChild(a.iframe))},rFc=function(a){a.style.bottom="-200vh";
a.style.position="fixed";a.style.right="-200vw";a.style.border="";a.style.left="";a.style.top="";a.style.zIndex="";a.style.pointerEvents="none";a.style.visibility="hidden"},mFc=function(a){a.iframe&&(a.isLatencyMeasurementExperiment||(a.JSC$17084_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=a.JSC$17084_previousHtmlOverscroll),a.JSC$17084_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=a.JSC$17084_previousBodyOverscroll),a.JSC$17084_previousBodyOverflow!==
void 0&&(document.body.style.overflow=a.JSC$17084_previousBodyOverflow),a.enableDialogA11yFix&&sFc(a,!1)),rFc(a.iframe))};
dFc.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(sFc(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var sFc=function(a,b){var c,d,e=(c=a.iframe)==null?void 0:(d=c.parentElement)==null?void 0:d.children;if(e)for(c=0;c<e.length;c++)d=e[c],d!==a.iframe&&(b?(d.hasAttribute("aria-hidden")&&_.ae([_.cf(aFc)],d,"data-old-aria-hidden",d.getAttribute("aria-hidden")),_.ae([_.cf(bFc)],d,"aria-hidden","true")):(d.removeAttribute("aria-hidden"),d.hasAttribute("data-old-aria-hidden")&&(_.ae([_.cf(cFc)],d,"aria-hidden",d.getAttribute("data-old-aria-hidden")),d.removeAttribute("data-old-aria-hidden"))))},c_=function(a,
b,c){var d;
(d=a.latencyCallback)==null||d.call(a,{latencyType:b,timestampEpochMillis:c!=null?c:Date.now()})};var tFc=function(a,b,c){dFc.call(this,b,c===void 0?!1:c);this.consentPrimitiveRequest=a;a=qFc(this);if(!(0,_.R9a)(a))throw Error("H``"+String(a));this.src=this.getSrc();var d;this.initialLoadingStrategy=(d=_.Xj(this.consentPrimitiveRequest,tZ,4))==null?void 0:_.Ux(d,4)},d_;
_.z(tFc,dFc);var Zzc=function(a){var b=_.w("enable_primitive_dialog_aria_hide_siblings");a={request:a,enableDialogA11yFix:b===void 0?!1:b};d_||(d_=new tFc(a.request,a.isLatencyMeasurementExperiment||_.Ux(a.request,1)===2,a.enableDialogA11yFix));return d_},nFc=function(){d_&&(d_.channel=void 0,d_.prewarmChannel=void 0,d_.iframe&&(document.body.contains(d_.iframe)&&document.body.removeChild(d_.iframe),d_.iframe=void 0),d_=void 0)},qFc=function(a){var b;
return(b=_.Xj(a.consentPrimitiveRequest,tZ,4))==null?void 0:_.Tx(b,1)},jFc=function(a,b){if(!_.Fx(a.consentPrimitiveRequest,b_,5)){var c=a.consentPrimitiveRequest,d=new b_;
_.qd(c,5,d)}var e;if((e=_.Xj(a.consentPrimitiveRequest,b_,5))==null||_.Nx(e,8)==null){var g;(g=_.Xj(a.consentPrimitiveRequest,b_,5))!=null&&_.ql(g,8,b)}},hFc=function(a){var b;
return(b=_.Xj(a.consentPrimitiveRequest,b_,5))==null?void 0:_.bg(b,1)};
tFc.prototype.isDarkTheme=function(){var a;return((a=_.Xj(this.consentPrimitiveRequest,tZ,4))==null?void 0:_.Ux(a,2))===2};
var oFc=function(a){var b;return((b=_.Xj(a.consentPrimitiveRequest,tZ,4))==null?void 0:_.bg(b,5))||void 0};for(var e_={},uFc=(e_[64]="ma",e_[73]="ogb",e_[89]="cr",e_[21]="test",e_[0]="unkn",e_[137]="con",e_[155]="hl",e_[78]="yt",e_[171]="lp",e_[172]="ap",e_[177]="amo",e_[178]="pqe",e_[74]="gg",e_[1]="gm",e_[140]="am",e_),vFc=_.h(Object.keys(uFc)),wFc=vFc.next();!wFc.done;wFc=vFc.next());var xFc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(xFc,_.bd);var yFc=[0,[2,3,4],_.ky,UBc,bCc,_.P$a];var zFc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(zFc,_.bd);var AFc=_.kd(zFc,[0,aCc,_.hy,_.ky,_.hy,_.ky,yFc]);var BFc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(BFc,_.bd);BFc.prototype.getCommand=function(){return _.Ux(this,1)};
var CFc=function(){var a=new BFc;return _.Zx(a,1,0)};var DFc=_.md([0,aCc,_.hy,[0,_.ky,_.hy,-1]]);var EFc=new _.Bz("s"),FFc=new _.Bz("t"),GFc=new _.Bz("u"),HFc=new _.Bz("v"),IFc=function(a,b,c){_.Cz.call(this,EFc);this.mediaKey=a;this.photoUrl=b;this.photoSource=c};
_.z(IFc,_.Cz);var JFc=function(){_.Cz.call(this,FFc)};
_.z(JFc,_.Cz);var KFc=function(a){a=a===void 0?!1:a;_.Cz.call(this,GFc);this.isError=a};
_.z(KFc,_.Cz);var LFc=function(){_.Cz.call(this,HFc)};
_.z(LFc,_.Cz);var MFc=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,QFc=function(a){if(typeof a=="string"){if(a.charAt(0)==".")return NFc(a.substr(1));if(a.charAt(0)=="["){var b=MFc.exec(a);a=a.indexOf("=")==-1?void 0:b[3];return OFc(b[1],a)}return PFc(a)}return a},NFc=function(a){return function(b){return b.getAttribute&&_.aA(b,a)}},OFc=function(a,b){return function(c){return b!==void 0?c.getAttribute&&c.getAttribute(a)==b:c.hasAttribute&&c.hasAttribute(a)}},PFc=function(a){a=a.toUpperCase();
return function(b){return(b=b.tagName)&&b.toUpperCase()==a}},RFc=function(){return!0};var f_=function(a,b){this.JSC$17111_key_=a;this.JSC$17111_value_=b},g_=function(a){throw Error("ik`"+a.JSC$17111_key_);
},SFc=function(a,b){return new TypeError("jk`"+b+"`"+a.JSC$17111_key_+"`"+a.JSC$17111_value_+"`"+typeof a.JSC$17111_value_)};
f_.prototype.string=function(a){if(arguments.length==0)var b=TFc(this);else{var c;b=(c=UFc(this))!=null?c:a}return b};
var TFc=function(a){var b=UFc(a);b===null&&g_(a);return b},UFc=function(a){var b=a.JSC$17111_value_;
if(b==null)return null;if(typeof b==="string")return b;throw SFc(a,"string");};
f_.prototype.bool=function(a){if(arguments.length==0){var b=this.optionalBool();b===null&&g_(this)}else{var c;b=(c=this.optionalBool())!=null?c:a}return b};
f_.prototype.optionalBool=function(){var a=this.JSC$17111_value_;if(a==null)return null;if(typeof a==="boolean")return a;if(typeof a==="string"){a=a.toLowerCase();if(a==="true"||a==="1")return!0;if(a==="false"||a==="0")return!1}throw SFc(this,"boolean");};
f_.prototype.number=function(a){if(arguments.length==0){var b=VFc(this);b===null&&g_(this)}else{var c;b=(c=VFc(this))!=null?c:a}return b};
var VFc=function(a){var b=a.JSC$17111_value_;if(b==null)return null;if(typeof b==="number")return b;if(typeof b==="string"){var c=Number(b);if(!isNaN(c)&&(c!==0||b.trim().length!==0))return c}throw SFc(a,"number");};
f_.prototype.toString=function(){return TFc(this)};
f_.prototype.array=function(a){if(arguments.length==0){var b=WFc(this);b===null&&g_(this);return b}b=WFc(this);return b==null?a:b};
var WFc=function(a){var b=a.JSC$17111_value_;if(b==null)return null;Array.isArray(b)||(typeof b!=="string"?b=[b]:(b=b.trim(),b=b==""?[]:b.split(",").map(function(c){return c.trim()})));
return XFc(a,b)},XFc=function(a,b){var c=a.JSC$17111_key_+"[";
return Array.from(b,function(d,e){return new f_(c+e+"]",d)})};
f_.prototype.object=function(a){var b=this.JSC$17111_value_;if(b==null)return a===void 0&&g_(this),a;if(typeof b==="object"&&b.constructor===Object){a={};var c=this.JSC$17111_key_+".",d;for(d in b)a[d]=new f_(c+d,b[d]);return a}throw SFc(this,"object");};var h_=function(a){this.list_=YFc(a)},YFc=function(a){if(a instanceof h_)a=a.list_;
else if(a[0]instanceof h_){for(var b=new Set,c=0;c<a.length;c++)for(var d=_.h(a[c].list_),e=d.next();!e.done;e=d.next())b.add(e.value);a=b}return[].concat(_.De(a))};
_.f=h_.prototype;_.f.each=function(a,b,c){((c===void 0?0:c)?usc:_.Mi)(this.list_,a,b);return this};
_.f.size=function(){return this.list_.length};
_.f.isEmpty=function(){return this.list_.length===0};
_.f.get=function(a){return this.list_[a]||null};
_.f.el=function(){return this.list_[0]||null};
_.f.map=function(a,b){return _.Df(this.list_,a,b)};
_.f.equals=function(a){return this===a||_.bb(this.list_,a.list_)};
_.f.first=function(){return this.list_.length==0?null:new i_(this.list_[0])};
_.f.find=function(a){var b=[];this.each(function(c){c=c.querySelectorAll(String(a));for(var d=0;d<c.length;d++)b.push(c[d])});
return new h_(b)};
_.f.parent=function(){var a=[];this.each(function(b){(b=b.parentElement||null)&&!_.Oa(a,b)&&a.push(b)});
return new h_(a)};
_.f.children=function(){var a=[];this.each(function(b){b=_.Yy(b);for(var c=0;c<b.length;c++)a.push(b[c])});
return new h_(a)};
_.f.filter=function(a){a=_.vx(this.list_,QFc(a));return new h_(a)};
_.f.closest=function(a){var b=[],c=QFc(a),d=function(e){return _.Sk(e)&&c(e)};
this.each(function(e){(e=_.Jf(e,d,!0))&&!_.Oa(b,e)&&b.push(e)});
return new h_(b)};
_.f.next=function(a){return ZFc(this,_.fdb,a)};
_.f.prev=function(a){return ZFc(this,fCc,a)};
var ZFc=function(a,b,c){var d=[];var e=c?QFc(c):RFc;a.each(function(g){(g=b(g))&&e(g)&&d.push(g)});
return new h_(d)};
h_.prototype.setClass=function(a){return this.each(function(b){_.$z(b,a)})};
var $Fc=function(a,b){return a.each(function(c){_.Qs(c,b)})},aGc=function(a,b){return a.each(function(c){_.Os(c,b)})};
h_.prototype.toggleClass=function(a,b){return b===!0?$Fc(this,a):b===!1?aGc(this,a):this.each(function(c){_.aA(c,a)?_.Os(c,a):_.Qs(c,a)})};
h_.prototype.setText=function(a){return this.each(function(b){_.Zy(b,a)})};
var bGc=function(a){a.each(function(b){b.removeAttribute("aria-hidden")})};
h_.prototype.getStyle=function(a){if(this.list_.length>0){var b=this.list_[0],c=b.style[_.pn(a)];return typeof c!=="undefined"?c:b.style[_.vdb(b,a)]||""}};
h_.prototype.getData=function(a){if(this.list_.length===0)return new f_(a,null);var b=Bsc(this.list_[0],a);return new f_(a,b)};
h_.prototype.focus=function(a){try{a?this.el().focus(a):this.el().focus()}catch(b){}return this};
h_.prototype.click=function(){var a=_.Hf(this.el());if(a.createEvent){var b=a.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,a.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(b)}else a=a.createEventObject(),a.clientX=0,a.clientY=0,a.screenX=0,a.screenY=0,a.altKey=!1,a.ctrlKey=!1,a.shiftKey=!1,a.button=0,this.el().fireEvent("onclick",a)};
var j_=function(a,b,c,d){function e(m,n,r){var t=n;n&&n.parentNode&&(t=n.cloneNode(!0));m(t,r)}
d=d===void 0?!1:d;if(a.list_.length==1){var g=a.list_[0],k=function(m){return b(m,g)};
c instanceof h_?c.each(k,void 0,d):Array.isArray(c)?(d?usc:_.Mi)(c,k):k(c);return a}return a.each(function(m){c instanceof h_?c.each(function(n){e(b,n,m)}):Array.isArray(c)?_.Mi(c,function(n){e(b,n,m)}):e(b,c,m)})};
_.f=h_.prototype;_.f.append=function(a){return j_(this,function(b,c){b&&c.appendChild(b)},a)};
_.f.appendTo=function(a){(new h_([a])).append(this);return this};
_.f.remove=function(){return j_(this,function(a,b){_.qg(b)},null)};
_.f.empty=function(){return j_(this,function(a,b){_.Vy(b)},null)};
_.f.after=function(a,b){return j_(this,function(c,d){c&&_.Xy(c,d)},a,!(b===void 0||b))};
_.f.before=function(a){return j_(this,function(b,c){b&&_.Wy(b,c)},a)};
_.f.replaceWith=function(a){return j_(this,function(b,c){b&&_.cdb(b,c)},a)};
_.f.toggle=function(a){return this.each(function(b){_.Pg(b,a)})};
_.f.show=function(){return this.toggle(!0)};
_.f.hide=function(){return this.toggle(!1)};
_.f.trigger=function(a,b,c,d){return cGc(this,a,b,c,d)};
var cGc=function(a,b,c,d,e){return a.each(function(g){_.Xja(_.Hf(g)).triggerWizEventInternal(g,b,c,d,e)})},i_=function(a,b){a instanceof h_&&(b=a.list_,a=null);
this.list_=YFc(a!=null?[a]:b)};
_.sx(i_,h_);_.f=i_.prototype;_.f.children=function(){return new h_(Array.prototype.slice.call(_.Yy(this.list_[0])))};
_.f.each=function(a,b){a.call(b,this.list_[0],0);return this};
_.f.size=function(){return 1};
_.f.el=function(){return this.list_[0]};
_.f.first=function(){return this};var k_=function(a,b){b=b===void 0?window:b;this.hostId=a;this.JSC$17122_win=b;this.scheme="https";this.domain="myaccount.google.com";this.authUser=this.port=0;this.colorScheme="";this.parentElement=document.body;this.iframePosition="fixed";this.opened=!1;this.JSC$17122_previousHtmlOverscroll=this.JSC$17122_previousBodyOverscroll=this.JSC$17122_previousBodyOverflow="";this.eventTarget=new _.Hz;this.JSC$17122_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
fGc=function(a){var b=dGc(dGc(dGc(new eGc(78),"po"),"hppp"),"hhc");
b.authUser=Number(_.Fi("SESSION_INDEX","0"));b.colorScheme=a;return b};
k_.prototype.getOrigin=function(){return this.origin?this.origin:_.mA(_.lA(_.kA(new _.Yn,this.JSC$17122_win.location.protocol),this.JSC$17122_win.location.hostname),this.JSC$17122_win.location.port).toString()};
k_.prototype.getTargetOrigin=function(){return _.mA(_.lA(_.kA(new _.Yn,this.scheme),this.domain),this.port)};
k_.prototype.preloadIframe=function(a){var b=this;if(this.iframeLoadPromise===void 0){var c=document.createElement("iframe");this.iframe=c;uvc(c,a);this.iframeLoadPromise=new Promise(function(d,e){var g=!1,k=function(m){m.stopPropagation();c.removeEventListener("error",k);c.removeEventListener("securitypolicyviolation",k);e(Error("kk",{cause:m}))};
c.addEventListener("error",k);c.addEventListener("securitypolicyviolation",k);setTimeout(function(){g||e(Error("lk"))},3E4);
gGc(b,c,function(){g=!0;c.removeEventListener("error",k);c.removeEventListener("securitypolicyviolation",k);d()})});
hGc(this);a=this.getTargetOrigin().toString();c.setAttribute("allow","camera "+a+"; display-capture "+a);this.parentElement.appendChild(c)}return this.iframeLoadPromise};
var kGc=function(a,b){var c,d;return _.l(function(e){if(e.nextAddress==1)return c=mvc(getComputedStyle(a.parentElement).direction==="rtl"),a.parentElement.appendChild(c),document.activeElement instanceof HTMLElement&&(a.elementToFocusAfterClose=document.activeElement),_.pe(e,2),_.p(e,a.preloadIframe(b),4);if(e.nextAddress!=2){a.parentElement.removeChild(c);a.JSC$17122_previousBodyOverflow=a.parentElement.style.overflow;a.JSC$17122_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
a.JSC$17122_previousBodyOverscroll=a.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";a.parentElement.style.overscrollBehavior="contain";a.parentElement.style.overflow="hidden";var g=a.iframe;g.style.bottom="0";g.style.border="none";g.style.height="100%";g.style.left="0";g.style.position=a.iframePosition;g.style.right="0";g.style.top="0";g.style.width="100%";g.style.zIndex="2202";g.setAttribute("aria-hidden","false");g.setAttribute("aria-modal","true");
a.opened=!0;iGc(a);return _.Jj(e,0)}d=_.te(e);a.parentElement.removeChild(c);rvc(a.isDarkTheme());jGc(a,!1);throw Error("mk",{cause:d});})},jGc=function(a,b){b=b===void 0?!0:b;
a.iframe!==void 0&&(lGc(a),document.documentElement.style.overscrollBehavior=a.JSC$17122_previousHtmlOverscroll,a.parentElement.style.overscrollBehavior=a.JSC$17122_previousBodyOverscroll,a.parentElement.style.overflow=a.JSC$17122_previousBodyOverflow,a.elementToFocusAfterClose!==void 0&&(a.elementToFocusAfterClose.focus(),a.elementToFocusAfterClose=void 0),b?hGc(a):(a.parentElement.removeChild(a.iframe),a.iframe=void 0,a.iframeLoadPromise=void 0,a.mainChannel=void 0),a.opened=!1)},lGc=function(a){a.backgroundElementsAriaHiddenIsNull&&
(bGc(a.backgroundElementsAriaHiddenIsNull),a.backgroundElementsAriaHiddenIsNull=void 0);
a.backgroundElementsAriaHiddenIsFalse&&(a.backgroundElementsAriaHiddenIsFalse.each(function(b){b.setAttribute("aria-hidden","false")}),a.backgroundElementsAriaHiddenIsFalse=void 0);
a.backgroundElementsWithoutInert&&(a.backgroundElementsWithoutInert.each(function(b){b.removeAttribute("inert")}),a.backgroundElementsWithoutInert=void 0)},iGc=function(a){a.backgroundElementsAriaHiddenIsNull=(new i_(a.iframe.parentElement)).children().filter(function(b){return b.getAttribute("aria-hidden")===null&&b!==a.iframe});
a.backgroundElementsAriaHiddenIsNull.each(function(b){b.setAttribute("aria-hidden","true")});
a.backgroundElementsAriaHiddenIsFalse=(new i_(a.iframe.parentElement)).children().filter(function(b){return b.getAttribute("aria-hidden")==="false"&&b!==a.iframe});
a.backgroundElementsAriaHiddenIsFalse.each(function(b){b.setAttribute("aria-hidden","true")});
a.backgroundElementsWithoutInert=(new i_(a.iframe.parentElement)).children().filter(function(b){return!b.hasAttribute("inert")&&b!==a.iframe});
a.backgroundElementsWithoutInert.each(function(b){b.setAttribute("inert","true")})},hGc=function(a){a=a.iframe;
a.style.bottom="-1000px";a.style.position="fixed";a.style.right="-1000px";a.style.border="";a.style.height="";a.style.left="";a.style.top="";a.style.width="";a.style.zIndex="";a.setAttribute("aria-hidden","true");a.setAttribute("aria-modal","false")};
k_.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var eGc=function(a,b){k_.call(this,uFc[a],b);this.options=[];this.style=""};
_.z(eGc,k_);var mGc=function(a){a.style="youtube";return a},nGc=function(a,b){a.eventTarget.listen(GFc,b);
return a},oGc=function(a,b){a.eventTarget.listen(EFc,b);
return a},dGc=function(a,b){a.options.push(b);
return a},pGc=function(a){var b=[a.getOrigin()];
a.ancestorOrigins&&b.push.apply(b,_.De(a.ancestorOrigins));var c=new _.Yn(a.JSC$17122_win.location.href),d=a.startUrl?a.startUrl:a.options.includes("po")?"profile-picture/art":"profile-picture";b=uZ(_.nA(a.getTargetOrigin(),d),"origin",b);a.startUrl&&_.Og(b,"startPath",a.startUrl);a.authUser>0&&_.Og(b,"authuser",a.authUser);a.pageId!==void 0&&_.Og(b,"pageId",a.pageId);_.Og(b,"hostId",a.hostId);a.jsMode!==void 0&&_.Og(b,"jsmode",a.jsMode);a.options.length>0&&_.Og(b,"opts",a.options.join(","));try{for(var e=
_.h(["utm_source","utm_medium","utm_campaign","utm_content"]),g=e.next();!g.done;g=e.next()){var k=g.value;_.Ng(c,k)&&_.Og(b,k,_.Ng(c,k))}var m,n=(m=a.hl)!=null?m:_.Ng(c,"hl");n!==void 0&&_.Og(b,"hl",n)}catch(r){if(!(r instanceof URIError))throw r;}a.colorScheme&&_.Og(b,"theme",a.colorScheme);a.style&&_.Og(b,"style",a.style);return b},qGc=function(a,b){a.mainChannel=_.ny({destination:a.JSC$17122_win,
iframe:b,origin:a.getTargetOrigin().toString(),channelName:"ow",onMessage:function(c){c=AFc(c.data);if(b===a.iframe)switch(_.Ux(c,1)){case 1:a.eventTarget.dispatchEvent(new KFc);jGc(a);break;case 2:a.eventTarget.dispatchEvent(new IFc(_.Jb(_.Tx(c,4)),_.Jb(_.Tx(c,2)),_.Jb(_.Ux(c,5)),_.Jb(_.Xj(c,xFc,6))));break;case 0:var d;a.eventTarget.dispatchEvent(new JFc(_.Jb(_.Tx(c,2)),(d=_.Ux(c,3))!=null?d:0));break;case 3:a.eventTarget.dispatchEvent(new KFc(!0));jGc(a,!1);break;case 4:a.eventTarget.dispatchEvent(new LFc)}}})},
gGc=function(a,b,c){_.ny({destination:a.JSC$17122_win,
iframe:b,origin:_.mA(_.lA(_.kA(new _.Yn,a.scheme),a.domain),a.port).toString(),channelName:"owi",onMessage:function(d){b===a.iframe&&(c!==void 0&&c(),qGc(a,b),a.opened&&a.mainChannel.send(DFc(CFc())),d.reply(),gGc(a,b))}})};
eGc.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?k_.prototype.preloadIframe.call(this,pGc(this).toString()):this.iframeLoadPromise};
eGc.prototype.openPicker=function(a){var b=this;return _.l(function(c){if(c.nextAddress==1)return b.startUrl=a?a:b.options.includes("po")?"profile-picture/art":"profile-picture",_.p(c,kGc(b,pGc(b).toString()),2);if(b.mainChannel){var d=b.mainChannel,e=d.send;var g=CFc();g=_.vf(g,2,b.startUrl);e.call(d,DFc(g))}_.ue(c)})};var rGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(rGc,_.bd);_.f=rGc.prototype;_.f.getSize=function(){return _.Px(this,1)};
_.f.setSize=function(a){return _.Yx(this,1,a)};
_.f.getWidth=function(){return _.Px(this,12)};
_.f.getHeight=function(){return _.Px(this,13)};
_.f.setCenterCrop=function(a){return _.gg(this,20,a)};
_.f.getHtml=function(){return _.Qx(this,4)};
_.f.getToken=function(){return _.og(this,24)};
_.f.setToken=function(a){return _.vf(this,24,a)};
_.f.getBackgroundColor=function(){return _.Px(this,87)};
_.f.hasBackgroundColor=function(){return _.Px(this,87)!=null};
_.f.getStoryboardLevel=function(){return _.Px(this,109)};var l_=function(a){this.JSC$17130_value_=void 0;this.childNodes_={};if(a){var b=_.pib(a);a=_.jA(a);for(var c=0;c<b.length;c++)this.set(b[c],a[c])}};
l_.prototype.set=function(a,b){sGc(this,a,b,!1)};
l_.prototype.add=function(a,b){sGc(this,a,b,!0)};
var sGc=function(a,b,c,d){for(var e=0;e<b.length;e++){var g=b.charAt(e);a.childNodes_[g]||(a.childNodes_[g]=new l_);a=a.childNodes_[g]}if(d&&a.JSC$17130_value_!==void 0)throw Error("nk`"+b);a.JSC$17130_value_=c},tGc=function(a,b){for(var c=0;c<b.length;c++)if(a=a.childNodes_[b.charAt(c)],!a)return;
return a};
l_.prototype.get=function(a){return(a=tGc(this,a))?a.JSC$17130_value_:void 0};
l_.prototype.getValues=function(){var a=[];uGc(this,a);return a};
var uGc=function(a,b){a.JSC$17130_value_!==void 0&&b.push(a.JSC$17130_value_);for(var c in a.childNodes_)uGc(a.childNodes_[c],b)};
l_.prototype.getKeys=function(a){var b=[];if(a){for(var c=this,d=0;d<a.length;d++){var e=a.charAt(d);if(!c.childNodes_[e])return[];c=c.childNodes_[e]}vGc(c,a,b)}else vGc(this,"",b);return b};
var vGc=function(a,b,c){a.JSC$17130_value_!==void 0&&c.push(b);for(var d in a.childNodes_)vGc(a.childNodes_[d],b+d,c)};
_.f=l_.prototype;_.f.containsKey=function(a){return this.get(a)!==void 0};
_.f.containsValue=function(a){if(this.JSC$17130_value_===a)return!0;for(var b in this.childNodes_)if(this.childNodes_[b].containsValue(a))return!0;return!1};
_.f.clear=function(){this.childNodes_={};this.JSC$17130_value_=void 0};
_.f.remove=function(a){for(var b=this,c=[],d=0;d<a.length;d++){var e=a.charAt(d);if(!b.childNodes_[e])throw Error("ok`"+a);c.push([b,e]);b=b.childNodes_[e]}a=b.JSC$17130_value_;for(delete b.JSC$17130_value_;c.length>0;)if(d=c.pop(),b=d[0],d=d[1],b.childNodes_[d].isEmpty())delete b.childNodes_[d];else break;return a};
_.f.clone=function(){return new l_(this)};
_.f.getCount=function(){return iCc(this.getValues())};
_.f.isEmpty=function(){return this.JSC$17130_value_===void 0&&_.Cf.isEmpty(this.childNodes_)};var zvc=function(){if(!wGc){var a=wGc=new l_,b;for(b in xGc)a.add(b,xGc[b])}},wGc,m_=function(a,b){this.types=a;
this.setters=b},xGc={a:new m_([3,
0],[function(a,b){_.gg(a,21,b)},
function(a,b){_.Yx(a,56,b)}]),
al:new m_([3],[function(a,b){_.gg(a,74,b)}]),
b:new m_([3,0],[function(a,b){_.gg(a,23,b)},
function(a,b){_.Yx(a,38,b)}]),
ba:new m_([0],[function(a,b){_.Yx(a,85,b)}]),
bc:new m_([0],[function(a,b){_.Yx(a,87,b)}]),
br:new m_([0],[function(a,b){_.Yx(a,86,b)}]),
c:new m_([3,0],[function(a,b){_.gg(a,2,b)},
function(a,b){_.Yx(a,39,b)}]),
cc:new m_([3],[function(a,b){_.gg(a,51,b)}]),
ci:new m_([3],[function(a,b){_.gg(a,32,b)}]),
ckm:new m_([3],[function(a,b){_.gg(a,104,b)}]),
cp:new m_([0],[function(a,b){_.Yx(a,92,b)}]),
cr:new m_([3],[function(a,b){_.gg(a,108,b)}]),
cv:new m_([0],[function(a,b){_.Yx(a,94,b)}]),
d:new m_([3],[function(a,b){_.gg(a,3,b)}]),
dc:new m_([5],[function(a,b){_.vf(a,99,b)}]),
df:new m_([3],[function(a,b){_.gg(a,80,b)}]),
dv:new m_([3],[function(a,b){_.gg(a,90,b)}]),
e:new m_([0],[function(a,b){_.Yx(a,15,b)}]),
em:new m_([0],[function(a,b){_.Yx(a,107,b)}]),
f:new m_([4],[function(a,b){_.vf(a,16,b)}]),
fg:new m_([3],[function(a,b){_.gg(a,34,b)}]),
fh:new m_([3],[function(a,b){_.gg(a,30,b)}]),
fm:new m_([3],[function(a,b){_.gg(a,84,b)}]),
fo:new m_([2],[function(a,b){_.Zj(a,79,_.Xb(b))}]),
ft:new m_([3],[function(a,b){_.gg(a,50,b)}]),
fv:new m_([3],[function(a,b){_.gg(a,31,b)}]),
g:new m_([3],[function(a,b){_.gg(a,14,b)}]),
gce:new m_([4],[function(a,b){_.vf(a,112,b)}]),
gd:new m_([3],[function(a,b){_.gg(a,83,b)}]),
gm:new m_([3],[function(a,b){_.gg(a,105,b)}]),
h:new m_([3,0],[function(a,b){_.gg(a,4,b)},
function(a,b){_.Yx(a,13,b)}]),
i:new m_([3],[function(a,b){_.gg(a,22,b)}]),
ic:new m_([0],[function(a,b){_.Yx(a,71,b)}]),
id:new m_([3],[function(a,b){_.gg(a,70,b)}]),
il:new m_([3],[function(a,b){_.gg(a,96,b)}]),
ip:new m_([3],[function(a,b){_.gg(a,54,b)}]),
iv:new m_([0],[function(a,b){_.ql(a,75,b)}]),
j:new m_([1],[function(a,b){b=b==null?b:xsc(b);_.Zj(a,29,b)}]),
k:new m_([3,0],[function(a,b){_.gg(a,17,b)},
function(a,b){_.Yx(a,42,b)}]),
l:new m_([0],[function(a,b){_.Yx(a,44,b)}]),
lf:new m_([3],[function(a,b){_.gg(a,65,b)}]),
lo:new m_([3],[function(a,b){_.gg(a,97,b)}]),
m:new m_([0],[function(a,b){_.Yx(a,63,b)}]),
md:new m_([3],[function(a,b){_.gg(a,91,b)}]),
mm:new m_([4],[function(a,b){_.vf(a,81,b)}]),
mo:new m_([3],[function(a,b){_.gg(a,73,b)}]),
mv:new m_([3],[function(a,b){_.gg(a,66,b)}]),
n:new m_([3],[function(a,b){a.setCenterCrop(b)}]),
nc:new m_([3],[function(a,b){_.gg(a,55,b)}]),
nd:new m_([3],[function(a,b){_.gg(a,53,b)}]),
ng:new m_([3],[function(a,b){_.gg(a,95,b)}]),
ngm:new m_([3],[function(a,b){_.gg(a,106,b)}]),
no:new m_([3],[function(a,b){_.gg(a,37,b)}]),
ns:new m_([3],[function(a,b){_.gg(a,40,b)}]),
nt0:new m_([4],[function(a,b){_.vf(a,36,b)}]),
ntm:new m_([3],[function(a,b){_.gg(a,114,b)}]),
nu:new m_([3],[function(a,b){_.gg(a,46,b)}]),
nw:new m_([3],[function(a,b){_.gg(a,48,b)}]),
o:new m_([1,3],[function(a,b){b=b==null?b:xsc(b);_.Zj(a,7,b)},
function(a,b){_.gg(a,27,b)}]),
p:new m_([3,0],[function(a,b){_.gg(a,19,b)},
function(a,b){_.Yx(a,43,b)}]),
pa:new m_([3],[function(a,b){_.gg(a,61,b)}]),
pc:new m_([0],[function(a,b){_.Yx(a,88,b)}]),
pd:new m_([3],[function(a,b){_.gg(a,60,b)}]),
pf:new m_([3],[function(a,b){_.gg(a,67,b)}]),
pg:new m_([3],[function(a,b){_.gg(a,72,b)}]),
pi:new m_([2],[function(a,b){_.Zj(a,76,_.Xb(b))}]),
pp:new m_([3],[function(a,b){_.gg(a,52,b)}]),
pt:new m_([4],[function(a,b){_.vf(a,111,b)}]),
q:new m_([4],[function(a,b){_.vf(a,28,b)}]),
r:new m_([3,0],[function(a,b){_.gg(a,6,b)},
function(a,b){_.Yx(a,26,b)}]),
ra:new m_([3],[function(a,b){_.gg(a,103,b)}]),
rf:new m_([3],[function(a,b){_.gg(a,100,b)}]),
rg:new m_([3],[function(a,b){_.gg(a,59,b)}]),
rh:new m_([3],[function(a,b){_.gg(a,49,b)}]),
rj:new m_([3],[function(a,b){_.gg(a,57,b)}]),
ro:new m_([2],[function(a,b){_.Zj(a,78,_.Xb(b))}]),
rp:new m_([3],[function(a,b){_.gg(a,58,b)}]),
rw:new m_([3],[function(a,b){_.gg(a,35,b)}]),
rwa:new m_([3],[function(a,b){_.gg(a,64,b)}]),
rwu:new m_([3],[function(a,b){_.gg(a,41,b)}]),
s:new m_([3,0],[function(a,b){_.gg(a,33,b)},
function(a,b){a.setSize(b)}]),
sb:new m_([0],[function(a,b){_.Yx(a,110,b)}]),
sc:new m_([0],[function(a,b){_.Yx(a,89,b)}]),
sg:new m_([3],[function(a,b){_.gg(a,82,b)}]),
sl:new m_([0],[function(a,b){_.Yx(a,109,b)}]),
sm:new m_([3],[function(a,b){_.gg(a,93,b)}]),
t:new m_([4],[function(a,b){a.setToken(b)}]),
tm:new m_([3],[function(a,b){_.gg(a,113,b)}]),
u:new m_([3],[function(a,b){_.gg(a,18,b)}]),
ut:new m_([3],[function(a,b){_.gg(a,45,b)}]),
v:new m_([0],[function(a,b){_.Yx(a,62,b)}]),
vb:new m_([0],[function(a,b){_.ql(a,68,b)}]),
vf:new m_([4],[function(a,b){_.vf(a,102,b)}]),
vl:new m_([0],[function(a,b){_.ql(a,69,b)}]),
vm:new m_([3],[function(a,b){_.gg(a,98,b)}]),
w:new m_([0],[function(a,b){_.Yx(a,12,b)}]),
x:new m_([0],[function(a,b){_.Yx(a,9,b)}]),
y:new m_([0],[function(a,b){_.Yx(a,10,b)}]),
ya:new m_([2],[function(a,b){_.Zj(a,77,_.Xb(b))}]),
z:new m_([0],[function(a,b){_.Yx(a,11,b)}])};
zvc.prototype.parse=function(a){var b=new rGc,c=new rGc;if(a=="")a=!0;else{a=a.split("-");for(var d=!0,e=0;e<a.length;e++){var g=a[e];if(g.length==0)d=!1;else{var k=g,m=!1;var n=k;var r=k.charAt(0);r!=r.toLowerCase()&&(m=!0,n=k.charAt(0).toLowerCase()+k.substring(1));var t=wGc;for(r=1;r<=n.length;++r){var u=t,x=n.substring(0,r);if(x.length==0?u.isEmpty():!tGc(u,x))break}n=r==1?null:(n=t.get(n.substring(0,r-1)))?{option:k.substring(0,r-1),value:k.substring(r-1),signed:m,attributes:n}:null;if(n){k=
[];m=[];r=!1;for(t=0;t<n.attributes.types.length;t++){u=n.attributes.types[t];var A=n.value;x=e;if(n.signed&&u==1)for(var C=A.length;C<12&&x<a.length-1;)A+="-"+a[x+1],C=A.length,++x;else if(u==2)for(;x<a.length-1&&a[x+1].match(/^[\d\.]/);)A+="-"+a[x+1],++x;C=n.attributes.setters[t];A=yGc(this,u)(n.option,A,b,c,C);if(A===null){r=!0;e=x;break}else k.push(u),m.push(A)}if(!r)for(n=0;n<m.length;n++)t=k[n],A=m[n],zGc(this,t)(g,A);d=d&&r}else d=!1}}a=d}return new AGc(b,c,a)};
var n_=function(a,b,c,d,e,g){e(c,b);a=a.charAt(0);g=g(a==a.toUpperCase());e(d,g)};
_.f=zvc.prototype;_.f.parseAndSetIntOption_=function(a,b,c,d,e){if(b=="")return 0;isFinite(b)&&(b=String(b));b=typeof b==="string"?/^\s*-?0x/i.test(b)?parseInt(b,16):parseInt(b,10):NaN;if(isNaN(b))return 1;n_(a,b,c,d,e,Number);return null};
_.f.logIntParseError_=function(){};
_.f.parseAndSetFloatOption_=function(a,b,c,d,e){if(b=="")return 0;var g=Number(b);b=g==0&&_.pa(b)?NaN:g;if(isNaN(b))return 1;n_(a,b,c,d,e,Number);return null};
_.f.logFloatParseError_=function(){};
_.f.parseAndSetBoolOption_=function(a,b,c,d,e){if(b!="")return 2;n_(a,!0,c,d,e,Boolean);return null};
_.f.logBoolParseError_=function(){};
_.f.parseAndSetStringOption_=function(a,b,c,d,e){if(b=="")return 0;n_(a,b,c,d,e,function(g){return g?"1":""});
return null};
_.f.logStringParseError_=function(){};
_.f.parseAndSetUint64Base64Option_=function(a,b,c,d,e){if(b=="")return 0;n_(a,b,c,d,e,function(g){return g?1:0});
return null};
var yGc=function(a,b){switch(b){case 0:return(0,_.wg)(a.parseAndSetIntOption_,a);case 2:return(0,_.wg)(a.parseAndSetFloatOption_,a);case 3:return(0,_.wg)(a.parseAndSetBoolOption_,a);case 4:return(0,_.wg)(a.parseAndSetStringOption_,a);case 1:return(0,_.wg)(a.parseAndSetUint64Base64Option_,a);default:return function(){}}},zGc=function(a,b){switch(b){case 0:return(0,_.wg)(a.logIntParseError_,a);
case 2:return(0,_.wg)(a.logFloatParseError_,a);case 3:return(0,_.wg)(a.logBoolParseError_,a);case 4:case 1:return(0,_.wg)(a.logStringParseError_,a);default:return function(){}}},AGc=function(a,b,c){this.valueProto_=a;
this.signatureFlagProto_=b;this.JSC$17142_valid_=c};
AGc.prototype.isValid=function(){return this.JSC$17142_valid_};var vvc=function(a){this.JSC$17143_parser_=null;this.JSC$17143_components_=[];this.JSC$17143_parsedOptions_=null;BGc(this,a)},CGc=function(a){a.JSC$17143_parser_==null&&(a.JSC$17143_parser_=new zvc);
return a.JSC$17143_parser_},BGc=function(a,b){a.JSC$17143_parsedOptions_=b?typeof b==="string"?CGc(a).parse(b):b:CGc(a).parse("")},o_=function(a,b){return a==b?!1:!0};
_.f=vvc.prototype;_.f.JSC$17145_setCrop=function(a){a=a||void 0;var b=this.JSC$17143_parsedOptions_,c=b.valueProto_;o_(a,_.Qx(c,2),_.Qx(b.signatureFlagProto_,2))&&_.gg(c,2,a);return this};
_.f.JSC$17145_setCircleCrop=function(a){a=a||void 0;var b=this.JSC$17143_parsedOptions_,c=b.valueProto_;o_(a,_.Ox(c,51),_.Ox(b.signatureFlagProto_,51))&&_.gg(c,51,a);return this};
_.f.JSC$17145_setImageCrop=function(a){a=a||void 0;var b=this.JSC$17143_parsedOptions_,c=b.valueProto_;o_(a,_.Ox(c,32),_.Ox(b.signatureFlagProto_,32))&&_.gg(c,32,a);return this};
_.f.JSC$17145_setHeight=function(a){var b=this.JSC$17143_parsedOptions_,c=b.valueProto_;o_(a,c.getHeight(),b.signatureFlagProto_.getHeight())&&_.Yx(c,13,a);return this};
_.f.setCenterCrop=function(a){a=a||void 0;var b=this.JSC$17143_parsedOptions_,c=b.valueProto_;o_(a,_.Qx(c,20),_.Qx(b.signatureFlagProto_,20))&&c.setCenterCrop(a);return this};
_.f.JSC$17145_setSmartCrop=function(a){a=a||void 0;var b=this.JSC$17143_parsedOptions_,c=b.valueProto_;o_(a,_.Qx(c,19),_.Qx(b.signatureFlagProto_,19))&&_.gg(c,19,a);return this};
_.f.JSC$17145_setPad=function(a){a=a||void 0;var b=this.JSC$17143_parsedOptions_,c=b.valueProto_;o_(a,_.Ox(c,60),_.Ox(b.signatureFlagProto_,60))&&_.gg(c,60,a);return this};
_.f.JSC$17145_setSmartCropUseFace=function(a){a=a||void 0;var b=this.JSC$17143_parsedOptions_,c=b.valueProto_;o_(a,_.Qx(c,67),_.Qx(b.signatureFlagProto_,67))&&_.gg(c,67,a);return this};
_.f.JSC$17145_setSmartCropNoClip=function(a){a=a||void 0;var b=this.JSC$17143_parsedOptions_,c=b.valueProto_;o_(a,_.Qx(c,52),_.Qx(b.signatureFlagProto_,52))&&_.gg(c,52,a);return this};
_.f.setSize=function(a){var b=this.JSC$17143_parsedOptions_,c=b.valueProto_;o_(a,c.getSize(),b.signatureFlagProto_.getSize())&&c.setSize(a);return this};
_.f.setToken=function(a){a=a||void 0;var b=this.JSC$17143_parsedOptions_,c=b.valueProto_;o_(a,c.getToken(),b.signatureFlagProto_.getToken())&&c.setToken(a);return this};
_.f.JSC$17145_setWidth=function(a){var b=this.JSC$17143_parsedOptions_,c=b.valueProto_;o_(a,c.getWidth(),b.signatureFlagProto_.getWidth())&&_.Yx(c,12,a);return this};
_.f.clearOptions=function(){BGc(this,"");return this};
_.f.build=function(){this.JSC$17143_components_.length=0;var a=this.JSC$17143_parsedOptions_,b=a.valueProto_;a=a.signatureFlagProto_;p_(this,"s",b.getSize(),a.getSize());p_(this,"w",b.getWidth(),a.getWidth());q_(this,"c",_.Qx(b,2),_.Qx(a,2));q_(this,"d",_.Qx(b,3),_.Qx(a,3));p_(this,"h",b.getHeight(),a.getHeight());q_(this,"s",_.Ox(b,33),_.Ox(a,33));q_(this,"h",b.getHtml(),a.getHtml());q_(this,"p",_.Qx(b,19),_.Qx(a,19));q_(this,"pp",_.Qx(b,52),_.Qx(a,52));q_(this,"pf",_.Qx(b,67),_.Qx(a,67));q_(this,
"n",_.Qx(b,20),_.Qx(a,20));p_(this,"r",_.Px(b,26),_.Px(a,26));q_(this,"r",_.Qx(b,6),_.Qx(a,6));q_(this,"o",_.Ox(b,27),_.Ox(a,27));var c=ysc(_.Ex(b,7));r_(this,"o",c,ysc(_.Ex(a,7)));c=ysc(_.Ex(b,29));r_(this,"j",c,ysc(_.Ex(a,29)));p_(this,"x",_.Px(b,9),_.Px(a,9));p_(this,"y",_.Px(b,10),_.Px(a,10));p_(this,"z",_.Px(b,11),_.Px(a,11));q_(this,"g",_.Qx(b,14),_.Qx(a,14));p_(this,"e",_.Px(b,15),_.Px(a,15));r_(this,"f",_.og(b,16),_.og(a,16));q_(this,"k",_.Ox(b,17),_.Ox(a,17));q_(this,"u",_.Ox(b,18),!0);q_(this,
"ut",_.Ox(b,45),!0);q_(this,"i",_.Ox(b,22),!0);q_(this,"a",_.Ox(b,21),_.Ox(a,21));q_(this,"b",_.Qx(b,23),_.Qx(a,23));p_(this,"b",_.Px(b,38),_.Px(a,38));p_(this,"c",_.Px(b,39),_.Px(a,39),16,8);r_(this,"q",_.og(b,28),_.og(a,28));q_(this,"fh",_.Ox(b,30),_.Ox(a,30));q_(this,"fv",_.Ox(b,31),_.Ox(a,31));q_(this,"fg",_.Qx(b,34),_.Qx(a,34));q_(this,"ci",_.Ox(b,32),_.Ox(a,32));r_(this,"t",b.getToken(),a.getToken());r_(this,"nt0",_.og(b,36),_.og(a,36));q_(this,"rw",_.Qx(b,35),_.Qx(a,35));q_(this,"rwu",_.Qx(b,
41),_.Qx(a,41));q_(this,"rwa",_.Qx(b,64),_.Qx(a,64));q_(this,"nw",_.Qx(b,48),_.Qx(a,48));q_(this,"rh",_.Qx(b,49),_.Qx(a,49));q_(this,"no",_.Qx(b,37),_.Qx(a,37));q_(this,"ns",_.Ox(b,40),_.Ox(a,40));p_(this,"k",_.Px(b,42),_.Px(a,42));p_(this,"p",_.Px(b,43),_.Px(a,43));p_(this,"l",_.Px(b,44),_.Px(a,44));p_(this,"v",_.Px(b,62),_.Px(a,62));q_(this,"nu",_.Ox(b,46),_.Ox(a,46));q_(this,"ft",_.Ox(b,50),_.Ox(a,50));q_(this,"cc",_.Ox(b,51),_.Ox(a,51));q_(this,"nd",_.Ox(b,53),_.Ox(a,53));q_(this,"ip",_.Ox(b,
54),_.Ox(a,54));q_(this,"nc",_.Ox(b,55),_.Ox(a,55));p_(this,"a",_.Px(b,56),_.Px(a,56));q_(this,"rj",_.Ox(b,57),_.Ox(a,57));q_(this,"rp",_.Ox(b,58),_.Ox(a,58));q_(this,"rg",_.Ox(b,59),_.Ox(a,59));q_(this,"pd",_.Ox(b,60),_.Ox(a,60));q_(this,"pa",_.Ox(b,61),_.Ox(a,61));p_(this,"m",_.Px(b,63),_.Px(a,63));p_(this,"vb",_.Nx(b,68),_.Nx(a,68));p_(this,"vl",_.Nx(b,69),_.Nx(a,69));q_(this,"lf",_.Ox(b,65),_.Ox(a,65));q_(this,"mv",_.Ox(b,66),_.Ox(a,66));q_(this,"id",_.Ox(b,70),_.Ox(a,70));p_(this,"ic",_.Px(b,
71),!0);q_(this,"pg",_.Qx(b,72),_.Qx(a,72));q_(this,"mo",_.Ox(b,73),_.Ox(a,73));q_(this,"al",_.Ox(b,74),_.Ox(a,74));p_(this,"iv",_.Nx(b,75),_.Nx(a,75));p_(this,"pi",_.Hx(b,76),_.Hx(a,76));p_(this,"ya",_.Hx(b,77),_.Hx(a,77));p_(this,"ro",_.Hx(b,78),_.Hx(a,78));p_(this,"fo",_.Hx(b,79),_.Hx(a,79));q_(this,"df",_.Ox(b,80),_.Ox(a,80));r_(this,"mm",_.og(b,81),_.og(a,81));q_(this,"sg",_.Ox(b,82),_.Ox(a,82));q_(this,"gd",_.Ox(b,83),_.Ox(a,83));q_(this,"fm",_.Ox(b,84),_.Ox(a,84));p_(this,"ba",_.Px(b,85),_.Px(a,
85));p_(this,"br",_.Px(b,86),_.Px(a,86));p_(this,"bc",b.getBackgroundColor(),a.getBackgroundColor(),16,8);p_(this,"pc",_.Px(b,88),_.Px(a,88),16,8);p_(this,"sc",_.Px(b,89),_.Px(a,89),16,8);q_(this,"dv",_.Ox(b,90),_.Ox(a,90));q_(this,"md",_.Ox(b,91),_.Ox(a,91));p_(this,"cp",_.Px(b,92),_.Px(a,92));q_(this,"sm",_.Ox(b,93),_.Ox(a,93));p_(this,"cv",_.Px(b,94),_.Px(a,94));q_(this,"ng",_.Ox(b,95),_.Ox(a,95));q_(this,"il",_.Ox(b,96),_.Ox(a,96));q_(this,"lo",_.Ox(b,97),_.Ox(a,97));q_(this,"vm",_.Ox(b,98),_.Ox(a,
98));r_(this,"dc",_.og(b,99),_.og(a,99));q_(this,"rf",_.Ox(b,100),_.Ox(a,100));r_(this,"vf",_.og(b,102),_.og(a,102));q_(this,"ra",_.Qx(b,103),_.Qx(a,103));q_(this,"ckm",_.Ox(b,104),_.Ox(a,104));q_(this,"gm",_.Ox(b,105),_.Ox(a,105));q_(this,"ngm",_.Ox(b,106),_.Ox(a,106));p_(this,"em",_.Px(b,107),_.Px(a,107));q_(this,"cr",_.Ox(b,108),_.Ox(a,108));p_(this,"sl",b.getStoryboardLevel(),a.getStoryboardLevel());p_(this,"sb",_.Px(b,110),_.Px(a,110));r_(this,"pt",_.og(b,111),_.og(a,111));r_(this,"gce",_.og(b,
112),_.og(a,112));q_(this,"tm",_.Ox(b,113),_.Ox(a,113));q_(this,"ntm",_.Ox(b,114),_.Ox(a,114));return this.JSC$17143_components_.join("-")};
var p_=function(a,b,c,d,e,g){if(c!=null){var k=e==void 0||e!=10&&e!=16?10:e;c=c.toString(k);e=new Qsc;e.append(k==16?"0x":"");k=e.append;g==void 0?g="":(g-=c.length,g=g<=0?"":(0,_.ubb)("0",g));k.call(e,g);e.append(c);DGc(a,b,e.toString(),!!d)}},q_=function(a,b,c,d){c&&DGc(a,b,"",!!d)},r_=function(a,b,c,d){c&&DGc(a,b,c,!!d)},DGc=function(a,b,c,d){d&&(b=b.charAt(0).toUpperCase()+b.substring(1));
a.JSC$17143_components_.push(b+c)};_.sx(MY,vvc);_.f=MY.prototype;_.f.JSC$17145_setCrop=function(a){a&&s_(this);return MY.superClass_.JSC$17145_setCrop.call(this,a)};
_.f.JSC$17145_setHeight=function(a){a=a==null||a<0?void 0:a;a!=null&&this.setSize();return MY.superClass_.JSC$17145_setHeight.call(this,a)};
_.f.JSC$17145_setImageCrop=function(a){a&&s_(this);return MY.superClass_.JSC$17145_setImageCrop.call(this,a)};
_.f.JSC$17145_setCircleCrop=function(a){a&&s_(this);return MY.superClass_.JSC$17145_setCircleCrop.call(this,a)};
_.f.setSize=function(a){_.Za(a)&&(a=Math.max(a.width,a.height));a=a==null||a<0?void 0:a;a!=null&&(this.JSC$17145_setWidth(),this.JSC$17145_setHeight());return MY.superClass_.setSize.call(this,a)};
_.f.JSC$17145_setSmartCrop=function(a){a&&s_(this);return MY.superClass_.JSC$17145_setSmartCrop.call(this,a)};
_.f.JSC$17145_setSmartCropNoClip=function(a){a&&s_(this);return MY.superClass_.JSC$17145_setSmartCropNoClip.call(this,a)};
_.f.JSC$17145_setSmartCropUseFace=function(a){a&&s_(this);return MY.superClass_.JSC$17145_setSmartCropUseFace.call(this,a)};
_.f.setCenterCrop=function(a){a&&s_(this);return MY.superClass_.setCenterCrop.call(this,a)};
_.f.JSC$17145_setPad=function(a){a&&s_(this);return MY.superClass_.JSC$17145_setPad.call(this,a)};
_.f.JSC$17145_setWidth=function(a){a=a==null||a<0?void 0:a;a!=null&&this.setSize();return MY.superClass_.JSC$17145_setWidth.call(this,a)};
var EGc=function(a){a.clearOptions();var b=a.JSC$17143_parsedOptions_,c=b.valueProto_;o_(!0,_.Qx(c,3),_.Qx(b.signatureFlagProto_,3))&&_.gg(c,3,!0);return a},s_=function(a){a.setCenterCrop();
a.JSC$17145_setCircleCrop();a.JSC$17145_setCrop();a.JSC$17145_setImageCrop();a.JSC$17145_setPad();a.JSC$17145_setSmartCrop();a.JSC$17145_setSmartCropNoClip();a.JSC$17145_setSmartCropUseFace()};
MY.prototype.build=function(){var a=this.JSC$17143_parsedOptions_.valueProto_;_.Ox(a,18)||_.Ox(a,45)?a.getSize()||this.setSize(0):(a=this.JSC$17143_parsedOptions_.valueProto_,a.getSize()||a.getWidth()||a.getHeight()||(this.setSize(),this.JSC$17145_setHeight(),this.JSC$17145_setWidth(),s_(this)));return MY.superClass_.build.call(this)};var FGc=/^[^\/]*\/\//,t_=function(a,b){b=b===void 0?!1:b;this.original_=a;this.originalPrefix_="";(a=this.original_.match(FGc))&&a[0]?(this.originalPrefix_=a[0],a=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):a="http://"+this.original_;this.uri_=_.Mg(a,!0);this.isFreeformUrl_=b;this.JSC$17149_valid_=!0;this.obfuscated_=!1},GGc=function(a,b){a.JSC$17151_pathPrefix_=a.JSC$17151_pathPrefix_?a.JSC$17151_pathPrefix_+("/"+b):b},u_=function(a){if(a.JSC$17151_components_==
void 0){var b=a.uri_.getPath().substring(1);
a.JSC$17151_pathPrefix_=null;if(a.isFreeformUrl_){a.JSC$17151_components_=[];if((b.match(/=/g)||[]).length>1)return a.JSC$17149_valid_=!1,a.JSC$17151_components_;var c=b.indexOf("=");c!=-1?(a.JSC$17151_components_.push(b.substr(0,c)),a.JSC$17151_components_.push(b.substr(c+1))):a.JSC$17151_components_.push(b);return a.JSC$17151_components_}a.JSC$17151_components_=b.split("/");b=a.JSC$17151_components_.length;b>2&&a.JSC$17151_components_[0]=="u"&&(GGc(a,a.JSC$17151_components_[0]+"/"+a.JSC$17151_components_[1]),
a.JSC$17151_components_.shift(),a.JSC$17151_components_.shift(),b-=2);if(b==0||b==4||b>7)return a.JSC$17149_valid_=!1,a.JSC$17151_components_;if(b==2)GGc(a,a.JSC$17151_components_[0]);else if(a.JSC$17151_components_[0]=="image")GGc(a,a.JSC$17151_components_[0]);else if(b==7||b==3)return a.JSC$17149_valid_=!1,a.JSC$17151_components_;if(b<=3){a.obfuscated_=!0;b==3&&(GGc(a,a.JSC$17151_components_[1]),a.JSC$17151_components_.shift(),--b);--b;c=a.JSC$17151_components_[b];var d=c.indexOf("=");d!=-1&&(a.JSC$17151_components_[b]=
c.substr(0,d),a.JSC$17151_components_.push(c.substr(d+1)))}}return a.JSC$17151_components_};
t_.prototype.isValid=function(){u_(this);return this.JSC$17149_valid_};
t_.prototype.isObfuscated=function(){u_(this);return this.obfuscated_};
var HGc=function(a){u_(a);return a.isFreeformUrl_},v_=function(a){u_(a);
a.JSC$17151_pathPrefix_==void 0&&(a.JSC$17151_pathPrefix_=null);return a.JSC$17151_pathPrefix_},IGc=function(a){switch(u_(a).length){case 7:return!0;
case 6:return v_(a)==null;case 5:return!1;case 3:return!0;case 2:return v_(a)==null;case 1:return!1;default:return!1}},w_=function(a,b){if(HGc(a))a:{switch(b){case 7:b=0;
break;case 4:if(!IGc(a)){a=null;break a}b=1;break;default:a=null;break a}a=u_(a)[b]}else if(a.isObfuscated())a:{var c=v_(a)!=null?1:0;switch(b){case 6:b=c;break;case 4:if(!IGc(a)){a=null;break a}b=1+c;break;default:a=null;break a}a=u_(a)[b]}else a:{c=v_(a)!=null?1:0;switch(b){case 0:b=c;break;case 1:b=1+c;break;case 2:b=2+c;break;case 3:b=3+c;break;case 4:if(!IGc(a)){a=null;break a}b=4+c;break;case 5:b=IGc(a)?1:0;b=4+c+b;break;default:a=null;break a}a=u_(a)[b]}return a};
t_.prototype.getOptions=function(){this.options_==void 0&&(this.options_=w_(this,4));return this.options_};var yvc=function(){};
yvc.prototype.parse=function(a,b){return new wvc(a,b===void 0?!1:b)};
var wvc=function(a,b){t_.call(this,a,b===void 0?!1:b)};
_.z(wvc,t_);_.sx(NY,MY);var xvc;NY.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
NY.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var a=NY.superClass_.build.call(this),b=[];v_(this.parsedImageUrl_)!=null&&b.push(v_(this.parsedImageUrl_));var c=HGc(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var d=this.parsedImageUrl_;d.obfuscatedData_==void 0&&(d.obfuscatedData_=w_(d,6));b.push(d.obfuscatedData_+(a?"="+a:""))}else if(c){d=b.push;var e=this.parsedImageUrl_;e.freeformUrlPath_===void 0&&(e.freeformUrlPath_=w_(e,
7));d.call(b,e.freeformUrlPath_);a&&b.push(a)}else d=b.push,e=this.parsedImageUrl_,e.obfuscatedGaiaId_==void 0&&(e.obfuscatedGaiaId_=w_(e,0)),d.call(b,e.obfuscatedGaiaId_),d=b.push,e=this.parsedImageUrl_,e.photoId_==void 0&&(e.photoId_=w_(e,1)),d.call(b,e.photoId_),d=b.push,e=this.parsedImageUrl_,e.imageVersion_==void 0&&(e.imageVersion_=w_(e,2)),d.call(b,e.imageVersion_),d=b.push,e=this.parsedImageUrl_,e.signature_==void 0&&(e.signature_=w_(e,3)),d.call(b,e.signature_),a&&b.push(a),a=b.push,d=this.parsedImageUrl_,
d.filename_==void 0&&(d.filename_=w_(d,5)),a.call(b,d.filename_);b=c?b.join("="):b.join("/");b=_.Mg(this.protocolPrefix_+this.JSC$17157_domain_+"/"+b+(this.JSC$17157_query_?"?"+this.JSC$17157_query_:"")).toString();b.startsWith("%3a//")&&(b=b.replace("%3a//","://"));return b};var JGc=_.hx(["viewBox"]),KGc=_.hx(["width"]),LGc=_.hx(["height"]),MGc=_.hx(["fill"]),NGc=_.hx(["id"]),OGc=_.hx(["x"]),PGc=_.hx(["y"]);Avc.prototype.getLength=function(){return this.parsedData.length};
Avc.prototype.write=function(a){for(var b=0,c=this.parsedData.length;b<c;b++)a.put(this.parsedData[b],8)};
var Hvc=function(a,b){var c=new Avc(b);a.dataList.push(c);c=a.errorCorrectLevel;var d=1,e=encodeURI(b).toString().replace(/%[0-9a-fA-F]{2}/g,"a");b=e.length+(e.length!=b?3:0);e=0;for(var g=x_.length;e<=g;e++){var k=0;switch(c){case 1:k=x_[e][0];break;case 0:k=x_[e][1];break;case 3:k=x_[e][2];break;case 2:k=x_[e][3]}if(b<=k)break;else d++}if(d>x_.length)throw Error("xk");a.typeNumber=d;a.dataCache=null};
Bvc.prototype.isDark=function(a,b){if(a<0||this.moduleCount<=a||b<0||this.moduleCount<=b)throw Error("pk`"+a+"`"+b);return this.modules[a][b]};
for(var Ivc=function(a,b,c){a.moduleCount=a.typeNumber*4+17;a.modules=Array(a.moduleCount);for(var d=0;d<a.moduleCount;d++){a.modules[d]=Array(a.moduleCount);for(var e=0;e<a.moduleCount;e++)a.modules[d][e]=null}QGc(a,0,0);QGc(a,a.moduleCount-7,0);QGc(a,0,a.moduleCount-7);d=RGc[a.typeNumber-1];for(e=0;e<d.length;e++)for(var g=0;g<d.length;g++){var k=d[e],m=d[g];if(a.modules[k][m]==null)for(var n=-2;n<=2;n++)for(var r=-2;r<=2;r++)a.modules[k+n][m+r]=n==-2||n==2||r==-2||r==2||n==0&&r==0?!0:!1}for(d=
8;d<a.moduleCount-8;d++)a.modules[d][6]==null&&(a.modules[d][6]=d%2==0);for(d=8;d<a.moduleCount-8;d++)a.modules[6][d]==null&&(a.modules[6][d]=d%2==0);d=a.errorCorrectLevel<<3|c;for(e=d<<10;y_(e)-y_(1335)>=0;)e^=1335<<y_(e)-y_(1335);d=(d<<10|e)^21522;for(e=0;e<15;e++)g=!b&&(d>>e&1)==1,e<6?a.modules[e][8]=g:e<8?a.modules[e+1][8]=g:a.modules[a.moduleCount-15+e][8]=g;for(e=0;e<15;e++)g=!b&&(d>>e&1)==1,e<8?a.modules[8][a.moduleCount-e-1]=g:e<9?a.modules[8][15-e-1+1]=g:a.modules[8][15-e-1]=g;a.modules[a.moduleCount-
8][8]=!b;if(a.typeNumber>=7){d=a.typeNumber;for(e=d<<12;y_(e)-y_(7973)>=0;)e^=7973<<y_(e)-y_(7973);d=d<<12|e;for(e=0;e<18;e++)g=!b&&(d>>e&1)==1,a.modules[Math.floor(e/3)][e%3+a.moduleCount-8-3]=g;for(e=0;e<18;e++)g=!b&&(d>>e&1)==1,a.modules[e%3+a.moduleCount-8-3][Math.floor(e/3)]=g}if(a.dataCache==null){e=a.typeNumber;g=a.dataList;b=a.errorCorrectLevel;d=SGc(e,b);if(d==void 0)throw Error("wk`"+e+"`"+b);k=d.length/3;b=[];for(m=0;m<k;m++){n=d[m*3];r=d[m*3+1];for(var t=d[m*3+2],u=0;u<n;u++)b.push(new Cvc(r,
t))}d=new Dvc;for(k=0;k<g.length;k++)m=g[k],d.put(m.mode,4),d.put(m.getLength(),TGc(m.mode,e)),m.write(d);for(k=e=0;k<b.length;k++)e+=b[k].dataCount;if(d.length>e*8)throw Error("qk`"+d.length+"`"+e*8);for(d.length+4<=e*8&&d.put(0,4);d.length%8!=0;)UGc(d,!1);for(;!(d.length>=e*8);){d.put(236,8);if(d.length>=e*8)break;d.put(17,8)}g=e=r=0;k=Array(b.length);m=Array(b.length);for(n=0;n<b.length;n++){u=b[n].dataCount;var x=b[n].totalCount-u;e=Math.max(e,u);g=Math.max(g,x);k[n]=Array(u);for(t=0;t<k[n].length;t++)k[n][t]=
255&d.buffer[t+r];r+=u;t=x;u=new OY([1],0);for(x=0;x<t;x++)u=u.multiply(new OY([1,VGc(x)],0));t=u;u=WGc(new OY(k[n],t.getLength()-1),t);m[n]=Array(t.getLength()-1);for(t=0;t<m[n].length;t++)x=t+u.getLength()-m[n].length,m[n][t]=x>=0?u.get(x):0}for(t=d=0;t<b.length;t++)d+=b[t].totalCount;d=Array(d);for(t=r=0;t<e;t++)for(n=0;n<b.length;n++)t<k[n].length&&(d[r++]=k[n][t]);for(t=0;t<g;t++)for(n=0;n<b.length;n++)t<m[n].length&&(d[r++]=m[n][t]);a.dataCache=d}b=a.dataCache;d=-1;e=a.moduleCount-1;g=7;k=0;
for(m=a.moduleCount-1;m>0;m-=2)for(m==6&&m--;;){for(n=0;n<2;n++)a.modules[e][m-n]==null&&(r=!1,k<b.length&&(r=(b[k]>>>g&1)==1),XGc(c,e,m-n)&&(r=!r),a.modules[e][m-n]=r,g--,g==-1&&(k++,g=7));e+=d;if(e<0||a.moduleCount<=e){e-=d;d=-d;break}}},QGc=function(a,b,c){for(var d=-1;d<=7;d++)if(!(b+d<=-1||a.moduleCount<=b+d))for(var e=-1;e<=7;e++)c+e<=-1||a.moduleCount<=c+e||(a.modules[b+d][c+e]=0<=d&&d<=6&&(e==0||e==6)||0<=e&&e<=6&&(d==0||d==6)||2<=d&&d<=4&&2<=e&&e<=4?!0:!1)},Jvc=function(a){for(var b=0,c=
0,d=0;d<8;d++){Ivc(a,!0,d);
var e=a;for(var g=e.moduleCount,k=0,m=0;m<g;m++)for(var n=0;n<g;n++){for(var r=0,t=e.isDark(m,n),u=-1;u<=1;u++)if(!(m+u<0||g<=m+u))for(var x=-1;x<=1;x++)n+x<0||g<=n+x||(u!=0||x!=0)&&t==e.isDark(m+u,n+x)&&r++;r>5&&(k+=3+r-5)}for(m=0;m<g-1;m++)for(n=0;n<g-1;n++)if(r=0,e.isDark(m,n)&&r++,e.isDark(m+1,n)&&r++,e.isDark(m,n+1)&&r++,e.isDark(m+1,n+1)&&r++,r==0||r==4)k+=3;for(m=0;m<g;m++)for(n=0;n<g-6;n++)e.isDark(m,n)&&!e.isDark(m,n+1)&&e.isDark(m,n+2)&&e.isDark(m,n+3)&&e.isDark(m,n+4)&&!e.isDark(m,n+5)&&
e.isDark(m,n+6)&&(k+=40);for(n=0;n<g;n++)for(m=0;m<g-6;m++)e.isDark(m,n)&&!e.isDark(m+1,n)&&e.isDark(m+2,n)&&e.isDark(m+3,n)&&e.isDark(m+4,n)&&!e.isDark(m+5,n)&&e.isDark(m+6,n)&&(k+=40);for(n=r=0;n<g;n++)for(m=0;m<g;m++)e.isDark(m,n)&&r++;e=k+=Math.abs(100*r/g/g-50)/5*10;if(d==0||b>e)b=e,c=d}return c},RGc=[[],
[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,
154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],y_=function(a){for(var b=0;a!=0;)b++,a>>>=1;return b},XGc=function(a,b,c){switch(a){case 0:return(b+c)%2==0;
case 1:return b%2==0;case 2:return c%3==0;case 3:return(b+c)%3==0;case 4:return(Math.floor(b/2)+Math.floor(c/3))%2==0;case 5:return b*c%2+b*c%3==0;case 6:return(b*c%2+b*c%3)%2==0;case 7:return(b*c%3+(b+c)%2)%2==0;default:throw Error("rk`"+a);}},TGc=function(a,b){if(1<=b&&b<10)switch(a){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("sk`"+a);}else if(b<27)switch(a){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("sk`"+a);}else if(b<41)switch(a){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("sk`"+a);}else throw Error("tk`"+b);},z_=function(a){if(a<1)throw Error("uk`"+a);
return YGc[a]},VGc=function(a){for(;a<0;)a+=255;
for(;a>=256;)a-=255;return A_[a]},A_=Array(256),YGc=Array(256),ZGc=0;ZGc<8;ZGc++)A_[ZGc]=1<<ZGc;
for(var B_=8;B_<256;B_++)A_[B_]=A_[B_-4]^A_[B_-5]^A_[B_-6]^A_[B_-8];for(var $Gc=0;$Gc<255;$Gc++)YGc[A_[$Gc]]=$Gc;OY.prototype.get=function(a){return this.num[a]};
OY.prototype.getLength=function(){return this.num.length};
OY.prototype.multiply=function(a){for(var b=Array(this.getLength()+a.getLength()-1),c=0;c<this.getLength();c++)for(var d=0;d<a.getLength();d++)b[c+d]^=VGc(z_(this.get(c))+z_(a.get(d)));return new OY(b,0)};
var WGc=function(a,b){if(a.getLength()-b.getLength()<0)return a;for(var c=z_(a.get(0))-z_(b.get(0)),d=Array(a.getLength()),e=0;e<a.getLength();e++)d[e]=a.get(e);for(e=0;e<b.getLength();e++)d[e]^=VGc(z_(b.get(e))+c);return WGc(new OY(d,0),b)},aHc=[[1,
26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,
15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,
23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,
45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,
24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,
15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],SGc=function(a,b){switch(b){case 1:return aHc[(a-1)*4];case 0:return aHc[(a-1)*4+1];case 3:return aHc[(a-1)*4+2];case 2:return aHc[(a-1)*4+3]}};
Dvc.prototype.get=function(a){return(this.buffer[Math.floor(a/8)]>>>7-a%8&1)==1};
Dvc.prototype.put=function(a,b){for(var c=0;c<b;c++)UGc(this,(a>>>b-c-1&1)==1)};
var UGc=function(a,b){var c=Math.floor(a.length/8);a.buffer.length<=c&&a.buffer.push(0);b&&(a.buffer[c]|=128>>>a.length%8);a.length++},x_=[[17,
14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],
[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]],Gvc=function(){var a=function(b,c){this.JSC$17177__el=b;this.JSC$17177__htOption=c};
a.prototype.draw=function(b){function c(t,u){t=document.createElementNS("http://www.w3.org/2000/svg",t);for(var x in u)u.hasOwnProperty(x)&&(x==="href"?_.Smc(t,u[x]):_.ae([_.cf(JGc),_.cf(KGc),_.cf(LGc),_.cf(MGc),_.cf(NGc),_.cf(OGc),_.cf(PGc)],t,x,u[x]));return t}
var d=this.JSC$17177__htOption,e=this.JSC$17177__el,g=b.moduleCount;this.clear();var k=c("svg",{viewBox:"0 0 "+String(g)+" "+String(g),width:"100%",height:"100%",fill:d.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});e.appendChild(k);k.appendChild(c("rect",{fill:d.colorLight,width:"100%",height:"100%"}));k.appendChild(c("rect",{fill:d.colorDark,width:"1",height:"1",id:"template"}));for(var m=0;m<g;m++)for(var n=0;n<g;n++)if(b.isDark(m,n)){var r=c("use",{x:String(m),y:String(n),href:"#template"});
k.appendChild(r)}};
a.prototype.clear=function(){for(;this.JSC$17177__el.hasChildNodes();)this.JSC$17177__el.removeChild(this.JSC$17177__el.lastChild)};
return a}(),Fvc=document.documentElement.tagName.toLowerCase()==="svg"?Gvc:typeof CanvasRenderingContext2D!="undefined"?function(){var a=function(b,c){this._bIsPainted=!1;
Evc();this.JSC$17177__htOption=c;this._elCanvas=document.createElement("canvas");this._elCanvas.width=c.width;this._elCanvas.height=c.height;b.appendChild(this._elCanvas);this.JSC$17177__el=b;this._oContext=this._elCanvas.getContext("2d");this._bIsPainted=!1;this._elImage=document.createElement("img");this._elImage.alt="Scan me!";this._elImage.style.display="none";this.JSC$17177__el.appendChild(this._elImage);this._bSupportDataURI=null};
a.prototype._onMakeImage=function(){var b=this._elCanvas.toDataURL("image/png");this._elImage.src=b;this._elImage.style.display="block";this._elCanvas.style.display="none"};
a.prototype._safeSetDataURI=function(b,c){var d=this;d._fFail=c;d._fSuccess=b;d._bSupportDataURI===null?(b=_.pg("IMG"),c=function(){d._bSupportDataURI=!1;d._fFail&&d._fFail.call(d)},b.onabort=c,b.onerror=c,b.onload=function(){d._bSupportDataURI=!0;
d._fSuccess&&d._fSuccess.call(d)},b.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):d._bSupportDataURI===!0&&d._fSuccess?d._fSuccess.call(d):d._bSupportDataURI===!1&&d._fFail&&d._fFail.call(d)};
a.prototype.draw=function(b){var c=this._oContext,d=this.JSC$17177__htOption,e=b.moduleCount,g=d.width/e,k=d.height/e,m=Math.round(g),n=Math.round(k);this._elImage.style.display="none";this.clear();for(var r=0;r<e;r++)for(var t=0;t<e;t++){var u=b.isDark(r,t),x=t*g,A=r*k;c.strokeStyle=u?d.colorDark:d.colorLight;c.lineWidth=1;c.fillStyle=u?d.colorDark:d.colorLight;c.fillRect(x,A,g,k);c.strokeRect(Math.floor(x)+.5,Math.floor(A)+.5,m,n);c.strokeRect(Math.ceil(x)-.5,Math.ceil(A)-.5,m,n)}this._bIsPainted=
!0};
a.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
a.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
a.prototype.round=function(b){return b?Math.floor(b*1E3)/1E3:b};
return a}():function(){var a=function(b,c){this.JSC$17177__el=b;
this.JSC$17177__htOption=c};
a.prototype.draw=function(b){for(var c=this.JSC$17177__htOption,d=this.JSC$17177__el,e=b.moduleCount,g=Math.floor(c.width/e),k=Math.floor(c.height/e),m=['<table style="border:0;border-collapse:collapse;">'],n=0;n<e;n++){m.push("<tr>");for(var r=0;r<e;r++)m.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+g+"px;height:"+k+"px;background-color:"+(b.isDark(n,r)?c.colorDark:c.colorLight)+';"></td>');m.push("</tr>")}m.push("</table>");b=m.join("");b=_.xcb(_.zcb,b);_.$d(d,b);
b=d.childNodes[0];e=(c.width-b.offsetWidth)/2;g=(c.height-b.offsetHeight)/2;e>0&&g>0&&(b.style.margin=g+"px "+e+"px")};
a.prototype.clear=function(){this.JSC$17177__el.textContent=""};
return a}();
Kvc.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17180__android||this.JSC$17180__android>=3)&&this._oDrawing.makeImage()};
Kvc.prototype.clear=function(){this._oDrawing.clear()};
_.ja.QRCode=Kvc;var bHc={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var C_=function(){};
C_.prototype.stringify=function(a){return _.ja.JSON.stringify(a,void 0)};
C_.prototype.parse=function(a){return _.ja.JSON.parse(a,void 0)};var cHc=function(){_.Cz.call(this,"z")};
_.sx(cHc,_.Cz);var dHc=function(){_.Cz.call(this,"y")};
_.sx(dHc,_.Cz);var eHc=null,fHc=function(){return eHc=eHc||new _.Hz},gHc=function(a){_.Cz.call(this,"serverreachability",a)};
_.sx(gHc,_.Cz);var D_=function(a){var b=fHc();b.dispatchEvent(new gHc(b,a))},hHc=function(a){_.Cz.call(this,"statevent",a)};
_.sx(hHc,_.Cz);var E_=function(a){var b=fHc();b.dispatchEvent(new hHc(b,a))},iHc=function(a,b,c,d){_.Cz.call(this,"timingevent",a);
this.size=b;this.rtt=c;this.retries=d};
_.sx(iHc,_.Cz);var jHc=function(a,b,c){var d=fHc();d.dispatchEvent(new iHc(d,a,b,c))},F_=function(a,b){if(typeof a!=="function")throw Error("yk");
return _.ja.setTimeout(function(){a()},b)};var G_=function(){this.redactEnabled_=!0};
G_.prototype.disableRedact=function(){this.redactEnabled_=!1};
var kHc=function(a,b,c,d,e,g){a.info(function(){if(a.redactEnabled_)if(g){var k="";for(var m=g.split("&"),n=0;n<m.length;n++){var r=m[n].split("=");if(r.length>1){var t=r[0];r=r[1];var u=t.split("_");k=u.length>=2&&u[1]=="type"?k+(t+"="+r+"&"):k+(t+"=redacted&")}}}else k=null;else k=g;return"XMLHTTP REQ ("+d+") [attempt "+e+"]: "+b+"\n"+c+"\n"+k})},lHc=function(a,b,c,d,e,g,k){a.info(function(){return"XMLHTTP RESP ("+d+") [ attempt "+e+"]: "+b+"\n"+c+"\n"+g+" "+k})},H_=function(a,b,c,d){a.info(function(){return"XMLHTTP TEXT ("+
b+"): "+mHc(a,c)+(d?" "+d:"")})},nHc=function(a,b){a.info(function(){return"TIMEOUT: "+b})};
G_.prototype.debug=function(){};
G_.prototype.info=function(){};
G_.prototype.warning=function(){};
var mHc=function(a,b){if(!a.redactEnabled_)return b;if(!b)return null;try{var c=JSON.parse(b);if(c)for(var d=0;d<c.length;d++)if(Array.isArray(c[d])){var e=c[d];if(!(e.length<2)){var g=e[1];if(Array.isArray(g)&&!(g.length<1)){var k=g[0];if(k!="noop"&&k!="stop"&&k!="close")for(var m=1;m<g.length;m++)g[m]=""}}}return(0,_.Oz)(c)}catch(n){return a.debug("Exception parsing expected JS array - probably was not JS"),b}};var I_=function(a,b,c,d,e){this.JSC$17202_channel_=a;this.JSC$17202_channelDebug_=b;this.sid_=c;this.JSC$17202_rid_=d;this.JSC$17202_retryId_=e||1;this.JSC$17202_eventHandler_=new _.an(this);this.timeout_=45E3;this.JSC$17202_extraHeaders_=null;this.JSC$17202_successful_=!1;this.JSC$17202_postData_=this.JSC$17202_requestUri_=this.JSC$17202_baseUri_=this.JSC$17202_type_=this.JSC$17202_requestStartTime_=this.JSC$17202_watchDogTimeoutTime_=this.JSC$17202_watchDogTimerId_=null;this.JSC$17202_pendingMessages_=
[];this.JSC$17202_xmlHttp_=null;this.JSC$17202_xmlHttpChunkStart_=0;this.JSC$17202_lastError_=this.JSC$17202_verb_=null;this.JSC$17202_lastStatusCode_=-1;this.JSC$17202_cancelled_=!1;this.JSC$17202_readyStateChangeThrottleMs_=0;this.JSC$17202_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new oHc},oHc=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},pHc=function(a,b){switch(a){case 0:return"Non-200 return code ("+b+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},qHc={},rHc={};
I_.prototype.setTimeout=function(a){this.timeout_=a};
var tHc=function(a,b,c){a.JSC$17202_type_=1;a.JSC$17202_baseUri_=_.tA(b.clone());a.JSC$17202_postData_=c;a.decodeChunks_=!0;sHc(a,null)},sHc=function(a,b){a.JSC$17202_requestStartTime_=Date.now();
uHc(a);a.JSC$17202_requestUri_=a.JSC$17202_baseUri_.clone();uZ(a.JSC$17202_requestUri_,"t",a.JSC$17202_retryId_);a.JSC$17202_xmlHttpChunkStart_=0;var c=a.JSC$17202_channel_.JSC$17221_supportsCrossDomainXhrs_;a.fetchResponseState_=new oHc;a.JSC$17202_xmlHttp_=vHc(a.JSC$17202_channel_,c?b:null,!a.JSC$17202_postData_);a.JSC$17202_readyStateChangeThrottleMs_>0&&(a.JSC$17202_readyStateChangeThrottle_=new _.lv((0,_.wg)(a.JSC$17206_xmlHttpHandler_,a,a.JSC$17202_xmlHttp_),a.JSC$17202_readyStateChangeThrottleMs_));
a.JSC$17202_eventHandler_.listen(a.JSC$17202_xmlHttp_,"readystatechange",a.JSC$17206_readyStateChangeHandler_);b=a.JSC$17202_extraHeaders_?_.Cf.clone(a.JSC$17202_extraHeaders_):{};a.JSC$17202_postData_?(a.JSC$17202_verb_||(a.JSC$17202_verb_="POST"),b["Content-Type"]="application/x-www-form-urlencoded",a.JSC$17202_xmlHttp_.send(a.JSC$17202_requestUri_,a.JSC$17202_verb_,a.JSC$17202_postData_,b)):(a.JSC$17202_verb_="GET",a.JSC$17202_xmlHttp_.send(a.JSC$17202_requestUri_,a.JSC$17202_verb_,null,b));D_(1);
kHc(a.JSC$17202_channelDebug_,a.JSC$17202_verb_,a.JSC$17202_requestUri_,a.JSC$17202_rid_,a.JSC$17202_retryId_,a.JSC$17202_postData_)};
I_.prototype.JSC$17206_readyStateChangeHandler_=function(a){a=a.target;var b=this.JSC$17202_readyStateChangeThrottle_;b&&_.Qz(a)==3?(this.JSC$17202_channelDebug_.debug("Throttling readystatechange."),b.fire()):this.JSC$17206_xmlHttpHandler_(a)};
I_.prototype.JSC$17206_xmlHttpHandler_=function(a){try{a==this.JSC$17202_xmlHttp_?wHc(this):this.JSC$17202_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(b){this.JSC$17202_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),xHc(this)}finally{}};
var wHc=function(a){var b=_.Qz(a.JSC$17202_xmlHttp_),c=a.JSC$17202_xmlHttp_.JSC$7645_lastErrorCode_,d=a.JSC$17202_xmlHttp_.getStatus();if(!(b<3||b==3&&!xHc(a))){a.JSC$17202_cancelled_||b!=4||c==7||(c==8||d<=0?D_(3):D_(2));yHc(a);var e=a.JSC$17202_xmlHttp_.getStatus();a.JSC$17202_lastStatusCode_=e;c=zHc(a);xHc(a)||a.JSC$17202_channelDebug_.debug(function(){return"No response text for uri "+a.JSC$17202_requestUri_+" status "+e});
a.JSC$17202_successful_=e==200;lHc(a.JSC$17202_channelDebug_,a.JSC$17202_verb_,a.JSC$17202_requestUri_,a.JSC$17202_rid_,a.JSC$17202_retryId_,b,e);if(a.JSC$17202_successful_){if(a.decodeInitialResponse_&&!a.initialResponseDecoded_)if(d=AHc(a))H_(a.JSC$17202_channelDebug_,a.JSC$17202_rid_,d,"Initial handshake response via X-HTTP-Initial-Response"),a.initialResponseDecoded_=!0,BHc(a,d);else{a.JSC$17202_successful_=!1;a.JSC$17202_lastError_=3;E_(12);a.JSC$17202_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
a.JSC$17202_rid_+")");J_(a);K_(a);return}a.decodeChunks_?CHc(a,b,c):(H_(a.JSC$17202_channelDebug_,a.JSC$17202_rid_,c,null),BHc(a,c));b==4&&J_(a);a.JSC$17202_successful_&&!a.JSC$17202_cancelled_&&(b==4?DHc(a.JSC$17202_channel_,a):(a.JSC$17202_successful_=!1,uHc(a)))}else tAc(a.JSC$17202_xmlHttp_),e==400&&c.indexOf("Unknown SID")>0?(a.JSC$17202_lastError_=3,E_(12),a.JSC$17202_channelDebug_.warning("XMLHTTP Unknown SID ("+a.JSC$17202_rid_+")")):(a.JSC$17202_lastError_=0,E_(13),a.JSC$17202_channelDebug_.warning("XMLHTTP Bad status "+
e+" ("+a.JSC$17202_rid_+")")),J_(a),K_(a)}},AHc=function(a){return a.JSC$17202_xmlHttp_&&(a=DY(a.JSC$17202_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.pa(a)?a:null},zHc=function(a){if(!EHc(a))return a.JSC$17202_xmlHttp_.getResponseText();
var b=a.JSC$17202_xmlHttp_.getResponse();if(b==="")return"";var c="",d=b.length,e=_.Qz(a.JSC$17202_xmlHttp_)==4;if(!a.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return J_(a),K_(a),"";a.fetchResponseState_.textDecoder=new _.ja.TextDecoder}for(var g=0;g<d;g++)a.fetchResponseState_.responseArrivedForFetch=!0,c+=a.fetchResponseState_.textDecoder.decode(b[g],{stream:!(e&&g==d-1)});b.length=0;a.fetchResponseState_.responseBuffer+=c;a.JSC$17202_xmlHttpChunkStart_=0;return a.fetchResponseState_.responseBuffer},
xHc=function(a){return a.JSC$17202_xmlHttp_?a.fetchResponseState_.responseArrivedForFetch?!0:!(!a.JSC$17202_xmlHttp_.getResponseText()&&!a.JSC$17202_xmlHttp_.getResponse()):!1},EHc=function(a){return a.JSC$17202_xmlHttp_?a.JSC$17202_verb_=="GET"&&a.JSC$17202_type_!=2&&a.JSC$17202_channel_.usesFetchStreams_:!1},CHc=function(a,b,c){for(var d=!0,e;!a.JSC$17202_cancelled_&&a.JSC$17202_xmlHttpChunkStart_<c.length;)if(e=FHc(a,c),e==rHc){b==4&&(a.JSC$17202_lastError_=4,E_(14),d=!1);
H_(a.JSC$17202_channelDebug_,a.JSC$17202_rid_,null,"[Incomplete Response]");break}else if(e==qHc){a.JSC$17202_lastError_=4;E_(15);H_(a.JSC$17202_channelDebug_,a.JSC$17202_rid_,c,"[Invalid Chunk]");d=!1;break}else H_(a.JSC$17202_channelDebug_,a.JSC$17202_rid_,e,null),BHc(a,e);EHc(a)&&a.JSC$17202_xmlHttpChunkStart_!=0&&(a.fetchResponseState_.responseBuffer=a.fetchResponseState_.responseBuffer.slice(a.JSC$17202_xmlHttpChunkStart_),a.JSC$17202_xmlHttpChunkStart_=0);b!=4||c.length!=0||a.fetchResponseState_.responseArrivedForFetch||
(a.JSC$17202_lastError_=1,E_(16),d=!1);a.JSC$17202_successful_=a.JSC$17202_successful_&&d;d?c.length>0&&!a.firstByteReceived_&&(a.firstByteReceived_=!0,b=a.JSC$17202_channel_,b.JSC$17221_backChannelRequest_==a&&b.detectBufferingProxy_&&!b.bpDetectionDone_&&(b.JSC$17221_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+c.length),GHc(b),b.bpDetectionDone_=!0,E_(11))):(H_(a.JSC$17202_channelDebug_,a.JSC$17202_rid_,c,"[Invalid Chunked Response]"),J_(a),K_(a))},FHc=function(a,b){var c=
a.JSC$17202_xmlHttpChunkStart_,d=b.indexOf("\n",c);
if(d==-1)return rHc;c=Number(b.substring(c,d));if(isNaN(c))return qHc;d+=1;if(d+c>b.length)return rHc;b=b.slice(d,d+c);a.JSC$17202_xmlHttpChunkStart_=d+c;return b};
I_.prototype.cancel=function(){this.JSC$17202_cancelled_=!0;J_(this)};
var uHc=function(a){a.JSC$17202_watchDogTimeoutTime_=Date.now()+a.timeout_;HHc(a,a.timeout_)},HHc=function(a,b){if(a.JSC$17202_watchDogTimerId_!=null)throw Error("zk");
a.JSC$17202_watchDogTimerId_=F_((0,_.wg)(a.JSC$17206_onWatchDogTimeout_,a),b)},yHc=function(a){a.JSC$17202_watchDogTimerId_&&(_.ja.clearTimeout(a.JSC$17202_watchDogTimerId_),a.JSC$17202_watchDogTimerId_=null)};
I_.prototype.JSC$17206_onWatchDogTimeout_=function(){this.JSC$17202_watchDogTimerId_=null;var a=Date.now();a-this.JSC$17202_watchDogTimeoutTime_>=0?(nHc(this.JSC$17202_channelDebug_,this.JSC$17202_requestUri_),this.JSC$17202_type_!=2&&(D_(3),E_(17)),J_(this),this.JSC$17202_lastError_=2,K_(this)):(this.JSC$17202_channelDebug_.warning("WatchDog timer called too early"),HHc(this,this.JSC$17202_watchDogTimeoutTime_-a))};
var K_=function(a){a.JSC$17202_channel_.state_==0||a.JSC$17202_cancelled_||DHc(a.JSC$17202_channel_,a)},J_=function(a){yHc(a);
_.Xf(a.JSC$17202_readyStateChangeThrottle_);a.JSC$17202_readyStateChangeThrottle_=null;a.JSC$17202_eventHandler_.removeAll();if(a.JSC$17202_xmlHttp_){var b=a.JSC$17202_xmlHttp_;a.JSC$17202_xmlHttp_=null;b.abort();b.dispose()}};
I_.prototype.getLastError=function(){return this.JSC$17202_lastError_};
var BHc=function(a,b){try{var c=a.JSC$17202_channel_;if(c.state_!=0&&(c.JSC$17221_backChannelRequest_==a||IHc(c.forwardChannelRequestPool_,a)))if(!a.initialResponseDecoded_&&IHc(c.forwardChannelRequestPool_,a)&&c.state_==3){try{var d=c.wireCodec_.JSC$17216_parser_.parse(b)}catch(m){d=null}if(Array.isArray(d)&&d.length==3){b=d;if(b[0]==0)a:if(c.JSC$17221_channelDebug_.debug("Server claims our backchannel is missing."),c.JSC$17221_backChannelTimerId_)c.JSC$17221_channelDebug_.debug("But we are currently starting the request.");
else{if(c.JSC$17221_backChannelRequest_)if(c.JSC$17221_backChannelRequest_.JSC$17202_requestStartTime_+3E3<a.JSC$17202_requestStartTime_)JHc(c),KHc(c);else break a;else c.JSC$17221_channelDebug_.warning("We do not have a BackChannel established");LHc(c);E_(18)}else{c.JSC$17221_lastPostResponseArrayId_=b[1];var e=c.JSC$17221_lastPostResponseArrayId_-c.JSC$17221_lastArrayId_;if(0<e){var g=b[2];c.JSC$17221_channelDebug_.debug(g+" bytes (in "+e+" arrays) are outstanding on the BackChannel");g<37500&&
c.enableStreaming_&&c.JSC$17221_backChannelRetryCount_==0&&!c.JSC$17221_deadBackChannelTimerId_&&(c.JSC$17221_deadBackChannelTimerId_=F_((0,_.wg)(c.JSC$17223_onBackChannelDead_,c),6E3))}}if(MHc(c.forwardChannelRequestPool_)<=1&&c.forwardChannelFlushedCallback_){try{c.forwardChannelFlushedCallback_()}catch(m){}c.forwardChannelFlushedCallback_=void 0}}else c.JSC$17221_channelDebug_.debug("Bad POST response data returned"),L_(c,11)}else if((a.initialResponseDecoded_||c.JSC$17221_backChannelRequest_==
a)&&JHc(c),!_.pa(b)){var k=c.wireCodec_.JSC$17216_parser_.parse(b);c.onInput_(k,a)}D_(4)}catch(m){}};var NHc=function(a,b){this.JSC$17209_mapId=a;this.map=b;this.context=null};var OHc=function(a){this.maxPoolSizeConfigured_=a||10;_.ja.PerformanceNavigationTiming?(a=_.ja.performance.getEntriesByType("navigation"),a=a.length>0&&(a[0].nextHopProtocol=="hq"||a[0].nextHopProtocol=="h2")):a=!!(_.ja.chrome&&_.ja.chrome.loadTimes&&_.ja.chrome.loadTimes()&&_.ja.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17212_maxSize_=a?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17212_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17212_request_=null;this.JSC$17212_pendingMessages_=
[]},PHc=function(a){return a.JSC$17212_request_?!0:a.requestPool_?a.requestPool_.size>=a.JSC$17212_maxSize_:!1},MHc=function(a){return a.JSC$17212_request_?1:a.requestPool_?a.requestPool_.size:0},IHc=function(a,b){return a.JSC$17212_request_?a.JSC$17212_request_==b:a.requestPool_?a.requestPool_.has(b):!1},QHc=function(a,b){a.requestPool_?a.requestPool_.add(b):a.JSC$17212_request_=b},RHc=function(a,b){a.JSC$17212_request_&&a.JSC$17212_request_==b?a.JSC$17212_request_=null:a.requestPool_&&a.requestPool_.has(b)&&
a.requestPool_.delete(b)};
OHc.prototype.cancel=function(){this.JSC$17212_pendingMessages_=SHc(this);if(this.JSC$17212_request_)this.JSC$17212_request_.cancel(),this.JSC$17212_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var a=_.h(this.requestPool_.values()),b=a.next();!b.done;b=a.next())b.value.cancel();this.requestPool_.clear()}};
OHc.prototype.hasPendingRequest=function(){return this.JSC$17212_request_!=null||this.requestPool_!=null&&this.requestPool_.size!==0};
var SHc=function(a){if(a.JSC$17212_request_!=null)return a.JSC$17212_pendingMessages_.concat(a.JSC$17212_request_.JSC$17202_pendingMessages_);if(a.requestPool_!=null&&a.requestPool_.size!==0){var b=a.JSC$17212_pendingMessages_;a=_.h(a.requestPool_.values());for(var c=a.next();!c.done;c=a.next())b=b.concat(c.value.JSC$17202_pendingMessages_);return b}return _.Ra(a.JSC$17212_pendingMessages_)},THc=function(a,b){a.JSC$17212_pendingMessages_=a.JSC$17212_pendingMessages_.concat(b)};var UHc=function(a,b){var c=new G_;c.debug("TestLoadImage: loading "+a);if(_.ja.Image){var d=new Image;d.onload=_.xo(M_,c,"TestLoadImage: loaded",!0,b,d);d.onerror=_.xo(M_,c,"TestLoadImage: error",!1,b,d);d.onabort=_.xo(M_,c,"TestLoadImage: abort",!1,b,d);d.ontimeout=_.xo(M_,c,"TestLoadImage: timeout",!1,b,d);_.ja.setTimeout(function(){if(d.ontimeout)d.ontimeout()},1E4);
d.src=a}else b(!1)},VHc=function(a,b){var c=new G_,d=new AbortController,e=setTimeout(function(){d.abort();
M_(c,"TestPingServer: timeout",!1,b)},1E4);
fetch(a,{signal:d.signal}).then(function(g){clearTimeout(e);g.ok?M_(c,"TestPingServer: ok",!0,b):M_(c,"TestPingServer: server error",!1,b)}).catch(function(){clearTimeout(e);
M_(c,"TestPingServer: error",!1,b)})},M_=function(a,b,c,d,e){try{a.debug(b),e&&(e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null),d(c)}catch(g){}};var WHc=function(){this.JSC$17216_parser_=new C_},XHc=function(a,b,c){var d=c||"";
try{_.qib(a,function(e,g){var k=e;_.Za(e)&&(k=(0,_.Oz)(e));b.push(d+g+"="+encodeURIComponent(k))})}catch(e){throw b.push(d+"type="+encodeURIComponent("_badmap")),e;
}};var N_=function(a,b,c){return c&&c.internalChannelParams?c.internalChannelParams[a]||b:b},O_=function(a){this.serverVersion_=0;
this.JSC$17221_outgoingMaps_=[];this.JSC$17221_channelDebug_=new G_;this.JSC$17221_hostPrefix_=this.JSC$17221_backChannelUri_=this.JSC$17221_forwardChannelUri_=this.JSC$17221_path_=this.JSC$17221_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17221_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17221_extraHeaders_=null;this.JSC$17221_nextMapId_=this.JSC$17221_nextRid_=0;this.JSC$17221_failFast_=N_("failFast",!1,a);this.enableStreaming_=this.JSC$17221_deadBackChannelTimerId_=
this.JSC$17221_backChannelTimerId_=this.JSC$17221_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17221_lastPostResponseArrayId_=this.JSC$17221_lastArrayId_=-1;this.JSC$17221_backChannelAttemptId_=this.JSC$17221_backChannelRetryCount_=this.JSC$17221_forwardChannelRetryCount_=0;this.JSC$17221_baseRetryDelayMs_=N_("baseRetryDelayMs",5E3,a);this.JSC$17221_retryDelaySeedMs_=N_("retryDelaySeedMs",1E4,a);this.JSC$17221_forwardChannelMaxRetries_=
N_("forwardChannelMaxRetries",2,a);this.JSC$17221_forwardChannelRequestTimeoutMs_=N_("forwardChannelRequestTimeoutMs",2E4,a);this.JSC$17221_xmlHttpFactory_=a&&a.xmlHttpFactory||void 0;this.networkTestUrl_=a&&a.networkTestUrl||void 0;this.usesFetchStreams_=a&&a.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17221_supportsCrossDomainXhrs_=a&&a.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new OHc(a&&a.concurrentRequestLimit);this.wireCodec_=new WHc;this.fastHandshake_=
a&&a.fastHandshake||!1;this.encodeInitMessageHeaders_=a&&a.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17221_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=a&&a.blockingHandshake||!1;a&&a.disableRedact&&this.JSC$17221_channelDebug_.disableRedact();a&&a.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
a&&a.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;a&&a.longPollingTimeout&&a.longPollingTimeout>0&&(this.longPollingTimeout_=a.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
O_.prototype.JSC$17223_channelVersion_=8;O_.prototype.state_=1;
O_.prototype.connect=function(a,b,c,d){this.JSC$17221_channelDebug_.debug("connect()");E_(0);this.JSC$17221_path_=a;this.JSC$17221_extraParams_=b||{};c&&d!==void 0&&(this.JSC$17221_extraParams_.OSID=c,this.JSC$17221_extraParams_.OAID=d);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17221_channelDebug_.debug("connectChannel_()");a=YHc(this,null,this.JSC$17221_path_);this.JSC$17221_channelDebug_.debug("GetForwardChannelUri: "+a);this.JSC$17221_forwardChannelUri_=a;ZHc(this)};
O_.prototype.disconnect=function(){this.JSC$17221_channelDebug_.debug("disconnect()");$Hc(this);if(this.state_==3){var a=this.JSC$17221_nextRid_++,b=this.JSC$17221_forwardChannelUri_.clone();_.Og(b,"SID",this.sid_);_.Og(b,"RID",a);_.Og(b,"TYPE","terminate");P_(this,b);a=new I_(this,this.JSC$17221_channelDebug_,this.sid_,a);a.JSC$17202_type_=2;a.JSC$17202_baseUri_=_.tA(b.clone());b=!1;if(_.ja.navigator&&_.ja.navigator.sendBeacon)try{b=_.ja.navigator.sendBeacon(a.JSC$17202_baseUri_.toString(),"")}catch(c){}!b&&
_.ja.Image&&((new Image).src=a.JSC$17202_baseUri_,b=!0);b||(a.JSC$17202_xmlHttp_=vHc(a.JSC$17202_channel_,null),a.JSC$17202_xmlHttp_.send(a.JSC$17202_baseUri_));a.JSC$17202_requestStartTime_=Date.now();uHc(a)}aIc(this)};
var KHc=function(a){a.JSC$17221_backChannelRequest_&&(GHc(a),a.JSC$17221_backChannelRequest_.cancel(),a.JSC$17221_backChannelRequest_=null)},$Hc=function(a){KHc(a);
a.JSC$17221_backChannelTimerId_&&(_.ja.clearTimeout(a.JSC$17221_backChannelTimerId_),a.JSC$17221_backChannelTimerId_=null);JHc(a);a.forwardChannelRequestPool_.cancel();a.JSC$17221_forwardChannelTimerId_&&(typeof a.JSC$17221_forwardChannelTimerId_==="number"&&_.ja.clearTimeout(a.JSC$17221_forwardChannelTimerId_),a.JSC$17221_forwardChannelTimerId_=null)};
O_.prototype.getState=function(){return this.state_};
var ZHc=function(a){PHc(a.forwardChannelRequestPool_)||a.JSC$17221_forwardChannelTimerId_||(a.JSC$17221_forwardChannelTimerId_=!0,_.Jz(a.JSC$17223_onStartForwardChannelTimer_,a),a.JSC$17221_forwardChannelRetryCount_=0)},cIc=function(a,b){if(MHc(a.forwardChannelRequestPool_)>=a.forwardChannelRequestPool_.JSC$17212_maxSize_-(a.JSC$17221_forwardChannelTimerId_?1:0))return!1;
if(a.JSC$17221_forwardChannelTimerId_)return a.JSC$17221_channelDebug_.debug("Use the retry request that is already scheduled."),a.JSC$17221_outgoingMaps_=b.JSC$17202_pendingMessages_.concat(a.JSC$17221_outgoingMaps_),!0;if(a.state_==1||a.state_==2||a.JSC$17221_forwardChannelRetryCount_>=(a.JSC$17221_failFast_?0:a.JSC$17221_forwardChannelMaxRetries_))return!1;a.JSC$17221_channelDebug_.debug("Going to retry POST");a.JSC$17221_forwardChannelTimerId_=F_((0,_.wg)(a.JSC$17223_onStartForwardChannelTimer_,
a,b),bIc(a,a.JSC$17221_forwardChannelRetryCount_));a.JSC$17221_forwardChannelRetryCount_++;return!0};
O_.prototype.JSC$17223_onStartForwardChannelTimer_=function(a){if(this.JSC$17221_forwardChannelTimerId_)if(this.JSC$17221_forwardChannelTimerId_=null,this.JSC$17221_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!a){this.JSC$17221_channelDebug_.debug("open_()");this.JSC$17221_nextRid_=Math.floor(Math.random()*1E5);a=this.JSC$17221_nextRid_++;var b=new I_(this,this.JSC$17221_channelDebug_,"",a),c=this.JSC$17221_extraHeaders_;this.initHeaders_&&(c?(c=_.Cf.clone(c),_.Cf.extend(c,this.initHeaders_)):
c=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(b.JSC$17202_extraHeaders_=c,c=null);var d;if(this.fastHandshake_)a:{for(var e=d=0;e<this.JSC$17221_outgoingMaps_.length;e++){b:{var g=this.JSC$17221_outgoingMaps_[e];if("__data__"in g.map&&(g=g.map.__data__,typeof g==="string")){g=g.length;break b}g=void 0}if(g===void 0)break;d+=g;if(d>4096){d=e;break a}if(d===4096||e===this.JSC$17221_outgoingMaps_.length-1){d=e+1;break a}}d=1E3}else d=1E3;d=dIc(this,b,d);
e=this.JSC$17221_forwardChannelUri_.clone();_.Og(e,"RID",a);_.Og(e,"CVER",22);this.httpSessionIdParam_&&_.Og(e,"X-HTTP-Session-Id",this.httpSessionIdParam_);P_(this,e);c&&(this.encodeInitMessageHeaders_?d="headers="+_.Li(uDc(c))+"&"+d:this.httpHeadersOverwriteParam_&&vDc(e,this.httpHeadersOverwriteParam_,c));QHc(this.forwardChannelRequestPool_,b);this.blockingHandshake_&&_.Og(e,"TYPE","init");this.fastHandshake_?(_.Og(e,"$req",d),_.Og(e,"SID","null"),b.decodeInitialResponse_=!0,tHc(b,e,null)):tHc(b,
e,d);this.state_=2}}else this.state_==3&&(a?eIc(this,a):this.JSC$17221_outgoingMaps_.length==0?this.JSC$17221_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):PHc(this.forwardChannelRequestPool_)||(eIc(this),this.JSC$17221_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var eIc=function(a,b){var c;b?c=b.JSC$17202_rid_:c=a.JSC$17221_nextRid_++;var d=a.JSC$17221_forwardChannelUri_.clone();_.Og(d,"SID",a.sid_);_.Og(d,"RID",c);_.Og(d,"AID",a.JSC$17221_lastArrayId_);P_(a,d);a.httpHeadersOverwriteParam_&&a.JSC$17221_extraHeaders_&&vDc(d,a.httpHeadersOverwriteParam_,a.JSC$17221_extraHeaders_);c=new I_(a,a.JSC$17221_channelDebug_,a.sid_,c,a.JSC$17221_forwardChannelRetryCount_+1);a.httpHeadersOverwriteParam_===null&&(c.JSC$17202_extraHeaders_=a.JSC$17221_extraHeaders_);b&&
(a.JSC$17221_outgoingMaps_=b.JSC$17202_pendingMessages_.concat(a.JSC$17221_outgoingMaps_));b=dIc(a,c,1E3);c.setTimeout(Math.round(a.JSC$17221_forwardChannelRequestTimeoutMs_*.5)+Math.round(a.JSC$17221_forwardChannelRequestTimeoutMs_*.5*Math.random()));QHc(a.forwardChannelRequestPool_,c);tHc(c,d,b)},P_=function(a,b){a.JSC$17221_extraParams_&&_.Cf.forEach(a.JSC$17221_extraParams_,function(c,d){_.Og(b,d,c)});
a.handler_&&_.qib({},function(c,d){_.Og(b,d,c)})},dIc=function(a,b,c){c=Math.min(a.JSC$17221_outgoingMaps_.length,c);
var d=a.handler_?(0,_.wg)(a.handler_.JSC$17227_badMapError,a.handler_,a):null;a:{for(var e=a.JSC$17221_outgoingMaps_,g=-1;;){var k=["count="+c];g==-1?c>0?(g=e[0].JSC$17209_mapId,k.push("ofs="+g)):g=0:k.push("ofs="+g);for(var m=!0,n=0;n<c;n++){var r=e[n].JSC$17209_mapId,t=e[n].map;r-=g;if(r<0)g=Math.max(0,e[n].JSC$17209_mapId-100),m=!1;else try{XHc(t,k,"req"+r+"_")}catch(u){d&&d(t)}}if(m){d=k.join("&");break a}}d=void 0}a=a.JSC$17221_outgoingMaps_.splice(0,c);b.JSC$17202_pendingMessages_=a;return d},
fIc=function(a){a.JSC$17221_backChannelRequest_||a.JSC$17221_backChannelTimerId_||(a.JSC$17221_backChannelAttemptId_=1,_.Jz(a.JSC$17223_onStartBackChannelTimer_,a),a.JSC$17221_backChannelRetryCount_=0)},LHc=function(a){if(a.JSC$17221_backChannelRequest_||a.JSC$17221_backChannelTimerId_||a.JSC$17221_backChannelRetryCount_>=3)return!1;
a.JSC$17221_channelDebug_.debug("Going to retry GET");a.JSC$17221_backChannelAttemptId_++;a.JSC$17221_backChannelTimerId_=F_((0,_.wg)(a.JSC$17223_onStartBackChannelTimer_,a),bIc(a,a.JSC$17221_backChannelRetryCount_));a.JSC$17221_backChannelRetryCount_++;return!0};
O_.prototype.JSC$17223_onStartBackChannelTimer_=function(){this.JSC$17221_backChannelTimerId_=null;gIc(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17221_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17221_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17221_backChannelRequest_+" "+this.handshakeRttMs_);else{var a=2*this.handshakeRttMs_;this.JSC$17221_channelDebug_.info("BP detection timer enabled: "+a);this.bpDetectionTimerId_=F_((0,_.wg)(this.onBpDetectionTimer_,
this),a)}};
O_.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17221_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17221_backChannelRequest_.JSC$17202_xmlHttp_!=null){var a=this.JSC$17221_backChannelRequest_.JSC$17202_xmlHttp_.getResponseText();a&&this.JSC$17221_channelDebug_.warning("Timer should have been cancelled : "+a)}this.JSC$17221_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;E_(10);KHc(this);gIc(this)}else this.JSC$17221_channelDebug_.warning("Invalid operation.")};
var GHc=function(a){a.bpDetectionTimerId_!=null&&(a.JSC$17221_channelDebug_.debug("Cancel the BP detection timer."),_.ja.clearTimeout(a.bpDetectionTimerId_),a.bpDetectionTimerId_=null)},gIc=function(a){a.JSC$17221_channelDebug_.debug("Creating new HttpRequest");
a.JSC$17221_backChannelRequest_=new I_(a,a.JSC$17221_channelDebug_,a.sid_,"rpc",a.JSC$17221_backChannelAttemptId_);a.httpHeadersOverwriteParam_===null&&(a.JSC$17221_backChannelRequest_.JSC$17202_extraHeaders_=a.JSC$17221_extraHeaders_);a.JSC$17221_backChannelRequest_.JSC$17202_readyStateChangeThrottleMs_=0;var b=a.JSC$17221_backChannelUri_.clone();_.Og(b,"RID","rpc");_.Og(b,"SID",a.sid_);_.Og(b,"AID",a.JSC$17221_lastArrayId_);_.Og(b,"CI",a.enableStreaming_?"0":"1");!a.enableStreaming_&&a.longPollingTimeout_&&
_.Og(b,"TO",a.longPollingTimeout_);_.Og(b,"TYPE","xmlhttp");P_(a,b);a.httpHeadersOverwriteParam_&&a.JSC$17221_extraHeaders_&&vDc(b,a.httpHeadersOverwriteParam_,a.JSC$17221_extraHeaders_);a.backChannelRequestTimeoutMs_&&a.JSC$17221_backChannelRequest_.setTimeout(a.backChannelRequestTimeoutMs_);var c=a.JSC$17221_backChannelRequest_,d=a.JSC$17221_hostPrefix_;c.JSC$17202_type_=1;c.JSC$17202_baseUri_=_.tA(b.clone());c.JSC$17202_postData_=null;c.decodeChunks_=!0;sHc(c,d);a.JSC$17221_channelDebug_.debug("New Request created")};
O_.prototype.JSC$17223_onBackChannelDead_=function(){this.JSC$17221_deadBackChannelTimerId_!=null&&(this.JSC$17221_deadBackChannelTimerId_=null,KHc(this),LHc(this),E_(19))};
var JHc=function(a){a.JSC$17221_deadBackChannelTimerId_!=null&&(_.ja.clearTimeout(a.JSC$17221_deadBackChannelTimerId_),a.JSC$17221_deadBackChannelTimerId_=null)},DHc=function(a,b){a.JSC$17221_channelDebug_.debug("Request complete");
var c=null;if(a.JSC$17221_backChannelRequest_==b){JHc(a);GHc(a);a.JSC$17221_backChannelRequest_=null;var d=2}else if(IHc(a.forwardChannelRequestPool_,b))c=b.JSC$17202_pendingMessages_,RHc(a.forwardChannelRequestPool_,b),d=1;else return;if(a.state_!=0)if(b.JSC$17202_successful_)d==1?(jHc(b.JSC$17202_postData_?b.JSC$17202_postData_.length:0,Date.now()-b.JSC$17202_requestStartTime_,a.JSC$17221_forwardChannelRetryCount_),ZHc(a)):fIc(a);else{var e=b.JSC$17202_lastStatusCode_,g=b.getLastError();if(g==3||
g==0&&e>0)a.JSC$17221_channelDebug_.debug("Not retrying due to error type"),e>200&&(a.errorResponseStatusCode_=b.JSC$17202_lastStatusCode_);else{a.JSC$17221_channelDebug_.debug(function(){return"Maybe retrying, last error: "+pHc(g,a.errorResponseStatusCode_)});
if(d==1&&cIc(a,b)||d==2&&LHc(a))return;a.JSC$17221_channelDebug_.debug("Exceeded max number of retries")}c&&c.length>0&&THc(a.forwardChannelRequestPool_,c);a.JSC$17221_channelDebug_.debug("Error: HTTP request failed");switch(g){case 1:L_(a,5);break;case 4:L_(a,10);break;case 3:L_(a,6);break;default:L_(a,2)}}},bIc=function(a,b){var c=a.JSC$17221_baseRetryDelayMs_+Math.floor(Math.random()*a.JSC$17221_retryDelaySeedMs_);
a.isActive()||(a.JSC$17221_channelDebug_.debug("Inactive channel"),c*=2);return c*b};
O_.prototype.onInput_=function(a,b){for(var c=0;c<a.length;c++){var d=a[c];this.JSC$17221_lastArrayId_=d[0];d=d[1];if(this.state_==2)if(d[0]=="c"){this.sid_=d[1];this.JSC$17221_hostPrefix_=d[2];var e=d[3];e!=null&&(this.JSC$17223_channelVersion_=e,this.JSC$17221_channelDebug_.info("VER="+this.JSC$17223_channelVersion_));e=d[4];e!=null&&(this.serverVersion_=e,this.JSC$17221_channelDebug_.info("SVER="+this.serverVersion_));d=d[5];d!=null&&typeof d==="number"&&d>0&&(this.backChannelRequestTimeoutMs_=
d*=1.5,this.JSC$17221_channelDebug_.info("backChannelRequestTimeoutMs_="+d));if(d=b.JSC$17202_xmlHttp_){var g=DY(d,"X-Client-Wire-Protocol");g&&(e=this.forwardChannelRequestPool_,!e.requestPool_&&(_.ra(g,"spdy")||_.ra(g,"quic")||_.ra(g,"h2"))&&(e.JSC$17212_maxSize_=e.maxPoolSizeConfigured_,e.requestPool_=new Set,e.JSC$17212_request_&&(QHc(e,e.JSC$17212_request_),e.JSC$17212_request_=null)));this.httpSessionIdParam_&&((d=DY(d,"X-HTTP-Session-Id"))?(this.httpSessionId_=d,_.Og(this.JSC$17221_forwardChannelUri_,
this.httpSessionIdParam_,d)):this.JSC$17221_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17227_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-b.JSC$17202_requestStartTime_,this.JSC$17221_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));d=b;e=YHc(this,this.JSC$17221_supportsCrossDomainXhrs_?this.JSC$17221_hostPrefix_:null,this.JSC$17221_path_);this.JSC$17221_channelDebug_.debug("GetBackChannelUri: "+
e);this.JSC$17221_backChannelUri_=e;d.initialResponseDecoded_?(this.JSC$17221_channelDebug_.debug("Upgrade the handshake request to a backchannel."),RHc(this.forwardChannelRequestPool_,d),e=d,(g=this.backChannelRequestTimeoutMs_)&&e.setTimeout(g),e.JSC$17202_watchDogTimerId_&&(yHc(e),uHc(e)),this.JSC$17221_backChannelRequest_=d):fIc(this);this.JSC$17221_outgoingMaps_.length>0&&ZHc(this)}else d[0]!="stop"&&d[0]!="close"||L_(this,7);else this.state_==3&&(d[0]=="stop"||d[0]=="close"?d[0]=="stop"?L_(this,
7):this.disconnect():d[0]!="noop"&&this.handler_&&this.handler_.JSC$17227_channelHandleArray(d),this.JSC$17221_backChannelRetryCount_=0)}};
var L_=function(a,b){a.JSC$17221_channelDebug_.info("Error code "+b);if(b==2){var c=(0,_.wg)(a.testNetworkCallback_,a),d=a.networkTestUrl_,e=!d;d=new _.Yn(d||"//www.google.com/images/cleardot.gif");_.ja.location&&_.ja.location.protocol=="http"||_.kA(d,"https");_.tA(d);e?UHc(d.toString(),c):VHc(d.toString(),c)}else E_(2);a.onError_(b)};
O_.prototype.testNetworkCallback_=function(a){a?(this.JSC$17221_channelDebug_.info("Successfully pinged google.com"),E_(2)):(this.JSC$17221_channelDebug_.info("Failed to ping google.com"),E_(1))};
O_.prototype.onError_=function(a){this.JSC$17221_channelDebug_.debug("HttpChannel: error - "+a);this.state_=0;this.handler_&&this.handler_.JSC$17227_channelError(a);aIc(this);$Hc(this)};
var aIc=function(a){a.state_=0;a.nonAckedMapsAtChannelClose_=[];if(a.handler_){var b=SHc(a.forwardChannelRequestPool_);if(b.length!=0||a.JSC$17221_outgoingMaps_.length!=0)a.JSC$17221_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+b.length+", outgoing: "+a.JSC$17221_outgoingMaps_.length}),_.Xa(a.nonAckedMapsAtChannelClose_,b),_.Xa(a.nonAckedMapsAtChannelClose_,a.JSC$17221_outgoingMaps_),a.forwardChannelRequestPool_.JSC$17212_pendingMessages_.length=0,_.Ra(a.JSC$17221_outgoingMaps_),
a.JSC$17221_outgoingMaps_.length=0;
a.handler_.JSC$17227_channelClosed()}},hIc=function(a){if(a.state_==0)return a.nonAckedMapsAtChannelClose_;
var b=[];_.Xa(b,SHc(a.forwardChannelRequestPool_));_.Xa(b,a.JSC$17221_outgoingMaps_);return b},YHc=function(a,b,c){var d=_.Mg(c);
d.JSC$7876_domain_!=""?(b&&_.lA(d,b+"."+d.JSC$7876_domain_),_.mA(d,d.JSC$7876_port_)):(d=_.ja.location,d=kCc(d.protocol,b?b+"."+d.hostname:d.hostname,+d.port,c));b=a.httpSessionIdParam_;c=a.httpSessionId_;b&&c&&_.Og(d,b,c);_.Og(d,"VER",a.JSC$17223_channelVersion_);P_(a,d);return d},vHc=function(a,b,c){if(b&&!a.JSC$17221_supportsCrossDomainXhrs_)throw Error("Ak");
b=a.usesFetchStreams_&&!a.JSC$17221_xmlHttpFactory_?new _.Pz(new QZ({streamBinaryChunks:c})):new _.Pz(a.JSC$17221_xmlHttpFactory_);b.JSC$7645_withCredentials_=a.JSC$17221_supportsCrossDomainXhrs_;return b};
O_.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var iIc=function(){};
_.f=iIc.prototype;_.f.JSC$17227_channelOpened=function(){};
_.f.JSC$17227_channelHandleArray=function(){};
_.f.JSC$17227_channelError=function(){};
_.f.JSC$17227_channelClosed=function(){};
_.f.isActive=function(){return!0};
_.f.JSC$17227_badMapError=function(){};var jIc=function(){},R_=function(a,b){_.Hz.call(this);
this.JSC$17230_channel_=new O_(b);this.JSC$17230_url_=a;this.messageUrlParams_=b&&b.messageUrlParams||null;a=b&&b.messageHeaders||null;b&&b.clientProtocolHeaderRequired&&(a?_.Cf.set(a,"X-Client-Protocol","webchannel"):a=_.Cf.create("X-Client-Protocol","webchannel"));this.JSC$17230_channel_.JSC$17221_extraHeaders_=a;a=b&&b.initMessageHeaders||null;b&&b.messageContentType&&(a?_.Cf.set(a,"X-WebChannel-Content-Type",b.messageContentType):a=_.Cf.create("X-WebChannel-Content-Type",b.messageContentType));
b&&b.clientProfile&&(a?_.Cf.set(a,"X-WebChannel-Client-Profile",b.clientProfile):a=_.Cf.create("X-WebChannel-Client-Profile",b.clientProfile));this.JSC$17230_channel_.initHeaders_=a;(a=b&&b.httpHeadersOverwriteParam)&&!_.pa(a)&&(this.JSC$17230_channel_.httpHeadersOverwriteParam_=a);this.supportsCrossDomainXhr_=b&&b.supportsCrossDomainXhr||!1;this.sendRawJson_=b&&b.sendRawJson||!1;(b=b&&b.httpSessionIdParam)&&!_.pa(b)&&(this.JSC$17230_channel_.httpSessionIdParam_=b,_.Cf.containsKey(this.messageUrlParams_,
b)&&_.Cf.remove(this.messageUrlParams_,b));this.channelHandler_=new Q_(this)};
_.sx(R_,_.Hz);R_.prototype.open=function(){this.JSC$17230_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17230_channel_.JSC$17221_supportsCrossDomainXhrs_=!0);this.JSC$17230_channel_.connect(this.JSC$17230_url_,this.messageUrlParams_||void 0)};
R_.prototype.close=function(){this.JSC$17230_channel_.disconnect()};
R_.prototype.send=function(a){var b=this.JSC$17230_channel_;if(typeof a==="string"){var c={};c.__data__=a;a=c}else this.sendRawJson_&&(c={},c.__data__=(0,_.Oz)(a),a=c);b.JSC$17221_outgoingMaps_.push(new NHc(b.JSC$17221_nextMapId_++,a));b.state_==3&&ZHc(b)};
R_.prototype.disposeInternal=function(){this.JSC$17230_channel_.handler_=null;delete this.channelHandler_;this.JSC$17230_channel_.disconnect();delete this.JSC$17230_channel_;R_.superClass_.disposeInternal.call(this)};
var kIc=function(a){cHc.call(this);a.__headers__&&(this.headers=a.__headers__,this.statusCode=a.__status__,delete a.__headers__,delete a.__status__);var b=a.__sm__;b?this.data=(this.metadataKey=_.Cf.getAnyKey(b))?_.Cf.get(b,this.metadataKey):b:this.data=a};
_.sx(kIc,cHc);var lIc=function(a){dHc.call(this);this.status=1;this.errorCode=a};
_.sx(lIc,dHc);var Q_=function(a){this.JSC$17237_channel_=a};
_.sx(Q_,iIc);Q_.prototype.JSC$17227_channelOpened=function(){this.JSC$17237_channel_.dispatchEvent("w")};
Q_.prototype.JSC$17227_channelHandleArray=function(a){this.JSC$17237_channel_.dispatchEvent(new kIc(a))};
Q_.prototype.JSC$17227_channelError=function(a){this.JSC$17237_channel_.dispatchEvent(new lIc(a))};
Q_.prototype.JSC$17227_channelClosed=function(){this.JSC$17237_channel_.dispatchEvent("x")};
var mIc=function(a,b){this.transportChannel_=a;this.JSC$17240_channel_=b},nIc=function(a){return hIc(a.JSC$17240_channel_).map(function(b){var c=a.transportChannel_;
b=b.map;"__data__"in b?(b=b.__data__,c=c.sendRawJson_?(0,_.Wfb)(b):b):c=b;return c})};var S_=function(a){oIc.dispatchEvent(new pIc(oIc,a))},oIc=new _.Hz,pIc=function(a){_.Cz.call(this,"statevent",a)};
_.z(pIc,_.Cz);var T_=function(a,b,c,d,e){this.JSC$17245_channel_=a;this.JSC$17245_channelDebug_=b;this.sid_=c;this.JSC$17245_rid_=d;this.JSC$17245_retryId_=e||1;this.timeout_=45E3;this.JSC$17245_eventHandler_=new _.an(this);this.pollingTimer_=new _.$m;this.pollingTimer_.setInterval(250)};
_.f=T_.prototype;_.f.JSC$17247_extraHeaders_=null;_.f.JSC$17247_successful_=!1;_.f.JSC$17247_watchDogTimerId_=null;_.f.JSC$17247_watchDogTimeoutTime_=null;_.f.JSC$17247_requestStartTime_=null;_.f.JSC$17247_type_=null;_.f.JSC$17247_baseUri_=null;_.f.JSC$17247_requestUri_=null;_.f.JSC$17247_postData_=null;_.f.JSC$17247_xmlHttp_=null;_.f.JSC$17247_xmlHttpChunkStart_=0;_.f.trident_=null;_.f.JSC$17247_verb_=null;_.f.JSC$17247_lastError_=null;_.f.JSC$17247_lastStatusCode_=-1;_.f.sendClose_=!0;
_.f.JSC$17247_cancelled_=!1;_.f.JSC$17247_readyStateChangeThrottleMs_=0;_.f.JSC$17247_readyStateChangeThrottle_=null;var qIc=function(a,b){switch(a){case 0:return"Non-200 return code ("+b+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},rIc={},sIc={};
T_.prototype.setTimeout=function(a){this.timeout_=a};
var uIc=function(a,b,c){a.JSC$17247_type_=1;a.JSC$17247_baseUri_=_.tA(b.clone());a.JSC$17247_postData_=c;a.decodeChunks_=!0;tIc(a,null)},vIc=function(a,b,c,d,e){a.JSC$17247_type_=1;
a.JSC$17247_baseUri_=_.tA(b.clone());a.JSC$17247_postData_=null;a.decodeChunks_=c;e&&(a.sendClose_=!1);tIc(a,d)},tIc=function(a,b){a.JSC$17247_requestStartTime_=Date.now();
wIc(a);a.JSC$17247_requestUri_=a.JSC$17247_baseUri_.clone();uZ(a.JSC$17247_requestUri_,"t",a.JSC$17245_retryId_);a.JSC$17247_xmlHttpChunkStart_=0;a.JSC$17247_xmlHttp_=a.JSC$17245_channel_.JSC$17254_createXhrIo(a.JSC$17245_channel_.JSC$17254_shouldUseSecondaryDomains()?b:null);a.JSC$17247_readyStateChangeThrottleMs_>0&&(a.JSC$17247_readyStateChangeThrottle_=new _.lv((0,_.wg)(a.JSC$17247_xmlHttpHandler_,a,a.JSC$17247_xmlHttp_),a.JSC$17247_readyStateChangeThrottleMs_));a.JSC$17245_eventHandler_.listen(a.JSC$17247_xmlHttp_,
"readystatechange",a.JSC$17247_readyStateChangeHandler_);b=a.JSC$17247_extraHeaders_?_.Cf.clone(a.JSC$17247_extraHeaders_):{};a.JSC$17247_postData_?(a.JSC$17247_verb_="POST",b["Content-Type"]="application/x-www-form-urlencoded",a.JSC$17247_xmlHttp_.send(a.JSC$17247_requestUri_,a.JSC$17247_verb_,a.JSC$17247_postData_,b)):(a.JSC$17247_verb_="GET",a.sendClose_&&!_.zx&&(b.Connection="close"),a.JSC$17247_xmlHttp_.send(a.JSC$17247_requestUri_,a.JSC$17247_verb_,null,b));a.JSC$17245_channel_.notifyServerReachabilityEvent(1);
b=a.JSC$17245_channelDebug_;var c=a.JSC$17247_postData_;if(c){var d="";c=c.split("&");for(var e=0;e<c.length;e++){var g=c[e].split("=");if(g.length>1){var k=g[0];g=g[1];var m=k.split("_");d=m.length>=2&&m[1]=="type"?d+(k+"="+g+"&"):d+(k+"=redacted&")}}}else d=null;b.info("XMLHTTP REQ ("+a.JSC$17245_rid_+") [attempt "+a.JSC$17245_retryId_+"]: "+a.JSC$17247_verb_+"\n"+a.JSC$17247_requestUri_+"\n"+d)};
T_.prototype.JSC$17247_readyStateChangeHandler_=function(a){a=a.target;var b=this.JSC$17247_readyStateChangeThrottle_;b&&_.Qz(a)==3?(this.JSC$17245_channelDebug_.debug("Throttling readystatechange."),b.fire()):this.JSC$17247_xmlHttpHandler_(a)};
T_.prototype.JSC$17247_xmlHttpHandler_=function(a){try{if(a==this.JSC$17247_xmlHttp_)a:{var b=_.Qz(this.JSC$17247_xmlHttp_),c=this.JSC$17247_xmlHttp_.JSC$7645_lastErrorCode_,d=this.JSC$17247_xmlHttp_.getStatus();if(_.zx&&!nAc("420+")){if(b<4)break a}else if(b<3||b==3&&!this.JSC$17247_xmlHttp_.getResponseText())break a;this.JSC$17247_cancelled_||b!=4||c==7||(c==8||d<=0?this.JSC$17245_channel_.notifyServerReachabilityEvent(3):this.JSC$17245_channel_.notifyServerReachabilityEvent(2));xIc(this);var e=
this.JSC$17247_xmlHttp_.getStatus();this.JSC$17247_lastStatusCode_=e;var g=this.JSC$17247_xmlHttp_.getResponseText();g||this.JSC$17245_channelDebug_.debug("No response text for uri "+this.JSC$17247_requestUri_+" status "+e);this.JSC$17247_successful_=e==200;this.JSC$17245_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17245_rid_+") [ attempt "+this.JSC$17245_retryId_+"]: "+this.JSC$17247_verb_+"\n"+this.JSC$17247_requestUri_+"\n"+b+" "+e);if(this.JSC$17247_successful_){b==4&&U_(this);if(this.decodeChunks_){for(a=
!0;!this.JSC$17247_cancelled_&&this.JSC$17247_xmlHttpChunkStart_<g.length;){var k=yIc(this,g);if(k==sIc){b==4&&(this.JSC$17247_lastError_=4,S_(15),a=!1);V_(this.JSC$17245_channelDebug_,this.JSC$17245_rid_,null,"[Incomplete Response]");break}else if(k==rIc){this.JSC$17247_lastError_=4;S_(16);V_(this.JSC$17245_channelDebug_,this.JSC$17245_rid_,g,"[Invalid Chunk]");a=!1;break}else V_(this.JSC$17245_channelDebug_,this.JSC$17245_rid_,k,null),zIc(this,k)}b==4&&g.length==0&&(this.JSC$17247_lastError_=1,
S_(17),a=!1);this.JSC$17247_successful_=this.JSC$17247_successful_&&a;a||(V_(this.JSC$17245_channelDebug_,this.JSC$17245_rid_,g,"[Invalid Chunked Response]"),U_(this),AIc(this))}else V_(this.JSC$17245_channelDebug_,this.JSC$17245_rid_,g,null),zIc(this,g);this.JSC$17247_successful_&&!this.JSC$17247_cancelled_&&(b==4?this.JSC$17245_channel_.JSC$17254_onRequestComplete(this):(this.JSC$17247_successful_=!1,wIc(this)))}else e==400&&g.indexOf("Unknown SID")>0?(this.JSC$17247_lastError_=3,S_(13),this.JSC$17245_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17245_rid_+")")):(this.JSC$17247_lastError_=0,S_(14),this.JSC$17245_channelDebug_.warning("XMLHTTP Bad status "+e+" ("+this.JSC$17245_rid_+")")),U_(this),AIc(this)}else this.JSC$17245_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(m){this.JSC$17245_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var yIc=function(a,b){var c=a.JSC$17247_xmlHttpChunkStart_,d=b.indexOf("\n",c);if(d==-1)return sIc;c=Number(b.substring(c,d));if(isNaN(c))return rIc;d+=1;if(d+c>b.length)return sIc;b=b.slice(d,d+c);a.JSC$17247_xmlHttpChunkStart_=d+c;return b};
T_.prototype.cancel=function(){this.JSC$17247_cancelled_=!0;U_(this)};
var wIc=function(a){a.JSC$17247_watchDogTimeoutTime_=Date.now()+a.timeout_;BIc(a,a.timeout_)},BIc=function(a,b){if(a.JSC$17247_watchDogTimerId_!=null)throw Error("zk");
a.JSC$17247_watchDogTimerId_=PY((0,_.wg)(a.JSC$17247_onWatchDogTimeout_,a),b)},xIc=function(a){a.JSC$17247_watchDogTimerId_&&(_.ja.clearTimeout(a.JSC$17247_watchDogTimerId_),a.JSC$17247_watchDogTimerId_=null)};
T_.prototype.JSC$17247_onWatchDogTimeout_=function(){this.JSC$17247_watchDogTimerId_=null;var a=Date.now();a-this.JSC$17247_watchDogTimeoutTime_>=0?(this.JSC$17245_channelDebug_.info("TIMEOUT: "+this.JSC$17247_requestUri_),this.JSC$17247_type_!=2&&this.JSC$17245_channel_.notifyServerReachabilityEvent(3),U_(this),this.JSC$17247_lastError_=2,S_(18),AIc(this)):(this.JSC$17245_channelDebug_.warning("WatchDog timer called too early"),BIc(this,this.JSC$17247_watchDogTimeoutTime_-a))};
var AIc=function(a){a.JSC$17245_channel_.JSC$17254_isClosed()||a.JSC$17247_cancelled_||a.JSC$17245_channel_.JSC$17254_onRequestComplete(a)},U_=function(a){xIc(a);
_.Xf(a.JSC$17247_readyStateChangeThrottle_);a.JSC$17247_readyStateChangeThrottle_=null;a.pollingTimer_.stop();a.JSC$17245_eventHandler_.removeAll();if(a.JSC$17247_xmlHttp_){var b=a.JSC$17247_xmlHttp_;a.JSC$17247_xmlHttp_=null;b.abort();b.dispose()}a.trident_&&(a.trident_=null)};
T_.prototype.getLastError=function(){return this.JSC$17247_lastError_};
var zIc=function(a,b){try{a.JSC$17245_channel_.JSC$17254_onRequestData(a,b),a.JSC$17245_channel_.notifyServerReachabilityEvent(4)}catch(c){}};var V_=function(a,b,c,d){var e=a.info;a:if(c&&c!="y2f%"){try{var g=JSON.parse(c);if(g)for(var k=0;k<g.length;k++)if(Array.isArray(g[k])){var m=g[k];if(!(m.length<2)){var n=m[1];if(Array.isArray(n)&&!(n.length<1)){var r=n[0];if(r!="noop"&&r!="stop")for(var t=1;t<n.length;t++)n[t]=""}}}var u=(0,_.Oz)(g);break a}catch(x){a.debug("Exception parsing expected JS array - probably was not JS");u=c;break a}u=void 0}else u=c;e.call(a,"XMLHTTP TEXT ("+b+"): "+u+(d?" "+d:""))};
QY.prototype.debug=function(a){this.info(a)};
QY.prototype.info=function(){};
QY.prototype.warning=function(){};var CIc=function(a,b){this.JSC$17252_channel_=a;this.JSC$17252_channelDebug_=b;this.JSC$17252_parser_=new C_};
_.f=CIc.prototype;_.f.JSC$17254_extraHeaders_=null;_.f.JSC$17254_request_=null;_.f.receivedIntermediateResult_=!1;_.f.JSC$17254_path_=null;_.f.state_=null;_.f.JSC$17254_lastStatusCode_=-1;_.f.JSC$17254_hostPrefix_=null;_.f.blockedPrefix_=null;
_.f.connect=function(a){this.JSC$17254_path_=a;a=DIc(this.JSC$17252_channel_,this.JSC$17254_path_);S_(3);Date.now();var b=this.JSC$17252_channel_.firstTestResults_;b!=null?(this.JSC$17254_hostPrefix_=b[0],(this.blockedPrefix_=b[1])?(this.state_=1,EIc(this)):(this.state_=2,FIc(this))):(uZ(a,"MODE","init"),this.JSC$17254_request_=new T_(this,this.JSC$17252_channelDebug_),this.JSC$17254_request_.JSC$17247_extraHeaders_=this.JSC$17254_extraHeaders_,vIc(this.JSC$17254_request_,a,!1,null,!0),this.state_=
0)};
var EIc=function(a){var b=GIc(a.JSC$17252_channel_,a.blockedPrefix_,"/mail/images/cleardot.gif");_.tA(b);Nvc(b.toString(),5E3,(0,_.wg)(a.checkBlockedCallback_,a),3,2E3);a.notifyServerReachabilityEvent(1)};
CIc.prototype.checkBlockedCallback_=function(a){if(a)this.state_=2,FIc(this);else{S_(4);var b=this.JSC$17252_channel_;b.JSC$17255_channelDebug_.debug("Test Connection Blocked");b.JSC$17259_lastStatusCode_=b.connectionTest_.JSC$17254_lastStatusCode_;W_(b,9)}a&&this.notifyServerReachabilityEvent(2)};
var FIc=function(a){a.JSC$17252_channelDebug_.debug("TestConnection: starting stage 2");var b=a.JSC$17252_channel_.secondTestResults_;b!=null?(a.JSC$17252_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+b?"Buffered":"Unbuffered"),S_(5),b?(S_(11),X_(a.JSC$17252_channel_,a,!1)):(S_(12),X_(a.JSC$17252_channel_,a,!0))):(a.JSC$17254_request_=new T_(a,a.JSC$17252_channelDebug_),a.JSC$17254_request_.JSC$17247_extraHeaders_=a.JSC$17254_extraHeaders_,b=HIc(a.JSC$17252_channel_,
a.JSC$17254_hostPrefix_,a.JSC$17254_path_),S_(5),uZ(b,"TYPE","xmlhttp"),vIc(a.JSC$17254_request_,b,!1,a.JSC$17254_hostPrefix_,!1))};
_.f=CIc.prototype;_.f.JSC$17254_createXhrIo=function(a){return this.JSC$17252_channel_.JSC$17254_createXhrIo(a)};
_.f.abort=function(){this.JSC$17254_request_&&(this.JSC$17254_request_.cancel(),this.JSC$17254_request_=null);this.JSC$17254_lastStatusCode_=-1};
_.f.JSC$17254_isClosed=function(){return!1};
_.f.JSC$17254_onRequestData=function(a,b){this.JSC$17254_lastStatusCode_=a.JSC$17247_lastStatusCode_;if(this.state_==0)if(this.JSC$17252_channelDebug_.debug("TestConnection: Got data for stage 1"),b){try{var c=this.JSC$17252_parser_.parse(b)}catch(d){IIc(this.JSC$17252_channel_,this);return}this.JSC$17254_hostPrefix_=c[0];this.blockedPrefix_=c[1]}else this.JSC$17252_channelDebug_.debug("TestConnection: Null responseText"),IIc(this.JSC$17252_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(S_(7),Date.now()):b=="11111"?(S_(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17254_lastStatusCode_=200,this.JSC$17254_request_.cancel(),this.JSC$17252_channelDebug_.debug("Test connection succeeded; using streaming connection"),S_(12),X_(this.JSC$17252_channel_,this,!0)):(S_(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.f.JSC$17254_onRequestComplete=function(){this.JSC$17254_lastStatusCode_=this.JSC$17254_request_.JSC$17247_lastStatusCode_;this.JSC$17254_request_.JSC$17247_successful_?this.state_==0?(this.JSC$17252_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,EIc(this)):(this.state_=2,FIc(this))):this.state_==2&&(this.JSC$17252_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17252_channelDebug_.debug("Test connection succeeded; using streaming connection"),
S_(12),X_(this.JSC$17252_channel_,this,!0)):(this.JSC$17252_channelDebug_.debug("Test connection failed; not using streaming"),S_(11),X_(this.JSC$17252_channel_,this,!1))):(this.JSC$17252_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?S_(9):this.state_==2&&S_(10),IIc(this.JSC$17252_channel_,this,this.JSC$17254_request_.getLastError()))};
_.f.JSC$17254_shouldUseSecondaryDomains=function(){return this.JSC$17252_channel_.JSC$17254_shouldUseSecondaryDomains()};
_.f.isActive=function(){return this.JSC$17252_channel_.isActive()};
_.f.notifyServerReachabilityEvent=function(a){this.JSC$17252_channel_.notifyServerReachabilityEvent(a)};var Y_=function(a,b,c){this.state_=1;this.JSC$17255_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17255_channelDebug_=new QY;this.JSC$17255_parser_=new C_;this.firstTestResults_=a||null;this.secondTestResults_=b!=null?b:null;this.asyncTest_=c||!1},JIc=function(a,b){this.JSC$17257_mapId=a;
this.map=b;this.context=null};
_.f=Y_.prototype;_.f.JSC$17259_extraHeaders_=null;_.f.JSC$17259_extraParams_=null;_.f.forwardChannelRequest_=null;_.f.JSC$17259_backChannelRequest_=null;_.f.JSC$17259_path_=null;_.f.JSC$17259_forwardChannelUri_=null;_.f.JSC$17259_backChannelUri_=null;_.f.JSC$17259_hostPrefix_=null;_.f.JSC$17259_nextRid_=0;_.f.JSC$17259_nextMapId_=0;_.f.handler_=null;_.f.JSC$17259_forwardChannelTimerId_=null;_.f.JSC$17259_backChannelTimerId_=null;_.f.JSC$17259_deadBackChannelTimerId_=null;_.f.connectionTest_=null;
_.f.useChunked_=null;_.f.JSC$17259_lastArrayId_=-1;_.f.JSC$17259_lastPostResponseArrayId_=-1;_.f.JSC$17259_lastStatusCode_=-1;_.f.JSC$17259_forwardChannelRetryCount_=0;_.f.JSC$17259_backChannelRetryCount_=0;_.f.JSC$17259_channelVersion_=8;var KIc={OK:0,REQUEST_FAILED:2,LOGGED_OUT:4,NO_DATA:5,UNKNOWN_SESSION_ID:6,STOP:7,NETWORK:8,BLOCKED:9,BAD_DATA:10,BAD_RESPONSE:11,ACTIVE_X_BLOCKED:12},LIc=function(a,b,c,d){_.Cz.call(this,"timingevent",a);this.size=b;this.rtt=c;this.retries=d};
_.sx(LIc,_.Cz);var MIc=function(a){_.Cz.call(this,"serverreachability",a)};
_.sx(MIc,_.Cz);Y_.prototype.connect=function(a,b,c,d,e){this.JSC$17255_channelDebug_.debug("connect()");S_(0);this.JSC$17259_path_=b;this.JSC$17259_extraParams_=c||{};d&&e!==void 0&&(this.JSC$17259_extraParams_.OSID=d,this.JSC$17259_extraParams_.OAID=e);this.asyncTest_?(PY((0,_.wg)(this.connectTest_,this,a),100),NIc(this)):this.connectTest_(a)};
Y_.prototype.disconnect=function(){this.JSC$17255_channelDebug_.debug("disconnect()");OIc(this);if(this.state_==3){var a=this.JSC$17259_nextRid_++,b=this.JSC$17259_forwardChannelUri_.clone();_.Og(b,"SID",this.sid_);_.Og(b,"RID",a);_.Og(b,"TYPE","terminate");Z_(this,b);a=new T_(this,this.JSC$17255_channelDebug_,this.sid_,a);a.JSC$17247_type_=2;a.JSC$17247_baseUri_=_.tA(b.clone());(new Image).src=a.JSC$17247_baseUri_.toString();a.JSC$17247_requestStartTime_=Date.now();wIc(a)}PIc(this)};
Y_.prototype.connectTest_=function(a){this.JSC$17255_channelDebug_.debug("connectTest_()");this.connectionTest_=new CIc(this,this.JSC$17255_channelDebug_);this.connectionTest_.JSC$17254_extraHeaders_=this.JSC$17259_extraHeaders_;this.connectionTest_.JSC$17252_parser_=this.JSC$17255_parser_;this.connectionTest_.connect(a)};
var NIc=function(a){a.JSC$17255_channelDebug_.debug("connectChannel_()");a.JSC$17259_ensureInState_(1,0);a.JSC$17259_forwardChannelUri_=DIc(a,a.JSC$17259_path_);QIc(a)},OIc=function(a){a.connectionTest_&&(a.connectionTest_.abort(),a.connectionTest_=null);
a.JSC$17259_backChannelRequest_&&(a.JSC$17259_backChannelRequest_.cancel(),a.JSC$17259_backChannelRequest_=null);a.JSC$17259_backChannelTimerId_&&(_.ja.clearTimeout(a.JSC$17259_backChannelTimerId_),a.JSC$17259_backChannelTimerId_=null);RIc(a);a.forwardChannelRequest_&&(a.forwardChannelRequest_.cancel(),a.forwardChannelRequest_=null);a.JSC$17259_forwardChannelTimerId_&&(_.ja.clearTimeout(a.JSC$17259_forwardChannelTimerId_),a.JSC$17259_forwardChannelTimerId_=null)},SIc=function(a,b){if(a.state_==0)throw Error("Ck");
a.JSC$17255_outgoingMaps_.length==1E3&&a.JSC$17255_parser_.stringify(b);a.JSC$17255_outgoingMaps_.push(new JIc(a.JSC$17259_nextMapId_++,b));a.state_!=2&&a.state_!=3||QIc(a)};
Y_.prototype.JSC$17254_isClosed=function(){return this.state_==0};
Y_.prototype.getState=function(){return this.state_};
var QIc=function(a){a.forwardChannelRequest_||a.JSC$17259_forwardChannelTimerId_||(a.JSC$17259_forwardChannelTimerId_=PY((0,_.wg)(a.JSC$17259_onStartForwardChannelTimer_,a),0),a.JSC$17259_forwardChannelRetryCount_=0)};
Y_.prototype.JSC$17259_onStartForwardChannelTimer_=function(a){this.JSC$17259_forwardChannelTimerId_=null;TIc(this,a)};
var TIc=function(a,b){a.JSC$17255_channelDebug_.debug("startForwardChannel_");if(a.state_==1){if(!b){a.JSC$17255_channelDebug_.debug("open_()");a.JSC$17259_nextRid_=Math.floor(Math.random()*1E5);b=a.JSC$17259_nextRid_++;var c=new T_(a,a.JSC$17255_channelDebug_,"",b);c.JSC$17247_extraHeaders_=a.JSC$17259_extraHeaders_;var d=UIc(a),e=a.JSC$17259_forwardChannelUri_.clone();_.Og(e,"RID",b);_.Og(e,"CVER","1");Z_(a,e);uIc(c,e,d);a.forwardChannelRequest_=c;a.state_=2}}else a.state_==3&&(b?VIc(a,b):a.JSC$17255_outgoingMaps_.length==
0?a.JSC$17255_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):a.forwardChannelRequest_||(VIc(a),a.JSC$17255_channelDebug_.debug("startForwardChannel_ finished, sent request")))},VIc=function(a,b){if(b)if(a.JSC$17259_channelVersion_>6){a.JSC$17255_outgoingMaps_=a.pendingMaps_.concat(a.JSC$17255_outgoingMaps_);
a.pendingMaps_.length=0;var c=a.JSC$17259_nextRid_-1;b=UIc(a)}else c=b.JSC$17245_rid_,b=b.JSC$17247_postData_;else c=a.JSC$17259_nextRid_++,b=UIc(a);var d=a.JSC$17259_forwardChannelUri_.clone();_.Og(d,"SID",a.sid_);_.Og(d,"RID",c);_.Og(d,"AID",a.JSC$17259_lastArrayId_);Z_(a,d);c=new T_(a,a.JSC$17255_channelDebug_,a.sid_,c,a.JSC$17259_forwardChannelRetryCount_+1);c.JSC$17247_extraHeaders_=a.JSC$17259_extraHeaders_;c.setTimeout(1E4+Math.round(1E4*Math.random()));a.forwardChannelRequest_=c;uIc(c,d,b)},
Z_=function(a,b){a.handler_&&(a=a.handler_.JSC$17266_getAdditionalParams())&&_.Cf.forEach(a,function(c,d){_.Og(b,d,c)})},UIc=function(a){var b=Math.min(a.JSC$17255_outgoingMaps_.length,1E3),c=["count="+b];
if(a.JSC$17259_channelVersion_>6&&b>0){var d=a.JSC$17255_outgoingMaps_[0].JSC$17257_mapId;c.push("ofs="+d)}else d=0;for(var e={},g=0;g<b;e={mapId$jscomp$3:void 0},g++){e.mapId$jscomp$3=a.JSC$17255_outgoingMaps_[g].JSC$17257_mapId;var k=a.JSC$17255_outgoingMaps_[g].map;e.mapId$jscomp$3=a.JSC$17259_channelVersion_<=6?g:e.mapId$jscomp$3-d;try{_.Cf.forEach(k,function(m){return function(n,r){c.push("req"+m.mapId$jscomp$3+"_"+r+"="+encodeURIComponent(n))}}(e))}catch(m){c.push("req"+e.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}a.pendingMaps_=a.pendingMaps_.concat(a.JSC$17255_outgoingMaps_.splice(0,b));
return c.join("&")},WIc=function(a){a.JSC$17259_backChannelRequest_||a.JSC$17259_backChannelTimerId_||(a.JSC$17259_backChannelAttemptId_=1,a.JSC$17259_backChannelTimerId_=PY((0,_.wg)(a.JSC$17259_onStartBackChannelTimer_,a),0),a.JSC$17259_backChannelRetryCount_=0)},YIc=function(a){if(a.JSC$17259_backChannelRequest_||a.JSC$17259_backChannelTimerId_||a.JSC$17259_backChannelRetryCount_>=3)return!1;
a.JSC$17255_channelDebug_.debug("Going to retry GET");a.JSC$17259_backChannelAttemptId_++;a.JSC$17259_backChannelTimerId_=PY((0,_.wg)(a.JSC$17259_onStartBackChannelTimer_,a),XIc(a,a.JSC$17259_backChannelRetryCount_));a.JSC$17259_backChannelRetryCount_++;return!0};
Y_.prototype.JSC$17259_onStartBackChannelTimer_=function(){this.JSC$17259_backChannelTimerId_=null;this.JSC$17255_channelDebug_.debug("Creating new HttpRequest");this.JSC$17259_backChannelRequest_=new T_(this,this.JSC$17255_channelDebug_,this.sid_,"rpc",this.JSC$17259_backChannelAttemptId_);this.JSC$17259_backChannelRequest_.JSC$17247_extraHeaders_=this.JSC$17259_extraHeaders_;this.JSC$17259_backChannelRequest_.JSC$17247_readyStateChangeThrottleMs_=0;var a=this.JSC$17259_backChannelUri_.clone();_.Og(a,
"RID","rpc");_.Og(a,"SID",this.sid_);_.Og(a,"CI",this.useChunked_?"0":"1");_.Og(a,"AID",this.JSC$17259_lastArrayId_);Z_(this,a);_.Og(a,"TYPE","xmlhttp");vIc(this.JSC$17259_backChannelRequest_,a,!0,this.JSC$17259_hostPrefix_,!1);this.JSC$17255_channelDebug_.debug("New Request created")};
var X_=function(a,b,c){a.JSC$17255_channelDebug_.debug("Test Connection Finished");a.useChunked_=a.secondTestResults_==null?c:!a.secondTestResults_;a.JSC$17259_lastStatusCode_=b.JSC$17254_lastStatusCode_;a.asyncTest_||NIc(a)},IIc=function(a,b){a.JSC$17255_channelDebug_.debug("Test Connection Failed");
a.JSC$17259_lastStatusCode_=b.JSC$17254_lastStatusCode_;W_(a,2)};
Y_.prototype.JSC$17254_onRequestData=function(a,b){if(this.state_!=0&&(this.JSC$17259_backChannelRequest_==a||this.forwardChannelRequest_==a))if(this.JSC$17259_lastStatusCode_=a.JSC$17247_lastStatusCode_,this.forwardChannelRequest_==a&&this.state_==3)if(this.JSC$17259_channelVersion_>7){try{var c=this.JSC$17255_parser_.parse(b)}catch(d){c=null}if(Array.isArray(c)&&c.length==3)if(b=c,b[0]==0)a:if(this.JSC$17255_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17259_backChannelTimerId_)this.JSC$17255_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17259_backChannelRequest_)if(this.JSC$17259_backChannelRequest_.JSC$17247_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17247_requestStartTime_)RIc(this),this.JSC$17259_backChannelRequest_.cancel(),this.JSC$17259_backChannelRequest_=null;else break a;else this.JSC$17255_channelDebug_.warning("We do not have a BackChannel established");YIc(this);S_(19)}else this.JSC$17259_lastPostResponseArrayId_=b[1],a=this.JSC$17259_lastPostResponseArrayId_-this.JSC$17259_lastArrayId_,0<
a&&(b=b[2],this.JSC$17255_channelDebug_.debug(b+" bytes (in "+a+" arrays) are outstanding on the BackChannel"),b<37500&&this.useChunked_&&this.JSC$17259_backChannelRetryCount_==0&&!this.JSC$17259_deadBackChannelTimerId_&&(this.JSC$17259_deadBackChannelTimerId_=PY((0,_.wg)(this.JSC$17259_onBackChannelDead_,this),6E3)));else this.JSC$17255_channelDebug_.debug("Bad POST response data returned"),W_(this,11)}else b!="y2f%"&&(this.JSC$17255_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
W_(this,11));else this.JSC$17259_backChannelRequest_==a&&RIc(this),_.pa(b)||(a=this.JSC$17255_parser_.parse(b),this.onInput_(a))};
Y_.prototype.JSC$17259_onBackChannelDead_=function(){this.JSC$17259_deadBackChannelTimerId_!=null&&(this.JSC$17259_deadBackChannelTimerId_=null,this.JSC$17259_backChannelRequest_.cancel(),this.JSC$17259_backChannelRequest_=null,YIc(this),S_(20))};
var RIc=function(a){a.JSC$17259_deadBackChannelTimerId_!=null&&(_.ja.clearTimeout(a.JSC$17259_deadBackChannelTimerId_),a.JSC$17259_deadBackChannelTimerId_=null)};
Y_.prototype.JSC$17254_onRequestComplete=function(a){this.JSC$17255_channelDebug_.debug("Request complete");if(this.JSC$17259_backChannelRequest_==a){RIc(this);this.JSC$17259_backChannelRequest_=null;var b=2}else if(this.forwardChannelRequest_==a)this.forwardChannelRequest_=null,b=1;else return;this.JSC$17259_lastStatusCode_=a.JSC$17247_lastStatusCode_;if(this.state_!=0)if(a.JSC$17247_successful_)if(b==1){b=a.JSC$17247_postData_?a.JSC$17247_postData_.length:0;a=Date.now()-a.JSC$17247_requestStartTime_;
var c=oIc;c.dispatchEvent(new LIc(c,b,a,this.JSC$17259_forwardChannelRetryCount_));QIc(this);this.handler_&&this.handler_.JSC$17266_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else WIc(this);else{c=a.getLastError();if(c==3||c==7||c==0&&this.JSC$17259_lastStatusCode_>0)this.JSC$17255_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17255_channelDebug_.debug("Maybe retrying, last error: "+qIc(c,this.JSC$17259_lastStatusCode_));var d;if(d=b==1)this.forwardChannelRequest_||
this.JSC$17259_forwardChannelTimerId_||this.state_==1||this.JSC$17259_forwardChannelRetryCount_>=2?d=!1:(this.JSC$17255_channelDebug_.debug("Going to retry POST"),this.JSC$17259_forwardChannelTimerId_=PY((0,_.wg)(this.JSC$17259_onStartForwardChannelTimer_,this,a),XIc(this,this.JSC$17259_forwardChannelRetryCount_)),this.JSC$17259_forwardChannelRetryCount_++,d=!0);if(d||b==2&&YIc(this))return;this.JSC$17255_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17255_channelDebug_.debug("Error: HTTP request failed");
switch(c){case 1:W_(this,5);break;case 4:W_(this,10);break;case 3:W_(this,6);break;case 7:W_(this,12);break;default:W_(this,2)}}};
var XIc=function(a,b){var c=5E3+Math.floor(Math.random()*1E4);a.isActive()||(a.JSC$17255_channelDebug_.debug("Inactive channel"),c*=2);return c*b};
Y_.prototype.onInput_=function(a){for(var b=0;b<a.length;b++){var c=a[b];this.JSC$17259_lastArrayId_=c[0];c=c[1];this.state_==2?c[0]=="c"?(this.sid_=c[1],this.JSC$17259_hostPrefix_=c[2],c=c[3],c!=null?this.JSC$17259_channelVersion_=c:this.JSC$17259_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17266_channelOpened(),this.JSC$17259_backChannelUri_=HIc(this,this.JSC$17259_hostPrefix_,this.JSC$17259_path_),WIc(this)):c[0]=="stop"&&W_(this,7):this.state_==3&&(c[0]=="stop"?W_(this,7):
c[0]!="noop"&&this.handler_&&this.handler_.JSC$17266_channelHandleArray(c),this.JSC$17259_backChannelRetryCount_=0)}};
Y_.prototype.JSC$17259_ensureInState_=function(a){if(!_.Oa(arguments,this.state_))throw Error("Dk`"+this.state_);};
var W_=function(a,b){a.JSC$17255_channelDebug_.info("Error code "+b);if(b==2||b==9){var c=null;a.handler_&&(c=null);var d=(0,_.wg)(a.testGoogleComCallback_,a);c||(c=new _.Yn("//www.google.com/images/cleardot.gif"),_.tA(c));Mvc(c.toString(),1E4,d)}else S_(2);a.onError_(b)};
Y_.prototype.testGoogleComCallback_=function(a){a?(this.JSC$17255_channelDebug_.info("Successfully pinged google.com"),S_(2)):(this.JSC$17255_channelDebug_.info("Failed to ping google.com"),S_(1),this.onError_(8))};
Y_.prototype.onError_=function(a){this.JSC$17255_channelDebug_.debug("HttpChannel: error - "+a);this.state_=0;this.handler_&&this.handler_.JSC$17266_channelError(a);PIc(this);OIc(this)};
var PIc=function(a){a.state_=0;a.JSC$17259_lastStatusCode_=-1;if(a.handler_)if(a.pendingMaps_.length==0&&a.JSC$17255_outgoingMaps_.length==0)a.handler_.JSC$17266_channelClosed();else{a.JSC$17255_channelDebug_.debug("Number of undelivered maps, pending: "+a.pendingMaps_.length+", outgoing: "+a.JSC$17255_outgoingMaps_.length);var b=_.Ra(a.pendingMaps_),c=_.Ra(a.JSC$17255_outgoingMaps_);a.pendingMaps_.length=0;a.JSC$17255_outgoingMaps_.length=0;a.handler_.JSC$17266_channelClosed(b,c)}},DIc=function(a,
b){b=GIc(a,null,b);
a.JSC$17255_channelDebug_.debug("GetForwardChannelUri: "+b);return b},HIc=function(a,b,c){b=GIc(a,a.JSC$17254_shouldUseSecondaryDomains()?b:null,c);
a.JSC$17255_channelDebug_.debug("GetBackChannelUri: "+b);return b},GIc=function(a,b,c){var d=_.Mg(c);
if(d.JSC$7876_domain_!="")b&&_.lA(d,b+"."+d.JSC$7876_domain_),_.mA(d,d.JSC$7876_port_);else{var e=window.location;d=kCc(e.protocol,b?b+"."+e.hostname:e.hostname,+e.port,c)}a.JSC$17259_extraParams_&&_.Cf.forEach(a.JSC$17259_extraParams_,function(g,k){_.Og(d,k,g)});
_.Og(d,"VER",a.JSC$17259_channelVersion_);Z_(a,d);return d};
Y_.prototype.JSC$17254_createXhrIo=function(a){if(a)throw Error("Ak");a=new _.Pz;a.JSC$7645_withCredentials_=!1;return a};
Y_.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
Y_.prototype.notifyServerReachabilityEvent=function(a){var b=oIc;b.dispatchEvent(new MIc(b,a))};
Y_.prototype.JSC$17254_shouldUseSecondaryDomains=function(){return!1};
new qCc;var ZIc=function(){};
_.f=ZIc.prototype;_.f.JSC$17266_channelOpened=function(){};
_.f.JSC$17266_channelHandleArray=function(){};
_.f.JSC$17266_channelSuccess=function(){};
_.f.JSC$17266_channelError=function(){};
_.f.JSC$17266_channelClosed=function(){};
_.f.JSC$17266_getAdditionalParams=function(){return{}};
_.f.isActive=function(){return!0};var $Ic=function(a){a.front_.length===0&&(a.front_=a.back_,a.front_.reverse(),a.back_=[])};
_.f=Pvc.prototype;_.f.enqueue=function(a){this.back_.push(a)};
_.f.peek=function(){$Ic(this);return _.Ja(this.front_)};
_.f.getCount=function(){return this.front_.length+this.back_.length};
_.f.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.f.clear=function(){this.front_=[];this.back_=[]};
_.f.contains=function(a){return _.Oa(this.front_,a)||_.Oa(this.back_,a)};
_.f.remove=function(a){var b=this.front_;var c=Array.prototype.lastIndexOf.call(b,a,b.length-1);c>=0?(_.waa(b,c),b=!0):b=!1;return b||_.Qa(this.back_,a)};
_.f.getValues=function(){for(var a=[],b=this.front_.length-1;b>=0;--b)a.push(this.front_[b]);b=this.back_.length;for(var c=0;c<b;++c)a.push(this.back_[c]);return a};var $_=function(a){this.JSC$17270_map_=new _.sD;this.size=0;a&&this.addAll(a)},aJc=function(a){var b=typeof a;
return b=="object"&&a||b=="function"?"o"+_.$a(a):b.charAt(0)+a};
_.f=$_.prototype;_.f.getCount=function(){return this.JSC$17270_map_.size};
_.f.add=function(a){this.JSC$17270_map_.set(aJc(a),a);this.size=this.JSC$17270_map_.size};
_.f.addAll=function(a){a=_.jA(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c]);this.size=this.JSC$17270_map_.size};
_.f.removeAll=function(a){a=_.jA(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c]);this.size=this.JSC$17270_map_.size};
_.f.delete=function(a){a=this.JSC$17270_map_.remove(aJc(a));this.size=this.JSC$17270_map_.size;return a};
_.f.remove=function(a){return this.delete(a)};
_.f.clear=function(){this.JSC$17270_map_.clear();this.size=0};
_.f.isEmpty=function(){return this.JSC$17270_map_.size===0};
_.f.has=function(a){return this.JSC$17270_map_.containsKey(aJc(a))};
_.f.contains=function(a){return this.JSC$17270_map_.containsKey(aJc(a))};
_.f.getValues=function(){return this.JSC$17270_map_.getValues()};
_.f.values=function(){return this.JSC$17270_map_.values()};
_.f.clone=function(){return new $_(this)};
_.f.equals=function(a){return this.getCount()==iCc(a)&&bJc(this,a)};
var bJc=function(a,b){var c=iCc(b);if(a.getCount()>c)return!1;!(b instanceof $_)&&c>5&&(b=new $_(b));return jCc(a,function(d){var e=b;return e.contains&&typeof e.contains=="function"?e.contains(d):e.containsValue&&typeof e.containsValue=="function"?e.containsValue(d):_.Sa(e)||typeof e==="string"?_.Oa(e,d):_.Cf.containsValue(e,d)})};
$_.prototype.__iterator__=function(){return this.JSC$17270_map_.__iterator__(!1)};
$_.prototype[Symbol.iterator]=function(){return this.values()};var cJc={properties:{value:{type:Number,value:0,notify:!0,reflectToAttribute:!0},min:{type:Number,value:0,notify:!0},max:{type:Number,value:100,notify:!0},step:{type:Number,value:1,notify:!0},ratio:{type:Number,value:0,readOnly:!0,notify:!0}},observers:["_update(value, min, max, step)"],_calcRatio:function(a){return(this._clampValue(a)-this.min)/(this.max-this.min)},
_clampValue:function(a){return Math.min(this.max,Math.max(this.min,this._calcStep(a)))},
_calcStep:function(a){a=parseFloat(a);if(!this.step)return a;a=Math.round((a-this.min)/this.step);return this.step<1?a/(1/this.step)+this.min:a*this.step+this.min},
_validateValue:function(){var a=this._clampValue(this.value);this.value=this.oldValue=isNaN(a)?this.oldValue:a;return this.value!==a},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var dJc;var eJc;_.sr({_template:function(){if(eJc!==void 0)return eJc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-drawer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_drawer.tp.yt.app.drawer.css.js--\x3e<div id="scrim" on-click="close" class="style-scope tp-yt-app-drawer"></div>\n\n\n<div id="contentContainer" opened$="[[opened]]" persistent$="[[persistent]]" position$="[[position]]" swipe-open$="[[swipeOpen]]" class="style-scope tp-yt-app-drawer">\n  <slot class="style-scope tp-yt-app-drawer"></slot>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;dJc===void 0&&(dJc=document.createElement("template"));var d=dJc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return eJc=a},
is:"tp-yt-app-drawer",properties:{opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},persistent:{type:Boolean,value:!1,reflectToAttribute:!0},transitionDuration:{type:Number,value:200},align:{type:String,value:"left"},position:{type:String,readOnly:!0,reflectToAttribute:!0},swipeOpen:{type:Boolean,value:!1,reflectToAttribute:!0},noFocusTrap:{type:Boolean,value:!1},disableSwipe:{type:Boolean,value:!1}},observers:["resetLayout(position, isAttached)","_resetPosition(align, isAttached)","_styleTransitionDuration(transitionDuration)",
"_openedPersistentChanged(opened, persistent)"],_translateOffset:0,_trackDetails:null,_drawerState:0,_boundEscKeydownHandler:null,_firstTabStop:null,_lastTabStop:null,attached:function(){_.Qm(this,function(){this._boundEscKeydownHandler=this._escKeydownHandler.bind(this);this.addEventListener("keydown",this._tabKeydownHandler.bind(this));this.listen(this,"track","_track");this.setScrollDirection("y")});
this.fire("app-reset-layout")},
detached:function(){document.removeEventListener("keydown",this._boundEscKeydownHandler)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
toggle:function(){this.opened=!this.opened},
getWidth:function(){return this._savedWidth||this.$.contentContainer.offsetWidth},
_isRTL:function(){return window.getComputedStyle(this).direction==="rtl"},
_resetPosition:function(){switch(this.align){case "start":this._setPosition(this._isRTL()?"right":"left");return;case "end":this._setPosition(this._isRTL()?"left":"right");return}this._setPosition(this.align)},
_escKeydownHandler:function(a){a.keyCode===27&&(a.preventDefault(),this.close())},
_track:function(a){if(!this.persistent&&!this.disableSwipe)switch(a.preventDefault(),a.detail.state){case "start":this._trackStart(a);break;case "track":this._trackMove(a);break;case "end":this._trackEnd(a)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var a=this.$.contentContainer.getBoundingClientRect();this._savedWidth=a.width;this._translateOffset=this.position==="left"?a.left:a.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(a){this._trackDetails&&(this._translateDrawer(a.detail.dx+this._translateOffset),this._trackDetails.push({dx:a.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(a){if(this._trackDetails){var b=a.detail.dx+this._translateOffset,c=this.getWidth();b=this.position==="left"?b>=0||b<=-c:b<=0||b>=c;if(!b){var d=this._trackDetails;this._trackDetails=null;this._flingDrawer(a,d);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}c/=2;a.detail.dx<-c?this.opened=this.position==="right":a.detail.dx>c&&(this.opened=this.position==="left");b?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(a,b){for(var c=Date.now(),d=c-100,e,g=0,k=b.length-1;g<=k;){var m=g+k>>1,n=b[m];n.timeStamp>=d?(e=n,k=m-1):g=m+1}return e?(a.detail.dx-e.dx)/(c-e.timeStamp||1):0},
_flingDrawer:function(a,b){b=this._calculateVelocity(a,b);if(!(Math.abs(b)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;a=a.detail.dx+this._translateOffset;var c=this.getWidth(),d=this.position==="left",e=b>0;e?(b=Math.max(b,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(b=Math.min(b,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");b=this._FLING_INITIAL_SLOPE*(!e&&d?-(a+c):e&&!d?c-a:-a)/b;this._styleTransitionDuration(b);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,b)}},
_styleTransitionDuration:function(a){this.style.transitionDuration=a+"ms";this.$.contentContainer.style.transitionDuration=a+"ms";this.$.scrim.style.transitionDuration=a+"ms"},
_styleTransitionTimingFunction:function(a){this.$.contentContainer.style.transitionTimingFunction=a;this.$.scrim.style.transitionTimingFunction=a},
_translateDrawer:function(a){var b=this.getWidth();this.position==="left"?(a=Math.max(-b,Math.min(a,0)),this.$.scrim.style.opacity=1+a/b):(a=Math.max(0,Math.min(a,b)),this.$.scrim.style.opacity=1-a/b);this.translate3d(a+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var a=this._drawerState;a===this._DRAWER_STATE.FLINGING&&(this._styleTransitionDuration(this.transitionDuration),this._styleTransitionTimingFunction(""),this.style.visibility="");this._savedWidth=null;this._drawerState=this.opened?this.persistent?this._DRAWER_STATE.OPENED_PERSISTENT:this._DRAWER_STATE.OPENED:this._DRAWER_STATE.CLOSED;a!==this._drawerState&&(this._drawerState===this._DRAWER_STATE.OPENED?(this._setKeyboardFocusTrap(),document.addEventListener("keydown",
this._boundEscKeydownHandler),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",this._boundEscKeydownHandler),document.body.style.overflow=""),a!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var a=_.wn(this).querySelectorAll('a[href]:not([tabindex="-1"]),area[href]:not([tabindex="-1"]),input:not([disabled]):not([tabindex="-1"]),select:not([disabled]):not([tabindex="-1"]),textarea:not([disabled]):not([tabindex="-1"]),button:not([disabled]):not([tabindex="-1"]),iframe:not([tabindex="-1"]),[tabindex]:not([tabindex="-1"]),[contentEditable=true]:not([tabindex="-1"])');a.length>0?(this._firstTabStop=a[0],this._lastTabStop=a[a.length-1]):
this._lastTabStop=this._firstTabStop=null;(a=this.getAttribute("tabindex"))&&parseInt(a,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(a){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||a.keyCode!==9||(a.shiftKey?this._firstTabStop&&_.wn(a).localTarget===this._firstTabStop&&(a.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.wn(a).localTarget===this._lastTabStop&&(a.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(a,b){this.toggleClass("visible",a&&!b,this.$.scrim);this.debounce("_resetDrawerState",this._resetDrawerState,this.transitionDuration)},
_MIN_FLING_THRESHOLD:.2,_MIN_TRANSITION_VELOCITY:1.2,_FLING_TIMING_FUNCTION:"cubic-bezier(0.667, 1, 0.667, 1)",_FLING_INITIAL_SLOPE:1.5,_DRAWER_STATE:{INIT:0,OPENED:1,OPENED_PERSISTENT:2,CLOSED:3,TRACKING:4,FLINGING:5}});var fJc;var gJc;_.sr({_template:function(){if(gJc!==void 0)return gJc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_progress.tp.yt.paper.progress.css.js--\x3e<div id="progressContainer" class="style-scope tp-yt-paper-progress">\n  <div id="secondaryProgress" hidden$="[[_hideSecondaryProgress(secondaryRatio)]]" class="style-scope tp-yt-paper-progress"></div>\n  <div id="primaryProgress" class="style-scope tp-yt-paper-progress"></div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;fJc===void 0&&(fJc=document.createElement("template"));var d=fJc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return gJc=a},
is:"tp-yt-paper-progress",behaviors:[cJc],properties:{secondaryProgress:{type:Number,value:0},secondaryRatio:{type:Number,value:0,readOnly:!0},indeterminate:{type:Boolean,value:!1,observer:"_toggleIndeterminate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_disabledChanged"}},observers:["_progressChanged(secondaryProgress, value, min, max, indeterminate)"],hostAttributes:{role:"progressbar"},_toggleIndeterminate:function(a){this.toggleClass("indeterminate",a,this.$.primaryProgress)},
_transformProgress:function(a,b){a.style.transform=a.style.webkitTransform="scaleX("+b/100+")"},
_mainRatioChanged:function(a){this._transformProgress(this.$.primaryProgress,a)},
_progressChanged:function(a,b,c,d,e){a=this._clampValue(a);b=this._clampValue(b);var g=this._calcRatio(a)*100,k=this._calcRatio(b)*100;this._setSecondaryRatio(g);this._transformProgress(this.$.secondaryProgress,g);this._transformProgress(this.$.primaryProgress,k);this.secondaryProgress=a;e?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",b);this.setAttribute("aria-valuemin",c);this.setAttribute("aria-valuemax",d)},
_disabledChanged:function(a){this.setAttribute("aria-disabled",a?"true":"false")},
_hideSecondaryProgress:function(a){return a===0}});var hJc;var iJc;var jJc=function(){};
_.f=jJc.prototype;_.f.registered=function(){};
_.f.addOwnKeyBinding=function(){};
_.f.removeOwnKeyBindings=function(){};
_.f.keyboardEventMatchesKeys=function(){};
_.f._collectKeyBindings=function(){};
_.f._prepKeyBindings=function(){};
_.f._addKeyBinding=function(){};
_.f._resetKeyEventListeners=function(){};
_.f._listenKeyEventListeners=function(){};
_.f._unlistenKeyEventListeners=function(){};
_.f._onKeyBindingEvent=function(){};
_.f._triggerKeyHandler=function(){};
_.f._tapHandler=function(){};
_.f._focusChanged=function(){};
_.f._detectKeyboardFocus=function(){};
_.f._userActivate=function(){};
_.f._upHandler=function(){};
_.f._spaceKeyDownHandler=function(){};
_.f._spaceKeyUpHandler=function(){};
_.f._asyncClick=function(){};
_.f._pressedChanged=function(){};
_.f._ariaActiveAttributeChanged=function(){};
_.f._activeChanged=function(){};
_.f._controlStateChanged=function(){};
_.f._changedButtonState=function(){};
_.f._focusBlurHandler=function(){};
_.f._disabledChanged=function(){};
_.f._changedControlState=function(){};
_.f._buttonStateChanged=function(){};
_.f._downHandler=function(){};
_.f.ensureRipple=function(){};
_.f.getRipple=function(){};
_.f.hasRipple=function(){};
_.f._noinkChanged=function(){};
_.f._calcRatio=function(){};
_.f._clampValue=function(){};
_.f._calcStep=function(){};
_.f._validateValue=function(){};
_.f._update=function(){};
_.f._setImmediateValue=function(){};
_.f._setExpand=function(){};
_.f._setDragging=function(){};
_.f._setTransiting=function(){};
_.f._setMarkers=function(){};
_.f._setPressed=function(){};
_.f._setPointerDown=function(){};
_.f._setReceivedFocusFromKeyboard=function(){};
_.f._setFocused=function(){};
_.f._setRatio=function(){};
jJc=_.sr({_template:function(){if(iJc!==void 0)return iJc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-slider--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_slider.tp.yt.paper.slider.css.js--\x3e<div id="sliderContainer" class$="[[_getClassNames(disabled, pin, snaps, immediateValue, min, expand, dragging, transiting, editable)]] style-scope tp-yt-paper-slider">\n  <div class="bar-container style-scope tp-yt-paper-slider">\n    <tp-yt-paper-progress disabled$="[[disabled]]" id="sliderBar" aria-hidden="true" min="[[min]]" max="[[max]]" step="[[step]]" value="[[immediateValue]]" secondary-progress="[[secondaryProgress]]" on-down="_bardown" on-up="_resetKnob" on-track="_bartrack" on-tap="_barclick" class="style-scope tp-yt-paper-slider">\n    </tp-yt-paper-progress>\n  </div>\n\n  <template is="dom-if" if="[[snaps]]" class="style-scope tp-yt-paper-slider">\n    <div class="slider-markers style-scope tp-yt-paper-slider">\n      <template is="dom-repeat" items="[[markers]]" class="style-scope tp-yt-paper-slider">\n        <div class="slider-marker style-scope tp-yt-paper-slider"></div>\n      </template>\n    </div>\n  </template>\n\n  <div id="sliderKnobContainer" class="slider-knob-container style-scope tp-yt-paper-slider">\n    <div id="sliderKnob" class="slider-knob style-scope tp-yt-paper-slider" on-down="_knobdown" on-up="_resetKnob" on-track="_onTrack" on-transitionend="_knobTransitionEnd">\n      <div class="slider-knob-inner style-scope tp-yt-paper-slider" value$="[[immediateValue]]"></div>\n    </div>\n  </div>\n</div>\n\n<template is="dom-if" if="[[editable]]" class="style-scope tp-yt-paper-slider">\n  <tp-yt-paper-input id="input" type="number" step="[[step]]" min="[[min]]" max="[[max]]" class="slider-input style-scope tp-yt-paper-slider" disabled$="[[disabled]]" value="[[immediateValue]]" on-change="_changeValue" on-keydown="_inputKeyDown" no-label-float="">\n  </tp-yt-paper-input>\n</template>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;hJc===void 0&&(hJc=document.createElement("template"));var d=hJc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return iJc=a},
is:"tp-yt-paper-slider",behaviors:[_.FD,_.JD,_.zwb,cJc],properties:{value:{type:Number,value:0},snaps:{type:Boolean,value:!1,notify:!0},pin:{type:Boolean,value:!1,notify:!0},secondaryProgress:{type:Number,value:0,notify:!0,observer:"_secondaryProgressChanged"},editable:{type:Boolean,value:!1},immediateValue:{type:Number,value:0,readOnly:!0,notify:!0},maxMarkers:{type:Number,value:0,notify:!0},expand:{type:Boolean,value:!1,readOnly:!0},ignoreBarTouch:{type:Boolean,value:!1},dragging:{type:Boolean,
value:!1,readOnly:!0,notify:!0},transiting:{type:Boolean,value:!1,readOnly:!0},markers:{type:Array,readOnly:!0,value:function(){return[]}}},
observers:["_updateKnob(value, min, max, snaps, step)","_valueChanged(value)","_immediateValueChanged(immediateValue)","_updateMarkers(maxMarkers, min, max, snaps)"],hostAttributes:{role:"slider",tabindex:0},keyBindings:{left:"_leftKey",right:"_rightKey","down pagedown home":"_decrementKey","up pageup end":"_incrementKey"},ready:function(){this.ignoreBarTouch&&_.Bm(this.$.sliderBar,"auto")},
increment:function(){this.value=this._clampValue(this.value+this.step)},
decrement:function(){this.value=this._clampValue(this.value-this.step)},
_updateKnob:function(a,b,c){this.setAttribute("aria-valuemin",b);this.setAttribute("aria-valuemax",c);this.setAttribute("aria-valuenow",a);this._positionKnob(this._calcRatio(a)*100)},
_valueChanged:function(){this.fire("value-change",{composed:!0})},
_immediateValueChanged:function(){this.dragging?this.fire("immediate-value-change",{composed:!0}):this.value=this.immediateValue},
_secondaryProgressChanged:function(){this.secondaryProgress=this._clampValue(this.secondaryProgress)},
_expandKnob:function(){this._setExpand(!0)},
_resetKnob:function(){this.cancelDebouncer("expandKnob");this._setExpand(!1)},
_positionKnob:function(a){this._setImmediateValue(this._calcStep(this._calcKnobPosition(a)));this._setRatio(this._calcRatio(this.immediateValue)*100);this.$.sliderKnob.style.left=this.ratio+"%";this.dragging&&(this._knobstartx=this.ratio*this._w/100,this.translate3d(0,0,0,this.$.sliderKnob))},
_calcKnobPosition:function(a){return(this.max-this.min)*a/100+this.min},
_onTrack:function(a){a.stopPropagation();switch(a.detail.state){case "start":this._trackStart(a);break;case "track":this._trackX(a);break;case "end":this._trackEnd()}},
_trackStart:function(){this._setTransiting(!1);this._w=this.$.sliderBar.offsetWidth;this._knobstartx=this._startx=this._x=this.ratio*this._w/100;this._minx=-this._startx;this._maxx=this._w-this._startx;this.$.sliderKnob.classList.add("dragging");this._setDragging(!0)},
_trackX:function(a){this.dragging||this._trackStart(a);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,a.detail.dx*(this._isRTL?-1:1)));a=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(a);a=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(a+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var a=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;a.transform=a.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(a){this._expandKnob();a.preventDefault();this.focus()},
_bartrack:function(a){this._allowBarEvent(a)&&this._onTrack(a)},
_barclick:function(a){this._w=this.$.sliderBar.offsetWidth;var b=this.$.sliderBar.getBoundingClientRect();b=(a.detail.x-b.left)/this._w*100;this._isRTL&&(b=100-b);var c=this.ratio;this._setTransiting(!0);this._positionKnob(b);c===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
a.preventDefault();this.focus()},
_bardown:function(a){this._allowBarEvent(a)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(a))},
_knobTransitionEnd:function(a){a.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(a,b,c,d){d||this._setMarkers([]);b=Math.round((c-b)/this.step);b>a&&(b=a);if(b<0||!isFinite(b))b=0;this._setMarkers(Array(b))},
_mergeClasses:function(a){return Object.keys(a).filter(function(b){return a[b]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(a){return!this.ignoreBarTouch||a.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(a){this._isRTL?this._incrementKey(a):this._decrementKey(a)},
_rightKey:function(a){this._isRTL?this._decrementKey(a):this._incrementKey(a)},
_incrementKey:function(a){this.disabled||(a.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),a.preventDefault())},
_decrementKey:function(a){this.disabled||(a.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),a.preventDefault())},
_changeValue:function(a){this.value=a.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(a){a.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.ywb._createRipple.call(this)},
_focusedChanged:function(a){a&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=a?"":"none",this._ripple.holdDown=a)}});var kJc;var lJc;var a0=null,mJc=function(){};
_.f=mJc.prototype;_.f.fit=function(){};
_.f._discoverInfo=function(){};
_.f.resetFit=function(){};
_.f.refit=function(){};
_.f.position=function(){};
_.f.constrain=function(){};
_.f._sizeDimension=function(){};
_.f.__sizeDimension=function(){};
_.f.center=function(){};
_.f.__getNormalizedRect=function(){};
_.f.__getOffscreenArea=function(){};
_.f.__getPosition=function(){};
_.f.notifyResize=function(){};
_.f.assignParentResizable=function(){};
_.f.stopResizeNotificationsFor=function(){};
_.f._subscribeIronResize=function(){};
_.f._unsubscribeIronResize=function(){};
_.f.resizerShouldNotify=function(){};
_.f._onDescendantIronResize=function(){};
_.f._fireResize=function(){};
_.f._onIronRequestResizeNotifications=function(){};
_.f._parentResizableChanged=function(){};
_.f._notifyDescendant=function(){};
_.f._requestResizeNotifications=function(){};
_.f._findParent=function(){};
_.f.toggle=function(){};
_.f.open=function(){};
_.f.close=function(){};
_.f.cancel=function(){};
_.f.invalidateTabbables=function(){};
_.f._ensureSetup=function(){};
_.f._canceledChanged=function(){};
_.f._withBackdropChanged=function(){};
_.f._prepareRenderOpened=function(){};
_.f._finishRenderOpened=function(){};
_.f._finishRenderClosed=function(){};
_.f._preparePositioning=function(){};
_.f._finishPositioning=function(){};
_.f._applyFocus=function(){};
_.f._onCaptureClick=function(){};
_.f._onCaptureFocus=function(){};
_.f._onCaptureEsc=function(){};
_.f._onCaptureTab=function(){};
_.f._onIronResize=function(){};
_.f._onNodesChange=function(){};
_.f.__ensureFirstLastFocusables=function(){};
_.f.__openedChanged=function(){};
_.f.__deraf=function(){};
_.f.__updateScrollObservers=function(){};
_.f.__addScrollListeners=function(){};
_.f.__removeScrollListeners=function(){};
_.f.__isValidScrollAction=function(){};
_.f.__onCaptureScroll=function(){};
_.f.__saveScrollPosition=function(){};
_.f.__restoreScrollPosition=function(){};
_.f._setCanceled=function(){};
mJc=_.sr({_template:function(){if(lJc!==void 0)return lJc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toast--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toast.tp.yt.paper.toast.css.js--\x3e<span id="label" class="style-scope tp-yt-paper-toast">{{text}}</span>\n<slot class="style-scope tp-yt-paper-toast"></slot>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;kJc===void 0&&(kJc=document.createElement("template"));var d=kJc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return lJc=a},
is:"tp-yt-paper-toast",behaviors:[_.bE],properties:{fitInto:{type:Object,value:window,observer:"_onFitIntoChanged"},horizontalAlign:{type:String,value:"left"},verticalAlign:{type:String,value:"bottom"},duration:{type:Number,value:3E3},text:{type:String,value:""},label:{type:String,value:"",observer:"_onLabelChanged"},noCancelOnOutsideClick:{type:Boolean,value:!0},noAutoFocus:{type:Boolean,value:!0},noIronAnnounce:{type:Boolean,value:!1},announceLabelUpdates:{type:Boolean,value:!1}},listeners:{transitionend:"__onTransitionEnd"},
get visible(){_.GC._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.XD.requestAvailability()},
show:function(a){typeof a=="string"&&(a={text:a});for(var b in a)b.indexOf("_")===0?_.GC._warn('The property "'+b+'" is private and was not set.'):b in this?this[b]=a[b]:_.GC._warn('The property "'+b+'" is not valid.');this.open()},
hide:function(){this.close()},
__onTransitionEnd:function(a){a&&a.target===this&&a.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(a0&&a0!==this&&a0.close(),a0=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):a0===this&&(a0=null);_.aE._openedChanged.apply(this,arguments)},
_onLabelChanged:function(){this.opened&&this.announceLabelUpdates&&this._fireIronAnnounce()},
_renderOpened:function(){this.classList.add("paper-toast-open")},
_renderClosed:function(){this.classList.remove("paper-toast-open")},
_onFitIntoChanged:function(a){this.positionTarget=a},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var nJc=new _.X("disablePersonalizationAction");var Wzc=new _.X("showDmaConsentFlowCommand");var Xzc=new _.X("showMmgNoticeCommand");var oJc=new _.X("saveConsentAction");var pJc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Gc(a)};
_.z(pJc,_.bd);var qJc=_.vda(pJc);var rJc=new _.X("updateTopbarAvatarAction");var sJc=new _.X("channelHandleValidationResultRenderer");var tJc=new _.X("generateHandleFromNameResultRenderer");var uJc=new _.X("channelHandleInputRenderer");var vJc=new _.X("copyLinkRenderer");var wJc=new _.X("timedCommand");var xJc=new _.X("clearCookieAction");var yJc=new _.X("getMultiPageMenuAction");var zJc=new _.X("addToGuideSectionAction"),AJc=new _.X("removeFromGuideSectionAction");var BJc=new _.X("updateNotificationsUnseenCountAction");var CJc=new _.X("persistSubscriptionsDisplayPreferencesCommand");var DJc=new _.X("resetChannelUnreadCountCommand");var EJc=new _.X("resetSubscriptionsUnreadDotCommand");var FJc=new _.X("selectCountryCommand");var GJc=new _.X("selectLanguageCommand");var kzc=new _.X("sendFeedbackAction");var HJc=new _.X("uploadImageToScottyCommand");var IJc=new _.X("webNativeShareCommand");var JJc=new _.X("registerPromoCommand");var KJc=new _.X("setPushNotificationsEnabledCommand");var LJc=new _.X("desktopTopbarRenderer");var MJc=new _.X("surveyFollowUpRenderer");var NJc=new _.X("handlesClaimingRadioOptionRenderer");var OJc=new _.X("hotkeyDialogRenderer");var PJc=new _.X("modifyReportFormCommand");var QJc=new _.X("accountLinkCommand");var RJc=new _.X("accountUnlinkCommand");var SJc=new _.X("logAccountLinkingEventCommand");var TJc=new _.X("guideCollapsibleEntryRenderer");var UJc=new _.X("guideDownloadsEntryRenderer");var b0=new _.X("guideEntryRenderer");var VJc=new _.X("getLocationCommand");var WJc=new _.X("locationCollectionCommand");var XJc=new _.X("storiesItemViewModel");var YJc=new _.X("addToRemoteQueueAction");var ZJc=new _.X("insertInRemoteQueueAction");var $Jc=new _.X("removeFromRemoteQueueAction");var aKc=new _.X("notificationRenderer");var Hzc=new _.X("localWatchHistoryCommand");var bKc=new _.X("pdgBuyFlowHeaderRenderer");var cKc=new _.X("pdgColorSliderRenderer");var dKc=new _.X("pdgCommentOptionRenderer");var eKc=new _.X("pdgCommentPreviewRenderer");var fKc=new _.X("superVodSelectableItemButtonRenderer");var gKc=new _.X("switchButtonRenderer");var hKc=new _.X("upsellDialogRenderer");var iKc=new _.X("feedbackQuestionRenderer"),jKc=new _.X("feedbackOptionRenderer");var kKc=new _.X("sponsorshipsTierRenderer"),lKc=new _.X("sponsorshipsPromotionChannelRenderer");var mKc=new _.X("simpleSurveyMessageRenderer");var kAc=new _.X("invokeInstrumentManagerAction");var nKc=new _.X("logYpcFlowDismissCommand");var oKc=new _.X("logYpcFlowStartCommand");var pKc=new _.X("unlimitedCreateFamilyEndpoint");var qKc=new _.X("iconBadgeRenderer");var yyc=new _.X("collaborativePlaylistVisibilityValidationRule");var rKc=function(a){_.Cz.call(this,"channelMessage");this.message=a};
_.z(rKc,_.Cz);var sKc=function(a){_.Cz.call(this,"channelError");this.error=a};
_.z(sKc,_.Cz);var tKc={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",CAST_DIALOG_SIGN_IN:"cds",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",
DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc"},uKc={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},vKc={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},
wKc={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},xKc={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var c0=function(a){this.name=this.id="";this.clientName="UNKNOWN_INTERFACE";this.app="";this.type="REMOTE_CONTROL";this.ownerObfuscatedGaiaId=this.obfuscatedGaiaId=this.avatar=this.username="";this.connected=!1;this.capabilities=new Set;this.compatibleSenderThemes=new Set;this.experiments=new Set;this.theme="u";new _.sD;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";a&&(this.id=a.id||a.name,this.name=a.name,this.clientName=a.clientName?a.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=a.app,this.type=a.type||"REMOTE_CONTROL",this.username=a.user||"",this.avatar=a.userAvatarUri||"",this.obfuscatedGaiaId=a.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=a.ownerObfuscatedGaiaId||"",this.theme=a.theme||"u",yKc(this,a.capabilities||""),zKc(this,a.compatibleSenderThemes||""),AKc(this,a.experiments||""),
this.remoteControllerUrl=a.remoteControllerUrl||"",this.localChannelEncryptionKey=a.localChannelEncryptionKey||"",this.deviceContext=a.deviceContext,this.brand=a.brand||"",this.model=a.model||"",this.year=a.year||0,this.os=a.os||"",this.osVersion=a.osVersion||"",this.chipset=a.chipset||"",this.mdxDialServerType=a.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=a.pairingType||"unknown",a=a.deviceInfo)&&(a=JSON.parse(a),this.brand=a.brand||"",this.model=a.model||"",this.year=a.year||
0,this.os=a.os||"",this.osVersion=a.osVersion||"",this.chipset=a.chipset||"",this.clientName=a.clientName?a.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=a.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
c0.prototype.copy=function(){var a={id:this.id,name:this.name,app:this.app,type:this.type,user:this.username,userAvatarUri:this.avatar,obfuscatedGaiaId:this.obfuscatedGaiaId,ownerObfuscatedGaiaId:this.ownerObfuscatedGaiaId,theme:this.theme,capabilities:Array.from(this.capabilities.values()).join(","),compatibleSenderThemes:Array.from(this.compatibleSenderThemes.values()).join(","),experiments:Array.from(this.experiments.values()).join(","),pairingType:this.pairingType};this.brand&&(a.brand=this.brand);
this.model&&(a.model=this.model);this.year&&(a.year=this.year);this.os&&(a.os=this.os);this.osVersion&&(a.osVersion=this.osVersion);this.chipset&&(a.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(a.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(a.mdxDialServerType=this.mdxDialServerType);a=new c0(a);a.connected=this.connected;a.remoteControllerUrl=this.remoteControllerUrl;a.localChannelEncryptionKey=this.localChannelEncryptionKey;a.deviceContext=
this.deviceContext;return a};
c0.prototype.equals=function(a){return a?this.id==a.id:!1};
var yKc=function(a,b){a.capabilities.clear();_.vx(b.split(","),_.xo(_.Cf.contains,tKc)).forEach(function(c){a.capabilities.add(c)})},zKc=function(a,b){a.compatibleSenderThemes.clear();
_.vx(b.split(","),_.xo(_.Cf.contains,uKc)).forEach(function(c){a.compatibleSenderThemes.add(c)})},AKc=function(a,b){a.experiments.clear();
b.split(",").forEach(function(c){a.experiments.add(c)})};var BKc=function(a,b){this.action=a;this.params=b||{}};_.sx(Qvc,_.vg);_.f=Qvc.prototype;_.f.JSC$17306_onTick_=function(){this.JSC$17304_interval_=Math.min(3E5,this.JSC$17304_interval_*2);this.JSC$17306_listener_();this.nextTickTime_&&this.start()};
_.f.start=function(){var a=this.JSC$17304_interval_+15E3*Math.random(),b=this.delay_;b.isActive()||b.start(a);this.nextTickTime_=Date.now()+a};
_.f.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.f.isActive=function(){return this.delay_.isActive()};
_.f.reset=function(){this.delay_.stop();this.JSC$17304_interval_=5E3};_.sx(RY,ZIc);_.f=RY.prototype;_.f.subscribe=function(a,b,c){return this.pubsub_.subscribe(a,b,c)};
_.f.unsubscribe=function(a,b,c){return this.pubsub_.unsubscribe(a,b,c)};
_.f.unsubscribeByKey=function(a){return this.pubsub_.unsubscribeByKey(a)};
_.f.publish=function(a,b){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.f.dispose=function(){this.JSC$17307_disposed_||(this.JSC$17307_disposed_=!0,_.Xf(this.pubsub_),this.disconnect(),_.Xf(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17307_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.qo({})})};
_.f.isDisposed=function(){return this.JSC$17307_disposed_};
_.f.connect=function(a,b,c){var d=this,e,g,k,m;return _.l(function(n){if(n.nextAddress==1)return _.re(n,2),d.useAsyncBrowserChannelHandler_?_.p(n,d.connectPromise_,2):n.jumpTo(2);_.qe(n);if(d.JSC$17307_disposed_||d.JSC$17307_channel_&&d.JSC$17307_channel_.getState()==2)return n.return();d.sCookie_="";d.reconnectTimer_.stop();d.connectionParams_=a||null;d.connectUi_=b||0;e=d.JSC$17307_pathPrefix_+"/test";g=d.JSC$17307_pathPrefix_+"/bind";k=new Y_(c?c.firstTestResults:null,c?c.secondTestResults:null,
d.enableAsyncTest_);if(m=d.JSC$17307_channel_)m.handler_=null;k.handler_=d;d.JSC$17307_channel_=k;if(d.useAsyncBrowserChannelHandler_)return d.connectPromise_=CKc(d).then(function(){return DKc(d,e,g,m,c)}),n.return(d.connectPromise_.then(function(){d.connectPromise_=_.qo()}));
DKc(d,e,g,m,c);return _.se(n,0)})};
var DKc=function(a,b,c,d,e){EKc(a);if(a.JSC$17307_channel_){var g=_.Fi("ID_TOKEN"),k=a.JSC$17307_channel_.JSC$17259_extraHeaders_||{};g?k["x-youtube-identity-token"]=g:delete k["x-youtube-identity-token"];a.JSC$17307_channel_.JSC$17259_extraHeaders_=k}FKc(a);d?(d.getState(),a.JSC$17307_channel_.connect(b,c,a.defaultQueryParams_,d.sid_,d.JSC$17259_lastArrayId_)):e?a.JSC$17307_channel_.connect(b,c,a.defaultQueryParams_,e.sessionId,e.arrayId):a.JSC$17307_channel_.connect(b,c,a.defaultQueryParams_)};
RY.prototype.disconnect=function(a){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.qo())}finally{this.disconnectUi_=a||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),EKc(this),this.JSC$17307_channel_&&(this.JSC$17307_channel_.getState()==3&&TIc(this.JSC$17307_channel_),this.JSC$17307_channel_.disconnect()),this.disconnectUi_=0}};
RY.prototype.sendMessage=function(a,b){var c=this,d;return _.l(function(e){switch(e.nextAddress){case 1:_.re(e,2);if(!c.useAsyncBrowserChannelHandler_){e.jumpTo(2);break}return _.p(e,c.connectPromise_,2);case 2:_.qe(e);if(c.JSC$17307_disposed_)return e.return();d={_sc:a};b&&_.Cf.extend(d,b);if(c.reconnectTimer_.isActive()||(c.JSC$17307_channel_?c.JSC$17307_channel_.getState():0)==2){c.JSC$17307_pendingMessages_.push(d);e.jumpTo(6);break}if(!c.isChannelOpened()){e.jumpTo(6);break}_.re(e,8);if(!c.useAsyncBrowserChannelHandler_||
GKc(c,a)){e.jumpTo(8);break}return _.p(e,CKc(c),8);case 8:_.qe(e,0,0,1);c.isChannelOpened()&&(GKc(c,a)||FKc(c),EKc(c),SIc(c.JSC$17307_channel_,d));_.se(e,6,1);break;case 6:_.se(e,0)}})};
var GKc=function(a,b){return a.enableMdxAuthForConnectionOnly_?!0:a.disableMdxAuthForAdMessages_?Object.values(vKc).includes(b):a.disableMdxAuthForNonPlaybackMessages_?!Object.values(wKc).includes(b):a.disableMdxAuthForShortsMessages_?Object.values(xKc).includes(b):!1};
RY.prototype.JSC$17266_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17307_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)HKc(this);else{var a=this.JSC$17307_pendingMessages_;this.JSC$17307_pendingMessages_=[];var b=a.length;FKc(this);IKc(this,a,b);JKc(this)}else JKc(this)};
var HKc=function(a){var b,c;_.l(function(d){if(d.nextAddress==1)return _.re(d,2),_.p(d,CKc(a),2);_.qe(d);b=a.JSC$17307_pendingMessages_;a.JSC$17307_pendingMessages_=[];c=b.length;IKc(a,b,c);JKc(a);return _.se(d,0)})},IKc=function(a,b,c){for(var d=0;d<c;++d)SIc(a.JSC$17307_channel_,b[d]);
JKc(a)},JKc=function(a){a.publish("handlerOpened");
a.JSC$17307_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.f=RY.prototype;_.f.JSC$17266_channelError=function(a){var b=a==2&&this.JSC$17307_channel_.JSC$17259_lastStatusCode_==401;a==4||b||this.reconnectTimer_.start();this.publish("handlerError",a,b);b=Object.keys(KIc).find(function(c){return KIc[c]===a});
this.JSC$17307_channelErrorCounter.increment("BROWSER_CHANNEL",b!=null?b:"UNKNOWN")};
_.f.JSC$17266_channelClosed=function(a,b){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(b)for(var c=b.length,d=0;d<c;++d){var e=b[d].map;e&&this.JSC$17307_pendingMessages_.push(e)}this.JSC$17307_channelClosedCounter.increment("BROWSER_CHANNEL");a&&this.pendingMapsOnClosedCounter.JSC$7778_streamzService.JSC$7636_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",a.length);b&&this.undeliveredMapsOnClosedCounter.JSC$7781_streamzService.JSC$7636_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
b.length)};
_.f.JSC$17266_channelSuccess=function(a,b){b!=null&&a!=null&&this.channelMessageSentCounter.increment()};
_.f.JSC$17266_getAdditionalParams=function(){var a={v:2};this.sCookie_&&(a.gsessionid=this.sCookie_);this.connectUi_!=0&&(a.ui=""+this.connectUi_);this.disconnectUi_!=0&&(a.ui=""+this.disconnectUi_);this.connectionParams_&&_.Cf.extend(a,this.connectionParams_);return a};
_.f.JSC$17266_channelHandleArray=function(a){a[0]=="S"?this.sCookie_=a[1]:a[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17307_channel_.disconnect()):this.publish("handlerMessage",new BKc(a[0],a[1]));this.JSC$17307_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.f.isChannelOpened=function(){return!!this.JSC$17307_channel_&&this.JSC$17307_channel_.getState()==3};
var EKc=function(a){if(a.JSC$17307_channel_){var b=a.JSC$17307_getXsrfToken_(),c=a.JSC$17307_channel_.JSC$17259_extraHeaders_||{};b?c["x-youtube-lounge-xsrf-token"]=b:delete c["x-youtube-lounge-xsrf-token"];a.JSC$17307_channel_.JSC$17259_extraHeaders_=c}},CKc=function(a){if(a.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.qo();
if(!a.enableCachedUpdateAuthorizationHeader_)return KKc(a);a.updateAuthorizationHeaderPromise_===null&&(a.updateAuthorizationHeaderPromise_=KKc(a));return a.updateAuthorizationHeaderPromise_},KKc=function(a){return _.Lz(a.getAuthorizationHeader_().then(function(b){LKc(a,b)}).thenCatch(function(){}),function(){a.updateAuthorizationHeaderPromise_=null})},LKc=function(a,b){if(a.JSC$17307_channel_){var c=a.JSC$17307_channel_.JSC$17259_extraHeaders_||{};
b&&Object.keys(b).length>0?c=Object.assign({},c,b):delete c.Authorization;a.JSC$17307_channel_.JSC$17259_extraHeaders_=c}},FKc=function(a){a.getAuthorizationHeaderSync_&&!a.useAsyncBrowserChannelHandler_&&LKc(a,a.getAuthorizationHeaderSync_())};
_.f=RY.prototype;_.f.setLoungeToken=function(a){(this.defaultQueryParams_.loungeIdToken=a)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17307_channel_){var b=this.JSC$17307_channel_.JSC$17259_extraHeaders_||{};a?b["X-YouTube-LoungeId-Token"]=a:delete b["X-YouTube-LoungeId-Token"];this.JSC$17307_channel_.JSC$17259_extraHeaders_=b}};
_.f.getDeviceId=function(){return this.defaultQueryParams_.id};
_.f.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.f.reconnect=function(){var a=this.reconnectTimer_;a.delay_.fire();a.start()};
_.f.safeReconnect_=function(){var a=this.JSC$17307_channel_,b=0;a.JSC$17259_backChannelRequest_&&b++;a.forwardChannelRequest_&&b++;b==0&&this.connect(this.connectionParams_,this.connectUi_)};var YY=function(a,b){var c=a.basePath;a.supportCors&&(c=a.scheme+"://"+a.domain+a.port+a.basePath);return _.Qi(c+b,{})};
SY.prototype.sendRequest=function(a,b,c,d,e,g,k){a={format:g?"RAW":"JSON",method:a,context:this,timeout:5E3,withCredentials:!!k,onSuccess:_.xo(this.JSC$17312_onSuccess_,d,!g),onError:_.xo(this.onError_,e),onTimeout:_.xo(this.JSC$17312_onTimeout_,e)};c&&(a.postParams=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.hj(b,a)};
SY.prototype.JSC$17312_onSuccess_=function(a,b,c,d){b?a(d):a({text:c.responseText})};
SY.prototype.onError_=function(a,b){a(Error("Ek`"+b.status))};
SY.prototype.JSC$17312_onTimeout_=function(a){a(Error("Fk"))};var UY=function(a,b){return!!b&&(a.id==b||a.uuid==b)},MKc=function(a){return{name:a.name,
screenId:a.id,loungeToken:a.token,dialId:a.uuid,screenIdType:a.idType}},NKc=function(a){return new TY(a)},OKc=function(a){return Array.isArray(a)?_.Df(a,NKc):[]},Zwc=function(a){if(!a)return"null";
var b=a.token?".."+a.token.slice(-6):"-",c=a.uuid?".."+a.uuid.slice(-6):"-";return'{name:"'+a.name+'",id:'+a.id.substr(0,6)+"..,token:"+(b+",uuid:"+c+",idType:"+a.idType+"}")},Awc=function(a){return Array.isArray(a)?"["+_.Df(a,Zwc).join(",")+"]":"null"};var gwc="",XY=null;var pwc=function(a,b){_.Hz.call(this);var c=this;this.handler=a();this.handler.subscribe("handlerOpened",this.JSC$17319_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(d,e){c.onError(e)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=b};
_.z(pwc,_.Hz);_.f=pwc.prototype;_.f.connect=function(a,b,c){this.handler.connect(a,b,c)};
_.f.disconnect=function(a){this.handler.disconnect(a)};
_.f.reconnect=function(){this.handler.reconnect()};
_.f.getDeviceId=function(){return this.handler.getDeviceId()};
_.f.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.f.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.f.JSC$17319_onOpened=function(){this.dispatchEvent("channelOpened");var a=this.handler,b=this.currentScreenId;_.uG("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!a.JSC$17307_channel_.useChunked_,sessionId:a.JSC$17307_channel_.sid_,arrayId:a.JSC$17307_channel_.JSC$17259_lastArrayId_});_.uG("yt-remote-session-screen-id",b);a=awc();b=bwc();_.Oa(a,b)||a.push(b);fwc(a);ewc()};
_.f.onClosed=function(){this.dispatchEvent("channelClosed")};
_.f.onMessage=function(a){this.dispatchEvent(new rKc(a))};
_.f.onError=function(a){this.dispatchEvent(new sKc(a?1:0))};
_.f.sendMessage=function(a,b){this.handler.sendMessage(a,b)};
_.f.setLoungeToken=function(a){this.handler.setLoungeToken(a)};
_.f.dispose=function(){this.handler.dispose()};var owc=function(a,b,c){var d=this;c=c===void 0?function(){return""}:c;
var e=e===void 0?new jIc:e;var g=g===void 0?new _.jj:g;this.pathPrefix=a;this.defaultQueryParams=b;this.getXsrfToken=c;this.JSC$17322_pubsub=g;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new Qvc(function(){var k;((k=d.channel)==null?void 0:MHc((new mIc(k,k.JSC$17230_channel_)).JSC$17240_channel_.forwardChannelRequestPool_))===0&&d.connect(d.connectionParams,d.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17322_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17322_channelOpenedCounter=new Rvc;this.JSC$17322_channelClosedCounter=new Svc;this.JSC$17322_channelMessageReceivedCounter=new Uvc;this.JSC$17322_channelErrorCounter=new Vvc};
owc.prototype.connect=function(a,b){a=a===void 0?{}:a;b=b===void 0?0:b;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=a,this.connectUi=b,PKc(this),(a=_.Fi("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=a:delete this.webChannelMessageHeaders["x-youtube-identity-token"],this.defaultQueryParams&&(this.webChannelMessageUrlParams.device=this.defaultQueryParams.device,this.webChannelMessageUrlParams.name=this.defaultQueryParams.name,this.webChannelMessageUrlParams.app=
this.defaultQueryParams.app,this.webChannelMessageUrlParams.id=this.defaultQueryParams.id,this.defaultQueryParams.mdxVersion&&(this.webChannelMessageUrlParams.mdxVersion=""+this.defaultQueryParams.mdxVersion),this.defaultQueryParams.theme&&(this.webChannelMessageUrlParams.theme=this.defaultQueryParams.theme),this.defaultQueryParams.capabilities&&(this.webChannelMessageUrlParams.capabilities=this.defaultQueryParams.capabilities),this.defaultQueryParams.cst&&(this.webChannelMessageUrlParams.cst=this.defaultQueryParams.cst),
this.defaultQueryParams.authuser&&(this.webChannelMessageUrlParams.authuser=this.defaultQueryParams.authuser),this.defaultQueryParams.pageId&&(this.webChannelMessageUrlParams.pageId=this.defaultQueryParams.pageId)),this.connectUi!==0?this.webChannelMessageUrlParams.ui=""+this.connectUi:delete this.webChannelMessageUrlParams.ui,Object.assign(this.webChannelMessageUrlParams,this.connectionParams),this.channel=new R_(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,QKc(this))};
var QKc=function(a){_.rs(a.channel,"w",function(){a.channelState=3;a.reconnectTimer.reset();a.connectionParams=null;a.connectUi=0;for(var b=_.h(a.nonAckedMessagesOnChannelClosed),c=b.next();!c.done;c=b.next())c=c.value,a.channel&&a.channel.send(c);a.nonAckedMessagesOnChannelClosed=[];a.publish("webChannelOpened");a.JSC$17322_channelOpenedCounter.increment("WEB_CHANNEL")});
_.rs(a.channel,"x",function(){a.channelState=0;a.reconnectTimer.isActive()||a.publish("webChannelClosed");var b,c=(b=a.channel)==null?void 0:nIc(new mIc(b,b.JSC$17230_channel_));c&&(a.nonAckedMessagesOnChannelClosed=[].concat(_.De(c)));a.JSC$17322_channelClosedCounter.increment("WEB_CHANNEL")});
_.rs(a.channel,"z",function(b){var c=b.data;c[0]==="gracefulReconnect"?(a.reconnectTimer.start(),a.channel&&a.channel.close()):a.publish("webChannelMessage",new BKc(c[0],c[1]));a.lastStatusCode=b.statusCode;a.JSC$17322_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.rs(a.channel,"y",function(){a.lastStatusCode===401||a.reconnectTimer.start();a.publish("webChannelError");a.JSC$17322_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.f=owc.prototype;_.f.disconnect=function(a){this.disconnectUi=a===void 0?0:a;this.reconnectTimer.stop();PKc(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.f.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.f.reconnect=function(){var a=this.reconnectTimer;a.delay_.fire();a.start()};
_.f.sendMessage=function(a,b){this.channel&&(PKc(this),a=Object.assign({},{_sc:a},b),this.channel.send(a))};
_.f.setLoungeToken=function(a){a||this.reconnectTimer.stop();a?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=a:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var PKc=function(a){var b=a.getXsrfToken();b?a.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=b:delete a.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.f=owc.prototype;_.f.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.f.publish=function(a){return this.JSC$17322_pubsub.publish.apply(this.JSC$17322_pubsub,[a].concat(_.De(_.Kd.apply(1,arguments))))};
_.f.subscribe=function(a,b,c){return this.JSC$17322_pubsub.subscribe(a,b,c)};
_.f.unsubscribe=function(a,b,c){return this.JSC$17322_pubsub.unsubscribe(a,b,c)};
_.f.unsubscribeByKey=function(a){return this.JSC$17322_pubsub.unsubscribeByKey(a)};
_.f.dispose=function(){this.JSC$17322_disposed||(this.JSC$17322_disposed=!0,_.Xf(this.JSC$17322_pubsub),this.disconnect(),_.Xf(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.f.isDisposed=function(){return this.JSC$17322_disposed};var nwc=function(a){_.Hz.call(this);this.webChannelService=a();this.webChannelService.subscribe("webChannelOpened",this.JSC$17330_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.z(nwc,_.Hz);_.f=nwc.prototype;_.f.connect=function(a,b){this.webChannelService.connect(a,b)};
_.f.disconnect=function(a){this.webChannelService.disconnect(a)};
_.f.reconnect=function(){this.webChannelService.reconnect()};
_.f.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.f.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.f.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.f.JSC$17330_onOpened=function(){this.dispatchEvent("channelOpened")};
_.f.onClosed=function(){this.dispatchEvent("channelClosed")};
_.f.onMessage=function(a){this.dispatchEvent(new rKc(a))};
_.f.onError=function(){this.dispatchEvent(new sKc(this.webChannelService.lastStatusCode===401?1:0))};
_.f.sendMessage=function(a,b){this.webChannelService.sendMessage(a,b)};
_.f.setLoungeToken=function(a){this.webChannelService.setLoungeToken(a)};
_.f.dispose=function(){this.webChannelService.dispose()};var zwc=Date.now(),ZY=null,xwc=Array(50),bZ=-1,ywc=!1;_.sx(cZ,_.kY);cZ.prototype.getScreens=function(){return this.screens};
cZ.prototype.contains=function(a){return!!$vc(this.screens,a)};
cZ.prototype.get=function(a){return a?VY(this.screens,a):null};
var RKc=function(a,b){var c=a.get(b.uuid)||a.get(b.id);if(c)return a=c.name,c.id=b.id||c.id,c.name=b.name,c.token=b.token,c.uuid=b.uuid||c.uuid,c.name!=a;a.screens.push(b);return!0},SKc=function(a,b){var c=a.screens.length!=b.length;
a.screens=_.vx(a.screens,function(g){return!!$vc(b,g)});
for(var d=b.length,e=0;e<d;e++)c=RKc(a,b[e])||c;return c},TKc=function(a,b){var c=a.screens.length;
a.screens=_.vx(a.screens,function(d){return!(d||b?!d!=!b?0:d.id==b.id:1)});
return a.screens.length<c};
cZ.prototype.info=function(a){$Y(this.JSC$17331_logName_,a)};var UKc=function(a,b,c,d,e){_.kY.call(this);this.JSC$17334_http_=a;this.pairingCode_=b;this.deviceId_=c;this.friendlyName_=d;this.enableShortLivedLoungeToken_=e;this.pollIndex_=0;this.JSC$17334_xhr_=null;this.JSC$17334_timer_=NaN};
_.z(UKc,_.kY);_.f=UKc.prototype;_.f.start=function(){!this.JSC$17334_xhr_&&isNaN(this.JSC$17334_timer_)&&this.poll_()};
_.f.stop=function(){this.JSC$17334_xhr_&&(this.JSC$17334_xhr_.abort(),this.JSC$17334_xhr_=null);isNaN(this.JSC$17334_timer_)||(_.fj(this.JSC$17334_timer_),this.JSC$17334_timer_=NaN)};
_.f.disposeInternal=function(){this.stop();_.kY.prototype.disposeInternal.call(this)};
_.f.poll_=function(){this.JSC$17334_timer_=NaN;this.JSC$17334_xhr_=_.hj(YY(this.JSC$17334_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.wg)(this.JSC$17336_onSuccess_,this),onError:(0,_.wg)(this.onError_,this),onTimeout:(0,_.wg)(this.JSC$17336_onTimeout_,this)})};
_.f.JSC$17336_onSuccess_=function(a,b){this.JSC$17334_xhr_=null;a=b.screen||{};a.dialId=this.deviceId_;a.name=this.friendlyName_;b=-1;this.enableShortLivedLoungeToken_&&a.shortLivedLoungeToken&&a.shortLivedLoungeToken.value&&a.shortLivedLoungeToken.refreshIntervalMs&&(a.screenIdType="shortLived",a.loungeToken=a.shortLivedLoungeToken.value,b=a.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new TY(a),b)};
_.f.onError_=function(a){this.JSC$17334_xhr_=null;a.status&&a.status==404?this.pollIndex_>=VKc.length?this.publish("pairingFailed",Error("Gk")):(a=VKc[this.pollIndex_],this.JSC$17334_timer_=_.dj((0,_.wg)(this.poll_,this),a),this.pollIndex_++):this.publish("pairingFailed",Error("Hk`"+a.status))};
_.f.JSC$17336_onTimeout_=function(){this.JSC$17334_xhr_=null;this.publish("pairingFailed",Error("Ik"))};
var VKc=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.sx(eZ,cZ);_.f=eZ.prototype;_.f.start=function(){dZ(this)&&this.publish("screenChange");!_.vG("yt-remote-lounge-token-expiration")&&WKc(this);_.fj(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.dj((0,_.wg)(this.start,this),1E4)};
_.f.add=function(a,b){dZ(this);RKc(this,a);XKc(this,!1);this.publish("screenChange");b(a);a.token||WKc(this)};
_.f.remove=function(a,b){var c=dZ(this);TKc(this,a)&&(XKc(this,!1),c=!0);b(a);c&&this.publish("screenChange")};
_.f.updateName=function(a,b,c,d){var e=dZ(this),g=this.get(a.id);g?(g.name!=b&&(g.name=b,XKc(this,!1),e=!0),c(a)):d(Error("Jk"));e&&this.publish("screenChange")};
_.f.disposeInternal=function(){_.fj(this.loungeTokenRefreshTimer_);eZ.superClass_.disposeInternal.call(this)};
var WKc=function(a){if(a.screens.length){var b=_.Df(a.screens,function(d){return d.id}),c=YY(a.JSC$17338_http_,"/pairing/get_lounge_token_batch");
a.JSC$17338_http_.sendRequest("POST",c,{screen_ids:b.join(",")},(0,_.wg)(a.handleLoungeTokens_,a),(0,_.wg)(a.handleLoungeTokenError_,a))}};
eZ.prototype.handleLoungeTokens_=function(a){dZ(this);var b=this.screens.length;a=a&&a.screens||[];for(var c=a.length,d=0;d<c;++d){var e=a[d],g=this.get(e.screenId);g&&(g.token=e.loungeToken,--b)}XKc(this,!b);b&&$Y(this.JSC$17331_logName_,"Missed "+b+" lounge tokens.")};
eZ.prototype.handleLoungeTokenError_=function(a){$Y(this.JSC$17331_logName_,"Requesting lounge tokens failed: "+a)};
var dZ=function(a){if(_.w("deprecate_pair_servlet_enabled"))return SKc(a,[]);var b=OKc(iwc());b=_.vx(b,function(c){return!c.uuid});
return SKc(a,b)},XKc=function(a,b){kwc(_.Df(a.screens,MKc));
b&&jwc()};var d0=function(a,b){_.kY.call(this);this.getScreensToCheck_=b;b=(b=_.vG("yt-remote-online-screen-ids")||"")?b.split(","):[];for(var c={},d=this.getScreensToCheck_(),e=d.length,g=0;g<e;++g){var k=d[g].id;c[k]=_.Oa(b,k)}this.screenIdSet_=c;this.JSC$17341_http_=a;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;YKc("Initialized with "+(0,_.Oz)(this.screenIdSet_))};
_.z(d0,_.kY);d0.prototype.isOnline=function(a){return!!this.screenIdSet_[a]};
d0.prototype.start=function(){var a=parseInt(_.vG("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.rx()-144E5<a?0:a)?ZKc(this):(this.fastCheckEndTime_=_.rx()+3E5,_.uG("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
d0.prototype.isEmpty=function(){return _.Cf.isEmpty(this.screenIdSet_)};
d0.prototype.update=function(){YKc("Updating availability on schedule.");var a=this.getScreensToCheck_(),b=_.Cf.filter(this.screenIdSet_,function(c,d){return c&&!!VY(a,d)},this);
$Kc(this,b)};
var aLc=function(a,b,c){var d=YY(a.JSC$17341_http_,"/pairing/get_screen_availability");a.JSC$17341_http_.sendRequest("POST",d,{lounge_token:b.token},(0,_.wg)(function(e){e=e.screens||[];for(var g=e.length,k=0;k<g;++k)if(e[k].loungeToken==b.token){c(e[k].status=="online");return}c(!1)},a),(0,_.wg)(function(){c(!1)},a))};
d0.prototype.disposeInternal=function(){_.fj(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.kY.prototype.disposeInternal.call(this)};
var $Kc=function(a,b){a:if(_.Cf.getCount(b)!=_.Cf.getCount(a.screenIdSet_))var c=!1;else{c=_.Cf.getKeys(b);for(var d=c.length,e=0;e<d;++e)if(!a.screenIdSet_[c[e]]){c=!1;break a}c=!0}c||(YKc("Updated online screens: "+(0,_.Oz)(a.screenIdSet_)),a.screenIdSet_=b,a.publish("screenChange"));bLc(a)},ZKc=function(a){isNaN(a.refreshTimer_)||_.fj(a.refreshTimer_);
a.refreshTimer_=_.dj((0,_.wg)(a.requestScreenAvailability_,a),a.fastCheckEndTime_>0&&a.fastCheckEndTime_<_.rx()?2E4:1E4)};
d0.prototype.requestScreenAvailability_=function(){_.fj(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var a=cLc(this);if(_.Cf.getCount(a)){var b=YY(this.JSC$17341_http_,"/pairing/get_screen_availability"),c={lounge_token:_.Cf.getKeys(a).join(",")};this.currentRequest_=this.JSC$17341_http_.sendRequest("POST",b,c,(0,_.wg)(this.onScreenAvailability_,this,a),(0,_.wg)(this.onScreenAvailabilityError_,this))}else $Kc(this,{}),ZKc(this)};
d0.prototype.onScreenAvailability_=function(a,b){this.currentRequest_=null;var c=_.Cf.getKeys(cLc(this));if(_.bb(c,_.Cf.getKeys(a))){b=b.screens||[];c={};for(var d=b.length,e=0;e<d;++e)c[a[b[e].loungeToken]]=b[e].status=="online";$Kc(this,c);ZKc(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
d0.prototype.onScreenAvailabilityError_=function(a){this.warn_("Screen availability failed: "+a);this.currentRequest_=null;ZKc(this)};
var YKc=function(a){$Y("OnlineScreenService",a)};
d0.prototype.warn_=function(a){$Y("OnlineScreenService",a)};
var cLc=function(a){var b={};_.Mi(a.getScreensToCheck_(),function(c){c.token?b[c.token]=c.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return b},bLc=function(a){a=_.Cf.getKeys(_.Cf.filter(a.screenIdSet_,function(b){return b}));
a.sort(_.Aaa);a.length?_.uG("yt-remote-online-screen-ids",a.join(","),60):_.wG("yt-remote-online-screen-ids")};_.sx(fZ,cZ);_.f=fZ.prototype;_.f.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.f.add=function(a,b,c){this.localScreenService_.add(a,b,c)};
_.f.remove=function(a,b,c){this.localScreenService_.remove(a,b,c);this.onlineScreenService_.update()};
_.f.updateName=function(a,b,c,d){this.localScreenService_.contains(a)?this.localScreenService_.updateName(a,b,c,d):(a="Updating name of unknown screen: "+a.name,$Y(this.JSC$17331_logName_,a),d(Error(a)))};
_.f.getScreens=function(a){return a?this.screens:wsc(this.screens,_.vx(this.automaticScreens_,function(b){return!this.contains(b)},this))};
_.f.JSC$17346_getOnlineScreens=function(){return _.vx(this.getScreens(!0),function(a){return this.onlineScreenService_.isOnline(a.id)},this)};
var eLc=function(a,b,c,d,e,g){a.info("getAutomaticScreenByIds "+c+" / "+b);c||(c=a.deviceToScreenId_[b]);var k=a.getScreens(),m=c?VY(k,c):null;c&&(a.disableAutomaticScreenCache_||m)||(m=VY(k,b));if(m){m.uuid=b;var n=e0(a,m);aLc(a.onlineScreenService_,n,function(r){e(r?n:null)})}else c?dLc(a,c,(0,_.wg)(function(r){var t=e0(this,new TY({name:d,
screenId:c,loungeToken:r,dialId:b||""}));aLc(this.onlineScreenService_,t,function(u){e(u?t:null)})},a),g):e(null)};
fZ.prototype.JSC$17346_getScreenByPollingPairingCode=function(a,b,c,d,e,g){var k=this;this.info("getDialScreenByPairingCode "+a+" / "+b);var m=new UKc(this.JSC$17344_http_,a,b,c,d);m.subscribe("pairingComplete",function(n,r){_.Xf(m);e(e0(k,n),r)});
m.subscribe("pairingFailed",function(n){_.Xf(m);g(n)});
m.start();return(0,_.wg)(m.stop,m)};
var fLc=function(a,b){for(var c=a.screens.length,d=0;d<c;++d)if(a.screens[d].name==b)return a.screens[d];return null};
fZ.prototype.JSC$17346_getScreenByPairingCode=function(a,b,c,d){_.hj(YY(this.JSC$17344_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:a},timeout:5E3,onSuccess:(0,_.wg)(function(e,g){e=new TY(g.screen||{});if(!e.name||fLc(this,e.name)){a:{g=e.name;for(var k=2,m=b(g,k);fLc(this,m);){k++;if(k>20)break a;m=b(g,k)}g=m}e.name=g}c(e0(this,e))},this),
onError:(0,_.wg)(function(e){d(Error("Kk`"+e.status))},this),
onTimeout:(0,_.wg)(function(){d(Error("Lk"))},this)})};
var gLc=function(a,b,c){aLc(a.onlineScreenService_,b,c)};
fZ.prototype.disposeInternal=function(){_.Xf(this.localScreenService_);_.Xf(this.onlineScreenService_);fZ.superClass_.disposeInternal.call(this)};
var dLc=function(a,b,c,d){a.info("requestLoungeToken_ for "+b);var e={postParams:{screen_ids:b},method:"POST",context:a,onSuccess:function(g,k){g=k&&k.screens||[];g[0]&&g[0].screenId==b?c(g[0].loungeToken):d(Error("Mk"))},
onError:function(){d(Error("Nk"))}};
_.hj(YY(a.JSC$17344_http_,"/pairing/get_lounge_token_batch"),e)},hLc=function(a){a.screens=a.localScreenService_.getScreens();
for(var b=_.Cf.transpose(a.deviceToScreenId_),c=a.screens.length,d=0;d<c;++d){var e=a.screens[d];e.uuid=b[e.id]||""}a.info("Updated manual screens: "+Awc(a.screens))};
fZ.prototype.handleScreenChange_=function(){hLc(this);this.publish("screenChange");this.onlineScreenService_.update()};
var Bwc=function(a){iLc(a);a.localScreenService_=new eZ(a.JSC$17344_http_);a.localScreenService_.subscribe("screenChange",(0,_.wg)(a.handleScreenChange_,a));hLc(a);a.disableAutomaticScreenCache_||(a.automaticScreens_=OKc(_.vG("yt-remote-automatic-screen-cache")||[]));iLc(a);a.info("Initializing automatic screens: "+Awc(a.automaticScreens_));a.onlineScreenService_=new d0(a.JSC$17344_http_,(0,_.wg)(a.getScreens,a,!0));a.onlineScreenService_.subscribe("screenChange",(0,_.wg)(function(){this.publish("onlineScreenChange")},
a))},e0=function(a,b){var c=a.get(b.id);
c?(c.uuid=b.uuid,b=c):((c=VY(a.automaticScreens_,b.uuid))?(c.id=b.id,c.token=b.token,b=c):a.automaticScreens_.push(b),a.disableAutomaticScreenCache_||jLc(a));iLc(a);a.deviceToScreenId_[b.uuid]=b.id;_.uG("yt-remote-device-id-map",a.deviceToScreenId_,31536E3);return b},jLc=function(a){a=_.vx(a.automaticScreens_,function(b){return b.idType!="shortLived"});
_.uG("yt-remote-automatic-screen-cache",_.Df(a,MKc))},iLc=function(a){a.deviceToScreenId_=_.vG("yt-remote-device-id-map")||{}};
fZ.prototype.dispose=fZ.prototype.dispose;_.sx(gZ,_.kY);var f0=function(a,b){a.screen_=b;a.publish("sessionScreen",a.screen_)},kLc=function(a,b){a.screen_&&(a.screen_.token=b,e0(a.JSC$17348_screenService_,a.screen_));
a.publish("sessionScreen",a.screen_)};
gZ.prototype.onSessionStopped=function(a){this.isDisposed()||(a&&(g0(this,""+a),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
gZ.prototype.info=function(a){$Y(this.JSC$17348_logName_,a)};
var g0=function(a,b){$Y(a.JSC$17348_logName_,b)};
gZ.prototype.JSC$17350_getCastSession=function(){return null};
gZ.prototype.setDisplayStatus=function(a){var b=this.receiver_;a?(b.displayStatus=new chrome.cast.ReceiverDisplayStatus(a,[]),b.displayStatus.showStop=!0):b.displayStatus=null;chrome.cast.setReceiverDisplayStatus(b,(0,_.wg)(function(){this.info("Updated receiver status for "+b.friendlyName+": "+a)},this),(0,_.wg)(function(){g0(this,"Failed to update receiver status for: "+b.friendlyName)},this))};
gZ.prototype.disposeInternal=function(){this.setDisplayStatus("");gZ.superClass_.disposeInternal.call(this)};var h0=function(a,b,c){gZ.call(this,a,b,"CastSession");var d=this;this.config_=c;this.JSC$17353_session_=null;this.JSC$17353_boundSessionUpdate_=(0,_.wg)(this.JSC$17355_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.wg)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.dj(function(){lLc(d,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17353_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17353_isInitLoungeToken_=!1;this.JSC$17353_lastLoungeTokenRefreshError_="unknown"};
_.z(h0,gZ);_.f=h0.prototype;
_.f.setCastSession=function(a){if(this.JSC$17353_session_){if(this.JSC$17353_session_==a)return;g0(this,"Overriding cast session with new session object");mLc(this);this.JSC$17353_isInitLoungeToken_=!1;this.JSC$17353_lastLoungeTokenRefreshError_="unknown";this.JSC$17353_session_.removeUpdateListener(this.JSC$17353_boundSessionUpdate_);this.JSC$17353_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17353_session_=a;this.JSC$17353_session_.addUpdateListener(this.JSC$17353_boundSessionUpdate_);this.JSC$17353_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);nLc(this,"getMdxSessionStatus")};
_.f.launchWithParams=function(a){this.info("launchWithParams no-op for Cast: "+(0,_.Oz)(a))};
_.f.stop=function(){if(this.JSC$17353_session_)this.JSC$17353_session_.stop((0,_.wg)(function(){this.onSessionStopped()},this),(0,_.wg)(function(){this.onSessionStopped(Error("Ok"))},this));
else this.onSessionStopped(Error("Pk"))};
_.f.setDisplayStatus=function(){};
_.f.disposeInternal=function(){this.info("disposeInternal");mLc(this);this.JSC$17353_session_&&(this.JSC$17353_session_.removeUpdateListener(this.JSC$17353_boundSessionUpdate_),this.JSC$17353_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17353_session_=null;gZ.prototype.disposeInternal.call(this)};
var pLc=function(a,b){_.fj(a.getLoungeTokenTimeoutKey_);a.getLoungeTokenTimeoutKey_=0;b==0?oLc(a):a.getLoungeTokenTimeoutKey_=_.dj(function(){oLc(a)},b)},oLc=function(a){nLc(a,"getLoungeToken");
_.fj(a.onLoungeTokenTimeoutKey_);a.onLoungeTokenTimeoutKey_=_.dj(function(){qLc(a,null)},3E4)},nLc=function(a,b){a.info("sendYoutubeMessage_: "+b+" "+(0,_.Oz)(void 0));
var c={};c.type=b;a.JSC$17353_session_?a.JSC$17353_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",c,function(){},(0,_.wg)(function(){g0(this,"Failed to send message: "+b+".")},a)):g0(a,"Sending yt message without session: "+(0,_.Oz)(c))};
h0.prototype.onYoutubeMessage_=function(a,b){if(!this.isDisposed())if(b)if(b=(0,_.zn)(b),_.Za(b))switch(a=""+b.type,b=b.data||{},this.info("onYoutubeMessage_: "+a+" "+(0,_.Oz)(b)),a){case "mdxSessionStatus":lLc(this,b);break;case "loungeToken":qLc(this,b);break;default:g0(this,"Unknown youtube message: "+a)}else g0(this,"Unable to parse message.");else g0(this,"No data in message.")};
var rLc=function(a,b){if(b)a.info("onConnectedScreenId_: Received screenId: "+b),a.screen_&&a.screen_.id==b||a.getScreen_(b,function(c){f0(a,c)},function(){return a.onSessionStopped()},5);
else a.onSessionStopped(Error("Qk"))},tLc=function(a,b,c){a.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(b));
var d=new TY(b);sLc(a,d,function(e){e?(a.JSC$17353_isInitLoungeToken_=!0,e0(a.JSC$17348_screenService_,d),f0(a,d),a.JSC$17353_lastLoungeTokenRefreshError_="unknown",pLc(a,c)):(_.Hi(Error("Rk`"+JSON.stringify(b))),a.onSessionStopped())},5)},lLc=function(a,b){_.fj(a.sessionStatusTimeoutKey_);
a.sessionStatusTimeoutKey_=0;if(b)a.config_.enableCastLoungeToken&&b.loungeToken?b.deviceId?a.screen_&&a.screen_.uuid==b.deviceId||(b.loungeTokenRefreshIntervalMs?tLc(a,{name:a.receiver_.friendlyName,screenId:b.screenId,loungeToken:b.loungeToken,dialId:b.deviceId,screenIdType:"shortLived"},b.loungeTokenRefreshIntervalMs):(_.Hi(Error("Tk`"+JSON.stringify(b))),rLc(a,b.screenId))):(_.Hi(Error("Sk`"+JSON.stringify(b))),rLc(a,b.screenId)):rLc(a,b.screenId);else a.onSessionStopped(Error("Qk"))},qLc=function(a,
b){_.fj(a.onLoungeTokenTimeoutKey_);
a.onLoungeTokenTimeoutKey_=0;var c=null;if(b)if(b.loungeToken){var d;((d=a.screen_)==null?void 0:d.token)==b.loungeToken&&(c="staleLoungeToken")}else c="missingLoungeToken";else c="noLoungeTokenResponse";c?(a.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(b)+", error: "+c)),a.JSC$17353_lastLoungeTokenRefreshError_=c,pLc(a,3E4)):(kLc(a,b.loungeToken),a.JSC$17353_isInitLoungeToken_=!1,a.JSC$17353_lastLoungeTokenRefreshError_="unknown",pLc(a,b.loungeTokenRefreshIntervalMs))};
h0.prototype.getScreen_=function(a,b,c,d){_.fj(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;eLc(this.JSC$17348_screenService_,this.receiver_.label,a,this.receiver_.friendlyName,(0,_.wg)(function(e){e?b(e):d>=0?(g0(this,"Screen "+a+" appears to be offline. "+d+" retries left."),this.getScreenTimeoutKey_=_.dj((0,_.wg)(this.getScreen_,this,a,b,c,d-1),300)):c(Error("Uk"))},this),c)};
var sLc=function(a,b,c,d){_.fj(a.JSC$17353_checkScreenAvailabilityTimeoutKey_);a.JSC$17353_checkScreenAvailabilityTimeoutKey_=0;gLc(a.JSC$17348_screenService_,b,function(e){e||d<0?c(e):a.JSC$17353_checkScreenAvailabilityTimeoutKey_=_.dj(function(){sLc(a,b,c,d-1)},300)})};
h0.prototype.JSC$17350_getCastSession=function(){return this.JSC$17353_session_};
h0.prototype.JSC$17355_onSessionUpdate_=function(a){this.isDisposed()||a||(g0(this,"Cast session died."),this.onSessionStopped())};
var mLc=function(a){_.fj(a.getScreenTimeoutKey_);a.getScreenTimeoutKey_=0;_.fj(a.JSC$17353_checkScreenAvailabilityTimeoutKey_);a.JSC$17353_checkScreenAvailabilityTimeoutKey_=0;_.fj(a.sessionStatusTimeoutKey_);a.sessionStatusTimeoutKey_=0;_.fj(a.onLoungeTokenTimeoutKey_);a.onLoungeTokenTimeoutKey_=0;_.fj(a.getLoungeTokenTimeoutKey_);a.getLoungeTokenTimeoutKey_=0};var i0=function(a,b,c,d){gZ.call(this,a,b,"DialSession");this.config_=d;this.JSC$17357_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17357_theme_=c;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17357_deferredLaunchDeadlineTimer_=NaN;this.JSC$17357_boundSessionUpdate_=(0,_.wg)(this.JSC$17359_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17357_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17357_isInitLoungeToken_=!1;this.JSC$17357_lastLoungeTokenRefreshError_="unknown"};
_.z(i0,gZ);i0.prototype.setCastSession=function(a){this.JSC$17357_session_=a;this.JSC$17357_session_.addUpdateListener(this.JSC$17357_boundSessionUpdate_)};
i0.prototype.launchWithParams=function(a){this.connectData_=a;this.deferredLaunch_()};
i0.prototype.stop=function(){uLc(this);if(this.JSC$17357_session_)this.JSC$17357_session_.stop((0,_.wg)(this.onSessionStopped,this,null),(0,_.wg)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
i0.prototype.disposeInternal=function(){uLc(this);this.JSC$17357_session_&&this.JSC$17357_session_.removeUpdateListener(this.JSC$17357_boundSessionUpdate_);this.JSC$17357_session_=null;gZ.prototype.disposeInternal.call(this)};
var vLc=function(a){var b;return!!(a.config_.enableDialLoungeToken&&((b=a.JSC$17357_session_)==null?0:b.getDialAppInfo))},wLc=function(a){a.cancelPolling_=a.JSC$17348_screenService_.JSC$17346_getScreenByPollingPairingCode(a.reversePairingCode_,a.receiver_.label,a.receiver_.friendlyName,vLc(a),function(b,c){a.cancelPolling_=function(){};
a.JSC$17357_isInitLoungeToken_=!0;f0(a,b);b.idType=="shortLived"&&c>0&&j0(a,c)},function(b){a.cancelPolling_=function(){};
a.onSessionStopped(b)})};
i0.prototype.JSC$17359_onSessionUpdate_=function(a){this.isDisposed()||a||(g0(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var xLc=function(a){var b={};b.pairingCode=a.reversePairingCode_;b.theme=a.JSC$17357_theme_;mwc()&&(b.env_useStageMdx=1);return _.ij(b)},yLc=function(a){return new Promise(function(b){a.reversePairingCode_=Yvc();
if(a.connectData_){var c=new chrome.cast.DialLaunchResponse(!0,xLc(a));b(c);wLc(a)}else a.deferredLaunch_=function(){_.fj(a.JSC$17357_deferredLaunchDeadlineTimer_);a.deferredLaunch_=function(){};
a.JSC$17357_deferredLaunchDeadlineTimer_=NaN;var d=new chrome.cast.DialLaunchResponse(!0,xLc(a));b(d);wLc(a)},a.JSC$17357_deferredLaunchDeadlineTimer_=_.dj(function(){a.deferredLaunch_()},100)})},ALc=function(a,b,c){a.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(b));
var d=new TY(b);return(new Promise(function(e){zLc(a,d,function(g){g?(a.JSC$17357_isInitLoungeToken_=!0,e0(a.JSC$17348_screenService_,d),f0(a,d),j0(a,c)):_.Hi(Error("Wk`"+JSON.stringify(b)));e(g)},5)})).then(function(e){return e?new chrome.cast.DialLaunchResponse(!1):yLc(a)})},BLc=function(a,b){var c=a.launchData_.receiver.label,d=a.receiver_.friendlyName;
return(new Promise(function(e){eLc(a.JSC$17348_screenService_,c,b,d,function(g){g&&g.token&&f0(a,g);e(g)},function(g){g0(a,"Failed to get DIAL screen: "+g);
e(null)})})).then(function(e){return e&&e.token?new chrome.cast.DialLaunchResponse(!1):yLc(a)})},zLc=function(a,b,c,d){_.fj(a.JSC$17357_checkScreenAvailabilityTimeoutKey_);
a.JSC$17357_checkScreenAvailabilityTimeoutKey_=0;gLc(a.JSC$17348_screenService_,b,function(e){e||d<0?c(e):a.JSC$17357_checkScreenAvailabilityTimeoutKey_=_.dj(function(){zLc(a,b,c,d-1)},300)})},j0=function(a,b){a.info("getDialAppInfoWithTimeout_ "+b);
vLc(a)&&(_.fj(a.getDialAppInfoTimeoutKey_),a.getDialAppInfoTimeoutKey_=0,b==0?CLc(a):a.getDialAppInfoTimeoutKey_=_.dj(function(){CLc(a)},b))},CLc=function(a){vLc(a)&&a.JSC$17357_session_.getDialAppInfo(function(b){a.info("getDialAppInfo dialLaunchData: "+JSON.stringify(b));
b=b.extraData||{};var c=null;if(b.loungeToken){var d;((d=a.screen_)==null?void 0:d.token)==b.loungeToken&&(c="staleLoungeToken")}else c="missingLoungeToken";c?(a.JSC$17357_lastLoungeTokenRefreshError_=c,j0(a,3E4)):(a.JSC$17357_isInitLoungeToken_=!1,a.JSC$17357_lastLoungeTokenRefreshError_="unknown",kLc(a,b.loungeToken),j0(a,b.loungeTokenRefreshIntervalMs))},function(b){a.info("getDialAppInfo error: "+b);
a.JSC$17357_lastLoungeTokenRefreshError_="noLoungeTokenResponse";j0(a,3E4)})},uLc=function(a){_.fj(a.JSC$17357_checkScreenAvailabilityTimeoutKey_);
a.JSC$17357_checkScreenAvailabilityTimeoutKey_=0;_.fj(a.getDialAppInfoTimeoutKey_);a.getDialAppInfoTimeoutKey_=0;a.cancelPolling_();a.cancelPolling_=function(){};
_.fj(a.JSC$17357_deferredLaunchDeadlineTimer_)};var k0=function(a,b){gZ.call(this,a,b,"ManualSession");this.JSC$17361_deferredLaunchDeadlineTimer_=_.dj((0,_.wg)(this.launchWithParams,this,null),150)};
_.z(k0,gZ);k0.prototype.stop=function(){this.onSessionStopped()};
k0.prototype.setCastSession=function(){};
k0.prototype.launchWithParams=function(){_.fj(this.JSC$17361_deferredLaunchDeadlineTimer_);this.JSC$17361_deferredLaunchDeadlineTimer_=NaN;var a=VY(this.JSC$17348_screenService_.getScreens(),this.receiver_.label);if(a)f0(this,a);else this.onSessionStopped(Error("Xk"))};
k0.prototype.disposeInternal=function(){_.fj(this.JSC$17361_deferredLaunchDeadlineTimer_);this.JSC$17361_deferredLaunchDeadlineTimer_=NaN;gZ.prototype.disposeInternal.call(this)};var kZ=function(a,b){_.kY.call(this);this.config_=b;this.JSC$17364_screenService_=a;this.JSC$17364_appId_=b.appId||"233637DE";this.JSC$17364_theme_=b.theme||"cl";this.disableDial_=b.disableCastApi||!1;this.forceMirroring_=b.forceMirroring||!1;this.JSC$17364_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.wg)(this.onReceiverAction_,this)};
_.z(kZ,_.kY);
kZ.prototype.init=function(a,b){chrome.cast.timeout.requestSession=3E4;var c=new chrome.cast.SessionRequest(this.JSC$17364_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.w("desktop_enable_cast_connect")&&(c.androidReceiverCompatible=!0);this.disableDial_||(c.dialRequest=new chrome.cast.DialRequest("YouTube"));var d=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;a=a||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var e=(0,_.wg)(this.onReceiverUpdated_,
this);c=new chrome.cast.ApiConfig(c,(0,_.wg)(this.onSessionEstablished_,this),e,d,a);c.customDialLaunchCallback=(0,_.wg)(this.onDialLaunchRequested_,this);chrome.cast.initialize(c,(0,_.wg)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),uwc(),this.JSC$17364_screenService_.subscribe("onlineScreenChange",(0,_.wg)(this.JSC$17366_onScreenChange_,this)),this.customReceivers_=DLc(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.wg)(function(g){this.warn_("Failed to set initial custom receivers: "+(0,_.Oz)(g))},this)),this.publish("yt-remote-cast2-availability-change",l0(this)),b(!0))},this),(0,_.wg)(function(g){this.warn_("Failed to initialize API: "+(0,_.Oz)(g));
b(!1)},this))};
kZ.prototype.setConnectedScreenStatus=function(a,b){m0("Setting connected screen ID: "+a+" -> "+b);if(this.JSC$17364_session_){var c=this.JSC$17364_session_.screen_;if(!a||c&&c.id!=a)m0("Unsetting old screen status: "+this.JSC$17364_session_.receiver_.friendlyName),n0(this,null)}if(a&&b){if(!this.JSC$17364_session_){a=VY(this.JSC$17364_screenService_.getScreens(),a);if(!a){m0("setConnectedScreenStatus: Unknown screen.");return}if(a.idType=="shortLived"){m0("setConnectedScreenStatus: Screen with id type to be short lived.");
return}c=ELc(this,a);c||(m0("setConnectedScreenStatus: Connected receiver not custom..."),c=new chrome.cast.Receiver(a.uuid?a.uuid:a.id,a.name),c.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(c),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.wg)(function(d){this.warn_("Failed to set initial custom receivers: "+(0,_.Oz)(d))},this)));
m0("setConnectedScreenStatus: new active receiver: "+c.friendlyName);n0(this,new k0(this.JSC$17364_screenService_,c),!0)}this.JSC$17364_session_.setDisplayStatus(b)}else m0("setConnectedScreenStatus: no screen.")};
var ELc=function(a,b){return b?_.Ka(a.customReceivers_,function(c){return UY(b,c.label)},a):null};
kZ.prototype.setLaunchParams=function(a){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17364_session_?this.JSC$17364_session_.launchWithParams(a):this.warn_("Setting connection data without a session")};
kZ.prototype.JSC$17366_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17364_session_?(this.JSC$17364_session_.stop(),n0(this,null)):m0("Stopping non-existing session")};
kZ.prototype.requestSession=function(){chrome.cast.requestSession((0,_.wg)(this.onSessionEstablished_,this),(0,_.wg)(this.onSessionRequestFailed_,this))};
kZ.prototype.disposeInternal=function(){this.JSC$17364_screenService_.unsubscribe("onlineScreenChange",(0,_.wg)(this.JSC$17366_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.Qa(_.Ji("yt.mdx.remote.debug.handlers_")||[],rwc);_.Xf(this.JSC$17364_session_);_.kY.prototype.disposeInternal.call(this)};
var m0=function(a){$Y("Controller",a)};
kZ.prototype.warn_=function(a){$Y("Controller",a)};
var rwc=function(a){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(a)},l0=function(a){return a.hasCastReceiver_||!!a.customReceivers_.length||!!a.JSC$17364_session_},n0=function(a,b,c){b!=a.JSC$17364_session_&&(_.Xf(a.JSC$17364_session_),(a.JSC$17364_session_=b)?(c?a.publish("yt-remote-cast2-receiver-resumed",b.receiver_):a.publish("yt-remote-cast2-receiver-selected",b.receiver_),b.subscribe("sessionScreen",(0,_.wg)(a.onSessionScreen_,a,b)),b.subscribe("sessionFailed",
function(){return FLc(a,b)}),b.screen_?a.publish("yt-remote-cast2-session-change",b.screen_):c&&a.JSC$17364_session_.launchWithParams(null)):a.publish("yt-remote-cast2-session-change",null))},FLc=function(a,b){a.JSC$17364_session_==b&&a.publish("yt-remote-cast2-session-failed")};
_.f=kZ.prototype;_.f.onSessionScreen_=function(a,b){this.JSC$17364_session_==a&&(b||n0(this,null),this.publish("yt-remote-cast2-session-change",b))};
_.f.onReceiverAction_=function(a,b){if(!this.isDisposed())if(a)switch(a.friendlyName=chrome.cast.unescape(a.friendlyName),m0("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17364_session_)if(this.JSC$17364_session_.receiver_.label!=a.label)m0("onReceiverAction_: Stopping active receiver: "+this.JSC$17364_session_.receiver_.friendlyName),this.JSC$17364_session_.stop();else{m0("onReceiverAction_: Casting to active receiver.");this.JSC$17364_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17364_session_.screen_);break}switch(a.receiverType){case chrome.cast.ReceiverType.CUSTOM:n0(this,new k0(this.JSC$17364_screenService_,a));break;case chrome.cast.ReceiverType.DIAL:n0(this,new i0(this.JSC$17364_screenService_,a,this.JSC$17364_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:n0(this,new h0(this.JSC$17364_screenService_,a,this.config_));break;default:this.warn_("Unknown receiver type: "+a.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17364_session_&&
this.JSC$17364_session_.receiver_.label==a.label?this.JSC$17364_session_.stop():this.warn_("Stopping receiver w/o session: "+a.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.f.onDialLaunchRequested_=function(a){if(this.isDisposed())return Promise.reject(Error("Yk"));var b=a.receiver;b.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+b.friendlyName),b.receiverType=chrome.cast.ReceiverType.DIAL);var c=this.JSC$17364_session_?this.JSC$17364_session_.receiver_:null;if(!c||c.label!=b.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+b.friendlyName),Promise.reject(Error("Zk"));if(c&&c.label==b.label&&c.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17364_session_.screen_)return m0("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17364_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);n0(this,new i0(this.JSC$17364_screenService_,b,this.JSC$17364_theme_,this.config_))}b=this.JSC$17364_session_;b.launchData_=a;b.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(a=b.launchData_.extraData||{},c=a.screenId||null,vLc(b)&&a.loungeToken?a.loungeTokenRefreshIntervalMs?a=ALc(b,{name:b.receiver_.friendlyName,screenId:a.screenId,loungeToken:a.loungeToken,dialId:b.launchData_.receiver.label,screenIdType:"shortLived"},a.loungeTokenRefreshIntervalMs):(_.Hi(Error("Vk`"+JSON.stringify(a))),a=BLc(b,c)):a=BLc(b,c)):a=yLc(b);return a};
_.f.onSessionEstablished_=function(a){var b=this;if(!this.isDisposed()&&!this.forceMirroring_){m0("New cast session ID: "+a.sessionId);var c=a.receiver;if(c.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17364_session_)if(c.receiverType==chrome.cast.ReceiverType.CAST)m0("Got resumed cast session before resumed mdx connection."),c.friendlyName=chrome.cast.unescape(c.friendlyName),n0(this,new h0(this.JSC$17364_screenService_,c,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var d=this.JSC$17364_session_.receiver_,e=VY(this.JSC$17364_screenService_.getScreens(),d.label);e&&UY(e,c.label)&&d.receiverType!=chrome.cast.ReceiverType.CAST&&c.receiverType==chrome.cast.ReceiverType.CAST&&(m0("onSessionEstablished_: manual to cast session change "+c.friendlyName),_.Xf(this.JSC$17364_session_),this.JSC$17364_session_=new h0(this.JSC$17364_screenService_,c,this.config_),this.JSC$17364_session_.subscribe("sessionScreen",(0,_.wg)(this.onSessionScreen_,this,this.JSC$17364_session_)),
this.JSC$17364_session_.subscribe("sessionFailed",function(){return FLc(b,b.JSC$17364_session_)}),this.JSC$17364_session_.launchWithParams(null));
this.JSC$17364_session_.setCastSession(a)}}};
_.f.JSC$17366_getCastSession=function(){return this.JSC$17364_session_?this.JSC$17364_session_.JSC$17350_getCastSession():null};
_.f.onSessionRequestFailed_=function(a){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.Oz)(a)),a.code!=chrome.cast.ErrorCode.CANCEL&&n0(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.f.onReceiverUpdated_=function(a){m0("Receiver availability updated: "+a);if(!this.isDisposed()){var b=l0(this);this.hasCastReceiver_=a==chrome.cast.ReceiverAvailability.AVAILABLE;l0(this)!=b&&this.publish("yt-remote-cast2-availability-change",l0(this))}};
var DLc=function(a){var b=a.JSC$17364_screenService_.JSC$17346_getOnlineScreens(),c=a.JSC$17364_session_&&a.JSC$17364_session_.receiver_;a=_.Df(b,function(d){c&&UY(d,c.label)&&(c=null);var e=d.uuid?d.uuid:d.id,g=ELc(this,d);g?(g.label=e,g.friendlyName=d.name):(g=new chrome.cast.Receiver(e,d.name),g.receiverType=chrome.cast.ReceiverType.CUSTOM);return g},a);
c&&(c.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(c=new chrome.cast.Receiver(c.label,c.friendlyName),c.receiverType=chrome.cast.ReceiverType.CUSTOM),a.push(c));return a};
kZ.prototype.JSC$17366_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=DLc(this),m0("Updating custom receivers: "+(0,_.Oz)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.wg)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",l0(this)))};
kZ.prototype.setLaunchParams=kZ.prototype.setLaunchParams;kZ.prototype.setConnectedScreenStatus=kZ.prototype.setConnectedScreenStatus;kZ.prototype.stopSession=kZ.prototype.JSC$17366_stopSession;kZ.prototype.getCastSession=kZ.prototype.JSC$17366_getCastSession;kZ.prototype.requestSession=kZ.prototype.requestSession;kZ.prototype.init=kZ.prototype.init;kZ.prototype.dispose=kZ.prototype.dispose;var Swc=[];var GLc=function(a){a.audioTrackId=null;a.trackData=null;a.playerState=-1;a.hasPrevious=!1;a.hasNext=!1;a.playerTime_=0;a.playerTimeAt_=_.rx();a.seekableStart_=0;a.seekableEnd_=0;a.duration_=0;a.loadedTime=0;a.liveIngestionTime_=NaN;a.isLive_=!1};
_.f=lZ.prototype;
_.f.reset=function(a){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;a&&(this.index=a.index,this.listId=a.listId,this.videoId=a.videoId,this.playerState=a.playerState,this.volume=a.volume,this.muted=a.muted,this.audioTrackId=a.audioTrackId,this.trackData=a.trackData,this.hasPrevious=a.hasPrevious,this.hasNext=a.hasNext,this.playerTime_=a.playerTime,this.playerTimeAt_=a.playerTimeAt,this.seekableStart_=a.seekableStart,this.seekableEnd_=a.seekableEnd,this.duration_=a.duration,this.loadedTime=
a.loadedTime,this.liveIngestionTime_=a.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.f.stopPlayer=function(){this.index=-1;this.videoId="";GLc(this)};
_.f.isPlaying=function(){return this.playerState==1};
_.f.isBuffering=function(){return this.playerState==3};
_.f.isAdPlaying=function(){return this.playerState==1081};
var o0=function(a,b){a.playerTime_=b;a.playerTimeAt_=_.rx()},HLc=function(a){switch(a.playerState){case 1:case 1081:return(_.rx()-a.playerTimeAt_)/1E3+a.playerTime_;
case -1E3:return 0}return a.playerTime_};
lZ.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.rx()-this.playerTimeAt_)/1E3:0):this.duration_};
var ILc=function(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&GLc(a)},JLc=function(a){var b={};
b.index=a.index;b.listId=a.listId;b.videoId=a.videoId;b.playerState=a.playerState;b.volume=a.volume;b.muted=a.muted;b.audioTrackId=a.audioTrackId;b.trackData=_.Cf.unsafeClone(a.trackData);b.hasPrevious=a.hasPrevious;b.hasNext=a.hasNext;b.playerTime=a.playerTime_;b.playerTimeAt=a.playerTimeAt_;b.seekableStart=a.seekableStart_;b.seekableEnd=a.seekableEnd_;b.duration=a.duration_;b.loadedTime=a.loadedTime;b.liveIngestionTime=a.liveIngestionTime_;return b};
lZ.prototype.clone=function(){return new lZ(JLc(this))};var p0=function(a,b){_.kY.call(this);var c=this;this.state_=0;this.connection_=a;this.contextSubscriptions_=[];this.actionQueue_=new Pvc;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.wg)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.wg)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.wg)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.wg)(this.onCloudviewAvailabilityChange_,this);var d=0;a?(d=a.getProxyState(),
d!=3&&(a.subscribe("proxyStateChange",this.setState_,this),KLc(this))):d=3;d!=0&&(b?this.setState_(d):_.dj(function(){c.setState_(d)},0));
(a=Wwc())&&LLc(this,a);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.z(p0,_.kY);p0.prototype.getState=function(){return this.state_};
p0.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
p0.prototype.reconnect=function(){this.connection_.reconnect()};
var q0=function(a){return new lZ(a.connection_.getPlayerContextData())};
_.f=p0.prototype;_.f.play=function(){r0(this)?(this.castMedia_?this.castMedia_.play(null,_.Gy,MLc(this,"play")):s0(this,"play"),NLc(this,1,HLc(q0(this))),this.publish("remotePlayerChange")):t0(this,this.play)};
_.f.pause=function(){r0(this)?(this.castMedia_?this.castMedia_.pause(null,_.Gy,MLc(this,"pause")):s0(this,"pause"),NLc(this,2,HLc(q0(this))),this.publish("remotePlayerChange")):t0(this,this.pause)};
_.f.seekTo=function(a){if(r0(this)){if(this.castMedia_){var b=q0(this),c=new chrome.cast.media.SeekRequest;c.currentTime=a;b.isPlaying()||b.isBuffering()?c.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:c.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(c,_.Gy,MLc(this,"seekTo",{newTime:a}))}else s0(this,"seekTo",{newTime:a});NLc(this,3,a);this.publish("remotePlayerChange")}else t0(this,_.xo(this.seekTo,a))};
_.f.stop=function(){if(r0(this)){this.castMedia_?this.castMedia_.stop(null,_.Gy,MLc(this,"stopVideo")):s0(this,"stopVideo");var a=q0(this);a.stopPlayer();u0(this,a);this.publish("remotePlayerChange")}else t0(this,this.stop)};
_.f.setVolume=function(a,b){if(r0(this)){var c=q0(this);if(this.castSession_){if(c.volume!=a){var d=Math.round(a)/100;this.castSession_.setReceiverVolumeLevel(d,(0,_.wg)(function(){aZ("set receiver volume: "+d)},this),(0,_.wg)(function(){this.warn_("failed to set receiver volume.")},this))}c.muted!=b&&this.castSession_.setReceiverMuted(b,(0,_.wg)(function(){aZ("set receiver muted: "+b)},this),(0,_.wg)(function(){this.warn_("failed to set receiver muted.")},this))}else{var e={volume:a,
muted:b};c.volume!=-1&&(e.delta=a-c.volume);s0(this,"setVolume",e)}c.muted=b;c.volume=a;u0(this,c)}else t0(this,_.xo(this.setVolume,a,b))};
_.f.setAudioTrack=function(a,b){r0(this)?(b=b.getLanguageInfo().getId(),s0(this,"setAudioTrack",{videoId:a,audioTrackId:b}),a=q0(this),a.audioTrackId=b,u0(this,a)):t0(this,_.xo(this.setAudioTrack,a,b))};
_.f.addVideo=function(a){r0(this)?s0(this,"addVideo",{videoId:a}):t0(this,_.xo(this.addVideo,a))};
_.f.addPlaylist=function(a){r0(this)?s0(this,"addVideos",{listId:a}):t0(this,_.xo(this.addPlaylist,a))};
_.f.addVideos=function(a){a.length==0?this.warn_("Ignore add videos request due to empty list"):r0(this)?s0(this,"addVideos",{videoIds:a.join(",")}):t0(this,_.xo(this.addVideos,a))};
_.f.JSC$17376_removeVideo=function(a){r0(this)?s0(this,"removeVideo",{videoId:a}):t0(this,_.xo(this.JSC$17376_removeVideo,a))};
_.f.JSC$17376_insertVideo=function(a){r0(this)?s0(this,"insertVideo",{videoId:a}):t0(this,_.xo(this.JSC$17376_insertVideo,a))};
_.f.playVideo=function(a,b,c,d,e,g,k){d=d===void 0?null:d;e=e===void 0?null:e;g=g===void 0?null:g;k=k===void 0?null:k;var m=q0(this),n={videoId:a};c!==void 0&&(n.currentIndex=c);ILc(m,a,c||0);b!==void 0&&(o0(m,b),n.currentTime=b);d&&(n.listId=d);e&&(n.playerParams=e);g&&(n.clickTrackingParams=g);k&&(n.locationInfo=(0,_.Oz)(k));s0(this,"setPlaylist",n);d||u0(this,m)};
_.f.nextVideo=function(a,b){if(r0(this)){if(a&&b){var c=q0(this);ILc(c,a,b);u0(this,c)}s0(this,"next")}else t0(this,_.xo(this.nextVideo,a,b))};
_.f.clearPlaylist=function(){if(r0(this)){s0(this,"clearPlaylist");var a=q0(this);a.reset();u0(this,a);this.publish("remotePlayerChange")}else t0(this,this.clearPlaylist)};
_.f.dispose=function(){if(this.state_!=3){var a=this.state_;this.state_=3;this.publish("proxyStateChange",a,this.state_)}_.kY.prototype.dispose.call(this)};
_.f.disposeInternal=function(){OLc(this);this.connection_=null;this.actionQueue_.clear();LLc(this,null);_.kY.prototype.disposeInternal.call(this)};
var KLc=function(a){_.Mi("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(b){this.contextSubscriptions_.push(this.connection_.subscribe(b,_.xo(this.onProxyEvent_,b),this))},a)},OLc=function(a){_.Mi(a.contextSubscriptions_,function(b){this.connection_.unsubscribeByKey(b)},a);
a.contextSubscriptions_.length=0},r0=function(a){return a.getState()==1},t0=function(a,b){a.actionQueue_.getCount()<50&&a.actionQueue_.enqueue(b)},NLc=function(a,b,c){var d=q0(a);
o0(d,c);d.playerState!=-1E3&&(d.playerState=b);u0(a,d)},s0=function(a,b,c){a.connection_.sendMessage(b,c)},u0=function(a,b){OLc(a);
a.connection_.setPlayerContextData(JLc(b));KLc(a)};
p0.prototype.setState_=function(a){if((a!=this.state_||a==2)&&this.state_!=3&&a!=0){var b=this.state_;this.state_=a;this.publish("proxyStateChange",b,a);if(a==1)for(;!this.actionQueue_.isEmpty();)a=this.actionQueue_,$Ic(a),a.front_.pop().apply(this);else a==3&&this.dispose()}};
p0.prototype.onProxyEvent_=function(a,b){this.publish(a,b)};
var LLc=function(a,b){a.castSession_&&(a.castSession_.removeUpdateListener(a.boundCastStatusListener_),a.castSession_.removeMediaListener(a.boundCastMediaListener_),a.onCastMediaChange_(null));a.castSession_=b;if(a.castSession_&&(aZ("Setting cast session: "+a.castSession_.sessionId),a.castSession_.addUpdateListener(a.boundCastStatusListener_),a.castSession_.addMediaListener(a.boundCastMediaListener_),a.castSession_.media.length))a.onCastMediaChange_(a.castSession_.media[0])};
p0.prototype.onCastStatusUpdate_=function(a){if(!a)this.onCastMediaChange_(null),LLc(this,null);else if(this.castSession_.receiver.volume){a=this.castSession_.receiver.volume;var b=q0(this),c=Math.round(100*a.level||0);if(b.volume!=c||b.muted!=a.muted)aZ("Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=c,b.muted=!!a.muted,u0(this,b)}};
p0.prototype.onCastMediaChange_=function(a){aZ("Cast media: "+!!a);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=a)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),PLc(this),this.publish("remotePlayerChange")};
var PLc=function(a){var b=a.castMedia_.media,c=a.castMedia_.customData;if(b&&c){var d=q0(a);b.contentId!=d.videoId&&aZ("Cast changing video to: "+b.contentId);d.videoId=b.contentId;d.playerState=c.playerState;o0(d,a.castMedia_.getEstimatedTime());u0(a,d)}else aZ("No cast media video. Ignoring state update.")};
p0.prototype.onCastMediaUpdate_=function(a){if(a)PLc(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
p0.prototype.onCloudviewAvailabilityChange_=function(){var a=Wwc();a&&LLc(this,a)};
p0.prototype.warn_=function(a){$Y("CP",a)};
var MLc=function(a,b,c){return(0,_.wg)(function(d){this.warn_("Failed to "+b+" with cast v2 channel. Error code: "+d.code);d.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+b+" using MDx browser channel."),s0(this,b,c))},a)};var w0=function(a,b,c,d){d=d===void 0?!1:d;_.kY.call(this);var e=this;this.connectTimerId_=NaN;this.reconnecting_=!1;this.idleDisconnectTimerId_=this.clientSetVideoTimerId_=this.playingSyncTimerId_=this.reconnectedCheckScreenTimeout_=NaN;this.listeners_=[];this.autoplayMode_=this.autoplayVideoId_=this.clientVideoId_=this.playerContext_=this.channelService=null;this.JSC$17383_http_=a;this.enableConnectWithInitialState_=d;this.listeners_.push(_.Vk(window,"beforeunload",function(){e.JSC$17386_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new lZ;this.currentScreenId_=b.id;this.currentScreenIdType_=b.idType;this.channelService=qwc(this.JSC$17383_http_,c,this.JSC$17386_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){QLc(e)});
this.channelService.listen("channelClosed",function(){v0("Channel closed");isNaN(e.connectTimerId_)?WY(!0):WY();e.dispose()});
this.channelService.listen("channelError",function(g){WY();isNaN(e.getReconnectTimeout_())?(g==1&&e.currentScreenIdType_=="shortLived"&&e.publish("browserChannelAuthError",g),v0("Channel error: "+g+" without reconnection"),e.dispose()):(e.reconnecting_=!0,v0("Channel error: "+g+" with reconnection in "+e.getReconnectTimeout_()+" ms"),RLc(e,2))});
this.channelService.listen("channelMessage",function(g){SLc(e,g)});
this.channelService.setLoungeToken(b.token);this.subscribe("remoteQueueChange",function(){var g=e.playerContext_.videoId;cwc()&&_.uG("yt-remote-session-video-id",g)})};
_.z(w0,_.kY);
w0.prototype.connect=function(a,b){if(b){var c=b.listId,d=b.videoId,e=b.videoIds,g=b.playerParams,k=b.clickTrackingParams,m=b.index,n={videoId:d},r=b.currentTime,t=b.locationInfo;b=b.loopMode;r!==void 0&&(n.currentTime=r<=5?0:r);g&&(n.playerParams=g);t&&(n.locationInfo=t);k&&(n.clickTrackingParams=k);c&&(n.listId=c);e&&e.length>0&&(n.videoIds=e.join(","));m!==void 0&&(n.currentIndex=m);this.enableConnectWithInitialState_&&(n.loopMode=b||"LOOP_MODE_OFF");c&&(this.playerContext_.listId=c);this.playerContext_.videoId=
d;this.playerContext_.index=m||0;this.playerContext_.state=3;o0(this.playerContext_,r);this.autoplayMode_="UNSUPPORTED";c=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";v0("Connecting with "+c+" and params: "+(0,_.Oz)(n));this.channelService.connect({method:c,params:(0,_.Oz)(n)},a,hwc())}else v0("Connecting without params"),this.channelService.connect({},a,hwc());TLc(this)};
w0.prototype.setLoungeToken=function(a){this.channelService.setLoungeToken(a)};
w0.prototype.dispose=function(){this.isDisposed()||(_.Rj("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),RLc(this,3));_.kY.prototype.dispose.call(this)};
w0.prototype.disposeInternal=function(){ULc(this);VLc(this);WLc(this);_.fj(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.fj(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.Fsa(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.kY.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var XLc=function(a){return _.Ka(a.connectedDevices_,function(b){return b.type=="LOUNGE_SCREEN"})},v0=function(a){$Y("conn",a)},RLc=function(a,b){a.publish("proxyStateChange",b)},TLc=function(a){a.connectTimerId_=_.dj(function(){v0("Connecting timeout");
a.JSC$17386_disconnect_(1)},2E4)},ULc=function(a){_.fj(a.connectTimerId_);
a.connectTimerId_=NaN},WLc=function(a){_.fj(a.reconnectedCheckScreenTimeout_);
a.reconnectedCheckScreenTimeout_=NaN},YLc=function(a){VLc(a);
a.playingSyncTimerId_=_.dj(function(){x0(a,"getNowPlaying")},2E4)},VLc=function(a){_.fj(a.playingSyncTimerId_);
a.playingSyncTimerId_=NaN},QLc=function(a){v0("Channel opened");
a.reconnecting_&&(a.reconnecting_=!1,WLc(a),a.reconnectedCheckScreenTimeout_=_.dj(function(){v0("Timing out waiting for a screen.");a.JSC$17386_disconnect_(1)},15E3))},$Lc=function(a,b){var c=null;
if(b){var d=XLc(a);d&&(c={clientName:d.clientName,deviceMake:d.brand,deviceModel:d.model,osVersion:d.osVersion})}_.Rj("yt.mdx.remote.remoteClient_",c);b&&(ULc(a),WLc(a));c=a.channelService.isChannelOpened()&&isNaN(a.connectTimerId_);b==c?b&&(RLc(a,1),x0(a,"getSubtitlesTrack")):b?(a.getOtherConnectedRemoteId_()&&a.playerContext_.reset(),RLc(a,1),x0(a,"getNowPlaying"),ZLc(a)):a.JSC$17386_disconnect_(1)},aMc=function(a,b){var c=b.params.videoId;
delete b.params.videoId;c==a.playerContext_.videoId&&(_.Cf.isEmpty(b.params)?a.playerContext_.trackData=null:a.playerContext_.trackData=b.params,a.publish("remotePlayerChange"))},bMc=function(a,b,c){var d=b.params.videoId||b.params.video_id,e=parseInt(b.params.currentIndex,10);
a.playerContext_.listId=b.params.listId||a.playerContext_.listId;ILc(a.playerContext_,d,e);a.publish("remoteQueueChange",c)},cMc=function(a,b){b.params=b.params||{};
bMc(a,b,"NOW_PLAYING_MAY_CHANGE");a.onStateChange_(b);a.publish("autoplayDismissed")};
w0.prototype.onStateChange_=function(a){var b=parseInt(a.params.currentTime||a.params.current_time,10);o0(this.playerContext_,isNaN(b)?0:b);b=parseInt(a.params.state,10);b=isNaN(b)?-1:b;b==-1&&this.playerContext_.playerState==-1E3&&(b=-1E3);this.playerContext_.playerState=b;b=Number(a.params.loadedTime);this.playerContext_.loadedTime=isNaN(b)?0:b;b=Number(a.params.duration);this.playerContext_.duration_=isNaN(b)?0:b;b=this.playerContext_;var c=Number(a.params.liveIngestionTime);b.liveIngestionTime_=
c;b.isLive_=isNaN(c)?!1:!0;b=this.playerContext_;c=Number(a.params.seekableStartTime);a=Number(a.params.seekableEndTime);b.seekableStart_=isNaN(c)?0:c;b.seekableEnd_=isNaN(a)?0:a;this.playerContext_.playerState==1?YLc(this):VLc(this);this.publish("remotePlayerChange")};
w0.prototype.onAdStateChange_=function(a){if(this.playerContext_.playerState!=-1E3){var b=1085;switch(parseInt(a.params.adState,10)){case 1:b=1081;break;case 2:b=1084;break;case 0:b=1083}this.playerContext_.playerState=b;a=parseInt(a.params.currentTime,10);o0(this.playerContext_,isNaN(a)?0:a);this.publish("remotePlayerChange")}};
var dMc=function(a,b){var c=b.params.muted=="true";a.playerContext_.volume=parseInt(b.params.volume,10);a.playerContext_.muted=c;a.publish("remotePlayerChange")},eMc=function(a,b){a.autoplayVideoId_=b.params.videoId;
a.publish("nowAutoplaying",parseInt(b.params.timeout,10))},fMc=function(a,b){a.autoplayVideoId_=b.params.videoId||null;
a.publish("autoplayUpNext",a.autoplayVideoId_)},gMc=function(a,b){a.autoplayMode_=b.params.autoplayMode;
a.publish("autoplayModeChange",a.autoplayMode_);a.autoplayMode_=="DISABLED"&&a.publish("autoplayDismissed")},hMc=function(a,b){var c=b.params.hasNext=="true";
a.playerContext_.hasPrevious=b.params.hasPrevious=="true";a.playerContext_.hasNext=c;a.publish("previousNextChange")};
w0.prototype.isCapabilitySupportedOnConnectedDevices_=function(a){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var b=_.h(this.connectedDevices_),c=b.next();!c.done;c=b.next())if(!c.value.capabilities.has(a))return!1;return!0};
var SLc=function(a,b){b=b.message;b.params?v0("Received: action="+b.action+", params="+(0,_.Oz)(b.params)):v0("Received: action="+b.action+" {}");switch(b.action){case "loungeStatus":b=(0,_.zn)(b.params.devices);a.connectedDevices_=_.Df(b,function(d){return new c0(d)});
b=!!_.Ka(a.connectedDevices_,function(d){return d.type=="LOUNGE_SCREEN"});
$Lc(a,b);b=a.isCapabilitySupportedOnConnectedDevices_("mlm");a.publish("multiStateLoopEnabled",b);break;case "loungeScreenDisconnected":vsc(a.connectedDevices_,function(d){return d.type=="LOUNGE_SCREEN"});
$Lc(a,!1);break;case "remoteConnected":var c=new c0((0,_.zn)(b.params.device));_.Ka(a.connectedDevices_,function(d){return d.equals(c)})||_.vaa(a.connectedDevices_,c);
break;case "remoteDisconnected":c=new c0((0,_.zn)(b.params.device));vsc(a.connectedDevices_,function(d){return d.equals(c)});
break;case "gracefulDisconnect":break;case "playlistModified":bMc(a,b,"QUEUE_MODIFIED");break;case "nowPlaying":cMc(a,b);break;case "onStateChange":a.onStateChange_(b);break;case "onAdStateChange":a.onAdStateChange_(b);break;case "onVolumeChanged":dMc(a,b);break;case "onSubtitlesTrackChanged":aMc(a,b);break;case "nowAutoplaying":eMc(a,b);break;case "autoplayDismissed":a.publish("autoplayDismissed");break;case "autoplayUpNext":fMc(a,b);break;case "onAutoplayModeChanged":gMc(a,b);break;case "onHasPreviousNextChanged":hMc(a,
b);break;case "requestAssistedSignIn":a.publish("assistedSignInRequested",b.params.authCode);break;case "onLoopModeChanged":a.publish("loopModeChange",b.params.loopMode);break;default:v0("Unrecognized action: "+b.action)}};
_.f=w0.prototype;_.f.getProxyState_=function(){var a=3;this.isDisposed()||(a=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(a=1):a=2);return a};
_.f.JSC$17386_disconnect_=function(a){v0("Disconnecting with "+a);_.Rj("yt.mdx.remote.remoteClient_",null);ULc(this);this.publish("beforeDisconnect",a);a==1&&WY();this.channelService.disconnect(a);this.dispose()};
_.f.getPlayerContextData_=function(){var a=this.playerContext_;this.clientVideoId_&&(a=this.playerContext_.clone(),ILc(a,this.clientVideoId_,a.index));return JLc(a)};
_.f.setPlayerContextData_=function(a){var b=this,c=new lZ(a);c.videoId&&c.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=c.videoId,_.fj(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.dj(function(){if(b.clientVideoId_){var e=b.clientVideoId_;b.clientVideoId_=null;b.playerContext_.videoId!=e&&x0(b,"getNowPlaying")}},5E3));
var d=[];this.playerContext_.listId==c.listId&&this.playerContext_.videoId==c.videoId&&this.playerContext_.index==c.index||d.push("remoteQueueChange");this.playerContext_.playerState==c.playerState&&this.playerContext_.volume==c.volume&&this.playerContext_.muted==c.muted&&HLc(this.playerContext_)==HLc(c)&&(0,_.Oz)(this.playerContext_.trackData)==(0,_.Oz)(c.trackData)||d.push("remotePlayerChange");this.playerContext_.reset(a);_.Mi(d,function(e){this.publish(e)},this)};
_.f.getOtherConnectedRemoteId_=function(){var a=this.channelService.getDeviceId(),b=_.Ka(this.connectedDevices_,function(c){return c.type=="REMOTE_CONTROL"&&c.id!=a});
return b?b.id:""};
_.f.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.f.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.f.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.f.JSC$17386_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var ZLc=function(a){_.fj(a.idleDisconnectTimerId_);a.idleDisconnectTimerId_=_.dj(function(){a.JSC$17386_disconnect_(1)},864E5)},x0=function(a,b,c){c?v0("Sending: action="+b+", params="+(0,_.Oz)(c)):v0("Sending: action="+b);
a.channelService.sendMessage(b,c)};
w0.prototype.sendMessageWithUserAction_=function(a,b){x0(this,a,b);ZLc(this)};
w0.prototype.JSC$17386_getXsrfToken_=function(){var a=_.lj.get("SAPISID","")||_.lj.get("__Secure-1PAPISID",void 0)||"",b=_.lj.get("__Secure-3PAPISID","")||"";if(!a&&!b)return"";a=_.Bc(_.ug(a),2);b=_.Bc(_.ug(b),2);return _.Bc(_.ug(","+a+","+b),2)};
w0.prototype.subscribe=w0.prototype.subscribe;w0.prototype.unsubscribeByKey=w0.prototype.unsubscribeByKey;w0.prototype.getProxyState=w0.prototype.getProxyState_;w0.prototype.disconnect=w0.prototype.JSC$17386_disconnect_;w0.prototype.getPlayerContextData=w0.prototype.getPlayerContextData_;w0.prototype.setPlayerContextData=w0.prototype.setPlayerContextData_;w0.prototype.getOtherConnectedRemoteId=w0.prototype.getOtherConnectedRemoteId_;w0.prototype.getReconnectTimeout=w0.prototype.getReconnectTimeout_;
w0.prototype.getAutoplayMode=w0.prototype.getAutoplayMode_;w0.prototype.getAutoplayVideoId=w0.prototype.getAutoplayVideoId_;w0.prototype.reconnect=w0.prototype.JSC$17386_reconnect_;w0.prototype.sendMessage=w0.prototype.sendMessageWithUserAction_;w0.prototype.getXsrfToken=w0.prototype.JSC$17386_getXsrfToken_;w0.prototype.isCapabilitySupportedOnConnectedDevices=w0.prototype.isCapabilitySupportedOnConnectedDevices_;var iMc=function(a){cZ.call(this,"ScreenServiceProxy");this.instance_=a;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.wg)(this.JSC$17389_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.wg)(this.onOnlineScreenChange_,this)))};
_.z(iMc,cZ);_.f=iMc.prototype;_.f.getScreens=function(a){return this.instance_.$_gs(a)};
_.f.contains=function(a){return!!this.instance_.$_c(a)};
_.f.get=function(a){return this.instance_.$_g(a)};
_.f.start=function(){this.instance_.$_st()};
_.f.add=function(a,b,c){this.instance_.$_a(a,b,c)};
_.f.remove=function(a,b,c){this.instance_.$_r(a,b,c)};
_.f.updateName=function(a,b,c,d){this.instance_.$_un(a,b,c,d)};
_.f.disposeInternal=function(){for(var a=this.subscriptionKeys_.length,b=0;b<a;++b)this.instance_.$_ubk(this.subscriptionKeys_[b]);this.subscriptionKeys_.length=0;this.instance_=null;cZ.prototype.disposeInternal.call(this)};
_.f.JSC$17389_onScreenChange_=function(){this.publish("screenChange")};
_.f.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
fZ.prototype.$_st=fZ.prototype.start;fZ.prototype.$_gspc=fZ.prototype.JSC$17346_getScreenByPairingCode;fZ.prototype.$_gsppc=fZ.prototype.JSC$17346_getScreenByPollingPairingCode;fZ.prototype.$_c=fZ.prototype.contains;fZ.prototype.$_g=fZ.prototype.get;fZ.prototype.$_a=fZ.prototype.add;fZ.prototype.$_un=fZ.prototype.updateName;fZ.prototype.$_r=fZ.prototype.remove;fZ.prototype.$_gs=fZ.prototype.getScreens;fZ.prototype.$_gos=fZ.prototype.JSC$17346_getOnlineScreens;fZ.prototype.$_s=fZ.prototype.subscribe;
fZ.prototype.$_ubk=fZ.prototype.unsubscribeByKey;var pMc=function(a){lwc();if(!XY||!XY.get("yt-remote-disable-remote-module-for-dev")){a=_.Fi("MDX_CONFIG")||a;FCc();ewc();y0||(y0=new SY(a?a.loungeApiHost:void 0),mwc()&&(y0.basePath="/api/loungedev"));z0||(z0=_.Ji("yt.mdx.remote.deferredProxies_")||[],_.Rj("yt.mdx.remote.deferredProxies_",z0));jMc();var b=A0();if(!b){var c=new fZ(y0,a?a.disableAutomaticScreenCache||!1:!1);_.Rj("yt.mdx.remote.screenService_",c);b=A0();var d={};a&&(d={appId:a.appId,disableDial:a.disableDial,theme:a.theme,loadCastApiSetupScript:a.loadCastApiSetupScript,
disableCastApi:a.disableCastApi,enableDialLoungeToken:a.enableDialLoungeToken,enableCastLoungeToken:a.enableCastLoungeToken,forceMirroring:a.forceMirroring});_.Rj("yt.mdx.remote.enableConnectWithInitialState_",a?a.enableConnectWithInitialState||!1:!1);Qwc(c,function(g){g?B0()&&Ywc(B0(),"YouTube TV"):c.subscribe("onlineScreenChange",function(){rY("yt-remote-receiver-availability-change")})},d)}if(a&&!_.Ji("yt.mdx.remote.initialized_")){_.Rj("yt.mdx.remote.initialized_",!0);
C0("Initializing: "+(0,_.Oz)(a));D0.push(_.bl("yt-remote-cast2-api-ready",function(){rY("yt-remote-api-ready")}));
D0.push(_.bl("yt-remote-cast2-availability-change",function(){rY("yt-remote-receiver-availability-change")}));
D0.push(_.bl("yt-remote-cast2-receiver-selected",function(){kMc();rY("yt-remote-auto-connect","cast-selector-receiver")}));
D0.push(_.bl("yt-remote-cast2-receiver-resumed",function(){rY("yt-remote-receiver-resumed","cast-selector-receiver")}));
D0.push(_.bl("yt-remote-cast2-session-change",lMc));D0.push(_.bl("yt-remote-connection-change",function(g){g?Ywc(B0(),"YouTube TV"):mMc()||(Ywc(null,null),Vwc())}));
D0.push(_.bl("yt-remote-cast2-session-failed",function(){rY("yt-remote-connection-failed")}));
d=nMc();a.isAuto&&(d.id+="#dial");var e=a.capabilities||[];_.w("desktop_enable_autoplay")&&e.push("atp");e.length>0&&(d.capabilities=e);d.name=a.device;d.app=a.app;(a=a.theme)&&(d.theme=a);C0(" -- with channel params: "+(0,_.Oz)(d));d?(_.uG("yt-remote-session-app",d.app),_.uG("yt-remote-session-name",d.name)):(_.wG("yt-remote-session-app"),_.wG("yt-remote-session-name"));_.Rj("yt.mdx.remote.channelParams_",d);b.start();B0()||oMc()}}},rMc=function(){var a=A0().instance_.$_gos();
var b=qMc();b&&E0()&&($vc(a,b)||a.push(b));return Zvc(a)},sMc=function(){var a=rMc(),b=qMc();
b||(b=mMc());return _.Ka(a,function(c){return b&&UY(b,c.key)?!0:!1})},qMc=function(){var a=B0();
if(!a)return null;var b=A0().getScreens();return VY(b,a)},lMc=function(a){C0("remote.onCastSessionChange_: "+Zwc(a));
if(a){var b=qMc();b&&b.id==a.id?(Ywc(b.id,"YouTube TV"),a.idType=="shortLived"&&(a=a.token)&&(b=E0())&&b.setLoungeToken(a)):(b&&tMc(),uMc(a,1))}else E0()&&tMc()},tMc=function(){Xwc()?jZ().stopSession():iZ("stopSession called before API ready.");
var a=E0();a&&(a.disconnect(1),vMc(null))},wMc=function(){var a=E0();
return a&&a.getProxyState()!=3?new p0(E0(),void 0):null},C0=function(a){$Y("remote",a)},A0=function(){if(!xMc){var a=_.Ji("yt.mdx.remote.screenService_");
xMc=a?new iMc(a):null}return xMc},B0=function(){return _.Ji("yt.mdx.remote.currentScreenId_")},yMc=function(a){_.Rj("yt.mdx.remote.currentScreenId_",a)},kMc=function(){_.Rj("yt.mdx.remote.connectData_",null)},E0=function(){return _.Ji("yt.mdx.remote.connection_")},vMc=function(a){var b=E0();
kMc();a||yMc("");_.Rj("yt.mdx.remote.connection_",a);z0&&(_.Mi(z0,function(c){c(a)}),z0.length=0);
b&&!a?rY("yt-remote-connection-change",!1):!b&&a&&rY("yt-remote-connection-change",!0)},mMc=function(){var a=cwc();
if(!a)return null;var b=A0();if(!b)return null;b=b.getScreens();return VY(b,a)},uMc=function(a,b){yMc(a.id);
a=new w0(y0,a,nMc(),_.Ji("yt.mdx.remote.enableConnectWithInitialState_")||!1);a.connect(b,_.Ji("yt.mdx.remote.connectData_"));a.subscribe("beforeDisconnect",function(c){rY("yt-remote-before-disconnect",c)});
a.subscribe("beforeDispose",function(){E0()&&vMc(null)});
a.subscribe("browserChannelAuthError",function(){var c=qMc();c&&c.idType=="shortLived"&&(Xwc()?jZ().handleBrowserChannelAuthError():iZ("refreshLoungeToken called before API ready."))});
vMc(a)},oMc=function(){var a=mMc();
a?(C0("Resume connection to: "+Zwc(a)),uMc(a,0)):(WY(),Vwc(),C0("Skipping connecting because no session screen found."))},y0=null,z0=null,xMc=null,jMc=function(){var a=nMc();
if(_.Cf.isEmpty(a)){a=bwc();var b=_.vG("yt-remote-session-name")||"",c=_.vG("yt-remote-session-app")||"";a={device:"REMOTE_CONTROL",id:a,name:b,app:c,mdxVersion:3};a.authuser=String(_.Fi("SESSION_INDEX","0"));(b=_.Fi("DELEGATED_SESSION_ID"))&&(a.pageId=String(b));_.Rj("yt.mdx.remote.channelParams_",a)}},nMc=function(){return _.Ji("yt.mdx.remote.channelParams_")||{}},D0=[];var zMc=new _.Ek("yt-menu"),AMc=function(){},CMc=function(a,b,c){a=b=="right-click"?c.rightClickMenuPopupHint:c.menuPopupHint;
if(!(BMc(b)>10))return b=b||"default",zMc.set(b+"-impression",BMc(b)+1),a},BMc=function(a){return parseInt(zMc.get((a||"default")+"-impression")||0,10)};
_.qx(AMc);var DMc=function(){this.contexts_=new WeakMap;this.JSC$17395_networkService_=this.activeContext_=null},EMc=function(a,b,c){var d=a.contexts_.get(b);
d||(d=new ECc(a.JSC$17395_networkService_),a.contexts_.set(b,d));a.activeContext_=d;c&&a.activeContext_.reset();a.activeContext_.start();return a.activeContext_};var F0=function(){};
F0.prototype.enqueue=function(){var a=this,b;return _.l(function(c){if(a.isCounterfactual())return(b=a.getCounterfactualData())&&a.shouldLogCounterfactualImpression()&&a.sendImpressionEndpoints(b),c.return();a.doEnqueue();_.ue(c)})};
F0.prototype.sendImpressionEndpoints=function(a){_.Ll.getInstance().triggerOptionalAction("yt-service-request",{},a[0])};var G0=function(a,b){this.renderer=a;this.page=b};
_.z(G0,F0);G0.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
G0.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
G0.prototype.shouldLogCounterfactualImpression=function(){return!0};
G0.prototype.doEnqueue=function(){var a=_.$t(this.page);a&&a.pause();this.renderer.impressionCommand&&_.Ll.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.RB(_.Ll.getInstance(),[this.renderer.promoCommand],this.page)};var FMc=function(a,b){this.renderer=a;this.resolver=_.St();this.JSC$17407_enforcementCounter=new _.phb;b?this.JSC$17407_playerManager=_.$t(b):this.JSC$17407_playerManager=null;_.lq(1,!0)};
_.z(FMc,F0);_.f=FMc.prototype;_.f.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var a=[];this.renderer.impressionEndpoints.forEach(function(b){(b=_.Ds(b))&&a.push(b)});
return a}};
_.f.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.f.shouldLogCounterfactualImpression=function(){var a=_.a4a();a?(this.JSC$17407_enforcementCounter.increment("POPUP"),_.lq(3)):_.lq(2);return a};
_.f.cancel=function(){this.resolver.promise.cancel()};
_.f.doEnqueue=function(){var a=this;_.a4a()?(this.JSC$17407_enforcementCounter.increment("POPUP"),_.lq(3),GMc(this)):this.JSC$17407_playerManager?(this.resolver.promise.then(function(){GMc(a)}),HMc(this.resolver,this.JSC$17407_playerManager)):_.lq(2)};
var HMc=function(a,b){var c=_.St();b.getPlayerPromise().then(function(d){c.resolve(d)});
c.promise.then(function(d){d.addEventListener("onAbnormalityDetected",a.resolve);_.Lz(a.promise,function(){d.removeEventListener("onAbnormalityDetected",a.resolve)})});
a.promise.thenCatch(function(){c.promise.cancel()})},GMc=function(a){_.lq(3);
var b={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:a.renderer}};b=_.Ll.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:b},{});Promise.all(b).then(function(){IMc();a.JSC$17407_playerManager&&a.JSC$17407_playerManager.pause()})},IMc=function(){htc(function(a,b){_.dsc(a,b);
a===0?_.lq(7):_.lq(4)})};var JMc=function(a,b){this.renderer=a;this.page=b;this.resolver=_.St()};
_.z(JMc,F0);_.f=JMc.prototype;_.f.cancel=function(){this.resolver.promise.cancel()};
_.f.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.f.isCounterfactual=function(){return!this.renderer.isVisible};
_.f.shouldLogCounterfactualImpression=function(){return!0};
_.f.doEnqueue=function(){var a=this;this.resolver.promise.then(function(){var c={popup:{mealbarPromoRenderer:a.renderer},popupType:"MEALBAR"};_.Ll.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:c},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var b=_.$t(this.page);b&&KMc(this.resolver,b)}break;default:this.resolver.resolve()}};
var KMc=function(a,b){var c=_.St();b.getPlayerPromise().then(function(d){c.resolve(d)});
c.promise.then(function(d){d.addEventListener("onAdEnd",a.resolve);_.Lz(a.promise,function(){d.removeEventListener("onAdEnd",a.resolve)})});
a.promise.thenCatch(function(){c.promise.cancel()})};var LMc=function(a,b){this.renderer=a;this.page=b};
_.z(LMc,F0);_.f=LMc.prototype;_.f.cancel=function(){this.JSC$17415_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17415_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17415_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.f.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.f.isCounterfactual=function(){return!this.renderer.isVisible};
_.f.shouldLogCounterfactualImpression=function(){return!0};
_.f.doEnqueue=function(){var a=this,b,c;((b=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(c=b.playbackUpsellDialogTriggerConditionData)==null?void 0:c.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17415_downloadedVideosCountSelectorUnsubscriber=_.zF(_.Yp(),ctc,function(d,e){d>e&&(MMc(a),a.cancel())}):MMc(this)};
var MMc=function(a){var b={popup:{upsellDialogRenderer:a.renderer},popupType:"MODAL"};_.Ll.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:b},{});(a=_.$t(a.page))&&a.pause()};var H0={},NMc=(H0.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",H0.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",H0.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",H0.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",H0.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",H0.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",H0.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",H0),OMc=function(a,b){this.renderer=a;this.targetManager=
b};
_.z(OMc,F0);_.f=OMc.prototype;_.f.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17422_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17422_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17422_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.f.getCounterfactualData=function(){if(this.isCounterfactual()){var a;return(a=this.renderer.promoConfig)==null?void 0:a.impressionEndpoints}};
_.f.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.f.shouldLogCounterfactualImpression=function(){return!0};
_.f.doEnqueue=function(){var a=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17422_downloadedVideosCountSelectorUnsubscriber=_.zF(_.Yp(),ctc,function(b,c){a.renderer.targetId&&b>c&&(fBc(a.targetManager,a.renderer.targetId,PMc(a)),a.cancel())});
break;default:fBc(this.targetManager,this.renderer.targetId,PMc(this))}};
var PMc=function(a){var b;if((b=a.renderer.suggestedPosition)==null?0:b.type)var c=NMc[a.renderer.suggestedPosition.type];c||(c="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:a.renderer},popupType:"HINT",position:c}}};var QMc=function(){this.previousPage=null},RMc;
QMc.prototype.registerPromoCommand=function(a,b){SMc(this,void 0,void 0,_.y(a.roadblock,hKc),void 0,void 0,b)};
var SMc=function(a,b,c,d,e,g,k){a.previousPage!==k&&a.pendingTooltipPromo&&a.pendingTooltipPromo.cancel();a.previousPage=k;e?(a.pendingEnforcementPromo&&a.pendingEnforcementPromo.cancel(),a.pendingEnforcementPromo=new FMc(e,k),a.pendingEnforcementPromo.enqueue()):g?(a.pendingCommandWrapperPromo=new G0(g,k),a.pendingCommandWrapperPromo.enqueue()):d?(a.pendingRoadblockPromo&&a.pendingRoadblockPromo.cancel(),a.pendingRoadblockPromo=new LMc(d,k),a.pendingRoadblockPromo.enqueue()):b?(a.pendingMealbarPromo&&
a.pendingMealbarPromo.cancel(),a.pendingMealbarPromo=new JMc(b,k),a.pendingMealbarPromo.enqueue()):c&&(a.pendingTooltipPromo&&a.pendingTooltipPromo.cancel(),a.pendingTooltipPromo=new OMc(c,_.sG()),a.pendingTooltipPromo.enqueue())},TMc=function(){RMc||(RMc=new QMc);
return RMc};var cxc=!1;var jAc=function(a,b){var c=_.Fi("SESSION_INDEX");this.actionToken_=a;this.commonToken_=b;this.sessionIndex_=c},iAc=function(a){var b=_.St(),c=_.Ji("payments.business.integration.bootstrap"),d=_.Ji("payments.business.integration"),e=d.Style.create().withMaterialDesignStyle(),g=d.mashupMode.popup("instrument-manager");
c.asMashupMode(g).usingUserIndex(a.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(e).inStandaloneContext(d.standaloneContextAuthId.forUserId()).instrumentManager(a.actionToken_,a.commonToken_.length>0?a.commonToken_:void 0,function(k){var m=k.instrumentId;m?b.resolve(m):(m=_.Ji("payments.business.integration.scenario.InstrumentManager"),b.reject(k.errorCode&&k.errorCode===m.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(k){_.Hi(k);
b.reject("instrumentManagerLoadError")});
return b.promise};var oZ=function(a,b,c){this.payloadName="transactionFlowFailed";this.payload={errorType:a,serializedTransactionFlowLoggingParams:b,isUserDismiss:c===void 0?!1:c}};
_.Rj("yt.ypc.shared.YpcTransactionFlowError",oZ);var UMc=function(){return _.kr.apply(this,arguments)||this};
_.z(UMc,_.kr);UMc.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
UMc.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
var L0=UMc;L0.prototype.onErrorMessageDismiss=L0.prototype.onErrorMessageDismiss;_.U([_.O({readOnly:!0,observer:"errorRendererChanged"}),_.W("design:type",Object)],L0.prototype,"errorRenderer",void 0);_.U([_.M("yt-live-chat-error-message-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],L0.prototype,"onErrorMessageDismiss",null);L0=_.U([_.lr()],L0);var VMc=[L0.prototype];var WMc;var XMc;var YMc=new _.Ek("yt-live-chat"),ZMc=new Map;ZMc.set("timestamp_toggle","show-timestamps");ZMc.set("reactions_toggle","allow-reactions");var $Mc=function(){return _.P.apply(this,arguments)||this};
_.z($Mc,_.P);_.f=$Mc.prototype;_.f.menuItemIdentifierChanged=function(){var a;(a=this.data)!=null&&a.menuItemIdentifier&&(a=ZMc.get(this.data.menuItemIdentifier))&&(_.w("enable_lwe_web_mute")?(a=YMc.get(a),this.isToggled=!(a===void 0?!this.data.isToggled:!a)):this.isToggled=YMc.get(a))};
_.f.onFocus=function(){this.toggleButton.focus()};
_.f.onTap=function(){var a=this.data.command;a&&this.componentBehavior.resolveCommand(a)};
_.f.computeText=function(a,b,c){return this.componentBehavior.getSimpleString(a?c:b)};
_.f.computeIcon=function(a,b,c){return(a=a?c:b)&&a.iconType?_.es(a.iconType):""};
var M0=$Mc;M0.prototype.onTap=M0.prototype.onTap;M0.prototype.onFocus=M0.prototype.onFocus;M0.prototype.menuItemIdentifierChanged=M0.prototype.menuItemIdentifierChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],M0.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],M0.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],M0.prototype,"data",void 0);
_.U([_.O({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.W("design:type",String)],M0.prototype,"icon",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],M0.prototype,"isToggled",void 0);_.U([_.ir("tp-yt-paper-toggle-button"),_.W("design:type",Object)],M0.prototype,"toggleButton",void 0);_.U([_.N("data.menuItemIdentifier"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],M0.prototype,"menuItemIdentifierChanged",null);
_.U([_.M("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],M0.prototype,"onFocus",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],M0.prototype,"onTap",null);M0=_.U([_.wr({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],M0);
_.S(M0,"yt-live-chat-toggle-renderer",function(){if(XMc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-toggle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_toggle_renderer.yt.live.chat.toggle.renderer.css.js--\x3e<tp-yt-paper-item class="style-scope yt-live-chat-toggle-renderer">\n   <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-toggle-renderer"></yt-icon>\n  <span class="style-scope yt-live-chat-toggle-renderer">[[computeText(data.isToggled, data.defaultText, data.toggledText)]]</span>\n  <tp-yt-paper-toggle-button aria-label="[[computeText(data.isToggled, data.defaultText, data.toggledText)]]" checked="[[isToggled]]" class="style-scope yt-live-chat-toggle-renderer">\n  </tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;WMc===void 0&&(WMc=document.createElement("template"));var d=WMc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);XMc=a}a=XMc;return a},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var aNc=new _.jB("NAVIGATION_PROGRESS_TOKEN");_.Ei("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var bNc={},jxc=(bNc.CSI=function(a,b){var c={};c[a]=b;a=_.Ii(_.ICa)(c);Object.keys(a).length>0&&_.Jo(a)},bNc.ECATCHER=function(a){return function(b,c){_.Fi(a)[b]=c}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),bNc);var cNc={},dNc={},eNc=(dNc[WJc.name]=!0,dNc),N0=function(){var a=_.kr.apply(this,arguments)||this;a._noAccessors=!0;a.tabGesturesIsActive=!1;a.actionRouterIsRoot=!0;a.appBehaviorActionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-clear-cookie-action":"handleClearCookieAction","yt-store-grafted-ve-action":"onStoreGraftedVeAction","yt-history-load":"onYtHistoryLoad","yt-history-pop":"onYtHistoryPop"};a.pageTitle="";a.titleSuffix="YouTube";a.unseenNotificationCount=
0;a.hasNavigated=!1;a.hasSetScrollTopForNavigation=!1;a.pagePreparer=null;a.zwiebackInitJobId=0;a.dataUpdatePromise=null;a.loadDepsPromise=_.qo();a.hasPendingNavigation=!1;a.pendingPlayerOnResponseReceivedActions=[];return a};
_.z(N0,_.kr);N0.prototype.created=function(){this.pendingPlayerOnResponseReceivedActions=[];_.w("enable_browser_cookie_status_monitoring")&&_.sl(_.zk,this.reportBrowserCookieSetting)};
N0.prototype.reportBrowserCookieSetting=function(){var a=new hCc,b="other";_.Bx?b="chrome":_.Ax?b="firefox":_.Dj?b="safari":_.Pj&&(b="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(c){a.increment(_.nj(),c,b)}).catch(function(){a.increment(_.nj(),!1,b)}):a.increment(_.nj(),!1,b)};
N0.prototype.attached=function(){fNc(this);document.addEventListener("yt-navigate-cache",_.gr(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var a=O0();a.init();a.dispatchElement=this.hostElement};
var fNc=function(a,b){b=b===void 0?0:b;var c=_.v().resolve(_.Xi(_.rG));if(c)gNc(a,c);else{if(b>=5)throw Error("$k");setTimeout(function(){fNc(a,b+1)},0)}},gNc=function(a,b){b.addEventListener("yt-navigate-start",_.gr(a,a.onYtNavigateStart));
b.addEventListener("yt-navigate-finish",_.gr(a,a.onYtNavigateFinish));b.addEventListener("yt-navigate-error",_.gr(a,a.onYtNavigateError));b.addEventListener("yt-page-data-fetched",_.gr(a,a.onYtPageDataFetched));b.addEventListener("yt-navigate-redirect",_.gr(a,a.onYtNavigateRedirect))};
_.f=N0.prototype;
_.f.detached=function(){var a=_.v().resolve(_.rG);a.removeEventListener("yt-navigate-start",_.gr(this,this.onYtNavigateStart));a.removeEventListener("yt-navigate-finish",_.gr(this,this.onYtNavigateFinish));a.removeEventListener("yt-navigate-error",_.gr(this,this.onYtNavigateError));a.removeEventListener("yt-page-data-fetched",_.gr(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.gr(this,this.onYtNavigateCache));a.removeEventListener("yt-navigate-redirect",_.gr(this,
this.onYtNavigateRedirect));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.f.setPageOffset=function(a,b){a?_.lo(this.hostElement,"yt-set-page-offset",[a,b]):_.Bl(Error("al"))};
_.f.setPageOffsetForNavigation=function(a,b){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(a,b))};
_.f.onYtNavigateSetPageOffset=function(a,b){this.setPageOffsetForNavigation(b.page,b.offset)};
_.f.getPageOffset=function(){var a=_.E(this.hostElement).querySelector("#page-manager").getCurrentPage(),b=0;a&&(b=_.lo(this.hostElement,"yt-get-page-offset",[a])[0]);return b};
_.f.onYtHistoryPop=function(a,b){if(_.Gi("DISABLE_WARM_LOADS"))a.preventDefault(),window.location.reload();else{var c=_.v().resolve(_.rG);c.hasPendingNavigation()&&a.preventDefault();c.cancelPendingNavigation();_.mo(this.hostElement,"yt-pending-navigation-cancelled");b.errorMsg&&(a=b.errorMsg.split(" - "),b=Error(a[0]),a.length==2&&a[1]&&(_.El(b,a[1]),_.Dl(b)),window.location.reload())}};
_.f.onYtHistoryLoad=function(a,b){var c=this;if(_.Gi("DISABLE_WARM_LOADS"))window.location.reload();else{this.hasError=!1;(a=b.endpoint)&&Object.keys(a).length||(a=null);var d=b.historyEntry,e=_.v().resolve(_.rG),g=_.v().resolve(_.Zt),k=null;d&&d.rootData&&(k=d.rootData);var m=k&&hNc(k);!k||m||k.filler?a?(e.navigate(a,!0),iNc(this,a)):(b.legacyBorder||m||(b.JSC$26233_savedComponentState==null&&k==null?_.Dl(new _.qj("Incomplete history entry",b.forward)):_.Cl(new _.qj("Malformed history entry",b.JSC$26233_savedComponentState,
b.forward,k))),window.location.reload()):(_.SCa({isHot:!0}),_.Jo({webInfo:{navigationReason:"h"}}),_.aVa(),_.Lo("srt"),_.Lo("pdc"),this.cancelPendingTasks(),jNc(this,b.forward,k),k.player&&(k.player.loaded=!1),iNc(this,a),_.cXb(e,a||{},k,2,{},!1,b).then(function(){c.setPageOffset(g.getCurrentPage(),d.scrollTop||0)}))}};
_.f.initHistoryManager=function(a){if(!this.hasNavigated){this.hasNavigated=!0;var b=_.E(this.hostElement).querySelector("#page-manager").getCurrentData();a=isNaN(a)?this.getPageOffset():a;var c=_.v().resolve(_.rG).currentEndpoint;this.replaceState(c,b,a)}};
_.f.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.f.onYtNavigateStart=function(a,b){this.cancelPendingTasks();b.noProgressBar||(a=_.v().resolve(_.Xi(aNc)))&&a.start();a=this.hasPendingNavigation?null:this.data;this.hasError=!1;var c=_.v().resolve(_.Zt),d,e,g;_.w("kevlar_use_vimio_behavior")&&!((d=b.endpoint)==null?0:(e=d.commandMetadata)==null?0:(g=e.webCommandMetadata)==null?0:g.ignoreNavigation)&&(d=c.getCurrentPage())&&d.disconnectVisibilityRoot();c.prepareForNavigation(b.pageType,b.endpoint);_.w("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=
new _.bH(1,"pcl"),_.cH(this.pagePreparer,c.preparePage.bind(c,b.pageType,b.endpoint)));d=this.getPageOffset();this.initHistoryManager(d);b.reload||this.hasPendingNavigation?this.replaceState(b.endpoint,a,d):(a==null?void 0:a.page)==="watch"&&b.pageType==="watch"&&_.w("kevlar_replace_watch_to_watch_history_state")?this.replaceState(b.endpoint,a,d):(a==null?void 0:a.page)!=="shorts"||b.pageType!=="shorts"||b.endpoint.reelWatchEndpoint.sequenceParams||_.w("short_to_short_back_nav_killswitch")?b.type!=
"navigate-back"&&b.type!="navigate-forward"&&(b.pageType==="shorts"&&_.io(this.hostElement,"yt-shorts-reset"),this.saveAndPush(b.url,b.endpoint,a,d)):this.replaceState(b.endpoint,a,0);this.hasPendingNavigation=!0};
var kNc=function(a){a.hasPendingNavigation=!1;(a=_.v().resolve(_.Xi(aNc)))&&a.finish()};
N0.prototype.onYtNavigateError=function(a,b){kNc(this);this.hasError=!0;b&&b.errorMessage?this.errorMessage=b.errorMessage:this.errorMessage=void 0;a=this.get("endpoint.commandMetadata.webCommandMetadata.url",b);var c=_.Oi(window.location.href);a&&!c.pbjreload&&(b=b.navigationErrorReason||"10",_.w("kevlar_parent_on_pbjreload")&&(c={csn:_.En()},this.get("data.endpoint.clickTrackingParams")&&(c.itct=this.data.endpoint.clickTrackingParams),_.ao(a,c)),_.Hq(_.Pi(a,{pbjreload:b})))};
N0.prototype.onYtNavigateCache=function(a,b){var c=this,d=b.url,e=b.endpoint,g=b.data;a=!!b.miniplayer;b=!!b.skipHistory;if(d&&e&&g){var k=this.getPageOffset(),m=this.data||null;b||this.saveAndPush(d,e,m,k);d=_.cXb(_.v().resolve(_.rG),e,g,a?4:3,{},a);a&&d.then(function(){c.dataUpdatePromise&&c.dataUpdatePromise.then(function(){var n=_.v().resolve(_.Zt);c.setPageOffset(n.getCurrentPage(),0)})})}};
N0.prototype.onYtNavigateFinish=function(a,b){var c=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){lNc(c,b.fromHistory)})};
var lNc=function(a,b){kNc(a);if(a.pendingPlayerOnResponseReceivedActions){for(var c=_.h(a.pendingPlayerOnResponseReceivedActions),d=c.next();!d.done;d=c.next())_.hs(d.value,a.hostElement);a.pendingPlayerOnResponseReceivedActions=[]}c=_.v().resolve(_.Zt);!b&&a.hasNavigated&&((b=c.getCurrentPage())?b.is==="ytd-shorts"||a.tabGesturesIsActive||a.setPageOffsetForNavigation(b,0):_.Dl(Error("bl")));_.Er(function(){_.Er(function(){_.Lo("pda")})})};
N0.prototype.onYtNavigateRedirect=function(a){a.detail.url&&this.replaceUrl(a.detail.url)};
N0.prototype.onYtNavigate=function(a){if(!a.detail.endpoint){var b=new _.qj("Error: Missing yt-navigate endpoint from target:",a.target,a.target.nodeName);_.Bl(b)}if(b=_.w("cold_missing_history"))b=O0(),b.init(!1),b=!(b.browserHistory.boundHistoryReplaceState&&b.browserHistory.boundHistoryPushState);if(b){_.Ei("DISABLE_WARM_LOADS",!0);b=new _.qj("Failed to initialize history manager",this.getDebugString());var c=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
c?_.Dl(b):_.Bl(b)}b=a.detail.endpoint;var d,e;_.w("debug_forward_web_query_parameters")&&((d=b.commandMetadata)==null?0:(e=d.webCommandMetadata)==null?0:e.url)&&(b=JSON.parse(JSON.stringify(b)),b.commandMetadata.webCommandMetadata.url=_.Foa(b.commandMetadata.webCommandMetadata.url,window.location.search));a={type:0,command:b,form:{params:a.detail.params,tempData:a.detail.tempData||{},requestType:a.detail.type,createScreenConfig:a.detail.createScreenConfig,reload:a.detail.reload?a.detail.reload:!1}};
_.w("kevlar_yt_navigate_command_handler")?(d=_.v().resolve(_.Yi),a.form.skipDefaultElement=!0,d.resolveCommand(b,{form:a.form})):this.handleNavigate(a)};
N0.prototype.handleNavigate=function(a){this.hasSetScrollTopForNavigation=!1;var b=_.v().resolve(_.rG),c=a.form||{};b.navigate(a.command,c.reload,c.params,c.tempData,c.requestType,c.createScreenConfig)&&iNc(this,a.command,c.tempData)};
N0.prototype.onYtPageDataFetched=function(a,b){try{_.SOb().reset();this.data=b.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.v().resolve(_.Zt).updatePageData(this.data);var c=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);c&&kxc(c);var d=this.get("response.responseContext.serviceTrackingParams",this.data);d&&kxc(d);var e=
this.get("playerResponse.onResponseReceivedActions",this.data);e&&(e=mNc(this,e));e&&_.po(this.hostElement,e,this.hostElement);var g=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),k=this.get("response.responseContext.consistencyTokenJar",this.data);if(g||k){var m=_.wJa(),n=(0,_.Cf.getValues)(m.tokenJars);g&&m.replace(n,g);k&&m.replace(n,k)}}catch(r){_.Bl(r)}};
var iNc=function(a,b,c){try{a.onYtEndpointChangeHandler(b,c)}catch(d){_.Bl(d)}};
_.f=N0.prototype;_.f.onYtEndpointChangeHandler=function(){};
_.f.setPageTitle=function(a){a=(this.pageTitle=a)?a+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+a};
_.f.onYtUpdateTitle=function(a,b){this.setPageTitle(b)};
_.f.setUnseenNotificationCount=function(a){this.unseenNotificationCount=a;this.setPageTitle(this.pageTitle)};
_.f.handleUpdateNotificationsUnseenCountAction=function(a){_.y(a,BJc)&&((a=_.y(a,BJc).unseenCount)?this.setUnseenNotificationCount(a):this.setUnseenNotificationCount(0))};
_.f.handleClearCookieAction=function(a){var b;(a=(b=_.y(a,xJc))==null?void 0:b.cookieName)&&_.Xoa(a)};
_.f.onYtUpdateUnseenNotificationCount=function(a,b){this.setUnseenNotificationCount(b)};
_.f.loadData=function(a){var b=this;this.loadDepsPromise.then(function(){var c=_.v().resolve(_.Xi(_.rG));c||_.Bl(Error("cl"));if(a&&a.response){if(!a.endpoint){var d=_.Pn(window.document.location.href)||"/",e="";if(d==="/"||d.startsWith("/?"))e="WEB_PAGE_TYPE_BROWSE";a.endpoint={commandMetadata:{webCommandMetadata:{url:d,webPageType:e,rootVe:3854}}}}_.cXb(c,a.endpoint,a,5,{})}else a.endpoint?c.navigate(a.endpoint):c.navigate(_.yF);_.zk.cancelJob(b.zwiebackInitJobId);b.zwiebackInitJobId=_.zk.addLowPriorityJob(dxc)})};
var O0=function(){return _.v().resolve(_.DWb)};
_.f=N0.prototype;_.f.getDebugString=function(){return O0().getDebugString()};
_.f.getThirdPartyManipulationSuspected=function(){return O0().getThirdPartyManipulationSuspected()};
_.f.replaceState=function(a,b,c){O0().saveAndReplace(a,b,c)};
_.f.saveAndPush=function(a,b,c,d){O0().saveAndPush(a,b,c,d)};
_.f.replaceUrl=function(a){O0().replaceUrl(a)};
var hNc=function(a){return _.w("web_honor_cache_for_back")&&(_.y(a.endpoint,_.Un)||_.y(a.endpoint,_.uq))?!0:!a||isNaN(a.expirationTime)?!1:(0,_.Uj)()>a.expirationTime},jNc=function(a,b,c){var d=a.get("response.trackingParams",c),e=_.Dn(),g=_.En();
if(d&&e&&g&&(d=a.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",c),!d&&c.rootVe&&(d=c.rootVe),e=b?"forwardButton":"backButton",b=a.get("playerResponse.topbar.desktopTopbarRenderer."+e+".buttonRenderer.command.clickTrackingParams",a.data),a=a.get("response.topbar.desktopTopbarRenderer."+e+".buttonRenderer.command.clickTrackingParams",a.data),b=(a=b||a)?_.ps(a):void 0,a=_.ls(),e=[_.qo(c)],_.pF(a,d,b,{dataPromises:e,csnToClone:c.csn}),c.graftedVes))for(c=
_.h(c.graftedVes),d=c.next();!d.done;d=c.next())_.qF(a,d.value)};
N0.prototype.onStoreGraftedVeAction=function(a){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(a)):_.Dl(Error("dl"))};
var mNc=function(a,b){return b.filter(function(c){for(var d in c)if(eNc[d])return a.pendingPlayerOnResponseReceivedActions.push(c),!0;return!1})};
_.Um.Object.defineProperties(N0.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
var P0=N0;P0.prototype.onStoreGraftedVeAction=P0.prototype.onStoreGraftedVeAction;P0.prototype.loadData=P0.prototype.loadData;P0.prototype.onYtUpdateUnseenNotificationCount=P0.prototype.onYtUpdateUnseenNotificationCount;P0.prototype.handleClearCookieAction=P0.prototype.handleClearCookieAction;P0.prototype.handleUpdateNotificationsUnseenCountAction=P0.prototype.handleUpdateNotificationsUnseenCountAction;P0.prototype.setUnseenNotificationCount=P0.prototype.setUnseenNotificationCount;
P0.prototype.onYtUpdateTitle=P0.prototype.onYtUpdateTitle;P0.prototype.setPageTitle=P0.prototype.setPageTitle;P0.prototype.onYtEndpointChangeHandler=P0.prototype.onYtEndpointChangeHandler;P0.prototype.onYtPageDataFetched=P0.prototype.onYtPageDataFetched;P0.prototype.handleNavigate=P0.prototype.handleNavigate;P0.prototype.onYtNavigate=P0.prototype.onYtNavigate;P0.prototype.onYtNavigateRedirect=P0.prototype.onYtNavigateRedirect;P0.prototype.onYtNavigateFinish=P0.prototype.onYtNavigateFinish;
P0.prototype.onYtNavigateCache=P0.prototype.onYtNavigateCache;P0.prototype.onYtNavigateError=P0.prototype.onYtNavigateError;P0.prototype.onYtNavigateStart=P0.prototype.onYtNavigateStart;P0.prototype.cancelPendingTasks=P0.prototype.cancelPendingTasks;P0.prototype.initHistoryManager=P0.prototype.initHistoryManager;P0.prototype.onYtHistoryLoad=P0.prototype.onYtHistoryLoad;P0.prototype.onYtHistoryPop=P0.prototype.onYtHistoryPop;P0.prototype.onYtNavigateSetPageOffset=P0.prototype.onYtNavigateSetPageOffset;
P0.prototype.setPageOffset=P0.prototype.setPageOffset;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],P0.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],P0.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],P0.prototype,"hasError",void 0);_.U([_.O(),_.W("design:type",Object)],P0.prototype,"errorMessage",void 0);
_.U([_.M("yt-navigate-set-page-offset"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],P0.prototype,"onYtNavigateSetPageOffset",null);_.U([_.M("yt-history-pop"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],P0.prototype,"onYtHistoryPop",null);
_.U([_.M("yt-history-load"),_.W("design:type",Function),_.W("design:paramtypes",[Event,_.wWb]),_.W("design:returntype")],P0.prototype,"onYtHistoryLoad",null);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],P0.prototype,"onYtNavigate",null);_.U([_.M("yt-update-title"),_.W("design:type",Function),_.W("design:paramtypes",[Event,String]),_.W("design:returntype")],P0.prototype,"onYtUpdateTitle",null);
_.U([_.M("yt-update-unseen-notification-count"),_.W("design:type",Function),_.W("design:paramtypes",[Event,Number]),_.W("design:returntype")],P0.prototype,"onYtUpdateUnseenNotificationCount",null);P0=_.U([_.lr()],P0);cNc.YtdAppBehavior=[_.eH.YtActionHandlerBehavior,P0.prototype];var Q0=function(){var a=_.kr.apply(this,arguments)||this;a._noAccessors=!0;return a};
_.z(Q0,_.kr);Q0.prototype.ready=function(){var a=this;_.E(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){a.onChange_()})};
Q0.prototype.dataChanged_=function(){_.E(this.hostElement).querySelector("#checkbox").checked=!1};
Q0.prototype.onChange_=function(){var a=_.E(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.io(this.hostElement,"yt-dismissal-reason-"+a,this.data.feedbackToken)};
var R0=Q0;R0.prototype.dataChanged_=R0.prototype.dataChanged_;_.U([_.O(),_.W("design:type",Object)],R0.prototype,"data",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],R0.prototype,"dataChanged_",null);R0=_.U([_.lr()],R0);var nNc=[R0.prototype];var S0=function(){var a=_.kr.apply(this,arguments)||this;a.timeoutJobId=0;a.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return a};
_.z(S0,_.kr);S0.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
S0.prototype.startTimeout=function(){var a=this,b=this.data&&this.data.displayDurationSeconds;b&&!this.timeoutJobId&&(this.timeoutJobId=_.sl(_.zk,function(){_.lo(a.hostElement,"yt-close-popup-action",[a.is]);a.timeoutJobId=0},b*1E3))};
S0.prototype.cancelTimeout=function(){_.zk.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
var T0=S0;T0.prototype.ytdHatsSurveyBehaviorDataChanged=T0.prototype.ytdHatsSurveyBehaviorDataChanged;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],T0.prototype,"ytActionHandlerBehavior",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T0.prototype,"ytdHatsSurveyBehaviorDataChanged",null);T0=_.U([_.lr()],T0);var oNc=[_.eH.YtActionHandlerBehavior,T0.prototype];var pNc=function(a,b){return a.SHARED_RENDERERS_.hasOwnProperty(b)?"yt":a.prefix},U0={DIALOG:{component:"tp-yt-paper-dialog",
properties:{withBackdrop:!0,modern:!0,modal:!1},preventAutonav:!0},FULLSCREEN_OVERLAY:{component:null,properties:{withBackdrop:!0}},DROPDOWN:{component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0},HINT:{component:"tp-yt-iron-dropdown",properties:{allowOutsideScroll:!0,dynamicAlign:!1,horizontalAlign:"center",noOverlap:!0,scrollAction:"refit",verticalAlign:"bottom",
verticalOffset:15,withBackdrop:!1},positionalProperties:{OPEN_POPUP_POSITION_TOP:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPLEFT:{horizontalAlign:"right",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_LEFT:{horizontalAlign:"right",
horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_BOTTOM:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMLEFT:{horizontalAlign:"right",horizontalOffset:12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMRIGHT:{horizontalAlign:"left",horizontalOffset:-12,
shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12}},forceCloseOnOutsideClick:!0,forceFocus:!0,slotName:"dropdown-content"},HINT_PERSISTENT:{component:"tp-yt-iron-dropdown",properties:{allowOutsideScroll:!0,dynamicAlign:!1,horizontalAlign:"center",noOverlap:!0,scrollAction:"refit",verticalAlign:"bottom",verticalOffset:15,withBackdrop:!1,noAutoFocus:!0},positionalProperties:{OPEN_POPUP_POSITION_TOP:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"bottom",verticalOffset:15},
OPEN_POPUP_POSITION_TOPLEFT:{horizontalAlign:"right",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_LEFT:{horizontalAlign:"right",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},
OPEN_POPUP_POSITION_BOTTOM:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMLEFT:{horizontalAlign:"right",horizontalOffset:12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12}},slotName:"dropdown-content"},LOCKED_OVERLAY_DIALOG:{component:"tp-yt-paper-dialog",properties:{restoreFocusOnClose:!0,
scrollAction:"lock",withBackdrop:!0},preventAutonav:!0}};U0.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.w("kevlar_mealbar_above_player"),modern:_.w("web_modern_dialogs"),noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
U0.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};U0.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};U0.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
U0.MOLE={component:null,styles:{position:"fixed",top:"auto",left:"auto",right:"0",bottom:"0",zIndex:"var(--ytd-z-index-miniplayer)"},rtlStyles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",zIndex:"var(--ytd-z-index-miniplayer)"}};
U0.NOTIFICATION={component:null,styles:{position:"fixed",top:"0",left:"auto",right:"0",bottom:"auto",marginTop:"60px",zIndex:"var(--ytd-z-index-notification)"},rtlStyles:{position:"fixed",top:"0",left:"0",right:"auto",bottom:"auto",marginTop:"60px",zIndex:"var(--ytd-z-index-notification)"},preventAutonav:!0};
U0.OVERLAY_DROPDOWN={component:"tp-yt-iron-dropdown",properties:{noOverlap:!1,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};
U0.RESPONSIVE_DROPDOWN={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1},narrowProperties:{horizontalAlign:null,verticalAlign:null,dynamicAlign:!1,withBackdrop:!0},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};
U0.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};U0.SURVEY={component:"tp-yt-paper-dialog",properties:{withBackdrop:!1,noCancelOnOutsideClick:!0,noAutoFocus:!0},styles:{position:"fixed",top:"auto",left:"auto",right:"0",bottom:"0"},rtlStyles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0"}};
U0.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};U0.TOAST={component:null,properties:{}};var qNc=new function(a,b,c){this.supportedPopups=a;this.navigationEndpointPopupMap=b;this.popupTypeMap=c;this.supportedPopups=a;this.navigationEndpointPopupMap=b;this.popupTypeMap=c}({aboutThisAdRenderer:!0,
adFeedbackRenderer:!0,adInfoDialogRenderer:!0,addToPlaylistRenderer:!0,backstagePostDialogPopupRenderer:!0,bubbleHintRenderer:!0,channelCreationDialogRenderer:!0,channelWarmWelcomeRenderer:!0,channelWarmWelcomeContRenderer:!0,checkboxSurveyRenderer:!0,confirmDialogRenderer:!0,dismissalFollowUpRenderer:!0,enforcementMessageViewModel:!0,fancyDismissibleDialogRenderer:!0,formPopupRenderer:!0,gamingAccountLinkConfirmDialogRenderer:!0,gamingAccountLinkSettingRenderer:!0,hotkeyDialogRenderer:!0,sponsorshipConfirmCancelRenderer:!0,
modalWithTitleAndButtonRenderer:!0,notificationActionRenderer:!0,reportFormModalRenderer:!0,searchSuggestionReportDialog:!0,sharingRenderer:!0,sharingEmbedRenderer:!0,menuPopupRenderer:!0,singleOptionSurveyRenderer:!0,surveyFollowUpRenderer:!0,unifiedSharePanelRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,ypcUpgradeDialogRenderer:!0,ypcOffersOverlayRenderer:!0,redCancelSurveyRenderer:!0,conversationSectionController:!0,
conversationHighPriorityNotificationContentRenderer:!0},{adFeedbackEndpoint:"adFeedbackEndpoint.content",adInfoDialogEndpoint:"adInfoDialogEndpoint.dialog",createBackstagePostDialogEndpoint:"createBackstagePostDialogEndpoint.dialog",confirmDialogEndpoint:"confirmDialogEndpoint.content",managePurchaseEndpoint:"managePurchaseEndpoint.content",modalEndpoint:"modalEndpoint.modal",shareEndpoint:"shareEndpoint",shareEntityEndpoint:"shareEntityEndpoint",unlimitedFamilyFlowEndpoint:"unlimitedFamilyFlowEndpoint.unlimitedFamilyFlowEndpointSupportedRenderers",
openPopupAction:"openPopupAction.popup",ypcCancelSurveyEndpoint:"ypcCancelSurveyEndpoint.surveySupportedRenderers"},{aboutThisAdRenderer:"DIALOG",adFeedbackRenderer:"DIALOG",adInfoDialogRenderer:"RESPONSIVE_DROPDOWN",addToPlaylistRenderer:_.w("desktop_add_to_playlist_renderer_dialog_popup")?"DIALOG":"RESPONSIVE_DROPDOWN",backstagePostDialogPopupRenderer:"DIALOG",bubbleHintRenderer:"HINT",checkboxSurveyRenderer:"SURVEY",confirmDialogRenderer:"DIALOG",dismissalFollowUpRenderer:"DIALOG",enforcementMessageViewModel:"LOCKED_MODAL",
fancyDismissibleDialogRenderer:"DIALOG",gamingAccountLinkConfirmDialogRenderer:"DIALOG",gamingAccountLinkSettingRenderer:"DIALOG",hotkeyDialogRenderer:"DIALOG",sponsorshipConfirmCancelRenderer:"DIALOG",menuPopupRenderer:"RESPONSIVE_DROPDOWN",modalWithTitleAndButtonRenderer:"RESPONSIVE_DROPDOWN",notificationActionRenderer:"TOAST",reportFormModalRenderer:"DIALOG",searchSuggestionReportDialog:"DIALOG",sharingEmbedRenderer:"DIALOG",sharingRenderer:"RESPONSIVE_DROPDOWN",singleOptionSurveyRenderer:"SURVEY",
surveyFollowUpRenderer:"SURVEY",unifiedSharePanelRenderer:"DIALOG",unlimitedFamilyMessageInterstitialRenderer:"DIALOG",unlimitedFamilyProfileInterstitialRenderer:"DIALOG",unpluggedPauseMembershipDialogRenderer:"DIALOG",ypcOffersOverlayRenderer:"DIALOG",ypcUpgradeDialogRenderer:"DIALOG",redCancelSurveyRenderer:"DIALOG",conversationSectionController:"MOLE",conversationHighPriorityNotificationContentRenderer:"NOTIFICATION"}),rNc=new function(){this.prefix="ytd";this.SHARED_RENDERERS_={aboutThisAdRenderer:!0,
bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,ypcUpgradeDialogRenderer:!0,
loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$17474_popupConfig=U0;this.forwardedEvents="yt-action yt-navigate yt-popup-canceled yt-popup-closed yt-popup-opened yt-service-request-completed yt-service-request-error yt-service-request-sent yt-lockup-requested".split(" ");this.forwardingEnabledPopups=new Set([])};var sNc=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.LI.getInstance()},V0=function(a,b){var c=a.pageNameToElement.get(b);
if(!c){switch(b){case "watch":var d=_.w("web_watch_force_learning_journey_for_testing")?_.aH("ytd-watch-learning-journey"):_.w("kevlar_watch_fixie")?_.aH("ytd-watch-fixie"):_.w("kevlar_watch_grid")?_.aH("ytd-watch-grid"):_.aH("ytd-watch-flexy");break;case "learning-journey-watch":d=_.aH("ytd-watch-learning-journey");break;case "shorts":d=_.aH("ytd-shorts");break;case "search":d=_.aH("ytd-search");break;case "channel":d=_.aH("ytd-browse");d.pageSubtype="channels";break;case "trending":d=_.aH("ytd-browse");
d.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":d=
_.aH("ytd-browse");d.pageSubtype=b;break;case "browse":d=_.aH("ytd-browse");break;default:_.Dl(new _.qj("Error getting page element for type",b))}c=d;a.pageNameToElement.set(b,c)}return c};
sNc.prototype.preparePage=function(a,b,c){c&&(a=vY(c)||a);if(a!=="watch"){var d=this.elementPoolPopulator,e=a;e!=d.targetPage_&&d.pendingPages_.indexOf(e)>-1&&(d.targetPage_&&(d.pendingPages_.unshift(d.targetPage_),d.abort()),iBc(d,e),_.kVb(d,e))}if((d=V0(this,a))||!_.y(c,_.Kl)){d.isAttached||d===b||(d.hidden=!0);if(!(d.data||a==="watch"&&_.w("swatcheroo_page_pool_dont_provide_filler_data"))){var g;if(a=(g=_.Fi("FILLER_DATA",{})[a])==null?void 0:g.response)d.data=a}return d}};var tNc=function(a){this.JSC$28164_clientRoot=a;this.playlistHandlerActionMap={"yt-add-to-playlist-command":oxc,"yt-end-playlist-command":pxc,"yt-recover-playlist-command":rxc,"yt-refresh-playlist-command":uxc,"yt-playlist-remove-videos-action":sxc};_.Ml(_.Ll.getInstance(),this.playlistHandlerActionMap,this.JSC$28164_clientRoot);sBc()},uNc;var W0=function(a,b,c){this.apiKey=a;this.endpoint=b;this.confidenceThreshold=c===void 0?.5:c;this.stream=null;this.state=0;this.manuallyClosedChannel=this.channelOpen=!1;this.prefetchResponseSetTimeoutId=-1;this.languageCode="en-us";this.youtubeAssistantRequest=null;this.listeningHandler=function(){};
this.audioDetectedHandler=function(){};
this.completeHandler=function(){};
this.errorHandler=function(){};
this.stopHandler=function(){};
this.transcriptionUpdateHandler=function(){};
this.transcriptionCompleteHandler=function(){};
this.vaaConsentUpdateHandler=function(){};
this.vozEndOfDataTimeout=this.noResponseReceivedTimeout=-1;this.transcribedSpeechResults=[];this.receivedEndOfUtterance=!1;this.startCustomCsiTimeline=!0;this.supportsCrossDomainXhr=!1;this.supportsHttpHeadersOverwriteParam=!0;this.prefetchResponseTimeoutMs=-1;this.isUsingVoz=b==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||b==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
b==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||b==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new jIc};
_.f=W0.prototype;
_.f.start=function(a){if(this.state===0)if(this.isOnline()){a.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=a.supportsHttpHeadersOverwriteParam);a.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=a.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.Ko("voice_assistant");_.Mo("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=a.languageCode||"en-US";this.supportsCrossDomainXhr=a.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=a.youtubeAssistantRequest||null;this.listeningHandler=a.listeningHandler||this.listeningHandler;this.audioDetectedHandler=a.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=a.stopHandler||this.stopHandler;this.completeHandler=a.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=a.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=a.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
a.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=a.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=a.accessToken;this.additionalHeaders=a.additionalHeaders||{};var b;this.prefetchResponseTimeoutMs=(b=a.prefetchResponseTimeoutMs)!=null?b:this.prefetchResponseTimeoutMs;vNc(this);this.startAudio();wNc(this)}else this.errorHandler("OFFLINE")};
_.f.stop=function(a){var b=a===void 0?{}:a;a=b.logCancel===void 0?!0:b.logCancel;var c=b.logMicClosed===void 0?!0:b.logMicClosed;var d=b.handleError===void 0?!0:b.handleError;b=b.handleStop===void 0?!0:b.handleStop;this.state!==0&&(a&&X0("voz_cx"),Y0(this,{logMicClosed:c,handleStop:b}),d&&this.errorHandler("ABORTED"))};
_.f.getState=function(){return this.state};
_.f.isSupported=function(){return!0};
_.f.stopAudio=function(a){(a===void 0||a)&&X0("voz_mf")};
_.f.startAudio=function(){X0("voz_vp");return _.qo(null)};
var xNc=function(a,b){a.channelOpen&&(a.state!==2&&(a.state=2,X0("voz_ss"),a.listeningHandler()),b=new Uint8Array(b),b='{ "audioIn": "'+_.Bc(b)+'" }',a.channel.send(b))},Y0=function(a,b){var c=b===void 0?{}:b;
b=c.logMicClosed===void 0?!0:c.logMicClosed;c=c.handleStop===void 0?!0:c.handleStop;a.vozEndOfDataTimeout>-1&&(clearTimeout(a.vozEndOfDataTimeout),a.vozEndOfDataTimeout=-1);yNc(a);a.stopAudio(b);a.channel&&(a.channelOpen=!1,a.manuallyClosedChannel=!0,a.channel.close(),a.channel=void 0);a.transcribedSpeechResults=[];a.state=0;c&&a.stopHandler()},vNc=function(a){var b={httpHeadersOverwriteParam:a.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},a.additionalHeaders,a.accessToken&&a.isUsingVoz?{Authorization:"Bearer "+a.accessToken}:{"x-goog-api-key":a.apiKey}),supportsCrossDomainXhr:a.supportsCrossDomainXhr};a.channel=new R_(a.endpoint,b);a.channel.open();_.rs(a.channel,"w",function(){var c=a.channel,d=c.send,e=a.isUsingVoz?"PLACEHOLDER":"example";e={config:{dialogStateIn:{languageCode:a.languageCode},deviceConfig:{deviceId:e,deviceModelId:e},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!a.isUsingVoz)e.config.requestType=4;else if(a.isUsingVoz&&a.youtubeAssistantRequest){var g=JSON.stringify(a.youtubeAssistantRequest);e.config.internalIn={youtubeAssistantS3InputJson:g}}d.call(c,e);a.channelOpen=!0;a.manuallyClosedChannel=!1});
_.rs(a.channel,"x",function(){a.manuallyClosedChannel||(a.channelOpen=!1,a.channel=void 0,Y0(a))});
_.rs(a.channel,"z",function(c){if(c.data){yNc(a);for(var d=0;d<c.data.length;d++){var e=a,g=c.data[d],k=g.speechResults;if(k)a:{var m=[];g=[];var n=!1;k=_.h(k);for(var r=k.next();!r.done;r=k.next()){r=r.value;if(r.noSpeech){Y0(e);e.errorHandler("NO_SPEECH");break a}r.transcript!==void 0&&r.stability!==void 0&&(r.stability<e.confidenceThreshold&&(n=!0),n?g.push(r.transcript):m.push(r.transcript))}if(m.length!==0||g.length!==0)m=m.join(" "),g=g.join(" "),e.receivedEndOfUtterance&&!e.isUsingVoz?e.isUsingVoz||
e.completeHandler([m,g]):(n=e,k=m,r=g,X0("voz_sf"),n.transcriptionUpdateHandler(k,r),n.transcribedSpeechResults=[k,r]),e.receivedEndOfUtterance&&(X0("voz_eou"),e.transcriptionCompleteHandler([m,g]),e.isUsingVoz&&(e.prefetchResponseTimeoutMs===0?Y0(e,{logMicClosed:!1,handleStop:!0}):e.prefetchResponseTimeoutMs>0&&zNc(e)))}else e.isUsingVoz&&(g==null?0:g.internalOut)?(g=JSON.parse(g.internalOut.youtubeAssistantS3OutputJson),g.userHasOptedInToVaa||g.vaaConsent?e.vaaConsentUpdateHandler(!!g.userHasOptedInToVaa,
!!g.vaaConsent):(ANc(e),g&&(m=e.transcribedSpeechResults,X0("voz_rqf"),e.completeHandler(m,g)))):g.eventType==="END_OF_UTTERANCE"?e.receivedEndOfUtterance=!0:(X0("voz_err"),e.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Dl(Error("el")))}}});
_.rs(a.channel,"y",function(c){Y0(a);switch(c.status){case 1:c="WEBCHANNEL_NETWORK_ERROR";break;case 2:c="WEBCHANNEL_SERVER_ERROR";break;default:c="WEBCHANNEL_UNKNOWN_ERROR"}a.errorHandler(c);a.logError(Error(c))})};
W0.prototype.logError=function(a){_.Bl(a)};
W0.prototype.isOnline=function(){return!0};
var zNc=function(a){ANc(a);a.prefetchResponseSetTimeoutId=setTimeout(function(){Y0(a,{logMicClosed:!1,handleStop:!0})},a.prefetchResponseTimeoutMs)},ANc=function(a){a.prefetchResponseSetTimeoutId>-1&&(clearTimeout(a.prefetchResponseSetTimeoutId),a.prefetchResponseSetTimeoutId=-1)},wNc=function(a){yNc(a);
a.noResponseReceivedTimeout=window.setTimeout(function(){Y0(a);a.errorHandler("NO_SPEECH")},11E3)},yNc=function(a){a.noResponseReceivedTimeout>-1&&(window.clearTimeout(a.noResponseReceivedTimeout),a.noResponseReceivedTimeout=-1)},X0=function(a){_.Lo(a,void 0,"voice_assistant")};var Z0=function(){W0.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.z(Z0,W0);Z0.prototype.isSupported=function(){return vxc()};
Z0.prototype.startAudio=function(){var a=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.On(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(d){BNc(a,d)};
this.processor.connect(this.audioContext.destination);var b=function(d){a.stream=d;if(!a.audioContext)return _.qo(null);d=a.audioContext.createMediaStreamSource(d);a.processor&&d.connect(a.processor);return _.qo(null)},c={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?b(this.stream):navigator.mediaDevices.getUserMedia(c).then(b).catch(function(d){Y0(a);d.name&&d.name==="NotAllowedError"?a.errorHandler("NO_MICROPHONE_PERMISSION"):(a.errorHandler("AUDIO_ERROR"),a.logError(d));return _.On(null)});
return W0.prototype.startAudio.call(this)};
Z0.prototype.stopAudio=function(a){a=a===void 0?!0:a;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(b){b.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;W0.prototype.stopAudio.call(this,a)};
Z0.prototype.isOnline=function(){return navigator.onLine};
var BNc=function(a,b){if(a.audioContext)if(window.OfflineAudioContext){var c=a.audioContext.sampleRate,d=b.inputBuffer.getChannelData(0);b=new window.OfflineAudioContext(1,d.length,16E3);for(var e=b.createBuffer(1,d.length,c),g=e.getChannelData(0),k=0,m=0;m<d.length;m++)g[m]=d[m],k+=g[m]*g[m];!a.audioDetected&&Math.sqrt(k/d.length)>.01&&(a.audioDetected=!0,a.audioDetectedHandler());d=b.createBufferSource();d.buffer=e;d.connect(b.destination);d.start(0);b.oncomplete=function(n){n=n.renderedBuffer.getChannelData(0);
for(var r=Math.floor(16384E3/c),t=new Int16Array(r),u=0;u<r;++u)t[u]=Math.max(-1,Math.min(1,n[u]))*32767;xNc(a,t.buffer)};
b.startRendering()}else CNc(a,b)},CNc=function(a,b){var c=a.audioContext.sampleRate,d=b.inputBuffer.getChannelData(0),e=Math.floor((c+8E3)/16E3);
c=d.length/e;b=new Float32Array(c);for(var g=0;g<c;++g)b[g]=d[g*e];d=new Int16Array(c);for(e=0;e<c;++e)d[e]=Math.max(-1,Math.min(1,b[e]))*32767;xNc(a,d.buffer)};var DNc={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var ENc=function(){this.JSC$17539_audioEnabled=!0;this.audioFeedbackHolder={}};
ENc.prototype.isPlaying=function(a){return a.currentTime>0&&!a.paused&&!a.ended&&a.readyState>2};
var FNc=function(a){for(var b=_.h(Object.values(DNc)),c=b.next();!c.done;c=b.next())c=c.value,a.audioFeedbackHolder[c]=new Audio,a.audioFeedbackHolder[c].src="/s/search/audio/"+c+".mp3",a.audioFeedbackHolder[c].load()},$0=function(a,b){if(a.JSC$17539_audioEnabled!==!1&&b in a.audioFeedbackHolder){for(var c=_.h(Object.values(a.audioFeedbackHolder)),d=c.next();!d.done;d=c.next())d=d.value,a.isPlaying(d)&&d.pause();
a.audioFeedbackHolder[b].currentTime=0;a.audioFeedbackHolder[b].play().catch(function(){})}};var GNc=function(a,b){var c=this;this.store=a;this.service=b;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){c.setState("offline");c.stop()};
this.audioPlayer=new ENc;var d;(d=this.audioPlayer)==null||FNc(d)};
_.f=GNc.prototype;_.f.getService=function(){return this.service};
_.f.isEnabled=function(){return!!this.service};
_.f.isSupported=function(){var a;return(a=this.service)==null?void 0:a.isSupported()};
_.f.start=function(){var a=this,b,c,d,e,g,k,m,n,r,t,u,x,A;return _.l(function(C){switch(C.nextAddress){case 1:a.store.dispatch(xCc("",""));if(!navigator.onLine)return a.setState("offline"),C.return();window.addEventListener("offline",a.handleOfflineEvent);a.stream=null;if(!a.permissionsSupported){C.jumpTo(2);break}_.pe(C,3);return _.p(C,HNc(a),5);case 5:b=C.yieldResult;if(!b)return(c=a.audioPlayer)==null||$0(c,"failure"),C.return();a.service.stream=a.stream;a.setState("listening");_.Jj(C,2);break;
case 3:_.te(C),a.permissionsSupported=!1;case 2:d={context:_.dqa(_.Wj())},d.youtubeAssistantParams={searchParams:{inlineSearchResponse:a.enableInlineSearchResponse}},e=function(F,J){a.store.dispatch(yCc("transcribing"));a.store.dispatch(xCc(F,J))},g=function(){var F;
(F=a.audioPlayer)==null||$0(F,"open");a.setState("listening")},k=function(){a.setState("transcribing")},m=function(F){a.setErrorState(F)},n=function(F,J){var I;
(I=a.audioPlayer)==null||$0(I,"success");J&&(_.w("kevlar_voice_search_inline_search")&&(a.responseProcessor=_.v().resolve(_.e8a),a.responseProcessor&&(I=J.navigationAction,F=J.prefetchedSearchResponse,I&&F&&(I=(new _.ugc).JSC$11749_getStoreKey(I),_.dx(a.responseProcessor,F,I)))),a.JSC$17557_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",J))},r=function(){window.removeEventListener("offline",a.handleOfflineEvent)},t=_.mqa(!1),u=t.Authorization!=null,x=a.enableFirstPartyAuth||
a.enableFPAForSignedInUsers&&u?t:{"X-Goog-Visitor-Id":t["X-Goog-Visitor-Id"]},A={completeHandler:n,
errorHandler:m,listeningHandler:g,audioDetectedHandler:k,stopHandler:r,transcriptionUpdateHandler:e,youtubeAssistantRequest:d,languageCode:INc(),additionalHeaders:x,supportsCrossDomainXhr:a.enableFirstPartyAuth||a.enableFPAForSignedInUsers&&u,supportsHttpHeadersOverwriteParam:!a.disableHttpHeadersOverwrite},a.service.start(A),_.ue(C)}})};
_.f.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.f.reset=function(){this.store.dispatch(_.hp({type:"RESET_VOICE_SEARCH_STATE"}))};
_.f.setState=function(a){this.store.dispatch(yCc(a))};
_.f.setErrorState=function(a){switch(a){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var b;(b=this.audioPlayer)==null||$0(b,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)HNc(this);else{var c;(c=this.audioPlayer)==null||$0(c,"failure");this.setState("permission-denied")}break;case "ABORTED":var d;(d=this.audioPlayer)==null||$0(d,"no_input");break;default:var e;(e=this.audioPlayer)==
null||$0(e,"no_input");this.setState("timeout")}};
var HNc=function(a){var b,c;return _.l(function(d){switch(d.nextAddress){case 1:return _.p(d,navigator.permissions.query({name:"microphone"}),2);case 2:b=d.yieldResult;if(b.state==="granted")return d.return(!0);if(b.state==="denied")return a.setState("permission-denied"),d.return(!1);a.setState("permission");c={audio:{sampleSize:16,channelCount:1},video:!1};_.pe(d,3);return _.p(d,navigator.mediaDevices.getUserMedia(c),5);case 5:return a.stream=d.yieldResult,d.return(!0);case 3:return _.te(d),a.setState("permission-denied"),
d.return(!1)}})},INc=function(){var a=_.Fi("INNERTUBE_CONTEXT_HL"),b=_.Fi("INNERTUBE_CONTEXT_GL");
return a.indexOf("-")>-1?a:a+"-"+b};var JNc=function(a,b,c){GNc.call(this,b,c);this.JSC$17557_actionRouter=a;this.enableInlineSearchResponse=_.w("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.w("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.w("kevlar_voice_search_enable_fpa_signedin_users")},KNc;
_.z(JNc,GNc);
var LNc=function(){if(!KNc){var a="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.w("kevlar_voice_search_auth_enabled")||_.w("kevlar_voice_search_use_yt_endpoint")?a="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.w("kevlar_voice_search_use_fp_endpoint")&&(a="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");KNc=
new JNc(_.Ll.getInstance(),_.Yp(),new Z0(_.Fi("VOZ_API_KEY"),a,.5))}return KNc};var MNc=function(a){this.JSC$17561_clientRoot=a;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$17561_clientRoot,new Map([["iron-overlay-opened",this.onIronOverlayOpened.bind(this)],["iron-overlay-closed",this.onIronOverlayClosed.bind(this)],["yt-autonav-pause-focus",this.onYtAutonavPauseFocus.bind(this)],["yt-autonav-pause-blur",this.onYtAutonavPauseBlur.bind(this)],["yt-autonav-pause-guide-opened",
this.onYtAutonavPauseGuideOpened.bind(this)],["yt-autonav-pause-guide-closed",this.onYtAutonavPauseGuideClosed.bind(this)],["yt-autonav-pause-scroll",this.onYtAutonavPauseScroll.bind(this)],["yt-autonav-pause-player",this.onYtAutonavPausePlayer.bind(this)],["yt-autonav-pause-player-ended",this.onYtAutonavPausePlayerEnded.bind(this)]]));a=_.h(this.eventListeners);for(var b=a.next();!b.done;b=a.next()){var c=_.h(b.value);b=c.next().value;c=c.next().value;c=_.h(c);for(var d=c.next();!d.done;d=c.next()){var e=
_.h(d.value);d=e.next().value;e=e.next().value;b.addEventListener(d,e)}}_.Ml(_.Ll.getInstance(),this.autonavPauseActionMap,this.JSC$17561_clientRoot)},NNc,ONc=function(a){return _.w("kevlar_autonav_popup_filtering")?(a=_.Sq(a))?a.hasAttribute("prevent-autonav"):!0:!0};
_.f=MNc.prototype;_.f.onIronOverlayOpened=function(a){ONc(a)&&(this.autonavPauseReasons.overlayOpen=!0,a1(this))};
_.f.onIronOverlayClosed=function(a){ONc(a)&&(this.autonavPauseReasons.overlayOpen=!1,a1(this))};
_.f.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;a1(this)};
_.f.onYtAutonavPauseBlur=function(){var a=this;_.zk.addJob(function(){a.isInBackground()||(a.autonavPauseReasons.inputBoxFocus=!1,a1(a))},8,0)};
_.f.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;a1(this)};
_.f.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;a1(this)};
_.f.onYtAutonavPauseScroll=function(){var a=_.v().resolve(_.Zt);a.isOnWatch()&&(a=a.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=a.getBoundingClientRect().top<-200,a1(this))};
_.f.onYtAutonavPauseUserEngagement=function(a){var b=this;if(_.w("user_engagement_enable_autoplay_pause_feature")){var c=Number(a.lowEngagementThresholdMs);isNaN(c)||c<=0||a.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.hY("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.v().resolve(_.Ct),_.Yk()<c?_.sl(_.zk,function(){_.hY("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.fsc()?(this.userEngagementCsn=_.En(),_.sl(_.zk,function(){_.hY("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
b.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,a1(this)):_.hY("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.rua(Error("fl`"+JSON.stringify(a)))};
_.f.onYtAutonavPausePlayer=function(a){this.autonavPauseReasons.requestedByPlayer=!!a.detail;a1(this)};
_.f.onYtAutonavVisibilityChanged=function(){var a=this,b,c,d;return _.l(function(e){if(e.nextAddress==1)return(b=_.au())?_.p(e,b.getPlayerPromise(),2):e.return();c=e.yieldResult;d=c.isMuted()||c.getVolume()===0;a.autonavPauseReasons.backgroundAndMute=a.isInBackground()&&d;a1(a);_.ue(e)})};
_.f.onYtAutonavPausePlayerEnded=function(){_.v().resolve(_.Ct);var a=144E5;_.w("user_engagement_enable_autoplay_pause_feature")||_.w("is_part_of_any_user_engagement_experiment")||(a=45E5);this.autonavPauseReasons.longIdle=_.Yk()>a;PNc(this);a1(this)};
_.f.onYtUserActivity=function(){var a=this;this.autonavPauseReasons.userEngagement&&(_.sl(_.zk,function(){_.hY("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",a.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,a1(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.sl(_.zk,function(){_.hY("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",a.userEngagementCsn);_.Al()}),this.autonavPauseReasons.youthereLactExperiment=!1,a1(this));
this.autonavPauseReasons.longIdle&&!_.w("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,a1(this))};
_.f.isInBackground=function(){var a=window.document.visibilityState;return!(!a||a==="visible")};
var a1=function(a){for(var b=!1,c=_.h(Object.values(a.autonavPauseReasons)),d=c.next();!d.done;d=c.next())d=d.value,b=b||d;b?_.fF.getInstance().pause(a.autonavPauseReasons):(a=_.fF.getInstance(),a.autonavState_==3?(a.setState(2,!1,!1),a.autonavPauseReason_=void 0):a.autonavState_==1&&(a.disabledAutonavPauseReason_=void 0))},PNc=function(a){var b=!1;
if(_.w("enable_autoplay_pause_by_lact")){_.v().resolve(_.Ct);b=_.$i("autoplay_pause_by_lact_sec")*1E3;var c=_.$i("autoplay_pause_by_lact_sampling_fraction");(b=_.Yk()>=b&&Math.random()<c)&&!_.fsc()&&(_.sl(_.zk,function(){_.hY("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),b=!1)}b!==a.autonavPauseReasons.youthereLactExperiment&&(a.autonavPauseReasons.youthereLactExperiment=b)&&(a.userEngagementCsn=_.En(),_.sl(_.zk,function(){_.hY("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",a.userEngagementCsn)}));
a.autonavPauseReasons.userEngagement&&_.sl(_.zk,function(){_.hY("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",a.userEngagementCsn)})};
MNc.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.hY("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.Al(),this.autonavPauseReasons.youthereLactExperiment=!1,a1(this));this.autonavPauseReasons.userEngagement&&(_.hY("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,a1(this))};
MNc.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var QNc=function(){var a=_.P.apply(this,arguments)||this;a.miniGuideVisible=!1;a.guideOpened=_.w("disable_initial_guide_state_fix")?!1:a.canFitPersistentGuide(a.initialBodyClientWidth);a.guideUserStateOpened=a.getInitialGuideUserStateOpened();a.isFullscreenShorts=!1;a.miniGuideWidthThreshold=_.$i("kevlar_mini_guide_width_threshold",791);a.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");a.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
a.persistentGuideBlockedPagePathRegex=new RegExp(a.persistentGuideBlockedPagesPatterns.join("|"));a.animationTransitionDuration=0;a.lateDataResolver=_.St();a.serviceEndpoint=IAc;a.initialGuideDataFetchFailed=!1;a.initialLoad=!0;a.guideRenderers=new Set;a.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return a};
_.z(QNc,_.P);_.f=QNc.prototype;_.f.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.f.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.f.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.f.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.f.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.f.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.f.ready=function(){_.v().addProvider({provide:_.UI,useValue:this.hostElement})};
_.f.attached=function(){var a=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.gr(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.gr(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.gr(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.gr(this,this.onYtGuideShow));_.Qm(this,function(){a.animationTransitionDuration=200})};
_.f.detached=function(){document.removeEventListener("yt-navigate-finish",_.gr(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.gr(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.gr(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.gr(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.gr(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.gr(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.gr(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.f.getData=function(){return this.data};
_.f.load=function(){var a=this,b,c,d,e;return _.l(function(g){switch(g.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=a.lateDataResolver.resolve.bind(a),g.return(a.lateDataResolver.promise);if(window.ytInitialGuideData)return b=_.St(),b.resolve(window.ytInitialGuideData),g.return(b.promise);d=!1;_.pe(g,2);return _.p(g,a.fetchGuideData(),4);case 4:c=g.yieldResult;_.Jj(g,3);break;case 2:e=_.te(g),e.message==="Returned error"&&(d=!0);
case 3:if(c)return g.return(c);a.onYtGuideClose();d||(a.initialGuideDataFetchFailed=!0);return g.return(a.lateDataResolver.promise)}})};
_.f.fetchGuideData=function(){var a=this,b,c,d,e,g,k;return _.l(function(m){if(m.nextAddress==1)return a.guidePromise||(a.guidePromise=_.oo(a.hostElement,[a.serviceEndpoint])),_.p(m,a.guidePromise,2);if(m.nextAddress!=3)return b=m.yieldResult,c=_.v(),d=c.resolve(_.$V),_.p(m,d(),3);(e=m.yieldResult)&&((g=b)==null?0:g.data)&&((k=b.data.responseContext)==null?void 0:k.maxAgeSeconds)!==0&&e.put("service:guide:fallback",new _.sJ({innertubeResponse:b.data}));return m.return(b.data)})};
_.f.initializeGuideDataIfEmpty=function(){var a=this,b,c;return _.l(function(d){if(d.nextAddress==1){if(!a.initialGuideDataFetchFailed||a.data)return d.return();_.pe(d,2);return _.p(d,a.fetchGuideData(),4)}if(d.nextAddress!=2)return(b=d.yieldResult)&&a.lateDataResolver.resolve(b),_.Jj(d,0);c=_.te(d);_.Dl(c);_.ue(d)})};
_.f.initializeGuideData=function(){var a=this,b;return _.l(function(c){switch(c.nextAddress){case 1:return _.Bw(Rsc(),{mainAppWeb:_.Nq()}),_.pe(c,2),_.p(c,a.load(),4);case 4:a.data=c.yieldResult;_.Jj(c,3);break;case 2:_.te(c),_.Cw(Rsc(),"FAILURE");case 3:b=a.data&&a.data.items&&a.data.items.length>0?"SUCCESS":"FAILURE",_.Cw(Rsc(),b),_.ue(c)}})};
_.f.setGuideData=function(a){var b=this,c,d;return _.l(function(e){if(e.nextAddress==1)return b.disabled?e.return():b.data?(a.data=b.data,b.guideRenderers.add(a),e.return()):_.p(e,b.initializeGuideData(),2);b.graftGuideToPage();c=_.Gi("IS_HOMEPAGE_COLD")?"eop":void 0;_.w("disable_element_pool_populator")?b.setGuideDataAfterInit(a):(d=new _.bH(1,c),_.cH(d,b.setGuideDataAfterInit.bind(b,a)));_.ue(e)})};
_.f.setGuideDataAfterInit=function(a){a.data=this.data;a.markDirty();this.guideRenderers.add(a);_.Er(function(){_.Lo("gle")});
_.Qm(this,function(){_.Lo("gpe")})};
_.f.graftGuideToPage=function(){if(this.data){var a=this.data&&this.data.trackingParams;a&&(a=_.ps(a),_.rF(_.ls(),a))}};
_.f.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.gr(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.f.onDrawerOpenedChanged=function(a,b){!b.value&&this.guideOpened&&(this.guideOpened=!1)};
_.f.onYtGuideToggle=function(a){var b=this.guideOpened;this.guideOpened=!b;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var c=_.yo();_.zo(0,109,!this.guideUserStateOpened);c.save()}this.updateGuideDrawerElementState();if(this.guideElement){var d;this.guideOpened&&((d=a.detail)==null?0:d.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.gr(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.gr(this,
this.onAppDrawerTransitioned))}b||this.initializeGuideDataIfEmpty()};
_.f.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.gr(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Pk(this.guideElement)};
_.f.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.gr(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(vCc(this.guideOpened))};
_.f.guidePersistentAndVisibleChanged=function(){_.mo(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.f.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.hp({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.f.miniGuideVisibleChanged=function(){_.mo(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.f.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(vCc(this.guideOpened)),this.initialLoad=!1);_.mo(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.f.activeEndpointChanged=function(){_.mo(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.f.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.f.onYtGuideShow=function(){this.forceMiniGuideClose=!1;this.guidePersistent=this.canFitPersistentGuide(this.cachedClientWidth);this.guideUserStateOpened&&this.guidePersistent?this.renderGuide=this.guideOpened=!0:this.guideOpened=!1;this.observeForMiniGuideVisible();this.updateGuideDrawerElementState()};
_.f.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var a=this.canFitPersistentGuide(this.cachedClientWidth);a?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=a}this.updateGuideDrawerElementState()};
_.f.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.f.getGuideOpened=function(){return this.guideOpened};
_.f.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.f.getActiveEndpoint=function(){return this.activeEndpoint};
_.f.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.f.updateGuideDrawerElementState=function(){this.guideElement&&(this.guidePersistent?this.disableGuideAnimation():this.guideElement.persistent?this.disableGuideAnimation():this.enableGuideAnimation(),this.guideElement.opened=this.guideOpened,this.guideElement.persistent=this.guidePersistent,this.guideOpened&&this.guidePersistent&&_.io(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.f.computeGuidePersistentAndVisible=function(){var a=this;_.Fr(this,"computeGuidePersistentAndVisible",function(){a.guidePersistentAndVisible=a.guideOpened&&a.guidePersistent;a.guideIsVisibleButNotPersistent=!(!a.guideOpened||a.guidePersistent)})};
_.f.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.f.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.f.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.f.startLoadingWatch=function(){this.closeGuide()};
_.f.startLoadingShorts=function(){_.w("web_hide_guide_on_shorts")&&this.closeGuide()};
_.f.onYtNavigateFinish=function(a,b){if(!_.xx||b){this.activeEndpoint=b.endpoint;this.pageType=b.pageType;this.pageUrl=b.response.url;var c,d;a=(d=_.y((c=b.endpoint)==null?void 0:c.commandMetadata,_.co))==null?void 0:d.url;!this.pageUrl&&a&&(this.pageUrl=a);_.w("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.f.getVisibleGuideRenderer=function(){for(var a=_.h(this.guideRenderers),b=a.next();!b.done;b=a.next())if(b=b.value,this.miniGuideVisible&&b.is==="ytd-mini-guide-renderer"||this.guideOpened&&b.is==="ytd-guide-renderer")return b;return null};
_.f.markGuideRendererDirty=function(a){if(a){typeof a.markDirty==="function"&&a.markDirty();a=_.h([].concat(_.De(_.E(a).children)));for(var b=a.next();!b.done;b=a.next())this.markGuideRendererDirty(b.value)}};
_.f.persistentGuideEnabled=function(a,b){if(!b||a==="watch"||a==="settings"||a==="shorts"&&this.isFullscreenShorts||_.w("reels_web_disable_persistent_guide_shorts")&&a==="shorts")return!1;var c=_.gj(b)||"";return _.w("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(d){return c===d}):!this.persistentGuideBlockedPagePathRegex.test(c)};
_.f.canFitPersistentGuide=function(a){var b=_.$i("kevlar_persistent_guide_width_threshold",1312);return b===-1||_.w("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:a>b};
_.f.canFitMiniGuide=function(a){return this.miniGuideWidthThreshold===-1?!1:a>this.miniGuideWidthThreshold};
_.f.onResize=function(){var a=this;_.Fr(this,"calculateGuideState",function(){a.onResizeDebounced()})};
_.f.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.f.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.f.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.f.getInitialGuideUserStateOpened=function(){return!_.yo().getFlag(109)};
_.Um.Object.defineProperties(QNc.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.Fi("initialBodyClientWidth")||window.innerWidth}}});
var b1=QNc;b1.prototype.onResize=b1.prototype.onResize;b1.prototype.observeForMiniGuideVisible=b1.prototype.observeForMiniGuideVisible;b1.prototype.computeGuidePersistentAndVisible=b1.prototype.computeGuidePersistentAndVisible;b1.prototype.cachedClientWidthChanged=b1.prototype.cachedClientWidthChanged;b1.prototype.resetGuide=b1.prototype.resetGuide;b1.prototype.activeEndpointChanged=b1.prototype.activeEndpointChanged;b1.prototype.guideOpenedChanged=b1.prototype.guideOpenedChanged;
b1.prototype.miniGuideVisibleChanged=b1.prototype.miniGuideVisibleChanged;b1.prototype.guideIsVisibleButNotPersistentChanged=b1.prototype.guideIsVisibleButNotPersistentChanged;b1.prototype.guidePersistentAndVisibleChanged=b1.prototype.guidePersistentAndVisibleChanged;b1.prototype.onGuideElementChanged=b1.prototype.onGuideElementChanged;b1.prototype.onGuidePersistentChanged=b1.prototype.onGuidePersistentChanged;b1.prototype.onRenderGuideChanged=b1.prototype.onRenderGuideChanged;
b1.prototype.onActiveEndpointChanged=b1.prototype.onActiveEndpointChanged;b1.prototype.onMiniGuideVisibleChanged=b1.prototype.onMiniGuideVisibleChanged;b1.prototype.onGuideIsVisibleButNotPersistentChanged=b1.prototype.onGuideIsVisibleButNotPersistentChanged;b1.prototype.onGuidePersistendAndVisibleChanged=b1.prototype.onGuidePersistendAndVisibleChanged;_.U([_.H(_.OD),_.W("design:type",Object)],b1.prototype,"ironResizableBehavior",void 0);
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],b1.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],b1.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],b1.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],b1.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],b1.prototype,"disabled",void 0);
_.U([_.O(),_.W("design:type",Boolean)],b1.prototype,"guidePersistentAndVisible",void 0);_.U([_.N("guidePersistentAndVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b1.prototype,"onGuidePersistendAndVisibleChanged",null);_.U([_.O(),_.W("design:type",Boolean)],b1.prototype,"guideIsVisibleButNotPersistent",void 0);
_.U([_.N("guideIsVisibleButNotPersistent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b1.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.U([_.O(),_.W("design:type",Object)],b1.prototype,"miniGuideVisible",void 0);_.U([_.N("miniGuideVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b1.prototype,"onMiniGuideVisibleChanged",null);_.U([_.O(),_.W("design:type",Boolean)],b1.prototype,"forceMiniGuideClose",void 0);
_.U([_.O(),_.W("design:type",Object)],b1.prototype,"activeEndpoint",void 0);_.U([_.N("activeEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b1.prototype,"onActiveEndpointChanged",null);_.U([_.O(),_.W("design:type",Boolean)],b1.prototype,"renderGuide",void 0);_.U([_.N("renderGuide"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b1.prototype,"onRenderGuideChanged",null);
_.U([_.O(),_.W("design:type",Object)],b1.prototype,"guideOpened",void 0);_.U([_.O(),_.W("design:type",Boolean)],b1.prototype,"guidePersistent",void 0);_.U([_.N("guidePersistent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b1.prototype,"onGuidePersistentChanged",null);_.U([_.O(),_.W("design:type",Object)],b1.prototype,"guideUserStateOpened",void 0);_.U([_.O(),_.W("design:type",String)],b1.prototype,"pageUrl",void 0);
_.U([_.O(),_.W("design:type",String)],b1.prototype,"pageType",void 0);_.U([_.O(),_.W("design:type",Number)],b1.prototype,"cachedClientWidth",void 0);_.U([_.O(),_.W("design:type",Object)],b1.prototype,"guideElement",void 0);_.U([_.O({selector:_.Ev}),_.W("design:type",Object)],b1.prototype,"isFullscreenShorts",void 0);_.U([_.N("guideElement"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b1.prototype,"onGuideElementChanged",null);
_.U([_.N("guidePersistentAndVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b1.prototype,"guidePersistentAndVisibleChanged",null);_.U([_.mr("guideIsVisibleButNotPersistent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b1.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.U([_.N("miniGuideVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b1.prototype,"miniGuideVisibleChanged",null);_.U([_.mr("guideOpened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b1.prototype,"guideOpenedChanged",null);_.U([_.N("activeEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b1.prototype,"activeEndpointChanged",null);
_.U([_.mr("pageUrl"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b1.prototype,"resetGuide",null);_.U([_.mr("cachedClientWidth"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b1.prototype,"cachedClientWidthChanged",null);_.U([_.N("guideOpened","guidePersistent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b1.prototype,"computeGuidePersistentAndVisible",null);
_.U([_.mr("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b1.prototype,"observeForMiniGuideVisible",null);_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b1.prototype,"onResize",null);b1=_.U([_.Q({disableElementRegistration:!0,is:"yt-guide-manager"})],b1);var RNc=_.S(b1,"yt-guide-manager",void 0,{mode:_.as("kevlar_poly_si_batch_j081")?1:2});var SNc=function(){var a=_.P.apply(this,arguments)||this;a.JSC$17571_keyboardInUse=!1;a.boundHandleCapturedKeydownEvent=function(b){a.handleCapturedKeydownEvent(b)};
return a};
_.z(SNc,_.P);_.f=SNc.prototype;_.f.attached=function(){this.listenToDocument(document)};
_.f.listenToDocument=function(a){a.addEventListener("keydown",_.gr(this,this.onKeyDownEvent));a.addEventListener("keyup",_.gr(this,this.onKeyUpEvent));a.addEventListener("mousedown",_.gr(this,this.onMouseDownEvent));_.w("desktop_keyboard_capture_keydown_killswitch")||a.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);a.addEventListener("yt-page-data-updated",_.gr(this,this.onPageUpdate))};
_.f.detached=function(){this.unlistenFromDocument(document)};
_.f.unlistenFromDocument=function(a){a.removeEventListener("keydown",_.gr(this,this.onKeyDownEvent));a.removeEventListener("keyup",_.gr(this,this.onKeyUpEvent));a.removeEventListener("mousedown",_.gr(this,this.onMouseDownEvent));_.w("desktop_keyboard_capture_keydown_killswitch")||a.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);a.removeEventListener("yt-page-data-updated",_.gr(this,this.onPageUpdate))};
_.f.ready=function(){_.v().addProvider({provide:_.Bu,useValue:this})};
_.f.isKeyBoardInUse=function(){return this.JSC$17571_keyboardInUse};
_.f.handleCapturedKeydownEvent=function(a){if(a.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(a)};
_.f.onMouseDownEvent=function(){this.JSC$17571_keyboardInUse=!1};
_.f.onPageUpdate=function(){if(_.w("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.w("web_shorts_keyboard_shortcut_usage_log")){_.nY.clear();for(var a=_.h(_.lY),b=a.next();!b.done;b=a.next()){var c=_.h(b.value);b=c.next().value;c=c.next().value;c=_.ku(c);_.nY.set(b,c);_.To(_.En(),_.Dn(),c)}_.oY.clear();a=_.h(_.mY);for(b=a.next();!b.done;b=a.next())c=_.h(b.value),b=c.next().value,c=c.next().value,c=_.ku(c),_.oY.set(b,c),_.To(_.En(),_.Dn(),c);_.iY(_.En(),_.Dn(),[].concat(_.De(_.oY.values()),
_.De(_.nY.values())));_.Vo(_.En(),[].concat(_.De(_.oY.values()),_.De(_.nY.values())))}};
_.f.onMiniplayerActiveChange=function(){var a;(a=_.v().resolve(_.$w).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(a.document):this.unlistenFromDocument(a.document))};
_.f.ignoreKeyEvent=function(a){if(a.ctrlKey||a.altKey)if(_.w("kevlar_macro_markers_keyboard_shortcut")){if(a.keyCode!==37&&a.keyCode!==39)return!0}else return!0;var b=_.Rq(a)||[];return _.isc(b)?!0:a.defaultPrevented?(CY(a.keyCode,a.shiftKey,this.isShortsPage),!0):a.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(a):!1};
_.f.isSpacebarClick=function(a){var b=a||window.event;var c;b.composedPath&&typeof b.composedPath==="function"?c=b.composedPath():c=b.path;c&&c.length?b=c[0]:(b=b||window.event,b=b.target||b.srcElement,b.nodeType==3&&(b=b.parentNode));return b&&a.keyCode===32&&(a=b.tagName==="BUTTON"||b.tagName==="A"||b.tagName==="INPUT",b=(b=b.getAttribute("role"))&&(b==="option"||b==="button"||b.indexOf("menuitem")===0),a||b)?!0:!1};
_.f.onKeyDownEvent=function(a){if(!this.ignoreKeyEvent(a)&&(a.keyCode===191&&(a.shiftKey||a.metaKey?a.repeat!=null&&a.repeat||(this.openHotkeyDialog(),CY(a.keyCode,a.shiftKey,this.isShortsPage)):(this.focusSearchBox(),a.preventDefault())),!a.metaKey)){var b=_.v().resolve(_.$w);switch(a.keyCode){case 9:this.JSC$17571_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(a);break;case 84:b.pipController.getWindow()&&window.focus();this.toggleTheaterMode(a.keyCode,a.shiftKey);break;case 73:b.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(a.keyCode,a.shiftKey);break;case 70:if(this.isShortsPage&&_.w("web_fullscreen_shorts")){_.ksc();break}this.isMiniplayerActive()?b.pipController.getWindow()&&(b.close(!0),window.focus()):this.passEventToPlayer(a);break;case 27:this.closeMiniplayer(a.keyCode,a.shiftKey)||this.passEventToPlayer(a);break;case 13:a.shiftKey&&_.w("web_ephemeral_actions")&&_.v().resolve(_.uW).activate(a);break;default:this.passEventToPlayer(a)}}};
_.f.onKeyUpEvent=function(a){if(!this.ignoreKeyEvent(a))if(_.w("web_speedmaster_spacebar_control")&&a.keyCode===32)this.handlePlayerSpaceKey(a,!0);else{var b=this.getPlayerManager();b&&(b=b.getPlayer())&&b.handleGlobalKeyUp(a.keyCode,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)}};
_.f.getPlayerManager=function(){var a=_.au(),b=_.v().resolve(_.Xi(_.Zt));return a&&b&&b.isOnWatch()?a:null};
_.f.passEventToPlayer=function(a,b){var c=this,d,e,g;return _.l(function(k){if(k.nextAddress==1)return!_.w("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&c.isMiniplayerActive()?d=_.v().resolve(_.$w).getPlayerElement():c.inlinePreviewIsActive?(e=_.mo(c.hostElement,"yt-get-inline-preview-player-action"))&&e[0]&&(d=e[0]):d=_.au(),d?_.p(k,d.getPlayerPromise(),3):k.jumpTo(0);g=k.yieldResult;b?g.handleGlobalKeyUp(a.keyCode,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code,a.repeat):g.handleGlobalKeyDown(a.keyCode,
a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code,a.repeat);a.keyCode!==38&&a.keyCode!==40&&CY(a.keyCode,a.shiftKey,c.isShortsPage);_.ue(k)})};
_.f.focusSearchBox=function(){_.io(this.hostElement,"yt-focus-searchbox")};
_.f.openHotkeyDialog=function(){_.io(this.hostElement,"yt-open-hotkey-dialog")};
_.f.isMiniplayerActive=function(){return _.v().resolve(_.$w).isMiniplayerActive()};
_.f.closeMiniplayer=function(a,b){return this.isMiniplayerActive()?(_.v().resolve(_.$w).close(),CY(a,b,this.isShortsPage),!0):!1};
_.f.toggleTheaterMode=function(a,b){var c=_.JW(_.Yp().getState()),d=this.getPlayerManager(),e=_.w("disable_theater_mode_keyboard")||_.Gi("START_IN_FULL_WINDOW_MODE");d&&!e&&(c=!c,_.eo()&&_.w("external_fullscreen")&&(c=!0),_.lo(this.hostElement,"yt-toggle-theater-mode",[c]),CY(a,b,this.isShortsPage))};
_.f.toggleMiniplayer=function(a,b){var c=this.getPlayerManager();if(this.isMiniplayerActive()){var d;((d=_.v().resolve(_.Xi(_.Zt)))==null?0:d.isOnWatch())?_.v().resolve(_.$w).close(!0):_.CW(_.v().resolve(_.$w));CY(a,b,this.isShortsPage)}else c&&(_.lo(this.hostElement,"yt-activate-miniplayer-from-watch-action"),CY(a,b,this.isShortsPage))};
_.f.handlePlayerSpaceKey=function(a,b){var c=!!_.au()||this.isMiniplayerActive();c=_.w("disable_space_scroll_fix")||c;_.w("global_spacebar_pause")&&!this.isKeyBoardInUse()&&c&&(a.preventDefault(),this.passEventToPlayer(a,b))};
var c1=SNc;c1.prototype.onMiniplayerActiveChange=c1.prototype.onMiniplayerActiveChange;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],c1.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],c1.prototype,"ytdReduxBehavior",void 0);_.U([_.O({selector:_.zFa}),_.W("design:type",Boolean)],c1.prototype,"inlinePreviewIsActive",void 0);_.U([_.O({selector:_.gsc}),_.W("design:type",Boolean)],c1.prototype,"isShortsPage",void 0);
_.U([_.O({selector:_.Hp}),_.W("design:type",Boolean)],c1.prototype,"miniplayerIsActive",void 0);_.U([_.N("miniplayerIsActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],c1.prototype,"onMiniplayerActiveChange",null);c1=_.U([_.Q({disableElementRegistration:!0,is:"yt-hotkey-manager"})],c1);_.S(c1,"yt-hotkey-manager",void 0,{mode:_.as("kevlar_poly_si_batch_j081")?1:2});var TNc=function(){var a=_.P.apply(this,arguments)||this;a.loopStateEntityKey_=null;a.playlistLoopStateEntity_=null;a.isShuffleNextPlaylist=!1;a.JSC$17574_PLAYER_EVENTS_=new Map;a.playerListenersSetup_=!1;a.videoSkipJob_=0;a.canAutoAdvance_=!1;a.playerManager_=null;a.TEST_ONLY={};return a};
_.z(TNc,_.P);_.f=TNc.prototype;_.f.ready=function(){_.v().addProvider({provide:_.TF,useValue:this.hostElement})};
_.f.created=function(){this.JSC$17574_PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.JSC$17574_PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.JSC$17574_PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.JSC$17574_PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.JSC$17574_PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.JSC$17574_PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.f.attached=function(){document.addEventListener("yt-navigate-start",_.gr(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.gr(this,this.onYtNavigateFinish_))};
_.f.detached=function(){document.removeEventListener("yt-navigate-start",_.gr(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.gr(this,this.onYtNavigateFinish_))};
_.f.updatePlaylistEventListeners=function(a,b){b&&!this.playerListenersSetup_?(this.playerManager_=a,this.registerPlaylistEventListeners_(a)):!b&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(a))};
_.f.setPlayer=function(a){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=a};
_.f.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.f.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.f.registerPlaylistEventListeners_=function(a){var b=this;a.getPlayerPromise().then(function(c){b.playerListenersSetup_||(b.ytPlayerListenerBehavior.listenToPlayerEvents(c,b.JSC$17574_PLAYER_EVENTS_),b.playerListenersSetup_=!0)})};
_.f.removePlaylistEventListeners_=function(a){var b=this;a.getPlayerPromise().then(function(c){b.playerListenersSetup_&&(b.ytPlayerListenerBehavior.unlistenFromPlayerEvents(c,b.JSC$17574_PLAYER_EVENTS_),b.playerListenersSetup_=!1)})};
_.f.setPlaylistComponent=function(a){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.gr(this,this.onPlaylistYtNavigate_)),a&&(a.data&&this.playlistComponent.data&&a.data.playlistId==this.playlistComponent.data.playlistId?(a.loopOn=this.playlistComponent.loopOn,a.shuffleOn=this.playlistComponent.shuffleOn):(a.loopOn=!1,a.shuffleOn=!1),this.isShuffleNextPlaylist&&(a.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=a;this.playlistComponent.addEventListener("yt-navigate",
_.gr(this,this.onPlaylistYtNavigate_))};
_.f.setAutoplayRenderer=function(a){this.autoplayData=a};
_.f.setPlaylistData=function(a){this.currentPlaylistData_=a;_.io(this.hostElement,"yt-playlist-data-updated");_.Cf.isEmpty(a)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(a)};
_.f.setPlayerPlaybackControlData=function(a){this.playerManager_&&this.playerManager_.updatePlayerComponents(a.playlistPanelRenderer)};
_.f.getPlaylistData=function(){return this.currentPlaylistData_};
_.f.getTempData_=function(a,b){if(this.playlistComponent==null)return null;a={};this.playlistComponent.shuffleOn&&(a.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(a.loop_on=this.playlistComponent.loopOn);b&&(a.autonav="1",_.v().resolve(_.Ct),b=_.Yk(),b>0&&(a.lact=b),this.playerManager_&&(b=this.playerManager_.getPlayer())&&b.shouldSendVisibilityState()&&(b=b.getVisibilityState(),b!=0&&(a.vis=b)));_.w("enable_unknown_lact_fix_on_html5")&&(_.v().resolve(_.Ct),a.lact=_.Yk());
return a};
_.f.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.f.setLoopStateEntityKey_=function(a){var b;this.loopStateEntityKey_=((b=this.getPlaylistLoopData_(a))==null?void 0:b.playlistLoopStateEntityKey)||null};
_.f.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.f.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.f.skipVideo=function(){var a=this,b=_.w("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||b)b=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.zu(_.zk,function(){a.onPlaylistNext();a.videoSkipJob_=0},b)};
_.f.cancelVideoSkip=function(){this.videoSkipJob_&&(_.zk.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.f.isInBackground_=function(){var a=window.document.visibilityState;return!(!a||a=="visible")};
_.f.onPlaylistIndex_=function(a){this.playlistComponent&&(a=this.playlistComponent.data.contents[a].playlistPanelVideoRenderer.navigationEndpoint,_.io(this.hostElement,"yt-navigate",{endpoint:a,tempData:this.getTempData_(a)}))};
_.f.onPlayerStateChange_=function(a){if(a=a==0&&this.playlistComponent&&this.canAutoAdvance_)a=_.fF.getInstance(),a=!(a.autonavState_===3?a.autonavPauseReason_&&a.autonavPauseReason_.inputBoxFocus===!0:a.autonavState_===1&&a.disabledAutonavPauseReason_&&a.disabledAutonavPauseReason_.inputBoxFocus===!0);a&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.f.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.f.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.f.navigateToAutoplayWatchEndpoint_=function(a,b,c){var d=this.playlistComponent.data.currentIndex,e=this.getNumPlayableVideos_();a=="NORMAL"&&b=="autoplayVideo"&&d+1>=e&&c||!(a=this.getVideoEndpoint_(a,b))||(c=this.getTempData_(a,c),_.io(this.hostElement,"yt-navigate",{endpoint:a,tempData:c}))};
_.f.getNumPlayableVideos_=function(){for(var a=0,b=_.h(this.playlistComponent.data.contents||[]),c=b.next();!c.done;c=b.next())c.value.playlistPanelVideoRenderer&&(a+=1);return a};
_.f.getVideoEndpoint_=function(a,b){if(this.autoplayData&&this.autoplayData.sets)for(var c=0,d=this.autoplayData.sets.length;c<d;c++){var e=this.autoplayData.sets[c];if(e.mode==a){if(e[b])return e[b];break}}else a=new _.qj("AutoplayData is undefined in playlist manager","Mode: "+a+" endpoint: "+b),_.Dl(a)};
_.f.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.f.onPlaylistYtNavigate_=function(a){if(a.detail.endpoint){a.stopPropagation();var b=a.detail;b.tempData=this.getTempData_(a.detail.endpoint);_.io(this.hostElement,"yt-navigate",b)}};
_.f.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.f.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.f.playlistLoopStateEntityChanged_=function(a){var b=this,c,d,e;return _.l(function(g){if(g.nextAddress==1){if(!a)return g.return();c=a.state==="PLAYLIST_LOOP_STATE_ONE";return b.playerManager_?_.p(g,b.playerManager_.getPlayerPromise(),3):g.jumpTo(2)}g.nextAddress!=2&&(d=g.yieldResult,d.setLoopVideo(c));e=a.state==="PLAYLIST_LOOP_STATE_ALL";b.playlistComponent&&(b.playlistComponent.loopOn=e);_.ue(g)})};
_.f.getPlaylistLoopData_=function(a){var b,c;if(a=a==null?void 0:(b=a.playlistButtons)==null?void 0:(c=b.menuRenderer)==null?void 0:c.topLevelButtons)for(b=_.h(a),c=b.next();!c.done;c=b.next())if(c=c.value,c.playlistLoopButtonRenderer)return c.playlistLoopButtonRenderer};
_.f.getLoopStateCommand_=function(a){var b=this.getPlaylistData(),c;b=((c=this.getPlaylistLoopData_(b))==null?void 0:c.states)||[];var d;a=(d=_.y(b[a?1:2],_.EAb))==null?void 0:d.button;var e;return(e=_.y(a,_.RE))==null?void 0:e.command};
_.f.onPlayerLoopChange_=function(a){this.playlistLoopStateEntity_&&(a?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(a=this.getLoopStateCommand_(a))&&this.ytComponentBehavior.resolveCommand(a)};
_.f.onSleepTimerSettingsChanged_=function(a){this.canAutoAdvance_=a!=="End of video"};
var d1=TNc;d1.prototype.onPlaylistLoopStateEntityChanged=d1.prototype.onPlaylistLoopStateEntityChanged;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],d1.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.bJ.YtPlayerListenerBehavior),_.W("design:type",_.cJ)],d1.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],d1.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],d1.prototype,"loopStateEntityKey_",void 0);
_.U([_.O({selectorArgs:["loopStateEntityKey_"],selector:_.rVa}),_.W("design:type",Object)],d1.prototype,"playlistLoopStateEntity_",void 0);_.U([_.N("playlistLoopStateEntity_"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d1.prototype,"onPlaylistLoopStateEntityChanged",null);d1=_.U([_.Q({disableElementRegistration:!0,is:"yt-playlist-manager"})],d1);_.S(d1,"yt-playlist-manager",void 0,{mode:_.as("kevlar_poly_si_batch_j081")?1:2});var UNc,VNc=function(){if(UNc!==void 0)return UNc;var a=document.createElement("template");_.B(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-third-party-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return UNc=a};var WNc=function(){var a=_.P.apply(this,arguments)||this;a.lastCallback=null;a.getAccountLinkPromises={};a.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);a.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return a};
_.z(WNc,_.P);_.f=WNc.prototype;_.f.getLocation=function(){return window.location.href};
_.f.getCompletionUrl=function(){return _.$n(this.getLocation())};
_.f.containsRedirectState=function(a){return(a=_.Pw(_.YUa(a)))?(new URLSearchParams(a)).get("redirect_state")!==null:!1};
_.f.createGalConfig=function(a,b){var c=new PDc;a=c=b?this.getPopupOrRedirectSetting(c,_.Fi("LINK_API_KEY"),_.Fi("LINK_API_KEY_REDIRECT"),a):QDc(c,_.Fi("LINK_API_KEY"));a.authUser=_.Fi("SESSION_INDEX")||0;a.supportedFlows=new Set([4]);return a.build()};
_.f.getPopupOrRedirectSetting=function(a,b,c,d){this.isGalInteractionPopupMode(d)?(a.interactionMode=0,a=QDc(a,b)):(a.interactionMode=1,b=this.getCompletionUrl(),a.completionUrl=b,a=QDc(a,c));return a};
_.f.isGalInteractionPopupMode=function(a){if(this.redirectModeProviderAllowlist.has(a))switch(a){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!_.w("main_web_redirect_integration_riot");default:return!1}return!0};
_.f.getStatusEntityKeyForProviderId=function(a){return _.mp(a+":all","accountLinkStatusEntity")};
_.f.findNestedPropValue=function(a,b){var c=!1,d=null;JSON.stringify(a,function(e,g){c||e!==b||(c=!0,d=g);return c?null:g});
return d};
_.f.findAccountLinkButtonViewModel=function(a,b){var c=null,d=!1;JSON.stringify(a,function(e,g){d||g.accountLinkStatusEntityKey!==b||g.accountLinkStatusSecondaryEntityKey||(d=!0,c=g);return d?null:g});
return c};
_.f.executeLinkingSuccessOrFailureCommands=function(a,b,c){var d=null,e;(b==null?0:(e=b.url)==null?0:e.includes("account_sharing"))?d=b==null?void 0:b.response:d=b==null?void 0:b.response;(b=this.findAccountLinkButtonViewModel(d,a))?(a=c?this.findNestedPropValue(b,"onSuccessCommand"):this.findNestedPropValue(b,"onFailureCommand"))?_.so([a],this.hostElement):_.Ki(Error("gl")):_.Ki(Error("hl`"+a))};
_.f.handleInitializeRequest=function(a,b){var c=this,d=jvc(this.createGalConfig(a,!0));this.containsRedirectState(this.getLocation())?Xuc(a,d.config,d.galService).then(function(e){var g=c.getStatusEntityKeyForProviderId(a);if(e.statusCode===1)b&&c.executeLinkingSuccessOrFailureCommands(g,b,!0),e=c.getLocation().indexOf("#"),e!==-1&&window.history.pushState(null,"",c.getLocation().substring(0,e));else return b&&c.executeLinkingSuccessOrFailureCommands(g,b,!1),Promise.reject(Error(e.statusMessage))}).catch(function(e){_.Dl(e);
_.xl("gamingAccountLinkStatusChanged",{serviceId:a,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(e)}):this.getAccountLinkPromises[a]=d.startLinkingSession({serviceId:a})};
_.f.handleAccountLinkCommand=function(a){_.y(a,QJc)&&this.handleLinkRequest(_.y(a,QJc))};
_.f.handleLinkRequest=function(a){var b=this,c=a.thirdPartyId;if(c)if(this.isGalInteractionPopupMode(c)){var d=function(){b.closeAndFire("ytd-gaming-account-link-setting-renderer",a.onFailureCommand)},e=function(){b.closeAndFire("ytd-gaming-account-link-setting-renderer",a.onSuccessCommand)};
this.lastCallback=e;this.getAccountLinkPromises[c].then(function(g){vEc(g).then(function(k){k.statusCode===1?e():d()})}).catch(function(){d()})}else this.getAccountLinkPromises[c].then(function(g){vEc(g).then(function(k){if(k.statusCode!==1)return Promise.reject(Error(k.statusMessage))})}).catch(function(g){_.Dl(g);
_.xl("gamingAccountLinkStatusChanged",{serviceId:c,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(g)})};
_.f.closeAndFire=function(a,b){_.lo(this.hostElement,"yt-close-popup-action",[a]);b&&_.so([b],this.hostElement)};
_.f.handleAccountUnlinkCommand=function(a){_.y(a,RJc)&&this.handleUnlinkRequest(_.y(a,RJc))};
_.f.handleUnlinkRequest=function(a){var b=this,c=a.thirdPartyId;if(c){var d=function(){b.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",a.onFailureCommand)},e=function(){b.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",a.onSuccessCommand)};
this.lastCallback=e;var g=jvc(this.createGalConfig(c,!1));this.unlinkUserGal(g,c).then(function(k){k.statusCode===1?e():d()}).catch(function(){d()})}};
_.f.unlinkUserGal=function(a,b){return a.deleteLink(b)};
_.f.handleLogAccountLinkingEventCommand=function(a){_.w("enable_gel_log_commands")&&_.y(a,SJc)&&(a=_.y(a,SJc).event)&&_.xl("gamingAccountLinkStatusChanged",a)};
_.Um.Object.defineProperties(WNc,{template:{configurable:!0,enumerable:!0,get:function(){return VNc()}}});
var e1=WNc;_.U([_.H(_.pH.YtOpenPopupBehavior),_.W("design:type",Object)],e1.prototype,"ytOpenPopupBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],e1.prototype,"ytActionHandlerBehavior",void 0);e1=_.U([_.Q({disableElementRegistration:!0,is:"ytd-third-party-manager"})],e1);_.S(e1,"ytd-third-party-manager",function(){return VNc()},{mode:_.as("kevlar_poly_si_batch_j081")?1:2});var XNc,YNc=function(){return XNc!==void 0?XNc:XNc=document.createElement("template")};
document.head.appendChild(YNc().content);var ZNc,$Nc=function(){if(ZNc!==void 0)return ZNc;var a=document.createElement("template");_.B(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.pages.ytd_page_manager.ytd.page.manager.transitions.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");a.content.insertBefore(YNc().content.cloneNode(!0),a.content.firstChild);a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return ZNc=a};var aOc=_.hx(["\n          :root {\n            --page-manager-transition-exit-ms: ","ms;\n            --page-manager-transition-wait-ms: ","ms;\n            --page-manager-transition-enter-ms: ","ms;\n          }\n      "]),bOc=function(){var a=_.P.apply(this,arguments)||this;a.currentPage=void 0;a.renderLoadingStateJobId=0;a.updatePageDataJobId=0;a.pageDisposeJobsets=new WeakMap;a.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-get-page-offset":"getPageOffset",
"yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose","yt-stop-old-player":"onYtStopOldPlayer"};a.applyZoomTransition=_.aj("web_page_transition_type")==="zoom";a.applySlideTransition=_.aj("web_page_transition_type")==="slide";a.TEST_ONLY=void 0;return a};
_.z(bOc,_.P);_.f=bOc.prototype;_.f.ready=function(){var a=_.v();a.addProvider({provide:_.Zt,useValue:this});a.addProvider({provide:_.Ndc,useValue:this})};
_.f.created=function(){this.pagePool=new sNc;this.contextSwitcher=new DMc};
_.f.attached=function(){_.io(this.hostElement,"attached");var a=_.v().resolve(_.Xi(_.xq));a&&(this.contextSwitcher.JSC$17395_networkService_=a);this.viewTransitionManager=_.v().resolve(_.Xi(_.Njc));this.setupPageTransitionAnimation()};
_.f.getPageOffset=function(a){return a.getScrollTop()};
_.f.setPageOffset=function(a,b){try{a.setScrollTop(b)}catch(c){}};
_.f.setPageOffsetForNavigation=function(a,b){_.io(this.hostElement,"yt-navigate-set-page-offset",{page:a,offset:b===void 0?0:b})};
_.f.pauseActiveContext=function(){var a=this.contextSwitcher;a.activeContext_&&a.activeContext_.pause()};
_.f.getModuleNameForType=function(a){return a==="watch"?_.w("kevlar_watch_fixie")?"watchFixie":_.w("kevlar_watch_grid")?"watchGrid":"watchFlexy":a==="shorts"||a==="search"?a:"browse"};
_.f.attachPage=function(a){var b,c=!_.w("pc_is_attached_ks")&&(a==null?void 0:(b=a.polymerController)==null?void 0:b.isAttached);if(!a.isAttached&&!c)try{_.E(this.hostElement).appendChild(a)}catch(e){var d;_.Dl(new _.qj("Error attaching page element for component",{origin:(d=this.currentPage)==null?void 0:d.is,component:a.is}))}};
_.f.setActivePage=function(a){var b=this,c=!1,d=function(){var e=b.isOnWatch(),g=b.currentPage;if(a)if(a!==b.currentPage){g&&(g.hidden=!0,g.active=!1,g.removeAttribute("role"));b.currentPage=a;var k,m=vY((k=b.data)==null?void 0:k.endpoint);g&&_.io(b.hostElement,"yt-page-type-changed",{oldPageType:g.is,newPageType:a.is,newPageSubtype:m});_.Kr().dispatch(_.hp({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:a.is}));_.Kr().dispatch(_.hp({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:m||""}));a.hidden=
!1;b.attachPage(a);a.active=!0;a.setAttribute("role","main");g&&b.setPageOffsetForNavigation(a,0);_.w("kevlar_remove_page_dom_on_switch")&&!e&&g&&_.E(b.hostElement).removeChild(g)}else c=!0;else e=new _.qj("Unable to set active page",g?g.is:"unknown origin",(m=b.data)==null?void 0:m.endpoint),_.Bl(e)};
this.viewTransitionManager?PBc(this.viewTransitionManager,d,this.viewTransitionConfigForSetActivePage(this.currentPage,a)):d();return c};
_.f.viewTransitionConfigForSetActivePage=function(a,b){return _.w("web_thumbnail_to_watch_transition")&&(a==null?void 0:a.is)==="ytd-browse"&&this.isWatchPage(b)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(a==null?void 0:a.is)==="ytd-browse"&&(b==null?void 0:b.is)==="ytd-browse"&&a!==b?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.f.updatePageData=function(a){var b=this,c=this.data;this.updatePageDataJobId&&_.zk.cancelJob(this.updatePageDataJobId);this.data=a;return new _.il(function(d){var e=function(){a.filler?b.performDataUpdate(a,c):gBc(function(){b.performDataUpdate(a,c)});
var n=_.VF();_.WF(n,"cr")||n.processSignal("cr");d()},g=function(){a&&a.page==="watch"?b.updatePageDataJobId=_.zu(_.zk,e):e()};
if(_.w("kevlar_enable_mss_page_modules_client")&&a){var k=_.v().resolve(_.bx),m=b.getModuleNameForType(a.page);(k=NBc(k,[m]))?k.then(g):g()}else g()})};
_.f.isDownloadsPage=function(a){var b,c;return(a==null?void 0:(b=a.endpoint)==null?void 0:(c=b.browseEndpoint)==null?void 0:c.browseId)==="FEdownloads"};
_.f.setPlayerSyncInterval=function(a){var b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,_.v().resolve(_.fu),2);b=c.yieldResult;b.setUpPositionSyncInterval(a);_.ue(c)})};
_.f.performDataUpdate=function(a,b){_.w("kevlar_early_popup_close")||_.lo(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var c=!a.filler;c&&(_.Lo("lps"),_.w("config_age_report_killswitch")||xtc());var d=qY(a),e,g=!1;if(_.w("kevlar_remove_page_dom_on_switch")){var k=b&&qY(b);d===k&&(e=this.getCurrentPage())}e||(e=V0(this.pagePool,d));c&&jBc(this.pagePool.elementPoolPopulator,d);c&&!this.renderLoadingStateJobId&&(g=this.setActivePage(e));if(e){k=d==="watch";var m=
d==="shorts";_.w("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(e);if(k||m)e.playerData=a.playerResponse;if(m){a.reelWatchSequenceResponse?e.reelWatchSequenceResponse=a.reelWatchSequenceResponse:a.cachedReelWatchSequenceResponse&&(e.reelWatchSequenceResponse=a.cachedReelWatchSequenceResponse);e.currentEndpoint=a.endpoint;var n;e.isPreviousPageShorts=!!(b==null?0:(n=b.endpoint)==null?0:n.reelWatchEndpoint);a.cachedReelWatchSequenceResponse=a.reelWatchSequenceResponse||
a.cachedReelWatchSequenceResponse||(b==null?void 0:b.cachedReelWatchSequenceResponse);e.cachedReelWatchSequenceResponse=a.cachedReelWatchSequenceResponse}n=this.isDownloadsPage(a);var r=this.isDownloadsPage(b);n&&!r?this.setPlayerSyncInterval(6E5):!n&&r&&this.setPlayerSyncInterval();_.w("block_all_player_prefetch_requests")||this.preparePrefetchRequest(a,e,c,k,m);QBc(_.v().resolve(_.$w),b,a);_.dWb(_.v().resolve(_.Ct));_.w("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(e);
c?(c=typeof e.loadPage,c==="function"?(e.pageContext=EMc(this.contextSwitcher,e,e.data!==a.response),b=function(){e.loadPage(a.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&e.is==="ytd-browse"&&g?this.applySlideTransition?PBc(this.viewTransitionManager,b,{transitionName:"slide"}):PBc(this.viewTransitionManager,b,{transitionName:"zoom"}):b()):_.Cl(new _.qj("b/38014653 ",[d,
e.is,e.nodeName,c,e.isAttached,b&&qY(b),this.hostElement.children.length])),_.Lo("pdl")):(e.hidden=!0,a.response.filler=!0,e.data=a.response,this.attachPage(e));_.io(this.hostElement,"yt-page-data-updated",{pageType:d})}_.sl(_.zk,function(){_.w("logging_avoid_blocking_during_navigation")&&_.Pta().transition("none");var t=TMc(),u=e;if(a){var x=axc(a),A=bxc(a),C;a:{if(a.playerResponse){var F=a.playerResponse,J;if((C=F.auxiliaryUi)==null?0:(J=C.messageRenderers)==null?0:J.upsellDialogRenderer){C=F.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(a.response&&(C=a.response,(F=C.overlay)==null?0:F.upsellDialogRenderer)){C=C.overlay.upsellDialogRenderer;break a}C=void 0}var I;var R;J=(I=a.playerResponse)==null?void 0:(R=I.auxiliaryUi)==null?void 0:R.messageRenderers;I=(J==null?void 0:J.enforcementMessageViewModel)||(J==null?void 0:J.bkaEnforcementMessageViewModel);I=(I==null?void 0:I.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?I:void 0;var da;a:{if(a.response&&(R=a.response,(da=R.overlay)==null?0:da.commandWrapperPromoRenderer)){da=
R.overlay.commandWrapperPromoRenderer;break a}da=void 0}SMc(t,x,A,C,I,da,u)}})};
_.f.preparePrefetchRequest=function(a,b,c,d,e){var g,k,m,n,r,t,u,x,A,C,F,J,I,R,da;return _.l(function(V){if(V.nextAddress==1)return!c||!d&&!e||_.w("kevlar_disable_background_prefetch")&&_.Ii(_.HCa)()===0?V.return():(g=_.$t(b))?_.p(V,g.getPlayerPromise(),2):V.return();k=V.yieldResult;m=_.v().resolve(_.Xi(_.xq));if(!m)return V.return();if(e)return n=_.tw(_.qG),qBc(n,(r=a.endpoint)==null?void 0:r.reelWatchEndpoint,b.reelWatchSequenceResponse,k,m),V.return();x=(t=a.response)==null?void 0:(u=t.responseContext)==
null?void 0:u.webResponseContextExtensionData;if(!x)return V.return();I=(A=a.response)==null?void 0:(C=A.contents)==null?void 0:(F=C.twoColumnWatchNextResults)==null?void 0:(J=F.autoplay)==null?void 0:J.autoplay;R=_.v().resolve(_.TF);da=_.tw(_.qG);rBc(da,x,k,m,R,I);_.ue(V)})};
_.f.movePlayerToWatch=function(a){var b=this,c,d;return _.l(function(e){c=V0(b.pagePool,"watch");d=c.getPlayerContainer();a.appendTo(d);_.ue(e)})};
_.f.movePlayerToShorts=function(a){var b=this,c,d,e;return _.l(function(g){c=V0(b.pagePool,"shorts");d=c.getPlayerContainer();(e=a)==null||e.appendTo(d,void 0,!0);_.ue(g)})};
_.f.getPlayerFromWatch=function(){var a=V0(this.pagePool,"watch");return _.$t(a)};
_.f.getPlayerFromShorts=function(){var a=V0(this.pagePool,"shorts");return _.$t(a)};
_.f.startLoadingWatch=function(){var a=V0(this.pagePool,"watch");this.renderLoadingStateJobId?(_.zk.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(a)};
_.f.startLoadingShorts=function(){var a=V0(this.pagePool,"shorts");this.setActivePage(a)};
_.f.getCurrentPage=function(){return this.currentPage};
_.f.getDestinationPageType=function(){return this.destinationPageType};
_.f.getCurrentData=function(){return this.data};
_.f.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.f.isOnShorts=function(){var a;return((a=this.currentPage)==null?void 0:a.is)==="ytd-shorts"};
_.f.isWatchPage=function(a){return!!a&&(a.is==="ytd-watch-flexy"||a.is==="ytd-watch-fixie"||a.is==="ytd-watch-grid")};
_.f.preparePage=function(a,b){var c=this,d=function(){var k=c.pagePool.preparePage(a,c.currentPage,b);k&&c.attachPage(k)},e=function(k){_.El(k,b);
_.Dl(k)};
if(_.w("kevlar_enable_mss_page_modules_client")){var g=this.getModuleNameForType(a);if(g=NBc(_.v().resolve(_.bx),[g])){g.then(d.bind(this)).catch(e.bind(this));return}}try{d()}catch(k){e(k)}};
_.f.lazyPrepareCriticalPages=function(a,b){a=vY(b)||a;_.w("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(a).then(this.maybePrepareWatchPage.bind(this,a)):this.maybePrepareWatchPage(a)};
_.f.maybePrepareWatchPage=function(a){a!=="watch"&&_.sl(_.zk,this.preparePage.bind(this,"watch"))};
_.f.downloadPageModules=function(a){a=this.getModuleNameForType(a);var b=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);b.delete(a);var c=_.v().resolve(_.bx);c.JSC$16130_loadModules(a);return c.JSC$16130_loadModules.apply(c,_.De(b))};
_.f.renderPageLoadingState=function(a,b){this.preparePage(a,b);var c=V0(this.pagePool,a);c.loadingData&&(c.loadingData.endpoint=b);c.loading=!0;this.setActivePage(c);a==="watch"&&_.io(this.hostElement,"yt-guide-close")};
_.f.prepareForNavigation=function(a,b){var c=this;if(this.currentPage&&this.data){var d=vY(b)||a;this.destinationPageType=d;qY(this.data)==d&&_.io(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(a==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.zk.cancelJob(this.renderLoadingStateJobId);_.v().resolve(_.$w).deactivate(b);var e=this.data;this.renderLoadingStateJobId=_.Gu(_.zk,function(){if(c.data!=e){var g=V0(c.pagePool,a);c.setActivePage(g)}else c.renderPageLoadingState(a,
b);c.renderLoadingStateJobId=0},150)}};
_.f.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var a=new _.bH(1);this.currentPage.pageDisposeJobs.forEach(function(b){_.cH(a,b)});
this.pageDisposeJobsets.set(this.currentPage,a)}};
_.f.flushPageDisposeJobset=function(a){var b=this.pageDisposeJobsets.get(a);b&&(b.flushJobs(),this.pageDisposeJobsets.delete(a))};
_.f.onYtStopOldPlayer=function(a,b){b=b===void 0?!1:b;var c,d=_.bj("kevlar_new_stop_old_player_logic_pages");if(_.w("kevlar_check_current_page_on_stop_old_player")&&(d.length===0||this.currentPage&&d.includes(this.currentPage.is)))if(this.data&&(c=qY(this.data)),qY(a)===c&&this.currentPage&&qY(this.currentPage.data)!==c)var e=_.$t(this.currentPage);else c=qY(this.data),e=V0(this.pagePool,c),e=_.$t(e);else this.data&&(c=qY(this.data),e=V0(this.pagePool,c),e=_.$t(e));if(e)if(a=qY(a),d=V0(this.pagePool,
a),d=_.$t(d),e==d)b&&!_.w("kevlar_disable_preemptive_player_reset")&&e.resetForNewPlayback();else if(b=c==="watch"&&a!=="watch",!b||a==="shorts"||_.aJb()&&!ssc(this.data)&&a!=="yts-products"&&a!="mini_app"&&a!="playables")c=_.v().resolve(_.$w),b&&c.isMiniplayerActive()&&c.pipController.getWindow()||e.stop()};
_.f.setupPageTransitionAnimation=function(){var a=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){AZ(this.viewTransitionManager,"slide",{beforeTransition:function(){a.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){a.hostElement.style.viewTransitionName=""}});
AZ(this.viewTransitionManager,"zoom",{beforeTransition:function(){a.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){a.hostElement.style.viewTransitionName=""}});
var b=_.$i("web_page_transition_exit_ms"),c=_.$i("web_page_transition_wait_ms"),d=_.$i("web_page_transition_enter_ms");if(!isNaN(b)||!isNaN(c)||!isNaN(d))if(b=Asc(aOc,b,c,d))c=document.createElement("style"),c.textContent=_.Uda(b),document.head.appendChild(c)}};
_.Um.Object.defineProperties(bOc,{template:{configurable:!0,enumerable:!0,get:function(){return $Nc()}}});
var cOc=bOc;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],cOc.prototype,"ytActionHandlerBehavior",void 0);cOc=_.U([_.Q({disableElementRegistration:!0,is:"ytd-page-manager"})],cOc);_.S(cOc,"ytd-page-manager",function(){return $Nc()},{mode:_.as("kevlar_poly_si_batch_j081")?1:2});var f1=function(a,b,c){c=c===void 0?!1:c;_.vg.call(this);this.draggableElement=a;this.callbacks=b;this.allowClicks=c;this.dragOccurred=!1;this.internalDragger=new _.VA(this.draggableElement);this.dragDelay=new _.Xm(this.delayedDrag.bind(this));dOc(this);this.allowClicks&&(_.Mkb(this.internalDragger,5),a.addEventListener("click",_.gr(this,this.validateClick),{capture:!0}))};
_.z(f1,_.vg);var dOc=function(a){_.rs(a.internalDragger,"earlycancel",function(){a.allowClicks&&(a.dragOccurred=!1)});
_.rs(a.internalDragger,"start",function(b){var c,d;(d=(c=a.callbacks).onStartDrag)==null||d.call(c,b);!b.defaultPrevented&&a.allowClicks&&(a.dragOccurred=!0)});
_.rs(a.internalDragger,"beforedrag",function(b){b.preventDefault();a.lastOffset=new _.Ef(b.clientX-a.internalDragger.startX,b.clientY-a.internalDragger.startY);a.dragDelay.start()});
_.rs(a.internalDragger,"end",function(){a.dragDelay.stop();var b,c;(c=(b=a.callbacks).onEndDrag)==null||c.call(b);a.lastOffset=void 0})};
f1.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
f1.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.gr(this,this.validateClick),{capture:!0})};
f1.prototype.validateClick=function(a){this.dragOccurred&&(this.dragOccurred=!1,a.stopPropagation(),a.preventDefault())};var g1=function(a,b){_.vg.call(this);this.JSC$17596_resizeContainer=a;this.callbacks=b;this.aspectRatio=16/9;this.JSC$17596_resizers=[];a=_.h(this.JSC$17596_resizeContainer.children);for(b=a.next();!b.done;b=a.next())eOc(this,b.value)};
_.z(g1,_.vg);g1.prototype.disposeInternal=function(){for(var a=_.h(this.JSC$17596_resizers),b=a.next();!b.done;b=a.next())b.value.dispose();a=_.h(this.JSC$17596_resizeContainer.children);for(b=a.next();!b.done;b=a.next())b.value.setAttribute("disabled","");this.JSC$17596_resizers.length=0};
g1.prototype.setSize=function(a){this.currentMiniplayerSize=a};
g1.prototype.setAspectRatio=function(a){this.aspectRatio=a};
g1.prototype.update=function(a,b){for(var c=_.h(this.JSC$17596_resizeContainer.children),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.getAttribute("alignment");_.cr(d,"disabled",e===a||e===b)}};
var eOc=function(a,b){var c=b.getAttribute("alignment"),d=new f1(b,{onStartDrag:function(e){if(b.hasAttribute("disabled"))e.preventDefault();else{a.dragStartSize=a.currentMiniplayerSize;var g,k;(k=(g=a.callbacks).onStartResize)==null||k.call(g)}},
onDrag:function(e){if(a.dragStartSize){c!=="north"&&c!=="west"||e.scale(-1);var g=c==="north"||c==="south";e=g?e.y:e.x;g&&a.aspectRatio>=1?e*=a.aspectRatio:!g&&a.aspectRatio<1&&(e/=a.aspectRatio);a.callbacks.onResize(a.dragStartSize+e)}}});
a.JSC$17596_resizers.push(d)};var fOc,gOc=function(){return fOc!==void 0?fOc:fOc=document.createElement("template")};
document.head.appendChild(gOc().content);var hOc;var iOc=_.Rr(function(a){var b=_.Pl(),c=a.onDrag,d=a.onDragStart,e=a.onDragEnd,g=_.Or(a,{allowClicks:!1,dragThreshold:5}),k=g.dragThreshold,m=g.allowClicks;a=g.children;g=g.className;var n=void 0,r=void 0,t=new _.Ef(0,0),u=!1;_.wi(function(){n=new _.VA(b.value);r=new _.Xm(A);x(n,r);if(m()){_.Mkb(n,k());var F;(F=b.value)==null||F.addEventListener("click",C,{capture:!0})}_.zh(function(){var J;(J=n)==null||J.dispose();if(m()){var I;(I=b.value)==null||I.removeEventListener("click",C,{capture:!0})}})});
var x=function(F,J){_.rs(F,"earlycancel",function(){m()&&(u=!1)});
_.rs(F,"start",function(I){d==null||d(I);I.defaultPrevented||m()&&(u=!0)});
_.rs(F,"beforedrag",function(I){n&&r&&(I.preventDefault(),t=new _.Ef(I.clientX-n.startX,I.clientY-n.startY),r.start())});
_.rs(F,"end",function(){J.stop();e==null||e();t=new _.Ef(0,0)})},A=function(){t&&c(t)},C=function(F){u&&(u=!1,F.stopPropagation(),F.preventDefault())};
return _.q("yt-draggable",{el:b,class:_.et("ytDraggableComponentHost",g)},a)},"Hf");var jOc=_.Rr(function(a){var b=_.h(_.ih(0,void 0,"Pf10wb")),c=b.next().value,d=b.next().value;b=function(e){var g={},k={};return _.q(iOc,{className:_.et("ytdMiniplayerComponentResizer",(g.ytdMiniplayerComponentResizerDisabled=function(){return e===a.horizontalAlignment()||e===a.verticalAlignment()},g.ytdMiniplayerComponentResizerNorth=e==="north",g.ytdMiniplayerComponentResizerEast=e==="east",g.ytdMiniplayerComponentResizerSouth=e==="south",g.ytdMiniplayerComponentResizerWest=e==="west",g)),
onDragStart:function(){d(a.currentMiniplayerSize())},
onDrag:function(m){e!=="north"&&e!=="west"||m.scale(-1);var n;m=(n=e==="north"||e==="south")?m.y:m.x;var r=a.currentAspectRatio();n&&r>=1?m*=r:!n&&r<1&&(m/=r);n=m;a.onResize(c()+n)}},_.q("div",{class:_.et("ytdMiniplayerComponentResizerCorner",(k.ytdMiniplayerComponentResizerNorthCorner=e==="north",k.ytdMiniplayerComponentResizerEastCorner=e==="east",k.ytdMiniplayerComponentResizerSouthCorner=e==="south",k.ytdMiniplayerComponentResizerWestCorner=e==="west",k))}))};
return _.q("div",{class:"ytdMiniplayerComponentResizers"},b("north"),b("east"),b("south"),b("west"))},"If");var kOc=16/9,lOc=_.Rr(function(){var a=_.Pl(),b=_.h(_.ih(new _.rf(NaN,NaN),void 0,"yxHohf")),c=b.next().value,d=b.next().value;b=_.h(_.ih(!1,void 0,"ku1l7c"));var e=b.next().value,g=b.next().value;b=_.h(_.ih(!1,void 0,"pbOm3b"));var k=b.next().value,m=b.next().value;b=_.h(_.ih(!1,void 0,"LqfsYc"));var n=b.next().value,r=b.next().value;b=_.h(_.ih(!1,void 0,"wYZnZe"));var t=b.next().value,u=b.next().value;b=_.h(_.ih(!1,void 0,"KVndGb"));var x=b.next().value,A=b.next().value;b=_.h(_.ih(!1,void 0,"ofTiZe"));
var C=b.next().value,F=b.next().value;b=_.h(_.ih(kOc,void 0,"bpheWd"));var J=b.next().value,I=b.next().value,R=_.h(_.ih(!1,void 0,"MIV0Jb"));b=R.next().value;var da=R.next().value;R=_.h(_.ih(!1,void 0,"Y2idSc"));var V=R.next().value,fa=R.next().value;R=_.h(_.ih(void 0,void 0,"IuZWBb"));var aa=R.next().value,ma=R.next().value;R=_.h(_.ih(_.Fi("HTML_DIR")==="rtl"?"west":"east",void 0,"nLgCTd"));var Ba=R.next().value,Ca=R.next().value;R=_.h(_.ih("south",void 0,"mV91if"));var ya=R.next().value,Ia=R.next().value;
R=_.h(_.ih(400,void 0,"OwmImd"));var db=R.next().value,lb=R.next().value,Ua=_.v().resolve(_.$w).miniplayerPropSignalMap[0],Vb=Ua.data,rb=Ua.externalPlaylistData;R=Ua.toastData;var sb=Ua.playabilityStatus,yc=Ua.isDisabled,Mb=Ua.watchWhile;Ua=_.h(_.nt(Ua.isReadyToResume));var ub=Ua.next().value,Db=Ua.next().value,Wc;_.wi(function(){d(_.tq());a.value.addEventListener("animationend",function(ab){ab.target===a.value&&(A(!1),F(!1))})});
_.Ol("yt-window-resized",function(ab){ab&&d(ab)});
var Mc=function(){Wc&&I(Wc.getVideoAspectRatio())},ia=function(){if(Wc){var ab=Wc.getPlayerState()===1;
ub()&&ab&&Db(!1)}};
_.Ol("yt-activate-miniplayer",function(ab){var Pa;return _.l(function(mb){if(mb.nextAddress==1)return e()?mb.return():_.p(mb,(Pa=_.v().resolve(_.$w).getPlayerElement())==null?void 0:Pa.getPlayerPromise(),2);Wc=mb.yieldResult;if(!Wc)return mb.return();!V()&&_.w("kevlar_watch_while_v2")&&(Ia(ab&&!_.w("kevlar_watch_while_bottom_align")?"north":"south"),Ca(_.Fi("HTML_DIR")==="rtl"?"west":"east"));var Yb=Wc;Yb.addEventListener("onVideoDataChange",Mc);Yb.addEventListener("onStateChange",ia);I(Wc.getVideoAspectRatio());
g(!0);A(!0);_.ue(mb)})});
_.Ol("yt-deactivate-miniplayer",function(ab){return _.l(function(Pa){g(!1);Db(!1);F(ab);A(!0);if(Wc){var mb=Wc;mb.removeEventListener("onVideoDataChange",Mc);mb.removeEventListener("onStateChange",ia)}_.ue(Pa)})});
var ac=function(){var ab=!!Vb(),Pa=x(),mb=Mb();return(mb===void 0?0:mb)&&_.w("kevlar_watch_while_modern")?!1:ab||Pa},Qb=function(){var ab;
return!((ab=rb())==null||!ab.contents)},Ac=function(){var ab=db();
var Pa=c();Pa=Math.min(Math.min(Pa.width,Pa.height)-32,720);var mb=J(),Yb=ac(),hd=Qb()&&k(),Gb=Math.min(ab,Pa);ab=new _.rf(192,Yb?116:192);mb=rAc(new _.rf(hd?kOc:mb,1),new _.rf(Gb,Yb?Gb-76:Gb));ab.width<=mb.width&&ab.height<=mb.height||(qAc(mb,ab),mb.width=Math.min(mb.width,Pa),mb.height=Math.min(mb.height,Pa));return new _.rf(mb.width,_.Vw(192,mb.height+Axc(Yb,hd),720))},qb=function(){var ab=Ac(),Pa=ac(),mb=Qb()&&k();
return new _.rf(ab.width,ab.height-Axc(Pa,mb))},Cb=function(){var ab=function(Pa){Pa.target===a.value&&t()&&(u(!1),a.value.removeEventListener("transitionend",ab))};
a.value.addEventListener("transitionend",ab);u(!0);m(!k())};
Ua={};return _.q("ytd-miniplayer",{el:a,class:_.et("ytdMiniplayerComponentHost",(Ua.ytdMiniplayerComponentVisible=function(){return e()||x()},Ua.ytdMiniplayerComponentAnimatingSnap=n,Ua.ytdMiniplayerComponentAnimatingPlaylistExpand=t,Ua.ytdMiniplayerComponentAnimatingFade=x,Ua),function(){if(x()){var ab=ya();
var Pa=e(),mb=C();ab=Pa?ab==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":mb?ab==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":ab==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else ab="";return ab}),
style:_.ot({top:function(){return ya()==="north"?"16px":""},
right:function(){return Ba()==="east"?"16px":""},
bottom:function(){return ya()==="south"?"16px":""},
left:function(){return Ba()==="west"?"16px":""},
width:function(){return Ac().width+"px"},
height:function(){return Ac().height+"px"},
transform:function(){var ab=aa();return ab?"translate("+ab.x+"px, "+ab.y+"px)":""}})},_.q("div",{class:"ytdMiniplayerComponentContent"},_.q(iOc,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(ab){var Pa=zxc(Ba(),ya(),c(),Ac(),aa()),mb=qb();Math.abs(ab.clientY-(Pa.y+mb.height))>15?da(!0):ab.preventDefault()},
onDrag:function(ab){ma(ab)},
onDragEnd:function(){var ab=wxc(zxc(Ba(),ya(),c(),Ac(),aa()),c(),Ac()),Pa=yxc(Ba(),ya(),c(),Ac()),mb=yxc(ab.horizontalAlignment,ab.verticalAlignment,c(),Ac());mb=new _.Ef(mb.x-Pa.x,mb.y-Pa.y);var Yb;Pa=Pa.y+(((Yb=aa())==null?void 0:Yb.y)||0)+Ac().height/2;var hd=function(){Ba()===ab.horizontalAlignment&&ya()===ab.verticalAlignment||fa(!0);Ca(ab.horizontalAlignment);Ia(ab.verticalAlignment);ma(void 0)},Gb=function(Tc){Tc.target===a.value&&n()&&(r(!1),hd(),a.value.removeEventListener("transitionend",
Gb))};
da(!1);ya()==="south"&&Pa>c().height?(hd(),_.v().resolve(_.$w).close()):(a.value.addEventListener("transitionend",Gb),r(!0),ma(mb))}},_.q(_.qi,{cond:e,
then:function(){return _.q(_.Sjc,{isDisabled:yc,playabilityStatus:sb,size:qb})}}),_.q(_.qi,{cond:ac,
then:function(){return _.q(_.Qjc,{isReadyToResume:ub,data:Vb,expanded:k,onExpandClick:Cb,playlistData:rb})}}),_.q(_.qi,{cond:b,
then:function(){return _.q("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.q(_.qi,{cond:function(){return Qb()&&k()||t()},
then:function(){return _.q(_.kec,{className:"ytdMiniplayerComponentPlaylistPanel",data:rb,hideHeaderText:!0,withinMiniplayer:!0})}}),_.q("div",{class:"ytdMiniplayerComponentToast"},_.q(_.Tjc,{toastData:R}))),_.q(jOc,{onResize:function(ab){lb(_.Vw(192,ab,720))},
currentAspectRatio:J,currentMiniplayerSize:db,horizontalAlignment:Ba,verticalAlignment:ya}))},"Jf");_.w("ytd_miniplayer_to_wiz")&&_.Ts(lOc,"ytd-miniplayer",{});_.Ts(_.Tjc,"ytd-miniplayer-toast",{props:{toastData:_.VG}});var mOc=16/9,nOc=new _.rf(400,400/mOc),h1=function(){var a=_.P.apply(this,arguments)||this;a.active=!1;a.hasNoData=!1;a.enabled=!1;a.expanded=!1;a.readyToResume=!1;a.disabledState=!1;a.isDisabled=!1;a.externalPlaylistData={};a.premiumBadges=[];a.watchWhile=!1;a.playerState=null;a.verticalAttachment="south";a.horizontalAttachment=_.Fi("HTML_DIR")==="rtl"?"west":"east";a.isAnimatingFade=!1;a.isAnimatingSnap=!1;a.isAnimatingExpand=!1;a.isDragging=!1;a.playerHidden=!1;a.hasPlaylistData=!1;a.closed=!1;
a.expandedClosed=!1;a.isForReadyToResume=!1;a.watchResponse=null;a.player=null;a.playerVe=null;a.expandVe=null;a.closeVe=null;a.readyToResumeCloseVe=null;a.disabledInitialStateIsPlaying=!1;a.PLAYER_EVENTS=new Map;a.aspectRatio=mOc;a.currentMiniplayerSize=400;a.userSetSize=!1;a.userSetPosition=!1;a.userHasDragged=!1;a.maxMiniplayerSize=720;a.transform=new _.Ef(0,0);a.windowDimensions=new _.rf(NaN,NaN);a.dimensions=nOc;a.screenLayer=3;a.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return a};
_.z(h1,_.P);_.f=h1.prototype;_.f.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerViewTransitionTasks()};
_.f.ready=function(){this.setUpDragging();this.setUpResizing()};
_.f.attached=function(){this.onWindowResized(_.tq());this.hostElement.addEventListener("animationend",_.gr(this,this.resetFadingAnimation))};
_.f.detached=function(){this.hostElement.removeEventListener("animationend",_.gr(this,this.resetFadingAnimation))};
_.f.resetFadingAnimation=function(a){a.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.f.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.f.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.f.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var a=_.En(this.screenLayer);this.readyToResumeCloseVe&&a&&_.Vo(a,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.f.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var a=_.En(0),b=_.Dn(0);a&&b&&(_.To(a,b,this.readyToResumeVe),_.Vo(a,[this.readyToResumeVe]))}};
_.f.onMiniplayerRendererChanged=function(){if(this.player&&!_.w("miniplayer_service_controls_disabling")){var a;if(((a=this.miniplayerRenderer)==null?void 0:a.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"){if(!_.w("miniplayer_disabled_open_popup_killswitch")){var b;(a=_.y((b=this.miniplayerRenderer)==null?void 0:b.minimizedEndpoint,_.JE))&&_.v().resolve(_.KJ).openSheet({openPopupActionCommand:{openPopupAction:a}},this.hostElement)}this.disabledState=!0;b=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=
b===-1||b===1||b===3)&&this.player.pauseVideo()}else this.disabledState=!1}};
_.f.onIsDisabledChanged=function(){if(_.w("miniplayer_service_controls_disabling")&&this.isDisabled&&this.player){var a=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=a===-1||a===1||a===3)&&this.player.pauseVideo()}};
_.f.computeDisabledHidden=function(a,b){return _.w("miniplayer_service_controls_disabling")?!b:!a};
_.f.activate=function(a,b){b=b===void 0?!1:b;var c=this,d;return _.l(function(e){if(e.nextAddress==1)return c.setInitialActivatePositioning(b),c.enabled=!0,c.active=!0,c.expanded=!1,c.closed=!1,c.expandedClosed=!1,c.watchWhileHidden||(c.isAnimatingFade=!0),_.v().resolve(_.TF).setPlaylistComponent(c.JSC$17607_playlistPanel),a.appendTo(c.playerContainer),_.p(e,a.getPlayerPromise(),2);d=e.yieldResult;d.setSizeStyle(!1,!0);c.ytPlayerListenerBehavior.listenToPlayerEvents(d,c.PLAYER_EVENTS);c.player=d;
c.watchWhile&&_.w("kevlar_watch_while_minimum_size")&&c.setMiniplayerSize(192);c.setAspectRatio(c.player.getVideoAspectRatio());c.onMiniplayerRendererChanged();c.onIsDisabledChanged();_.ue(e)})};
_.f.setInitialActivatePositioning=function(a){if(!this.userSetPosition&&_.w("kevlar_watch_while_v2")){this.verticalAttachment=a&&!_.w("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.Fi("HTML_DIR")==="rtl"?"west":"east";var b;(b=this.JSC$17607_resizers)==null||b.update(this.horizontalAttachment,this.verticalAttachment)}};
_.f.deactivate=function(a,b){var c=this;return _.l(function(d){if(!c.active)return d.return();a||(c.expanded?c.expandedClosed=!0:c.closed=!0);c.active=!1;c.isForReadyToResume=!1;c.disabledState=!1;b&&_.w("kevlar_watch_while_counterfactual")||(c.isAnimatingFade=!0);c.player&&c.ytPlayerListenerBehavior.unlistenFromPlayerEvents(c.player,c.PLAYER_EVENTS);c.player=null;_.ue(d)})};
_.f.onMetadataTap=function(a){this.expandVe&&(a===void 0||a)&&(a=_.En(this.screenLayer))&&_.Xo(a,this.expandVe);_.CW(_.v().resolve(_.$w))};
_.f.onDisabledTap=function(a){a.target===_.E(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap(),this.disabledState=!1)};
_.f.onPlaylistExpandTap=function(a){if(this.hasPlaylistData){a=_.Rq(a)||[];a=_.h(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;if(b===this.hostElement)break;if(b.classList&&b.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.f.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.gr(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.f.animatedResizePlaylist=function(a){a.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.gr(this,this.animatedResizePlaylist)))};
_.f.getExpandIcon=function(a){return a?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.f.onPlayerVideoDataChange=function(){var a,b=(a=this.player)==null?void 0:a.getVideoAspectRatio();b&&b!==this.aspectRatio&&this.setAspectRatio(b)};
_.f.setAspectRatio=function(a){if(this.active){this.aspectRatio=a;this.updateDimensionsAndResize();var b;(b=this.JSC$17607_resizers)==null||b.setAspectRatio(a)}};
_.f.updateDimensionsAndResize=function(){var a=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),b=this.expanded?mOc:this.aspectRatio,c=new _.rf(192,this.showInfoBar?116:192);a=rAc(new _.rf(b,1),new _.rf(a,this.showInfoBar?a-76:a));c.width<=a.width&&c.height<=a.height||(qAc(a,c),a.width=Math.min(a.width,this.maxMiniplayerSize),a.height=Math.min(a.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&b<=1?Math.max(a.width,a.height)+76:Math.max(a.width,a.height)));this.dimensions=
new _.rf(a.width,this.clamp(a.height+this.getNonPlayerHeight()));this.resize()};
_.f.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var a=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=a.height+"px";var b;(b=this.player)==null||b.setInternalSize(a.width,a.height)};
_.f.getPlayerSize=function(a){var b=Math.max(0,a.height-this.getNonPlayerHeight());return new _.rf(a.width,b)};
_.f.getNonPlayerHeight=function(){var a=0;this.showInfoBar&&(a+=76);this.expanded&&(a+=285);return a};
_.f.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.v().resolve(_.$w).close()};
_.f.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.f.logClosingClick=function(){this.closeVe&&_.Xo(_.En(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.Xo(_.En(this.screenLayer),this.readyToResumeCloseVe)};
_.f.onPlayerExpandMiniplayer=function(){if(this.expandVe){var a=_.En(this.screenLayer);a&&_.Xo(a,this.expandVe)}};
_.f.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var a=this.playerState===1;this.continueWatching&&a&&(this.continueWatching=!1);this.premiumBadges.length&&a&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.f.getScreenLayer=function(){return this.screenLayer};
_.f.logMiniplayer=function(){var a=_.En(this.screenLayer),b=_.Dn(this.screenLayer);a&&b&&this.playerVe&&(_.To(a,b,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.iY(a,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.Vo(a,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.iY(a,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.f.computePlaylistData=function(a,b){return b};
_.f.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.f.updateHeader=function(a,b,c){this.data||(this.data={miniplayerTitle:{simpleText:""},miniplayerSubtitle:{simpleText:""},playlistData:null});a&&this.set("data.miniplayerTitle",a);b&&this.set("data.miniplayerSubtitle",b);c&&this.set("data.watchEndpoint",c);this.set("premiumBadges",[]);this.readyToResume=!1};
_.f.computeExpandButtonHidden=function(a,b,c){return!a||!b||c};
_.f.computePlaylistIndexHidden=function(a,b){return!a||b};
_.f.computePlaylistPanelHidden=function(a,b){return!b&&!a};
_.f.computeExpandButtonLabel=function(a){return a?_.vo("MINIPLAYER_COLLAPSE_LABEL"):_.vo("MINIPLAYER_EXPAND_LABEL")};
_.f.computeDisabledStateCloseButtonLabel=function(){return _.vo("MINIPLAYER_CLOSE",void 0,"Close")};
_.f.onWindowResized=function(a){a&&(a=this.windowDimensions=a,this.maxMiniplayerSize=Math.min(Math.min(a.width,a.height)-32,720),this.updateDimensionsAndResize())};
_.f.setUpResizing=function(){var a=this;this.JSC$17607_resizers||(this.JSC$17607_resizers=new g1(this.JSC$17607_resizeContainer,{onStartResize:function(){a.handleResizeStart()},
onResize:function(b){a.handleResize(b)}}),this.JSC$17607_resizers.setSize(this.currentMiniplayerSize),this.JSC$17607_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.f.handleResizeStart=function(){var a=_.En(this.screenLayer);this.userSetSize||(this.userSetSize=!0,a&&this.resizeVe&&_.Vo(a,[this.resizeVe]));a&&this.resizeVe&&_.Xo(a,this.resizeVe)};
_.f.handleResize=function(a){this.setMiniplayerSize(a);this.updateDimensionsAndResize()};
_.f.setUpDragging=function(){var a=this;this.JSC$17607_dragger||(this.JSC$17607_dragger=new f1(this.draggableContainer,{onStartDrag:function(b){!a.isSafeToDrag(b)||a.isAnimatingSnap?b.preventDefault():a.handleDragStart()},
onDrag:function(b){a.transform=b;a.setTransform(a.transform)},
onEndDrag:function(){a.handleDragEnd()}},!0))};
_.f.handleDragStart=function(){this.isDragging=!0;var a=_.En(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,a&&this.repositionVe&&_.Vo(a,[this.repositionVe]));a&&this.repositionVe&&_.Xo(a,this.repositionVe)};
_.f.handleDragEnd=function(){this.isDragging=!1;var a=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&a>this.windowDimensions.height&&_.v().resolve(_.$w).close();this.animateSnapToCorner()};
_.f.animateSnapToCorner=function(){var a=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),b=this.getNearestAttachments();b=this.getGlobalPositionFromAttachments(b.horizontalAttachment,b.verticalAttachment);a=new _.Ef(b.x-a.x,b.y-a.y);this.isAnimatingSnap=!0;this.setTransform(a);this.hostElement.addEventListener("transitionend",_.gr(this,this.endSnapAnimation))};
_.f.endSnapAnimation=function(a){a.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.gr(this,this.endSnapAnimation)),this.endDrag())};
_.f.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.f.setTransform=function(a){this.hostElement.style.transform=a?"translate("+a.x+"px, "+a.y+"px)":""};
_.f.getGlobalPositionFromAttachments=function(a,b){return new _.Ef(a==="west"?16:this.windowDimensions.width-this.dimensions.width-16,b==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.f.updateAttachments=function(){var a=this.getNearestAttachments();if(this.horizontalAttachment!==a.horizontalAttachment||this.verticalAttachment!==a.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=a.horizontalAttachment;this.verticalAttachment=a.verticalAttachment;var b;(b=this.JSC$17607_resizers)==null||b.update(this.horizontalAttachment,this.verticalAttachment)};
_.f.getNearestAttachments=function(){var a=this.getCurrentGlobalPosition();return{horizontalAttachment:a.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:a.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.f.getCurrentGlobalPosition=function(){var a=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return xxc(a,this.transform)};
_.f.isSafeToDrag=function(a){var b=this.playerContainer.getBoundingClientRect();return Math.abs(a.clientY-(b.y+b.height))>15};
_.f.setMiniplayerSize=function(a){this.currentMiniplayerSize=this.clamp(a);var b;(b=this.JSC$17607_resizers)==null||b.setSize(this.currentMiniplayerSize)};
_.f.clamp=function(a){return _.Vw(192,a,720)};
_.f.registerViewTransitionTasks=function(){var a=this,b=_.v().resolve(_.Xi(_.Njc));if(b){var c={beforeTransition:function(){a.hostElement&&(a.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){a.hostElement&&(a.hostElement.style.viewTransitionName="")}};
AZ(b,"slide",c);AZ(b,"zoom",c)}};
_.Um.Object.defineProperties(h1.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.w("kevlar_watch_while_modern"):!0}},
showOverlayPremiumBadges:{configurable:!0,enumerable:!0,get:function(){return!this.showInfoBar&&!!this.premiumBadges.length}},
miniplayerSubtitle:{configurable:!0,enumerable:!0,get:function(){if(this.continueWatching)return{simpleText:_.vo("CONTINUE_WATCHING",void 0,"Continue watching")};var a;if((a=this.externalPlaylistData)==null?0:a.contents)return this.externalPlaylistData.titleText;var b;return(b=this.data)==null?void 0:b.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.externalPlaylistData)==null?0:a.contents){var b;return(b=_.iHa(this.externalPlaylistData))==null?void 0:b.title}var c;return(c=this.data)==null?void 0:c.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;return((a=this.externalPlaylistData)==null?void 0:a.currentIndex)!==void 0&&((b=this.externalPlaylistData)==null?0:b.totalVideos)&&!((c=this.data)==null?0:(d=c.playlistData)==null?0:d.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.h6a(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.w("kevlar_watch_while_counterfactual")}}});
h1.prototype.onIsDisabledChanged=h1.prototype.onIsDisabledChanged;h1.prototype.onMiniplayerRendererChanged=h1.prototype.onMiniplayerRendererChanged;h1.prototype.readyToResumeVeChanged=h1.prototype.readyToResumeVeChanged;h1.prototype.premiumBrandingChanged=h1.prototype.premiumBrandingChanged;h1.prototype.onPlayerVeChange=h1.prototype.onPlayerVeChange;h1.prototype.hasPlaylistDataChanged=h1.prototype.hasPlaylistDataChanged;
_.U([_.H(_.bJ.YtPlayerListenerBehavior),_.W("design:type",_.cJ)],h1.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],h1.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],h1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],h1.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.OI),_.W("design:type",Object)],h1.prototype,"ytdReduxBehavior",void 0);_.U([_.ir("#draggable"),_.W("design:type",HTMLDivElement)],h1.prototype,"draggableContainer",void 0);_.U([_.ir("#resize-container"),_.W("design:type",HTMLDivElement)],h1.prototype,"JSC$17607_resizeContainer",void 0);_.U([_.ir("#video-container"),_.W("design:type",HTMLDivElement)],h1.prototype,"videoContainer",void 0);_.U([_.ir("#player-container"),_.W("design:type",HTMLDivElement)],h1.prototype,"playerContainer",void 0);
_.U([_.ir("#playlist"),_.W("design:type",HTMLDivElement)],h1.prototype,"JSC$17607_playlistPanel",void 0);_.U([_.O(),_.W("design:type",Object)],h1.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],h1.prototype,"active",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],h1.prototype,"hasNoData",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],h1.prototype,"enabled",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],h1.prototype,"expanded",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],h1.prototype,"readyToResume",void 0);_.U([_.O(),_.W("design:type",Object)],h1.prototype,"disabledState",void 0);_.U([_.O(),_.W("design:type",Object)],h1.prototype,"isDisabled",void 0);_.U([_.O(),_.W("design:type",Object)],h1.prototype,"externalPlaylistData",void 0);_.U([_.O(),_.W("design:type",Array)],h1.prototype,"premiumBadges",void 0);
_.U([_.O(),_.W("design:type",Object)],h1.prototype,"toastData",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],h1.prototype,"watchWhile",void 0);_.U([_.O(),_.W("design:type",Boolean)],h1.prototype,"premiumBranding",void 0);_.U([_.O(),_.W("design:type",Object)],h1.prototype,"playerState",void 0);_.U([_.O(),_.W("design:type",Boolean)],h1.prototype,"continueWatching",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],h1.prototype,"verticalAttachment",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],h1.prototype,"horizontalAttachment",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],h1.prototype,"isAnimatingFade",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],h1.prototype,"isAnimatingSnap",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],h1.prototype,"isAnimatingExpand",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],h1.prototype,"isDragging",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],h1.prototype,"playerHidden",void 0);_.U([_.O({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.W("design:type",Object)],h1.prototype,"playlistData",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.W("design:type",Object)],h1.prototype,"hasPlaylistData",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],h1.prototype,"closed",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],h1.prototype,"expandedClosed",void 0);_.U([_.O({selector:_.xFa}),_.W("design:type",Boolean)],h1.prototype,"isSingleOptionSurveyActive",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Ip}),_.W("design:type",Boolean)],h1.prototype,"isWatchPage",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("watchWhile"),_.W("design:type",Object),_.W("design:paramtypes",[])],h1.prototype,"showInfoBar",null);
_.U([_.K("premiumBadges","showInfoBar"),_.W("design:type",Object),_.W("design:paramtypes",[])],h1.prototype,"showOverlayPremiumBadges",null);_.U([_.O(),_.W("design:type",Object)],h1.prototype,"watchResponse",void 0);_.U([_.O(),_.W("design:type",Object)],h1.prototype,"miniplayerRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],h1.prototype,"playabilityStatus",void 0);_.U([_.O(),_.W("design:type",Object)],h1.prototype,"playerVe",void 0);
_.U([_.O(),_.W("design:type",Object)],h1.prototype,"expandVe",void 0);_.U([_.O(),_.W("design:type",Object)],h1.prototype,"closeVe",void 0);_.U([_.O(),_.W("design:type",Object)],h1.prototype,"readyToResumeCloseVe",void 0);_.U([_.O(),_.W("design:type",_.Cn)],h1.prototype,"readyToResumeVe",void 0);_.U([_.O(),_.W("design:type",_.Cn)],h1.prototype,"resizeVe",void 0);_.U([_.O(),_.W("design:type",_.Cn)],h1.prototype,"repositionVe",void 0);
_.U([_.N("hasPlaylistData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h1.prototype,"hasPlaylistDataChanged",null);_.U([_.N("playerVe"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h1.prototype,"onPlayerVeChange",null);_.U([_.N("premiumBranding"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h1.prototype,"premiumBrandingChanged",null);
_.U([_.N("readyToResumeVe"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h1.prototype,"readyToResumeVeChanged",null);_.U([_.N("miniplayerRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h1.prototype,"onMiniplayerRendererChanged",null);_.U([_.N("isDisabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h1.prototype,"onIsDisabledChanged",null);
_.U([_.K("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.W("design:type",Object),_.W("design:paramtypes",[])],h1.prototype,"miniplayerSubtitle",null);_.U([_.K("data.miniplayerTitle","externalPlaylistData"),_.W("design:type",Object),_.W("design:paramtypes",[])],h1.prototype,"miniplayerTitle",null);_.U([_.K("externalPlaylistData","continueWatching"),_.W("design:type",Object),_.W("design:paramtypes",[])],h1.prototype,"playlistIndexMessage",null);
_.U([_.O({reflectToAttribute:!0}),_.K("playabilityStatus"),_.W("design:type",Object),_.W("design:paramtypes",[])],h1.prototype,"showErrorScreen",null);_.U([_.O({reflectToAttribute:!0}),_.K("watchWhile"),_.W("design:type",Object),_.W("design:paramtypes",[])],h1.prototype,"watchWhileHidden",null);
_.w("ytd_miniplayer_to_wiz")||_.S(h1,"ytd-miniplayer",function(){if(hOc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.player.ytd_miniplayer.ytd.miniplayer.view.transition.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[computeDisabledHidden(disabledState, isDisabled)]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, disabledState)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');a.content.insertBefore(gOc().content.cloneNode(!0),
a.content.firstChild);a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);hOc=a}a=hOc;return a},{mode:2});var oOc;var i1=function(){var a=_.P.apply(this,arguments)||this;a.useListItemStyles=_.w("web_list_item_style_for_menu_items");a.systemIcons=_.w("kevlar_system_icons");return a};
_.z(i1,_.P);_.f=i1.prototype;_.f.ready=function(){this.hostElement.addEventListener("tap",_.gr(this,this.onEndpointTapExtra))};
_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.f.onFocus=function(){var a;(a=_.E(this.hostElement).querySelector("tp-yt-paper-item"))==null||a.focus()};
_.f.onEndpointTapExtra=function(a){_.io(this.hostElement,"iron-activate");var b=this.data.navigationEndpoint;b&&_.y(b,_.ETa)&&(a.stopPropagation(),_.po(this.hostElement,[b],this.hostElement))};
_.f.computeIcon=function(a){return a&&a.iconType?_.es(a.iconType):""};
_.f.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.f.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.f.forceUpdateStylesOnLegacyBrowsers=function(){_.w("kevlar_legacy_browsers")&&_.fr(this.hostElement)};
i1.prototype.forceUpdateStylesOnLegacyBrowsers=i1.prototype.forceUpdateStylesOnLegacyBrowsers;i1.prototype.onFocus=i1.prototype.onFocus;_.U([_.H(_.aI),_.W("design:type",Object)],i1.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.H(_.nec.YtConditionalRendererBehavior),_.W("design:type",Object)],i1.prototype,"ytConditionalRendererBehavior",void 0);_.U([_.H(_.qH.YtEndpointBehavior),_.W("design:type",Object)],i1.prototype,"ytEndpointBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],i1.prototype,"data",void 0);_.U([_.O({computed:"computeIcon(data.icon)",value:""}),_.W("design:type",String)],i1.prototype,"icon",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],i1.prototype,"useIcons",void 0);_.U([_.O({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.W("design:type",Boolean)],i1.prototype,"hasSeparator",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],i1.prototype,"useListItemStyles",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],i1.prototype,"systemIcons",void 0);_.U([_.M("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i1.prototype,"onFocus",null);_.U([_.N("useIcons","hasSeparator"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i1.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.S(i1,"ytd-menu-navigation-item-renderer",function(){if(oOc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-navigation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!hidden]]" class="style-scope ytd-menu-navigation-item-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-menu-navigation-item-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" tabindex="-1">\n    <tp-yt-paper-item aria-label$="[[data.accessibility.accessibilityData.label]]" disabled="[[data.isDisabled]]" class="style-scope ytd-menu-navigation-item-renderer">\n      <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-formatted-string>\n    </tp-yt-paper-item>\n  </a>\n</template>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);oOc=a}a=oOc;return a},{mode:1});var pOc;var qOc=_.Vp(_.vo("DOWNLOAD",{},"Download")),rOc=_.Vp(_.vo("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),sOc=_.Vp(_.vo("RETRY",{},"Retry")),tOc=_.Vp(_.vo("PAUSE_DOWNLOADING",{},"Pause downloading")),uOc=_.Vp(_.vo("RESUME_DOWNLOAD",{},"Resume download")),j1=function(){var a=_.P.apply(this,arguments)||this;a.primaryText=qOc;a.primaryIconType="OFFLINE_DOWNLOAD";a.hasSecondaryContent=!1;a.hasSeparator=!1;a.transferState="TRANSFER_STATE_UNKNOWN";a.isVideoDeletedByUser=!1;a.isHidden=!1;a.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return a};
_.z(j1,_.P);_.f=j1.prototype;_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.f.onFocus=function(){this.primaryEntry.focus()};
_.f.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.f.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.f.getRemoveAction=function(){return"ACTION_REMOVE"};
_.f.sendOfflineAction=function(a){var b=this.data.serviceEndpoint;if(b){var c=_.y(b,_.qu);c&&a&&(c.action=a);this.ytComponentBehavior.resolveCommand(b)}};
_.f.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=qOc,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=qOc;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=sOc;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=rOc;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=uOc;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=rOc;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
tOc;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=rOc;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=rOc;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=qOc,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.f.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.f.isSecondaryEntryHidden=function(a,b){return a?!0:!b};
_.f.computeHasSeparator=function(){var a;return!((a=this.data)==null||!a.hasSeparator)};
j1.prototype.showHideButton=j1.prototype.showHideButton;j1.prototype.onTransferStateChange=j1.prototype.onTransferStateChange;j1.prototype.onFocus=j1.prototype.onFocus;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],j1.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],j1.prototype,"ytComponentBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],j1.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],j1.prototype,"primaryText",void 0);_.U([_.O(),_.W("design:type",String)],j1.prototype,"primaryIconType",void 0);_.U([_.O(),_.W("design:type",String)],j1.prototype,"primaryAction",void 0);_.U([_.O(),_.W("design:type",Object)],j1.prototype,"secondaryText",void 0);_.U([_.O(),_.W("design:type",String)],j1.prototype,"secondaryIconType",void 0);
_.U([_.O(),_.W("design:type",String)],j1.prototype,"secondaryAction",void 0);_.U([_.O(),_.W("design:type",Object)],j1.prototype,"hasSecondaryContent",void 0);_.U([_.O({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.W("design:type",Object)],j1.prototype,"hasSeparator",void 0);_.U([_.O({selector:_.Kp,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.W("design:type",String)],j1.prototype,"transferState",void 0);
_.U([_.O({selector:_.PFa,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.W("design:type",Object)],j1.prototype,"isVideoDeletedByUser",void 0);_.U([_.O(),_.W("design:type",Object)],j1.prototype,"isHidden",void 0);_.U([_.O({selector:_.KFa,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.W("design:type",Object)],j1.prototype,"offlineabilityState",void 0);_.U([_.ir("#primary-entry"),_.W("design:type",Object)],j1.prototype,"primaryEntry",void 0);
_.U([_.M("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j1.prototype,"onFocus",null);_.U([_.mr("transferState","isVideoDeletedByUser"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j1.prototype,"onTransferStateChange",null);_.U([_.mr("offlineabilityState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j1.prototype,"showHideButton",null);
_.S(j1,"ytd-menu-service-item-download-renderer",function(){if(pOc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-download-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<tp-yt-paper-item id="primary-entry" hidden="[[isHidden]]" on-tap="onPrimaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[primaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[primaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n<tp-yt-paper-item id="secondary-entry" hidden="[[isSecondaryEntryHidden(isHidden, hasSecondaryContent)]]" on-tap="onSecondaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[secondaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[secondaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);pOc=a}a=pOc;return a},{mode:1});var vOc;var k1=function(){var a=_.P.apply(this,arguments)||this;a.useIcons=!1;a.systemIcons=_.w("kevlar_system_icons");a.useListItemStyles=_.w("web_list_item_style_for_menu_items");return a};
_.z(k1,_.P);_.f=k1.prototype;_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.f.onFocus=function(){var a;(a=_.E(this.hostElement).querySelector("tp-yt-paper-item"))==null||a.focus()};
_.f.onTap=function(){_.mo(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var a=this.data.serviceEndpoint,b=this.data.command;if(a){var c,d=(c=this.data)==null?void 0:c.trackingParams;c=!!_.y(a,_.GDb);d&&c&&_.Yp().dispatch(_.hp({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:d}}));this.ytComponentBehavior.resolveCommand(a)||(_.w("web_ytd_menu_service_item_renderer_command_resolver_ks")?_.oo(this.hostElement,[a]):_.v().resolve(_.Yi).resolveCommand(a,
{form:{element:this.hostElement}}))}b&&(this.ytComponentBehavior.resolveCommand(b)||_.po(this.hostElement,[b],this.hostElement))};
_.f.computeIcon=function(a){return a&&a.iconType?_.es(a.iconType):""};
_.f.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.f.computeHasSeparator=function(){var a;return!((a=this.data)==null||!a.hasSeparator)};
_.f.forceUpdateStylesOnLegacyBrowsers=function(){_.w("kevlar_legacy_browsers")&&_.fr(this.hostElement)};
_.f.computeIsSelected=function(){var a;return!((a=this.data)==null||!a.isSelected)};
k1.prototype.forceUpdateStylesOnLegacyBrowsers=k1.prototype.forceUpdateStylesOnLegacyBrowsers;k1.prototype.onTap=k1.prototype.onTap;k1.prototype.onFocus=k1.prototype.onFocus;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],k1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aI),_.W("design:type",Object)],k1.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],k1.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.nec.YtConditionalRendererBehavior),_.W("design:type",Object)],k1.prototype,"ytConditionalRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],k1.prototype,"data",void 0);_.U([_.O({computed:"computeIcon(data.icon)",value:""}),_.W("design:type",String)],k1.prototype,"icon",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],k1.prototype,"useIcons",void 0);
_.U([_.O({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.W("design:type",Boolean)],k1.prototype,"hasSeparator",void 0);_.U([_.O({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.W("design:type",Boolean)],k1.prototype,"isSelected",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],k1.prototype,"systemIcons",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],k1.prototype,"useListItemStyles",void 0);
_.U([_.M("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],k1.prototype,"onFocus",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],k1.prototype,"onTap",null);_.U([_.N("useIcons","hasSeparator"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],k1.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.S(k1,"ytd-menu-service-item-renderer",function(){if(vOc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item disabled="[[data.isDisabled]]" class="style-scope ytd-menu-service-item-renderer">\n  <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-service-item-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-menu-service-item-renderer">\n  </ytd-badge-supported-renderer>\n</tp-yt-paper-item>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);vOc=a}a=vOc;return a},{mode:2});var wOc;var xOc=function(){return _.P.apply(this,arguments)||this};
_.z(xOc,_.P);_.f=xOc.prototype;_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.onDataChanged=function(){var a=this;_.Qm(this,function(){a.postbox.openDialog();a.focus();_.io(a.hostElement,"yt-refit")})};
_.f.focus=function(){this.postbox.focus()};
_.f.closePopup=function(){_.lo(this.hostElement,"yt-close-popup-action")};
_.f.onYtCommentboxDismiss=function(){this.closePopup()};
var l1=xOc;l1.prototype.onYtCommentboxDismiss=l1.prototype.onYtCommentboxDismiss;l1.prototype.onDataChanged=l1.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],l1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],l1.prototype,"data",void 0);_.U([_.O({value:function(){return _.vo("SBOX_INAPPROPRIATE_CANCEL")}}),
_.W("design:type",String)],l1.prototype,"closeButtonAriaLabel",void 0);_.U([_.ir("#postbox"),_.W("design:type",Object)],l1.prototype,"postbox",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],l1.prototype,"onDataChanged",null);_.U([_.M("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],l1.prototype,"onYtCommentboxDismiss",null);
l1=_.U([_.Q({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],l1);
_.S(l1,"ytd-backstage-post-dialog-popup-renderer",function(){if(wOc!==void 0)return wOc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-bar" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div id="title" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    [[getSimpleString(data.dialogRenderer.backstagePostDialogRenderer.title)]]\n  </div>\n  <yt-icon-button id="close-panel-icon" aria-label$="[[closeButtonAriaLabel]]" on-tap="closePopup" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <yt-icon class="remove-option style-scope ytd-backstage-post-dialog-popup-renderer" icon="yt-icons:close"></yt-icon>\n  </yt-icon-button>\n</div>\n<ytd-backstage-post-dialog-renderer id="postbox" data="[[data.dialogRenderer.backstagePostDialogRenderer]]" in-popup-container="" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div slot="repost-preview" hidden="[[!data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <ytd-post-renderer data="[[data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    </ytd-post-renderer>\n  </div>\n</ytd-backstage-post-dialog-renderer>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return wOc=a},{mode:1});var yOc;var zOc=function(){return _.P.apply(this,arguments)||this};
_.z(zOc,_.P);var m1=zOc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],m1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],m1.prototype,"data",void 0);m1=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],m1);
_.S(m1,"ytd-sender-id-section-renderer",function(){if(yOc!==void 0)return yOc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope ytd-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
return yOc=a},{mode:1});var AOc;var BOc;var COc;var DOc=function(){return _.P.apply(this,arguments)||this};
_.z(DOc,_.P);DOc.prototype.closePopup=function(){_.lo(this.hostElement,"yt-close-popup-action")};
var n1=DOc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],n1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],n1.prototype,"data",void 0);n1=_.U([_.wr({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],n1);
_.S(n1,"yt-community-post-section-renderer",function(){if(COc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-community-post-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_community_post_section_renderer.yt.community.post.section.renderer.css.js--\x3e<div id="title" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.title)]]</div>\n<div class="style-scope yt-community-post-section-renderer">\n  <yt-button-renderer id="post-button" data="[[data.postButton.buttonRenderer]]" on-tap="closePopup" class="style-scope yt-community-post-section-renderer">\n  </yt-button-renderer>\n</div>\n<div id="subtitle" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.subtitle)]]</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;BOc===void 0&&(BOc=document.createElement("template"));var d=BOc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);COc=a}a=COc;return a},{mode:2});var EOc;var FOc;var GOc;var HOc;var IOc;var JOc;var KOc=function(){return _.P.apply(this,arguments)||this};
_.z(KOc,_.P);var o1=KOc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],o1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],o1.prototype,"data",void 0);o1=_.U([_.wr({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],o1);
_.S(o1,"yt-share-start-time-with-context-renderer",function(){if(JOc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-start-time-with-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_start_time_with_context_renderer.yt.share.start.time.with.context.renderer.css.js--\x3e<div id="start-time-title" class="style-scope yt-share-start-time-with-context-renderer"><yt-formatted-string aria-label$="[[getSimpleString(data.title)]]" text="[[data.title]]" class="style-scope yt-share-start-time-with-context-renderer"></yt-formatted-string></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;IOc===void 0&&(IOc=document.createElement("template"));var d=IOc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);JOc=a}a=JOc;return a},{mode:2});var LOc=function(){return _.P.apply(this,arguments)||this};
_.z(LOc,_.P);LOc.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
var p1=LOc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],p1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],p1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],p1.prototype,"data",void 0);p1=_.U([_.wr({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],p1);
_.S(p1,"yt-share-panel-title-v15-renderer",function(){if(HOc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-title-v15-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_title_v15_renderer.yt.share.panel.title.v15.renderer.css.js--\x3e<h2 id="title" class="style-scope yt-share-panel-title-v15-renderer">[[getSimpleString(data.title)]]</h2>\n<div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-share-panel-title-v15-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;GOc===void 0&&(GOc=document.createElement("template"));var d=GOc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);HOc=a}a=HOc;return a},{mode:2});var MOc=function(){return _.P.apply(this,arguments)||this};
_.z(MOc,_.P);MOc.prototype.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{sharePanelTitleV15Renderer:"yt-share-panel-title-v15-renderer"}},"data.communityPost":{id:"community-post",mapping:{communityPostSectionRenderer:"yt-community-post-section-renderer"}}}};
var q1=MOc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],q1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],q1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],q1.prototype,"data",void 0);q1=_.U([_.wr({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],q1);
_.S(q1,"yt-share-panel-header-renderer",function(){if(FOc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_header_renderer.yt.share.panel.header.renderer.css.js--\x3e<div id="community-post" class="style-scope yt-share-panel-header-renderer"></div>\n<div id="title-bar" class="style-scope yt-share-panel-header-renderer">\n  <div id="title" class="style-scope yt-share-panel-header-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;EOc===void 0&&(EOc=document.createElement("template"));var d=EOc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);FOc=a}a=FOc;return a},{mode:2});var NOc;var OOc;var POc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-open-popup-action":"onOpen"};return a};
_.z(POc,_.P);_.f=POc.prototype;_.f.attached=function(){this.onOpen()};
_.f.updateTimeSecs=function(a){this.currentTimeSecs=a};
_.f.computeTimeString=function(a){a=a.toString();var b=Math.floor(Number(a)/3600),c=Math.floor(Number(a)%3600%60);return(b>0?b+":":"")+_.qy(Math.floor(Number(a)%3600/60),b>0?2:1)+":"+_.qy(c,2)};
_.f.computeTimeStringA11y=function(a){a=_.RFa({seconds:a});var b=a.hours===void 0?0:a.hours,c=a.minutes===void 0?0:a.minutes,d=a.seconds===void 0?0:a.seconds;a=[];if(b>0){var e=gtc().format({hours:b});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.Op)||b>9999)e=e.replace(b.toString(),_.SFa(b)),_.Op==="km"&&(e=e.replace(".",","));a.push(e)}c>0&&a.push(gtc().format({minutes:c}));d>0&&a.push(gtc().format({seconds:d}));b="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");c=_.Op==
"am"?"{0}\u1363 ":_.Op=="fa"?"{0}\u060c\u200f ":_.Op=="my"?"{0} - ":_.Op=="ne"?"{0},":_.Op=="th"?"{0} ":_.Op=="ur"?"{0}\u060c ":_.Op=="ar"||_.Op=="ar-XB"?"{0} \u0648":_.Op=="ja"||_.Op=="zh-CN"||_.Op=="zh-HK"||_.Op=="zh-TW"?"{0}\u3001":"{0}, ";d=_.Op=="am"?"\u1363 ":_.Op=="fa"?"\u060c\u200f ":_.Op=="my"?" - ":_.Op=="th"?" ":_.Op=="ur"?"\u060c ":_.Op=="ar"||_.Op=="ar-XB"?" \u0648":_.Op=="ja"||_.Op=="zh-CN"||_.Op=="zh-HK"||_.Op=="zh-TW"?"\u3001":", ";e=_.Op=="am"?" \u12a5\u1293 {0}":_.Op=="as"?" \u0986\u09f0\u09c1 {0}":
_.Op=="az"?" v\u0259 {0}":_.Op=="bn"?" \u098f\u09ac\u0982 {0}":_.Op=="cs"?" a\u00a0{0}":_.Op=="de"?" und {0}":_.Op=="el"?" \u03ba\u03b1\u03b9 {0}":_.Op=="eu"?" eta {0}":_.Op=="fa"?"\u060c \u0648 {0}":_.Op=="fil"?", at {0}":_.Op=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.Op=="hi"?", \u0914\u0930 {0}":_.Op=="hu"?" \u00e9s {0}":_.Op=="hy"?" \u0587 {0}":_.Op=="id"?", dan {0}":_.Op=="iw"?" \u05d5-{0}":_.Op=="ja"?"\u3001{0}":_.Op=="ka"?" \u10d3\u10d0 {0}":_.Op=="km"?" \u1793\u17b7\u1784 {0}":_.Op=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.Op=="ko"?" \ubc0f {0}":_.Op=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.Op=="lt"?" ir {0}":_.Op=="lv"?" un {0}":_.Op=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.Op=="mr"?" \u0906\u0923\u093f {0}":_.Op=="ms"?" dan {0}":_.Op=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.Op=="ne"?" \u0930 {0}":_.Op=="or"?", \u0b13 {0}":_.Op=="pa"?" \u0a05\u0a24\u0a47 {0}":_.Op=="ro"?" \u0219i {0}":_.Op=="si"?", \u0dc3\u0dc4 {0}":_.Op=="sk"?" a {0}":_.Op=="sl"?" in {0}":_.Op=="sq"?" dhe {0}":_.Op=="sv"?" och {0}":
_.Op=="sw"?" na {0}":_.Op=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.Op=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.Op=="th"?" \u0e41\u0e25\u0e30{0}":_.Op=="tr"?" ve {0}":_.Op=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.Op=="uz"?" va {0}":_.Op=="vi"?" v\u00e0 {0}":_.Op=="zh-HK"?"\u53ca{0}":_.Op=="zu"?", ne-{0}":_.Op=="af"||_.Op=="nl"?" en {0}":_.Op=="ar"||_.Op=="ar-XB"?" \u0648{0}":_.Op=="be"||_.Op=="uk"?" \u0456 {0}":_.Op=="en-GB"||_.Op=="en-IN"?" and {0}":_.Op=="en"||_.Op=="en-XA"?
", and {0}":_.Op=="et"||_.Op=="fi"?" ja {0}":_.Op=="fr"||_.Op=="fr-CA"?" et {0}":_.Op=="zh-CN"||_.Op=="zh-TW"?"\u548c{0}":_.Op=="da"||_.Op=="is"||_.Op=="no"?" og {0}":_.Op=="es"||_.Op=="es-419"||_.Op=="es-US"?" y {0}":_.Op=="kk"||_.Op=="lo"||_.Op=="mn"?", {0}":_.Op=="bg"||_.Op=="mk"||_.Op=="ru"||_.Op=="sr"?" \u0438 {0}":_.Op=="gl"||_.Op=="it"||_.Op=="pt-BR"||_.Op=="pt-PT"?" e {0}":" i {0}";var g=_.Op=="am"?"{0} \u12a5\u1293 {1}":_.Op=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.Op=="az"?"{0} v\u0259 {1}":
_.Op=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.Op=="de"?"{0} und {1}":_.Op=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.Op=="eu"?"{0} eta {1}":_.Op=="fa"?"{0} \u0648 {1}":_.Op=="fil"?"{0} at {1}":_.Op=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.Op=="hi"?"{0} \u0914\u0930 {1}":_.Op=="hu"?"{0} \u00e9s {1}":_.Op=="hy"?"{0} \u0587 {1}":_.Op=="iw"?"{0} \u05d5-{1}":_.Op=="ja"?"{0}\u3001{1}":_.Op=="ka"?"{0} \u10d3\u10d0 {1}":_.Op=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.Op=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.Op=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.Op=="ko"?"{0} \ubc0f {1}":_.Op=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.Op=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.Op=="lt"?"{0} ir {1}":_.Op=="lv"?"{0} un {1}":_.Op=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.Op=="mn"?"{0}, {1}":_.Op=="mr"?"{0} \u0906\u0923\u093f {1}":_.Op=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.Op=="ne"?"{0} \u0930 {1}":_.Op=="or"?"{0} \u0b13 {1}":_.Op=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.Op=="ro"?"{0} \u0219i {1}":_.Op==
"si"?"{0} \u0dc3\u0dc4 {1}":_.Op=="sl"?"{0} in {1}":_.Op=="sq"?"{0} dhe {1}":_.Op=="sv"?"{0} och {1}":_.Op=="sw"?"{0} na {1}":_.Op=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.Op=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.Op=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.Op=="tr"?"{0} ve {1}":_.Op=="ur"?"{0} \u0627\u0648\u0631 {1}":_.Op=="uz"?"{0} va {1}":_.Op=="vi"?"{0} v\u00e0 {1}":_.Op=="zh-HK"?"{0}\u53ca{1}":_.Op=="zu"?"{0} ne-{1}":_.Op=="af"||_.Op=="nl"?"{0} en {1}":_.Op=="ar"||_.Op==
"ar-XB"?"{0} \u0648{1}":_.Op=="be"||_.Op=="uk"?"{0} \u0456 {1}":_.Op=="cs"||_.Op=="sk"?"{0} a\u00a0{1}":_.Op=="et"||_.Op=="fi"?"{0} ja {1}":_.Op=="fr"||_.Op=="fr-CA"?"{0} et {1}":_.Op=="id"||_.Op=="ms"?"{0} dan {1}":_.Op=="zh-CN"||_.Op=="zh-TW"?"{0}\u548c{1}":_.Op=="da"||_.Op=="is"||_.Op=="no"?"{0} og {1}":_.Op=="es"||_.Op=="es-419"||_.Op=="es-US"?"{0} y {1}":_.Op=="bg"||_.Op=="mk"||_.Op=="ru"||_.Op=="sr"?"{0} \u0438 {1}":_.Op=="en"||_.Op=="en-GB"||_.Op=="en-IN"||_.Op=="en-XA"?"{0} and {1}":_.Op==
"gl"||_.Op=="it"||_.Op=="pt-BR"||_.Op=="pt-PT"?"{0} e {1}":"{0} i {1}";_.Op==="sq"?(e=e.replace("dhe","e"),g=g.replace("dhe","e")):_.Op==="th"?(d=d.replace("{0}"," {0}"),g=g.replace("{0}","{0} "),g=g.replace("{1}"," {1}")):_.Op==="ne"?d=",":_.Op==="zh-CN"?d="":b.includes(_.Op)&&(d=" ");return a.length<2?a.join(""):"am ar bg bs ca cs da es es-419 es-US eu fa fi fr-CA fr gl gu hi hr hu hy is it lt lv mk my no nl pl pt-BR pt-PT ro si sl sq sr-Latn sr sw th uk".split(" ").includes(_.Op)?a.length===2?
g.replace("{0}",a[0]).replace("{1}",a[1]):c.replace("{0}",a[0])+a.slice(1,-1).join(d)+e.replace("{0}",a[a.length-1]):a.join(d)};
_.f.getTimeParam=function(){return Bxc(this.timeString)};
_.f.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var a={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},b;_.tF(_.ls(),(b=this.data)==null?void 0:b.trackingParams,a,7)};
_.f.onChangeStartAtTimestamp=function(){for(var a=this.startAtTimestamp.value.split(":"),b=0,c=1,d=a.length-1;d>=0;d--)b+=Number(a[d])*c,c*=60;this.updateTimeSecs(b);this.setTimestamp()};
_.f.onOpen=function(){var a=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var b=_.au();b?b.getPlayerPromise().then(function(c){c=c.getCurrentTime();a.updateTimeSecs(c)}):euc()&&this.updateTimeSecs(euc())};
_.f.setTimestamp=function(){var a=Math.floor(this.currentTimeSecs);_.lo(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!a,timestamp:a||""}])};
var r1=POc;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],r1.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],r1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],r1.prototype,"data",void 0);_.U([_.O({value:!1,notify:!0}),_.W("design:type",Boolean)],r1.prototype,"isStartAtChecked",void 0);_.U([_.O(),_.W("design:type",Number)],r1.prototype,"currentTimeSecs",void 0);
_.U([_.O({computed:"computeTimeString(currentTimeSecs)"}),_.W("design:type",String)],r1.prototype,"timeString",void 0);_.U([_.O({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.W("design:type",String)],r1.prototype,"timeStringA11y",void 0);_.U([_.ir("#start-at-timestamp"),_.W("design:type",Object)],r1.prototype,"startAtTimestamp",void 0);r1=_.U([_.wr({is:"yt-start-at-renderer",disableElementRegistration:!0})],r1);
_.S(r1,"yt-start-at-renderer",function(){if(OOc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-start-at-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_start_at_renderer.yt.start.at.renderer.css.js--\x3e<div id="start-at-wrapper" class="style-scope yt-start-at-renderer">\n  <tp-yt-paper-checkbox id="start-at-checkbox" checked="{{isStartAtChecked}}" on-change="onChangeStartAtCheckbox" class="style-scope yt-start-at-renderer">\n    <yt-formatted-string text="[[data.startAtOptionLabel]]" class="style-scope yt-start-at-renderer"></yt-formatted-string>\n  </tp-yt-paper-checkbox>\n  <tp-yt-paper-input id="start-at-timestamp" allowed-pattern="[:0-9]" aria-label="[[timeStringA11y]]" disabled="" no-label-float="" use-v2-underline="" value="[[timeString]]" on-blur="onChangeStartAtTimestamp" on-change="onChangeStartAtTimestamp" class="style-scope yt-start-at-renderer">\n  </tp-yt-paper-input>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;NOc===void 0&&(NOc=document.createElement("template"));var d=NOc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);OOc=a}a=OOc;return a},{mode:2});var QOc;var ROc;var SOc=new Map([["ADD_TO_PLAYLIST","playlist_add"],["ADD_TO_REMOTE_QUEUE","add_to_queue"],["CAST_ICON","chromecast-filled"],["CAST_OUTLINE","chromecast"],["DISLIKE","dislike_outline"],["DISLIKE_SELECTED","dislike"],["ERROR_WHITE","error"],["FAVORITE","like_outline"],["LIKE","like_outline"],["LIKE_SELECTED","like"],["LOOP","music_repeat_all"],["LOOP_ONE","music_repeat_one"],["PLAYLIST_PLAY","playlists"],["QUEUE_PLAY_NEXT","playlists"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST",
"delete"],["SHUFFLE","music_shuffle"],["SUBSCRIPTIONS","subscriptions"],["TAB_EXPLORE","explore"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like"]]),TOc=new Map([["BOOKMARK","bookmark-filled"],["CLOUD_UPLOAD","cloud_arrow_up"],["DISLIKE","dislike"],["DISLIKE_SELECTED","dislike-filled"],["ERROR_WHITE","error-filled"],["FAVORITE","like"],["INSERT_CHART_OUTLINED","bar_graph_box_vertical"],["LIKE","like"],["LIKE_SELECTED","like-filled"],["MUSIC_EXPLICIT_BADGE","music_explicit_badge-filled"],
["MUSIC_SHUFFLE","shuffle"],["PAUSE","offline_pause"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST","delete"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like-filled"],["VOLUME_UP","volume_up"],["DISMISS_QUEUE","list_remove"]]),UOc=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var VOc={};VOc.YtBindingExpressionsBehavior={identity:_.Ma,msg:function(a,b){b=b===void 0?{}:b;return _.vo(a,b,a)},
msgPlural:function(a,b){return _.wo(a,b)},
getMusicIconFromType:function(a){if(_.w("music_web_enable_icon_wil"))a=_.es(a);else if(TOc.has(a))a="yt-sys-icons:"+TOc.get(a);else{var b=SOc.get(a)||_.es(a).split(":")[1];b=_.pPa(b);var c;a=((c=UOc.get(a))!=null?c:"yt-sys-icons:")+b}return a}};var WOc;var XOc;var YOc;var PRc=document.head,QRc=PRc.appendChild,RRc;if(YOc===void 0){var SRc=document.createElement("template");_.B(SRc,'\x3c!--css-build:shady--\x3e<iron-iconset-svg name="socialNetworks" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="socialNetworksRound" size="60"><svg><defs></defs></svg></iron-iconset-svg>');YOc=SRc}RRc=YOc;QRc.call(PRc,RRc.content);var s1=function(){var a=_.P.apply(this,arguments)||this;a.screenLayer=7;return a};
_.z(s1,_.P);s1.prototype.getScreenLayer=function(){return this.screenLayer};
s1.prototype.onTap=function(a){a&&a.detail&&(a.detail.x||a.detail.y)&&_.E(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.oo(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(a=this.getScreenLayer(),_.io(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:a}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.Um.Object.defineProperties(s1.prototype,{title:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.title)}},
icon:{configurable:!0,enumerable:!0,get:function(){return"socialNetworksRound:"+this.data.serviceName.toLowerCase()}}});
var t1=s1;t1.prototype.onTap=t1.prototype.onTap;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],t1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],t1.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],t1.prototype,"data",void 0);_.U([_.K("data.title"),_.W("design:type",Object),_.W("design:paramtypes",[])],t1.prototype,"title",null);
_.U([_.K("data.serviceName"),_.W("design:type",String),_.W("design:paramtypes",[])],t1.prototype,"icon",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],t1.prototype,"onTap",null);t1=_.U([_.wr({is:"yt-share-target-renderer",disableElementRegistration:!0})],t1);
_.S(t1,"yt-share-target-renderer",function(){if(XOc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" icon="[[icon]]"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;WOc===void 0&&(WOc=document.createElement("template"));var d=WOc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);XOc=a}a=XOc;return a},{mode:2});var TRc;var URc;var VRc=function(){var a=_.P.apply(this,arguments)||this;a.SHARE_TARGET_WIDTH=70;a.SHARE_TARGET_MARGIN_RIGHT=8;a.PAGE_SCROLL_SPEED=9;a.actionMap={"yt-share-panel-reset-action":"onReset_"};return a};
_.z(VRc,_.P);_.f=VRc.prototype;_.f.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.f.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.E(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.E(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.f.onReset_=function(){if(_.E(this.hostElement).querySelector("#list")){var a=_.E(this.hostElement).querySelector("#list");var b=_.E(this.hostElement).querySelector("#list");var c=b.offsetLeft,d=b.offsetParent;d||_.xdb(b)!="fixed"||(d=_.Hf(b).documentElement);if(d){if(_.yx&&!nAc(58)){var e=_.Fdb(d);c+=e.left}else Number(_.E9a)>=8&&!(Number(_.E9a)>=9)&&(e=_.Fdb(d),c-=e.left);b=_.Ddb(d)?d.clientWidth-(c+b.offsetWidth):c}else b=c;nCc(a,b);this.updateScrollButtons_()}};
_.f.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.f.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.f.onScrollWheel_=function(a){a.stopPropagation();a.preventDefault();var b=mCc(_.E(this.hostElement).querySelector("#list"));a=Math.abs(a.deltaX)>Math.abs(a.deltaY)?a.deltaX:a.deltaY;nCc(_.E(this.hostElement).querySelector("#list"),b+a);this.updateScrollButtons_()};
_.f.smoothScrollByOnePage_=function(a){var b=_.E(this.hostElement).querySelector("#list"),c=(Math.floor(b.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,d=mCc(b),e=c*(a?1:-1),g=this.PAGE_SCROLL_SPEED,k=this.updateScrollButtons_.bind(this),m=0,n;(function t(){m+=g;n=m/c*2;nCc(b,d+e*(n<1?n*n:-n*n+4*n-2));m<c?window.requestAnimationFrame(t):k()})()};
_.f.updateScrollButtons_=function(){var a=mCc(_.E(this.hostElement).querySelector("#list")),b=_.E(this.hostElement).querySelector("#list").scrollWidth-_.E(this.hostElement).querySelector("#list").clientWidth;_.E(this.hostElement).querySelector("#scroll-button-back").hidden=a<=0;_.E(this.hostElement).querySelector("#scroll-button-forward").hidden=a>=b};
var u1=VRc;u1.prototype.onScrollWheel_=u1.prototype.onScrollWheel_;u1.prototype.onDataChanged_=u1.prototype.onDataChanged_;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],u1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],u1.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(VOc.YtBindingExpressionsBehavior),_.W("design:type",Object)],u1.prototype,"ytBindingExpressionsBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],u1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],u1.prototype,"data",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],u1.prototype,"onDataChanged_",null);_.U([_.M("wheel"),_.W("design:type",Function),_.W("design:paramtypes",[WheelEvent]),_.W("design:returntype")],u1.prototype,"onScrollWheel_",null);
u1=_.U([_.wr({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],u1);
_.S(u1,"yt-third-party-share-target-section-renderer",function(){if(URc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-share-target-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_share_target_section_renderer.yt.third.party.share.target.section.renderer.css.js--\x3e<div id="list" class="style-scope yt-third-party-share-target-section-renderer">\n  <div id="contents" role="toolbar" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-third-party-share-target-section-renderer"></div>\n</div>\n<yt-icon-button id="scroll-button-back" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_PREVIOUS_LABEL\')]]" on-tap="onScrollBack_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_left"></yt-icon>\n</yt-icon-button>\n<yt-icon-button id="scroll-button-forward" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_NEXT_LABEL\')]]" on-tap="onScrollForward_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_right"></yt-icon>\n</yt-icon-button>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;TRc===void 0&&(TRc=document.createElement("template"));var d=TRc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);URc=a}a=URc;return a},{mode:2});var WRc=function(){return _.P.apply(this,arguments)||this};
_.z(WRc,_.P);WRc.prototype.configureRendererStamper=function(){return{"data.shareTargetContainer":{id:"share-targets",mapping:{thirdPartyShareTargetSectionRenderer:"yt-third-party-share-target-section-renderer"}},"data.copyLinkContainer":{id:"copy-link",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}},"data.startAtContainer":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
var v1=WRc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],v1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],v1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],v1.prototype,"data",void 0);v1=_.U([_.wr({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],v1);
_.S(v1,"yt-third-party-network-section-renderer",function(){if(ROc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-network-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_network_section_renderer.yt.third.party.network.section.renderer.css.js--\x3e<div id="share-targets" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="copy-link" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="start-at" class="style-scope yt-third-party-network-section-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;QOc===void 0&&(QOc=document.createElement("template"));var d=QOc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);ROc=a}a=ROc;return a},{mode:2});_.Ts(_.Rr(function(a){return _.q("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.q("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.q(_.Hu,{data:function(){return a.data().firstPartyItems}},{listItemViewModel:_.DQ})))},"Kf"),"first-party-network-section-view-model",{props:{data:_.VG}});var XRc=_.hx(["data:image/svg+xml;charset=UTF-8;base64,",""]),YRc=function(){var a=_.P.apply(this,arguments)||this;a.screenLayer=7;a.qrCodeEnabled=_.w("web_enable_sharing_qr_code");a.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return a};
_.z(YRc,_.P);_.f=YRc.prototype;_.f.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"ytd-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.f.onDataChanged=function(){var a=this,b;(b=this.data)!=null&&b.contents&&(this.hostElement.setAttribute("links-only","true"),_.cr(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.Qm(this,function(){_.io(a.hostElement,"yt-refit");a.focusSharePanelHeader()}))};
_.f.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.f.handleSetTimestamp=function(a){var b=this.shortUrl();a.isSet&&(b=_.Ky(b,"t",a.timestamp));this.maybeRenderQrCode(b)};
_.f.shortUrl=function(){var a,b=(a=this.data)==null?void 0:a.contents;if(b)for(a=0;a<b.length;a++){var c=void 0,d=void 0;if((c=b[a])==null?0:(d=c.thirdPartyNetworkSection)==null?0:d.copyLinkContainer){var e=d=c=void 0;return(e=_.y((c=b[a])==null?void 0:(d=c.thirdPartyNetworkSection)==null?void 0:d.copyLinkContainer,vJc))==null?void 0:e.shortUrl}}};
_.f.maybeRenderQrCode=function(a){var b=this,c,d,e,g,k,m,n,r,t;return _.l(function(u){if(u.nextAddress==1){c=_.E(b.hostElement).querySelector("#qr-code");if(!b.qrCodeEnabled||!a)return c&&(c.style.display="none"),u.return();d=_.GSa(_.v().resolve(_.fs),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});e=document.createElement("div");return typeof d==="function"?(d(e),u.jumpTo(2)):_.p(u,d,3)}u.nextAddress!=2&&(g=u.yieldResult,g(e));n=(k=e)==null?void 0:(m=k.firstChild)==null?void 0:m.firstChild;
r=document.createElement("img");t=_.Ld(XRc,btoa(n.outerHTML));r.onload=function(){var x={canvas:c,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:r},A=new Bvc;Hvc(A,a);Ivc(A,!1,Jvc(A));var C=A.modules,F=Object.assign({},bHc,x);C=structuredClone(C);x=C.length;var J,I=(J=F.canvas)!=null?J:document.createElement("canvas");J=F.cellSize;A=F.logo;var R,da=(R=F.logoSize)!=null?R:Math.floor(x/4);x%2!==da%2&&da++;var V=F.logoPadding,fa=F.backgroundColor;R=x*J;var aa=
F.width,ma=0;aa&&(ma=F.padding,ma=Math.ceil(ma*R/(aa-ma*2)),I.style.width=aa+"px",I.style.height=aa+"px");I.width!==R+ma*2&&(I.width=R+ma*2);I.height!==R+ma*2&&(I.height=R+ma*2);R=I.getContext("2d");F.autoClear&&R.clearRect(0,0,I.width,I.height);R.fillStyle=fa;R.beginPath();R.roundRect(0,0,I.width,I.height,F.borderRadius);R.fill();R.save();R.translate(ma,ma);if(A)for(I=Math.floor(x-da)/2-V,V=Math.floor(x+da)/2+V,fa=I;fa<V;fa++)for(aa=I;aa<V;aa++)C[fa][aa]=!1;for(I=0;I<x;I++)for(V=0;V<x;V++)(I<7&&
V<7||I<7&&V>=x-7||I>=x-7&&V<7)&&(C[I][V]=!1);var Ba;I=(Ba=F.markerColor)!=null?Ba:F.color;Lvc(R,0,0,J,I);Lvc(R,J*(x-7),0,J,I);Lvc(R,0,J*(x-7),J,I);switch(F.cellStyle){case 0:Ba=C;C=Ba.length;I=F.cellSize;R.beginPath();for(V=0;V<C;V++)for(fa=0;fa<C;fa++)Ba[V][fa]&&R.rect(V*I,fa*I,I,I);R.fillStyle=F.color;R.fill();break;case 1:Ba=C;C=Ba.length;I=F.cellSize;V=I*F.relativeCircleSize;R.fillStyle=F.color;R.beginPath();for(F=0;F<C;F++)for(fa=0;fa<C;fa++)Ba[F][fa]&&(R.beginPath(),R.ellipse((F+.5)*I,(fa+.5)*
I,V/2,V/2,0,0,2*Math.PI),R.fill());R.fill();break;case 2:Ba=C;C=Ba.length;I=F.cellSize;R.fillStyle=F.color;F=[[1,1],[-1,1],[-1,-1],[1,-1]];R.beginPath();for(V=0;V<C;V++)for(fa=0;fa<C;fa++)if(Ba[V][fa])R.roundRect(V*I,fa*I,I,I,I/2),V+1<C&&Ba[V+1][fa]&&R.rect(V*I+I/2,fa*I,I,I),fa+1<C&&Ba[V][fa+1]&&R.rect(V*I,fa*I+I/2,I,I);else{aa=V*I+I/2;ma=fa*I+I/2;for(var Ca=0;Ca<4;Ca++){var ya=_.h(F[Ca]),Ia=ya.next().value;ya=ya.next().value;V+Ia>=0&&V+Ia<C&&fa+ya>=0&&fa+ya<C&&Ba[V+Ia][fa]&&Ba[V][fa+ya]&&Ba[V+Ia][fa+
ya]&&(Ia=Ca*Math.PI/2,ya=I/2,R.moveTo(aa+ya*Math.cos(Ia),ma+ya*Math.sin(Ia)),R.arc(aa,ma,I/2,Ia,Ia+Math.PI/2,!1),R.lineTo(aa+ya*(Math.cos(Ia)-Math.sin(Ia)),ma+ya*(Math.cos(Ia)+Math.sin(Ia))),R.lineTo(aa+ya*Math.cos(Ia),ma+ya*Math.sin(Ia)))}}R.fill()}A&&R.drawImage(A,(x-da)*J/2,(x-da)*J/2,da*J,da*J);R.restore();c.style.removeProperty("display")};
r.src=_.Ed(t);_.ue(u)})};
_.f.hasCommunityPostRenderer=function(){var a,b,c,d;return!!((a=this.data)==null?0:(b=a.header)==null?0:(c=b.sharePanelHeaderRenderer)==null?0:(d=c.communityPost)==null?0:d.communityPostSectionRenderer)};
_.f.onTapClose=function(){_.lo(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.f.getScreenLayer=function(){return this.screenLayer};
_.f.logSharePanelPage=function(){if(!_.w("enable_share_panel_navigation_logging_fix_on_web")){var a;if((a=this.data)!=null&&a.trackingParams){a=this.data.trackingParams;var b=this.parentClickTrackingParams;b=b?_.ps(b):void 0;var c=_.ls();_.pF(c,21760,b,{layer:7,parentLayer:0});c.graftServerVe(a,void 0,7);_.Yp().dispatch(_.hp({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
var w1=YRc;w1.prototype.onDataChanged=w1.prototype.onDataChanged;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],w1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],w1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],w1.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],w1.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],w1.prototype,"data",void 0);_.U([_.O({value:_.vo("SBOX_INAPPROPRIATE_CANCEL")}),_.W("design:type",String)],w1.prototype,"closeButtonAriaLabel",void 0);_.U([_.ir("yt-share-panel-header-renderer"),_.W("design:type",HTMLElement)],w1.prototype,"header",void 0);_.U([_.O({selector:function(a){return a.share.parentClickTrackingParams}}),
_.W("design:type",String)],w1.prototype,"parentClickTrackingParams",void 0);_.U([_.O(),_.W("design:type",Object)],w1.prototype,"qrCodeEnabled",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w1.prototype,"onDataChanged",null);w1=_.U([_.Q({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],w1);
_.S(w1,"ytd-unified-share-panel-renderer",function(){if(AOc!==void 0)return AOc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unified-share-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer"></tp-yt-paper-spinner>\n</div>\n<yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onTapClose" class="style-scope ytd-unified-share-panel-renderer">\n  <yt-icon icon="close" class="style-scope ytd-unified-share-panel-renderer"></yt-icon>\n</yt-icon-button>\n<yt-share-panel-header-renderer id="share-panel-header" data="[[data.header.sharePanelHeaderRenderer]]" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n</yt-share-panel-header-renderer>\n<div id="contents" class="style-scope ytd-unified-share-panel-renderer"></div>\n<canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope ytd-unified-share-panel-renderer"></canvas>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return AOc=a},{mode:1});var ZRc;var x1=function(){var a=_.P.apply(this,arguments)||this;a.modernModal=_.w("kevlar_sign_in_modal_modernization");return a};
_.z(x1,_.P);x1.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
x1.prototype.computeShouldHideOldButtons=function(){var a;return!((a=this.data)==null?0:a.button)};
_.Um.Object.defineProperties(x1.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var a,b;if(this.modernModal&&((a=this.data)==null?0:(b=a.button)==null?0:b.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var c,d;return(c=this.data)==null?void 0:(d=c.button)==null?void 0:d.buttonRenderer}}});
var y1=x1;_.U([_.O(),_.W("design:type",Object)],y1.prototype,"data",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],y1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],y1.prototype,"ytEventForwardingBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],y1.prototype,"modernModal",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],y1.prototype,"buttonRendererData",null);
y1=_.U([_.Q({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],y1);
_.S(y1,"ytd-modal-with-title-and-button-renderer",function(){if(ZRc!==void 0)return ZRc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-modal-with-title-and-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<yt-formatted-string id="content" split-lines="" text="[[data.content]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<div class="buttons style-scope ytd-modal-with-title-and-button-renderer" hidden="[[computeShouldHideOldButtons(data.button)]]">\n  <ytd-button-renderer id="button" align-by-text="" data="[[buttonRendererData]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n  </ytd-button-renderer>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return ZRc=a},{mode:1});var $Rc;var aSc=function(){return _.P.apply(this,arguments)||this};
_.z(aSc,_.P);aSc.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.WH("page-changed",this.page))};
var z1=aSc;z1.prototype.pageChangedForBinding=z1.prototype.pageChangedForBinding;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],z1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],z1.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],z1.prototype,"page",void 0);_.U([_.N("page"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],z1.prototype,"pageChangedForBinding",null);
z1=_.U([_.Q({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],z1);
_.S(z1,"ytd-account-item-section-header-renderer",function(){if($Rc!==void 0)return $Rc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.title]]" class="style-scope ytd-account-item-section-header-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return $Rc=a},{mode:1});var bSc;var cSc=function(){return _.P.apply(this,arguments)||this};
_.z(cSc,_.P);cSc.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{accountItem:{component:"ytd-account-item-renderer",properties:{onAccountItemTap:"[[onAccountItemTap]]"}},accountItemRenderer:{component:"ytd-account-item-renderer",properties:{onAccountItemTap:"[[onAccountItemTap]]"}},compactLinkRenderer:"ytd-compact-link-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0}}}},"data.header":{id:"header",mapping:{accountItemSectionHeaderRenderer:"ytd-account-item-section-header-renderer"}}}};
cSc.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
var A1=cSc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],A1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],A1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.WM),_.W("design:type",Object)],A1.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],A1.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!1}),_.W("design:type",Function)],A1.prototype,"onAccountItemTap",void 0);
A1=_.U([_.Q({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],A1);
_.S(A1,"ytd-account-item-section-renderer",function(){if(bSc!==void 0)return bSc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-item-section-renderer"></div>\n<div id="contents" class="style-scope ytd-account-item-section-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return bSc=a},{mode:1});var dSc;var eSc;var fSc=function(){return _.P.apply(this,arguments)||this};
_.z(fSc,_.P);var B1=fSc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],B1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],B1.prototype,"data",void 0);B1=_.U([_.Q({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],B1);
_.S(B1,"ytd-accounts-dialog-header-renderer",function(){if(eSc!==void 0)return eSc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-accounts-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-accounts-dialog-header-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return eSc=a},{mode:1});var gSc;var hSc=function(){return _.P.apply(this,arguments)||this};
_.z(hSc,_.P);hSc.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
var C1=hSc;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],C1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],C1.prototype,"data",void 0);C1=_.U([_.Q({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],C1);
_.S(C1,"ytd-google-account-header-renderer",function(){if(gSc!==void 0)return gSc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-google-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="managedAccountDisclaimer" class="style-scope ytd-google-account-header-renderer"></div>\n<div id="container" class="style-scope ytd-google-account-header-renderer">\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="name" text="[[data.name]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="email" text="[[data.email]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return gSc=a},{mode:1});var iSc=function(){return _.P.apply(this,arguments)||this};
_.z(iSc,_.P);iSc.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{accountItemSectionRenderer:"ytd-account-item-section-renderer",compactLinkRenderer:"ytd-compact-link-renderer"}},"data.header":{id:"header",mapping:{googleAccountHeaderRenderer:"ytd-google-account-header-renderer",accountsDialogHeaderRenderer:"ytd-accounts-dialog-header-renderer"}}}};
iSc.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.WH("page-changed",this.page))};
var D1=iSc;D1.prototype.pageChangedForBinding=D1.prototype.pageChangedForBinding;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],D1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],D1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],D1.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],D1.prototype,"page",void 0);
_.U([_.N("page"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D1.prototype,"pageChangedForBinding",null);D1=_.U([_.Q({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],D1);
_.$r()(D1,"ytd-account-section-list-renderer",function(){if(dSc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-section-list-renderer"></div>\n<div id="contents" class="style-scope ytd-account-section-list-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);dSc=a}a=dSc;return a},{allowedProps:["data"],
mode:1});var jSc;var kSc=function(){var a=_.P.apply(this,arguments)||this;a.enableHandlesAccountMenuSwitcher=_.w("enable_handles_account_menu_switcher");return a};
_.z(kSc,_.P);kSc.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
var E1=kSc;E1.prototype.dataChanged=E1.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],E1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],E1.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],E1.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.U([_.ir("#avatar"),_.W("design:type",Object)],E1.prototype,"avatar",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E1.prototype,"dataChanged",null);E1=_.U([_.Q({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],E1);
_.$r()(E1,"ytd-active-account-header-renderer",function(){if(jSc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-active-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="avatar" height="40" thumbnail="[[data.accountPhoto]]" width="40" class="style-scope ytd-active-account-header-renderer">\n</yt-img-shadow>\n<div id="channel-container" class="style-scope ytd-active-account-header-renderer">\n  <yt-formatted-string id="account-name" ellipsis-truncate="" text="[[data.accountName]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="email" ellipsis-truncate="" text="[[data.email]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="channel-handle" ellipsis-truncate="" respect-lang-dir="" text="[[data.channelHandle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="manage-account" ellipsis-truncate="" force-default-style="" text="[[data.manageAccountTitle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);jSc=a}a=jSc;return a},{allowedProps:["data"],
mode:1});var lSc;var mSc;var nSc=function(){return _.P.apply(this,arguments)||this};
_.z(nSc,_.P);nSc.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
nSc.prototype.onBackTap=function(){_.io(this.hostElement,"yt-menu-back-tapped")};
var F1=nSc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],F1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],F1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],F1.prototype,"data",void 0);F1=_.U([_.Q({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],F1);
_.$r()(F1,"ytd-simple-menu-header-renderer",function(){if(mSc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-menu-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton.buttonRenderer]]" on-tap="onBackTap" class="style-scope ytd-simple-menu-header-renderer">\n</ytd-button-renderer>\n<h2 class="style-scope ytd-simple-menu-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-simple-menu-header-renderer"></yt-formatted-string>\n</h2>\n<div id="buttons" class="style-scope ytd-simple-menu-header-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);mSc=a}a=mSc;return a},{allowedProps:["data"],
mode:2});var oSc;var pSc=function(){return _.P.apply(this,arguments)||this};
_.z(pSc,_.P);var G1=pSc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],G1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],G1.prototype,"data",void 0);G1=_.U([_.Q({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],G1);
_.S(G1,"ytd-comment-video-thumbnail-header-renderer",function(){if(oSc!==void 0)return oSc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-video-thumbnail-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-video-thumbnail style-scope ytd-comment-video-thumbnail-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-comment-video-thumbnail-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-formatted-string class="title style-scope ytd-comment-video-thumbnail-header-renderer" text="[[data.title]]"></yt-formatted-string>\n    <div class="thumbnail-container style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.thumbnail]]">\n      <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="86" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n      </yt-img-shadow>\n    </div>\n  </a>\n</div>\n<div class="subtitle-message-banner style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.subtitleMessage]]">\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.text]]" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.termsText]]" force-default-style="" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return oSc=a},{mode:1});var qSc;var rSc=function(){return _.P.apply(this,arguments)||this};
_.z(rSc,_.P);var H1=rSc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],H1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],H1.prototype,"data",void 0);H1=_.U([_.Q({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],H1);
_.S(H1,"ytd-abuse-type-selector-renderer",function(){if(qSc!==void 0)return qSc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-abuse-type-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-abuse-type-selector-renderer">\n  <form class="style-scope ytd-abuse-type-selector-renderer">\n    <yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" class="style-scope ytd-abuse-type-selector-renderer">\n    </yt-options-renderer>\n  </form>\n  <div id="footer" class="style-scope ytd-abuse-type-selector-renderer">[[getSimpleString(data.footer)]]</div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return qSc=a},{mode:1});var sSc;var I1=function(){return _.P.apply(this,arguments)||this};
_.z(I1,_.P);I1.prototype.attached=function(){var a=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){a.additionalContextInput.focusTextInput()})};
I1.prototype.handleAdditionalContextChanged=function(){var a=this;_.Fr(this,"ytd-report-channel-additional-context-update",function(){a.ytdReduxBehavior.dispatch(_.hp({type:"ADDITIONAL_CONTEXT_UPDATED",payload:a.additionalContext}))},300)};
I1.prototype.updateAdditionalContextFromBinding=function(a){this.additionalContext=a.detail.value};
var J1=I1;J1.prototype.handleAdditionalContextChanged=J1.prototype.handleAdditionalContextChanged;_.U([_.H(_.OI),_.W("design:type",Object)],J1.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",String)],J1.prototype,"additionalContext",void 0);_.U([_.O({selector:function(a){return a.reportChannelAbuse.additionalContext}}),
_.W("design:type",String)],J1.prototype,"additionalContextRedux",void 0);_.U([_.O(),_.W("design:type",Object)],J1.prototype,"data",void 0);_.U([_.ir("yt-text-input-form-field-renderer"),_.W("design:type",Object)],J1.prototype,"additionalContextInput",void 0);_.U([_.N("additionalContext"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],J1.prototype,"handleAdditionalContextChanged",null);
J1=_.U([_.Q({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],J1);
_.S(J1,"ytd-report-channel-modal-additional-context-renderer",function(){if(sSc!==void 0)return sSc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-additional-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.additionalDetailsTextField.textInputFormFieldRenderer]]" value="[[additionalContext]]" on-value-changed="updateAdditionalContextFromBinding" class="style-scope ytd-report-channel-modal-additional-context-renderer">\n</yt-text-input-form-field-renderer>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return sSc=a},{mode:1});var tSc;var uSc=function(){var a=_.P.apply(this,arguments)||this;a.nextButtonDisabled=null;a.submitEndpoint=null;a.navigationEndpoint=null;a.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return a};
_.z(uSc,_.P);_.f=uSc.prototype;_.f.computeNextButtonData=function(a,b,c){var d={};b&&(d.navigationEndpoint=b);c&&(d.serviceEndpoint=c);a&&a.buttonRenderer&&_.Cf.extend(d,a.buttonRenderer);return d};
_.f.handleReportChannelModalDisableNextButtonAction=function(a){this.setNextButtonIsDisabled(a)};
_.f.handleReportFormEndpointUpdateAction=function(a){this.setNextButtonIsDisabled(!!a.disableSubmitButton);this.resetEndpointData();a.submitEndpoint?this.submitEndpoint=a.submitEndpoint:a.submitNavigationEndpoint&&(this.navigationEndpoint=a.submitNavigationEndpoint)};
_.f.handleSignalActionSubmitForm=function(){var a,b=Object.keys(((a=this.reportChannelAbuseForm)==null?void 0:a.selectedVideoIds)||{}),c;a=((c=this.reportChannelAbuseForm)==null?void 0:c.additionalContext)||"";var d;c=((d=this.reportChannelAbuseForm)==null?void 0:d.impersonatedChannelUrl)||"";var e;if((e=this.data)==null?0:e.submitEndpoint)if(b={impersonated_channel_url:c,text:a,video_ids:b},_.w("web_ytd_report_channel_modal_footer_renderer_command_resolver_ks")){var g;_.oo(this.hostElement,[(g=this.data)==
null?void 0:g.submitEndpoint,b])}else{var k;_.v().resolve(_.Yi).resolveCommand((k=this.data)==null?void 0:k.submitEndpoint,{form:Object.assign({},b,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.f.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.f.onYtServiceRequestError=function(a){this.setNextButtonIsDisabled(!1);_.OW(this.hostElement,a.detail.error.message)};
_.f.setNextButtonIsDisabled=function(a){this.set("data.nextButton.buttonRenderer.isDisabled",a)};
_.f.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
var K1=uSc;K1.prototype.onYtServiceRequestError=K1.prototype.onYtServiceRequestError;K1.prototype.onYtServiceRequestCompleted=K1.prototype.onYtServiceRequestCompleted;_.U([_.O(),_.W("design:type",Object)],K1.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],K1.prototype,"nextButtonDisabled",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],K1.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],K1.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],K1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],K1.prototype,"submitEndpoint",void 0);_.U([_.O(),_.W("design:type",Object)],K1.prototype,"navigationEndpoint",void 0);_.U([_.O({selector:function(a){return a.reportChannelAbuse}}),
_.W("design:type",Object)],K1.prototype,"reportChannelAbuseForm",void 0);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],K1.prototype,"onYtServiceRequestCompleted",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],K1.prototype,"onYtServiceRequestError",null);
K1=_.U([_.Q({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],K1);
_.S(K1,"ytd-report-channel-modal-footer-renderer",function(){if(tSc!==void 0)return tSc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n<ytd-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, navigationEndpoint, submitEndpoint)]]" disabled="[[data.nextButton.buttonRenderer.isDisabled]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return tSc=a},{mode:1});var vSc;var L1=function(){var a=_.P.apply(this,arguments)||this;a.boundOnTapDismissButton=function(){a.closePopup()};
return a};
_.z(L1,_.P);L1.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
L1.prototype.handleDataChanged=function(){_.Ok(this.hostElement)};
L1.prototype.closePopup=function(){_.lo(this.hostElement,"yt-close-popup-action")};
var M1=L1;M1.prototype.handleDataChanged=M1.prototype.handleDataChanged;_.U([_.O(),_.W("design:type",Object)],M1.prototype,"boundOnTapDismissButton",void 0);_.U([_.O(),_.W("design:type",Object)],M1.prototype,"data",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],M1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],M1.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],M1.prototype,"handleDataChanged",null);M1=_.U([_.Q({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],M1);
_.S(M1,"ytd-report-channel-modal-header-renderer",function(){if(vSc!==void 0)return vSc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-report-channel-modal-header-renderer">\n  <span id="title" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.title)]]</span>\n  <span id="subtitle" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.subtitle)]]</span>\n</div>\n<div id="dismiss-button" class="style-scope ytd-report-channel-modal-header-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return vSc=a},{mode:1});var wSc;var xSc=function(){var a=_.P.apply(this,arguments)||this;a.autoValidate=!1;a.invalid=!1;a.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return a};
_.z(xSc,_.P);_.f=xSc.prototype;_.f.attached=function(){var a=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){a.channelUrlInput.focusTextInput()})};
_.f.disableNextButton=function(a){_.lo(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[a])};
_.f.handleImpersonatedChannelUrlChanged=function(){var a=this;this.disableNextButton(!0);this.invalid=!1;_.Fr(this,"ytd-report-channel-impersonated-channel-update",function(){var b=a.impersonatedChannelUrl.trim();a.ytdReduxBehavior.dispatch(_.hp({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:b}));var c;((c=a.data)==null?0:c.submitEndpoint)&&b&&_.oo(a.hostElement,[a.data.submitEndpoint,{impersonated_channel_url:b}])},500)};
_.f.handleModifyReportFormCommand=function(a){this.invalid=this.get("modifyReportFormCommand.action",a)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.f.updateInvalidFromBinding=function(a){this.invalid=a.detail.value};
_.f.updateImpersonatedChannelUrlFromBinding=function(a){this.impersonatedChannelUrl=a.detail.value};
var N1=xSc;N1.prototype.handleImpersonatedChannelUrlChanged=N1.prototype.handleImpersonatedChannelUrlChanged;_.U([_.H(_.OI),_.W("design:type",Object)],N1.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],N1.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],N1.prototype,"autoValidate",void 0);_.U([_.O(),_.W("design:type",Object)],N1.prototype,"invalid",void 0);
_.U([_.O(),_.W("design:type",String)],N1.prototype,"impersonatedChannelUrl",void 0);_.U([_.O({selector:function(a){return a.reportChannelAbuse.impersonatedChannelUrl}}),
_.W("design:type",String)],N1.prototype,"impersonatedChannelUrlRedux",void 0);_.U([_.O(),_.W("design:type",Object)],N1.prototype,"data",void 0);_.U([_.ir("#text-input"),_.W("design:type",Object)],N1.prototype,"channelUrlInput",void 0);_.U([_.N("impersonatedChannelUrl"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],N1.prototype,"handleImpersonatedChannelUrlChanged",null);
N1=_.U([_.Q({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],N1);
_.S(N1,"ytd-report-channel-modal-impersonation-renderer",function(){if(wSc!==void 0)return wSc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-impersonation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer id="text-input" auto-validate="[[autoValidate]]" component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.impersonationTextField.textInputFormFieldRenderer]]" invalid="[[invalid]]" value="[[impersonatedChannelUrl]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="updateImpersonatedChannelUrlFromBinding" class="style-scope ytd-report-channel-modal-impersonation-renderer"></yt-text-input-form-field-renderer>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return wSc=a},{mode:1});var ySc;var zSc;var O1=function(){return _.P.apply(this,arguments)||this};
_.z(O1,_.P);O1.prototype.onCheckboxToggled=function(a){var b,c,d=(c=_.y((b=this.data)==null?void 0:b.video,_.KEb))==null?void 0:c.videoId;d&&this.ytdReduxBehavior.dispatch(a.target.checked?_.hp({type:"VIDEO_SELECTED",payload:d}):_.hp({type:"VIDEO_UNSELECTED",payload:d}))};
O1.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.Um.Object.defineProperties(O1.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var a,b=(a=this.data)==null?void 0:a.video;if(!b)return{};var c;a=(c=_.y(b,_.KEb))==null?void 0:c.navigationEndpoint;if(!a)return b;_.y(a==null?void 0:a.commandMetadata,_.co)&&(_.y(a.commandMetadata,_.co).ignoreNavigation=!0);return b}}});
var P1=O1;_.U([_.O({reflectToAttribute:!0,selector:function(a,b){return b in a.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.W("design:type",Boolean)],P1.prototype,"checked",void 0);_.U([_.O(),_.W("design:type",Object)],P1.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],P1.prototype,"video",null);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],P1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],P1.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.OI),_.W("design:type",Object)],P1.prototype,"ytdReduxBehavior",void 0);P1=_.U([_.Q({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],P1);
_.S(P1,"ytd-selectable-video-renderer",function(){if(zSc!==void 0)return zSc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox checked="[[checked]]" on-change="onCheckboxToggled" class="style-scope ytd-selectable-video-renderer">\n  <div id="video" class="style-scope ytd-selectable-video-renderer"></div>\n</tp-yt-paper-checkbox>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return zSc=a},{mode:1});var ASc=function(){var a=_.P.apply(this,arguments)||this;a.monitorScroll=!0;return a};
_.z(ASc,_.P);ASc.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
var Q1=ASc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Q1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],Q1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Q1.prototype,"data",void 0);Q1=_.U([_.Q({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],Q1);
_.S(Q1,"ytd-selectable-video-list-renderer",function(){if(ySc!==void 0)return ySc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selectable-videos" hidden="[[!data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer"></div>\n<div id="empty-state-message" hidden="[[data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer">\n  [[getSimpleString(data.emptyStateMessage)]]\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return ySc=a},{mode:1});var BSc;_.Ft("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var R1=function(){return _.P.apply(this,arguments)||this};
_.z(R1,_.P);R1.prototype.onChange=function(a){if(a=_.Sq(a).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.w("kevlar_command_handler_migration_killswitch"))_.po(this.hostElement,a,this.hostElement);else{a=_.h(a);for(var b=a.next();!b.done;b=a.next())this.ytComponentBehavior.resolveCommand(b.value)}};
R1.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
R1.prototype.updateDataToggledFromBinding=function(a){this.set("data.toggled",a.detail.value)};
var S1=R1;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],S1.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],S1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],S1.prototype,"data",void 0);_.U([_.O({computed:"isEnabled(data)"}),_.W("design:type",Boolean)],S1.prototype,"enabled",void 0);S1=_.U([_.Q({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],S1);
_.S(S1,"ytd-toggle-item-renderer",function(){if(BSc!==void 0)return BSc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.descriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="description style-scope ytd-toggle-item-renderer">[[getSimpleString(item)]]</div>\n</template>\n<div id="caption-container" class="style-scope ytd-toggle-item-renderer">\n  <div id="caption" class="style-scope ytd-toggle-item-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button checked="[[data.toggled]]" disabled="[[!enabled]]" noink="" on-change="onChange" on-checked-changed="updateDataToggledFromBinding" class="style-scope ytd-toggle-item-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<template is="dom-repeat" items="[[data.extraDescriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="extra-description style-scope ytd-toggle-item-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-toggle-item-renderer"></yt-formatted-string>\n  </div>\n</template>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return BSc=a},{mode:1});var CSc;var DSc;var ESc;var T1=function(){var a=_.P.apply(this,arguments)||this;a.setVisible=!1;a.boundOnSubmitButtonClick=function(){a.onSubmitButtonClick()};
a.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return a};
_.z(T1,_.P);T1.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnSubmitButtonClick]]"},params:{noink:!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
T1.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
T1.prototype.onSubmitButtonClick=function(){var a;((a=this.data)==null?0:a.submitEndpoint)&&!_.w("enable_ytc_refunds_submit_form_signal_action")&&_.oo(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
T1.prototype.handleSignalActionSubmitForm=function(){var a;((a=this.data)==null?0:a.submitEndpoint)&&_.oo(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.Um.Object.defineProperties(T1.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.hiddenByDefault)&&!this.setVisible}}});
var U1=T1;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],U1.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],U1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],U1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],U1.prototype,"setVisible",void 0);_.U([_.O(),_.W("design:type",Object)],U1.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],U1.prototype,"surveyFeedbackData",void 0);_.U([_.O(),_.W("design:type",Object)],U1.prototype,"boundOnSubmitButtonClick",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data","setVisible"),_.W("design:type",Object),_.W("design:paramtypes",[])],U1.prototype,"visibilityHidden",null);U1=_.U([_.wr({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],U1);
_.S(U1,"yt-flow-footer-renderer",function(){if(ESc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_footer_renderer.yt.flow.footer.renderer.css.js--\x3e<div id="secondary-button" hidden$="[[!data.secondaryButton]]" class="style-scope yt-flow-footer-renderer"></div><div id="primary-button" hidden$="[[!data.primaryButton]]" class="style-scope yt-flow-footer-renderer"></div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;DSc===void 0&&(DSc=document.createElement("template"));var d=DSc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);ESc=a}a=ESc;return a},{mode:2});var FSc=function(){return _.P.apply(this,arguments)||this};
_.z(FSc,_.P);var V1=FSc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],V1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],V1.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],V1.prototype,"data",void 0);_.U([_.O({selector:function(a){return a.ypc.surveyFeedbackData}}),
_.W("design:type",Object)],V1.prototype,"surveyFeedbackData",void 0);V1=_.U([_.Q({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],V1);
_.S(V1,"ytd-flow-footer-renderer",function(){if(CSc!==void 0)return CSc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-flow-footer-renderer data="[[data]]" survey-feedback-data="[[surveyFeedbackData]]" class="style-scope ytd-flow-footer-renderer">\n</yt-flow-footer-renderer>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return CSc=a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var GSc;var HSc;var ISc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return a};
_.z(ISc,_.P);_.f=ISc.prototype;_.f.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.Gt("multiPageMenuSectionItems")}}};
_.f.handleHideEnclosingAction_=function(a){if(this.data&&this.data.items)for(var b=0;b<this.data.items.length;b++){var c=this.data.items[b].notificationRenderer;if(c&&c.notificationId==a.hideEnclosingAction.notificationId){this.splice("data.items",b,1);_.lo(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.f.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.cr(this.hostElement,"hidden",!0)};
_.f.updateMenu_=function(a){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&a&&!a.doNotRefreshInbox){a=this.data.continuations;for(var b=0;b<a.length;b++)if(a[b].invalidationContinuationData){var c=void 0;var d=(c=a[b].invalidationContinuationData)==null?void 0:c.continuation;break}a=_.Cf.clone(this.data.continuationUpdateEndpoint||null);a.continuation=d;a.click_tracking_params=this.data.trackingParams;_.oo(this.hostElement,[a])}};
_.f.onServiceRequestCompleted_=function(a,b){if(this.data&&(a=b.actions)){b=0;for(var c=a.length;b<c;b++){var d=_.y(a[b],_.Tzb);if(!d)break;if((d.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||d.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&d.continuationItems&&this.data.items){var e=this.data.items.length-1;this.data.items[e].continuationItemRenderer&&this.splice.apply(this,["data.items",e,1].concat(d.continuationItems))}}}};
var W1=ISc;W1.prototype.onServiceRequestCompleted_=W1.prototype.onServiceRequestCompleted_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],W1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],W1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],W1.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],W1.prototype,"data",void 0);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Vt]),_.W("design:returntype")],W1.prototype,"onServiceRequestCompleted_",null);W1=_.U([_.wr({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],W1);
_.$r()(W1,"yt-multi-page-menu-section-renderer",function(){if(HSc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-multi-page-menu-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.account.yt_multi_page_menu_section_renderer.yt.multi.page.menu.section.renderer.css.js--\x3e<div id="section-title" hidden="[[!data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer">\n  <h2 class="style-scope yt-multi-page-menu-section-renderer">\n    <yt-formatted-string text="[[data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer"></yt-formatted-string>\n  </h2>\n</div>\n<div id="items" class="style-scope yt-multi-page-menu-section-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;GSc===void 0&&(GSc=document.createElement("template"));var d=GSc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);HSc=a}a=HSc;return a},{allowedProps:["data"],
mode:2});var JSc;var KSc;var LSc=function(){return _.P.apply(this,arguments)||this};
_.z(LSc,_.P);LSc.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.Um.Object.defineProperties(LSc.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.progress)==null?0:this.data.progress*100}}});
var X1=LSc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],X1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],X1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],X1.prototype,"data",void 0);_.U([_.K("data.progress"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],X1.prototype,"showProgressBar",null);
_.U([_.K("data.progress"),_.W("design:type",Number),_.W("design:paramtypes",[])],X1.prototype,"progress",null);X1=_.U([_.wr({is:"yt-flow-header-renderer",disableElementRegistration:!0})],X1);
_.S(X1,"yt-flow-header-renderer",function(){if(KSc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_header_renderer.yt.flow.header.renderer.css.js--\x3e<div id="top-bar" class="style-scope yt-flow-header-renderer">\n  <div id="action-button" hidden$="[[!data.actionButton]]" class="style-scope yt-flow-header-renderer"></div>\n  <yt-formatted-string id="title" force-default-style="" split-lines="1" text="[[data.title]]" class="style-scope yt-flow-header-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-paper-progress id="progress-bar" hidden="[[!showProgressBar]]" value="[[progress]]" class="style-scope yt-flow-header-renderer"></tp-yt-paper-progress>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;JSc===void 0&&(JSc=document.createElement("template"));var d=JSc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);KSc=a}a=KSc;return a},{mode:2});var MSc;var NSc;var OSc=function(){return _.P.apply(this,arguments)||this};
_.z(OSc,_.P);OSc.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
var Y1=OSc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Y1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],Y1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Y1.prototype,"data",void 0);Y1=_.U([_.wr({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],Y1);
_.S(Y1,"yt-post-confirmation-flow-step-renderer",function(){if(NSc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-post-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_post_confirmation_flow_step_renderer.yt.post.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-post-confirmation-flow-step-renderer"><div id="text" class="style-scope yt-post-confirmation-flow-step-renderer"></div></div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;MSc===void 0&&(MSc=document.createElement("template"));var d=MSc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);NSc=a}a=NSc;return a},{mode:2});var PSc;var QSc;var RSc=function(){return _.P.apply(this,arguments)||this};
_.z(RSc,_.P);
RSc.prototype.configureRendererStamper=function(){return{"data.userInfo":{id:"user-info",mapping:{cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}},"data.confirmationText":{id:"confirmation-text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.confirmationDetailsHeader":{id:"confirmation-details",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.productDetails":{id:"product-details",mapping:{activityItemRenderer:{component:"yt-activity-item-renderer"}}},
"data.billingDetails":{id:"billing-details",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
var Z1=RSc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Z1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],Z1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Z1.prototype,"data",void 0);Z1=_.U([_.wr({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],Z1);
_.S(Z1,"yt-refund-confirmation-flow-step-renderer",function(){if(QSc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-refund-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_refund_confirmation_flow_step_renderer.yt.refund.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-refund-confirmation-flow-step-renderer"><div id="user-info" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-text" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="product-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="billing-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div></div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;PSc===void 0&&(PSc=document.createElement("template"));var d=PSc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);QSc=a}a=QSc;return a},{mode:2});_.Zl(Cxc);_.Zl(Dxc);var Exc=_.Du({avatarViewModel:_.Kv});_.Zl(Fxc);var Gxc=_.Du({commentInteractionViewModel:Dxc,sharedSubscriptionViewModel:Fxc,buttonViewModel:_.Qu});_.Zl(Hxc);_.Zl(Ixc);_.Zl(Jxc);_.Zl(Kxc);_.Zl(Lxc);var Mxc=_.Du({profileIdentityInfoViewModel:_.fnc,profileInfoViewModel:Lxc});_.Zl(Nxc);_.at(Nxc,"yt-profile-card-view-model",{propNames:["data"]});var SSc=function(){var a=_.P.apply(this,arguments)||this;a.enableFocusFix=_.w("music_web_enable_focus_on_setting_menu_fix")&&_.Gi("IS_MOBILE_WEB",!1);a.covered=!1;a.hideMenu=!1;a.isCommentNotificationOnProfileCard=!1;a.scrolledByTouch=!1;a.disableBackdropFilter=_.w("web_disable_backdrop_filter");a.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return a};
_.z(SSc,_.P);_.f=SSc.prototype;
_.f.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{activeAccountHeaderRenderer:"ytd-active-account-header-renderer",flowHeaderRenderer:"yt-flow-header-renderer",simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer",reportChannelModalHeaderRenderer:"ytd-report-channel-modal-header-renderer"}},"data.sections":{id:"sections",mapping:{additionalContextRenderer:"ytd-report-channel-modal-additional-context-renderer",abuseTypeSelectorRenderer:"ytd-abuse-type-selector-renderer",accountSectionListRenderer:"ytd-account-section-list-renderer",
backgroundPromoRenderer:"ytd-background-promo-renderer",commentVideoThumbnailHeaderRenderer:"ytd-comment-video-thumbnail-header-renderer",impersonationScreenRenderer:"ytd-report-channel-modal-impersonation-renderer",itemSectionRenderer:"ytd-comments",messageRenderer:"ytd-message-renderer",multiPageMenuNotificationSectionRenderer:"yt-multi-page-menu-section-renderer",multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",postConfirmationFlowStepRenderer:"yt-post-confirmation-flow-step-renderer",
refundConfirmationFlowStepRenderer:"yt-refund-confirmation-flow-step-renderer",selectableVideoListRenderer:"ytd-selectable-video-list-renderer",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",toggleItemRenderer:"ytd-toggle-item-renderer",profileCardViewModel:"yt-profile-card-view-model",continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.footer":{id:"footer",mapping:{multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",reportChannelModalFooterRenderer:"ytd-report-channel-modal-footer-renderer",
flowFooterRenderer:"ytd-flow-footer-renderer"}}}};
_.f.ready=function(){var a=this;this.JSC$17768_containerElement.addEventListener("scroll",function(){a.ytRendererBehavior.markDirty()})};
_.f.attributeChanged=function(a,b){a==="menu-style"&&_.lo(this.hostElement,"yt-multi-page-menu-closed-action",[b])};
_.f.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.gr(this,this.focusOnStampFinished))};
_.f.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.gr(this,this.focusOnStampFinished))};
_.f.reset=function(){this.closeJobId&&(_.zk.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.f.focusOnStampFinished=function(a){a.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.gr(this,this.focusOnStampFinished)),this.doFocus())};
_.f.doFocus=function(){var a=_.fwb(this.sectionsElement);a.length&&a[0].focus()};
_.f.computeMenuStyle=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.f.computeIsCommentNotificationOnProfileCard=function(a){return _.w("enable_profile_cards_on_comments")&&a.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.f.computeHideMenu=function(a,b){return a||!(!b||!b.showLoadingSpinner)};
_.f.onPopupClosed=function(){this.isPopUpOpen=!1;_.lo(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.f.onPopupOpened=function(a,b){this.isPopUpOpen=!0;b.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.io(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.hp({type:"CHANNEL_REPORT_RESET"})))};
_.f.onYtNavigate=function(a,b){this.shouldCloseOnNavigateEvent(b.endpoint)&&_.lo(this.hostElement,"yt-close-all-popups-action")};
_.f.handleEndpoint=function(a){a=_.y(a,_.NE);!this.isCommentNotificationOnProfileCard&&a&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17768_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.f.handleActions=function(a){for(var b=0,c=a.length;b<c;b++){var d=_.y(a[b],yJc);d&&this.handleGetMultiPageMenuAction(d);(d=_.y(a[b],_.Tzb))&&this.handleAppendContinuationItemsAction(d)}};
_.f.onServiceRequestSentOrCompleted=function(a,b){a.detail&&a.detail.endpoint&&this.handleEndpoint(a.detail.endpoint);b.actions&&this.handleActions(b.actions)};
_.f.handleGetMultiPageMenuAction=function(a){var b=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.E(this.submenuElement).appendChild(b);(a=a.menu.multiPageMenuRenderer)&&this.logSubmenu(a);b.data=a;b.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.f.handleAppendContinuationItemsAction=function(a){if(this.data&&a.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&a.continuationItems&&this.data.sections){var b=this.data.sections.length-1;this.data.sections[b].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),b--);if(this.data.sections[b].multiPageMenuNotificationSectionRenderer&&a.continuationItems){a=_.h(a==null?void 0:a.continuationItems);for(var c=a.next();!c.done;c=a.next())if(c=c.value,_.y(c,aKc)){var d=
void 0,e=void 0,g=void 0,k=void 0,m=void 0;((d=this)==null?0:(e=d.data)==null?0:(g=e.sections)==null?0:(k=g[b])==null?0:(m=k.multiPageMenuNotificationSectionRenderer)==null?0:m.items)&&this.push("data.sections."+b+".multiPageMenuNotificationSectionRenderer.items",c)}else if(_.y(c,_.DAb)||_.y(c,_.sw))this.push("data.sections",c),b++}}};
_.f.logSubmenu=function(a){if(!_.w("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var b=this.ytRendererBehavior.getScreenLayer(),c=_.En(b),d=_.Dn(b);if((a=a.trackingParams)&&c&&d){var e=_.ps(a);_.w("combine_ve_grafts")?_.ls().graftServerVe(a,d,b):_.To(c,d,e)}}};
_.f.emptySubmenuContainer=function(){for(var a=_.E(this.submenuElement);a.firstChild;)a.removeChild(a.firstChild)};
_.f.onMenuBackTap=function(a){_.io(this.hostElement,"yt-submenu-closed");a.stopPropagation()};
_.f.onSubmenuClosed=function(a){_.Sq(a)!==this.hostElement&&(this.covered=!1,_.io(this.hostElement,"yt-refit"),a.stopPropagation())};
_.f.onRetrieveLocation=function(a,b){b.hasComments&&(b.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),a.stopPropagation())};
_.f.shouldCloseOnNavigateEvent=function(a){if(!a)return!0;if(_.y(a,_.zDb)||_.y(a,_.ADb)||_.y(a,_.yDb)||_.y(a,_.Kl))return!1;var b;return((b=_.y(a==null?void 0:a.commandMetadata,_.co))==null?0:b.ignoreNavigation)?!1:!0};
_.f.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.f.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.f.refitAfterRender=function(){var a=this;_.Qm(this,function(){_.io(a.hostElement,"yt-refit")})};
var $1=SSc;$1.prototype.refitAfterRender=$1.prototype.refitAfterRender;$1.prototype.onRetrieveLocation=$1.prototype.onRetrieveLocation;$1.prototype.onSubmenuClosed=$1.prototype.onSubmenuClosed;$1.prototype.onMenuBackTap=$1.prototype.onMenuBackTap;$1.prototype.onServiceRequestSentOrCompleted=$1.prototype.onServiceRequestSentOrCompleted;$1.prototype.onYtNavigate=$1.prototype.onYtNavigate;$1.prototype.onPopupOpened=$1.prototype.onPopupOpened;$1.prototype.onPopupClosed=$1.prototype.onPopupClosed;
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],$1.prototype,"ytEventForwardingBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],$1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],$1.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],$1.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],$1.prototype,"enableFocusFix",void 0);_.U([_.O(),_.W("design:type",Object)],$1.prototype,"covered",void 0);_.U([_.O({computed:"computeHideMenu(covered, data)"}),_.W("design:type",Object)],$1.prototype,"hideMenu",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.W("design:type",String)],$1.prototype,"menuStyle",void 0);
_.U([_.O({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.W("design:type",Object)],$1.prototype,"isCommentNotificationOnProfileCard",void 0);_.U([_.O(),_.W("design:type",Boolean)],$1.prototype,"isPopUpOpen",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$1.prototype,"scrolledByTouch",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$1.prototype,"disableBackdropFilter",void 0);
_.U([_.ir("#sections"),_.W("design:type",HTMLElement)],$1.prototype,"sectionsElement",void 0);_.U([_.ir("#spinner"),_.W("design:type",HTMLElement)],$1.prototype,"spinnerElement",void 0);_.U([_.ir("#header"),_.W("design:type",HTMLElement)],$1.prototype,"headerElement",void 0);_.U([_.ir("#container"),_.W("design:type",HTMLElement)],$1.prototype,"JSC$17768_containerElement",void 0);_.U([_.ir("#submenu"),_.W("design:type",HTMLElement)],$1.prototype,"submenuElement",void 0);
_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$1.prototype,"onPopupClosed",null);_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],$1.prototype,"onPopupOpened",null);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],$1.prototype,"onYtNavigate",null);
_.U([_.M("yt-service-request-completed"),_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Vt]),_.W("design:returntype")],$1.prototype,"onServiceRequestSentOrCompleted",null);_.U([_.M("yt-menu-back-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],$1.prototype,"onMenuBackTap",null);
_.U([_.M("yt-submenu-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],$1.prototype,"onSubmenuClosed",null);_.U([_.M("yt-retrieve-location"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],$1.prototype,"onRetrieveLocation",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$1.prototype,"refitAfterRender",null);
$1=_.U([_.Q({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],$1);
_.S($1,"ytd-multi-page-menu-renderer",function(){if(lSc!==void 0)return lSc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-page-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="header" hidden="[[hideMenu]]" class="style-scope ytd-multi-page-menu-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[hideMenu]]" on-touchstart="onContainerTouchStart" on-touchend="onContainerTouchEnd">\n  <div id="sections" class="style-scope ytd-multi-page-menu-renderer"></div>\n  <div id="footer" class="style-scope ytd-multi-page-menu-renderer"></div>\n</div>\n<div id="submenu" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[!covered]]"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return lSc=a},{mode:1});var TSc;var USc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return a};
_.z(USc,_.P);_.f=USc.prototype;_.f.created=function(){this.showTooltips=!0};
_.f.computeAccessibility_=function(a){return this.get("accessibility.accessibilityData",a)||null};
_.f.onTap=function(){var a=_.mo(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(a&&a.length===1&&a[0])_.lo(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var b;if((b=this.data)==null?0:b.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var c;((c=this.data)==null?0:c.menuRequest)&&_.oo(this.hostElement,[this.data.menuRequest])}}};
_.f.handleTopbarMenuClosedAction=function(a){var b,c;(new Map([["multi-page-menu-style-type-creation","VIDEO_CALL"],["multi-page-menu-style-type-notifications","NOTIFICATIONS"],["multi-page-menu-style-type-yt-apps","APPS"]])).get(a)===((b=this.data)==null?void 0:(c=b.icon)==null?void 0:c.iconType)&&this.toggleIconState(!1)};
_.f.toggleIconState=function(a){_.w("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=a)};
_.f.handleUpdateTopbarAvatarAction=function(a){var b;a=(b=_.y(a,rJc))==null?void 0:b.avatarUrl;var c,d;b=(c=this.data)==null?void 0:(d=c.avatar)==null?void 0:d.thumbnails;a&&b&&(c={thumbnails:[Object.assign({},b[0],{url:a})]},this.set("data.avatar",c))};
_.Um.Object.defineProperties(USc.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.E(this.hostElement).querySelector("#button")}}});
var a2=USc;a2.prototype.onTap=a2.prototype.onTap;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],a2.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],a2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aI),_.W("design:type",Object)],a2.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.H(_.WPb.YtButtonBehavior),_.W("design:type",Object)],a2.prototype,"ytButtonBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],a2.prototype,"data",void 0);_.U([_.ir("yt-icon-button#button"),_.W("design:type",Object)],a2.prototype,"iconButton",void 0);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],a2.prototype,"onTap",null);a2=_.U([_.Q({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],a2);
_.S(a2,"ytd-topbar-menu-button-renderer",function(){if(TSc!==void 0)return TSc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-menu-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.avatar]]" class="style-scope ytd-topbar-menu-button-renderer">\n  <button id="avatar-btn" aria-haspopup="true" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope ytd-topbar-menu-button-renderer">\n    <yt-img-shadow height="32" thumbnail="[[data.avatar]]" width="32" class="style-scope ytd-topbar-menu-button-renderer"></yt-img-shadow>\n  </button>\n</template>\n<div id="button" class="style-scope ytd-topbar-menu-button-renderer">\n  \n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return TSc=a},{mode:1});var VSc;var WSc=function(){return _.P.apply(this,arguments)||this};
_.z(WSc,_.P);WSc.prototype.getSelected=function(){return this.reasons.selected};
var b2=WSc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],b2.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],b2.prototype,"data",void 0);_.U([_.ir("#reasons"),_.W("design:type",Object)],b2.prototype,"reasons",void 0);b2=_.U([_.Q({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],b2);
_.S(b2,"ytd-ad-feedback-content",function(){if(VSc!==void 0)return VSc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  <yt-formatted-string id="reasons-title" text="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  </yt-formatted-string>\n</template>\n<tp-yt-paper-radio-group id="reasons" class="style-scope ytd-ad-feedback-content">\n  <template is="dom-repeat" items="[[data.reasons]]" as="feedbackReason" class="style-scope ytd-ad-feedback-content">\n    <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-ad-feedback-content">\n      <yt-formatted-string text="[[feedbackReason.reason]]" class="style-scope ytd-ad-feedback-content">\n      </yt-formatted-string>\n    </tp-yt-paper-radio-button>\n  </template>\n</tp-yt-paper-radio-group>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return VSc=a},{mode:1});var XSc;var YSc=function(){return _.P.apply(this,arguments)||this};
_.z(YSc,_.P);_.f=YSc.prototype;_.f.onPopupOpened=function(){_.lo(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.f.computeConfirmButton=function(a){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:a.confirmLabel}};
_.f.computeCancelButton=function(a){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:a.cancelLabel}};
_.f.onConfirmTap=function(){var a=this.content.getSelected();a!==void 0&&(a=this.data.reasons[a].endpoint)&&(_.w("web_ytd_ad_feedback_renderer_command_resolver_ks")?_.oo(this.hostElement,[a]):_.v().resolve(_.Yi).resolveCommand(a,{form:{element:this.hostElement}}),_.lo(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.f.sendFeedbackSubmitToastAction=function(){var a;(a=this.data)!=null&&a.completionMessage&&_.lo(this.hostElement,"yt-open-popup-action",[_.$p(this.data.completionMessage),this])};
_.f.onCancelTap=function(){_.lo(this.hostElement,"yt-close-popup-action")};
var c2=YSc;c2.prototype.onPopupOpened=c2.prototype.onPopupOpened;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],c2.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],c2.prototype,"data",void 0);_.U([_.ir("#content"),_.W("design:type",Object)],c2.prototype,"content",void 0);_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],c2.prototype,"onPopupOpened",null);
c2=_.U([_.Q({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],c2);
_.S(c2,"ytd-ad-feedback-renderer",function(){if(XSc!==void 0)return XSc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-ad-feedback-renderer"></yt-formatted-string>\n<ytd-ad-feedback-content id="content" data="[[data]]" class="style-scope ytd-ad-feedback-renderer"></ytd-ad-feedback-content>\n<div class="buttons style-scope ytd-ad-feedback-renderer">\n  <ytd-button-renderer data="[[computeCancelButton(data)]]" on-tap="onCancelTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return XSc=a},{mode:1});var ZSc;var $Sc=function(){return _.P.apply(this,arguments)||this};
_.z($Sc,_.P);var d2=$Sc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],d2.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],d2.prototype,"data",void 0);d2=_.U([_.Q({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],d2);
_.S(d2,"ytd-ad-info-dialog-content",function(){if(ZSc!==void 0)return ZSc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.adReasons]]" class="style-scope ytd-ad-info-dialog-content">\n  \n  <ul id="ad-reasons" class="style-scope ytd-ad-info-dialog-content">\n    <template is="dom-repeat" items="[[data.adReasons]]" as="reason" class="style-scope ytd-ad-info-dialog-content">\n      <li class="style-scope ytd-ad-info-dialog-content">\n        <yt-formatted-string text="[[reason]]" class="style-scope ytd-ad-info-dialog-content">\n        </yt-formatted-string>\n      </li>\n    </template>\n  </ul>\n</template>\n<yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope ytd-ad-info-dialog-content">\n</yt-formatted-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return ZSc=a},{mode:1});var aTc;var e2=function(){return _.P.apply(this,arguments)||this};
_.z(e2,_.P);e2.prototype.computeConfirmButton=function(a){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:a.confirmLabel}};
e2.prototype.onConfirmTap=function(){_.lo(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
e2.prototype.computeShouldShowTitle=function(){var a;return!((a=this.data)==null||!a.title)};
e2.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.v().resolve(_.Yi).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
var f2=e2;f2.prototype.onPopupClosed=f2.prototype.onPopupClosed;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],f2.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],f2.prototype,"data",void 0);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],f2.prototype,"onPopupClosed",null);f2=_.U([_.Q({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],f2);
_.S(f2,"ytd-ad-info-dialog-renderer",function(){if(aTc!==void 0)return aTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[computeShouldShowTitle(data.title)]]" class="style-scope ytd-ad-info-dialog-renderer">\n  <h2 id="title" class="style-scope ytd-ad-info-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n</template>\n<ytd-ad-info-dialog-content data="[[data]]" class="style-scope ytd-ad-info-dialog-renderer"></ytd-ad-info-dialog-content>\n<div class="buttons style-scope ytd-ad-info-dialog-renderer">\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-info-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return aTc=a},{mode:1});var bTc;var cTc=function(){var a=_.P.apply(this,arguments)||this;a.actionButtonClass="action-button";a.dismissButtonId="dismiss-button";a.dialogDismiss=!0;return a};
_.z(cTc,_.P);_.f=cTc.prototype;_.f.computeInPlayer=function(a){return(a==null?void 0:a.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.f.computedLogo=function(){var a,b;return this.isDarkTheme()?(a=this.data)==null?void 0:a.logoDark:(b=this.data)==null?void 0:b.logo};
_.f.computedHeaderImage=function(){var a,b;return this.isDarkTheme()?(a=this.data)==null?void 0:a.headerImageDark:(b=this.data)==null?void 0:b.headerImage};
_.f.computeLogoIconId=function(){var a,b,c,d=(a=this.computedLogo())==null?void 0:(b=a.sources)==null?void 0:(c=b[0])==null?void 0:c.height;return d&&d%31===0?"logo-icon-with-padding":"logo-icon"};
_.f.computeLogoIconHeight=function(){var a,b,c,d=(a=this.computedLogo())==null?void 0:(b=a.sources)==null?void 0:(c=b[0])==null?void 0:c.height;return d&&d%31===0?"31":"24"};
_.f.onPopupClosed=function(){_.v().resolve(_.xS).dispose()};
_.f.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.f.onShow=function(){this.inPlayer&&_.lq(6)};
_.f.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var a=0;a<this.data.impressionEndpoints.length;a++){var b=_.y(this.data.impressionEndpoints[a],_.Cs);b&&this.ytComponentBehavior.resolveCommand(b)}};
_.f.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.lo(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.Um.Object.defineProperties(cTc.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null||!a.headerImageDark)&&!((b=this.data)==null||!b.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.secondaryButton)}}});
var g2=cTc;g2.prototype.onPopupClosed=g2.prototype.onPopupClosed;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],g2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],g2.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.RG.YtVisibilityBehavior),_.W("design:type",Object)],g2.prototype,"ytVisibilityBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],g2.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],g2.prototype,"actionButtonClass",void 0);_.U([_.O(),_.W("design:type",Object)],g2.prototype,"dismissButtonId",void 0);_.U([_.O(),_.W("design:type",Object)],g2.prototype,"dialogDismiss",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],g2.prototype,"hasHeaderImage",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],g2.prototype,"hasPremiumButton",null);
_.U([_.O({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.W("design:type",Boolean)],g2.prototype,"inPlayer",void 0);_.U([_.ir("#dismiss-button"),_.W("design:type",HTMLElement)],g2.prototype,"dismissButton",void 0);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],g2.prototype,"onPopupClosed",null);g2=_.U([_.Q({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],g2);
_.S(g2,"ytd-enforcement-message-view-model",function(){if(bTc!==void 0)return bTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return bTc=a},{mode:1});var dTc;var eTc;var fTc=function(){var a=_.P.apply(this,arguments)||this;a.TEST_ONLY={immediateValidation:function(){a.immediateValidation()},
onValidationResponse:function(b){a.onValidationResponse(b)},
onGenerateHandleFromNameResponse:function(b){a.onGenerateHandleFromNameResponse(b)}};
return a};
_.z(fTc,_.P);_.f=fTc.prototype;_.f.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.f.validate=function(){this.immediateValidation()};
_.f.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.f.setHandleInputValue=function(a){this.handleDir=this.getHandleDir(a);this.handleInput.value=a;this.validationState={status:"PENDING"};this.immediateValidation()};
_.f.getHandleDir=function(a){var b=a===""&&!1;return(b=_.Zlb.test.call(_.Zlb,a))?"rtl":"ltr"};
_.f.onDataChanged=function(){var a,b;this.handleDir=this.getHandleDir((b=(a=this.data)==null?void 0:a.handle)!=null?b:"");var c;this.validationState=((c=this.data)==null?0:c.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var d;((d=this.data)==null?0:d.validateOnInit)&&this.immediateValidation()};
_.f.stopPropagation=function(a){a.stopPropagation()};
_.f.onInput=function(){var a;this.handleDir=this.getHandleDir((a=this.handleInput.value)!=null?a:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.f.onFocusout=function(a){this.handleInput.contains(a.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.f.delayedValidation=function(){var a,b;this.debouncedValidation((b=(a=this.data)==null?void 0:a.validationDelayMs)!=null?b:1E3)};
_.f.immediateValidation=function(){this.debouncedValidation(0)};
_.f.debouncedValidation=function(a){var b=this;_.Fr(this,"debouncedValidation",function(){var c,d=b.staticValidation((c=b.handleInput.value)!=null?c:"");if(d!==void 0)b.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:d};else{var e;if((e=b.data)!=null&&e.validateChannelHandleCommand){b.validationState={status:"LOADING"};var g;b.ytComponentBehavior.resolveCommand(b.data.validateChannelHandleCommand,{form:{handle:(g=b.handleInput.value)!=null?g:""},commandController:{onSuccess:function(k,
m){b.onValidationResponse(m)},
onServerError:function(k,m){b.onValidationServerError(m)}}})}else b.handleUnexpectedValidationError(new _.qj("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",b.data))}},a)};
_.f.staticValidation=function(a){var b;if(((b=this.data)==null?void 0:b.channelHandleStaticValidationParams)!==void 0){b=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(a)&&b.validValueRegexpErrorMessage!==void 0)return b.validValueRegexpErrorMessage;if(b.minLength!==void 0&&a.length<b.minLength&&b.minLengthErrorMessage!==void 0)return b.minLengthErrorMessage;if(b.maxLength!==void 0&&a.length>b.maxLength&&b.maxLengthErrorMessage!==void 0)return b.maxLengthErrorMessage}};
_.f.onValidationResponse=function(a){var b=_.y(a.result,sJc);b===void 0?this.handleUnexpectedValidationError(new _.qj("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",a)):this.handleValidationResultRenderer(b)};
_.f.onValidationServerError=function(a){this.handleUnexpectedValidationError(new _.qj("ValidateChannelHandle request failed.",a))};
_.f.handleValidationResultRenderer=function(a){if(a.handle===void 0)this.handleUnexpectedValidationError(new _.qj("ChannelHandleValidationResultRenderer does not contain handle.",a));else if(a.handle===this.handleInput.value)switch(a.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:a.handle};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNAVAILABLE":case "CHANNEL_HANDLE_VALIDATION_RESULT_CONFORMANCE_ERROR":case "CHANNEL_HANDLE_VALIDATION_RESULT_COMPLIANCE_ERROR":this.validationState=
{status:"INVALID",errorIndicator:"ICON",errorMessage:a.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.qj("Unrecognized ChannelHandleValidationResult",a));break;default:_.Wb(a.result)}};
_.f.handleUnexpectedValidationError=function(a){var b;this.validationState={status:"UNKNOWN",handle:(b=this.handleInput.value)!=null?b:""};_.Dl(a)};
_.f.stopEventPropagation=function(a){a.stopPropagation()};
_.f.updateHandleOnChannelNameInputChange=function(a){if(!this.wasEdited){var b,c;this.debouncedGenerateHandleFromName(a,(c=(b=this.data)==null?void 0:b.validationDelayMs)!=null?c:1E3)}};
_.f.debouncedGenerateHandleFromName=function(a,b){var c=this;_.Fr(this,"debouncedGenerateHandleFromName",function(){var d;(d=c.data)!=null&&d.validateChannelHandleCommand?c.ytComponentBehavior.resolveCommand(c.data.validateChannelHandleCommand,{form:{name:a},commandController:{onSuccess:function(e,g){c.onGenerateHandleFromNameResponse(g)},
onServerError:function(e,g){_.Dl(new _.qj("Error calling GenerateHandleFromName",g))}}}):_.Dl(new _.qj("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",c.data))},b)};
_.f.onGenerateHandleFromNameResponse=function(a){this.wasEdited||((a=_.y(a.result,tJc))?this.setHandleInputValue(a.handle):_.Dl(new _.qj("Invalid results when generate handle from name")))};
_.Um.Object.defineProperties(fTc.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var a;if(a=this.validationState)a=this.validationState,a=a.status==="OK"||a.status==="UNKNOWN";if(a)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var a;if(((a=this.validationState)==null?void 0:a.status)==="INVALID")return this.validationState.errorIndicator}},
borderErrorIndicator:{configurable:!0,enumerable:!0,get:function(){return this.errorIndicator==="BORDER"}},
handleEdit:{configurable:!0,enumerable:!0,get:function(){var a,b=(a=this.channelHandleEntity)==null?void 0:a.handleEdit;this.handleDir=this.getHandleDir(b!=null?b:"");return b}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var a,b;if(((a=this.data)==null?void 0:(b=a.channelHandleStaticValidationParams)==null?void 0:b.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
var h2=fTc;h2.prototype.stopEventPropagation=h2.prototype.stopEventPropagation;h2.prototype.onDataChanged=h2.prototype.onDataChanged;h2.prototype.applyHandleEdit=h2.prototype.applyHandleEdit;h2.prototype.onValueChanged=h2.prototype.onValueChanged;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],h2.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],h2.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],h2.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Boolean)],h2.prototype,"wasEdited",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],h2.prototype,"handleDir",void 0);_.U([_.ir("#handle-input"),_.W("design:type",Object)],h2.prototype,"handleInput",void 0);_.U([_.O(),_.K("validationState"),_.W("design:type",Object),_.W("design:paramtypes",[])],h2.prototype,"value",null);
_.U([_.N("value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h2.prototype,"onValueChanged",null);_.U([_.K("validationState"),_.W("design:type",Object),_.W("design:paramtypes",[])],h2.prototype,"errorIndicator",null);_.U([_.O({reflectToAttribute:!0}),_.K("errorIndicator"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],h2.prototype,"borderErrorIndicator",null);
_.U([_.O({selectorArgs:["data.channelHandleEntityKey"],selector:function(a,b){return _.np(a.entities,"channelHandle",b)}}),
_.W("design:type",Object)],h2.prototype,"channelHandleEntity",void 0);_.U([_.K("channelHandleEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],h2.prototype,"handleEdit",null);_.U([_.N("handleEdit"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h2.prototype,"applyHandleEdit",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h2.prototype,"onDataChanged",null);
_.U([_.K("data.channelHandleStaticValidationParams.validValueRegexp"),_.W("design:type",Object),_.W("design:paramtypes",[])],h2.prototype,"validValueRegexp",null);_.U([_.M("yt-service-request-sent"),_.M("yt-service-request-completed"),_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],h2.prototype,"stopEventPropagation",null);h2=_.U([_.Q({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],h2);
_.S(h2,"ytd-channel-handle-input-renderer",function(){if(eTc!==void 0)return eTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="handle-input" always-float-label="" dir="[[handleDir]]" input-dir="[[handleDir]]" invalid="[[equals(errorIndicator, \'BORDER\')]]" label="[[data.label]]" required="" use-v2-underline="" value="[[data.handle]]" on-focusout="onFocusout" on-input="onInput" on-keydown="stopPropagation" class="style-scope ytd-channel-handle-input-renderer">\n  <span id="prefix" slot="prefix" class="style-scope ytd-channel-handle-input-renderer">@</span>\n  <div id="suffix-container" slot="suffix" class="style-scope ytd-channel-handle-input-renderer">\n    <div id="icon-container" class="style-scope ytd-channel-handle-input-renderer">\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'LOADING\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope ytd-channel-handle-input-renderer">\n        </tp-yt-paper-spinner-lite>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(errorIndicator, \'ICON\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="error-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:error">\n        </tp-yt-iron-icon>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'OK\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="valid-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:check-circle">\n        </tp-yt-iron-icon>\n      </template>\n    </div>\n  </div>\n</tp-yt-paper-input>\n<div id="error-container" class="style-scope ytd-channel-handle-input-renderer">\n  <template is="dom-if" restamp="" if="[[equals(validationState.status, \'INVALID\')]]" class="style-scope ytd-channel-handle-input-renderer">\n    <yt-formatted-string id="error-message" text="[[validationState.errorMessage]]" class="style-scope ytd-channel-handle-input-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return eTc=a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var gTc=function(){var a=_.P.apply(this,arguments)||this;a.data=null;a.errorMessage=null;a.isLoading=!0;a.hideContainer=!1;a.enableNewChannelCreationOnIdForAll=_.w("enable_new_channel_creation_for_id4all");a.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction","yt-show-caller-popup-action":"showContainer"};a.testOnly={setErrorMessage:function(b){a.resetErrorState();
a.setErrorState(b)}};
return a};
_.z(gTc,_.P);_.f=gTc.prototype;_.f.created=function(){this.logScreenVe()};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.toggleCreateChannelButton();this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.hostElement.parentElement.style.overflowY="auto")};
_.f.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var a;((a=this.zeroStepErrorMessageEntity)==null?0:a.value)&&this.set("errorMessage",_.Vp(this.zeroStepErrorMessageEntity.value))};
_.f.onCreateTap=function(){var a=this;if(this.data&&this.data.channelCreationEndpoint){var b,c;if(!((b=this.data.createChannelButton)==null?0:(c=b.buttonRenderer)==null?0:c.isDisabled)){var d;if((d=this.nameInput)!=null&&d.value){this.setLoadingState();var e,g;b=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(e=this.handleInput)==null?void 0:e.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((g=this.handleInput)==null?void 0:g.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:b,commandController:{onSuccess:function(k,m){a.onChannelCreationEndpointSuccess(m);a.obakeImageSource&&_.xl("channelCreatedWithObakeImage",{imageSourceType:a.obakeImageSource})},
onServerError:function(){a.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.f.endpointRequiresServiceRequestAction=function(a){return!!_.y(a,_.Tw)||!!_.y(a,rJc)};
_.f.isNavigateAction=function(a){var b;return!!_.y(a,_.WW)||!!_.y((b=_.y(a,wJc))==null?void 0:b.command,_.WW)};
_.f.isPlaylistAction=function(a){return!!_.y(a,_.OE)||!!_.y(a,_.UE)};
_.f.onChannelCreationEndpointSuccess=function(a){if(a.createChannelError){var b;this.setErrorState((b=a.createChannelError)==null?void 0:b.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.w("enable_secondary_channel_creation_form")&&a.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(a.navigationEndpoint);if(a.actions){b=_.h(a.actions);for(var c=b.next();!c.done;c=b.next())if(c=c.value,this.endpointRequiresServiceRequestAction(c)&&this.ytComponentBehavior.resolveCommand(c),
this.isNavigateAction(c)){var d=void 0;c=_.y((d=_.y(c,wJc))==null?void 0:d.command,_.WW);d=void 0;this.isPlaylistAction((d=c)==null?void 0:d.endpoint)&&(_.lo(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),d=void 0,this.ytComponentBehavior.resolveCommand((d=c)==null?void 0:d.endpoint))}}a.actions&&a.actions.some(function(e){var g;return _.y(e,_.WW)||_.y((g=_.y(e,wJc))==null?void 0:g.command,_.WW)})||_.lo(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.f.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.f.onCancelTap=function(){var a,b,c;if(!((a=this.data)==null?0:(b=a.cancelButton)==null?0:(c=b.buttonRenderer)==null?0:c.isDisabled)){var d,e,g;a=(d=this.data)==null?void 0:(e=d.cancelButton)==null?void 0:(g=e.buttonRenderer)==null?void 0:g.command;if(!a||!_.y(a,_.iUa)){var k;this.nameInput&&((k=this.data)==null?0:k.name)&&(this.nameInput.value=this.data.name);var m;this.handleInput&&((m=this.data)==null?0:m.channelHandleInput)&&(this.handleInput.data=_.y(this.data.channelHandleInput,uJc));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.f.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.f.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.f.onClearProfilePhotoTap=function(){var a,b,c;((a=this.data)==null?0:(b=a.clearProfilePhotoButton)==null?0:(c=b.buttonRenderer)==null?0:c.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.f.onEditAvatarTap=function(){var a,b,c;((a=this.data)==null?0:(b=a.editAvatarButton)==null?0:(c=b.buttonRenderer)==null?0:c.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.f.setLoadingState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("errorMessage",null)};
_.f.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var a;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((a=this.data)==null?0:a.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.f.setErrorState=function(a){this.resetErrorState();if(a)this.set("errorMessage",a);else{var b;if((b=this.zeroStepErrorMessageEntity)==null?0:b.value)this.set("errorMessage",_.Vp(this.zeroStepErrorMessageEntity.value));else{var c;((c=this.data)==null?0:c.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.f.fetchImageBlobWithAlr=function(a,b){b=b===void 0?5:b;var c=this,d,e,g,k,m;return _.l(function(n){switch(n.nextAddress){case 1:return _.p(n,fetch(a,{method:"GET",mode:"cors"}),2);case 2:d=n.yieldResult;if(d.ok){n.jumpTo(3);break}if(b===0)throw Error();e=c.addJitter(Math.pow(2,5-b));return _.p(n,new Promise(function(r){setTimeout(r,e*1E3)}),4);
case 4:return n.return(c.fetchImageBlobWithAlr(a,b-1));case 3:if(!_.Jb(d.headers.get("content-type")).split(";").some(function(r){return r.trim()==="text/plain"})){n.jumpTo(5);
break}g=c;k=g.fetchImageBlobWithAlr;return _.p(n,d.text(),6);case 6:return n.return(k.call(g,n.yieldResult,b-1));case 5:return _.p(n,d.blob(),7);case 7:return m=n.yieldResult,n.return(m)}})};
_.f.addJitter=function(a){var b=a*.3*Math.random();Math.random()>.5&&(b*=-1);return a+b};
_.f.openProfilePicturePicker=function(){var a=this,b,c,d,e,g;return _.l(function(k){if(k.nextAddress==1){b=a.data.scottyUploadUrl;if(!b)return k.return();c=document.documentElement.hasAttribute("dark");d=document.body.style.colorScheme;c&&(document.body.style.colorScheme="dark");e=nGc(oGc(mGc(fGc(c?"dark":"light")),function(m){var n,r,t,u,x;return _.l(function(A){if(A.nextAddress==1)return n=_.Ky(EGc(new NY(m.photoUrl,!1)).build(),"alr","yes"),a.obakeImageSource=a.pictureChangeSourceToObakeImageSourceType(m.photoSource),
_.pe(A,2),a.setLoadingState(),_.p(A,a.fetchImageBlobWithAlr(n),4);if(A.nextAddress!=2)return r=A.yieldResult,t=new FileReader,t.addEventListener("load",function(){var C,F,J,I,R,da;return _.l(function(V){if(V.nextAddress==1){if(r.size>15728640)return a.setErrorState((C=a.data)==null?void 0:C.imageSizeErrorMessage),_.Dl(Error("ll")),V.return();if(!t.result)return a.setErrorState((F=a.data)==null?void 0:F.genericImageLoadErrorMessage),_.Dl(Error("ml")),V.return();J=t.result;_.pe(V,2);return _.p(V,Oxc(r,
b),4)}if(V.nextAddress!=2)return I=V.yieldResult,a.handleImageUpdatedAction(J,I),a.resetErrorState(),_.Jj(V,0);R=_.te(V);a.setErrorState((da=a.data)==null?void 0:da.uploadErrorMessage);if(R instanceof Error)_.Bl(R);else{var fa=new _.qj(JSON.stringify(R));_.Bl(fa)}_.ue(V)})}),t.readAsDataURL(r),_.Jj(A,0);
u=_.te(A);a.setErrorState((x=a.data)==null?void 0:x.genericImageLoadErrorMessage);u instanceof Error?_.Bl(u):_.Cl(new _.qj(JSON.stringify(u)));_.ue(A)})}),function(){a.hideContainer=!1;
document.body.style.colorScheme=d});
_.pe(k,2);return _.p(k,e.openPicker(),4)}if(k.nextAddress!=2)return _.Jj(k,0);_.te(k);a.setErrorState((g=a.data)==null?void 0:g.selectImageErrorMessage);_.ue(k)})};
_.f.pictureChangeSourceToObakeImageSourceType=function(a){switch(a){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.f.logScreenVe=function(){_.pF(_.ls(),124448)};
_.f.graftServerVe=function(){var a=_.Dn(),b,c,d=(b=this.data)==null?void 0:(c=b.loggingDirectives)==null?void 0:c.trackingParams;d&&a&&(this.channelCreationFormVe=_.ls().graftServerVe(d,a),a={visualElement:this.channelCreationFormVe},_.js().reportShown(a))};
_.f.isNameChanged=function(a){var b;return((b=this.data)==null?void 0:b.name)!==a};
_.f.isHandleChanged=function(a){var b,c=_.y((b=this.data)==null?void 0:b.channelHandleInput,uJc);return c&&a?c.handle!==a:!1};
_.f.handleImageUpdatedAction=function(a,b){this.hideContainer=!1;this.previewDataUrl=a;this.encryptedBlobId=b};
_.f.handleImageSelectionErrorAction=function(a){this.hideContainer=!1;this.setErrorState(a)};
_.f.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.f.showContainer=function(){this.hideContainer=!1};
_.f.maybeWipeZeroStepErrorMessage=function(){var a,b=(a=this.data)==null?void 0:a.zeroStepErrorMessageEntityKey,c;b&&((c=this.zeroStepErrorMessageEntity)==null?0:c.value)&&this.ytdReduxBehavior.dispatch(_.wu("stringEntity",b,{key:b,value:""}))};
_.Um.Object.defineProperties(gTc.prototype,{photoThumbnail:{configurable:!0,enumerable:!0,get:function(){if(this.previewDataUrl)return{thumbnails:[{url:this.previewDataUrl,width:180,height:180}]};if(this.data)return this.data.isDefaultProfilePhoto?this.data.defaultProfilePhoto:this.data.profilePhoto}},
userSetPhotoThumbnailUrl:{configurable:!0,enumerable:!0,get:function(){if(this.data&&!this.data.isDefaultProfilePhoto){var a;return((a=this.photoThumbnail)==null?0:a.thumbnails)&&this.photoThumbnail.thumbnails.length>0?this.photoThumbnail.thumbnails[0].url:void 0}}},
hideProfilePhotoButtonLayer:{configurable:!0,enumerable:!0,get:function(){return this.data?!(this.data.clearProfilePhotoButton||this.data.editAvatarButton):!0}},
enableIdentityForAllChannelCreationDialog:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.descriptionInfo}}});
var i2=gTc;i2.prototype.dataChanged=i2.prototype.dataChanged;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],i2.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],i2.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],i2.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],i2.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],i2.prototype,"errorMessage",void 0);
_.U([_.O(),_.W("design:type",Object)],i2.prototype,"isLoading",void 0);_.U([_.O(),_.W("design:type",String)],i2.prototype,"previewDataUrl",void 0);_.U([_.O(),_.W("design:type",Number)],i2.prototype,"obakeImageSource",void 0);_.U([_.O(),_.W("design:type",Object)],i2.prototype,"hideContainer",void 0);_.U([_.ir("#title-input"),_.W("design:type",Object)],i2.prototype,"nameInput",void 0);_.U([_.ir("#handle-input"),_.W("design:type",Object)],i2.prototype,"handleInput",void 0);
_.U([_.O(),_.W("design:type",Boolean)],i2.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.U([_.O({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.TTa}),_.W("design:type",Object)],i2.prototype,"zeroStepErrorMessageEntity",void 0);_.U([_.K("data","data.isDefaultProfilePhoto","previewDataUrl"),_.W("design:type",Object),_.W("design:paramtypes",[])],i2.prototype,"photoThumbnail",null);
_.U([_.K("data","data.isDefaultProfilePhoto","photoThumbnail"),_.W("design:type",Object),_.W("design:paramtypes",[])],i2.prototype,"userSetPhotoThumbnailUrl",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],i2.prototype,"hideProfilePhotoButtonLayer",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],i2.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.U([_.mr("data","zeroStepErrorMessageEntity"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i2.prototype,"dataChanged",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.descriptionInfo","zeroStepErrorMessageEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],i2.prototype,"description",null);i2=_.U([_.Q({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],i2);
_.S(i2,"ytd-channel-creation-dialog-renderer",function(){if(dTc!==void 0)return dTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-creation-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-creation-dialog-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope ytd-channel-creation-dialog-renderer">\n    <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-creation-dialog-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n  </div>\n  <div class="channel-creation-description style-scope ytd-channel-creation-dialog-renderer" hidden="[[!enableNewChannelCreationOnIdForAll]]">\n    <yt-formatted-string id="description-info" hidden="[[!description]]" text="[[description]]" class="style-scope ytd-channel-creation-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div class="profile-picture-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-picture style-scope ytd-channel-creation-dialog-renderer">\n      <yt-img-shadow class="profile-photo style-scope ytd-channel-creation-dialog-renderer" height="128" thumbnail="[[photoThumbnail]]" width="128">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div class="profile-photo-button-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[hideProfilePhotoButtonLayer]]">\n    <div class="profile-photo-button-container style-scope ytd-channel-creation-dialog-renderer">\n      <ytd-button-renderer data="[[data.clearProfilePhotoButton.buttonRenderer]]" on-click="onClearProfilePhotoTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n      <ytd-button-renderer data="[[data.editAvatarButton.buttonRenderer]]" hidden="[[!data.editAvatarButton]]" on-click="onEditAvatarTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n    </div>\n    <yt-formatted-string class="optional-tag style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.profilePhotoOptionalTag]]" text="[[data.profilePhotoOptionalTag]]">\n    </yt-formatted-string>\n  </div>\n  <div class="name-and-disclaimer-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.isNameEditable]]">\n      <tp-yt-paper-input id="title-input" class="input style-scope ytd-channel-creation-dialog-renderer" label="[[data.nameLabel]]" maxlength="50" required="" use-v2-underline="" value="[[data.name]]" on-input="onChannelNameInput"></tp-yt-paper-input>\n      <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        </ytd-channel-handle-input-renderer>\n      </template>\n    </div>\n    <div class="readonly-profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[data.isNameEditable]]">\n      [[data.name]]\n    </div>\n    <div class="error-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!errorMessage]]">\n      <yt-formatted-string class="error style-scope ytd-channel-creation-dialog-renderer" text="[[errorMessage]]"></yt-formatted-string>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.additionalInfos]]">\n      <div class="disclaimer-layer-paragraphs-container style-scope ytd-channel-creation-dialog-renderer">\n        <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.disclaimer]]">\n      <div class="style-scope ytd-channel-creation-dialog-renderer">\n        <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-creation-dialog-renderer" respect-html-dir="" text="[[data.disclaimer]]">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div hidden="[[!data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n      <template is="dom-repeat" items="[[data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n        <div class="disclaimer-layer disclaimer-layer-no-icon style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div class="button-layer style-scope ytd-channel-creation-dialog-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="create-channel-button" data="[[data.createChannelButton.buttonRenderer]]" on-click="onCreateTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div class="spinner-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-creation-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return dTc=a},{mode:1});var hTc;var j2=function(){var a=_.P.apply(this,arguments)||this;a.isLoading=!1;a.isDisabled=!1;return a};
_.z(j2,_.P);j2.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
j2.prototype.updateDisabled=function(){var a;this.isDisabled=this.isLoading||((a=this.handleInput)==null?void 0:a.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
j2.prototype.onSaveClick=function(){var a=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var b;((b=this.data)==null?void 0:b.editChannelHandleEndpoint)!==void 0&&(this.errorMessage=void 0,this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.editChannelHandleEndpoint,{form:{handle:this.handleInput.value},commandController:{onSuccess:function(){var c;if((c=a.data)==null?0:c.nextEndpoint){var d;a.ytComponentBehavior.resolveCommand((d=a.data)==null?void 0:d.nextEndpoint)}else a.isLoading=
!1,a.closeDialog()},
onServerError:function(){a.isLoading=!1;a.handleInput.validate();var c;a.errorMessage=(c=a.data)==null?void 0:c.errorMessage}}}))}};
j2.prototype.closeDialog=function(){_.lo(this.hostElement,"yt-close-popup-action",[this.is])};
var k2=j2;k2.prototype.updateDisabled=k2.prototype.updateDisabled;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],k2.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],k2.prototype,"data",void 0);_.U([_.ir("#handle-input"),_.W("design:type",Object)],k2.prototype,"handleInput",void 0);_.U([_.N("isLoading"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],k2.prototype,"updateDisabled",null);
k2=_.U([_.Q({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],k2);
_.S(k2,"ytd-channel-handle-edit-dialog-renderer",function(){if(hTc!==void 0)return hTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n  <div id="header" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.dismissButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="body" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-img-shadow id="profile-picture" height="128" thumbnail="[[data.profilePicture]]" width="128" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    </yt-img-shadow>\n\n    <div id="name" class="style-scope ytd-channel-handle-edit-dialog-renderer">[[data.channelTitle]]</div>\n\n    <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-channel-handle-input-renderer>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.existingHandle]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div id="existing-handle" dir="ltr" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n        [[data.existingHandle]]\n      </div>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </yt-formatted-string>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="error-message" text="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    </template>\n\n    <template is="dom-repeat" items="[[data.infoItems]]" as="infoItem" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div class="info-item style-scope ytd-channel-handle-edit-dialog-renderer">\n        <yt-icon class="info-item-icon style-scope ytd-channel-handle-edit-dialog-renderer" icon="[[infoItem.icon.iconType]]">\n        </yt-icon>\n        <yt-formatted-string class="info-item-text style-scope ytd-channel-handle-edit-dialog-renderer" text="[[infoItem.infoText]]">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n\n  <div id="footer" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <template is="dom-if" restamp="" if="[[data.cancelButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.saveButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSaveClick" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="spinner-container" hidden="[[!isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return hTc=a},{mode:1});var iTc;var jTc=function(){return _.P.apply(this,arguments)||this};
_.z(jTc,_.P);jTc.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var l2=jTc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],l2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],l2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],l2.prototype,"data",void 0);l2=_.U([_.Q({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],l2);
_.S(l2,"ytd-channel-switcher-footer-renderer",function(){if(iTc!==void 0)return iTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n<div id="feedback" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return iTc=a},{mode:1});var kTc;var lTc;var mTc=function(){return _.P.apply(this,arguments)||this};
_.z(mTc,_.P);mTc.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
var m2=mTc;m2.prototype.onIronChange=m2.prototype.onIronChange;_.U([_.O(),_.W("design:type",Object)],m2.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!1}),_.W("design:type",Function)],m2.prototype,"onDontAskAgainChanged",void 0);_.U([_.ir("#checkbox"),_.W("design:type",Object)],m2.prototype,"checkbox",void 0);_.U([_.M("iron-change"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],m2.prototype,"onIronChange",null);
m2=_.U([_.Q({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],m2);
_.S(m2,"ytd-identity-prompt-footer-renderer",function(){if(lTc!==void 0)return lTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-prompt-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-identity-prompt-footer-renderer">\n  <yt-formatted-string text="[[data.dontShowAgainText]]" class="style-scope ytd-identity-prompt-footer-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return lTc=a},{mode:1});var nTc=function(){var a=_.P.apply(this,arguments)||this;a.dontAskAgain=!1;a.showPopup=!1;a.boundDontAskAgainChanged=function(b){a.dontAskAgainChanged(b)};
a.boundOnAccountItemTap=function(b){a.onAccountItemTap(b)};
return a};
_.z(nTc,_.P);_.f=nTc.prototype;
_.f.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{accountItemSectionRenderer:{component:"ytd-account-item-section-renderer",properties:{onAccountItemTap:"[[boundOnAccountItemTap]]"}}}},"data.header":{id:"header",mapping:{simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer"}},"data.footer":{id:"footer",mapping:{channelSwitcherFooterRenderer:"ytd-channel-switcher-footer-renderer",identityPromptFooterRenderer:{component:"ytd-identity-prompt-footer-renderer",properties:{onDontAskAgainChanged:"[[boundDontAskAgainChanged]]"}}}}}};
_.f.ready=function(){var a=this;_.E(this.hostElement).querySelector("#container").addEventListener("scroll",function(){a.ytRendererBehavior.markDirty()})};
_.f.dontAskAgainChanged=function(a){this.dontAskAgain=a};
_.f.onAccountItemTap=function(a){if(a){var b={};this.dontAskAgain&&(b={dont_ask_again:this.dontAskAgain});_.Hq(a,b)}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.f.redirectOnlyAccount=function(a){a.sections&&a.sections.length>0&&(a=_.y(a.sections[0],_.Qyb),(a==null?0:a.contents)&&(a==null?void 0:a.contents.length)<=1?(a=_.Oi(window.location.href),(a==null?0:a.next)&&_.loa(a.next)?_.Hq(a.next):_.Hq("/")):this.showPopup=!0)};
var n2=nTc;n2.prototype.dataChanged=n2.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],n2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],n2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],n2.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!1}),_.W("design:type",Object)],n2.prototype,"dontAskAgain",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],n2.prototype,"showPopup",void 0);_.U([_.O({reflectToAttribute:!1}),_.W("design:type",Object)],n2.prototype,"boundDontAskAgainChanged",void 0);_.U([_.O({reflectToAttribute:!1}),_.W("design:type",Object)],n2.prototype,"boundOnAccountItemTap",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],n2.prototype,"dataChanged",null);
n2=_.U([_.Q({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],n2);
_.S(n2,"ytd-channel-switcher-renderer",function(){if(kTc!==void 0)return kTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-channel-switcher-renderer">\n  <div id="sections" class="style-scope ytd-channel-switcher-renderer"></div>\n</div>\n<div id="footer" class="style-scope ytd-channel-switcher-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return kTc=a},{mode:1});var oTc;var pTc=function(){return _.P.apply(this,arguments)||this};
_.z(pTc,_.P);_.Um.Object.defineProperties(pTc.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
var o2=pTc;_.U([_.O(),_.W("design:type",Object)],o2.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],o2.prototype,"steps",null);o2=_.U([_.Q({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],o2);
_.S(o2,"ytd-channel-transfer-stepper-renderer",function(){if(oTc!==void 0)return oTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-transfer-stepper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="stepper style-scope ytd-channel-transfer-stepper-renderer">\n  <template is="dom-repeat" items="[[steps]]" as="step" class="style-scope ytd-channel-transfer-stepper-renderer">\n    <div class="step-and-separator style-scope ytd-channel-transfer-stepper-renderer">\n      <div class="step style-scope ytd-channel-transfer-stepper-renderer" state$="[[step.state]]">\n        <yt-formatted-string class="step-title style-scope ytd-channel-transfer-stepper-renderer" text="[[step.title]]"></yt-formatted-string>\n        <div class="step-badge style-scope ytd-channel-transfer-stepper-renderer"></div>\n      </div>\n      <div class="separator style-scope ytd-channel-transfer-stepper-renderer"></div>\n    </div>\n  </template>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return oTc=a},{mode:1});var qTc;var rTc=function(){var a=_.P.apply(this,arguments)||this;a.data=null;a.isError=!1;a.isLoading=!1;return a};
_.z(rTc,_.P);_.f=rTc.prototype;_.f.configureRendererStamper=function(){return{"data.personalAccountTile.selectButton":{id:"personal-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.brandAccountTile.selectButton":{id:"brand-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.f.computeProfileName=function(a){return a?a.givenNameValue+" "+a.familyNameValue:""};
_.f.onYtServiceRequestSent=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("isError",!1)};
_.f.onYtServiceRequestError=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.set("isLoading",!1);this.set("isError",!0)};
var p2=rTc;p2.prototype.onYtServiceRequestError=p2.prototype.onYtServiceRequestError;p2.prototype.onYtServiceRequestSent=p2.prototype.onYtServiceRequestSent;p2.prototype.dataChanged=p2.prototype.dataChanged;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],p2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],p2.prototype,"data",void 0);
_.U([_.O({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.W("design:type",String)],p2.prototype,"profileName",void 0);_.U([_.O(),_.W("design:type",Object)],p2.prototype,"isError",void 0);_.U([_.O(),_.W("design:type",Object)],p2.prototype,"isLoading",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],p2.prototype,"dataChanged",null);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Nt]),_.W("design:returntype")],p2.prototype,"onYtServiceRequestSent",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Nt]),_.W("design:returntype")],p2.prototype,"onYtServiceRequestError",null);p2=_.U([_.Q({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],p2);
_.S(p2,"ytd-channel-warm-welcome-cont-renderer",function(){if(qTc!==void 0)return qTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-cont-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-cont-renderer">\n  <div class="popup-header style-scope ytd-channel-warm-welcome-cont-renderer">\n    <h2 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="tiles style-scope ytd-channel-warm-welcome-cont-renderer">\n    <div id="personal-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="personal_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="personal_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-profile-picture style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow class="profile-photo style-scope ytd-channel-warm-welcome-cont-renderer" height="96" style="border-radius: 50%" thumbnail="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.profilePhoto]]" width="96">\n          </yt-img-shadow>\n        </div>\n        <div class="tile-profile-name style-scope ytd-channel-warm-welcome-cont-renderer">[[profileName]]</div>\n        <div class="tos style-scope ytd-channel-warm-welcome-cont-renderer">\n          <template is="dom-repeat" items="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.additionalInfos]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></yt-formatted-string>\n          </template>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="personal-account-tile-select-button" class="style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <span class="tile-separator style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n    <div id="brand-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="brand_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="brand_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-illustration style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow height="164" thumbnail="[[data.brandAccountTile.illustration]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="brand-account-tile-select-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <div class="spinner-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isLoading]]">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n  <div class="error-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isError]]">\n    <yt-formatted-string class="error style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.errorMessage]]"></yt-formatted-string>\n  </div>\n  <div class="disclaimer-layer style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!data.disclaimer]]">\n      <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div class="button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n    <span id="cancel-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return qTc=a},{mode:1});var sTc;var tTc=function(){var a=_.P.apply(this,arguments)||this;a.data=null;return a};
_.z(tTc,_.P);tTc.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
tTc.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
var q2=tTc;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],q2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],q2.prototype,"data",void 0);q2=_.U([_.Q({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],q2);
_.S(q2,"ytd-channel-warm-welcome-renderer",function(){if(sTc!==void 0)return sTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-renderer">\n  <div class="illustration style-scope ytd-channel-warm-welcome-renderer">\n    <yt-img-shadow height="254" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-warm-welcome-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-warm-welcome-renderer">\n    <div class="popup-header style-scope ytd-channel-warm-welcome-renderer">\n      <h2 class="style-scope ytd-channel-warm-welcome-renderer">\n        <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="popup-description style-scope ytd-channel-warm-welcome-renderer">\n      <yt-formatted-string id="description" class="popup-description-text style-scope ytd-channel-warm-welcome-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="button-layer style-scope ytd-channel-warm-welcome-renderer">\n      <div id="next-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n      <div id="cancel-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return sTc=a},{mode:1});var uTc;var vTc=function(){return _.P.apply(this,arguments)||this};
_.z(vTc,_.P);_.Um.Object.defineProperties(vTc.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.authorThumbnail)||{}}}});
var r2=vTc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],r2.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],r2.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],r2.prototype,"thumbnailDetails",null);r2=_.U([_.Q({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],r2);
_.S(r2,"ytd-comment-preview-renderer",function(){if(uTc!==void 0)return uTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="avatar-block style-scope ytd-comment-preview-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-comment-preview-renderer" fit="" thumbnail="[[thumbnailDetails]]">\n  </yt-img-shadow>\n</div>\n<div class="content-block style-scope ytd-comment-preview-renderer">\n  <div class="username style-scope ytd-comment-preview-renderer">[[data.authorName]]</div>\n  <div class="preview-text style-scope ytd-comment-preview-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.commentText]]" class="style-scope ytd-comment-preview-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return uTc=a},{mode:1});var wTc;var xTc=function(){return _.P.apply(this,arguments)||this};
_.z(xTc,_.P);xTc.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Um.Object.defineProperties(xTc.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.submitButton}}});
var s2=xTc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],s2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],s2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],s2.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],s2.prototype,"submitButton",null);s2=_.U([_.Q({is:"ytd-notice-renderer",disableElementRegistration:!0})],s2);
_.S(s2,"ytd-notice-renderer",function(){if(wTc!==void 0)return wTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notice-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="left style-scope ytd-notice-renderer">\n  <img alt="" class="illustration style-scope ytd-notice-renderer" src$="[[data.illustrationUrl]]">\n</div>\n\n<div class="right style-scope ytd-notice-renderer">\n  <yt-icon class="youtube-logo right-item style-scope ytd-notice-renderer" icon="yt-logos-ext:yt-logo-updated"></yt-icon>\n    <div class="notice-content right-item style-scope ytd-notice-renderer">\n      <yt-formatted-string class="notice-title style-scope ytd-notice-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="notice-description style-scope ytd-notice-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="toolbar right-item style-scope ytd-notice-renderer">\n      <div id="submit-button" class="style-scope ytd-notice-renderer"></div>\n    </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return wTc=a},{mode:1});var yTc;var zTc=function(){return _.P.apply(this,arguments)||this};
_.z(zTc,_.P);zTc.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
var t2=zTc;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],t2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],t2.prototype,"data",void 0);t2=_.U([_.Q({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],t2);
_.S(t2,"ytd-preview-comment-dialog-content",function(){if(yTc!==void 0)return yTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="text-area style-scope ytd-preview-comment-dialog-content">\n  <div class="title style-scope ytd-preview-comment-dialog-content">[[data.title]]</div>\n  <div id="comment-preview" class="style-scope ytd-preview-comment-dialog-content"></div>\n  <div class="messages style-scope ytd-preview-comment-dialog-content">\n    <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-preview-comment-dialog-content">\n      <yt-formatted-string class="message style-scope ytd-preview-comment-dialog-content" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return yTc=a},{mode:1});var ATc;var BTc=function(){return _.P.apply(this,arguments)||this};
_.z(BTc,_.P);BTc.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
BTc.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
var u2=BTc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],u2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],u2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],u2.prototype,"data",void 0);u2=_.U([_.Q({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],u2);
_.S(u2,"ytd-preview-comment-dialog-renderer",function(){if(ATc!==void 0)return ATc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-preview-comment-dialog-content data="[[data]]" class="style-scope ytd-preview-comment-dialog-renderer">\n</ytd-preview-comment-dialog-content>\n<div class="bottom style-scope ytd-preview-comment-dialog-renderer">\n  <div id="buttons" class="style-scope ytd-preview-comment-dialog-renderer"></div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return ATc=a},{mode:1});var CTc;var DTc=_.w("web_button_rework")&&_.Gi("BUTTON_REWORK")||_.w("web_button_rework_with_live"),ETc=function(){var a=_.P.apply(this,arguments)||this;a.selectedAmountIndex=1;a.privacyCheckboxValue=!1;a.useAmsterdamStyle=DTc;a.amountPlaceholderIndex=-1;return a};
_.z(ETc,_.P);_.f=ETc.prototype;_.f.onAmountClick=function(a){this.selectedAmountIndex=_.E(this.hostElement).querySelector("#amounts").indexForElement(a.currentTarget)};
_.f.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.lo(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.f.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.lo(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.lo(this.hostElement,"yt-close-popup-action",[this.is]);var a;(a=_.au())==null||a.getPlayerPromise().then(function(b){b.pauseVideo()})}};
_.f.donationCallback=function(a){a.success?(this.hostElement.hasAttribute("live-chat")&&a.response&&a.response.data&&a.response.data.actions&&_.lo(this.hostElement,"yt-live-chat-open-popup",[a.response.data.actions[0]]),_.lo(this.hostElement,"yt-close-popup-action",[this.is]),_.lo(this.hostElement,"yt-live-chat-close-buy-flow")):a.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(a.errorMessageRenderer)};
_.f.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.E(this.hostElement).querySelector("#custom-amount-input").focus()};
_.f.updateConfirmationDialogTextWithAmount=function(a){var b=this.getConfirmDialogRuns();b&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(b),"text"],this.getFormattedAmount(a))};
_.f.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.f.getAmountPlaceholderIndex=function(a){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=a.findIndex(function(b){return b.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.f.getFormattedAmount=function(a){var b;return(new _.Pp(4,((b=this.data)==null?void 0:b.currencyCode)||"")).format(a)};
_.f.isAmountValid=function(a){if(a==="")return!1;a=Number(a)*1E6;var b=this.get("minAmountMicros",this.data),c=this.get("maxAmountMicros",this.data);return b&&a<b||c&&a>c?!1:!0};
_.f.setInputError=function(){this.shouldShowValidationError?_.E(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.E(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.f.setInitialCheckboxValue=function(){var a;this.privacyCheckboxValue=!((a=this.data)==null||!a.privacyCheckboxInitialState)};
_.f.updateCustomAmountInputFromBinding=function(a){this.customAmountInput=a.detail.value};
_.f.updatePrivacyCheckboxValueFromBinding=function(a){this.privacyCheckboxValue=a.detail.value};
_.Um.Object.defineProperties(ETc.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var a=this,b,c;return((b=this.data)==null?void 0:(c=b.suggestedAmounts)==null?void 0:c.map(function(d,e){return{buttonRenderer:{style:a.selectedAmountIndex===e?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:d.label}}}))||[]}},
isCustomAmountSelected:{configurable:!0,enumerable:!0,get:function(){return!this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data)}},
showPrivacyCheckbox:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.privacyCheckboxText)}},
amountMicros:{configurable:!0,enumerable:!0,get:function(){return this.customAmount?this.isAmountValid(this.customAmount)?Number(this.customAmount)*1E6:null:Number(this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data))}},
customAmount:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected?this.customAmountInput||"":null}},
shouldShowValidationError:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null||this.customAmount===""?!1:!this.isAmountValid(this.customAmount)}},
isDonateButtonEnabled:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null?!0:this.isAmountValid(this.customAmount)}},
donateCommand:{configurable:!0,enumerable:!0,get:function(){var a=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(a&&this.amountMicros!==null)return Object.assign({},a,{ypcGetCartEndpoint:Object.assign({},a.ypcGetCartEndpoint,{donationAmountMicros:this.amountMicros,productData:{donationData:{isAnonymousDonation:!this.privacyCheckboxValue}}})})}},
donateCommandWithConfirmation:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected&&this.confirmLargeAmountCommand&&this.amountMicros&&this.amountMicros>=this.largeDonationThreshold?this.confirmLargeAmountCommand:this.donateCommand}},
largeDonationThreshold:{configurable:!0,enumerable:!0,get:function(){return 100*this.get("minAmountMicros",this.data)}},
confirmLargeAmountCommand:{configurable:!0,enumerable:!0,get:function(){var a=this.get("confirmLargeAmount",this.data);if(a&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),a}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var a=this.get("donateButton.buttonRenderer",this.data);if(a)return Object.assign({},a,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
var v2=ETc;v2.prototype.setInitialCheckboxValue=v2.prototype.setInitialCheckboxValue;v2.prototype.setInputError=v2.prototype.setInputError;v2.prototype.setFocusOnCustomAmountInput=v2.prototype.setFocusOnCustomAmountInput;_.U([_.H(VMc),_.W("design:type",Object)],v2.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],v2.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],v2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],v2.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],v2.prototype,"selectedAmountIndex",void 0);_.U([_.O(),_.W("design:type",String)],v2.prototype,"customAmountInput",void 0);_.U([_.O(),_.W("design:type",Object)],v2.prototype,"privacyCheckboxValue",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],v2.prototype,"useAmsterdamStyle",void 0);_.U([_.N("customAmount"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v2.prototype,"setFocusOnCustomAmountInput",null);_.U([_.K("data","selectedAmountIndex"),_.W("design:type",Array),_.W("design:paramtypes",[])],v2.prototype,"suggestedAmountButtons",null);
_.U([_.K("data","selectedAmountIndex"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],v2.prototype,"isCustomAmountSelected",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],v2.prototype,"showPrivacyCheckbox",null);_.U([_.K("data","selectedAmountIndex","customAmount"),_.W("design:type",Object),_.W("design:paramtypes",[])],v2.prototype,"amountMicros",null);
_.U([_.K("isCustomAmountSelected","customAmountInput"),_.W("design:type",Object),_.W("design:paramtypes",[])],v2.prototype,"customAmount",null);_.U([_.K("customAmount"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],v2.prototype,"shouldShowValidationError",null);_.U([_.K("customAmount"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],v2.prototype,"isDonateButtonEnabled",null);
_.U([_.K("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.W("design:type",Object),_.W("design:paramtypes",[])],v2.prototype,"donateCommand",null);_.U([_.K("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.W("design:type",Object),_.W("design:paramtypes",[])],v2.prototype,"donateCommandWithConfirmation",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],v2.prototype,"largeDonationThreshold",null);
_.U([_.K("customAmount","donateCommand","amountMicros"),_.W("design:type",Object),_.W("design:paramtypes",[])],v2.prototype,"confirmLargeAmountCommand",null);_.U([_.K("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.W("design:type",Object),_.W("design:paramtypes",[])],v2.prototype,"donateButtonRenderer",null);_.U([_.N("shouldShowValidationError"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v2.prototype,"setInputError",null);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v2.prototype,"setInitialCheckboxValue",null);v2=_.U([_.Q({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],v2);
_.S(v2,"ytd-donation-amount-picker-renderer",function(){if(CTc!==void 0)return CTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer">\n      </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.campaignTitle)]]\n        </div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.campaignSubtitle)]]\n        </div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">\n            [[getSimpleString(data.campaignDescription)]]\n          </div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">\n        [[getSimpleString(data.campaignDescription)]]\n      </div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer">\n      </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return CTc=a},{mode:1});var FTc;var GTc=function(){return _.P.apply(this,arguments)||this};
_.z(GTc,_.P);var w2=GTc;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],w2.prototype,"ytComponentBehavior",void 0);_.U([_.O({}),_.W("design:type",Object)],w2.prototype,"data",void 0);w2=_.U([_.Q({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],w2);
_.S(w2,"ytd-donation-post-transaction-content",function(){if(FTc!==void 0)return FTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-row" class="style-scope ytd-donation-post-transaction-content">\n  <yt-img-shadow thumbnail="[[data.donationIcon]]" width="52" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n</div>\n<div id="messages" class="style-scope ytd-donation-post-transaction-content">\n  <div id="message" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.thankYouMessage)]]\n  </div>\n  <div id="additional-info" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.additionalInfo)]]\n  </div>\n</div>\n<div id="thankyou-messages" class="style-scope ytd-donation-post-transaction-content">\n  <div class="thankyou-message style-scope ytd-donation-post-transaction-content">\n    <div class="avatar style-scope ytd-donation-post-transaction-content">\n      <yt-img-shadow thumbnail="[[data.creatorMessage.thumbnail]]" width="32" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n    </div>\n    <div class="content style-scope ytd-donation-post-transaction-content">\n      <div class="body style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.description)]]\n      </div>\n      <div class="user style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.title)]]\n      </div>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return FTc=a},{mode:1});var HTc;var ITc=function(){return _.P.apply(this,arguments)||this};
_.z(ITc,_.P);ITc.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var x2=ITc;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],x2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],x2.prototype,"ytRendererBehavior",void 0);_.U([_.O({}),_.W("design:type",Object)],x2.prototype,"data",void 0);x2=_.U([_.Q({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],x2);
_.S(x2,"ytd-donation-post-transaction-renderer",function(){if(HTc!==void 0)return HTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-post-transaction-renderer">\n  <div id="title" class="style-scope ytd-donation-post-transaction-renderer">\n    <yt-icon-button dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer">\n      <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-post-transaction-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <ytd-donation-post-transaction-content data="[[data]]" class="style-scope ytd-donation-post-transaction-renderer">\n  </ytd-donation-post-transaction-content>\n  <div id="button-row" class="style-scope ytd-donation-post-transaction-renderer">\n    <div id="done-button" dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer"></div>\n    <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" class="style-scope ytd-donation-post-transaction-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return HTc=a},{mode:1});var JTc;var KTc;var LTc=function(){return _.P.apply(this,arguments)||this};
_.z(LTc,_.P);LTc.prototype.computeIsStreamingProvider=function(a){return!!a.isStreamingShelf};
LTc.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
var y2=LTc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],y2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],y2.prototype,"data",void 0);_.U([_.O({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],y2.prototype,"isStreamingProvider",void 0);
y2=_.U([_.Q({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],y2);
_.S(y2,"ytd-media-provider-renderer",function(){if(KTc!==void 0)return KTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-provider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="provider style-scope ytd-media-provider-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-media-provider-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-media-provider-renderer">\n    <div id="action-button" class="style-scope ytd-media-provider-renderer"></div>\n    <p id="media-price" hidden="[[!data.mediaPrice]]" class="style-scope ytd-media-provider-renderer">\n      [[getSimpleString(data.mediaPrice)]]\n    </p>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return KTc=a},{mode:1});var MTc;var NTc=function(){return _.P.apply(this,arguments)||this};
_.z(NTc,_.P);NTc.prototype.observeLightsourcePalette=function(){var a,b=(a=this.data)==null?void 0:a.vibrantsourceColorPaletteData;b&&_.Dt(this.hostElement,b)};
var z2=NTc;z2.prototype.observeLightsourcePalette=z2.prototype.observeLightsourcePalette;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],z2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],z2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],z2.prototype,"data",void 0);
_.U([_.N("data.vibrantsourceColorPaletteData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],z2.prototype,"observeLightsourcePalette",null);z2=_.U([_.Q({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],z2);
_.S(z2,"ytd-streaming-pop-up-dialog",function(){if(MTc!==void 0)return MTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-streaming-pop-up-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-streaming-pop-up-dialog">\n  <div class="image-wrapper style-scope ytd-streaming-pop-up-dialog">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-streaming-pop-up-dialog" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-streaming-pop-up-dialog" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-streaming-pop-up-dialog"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-streaming-pop-up-dialog">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="providers style-scope ytd-streaming-pop-up-dialog">\n    <template is="dom-repeat" items="[[data.mediaProviders]]" as="mediaProviders" class="style-scope ytd-streaming-pop-up-dialog">\n      <ytd-media-provider-renderer data="[[mediaProviders.mediaProviderRenderer]]" class="style-scope ytd-streaming-pop-up-dialog">\n      </ytd-media-provider-renderer>\n    </template>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return MTc=a},{mode:1});var A2=function(){return _.P.apply(this,arguments)||this};
_.z(A2,_.P);A2.prototype.onPopupOpened_=function(){var a;if((a=this.data)==null?0:a.serviceEndpoint)_.w("web_ytd_brandconnect_popup_renderer_command_resolver_ks")?_.oo(this.hostElement,[this.data.serviceEndpoint]):_.v().resolve(_.Yi).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
A2.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
A2.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.content":{id:"content",mapping:{streamingPopUpDialog:{component:"ytd-streaming-pop-up-dialog"}}}}};
var B2=A2;B2.prototype.onPopupOpened_=B2.prototype.onPopupOpened_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],B2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],B2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.WM),_.W("design:type",Object)],B2.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],B2.prototype,"data",void 0);
_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B2.prototype,"onPopupOpened_",null);B2=_.U([_.Q({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],B2);
_.S(B2,"ytd-brandconnect-popup-renderer",function(){if(JTc!==void 0)return JTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-brandconnect-popup-renderer">\n  <yt-formatted-string id="title" text="[[data.popUpTitle]]" class="style-scope ytd-brandconnect-popup-renderer"></yt-formatted-string>\n  <div id="dismiss-button" class="style-scope ytd-brandconnect-popup-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-brandconnect-popup-renderer">\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return JTc=a},{mode:1});var OTc;var PTc=function(){return _.P.apply(this,arguments)||this};
_.z(PTc,_.P);_.f=PTc.prototype;_.f.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.dataChanged=function(){for(var a=0;a<this.getOptionRenderers().length;a++)this.notifyPath("data.options."+a+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+a+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.f.updateSubmitButton=function(a){this.set("data.submitButton.buttonRenderer.isDisabled",!a)};
_.f.computeAlt=function(a){return _.Wp(a)};
_.f.onDismissTap=function(){_.lo(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.v().resolve(_.Yi).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.f.getOptionRenderers=function(a){return(a=a||this.data)&&a.options?a.options.reduce(function(b,c){c.checkboxSurveyOptionRenderer&&b.push(c.checkboxSurveyOptionRenderer);return b},[]):[]};
_.f.onOptionChange=function(a){var b=this,c=!1;if(a.detail.checked)for(var d=this.getOptionRenderers().find(function(m){return m.value===a.detail.value}),e=this.getOptionRenderers(),g=0;g<e.length;g++){var k=e[g];
this.notifyPath("data.options."+g+".checkboxSurveyOptionRenderer.checked");k.checked&&((d==null?0:d.isExclusiveOption)?!k.isExclusiveOption:k.isExclusiveOption)?this.set("data.options."+g+".checkboxSurveyOptionRenderer.checked",!1):k.checked&&(c=!0)}else c=this.getOptionRenderers().some(function(m,n){b.notifyPath("data.options."+n+".checkboxSurveyOptionRenderer.checked");return m.checked});
this.updateSubmitButton(c)};
_.f.onSubmitTap=function(){var a=this.getOptionRenderers().filter(function(g){return g.checked});
if(a.length!==0){var b=a.map(function(g){return g.responseEndpoint});
a=[];for(var c=1;c<b.length;c++){var d=void 0,e=(d=_.y(b[c],_.Uw))==null?void 0:d.feedbackToken;e&&a.push(e)}b=[b[0]];a.length&&b.push({extra_feedback_tokens:a});_.oo(this.hostElement,b);_.lo(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);a=this.data&&this.data.submitActions||[];if(_.w("kevlar_command_handler_migration_killswitch"))_.po(this.hostElement,a,this.hostElement);else for(a=_.h(a),b=a.next();!b.done;b=a.next())this.ytComponentBehavior.resolveCommand(b.value)}};
var C2=PTc;C2.prototype.onOptionChange=C2.prototype.onOptionChange;C2.prototype.dataChanged=C2.prototype.dataChanged;_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],C2.prototype,"ytEventForwardingBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],C2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],C2.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],C2.prototype,"ytRendererBehavior",void 0);_.U([_.H(oNc),_.W("design:type",Object)],C2.prototype,"ytdHatsSurveyBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],C2.prototype,"data",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],C2.prototype,"dataChanged",null);
_.U([_.M("ytd-checkbox-survey-option-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],C2.prototype,"onOptionChange",null);C2=_.U([_.Q({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],C2);
_.S(C2,"ytd-checkbox-survey-renderer",function(){if(OTc!==void 0)return OTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-checkbox-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-checkbox-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-checkbox-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-checkbox-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-checkbox-survey-renderer"></div>\n<div id="footer" class="style-scope ytd-checkbox-survey-renderer">\n  <ytd-button-renderer data="[[data.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-checkbox-survey-renderer">\n  </ytd-button-renderer>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return OTc=a},{mode:1});var QTc;var RTc;var STc=function(){return _.P.apply(this,arguments)||this};
_.z(STc,_.P);var D2=STc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],D2.prototype,"ytRendererBehavior",void 0);_.U([_.H(nNc),_.W("design:type",Object)],D2.prototype,"ytdDismissalReasonBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],D2.prototype,"data",void 0);D2=_.U([_.Q({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],D2);
_.S(D2,"ytd-dismissal-reason-text-renderer",function(){if(RTc!==void 0)return RTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-text-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-dismissal-reason-text-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return RTc=a},{mode:1});var TTc;var UTc=function(){return _.P.apply(this,arguments)||this};
_.z(UTc,_.P);var E2=UTc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],E2.prototype,"ytRendererBehavior",void 0);_.U([_.H(nNc),_.W("design:type",Object)],E2.prototype,"ytdDismissalReasonBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],E2.prototype,"data",void 0);E2=_.U([_.Q({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],E2);
_.S(E2,"ytd-dismissal-reason-video-renderer",function(){if(TTc!==void 0)return TTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-formatted-string id="label" text="[[data.text]]" class="style-scope ytd-dismissal-reason-video-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-checkbox>\n<div id="video" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-img-shadow thumbnail="[[data.videoThumb]]" width="120" class="style-scope ytd-dismissal-reason-video-renderer"></yt-img-shadow>\n  <div id="video-metadata" class="style-scope ytd-dismissal-reason-video-renderer">\n    <yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.videoTitle]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="video-creator" ellipsis-truncate="" text="[[data.creatorLine]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return TTc=a},{mode:1});var VTc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.w("web_darker_dark_theme");return a};
_.z(VTc,_.P);_.f=VTc.prototype;_.f.created=function(){this.selectedFeedbackTokens=new $_};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.f.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.f.onDismissalReasonSelected=function(a,b){_.io(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(b);this.hasReasonsSelected=!0};
_.f.onDismissalReasonDeselected=function(a,b){_.io(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(b);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.f.onCancelTap=function(){_.lo(this.hostElement,"yt-close-popup-action")};
_.f.onSubmitTap=function(){var a={feedback_tokens:Array.from(this.selectedFeedbackTokens.values())};_.oo(this.hostElement,[this.data.submitFeedbackEndpoint,a]);_.lo(this.hostElement,"yt-close-popup-action")};
var F2=VTc;F2.prototype.onDismissalReasonDeselected=F2.prototype.onDismissalReasonDeselected;F2.prototype.onDismissalReasonSelected=F2.prototype.onDismissalReasonSelected;F2.prototype.dataChanged=F2.prototype.dataChanged;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],F2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],F2.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],F2.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Boolean)],F2.prototype,"hasReasonsSelected",void 0);_.U([_.O(),_.W("design:type",$_)],F2.prototype,"selectedFeedbackTokens",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],F2.prototype,"darkerDarkTheme",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F2.prototype,"dataChanged",null);
_.U([_.M("yt-dismissal-reason-selected"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,String]),_.W("design:returntype")],F2.prototype,"onDismissalReasonSelected",null);_.U([_.M("yt-dismissal-reason-deselected"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,String]),_.W("design:returntype")],F2.prototype,"onDismissalReasonDeselected",null);F2=_.U([_.Q({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],F2);
_.S(F2,"ytd-dismissal-follow-up-renderer",function(){if(QTc!==void 0)return QTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-dismissal-follow-up-renderer">\n  <yt-formatted-string id="title" text="[[data.dismissalReasonsPrompt]]" class="style-scope ytd-dismissal-follow-up-renderer">\n  </yt-formatted-string>\n  <div id="reasons" class="style-scope ytd-dismissal-follow-up-renderer"></div>\n</div>\n<div id="buttons" class="style-scope ytd-dismissal-follow-up-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancelTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="submit" data="[[data.submitButton.buttonRenderer]]" disabled="[[!hasReasonsSelected]]" on-tap="onSubmitTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return QTc=a},{mode:1});var WTc;var XTc=function(){return _.P.apply(this,arguments)||this};
_.z(XTc,_.P);_.f=XTc.prototype;_.f.onCheckedChange=function(){this.multiselect||_.io(this.hostElement,"yt-feedback-single-select-changed");_.E(this.hostElement).querySelector("#freeform").focus();_.io(this.hostElement,"yt-refit")};
_.f.showTextBox=function(a,b){return a&&b};
_.f.dataChanged=function(){this.data&&(this.data.resultText===void 0&&this.set("data.resultText",""),this.data.checked===void 0&&this.set("data.checked",!1),this.data.allowFreeTextInput===void 0&&this.set("data.allowFreeTextInput",!1))};
_.f.updateDataCheckedFromBinding=function(a){this.set("data.checked",a.detail.value)};
_.f.updateDataResultTextFromBinding=function(a){this.set("data.resultText",a.detail.value)};
var G2=XTc;G2.prototype.dataChanged=G2.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],G2.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],G2.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],G2.prototype,"multiselect",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],G2.prototype,"dataChanged",null);
G2=_.U([_.Q({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],G2);
_.S(G2,"ytd-feedback-option-renderer",function(){if(WTc!==void 0)return WTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-radio-button class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-radio-button>\n<tp-yt-paper-checkbox class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[!multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-checkbox>\n<tp-yt-paper-textarea id="freeform" hidden="[[!showTextBox(data.checked, data.allowFreeTextInput)]]" label="[[getSimpleString(data.freeTextHint)]]" maxlength="1000" use-v2-underline="" value="[[data.resultText]]" on-value-changed="updateDataResultTextFromBinding" class="style-scope ytd-feedback-option-renderer">\n</tp-yt-paper-textarea>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return WTc=a},{mode:1});var YTc;var ZTc=function(){return _.P.apply(this,arguments)||this};
_.z(ZTc,_.P);ZTc.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
ZTc.prototype.onSingleSelectCheckedChanged=function(a){a=_.Sq(a);for(var b=0;b<this.data.options.length;b++)if(a.data!==_.y(this.data.options[b],jKc)){var c="data.options."+b+".feedbackOptionRenderer.checked";this.notifyPath(c);this.set(c,!1)}};
var H2=ZTc;H2.prototype.onSingleSelectCheckedChanged=H2.prototype.onSingleSelectCheckedChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],H2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],H2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],H2.prototype,"data",void 0);
_.U([_.M("yt-feedback-single-select-changed"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],H2.prototype,"onSingleSelectCheckedChanged",null);H2=_.U([_.Q({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],H2);
_.S(H2,"ytd-feedback-question-renderer",function(){if(YTc!==void 0)return YTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="question-text style-scope ytd-feedback-question-renderer">\n  [[getSimpleString(data.question)]]\n</div>\n<div id="options" class="style-scope ytd-feedback-question-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return YTc=a},{mode:1});var $Tc;var I2=function(){return _.P.apply(this,arguments)||this};
_.z(I2,_.P);I2.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
I2.prototype.getSelectedFeedbackResults=function(){for(var a={},b=0;b<this.data.questions.length;b++)for(var c=_.y(this.data.questions[b],iKc),d=0;d<c.options.length;d++){var e=_.y(c.options[d],jKc);e&&e.checked&&(a[e.optionKey]=e.resultText)}return a};
I2.prototype.onKeyUp=function(){var a=this;_.Ys(_.zk,function(){_.io(a.hostElement,"yt-refit")});
_.zk.start()};
I2.prototype.submitSurvey=function(){var a=this.getSelectedFeedbackResults();Object.keys(a).length>0&&_.oo(this.hostElement,[this.data.submitFeedbackEndpoint,{survey_results:a,is_feedback_token_unencrypted:!0}])};
var J2=I2;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],J2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],J2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],J2.prototype,"data",void 0);J2=_.U([_.Q({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],J2);
_.S(J2,"ytd-feedback-survey-renderer",function(){if($Tc!==void 0)return $Tc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="questions" on-keyup="onKeyUp" class="style-scope ytd-feedback-survey-renderer"></div>\n<yt-formatted-string id="disclaimer" text="[[data.disclaimer]]" class="style-scope ytd-feedback-survey-renderer"></yt-formatted-string>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return $Tc=a},{mode:1});var aUc;var bUc;var K2=function(){return _.P.apply(this,arguments)||this};
_.z(K2,_.P);K2.prototype.computeAlt=function(a){return _.Wp(a)};
K2.prototype.submitResponse=function(){var a,b;(a=this.data)!=null&&a.feedbackToken&&((b=this.data)==null?void 0:b.nextStageIndex)!==void 0&&(_.mo(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.mo(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
K2.prototype.onClick=function(){this.submitResponse()};
var L2=K2;L2.prototype.onClick=L2.prototype.onClick;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],L2.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],L2.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],L2.prototype,"vertical",void 0);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],L2.prototype,"onClick",null);
L2=_.U([_.Q({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],L2);
_.S(L2,"ytd-single-select-answer-option-renderer",function(){if(bUc!==void 0)return bUc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-answer-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.answerText)]]" hidden="[[!data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer">\n  <yt-icon icon="[[data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.answerText]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return bUc=a},{mode:1});var cUc;var M2=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.w("web_darker_dark_theme");a.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return a};
_.z(M2,_.P);M2.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
M2.prototype.dataChanged=function(){var a,b;this.vertical=((b=(a=this.data)==null?void 0:a.answerOrientation)!=null?b:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
M2.prototype.submitFeedback=function(a){var b;((b=this.data)==null?0:b.responseEndpoint)&&a&&_.oo(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[a]}])};
var N2=M2;N2.prototype.dataChanged=N2.prototype.dataChanged;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],N2.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],N2.prototype,"eventForwardingBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],N2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],N2.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],N2.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],N2.prototype,"vertical",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],N2.prototype,"darkerDarkTheme",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],N2.prototype,"dataChanged",null);N2=_.U([_.Q({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],N2);
_.S(N2,"ytd-single-select-question-renderer",function(){if(cUc!==void 0)return cUc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="question" class="style-scope ytd-single-select-question-renderer">\n  <yt-formatted-string text="[[data.questionText]]" class="style-scope ytd-single-select-question-renderer"></yt-formatted-string>\n</div>\n<div id="options" class="style-scope ytd-single-select-question-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return cUc=a},{mode:1});var dUc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return a};
_.z(dUc,_.P);_.f=dUc.prototype;_.f.configureRendererStamper=function(){return{currentStage:{id:"current-stage",mapping:{singleSelectQuestionRenderer:"ytd-single-select-question-renderer",simpleMessageRenderer:"ytd-simple-message-renderer",surveyFollowUpRenderer:"ytd-survey-follow-up-renderer"}}}};
_.f.dataChanged=function(){this.jumpToStage(0)};
_.f.jumpToStage=function(a){var b,c;if((b=this.data)==null?0:(c=b.stages)==null?0:c[a])this.currentStage=this.data.stages[a],this.refitAfterRender()};
_.f.computeAlt=function(a){return _.Wp(a)};
_.f.computeSimpleMessage=function(a){var b;return(b=_.y(a,mKc))==null?void 0:b.messageText};
_.f.computeHideDismiss=function(a){var b;return(b=_.y(a,MJc))==null?void 0:b.hideParentDismissButton};
_.f.onDismissTap=function(){_.lo(this.hostElement,"yt-close-popup-action");_.y(this.currentStage,mKc)||this.data.dismissalEndpoint&&(_.w("web_ytd_multi_stage_survey_renderer_command_resolver_ks")?_.oo(this.hostElement,[this.data.dismissalEndpoint]):_.v().resolve(_.Yi).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}}))};
_.f.refitAfterRender=function(){var a=this;_.Qm(this,function(){_.io(a.hostElement,"yt-refit")})};
var O2=dUc;O2.prototype.dataChanged=O2.prototype.dataChanged;_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],O2.prototype,"eventForwardingBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],O2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],O2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],O2.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(oNc),_.W("design:type",Object)],O2.prototype,"ytdHatsSurveyBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],O2.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],O2.prototype,"currentStage",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],O2.prototype,"dataChanged",null);O2=_.U([_.Q({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],O2);
_.S(O2,"ytd-multi-stage-survey-renderer",function(){if(aUc!==void 0)return aUc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-stage-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[computeHideDismiss(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-multi-stage-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-multi-stage-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="current-stage" class="style-scope ytd-multi-stage-survey-renderer"></div>\n<yt-formatted-string id="simple-message" text="[[computeSimpleMessage(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n</yt-formatted-string>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return aUc=a},{mode:1});var eUc;var P2=function(){return _.P.apply(this,arguments)||this};
_.z(P2,_.P);P2.prototype.computeAlt=function(a){return _.Wp(a)};
P2.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.v().resolve(_.Yi).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.lo(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.Rmc(!1)))};
P2.prototype.onTap=function(){this.vertical&&this.submitResponse()};
var Q2=P2;Q2.prototype.onTap=Q2.prototype.onTap;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Q2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],Q2.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Q2.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],Q2.prototype,"vertical",void 0);
_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Q2.prototype,"onTap",null);Q2=_.U([_.Q({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],Q2);
_.S(Q2,"ytd-single-option-survey-option-renderer",function(){if(eUc!==void 0)return eUc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.option)]]" hidden="[[!data.icon.iconType]]" on-tap="submitResponse" class="style-scope ytd-single-option-survey-option-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.option]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return eUc=a},{mode:1});var fUc;var gUc=function(){return _.P.apply(this,arguments)||this};
_.z(gUc,_.P);_.f=gUc.prototype;_.f.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.dataChanged=function(){var a,b;this.vertical=(((a=this.data)==null?void 0:(b=a.surveyOrientation)==null?void 0:b.type)||"HORIZONTAL")==="VERTICAL"};
_.f.computeAlt=function(a){return _.Wp(a)};
_.f.onDismissTap=function(){_.lo(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.v().resolve(_.Yi).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.Rmc(!1))};
var R2=gUc;R2.prototype.dataChanged=R2.prototype.dataChanged;_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],R2.prototype,"eventForwardingBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],R2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],R2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(oNc),_.W("design:type",Object)],R2.prototype,"ytdHatsSurveyBehavior",void 0);
_.U([_.H(_.OI),_.W("design:type",Object)],R2.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],R2.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],R2.prototype,"vertical",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],R2.prototype,"dataChanged",null);R2=_.U([_.Q({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],R2);
_.S(R2,"ytd-single-option-survey-renderer",function(){if(fUc!==void 0)return fUc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-single-option-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-single-option-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-tap="onDismissTap" class="style-scope ytd-single-option-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-single-option-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-single-option-survey-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return fUc=a},{mode:1});var hUc;var S2=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.w("web_darker_dark_theme");return a};
_.z(S2,_.P);S2.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
S2.prototype.onDismissTap=function(){_.lo(this.hostElement,"yt-close-popup-action")};
S2.prototype.onNavigate=function(){_.lo(this.hostElement,"yt-close-popup-action")};
var T2=S2;T2.prototype.onNavigate=T2.prototype.onNavigate;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],T2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],T2.prototype,"ytEventForwardingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],T2.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],T2.prototype,"darkerDarkTheme",void 0);
_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T2.prototype,"onNavigate",null);T2=_.U([_.Q({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],T2);
_.S(T2,"ytd-survey-follow-up-renderer",function(){if(hUc!==void 0)return hUc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-survey-follow-up-renderer">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-survey-follow-up-renderer"></yt-formatted-string>\n  <ytd-button-renderer data="[[data.dismissButton.buttonRenderer]]" on-tap="onDismissTap" class="style-scope ytd-survey-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n<ytd-button-renderer align-by-text="" data="[[data.followUpButton.buttonRenderer]]" hidden="[[!data.followUpButton.buttonRenderer]]" class="style-scope ytd-survey-follow-up-renderer">\n</ytd-button-renderer>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return hUc=a},{mode:1});var iUc;var jUc;var kUc;var lUc=function(){var a=_.P.apply(this,arguments)||this;a.polymer2="Element"in Polymer;return a};
_.z(lUc,_.P);_.f=lUc.prototype;_.f.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.f.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.f.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.f.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.WH("minutes-changed",this.minutes))};
_.f.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.WH("seconds-changed",this.seconds))};
_.f.updateMinutesFromBinding=function(a){this.minutes=a.detail.value};
_.f.updateSecondsFromBinding=function(a){this.seconds=a.detail.value};
var U2=lUc;U2.prototype.secondsChangedForBinding=U2.prototype.secondsChangedForBinding;U2.prototype.minutesChangedForBinding=U2.prototype.minutesChangedForBinding;U2.prototype.secondsChanged=U2.prototype.secondsChanged;_.U([_.O(),_.W("design:type",String)],U2.prototype,"minutes",void 0);_.U([_.O(),_.W("design:type",String)],U2.prototype,"seconds",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],U2.prototype,"polymer2",void 0);
_.U([_.ir("#seconds"),_.W("design:type",Object)],U2.prototype,"secondsEl",void 0);_.U([_.N("seconds"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],U2.prototype,"secondsChanged",null);_.U([_.N("minutes"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],U2.prototype,"minutesChangedForBinding",null);
_.U([_.N("seconds"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],U2.prototype,"secondsChangedForBinding",null);U2=_.U([_.wr({is:"yt-timestamp-input",disableElementRegistration:!0})],U2);
_.S(U2,"yt-timestamp-input",function(){if(kUc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-timestamp-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_timestamp_input.yt.timestamp.input.css.js--\x3e<tp-yt-paper-input id="minutes" allowed-pattern="[0-9]" maxlength="3" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[minutes]]" on-value-changed="updateMinutesFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n<span id="separator" class="style-scope yt-timestamp-input"> : </span>\n<tp-yt-paper-input id="seconds" allowed-pattern="[0-9]" maxlength="2" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[seconds]]" on-value-changed="updateSecondsFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;jUc===void 0&&(jUc=document.createElement("template"));var d=jUc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);kUc=a}a=kUc;return a},{mode:2});var mUc=function(){return _.P.apply(this,arguments)||this};
_.z(mUc,_.P);_.f=mUc.prototype;_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$17941_scroller.dialogElement=this.hostElement.parentNode};
_.f.dataChanged=function(){var a=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.bu().getPlayerPromise().then(function(b){b=b.getCurrentTime();a.minutes=Math.floor(b/60).toString();a.seconds=(Math.floor(b)%60).toString()})};
_.f.onTapSubmit=function(a){a.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(a={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(a.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(a.minutes=this.minutes,a.seconds=this.seconds),_.w("web_ytd_legal_report_details_form_renderer_command_resolver_ks")?_.oo(this.hostElement,[this.serviceEndpoint,a]):_.v().resolve(_.Yi).resolveCommand(this.serviceEndpoint,
{form:Object.assign({},a,{element:this.hostElement})}))};
_.f.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.f.onYtServiceRequestCompleted=function(a,b){b=b.actions;if(Array.isArray(b))for(var c=0,d=b.length;c<d;c++)_.y(b[c],_.JE)&&(a.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(b[c]))};
_.f.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.f.toggleSubmitButton=function(a){this.set("submitButton.isDisabled",!a)};
_.f.handleInput=function(){var a=this.issueType,b=this.affiliation,c=this.minutes,d=this.seconds;c=!this.showTimestamp||!!c&&!!d;this.toggleSubmitButton(!!this.descriptionText&&!!a&&!!b&&c)};
_.f.computeServiceEndpoint=function(a){return this.get("submitButton.buttonRenderer.serviceEndpoint",a)};
_.f.computeSubmitButton=function(a){(a=this.get("submitButton.buttonRenderer",a))&&(a=Object.assign({},a,{serviceEndpoint:void 0}));return a};
_.f.computeShowTimestamp=function(a){return!!a};
_.f.onValueChangedForIssueType=function(a){this.issueType=a.detail.value};
_.f.onValueChangedForAffiliation=function(a){this.affiliation=a.detail.value};
_.f.updateDescriptionTextFromBinding=function(a){this.descriptionText=a.detail.value};
_.f.updateFullNameTextFromBinding=function(a){this.fullNameText=a.detail.value};
_.f.updateMinutesFromBinding=function(a){this.minutes=a.detail.value};
_.f.updateSecondsFromBinding=function(a){this.seconds=a.detail.value};
var V2=mUc;V2.prototype.handleInput=V2.prototype.handleInput;V2.prototype.onYtServiceRequestError=V2.prototype.onYtServiceRequestError;V2.prototype.onYtServiceRequestCompleted=V2.prototype.onYtServiceRequestCompleted;V2.prototype.onYtServiceRequestSent=V2.prototype.onYtServiceRequestSent;V2.prototype.dataChanged=V2.prototype.dataChanged;_.U([_.H(_.pH.YtOpenPopupBehavior),_.W("design:type",Object)],V2.prototype,"ytOpenPopupBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);_.U([_.ir("#scroller"),_.W("design:type",Object)],V2.prototype,"JSC$17941_scroller",void 0);_.U([_.ir("#description"),_.W("design:type",HTMLInputElement)],V2.prototype,"description",void 0);_.U([_.ir("#full-name"),_.W("design:type",Object)],V2.prototype,"fullName",void 0);_.U([_.O(),_.W("design:type",Object)],V2.prototype,"data",void 0);
_.U([_.O({computed:"computeShowTimestamp(data.timestampLabel)"}),_.W("design:type",Boolean)],V2.prototype,"showTimestamp",void 0);_.U([_.O({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.W("design:type",Object)],V2.prototype,"serviceEndpoint",void 0);_.U([_.O({computed:"computeSubmitButton(data)"}),_.W("design:type",Object)],V2.prototype,"submitButton",void 0);_.U([_.O(),_.W("design:type",String)],V2.prototype,"descriptionText",void 0);
_.U([_.O(),_.W("design:type",Number)],V2.prototype,"issueType",void 0);_.U([_.O(),_.W("design:type",Number)],V2.prototype,"affiliation",void 0);_.U([_.O(),_.W("design:type",String)],V2.prototype,"fullNameText",void 0);_.U([_.O(),_.W("design:type",String)],V2.prototype,"minutes",void 0);_.U([_.O(),_.W("design:type",String)],V2.prototype,"seconds",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V2.prototype,"dataChanged",null);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Nt]),_.W("design:returntype")],V2.prototype,"onYtServiceRequestSent",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Vt]),_.W("design:returntype")],V2.prototype,"onYtServiceRequestCompleted",null);
_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],V2.prototype,"onYtServiceRequestError",null);_.U([_.N("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V2.prototype,"handleInput",null);V2=_.U([_.Q({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],V2);
_.S(V2,"ytd-legal-report-details-form-renderer",function(){if(iUc!==void 0)return iUc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-legal-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-legal-report-details-form-renderer">\n  <template is="dom-if" if="[[showTimestamp]]" class="style-scope ytd-legal-report-details-form-renderer">\n    <label id="timestamp" class="style-scope ytd-legal-report-details-form-renderer">\n      [[getSimpleString(data.timestampLabel)]]\n      <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n      </yt-timestamp-input>\n    </label>\n  </template>\n  <div id="description-box" class="style-scope ytd-legal-report-details-form-renderer">\n    <tp-yt-paper-input-container no-label-float="true" use-v2-underline="" class="style-scope ytd-legal-report-details-form-renderer">\n      <tp-yt-iron-autogrow-textarea id="description" class="paper-input-input style-scope ytd-legal-report-details-form-renderer" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[data.maxDescriptionChars]]" placeholder="[[getSimpleString(data.descriptionHint)]]" required="true" rows="4" value="[[descriptionText]]" on-value-changed="updateDescriptionTextFromBinding">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-legal-report-details-form-renderer"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n  <ytd-dropdown-renderer id="issue-type" data="[[data.issueTypeDropdown.dropdownRenderer]]" value="[[issueType]]" on-value-changed="onValueChangedForIssueType" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-dropdown-renderer id="affiliation" data="[[data.affiliationDropdown.dropdownRenderer]]" value="[[affiliation]]" on-value-changed="onValueChangedForAffiliation" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <tp-yt-paper-input id="full-name" maxlength="[[data.maxNameChars]]" placeholder="[[getSimpleString(data.nameHint)]]" use-v2-underline="" value="[[fullNameText]]" on-value-changed="updateFullNameTextFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n  </tp-yt-paper-input>\n  <div id="name-subtext" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.nameSubtext)]]</div>\n  <div id="footer-text" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.footerText)]]</div>\n</tp-yt-paper-dialog-scrollable>\n<div class="footer style-scope ytd-legal-report-details-form-renderer">\n  <div id="required-label" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.requiredLabel)]]</div>\n  <div class="buttons style-scope ytd-legal-report-details-form-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="submit-button" data="[[submitButton]]" dialog-confirm="" on-click="onTapSubmit" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return iUc=a},{mode:1});var nUc;var W2=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return a};
_.z(W2,_.P);W2.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
W2.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var a=this.formRenderer.getForm();a&&this.data.submitEndpoint&&(_.w("web_ytd_form_popup_content_command_resolver_ks")?_.oo(this.hostElement,[this.data.submitEndpoint,a]):_.v().resolve(_.Yi).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},a,{element:this.hostElement})}),_.lo(this.hostElement,"yt-close-popup-action"))}};
W2.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.lo(this.hostElement,"yt-close-popup-action"))};
W2.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
var X2=W2;X2.prototype.onPopupClosed=X2.prototype.onPopupClosed;_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],X2.prototype,"ytEventForwardingBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],X2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],X2.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],X2.prototype,"ytRendererBehavior",void 0);_.U([_.ir("yt-form-renderer"),_.W("design:type",Object)],X2.prototype,"formRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],X2.prototype,"data",void 0);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],X2.prototype,"onPopupClosed",null);X2=_.U([_.Q({is:"ytd-form-popup-content",disableElementRegistration:!0})],X2);
_.S(X2,"ytd-form-popup-content",function(){if(nUc!==void 0)return nUc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form" class="style-scope ytd-form-popup-content"></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return nUc=a},{mode:1});var oUc;var Y2=function(){return _.P.apply(this,arguments)||this};
_.z(Y2,_.P);Y2.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Y2.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Y2.prototype.onPopupOpened=function(){_.io(this.hostElement,"yt-invalidate-popup-tabbables")};
Y2.prototype.onYtServiceRequestCompleted=function(a,b){b.data&&b.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.io(this.hostElement,"yt-invalidate-popup-tabbables"))};
var Z2=Y2;Z2.prototype.onYtServiceRequestCompleted=Z2.prototype.onYtServiceRequestCompleted;Z2.prototype.onPopupOpened=Z2.prototype.onPopupOpened;_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],Z2.prototype,"ytEventForwardingBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],Z2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Z2.prototype,"ytRendererBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],Z2.prototype,"data",void 0);_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z2.prototype,"onPopupOpened",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Vt]),_.W("design:returntype")],Z2.prototype,"onYtServiceRequestCompleted",null);Z2=_.U([_.Q({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],Z2);
_.S(Z2,"ytd-form-popup-renderer",function(){if(oUc!==void 0)return oUc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-form-popup-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-form-popup-content data="[[data]]" class="style-scope ytd-form-popup-renderer"></ytd-form-popup-content>\n<div id="buttons" class="style-scope ytd-form-popup-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return oUc=a},{mode:1});var pUc;var qUc=function(){var a=_.P.apply(this,arguments)||this;a.isLoading=!1;return a};
_.z(qUc,_.P);_.f=qUc.prototype;_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");$sc(this.hostElement)};
_.f.onYtServiceRequestSent=function(){this.isLoading=!0};
_.f.onYtServiceRequestCompleted=function(){_.lo(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.f.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.po(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.f.closePopupHandler=function(){this.fireOnCloseActions()};
_.f.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var a=this.get("data.headerImage.thumbnails");a&&(a=_.Us(a,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+a+")")}};
_.f.onYtNavigate=function(a){(a=_.Sq(a))&&a.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
var $2=qUc;$2.prototype.onYtNavigate=$2.prototype.onYtNavigate;$2.prototype.onHeaderImageChanged=$2.prototype.onHeaderImageChanged;$2.prototype.closePopupHandler=$2.prototype.closePopupHandler;$2.prototype.onYtServiceRequestCompleted=$2.prototype.onYtServiceRequestCompleted;$2.prototype.onYtServiceRequestSent=$2.prototype.onYtServiceRequestSent;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$2.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],$2.prototype,"ytEventForwardingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],$2.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$2.prototype,"isLoading",void 0);_.U([_.ir("#header"),_.W("design:type",HTMLDivElement)],$2.prototype,"header",void 0);_.U([_.ir("#confirm-button"),_.W("design:type",_.wH)],$2.prototype,"confirmButton",void 0);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],$2.prototype,"onYtServiceRequestSent",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],$2.prototype,"onYtServiceRequestCompleted",null);
_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],$2.prototype,"closePopupHandler",null);_.U([_.N("data.headerImage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$2.prototype,"onHeaderImageChanged",null);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],$2.prototype,"onYtNavigate",null);
$2=_.U([_.Q({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],$2);
_.S($2,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(pUc!==void 0)return pUc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-confirm-dialog-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar left style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-confirm-dialog-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar right style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" dialog-dismiss="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></div>\n</div>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <yt-formatted-string id="title" hidden$="[[!data.title]]" role="heading" text="[[data.title]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></yt-formatted-string>\n  <div id="dialog-messages" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope ytd-gaming-account-link-confirm-dialog-renderer" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n  <div class="buttons style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[isLoading]]">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" hidden$="[[!data.cancelButton]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner active="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return pUc=a},{mode:1});var rUc;var sUc=function(){var a=_.P.apply(this,arguments)||this;a.isLoading=!1;return a};
_.z(sUc,_.P);_.f=sUc.prototype;_.f.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.linkButton":{id:"link-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);$sc(this.hostElement)};
_.f.onYtServiceRequestCompleted=function(){_.lo(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.f.onYtServiceRequestError=function(a){_.OW(this.hostElement,a.detail.error.message)};
_.f.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.f.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.lo(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.f.onDataChanged=function(){this.isLoading=!1;var a=this.get("data.headerImage.thumbnails");a&&(a=_.Us(a,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+a+")");a=_.En();var b=_.Dn(),c=this.get("data.trackingParams");c&&b&&a&&_.To(a,b,_.ps(c))};
_.Um.Object.defineProperties(sUc.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
var a3=sUc;a3.prototype.onDataChanged=a3.prototype.onDataChanged;a3.prototype.onDomChange=a3.prototype.onDomChange;a3.prototype.onYtServiceRequestError=a3.prototype.onYtServiceRequestError;a3.prototype.onYtServiceRequestCompleted=a3.prototype.onYtServiceRequestCompleted;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],a3.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],a3.prototype,"ytRendererBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],a3.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],a3.prototype,"isLoading",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],a3.prototype,"hasDescription",null);_.U([_.ir("tp-yt-paper-dialog-scrollable"),_.W("design:type",Object)],a3.prototype,"scrollable",void 0);_.U([_.ir("#header"),_.W("design:type",HTMLElement)],a3.prototype,"header",void 0);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],a3.prototype,"onYtServiceRequestCompleted",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],a3.prototype,"onYtServiceRequestError",null);
_.U([_.M("dom-change"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],a3.prototype,"onDomChange",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],a3.prototype,"onDataChanged",null);a3=_.U([_.Q({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],a3);
_.S(a3,"ytd-gaming-account-link-setting-renderer",function(){if(rUc!==void 0)return rUc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-setting-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-setting-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-setting-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.header]]" class="style-scope ytd-gaming-account-link-setting-renderer"></yt-formatted-string>\n  <div id="description-container" hidden="[[!hasDescription]]" class="style-scope ytd-gaming-account-link-setting-renderer">\n    <template is="dom-repeat" items="[[data.descriptions]]" as="description" class="style-scope ytd-gaming-account-link-setting-renderer">\n      <yt-formatted-string class="description style-scope ytd-gaming-account-link-setting-renderer" split-lines="" text="[[description]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n<div id="link-button-container" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <tp-yt-paper-spinner class="spinner style-scope ytd-gaming-account-link-setting-renderer" active="" hidden="[[!isLoading]]"></tp-yt-paper-spinner>\n  <div id="link-button" hidden="[[isLoading]]" on-click="onButtonClick" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return rUc=a},{mode:1});var tUc;var uUc;var vUc=function(){var a=_.P.apply(this,arguments)||this;a.isHeader=!1;a.getEndpointForm=Uxc;return a};
_.z(vUc,_.P);_.f=vUc.prototype;_.f.triggerHintActions=function(){var a=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var b=_.mo(a.hostElement,"yt-get-opened-popups-action");!(b&&b.length===1?b[0]:[]).some(function(c){c=c.openPopupAction.popupType;return c==="SURVEY"||c==="MEALBAR"||c==="HINT"})&&a.data.hintActions&&a.guideOpened&&(_.po(a.hostElement,a.data.hintActions,a.hostElement),a.data.hintActions=void 0)})};
_.f.getBadgeIconType=function(a){return a&&a.liveBroadcasting?"live":null};
_.f.onDown=function(){this.interaction.triggerDown()};
_.f.onUp=function(){this.interaction.triggerUp()};
_.f.onTap=function(a){if(this.data.serviceEndpoint){var b;_.w("shorts_controller_retrieve_seedless_sequence_v2")&&((b=_.y(this.data.serviceEndpoint,_.uq))==null?void 0:b.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):Txc(this.data.serviceEndpoint,this);a.preventDefault()}else this.data.navigationEndpoint&&!_.Wt(_.Rq(a),this.hostElement,["A".toString()])&&_.io(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.f.computeActive=function(a,b){if(!a)return!1;var c=a.navigationEndpoint;a=a.serviceEndpoint;if(!c&&!a||!b)return!1;if(c){a=(a=vY(b))&&["subscriptions","filteredsubscriptions"].includes(a);if(_.y(c,_.oq)&&_.y(b,_.oq)&&!a){var d=_.y(c,_.oq).browseId;b=_.y(b,_.oq).browseId;return d!==void 0&&b!==void 0&&(d===b||d==="VLWL"&&b==="FEwatch_later"||d==="FEwatch_later"&&b==="VLWL")}var e;c=(e=_.y(c.commandMetadata,_.co))==null?void 0:e.url;b=(d=_.y(b.commandMetadata,_.co))==null?void 0:d.url;return!(!c||
!b||c!==b&&c!==_.gj(b))}return this.isActiveShortsTab(a,b)};
_.f.isActiveShortsTab=function(a,b){b=!!_.y(b,_.uq)||!!_.y(b,_.PE);return(!!_.y(a,_.uq)||!!_.y(a,_.PE))&&b};
_.f.computeIsPrimary=function(a){return!!a};
_.Um.Object.defineProperties(vUc.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.computeActive(this.data,this.activeEndpoint)}},
isPrimary:{configurable:!0,enumerable:!0,get:function(){return this.computeIsPrimary(this.data.isPrimary)}},
lineEndStyle:{configurable:!0,enumerable:!0,get:function(){return this.data?this.data.badges&&this.getBadgeIconType(this.data.badges)?"badge":this.data.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?"dot":this.data.count?"count":"none":"none"}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){var a=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&a)return a}}});
var b3=vUc;b3.prototype.onTap=b3.prototype.onTap;b3.prototype.onUp=b3.prototype.onUp;b3.prototype.onDown=b3.prototype.onDown;b3.prototype.triggerHintActions=b3.prototype.triggerHintActions;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],b3.prototype,"componentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],b3.prototype,"rendererBehavior",void 0);_.U([_.H(_.$G.YtTaskEmitterBehavior),_.W("design:type",Object)],b3.prototype,"taskEmitterBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],b3.prototype,"activeEndpoint",void 0);_.U([_.O(),_.W("design:type",Object)],b3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],b3.prototype,"guideOpened",void 0);_.U([_.O(),_.W("design:type",String)],b3.prototype,"type",void 0);_.U([_.ir("yt-interaction"),_.W("design:type",Object)],b3.prototype,"interaction",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],b3.prototype,"isHeader",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data","activeEndpoint"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],b3.prototype,"active",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],b3.prototype,"isPrimary",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.count","data.presentationStyle","data.badges.*"),_.W("design:type",String),_.W("design:paramtypes",[])],b3.prototype,"lineEndStyle",null);
_.U([_.K("lineEndStyle"),_.W("design:type",Object),_.W("design:paramtypes",[])],b3.prototype,"ariaLabel",null);_.U([_.N("data.hintActions","guideOpened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b3.prototype,"triggerHintActions",null);_.U([_.M("down"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b3.prototype,"onDown",null);
_.U([_.M("up"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b3.prototype,"onUp",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],b3.prototype,"onTap",null);b3=_.U([_.Q({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],b3);
_.S(b3,"ytd-guide-entry-renderer",function(){if(uUc!==void 0)return uUc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1" title="[[getSimpleString(data.formattedTitle)]]" aria-label$="[[ariaLabel]]" role="link" get-form="[[getEndpointForm]]">\n  <tp-yt-paper-item role="link" class="style-scope ytd-guide-entry-renderer">\n    <yt-icon class="guide-icon style-scope ytd-guide-entry-renderer" active="[[active]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[computeIcon_(data.icon)]]">\n    </yt-icon>\n    <yt-img-shadow height="24" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-guide-entry-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-guide-entry-renderer" text="[[data.formattedTitle]]"></yt-formatted-string>\n    <yt-icon class="arrow-icon style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!isHeader]]" hidden="[[!isHeader]]" icon="chevron_right" size="16">\n    </yt-icon>\n    <span class="guide-entry-count style-scope ytd-guide-entry-renderer"> [[data.count]] </span>\n    <yt-icon class="guide-entry-badge style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!getBadgeIconType(data.badges)]]" icon="[[getBadgeIconType(data.badges)]]" size="16">\n    </yt-icon>\n    <div id="newness-dot" class="style-scope ytd-guide-entry-renderer"></div>\n  </tp-yt-paper-item>\n</a>\n<yt-interaction class="style-scope ytd-guide-entry-renderer"></yt-interaction>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return uUc=a},{mode:1});var wUc=function(){var a=_.P.apply(this,arguments)||this;a.userToggled=!1;return a};
_.z(wUc,_.P);_.f=wUc.prototype;_.f.getItemsPath=function(){return"data.expandableItems"};
_.f.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.f.onExpanderItemTapped=function(a){var b=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.w("kevlar_guide_expandable_items_killswitch")&&_.Qm(this,function(){_.Pk(b.expandableItems)});
a.preventDefault()};
_.f.onCollapserItemTapped=function(a){var b=this;this._setExpanded(!1);this.userToggled=!0;a.preventDefault();this.expandableItems&&!_.w("kevlar_guide_collapsible_items_killswitch")&&_.Qm(this,function(){_.Ok(b.hostElement)})};
_.f.observeActiveEndpoint=function(){for(var a=this.activeEndpoint,b=this.data,c=this.expandableItems.children,d=0,e=c.length;d<e;d++)c[d].activeEndpoint=a;b&&b.autoExpandCommand&&a&&!this.userToggled&&(c=this.data.autoExpandCommand,b=!(!_.y(c,_.oq)||!_.y(a,_.oq)||_.y(c,_.oq).browseId!==_.y(a,_.oq).browseId),a=this.get("commandMetadata.webCommandMetadata.url",a),c=this.get("commandMetadata.webCommandMetadata.url",c),b=b||!!(a&&c&&a.includes(c)),this._setExpanded(b),b&&this.ytLazyListBehavior.fillRemainingListItems())};
var c3=wUc;c3.prototype.observeActiveEndpoint=c3.prototype.observeActiveEndpoint;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],c3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],c3.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.kJ.YtLazyListBehavior),_.W("design:type",Object)],c3.prototype,"ytLazyListBehavior",void 0);_.U([_.ir("#expandable-items"),_.W("design:type",HTMLElement)],c3.prototype,"expandableItems",void 0);
_.U([_.O(),_.W("design:type",Object)],c3.prototype,"data",void 0);_.U([_.O({readOnly:!0,reflectToAttribute:!0}),_.W("design:type",Boolean)],c3.prototype,"expanded",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],c3.prototype,"initialCount",void 0);_.U([_.O(),_.W("design:type",Object)],c3.prototype,"activeEndpoint",void 0);_.U([_.N("data","activeEndpoint","canShowMore"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],c3.prototype,"observeActiveEndpoint",null);
c3=_.U([_.Q({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],c3);
_.S(c3,"ytd-guide-collapsible-entry-renderer",function(){if(tUc!==void 0)return tUc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-guide-entry-renderer id="expander-item" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" on-click="onExpanderItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n</ytd-guide-entry-renderer>\n<div id="expanded" class="style-scope ytd-guide-collapsible-entry-renderer">\n  <div id="expandable-items" class="style-scope ytd-guide-collapsible-entry-renderer"></div>\n  <ytd-guide-entry-renderer id="collapser-item" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return tUc=a},{mode:_.as("kevlar_poly_si_batch_j079")?1:2});var xUc;var yUc;var zUc=function(){var a=_.P.apply(this,arguments)||this;a.allVideosCount=0;a.renderGuideEntry=!1;return a};
_.z(zUc,_.P);zUc.prototype.observeRenderEntry=function(){var a;this.renderGuideEntry=!((a=this.data)==null||!a.alwaysShow)||!!this.allVideosCount};
var d3=zUc;d3.prototype.observeRenderEntry=d3.prototype.observeRenderEntry;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],d3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],d3.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],d3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],d3.prototype,"activeEndpoint",void 0);_.U([_.O({selector:_.FFa}),_.W("design:type",Object)],d3.prototype,"allVideosCount",void 0);
_.U([_.O(),_.W("design:type",Object)],d3.prototype,"renderGuideEntry",void 0);_.U([_.mr("allVideosCount","data.alwaysShow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d3.prototype,"observeRenderEntry",null);d3=_.U([_.Q({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],d3);
_.S(d3,"ytd-guide-downloads-entry-renderer",function(){if(yUc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-downloads-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <ytd-guide-entry-renderer id="downloads-entry" active-endpoint="[[activeEndpoint]]" data="[[data.entryRenderer.guideEntryRenderer]]" hidden="[[!renderGuideEntry]]" class="style-scope ytd-guide-downloads-entry-renderer">\n  </ytd-guide-entry-renderer>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);yUc=a}a=yUc;return a},{mode:1});var AUc=function(){var a=_.P.apply(this,arguments)||this;a.youtab=_.w("web_enable_youtab");a.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return a};
_.z(AUc,_.P);_.f=AUc.prototype;_.f.configureRendererStamper=function(){return{"data.sectionItems":{id:"section-items",mapping:{guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideEntryRenderer:{component:"ytd-guide-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideDownloadsEntryRenderer:{component:"ytd-guide-downloads-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}}}}}};
_.f.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var a=this.sectionItems.children,b=0,c=a.length;b<c;b++)a[b].activeEndpoint=this.activeEndpoint}};
_.f.handleAddToGuideSectionAction=function(a){var b=_.y(a,zJc);if(b&&this.data&&(a=b.items,b=b.handlerData,a&&b&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(b)>-1)){b=0;for(var c=a.length;b<c;b++)a[b].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,a[b])}};
_.f.handleRemoveFromGuideSectionAction=function(a){var b=_.y(a,AJc);b&&this.data&&(a=b.guideEntryId,b=b.handlerData,a&&b&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(b)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(a,this.data.sectionItems),this.removeFromCollapsedSection(a,this.data.sectionItems)))};
_.f.removeFromExpandedSection=function(a,b){a=this.getEntryIndexMatchingId(a,b);a!==-1&&this.splice("data.sectionItems",a,1)};
_.f.removeFromCollapsedSection=function(a,b){var c=b.findIndex(function(d){return!!_.y(d,TJc)});
c&&c!==-1&&b[c]&&_.y(b[c],TJc)&&(b=_.y(b[c],TJc).expandableItems)&&(a=this.getEntryIndexMatchingId(a,b),a!==-1&&this.splice("data.sectionItems."+c+".guideCollapsibleEntryRenderer.expandableItems",a,1))};
_.f.getEntryIndexMatchingId=function(a,b){var c=this;return b.findIndex(function(d){return c.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",d)===a})};
var e3=AUc;e3.prototype.activeEndpointChanged=e3.prototype.activeEndpointChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],e3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],e3.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],e3.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.ir("#section-items"),_.W("design:type",HTMLDivElement)],e3.prototype,"sectionItems",void 0);_.U([_.ir("#header-entry"),_.W("design:type",Object)],e3.prototype,"headerEntry",void 0);_.U([_.O(),_.W("design:type",Object)],e3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],e3.prototype,"activeEndpoint",void 0);_.U([_.O(),_.W("design:type",Object)],e3.prototype,"youtab",void 0);
_.U([_.N("activeEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],e3.prototype,"activeEndpointChanged",null);e3=_.U([_.Q({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],e3);
_.S(e3,"ytd-guide-collapsible-section-entry-renderer",function(){if(xUc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);xUc=a}a=xUc;return a},{mode:1});var BUc;var CUc;var DUc=function(){var a=_.P.apply(this,arguments)||this;a.modernTypography=_.w("web_modern_typography");a.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction","yt-reset-channel-unread-count-command":"handleResetChannelUnreadCountCommand","yt-reset-subscriptions-unread-dot-command":"handleResetSubscriptionsUnreadDotCommand"};return a};
_.z(DUc,_.P);_.f=DUc.prototype;
_.f.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",guideOpened:"[[guideOpened]]",type:"[[type]]"},noInjection:!0},guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0},guideCollapsibleSectionEntryRenderer:{component:"ytd-guide-collapsible-section-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},
noInjection:!0}}}}};
_.f.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var a=_.mo(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);a&&a.length===1&&a[0]&&_.mo(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.f.handleResetChannelUnreadCountCommand=function(a){var b;(a=(b=_.y(a,DJc))==null?void 0:b.channelId)&&this.data&&this.data.items&&(b=this.getPathToEntryMatchingId(a))&&(this.set(b+".guideEntryRenderer.count",0),this.set(b+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.f.handleResetSubscriptionsUnreadDotCommand=function(a){var b,c=(b=_.y(a,EJc))==null?void 0:b.targetId,d;c&&(d=this.data)!=null&&d.items&&(a=this.data.items.findIndex(function(e){var g;return((g=e.guideEntryRenderer)==null?void 0:g.targetId)===c}),a<0||this.set("data.items."+a+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.f.getPathToEntryMatchingId=function(a){if(this.data&&this.data.items){var b=this.getEntryIndexMatchingId(a,this.data.items);if(b>-1)return"data.items."+b;for(var c=0;c<this.data.items.length;c++)if(b=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[c]))if(b=this.getEntryIndexMatchingId(a,b),b>-1)return"data.items."+c+".guideCollapsibleEntryRenderer.expandableItems."+b}};
_.f.handleAddToGuideSectionAction=function(a){var b=this;if(_.y(a,zJc)){var c=_.y(a,zJc).items;a=_.y(a,zJc).handlerData;var d,e;c&&a&&((d=this.data)==null?void 0:(e=d.handlerDatas)==null?void 0:e.indexOf(a))>-1&&(c=c.filter(function(g){return(g=b.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",g))&&!b.isGuideItemPresent(g)}),this.unshift.apply(this,["data.items"].concat(_.De(c))))}};
_.f.isGuideItemPresent=function(a){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(a,this.data.items)!==-1)return!0;var b=this.data.items.find(function(c){return!!c.guideCollapsibleEntryRenderer});
if((b==null?0:b.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(a,b.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.f.getEntryIndexMatchingId=function(a,b){var c=this;return b.findIndex(function(d){return c.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",d)===a})};
_.f.handleRemoveFromGuideSectionAction=function(a){if(_.y(a,AJc)){var b=_.y(a,AJc).guideEntryId;a=_.y(a,AJc).handlerData;var c,d;b&&a&&((c=this.data)==null?void 0:(d=c.handlerDatas)==null?void 0:d.indexOf(a))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(b,this.data.items),this.removeFromCollapsedSection(b,this.data.items))}};
_.f.removeFromExpandedSection=function(a,b){a=this.getEntryIndexMatchingId(a,b);a!==-1&&this.splice("data.items",a,1)};
_.f.removeFromCollapsedSection=function(a,b){var c=b.findIndex(function(d){return!!d.guideCollapsibleEntryRenderer});
c!==-1&&(b=b[c].guideCollapsibleEntryRenderer.expandableItems)&&(a=this.getEntryIndexMatchingId(a,b),a!==-1&&this.splice("data.items."+c+".guideCollapsibleEntryRenderer.expandableItems",a,1))};
_.f.activeEndpointChanged=function(){for(var a=_.E(this.hostElement).querySelector("#items").children,b=0,c=a.length;b<c;b++)a[b].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.f.guideOpenedChanged=function(){for(var a=_.E(this.hostElement).querySelector("#items").children,b=0,c=a.length;b<c;b++)a[b].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
var f3=DUc;f3.prototype.guideOpenedChanged=f3.prototype.guideOpenedChanged;f3.prototype.activeEndpointChanged=f3.prototype.activeEndpointChanged;f3.prototype.persistentGuideChanged=f3.prototype.persistentGuideChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],f3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],f3.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],f3.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.kJ.YtLazyListBehavior),_.W("design:type",Object)],f3.prototype,"ytLazyListBehavior",void 0);_.U([_.H(_.XI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],f3.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],f3.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],f3.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],f3.prototype,"modernTypography",void 0);_.U([_.O(),_.W("design:type",String)],f3.prototype,"type",void 0);_.U([_.O({value:20}),_.W("design:type",Number)],f3.prototype,"initialCount",void 0);_.U([_.O({value:10}),_.W("design:type",Number)],f3.prototype,"targetFramerate",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],f3.prototype,"autoFill",void 0);_.U([_.O({value:50}),_.W("design:type",Number)],f3.prototype,"renderDelay",void 0);
_.U([_.N("guidePersistentAndVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],f3.prototype,"persistentGuideChanged",null);_.U([_.mr("activeEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],f3.prototype,"activeEndpointChanged",null);_.U([_.mr("guideOpened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],f3.prototype,"guideOpenedChanged",null);
f3=_.U([_.Q({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],f3);
_.S(f3,"ytd-guide-section-renderer",function(){if(CUc!==void 0)return CUc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h3 hidden="[[!data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  <yt-formatted-string id="guide-section-title" link-inherit-color="" text="[[data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  </yt-formatted-string>\n</h3>\n<div id="items" class="style-scope ytd-guide-section-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return CUc=a},{mode:_.as("kevlar_poly_si_batch_j073")?1:2});var EUc;var FUc=function(){return _.P.apply(this,arguments)||this};
_.z(FUc,_.P);_.Um.Object.defineProperties(FUc.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
var g3=FUc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],g3.prototype,"rendererBehaviors",void 0);_.U([_.O(),_.W("design:type",Object)],g3.prototype,"data",void 0);_.U([_.O(),_.K("data.signInButton.buttonRenderer.style"),_.W("design:type",Object),_.W("design:paramtypes",[])],g3.prototype,"alignByText",null);g3=_.U([_.Q({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],g3);
_.S(g3,"ytd-guide-signin-promo-renderer",function(){if(EUc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-signin-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.descriptiveText]]" class="style-scope ytd-guide-signin-promo-renderer"></yt-formatted-string>\n<ytd-button-renderer id="sign-in-button" align-by-text="[[alignByText]]" data="[[data.signInButton.buttonRenderer]]" on-tap="onSignInTap" class="style-scope ytd-guide-signin-promo-renderer">\n</ytd-button-renderer>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);EUc=a}a=EUc;return a},{mode:1});var h3=function(){var a=_.P.apply(this,arguments)||this;a.showFooter=!1;return a};
_.z(h3,_.P);h3.prototype.configureRendererStamper=function(){return{shownItems:{id:"sections",mapping:{guideSectionRenderer:{component:"ytd-guide-section-renderer",noInjection:!0},guideSigninPromoRenderer:{component:"ytd-guide-signin-promo-renderer",noInjection:!0},guideSubscriptionsSectionRenderer:{component:"ytd-guide-section-renderer",params:{type:"subscriptions"},noInjection:!0}}}}};
h3.prototype.attached=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1){b=_.v().resolve(_.Xi(_.UI));if(!b)return c.jumpTo(0);b.setGuideData(a.hostElement);return _.p(c,0,3)}a.ytLazyListBehavior.initialCount=2;return c.return()})};
h3.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
var i3=h3;i3.prototype.dataChanged=i3.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],i3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],i3.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.kJ.YtLazyListBehavior),_.W("design:type",Object)],i3.prototype,"ytLazyListBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],i3.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],i3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],i3.prototype,"showFooter",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],i3.prototype,"autoFill",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i3.prototype,"dataChanged",null);i3=_.U([_.Q({is:"ytd-guide-renderer",disableElementRegistration:!0})],i3);
_.S(i3,"ytd-guide-renderer",function(){if(BUc!==void 0)return BUc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sections" class="style-scope ytd-guide-renderer"></div>\n<div id="footer" hidden="[[!showFooter]]" class="style-scope ytd-guide-renderer">\n  <div id="guide-links-primary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-primary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <div id="guide-links-secondary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-secondary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <slot name="vat-notice" class="style-scope ytd-guide-renderer"></slot>\n  <slot name="copyright" class="style-scope ytd-guide-renderer"></slot>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return BUc=a},{mode:_.as("kevlar_poly_si_batch_j073")?1:2});var GUc;var HUc=function(){var a=_.P.apply(this,arguments)||this;a.systemIcons=_.w("kevlar_system_icons");a.frostedGlass=_.w("web_frosted_glass");a.getEndpointForm=Uxc;return a};
_.z(HUc,_.P);_.f=HUc.prototype;_.f.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.f.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.Wp(this.data.formattedTitle))};
_.f.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.f.onDown=function(){this.interaction.triggerDown()};
_.f.onUp=function(){this.interaction.triggerUp()};
_.f.onTap=function(a){if(this.data.serviceEndpoint){var b;_.w("shorts_controller_retrieve_seedless_sequence_v2")&&((b=_.y(this.data.serviceEndpoint,_.uq))==null?void 0:b.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):Txc(this.data.serviceEndpoint,this);a.preventDefault()}else{var c;((c=this.data)==null?0:c.navigationEndpoint)&&!_.Wt(_.Rq(a),this.hostElement,["A".toString()])&&_.io(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.f.computeActive=function(a,b){if(!a)return!1;var c=a.navigationEndpoint;a=a.serviceEndpoint;if(!c&&!a||!b)return!1;if(c){a=_.y(c,_.oq);var d=_.y(b,_.oq);if(a&&d)return a.browseId===d.browseId&&a.params===d.params;var e;c=(e=_.y(c.commandMetadata,_.co))==null?void 0:e.url;var g;b=(g=_.y(b.commandMetadata,_.co))==null?void 0:g.url;return!(!c||!b||c!==b&&c!==_.gj(b))}return this.isActiveShortsTab(a,b)};
_.f.isActiveShortsTab=function(a,b){b=!!_.y(b,_.uq)||!!_.y(b,_.PE);return(!!_.y(a,_.uq)||!!_.y(a,_.PE))&&b};
_.f.computeTitle=function(a,b){return b?"":_.Wp(a)};
_.Um.Object.defineProperties(HUc.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
var j3=HUc;j3.prototype.onTap=j3.prototype.onTap;j3.prototype.onUp=j3.prototype.onUp;j3.prototype.onDown=j3.prototype.onDown;j3.prototype.onActiveStateChange=j3.prototype.onActiveStateChange;j3.prototype.dataChanged=j3.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],j3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],j3.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.QD),_.W("design:type",Object)],j3.prototype,"ironButtonState",void 0);_.U([_.O(),_.W("design:type",Object)],j3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],j3.prototype,"activeEndpoint",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],j3.prototype,"noLabels",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.W("design:type",Boolean)],j3.prototype,"isActive",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],j3.prototype,"systemIcons",void 0);_.U([_.ir("yt-interaction"),_.W("design:type",Object)],j3.prototype,"interaction",void 0);_.U([_.K("isActive"),_.W("design:type",Object),_.W("design:paramtypes",[])],j3.prototype,"ariaSelected",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],j3.prototype,"frostedGlass",void 0);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j3.prototype,"dataChanged",null);_.U([_.N("isActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j3.prototype,"onActiveStateChange",null);_.U([_.M("down"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j3.prototype,"onDown",null);
_.U([_.M("up"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j3.prototype,"onUp",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],j3.prototype,"onTap",null);j3=_.U([_.Q({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],j3);
_.S(j3,"ytd-mini-guide-entry-renderer",function(){if(GUc!==void 0)return GUc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" tabindex="-1" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="4" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return GUc=a},{mode:_.as("kevlar_poly_si_batch_j063")?1:2});var IUc;var JUc=function(){var a=_.P.apply(this,arguments)||this;a.allVideosCount=0;a.noLabels=_.w("kevlar_mini_guide_no_labels");a.frostedGlass=_.w("web_frosted_glass");return a};
_.z(JUc,_.P);_.f=JUc.prototype;_.f.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.f.visibleChanged=function(){if(this.visible&&!this.data){var a=_.v().resolve(_.Xi(_.UI));a&&a.setGuideData(this.hostElement)}};
_.f.dataChanged=function(){var a=[],b;if((b=this.data)!=null&&b.items){b=_.h(this.data.items);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;if((d=c.guideSectionRenderer)==null?0:d.items)for(d=void 0,c=_.h((d=c.guideSectionRenderer)==null?void 0:d.items),d=c.next();!d.done;d=c.next())if(d=d.value,d.guideEntryRenderer)d=d.guideEntryRenderer,d.isPrimary&&a.push({guideEntryRenderer:d});else if(d.guideCollapsibleSectionEntryRenderer){var e=void 0;((e=_.y(d.guideCollapsibleSectionEntryRenderer.headerEntry,
b0))==null?0:e.isPrimary)&&a.push({guideEntryRenderer:_.y(d.guideCollapsibleSectionEntryRenderer.headerEntry,b0)});if(d=d.guideCollapsibleSectionEntryRenderer.sectionItems)for(d=_.h(d),e=d.next();!e.done;e=d.next()){var g=e.value;e=_.y(g,UJc);var k=void 0;((k=_.y(g,b0))==null?0:k.isPrimary)?a.push({guideEntryRenderer:_.y(g,b0)}):e&&(g=void 0,_.y((g=e)==null?void 0:g.entryRenderer,b0)&&(e.alwaysShow||this.allVideosCount)&&a.push({guideEntryRenderer:_.y(e.entryRenderer,b0)}))}}}}this.miniGuideItems=
a};
_.f.activeEndpointChanged=function(){for(var a=this.items.children,b=0;b<a.length;b++)a[b].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
var k3=JUc;k3.prototype.activeEndpointChanged=k3.prototype.activeEndpointChanged;k3.prototype.dataChanged=k3.prototype.dataChanged;k3.prototype.visibleChanged=k3.prototype.visibleChanged;_.U([_.H(_.OI),_.W("design:type",Object)],k3.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],k3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],k3.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.XI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],k3.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],k3.prototype,"ytComponentBehavior",void 0);_.U([_.ir("#items"),_.W("design:type",Object)],k3.prototype,"items",void 0);_.U([_.O(),_.W("design:type",Object)],k3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],k3.prototype,"visible",void 0);
_.U([_.O(),_.W("design:type",Object)],k3.prototype,"miniGuideItems",void 0);_.U([_.O({selector:_.FFa}),_.W("design:type",Object)],k3.prototype,"allVideosCount",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],k3.prototype,"noLabels",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],k3.prototype,"frostedGlass",void 0);_.U([_.mr("visible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],k3.prototype,"visibleChanged",null);
_.U([_.mr("data","allVideosCount"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],k3.prototype,"dataChanged",null);_.U([_.mr("activeEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],k3.prototype,"activeEndpointChanged",null);k3=_.U([_.Q({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],k3);
_.S(k3,"ytd-mini-guide-renderer",function(){if(IUc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-mini-guide-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);IUc=a}a=IUc;return a},{mode:1});var KUc;var LUc=/^[\x00-\x7F]+$/,MUc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.w("web_darker_dark_theme");return a};
_.z(MUc,_.P);_.Um.Object.defineProperties(MUc.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var a,b=_.Wp((a=this.data)==null?void 0:a.handle);if(b)return _.Vp("@"+b)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var a=_.Wp(this.displayHandle),b,c=_.Wp((b=this.data)==null?void 0:b.handleUrl);if(a&&c)return _.Vp(c+a)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var a=_.Wp(this.displayHandle);if(a&&!LUc.test(a)){var b;return(b=this.data)==null?void 0:b.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var a=_.Wp(this.displayHandleUrl),b,c=_.Wp((b=this.data)==null?void 0:b.urlInfoText);if(a&&c)return _.Vp(c+" "+a)}}});
var l3=MUc;_.U([_.O(),_.W("design:type",Object)],l3.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],l3.prototype,"displayHandle",null);_.U([_.K("displayHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],l3.prototype,"displayHandleUrl",null);_.U([_.K("displayHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],l3.prototype,"warningText",null);
_.U([_.K("displayHandleUrl"),_.W("design:type",Object),_.W("design:paramtypes",[])],l3.prototype,"urlInfoTextWithUrl",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],l3.prototype,"darkerDarkTheme",void 0);l3=_.U([_.Q({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],l3);
_.S(l3,"ytd-handles-claiming-confirm-dialog-content",function(){if(KUc!==void 0)return KUc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-formatted-string id="first-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[data.firstInfoText]]"></yt-formatted-string>\n    <yt-formatted-string id="url-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[urlInfoTextWithUrl]]"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n      <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[warningText]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return KUc=a},{mode:1});var NUc;var OUc=function(){var a=_.P.apply(this,arguments)||this;a.okButtonOverride={style:"mono",type:"outline",size:"M"};return a};
_.z(OUc,_.P);OUc.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
OUc.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
var m3=OUc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],m3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],m3.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],m3.prototype,"okButtonOverride",void 0);_.U([_.O(),_.W("design:type",Object)],m3.prototype,"data",void 0);m3=_.U([_.Q({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],m3);
_.S(m3,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(NUc!==void 0)return NUc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-confirm-dialog-content data="[[data]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n</ytd-handles-claiming-confirm-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <div id="ok-button" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return NUc=a},{mode:1});var PUc;var QUc=/^[\x00-\x7F]+$/,RUc=function(){var a=_.P.apply(this,arguments)||this;a.isLoading=!1;a.darkerDarkTheme=_.w("web_darker_dark_theme");return a};
_.z(RUc,_.P);RUc.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var a;this.selectedHandle=(a=this.handleInput)==null?void 0:a.value;this.onSelectedHandleChanged(this.selectedHandle);_.mo(this.hostElement,"yt-refit-popups-action")}};
_.Um.Object.defineProperties(RUc.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Vp("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Vp(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!QUc.test(this.selectedHandle)){var a;return(a=this.data)==null?void 0:a.warningText}}}});
var n3=RUc;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],n3.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],n3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],n3.prototype,"selectedHandle",void 0);_.U([_.O(),_.W("design:type",Object)],n3.prototype,"isLoading",void 0);_.U([_.O(),_.W("design:type",Function)],n3.prototype,"onSelectedHandleChanged",void 0);
_.U([_.ir("#channel-handle-input"),_.W("design:type",Object)],n3.prototype,"handleInput",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],n3.prototype,"handleUrlPrefix",null);_.U([_.K("selectedHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],n3.prototype,"displayHandle",null);_.U([_.K("selectedHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],n3.prototype,"displayHandleUrl",null);
_.U([_.K("selectedHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],n3.prototype,"warningText",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],n3.prototype,"darkerDarkTheme",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],n3.prototype,"ytRendererBehavior",void 0);n3=_.U([_.Q({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],n3);
_.S(n3,"ytd-handles-claiming-edit-dialog-content",function(){if(PUc!==void 0)return PUc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="input-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      </ytd-channel-handle-input-renderer>\n    </template>\n  </div>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></tp-yt-paper-spinner>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return PUc=a},{mode:1});var SUc;var TUc=function(){var a=_.P.apply(this,arguments)||this;a.actionButtonOverride={style:"mono",type:"filled",size:"M"};a.cancelButtonOverride={style:"mono",type:"text",size:"M"};a.selectButtonDisabled=!1;a.isLoading=!1;a.hasSelectedHandleEventListener=!1;a.selectedHandleChanged=function(b){a.selectedHandle=b};
return a};
_.z(TUc,_.P);_.f=TUc.prototype;_.f.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.f.onDataChanged=function(){var a,b;this.selectedHandle=(b=_.y((a=this.data)==null?void 0:a.inputField,uJc))==null?void 0:b.handle};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.onCancel=function(){this.selectedHandle="";_.lo(this.hostElement,"yt-close-popup-action",[this.is])};
_.f.onSelectHandle=function(){var a=this;if(this.selectedHandle!==void 0){var b;((b=this.data)==null?void 0:b.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(c,d){if(d.newHandleUpdateStatus!==void 0&&d.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&d.newHandleUpdateStatus.errorMessage)_.OW(a.hostElement,_.Wp(d.newHandleUpdateStatus.errorMessage)),
a.isLoading=!1;else{var e;if((e=a.data)==null?0:e.onChannelUpdateSuccess){c=a.data.onChannelUpdateSuccess;var g,k;if(d=(g=_.y(c,_.JE))==null?void 0:(k=g.popup)==null?void 0:k.handlesClaimingConfirmDialogRenderer)d.handle=_.Vp(a.selectedHandle);a.ytComponentBehavior.resolveCommand(c);_.lo(a.hostElement,"yt-close-popup-action",[a.is])}else a.isLoading=!1}},
onServerError:function(){var c;a.content&&((c=a.content)==null?0:c.handleInput)&&a.content.handleInput.validate();a.isLoading=!1;_.OW(a.hostElement,_.vo("TRY_AGAIN_LATER"))}}}))}};
_.f.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
var o3=TUc;o3.prototype.onDataChanged=o3.prototype.onDataChanged;o3.prototype.onSelectedHandleChanged=o3.prototype.onSelectedHandleChanged;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],o3.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],o3.prototype,"actionButtonOverride",void 0);_.U([_.O(),_.W("design:type",Object)],o3.prototype,"cancelButtonOverride",void 0);_.U([_.O(),_.W("design:type",Object)],o3.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",String)],o3.prototype,"selectedHandle",void 0);_.U([_.O(),_.W("design:type",Object)],o3.prototype,"selectButtonDisabled",void 0);_.U([_.O(),_.W("design:type",Object)],o3.prototype,"isLoading",void 0);_.U([_.O(),_.W("design:type",Object)],o3.prototype,"hasSelectedHandleEventListener",void 0);_.U([_.O(),_.W("design:type",Object)],o3.prototype,"handleInput",void 0);
_.U([_.N("selectedHandle"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],o3.prototype,"onSelectedHandleChanged",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],o3.prototype,"onDataChanged",null);_.U([_.ir("ytd-handles-claiming-edit-dialog-content"),_.W("design:type",Object)],o3.prototype,"content",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],o3.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],o3.prototype,"ytRendererstamperBehavior",void 0);o3=_.U([_.Q({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],o3);
_.S(o3,"ytd-handles-claiming-edit-dialog-renderer",function(){if(SUc!==void 0)return SUc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-edit-dialog-content data="[[data]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" on-selected-handle-changed="[[selectedHandleChanged]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n</ytd-handles-claiming-edit-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return SUc=a},{mode:1});var UUc;var VUc=function(){return _.P.apply(this,arguments)||this};
_.z(VUc,_.P);_.Um.Object.defineProperties(VUc.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null?0:a.handle){var b;return _.Vp("@"+_.Wp((b=this.data)==null?void 0:b.handle))}}}});
var WUc=VUc;_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],WUc.prototype,"formattedHandle",null);_.U([_.O(),_.W("design:type",Object)],WUc.prototype,"data",void 0);WUc=_.U([_.Q({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],WUc);
_.S(WUc,"ytd-handles-claiming-radio-option-renderer",function(){if(UUc!==void 0)return UUc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="handle" respect-lang-dir="" text="[[formattedHandle]]" class="style-scope ytd-handles-claiming-radio-option-renderer">\n</yt-formatted-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return UUc=a},{mode:1});var XUc;var YUc=/^[\x00-\x7F]+$/,ZUc=function(){var a=_.P.apply(this,arguments)||this;a.initialRadioIndex="-1";a.isLoading=!1;a.darkerDarkTheme=_.w("web_darker_dark_theme");a.maybeSubmitFeedback=function(){a.feedbackSurveyRenderer.submitSurvey()};
return a};
_.z(ZUc,_.P);ZUc.prototype.updateSelectedHandleIndexFromBinding=function(a){this.selectedRadioIndex=+a.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(a)};
ZUc.prototype.selectedHandleChanged=function(a){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var b;this.selectedHandle=(b=this.handleInput)==null?void 0:b.value;this.onSelectedHandleChanged(a)}};
_.Um.Object.defineProperties(ZUc.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this.data)==null?void 0:a.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var a;return this.ytRendererBehavior.getSimpleString((a=this.data)==null?void 0:a.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Vp("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Vp(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!YUc.test(this.selectedHandle)){var a;return(a=this.data)==null?void 0:a.warningText}}}});
var p3=ZUc;_.U([_.O(),_.W("design:type",Object)],p3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],p3.prototype,"initialRadioIndex",void 0);_.U([_.O(),_.W("design:type",Number)],p3.prototype,"selectedRadioIndex",void 0);_.U([_.O(),_.W("design:type",String)],p3.prototype,"selectedHandle",void 0);_.U([_.O(),_.W("design:type",Object)],p3.prototype,"isLoading",void 0);_.U([_.O(),_.W("design:type",Function)],p3.prototype,"onSelectedHandleChanged",void 0);
_.U([_.O(),_.W("design:type",Function)],p3.prototype,"onSelectedRadioIndexChanged",void 0);_.U([_.ir("#channel-handle-input"),_.W("design:type",Object)],p3.prototype,"handleInput",void 0);_.U([_.ir("ytd-feedback-survey-renderer"),_.W("design:type",Object)],p3.prototype,"feedbackSurveyRenderer",void 0);_.U([_.K("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],p3.prototype,"radioButtonLength",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],p3.prototype,"handleUrlPrefix",null);_.U([_.K("selectedHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],p3.prototype,"displayHandle",null);_.U([_.K("selectedHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],p3.prototype,"displayHandleUrl",null);_.U([_.K("selectedHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],p3.prototype,"warningText",null);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],p3.prototype,"darkerDarkTheme",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],p3.prototype,"ytRendererBehavior",void 0);p3=_.U([_.Q({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],p3);
_.S(p3,"ytd-handles-claiming-select-dialog-content",function(){if(XUc!==void 0)return XUc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <tp-yt-paper-radio-group id="radio-container" selected="[[initialRadioIndex]]" on-selected-changed="updateSelectedHandleIndexFromBinding" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <template is="dom-repeat" items="[[data.radioButton]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[index]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-handles-claiming-radio-option-renderer data="[[item.handlesClaimingRadioOptionRenderer]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-handles-claiming-radio-option-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[radioButtonLength]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-channel-handle-input-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content"></tp-yt-paper-spinner>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return XUc=a},{mode:1});var $Uc;var aVc=function(){var a=_.P.apply(this,arguments)||this;a.actionButtonOverride={style:"mono",type:"filled",size:"M"};a.cancelButtonOverride={style:"mono",type:"text",size:"M"};a.initialRadioIndex="-1";a.selectButtonDisabled=!1;a.isLoading=!1;a.selectedRadioIndexChanged=function(b){a.selectedRadioIndex=Number(b.detail.value)};
a.selectedHandleChanged=function(b){a.selectedHandle=b.detail.value};
a.darkerDarkTheme=_.w("web_darker_dark_theme");return a};
_.z(aVc,_.P);_.f=aVc.prototype;_.f.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.f.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.f.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.mo(this.hostElement,"yt-refit-popups-action")};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.lo(this.hostElement,"yt-close-popup-action",[this.is])};
_.f.onSelectHandle=function(){var a=this;if(this.selectedHandle!==void 0){var b;((b=this.data)==null?void 0:b.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(c,d){if(d.newHandleUpdateStatus!==void 0&&d.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&d.newHandleUpdateStatus.errorMessage)_.OW(a.hostElement,_.Wp(d.newHandleUpdateStatus.errorMessage)),
a.isLoading=!1;else{var e;if((e=a.data)==null?0:e.onChannelUpdateSuccess){c=a.data.onChannelUpdateSuccess;d=_.y(c,_.JE);var g;if(d==null?0:(g=d.popup)==null?0:g.handlesClaimingConfirmDialogRenderer)d.popup.handlesClaimingConfirmDialogRenderer.handle=_.Vp(a.selectedHandle);a.ytComponentBehavior.resolveCommand(c);_.lo(a.hostElement,"yt-close-popup-action",[a.is])}else a.isLoading=!1}},
onServerError:function(){if(a.selectedRadioIndex===a.radioButtonLength){var c;a.content&&((c=a.content)==null?0:c.handleInput)&&a.content.handleInput.validate()}a.isLoading=!1;_.OW(a.hostElement,_.vo("TRY_AGAIN_LATER"))}}}))}};
_.f.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var a,b;this.selectedHandle=(a=this.content)==null?void 0:(b=a.handleInput)==null?void 0:b.value}else this.selectedRadioIndex>=0&&((a=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(a==null?void 0:a.handle):this.selectedHandle=void 0)};
_.f.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.f.getRadioItem=function(a){if(this.radioButtonLength>a&&a>=0)return _.y(this.data.radioButton[a],NJc)};
_.Um.Object.defineProperties(aVc.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this.data)==null?void 0:a.radioButton)||[]).length}}});
var q3=aVc;q3.prototype.onSelectedHandleChanged=q3.prototype.onSelectedHandleChanged;q3.prototype.onSelectedHandleIndexChanged=q3.prototype.onSelectedHandleIndexChanged;q3.prototype.onDataChanged=q3.prototype.onDataChanged;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],q3.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],q3.prototype,"actionButtonOverride",void 0);_.U([_.O(),_.W("design:type",Object)],q3.prototype,"cancelButtonOverride",void 0);
_.U([_.O(),_.W("design:type",Object)],q3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],q3.prototype,"initialRadioIndex",void 0);_.U([_.O(),_.W("design:type",Number)],q3.prototype,"selectedRadioIndex",void 0);_.U([_.O(),_.W("design:type",String)],q3.prototype,"selectedHandle",void 0);_.U([_.O(),_.W("design:type",Object)],q3.prototype,"selectButtonDisabled",void 0);_.U([_.O(),_.W("design:type",Object)],q3.prototype,"isLoading",void 0);
_.U([_.K("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],q3.prototype,"radioButtonLength",null);_.U([_.ir("ytd-handles-claiming-select-dialog-content"),_.W("design:type",Object)],q3.prototype,"content",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q3.prototype,"onDataChanged",null);
_.U([_.N("selectedRadioIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q3.prototype,"onSelectedHandleIndexChanged",null);_.U([_.N("selectedHandle"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q3.prototype,"onSelectedHandleChanged",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],q3.prototype,"darkerDarkTheme",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],q3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],q3.prototype,"ytRendererstamperBehavior",void 0);q3=_.U([_.Q({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],q3);
_.S(q3,"ytd-handles-claiming-select-dialog-renderer",function(){if($Uc!==void 0)return $Uc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-select-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-select-dialog-content data="[[data]]" initial-radio-index="[[initialRadioIndex]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" selected-radio-index="[[selectedRadioIndex]]" on-selected-handle-changed="[[selectedHandleChanged]]" on-selected-radio-index-changed="[[selectedRadioIndexChanged]]" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n</ytd-handles-claiming-select-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return $Uc=a},{mode:1});var bVc;var cVc;var dVc=function(){return _.P.apply(this,arguments)||this};
_.z(dVc,_.P);dVc.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
var r3=dVc;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],r3.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],r3.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],r3.prototype,"data",void 0);r3=_.U([_.Q({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],r3);
_.S(r3,"ytd-hotkey-dialog-section-option-renderer",function(){if(cVc!==void 0)return cVc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="label-container style-scope ytd-hotkey-dialog-section-option-renderer">\n  <div id="label" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[getSimpleString(data.label)]]</div>\n  <div id="standalone-badge" class="standalone-badge style-scope ytd-hotkey-dialog-section-option-renderer"></div>\n</div>\n<div id="hotkey" aria-label$="[[data.hotkeyAccessibilityLabel.accessibilityData.label]]" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[data.hotkey]]</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return cVc=a},{mode:1});var eVc;var fVc=function(){return _.P.apply(this,arguments)||this};
_.z(fVc,_.P);fVc.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
var s3=fVc;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],s3.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],s3.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],s3.prototype,"data",void 0);s3=_.U([_.Q({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],s3);
_.S(s3,"ytd-hotkey-dialog-section-renderer",function(){if(eVc!==void 0)return eVc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sub-title" class="style-scope ytd-hotkey-dialog-section-renderer">[[getSimpleString(data.title)]]</div>\n<div id="options" class="style-scope ytd-hotkey-dialog-section-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return eVc=a},{mode:1});var gVc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.w("web_darker_dark_theme");return a};
_.z(gVc,_.P);gVc.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
var t3=gVc;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],t3.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],t3.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],t3.prototype,"darkerDarkTheme",void 0);t3=_.U([_.Q({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],t3);
_.S(t3,"ytd-hotkey-dialog-content",function(){if(bVc!==void 0)return bVc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-hotkey-dialog-content">\n  <div id="sections" class="style-scope ytd-hotkey-dialog-content"></div>\n</tp-yt-paper-dialog-scrollable>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return bVc=a},{mode:1});var hVc;var iVc=function(){return _.P.apply(this,arguments)||this};
_.z(iVc,_.P);iVc.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var a=document.querySelector("ytd-hotkey-dialog-content #scrollable");a&&(a.dialogElement=this.hostElement.parentElement)};
iVc.prototype.onCloseTap=function(){_.lo(this.hostElement,"yt-close-popup-action")};
var jVc=iVc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],jVc.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],jVc.prototype,"data",void 0);jVc=_.U([_.Q({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],jVc);
_.S(jVc,"ytd-hotkey-dialog-renderer",function(){if(hVc!==void 0)return hVc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-hotkey-dialog-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-hotkey-dialog-content data="[[data]]" class="style-scope ytd-hotkey-dialog-renderer"></ytd-hotkey-dialog-content>\n<div id="action-buttons" class="style-scope ytd-hotkey-dialog-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.dismissButton.buttonRenderer]]" on-tap="onCloseTap" class="style-scope ytd-hotkey-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return hVc=a},{mode:1});var kVc;var u3=function(){return _.P.apply(this,arguments)||this};
_.z(u3,_.P);u3.prototype.onYtServiceRequestError=function(){if(this.blocked){var a;var b=(a=this.data)==null?void 0:a.defaultServiceEndpoint}else{var c;b=(c=this.data)==null?void 0:c.toggledServiceEndpoint}var d;(b=(d=_.y(b,_.HBb))==null?void 0:d.onFailureAction)&&this.ytComponentBehavior.resolveCommand(b);this.updateBlockState(!this.blocked)};
u3.prototype.onYtToggleButton=function(a){this.updateBlockState(a.detail.toggled)};
u3.prototype.updateBlockState=function(a){if(a!==this.blocked){var b=this.blockedEntityKey;b&&this.ytdReduxBehavior.dispatch(_.wu("blockStateEntity",b,{key:b,blocked:a}));this.set("data.isToggled",a)}};
_.Um.Object.defineProperties(u3.prototype,{blocked:{configurable:!0,enumerable:!0,get:function(){return this.blockStateEntity?(this.set("data.isToggled",this.blocked),!!this.blockStateEntity.blocked):!(!this.data||!this.data.isToggled)}}});
var v3=u3;v3.prototype.onYtToggleButton=v3.prototype.onYtToggleButton;v3.prototype.onYtServiceRequestError=v3.prototype.onYtServiceRequestError;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],v3.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],v3.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],v3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],v3.prototype,"blockedEntityKey",void 0);
_.U([_.O({selectorArgs:["blockedEntityKey"],selector:function(a,b){return _.np(a.entities,"blockStateEntity",b)}}),
_.W("design:type",Object)],v3.prototype,"blockStateEntity",void 0);_.U([_.K("data","blockStateEntity"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],v3.prototype,"blocked",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],v3.prototype,"onYtServiceRequestError",null);
_.U([_.M("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],v3.prototype,"onYtToggleButton",null);v3=_.U([_.Q({is:"ytd-block-button",disableElementRegistration:!0})],v3);
_.S(v3,"ytd-block-button",function(){if(kVc!==void 0)return kVc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-block-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer data="[[data]]" class="style-scope ytd-block-button">\n</ytd-toggle-button-renderer>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return kVc=a},
{mode:1});var lVc;var mVc;var nVc=function(){return _.P.apply(this,arguments)||this};
_.z(nVc,_.P);var w3=nVc;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],w3.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],w3.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],w3.prototype,"data",void 0);w3=_.U([_.Q({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],w3);
_.S(w3,"ytd-kids-blocklist-picker-item-renderer",function(){if(mVc!==void 0)return mVc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="account-info style-scope ytd-kids-blocklist-picker-item-renderer">\n  <div class="account-avatar style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-img-shadow id="account-icon" thumbnail="[[data.avatar]]" width="44" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="account-text-info style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-formatted-string class="account-name style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childDisplayName]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="account-description style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childAccountDescription]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="action-button style-scope ytd-kids-blocklist-picker-item-renderer">\n  <ytd-block-button blocked-entity-key="[[data.blockedEntityKey]]" data="[[data.blockButton.toggleButtonRenderer]]" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n  </ytd-block-button>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return mVc=a},{mode:1});var oVc=function(){return _.P.apply(this,arguments)||this};
_.z(oVc,_.P);oVc.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
var pVc=oVc;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],pVc.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],pVc.prototype,"data",void 0);pVc=_.U([_.Q({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],pVc);
_.S(pVc,"ytd-kids-blocklist-picker-content",function(){if(lVc!==void 0)return lVc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="child-rows" class="style-scope ytd-kids-blocklist-picker-content"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return lVc=
a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var qVc;var rVc=function(){var a=_.P.apply(this,arguments)||this;a.hasAnyRequestSucceeded=!1;a.hasAnyRequestFailed=!1;a.numPendingRequests=0;return a};
_.z(rVc,_.P);_.f=rVc.prototype;_.f.attached=function(){this.hostElement.setAttribute("dialog","")};
_.f.onDoneButtonTap=function(){_.lo(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.f.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.f.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.f.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.f.onPopupClosed=function(a){var b,c;if(((b=a.detail)==null?void 0:(c=b.popup)==null?void 0:c.is)==="tp-yt-paper-dialog"){var d;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((d=this.data)==null?0:d.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.$p(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
var x3=rVc;x3.prototype.onPopupClosed=x3.prototype.onPopupClosed;x3.prototype.onYtServiceRequestError=x3.prototype.onYtServiceRequestError;x3.prototype.onYtServiceRequestCompleted=x3.prototype.onYtServiceRequestCompleted;x3.prototype.onYtServiceRequestSent=x3.prototype.onYtServiceRequestSent;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],x3.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],x3.prototype,"ytRendererBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],x3.prototype,"data",void 0);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],x3.prototype,"onYtServiceRequestSent",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],x3.prototype,"onYtServiceRequestCompleted",null);
_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],x3.prototype,"onYtServiceRequestError",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],x3.prototype,"onPopupClosed",null);x3=_.U([_.Q({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],x3);
_.S(x3,"ytd-kids-blocklist-picker-renderer",function(){if(qVc!==void 0)return qVc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="title" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </yt-formatted-string>\n  </div>\n  <ytd-kids-blocklist-picker-content data="[[data]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </ytd-kids-blocklist-picker-content>\n</div>\n<div id="footer" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="action-buttons" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <ytd-button-renderer id="done-button" data="[[data.doneButton.buttonRenderer]]" on-click="onDoneButtonTap" class="style-scope ytd-kids-blocklist-picker-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return qVc=a},{mode:1});var sVc;var tVc;var uVc=function(){return _.P.apply(this,arguments)||this};
_.z(uVc,_.P);uVc.prototype.setTip=function(a){var b=this;this.data&&(this.tip=CMc(AMc.getInstance(),a,this.data),_.Qm(this,function(){_.io(b.hostElement,"yt-refit")}))};
uVc.prototype.clearTip=function(){this.tip=void 0};
uVc.prototype.computeHidden=function(a){return!a};
var y3=uVc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],y3.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],y3.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.W("design:type",Boolean)],y3.prototype,"hidden",void 0);_.U([_.O(),_.W("design:type",Object)],y3.prototype,"tip",void 0);y3=_.U([_.Q({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],y3);
_.S(y3,"ytd-menu-popup-tip-renderer",function(){if(tVc!==void 0)return tVc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-tip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[tip]]" class="style-scope ytd-menu-popup-tip-renderer"></yt-formatted-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
return tVc=a},{mode:1});var vVc;var wVc=function(){var a=_.P.apply(this,arguments)||this;a.useIcons=!1;a.systemIcons=_.w("kevlar_system_icons");a.useListItemStyles=_.w("web_list_item_style_for_menu_items");return a};
_.z(wVc,_.P);_.f=wVc.prototype;_.f.onFocus=function(){var a;(a=_.E(this.hostElement).querySelector("tp-yt-paper-item"))==null||a.focus()};
_.f.onTap=function(){var a=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(a&&_.y(a,_.ro))this.componentBehavior.resolveCommand(a),this.updateToggledStateInEntity();else if(a){this.componentBehavior.resolveCommand(a)||(_.w("web_ytd_toggle_menu_service_item_renderer_command_resolver_ks")?_.oo(this.hostElement,[a]):_.v().resolve(_.Yi).resolveCommand(a,{form:{element:this.hostElement}}));var b;((b=_.y(a,_.to))==null?void 0:b.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.f.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.f.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.f.updateToggledStateInEntity=function(){var a=this.data.toggleMenuServiceItemEntityKey,b=!this.data.isToggled;a&&this.ytdReduxBehavior.dispatch(_.wu("toggleMenuServiceItemEntity",a,{key:a,isToggled:b}))};
_.f.computeIcon=function(a,b,c){return(a=a?c:b)&&a.iconType?_.es(a.iconType):""};
_.f.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.f.isIconActive=function(a){return!_.w("toggle_menu_active_icon_killswitch")&&a};
_.Um.Object.defineProperties(wVc.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.data)==null?0:a.isToggled)?(b=this.data)==null?void 0:b.toggledText:(c=this.data)==null?void 0:c.defaultText}}});
var z3=wVc;z3.prototype.toggledStateEntityChanged=z3.prototype.toggledStateEntityChanged;z3.prototype.onYtServiceRequestCompleted=z3.prototype.onYtServiceRequestCompleted;z3.prototype.onTap=z3.prototype.onTap;z3.prototype.onFocus=z3.prototype.onFocus;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],z3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],z3.prototype,"componentBehavior",void 0);
_.U([_.H(_.OI),_.W("design:type",Object)],z3.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],z3.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],z3.prototype,"useIcons",void 0);_.U([_.O({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.W("design:type",String)],z3.prototype,"icon",void 0);
_.U([_.O({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(a,b){return _.np(a.entities,"toggleMenuServiceItemEntity",b)}}),
_.W("design:type",Object)],z3.prototype,"toggleMenuServiceItemEntity",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],z3.prototype,"systemIcons",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],z3.prototype,"useListItemStyles",void 0);_.U([_.M("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],z3.prototype,"onFocus",null);
_.U([_.K("data.isToggled"),_.W("design:type",Object),_.W("design:paramtypes",[])],z3.prototype,"toggleButtonText",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],z3.prototype,"onTap",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],z3.prototype,"onYtServiceRequestCompleted",null);
_.U([_.N("toggleMenuServiceItemEntity.isToggled","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],z3.prototype,"toggledStateEntityChanged",null);z3=_.U([_.Q({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],z3);
_.S(z3,"ytd-toggle-menu-service-item-renderer",function(){if(vVc!==void 0)return vVc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item class="style-scope ytd-toggle-menu-service-item-renderer">\n  <yt-icon active="[[isIconActive(data.isToggled)]]" hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[toggleButtonText]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-formatted-string>\n  <tp-yt-paper-toggle-button checked="[[data.isToggled]]" hidden="[[!data.hasToggleSwitch]]" class="style-scope ytd-toggle-menu-service-item-renderer"></tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return vVc=a},{mode:1});var xVc;var yVc=function(){return _.P.apply(this,arguments)||this};
_.z(yVc,_.P);yVc.prototype.onFocus=function(){var a;(a=_.E(this.hostElement).querySelector("tp-yt-paper-item"))==null||a.focus()};
_.Um.Object.defineProperties(yVc.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.Id(this.data.iconUrl)}}});
var A3=yVc;A3.prototype.onFocus=A3.prototype.onFocus;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],A3.prototype,"rendererBehavior",void 0);_.U([_.H(_.qH.YtEndpointBehavior),_.W("design:type",Object)],A3.prototype,"ytEndpointBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],A3.prototype,"data",void 0);_.U([_.M("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],A3.prototype,"onFocus",null);
_.U([_.K("data.iconUrl"),_.W("design:type",Object),_.W("design:paramtypes",[])],A3.prototype,"imageSource",null);A3=_.U([_.Q({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],A3);
_.S(A3,"ytd-menu-custom-icon-item-renderer",function(){if(xVc!==void 0)return xVc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-custom-icon-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-menu-custom-icon-item-renderer" data="[[data.command]]" href$="[[computeHref_(data.command)]]" tabindex="-1">\n  <tp-yt-paper-item class="style-scope ytd-menu-custom-icon-item-renderer">\n    <img class="custom-icon style-scope ytd-menu-custom-icon-item-renderer" hidden$="[[!data.iconUrl]]" alt="icon" src$="[[imageSource]]">\n    <div class="action-text style-scope ytd-menu-custom-icon-item-renderer">\n      [[getSimpleString(data.actionText)]]\n      <yt-icon class="launch-icon style-scope ytd-menu-custom-icon-item-renderer" icon="yt-icons:launch"></yt-icon>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return xVc=a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});_.Ts(_.DQ,"yt-list-item-view-model",{props:{data:_.VG,isMenuItem:_.VG,isCompact:_.VG,onTap:_.Ss,trailingAccessory:_.VG,hideSelectionTextChevron:_.VG,disabled:_.VG,inPopup:_.VG,disableHorizontalPadding:_.VG,isOverlay:_.VG}});var zVc=function(){var a=_.P.apply(this,arguments)||this;a.disableBackdropFilter=_.w("web_disable_backdrop_filter");return a};
_.z(zVc,_.P);_.f=zVc.prototype;
_.f.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{menuNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},
toggleMenuServiceItemRenderer:{component:"ytd-toggle-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},listItemViewModel:{component:"yt-list-item-view-model",params:{isCompact:!0}},menuCustomIconItemRenderer:{component:"ytd-menu-custom-icon-item-renderer"},menuServiceItemDownloadRenderer:{component:"ytd-menu-service-item-download-renderer"},clientSideToggleMenuItemRenderer:{component:"yt-live-chat-toggle-renderer"}}},"data.footer":{id:"footer",mapping:{menuPopupTipRenderer:"ytd-menu-popup-tip-renderer"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.f.computeAriaLabel=function(a){return a};
_.f.onPopupOpened=function(){this.items.selected=0;for(var a=_.h(_.E(this.items).children),b=a.next();!b.done;b=a.next())b.value.popupPositionTarget=this.positionTarget;if(a=this.popupTip||void 0)a.setTip(this.source||""),this.source=void 0;this.veData&&(a=_.En())&&_.Vo(a,[this.veData])};
_.f.onPopupClosed=function(){var a=this.popupTip||void 0;a&&a.clearTip()};
_.f.onIronActivate=function(a){this.shouldPersist(a)||_.lo(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(a=_.En())&&_.Xo(a,this.veData)};
_.f.shouldPersist=function(a){var b,c;if(((b=a.detail)==null?void 0:b.selected)===void 0||(c=this.data)==null||!c.items)return!1;var d,e;return!((e=(d=this.data.items[a.detail.selected])==null?void 0:d.toggleMenuServiceItemRenderer)==null||!e.persistentOnMenuPopup)};
_.f.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(a){return a.menuNavigationItemRenderer?!!a.menuNavigationItemRenderer.icon:a.menuServiceItemRenderer?!!a.menuServiceItemRenderer.icon:a.menuConditionalServiceItemRenderer?!!a.menuConditionalServiceItemRenderer.icon:a.menuConditionalNavigationItemRenderer?!!a.menuConditionalNavigationItemRenderer.icon:a.toggleMenuServiceItemRenderer?!!a.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
var B3=zVc;B3.prototype.onPopupClosed=B3.prototype.onPopupClosed;B3.prototype.onPopupOpened=B3.prototype.onPopupOpened;_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],B3.prototype,"ytEventForwardingBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],B3.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],B3.prototype,"ytRendererBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],B3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],B3.prototype,"veData",void 0);_.U([_.O({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.W("design:type",String)],B3.prototype,"ariaLabel",void 0);_.U([_.O({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],B3.prototype,"useIcons",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],B3.prototype,"disableBackdropFilter",void 0);_.U([_.ir("#items"),_.W("design:type",Object)],B3.prototype,"items",void 0);_.U([_.ir("ytd-menu-popup-tip-renderer"),_.W("design:type",Object)],B3.prototype,"popupTip",void 0);_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B3.prototype,"onPopupOpened",null);
_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B3.prototype,"onPopupClosed",null);B3=_.U([_.Q({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],B3);
_.S(B3,"ytd-menu-popup-renderer",function(){if(sVc!==void 0)return sVc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-listbox id="items" on-iron-activate="onIronActivate" class="style-scope ytd-menu-popup-renderer"></tp-yt-paper-listbox>\n<div id="footer" class="style-scope ytd-menu-popup-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return sVc=a},{mode:1});var AVc;var BVc=_.Rr(function(a){a=_.Or(a,{icon:void 0});var b=a.data;a=a.icon;var c=function(){return b().iconBadgeText},d={},e=_.et("yt-spec-icon-badge-shape",function(){a:switch(b().iconBadgeType){case "notification":var g="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":g="yt-spec-icon-badge-shape--type-cart";break a;default:g=""}return g},function(){a:switch(b().iconBadgeStyle){case "overlay":var g="yt-spec-icon-badge-shape--style-overlay";
break a;default:g=""}return g},(d["yt-spec-icon-badge-shape--text-size-small"]=function(){var g=c();
return!!((g==null?0:g.length)&&g.length>2)},d));
return _.q("yt-icon-badge-shape",null,_.q(_.qi,{cond:a,then:function(g){return _.q("div",{class:e},_.q("div",{class:"yt-spec-icon-badge-shape__icon"},_.q(_.qt,{icon:g})),_.q(_.qi,{cond:c,then:function(k){return _.q("div",{class:"yt-spec-icon-badge-shape__badge"},k)}}))}}))},"Lf");
BVc.idomCompat=!0;_.Ts(BVc,"yt-icon-badge-shape",{props:{data:_.VG,icon:_.VG}});var CVc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};a.unseenCount=0;a.isOverlay=!1;return a};
_.z(CVc,_.P);_.f=CVc.prototype;_.f.attached=function(){var a=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(b){a.onServiceWorkerMessage(b)})};
_.f.onDataChanged=function(){this.isAttached&&!this.JSC$18071_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18071_lastData=this.data};
_.f.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.f.computeIcon=function(){var a,b;return(a=this.data)==null?void 0:(b=a.icon)==null?void 0:b.iconType};
_.f.onServiceWorkerMessage=function(a){a.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.f.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.y(this.data.updateUnseenCountEndpoint,_.to)&&_.y(this.data.updateUnseenCountEndpoint,_.to).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.f.handleUpdateNotificationsUnseenCountAction=function(a){var b=this;a=_.y(a,BJc);a!=null&&a.unseenCount&&a.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(a.unseenCount),_.zk.addLowPriorityJob(function(){b.data.updateUnseenCountEndpoint&&b.ytComponentBehavior.resolveCommand(b.data.updateUnseenCountEndpoint)},a.timeoutMs))};
_.f.onClick=function(){_.io(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var a=_.mo(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),b=this.data.menuRequest;a&&a.length===1&&a[0]?_.lo(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):b&&this.ytComponentBehavior.resolveCommand(b)};
_.f.handleTopbarMenuClosedAction=function(a){a==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.f.toggleIconState=function(a){this.iconButton&&(this.iconButton.pressed=a)};
_.f.sendUnseenCountRequest=function(a){var b=this;_.sl(_.zk,function(){b.ytComponentBehavior.resolveCommand(a)})};
_.f.updateCountUI=function(a){this.set("unseenCount",a<9?a:"9+")};
_.Um.Object.defineProperties(CVc.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
var C3=CVc;C3.prototype.handleUpdateNotificationsUnseenCountAction=C3.prototype.handleUpdateNotificationsUnseenCountAction;C3.prototype.onDataChanged=C3.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],C3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],C3.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.aI),_.W("design:type",Object)],C3.prototype,"ytdOpenPopupBehavior",void 0);
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],C3.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],C3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],C3.prototype,"unseenCount",void 0);_.U([_.O(),_.W("design:type",Object)],C3.prototype,"isOverlay",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],C3.prototype,"showTooltips",void 0);_.U([_.ir("yt-icon-button"),_.W("design:type",Object)],C3.prototype,"iconButton",void 0);
_.U([_.K("unseenCount"),_.W("design:type",Object),_.W("design:paramtypes",[])],C3.prototype,"showNotificationCount",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],C3.prototype,"onDataChanged",null);_.U([_.M("yt-update-notifications-unseen-count-action"),_.W("design:type",Function),_.W("design:paramtypes",[Object]),_.W("design:returntype")],C3.prototype,"handleUpdateNotificationsUnseenCountAction",null);
C3=_.U([_.Q({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],C3);
_.S(C3,"ytd-notification-topbar-button-renderer",function(){if(AVc!==void 0)return AVc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-notification-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(unseenCount, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-notification-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-notification-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return AVc=a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var DVc;var EVc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return a};
_.z(EVc,_.P);EVc.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
EVc.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
EVc.prototype.onDarkModeToggled=function(a){this.dark=a};
var D3=EVc;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],D3.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],D3.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],D3.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],D3.prototype,"data",void 0);_.U([_.O({value:!0,reflectToAttribute:!0}),_.W("design:type",Boolean)],D3.prototype,"dark",void 0);
D3=_.U([_.Q({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],D3);
_.S(D3,"yt-pdg-buy-flow-header-renderer",function(){if(DVc!==void 0)return DVc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-buy-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <yt-formatted-string id="title" text="[[data.text]]" class="style-scope yt-pdg-buy-flow-header-renderer"></yt-formatted-string>\n</div>\n<div id="button-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <div id="help-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n  <div id="dismiss-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return DVc=a},{mode:1});var FVc;var GVc;var HVc=function(){var a=_.P.apply(this,arguments)||this;a.immediateValue=0;a.isDarkTheme=!1;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(HVc,_.P);_.f=HVc.prototype;_.f.created=function(){_.XD.requestAvailability()};
_.f.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.f.dataChanged=function(){var a=_.E(this.hostElement).querySelector("#color-slider");a.immediateValue&&this.updateSliderKnobAndGradientStyles(a.immediateValue);this.data.notches[0].knobColorArgb&&_.fr(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.Dq(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.Fi("HTML_DIR")==="rtl"&&_.E(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.f.onSliderImmediateChange=function(){var a=_.E(this.hostElement).querySelector("#color-slider");a.dragging&&(a.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(a.immediateValue),this.updateSliderKnobAndGradientStyles(a.immediateValue)),this.updateSliderAria())};
_.f.onSliderChange=function(){var a=_.E(this.hostElement).querySelector("#color-slider");a.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(a.immediateValue),this.updateSliderKnobAndGradientStyles(a.immediateValue));this.updateSliderAria()};
_.f.updateSliderAria=function(){var a=_.E(this.hostElement).querySelector("#color-slider"),b=_.E(this.hostElement).querySelector("#color-slider");b=_.Wp(this.data.notches[b.immediateValue].tierValue);_.jaa()&&_.io(this.hostElement,"iron-announce",{text:b});a.setAttribute("aria-valuetext",b)};
_.f.updateSuperThanksSelectedTierEntity=function(a){if(a!==this.immediateValue){var b,c,d=this==null?void 0:(b=this.data)==null?void 0:(c=b.superThanksSelectedTierEntity)==null?void 0:c.key;d&&d.length>0&&this.ytdReduxBehavior.dispatch(_.wu("superThanksSelectedTierEntity",d,{key:d,index:a}))}};
_.f.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.f.updateSliderKnobAndGradientStyles=function(a){this.immediateValue=a;a=this.data.notches[a];if(a==null?0:a.knobColorArgb)var b={"--ytd-pdg-color-slider-knob-color":_.Dq(a.knobColorArgb)};(a==null?0:a.linearGradientCssStyle)&&b!==null&&(b=Object.assign({},b,{"--ytd-pdg-color-slider-active-color":a==null?void 0:a.linearGradientCssStyle}));b!==null&&_.fr(this.hostElement,b)};
var E3=HVc;E3.prototype.onSliderChange=E3.prototype.onSliderChange;E3.prototype.onSliderImmediateChange=E3.prototype.onSliderImmediateChange;E3.prototype.dataChanged=E3.prototype.dataChanged;_.U([_.O(),_.W("design:type",Object)],E3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],E3.prototype,"immediateValue",void 0);_.U([_.O(),_.W("design:type",Number)],E3.prototype,"maxMarkers",void 0);
_.U([_.O({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:huc}),_.W("design:type",Object)],E3.prototype,"superThanksSelectedTierEntity",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],E3.prototype,"isDarkTheme",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],E3.prototype,"ytdReduxBehavior",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E3.prototype,"dataChanged",null);
_.U([_.M("immediate-value-change"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E3.prototype,"onSliderImmediateChange",null);_.U([_.M("change"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E3.prototype,"onSliderChange",null);E3=_.U([_.Q({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],E3);
_.S(E3,"ytd-pdg-color-slider-renderer",function(){if(GVc!==void 0)return GVc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-color-slider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-slider id="color-slider" max="[[maxMarkers]]" max-markers="[[maxMarkers]]" min="0" snaps="" step="1" value="[[immediateValue]]" class="style-scope ytd-pdg-color-slider-renderer"></tp-yt-paper-slider>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return GVc=a},{mode:1});var IVc;var JVc;var F3=null;
_.sr({is:"ytd-comment-input",_template:function(){if(JVc!==void 0)return JVc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-comment-input">\n  <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-comment-input">\n    <div slot="after-input" class="paper-input-input style-scope ytd-comment-input">\n      <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-comment-input">\n        <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-comment-input">\n          <div id="content" slot="input" on-click="onContentClick" class="style-scope ytd-comment-input">\n            <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="input" data="[[commentChip]]" hidden="[[!hasCommentChip]]" class="style-scope ytd-comment-input">\n            </yt-pdg-comment-chip-renderer>\n            <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[computePlaceholderText_(placeholderText)]]" plaintext-only="true" required="true" split-lines="1" text="[[editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-comment-input"></yt-formatted-string>\n          </div>\n        </yt-user-mention-autosuggest-input>\n      </ytd-emoji-input>\n    </div>\n  </tp-yt-paper-input-container>\n  <span id="char-count" hidden="[[!charLimit]]" class="style-scope ytd-comment-input">[[charCount]]/[[charLimit]]</span>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return JVc=a},
behaviors:[_.nLa.YtHostElementBehavior,_.FD,_.OG.YtComponentBehavior,_.dH.YtRendererstamperBehavior,_.AVb.YtdReduxBehavior],keyBindings:{left:"leftKeyPressed_",right:"rightKeyPressed_",end:"endKeyPressed_",backspace:"maybeBackspaceChip_","delete":"maybeDeleteChip_","ctrl+backspace alt+backspace":"maybeBackspaceChipWordMode_","ctrl+delete alt+delete":"maybeDeleteChipWordMode_"},properties:{editableText:{type:Object,observer:"textDataChanged_"},placeholderText:{type:Object,observer:"textDataChanged_"},
commentChip:{type:Object,observer:"commentChipChanged_"},hideUnderline:{type:Boolean,value:!1,reflectToAttribute:!0},hasCommentChip:{type:Boolean,value:!1,reflectToAttribute:!0},receivedFocusPreviously_:{type:Boolean,value:!1},previousText_:String,isInputFocus_:{type:Boolean,observer:"onIsInputFocusChanged_"},emojiManager:{type:Object,readOnly:!0,value:function(){return _.SH}},
isEmojiButtonDisplayed:{type:Boolean,value:!1},emojiInput:Object,verticalSuggestionsOffset:{type:Number,value:30},charCount:{type:Number,value:0},charLimit:{type:Number,value:null},aboveCharLimit_:{type:Boolean,reflectToAttribute:!0,value:!1},inputEventSupported_:{type:Boolean,value:!1},textRequiresScrolling:{type:Boolean,reflectToAttribute:!0,value:!1},localStorage:Object},listeners:{"yt-insert-suggestion":"onSuggestionInsert_","yt-select-emoji-suggestion":"onEmojiSuggestionClick_","yt-mention-inserted":"onInsertMention_"},
ready:function(){document.addEventListener("tap",_.gr(this,this.onTap_));this.emojiInput=this.$.emoji},
commentChipChanged_:function(){this.hasCommentChip=this.computeHasCommentChip_()},
textDataChanged_:function(){this.clear()},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.wC();this.focus()},
detached:function(){document.removeEventListener("tap",_.gr(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(a){a=a.detail;a=a.isCustomEmoji?a.shortcuts[0]:a.emojiId;var b=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(b,a);this.maybeUpdateTextDirection_();_.io(this.hostElement,"input")},
getInputRange_:function(){var a=_.pv();if(a){a=a.getBrowserRangeObject();for(var b=a.commonAncestorContainer;b;){if(b===this.getEditableTextArea_())return a;b=b.parentNode}}a=this.getEditableTextArea_();a=_.TC(a,a.childNodes.length);a.select();return a.getBrowserRangeObject()},
insertTextWithEmojis_:function(a,b,c){(b=this.emojiManager.createDocumentFragment(b,!0,!1,c===void 0?!0:c))&&b.childNodes.length!==0&&(a.collapsed||a.deleteContents(),c=b.lastChild,a.insertNode(b),_.frb(c).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var a=_.pv();if(a){var b=a.JSC$9078_getStartNode(),c=a.JSC$9078_getEndNode();if(Vxc(b)&&Vxc(c)){var d=a.JSC$9078_getStartOffset(),e;if(_.Ax&&b.nodeType===Node.ELEMENT_NODE&&(e=_.Vcb(b)))_.TC(e,0).select();else{e=mZ(b)?b:_.Jf(b,mZ);var g=mZ(c)?c:_.Jf(c,mZ);if(e||g)if(a.isCollapsed()){if(b.nodeType===Node.TEXT_NODE){a=!0;d===b.length&&(a=!1);if(F3==="end"||F3==="right")a=!1;b=b.parentNode;a=[].concat(_.De(b.parentNode.childNodes)).indexOf(b)+(a?0:1);_.TC(b.parentNode,a).select()}}else e?
e.previousSibling&&e.previousSibling.length>0?_.UC(c,a.JSC$9078_getEndOffset(),e.previousSibling,e.previousSibling.length-1).select():(b=document.createTextNode("\u200b"),e.parentNode.insertBefore(b,e),_.UC(c,a.JSC$9078_getEndOffset(),b,0).select()):g&&(g.nextSibling&&g.nextSibling.length>0?_.UC(b,a.JSC$9078_getStartOffset(),g.nextSibling,1).select():(c=document.createTextNode("\u200b"),g.parentNode.insertBefore(c,g.nextSibling),_.UC(b,a.JSC$9078_getStartOffset(),c,c.length).select()));F3=null}}else F3=
null}else F3=null},
leftKeyPressed_:function(){F3="left"},
rightKeyPressed_:function(){F3="right"},
endKeyPressed_:function(){F3="end"},
maybeDeleteChip_:function(){var a=ayc(!0);if(a){var b=_.pv(),c=b.JSC$9078_getStartNode();b=b.JSC$9078_getStartOffset();_.OC(c,b,a,a.childNodes.length).select()}},
maybeBackspaceChip_:function(){var a=ayc(!1);if(a){var b=_.pv(),c=b.JSC$9078_getStartNode();b=b.JSC$9078_getStartOffset();_.OC(c,b,a,0).select()}},
maybeBackspaceChipWordMode_:function(a){var b=_.pv();if(b.isCollapsed()){var c=b.JSC$9078_getStartNode();b=b.JSC$9078_getStartOffset();var d=byc(c,b,!0);d&&(_.OC(c,b,d,0).select(),document.execCommand("delete"),a.preventDefault(),a.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(a){var b=_.pv();if(b.isCollapsed()){var c=b.JSC$9078_getStartNode();b=b.JSC$9078_getStartOffset();var d=byc(c,b,!1);d&&(_.OC(c,b,d,d.childNodes.length).select(),document.execCommand("delete"),a.preventDefault(),a.stopImmediatePropagation())}},
onContentClick:function(a){a.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(a){a.defaultPrevented||a.currentTarget.tagName==="YTD-COMMENT-INPUT"&&mZ(a.target)&&a.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.E(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.E(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(a,b){a=Xxc(a,this.emojiManager,b).cloneNode(!0);for(b=a.firstChild;b;)if(b.nodeType!==1)b=b.nextSibling;else switch(b.tagName){case "BR":var c=_.Ty();_.cdb(c,b);b=c.nextSibling;break;case "DIV":(c=b.lastChild)&&b.nextSibling&&_.Xy(_.Ty(),c);b.previousSibling&&(b.previousSibling.nodeType===1||b.previousSibling.nodeType===3&&!b.previousSibling.textContent.endsWith("\n"))&&_.Wy(_.Ty(),b);c&&c.nodeName==="BR"&&_.qg(c);c=b;b.hasChildNodes()?(b=b.firstChild,
_.ddb(c)):(b=b.nextSibling,_.qg(c));break;default:b=b.nextSibling}return cyc(a)},
setTextAreaValue:function(a){a||(a="");var b=this.getEditableFormattedString_();b.text="";this.getEditableTextArea_().innerText="";typeof a==="string"&&(a={runs:[{text:a}]});b.text=a},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();F3=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var a=this.getEditableTextArea_();a&&(_.TC(a,a.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Fi("HTML_DIR")==="rtl"){var a=this.getEditableTextArea_(),b=this.getTextAreaValue()!==""?"auto":"rtl";a.setAttribute("dir",b)}},
handleInputEvent_:function(){var a=null;if(this.isEmojiButtonDisplayed){var b=this.getInputRange_();b&&(a=this.emojiInput.retrieveTextBeforeRange(b))}this.insertText_(a,!0);this.updateCharCount_();a=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=a.scrollHeight>a.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var a=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:a})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount=this.getTextLength();this.aboveCharLimit_=!!this.charLimit&&this.charCount>this.charLimit},
onPaste_:function(a){this.isEmojiButtonDisplayed&&(a.preventDefault(),a.stopImmediatePropagation(),a=a.clipboardData.getData("text/plain"),this.insertText_(a,!1,!1),_.io(this.hostElement,"input"))},
insertText_:function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!0:c;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&a){var d=this.getInputRange_().cloneRange();this.emojiManager&&d&&(b&&this.emojiInput.offsetStartOfRangeBy(d,a.length),this.insertTextWithEmojis_(d,a,c),Wxc(this.getEditableTextArea_().lastChild)||(d=this.getInputRange_().cloneRange()),d&&(this.emojiInput.updateSuggestions(d,a),this.updateSuggestionOffset_(d)))}},
getSimpleString:_.Wp,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(a){return a?"focused":"not-focused"},
computePlaceholderText_:function(a){return this.getSimpleString(a)},
computeEditableText_:function(a){return this.getSimpleString(a)},
onPrefilledContentDismissed_:function(a){a.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(a,b){a?this.fire("yt-autonav-pause-focus"):b!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(a){var b=this.getEditableTextArea_();[].concat(_.De(a.dataTransfer.items)).forEach(function(c){c.kind==="string"&&c.type.match("^text/plain")&&c.getAsString(function(d){b.appendChild(document.createTextNode(d))})});
a.preventDefault()},
preventDefault_:function(a){a.preventDefault()},
onSuggestionInsert_:function(a){this.insertTextWithEmojis_(a.detail.range,a.detail.text)},
onEmojiSuggestionClick_:function(a){this.emojiInput.insertSuggestion(a.detail)},
updateSuggestionOffset_:function(a){if(this.emojiInput&&_.E(this.emojiInput).querySelector("#dropdown")){var b=this.getEditableTextArea_().getBoundingClientRect().bottom,c=a.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(b-c)+5;b=this.getEditableTextArea_().getBoundingClientRect().left;a=a.getBoundingClientRect().left-b;_.E(this.emojiInput).querySelector("#dropdown").style.marginLeft=a+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Ek("yt-post"));return this.localStorage}});var KVc=function(){var a=_.P.apply(this,arguments)||this;a.currentCommentOptionIndex=0;a.isEmojiPickerDisplayed=!1;a.emojiManager=_.SH;a.isUgcEmpty=!1;a.userGeneratedCommentChangedHandler=function(){_.io(a.hostElement,"ytd-pdg-user-generated-comment-changed");a.isEmojiYtdCommentInputEnabled&&(a.isUgcEmpty=!a.ytdCommentInputEl.getTextAreaValue())};
a.pasteHandler=function(b){b.preventDefault();b.stopImmediatePropagation();var c;if(b=(c=b.clipboardData)==null?void 0:c.getData("text/plain"))c=document.getSelection().getRangeAt(0),c.collapsed||c.deleteContents(),b=document.createTextNode(b),c.insertNode(b),c.selectNodeContents(b),c.collapse(!1),b=window.getSelection(),b.removeAllRanges(),b.addRange(c)};
a.onDocumentClick=function(b){if(a.isEmojiPickerDisplayed){var c,d,e;!(b.target instanceof Node)||(c=b.composedPath())!=null&&c.includes(a.editableTextEl)||(d=b.composedPath())!=null&&d.includes(a.emojiButtonEl)||(e=b.composedPath())!=null&&e.includes(a.emojiPickerEl)||(a.isEmojiPickerDisplayed=!1)}};
return a};
_.z(KVc,_.P);_.f=KVc.prototype;_.f.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.f.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.f.detached=function(){var a;(a=this.contentEl)==null||a.removeEventListener("input",this.userGeneratedCommentChangedHandler);var b;(b=this.contentEl)==null||b.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.f.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.f.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var a;this.contentEl.textContent=this.rendererBehavior.getSimpleString((a=this.data)==null?void 0:a.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.f.reloadEmojis=function(){this.emojiPickerEl&&_.y(this.emojiPicker,_.SBb)&&this.emojiPickerEl.updateEmojiCategories()};
_.f.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.fr(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.f.handleBackgroundColorStyling=function(){var a;if((a=this.currentCommentOption)==null?0:a.commentBackgroundColorArgb){var b;_.fr(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.Dq((b=this.currentCommentOption)==null?void 0:b.commentBackgroundColorArgb)})}else _.fr(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.f.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var a;(a=this.contentEl)==null||a.focus()}};
_.f.onEditButtonClick=function(a){var b=document.getSelection();b&&this.contentEl&&(a.stopPropagation(),a.preventDefault(),b.selectAllChildren(this.contentEl),b.collapseToEnd())};
_.f.onContentDrop=function(a){var b=this;if(a.dataTransfer){a=_.h(a.dataTransfer.items);for(var c=a.next();!c.done;c=a.next())c=c.value,c.kind==="string"&&c.type.match("^text/plain")&&c.getAsString(function(d){var e;(e=b.contentEl)==null||e.appendChild(document.createTextNode(d))})}};
_.f.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.f.getUserGeneratedCommentText=function(){var a,b=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(a=this.contentEl)==null?void 0:a.textContent;return b?b.trim():""};
_.f.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.f.onEmojiSelect=function(a){this.ytdCommentInputEl.onEmojiSelect(a)};
_.Um.Object.defineProperties(KVc.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.commentDialog)}},
title:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.title)}},
channelName:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.authorText)}},
shouldShowPaidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.currentCommentOption)==null||!a.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var a;if(_.y((a=this.currentCommentOption)==null?void 0:a.chipRenderer,_.bEb)){var b;return _.y((b=this.currentCommentOption)==null?void 0:b.chipRenderer,_.bEb)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var a,b;return((a=this.data)==null?0:a.commentOptionRenderers)?_.y((b=this.data)==null?void 0:b.commentOptionRenderers[this.superThanksSelectedTierEntity.index],dKc):void 0}var c,d;return((c=this.data)==null?0:c.commentOptionRenderers)?_.y((d=this.data)==null?void 0:d.commentOptionRenderers[this.currentCommentOptionIndex],dKc):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var a;return this.rendererBehavior.getSimpleString((a=this.data)==null?void 0:a.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var a;return this.rendererBehavior.getSimpleString((a=this.data)==null?void 0:a.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=_.y((a=this.data)==null?void 0:a.commentDialog,_.Nzb))==null?void 0:b.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=_.y((a=this.data)==null?void 0:a.commentDialog,_.Nzb))==null?void 0:b.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=_.y((a=this.data)==null?void 0:a.commentDialog,_.Nzb))==null?void 0:b.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(b=_.y((a=this.data)==null?void 0:a.commentDialog,_.Nzb))==null?void 0:b.emojiPicker;if(!_.y(c,_.SBb)||!_.y(c,_.SBb).categories)return!1;a=function(g){return g.emojiPickerCategoryRenderer?g.emojiPickerCategoryRenderer.emojiIds&&g.emojiPickerCategoryRenderer.emojiIds.length>0:g.emojiPickerUpsellCategoryRenderer?g.emojiPickerUpsellCategoryRenderer.emojis&&g.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var d,e;return((d=_.y(c,_.SBb))==null?0:(e=d.categories)==null?0:e.find(a))?!0:!1}}});
var G3=KVc;G3.prototype.onEmojiSelect=G3.prototype.onEmojiSelect;G3.prototype.dataChanged=G3.prototype.dataChanged;G3.prototype.currentCommentOptionChanged=G3.prototype.currentCommentOptionChanged;_.U([_.H(_.OI),_.W("design:type",Object)],G3.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],G3.prototype,"rendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],G3.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.ir("#content-dom-if"),_.W("design:type",_.ur)],G3.prototype,"contentDomIfEl",void 0);_.U([_.ir("#content-no-emojis"),_.W("design:type",HTMLElement)],G3.prototype,"contentEl",void 0);_.U([_.ir("#container"),_.W("design:type",HTMLElement)],G3.prototype,"containerEl",void 0);_.U([_.ir("#comment-chip-container"),_.W("design:type",HTMLElement)],G3.prototype,"paidCommentChipContainerEl",void 0);_.U([_.ir("#text-input"),_.W("design:type",HTMLElement)],G3.prototype,"editableTextEl",void 0);
_.U([_.ir("#emoji-button"),_.W("design:type",HTMLElement)],G3.prototype,"emojiButtonEl",void 0);_.U([_.ir("#emoji-picker > yt-emoji-picker-renderer"),_.W("design:type",Object)],G3.prototype,"emojiPickerEl",void 0);_.U([_.ir("#text-input > ytd-comment-input"),_.W("design:type",Object)],G3.prototype,"ytdCommentInputEl",void 0);_.U([_.O(),_.W("design:type",Object)],G3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],G3.prototype,"currentCommentOptionIndex",void 0);
_.U([_.O({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:huc}),_.W("design:type",Object)],G3.prototype,"superThanksSelectedTierEntity",void 0);_.U([_.O(),_.W("design:type",Object)],G3.prototype,"isEmojiPickerDisplayed",void 0);_.U([_.O(),_.W("design:type",Object)],G3.prototype,"emojiManager",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],G3.prototype,"isUgcEmpty",void 0);
_.U([_.N("currentCommentOption"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],G3.prototype,"currentCommentOptionChanged",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],G3.prototype,"dataChanged",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],G3.prototype,"isEmojiYtdCommentInputEnabled",null);
_.U([_.K("data.title"),_.W("design:type",Object),_.W("design:paramtypes",[])],G3.prototype,"title",null);_.U([_.K("data.authorText"),_.W("design:type",Object),_.W("design:paramtypes",[])],G3.prototype,"channelName",null);_.U([_.K("data.commentOptionRenderers","currentCommentOption"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],G3.prototype,"shouldShowPaidCommentChipRenderer",null);
_.U([_.K("data.commentOptionRenderers","currentCommentOption"),_.W("design:type",Object),_.W("design:paramtypes",[])],G3.prototype,"paidCommentChipRenderer",null);_.U([_.K("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],G3.prototype,"currentCommentOption",null);
_.U([_.K("data.defaultCommentText","superThanksSelectedTierEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],G3.prototype,"commentText",null);_.U([_.K("data.placeholderText"),_.W("design:type",Object),_.W("design:paramtypes",[])],G3.prototype,"placeholderText",null);_.U([_.K("data.commentDialog.commentDialogRenderer.editableText"),_.W("design:type",Object),_.W("design:paramtypes",[])],G3.prototype,"editableText",null);
_.U([_.K("data.commentDialog.commentDialogRenderer.emojiButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],G3.prototype,"emojiButton",null);_.U([_.K("data.commentDialog.commentDialogRenderer.emojiPicker"),_.W("design:type",Object),_.W("design:paramtypes",[])],G3.prototype,"emojiPicker",null);
_.U([_.K("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],G3.prototype,"isEmojiButtonDisplayed",null);_.U([_.M("yt-emoji-select"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],G3.prototype,"onEmojiSelect",null);G3=_.U([_.Q({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],G3);
_.S(G3,"ytd-pdg-comment-preview-renderer",function(){if(IVc!==void 0)return IVc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-click="onContainerClick" class="style-scope ytd-pdg-comment-preview-renderer">\n  <div id="comment-container" class="style-scope ytd-pdg-comment-preview-renderer">\n    <div id="title-background" class="style-scope ytd-pdg-comment-preview-renderer">\n      <h2 id="comment-title" class="style-scope ytd-pdg-comment-preview-renderer">[[title]]</h2>\n    </div>\n    <div id="comment" class="style-scope ytd-pdg-comment-preview-renderer">\n      <yt-img-shadow id="author-thumbnail" fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-pdg-comment-preview-renderer">\n      </yt-img-shadow>\n      <div id="text" class="style-scope ytd-pdg-comment-preview-renderer">\n        <div id="header" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="channel-name" dir="auto" class="style-scope ytd-pdg-comment-preview-renderer">[[channelName]]</span>\n        </div>\n        <template id="content-dom-if" is="dom-if" if="[[!isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="comment-chip-container" class="style-scope ytd-pdg-comment-preview-renderer">\n            <template is="dom-if" if="[[shouldShowPaidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              <yt-pdg-comment-chip-renderer id="paid-comment-chip-renderer" data="[[paidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              </yt-pdg-comment-chip-renderer>\n            </template>\n          </span>\n          <span id="content-no-emojis" on-drop="onContentDrop" contenteditable="true" placeholder$="[[placeholderText]]" class="style-scope ytd-pdg-comment-preview-renderer">[[commentText]]</span>\n        </template>\n        <template is="dom-if" if="[[isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <div id="content-emojis" class="style-scope ytd-pdg-comment-preview-renderer">\n            <div id="text-input" class="style-scope ytd-pdg-comment-preview-renderer">\n              <ytd-comment-input comment-chip="[[paidCommentChipRenderer]]" editable-text="[[editableText]]" hide-underline="" is-emoji-button-displayed="[[isEmojiButtonDisplayed]]" is-emoji-picker-displayed="[[isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-comment-input>\n            </div>\n          </div>\n        </template>\n      </div>\n      <div id="emoji-input" class="style-scope ytd-pdg-comment-preview-renderer">\n        <template is="dom-if" if="[[isEmojiButtonDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n          <ytd-button-renderer id="emoji-button" data="[[emojiButton.buttonRenderer]]" on-click="onEmojiButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n        </template>\n      </div>\n    </div>\n  </div>\n  <ytd-button-renderer data="[[data.editButton.buttonRenderer]]" hidden$="[[!data.editButton.buttonRenderer]]" on-click="onEditButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n</div>\n<div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n  <span id="emoji-picker" class="style-scope ytd-pdg-comment-preview-renderer">\n  </span>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return IVc=a},{mode:2});var LVc;var MVc=function(){var a=_.P.apply(this,arguments)||this;a.selected=!1;return a};
_.z(MVc,_.P);_.f=MVc.prototype;_.f.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.f.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.f.dataChanged=function(){this.data&&(_.ar(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.fr(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.Dq(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.Dq(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.f.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.f.onClick=function(){this.logClick()};
_.f.onKeyboardSelect=function(){_.io(this.hostElement,"tap");this.onClick()};
_.f.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
var H3=MVc;H3.prototype.onClick=H3.prototype.onClick;H3.prototype.selectedChanged=H3.prototype.selectedChanged;H3.prototype.dataChanged=H3.prototype.dataChanged;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],H3.prototype,"componentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],H3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.FD),_.W("design:type",Object)],H3.prototype,"ironA11yKeysBehavior",void 0);
_.U([_.H(_.Hr),_.W("design:type",Object)],H3.prototype,"ironSelectableBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],H3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],H3.prototype,"shownThumbnail",void 0);_.U([_.O(),_.W("design:type",Object)],H3.prototype,"basePriceText",void 0);_.U([_.O(),_.W("design:type",Object)],H3.prototype,"purchaseCommand",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],H3.prototype,"selected",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],H3.prototype,"dataChanged",null);_.U([_.N("selected"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],H3.prototype,"selectedChanged",null);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],H3.prototype,"onClick",null);
H3=_.U([_.Q({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],H3);
_.S(H3,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(LVc!==void 0)return LVc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-super-vod-selectable-item-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="price" class="style-scope ytd-pdg-super-vod-selectable-item-button-renderer">[[getSimpleString(data.basePriceText)]]</span>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return LVc=a},{mode:1});var NVc=function(){var a=_.P.apply(this,arguments)||this;a.selectedItemIndex=0;a.buyButtonDisabled=!1;return a};
_.z(NVc,_.P);_.f=NVc.prototype;
_.f.configureRendererStamper=function(){return{"data.commentPreview":{id:"comment-preview",mapping:{pdgCommentPreviewRenderer:{component:"ytd-pdg-comment-preview-renderer",properties:{currentCommentOptionIndex:"[[selectedItemIndex]]"}}}},"data.selectableItemButtons":{id:"selectable-items",mapping:{buttonRenderer:{component:"ytd-button-renderer"},superVodSelectableItemButtonRenderer:{component:"ytd-pdg-super-vod-selectable-item-button-renderer"}}},"data.colorSlider":{id:"slider",mapping:{pdgColorSliderRenderer:{component:"ytd-pdg-color-slider-renderer",
properties:{immediateValue:"[[selectedItemIndex]]"}}}}}};
_.f.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var a;var b=(a=_.y(this.data.colorSlider,cKc))==null?void 0:a.notches[this.selectedItemIndex].purchaseCommand}else{var c;b=(c=_.y(this.data.selectableItemButtons[this.selectedItemIndex],fKc))==null?void 0:c.purchaseCommand}if(b){a=_.y(b,_.rGb);a.productData||(a.productData={});var d;a.productData={pdgData:{commentMessageText:(d=this.commentPreviewRenderer)==null?void 0:d.getUserGeneratedCommentText()}};
_.io(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(b)}}};
_.f.dataChanged=function(){if(this.data){_.SH.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.jRb(_.SH,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.SH.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var a;this.buyButtonDisabled=!((a=_.y(this.data.commentPreview,eKc))==null||!a.placeholderText);this.updatePriceSelectorStatus();var b;if((b=this.data)==null?0:b.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;a=[];this.data.preloadImages&&(a=this.data.preloadImages);
a=a.map(function(c){return _.Us(c.thumbnails,1920)});
a=_.h(a);for(b=a.next();!b.done;b=a.next())(b=b.value)&&_.tUa(b).thenCatch(function(){_.Dl(Error("nl"))})}};
_.f.superThanksSelectedTierEntityChanged=function(){var a;(this==null?void 0:(a=this.superThanksSelectedTierEntity)==null?void 0:a.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.f.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.f.updatePriceSelectorStatus=function(){this.isColorSlider?(_.E(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.E(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.E(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.E(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.f.closeBuyFlow=function(){_.lo(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.f.onUserGeneratedContentChanged=function(){var a;this.buyButtonDisabled=!((a=this.commentPreviewRenderer)==null?0:a.getUserGeneratedCommentText())};
_.f.updateSelectedItemIndexFromBinding=function(a){this.selectedItemIndex=a.detail.value};
_.Um.Object.defineProperties(NVc.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.disclaimerText)}}});
var I3=NVc;I3.prototype.onUserGeneratedContentChanged=I3.prototype.onUserGeneratedContentChanged;I3.prototype.closeBuyFlow=I3.prototype.closeBuyFlow;I3.prototype.selectedItemIndexChanged=I3.prototype.selectedItemIndexChanged;I3.prototype.superThanksSelectedTierEntityChanged=I3.prototype.superThanksSelectedTierEntityChanged;I3.prototype.dataChanged=I3.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],I3.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],I3.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],I3.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],I3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],I3.prototype,"selectedItemIndex",void 0);_.U([_.O(),_.W("design:type",Boolean)],I3.prototype,"isColorSlider",void 0);
_.U([_.O(),_.W("design:type",Object)],I3.prototype,"buyButtonDisabled",void 0);_.U([_.O({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:huc}),_.W("design:type",Object)],I3.prototype,"superThanksSelectedTierEntity",void 0);_.U([_.ir("ytd-pdg-comment-preview-renderer"),_.W("design:type",Object)],I3.prototype,"commentPreviewRenderer",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],I3.prototype,"ytdReduxBehavior",void 0);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],I3.prototype,"dataChanged",null);_.U([_.N("superThanksSelectedTierEntity"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],I3.prototype,"superThanksSelectedTierEntityChanged",null);_.U([_.N("selectedItemIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],I3.prototype,"selectedItemIndexChanged",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],I3.prototype,"closeBuyFlow",null);_.U([_.M("ytd-pdg-user-generated-comment-changed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],I3.prototype,"onUserGeneratedContentChanged",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],I3.prototype,"isDisclaimerTextShown",null);
I3=_.U([_.Q({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],I3);
_.S(I3,"yt-super-vod-buy-flow-content-renderer",function(){if(FVc!==void 0)return FVc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-super-vod-buy-flow-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.description]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><div id="comment-preview" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><div id="slider" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><iron-selector id="selectable-items" role="radiogroup" selected="[[selectedItemIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedItemIndexFromBinding" class="style-scope yt-super-vod-buy-flow-content-renderer"></iron-selector><div id="footer" class="style-scope yt-super-vod-buy-flow-content-renderer"><div id="cancel-button" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><yt-formatted-string id="disclaimer-text" hidden="[[!isDisclaimerTextShown]]" text="[[data.disclaimerText]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><ytd-button-renderer id="buy-button" data="[[data.buyButton.buttonRenderer]]" disabled="[[buyButtonDisabled]]" on-click="onBuyButtonClick" class="style-scope yt-super-vod-buy-flow-content-renderer"></ytd-button-renderer></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return FVc=a},{mode:1});var OVc;var PVc=function(){var a=_.P.apply(this,arguments)||this;a.lottieAnimationRef={};return a};
_.z(PVc,_.P);_.f=PVc.prototype;_.f.created=function(){_.XD.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.gr(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.f.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.io(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.f.detached=function(){this.autoCloseJobId&&_.zk.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.gr(this,this.onPopupIronOverlayOpened))};
_.f.dataChanged=function(){var a=this;this.data&&this.data.autoCloseDelay&&(_.lo(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.Ys(_.zk,function(){a.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.fr(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.f.onDOMLoadedLottie=function(){var a=this,b,c,d=Number((b=this.data)==null?void 0:(c=b.autoCloseDelay)==null?void 0:c.seconds)||0;this.fadeOutJobId=_.Ys(_.zk,function(){a.lottiePlayerEl.classList.add("fadeout")},(d-.25)*1E3);
this.autoCloseJobId=_.Ys(_.zk,function(){a.closePopup()},d*1E3)};
_.f.openPopup=function(){this.ironOverlayBehavior.open()};
_.f.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.lo(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.po(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&(_.w("web_ytd_desktop_image_overlay_renderer_command_resolver_ks")?_.oo(this.hostElement,[this.data.onCloseSurveyCommand]):_.v().resolve(_.Yi).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}})),
this.autoCloseJobId&&_.zk.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.zk.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&this.lottiePlayerEl.classList.remove("fadeout"))};
_.f.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var a,b;(a=this.lottieAnimationRef)==null||(b=a.lottieEl)==null||b.destroy();a=this.data.lottie;var c,d;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:a.url+"_"+Math.random(),path:a.url,autoplay:!0,loop:(d=(c=a.settings)==null?void 0:c.loop)!=null?d:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.Um.Object.defineProperties(PVc.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this.data)==null?0:(b=a.lottie)==null?0:b.url)}}});
var J3=PVc;J3.prototype.maybeInitializeLottie=J3.prototype.maybeInitializeLottie;J3.prototype.dataChanged=J3.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],J3.prototype,"rendererBehavior",void 0);_.U([_.H(_.bE),_.W("design:type",Object)],J3.prototype,"ironOverlayBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],J3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],J3.prototype,"lottiePlayerProps",void 0);
_.U([_.O(),_.W("design:type",Object)],J3.prototype,"lottieAnimationRef",void 0);_.U([_.ir("ytd-lottie-player"),_.W("design:type",HTMLElement)],J3.prototype,"lottiePlayerEl",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],J3.prototype,"dataChanged",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],J3.prototype,"hasLottieAnimation",null);
_.U([_.N("data.lottie.url"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],J3.prototype,"maybeInitializeLottie",null);J3=_.U([_.Q({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],J3);
_.S(J3,"ytd-desktop-image-overlay-renderer",function(){if(OVc!==void 0)return OVc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]" class="style-scope ytd-desktop-image-overlay-renderer">\n</ytd-lottie-player></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return OVc=a},{mode:1});var QVc;var RVc=function(){return _.P.apply(this,arguments)||this};
_.z(RVc,_.P);_.f=RVc.prototype;_.f.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{pdgBuyFlowHeaderRenderer:{component:"yt-pdg-buy-flow-header-renderer"}}},"data.content":{id:"content",mapping:{superVodBuyFlowContentRenderer:{component:"yt-super-vod-buy-flow-content-renderer"}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("tabIndex")||this.hostElement.setAttribute("tabIndex","0");this.hostElement.addEventListener("yt-popup-closed",_.gr(this,this.closePopup))};
_.f.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.gr(this,this.closePopup))};
_.f.dataChanged=function(){_.mo(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.y(this.data.header,bKc)&&(this.hasBackgroundBanner=!!_.y(this.data.header,bKc).backgroundBanner)};
_.f.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.gr(this,this.closePopup))};
_.f.closePopup=function(){this.data&&this.data.onCloseCommand&&_.oo(this.hostElement,[this.data.onCloseCommand])};
var K3=RVc;K3.prototype.handleBuyflowSelectionSubmitted=K3.prototype.handleBuyflowSelectionSubmitted;K3.prototype.dataChanged=K3.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],K3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],K3.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],K3.prototype,"data",void 0);
_.U([_.O({value:!0,reflectToAttribute:!0}),_.W("design:type",Boolean)],K3.prototype,"hasBackgroundBanner",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K3.prototype,"dataChanged",null);_.U([_.M("yt-pdg-buy-flow-selection-submitted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K3.prototype,"handleBuyflowSelectionSubmitted",null);
K3=_.U([_.Q({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],K3);
_.S(K3,"ytd-pdg-buy-flow-renderer",function(){if(QVc!==void 0)return QVc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-buy-flow-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-pdg-buy-flow-renderer"></div>\n<div id="content" class="style-scope ytd-pdg-buy-flow-renderer"></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return QVc=a},{mode:1});var SVc;var TVc=function(){var a=_.P.apply(this,arguments)||this;a.isOpen=!1;a.isPlaylistCreated=!1;return a};
_.z(TVc,_.P);_.f=TVc.prototype;_.f.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.f.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.io(this.hostElement,"yt-refit")};
_.f.onCreateTap=function(){var a=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.oo(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(b,c){if(!_.w("killswitch_ep_in_create_playlist_response")&&(c==null?0:c.actions))for(b=_.h(c.actions),c=b.next();!c.done;c=b.next())c=c.value,_.y(c,_.Tw)&&a.ytComponentBehavior.resolveCommand(c)}}]),this.isPlaylistCreated=!0)};
_.f.onKeydown=function(a){if(a.keyCode===13)this.onCreateTap()};
_.f.onServiceRequestCompleted=function(a){a.stopPropagation();_.lo(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.f.computePrivacyBadge=function(a){return a?[{metadataBadgeRenderer:a}]:[]};
var L3=TVc;L3.prototype.onServiceRequestCompleted=L3.prototype.onServiceRequestCompleted;L3.prototype.onKeydown=L3.prototype.onKeydown;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],L3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],L3.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],L3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],L3.prototype,"isOpen",void 0);
_.U([_.O(),_.W("design:type",Object)],L3.prototype,"isPlaylistCreated",void 0);_.U([_.O({value:{REQUIRED_LABEL:_.vo("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.vo("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.W("design:type",Object)],L3.prototype,"addToStrings",void 0);_.U([_.O({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.W("design:type",Array)],L3.prototype,"privacyBadge",void 0);
_.U([_.ir("#privacy-input"),_.W("design:type",Object)],L3.prototype,"privacyInput",void 0);_.U([_.ir("#name-input"),_.W("design:type",Object)],L3.prototype,"nameInput",void 0);_.U([_.M("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],L3.prototype,"onKeydown",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],L3.prototype,"onServiceRequestCompleted",null);
L3=_.U([_.Q({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],L3);
_.S(L3,"ytd-add-to-playlist-create-renderer",function(){if(SVc!==void 0)return SVc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-create-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-compact-link-renderer data="[[data.openCreateLink.compactLinkRenderer]]" hidden="[[isOpen]]" on-tap="onOpenTap" class="style-scope ytd-add-to-playlist-create-renderer">\n</ytd-compact-link-renderer>\n<div id="create-playlist-form" hidden="[[!isOpen]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  <yt-text-input-form-field-renderer id="name-input" data="[[data.nameInput.textInputFormFieldRenderer]]" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </yt-text-input-form-field-renderer>\n  <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!data.privacyInput.metadataBadgeRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-dropdown-renderer id="privacy-input" data="[[data.privacyInput.dropdownRenderer]]" hidden="[[!data.privacyInput.dropdownRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-button-renderer id="privacy-button" data="[[data.privacyInput.buttonRenderer]]" hidden="[[!data.privacyInput.buttonRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-button-renderer>\n  <div id="actions" class="style-scope ytd-add-to-playlist-create-renderer">\n    <ytd-button-renderer data="[[data.createAction.buttonRenderer]]" on-tap="onCreateTap" class="style-scope ytd-add-to-playlist-create-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return SVc=a},{mode:1});var UVc;var VVc;var WVc=function(){var a=_.P.apply(this,arguments)||this;a.transferState="TRANSFER_STATE_UNKNOWN";return a};
_.z(WVc,_.P);WVc.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
WVc.prototype.onCheckboxChange=function(a){var b=this;this.data&&_.Fr(this,"yt-playlist-checkbox-changed",function(){var c=_.Sq(a).checked?b.data.addToPlaylistServiceEndpoint:b.data.removeFromPlaylistServiceEndpoint;c&&(_.w("web_ytd_playlist_add_to_option_renderer_command_resolver_ks")?_.oo(b.hostElement,[c]):_.v().resolve(_.Yi).resolveCommand(c,{form:{element:b.hostElement}}));_.w("dl_playlist_killswitch")||b.transferState!=="TRANSFER_STATE_UNKNOWN"&&b.transferState!=="TRANSFER_STATE_FAILED"&&b.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:b.data.playlistId,
action:"ACTION_SYNC"}})},100)};
WVc.prototype.computeIconType=function(a){return a?"yt-icons:"+a.toLowerCase():null};
var M3=WVc;M3.prototype.dataChanged=M3.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],M3.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],M3.prototype,"data",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],M3.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],M3.prototype,"ytComponentBehavior",void 0);_.U([_.ir("#checkbox"),_.W("design:type",HTMLInputElement)],M3.prototype,"checkbox",void 0);
_.U([_.O({selector:_.Lp,selectorArgs:["data.playlistId"]}),_.W("design:type",String)],M3.prototype,"transferState",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],M3.prototype,"dataChanged",null);M3=_.U([_.Q({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],M3);
_.S(M3,"ytd-playlist-add-to-option-renderer",function(){if(VVc!==void 0)return VVc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-add-to-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[checked_]]" on-change="onCheckboxChange" class="style-scope ytd-playlist-add-to-option-renderer">\n  <div id="checkbox-container" class="style-scope ytd-playlist-add-to-option-renderer">\n    <div id="checkbox-label" class="style-scope ytd-playlist-add-to-option-renderer">\n      <yt-formatted-string id="label" class="checkbox-height style-scope ytd-playlist-add-to-option-renderer" ellipsis-truncate="" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string id="byline" ellipsis-truncate="" link-inherit-color="" text="[[data.shortBylineText]]" class="style-scope ytd-playlist-add-to-option-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon icon="[[computeIconType(data.privacyIcon.iconType)]]" size="18" class="style-scope ytd-playlist-add-to-option-renderer"></yt-icon>\n  </div>\n</tp-yt-paper-checkbox>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return VVc=a},{mode:1});_.Zl(dyc);_.at(dyc,"ytd-menu-title-renderer",{propNames:["data"]});var XVc=function(){var a=_.P.apply(this,arguments)||this;a.addToStrings={ADD_TO_DROPDOWN_LABEL:_.vo("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};a.closeButtonAriaLabel=_.vo("SBOX_INAPPROPRIATE_CANCEL");a.dialog=_.w("desktop_add_to_playlist_renderer_dialog_popup");return a};
_.z(XVc,_.P);_.f=XVc.prototype;_.f.configureRendererStamper=function(){return{"data.playlists":{id:"playlists",mapping:{playlistAddToOptionRenderer:"ytd-playlist-add-to-option-renderer"}},"data.actions":{id:"actions",mapping:{addToPlaylistCreateRenderer:"ytd-add-to-playlist-create-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.f.onPopupOpened=function(){_.br(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.f.onPopupClosed=function(){_.br(this.playlists,"scrollable",!1)};
_.f.computeAriaLabel=function(){var a;if(this==null?0:(a=this.data)==null?0:a.actions){a=_.h(this.data.actions);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.menuTitleRenderer)return _.Wp(b.menuTitleRenderer.title)}};
_.f.onTapClose=function(){_.lo(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.Um.Object.defineProperties(XVc.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var a;if(this==null?0:(a=this.data)==null?0:a.actions){a=_.h(this.data.actions);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.menuTitleRenderer)return b.menuTitleRenderer}return!1}}});
var N3=XVc;N3.prototype.onPopupClosed=N3.prototype.onPopupClosed;N3.prototype.onPopupOpened=N3.prototype.onPopupOpened;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],N3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],N3.prototype,"ytEventForwardingBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],N3.prototype,"ytRendererStamperBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],N3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],N3.prototype,"addToStrings",void 0);_.U([_.O({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.W("design:type",String)],N3.prototype,"ariaLabel",void 0);_.U([_.O(),_.W("design:type",String)],N3.prototype,"closeButtonAriaLabel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],N3.prototype,"dialog",void 0);
_.U([_.ir("#playlists"),_.W("design:type",HTMLElement)],N3.prototype,"playlists",void 0);_.U([_.ir("ytd-add-to-playlist-create-renderer"),_.W("design:type",Object)],N3.prototype,"createRenderer",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],N3.prototype,"menuTitleRenderer",null);_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],N3.prototype,"onPopupOpened",null);
_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],N3.prototype,"onPopupClosed",null);N3=_.U([_.Q({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],N3);
_.S(N3,"ytd-add-to-playlist-renderer",function(){if(UVc!==void 0)return UVc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-add-to-playlist-renderer">\n  <template is="dom-if" if="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer">\n    <ytd-menu-title-renderer data="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer"></ytd-menu-title-renderer>\n  </template>\n  <div hidden="[[menuTitleRenderer]]" id="title" class="style-scope ytd-add-to-playlist-renderer">\n    [[addToStrings.ADD_TO_DROPDOWN_LABEL]]\n  </div>\n  <yt-icon-button id="close-button" hidden="[[!dialog]]" label="[[closeButtonAriaLabel]]" on-tap="onTapClose" class="style-scope ytd-add-to-playlist-renderer">\n    <yt-icon icon="close" class="style-scope ytd-add-to-playlist-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="playlists" class="style-scope ytd-add-to-playlist-renderer"></div>\n<div id="actions" class="style-scope ytd-add-to-playlist-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return UVc=a},{mode:1});var YVc;var ZVc=function(){var a=_.P.apply(this,arguments)||this;a.isPlaylistEditComplete=!1;a.isCollabEngagementDisabled=!1;a.closeButtonAriaLabel=_.vo("SBOX_INAPPROPRIATE_CANCEL");a.saveButton={title:_.vo("SAVE_PLAYLIST",void 0,"Save"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};a.onValueChanged=function(){a.updateSaveButtonState();a.computeCollabEngagementDisabled()};
return a};
_.z(ZVc,_.P);_.f=ZVc.prototype;_.f.attached=function(){this.JSC$18127_scroller&&(this.JSC$18127_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18127_scroller.attached&&typeof this.JSC$18127_scroller.attached==="function"&&this.JSC$18127_scroller.attached())};
_.f.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.f.onPopupClosed=function(){this.reset()};
_.f.close=function(){_.lo(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.f.onClickSave=function(){var a=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var b=[];this.nameInput.value!==null&&b.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&b.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var c=Number(this.privacyInput.value);isNaN(c)||b.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:c})}this.votingInput.value!==null&&(c=this.votingInput.value)&&b.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:c});if(b.length>0){var d;_.y((d=this.data)==null?void 0:d.updateSettingsEndpoint,_.OE).actions=b;var e;if((e=this.data)==null?0:e.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){a.close()}}}),this.isPlaylistEditComplete=!0}}};
_.f.computePrivacyBadge=function(a){return a?[{metadataBadgeRenderer:a}]:[]};
_.f.computeEditorData=function(a){var b,c;return a==null?void 0:(b=a.sections)==null?void 0:(c=b[0])==null?void 0:c.playlistSettingsEditorCasualSectionRenderer};
_.f.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.f.configureRendererStamper=function(){return{"editorData.thumbnail":{id:"thumbnail",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",params:{width:9999}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",params:{size:312}}}}}};
_.f.updateSaveButtonState=function(){this.isFormChanged()&&this.isFormValid()?this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"})):this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_DISABLED"}))};
_.f.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.f.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.f.isNameChanged=function(){var a,b,c;return(((a=this.editorData)==null?void 0:(b=a.name)==null?void 0:(c=b.textInputFormFieldRenderer)==null?void 0:c.value)||"")!==(this.nameInput.value||"")};
_.f.isDescriptionChanged=function(){var a,b,c;return(((a=this.editorData)==null?void 0:(b=a.description)==null?void 0:(c=b.textInputFormFieldRenderer)==null?void 0:c.value)||"")!==(this.descriptionInput.value||"")};
_.f.isPrivacyChanged=function(){var a,b,c,d,e,g,k,m;return((k=(a=this.editorData)==null?void 0:(b=a.privacy)==null?void 0:(c=b.dropdownFormFieldRenderer)==null?void 0:(d=c.dropdown)==null?void 0:(e=d.dropdownRenderer)==null?void 0:(g=e.entries)==null?void 0:g.find(function(n){var r;return n==null?void 0:(r=n.privacyDropdownItemRenderer)==null?void 0:r.isSelected}))==null?void 0:(m=k.privacyDropdownItemRenderer)==null?void 0:m.int32Value)!==this.privacyInput.value};
_.f.isVotingChanged=function(){var a,b,c,d,e,g,k,m;return((k=(a=this.editorData)==null?void 0:(b=a.voting)==null?void 0:(c=b.dropdownFormFieldRenderer)==null?void 0:(d=c.dropdown)==null?void 0:(e=d.dropdownRenderer)==null?void 0:(g=e.entries)==null?void 0:g.find(function(n){var r;return n==null?void 0:(r=n.privacyDropdownItemRenderer)==null?void 0:r.isSelected}))==null?void 0:(m=k.privacyDropdownItemRenderer)==null?void 0:m.int32Value)!==this.votingInput.value};
var O3=ZVc;O3.prototype.onPopupClosed=O3.prototype.onPopupClosed;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],O3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],O3.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],O3.prototype,"ytEventForwardingBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],O3.prototype,"ytRendererStamperBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],O3.prototype,"data",void 0);_.U([_.O({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.W("design:type",Array)],O3.prototype,"privacyBadge",void 0);_.U([_.O({computed:"computeEditorData(data)"}),_.W("design:type",Object)],O3.prototype,"editorData",void 0);_.U([_.O(),_.W("design:type",Object)],O3.prototype,"isPlaylistEditComplete",void 0);_.U([_.O(),_.W("design:type",Object)],O3.prototype,"isCollabEngagementDisabled",void 0);
_.U([_.O({value:{REQUIRED_LABEL:_.vo("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.vo("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.W("design:type",Object)],O3.prototype,"addToStrings",void 0);_.U([_.O(),_.W("design:type",String)],O3.prototype,"closeButtonAriaLabel",void 0);_.U([_.O(),_.W("design:type",Object)],O3.prototype,"saveButton",void 0);_.U([_.ir("#name-input"),_.W("design:type",Object)],O3.prototype,"nameInput",void 0);
_.U([_.ir("#description-input"),_.W("design:type",Object)],O3.prototype,"descriptionInput",void 0);_.U([_.ir("#privacy-input"),_.W("design:type",Object)],O3.prototype,"privacyInput",void 0);_.U([_.ir("#voting-input"),_.W("design:type",Object)],O3.prototype,"votingInput",void 0);_.U([_.ir("#scroller"),_.W("design:type",Object)],O3.prototype,"JSC$18127_scroller",void 0);
_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],O3.prototype,"onPopupClosed",null);_.U([_.O(),_.W("design:type",Object)],O3.prototype,"onValueChanged",void 0);O3=_.U([_.Q({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],O3);
_.S(O3,"ytd-playlist-settings-editor-renderer",function(){if(YVc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);YVc=a}a=YVc;return a},{mode:1});var $Vc;_.Ft("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var aWc=function(){return _.P.apply(this,arguments)||this};
_.z(aWc,_.P);_.f=aWc.prototype;_.f.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-confirm":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",classListBinding:"[[buttonClass_]]",attributes:{"dialog-dismiss":!0}}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.dataChanged=function(){switch(this.get("data.singleOptions.preselectMode")){case "SINGLE_OPTION_PRESELECT_MODE_LAST":this.selectedResponseIndex=this.get("data.singleOptions.styles").length-1;break;default:this.selectedResponseIndex=void 0}var a=this.get("data.nextButton.buttonRenderer.navigationEndpoint");a&&(this.nextNavigationEndpoint=a,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.f.onSelectedResponseIndexChange=function(){if(this.get("data.nextButton.buttonRenderer")!=null){switch(this.get("data.submissionMode")){case "SURVEY_SUBMISSION_MODE_ONE_SELECTED_OPTION":this.set("data.nextButton.buttonRenderer.isDisabled",this.selectedResponseIndex===void 0);break;default:this.set("data.nextButton.buttonRenderer.isDisabled",!1)}if(this.selectedResponseIndex!=null){var a={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",a)}}};
_.f.onPopupOpened=function(a){a.detail!==this&&a.detail!==this.hostElement||!_.w("enable_premium_voluntary_pause")||_.lo(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.f.onNextButtonTap=function(){var a=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);a&&this.ytdOpenPopupBehavior.openPopup(a)};
_.f.updateSelectedResponseIndexFromBinding=function(a){this.selectedResponseIndex=a.detail.value};
var P3=aWc;P3.prototype.onPopupOpened=P3.prototype.onPopupOpened;P3.prototype.onSelectedResponseIndexChange=P3.prototype.onSelectedResponseIndexChange;P3.prototype.dataChanged=P3.prototype.dataChanged;_.U([_.H(_.aI),_.W("design:type",Object)],P3.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],P3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],P3.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],P3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Number)],P3.prototype,"selectedResponseIndex",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P3.prototype,"dataChanged",null);_.U([_.N("selectedResponseIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P3.prototype,"onSelectedResponseIndexChange",null);
_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],P3.prototype,"onPopupOpened",null);P3=_.U([_.Q({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],P3);
_.S(P3,"ytd-red-cancel-survey-renderer",function(){if($Vc!==void 0)return $Vc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-red-cancel-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-red-cancel-survey-renderer">\n  <div id="question" class="style-scope ytd-red-cancel-survey-renderer">[[getSimpleString(data.question)]]</div>\n  <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-red-cancel-survey-renderer">\n    <template is="dom-repeat" items="[[data.singleOptions.styles]]" class="style-scope ytd-red-cancel-survey-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-red-cancel-survey-renderer">\n        [[getSimpleString(item.radioButtonSurveyOptionRenderer.option)]]\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div class="buttons style-scope ytd-red-cancel-survey-renderer">\n  <div id="dismiss-button" class="style-scope ytd-red-cancel-survey-renderer"></div>\n  <div id="next-button" on-click="onNextButtonTap" class="style-scope ytd-red-cancel-survey-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return $Vc=a},{mode:1});var bWc;var cWc=function(){var a=_.P.apply(this,arguments)||this;a.closeButtonAriaLabel=_.vo("SBOX_INAPPROPRIATE_CANCEL");return a};
_.z(cWc,_.P);cWc.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
cWc.prototype.onClickClose=function(){_.lo(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
var c4=cWc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],c4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],c4.prototype,"rendererStamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],c4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],c4.prototype,"closeButtonAriaLabel",void 0);c4=_.U([_.Q({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],c4);
_.S(c4,"ytd-search-filter-options-dialog-renderer",function(){if(bWc!==void 0)return bWc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-options-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-search-filter-options-dialog-renderer">\n  <div id="title" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onClickClose" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-icon icon="close" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-search-filter-options-dialog-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return bWc=a},{mode:1});var dWc;var gyc=function(){return function(a){a=a.availabilityType;return a===void 0||a==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||a==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var eWc=function(){var a=_.P.apply(this,arguments)||this;a.qualityOptions=[];a.upsellOptions=[];a.showUpsellSection=!1;a.darkerDarkTheme=_.w("web_darker_dark_theme");a.rememberSettingsChecked=!1;return a};
_.z(eWc,_.P);_.f=eWc.prototype;_.f.configureRendererStamper=function(){return{qualityOptions:{id:"quality-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}},upsellOptions:{id:"upsell-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.f.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.f.updateQualityOptions=function(){if(this.formats===void 0)_.lo(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var a=[],b=[];this.showUpsellSection=!1;for(var c=_.h(this.formats),d=c.next();!d.done;d=c.next())(d=d.value)&&(d.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?b.push(d):a.push(d));a.length&&(this.qualityOptions=fyc(a));b.length&&(this.showUpsellSection=!0,this.upsellOptions=fyc(b))}};
_.f.updateRememberString=function(){if(this.downloadQualityPickerEntity)var a=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var b;a=(b=this.data)==null?void 0:b.premiumRememberSettingString}else{var c;a=(c=this.data)==null?void 0:c.rememberSettingString}a=a===void 0?_.vo("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):a;this.rememberSettingsCheckboxRenderer={title:_.ep(a),disabled:!1}};
_.f.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.Um.Object.defineProperties(eWc.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var a;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(a=this.data)==null?void 0:a.qualityFormats}}});
var d4=eWc;d4.prototype.updateRememberString=d4.prototype.updateRememberString;d4.prototype.updateQualityOptions=d4.prototype.updateQualityOptions;d4.prototype.dataChanged=d4.prototype.dataChanged;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],d4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],d4.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],d4.prototype,"data",void 0);
_.U([_.H(_.OI),_.W("design:type",Object)],d4.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Boolean)],d4.prototype,"selectedUpsellQuality",void 0);_.U([_.O({computed:"computeIcon_(data.premiumIcon)",value:""}),_.W("design:type",String)],d4.prototype,"premiumIcon",void 0);_.U([_.O({selector:dtc,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.W("design:type",Object)],d4.prototype,"downloadQualityPickerEntity",void 0);
_.U([_.O(),_.W("design:type",Array)],d4.prototype,"qualityOptions",void 0);_.U([_.O(),_.W("design:type",Array)],d4.prototype,"upsellOptions",void 0);_.U([_.O(),_.W("design:type",Object)],d4.prototype,"showUpsellSection",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],d4.prototype,"darkerDarkTheme",void 0);_.U([_.O(),_.W("design:type",Object)],d4.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.U([_.ir("#remember-settings"),_.W("design:type",HTMLInputElement)],d4.prototype,"rememberSettingsCheckbox",void 0);_.U([_.O(),_.W("design:type",Object)],d4.prototype,"rememberSettingsChecked",void 0);_.U([_.O(),_.W("design:type",Function)],d4.prototype,"onRememberSettingsCheckedChanged",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d4.prototype,"dataChanged",null);
_.U([_.N("downloadQualityPickerEntity"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d4.prototype,"updateQualityOptions",null);_.U([_.N("selectedUpsellQuality"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d4.prototype,"updateRememberString",null);d4=_.U([_.Q({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],d4);
_.S(d4,"ytd-download-quality-selector-content",function(){if(dWc!==void 0)return dWc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="quality-options" class="style-scope ytd-download-quality-selector-content"></div>\n<div id="upsell-section" hidden="[[!showUpsellSection]]" class="style-scope ytd-download-quality-selector-content">\n    <yt-icon id="premium-icon" icon="[[premiumIcon]]" class="style-scope ytd-download-quality-selector-content"></yt-icon>\n    <yt-formatted-string id="premium-description" text="[[data.premiumDescription]]" class="style-scope ytd-download-quality-selector-content"></yt-formatted-string>\n    <div id="upsell-options" class="style-scope ytd-download-quality-selector-content"></div>\n</div>\n<ytd-settings-checkbox-renderer id="remember-settings" data="[[rememberSettingsCheckboxRenderer]]" on-click="rememberSettingsCheckedChanged" class="style-scope ytd-download-quality-selector-content">\n</ytd-settings-checkbox-renderer>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return dWc=a},{mode:1});var fWc;var gWc=function(){var a=_.P.apply(this,arguments)||this;a.selectedUpsellQuality=!1;a.qualityOptions=[];a.darkerDarkTheme=_.w("web_darker_dark_theme");a.useUpsellDismissAlternate=_.w("use_not_now_dl_upsell_dismiss_cta");a.shouldShowAlternateUpsellDimiss=!1;a.rememberSettings=!1;a.rememberSettingsChecked=!1;a.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};a.rememberSettingsCheckedChanged=function(b){a.rememberSettingsChecked=b};
return a};
_.z(gWc,_.P);_.f=gWc.prototype;
_.f.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ep(_.vo("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ep(_.vo("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.ep(_.vo("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.ep(_.vo("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.f.updateQualityOptions=function(){this.formats===void 0?_.lo(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=fyc(this.formats)};
_.f.onQualityOptionsSelect=function(a){if(this.qualityOptions&&a){a!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var b=_.h(this.qualityOptions.entries()),c=b.next();!c.done;c=
b.next()){c=_.h(c.value);var d=c.next().value;c=c.next().value;var e=void 0,g=void 0;if(((e=c)==null?void 0:(g=e.settingsRadioOptionRenderer)==null?void 0:g.id)===a){this.selectedQualityIndex=d;a=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((a=this.formats[d])==null?void 0:a.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.f.onClickSubmit=function(){var a;if((a=this.downloadButtonRenderer)==null||!a.isDisabled){var b,c;a=(c=(b=this.data)==null?void 0:b.onSubmitEndpoint)!=null?c:{};var d,e;if(this.formats&&(((d=_.y(a,_.qu))==null?0:d.videoId)||((e=_.y(a,_.ru))==null?0:e.playlistId))){var g,k,m,n,r,t;b={formatType:(n=(g=this.formats)==null?void 0:(k=g[(m=this.selectedQualityIndex)!=null?m:0])==null?void 0:k.format)!=null?n:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(r=this.getOfflineEndpoint(a))==null?void 0:(t=r.actionParams)==null?void 0:t.settingsAction)};this.getOfflineEndpoint(a).actionParams=b;this.ytComponentBehavior.resolveCommand(a)}_.lo(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.f.onClickUpsell=function(){var a;if((a=this.upsellButtonRenderer)==null||!a.isDisabled){var b,c;a=(c=(b=this.data)==null?void 0:b.upsellEndpoint)!=null?c:{};this.ytComponentBehavior.resolveCommand(a);_.lo(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);b="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var d,e,g,k;b=(k=(d=this.formats)==null?void 0:(e=d[(g=this.selectedQualityIndex)!=null?g:0])==null?void 0:e.format)!=null?k:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:b}})}};
_.f.onClickClose=function(){_.lo(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.f.getOfflineSettingsAction=function(a,b){return a?b===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":b:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.f.getOfflineEndpoint=function(a){return _.y(a,_.qu)?_.y(a,_.qu):_.y(a,_.ru)};
_.Um.Object.defineProperties(gWc.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.ep(_.vo("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var a;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(a=this.data)==null?void 0:a.qualityFormats}}});
var e4=gWc;e4.prototype.updateQualityOptions=e4.prototype.updateQualityOptions;e4.prototype.dataChanged=e4.prototype.dataChanged;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],e4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],e4.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],e4.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],e4.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],e4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Number)],e4.prototype,"selectedQualityIndex",void 0);_.U([_.O(),_.W("design:type",Object)],e4.prototype,"selectedUpsellQuality",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],e4.prototype,"ytdReduxBehavior",void 0);
_.U([_.O({selector:dtc,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.W("design:type",Object)],e4.prototype,"downloadQualityPickerEntity",void 0);_.U([_.O(),_.W("design:type",Array)],e4.prototype,"qualityOptions",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],e4.prototype,"darkerDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],e4.prototype,"useUpsellDismissAlternate",void 0);
_.U([_.O(),_.W("design:type",Object)],e4.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.U([_.O(),_.W("design:type",Object)],e4.prototype,"downloadButtonRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],e4.prototype,"upsellButtonRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],e4.prototype,"cancelButtonRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],e4.prototype,"upsellCancelButtonRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],e4.prototype,"rememberSettings",void 0);
_.U([_.O(),_.W("design:type",Object)],e4.prototype,"rememberSettingsChecked",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],e4.prototype,"dataChanged",null);_.U([_.N("downloadQualityPickerEntity"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],e4.prototype,"updateQualityOptions",null);e4=_.U([_.Q({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],e4);
_.S(e4,"ytd-download-quality-selector-renderer",function(){if(fWc!==void 0)return fWc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[titleText]]" class="style-scope ytd-download-quality-selector-renderer"></yt-formatted-string>\n<ytd-download-quality-selector-content data="[[data]]" remember-settings-checked="[[rememberSettingsChecked]]" selected-upsell-quality="[[selectedUpsellQuality]]" on-remember-settings-checked-changed="[[rememberSettingsCheckedChanged]]" class="style-scope ytd-download-quality-selector-renderer">\n</ytd-download-quality-selector-content>\n<div class="buttons style-scope ytd-download-quality-selector-renderer">\n  <yt-button-renderer id="cancel-button" data="[[cancelButtonRenderer]]" dialog-dismiss="" hidden="[[shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-cancel-button" data="[[upsellCancelButtonRenderer]]" dialog-dismiss="" hidden="[[!shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="download-button" data="[[downloadButtonRenderer]]" hidden="[[selectedUpsellQuality]]" on-click="onClickSubmit" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-button" data="[[upsellButtonRenderer]]" hidden="[[!selectedUpsellQuality]]" on-click="onClickUpsell" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return fWc=a},{mode:1});var hWc;var iWc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.w("web_darker_dark_theme");return a};
_.z(iWc,_.P);iWc.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
iWc.prototype.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
var f4=iWc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],f4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],f4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],f4.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],f4.prototype,"darkerDarkTheme",void 0);_.U([_.O({computed:"computeIcon_(data.infoIcon)"}),_.W("design:type",Object)],f4.prototype,"infoIcon",void 0);
_.U([_.O({computed:"computeIcon_(data.warningIcon)"}),_.W("design:type",Object)],f4.prototype,"warningIcon",void 0);f4=_.U([_.Q({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],f4);
_.S(f4,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(hWc!==void 0)return hWc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="source" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="source-title" text="[[data.sourceTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-subtitle" text="[[data.sourceSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-account-name" text="[[data.sourceAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="source-account-email" text="[[data.sourceAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="target" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="target-title" text="[[data.targetTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="target-subtitle" text="[[data.targetSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="target-account" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-img-shadow hidden="[[!data.sourceAccountThumbnail]]" thumbnail="[[data.sourceAccountThumbnail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-img-shadow>\n        <div id="target-account-info" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="target-account-name" text="[[data.targetAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="target-account-email" text="[[data.targetAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="sournce-channel-details" text="[[data.sourceChannelDetails]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="info-warning" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <div id="info-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="info-title-text" text="[[data.infoTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="warning-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!warningIcon]]" hidden="[[!warningIcon]]" icon="[[warningIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="warning-title-text" text="[[data.warningTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="warning-text" split-lines="" text="[[data.warningText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="next-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return hWc=a},{mode:1});var jWc;var kWc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.w("web_darker_dark_theme");return a};
_.z(kWc,_.P);kWc.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
kWc.prototype.configureRendererStamper=function(){return{"data.stepper":{id:"stepper",mapping:{channelTransferStepperRenderer:"ytd-channel-transfer-stepper-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.signinButton":{id:"signin-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
var g4=kWc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],g4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],g4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],g4.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],g4.prototype,"darkerDarkTheme",void 0);g4=_.U([_.Q({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],g4);
_.S(g4,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(jWc!==void 0)return jWc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-overview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="stepper" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-cross-account-transfer-channel-overview-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <div id="signin-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return jWc=a},{mode:1});var lWc;var mWc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.w("web_darker_dark_theme");return a};
_.z(mWc,_.P);mWc.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
mWc.prototype.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
mWc.prototype.onServiceRequestSentOrCompleted=function(a,b){b&&b.actions&&b.actions.length>0&&_.lo(this.hostElement,"yt-close-popup-action",[this.is])};
var h4=mWc;h4.prototype.onServiceRequestSentOrCompleted=h4.prototype.onServiceRequestSentOrCompleted;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],h4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],h4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],h4.prototype,"darkerDarkTheme",void 0);_.U([_.O(),_.W("design:type",Object)],h4.prototype,"data",void 0);
_.U([_.M("yt-service-request-completed"),_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Vt]),_.W("design:returntype")],h4.prototype,"onServiceRequestSentOrCompleted",null);h4=_.U([_.Q({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],h4);
_.S(h4,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(lWc!==void 0)return lWc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-tnc-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="agree-title" text="[[data.agreeTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="agree-text" split-lines="" text="[[data.agreeText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-title" text="[[data.understandTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-text" split-lines="" text="[[data.understandText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n    <div id="confirm-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return lWc=a},{mode:1});var nWc;var oWc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.w("web_darker_dark_theme");a.submitButtonDisabled=!0;return a};
_.z(oWc,_.P);_.f=oWc.prototype;_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.f.onDataChanged=function(){var a,b,c;if(((a=this.data)==null?void 0:(b=a.confirmButton)==null?void 0:(c=b.buttonRenderer)==null?void 0:c.isDisabled)!==void 0){var d,e,g;this.submitButtonDisabled=(d=this.data)==null?void 0:(e=d.confirmButton)==null?void 0:(g=e.buttonRenderer)==null?void 0:g.isDisabled}};
_.f.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.f.updateSubmitButtonDisabledFromBinding=function(a){this.submitButtonDisabled=a.detail.value};
_.f.updateSubmitButtonDisabledFromConfirmCheckbox=function(a){this.submitButtonDisabled=!a.detail.value};
var i4=oWc;i4.prototype.onDataChanged=i4.prototype.onDataChanged;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],i4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],i4.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],i4.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],i4.prototype,"darkerDarkTheme",void 0);
_.U([_.O(),_.W("design:type",Object)],i4.prototype,"submitButtonDisabled",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i4.prototype,"onDataChanged",null);i4=_.U([_.Q({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],i4);
_.S(i4,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(nWc!==void 0)return nWc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <div id="sections" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="messages" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-transfer-channel-confirm-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n    <div id="confirm" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-if" if="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <tp-yt-paper-checkbox id="confirm-checkbox" checked="[[!submitButtonDisabled]]" on-checked-changed="updateSubmitButtonDisabledFromConfirmCheckbox" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="confirm-text" text="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n        </tp-yt-paper-checkbox>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" on-disabled-changed="updateSubmitButtonDisabledFromBinding" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return nWc=a},{mode:1});var pWc;var qWc=function(){return _.P.apply(this,arguments)||this};
_.z(qWc,_.P);_.Um.Object.defineProperties(qWc.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.data)==null?void 0:a.title)+" "+((b=this.data)==null?void 0:b.metadataPrimary)+" "+((c=this.data)==null?void 0:c.metadataSecondary)}}});
var j4=qWc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],j4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],j4.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],j4.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],j4.prototype,"ariaLabel",null);j4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],j4);
_.S(j4,"ytd-compact-product-list-item-renderer",function(){if(pWc!==void 0)return pWc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-compact-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" aria-label$="[[ariaLabel]]">\n  <div class="compact-product-list-item style-scope ytd-compact-product-list-item-renderer">\n    <yt-img-shadow class="item-image style-scope ytd-compact-product-list-item-renderer" height="40" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="40"></yt-img-shadow>\n    <div class="column style-scope ytd-compact-product-list-item-renderer">\n      <template is="dom-if" if="[[data.title]]" class="style-scope ytd-compact-product-list-item-renderer">\n        <div class="row title style-scope ytd-compact-product-list-item-renderer">[[data.title]]</div>\n      </template>\n      <div class="row metadata style-scope ytd-compact-product-list-item-renderer">\n        <template is="dom-if" if="[[data.metadataPrimary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataPrimary]]</span>\n        </template>\n        <template is="dom-if" if="[[data.metadataSecondary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataSecondary]]</span>\n          <yt-icon class="open-in-new style-scope ytd-compact-product-list-item-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </template>\n      </div>\n    </div>\n  </div>\n</a>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return pWc=a},{mode:1});var rWc;var sWc=function(){return _.P.apply(this,arguments)||this};
_.z(sWc,_.P);sWc.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactProductListItemRenderer:"ytd-compact-product-list-item-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.Um.Object.defineProperties(sWc.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
var k4=sWc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],k4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],k4.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],k4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],k4.prototype,"data",void 0);k4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],k4);
_.S(k4,"ytd-compact-product-list-renderer",function(){if(rWc!==void 0)return rWc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-compact-product-list-renderer">\n  <div id="title" class="style-scope ytd-compact-product-list-renderer">[[data.title]]</div>\n  <div id="items" class="style-scope ytd-compact-product-list-renderer"></div>\n  <div id="action-button" class="style-scope ytd-compact-product-list-renderer"></div>\n</div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return rWc=a},{mode:1});var tWc;var uWc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.w("web_darker_dark_theme");return a};
_.z(uWc,_.P);_.f=uWc.prototype;_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.f.getBackgroundUrl=function(){var a=this.get("data.headerImage.thumbnails");return a?"url("+_.Us(a,this.hostElement.clientWidth)+")":""};
_.f.onDataChanged=function(){var a=this.getBackgroundUrl();a&&(this.header.style.backgroundImage=a);a=_.En();var b=_.Dn(),c=this.get("data.trackingParams");c&&b&&a&&_.To(a,b,_.ps(c));a=_.h(this.hostElement.querySelectorAll("yt-img-shadow"));for(b=a.next();!b.done;b=a.next())b.value.onShow()};
_.f.onPopupClosed=function(a){_.Sq(a).localName==="ytd-membership-post-cancel-renderer"&&_.lo(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
var l4=uWc;l4.prototype.onPopupClosed=l4.prototype.onPopupClosed;l4.prototype.onDataChanged=l4.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],l4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],l4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],l4.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],l4.prototype,"darkerDarkTheme",void 0);
_.U([_.ir("#header"),_.W("design:type",HTMLDivElement)],l4.prototype,"header",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],l4.prototype,"onDataChanged",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],l4.prototype,"onPopupClosed",null);l4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],l4);
_.S(l4,"ytd-membership-post-cancel-renderer",function(){if(tWc!==void 0)return tWc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-membership-post-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-membership-post-cancel-renderer">\n  <div class="avatar-support style-scope ytd-membership-post-cancel-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.viewerThumbnail]]"></yt-img-shadow>\n    <yt-icon class="membership-icon style-scope ytd-membership-post-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.channelThumbnail]]"></yt-img-shadow>\n  </div>\n</div>\n\n<yt-formatted-string class="header-title style-scope ytd-membership-post-cancel-renderer" text="[[data.header]]"></yt-formatted-string>\n\n<div class="messages style-scope ytd-membership-post-cancel-renderer">\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-membership-post-cancel-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-membership-post-cancel-renderer"></yt-formatted-string>\n  </template>\n</div>\n\n<div class="footer style-scope ytd-membership-post-cancel-renderer">\n  <div id="okay-button" class="style-scope ytd-membership-post-cancel-renderer"></div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return tWc=a},{mode:1});var vWc;var wWc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.w("web_darker_dark_theme");return a};
_.z(wWc,_.P);wWc.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
wWc.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
var m4=wWc;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],m4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],m4.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],m4.prototype,"darkerDarkTheme",void 0);_.U([_.ir("ytd-feedback-survey-renderer"),_.W("design:type",Object)],m4.prototype,"feedbackSurveyRenderer",void 0);m4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],m4);
_.S(m4,"ytd-sponsorship-confirm-cancel-content",function(){if(vWc!==void 0)return vWc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="description" class="style-scope ytd-sponsorship-confirm-cancel-content">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-sponsorship-confirm-cancel-content"></yt-formatted-string>\n</div>\n<div id="feedback-survey" class="style-scope ytd-sponsorship-confirm-cancel-content"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return vWc=a},{mode:1});var xWc;var yWc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.w("web_darker_dark_theme");a.maybeSubmitFeedback=function(){a.content&&a.content.maybeSubmitFeedback()};
return a};
_.z(yWc,_.P);_.f=yWc.prototype;_.f.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.f.onYtPopupOpened=function(a,b){b===this&&this.data&&this.data.onOpenCommands&&_.po(this.hostElement,this.data.onOpenCommands,this.hostElement);_.lo(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.f.onYtPopupClosed=function(a,b){(b&&b.canceled===!0||b&&b.canceled===!1&&b.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.po(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.f.onYtServiceRequestCompleted=function(){_.lo(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.f.onYtServiceRequestError=function(a){_.OW(this.hostElement,a.detail.error.message)};
_.f.onDataChanged=function(){if(this.isAttached){var a=this.backgroundUrl;a&&(_.E(this.hostElement).querySelector("#header").style.backgroundImage=a)}};
_.Um.Object.defineProperties(yWc.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var a=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return a?"url("+_.Us(a,this.hostElement.clientWidth)+")":""}}});
var n4=yWc;n4.prototype.onDataChanged=n4.prototype.onDataChanged;n4.prototype.onYtServiceRequestError=n4.prototype.onYtServiceRequestError;n4.prototype.onYtServiceRequestCompleted=n4.prototype.onYtServiceRequestCompleted;n4.prototype.onYtPopupClosed=n4.prototype.onYtPopupClosed;n4.prototype.onYtPopupOpened=n4.prototype.onYtPopupOpened;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],n4.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],n4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],n4.prototype,"data",void 0);_.U([_.O({value:function(){return _.vo("SBOX_INAPPROPRIATE_CANCEL")}}),
_.W("design:type",String)],n4.prototype,"closeButtonAriaLabel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],n4.prototype,"darkerDarkTheme",void 0);_.U([_.ir("#scrollable"),_.W("design:type",Object)],n4.prototype,"scrollable",void 0);_.U([_.ir("ytd-sponsorship-confirm-cancel-content"),_.W("design:type",Object)],n4.prototype,"content",void 0);
_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],n4.prototype,"onYtPopupOpened",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],n4.prototype,"onYtPopupClosed",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],n4.prototype,"onYtServiceRequestCompleted",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],n4.prototype,"onYtServiceRequestError",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],n4.prototype,"onDataChanged",null);
n4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],n4);
_.S(n4,"ytd-sponsorship-confirm-cancel-renderer",function(){if(xWc!==void 0)return xWc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <tp-yt-paper-icon-button aria-label$="[[closeButtonAriaLabel]]" dialog-dismiss="" icon="yt-icons:dismissal" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></tp-yt-paper-icon-button>\n  </div>\n  <div class="avatar-support style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <template is="dom-if" restamp="" if="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]">\n      </yt-img-shadow>\n      <yt-icon class="membership-icon style-scope ytd-sponsorship-confirm-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    </template>\n    <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.channelThumbnail]]">\n    </yt-img-shadow>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <div id="title" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></yt-formatted-string>\n    </div>\n    <ytd-sponsorship-confirm-cancel-content data="[[data]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    </ytd-sponsorship-confirm-cancel-content>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div class="footer style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="confirm-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return xWc=a},{mode:_.as("kevlar_poly_si_batch_j081")?1:2});var zWc;var AWc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.w("web_darker_dark_theme");return a};
_.z(AWc,_.P);AWc.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
var o4=AWc;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],o4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],o4.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],o4.prototype,"darkerDarkTheme",void 0);o4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],o4);
_.S(o4,"ytd-sponsorships-celebration-content",function(){if(zWc!==void 0)return zWc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-celebration-content"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return zWc=
a},{mode:1});var BWc;var CWc=_.hx(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),DWc=function(){var a=_.P.apply(this,arguments)||this;a.scriptsAppended=!1;a.buttonOverrides={type:"tonal",style:"overlay-dark"};return a};
_.z(DWc,_.P);_.f=DWc.prototype;
_.f.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0},properties:{overrides:"[[buttonOverrides]]"},params:{forceModernIconButton:_.w("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.onDataChanged=function(){var a;(a=this.header)==null||a.style.setProperty("background-color",this.backgroundColor);if(a=this.headerImageUrl){var b;(b=this.header)==null||b.style.setProperty("background-image",a)}b=_.En(4);a=_.Dn(4);var c=this.get("data.trackingParams");if(c&&a&&b){var d=_.ps(c);_.To(b,a,d);_.w("combine_ve_grafts")?_.ls().graftServerVe(c,a,4):_.To(b,a,d)}b=_.h(this.hostElement.querySelectorAll("yt-img-shadow"));for(a=b.next();!a.done;a=b.next())a.value.onShow();if(b=this.get("data.gtmId"))_.BG(b,
_.Fi("GL","")),this.setupConversionTracking()};
_.f.setupConversionTracking=function(){if(!this.scriptsAppended){var a=document.createElement("script");var b=_.Wd(CWc.join(""));_.Yd(a,b);document.head.appendChild(a);a=document.createElement("noscript");a.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TGBSZFB" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(a);this.scriptsAppended=!0}};
_.f.onPopupClosed=function(a){if(_.Sq(a).localName==="ytd-sponsorships-celebration-renderer"){_.lo(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var b;this.data&&((b=this.data)==null?0:b.dismissCommand)&&_.gs.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.Um.Object.defineProperties(DWc.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var a=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.Dq(a)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var a=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return a?"url("+_.Us(a,this.hostElement.getBoundingClientRect().width)+")":""}}});
var p4=DWc;p4.prototype.onPopupClosed=p4.prototype.onPopupClosed;p4.prototype.onDataChanged=p4.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],p4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],p4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],p4.prototype,"data",void 0);_.U([_.ir("#header"),_.W("design:type",HTMLElement)],p4.prototype,"header",void 0);
_.U([_.O(),_.W("design:type",Object)],p4.prototype,"scriptsAppended",void 0);_.U([_.O(),_.W("design:type",Object)],p4.prototype,"buttonOverrides",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],p4.prototype,"onDataChanged",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],p4.prototype,"onPopupClosed",null);
p4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],p4);
_.S(p4,"ytd-sponsorships-celebration-renderer",function(){if(BWc!==void 0)return BWc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return BWc=a},{mode:1});var EWc;var q4=function(){var a=_.P.apply(this,arguments)||this;a.isToggleChecked=!1;return a};
_.z(q4,_.P);q4.prototype.onDataChanged=function(){var a;this.isToggleChecked=((a=this.data)==null?void 0:a.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
q4.prototype.close=function(){var a;((a=this.data)==null?0:a.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
q4.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var a,b=_.y((a=this.data)==null?void 0:a.switchButton,gKc);b&&(this.isToggleChecked&&b.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(b.switchOnInnertubeCommand),!this.isToggleChecked&&b.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(b.switchOffInnertubeCommand))};
q4.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var r4=q4;r4.prototype.onDataChanged=r4.prototype.onDataChanged;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],r4.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],r4.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],r4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],r4.prototype,"isToggleChecked",void 0);
_.U([_.O({value:_.vo("CLOSE")}),_.W("design:type",String)],r4.prototype,"closeButtonAriaLabel",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],r4.prototype,"onDataChanged",null);r4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],r4);
_.S(r4,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(EWc!==void 0)return EWc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-gifting-opt-in-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-icon icon="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="content" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <div id="header" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-img-shadow class="thumbnail style-scope ytd-sponsorships-gifting-opt-in-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n  </div>\n  <div id="optin" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <div id="title" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <yt-formatted-string class="title style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="subtitle style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.subtitle]]">\n      </yt-formatted-string>\n    </div>\n    <div id="toggle" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <ytcp-ve track-click="true" ve-type="[[ve.client.SPONSORSHIPS_GIFTING_OPT_IN_DIALOG_TOGGLE_BUTTON]]" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n        <tp-yt-paper-toggle-button class="toggle style-scope ytd-sponsorships-gifting-opt-in-renderer" checked="[[isToggleChecked]]" on-click="handleOptInToggle">\n        </tp-yt-paper-toggle-button>\n      </ytcp-ve>\n    </div>\n  </div>\n  <div class="separator style-scope ytd-sponsorships-gifting-opt-in-renderer"></div>\n  <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.disclaimer]]">\n  </yt-formatted-string>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return EWc=a},{mode:1});var FWc;var GWc=function(){return _.P.apply(this,arguments)||this};
_.z(GWc,_.P);_.f=GWc.prototype;_.f.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.header.sponsorshipsHeaderRenderer.menuButton":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.detached=function(){this.playerElement.stop()};
_.f.onYtServiceRequestCompleted=function(){_.lo(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.f.onYtServiceRequestError=function(a){_.OW(this.hostElement,a.detail.error.message)};
_.f.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.f.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.f.getTier=function(a,b){return!a||!a.tiers||b<0?null:_.y(a.tiers[b],kKc)};
_.f.moreThanOne=function(a){return!!(a&&a.length>1)};
_.f.tierOverviewTap=function(a){var b=this;this.selectedTier=a.model.index;_.Qm(this,function(){_.io(b.hostElement,"yt-refit")})};
_.f.computeSelectedClass=function(a,b){return this.isSelected(a,b)?"selected":""};
_.f.computeButtonAriaPressed=function(a,b){return this.isSelected(a,b)?"true":"false"};
_.f.isSelected=function(a,b){return a===b};
_.f.onDataChanged=function(){_.E(this.hostElement).querySelector("#header-overlay").style.visibility="";_.E(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition");this.offerVideo=this.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.externalVideoId");this.setHeaderBackground();this.initializeVe(this.offerVideo);this.offerVideo&&this.setupVideoPlayer(this.offerVideo);for(var a=_.h(this.hostElement.querySelectorAll("yt-img-shadow")),
b=a.next();!b.done;b=a.next())b.value.onShow();var c;this.set("selectedTier",(c=this.get("data.targetTierIndex"))!=null?c:0);var d;(a=(d=this.data)==null?void 0:d.onVisible)&&this.ytComponentBehavior.resolveCommand(a)};
_.f.initializeVe=function(a){var b=_.En(),c=_.Dn(),d=this.get("data.trackingParams");c&&b&&(this.screenLayer=4,b=_.Ii(_.fDa)(void 0,69877,{clientScreenNonce:b,visualElement:c},void 0,void 0,void 0),_.iBa(b,69877,4),c=_.Dn(4),d&&c&&(d=_.ps(d),_.To(b,c,d),a&&(this.offerVideoVe=_.ku(74659),_.To(b,d,this.offerVideoVe))))};
_.f.setHeaderBackground=function(){var a=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.E(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.Dq(a);if(a=this.getHeaderImage())a=_.Us(a,screen.width),_.E(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+a+")"};
_.f.getHeaderImage=function(){var a=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&a?a:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.f.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.f.setupVideoPlayer=function(a){var b=this,c,d,e,g;return _.l(function(k){if(k.nextAddress==1)return c=b.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),d=b.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.w("kevlar_player_update_killswitch")?b.playerElement.update({args:{autoplay:c,video_id:a,player_params:d}}):b.playerElement.loadVideoWithPlayerVars({autoplay:c,video_id:a,player_params:d}),
_.p(k,b.playerElement.getPlayerPromise(),2);e=k.yieldResult;e.addEventListener("onStateChange",function(m){b.onPlayerStateChange(m)});
e.setScreenLayer(b.screenLayer);(g=_.En(4))&&b.offerVideoVe&&_.Uo(g,b.offerVideoVe);c&&(b.pauseOtherPlayers(),b.playerElement.focusOnPlayer(),b.playerElement.getPlayer().hideControls(),_.sl(_.zk,function(){b.fadeOutHeaderOverlay()},4E3));
_.ue(k)})};
_.f.onPlayerStateChange=function(a){a===1?this.backgroundPlayerElement&&(a=this.backgroundPlayerElement.player_.getPlayerState(),a!==1&&a!==3||this.backgroundPlayerElement.pause()):a===0&&(_.E(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.E(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.f.fadeOutHeaderOverlay=function(){_.E(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.f.onHeaderTap=function(){if(this.offerVideo){_.E(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var a;((a=this.playerElement.player_)==null?void 0:a.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(a=_.En(4))&&this.offerVideoVe&&_.Xo(a,this.offerVideoVe)}};
_.f.getBackgroundImageLayerClass=function(a){return a?"background-image-layer-with-video":""};
_.f.getHeaderClass=function(a){return a?"header-with-video":""};
_.f.getHeaderOverlayClass=function(a){return a?"header-overlay-with-video":""};
_.f.getTitleContainerClass=function(a,b){return a?"title-container-with-video":b?"title-container-without-video-flexible":"title-container-without-video"};
_.f.tierTitleDisplayStatus=function(a){return this.moreThanOne(a)?"hide":"show"};
_.f.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.v().resolve(_.$w).getPlayerElement():this.backgroundPlayerElement=_.au();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var a=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=a===1||a===3;this.backgroundPlayerElement.pause()}};
_.f.isMiniplayerActive=function(){return _.v().resolve(_.$w).isMiniplayerActive()};
_.f.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.WH("selected-tier-changed",this.selectedTier))};
var s4=GWc;s4.prototype.selectedTierChangedForBinding=s4.prototype.selectedTierChangedForBinding;s4.prototype.onDataChanged=s4.prototype.onDataChanged;s4.prototype.onYtPopupClosed=s4.prototype.onYtPopupClosed;s4.prototype.onYtPopupOpened=s4.prototype.onYtPopupOpened;s4.prototype.onYtServiceRequestError=s4.prototype.onYtServiceRequestError;s4.prototype.onYtServiceRequestCompleted=s4.prototype.onYtServiceRequestCompleted;
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],s4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],s4.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],s4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],s4.prototype,"data",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],s4.prototype,"selectedTier",void 0);
_.U([_.O({value:""}),_.W("design:type",String)],s4.prototype,"offerVideo",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],s4.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.U([_.O({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.$a(this)}}),
_.W("design:type",String)],s4.prototype,"playerId",void 0);_.U([_.ir("tp-yt-paper-dialog-scrollable"),_.W("design:type",Object)],s4.prototype,"scrollable",void 0);_.U([_.ir("ytd-sponsorships-tier-renderer"),_.W("design:type",Object)],s4.prototype,"tierRenderer",void 0);_.U([_.ir("#player"),_.W("design:type",Object)],s4.prototype,"playerElement",void 0);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],s4.prototype,"onYtServiceRequestCompleted",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],s4.prototype,"onYtServiceRequestError",null);_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],s4.prototype,"onYtPopupOpened",null);
_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],s4.prototype,"onYtPopupClosed",null);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],s4.prototype,"onDataChanged",null);_.U([_.N("selectedTier"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],s4.prototype,"selectedTierChangedForBinding",null);
s4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],s4);
_.S(s4,"ytd-sponsorships-offer-renderer",function(){if(FWc!==void 0)return FWc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="titlebar-text" class="style-scope ytd-sponsorships-offer-renderer">\n    <yt-formatted-string text="[[data.header.sponsorshipsHeaderRenderer.titlebarText]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-offer-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="header" class$="[[getHeaderClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n    <div id="header-overlay" on-click="onHeaderTap" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="header-title-overlay" class$="[[getHeaderOverlayClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n        <div id="avatar-container" class="style-scope ytd-sponsorships-offer-renderer">\n          <yt-img-shadow class="avatar style-scope ytd-sponsorships-offer-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n          </yt-img-shadow>\n        </div>\n        <div class$="title-container [[getTitleContainerClass(offerVideo,\n            data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode)]] style-scope ytd-sponsorships-offer-renderer">\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.superTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n      <div id="background-image-layer" class$="[[getBackgroundImageLayerClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer"></div>\n    </div>\n    <div id="video-container" hidden$="[[!offerVideo]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SPONSORSHIPS_OFFER" player-id="[[playerId]]" class="style-scope ytd-sponsorships-offer-renderer">\n      </ytd-player>\n    </div>\n  </div>\n  <div id="alert-renderer" hidden="[[!data.alert]]" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="content" class="style-scope ytd-sponsorships-offer-renderer">\n    <template is="dom-if" if="[[moreThanOne(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="tier-overview" class="style-scope ytd-sponsorships-offer-renderer">\n        <template is="dom-repeat" items="[[data.tiers]]" as="tier" class="style-scope ytd-sponsorships-offer-renderer">\n          <button class$="offer-overview-item [[computeSelectedClass(index, selectedTier)]] style-scope ytd-sponsorships-offer-renderer" aria-pressed="[[computeButtonAriaPressed(index, selectedTier)]]" on-click="tierOverviewTap">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.subtitle]]">\n            </yt-formatted-string>\n          </button>\n        </template>\n      </div>\n    </template>\n    <ytd-sponsorships-tier-renderer id="tier" data="[[getTier(data, selectedTier)]]" titledisplaystatus="[[tierTitleDisplayStatus(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </ytd-sponsorships-tier-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return FWc=a},{mode:_.as("kevlar_poly_si_batch_j077")?1:2});var HWc;var IWc=function(){var a=_.P.apply(this,arguments)||this;a.buttonOverrides={type:"filled",style:"mono"};return a};
_.z(IWc,_.P);IWc.prototype.configureRendererStamper=function(){return{"data.content.sponsorshipsPromotionChannelRenderer.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},properties:{overrides:"[[buttonOverrides]]"}}}},"data.header.sponsorshipsPromotionHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
IWc.prototype.backgroundColorChanged=function(){var a,b,c,d=(b=_.y((a=this.data)==null?void 0:a.content,lKc))==null?void 0:(c=b.backgroundColor)==null?void 0:c.backgroundColor;d&&(a=_.Cq(d),_.E(this.hostElement).querySelector("#banner").style.backgroundColor=a,_.E(this.hostElement).querySelector("#abstract-art").style.backgroundColor=a)};
IWc.prototype.attached=function(){this.JSC$18213_scroller&&(this.JSC$18213_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18213_scroller.attached&&typeof this.JSC$18213_scroller.attached==="function"&&this.JSC$18213_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var t4=IWc;t4.prototype.backgroundColorChanged=t4.prototype.backgroundColorChanged;_.U([_.O(),_.W("design:type",Object)],t4.prototype,"data",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],t4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.ir("#scroller"),_.W("design:type",Object)],t4.prototype,"JSC$18213_scroller",void 0);_.U([_.O(),_.W("design:type",Object)],t4.prototype,"buttonOverrides",void 0);
_.U([_.N("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],t4.prototype,"backgroundColorChanged",null);t4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],t4);
_.S(t4,"ytd-sponsorships-promotion-celebration-renderer",function(){if(HWc!==void 0)return HWc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n   <div id="dismiss-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n   <div id="header" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <yt-img-shadow class="premium-icon style-scope ytd-sponsorships-promotion-celebration-renderer" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.icon]]">\n    </yt-img-shadow>\n    <yt-img-shadow class="illustration style-scope ytd-sponsorships-promotion-celebration-renderer" hidden="[[!data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-sponsorships-promotion-celebration-renderer" text="[[data.header.sponsorshipsPromotionHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-promotion-celebration-renderer" split-lines="" text="[[data.header.sponsorshipsPromotionHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n  <div id="banner" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <div id="content" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="content-background" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow id="abstract-art" fit-height="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.backgroundImage]]" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        </yt-img-shadow>\n      </div>\n      <div id="subcontent" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow class="channel-image style-scope ytd-sponsorships-promotion-celebration-renderer" fit="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.channelImage]]">\n        </yt-img-shadow>\n        <div class="channel-info style-scope ytd-sponsorships-promotion-celebration-renderer">\n          <yt-formatted-string class="channel-info-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.channelTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="membership-detail style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" hidden="[[!data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]" text="[[data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="button-bar" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="primary-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n    </div>\n  </div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return HWc=a},{mode:_.as("kevlar_poly_si_batch_j077")?1:2});var JWc;var KWc;var LWc=function(){return _.P.apply(this,arguments)||this};
_.z(LWc,_.P);LWc.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
LWc.prototype.computeIsInitiallyChecked=function(a){return a===1};
var u4=LWc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],u4.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],u4.prototype,"data",void 0);_.U([_.ir("#checkbox"),_.W("design:type",Object)],u4.prototype,"checkbox",void 0);u4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],u4);
_.S(u4,"ytd-subscription-toggle-option-renderer",function(){if(KWc!==void 0)return KWc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[computeIsInitiallyChecked(data.initialValue)]]" class="style-scope ytd-subscription-toggle-option-renderer">\n  [[getSimpleString(data.label)]]\n</tp-yt-paper-checkbox>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return KWc=a},{mode:1});var v4=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.w("web_darker_dark_theme");a.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return a};
_.z(v4,_.P);v4.prototype.configureRendererStamper=function(){return{"data.secondaryOptions":{id:"secondary-options",mapping:{subscriptionToggleOptionRenderer:"ytd-subscription-toggle-option-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
v4.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
v4.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var a=_.E(this.hostElement).querySelector("#options").selected;a=this.data.options[a].subscriptionRadioOptionRenderer.serviceEndpoint;var b=_.E(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");b&&a&&a.modifyChannelNotificationPreferenceEndpoint&&(b=b.getValue())&&(a.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[b]);_.v().resolve(_.Yi).resolveCommand(a,{form:{element:this.hostElement}});
_.lo(this.hostElement,"yt-close-popup-action")};
_.Um.Object.defineProperties(v4.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var a=this.data.options,b=0;b<a.length;b++){var c=a[b].subscriptionRadioOptionRenderer;if(c&&c.selected)return b}return null}}});
var w4=v4;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],w4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],w4.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],w4.prototype,"eventForwardingBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],w4.prototype,"ytRendererBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],w4.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],w4.prototype,"darkerDarkTheme",void 0);_.U([_.K("data.options"),_.W("design:type",Object),_.W("design:paramtypes",[])],w4.prototype,"initialIndex",null);w4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],w4);
_.S(w4,"ytd-subscription-notification-options-renderer",function(){if(JWc!==void 0)return JWc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-subscription-notification-options-renderer">[[getSimpleString(data.title)]]</div>\n<div id="body" class="style-scope ytd-subscription-notification-options-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[initialIndex]]" class="style-scope ytd-subscription-notification-options-renderer">\n    <template is="dom-repeat" items="[[data.options]]" class="style-scope ytd-subscription-notification-options-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" value="[[item.subscriptionRadioOptionRenderer.serviceEndpoint]]" class="style-scope ytd-subscription-notification-options-renderer">\n        <div class="content style-scope ytd-subscription-notification-options-renderer">\n          <div class="label style-scope ytd-subscription-notification-options-renderer">\n            [[getSimpleString(item.subscriptionRadioOptionRenderer.text)]]\n          </div>\n          <yt-icon icon="[[item.subscriptionRadioOptionRenderer.choiceIcon.iconType]]" class="style-scope ytd-subscription-notification-options-renderer">\n          </yt-icon>\n        </div>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n  <div id="secondary-options" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n<div class="buttons style-scope ytd-subscription-notification-options-renderer">\n  <div id="cancel-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n  <div id="confirm-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return JWc=a},{mode:1});var MWc;var NWc=function(){return _.P.apply(this,arguments)||this};
_.z(NWc,_.P);var OWc=NWc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],OWc.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],OWc.prototype,"data",void 0);OWc=_.U([_.Q({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],OWc);
_.S(OWc,"ytd-tvfilm-offer-groups-renderer",function(){if(MWc!==void 0)return MWc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-groups-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.offerGroups]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n  <div class="offer-group style-scope ytd-tvfilm-offer-groups-renderer">\n    <div class="offer-header style-scope ytd-tvfilm-offer-groups-renderer">\n      <h2 class="offer-title style-scope ytd-tvfilm-offer-groups-renderer">[[getSimpleString(item.offerGroupRenderer.title)]]</h2>\n      <h3 class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <yt-formatted-string class="offer-subtitle standard-text style-scope ytd-tvfilm-offer-groups-renderer" split-lines="" text="[[item.offerGroupRenderer.subtitle]]">\n        </yt-formatted-string>\n      </h3>\n    </div>\n    <div class="offer-list style-scope ytd-tvfilm-offer-groups-renderer">\n      <template is="dom-repeat" items="[[item.offerGroupRenderer.offers]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <ytd-button-renderer class="offer-button style-scope ytd-tvfilm-offer-groups-renderer" data="[[item.buttonRenderer]]" dialog-dismiss="true" ellipsis-truncate="">\n        </ytd-button-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return MWc=a},{mode:1});var PWc;var QWc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.w("web_darker_dark_theme");return a};
_.z(QWc,_.P);_.f=QWc.prototype;_.f.configureRendererStamper=function(){return{"data.offers":{id:"offers",mapping:{tvfilmOffersRenderer:{component:"ytd-tvfilm-offer-groups-renderer"}}},"data.coupon":{id:"coupon",mapping:{ypcCouponRenderer:"ytd-ypc-coupon-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.f.computeThumbnailClass=function(a){return a.thumbnailOverlays?a.isShow?"thumbnail-show":"thumbnail-movie":a.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.f.computeCommerceSectionClass=function(a){return a.offers&&a.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.f.computeTitleClass=function(a){return a.offers&&a.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.f.onDataChanged=function(){[].concat(_.De(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(a){a.onShow()})};
var x4=QWc;x4.prototype.onDataChanged=x4.prototype.onDataChanged;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],x4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],x4.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],x4.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],x4.prototype,"darkerDarkTheme",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],x4.prototype,"onDataChanged",null);x4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],x4);
_.S(x4,"ytd-ypc-offers-overlay-renderer",function(){if(PWc!==void 0)return PWc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offers-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer"></tp-yt-paper-spinner>\n</div>\n<div class="content style-scope ytd-ypc-offers-overlay-renderer" hidden="[[data.showLoadingSpinner]]">\n  <div class="header style-scope ytd-ypc-offers-overlay-renderer" hidden="[[!data.title]]">\n    <div class="metadata style-scope ytd-ypc-offers-overlay-renderer">\n      <div class$="title-badge [[computeTitleClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n    </div>\n    <template is="dom-if" if="[[data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div class="content-dismiss-section style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="thumbnail-commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <div id="thumbnail" class$="[[computeThumbnailClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <yt-img-shadow id="thumbnail-image" fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n        </yt-img-shadow>\n        <div id="overlays" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n      </div>\n      <div id="commerce-metadata-section" class$="[[computeCommerceSectionClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <div id="commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <div id="offers" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n        </div>\n        <div id="badges-metadata-section" hidden="[[!data.badges]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <hr class="metadata-separator-line style-scope ytd-ypc-offers-overlay-renderer">\n          <ytd-badge-supported-renderer class="left-aligned-badges style-scope ytd-ypc-offers-overlay-renderer" badges="[[data.badges]]">\n          </ytd-badge-supported-renderer>\n          <div class="subtitle standard-text style-scope ytd-ypc-offers-overlay-renderer">[[getSimpleString(data.metadata)]]</div>\n        </div>\n      </div>\n    </div>\n    <template is="dom-if" if="[[!data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <yt-formatted-string class="info-section standard-text style-scope ytd-ypc-offers-overlay-renderer" text="[[data.additionalInfo]]">\n  </yt-formatted-string>\n\n  <div class="footer style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="coupon" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n    <ytd-button-renderer id="help-button" data="[[data.helpButton.buttonRenderer]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return PWc=a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var RWc;var SWc=function(){this.usedMethods=new Set};
SWc.prototype.add=function(a){this.usedMethods.add(a)};
SWc.prototype.reset=function(){this.usedMethods.clear()};var VWc=function(a,b){this.query=a;this.previousSearchQuery=b;this.id=TWc++;if(!UWc){b=_.Fi("SBOX_SETTINGS");a="https://"+((b==null?void 0:b.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var c=b==null?void 0:b.REQUEST_LANGUAGE;c&&(a+="&hl="+c);(c=b==null?void 0:b.REQUEST_DOMAIN)&&(a+="&gl="+c);a+="&client=youtube&gs_ri=youtube";(c=b==null?void 0:b.SUGG_EXP_ID)&&(a+="&sugexp="+encodeURIComponent(c));(c=b==null?void 0:b.PSUGGEST_TOKEN)&&(a+="&tok="+c);(b=
b==null?void 0:b.SESSION_INDEX)&&(a+="&authuser="+b);_.w("desktop_enable_visual_suggest")&&(a+="&h=180&w=320&ytvs=1");UWc=a}},WWc=function(a){var b="q="+encodeURIComponent(a.query);
a.previousSearchQuery&&(b+="&pq="+encodeURIComponent(a.previousSearchQuery));return b},XWc=function(){var a=_.Fi("SBOX_SETTINGS"),b={};
if(a==null?0:a.SEND_VISITOR_DATA)b["X-Goog-Visitor-Id"]=a==null?void 0:a.VISITOR_DATA;return b},YWc=function(a){var b=UWc;
b+="&gs_id="+a.id.toString(36);b+="&q="+encodeURIComponent(a.query);b+="&cp="+a.query.length;a.previousSearchQuery&&(b+="&pq="+encodeURIComponent(a.previousSearchQuery));(a=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(b+="&video_id="+a);return b},TWc=0,UWc="";var ZWc=function(a,b){this.text=a;this.bold=b},$Wc=function(a,b,c){this.input=b;
this.index=c;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=a[0];this.type=a[1];this.subtypes=a[2];var d;this.displayText=iyc((d=a[3])==null?void 0:d.b);var e;this.ignoredPrefix=iyc((e=a[3])==null?void 0:e.a);var g,k;this.hasNewVideo=((g=a[3])==null?void 0:(k=g.zam)==null?void 0:k.toString())==="true"?!0:!1;var m;this.visualSuggestUrl=(m=a[3])==null?void 0:m.zai},aXc=function(a){var b=[],c,d=(c=a.displayText)!=null?c:a.text;
if(a.type===33)return b.push(new ZWc(d,!1)),b;if(d.length>=a.input.length&&d.substring(0,a.input.length)===a.input)b.push(new ZWc(a.input,!1)),b.push(new ZWc(d.substring(a.input.length),!0));else{var e=new Set(a.input.split(/\s/)),g=d.split(/\s/);b=g.map(function(k,m){return new ZWc(k.trim()+(m===g.length-1?"":" "),!e.has(k))})}return b};var bXc=function(a){this.rawResponse=["",[],{}];this.suggestions=[];try{var b=JSON.parse(jyc(a));if(typeof b==="object"&&b!==null)this.rawResponse=b;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(d){console.log("Suggest: Failed to parse SuggestResponse!");return}var c=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(d,e){return new $Wc(d,c,e)})};var cXc=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new SWc;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18249_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},dXc,eXc=function(){dXc||(dXc=new cXc);
return dXc};
cXc.prototype.updateSuggestions=function(a){var b=this;this.availableSuggestions.forEach(function(c){b.previousSuggestions[c]=!0});
this.availableSuggestions=a.map(function(c){var d=c.type.toString();c.subtypes.length>0&&(d+="i"+c.subtypes.join("i"),d+="k"+c.suggestionSources.COMPLETE_SERVER.toString());return d})};
var fXc=function(a,b){var c=Date.now();a.firstEditTime<0&&(a.firstEditTime=c);b&&(a.lastQueryBuildTime=c);a.lastEditTime=c};
cXc.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18249_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var gXc=function(a){var b="";a.availableSuggestions.forEach(function(e){delete a.previousSuggestions[e]});
for(var c=_.h(Object.keys(a.previousSuggestions)),d=c.next();!d.done;d=c.next())d=d.value,a.previousSuggestions[d]&&(b+=(b?"j":"")+d);return b},hXc=function(a,b){var c=[];
b&&(c[1]=b.toString());c[0]="youtube";c[7]=Date.now()-a.startTime;c[6]=a.sessionNumber;a.zeroPrefixSuggestionCount>=0&&(c[33]=a.zeroPrefixSuggestionCount);c[13]=a.outOfSyncResponseCount;if(a.availableSuggestions.length>0){for(var d=b="",e=0,g=_.h(a.availableSuggestions),k=g.next();!k.done;k=g.next())k=k.value,k!==d&&(e>1&&(b+="l"+e),b+=(d?"j":"")+k,e=0,d=k),e+=1;e>1&&(b+="l"+e);c[3]=b}c[35]=gXc(a);a.selectedSuggestionIndex>=0&&(c[2]=a.selectedSuggestionIndex);var m;if(b=(m=_.Fi("SBOX_SETTINGS"))==
null?void 0:m.SUGG_EXP_ID)c[19]=a.normalize(b),m=0,a.experimentTriggeredBeforeFinal&&(m|=1),a.experimentTriggeredFinal&&(m|=2),c[20]=m;c[26]=Array.from(a.inputMethodsTracker.usedMethods).join("j");if(a.JSC$18249_totalRoundTripTime>0){c[15]=a.JSC$18249_totalRoundTripTime;c[14]=a.maxRoundTripTime;m=[];for(e=b=0;e<10;e++)d=a.roundTripTimeHistogram[e],d===0?b++:(b>1?m.push(e+"-"+d):b===1?m.push("0j"+d):m.push(d.toString()),b=0);m=m.join("j");c[16]=m}a.zeroPrefixRoundTripTime>0&&(c[36]=a.zeroPrefixRoundTripTime);
a.lastQueryBuildTime>0&&(c[18]=a.lastQueryBuildTime-a.startTime);a.firstEditTime>0&&(c[4]=a.firstEditTime-a.startTime);a.lastEditTime>0&&(c[5]=a.lastEditTime-a.startTime);return c.join(".")};
cXc.prototype.normalize=function(a){return a.replaceAll(".","-")};
var iXc=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var jXc=function(){var a=_.P.apply(this,arguments)||this;a.microphoneSpinnerActive=!1;a.noAnimations=!1;a.boundExitClick=function(){a.onExitButtonClick()};
a.speechOverlayClassName="";a.isLevelAnimating=!1;a.playCloseDialogAudioFeedback=!0;a.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return a};
_.z(jXc,_.P);_.f=jXc.prototype;_.f.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.f.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=LNc()};
_.f.dataChanged=function(){this.logDialog()};
_.f.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var a;(a=this.manager.audioPlayer)!=null&&(a.JSC$17539_audioEnabled=!1)}this.manager.stop();(a=this.manager.audioPlayer)!=null&&(a.JSC$17539_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.f.handleSpeechQueryCompleteAction=function(a){var b=a.navigationAction;b&&(a.trackingParams&&_.ls().graftServerVe(a.trackingParams,this.dialogVe,5),_.io(this.hostElement,"yt-navigate",{endpoint:b,tempData:this.getNavigationParams(b),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.f.onExitButtonClick=function(){this.closeDialog()};
_.f.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var a;if((a=this.manager)!=null){var b;(b=a.audioPlayer)==null||$0(b,"failure");a.setState("microphone-off");a.stop()}}else(a=this.manager)==null||a.start()};
_.f.transcriptionChanged=function(){var a,b;(((a=this.transcription)==null?0:a.low)||((b=this.transcription)==null?0:b.high))&&this.setState("transcribing",this.transcription)};
_.f.stateChanged=function(){this.setState(this.state,this.transcription)};
_.f.logDialog=function(){var a;(a=this.data)!=null&&a.trackingParams&&(a=_.ls(),_.pF(a,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=a.graftServerVe(this.data.trackingParams,void 0,5))};
_.f.getNavigationParams=function(a){var b={};if(_.w("web_yt_searchbox")){var c=eXc();c.inputMethodsTracker.add(6);c=hXc(c,15);b.gs_l=c;var d;b.oq=((d=_.y(a,_.rq))==null?void 0:d.query)||""}else if(a=window.ytvoicesearchloggingparams){if(a=a())b.oq=a.oq,b.gs_l=a.gs_l}else _.Ki(Error("ol"));return b};
_.f.closeDialog=function(){_.lo(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.f.setState=function(a,b){if(this.data){var c=this.data,d={};switch(a){case "listening":d={headerText:c.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:c.microphoneButtonAriaLabel};break;case "timeout":d={headerText:c.promptHeader,microphoneState:"try-again",microphoneLabel:c.promptMicrophoneLabel,microphoneAriaLabel:c.promptMicrophoneLabel};break;case "microphone-off":d={headerText:c.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:c.promptMicrophoneLabel,
microphoneAriaLabel:c.promptMicrophoneLabel};break;case "transcribing":(b==null?0:b.low)||(b==null?0:b.high)?d={transcriptionLow:b==null?void 0:b.low,transcriptionHigh:b==null?void 0:b.high,microphoneState:"speaking",microphoneAriaLabel:c.microphoneButtonAriaLabel}:d={headerText:c.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:c.microphoneButtonAriaLabel};break;case "processing":d={headerText:c.loadingHeader,microphoneState:"processing",microphoneAriaLabel:c.microphoneButtonAriaLabel};
break;case "offline":d={headerText:c.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:c.connectionErrorMicrophoneLabel,microphoneAriaLabel:c.connectionErrorMicrophoneLabel};break;case "permission":d={headerText:c.permissionsHeader,bodyLine1:c.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:c.permissionsSubtext};break;case "permission-denied":d={headerText:c.disabledHeader,bodyLine1:c.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:c.disabledSubtext}}d.className=
a;this.speechOverlayState=d;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.f.setMicrophoneState=function(a){var b=this.isLevelAnimating;this.isLevelAnimating=a==="speaking";!b&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=a==="processing"&&!this.noAnimations};
_.f.setClass=function(a){this.speechOverlayClassName&&_.br(this.hostElement,this.speechOverlayClassName,!1);a&&(this.speechOverlayClassName=a,_.br(this.hostElement,a,!0))};
_.f.runLevelAnimation=function(){var a=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var b=1+Math.random()*.75,c=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+c/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+b+")");_.zk.addJob(function(){a.runLevelAnimation()},3,c)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
var y4=jXc;y4.prototype.stateChanged=y4.prototype.stateChanged;y4.prototype.transcriptionChanged=y4.prototype.transcriptionChanged;y4.prototype.onPopupClosed=y4.prototype.onPopupClosed;y4.prototype.dataChanged=y4.prototype.dataChanged;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],y4.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],y4.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],y4.prototype,"rendererStamperBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],y4.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],y4.prototype,"eventForwardingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],y4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],y4.prototype,"speechOverlayState",void 0);
_.U([_.O(),_.W("design:type",Object)],y4.prototype,"microphoneSpinnerActive",void 0);_.U([_.O({type:_.w("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.W("design:type",Object)],y4.prototype,"noAnimations",void 0);_.U([_.O({selector:function(a){var b;return(b=a.voiceSearch)==null?void 0:b.transcription}}),
_.W("design:type",Object)],y4.prototype,"transcription",void 0);_.U([_.O({selector:function(a){var b;return(b=a.voiceSearch)==null?void 0:b.overlay}}),
_.W("design:type",String)],y4.prototype,"state",void 0);_.U([_.O(),_.W("design:type",Object)],y4.prototype,"boundExitClick",void 0);_.U([_.ir("#microphone-levels"),_.W("design:type",HTMLElement)],y4.prototype,"level",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y4.prototype,"dataChanged",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y4.prototype,"onPopupClosed",null);
_.U([_.mr("transcription"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y4.prototype,"transcriptionChanged",null);_.U([_.mr("state"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y4.prototype,"stateChanged",null);y4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],y4);
_.S(y4,"ytd-voice-search-dialog-renderer",function(){if(RWc!==void 0)return RWc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-voice-search-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-voice-search-dialog-renderer">\n  <div id="header-text" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="prompt" hidden="[[!speechOverlayState.headerText]]" class="style-scope ytd-voice-search-dialog-renderer">\n      [[getSimpleString(speechOverlayState.headerText)]]\n    </div>\n    <div id="transcription-high" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionHigh]]</div>\n    <div id="transcription-low" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionLow]]</div>\n  </div>\n  <div id="exit-button" class="style-scope ytd-voice-search-dialog-renderer"></div>\n</div>\n<div id="body" class="style-scope ytd-voice-search-dialog-renderer">\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine1)]]</div>\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine2)]]</div>\n</div>\n<div id="microphone" state$="[[speechOverlayState.microphoneState]]" class="style-scope ytd-voice-search-dialog-renderer">\n  <tp-yt-paper-spinner-lite active="[[microphoneSpinnerActive]]" class="style-scope ytd-voice-search-dialog-renderer">\n  </tp-yt-paper-spinner-lite>\n  <div id="microphone-container" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="microphone-pulse" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-levels" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-circle" aria-label$="[[getSimpleString(speechOverlayState.microphoneAriaLabel)]]" role="button" tabindex="0" on-tap="onMicrophoneTap" class="style-scope ytd-voice-search-dialog-renderer">\n      <tp-yt-paper-ripple class="style-scope ytd-voice-search-dialog-renderer"></tp-yt-paper-ripple>\n      <yt-icon icon="yt-icons:microphone_on" class="style-scope ytd-voice-search-dialog-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="microphone-label" class="style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.microphoneLabel)]]</div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return RWc=a},{mode:1});var kXc;var lXc=function(){var a=_.P.apply(this,arguments)||this;a.isOverlay=!1;a.hidden=!1;return a};
_.z(lXc,_.P);_.f=lXc.prototype;_.f.onPopupClosed=function(){this.toggleIconState(!1)};
_.f.computeIcon=function(){var a,b,c;return(b=_.y((a=this.data)==null?void 0:a.icon,qKc))==null?void 0:(c=b.icon)==null?void 0:c.iconType};
_.f.computeIconBadgeShape=function(){var a;return{iconBadgeType:"cart",iconBadgeText:(a=this.iconBadgeEntity)==null?void 0:a.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.f.onClick=function(){var a;(a=this.data)!=null&&a.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.f.computeHidden=function(a){return!a};
_.f.toggleIconState=function(a){this.iconButton&&(this.iconButton.pressed=a)};
var z4=lXc;z4.prototype.onPopupClosed=z4.prototype.onPopupClosed;_.U([_.H(_.OI),_.W("design:type",Object)],z4.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],z4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],z4.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],z4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],z4.prototype,"isOverlay",void 0);
_.U([_.O({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.W("design:type",Object)],z4.prototype,"hidden",void 0);_.U([_.O({selectorArgs:["data.iconBadgeEntityKey"],selector:function(a,b){return _.np(a.entities,"iconBadgeEntity",b)}}),
_.W("design:type",Object)],z4.prototype,"iconBadgeEntity",void 0);_.U([_.ir("yt-icon-button"),_.W("design:type",HTMLButtonElement)],z4.prototype,"iconButton",void 0);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],z4.prototype,"onPopupClosed",null);z4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],z4);
_.S(z4,"ytd-icon-badge-topbar-button-renderer",function(){if(kXc!==void 0)return kXc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-icon-badge-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibilityData.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(iconBadgeEntity, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-icon-badge-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return kXc=a},{mode:1});var mXc;var nXc=function(){var a=_.P.apply(this,arguments)||this;a.premiumOptions=[];a.darkerDarkTheme=_.w("web_darker_dark_theme");return a};
_.z(nXc,_.P);nXc.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.Um.Object.defineProperties(nXc.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
var A4=nXc;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],A4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],A4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Array)],A4.prototype,"premiumOptions",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],A4.prototype,"darkerDarkTheme",void 0);_.U([_.K("premiumOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],A4.prototype,"hasPremiumOptions",null);
A4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],A4);
_.S(A4,"ytd-offline-promo-content",function(){if(mXc!==void 0)return mXc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!hasPremiumOptions]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return mXc=a},{mode:1});var oXc;var B4=function(){var a=_.P.apply(this,arguments)||this;a.premiumOptions=[];return a};
_.z(B4,_.P);B4.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var a;this.premiumOptions=hyc((a=this.data)==null?void 0:a.formats)};
B4.prototype.onClickSubmit=function(){_.lo(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var a;(a=_.au())==null||a.pause()};
B4.prototype.attached=function(){this.JSC$18269_scroller&&(this.JSC$18269_scroller.dialogElement=this.hostElement.parentNode)};
_.Um.Object.defineProperties(B4.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
var C4=B4;C4.prototype.dataChanged=C4.prototype.dataChanged;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],C4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],C4.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],C4.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],C4.prototype,"data",void 0);
_.U([_.O({computed:"computeIcon_(data.headersIcon)",value:""}),_.W("design:type",String)],C4.prototype,"headersIcon",void 0);_.U([_.O(),_.W("design:type",Array)],C4.prototype,"premiumOptions",void 0);_.U([_.ir("#scroller"),_.W("design:type",Object)],C4.prototype,"JSC$18269_scroller",void 0);_.U([_.K("headersIcon"),_.W("design:type",Object),_.W("design:paramtypes",[])],C4.prototype,"showIcon",null);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],C4.prototype,"dataChanged",null);C4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],C4);
_.S(C4,"ytd-offline-promo-renderer",function(){if(oXc!==void 0)return oXc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-offline-promo-renderer">\n<div id="container" class="style-scope ytd-offline-promo-renderer">\n<yt-icon id="headers-icon" hidden="[[!showIcon]]" icon="[[headersIcon]]" class="style-scope ytd-offline-promo-renderer"></yt-icon>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-offline-promo-renderer"></yt-formatted-string>\n<ytd-offline-promo-content data="[[data]]" premium-options="[[premiumOptions]]" class="style-scope ytd-offline-promo-renderer">\n</ytd-offline-promo-content>\n<div class="buttons style-scope ytd-offline-promo-renderer">\n  <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onClickSubmit" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n</div>\n</div>\n</tp-yt-paper-dialog-scrollable>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return oXc=a},{mode:1});var pXc;var qXc=function(){var a=_.P.apply(this,arguments)||this;a.playbackPauseInterval=NaN;a.isLoading=!1;a.hasError=!1;a.dialogClass="";a.youtubeLabel=_.vo("LOGO_ALT_LABEL",{},"YouTube Home");a.logoName="yt-logos-ext:yt-logo-updated";a.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return a};
_.z(qXc,_.P);_.f=qXc.prototype;_.f.onDataChange=function(){var a;if(this.showEOMV1Text=!((a=this.data)==null||!a.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.f.attached=function(){this.pausePlayer()};
_.f.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.f.handleLangSelect=function(a){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[a.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.f.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.f.handleSaveConsent=function(a){var b=this;this.showLoadingSpinner();this.showLoadingSpinner();Tsc(_.y(a,oJc)).catch(function(c){_.Dl(new _.qj("Something went wrong when save consent "+(c.message?c.message:c)+"."));b.hideLoadingSpinner();b.showErrorMessage()})};
_.f.handleDisablePersonalization=function(a){var b=this;this.showLoadingSpinner();Usc(_.y(a,nJc)).then(function(){b.dialog.close();b.resumePlayer()}).catch(function(c){_.Dl(new _.qj("Something went wrong when disable personalization "+(c.message?c.message:c)+"."));
b.hideLoadingSpinner();b.showErrorMessage()})};
_.f.showLoadingSpinner=function(){var a=this;this.showSpinnerJobId=_.zk.addLowPriorityJob(function(){a.isLoading=!0},500)};
_.f.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.zk.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.f.showErrorMessage=function(){var a=this;this.hasError=!0;_.zk.addLowPriorityJob(function(){a.hasError=!1},2E3)};
_.f.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.ej(function(){try{var a=_.au();a&&a.pause()}catch(b){}},100))};
_.f.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var a=_.au();a&&a.play()}catch(b){}};
_.Um.Object.defineProperties(qXc.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.eomV1Text)return[];a=[];for(var b=["SHIELD","WARNING","BAR_CHART"],c=this.data.eomV1Text.essentialCookieMsg.items,d=0;d<b.length&&d<c.length;d++)a.push({icon:b[d],text:c[d]});return a}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.eomV1Text)return[];a=[];for(var b=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],c=this.data.eomV1Text.nonEssentialCookieMsg.items,d=0;d<b.length&&d<c.length;d++)a.push({icon:b[d],text:c[d]});return a}}});
var D4=qXc;D4.prototype.onDataChange=D4.prototype.onDataChange;_.U([_.O(),_.W("design:type",Object)],D4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],D4.prototype,"showEOMV1Text",void 0);_.U([_.O(),_.W("design:type",Object)],D4.prototype,"isLoading",void 0);_.U([_.O(),_.W("design:type",Object)],D4.prototype,"hasError",void 0);_.U([_.O(),_.W("design:type",Number)],D4.prototype,"showSpinnerJobId",void 0);_.U([_.O(),_.W("design:type",Object)],D4.prototype,"dialogClass",void 0);
_.U([_.ir("#dialog"),_.W("design:type",Object)],D4.prototype,"dialog",void 0);_.U([_.ir("#cb-header"),_.W("design:type",HTMLElement)],D4.prototype,"header",void 0);_.U([_.ir("#lang-select"),_.W("design:type",HTMLElement)],D4.prototype,"langSelect",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],D4.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],D4.prototype,"ytComponentBehavior",void 0);
_.U([_.O(),_.W("design:type",String)],D4.prototype,"youtubeLabel",void 0);_.U([_.O(),_.W("design:type",Object)],D4.prototype,"logoName",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D4.prototype,"onDataChange",null);_.U([_.K("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],D4.prototype,"eomEssentialCookieMsgItems",null);
_.U([_.K("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],D4.prototype,"eomNonEssentialCookieMsgItems",null);D4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],D4);
_.S(D4,"ytd-consent-bump-v2-lightbox",function(){if(pXc!==void 0)return pXc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-lightbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog id="dialog" class$="[[dialogClass]] style-scope ytd-consent-bump-v2-lightbox" aria-labelledby="cb-header" modal="">\n  <div class="loading-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!isLoading]]">\n    <div class="style-scope ytd-consent-bump-v2-lightbox">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-consent-bump-v2-lightbox"></tp-yt-paper-spinner-lite>\n    </div>\n    <yt-formatted-string class="loading-message style-scope ytd-consent-bump-v2-lightbox" text="[[data.loadingMessage]]">\n    </yt-formatted-string>\n  </div>\n  <div class="error-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!hasError]]">\n    <div class="error-message style-scope ytd-consent-bump-v2-lightbox">\n      <yt-formatted-string text="[[data.errorMessage]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="topbar" class="style-scope ytd-consent-bump-v2-lightbox">\n    <div id="logoandaside" class="style-scope ytd-consent-bump-v2-lightbox">\n      <div id="icon-container" class="style-scope ytd-consent-bump-v2-lightbox">\n        <yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-consent-bump-v2-lightbox">\n        </yt-icon>\n      </div>\n      <yt-formatted-string class="logo-aside style-scope ytd-consent-bump-v2-lightbox" text="[[data.interstitialLogoAside]]"></yt-formatted-string>\n    </div>\n    <div class="top-buttons style-scope ytd-consent-bump-v2-lightbox">\n      <div class="lang-picker-container style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <ytd-button-renderer data="[[data.languagePickerButton.buttonRenderer]]" on-click="showLangPicker" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n        </div>\n        <div id="lang-select" class="style-scope ytd-consent-bump-v2-lightbox">\n          <select size="20" on-change="handleLangSelect" class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[data.languageList.dropdownRenderer.entries]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <template is="dom-if" if="[[item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option selected="" class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n              <template is="dom-if" if="[[!item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n            </template>\n          </select>\n        </div>\n      </div>\n\n      <div class="style-scope ytd-consent-bump-v2-lightbox">\n        <ytd-button-renderer class="signin style-scope ytd-consent-bump-v2-lightbox" data="[[data.signInButton.buttonRenderer]]"></ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="content" class="style-scope ytd-consent-bump-v2-lightbox">\n    <template is="dom-if" if="[[showEOMV1Text]]" restamp="" class="style-scope ytd-consent-bump-v2-lightbox">\n      <h2 tabindex="-1" id="cb-header" class="eom-title style-scope ytd-consent-bump-v2-lightbox">\n        <yt-formatted-string text="[[data.interstitialTitle]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n      </h2>\n      <div class="ica-claimer style-scope ytd-consent-bump-v2-lightbox" hidden="[[!data.icaClaimer]]">\n        <yt-formatted-string text="[[data.icaClaimer]]" class="style-scope ytd-consent-bump-v2-lightbox"> </yt-formatted-string>\n      </div>\n      <div class="body style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.essentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox">\n            </yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.nonEssentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomNonEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.ifReject]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.personalization]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.moreOptions]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="eom-buttons style-scope ytd-consent-bump-v2-lightbox">\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.disableP13nButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n            <ytd-button-renderer data="[[data.agreeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.customizeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n        </div>\n        <div class="termlinks style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" sec="" text="[[data.privacyLink]]"></yt-formatted-string>\n          \n          \n          <span class="term_separator style-scope ytd-consent-bump-v2-lightbox" aria-hidden="true">\u2022</span>\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" text="[[data.termsLink]]"></yt-formatted-string>\n        </div>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return pXc=a},{mode:1});var rXc;var sXc=function(){return _.P.apply(this,arguments)||this};
_.z(sXc,_.P);sXc.prototype.ready=function(){if(!_.nj()||uCc)var a=!0;else uCc=!0,a=!1;a||(a=document.querySelector("ytd-app"),a||(a=document.body),this.internalLightBox=_.E(a).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
var tXc=sXc;_.U([_.O(),_.W("design:type",Object)],tXc.prototype,"data",void 0);_.U([_.ir("#lightbox"),_.W("design:type",Object)],tXc.prototype,"lightBox",void 0);tXc=_.U([_.Q({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],tXc);
_.S(tXc,"ytd-consent-bump-v2-renderer",function(){if(rXc!==void 0)return rXc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-consent-bump-v2-lightbox id="lightbox" data="[[data]]" class="style-scope ytd-consent-bump-v2-renderer"></ytd-consent-bump-v2-lightbox>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return rXc=a},{mode:1});var uXc;var vXc;var wXc;var xXc=function(){var a=_.P.apply(this,arguments)||this;a.ephemeralActionsEnabled=_.w("web_ephemeral_actions");return a};
_.z(xXc,_.P);_.f=xXc.prototype;_.f.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&JBc(this.toastManager,this.toastType)};
_.f.open=function(a){this.toast&&(this.ephemeralAction&&_.v().resolve(_.uW).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=a!=null?a:0,this.toastManager.enqueue(this.toast,a)):this.toast.open())};
_.f.close=function(a){var b;(b=this.toast)==null||b.close();this.toastManager&&a===1&&JBc(this.toastManager,a)};
_.f.refit=function(){var a;(a=this.toast)==null||a.refit()};
_.f.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var a;(a=this.toast)==null||a.close()}};
_.f.setVerticalOffset=function(a){this.toast&&(this.toast.verticalOffset=a,this.toast.fit())};
_.f.computeButtonClass_=function(a){return a?"toast-button":""};
_.f.computeText_=function(a){return _.Wp(a)};
_.f.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.WH("toast-opened-changed",this.toastOpened))};
_.f.updateToastOpenedFromBinding=function(a){this.toastOpened=a.detail.value};
_.Um.Object.defineProperties(xXc.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.data)==null?void 0:(b=a.actionButton)==null?void 0:b.buttonRenderer;return(c==null?void 0:c.command)||(c==null?void 0:c.serviceEndpoint)||(c==null?void 0:c.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.ephemeralActionsEnabled&&this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var a=[],b;((b=this.data)==null?0:b.responseText)&&a.push(_.Wp(this.data.responseText));var c;((c=this.data)==null?0:c.subText)&&a.push(_.Wp(this.data.subText));var d,e;if((d=this.data)==null?0:(e=d.actionButton)==null?0:e.buttonRenderer){var g,k;a.push(((g=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(k=g.accessibilityData)==null?void 0:k.label)||_.Wp(this.data.actionButton.buttonRenderer.text))}return a.filter(function(m){return m}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.toast)==null?void 0:a.opened)!=null?b:!1}}});
var E4=xXc;E4.prototype.toastOpenedChangedForBinding=E4.prototype.toastOpenedChangedForBinding;E4.prototype.toastOpenedChanged=E4.prototype.toastOpenedChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],E4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],E4.prototype,"ytEventForwardingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],E4.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],E4.prototype,"duration",void 0);_.U([_.O(),_.W("design:type",Number)],E4.prototype,"toastType",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],E4.prototype,"useCloseButton",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],E4.prototype,"closeToastOnActionButtonClick",void 0);_.U([_.O({value:function(){return _.vo("SBOX_INAPPROPRIATE_CANCEL")}}),
_.W("design:type",String)],E4.prototype,"closeButtonAriaLabel",void 0);_.U([_.O(),_.W("design:type",Boolean)],E4.prototype,"toastOpened",void 0);_.U([_.O(),_.W("design:type",Boolean)],E4.prototype,"hasOpened",void 0);_.U([_.O(),_.W("design:type",Object)],E4.prototype,"ephemeralActionsEnabled",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],E4.prototype,"command",null);
_.U([_.K("ephemeralActionsEnabled","labelText","command","duration"),_.W("design:type",Object),_.W("design:paramtypes",[])],E4.prototype,"ephemeralAction",null);_.U([_.K("ephemeralAction"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E4.prototype,"hasEphemeralAction",null);_.U([_.ir("#toast"),_.W("design:type",Object)],E4.prototype,"toast",void 0);_.U([_.O({value:function(){return{style:"call-to-action-inverse"}}}),
_.W("design:type",Object)],E4.prototype,"buttonOverrides",void 0);_.U([_.O({value:{style:"mono-inverse"}}),_.W("design:type",Object)],E4.prototype,"closeButtonOverrides",void 0);_.U([_.O({value:function(){return _.v().resolve(_.Xi(_.Jhc))}}),
_.W("design:type",Object)],E4.prototype,"toastManager",void 0);_.U([_.K("data.responseText","data.subText","data.actionButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],E4.prototype,"labelText",null);_.U([_.N("toastOpened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E4.prototype,"toastOpenedChanged",null);
_.U([_.N("toastOpened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E4.prototype,"toastOpenedChangedForBinding",null);E4=_.U([_.wr({is:"yt-notification-action-renderer",disableElementRegistration:!0})],E4);
_.S(E4,"yt-notification-action-renderer",function(){if(wXc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-notification-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_notification_action_renderer.yt.notification.action.renderer.css.js--\x3e\n<tp-yt-paper-toast id="toast" class$="[[computeButtonClass_(data.actionButton.buttonRenderer)]] style-scope yt-notification-action-renderer" allow-click-through="" announce-label-updates="" aria-label="toast" duration="[[duration]]" label="[[labelText]]" no-iron-announce="[[hasEphemeralAction]]" opened="[[toastOpened]]" role="region" on-opened-changed="updateToastOpenedFromBinding">\n  <div id="text-container" class="style-scope yt-notification-action-renderer">\n    <yt-formatted-string id="text" respect-html-dir="" split-lines="" text="[[data.responseText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="sub-text" hidden="[[!data.subText]]" respect-html-dir="" split-lines="" text="[[data.subText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.actionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" on-tap="tapClose" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="close-action-button" data="[[data.closeActionButton.buttonRenderer]]" overrides="[[closeButtonOverrides]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-icon-button id="close-button" hidden="[[!useCloseButton]]" label="[[closeButtonAriaLabel]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-notification-action-renderer"></yt-icon>\n    </yt-icon-button>\n  </template>\n  <slot class="style-scope yt-notification-action-renderer"></slot>\n</tp-yt-paper-toast>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;vXc===void 0&&(vXc=document.createElement("template"));var d=vXc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);wXc=a}a=wXc;return a},{mode:2});var yXc=function(){var a=_.P.apply(this,arguments)||this;a.duration=4E3;a.downloadingCount=0;a.downloadedCount=0;a.downloadingOnlySmartDownloads=!1;a.sessionTotalDownloads=0;a.sessionDownloaded=0;a.previousSessionsDownloaded=0;a.totalDownloadPercentage=0;a.currentDownloadProgress=0;a.currentDownloadPercentage=0;a.isLeaderTab=!0;a.isFullScreen=!1;a.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};a.boundBeforeUnload=function(b){a.isLeaderTab&&a.downloadingCount>0&&(b.preventDefault(),
b.returnValue=!0)};
return a};
_.z(yXc,_.P);_.f=yXc.prototype;
_.f.open=function(){this.updateDownloadState();if(this.data){var a=this.sessionDownloaded+1,b=this.sessionTotalDownloads>1?_.vo("VIDEOS_DOWNLOADING_RATIO",{downloaded:a.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+a+"/"+this.sessionTotalDownloads):_.vo("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(b=this.sessionTotalDownloads>1?_.vo("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:a.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
a+"/"+this.sessionTotalDownloads):_.vo("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));a=this.isLeaderTab?_.vo("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.Wp(this.data.responseText)!==b||_.Wp(this.data.subText)!==a)this.set("data.responseText",_.Vp(b)),this.set("data.subText",_.Vp(a)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.f.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.f.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.f.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.f.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var a=this.downloadedCount-this.previousSessionsDownloaded;a<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-a);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.f.handleFullscreenChange=function(a){(this.isFullScreen=a)||this.updatePopup()};
var F4=yXc;F4.prototype.updateCurrentDownloadProgress=F4.prototype.updateCurrentDownloadProgress;F4.prototype.updatePopup=F4.prototype.updatePopup;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],F4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],F4.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],F4.prototype,"ytEventForwardingBehavior",void 0);
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],F4.prototype,"actionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],F4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],F4.prototype,"duration",void 0);_.U([_.O({selector:function(a){return _.GEa(a.entities).length}}),
_.W("design:type",Object)],F4.prototype,"downloadingCount",void 0);_.U([_.O({selector:ctc}),_.W("design:type",Object)],F4.prototype,"downloadedCount",void 0);_.U([_.O({selector:function(a){var b=_.GEa(a.entities);return btc(a.entities,b)}}),
_.W("design:type",Object)],F4.prototype,"downloadingOnlySmartDownloads",void 0);_.U([_.O(),_.W("design:type",Object)],F4.prototype,"sessionTotalDownloads",void 0);_.U([_.O(),_.W("design:type",Object)],F4.prototype,"sessionDownloaded",void 0);_.U([_.O(),_.W("design:type",Object)],F4.prototype,"previousSessionsDownloaded",void 0);_.U([_.O(),_.W("design:type",Object)],F4.prototype,"totalDownloadPercentage",void 0);
_.U([_.O({selector:function(a){var b;a=(b=_.GEa(a.entities))!=null?b:[];return a.length>0?_.uEa(a.slice(-1)):0}}),
_.W("design:type",Object)],F4.prototype,"currentDownloadProgress",void 0);_.U([_.O(),_.W("design:type",Object)],F4.prototype,"currentDownloadPercentage",void 0);_.U([_.O({selector:_.JFa}),_.W("design:type",Object)],F4.prototype,"isLeaderTab",void 0);_.U([_.ir("yt-notification-action-renderer"),_.W("design:type",Object)],F4.prototype,"notificationActionRenderer",void 0);
_.U([_.mr("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F4.prototype,"updatePopup",null);_.U([_.mr("currentDownloadProgress"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F4.prototype,"updateCurrentDownloadProgress",null);F4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],F4);
_.S(F4,"ytd-video-download-toast-renderer",function(){if(uXc!==void 0)return uXc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-download-toast-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-notification-action-renderer id="notification" class="is-download style-scope ytd-video-download-toast-renderer" data="[[data]]" duration="[[duration]]" use-close-button=""><tp-yt-paper-progress class="transiting style-scope ytd-video-download-toast-renderer" value="[[currentDownloadPercentage]]"></tp-yt-paper-progress></yt-notification-action-renderer>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return uXc=a},{mode:1});var zXc;var AXc;var BXc=function(){return _.P.apply(this,arguments)||this};
_.z(BXc,_.P);BXc.prototype.computeIsRedLogo=function(a,b){!a&&b&&(a=b);return a==="YOUTUBE_RED_LOGO"||a==="YOUTUBE_PREMIUM_LOGO"};
BXc.prototype.computeLogoName=function(a){a=this.componentBehavior.computeIcon_(a);return a===""?"yt-logos-ext:yt-logo-updated":a};
var G4=BXc;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],G4.prototype,"componentBehavior",void 0);_.U([_.O({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.W("design:type",Boolean)],G4.prototype,"isRedLogo",void 0);_.U([_.O({computed:"computeLogoName(data)"}),_.W("design:type",String)],G4.prototype,"logoName",void 0);_.U([_.O({value:{}}),_.W("design:type",Object)],G4.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],G4.prototype,"logoType",void 0);G4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-logo"})],G4);
_.S(G4,"ytd-logo",function(){if(AXc!==void 0)return AXc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-logo--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-logo">\n</yt-icon>');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return AXc=a},{mode:_.as("kevlar_poly_si_batch_j074")?1:2});var CXc=function(){var a=_.P.apply(this,arguments)||this;a.animationRef={};return a};
_.z(CXc,_.P);_.f=CXc.prototype;_.f.attached=function(){document.addEventListener("yt-navigate-finish",_.gr(this,this.logYoodle))};
_.f.detached=function(){document.removeEventListener("yt-navigate-finish",_.gr(this,this.logYoodle))};
_.f.logYoodle=function(){var a,b;if((a=this.data)==null?0:(b=a.loggingDirectives)==null?0:b.trackingParams)this.ytRendererBehavior.markDirty(),_.ls().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.f.computeHideImg=function(a,b){return!!a||!!b};
_.f.computeHideYtdLogo=function(a,b){return!a||!!b};
_.f.computeHideLottie=function(a){return!a};
_.f.computeIsRedLogo=function(a){return a==="YOUTUBE_RED_LOGO"||a==="YOUTUBE_PREMIUM_LOGO"};
_.f.renderLogoEntity=function(){var a=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),b=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),c=this.getLogoTitleText(this.data),d=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==a&&(this.url=a);this.animatedUrl!==b&&(this.animatedUrl=b);this.logoTitleText!==c&&(this.logoTitleText=c);this.lottieUrl!==d&&(this.lottieUrl=d,this.lottiePlayerProps=this.computeLottiePlayerProps(d))};
_.f.getSanitizedThumbnail=function(a){return a&&a.thumbnails?_.NRa(a.thumbnails,122)||"":""};
_.f.getThumbnailUrl=function(a,b){if(!b)return"";var c,d;a=a?(c=b.darkThemeLogo)==null?void 0:c.thumbnail:(d=b.lightThemeLogo)==null?void 0:d.thumbnail;return this.getSanitizedThumbnail(a)};
_.f.getAnimatedThumbnailUrl=function(a,b){return b?this.getSanitizedThumbnail(a?b.darkThemeAnimatedLogo:b.lightThemeAnimatedLogo):""};
_.f.getLogoTitleText=function(a){if(a)return _.Wp(a.tooltipText)};
_.f.computeLogoIcon=function(a,b){if(b){var c,d;return a?(c=b.darkThemeLogo)==null?void 0:c.icon:(d=b.lightThemeLogo)==null?void 0:d.icon}};
_.f.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.f.getLottieUrl=function(a,b){var c,d,e,g;return a?b==null?void 0:(c=b.darkThemeLogo)==null?void 0:(d=c.lottieAnimation)==null?void 0:d.url:b==null?void 0:(e=b.lightThemeLogo)==null?void 0:(g=e.lottieAnimation)==null?void 0:g.url};
_.f.computeLottiePlayerProps=function(a){if(a){var b;if((b=this.animationRef)==null?0:b.lottieEl){var c;(c=this.animationRef)==null||c.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:a,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.f.onLottieError=function(){this.data&&this.lottieUrl&&_.io(this.hostElement,"yoodle-error")};
_.f.onImgError=function(){this.data&&!this.lottieUrl&&_.io(this.hostElement,"yoodle-error")};
var H4=CXc;H4.prototype.playAnimation=H4.prototype.playAnimation;H4.prototype.renderLogoEntity=H4.prototype.renderLogoEntity;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],H4.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],H4.prototype,"data",void 0);_.U([_.O({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.W("design:type",Boolean)],H4.prototype,"hideImg",void 0);
_.U([_.O({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.W("design:type",Boolean)],H4.prototype,"hideYtdLogo",void 0);_.U([_.O({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.W("design:type",Boolean)],H4.prototype,"hideLottie",void 0);_.U([_.O({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.W("design:type",Boolean)],H4.prototype,"isRedLogo",void 0);
_.U([_.O(),_.W("design:type",Boolean)],H4.prototype,"useDarkThemeYoodle",void 0);_.U([_.O(),_.W("design:type",String)],H4.prototype,"url",void 0);_.U([_.O(),_.W("design:type",String)],H4.prototype,"animatedUrl",void 0);_.U([_.O(),_.W("design:type",String)],H4.prototype,"logoTitleText",void 0);_.U([_.O({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.W("design:type",Object)],H4.prototype,"logoIcon",void 0);_.U([_.O(),_.W("design:type",Object)],H4.prototype,"logoType",void 0);
_.U([_.O(),_.W("design:type",String)],H4.prototype,"lottieUrl",void 0);_.U([_.O(),_.W("design:type",Object)],H4.prototype,"lottiePlayerProps",void 0);_.U([_.O(),_.W("design:type",Object)],H4.prototype,"animationRef",void 0);_.U([_.N("data"),_.N("useDarkThemeYoodle"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],H4.prototype,"renderLogoEntity",null);
_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],H4.prototype,"playAnimation",null);H4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],H4);
_.S(H4,"ytd-yoodle-renderer",function(){if(zXc!==void 0)return zXc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player aria-label="[[logoTitleText]]" class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope ytd-yoodle-renderer">\n</ytd-lottie-player>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return zXc=a},{mode:_.as("kevlar_poly_si_batch_j074")?1:2});var DXc;var EXc;var FXc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return a};
_.z(FXc,_.P);_.f=FXc.prototype;_.f.onYoodleError=function(){_.w("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.f.computeLogoName=function(a){a=this.componentBehavior.computeIcon_(a);return a===""?"yt-logos-ext:yt-logo-updated":a};
_.f.computeTitle=function(a,b,c){return c&&(b==null?0:b.tooltipText)?_.Wp(b.tooltipText):_.Wp(a)};
_.f.computeAriaLabel=function(a,b,c){return c&&(b==null?0:b.tooltipText)?_.Wp(a):""};
_.f.computeShowYoodle=function(a,b,c){return!a||!b&&!!c&&!_.Cf.isEmpty(c)};
_.f.onNavigateHomeAction=function(){if(_.w("kevlar_miniplayer_navigate_home_from_app_killswitch")){var a;(a=_.E(this.hostElement).querySelector(".yt-simple-endpoint"))==null||a.click()}};
_.f.computeLogoHref=function(a,b,c){var d;(c==null?0:c.onTapCommand)?d=this.componentBehavior.computeHref_(c.onTapCommand):a&&(d=this.componentBehavior.computeHref_(a));return d?d:b};
_.f.computeCommand=function(a,b){return(b==null?void 0:b.onTapCommand)||a};
_.f.getEndpointForm=function(){if(_.w("kevlar_topbar_disable_cache_only_home")){var a=_.v().resolve(_.LG),b=iuc(a.getState())||"";a=_.iZa(a.getState())||"";return{disableCache:b==="ytd-browse"&&a==="home"}}return{disableCache:!0}};
var I4=FXc;I4.prototype.onYoodleError=I4.prototype.onYoodleError;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],I4.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],I4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],I4.prototype,"componentBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],I4.prototype,"ytdReduxBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],I4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],I4.prototype,"countryCode",void 0);_.U([_.O({selectorArgs:["data.overrideEntityKey"],selector:function(a,b){return _.np(a.entities,"logoEntity",b)}}),
_.W("design:type",Object)],I4.prototype,"logoEntity",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.W("design:type",Boolean)],I4.prototype,"showYoodle",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],I4.prototype,"yoodleError",void 0);_.U([_.O({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.W("design:type",String)],I4.prototype,"titleText",void 0);
_.U([_.O({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.W("design:type",String)],I4.prototype,"ariaLabelText",void 0);_.U([_.O({value:"/"}),_.W("design:type",String)],I4.prototype,"defaultEndpointUrl",void 0);_.U([_.O({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.W("design:type",String)],I4.prototype,"endpointUrl",void 0);
_.U([_.O({computed:"computeCommand(data.endpoint, logoEntity)"}),_.W("design:type",String)],I4.prototype,"command",void 0);_.U([_.O(),_.W("design:type",Object)],I4.prototype,"logoType",void 0);_.U([_.O({}),_.W("design:type",Boolean)],I4.prototype,"useDarkThemeYoodle",void 0);_.U([_.M("yoodle-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],I4.prototype,"onYoodleError",null);I4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],I4);
_.S(I4,"ytd-topbar-logo-renderer",function(){if(EXc!==void 0)return EXc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-logo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a aria-label="[[ariaLabelText]]" class="yt-simple-endpoint style-scope ytd-topbar-logo-renderer" href$="[[endpointUrl]]" id="logo" data="[[command]]" title="[[titleText]]" get-form="[[getEndpointForm]]">\n  <div hidden="[[showYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n    <ytd-logo data="[[data.iconImage]]" logo-type="[[logoType]]" class="style-scope ytd-topbar-logo-renderer">\n    </ytd-logo>\n  </div>\n  <ytd-yoodle-renderer data="[[logoEntity]]" hidden="[[!showYoodle]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[useDarkThemeYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n  </ytd-yoodle-renderer>\n</a>\n<span hidden="[[showYoodle]]" id="country-code" class="style-scope ytd-topbar-logo-renderer">\n  [[countryCode]]\n</span>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return EXc=a},{mode:_.as("kevlar_poly_si_batch_j027")?1:2});var GXc=0;var HXc=_.dY.SEARCH_APPEND_LABEL,IXc=_.dY.SUGGESTION_NEW_VIDEOS_TEXT,JXc=_.dY.SUGGESTION_THUMBNAIL_LABEL,KXc=_.Rr(function(a){function b(Cb){var ab,Pa;return _.l(function(mb){if(mb.nextAddress==1)return ab=new Request(Cb),_.pe(mb,2),_.p(mb,fetch(ab,{credentials:"include"}),4);if(mb.nextAddress!=2)return yc(!0),_.Jj(mb,0);Pa=_.te(mb);_.Dl(Pa);_.ue(mb)})}
var c=a.isHighlighted;var d=a.suggestion;var e=a.onClickCallback;var g=a.onHoverUpdateCallback;var k=a.labels;var m=a.queryBuilderFunction;var n=a.onRemoveCallback;var r=a.suggestionIndex;var t=a.generateUniqueId;var u=a.highlightedId;var x=a.useScrollMargin;var A=a.isKeyboardMode;var C=null,F=null,J=_.Pl(),I=_.Pl(),R=_.Ql(function(Cb){Cb&&_.Ww(237477,Cb,F,function(ab){F=ab})}),da=_.Ql(function(Cb){Cb&&_.Ww(237477,Cb,F,function(ab){F=ab})}),V=_.lt(function(Cb){if((Cb==null?void 0:Cb.button)===2)return Cb.preventDefault(),
!1;
var ab=_.En();ab&&C&&_.Yo(ab,C,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var Pa;e(Cb,d().text,d().index,Cb==null?void 0:(Pa=Cb.detail)==null?void 0:Pa.wasSelectedByKeyboard);return!1}),fa=function(){return d().type===35},aa=function(){return _.w("desktop_enable_single_suggestion_highlight")},ma=function(){return _.$i("desktop_suggestions_panel_row_height")||0},Ba=function(){var Cb;
return _.w("desktop_enable_new_video_metadata")&&((Cb=d())==null?void 0:Cb.hasNewVideo)===!0},Ca=function(){return _.w("desktop_enable_visual_suggest")},ya=function(){return aa()?(c==null?void 0:c())||Db()&&!(A==null?0:A()):(c==null?void 0:c())||Db()},Ia=function(){var Cb=_.Fi("SBOX_SETTINGS");
return fa()&&!(Cb==null?0:Cb.HIDE_REMOVE_LINK)},db=function(){return aXc(d())},lb,Ua=!((lb=_.v().resolve(_.Xi(_.Ks)))==null||!lb()),Vb=function(){return fa()?"ARROW_TIME":"SEARCH"},rb=function(){return k==null?void 0:k().SUGGESTION_DISMISS_LABEL},sb=function(){return k==null?void 0:k().SUGGESTION_DISMISSED_LABEL};
lb=_.h(_.ih(!1,void 0,"l3epFd"));a=lb.next().value;var yc=lb.next().value;lb=_.h(_.ih(!1,void 0,"IdYnHc"));var Mb=lb.next().value,ub=lb.next().value,Db=Mb,Wc=_.lt(function(){m(I.value.innerText);return!1}),Mc=_.lt(function(Cb){Cb.preventDefault();
return!1}),ia=_.lt(function(Cb){var ab=d().text,Pa=_.Fi("SBOX_SETTINGS"),mb="https://"+(Pa.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
mb+="&delq="+encodeURIComponent(ab);(ab=Pa==null?void 0:Pa.PSUGGEST_TOKEN)&&(mb+="&tok="+ab);(Pa=Pa==null?void 0:Pa.SESSION_INDEX)&&(mb+="&authuser="+Pa);b(mb);Cb.preventDefault();(Cb=_.En())&&F&&_.Yo(Cb,F,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");n(r==null?void 0:r());return!1}),ac=_.lt(function(){if(aa()&&(A==null?0:A()))return!1;
ub(!0);g(!0);return!1}),Qb=_.lt(function(){ub(!1);
g(!1);return!1});
lb=_.h(_.ih("",void 0,"bHTG2e"));var Ac=lb.next().value,qb=lb.next().value;_.pi(function(){Ia()&&qb(t==null?void 0:t(r==null?void 0:r()));J.value&&_.Ww(12453,J.value,C,function(Cb){C=Cb})});
return _.q(_.qi,{cond:a,then:function(){var Cb={};return _.q("div",{class:_.et("ytSuggestionComponentRemovedText",(Cb.ytSuggestionComponentLargerRemovedText=function(){return Ca()},Cb)),
style:function(){return ma()>0?"height: "+ma()+"px;":""},
role:"button"},sb)},
else:function(){var Cb={},ab={};return _.q("div",{class:_.et("ytSuggestionComponentSuggestion",(Cb.ytSuggestionComponentSuggestionHover=function(){return!aa()},Cb.ytSuggestionComponentHighlighted=ya,Cb.ytSuggestionComponentPersonalizedSuggestion=fa,Cb.ytSuggestionComponentMweb=!1,Cb.ytSuggestionComponentLargerSuggestion=function(){return Ba()||Ca()},Cb.ytSuggestionComponentThumbnailSuggestion=function(){return Ca()},Cb.ytSuggestionComponentRoundedSuggestion=function(){return _.w("desktop_enable_scrollable_suggestions_panel")&&
_.w("desktop_enable_suggestions_panel_padding")},Cb)),
style:function(){return ma()>0?"height: "+ma()+"px;":""},
role:"presentation","on:mousedown":V,"on:mouseover":ac,"on:mouseout":Qb,el:J},_.q("div",{class:_.et("ytSuggestionComponentText",(ab.ytSuggestionComponentScrollMargin=x,ab)),"aria-label":function(){return Ba()?d().text+" "+IXc:d().text},
id:function(){return t==null?void 0:t(r==null?void 0:r())},
"on:mousedown":V,role:"option"},_.q(_.qi,{cond:function(){return d().type!==33},
then:function(){return _.q(_.qt,{icon:Vb,className:"ytSuggestionComponentIcon"})}}),_.q("div",{class:"ytSuggestionComponentLeftContainer"},_.q("span",{el:I,
role:"button",tabindex:0},_.q(_.ri,{each:db},function(Pa){return Pa.bold?_.q("span",{class:"ytSuggestionComponentBold"},Pa.text):_.q("span",null,Pa.text)})),_.q(_.qi,{cond:function(){return Ba()},
then:function(){return _.q("div",{class:"ytSuggestionComponentNewVideoContainer"},_.q("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.q("div",{class:"ytSuggestionComponentNewVideoText"},IXc))}}))),_.q("div",{class:"ytSuggestionComponentRightContainer"},_.q(_.qi,{cond:function(){return Ca()&&d().visualSuggestUrl!==void 0},
then:function(){return _.q("img",{"aria-label":JXc,class:"ytSuggestionComponentvisualSuggestThumbnail",src:function(){return d().visualSuggestUrl}})}}),_.q(_.ti,null,_.q(_.si,{when:function(){return Ca()&&Ia()}},function(){var Pa={};
return _.q("button",{class:_.et("ytSuggestionComponentRemoveLinkClearButton",(Pa.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return Ac()&&Ac()===(u==null?void 0:u())},Pa.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!ya()},Pa)),
el:da,"on:mousedown":ia,"aria-label":rb,id:function(){return Ac()}},_.q(_.qt,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.q(_.si,{when:function(){return!(Ca()&&d().visualSuggestUrl!==void 0)&&Ia()}},function(){var Pa={};
return _.q("a",{class:_.et("ytSuggestionComponentRemoveLink",(Pa.ytSuggestionComponentRemoveLinkDark=Ua,Pa.ytSuggestionComponentRemoveLinkSelected=function(){return Ac()&&Ac()===(u==null?void 0:u())},Pa)),
el:R,"on:mousedown":ia,"aria-label":rb,tabindex:0,role:"button",id:function(){return Ac()}},rb)}),_.q(_.si,{when:function(){return!1}},function(){return _.q("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":Wc,"on:mousedown":Mc,role:"button","aria-label":HXc},_.q(_.qt,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Mf");var LXc=_.Rr(function(){var a=_.lt(function(){eXc().inputMethodsTracker.add(3);var b,c=(b=_.Fi("SBOX_SETTINGS"))==null?void 0:b.REQUEST_LANGUAGE;if(c)return _.Kn("//www.google.com/textinputassistant/14/"+c+"_tia.js"),!1});
return _.q("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.q("button",{class:"ytdTextInputAssistantButton","on:click":a},_.q("img",{class:"ytdTextInputAssistantIcon",tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Nf");var MXc=function(){this.cache=new Map},NXc=function(a){for(var b=_.h(a.cache.entries()),c=b.next();!c.done;c=b.next()){var d=_.h(c.value);
c=d.next().value;d=d.next().value;d.suggestions.some(function(e){return e.type===35})&&a.cache.delete(c)}};var OXc=_.dY.SEARCH,PXc=_.dY.SEARCH_CLEAR_LABEL,QXc=new _.jB("FAKE_SUGGEST_RESPONSE");_.Ts(_.Rr(function(a){function b(){Pa||(Pa=setTimeout(function(){Yb()},1E3))}
function c(fb,ib){if(fb.trim()){ab=fb;_.Ei("REFINEMENTS_TUPLE",void 0);qb=!0;var Sb;ib=hXc(Mc,ib);var wb=(Sb=a.searchEndpoint)==null?void 0:Sb.call(a);Sb=Mb.value.value;wb||(wb=HAc);var vd;(vd=_.y(wb.commandMetadata,_.co))!=null&&vd.url||(vd=Error("pl`"+JSON.stringify(wb)),_.Bl(vd),wb=HAc);vd=_.Cf.unsafeClone(wb);wb=_.Gl(_.y(vd.commandMetadata,_.co).url,"search_query",fb);_.Kg(location.href,"sv")==="1"&&(_.y(vd,_.rq).params="EgOAAgE%3D",wb=_.Gl(wb,"sv","1"));_.y(vd,_.rq)&&(_.y(vd,_.rq).query=fb);
wb=wb.replace(/%20/g,"+");_.y(vd.commandMetadata,_.co).url=wb;_.v().resolve(_.Yi).resolveCommand(vd,{form:{tempData:{gs_l:ib,oq:Sb!=null?Sb:fb}}});Yb();Mb.value.value=fb;Mb.value.blur();Mc.reset()}}
function d(fb){return _.l(function(ib){return ib.return(new Promise(function(Sb){var wb=new XMLHttpRequest;wb.open("GET",YWc(fb),!0);wb.withCredentials=!0;var vd=_.Fi("SBOX_SETTINGS");(vd==null?0:vd.SEND_VISITOR_DATA)&&wb.setRequestHeader("X-Goog-Visitor-Id",vd==null?void 0:vd.VISITOR_DATA);wb.onload=function(){Sb(wb.responseText)};
wb.onerror=function(){_.Dl(Error("ql"));Sb(null)};
setTimeout(function(){wb.abort()},1E4);
wb.send(null)}))})}
function e(fb){var ib,Sb,wb,vd;return _.l(function(ag){switch(ag.nextAddress){case 1:return ib={credentials:"include",headers:XWc()},window.AbortController&&(Sb=new AbortController,setTimeout(function(){Sb.abort("ytsbox-suggest-timeout")},1E4),ib.signal=Sb.signal),_.pe(ag,2),_.p(ag,fetch(YWc(fb),ib),4);
case 4:wb=ag.yieldResult.text();_.Jj(ag,3);break;case 2:return vd=_.te(ag),vd!=="ytsbox-abort-last"&&vd!=="ytsbox-suggest-timeout"&&_.Dl(vd),ag.return(null);case 3:return ag.return(wb)}})}
function g(fb){var ib,Sb,wb;return _.l(function(vd){switch(vd.nextAddress){case 1:if(ib=_.v().resolve(_.Xi(QXc)))return vd.return(ib);Sb=Date.now();b();return _.w("yt_searchbox_xhr")?_.p(vd,d(fb),5):_.p(vd,e(fb),4);case 4:wb=vd.yieldResult;vd.jumpTo(3);break;case 5:wb=vd.yieldResult;case 3:if(wb){Pa&&(clearTimeout(Pa),Pa=null);var ag=Mc,Bb=Sb,hm=fb.query.length===0;Bb=Date.now()-Bb;hm?ag.zeroPrefixRoundTripTime=Bb:(ag.JSC$18249_totalRoundTripTime+=Bb,ag.maxRoundTripTime=Math.max(ag.maxRoundTripTime,
Bb),hm=Math.floor(Bb/100),hm>=iXc.length?++ag.roundTripTimeHistogram[9]:++ag.roundTripTimeHistogram[iXc[hm]])}return vd.return(wb)}})}
function k(fb){var ib,Sb,wb;return _.l(function(vd){if(vd.nextAddress==1)return(ib=Wc.cache.get(WWc(fb)))?vd.return(ib):_.p(vd,g(fb),2);Sb=vd.yieldResult;if(Sb===null)return vd.return(null);wb=new bXc(Sb);fb.query.length===0&&wb.suggestions.length===0||Wc.cache.set(WWc(fb),wb);return vd.return(wb)})}
function m(fb){var ib,Sb;return _.l(function(wb){if(wb.nextAddress==1){Cb=!1;var vd=ab;vd=_.p0a()==="search"?(_.Kg(location.href,"search_query")||_.Kg(location.href,"q"))===vd:!1;ib=new VWc(fb,vd?ab:null);return _.p(wb,k(ib),2)}Sb=wb.yieldResult;if(Sb===null)return wb.return();ib.query.length===0&&(Mc.zeroPrefixSuggestionCount=Sb.suggestions.length);if(ib.id<=mb)return Mc.outOfSyncResponseCount++,wb.return();if(document.activeElement!==Mb.value)return wb.return();mb=ib.id;var ag=Mc,Bb=Sb.rawResponse[2]||
{};ag.experimentTriggeredBeforeFinal||(ag.experimentTriggeredBeforeFinal=ag.experimentTriggeredFinal);ag.experimentTriggeredFinal=!!Bb.e;Mc.updateSuggestions(Sb.suggestions);J(-1);Vb([]);Sb.suggestions!==A()&&Wn(Sb.suggestions.length);C(Sb.suggestions);Ba(Sb.suggestions.length>0&&Sb.suggestions[0].type===33);Db&&(Db.hidden=Sb.suggestions.length===0,ma()?(Db.style.minWidth="",ag=Db.style,Bb=(vd=A()[0])==null?void 0:vd.ignoredPrefix,ag.marginLeft=(Bb?Math.min(Bb.length*6,ub.value.offsetWidth):0).toString()+
"px"):(Db.style.minWidth=ub.value.offsetWidth+"px",Db.style.marginLeft="0"),Sm());_.ue(wb)})}
function n(){if(!qb)return!1;var fb=_.Fi("REFINEMENTS_TUPLE");return fb?(fb=fb[1].map(function(ib,Sb){return new $Wc([ib,0,[71]],Mb.value.value,Sb)}),A()!==fb&&Wn(fb.length),Vb([]),C(fb),Mc.updateSuggestions(fb),qb=!1,Db.hidden=fb.length===0,Cb=fb.length>0,!0):!1}
function r(){var fb=Mb.value.value;(typeof fb==="string"||fb instanceof String)&&fb!==""?V(!0):V(!1)}
function t(){if(_.p0a()==="search"){var fb=window.location.href;try{var ib=_.Kg(fb,"search_query")||_.Kg(fb,"q")||""}catch(Sb){ib=""}ib&&(Mb.value.value=ib,V(!0))}}
var u=_.h(_.ih([],void 0,"nfrtkb")),x=u.next().value;u=u.next().value;var A=x,C=u;x=_.h(_.ih(-1,void 0,"cRyFvd"));var F=x.next().value,J=x.next().value;x=_.h(_.ih(-1,void 0,"EriPWe"));var I=x.next().value,R=x.next().value;x=_.h(_.ih(!1,void 0,"UK7opd"));var da=x.next().value,V=x.next().value;x=_.h(_.ih(!1,void 0,"ego0bc"));var fa=x.next().value,aa=x.next().value;u=_.h(_.ih(!1,void 0,"lRwSBb"));x=u.next().value;u=u.next().value;var ma=x,Ba=u;u=_.h(_.ih(!1,void 0,"gLkpXb"));x=u.next().value;var Ca=
u.next().value;u=_.h(_.ih(!1,void 0,"In4Zlb"));var ya=u.next().value,Ia=u.next().value;u=_.h(_.ih(1,void 0,"pQNR0c"));var db=u.next().value,lb=u.next().value;u=_.h(_.ih([],void 0,"EFteUe"));var Ua=u.next().value,Vb=u.next().value;u=_.h(_.ih(!1,void 0,"fnEGyd"));var rb=u.next().value,sb=u.next().value;u=_.w("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var yc=_.Pl(),Mb=_.Pl(),ub=_.Pl(),Db,Wc=new MXc,Mc=
eXc(),ia=_.v().resolve(_.Xi(_.Ks)),ac=function(){var fb;return((fb=a.forceDarkMode)==null?void 0:fb.call(a))||!(ia==null||!ia())},Qb=function(){return _.w("desktop_enable_scrollable_suggestions_panel")},Ac="i"+GXc++,qb=!1,Cb=!1,ab="",Pa=null,mb=-1,Yb=function(){Vb([]);
C([]);Ba(!1);Db&&(Db.hidden=!0);Pa&&(clearTimeout(Pa),Pa=null);J(-1)},hd=function(fb,ib){fb.preventDefault();
sb(!0);Db&&(Db.hidden=!1);var Sb=F();fb=A();var wb=Ua();ib=kyc(ib);Sb+=ib;for(Sb>=fb.length?Sb=-1:Sb<-1&&(Sb=fb.length-1);Sb!==-1&&(wb.includes(Sb)||Sb>=fb.length||Sb<0);)Sb+=ib,Sb>=fb.length&&(Sb=-1);J(Sb);F()>=0&&(Mb.value.value=A()[F()].text,R(0),r(),fb=F(),wb=I(),(wb=document.getElementById(td[fb][wb]))&&Qb()&&(fb===A().length-1?Db.scrollTop=Db.scrollHeight:wb.scrollIntoView({block:"nearest",inline:"start"})))};
_.Rl(Mb,"focus",function(fb){if(!(fb.relatedTarget instanceof Element&&fb.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){aa(!0);var ib;(ib=a.focusCallback)==null||ib.call(a,!0);n()||(Cb?Db.hidden=!1:(_.io(yc.value,"yt-autonav-pause-focus",{}),m(fb.target.value)))}});
_.Rl(Mb,"blur",function(fb){if(!(fb.relatedTarget instanceof Element&&fb.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){aa(!1);var ib;(ib=a.focusCallback)==null||ib.call(a,!1);Db.scrollTop=0;Db.hidden=!0;_.io(yc.value,"yt-autonav-pause-blur",{})}});
var Gb=function(fb){fb=kyc(fb);var ib;((ib=td[F()])==null?0:ib[I()+fb])&&R(I()+fb)},Tc=_.lt(function(fb){var ib=fb.target;
switch(fb.keyCode){case 13:fb.preventDefault();var Sb;if((Sb=td[F()])==null?0:Sb[I()]){var wb;(wb=document.getElementById(td[F()][I()]))==null||wb.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}fb=fb.shiftKey?4:3;Sb=Mc;wb=F();Sb.selectedSuggestionIndex=wb;c(ib.value,fb);break;case 27:Db&&(Db.hidden=!0);break;case 40:hd(fb,40);break;case 38:hd(fb,38);break;case 39:Gb(39);break;case 37:Gb(37);break;case 229:Mc.inputMethodsTracker.add(4);break;default:Mc.inputMethodsTracker.add(1),
fXc(Mc)}return!1}),Bd=_.lt(function(fb){m(fb.target.value);
r();Qb()&&Db&&(Db.scrollTop=0);return!1}),Rm=_.lt(function(){Mc.inputMethodsTracker.add(2);
fXc(Mc);return!1});
_.pi(function(){if(Db){Mc.reset();if(window.ResizeObserver){var fb=new ResizeObserver(function(){ma()||(Db.style.minWidth=ub.value.offsetWidth+"px")});
fb.observe(ub.value);(new ResizeObserver(function(){Sm()})).observe(Db);
_.zh(function(){fb.disconnect()})}t();
window.addEventListener("yt-navigate-finish",t);window.addEventListener("yt-focus-searchbox",function(){Mb.value.focus()});
var ib;Ca((ib=_.Fi("SBOX_SETTINGS"))==null?void 0:ib.HAS_ON_SCREEN_KEYBOARD)}else _.Bl(new _.qj("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var ld=_.lt(function(fb){fb.preventDefault();c(Mb.value.value,12);return!1}),Gf=_.lt(function(fb){fb.preventDefault();
var ib,Sb;(ib=Mb)==null||(Sb=ib.value)==null||Sb.focus();var wb,vd;((wb=Mb)==null?void 0:(vd=wb.value)==null?void 0:vd.value)!==""&&(Mb.value.value="",Mb.value.dispatchEvent(new Event("input")));return!1}),Vn=_.lt(function(){var fb=juc(Mb.value.value,A().filter(function(ib){return ib.type!==35}).map(function(ib){return{label:ib.text}}));
_.lo(yc.value,"yt-open-popup-action",[{openPopupAction:fb},document.body]);return!1}),Af=_.lt(function(){Mb.value.focus();
return!1}),$h=function(fb,ib,Sb,wb){Mc.selectedSuggestionIndex=Sb;
c(ib,wb?3:1)},zi=function(fb){Mb.value.value=fb;
Mb.value.dispatchEvent(new Event("input"));Mc.inputMethodsTracker.add(5);fXc(Mc,!0)},td=[[]],aq=function(fb){var ib="searchbox-suggestion"+_.Ov(_.Pv);
td[fb].push(ib);return ib},Wn=function(fb){if(A()){td=[[]];
for(var ib=0;ib<fb;ib++)td.push([])}},Sm=function(){if(Qb()){var fb=Db,ib=fb.scrollTop;
fb=fb.scrollHeight-fb.clientHeight;Ia(ib>=fb);ib=Math.abs(fb-ib);ib<=40?lb(1-(40-ib)/40):lb(1)}},Vi=function(){return"opacity: "+db()*100+"%"},be=_.lt(function(){Sm();
return!1}),ap=_.lt(function(){sb(!1);
return!1}),sa,Fa={},La={},nb={},hc={};
return _.q("yt-searchbox",{class:_.et("ytSearchboxComponentHost",(Fa.ytSearchboxComponentMweb=!1,Fa.ytSearchboxComponentDesktop=!0,Fa["yt-searchbox-filled-query"]=function(){return da()},Fa["ytd-masthead"]=function(){return!fa()},Fa.ytSearchboxComponentHostDark=ac,Fa)),
role:"search",el:yc,"client-ve-type":10349},_.q("div",{el:ub,"on:click":Af,class:_.et("ytSearchboxComponentInputBox",(La.ytSearchboxComponentInputBoxDark=ac,La.ytSearchboxComponentInputBoxHasFocus=fa,La))},_.q("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":ld},_.q(_.qi,{cond:fa,then:function(){return _.q("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.q(_.qt,{icon:"SEARCH"}))}}),_.q("input",{el:Mb,
class:_.et("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":Ac,"aria-expanded":!((sa=Db)==null?0:sa.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:input":Bd,"on:keydown":Tc,"on:paste":Rm,placeholder:a.placeholderText,"aria-activedescendant":function(){var fb;return(fb=td[F()])==null?void 0:fb[I()]},
"aria-autocomplete":"list",role:"combobox"})),_.q(_.qi,{cond:x,then:function(){return _.q("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.q(LXc,null))}}),_.q(_.qi,{cond:da,
then:function(){return _.q("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.q("button",{class:"ytSearchboxComponentClearButton","on:click":Gf,"aria-label":a.clearButtonAriaLabel||PXc},_.q(_.qt,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.q(_.ut,{model:{}})))}})),_.q("button",{class:_.et("ytSearchboxComponentSearchButton",(nb.ytSearchboxComponentSearchButtonDark=ac,nb)),
"on:click":ld,"aria-label":OXc,title:a.placeholderText},_.q(_.qt,{icon:"SEARCH"})),_.q(_.qi,{cond:function(){if(vxc()&&_.w("mweb_voice_search")&&a.voiceSearchButton)return a.voiceSearchButton()},
then:function(fb){var ib={};return _.q("div",{class:_.et("ytSearchboxComponentVoiceSearchWrapper",(ib.ytSearchboxComponentHideVoiceSearchButton=function(){return da()},ib))},_.q(_.Hu,{data:fb},{buttonRenderer:function(Sb){return _.q(_.iL,{data:Sb.data,
onButtonClickCallback:function(){}})}}))}}),_.q("div",{el:_.tRa(function(fb){return void(Db=fb)}),
id:Ac,class:_.et("ytSearchboxComponentSuggestionsContainer",(hc.ytSearchboxComponentSuggestionsContainerDark=ac,hc["yt-searchbox-suggestions-container"]=!1,hc.ytSearchboxComponentSuggestionsContainerScrollable=Qb(),hc.ytSearchboxComponentSuggestionsContainerAnimated=u,hc)),"on:scroll":be,"on:mousemove":ap,role:"listbox",hidden:!0},_.q(_.ri,{each:A},function(fb,ib){return _.q(KXc,{suggestion:fb,isHighlighted:function(){return ib()===F()},
onClickCallback:$h,onHoverUpdateCallback:function(Sb){if(_.w("desktop_enable_single_suggestion_highlight")){var wb=ib();Sb&&(R(0),J(wb))}},
onRemoveCallback:function(Sb){NXc(Wc);Sb===void 0||Sb<0||Ua().includes(Sb)||Vb([].concat(_.De(Ua()),[Sb]))},
labels:a.labels,queryBuilderFunction:zi,suggestionIndex:ib,generateUniqueId:aq,highlightedId:function(){var Sb;return(Sb=td[F()])==null?void 0:Sb[I()]},
useScrollMargin:Qb(),isKeyboardMode:rb})}),_.q(_.qi,{cond:function(){return!ma()&&A().find(function(fb){return fb.type!==35})&&_.w("searchbox_reporting")},
then:function(){return _.q("button",{class:"ytSearchboxComponentReportButton","on:mousedown":Vn},_.vo("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.q(_.qi,{cond:function(){return!ya()&&Qb()},
then:function(){return _.q("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.q("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:Vi}))}})))},"Of"),"yt-searchbox",{props:{searchEndpoint:_.VG,
placeholderText:_.VG,labels:_.VG,voiceSearchButton:_.VG,focusCallback:_.Ss,clearButtonAriaLabel:_.VG,forceDarkMode:_.VG}});var RXc=function(){var a=_.P.apply(this,arguments)||this;a.menuButtonTargetId="topbar-guide-menu";a.narrow=!1;a.menuStrings={BACK_ALT_LABEL:_.vo("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.vo("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.vo("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.vo("SBOX_PLACEHOLDER",void 0,"Search")};a.pageDarkTheme=document.documentElement.hasAttribute("dark");a.watchPageScrollTop=0;a.theater=!1;a.fullscreen=!1;a.desktopUnifiedSearchPanelMode=_.w("desktop_enable_unified_search_panel");
a.cinematicTheaterMode=_.w("web_cinematic_theater_mode");a.ytSearchboxFocused=!1;a.searchboxLabels=_.Fi("SBOX_LABELS");a.topbarIsAboveChipbar=!1;a.isDarkThemeForced=!1;a.areGhostCardsHidden=!1;a.guideKeyboardToggle=!1;a.voiceSearchManager=LNc();a.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};a.setYtSearchboxFocused=function(b){a.ytSearchboxFocused=b};
return a};
_.z(RXc,_.P);_.f=RXc.prototype;_.f.computeSimpleText=function(a){return _.Wp(a)};
_.f.onDarkChanged=function(){for(var a=_.h(this.buttons||[]),b=a.next();!b.done;b=a.next())b.value.isOverlay=!!this.dark;a=_.h(this.buttonRenderers||[]);for(b=a.next();!b.done;b=a.next())b.value.overrides=this.computeButtonOverride()};
_.f.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.f.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var a=_.WF(_.VF(),"aa");_.br(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||a||(this.isDarkThemeForced=this.dark=!0);this.logoType?(a=this.hostElement.querySelector("#masthead-logo"))&&(_.w("polymer_on_demand_shady_dom")?a.setAttribute("slot","masthead-logo-old"):_.qg(a)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.gr(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.gr(this,this.onSetTheaterModeEnabled))};
_.f.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.gr(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.gr(this,this.onSetTheaterModeEnabled))};
_.f.dataChanged=function(){var a=this.data;a&&(this.voiceEnabled=a.voiceSearchButton?LNc().isSupported():!1,_.OLb(_.sG(),this.menuButtonTargetId,this.guideButton),a.onReceivedActions&&a.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.po(this.hostElement,a.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&a&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.br(this.hostElement,"dark",!1),_.br(this.hostElement,"theater",!1),
(a=this.hostElement.querySelector("#masthead-logo"))&&(_.w("polymer_on_demand_shady_dom")?a.setAttribute("slot","masthead-logo-old"):_.qg(a))))};
_.f.computeCenterHidden=function(){var a;return this.data&&!((a=this.data.searchbox)==null?0:a.fusionSearchboxRenderer)};
_.f.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.br(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.f.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.f.onWatchScroll=function(a){this.watchPageScrollTop=a.detail||0;this.updateMastheadBackgroundOpacity()};
_.f.onFullscreenChangeAction=function(a){a||(this.watchPageScrollTop=0);this.fullscreen=a;this.updateMastheadBackgroundOpacity()};
_.f.onSetTheaterModeEnabled=function(a){this.theater=a.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.f.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.f.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.f.setBackgroundOpacity=function(a){a=this.calculateBackgroundOpacity(a);this.background.style.opacity=""+a};
_.f.calculateBackgroundOpacity=function(a){var b=this.theater&&this.cinematicTheaterMode?.6:0,c=this.hostElement.clientHeight/2;return Math.min(Math.max(a,0),c)/c*(1-b)+b};
_.f.shouldShowCinematicMastHead=function(){var a=_.w("kevlar_watch_grid")&&!_.w("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(a||this.pageDarkTheme)};
_.f.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.f.focusGuide=function(){this.guideButton.focus()};
_.f.onIronResize=function(){(this.get("data.interstitial")||this.get("data.ticker"))&&_.io(this.hostElement,"yt-masthead-height-changed",{height:this.hostElement.clientHeight})};
_.f.onGuideToggleTap=function(){_.io(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.f.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.f.onGuideToggleHover=function(){_.io(this.hostElement,"yt-guide-hover")};
_.f.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.f.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.f.closeOnOutsideClickCondition=function(a){for(a=_.Rq(a);a[0];){var b=a.shift();if(b instanceof Element&&b.id==="kbd")return!1}return!0};
_.f.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.f.pausePlayer=function(){var a;(a=_.au())==null||a.pause();this.pauseMiniplayer()};
_.f.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var a;(a=_.v().resolve(_.$w).getPlayerElement())==null||a.pause()}};
_.f.isMiniplayerActive=function(){return _.v().resolve(_.$w).isMiniplayerActive()};
_.f.updateNarrowFromBinding=function(a){this.narrow=a.detail.value};
_.f.onYtSendFeedbackAction=function(){_.lo(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.Um.Object.defineProperties(RXc.prototype,{shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var a;return(a=this.data)==null?void 0:a.voiceSearchButton}}}});
var J4=RXc;J4.prototype.narrowChanged=J4.prototype.narrowChanged;J4.prototype.onIronResize=J4.prototype.onIronResize;J4.prototype.onWatchPageChange=J4.prototype.onWatchPageChange;J4.prototype.onRendererStamperFinished=J4.prototype.onRendererStamperFinished;J4.prototype.dataChanged=J4.prototype.dataChanged;J4.prototype.onDarkChanged=J4.prototype.onDarkChanged;_.U([_.H(_.OD),_.W("design:type",Object)],J4.prototype,"ironResizableBehavior",void 0);
_.U([_.H(_.Amc),_.W("design:type",Object)],J4.prototype,"ytdExpandableInputBehavior",void 0);_.U([_.H(_.XI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],J4.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],J4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],J4.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],J4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],J4.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.OI),_.W("design:type",Object)],J4.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],J4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],J4.prototype,"narrow",void 0);_.U([_.O(),_.W("design:type",Object)],J4.prototype,"logoType",void 0);
_.U([_.O(),_.W("design:type",Boolean)],J4.prototype,"voiceEnabled",void 0);_.U([_.O(),_.W("design:type",Object)],J4.prototype,"menuStrings",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],J4.prototype,"dark",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],J4.prototype,"pageDarkTheme",void 0);_.U([_.O(),_.W("design:type",Object)],J4.prototype,"watchPageScrollTop",void 0);
_.U([_.O({reflectToAttribute:!0,selector:_.Ip}),_.W("design:type",Boolean)],J4.prototype,"isWatchPage",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.yFa}),_.W("design:type",Boolean)],J4.prototype,"isShortsPage",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],J4.prototype,"theater",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],J4.prototype,"fullscreen",void 0);
_.U([_.O({reflectToAttribute:!0,selector:_.CFa}),_.W("design:type",String)],J4.prototype,"frostedGlassMode",void 0);_.U([_.O(),_.W("design:type",Object)],J4.prototype,"ytSearchboxFocused",void 0);_.U([_.jr("#buttons > *"),_.W("design:type",Array)],J4.prototype,"buttons",void 0);_.U([_.jr("ytd-button-renderer"),_.W("design:type",Array)],J4.prototype,"buttonRenderers",void 0);_.U([_.ir("#background"),_.W("design:type",HTMLDivElement)],J4.prototype,"background",void 0);
_.U([_.ir("#guide-button"),_.W("design:type",Object)],J4.prototype,"guideButton",void 0);_.U([_.ir("#logo"),_.W("design:type",Object)],J4.prototype,"logo",void 0);_.U([_.O({computed:"computeButtonOverride(dark)"}),_.W("design:type",Object)],J4.prototype,"buttonOverrides",void 0);_.U([_.mr("dark"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],J4.prototype,"onDarkChanged",null);_.U([_.O({value:function(){return this.onVoiceTap.bind(this)}}),
_.W("design:type",Function)],J4.prototype,"boundOnTapVoiceButton",void 0);_.U([_.O(),_.W("design:type",Object)],J4.prototype,"topbarIsAboveChipbar",void 0);_.U([_.K("voiceEnabled"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],J4.prototype,"shouldShowVoiceSearchButton",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],J4.prototype,"voiceSearchButton",null);
_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],J4.prototype,"dataChanged",null);_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],J4.prototype,"onRendererStamperFinished",null);_.U([_.mr("isWatchPage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],J4.prototype,"onWatchPageChange",null);
_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],J4.prototype,"onIronResize",null);_.U([_.mr("narrow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],J4.prototype,"narrowChanged",null);J4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-masthead"})],J4);
_.S(J4,"ytd-masthead",function(){if(DXc!==void 0)return DXc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return DXc=a},{mode:_.as("kevlar_poly_si_batch_j036")?1:2});var SXc;var TXc={},UXc={},VXc={},WXc={},XXc=(WXc.OFFLINE=(TXc["publicytnetworkstatus-online"]="BACK_ONLINE",TXc),WXc.ONLINE=(UXc["publicytnetworkstatus-offline"]="OFFLINE",UXc),WXc.BACK_ONLINE=(VXc["publicytnetworkstatus-offline"]="OFFLINE",VXc.TIMER_TRIGGER="ONLINE",VXc),WXc),YXc=function(){var a=_.P.apply(this,arguments)||this;a.currentState="ONLINE";a.scheduledJobId=0;a.bannerString="";a.bannerVe=null;a.networkStatusManagerInstance=new _.Lk;return a};
_.z(YXc,_.P);_.f=YXc.prototype;_.f.attached=function(){var a=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){a.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){a.stateChangeHandler("publicytnetworkstatus-offline")})};
_.f.detached=function(){var a=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){a.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){a.stateChangeHandler("publicytnetworkstatus-offline")})};
_.f.enterState=function(a){var b=this;this.scheduledJobId&&_.zk.cancelJob(this.scheduledJobId);a==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):a==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.vo("NO_INTERNET_CONNECTION",void 0,"No internet connection")):a==="BACK_ONLINE"&&(this.bannerString=_.vo("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.sl(_.zk,function(){b.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=a};
_.f.stateChangeHandler=function(a){(a=XXc[this.currentState][a])&&this.enterState(a)};
_.f.logVisibility=function(a){var b=_.En();this.createBannerVe(a);b&&this.bannerVe&&(a?_.Vo(b,[this.bannerVe]):_.Wo(b,[this.bannerVe]))};
_.f.createBannerVe=function(a){!this.bannerVe&&a&&(this.bannerVe=_.ku(37929),_.rF(_.ls(),this.bannerVe))};
var K4=YXc;_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],K4.prototype,"currentState",void 0);_.U([_.O(),_.W("design:type",Object)],K4.prototype,"scheduledJobId",void 0);_.U([_.O(),_.W("design:type",Object)],K4.prototype,"bannerString",void 0);K4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-network-status-banner"})],K4);
_.S(K4,"ytd-network-status-banner",function(){if(SXc!==void 0)return SXc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-network-status-banner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="status-banner style-scope ytd-network-status-banner">\n       [[bannerString]]\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return SXc=
a},{mode:1});var ZXc;var $Xc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};a.hidden=!0;a.frostedGlass=_.w("web_frosted_glass");return a};
_.z($Xc,_.P);$Xc.prototype.computeHidden=function(a){return a&&a.status?!1:!0};
$Xc.prototype.handleUpdatePermissionRoleCommand=function(a){if(a=_.y(a,_.dEb))if(a=_.y(a.renderer,_.cEb))this.data=a};
var L4=$Xc;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],L4.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],L4.prototype,"componentBehavior",void 0);_.U([_.O({value:!0,computed:"computeHidden(data)"}),_.W("design:type",Object)],L4.prototype,"hidden",void 0);_.U([_.O(),_.W("design:type",Object)],L4.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],L4.prototype,"frostedGlass",void 0);
L4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],L4);
_.S(L4,"ytd-permission-role-bottom-bar-renderer",function(){if(ZXc!==void 0)return ZXc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-permission-role-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="pom-role-text style-scope ytd-permission-role-bottom-bar-renderer" hidden="[[hidden]]">\n  <yt-formatted-string text="[[data.status]]" class="style-scope ytd-permission-role-bottom-bar-renderer"></yt-formatted-string>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return ZXc=a},{mode:1});var aYc;var bYc;var lyc={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var cYc=function(){return _.P.apply(this,arguments)||this};
_.z(cYc,_.P);_.f=cYc.prototype;_.f.attached=function(){this.JSC$18351_scroller&&(this.JSC$18351_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18351_scroller.attached&&typeof this.JSC$18351_scroller.attached==="function"&&this.JSC$18351_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(c){c.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var a=_.E(this.hostElement);a.querySelector("tp-yt-paper-radio-group").selected="";var b=a.querySelector("#reason-text");b&&(b.value="");a.querySelector("#description-text").value=""}};
_.f.canSubmit=function(a,b){_.io(this.hostElement,"yt-invalidate-popup-tabbables");return!(a&&b)};
_.f.onCancel=function(){_.lo(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.f.onSubmit=function(){var a=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(g){return g.active}).map(function(g){return g.innerText.trim()}),b=this.hostElement.querySelector("tp-yt-paper-radio-group"),c=b.selectedItem,d=c.name;
c=c.innerText.trim();var e=b.querySelector("#reason-text");b=void 0;e&&(b=e.value);(e=this.descriptionText.value)&&(e=e.trim());myc(this.data.searchQuery,a,d,c,e,b);_.lo(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.f.sendFormSubmitToast=function(){var a=_.bq(_.vo("SBOX_INAPPROPRIATE_TOAST"));_.lo(this.hostElement,"yt-open-popup-action",[a,this])};
_.f.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(a){return a.active})};
_.f.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
var M4=cYc;M4.prototype.onIronSelect=M4.prototype.onIronSelect;M4.prototype.onIronChange=M4.prototype.onIronChange;M4.prototype.dataChanged=M4.prototype.dataChanged;_.U([_.O(),_.W("design:type",Object)],M4.prototype,"data",void 0);_.U([_.O({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.W("design:type",Boolean)],M4.prototype,"submitDisabled",void 0);_.U([_.O(),_.W("design:type",Boolean)],M4.prototype,"suggestionSelected",void 0);
_.U([_.O(),_.W("design:type",Boolean)],M4.prototype,"catagorySelected",void 0);_.U([_.ir("#scroller"),_.W("design:type",Object)],M4.prototype,"JSC$18351_scroller",void 0);_.U([_.ir("#description-text"),_.W("design:type",Object)],M4.prototype,"descriptionText",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],M4.prototype,"dataChanged",null);
_.U([_.M("iron-change"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],M4.prototype,"onIronChange",null);_.U([_.M("iron-select"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],M4.prototype,"onIronSelect",null);M4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],M4);
_.S(M4,"ytd-search-suggestion-report-dialog",function(){if(bYc!==void 0)return bYc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-suggestion-report-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-search-suggestion-report-dialog">\n  <div id="content" class="style-scope ytd-search-suggestion-report-dialog">\n    <h2 id="title" class="style-scope ytd-search-suggestion-report-dialog">[[data.title]]</h2>\n    <div id="suggestions" class="style-scope ytd-search-suggestion-report-dialog">\n      <template is="dom-repeat" items="[[data.suggestions]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-checkbox class="style-scope ytd-search-suggestion-report-dialog">[[item.label]]</tp-yt-paper-checkbox>\n      </template>\n    </div>\n    <tp-yt-paper-radio-group id="categories" class="style-scope ytd-search-suggestion-report-dialog">\n      <h2 id="category-title" class="style-scope ytd-search-suggestion-report-dialog">[[data.categoryLabel]]</h2>\n      <yt-formatted-string id="category-title" text="[[data.categoryLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n      </yt-formatted-string>\n      <template is="dom-repeat" items="[[data.categories]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-radio-button name="[[item.id]]" class="style-scope ytd-search-suggestion-report-dialog">\n          [[item.label]]\n          <template is="dom-if" if="[[item.reasonLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n            <tp-yt-paper-input-container id="reason" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n              <tp-yt-iron-autogrow-textarea id="reason-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[item.reasonLabel]]" rows="1">\n              </tp-yt-iron-autogrow-textarea>\n            </tp-yt-paper-input-container>\n          </template>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n    <tp-yt-paper-input-container id="details" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n      <tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[data.detailsPlaceholderLabel]]" rows="2">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-search-suggestion-report-dialog"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope ytd-search-suggestion-report-dialog">\n  <tp-yt-paper-button id="cancel" on-tap="onCancel" class="style-scope ytd-search-suggestion-report-dialog">[[data.cancelButtonLabel]]</tp-yt-paper-button>\n  <tp-yt-paper-button id="submit" disabled="[[submitDisabled]]" on-tap="onSubmit" class="style-scope ytd-search-suggestion-report-dialog">\n    [[data.submitButtonLabel]]\n  </tp-yt-paper-button>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return bYc=a},{mode:1});var N4=function(a){var b=a.openPopupAction;var c=a.target;var d=a.container;var e=a.popupContainerConfig;var g=a.getElement;a=a.removeWhenClosed===void 0?!1:a.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=b;this.target=c;this.container=d;this.popupContainerConfig=e;this.getElement=g;this.JSC$18357_popupConfig=this.popupContainerConfig.JSC$17474_popupConfig[this.openPopupAction.popupType];this.rendererName=(b=this.getName())?_.xua(b,pNc(this.popupContainerConfig,
b)):"";_.w("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=a);this.createPopup()};
N4.prototype.updatePopup=function(a){this.openPopupAction=a;this.JSC$18357_popupConfig=this.popupContainerConfig.JSC$17474_popupConfig[this.openPopupAction.popupType];dYc(this);_.w("reorder_popup_updates_killswitch")&&eYc(this);_.w("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var hYc=function(a,b,c){a.target=c;var d;c=((d=a.target.polymerController)!=null?d:a.target).popupPositionTarget||a.target;a.JSC$18357_popupConfig.targetContainer&&(c=a.container);a.popup.positionTarget=c;a.popupContent.positionTarget=c;_.w("reorder_popup_updates_killswitch")||eYc(a);a.JSC$18357_popupConfig.forceFocus&&(a.popupContent.style.outline="none");a.popupContent.tabIndex=-1;a.JSC$18357_popupConfig.narrowProperties&&(a.popup.style.position="static");a.JSC$18357_popupConfig.preventAutonav&&
a.popup.setAttribute("prevent-autonav",!0);a.JSC$18357_popupConfig.forceCloseOnOutsideClick&&a.popup.setAttribute("force-close-on-outside-click",!0);fYc(a,b);gYc(a,a.JSC$18357_popupConfig.styles);a.isRtl()&&gYc(a,a.JSC$18357_popupConfig.rtlStyles);if(!a.openPopupAction.shouldStopParentSignal){var e;b=(e=a.target.polymerController)!=null?e:a.target;(a.popupContent.startForwardingEvents||a.popupContainerConfig.forwardingEnabledPopups.has(a.rendererName))&&b.parentComponent!==a.popupContent&&a.popupContent!==
a.target&&a.target!==document.body&&(a.popupContent.startForwardingEvents?a.popupContent.startForwardingEvents(a.popupContainerConfig.forwardedEvents,a.target):(a.JSC$18357_eventForwarder||(a.JSC$18357_eventForwarder=new _.Aw(a.popupContent)),a.JSC$18357_eventForwarder.start(a.popupContainerConfig.forwardedEvents,a.target)))}};
N4.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var fYc=function(a,b){iYc(a,b&&a.JSC$18357_popupConfig.narrowProperties?a.JSC$18357_popupConfig.narrowProperties:a.JSC$18357_popupConfig.properties);a.isRtl()&&iYc(a,a.JSC$18357_popupConfig.rtlProperties);eYc(a)};
N4.prototype.createPopup=function(){var a=this.JSC$18357_popupConfig.component;if(this.popupContent=jYc(this,this.rendererName)){if(a){this.popup=jYc(this,a);var b=this.popupContent;_.w("web_enable_wrapper_for_cow_component_in_popup")&&(b=document.createElement("div"),b.appendChild(this.popupContent));_.w("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18357_popupConfig.slotName&&b.setAttribute("slot",this.JSC$18357_popupConfig.slotName);a=this.popup;var c=this.container.tagName.toLowerCase(),
d=_.Tq(b);_.iKa(_.Vq(a),_.Yq(b,c,d));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.w("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.E(this.container).appendChild(this.popup)}};
var dYc=function(a){var b,c,d=(b=a.openPopupAction.accessibilityData)==null?void 0:(c=b.accessibilityData)==null?void 0:c.label;d&&(a.popup.ariaLabel=d);var e;((e=a.popupContent.polymerController)!=null?e:a.popupContent).data=(0,_.Cf.unsafeClone)(a.openPopupAction.popup[a.getName()]);a.popupContent.duration=kYc(a);a.popupContent.positionType=a.openPopupAction.position;var g=a.openPopupAction.properties;g&&Object.keys(g).forEach(function(k){a.popupContent[k]=g[k]})},iYc=function(a,b){if(b)for(var c=
_.h(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.popup[d]=b[d]},eYc=function(a){if(a.openPopupAction.position){var b=a.JSC$18357_popupConfig.positionalProperties&&a.JSC$18357_popupConfig.positionalProperties[a.openPopupAction.position],c=a.JSC$18357_popupConfig.rtlPositionalProperties&&a.JSC$18357_popupConfig.rtlPositionalProperties[a.openPopupAction.position];
b=a.isRtl()&&c?c:b;b.shiftedHorizontalOffset&&(c=a.popup.style.display,a.popup.style.display="block",a.popupContent&&a.popup.positionTarget&&a.popupContent.clientWidth>a.popup.positionTarget.clientWidth&&(b.horizontalOffset=a.popup.positionTarget.clientWidth/2-b.shiftedHorizontalOffset),a.popup.style.display=c);iYc(a,b)}},gYc=function(a,b){if(b)for(var c=_.h(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.popup.style[d]=b[d]};
N4.prototype.getName=function(){return _.Ci(this.openPopupAction.popup,"renderer")||_.Ci(this.openPopupAction.popup,"dialog")||_.Ci(this.openPopupAction.popup,"model")||void 0};
var kYc=function(a){a=a.openPopupAction.durationHintMs;return a===0?a:Math.max(4E3,a||4E3)};
N4.prototype.isRtl=function(){return _.Fi("HTML_DIR")==="rtl"};
var jYc=function(a,b){a=a.getElement(b,a.target);a==null&&_.Dl(new _.qj("popup getElement returned null",b));return a};var lYc={};
lYc.YtPopupContainerBehavior=[_.OG.YtComponentBehavior,_.eH.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.go(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.ho(this.hostElement)},
closePopup:function(a){var b=this.createCacheKey(void 0,a);this.popups_[b]&&this.handleClosePopupAction_(void 0,a)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.zk.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.zk.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(a){a.opened&&a.keepBelowPlayer&&this.ensurePopupBelowPlayer(a)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var a in this.popups_){var b=this.popups_[a];if(b.popup.scrollAction==="refit"){var c=b.popup.positionTarget.getBoundingClientRect(),d=b.popup;c=c.top;var e=b;if(!e.naturalHeight){e.popup.hidden=!1;e.popup.style.position="fixed";e.popup.style.top="0px";e.popup.style.left="0px";var g=e.popup.getBoundingClientRect();e.naturalHeight=g.bottom-g.top;e.popup.refit()}d.hidden=!(c>=e.naturalHeight+60);b.popupContent.clientHeight===0&&b.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(a){this.popupContainerConfig=a},
handleOpenPopupAction:function(a,b){var c=a.openPopupAction,d=_.v().resolve(_.Xi(_.Jhc))&&c.popupType==="TOAST";d&&!c.uniqueId&&(c.uniqueId=_.KW());if(!_.w("popup_container_parent_target_killswitch")){var e;b=(e=this.getParentTarget(b))!=null?e:b}var g=this.ensurePopup_(c,b);return new _.il(function(k){g.then(function(m){if(!m)return k();this.maybeCreateNarrowMediaQuery_();var n=this.createCacheKey(m.rendererName,m.openPopupAction.uniqueId);if(c.showOncePerUniqueId){if(this.shownPopupKeys_.has(n))return k();
this.shownPopupKeys_.add(n)}n=this.popups_[n];var r=!(!n||!n.openPopupAction.beReused);r=!!c.reusePopup||r;if(m.popup.opened&&!r){d&&!m.openPopupAction.replacePopup||this.handleClosePopupAction_(m.rendererName,m.openPopupAction.uniqueId);r=c.popupType==="DIALOG"&&!_.w("popup_container_dialog_reopen_killswitch");if(!d&&!r&&n&&n.target==b&&!m.openPopupAction.replacePopup)return k();_.Qm(m.popup,function(){this.completeOpenPopupAction_(c,b,m);k()}.bind(this))}else m.popup.opened?m.updatePopup(c):this.completeOpenPopupAction_(c,
b,m),k()}.bind(this))}.bind(this))},
getParentTarget:function(a){if(a&&a instanceof HTMLElement)for(var b=_.h(Object.entries(this.popups_)),c=b.next();!c.done;c=b.next())if(c=_.h(c.value),c.next(),c=c.next().value,c.popup.tagName==="TP-YT-IRON-DROPDOWN"&&c.popup.opened&&a.closest(c.rendererName))return c.target},
completeOpenPopupAction_:function(a,b,c){_.w("reorder_popup_updates_killswitch")?(hYc(c,this.narrowMediaQuery_.queryMatches,b),c.updatePopup(a)):(c.updatePopup(a),hYc(c,this.narrowMediaQuery_.queryMatches,b));a=c.popup;a.addEventListener("iron-overlay-opened",_.gr(this,this.onPopupIronOverlayOpened_));a.addEventListener("iron-overlay-closed",_.gr(this,this.onPopupIronOverlayClosed_));a.addEventListener("iron-overlay-canceled",_.gr(this,this.onPopupIronOverlayCanceled_));a.addEventListener("yt-refit",
_.gr(this,this.refitPopup_));a.addEventListener("yt-invalidate-popup-tabbables",_.gr(this,this.handleInvalidatePopupTabbables_));a.open()},
getPopupDurationMs_:function(a){return a.durationHintMs===0?a.durationHintMs:Math.max(4E3,a.durationHintMs||4E3)},
handleClosePopupAction_:function(a,b){var c=_.w("web_popup_cache_key_killswitch")||!!b;if(a||c){var d=this.createCacheKey(a,b);a=(a=this.popups_[d])&&a.popup}else a=_.iwb(_.$D);if(a&&a.close){if(b=_.v().resolve(_.Xi(_.Bu)))a.restoreFocusOnClose=b.isKeyBoardInUse();a.close();this.removePopup_(a,d)}},
handleClosePopupCommand_:function(a){a.closePopupCommand&&a.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,a.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(a){var b={},c;for(c in this.popups_)if(b={key$jscomp$1171:b.key$jscomp$1171},b.key$jscomp$1171=c,!a||!a.some(function(g){return function(k){return k==g.key$jscomp$1171}}(b))){var d=this.popups_[b.key$jscomp$1171],e=d.popup;
_.v().resolve(_.Xi(_.Jhc))&&d.openPopupAction.popupType==="TOAST"||(e&&e.close&&e.close(),this.removePopup_(e,b.key$jscomp$1171))}},
handleClosePopupsAction_:function(a){a.forEach(function(b){var c=this.popups_[b];c&&((c=c.popup)&&c.close&&c.close(),this.removePopup_(c,b))}.bind(this))},
handleGetPopupOpenedAction_:function(a,b){return(b=this.createCacheKey(a,b))&&this.popups_[b]?this.popups_[a].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var a=[],b;for(b in this.popups_){var c=this.popups_[b];c.popup.opened&&a.push(c)}return a},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(a,b){_.w("ytpopup_disable_default_html_caching")&&a&&a.removeWhenClosed&&(_.E(this.hostElement).removeChild(a),b&&this.popups_[b]&&delete this.popups_[b])},
shouldReusePopup_:function(a){return!(!a||!a.reusePopup)||!(!a||!a.beReused)},
ensurePopup_:function(a,b){this.maybeCreateNarrowMediaQuery_();var c=_.Ci(a.popup,"renderer")||_.Ci(a.popup,"dialog")||_.Ci(a.popup,"model");if(!c)return _.qo();c=_.xua(c,pNc(this.popupContainerConfig,c));return _.qo(this.getAndMaybeCreatePopup_(a,c,b))},
getAndMaybeCreatePopup_:function(a,b,c){var d=this.createCacheKey(b,a.uniqueId);if(this.popups_[d])return this.popups_[d];a=new N4({openPopupAction:a,target:c,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(b)});return this.popups_[d]=a},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(a){return _.w("ytpopup_disable_default_html_caching")?a&&a.includes("view-model"):!1},
maybeCreateNarrowMediaQuery_:function(){this.narrowMediaQuery_||(this.narrowMediaQuery_=document.createElement("iron-media-query"),this.narrowMediaQuery_.query="(max-width: 656px)",this.narrowMediaQuery_.addEventListener("query-matches-changed",_.gr(this,this.openPopupQueryMatchesChanged_)),_.E(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(a){a=a.detail.value;for(var b in this.popups_)fYc(this.popups_[b],a)},
onPopupIronOverlayClosed_:function(a){var b=a.currentTarget,c=_.CKa(b);c=c.length>0?c[0]:b;if(c.is!=="ytd-reel-watch-while-dialog-renderer"||a.target.is!=="tp-yt-iron-dropdown"){a.detail.popup=b;a.detail.popupRenderer=c;var d,e={context:{openingElement:((d=this.popups_[(c==null?void 0:c.is)||""])==null?void 0:d.target)||void 0}};Object.assign(e,a.detail);var g;_.io((g=c.hostElement)!=null?g:c,"yt-popup-closed",e);b.removeEventListener("yt-refit",_.gr(this,this.refitPopup_));b.removeEventListener("yt-invalidate-popup-tabbables",
_.gr(this,this.handleInvalidatePopupTabbables_));b.removeEventListener("iron-overlay-canceled",_.gr(this,this.onPopupIronOverlayCanceled_));b.removeEventListener("iron-overlay-closed",_.gr(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(b)}},
onPopupIronOverlayCanceled_:function(a,b){var c=a.currentTarget,d=_.CKa(c);d=d.length>0?d[0]:c;if(d.is!=="ytd-reel-watch-while-dialog-renderer"||a.target.is!=="tp-yt-iron-dropdown"){var e;_.io((e=d.hostElement)!=null?e:d,"yt-popup-canceled",a.detail);e=b?_.Rq(b):null;(!b||["click","tap"].includes(b.type))&&!c.hasAttribute("force-close-on-outside-click")&&c.positionTarget&&e&&e.includes(c.positionTarget)&&a.preventDefault();c.restoreFocusOnClose=_.FD.keyboardEventMatchesKeys(b,"esc")}},
onPopupIronOverlayOpened_:function(a){a=a.currentTarget;var b=_.CKa(a);b=b.length>0?b[0]:a;var c,d;_.io((c=b.hostElement)!=null?c:b,"yt-popup-opened",(d=b.hostElement)!=null?d:b);a.keepBelowPlayer&&(this.ensurePopupBelowPlayer(a,!0),this.dynamicallyPositionedElements_.add(a));c=_.v().resolve(_.Xi(_.Bu));d=!!b.querySelector("#toast");c&&c.isKeyBoardInUse()&&!d&&(typeof b.focusFirstItem==="function"?b.focusFirstItem():(b=_.fwb(a),b.length&&b[0].focus()));a.removeEventListener("iron-overlay-opened",
_.gr(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(a){a=a.currentTarget;a.refit&&a.refit()},
refitPopups_:function(){for(var a in this.popups_)this.popups_[a].refit()},
handleInvalidatePopupTabbables_:function(a){a=a.currentTarget;a.invalidateTabbables&&a.invalidateTabbables()},
createCacheKey:function(a,b){return _.w("web_popup_cache_key_killswitch")?b?a+"#"+b:a:b?"#"+b:a},
openSheet:function(a,b){var c=a==null?void 0:a.openPopupActionCommand;!c&&(a==null?0:a.viewModel)&&(c={openPopupAction:{popup:{sheetViewModel:a.viewModel},popupType:"CONTEXTUAL_SHEET"}});c&&this.handleOpenPopupAction(c,b)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var a=this;return _.l(function(b){return b.return(a.handleGetOpenedPopupsAction_().filter(function(c){var d;return((d=c.openPopupAction)==null?void 0:d.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(a,b,c){if(_.w("web_dialog_utils_killswitch")){var d=a==null?void 0:a.openPopupActionCommand,e=(c==null?0:c.ariaLabel)?{accessibilityData:{accessibilityData:{label:c.ariaLabel}}}:void 0;!d&&(a==null?0:a.viewModel)&&(d={openPopupAction:Object.assign({},{popup:{dialogViewModel:a.viewModel},popupType:(c==null?0:c.isModal)?"MODAL":"DIALOG"},e&&e)});d&&this.handleOpenPopupAction(d,b)}else{if(e=a==null?void 0:a.viewModel){var g=c=c===void 0?{}:c;c=g.ariaLabel;e={popup:{dialogViewModel:e},
popupType:g.isModal?"MODAL":"DIALOG"};g={accessibilityData:{label:c}};c&&(e.accessibilityData=g);e={openPopupAction:e}}else e=void 0;(e=(d=e)!=null?d:a==null?void 0:a.openPopupActionCommand)&&this.handleOpenPopupAction(e,b)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var a=this;return _.l(function(b){return b.return(a.handleGetOpenedPopupsAction_().filter(function(c){var d;return((d=c.openPopupAction)==null?void 0:d.popupType)==="DIALOG"}).length>0)})}}];var mYc;var nYc;var oYc=_.hx(["about:blank"]),pYc=function(){var a=_.P.apply(this,arguments)||this;a.isMuted=!1;a.pageLoadTimeoutId=void 0;return a};
_.z(pYc,_.P);_.f=pYc.prototype;_.f.dataChanged=function(){var a=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var b=this.data.url,c=_.Ak(b);_.w("enable_yt_ata_iframe_authuser")?(c=_.Ak(b),_.Sd(this.iframe,nyc(c))):_.Sd(this.iframe,c);this.pageLoadTimeoutId=_.sl(_.Qw(),function(){return void a.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.ny({destination:window,iframe:this.iframe,origin:_.fcb(c.toString()),channelName:"ataiframe",onMessage:_.Eab(pJc,function(d){qJc(d.data)?(d=_.Pc(d.data,1,_.cc,_.$f()),d.length!==1?_.Dl(Error("rl")):(d=d[0],d===3?(a.isMuted=!0,a.logStateChanged({adMuteRequested:!0})):d===1&&a.close())):_.Dl(Error("sl"))}),
onEstablished:function(){a.cancelPageLoadTimeout();a.logStateChanged({pageLoadSucceeded:!0})}})}};
_.f.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.Qw().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.f.logStateChanged=function(a){var b;if((b=this.data)==null?0:b.trackingParams)a={adsClientData:{aboutThisAdData:a}},_.ls().stateChanged(this.data.trackingParams,a)};
_.f.close=function(){_.lo(this.hostElement,"yt-close-popup-action",[this.is])};
_.f.handlesPopupClosed=function(a,b){var c=this,d,e;return _.l(function(g){if(g.nextAddress==1)return _.Fi("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.lo(c.hostElement,"on-about-this-ad-popup-closed",[c.isMuted,b]),g.jumpTo(0)):a&&oyc(a)?_.p(g,pyc(a),4):(c.isMuted&&_.lo(c.hostElement,"yt-mute-ad-action",[c.is,c]),g.jumpTo(0));if(d=g.yieldResult){var k=e=new _.EM(d),m=c.isMuted;k.getOptions().includes("onAboutThisAdPopupClosed")?_.Y2b(k,"onAboutThisAdPopupClosed",{isMuted:m,layoutId:b}):_.rv("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.ue(g)})};
_.f.onPopupClosed=function(a){var b=this,c,d;return _.l(function(e){c=_.ef(oYc);_.Sd(b.iframe,c);b.cancelPageLoadTimeout();if(!b.data)return e.jumpTo(0);b.ytRendererBehavior.markDirty();d=a.detail.context.openingElement;return _.p(e,b.handlesPopupClosed(d,b.data.layoutId),0)})};
_.f.detached=function(){this.cancelPageLoadTimeout()};
_.f.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var O4=pYc;O4.prototype.onPopupClosed=O4.prototype.onPopupClosed;O4.prototype.dataChanged=O4.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],O4.prototype,"ytRendererBehavior",void 0);_.U([_.ir("#iframe"),_.W("design:type",HTMLIFrameElement)],O4.prototype,"iframe",void 0);_.U([_.O(),_.W("design:type",Object)],O4.prototype,"data",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],O4.prototype,"dataChanged",null);
_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype",Promise)],O4.prototype,"onPopupClosed",null);O4=_.U([_.wr({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],O4);
_.S(O4,"yt-about-this-ad-renderer",function(){if(nYc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-about-this-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ads.yt_about_this_ad_renderer.yt.about.this.ad.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-about-this-ad-renderer"></iframe>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;mYc===void 0&&(mYc=document.createElement("template"));var d=mYc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);nYc=a}a=nYc;return a},{mode:2});var qYc;var rYc;var sYc=function(a){var b=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=b.message;"stack"in b&&(this.stack=b.stack);this.maxFileSizeMB=a;Object.setPrototypeOf(this,sYc.prototype)};
_.z(sYc,Error);var tYc=function(a,b){var c=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=c.message;"stack"in c&&(this.stack=c.stack);this.minWidth=a;this.minHeight=b;Object.setPrototypeOf(this,tYc.prototype)};
_.z(tYc,Error);var uYc=function(a){this.requirements=a;this.JSC$18385_maxFileSize=a.maxFileSizeMB*1024*1024},vYc=function(a,b){if(b.size>a.JSC$18385_maxFileSize)throw new sYc(a.requirements.maxFileSizeMB);
};var wYc=function(a,b){this.canvas=a;this.imageEditorBuilder=b};
wYc.prototype.addEventListeners=function(a){var b=function(e){xYc(a,e)};
this.JSC$18391_mouseDownEvent=b;var c=function(e){yYc(a,e)};
this.JSC$18391_mouseMoveEvent=c;var d=function(){zYc(a)};
this.JSC$18391_mouseUpEvent=d;this.canvas.addEventListener("mousedown",b);this.canvas.addEventListener("mousemove",c);document.addEventListener("mouseup",d)};
wYc.prototype.removeEventListeners=function(){this.JSC$18391_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18391_mouseDownEvent);this.JSC$18391_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18391_mouseMoveEvent);this.JSC$18391_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18391_mouseUpEvent)};
var AYc=function(a,b){a.removeEventListeners();return new Promise(function(c){var d=new Image;d.crossOrigin="anonymous";d.onload=function(){var e=a.imageEditorBuilder(a.canvas,d);a.addEventListeners(e);c(e)};
d.src=b})},P4=function(a,b,c,d,e,g,k,m){this.canvas=a;
this.image=b;this.requiredRatio=c;this.minImageCropDimension=d;this.minOutputImageResolution=e;this.component=g;this.styleFocusedCorner=m===void 0?!0:m;this.action=2;this.focusedCorner=this.resizeCorner=0;a=this.canvas.getContext("2d");if(!a)throw Error("tl");this.ctx=a;this.canvasMargin=k!=null?k:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;k=this.image;a=this.canvasInnerWidth/k.width;k.height*a>912&&(a=k.width/k.height*912/k.width);k=a;this.scaledImageWidth=this.canvas.width%2?
ryc(this.image.width*k):qyc(this.image.width*k);this.scaledImageHeight=Math.round(this.image.height*k);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18394_overlayMarginBottom=this.JSC$18394_overlayMarginTop=this.canvasMargin;this.JSC$18394_overlayMarginRight=this.JSC$18394_overlayMarginLeft=this.horizontalMargin;this.JSC$18394_overlayWidth=this.scaledImageWidth;this.JSC$18394_overlayHeight=this.scaledImageHeight;
a=this.image.width/this.image.height;a>this.requiredRatio?(this.JSC$18394_overlayWidth=this.canvas.width%2?ryc(this.scaledImageHeight*this.requiredRatio):qyc(this.scaledImageHeight*this.requiredRatio),this.JSC$18394_overlayMarginRight=this.JSC$18394_overlayMarginLeft=(this.canvas.width-this.JSC$18394_overlayWidth)/2):a<this.requiredRatio&&(this.JSC$18394_overlayHeight=this.canvas.height%2?ryc(this.scaledImageWidth/this.requiredRatio):qyc(this.scaledImageWidth/this.requiredRatio),this.JSC$18394_overlayMarginBottom=
this.JSC$18394_overlayMarginTop=(this.canvas.height-this.JSC$18394_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*k,this.scaledImageWidth);BYc(this)};
P4.prototype.getContext=function(){return this.ctx};
var xYc=function(a,b){b={x:Math.round(b.pageX-a.canvas.getBoundingClientRect().left),y:Math.round(b.pageY-a.canvas.getBoundingClientRect().top)};a.dragStart=b;CYc(a,b)!==0?(a.action=1,DYc(a,b),a.resizeCorner=CYc(a,b)):b.x>a.JSC$18394_overlayMarginLeft&&b.x<a.JSC$18394_overlayMarginLeft+a.JSC$18394_overlayWidth&&b.y>a.JSC$18394_overlayMarginTop&&b.y<a.JSC$18394_overlayMarginTop+a.JSC$18394_overlayHeight&&(a.action=0)},EYc=function(a,b){switch(b){case 1:return{x:a.JSC$18394_overlayMarginLeft,
y:a.JSC$18394_overlayMarginTop};case 2:return{x:a.JSC$18394_overlayMarginLeft,y:a.JSC$18394_overlayMarginTop+a.JSC$18394_overlayHeight};case 3:return{x:a.JSC$18394_overlayMarginLeft+a.JSC$18394_overlayWidth,y:a.JSC$18394_overlayMarginTop};case 4:return{x:a.JSC$18394_overlayMarginLeft+a.JSC$18394_overlayWidth,y:a.JSC$18394_overlayMarginTop+a.JSC$18394_overlayHeight};default:throw Error("ul");}},GYc=function(a,b){if(a.focusedCorner!==0){a.dragStart=EYc(a,a.focusedCorner);
a.action=1;a.resizeCorner=a.focusedCorner;var c=a.dragStart.x,d=a.dragStart.y;switch(b){case 0:a.focusedCorner===1||a.focusedCorner===4?(c-=10,d-=10):(c-=10,d+=10);break;case 1:a.focusedCorner===1||a.focusedCorner===4?(c+=10,d+=10):(c+=10,d-=10);break;case 2:c=a.focusedCorner===1||a.focusedCorner===4?c-10:c+10;d-=10;break;case 3:c=a.focusedCorner===1||a.focusedCorner===4?c+10:c-10;d+=10;break;default:throw Error("vl");}FYc(a,{x:c,y:d});BYc(a);a.action=2;a.dragStart=void 0}},yYc=function(a,b){b={x:Math.round(b.pageX-
a.canvas.getBoundingClientRect().left),
y:Math.round(b.pageY-a.canvas.getBoundingClientRect().top)};DYc(a,b);switch(a.action){case 1:FYc(a,b);break;case 0:a.dragStart&&(a.JSC$18394_overlayMarginLeft=Math.max(a.horizontalMargin,Math.min(a.JSC$18394_overlayMarginLeft-(a.dragStart.x-b.x),a.horizontalMargin+a.scaledImageWidth-a.JSC$18394_overlayWidth)),a.JSC$18394_overlayMarginRight=a.canvas.width-a.JSC$18394_overlayMarginLeft-a.JSC$18394_overlayWidth,a.JSC$18394_overlayMarginTop=Math.max(a.canvasMargin,Math.min(a.JSC$18394_overlayMarginTop-
(a.dragStart.y-b.y),a.scaledImageHeight-a.JSC$18394_overlayHeight+a.canvasMargin)),a.JSC$18394_overlayMarginBottom=a.canvas.height-(a.JSC$18394_overlayMarginTop+a.JSC$18394_overlayHeight));break;default:return}BYc(a);a.dragStart=b},zYc=function(a){a.action=2;
a.dragStart=void 0;document.body.style.cursor="auto"},DYc=function(a,b){switch(CYc(a,b)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:a.action!==1&&(document.body.style.cursor="auto")}},CYc=function(a,b){var c=a.JSC$18394_overlayMarginLeft-5,d=a.JSC$18394_overlayMarginTop-5,e=a.JSC$18394_overlayMarginLeft+a.JSC$18394_overlayWidth-5;
a=a.JSC$18394_overlayMarginTop+a.JSC$18394_overlayHeight-5;return HYc(b,{x:c,y:d})?1:HYc(b,{x:e,y:d})?3:HYc(b,{x:c,y:a})?2:HYc(b,{x:e,y:a})?4:0},HYc=function(a,b){return a.x>=b.x&&a.x<=b.x+10&&a.y>=b.y&&a.y<=b.y+10},FYc=function(a,b){if(a.dragStart)switch(a.resizeCorner){case 2:Math.abs((a.JSC$18394_overlayMarginLeft+a.JSC$18394_overlayWidth-b.x)/(b.y-a.JSC$18394_overlayMarginTop))>=a.requiredRatio?IYc(a,b.x):JYc(a,b.y);
break;case 1:Math.abs((a.JSC$18394_overlayMarginLeft+a.JSC$18394_overlayWidth-b.x)/(a.JSC$18394_overlayMarginTop+a.JSC$18394_overlayHeight-b.y))>=a.requiredRatio?KYc(a,b.x):JYc(a,b.y);break;case 4:Math.abs((b.x-a.JSC$18394_overlayMarginLeft)/(b.y-a.JSC$18394_overlayMarginTop))>=a.requiredRatio?IYc(a,b.x):LYc(a,b.y);break;case 3:Math.abs((b.x-a.JSC$18394_overlayMarginLeft)/(a.JSC$18394_overlayMarginTop+a.JSC$18394_overlayHeight-b.y))>=a.requiredRatio?KYc(a,b.x):LYc(a,b.y);break;default:throw Error("wl");
}},IYc=function(a,b){var c=a.JSC$18394_overlayMarginTop;
a.JSC$18394_overlayMarginBottom=MYc(a,b);a.JSC$18394_overlayHeight=a.canvas.height-a.JSC$18394_overlayMarginBottom-c;a.JSC$18394_overlayWidth=Math.round(a.JSC$18394_overlayHeight*a.requiredRatio);NYc(a)},KYc=function(a,b){var c=a.JSC$18394_overlayMarginTop+a.JSC$18394_overlayHeight;
a.JSC$18394_overlayMarginTop=MYc(a,b);a.JSC$18394_overlayHeight=c-a.JSC$18394_overlayMarginTop;a.JSC$18394_overlayWidth=Math.round(a.JSC$18394_overlayHeight*a.requiredRatio);NYc(a)},NYc=function(a){switch(a.resizeCorner){case 2:case 1:a.JSC$18394_overlayMarginLeft=a.canvas.width-a.JSC$18394_overlayMarginRight-a.JSC$18394_overlayWidth;
break;case 4:case 3:a.JSC$18394_overlayMarginRight=a.canvas.width-a.JSC$18394_overlayMarginLeft-a.JSC$18394_overlayWidth;break;default:throw Error("wl");}},JYc=function(a,b){var c=a.JSC$18394_overlayMarginLeft+a.JSC$18394_overlayWidth;
a.JSC$18394_overlayMarginLeft=OYc(a,b);a.JSC$18394_overlayWidth=c-a.JSC$18394_overlayMarginLeft;a.JSC$18394_overlayHeight=Math.round(a.JSC$18394_overlayWidth/a.requiredRatio);PYc(a)},LYc=function(a,b){var c=a.JSC$18394_overlayMarginLeft;
a.JSC$18394_overlayMarginRight=OYc(a,b);a.JSC$18394_overlayWidth=a.canvas.width-a.JSC$18394_overlayMarginRight-c;a.JSC$18394_overlayHeight=Math.round(a.JSC$18394_overlayWidth/a.requiredRatio);PYc(a)},PYc=function(a){switch(a.resizeCorner){case 2:case 4:a.JSC$18394_overlayMarginBottom=a.canvas.height-a.JSC$18394_overlayMarginTop-a.JSC$18394_overlayHeight;
break;case 1:case 3:a.JSC$18394_overlayMarginTop=a.canvas.height-a.JSC$18394_overlayMarginBottom-a.JSC$18394_overlayHeight;break;default:throw Error("wl");}},MYc=function(a,b){switch(a.resizeCorner){case 2:b=a.canvas.height-(a.JSC$18394_overlayMarginTop+QYc(a,b));
break;case 4:b=a.canvas.height-(a.JSC$18394_overlayMarginTop+RYc(a,b));break;case 1:b=a.JSC$18394_overlayMarginTop+a.JSC$18394_overlayHeight-QYc(a,b);break;case 3:b=a.JSC$18394_overlayMarginTop+a.JSC$18394_overlayHeight-RYc(a,b);break;default:throw Error("wl");}return Math.max(b,a.canvasMargin)},QYc=function(a,b){b=a.JSC$18394_overlayMarginLeft+a.JSC$18394_overlayWidth-Math.max(b,a.horizontalMargin);
b=b<0?a.JSC$18394_overlayWidth:Math.max(b,a.minOverlayWidth);return Math.round(b/a.requiredRatio)},RYc=function(a,b){b=a.canvas.width-Math.max(a.canvas.width-b,a.horizontalMargin)-a.JSC$18394_overlayMarginLeft;
b=b<0?a.JSC$18394_overlayWidth:Math.max(b,a.minOverlayWidth);return Math.round(b/a.requiredRatio)},OYc=function(a,b){switch(a.resizeCorner){case 2:b=a.canvas.width-a.JSC$18394_overlayMarginRight-SYc(a,b);
break;case 4:b=a.canvas.width-a.JSC$18394_overlayMarginLeft-SYc(a,b);break;case 1:b=a.canvas.width-a.JSC$18394_overlayMarginRight-TYc(a,b);break;case 3:b=a.canvas.width-a.JSC$18394_overlayMarginLeft-TYc(a,b);break;default:throw Error("wl");}return Math.max(b,a.horizontalMargin)},SYc=function(a,b){b=a.canvas.height-Math.max(a.canvas.height-b,a.canvasMargin)-a.JSC$18394_overlayMarginTop;
return b<0?a.JSC$18394_overlayWidth:Math.max(Math.round(b*a.requiredRatio),a.minOverlayWidth)},TYc=function(a,b){b=a.JSC$18394_overlayMarginTop+a.JSC$18394_overlayHeight-Math.max(b,a.canvasMargin);
return b<0?a.JSC$18394_overlayWidth:Math.max(Math.round(b*a.requiredRatio),a.minOverlayWidth)},BYc=function(a){a.ctx.clearRect(0,0,a.canvas.width,a.canvas.height);
a.ctx.drawImage(a.image,0,0,a.image.width,a.image.height,a.horizontalMargin,a.canvasMargin,a.canvas.width-2*a.horizontalMargin,a.scaledImageHeight);a.ctx.fillStyle="rgba(0, 0, 0, 0.7)";a.ctx.fillRect(a.horizontalMargin,a.JSC$18394_overlayMarginTop,a.JSC$18394_overlayMarginLeft-a.horizontalMargin,a.JSC$18394_overlayHeight);a.ctx.fillRect(a.JSC$18394_overlayMarginLeft+a.JSC$18394_overlayWidth,a.JSC$18394_overlayMarginTop,a.JSC$18394_overlayMarginRight-a.horizontalMargin,a.JSC$18394_overlayHeight);a.ctx.fillRect(a.horizontalMargin,
a.canvasMargin,a.scaledImageWidth,a.JSC$18394_overlayMarginTop-a.canvasMargin);a.ctx.fillRect(a.horizontalMargin,a.JSC$18394_overlayMarginTop+a.JSC$18394_overlayHeight,a.scaledImageWidth,a.JSC$18394_overlayMarginBottom-a.canvasMargin);a.drawOverlay();a.component&&_.io(a.component,"image-updated")};
P4.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18394_overlayMarginLeft,this.JSC$18394_overlayMarginTop,this.JSC$18394_overlayWidth,this.JSC$18394_overlayHeight);UYc(this)};
var UYc=function(a){var b=a.JSC$18394_overlayMarginLeft-5,c=a.JSC$18394_overlayMarginTop-5,d=a.JSC$18394_overlayMarginLeft+a.JSC$18394_overlayWidth-5,e=a.JSC$18394_overlayMarginTop+a.JSC$18394_overlayHeight-5;a.ctx.fillStyle="#FFF";a.ctx.fillRect(b,c,10,10);a.ctx.strokeRect(b,c,10,10);a.ctx.fillRect(d,c,10,10);a.ctx.strokeRect(d,c,10,10);a.ctx.fillRect(b,e,10,10);a.ctx.strokeRect(b,e,10,10);a.ctx.fillRect(d,e,10,10);a.ctx.strokeRect(d,e,10,10);if(a.focusedCorner!==0&&a.styleFocusedCorner){a.ctx.lineWidth=
4;a.ctx.strokeStyle="#3EA6FF";switch(a.focusedCorner){case 1:--b;--c;break;case 2:--b;c=e-1;break;case 3:b=d-1;--c;break;case 4:b=d-1;c=e-1;break;default:return}a.ctx.strokeRect(b,c,12,12)}};
P4.prototype.crop=function(a,b){b=b===void 0?!0:b;var c=this.image.width/this.scaledImageWidth,d=document.createElement("canvas"),e=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],g=this.JSC$18394_overlayWidth*c,k=this.JSC$18394_overlayHeight*c;d.width=Math.max(g,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);d.height=Math.max(k,e);a&&(d.width=Math.min(d.width,d.height),d.height=Math.min(d.width,d.height));
a=d.getContext("2d");if(!a)throw Error("kl");e=(this.JSC$18394_overlayMarginLeft-this.horizontalMargin)*c;c*=this.JSC$18394_overlayMarginTop-this.canvasMargin;b||(a.fillStyle="white",a.fillRect(0,0,d.width,d.height));a.drawImage(this.image,e,c,g,k,0,0,d.width,d.height);return d};var VYc=function(a,b,c,d,e){P4.call(this,a,b,c,d,void 0,e,8,!1)};
_.z(VYc,P4);VYc.prototype.drawOverlay=function(){var a=this.getContext(),b=this.JSC$18394_overlayWidth,c=this.JSC$18394_overlayHeight,d=this.JSC$18394_overlayMarginTop,e=this.JSC$18394_overlayMarginLeft;a.lineWidth=2;a.strokeStyle="#3EA6FF";a.beginPath();a.arc(e+b/2,d+c/2,b/2,0,2*Math.PI);a.stroke();a.strokeRect(e,d,b,c);UYc(this)};
var WYc={maxFileSizeMB:15,minWidth:98,minHeight:98},XYc=["image/png","image/jpeg","image/gif"],YYc=function(){var a=_.P.apply(this,arguments)||this;a.fileSelectorFocusListener=null;a.errorMessage=null;a.isLoading=!0;a.hideContainer=!0;a.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return a};
_.z(YYc,_.P);_.f=YYc.prototype;_.f.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.f.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.f.computePlaylistThumbnail=function(a){return a==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.f.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.lo(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.f.setErrorState=function(a){this.resetErrorState();a&&(this.errorMessage=a)};
_.f.showPopup=function(){var a=this;this.hideContainer=!1;_.sl(_.zk,function(){_.io(a.hostElement,"yt-refit")});
this.isLoading=!1};
_.f.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.f.closePopup=function(){this.resetFileSelector();_.lo(this.hostElement,"yt-close-popup-action",[this.is])};
_.f.onCancelTap=function(){this.isPlaylistThumbnail||_.lo(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.f.openFileSelector=function(){var a=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.sl(_.zk,function(){setTimeout(function(){if(!a.fileSelector.files||a.fileSelector.files.length===0)a.onCancelTap();a.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(b){b instanceof Error?_.Bl(b):_.Cl(new _.qj(JSON.stringify(b)))}};
_.f.handleFileSelection=function(){var a=this,b,c,d,e,g,k;return _.l(function(m){switch(m.nextAddress){case 1:_.pe(m,2);if(!a.fileSelector.files||!a.imageEditorCanvas)return a.onCancelTap(),m.return();b=a.fileSelector.files[0];vYc(a.imageChecker,b);_.pe(m,4);return _.p(m,Qxc(b),6);case 6:a.mimeType=m.yieldResult;_.Jj(m,5,2);break;case 4:_.te(m,2),_.lo(a.hostElement,"yt-image-selection-error-action",[(c=a.data)==null?void 0:c.genericImageLoadErrorMessage]),a.onCancelTap();case 5:d=new FileReader;d.addEventListener("load",
function(){var n,r;return _.l(function(t){if(t.nextAddress==1){if(!d.result)return _.Dl(Error("ml")),t.return();n=d.result;r=new Image;r.src=n;r.onload=function(){try{var u=a.imageChecker;if(r.width<u.requirements.minWidth||r.height<u.requirements.minHeight)throw new tYc(u.requirements.minWidth,u.requirements.minHeight);}catch(A){if(A instanceof tYc){var x;_.lo(a.hostElement,"yt-image-selection-error-action",[(x=a.data)==null?void 0:x.imageDimensionErrorMessage]);a.logImageDimensionErrorVe()}else A instanceof
Error?_.Bl(A):(u=new _.qj(JSON.stringify(A)),_.Bl(u));a.onCancelTap()}a.showPopup()};
r.onerror=function(){var u;_.lo(a.hostElement,"yt-image-selection-error-action",[(u=a.data)==null?void 0:u.genericImageLoadErrorMessage]);a.onCancelTap()};
return _.p(t,AYc(a.imageEditorCanvas,n),2)}a.imageEditor=t.yieldResult;a.updatePositionOfAllCorners();a.addEventListeners(a.imageEditor);_.ue(t)})},!1);
d.readAsDataURL(b);_.Jj(m,0);break;case 2:e=_.te(m),e instanceof sYc?_.lo(a.hostElement,"yt-image-selection-error-action",[(g=a.data)==null?void 0:g.imageSizeErrorMessage]):(e instanceof Error?_.Bl(e):_.Cl(new _.qj(JSON.stringify(e))),_.lo(a.hostElement,"yt-image-selection-error-action",[(k=a.data)==null?void 0:k.genericImageLoadErrorMessage])),a.onCancelTap(),_.ue(m)}})};
_.f.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var a=_.ks(_.ls(),{veType:232707,visualElement:_.ku(232707)});a&&(a={visualElement:a},_.js().reportShown(a))}};
_.f.handleImageSelectionErrorAction=function(a){this.isPlaylistThumbnail&&_.i0a(this.hostElement,a)};
_.f.convertToImageFormatBundle=function(a){var b=this,c,d,e;return _.l(function(g){switch(g.nextAddress){case 1:return c=a.toDataURL(b.outputMimeType,1),_.p(g,Rxc(c),2);case 2:d=g.yieldResult;_.pe(g,3);vYc(b.imageChecker,d);_.Jj(g,4);break;case 3:e=_.te(g);if(!(e instanceof sYc))throw e;_.Dl(new _.qj("Output size is bigger than input size for image",b.mimeType,b.outputMimeType,d.size));c=a.toDataURL("image/jpeg",.95);return _.p(g,Rxc(c),6);case 6:d=g.yieldResult;case 4:return g.return({dataUrl:c,
imageFile:d})}})};
_.f.handleUploadImageToScottyCommand=function(a){var b=this,c,d,e,g,k,m,n,r,t,u;return _.l(function(x){switch(x.nextAddress){case 1:if(!b.imageEditor||!_.y(a,HJc))return x.return();c=_.y(a,HJc).scottyUploadUrl;if(!c){var A=new _.qj("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.Bl(A);return x.return()}_.pe(x,2);b.setLoadingState();d=b.imageEditor.crop(!1,!1);return _.p(x,b.convertToImageFormatBundle(d),4);case 4:return e=x.yieldResult,_.p(x,Oxc(e.imageFile,c),5);case 5:g=
x.yieldResult;((k=b.data)==null?0:k.onUploadEndpoint)?(m=b.buildUploadServiceEndpoint(g),b.ytComponentBehavior.resolveCommand(m),n=_.y(m,_.OE),((r=n)==null?0:r.params)?b.closePopup():b.resetFileSelector()):(_.lo(b.hostElement,"yt-image-updated-action",[e.dataUrl,g]),b.closePopup());_.Jj(x,0);break;case 2:t=_.te(x),b.setErrorState((u=b.data)==null?void 0:u.uploadErrorMessage),t instanceof Error?_.Bl(t):(A=new _.qj(JSON.stringify(t)),_.Bl(A)),_.ue(x)}})};
_.f.buildUploadServiceEndpoint=function(a){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",a),this.data.onUploadEndpoint):null};
_.f.dataChanged=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1){if(!a.data||!a.canvasElement)return c.return();a.data.imageRatio&&a.data.minImageCropWidth||_.Cl(new _.qj("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));b=function(d,e){return a.data.imageType==="IMAGE_TYPE_AVATAR"?new VYc(d,e,a.data.imageRatio,[a.data.minImageCropWidth,a.data.minImageCropWidth/a.data.imageRatio],a.hostElement):new P4(d,e,a.data.imageRatio,[a.data.minImageCropWidth,
a.data.minImageCropWidth/a.data.imageRatio],void 0,a.hostElement,8,!1)};
a.imageEditorCanvas=new wYc(a.canvasElement,b);return a.data.url?_.p(c,AYc(a.imageEditorCanvas,a.data.url),3):(a.hideContainer=!0,a.openFileSelector(),c.jumpTo(0))}a.imageEditor=c.yieldResult;a.showPopup();a.addEventListeners(a.imageEditor);_.ue(c)})};
_.f.addEventListeners=function(a){this.removeEventListeners();var b=function(e){xYc(a,e)};
this.JSC$18402_mouseDownEvent=b;var c=function(e){yYc(a,e)};
this.JSC$18402_mouseMoveEvent=c;var d=function(){zYc(a)};
this.JSC$18402_mouseUpEvent=d;this.topLeftCorner.addEventListener("mousedown",b);this.topLeftCorner.addEventListener("mousemove",c);this.topLeftCorner.addEventListener("mouseup",d);this.topRightCorner.addEventListener("mousedown",b);this.topRightCorner.addEventListener("mousemove",c);this.topRightCorner.addEventListener("mouseup",d);this.bottomLeftCorner.addEventListener("mousedown",b);this.bottomLeftCorner.addEventListener("mousemove",c);this.bottomLeftCorner.addEventListener("mouseup",d);this.bottomRightCorner.addEventListener("mousedown",
b);this.bottomRightCorner.addEventListener("mousemove",c);this.bottomRightCorner.addEventListener("mouseup",d)};
_.f.removeEventListeners=function(){this.JSC$18402_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18402_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18402_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18402_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18402_mouseDownEvent));this.JSC$18402_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18402_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18402_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18402_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18402_mouseMoveEvent));this.JSC$18402_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18402_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18402_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18402_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18402_mouseUpEvent))};
_.f.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var a=document.activeElement;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;switch(a){case this.topLeftCorner:this.imageEditor.focusedCorner=1;break;case this.topRightCorner:this.imageEditor.focusedCorner=3;break;case this.bottomLeftCorner:this.imageEditor.focusedCorner=2;break;case this.bottomRightCorner:this.imageEditor.focusedCorner=4;break;default:return this.imageEditor.focusedCorner=0,!1}return!0};
_.f.updatePositionOfCorner=function(a,b){var c=a.y-b.offsetHeight/2+4;b.style.left=a.x-b.offsetWidth/2+16+"px";b.style.top=c+"px"};
_.f.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var a=_.h([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),b=a.next();!b.done;b=a.next()){b=b.value;var c=EYc(this.imageEditor,b.corner);this.updatePositionOfCorner(c,b.div)}};
_.f.onLeft=function(a){this.imageEditor&&this.setFocusInImageEditor()&&(GYc(this.imageEditor,0),this.updatePositionOfAllCorners(),a.preventDefault())};
_.f.onRight=function(a){this.imageEditor&&this.setFocusInImageEditor()&&(GYc(this.imageEditor,1),this.updatePositionOfAllCorners(),a.preventDefault())};
_.f.onUp=function(a){this.imageEditor&&this.setFocusInImageEditor()&&(GYc(this.imageEditor,2),this.updatePositionOfAllCorners(),a.preventDefault())};
_.f.onDown=function(a){this.imageEditor&&this.setFocusInImageEditor()&&(GYc(this.imageEditor,3),this.updatePositionOfAllCorners(),a.preventDefault())};
_.f.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.Um.Object.defineProperties(YYc.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&XYc.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var a,b,c;((b=this.data)==null?0:b.imageRatio)&&((c=this.data)==null?0:c.minImageCropWidth)?a={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:a=WYc;return new uYc(a)}}});
var Q4=YYc;Q4.prototype.updatePositionOfAllCorners=Q4.prototype.updatePositionOfAllCorners;Q4.prototype.dataChanged=Q4.prototype.dataChanged;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],Q4.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],Q4.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.FD),_.W("design:type",Object)],Q4.prototype,"ironA11yKeysBehavior",void 0);
_.U([_.ir("#canvas"),_.W("design:type",HTMLCanvasElement)],Q4.prototype,"canvasElement",void 0);_.U([_.ir("#file-selector"),_.W("design:type",HTMLInputElement)],Q4.prototype,"fileSelector",void 0);_.U([_.ir("#top-left-corner"),_.W("design:type",HTMLDivElement)],Q4.prototype,"topLeftCorner",void 0);_.U([_.ir("#top-right-corner"),_.W("design:type",HTMLDivElement)],Q4.prototype,"topRightCorner",void 0);
_.U([_.ir("#bottom-left-corner"),_.W("design:type",HTMLDivElement)],Q4.prototype,"bottomLeftCorner",void 0);_.U([_.ir("#bottom-right-corner"),_.W("design:type",HTMLDivElement)],Q4.prototype,"bottomRightCorner",void 0);_.U([_.O(),_.W("design:type",Object)],Q4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],Q4.prototype,"errorMessage",void 0);_.U([_.O(),_.W("design:type",Object)],Q4.prototype,"isLoading",void 0);_.U([_.O(),_.W("design:type",Object)],Q4.prototype,"hideContainer",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.W("design:type",Boolean)],Q4.prototype,"isPlaylistThumbnail",void 0);_.U([_.mr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],Q4.prototype,"dataChanged",null);_.U([_.M("image-updated"),_.M("yt-refit"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Q4.prototype,"updatePositionOfAllCorners",null);
Q4=_.U([_.wr({is:"yt-image-editor-renderer",disableElementRegistration:!0})],Q4);
_.S(Q4,"yt-image-editor-renderer",function(){if(rYc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.channels.yt_image_editor_renderer.yt.image.editor.renderer.css.js--\x3e<div class="container style-scope yt-image-editor-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope yt-image-editor-renderer">\n    <h2 class="style-scope yt-image-editor-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope yt-image-editor-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="content style-scope yt-image-editor-renderer" slot="content" no-padding="" id="canvas-container">\n    <div class="error style-scope yt-image-editor-renderer" hidden="[[!errorMessage]]">\n      <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope yt-image-editor-renderer"></yt-icon>\n      <yt-formatted-string id="error" class="error-message style-scope yt-image-editor-renderer" text="[[errorMessage]]">\n    </yt-formatted-string>\n    </div>\n    <canvas id="canvas" width="600" height="600" class="style-scope yt-image-editor-renderer">\n    </canvas>\n    <div class="drag top-left style-scope yt-image-editor-renderer" id="top-left-corner" aria-label="[[data.topLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag top-right style-scope yt-image-editor-renderer" id="top-right-corner" aria-label="[[data.topRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-left style-scope yt-image-editor-renderer" id="bottom-left-corner" aria-label="[[data.bottomLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-right style-scope yt-image-editor-renderer" id="bottom-right-corner" aria-label="[[data.bottomRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n  </div>\n  <div class="button-layer style-scope yt-image-editor-renderer">\n    <input id="file-selector" accept="image/*" hidden="" type="file" on-change="handleFileSelection" class="style-scope yt-image-editor-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="update-button" data="[[data.updateButton.buttonRenderer]]" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner-container style-scope yt-image-editor-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope yt-image-editor-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;qYc===void 0&&(qYc=document.createElement("template"));var d=qYc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);rYc=a}a=rYc;return a},{mode:2});var ZYc;var $Yc;var aZc=function(){return _.P.apply(this,arguments)||this};
_.z(aZc,_.P);aZc.prototype.updateMinutesFromBinding=function(a){this.handleMinutesChanged&&this.handleMinutesChanged(a)};
aZc.prototype.updateSecondsFromBinding=function(a){this.handleSecondsChanged&&this.handleSecondsChanged(a)};
aZc.prototype.updateDescriptionFromBinding=function(a){this.handleDescriptionChanged&&this.handleDescriptionChanged(a)};
var R4=aZc;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],R4.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],R4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],R4.prototype,"minutes",void 0);_.U([_.O(),_.W("design:type",String)],R4.prototype,"seconds",void 0);_.U([_.O(),_.W("design:type",String)],R4.prototype,"description",void 0);_.U([_.O(),_.W("design:type",Function)],R4.prototype,"handleMinutesChanged",void 0);
_.U([_.O(),_.W("design:type",Function)],R4.prototype,"handleSecondsChanged",void 0);_.U([_.O(),_.W("design:type",Function)],R4.prototype,"handleDescriptionChanged",void 0);_.U([_.O(),_.W("design:type",Number)],R4.prototype,"characterLimit",void 0);_.U([_.O(),_.W("design:type",Number)],R4.prototype,"textNumRows",void 0);R4=_.U([_.wr({is:"yt-report-details-form-content",disableElementRegistration:!0})],R4);
_.S(R4,"yt-report-details-form-content",function(){if($Yc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_content.yt.report.details.form.content.css.js--\x3e<div id="content" class="style-scope yt-report-details-form-content"><label id="timestamp" class="style-scope yt-report-details-form-content">\n    [[getSimpleString(data.timestampLabel)]]\n    <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope yt-report-details-form-content"></yt-timestamp-input></label><div id="description" class="style-scope yt-report-details-form-content"><tp-yt-paper-input-container no-label-float="" use-v2-underline="" class="style-scope yt-report-details-form-content"><tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope yt-report-details-form-content" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[characterLimit]]" placeholder="[[getSimpleString(data.descriptionHint)]]" rows$="[[textNumRows]]" value="[[description]]" on-value-changed="updateDescriptionFromBinding"></tp-yt-iron-autogrow-textarea><tp-yt-paper-input-char-counter slot="add-on" class="style-scope yt-report-details-form-content"></tp-yt-paper-input-char-counter></tp-yt-paper-input-container></div><yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope yt-report-details-form-content"></yt-formatted-string></div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;ZYc===void 0&&(ZYc=document.createElement("template"));var d=ZYc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);$Yc=a}a=$Yc;return a},{mode:2});var bZc;var cZc;var dZc=function(){var a=_.P.apply(this,arguments)||this;a.updateMinutesFromBinding=function(b){a.minutes=b.detail.value};
a.updateSecondsFromBinding=function(b){a.seconds=b.detail.value};
a.updateDescriptionFromBinding=function(b){a.description=b.detail.value};
return a};
_.z(dZc,_.P);_.f=dZc.prototype;_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.f.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.submitButton":{id:"submit-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.f.ready=function(){_.E(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.f.onSubmitYtAction=function(a){var b=a.detail;b.actionName==="yt-service-request"&&(b=b.args[1],b.flagEndpoint&&(a.stopPropagation(),this.refireAction(b)))};
_.f.refireAction=function(a){var b={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(b.vss_id=this.vssId);_.oo(this.hostElement,[a,b]);this.submitDisabled=!0};
_.f.dataChanged=function(){var a=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var b=_.au();b&&b.getPlayerPromise().then(function(c){var d=c.getOption("cc","track")||c.getOption("captions","track");d&&(a.vssId=d.vss_id);c=c.getCurrentTime();a.minutes=Math.floor(c/60).toString();a.seconds=(Math.floor(c)%60).toString()})};
_.f.updateSubmitButtonState=function(){var a;((a=this.data)==null?0:a.isFreeformReason)?this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds===""||!this.description||this.description.length<3):this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds==="")};
_.f.onYtServiceRequestCompleted=function(){_.lo(this.hostElement,"yt-close-popup-action")};
_.f.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.Um.Object.defineProperties(dZc.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.textNumRows)||4}}});
var S4=dZc;S4.prototype.onYtServiceRequestError=S4.prototype.onYtServiceRequestError;S4.prototype.onYtServiceRequestCompleted=S4.prototype.onYtServiceRequestCompleted;S4.prototype.updateSubmitButtonState=S4.prototype.updateSubmitButtonState;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],S4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);
_.U([_.O({observer:"dataChanged"}),_.W("design:type",Object)],S4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],S4.prototype,"submitDisabled",void 0);_.U([_.O(),_.W("design:type",String)],S4.prototype,"minutes",void 0);_.U([_.O(),_.W("design:type",String)],S4.prototype,"seconds",void 0);_.U([_.O(),_.W("design:type",String)],S4.prototype,"description",void 0);_.U([_.O(),_.W("design:type",String)],S4.prototype,"vssId",void 0);
_.U([_.O({value:_.Fi("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.W("design:type",Boolean)],S4.prototype,"isMusic",void 0);_.U([_.K("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],S4.prototype,"characterLimit",null);_.U([_.K("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],S4.prototype,"textNumRows",null);
_.U([_.mr("minutes","seconds","description","submitDisabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],S4.prototype,"updateSubmitButtonState",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],S4.prototype,"onYtServiceRequestCompleted",null);
_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],S4.prototype,"onYtServiceRequestError",null);S4=_.U([_.wr({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],S4);
_.S(S4,"yt-report-details-form-renderer",function(){if(cZc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_renderer.yt.report.details.form.renderer.css.js--\x3e<div id="header" class="style-scope yt-report-details-form-renderer">\n  <div id="back-button" class="style-scope yt-report-details-form-renderer"></div>\n  <h2 id="title" class="style-scope yt-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n</div>\n  <yt-report-details-form-content character-limit="[[characterLimit]]" data="[[data]]" description="[[description]]" handle-description-changed="[[updateDescriptionFromBinding]]" handle-minutes-changed="[[updateMinutesFromBinding]]" handle-seconds-changed="[[updateSecondsFromBinding]]" minutes="[[minutes]]" seconds="[[seconds]]" text-num-rows="[[textNumRows]]" class="style-scope yt-report-details-form-renderer">\n  </yt-report-details-form-content>\n<div id="buttons" class="style-scope yt-report-details-form-renderer">\n  <div id="cancel-button" class="style-scope yt-report-details-form-renderer"></div>\n  <div id="submit-button" class="style-scope yt-report-details-form-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;bZc===void 0&&(bZc=document.createElement("template"));var d=bZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);cZc=a}a=cZc;return a});var eZc;var fZc;var gZc;var hZc;var iZc=function(){return _.P.apply(this,arguments)||this};
_.z(iZc,_.P);
iZc.prototype.onCheckedChanged_=function(){if(this.data){var a=_.E(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.lo(this.hostElement,"yt-additional-detail-checkbox-update",[a]):this.data.identifier==="yt-hide-user-checkbox"?_.lo(this.hostElement,"yt-hide-user-checkbox-update",[a]):a&&this.data.enableCommand?_.lo(this.hostElement,"yt-modify-report-form-command",[_.y(this.data.enableCommand,PJc)]):!a&&this.data.disableCommand&&_.lo(this.hostElement,
"yt-modify-report-form-command",[_.y(this.data.enableCommand,PJc)])}};
iZc.prototype.onLabelTap_=function(a){a.target.tagName!="A"&&(_.E(this.hostElement).querySelector("#checkbox").checked=!_.E(this.hostElement).querySelector("#checkbox").checked)};
var jZc=iZc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],jZc.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],jZc.prototype,"data",void 0);jZc=_.U([_.wr({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],jZc);
_.S(jZc,"yt-boolean-form-field-v2-renderer",function(){if(hZc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-boolean-form-field-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_boolean_form_field_v2_renderer.yt.boolean.form.field.v2.renderer.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" aria-labelledby="yt-boolean-form-field-v2-renderer-label" checked="[[data.value]]" on-checked-changed="onCheckedChanged_" class="style-scope yt-boolean-form-field-v2-renderer">\n</tp-yt-paper-checkbox>\n<div id="content" class="style-scope yt-boolean-form-field-v2-renderer">\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-label" class="label style-scope yt-boolean-form-field-v2-renderer" text="[[data.label]]" on-tap="onLabelTap_">\n  </yt-formatted-string>\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-tooltip" class="tooltip style-scope yt-boolean-form-field-v2-renderer" text="[[data.tooltip]]">\n  </yt-formatted-string>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;gZc===void 0&&(gZc=document.createElement("template"));var d=gZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);hZc=a}a=hZc;return a});var kZc=function(){var a=_.P.apply(this,arguments)||this;a.canShowAdditionalDetailCheckbox=!1;a.canShowCheckbox=!1;a.keepDropdownFocusedAfterSelection=!0;return a};
_.z(kZc,_.P);kZc.prototype.configureRendererStamper=function(){return{"data.legalReportCheckbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}},"data.additionalDetailCheckbox":{id:"additional-detail-checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
var T4=kZc;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],T4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],T4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],T4.prototype,"canShowAdditionalDetailCheckbox",void 0);_.U([_.O(),_.W("design:type",Object)],T4.prototype,"canShowCheckbox",void 0);_.U([_.O(),_.W("design:type",Object)],T4.prototype,"keepDropdownFocusedAfterSelection",void 0);
T4=_.U([_.wr({is:"yt-report-form-modal-content",disableElementRegistration:!0})],T4);
_.S(T4,"yt-report-form-modal-content",function(){if(fZc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_content.yt.report.form.modal.content.css.js--\x3e<div id="container" hidden="[[!data]]" class="style-scope yt-report-form-modal-content"><yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string><yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" restore-focus-on-close="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-content"></yt-options-renderer><div id="additional-detail-checkbox-container" hidden="[[!canShowAdditionalDetailCheckbox]]" class="style-scope yt-report-form-modal-content"></div><div id="checkbox-container" hidden="[[!canShowCheckbox]]" class="style-scope yt-report-form-modal-content"></div><yt-formatted-string id="footer" hidden="[[!data.footer]]" split-lines="" text="[[data.footer]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;eZc===void 0&&(eZc=document.createElement("template"));var d=eZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);fZc=a}a=fZc;return a},{mode:2});var lZc;var mZc;var nZc=function(){var a=_.P.apply(this,arguments)||this;a.submitting=!1;a.submitButtonDisabled=!0;a.command=null;a.canShowCheckbox=!1;a.canShowAdditionalDetailCheckbox=!1;a.canShowNextButton=!1;a.additionalDetailCheckboxChecked=!1;a.refitJob=0;a.keepDropdownFocusedAfterSelection=!0;a.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-report-form-endpoint-update":"handleReportFormEndpointUpdateAction","yt-confirm-dialog-close-action":"handleConfirmDialogCloseAction","yt-modify-report-form-command":"handleModifyReportFormCommand",
"yt-additional-detail-checkbox-update":"handleAdditionalDetailCheckboxUpdateAction"};return a};
_.z(nZc,_.P);_.f=nZc.prototype;_.f.created=function(){this.refitJob=0};
_.f.attached=function(){this.JSC$18425_scroller&&(this.JSC$18425_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18425_scroller.attached&&typeof this.JSC$18425_scroller.attached==="function"&&this.JSC$18425_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.dataChanged=function(a){a&&(this.toggleSubmitButton(!!this.get("data.submitButton.buttonRenderer.isDisabled")),this.set("data.submitButton.buttonRenderer.isDisabled",void 0),this.set("data.nextButton.buttonRenderer.isDisabled",void 0),this.command=null,this.additionalDetailCheckboxChecked=this.canShowNextButton=this.canShowAdditionalDetailCheckbox=this.canShowCheckbox=this.hideReportForm=this.submitting=!1,a.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),a.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.f.onYtPopupOpened=function(){var a=_.au();a&&a.getPlayerPromise().then(function(b){b.pauseVideo()})};
_.f.onYtNavigate=function(a){_.y(a.detail.endpoint,_.vzb)&&(a.stopPropagation(),this.hideReportForm=!0)};
_.f.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.f.onYtServiceRequestCompleted=function(a,b){var c=b.actions;if(c){if(c.length===1&&_.y(c[0],_.ro)){var d;c=((d=_.y(c[0],_.ro))==null?void 0:d.commands)||[]}d=0;for(var e=c.length;d<e;d++)_.y(c[d],_.JE)&&(a.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(c[d]))}if(b.data&&(a=this.get("feedbackResponses",b.data)))for(b=0;b<a.length;b++)if(a[b].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.f.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.f._onDescendantIronResize=function(a){a.stopPropagation();return!1};
_.f.handleReportFormEndpointUpdateAction=function(a){if(a.submitEndpoint){var b=this.command=a.submitEndpoint;b=_.y(b,_.fBb);if(b==null?0:b.additionalDetailCheckboxChecked)b.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else a.submitNavigationEndpoint?(this.command=a.submitNavigationEndpoint,this.toggleSubmitButton(!1)):a.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:a.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;a.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",a));this.refit()};
_.f.handleConfirmDialogCloseAction=function(a){a.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.f.submitButtonDisabledChanged=function(){var a=this.hostElement.parentElement;a&&a.invalidateTabbables&&a.invalidateTabbables()};
_.f.handleModifyReportFormCommand=function(a){a=this.get("action",a);a==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:a==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:a==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:a==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:a==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:a==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.f.updateDialogStyling=function(){var a,b,c,d,e,g=((e=(a=this.data)==null?void 0:(b=a.optionsSupportedRenderers)==null?void 0:(c=b.optionsRenderer)==null?void 0:(d=c.items)==null?void 0:d.length)!=null?e:0)<=2?0:240;_.fr(this.hostElement,{"--yt-report-form-modal-renderer-min-width":g+"px"})};
_.f.toggleSubmitButton=function(a){this.submitButtonDisabled=!a;this.submitButtonDisabled=a};
_.f.computeSubmitButtonData=function(a,b){var c={};_.y(b,_.vzb)?c.navigationEndpoint=b:c.command=b||void 0;a&&a.buttonRenderer&&_.Cf.extend(c,a.buttonRenderer);return c};
_.f.computeNextButtonData=function(a,b){var c={};if(!a||!a.buttonRenderer)return c;_.Cf.extend(c,a.buttonRenderer);if(!b)return c;if(_.y(b,_.vzb))c.navigationEndpoint=SBc(b);else if(c.command=SBc(b),a=_.y(c.command,_.fBb))a.legalCheckboxChecked=!0;return c};
_.f.computeShowNextButton=function(a,b,c){return!!a&&b&&c};
_.f.refit=function(){var a=this;this.refitJob||(this.refitJob=_.zk.addLowPriorityJob(function(){_.io(a.hostElement,"yt-refit");a.refitJob=0}))};
_.f.handleAdditionalDetailCheckboxUpdateAction=function(a){this.additionalDetailCheckboxChecked=a;_.y(this.command,_.fBb).additionalDetailCheckboxChecked=a};
_.Um.Object.defineProperties(nZc,{template:{configurable:!0,enumerable:!0,get:function(){if(mZc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_renderer.yt.report.form.modal.renderer.css.js--\x3e<template is="dom-if" if="[[submitting]]" restamp="" class="style-scope yt-report-form-modal-renderer">\n  <div id="container" class="style-scope yt-report-form-modal-renderer">\n    <div id="loading-indicator" class="style-scope yt-report-form-modal-renderer">\n      <tp-yt-paper-spinner-lite active="" class="style-scope yt-report-form-modal-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n</template>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-report-form-modal-renderer"></yt-formatted-string>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-report-form-modal-renderer">\n  <yt-report-form-modal-content can-show-additional-detail-checkbox="[[canShowAdditionalDetailCheckbox]]" can-show-checkbox="[[canShowCheckbox]]" data="[[data]]" keep-dropdown-focused-after-selection="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-report-form-modal-content>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-report-form-modal-renderer">\n  <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="submit-button" data="[[computeSubmitButtonData(data.submitButton, command)]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" hidden="[[computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, command)]]" dialog-confirm="" hidden="[[!computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;lZc===void 0&&(lZc=document.createElement("template"));var d=lZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);mZc=a}a=mZc;return a}}});
var U4=nZc;U4.prototype.onYtServiceRequestError=U4.prototype.onYtServiceRequestError;U4.prototype.onYtServiceRequestCompleted=U4.prototype.onYtServiceRequestCompleted;U4.prototype.onYtServiceRequestSent=U4.prototype.onYtServiceRequestSent;U4.prototype.onYtNavigate=U4.prototype.onYtNavigate;U4.prototype.onYtPopupOpened=U4.prototype.onYtPopupOpened;_.U([_.H(_.pH.YtOpenPopupBehavior),_.W("design:type",Object)],U4.prototype,"openPopupBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],U4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],U4.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],U4.prototype,"eventForwardingBehavior",void 0);_.U([_.H(_.OD),_.W("design:type",Object)],U4.prototype,"ironResizableBehavior",void 0);_.U([_.O({observer:"dataChanged"}),_.W("design:type",Object)],U4.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],U4.prototype,"submitting",void 0);_.U([_.O({observer:"submitButtonDisabledChanged"}),_.W("design:type",Object)],U4.prototype,"submitButtonDisabled",void 0);_.U([_.O(),_.W("design:type",Object)],U4.prototype,"command",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],U4.prototype,"hideReportForm",void 0);_.U([_.O(),_.W("design:type",Object)],U4.prototype,"canShowCheckbox",void 0);
_.U([_.O(),_.W("design:type",Object)],U4.prototype,"canShowAdditionalDetailCheckbox",void 0);_.U([_.O(),_.W("design:type",Object)],U4.prototype,"canShowNextButton",void 0);_.U([_.O(),_.W("design:type",Object)],U4.prototype,"additionalDetailCheckboxChecked",void 0);_.U([_.O(),_.W("design:type",Object)],U4.prototype,"refitJob",void 0);_.U([_.O(),_.W("design:type",Object)],U4.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.U([_.ir("#scroller"),_.W("design:type",Object)],U4.prototype,"JSC$18425_scroller",void 0);_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],U4.prototype,"onYtPopupOpened",null);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],U4.prototype,"onYtNavigate",null);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Nt]),_.W("design:returntype")],U4.prototype,"onYtServiceRequestSent",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Vt]),_.W("design:returntype")],U4.prototype,"onYtServiceRequestCompleted",null);
_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],U4.prototype,"onYtServiceRequestError",null);U4=_.U([_.wr({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],U4);var oZc;var pZc;var qZc=function(){return _.P.apply(this,arguments)||this};
_.z(qZc,_.P);_.f=qZc.prototype;_.f.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.f.onVisible=function(){if(_.w("web_ephemeral_actions_focus")){var a,b;(b=_.v().resolve(_.Xi(_.uW)))==null||b.enqueue({label:_.Wp((a=this.data)==null?void 0:a.messageTitle),elementToFocus:this.hostElement})}};
_.f.onThumbnailLoaded=function(){_.io(this.hostElement,"yt-refit")};
_.f.onDismissTap=function(){_.lo(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.f.computeAlternateIcon=function(a){return a?a==="BACKSTAGE_ARTWORK"?"backstage:artwork":a:null};
_.f.computeFontFamily=function(a){return a==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.f.computeBackgroundStyle=function(a,b){if(a=this.computeBackgroundImage(a,b))if(a=_.Vs(a.thumbnails))return'background-image: url("'+a+'");'};
_.f.computeHasFullHeightImage=function(a){return!(!(a&&a.thumbnails&&a.thumbnails.length>0)||this.modern)};
_.f.isModernStyle=function(a){return a.style==="STYLE_MODERN"};
_.f.computeIcon=function(a,b){if(a&&a.icon)return b?a.iconDark:a.icon};
_.f.computeBackgroundImage=function(a,b){if(a&&a.backgroundImage)return b?a.backgroundImageDark:a.backgroundImage};
_.f.computeLogo=function(a,b){if(a&&a.logo)return b?a.logoDark:a.logo};
_.f.computeShouldShowModernIcon=function(a,b){return a&&!!b};
_.f.getLogoContainerClassName=function(a){return this.logoWithPadding(a)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.f.getLogoImageId=function(a){return this.logoWithPadding(a)?"mealbar-logo-with-padding":"mealbar-logo"};
_.f.logoWithPadding=function(a){var b,c,d;return(a=(b=this.computeLogo(a,this.isDarkTheme))==null?void 0:(c=b.thumbnails)==null?void 0:(d=c[0])==null?void 0:d.height)&&a%31===0?!0:!1};
var V4=qZc;V4.prototype.onThumbnailLoaded=V4.prototype.onThumbnailLoaded;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],V4.prototype,"ytRendererBehavior",void 0);_.U([_.O({}),_.W("design:type",Object)],V4.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.W("design:type",Boolean)],V4.prototype,"modern",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],V4.prototype,"isDarkTheme",void 0);
_.U([_.O({computed:"computeIcon(data, isDarkTheme)"}),_.W("design:type",Object)],V4.prototype,"icon",void 0);_.U([_.O({computed:"computeLogo(data, isDarkTheme)"}),_.W("design:type",Object)],V4.prototype,"logo",void 0);_.U([_.O({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.W("design:type",Object)],V4.prototype,"backgroundStyle",void 0);_.U([_.O({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.W("design:type",Object)],V4.prototype,"alternateIcon",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.W("design:type",Boolean)],V4.prototype,"hasFullHeightImage",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.W("design:type",Boolean)],V4.prototype,"useYoutubeSans",void 0);_.U([_.O({computed:"computeShouldShowModernIcon(modern, icon)"}),_.W("design:type",Boolean)],V4.prototype,"shouldShowModernIcon",void 0);
_.U([_.M("yt-img-shadow-loaded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V4.prototype,"onThumbnailLoaded",null);V4=_.U([_.wr({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],V4);
_.S(V4,"yt-mealbar-promo-renderer",function(){if(pZc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-mealbar-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_mealbar_promo_renderer.yt.mealbar.promo.renderer.css.js--\x3e<template is="dom-if" if="[[!modern]]" class="style-scope yt-mealbar-promo-renderer">\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" notify-on-loaded="" thumbnail="[[data.icon]]" class="style-scope yt-mealbar-promo-renderer">\n  </yt-img-shadow>\n  <yt-icon id="alternate-icon" hidden="[[!alternateIcon]]" icon="[[alternateIcon]]" class="style-scope yt-mealbar-promo-renderer"></yt-icon>\n</template>\n<div id="main" style$="[[backgroundStyle]]" class="style-scope yt-mealbar-promo-renderer">\n  <div class="yt-mealbar-promo-renderer-content style-scope yt-mealbar-promo-renderer">\n    <div class="style-scope yt-mealbar-promo-renderer">\n      <template is="dom-if" if="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n        <div class$="[[getLogoContainerClassName(data)]] style-scope yt-mealbar-promo-renderer">\n          <yt-img-shadow dimension="HEIGHT" height="20" hidden="[[!logo]]" id$="[[getLogoImageId(data)]]" notify-on-loaded="" object-fit="CONTAIN" thumbnail="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n          </yt-img-shadow>\n        </div>\n      </template>\n      <h2 class="yt-mealbar-promo-renderer-message-title style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n      </h2>\n      <template is="dom-repeat" items="[[data.messageTexts]]" class="style-scope yt-mealbar-promo-renderer">\n        <div id="message-text" class="yt-mealbar-promo-renderer-message-text style-scope yt-mealbar-promo-renderer">\n          <yt-formatted-string text="[[item]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n        </div>\n      </template>\n      <template is="dom-if" if="[[data.supplementalText]]" class="style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string class="yt-mealbar-promo-renderer-supplemental-text style-scope yt-mealbar-promo-renderer" text="[[data.supplementalText]]"></yt-formatted-string>\n      </template>\n    </div>\n    <template is="dom-if" if="[[shouldShowModernIcon]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-img-shadow class="yt-mealbar-promo-renderer-modern-icon style-scope yt-mealbar-promo-renderer" hidden="[[!icon]]" notify-on-loaded="" thumbnail="[[icon]]">\n      </yt-img-shadow>\n    </template>\n  </div>\n  <div class="button-container style-scope yt-mealbar-promo-renderer">\n    <template is="dom-if" if="[[data.dismissButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n    <template is="dom-if" if="[[data.actionButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;oZc===void 0&&(oZc=document.createElement("template"));var d=oZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);pZc=a}a=pZc;return a},{mode:2});var rZc;var sZc;var tZc=function(){return _.P.apply(this,arguments)||this};
_.z(tZc,_.P);_.f=tZc.prototype;_.f.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}},"data.acceptButton":{id:"accept-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}}}};
_.f.computeHasButtons_=function(a){return!(!a.dismissButton&&!a.acceptButton)};
_.f.computeStyle_=function(a){return a||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.f.observeImpressionEndpoints_=function(){var a=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(b){b.clickTrackingParams&&delete b.clickTrackingParams;_.oo(a.hostElement,[b])})};
_.f.onTap_=function(){_.lo(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
var W4=tZc;W4.prototype.observeImpressionEndpoints_=W4.prototype.observeImpressionEndpoints_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],W4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],W4.prototype,"ytEventForwardingBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],W4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],W4.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],W4.prototype,"positionType",void 0);_.U([_.O({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.W("design:type",Boolean)],W4.prototype,"hasButtons_",void 0);_.U([_.O({value:function(){return this.onTap_.bind(this)}}),
_.W("design:type",Function)],W4.prototype,"boundOnTap_",void 0);_.U([_.O({value:{style:"mono-inverse"}}),_.W("design:type",Object)],W4.prototype,"buttonOverride",void 0);_.U([_.N("data.promoConfig.impressionEndpoints"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W4.prototype,"observeImpressionEndpoints_",null);W4=_.U([_.wr({is:"yt-tooltip-renderer",disableElementRegistration:!0})],W4);
_.S(W4,"yt-tooltip-renderer",function(){if(sZc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-tooltip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_tooltip_renderer.yt.tooltip.renderer.css.js--\x3e<div id="content" class="style-scope yt-tooltip-renderer">\n  <yt-formatted-string id="text" hidden$="[[!data.text]]" text="[[data.text]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="details-text" hidden$="[[!data.detailsText]]" text="[[data.detailsText]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n</div>\n<div class="buttons style-scope yt-tooltip-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-tooltip-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.acceptButton]]" class="style-scope yt-tooltip-renderer"></div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;rZc===void 0&&(rZc=document.createElement("template"));var d=rZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);sZc=a}a=sZc;return a},{mode:2});var uZc;var vZc;var wZc={},xZc=(wZc.WEB_REMIX="music.youtube.com",wZc),yZc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return a};
_.z(yZc,_.P);_.f=yZc.prototype;_.f.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.created=function(){this.embedHost_=xZc[_.Fi("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.f.ready=function(){_.E(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.f.computeEmbedCode_=function(a,b,c,d,e){if(!a)return"";var g=a.videoId,k=a.fullListId,m=[];a.attributionId&&m.push("si="+a.attributionId);d||m.push("controls=0");c&&Number(b)>0&&m.push("start="+b);k&&(g="videoseries",m.push("list="+k));c="https://"+(e?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+g;a.clipId&&(m.push("clip="+a.clipId),m.push("clipt="+a.clipTiming));b=m.length>0?c+"?"+m.join("&amp;"):c;a.encryptedEmbedConfig&&m.push("embed_config="+JSON.stringify({enc:a.encryptedEmbedConfig}));
m=m.length>0?c+"?"+m.join("&amp;"):c;_.w("web_sharing_embed_preview_killswitch")?_.E(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(m,a.previewWidth||854,a.previewHeight||480):(_.Vy(this.videoPreviewContainer),_.E(this.videoPreviewContainer).appendChild(this.buildIframeElement(m)));return this.getEmbedCode_(b,a.width||560,a.height||315)};
_.f.buildIframeElement=function(a){var b=document.createElement("iframe"),c,d;b.width=""+((d=(c=this.data)==null?void 0:c.previewWidth)!=null?d:854);var e,g;b.height=""+((g=(e=this.data)==null?void 0:e.previewHeight)!=null?g:480);_.Oda(b,2,a);b.title="YouTube video player";b.frameBorder="0";b.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";b.referrerPolicy="strict-origin-when-cross-origin";b.allowFullscreen=!0;return b};
_.f.computeIsSquareAspectRatio_=function(a){return a.previewHeight&&a.previewWidth?a.previewHeight==a.previewWidth:!1};
_.f.computeShowEmbedOptions_=function(a){return!!a.enablePrivacyModeOptionLabel||!!a.showPlayerControlsOptionLabel};
_.f.getEmbedCode_=function(a,b,c){return'<iframe width="'+b+'" height="'+c+'" src="'+a+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>'};
_.f.handleSignalActionCopyShareEmbedUrl_=function(){_.E(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.f.handleSetTimestamp_=function(a){this.startAtTimeStamp_=(this.startAtChecked_=a.isSet)?a.timestamp:0};
_.f.closePanel_=function(){_.lo(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.f.onEmbedCode_=function(){_.E(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.f.onYtPopupClosed_=function(){_.Vy(_.E(this.hostElement).querySelector("#video-preview"))};
_.f.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.y(this.data.actionButtons[0],_.RE)&&this.ytRendererBehavior.logExplicitClick(_.y(this.data.actionButtons[0],_.RE))};
var X4=yZc;X4.prototype.onYtPopupClosed_=X4.prototype.onYtPopupClosed_;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],X4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],X4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],X4.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],X4.prototype,"data",void 0);
_.U([_.O({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.W("design:type",String)],X4.prototype,"embedCode_",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],X4.prototype,"isPlayerControlsOptionChecked_",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],X4.prototype,"isPrivacyModeOptionChecked_",void 0);_.U([_.O({value:!1,notify:!0}),_.W("design:type",Boolean)],X4.prototype,"startAtChecked_",void 0);
_.U([_.O({value:0}),_.W("design:type",Number)],X4.prototype,"startAtTimeStamp_",void 0);_.U([_.O({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],X4.prototype,"isSquareAspectRatio_",void 0);_.U([_.ir("#video-preview"),_.W("design:type",HTMLElement)],X4.prototype,"videoPreviewContainer",void 0);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],X4.prototype,"onYtPopupClosed_",null);
X4=_.U([_.wr({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],X4);
_.S(X4,"yt-sharing-embed-renderer",function(){if(vZc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sharing-embed-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_sharing_embed_renderer.yt.sharing.embed.renderer.css.js--\x3e<div id="video-preview" class="style-scope yt-sharing-embed-renderer"></div>\n<div id="embed-panel" class="style-scope yt-sharing-embed-renderer">\n  <div id="title-bar" class="style-scope yt-sharing-embed-renderer">\n    <div id="embed-label" class="style-scope yt-sharing-embed-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="close-panel-icon" icon="yt-icons:close" on-tap="closePanel_" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n  </div>\n  <tp-yt-paper-dialog-scrollable id="content" class="style-scope yt-sharing-embed-renderer">\n    <div id="basic" class="style-scope yt-sharing-embed-renderer">\n      <tp-yt-paper-textarea id="embed-code" no-label-float="" use-v2-underline="" value="{{embedCode_}}" class="style-scope yt-sharing-embed-renderer"></tp-yt-paper-textarea>\n      <div id="start-at" class="style-scope yt-sharing-embed-renderer"></div>\n    </div>\n    <template is="dom-if" if="[[computeShowEmbedOptions_(data)]]" class="style-scope yt-sharing-embed-renderer">\n      <div id="embed-options" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string id="embed-options-label" text="[[data.embedOptionsLabel]]" class="style-scope yt-sharing-embed-renderer">\n        </yt-formatted-string>\n        <div id="layout-size" class="style-scope yt-sharing-embed-renderer">\n          \n        </div>\n        <tp-yt-paper-checkbox id="player-controls-option" checked="{{isPlayerControlsOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n          <yt-formatted-string text="[[data.showPlayerControlsOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-checkbox>\n        <span id="privacy-mode-wrapper" class="style-scope yt-sharing-embed-renderer">\n          <tp-yt-paper-checkbox id="privacy-mode-option" checked="{{isPrivacyModeOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n            <yt-formatted-string text="[[data.enablePrivacyModeOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n            </yt-formatted-string>\n          </tp-yt-paper-checkbox>\n          <yt-icon id="privacy-mode-info" icon="yt-icons:info-outline" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n          <tp-yt-paper-tooltip id="privacy-tooltip" for="privacy-mode-info" position="top" class="style-scope yt-sharing-embed-renderer">\n            [[data.enablePrivacyModeOptionLabel.accessibility.accessibilityData.label]]\n          </tp-yt-paper-tooltip>\n        </span>\n      </div>\n    </template>\n    <div id="additional-info" class="style-scope yt-sharing-embed-renderer">\n      <div id="additional-links" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.apiReferenceLinkLabel]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.developerSampleLinkLabel]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="legal-info" text="[[data.legalInfo]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="action-buttons" class="style-scope yt-sharing-embed-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;uZc===void 0&&(uZc=document.createElement("template"));var d=uZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);vZc=a}a=vZc;return a},{mode:2});var zZc={};
zZc.YtUnlimitedFamilyInterstitialBehavior=[_.pH.YtOpenPopupBehavior,_.eH.YtActionHandlerBehavior,{actionMap:{"yt-signal-action-show-previous-family-dialog":"handleSignalActionShowPreviousFamilyDialog_","yt-open-popup-action":"handleOpenPopupAction_","yt-unlimited-create-family-endpoint":"handleUnlimitedCreateFamilyEndpoint_"},listeners:{"yt-popup-closed":"onPopupClosed_"},created:function(){window.familyDialogHistory||(window.familyDialogHistory=[]);this.dialogHistory_=window.familyDialogHistory;this.showingPreviousDialog_=
!1},
maybeCloseDialogOnFooterButtonTap:function(a){a=_.rdb(_.Sq(a),"yt-button-renderer");return a?a.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(a){this.dialogHistory_.push(a)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var a=this.popFromHistory();if(a){var b={openPopupAction:{popupType:"DIALOG",popup:{}}};b.openPopupAction.popup[a.renderer]=a.data;this.showingPreviousDialog_=!0;this.openPopup(b)}},
handleOpenPopupAction_:function(a){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var b=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(d){return!!a.openPopupAction.popup[d]}),c=this.getElementName_();
b&&this.data&&(this.pushToHistory({renderer:c,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(a){if(a=_.y(a,pKc))this.loading=!0,_.lo(this.hostElement,"yt-open-create-family-dialog",[a,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var a=this.hostElement.nodeName.split("-").slice(1).map(function(b){return""+b[0].toUpperCase()+b.slice(1).toLowerCase()}).join("");
return a[0].toLowerCase()+a.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var AZc;var BZc;var CZc=function(){return _.P.apply(this,arguments)||this};
_.z(CZc,_.P);_.f=CZc.prototype;_.f.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"footer-button":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0,"footer-button":!0}}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.lo(this.hostElement,"yt-register-create-family-dialog");_.E(this.hostElement).querySelector("#thumbnail").onShow()};
_.f.fireOnCloseCommand_=function(){var a;((a=this.data)==null?0:a.onCloseCommand)&&_.po(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.f.onYtServiceRequestSent_=function(a,b){b&&b.endpoint&&_.y(b.endpoint,_.to)||(this.loading=!0)};
_.f.onYtServiceRequestCompleted_=function(){var a=this.hostElement.parentElement;a.close&&a.close();this.loading=!1};
_.f.openPopupHandler_=function(a){if(a.detail==this){var b;((b=this.data)==null?0:b.onOpenCommands)&&_.po(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.f.closePopupHandler_=function(a,b){this.fireOnCloseCommand_();if(b&&b.canceled===!0||b&&b.canceled===!1&&b.confirmed===!1){var c;((c=this.data)==null?0:c.onDismissCommands)&&_.po(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.f.dataChanged_=function(){this.loading=!1};
var Y4=CZc;Y4.prototype.dataChanged_=Y4.prototype.dataChanged_;Y4.prototype.closePopupHandler_=Y4.prototype.closePopupHandler_;Y4.prototype.openPopupHandler_=Y4.prototype.openPopupHandler_;Y4.prototype.onYtServiceRequestCompleted_=Y4.prototype.onYtServiceRequestCompleted_;Y4.prototype.onYtServiceRequestSent_=Y4.prototype.onYtServiceRequestSent_;_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],Y4.prototype,"ytEventForwardingBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],Y4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(zZc.YtUnlimitedFamilyInterstitialBehavior),_.W("design:type",Object)],Y4.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Y4.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Y4.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],Y4.prototype,"loading",void 0);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Nt]),_.W("design:returntype")],Y4.prototype,"onYtServiceRequestSent_",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Vt]),_.W("design:returntype")],Y4.prototype,"onYtServiceRequestCompleted_",null);
_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],Y4.prototype,"openPopupHandler_",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],Y4.prototype,"closePopupHandler_",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y4.prototype,"dataChanged_",null);
Y4=_.U([_.wr({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],Y4);
_.S(Y4,"yt-unlimited-family-message-interstitial-renderer",function(){if(BZc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-message-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_message_interstitial_renderer.yt.unlimited.family.message.interstitial.renderer.css.js--\x3e<tp-yt-paper-spinner active="[[loading]]" class="style-scope yt-unlimited-family-message-interstitial-renderer"></tp-yt-paper-spinner>\n<div class="content-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <div class="main-content style-scope yt-unlimited-family-message-interstitial-renderer">\n    <h2 class="style-scope yt-unlimited-family-message-interstitial-renderer">[[getSimpleString(data.title)]]</h2>\n    <yt-formatted-string class="content style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.content]]"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="252" class="style-scope yt-unlimited-family-message-interstitial-renderer"></yt-img-shadow>\n</div>\n<div class="footer-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <yt-formatted-string class="footer style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.footer]]"></yt-formatted-string>\n  <div class="buttons style-scope yt-unlimited-family-message-interstitial-renderer">\n    <div id="dismiss-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n    <div id="action-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;AZc===void 0&&(AZc=document.createElement("template"));var d=AZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);BZc=a}a=BZc;return a},{mode:2});var DZc;var EZc;var Z4=function(){return _.P.apply(this,arguments)||this};
_.z(Z4,_.P);Z4.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"footer-button":!0},properties:{"on-tap":"[[boundButtonTap_]]"}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0,"footer-button":!0}}}},"data.manageButton":{id:"manage-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Z4.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.E(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(a){a.onShow()});
_.E(this.hostElement).querySelector("#main-thumbnail").onShow()};
Z4.prototype.onButtonTap_=function(a){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(a)};
Z4.prototype.computeMainThumbnailWidth_=function(a){return a&&a.length!==0?72:96};
var $4=Z4;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],$4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$4.prototype,"ytRendererBehavior",void 0);_.U([_.H(zZc.YtUnlimitedFamilyInterstitialBehavior),_.W("design:type",Object)],$4.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],$4.prototype,"data",void 0);
_.U([_.O({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.W("design:type",Number)],$4.prototype,"mainThumbnailWidth_",void 0);_.U([_.O({value:function(){return this.onButtonTap_.bind(this)}}),
_.W("design:type",Function)],$4.prototype,"boundButtonTap_",void 0);$4=_.U([_.wr({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],$4);
_.S($4,"yt-unlimited-family-profile-interstitial-renderer",function(){if(EZc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-profile-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_profile_interstitial_renderer.yt.unlimited.family.profile.interstitial.renderer.css.js--\x3e<div class="content-container style-scope yt-unlimited-family-profile-interstitial-renderer"><div class="left-side style-scope yt-unlimited-family-profile-interstitial-renderer"><h2 class="style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.additionalInfoHeader)]]</h2><yt-formatted-string class="additional-info style-scope yt-unlimited-family-profile-interstitial-renderer" text="[[data.additionalInfo]]"></yt-formatted-string></div><div class="right-side style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow id="main-thumbnail" thumbnail="[[data.mainThumbnail]]" width="[[mainThumbnailWidth_]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></yt-img-shadow><div class="secondary-thumbnails style-scope yt-unlimited-family-profile-interstitial-renderer"><template is="dom-repeat" items="[[data.secondaryThumbnails]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow class="secondary-thumbnail style-scope yt-unlimited-family-profile-interstitial-renderer" thumbnail="[[item]]" width="36"></yt-img-shadow></template></div><span class="member-info style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberInfo)]]</span><span class="member-title style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberTitle)]]</span><div id="manage-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div></div><div class="buttons style-scope yt-unlimited-family-profile-interstitial-renderer"><div id="dismiss-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div><div id="action-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;DZc===void 0&&(DZc=document.createElement("template"));var d=DZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);EZc=a}a=EZc;return a},{mode:2});var FZc;var GZc;var HZc=function(){var a=_.P.apply(this,arguments)||this;a.sliderAriaLabel_=null;a.selectedIndex_=0;return a};
_.z(HZc,_.P);_.f=HZc.prototype;_.f.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[onButtonTap_]]"}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},properties:{"on-tap":"[[onSecondaryTap_]]"}}}}}};
_.f.onPopupOpened_=function(a){a.detail==this&&_.w("enable_premium_voluntary_pause")&&(_.lo(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.setDialogData=function(a){this.data=a;this.resetSlider_()};
_.f.dataChanged_=function(){this.data&&this.resetSlider_()};
_.f.onSubmitTap_=function(){if(this.data.confirmCommand){var a=this.data.confirmCommand;_.y(a,_.cGb)&&_.oo(this.hostElement,[a,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.f.onExitButtonTap_=function(){_.lo(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.f.closePopupHandler_=function(a,b){(b&&b.canceled===!0||b.canceled===!1&&b.confirmed===!1)&&this.handleOnDismissCommands_()};
_.f.onSliderChange_=function(){this.selectedIndex_=_.E(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.f.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaLabel_())};
_.f.setSliderAriaLabel_=function(){this.selectedData_&&(this.sliderAriaLabel_=this.selectedData_.accessibilityData.label)};
_.f.resetSlider_=function(){if(this.data){var a=this.data.defaultEndOptionIndex||0,b=_.E(this.hostElement).querySelector("#id-pause-slider");if(b.immediateValue<a)for(;b.immediateValue!=a;)b.increment();else if(a<b.immediateValue)for(;b.immediateValue!=a;)b.decrement();this.selectedIndex_=a;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.f.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.po(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.f.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.po(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.f.onYtServiceRequestSent=function(){this.loading=!0};
_.f.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
var a5=HZc;a5.prototype.onYtServiceRequestCompleted=a5.prototype.onYtServiceRequestCompleted;a5.prototype.onYtServiceRequestSent=a5.prototype.onYtServiceRequestSent;a5.prototype.closePopupHandler_=a5.prototype.closePopupHandler_;a5.prototype.dataChanged_=a5.prototype.dataChanged_;a5.prototype.onPopupOpened_=a5.prototype.onPopupOpened_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],a5.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],a5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],a5.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],a5.prototype,"loading",void 0);_.U([_.O(),_.W("design:type",Number)],a5.prototype,"selectIndexMax_",void 0);_.U([_.O(),_.W("design:type",Object)],a5.prototype,"selectedData_",void 0);
_.U([_.O(),_.W("design:type",Object)],a5.prototype,"sliderAriaLabel_",void 0);_.U([_.O({value:function(){return this.onSubmitTap_.bind(this)}}),
_.W("design:type",Function)],a5.prototype,"onButtonTap_",void 0);_.U([_.O({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.W("design:type",Function)],a5.prototype,"onSecondaryTap_",void 0);_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],a5.prototype,"onPopupOpened_",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],a5.prototype,"dataChanged_",null);
_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],a5.prototype,"closePopupHandler_",null);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Nt]),_.W("design:returntype")],a5.prototype,"onYtServiceRequestSent",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Vt]),_.W("design:returntype")],a5.prototype,"onYtServiceRequestCompleted",null);a5=_.U([_.wr({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],a5);
_.S(a5,"yt-unplugged-pause-membership-dialog-renderer",function(){if(GZc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unplugged-pause-membership-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unplugged_pause_membership_dialog_renderer.yt.unplugged.pause.membership.dialog.renderer.css.js--\x3e<tp-yt-paper-spinner-lite active="[[loading]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></tp-yt-paper-spinner-lite><div class="dialog-title style-scope yt-unplugged-pause-membership-dialog-renderer">[[getSimpleString(data.title)]]</div><div class="duration-title style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pausePeriodMessage)]]\n</div><div class="duration-subtitle style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pauseEndMessage)]]\n</div><tp-yt-paper-slider id="id-pause-slider" class="pause-slider style-scope yt-unplugged-pause-membership-dialog-renderer" aria-label$="[[sliderAriaLabel_]]" max="[[selectIndexMax_]]" min="0" step="1" on-immediate-value-change="onSliderChange_" on-value-change="onSliderChange_"></tp-yt-paper-slider><template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><yt-formatted-string class="body-message style-scope yt-unplugged-pause-membership-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string></template><div id="dialog-actions" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><div id="secondary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div><div id="primary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;FZc===void 0&&(FZc=document.createElement("template"));var d=FZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);GZc=a}a=GZc;return a},{mode:2});var IZc;var JZc;var KZc=function(){return _.P.apply(this,arguments)||this};
_.z(KZc,_.P);KZc.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.Gt("vcBalanceRenderer")}}};
var b5=KZc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],b5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],b5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],b5.prototype,"data",void 0);b5=_.U([_.wr({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],b5);
_.S(b5,"yt-vc-offer-layout-header-renderer",function(){if(JZc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_header_renderer.yt.vc.offer.layout.header.renderer.css.js--\x3e<div id="vc-balance" class="style-scope yt-vc-offer-layout-header-renderer"></div>\n<yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-vc-offer-layout-header-renderer">\n</yt-formatted-string>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;IZc===void 0&&(IZc=document.createElement("template"));var d=IZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);JZc=a}a=JZc;return a},{mode:2});var LZc;var MZc;var NZc;var OZc;var PZc=function(){return _.P.apply(this,arguments)||this};
_.z(PZc,_.P);PZc.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Um.Object.defineProperties(PZc.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityText?this.data.accessibilityText:""}},
vcOfferStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_OFFER_STYLE_STANDARD"}},
showTitleText:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||this.data.style!=="VC_OFFER_STYLE_HERO"||!this.data.titleText)}}});
var c5=PZc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],c5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],c5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Zbc.YtTappableItemBehavior),_.W("design:type",Object)],c5.prototype,"ytTappableItemBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],c5.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data.accessibilityText"),_.W("design:type",String),_.W("design:paramtypes",[])],c5.prototype,"ariaLabel",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.style"),_.W("design:type",String),_.W("design:paramtypes",[])],c5.prototype,"vcOfferStyle",null);_.U([_.K("data.style","data.titleText"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],c5.prototype,"showTitleText",null);c5=_.U([_.wr({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],c5);
_.S(c5,"yt-vc-offer-renderer",function(){if(OZc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_renderer.yt.vc.offer.renderer.css.js--\x3e<yt-formatted-string id="title-text" hidden="[[!showTitleText]]" text="[[data.titleText]]" class="style-scope yt-vc-offer-renderer">\n</yt-formatted-string>\n<div id="standard-offer-container" class="style-scope yt-vc-offer-renderer">\n  <div id="standard-offer-content" class="style-scope yt-vc-offer-renderer">\n    <yt-formatted-string id="offer-info" text="[[data.offerInfo]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionText]]" text="[[data.descriptionText]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <div id="vc-icon" class="style-scope yt-vc-offer-renderer"></div>\n    <yt-formatted-string id="price" text="[[data.price]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;NZc===void 0&&(NZc=document.createElement("template"));var d=NZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);OZc=a}a=OZc;return a},{mode:2});var QZc=function(){return _.P.apply(this,arguments)||this};
_.z(QZc,_.P);QZc.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{vcOfferLayoutHeaderRenderer:{component:"yt-vc-offer-layout-header-renderer"}}},"data.offers":{id:"offers",mapping:{vcOfferRenderer:{component:"yt-vc-offer-renderer",attributes:{"dialog-dismiss":!0}}}}}};
var d5=QZc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],d5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],d5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],d5.prototype,"data",void 0);d5=_.U([_.wr({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],d5);
_.S(d5,"yt-vc-offer-layout-renderer",function(){if(MZc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_renderer.yt.vc.offer.layout.renderer.css.js--\x3e<div id="vc-offer-layout-container" class="style-scope yt-vc-offer-layout-renderer">\n  <div id="header" class="style-scope yt-vc-offer-layout-renderer"></div>\n  <div id="offers-container" class="style-scope yt-vc-offer-layout-renderer">\n    <div id="offers" class="style-scope yt-vc-offer-layout-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;LZc===void 0&&(LZc=document.createElement("template"));var d=LZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);MZc=a}a=MZc;return a},{mode:2});var RZc;var SZc;var TZc;var UZc;var VZc=function(){return _.P.apply(this,arguments)||this};
_.z(VZc,_.P);VZc.prototype.configureRendererStamper=function(){return{"data.dismiss":{id:"dismiss",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}},"data.helpLink":{id:"help-link",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{noink:!0}}}}}};
var e5=VZc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],e5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],e5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],e5.prototype,"data",void 0);e5=_.U([_.wr({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],e5);
_.S(e5,"yt-ypc-offers-modal-top-bar-renderer",function(){if(UZc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_top_bar_renderer.yt.ypc.offers.modal.top.bar.renderer.css.js--\x3e<div id="dismiss" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></yt-formatted-string>\n<div id="help-link" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;TZc===void 0&&(TZc=document.createElement("template"));var d=TZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);UZc=a}a=UZc;return a},{mode:2});var WZc=function(){return _.P.apply(this,arguments)||this};
_.z(WZc,_.P);WZc.prototype.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{ypcOffersModalTopBarRenderer:{component:"yt-ypc-offers-modal-top-bar-renderer"}}},"data.content":{id:"content",mapping:{vcOfferLayoutRenderer:{component:"yt-vc-offer-layout-renderer"}}}}};
WZc.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
WZc.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var a=this.scrollable;a.attached&&typeof a.attached==="function"&&a.attached()};
var f5=WZc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],f5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],f5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.ir("#scrollable"),_.W("design:type",Object)],f5.prototype,"scrollable",void 0);_.U([_.O(),_.W("design:type",Object)],f5.prototype,"data",void 0);f5=_.U([_.wr({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],f5);
_.S(f5,"yt-ypc-offers-modal-renderer",function(){if(SZc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_renderer.yt.ypc.offers.modal.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-offers-modal-renderer">\n  <div id="top-bar" class="style-scope yt-ypc-offers-modal-renderer"></div>\n  <div id="content" class="style-scope yt-ypc-offers-modal-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;RZc===void 0&&(RZc=document.createElement("template"));var d=RZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);SZc=a}a=SZc;return a},{mode:2});var XZc;var YZc;var ZZc=function(){return _.P.apply(this,arguments)||this};
_.z(ZZc,_.P);_.f=ZZc.prototype;_.f.configureRendererStamper=function(){return{"data.continueButton":{id:"continue-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[bindOnContinueTapped_]]"}}}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.E(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.f.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.lo(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.f.onYtPopupOpened_=function(a,b){(b==null?void 0:b.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.po(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.f.onYtPopupClosed_=function(a,b){this.continueButtonTapped||b&&(b.canceled===!0||b.canceled===!1&&b.confirmed===!1)&&this.data.onDismissCommands&&_.po(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.f.onYtServiceRequestError_=function(a){this.set("showSpinner",!1);_.OW(this.hostElement,a.detail.error.message)};
_.f.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.w("enable_ypc_spinners")?_.lo(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
var g5=ZZc;g5.prototype.onYtServiceRequestError_=g5.prototype.onYtServiceRequestError_;g5.prototype.onYtPopupClosed_=g5.prototype.onYtPopupClosed_;g5.prototype.onYtPopupOpened_=g5.prototype.onYtPopupOpened_;g5.prototype.onYtServiceRequestCompleted_=g5.prototype.onYtServiceRequestCompleted_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],g5.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],g5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],g5.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],g5.prototype,"showSpinner",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],g5.prototype,"continueButtonTapped",void 0);_.U([_.O({value:function(){return this.onContinueTapped_.bind(this)}}),
_.W("design:type",Function)],g5.prototype,"bindOnContinueTapped_",void 0);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],g5.prototype,"onYtServiceRequestCompleted_",null);_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],g5.prototype,"onYtPopupOpened_",null);
_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],g5.prototype,"onYtPopupClosed_",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],g5.prototype,"onYtServiceRequestError_",null);g5=_.U([_.wr({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],g5);
_.S(g5,"yt-ypc-upgrade-dialog-renderer",function(){if(YZc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-upgrade-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_upgrade_dialog_renderer.yt.ypc.upgrade.dialog.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="content" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <div id="header" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="title" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string id="dialog-title" text="[[data.header.dialogTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n        <yt-formatted-string id="offer-title" text="[[data.header.offerDisplayTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="access-message" text="[[data.header.accessMessage]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n    </div>\n\n    <div id="billing-details-container" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <template is="dom-repeat" items="[[data.billingDetails]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <div class="billing-item style-scope yt-ypc-upgrade-dialog-renderer">\n          <div class="item-header style-scope yt-ypc-upgrade-dialog-renderer">\n            <yt-formatted-string text="[[item.title]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n            <yt-formatted-string text="[[item.subtitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n          </div>\n          <yt-formatted-string class="item-description style-scope yt-ypc-upgrade-dialog-renderer" text="[[item.description]]"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <template is="dom-if" if="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="legal-text" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string text="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="continue-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n  <div id="cancel-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n</div>\n<div id="spinner-overlay" hidden$="[[!showSpinner]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope yt-ypc-upgrade-dialog-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;XZc===void 0&&(XZc=document.createElement("template"));var d=XZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);YZc=a}a=YZc;return a},{mode:2});var $Zc;var a_c;var b_c=function(){return _.P.apply(this,arguments)||this};
_.z(b_c,_.P);b_c.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
b_c.prototype.computeHasButtons_=function(a){return!(!a.dismissButton&&!a.confirmButton)};
b_c.prototype.computeStyle_=function(a){return a||"BUBBLE_HINT_STYLE_UNKNOWN"};
var h5=b_c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],h5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],h5.prototype,"ytEventForwardingBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],h5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],h5.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],h5.prototype,"positionType",void 0);_.U([_.O({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.W("design:type",Boolean)],h5.prototype,"hasButtons_",void 0);_.U([_.O({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.W("design:type",Boolean)],h5.prototype,"style_",void 0);h5=_.U([_.wr({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],h5);
_.S(h5,"yt-bubble-hint-renderer",function(){if(a_c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bubble-hint-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_bubble_hint_renderer.yt.bubble.hint.renderer.css.js--\x3e<div id="content" class="style-scope yt-bubble-hint-renderer">\n  <div id="text" hidden$="[[!data.text]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n  <div id="details-text" hidden$="[[!data.detailsText]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.detailsText]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div class="buttons style-scope yt-bubble-hint-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.confirmButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;$Zc===void 0&&($Zc=document.createElement("template"));var d=$Zc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);a_c=a}a=a_c;return a},{mode:2});var c_c;var d_c;var e_c=function(){var a=_.Vm.apply(this,arguments)||this;a.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return a};
_.z(e_c,_.Vm);_.f=e_c.prototype;_.f.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.f.attached=function(){var a=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){a.$.thumbnail.onShow();a.$["header-image"].onShow()})};
_.f.handleCheckBoxUpdateAction_=function(a){this.canShowCheckboxEnabledConfirmButton=a};
_.f.computeUseOverlayForSpinner_=function(a,b){return!!a&&b};
_.f.computeShowSpinner_=function(a,b){return a||!!b};
_.f.fireOnCloseActions_=function(){var a,b=_.h(((a=this.data)==null?void 0:a.onClosedActions)||[]);for(a=b.next();!a.done;a=b.next())this.ytRendererBehavior.resolveCommand(a.value)};
_.f.fireOnOpenCommands_=function(a){var b,c=(b=this.data)==null?void 0:b.onOpenCommands;if(c)for(a.stopImmediatePropagation(),a=_.h(c),b=a.next();!b.done;b=a.next())this.ytRendererBehavior.resolveCommand(b.value)};
_.f.fireOnDismissCommands_=function(a){var b,c=(b=this.data)==null?void 0:b.onDismissCommands;if(c)for(a.stopImmediatePropagation(),a=_.h(c),b=a.next();!b.done;b=a.next())this.ytRendererBehavior.resolveCommand(b.value)};
_.f.openPopupHandler_=function(a){a.detail==this&&this.fireOnOpenCommands_(a)};
_.f.closePopupHandler_=function(a,b){_.mo(this,"yt-confirm-dialog-close-action",[b]);this.fireOnCloseActions_();(b&&b.canceled===!0||b&&b.canceled===!1&&b.confirmed===!1)&&this.fireOnDismissCommands_(a)};
_.f.onHeaderImageChanged_=function(){var a;((a=this.data)==null?0:a.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.f.computeHasHeaderImageWidth_=function(a){return a!=void 0};
_.f.computeHasLoadingMessage=function(a){return!!a};
_.f.onHeaderImageWidthChanged_=function(){var a,b=(a=this.data)==null?void 0:a.headerImageWidth;if(b){if(a=1.25*b*2+b,this.$.main.style.width=a+"px",b=this.$.scroller.firstElementChild)b.style.minWidth=a+"px"}else this.$.main.style.width="100%"};
_.f.onThumbnailChanged_=function(){var a;((a=this.data)==null?0:a.thumbnail)?(this.setAttribute("dialog-with-thumbnail",""),this.$.scroller.scrollTarget.style.maxHeight="139px",this.$.thumbnail.onShow()):(this.removeAttribute("dialog-with-thumbnail"),this.$.scroller.scrollTarget.style.maxHeight="none")};
_.f.onYtNavigate_=function(a){a=_.Sq(a);a instanceof Node&&_.ar(this.$["confirm-button"]).contains(a)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.f.computePrimaryIsCancel_=function(a){return a};
_.f.computeIsCancelButtonHidden_=function(a){return a.skipCancelButton||!a.cancelButton};
_.f.computeIsCheckboxHidden_=function(a){return!a.checkbox};
_.f.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.f.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.f.onYtServiceRequestCompleted_=function(){var a;((a=this.data)==null?0:a.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.Um.Object.defineProperties(e_c,{template:{configurable:!0,enumerable:!0,get:function(){if(d_c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_confirm_dialog_renderer.yt.confirm.dialog.renderer.css.js--\x3e<div id="spinner" hidden="[[!showSpinner_]]" class="style-scope yt-confirm-dialog-renderer">\n  <tp-yt-paper-spinner active="[[showSpinner_]]" class="style-scope yt-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  <div id="loading-message" class="body-text style-scope yt-confirm-dialog-renderer" hidden="[[!data.loadingMessage]]">\n    <yt-formatted-string text="[[data.loadingMessage]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n</div>\n<yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" notify-on-loaded="" thumbnail="[[data.thumbnail]]" width="256" class="style-scope yt-confirm-dialog-renderer">\n</yt-img-shadow>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-confirm-dialog-renderer">\n  <yt-img-shadow id="header-image" hidden="[[!data.headerImage]]" notify-on-loaded="" thumbnail="[[data.headerImage]]" width="[[data.headerImageWidth]]" class="style-scope yt-confirm-dialog-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="body-text style-scope yt-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope yt-confirm-dialog-renderer" respect-html-dir="" split-lines="" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="checkbox-container" hidden="[[isCheckboxHidden]]" class="style-scope yt-confirm-dialog-renderer"></div>\n  <div class="buttons style-scope yt-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="checkbox-enabled-confirm-button" data="[[data.checkboxEnabledConfirmButton.buttonRenderer]]" dialog-confirm="" hidden="[[!canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm$="[[!data.showLoadingSpinnerOnAction]]" hidden="[[canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;c_c===void 0&&(c_c=document.createElement("template"));var d=c_c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);d_c=a}a=d_c;return a}}});
var i5=e_c;i5.prototype.onYtServiceRequestCompleted_=i5.prototype.onYtServiceRequestCompleted_;i5.prototype.onYtServiceRequestSent_=i5.prototype.onYtServiceRequestSent_;i5.prototype.onThumbnailLoaded_=i5.prototype.onThumbnailLoaded_;i5.prototype.onYtNavigate_=i5.prototype.onYtNavigate_;i5.prototype.onThumbnailChanged_=i5.prototype.onThumbnailChanged_;i5.prototype.onHeaderImageWidthChanged_=i5.prototype.onHeaderImageWidthChanged_;i5.prototype.onHeaderImageChanged_=i5.prototype.onHeaderImageChanged_;
i5.prototype.closePopupHandler_=i5.prototype.closePopupHandler_;i5.prototype.openPopupHandler_=i5.prototype.openPopupHandler_;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],i5.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],i5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],i5.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],i5.prototype,"ytEventForwardingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],i5.prototype,"data",void 0);_.U([_.O({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.W("design:type",Boolean)],i5.prototype,"primaryIsCancel",void 0);_.U([_.O({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.W("design:type",Boolean)],i5.prototype,"isCancelButtonHidden",void 0);
_.U([_.O({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.W("design:type",Boolean)],i5.prototype,"isCheckboxHidden",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],i5.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.U([_.O({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.W("design:type",Boolean)],i5.prototype,"useOverlayForSpinner_",void 0);
_.U([_.O({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.W("design:type",Boolean)],i5.prototype,"showSpinner_",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],i5.prototype,"isActionInProgress_",void 0);_.U([_.O({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.W("design:type",Boolean)],i5.prototype,"hasHeaderImageWidth_",void 0);
_.U([_.O({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.W("design:type",Boolean)],i5.prototype,"hasLoadingMessage",void 0);_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],i5.prototype,"openPopupHandler_",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],i5.prototype,"closePopupHandler_",null);
_.U([_.N("data.headerImage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i5.prototype,"onHeaderImageChanged_",null);_.U([_.N("data.headerImageWidth"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i5.prototype,"onHeaderImageWidthChanged_",null);_.U([_.N("data.thumbnail"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i5.prototype,"onThumbnailChanged_",null);
_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],i5.prototype,"onYtNavigate_",null);_.U([_.M("yt-img-shadow-loaded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i5.prototype,"onThumbnailLoaded_",null);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Nt]),_.W("design:returntype")],i5.prototype,"onYtServiceRequestSent_",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Vt]),_.W("design:returntype")],i5.prototype,"onYtServiceRequestCompleted_",null);i5=_.U([_.wr({is:"yt-confirm-dialog-renderer",noInjection:!0})],i5);var f_c;var g_c;var h_c=function(){return _.P.apply(this,arguments)||this};
_.z(h_c,_.P);h_c.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.E(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
h_c.prototype.computeConfirmButton_=function(a){var b={text:a.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};a.confirmNavigationEndpoint?b.navigationEndpoint=a.confirmNavigationEndpoint:a.confirmServiceEndpoint&&(b.serviceEndpoint=a.confirmServiceEndpoint);return b};
h_c.prototype.computeShowTitle_=function(a){return!(a==null||!a.title)};
var j5=h_c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],j5.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],j5.prototype,"data",void 0);_.U([_.O({computed:"computeShowTitle_(data)"}),_.W("design:type",Boolean)],j5.prototype,"showTitle",void 0);j5=_.U([_.wr({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],j5);
_.S(j5,"yt-fancy-dismissible-dialog-renderer",function(){if(g_c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-fancy-dismissible-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_fancy_dismissible_dialog_renderer.yt.fancy.dismissible.dialog.renderer.css.js--\x3e<h2 hidden="[[!showTitle]]" id="title" class="style-scope yt-fancy-dismissible-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-button-renderer id="confirm-button" data="[[computeConfirmButton_(data)]]" dialog-confirm="" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-button-renderer>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;f_c===void 0&&(f_c=document.createElement("template"));var d=f_c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);g_c=a}a=g_c;return a});var i_c;var j_c;var k_c=function(){var a=_.P.apply(this,arguments)||this;a.spinnerActive=!1;return a};
_.z(k_c,_.P);k_c.prototype.created=function(){yAc(2201)};
k_c.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
k_c.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
var k5=k_c;k5.prototype.onIronOverlayClosed=k5.prototype.onIronOverlayClosed;k5.prototype.onIronOverlayOpened=k5.prototype.onIronOverlayOpened;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],k5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bE),_.W("design:type",Object)],k5.prototype,"tpYtIronOverlayBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],k5.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],k5.prototype,"spinnerActive",void 0);
_.U([_.M("iron-overlay-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],k5.prototype,"onIronOverlayOpened",null);_.U([_.M("iron-overlay-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],k5.prototype,"onIronOverlayClosed",null);k5=_.U([_.wr({is:"yt-loading-renderer",disableElementRegistration:!0})],k5);
_.S(k5,"yt-loading-renderer",function(){if(j_c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_loading_renderer.yt.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" alt="[[data.accessibility.accessibility_data.label]]" class="style-scope yt-loading-renderer">\n</tp-yt-paper-spinner>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;i_c===void 0&&(i_c=document.createElement("template"));var d=i_c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);j_c=a}a=j_c;return a},{mode:2});var l_c;var m_c;var n_c=function(){var a=_.P.apply(this,arguments)||this;a.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);a.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);a.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(n_c,_.P);_.f=n_c.prototype;_.f.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.f.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.f.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.f.openPopupHandler_=function(a){a.detail===this.hostElement&&this.hostElement.hidden&&_.lo(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.f.onDismissButtonTap_=function(){var a;this.closeOnDismissButton_.has(((a=this.data)==null?void 0:a.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.lo(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.f.onAcceptButtonTap_=function(){var a;this.closeOnAcceptButton_.has(((a=this.data)==null?void 0:a.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.lo(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.f.computeHasHeader_=function(a){return!!a.headerBackgroundImage};
_.f.computeLayoutStyle_=function(a){return a};
_.f.computePopupSize_=function(a){return a};
_.f.computeIconType_=function(a){return a.dialogIcon&&a.dialogIcon.iconType?a.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":a.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":a.dialogIcon.iconType:""};
_.f.computeIsLogo_=function(a){return!!a.dialogIcon&&!!a.dialogIcon.iconType&&(a.dialogIcon.iconType==="YOUTUBE_LOGO"||a.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||a.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.f.computeHasCustomLogo=function(a){return!(a==null||!a.headerForegroundImage)};
_.f.computeCustomLogo=function(a,b){if(a!=null&&a.headerForegroundImage)return a.headerForegroundImageDark?b?a.headerForegroundImageDark:a.headerForegroundImage:a.headerForegroundImage};
_.f.computeHeaderBackgroundImage=function(a,b){if(a!=null&&a.headerBackgroundImage)return b&&(a==null?0:a.headerBackgroundImageDark)?a.headerBackgroundImageDark:a.headerBackgroundImage};
_.f.shouldShowIconContainer=function(a,b){return a&&!b};
_.f.shouldShowNonYouTubeIcon=function(a,b){return!a&&!b};
_.f.getLogoImageId=function(a){var b,c,d;return(a=(b=this.computeCustomLogo(a,this.isDarkTheme))==null?void 0:(c=b.thumbnails)==null?void 0:(d=c[0])==null?void 0:d.height)&&a%31===0?"custom-logo-with-padding":"custom-logo"};
var l5=n_c;l5.prototype.openPopupHandler_=l5.prototype.openPopupHandler_;l5.prototype.dataChanged_=l5.prototype.dataChanged_;_.U([_.H(_.dH.YtRendererstamperBehavior),_.W("design:type",Object)],l5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],l5.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Boolean)],l5.prototype,"isDarkTheme",void 0);
_.U([_.O({computed:"computeCustomLogo(data, isDarkTheme)"}),_.W("design:type",Object)],l5.prototype,"customLogo",void 0);_.U([_.O({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.W("design:type",Object)],l5.prototype,"headerBackgroundImage",void 0);_.U([_.O(),_.W("design:type",Object)],l5.prototype,"data",void 0);_.U([_.O({computed:"computeHasHeader_(data)"}),_.W("design:type",Boolean)],l5.prototype,"hasHeader",void 0);
_.U([_.O({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.W("design:type",Object)],l5.prototype,"layoutStyle",void 0);_.U([_.O({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.W("design:type",Object)],l5.prototype,"popupSize",void 0);_.U([_.O({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],l5.prototype,"hasLogo",void 0);
_.U([_.O({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],l5.prototype,"hasCustomLogo",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],l5.prototype,"dataChanged_",null);_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],l5.prototype,"openPopupHandler_",null);
l5=_.U([_.wr({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],l5);
_.S(l5,"yt-upsell-dialog-renderer",function(){if(m_c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-upsell-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_upsell_dialog_renderer.yt.upsell.dialog.renderer.css.js--\x3e<yt-img-shadow id="header-image" hidden="[[!hasHeader]]" object-fit="COVER" thumbnail="[[headerBackgroundImage]]" class="style-scope yt-upsell-dialog-renderer">\n</yt-img-shadow>\n<div id="dialog" class="style-scope yt-upsell-dialog-renderer">\n  <div id="icon-container" hidden="[[!shouldShowIconContainer(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer"></div>\n  <yt-icon id="logo-icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" target-container="icon-container" class="style-scope yt-upsell-dialog-renderer">\n  </yt-icon>\n  <template is="dom-if" if="[[shouldShowNonYouTubeIcon(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer">\n    <yt-icon id="icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-icon>\n  </template>\n  <yt-img-shadow hidden="[[!hasCustomLogo]]" id$="[[getLogoImageId(data)]]" object-fit="CONTAIN" thumbnail="[[customLogo]]" class="style-scope yt-upsell-dialog-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope yt-upsell-dialog-renderer">\n    <yt-formatted-string id="upsell-dialog-title" role="heading" split-lines="" text="[[data.dialogMessageTitle]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="upsell-dialog-text" split-lines="" text="[[data.dialogMessageText]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-container" class="style-scope yt-upsell-dialog-renderer">\n    <div id="dismiss-button" on-click="onDismissButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n    <div id="action-button" on-click="onAcceptButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;l_c===void 0&&(l_c=document.createElement("template"));var d=l_c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);m_c=a}a=m_c;return a},{mode:2});var vyc=_.Du({buttonViewModel:_.Qu});_.Zl(wyc);var o_c=_.Rr(function(a){return _.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.q(_.qi,{cond:a.title,then:function(b){return _.q("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},b)}}))},"Pf"),p_c=_.Rr(function(a){return _.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.q(_.Hu,{data:a.closeButton},{buttonViewModel:function(b){return _.q("div",null,_.q(_.Qu,{data:b.data}))}}))},"Qf"),q_c=_.Rr(function(a){var b=
a.data;
return _.q(_.Wh,null,_.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.q(_.qi,{cond:function(){return!!b().image&&!!b().title},
then:function(){return _.q(_.Ps,{data:function(){return b().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.q(_.qi,{cond:function(){return b().title},
then:function(c){return _.q("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},c)}}),_.q(_.qi,{cond:function(){return b().primaryGenre},
then:function(c){return _.q("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},c)}}))),_.q(_.qi,{cond:function(){var c=b().description;
return c&&c.length<=150},
then:function(){return _.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.q("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return b().description}))}}))},"Rf"),r_c=_.Rr(function(a){a=a.infoRows;
var b=_.v().resolve(_.ZR),c=_.w("enable_displaying_ppn");return _.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.q(_.ri,{each:a},function(d){return _.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.q(_.qi,{cond:function(){return d.label},
then:function(e){return _.q("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},e)}}),_.q(_.qi,{cond:function(){return d.attributedLabel},
then:function(e){return _.q("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.q(_.tt,{text:e,noPreWrap:!0}))}}),_.q(_.qi,{cond:function(){return d.value},
then:function(e){return _.q("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},e)}}),_.q(_.qi,{cond:function(){return d.attributedValue},
then:function(e){return _.q("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.q(_.tt,{text:e,noPreWrap:!0}))}}))}),_.q(_.qi,{cond:function(){return c&&b.clientData.has("post_play_nonce")},
then:function(){return _.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.q("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.q("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},b.getData("post_play_nonce")))}}))},"Sf"),s_c=_.Rr(function(a){var b=a.data;
return _.q("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.q(o_c,{title:function(){return b().dialogTitle}}),_.q(q_c,{data:b}),_.q(_.qi,{cond:function(){return b().infoRow},
then:function(c){return _.q(r_c,{infoRows:c})}}),_.q(p_c,{closeButton:function(){return b().closeButton}}))},"Tf"),t_c=_.w("web_enable_sink_mini_app_game_info_dialog_view_model_ks")?wyc:s_c,u_c=_.w("web_enable_sink_mini_app_game_info_dialog_view_model_ks")?_.jt(wyc):s_c;
s_c.idomCompat=!0;_.w("web_enable_sink_mini_app_game_info_dialog_view_model_ks")?_.at(t_c,"yt-mini-app-game-info-dialog-view-model",{propNames:["data"]}):_.Ts(u_c,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.VG}});_.Ts(_.Rr(function(a){var b=a.data;return _.q("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.q(_.Ps,{data:function(){return b().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.q("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.q("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.q(_.qi,{cond:function(){var c=b().ytLogo;return c?c.iconType:null},
then:function(c){return _.q(_.qt,{icon:c,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.q("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.q("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.q(_.tt,{text:function(){return b().title}})),_.q("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.q(_.tt,{text:function(){return b().body}})),_.q("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.q(_.tt,{text:function(){return b().verifyStateText}}))),
_.q("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.q("div",null,_.q(_.Hu,{data:function(){return b().dismissButton}},{buttonViewModel:_.Qu})),_.q("div",null,_.q(_.Hu,{data:function(){return b().linkParentButton}},{buttonViewModel:_.Qu})))))},"Uf"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.VG}});var v_c=_.Rr(function(a){var b=a.data;return _.q("installment-agreements-view-model",{class:_.et("ytInstallmentAgreementsViewModelHost")},_.q(_.ri,{each:_.Nr(function(){return b().agreements},[])},function(c){return _.q("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.q("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.q(_.tt,{text:c.label})),_.q("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.q(_.Hu,{data:function(){return c.openButton}},{buttonViewModel:_.Qu})))}))},
"Vf");
v_c.idomCompat=!0;var w_c=_.Rr(function(a){return _.q("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.q(_.tt,{text:function(){return a.data().inviteMessage}})),_.q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.q(_.tt,{text:function(){return a.data().attributedAccountSectionHeaderText}})),_.q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.q(_.Hu,{data:function(){return a.data().accountAvatar}},{avatarViewModel:_.QK}),_.q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.q(_.tt,{text:function(){return a.data().accountName}}),_.q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.q(_.tt,{text:function(){return a.data().handle}}))),_.q(_.Hu,{data:function(){return a.data().trailingButton}},{buttonViewModel:_.Qu})),_.q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.q(_.tt,{text:function(){return a.data().termsOfService}})))},"Wf");var x_c=_.Rr(function(a){var b=_.h(_.nt(function(){var aa,ma;return((aa=a.data().createPlaylistDialogFormSchema)==null?0:(ma=aa.initialValues)==null?0:ma.title)?a.data().createPlaylistDialogFormSchema.initialValues.title:""})),c=b.next().value,d=b.next().value;
b=_.h(_.nt(function(){a.data();return!1}));
var e=b.next().value,g=b.next().value;b=_.h(_.nt(function(){a.data();return!1}));
var k=b.next().value,m=b.next().value;b=_.h(_.nt(function(){var aa,ma;return(aa=a.data().createPlaylistDialogFormSchema)==null?void 0:(ma=aa.initialValues)==null?void 0:ma.visibility}));
var n=b.next().value,r=b.next().value;b=_.h(_.nt(function(){a.data();return!1}));
var t=b.next().value,u=b.next().value;b=_.h(_.nt(function(){var aa,ma;return(aa=a.data().createPlaylistDialogFormSchema)==null?void 0:(ma=aa.initialValues)==null?void 0:ma.isCollaborative}));
var x=b.next().value,A=b.next().value,C=_.Pl();_.wh(function(){var aa=C.value.querySelector("textarea");aa&&(aa.value=c())},"vFR7w");
_.wi(function(){var aa;_.Knc((aa=a.data().createPlaylistDialogFormSchema)==null?void 0:aa.id,{onSubmit:function(){var ma=c();var Ba=n(),Ca=x(),ya=a.data();ma={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:ma,privacyStatus:Ba,videoIds:ya.videoIds,sourcePlaylistId:ya.sourcePlaylistId,params:Ca?ya.createPlaylistParamsCollaborationEnabled:ya.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.v().resolve(_.Yi).resolveCommand(ma)},
isValid:function(){return e()&&!k()&&!t()}})});
var F=function(aa){if(aa!==void 0&&(d(aa),!e()&&aa.length>0&&g(!0),e())){var ma=xyc(a.data());if(ma){var Ba=ma.minLength;ma=ma.maxLength;Ba&&aa.length<Ba?m(!0):ma&&aa.length>ma?m(!0):m(!1)}}},J=function(){var aa=!(!x()||n()!=="PRIVATE");
u(aa)},I=function(aa){aa!==void 0&&(r(aa),J())},R=function(){if(t())return zyc(a.data())},da=function(){A(!x());
J()},V=function(){return{validate:function(aa){if(e()){var ma=xyc(a.data());
if(ma){var Ba=ma.minLength;ma=ma.translations;if(Ba&&aa.length<Ba)return ma==null?void 0:ma.minLengthErrorMessage}}}}},fa=function(){var aa=xyc(a.data()),ma=aa==null?void 0:aa.maxLength,Ba;
aa=aa==null?void 0:(Ba=aa.translations)==null?void 0:Ba.maxLengthErrorMessage;if(ma&&aa)return{maxChars:ma,errorMessage:aa}};
return _.q("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.q("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:C},_.q(_.Hu,{data:function(){return a.data().playlistTitle}},{textFormFieldViewModel:function(aa){return _.q(_.erc,{data:aa.data,
text:c,onInput:F,validation:V,characterLimit:fa})},
textFieldViewModel:function(aa){return _.q(_.drc,{data:aa.data,text:c,onInput:F,validation:V,characterLimit:fa})}})),_.q("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.q(_.Hu,{data:function(){return a.data().playlistVisibility}},{dropdownViewModel:function(aa){return _.q(_.urc,{data:aa.data,
onSelected:I,error:R})}})),_.q(_.qi,{cond:function(){return!!a.data().playlistCollaborate},
then:function(){return _.q("div",null,_.q(_.Hu,{data:function(){return a.data().playlistCollaborate}},{switchListItemViewModel:function(aa){return _.q(_.F$b,{data:aa.data,
onTap:da})}}))}}))},"Xf");var y_c=_.Rr(function(a){var b=_.Nr(a.noPadding,!1),c=function(){var e,g;return(g=(e=a.data().logo.accessibilityData)==null?void 0:e.label)!=null?g:""},d={};
return _.q("upsell-view-model",{class:_.et("ytUpsellViewModelHost",(d.ytUpsellViewModelHostNoPadding=function(){return b()},d))},_.q("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.q(_.qi,{cond:function(){return _.jv(a.data().logo)},
then:function(e){return _.q(_.Ps,{data:e,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:c})}})),_.q("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.q(_.tt,{text:function(){return a.data().title}})),_.q("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.q(_.ri,{each:function(){var e;
return(e=a.data().subtitles)!=null?e:[]},
keyBy:"INDEX"},function(e){return _.q("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.q(_.tt,{text:e}))})),_.q("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.q(_.ri,{each:function(){var e;
return(e=a.data().benefitInfos)!=null?e:[]},
keyBy:"INDEX"},function(e){return _.q(_.qi,{cond:function(){return e().info},
then:function(g){return _.q("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.q(_.qt,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.q(_.tt,{text:g}))}})})),_.q("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.q(_.ri,{each:function(){var e;
return(e=a.data().legalInfos)!=null?e:[]},
keyBy:"INDEX"},function(e){return _.q("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.q(_.tt,{text:e}))})))},"Yf");var z_c=_.Rr(function(a){var b=a.data;a={};a=(a.ytMiniAppScoreChallengeViewModelScoreRadial=!0,a.ytMiniAppScoreChallengeViewModelDarkScoreRadial=Ayc(),a);return _.q("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.q("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return b().title}),_.q("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return b().subtitle}),_.q("div",{class:_.ht(a)},_.q("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return b().score})),_.q("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return b().prompt}))},"Zf");var A_c=function(){this.store=_.Kr();this.formId=""};var B_c=_.Rr(function(a){function b(m){if(m&&(m=_.y(m,_.yu)))return Object.assign({},m,{isSelected:g()})}
var c=_.h(_.nt(function(){var m,n;return(n=(m=_.y(a.data().option,_.yu))==null?void 0:m.isSelected)!=null?n:!1})),d=c.next().value,e=c.next().value,g=d;
_.wi(function(){var m;_.Knc((m=a.data().formSchema)==null?void 0:m.id,{onSubmit:function(){var n=_.v().resolve(_.Yi),r=!!a.data().selectedCommand,t=!!a.data().unselectedCommand;if(g()){if(r)var u=a.data().selectedCommand}else t&&(u=a.data().unselectedCommand);u=_.Ds(u);b(a.data().option)&&!u?(n="",!r&&t?n="selected ":r&&!t&&(n="unselected "),r=new _.qj("No "+n+"command found for SelectionListItemFormViewModel"),_.Bl(r)):u&&n.resolveCommand(u)},
isValid:function(){return!0}})});
var k=function(){e(!g())};
_.zh(function(){var m,n,r=(m=a.data())==null?void 0:(n=m.formSchema)==null?void 0:n.id;r&&_.Inc()().delete(r)});
return _.q("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.q("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.q(_.tt,{text:function(){return a.data().paragraph}})),_.q(_.qi,{cond:function(){return b(a.data().option)},
then:function(m){return _.q(_.DQ,{data:m,isCompact:!0,hideSelectionTextChevron:!0,onTap:k,disableHorizontalPadding:!0})}}))},"$f");var Dyc=_.Du({avatarStackViewModel:_.RZb}),C_c=_.jt(Eyc);_.Zl(Eyc);var D_c=_.Rr(function(a){var b=_.Lnc(function(){return a.data().formId}),c=b.onSubmit,d=b.isValid;
return _.q("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.q(_.Hu,{data:function(){return a.data().panelFooter}},{panelFooterViewModel:function(e){return _.q(_.aY,{data:e.data,
disablePadding:!0,disablePrimaryButton:function(){return!d()},
onClickPrimaryButton:function(){c()}})}}))},"ag");var G_c=_.Rr(function(a){var b=_.Or(a,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),c=b.elRefCallback;a=b.iconWiz;var d=b.assetWiz,e=b.assetType,g=b.titleWiz,k=b.leadingActionHeaderWiz,m=b.trailingActionHeaderWiz,n=b.headerPosition,r=b.contentWiz,t=b.buttonLayout,u=b.buttonStyle,x=b.primaryButtonWiz,A=b.secondaryButtonWiz,C=b.contentAlignment,F=b.isFullscreen,J=b.width,I=b.maxHeight,R=b.isHeaderWizDefined,
da=b.headerWiz,V=b.isFooterWizDefined,fa=b.footerWiz;b=_.Pl(function(Ua){c==null||c(Ua)});
var aa=d?function(){return d({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,ma=x?function(){var Ua={};
return x({buttonOverrides:function(){return{style:(u==null?void 0:u())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.et((Ua["yt-spec-dialog-layout__dialog-layout-button"]=!0,Ua["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(t==null?void 0:t())===0||(t==null?void 0:t())===2},Ua))})}:void 0,Ba=A?function(){var Ua={};
return A({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.et((Ua["yt-spec-dialog-layout__dialog-layout-button"]=!0,Ua["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(t==null?void 0:t())===0||(t==null?void 0:t())===2},Ua))})}:void 0,Ca=function(){return(!!g||!!k||!!m)&&n()===0},ya={},Ia={},db={},lb={};
return _.q("dialog-layout",{el:b,class:_.et((ya["yt-spec-dialog-layout"]=!0,ya["yt-spec-dialog-layout--dialog-layout-fullscreen"]=F,ya["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!F()},ya["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return I()===1},ya["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(e==null?void 0:e())===1},ya)),
style:function(){return(J==null?void 0:J())!==void 0?"width: "+J+"px;":""}},a?_.q("div",{class:_.et((Ia["yt-spec-dialog-layout__dialog-layout-icon"]=!0,Ia["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!d&&n()===1},Ia["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return C()===1},Ia))},_.q(a,null)):null,_.q(_.qi,{cond:R,
then:function(){return da?_.q("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.q(da,null)):null},
else:function(){return _.q(_.Wh,null,_.q(_.qi,{cond:Ca,then:function(){return _.q(E_c,{contentAlignment:C,LeadingActionHeader:k,TrailingActionHeader:m,Title:g,isAboveAsset:!!aa})}}),aa?_.q("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.q(aa,null)):null)}}),_.q("div",{class:_.et((db["yt-spec-dialog-layout__dialog-layout-container"]=!0,db["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(C==null?void 0:C())===1},db["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!g&&!da||!!aa&&(n==null?void 0:n())===0},db))},_.q(_.qi,{cond:function(){return g&&!da&&(n==null?void 0:n())===1},
then:function(){return _.q(E_c,{contentAlignment:C,LeadingActionHeader:k,TrailingActionHeader:m,Title:g,isAboveAsset:!1})}}),r?_.q("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.q("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.q(r,null))):null,_.q(_.qi,{cond:V,
then:function(){return fa?_.q("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.q(fa,null)):null}}),ma||Ba?_.q(F_c,{footerClasses:_.et((lb["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,lb["yt-spec-dialog-layout__dialog-layout-footer"]=!0,lb["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(t==null?void 0:t())===2},lb["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(t==null?void 0:t())===1},lb)),
PrimaryButton:ma,SecondaryButton:Ba}):null))},"bg"),E_c=_.Rr(function(a){var b=_.Or(a,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),c=b.contentAlignment,d=b.LeadingActionHeader;a=b.Title;var e=b.TrailingActionHeader,g=b.isAboveAsset,k=b.enableLeadingActionHeader;b={};return _.q("div",{class:_.et((b["yt-spec-dialog-layout__dialog-header-container"]=!0,b["yt-spec-dialog-layout__dialog-header"]=!0,b["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=g,b["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(c==null?void 0:c())===1&&k()},b))},_.q(_.qi,{cond:function(){return k()},
then:function(){return d?_.q("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.q(d,null)):null}}),a?_.q("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.q(a,null)):null,e?_.q("div",null,_.q(e,null)):null)},"cg"),F_c=_.Rr(function(a){var b=a.footerClasses;
var c=a.PrimaryButton;a=a.SecondaryButton;return _.q("div",{class:b},a?_.q(a,null):null,c?_.q(c,null):null)},"dg");var H_c=_.Rr(function(a){var b=a.data;return _.q("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.q("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.q(_.Hu,{data:function(){return b().avatar}},{avatarViewModel:_.QK})),_.q("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.q(_.tt,{text:function(){return b().title}})),_.q(_.tt,{text:function(){return b().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"eg");var I_c=_.Rr(function(a){var b=a.data;return _.q("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.q("div",{class:"ytAccessConfirmationViewModelContent"},_.q(_.Hu,{data:function(){return b().dualAvatar}},{dualAvatarViewModel:function(c){return _.q("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.q(_.Xdc,{data:c.data}))}}),_.q("h2",{class:"ytAccessConfirmationViewModelTitle"},_.q(_.tt,{text:function(){return b().title}})),_.q(_.tt,{text:function(){return b().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"fg");var J_c=_.Rr(function(a){var b=a.data;var c=void 0;a=_.h(_.ih("",void 0,"O14qgc"));var d=a.next().value,e=a.next().value,g,k=function(){e("");var r;(r=c)!=null&&r.store.dispatch(_.hp({type:"RESET_COMMAND_MAP"}))};
_.wi(function(){c=new A_c;window.addEventListener("yt-popup-closed",k)});
_.wh(function(){if(c&&g!==b().formId){var r=c,t=b();t.formId&&(r.formId=t.formId,r.store.dispatch(_.hp({type:"SET_CURRENT_FORM_ID",payload:{formId:r.formId}})));g=b().formId}},"sYS2Db");
_.zh(function(){window.removeEventListener("yt-popup-closed",k)});
var m=function(r,t,u){t.key&&u&&t.key!==d()&&(e(t.key),c&&t.command&&c.store.dispatch(_.hp({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:u,command:t.command}})))},n=function(){if(_.y(b().content,_.bpc))return!(d==null?0:d())};
return _.q("yt-dialog-view-model",{class:_.et("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.q(G_c,{headerWiz:function(){return _.q("span",{skip:!0},_.q(_.Hu,{data:function(){return b().header}},{dialogHeaderViewModel:function(r){return _.q(C_c,{data:r.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!b().header},
contentWiz:function(){return _.q("span",{skip:!0},_.q(_.Hu,{data:function(){return b().customContent?b().customContent:b().content}},{basicContentViewModel:_.Lhc,
createPlaylistDialogFormViewModel:x_c,collaborativePlaylistInviteMessageViewModel:w_c,miniAppScoreChallengeViewModel:z_c,radioButtonGroupViewModel:function(r){return _.q(_.qrc,{data:r.data,selectedKey:d,onSelected:m})},
selectionListItemFormViewModel:B_c,upsellViewModel:function(r){return _.q(y_c,{data:r.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:H_c,installmentAgreementsViewModel:v_c,accessConfirmationViewModel:I_c,listViewModel:_.M$b}))},
footerWiz:function(){return _.q("span",{skip:!0},_.q(_.Hu,{data:function(){return b().footer}},{panelFooterViewModel:function(r){return _.q(_.aY,{data:r.data,
disablePadding:!0,disablePrimaryButton:n})},
formPanelFooterViewModel:D_c,formFooterViewModel:function(r){return _.q(_.arc,{data:r.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!b().footer}}))},"gg");
J_c.idomCompat=!0;_.Ts(J_c,"yt-dialog-view-model",{props:{data:_.VG},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var Fyc=_.Du({buttonViewModel:_.Qu});_.Zl(Gyc);var K_c=_.Rr(function(a){var b=a.data;a={};return _.q("yt-panel-header-view-model",{class:_.et("yt-panel-header-view-model-wiz",(a["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!b().shouldHideDivider},a["yt-panel-header-view-model-wiz--compact"]=function(){return!!b().subtitle},a))},_.q("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.q(_.qi,{cond:function(){return b().title},
then:function(c){return _.q(_.tt,{text:c,className:"yt-panel-header-view-model-wiz__title"})}}),_.q(_.qi,{cond:function(){return b().subtitle},
then:function(c){return _.q(_.tt,{text:c,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.q("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.q(_.Hu,{data:function(){return b().trailingButtons}},{buttonViewModel:function(c){return _.q(_.Qu,{data:c.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"hg"),L_c=_.w("web_enable_sink_yt_panel_header_view_model")?K_c:Gyc,M_c=_.w("web_enable_sink_yt_panel_header_view_model")?K_c:_.jt(Gyc);
K_c.idomCompat=!0;var N_c=_.Rr(function(a){var b=_.lt(function(g){var k;if((k=a.skipContentClick)==null?0:k.call(a))return!1;a.onContentWrapperClick(g);return!0}),c,d,e;
return _.q("div",{class:_.et("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return a.isAnimating()?"transform: translateY("+a.currentY()+"px);transition: 0.2s":""}},(c=a.header)==null?void 0:c.call(a),_.q("div",{id:a.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.ot({"max-height":(0,_.CQ)(a.maxHeightForContentWrapper)}),"on:scroll":Kyc(a.onScroll),"on:touchmove":Kyc(function(g){return void g.stopPropagation()})},_.q("div",{el:{onRender:a.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":b},(d=a.body)==null?void 0:d.call(a))),(e=a.footer)==null?void 0:e.call(a))},"ig");
N_c.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var O_c=_.Rr(function(a){var b=_.Nr(a.leadingLabel),c=_.Nr(a.trailingLabel),d=_.Nr(a.footerButtonType),e=function(){return b()||c()||a.hasPrimaryButton()||a.hasSecondaryButton()},g={},k=_.et("yt-spec-bottom-sheet-layout__primary-button",(g["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return d()===0&&a.hasPrimaryButton()},g["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return d()===1&&a.hasPrimaryButton()},g["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return d()===2&&a.hasPrimaryButton()},g["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return d()===3&&a.hasPrimaryButton()},g));
g={};var m=_.et("yt-spec-bottom-sheet-layout__secondary-button",(g["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return d()===1&&a.hasSecondaryButton()},g["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return d()===2&&a.hasSecondaryButton()},g["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return d()===3&&a.hasPrimaryButton()},g));
return _.q(_.qi,{cond:a.hasFooterOverride,then:function(){var n;return _.q(_.Wh,null,(n=a.footerOverride)==null?void 0:n.call(a))},
else:function(){return _.q(_.qi,{cond:e,then:function(){return _.q("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.q(_.qi,{cond:function(){return b()||c()},
then:function(){var n={};return _.q("div",{class:_.et("yt-spec-bottom-sheet-layout__footer-label-wrapper",(n["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!a.hasPrimaryButton()},n))},_.q(_.qi,{cond:b,
then:function(){return _.q("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},b)}}),_.q(_.qi,{cond:c,
then:function(){return _.q("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},c)}}))}}),_.q(_.qi,{cond:function(){return a.hasPrimaryButton()||a.hasSecondaryButton()},
then:function(){var n={};return _.q("div",{class:_.et("yt-spec-bottom-sheet-layout__footer-button-wrapper",(n["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.EOb,n))},_.q(_.qi,{cond:function(){return a.hasSecondaryButton()&&d()!==0},
then:function(){var r;return _.q("div",{class:m},(r=a.secondaryButton)==null?void 0:r.call(a))}}),_.q(_.qi,{cond:a.hasPrimaryButton,
then:function(){var r;return _.q("div",{class:k},(r=a.primaryButton)==null?void 0:r.call(a))}}))}}))}})}})},"jg");
O_c.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var P_c=_.Rr(function(a){var b=_.Nr(a.title),c=_.Nr(a.subtitle),d=_.lt(function(k){var m;(m=a.touchstart)==null||m.call(a,k);return!1}),e=_.lt(function(k){var m;
(m=a.touchmove)==null||m.call(a,k);return!1}),g=_.lt(function(k){var m;
(m=a.touchend)==null||m.call(a,k);return!1});
return _.q("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:a.headerId,"on:touchstart":d,"on:touchmove":e,"on:touchend":g},_.q("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.q(_.qi,{cond:a.hasHeaderOverride,then:function(){var k;return _.q(_.Wh,null,(k=a.headerOverride)==null?void 0:k.call(a))},
else:function(){var k={};return _.q("div",{class:_.et((k["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,k["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=b,k))},_.q("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.q(_.qi,{cond:b,then:function(){return _.q(_.Wh,null,_.q("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},b),_.q(_.qi,{cond:c,then:function(){return _.q("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
c)}}))}})),_.q(_.qi,{cond:function(){return b()&&a.hasActionHeader()},
then:function(){var m;return _.q("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(m=a.actionHeader)==null?void 0:m.call(a))}}))}}))},"kg");
P_c.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.Rr(function(a){var b={stack:[],error:void 0,hasError:!1};try{var c=function(){db().dispatch("Close Sheet",{clientHeight:x(),maxHeight:0});setTimeout(function(){Lyc()},250)},d=function(){document.body.style.overscrollBehavior="";
Ia.isFullScreen[0]()?Ia.currentY[0]()>=60?db().dispatch("Snap To Neutral Position",{maxHeight:aa()}):db().dispatch("Snap To Full Screen",{maxHeight:Ba()}):Ia.currentY[0]()>=60?c():Ia.currentY[0]()<=-60&&I()>aa()?db().dispatch("Snap To Full Screen",{maxHeight:Ba()}):db().dispatch("Snap To Neutral Position",{maxHeight:aa()})},e=function(Ua){Ua.preventDefault();
db().dispatch("Touch Move",{event:Ua,contentScrollable:I()>aa(),fullContentWrapperHeight:Ba(),contentWrapperHeight:aa(),contentHeightMap:ya,contentWrapperId:"content-wrapper",header:Myc(a),footer:Myc(a)})},g=function(Ua){document.body.style.overscrollBehavior="none";
Ua.preventDefault();db().dispatch("Touch Start",{event:Ua})},k=function(){A(window.innerHeight);
I()>aa()||ma(I());Ia.isFullScreen[0]()&&I()>aa()?db().dispatch("Snap To Full Screen",{maxHeight:Ba()}):db().dispatch("Snap To Neutral Position",{maxHeight:aa()})},m=function(Ua){typeof Ca!=="undefined"&&(ya["content-wrapper"]===void 0&&(ya["content-wrapper"]=Ua.children[0].clientHeight),R(ya["content-wrapper"]),I()>aa()||ma(I()))},n=function(Ua){if(!Ca&&typeof MutationObserver!=="undefined"){var Vb={childList:!0};
"MutationObserver"in window&&(Ca=new MutationObserver(m.bind(void 0,Ua)),Ca.observe(Ua,Vb))}};
_.Pr(b,_.Yg(_.Ug));var r=_.h(_.ih(window.innerHeight,void 0,"kPCJme")),t=r.next().value,u=r.next().value,x=t,A=u,C=_.h(_.ih(0,void 0,"KVhs0d")),F=C.next().value,J=C.next().value,I=F,R=J,da=_.h(_.nt(function(){var Ua=Myc(a);return.6*x()-Hyc(Ua)-Iyc(Ua)})),V=da.next().value,fa=da.next().value,aa=V,ma=fa,Ba=function(){var Ua=Myc(a);
return x()-Hyc(Ua)-Iyc(Ua)-24-24},Ca=null,ya={},Ia={initialY:_.ih(0,void 0,"nbk1t"),
currentY:_.ih(0,void 0,"JJbj3e"),isAnimating:_.ih(!1,void 0,"edJO5b"),isFullScreen:_.ih(!1,void 0,"VgK3Se"),maxHeightForContentWrapper:_.nt(aa)},db=function(){var Ua=null;return function(){if(!Ua){var Vb={initialY:Ia.initialY[0](),currentY:Ia.currentY[0](),isAnimating:Ia.isAnimating[0](),isFullScreen:Ia.isFullScreen[0](),maxHeightForContentWrapper:Ia.maxHeightForContentWrapper[0]()};Ua=Jyc(Vb)}return Ua}}();
_.wi(function(){window.addEventListener("resize",k);db().subscribe(function(Ua){Ia.initialY[1](Ua.initialY);Ia.currentY[1](Ua.currentY);Ia.isAnimating[1](Ua.isAnimating);Ia.isFullScreen[1](Ua.isFullScreen);Ia.maxHeightForContentWrapper[1](Ua.maxHeightForContentWrapper)})});
_.zh(function(){window.removeEventListener("resize",k);Ca&&(Ca.disconnect(),Ca=null)});
var lb=_.et({"bottom-sheet-content-without-icon":function(){var Ua;return!((Ua=a.shouldShowIcons)==null?0:Ua.call(a))}});
return _.q("bottom-sheet-layout",null,_.q(N_c,{contentWrapperId:"content-wrapper",isAnimating:function(){return Ia.isAnimating[0]()},
currentY:function(){return Ia.currentY[0]()},
maxHeightForContentWrapper:function(){return Ia.maxHeightForContentWrapper[0]()},
shouldShowIcons:a.shouldShowIcons,skipContentClick:a.skipContentClick,onScroll:function(){var Ua=document.getElementById("header-wrapper"),Vb=document.getElementById("content-wrapper");if(Ua&&Vb){var rb={};rb=(rb["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,rb["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,rb);Ua.className=Vb.scrollTop>1?_.ht(rb):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:Lyc,contentWrapperEl:function(Ua){n(Ua);requestAnimationFrame(function(){m(Ua)})},
header:function(){return _.q(P_c,{touchstart:g,touchmove:e,touchend:d,title:a.headerTitle,subtitle:a.headerSubtitle,headerId:"header-wrapper",headerOverride:a.headerFn,hasHeaderOverride:a.hasHeaderFn,actionHeader:a.headerActionHeader,hasActionHeader:a.hasHeaderActionHeader})},
footer:function(){return _.q(O_c,{footerButtonType:a.footerButtonType,leadingLabel:a.footerLeadingLabel,trailingLabel:a.footerTrailingLabel,primaryButton:a.footerPrimaryButton,hasPrimaryButton:a.hasFooterPrimaryButton,secondaryButton:a.footerSecondaryButton,hasSecondaryButton:a.hasFooterSecondaryButton,footerOverride:a.footerFn,hasFooterOverride:a.hasFooterFn})},
body:function(){return _.q(_.qi,{cond:a.hasContentWiz,then:function(){var Ua;return _.q("div",{class:lb},(Ua=a.contentWiz)==null?void 0:Ua.call(a))}})}}))}catch(Ua){b.error=Ua,b.hasError=!0}finally{_.Qr(b)}},"lg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentWiz:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};_.Zl(Nyc);var Q_c=_.Rr(function(a){var b=_.v().resolve(_.KJ),c=_.lt(function(){return void b.closeSheet()});
return _.q("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":c},_.q(_.qi,{cond:function(){return!!a.header},
then:function(){return _.q("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},a.header())}}),_.q(_.qi,{cond:function(){return!!a.content},
then:function(){return _.q("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},a.content())}}),_.q(_.qi,{cond:function(){return!!a.footer},
then:function(){return _.q("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},a.footer())}}))},"mg"),Oyc=_.w("web_enable_sink_yt_contextual_sheet_layout")?Q_c:Nyc,R_c=_.w("web_enable_sink_yt_contextual_sheet_layout")?Q_c:_.jt(Nyc,{callbacks:{header:!0,
content:!0,footer:!0}});Q_c.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var Pyc=_.Du({panelHeaderViewModel:L_c,listViewModel:_.p2a,upsellViewModel:y_c,panelFooterViewModel:_.aY,miniAppScoreChallengeViewModel:z_c});_.Zl(Qyc);var S_c=_.Rr(function(a){a=a.data;var b={};return _.q("yt-sheet-view-model",{class:_.et("yt-sheet-view-model-wiz",(b["yt-sheet-view-model-wiz--contextual"]=!0,b["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.w("web_disable_backdrop_filter"),b))},_.q(_.qi,{cond:a,then:function(c){return _.q(R_c,{header:function(){return _.q(_.Hu,{data:function(){return c().header}},{panelHeaderViewModel:M_c})},
content:function(){return _.q(_.Hu,{data:function(){return c().content}},{listViewModel:function(d){return _.q(_.M$b,{data:d.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:y_c,miniAppScoreChallengeViewModel:z_c})},
footer:function(){return _.q(_.Hu,{data:function(){return c().footer}},{panelFooterViewModel:_.aY})}})}}))},"ng"),T_c=_.w("web_enable_sink_yt_sheet_view_model")?S_c:Qyc;
S_c.idomCompat=!0;_.w("web_enable_sink_yt_sheet_view_model")?_.Ts(T_c,"yt-sheet-view-model",{props:{data:_.VG}}):_.at(T_c,"yt-sheet-view-model",{propNames:["data"]});var V_c=_.Rr(function(a){var b=function(){var c;return(c=a.data().enableDebuggingFeatures)!=null?c:!1};
return _.q("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.q(_.ri,{each:function(){var c;return(c=a.data().stickers)!=null?c:[]}},function(c){return _.q(U_c,{data:function(){return c},
debugMode:b})}))},"og"),U_c=_.Rr(function(a){var b=_.Or(a,{debugMode:!1}).debugMode,c=_.Nr(function(){var n;
return(n=a.data().region)==null?void 0:n.w},0),d=_.Nr(function(){var n;
return(n=a.data().region)==null?void 0:n.h},0),e=_.Nr(function(){var n;
return(n=a.data().region)==null?void 0:n.x},0),g=_.Nr(function(){var n;
return(n=a.data().region)==null?void 0:n.y},0),k=_.lt(function(){var n=a.data().onTap;
n&&_.Gs(n)}),m={};
return _.q("div",{class:_.et("ytStoriesStickerLayerViewModelSticker",(m.ytStoriesStickerLayerViewModelDebugMode=b,m)),style:_.ot({width:function(){return 100*c()+"%"},
height:function(){return 100*d()+"%"},
left:function(){return 100*e()+"%"},
top:function(){return 100*g()+"%"},
"flex-direction":function(){return Ryc(a.data().flexDirection)},
"justify-content":function(){return Syc(a.data().justifyContent)},
"align-items":function(){return Tyc(a.data().alignItems)}}),
"on:click":k},_.q(_.Hu,{data:function(){return a.data().button||a.data().toggleButton}},{buttonViewModel:function(n){return _.q(_.Qu,{data:n.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(n){return _.q(_.Ku,{data:n.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"pg");var X_c=_.Rr(function(a){var b=function(){return a.data()},c=_.Nr(function(){return b().backgroundColor},0),d=_.Nr(function(){return b().actionButtons},[]),e=_.Nr(function(){return b().stickerLayer},{}),g={},k=function(){var n,r;
return{animationRef:g,animationConfig:{autoplay:!1,loop:!1,path:(r=(n=b().foregroundAnimation)==null?void 0:n.url)!=null?r:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){a.navigateToNextItemOnLottieComplete()}}}},m=function(){var n,r,t,u,x,A,C,F;
return{animationConfig:{autoplay:(A=(n=b().backgroundAnimation)==null?void 0:(r=n.settings)==null?void 0:r.autoplay)!=null?A:!1,loop:(C=(t=b().backgroundAnimation)==null?void 0:(u=t.settings)==null?void 0:u.loop)!=null?C:!1,path:(F=(x=b().backgroundAnimation)==null?void 0:x.url)!=null?F:"",name:"stories_item_background_animation"}}};
_.wh(function(){if(a.isVisible()){var n;(n=g.lottieEl)==null||n.play()}else{var r;(r=g.lottieEl)==null||r.stop()}},"mqLH7c");
return _.q("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.ot({"background-color":function(){return _.Dq(c())+";"}})},_.q("div",{class:"ytStoriesItemViewModelAssetContent"},_.q(_.qi,{cond:function(){return!!b().backgroundAnimation},
then:function(){return _.q(_.gt,{data:m,animationName:function(){return m().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.q(_.qi,{cond:function(){return!!b().backgroundImage},
then:function(){return _.q(_.Ps,{data:function(){return b().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.q(_.qi,{cond:function(){return!!b().foregroundAnimation},
then:function(){return _.q(_.gt,{data:k,animationName:function(){return k().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.q(_.qi,{cond:function(){return!!b().foregroundImage},
then:function(){return _.q(_.Ps,{data:function(){return b().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.q("div",{class:"ytStoriesItemViewModelTopShadow"}),_.q(_.Hu,{data:function(){return e()}},{storiesStickerLayerViewModel:V_c})),_.q("div",{class:"ytStoriesItemViewModelBottomShadow"},_.q("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.lt(a.pauseAutoNavigation)},_.q(_.ri,{each:d},function(n){return _.q(W_c,{data:function(){return n}})}))))},"qg"),W_c=_.Rr(function(a){var b={};
return _.q("div",{class:_.et("ytStoriesItemViewModelActionButton",(b.ytStoriesItemViewModelStretchedActionButton=function(){return a.data().size==="STORIES_BUTTON_SIZE_STRETCH"},b))},_.q(_.Hu,{data:function(){return a.data().button}},{buttonViewModel:function(c){return _.q(_.Qu,{data:c.data,
className:"ytStoriesItemViewModelButton"})}}))},"rg");_.Ts(_.Rr(function(a){var b=_.h(_.nt(function(){var R;return(R=a.data().startIndex)!=null?R:0})),c=b.next().value,d=b.next().value;
b=_.h(_.ih(!1,void 0,"klmjc"));var e=b.next().value,g=b.next().value,k=function(){var R;return(R=a.data().storyItems)!=null?R:[]},m=function(){return a.data().dismissButton},n=function(){var R;
return _.y((R=_.y(m(),_.Iu))==null?void 0:R.onTap,_.Cs)},r=_.Pl(),t,u=function(){var R;
(R=t)==null||R.cancel();t=x(c()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});t.onfinish=function(){x(c()).style.width="100%";var da=_.y(k()[c()],XJc),V,fa;da!=null&&da.foregroundAnimation&&((da==null?0:(V=da.foregroundAnimation)==null?0:V.url)||(da==null?0:(fa=da.foregroundAnimation)==null?0:fa.payload))||(c()!==k().length-1?(d(c()+1),u()):n()&&_.Es(n()))}},x=function(R){return r.value.children[R].children[0]},A=function(){for(var R=0;R<c();R++)x(R).style.width="100%"};
b=_.lt(function(){e()?g(!1):(c()===k().length-1&&n()&&_.Es(n()),x(c()).style.width="100%",c()!==k().length-1&&(d(c()+1),u()))});
var C=_.lt(function(){e()?g(!1):(x(c()).style.width="0%",c()!==0?d(c()-1):d(c()),u())}),F=function(){g(!0)},J=function(){x(c()).style.width="100%";
c()!==k().length-1?(d(c()+1),u()):n()&&_.Es(n())},I=_.lt(function(){var R;
(R=t)==null||R.pause()});
_.wh(function(){if(e()){var R;(R=t)==null||R.pause()}else{var da;(da=t)==null||da.play()}},"DOw9ke");
_.wh(function(){A();c()===a.data().startIndex&&u()},"vR1mL");
_.wi(function(){A();u()});
return _.q("yt-stories-viewer-view-model",{class:_.et("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.q("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.q("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":C,"on:mousedown":I}),_.q("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":b,"on:mousedown":I})),_.q(_.Hu,{data:k},{storiesItemViewModel:function(R,da){var V=R.data;return _.q(_.qi,{cond:function(){return Math.abs(da()-
c())<=1},
then:function(){var fa={};return _.q("div",{class:_.et("ytStoriesViewerViewModelStoryItem",(fa.ytStoriesViewerViewModelHiddenStoryItem=function(){return da()!==c()},fa))},_.q(X_c,{data:V,
pauseAutoNavigation:F,navigateToNextItemOnLottieComplete:J,isVisible:function(){return da()===c()}}))}})}}),_.q("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:r},_.q(_.ri,{each:k},function(){return _.q("div",{class:"ytStoriesViewerViewModelProgressBar"},_.q("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.q("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.q(_.Hu,{data:m},{buttonViewModel:_.Qu})))},"sg"),"yt-stories-viewer-view-model",{props:{data:_.VG}});_.Ts(_.Rr(function(a){var b=a.data;var c=_.Pl(),d=[];return _.q("yt-gen-ai-feedback-form-view-model",{el:c,class:"ytGenAiFeedbackFormViewModelHost"},_.q(_.tt,{text:function(){return b().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.q("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.q(_.Hu,{data:function(){return b().feedbackChips}},{toggleButtonViewModel:function(e){var g=e.data;
return _.q(_.Ku,{data:g,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(k){var m=g();m=_.y(m,_.Ju);m=_.y(m==null?void 0:m.defaultButtonViewModel,_.Iu).trackingParams;k?d.push(m):(k=d.indexOf(m),k>-1&&d.splice(k,1))}})}})),_.q(_.tt,{text:function(){return b().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.q("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.q(_.Hu,{data:function(){return b().submitButton}},{buttonViewModel:function(e){return _.q(_.Qu,{data:e.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){Uyc(c.value,d,b().uniqueId)}})}}),_.q(_.Hu,{data:function(){return b().moreFeedbackButton}},{buttonViewModel:function(e){return _.q(_.Qu,{data:e.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"tg"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.VG},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var m5=function(){return _.P.apply(this,arguments)||this};
_.z(m5,_.P);m5.prototype.created=function(){yAc(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(rNc);var a=_.v().resolve(_.rhc);a&&(a.container=this.ytPopupContainerBehavior);if(a=_.v().resolve(_.KJ))a.container=this.ytPopupContainerBehavior;if(a=_.v().resolve(_.LJ)){var b=this.ytPopupContainerBehavior;a.containerWasInjected?_.Dl(Error("fj")):a.container=b}};
m5.prototype.ensurePopupBelowPlayer=function(a,b){var c=_.v().resolve(_.Xi(_.Zt));if(!c||!c.isOnWatch()||!_.au())return!1;c=c.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.tq().height>c+this.getPopupHeight(a,b)?(a.style.top="auto",a.style.bottom="0px"):(a.style.top=c+"px",a.style.bottom="auto");return!0};
m5.prototype.getPopupHeight=function(a,b){b&&(a.cachedPopupHeight=0);if(!a.cachedPopupHeight){b=0;var c=a.clientHeight,d=window.getComputedStyle(a);b+=parseInt(d.marginTop,10);b+=parseInt(d.marginBottom,10);a.cachedPopupHeight=c+b}return a.cachedPopupHeight};
m5.prototype.getElement=function(a){return document.createElement(a)};
var Y_c=m5;_.U([_.H(lYc.YtPopupContainerBehavior),_.W("design:type",Object)],Y_c.prototype,"ytPopupContainerBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],Y_c.prototype,"ytComponentBehavior",void 0);Y_c=_.U([_.Q({disableElementRegistration:!0,is:"ytd-popup-container"})],Y_c);
_.S(Y_c,"ytd-popup-container",function(){if(aYc!==void 0)return aYc;var a=document.createElement("template");_.B(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-popup-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return aYc=a},{mode:1});var Z_c;var $_c={};$_c.YtLogYpcFlowCommandsBehavior=[_.eH.YtActionHandlerBehavior,{created:function(){this.logFlowCommandsMap_={"yt-log-ypc-flow-start-command":"handleLogYpcFlowStart_","yt-log-ypc-flow-dismiss-command":"handleLogYpcFlowDismiss_"}},
attached:function(){this.registerActionMap(this.logFlowCommandsMap_)},
detached:function(){this.unregisterActionMap(this.logFlowCommandsMap_)},
handleLogYpcFlowStart_:function(a){_.y(a,oKc)&&(a=_.y(a,oKc))&&(a.serializedTransactionFlowLoggingParams?_.DJa(a.serializedTransactionFlowLoggingParams):a.serializedYpcCancelFlowLoggingParams?(a=a.serializedYpcCancelFlowLoggingParams)&&_.NW("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",a):a.serializedYpcResumeFlowLoggingParams?(a=a.serializedYpcResumeFlowLoggingParams)&&_.NW("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",a):a.serializedYpcPauseFlowLoggingParams?(a=a.serializedYpcPauseFlowLoggingParams)&&
_.NW("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",a):a.serializedYpcRefundFlowLoggingParams?(a=a.serializedYpcRefundFlowLoggingParams)&&$tc("YPC_EVENT_TYPE_START",a):a.serializedYpcDeactivateFlowLoggingParams?(a=a.serializedYpcDeactivateFlowLoggingParams)&&_.NW("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",a):a.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(a=a.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.NW("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",a))},
handleLogYpcFlowDismiss_:function(a){_.y(a,nKc)&&(a=_.y(a,nKc),a.serializedTransactionFlowLoggingParams?_.EJa(a.serializedTransactionFlowLoggingParams):a.serializedYpcCancelFlowLoggingParams?(a=a.serializedYpcCancelFlowLoggingParams)&&_.NW("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",a):a.serializedYpcResumeFlowLoggingParams?(a=a.serializedYpcResumeFlowLoggingParams)&&_.NW("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",a):a.serializedYpcPauseFlowLoggingParams?(a=
a.serializedYpcPauseFlowLoggingParams)&&_.NW("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",a):a.serializedYpcRefundFlowLoggingParams&&(a=a.serializedYpcRefundFlowLoggingParams)&&$tc("YPC_EVENT_TYPE_CANCEL",a))}}];var a0c={};a0c.YtCancelRecurrenceBehavior=[_.OG.YtComponentBehavior,_.LRb,{attached:function(){var a=this;hBc(this,function(b,c){return a.ypcCancelRecurrenceHandler(b,c)})},
ypcCancelRecurrenceHandler:function(a,b){var c=this;if(!b||!b.ypcCancelRecurrenceEndpoint)return!1;if(!b.ypcCancelRecurrenceEndpoint.params)return _.Hi(Error("xl")),!0;_.gw(this.hostElement);var d=_.Pt.instance,e=_.v().resolve(_.Xi(_.xq));d&&_.Qt(d,b)?_.Rt(d,b).then(function(g){c.ypcCancelRecurrenceSuccess_(a,b,{data:g})},function(g){c.ypcCancelRecurrenceFailure_(a,b,g)}).thenCatch(function(){_.Hi(Error("yl"))}):e?e.requestDataForServiceEndpoint(b).then(function(g){c.ypcCancelRecurrenceSuccess_(a,
b,g)},function(g){c.ypcCancelRecurrenceFailure_(a,b,g)}).thenCatch(function(){_.Hi(Error("yl"))}):_.Hi(Error("zl"));
return!0},
ypcCancelRecurrenceSuccess_:function(a,b,c){_.hw(this.hostElement);c.data||(c={data:c});c.data&&c.data.actions&&_.po(this.hostElement,c.data.actions,this.hostElement);c.data.messageRenderer?buc(b.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(b=b.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.NW("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",b);_.io(a,"yt-service-request-completed",c)},
ypcCancelRecurrenceFailure_:function(a,b,c){_.hw(this.hostElement);buc(b.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.io(a,"yt-service-request-error",{error:c,params:[a,b]})}}];var b0c=function(a,b){_.ca.call(this,b)};
_.z(b0c,HCc);var c0c={};c0c.YtCompleteTransactionBehavior=[_.OG.YtComponentBehavior,_.LRb,{attached:function(){var a=this;hBc(this,function(b,c){return a.ypcCompleteTransactionHandler(b,c)})},
completeTransaction:function(a,b){var c=this;b={payments_payload:window.btoa(b.integratorData),buybucket_params:a.data.buybucketParams,offer_params:a.data.offerParams};var d=_.v().resolve(_.xq),e=a.data.completeTransactionEndpoint,g=this.get("ypcCompleteTransactionEndpoint.actions",e);g&&_.po(this.hostElement,g,this.hostElement);return(g=_.Pt.instance)&&_.Qt(g,e)?_.Rt(g,e,b).then(function(k){return!k||(k==null?0:k.error)?(k=c.get("data.serializedTransactionFlowLoggingParams",a),_.On(new oZ("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
k))):{data:k}}).then(function(k){return c.handleCompleteTransactionSuccess_(k,a)},function(){return c.handleCompleteTransactionFailure_(a)}):d.requestDataForServiceEndpoint(e,b).then(function(k){return c.handleCompleteTransactionSuccess_(k,a)},function(){return c.handleCompleteTransactionFailure_(a)})},
handleCompleteTransactionSuccess_:function(a,b){a.data||(a={data:a});if(a.data.messageRenderer)return _.On(new b0c(a.data.messageRenderer));if(a.data.trackingParams){var c=_.En(),d=_.Dn();c&&d&&_.To(c,d,_.ps(a.data.trackingParams))}b=this.get("data.serializedTransactionFlowLoggingParams",b);auc(b);return _.qo(a)},
handleCompleteTransactionFailure_:function(a){a=this.get("data.serializedTransactionFlowLoggingParams",a);_.Pq("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",a);return _.On(new oZ("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",a))},
ypcCompleteTransactionHandler:function(a,b){var c=this;if(!b.ypcCompleteTransactionEndpoint)return!1;if(!b.ypcCompleteTransactionEndpoint.transactionParams)return _.Hi(Error("Al")),!0;b.ypcCompleteTransactionEndpoint&&b.ypcCompleteTransactionEndpoint.gtmData&&_.CG(b.ypcCompleteTransactionEndpoint.gtmData);var d=_.v().resolve(_.Xi(_.xq));if(d){_.gw(this.hostElement);var e=_.Pt.instance;e&&_.Qt(e,b)?_.Rt(e,b).then(function(g){return!g||(g==null?0:g.error)?(g=c.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
b),_.On(new oZ("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",g))):{data:g}}).then(function(g){_.io(a,"yt-service-request-completed");
c.ypcCompleteTransactionSuccess_(b,g)},function(){return c.ypcCompleteTransactionFailure_(b)}):d.requestDataForServiceEndpoint(b).then(function(g){_.io(a,"yt-service-request-completed");
c.ypcCompleteTransactionSuccess_(b,g)},function(){return c.ypcCompleteTransactionFailure_(b)})}return!0},
ypcCompleteTransactionSuccess_:function(a,b){_.hw(this.hostElement);b.data||(b={data:b});_.lo(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);b.data.messageRenderer||b.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(a):(_.CG('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",a));b.data.actions&&(a=hxc(b.data.actions),b=ixc(b.data.actions),a.length&&_.oo(this.hostElement,
a),b.length&&_.po(this.hostElement,b,this.hostElement))},
ypcCompleteTransactionFailure_:function(a){_.hw(this.hostElement);_.lo(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",a,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(a,b,c){if(b=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",b))b={serializedTransactionFlowLoggingParams:b},c&&(b.errorType=c),_.xl(a,b),_.Al()}}];var d0c={};d0c.YtEndpointHandlerWithYpcBehavior=[_.LRb,_.eH.YtActionHandlerBehavior,[{openWalletDialog:function(a,b,c,d,e,g,k){var m=this,n=_.St();b=b.replace(/-/g,"+").replace(/_/g,"/");var r=_.yo().get("hl");_.c5a(_.tw(_.Qq),b,n.resolve,e,function(t){g&&g();n.reject(t)},r,function(t){return m.onServerBackendAnalyticEvent_(a,c,t)},this.onDialogClose_.bind(this),d,k);
return n.promise},
openFixFlowDialog:function(a,b,c,d){a=a.replace(/-/g,"+").replace(/_/g,"/");_.tw(_.Qq).openFixFlowDialog(a,b,c,d)},
onDialogClose_:function(){_.lo(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(a,b,c){a.fire("yt-commerce-action-init-done");b&&_.oo(this.hostElement,[b,{backend_analytics:c}])}}],
_.pH.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(a,b){a=this.get("data.nativeFlowEndpoint",b);b=this.get("data.fallbackEndpoint",b);a?_.oo(this.hostElement,[a]):b&&_.io(this.hostElement,"yt-navigate",{endpoint:b})}}],
a0c.YtCancelRecurrenceBehavior,c0c.YtCompleteTransactionBehavior,{listeners:{"yt-service-request-sent":"onServiceRequestSent_","yt-service-request-completed":"onGetCartServiceRequestCompleted_","yt-service-request-error":"onServiceRequestError_"},created:function(){this.buyFlowActionMap_={};this.ypcRegisterActionMapJobId_=0},
attached:function(){var a=this;hBc(this,function(b,c,d){return a.handleYPCEndpoint(b,c,d)});
this.ypcRegisterActionMapJobId_=_.sl(_.zk,function(){a.registerActionMap(a.buyFlowActionMap_)})},
detached:function(){var a=this;_.zk.cancelJob(this.ypcRegisterActionMapJobId_);_.sl(_.zk,function(){a.unregisterActionMap(a.buyFlowActionMap_)})},
handleYPCEndpoint:function(a,b,c){var d=b.ypcGetCartEndpoint;if(d){_.Ko("commerce_transaction");var e=d.gtmId;e&&_.BG(e);(d=d.gtmData)&&_.CG(d)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",b)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(a,b),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",b)!=null?(this.handleYPCFixInstrumentEndpoint_(a,b),!0):b.ypcPauseSubscriptionCommand?(czc(this.hostElement,a,b,c),
!0):b.ypcResumeSubscriptionCommand?(fzc(this.hostElement,a,b),!0):b.getPaymentInstrumentsParamsCommand?($yc(this.hostElement,a,b),!0):b.ypcHandleTransactionEndpoint?(Yyc(this.hostElement,a,b,c),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(a,b){var c=this;_.Lo("ttcr",void 0,"commerce_transaction");b=b.ypcGetCartEndpoint;var d=b.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,e=d.encryptedPurchaseParams,g=d.serializedTransactionFlowLoggingParams,k=d.serializedPaymentsClientParams,m=this.createGetCartResponseFromParams_(d,b.offerParams,g);this.changeButtonState(a,!0);_.Lz(this.openWalletDialog(a,e,d.ypcLogWalletAnalyticDataEndpoint,g,function(){c.changeButtonState(a,!1)},function(){c.changeButtonState(a,
!1)},k).then(function(n){return c.handleBuyFlowCompleteCallback_(a,m,n)},function(){return c.handleOnLoadError(m)}).then(function(n){return void c.handlePostPurchaseSuccess_(a,m,n)},function(n){return void c.handlePostPurchaseError_(n)}),function(){c.changeButtonState(a,!1);
a instanceof Element&&_.io(a,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(a,b,c){var d=a.completeTransactionEndpoint,e=a.handleTransactionEndpoint;b={data:{offerParams:window.btoa(b),serializedTransactionFlowLoggingParams:c}};e?b.data.handleTransactionEndpoint=e:b.data.completeTransactionEndpoint=d;a.onCartDismissCommand&&(b.data.onCartDismissCommand=a.onCartDismissCommand);return b},
onGetCartServiceRequestCompleted_:function(a,b){var c=this,d=a.target;if(b&&b.data&&b.data.messageRenderer)_.hw(this.hostElement),this.handleMessageRenderer_(b.data.messageRenderer),this.changeButtonState(d,!1);else{var e=this.get("data.encryptedPurchaseParams",b),g=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",b),k=this.get("data.ypcLogWalletAnalyticDataEndpoint",b),m=this.get("data.serializedPaymentsClientParams",b),n=this.getLoggingParams_(b);if(n||e||g)a.stopPropagation(),_.Lo("ttcr",
void 0,"commerce_transaction"),e||_.hw(this.hostElement),this.changeButtonState(d,!1),g?_.lo(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.Fi("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:g}}},this]):e&&(this.changeButtonState(d,!0),a=null,a=this.openWalletDialog(d,e,k,n,function(){_.hw(c.hostElement);c.changeButtonState(d,!1)},function(){_.hw(c.hostElement);
c.changeButtonState(d,!1)},m),_.Lz(a.then(function(r){return c.handleBuyFlowCompleteCallback_(d,b,r)},function(){return c.handleOnLoadError(b)}).then(function(r){return c.handlePostPurchaseSuccess_(d,b,r)},function(r){return c.handlePostPurchaseError_(r)}),function(){c.changeButtonState(d,!1);
_.io(d,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(a,b){b&&b.endpoint&&b.endpoint.ypcGetCartEndpoint&&!b.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",b.endpoint.ypcGetCartEndpoint)&&_.po(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",b.endpoint.ypcGetCartEndpoint)],a.target),_.gw(this.hostElement),this.changeButtonState(a.target,!0))},
onServiceRequestError_:function(a,b){if(b&&b.params&&b.params.length){b=_.h(b.params);for(var c=b.next();!c.done;c=b.next())if((c=c.value)&&c.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",c.ypcGetCartEndpoint)&&_.po(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",c.ypcGetCartEndpoint)],a.target);_.hw(this.hostElement);this.changeButtonState(a.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(a,b,c){var d=c.integratorData;return d==null||d===""||c.error!=null?(d=this.getLoggingParams_(b),String(c.error)==="-1"?(b.data.onCartDismissCommand&&_.po(this.hostElement,[b.data.onCartDismissCommand],a),_.On(new oZ("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",d,!0))):_.On(new oZ("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",d))):b.data.handleTransactionEndpoint?Zyc(this.hostElement,b.data.handleTransactionEndpoint,{payments_payload:d,funds_guarantee_callback_client_data:c.integratorClientCallbackData}):
this.completeTransaction(b,c)},
handlePostPurchaseSuccess_:function(a,b,c){b=c.data;var d=!1,e,g;if(b&&((e=b.command)==null?0:(g=e.commandExecutorCommand)==null?0:g.commands)){var k,m;e=(k=b.command)==null?void 0:(m=k.commandExecutorCommand)==null?void 0:m.commands;for(k=0;k<e.length;k++)if(_.y(e[k],_.aGb)){d=!0;break}}d||(b&&b.gtmDatas&&b.gtmDatas.length?_.CG(b.gtmDatas[0]):_.CG('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));c.data&&c.data.actions&&(b=hxc(c.data.actions),c=ixc(c.data.actions),b.length&&
_.oo(this.hostElement,b),c.length&&_.po(this.hostElement,c,a))},
handlePostPurchaseError_:function(a){a&&a.payload&&a.payload.isUserDismiss||_.Bl(Error("Cl"))},
handleOnLoadError:function(a){a=this.getLoggingParams_(a);return _.On(new oZ("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",a))},
getLoggingParams_:function(a){return this.get("data.serializedTransactionFlowLoggingParams",a)},
handleMessageRenderer_:function(a){var b=_.Ci(a,"renderer"),c=_.Fi("openPopupConfig");b==="confirmDialogRenderer"&&c&&_.lo(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:c.popupTypeMap[b],popup:a}},this])},
handleYPCFixInstrumentEndpoint_:function(a,b){var c=this,d=b.ypcFixInstrumentEndpoint;b=d.encryptedFixInstrumentParameters;this.logFixFopEvent_(d,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(a,!0);this.openFixFlowDialog(b,function(e,g){c.onFixFlowCompleteCallback_(d,e,g)},function(){return c.changeButtonState(a,!1)},function(){c.changeButtonState(a,!1);
c.logFixFopEvent_(d,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(a,b,c){var d=_.Ji("payments.business.integration.scenario.FixInstrument");if(b==d.IntegratorCallbackType.ON_COMPLETE){b="FIX_FOP_EVENT_TYPE_CANCEL";var e=null;c.error!=null?c.error!=d.OnCompleteCallbackError.USER_CANCELLED&&(_.po(this.hostElement,[a.errorAction],this.hostElement),b="FIX_FOP_EVENT_TYPE_FAILURE",e="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.po(this.hostElement,[a.successAction],this.hostElement),b="FIX_FOP_EVENT_TYPE_SUCCESS");_.po(this.hostElement,[a.onFinishAction],
this.hostElement);this.logFixFopEvent_(a,b,e)}},
logFixFopEvent_:function(a,b,c){(a=a.serializedFixFopLoggingParams)?(b={eventType:b,serializedFixFopLoggingParams:a},c!=null&&(b.errorType=c),_.xl("fixFopFlow",b),_.Al()):_.Bl(Error("Dl"))},
changeButtonState:function(a,b){_.w("enable_ypc_spinners")&&a&&(a.is==="yt-button-renderer"||a.is==="ytd-button-renderer")&&(a.disabled=b)}}];var e0c=function(a){this.JSC$28470_clientRoot=a;this.feedbackCollectorActionMap={"yt-help-dialog-requested":hzc,"yt-feedback-dialog-requested":gzc,"yt-signal-action-help":izc,"yt-signal-action-send-feedback":jzc,"yt-send-feedback-action":lzc,"yt-user-feedback-endpoint":mzc};_.Ml(_.Ll.getInstance(),this.feedbackCollectorActionMap,this.JSC$28470_clientRoot)},f0c;var g0c=function(a){this.JSC$28475_clientRoot=a;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":nzc.bind(null,this.JSC$28475_clientRoot),"yt-signal-action-delete-all-downloads":pzc,"yt-signal-action-delete-download":qzc,"yt-signal-action-delete-playlist-download":szc,"yt-signal-action-install-pwa":yzc,"yt-signal-action-refresh-downloads":wzc,"yt-offline-video-endpoint":Azc,"yt-offline-playlist-endpoint":Czc,"yt-update-local-app-setting-command":Ezc,"yt-offline-orchestration-action-command":Gzc,
"yt-signal-action-undo-delete-download":uzc,"yt-local-watch-history-command":Jzc};_.Ml(_.Ll.getInstance(),this.downloadManagerActionMap,this.JSC$28475_clientRoot);_.Lq.instance=new _.Lq},h0c;var i0c=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-get-mdx-status":"handleGetMdxStatus_","yt-add-to-remote-queue-action":"handleAddToQueueAction_","yt-clear-remote-queue-action":"handleClearQueueAction_","yt-insert-in-remote-queue-action":"handleInsertInQueueAction_","yt-remove-from-remote-queue-action":"handleRemoveFromQueueAction_"};a.remoteApi_=null;return a};
_.z(i0c,_.P);_.f=i0c.prototype;
_.f.ready=function(){_.w("polymer_enable_mdx")&&(pMc({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.w("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.w("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.w("enable_cast_short_lived_lounge_token")}),_.bl("yt-remote-connection-change",this.handleConnectionChange_,this),_.bl("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=wMc())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.f.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.f.handleConnectionChange_=function(a){(this.mdxConnected=a)?(a=sMc(),!a&&Twc()&&Uwc()&&(a={key:"cast-selector-receiver",name:Uwc()}),a=a.name):a=null;this.receiverName=a;_.Xf(this.remoteApi_);(this.remoteApi_=wMc())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.f.handleReceiverAvailabilityChange_=function(){var a=rMc();Twc()&&_.vG("yt-remote-cast-available")&&a.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=a.length>0};
_.f.handleRemoteQueueChange_=function(){var a=this.currentVideoId_,b=this.currentListId_,c=q0(this.remoteApi_);this.currentVideoId_=c.videoId;this.currentListId_=c.listId;this.currentVideoId_&&_.lo(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.w("polymer_enable_mdx_queue")?this.currentListId_:null,a,b])};
_.f.handleAddToQueueAction_=function(a){a=_.y(a,YJc);this.remoteApi_&&(a.videoId?this.remoteApi_.addVideo(a.videoId):a.playlistId&&this.remoteApi_.addPlaylist(a.playlistId))};
_.f.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.f.handleInsertInQueueAction_=function(a){a=_.y(a,ZJc);this.remoteApi_&&a.videoId&&this.remoteApi_.JSC$17376_insertVideo(a.videoId)};
_.f.handleRemoveFromQueueAction_=function(a){a=_.y(a,$Jc);this.remoteApi_&&a.videoId&&this.remoteApi_.JSC$17376_removeVideo(a.videoId)};
var n5=i0c;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],n5.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],n5.prototype,"appId",void 0);_.U([_.O(),_.W("design:type",Boolean)],n5.prototype,"mdxConnected",void 0);_.U([_.O(),_.W("design:type",Boolean)],n5.prototype,"receiverAvailable",void 0);_.U([_.O(),_.W("design:type",Object)],n5.prototype,"receiverName",void 0);_.U([_.O(),_.W("design:type",Object)],n5.prototype,"currentVideoId_",void 0);
_.U([_.O(),_.W("design:type",Object)],n5.prototype,"currentListId_",void 0);n5=_.U([_.wr({is:"yt-mdx-manager",disableElementRegistration:!0})],n5);_.S(n5,"yt-mdx-manager",void 0,{mode:2});var j0c;var k0c;var l0c=function(){var a=_.P.apply(this,arguments)||this;a.APP_IDS={ytr:3,ytm:5};a.JSC$18621_timeoutId_=0;a.actionMap={"yt-open-create-family-dialog":"open"};return a};
_.z(l0c,_.P);_.f=l0c.prototype;_.f.created=function(){yAc(2200)};
_.f.detached=function(){this.observer_&&this.observer_.disconnect()};
_.f.open=function(a,b){var c=this,d=a.serializedYpcFamilyCreateLoggingParams;this.JSC$18621_timeoutId_=setTimeout(this.abort_.bind(this,a.postFlowErrorEndpoint,d),3E4);b&&(this.onReadyCallback_=b);var e=_.E(this.hostElement).querySelector("#unicorn-iframe");d&&d&&Ztc("ypcFamilyCreateFlowStarted",d);_.dCa("family_creation",function(){var g=_.Ji("gapi.family_creation.render");_.Ji("gapi.config.update")("iframes/family_creation/url",c.getFamilyCreationUrlWithUnicornParams_());var k=3;a.appId&&a.appId in
c.APP_IDS&&(k=c.APP_IDS[a.appId]);k={authUser:_.Fi("SESSION_INDEX")||0,clientId:k,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.Fi("HL"),initialflow:[4,5,6,7],m:c.isMobile?1:0,onFlowComplete:c.onUnicornFlowComplete_.bind(c,a.postFlowSuccessEndpoint,d),onError:c.onUnicornFlowError_.bind(c,a.postFlowErrorEndpoint,d),onReady:c.onUnicornFlowReady_.bind(c,a.referencePcidParams)};g(e,k)})};
_.f.close=function(){_.E(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.f.onUnicornFlowComplete_=function(a,b){this.close();b&&b&&Ztc("ypcFamilyCreateFlowSucceeded",b);_.io(this.hostElement,"yt-navigate",{endpoint:a})};
_.f.onUnicornFlowError_=function(a,b){this.close();b&&Ztc("ypcFamilyCreateFlowCancelled",b);_.io(this.hostElement,"yt-navigate",{endpoint:a})};
_.f.onUnicornFlowReady_=function(a){var b=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();a&&_.Ji("gapi.family_creation.setConfig")(0,a);this.observer_=new MutationObserver(function(){_.E(b.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.E(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.E(this.hostElement).querySelector("#dialog").open()};
_.f.getFamilyCreationUrlWithUnicornParams_=function(){return _.Fi("YTR_FAMILY_CREATION_URL")};
_.f.getCurrentUrl_=function(){return document.location.href};
_.f.abort_=function(a,b){this.clearTimeout_();this.onUnicornFlowError_(a,b)};
_.f.clearTimeout_=function(){clearTimeout(this.JSC$18621_timeoutId_)};
var o5=l0c;_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],o5.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],o5.prototype,"isMobile",void 0);_.U([_.O(),_.W("design:type",Object)],o5.prototype,"onReadyCallback_",void 0);_.U([_.O(),_.W("design:type",Object)],o5.prototype,"observer_",void 0);o5=_.U([_.wr({is:"yt-create-family-dialog",disableElementRegistration:!0})],o5);
_.S(o5,"yt-create-family-dialog",function(){if(k0c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-create-family-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_create_family_dialog.yt.create.family.dialog.css.js--\x3e<tp-yt-paper-dialog id="dialog" with-backdrop="" class="style-scope yt-create-family-dialog">\n  <div id="unicorn-iframe" class="style-scope yt-create-family-dialog"></div>\n</tp-yt-paper-dialog>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;j0c===void 0&&(j0c=document.createElement("template"));var d=j0c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);k0c=a}a=k0c;return a},{mode:2});var m0c;var n0c;var o0c=function(){var a=_.P.apply(this,arguments)||this;a.STEP=1;a.BLOCK_ON=80;a.MIN_PROGESS=0;a.MAX_PROGESS=100;return a};
_.z(o0c,_.P);_.f=o0c.prototype;_.f.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.f.ready=function(){this.progress_=this.MIN_PROGESS;this.hostElement.hidden=!0;this.hostElement.setAttribute("aria-valuemin",String(this.MIN_PROGESS));this.hostElement.setAttribute("aria-valuemax",String(this.MAX_PROGESS));_.v().addProvider({provide:aNc,useValue:this})};
_.f.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.f.finish=function(){var a=this;this.progress=this.MAX_PROGESS;Kzc(function(){a.progress==a.MAX_PROGESS&&(a.hostElement.hidden=!0)})};
_.f.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.Um.Object.defineProperties(o0c.prototype,{progress:{configurable:!0,enumerable:!0,set:function(a){this.progress_=a;var b="scaleX("+a/this.MAX_PROGESS+")",c=_.E(this.hostElement).querySelector("#progress").style;c.transform=b;c.webkitTransform=b;this.hostElement.setAttribute("aria-valuenow",String(a))},
get:function(){return this.progress_}}});
var p0c=o0c;_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],p0c.prototype,"ytComponentBehavior",void 0);p0c=_.U([_.wr({is:"yt-page-navigation-progress",disableElementRegistration:!0})],p0c);
_.S(p0c,"yt-page-navigation-progress",function(){if(n0c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-page-navigation-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_page_navigation_progress.yt.page.navigation.progress.css.js--\x3e<div id="progress" class="style-scope yt-page-navigation-progress"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;m0c===void 0&&(m0c=document.createElement("template"));var d=m0c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);n0c=a}a=n0c;return a},{mode:2});var q0c={padding:"10px 16px","font-size":"32px","font-weight":"bold",background:"linear-gradient(135deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%)",color:"#fff","text-shadow":"1px 1px 3px rgba(255, 255, 255, 0.3)","border-radius":"15px"},r0c={"font-size":"12px","font-style":"italic"},s0c={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.Ozc=function(){return _.l(function(a){_.ue(a)})};_.Ts(_.Rr(function(){var a=_.Ht(_.H5a);return _.q("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var b;return(b=a())==null?void 0:b.announcement})},"ug"),"yt-ephemeral-actions");var fAc=new Map;var Fsc=function(a,b){var c=this;this.handleError=a;this.logEventInternal=b;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){c.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
Fsc.prototype.logError=function(a){this.handleError(a)};
Fsc.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":_.w("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":_.w("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":t0c(this,b);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign({},b,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",a)}};
var t0c=function(a,b){_.wW.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:hAc(c==null?void 0:c.usage),deviceStorageQuotaMbytes:hAc(c==null?void 0:c.quota)});a.logEventInternal("idbQuotaExceeded",c)})};var u0c=function(){var a=_.P.apply(this,arguments)||this;a.tabGesturesIsActive=!1;a.deprecateFullerscreenUi=_.w("web_watch_fullerscreen_deprecation_ui");a.hasDelegation=!1;a.darkerDarkTheme=_.w("web_darker_dark_theme");a.isFrostedGlassInitialized=!1;a.frostedGlassExp=_.w("web_frosted_glass");a.mastheadHiddenFocusWithinKillswitch=_.w("web_masthead_hidden_focus_within_killswitch");a.ephemeralActionsEnabled=_.w("web_ephemeral_actions");a.scrollAtTop=!0;a.guideScrollTop=0;a.isTheaterModeSession=_.Gi("START_IN_THEATER_MODE");
a.isFullWindowSession=_.Gi("START_IN_FULL_WINDOW_MODE");a.hasCreateFamilyDialog=!1;a.mastheadHeight=56;a.networkStatusManager=new _.Lk;a.actionMap={"yt-command-executor-command":"handleCommandWithCommandHandler","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-edu-dismiss-action":"handleEduDismissAction","yt-edu-impression-action":"handleEduImpressionAction","yt-navigate-action":"onYtNavigateAction","yt-navigate-home-action":"onYtNavigateHomeAction","yt-player-fullscreen":"onPlayerFullscreen",
"yt-register-create-family-dialog":"onYtRegisterCreateFamilyDialog","yt-select-country-command":"handleSelectCountryCommand","yt-select-language-command":"handleSelectLanguageCommand","yt-clear-url-param-command":"handleClearUrlParamCommand","yt-set-push-notifications-enabled-command":"onSetPushNotificationsEnabledCommand","yt-signal-action-copy-debug-data":"onYtSignalActionCopyDebugData","yt-signal-action-enable-chrome-notifications":"onYtSignalActionEnableChromeNotifications","yt-signal-action-toggle-restricted-mode-on":"onYtSignalActionToggleRestrictedModeOnAction",
"yt-signal-action-toggle-restricted-mode-off":"onYtSignalActionToggleRestrictedModeOffAction","yt-signal-action-confirm-mentions-edu":"onYtSignalActionConfirmMentionsEdu","yt-signal-action-record-mentions-edu-impression":"onYtSignalActionRecordMentionsEduImpression","yt-signal-action-show-keyboard-shortcut-dialog":"onYtSignalActionShowKeyboardShortcutDialog","yt-signal-action-skip-navigation":"onYtSignalActionSkipNavigation","yt-signal-action-request-persistent-storage":"onYtSignalActionRequestPersistentStorage",
"yt-timed-command":"onYtTimedCommand","yt-window-resized":"onWindowResized","yt-window-scrolled":"onWindowScrolled","yt-persist-subscriptions-display-preferences-command":"handlePersistSubscriptionsDisplayPreferencesCommand","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleWebNativeShareCommand","yt-confirm-dialog-endpoint":"handleConfirmDialogEndpoint","yt-ad-feedback-endpoint":"handleOpenPopupNavigationEndpoints",
"yt-create-backstage-post-dialog-endpoint":"handleOpenPopupNavigationEndpoints","yt-manage-purchase-endpoint":"handleOpenPopupNavigationEndpoints","yt-modal-endpoint":"handleOpenPopupNavigationEndpoints","yt-unlimited-family-flow-endpoint":"handleOpenPopupNavigationEndpoints","yt-ypc-cancel-survey-endpoint":"handleOpenPopupNavigationEndpoints","yt-register-promo-command":"handleYtRegisterPromoCommand","yt-location-collection-command":"onYtLocationCollectionCommand","yt-get-location-command":"onYtGetLocationCommand",
"yt-log-flow-logging-event-command":"logFlowLoggingEventCommand","yt-save-command-to-session-storage-action":"handleSaveCommandToSessionStorage","yt-show-dma-consent-flow-command":"handleShowConsentPrimitive","yt-signal-action-show-dma-consent-flow":"handleShowConsentPrimitive","yt-show-mmg-notice-command":"handleShowConsentPrimitive","yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice",
"yt-select-active-identity-endpoint":"handleSelectActiveIdentityEndpointInternal","yt-update-permission-role-command":"handleUpdatePermissionRoleCommand","yt-channel-creation-form-endpoint":"handleYtChannelCreationFormEndpoints","yt-show-engagement-panel-endpoint":"handleShowEngagementPanelEndpoint","yt-google-payment-billing-command":"handleCommandWithCommandHandler"};a.dynamicActionMap={"yt-run-attestation-command":function(b){var c=_.Wec.instance,d=_.y(b,_.Myb);return d?_.w("use_rta_manager_for_async")&&
psc()?nBc(c,d,b.clickTrackingParams):mBc(c,d,b.clickTrackingParams):_.On(Error("pi"))}};
a.isFrostedGlassDisabled=!1;a.isChannelOrPlaylistPage=!1;return a};
_.z(u0c,_.P);_.f=u0c.prototype;_.f.created=function(){var a=_.v();_.w("kevlar_clear_duplicate_pref_cookie")&&_.sl(_.zk,function(){var b=_.lj.get("PREF");b&&!/f\d=/.test(b)&&(b=_.aj("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=b?"PREF=null;domain="+b+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.w("gzip_gel_with_worker")&&_.sra();_.w("jspb_serialize_with_worker")&&Psc();_.w("web_worker_availability_check")&&gAc();_.w("nwl_init_killswitch")||Nsc().then(function(){_.zk.addLowPriorityJob($wc)});
this.pageManagerAttachedPromise=_.St();this.ytdAppBehavior.loadDepsPromise=_.Kz([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.lv(this.onThrottledScroll,200,this);_.w("external_fullscreen")&&(this.fullscreen=!1);this.ephemeralResponseStore=a.resolve(_.rJ);this.boundOnTouchStart=this.onTouchStart.bind(this);Gsc();GCc=!!_.Ji("ytappsettings.initialized");BY=_.Ji("ytappsettings.previousValue");Gtc=_.Ji("ytappsettings.previousSnapshotTime");GCc||
(GCc=!0,Htc());fxc();gxc();_.Ei("DEFERRED_DETACH",_.w("kevlar_tuner_should_defer_detach"));_.Ei("REUSE_COMPONENTS",!0);_.Ei("STAMPER_STABLE_LIST",!0);_.Ei("SCHEDULED_LAZY_LIST",!0);_.Ei("openPopupConfig",qNc);_.Ei("useClickHandler",!0);_.w("kevlar_shell_cleanup")&&_.zk.addLowPriorityJob(vtc.bind(this,_.ja.caches));_.Gi("IS_SHELL_LOAD")&&_.Jo({shellStartupDurationMs:Math.round((0,_.Uj)()-_.Eo())});Szc(this.networkStatusManager);_.w("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",Lzc(q0c)),
console.log("%cYouTube.com is the second largest website in the world, with hundreds of\nmillions of users and watch-hours per day. It makes you laugh, learn, and leaves\nyou amazed. Are there things that you love about YouTube? Things that you don't?\nHelp us make it better!",Lzc(r0c)),console.log("%cVisit http://go/join-youtube-web to apply today.",Lzc(s0c)));_.Toc(a.resolve(_.sW),1E3)};
_.f.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var a=Zsc();a&&!_.w("external_fullscreen_killswitch")&&document.addEventListener(a,this.setFullscreen.bind(this));(a=window.matchMedia("(prefers-color-scheme: dark)"))&&a.addEventListener&&a.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.f.attached=function(){var a=this;_.VF().processSignal("ci");_.w("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.yab?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.Cw(_.rBa(),"SUCCESS");this.updateIconSet();_.go(this.guideInnerContent,!1);_.sG().initVisibilityObserver();this.guideService.guideElement=this.guide;var b=document.createElement("ytd-miniplayer"),c=_.E(this.hostElement).querySelector("#content");
_.E(this.hostElement).insertBefore(b,c);_.VF().processSignal("ma");_.v().resolve(_.$w).init(b);_.Gi("IS_SHELL_LOAD")&&(c=document.createElement("ytd-network-status-banner"),_.E(this.hostElement).insertBefore(c,b));_.w("kevlar_right_click_on_lockups")&&_.$D._onCaptureClick&&document.addEventListener("contextmenu",_.$D._onCaptureClick.bind(_.$D),!0);var d=function(){var e=_.aH("yt-page-navigation-progress");_.E(a.hostElement).appendChild(e)};
setTimeout(function(){_.VF().parkOrScheduleJob(d,0,"eocs",16)},0);
_.w("service_worker_push_enabled")&&_.sl(_.zk,Ytc);_.Ml(_.Ll.getInstance(),this.dynamicActionMap,this.hostElement);_.io(this.hostElement,"ytd-app-attached");_.VF().processSignal("aa");otc(this.hostElement);_.Rj("gapi.load",_.dCa);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.sl(_.zk,
function(){var e=document.createElement("ytd-video-preview");_.E(_.E(a.hostElement).querySelector("#video-preview")).appendChild(e)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.sl(_.zk,function(){Pzc();a.registerViewTransitionTasks()});
if(_.Kq()&&this.isAppDarkTheme()!==_.Iq())this.onDarkModeToggledAction();else b=_.Jq()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==b&&(_.w("enable_dark_theme_only_on_shorts")?_.Hq(_.w("enable_dark_theme_only_on_shorts_control")?window.location.href:_.Pi(window.location.href,{theme:"dark"})):_.Dl(new _.qj("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(uNc=new tNc(this.hostElement)),h0c=new g0c(this.hostElement),f0c=new e0c(this.hostElement),NNc=new MNc(this.hostElement)};
_.f.getThemeSettingsToLog=function(){var a=_.Jq()==="USER_INTERFACE_THEME_DARK";a=_.Kq()?_.Iq()?"os-dark":"os-light":a?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:a,cookiesEnabled:_.nj()}};
_.f.detached=function(){_.ho(this.guideInnerContent);_.zk.cancelJob(wY);wY=0;_.zk.cancelJob(yY);yY=0;_.Fsa(ntc);ntc.length=0;ktc=_.kIa=null;_.sG().dispose();_.w("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.Nl(_.Ll.getInstance(),uNc.playlistHandlerActionMap,uNc.JSC$28164_clientRoot);_.Nl(_.Ll.getInstance(),h0c.downloadManagerActionMap,h0c.JSC$28475_clientRoot);_.Nl(_.Ll.getInstance(),f0c.feedbackCollectorActionMap,f0c.JSC$28470_clientRoot);
for(var a=_.h(NNc.eventListeners),b=a.next();!b.done;b=a.next()){var c=_.h(b.value);b=c.next().value;c=c.next().value;c=_.h(c);for(var d=c.next();!d.done;d=c.next()){var e=_.h(d.value);d=e.next().value;e=e.next().value;b.removeEventListener(d,e)}}_.Nl(_.Ll.getInstance(),NNc.autonavPauseActionMap,NNc.JSC$17561_clientRoot)};
_.f.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.yo().getFlag(186)};
_.f.computeIsInlinePreviewEnabled=function(a,b,c){return!c&&_.Poc({miniplayerIsActive:a,miniplayerPlaybackState:b})};
_.f.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.hp({type:"SET_FROSTED_GLASS_MODE",payload:!_.w("web_frosted_glass")||this.isFrostedGlassDisabled?"none":!this.isFrostedGlassInitialized&&this.applyFrostedGlassToChipBar?"loading-with-chipbar":this.isFrostedGlassInitialized||this.applyFrostedGlassToChipBar?this.applyFrostedGlassToChipBar?"with-chipbar":"without-chipbar":"loading-without-chipbar"}))};
_.f.computeIsFrostedGlassDisabled=function(a,b,c,d){return a||b||c||d&&_.w("web_frosted_glass_disable_watch")};
_.f.computeIsHomePage=function(a,b){if(!a||b==null||!b.endpoint)return!1;var c;return((c=_.y(b.endpoint,_.oq))==null?void 0:c.browseId)==="FEwhat_to_watch"};
_.f.updateIsChannelOrPlaylistPage=function(){if(_.w("web_frosted_glass")){var a,b,c=(b=(a=_.v().resolve(_.Xi(_.Zt)))==null?void 0:a.getCurrentPage())==null?void 0:b.pageSubtype;this.isChannelOrPlaylistPage=c?["channel","channels","playlist"].includes(c):!1}};
_.f.scheduleFrostedGlassInitialization=function(){var a=this;_.w("web_frosted_glass")&&_.VF().parkOrScheduleJob(function(){a.isFrostedGlassInitialized=!0},0,_.PW(["eocs",
"cr"]),300)};
_.f.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.WJb(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.hp({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.hp({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.f.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(wCc(!0))};
_.f.onYtSignalActionRequestPersistentStorage=function(){if(!_.w("request_persistent_storage_killswitch")){var a=_.v().resolve(_.Ghc);a.cachedPersistStatePromise||(a.cachedPersistStatePromise=MBc())}};
_.f.handleYtChannelCreationFormEndpoints=function(a){a&&this.ytComponentBehavior.resolveCommand(a)};
_.f.handleShowEngagementPanelEndpoint=function(a){a&&this.ytComponentBehavior.resolveCommand(a)};
_.f.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(wCc(!1))};
_.f.initIconDefs=function(a,b,c){var d=document.createElement("iron-iconset-svg");d.name=a;a=document.createElementNS("http://www.w3.org/2000/svg","svg");d.appendChild(a);a.appendChild(b);if(c)for(var e in c)d[e]=c[e];document.body.appendChild(d);return d};
_.f.onWindowResized=function(){_.lo(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var a=_.bLb.getInstance();a.documentWidth_=document.body.clientWidth;NAc(a)};
_.f.onWindowScrolled=function(){var a=_.v().resolve(_.Zt).getCurrentPage();if(a!=null&&a.getScrollTop){var b=this.ytdReduxBehavior,c=b.dispatch;a=a.getScrollTop()<=0;c.call(b,_.hp({type:"SET_SCROLL_AT_TOP",payload:a}))}};
_.f.guideIsVisibleButNotPersistentSelectorChanged=function(){var a=_.v().resolve(_.Zt).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=a.getScrollTop(),document.body.classList.add("lock-scrollbar"),document.body.style.top="-"+this.guideScrollTop+"px"):document.body.classList.contains("lock-scrollbar")&&(document.body.style.overflowY="",document.body.style.top="",document.body.classList.remove("lock-scrollbar"),
a.setScrollTop(this.guideScrollTop));_.mo(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.f.getCurrentPageScrollableElementType=function(){var a=_.v().resolve(_.Zt).getCurrentPage();if(a&&a.getPageScrollingElement())return a.getPageScrollingElement().nodeName};
_.f.observeGuideVisibility=function(){var a=_.bLb.getInstance(),b=this.miniGuideVisible;a.guidePersistentAndVisible_=this.guidePersistentAndVisible;a.miniGuideVisible_=b;NAc(a)};
_.f.handleEduDismissAction=function(a){a&&a.eduDismissAction&&(_.lo(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.XKb.getInstance(),_.hG.set(a.eduDismissAction.key+"-dismissed",!0))};
_.f.handleEduImpressionAction=function(a){if(a&&a.eduImpressionAction){var b=_.XKb.getInstance();a=a.eduImpressionAction.key;b.JSC$10716_eduDisplayedThisLoad_[_.WKb[a].setKey||a]=!0;_.hG.set(a+"-impression",parseInt(_.hG.get(a+"-impression")||0,10)+1)}};
_.f.onYtSignalActionConfirmMentionsEdu=function(){_.lo(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.kG.getInstance();_.jG.set("edu-dismissed",!0)};
_.f.onYtSignalActionRecordMentionsEduImpression=function(){_.kG.getInstance();var a=_.jG.set,b=parseInt(_.jG.get("edu-impressions"),10);a.call(_.jG,"edu-impressions",(isFinite(b)?b:0)+1)};
_.f.onYtPageManagerAttached=function(a){var b;((b=_.Sq(a))==null?void 0:b.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.f.onInvokeInstrumentManagerAction=function(a,b){lAc(b,a)};
_.f.updateIconSet=function(){var a=this.hostElement.querySelector("#masthead");if(a){var b=_.ar(a),c=b.querySelector("g#yt-logo-updated");c&&(a=document.createElementNS("http://www.w3.org/2000/svg","defs"),a.appendChild(c.cloneNode(!0)),(b=b.querySelector("g#yt-logo-red-updated"))&&a.appendChild(b.cloneNode(!0)),this.initIconDefs("yt-logos-ext",a))}};
_.f.updateMastheadData=function(){var a=this,b,c,d,e;return _.l(function(g){if(g.nextAddress==1){b=a.data;c=a.hostElement.querySelector("#masthead");if(!c)return g.return();_.Qm(a,function(){c.data=a.topbarData});
return a.get("response.topbar",b)&&a.get("response.topbar.responseContext.maxAgeSeconds",b)!==0?(d=_.v().resolve(_.$V))?_.p(g,d(),7):a.ephemeralResponseStore?_.p(g,a.ephemeralResponseStore.put("service:topbar:fallback",new _.sJ({innertubeResponse:a.get("response.topbar",b)})),0):g.jumpTo(0):g.jumpTo(0)}return(e=g.yieldResult)?_.p(g,e.put("service:topbar:fallback",new _.sJ({innertubeResponse:a.get("response.topbar",b)})),0):g.jumpTo(0)})};
_.f.computeTopbarData=function(a){if(!a)return null;var b;return this.isShortsPage&&this.topbarData&&!_.y((b=a.response)==null?void 0:b.topbar,LJc)?this.topbarData:a.response&&"topbar"in a.response?_.y(a.response.topbar,LJc)||null:null};
_.f.onSetTheaterModeEnabled=function(a,b){this.isTheaterModeSession=b.enabled;this.setTheaterModeStyles(b.enabled)};
_.f.setTheaterModeStyles=function(){this.setMastheadTheme()};
_.f.onDarkModeToggledAction=function(){var a=_.gj(window.location.href);if(!_.tJa(a)){(a=!!_.Oi(window.location.href).themeRefresh)&&_.Dl(new _.qj("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!a){Htc();a={themeRefresh:1};var b=_.v().resolve(_.Zt);if(b.isOnWatch()){var c,d;b=((c=b.getPlayerFromWatch())==null?void 0:(d=c.getPlayer())==null?void 0:d.getCurrentTime())||0;b>=1&&(a.time_continue=Math.floor(b))}_.nj()||_.Jq()!=="USER_INTERFACE_THEME_DARK"||(a.theme="dark");_.Hq(_.Pi(window.location.href,
a))}_.w("web_appshell_refresh_trigger")&&_.ja.caches&&this.refreshAppShellResponse();c=_.Pn(window.location.href);_.v().resolve(_.DWb).replaceUrl(_.bo(c,"theme"))}};
_.f.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.f.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.f.onPlayerFullscreen=function(a){_.eo();this.playerFullscreen=a};
_.f.setRestrictedMode=function(a){var b=_.yo();_.zo(0,58,a);b.save();_.v().resolve(_.rG).reload()};
_.f.onPageChanged=function(a){a.detail.newPageType==="ytd-watch-flexy"||a.detail.newPageType==="ytd-watch-fixie"||a.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.Rw("WEB_PAGE_TYPE_WATCH")):a.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.Rw("WEB_PAGE_TYPE_SHORTS")):a.detail.newPageType==="ytd-browse"&&a.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.Rw("WEB_PAGE_TYPE_MINI_APP")):_.w("web_frosted_glass")&&a.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.Rw("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.Rw("WEB_PAGE_TYPE_UNKNOWN"));a.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.f.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.f.onGuideToggleTap=function(){_.io(this.hostElement,"yt-guide-toggle")};
_.f.onGuideToggleHover=function(){_.io(this.hostElement,"yt-guide-hover")};
_.f.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.f.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.f.setMastheadTheme=function(){var a=_.ar(this.hostElement).querySelector("#masthead");a&&(a.dark=a.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),a.isDarkThemeForced=!1)};
_.f.onRequestPanelModeChange=function(a,b){this.hideHeaderShadow=b.mode!=="seamed"};
_.f.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.f.onDrawerIronSelect=function(a){_.Sq(a).id==="guide"&&this.processDrawerIronSelect()};
_.f.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var a="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(a="opened"));_.io(this.hostElement,"yt-autonav-pause-guide-"+a)};
_.f.onAddElementToApp=function(a){_.E(this.hostElement).appendChild(a.detail)};
_.f.onThrottledScroll=function(){var a=_.v().resolve(_.Zt).getCurrentPage();a&&(this.scrollAtTop=a.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.f.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.f.setFullscreen=function(){if(_.w("external_fullscreen")||!this.isWatchPage){var a=_.w("kevlar_fullerscreen_root_only_killswitch")?!!_.eo():!!_.eo()&&_.eo()===document.documentElement;a=(this.isWatchPage||_.w("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(a||this.isFullWindowSession);this.fullscreen!==a&&((this.fullscreen=a)&&_.mo(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Yp().dispatch(_.jsc(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.toggleFullscreenStyles(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen),_.lo(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.f.setFullscreenLoggingForShorts=function(a){var b,c,d;return _.l(function(e){if(e.nextAddress==1)return _.p(e,(b=_.au())==null?void 0:b.getPlayerPromise(),2);c=e.yieldResult;(d=c)==null||d.setAppFullscreen(a);_.ue(e)})};
_.f.updateMastheadCssHeight=function(){var a=this.mastheadHeight;this.fullscreen&&(a=0);_.fr(this.hostElement,{"--ytd-masthead-height":a+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.f.updateNetworkStatusBannerDisplayStatus=function(){var a="unset";this.fullscreen&&(a="none");_.fr(this.hostElement,{"--ytd-network-status-banner-display":a})};
_.f.updateNetworkStatusBannerCssHeight=function(){var a="unset";this.fullscreen&&(a="0px");_.fr(this.hostElement,{"--ytd-network-status-banner-max-height":a})};
_.f.toggleFullscreenStyles=function(a,b,c){var d=_.v().resolve(_.Zt).getCurrentPage();a||b?(document.body.classList.add("no-scroll"),d.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.gr(this,this.onScroll)),d.setScrollTop(0),_.fr(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.LW()+"px"})):c?_.io(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.io(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),d.pageScrollElement=
null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.gr(this,this.onScroll)));this.mastheadHidden=a||b||c;this.updateMastheadCssHeight();_.w("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.f.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.f.onYtMastheadHeightChanged=function(a,b){this.mastheadHeight=b.height;this.updateMastheadCssHeight()};
_.f.onYtNavigateAction=function(a){a=this.get("navigateAction.endpoint",a);_.io(this.hostElement,"yt-navigate",{endpoint:a})};
_.f.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var a=document.createElement("yt-create-family-dialog");_.E(this.hostElement).appendChild(a);this.hasCreateFamilyDialog=!0}};
_.f.onSetPushNotificationsEnabledCommand=function(a){var b=this,c=_.y(a,KJc);c&&typeof c.enabled==="boolean"&&(Notification.permission!=="granted"?Ttc().then(function(){Notification.permission==="granted"?(Ctc(!c.enabled).then(Ftc),c.successAction&&_.oo(b.hostElement,[c.successAction])):c.failureAction&&_.oo(b.hostElement,[c.failureAction])}):(Ctc(!c.enabled).then(Ftc),c.successAction&&_.oo(this.hostElement,[c.successAction])))};
_.f.onYtSignalActionEnableChromeNotifications=function(){Utc(!0)};
_.f.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.y(this.topbarData.hotkeyDialog,OJc)}}})};
_.f.onYtSignalActionShowKeyboardShortcutDialog=function(){_.lo(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.f.onYtEndpointChangeHandler=function(a,b){var c=_.tw(_.qG);c.pendingPrefetchJob_&&(b=!(!b||b.autonav!="1"),c.pendingPrefetchJob_.resolve(a&&_.lIa(a)?_.mIa(a,b):""),c.pendingPrefetchJob_=null);_.lo(this.hostElement,"yt-pause-active-page-context");_.lo(this.hostElement,"ytd-log-youthere-nav");_.lo(this.hostElement,"yt-prepare-page-dispose")};
_.f.handleClearUrlParamCommand=function(a){if(a.clearUrlParamCommand&&a.clearUrlParamCommand.paramKeys){var b=a.clearUrlParamCommand.paramKeys;a=_.Mg(window.location.href);b=_.h(b);for(var c=b.next();!c.done;c=b.next())a.JSC$7876_queryData_.remove(c.value);window.history.replaceState(window.history.state,document.title,a.toString())}};
_.f.handleCommandWithCommandHandler=function(a,b){_.gs.instance.resolveCommand(a,{form:{element:b}})};
_.f.onYtTimedCommand=function(a){var b=this;a=_.y(a,wJc);var c=a.command;c&&_.Gu(_.zk,function(){var d=_.y(c,_.NEb);d?(_.gs.instance.resolveCommand(c),b.maybeLogGetAnswerRequestTick(d)):_.po(b.hostElement,[c],b.hostElement)},a.timeoutMs||0)};
_.f.maybeLogGetAnswerRequestTick=function(a){a&&a.isFirstRequest&&(_.Ko("search_overview_answer"),_.Lo("so_rq",void 0,"search_overview_answer"))};
_.f.onYtSignalActionSkipNavigation=function(){var a=_.v().resolve(_.Zt).getCurrentPage();_.Pk(a)};
_.f.onYtSignalActionCopyDebugData=function(){guc()};
_.f.handleEntityUpdateCommand=function(a){_.tp(_.y(a,_.SAb).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.f.logFlowLoggingEventCommand=function(a){if(a=_.y(a,_.IPa))if(a.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var b=a.flowEventNamespace,c=a.flowEventType,d=a.flowType;d&&b&&c&&_.cIa(_.iq(b,c,a.flowEventMetadata),d)}else{b=_.kq();c=a.flowEventNamespace;d=a.flowEventType;var e=a.flowType;e&&c&&d&&_.jq(b,_.iq(c,d,a.flowEventMetadata),e,a.flowNonce)}};
_.f.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.f.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.f.onTouchStart=function(){var a=_.tG();_.En()&&_.Ot(a.JSC$10869_screenManager,{visualElement:a.ve})};
_.f.handleWebNativeShareCommand=function(a){navigator.share({url:_.y(a,IJc).url}).catch(function(){})};
_.f.handleSelectCountryCommand=function(a){if(a=_.y(a,FJc).gl){var b={persist_gl:1,gl:a},c=_.yo();c.set("gl",a);c.save();a=eCc(b);_.Hq(a)}};
_.f.handlePersistSubscriptionsDisplayPreferencesCommand=function(a){if(a=_.y(a,CJc)){var b=_.yo();_.zo(0,155,a.useListView);b.save()}};
_.f.handleSelectLanguageCommand=function(a){if(a=_.y(a,GJc).hl){var b=_.yo();b.set("hl",a);b.save();_.v().resolve(_.rG).reload()}};
_.f.handleConfirmDialogEndpoint=function(a){(a=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(a))&&this.ytOpenPopupBehavior.openPopup(a)};
_.f.handleOpenPopupNavigationEndpoints=function(a,b){_.w("web_button_rework")&&(a=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(a))&&this.ytOpenPopupBehavior.openPopup(a,b)};
_.f.handleSaveCommandToSessionStorage=function(a){if(a=_.y(a,_.Syb)){var b=a.key;b&&a.command&&window.sessionStorage.setItem(b,JSON.stringify(a.command))}};
_.f.hardReloadWithShellPurge=function(a){a=a===void 0?{}:a;a=Object.assign({},a,{purge_shell:1});a=eCc(a);_.Hq(a)};
_.f.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(a){a&&a.active&&a.active.postMessage({type:"refresh_shell"})}).catch(function(a){a.name!=="SecurityError"&&_.Bl(a)})};
_.f.onDeviceThemeChanged=function(){var a=_.Iq();_.zo(_.yo(),185,a);_.yo().save()};
_.f.handleYtRegisterPromoCommand=function(a){if(_.y(a,JJc)){var b=_.v().resolve(_.Zt).getCurrentPage()||this.hostElement;TMc().registerPromoCommand(_.y(a,JJc),b)}};
_.f.onYtNavigateHomeAction=function(){if(!_.w("kevlar_miniplayer_navigate_home_from_app_killswitch")){var a,b,c,d,e=(d=(a=this.topbarData)==null?void 0:(b=a.logo)==null?void 0:(c=b.topbarLogoRenderer)==null?void 0:c.endpoint)!=null?d:_.yF;this.ytComponentBehavior.resolveCommand(e)}};
_.f.onYtLocationCollectionCommand=function(a){Nzc(_.y(a,WJc))};
_.f.onYtGetLocationCommand=function(a){mxc(_.y(a,VJc),this)};
_.f.updateRenderGuideFromBinding=function(a){this.renderGuide=a.detail.value};
_.f.updateGuidePersistentAndVisibleFromBinding=function(a){this.guidePersistentAndVisible=a.detail.value};
_.f.updateMiniGuideVisibleFromBinding=function(a){this.miniGuideVisible=a.detail.value};
_.f.onThemeSelected=function(a,b){var c=_.yo(),d=a||b?a:_.Iq(),e=(d&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!d&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.tJa(_.gj(window.location.href));_.zo(0,165,a);_.zo(0,174,b);c.save();e&&_.lo(this.hostElement,"yt-dark-mode-toggled-action",[d]);_.lo(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.f.getCurrentTheme=function(){return _.Kq()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Jq()};
_.f.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.f.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.f.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.f.handleShowConsentPrimitive=function(a){var b=this,c,d;return _.l(function(e){if(e.nextAddress==1){try{c=(d=_.au())==null?void 0:d.getPlayerPromise()}catch(g){}return _.p(e,eAc(a,c),2)}_.lo(b.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.ue(e)})};
_.f.handleSelectActiveIdentityEndpointInternal=function(a){_.Fq();a=_.y(a,_.aFb);if(a!=null&&a.supportedTokens){a=_.h(a.supportedTokens);for(var b=a.next();!b.done;b=a.next())b=b.value,b.accountSigninToken&&_.Hq(b.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.f.handleUpdatePermissionRoleCommand=function(a){if(a=_.y(a,_.dEb)){var b;this.hasDelegation=!((b=_.y(a.renderer,_.cEb))==null||!b.status)}};
_.f.registerViewTransitionTasks=function(){var a=this,b=_.v().resolve(_.Xi(_.Njc));if(b){var c,d=(c=this.guide)==null?void 0:c.querySelector("#scrim"),e,g=(e=this.guide)==null?void 0:e.querySelector("#contentContainer");d&&g&&(c={beforeTransition:function(){var k;(k=a.guide)!=null&&k.persistent||(d.style.viewTransitionName="app-drawer-scrim",g.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var k;(k=a.guide)!=null&&k.persistent||(d.style.viewTransitionName="",g.style.viewTransitionName="")}},AZ(b,"slide",c),AZ(b,"zoom",c))}};
_.Um.Object.defineProperties(u0c.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.w("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.Um.Object.defineProperties(u0c,{template:{configurable:!0,enumerable:!0,get:function(){if(Z_c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<template is="dom-if" if="[[ephemeralActionsEnabled]]" class="style-scope ytd-app">\n  <yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n</template>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);Z_c=a}a=Z_c;return a}}});
var p5=u0c;p5.prototype.onOpenHotkeyDialog=p5.prototype.onOpenHotkeyDialog;p5.prototype.onYtMastheadHeightChanged=p5.prototype.onYtMastheadHeightChanged;p5.prototype.setFullscreen=p5.prototype.setFullscreen;p5.prototype.onAddElementToApp=p5.prototype.onAddElementToApp;p5.prototype.onDrawerIronSelect=p5.prototype.onDrawerIronSelect;p5.prototype.onGuideOpenButtonHover=p5.prototype.onGuideOpenButtonHover;p5.prototype.onRequestPanelModeChange=p5.prototype.onRequestPanelModeChange;
p5.prototype.onPageDataUpdated=p5.prototype.onPageDataUpdated;p5.prototype.onPageChanged=p5.prototype.onPageChanged;p5.prototype.onSetTheaterModeEnabled=p5.prototype.onSetTheaterModeEnabled;p5.prototype.updateMastheadData=p5.prototype.updateMastheadData;p5.prototype.onYtPageManagerAttached=p5.prototype.onYtPageManagerAttached;p5.prototype.observeGuideVisibility=p5.prototype.observeGuideVisibility;p5.prototype.guideIsVisibleButNotPersistentSelectorChanged=p5.prototype.guideIsVisibleButNotPersistentSelectorChanged;
p5.prototype.isInlinePreviewEnabledChanged=p5.prototype.isInlinePreviewEnabledChanged;p5.prototype.dispatchFrostedGlassMode=p5.prototype.dispatchFrostedGlassMode;_.U([_.H(_.OI),_.W("design:type",Object)],p5.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.HK.YtEventForwardingBehavior),_.W("design:type",Object)],p5.prototype,"ytEventForwardingBehavior",void 0);_.U([_.H(_.pH.YtOpenPopupBehavior),_.W("design:type",Object)],p5.prototype,"ytOpenPopupBehavior",void 0);
_.U([_.H(_.eH.YtActionHandlerBehavior),_.W("design:type",Object)],p5.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.Ll.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.w("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var a;((a=this.actionRouterNode.hostElement)!=null?a:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var a;((a=this.actionRouterNode.hostElement)!=null?a:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(a){this.actionRouter_.handleAction(a.detail)}}),
_.W("design:type",Object)],p5.prototype,"ytActionRouterBehavior",void 0);_.U([_.H(cNc.YtdAppBehavior),_.W("design:type",Object)],p5.prototype,"ytdAppBehavior",void 0);_.U([_.H(_.qH.YtEndpointBehavior),_.W("design:type",Object)],p5.prototype,"ytEndpointBehavior",void 0);_.U([_.H(d0c.YtEndpointHandlerWithYpcBehavior),_.W("design:type",Object)],p5.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.U([_.H($_c.YtLogYpcFlowCommandsBehavior),_.W("design:type",Object)],p5.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],p5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtComponentBehavior),_.W("design:type",Object)],p5.prototype,"ytComponentBehavior",void 0);_.U([_.O({selector:_.mmc}),_.W("design:type",Object)],p5.prototype,"tabGesturesIsActive",void 0);_.U([_.O(),_.W("design:type",Boolean)],p5.prototype,"renderGuide",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],p5.prototype,"guidePersistentAndVisible",void 0);_.U([_.O({selector:_.lmc}),_.W("design:type",Boolean)],p5.prototype,"guideIsVisibleButNotPersistent",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],p5.prototype,"standalone",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],p5.prototype,"miniGuideVisible",void 0);
_.U([_.O({selector:_.BFa}),_.W("design:type",Number)],p5.prototype,"miniplayerPlaybackState",void 0);_.U([_.O({selector:_.Hp,reflectToAttribute:!0}),_.W("design:type",Boolean)],p5.prototype,"miniplayerIsActive",void 0);_.U([_.O({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.W("design:type",Boolean)],p5.prototype,"isInlinePreviewEnabled",void 0);_.U([_.O(),_.W("design:type",Boolean)],p5.prototype,"isInlinePreviewDisabled",void 0);
_.U([_.O({reflectToAttribute:!0,value:function(){return _.Gi("START_IN_FULL_WINDOW_MODE")}}),
_.W("design:type",Boolean)],p5.prototype,"mastheadHidden",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],p5.prototype,"playerFullscreen",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],p5.prototype,"deprecateFullerscreenUi",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],p5.prototype,"fullscreen",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],p5.prototype,"hideHeaderShadow",void 0);
_.U([_.O({value:{GUIDE_ALT_LABEL:_.vo("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.W("design:type",Object)],p5.prototype,"menuStrings",void 0);_.U([_.O({computed:"computeTopbarData(data)"}),_.W("design:type",Object)],p5.prototype,"topbarData",void 0);_.U([_.O({selector:_.Ip}),_.W("design:type",Boolean)],p5.prototype,"isWatchPage",void 0);_.U([_.O({selector:_.yFa,reflectToAttribute:!0}),_.W("design:type",Boolean)],p5.prototype,"isShortsPage",void 0);
_.U([_.O({selector:function(a){return a.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.W("design:type",Boolean)],p5.prototype,"isMiniAppPage",void 0);_.U([_.O({selector:function(a){return a.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.W("design:type",Boolean)],p5.prototype,"isBrowsePage",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],p5.prototype,"scrolling",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],p5.prototype,"hasDelegation",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],p5.prototype,"guideScrolledByTouch",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],p5.prototype,"darkerDarkTheme",void 0);
_.U([_.O(),_.W("design:type",Object)],p5.prototype,"isFrostedGlassInitialized",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],p5.prototype,"frostedGlassExp",void 0);_.U([_.O({selector:function(a){return a.ui.chipBarIsSticky}}),
_.W("design:type",Boolean)],p5.prototype,"chipBarIsSticky",void 0);_.U([_.O({computed:"computeIsHomePage(isBrowsePage, data)"}),_.W("design:type",Boolean)],p5.prototype,"isHomePage",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],p5.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.U([_.O(),_.W("design:type",Object)],p5.prototype,"ephemeralActionsEnabled",void 0);_.U([_.jY("guide"),_.W("design:type",Object)],p5.prototype,"guide",void 0);
_.U([_.jY("guide-service"),_.W("design:type",RNc)],p5.prototype,"guideService",void 0);_.U([_.jY("guide-inner-content"),_.W("design:type",HTMLDivElement)],p5.prototype,"guideInnerContent",void 0);_.U([_.O({selector:_.CFa}),_.W("design:type",String)],p5.prototype,"frostedGlassMode",void 0);
_.U([_.N("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],p5.prototype,"dispatchFrostedGlassMode",null);_.U([_.O({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.W("design:type",Object)],p5.prototype,"isFrostedGlassDisabled",void 0);
_.U([_.K("isHomePage","chipBarIsSticky"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],p5.prototype,"applyFrostedGlassToChipBar",null);_.U([_.O(),_.W("design:type",Object)],p5.prototype,"isChannelOrPlaylistPage",void 0);_.U([_.mr("isInlinePreviewEnabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],p5.prototype,"isInlinePreviewEnabledChanged",null);
_.U([_.N("guideIsVisibleButNotPersistent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],p5.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);_.U([_.N("guidePersistentAndVisible","miniGuideVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],p5.prototype,"observeGuideVisibility",null);
_.U([_.M("attached"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],p5.prototype,"onYtPageManagerAttached",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],p5.prototype,"updateMastheadData",null);_.U([_.M("yt-set-theater-mode-enabled"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],p5.prototype,"onSetTheaterModeEnabled",null);
_.U([_.M("yt-page-type-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],p5.prototype,"onPageChanged",null);_.U([_.M("yt-page-data-updated"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],p5.prototype,"onPageDataUpdated",null);_.U([_.M("yt-request-panel-mode-change"),_.W("design:type",Function),_.W("design:paramtypes",[Event,Object]),_.W("design:returntype")],p5.prototype,"onRequestPanelModeChange",null);
_.U([_.M("yt-guide-hover"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],p5.prototype,"onGuideOpenButtonHover",null);_.U([_.M("app-drawer-transitioned"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],p5.prototype,"onDrawerIronSelect",null);_.U([_.M("yt-add-element-to-app"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],p5.prototype,"onAddElementToApp",null);
_.U([_.M("yt-set-fullerscreen-styles"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],p5.prototype,"setFullscreen",null);_.U([_.M("yt-masthead-height-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],p5.prototype,"onYtMastheadHeightChanged",null);_.U([_.M("yt-open-hotkey-dialog"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],p5.prototype,"onOpenHotkeyDialog",null);
p5=_.U([_.Q({is:"ytd-app"})],p5);_.VF().processSignal("eor");
_.Dg();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
